mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
2 lines
3.6 MiB
2 lines
3.6 MiB
/*! For license information please see app.js.LICENSE.txt */
|
||
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=0)}({"+/RH":function(e,t,n){"use strict";function r(e){return null==e}function a(e){return null!=e}function i(e,t){return t.tag===e.tag&&t.key===e.key}function o(e){var t=e.tag;e.vm=new t({data:e.args})}function s(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 l(e,t,n){for(;t<=n;++t)o(e[t])}function c(e,t,n){for(;t<=n;++t){var r=e[t];a(r)&&(r.vm.$destroy(),r.vm=null)}}function u(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 n=0,d=0,p=e.length-1,f=e[0],m=e[p],h=t.length-1,_=t[0],v=t[h],g=void 0,y=void 0,b=void 0;for(;n<=p&&d<=h;)r(f)?f=e[++n]:r(m)?m=e[--p]:i(f,_)?(u(f,_),f=e[++n],_=t[++d]):i(m,v)?(u(m,v),m=e[--p],v=t[--h]):i(f,v)?(u(f,v),f=e[++n],v=t[--h]):i(m,_)?(u(m,_),m=e[--p],_=t[++d]):(r(g)&&(g=s(e,n,p)),r(y=a(_.key)?g[_.key]:null)?(o(_),_=t[++d]):i(b=e[y],_)?(u(b,_),e[y]=void 0,_=t[++d]):(o(_),_=t[++d]));n>p?l(t,d,h):d>h&&c(e,n,p)}(e,t):a(t)?l(t,0,t.length-1):a(e)&&c(e,0,e.length-1)},t.h=function(e,t,n){return{tag:e,key:t,args:n}}},"+6XX":function(e,t,n){var r=n("y1pI");e.exports=function(e){return r(this.__data__,e)>-1}},"+K+b":function(e,t,n){var r=n("JHRd");e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},"+Nc4":function(e,t,n){"use strict";n("+RPo")},"+QQC":function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,"@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}",""])},"+Qka":function(e,t,n){var r=n("fmRc"),a=n("t2Dn"),i=n("cq/+"),o=n("T1AV"),s=n("GoyQ"),l=n("mTTR"),c=n("itsj");e.exports=function e(t,n,u,d,p){t!==n&&i(n,(function(i,l){if(p||(p=new r),s(i))o(t,n,l,u,e,d,p);else{var f=d?d(c(t,l),i,l+"",t,n,p):void 0;void 0===f&&(f=i),a(t,l,f)}}),l)}},"+RPo":function(e,t,n){var r=n("lqaV");"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,a);r.locals&&(e.exports=r.locals)},"+Uym":function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,".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}",""])},"+c5i":function(e,t,n){var r=n("o6ji");"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,a);r.locals&&(e.exports=r.locals)},"+iFO":function(e,t,n){var r=n("dTAl"),a=n("LcsW"),i=n("6sVZ");e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(a(e))}},"+qE3":function(e,t,n){"use strict";var r,a="object"==typeof Reflect?Reflect:null,i=a&&"function"==typeof a.apply?a.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,r){function a(){void 0!==i&&e.removeListener("error",i),n([].slice.call(arguments))}var i;"error"!==t&&(i=function(n){e.removeListener(t,a),r(n)},e.once("error",i)),e.once(t,a)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var a,i,o,s;if(c(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),o=i[t]),void 0===o)o=i[t]=n,++e._eventsCount;else if("function"==typeof o?o=i[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(a=u(e))>0&&o.length>a&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,s=l,console&&console.warn&&console.warn(s)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},a=p.bind(r);return a.listener=n,r.wrapFn=a,a}function m(e,t,n){var r=e._events;if(void 0===r)return[];var a=r[t];return void 0===a?[]:"function"==typeof a?n?[a.listener||a]:[a]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(a):_(a,a.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function _(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,a=this._events;if(void 0!==a)r=r&&void 0===a.error;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=a[e];if(void 0===l)return!1;if("function"==typeof l)i(l,this,t);else{var c=l.length,u=_(l,c);for(n=0;n<c;++n)i(u[n],this,t)}return!0},s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)},s.prototype.once=function(e,t){return c(t),this.on(e,f(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,f(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,a,i,o;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(a=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){o=n[i].listener,a=i;break}if(a<0)return this;0===a?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,a),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var a,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(a=i[r])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},"+s0g":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],a=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("wd/R"))},"//9w":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("wd/R"))},"/X5v":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("wd/R"))},0:function(e,t,n){n("JO1w"),e.exports=n("vdwK")},"03A+":function(e,t,n){var r=n("JTzB"),a=n("ExA7"),i=Object.prototype,o=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return a(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},"0Cz8":function(e,t,n){var r=n("Xi7e"),a=n("ebwN"),i=n("e4Nc");e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!a||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(o)}return n.set(e,t),this.size=n.size,this}},"0IOw":function(e,t,n){"use strict";n("5rGH")},"0mo+":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("wd/R"))},"0pQ5":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("eO9T");t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.withParams)({type:"or"},(function(){for(var e=this,n=arguments.length,r=Array(n),a=0;a<n;a++)r[a]=arguments[a];return t.length>0&&t.reduce((function(t,n){return t||n.apply(e,r)}),!1)}))}},"0tRk":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("wd/R"))},1:function(e,t){},"18b+":function(e,t,n){"use strict";n("Z2iq")},"1PTn":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("eO9T");t.default=(0,r.withParams)({type:"required"},r.req)},"1pTX":function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,".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}}",""])},"1ppg":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("wd/R"))},"1rYy":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("wd/R"))},"1xZ4":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("wd/R"))},2:function(e,t){},"2SVd":function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},"2Tiy":function(e,t,n){var r=n("tjlA").Buffer;e.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(r.isBuffer(e)){for(var t=new Uint8Array(e.length),n=e.length,a=0;a<n;a++)t[a]=e[a];return t.buffer}throw new Error("Argument must be a Buffer")}},"2fjn":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:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n("wd/R"))},"2gN3":function(e,t,n){var r=n("Kz5y")["__core-js_shared__"];e.exports=r},"2ykv":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],a=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("wd/R"))},"3BRs":function(e,t,n){"use strict";(function(t,r,a){var i=n("lm0R");function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var a=r.callback;t.pendingcb--,a(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=g;var s,l=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:i.nextTick;g.WritableState=v;var c=Object.create(n("Onz0"));c.inherits=n("P7XM");var u={deprecate:n("t9FE")},d=n("QpuX"),p=n("qPBE").Buffer,f=a.Uint8Array||function(){};var m,h=n("RoFp");function _(){}function v(e,t){s=s||n("sZro"),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var a=e.highWaterMark,c=e.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:r&&(c||0===c)?c:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===e.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,a=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,a){--t.pendingcb,n?(i.nextTick(a,r),i.nextTick(D,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(a(r),e._writableState.errorEmitted=!0,e.emit("error",r),D(e,t))}(e,n,r,t,a);else{var o=x(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),r?l(b,e,n,o,a):b(e,n,o,a)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function g(e){if(s=s||n("sZro"),!(m.call(g,this)||this instanceof s))return new g(e);this._writableState=new v(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),d.call(this)}function y(e,t,n,r,a,i,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(a,t.onwrite):e._write(a,i,t.onwrite),t.sync=!1}function b(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),D(e,t)}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,a=new Array(r),i=t.corkedRequestsFree;i.entry=n;for(var s=0,l=!0;n;)a[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;a.allBuffers=l,y(e,t,!0,t.length,a,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,u=n.encoding,d=n.callback;if(y(e,t,!1,t.objectMode?1:c.length,c,u,d),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function x(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),D(e,t)}))}function D(e,t){var n=x(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(k,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}c.inherits(g,d),v.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(v.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(m=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(e){return!!m.call(this,e)||this===g&&(e&&e._writableState instanceof v)}})):m=function(e){return e instanceof this},g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},g.prototype.write=function(e,t,n){var r,a=this._writableState,o=!1,s=!a.objectMode&&(r=e,p.isBuffer(r)||r instanceof f);return s&&!p.isBuffer(e)&&(e=function(e){return p.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=a.defaultEncoding),"function"!=typeof n&&(n=_),a.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var a=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),i.nextTick(r,o),a=!1),a}(this,a,e,n))&&(a.pendingcb++,o=function(e,t,n,r,a,i){if(!n){var o=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=p.from(t,n));return t}(t,r,a);r!==o&&(n=!0,a="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:a,isBuf:n,callback:i,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else y(e,t,!1,s,r,a,i);return l}(this,a,s,e,t,n)),o},g.prototype.cork=function(){this._writableState.corked++},g.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||w(this,e))},g.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},g.prototype._writev=null,g.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,D(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),g.prototype.destroy=h.destroy,g.prototype._undestroy=h.undestroy,g.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n("8oxB"),n("URgk").setImmediate,n("yLpj"))},"3E1r":function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},r=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i];e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:r,longMonthsParse:r,shortMonthsParse:[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i],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("wd/R"))},"3Fdi":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""}},"3L66":function(e,t,n){var r=n("MMmD"),a=n("ExA7");e.exports=function(e){return a(e)&&r(e)}},"3caz":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return d})),n.d(t,"h",(function(){return p})),n.d(t,"i",(function(){return f})),n.d(t,"j",(function(){return m})),n.d(t,"k",(function(){return _})),n.d(t,"l",(function(){return h})),n.d(t,"m",(function(){return v})),n.d(t,"n",(function(){return g})),n.d(t,"o",(function(){return b})),n.d(t,"p",(function(){return y})),n.d(t,"q",(function(){return w})),n.d(t,"r",(function(){return x})),n.d(t,"s",(function(){return k})),n.d(t,"t",(function(){return D})),n.d(t,"u",(function(){return M})),n.d(t,"v",(function(){return S})),n.d(t,"w",(function(){return C})),n.d(t,"x",(function(){return L})),n.d(t,"y",(function(){return T})),n.d(t,"z",(function(){return E}));var r=n("Jjj3"),a=n.n(r),i={name:"BellIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"}})])}},o={name:"CalculatorIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 7h6m0 10v-3m-3 3h.01M9 17h.01M9 14h.01M12 14h.01M15 11h.01M12 11h.01M9 11h.01M7 21h10a2 2 0 002-2V5a2 2 0 00-2-2H7a2 2 0 00-2 2v14a2 2 0 002 2z"}})])}},s={name:"ChartBarIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"}})])}},l={name:"ChartSquareBarIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M16 8v8m-4-5v5m-4-2v2m-2 4h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"}})])}},c={name:"CheckCircleIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"}})])}},u={name:"ClipboardCheckIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"}})])}},d={name:"ClipboardListIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"}})])}},p={name:"CogIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}}),e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}})])}},f={name:"CreditCardIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",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"}})])}},m={name:"CubeIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"}})])}},h={name:"DocumentTextIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"}})])}},_={name:"DocumentIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"}})])}},v={name:"DotsHorizontalIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z"}})])}},g={name:"DownloadIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"}})])}},y={name:"EyeOffIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"}})])}},b={name:"EyeIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}}),e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"}})])}},w={name:"HomeIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"}})])}},x={name:"LogoutIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"}})])}},k={name:"OfficeBuildingIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"}})])}},D={name:"PaperAirplaneIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 19l9 2-9-18-9 18 9-2zm0 0v-8"}})])}},M={name:"PencilIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"}})])}},S={name:"PlusSmIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 6v6m0 0v6m0-6h6m-6 0H6"}})])}},C={name:"SaveIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 7H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-3m-1 4l-3 3m0 0l-3-3m3 3V4"}})])}},L={name:"StarIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"}})])}},T={name:"UserIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"}})])}},E={name:"UsersIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z"}})])}}},"3sS0":function(e,t,n){"use strict";n("IvQ4")},"433b":function(e,t,n){"use strict";(function(e){var r=n("8L3F"),a=n("JSzz");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)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){s(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}var u=function(){};function d(e){return"string"==typeof e&&(e=e.split(" ")),e}function p(e,t){var n,r=d(t);n=e.className instanceof u?d(e.className.baseVal):d(e.className),r.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),e instanceof SVGElement?e.setAttribute("class",n.join(" ")):e.className=n.join(" ")}function f(e,t){var n,r=d(t);n=e.className instanceof u?d(e.className.baseVal):d(e.className),r.forEach((function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1)})),e instanceof SVGElement?e.setAttribute("class",n.join(" ")):e.className=n.join(" ")}"undefined"!=typeof window&&(u=window.SVGAnimatedString);var m=!1;if("undefined"!=typeof window){m=!1;try{var h=Object.defineProperty({},"passive",{get:function(){m=!0}});window.addEventListener("test",null,h)}catch(e){}}var _=function(){this.__data__=[],this.size=0};var v=function(e,t){return e===t||e!=e&&t!=t};var g=function(e,t){for(var n=e.length;n--;)if(v(e[n][0],t))return n;return-1},y=Array.prototype.splice;var b=function(e){var t=this.__data__,n=g(t,e);return!(n<0)&&(n==t.length-1?t.pop():y.call(t,n,1),--this.size,!0)};var w=function(e){var t=this.__data__,n=g(t,e);return n<0?void 0:t[n][1]};var x=function(e){return g(this.__data__,e)>-1};var k=function(e,t){var n=this.__data__,r=g(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function D(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}D.prototype.clear=_,D.prototype.delete=b,D.prototype.get=w,D.prototype.has=x,D.prototype.set=k;var M=D;var S=function(){this.__data__=new M,this.size=0};var C=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var L=function(e){return this.__data__.get(e)};var T=function(e){return this.__data__.has(e)},E="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function O(e,t){return e(t={exports:{}},t.exports),t.exports}var j="object"==typeof E&&E&&E.Object===Object&&E,A="object"==typeof self&&self&&self.Object===Object&&self,P=j||A||Function("return this")(),Y=P.Symbol,$=Object.prototype,I=$.hasOwnProperty,N=$.toString,z=Y?Y.toStringTag:void 0;var F=function(e){var t=I.call(e,z),n=e[z];try{e[z]=void 0;var r=!0}catch(e){}var a=N.call(e);return r&&(t?e[z]=n:delete e[z]),a},R=Object.prototype.toString;var H=function(e){return R.call(e)},B=Y?Y.toStringTag:void 0;var q=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":B&&B in Object(e)?F(e):H(e)};var U=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var V,W=function(e){if(!U(e))return!1;var t=q(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},K=P["__core-js_shared__"],G=(V=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||""))?"Symbol(src)_1."+V:"";var J=function(e){return!!G&&G in e},Z=Function.prototype.toString;var X=function(e){if(null!=e){try{return Z.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Q=/^\[object .+?Constructor\]$/,ee=Function.prototype,te=Object.prototype,ne=ee.toString,re=te.hasOwnProperty,ae=RegExp("^"+ne.call(re).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ie=function(e){return!(!U(e)||J(e))&&(W(e)?ae:Q).test(X(e))};var oe=function(e,t){return null==e?void 0:e[t]};var se=function(e,t){var n=oe(e,t);return ie(n)?n:void 0},le=se(P,"Map"),ce=se(Object,"create");var ue=function(){this.__data__=ce?ce(null):{},this.size=0};var de=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},pe=Object.prototype.hasOwnProperty;var fe=function(e){var t=this.__data__;if(ce){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return pe.call(t,e)?t[e]:void 0},me=Object.prototype.hasOwnProperty;var he=function(e){var t=this.__data__;return ce?void 0!==t[e]:me.call(t,e)};var _e=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ce&&void 0===t?"__lodash_hash_undefined__":t,this};function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ve.prototype.clear=ue,ve.prototype.delete=de,ve.prototype.get=fe,ve.prototype.has=he,ve.prototype.set=_e;var ge=ve;var ye=function(){this.size=0,this.__data__={hash:new ge,map:new(le||M),string:new ge}};var be=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var we=function(e,t){var n=e.__data__;return be(t)?n["string"==typeof t?"string":"hash"]:n.map};var xe=function(e){var t=we(this,e).delete(e);return this.size-=t?1:0,t};var ke=function(e){return we(this,e).get(e)};var De=function(e){return we(this,e).has(e)};var Me=function(e,t){var n=we(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Se(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Se.prototype.clear=ye,Se.prototype.delete=xe,Se.prototype.get=ke,Se.prototype.has=De,Se.prototype.set=Me;var Ce=Se;var Le=function(e,t){var n=this.__data__;if(n instanceof M){var r=n.__data__;if(!le||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ce(r)}return n.set(e,t),this.size=n.size,this};function Te(e){var t=this.__data__=new M(e);this.size=t.size}Te.prototype.clear=S,Te.prototype.delete=C,Te.prototype.get=L,Te.prototype.has=T,Te.prototype.set=Le;var Ee=Te;var Oe=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var je=function(e){return this.__data__.has(e)};function Ae(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Ce;++t<n;)this.add(e[t])}Ae.prototype.add=Ae.prototype.push=Oe,Ae.prototype.has=je;var Pe=Ae;var Ye=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var $e=function(e,t){return e.has(t)};var Ie=function(e,t,n,r,a,i){var o=1&n,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var u=-1,d=!0,p=2&n?new Pe:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var f=e[u],m=t[u];if(r)var h=o?r(m,f,u,t,e,i):r(f,m,u,e,t,i);if(void 0!==h){if(h)continue;d=!1;break}if(p){if(!Ye(t,(function(e,t){if(!$e(p,t)&&(f===e||a(f,e,n,r,i)))return p.push(t)}))){d=!1;break}}else if(f!==m&&!a(f,m,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d},Ne=P.Uint8Array;var ze=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var Fe=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Re=Y?Y.prototype:void 0,He=Re?Re.valueOf:void 0;var Be=function(e,t,n,r,a,i,o){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||!i(new Ne(e),new Ne(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return v(+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 s=ze;case"[object Set]":var l=1&r;if(s||(s=Fe),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;r|=2,o.set(e,t);var u=Ie(s(e),s(t),r,a,i,o);return o.delete(e),u;case"[object Symbol]":if(He)return He.call(e)==He.call(t)}return!1};var qe=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e},Ue=Array.isArray;var Ve=function(e,t,n){var r=t(e);return Ue(e)?r:qe(r,n(e))};var We=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i};var Ke=function(){return[]},Ge=Object.prototype.propertyIsEnumerable,Je=Object.getOwnPropertySymbols,Ze=Je?function(e){return null==e?[]:(e=Object(e),We(Je(e),(function(t){return Ge.call(e,t)})))}:Ke;var Xe=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var Qe=function(e){return null!=e&&"object"==typeof e};var et=function(e){return Qe(e)&&"[object Arguments]"==q(e)},tt=Object.prototype,nt=tt.hasOwnProperty,rt=tt.propertyIsEnumerable,at=et(function(){return arguments}())?et:function(e){return Qe(e)&&nt.call(e,"callee")&&!rt.call(e,"callee")};var it=function(){return!1},ot=O((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,a=r&&r.exports===n?P.Buffer:void 0,i=(a?a.isBuffer:void 0)||it;e.exports=i})),st=/^(?:0|[1-9]\d*)$/;var lt=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&st.test(e))&&e>-1&&e%1==0&&e<t};var ct=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},ut={};ut["[object Float32Array]"]=ut["[object Float64Array]"]=ut["[object Int8Array]"]=ut["[object Int16Array]"]=ut["[object Int32Array]"]=ut["[object Uint8Array]"]=ut["[object Uint8ClampedArray]"]=ut["[object Uint16Array]"]=ut["[object Uint32Array]"]=!0,ut["[object Arguments]"]=ut["[object Array]"]=ut["[object ArrayBuffer]"]=ut["[object Boolean]"]=ut["[object DataView]"]=ut["[object Date]"]=ut["[object Error]"]=ut["[object Function]"]=ut["[object Map]"]=ut["[object Number]"]=ut["[object Object]"]=ut["[object RegExp]"]=ut["[object Set]"]=ut["[object String]"]=ut["[object WeakMap]"]=!1;var dt=function(e){return Qe(e)&&ct(e.length)&&!!ut[q(e)]};var pt=function(e){return function(t){return e(t)}},ft=O((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,a=r&&r.exports===n&&j.process,i=function(){try{var e=r&&r.require&&r.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=i})),mt=ft&&ft.isTypedArray,ht=mt?pt(mt):dt,_t=Object.prototype.hasOwnProperty;var vt=function(e,t){var n=Ue(e),r=!n&&at(e),a=!n&&!r&&ot(e),i=!n&&!r&&!a&&ht(e),o=n||r||a||i,s=o?Xe(e.length,String):[],l=s.length;for(var c in e)!t&&!_t.call(e,c)||o&&("length"==c||a&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||lt(c,l))||s.push(c);return s},gt=Object.prototype;var yt=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||gt)};var bt=function(e,t){return function(n){return e(t(n))}},wt=bt(Object.keys,Object),xt=Object.prototype.hasOwnProperty;var kt=function(e){if(!yt(e))return wt(e);var t=[];for(var n in Object(e))xt.call(e,n)&&"constructor"!=n&&t.push(n);return t};var Dt=function(e){return null!=e&&ct(e.length)&&!W(e)};var Mt=function(e){return Dt(e)?vt(e):kt(e)};var St=function(e){return Ve(e,Mt,Ze)},Ct=Object.prototype.hasOwnProperty;var Lt=function(e,t,n,r,a,i){var o=1&n,s=St(e),l=s.length;if(l!=St(t).length&&!o)return!1;for(var c=l;c--;){var u=s[c];if(!(o?u in t:Ct.call(t,u)))return!1}var d=i.get(e);if(d&&i.get(t))return d==t;var p=!0;i.set(e,t),i.set(t,e);for(var f=o;++c<l;){var m=e[u=s[c]],h=t[u];if(r)var _=o?r(h,m,u,t,e,i):r(m,h,u,e,t,i);if(!(void 0===_?m===h||a(m,h,n,r,i):_)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var v=e.constructor,g=t.constructor;v==g||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof g&&g instanceof g||(p=!1)}return i.delete(e),i.delete(t),p},Tt=se(P,"DataView"),Et=se(P,"Promise"),Ot=se(P,"Set"),jt=se(P,"WeakMap"),At=X(Tt),Pt=X(le),Yt=X(Et),$t=X(Ot),It=X(jt),Nt=q;(Tt&&"[object DataView]"!=Nt(new Tt(new ArrayBuffer(1)))||le&&"[object Map]"!=Nt(new le)||Et&&"[object Promise]"!=Nt(Et.resolve())||Ot&&"[object Set]"!=Nt(new Ot)||jt&&"[object WeakMap]"!=Nt(new jt))&&(Nt=function(e){var t=q(e),n="[object Object]"==t?e.constructor:void 0,r=n?X(n):"";if(r)switch(r){case At:return"[object DataView]";case Pt:return"[object Map]";case Yt:return"[object Promise]";case $t:return"[object Set]";case It:return"[object WeakMap]"}return t});var zt=Nt,Ft=Object.prototype.hasOwnProperty;var Rt=function(e,t,n,r,a,i){var o=Ue(e),s=Ue(t),l=o?"[object Array]":zt(e),c=s?"[object Array]":zt(t),u="[object Object]"==(l="[object Arguments]"==l?"[object Object]":l),d="[object Object]"==(c="[object Arguments]"==c?"[object Object]":c),p=l==c;if(p&&ot(e)){if(!ot(t))return!1;o=!0,u=!1}if(p&&!u)return i||(i=new Ee),o||ht(e)?Ie(e,t,n,r,a,i):Be(e,t,l,n,r,a,i);if(!(1&n)){var f=u&&Ft.call(e,"__wrapped__"),m=d&&Ft.call(t,"__wrapped__");if(f||m){var h=f?e.value():e,_=m?t.value():t;return i||(i=new Ee),a(h,_,n,r,i)}}return!!p&&(i||(i=new Ee),Lt(e,t,n,r,a,i))};var Ht=function e(t,n,r,a,i){return t===n||(null==t||null==n||!Qe(t)&&!Qe(n)?t!=t&&n!=n:Rt(t,n,r,a,e,i))};var Bt=function(e,t){return Ht(e,t)},qt={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},Ut=[],Vt=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,"_events",[]),s(this,"_setTooltipNodeEvent",(function(e,t,n,a){var i=e.relatedreference||e.toElement||e.relatedTarget;return!!r._tooltipNode.contains(i)&&(r._tooltipNode.addEventListener(e.type,(function n(i){var o=i.relatedreference||i.toElement||i.relatedTarget;r._tooltipNode.removeEventListener(e.type,n),t.contains(o)||r._scheduleHide(t,a.delay,a,i)})),!0)})),n=c({},qt,{},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||tn.options.defaultClass;Bt(this._classes,n)||(this.setClasses(n),t=!0),e=Jt(e);var r=!1,a=!1;for(var i in this.options.offset===e.offset&&this.options.placement===e.placement||(r=!0),(this.options.template!==e.template||this.options.trigger!==e.trigger||this.options.container!==e.container||t)&&(a=!0),e)this.options[i]=e[i];if(this._tooltipNode)if(a){var o=this._isOpen;this.dispose(),this._init(),o&&this.show()}else r&&this.popperInstance.update()}},{key:"_init",value:function(){var e="string"==typeof this.options.trigger?this.options.trigger.split(" "):[];this._isDisposed=!1,this._enableDocumentTouch=-1===e.indexOf("manual"),e=e.filter((function(e){return-1!==["click","hover","focus"].indexOf(e)})),this._setEventListeners(this.reference,e,this.options),this.$_originalTitle=this.reference.getAttribute("title"),this.reference.removeAttribute("title"),this.reference.setAttribute("data-original-title",this.$_originalTitle)}},{key:"_create",value:function(e,t){var n=window.document.createElement("div");n.innerHTML=t.trim();var r=n.childNodes[0];return r.id="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",this.hide),r.addEventListener("click",this.hide)),r}},{key:"_setContent",value:function(e,t){var n=this;this.asyncContent=!1,this._applyContent(e,t).then((function(){n.popperInstance.update()}))}},{key:"_applyContent",value:function(e,t){var n=this;return new Promise((function(r,a){var i=t.html,o=n._tooltipNode;if(o){var s=o.querySelector(n.options.innerSelector);if(1===e.nodeType){if(i){for(;s.firstChild;)s.removeChild(s.firstChild);s.appendChild(e)}}else{if("function"==typeof e){var l=e();return void(l&&"function"==typeof l.then?(n.asyncContent=!0,t.loadingClass&&p(o,t.loadingClass),t.loadingContent&&n._applyContent(t.loadingContent,t),l.then((function(e){return t.loadingClass&&f(o,t.loadingClass),n._applyContent(e,t)})).then(r).catch(a)):n._applyContent(l,t).then(r).catch(a))}i?s.innerHTML=e:s.innerText=e}r()}}))}},{key:"_show",value:function(e,t){if(!t||"string"!=typeof t.container||document.querySelector(t.container)){clearTimeout(this._disposeTimer),delete(t=Object.assign({},t)).offset;var n=!0;this._tooltipNode&&(p(this._tooltipNode,this._classes),n=!1);var r=this._ensureShown(e,t);return n&&this._tooltipNode&&p(this._tooltipNode,this._classes),p(e,["v-tooltip-open"]),r}}},{key:"_ensureShown",value:function(e,t){var n=this;if(this._isOpen)return this;if(this._isOpen=!0,Ut.push(this),this._tooltipNode)return this._tooltipNode.style.display="",this._tooltipNode.setAttribute("aria-hidden","false"),this.popperInstance.enableEventListeners(),this.popperInstance.update(),this.asyncContent&&this._setContent(t.title,t),this;var a=e.getAttribute("title")||t.title;if(!a)return this;var i=this._create(e,t.template);this._tooltipNode=i,e.setAttribute("aria-describedby",i.id);var o=this._findContainer(t.container,e);this._append(i,o);var s=c({},t.popperOptions,{placement:t.placement});return s.modifiers=c({},s.modifiers,{arrow:{element:this.options.arrowSelector}}),t.boundariesElement&&(s.modifiers.preventOverflow={boundariesElement:t.boundariesElement}),this.popperInstance=new r.a(e,i,s),this._setContent(a,t),requestAnimationFrame((function(){!n._isDisposed&&n.popperInstance?(n.popperInstance.update(),requestAnimationFrame((function(){n._isDisposed?n.dispose():n._isOpen&&i.setAttribute("aria-hidden","false")}))):n.dispose()})),this}},{key:"_noLongerOpen",value:function(){var e=Ut.indexOf(this);-1!==e&&Ut.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.disableEventListeners(),clearTimeout(this._disposeTimer);var t=tn.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)),f(this.reference,["v-tooltip-open"]),this}},{key:"_removeTooltipNode",value:function(){if(this._tooltipNode){var e=this._tooltipNode.parentNode;e&&(e.removeChild(this._tooltipNode),this.reference.removeAttribute("aria-describedby")),this._tooltipNode=null}}},{key:"_dispose",value:function(){var e=this;return this._isDisposed=!0,this.reference.removeAttribute("data-original-title"),this.$_originalTitle&&this.reference.setAttribute("title",this.$_originalTitle),this._events.forEach((function(t){var n=t.func,r=t.event;e.reference.removeEventListener(r,n)})),this._events=[],this._tooltipNode?(this._hide(),this._tooltipNode.removeEventListener("mouseenter",this.hide),this._tooltipNode.removeEventListener("click",this.hide),this.popperInstance.destroy(),this.popperInstance.options.removeOnDestroy||this._removeTooltipNode()):this._noLongerOpen(),this}},{key:"_findContainer",value:function(e,t){return"string"==typeof e?e=window.document.querySelector(e):!1===e&&(e=t.parentNode),e}},{key:"_append",value:function(e,t){t.appendChild(e)}},{key:"_setEventListeners",value:function(e,t,n){var r=this,a=[],i=[];t.forEach((function(e){switch(e){case"hover":a.push("mouseenter"),i.push("mouseleave"),r.options.hideOnTargetClick&&i.push("click");break;case"focus":a.push("focus"),i.push("blur"),r.options.hideOnTargetClick&&i.push("click");break;case"click":a.push("click"),i.push("click")}})),a.forEach((function(t){var a=function(t){!0!==r._isOpen&&(t.usedByTooltip=!0,r._scheduleShow(e,n.delay,n,t))};r._events.push({event:t,func:a}),e.addEventListener(t,a)})),i.forEach((function(t){var a=function(t){!0!==t.usedByTooltip&&r._scheduleHide(e,n.delay,n,t)};r._events.push({event:t,func:a}),e.addEventListener(t,a)}))}},{key:"_onDocumentTouch",value:function(e){this._enableDocumentTouch&&this._scheduleHide(this.reference,this.options.delay,this.options,e)}},{key:"_scheduleShow",value:function(e,t,n){var r=this,a=t&&t.show||t||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout((function(){return r._show(e,n)}),a)}},{key:"_scheduleHide",value:function(e,t,n,r){var a=this,i=t&&t.hide||t||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout((function(){if(!1!==a._isOpen&&a._tooltipNode.ownerDocument.body.contains(a._tooltipNode)){if("mouseleave"===r.type&&a._setTooltipNodeEvent(r,e,t,n))return;a._hide(e,n)}}),i)}}])&&o(t.prototype,n),a&&o(t,a),e}();"undefined"!=typeof document&&document.addEventListener("touchstart",(function(e){for(var t=0;t<Ut.length;t++)Ut[t]._onDocumentTouch(e)}),!m||{passive:!0,capture:!0});var Wt={enabled:!0},Kt=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"],Gt={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 Jt(e){var t={placement:void 0!==e.placement?e.placement:tn.options.defaultPlacement,delay:void 0!==e.delay?e.delay:tn.options.defaultDelay,html:void 0!==e.html?e.html:tn.options.defaultHtml,template:void 0!==e.template?e.template:tn.options.defaultTemplate,arrowSelector:void 0!==e.arrowSelector?e.arrowSelector:tn.options.defaultArrowSelector,innerSelector:void 0!==e.innerSelector?e.innerSelector:tn.options.defaultInnerSelector,trigger:void 0!==e.trigger?e.trigger:tn.options.defaultTrigger,offset:void 0!==e.offset?e.offset:tn.options.defaultOffset,container:void 0!==e.container?e.container:tn.options.defaultContainer,boundariesElement:void 0!==e.boundariesElement?e.boundariesElement:tn.options.defaultBoundariesElement,autoHide:void 0!==e.autoHide?e.autoHide:tn.options.autoHide,hideOnTargetClick:void 0!==e.hideOnTargetClick?e.hideOnTargetClick:tn.options.defaultHideOnTargetClick,loadingClass:void 0!==e.loadingClass?e.loadingClass:tn.options.defaultLoadingClass,loadingContent:void 0!==e.loadingContent?e.loadingContent:tn.options.defaultLoadingContent,popperOptions:c({},void 0!==e.popperOptions?e.popperOptions:tn.options.defaultPopperOptions)};if(t.offset){var n=i(t.offset),r=t.offset;("number"===n||"string"===n&&-1===r.indexOf(","))&&(r="0, ".concat(r)),t.popperOptions.modifiers||(t.popperOptions.modifiers={}),t.popperOptions.modifiers.offset={offset:r}}return t.trigger&&-1!==t.trigger.indexOf("click")&&(t.hideOnTargetClick=!1),t}function Zt(e,t){for(var n=e.placement,r=0;r<Kt.length;r++){var a=Kt[r];t[a]&&(n=a)}return n}function Xt(e){var t=i(e);return"string"===t?e:!(!e||"object"!==t)&&e.content}function Qt(e){e._tooltip&&(e._tooltip.dispose(),delete e._tooltip,delete e._tooltipOldShow),e._tooltipTargetClasses&&(f(e,e._tooltipTargetClasses),delete e._tooltipTargetClasses)}function en(e,t){var n,r=t.value,a=(t.oldValue,t.modifiers),i=Xt(r);i&&Wt.enabled?(e._tooltip?((n=e._tooltip).setContent(i),n.setOptions(c({},r,{placement:Zt(r,a)}))):n=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Xt(t),a=void 0!==t.classes?t.classes:tn.options.defaultClass,i=c({title:r},Jt(c({},t,{placement:Zt(t,n)}))),o=e._tooltip=new Vt(e,i);o.setClasses(a),o._vueEl=e;var s=void 0!==t.targetClasses?t.targetClasses:tn.options.defaultTargetClass;return e._tooltipTargetClasses=s,p(e,s),o}(e,r,a),void 0!==r.show&&r.show!==e._tooltipOldShow&&(e._tooltipOldShow=r.show,r.show?n.show():n.hide())):Qt(e)}var tn={options:Gt,bind:en,update:en,unbind:function(e){Qt(e)}};function nn(e){e.addEventListener("click",an),e.addEventListener("touchstart",on,!!m&&{passive:!0})}function rn(e){e.removeEventListener("click",an),e.removeEventListener("touchstart",on),e.removeEventListener("touchend",sn),e.removeEventListener("touchcancel",ln)}function an(e){var t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function on(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",sn),t.addEventListener("touchcancel",ln)}}function sn(e){var t=e.currentTarget;if(t.$_vclosepopover_touch=!1,1===e.changedTouches.length){var n=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function ln(e){e.currentTarget.$_vclosepopover_touch=!1}var cn={bind:function(e,t){var n=t.value,r=t.modifiers;e.$_closePopoverModifiers=r,(void 0===n||n)&&nn(e)},update:function(e,t){var n=t.value,r=t.oldValue,a=t.modifiers;e.$_closePopoverModifiers=a,n!==r&&(void 0===n||n?nn(e):rn(e))},unbind:function(e){rn(e)}};function un(e){var t=tn.options.popover[e];return void 0===t?tn.options[e]:t}var dn=!1;"undefined"!=typeof window&&"undefined"!=typeof navigator&&(dn=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var pn=[],fn=function(){};"undefined"!=typeof window&&(fn=window.Element);var mn={name:"VPopover",components:{ResizeObserver:a.a},props:{open:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placement:{type:String,default:function(){return un("defaultPlacement")}},delay:{type:[String,Number,Object],default:function(){return un("defaultDelay")}},offset:{type:[String,Number],default:function(){return un("defaultOffset")}},trigger:{type:String,default:function(){return un("defaultTrigger")}},container:{type:[String,Object,fn,Boolean],default:function(){return un("defaultContainer")}},boundariesElement:{type:[String,fn],default:function(){return un("defaultBoundariesElement")}},popperOptions:{type:Object,default:function(){return un("defaultPopperOptions")}},popoverClass:{type:[String,Array],default:function(){return un("defaultClass")}},popoverBaseClass:{type:[String,Array],default:function(){return tn.options.popover.defaultBaseClass}},popoverInnerClass:{type:[String,Array],default:function(){return tn.options.popover.defaultInnerClass}},popoverWrapperClass:{type:[String,Array],default:function(){return tn.options.popover.defaultWrapperClass}},popoverArrowClass:{type:[String,Array],default:function(){return tn.options.popover.defaultArrowClass}},autoHide:{type:Boolean,default:function(){return tn.options.popover.defaultAutoHide}},handleResize:{type:Boolean,default:function(){return tn.options.popover.defaultHandleResize}},openGroup:{type:String,default:null},openClass:{type:[String,Array],default:function(){return tn.options.popover.defaultOpenClass}}},data:function(){return{isOpen:!1,id:Math.random().toString(36).substr(2,10)}},computed:{cssClass:function(){return s({},this.openClass,this.isOpen)},popoverId:function(){return"popover_".concat(this.id)}},watch:{open:function(e){e?this.show():this.hide()},disabled:function(e,t){e!==t&&(e?this.hide():this.open&&this.show())},container:function(e){if(this.isOpen&&this.popperInstance){var t=this.$refs.popover,n=this.$refs.trigger,r=this.$_findContainer(this.container,n);if(!r)return void console.warn("No container for popover",this);r.appendChild(t),this.popperInstance.scheduleUpdate()}},trigger:function(e){this.$_removeEventListeners(),this.$_addEventListeners()},placement:function(e){var t=this;this.$_updatePopper((function(){t.popperInstance.options.placement=e}))},offset:"$_restartPopper",boundariesElement:"$_restartPopper",popperOptions:{handler:"$_restartPopper",deep:!0}},created:function(){this.$_isDisposed=!1,this.$_mounted=!1,this.$_events=[],this.$_preventOpen=!1},mounted:function(){var e=this.$refs.popover;e.parentNode&&e.parentNode.removeChild(e),this.$_init(),this.open&&this.show()},deactivated:function(){this.hide()},beforeDestroy:function(){this.dispose()},methods:{show:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.event,r=(t.skipDelay,t.force),a=void 0!==r&&r;!a&&this.disabled||(this.$_scheduleShow(n),this.$emit("show")),this.$emit("update:open",!0),this.$_beingShowed=!0,requestAnimationFrame((function(){e.$_beingShowed=!1}))},hide:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.event;e.skipDelay;this.$_scheduleHide(t),this.$emit("hide"),this.$emit("update:open",!1)},dispose:function(){if(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.popperInstance&&(this.popperInstance.destroy(),!this.popperInstance.options.removeOnDestroy)){var e=this.$refs.popover;e.parentNode&&e.parentNode.removeChild(e)}this.$_mounted=!1,this.popperInstance=null,this.isOpen=!1,this.$emit("dispose")},$_init:function(){-1===this.trigger.indexOf("manual")&&this.$_addEventListeners()},$_show:function(){var e=this,t=this.$refs.trigger,n=this.$refs.popover;if(clearTimeout(this.$_disposeTimer),!this.isOpen){if(this.popperInstance&&(this.isOpen=!0,this.popperInstance.enableEventListeners(),this.popperInstance.scheduleUpdate()),!this.$_mounted){var a=this.$_findContainer(this.container,t);if(!a)return void console.warn("No container for popover",this);a.appendChild(n),this.$_mounted=!0}if(!this.popperInstance){var i=c({},this.popperOptions,{placement:this.placement});if(i.modifiers=c({},i.modifiers,{arrow:c({},i.modifiers&&i.modifiers.arrow,{element:this.$refs.arrow})}),this.offset){var o=this.$_getOffset();i.modifiers.offset=c({},i.modifiers&&i.modifiers.offset,{offset:o})}this.boundariesElement&&(i.modifiers.preventOverflow=c({},i.modifiers&&i.modifiers.preventOverflow,{boundariesElement:this.boundariesElement})),this.popperInstance=new r.a(t,n,i),requestAnimationFrame((function(){if(e.hidden)return e.hidden=!1,void e.$_hide();!e.$_isDisposed&&e.popperInstance?(e.popperInstance.scheduleUpdate(),requestAnimationFrame((function(){if(e.hidden)return e.hidden=!1,void e.$_hide();e.$_isDisposed?e.dispose():e.isOpen=!0}))):e.dispose()}))}var s=this.openGroup;if(s)for(var l,u=0;u<pn.length;u++)(l=pn[u]).openGroup!==s&&(l.hide(),l.$emit("close-group"));pn.push(this),this.$emit("apply-show")}},$_hide:function(){var e=this;if(this.isOpen){var t=pn.indexOf(this);-1!==t&&pn.splice(t,1),this.isOpen=!1,this.popperInstance&&this.popperInstance.disableEventListeners(),clearTimeout(this.$_disposeTimer);var n=tn.options.popover.disposeTimeout||tn.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=i(this.offset),t=this.offset;return("number"===e||"string"===e&&-1===t.indexOf(","))&&(t="0, ".concat(t)),t},$_addEventListeners:function(){var e=this,t=this.$refs.trigger,n=[],r=[];("string"==typeof this.trigger?this.trigger.split(" ").filter((function(e){return-1!==["click","hover","focus"].indexOf(e)})):[]).forEach((function(e){switch(e){case"hover":n.push("mouseenter"),r.push("mouseleave");break;case"focus":n.push("focus"),r.push("blur");break;case"click":n.push("click"),r.push("click")}})),n.forEach((function(n){var r=function(t){e.isOpen||(t.usedByTooltip=!0,!e.$_preventOpen&&e.show({event:t}),e.hidden=!1)};e.$_events.push({event:n,func:r}),t.addEventListener(n,r)})),r.forEach((function(n){var r=function(t){t.usedByTooltip||(e.hide({event:t}),e.hidden=!0)};e.$_events.push({event:n,func:r}),t.addEventListener(n,r)}))},$_scheduleShow:function(){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),e)this.$_show();else{var t=parseInt(this.delay&&this.delay.show||this.delay||0);this.$_scheduleTimer=setTimeout(this.$_show.bind(this),t)}},$_scheduleHide:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),n)this.$_hide();else{var r=parseInt(this.delay&&this.delay.hide||this.delay||0);this.$_scheduleTimer=setTimeout((function(){if(e.isOpen){if(t&&"mouseleave"===t.type)if(e.$_setTooltipNodeEvent(t))return;e.$_hide()}}),r)}},$_setTooltipNodeEvent:function(e){var t=this,n=this.$refs.trigger,r=this.$refs.popover,a=e.relatedreference||e.toElement||e.relatedTarget;return!!r.contains(a)&&(r.addEventListener(e.type,(function a(i){var o=i.relatedreference||i.toElement||i.relatedTarget;r.removeEventListener(e.type,a),n.contains(o)||t.hide({event:i})})),!0)},$_removeEventListeners:function(){var e=this.$refs.trigger;this.$_events.forEach((function(t){var n=t.func,r=t.event;e.removeEventListener(r,n)})),this.$_events=[]},$_updatePopper:function(e){this.popperInstance&&(e(),this.isOpen&&this.popperInstance.scheduleUpdate())},$_restartPopper:function(){if(this.popperInstance){var e=this.isOpen;this.dispose(),this.$_isDisposed=!1,this.$_init(),e&&this.show({skipDelay:!0,force:!0})}},$_handleGlobalClose:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$_beingShowed||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),n&&(this.$_preventOpen=!0,setTimeout((function(){t.$_preventOpen=!1}),300)))},$_handleResize:function(){this.isOpen&&this.popperInstance&&(this.popperInstance.scheduleUpdate(),this.$emit("resize"))}}};function hn(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=function(n){var r=pn[n];if(r.$refs.popover){var a=r.$refs.popover.contains(e.target);requestAnimationFrame((function(){(e.closeAllPopover||e.closePopover&&a||r.autoHide&&!a)&&r.$_handleGlobalClose(e,t)}))}},r=0;r<pn.length;r++)n(r)}"undefined"!=typeof document&&"undefined"!=typeof window&&(dn?document.addEventListener("touchend",(function(e){hn(e,!0)}),!m||{passive:!0,capture:!0}):window.addEventListener("click",(function(e){hn(e)}),!0));var _n=mn,vn=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.popoverId,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")],2),e._v(" "),e.handleResize?n("ResizeObserver",{on:{notify:e.$_handleResize}}):e._e()],1),e._v(" "),n("div",{ref:"arrow",class:e.popoverArrowClass})])])])};vn._withStripped=!0;var gn=function(e,t,n,r,a,i,o,s,l,c){"boolean"!=typeof o&&(l=s,s=o,o=!1);const u="function"==typeof n?n.options:n;let d;if(e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,a&&(u.functional=!0)),r&&(u._scopeId=r),i?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},u._ssrRegister=d):t&&(d=o?function(e){t.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),d)if(u.functional){const e=u.render;u.render=function(t,n){return d.call(n),e(t,n)}}else{const e=u.beforeCreate;u.beforeCreate=e?[].concat(e,d):[d]}return n}({render:vn,staticRenderFns:[]},void 0,_n,void 0,!1,void 0,!1,void 0,void 0,void 0),yn=function(){try{var e=se(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var bn=function(e,t,n){"__proto__"==t&&yn?yn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var wn=function(e,t,n){(void 0!==n&&!v(e[t],n)||void 0===n&&!(t in e))&&bn(e,t,n)};var xn=function(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++a];if(!1===n(i[l],l,i))break}return t}}(),kn=O((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,a=r&&r.exports===n?P.Buffer:void 0,i=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=i?i(n):new e.constructor(n);return e.copy(r),r}}));var Dn=function(e){var t=new e.constructor(e.byteLength);return new Ne(t).set(new Ne(e)),t};var Mn=function(e,t){var n=t?Dn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Sn=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},Cn=Object.create,Ln=function(){function e(){}return function(t){if(!U(t))return{};if(Cn)return Cn(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Tn=bt(Object.getPrototypeOf,Object);var En=function(e){return"function"!=typeof e.constructor||yt(e)?{}:Ln(Tn(e))};var On=function(e){return Qe(e)&&Dt(e)},jn=Function.prototype,An=Object.prototype,Pn=jn.toString,Yn=An.hasOwnProperty,$n=Pn.call(Object);var In=function(e){if(!Qe(e)||"[object Object]"!=q(e))return!1;var t=Tn(e);if(null===t)return!0;var n=Yn.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Pn.call(n)==$n};var Nn=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},zn=Object.prototype.hasOwnProperty;var Fn=function(e,t,n){var r=e[t];zn.call(e,t)&&v(r,n)&&(void 0!==n||t in e)||bn(e,t,n)};var Rn=function(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),a?bn(n,s,l):Fn(n,s,l)}return n};var Hn=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Bn=Object.prototype.hasOwnProperty;var qn=function(e){if(!U(e))return Hn(e);var t=yt(e),n=[];for(var r in e)("constructor"!=r||!t&&Bn.call(e,r))&&n.push(r);return n};var Un=function(e){return Dt(e)?vt(e,!0):qn(e)};var Vn=function(e){return Rn(e,Un(e))};var Wn=function(e,t,n,r,a,i,o){var s=Nn(e,n),l=Nn(t,n),c=o.get(l);if(c)wn(e,n,c);else{var u=i?i(s,l,n+"",e,t,o):void 0,d=void 0===u;if(d){var p=Ue(l),f=!p&&ot(l),m=!p&&!f&&ht(l);u=l,p||f||m?Ue(s)?u=s:On(s)?u=Sn(s):f?(d=!1,u=kn(l,!0)):m?(d=!1,u=Mn(l,!0)):u=[]:In(l)||at(l)?(u=s,at(s)?u=Vn(s):U(s)&&!W(s)||(u=En(l))):d=!1}d&&(o.set(l,u),a(u,l,r,i,o),o.delete(l)),wn(e,n,u)}};var Kn=function e(t,n,r,a,i){t!==n&&xn(n,(function(o,s){if(i||(i=new Ee),U(o))Wn(t,n,s,r,e,a,i);else{var l=a?a(Nn(t,s),o,s+"",t,n,i):void 0;void 0===l&&(l=o),wn(t,s,l)}}),Un)};var Gn=function(e){return e};var Jn=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)},Zn=Math.max;var Xn=function(e,t,n){return t=Zn(void 0===t?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=Zn(r.length-t,0),o=Array(i);++a<i;)o[a]=r[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=r[a];return s[t]=n(o),Jn(e,this,s)}};var Qn=function(e){return function(){return e}},er=yn?function(e,t){return yn(e,"toString",{configurable:!0,enumerable:!1,value:Qn(t),writable:!0})}:Gn,tr=Date.now;var nr=function(e){var t=0,n=0;return function(){var r=tr(),a=16-(r-n);if(n=r,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(er);var rr=function(e,t){return nr(Xn(e,t,Gn),e+"")};var ar=function(e,t,n){if(!U(n))return!1;var r=typeof t;return!!("number"==r?Dt(n)&<(t,n.length):"string"==r&&t in n)&&v(n[t],e)};var ir=function(e){return rr((function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,o&&ar(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var s=n[r];s&&e(t,s,r,i)}return t}))}((function(e,t,n){Kn(e,t,n)}));!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}(".resize-observer[data-v-b329ee4c]{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-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}");var or={install:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e.installed){e.installed=!0;var r={};ir(r,Gt,n),or.options=r,tn.options=r,t.directive("tooltip",tn),t.directive("close-popover",cn),t.component("v-popover",gn)}},get enabled(){return Wt.enabled},set enabled(e){Wt.enabled=e}},sr=null;"undefined"!=typeof window?sr=window.Vue:void 0!==e&&(sr=e.Vue),sr&&sr.use(or),t.a=or}).call(this,n("yLpj"))},"43KI":function(e,t,n){(t=e.exports=n("rXFu")).Stream=t,t.Readable=t,t.Writable=n("3BRs"),t.Duplex=n("sZro"),t.Transform=n("J78i"),t.PassThrough=n("eA/Y")},"48T8":function(e,t,n){"use strict";t.a={name:null,phone:null,address_street_1:null,address_street_2:null,city:null,state:null,country_id:null,zip:null,type:null}},"49sm":function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},"4IR+":function(e){e.exports=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":"Users"},"general":{"add_company":"Add Company","view_pdf":"PDF anzeigen","copy_pdf_url":"Copy PDF Url","download_pdf":"PDF herunterladen","save":"Speichern","create":"Create","cancel":"Abrechen","update":"Aktualisieren","deselect":"Entfernen","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":"Körper","message":"Nachricht","send":"Send","go_back":"zurück","back_to_login":"Zurück zum Login?","home":"Startseite","filter":"Filter","delete":"Löschen","edit":"Ändern","view":"Anzeigen","add_new_item":"Artikel hinzufügen","clear_all":"Alle entfernen","showing":"Anzeigen","of":"von","actions":"Aktionen","subtotal":"ZWISCHENSUMME","discount":"RABATT","fixed":"Behoben","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":"Powered by","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":"Choose Note","no_note_found":"No Note Found","insert_note":"Insert Note"},"dashboard":{"select_year":"Jahr wählen","cards":{"due_amount":"Offene Beträge","customers":"Kunden","invoices":"Rechnungen","estimates":"Kostenvoranschläge"},"chart_info":{"total_sales":"Verkäufe gesamt","total_receipts":"Eingänge gesamt","total_expense":"Gesamtausgaben","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":"Search...","customers":"Kunden","users":"Users","no_results_found":"No Results Found"},"customers":{"title":"Kunden","add_customer":"Kunde hinzufügen","contacts_list":"Kunden-Liste","name":"Name","mail":"Mail | Mails","statement":"Statement","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":"Overview","enable_portal":"Enable Portal","country":"Land","state":"Bundesland","city":"Stadt","zip_code":"PLZ","added_on":"Hinzugefügt am","action":"Aktion","password":"Passwort","street_number":"Hausnummer","primary_currency":"Primäre Währung","description":"Beschreibung","add_new_customer":"Neuen Kunden hinzufügen","save_customer":"Kunde speichern","update_customer":"Kunden ändern","customer":"Kunde | Kunden","new_customer":"Neuer Kunde","edit_customer":"Kunde bearbeiten","basic_info":"Basisinformation","billing_address":"Rechnungsadresse","shipping_address":"Versand-Adresse","copy_billing_address":"Rechnungsadresse kopieren","no_customers":"Noch keine Kunden!","no_customers_found":"Keine Kunden gefunden!","list_of_customers":"Dieser Abschnitt enthält die Liste der Kunden.","primary_display_name":"Primärer Anzeige Name","select_currency":"Währung wählen","select_a_customer":"Wählen Sie einen Kunden","type_or_click":"Eingeben oder anklicken zum auswählen","new_transaction":"Neue Transaktion","no_matching_customers":"Es gibt keine passenden Kunden!","phone_number":"Telefonnummer","create_date":"Erstellungsdatum","confirm_delete":"Sie können diesen Kunden und alle zugehörigen Rechnungen, Schätzungen und Zahlungen nicht wiederherstellen. | Sie können diesen Kunden und alle zugehörigen Rechnungen, Schätzungen und Zahlungen nicht wiederherstellen.","created_message":"Customer created successfully","updated_message":"Kunde erfolgreich aktualisiert","deleted_message":"Kunden erfolgreich gelöscht | Kunden erfolgreich gelöscht"},"items":{"title":"Artikel","items_list":"Artikel-Liste","name":"Name","unit":"Einheit","description":"Beschreibung","added_on":"Hinzugefügt am","price":"Preis","date_of_creation":"Erstellt am","action":"Aktion","add_item":"Artikel hinzufügen","save_item":"Artikel speichern","update_item":"Artikel ändern","item":"Artikel | Artikel","add_new_item":"Neuen Artikel hinzufügen","new_item":"Neuer Artikel","edit_item":"Artikel bearbeiten","no_items":"Keine Artikel vorhanden!","list_of_items":"Dieser Abschnitt enthält die Liste der Artikel.","select_a_unit":"wählen Sie die Einheit","taxes":"Steuern","item_attached_message":"Ein Artikel der bereits verwendet wird kann nicht gelöscht werden","confirm_delete":"Sie können diesen Artikel nicht wiederherstellen | Sie können diese Artikel nicht wiederherstellen","created_message":"Artikel erfolgreich erstellt","updated_message":"Artikel erfolgreich aktualisiert","deleted_message":"Artikel erfolgreich gelöscht | Artikel erfolgreich gelöscht"},"estimates":{"title":"Kostenvoranschläge","estimate":"Kostenvoranschlag | Kostenvoranschläge","estimates_list":"Liste Kostenvoranschläge","days":"{days} Tage","months":"{months} Monat","years":"{years} Jahre","all":"Alle","paid":"Bezahlt","unpaid":"Unbezahlte","customer":"KUNDEN","ref_no":"REF. - NR.","number":"ANZAHL","amount_due":"OFFENER BETRAG","partially_paid":"Teilweise bezahlt","total":"Gesamt","discount":"Rabatt","sub_total":"Zwischensumme","estimate_number":"Kostenvoran. Nummer","ref_number":"Ref-Nummer","contact":"Kontakt","add_item":"Fügen Sie ein Artikel hinzu","date":"Datum","due_date":"Fälligkeit","expiry_date":"Zahlungsziel","status":"Status","add_tax":"Steuer hinzufügen","amount":"Summe","action":"Aktion","notes":"Hinweise","tax":"Steuer","estimate_template":"Vorlage","convert_to_invoice":"Konvertieren in Rechnung","mark_as_sent":"Als gesendet markieren","send_estimate":"Kostenvoranschlag senden","resend_estimate":"Resend Estimate","record_payment":"Zahlung erfassen","add_estimate":"Kostenvoranschlag hinzufügen","save_estimate":"Kostenvoranschlag speichern","confirm_conversion":"Sie möchten, konvertieren Sie diese Schätzung in die Rechnung?","conversion_message":"Rechnung erfolgreich erstellt","confirm_send_estimate":"Der Kostenvoranschlag wird per E-Mail an den Kunden gesendet","confirm_mark_as_sent":"Dieser Kostenvoranschlag wird als gesendet markiert","confirm_mark_as_accepted":"Dieser Kostenvoranschlag wird als angenommen markiert","confirm_mark_as_rejected":"Dieser Kostenvoranschlag wird als abgelehnt markiert","no_matching_estimates":"Es gibt keine übereinstimmenden Kostenvoranschläge!","mark_as_sent_successfully":"Kostenvoranschlag als gesendet markiert.","send_estimate_successfully":"Kostenvoranschlag erfolgreich gesendet","errors":{"required":"Feld ist erforderlich"},"accepted":"Angenommen","sent":"Gesendet","draft":"Entwurf","declined":"Abgelehnt","new_estimate":"Neuer Kostenvoranschlag","add_new_estimate":"Neuen Kostenvoranschlag hinzufügen","update_Estimate":"Kostenvoranschlag aktualisieren","edit_estimate":"Kostenvoranschlag ändern","items":"Artikel","Estimate":"Kostenvoranschlag | Kostenvoranschläge","add_new_tax":"neuen Steuersatz hinzufügen","no_estimates":"Keine Kostenvoranschläge vorhanden!","list_of_estimates":"Dieser Abschnitt enthält die Liste der Kostenvoranschläge.","mark_as_rejected":"Markiert als abgelehnt","mark_as_accepted":"Markiert als angenommen","marked_as_accepted_message":"Kostenvoranschlag als angenommen markiert","marked_as_rejected_message":"Kostenvoranschlag als abgelehnt markiert","confirm_delete":"Der Kostenvoranschlag kann nicht wiederhergestellt werden | Die Kostenvoranschläge können nicht wiederhergestellt werden","created_message":"Kostenvoranschlag erfolgreich erstellt","updated_message":"Kostenvoranschlag erfolgreich aktualisiert","deleted_message":"Kostenvoranschlag erfolgreich gelöscht | Kostenvoranschläge erfolgreich gelöscht","user_email_does_not_exist":"Benutzer-E-Mail nicht vorhanden","something_went_wrong":"Da ging etwas schief","item":{"title":"Titel","description":"Beschreibung","quantity":"Menge","price":"Preis","discount":"Rabatt","total":"Gesamt","total_discount":"Rabatt Gesamt","sub_total":"Zwischensumme","tax":"Steuer","amount":"Summe","select_an_item":"Wählen Sie einen Artikel","type_item_description":"Artikel Beschreibung (optional)"}},"invoices":{"title":"Rechnungen","invoices_list":"Liste der Rechnungen","days":"{days} Tage","months":"{months} Monat","years":"{years} Jahre","all":"Alle","paid":"Bezahlt","unpaid":"Unbezahlte","customer":"KUNDEN","paid_status":"BEZAHLT-STATUS","ref_no":"REF. - NR.","number":"ANZAHL","amount_due":"OFFENER BETRAG","partially_paid":"Teilzahlung","total":"Gesamt","discount":"Rabatt","sub_total":"Zwischensumme","invoice":"Rechnung | Rechnungen","invoice_number":"Rechnungsnummer","ref_number":"Ref-Nummer","contact":"Kontakt","add_item":"Fügen Sie ein Artikel hinzu","date":"Datum","due_date":"Fälligkeit","status":"Status","add_tax":"Steuersatz hinzufügen","amount":"Summe","action":"Aktion","notes":"Hinweise","view":"Anzeigen","send_invoice":"Rechnung senden","resend_invoice":"Resend Invoice","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":"Send Payment Receipt","send_payment":"Senden Sie die Zahlung","save_payment":"Zahlung speichern","update_payment":"Zahlung ändern","payment":"Zahlung | Zahlungen","no_payments":"Keine Zahlungen vorhanden!","no_matching_payments":"Es gibt keine passenden Zahlungen!","list_of_payments":"Dieser Abschnitt enthält die Liste der Zahlungen.","select_payment_mode":"Wählen Sie den Zahlungsmodus","confirm_mark_as_sent":"Dieser Kostenvoranschlag wird als gesendet markiert","confirm_send_payment":"This payment will be sent via email to the customer","send_payment_successfully":"Payment sent successfully","user_email_does_not_exist":"Benutzer-E-Mail existiert nicht","something_went_wrong":"Da ist etwas schief gelaufen","confirm_delete":"Sie können diese Zahlung nicht wiederherstellen. | Sie können diese Zahlungen nicht wiederherstellen.","created_message":"Zahlung erfolgreich erstellt","updated_message":"Zahlung erfolgreich aktualisiert","deleted_message":"Zahlung erfolgreich gelöscht | Zahlungen erfolgreich gelöscht","invalid_amount_message":"Zahlungsbetrag ist ungültig"},"expenses":{"title":"Aufwendungen/Ausgaben","expenses_list":"Liste der Ausgaben","select_a_customer":"Wählen Sie einen Kunden","expense_title":"Titel","customer":"Kundin","contact":"Kontakt","category":"Kategorie","from_date":"Von Datum","to_date":"bis Datum","expense_date":"Datum","description":"Beschreibung","receipt":"Eingang","amount":"Summe","action":"Aktion","note":"Hinweis","category_id":"Kategorie-Id","date":"Aufwandsdatum","add_expense":"Aufwendung hinzufügen","add_new_expense":"Neue Aufwendung hinzufügen","save_expense":"Aufwendung speichern","update_expense":"Aufwendung aktualisieren","download_receipt":"Quittung herunterladen","edit_expense":"Aufwendung ändern","new_expense":"Neue Aufwendung","expense":"Aufwendung | Aufwendungen","no_expenses":"Noch keine Ausgaben!","list_of_expenses":"Dieser Abschnitt enthält die Liste der Ausgaben.","confirm_delete":"Sie können diese Ausgabe nicht wiederherstellen. | Sie können diese Ausgaben nicht wiederherstellen.","created_message":"Aufwand erfolgreich erstellt","updated_message":"Aufwand erfolgreich aktualisiert","deleted_message":"Aufwand erfolgreich gelöscht | Aufwand erfolgreich gelöscht","categories":{"categories_list":"Liste der Kategorien","title":"Titel","name":"Name","description":"Beschreibung","amount":"Summe","actions":"Aktionen","add_category":"Kategorie hinzufügen","new_category":"Neue Kategorie","category":"Kategorie | Kategorien","select_a_category":"Wählen Sie eine Kategorie"}},"login":{"email":"E-Mail","password":"Passwort","forgot_password":"Passwort vergessen?","or_signIn_with":"oder Anmelden mit","login":"Anmelden","register":"Registrieren","reset_password":"Passwort zurücksetzen","password_reset_successfully":"Passwort erfolgreich zurückgesetzt","enter_email":"Geben Sie Ihre E-Mail ein","enter_password":"Geben Sie das Passwort ein","retype_password":"Passwort bestätigen","login_placeholder":"mail@beispiel.de"},"users":{"title":"Users","users_list":"Users List","name":"Name","description":"Beschreibung","added_on":"Hinzugefügt am","date_of_creation":"Erstellt am","action":"Aktion","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":"E-Mail","phone":"Telefon","password":"Passwort","user_attached_message":"Ein Artikel der bereits verwendet wird kann nicht gelöscht werden","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":"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":"Vertrieb","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":"Backup","file_disk":"File Disk","custom_fields":"Benutzerdefinierte Felder","payment_modes":"Payment Modes","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":"Domain","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":"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":"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":"Suffix","yes":"Ja","no":"Nein","order":"Auftrag","custom_field_confirm_delete":"Sie können dieses benutzerdefinierte Feld nicht wiederherstellen","already_in_use":"Benutzerdefiniertes Feld wird bereits verwendet","deleted_message":"Benutzerdefiniertes Feld erfolgreich gelöscht","options":"Optionen","add_option":"Optionen hinzufügen","add_another_option":"Fügen Sie eine weitere Option hinzu","sort_in_alphabetical_order":"In alphabetischer Reihenfolge sortieren","add_options_in_bulk":"Fügen Sie Optionen in großen Mengen hinzu","use_predefined_options":"Verwenden Sie vordefinierte Optionen","select_custom_date":"Wählen Sie Benutzerdefiniertes Datum","select_relative_date":"Wählen Sie Relatives Datum","ticked_by_default":"Standardmäßig aktiviert","updated_message":"Benutzerdefiniertes Feld erfolgreich aktualisiert","added_message":"Benutzerdefiniertes Feld erfolgreich hinzugefügt"},"customization":{"customization":"Anpassung","save":"Speichern","addresses":{"title":"Adressen","section_description":"Sie können die Rechnungsadresse und das Versandadressenformat des Kunden festlegen (nur in PDF angezeigt). ","customer_billing_address":"Rechnungsadresse des Kunden","customer_shipping_address":"Versand-Adresse des Kunden","company_address":"Firma Adresse","insert_fields":"Felder einfügen","contact":"Kontakt","address":"Adresse","display_name":"Anzeigename","primary_contact_name":"Ansprechpartner","email":"E-Mail","website":"Webseite","name":"Name","country":"Land","state":"Bundesland","city":"Stadt","company_name":"Name des Unternehmens","address_street_1":"Strasse","address_street_2":"Zusatz Strasse","phone":"Telefon","zip_code":"PLZ","address_setting_updated":"Adresse-Einstellung erfolgreich aktualisiert"},"updated_message":"Unternehmensinformationen wurden erfolgreich aktualisiert","invoices":{"title":"Rechnungen","notes":"Hinweise","invoice_prefix":"Rechnung Präfix","default_invoice_email_body":"Default Invoice Email Body","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":"Company Address Format","shipping_address_format":"Shipping Address Format","billing_address_format":"Billing Address Format","invoice_setting_updated":"Rechnungseinstellung erfolgreich aktualisiert"},"estimates":{"title":"Kostenvoranschläge","estimate_prefix":"Kostenvoranschlag Präfix","default_estimate_email_body":"Default Estimate Email Body","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":"Company Address Format","billing_address_format":"Billing Address Format","shipping_address_format":"Shipping Address Format"},"payments":{"title":"Zahlungen","description":"Modes of transaction for payments","payment_prefix":"Zahlung Präfix","default_payment_email_body":"Default Payment Email Body","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":"Payment Modes","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":"Company Address Format","from_customer_address_format":"From Customer Address 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":"Save time by creating notes and reusing them on your invoices, estimates & payments.","notes":"Hinweise","type":"Art","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":"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":"Default Language","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":"Select Date Format","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":"Requirements","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":"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":"Aktion","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":"Art","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":"Aktion","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-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":"From Address","username":"Benutzername","next":"Next","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":"App Domain","username":"Datenbank Benutzername","db_name":"Datenbank Name","db_path":"Database Path","desc":"Erstellen Sie eine Datenbank auf Ihrem Server und legen Sie die Anmeldeinformationen mithilfe des folgenden Formulars fest."},"permissions":{"permissions":"Berechtigungen","permission_confirm_title":"Sind Sie sicher, dass Sie fortfahren möchten?","permission_confirm_desc":"Prüfung der Berechtigung der Ordner fehlgeschlagen.","permission_desc":"Unten finden Sie eine Liste der Ordnerberechtigungen, die erforderlich sind, damit die App funktioniert. Wenn die Berechtigungsprüfung fehlschlägt, müssen Sie Ihre Ordnerberechtigungen aktualisieren."},"mail":{"host":"E-Mail-Host","port":"E-Mail-Port","driver":"E-Mail-Treiber","secret":"Verschlüsselung","mailgun_secret":"Mailgun Verschlüsselung","mailgun_domain":"Domain","mailgun_endpoint":"Mailgun-Endpunkt","ses_secret":"SES Verschlüsselung","ses_key":"SES-Taste","password":"E-Mail-Passwort","username":"E-Mail-Benutzername","mail_config":"E-Mail-Konfiguration","from_name":"Von E-Mail-Absendername","from_mail":"Von E-Mail-Absenderadresse","encryption":"E-Mail-Verschlüsselung","mail_config_desc":"Unten finden Sie das Formular zum Konfigurieren des E-Mail-Treibers zum Senden von E-Mails über die App. Sie können auch Drittanbieter wie Sendgrid, SES usw. konfigurieren."},"req":{"system_req":"System Anforderungen","php_req_version":"Php (version {version} erforderlich)","check_req":"Anforderungen prüfen","system_req_desc":"Crater hat einige Serveranforderungen. Stellen Sie sicher, dass Ihr Server die erforderliche PHP-Version und alle unten genannten Erweiterungen hat."},"errors":{"migrate_failed":"Migration ist Fehlgeschlagen","database_variables_save_error":"Konfiguration kann nicht in EN.env-Datei geschrieben werden. Bitte überprüfen Sie die Dateiberechtigungen.","mail_variables_save_error":"E-Mail-Konfiguration fehlgeschlagen.","connection_failed":"Datenbankverbindung fehlgeschlagen","database_should_be_empty":"Datenbank sollte leer sein"},"success":{"mail_variables_save_successfully":"E-Mail erfolgreich konfiguriert","database_variables_save_successfully":"Datenbank erfolgreich konfiguriert."}},"layout_login":{"copyright_crater":"Copyright @ Crater - 2020","super_simple_invoicing":"Super einfache Buchhaltung","for_freelancer":"für Freelancers &","small_businesses":"kleine Unternehmen","crater_help":"Crater hilft dir eine wunderschönen Überblick über deine Buchhaltung zuhaben.","invoices_and_estimates":"Die Möglichkeit mehrere Versionen von Rechnungen und Kosten zuerstellen."},"validation":{"invalid_phone":"Ungültige Telefonnummer","invalid_url":"Ungültige URL (Bsp.: http://www.crater.com)","invalid_domain_url":"Ungültige URL (Bsp.: crater.com)","required":"Feld ist erforderlich","email_incorrect":"Falsche E-Mail.","email_already_taken":"Die E-Mail ist bereits vergeben.","email_does_not_exist":"Benutzer mit der angegebenen E-Mail existiert nicht","item_unit_already_taken":"Die Artikeleinheit wurde bereits vergeben","payment_mode_already_taken":"Der Zahlungsmodus wurde bereits verwendet","send_reset_link":"Link zum Zurücksetzen senden","not_yet":"Noch erhalten? Erneut senden","password_min_length":"Password muß {count} Zeichen enthalten","name_min_length":"Name muss mindestens {count} Zeichen enthalten.","enter_valid_tax_rate":"Geben Sie einen gültige Steuersatz ein","numbers_only":"Nur Zahlen.","characters_only":"Nur Zeichen.","password_incorrect":"Passwörter müssen identisch sein","password_length":"Passwort muss {count} Zeichen lang sein.","qty_must_greater_than_zero":"Die Menge muss größer als 0 sein.","price_greater_than_zero":"Preis muss größer als 0 sein.","payment_greater_than_zero":"Die Zahlung muss größer als 0 sein.","payment_greater_than_due_amount":"Die eingegebene Zahlung ist mehr als der fällige Betrag dieser Rechnung.","quantity_maxlength":"Die Menge sollte nicht größer als 20 Ziffern sein.","price_maxlength":"Der Preis sollte nicht größer als 20 Ziffern sein.","price_minvalue":"Der Preis sollte größer als 0 sein.","amount_maxlength":"Der Betrag sollte nicht größer als 20 Ziffern sein.","amount_minvalue":"Betrag sollte größer als 0 sein.","description_maxlength":"Die Beschreibung sollte nicht länger als 255 Zeichen sein.","subject_maxlength":"Der Betreff sollte nicht länger als 100 Zeichen sein.","message_maxlength":"Die Nachricht sollte nicht länger als 255 Zeichen sein.","maximum_options_error":"Maximal {max} Optionen ausgewählt. Entfernen Sie zuerst eine ausgewählte Option, um eine andere auszuwählen.","notes_maxlength":"Notizen sollten nicht länger als 255 Zeichen sein.","address_maxlength":"Die Adresse sollte nicht länger als 255 Zeichen sein.","ref_number_maxlength":"Ref Number sollte nicht länger als 255 Zeichen sein.","prefix_maxlength":"Das Präfix sollte nicht länger als 5 Zeichen sein.","something_went_wrong":"Da ist etwas schief gelaufen"},"pdf_estimate_label":"Kostenvoranschlag","pdf_estimate_number":"Kostenvoran. Nummer","pdf_estimate_date":"Datum Kostenvoranschlag","pdf_estimate_expire_date":"Expiry date","pdf_invoice_label":"Rechnung","pdf_invoice_number":"Rechnungsnummer","pdf_invoice_date":"Rechnungsdatum","pdf_invoice_due_date":"Due date","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":"Subtotal","pdf_total":"Gesamt","pdf_payment_receipt_label":"PAYMENT RECEIPT","pdf_payment_date":"Payment Date","pdf_payment_number":"Zahlungsnummer","pdf_payment_mode":"Zahlungsart","pdf_payment_amount_received_label":"Amount Received","pdf_expense_report_label":"EXPENSES REPORT","pdf_total_expenses_label":"TOTAL EXPENSE","pdf_profit_loss_label":"PROFIT & LOSS REPORT","pdf_income_label":"INCOME","pdf_net_profit_label":"NET PROFIT","pdf_customer_sales_report":"Sales Report: By Customer","pdf_total_sales_label":"TOTAL SALES","pdf_item_sales_label":"Sales Report: By Item","pdf_tax_report_label":"TAX REPORT","pdf_total_tax_label":"TOTAL TAX","pdf_tax_types_label":"Steuersätze","pdf_expenses_label":"Gesamtausgaben","pdf_bill_to":"Rechnungsempfänger,","pdf_ship_to":"Versand an,","pdf_received_from":"Received from:"}')},"4JlD":function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?i(o(e),(function(o){var s=encodeURIComponent(r(o))+n;return a(e[o])?i(e[o],(function(e){return s+encodeURIComponent(r(e))})).join(t):s+encodeURIComponent(r(e[o]))})).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var o=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},"4MV3":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("wd/R"))},"4bO1":function(e,t,n){"use strict";n.r(t);var r=n("xm8R"),a=n("CaTG"),i=n("o0o1"),o=n.n(i),s=n("L2JU");function l(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p={data:function(){return{customerSelect:null,loading:!1}},computed:u({},Object(s.c)("customer",["customers"])),created:function(){this.fetchCustomers()},methods:u(u({},Object(s.b)("customer",["fetchCustomers"])),{},{searchCustomers:function(e){var t,n=this;return(t=o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.loading=!0,t.next=3,n.fetchCustomers({search:e});case 3:n.loading=!1;case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,a){var i=t.apply(e,n);function o(e){l(i,r,a,o,s,"next",e)}function s(e){l(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onTextChange:function(e){this.searchCustomers(e)},checkCustomers:function(e){this.customers.length||this.fetchCustomers()},deselectCustomer:function(){this.customerSelect=null,this.$emit("deselect")}})},f=n("KHd+"),m=Object(f.a)(p,(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,h=n("3caz"),_=n("Opvw");n("RUiw");function v(e){return function(e){if(Array.isArray(e))return g(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 g(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 g(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 g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(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){x(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 x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k={components:{PlusSmIcon:h.v,ChevronDoubleRightIcon:_.e},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:w(w({},Object(s.c)("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=o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.getFields(),e.next=3,t.fetchNoteCustomFields({limit:"all"});case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){y(i,r,a,o,s,"next",e)}function s(e){y(i,r,a,o,s,"throw",e)}o(void 0)}))})()},methods:w(w({},Object(s.b)("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(v(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(v(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(v(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(v(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)}})},D=Object(f.a)(k,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"relative"},[n("div",{staticClass:"absolute bottom-0 right-0 z-10"},[n("sw-dropdown",{staticClass:"mb-2",attrs:{"close-on-select":!0,"max-height":"220",position:"bottom-end"}},[n("sw-button",{staticClass:"mr-2",attrs:{slot:"activator",variant:"primary-outline",type:"button"},slot:"activator"},[n("plus-sm-icon",{staticClass:"h-5 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("settings.customization.addresses.insert_fields"))+"\n ")],1),e._v(" "),n("div",{staticClass:"flex p-2"},e._l(e.fieldList,(function(t,r){return n("ul",{key:r,staticClass:"list-none"},[n("li",{staticClass:"mb-1 ml-2 text-xs font-semibold text-gray-500 uppercase"},[e._v("\n "+e._s(t.label)+"\n ")]),e._v(" "),e._l(t.fields,(function(t,r){return n("li",{key:r,staticClass:"w-48 text-sm font-normal cursor-pointer hover:bg-gray-200",on:{click:function(n){return e.insertField(t.value)}}},[n("div",{staticClass:"flex"},[n("chevron-double-right-icon",{staticClass:"h-3 mt-1 text-gray-400"}),e._v(e._s(t.label)+"\n ")],1)])}))],2)})),0)],1)],1),e._v(" "),n("sw-editor",{staticClass:"text-area-field",attrs:{"set-editor":e.inputValue,disabled:e.disabled,invalid:e.isFieldValid,placeholder:e.placeholder,variant:"header-editor","input-class":"border-none"},on:{input:e.handleInput,change:e.handleChange,keyup:e.handleKeyupEnter},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}})],1)}),[],!1,null,null,null).exports;function M(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function S(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){M(i,r,a,o,s,"next",e)}function s(e){M(i,r,a,o,s,"throw",e)}o(void 0)}))}}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(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){T(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 T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E={components:{UserAddIcon:_.J,SearchIcon:_.E,RefreshIcon:_.D},props:{type:{type:String,required:!0},userId:{type:Number,required:!1}},data:function(){return{search:null,loading:!1}},computed:L({},Object(s.c)("customer",["customers"])),created:function(){this.fetchInitialCustomers()},methods:L(L(L(L(L({},Object(s.b)("modal",["openModal"])),Object(s.b)("customer",["fetchCustomers"])),Object(s.b)("invoice",{setInvoiceCustomer:"selectCustomer"})),Object(s.b)("estimate",{setEstimateCustomer:"selectCustomer"})),{},{fetchInitialCustomers:function(){var e=this;return S(o.a.mark((function t(){return o.a.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 S(o.a.mark((function t(){var n;return o.a.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)}})},O=(n("fCAa"),Object(f.a)(E,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"customer-select"},[n("div",{staticClass:"flex flex-col w-full pb-4"},[n("div",{staticClass:"flex px-4 pt-4 pb-2"},[n("sw-input",{attrs:{placeholder:e.$t("general.search"),focus:"",type:"text",icon:"search"},on:{input:e.searchCustomer},scopedSlots:e._u([{key:"leftIcon",fn:function(){return[n("search-icon",{staticClass:"h-5 m-2 text-gray-500"})]},proxy:!0}]),model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),e._v(" "),e.customers.length>0&&!e.loading?n("div",{staticClass:"relative flex flex-col overflow-auto sw-scroll list"},e._l(e.customers,(function(t,r){return n("div",{key:r,staticClass:"flex px-6 py-2 border-b border-gray-200 border-solid cursor-pointer hover:cursor-pointer hover:bg-gray-100 last:border-b-0",on:{click:function(n){return e.selectNewCustomer(t.id)}}},[n("span",{staticClass:"flex items-center content-center justify-center w-10 h-10 mr-4 text-xl font-semibold leading-9 text-white bg-gray-400 rounded-full avatar"},[e._v(e._s(e.initGenerator(t.name)))]),e._v(" "),n("div",{staticClass:"flex flex-col justify-center"},[n("label",{staticClass:"m-0 leading-tight cursor-pointer font-base"},[e._v(e._s(t.name))]),e._v(" "),n("label",{staticClass:"m-0 text-sm font-medium text-gray-500 cursor-pointer font-base"},[e._v(e._s(t.contact_name))])])])})),0):e._e(),e._v(" "),e.loading?n("div",{staticClass:"flex items-center justify-center list"},[n("refresh-icon",{staticClass:"animate-spin"})],1):e._e(),e._v(" "),0===e.customers.length?n("div",{staticClass:"flex justify-center p-5 text-gray-400"},[n("label",{staticClass:"cursor-pointer"},[e._v("\n "+e._s(e.$t("customers.no_customers_found"))+"\n ")])]):e._e()]),e._v(" "),n("button",{staticClass:"flex items-center justify-center w-full px-2 py-3 bg-gray-200 border-none outline-none",attrs:{type:"button"},on:{click:e.openCustomerModal}},[n("user-add-icon",{staticClass:"text-primary-400"}),e._v(" "),n("label",{staticClass:"m-0 ml-3 text-sm leading-none cursor-pointer font-base text-primary-400"},[e._v(e._s(e.$t("customers.add_new_customer")))])],1)])}),[],!1,null,null,null).exports);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?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}var Y={components:{CheckCircleIcon:_.d},props:{taxes:{type:Array,required:!1,default:null}},data:function(){return{textSearch:null}},computed:A(A({},Object(s.c)("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:A(A({},Object(s.b)("modal",["openModal"])),{},{selectTaxType:function(e){this.$emit("select",A({},this.taxTypes[e]))},openTaxModal:function(){this.openModal({title:this.$t("settings.tax_types.add_tax"),componentName:"TaxTypeModal"})}})},$=Object(f.a)(Y,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tax-select"},[n("div",{staticClass:"flex flex-col w-full p-4"},[n("div",{staticClass:"relative flex w-full mb-2"},[n("sw-input",{staticClass:"text-black",attrs:{placeholder:e.$t("general.search"),focus:"",icon:"search",type:"text"},model:{value:e.textSearch,callback:function(t){e.textSearch=t},expression:"textSearch"}})],1),e._v(" "),e.filteredTaxType.length>0?n("div",{staticClass:"relative flex flex-col overflow-auto sw-scroll list",staticStyle:{"max-height":"112px"}},e._l(e.filteredTaxType,(function(t,r){return n("div",{key:r,staticClass:"flex justify-between p-4 border-b border-gray-200 border-solid cursor-pointer list-item last:border-b-0 hover:bg-gray-100",class:{"bg-gray-100 cursor-not-allowed opacity-50 pointer-events-none":e.taxes.find((function(e){return e.tax_type_id===t.id}))},on:{click:function(t){return e.selectTaxType(r)}}},[n("label",{staticClass:"inline-block m-0 text-base font-normal leading-tight text-black font-base"},[e._v("\n "+e._s(t.name)+"\n ")]),e._v(" "),n("label",{staticClass:"inline-block m-0 text-base font-normal leading-tight text-black font-base"},[e._v("\n "+e._s(t.percent)+" %\n ")])])})),0):n("div",{staticClass:"flex justify-center p-5 text-gray-400"},[n("label",{staticClass:"m-0"},[e._v(e._s(e.$t("general.no_tax_found")))])])]),e._v(" "),n("button",{staticClass:"flex items-center justify-center w-full px-2 py-3 bg-gray-200 border-none outline-none",attrs:{type:"button"},on:{click:e.openTaxModal}},[n("check-circle-icon",{staticClass:"h-5"}),e._v(" "),n("label",{staticClass:"m-0 ml-3 text-sm leading-none cursor-pointer font-base text-primary-400"},[e._v("\n "+e._s(e.$t("invoices.add_new_tax"))+"\n ")])],1)])}),[],!1,null,null,null).exports;function I(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){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}var R={components:{CheckCircleIcon:_.d},props:{type:{type:String,default:null}},data:function(){return{textSearch:null}},computed:z(z({},Object(s.c)("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:z(z(z({},Object(s.b)("modal",["openModal"])),Object(s.b)("notes",["fetchNotes"])),{},{selectNote:function(e){this.$emit("select",z({},this.notes[e]))},fetchInitialData:function(){var e,t=this;return(e=o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.fetchNotes({filter:{},orderByField:"",orderBy:"",type:t.type?t.type:""});case 2:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){I(i,r,a,o,s,"next",e)}function s(e){I(i,r,a,o,s,"throw",e)}o(void 0)}))})()},openNoteModal:function(){this.openModal({title:this.$t("settings.customization.notes.add_note"),componentName:"NoteSelectModal",variant:"lg",data:this.type})}})},H=Object(f.a)(R,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tax-select"},[n("div",{staticClass:"flex flex-col w-full px-4 py-4"},[n("div",{staticClass:"relative flex w-full mb-2"},[n("sw-input",{staticClass:"text-black",attrs:{placeholder:e.$t("general.search"),focus:"",icon:"search",type:"text"},model:{value:e.textSearch,callback:function(t){e.textSearch=t},expression:"textSearch"}})],1),e._v(" "),e.filteredNotes.length>0?n("div",{staticClass:"relative flex flex-col overflow-auto sw-scroll list",staticStyle:{"max-height":"112px"}},e._l(e.filteredNotes,(function(t,r){return n("div",{key:r,staticClass:"flex justify-between p-4 border-b border-gray-200 border-solid cursor-pointer list-item last:border-b-0 hover:bg-gray-100",on:{click:function(t){return e.selectNote(r)}}},[n("label",{staticClass:"inline-block m-0 text-base font-normal leading-tight text-black font-base"},[e._v("\n "+e._s(t.name)+"\n ")])])})),0):n("div",{staticClass:"flex justify-center p-5 text-gray-400"},[n("label",{staticClass:"m-0"},[e._v(e._s(e.$t("general.no_note_found")))])])]),e._v(" "),n("button",{staticClass:"flex items-center justify-center w-full px-2 py-3 bg-gray-200 border-none outline-none",attrs:{type:"button"},on:{click:e.openNoteModal}},[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("settings.customization.notes.add_new_note"))+"\n ")])],1)])}),[],!1,null,null,null).exports,B=n("w48C"),q=n.n(B);n("CVKz"),n("QkVN");const U=(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:V,variants:W}={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"}}};var K={name:"SwDatePicker",install(e,t){((e,t={},n)=>{const{props:r}=n;Object.keys(t).forEach(e=>{const n={default:()=>t[e]};r[e]=n}),e.component(n.name,{...n,props:r})})(e,t,this)},components:{Flatpickr:q.a},inheritAttrs:!1,props:{calendarButton:{type:Boolean,default:!0},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},classes:{type:Object,default:()=>V},variants:{type:Object,default:()=>W},variant:{type:String,required:!1,default:""}},computed:{datepickerStyle(){let e=U(this.variant,this.variants);return this.invalid&&(e=U("invalid",this.variants)),this.disabled&&(e=U("disabled",this.variants)),{...this.classes,...e}},hasIconSlot(){return!!this.$slots.icon}}},G=Object(f.a)(K,(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,J=n("wd/R"),Z=n.n(J);function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ee=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD";return Z()(new Date(e),t)},te={components:{SwDatePicker:G},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 Z()(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?X(Object(n),!0).forEach((function(t){Q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Object(s.c)("company",{carbonFormat:"getCarbonDateFormat",momentFormat:"getMomentDateFormat"})),watch:{value:function(e){e&&!this.enableTime?this.date=ee(e,"YYYY-MM-DD").format("YYYY-MM-DD"):this.date=ee(e,"YYYY-MM-DD").format("YYYY-MM-DD H:m:s")},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=ee(this.value,"YYYY-MM-DD").format("YYYY-MM-DD"),!0;this.value&&(this.date=ee(this.value,"YYYY-MM-DD").format("YYYY-MM-DD HH:mm:SS"))},methods:{onDateChange:function(e){this.$emit("input",e),this.$emit("change",e)}}},ne=(n("3sS0"),Object(f.a)(te,(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),re={components:{SwDatePicker:G},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)}}},ae=Object(f.a)(re,(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,ie=Object(f.a)({},(function(){var e=this.$createElement;return(this._self._c||e)("main",{staticClass:"flex flex-col flex-1 p-8 overflow-y-auto border-b border-gray-300 border-solid"},[this._t("default")],2)}),[],!1,null,null,null).exports,oe=n("kkvA"),se=n("LvDl"),le=n.n(se);function ce(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function ue(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){ce(i,r,a,o,s,"next",e)}function s(e){ce(i,r,a,o,s,"throw",e)}o(void 0)}))}}function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pe(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){fe(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 fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var me={components:{SearchIcon:_.E,LoadingIcon:oe.a},data:function(){return{isShow:!1,isLoading:!1,name:""}},computed:pe({},Object(s.c)("search",["getCustomerList","getUserList"])),created:function(){this.searchUsers()},methods:pe(pe({},Object(s.b)("search",["searchUsers"])),{},{throttledMethod:le.a.debounce(ue(o.a.mark((function e(){var t=this;return o.a.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()}}})},he=(n("T1qN"),Object(f.a)(me,(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),_e={data:function(){return{toggle:!1}},methods:{checktoggle:function(){var e=this;e.toggle=!0,setTimeout((function(){e.toggle=!1}),300)}}},ve=(n("F6WE"),Object(f.a)(_e,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("div",{staticClass:"dot-icon",on:{click:this.checktoggle}},[t("span",{staticClass:"dot dot1",class:{"move-right":this.toggle}}),this._v(" "),t("span",{staticClass:"dot dot2"}),this._v(" "),t("span",{staticClass:"dot dot3",class:{"move-left":this.toggle}})])])}),[],!1,null,null,null).exports),ge=Object(f.a)({},(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,ye={classes:{baseSelectContainer:"base-select multiselect min-h-10",activeBaseSelectContainer:"multiselect--active z-10",disabledBaseSelectContainer:"pointer-events-none opacity-50",multiSelect:"multiselect__select h-10 m-0 py-1 px-2 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-no-wrap 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",multiselectInput:"multiselect__input p-1 relative inline-block border-none leading-5 rounded pl-1 w-full box-border align-top text-sm",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 absolute block bg-white w-full overflow-auto border border-solid border-gray-300 border-t-0 rounded-bl rounded-br",multiselectContent:"multiselect__content list-none inline-block p-0 m-0 min-w-full align-top",multiselectOption:"multiselect__option block p-3 no-underline leading-4 normal-case align-middle relative cursor-pointer whitespace-no-wrap text-sm",multiselectElement:"multiselect__element block"},variants:{danger:{multiSelectTags:"multiselect__tags min-h-10 block pt-1.5 pr-10 pb-0 pl-2 rounded border border-solid text-sm border-danger bg-white"}}};function be(e){return 0!==e&&(!(!Array.isArray(e)||0!==e.length)||!e)}function we(e,t,n,r){return e.filter(e=>{return a=r(e,n),i=t,void 0===a&&(a="undefined"),null===a&&(a="null"),!1===a&&(a="false"),-1!==a.toString().toLowerCase().indexOf(i.trim());var a,i})}function xe(e){return e.filter(e=>!e.$isLabel)}function ke(e,t){return n=>n.reduce((n,r)=>r[e]&&r[e].length?(n.push({$groupLabel:r[t],$isLabel:!0}),n.concat(r[e])):n,[])}const De=(...e)=>t=>e.reduce((e,t)=>t(e),t);var Me={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)=>be(e)?"":t?e[t]:e},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default:()=>[]},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0]),this.initialSearch&&(this.search=this.initialSearch)},computed:{internalValue(){return this.value||0===this.value?Array.isArray(this.value)?this.value:[this.value]:[]},filteredOptions(){const e=this.search||"",t=e.toLowerCase().trim();let n=this.options.concat();var r;return n=this.internalSearch?this.groupValues?this.filterAndFlat(n,t,this.label):we(n,t,this.label,this.customLabel):this.groupValues?ke(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter((r=this.isSelected,(...e)=>!r(...e))):n,this.taggable&&t.length&&!this.isExistingOption(t)&&("bottom"===this.tagPosition?n.push({isTag:!0,label:e}):n.unshift({isTag:!0,label:e})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(e=>this.customLabel(e,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("input",this.multiple?[]:null))},search(){this.$emit("search-change",this.search,this.id)}},methods:{getValue(){return this.multiple?this.internalValue:0===this.internalValue.length?null:this.internalValue[0]},filterAndFlat(e,t,n){return De(function(e,t,n,r,a){return i=>i.map(i=>{if(!i[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const o=we(i[n],e,t,a);return o.length?{[r]:i[r],[n]:o}:[]})}(t,n,this.groupValues,this.groupLabel,this.customLabel),ke(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return De(ke(this.groupValues,this.groupLabel),xe)(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(be(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;let t=this.customLabel(e,this.label);return be(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))}}};const{classes:Se}=ye;var Ce={data:()=>({pointer:0,pointerDirty:!1}),props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40},classes:{type:Object,default:()=>Se}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},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.classes.multiselectOption]},groupHighlight(e,t){if(!this.groupSelect)return["multiselect__option--group","multiselect__option--disabled",this.classes.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.classes.multiselectOption]:["multiselect__option--disabled",this.classes.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}}};const{classes:Le,variants:Te}=ye;var Ee={name:"VueMultiselect",mixins:[Me,Ce],props:{classes:{type:Object,default:()=>Le},variants:{type:Object,default:()=>Te},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}},computed:{isSingleLabelVisible(){return(this.singleValue||0===this.singleValue)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!(this.internalValue.length||this.searchable&&this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.value&&this.value.length?this.isOpen?{width:"100%"}:this.value?{width:"0",position:"absolute",padding:"0"}:"":""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return"above"===this.openDirection||"top"===this.openDirection||"below"!==this.openDirection&&"bottom"!==this.openDirection&&"above"===this.preferredOpenDirection},showSearchInput(){return this.searchable&&(!this.hasSingleSelectedSlot||!this.visibleSingleValue&&0!==this.visibleSingleValue||this.isOpen)},multiSelectStyle(){let e=[this.classes.baseSelectContainer];return this.isOpen&&e.push(this.classes.activeBaseSelectContainer),this.disabled&&e.push(this.classes.disabledBaseSelectContainer),this.isAbove&&e.push("multiselect--above"),e},multiselectSelectStyle(){let e=[this.classes.multiSelect];return this.disabled?e.push(this.classes.disabledMultiSelect):e.push(this.classes.multiSelect),e},multiSelectTagsStyle(){let e=[this.classes.multiSelectTags];return this.invalid?e.push(this.classes.multiSelectTagsInvalid):e.push(this.classes.multiSelectTagsDefaultColor),this.disabled&&e.push(this.classes.disabledMultiSelectTags),e.push(this.classes.multiSelectTags),e},multiselectTagsWrapStyle(){return[this.classes.multiselectTagsWrap]},multiselectTagStyle(){return[this.classes.multiselectTag]},multiselectTagIconStyle(){return[this.classes.multiselectTagIcon]},multiselectStrongStyle(){return[this.classes.multiselectStrong]},multiselectSpinnerStyle(){return[this.classes.multiselectSpinner]},multiselectInputStyle(){return[this.classes.multiselectInput]},multiselectSingleStyle(){return[this.classes.multiselectSingle]},multiselectContentWrapperStyle(){return[this.classes.multiselectContentWrapper]},multiselectContentStyle(){return[this.classes.multiselectContent]},multiselectOptionStyle(){return[this.classes.multiselectOption]},multiselectElementStyle(){return[this.classes.multiselectElement]}}},Oe=(n("XPB1"),Object(f.a)(Ee,(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()}}})],{toggle:e.toggle}),e._v(" "),n("div",{ref:"tags",class:e.multiSelectTagsStyle},[e._t("selection",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visibleValues.length>0,expression:"visibleValues.length > 0"}],class:e.multiselectTagsWrapStyle},[e._l(e.visibleValues,(function(t,r){return[e._t("tag",[n("span",{key:r,class:e.multiselectTagStyle},[n("span",{domProps:{textContent:e._s(e.getOptionLabel(t))}}),e._v(" "),n("i",{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)}}})])],{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:"off",spellcheck:"false"},domProps:{value:e.search},on:{input:function(t){return e.updateSearch(t.target.value)},focus:function(t){return t.preventDefault(),e.activate()},blur:function(t){return t.preventDefault(),e.deactivate()},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.deactivate()},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.pointerForward())},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.pointerBackward())},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:(t.stopPropagation(),e.removeLastElement())}],keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),t.stopPropagation(),t.target!==t.currentTarget?null:e.addPointerElement(t))}}}),e._v(" "),e.isSingleLabelVisible?n("span",{class:e.multiselectSingleStyle,on:{mousedown:function(t){return t.preventDefault(),e.toggle(t)}}},[e._t("singleLabel",[[e._v(e._s(e.currentOptionLabel))]],{option:e.singleValue})],2):e._e()],2),e._v(" "),n("transition",{attrs:{name:"multiselect"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isOpen,expression:"isOpen"}],ref:"list",class:e.multiselectContentWrapperStyle,style:{maxHeight:e.optimizedHeight+"px"},attrs:{tabindex:"-1"},on:{focus:e.activate,mousedown:function(e){e.preventDefault()}}},[n("ul",{class:e.multiselectContentStyle,style:e.contentStyle,attrs:{id:"listbox-"+e.id,role:"listbox"}},[e._t("beforeList"),e._v(" "),e.multiple&&e.max===e.internalValue.length?n("li",[n("span",{class:e.multiselectOptionStyle},[e._t("maxElements",[e._v("\n "+e._s(e.maximumOptionsError)+"\n ")])],2)]):e._e(),e._v(" "),!e.max||e.internalValue.length<e.max?e._l(e.filteredOptions,(function(t,r){return n("li",{key:r,class:e.multiselectElementStyle,attrs:{id:e.id+"-"+r,role:t&&(t.$isLabel||t.$isDisabled)?null:"option"}},[t&&(t.$isLabel||t.$isDisabled)?e._e():n("span",{class:e.optionHighlight(r,t),attrs:{"data-select":t&&t.isTag?e.tagPlaceholder:e.selectLabelText,"data-selected":e.selectedLabelText,"data-deselect":e.deselectLabelText},on:{click:function(n){return n.stopPropagation(),e.select(t)},mouseenter:function(t){return t.target!==t.currentTarget?null:e.pointerSet(r)}}},[e._t("option",[n("span",[e._v(e._s(e.getOptionLabel(t)))])],{option:t,search:e.search})],2),e._v(" "),t&&(t.$isLabel||t.$isDisabled)?n("span",{class:e.groupHighlight(r,t),attrs:{"data-select":e.groupSelect&&e.selectGroupLabelText,"data-deselect":e.groupSelect&&e.deselectGroupLabelText},on:{mouseenter:function(t){if(t.target!==t.currentTarget)return null;e.groupSelect&&e.pointerSet(r)},mousedown:function(n){return n.preventDefault(),e.selectGroup(t)}}},[e._t("option",[n("span",[e._v(e._s(e.getOptionLabel(t)))])],{option:t,search:e.search})],2):e._e()])})):e._e(),e._v(" "),!e.showNoOptions||0!==e.options.length||e.search||e.loading?e._e():n("li",[n("span",{class:e.multiselectOptionStyle},[e._t("noOptions",[e._v(e._s(e.listIsEmpty))])],2)])],2),e._v(" "),e._t("afterList")],2)])],2)}),[],!1,null,null,null).exports);Vue.component("base-modal",r.a),Vue.component("global-search",he),Vue.component("base-page",ie),Vue.component("base-date-picker",ne),Vue.component("base-loader",a.a),Vue.component("sw-select",Oe),Vue.component("base-customer-select",m),Vue.component("base-custom-input",D),Vue.component("customer-select-popup",O),Vue.component("tax-select-popup",$),Vue.component("note-select-popup",H),Vue.component("base-time-picker",ae),Vue.component("dot-icon",ve),Vue.component("save-icon",ge)},"4dOw":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("wd/R"))},"4kuk":function(e,t,n){var r=n("SfRM"),a=n("Hvzi"),i=n("u8Dt"),o=n("ekgI"),s=n("JSQU");function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=o,l.prototype.set=s,e.exports=l},"5BNI":function(e,t,n){var r=n("+QQC");"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,a);r.locals&&(e.exports=r.locals)},"5O9K":function(e){e.exports=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":"Onderwerpen","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":"Offerte"},"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 redden","update_customer":"Klant bijwerken","customer":"Klant | Klanten","new_customer":"Nieuwe klant","edit_customer":"Klant bewerken","basic_info":"Basis informatie","billing_address":"factuur adres","shipping_address":"Verzendingsadres","copy_billing_address":"Kopiëren van facturering","no_customers":"Nog geen klanten!","no_customers_found":"Geen klanten gevonden!","list_of_customers":"Hier vind je jouw klanten terug.","primary_display_name":"Primaire weergavenaam","select_currency":"Selecteer valuta","select_a_customer":"Selecteer een klant","type_or_click":"Typ of klik om te selecteren","new_transaction":"Nieuwe transactie","no_matching_customers":"Er zijn geen overeenkomende klanten!","phone_number":"Telefoonnummer","create_date":"Aangemaakt op","confirm_delete":"U kunt deze klant en alle gerelateerde facturen, offertes en betalingen niet terugkrijgen. | U zult deze klanten en alle gerelateerde facturen, offertes en betalingen niet kunnen terugkrijgen.","created_message":"Klant succesvol aangemaakt","updated_message":"Klant succesvol geüpdatet","deleted_message":"Klant succesvol verwijderd | Klanten zijn succesvol verwijderd"},"items":{"title":"Artikelen","items_list":"Lijst met items","name":"Naam","unit":"Eenheid","description":"Omschrijving","added_on":"Toegevoegd","price":"Prijs","date_of_creation":"Datum van creatie","action":"Actie","add_item":"Voeg item toe","save_item":"Item opslaan","update_item":"Item bijwerken","item":"Artikel | Artikelen","add_new_item":"Voeg een nieuw item toe","new_item":"Nieuw item","edit_item":"Item bewerken","no_items":"Nog geen items!","list_of_items":"Hier vind je jouw artikelen terug.","select_a_unit":"selecteer eenheid","taxes":"Belastingen","item_attached_message":"Kan een item dat al in gebruik is niet verwijderen","confirm_delete":"U kunt dit item | niet herstellen U kunt deze items niet herstellen","created_message":"Item succesvol aangemaakt","updated_message":"Item succesvol bijgewerkt","deleted_message":"Item succesvol verwijderd | Items zijn verwijderd"},"estimates":{"title":"Offertes","estimate":"Offerte | Offertes","estimates_list":"Lijst met offertes","days":"{dagen} dagen","months":"{months} Maand","years":"{jaar} jaar","all":"Allemaal","paid":"Betaald","unpaid":"Onbetaald","customer":"Klant","ref_no":"Ref Nr.","number":"Aantal","amount_due":"Bedrag","partially_paid":"Gedeeltelijk betaald","total":"Totaal","discount":"Korting","sub_total":"Subtotaal","estimate_number":"Geschat aantal","ref_number":"Referentie nummer","contact":"Contact","add_item":"Voeg een item toe","date":"Datum","due_date":"Opleveringsdatum","expiry_date":"Vervaldatum","status":"Statu","add_tax":"Belasting toevoegen","amount":"Bedrag","action":"Actie","notes":"Opmerkingen","tax":"Belasting","estimate_template":"Sjabloon","convert_to_invoice":"Converteren naar factuur","mark_as_sent":"Markeren als verzonden","send_estimate":"Verzend offerte","resend_estimate":"Offerte opnieuw verzenden","record_payment":"Bestaling registreren","add_estimate":"Offerte toevoegen","save_estimate":"Bewaar offerte","confirm_conversion":"Deze offerte wordt gebruikt om een nieuwe factuur te maken.","conversion_message":"Factuur gemaakt","confirm_send_estimate":"Deze offerte wordt via e-mail naar de klant gestuurd","confirm_mark_as_sent":"Deze offerte wordt gemarkeerd als verzonden","confirm_mark_as_accepted":"Deze offerte wordt gemarkeerd als Geaccepteerd","confirm_mark_as_rejected":"Deze offerte wordt gemarkeerd als Afgewezen","no_matching_estimates":"Er zijn geen overeenkomende offertes!","mark_as_sent_successfully":"Offerte gemarkeerd als succesvol verzonden","send_estimate_successfully":"Offerte succesvol verzonden","errors":{"required":"Veld is vereist"},"accepted":"Geaccepteerd","sent":"Verzonden","draft":"Concept","declined":"Geweigerd","new_estimate":"Nieuwe offerte","add_new_estimate":"Offerte toevoegen","update_Estimate":"Offerte bijwerken","edit_estimate":"Offerte bewerken","items":"artikelen","Estimate":"Offerte | Offertes","add_new_tax":"Nieuwe belasting toevoegen","no_estimates":"Nog geen offertes!","list_of_estimates":"Hier vind je jouw offertes terug.","mark_as_rejected":"Markeer als afgewezen","mark_as_accepted":"Markeer als geaccepteerd","marked_as_accepted_message":"Offerte gemarkeerd als geaccepteerd","marked_as_rejected_message":"Offerte gemarkeerd als afgewezen","confirm_delete":"U kunt deze offerte | niet herstellen U kunt deze offertes niet herstellen","created_message":"Offerte is gemaakt","updated_message":"Offerte succesvol bijgewerkt","deleted_message":"Offerte succesvol verwijderd | Offertes zijn succesvol verwijderd","user_email_does_not_exist":"E-mailadres van gebruiker bestaat niet","something_went_wrong":"Er is iets fout gegaan","item":{"title":"Titel van het item","description":"Omschrijving","quantity":"Aantal stuks","price":"Prijs","discount":"Korting","total":"Totaal","total_discount":"Totale korting","sub_total":"Subtotaal","tax":"Belasting","amount":"Bedrag","select_an_item":"Typ of klik om een item te selecteren","type_item_description":"Type Item Beschrijving (optioneel)"}},"invoices":{"title":"Facturen","invoices_list":"Facturenlijst","days":"{dagen} dagen","months":"{months} Maand","years":"{jaar} jaar","all":"Allemaal","paid":"Betaald","unpaid":"Onbetaald","customer":"Klant","paid_status":"Betaling","ref_no":"REF NR.","number":"AANTAL","amount_due":"BEDRAG","partially_paid":"Gedeeltelijk betaald","total":"Totaal","discount":"Korting","sub_total":"Subtotaal","invoice":"Factuur | Facturen","invoice_number":"Factuurnummer","ref_number":"Referentie nummer","contact":"Contact","add_item":"Voeg een item toe","date":"Datum","due_date":"Opleveringsdatum","status":"Statu","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":"U kunt deze factuur | niet terugvorderen U kunt deze facturen niet terugkrijgen","created_message":"Factuur succesvol aangemaakt","updated_message":"Factuur succesvol bijgewerkt","deleted_message":"Factuur succesvol verwijderd | Facturen succesvol verwijderd","marked_as_sent_message":"Factuur gemarkeerd als succesvol verzonden","user_email_does_not_exist":"E-mailadres van gebruiker bestaat niet","something_went_wrong":"Er is iets fout gegaan","invalid_due_amount_message":"Het totale factuurbedrag mag niet lager zijn dan het totale betaalde bedrag voor deze factuur. Werk de factuur bij of verwijder de bijbehorende betalingen om door te gaan."},"credit_notes":{"title":"Kredietnota\'s","credit_notes_list":"Lijst met creditnota\'s","credit_notes":"Kredietnota\'s","contact":"Contact","date":"Datum","amount":"Bedrag","action":"Actie","credit_number":"Kredietnummer","notes":"Opmerkingen","confirm_delete":"Wilt u deze creditnota verwijderen?","item":{"title":"Titel van het item","description":"Omschrijving","quantity":"Aantal stuks","price":"Prijs","discount":"Korting","total":"Totaal","total_discount":"Totale korting","sub_total":"Subtotaal","tax":"BTW"}},"payments":{"title":"Betalingen","payments_list":"Betalingslijst","record_payment":"Bestaling registreren","customer":"Klant","date":"Datum","amount":"Bedrag","action":"Actie","payment_number":"Betalingsnummer","payment_mode":"Betaalmethode","invoice":"Factuur","note":"Notitie","add_payment":"Betaling toevoegen","new_payment":"Nieuwe betaling","edit_payment":"Betaling bewerken","view_payment":"Bekijk betaling","add_new_payment":"Nieuwe betaling toevoegen","send_payment_receipt":"Betaalbewijs verzenden","send_payment":"Verstuur betaling","save_payment":"Betaling opslaan","update_payment":"Betaling bijwerken","payment":"Betaling | Betalingen","no_payments":"Nog geen betalingen!","no_matching_payments":"Er zijn geen overeenkomende betalingen!","list_of_payments":"Hier vind je jouw betalingen terug.","select_payment_mode":"Selecteer betalingswijze","confirm_mark_as_sent":"Deze offerte wordt gemarkeerd als verzonden","confirm_send_payment":"Deze betaling wordt via e-mail naar de klant gestuurd","send_payment_successfully":"Betaling succesvol verzonden","user_email_does_not_exist":"E-mailadres van gebruiker bestaat niet","something_went_wrong":"Er is iets fout gegaan","confirm_delete":"U kunt deze betaling niet herstellen U kunt deze betalingen niet terugkrijgen","created_message":"De betaling is succesvol aangemaakt","updated_message":"Betaling succesvol bijgewerkt","deleted_message":"Betaling succesvol verwijderd | Betalingen zijn verwijderd","invalid_amount_message":"Het bedrag van de betaling is ongeldig"},"expenses":{"title":"Uitgaven","expenses_list":"Uitgavenlijst","select_a_customer":"Selecteer een klant","expense_title":"Titel","customer":"Klant","contact":"Contact","category":"Categorie","from_date":"Van datum","to_date":"Tot datum","expense_date":"Datum","description":"Omschrijving","receipt":"Bon","amount":"Bedrag","action":"Actie","note":"Notitie","category_id":"Categorie ID","date":"Uitgavendatum","add_expense":"Kosten toevoegen","add_new_expense":"Kosten toevoegen","save_expense":"Kosten opslaan","update_expense":"Onkosten bijwerken","download_receipt":"Ontvangstbewijs downloaden","edit_expense":"Uitgaven bewerken","new_expense":"Kosten toevoegen","expense":"Uitgaven | Uitgaven","no_expenses":"Nog geen kosten!","list_of_expenses":"Hier vind je jouw uitgaven terug.","confirm_delete":"U kunt deze kosten | niet terugkrijgen U kunt deze kosten niet terugvorderen","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":"Statu","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":"Statu"},"estimates":{"estimate":"Offerte","estimate_date":"Geschatte datum","due_date":"Opleveringsdatum","estimate_number":"Geschat aantal","ref_number":"Referentie nummer","amount":"Bedrag","contact_name":"Contactnaam","status":"Statu"},"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":"Custom Fields","payment_modes":"Payment Modes","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":"Zip","save":"Opslaan","updated_message":"Bedrijfsinformatie succesvol bijgewerkt"},"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":"Naam","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":"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":"Default Invoice Email Body","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":"Company Address Format","shipping_address_format":"Shipping Address Format","billing_address_format":"Billing Address Format","invoice_setting_updated":"Factuurinstelling succesvol bijgewerkt"},"estimates":{"title":"Offertes","estimate_prefix":"Voorvoegsel schatten","default_estimate_email_body":"Default Estimate Email Body","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":"Company Address Format","billing_address_format":"Billing Address Format","shipping_address_format":"Shipping Address 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":"Payment Modes","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":"Company Address Format","from_customer_address_format":"From Customer Address Format"},"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":"Save time by creating notes and reusing them on your invoices, estimates & payments.","notes":"Opmerkingen","type":"Type","add_note":"Add Note","add_new_note":"Add New Note","name":"Naam","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":"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":"U kunt dit belastingtype niet terugkrijgen","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":"Default Language","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":"Select Date Format","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":"Requirements","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":"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":"Actie","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":"Naam","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","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":"Actie","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 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 Domain","username":"Database gebruikersnaam","db_name":"Database naam","db_path":"Database Path","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":"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."},"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":"Invalid Phone Number","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":"Geschat aantal","pdf_estimate_date":"Geschatte datum","pdf_estimate_expire_date":"Expiry date","pdf_invoice_label":"Factuur","pdf_invoice_number":"Factuurnummer","pdf_invoice_date":"Factuur datum","pdf_invoice_due_date":"Due date","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":"Subtotal","pdf_total":"Totaal","pdf_payment_receipt_label":"PAYMENT RECEIPT","pdf_payment_date":"Payment Date","pdf_payment_number":"Betalingsnummer","pdf_payment_mode":"Betaalmethode","pdf_payment_amount_received_label":"Amount Received","pdf_expense_report_label":"EXPENSES REPORT","pdf_total_expenses_label":"TOTAL EXPENSE","pdf_profit_loss_label":"PROFIT & LOSS REPORT","pdf_income_label":"INCOME","pdf_net_profit_label":"NET PROFIT","pdf_customer_sales_report":"Sales Report: By Customer","pdf_total_sales_label":"TOTAL SALES","pdf_item_sales_label":"Sales Report: By Item","pdf_tax_report_label":"TAX REPORT","pdf_total_tax_label":"TOTAL TAX","pdf_tax_types_label":"Belastingtypen","pdf_expenses_label":"Uitgaven","pdf_bill_to":"Rekening naar,","pdf_ship_to":"Verzend naar,","pdf_received_from":"Received from:"}')},"5Tg0":function(e,t,n){(function(e){var r=n("Kz5y"),a=t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===a?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n("YuTi")(e))},"5i4m":function(e,t,n){!function(){var t=new RegExp("^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$","i");function n(e){for(var t="",n=0;n<e;n++)t+=(65536*(1+Math.random())|0).toString(16).substring(1);return t}function r(e){if(!e)throw new TypeError("Invalid argument; `value` has no value.");this.value=r.EMPTY,e&&e instanceof r?this.value=e.toString():e&&"[object String]"===Object.prototype.toString.call(e)&&r.isGuid(e)&&(this.value=e),this.equals=function(e){return r.isGuid(e)&&this.value==e},this.isEmpty=function(){return this.value===r.EMPTY},this.toString=function(){return this.value},this.toJSON=function(){return this.value}}r.EMPTY="00000000-0000-0000-0000-000000000000",r.isGuid=function(e){return e&&(e instanceof r||t.test(e.toString()))},r.create=function(){return new r([n(2),n(1),n(1),n(1),n(3)].join("-"))},r.raw=function(){return[n(2),n(1),n(1),n(1),n(3)].join("-")},e.exports?e.exports=r:"undefined"!=typeof window&&(window.Guid=r)}()},"5lKX":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("eO9T");t.default=function(e){return(0,r.withParams)({type:"requiredUnless",prop:e},(function(t,n){return!!(0,r.ref)(e,this,n)||(0,r.req)(t)}))}},"5oMp":function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},"5rGH":function(e,t,n){var r=n("QrEl");"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,a);r.locals&&(e.exports=r.locals)},"6+QB":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("wd/R"))},"62b2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("eO9T");t.default=function(e){return(0,r.withParams)({type:"minValue",min:e},(function(t){return!(0,r.req)(t)||(!/\s/.test(t)||t instanceof Date)&&+t>=+e}))}},"6B0Y":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("wd/R"))},"6Q9W":function(e,t,n){var r=n("fvq0");"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,a);r.locals&&(e.exports=r.locals)},"6sVZ":function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},"77Zs":function(e,t,n){var r=n("Xi7e");e.exports=function(){this.__data__=new r,this.size=0}},"7BF0":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("eO9T");t.default=function(e,t){return(0,r.withParams)({type:"between",min:e,max:t},(function(n){return!(0,r.req)(n)||(!/\s/.test(n)||n instanceof Date)&&+e<=+n&&+t>=+n}))}},"7BjC":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?a[n][2]?a[n][2]:a[n][1]:r?a[n][0]:a[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},"7C5Q":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("wd/R"))},"7Ix3":function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},"7aV9":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("wd/R"))},"7kBu":function(e,t,n){var r=n("jxF0");"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,a);r.locals&&(e.exports=r.locals)},"8/+R":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("wd/R"))},"88Gu":function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var a=n(),i=16-(a-r);if(r=a,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},"8L3F":function(e,t,n){"use strict";(function(e){var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var a=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),r))}};function i(e){return e&&"[object Function]"==={}.toString.call(e)}function o(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function l(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=o(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/(auto|scroll|overlay)/.test(n+a+r)?e:l(s(e))}function c(e){return e&&e.referenceNode?e.referenceNode:e}var u=n&&!(!window.MSInputMethodContext||!document.documentMode),d=n&&/MSIE 10/.test(navigator.userAgent);function p(e){return 11===e?u:10===e?d:u||d}function f(e){if(!e)return document.documentElement;for(var t=p(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===o(n,"position")?f(n):n:e?e.ownerDocument.documentElement:document.documentElement}function m(e){return null!==e.parentNode?m(e.parentNode):e}function h(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,a=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(a,0);var o,s,l=i.commonAncestorContainer;if(e!==l&&t!==l||r.contains(a))return"BODY"===(s=(o=l).nodeName)||"HTML"!==s&&f(o.firstElementChild)!==o?f(l):l;var c=m(e);return c.host?h(c.host,t):h(e,m(t).host)}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var a=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||a;return i[n]}return e[n]}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=_(t,"top"),a=_(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=a*i,e.right+=a*i,e}function g(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function y(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],p(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function b(e){var t=e.body,n=e.documentElement,r=p(10)&&getComputedStyle(n);return{height:y("Height",t,n,r),width:y("Width",t,n,r)}}var w=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},x=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),k=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function M(e){return D({},e,{right:e.left+e.width,bottom:e.top+e.height})}function S(e){var t={};try{if(p(10)){t=e.getBoundingClientRect();var n=_(e,"top"),r=_(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var a={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?b(e.ownerDocument):{},s=i.width||e.clientWidth||a.width,l=i.height||e.clientHeight||a.height,c=e.offsetWidth-s,u=e.offsetHeight-l;if(c||u){var d=o(e);c-=g(d,"x"),u-=g(d,"y"),a.width-=c,a.height-=u}return M(a)}function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=p(10),a="HTML"===t.nodeName,i=S(e),s=S(t),c=l(e),u=o(t),d=parseFloat(u.borderTopWidth),f=parseFloat(u.borderLeftWidth);n&&a&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var m=M({top:i.top-s.top-d,left:i.left-s.left-f,width:i.width,height:i.height});if(m.marginTop=0,m.marginLeft=0,!r&&a){var h=parseFloat(u.marginTop),_=parseFloat(u.marginLeft);m.top-=d-h,m.bottom-=d-h,m.left-=f-_,m.right-=f-_,m.marginTop=h,m.marginLeft=_}return(r&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(m=v(m,t)),m}function L(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=C(e,n),a=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:_(n),s=t?0:_(n,"left"),l={top:o-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:a,height:i};return M(l)}function T(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===o(e,"position"))return!0;var n=s(e);return!!n&&T(n)}function E(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 O(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},o=a?E(e):h(e,c(t));if("viewport"===r)i=L(o,a);else{var u=void 0;"scrollParent"===r?"BODY"===(u=l(s(t))).nodeName&&(u=e.ownerDocument.documentElement):u="window"===r?e.ownerDocument.documentElement:r;var d=C(u,o,a);if("HTML"!==u.nodeName||T(o))i=d;else{var p=b(e.ownerDocument),f=p.height,m=p.width;i.top+=d.top-d.marginTop,i.bottom=f+d.top,i.left+=d.left-d.marginLeft,i.right=m+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,r,a){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var o=O(n,r,i,a),s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},l=Object.keys(s).map((function(e){return D({key:e},s[e],{area:j(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function P(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=r?E(t):h(t,c(n));return C(n,a,r)}function Y(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function $(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 I(e,t,n){n=n.split("-")[0];var r=Y(e),a={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),o=i?"top":"left",s=i?"left":"top",l=i?"height":"width",c=i?"width":"height";return a[o]=t[o]+t[l]/2-r[l]/2,a[s]=n===s?t[s]-r[c]:t[$(s)],a}function N(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 r=N(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&i(n)&&(t.offsets.popper=M(t.offsets.popper),t.offsets.reference=M(t.offsets.reference),t=n(t,e))})),t}function F(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=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=I(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 R(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function H(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var a=t[r],i=a?""+a+n:e;if(void 0!==document.body.style[i])return i}return null}function B(){return this.state.isDestroyed=!0,R(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[H("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 U(e,t,n,r){n.updateBound=r,q(e).addEventListener("resize",n.updateBound,{passive:!0});var a=l(e);return function e(t,n,r,a){var i="BODY"===t.nodeName,o=i?t.ownerDocument.defaultView:t;o.addEventListener(n,r,{passive:!0}),i||e(l(o.parentNode),n,r,a),a.push(o)}(a,"scroll",n.updateBound,n.scrollParents),n.scrollElement=a,n.eventsEnabled=!0,n}function V(){this.state.eventsEnabled||(this.state=U(this.reference,this.options,this.state,this.scheduleUpdate))}function W(){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 K(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function G(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&K(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var J=n&&/Firefox/i.test(navigator.userAgent);function Z(e,t,n){var r=N(e,(function(e){return e.name===t})),a=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!a){var i="`"+t+"`",o="`"+n+"`";console.warn(o+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return a}var X=["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"],Q=X.slice(3);function ee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Q.indexOf(e),r=Q.slice(n+1).concat(Q.slice(0,n));return t?r.reverse():r}var te="flip",ne="clockwise",re="counterclockwise";function ae(e,t,n,r){var a=[0,0],i=-1!==["right","left"].indexOf(r),o=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=o.indexOf(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,r){var a=(1===r?!i:i)?"height":"width",o=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var a=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+a[1],o=a[2];if(!i)return e;if(0===o.indexOf("%")){var s=void 0;switch(o){case"%p":s=n;break;case"%":case"%r":default:s=r}return M(s)[t]/100*i}if("vh"===o||"vw"===o){return("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i}return i}(e,a,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){K(n)&&(a[t]+=n*("-"===e[r-1]?-1:1))}))})),a}var ie={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var a=e.offsets,i=a.reference,o=a.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:k({},l,i[l]),end:k({},l,i[l]+i[c]-o[c])};e.offsets.popper=D({},o,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,a=e.offsets,i=a.popper,o=a.reference,s=r.split("-")[0],l=void 0;return l=K(+n)?[+n,0]:ae(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||f(e.instance.popper);e.instance.reference===n&&(n=f(n));var r=H("transform"),a=e.instance.popper.style,i=a.top,o=a.left,s=a[r];a.top="",a.left="",a[r]="";var l=O(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);a.top=i,a.left=o,a[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),k({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),k({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=D({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,a=e.placement.split("-")[0],i=Math.floor,o=-1!==["top","bottom"].indexOf(a),s=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return n[s]<i(r[l])&&(e.offsets.popper[l]=i(r[l])-n[c]),n[l]>i(r[s])&&(e.offsets.popper[l]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Z(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var a=e.placement.split("-")[0],i=e.offsets,s=i.popper,l=i.reference,c=-1!==["left","right"].indexOf(a),u=c?"height":"width",d=c?"Top":"Left",p=d.toLowerCase(),f=c?"left":"top",m=c?"bottom":"right",h=Y(r)[u];l[m]-h<s[p]&&(e.offsets.popper[p]-=s[p]-(l[m]-h)),l[p]+h>s[m]&&(e.offsets.popper[p]+=l[p]+h-s[m]),e.offsets.popper=M(e.offsets.popper);var _=l[p]+l[u]/2-h/2,v=o(e.instance.popper),g=parseFloat(v["margin"+d]),y=parseFloat(v["border"+d+"Width"]),b=_-e.offsets.popper[p]-g-y;return b=Math.max(Math.min(s[u]-h,b),0),e.arrowElement=r,e.offsets.arrow=(k(n={},p,Math.round(b)),k(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(R(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=O(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],a=$(r),i=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case te:o=[r,a];break;case ne:o=ee(r);break;case re:o=ee(r,!0);break;default:o=t.behavior}return o.forEach((function(s,l){if(r!==s||o.length===l+1)return e;r=e.placement.split("-")[0],a=$(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)<d(u.right)||"top"===r&&d(c.bottom)>d(u.top)||"bottom"===r&&d(c.top)<d(u.bottom),f=d(c.left)<d(n.left),m=d(c.right)>d(n.right),h=d(c.top)<d(n.top),_=d(c.bottom)>d(n.bottom),v="left"===r&&f||"right"===r&&m||"top"===r&&h||"bottom"===r&&_,g=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(g&&"start"===i&&f||g&&"end"===i&&m||!g&&"start"===i&&h||!g&&"end"===i&&_),b=!!t.flipVariationsByContent&&(g&&"start"===i&&m||g&&"end"===i&&f||!g&&"start"===i&&_||!g&&"end"===i&&h),w=y||b;(p||v||w)&&(e.flipped=!0,(p||v)&&(r=o[l+1]),w&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=D({},e.offsets.popper,I(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],r=e.offsets,a=r.popper,i=r.reference,o=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return a[o?"left":"top"]=i[n]-(s?a[o?"width":"height"]:0),e.placement=$(t),e.offsets.popper=M(a),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Z(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,r=t.y,a=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=f(e.instance.popper),l=S(s),c={position:a.position},u=function(e,t){var n=e.offsets,r=n.popper,a=n.reference,i=Math.round,o=Math.floor,s=function(e){return e},l=i(a.width),c=i(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),p=t?u||d||l%2==c%2?i:o:s,f=t?i:s;return{left:p(l%2==1&&c%2==1&&!d&&t?r.left-1:r.left),top:f(r.top),bottom:f(r.bottom),right:p(r.right)}}(e,window.devicePixelRatio<2||!J),d="bottom"===n?"top":"bottom",p="right"===r?"left":"right",m=H("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&&m)c[m]="translate3d("+h+"px, "+_+"px, 0)",c[d]=0,c[p]=0,c.willChange="transform";else{var v="bottom"===d?-1:1,g="right"===p?-1:1;c[d]=_*v,c[p]=h*g,c.willChange=d+", "+p}var y={"x-placement":e.placement};return e.attributes=D({},y,e.attributes),e.styles=D({},c,e.styles),e.arrowStyles=D({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return G(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&G(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,a){var i=P(a,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}}},oe=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};w(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=a(this.update.bind(this)),this.options=D({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(D({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=D({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return D({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&i(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return x(e,[{key:"update",value:function(){return F.call(this)}},{key:"destroy",value:function(){return B.call(this)}},{key:"enableEventListeners",value:function(){return V.call(this)}},{key:"disableEventListeners",value:function(){return W.call(this)}}]),e}();oe.Utils=("undefined"!=typeof window?window:e).PopperUtils,oe.placements=X,oe.Defaults=ie,t.a=oe}).call(this,n("yLpj"))},"8mBD":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("wd/R"))},"8oxB":function(e,t){var n,r,a=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var l,c=[],u=!1,d=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&f())}function f(){if(!u){var e=s(p);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}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];c.push(new m(e,t)),1!==c.length||u||s(f)},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=h,a.addListener=h,a.once=h,a.off=h,a.removeListener=h,a.removeAllListeners=h,a.emit=h,a.prependListener=h,a.prependOnceListener=h,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}},"9n23":function(e,t,n){"use strict";n("7kBu")},"9rRi":function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["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"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"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("wd/R"))},"9rSQ":function(e,t,n){"use strict";var r=n("xTJ+");function a(){this.handlers=[]}a.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},a.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},a.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=a},"9tPo":function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var a,i=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(a=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(a)+")")}))}},"A+xa":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("wd/R"))},ACR0:function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,".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}}",""])},AP2z:function(e,t,n){var r=n("nmnc"),a=Object.prototype,i=a.hasOwnProperty,o=a.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var a=o.call(e);return r&&(t?e[s]=n:delete e[s]),a}},AQ68: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("wd/R"))},AjSV:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.pushParams=o,t.popParams=s,t.withParams=function(e,t){if("object"==typeof e&&void 0!==t)return n=e,r=t,c((function(e){return function(){e(n);for(var t=arguments.length,a=Array(t),i=0;i<t;i++)a[i]=arguments[i];return r.apply(this,a)}}));var n,r;return c(e)};var a=[],i=t.target=null;t._setTarget=function(e){t.target=i=e};function o(){null!==i&&a.push(i),t.target=i={}}function s(){var e=i,n=t.target=i=a.pop()||null;return n&&(Array.isArray(n.$sub)||(n.$sub=[]),n.$sub.push(e)),e}function l(e){if("object"!=typeof e||Array.isArray(e))throw new Error("params must be an object");t.target=i=r({},i,e)}function c(e){var t=e(l);return function(){o();try{for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.apply(this,n)}finally{s()}}}},AvvY: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("wd/R"))},B55N: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("wd/R"))},B8du:function(e,t){e.exports=function(){return!1}},B9Yq:function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},BVg3:function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,r,a){var i=e+" ";switch(r){case"s":return n||a?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?i+(n||a?"sekúndur":"sekúndum"):i+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?i+(n||a?"mínútur":"mínútum"):n?i+"mínúta":i+"mínútu";case"hh":return t(e)?i+(n||a?"klukkustundir":"klukkustundum"):i+"klukkustund";case"d":return n?"dagur":a?"dag":"degi";case"dd":return t(e)?n?i+"dagar":i+(a?"daga":"dögum"):n?i+"dagur":i+(a?"dag":"degi");case"M":return n?"mánuður":a?"mánuð":"mánuði";case"MM":return t(e)?n?i+"mánuðir":i+(a?"mánuði":"mánuðum"):n?i+"mánuður":i+(a?"mánuð":"mánuði");case"y":return n||a?"ár":"ári";case"yy":return t(e)?i+(n||a?"ár":"árum"):i+(n||a?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},ByF4: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("wd/R"))},CVKz:function(e,t,n){var r=n("cybi");"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,a);r.locals&&(e.exports=r.locals)},CaTG:function(e,t,n){"use strict";var r={props:{showBgOverlay:{default:!1,type:Boolean}}},a=(n("+Nc4"),n("KHd+")),i=Object(a.a)(r,(function(){var e=this.$createElement;return(this._self._c||e)("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":this.showBgOverlay}},[this._m(0)])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"absolute top-0 left-0 w-full h-full overlay"},[t("div",{staticClass:"absolute flex items-center justify-center ball-scale-ripple-multiple"},[t("div"),this._v(" "),t("div"),this._v(" "),t("div")])])}],!1,null,null,null);t.a=i.exports},CgaS:function(e,t,n){"use strict";var r=n("xTJ+"),a=n("MLWZ"),i=n("9rSQ"),o=n("UnBK"),s=n("SntB");function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[o,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},l.prototype.getUri=function(e){return e=s(this.defaults,e),a(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,a){return this.request(r.merge(a||{},{method:e,url:t,data:n}))}})),e.exports=l},CjzT:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("wd/R"))},CoRJ: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("wd/R"))},Cwc5:function(e,t,n){var r=n("NKxu"),a=n("Npjl");e.exports=function(e,t){var n=a(e,t);return r(n)?n:void 0}},CxY0:function(e,t,n){"use strict";var r=n("GYWy"),a=n("Nehr");function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){a.isString(e)&&(e=y(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var o=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(c),d=["%","/","?",";","#"].concat(u),p=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},_={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=n("s4NR");function y(e,t,n){if(e&&a.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i<e.indexOf("#")?"?":"#",c=e.split(s);c[0]=c[0].replace(/\\/g,"/");var y=e=c.join(s);if(y=y.trim(),!n&&1===e.split("#").length){var b=l.exec(y);if(b)return this.path=y,this.href=y,this.pathname=b[1],b[2]?(this.search=b[2],this.query=t?g.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=o.exec(y);if(w){var x=(w=w[0]).toLowerCase();this.protocol=x,y=y.substr(w.length)}if(n||w||y.match(/^\/\/[^@\/]+@[^@\/]+/)){var k="//"===y.substr(0,2);!k||w&&_[w]||(y=y.substr(2),this.slashes=!0)}if(!_[w]&&(k||w&&!v[w])){for(var D,M,S=-1,C=0;C<p.length;C++){-1!==(L=y.indexOf(p[C]))&&(-1===S||L<S)&&(S=L)}-1!==(M=-1===S?y.lastIndexOf("@"):y.lastIndexOf("@",S))&&(D=y.slice(0,M),y=y.slice(M+1),this.auth=decodeURIComponent(D)),S=-1;for(C=0;C<d.length;C++){var L;-1!==(L=y.indexOf(d[C]))&&(-1===S||L<S)&&(S=L)}-1===S&&(S=y.length),this.host=y.slice(0,S),y=y.slice(S),this.parseHost(),this.hostname=this.hostname||"";var T="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!T)for(var E=this.hostname.split(/\./),O=(C=0,E.length);C<O;C++){var j=E[C];if(j&&!j.match(f)){for(var A="",P=0,Y=j.length;P<Y;P++)j.charCodeAt(P)>127?A+="x":A+=j[P];if(!A.match(f)){var $=E.slice(0,C),I=E.slice(C+1),N=j.match(m);N&&($.push(N[1]),I.unshift(N[2])),I.length&&(y="/"+I.join(".")+y),this.hostname=$.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=r.toASCII(this.hostname));var z=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+z,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!h[x])for(C=0,O=u.length;C<O;C++){var R=u[C];if(-1!==y.indexOf(R)){var H=encodeURIComponent(R);H===R&&(H=escape(R)),y=y.split(R).join(H)}}var B=y.indexOf("#");-1!==B&&(this.hash=y.substr(B),y=y.slice(0,B));var q=y.indexOf("?");if(-1!==q?(this.search=y.substr(q),this.query=y.substr(q+1),t&&(this.query=g.parse(this.query)),y=y.slice(0,q)):t&&(this.search="",this.query={}),y&&(this.pathname=y),v[x]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){z=this.pathname||"";var U=this.search||"";this.path=z+U}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&a.isObject(this.query)&&Object.keys(this.query).length&&(o=g.stringify(this.query));var s=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||v[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+i+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+r},i.prototype.resolve=function(e){return this.resolveObject(y(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(a.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),o=0;o<r.length;o++){var s=r[o];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),c=0;c<l.length;c++){var u=l[c];"protocol"!==u&&(n[u]=e[u])}return v[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!v[e.protocol]){for(var d=Object.keys(e),p=0;p<d.length;p++){var f=d[p];n[f]=e[f]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||_[e.protocol])n.pathname=e.pathname;else{for(var m=(e.pathname||"").split("/");m.length&&!(e.host=m.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==m[0]&&m.unshift(""),m.length<2&&m.unshift(""),n.pathname=m.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var h=n.pathname||"",g=n.search||"";n.path=h+g}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=b||y||n.host&&e.pathname,x=w,k=n.pathname&&n.pathname.split("/")||[],D=(m=e.pathname&&e.pathname.split("/")||[],n.protocol&&!v[n.protocol]);if(D&&(n.hostname="",n.port=null,n.host&&(""===k[0]?k[0]=n.host:k.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===m[0]?m[0]=e.host:m.unshift(e.host)),e.host=null),w=w&&(""===m[0]||""===k[0])),b)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,k=m;else if(m.length)k||(k=[]),k.pop(),k=k.concat(m),n.search=e.search,n.query=e.query;else if(!a.isNullOrUndefined(e.search)){if(D)n.hostname=n.host=k.shift(),(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift());return n.search=e.search,n.query=e.query,a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!k.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var M=k.slice(-1)[0],S=(n.host||e.host||k.length>1)&&("."===M||".."===M)||""===M,C=0,L=k.length;L>=0;L--)"."===(M=k[L])?k.splice(L,1):".."===M?(k.splice(L,1),C++):C&&(k.splice(L,1),C--);if(!w&&!x)for(;C--;C)k.unshift("..");!w||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),S&&"/"!==k.join("/").substr(-1)&&k.push("");var T,E=""===k[0]||k[0]&&"/"===k[0].charAt(0);D&&(n.hostname=n.host=E?"":k.length?k.shift():"",(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift()));return(w=w||n.host&&k.length)&&!E&&k.unshift(""),k.length?n.pathname=k.join("/"):(n.pathname=null,n.path=null),a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},"D/JM":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("wd/R"))},DFBw:function(e,t,n){"use strict";n("+c5i")},"DKr+":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return r?a[n][0]:a[n][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(n("wd/R"))},DSRE:function(e,t,n){(function(e){var r=n("Kz5y"),a=n("B8du"),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||a;e.exports=l}).call(this,n("YuTi")(e))},DfZB:function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},Dkky: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:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n("wd/R"))},Dmvi: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("wd/R"))},DoHr:function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n("wd/R"))},DxQv: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("wd/R"))},Dzi0: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("wd/R"))},"E+lV":function(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var a=t.words[r];return 1===r.length?n?a[0]:a[1]:e+" "+t.correctGrammaticalCase(e,a)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},E2jh:function(e,t,n){var r,a=n("2gN3"),i=(r=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},EA7m:function(e,t,n){var r=n("zZ0H"),a=n("Ioao"),i=n("wclG");e.exports=function(e,t){return i(a(e,t,r),e+"")}},EOgW: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("wd/R"))},EVdn:function(e,t,n){var r;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(n,a){"use strict";var i=[],o=Object.getPrototypeOf,s=i.slice,l=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},c=i.push,u=i.indexOf,d={},p=d.toString,f=d.hasOwnProperty,m=f.toString,h=m.call(Object),_={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},g=function(e){return null!=e&&e===e.window},y=n.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,a,i=(n=n||y).createElement("script");if(i.text=e,t)for(r in b)(a=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,a);n.head.appendChild(i).parentNode.removeChild(i)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[p.call(e)]||"object":typeof e}var k=function(e,t){return new k.fn.init(e,t)};function D(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}k.fn=k.prototype={jquery:"3.5.1",constructor:k,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(e){return this.pushStack(k.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(k.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:i.sort,splice:i.splice},k.extend=k.fn.extend=function(){var e,t,n,r,a,i,o=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[s]||{},s++),"object"==typeof o||v(o)||(o={}),s===l&&(o=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&o!==r&&(c&&r&&(k.isPlainObject(r)||(a=Array.isArray(r)))?(n=o[t],i=a&&!Array.isArray(n)?[]:a||k.isPlainObject(n)?n:{},a=!1,o[t]=k.extend(c,i,r)):void 0!==r&&(o[t]=r));return o},k.extend({expando:"jQuery"+("3.5.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==p.call(e))&&(!(t=o(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&m.call(n)===h)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(D(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(D(Object(e))?k.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,a=e.length;r<n;r++)e[a++]=t[r];return e.length=a,e},grep:function(e,t,n){for(var r=[],a=0,i=e.length,o=!n;a<i;a++)!t(e[a],a)!==o&&r.push(e[a]);return r},map:function(e,t,n){var r,a,i=0,o=[];if(D(e))for(r=e.length;i<r;i++)null!=(a=t(e[i],i,n))&&o.push(a);else for(i in e)null!=(a=t(e[i],i,n))&&o.push(a);return l(o)},guid:1,support:_}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=i[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var M=function(e){var t,n,r,a,i,o,s,l,c,u,d,p,f,m,h,_,v,g,y,b="sizzle"+1*new Date,w=e.document,x=0,k=0,D=le(),M=le(),S=le(),C=le(),L=function(e,t){return e===t&&(d=!0),0},T={}.hasOwnProperty,E=[],O=E.pop,j=E.push,A=E.push,P=E.slice,Y=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},$="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",I="[\\x20\\t\\r\\n\\f]",N="(?:\\\\[\\da-fA-F]{1,6}"+I+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",z="\\["+I+"*("+N+")(?:"+I+"*([*^$|!~]?=)"+I+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+I+"*\\]",F=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",R=new RegExp(I+"+","g"),H=new RegExp("^"+I+"+|((?:^|[^\\\\])(?:\\\\.)*)"+I+"+$","g"),B=new RegExp("^"+I+"*,"+I+"*"),q=new RegExp("^"+I+"*([>+~]|"+I+")"+I+"*"),U=new RegExp(I+"|>"),V=new RegExp(F),W=new RegExp("^"+N+"$"),K={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+$+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+I+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ae=function(e,t){return t?"\0"===e?"<22>":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){p()},oe=be((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{A.apply(E=P.call(w.childNodes),w.childNodes),E[w.childNodes.length].nodeType}catch(e){A={apply:E.length?function(e,t){j.apply(e,P.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,a){var i,s,c,u,d,m,v,g=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return r;if(!a&&(p(t),t=t||f,h)){if(11!==w&&(d=Q.exec(e)))if(i=d[1]){if(9===w){if(!(c=t.getElementById(i)))return r;if(c.id===i)return r.push(c),r}else if(g&&(c=g.getElementById(i))&&y(t,c)&&c.id===i)return r.push(c),r}else{if(d[2])return A.apply(r,t.getElementsByTagName(e)),r;if((i=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return A.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!C[e+" "]&&(!_||!_.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(v=e,g=t,1===w&&(U.test(e)||q.test(e))){for((g=ee.test(e)&&ve(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(re,ae):t.setAttribute("id",u=b)),s=(m=o(e)).length;s--;)m[s]=(u?"#"+u:":scope")+" "+ye(m[s]);v=m.join(",")}try{return A.apply(r,g.querySelectorAll(v)),r}catch(t){C(e,!0)}finally{u===b&&t.removeAttribute("id")}}}return l(e.replace(H,"$1"),t,r,a)}function le(){var e=[];return function t(n,a){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=a}}function ce(e){return e[b]=!0,e}function ue(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),a=n.length;a--;)r.attrHandle[n[a]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function me(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function he(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&oe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function _e(e){return ce((function(t){return t=+t,ce((function(n,r){for(var a,i=e([],n.length,t),o=i.length;o--;)n[a=i[o]]&&(n[a]=!(r[a]=n[a]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!G.test(t||n&&n.nodeName||"HTML")},p=se.setDocument=function(e){var t,a,o=e?e.ownerDocument||e:w;return o!=f&&9===o.nodeType&&o.documentElement?(m=(f=o).documentElement,h=!i(f),w!=f&&(a=f.defaultView)&&a.top!==a&&(a.addEventListener?a.addEventListener("unload",ie,!1):a.attachEvent&&a.attachEvent("onunload",ie)),n.scope=ue((function(e){return m.appendChild(e).appendChild(f.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=X.test(f.getElementsByClassName),n.getById=ue((function(e){return m.appendChild(e).id=b,!f.getElementsByName||!f.getElementsByName(b).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var n,r,a,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(a=t.getElementsByName(e),r=0;i=a[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],a=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[a++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&h)return t.getElementsByClassName(e)},v=[],_=[],(n.qsa=X.test(f.querySelectorAll))&&(ue((function(e){var t;m.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&_.push("[*^$]="+I+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||_.push("\\["+I+"*(?:value|"+$+")"),e.querySelectorAll("[id~="+b+"-]").length||_.push("~="),(t=f.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||_.push("\\["+I+"*name"+I+"*="+I+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||_.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||_.push(".#.+[+~]"),e.querySelectorAll("\\\f"),_.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&_.push("name"+I+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&_.push(":enabled",":disabled"),m.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&_.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),_.push(",.*:")}))),(n.matchesSelector=X.test(g=m.matches||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=g.call(e,"*"),g.call(e,"[s!='']:x"),v.push("!=",F)})),_=_.length&&new RegExp(_.join("|")),v=v.length&&new RegExp(v.join("|")),t=X.test(m.compareDocumentPosition),y=t||X.test(m.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},L=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==f||e.ownerDocument==w&&y(w,e)?-1:t==f||t.ownerDocument==w&&y(w,t)?1:u?Y(u,e)-Y(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,a=e.parentNode,i=t.parentNode,o=[e],s=[t];if(!a||!i)return e==f?-1:t==f?1:a?-1:i?1:u?Y(u,e)-Y(u,t):0;if(a===i)return pe(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;o[r]===s[r];)r++;return r?pe(o[r],s[r]):o[r]==w?-1:s[r]==w?1:0},f):f},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(p(e),n.matchesSelector&&h&&!C[t+" "]&&(!v||!v.test(t))&&(!_||!_.test(t)))try{var r=g.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){C(t,!0)}return se(t,f,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=f&&p(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=f&&p(e);var a=r.attrHandle[t.toLowerCase()],i=a&&T.call(r.attrHandle,t.toLowerCase())?a(e,t,!h):void 0;return void 0!==i?i:n.attributes||!h?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},se.escape=function(e){return(e+"").replace(re,ae)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],a=0,i=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(L),d){for(;t=e[i++];)t===e[i]&&(a=r.push(i));for(;a--;)e.splice(r[a],1)}return u=null,e},a=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=a(t);return n},(r=se.selectors={cacheLength:50,createPseudo:ce,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=o(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=D[e+" "];return t||(t=new RegExp("(^|"+I+")"+e+"("+I+"|$)"))&&D(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var a=se.attr(r,e);return null==a?"!="===t:!t||(a+="","="===t?a===n:"!="===t?a!==n:"^="===t?n&&0===a.indexOf(n):"*="===t?n&&a.indexOf(n)>-1:"$="===t?n&&a.slice(-n.length)===n:"~="===t?(" "+a.replace(R," ")+" ").indexOf(n)>-1:"|="===t&&(a===n||a.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,a){var i="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===a?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,p,f,m,h=i!==o?"nextSibling":"previousSibling",_=t.parentNode,v=s&&t.nodeName.toLowerCase(),g=!l&&!s,y=!1;if(_){if(i){for(;h;){for(p=t;p=p[h];)if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;m=h="only"===e&&!m&&"nextSibling"}return!0}if(m=[o?_.firstChild:_.lastChild],o&&g){for(y=(f=(c=(u=(d=(p=_)[b]||(p[b]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===x&&c[1])&&c[2],p=f&&_.childNodes[f];p=++f&&p&&p[h]||(y=f=0)||m.pop();)if(1===p.nodeType&&++y&&p===t){u[e]=[x,f,y];break}}else if(g&&(y=f=(c=(u=(d=(p=t)[b]||(p[b]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===x&&c[1]),!1===y)for(;(p=++f&&p&&p[h]||(y=f=0)||m.pop())&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++y||(g&&((u=(d=p[b]||(p[b]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]=[x,y]),p!==t)););return(y-=a)===r||y%r==0&&y/r>=0}}},PSEUDO:function(e,t){var n,a=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[b]?a(t):a.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,n){for(var r,i=a(e,t),o=i.length;o--;)e[r=Y(e,i[o])]=!(n[r]=i[o])})):function(e){return a(e,0,n)}):a}},pseudos:{not:ce((function(e){var t=[],n=[],r=s(e.replace(H,"$1"));return r[b]?ce((function(e,t,n,a){for(var i,o=r(e,null,a,[]),s=e.length;s--;)(i=o[s])&&(e[s]=!(t[s]=i))})):function(e,a,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}})),has:ce((function(e){return function(t){return se(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||a(t)).indexOf(e)>-1}})),lang:ce((function(e){return W.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===m},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:he(!1),disabled:he(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:_e((function(){return[0]})),last:_e((function(e,t){return[t-1]})),eq:_e((function(e,t,n){return[n<0?n+t:n]})),even:_e((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:_e((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:_e((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:_e((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=fe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=me(t);function ge(){}function ye(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(e,t,n){var r=t.dir,a=t.next,i=a||r,o=n&&"parentNode"===i,s=k++;return t.first?function(t,n,a){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,a);return!1}:function(t,n,l){var c,u,d,p=[x,s];if(l){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||o)if(u=(d=t[b]||(t[b]={}))[t.uniqueID]||(d[t.uniqueID]={}),a&&a===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=u[i])&&c[0]===x&&c[1]===s)return p[2]=c[2];if(u[i]=p,p[2]=e(t,n,l))return!0}return!1}}function we(e){return e.length>1?function(t,n,r){for(var a=e.length;a--;)if(!e[a](t,n,r))return!1;return!0}:e[0]}function xe(e,t,n,r,a){for(var i,o=[],s=0,l=e.length,c=null!=t;s<l;s++)(i=e[s])&&(n&&!n(i,r,a)||(o.push(i),c&&t.push(s)));return o}function ke(e,t,n,r,a,i){return r&&!r[b]&&(r=ke(r)),a&&!a[b]&&(a=ke(a,i)),ce((function(i,o,s,l){var c,u,d,p=[],f=[],m=o.length,h=i||function(e,t,n){for(var r=0,a=t.length;r<a;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),_=!e||!i&&t?h:xe(h,p,e,s,l),v=n?a||(i?e:m||r)?[]:o:_;if(n&&n(_,v,s,l),r)for(c=xe(v,f),r(c,[],s,l),u=c.length;u--;)(d=c[u])&&(v[f[u]]=!(_[f[u]]=d));if(i){if(a||e){if(a){for(c=[],u=v.length;u--;)(d=v[u])&&c.push(_[u]=d);a(null,v=[],c,l)}for(u=v.length;u--;)(d=v[u])&&(c=a?Y(i,d):p[u])>-1&&(i[c]=!(o[c]=d))}}else v=xe(v===o?v.splice(m,v.length):v),a?a(null,o,v,l):A.apply(o,v)}))}function De(e){for(var t,n,a,i=e.length,o=r.relative[e[0].type],s=o||r.relative[" "],l=o?1:0,u=be((function(e){return e===t}),s,!0),d=be((function(e){return Y(t,e)>-1}),s,!0),p=[function(e,n,r){var a=!o&&(r||n!==c)||((t=n).nodeType?u(e,n,r):d(e,n,r));return t=null,a}];l<i;l++)if(n=r.relative[e[l].type])p=[be(we(p),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[b]){for(a=++l;a<i&&!r.relative[e[a].type];a++);return ke(l>1&&we(p),l>1&&ye(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(H,"$1"),n,l<a&&De(e.slice(l,a)),a<i&&De(e=e.slice(a)),a<i&&ye(e))}p.push(n)}return we(p)}return ge.prototype=r.filters=r.pseudos,r.setFilters=new ge,o=se.tokenize=function(e,t){var n,a,i,o,s,l,c,u=M[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=r.preFilter;s;){for(o in n&&!(a=B.exec(s))||(a&&(s=s.slice(a[0].length)||s),l.push(i=[])),n=!1,(a=q.exec(s))&&(n=a.shift(),i.push({value:n,type:a[0].replace(H," ")}),s=s.slice(n.length)),r.filter)!(a=K[o].exec(s))||c[o]&&!(a=c[o](a))||(n=a.shift(),i.push({value:n,type:o,matches:a}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):M(e,l).slice(0)},s=se.compile=function(e,t){var n,a=[],i=[],s=S[e+" "];if(!s){for(t||(t=o(e)),n=t.length;n--;)(s=De(t[n]))[b]?a.push(s):i.push(s);(s=S(e,function(e,t){var n=t.length>0,a=e.length>0,i=function(i,o,s,l,u){var d,m,_,v=0,g="0",y=i&&[],b=[],w=c,k=i||a&&r.find.TAG("*",u),D=x+=null==w?1:Math.random()||.1,M=k.length;for(u&&(c=o==f||o||u);g!==M&&null!=(d=k[g]);g++){if(a&&d){for(m=0,o||d.ownerDocument==f||(p(d),s=!h);_=e[m++];)if(_(d,o||f,s)){l.push(d);break}u&&(x=D)}n&&((d=!_&&d)&&v--,i&&y.push(d))}if(v+=g,n&&g!==v){for(m=0;_=t[m++];)_(y,b,o,s);if(i){if(v>0)for(;g--;)y[g]||b[g]||(b[g]=O.call(l));b=xe(b)}A.apply(l,b),u&&!i&&b.length>0&&v+t.length>1&&se.uniqueSort(l)}return u&&(x=D,c=w),y};return n?ce(i):i}(i,a))).selector=e}return s},l=se.select=function(e,t,n,a){var i,l,c,u,d,p="function"==typeof e&&e,f=!a&&o(e=p.selector||e);if(n=n||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&h&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(i=K.needsContext.test(e)?0:l.length;i--&&(c=l[i],!r.relative[u=c.type]);)if((d=r.find[u])&&(a=d(c.matches[0].replace(te,ne),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(i,1),!(e=a.length&&ye(l)))return A.apply(n,a),n;break}}return(p||s(e,f))(a,t,!h,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=b.split("").sort(L).join("")===b,n.detectDuplicates=!!d,p(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||de($,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(n);k.find=M,k.expr=M.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=M.uniqueSort,k.text=M.getText,k.isXMLDoc=M.isXML,k.contains=M.contains,k.escapeSelector=M.escape;var S=function(e,t,n){for(var r=[],a=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(a&&k(e).is(n))break;r.push(e)}return r},C=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},L=k.expr.match.needsContext;function T(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var E=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(e,t,n){return v(t)?k.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?k.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?k.grep(e,(function(e){return u.call(t,e)>-1!==n})):k.filter(t,e,n)}k.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?k.find.matchesSelector(r,e)?[r]:[]:k.find.matches(e,k.grep(t,(function(e){return 1===e.nodeType})))},k.fn.extend({find:function(e){var t,n,r=this.length,a=this;if("string"!=typeof e)return this.pushStack(k(e).filter((function(){for(t=0;t<r;t++)if(k.contains(a[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)k.find(e,a[t],n);return r>1?k.uniqueSort(n):n},filter:function(e){return this.pushStack(O(this,e||[],!1))},not:function(e){return this.pushStack(O(this,e||[],!0))},is:function(e){return!!O(this,"string"==typeof e&&L.test(e)?k(e):e||[],!1).length}});var j,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,a;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:A.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),E.test(r[1])&&k.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(a=y.getElementById(r[2]))&&(this[0]=a,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,j=k(y);var P=/^(?:parents|prev(?:Until|All))/,Y={children:!0,contents:!0,next:!0,prev:!0};function $(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(k.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,a=this.length,i=[],o="string"!=typeof e&&k(e);if(!L.test(e))for(;r<a;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&k.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?k.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?u.call(k(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return S(e,"parentNode")},parentsUntil:function(e,t,n){return S(e,"parentNode",n)},next:function(e){return $(e,"nextSibling")},prev:function(e){return $(e,"previousSibling")},nextAll:function(e){return S(e,"nextSibling")},prevAll:function(e){return S(e,"previousSibling")},nextUntil:function(e,t,n){return S(e,"nextSibling",n)},prevUntil:function(e,t,n){return S(e,"previousSibling",n)},siblings:function(e){return C((e.parentNode||{}).firstChild,e)},children:function(e){return C(e.firstChild)},contents:function(e){return null!=e.contentDocument&&o(e.contentDocument)?e.contentDocument:(T(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},(function(e,t){k.fn[e]=function(n,r){var a=k.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(a=k.filter(r,a)),this.length>1&&(Y[e]||k.uniqueSort(a),P.test(e)&&a.reverse()),this.pushStack(a)}}));var I=/[^\x20\t\r\n\f]+/g;function N(e){return e}function z(e){throw e}function F(e,t,n,r){var a;try{e&&v(a=e.promise)?a.call(e).done(t).fail(n):e&&v(a=e.then)?a.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}k.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return k.each(e.match(I)||[],(function(e,n){t[n]=!0})),t}(e):k.extend({},e);var t,n,r,a,i=[],o=[],s=-1,l=function(){for(a=a||e.once,r=t=!0;o.length;s=-1)for(n=o.shift();++s<i.length;)!1===i[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=i.length,n=!1);e.memory||(n=!1),t=!1,a&&(i=n?[]:"")},c={add:function(){return i&&(n&&!t&&(s=i.length-1,o.push(n)),function t(n){k.each(n,(function(n,r){v(r)?e.unique&&c.has(r)||i.push(r):r&&r.length&&"string"!==x(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return k.each(arguments,(function(e,t){for(var n;(n=k.inArray(t,i,n))>-1;)i.splice(n,1),n<=s&&s--})),this},has:function(e){return e?k.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return a=o=[],i=n="",this},disabled:function(){return!i},lock:function(){return a=o=[],n||t||(i=n=""),this},locked:function(){return!!a},fireWith:function(e,n){return a||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},k.extend({Deferred:function(e){var t=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],r="pending",a={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var e=arguments;return k.Deferred((function(n){k.each(t,(function(t,r){var a=v(e[r[4]])&&e[r[4]];i[r[1]]((function(){var e=a&&a.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,a?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,a){var i=0;function o(e,t,r,a){return function(){var s=this,l=arguments,c=function(){var n,c;if(!(e<i)){if((n=r.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then,v(c)?a?c.call(n,o(i,t,N,a),o(i,t,z,a)):(i++,c.call(n,o(i,t,N,a),o(i,t,z,a),o(i,t,N,t.notifyWith))):(r!==N&&(s=void 0,l=[n]),(a||t.resolveWith)(s,l))}},u=a?c:function(){try{c()}catch(n){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(n,u.stackTrace),e+1>=i&&(r!==z&&(s=void 0,l=[n]),t.rejectWith(s,l))}};e?u():(k.Deferred.getStackHook&&(u.stackTrace=k.Deferred.getStackHook()),n.setTimeout(u))}}return k.Deferred((function(n){t[0][3].add(o(0,n,v(a)?a:N,n.notifyWith)),t[1][3].add(o(0,n,v(e)?e:N)),t[2][3].add(o(0,n,v(r)?r:z))})).promise()},promise:function(e){return null!=e?k.extend(e,a):a}},i={};return k.each(t,(function(e,n){var o=n[2],s=n[5];a[n[1]]=o.add,s&&o.add((function(){r=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(n[3].fire),i[n[0]]=function(){return i[n[0]+"With"](this===i?void 0:this,arguments),this},i[n[0]+"With"]=o.fireWith})),a.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),a=s.call(arguments),i=k.Deferred(),o=function(e){return function(n){r[e]=this,a[e]=arguments.length>1?s.call(arguments):n,--t||i.resolveWith(r,a)}};if(t<=1&&(F(e,i.done(o(n)).resolve,i.reject,!t),"pending"===i.state()||v(a[n]&&a[n].then)))return i.then();for(;n--;)F(a[n],o(n),i.reject);return i.promise()}});var R=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&R.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){n.setTimeout((function(){throw e}))};var H=k.Deferred();function B(){y.removeEventListener("DOMContentLoaded",B),n.removeEventListener("load",B),k.ready()}k.fn.ready=function(e){return H.then(e).catch((function(e){k.readyException(e)})),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==e&&--k.readyWait>0||H.resolveWith(y,[k]))}}),k.ready.then=H.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?n.setTimeout(k.ready):(y.addEventListener("DOMContentLoaded",B),n.addEventListener("load",B));var q=function(e,t,n,r,a,i,o){var s=0,l=e.length,c=null==n;if("object"===x(n))for(s in a=!0,n)q(e,t,s,n[s],!0,i,o);else if(void 0!==r&&(a=!0,v(r)||(o=!0),c&&(o?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(k(e),n)})),t))for(;s<l;s++)t(e[s],n,o?r:r.call(e[s],s,t(e[s],n)));return a?e:c?t.call(e):l?t(e[0],n):i},U=/^-ms-/,V=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function K(e){return e.replace(U,"ms-").replace(V,W)}var G=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function J(){this.expando=k.expando+J.uid++}J.uid=1,J.prototype={cache:function(e){var t=e[this.expando];return t||(t={},G(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,a=this.cache(e);if("string"==typeof t)a[K(t)]=n;else for(r in t)a[K(r)]=t[r];return a},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][K(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(K):(t=K(t))in r?[t]:t.match(I)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||k.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var Z=new J,X=new J,Q=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ee=/[A-Z]/g;function te(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ee,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Q.test(e)?JSON.parse(e):e)}(n)}catch(e){}X.set(e,t,n)}else n=void 0;return n}k.extend({hasData:function(e){return X.hasData(e)||Z.hasData(e)},data:function(e,t,n){return X.access(e,t,n)},removeData:function(e,t){X.remove(e,t)},_data:function(e,t,n){return Z.access(e,t,n)},_removeData:function(e,t){Z.remove(e,t)}}),k.fn.extend({data:function(e,t){var n,r,a,i=this[0],o=i&&i.attributes;if(void 0===e){if(this.length&&(a=X.get(i),1===i.nodeType&&!Z.get(i,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(r=o[n].name).indexOf("data-")&&(r=K(r.slice(5)),te(i,r,a[r]));Z.set(i,"hasDataAttrs",!0)}return a}return"object"==typeof e?this.each((function(){X.set(this,e)})):q(this,(function(t){var n;if(i&&void 0===t)return void 0!==(n=X.get(i,e))||void 0!==(n=te(i,e))?n:void 0;this.each((function(){X.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){X.remove(this,e)}))}}),k.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Z.get(e,t),n&&(!r||Array.isArray(n)?r=Z.access(e,t,k.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=k.queue(e,t),r=n.length,a=n.shift(),i=k._queueHooks(e,t);"inprogress"===a&&(a=n.shift(),r--),a&&("fx"===t&&n.unshift("inprogress"),delete i.stop,a.call(e,(function(){k.dequeue(e,t)}),i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Z.get(e,n)||Z.access(e,n,{empty:k.Callbacks("once memory").add((function(){Z.remove(e,[t+"queue",n])}))})}}),k.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?k.queue(this[0],e):void 0===t?this:this.each((function(){var n=k.queue(this,e,t);k._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&k.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){k.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,a=k.Deferred(),i=this,o=this.length,s=function(){--r||a.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=Z.get(i[o],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),a.promise(t)}});var ne=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,re=new RegExp("^(?:([+-])=|)("+ne+")([a-z%]*)$","i"),ae=["Top","Right","Bottom","Left"],ie=y.documentElement,oe=function(e){return k.contains(e.ownerDocument,e)},se={composed:!0};ie.getRootNode&&(oe=function(e){return k.contains(e.ownerDocument,e)||e.getRootNode(se)===e.ownerDocument});var le=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&oe(e)&&"none"===k.css(e,"display")};function ce(e,t,n,r){var a,i,o=20,s=r?function(){return r.cur()}:function(){return k.css(e,t,"")},l=s(),c=n&&n[3]||(k.cssNumber[t]?"":"px"),u=e.nodeType&&(k.cssNumber[t]||"px"!==c&&+l)&&re.exec(k.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;o--;)k.style(e,t,u+c),(1-i)*(1-(i=s()/l||.5))<=0&&(o=0),u/=i;u*=2,k.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,a=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=a)),a}var ue={};function de(e){var t,n=e.ownerDocument,r=e.nodeName,a=ue[r];return a||(t=n.body.appendChild(n.createElement(r)),a=k.css(t,"display"),t.parentNode.removeChild(t),"none"===a&&(a="block"),ue[r]=a,a)}function pe(e,t){for(var n,r,a=[],i=0,o=e.length;i<o;i++)(r=e[i]).style&&(n=r.style.display,t?("none"===n&&(a[i]=Z.get(r,"display")||null,a[i]||(r.style.display="")),""===r.style.display&&le(r)&&(a[i]=de(r))):"none"!==n&&(a[i]="none",Z.set(r,"display",n)));for(i=0;i<o;i++)null!=a[i]&&(e[i].style.display=a[i]);return e}k.fn.extend({show:function(){return pe(this,!0)},hide:function(){return pe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){le(this)?k(this).show():k(this).hide()}))}});var fe,me,he=/^(?:checkbox|radio)$/i,_e=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ve=/^$|^module$|\/(?:java|ecma)script/i;fe=y.createDocumentFragment().appendChild(y.createElement("div")),(me=y.createElement("input")).setAttribute("type","radio"),me.setAttribute("checked","checked"),me.setAttribute("name","t"),fe.appendChild(me),_.checkClone=fe.cloneNode(!0).cloneNode(!0).lastChild.checked,fe.innerHTML="<textarea>x</textarea>",_.noCloneChecked=!!fe.cloneNode(!0).lastChild.defaultValue,fe.innerHTML="<option></option>",_.option=!!fe.lastChild;var ge={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ye(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&T(e,t)?k.merge([e],n):n}function be(e,t){for(var n=0,r=e.length;n<r;n++)Z.set(e[n],"globalEval",!t||Z.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,_.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var we=/<|&#?\w+;/;function xe(e,t,n,r,a){for(var i,o,s,l,c,u,d=t.createDocumentFragment(),p=[],f=0,m=e.length;f<m;f++)if((i=e[f])||0===i)if("object"===x(i))k.merge(p,i.nodeType?[i]:i);else if(we.test(i)){for(o=o||d.appendChild(t.createElement("div")),s=(_e.exec(i)||["",""])[1].toLowerCase(),l=ge[s]||ge._default,o.innerHTML=l[1]+k.htmlPrefilter(i)+l[2],u=l[0];u--;)o=o.lastChild;k.merge(p,o.childNodes),(o=d.firstChild).textContent=""}else p.push(t.createTextNode(i));for(d.textContent="",f=0;i=p[f++];)if(r&&k.inArray(i,r)>-1)a&&a.push(i);else if(c=oe(i),o=ye(d.appendChild(i),"script"),c&&be(o),n)for(u=0;i=o[u++];)ve.test(i.type||"")&&n.push(i);return d}var ke=/^key/,De=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Me=/^([^.]*)(?:\.(.+)|)/;function Se(){return!0}function Ce(){return!1}function Le(e,t){return e===function(){try{return y.activeElement}catch(e){}}()==("focus"===t)}function Te(e,t,n,r,a,i){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Te(e,s,n,r,t[s],i);return e}if(null==r&&null==a?(a=n,r=n=void 0):null==a&&("string"==typeof n?(a=r,r=void 0):(a=r,r=n,n=void 0)),!1===a)a=Ce;else if(!a)return e;return 1===i&&(o=a,(a=function(e){return k().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=k.guid++)),e.each((function(){k.event.add(this,t,a,r,n)}))}function Ee(e,t,n){n?(Z.set(e,t,!1),k.event.add(e,t,{namespace:!1,handler:function(e){var r,a,i=Z.get(this,t);if(1&e.isTrigger&&this[t]){if(i.length)(k.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=s.call(arguments),Z.set(this,t,i),r=n(this,t),this[t](),i!==(a=Z.get(this,t))||r?Z.set(this,t,!1):a={},i!==a)return e.stopImmediatePropagation(),e.preventDefault(),a.value}else i.length&&(Z.set(this,t,{value:k.event.trigger(k.extend(i[0],k.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Z.get(e,t)&&k.event.add(e,t,Se)}k.event={global:{},add:function(e,t,n,r,a){var i,o,s,l,c,u,d,p,f,m,h,_=Z.get(e);if(G(e))for(n.handler&&(n=(i=n).handler,a=i.selector),a&&k.find.matchesSelector(ie,a),n.guid||(n.guid=k.guid++),(l=_.events)||(l=_.events=Object.create(null)),(o=_.handle)||(o=_.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(I)||[""]).length;c--;)f=h=(s=Me.exec(t[c])||[])[1],m=(s[2]||"").split(".").sort(),f&&(d=k.event.special[f]||{},f=(a?d.delegateType:d.bindType)||f,d=k.event.special[f]||{},u=k.extend({type:f,origType:h,data:r,handler:n,guid:n.guid,selector:a,needsContext:a&&k.expr.match.needsContext.test(a),namespace:m.join(".")},i),(p=l[f])||((p=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,m,o)||e.addEventListener&&e.addEventListener(f,o)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),a?p.splice(p.delegateCount++,0,u):p.push(u),k.event.global[f]=!0)},remove:function(e,t,n,r,a){var i,o,s,l,c,u,d,p,f,m,h,_=Z.hasData(e)&&Z.get(e);if(_&&(l=_.events)){for(c=(t=(t||"").match(I)||[""]).length;c--;)if(f=h=(s=Me.exec(t[c])||[])[1],m=(s[2]||"").split(".").sort(),f){for(d=k.event.special[f]||{},p=l[f=(r?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=i=p.length;i--;)u=p[i],!a&&h!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(p.splice(i,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(e,u));o&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,m,_.handle)||k.removeEvent(e,f,_.handle),delete l[f])}else for(f in l)k.event.remove(e,f+t[c],n,r,!0);k.isEmptyObject(l)&&Z.remove(e,"handle events")}},dispatch:function(e){var t,n,r,a,i,o,s=new Array(arguments.length),l=k.event.fix(e),c=(Z.get(this,"events")||Object.create(null))[l.type]||[],u=k.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(o=k.event.handlers.call(this,l,c),t=0;(a=o[t++])&&!l.isPropagationStopped();)for(l.currentTarget=a.elem,n=0;(i=a.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==i.namespace&&!l.rnamespace.test(i.namespace)||(l.handleObj=i,l.data=i.data,void 0!==(r=((k.event.special[i.origType]||{}).handle||i.handler).apply(a.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,a,i,o,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(i=[],o={},n=0;n<l;n++)void 0===o[a=(r=t[n]).selector+" "]&&(o[a]=r.needsContext?k(a,this).index(c)>-1:k.find(a,this,null,[c]).length),o[a]&&i.push(r);i.length&&s.push({elem:c,handlers:i})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return he.test(t.type)&&t.click&&T(t,"input")&&Ee(t,"click",Se),!1},trigger:function(e){var t=this||e;return he.test(t.type)&&t.click&&T(t,"input")&&Ee(t,"click"),!0},_default:function(e){var t=e.target;return he.test(t.type)&&t.click&&T(t,"input")&&Z.get(t,"click")||T(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Se:Ce,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:Ce,isPropagationStopped:Ce,isImmediatePropagationStopped:Ce,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Se,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Se,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Se,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&ke.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&De.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},(function(e,t){k.event.special[e]={setup:function(){return Ee(this,e,Le),!1},trigger:function(){return Ee(this,e),!0},delegateType:t}})),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){k.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,a=e.relatedTarget,i=e.handleObj;return a&&(a===r||k.contains(r,a))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),k.fn.extend({on:function(e,t,n,r){return Te(this,e,t,n,r)},one:function(e,t,n,r){return Te(this,e,t,n,r,1)},off:function(e,t,n){var r,a;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,k(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(a in e)this.off(a,t,e[a]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ce),this.each((function(){k.event.remove(this,e,n,t)}))}});var Oe=/<script|<style|<link/i,je=/checked\s*(?:[^=]|=\s*.checked.)/i,Ae=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Pe(e,t){return T(e,"table")&&T(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Ye(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function $e(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ie(e,t){var n,r,a,i,o,s;if(1===t.nodeType){if(Z.hasData(e)&&(s=Z.get(e).events))for(a in Z.remove(t,"handle events"),s)for(n=0,r=s[a].length;n<r;n++)k.event.add(t,a,s[a][n]);X.hasData(e)&&(i=X.access(e),o=k.extend({},i),X.set(t,o))}}function Ne(e,t){var n=t.nodeName.toLowerCase();"input"===n&&he.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function ze(e,t,n,r){t=l(t);var a,i,o,s,c,u,d=0,p=e.length,f=p-1,m=t[0],h=v(m);if(h||p>1&&"string"==typeof m&&!_.checkClone&&je.test(m))return e.each((function(a){var i=e.eq(a);h&&(t[0]=m.call(this,a,i.html())),ze(i,t,n,r)}));if(p&&(i=(a=xe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===a.childNodes.length&&(a=i),i||r)){for(s=(o=k.map(ye(a,"script"),Ye)).length;d<p;d++)c=a,d!==f&&(c=k.clone(c,!0,!0),s&&k.merge(o,ye(c,"script"))),n.call(e[d],c,d);if(s)for(u=o[o.length-1].ownerDocument,k.map(o,$e),d=0;d<s;d++)c=o[d],ve.test(c.type||"")&&!Z.access(c,"globalEval")&&k.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?k._evalUrl&&!c.noModule&&k._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):w(c.textContent.replace(Ae,""),c,u))}return e}function Fe(e,t,n){for(var r,a=t?k.filter(t,e):e,i=0;null!=(r=a[i]);i++)n||1!==r.nodeType||k.cleanData(ye(r)),r.parentNode&&(n&&oe(r)&&be(ye(r,"script")),r.parentNode.removeChild(r));return e}k.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,a,i,o,s=e.cloneNode(!0),l=oe(e);if(!(_.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(o=ye(s),r=0,a=(i=ye(e)).length;r<a;r++)Ne(i[r],o[r]);if(t)if(n)for(i=i||ye(e),o=o||ye(s),r=0,a=i.length;r<a;r++)Ie(i[r],o[r]);else Ie(e,s);return(o=ye(s,"script")).length>0&&be(o,!l&&ye(e,"script")),s},cleanData:function(e){for(var t,n,r,a=k.event.special,i=0;void 0!==(n=e[i]);i++)if(G(n)){if(t=n[Z.expando]){if(t.events)for(r in t.events)a[r]?k.event.remove(n,r):k.removeEvent(n,r,t.handle);n[Z.expando]=void 0}n[X.expando]&&(n[X.expando]=void 0)}}}),k.fn.extend({detach:function(e){return Fe(this,e,!0)},remove:function(e){return Fe(this,e)},text:function(e){return q(this,(function(e){return void 0===e?k.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return ze(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Pe(this,e).appendChild(e)}))},prepend:function(){return ze(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Pe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return ze(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return ze(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(ye(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return k.clone(this,e,t)}))},html:function(e){return q(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!ge[(_e.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(k.cleanData(ye(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return ze(this,arguments,(function(t){var n=this.parentNode;k.inArray(this,e)<0&&(k.cleanData(ye(this)),n&&n.replaceChild(t,this))}),e)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){k.fn[e]=function(e){for(var n,r=[],a=k(e),i=a.length-1,o=0;o<=i;o++)n=o===i?this:this.clone(!0),k(a[o])[t](n),c.apply(r,n.get());return this.pushStack(r)}}));var Re=new RegExp("^("+ne+")(?!px)[a-z%]+$","i"),He=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Be=function(e,t,n){var r,a,i={};for(a in t)i[a]=e.style[a],e.style[a]=t[a];for(a in r=n.call(e),t)e.style[a]=i[a];return r},qe=new RegExp(ae.join("|"),"i");function Ue(e,t,n){var r,a,i,o,s=e.style;return(n=n||He(e))&&(""!==(o=n.getPropertyValue(t)||n[t])||oe(e)||(o=k.style(e,t)),!_.pixelBoxStyles()&&Re.test(o)&&qe.test(t)&&(r=s.width,a=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=r,s.minWidth=a,s.maxWidth=i)),void 0!==o?o+"":o}function Ve(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ie.appendChild(c).appendChild(u);var e=n.getComputedStyle(u);r="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",o=36===t(e.right),a=36===t(e.width),u.style.position="absolute",i=12===t(u.offsetWidth/3),ie.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var r,a,i,o,s,l,c=y.createElement("div"),u=y.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",_.clearCloneStyle="content-box"===u.style.backgroundClip,k.extend(_,{boxSizingReliable:function(){return e(),a},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,r,a;return null==s&&(e=y.createElement("table"),t=y.createElement("tr"),r=y.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",r.style.height="9px",ie.appendChild(e).appendChild(t).appendChild(r),a=n.getComputedStyle(t),s=parseInt(a.height)>3,ie.removeChild(e)),s}}))}();var We=["Webkit","Moz","ms"],Ke=y.createElement("div").style,Ge={};function Je(e){var t=k.cssProps[e]||Ge[e];return t||(e in Ke?e:Ge[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=We.length;n--;)if((e=We[n]+t)in Ke)return e}(e)||e)}var Ze=/^(none|table(?!-c[ea]).+)/,Xe=/^--/,Qe={position:"absolute",visibility:"hidden",display:"block"},et={letterSpacing:"0",fontWeight:"400"};function tt(e,t,n){var r=re.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function nt(e,t,n,r,a,i){var o="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(l+=k.css(e,n+ae[o],!0,a)),r?("content"===n&&(l-=k.css(e,"padding"+ae[o],!0,a)),"margin"!==n&&(l-=k.css(e,"border"+ae[o]+"Width",!0,a))):(l+=k.css(e,"padding"+ae[o],!0,a),"padding"!==n?l+=k.css(e,"border"+ae[o]+"Width",!0,a):s+=k.css(e,"border"+ae[o]+"Width",!0,a));return!r&&i>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-l-s-.5))||0),l}function rt(e,t,n){var r=He(e),a=(!_.boxSizingReliable()||n)&&"border-box"===k.css(e,"boxSizing",!1,r),i=a,o=Ue(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Re.test(o)){if(!n)return o;o="auto"}return(!_.boxSizingReliable()&&a||!_.reliableTrDimensions()&&T(e,"tr")||"auto"===o||!parseFloat(o)&&"inline"===k.css(e,"display",!1,r))&&e.getClientRects().length&&(a="border-box"===k.css(e,"boxSizing",!1,r),(i=s in e)&&(o=e[s])),(o=parseFloat(o)||0)+nt(e,t,n||(a?"border":"content"),i,r,o)+"px"}function at(e,t,n,r,a){return new at.prototype.init(e,t,n,r,a)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ue(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,i,o,s=K(t),l=Xe.test(t),c=e.style;if(l||(t=Je(s)),o=k.cssHooks[t]||k.cssHooks[s],void 0===n)return o&&"get"in o&&void 0!==(a=o.get(e,!1,r))?a:c[t];"string"===(i=typeof n)&&(a=re.exec(n))&&a[1]&&(n=ce(e,t,a),i="number"),null!=n&&n==n&&("number"!==i||l||(n+=a&&a[3]||(k.cssNumber[s]?"":"px")),_.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var a,i,o,s=K(t);return Xe.test(t)||(t=Je(s)),(o=k.cssHooks[t]||k.cssHooks[s])&&"get"in o&&(a=o.get(e,!0,n)),void 0===a&&(a=Ue(e,t,r)),"normal"===a&&t in et&&(a=et[t]),""===n||n?(i=parseFloat(a),!0===n||isFinite(i)?i||0:a):a}}),k.each(["height","width"],(function(e,t){k.cssHooks[t]={get:function(e,n,r){if(n)return!Ze.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?rt(e,t,r):Be(e,Qe,(function(){return rt(e,t,r)}))},set:function(e,n,r){var a,i=He(e),o=!_.scrollboxSize()&&"absolute"===i.position,s=(o||r)&&"border-box"===k.css(e,"boxSizing",!1,i),l=r?nt(e,t,r,s,i):0;return s&&o&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-nt(e,t,"border",!1,i)-.5)),l&&(a=re.exec(n))&&"px"!==(a[3]||"px")&&(e.style[t]=n,n=k.css(e,t)),tt(0,n,l)}}})),k.cssHooks.marginLeft=Ve(_.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ue(e,"marginLeft"))||e.getBoundingClientRect().left-Be(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),k.each({margin:"",padding:"",border:"Width"},(function(e,t){k.cssHooks[e+t]={expand:function(n){for(var r=0,a={},i="string"==typeof n?n.split(" "):[n];r<4;r++)a[e+ae[r]+t]=i[r]||i[r-2]||i[0];return a}},"margin"!==e&&(k.cssHooks[e+t].set=tt)})),k.fn.extend({css:function(e,t){return q(this,(function(e,t,n){var r,a,i={},o=0;if(Array.isArray(t)){for(r=He(e),a=t.length;o<a;o++)i[t[o]]=k.css(e,t[o],!1,r);return i}return void 0!==n?k.style(e,t,n):k.css(e,t)}),e,t,arguments.length>1)}}),k.Tween=at,at.prototype={constructor:at,init:function(e,t,n,r,a,i){this.elem=e,this.prop=n,this.easing=a||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(k.cssNumber[n]?"":"px")},cur:function(){var e=at.propHooks[this.prop];return e&&e.get?e.get(this):at.propHooks._default.get(this)},run:function(e){var t,n=at.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):at.propHooks._default.set(this),this}},at.prototype.init.prototype=at.prototype,at.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||!k.cssHooks[e.prop]&&null==e.elem.style[Je(e.prop)]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}},at.propHooks.scrollTop=at.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=at.prototype.init,k.fx.step={};var it,ot,st=/^(?:toggle|show|hide)$/,lt=/queueHooks$/;function ct(){ot&&(!1===y.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ct):n.setTimeout(ct,k.fx.interval),k.fx.tick())}function ut(){return n.setTimeout((function(){it=void 0})),it=Date.now()}function dt(e,t){var n,r=0,a={height:e};for(t=t?1:0;r<4;r+=2-t)a["margin"+(n=ae[r])]=a["padding"+n]=e;return t&&(a.opacity=a.width=e),a}function pt(e,t,n){for(var r,a=(ft.tweeners[t]||[]).concat(ft.tweeners["*"]),i=0,o=a.length;i<o;i++)if(r=a[i].call(n,t,e))return r}function ft(e,t,n){var r,a,i=0,o=ft.prefilters.length,s=k.Deferred().always((function(){delete l.elem})),l=function(){if(a)return!1;for(var t=it||ut(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),i=0,o=c.tweens.length;i<o;i++)c.tweens[i].run(r);return s.notifyWith(e,[c,r,n]),r<1&&o?n:(o||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},n),originalProperties:t,originalOptions:n,startTime:it||ut(),duration:n.duration,tweens:[],createTween:function(t,n){var r=k.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(a)return this;for(a=!0;n<r;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,r,a,i,o;for(n in e)if(a=t[r=K(n)],i=e[n],Array.isArray(i)&&(a=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(o=k.cssHooks[r])&&"expand"in o)for(n in i=o.expand(i),delete e[r],i)n in e||(e[n]=i[n],t[n]=a);else t[r]=a}(u,c.opts.specialEasing);i<o;i++)if(r=ft.prefilters[i].call(c,e,u,c.opts))return v(r.stop)&&(k._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return k.map(u,pt,c),v(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),k.fx.timer(k.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}k.Animation=k.extend(ft,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ce(n.elem,e,re.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(I);for(var n,r=0,a=e.length;r<a;r++)n=e[r],ft.tweeners[n]=ft.tweeners[n]||[],ft.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,a,i,o,s,l,c,u,d="width"in t||"height"in t,p=this,f={},m=e.style,h=e.nodeType&&le(e),_=Z.get(e,"fxshow");for(r in n.queue||(null==(o=k._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,p.always((function(){p.always((function(){o.unqueued--,k.queue(e,"fx").length||o.empty.fire()}))}))),t)if(a=t[r],st.test(a)){if(delete t[r],i=i||"toggle"===a,a===(h?"hide":"show")){if("show"!==a||!_||void 0===_[r])continue;h=!0}f[r]=_&&_[r]||k.style(e,r)}if((l=!k.isEmptyObject(t))||!k.isEmptyObject(f))for(r in d&&1===e.nodeType&&(n.overflow=[m.overflow,m.overflowX,m.overflowY],null==(c=_&&_.display)&&(c=Z.get(e,"display")),"none"===(u=k.css(e,"display"))&&(c?u=c:(pe([e],!0),c=e.style.display||c,u=k.css(e,"display"),pe([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===k.css(e,"float")&&(l||(p.done((function(){m.display=c})),null==c&&(u=m.display,c="none"===u?"":u)),m.display="inline-block")),n.overflow&&(m.overflow="hidden",p.always((function(){m.overflow=n.overflow[0],m.overflowX=n.overflow[1],m.overflowY=n.overflow[2]}))),l=!1,f)l||(_?"hidden"in _&&(h=_.hidden):_=Z.access(e,"fxshow",{display:c}),i&&(_.hidden=!h),h&&pe([e],!0),p.done((function(){for(r in h||pe([e]),Z.remove(e,"fxshow"),f)k.style(e,r,f[r])}))),l=pt(h?_[r]:0,r,p),r in _||(_[r]=l.start,h&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ft.prefilters.unshift(e):ft.prefilters.push(e)}}),k.speed=function(e,t,n){var r=e&&"object"==typeof e?k.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return k.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in k.fx.speeds?r.duration=k.fx.speeds[r.duration]:r.duration=k.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&k.dequeue(this,r.queue)},r},k.fn.extend({fadeTo:function(e,t,n,r){return this.filter(le).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var a=k.isEmptyObject(e),i=k.speed(t,n,r),o=function(){var t=ft(this,k.extend({},e),i);(a||Z.get(this,"finish"))&&t.stop(!0)};return o.finish=o,a||!1===i.queue?this.each(o):this.queue(i.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,a=null!=e&&e+"queueHooks",i=k.timers,o=Z.get(this);if(a)o[a]&&o[a].stop&&r(o[a]);else for(a in o)o[a]&&o[a].stop&<.test(a)&&r(o[a]);for(a=i.length;a--;)i[a].elem!==this||null!=e&&i[a].queue!==e||(i[a].anim.stop(n),t=!1,i.splice(a,1));!t&&n||k.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=Z.get(this),r=n[e+"queue"],a=n[e+"queueHooks"],i=k.timers,o=r?r.length:0;for(n.finish=!0,k.queue(this,e,[]),a&&a.stop&&a.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),k.each(["toggle","show","hide"],(function(e,t){var n=k.fn[t];k.fn[t]=function(e,r,a){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(dt(t,!0),e,r,a)}})),k.each({slideDown:dt("show"),slideUp:dt("hide"),slideToggle:dt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){k.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),k.timers=[],k.fx.tick=function(){var e,t=0,n=k.timers;for(it=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||k.fx.stop(),it=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){ot||(ot=!0,ct())},k.fx.stop=function(){ot=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(e,t){return e=k.fx&&k.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,r){var a=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(a)}}))},function(){var e=y.createElement("input"),t=y.createElement("select").appendChild(y.createElement("option"));e.type="checkbox",_.checkOn=""!==e.value,_.optSelected=t.selected,(e=y.createElement("input")).value="t",e.type="radio",_.radioValue="t"===e.value}();var mt,ht=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return q(this,k.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){k.removeAttr(this,e)}))}}),k.extend({attr:function(e,t,n){var r,a,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?k.prop(e,t,n):(1===i&&k.isXMLDoc(e)||(a=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void k.removeAttr(e,t):a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:(e.setAttribute(t,n+""),n):a&&"get"in a&&null!==(r=a.get(e,t))?r:null==(r=k.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!_.radioValue&&"radio"===t&&T(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,a=t&&t.match(I);if(a&&1===e.nodeType)for(;n=a[r++];)e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=ht[t]||k.find.attr;ht[t]=function(e,t,r){var a,i,o=t.toLowerCase();return r||(i=ht[o],ht[o]=a,a=null!=n(e,t,r)?o:null,ht[o]=i),a}}));var _t=/^(?:input|select|textarea|button)$/i,vt=/^(?:a|area)$/i;function gt(e){return(e.match(I)||[]).join(" ")}function yt(e){return e.getAttribute&&e.getAttribute("class")||""}function bt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(I)||[]}k.fn.extend({prop:function(e,t){return q(this,k.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[k.propFix[e]||e]}))}}),k.extend({prop:function(e,t,n){var r,a,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&k.isXMLDoc(e)||(t=k.propFix[t]||t,a=k.propHooks[t]),void 0!==n?a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:e[t]=n:a&&"get"in a&&null!==(r=a.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):_t.test(e.nodeName)||vt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),_.optSelected||(k.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){k.propFix[this.toLowerCase()]=this})),k.fn.extend({addClass:function(e){var t,n,r,a,i,o,s,l=0;if(v(e))return this.each((function(t){k(this).addClass(e.call(this,t,yt(this)))}));if((t=bt(e)).length)for(;n=this[l++];)if(a=yt(n),r=1===n.nodeType&&" "+gt(a)+" "){for(o=0;i=t[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a!==(s=gt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,a,i,o,s,l=0;if(v(e))return this.each((function(t){k(this).removeClass(e.call(this,t,yt(this)))}));if(!arguments.length)return this.attr("class","");if((t=bt(e)).length)for(;n=this[l++];)if(a=yt(n),r=1===n.nodeType&&" "+gt(a)+" "){for(o=0;i=t[o++];)for(;r.indexOf(" "+i+" ")>-1;)r=r.replace(" "+i+" "," ");a!==(s=gt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):v(e)?this.each((function(n){k(this).toggleClass(e.call(this,n,yt(this),t),t)})):this.each((function(){var t,a,i,o;if(r)for(a=0,i=k(this),o=bt(e);t=o[a++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=yt(this))&&Z.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Z.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+gt(yt(n))+" ").indexOf(t)>-1)return!0;return!1}});var wt=/\r/g;k.fn.extend({val:function(e){var t,n,r,a=this[0];return arguments.length?(r=v(e),this.each((function(n){var a;1===this.nodeType&&(null==(a=r?e.call(this,n,k(this).val()):e)?a="":"number"==typeof a?a+="":Array.isArray(a)&&(a=k.map(a,(function(e){return null==e?"":e+""}))),(t=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,a,"value")||(this.value=a))}))):a?(t=k.valHooks[a.type]||k.valHooks[a.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(a,"value"))?n:"string"==typeof(n=a.value)?n.replace(wt,""):null==n?"":n:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:gt(k.text(e))}},select:{get:function(e){var t,n,r,a=e.options,i=e.selectedIndex,o="select-one"===e.type,s=o?null:[],l=o?i+1:a.length;for(r=i<0?l:o?i:0;r<l;r++)if(((n=a[r]).selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!T(n.parentNode,"optgroup"))){if(t=k(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,a=e.options,i=k.makeArray(t),o=a.length;o--;)((r=a[o]).selected=k.inArray(k.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),k.each(["radio","checkbox"],(function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=k.inArray(k(e).val(),t)>-1}},_.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),_.focusin="onfocusin"in n;var xt=/^(?:focusinfocus|focusoutblur)$/,kt=function(e){e.stopPropagation()};k.extend(k.event,{trigger:function(e,t,r,a){var i,o,s,l,c,u,d,p,m=[r||y],h=f.call(e,"type")?e.type:e,_=f.call(e,"namespace")?e.namespace.split("."):[];if(o=p=s=r=r||y,3!==r.nodeType&&8!==r.nodeType&&!xt.test(h+k.event.triggered)&&(h.indexOf(".")>-1&&(_=h.split("."),h=_.shift(),_.sort()),c=h.indexOf(":")<0&&"on"+h,(e=e[k.expando]?e:new k.Event(h,"object"==typeof e&&e)).isTrigger=a?2:3,e.namespace=_.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+_.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:k.makeArray(t,[e]),d=k.event.special[h]||{},a||!d.trigger||!1!==d.trigger.apply(r,t))){if(!a&&!d.noBubble&&!g(r)){for(l=d.delegateType||h,xt.test(l+h)||(o=o.parentNode);o;o=o.parentNode)m.push(o),s=o;s===(r.ownerDocument||y)&&m.push(s.defaultView||s.parentWindow||n)}for(i=0;(o=m[i++])&&!e.isPropagationStopped();)p=o,e.type=i>1?l:d.bindType||h,(u=(Z.get(o,"events")||Object.create(null))[e.type]&&Z.get(o,"handle"))&&u.apply(o,t),(u=c&&o[c])&&u.apply&&G(o)&&(e.result=u.apply(o,t),!1===e.result&&e.preventDefault());return e.type=h,a||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(m.pop(),t)||!G(r)||c&&v(r[h])&&!g(r)&&((s=r[c])&&(r[c]=null),k.event.triggered=h,e.isPropagationStopped()&&p.addEventListener(h,kt),r[h](),e.isPropagationStopped()&&p.removeEventListener(h,kt),k.event.triggered=void 0,s&&(r[c]=s)),e.result}},simulate:function(e,t,n){var r=k.extend(new k.Event,n,{type:e,isSimulated:!0});k.event.trigger(r,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each((function(){k.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return k.event.trigger(e,t,n,!0)}}),_.focusin||k.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){k.event.simulate(t,e.target,k.event.fix(e))};k.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,a=Z.access(r,t);a||r.addEventListener(e,n,!0),Z.access(r,t,(a||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,a=Z.access(r,t)-1;a?Z.access(r,t,a):(r.removeEventListener(e,n,!0),Z.remove(r,t))}}}));var Dt=n.location,Mt={guid:Date.now()},St=/\?/;k.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||k.error("Invalid XML: "+e),t};var Ct=/\[\]$/,Lt=/\r?\n/g,Tt=/^(?:submit|button|image|reset|file)$/i,Et=/^(?:input|select|textarea|keygen)/i;function Ot(e,t,n,r){var a;if(Array.isArray(t))k.each(t,(function(t,a){n||Ct.test(e)?r(e,a):Ot(e+"["+("object"==typeof a&&null!=a?t:"")+"]",a,n,r)}));else if(n||"object"!==x(t))r(e,t);else for(a in t)Ot(e+"["+a+"]",t[a],n,r)}k.param=function(e,t){var n,r=[],a=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,(function(){a(this.name,this.value)}));else for(n in e)Ot(n,e[n],t,a);return r.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&Et.test(this.nodeName)&&!Tt.test(e)&&(this.checked||!he.test(e))})).map((function(e,t){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,(function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}})):{name:t.name,value:n.replace(Lt,"\r\n")}})).get()}});var jt=/%20/g,At=/#.*$/,Pt=/([?&])_=[^&]*/,Yt=/^(.*?):[ \t]*([^\r\n]*)$/gm,$t=/^(?:GET|HEAD)$/,It=/^\/\//,Nt={},zt={},Ft="*/".concat("*"),Rt=y.createElement("a");function Ht(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,a=0,i=t.toLowerCase().match(I)||[];if(v(n))for(;r=i[a++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Bt(e,t,n,r){var a={},i=e===zt;function o(s){var l;return a[s]=!0,k.each(e[s]||[],(function(e,s){var c=s(t,n,r);return"string"!=typeof c||i||a[c]?i?!(l=c):void 0:(t.dataTypes.unshift(c),o(c),!1)})),l}return o(t.dataTypes[0])||!a["*"]&&o("*")}function qt(e,t){var n,r,a=k.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((a[n]?e:r||(r={}))[n]=t[n]);return r&&k.extend(!0,e,r),e}Rt.href=Dt.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Dt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Dt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ft,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?qt(qt(e,k.ajaxSettings),t):qt(k.ajaxSettings,e)},ajaxPrefilter:Ht(Nt),ajaxTransport:Ht(zt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,a,i,o,s,l,c,u,d,p,f=k.ajaxSetup({},t),m=f.context||f,h=f.context&&(m.nodeType||m.jquery)?k(m):k.event,_=k.Deferred(),v=k.Callbacks("once memory"),g=f.statusCode||{},b={},w={},x="canceled",D={readyState:0,getResponseHeader:function(e){var t;if(c){if(!o)for(o={};t=Yt.exec(i);)o[t[1].toLowerCase()+" "]=(o[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=o[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?i:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)D.always(e[D.status]);else for(t in e)g[t]=[g[t],e[t]];return this},abort:function(e){var t=e||x;return r&&r.abort(t),M(0,t),this}};if(_.promise(D),f.url=((e||f.url||Dt.href)+"").replace(It,Dt.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(I)||[""],null==f.crossDomain){l=y.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Rt.protocol+"//"+Rt.host!=l.protocol+"//"+l.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=k.param(f.data,f.traditional)),Bt(Nt,f,t,D),c)return D;for(d in(u=k.event&&f.global)&&0==k.active++&&k.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!$t.test(f.type),a=f.url.replace(At,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(jt,"+")):(p=f.url.slice(a.length),f.data&&(f.processData||"string"==typeof f.data)&&(a+=(St.test(a)?"&":"?")+f.data,delete f.data),!1===f.cache&&(a=a.replace(Pt,"$1"),p=(St.test(a)?"&":"?")+"_="+Mt.guid+++p),f.url=a+p),f.ifModified&&(k.lastModified[a]&&D.setRequestHeader("If-Modified-Since",k.lastModified[a]),k.etag[a]&&D.setRequestHeader("If-None-Match",k.etag[a])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&D.setRequestHeader("Content-Type",f.contentType),D.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ft+"; q=0.01":""):f.accepts["*"]),f.headers)D.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(m,D,f)||c))return D.abort();if(x="abort",v.add(f.complete),D.done(f.success),D.fail(f.error),r=Bt(zt,f,t,D)){if(D.readyState=1,u&&h.trigger("ajaxSend",[D,f]),c)return D;f.async&&f.timeout>0&&(s=n.setTimeout((function(){D.abort("timeout")}),f.timeout));try{c=!1,r.send(b,M)}catch(e){if(c)throw e;M(-1,e)}}else M(-1,"No Transport");function M(e,t,o,l){var d,p,y,b,w,x=t;c||(c=!0,s&&n.clearTimeout(s),r=void 0,i=l||"",D.readyState=e>0?4:0,d=e>=200&&e<300||304===e,o&&(b=function(e,t,n){for(var r,a,i,o,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(a in s)if(s[a]&&s[a].test(r)){l.unshift(a);break}if(l[0]in n)i=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){i=a;break}o||(o=a)}i=i||o}if(i)return i!==l[0]&&l.unshift(i),n[i]}(f,D,o)),!d&&k.inArray("script",f.dataTypes)>-1&&(f.converters["text script"]=function(){}),b=function(e,t,n,r){var a,i,o,s,l,c={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];for(i=u.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=i,i=u.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(o=c[l+" "+i]||c["* "+i]))for(a in c)if((s=a.split(" "))[1]===i&&(o=c[l+" "+s[0]]||c["* "+s[0]])){!0===o?o=c[a]:!0!==c[a]&&(i=s[0],u.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+i}}}return{state:"success",data:t}}(f,b,D,d),d?(f.ifModified&&((w=D.getResponseHeader("Last-Modified"))&&(k.lastModified[a]=w),(w=D.getResponseHeader("etag"))&&(k.etag[a]=w)),204===e||"HEAD"===f.type?x="nocontent":304===e?x="notmodified":(x=b.state,p=b.data,d=!(y=b.error))):(y=x,!e&&x||(x="error",e<0&&(e=0))),D.status=e,D.statusText=(t||x)+"",d?_.resolveWith(m,[p,x,D]):_.rejectWith(m,[D,x,y]),D.statusCode(g),g=void 0,u&&h.trigger(d?"ajaxSuccess":"ajaxError",[D,f,d?p:y]),v.fireWith(m,[D,x]),u&&(h.trigger("ajaxComplete",[D,f]),--k.active||k.event.trigger("ajaxStop")))}return D},getJSON:function(e,t,n){return k.get(e,t,n,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],(function(e,t){k[t]=function(e,n,r,a){return v(n)&&(a=a||r,r=n,n=void 0),k.ajax(k.extend({url:e,type:t,dataType:a,data:n,success:r},k.isPlainObject(e)&&e))}})),k.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),k._evalUrl=function(e,t,n){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){k.globalEval(e,t,n)}})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){k(this).wrapInner(e.call(this,t))})):this.each((function(){var t=k(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){k(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){k(this).replaceWith(this.childNodes)})),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Ut={0:200,1223:204},Vt=k.ajaxSettings.xhr();_.cors=!!Vt&&"withCredentials"in Vt,_.ajax=Vt=!!Vt,k.ajaxTransport((function(e){var t,r;if(_.cors||Vt&&!e.crossDomain)return{send:function(a,i){var o,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];for(o in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||a["X-Requested-With"]||(a["X-Requested-With"]="XMLHttpRequest"),a)s.setRequestHeader(o,a[o]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(Ut[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){t&&r()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),k.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),k.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,a){t=k("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&a("error"===e.type?404:200,e.type)}),y.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Wt,Kt=[],Gt=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||k.expando+"_"+Mt.guid++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",(function(e,t,r){var a,i,o,s=!1!==e.jsonp&&(Gt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return a=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Gt,"$1"+a):!1!==e.jsonp&&(e.url+=(St.test(e.url)?"&":"?")+e.jsonp+"="+a),e.converters["script json"]=function(){return o||k.error(a+" was not called"),o[0]},e.dataTypes[0]="json",i=n[a],n[a]=function(){o=arguments},r.always((function(){void 0===i?k(n).removeProp(a):n[a]=i,e[a]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(a)),o&&v(i)&&i(o[0]),o=i=void 0})),"script"})),_.createHTMLDocument=((Wt=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Wt.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(_.createHTMLDocument?((r=(t=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,t.head.appendChild(r)):t=y),i=!n&&[],(a=E.exec(e))?[t.createElement(a[1])]:(a=xe([e],t,i),i&&i.length&&k(i).remove(),k.merge([],a.childNodes)));var r,a,i},k.fn.load=function(e,t,n){var r,a,i,o=this,s=e.indexOf(" ");return s>-1&&(r=gt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(a="POST"),o.length>0&&k.ajax({url:e,type:a||"GET",dataType:"html",data:t}).done((function(e){i=arguments,o.html(r?k("<div>").append(k.parseHTML(e)).find(r):e)})).always(n&&function(e,t){o.each((function(){n.apply(this,i||[e.responseText,t,e])}))}),this},k.expr.pseudos.animated=function(e){return k.grep(k.timers,(function(t){return e===t.elem})).length},k.offset={setOffset:function(e,t,n){var r,a,i,o,s,l,c=k.css(e,"position"),u=k(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),i=k.css(e,"top"),l=k.css(e,"left"),("absolute"===c||"fixed"===c)&&(i+l).indexOf("auto")>-1?(o=(r=u.position()).top,a=r.left):(o=parseFloat(i)||0,a=parseFloat(l)||0),v(t)&&(t=t.call(e,n,k.extend({},s))),null!=t.top&&(d.top=t.top-s.top+o),null!=t.left&&(d.left=t.left-s.left+a),"using"in t?t.using.call(e,d):("number"==typeof d.top&&(d.top+="px"),"number"==typeof d.left&&(d.left+="px"),u.css(d))}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){k.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],a={top:0,left:0};if("fixed"===k.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((a=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),a.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-a.top-k.css(r,"marginTop",!0),left:t.left-a.left-k.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||ie}))}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;k.fn[e]=function(r){return q(this,(function(e,r,a){var i;if(g(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===a)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:a,n?a:i.pageYOffset):e[r]=a}),e,r,arguments.length)}})),k.each(["top","left"],(function(e,t){k.cssHooks[t]=Ve(_.pixelPosition,(function(e,n){if(n)return n=Ue(e,t),Re.test(n)?k(e).position()[t]+"px":n}))})),k.each({Height:"height",Width:"width"},(function(e,t){k.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){k.fn[r]=function(a,i){var o=arguments.length&&(n||"boolean"!=typeof a),s=n||(!0===a||!0===i?"margin":"border");return q(this,(function(t,n,a){var i;return g(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===a?k.css(t,n,s):k.style(t,n,a,s)}),t,o?a:void 0,o)}}))})),k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){k.fn[t]=function(e){return this.on(t,e)}})),k.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){k.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Jt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;k.proxy=function(e,t){var n,r,a;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=s.call(arguments,2),(a=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||k.guid++,a},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=T,k.isFunction=v,k.isWindow=g,k.camelCase=K,k.type=x,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},k.trim=function(e){return null==e?"":(e+"").replace(Jt,"")},void 0===(r=function(){return k}.apply(t,[]))||(e.exports=r);var Zt=n.jQuery,Xt=n.$;return k.noConflict=function(e){return n.$===k&&(n.$=Xt),e&&n.jQuery===k&&(n.jQuery=Zt),k},void 0===a&&(n.jQuery=n.$=k),k}))},EpBk:function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},ExA7:function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},F6WE:function(e,t,n){"use strict";n("YJtn")},Fnuy: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("wd/R"))},G0Uy: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("wd/R"))},GUC0:function(e,t,n){(function(t,n){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=8)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="swal-button";t.CLASS_NAMES={MODAL:"swal-modal",OVERLAY:"swal-overlay",SHOW_MODAL:"swal-overlay--show-modal",MODAL_TITLE:"swal-title",MODAL_TEXT:"swal-text",ICON:"swal-icon",ICON_CUSTOM:"swal-icon--custom",CONTENT:"swal-content",FOOTER:"swal-footer",BUTTON_CONTAINER:"swal-button-container",BUTTON:r,CONFIRM_BUTTON:r+"--confirm",CANCEL_BUTTON:r+"--cancel",DANGER_BUTTON:r+"--danger",BUTTON_LOADING:r+"--loading",BUTTON_LOADER:r+"__loader"},t.default=t.CLASS_NAMES},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNode=function(e){var t="."+e;return document.querySelector(t)},t.stringToNode=function(e){var t=document.createElement("div");return t.innerHTML=e.trim(),t.firstChild},t.insertAfter=function(e,t){var n=t.nextSibling;t.parentNode.insertBefore(e,n)},t.removeNode=function(e){e.parentElement.removeChild(e)},t.throwErr=function(e){throw"SweetAlert: "+(e=e.replace(/ +(?= )/g,"")).trim()},t.isPlainObject=function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype},t.ordinalSuffixOf=function(e){var t=e%10,n=e%100;return 1===t&&11!==n?e+"st":2===t&&12!==n?e+"nd":3===t&&13!==n?e+"rd":e+"th"}},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(25));var a=n(26);t.overlayMarkup=a.default,r(n(27)),r(n(28)),r(n(29));var i=n(0),o=i.default.MODAL_TITLE,s=i.default.MODAL_TEXT,l=i.default.ICON,c=i.default.FOOTER;t.iconMarkup='\n <div class="'+l+'"></div>',t.titleMarkup='\n <div class="'+o+'"></div>\n',t.textMarkup='\n <div class="'+s+'"></div>',t.footerMarkup='\n <div class="'+c+'"></div>\n'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.CONFIRM_KEY="confirm",t.CANCEL_KEY="cancel";var a={visible:!0,text:null,value:null,className:"",closeModal:!0},i=Object.assign({},a,{visible:!1,text:"Cancel",value:null}),o=Object.assign({},a,{text:"OK",value:!0});t.defaultButtonList={cancel:i,confirm:o};var s=function(e){switch(e){case t.CONFIRM_KEY:return o;case t.CANCEL_KEY:return i;default:var n=e.charAt(0).toUpperCase()+e.slice(1);return Object.assign({},a,{text:n,value:e})}},l=function(e,t){var n=s(e);return!0===t?Object.assign({},n,{visible:!0}):"string"==typeof t?Object.assign({},n,{visible:!0,text:t}):r.isPlainObject(t)?Object.assign({visible:!0},n,t):Object.assign({},n,{visible:!1})},c=function(e){var n={};switch(e.length){case 1:n[t.CANCEL_KEY]=Object.assign({},i,{visible:!1});break;case 2:n[t.CANCEL_KEY]=l(t.CANCEL_KEY,e[0]),n[t.CONFIRM_KEY]=l(t.CONFIRM_KEY,e[1]);break;default:r.throwErr("Invalid number of 'buttons' in array ("+e.length+").\n If you want more than 2 buttons, you need to use an object!")}return n};t.getButtonListOpts=function(e){var n=t.defaultButtonList;return"string"==typeof e?n[t.CONFIRM_KEY]=l(t.CONFIRM_KEY,e):Array.isArray(e)?n=c(e):r.isPlainObject(e)?n=function(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var a=r[n],o=e[a],s=l(a,o);t[a]=s}return t.cancel||(t.cancel=i),t}(e):!0===e?n=c([!0,!0]):!1===e?n=c([!1,!1]):void 0===e&&(n=t.defaultButtonList),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(2),i=n(0),o=i.default.MODAL,s=i.default.OVERLAY,l=n(30),c=n(31),u=n(32),d=n(33);t.injectElIntoModal=function(e){var t=r.getNode(o),n=r.stringToNode(e);return t.appendChild(n),n};var p=function(e,t){!function(e){e.className=o,e.textContent=""}(e);var n=t.className;n&&e.classList.add(n)};t.initModalContent=function(e){var t=r.getNode(o);p(t,e),l.default(e.icon),c.initTitle(e.title),c.initText(e.text),d.default(e.content),u.default(e.buttons,e.dangerMode)},t.default=function(){var e=r.getNode(s),t=r.stringToNode(a.modalMarkup);e.appendChild(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),a={isOpen:!1,promise:null,actions:{},timer:null},i=Object.assign({},a);t.resetState=function(){i=Object.assign({},a)},t.setActionValue=function(e){if("string"==typeof e)return o(r.CONFIRM_KEY,e);for(var t in e)o(t,e[t])};var o=function(e,t){i.actions[e]||(i.actions[e]={}),Object.assign(i.actions[e],{value:t})};t.setActionOptionsFor=function(e,t){var n=(void 0===t?{}:t).closeModal,r=void 0===n||n;Object.assign(i.actions[e],{closeModal:r})},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(3),i=n(0),o=i.default.OVERLAY,s=i.default.SHOW_MODAL,l=i.default.BUTTON,c=i.default.BUTTON_LOADING,u=n(5);t.openModal=function(){r.getNode(o).classList.add(s),u.default.isOpen=!0},t.onAction=function(e){void 0===e&&(e=a.CANCEL_KEY);var t=u.default.actions[e],n=t.value;if(!1===t.closeModal){var i=l+"--"+e;r.getNode(i).classList.add(c)}else r.getNode(o).classList.remove(s),u.default.isOpen=!1;u.default.promise.resolve(n)},t.getState=function(){var e=Object.assign({},u.default);return delete e.promise,delete e.timer,e},t.stopLoading=function(){for(var e=document.querySelectorAll("."+l),t=0;t<e.length;t++)e[t].classList.remove(c)}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(t){e.exports=t.sweetAlert=n(9)}).call(t,n(7))},function(e,t,n){(function(t){e.exports=t.swal=n(10)}).call(t,n(7))},function(e,t,n){"undefined"!=typeof window&&n(11),n(16);var r=n(23).default;e.exports=r},function(e,t,n){var r=n(12);"string"==typeof r&&(r=[[e.i,r,""]]);var a={insertAt:"top",transform:void 0};n(14)(r,a),r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(13)(void 0)).push([e.i,'.swal-icon--error{border-color:#f27474;-webkit-animation:animateErrorIcon .5s;animation:animateErrorIcon .5s}.swal-icon--error__x-mark{position:relative;display:block;-webkit-animation:animateXMark .5s;animation:animateXMark .5s}.swal-icon--error__line{position:absolute;height:5px;width:47px;background-color:#f27474;display:block;top:37px;border-radius:2px}.swal-icon--error__line--left{-webkit-transform:rotate(45deg);transform:rotate(45deg);left:17px}.swal-icon--error__line--right{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);right:16px}@-webkit-keyframes animateErrorIcon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}to{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}}@keyframes animateErrorIcon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}to{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}}@-webkit-keyframes animateXMark{0%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}to{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}@keyframes animateXMark{0%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}to{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}.swal-icon--warning{border-color:#f8bb86;-webkit-animation:pulseWarning .75s infinite alternate;animation:pulseWarning .75s infinite alternate}.swal-icon--warning__body{width:5px;height:47px;top:10px;border-radius:2px;margin-left:-2px}.swal-icon--warning__body,.swal-icon--warning__dot{position:absolute;left:50%;background-color:#f8bb86}.swal-icon--warning__dot{width:7px;height:7px;border-radius:50%;margin-left:-4px;bottom:-11px}@-webkit-keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}@keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}.swal-icon--success{border-color:#a5dc86}.swal-icon--success:after,.swal-icon--success:before{content:"";border-radius:50%;position:absolute;width:60px;height:120px;background:#fff;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal-icon--success:before{border-radius:120px 0 0 120px;top:-7px;left:-33px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:60px 60px;transform-origin:60px 60px}.swal-icon--success:after{border-radius:0 120px 120px 0;top:-11px;left:30px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:0 60px;transform-origin:0 60px;-webkit-animation:rotatePlaceholder 4.25s ease-in;animation:rotatePlaceholder 4.25s ease-in}.swal-icon--success__ring{width:80px;height:80px;border:4px solid hsla(98,55%,69%,.2);border-radius:50%;box-sizing:content-box;position:absolute;left:-4px;top:-4px;z-index:2}.swal-icon--success__hide-corners{width:5px;height:90px;background-color:#fff;padding:1px;position:absolute;left:28px;top:8px;z-index:1;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal-icon--success__line{height:5px;background-color:#a5dc86;display:block;border-radius:2px;position:absolute;z-index:2}.swal-icon--success__line--tip{width:25px;left:14px;top:46px;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-animation:animateSuccessTip .75s;animation:animateSuccessTip .75s}.swal-icon--success__line--long{width:47px;right:8px;top:38px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-animation:animateSuccessLong .75s;animation:animateSuccessLong .75s}@-webkit-keyframes rotatePlaceholder{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}to{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@keyframes rotatePlaceholder{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}to{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@-webkit-keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@-webkit-keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}@keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}.swal-icon--info{border-color:#c9dae1}.swal-icon--info:before{width:5px;height:29px;bottom:17px;border-radius:2px;margin-left:-2px}.swal-icon--info:after,.swal-icon--info:before{content:"";position:absolute;left:50%;background-color:#c9dae1}.swal-icon--info:after{width:7px;height:7px;border-radius:50%;margin-left:-3px;top:19px}.swal-icon{width:80px;height:80px;border-width:4px;border-style:solid;border-radius:50%;padding:0;position:relative;box-sizing:content-box;margin:20px auto}.swal-icon:first-child{margin-top:32px}.swal-icon--custom{width:auto;height:auto;max-width:100%;border:none;border-radius:0}.swal-icon img{max-width:100%;max-height:100%}.swal-title{color:rgba(0,0,0,.65);font-weight:600;text-transform:none;position:relative;display:block;padding:13px 16px;font-size:27px;line-height:normal;text-align:center;margin-bottom:0}.swal-title:first-child{margin-top:26px}.swal-title:not(:first-child){padding-bottom:0}.swal-title:not(:last-child){margin-bottom:13px}.swal-text{font-size:16px;position:relative;float:none;line-height:normal;vertical-align:top;text-align:left;display:inline-block;margin:0;padding:0 10px;font-weight:400;color:rgba(0,0,0,.64);max-width:calc(100% - 20px);overflow-wrap:break-word;box-sizing:border-box}.swal-text:first-child{margin-top:45px}.swal-text:last-child{margin-bottom:45px}.swal-footer{text-align:right;padding-top:13px;margin-top:13px;padding:13px 16px;border-radius:inherit;border-top-left-radius:0;border-top-right-radius:0}.swal-button-container{margin:5px;display:inline-block;position:relative}.swal-button{background-color:#7cd1f9;color:#fff;border:none;box-shadow:none;border-radius:5px;font-weight:600;font-size:14px;padding:10px 24px;margin:0;cursor:pointer}.swal-button:not([disabled]):hover{background-color:#78cbf2}.swal-button:active{background-color:#70bce0}.swal-button:focus{outline:none;box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(43,114,165,.29)}.swal-button[disabled]{opacity:.5;cursor:default}.swal-button::-moz-focus-inner{border:0}.swal-button--cancel{color:#555;background-color:#efefef}.swal-button--cancel:not([disabled]):hover{background-color:#e8e8e8}.swal-button--cancel:active{background-color:#d7d7d7}.swal-button--cancel:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(116,136,150,.29)}.swal-button--danger{background-color:#e64942}.swal-button--danger:not([disabled]):hover{background-color:#df4740}.swal-button--danger:active{background-color:#cf423b}.swal-button--danger:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(165,43,43,.29)}.swal-content{padding:0 20px;margin-top:20px;font-size:medium}.swal-content:last-child{margin-bottom:20px}.swal-content__input,.swal-content__textarea{-webkit-appearance:none;background-color:#fff;border:none;font-size:14px;display:block;box-sizing:border-box;width:100%;border:1px solid rgba(0,0,0,.14);padding:10px 13px;border-radius:2px;transition:border-color .2s}.swal-content__input:focus,.swal-content__textarea:focus{outline:none;border-color:#6db8ff}.swal-content__textarea{resize:vertical}.swal-button--loading{color:transparent}.swal-button--loading~.swal-button__loader{opacity:1}.swal-button__loader{position:absolute;height:auto;width:43px;z-index:2;left:50%;top:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);text-align:center;pointer-events:none;opacity:0}.swal-button__loader div{display:inline-block;float:none;vertical-align:baseline;width:9px;height:9px;padding:0;border:none;margin:2px;opacity:.4;border-radius:7px;background-color:hsla(0,0%,100%,.9);transition:background .2s;-webkit-animation:swal-loading-anim 1s infinite;animation:swal-loading-anim 1s infinite}.swal-button__loader div:nth-child(3n+2){-webkit-animation-delay:.15s;animation-delay:.15s}.swal-button__loader div:nth-child(3n+3){-webkit-animation-delay:.3s;animation-delay:.3s}@-webkit-keyframes swal-loading-anim{0%{opacity:.4}20%{opacity:.4}50%{opacity:1}to{opacity:.4}}@keyframes swal-loading-anim{0%{opacity:.4}20%{opacity:.4}50%{opacity:1}to{opacity:.4}}.swal-overlay{position:fixed;top:0;bottom:0;left:0;right:0;text-align:center;font-size:0;overflow-y:auto;background-color:rgba(0,0,0,.4);z-index:10000;pointer-events:none;opacity:0;transition:opacity .3s}.swal-overlay:before{content:" ";display:inline-block;vertical-align:middle;height:100%}.swal-overlay--show-modal{opacity:1;pointer-events:auto}.swal-overlay--show-modal .swal-modal{opacity:1;pointer-events:auto;box-sizing:border-box;-webkit-animation:showSweetAlert .3s;animation:showSweetAlert .3s;will-change:transform}.swal-modal{width:478px;opacity:0;pointer-events:none;background-color:#fff;text-align:center;border-radius:5px;position:static;margin:20px auto;display:inline-block;vertical-align:middle;-webkit-transform:scale(1);transform:scale(1);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;z-index:10001;transition:opacity .2s,-webkit-transform .3s;transition:transform .3s,opacity .2s;transition:transform .3s,opacity .2s,-webkit-transform .3s}@media (max-width:500px){.swal-modal{width:calc(100% - 20px)}}@-webkit-keyframes showSweetAlert{0%{-webkit-transform:scale(1);transform:scale(1)}1%{-webkit-transform:scale(.5);transform:scale(.5)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes showSweetAlert{0%{-webkit-transform:scale(1);transform:scale(1)}1%{-webkit-transform:scale(.5);transform:scale(.5)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}',""])},function(e,t){function n(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var a=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(r);return[n].concat(r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}))).concat([a]).join("\n")}return[n].join("\n")}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},a=0;a<this.length;a++){var i=this[a][0];"number"==typeof i&&(r[i]=!0)}for(a=0;a<e.length;a++){var o=e[a];"number"==typeof o[0]&&r[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),t.push(o))}},t}},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],a=m[r.id];if(a){a.refs++;for(var i=0;i<a.parts.length;i++)a.parts[i](r.parts[i]);for(;i<r.parts.length;i++)a.parts.push(u(r.parts[i],t))}else{var o=[];for(i=0;i<r.parts.length;i++)o.push(u(r.parts[i],t));m[r.id]={id:r.id,refs:1,parts:o}}}}function a(e,t){for(var n=[],r={},a=0;a<e.length;a++){var i=e[a],o=t.base?i[0]+t.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};r[o]?r[o].parts.push(s):n.push(r[o]={id:o,parts:[s]})}return n}function i(e,t){var n=_(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=y[y.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),y.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function o(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=y.indexOf(e);t>=0&&y.splice(t,1)}function s(e){var t=document.createElement("style");return e.attrs.type="text/css",c(t,e.attrs),i(e,t),t}function l(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",c(t,e.attrs),i(e,t),t}function c(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function u(e,t){var n,r,a,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var c=g++;n=v||(v=s(t)),r=d.bind(null,n,c,!1),a=d.bind(null,n,c,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(t),r=f.bind(null,n,t),a=function(){o(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=p.bind(null,n),a=function(){o(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else a()}}function d(e,t,n,r){var a=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,a);else{var i=document.createTextNode(a),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(i,o[t]):e.appendChild(i)}}function p(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function f(e,t,n){var r=n.css,a=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&a;(t.convertToAbsoluteUrls||i)&&(r=b(r)),a&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */");var o=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(o),s&&URL.revokeObjectURL(s)}var m={},h=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}((function(){return window&&document&&document.all&&!window.atob})),_=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e.call(this,n)),t[n]}}((function(e){return document.querySelector(e)})),v=null,g=0,y=[],b=n(15);e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=h()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=a(e,t);return r(n,t),function(e){for(var i=[],o=0;o<n.length;o++){var s=n[o];(l=m[s.id]).refs--,i.push(l)}for(e&&r(a(e,t),t),o=0;o<i.length;o++){var l;if(0===(l=i[o]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete m[l.id]}}}};var w=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var a,i=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(i)?e:(a=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(a)+")")}))}},function(e,t,n){var r=n(17);"undefined"==typeof window||window.Promise||(window.Promise=r),n(21),String.prototype.includes||(String.prototype.includes=function(e,t){"use strict";return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),r=n.length>>>0;if(0===r)return!1;for(var a=0|t,i=Math.max(a>=0?a:r-Math.abs(a),0);i<r;){if(function(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}(n[i],e))return!0;i++}return!1}}),"undefined"!=typeof window&&[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})}))},function(e,t,n){(function(t){!function(n){function r(){}function a(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],u(e,this)}function i(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,a._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void s(t.promise,e)}o(t.promise,r)}else(1===e._state?o:s)(t.promise,e._value)}))):e._deferreds.push(t)}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void l(e);if("function"==typeof n)return void u(function(e,t){return function(){e.apply(t,arguments)}}(n,t),e)}e._state=1,e._value=t,l(e)}catch(t){s(e,t)}}function s(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&a._immediateFn((function(){e._handled||a._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)i(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function u(e,t){var n=!1;try{e((function(e){n||(n=!0,o(t,e))}),(function(e){n||(n=!0,s(t,e))}))}catch(e){if(n)return;n=!0,s(t,e)}}var d=setTimeout;a.prototype.catch=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(r);return i(this,new c(e,t,n)),n},a.all=function(e){var t=Array.prototype.slice.call(e);return new a((function(e,n){function r(i,o){try{if(o&&("object"==typeof o||"function"==typeof o)){var s=o.then;if("function"==typeof s)return void s.call(o,(function(e){r(i,e)}),n)}t[i]=o,0==--a&&e(t)}catch(e){n(e)}}if(0===t.length)return e([]);for(var a=t.length,i=0;i<t.length;i++)r(i,t[i])}))},a.resolve=function(e){return e&&"object"==typeof e&&e.constructor===a?e:new a((function(t){t(e)}))},a.reject=function(e){return new a((function(t,n){n(e)}))},a.race=function(e){return new a((function(t,n){for(var r=0,a=e.length;r<a;r++)e[r].then(t,n)}))},a._immediateFn="function"==typeof t&&function(e){t(e)}||function(e){d(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a._setImmediateFn=function(e){a._immediateFn=e},a._setUnhandledRejectionFn=function(e){a._unhandledRejectionFn=e},void 0!==e&&e.exports?e.exports=a:n.Promise||(n.Promise=a)}(this)}).call(t,n(18).setImmediate)},function(e,r,a){function i(e,t){this._id=e,this._clearFn=t}var o=Function.prototype.apply;r.setTimeout=function(){return new i(o.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new i(o.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},r.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},r._unrefActive=r.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},a(19),r.setImmediate=t,r.clearImmediate=n},function(e,t,n){(function(e,t){!function(e,n){"use strict";function r(e){delete s[e]}function a(e){if(l)setTimeout(a,0,e);else{var t=s[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{r(e),l=!1}}}}if(!e.setImmediate){var i,o=1,s={},l=!1,c=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,"[object process]"==={}.toString.call(e.process)?i=function(e){t.nextTick((function(){a(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?function(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"==typeof n.data&&0===n.data.indexOf(t)&&a(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),i=function(n){e.postMessage(t+n,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){a(e.data)},i=function(t){e.port2.postMessage(t)}}():c&&"onreadystatechange"in c.createElement("script")?function(){var e=c.documentElement;i=function(t){var n=c.createElement("script");n.onreadystatechange=function(){a(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():i=function(e){setTimeout(a,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var r={callback:e,args:t};return s[o]=r,i(o),o++},u.clearImmediate=r}}("undefined"==typeof self?void 0===e?this:e:self)}).call(t,n(7),n(20))},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function a(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(){m&&p&&(m=!1,p.length?f=p.concat(f):h=-1,f.length&&o())}function o(){if(!m){var e=a(i);m=!0;for(var t=f.length;t;){for(p=f,f=[];++h<t;)p&&p[h].run();h=-1,t=f.length}p=null,m=!1,function(e){if(u===clearTimeout)return clearTimeout(e);if((u===r||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(e);try{u(e)}catch(t){try{return u.call(null,e)}catch(t){return u.call(this,e)}}}(e)}}function s(e,t){this.fun=e,this.array=t}function l(){}var c,u,d=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(e){c=n}try{u="function"==typeof clearTimeout?clearTimeout:r}catch(e){u=r}}();var p,f=[],m=!1,h=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];f.push(new s(e,t)),1!==f.length||m||a(o)},s.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=l,d.addListener=l,d.once=l,d.off=l,d.removeListener=l,d.removeAllListeners=l,d.emit=l,d.prependListener=l,d.prependOnceListener=l,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t,n){"use strict";n(22).polyfill()},function(e,t,n){"use strict";function r(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r<arguments.length;r++){var a=arguments[r];if(null!=a)for(var i=Object.keys(Object(a)),o=0,s=i.length;o<s;o++){var l=i[o],c=Object.getOwnPropertyDescriptor(a,l);void 0!==c&&c.enumerable&&(n[l]=a[l])}}return n}e.exports={assign:r,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:r})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(24),a=n(6),i=n(5),o=n(36),s=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if("undefined"!=typeof window){var n=o.getOpts.apply(void 0,e);return new Promise((function(e,t){i.default.promise={resolve:e,reject:t},r.default(n),setTimeout((function(){a.openModal()}))}))}};s.close=a.onAction,s.getState=a.getState,s.setActionValue=i.setActionValue,s.stopLoading=a.stopLoading,s.setDefaults=o.setDefaults,t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(0).default.MODAL,i=n(4),o=n(34),s=n(35),l=n(1);t.init=function(e){r.getNode(a)||(document.body||l.throwErr("You can only use SweetAlert AFTER the DOM has loaded!"),o.default(),i.default()),i.initModalContent(e),s.default(e)},t.default=t.init},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0).default.MODAL;t.modalMarkup='\n <div class="'+r+'" role="dialog" aria-modal="true"></div>',t.default=t.modalMarkup},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r='<div \n class="'+n(0).default.OVERLAY+'"\n tabIndex="-1">\n </div>';t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0).default.ICON;t.errorIconMarkup=function(){var e=r+"--error",t=e+"__line";return'\n <div class="'+e+'__x-mark">\n <span class="'+t+" "+t+'--left"></span>\n <span class="'+t+" "+t+'--right"></span>\n </div>\n '},t.warningIconMarkup=function(){var e=r+"--warning";return'\n <span class="'+e+'__body">\n <span class="'+e+'__dot"></span>\n </span>\n '},t.successIconMarkup=function(){var e=r+"--success";return'\n <span class="'+e+"__line "+e+'__line--long"></span>\n <span class="'+e+"__line "+e+'__line--tip"></span>\n\n <div class="'+e+'__ring"></div>\n <div class="'+e+'__hide-corners"></div>\n '}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0).default.CONTENT;t.contentMarkup='\n <div class="'+r+'">\n\n </div>\n'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),a=r.default.BUTTON_CONTAINER,i=r.default.BUTTON,o=r.default.BUTTON_LOADER;t.buttonMarkup='\n <div class="'+a+'">\n\n <button\n class="'+i+'"\n ></button>\n\n <div class="'+o+'">\n <div></div>\n <div></div>\n <div></div>\n </div>\n\n </div>\n'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),a=n(2),i=n(0),o=i.default.ICON,s=i.default.ICON_CUSTOM,l=["error","warning","success","info"],c={error:a.errorIconMarkup(),warning:a.warningIconMarkup(),success:a.successIconMarkup()};t.default=function(e){if(e){var t=r.injectElIntoModal(a.iconMarkup);l.includes(e)?function(e,t){var n=o+"--"+e;t.classList.add(n);var r=c[e];r&&(t.innerHTML=r)}(e,t):function(e,t){t.classList.add(s);var n=document.createElement("img");n.src=e,t.appendChild(n)}(e,t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),a=n(4),i=function(e){navigator.userAgent.includes("AppleWebKit")&&(e.style.display="none",e.offsetHeight,e.style.display="")};t.initTitle=function(e){if(e){var t=a.injectElIntoModal(r.titleMarkup);t.textContent=e,i(t)}},t.initText=function(e){if(e){var t=document.createDocumentFragment();e.split("\n").forEach((function(e,n,r){t.appendChild(document.createTextNode(e)),n<r.length-1&&t.appendChild(document.createElement("br"))}));var n=a.injectElIntoModal(r.textMarkup);n.appendChild(t),i(n)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(4),i=n(0),o=i.default.BUTTON,s=i.default.DANGER_BUTTON,l=n(3),c=n(2),u=n(6),d=n(5),p=function(e,t,n){var a=t.text,i=t.value,p=t.className,f=t.closeModal,m=r.stringToNode(c.buttonMarkup),h=m.querySelector("."+o),_=o+"--"+e;h.classList.add(_),p&&(Array.isArray(p)?p:p.split(" ")).filter((function(e){return e.length>0})).forEach((function(e){h.classList.add(e)})),n&&e===l.CONFIRM_KEY&&h.classList.add(s),h.textContent=a;var v={};return v[e]=i,d.setActionValue(v),d.setActionOptionsFor(e,{closeModal:f}),h.addEventListener("click",(function(){return u.onAction(e)})),m};t.default=function(e,t){var n=a.injectElIntoModal(c.footerMarkup);for(var r in e){var i=e[r],o=p(r,i,t);i.visible&&n.appendChild(o)}0===n.children.length&&n.remove()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),a=n(4),i=n(2),o=n(5),s=n(6),l=n(0).default.CONTENT,c=function(e){e.addEventListener("input",(function(e){var t=e.target.value;o.setActionValue(t)})),e.addEventListener("keyup",(function(e){if("Enter"===e.key)return s.onAction(r.CONFIRM_KEY)})),setTimeout((function(){e.focus(),o.setActionValue("")}),0)};t.default=function(e){if(e){var t=a.injectElIntoModal(i.contentMarkup),n=e.element,r=e.attributes;"string"==typeof n?function(e,t,n){var r=document.createElement(t),a=l+"__"+t;for(var i in r.classList.add(a),n){var o=n[i];r[i]=o}"input"===t&&c(r),e.appendChild(r)}(t,n,r):t.appendChild(n)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(2);t.default=function(){var e=r.stringToNode(a.overlayMarkup);document.body.appendChild(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),a=n(6),i=n(1),o=n(3),s=n(0),l=s.default.MODAL,c=s.default.BUTTON,u=s.default.OVERLAY,d=function(e){if(r.default.isOpen)switch(e.key){case"Escape":return a.onAction(o.CANCEL_KEY)}},p=function(e){if(r.default.isOpen)switch(e.key){case"Tab":return function(e){e.preventDefault(),m()}(e)}},f=function(e){if(r.default.isOpen)return"Tab"===e.key&&e.shiftKey?function(e){e.preventDefault(),h()}(e):void 0},m=function(){var e=i.getNode(c);e&&(e.tabIndex=0,e.focus())},h=function(){var e=i.getNode(l).querySelectorAll("."+c),t=e[e.length-1];t&&t.focus()},_=function(){var e=i.getNode(l).querySelectorAll("."+c);e.length&&(function(e){e[e.length-1].addEventListener("keydown",p)}(e),function(e){e[0].addEventListener("keydown",f)}(e))},v=function(e){if(i.getNode(u)===e.target)return a.onAction(o.CANCEL_KEY)};t.default=function(e){e.closeOnEsc?document.addEventListener("keyup",d):document.removeEventListener("keyup",d),e.dangerMode?m():h(),_(),function(e){var t=i.getNode(u);t.removeEventListener("click",v),e&&t.addEventListener("click",v)}(e.closeOnClickOutside),function(e){r.default.timer&&clearTimeout(r.default.timer),e&&(r.default.timer=window.setTimeout((function(){return a.onAction(o.CANCEL_KEY)}),e))}(e.timer)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(3),i=n(37),o=n(38),s={title:null,text:null,icon:null,buttons:a.defaultButtonList,content:null,className:null,closeOnClickOutside:!0,closeOnEsc:!0,dangerMode:!1,timer:null},l=Object.assign({},s);t.setDefaults=function(e){l=Object.assign({},s,e)};var c=function(e){var t=e&&e.button,n=e&&e.buttons;return void 0!==t&&void 0!==n&&r.throwErr("Cannot set both 'button' and 'buttons' options!"),void 0!==t?{confirm:t}:n},u=function(e){return r.ordinalSuffixOf(e+1)},d=function(e,t){r.throwErr(u(t)+" argument ('"+e+"') is invalid")},p=function(e,t){var n=e+1,a=t[n];r.isPlainObject(a)||void 0===a||r.throwErr("Expected "+u(n)+" argument ('"+a+"') to be a plain object")},f=function(e,t,n,a){var i=t instanceof Element;if("string"==typeof t){if(0===n)return{text:t};if(1===n)return{text:t,title:a[0]};if(2===n)return p(n,a),{icon:t};d(t,n)}else{if(i&&0===n)return p(n,a),{content:t};if(r.isPlainObject(t))return function(e,t){var n=e+1,a=t[n];void 0!==a&&r.throwErr("Unexpected "+u(n)+" argument ("+a+")")}(n,a),t;d(t,n)}};t.getOpts=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={};e.forEach((function(t,r){var a=f(0,t,r,e);Object.assign(n,a)}));var r=c(n);n.buttons=a.getButtonListOpts(r),delete n.button,n.content=i.getContentOpts(n.content);var u=Object.assign({},s,l,n);return Object.keys(u).forEach((function(e){o.DEPRECATED_OPTS[e]&&o.logDeprecation(e)})),u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a={element:"input",attributes:{placeholder:""}};t.getContentOpts=function(e){return r.isPlainObject(e)?Object.assign({},e):e instanceof Element?{element:e}:"input"===e?a:null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logDeprecation=function(e){var n=t.DEPRECATED_OPTS[e],r=n.onlyRename,a=n.replacement,i=n.subOption,o=n.link,s='SweetAlert warning: "'+e+'" option has been '+(r?"renamed":"deprecated")+".";a&&(s+=" Please use"+(i?' "'+i+'" in ':" ")+'"'+a+'" instead.');var l="https://sweetalert.js.org";s+=o?" More details: "+l+o:" More details: "+l+"/guides/#upgrading-from-1x",console.warn(s)},t.DEPRECATED_OPTS={type:{replacement:"icon",link:"/docs/#icon"},imageUrl:{replacement:"icon",link:"/docs/#icon"},customClass:{replacement:"className",onlyRename:!0,link:"/docs/#classname"},imageSize:{},showCancelButton:{replacement:"buttons",link:"/docs/#buttons"},showConfirmButton:{replacement:"button",link:"/docs/#button"},confirmButtonText:{replacement:"button",link:"/docs/#button"},confirmButtonColor:{},cancelButtonText:{replacement:"buttons",link:"/docs/#buttons"},closeOnConfirm:{replacement:"button",subOption:"closeModal",link:"/docs/#button"},closeOnCancel:{replacement:"buttons",subOption:"closeModal",link:"/docs/#buttons"},showLoaderOnConfirm:{replacement:"buttons"},animation:{},inputType:{replacement:"content",link:"/docs/#content"},inputValue:{replacement:"content",link:"/docs/#content"},inputPlaceholder:{replacement:"content",link:"/docs/#content"},html:{replacement:"content",link:"/docs/#content"},allowEscapeKey:{replacement:"closeOnEsc",onlyRename:!0,link:"/docs/#closeonesc"},allowClickOutside:{replacement:"closeOnClickOutside",onlyRename:!0,link:"/docs/#closeonclickoutside"}}}])}).call(this,n("URgk").setImmediate,n("URgk").clearImmediate)},GYWy:function(e,t,n){(function(e,r){var a;!function(i){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r&&r;o.global!==o&&o.window!==o&&o.self;var s,l=2147483647,c=/^xn--/,u=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,m=String.fromCharCode;function h(e){throw new RangeError(p[e])}function _(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function v(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+_((e=e.replace(d,".")).split("."),t).join(".")}function g(e){for(var t,n,r=[],a=0,i=e.length;a<i;)(t=e.charCodeAt(a++))>=55296&&t<=56319&&a<i?56320==(64512&(n=e.charCodeAt(a++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),a--):r.push(t);return r}function y(e){return _(e,(function(e){var t="";return e>65535&&(t+=m((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=m(e)})).join("")}function b(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,n){var r=0;for(e=n?f(e/700):e>>1,e+=f(e/t);e>455;r+=36)e=f(e/35);return f(r+36*e/(e+38))}function x(e){var t,n,r,a,i,o,s,c,u,d,p,m=[],_=e.length,v=0,g=128,b=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&h("not-basic"),m.push(e.charCodeAt(r));for(a=n>0?n+1:0;a<_;){for(i=v,o=1,s=36;a>=_&&h("invalid-input"),((c=(p=e.charCodeAt(a++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:36)>=36||c>f((l-v)/o))&&h("overflow"),v+=c*o,!(c<(u=s<=b?1:s>=b+26?26:s-b));s+=36)o>f(l/(d=36-u))&&h("overflow"),o*=d;b=w(v-i,t=m.length+1,0==i),f(v/t)>l-g&&h("overflow"),g+=f(v/t),v%=t,m.splice(v++,0,g)}return y(m)}function k(e){var t,n,r,a,i,o,s,c,u,d,p,_,v,y,x,k=[];for(_=(e=g(e)).length,t=128,n=0,i=72,o=0;o<_;++o)(p=e[o])<128&&k.push(m(p));for(r=a=k.length,a&&k.push("-");r<_;){for(s=l,o=0;o<_;++o)(p=e[o])>=t&&p<s&&(s=p);for(s-t>f((l-n)/(v=r+1))&&h("overflow"),n+=(s-t)*v,t=s,o=0;o<_;++o)if((p=e[o])<t&&++n>l&&h("overflow"),p==t){for(c=n,u=36;!(c<(d=u<=i?1:u>=i+26?26:u-i));u+=36)x=c-d,y=36-d,k.push(m(b(d+x%y,0))),c=f(x/y);k.push(m(b(c,0))),i=w(n,v,r==a),n=0,++r}++n,++t}return k.join("")}s={version:"1.4.1",ucs2:{decode:g,encode:y},decode:x,encode:k,toASCII:function(e){return v(e,(function(e){return u.test(e)?"xn--"+k(e):e}))},toUnicode:function(e){return v(e,(function(e){return c.test(e)?x(e.slice(4).toLowerCase()):e}))}},void 0===(a=function(){return s}.call(t,n,t,e))||(e.exports=a)}()}).call(this,n("YuTi")(e),n("yLpj"))},GoyQ:function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},H7XF:function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),o=r[0],s=r[1],l=new i(function(e,t,n){return 3*(t+n)/4-n}(0,o,s)),u=0,d=s>0?o-4:o;for(n=0;n<d;n+=4)t=a[e.charCodeAt(n)]<<18|a[e.charCodeAt(n+1)]<<12|a[e.charCodeAt(n+2)]<<6|a[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===s&&(t=a[e.charCodeAt(n)]<<2|a[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===s&&(t=a[e.charCodeAt(n)]<<10|a[e.charCodeAt(n+1)]<<4|a[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,a=n%3,i=[],o=0,s=n-a;o<s;o+=16383)i.push(u(e,o,o+16383>s?s:o+16383));1===a?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===a&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],a=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s<l;++s)r[s]=o[s],a[o.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var a,i,o=[],s=t;s<n;s+=3)a=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(r[(i=a)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},H8ED:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,a;return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(r=+e,a={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),r%10==1&&r%100!=11?a[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?a[1]:a[2])}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:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},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("wd/R"))},H8j4:function(e,t,n){var r=n("QkVE");e.exports=function(e,t){var n=r(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}},HP3h:function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,a,i,o){var s=n(t),l=r[e][n(t)];return 2===s&&(l=l[a?0:1]),l.replace(/%d/i,t)}},i=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n("wd/R"))},HSsa:function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},Hc5T:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withParams=t.validationMixin=t.Vuelidate=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n("+/RH"),i=n("AjSV"),o=function(){return null},s=function(e,t,n){return e.reduce((function(e,r){return e[n?n(r):r]=t(r),e}),{})};function l(e){return"function"==typeof e}function c(e){return null!==e&&("object"==typeof e||l(e))}var u=function(e,t,n,r){if("function"==typeof n)return n.call(e,t,r);n=Array.isArray(n)?n:n.split(".");for(var a=0;a<n.length;a++){if(!t||"object"!=typeof t)return r;t=t[n[a]]}return void 0===t?r:t};var d={$invalid:function(){var e=this,t=this.proxy;return this.nestedKeys.some((function(t){return e.refProxy(t).$invalid}))||this.ruleKeys.some((function(e){return!t[e]}))},$dirty:function(){var e=this;return!!this.dirty||0!==this.nestedKeys.length&&this.nestedKeys.every((function(t){return e.refProxy(t).$dirty}))},$error:function(){return this.$dirty&&!this.$pending&&this.$invalid},$pending:function(){var e=this;return this.ruleKeys.some((function(t){return e.getRef(t).$pending}))||this.nestedKeys.some((function(t){return e.refProxy(t).$pending}))},$params:function(){var e=this,t=this.validations;return r({},s(this.nestedKeys,(function(e){return t[e]&&t[e].$params||null})),s(this.ruleKeys,(function(t){return e.getRef(t).$params})))}};function p(e){this.dirty=e;var t=this.proxy,n=e?"$touch":"$reset";this.nestedKeys.forEach((function(e){t[e][n]()}))}var f={$touch:function(){p.call(this,!0)},$reset:function(){p.call(this,!1)},$flattenParams:function(){var e=this.proxy,t=[];for(var n in this.$params)if(this.isNested(n)){for(var r=e[n].$flattenParams(),a=0;a<r.length;a++)r[a].path.unshift(n);t=t.concat(r)}else t.push({path:[],name:n,params:this.$params[n]});return t}},m=Object.keys(d),h=Object.keys(f),_=null,v=function(e){if(_)return _;var t=e.extend({beforeCreate:function(){this._vval=null},beforeDestroy:function(){this._vval&&(0,a.patchChildren)(this._vval)},methods:{getModel:function(){return this.lazyModel?this.lazyModel(this.prop):this.model},getModelKey:function(e){var t=this.getModel();if(t)return t[e]}},computed:{refs:function(){var e=this._vval;this._vval=this.children,(0,a.patchChildren)(e,this._vval);var t={};return this._vval.forEach((function(e){t[e.key]=e.vm})),t}}}),n=t.extend({data:function(){return{rule:null,lazyModel:null,model:null,lazyParentModel:null,rootModel:null}},methods:{runRule:function(t){var n=this.getModel();(0,i.pushParams)();var r,a=this.rule.call(this.rootModel,n,t),o=c(r=a)&&l(r.then)?function(e,t){var n=new e({data:{p:!0,v:!1}});return t.then((function(e){n.p=!1,n.v=e}),(function(e){throw n.p=!1,n.v=!1,e})),n.__isVuelidateAsyncVm=!0,n}(e,a):a,s=(0,i.popParams)();return{output:o,params:s&&s.$sub?s.$sub.length>1?s:s.$sub[0]:null}}},computed:{run:function(){return this.runRule(this.lazyParentModel())},$params:function(){return this.run.params},proxy:function(){var e=this.run.output;return e.__isVuelidateAsyncVm?!!e.v:!!e},$pending:function(){var e=this.run.output;return!!e.__isVuelidateAsyncVm&&e.p}}}),p=t.extend({data:function(){return{dirty:!1,validations:null,lazyModel:null,model:null,prop:null,lazyParentModel:null,rootModel:null}},methods:r({},f,{refProxy:function(e){return this.getRef(e).proxy},getRef:function(e){return this.refs[e]},isNested:function(e){return"function"!=typeof this.validations[e]}}),computed:r({},d,{nestedKeys:function(){return this.keys.filter(this.isNested)},ruleKeys:function(){var e=this;return this.keys.filter((function(t){return!e.isNested(t)}))},keys:function(){return Object.keys(this.validations).filter((function(e){return"$params"!==e}))},proxy:function(){var e=this,t=s(this.keys,(function(t){return{enumerable:!0,configurable:!0,get:function(){return e.refProxy(t)}}})),n=s(m,(function(t){return{enumerable:!0,configurable:!0,get:function(){return e[t]}}})),a=s(h,(function(t){return{enumerable:!1,configurable:!0,get:function(){return e[t]}}}));return Object.defineProperties({},r({},t,n,a))},children:function(){var e=this;return[].concat(this.nestedKeys.map((function(t){return y(e,t)})),this.ruleKeys.map((function(t){return b(e,t)}))).filter(Boolean)}})}),v=p.extend({methods:{isNested:function(e){return void 0!==this.validations[e]()},getRef:function(e){var t=this;return{get proxy(){return t.validations[e]()||!1}}}}}),g=p.extend({computed:{keys:function(){var e=this.getModel();return c(e)?Object.keys(e):[]},tracker:function(){var e=this,t=this.validations.$trackBy;return t?function(n){return""+u(e.rootModel,e.getModelKey(n),t)}:function(e){return""+e}},eagerParentModel:function(){var e=this.lazyParentModel();return function(){return e}},children:function(){var e=this,t=this.validations,n=this.getModel(),i=r({},t);delete i.$trackBy;var o={};return this.keys.map((function(t){var r=e.tracker(t);return o.hasOwnProperty(r)?null:(o[r]=!0,(0,a.h)(p,r,{validations:i,prop:t,lazyParentModel:e.eagerParentModel,model:n[t],rootModel:e.rootModel}))})).filter(Boolean)}},methods:{isNested:function(){return!0},getRef:function(e){return this.refs[this.tracker(e)]}}}),y=function(e,t){if("$each"===t)return(0,a.h)(g,t,{validations:e.validations[t],lazyParentModel:e.lazyParentModel,prop:t,lazyModel:e.getModel,rootModel:e.rootModel});var n=e.validations[t];if(Array.isArray(n)){var r=e.rootModel,i=s(n,(function(e){return function(){return u(r,r.$v,e)}}),(function(e){return Array.isArray(e)?e.join("."):e}));return(0,a.h)(v,t,{validations:i,lazyParentModel:o,prop:t,lazyModel:o,rootModel:r})}return(0,a.h)(p,t,{validations:n,lazyParentModel:e.getModel,prop:t,lazyModel:e.getModelKey,rootModel:e.rootModel})},b=function(e,t){return(0,a.h)(n,t,{rule:e.validations[t],lazyParentModel:e.lazyParentModel,lazyModel:e.getModel,rootModel:e.rootModel})};return _={VBase:t,Validation:p}},g=null;var y=function(e,t){var n=function(e){if(g)return g;for(var t=e.constructor;t.super;)t=t.super;return g=t,t}(e),r=v(n),i=r.Validation;return new(0,r.VBase)({computed:{children:function(){var n="function"==typeof t?t.call(e):t;return[(0,a.h)(i,"$v",{validations:n,lazyParentModel:o,prop:"$v",model:e,rootModel:e})]}}})},b={data:function(){var e=this.$options.validations;return e&&(this._vuelidate=y(this,e)),{}},beforeCreate:function(){var e=this.$options;e.validations&&(e.computed||(e.computed={}),e.computed.$v||(e.computed.$v=function(){return this._vuelidate?this._vuelidate.refs.$v.proxy:null}))},beforeDestroy:function(){this._vuelidate&&(this._vuelidate.$destroy(),this._vuelidate=null)}};function w(e){e.mixin(b)}t.Vuelidate=w,t.validationMixin=b,t.withParams=i.withParams,t.default=w},HijD:function(e,t,n){"use strict";n.r(t),function(e){var t=n("jE9Z"),r=n("L2JU"),a=n("Ugjx"),i=n("ozpq"),o=n("XuX8"),s=n.n(o),l=n("Hc5T"),c=n.n(l),u=n("cWtb"),d=n.n(u),p=n("433b"),f=n("fHbr"),m=n("udLX"),h=n.n(m),_=n("Uav6");s.a.use(h.a,{theme:_.a}),s.a.use(c.a),s.a.use(f.a),window._=n("LvDl"),window.Vue=n("XuX8"),n("jhwR"),n("4bO1"),window.axios=n("vDqi"),window.axios.defaults.withCredentials=!0,window.Ls=a.a,window.axios.defaults.headers.common={"X-Requested-With":"XMLHttpRequest"},window.axios.interceptors.request.use((function(e){if(i.a.getters["auth/isLoggedOut"]){var t=window.axios.CancelToken.source();return e.cancelToken=t.token,setTimeout((function(){i.a.dispatch("auth/setLogoutFalse")}),200),e}var n=a.a.get("selectedCompany");return n&&(e.headers.common.company=n),e}),(function(e){return Promise.reject(e)})),e.axios.interceptors.response.use(void 0,(function(e){if(i.a.getters["auth/isLoggedOut"])return!0;if(e.response)if(!e.response.data||"Unauthorized"!==e.response.statusText&&" Unauthorized."!==e.response.data)if(e.response.data.errors){var t=JSON.parse(JSON.stringify(e.response.data.errors));for(var n in t)window.toastr.error(t[n])}else window.toastr.error(e.response.data.message?e.response.data.message:e.response.data||"Unknown error occurred","Error");else window.toastr.error(e.response.data.message?e.response.data.message:"Unauthorized"),i.a.dispatch("auth/logout",!0);else window.toastr.error("Please check your internet connection or wait until servers are back online","Network Error");return Promise.reject(e)})),window.toastr=n("hUol"),s.a.use(t.a),s.a.use(r.a),s.a.use(p.a),s.a.use(d.a,{precision:2})}.call(this,n("yLpj"))},Hvzi:function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},I1BE:function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var a=(o=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),i=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[n].concat(i).concat([a]).join("\n")}var o;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},a=0;a<this.length;a++){var i=this[a][0];"number"==typeof i&&(r[i]=!0)}for(a=0;a<e.length;a++){var o=e[a];"number"==typeof o[0]&&r[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),t.push(o))}},t}},IBtZ: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("wd/R"))},INkZ:function(e,t,n){"use strict";(function(t,n){var r=Object.freeze({});function a(e){return null==e}function i(e){return null!=e}function o(e){return!0===e}function s(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function l(e){return null!==e&&"object"==typeof e}var c=Object.prototype.toString;function u(e){return"[object Object]"===c.call(e)}function d(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function p(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 m(e){var t=parseFloat(e);return isNaN(t)?e:t}function h(e,t){for(var n=Object.create(null),r=e.split(","),a=0;a<r.length;a++)n[r[a]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var _=h("slot,component",!0),v=h("key,ref,slot,slot-scope,is");function g(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function b(e,t){return y.call(e,t)}function w(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var x=/-(\w)/g,k=w((function(e){return e.replace(x,(function(e,t){return t?t.toUpperCase():""}))})),D=w((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),M=/\B([A-Z])/g,S=w((function(e){return e.replace(M,"-$1").toLowerCase()})),C=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function L(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function T(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]&&T(t,e[n]);return t}function O(e,t,n){}var j=function(e,t,n){return!1},A=function(e){return e};function P(e,t){if(e===t)return!0;var n=l(e),r=l(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var a=Array.isArray(e),i=Array.isArray(t);if(a&&i)return e.length===t.length&&e.every((function(e,n){return P(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(a||i)return!1;var o=Object.keys(e),s=Object.keys(t);return o.length===s.length&&o.every((function(n){return P(e[n],t[n])}))}catch(e){return!1}}function Y(e,t){for(var n=0;n<e.length;n++)if(P(e[n],t))return n;return-1}function $(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var I="data-server-rendered",N=["component","directive","filter"],z=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],F={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:j,isReservedAttr:j,isUnknownElement:j,getTagNamespace:O,parsePlatformTagName:A,mustUseProp:j,async:!0,_lifecycleHooks:z},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 H(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var B,q=new RegExp("[^"+R.source+".$_\\d]"),U="__proto__"in{},V="undefined"!=typeof window,W="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,K=W&&WXEnvironment.platform.toLowerCase(),G=V&&window.navigator.userAgent.toLowerCase(),J=G&&/msie|trident/.test(G),Z=G&&G.indexOf("msie 9.0")>0,X=G&&G.indexOf("edge/")>0,Q=(G&&G.indexOf("android"),G&&/iphone|ipad|ipod|ios/.test(G)||"ios"===K),ee=(G&&/chrome\/\d+/.test(G),G&&/phantomjs/.test(G),G&&G.match(/firefox\/(\d+)/)),te={}.watch,ne=!1;if(V)try{var re={};Object.defineProperty(re,"passive",{get:function(){ne=!0}}),window.addEventListener("test-passive",null,re)}catch(r){}var ae=function(){return void 0===B&&(B=!V&&!W&&void 0!==t&&t.process&&"server"===t.process.env.VUE_ENV),B},ie=V&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function oe(e){return"function"==typeof e&&/native code/.test(e.toString())}var se,le="undefined"!=typeof Symbol&&oe(Symbol)&&"undefined"!=typeof Reflect&&oe(Reflect.ownKeys);se="undefined"!=typeof Set&&oe(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 ce=O,ue=0,de=function(){this.id=ue++,this.subs=[]};de.prototype.addSub=function(e){this.subs.push(e)},de.prototype.removeSub=function(e){g(this.subs,e)},de.prototype.depend=function(){de.target&&de.target.addDep(this)},de.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t<n;t++)e[t].update()},de.target=null;var pe=[];function fe(e){pe.push(e),de.target=e}function me(){pe.pop(),de.target=pe[pe.length-1]}var he=function(e,t,n,r,a,i,o,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=a,this.ns=void 0,this.context=i,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},_e={child:{configurable:!0}};_e.child.get=function(){return this.componentInstance},Object.defineProperties(he.prototype,_e);var ve=function(e){void 0===e&&(e="");var t=new he;return t.text=e,t.isComment=!0,t};function ge(e){return new he(void 0,void 0,void 0,String(e))}function ye(e){var t=new he(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 be=Array.prototype,we=Object.create(be);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=be[e];H(we,e,(function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var a,i=t.apply(this,n),o=this.__ob__;switch(e){case"push":case"unshift":a=n;break;case"splice":a=n.slice(2)}return a&&o.observeArray(a),o.dep.notify(),i}))}));var xe=Object.getOwnPropertyNames(we),ke=!0;function De(e){ke=e}var Me=function(e){var t;this.value=e,this.dep=new de,this.vmCount=0,H(e,"__ob__",this),Array.isArray(e)?(U?(t=we,e.__proto__=t):function(e,t,n){for(var r=0,a=n.length;r<a;r++){var i=n[r];H(e,i,t[i])}}(e,we,xe),this.observeArray(e)):this.walk(e)};function Se(e,t){var n;if(l(e)&&!(e instanceof he))return b(e,"__ob__")&&e.__ob__ instanceof Me?n=e.__ob__:ke&&!ae()&&(Array.isArray(e)||u(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Me(e)),t&&n&&n.vmCount++,n}function Ce(e,t,n,r,a){var i=new de,o=Object.getOwnPropertyDescriptor(e,t);if(!o||!1!==o.configurable){var s=o&&o.get,l=o&&o.set;s&&!l||2!==arguments.length||(n=e[t]);var c=!a&&Se(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return de.target&&(i.depend(),c&&(c.dep.depend(),Array.isArray(t)&&function e(t){for(var n=void 0,r=0,a=t.length;r<a;r++)(n=t[r])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&e(n)}(t))),t},set:function(t){var r=s?s.call(e):n;t===r||t!=t&&r!=r||s&&!l||(l?l.call(e,t):n=t,c=!a&&Se(t),i.notify())}})}}function Le(e,t,n){if(Array.isArray(e)&&d(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(Ce(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function Te(e,t){if(Array.isArray(e)&&d(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||b(e,t)&&(delete e[t],n&&n.dep.notify())}}Me.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Ce(e,t[n])},Me.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Se(e[t])};var Ee=F.optionMergeStrategies;function Oe(e,t){if(!t)return e;for(var n,r,a,i=le?Reflect.ownKeys(t):Object.keys(t),o=0;o<i.length;o++)"__ob__"!==(n=i[o])&&(r=e[n],a=t[n],b(e,n)?r!==a&&u(r)&&u(a)&&Oe(r,a):Le(e,n,a));return e}function je(e,t,n){return n?function(){var r="function"==typeof t?t.call(n,n):t,a="function"==typeof e?e.call(n,n):e;return r?Oe(r,a):a}:t?e?function(){return Oe("function"==typeof t?t.call(this,this):t,"function"==typeof e?e.call(this,this):e)}:t:e}function Ae(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 Pe(e,t,n,r){var a=Object.create(e||null);return t?T(a,t):a}Ee.data=function(e,t,n){return n?je(e,t,n):t&&"function"!=typeof t?e:je(e,t)},z.forEach((function(e){Ee[e]=Ae})),N.forEach((function(e){Ee[e+"s"]=Pe})),Ee.watch=function(e,t,n,r){if(e===te&&(e=void 0),t===te&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var a={};for(var i in T(a,e),t){var o=a[i],s=t[i];o&&!Array.isArray(o)&&(o=[o]),a[i]=o?o.concat(s):Array.isArray(s)?s:[s]}return a},Ee.props=Ee.methods=Ee.inject=Ee.computed=function(e,t,n,r){if(!e)return t;var a=Object.create(null);return T(a,e),t&&T(a,t),a},Ee.provide=je;var Ye=function(e,t){return void 0===t?e:t};function $e(e,t,n){if("function"==typeof t&&(t=t.options),function(e,t){var n=e.props;if(n){var r,a,i={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(a=n[r])&&(i[k(a)]={type:null});else if(u(n))for(var o in n)a=n[o],i[k(o)]=u(a)?a:{type:a};e.props=i}}(t),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var a=0;a<n.length;a++)r[n[a]]={from:n[a]};else if(u(n))for(var i in n){var o=n[i];r[i]=u(o)?T({from:i},o):{from:o}}}}(t),function(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}(t),!t._base&&(t.extends&&(e=$e(e,t.extends,n)),t.mixins))for(var r=0,a=t.mixins.length;r<a;r++)e=$e(e,t.mixins[r],n);var i,o={};for(i in e)s(i);for(i in t)b(e,i)||s(i);function s(r){var a=Ee[r]||Ye;o[r]=a(e[r],t[r],n,r)}return o}function Ie(e,t,n,r){if("string"==typeof n){var a=e[t];if(b(a,n))return a[n];var i=k(n);if(b(a,i))return a[i];var o=D(i);return b(a,o)?a[o]:a[n]||a[i]||a[o]}}function Ne(e,t,n,r){var a=t[e],i=!b(n,e),o=n[e],s=Re(Boolean,a.type);if(s>-1)if(i&&!b(a,"default"))o=!1;else if(""===o||o===S(e)){var l=Re(String,a.type);(l<0||s<l)&&(o=!0)}if(void 0===o){o=function(e,t,n){if(b(t,"default")){var r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"==typeof r&&"Function"!==ze(t.type)?r.call(e):r}}(r,a,e);var c=ke;De(!0),Se(o),De(c)}return o}function ze(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Fe(e,t){return ze(e)===ze(t)}function Re(e,t){if(!Array.isArray(t))return Fe(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(Fe(t[n],e))return n;return-1}function He(e,t,n){fe();try{if(t)for(var r=t;r=r.$parent;){var a=r.$options.errorCaptured;if(a)for(var i=0;i<a.length;i++)try{if(!1===a[i].call(r,e,t,n))return}catch(e){qe(e,r,"errorCaptured hook")}}qe(e,t,n)}finally{me()}}function Be(e,t,n,r,a){var i;try{(i=n?e.apply(t,n):e.call(t))&&!i._isVue&&p(i)&&!i._handled&&(i.catch((function(e){return He(e,r,a+" (Promise/async)")})),i._handled=!0)}catch(e){He(e,r,a)}return i}function qe(e,t,n){if(F.errorHandler)try{return F.errorHandler.call(null,e,t,n)}catch(t){t!==e&&Ue(t,null,"config.errorHandler")}Ue(e,t,n)}function Ue(e,t,n){if(!V&&!W||"undefined"==typeof console)throw e;console.error(e)}var Ve,We=!1,Ke=[],Ge=!1;function Je(){Ge=!1;var e=Ke.slice(0);Ke.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&oe(Promise)){var Ze=Promise.resolve();Ve=function(){Ze.then(Je),Q&&setTimeout(O)},We=!0}else if(J||"undefined"==typeof MutationObserver||!oe(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Ve=void 0!==n&&oe(n)?function(){n(Je)}:function(){setTimeout(Je,0)};else{var Xe=1,Qe=new MutationObserver(Je),et=document.createTextNode(String(Xe));Qe.observe(et,{characterData:!0}),Ve=function(){Xe=(Xe+1)%2,et.data=String(Xe)},We=!0}function tt(e,t){var n;if(Ke.push((function(){if(e)try{e.call(t)}catch(e){He(e,t,"nextTick")}else n&&n(t)})),Ge||(Ge=!0,Ve()),!e&&"undefined"!=typeof Promise)return new Promise((function(e){n=e}))}var nt=new se;function rt(e){!function e(t,n){var r,a,i=Array.isArray(t);if(!(!i&&!l(t)||Object.isFrozen(t)||t instanceof he)){if(t.__ob__){var o=t.__ob__.dep.id;if(n.has(o))return;n.add(o)}if(i)for(r=t.length;r--;)e(t[r],n);else for(r=(a=Object.keys(t)).length;r--;)e(t[a[r]],n)}}(e,nt),nt.clear()}var at=w((function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}}));function it(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return Be(r,null,arguments,t,"v-on handler");for(var a=r.slice(),i=0;i<a.length;i++)Be(a[i],null,e,t,"v-on handler")}return n.fns=e,n}function ot(e,t,n,r,i,s){var l,c,u,d;for(l in e)c=e[l],u=t[l],d=at(l),a(c)||(a(u)?(a(c.fns)&&(c=e[l]=it(c,s)),o(d.once)&&(c=e[l]=i(d.name,c,d.capture)),n(d.name,c,d.capture,d.passive,d.params)):c!==u&&(u.fns=c,e[l]=u));for(l in t)a(e[l])&&r((d=at(l)).name,t[l],d.capture)}function st(e,t,n){var r;e instanceof he&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function l(){n.apply(this,arguments),g(r.fns,l)}a(s)?r=it([l]):i(s.fns)&&o(s.merged)?(r=s).fns.push(l):r=it([s,l]),r.merged=!0,e[t]=r}function lt(e,t,n,r,a){if(i(t)){if(b(t,n))return e[n]=t[n],a||delete t[n],!0;if(b(t,r))return e[n]=t[r],a||delete t[r],!0}return!1}function ct(e){return s(e)?[ge(e)]:Array.isArray(e)?function e(t,n){var r,l,c,u,d=[];for(r=0;r<t.length;r++)a(l=t[r])||"boolean"==typeof l||(u=d[c=d.length-1],Array.isArray(l)?l.length>0&&(ut((l=e(l,(n||"")+"_"+r))[0])&&ut(u)&&(d[c]=ge(u.text+l[0].text),l.shift()),d.push.apply(d,l)):s(l)?ut(u)?d[c]=ge(u.text+l):""!==l&&d.push(ge(l)):ut(l)&&ut(u)?d[c]=ge(u.text+l.text):(o(t._isVList)&&i(l.tag)&&a(l.key)&&i(n)&&(l.key="__vlist"+n+"_"+r+"__"),d.push(l)));return d}(e):void 0}function ut(e){return i(e)&&i(e.text)&&!1===e.isComment}function dt(e,t){if(e){for(var n=Object.create(null),r=le?Reflect.ownKeys(e):Object.keys(e),a=0;a<r.length;a++){var i=r[a];if("__ob__"!==i){for(var o=e[i].from,s=t;s;){if(s._provided&&b(s._provided,o)){n[i]=s._provided[o];break}s=s.$parent}if(!s&&"default"in e[i]){var l=e[i].default;n[i]="function"==typeof l?l.call(t):l}}}return n}}function pt(e,t){if(!e||!e.length)return{};for(var n={},r=0,a=e.length;r<a;r++){var i=e[r],o=i.data;if(o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,i.context!==t&&i.fnContext!==t||!o||null==o.slot)(n.default||(n.default=[])).push(i);else{var s=o.slot,l=n[s]||(n[s]=[]);"template"===i.tag?l.push.apply(l,i.children||[]):l.push(i)}}for(var c in n)n[c].every(ft)&&delete n[c];return n}function ft(e){return e.isComment&&!e.asyncFactory||" "===e.text}function mt(e,t,n){var a,i=Object.keys(t).length>0,o=e?!!e.$stable:!i,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(o&&n&&n!==r&&s===n.$key&&!i&&!n.$hasNormal)return n;for(var l in a={},e)e[l]&&"$"!==l[0]&&(a[l]=ht(t,l,e[l]))}else a={};for(var c in t)c in a||(a[c]=_t(t,c));return e&&Object.isExtensible(e)&&(e._normalized=a),H(a,"$stable",o),H(a,"$key",s),H(a,"$hasNormal",i),a}function ht(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ct(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function _t(e,t){return function(){return e[t]}}function vt(e,t){var n,r,a,o,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,a=e.length;r<a;r++)n[r]=t(e[r],r);else if("number"==typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(l(e))if(le&&e[Symbol.iterator]){n=[];for(var c=e[Symbol.iterator](),u=c.next();!u.done;)n.push(t(u.value,n.length)),u=c.next()}else for(o=Object.keys(e),n=new Array(o.length),r=0,a=o.length;r<a;r++)s=o[r],n[r]=t(e[s],s,r);return i(n)||(n=[]),n._isVList=!0,n}function gt(e,t,n,r){var a,i=this.$scopedSlots[e];i?(n=n||{},r&&(n=T(T({},r),n)),a=i(n)||t):a=this.$slots[e]||t;var o=n&&n.slot;return o?this.$createElement("template",{slot:o},a):a}function yt(e){return Ie(this.$options,"filters",e)||A}function bt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function wt(e,t,n,r,a){var i=F.keyCodes[t]||n;return a&&r&&!F.keyCodes[t]?bt(a,r):i?bt(i,e):r?S(r)!==t:void 0}function xt(e,t,n,r,a){if(n&&l(n)){var i;Array.isArray(n)&&(n=E(n));var o=function(o){if("class"===o||"style"===o||v(o))i=e;else{var s=e.attrs&&e.attrs.type;i=r||F.mustUseProp(t,s,o)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var l=k(o),c=S(o);l in i||c in i||(i[o]=n[o],a&&((e.on||(e.on={}))["update:"+o]=function(e){n[o]=e}))};for(var s in n)o(s)}return e}function kt(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||Mt(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r}function Dt(e,t,n){return Mt(e,"__once__"+t+(n?"_"+n:""),!0),e}function Mt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&St(e[r],t+"_"+r,n);else St(e,t,n)}function St(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Ct(e,t){if(t&&u(t)){var n=e.on=e.on?T({},e.on):{};for(var r in t){var a=n[r],i=t[r];n[r]=a?[].concat(a,i):i}}return e}function Lt(e,t,n,r){t=t||{$stable:!n};for(var a=0;a<e.length;a++){var i=e[a];Array.isArray(i)?Lt(i,t,n):i&&(i.proxy&&(i.fn.proxy=!0),t[i.key]=i.fn)}return r&&(t.$key=r),t}function Tt(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}function Et(e,t){return"string"==typeof e?t+e:e}function Ot(e){e._o=Dt,e._n=m,e._s=f,e._l=vt,e._t=gt,e._q=P,e._i=Y,e._m=kt,e._f=yt,e._k=wt,e._b=xt,e._v=ge,e._e=ve,e._u=Lt,e._g=Ct,e._d=Tt,e._p=Et}function jt(e,t,n,a,i){var s,l=this,c=i.options;b(a,"_uid")?(s=Object.create(a))._original=a:(s=a,a=a._original);var u=o(c._compiled),d=!u;this.data=e,this.props=t,this.children=n,this.parent=a,this.listeners=e.on||r,this.injections=dt(c.inject,a),this.slots=function(){return l.$slots||mt(e.scopedSlots,l.$slots=pt(n,a)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return mt(e.scopedSlots,this.slots())}}),u&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=mt(e.scopedSlots,this.$slots)),c._scopeId?this._c=function(e,t,n,r){var i=zt(s,e,t,n,r,d);return i&&!Array.isArray(i)&&(i.fnScopeId=c._scopeId,i.fnContext=a),i}:this._c=function(e,t,n,r){return zt(s,e,t,n,r,d)}}function At(e,t,n,r,a){var i=ye(e);return i.fnContext=n,i.fnOptions=r,t.slot&&((i.data||(i.data={})).slot=t.slot),i}function Pt(e,t){for(var n in t)e[k(n)]=t[n]}Ot(jt.prototype);var Yt={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Yt.prepatch(n,n)}else(e.componentInstance=function(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}(e,Gt)).$mount(t?e.elm:void 0,t)},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,a,i){var o=a.data.scopedSlots,s=e.$scopedSlots,l=!!(o&&!o.$stable||s!==r&&!s.$stable||o&&e.$scopedSlots.$key!==o.$key),c=!!(i||e.$options._renderChildren||l);if(e.$options._parentVnode=a,e.$vnode=a,e._vnode&&(e._vnode.parent=a),e.$options._renderChildren=i,e.$attrs=a.data.attrs||r,e.$listeners=n||r,t&&e.$options.props){De(!1);for(var u=e._props,d=e.$options._propKeys||[],p=0;p<d.length;p++){var f=d[p],m=e.$options.props;u[f]=Ne(f,m,t,e)}De(!0),e.$options.propsData=t}n=n||r;var h=e.$options._parentListeners;e.$options._parentListeners=n,Kt(e,n,h),c&&(e.$slots=pt(i,a.context),e.$forceUpdate())}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,Qt(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,tn.push(t)):Xt(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(!(n&&(t._directInactive=!0,Zt(t))||t._inactive)){t._inactive=!0;for(var r=0;r<t.$children.length;r++)e(t.$children[r]);Qt(t,"deactivated")}}(t,!0):t.$destroy())}},$t=Object.keys(Yt);function It(e,t,n,s,c){if(!a(e)){var u=n.$options._base;if(l(e)&&(e=u.extend(e)),"function"==typeof e){var d;if(a(e.cid)&&void 0===(e=function(e,t){if(o(e.error)&&i(e.errorComp))return e.errorComp;if(i(e.resolved))return e.resolved;var n=Rt;if(n&&i(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),o(e.loading)&&i(e.loadingComp))return e.loadingComp;if(n&&!i(e.owners)){var r=e.owners=[n],s=!0,c=null,u=null;n.$on("hook:destroyed",(function(){return g(r,n)}));var d=function(e){for(var t=0,n=r.length;t<n;t++)r[t].$forceUpdate();e&&(r.length=0,null!==c&&(clearTimeout(c),c=null),null!==u&&(clearTimeout(u),u=null))},f=$((function(n){e.resolved=Ht(n,t),s?r.length=0:d(!0)})),m=$((function(t){i(e.errorComp)&&(e.error=!0,d(!0))})),h=e(f,m);return l(h)&&(p(h)?a(e.resolved)&&h.then(f,m):p(h.component)&&(h.component.then(f,m),i(h.error)&&(e.errorComp=Ht(h.error,t)),i(h.loading)&&(e.loadingComp=Ht(h.loading,t),0===h.delay?e.loading=!0:c=setTimeout((function(){c=null,a(e.resolved)&&a(e.error)&&(e.loading=!0,d(!1))}),h.delay||200)),i(h.timeout)&&(u=setTimeout((function(){u=null,a(e.resolved)&&m(null)}),h.timeout)))),s=!1,e.loading?e.loadingComp:e.resolved}}(d=e,u)))return function(e,t,n,r,a){var i=ve();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:r,tag:a},i}(d,t,n,s,c);t=t||{},wn(e),i(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var a=t.on||(t.on={}),o=a[r],s=t.model.callback;i(o)?(Array.isArray(o)?-1===o.indexOf(s):o!==s)&&(a[r]=[s].concat(o)):a[r]=s}(e.options,t);var f=function(e,t,n){var r=t.options.props;if(!a(r)){var o={},s=e.attrs,l=e.props;if(i(s)||i(l))for(var c in r){var u=S(c);lt(o,l,c,u,!0)||lt(o,s,c,u,!1)}return o}}(t,e);if(o(e.options.functional))return function(e,t,n,a,o){var s=e.options,l={},c=s.props;if(i(c))for(var u in c)l[u]=Ne(u,c,t||r);else i(n.attrs)&&Pt(l,n.attrs),i(n.props)&&Pt(l,n.props);var d=new jt(n,l,o,a,e),p=s.render.call(null,d._c,d);if(p instanceof he)return At(p,n,d.parent,s);if(Array.isArray(p)){for(var f=ct(p)||[],m=new Array(f.length),h=0;h<f.length;h++)m[h]=At(f[h],n,d.parent,s);return m}}(e,f,t,n,s);var m=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<$t.length;n++){var r=$t[n],a=t[r],i=Yt[r];a===i||a&&a._merged||(t[r]=a?Nt(i,a):i)}}(t);var _=e.options.name||c;return new he("vue-component-"+e.cid+(_?"-"+_:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:f,listeners:m,tag:c,children:s},d)}}}function Nt(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function zt(e,t,n,r,c,u){return(Array.isArray(n)||s(n))&&(c=r,r=n,n=void 0),o(u)&&(c=2),function(e,t,n,r,s){if(i(n)&&i(n.__ob__))return ve();if(i(n)&&i(n.is)&&(t=n.is),!t)return ve();var c,u,d;(Array.isArray(r)&&"function"==typeof r[0]&&((n=n||{}).scopedSlots={default:r[0]},r.length=0),2===s?r=ct(r):1===s&&(r=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(r)),"string"==typeof t)?(u=e.$vnode&&e.$vnode.ns||F.getTagNamespace(t),c=F.isReservedTag(t)?new he(F.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!i(d=Ie(e.$options,"components",t))?new he(t,n,r,void 0,void 0,e):It(d,n,e,r,t)):c=It(t,n,e,r);return Array.isArray(c)?c:i(c)?(i(u)&&function e(t,n,r){if(t.ns=n,"foreignObject"===t.tag&&(n=void 0,r=!0),i(t.children))for(var s=0,l=t.children.length;s<l;s++){var c=t.children[s];i(c.tag)&&(a(c.ns)||o(r)&&"svg"!==c.tag)&&e(c,n,r)}}(c,u),i(n)&&function(e){l(e.style)&&rt(e.style),l(e.class)&&rt(e.class)}(n),c):ve()}(e,t,n,r,c)}var Ft,Rt=null;function Ht(e,t){return(e.__esModule||le&&"Module"===e[Symbol.toStringTag])&&(e=e.default),l(e)?t.extend(e):e}function Bt(e){return e.isComment&&e.asyncFactory}function qt(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(i(n)&&(i(n.componentOptions)||Bt(n)))return n}}function Ut(e,t){Ft.$on(e,t)}function Vt(e,t){Ft.$off(e,t)}function Wt(e,t){var n=Ft;return function r(){null!==t.apply(null,arguments)&&n.$off(e,r)}}function Kt(e,t,n){Ft=e,ot(t,n||{},Ut,Vt,Wt,e),Ft=void 0}var Gt=null;function Jt(e){var t=Gt;return Gt=e,function(){Gt=t}}function Zt(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function Xt(e,t){if(t){if(e._directInactive=!1,Zt(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++)Xt(e.$children[n]);Qt(e,"activated")}}function Qt(e,t){fe();var n=e.$options[t],r=t+" hook";if(n)for(var a=0,i=n.length;a<i;a++)Be(n[a],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),me()}var en=[],tn=[],nn={},rn=!1,an=!1,on=0,sn=0,ln=Date.now;if(V&&!J){var cn=window.performance;cn&&"function"==typeof cn.now&&ln()>document.createEvent("Event").timeStamp&&(ln=function(){return cn.now()})}function un(){var e,t;for(sn=ln(),an=!0,en.sort((function(e,t){return e.id-t.id})),on=0;on<en.length;on++)(e=en[on]).before&&e.before(),t=e.id,nn[t]=null,e.run();var n=tn.slice(),r=en.slice();on=en.length=tn.length=0,nn={},rn=an=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Xt(e[t],!0)}(n),function(e){for(var t=e.length;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&Qt(r,"updated")}}(r),ie&&F.devtools&&ie.emit("flush")}var dn=0,pn=function(e,t,n,r,a){this.vm=e,a&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++dn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new se,this.newDepIds=new se,this.expression="","function"==typeof t?this.getter=t:(this.getter=function(e){if(!q.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=O)),this.value=this.lazy?void 0:this.get()};pn.prototype.get=function(){var e;fe(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;He(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&rt(e),me(),this.cleanupDeps()}return e},pn.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))},pn.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},pn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==nn[t]){if(nn[t]=!0,an){for(var n=en.length-1;n>on&&en[n].id>e.id;)n--;en.splice(n+1,0,e)}else en.push(e);rn||(rn=!0,tt(un))}}(this)},pn.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){He(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},pn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},pn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},pn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var fn={enumerable:!0,configurable:!0,get:O,set:O};function mn(e,t,n){fn.get=function(){return this[t][n]},fn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,fn)}var hn={lazy:!0};function _n(e,t,n){var r=!ae();"function"==typeof n?(fn.get=r?vn(t):gn(n),fn.set=O):(fn.get=n.get?r&&!1!==n.cache?vn(t):gn(n.get):O,fn.set=n.set||O),Object.defineProperty(e,t,fn)}function vn(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),de.target&&t.depend(),t.value}}function gn(e){return function(){return e.call(this,this)}}function yn(e,t,n,r){return u(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var bn=0;function wn(e){var t=e.options;if(e.super){var n=wn(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var a in n)n[a]!==r[a]&&(t||(t={}),t[a]=n[a]);return t}(e);r&&T(e.extendOptions,r),(t=e.options=$e(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function xn(e){this._init(e)}function kn(e){return e&&(e.Ctor.options.name||e.tag)}function Dn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===c.call(n)&&e.test(t));var n}function Mn(e,t){var n=e.cache,r=e.keys,a=e._vnode;for(var i in n){var o=n[i];if(o){var s=kn(o.componentOptions);s&&!t(s)&&Sn(n,i,r,a)}}}function Sn(e,t,n,r){var a=e[t];!a||r&&a.tag===r.tag||a.componentInstance.$destroy(),e[t]=null,g(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=bn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var a=r.componentOptions;n.propsData=a.propsData,n._parentListeners=a.listeners,n._renderChildren=a.children,n._componentTag=a.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=$e(wn(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&&Kt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,a=n&&n.context;e.$slots=pt(t._renderChildren,a),e.$scopedSlots=r,e._c=function(t,n,r,a){return zt(e,t,n,r,a,!1)},e.$createElement=function(t,n,r,a){return zt(e,t,n,r,a,!0)};var i=n&&n.data;Ce(e,"$attrs",i&&i.attrs||r,null,!0),Ce(e,"$listeners",t._parentListeners||r,null,!0)}(t),Qt(t,"beforeCreate"),function(e){var t=dt(e.$options.inject,e);t&&(De(!1),Object.keys(t).forEach((function(n){Ce(e,n,t[n])})),De(!0))}(t),function(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},a=e.$options._propKeys=[];e.$parent&&De(!1);var i=function(i){a.push(i);var o=Ne(i,t,n,e);Ce(r,i,o),i in e||mn(e,"_props",i)};for(var o in t)i(o);De(!0)}(e,t.props),t.methods&&function(e,t){for(var n in e.$options.props,t)e[n]="function"!=typeof t[n]?O:C(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){fe();try{return e.call(t,t)}catch(e){return He(e,t,"data()"),{}}finally{me()}}(t,e):t||{})||(t={});for(var n,r=Object.keys(t),a=e.$options.props,i=(e.$options.methods,r.length);i--;){var o=r[i];a&&b(a,o)||(void 0,36!==(n=(o+"").charCodeAt(0))&&95!==n&&mn(e,"_data",o))}Se(t,!0)}(e):Se(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=ae();for(var a in t){var i=t[a],o="function"==typeof i?i:i.get;r||(n[a]=new pn(e,o||O,O,hn)),a in e||_n(e,a,i)}}(e,t.computed),t.watch&&t.watch!==te&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var a=0;a<r.length;a++)yn(e,n,r[a]);else yn(e,n,r)}}(e,t.watch)}(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),Qt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(xn),function(e){Object.defineProperty(e.prototype,"$data",{get:function(){return this._data}}),Object.defineProperty(e.prototype,"$props",{get:function(){return this._props}}),e.prototype.$set=Le,e.prototype.$delete=Te,e.prototype.$watch=function(e,t,n){if(u(t))return yn(this,e,t,n);(n=n||{}).user=!0;var r=new pn(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){He(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(xn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var a=0,i=e.length;a<i;a++)r.$on(e[a],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,a=e.length;r<a;r++)n.$off(e[r],t);return n}var i,o=n._events[e];if(!o)return n;if(!t)return n._events[e]=null,n;for(var s=o.length;s--;)if((i=o[s])===t||i.fn===t){o.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this._events[e];if(t){t=t.length>1?L(t):t;for(var n=L(arguments,1),r='event handler for "'+e+'"',a=0,i=t.length;a<i;a++)Be(t[a],this,n,this,r)}return this}}(xn),function(e){e.prototype._update=function(e,t){var n=this,r=n.$el,a=n._vnode,i=Jt(n);n._vnode=e,n.$el=a?n.__patch__(a,e):n.__patch__(n.$el,e,t,!1),i(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Qt(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||g(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),Qt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(xn),function(e){Ot(e.prototype),e.prototype.$nextTick=function(e){return tt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,a=n._parentVnode;a&&(t.$scopedSlots=mt(a.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=a;try{Rt=t,e=r.call(t._renderProxy,t.$createElement)}catch(n){He(n,t,"render"),e=t._vnode}finally{Rt=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof he||(e=ve()),e.parent=a,e}}(xn);var Cn=[String,RegExp,Array],Ln={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Cn,exclude:Cn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Sn(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){Mn(e,(function(e){return Dn(t,e)}))})),this.$watch("exclude",(function(t){Mn(e,(function(e){return!Dn(t,e)}))}))},render:function(){var e=this.$slots.default,t=qt(e),n=t&&t.componentOptions;if(n){var r=kn(n),a=this.include,i=this.exclude;if(a&&(!r||!Dn(a,r))||i&&r&&Dn(i,r))return t;var o=this.cache,s=this.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;o[l]?(t.componentInstance=o[l].componentInstance,g(s,l),s.push(l)):(o[l]=t,s.push(l),this.max&&s.length>parseInt(this.max)&&Sn(o,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return F}};Object.defineProperty(e,"config",t),e.util={warn:ce,extend:T,mergeOptions:$e,defineReactive:Ce},e.set=Le,e.delete=Te,e.nextTick=tt,e.observable=function(e){return Se(e),e},e.options=Object.create(null),N.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,T(e.options.components,Ln),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=L(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=$e(this.options,e),this}}(e),function(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,a=e._Ctor||(e._Ctor={});if(a[r])return a[r];var i=e.name||n.options.name,o=function(e){this._init(e)};return(o.prototype=Object.create(n.prototype)).constructor=o,o.cid=t++,o.options=$e(n.options,e),o.super=n,o.options.props&&function(e){var t=e.options.props;for(var n in t)mn(e.prototype,"_props",n)}(o),o.options.computed&&function(e){var t=e.options.computed;for(var n in t)_n(e.prototype,n,t[n])}(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,N.forEach((function(e){o[e]=n[e]})),i&&(o.options.components[i]=o),o.superOptions=n.options,o.extendOptions=e,o.sealedOptions=T({},o.options),a[r]=o,o}}(e),function(e){N.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)}(xn),Object.defineProperty(xn.prototype,"$isServer",{get:ae}),Object.defineProperty(xn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(xn,"FunctionalRenderContext",{value:jt}),xn.version="2.6.12";var Tn=h("style,class"),En=h("input,textarea,option,select,progress"),On=function(e,t,n){return"value"===n&&En(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},jn=h("contenteditable,draggable,spellcheck"),An=h("events,caret,typing,plaintext-only"),Pn=h("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"),Yn="http://www.w3.org/1999/xlink",$n=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},In=function(e){return $n(e)?e.slice(6,e.length):""},Nn=function(e){return null==e||!1===e};function zn(e,t){return{staticClass:Fn(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function Fn(e,t){return e?t?e+" "+t:e:t||""}function Rn(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,a=e.length;r<a;r++)i(t=Rn(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):l(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var Hn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Bn=h("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"),qn=h("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),Un=function(e){return Bn(e)||qn(e)};function Vn(e){return qn(e)?"svg":"math"===e?"math":void 0}var Wn=Object.create(null),Kn=h("text,number,password,search,email,tel,url");function Gn(e){return"string"==typeof e?document.querySelector(e)||document.createElement("div"):e}var Jn=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(Hn[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,"")}}),Zn={create:function(e,t){Xn(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Xn(e,!0),Xn(t))},destroy:function(e){Xn(e,!0)}};function Xn(e,t){var n=e.data.ref;if(i(n)){var r=e.context,a=e.componentInstance||e.elm,o=r.$refs;t?Array.isArray(o[n])?g(o[n],a):o[n]===a&&(o[n]=void 0):e.data.refInFor?Array.isArray(o[n])?o[n].indexOf(a)<0&&o[n].push(a):o[n]=[a]:o[n]=a}}var Qn=new he("",{},[]),er=["create","activate","update","remove","destroy"];function tr(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&i(e.data)===i(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=i(n=e.data)&&i(n=n.attrs)&&n.type,a=i(n=t.data)&&i(n=n.attrs)&&n.type;return r===a||Kn(r)&&Kn(a)}(e,t)||o(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&a(t.asyncFactory.error))}function nr(e,t,n){var r,a,o={};for(r=t;r<=n;++r)i(a=e[r].key)&&(o[a]=r);return o}var rr={create:ar,update:ar,destroy:function(e){ar(e,Qn)}};function ar(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,a,i=e===Qn,o=t===Qn,s=or(e.data.directives,e.context),l=or(t.data.directives,t.context),c=[],u=[];for(n in l)r=s[n],a=l[n],r?(a.oldValue=r.value,a.oldArg=r.arg,lr(a,"update",t,e),a.def&&a.def.componentUpdated&&u.push(a)):(lr(a,"bind",t,e),a.def&&a.def.inserted&&c.push(a));if(c.length){var d=function(){for(var n=0;n<c.length;n++)lr(c[n],"inserted",t,e)};i?st(t,"insert",d):d()}if(u.length&&st(t,"postpatch",(function(){for(var n=0;n<u.length;n++)lr(u[n],"componentUpdated",t,e)})),!i)for(n in s)l[n]||lr(s[n],"unbind",e,e,o)}(e,t)}var ir=Object.create(null);function or(e,t){var n,r,a=Object.create(null);if(!e)return a;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=ir),a[sr(r)]=r,r.def=Ie(t.$options,"directives",r.name);return a}function sr(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function lr(e,t,n,r,a){var i=e.def&&e.def[t];if(i)try{i(n.elm,e,n,r,a)}catch(r){He(r,n.context,"directive "+e.name+" "+t+" hook")}}var cr=[Zn,rr];function ur(e,t){var n=t.componentOptions;if(!(i(n)&&!1===n.Ctor.options.inheritAttrs||a(e.data.attrs)&&a(t.data.attrs))){var r,o,s=t.elm,l=e.data.attrs||{},c=t.data.attrs||{};for(r in i(c.__ob__)&&(c=t.data.attrs=T({},c)),c)o=c[r],l[r]!==o&&dr(s,r,o);for(r in(J||X)&&c.value!==l.value&&dr(s,"value",c.value),l)a(c[r])&&($n(r)?s.removeAttributeNS(Yn,In(r)):jn(r)||s.removeAttribute(r))}}function dr(e,t,n){e.tagName.indexOf("-")>-1?pr(e,t,n):Pn(t)?Nn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):jn(t)?e.setAttribute(t,function(e,t){return Nn(t)||"false"===t?"false":"contenteditable"===e&&An(t)?t:"true"}(t,n)):$n(t)?Nn(n)?e.removeAttributeNS(Yn,In(t)):e.setAttributeNS(Yn,t,n):pr(e,t,n)}function pr(e,t,n){if(Nn(n))e.removeAttribute(t);else{if(J&&!Z&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var fr={create:ur,update:ur};function mr(e,t){var n=t.elm,r=t.data,o=e.data;if(!(a(r.staticClass)&&a(r.class)&&(a(o)||a(o.staticClass)&&a(o.class)))){var s=function(e){for(var t=e.data,n=e,r=e;i(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=zn(r.data,t));for(;i(n=n.parent);)n&&n.data&&(t=zn(t,n.data));return function(e,t){return i(e)||i(t)?Fn(e,Rn(t)):""}(t.staticClass,t.class)}(t),l=n._transitionClasses;i(l)&&(s=Fn(s,Rn(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var hr,_r,vr,gr,yr,br,wr={create:mr,update:mr},xr=/[\w).+\-_$\]]/;function kr(e){var t,n,r,a,i,o=!1,s=!1,l=!1,c=!1,u=0,d=0,p=0,f=0;for(r=0;r<e.length;r++)if(n=t,t=e.charCodeAt(r),o)39===t&&92!==n&&(o=!1);else if(s)34===t&&92!==n&&(s=!1);else if(l)96===t&&92!==n&&(l=!1);else if(c)47===t&&92!==n&&(c=!1);else if(124!==t||124===e.charCodeAt(r+1)||124===e.charCodeAt(r-1)||u||d||p){switch(t){case 34:s=!0;break;case 39:o=!0;break;case 96:l=!0;break;case 40:p++;break;case 41:p--;break;case 91:d++;break;case 93:d--;break;case 123:u++;break;case 125:u--}if(47===t){for(var m=r-1,h=void 0;m>=0&&" "===(h=e.charAt(m));m--);h&&xr.test(h)||(c=!0)}}else void 0===a?(f=r+1,a=e.slice(0,r).trim()):_();function _(){(i||(i=[])).push(e.slice(f,r).trim()),f=r+1}if(void 0===a?a=e.slice(0,r).trim():0!==f&&_(),i)for(r=0;r<i.length;r++)a=Dr(a,i[r]);return a}function Dr(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";var r=t.slice(0,n),a=t.slice(n+1);return'_f("'+r+'")('+e+(")"!==a?","+a:a)}function Mr(e,t){console.error("[Vue compiler]: "+e)}function Sr(e,t){return e?e.map((function(e){return e[t]})).filter((function(e){return e})):[]}function Cr(e,t,n,r,a){(e.props||(e.props=[])).push($r({name:t,value:n,dynamic:a},r)),e.plain=!1}function Lr(e,t,n,r,a){(a?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push($r({name:t,value:n,dynamic:a},r)),e.plain=!1}function Tr(e,t,n,r){e.attrsMap[t]=n,e.attrsList.push($r({name:t,value:n},r))}function Er(e,t,n,r,a,i,o,s){(e.directives||(e.directives=[])).push($r({name:t,rawName:n,value:r,arg:a,isDynamicArg:i,modifiers:o},s)),e.plain=!1}function Or(e,t,n){return n?"_p("+t+',"'+e+'")':e+t}function jr(e,t,n,a,i,o,s,l){var c;(a=a||r).right?l?t="("+t+")==='click'?'contextmenu':("+t+")":"click"===t&&(t="contextmenu",delete a.right):a.middle&&(l?t="("+t+")==='click'?'mouseup':("+t+")":"click"===t&&(t="mouseup")),a.capture&&(delete a.capture,t=Or("!",t,l)),a.once&&(delete a.once,t=Or("~",t,l)),a.passive&&(delete a.passive,t=Or("&",t,l)),a.native?(delete a.native,c=e.nativeEvents||(e.nativeEvents={})):c=e.events||(e.events={});var u=$r({value:n.trim(),dynamic:l},s);a!==r&&(u.modifiers=a);var d=c[t];Array.isArray(d)?i?d.unshift(u):d.push(u):c[t]=d?i?[u,d]:[d,u]:u,e.plain=!1}function Ar(e,t,n){var r=Pr(e,":"+t)||Pr(e,"v-bind:"+t);if(null!=r)return kr(r);if(!1!==n){var a=Pr(e,t);if(null!=a)return JSON.stringify(a)}}function Pr(e,t,n){var r;if(null!=(r=e.attrsMap[t]))for(var a=e.attrsList,i=0,o=a.length;i<o;i++)if(a[i].name===t){a.splice(i,1);break}return n&&delete e.attrsMap[t],r}function Yr(e,t){for(var n=e.attrsList,r=0,a=n.length;r<a;r++){var i=n[r];if(t.test(i.name))return n.splice(r,1),i}}function $r(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function Ir(e,t,n){var r=n||{},a=r.number,i="$$v";r.trim&&(i="(typeof $$v === 'string'? $$v.trim(): $$v)"),a&&(i="_n("+i+")");var o=Nr(t,i);e.model={value:"("+t+")",expression:JSON.stringify(t),callback:"function ($$v) {"+o+"}"}}function Nr(e,t){var n=function(e){if(e=e.trim(),hr=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<hr-1)return(gr=e.lastIndexOf("."))>-1?{exp:e.slice(0,gr),key:'"'+e.slice(gr+1)+'"'}:{exp:e,key:null};for(_r=e,gr=yr=br=0;!Fr();)Rr(vr=zr())?Br(vr):91===vr&&Hr(vr);return{exp:e.slice(0,yr),key:e.slice(yr+1,br)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function zr(){return _r.charCodeAt(++gr)}function Fr(){return gr>=hr}function Rr(e){return 34===e||39===e}function Hr(e){var t=1;for(yr=gr;!Fr();)if(Rr(e=zr()))Br(e);else if(91===e&&t++,93===e&&t--,0===t){br=gr;break}}function Br(e){for(var t=e;!Fr()&&(e=zr())!==t;);}var qr,Ur="__r";function Vr(e,t,n){var r=qr;return function a(){null!==t.apply(null,arguments)&&Gr(e,a,n,r)}}var Wr=We&&!(ee&&Number(ee[1])<=53);function Kr(e,t,n,r){if(Wr){var a=sn,i=t;t=i._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=a||e.timeStamp<=0||e.target.ownerDocument!==document)return i.apply(this,arguments)}}qr.addEventListener(e,t,ne?{capture:n,passive:r}:n)}function Gr(e,t,n,r){(r||qr).removeEventListener(e,t._wrapper||t,n)}function Jr(e,t){if(!a(e.data.on)||!a(t.data.on)){var n=t.data.on||{},r=e.data.on||{};qr=t.elm,function(e){if(i(e.__r)){var t=J?"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),ot(n,r,Kr,Gr,Vr,t.context),qr=void 0}}var Zr,Xr={create:Jr,update:Jr};function Qr(e,t){if(!a(e.data.domProps)||!a(t.data.domProps)){var n,r,o=t.elm,s=e.data.domProps||{},l=t.data.domProps||{};for(n in i(l.__ob__)&&(l=t.data.domProps=T({},l)),s)n in l||(o[n]="");for(n in l){if(r=l[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===s[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n&&"PROGRESS"!==o.tagName){o._value=r;var c=a(r)?"":String(r);ea(o,c)&&(o.value=c)}else if("innerHTML"===n&&qn(o.tagName)&&a(o.innerHTML)){(Zr=Zr||document.createElement("div")).innerHTML="<svg>"+r+"</svg>";for(var u=Zr.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;u.firstChild;)o.appendChild(u.firstChild)}else if(r!==s[n])try{o[n]=r}catch(e){}}}}function ea(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(i(r)){if(r.number)return m(n)!==m(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var ta={create:Qr,update:Qr},na=w((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function ra(e){var t=aa(e.style);return e.staticStyle?T(e.staticStyle,t):t}function aa(e){return Array.isArray(e)?E(e):"string"==typeof e?na(e):e}var ia,oa=/^--/,sa=/\s*!important$/,la=function(e,t,n){if(oa.test(t))e.style.setProperty(t,n);else if(sa.test(n))e.style.setProperty(S(t),n.replace(sa,""),"important");else{var r=ua(t);if(Array.isArray(n))for(var a=0,i=n.length;a<i;a++)e.style[r]=n[a];else e.style[r]=n}},ca=["Webkit","Moz","ms"],ua=w((function(e){if(ia=ia||document.createElement("div").style,"filter"!==(e=k(e))&&e in ia)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<ca.length;n++){var r=ca[n]+t;if(r in ia)return r}}));function da(e,t){var n=t.data,r=e.data;if(!(a(n.staticStyle)&&a(n.style)&&a(r.staticStyle)&&a(r.style))){var o,s,l=t.elm,c=r.staticStyle,u=r.normalizedStyle||r.style||{},d=c||u,p=aa(t.data.style)||{};t.data.normalizedStyle=i(p.__ob__)?T({},p):p;var f=function(e,t){for(var n,r={},a=e;a.componentInstance;)(a=a.componentInstance._vnode)&&a.data&&(n=ra(a.data))&&T(r,n);(n=ra(e.data))&&T(r,n);for(var i=e;i=i.parent;)i.data&&(n=ra(i.data))&&T(r,n);return r}(t);for(s in d)a(f[s])&&la(l,s,"");for(s in f)(o=f[s])!==d[s]&&la(l,s,null==o?"":o)}}var pa={create:da,update:da},fa=/\s+/;function ma(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(fa).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 ha(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(fa).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function _a(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&T(t,va(e.name||"v")),T(t,e),t}return"string"==typeof e?va(e):void 0}}var va=w((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"}})),ga=V&&!Z,ya="transition",ba="animation",wa="transition",xa="transitionend",ka="animation",Da="animationend";ga&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(wa="WebkitTransition",xa="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ka="WebkitAnimation",Da="webkitAnimationEnd"));var Ma=V?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Sa(e){Ma((function(){Ma(e)}))}function Ca(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),ma(e,t))}function La(e,t){e._transitionClasses&&g(e._transitionClasses,t),ha(e,t)}function Ta(e,t,n){var r=Oa(e,t),a=r.type,i=r.timeout,o=r.propCount;if(!a)return n();var s=a===ya?xa:Da,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 Ea=/\b(transform|all)(,|$)/;function Oa(e,t){var n,r=window.getComputedStyle(e),a=(r[wa+"Delay"]||"").split(", "),i=(r[wa+"Duration"]||"").split(", "),o=ja(a,i),s=(r[ka+"Delay"]||"").split(", "),l=(r[ka+"Duration"]||"").split(", "),c=ja(s,l),u=0,d=0;return t===ya?o>0&&(n=ya,u=o,d=i.length):t===ba?c>0&&(n=ba,u=c,d=l.length):d=(n=(u=Math.max(o,c))>0?o>c?ya:ba:null)?n===ya?i.length:l.length:0,{type:n,timeout:u,propCount:d,hasTransform:n===ya&&Ea.test(r[wa+"Property"])}}function ja(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Aa(t)+Aa(e[n])})))}function Aa(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Pa(e,t){var n=e.elm;i(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=_a(e.data.transition);if(!a(r)&&!i(n._enterCb)&&1===n.nodeType){for(var o=r.css,s=r.type,c=r.enterClass,u=r.enterToClass,d=r.enterActiveClass,p=r.appearClass,f=r.appearToClass,h=r.appearActiveClass,_=r.beforeEnter,v=r.enter,g=r.afterEnter,y=r.enterCancelled,b=r.beforeAppear,w=r.appear,x=r.afterAppear,k=r.appearCancelled,D=r.duration,M=Gt,S=Gt.$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&&h?h:d,E=C&&f?f:u,O=C&&b||_,j=C&&"function"==typeof w?w:v,A=C&&x||g,P=C&&k||y,Y=m(l(D)?D.enter:D),I=!1!==o&&!Z,N=Ia(j),z=n._enterCb=$((function(){I&&(La(n,E),La(n,T)),z.cancelled?(I&&La(n,L),P&&P(n)):A&&A(n),n._enterCb=null}));e.data.show||st(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),j&&j(n,z)})),O&&O(n),I&&(Ca(n,L),Ca(n,T),Sa((function(){La(n,L),z.cancelled||(Ca(n,E),N||($a(Y)?setTimeout(z,Y):Ta(n,s,z)))}))),e.data.show&&(t&&t(),j&&j(n,z)),I||N||z()}}}function Ya(e,t){var n=e.elm;i(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=_a(e.data.transition);if(a(r)||1!==n.nodeType)return t();if(!i(n._leaveCb)){var o=r.css,s=r.type,c=r.leaveClass,u=r.leaveToClass,d=r.leaveActiveClass,p=r.beforeLeave,f=r.leave,h=r.afterLeave,_=r.leaveCancelled,v=r.delayLeave,g=r.duration,y=!1!==o&&!Z,b=Ia(f),w=m(l(g)?g.leave:g),x=n._leaveCb=$((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),y&&(La(n,u),La(n,d)),x.cancelled?(y&&La(n,c),_&&_(n)):(t(),h&&h(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&&(Ca(n,c),Ca(n,d),Sa((function(){La(n,c),x.cancelled||(Ca(n,u),b||($a(w)?setTimeout(x,w):Ta(n,s,x)))}))),f&&f(n,x),y||b||x())}}function $a(e){return"number"==typeof e&&!isNaN(e)}function Ia(e){if(a(e))return!1;var t=e.fns;return i(t)?Ia(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Na(e,t){!0!==t.data.show&&Pa(t)}var za=function(e){var t,n,r={},l=e.modules,c=e.nodeOps;for(t=0;t<er.length;++t)for(r[er[t]]=[],n=0;n<l.length;++n)i(l[n][er[t]])&&r[er[t]].push(l[n][er[t]]);function u(e){var t=c.parentNode(e);i(t)&&c.removeChild(t,e)}function d(e,t,n,a,s,l,u){if(i(e.elm)&&i(l)&&(e=l[u]=ye(e)),e.isRootInsert=!s,!function(e,t,n,a){var s=e.data;if(i(s)){var l=i(e.componentInstance)&&s.keepAlive;if(i(s=s.hook)&&i(s=s.init)&&s(e,!1),i(e.componentInstance))return p(e,t),f(n,e.elm,a),o(l)&&function(e,t,n,a){for(var o,s=e;s.componentInstance;)if(i(o=(s=s.componentInstance._vnode).data)&&i(o=o.transition)){for(o=0;o<r.activate.length;++o)r.activate[o](Qn,s);t.push(s);break}f(n,e.elm,a)}(e,t,n,a),!0}}(e,t,n,a)){var d=e.data,h=e.children,_=e.tag;i(_)?(e.elm=e.ns?c.createElementNS(e.ns,_):c.createElement(_,e),g(e),m(e,h,t),i(d)&&v(e,t),f(n,e.elm,a)):o(e.isComment)?(e.elm=c.createComment(e.text),f(n,e.elm,a)):(e.elm=c.createTextNode(e.text),f(n,e.elm,a))}}function p(e,t){i(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,_(e)?(v(e,t),g(e)):(Xn(e),t.push(e))}function f(e,t,n){i(e)&&(i(n)?c.parentNode(n)===e&&c.insertBefore(e,t,n):c.appendChild(e,t))}function m(e,t,n){if(Array.isArray(t))for(var r=0;r<t.length;++r)d(t[r],n,e.elm,null,!0,t,r);else s(e.text)&&c.appendChild(e.elm,c.createTextNode(String(e.text)))}function _(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return i(e.tag)}function v(e,n){for(var a=0;a<r.create.length;++a)r.create[a](Qn,e);i(t=e.data.hook)&&(i(t.create)&&t.create(Qn,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=Gt)&&t!==e.context&&t!==e.fnContext&&i(t=t.$options._scopeId)&&c.setStyleScope(e.elm,t)}function y(e,t,n,r,a,i){for(;r<=a;++r)d(n[r],i,e,t,!1,n,r)}function b(e){var t,n,a=e.data;if(i(a))for(i(t=a.hook)&&i(t=t.destroy)&&t(e),t=0;t<r.destroy.length;++t)r.destroy[t](e);if(i(t=e.children))for(n=0;n<e.children.length;++n)b(e.children[n])}function w(e,t,n){for(;t<=n;++t){var r=e[t];i(r)&&(i(r.tag)?(x(r),b(r)):u(r.elm))}}function x(e,t){if(i(t)||i(e.data)){var n,a=r.remove.length+1;for(i(t)?t.listeners+=a:t=function(e,t){function n(){0==--n.listeners&&u(e)}return n.listeners=t,n}(e.elm,a),i(n=e.componentInstance)&&i(n=n._vnode)&&i(n.data)&&x(n,t),n=0;n<r.remove.length;++n)r.remove[n](e,t);i(n=e.data.hook)&&i(n=n.remove)?n(e,t):t()}else u(e.elm)}function k(e,t,n,r){for(var a=n;a<r;a++){var o=t[a];if(i(o)&&tr(e,o))return a}}function D(e,t,n,s,l,u){if(e!==t){i(t.elm)&&i(s)&&(t=s[l]=ye(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 f,m=t.data;i(m)&&i(f=m.hook)&&i(f=f.prepatch)&&f(e,t);var h=e.children,v=t.children;if(i(m)&&_(t)){for(f=0;f<r.update.length;++f)r.update[f](e,t);i(f=m.hook)&&i(f=f.update)&&f(e,t)}a(t.text)?i(h)&&i(v)?h!==v&&function(e,t,n,r,o){for(var s,l,u,p=0,f=0,m=t.length-1,h=t[0],_=t[m],v=n.length-1,g=n[0],b=n[v],x=!o;p<=m&&f<=v;)a(h)?h=t[++p]:a(_)?_=t[--m]:tr(h,g)?(D(h,g,r,n,f),h=t[++p],g=n[++f]):tr(_,b)?(D(_,b,r,n,v),_=t[--m],b=n[--v]):tr(h,b)?(D(h,b,r,n,v),x&&c.insertBefore(e,h.elm,c.nextSibling(_.elm)),h=t[++p],b=n[--v]):tr(_,g)?(D(_,g,r,n,f),x&&c.insertBefore(e,_.elm,h.elm),_=t[--m],g=n[++f]):(a(s)&&(s=nr(t,p,m)),a(l=i(g.key)?s[g.key]:k(g,t,p,m))?d(g,r,e,h.elm,!1,n,f):tr(u=t[l],g)?(D(u,g,r,n,f),t[l]=void 0,x&&c.insertBefore(e,u.elm,h.elm)):d(g,r,e,h.elm,!1,n,f),g=n[++f]);p>m?y(e,a(n[v+1])?null:n[v+1].elm,n,f,v,r):f>v&&w(t,p,m)}(p,h,v,n,u):i(v)?(i(e.text)&&c.setTextContent(p,""),y(p,null,v,0,v.length-1,n)):i(h)?w(h,0,h.length-1):i(e.text)&&c.setTextContent(p,""):e.text!==t.text&&c.setTextContent(p,t.text),i(m)&&i(f=m.hook)&&i(f=f.postpatch)&&f(e,t)}}}function M(e,t,n){if(o(n)&&i(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var S=h("attrs,class,staticClass,staticStyle,key");function C(e,t,n,r){var a,s=t.tag,l=t.data,c=t.children;if(r=r||l&&l.pre,t.elm=e,o(t.isComment)&&i(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(i(l)&&(i(a=l.hook)&&i(a=a.init)&&a(t,!0),i(a=t.componentInstance)))return p(t,n),!0;if(i(s)){if(i(c))if(e.hasChildNodes())if(i(a=l)&&i(a=a.domProps)&&i(a=a.innerHTML)){if(a!==e.innerHTML)return!1}else{for(var u=!0,d=e.firstChild,f=0;f<c.length;f++){if(!d||!C(d,c[f],n,r)){u=!1;break}d=d.nextSibling}if(!u||d)return!1}else m(t,c,n);if(i(l)){var h=!1;for(var _ in l)if(!S(_)){h=!0,v(t,n);break}!h&&l.class&&rt(l.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,s){if(!a(t)){var l,u=!1,p=[];if(a(e))u=!0,d(t,p);else{var f=i(e.nodeType);if(!f&&tr(e,t))D(e,t,p,null,null,s);else{if(f){if(1===e.nodeType&&e.hasAttribute(I)&&(e.removeAttribute(I),n=!0),o(n)&&C(e,t,p))return M(t,p,!0),e;l=e,e=new he(c.tagName(l).toLowerCase(),{},[],void 0,l)}var m=e.elm,h=c.parentNode(m);if(d(t,p,m._leaveCb?null:h,c.nextSibling(m)),i(t.parent))for(var v=t.parent,g=_(t);v;){for(var y=0;y<r.destroy.length;++y)r.destroy[y](v);if(v.elm=t.elm,g){for(var x=0;x<r.create.length;++x)r.create[x](Qn,v);var k=v.data.hook.insert;if(k.merged)for(var S=1;S<k.fns.length;S++)k.fns[S]()}else Xn(v);v=v.parent}i(h)?w([e],0,0):i(e.tag)&&b(e)}}return M(t,p,u),t.elm}i(e)&&b(e)}}({nodeOps:Jn,modules:[fr,wr,Xr,ta,pa,V?{create:Na,activate:Na,remove:function(e,t){!0!==e.data.show?Ya(e,t):t()}}:{}].concat(cr)});Z&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&Wa(e,"input")}));var Fa={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?st(n,"postpatch",(function(){Fa.componentUpdated(e,t,n)})):Ra(e,t,n.context),e._vOptions=[].map.call(e.options,qa)):("textarea"===n.tag||Kn(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Ua),e.addEventListener("compositionend",Va),e.addEventListener("change",Va),Z&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Ra(e,t,n.context);var r=e._vOptions,a=e._vOptions=[].map.call(e.options,qa);a.some((function(e,t){return!P(e,r[t])}))&&(e.multiple?t.value.some((function(e){return Ba(e,a)})):t.value!==t.oldValue&&Ba(t.value,a))&&Wa(e,"change")}}};function Ra(e,t,n){Ha(e,t,n),(J||X)&&setTimeout((function(){Ha(e,t,n)}),0)}function Ha(e,t,n){var r=t.value,a=e.multiple;if(!a||Array.isArray(r)){for(var i,o,s=0,l=e.options.length;s<l;s++)if(o=e.options[s],a)i=Y(r,qa(o))>-1,o.selected!==i&&(o.selected=i);else if(P(qa(o),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));a||(e.selectedIndex=-1)}}function Ba(e,t){return t.every((function(t){return!P(t,e)}))}function qa(e){return"_value"in e?e._value:e.value}function Ua(e){e.target.composing=!0}function Va(e){e.target.composing&&(e.target.composing=!1,Wa(e.target,"input"))}function Wa(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Ka(e){return!e.componentInstance||e.data&&e.data.transition?e:Ka(e.componentInstance._vnode)}var Ga={model:Fa,show:{bind:function(e,t,n){var r=t.value,a=(n=Ka(n)).data&&n.data.transition,i=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&a?(n.data.show=!0,Pa(n,(function(){e.style.display=i}))):e.style.display=r?i:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Ka(n)).data&&n.data.transition?(n.data.show=!0,r?Pa(n,(function(){e.style.display=e.__vOriginalDisplay})):Ya(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,a){a||(e.style.display=e.__vOriginalDisplay)}}},Ja={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 Za(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Za(qt(t.children)):e}function Xa(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var a=n._parentListeners;for(var i in a)t[k(i)]=a[i];return t}function Qa(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var ei=function(e){return e.tag||Bt(e)},ti=function(e){return"show"===e.name},ni={name:"transition",props:Ja,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(ei)).length){var r=this.mode,a=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return a;var i=Za(a);if(!i)return a;if(this._leaving)return Qa(e,a);var o="__transition-"+this._uid+"-";i.key=null==i.key?i.isComment?o+"comment":o+i.tag:s(i.key)?0===String(i.key).indexOf(o)?i.key:o+i.key:i.key;var l=(i.data||(i.data={})).transition=Xa(this),c=this._vnode,u=Za(c);if(i.data.directives&&i.data.directives.some(ti)&&(i.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(i,u)&&!Bt(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=T({},l);if("out-in"===r)return this._leaving=!0,st(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Qa(e,a);if("in-out"===r){if(Bt(i))return c;var p,f=function(){p()};st(l,"afterEnter",f),st(l,"enterCancelled",f),st(d,"delayLeave",(function(e){p=e}))}}return a}}},ri=T({tag:String,moveClass:String},Ja);function ai(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function ii(e){e.data.newPos=e.elm.getBoundingClientRect()}function oi(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,a=t.top-n.top;if(r||a){e.data.moved=!0;var i=e.elm.style;i.transform=i.WebkitTransform="translate("+r+"px,"+a+"px)",i.transitionDuration="0s"}}delete ri.mode;var si={Transition:ni,TransitionGroup:{props:ri,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var a=Jt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,a(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,a=this.$slots.default||[],i=this.children=[],o=Xa(this),s=0;s<a.length;s++){var l=a[s];l.tag&&null!=l.key&&0!==String(l.key).indexOf("__vlist")&&(i.push(l),n[l.key]=l,(l.data||(l.data={})).transition=o)}if(r){for(var c=[],u=[],d=0;d<r.length;d++){var p=r[d];p.data.transition=o,p.data.pos=p.elm.getBoundingClientRect(),n[p.key]?c.push(p):u.push(p)}this.kept=e(t,null,c),this.removed=u}return e(t,null,i)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(ai),e.forEach(ii),e.forEach(oi),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;Ca(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(xa,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(xa,e),n._moveCb=null,La(n,t))})}})))},methods:{hasMove:function(e,t){if(!ga)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){ha(n,e)})),ma(n,t),n.style.display="none",this.$el.appendChild(n);var r=Oa(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};xn.config.mustUseProp=On,xn.config.isReservedTag=Un,xn.config.isReservedAttr=Tn,xn.config.getTagNamespace=Vn,xn.config.isUnknownElement=function(e){if(!V)return!0;if(Un(e))return!1;if(e=e.toLowerCase(),null!=Wn[e])return Wn[e];var t=document.createElement(e);return e.indexOf("-")>-1?Wn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Wn[e]=/HTMLUnknownElement/.test(t.toString())},T(xn.options.directives,Ga),T(xn.options.components,si),xn.prototype.__patch__=V?za:O,xn.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=ve),Qt(e,"beforeMount"),r=function(){e._update(e._render(),n)},new pn(e,r,O,{before:function(){e._isMounted&&!e._isDestroyed&&Qt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Qt(e,"mounted")),e}(this,e=e&&V?Gn(e):void 0,t)},V&&setTimeout((function(){F.devtools&&ie&&ie.emit("init",xn)}),0);var li,ci=/\{\{((?:.|\r?\n)+?)\}\}/g,ui=/[-.*+?^${}()|[\]\/\\]/g,di=w((function(e){var t=e[0].replace(ui,"\\$&"),n=e[1].replace(ui,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")})),pi={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=Pr(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Ar(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}},fi={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=Pr(e,"style");n&&(e.staticStyle=JSON.stringify(na(n)));var r=Ar(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},mi=h("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),hi=h("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),_i=h("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"),vi=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,gi=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,yi="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+R.source+"]*",bi="((?:"+yi+"\\:)?"+yi+")",wi=new RegExp("^<"+bi),xi=/^\s*(\/?)>/,ki=new RegExp("^<\\/"+bi+"[^>]*>"),Di=/^<!DOCTYPE [^>]+>/i,Mi=/^<!\--/,Si=/^<!\[/,Ci=h("script,style,textarea",!0),Li={},Ti={"<":"<",">":">",""":'"',"&":"&"," ":"\n","	":"\t","'":"'"},Ei=/&(?:lt|gt|quot|amp|#39);/g,Oi=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,ji=h("pre,textarea",!0),Ai=function(e,t){return e&&ji(e)&&"\n"===t[0]};function Pi(e,t){var n=t?Oi:Ei;return e.replace(n,(function(e){return Ti[e]}))}var Yi,$i,Ii,Ni,zi,Fi,Ri,Hi,Bi=/^@|^v-on:/,qi=/^v-|^@|^:|^#/,Ui=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Vi=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Wi=/^\(|\)$/g,Ki=/^\[.*\]$/,Gi=/:(.*)$/,Ji=/^:|^\.|^v-bind:/,Zi=/\.[^.\]]+(?=[^\]]*$)/g,Xi=/^v-slot(:|$)|^#/,Qi=/[\r\n]/,eo=/\s+/g,to=w((function(e){return(li=li||document.createElement("div")).innerHTML=e,li.textContent})),no="_empty_";function ro(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:co(t),rawAttrsMap:{},parent:n,children:[]}}function ao(e,t){var n,r;(r=Ar(n=e,"key"))&&(n.key=r),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,function(e){var t=Ar(e,"ref");t&&(e.ref=t,e.refInFor=function(e){for(var t=e;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}(e))}(e),function(e){var t;"template"===e.tag?(t=Pr(e,"scope"),e.slotScope=t||Pr(e,"slot-scope")):(t=Pr(e,"slot-scope"))&&(e.slotScope=t);var n=Ar(e,"slot");if(n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||Lr(e,"slot",n,function(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}(e,"slot"))),"template"===e.tag){var r=Yr(e,Xi);if(r){var a=so(r),i=a.name,o=a.dynamic;e.slotTarget=i,e.slotTargetDynamic=o,e.slotScope=r.value||no}}else{var s=Yr(e,Xi);if(s){var l=e.scopedSlots||(e.scopedSlots={}),c=so(s),u=c.name,d=c.dynamic,p=l[u]=ro("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||no,e.children=[],e.plain=!1}}}(e),function(e){"slot"===e.tag&&(e.slotName=Ar(e,"name"))}(e),function(e){var t;(t=Ar(e,"is"))&&(e.component=t),null!=Pr(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(var a=0;a<Ii.length;a++)e=Ii[a](e,t)||e;return function(e){var t,n,r,a,i,o,s,l,c=e.attrsList;for(t=0,n=c.length;t<n;t++)if(r=a=c[t].name,i=c[t].value,qi.test(r))if(e.hasBindings=!0,(o=lo(r.replace(qi,"")))&&(r=r.replace(Zi,"")),Ji.test(r))r=r.replace(Ji,""),i=kr(i),(l=Ki.test(r))&&(r=r.slice(1,-1)),o&&(o.prop&&!l&&"innerHtml"===(r=k(r))&&(r="innerHTML"),o.camel&&!l&&(r=k(r)),o.sync&&(s=Nr(i,"$event"),l?jr(e,'"update:"+('+r+")",s,null,!1,0,c[t],!0):(jr(e,"update:"+k(r),s,null,!1,0,c[t]),S(r)!==k(r)&&jr(e,"update:"+S(r),s,null,!1,0,c[t])))),o&&o.prop||!e.component&&Ri(e.tag,e.attrsMap.type,r)?Cr(e,r,i,c[t],l):Lr(e,r,i,c[t],l);else if(Bi.test(r))r=r.replace(Bi,""),(l=Ki.test(r))&&(r=r.slice(1,-1)),jr(e,r,i,o,!1,0,c[t],l);else{var u=(r=r.replace(qi,"")).match(Gi),d=u&&u[1];l=!1,d&&(r=r.slice(0,-(d.length+1)),Ki.test(d)&&(d=d.slice(1,-1),l=!0)),Er(e,r,a,i,d,l,o,c[t])}else Lr(e,r,JSON.stringify(i),c[t]),!e.component&&"muted"===r&&Ri(e.tag,e.attrsMap.type,r)&&Cr(e,r,"true",c[t])}(e),e}function io(e){var t;if(t=Pr(e,"v-for")){var n=function(e){var t=e.match(Ui);if(t){var n={};n.for=t[2].trim();var r=t[1].trim().replace(Wi,""),a=r.match(Vi);return a?(n.alias=r.replace(Vi,"").trim(),n.iterator1=a[1].trim(),a[2]&&(n.iterator2=a[2].trim())):n.alias=r,n}}(t);n&&T(e,n)}}function oo(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function so(e){var t=e.name.replace(Xi,"");return t||"#"!==e.name[0]&&(t="default"),Ki.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'+t+'"',dynamic:!1}}function lo(e){var t=e.match(Zi);if(t){var n={};return t.forEach((function(e){n[e.slice(1)]=!0})),n}}function co(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n].name]=e[n].value;return t}var uo=/^xmlns:NS\d+/,po=/^NS\d+:/;function fo(e){return ro(e.tag,e.attrsList.slice(),e.parent)}var mo,ho,_o=[pi,fi,{preTransformNode:function(e,t){if("input"===e.tag){var n,r=e.attrsMap;if(!r["v-model"])return;if((r[":type"]||r["v-bind:type"])&&(n=Ar(e,"type")),r.type||n||!r["v-bind"]||(n="("+r["v-bind"]+").type"),n){var a=Pr(e,"v-if",!0),i=a?"&&("+a+")":"",o=null!=Pr(e,"v-else",!0),s=Pr(e,"v-else-if",!0),l=fo(e);io(l),Tr(l,"type","checkbox"),ao(l,t),l.processed=!0,l.if="("+n+")==='checkbox'"+i,oo(l,{exp:l.if,block:l});var c=fo(e);Pr(c,"v-for",!0),Tr(c,"type","radio"),ao(c,t),oo(l,{exp:"("+n+")==='radio'"+i,block:c});var u=fo(e);return Pr(u,"v-for",!0),Tr(u,":type",n),ao(u,t),oo(l,{exp:a,block:u}),o?l.else=!0:s&&(l.elseif=s),l}}}}],vo={expectHTML:!0,modules:_o,directives:{model:function(e,t,n){var r=t.value,a=t.modifiers,i=e.tag,o=e.attrsMap.type;if(e.component)return Ir(e,r,a),!1;if("select"===i)!function(e,t,n){var r='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"});";jr(e,"change",r=r+" "+Nr(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),null,!0)}(e,r,a);else if("input"===i&&"checkbox"===o)!function(e,t,n){var r=n&&n.number,a=Ar(e,"value")||"null",i=Ar(e,"true-value")||"true",o=Ar(e,"false-value")||"false";Cr(e,"checked","Array.isArray("+t+")?_i("+t+","+a+")>-1"+("true"===i?":("+t+")":":_q("+t+","+i+")")),jr(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+i+"):("+o+");if(Array.isArray($$a)){var $$v="+(r?"_n("+a+")":a)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Nr(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Nr(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Nr(t,"$$c")+"}",null,!0)}(e,r,a);else if("input"===i&&"radio"===o)!function(e,t,n){var r=n&&n.number,a=Ar(e,"value")||"null";Cr(e,"checked","_q("+t+","+(a=r?"_n("+a+")":a)+")"),jr(e,"change",Nr(t,a),null,!0)}(e,r,a);else if("input"===i||"textarea"===i)!function(e,t,n){var r=e.attrsMap.type,a=n||{},i=a.lazy,o=a.number,s=a.trim,l=!i&&"range"!==r,c=i?"change":"range"===r?Ur:"input",u="$event.target.value";s&&(u="$event.target.value.trim()"),o&&(u="_n("+u+")");var d=Nr(t,u);l&&(d="if($event.target.composing)return;"+d),Cr(e,"value","("+t+")"),jr(e,c,d,null,!0),(s||o)&&jr(e,"blur","$forceUpdate()")}(e,r,a);else if(!F.isReservedTag(i))return Ir(e,r,a),!1;return!0},text:function(e,t){t.value&&Cr(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Cr(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:mi,mustUseProp:On,canBeLeftOpenTag:hi,isReservedTag:Un,getTagNamespace:Vn,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(_o)},go=w((function(e){return h("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));var yo=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,bo=/\([^)]*?\);*$/,wo=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,xo={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},ko={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"]},Do=function(e){return"if("+e+")return null;"},Mo={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Do("$event.target !== $event.currentTarget"),ctrl:Do("!$event.ctrlKey"),shift:Do("!$event.shiftKey"),alt:Do("!$event.altKey"),meta:Do("!$event.metaKey"),left:Do("'button' in $event && $event.button !== 0"),middle:Do("'button' in $event && $event.button !== 1"),right:Do("'button' in $event && $event.button !== 2")};function So(e,t){var n=t?"nativeOn:":"on:",r="",a="";for(var i in e){var o=Co(e[i]);e[i]&&e[i].dynamic?a+=i+","+o+",":r+='"'+i+'":'+o+","}return r="{"+r.slice(0,-1)+"}",a?n+"_d("+r+",["+a.slice(0,-1)+"])":n+r}function Co(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return Co(e)})).join(",")+"]";var t=wo.test(e.value),n=yo.test(e.value),r=wo.test(e.value.replace(bo,""));if(e.modifiers){var a="",i="",o=[];for(var s in e.modifiers)if(Mo[s])i+=Mo[s],xo[s]&&o.push(s);else if("exact"===s){var l=e.modifiers;i+=Do(["ctrl","shift","alt","meta"].filter((function(e){return!l[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else o.push(s);return o.length&&(a+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Lo).join("&&")+")return null;"}(o)),i&&(a+=i),"function($event){"+a+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function Lo(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=xo[e],r=ko[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var To={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:O},Eo=function(e){this.options=e,this.warn=e.warn||Mr,this.transforms=Sr(e.modules,"transformCode"),this.dataGenFns=Sr(e.modules,"genData"),this.directives=T(T({},To),e.directives);var t=e.isReservedTag||j;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Oo(e,t){var n=new Eo(t);return{render:"with(this){return "+(e?jo(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function jo(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Ao(e,t);if(e.once&&!e.onceProcessed)return Po(e,t);if(e.for&&!e.forProcessed)return $o(e,t);if(e.if&&!e.ifProcessed)return Yo(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=Fo(e,t),a="_t("+n+(r?","+r:""),i=e.attrs||e.dynamicAttrs?Bo((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:k(e.name),value:e.value,dynamic:e.dynamic}}))):null,o=e.attrsMap["v-bind"];return!i&&!o||r||(a+=",null"),i&&(a+=","+i),o&&(a+=(i?"":",null")+","+o),a+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:Fo(t,n,!0);return"_c("+e+","+Io(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=Io(e,t));var a=e.inlineTemplate?null:Fo(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(a?","+a:"")+")"}for(var i=0;i<t.transforms.length;i++)n=t.transforms[i](e,n);return n}return Fo(e,t)||"void 0"}function Ao(e,t){e.staticProcessed=!0;var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return "+jo(e,t)+"}"),t.pre=n,"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function Po(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return Yo(e,t);if(e.staticInFor){for(var n="",r=e.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o("+jo(e,t)+","+t.onceId+++","+n+")":jo(e,t)}return Ao(e,t)}function Yo(e,t,n,r){return e.ifProcessed=!0,function e(t,n,r,a){if(!t.length)return a||"_e()";var i=t.shift();return i.exp?"("+i.exp+")?"+o(i.block)+":"+e(t,n,r,a):""+o(i.block);function o(e){return r?r(e,n):e.once?Po(e,n):jo(e,n)}}(e.ifConditions.slice(),t,n,r)}function $o(e,t,n,r){var a=e.for,i=e.alias,o=e.iterator1?","+e.iterator1:"",s=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,(r||"_l")+"(("+a+"),function("+i+o+s+"){return "+(n||jo)(e,t)+"})"}function Io(e,t){var n="{",r=function(e,t){var n=e.directives;if(n){var r,a,i,o,s="directives:[",l=!1;for(r=0,a=n.length;r<a;r++){i=n[r],o=!0;var c=t.directives[i.name];c&&(o=!!c(e,i,t.warn)),o&&(l=!0,s+='{name:"'+i.name+'",rawName:"'+i.rawName+'"'+(i.value?",value:("+i.value+"),expression:"+JSON.stringify(i.value):"")+(i.arg?",arg:"+(i.isDynamicArg?i.arg:'"'+i.arg+'"'):"")+(i.modifiers?",modifiers:"+JSON.stringify(i.modifiers):"")+"},")}return l?s.slice(0,-1)+"]":void 0}}(e,t);r&&(n+=r+","),e.key&&(n+="key:"+e.key+","),e.ref&&(n+="ref:"+e.ref+","),e.refInFor&&(n+="refInFor:true,"),e.pre&&(n+="pre:true,"),e.component&&(n+='tag:"'+e.tag+'",');for(var a=0;a<t.dataGenFns.length;a++)n+=t.dataGenFns[a](e);if(e.attrs&&(n+="attrs:"+Bo(e.attrs)+","),e.props&&(n+="domProps:"+Bo(e.props)+","),e.events&&(n+=So(e.events,!1)+","),e.nativeEvents&&(n+=So(e.nativeEvents,!0)+","),e.slotTarget&&!e.slotScope&&(n+="slot:"+e.slotTarget+","),e.scopedSlots&&(n+=function(e,t,n){var r=e.for||Object.keys(t).some((function(e){var n=t[e];return n.slotTargetDynamic||n.if||n.for||No(n)})),a=!!e.if;if(!r)for(var i=e.parent;i;){if(i.slotScope&&i.slotScope!==no||i.for){r=!0;break}i.if&&(a=!0),i=i.parent}var o=Object.keys(t).map((function(e){return zo(t[e],n)})).join(",");return"scopedSlots:_u(["+o+"]"+(r?",null,true":"")+(!r&&a?",null,false,"+function(e){for(var t=5381,n=e.length;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];if(n&&1===n.type){var r=Oo(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}(e,t);i&&(n+=i+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+Bo(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function No(e){return 1===e.type&&("slot"===e.tag||e.children.some(No))}function zo(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Yo(e,t,zo,"null");if(e.for&&!e.forProcessed)return $o(e,t,zo);var r=e.slotScope===no?"":String(e.slotScope),a="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(Fo(e,t)||"undefined")+":undefined":Fo(e,t)||"undefined":jo(e,t))+"}",i=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+a+i+"}"}function Fo(e,t,n,r,a){var i=e.children;if(i.length){var o=i[0];if(1===i.length&&o.for&&"template"!==o.tag&&"slot"!==o.tag){var s=n?t.maybeComponent(o)?",1":",0":"";return""+(r||jo)(o,t)+s}var l=n?function(e,t){for(var n=0,r=0;r<e.length;r++){var a=e[r];if(1===a.type){if(Ro(a)||a.ifConditions&&a.ifConditions.some((function(e){return Ro(e.block)}))){n=2;break}(t(a)||a.ifConditions&&a.ifConditions.some((function(e){return t(e.block)})))&&(n=1)}}return n}(i,t.maybeComponent):0,c=a||Ho;return"["+i.map((function(e){return c(e,t)})).join(",")+"]"+(l?","+l:"")}}function Ro(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function Ho(e,t){return 1===e.type?jo(e,t):3===e.type&&e.isComment?(r=e,"_e("+JSON.stringify(r.text)+")"):"_v("+(2===(n=e).type?n.expression:qo(JSON.stringify(n.text)))+")";var n,r}function Bo(e){for(var t="",n="",r=0;r<e.length;r++){var a=e[r],i=qo(a.value);a.dynamic?n+=a.name+","+i+",":t+='"'+a.name+'":'+i+","}return t="{"+t.slice(0,-1)+"}",n?"_d("+t+",["+n.slice(0,-1)+"])":t}function qo(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function Uo(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),O}}function Vo(e){var t=Object.create(null);return function(n,r,a){(r=T({},r)).warn,delete r.warn;var i=r.delimiters?String(r.delimiters)+n:n;if(t[i])return t[i];var o=e(n,r),s={},l=[];return s.render=Uo(o.render,l),s.staticRenderFns=o.staticRenderFns.map((function(e){return Uo(e,l)})),t[i]=s}}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");var Wo,Ko,Go=(Wo=function(e,t){var n=function(e,t){Yi=t.warn||Mr,Fi=t.isPreTag||j,Ri=t.mustUseProp||j,Hi=t.getTagNamespace||j,t.isReservedTag,Ii=Sr(t.modules,"transformNode"),Ni=Sr(t.modules,"preTransformNode"),zi=Sr(t.modules,"postTransformNode"),$i=t.delimiters;var n,r,a=[],i=!1!==t.preserveWhitespace,o=t.whitespace,s=!1,l=!1;function c(e){if(u(e),s||e.processed||(e=ao(e,t)),a.length||e===n||n.if&&(e.elseif||e.else)&&oo(n,{exp:e.elseif,block:e}),r&&!e.forbidden)if(e.elseif||e.else)o=e,(c=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(r.children))&&c.if&&oo(c,{exp:o.elseif,block:o});else{if(e.slotScope){var i=e.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[i]=e}r.children.push(e),e.parent=r}var o,c;e.children=e.children.filter((function(e){return!e.slotScope})),u(e),e.pre&&(s=!1),Fi(e.tag)&&(l=!1);for(var d=0;d<zi.length;d++)zi[d](e,t)}function u(e){if(!l)for(var t;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}return function(e,t){for(var n,r,a=[],i=t.expectHTML,o=t.isUnaryTag||j,s=t.canBeLeftOpenTag||j,l=0;e;){if(n=e,r&&Ci(r)){var c=0,u=r.toLowerCase(),d=Li[u]||(Li[u]=new RegExp("([\\s\\S]*?)(</"+u+"[^>]*>)","i")),p=e.replace(d,(function(e,n,r){return c=r.length,Ci(u)||"noscript"===u||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),Ai(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 f=e.indexOf("<");if(0===f){if(Mi.test(e)){var m=e.indexOf("--\x3e");if(m>=0){t.shouldKeepComment&&t.comment(e.substring(4,m),l,l+m+3),k(m+3);continue}}if(Si.test(e)){var h=e.indexOf("]>");if(h>=0){k(h+2);continue}}var _=e.match(Di);if(_){k(_[0].length);continue}var v=e.match(ki);if(v){var g=l;k(v[0].length),S(v[1],g,l);continue}var y=D();if(y){M(y),Ai(y.tagName,e)&&k(1);continue}}var b=void 0,w=void 0,x=void 0;if(f>=0){for(w=e.slice(f);!(ki.test(w)||wi.test(w)||Mi.test(w)||Si.test(w)||(x=w.indexOf("<",1))<0);)f+=x,w=e.slice(f);b=e.substring(0,f)}f<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(wi);if(t){var n,r,a={tagName:t[1],attrs:[],start:l};for(k(t[0].length);!(n=e.match(xi))&&(r=e.match(gi)||e.match(vi));)r.start=l,k(r[0].length),r.end=l,a.attrs.push(r);if(n)return a.unarySlash=n[1],k(n[0].length),a.end=l,a}}function M(e){var n=e.tagName,l=e.unarySlash;i&&("p"===r&&_i(n)&&S(r),s(n)&&r===n&&S(n));for(var c=o(n)||!!l,u=e.attrs.length,d=new Array(u),p=0;p<u;p++){var f=e.attrs[p],m=f[3]||f[4]||f[5]||"",h="a"===n&&"href"===f[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;d[p]={name:f[1],value:Pi(m,h)}}c||(a.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:d,start:e.start,end:e.end}),r=n),t.start&&t.start(n,d,c,e.start,e.end)}function S(e,n,i){var o,s;if(null==n&&(n=l),null==i&&(i=l),e)for(s=e.toLowerCase(),o=a.length-1;o>=0&&a[o].lowerCasedTag!==s;o--);else o=0;if(o>=0){for(var c=a.length-1;c>=o;c--)t.end&&t.end(a[c].tag,n,i);a.length=o,r=o&&a[o-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,i):"p"===s&&(t.start&&t.start(e,[],!1,n,i),t.end&&t.end(e,n,i))}S()}(e,{warn:Yi,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,i,o,u,d){var p=r&&r.ns||Hi(e);J&&"svg"===p&&(i=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];uo.test(r.name)||(r.name=r.name.replace(po,""),t.push(r))}return t}(i));var f,m=ro(e,i,r);p&&(m.ns=p),"style"!==(f=m).tag&&("script"!==f.tag||f.attrsMap.type&&"text/javascript"!==f.attrsMap.type)||ae()||(m.forbidden=!0);for(var h=0;h<Ni.length;h++)m=Ni[h](m,t)||m;s||(function(e){null!=Pr(e,"v-pre")&&(e.pre=!0)}(m),m.pre&&(s=!0)),Fi(m.tag)&&(l=!0),s?function(e){var t=e.attrsList,n=t.length;if(n)for(var r=e.attrs=new Array(n),a=0;a<n;a++)r[a]={name:t[a].name,value:JSON.stringify(t[a].value)},null!=t[a].start&&(r[a].start=t[a].start,r[a].end=t[a].end);else e.pre||(e.plain=!0)}(m):m.processed||(io(m),function(e){var t=Pr(e,"v-if");if(t)e.if=t,oo(e,{exp:t,block:e});else{null!=Pr(e,"v-else")&&(e.else=!0);var n=Pr(e,"v-else-if");n&&(e.elseif=n)}}(m),function(e){null!=Pr(e,"v-once")&&(e.once=!0)}(m)),n||(n=m),o?c(m):(r=m,a.push(m))},end:function(e,t,n){var i=a[a.length-1];a.length-=1,r=a[a.length-1],c(i)},chars:function(e,t,n){if(r&&(!J||"textarea"!==r.tag||r.attrsMap.placeholder!==e)){var a,c,u,d=r.children;(e=l||e.trim()?"script"===(a=r).tag||"style"===a.tag?e:to(e):d.length?o?"condense"===o&&Qi.test(e)?"":" ":i?" ":"":"")&&(l||"condense"!==o||(e=e.replace(eo," ")),!s&&" "!==e&&(c=function(e,t){var n=t?di(t):ci;if(n.test(e)){for(var r,a,i,o=[],s=[],l=n.lastIndex=0;r=n.exec(e);){(a=r.index)>l&&(s.push(i=e.slice(l,a)),o.push(JSON.stringify(i)));var c=kr(r[1].trim());o.push("_s("+c+")"),s.push({"@binding":c}),l=a+r[0].length}return l<e.length&&(s.push(i=e.slice(l)),o.push(JSON.stringify(i))),{expression:o.join("+"),tokens:s}}}(e,$i))?u={type:2,expression:c.expression,tokens:c.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};r.children.push(a)}}}),n}(e.trim(),t);!1!==t.optimize&&function(e,t){e&&(mo=go(t.staticKeys||""),ho=t.isReservedTag||j,function e(t){if(t.static=function(e){return 2!==e.type&&(3===e.type||!(!e.pre&&(e.hasBindings||e.if||e.for||_(e.tag)||!ho(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(mo))))}(t),1===t.type){if(!ho(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n<r;n++){var a=t.children[n];e(a),a.static||(t.static=!1)}if(t.ifConditions)for(var i=1,o=t.ifConditions.length;i<o;i++){var s=t.ifConditions[i].block;e(s),s.static||(t.static=!1)}}}(e),function e(t,n){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=n),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var r=0,a=t.children.length;r<a;r++)e(t.children[r],n||!!t.for);if(t.ifConditions)for(var i=1,o=t.ifConditions.length;i<o;i++)e(t.ifConditions[i].block,n)}}(e,!1))}(n,t);var r=Oo(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(e){function t(t,n){var r=Object.create(e),a=[],i=[];if(n)for(var o in n.modules&&(r.modules=(e.modules||[]).concat(n.modules)),n.directives&&(r.directives=T(Object.create(e.directives||null),n.directives)),n)"modules"!==o&&"directives"!==o&&(r[o]=n[o]);r.warn=function(e,t,n){(n?i:a).push(e)};var s=Wo(t.trim(),r);return s.errors=a,s.tips=i,s}return{compile:t,compileToFunctions:Vo(t)}})(vo),Jo=(Go.compile,Go.compileToFunctions);function Zo(e){return(Ko=Ko||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',Ko.innerHTML.indexOf(" ")>0}var Xo=!!V&&Zo(!1),Qo=!!V&&Zo(!0),es=w((function(e){var t=Gn(e);return t&&t.innerHTML})),ts=xn.prototype.$mount;xn.prototype.$mount=function(e,t){if((e=e&&Gn(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=es(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){var a=Jo(r,{outputSourceRange:!1,shouldDecodeNewlines:Xo,shouldDecodeNewlinesForHref:Qo,delimiters:n.delimiters,comments:n.comments},this),i=a.render,o=a.staticRenderFns;n.render=i,n.staticRenderFns=o}}return ts.call(this,e,t)},xn.compile=Jo,e.exports=xn}).call(this,n("yLpj"),n("URgk").setImmediate)},Ioao:function(e,t,n){var r=n("heNW"),a=Math.max;e.exports=function(e,t,n){return t=a(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=a(i.length-t,0),l=Array(s);++o<s;)l[o]=i[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=i[o];return c[t]=n(l),r(e,this,c)}}},IvQ4:function(e,t,n){var r=n("RSDI");"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,a);r.locals&&(e.exports=r.locals)},"Ivi+":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("wd/R"))},J78i:function(e,t,n){"use strict";e.exports=o;var r=n("sZro"),a=Object.create(n("Onz0"));function i(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function o(e){if(!(this instanceof o))return new o(e);r.call(this,e),this._transformState={afterTransform:i.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){l(e,t,n)})):l(this,null,null)}function l(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}a.inherits=n("P7XM"),a.inherits(o,r),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var a=this._readableState;(r.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},o.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},"JCF/":function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:r,monthsShort:r,weekdays:"یهكشهممه_دووشهممه_سێشهممه_چوارشهممه_پێنجشهممه_ههینی_شهممه".split("_"),weekdaysShort:"یهكشهم_دووشهم_سێشهم_چوارشهم_پێنجشهم_ههینی_شهممه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره|بهیانی/,isPM:function(e){return/ئێواره/.test(e)},meridiem:function(e,t,n){return e<12?"بهیانی":"ئێواره"},calendar:{sameDay:"[ئهمرۆ كاتژمێر] LT",nextDay:"[بهیانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له %s",past:"%s",s:"چهند چركهیهك",ss:"چركه %d",m:"یهك خولهك",mm:"%d خولهك",h:"یهك كاتژمێر",hh:"%d كاتژمێر",d:"یهك ڕۆژ",dd:"%d ڕۆژ",M:"یهك مانگ",MM:"%d مانگ",y:"یهك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n("wd/R"))},JEQr:function(e,t,n){"use strict";(function(t){var r=n("xTJ+"),a=n("yK9s"),i={"Content-Type":"application/x-www-form-urlencoded"};function o(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,l={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(s=n("tQ2B")),s),transformRequest:[function(e,t){return a(t,"Accept"),a(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)?(o(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(o(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}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(i)})),e.exports=l}).call(this,n("8oxB"))},JHRd:function(e,t,n){var r=n("Kz5y").Uint8Array;e.exports=r},JHgL:function(e,t,n){var r=n("QkVE");e.exports=function(e){return r(this,e).get(e)}},JO1w:function(e,t,n){"use strict";n.r(t);var r=n("qDvH"),a=n("ozpq"),i={addClass:function(e,t){e.classList?e.classList.add(t):e.className+=" "+t},hasClass:function(e,t){var n=e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className);return n},formatMoney:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t||(t={precision:2,thousand_separator:",",decimal_separator:".",symbol:"$"}),e/=100;var n=t,r=n.precision,a=n.decimal_separator,i=n.thousand_separator,o=n.symbol;try{r=Math.abs(r),r=isNaN(r)?2:r;var s=e<0?"-":"",l=parseInt(e=Math.abs(Number(e)||0).toFixed(r)).toString(),c=l.length>3?l.length%3:0,u='<span style="font-family: sans-serif">'.concat(o,"</span>");return u+" "+s+(c?l.substr(0,c)+i:"")+l.substr(c).replace(/(\d{3})(?=\d)/g,"$1"+i)+(r?a+Math.abs(e-l).toFixed(r).slice(2):"")}catch(e){console.log(e)}},formatGraphMoney:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t||(t={precision:2,thousand_separator:",",decimal_separator:".",symbol:"$"}),e/=100;var n=t,r=n.precision,a=n.decimal_separator,i=n.thousand_separator,o=n.symbol;try{r=Math.abs(r),r=isNaN(r)?2:r;var s=e<0?"-":"",l=parseInt(e=Math.abs(Number(e)||0).toFixed(r)).toString(),c=l.length>3?l.length%3:0,u="".concat(o);return u+" "+s+(c?l.substr(0,c)+i:"")+l.substr(c).replace(/(\d{3})(?=\d)/g,"$1"+i)+(r?a+Math.abs(e-l).toFixed(r).slice(2):"")}catch(e){console.log(e)}},checkValidUrl:function(e){return!!(e.includes("http://localhost")||e.includes("http://127.0.0.1")||e.includes("https://localhost")||e.includes("https://127.0.0.1"))||!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)},checkValidDomainUrl:function(e){return!!e.includes("localhost")||!!new RegExp("^([0-9A-Za-z-\\.@:%_+~#=]+)+((\\.[a-zA-Z]{2,3})+)(/(.)*)?(\\?(.)*)?").test(e)},fallbackCopyTextToClipboard:function(e){var t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{var n=document.execCommand("copy")?"successful":"unsuccessful";console.log("Fallback: Copying text command was "+n)}catch(e){console.error("Fallback: Oops, unable to copy",e)}document.body.removeChild(t)},copyTextToClipboard:function(e){navigator.clipboard?navigator.clipboard.writeText(e).then((function(){return!0}),(function(e){return!1})):this.fallbackCopyTextToClipboard(e)},arrayDifference:function(e,t){return e.filter((function(e){return t.indexOf(e)<0}))},getBadgeStatusColor:function(e){switch(e){case"DRAFT":return{bgColor:"#F8EDCB",color:"#744210"};case"PAID":return{bgColor:"#D5EED0",color:"#276749"};case"UNPAID":return{bgColor:"#F8EDC",color:"#744210"};case"SENT":return{bgColor:"rgba(246, 208, 154, 0.4)",color:"#975a16"};case"REJECTED":return{bgColor:"#E1E0EA",color:"#1A1841"};case"ACCEPTED":return{bgColor:"#D5EED0",color:"#276749"};case"VIEWED":return{bgColor:"#C9E3EC",color:"#2c5282"};case"EXPIRED":return{bgColor:"#FED7D7",color:"#c53030"};case"PARTIALLY PAID":return{bgColor:"#C9E3EC",color:"#2c5282"};case"OVERDUE":return{bgColor:"#FED7D7",color:"#c53030"};case"COMPLETED":return{bgColor:"#D5EED0",color:"#276749"};case"DUE":return{bgColor:"#F8EDCB",color:"#744210"};case"YES":return{bgColor:"#D5EED0",color:"#276749"};case"NO":return{bgColor:"#FED7D7",color:"#c53030"}}},compareVersion:function(e,t,n){var r=n&&n.lexicographical,a=n&&n.zeroExtend,i=e.split("."),o=t.split(".");function s(e){return(r?/^\d+[A-Za-z]*$/:/^\d+$/).test(e)}if(!i.every(s)||!o.every(s))return NaN;if(a){for(;i.length<o.length;)i.push("0");for(;o.length<i.length;)o.push("0")}r||(i=i.map(Number),o=o.map(Number));for(var l=0;l<i.length;++l){if(o.length==l)return 1;if(i[l]!=o[l])return i[l]>o[l]?1:-1}return i.length!=o.length?-1:0}},o=n("XuX8"),s=n.n(o),l=["style","currency","currencyDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","localeMatcher","formatMatcher","unit"];function c(e,t){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+e),t&&console.warn(t.stack))}var u=Array.isArray;function d(e){return null!==e&&"object"==typeof e}function p(e){return"string"==typeof e}var f=Object.prototype.toString;function m(e){return"[object Object]"===f.call(e)}function h(e){return null==e}function _(e){return"function"==typeof e}function v(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=null,r=null;return 1===e.length?d(e[0])||u(e[0])?r=e[0]:"string"==typeof e[0]&&(n=e[0]):2===e.length&&("string"==typeof e[0]&&(n=e[0]),(d(e[1])||u(e[1]))&&(r=e[1])),{locale:n,params:r}}function g(e){return JSON.parse(JSON.stringify(e))}function y(e,t){return!!~e.indexOf(t)}var b=Object.prototype.hasOwnProperty;function w(e,t){return b.call(e,t)}function x(e){for(var t=arguments,n=Object(e),r=1;r<arguments.length;r++){var a=t[r];if(null!=a){var i=void 0;for(i in a)w(a,i)&&(d(a[i])?n[i]=x(n[i],a[i]):n[i]=a[i])}}return n}function k(e,t){if(e===t)return!0;var n=d(e),r=d(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var a=u(e),i=u(t);if(a&&i)return e.length===t.length&&e.every((function(e,n){return k(e,t[n])}));if(a||i)return!1;var o=Object.keys(e),s=Object.keys(t);return o.length===s.length&&o.every((function(n){return k(e[n],t[n])}))}catch(e){return!1}}function D(e){return null!=e&&Object.keys(e).forEach((function(t){"string"==typeof e[t]&&(e[t]=e[t].replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"))})),e}var M={beforeCreate:function(){var e=this.$options;if(e.i18n=e.i18n||(e.__i18n?{}:null),e.i18n)if(e.i18n instanceof ee){if(e.__i18n)try{var t=e.i18n&&e.i18n.messages?e.i18n.messages:{};e.__i18n.forEach((function(e){t=x(t,JSON.parse(e))})),Object.keys(t).forEach((function(n){e.i18n.mergeLocaleMessage(n,t[n])}))}catch(e){0}this._i18n=e.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(m(e.i18n)){var n=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof ee?this.$root.$i18n:null;if(n&&(e.i18n.root=this.$root,e.i18n.formatter=n.formatter,e.i18n.fallbackLocale=n.fallbackLocale,e.i18n.formatFallbackMessages=n.formatFallbackMessages,e.i18n.silentTranslationWarn=n.silentTranslationWarn,e.i18n.silentFallbackWarn=n.silentFallbackWarn,e.i18n.pluralizationRules=n.pluralizationRules,e.i18n.preserveDirectiveContent=n.preserveDirectiveContent),e.__i18n)try{var r=e.i18n&&e.i18n.messages?e.i18n.messages:{};e.__i18n.forEach((function(e){r=x(r,JSON.parse(e))})),e.i18n.messages=r}catch(e){0}var a=e.i18n.sharedMessages;a&&m(a)&&(e.i18n.messages=x(e.i18n.messages,a)),this._i18n=new ee(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 ee?this._i18n=this.$root.$i18n:e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof ee&&(this._i18n=e.parent.$i18n)},beforeMount:function(){var e=this.$options;e.i18n=e.i18n||(e.__i18n?{}:null),e.i18n?(e.i18n instanceof ee||m(e.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof ee||e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof ee)&&(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)}))}}},S={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,t){var n=t.data,r=t.parent,a=t.props,i=t.slots,o=r.$i18n;if(o){var s=a.path,l=a.locale,c=a.places,u=i(),d=o.i(s,l,function(e){var t;for(t in e)if("default"!==t)return!1;return Boolean(t)}(u)||c?function(e,t){var n=t?function(e){0;return Array.isArray(e)?e.reduce(L,{}):Object.assign({},e)}(t):{};if(!e)return n;var r=(e=e.filter((function(e){return e.tag||""!==e.text.trim()}))).every(T);0;return e.reduce(r?C:L,n)}(u.default,c):u),p=a.tag&&!0!==a.tag||!1===a.tag?a.tag:"span";return p?e(p,n,d):d}}};function C(e,t){return t.data&&t.data.attrs&&t.data.attrs.place&&(e[t.data.attrs.place]=t),e}function L(e,t,n){return e[n]=t,e}function T(e){return Boolean(e.data&&e.data.attrs&&e.data.attrs.place)}var E,O={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,t){var n=t.props,r=t.parent,a=t.data,i=r.$i18n;if(!i)return null;var o=null,s=null;p(n.format)?o=n.format:d(n.format)&&(n.format.key&&(o=n.format.key),s=Object.keys(n.format).reduce((function(e,t){var r;return y(l,t)?Object.assign({},e,((r={})[t]=n.format[t],r)):e}),null));var c=n.locale||i.locale,u=i._ntp(n.value,c,o,s),f=u.map((function(e,t){var n,r=a.scopedSlots&&a.scopedSlots[e.type];return r?r(((n={})[e.type]=e.value,n.index=t,n.parts=u,n)):e.value})),m=n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";return m?e(m,{attrs:a.attrs,class:a.class,staticClass:a.staticClass},f):f}};function j(e,t,n){Y(e,n)&&$(e,t,n)}function A(e,t,n,r){if(Y(e,n)){var a=n.context.$i18n;(function(e,t){var n=t.context;return e._locale===n.$i18n.locale})(e,n)&&k(t.value,t.oldValue)&&k(e._localeMessage,a.getLocaleMessage(a.locale))||$(e,t,n)}}function P(e,t,n,r){if(n.context){var a=n.context.$i18n||{};t.modifiers.preserve||a.preserveDirectiveContent||(e.textContent=""),e._vt=void 0,delete e._vt,e._locale=void 0,delete e._locale,e._localeMessage=void 0,delete e._localeMessage}else c("Vue instance does not exists in VNode context")}function Y(e,t){var n=t.context;return n?!!n.$i18n||(c("VueI18n instance does not exists in Vue instance"),!1):(c("Vue instance does not exists in VNode context"),!1)}function $(e,t,n){var r,a,i=function(e){var t,n,r,a;p(e)?t=e:m(e)&&(t=e.path,n=e.locale,r=e.args,a=e.choice);return{path:t,locale:n,args:r,choice:a}}(t.value),o=i.path,s=i.locale,l=i.args,u=i.choice;if(o||s||l)if(o){var d=n.context;e._vt=e.textContent=null!=u?(r=d.$i18n).tc.apply(r,[o,u].concat(I(s,l))):(a=d.$i18n).t.apply(a,[o].concat(I(s,l))),e._locale=d.$i18n.locale,e._localeMessage=d.$i18n.getLocaleMessage(d.$i18n.locale)}else c("`path` is required in v-t directive");else c("value type not supported")}function I(e,t){var n=[];return e&&n.push(e),t&&(Array.isArray(t)||m(t))&&n.push(t),n}function N(e){N.installed=!0;(E=e).version&&Number(E.version.split(".")[0]);(function(e){e.prototype.hasOwnProperty("$i18n")||Object.defineProperty(e.prototype,"$i18n",{get:function(){return this._i18n}}),e.prototype.$t=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this.$i18n;return r._t.apply(r,[e,r.locale,r._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];var a=this.$i18n;return a._tc.apply(a,[e,a.locale,a._getMessages(),this,t].concat(n))},e.prototype.$te=function(e,t){var n=this.$i18n;return n._te(e,n.locale,n._getMessages(),t)},e.prototype.$d=function(e){for(var t,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(t=this.$i18n).d.apply(t,[e].concat(n))},e.prototype.$n=function(e){for(var t,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(t=this.$i18n).n.apply(t,[e].concat(n))}})(E),E.mixin(M),E.directive("t",{bind:j,update:A,unbind:P}),E.component(S.name,S),E.component(O.name,O),E.config.optionMergeStrategies.i18n=function(e,t){return void 0===t?e:t}}var z=function(){this._caches=Object.create(null)};z.prototype.interpolate=function(e,t){if(!t)return[e];var n=this._caches[e];return n||(n=function(e){var t=[],n=0,r="";for(;n<e.length;){var a=e[n++];if("{"===a){r&&t.push({type:"text",value:r}),r="";var i="";for(a=e[n++];void 0!==a&&"}"!==a;)i+=a,a=e[n++];var o="}"===a,s=F.test(i)?"list":o&&R.test(i)?"named":"unknown";t.push({value:i,type:s})}else"%"===a?"{"!==e[n]&&(r+=a):r+=a}return r&&t.push({type:"text",value:r}),t}(e),this._caches[e]=n),function(e,t){var n=[],r=0,a=Array.isArray(t)?"list":d(t)?"named":"unknown";if("unknown"===a)return n;for(;r<e.length;){var i=e[r];switch(i.type){case"text":n.push(i.value);break;case"list":n.push(t[parseInt(i.value,10)]);break;case"named":"named"===a&&n.push(t[i.value]);break;case"unknown":0}r++}return n}(n,t)};var F=/^(?:\d)+/,R=/^(?:\w)+/;var H=[];H[0]={ws:[0],ident:[3,0],"[":[4],eof:[7]},H[1]={ws:[1],".":[2],"[":[4],eof:[7]},H[2]={ws:[2],ident:[3,0],0:[3,0],number:[3,0]},H[3]={ident:[3,0],0:[3,0],number:[3,0],ws:[1,1],".":[2,1],"[":[4,1],eof:[7,1]},H[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],eof:8,else:[4,0]},H[5]={"'":[4,0],eof:8,else:[5,0]},H[6]={'"':[4,0],eof:8,else:[6,0]};var B=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function q(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 U(e){var t,n,r,a=e.trim();return("0"!==e.charAt(0)||!isNaN(e))&&(r=a,B.test(r)?(n=(t=a).charCodeAt(0))!==t.charCodeAt(t.length-1)||34!==n&&39!==n?t:t.slice(1,-1):"*"+a)}var V=function(){this._cache=Object.create(null)};V.prototype.parsePath=function(e){var t=this._cache[e];return t||(t=function(e){var t,n,r,a,i,o,s,l=[],c=-1,u=0,d=0,p=[];function f(){var t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,r="\\"+t,p[0](),!0}for(p[1]=function(){void 0!==n&&(l.push(n),n=void 0)},p[0]=function(){void 0===n?n=r:n+=r},p[2]=function(){p[0](),d++},p[3]=function(){if(d>0)d--,u=4,p[0]();else{if(d=0,void 0===n)return!1;if(!1===(n=U(n)))return!1;p[1]()}};null!==u;)if(c++,"\\"!==(t=e[c])||!f()){if(a=q(t),8===(i=(s=H[u])[a]||s.else||8))return;if(u=i[0],(o=p[i[1]])&&(r=void 0===(r=i[2])?t:r,!1===o()))return;if(7===u)return l}}(e))&&(this._cache[e]=t),t||[]},V.prototype.getPathValue=function(e,t){if(!d(e))return null;var n=this.parsePath(t);if(0===n.length)return null;for(var r=n.length,a=e,i=0;i<r;){var o=a[n[i]];if(void 0===o)return null;a=o,i++}return a};var W,K=/<\/?[\w\s="/.':;#-\/]+>/,G=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|.]+|\([\w\-_|.]+\)))/g,J=/^@(?:\.([a-z]+))?:/,Z=/[()]/g,X={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},Q=new z,ee=function(e){var t=this;void 0===e&&(e={}),!E&&"undefined"!=typeof window&&window.Vue&&N(window.Vue);var n=e.locale||"en-US",r=!1!==e.fallbackLocale&&(e.fallbackLocale||"en-US"),a=e.messages||{},i=e.dateTimeFormats||{},o=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||Q,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new V,this._dataListeners=[],this._componentInstanceCreatedListener=e.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._postTranslation=e.postTranslation||null,this._escapeParameterHtml=e.escapeParameterHtml||!1,this.getChoiceIndex=function(e,n){var r=Object.getPrototypeOf(t);if(r&&r.getChoiceIndex)return r.getChoiceIndex.call(t,e,n);var a,i;return t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[e,n]):(a=e,i=n,a=Math.abs(a),2===i?a?a>1?1:0:1:a?Math.min(a,2):0)},this._exist=function(e,n){return!(!e||!n)&&(!h(t._path.getPathValue(e,n))||!!e[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(a).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,a[e])})),this._initVM({locale:n,fallbackLocale:r,messages:a,dateTimeFormats:i,numberFormats:o})},te={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}};ee.prototype._checkLocaleMessage=function(e,t,n){var r=function(e,t,n,a){if(m(n))Object.keys(n).forEach((function(i){var o=n[i];m(o)?(a.push(i),a.push("."),r(e,t,o,a),a.pop(),a.pop()):(a.push(i),r(e,t,o,a),a.pop())}));else if(u(n))n.forEach((function(n,i){m(n)?(a.push("["+i+"]"),a.push("."),r(e,t,n,a),a.pop(),a.pop()):(a.push("["+i+"]"),r(e,t,n,a),a.pop())}));else if(p(n)){if(K.test(n)){var i="Detected HTML in message '"+n+"' of keypath '"+a.join("")+"' at '"+t+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===e?c(i):"error"===e&&function(e,t){"undefined"!=typeof console&&(console.error("[vue-i18n] "+e),t&&console.error(t.stack))}(i)}}};r(t,e,n,[])},ee.prototype._initVM=function(e){var t=E.config.silent;E.config.silent=!0,this._vm=new E({data:e}),E.config.silent=t},ee.prototype.destroyVM=function(){this._vm.$destroy()},ee.prototype.subscribeDataChanging=function(e){this._dataListeners.push(e)},ee.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)},ee.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){for(var t=e._dataListeners.length;t--;)E.nextTick((function(){e._dataListeners[t]&&e._dataListeners[t].$forceUpdate()}))}),{deep:!0})},ee.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})},ee.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)},te.vm.get=function(){return this._vm},te.messages.get=function(){return g(this._getMessages())},te.dateTimeFormats.get=function(){return g(this._getDateTimeFormats())},te.numberFormats.get=function(){return g(this._getNumberFormats())},te.availableLocales.get=function(){return Object.keys(this.messages).sort()},te.locale.get=function(){return this._vm.locale},te.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},te.fallbackLocale.get=function(){return this._vm.fallbackLocale},te.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)},te.formatFallbackMessages.get=function(){return this._formatFallbackMessages},te.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},te.missing.get=function(){return this._missing},te.missing.set=function(e){this._missing=e},te.formatter.get=function(){return this._formatter},te.formatter.set=function(e){this._formatter=e},te.silentTranslationWarn.get=function(){return this._silentTranslationWarn},te.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},te.silentFallbackWarn.get=function(){return this._silentFallbackWarn},te.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},te.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},te.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},te.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},te.warnHtmlInMessage.set=function(e){var t=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,n!==e&&("warn"===e||"error"===e)){var r=this._getMessages();Object.keys(r).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,r[e])}))}},te.postTranslation.get=function(){return this._postTranslation},te.postTranslation.set=function(e){this._postTranslation=e},ee.prototype._getMessages=function(){return this._vm.messages},ee.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},ee.prototype._getNumberFormats=function(){return this._vm.numberFormats},ee.prototype._warnDefault=function(e,t,n,r,a,i){if(!h(n))return n;if(this._missing){var o=this._missing.apply(null,[e,t,r,a]);if(p(o))return o}else 0;if(this._formatFallbackMessages){var s=v.apply(void 0,a);return this._render(t,i,s.params,t)}return t},ee.prototype._isFallbackRoot=function(e){return!e&&!h(this._root)&&this._fallbackRoot},ee.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},ee.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},ee.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},ee.prototype._interpolate=function(e,t,n,r,a,i,o){if(!t)return null;var s,l=this._path.getPathValue(t,n);if(u(l)||m(l))return l;if(h(l)){if(!m(t))return null;if(!p(s=t[n])&&!_(s))return null}else{if(!p(l)&&!_(l))return null;s=l}return p(s)&&(s.indexOf("@:")>=0||s.indexOf("@.")>=0)&&(s=this._link(e,t,s,r,"raw",i,o)),this._render(s,a,i,n)},ee.prototype._link=function(e,t,n,r,a,i,o){var s=n,l=s.match(G);for(var c in l)if(l.hasOwnProperty(c)){var d=l[c],p=d.match(J),f=p[0],m=p[1],h=d.replace(f,"").replace(Z,"");if(y(o,h))return s;o.push(h);var _=this._interpolate(e,t,h,r,"raw"===a?"string":a,"raw"===a?void 0:i,o);if(this._isFallbackRoot(_)){if(!this._root)throw Error("unexpected error");var v=this._root.$i18n;_=v._translate(v._getMessages(),v.locale,v.fallbackLocale,h,r,a,i)}_=this._warnDefault(e,h,_,r,u(i)?i:[i],a),this._modifiers.hasOwnProperty(m)?_=this._modifiers[m](_):X.hasOwnProperty(m)&&(_=X[m](_)),o.pop(),s=_?s.replace(d,_):s}return s},ee.prototype._createMessageContext=function(e){var t=u(e)?e:[],n=d(e)?e:{};return{list:function(e){return t[e]},named:function(e){return n[e]}}},ee.prototype._render=function(e,t,n,r){if(_(e))return e(this._createMessageContext(n));var a=this._formatter.interpolate(e,n,r);return a||(a=Q.interpolate(e,n,r)),"string"!==t||p(a)?a:a.join("")},ee.prototype._appendItemToChain=function(e,t,n){var r=!1;return y(e,t)||(r=!0,t&&(r="!"!==t[t.length-1],t=t.replace(/!/g,""),e.push(t),n&&n[t]&&(r=n[t]))),r},ee.prototype._appendLocaleToChain=function(e,t,n){var r,a=t.split("-");do{var i=a.join("-");r=this._appendItemToChain(e,i,n),a.splice(-1,1)}while(a.length&&!0===r);return r},ee.prototype._appendBlockToChain=function(e,t,n){for(var r=!0,a=0;a<t.length&&"boolean"==typeof r;a++){var i=t[a];p(i)&&(r=this._appendLocaleToChain(e,i,n))}return r},ee.prototype._getLocaleChain=function(e,t){if(""===e)return[];this._localeChainCache||(this._localeChainCache={});var n=this._localeChainCache[e];if(!n){t||(t=this.fallbackLocale),n=[];for(var r,a=[e];u(a);)a=this._appendBlockToChain(n,a,t);(a=p(r=u(t)?t:d(t)?t.default?t.default:null:t)?[r]:r)&&this._appendBlockToChain(n,a,null),this._localeChainCache[e]=n}return n},ee.prototype._translate=function(e,t,n,r,a,i,o){for(var s,l=this._getLocaleChain(t,n),c=0;c<l.length;c++){var u=l[c];if(!h(s=this._interpolate(u,e[u],r,a,i,o,[r])))return s}return null},ee.prototype._t=function(e,t,n,r){for(var a,i=[],o=arguments.length-4;o-- >0;)i[o]=arguments[o+4];if(!e)return"";var s=v.apply(void 0,i);this._escapeParameterHtml&&(s.params=D(s.params));var l=s.locale||t,c=this._translate(n,l,this.fallbackLocale,e,r,"string",s.params);if(this._isFallbackRoot(c)){if(!this._root)throw Error("unexpected error");return(a=this._root).$t.apply(a,[e].concat(i))}return c=this._warnDefault(l,e,c,r,i,"string"),this._postTranslation&&null!=c&&(c=this._postTranslation(c,e)),c},ee.prototype.t=function(e){for(var t,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(n))},ee.prototype._i=function(e,t,n,r,a){var i=this._translate(n,t,this.fallbackLocale,e,r,"raw",a);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,a)}return this._warnDefault(t,e,i,r,[a],"raw")},ee.prototype.i=function(e,t,n){return e?(p(t)||(t=this.locale),this._i(e,t,this._getMessages(),null,n)):""},ee.prototype._tc=function(e,t,n,r,a){for(var i,o=[],s=arguments.length-5;s-- >0;)o[s]=arguments[s+5];if(!e)return"";void 0===a&&(a=1);var l={count:a,n:a},c=v.apply(void 0,o);return c.params=Object.assign(l,c.params),o=null===c.locale?[c.params]:[c.locale,c.params],this.fetchChoice((i=this)._t.apply(i,[e,t,n,r].concat(o)),a)},ee.prototype.fetchChoice=function(e,t){if(!e||!p(e))return null;var n=e.split("|");return n[t=this.getChoiceIndex(t,n.length)]?n[t].trim():e},ee.prototype.tc=function(e,t){for(var n,r=[],a=arguments.length-2;a-- >0;)r[a]=arguments[a+2];return(n=this)._tc.apply(n,[e,this.locale,this._getMessages(),null,t].concat(r))},ee.prototype._te=function(e,t,n){for(var r=[],a=arguments.length-3;a-- >0;)r[a]=arguments[a+3];var i=v.apply(void 0,r).locale||t;return this._exist(n[i],e)},ee.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},ee.prototype.getLocaleMessage=function(e){return g(this._vm.messages[e]||{})},ee.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)},ee.prototype.mergeLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,x({},this._vm.messages[e]||{},t))},ee.prototype.getDateTimeFormat=function(e){return g(this._vm.dateTimeFormats[e]||{})},ee.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t),this._clearDateTimeFormat(e,t)},ee.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,x(this._vm.dateTimeFormats[e]||{},t)),this._clearDateTimeFormat(e,t)},ee.prototype._clearDateTimeFormat=function(e,t){for(var n in t){var r=e+"__"+n;this._dateTimeFormatters.hasOwnProperty(r)&&delete this._dateTimeFormatters[r]}},ee.prototype._localizeDateTime=function(e,t,n,r,a){for(var i=t,o=r[i],s=this._getLocaleChain(t,n),l=0;l<s.length;l++){var c=s[l];if(i=c,!h(o=r[c])&&!h(o[a]))break}if(h(o)||h(o[a]))return null;var u=o[a],d=i+"__"+a,p=this._dateTimeFormatters[d];return p||(p=this._dateTimeFormatters[d]=new Intl.DateTimeFormat(i,u)),p.format(e)},ee.prototype._d=function(e,t,n){if(!n)return new Intl.DateTimeFormat(t).format(e);var r=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),n);if(this._isFallbackRoot(r)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,n,t)}return r||""},ee.prototype.d=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this.locale,a=null;return 1===t.length?p(t[0])?a=t[0]:d(t[0])&&(t[0].locale&&(r=t[0].locale),t[0].key&&(a=t[0].key)):2===t.length&&(p(t[0])&&(a=t[0]),p(t[1])&&(r=t[1])),this._d(e,r,a)},ee.prototype.getNumberFormat=function(e){return g(this._vm.numberFormats[e]||{})},ee.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t),this._clearNumberFormat(e,t)},ee.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,x(this._vm.numberFormats[e]||{},t)),this._clearNumberFormat(e,t)},ee.prototype._clearNumberFormat=function(e,t){for(var n in t){var r=e+"__"+n;this._numberFormatters.hasOwnProperty(r)&&delete this._numberFormatters[r]}},ee.prototype._getNumberFormatter=function(e,t,n,r,a,i){for(var o=t,s=r[o],l=this._getLocaleChain(t,n),c=0;c<l.length;c++){var u=l[c];if(o=u,!h(s=r[u])&&!h(s[a]))break}if(h(s)||h(s[a]))return null;var d,p=s[a];if(i)d=new Intl.NumberFormat(o,Object.assign({},p,i));else{var f=o+"__"+a;(d=this._numberFormatters[f])||(d=this._numberFormatters[f]=new Intl.NumberFormat(o,p))}return d},ee.prototype._n=function(e,t,n,r){if(!ee.availabilities.numberFormat)return"";if(!n)return(r?new Intl.NumberFormat(t,r):new Intl.NumberFormat(t)).format(e);var a=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,r),i=a&&a.format(e);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(e,Object.assign({},{key:n,locale:t},r))}return i||""},ee.prototype.n=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this.locale,a=null,i=null;return 1===t.length?p(t[0])?a=t[0]:d(t[0])&&(t[0].locale&&(r=t[0].locale),t[0].key&&(a=t[0].key),i=Object.keys(t[0]).reduce((function(e,n){var r;return y(l,n)?Object.assign({},e,((r={})[n]=t[0][n],r)):e}),null)):2===t.length&&(p(t[0])&&(a=t[0]),p(t[1])&&(r=t[1])),this._n(e,r,a,i)},ee.prototype._ntp=function(e,t,n,r){if(!ee.availabilities.numberFormat)return[];if(!n)return(r?new Intl.NumberFormat(t,r):new Intl.NumberFormat(t)).formatToParts(e);var a=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,r),i=a&&a.formatToParts(e);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,n,r)}return i||[]},Object.defineProperties(ee.prototype,te),Object.defineProperty(ee,"availabilities",{get:function(){if(!W){var e="undefined"!=typeof Intl;W={dateTimeFormat:e&&void 0!==Intl.DateTimeFormat,numberFormat:e&&void 0!==Intl.NumberFormat}}return W}}),ee.install=N,ee.version="8.22.1";var ne=ee,re=n("fcSw"),ae=n("Y+58"),ie=n("kghg"),oe=n("TwFf"),se=n("4IR+"),le=n("Jzcd"),ce=n("zTzw"),ue=n("SpYT"),de=n("5O9K"),pe=n("VlXo");s.a.use(ne);var fe=new ne({locale:"en",messages:{en:re,fr:ae,es:ie,ar:oe,de:se,pt_BR:le,it:ce,sr_LA:ue,nl:de,lv:pe}}),me=n("GUC0"),he=n.n(me);n("HijD"),window.Vue.prototype.$utils=i,window.hub=new Vue,window.i18n=fe,new Vue({router:r.a,store:a.a,i18n:fe,swal:he.a}).$mount("#app")},JSQU:function(e,t,n){var r=n("YESw");e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},JSzz:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=void 0;function a(){a.init||(a.init=!0,r=-1!==function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}())}var i={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},staticRenderFns:[],_scopeId:"data-v-b329ee4c",name:"resize-observer",methods:{compareAndNotify:function(){this._w===this.$el.offsetWidth&&this._h===this.$el.offsetHeight||(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.$emit("notify"))},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!r&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),delete this._resizeObject.onload)}},mounted:function(){var e=this;a(),this.$nextTick((function(){e._w=e.$el.offsetWidth,e._h=e.$el.offsetHeight}));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",r&&this.$el.appendChild(t),t.data="about:blank",r||this.$el.appendChild(t)},beforeDestroy:function(){this.removeResizeHandlers()}};var o={version:"0.4.5",install:function(e){e.component("resize-observer",i),e.component("ResizeObserver",i)}},s=null;"undefined"!=typeof window?s=window.Vue:void 0!==e&&(s=e.Vue),s&&s.use(o)}).call(this,n("yLpj"))},JTzB:function(e,t,n){var r=n("NykK"),a=n("ExA7");e.exports=function(e){return a(e)&&"[object Arguments]"==r(e)}},JVSJ:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},Jjj3:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)}var a=["attrs","props","domProps"],i=["class","style","directives"],o=["on","nativeOn"],s=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}};e.exports=function(e){return e.reduce((function(e,t){for(var n in t)if(e[n])if(-1!==a.indexOf(n))e[n]=r({},e[n],t[n]);else if(-1!==i.indexOf(n)){var l=e[n]instanceof Array?e[n]:[e[n]],c=t[n]instanceof Array?t[n]:[t[n]];e[n]=l.concat(c)}else if(-1!==o.indexOf(n))for(var u in t[n])if(e[n][u]){var d=e[n][u]instanceof Array?e[n][u]:[e[n][u]],p=t[n][u]instanceof Array?t[n][u]:[t[n][u]];e[n][u]=d.concat(p)}else e[n][u]=t[n][u];else if("hook"==n)for(var f in t[n])e[n][f]=e[n][f]?s(e[n][f],t[n][f]):t[n][f];else e[n]=t[n];else e[n]=t[n];return e}),{})}},JvlW:function(e,t,n){!function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?a(n)[0]:r?a(n)[1]:a(n)[2]}function r(e){return e%10==0||e>10&&e<20}function a(e){return t[e].split("_")}function i(e,t,i,o){var s=e+" ";return 1===e?s+n(0,t,i[0],o):t?s+(r(e)?a(i)[1]:a(i)[0]):o?s+a(i)[1]:s+(r(e)?a(i)[1]:a(i)[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:function(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"},ss:i,m:n,mm:i,h:n,hh:i,d:n,dd:i,M:n,MM:i,y:n,yy:i},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n("wd/R"))},Jzcd:function(e){e.exports=JSON.parse('{"navigation":{"dashboard":"Painel","customers":"Clientes","items":"Itens","invoices":"Faturas","expenses":"Despesas","estimates":"Orçamentos","payments":"Pagamentos","reports":"Relatórios","settings":"Configurações","logout":"Encerrar sessão"},"general":{"view_pdf":"Ver PDF","download_pdf":"Baixar PDF","save":"Salvar","cancel":"Cancelar","update":"Atualizar","deselect":"Desmarcar","download":"Baixar","from_date":"A partir da Data","to_date":"Até a Data","from":"De","to":"Para","sort_by":"Ordenar por","ascending":"Crescente","descending":"Descendente","subject":"Sujeita","body":"Corpo","message":"Mensagem","go_back":"Voltar","back_to_login":"Voltar ao Login","home":"Home","filter":"Filtrar","delete":"Excluir","edit":"Editar","view":"Ver","add_new_item":"Adicionar novo item","clear_all":"Limpar tudo","showing":"Mostrando","of":"de","actions":"Ações","subtotal":"Total parcial","discount":"Desconto","fixed":"Fixado","percentage":"Porcentagem","tax":"Imposto","total_amount":"Quantidade Total","bill_to":"Cobrar a","ship_to":"Envie a","due":"Vencida","draft":"Rascunho","sent":"Enviado","all":"Todos","select_all":"Selecionar tudo","choose_file":"Escolha um arquivo.","choose_template":"Escolha um modelo","choose":"Escolher","remove":"Excluir","powered_by":"Distribuído por","bytefury":"Bytefury","select_a_status":"Selecione um status","select_a_tax":"Selecione um Imposto","search":"Buscar","are_you_sure":"Tem certeza?","list_is_empty":"Lista está vazia.","no_tax_found":"Imposto não encontrado!","four_zero_four":"404","you_got_lost":"Ops! Se perdeu!","go_home":"Ir para Home","test_mail_conf":"Testar configuração de email","send_mail_successfully":"Correio enviado com sucesso","setting_updated":"Configuração atualizada com sucesso","select_state":"Selecione Estado","select_country":"Selecionar pais","select_city":"Selecionar cidade","street_1":"Rua 1","street_2":"Rua # 2","action_failed":"Ação: Falhou","retry":"Atualização falhou"},"dashboard":{"select_year":"Selecione Ano","cards":{"due_amount":"Montante devido","customers":"Clientes","invoices":"Faturas","estimates":"Orçamentos"},"chart_info":{"total_sales":"Vendas","total_receipts":"Receitas","total_expense":"Despesas","net_income":"Resultado líquido","year":"Selecione Ano"},"weekly_invoices":{"title":"Faturas Semanais"},"monthly_chart":{"title":"Vendas e Despesas"},"recent_invoices_card":{"title":"Faturas vencidas","due_on":"vencido em","customer":"Cliente","amount_due":"Valor Devido","actions":"Ações","view_all":"Ver todos"},"recent_estimate_card":{"title":"Orçamentos Recentes","date":"Data","customer":"Cliente","amount_due":"Valor Devido","actions":"Ações","view_all":"Ver todos"}},"tax_types":{"name":"Nome","description":"Descrição","percent":"Porcentagem","compound_tax":"Imposto compuesto"},"customers":{"title":"Clientes","add_customer":"Adicionar cliente","contacts_list":"Lista de clientes","name":"Nome","display_name":"Nome de exibição","primary_contact_name":"Nome do contato principal","contact_name":"Nome de Contato","amount_due":"Valor Devido","email":"Email","address":"Endereço","phone":"Telefone","website":"Site","country":"Pais","state":"Estado","city":"Cidade","zip_code":"Código postal","added_on":"Adicionado","action":"Ação","password":"Senha","street_number":"Número","primary_currency":"Moeda principal","add_new_customer":"Adicionar novo cliente","save_customer":"Salvar cliente","update_customer":"Atualizar cliente","customer":"Cliente | Clientes","new_customer":"Novo cliente","edit_customer":"Editar cliente","basic_info":"Informação basica","billing_address":"Endereço de cobrança","shipping_address":"Endereço de entrega","copy_billing_address":"Cópia de faturamento","no_customers":"Ainda não há clientes!","no_customers_found":"Clientes não encontrados!","list_of_customers":"Esta seção conterá a lista de clientes.","primary_display_name":"Nome de exibição principal","select_currency":"Selecione o tipo de moeda","select_a_customer":"Selecione um cliente","type_or_click":"Digite ou clique para selecionar","new_transaction":"Nova transação","no_matching_customers":"Não há clientes correspondentes!","phone_number":"Número de telefone","create_date":"Criar Data","confirm_delete":"Você não poderá recuperar este cliente e todas as faturas, estimativas e pagamentos relacionados. | Você não poderá recuperar esses clientes e todas as faturas, estimativas e pagamentos relacionados.","created_message":"Cliente criado com sucesso","updated_message":"Cliente atualizado com sucesso","deleted_message":"Cliente excluído com sucesso | Clientes excluídos com sucesso"},"items":{"title":"Itens","items_list":"Lista de Itens","name":"Nome","unit":"Unidade","description":"Descrição","added_on":"Adicionado","price":"Preço","date_of_creation":"Data de criação","action":"Ação","add_item":"Adicionar item","save_item":"Salvar item","update_item":"Atualizar item","item":"Item | Itens","add_new_item":"Adicionar novo item","new_item":"Novo item","edit_item":"Editar item","no_items":"Ainda não existe itens","list_of_items":"Esta seção conterá a lista de itens.","select_a_unit":"Seleciona unidade","taxes":"Impostos","item_attached_message":"Não é possível excluir um item que já está em uso.","confirm_delete":"Você não poderá recuperar este item | Você não poderá recuperar esses itens","created_message":"Item criado com sucesso","updated_message":"Item atualizado com sucesso","deleted_message":"Item excluído com sucesso | Itens Excluídos com sucesso"},"estimates":{"title":"Orçamentos","estimate":"Orçamento | Orçamentos","estimates_list":"Lista de orçamentos","days":"{dias} dias","months":"{meses} Mês","years":"{Anos} Ano","all":"Todos","paid":"Pago","unpaid":"Não pago","customer":"CLIENTE","ref_no":"NÚMERO DE REFERÊNCIA.","number":"NÚMERO","amount_due":"Valor Devido","partially_paid":"Pago parcialmente","total":"Total","discount":"Desconto","sub_total":"Subtotal","estimate_number":"Numero do Orçamento","ref_number":"Referência","contact":"Contato","add_item":"Adicionar Item","date":"Data","due_date":"Data de Vencimento","expiry_date":"Data de expiração","status":"Status","add_tax":"Adicionar Imposto","amount":"Montante","action":"Ação","notes":"Observações","tax":"Imposto","estimate_template":"Modelo de orçamento","convert_to_invoice":"Converter em fatura","mark_as_sent":"Marcar como enviado","send_estimate":"Enviar orçamento","record_payment":"Registro de pago","add_estimate":"Adicionar orçamento","save_estimate":"Salvar Orçamento","confirm_conversion":"Deseja converter este orçamento em uma fatura?","conversion_message":"Converção realizada com sucesso","confirm_send_estimate":"Este orçamento será enviado por email ao cliente","confirm_mark_as_sent":"Este orçamento será marcado como enviado","confirm_mark_as_accepted":"Este orçamento será marcado como Aceito","confirm_mark_as_rejected":"Este orçamento será marcado como Rejeitado","no_matching_estimates":"Não há orçamentos correspondentes!","mark_as_sent_successfully":"Orçamento como marcado como enviado com sucesso","send_estimate_successfully":"Orçamento enviado com sucesso","errors":{"required":"Campo obrigatório"},"accepted":"Aceito","sent":"Enviado","draft":"Rascunho","declined":"Rejeitado","new_estimate":"Novo orçamento","add_new_estimate":"Adicionar novo orçamento","update_Estimate":"Atualizar orçamento","edit_estimate":"Editar orçamento","items":"artículos","Estimate":"Orçamento | Orçamentos","add_new_tax":"Adicionar novo imposto","no_estimates":"Ainda não há orcamentos","list_of_estimates":"Esta seção contém a lista de orçamentos.","mark_as_rejected":"Marcar como rejeitado","mark_as_accepted":"Marcar como aceito","marked_as_accepted_message":"Orçamento marcado como aceito","marked_as_rejected_message":"Orçamento marcado como rejeitado","confirm_delete":"Não poderá recuperar este orçamento | Não poderá recuperar estes orçamentos","created_message":"Orçamento criado com sucesso","updated_message":"Orçamento atualizado com sucesso","deleted_message":"Orçamento excluído com sucesso | Orçamentos excluídos com sucesso","user_email_does_not_exist":"Email de usuário não existe","something_went_wrong":"Algo deu errado","item":{"title":"Titulo do item","description":"Descrição","quantity":"Quantidade","price":"Preço","discount":"Desconto","total":"Total","total_discount":"Desconto total","sub_total":"Subtotal","tax":"Imposto","amount":"Montante","select_an_item":"Escreva ou clique para selecionar um item","type_item_description":"Tipo Item Descrição (opcional)"}},"invoices":{"title":"Faturas","invoices_list":"Lista de faturas","days":"{dias} dias","months":"{meses} Mês","years":"{anos} Ano","all":"Todas","paid":"Paga","unpaid":"Não Paga","customer":"CLIENTE","paid_status":"STATUS PAGAMENTO","ref_no":"REFERÊNCIA","number":"NÚMERO","amount_due":"VALOR DEVIDO","partially_paid":"Parcialmente pago","total":"Total","discount":"Desconto","sub_total":"Subtotal","invoice":"Fatura | Faturas","invoice_number":"Número da fatura","ref_number":"Referência","contact":"Contato","add_item":"Adicionar um item","date":"Data","due_date":"Data de Vencimento","status":"Status","add_tax":"Adicionar imposto","amount":"Montante","action":"Ação","notes":"Observações","view":"Ver","send_invoice":"Enviar Fatura","invoice_template":"Modelo da Fatura","template":"Modelo","mark_as_sent":"Marcar como enviada","confirm_send_invoice":"Esta fatura será enviada por e-mail ao cliente","invoice_mark_as_sent":"Esta fatura será marcada como enviada","confirm_send":"Esta fatura será enviada por e-mail ao cliente","invoice_date":"Data da Fatura","record_payment":"Gravar Pagamento","add_new_invoice":"Adicionar Nova Fatura","update_expense":"Atualizar Despesa","edit_invoice":"Editar Fatura","new_invoice":"Nova Fatura","save_invoice":"Salvar Fatura","update_invoice":"Atualizar Fatura","add_new_tax":"Adicionar novo Imposto","no_invoices":"Ainda não há faturas!","list_of_invoices":"Esta seção conterá a lista de faturas.","select_invoice":"Selecionar Fatura","no_matching_invoices":"Não há faturas correspondentes!","mark_as_sent_successfully":"Fatura marcada como enviada com sucesso","send_invoice_successfully":"Fatura enviada com sucesso","cloned_successfully":"Fatura clonada com sucesso","clone_invoice":"Clonar fatura","confirm_clone":"Esta fatura será clonada em uma nova fatura","item":{"title":"Titulo do Item","description":"Descrição","quantity":"Quantidade","price":"Preço","discount":"Desconto","total":"Total","total_discount":"Desconto Total","sub_total":"SubTotal","tax":"Imposto","amount":"Montante","select_an_item":"Digite ou clique para selecionar um item","type_item_description":"Tipo Descrição do item (opcional)"},"payment_attached_message":"Uma das faturas selecionadas já possui um pagamento anexado. Certifique-se de excluir os pagamentos anexados primeiro, a fim de prosseguir com a remoção","confirm_delete":"Você não poderá recuperar esta fatura | Você não poderá recuperar essas faturas","created_message":"Fatura criada com sucesso","updated_message":"Fatura atualizada com sucesso","deleted_message":"Fatura excluída com sucesso | Faturas excluídas com sucesso","marked_as_sent_message":"Fatura marcada como enviada com sucesso","user_email_does_not_exist":"O email do usuário não existe","something_went_wrong":"Algo deu errado","invalid_due_amount_message":"O valor total da fatura não pode ser menor que o valor total pago para esta fatura. Atualize a fatura ou exclua os pagamentos associados para continuar."},"credit_notes":{"title":"Notas de credito","credit_notes_list":"Lista Notas de credito","credit_notes":"Notas de credito","contact":"Contato","date":"Data","amount":"Montante","action":"Ação","credit_number":"Número de crédito","notes":"Notes","confirm_delete":"Deseja excluir esta nota de crédito?","item":{"title":"Título do Item","description":"Descrição","quantity":"Quantidade","price":"Preço","discount":"Desconto","total":"Total","total_discount":"Desconto Total","sub_total":"SubTotal","tax":"Imposto"}},"payments":{"title":"Pagamentos","payments_list":"Lista de Pagamentos","record_payment":"Gravar Pagamento","customer":"Cliente","date":"Data","amount":"Montante","action":"Ação","payment_number":"Número do Pagamento","payment_mode":"Forma de Pagamento","invoice":"Fatura","note":"Observação","add_payment":"Adicionar Pagamento","new_payment":"Novo Pagamento","edit_payment":"Editar Pagamento","view_payment":"Ver Pagamento","add_new_payment":"Adicionar novo Pagamento","send_payment_receipt":"Enviar recibo de pagamento","save_payment":"Salvar Pagamento","send_payment":"Mande o pagamento","update_payment":"Atualizar Pagamento","payment":"Pagamento | Pagamentos","no_payments":"Ainda sem pagamentos!","no_matching_payments":"Não há pagamentos correspondentes!","list_of_payments":"Esta seção conterá a lista de pagamentos.","select_payment_mode":"Selecione a forma de pagamento","confirm_delete":"Você não poderá recuperar este Pagamento | Você não poderá recuperar esses Pagamentos","created_message":"Pagamento criado com sucesso","updated_message":"Pagamento atualizado com sucesso","deleted_message":"Pagamento excluído com sucesso | Pagamentos excluídos com sucesso","invalid_amount_message":"O valor do pagamento é inválido"},"expenses":{"title":"Despesas","expenses_list":"Lista de Despesas","expense_title":"Título","contact":"Contato","category":"Categoria","customer":"Cliente","from_date":"A partir da Data","to_date":"Até a Data","expense_date":"Data","description":"Descrição","receipt":"Receita","amount":"Montante","action":"Ação","note":"Observação","category_id":"Categoria","date":"Data da Despesa","add_expense":"Adicionar Despesa","add_new_expense":"Adicionar Nova Despesa","save_expense":"Salvar Despesa","update_expense":"Atualizar Despesa","download_receipt":"Baixar Receita","edit_expense":"Editar Despesa","new_expense":"Nova Despesa","expense":"Despesa | Despesas","no_expenses":"Ainda sem Despesas!","list_of_expenses":"Esta seção conterá a lista de despesas.","confirm_delete":"Você não poderá recuperar esta despesa | Você não poderá recuperar essas despesas","created_message":"Despesa criada com sucesso","updated_message":"Despesa atualizada com sucesso","deleted_message":"Despesas excluídas com sucesso | Despesas excluídas com sucesso","categories":{"categories_list":"Lista de Categorias","title":"Título","name":"Nome","description":"Descrição","amount":"Montante","actions":"Ações","add_category":"Adicionar Categoria","new_category":"Nova Categoria","category":"Categoria | Categorias","select_a_category":"Selecionar uma Categoria"}},"login":{"email":"Email","password":"Senha","forgot_password":"Esqueceu a senha?","or_signIn_with":"ou Entre com","login":"Entrar","register":"Registre-se","reset_password":"Resetar Senha","password_reset_successfully":"Senha redefinida com sucesso","enter_email":"Digite email","enter_password":"Digite a senha","retype_password":"Confirme a Senha","login_placeholder":"mail@exemplo.com"},"reports":{"title":"Relatório","from_date":"A partir da Data","to_date":"Até a Data","status":"Status","paid":"Pago","unpaid":"Não Pago","download_pdf":"Baixar PDF","view_pdf":"Ver PDF","update_report":"Atualizar Relatório","report":"Relatório | Relatórios","profit_loss":{"profit_loss":"Perda de lucro","to_date":"Até a Data","from_date":"A partir da Data","date_range":"Selecionar período"},"sales":{"sales":"Vendas","date_range":"Selecionar período","to_date":"Até a Data","from_date":"A partir da Data","report_type":"Tipo de Relatório"},"taxes":{"taxes":"Impostos","to_date":"Até a Data","from_date":"A partir da Data","date_range":"Selecionar período"},"errors":{"required":"Campo obrigatório"},"invoices":{"invoice":"Fatura","invoice_date":"Data da Fatura","due_date":"Data de Vencimento","amount":"Montante","contact_name":"Nome de Contato","status":"Status"},"estimates":{"estimate":"Orçamento","estimate_date":"Data do Orçamento","due_date":"Data de Vencimento","estimate_number":"Número do Orçamento","ref_number":"Referência","amount":"Montante","contact_name":"Nome de Contato","status":"Status"},"expenses":{"expenses":"Despesas","category":"Categoria","date":"Data","amount":"Montante","to_date":"Até a Data","from_date":"A partir da Data","date_range":"Selecionar período"}},"settings":{"menu_title":{"account_settings":"Configurações da conta","company_information":"Informações da Empresa","customization":"Personalizar","preferences":"Preferências","notifications":"Notificações","tax_types":"Tipos de Impostos","expense_category":"Categorias de Despesas","update_app":"Atualizar Aplicativo","custom_fields":"Os campos personalizados"},"title":"Configurações","setting":"Configuração | Configurações","general":"Geral","language":"Idioma","primary_currency":"Moéda Principal","timezone":"Fuso horário","date_format":"Formato de data","currencies":{"title":"Moedas","currency":"Moeda | Moedas","currencies_list":"Moedas","select_currency":"Selecione uma Moeda","name":"Nome","code":"Código","symbol":"Símbolo","precision":"Precisão","thousand_separator":"Separador de Milhar","decimal_separator":"Separador Decimal","position":"Posição","position_of_symbol":"Posição do Símbolo","right":"Direita","left":"Esquerda","action":"Ação","add_currency":"Adicionar Moeda"},"mail":{"host":"Host de Email","port":"Porta de Email","driver":"Mail Driver","secret":"Segredo","mailgun_secret":"Mailgun Segredo","mailgun_domain":"Domínio","mailgun_endpoint":"Mailgun Endpoint","ses_secret":"SES Segredo","ses_key":"SES Chave","password":"Senha do Email","username":"Nome de Usuário do Email","mail_config":"Configuração de Email","from_name":"Do Nome de Email","from_mail":"Do Endereço de Email","encryption":"Criptografia de Email","mail_config_desc":"Abaixo está o formulário para configurar o driver de email para enviar emails do aplicativo. Você também pode configurar provedores de terceiros como Sendgrid, SES etc."},"pdf":{"title":"Configurações de PDF","footer_text":"Texto do Rodapé","pdf_layout":"Layout de PDF"},"company_info":{"company_info":"Informação da Empresa","company_name":"Nome da Empresa","company_logo":"Logotipo da Empresa","section_description":"Informações sobre sua empresa que serão exibidas em Faturas, Orçamentos e outros documentos criados pela Crater.","phone":"Telefone","country":"Pais","state":"Estado","city":"Cidade","address":"Endereço","zip":"CEP","save":"Salvar","updated_message":"Informações da Empresa atualizadas com sucesso"},"custom_fields":{"title":"Os campos personalizados","add_custom_field":"Adicionar campo personalizado","edit_custom_field":"Editar campo personalizado","field_name":"Nome do campo","type":"Tipo","name":"Nome","required":"Requeridas","label":"Rótulo","placeholder":"Placeholder","help_text":"Texto de ajuda","default_value":"Valor padrão","prefix":"Prefixo","starting_number":"Número inicial","model":"Modelo","help_text_description":"Digite algum texto para ajudar os usuários a entender a finalidade desse campo personalizado.","suffix":"Sufixo","yes":"sim","no":"Não","order":"Ordem","custom_field_confirm_delete":"Você não poderá recuperar este campo personalizado","already_in_use":"O campo personalizado já está em uso","deleted_message":"Campo personalizado excluído com sucesso","options":"opções","add_option":"Adicionar opções","add_another_option":"Adicione outra opção","sort_in_alphabetical_order":"Classificar em ordem alfabética","add_options_in_bulk":"Adicionar opções em massa","use_predefined_options":"Use Predefined Options","select_custom_date":"Selecionar data personalizada","select_relative_date":"Selecionar data relativa","ticked_by_default":"Marcado por padrão","updated_message":"Campo personalizado atualizado com sucesso","added_message":"Campo personalizado adicionado com sucesso"},"customization":{"customization":"Personalizar","save":"Salvar","addresses":{"title":"Endereço","section_description":"Você pode definir o endereço de cobrança do cliente e o formato do endereço de entrega do cliente (exibido apenas em PDF).","customer_billing_address":"Endereço de Cobrança do Cliente","customer_shipping_address":"Endereço de Entrega do Cliente","company_address":"Endereço da Empresa","insert_fields":"Inserir Campos","contact":"Contato","address":"Endereço","display_name":"Nome em Exibição","primary_contact_name":"Nome do Contato Principal","email":"Email","website":"Website","name":"Nome","country":"Pais","state":"Estado","city":"Cidade","company_name":"Nome da Empresa","address_street_1":"Endereço Rua 1","address_street_2":"Endereço Rua 2","phone":"Telefone","zip_code":"CEP","address_setting_updated":"Configuração de Endereço Atualizada com Sucesso"},"updated_message":"Informações da Empresa atualizadas com sucesso","invoices":{"title":"Faturas","notes":"Notas","invoice_prefix":"Fatura Prefixo","invoice_settings":"Configrações da Fatura","autogenerate_invoice_number":"Gerar automaticamente o número da Fatura","invoice_setting_description":"Desative isso, se você não deseja gerar automaticamente números da Fatura sempre que criar uma nova.","enter_invoice_prefix":"Digite o prefixo da Fatura","terms_and_conditions":"Termos e Condições","invoice_setting_updated":"Configuração da Fatura atualizada com sucesso"},"estimates":{"title":"Orçamentos","estimate_prefix":"Orçamento Prefixo","estimate_settings":"Configurações do Orçamento","autogenerate_estimate_number":"Gerar automaticamente o número do Orçamento","estimate_setting_description":"Desative isso, se você não deseja gerar automaticamente números do Orçamento sempre que criar um novo.","enter_estimate_prefix":"Digite o prefixo do Orçamento","estimate_setting_updated":"Configuração do Orçamento atualizada com sucesso"},"payments":{"title":"Pagamentos","payment_prefix":"Pagamento Prefixo","payment_settings":"Configurações de Pagamento","autogenerate_payment_number":"Gerar automaticamente número do Pagamento","payment_setting_description":"Desative isso, se você não deseja gerar automaticamente números do Pagamento sempre que criar um novo.","enter_payment_prefix":"Digite o Prefixo do Pagamento","payment_setting_updated":"Configurações de Pagamento atualizada com sucesso","payment_mode":"Modo de pagamento","add_payment_mode":"Adicionar modo de pagamento","edit_payment_mode":"Editar modo de pagamento","mode_name":"Nome do modo","payment_mode_added":"Modo de pagamento adicionado","payment_mode_updated":"Modo de pagamento atualizado","payment_mode_confirm_delete":"Você não poderá recuperar este modo de pagamento","already_in_use":"O modo de pagamento já está em uso","deleted_message":"Modo de pagamento excluído com sucesso"},"items":{"title":"Itens","units":"unidades","add_item_unit":"Adicionar unidade de item","edit_item_unit":"Editar unidade de item","unit_name":"Nome da unidade","item_unit_added":"Item Unit Added","item_unit_updated":"Item Unit Updated","item_unit_confirm_delete":"Você não poderá recuperar esta unidade de item","already_in_use":"A unidade do item já está em uso","deleted_message":"Unidade de item excluída com sucesso"}},"account_settings":{"profile_picture":"Foto do Perfil","name":"Nome","email":"Email","password":"Senha","confirm_password":"Confirmar Senha","account_settings":"Configurações da conta","save":"Salvar","section_description":"Você pode atualizar seu nome, email e senha usando o formulário abaixo.","updated_message":"Configurações da conta atualizadas com sucesso"},"user_profile":{"name":"Nome","email":"Email","password":"Password","confirm_password":"Confirmar Senha"},"notification":{"title":"Notificação","email":"Enviar Notificações para","description":"Quais notificações por email você gostaria de receber quando algo mudar?","invoice_viewed":"Fatura Visualizada","invoice_viewed_desc":"Quando o seu cliente visualiza uma Fatura enviada pelo painel do Crater.","estimate_viewed":"Orçamento Visualizado","estimate_viewed_desc":"Quando o seu cliente visualiza um Orçamento enviada pelo painel do Crater.","save":"Salvar","email_save_message":"E-mail salvo com sucesso","please_enter_email":"Por favor digite um E-mail"},"tax_types":{"title":"Tipos de Impostos","add_tax":"Adicionar Imposto","edit_tax":"Editar imposto","description":"Você pode adicionar ou remover impostos conforme desejar. O Crater suporta impostos sobre itens individuais e também na Fatura.","add_new_tax":"Adicionar Novo Imposto","tax_settings":"Configurações de Impostos","tax_per_item":"Imposto por Item","tax_name":"Nome do Imposto","compound_tax":"Imposto Composto","percent":"Porcentagem","action":"Ação","tax_setting_description":"Habilite isso se desejar adicionar Impostos a itens da Fatura Idividualmente. Por padrão, os impostos são adicionados diretamente à Fatura.","created_message":"Tipo de Imposto criado com sucesso","updated_message":"Tipo de Imposto Atualizado com sucesso","deleted_message":"Tipo de Imposto Deletado com sucesso","confirm_delete":"Você não poderá recuperar este tipo de Imposto","already_in_use":"O Imposto já está em uso"},"expense_category":{"title":"Categoria de Despesa","action":"Ação","description":"As Categorias são necessárias para adicionar entradas de Despesas. Você pode adicionar ou remover essas Categorias de acordo com sua preferência.","add_new_category":"Adicionar Nova Categoria","add_category":"Adicionar categoria","edit_category":"Editar categoria","category_name":"Nome da Categoria","category_description":"Descrição","created_message":"Categoria de Despesa criada com sucesso","deleted_message":"Categoria de Despesa excluída com sucesso","updated_message":"Categoria de Despesa atualizada com sucesso","confirm_delete":"Você não poderá recuperar esta Categoria de Despesa","already_in_use":"A categoria já está em uso"},"preferences":{"currency":"Moeda","language":"Idioma","time_zone":"Fuso Horário","fiscal_year":"Ano Financeiro","date_format":"Formato da Data","discount_setting":"Configuração de Desconto","discount_per_item":"Desconto por Item ","discount_setting_description":"Habilite isso se desejar adicionar desconto a itens de Fatura individualmente. Por padrão, o desconto é adicionado diretamente à Fatura.","save":"Salvar","preference":"Preferência | Preferências","general_settings":"Preferências padrão para o sistema.","updated_message":"Preferências atualizadas com sucesso","select_language":"Selecione um Idioma","select_time_zone":"Selecione um fuso horário","select_date_formate":"Selecione um formato de data","select_financial_year":"Selecione o ano financeiro"},"update_app":{"title":"Atualizar Aplicativo","description":"Você pode atualizar facilmente o Crater, verifique se hà novas atualizações, clicando no botão abaixo","check_update":"Verifique se há atualizações","avail_update":"Nova atualização disponível","next_version":"Próxima versão","update":"Atualizar agora","update_progress":"Atualização em progresso...","progress_text":"Levará apenas alguns minutos. Não atualize a tela ou feche a janela antes que a atualização seja concluída","update_success":"O aplicativo foi atualizado! Aguarde enquanto a janela do navegador é recarregada automaticamente.","latest_message":"Nenhuma atualização disponível! Você está na versão mais recente.","current_version":"Versão Atual","download_zip_file":"Baixar arquivo ZIP","unzipping_package":"Descompactando o pacote","copying_files":"Copiando arquivos","running_migrations":"Executando migrações","finishing_update":"Atualização de acabamento","update_failed":"Atualização falhou","update_failed_text":"Desculpa! Sua atualização falhou em: {step} step"}},"wizard":{"account_info":"Informação da conta","account_info_desc":"Os detalhes abaixo serão usados para criar a conta principal do administrador. Além disso, você pode alterar os detalhes a qualquer momento após o login.","name":"Nome","email":"Email","password":"Senha","confirm_password":"Confirmar Senha","save_cont":"Salvar e Continuar","company_info":"Informação da Empresa","company_info_desc":"Esta informação será exibida nas Faturas. Observe que você pode editar isso mais tarde na página de configurações.","company_name":"Nome da Empresa","company_logo":"Logotipo da Empresa","logo_preview":"Previsualizar Logotipo","preferences":"Preferências","preferences_desc":"Preferências padrão para o sistema.","country":"Pais","state":"Estado","city":"Cidade","address":"Endereço","street":"Rua 1 | Rua 2","phone":"Telefone","zip_code":"CEP","go_back":"Voltar","currency":"Moeda","language":"Idioma","time_zone":"Fuso Horário","fiscal_year":"Ano Financeiro","date_format":"Formato de Data","from_address":"Do Endereço","username":"Nome de Usuário","next":"Próximo","continue":"Continuar","skip":"Pular","database":{"database":"URL do Site e Base de Dados","connection":"Conexão da Base de Dados","host":"Host da Base de Dados","port":"Porta da Base de Dados","password":"Senha da Base de Dados","app_url":"URL do Aplicativo","username":"Usuário da Base de Dados","db_name":"Nome da Base de Dados","desc":"Crie um Banco de Dados no seu servidor e defina as credenciais usando o formulário abaixo."},"permissions":{"permissions":"Permissões","permission_confirm_title":"Você tem certeza que quer continuar?","permission_confirm_desc":"Falha na verificação de permissão da pasta","permission_desc":"Abaixo está a lista de permissões de pasta que são necessárias para que o aplicativo funcione. Se a verificação da permissão falhar, atualize as permissões da pasta."},"mail":{"host":"Host do email","port":"Porta do email","driver":"Driver do email","secret":"Segredo","mailgun_secret":"Segredo do Mailgun","mailgun_domain":"Domínio","mailgun_endpoint":"Endpoint do Mailgun","ses_secret":"Segredo do SES","ses_key":"Chave SES","password":"Senha do email","username":"Nome do Usuário do email","mail_config":"Configuração de email","from_name":"Nome do email","from_mail":"Endereço de email","encryption":"Criptografia de email","mail_config_desc":"Abaixo está o formulário para configurar o driver de email que será usado para enviar emails do aplicativo. Você também pode configurar provedores de terceiros como Sendgrid, SES etc."},"req":{"system_req":"Requisitos de Sistema","php_req_version":"PHP (versão {version} obrigatória)","check_req":"Verificar Requisitos","system_req_desc":"O Crater tem alguns requisitos de servidor. Verifique se o seu servidor possui a versão do PHP necessária e todas as extensões mencionadas abaixo."},"errors":{"migrate_failed":"Falha na migração","database_variables_save_error":"Não é possível gravar a configuração no arquivo .env. Por favor, verifique suas permissões de arquivo","mail_variables_save_error":"A configuração do email falhou.","connection_failed":"Falha na conexão com o banco de dados","database_should_be_empty":"O banco de dados deve estar vazio"},"success":{"mail_variables_save_successfully":"Email configurado com sucesso","database_variables_save_successfully":"Banco de dados configurado com sucesso."}},"layout_login":{"copyright_crater":"Copyright @ Crater - 2020","super_simple_invoicing":"Faturamento super simples","for_freelancer":"Para Freelancers &","small_businesses":"Pequenos Negócios ","crater_help":"Crater ajuda a rastrear despesas, registrar pagamentos e gerar belas","invoices_and_estimates":"Faturas e Orçamentos com capacidade de escolher vários modelos."},"validation":{"invalid_phone":"Número de telefone inválido","invalid_url":"url inválidas (ex: http://www.crater.com)","required":"Campo obrigatório","email_incorrect":"E-mail incorreto","email_already_taken":"O email já foi recebido.","email_does_not_exist":"O usuário com determinado email não existe","send_reset_link":"Enviar link de redefinição","not_yet":"Ainda não? Envie novamente","password_min_length":"A senha deve conter {count} caracteres","name_min_length":"O nome deve ter pelo menos {count} letras.","enter_valid_tax_rate":"Insira uma taxa de imposto válida","numbers_only":"Apenas Números.","characters_only":"Apenas Caracteres.","password_incorrect":"As senhas devem ser idênticas","password_length":"A senha deve ter {count} caracteres.","qty_must_greater_than_zero":"A quantidade deve ser maior que zero.","price_greater_than_zero":"O preço deve ser maior que zero.","payment_greater_than_zero":"O pagamento deve ser maior que zero.","payment_greater_than_due_amount":"O pagamento inserido é mais do que o valor devido desta fatura.","quantity_maxlength":"A quantidade não deve exceder 20 dígitos.","price_maxlength":"O preço não deve ser superior a 20 dígitos.","price_minvalue":"O preço deve ser maior que 0.","amount_maxlength":"Montante não deve ser superior a 20 dígitos.","amount_minvalue":"Montante deve ser maior que zero","description_maxlength":"A descrição não deve ter mais que 255 caracteres.","maximum_options_error":"Máximo de {max} opções selecionadas. Primeiro remova uma opção selecionada para selecionar outra.","notes_maxlength":"As anotações não devem ter mais que 255 caracteres.","address_maxlength":"O endereço não deve ter mais que 255 caracteres.","ref_number_maxlength":"O número de referência não deve ter mais que 255 caracteres.","prefix_maxlength":"O prefixo não deve ter mais que 5 caracteres."}}')},"K/tc":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("wd/R"))},"KHd+":function(e,t,n){"use strict";function r(e,t,n,r,a,i,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):a&&(l=s?function(){a.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:a),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return r}))},KMkd:function(e,t){e.exports=function(){this.__data__=[],this.size=0}},KSF8: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("wd/R"))},KTz0:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var a=t.words[r];return 1===r.length?n?a[0]:a[1]:e+" "+t.correctGrammaticalCase(e,a)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},KUD6:function(e,t,n){var r=n("lB32");"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,a);r.locals&&(e.exports=r.locals)},KfNM:function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},KhKh:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("eO9T");t.default=function(e){return(0,r.withParams)({type:"maxLength",max:e},(function(t){return!(0,r.req)(t)||(0,r.len)(t)<=e}))}},Kz5y:function(e,t,n){var r=n("WFqU"),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();e.exports=i},L2JU:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return k})),n.d(t,"c",(function(){return x}));var r=("undefined"!=typeof window?window:void 0!==e?e:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(e,t){if(void 0===t&&(t=[]),null===e||"object"!=typeof e)return e;var n,r=(n=function(t){return t.original===e},t.filter(n)[0]);if(r)return r.copy;var i=Array.isArray(e)?[]:{};return t.push({original:e,copy:i}),Object.keys(e).forEach((function(n){i[n]=a(e[n],t)})),i}function i(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function o(e){return null!==e&&"object"==typeof e}var s=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},l={namespaced:{configurable:!0}};l.namespaced.get=function(){return!!this._rawModule.namespaced},s.prototype.addChild=function(e,t){this._children[e]=t},s.prototype.removeChild=function(e){delete this._children[e]},s.prototype.getChild=function(e){return this._children[e]},s.prototype.hasChild=function(e){return e in this._children},s.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},s.prototype.forEachChild=function(e){i(this._children,e)},s.prototype.forEachGetter=function(e){this._rawModule.getters&&i(this._rawModule.getters,e)},s.prototype.forEachAction=function(e){this._rawModule.actions&&i(this._rawModule.actions,e)},s.prototype.forEachMutation=function(e){this._rawModule.mutations&&i(this._rawModule.mutations,e)},Object.defineProperties(s.prototype,l);var c=function(e){this.register([],e,!1)};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){!function e(t,n,r){0;if(n.update(r),r.modules)for(var a in r.modules){if(!n.getChild(a))return void 0;e(t.concat(a),n.getChild(a),r.modules[a])}}([],this.root,e)},c.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var a=new s(t,n);0===e.length?this.root=a:this.get(e.slice(0,-1)).addChild(e[e.length-1],a);t.modules&&i(t.modules,(function(t,a){r.register(e.concat(a),t,n)}))},c.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},c.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return t.hasChild(n)};var u;var d=function(e){var t=this;void 0===e&&(e={}),!u&&"undefined"!=typeof window&&window.Vue&&y(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var a=e.strict;void 0===a&&(a=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new c(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new u,this._makeLocalGettersCache=Object.create(null);var i=this,o=this.dispatch,s=this.commit;this.dispatch=function(e,t){return o.call(i,e,t)},this.commit=function(e,t,n){return s.call(i,e,t,n)},this.strict=a;var l=this._modules.root.state;_(this,l,[],this._modules.root),h(this,l),n.forEach((function(e){return e(t)})),(void 0!==e.devtools?e.devtools:u.config.devtools)&&function(e){r&&(e._devtoolHook=r,r.emit("vuex:init",e),r.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){r.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){r.emit("vuex:action",e,t)}),{prepend:!0}))}(this)},p={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 m(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;_(e,n,[],e._modules.root,!0),h(e,n,t)}function h(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var a=e._wrappedGetters,o={};i(a,(function(t,n){o[n]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var s=u.config.silent;u.config.silent=!0,e._vm=new u({data:{$$state:t},computed:o}),u.config.silent=s,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),u.nextTick((function(){return r.$destroy()})))}function _(e,t,n,r,a){var i=!n.length,o=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[o],e._modulesNamespaceMap[o]=r),!i&&!a){var s=v(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){u.set(s,l,r.state)}))}var c=r.context=function(e,t,n){var r=""===t,a={dispatch:r?e.dispatch:function(n,r,a){var i=g(n,r,a),o=i.payload,s=i.options,l=i.type;return s&&s.root||(l=t+l),e.dispatch(l,o)},commit:r?e.commit:function(n,r,a){var i=g(n,r,a),o=i.payload,s=i.options,l=i.type;s&&s.root||(l=t+l),e.commit(l,o,s)}};return Object.defineProperties(a,{getters:{get:r?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(a){if(a.slice(0,r)===t){var i=a.slice(r);Object.defineProperty(n,i,{get:function(){return e.getters[a]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return v(e.state,n)}}}),a}(e,o,n);r.forEachMutation((function(t,n){!function(e,t,n,r){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){n.call(e,r.state,t)}))}(e,o+n,t,c)})),r.forEachAction((function(t,n){var r=t.root?n:o+n,a=t.handler||t;!function(e,t,n,r){(e._actions[t]||(e._actions[t]=[])).push((function(t){var a,i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return(a=i)&&"function"==typeof a.then||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}(e,r,a,c)})),r.forEachGetter((function(t,n){!function(e,t,n,r){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}}(e,o+n,t,c)})),r.forEachChild((function(r,i){_(e,t,n.concat(i),r,a)}))}function v(e,t){return t.reduce((function(e,t){return e[t]}),e)}function g(e,t,n){return o(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function y(e){u&&e===u||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)}}(u=e)}p.state.get=function(){return this._vm._data.$$state},p.state.set=function(e){0},d.prototype.commit=function(e,t,n){var r=this,a=g(e,t,n),i=a.type,o=a.payload,s=(a.options,{type:i,payload:o}),l=this._mutations[i];l&&(this._withCommit((function(){l.forEach((function(e){e(o)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},d.prototype.dispatch=function(e,t){var n=this,r=g(e,t),a=r.type,i=r.payload,o={type:a,payload:i},s=this._actions[a];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(o,n.state)}))}catch(e){0}var l=s.length>1?Promise.all(s.map((function(e){return e(i)}))):s[0](i);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(o,n.state)}))}catch(e){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(o,n.state,e)}))}catch(e){0}t(e)}))}))}},d.prototype.subscribe=function(e,t){return f(e,this._subscribers,t)},d.prototype.subscribeAction=function(e,t){return f("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},d.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},d.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},d.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),_(this,this.state,e,this._modules.get(e),n.preserveState),h(this,this.state)},d.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=v(t.state,e.slice(0,-1));u.delete(n,e[e.length-1])})),m(this)},d.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},d.prototype.hotUpdate=function(e){this._modules.update(e),m(this,!0)},d.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(d.prototype,p);var b=M((function(e,t){var n={};return D(t).forEach((function(t){var r=t.key,a=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=S(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"==typeof a?a.call(this,t,n):t[a]},n[r].vuex=!0})),n})),w=M((function(e,t){var n={};return D(t).forEach((function(t){var r=t.key,a=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.commit;if(e){var i=S(this.$store,"mapMutations",e);if(!i)return;r=i.context.commit}return"function"==typeof a?a.apply(this,[r].concat(t)):r.apply(this.$store,[a].concat(t))}})),n})),x=M((function(e,t){var n={};return D(t).forEach((function(t){var r=t.key,a=t.val;a=e+a,n[r]=function(){if(!e||S(this.$store,"mapGetters",e))return this.$store.getters[a]},n[r].vuex=!0})),n})),k=M((function(e,t){var n={};return D(t).forEach((function(t){var r=t.key,a=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var i=S(this.$store,"mapActions",e);if(!i)return;r=i.context.dispatch}return"function"==typeof a?a.apply(this,[r].concat(t)):r.apply(this.$store,[a].concat(t))}})),n}));function D(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 M(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function S(e,t,n){return e._modulesNamespaceMap[n]}function C(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(n){e.log(t)}}function L(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function T(){var e=new Date;return" @ "+E(e.getHours(),2)+":"+E(e.getMinutes(),2)+":"+E(e.getSeconds(),2)+"."+E(e.getMilliseconds(),3)}function E(e,t){return n="0",r=t-e.toString().length,new Array(r+1).join(n)+e;var n,r}var O={Store:d,install:y,version:"3.5.1",mapState:b,mapMutations:w,mapGetters:x,mapActions:k,createNamespacedHelpers:function(e){return{mapState:b.bind(null,e),mapGetters:x.bind(null,e),mapMutations:w.bind(null,e),mapActions:k.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var l=e.logMutations;void 0===l&&(l=!0);var c=e.logActions;void 0===c&&(c=!0);var u=e.logger;return void 0===u&&(u=console),function(e){var d=a(e.state);void 0!==u&&(l&&e.subscribe((function(e,o){var s=a(o);if(n(e,d,s)){var l=T(),c=i(e),p="mutation "+e.type+l;C(u,p,t),u.log("%c prev state","color: #9E9E9E; font-weight: bold",r(d)),u.log("%c mutation","color: #03A9F4; font-weight: bold",c),u.log("%c next state","color: #4CAF50; font-weight: bold",r(s)),L(u)}d=s})),c&&e.subscribeAction((function(e,n){if(o(e,n)){var r=T(),a=s(e),i="action "+e.type+r;C(u,i,t),u.log("%c action","color: #03A9F4; font-weight: bold",a),L(u)}})))}}};t.a=O}).call(this,n("yLpj"))},L8xA:function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},LYNF:function(e,t,n){"use strict";var r=n("OH9c");e.exports=function(e,t,n,a,i){var o=new Error(e);return r(o,t,n,a,i)}},LcsW:function(e,t,n){var r=n("kekF")(Object.getPrototypeOf,Object);e.exports=r},Lmem:function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},LnpJ:function(e,t,n){"use strict";n("QJfA")},Loxo: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("wd/R"))},LsHQ:function(e,t,n){var r=n("EA7m"),a=n("mv/X");e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,s&&a(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,o)}return t}))}},LvDl:function(e,t,n){(function(e,r){var a;(function(){var i="Expected a function",o="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l="[object Arguments]",c="[object Array]",u="[object Boolean]",d="[object Date]",p="[object Error]",f="[object Function]",m="[object GeneratorFunction]",h="[object Map]",_="[object Number]",v="[object Object]",g="[object RegExp]",y="[object Set]",b="[object String]",w="[object Symbol]",x="[object WeakMap]",k="[object ArrayBuffer]",D="[object DataView]",M="[object Float32Array]",S="[object Float64Array]",C="[object Int8Array]",L="[object Int16Array]",T="[object Int32Array]",E="[object Uint8Array]",O="[object Uint16Array]",j="[object Uint32Array]",A=/\b__p \+= '';/g,P=/\b(__p \+=) '' \+/g,Y=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,I=/[&<>"']/g,N=RegExp($.source),z=RegExp(I.source),F=/<%-([\s\S]+?)%>/g,R=/<%([\s\S]+?)%>/g,H=/<%=([\s\S]+?)%>/g,B=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,q=/^\w*$/,U=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,V=/[\\^$.*+?()[\]{}|]/g,W=RegExp(V.source),K=/^\s+|\s+$/g,G=/^\s+/,J=/\s+$/,Z=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,X=/\{\n\/\* \[wrapped with (.+)\] \*/,Q=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ae=/^[-+]0x[0-9a-f]+$/i,ie=/^0b[01]+$/i,oe=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,le=/^(?:0|[1-9]\d*)$/,ce=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ue=/($^)/,de=/['\n\r\u2028\u2029\\]/g,pe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",fe="\\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",me="[\\ud800-\\udfff]",he="["+fe+"]",_e="["+pe+"]",ve="\\d+",ge="[\\u2700-\\u27bf]",ye="[a-z\\xdf-\\xf6\\xf8-\\xff]",be="[^\\ud800-\\udfff"+fe+ve+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",we="\\ud83c[\\udffb-\\udfff]",xe="[^\\ud800-\\udfff]",ke="(?:\\ud83c[\\udde6-\\uddff]){2}",De="[\\ud800-\\udbff][\\udc00-\\udfff]",Me="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Se="(?:"+ye+"|"+be+")",Ce="(?:"+Me+"|"+be+")",Le="(?:"+_e+"|"+we+")"+"?",Te="[\\ufe0e\\ufe0f]?"+Le+("(?:\\u200d(?:"+[xe,ke,De].join("|")+")[\\ufe0e\\ufe0f]?"+Le+")*"),Ee="(?:"+[ge,ke,De].join("|")+")"+Te,Oe="(?:"+[xe+_e+"?",_e,ke,De,me].join("|")+")",je=RegExp("['’]","g"),Ae=RegExp(_e,"g"),Pe=RegExp(we+"(?="+we+")|"+Oe+Te,"g"),Ye=RegExp([Me+"?"+ye+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[he,Me,"$"].join("|")+")",Ce+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[he,Me+Se,"$"].join("|")+")",Me+"?"+Se+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Me+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ve,Ee].join("|"),"g"),$e=RegExp("[\\u200d\\ud800-\\udfff"+pe+"\\ufe0e\\ufe0f]"),Ie=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ne=["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"],ze=-1,Fe={};Fe[M]=Fe[S]=Fe[C]=Fe[L]=Fe[T]=Fe[E]=Fe["[object Uint8ClampedArray]"]=Fe[O]=Fe[j]=!0,Fe[l]=Fe[c]=Fe[k]=Fe[u]=Fe[D]=Fe[d]=Fe[p]=Fe[f]=Fe[h]=Fe[_]=Fe[v]=Fe[g]=Fe[y]=Fe[b]=Fe[x]=!1;var Re={};Re[l]=Re[c]=Re[k]=Re[D]=Re[u]=Re[d]=Re[M]=Re[S]=Re[C]=Re[L]=Re[T]=Re[h]=Re[_]=Re[v]=Re[g]=Re[y]=Re[b]=Re[w]=Re[E]=Re["[object Uint8ClampedArray]"]=Re[O]=Re[j]=!0,Re[p]=Re[f]=Re[x]=!1;var He={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Be=parseFloat,qe=parseInt,Ue="object"==typeof e&&e&&e.Object===Object&&e,Ve="object"==typeof self&&self&&self.Object===Object&&self,We=Ue||Ve||Function("return this")(),Ke=t&&!t.nodeType&&t,Ge=Ke&&"object"==typeof r&&r&&!r.nodeType&&r,Je=Ge&&Ge.exports===Ke,Ze=Je&&Ue.process,Xe=function(){try{var e=Ge&&Ge.require&&Ge.require("util").types;return e||Ze&&Ze.binding&&Ze.binding("util")}catch(e){}}(),Qe=Xe&&Xe.isArrayBuffer,et=Xe&&Xe.isDate,tt=Xe&&Xe.isMap,nt=Xe&&Xe.isRegExp,rt=Xe&&Xe.isSet,at=Xe&&Xe.isTypedArray;function it(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 ot(e,t,n,r){for(var a=-1,i=null==e?0:e.length;++a<i;){var o=e[a];t(r,o,n(o),e)}return r}function st(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function lt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function ut(e,t){for(var n=-1,r=null==e?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}function dt(e,t){return!!(null==e?0:e.length)&&wt(e,t,0)>-1}function pt(e,t,n){for(var r=-1,a=null==e?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}function ft(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}function mt(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}function ht(e,t,n,r){var a=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++a]);++a<i;)n=t(n,e[a],a,e);return n}function _t(e,t,n,r){var a=null==e?0:e.length;for(r&&a&&(n=e[--a]);a--;)n=t(n,e[a],a,e);return n}function vt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var gt=Mt("length");function yt(e,t,n){var r;return n(e,(function(e,n,a){if(t(e,n,a))return r=n,!1})),r}function bt(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}function wt(e,t,n){return t==t?function(e,t,n){var r=n-1,a=e.length;for(;++r<a;)if(e[r]===t)return r;return-1}(e,t,n):bt(e,kt,n)}function xt(e,t,n,r){for(var a=n-1,i=e.length;++a<i;)if(r(e[a],t))return a;return-1}function kt(e){return e!=e}function Dt(e,t){var n=null==e?0:e.length;return n?Lt(e,t)/n:NaN}function Mt(e){return function(t){return null==t?void 0:t[e]}}function St(e){return function(t){return null==e?void 0:e[t]}}function Ct(e,t,n,r,a){return a(e,(function(e,a,i){n=r?(r=!1,e):t(n,e,a,i)})),n}function Lt(e,t){for(var n,r=-1,a=e.length;++r<a;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}function Tt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Et(e){return function(t){return e(t)}}function Ot(e,t){return ft(t,(function(t){return e[t]}))}function jt(e,t){return e.has(t)}function At(e,t){for(var n=-1,r=e.length;++n<r&&wt(t,e[n],0)>-1;);return n}function Pt(e,t){for(var n=e.length;n--&&wt(t,e[n],0)>-1;);return n}function Yt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var $t=St({"À":"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"}),It=St({"&":"&","<":"<",">":">",'"':""","'":"'"});function Nt(e){return"\\"+He[e]}function zt(e){return $e.test(e)}function Ft(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Rt(e,t){return function(n){return e(t(n))}}function Ht(e,t){for(var n=-1,r=e.length,a=0,i=[];++n<r;){var s=e[n];s!==t&&s!==o||(e[n]=o,i[a++]=n)}return i}function Bt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function qt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function Ut(e){return zt(e)?function(e){var t=Pe.lastIndex=0;for(;Pe.test(e);)++t;return t}(e):gt(e)}function Vt(e){return zt(e)?function(e){return e.match(Pe)||[]}(e):function(e){return e.split("")}(e)}var Wt=St({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Kt=function e(t){var n,r=(t=null==t?We:Kt.defaults(We.Object(),t,Kt.pick(We,Ne))).Array,a=t.Date,pe=t.Error,fe=t.Function,me=t.Math,he=t.Object,_e=t.RegExp,ve=t.String,ge=t.TypeError,ye=r.prototype,be=fe.prototype,we=he.prototype,xe=t["__core-js_shared__"],ke=be.toString,De=we.hasOwnProperty,Me=0,Se=(n=/[^.]+$/.exec(xe&&xe.keys&&xe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ce=we.toString,Le=ke.call(he),Te=We._,Ee=_e("^"+ke.call(De).replace(V,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Oe=Je?t.Buffer:void 0,Pe=t.Symbol,$e=t.Uint8Array,He=Oe?Oe.allocUnsafe:void 0,Ue=Rt(he.getPrototypeOf,he),Ve=he.create,Ke=we.propertyIsEnumerable,Ge=ye.splice,Ze=Pe?Pe.isConcatSpreadable:void 0,Xe=Pe?Pe.iterator:void 0,gt=Pe?Pe.toStringTag:void 0,St=function(){try{var e=Qa(he,"defineProperty");return e({},"",{}),e}catch(e){}}(),Gt=t.clearTimeout!==We.clearTimeout&&t.clearTimeout,Jt=a&&a.now!==We.Date.now&&a.now,Zt=t.setTimeout!==We.setTimeout&&t.setTimeout,Xt=me.ceil,Qt=me.floor,en=he.getOwnPropertySymbols,tn=Oe?Oe.isBuffer:void 0,nn=t.isFinite,rn=ye.join,an=Rt(he.keys,he),on=me.max,sn=me.min,ln=a.now,cn=t.parseInt,un=me.random,dn=ye.reverse,pn=Qa(t,"DataView"),fn=Qa(t,"Map"),mn=Qa(t,"Promise"),hn=Qa(t,"Set"),_n=Qa(t,"WeakMap"),vn=Qa(he,"create"),gn=_n&&new _n,yn={},bn=Si(pn),wn=Si(fn),xn=Si(mn),kn=Si(hn),Dn=Si(_n),Mn=Pe?Pe.prototype:void 0,Sn=Mn?Mn.valueOf:void 0,Cn=Mn?Mn.toString:void 0;function Ln(e){if(qo(e)&&!Ao(e)&&!(e instanceof jn)){if(e instanceof On)return e;if(De.call(e,"__wrapped__"))return Ci(e)}return new On(e)}var Tn=function(){function e(){}return function(t){if(!Bo(t))return{};if(Ve)return Ve(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function En(){}function On(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function jn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function An(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Pn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Yn;++t<n;)this.add(e[t])}function In(e){var t=this.__data__=new Pn(e);this.size=t.size}function Nn(e,t){var n=Ao(e),r=!n&&jo(e),a=!n&&!r&&Io(e),i=!n&&!r&&!a&&Xo(e),o=n||r||a||i,s=o?Tt(e.length,ve):[],l=s.length;for(var c in e)!t&&!De.call(e,c)||o&&("length"==c||a&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||oi(c,l))||s.push(c);return s}function zn(e){var t=e.length;return t?e[$r(0,t-1)]:void 0}function Fn(e,t){return ki(va(e),Gn(t,0,e.length))}function Rn(e){return ki(va(e))}function Hn(e,t,n){(void 0!==n&&!To(e[t],n)||void 0===n&&!(t in e))&&Wn(e,t,n)}function Bn(e,t,n){var r=e[t];De.call(e,t)&&To(r,n)&&(void 0!==n||t in e)||Wn(e,t,n)}function qn(e,t){for(var n=e.length;n--;)if(To(e[n][0],t))return n;return-1}function Un(e,t,n,r){return er(e,(function(e,a,i){t(r,e,n(e),i)})),r}function Vn(e,t){return e&&ga(t,bs(t),e)}function Wn(e,t,n){"__proto__"==t&&St?St(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Kn(e,t){for(var n=-1,a=t.length,i=r(a),o=null==e;++n<a;)i[n]=o?void 0:hs(e,t[n]);return i}function Gn(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Jn(e,t,n,r,a,i){var o,s=1&t,c=2&t,p=4&t;if(n&&(o=a?n(e,r,a,i):n(e)),void 0!==o)return o;if(!Bo(e))return e;var x=Ao(e);if(x){if(o=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&De.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return va(e,o)}else{var A=ni(e),P=A==f||A==m;if(Io(e))return da(e,s);if(A==v||A==l||P&&!a){if(o=c||P?{}:ai(e),!s)return c?function(e,t){return ga(e,ti(e),t)}(e,function(e,t){return e&&ga(t,ws(t),e)}(o,e)):function(e,t){return ga(e,ei(e),t)}(e,Vn(o,e))}else{if(!Re[A])return a?e:{};o=function(e,t,n){var r=e.constructor;switch(t){case k:return pa(e);case u:case d:return new r(+e);case D:return function(e,t){var n=t?pa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case M:case S:case C:case L:case T:case E:case"[object Uint8ClampedArray]":case O:case j:return fa(e,n);case h:return new r;case _:case b:return new r(e);case g:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case y:return new r;case w:return a=e,Sn?he(Sn.call(a)):{}}var a}(e,A,s)}}i||(i=new In);var Y=i.get(e);if(Y)return Y;i.set(e,o),Go(e)?e.forEach((function(r){o.add(Jn(r,t,n,r,e,i))})):Uo(e)&&e.forEach((function(r,a){o.set(a,Jn(r,t,n,a,e,i))}));var $=x?void 0:(p?c?Va:Ua:c?ws:bs)(e);return st($||e,(function(r,a){$&&(r=e[a=r]),Bn(o,a,Jn(r,t,n,a,e,i))})),o}function Zn(e,t,n){var r=n.length;if(null==e)return!r;for(e=he(e);r--;){var a=n[r],i=t[a],o=e[a];if(void 0===o&&!(a in e)||!i(o))return!1}return!0}function Xn(e,t,n){if("function"!=typeof e)throw new ge(i);return yi((function(){e.apply(void 0,n)}),t)}function Qn(e,t,n,r){var a=-1,i=dt,o=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=ft(t,Et(n))),r?(i=pt,o=!1):t.length>=200&&(i=jt,o=!1,t=new $n(t));e:for(;++a<s;){var u=e[a],d=null==n?u:n(u);if(u=r||0!==u?u:0,o&&d==d){for(var p=c;p--;)if(t[p]===d)continue e;l.push(u)}else i(t,d,r)||l.push(u)}return l}Ln.templateSettings={escape:F,evaluate:R,interpolate:H,variable:"",imports:{_:Ln}},Ln.prototype=En.prototype,Ln.prototype.constructor=Ln,On.prototype=Tn(En.prototype),On.prototype.constructor=On,jn.prototype=Tn(En.prototype),jn.prototype.constructor=jn,An.prototype.clear=function(){this.__data__=vn?vn(null):{},this.size=0},An.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},An.prototype.get=function(e){var t=this.__data__;if(vn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return De.call(t,e)?t[e]:void 0},An.prototype.has=function(e){var t=this.__data__;return vn?void 0!==t[e]:De.call(t,e)},An.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=vn&&void 0===t?"__lodash_hash_undefined__":t,this},Pn.prototype.clear=function(){this.__data__=[],this.size=0},Pn.prototype.delete=function(e){var t=this.__data__,n=qn(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,!0)},Pn.prototype.get=function(e){var t=this.__data__,n=qn(t,e);return n<0?void 0:t[n][1]},Pn.prototype.has=function(e){return qn(this.__data__,e)>-1},Pn.prototype.set=function(e,t){var n=this.__data__,r=qn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new An,map:new(fn||Pn),string:new An}},Yn.prototype.delete=function(e){var t=Za(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return Za(this,e).get(e)},Yn.prototype.has=function(e){return Za(this,e).has(e)},Yn.prototype.set=function(e,t){var n=Za(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},$n.prototype.add=$n.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},$n.prototype.has=function(e){return this.__data__.has(e)},In.prototype.clear=function(){this.__data__=new Pn,this.size=0},In.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},In.prototype.get=function(e){return this.__data__.get(e)},In.prototype.has=function(e){return this.__data__.has(e)},In.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Pn){var r=n.__data__;if(!fn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(r)}return n.set(e,t),this.size=n.size,this};var er=wa(lr),tr=wa(cr,!0);function nr(e,t){var n=!0;return er(e,(function(e,r,a){return n=!!t(e,r,a)})),n}function rr(e,t,n){for(var r=-1,a=e.length;++r<a;){var i=e[r],o=t(i);if(null!=o&&(void 0===s?o==o&&!Zo(o):n(o,s)))var s=o,l=i}return l}function ar(e,t){var n=[];return er(e,(function(e,r,a){t(e,r,a)&&n.push(e)})),n}function ir(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=ii),a||(a=[]);++i<o;){var s=e[i];t>0&&n(s)?t>1?ir(s,t-1,n,r,a):mt(a,s):r||(a[a.length]=s)}return a}var or=xa(),sr=xa(!0);function lr(e,t){return e&&or(e,t,bs)}function cr(e,t){return e&&sr(e,t,bs)}function ur(e,t){return ut(t,(function(t){return Fo(e[t])}))}function dr(e,t){for(var n=0,r=(t=sa(t,e)).length;null!=e&&n<r;)e=e[Mi(t[n++])];return n&&n==r?e:void 0}function pr(e,t,n){var r=t(e);return Ao(e)?r:mt(r,n(e))}function fr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":gt&> in he(e)?function(e){var t=De.call(e,gt),n=e[gt];try{e[gt]=void 0;var r=!0}catch(e){}var a=Ce.call(e);r&&(t?e[gt]=n:delete e[gt]);return a}(e):function(e){return Ce.call(e)}(e)}function mr(e,t){return e>t}function hr(e,t){return null!=e&&De.call(e,t)}function _r(e,t){return null!=e&&t in he(e)}function vr(e,t,n){for(var a=n?pt:dt,i=e[0].length,o=e.length,s=o,l=r(o),c=1/0,u=[];s--;){var d=e[s];s&&t&&(d=ft(d,Et(t))),c=sn(d.length,c),l[s]=!n&&(t||i>=120&&d.length>=120)?new $n(s&&d):void 0}d=e[0];var p=-1,f=l[0];e:for(;++p<i&&u.length<c;){var m=d[p],h=t?t(m):m;if(m=n||0!==m?m:0,!(f?jt(f,h):a(u,h,n))){for(s=o;--s;){var _=l[s];if(!(_?jt(_,h):a(e[s],h,n)))continue e}f&&f.push(h),u.push(m)}}return u}function gr(e,t,n){var r=null==(e=hi(e,t=sa(t,e)))?e:e[Mi(Ni(t))];return null==r?void 0:it(r,e,n)}function yr(e){return qo(e)&&fr(e)==l}function br(e,t,n,r,a){return e===t||(null==e||null==t||!qo(e)&&!qo(t)?e!=e&&t!=t:function(e,t,n,r,a,i){var o=Ao(e),s=Ao(t),f=o?c:ni(e),m=s?c:ni(t),x=(f=f==l?v:f)==v,M=(m=m==l?v:m)==v,S=f==m;if(S&&Io(e)){if(!Io(t))return!1;o=!0,x=!1}if(S&&!x)return i||(i=new In),o||Xo(e)?Ba(e,t,n,r,a,i):function(e,t,n,r,a,i,o){switch(n){case D:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case k:return!(e.byteLength!=t.byteLength||!i(new $e(e),new $e(t)));case u:case d:case _:return To(+e,+t);case p:return e.name==t.name&&e.message==t.message;case g:case b:return e==t+"";case h:var s=Ft;case y:var l=1&r;if(s||(s=Bt),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;r|=2,o.set(e,t);var f=Ba(s(e),s(t),r,a,i,o);return o.delete(e),f;case w:if(Sn)return Sn.call(e)==Sn.call(t)}return!1}(e,t,f,n,r,a,i);if(!(1&n)){var C=x&&De.call(e,"__wrapped__"),L=M&&De.call(t,"__wrapped__");if(C||L){var T=C?e.value():e,E=L?t.value():t;return i||(i=new In),a(T,E,n,r,i)}}if(!S)return!1;return i||(i=new In),function(e,t,n,r,a,i){var o=1&n,s=Ua(e),l=s.length,c=Ua(t).length;if(l!=c&&!o)return!1;var u=l;for(;u--;){var d=s[u];if(!(o?d in t:De.call(t,d)))return!1}var p=i.get(e),f=i.get(t);if(p&&f)return p==t&&f==e;var m=!0;i.set(e,t),i.set(t,e);var h=o;for(;++u<l;){d=s[u];var _=e[d],v=t[d];if(r)var g=o?r(v,_,d,t,e,i):r(_,v,d,e,t,i);if(!(void 0===g?_===v||a(_,v,n,r,i):g)){m=!1;break}h||(h="constructor"==d)}if(m&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(m=!1)}return i.delete(e),i.delete(t),m}(e,t,n,r,a,i)}(e,t,n,r,br,a))}function wr(e,t,n,r){var a=n.length,i=a,o=!r;if(null==e)return!i;for(e=he(e);a--;){var s=n[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){var l=(s=n[a])[0],c=e[l],u=s[1];if(o&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new In;if(r)var p=r(c,u,l,e,t,d);if(!(void 0===p?br(u,c,3,r,d):p))return!1}}return!0}function xr(e){return!(!Bo(e)||(t=e,Se&&Se in t))&&(Fo(e)?Ee:oe).test(Si(e));var t}function kr(e){return"function"==typeof e?e:null==e?Vs:"object"==typeof e?Ao(e)?Tr(e[0],e[1]):Lr(e):tl(e)}function Dr(e){if(!di(e))return an(e);var t=[];for(var n in he(e))De.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Mr(e){if(!Bo(e))return function(e){var t=[];if(null!=e)for(var n in he(e))t.push(n);return t}(e);var t=di(e),n=[];for(var r in e)("constructor"!=r||!t&&De.call(e,r))&&n.push(r);return n}function Sr(e,t){return e<t}function Cr(e,t){var n=-1,a=Yo(e)?r(e.length):[];return er(e,(function(e,r,i){a[++n]=t(e,r,i)})),a}function Lr(e){var t=Xa(e);return 1==t.length&&t[0][2]?fi(t[0][0],t[0][1]):function(n){return n===e||wr(n,e,t)}}function Tr(e,t){return li(e)&&pi(t)?fi(Mi(e),t):function(n){var r=hs(n,e);return void 0===r&&r===t?_s(n,e):br(t,r,3)}}function Er(e,t,n,r,a){e!==t&&or(t,(function(i,o){if(a||(a=new In),Bo(i))!function(e,t,n,r,a,i,o){var s=vi(e,n),l=vi(t,n),c=o.get(l);if(c)return void Hn(e,n,c);var u=i?i(s,l,n+"",e,t,o):void 0,d=void 0===u;if(d){var p=Ao(l),f=!p&&Io(l),m=!p&&!f&&Xo(l);u=l,p||f||m?Ao(s)?u=s:$o(s)?u=va(s):f?(d=!1,u=da(l,!0)):m?(d=!1,u=fa(l,!0)):u=[]:Wo(l)||jo(l)?(u=s,jo(s)?u=os(s):Bo(s)&&!Fo(s)||(u=ai(l))):d=!1}d&&(o.set(l,u),a(u,l,r,i,o),o.delete(l));Hn(e,n,u)}(e,t,o,n,Er,r,a);else{var s=r?r(vi(e,o),i,o+"",e,t,a):void 0;void 0===s&&(s=i),Hn(e,o,s)}}),ws)}function Or(e,t){var n=e.length;if(n)return oi(t+=t<0?n:0,n)?e[t]:void 0}function jr(e,t,n){t=t.length?ft(t,(function(e){return Ao(e)?function(t){return dr(t,1===e.length?e[0]:e)}:e})):[Vs];var r=-1;return t=ft(t,Et(Ja())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Cr(e,(function(e,n,a){return{criteria:ft(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,a=e.criteria,i=t.criteria,o=a.length,s=n.length;for(;++r<o;){var l=ma(a[r],i[r]);if(l){if(r>=s)return l;var c=n[r];return l*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)}))}function Ar(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var o=t[r],s=dr(e,o);n(s,o)&&Rr(i,sa(o,e),s)}return i}function Pr(e,t,n,r){var a=r?xt:wt,i=-1,o=t.length,s=e;for(e===t&&(t=va(t)),n&&(s=ft(e,Et(n)));++i<o;)for(var l=0,c=t[i],u=n?n(c):c;(l=a(s,u,l,r))>-1;)s!==e&&Ge.call(s,l,1),Ge.call(e,l,1);return e}function Yr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var a=t[n];if(n==r||a!==i){var i=a;oi(a)?Ge.call(e,a,1):Qr(e,a)}}return e}function $r(e,t){return e+Qt(un()*(t-e+1))}function Ir(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Qt(t/2))&&(e+=e)}while(t);return n}function Nr(e,t){return bi(mi(e,t,Vs),e+"")}function zr(e){return zn(Ts(e))}function Fr(e,t){var n=Ts(e);return ki(n,Gn(t,0,n.length))}function Rr(e,t,n,r){if(!Bo(e))return e;for(var a=-1,i=(t=sa(t,e)).length,o=i-1,s=e;null!=s&&++a<i;){var l=Mi(t[a]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(a!=o){var u=s[l];void 0===(c=r?r(u,l,s):void 0)&&(c=Bo(u)?u:oi(t[a+1])?[]:{})}Bn(s,l,c),s=s[l]}return e}var Hr=gn?function(e,t){return gn.set(e,t),e}:Vs,Br=St?function(e,t){return St(e,"toString",{configurable:!0,enumerable:!1,value:Bs(t),writable:!0})}:Vs;function qr(e){return ki(Ts(e))}function Ur(e,t,n){var a=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=r(i);++a<i;)o[a]=e[a+t];return o}function Vr(e,t){var n;return er(e,(function(e,r,a){return!(n=t(e,r,a))})),!!n}function Wr(e,t,n){var r=0,a=null==e?r:e.length;if("number"==typeof t&&t==t&&a<=2147483647){for(;r<a;){var i=r+a>>>1,o=e[i];null!==o&&!Zo(o)&&(n?o<=t:o<t)?r=i+1:a=i}return a}return Kr(e,t,Vs,n)}function Kr(e,t,n,r){var a=0,i=null==e?0:e.length;if(0===i)return 0;for(var o=(t=n(t))!=t,s=null===t,l=Zo(t),c=void 0===t;a<i;){var u=Qt((a+i)/2),d=n(e[u]),p=void 0!==d,f=null===d,m=d==d,h=Zo(d);if(o)var _=r||m;else _=c?m&&(r||p):s?m&&p&&(r||!f):l?m&&p&&!f&&(r||!h):!f&&!h&&(r?d<=t:d<t);_?a=u+1:i=u}return sn(i,4294967294)}function Gr(e,t){for(var n=-1,r=e.length,a=0,i=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!To(s,l)){var l=s;i[a++]=0===o?0:o}}return i}function Jr(e){return"number"==typeof e?e:Zo(e)?NaN:+e}function Zr(e){if("string"==typeof e)return e;if(Ao(e))return ft(e,Zr)+"";if(Zo(e))return Cn?Cn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Xr(e,t,n){var r=-1,a=dt,i=e.length,o=!0,s=[],l=s;if(n)o=!1,a=pt;else if(i>=200){var c=t?null:Ia(e);if(c)return Bt(c);o=!1,a=jt,l=new $n}else l=t?[]:s;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,o&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(u)}else a(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function Qr(e,t){return null==(e=hi(e,t=sa(t,e)))||delete e[Mi(Ni(t))]}function ea(e,t,n,r){return Rr(e,t,n(dr(e,t)),r)}function ta(e,t,n,r){for(var a=e.length,i=r?a:-1;(r?i--:++i<a)&&t(e[i],i,e););return n?Ur(e,r?0:i,r?i+1:a):Ur(e,r?i+1:0,r?a:i)}function na(e,t){var n=e;return n instanceof jn&&(n=n.value()),ht(t,(function(e,t){return t.func.apply(t.thisArg,mt([e],t.args))}),n)}function ra(e,t,n){var a=e.length;if(a<2)return a?Xr(e[0]):[];for(var i=-1,o=r(a);++i<a;)for(var s=e[i],l=-1;++l<a;)l!=i&&(o[i]=Qn(o[i]||s,e[l],t,n));return Xr(ir(o,1),t,n)}function aa(e,t,n){for(var r=-1,a=e.length,i=t.length,o={};++r<a;){var s=r<i?t[r]:void 0;n(o,e[r],s)}return o}function ia(e){return $o(e)?e:[]}function oa(e){return"function"==typeof e?e:Vs}function sa(e,t){return Ao(e)?e:li(e,t)?[e]:Di(ss(e))}var la=Nr;function ca(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Ur(e,t,n)}var ua=Gt||function(e){return We.clearTimeout(e)};function da(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function pa(e){var t=new e.constructor(e.byteLength);return new $e(t).set(new $e(e)),t}function fa(e,t){var n=t?pa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ma(e,t){if(e!==t){var n=void 0!==e,r=null===e,a=e==e,i=Zo(e),o=void 0!==t,s=null===t,l=t==t,c=Zo(t);if(!s&&!c&&!i&&e>t||i&&o&&l&&!s&&!c||r&&o&&l||!n&&l||!a)return 1;if(!r&&!i&&!c&&e<t||c&&n&&a&&!r&&!i||s&&n&&a||!o&&a||!l)return-1}return 0}function ha(e,t,n,a){for(var i=-1,o=e.length,s=n.length,l=-1,c=t.length,u=on(o-s,0),d=r(c+u),p=!a;++l<c;)d[l]=t[l];for(;++i<s;)(p||i<o)&&(d[n[i]]=e[i]);for(;u--;)d[l++]=e[i++];return d}function _a(e,t,n,a){for(var i=-1,o=e.length,s=-1,l=n.length,c=-1,u=t.length,d=on(o-l,0),p=r(d+u),f=!a;++i<d;)p[i]=e[i];for(var m=i;++c<u;)p[m+c]=t[c];for(;++s<l;)(f||i<o)&&(p[m+n[s]]=e[i++]);return p}function va(e,t){var n=-1,a=e.length;for(t||(t=r(a));++n<a;)t[n]=e[n];return t}function ga(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),a?Wn(n,s,l):Bn(n,s,l)}return n}function ya(e,t){return function(n,r){var a=Ao(n)?ot:Un,i=t?t():{};return a(n,e,Ja(r,2),i)}}function ba(e){return Nr((function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,o&&si(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=he(t);++r<a;){var s=n[r];s&&e(t,s,r,i)}return t}))}function wa(e,t){return function(n,r){if(null==n)return n;if(!Yo(n))return e(n,r);for(var a=n.length,i=t?a:-1,o=he(n);(t?i--:++i<a)&&!1!==r(o[i],i,o););return n}}function xa(e){return function(t,n,r){for(var a=-1,i=he(t),o=r(t),s=o.length;s--;){var l=o[e?s:++a];if(!1===n(i[l],l,i))break}return t}}function ka(e){return function(t){var n=zt(t=ss(t))?Vt(t):void 0,r=n?n[0]:t.charAt(0),a=n?ca(n,1).join(""):t.slice(1);return r[e]()+a}}function Da(e){return function(t){return ht(Fs(js(t).replace(je,"")),e,"")}}function Ma(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=Tn(e.prototype),r=e.apply(n,t);return Bo(r)?r:n}}function Sa(e){return function(t,n,r){var a=he(t);if(!Yo(t)){var i=Ja(n,3);t=bs(t),n=function(e){return i(a[e],e,a)}}var o=e(t,n,r);return o>-1?a[i?t[o]:o]:void 0}}function Ca(e){return qa((function(t){var n=t.length,r=n,a=On.prototype.thru;for(e&&t.reverse();r--;){var o=t[r];if("function"!=typeof o)throw new ge(i);if(a&&!s&&"wrapper"==Ka(o))var s=new On([],!0)}for(r=s?r:n;++r<n;){var l=Ka(o=t[r]),c="wrapper"==l?Wa(o):void 0;s=c&&ci(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?s[Ka(c[0])].apply(s,c[3]):1==o.length&&ci(o)?s[l]():s.thru(o)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&Ao(r))return s.plant(r).value();for(var a=0,i=n?t[a].apply(this,e):r;++a<n;)i=t[a].call(this,i);return i}}))}function La(e,t,n,a,i,o,s,l,c,u){var d=128&t,p=1&t,f=2&t,m=24&t,h=512&t,_=f?void 0:Ma(e);return function v(){for(var g=arguments.length,y=r(g),b=g;b--;)y[b]=arguments[b];if(m)var w=Ga(v),x=Yt(y,w);if(a&&(y=ha(y,a,i,m)),o&&(y=_a(y,o,s,m)),g-=x,m&&g<u){var k=Ht(y,w);return Ya(e,t,La,v.placeholder,n,y,k,l,c,u-g)}var D=p?n:this,M=f?D[e]:e;return g=y.length,l?y=_i(y,l):h&&g>1&&y.reverse(),d&&c<g&&(y.length=c),this&&this!==We&&this instanceof v&&(M=_||Ma(M)),M.apply(D,y)}}function Ta(e,t){return function(n,r){return function(e,t,n,r){return lr(e,(function(e,a,i){t(r,n(e),a,i)})),r}(n,e,t(r),{})}}function Ea(e,t){return function(n,r){var a;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(a=n),void 0!==r){if(void 0===a)return r;"string"==typeof n||"string"==typeof r?(n=Zr(n),r=Zr(r)):(n=Jr(n),r=Jr(r)),a=e(n,r)}return a}}function Oa(e){return qa((function(t){return t=ft(t,Et(Ja())),Nr((function(n){var r=this;return e(t,(function(e){return it(e,r,n)}))}))}))}function ja(e,t){var n=(t=void 0===t?" ":Zr(t)).length;if(n<2)return n?Ir(t,e):t;var r=Ir(t,Xt(e/Ut(t)));return zt(t)?ca(Vt(r),0,e).join(""):r.slice(0,e)}function Aa(e){return function(t,n,a){return a&&"number"!=typeof a&&si(t,n,a)&&(n=a=void 0),t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n,a){for(var i=-1,o=on(Xt((t-e)/(n||1)),0),s=r(o);o--;)s[a?o:++i]=e,e+=n;return s}(t,n,a=void 0===a?t<n?1:-1:ns(a),e)}}function Pa(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=is(t),n=is(n)),e(t,n)}}function Ya(e,t,n,r,a,i,o,s,l,c){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var d=[e,t,a,u?i:void 0,u?o:void 0,u?void 0:i,u?void 0:o,s,l,c],p=n.apply(void 0,d);return ci(e)&&gi(p,d),p.placeholder=r,wi(p,e,t)}function $a(e){var t=me[e];return function(e,n){if(e=is(e),(n=null==n?0:sn(rs(n),292))&&nn(e)){var r=(ss(e)+"e").split("e");return+((r=(ss(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ia=hn&&1/Bt(new hn([,-0]))[1]==1/0?function(e){return new hn(e)}:Zs;function Na(e){return function(t){var n=ni(t);return n==h?Ft(t):n==y?qt(t):function(e,t){return ft(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function za(e,t,n,a,s,l,c,u){var d=2&t;if(!d&&"function"!=typeof e)throw new ge(i);var p=a?a.length:0;if(p||(t&=-97,a=s=void 0),c=void 0===c?c:on(rs(c),0),u=void 0===u?u:rs(u),p-=s?s.length:0,64&t){var f=a,m=s;a=s=void 0}var h=d?void 0:Wa(e),_=[e,t,n,a,s,f,m,l,c,u];if(h&&function(e,t){var n=e[1],r=t[1],a=n|r,i=a<131,s=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!s)return e;1&r&&(e[2]=t[2],a|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?ha(c,l,t[4]):l,e[4]=c?Ht(e[3],o):t[4]}(l=t[5])&&(c=e[5],e[5]=c?_a(c,l,t[6]):l,e[6]=c?Ht(e[5],o):t[6]);(l=t[7])&&(e[7]=l);128&r&&(e[8]=null==e[8]?t[8]:sn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=a}(_,h),e=_[0],t=_[1],n=_[2],a=_[3],s=_[4],!(u=_[9]=void 0===_[9]?d?0:e.length:on(_[9]-p,0))&&24&t&&(t&=-25),t&&1!=t)v=8==t||16==t?function(e,t,n){var a=Ma(e);return function i(){for(var o=arguments.length,s=r(o),l=o,c=Ga(i);l--;)s[l]=arguments[l];var u=o<3&&s[0]!==c&&s[o-1]!==c?[]:Ht(s,c);if((o-=u.length)<n)return Ya(e,t,La,i.placeholder,void 0,s,u,void 0,void 0,n-o);var d=this&&this!==We&&this instanceof i?a:e;return it(d,this,s)}}(e,t,u):32!=t&&33!=t||s.length?La.apply(void 0,_):function(e,t,n,a){var i=1&t,o=Ma(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=a.length,d=r(u+l),p=this&&this!==We&&this instanceof t?o:e;++c<u;)d[c]=a[c];for(;l--;)d[c++]=arguments[++s];return it(p,i?n:this,d)}}(e,t,n,a);else var v=function(e,t,n){var r=1&t,a=Ma(e);return function t(){var i=this&&this!==We&&this instanceof t?a:e;return i.apply(r?n:this,arguments)}}(e,t,n);return wi((h?Hr:gi)(v,_),e,t)}function Fa(e,t,n,r){return void 0===e||To(e,we[n])&&!De.call(r,n)?t:e}function Ra(e,t,n,r,a,i){return Bo(e)&&Bo(t)&&(i.set(t,e),Er(e,t,void 0,Ra,i),i.delete(t)),e}function Ha(e){return Wo(e)?void 0:e}function Ba(e,t,n,r,a,i){var o=1&n,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,f=2&n?new $n:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var _=o?r(h,m,d,t,e,i):r(m,h,d,e,t,i);if(void 0!==_){if(_)continue;p=!1;break}if(f){if(!vt(t,(function(e,t){if(!jt(f,t)&&(m===e||a(m,e,n,r,i)))return f.push(t)}))){p=!1;break}}else if(m!==h&&!a(m,h,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p}function qa(e){return bi(mi(e,void 0,Ai),e+"")}function Ua(e){return pr(e,bs,ei)}function Va(e){return pr(e,ws,ti)}var Wa=gn?function(e){return gn.get(e)}:Zs;function Ka(e){for(var t=e.name+"",n=yn[t],r=De.call(yn,t)?n.length:0;r--;){var a=n[r],i=a.func;if(null==i||i==e)return a.name}return t}function Ga(e){return(De.call(Ln,"placeholder")?Ln:e).placeholder}function Ja(){var e=Ln.iteratee||Ws;return e=e===Ws?kr:e,arguments.length?e(arguments[0],arguments[1]):e}function Za(e,t){var n,r,a=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?a["string"==typeof t?"string":"hash"]:a.map}function Xa(e){for(var t=bs(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,pi(a)]}return t}function Qa(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return xr(n)?n:void 0}var ei=en?function(e){return null==e?[]:(e=he(e),ut(en(e),(function(t){return Ke.call(e,t)})))}:al,ti=en?function(e){for(var t=[];e;)mt(t,ei(e)),e=Ue(e);return t}:al,ni=fr;function ri(e,t,n){for(var r=-1,a=(t=sa(t,e)).length,i=!1;++r<a;){var o=Mi(t[r]);if(!(i=null!=e&&n(e,o)))break;e=e[o]}return i||++r!=a?i:!!(a=null==e?0:e.length)&&Ho(a)&&oi(o,a)&&(Ao(e)||jo(e))}function ai(e){return"function"!=typeof e.constructor||di(e)?{}:Tn(Ue(e))}function ii(e){return Ao(e)||jo(e)||!!(Ze&&e&&e[Ze])}function oi(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&le.test(e))&&e>-1&&e%1==0&&e<t}function si(e,t,n){if(!Bo(n))return!1;var r=typeof t;return!!("number"==r?Yo(n)&&oi(t,n.length):"string"==r&&t in n)&&To(n[t],e)}function li(e,t){if(Ao(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Zo(e))||(q.test(e)||!B.test(e)||null!=t&&e in he(t))}function ci(e){var t=Ka(e),n=Ln[t];if("function"!=typeof n||!(t in jn.prototype))return!1;if(e===n)return!0;var r=Wa(n);return!!r&&e===r[0]}(pn&&ni(new pn(new ArrayBuffer(1)))!=D||fn&&ni(new fn)!=h||mn&&"[object Promise]"!=ni(mn.resolve())||hn&&ni(new hn)!=y||_n&&ni(new _n)!=x)&&(ni=function(e){var t=fr(e),n=t==v?e.constructor:void 0,r=n?Si(n):"";if(r)switch(r){case bn:return D;case wn:return h;case xn:return"[object Promise]";case kn:return y;case Dn:return x}return t});var ui=xe?Fo:il;function di(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||we)}function pi(e){return e==e&&!Bo(e)}function fi(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in he(n)))}}function mi(e,t,n){return t=on(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,o=on(a.length-t,0),s=r(o);++i<o;)s[i]=a[t+i];i=-1;for(var l=r(t+1);++i<t;)l[i]=a[i];return l[t]=n(s),it(e,this,l)}}function hi(e,t){return t.length<2?e:dr(e,Ur(t,0,-1))}function _i(e,t){for(var n=e.length,r=sn(t.length,n),a=va(e);r--;){var i=t[r];e[r]=oi(i,n)?a[i]:void 0}return e}function vi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var gi=xi(Hr),yi=Zt||function(e,t){return We.setTimeout(e,t)},bi=xi(Br);function wi(e,t,n){var r=t+"";return bi(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Z,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return st(s,(function(n){var r="_."+n[0];t&n[1]&&!dt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(X);return t?t[1].split(Q):[]}(r),n)))}function xi(e){var t=0,n=0;return function(){var r=ln(),a=16-(r-n);if(n=r,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ki(e,t){var n=-1,r=e.length,a=r-1;for(t=void 0===t?r:t;++n<t;){var i=$r(n,a),o=e[i];e[i]=e[n],e[n]=o}return e.length=t,e}var Di=function(e){var t=ko(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(U,(function(e,n,r,a){t.push(r?a.replace(te,"$1"):n||e)})),t}));function Mi(e){if("string"==typeof e||Zo(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Si(e){if(null!=e){try{return ke.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ci(e){if(e instanceof jn)return e.clone();var t=new On(e.__wrapped__,e.__chain__);return t.__actions__=va(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Li=Nr((function(e,t){return $o(e)?Qn(e,ir(t,1,$o,!0)):[]})),Ti=Nr((function(e,t){var n=Ni(t);return $o(n)&&(n=void 0),$o(e)?Qn(e,ir(t,1,$o,!0),Ja(n,2)):[]})),Ei=Nr((function(e,t){var n=Ni(t);return $o(n)&&(n=void 0),$o(e)?Qn(e,ir(t,1,$o,!0),void 0,n):[]}));function Oi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:rs(n);return a<0&&(a=on(r+a,0)),bt(e,Ja(t,3),a)}function ji(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r-1;return void 0!==n&&(a=rs(n),a=n<0?on(r+a,0):sn(a,r-1)),bt(e,Ja(t,3),a,!0)}function Ai(e){return(null==e?0:e.length)?ir(e,1):[]}function Pi(e){return e&&e.length?e[0]:void 0}var Yi=Nr((function(e){var t=ft(e,ia);return t.length&&t[0]===e[0]?vr(t):[]})),$i=Nr((function(e){var t=Ni(e),n=ft(e,ia);return t===Ni(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?vr(n,Ja(t,2)):[]})),Ii=Nr((function(e){var t=Ni(e),n=ft(e,ia);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?vr(n,void 0,t):[]}));function Ni(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var zi=Nr(Fi);function Fi(e,t){return e&&e.length&&t&&t.length?Pr(e,t):e}var Ri=qa((function(e,t){var n=null==e?0:e.length,r=Kn(e,t);return Yr(e,ft(t,(function(e){return oi(e,n)?+e:e})).sort(ma)),r}));function Hi(e){return null==e?e:dn.call(e)}var Bi=Nr((function(e){return Xr(ir(e,1,$o,!0))})),qi=Nr((function(e){var t=Ni(e);return $o(t)&&(t=void 0),Xr(ir(e,1,$o,!0),Ja(t,2))})),Ui=Nr((function(e){var t=Ni(e);return t="function"==typeof t?t:void 0,Xr(ir(e,1,$o,!0),void 0,t)}));function Vi(e){if(!e||!e.length)return[];var t=0;return e=ut(e,(function(e){if($o(e))return t=on(e.length,t),!0})),Tt(t,(function(t){return ft(e,Mt(t))}))}function Wi(e,t){if(!e||!e.length)return[];var n=Vi(e);return null==t?n:ft(n,(function(e){return it(t,void 0,e)}))}var Ki=Nr((function(e,t){return $o(e)?Qn(e,t):[]})),Gi=Nr((function(e){return ra(ut(e,$o))})),Ji=Nr((function(e){var t=Ni(e);return $o(t)&&(t=void 0),ra(ut(e,$o),Ja(t,2))})),Zi=Nr((function(e){var t=Ni(e);return t="function"==typeof t?t:void 0,ra(ut(e,$o),void 0,t)})),Xi=Nr(Vi);var Qi=Nr((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Wi(e,n)}));function eo(e){var t=Ln(e);return t.__chain__=!0,t}function to(e,t){return t(e)}var no=qa((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,a=function(t){return Kn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof jn&&oi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:to,args:[a],thisArg:void 0}),new On(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(a)}));var ro=ya((function(e,t,n){De.call(e,n)?++e[n]:Wn(e,n,1)}));var ao=Sa(Oi),io=Sa(ji);function oo(e,t){return(Ao(e)?st:er)(e,Ja(t,3))}function so(e,t){return(Ao(e)?lt:tr)(e,Ja(t,3))}var lo=ya((function(e,t,n){De.call(e,n)?e[n].push(t):Wn(e,n,[t])}));var co=Nr((function(e,t,n){var a=-1,i="function"==typeof t,o=Yo(e)?r(e.length):[];return er(e,(function(e){o[++a]=i?it(t,e,n):gr(e,t,n)})),o})),uo=ya((function(e,t,n){Wn(e,n,t)}));function po(e,t){return(Ao(e)?ft:Cr)(e,Ja(t,3))}var fo=ya((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var mo=Nr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&si(e,t[0],t[1])?t=[]:n>2&&si(t[0],t[1],t[2])&&(t=[t[0]]),jr(e,ir(t,1),[])})),ho=Jt||function(){return We.Date.now()};function _o(e,t,n){return t=n?void 0:t,za(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function vo(e,t){var n;if("function"!=typeof t)throw new ge(i);return e=rs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var go=Nr((function(e,t,n){var r=1;if(n.length){var a=Ht(n,Ga(go));r|=32}return za(e,r,t,n,a)})),yo=Nr((function(e,t,n){var r=3;if(n.length){var a=Ht(n,Ga(yo));r|=32}return za(t,r,e,n,a)}));function bo(e,t,n){var r,a,o,s,l,c,u=0,d=!1,p=!1,f=!0;if("function"!=typeof e)throw new ge(i);function m(t){var n=r,i=a;return r=a=void 0,u=t,s=e.apply(i,n)}function h(e){return u=e,l=yi(v,t),d?m(e):s}function _(e){var n=e-c;return void 0===c||n>=t||n<0||p&&e-u>=o}function v(){var e=ho();if(_(e))return g(e);l=yi(v,function(e){var n=t-(e-c);return p?sn(n,o-(e-u)):n}(e))}function g(e){return l=void 0,f&&r?m(e):(r=a=void 0,s)}function y(){var e=ho(),n=_(e);if(r=arguments,a=this,c=e,n){if(void 0===l)return h(c);if(p)return ua(l),l=yi(v,t),m(c)}return void 0===l&&(l=yi(v,t)),s}return t=is(t)||0,Bo(n)&&(d=!!n.leading,o=(p="maxWait"in n)?on(is(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),y.cancel=function(){void 0!==l&&ua(l),u=0,r=c=a=l=void 0},y.flush=function(){return void 0===l?s:g(ho())},y}var wo=Nr((function(e,t){return Xn(e,1,t)})),xo=Nr((function(e,t,n){return Xn(e,is(t)||0,n)}));function ko(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ge(i);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(ko.Cache||Yn),n}function Do(e){if("function"!=typeof e)throw new ge(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)}}ko.Cache=Yn;var Mo=la((function(e,t){var n=(t=1==t.length&&Ao(t[0])?ft(t[0],Et(Ja())):ft(ir(t,1),Et(Ja()))).length;return Nr((function(r){for(var a=-1,i=sn(r.length,n);++a<i;)r[a]=t[a].call(this,r[a]);return it(e,this,r)}))})),So=Nr((function(e,t){return za(e,32,void 0,t,Ht(t,Ga(So)))})),Co=Nr((function(e,t){return za(e,64,void 0,t,Ht(t,Ga(Co)))})),Lo=qa((function(e,t){return za(e,256,void 0,void 0,void 0,t)}));function To(e,t){return e===t||e!=e&&t!=t}var Eo=Pa(mr),Oo=Pa((function(e,t){return e>=t})),jo=yr(function(){return arguments}())?yr:function(e){return qo(e)&&De.call(e,"callee")&&!Ke.call(e,"callee")},Ao=r.isArray,Po=Qe?Et(Qe):function(e){return qo(e)&&fr(e)==k};function Yo(e){return null!=e&&Ho(e.length)&&!Fo(e)}function $o(e){return qo(e)&&Yo(e)}var Io=tn||il,No=et?Et(et):function(e){return qo(e)&&fr(e)==d};function zo(e){if(!qo(e))return!1;var t=fr(e);return t==p||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Wo(e)}function Fo(e){if(!Bo(e))return!1;var t=fr(e);return t==f||t==m||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ro(e){return"number"==typeof e&&e==rs(e)}function Ho(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Bo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function qo(e){return null!=e&&"object"==typeof e}var Uo=tt?Et(tt):function(e){return qo(e)&&ni(e)==h};function Vo(e){return"number"==typeof e||qo(e)&&fr(e)==_}function Wo(e){if(!qo(e)||fr(e)!=v)return!1;var t=Ue(e);if(null===t)return!0;var n=De.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ke.call(n)==Le}var Ko=nt?Et(nt):function(e){return qo(e)&&fr(e)==g};var Go=rt?Et(rt):function(e){return qo(e)&&ni(e)==y};function Jo(e){return"string"==typeof e||!Ao(e)&&qo(e)&&fr(e)==b}function Zo(e){return"symbol"==typeof e||qo(e)&&fr(e)==w}var Xo=at?Et(at):function(e){return qo(e)&&Ho(e.length)&&!!Fe[fr(e)]};var Qo=Pa(Sr),es=Pa((function(e,t){return e<=t}));function ts(e){if(!e)return[];if(Yo(e))return Jo(e)?Vt(e):va(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=ni(e);return(t==h?Ft:t==y?Bt:Ts)(e)}function ns(e){return e?(e=is(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function rs(e){var t=ns(e),n=t%1;return t==t?n?t-n:t:0}function as(e){return e?Gn(rs(e),0,4294967295):0}function is(e){if("number"==typeof e)return e;if(Zo(e))return NaN;if(Bo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Bo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(K,"");var n=ie.test(e);return n||se.test(e)?qe(e.slice(2),n?2:8):ae.test(e)?NaN:+e}function os(e){return ga(e,ws(e))}function ss(e){return null==e?"":Zr(e)}var ls=ba((function(e,t){if(di(t)||Yo(t))ga(t,bs(t),e);else for(var n in t)De.call(t,n)&&Bn(e,n,t[n])})),cs=ba((function(e,t){ga(t,ws(t),e)})),us=ba((function(e,t,n,r){ga(t,ws(t),e,r)})),ds=ba((function(e,t,n,r){ga(t,bs(t),e,r)})),ps=qa(Kn);var fs=Nr((function(e,t){e=he(e);var n=-1,r=t.length,a=r>2?t[2]:void 0;for(a&&si(t[0],t[1],a)&&(r=1);++n<r;)for(var i=t[n],o=ws(i),s=-1,l=o.length;++s<l;){var c=o[s],u=e[c];(void 0===u||To(u,we[c])&&!De.call(e,c))&&(e[c]=i[c])}return e})),ms=Nr((function(e){return e.push(void 0,Ra),it(ks,void 0,e)}));function hs(e,t,n){var r=null==e?void 0:dr(e,t);return void 0===r?n:r}function _s(e,t){return null!=e&&ri(e,t,_r)}var vs=Ta((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ce.call(t)),e[t]=n}),Bs(Vs)),gs=Ta((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ce.call(t)),De.call(e,t)?e[t].push(n):e[t]=[n]}),Ja),ys=Nr(gr);function bs(e){return Yo(e)?Nn(e):Dr(e)}function ws(e){return Yo(e)?Nn(e,!0):Mr(e)}var xs=ba((function(e,t,n){Er(e,t,n)})),ks=ba((function(e,t,n,r){Er(e,t,n,r)})),Ds=qa((function(e,t){var n={};if(null==e)return n;var r=!1;t=ft(t,(function(t){return t=sa(t,e),r||(r=t.length>1),t})),ga(e,Va(e),n),r&&(n=Jn(n,7,Ha));for(var a=t.length;a--;)Qr(n,t[a]);return n}));var Ms=qa((function(e,t){return null==e?{}:function(e,t){return Ar(e,t,(function(t,n){return _s(e,n)}))}(e,t)}));function Ss(e,t){if(null==e)return{};var n=ft(Va(e),(function(e){return[e]}));return t=Ja(t),Ar(e,n,(function(e,n){return t(e,n[0])}))}var Cs=Na(bs),Ls=Na(ws);function Ts(e){return null==e?[]:Ot(e,bs(e))}var Es=Da((function(e,t,n){return t=t.toLowerCase(),e+(n?Os(t):t)}));function Os(e){return zs(ss(e).toLowerCase())}function js(e){return(e=ss(e))&&e.replace(ce,$t).replace(Ae,"")}var As=Da((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ps=Da((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ys=ka("toLowerCase");var $s=Da((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Is=Da((function(e,t,n){return e+(n?" ":"")+zs(t)}));var Ns=Da((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),zs=ka("toUpperCase");function Fs(e,t,n){return e=ss(e),void 0===(t=n?void 0:t)?function(e){return Ie.test(e)}(e)?function(e){return e.match(Ye)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var Rs=Nr((function(e,t){try{return it(e,void 0,t)}catch(e){return zo(e)?e:new pe(e)}})),Hs=qa((function(e,t){return st(t,(function(t){t=Mi(t),Wn(e,t,go(e[t],e))})),e}));function Bs(e){return function(){return e}}var qs=Ca(),Us=Ca(!0);function Vs(e){return e}function Ws(e){return kr("function"==typeof e?e:Jn(e,1))}var Ks=Nr((function(e,t){return function(n){return gr(n,e,t)}})),Gs=Nr((function(e,t){return function(n){return gr(e,n,t)}}));function Js(e,t,n){var r=bs(t),a=ur(t,r);null!=n||Bo(t)&&(a.length||!r.length)||(n=t,t=e,e=this,a=ur(t,bs(t)));var i=!(Bo(n)&&"chain"in n&&!n.chain),o=Fo(e);return st(a,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),a=n.__actions__=va(this.__actions__);return a.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,mt([this.value()],arguments))})})),e}function Zs(){}var Xs=Oa(ft),Qs=Oa(ct),el=Oa(vt);function tl(e){return li(e)?Mt(Mi(e)):function(e){return function(t){return dr(t,e)}}(e)}var nl=Aa(),rl=Aa(!0);function al(){return[]}function il(){return!1}var ol=Ea((function(e,t){return e+t}),0),sl=$a("ceil"),ll=Ea((function(e,t){return e/t}),1),cl=$a("floor");var ul,dl=Ea((function(e,t){return e*t}),1),pl=$a("round"),fl=Ea((function(e,t){return e-t}),0);return Ln.after=function(e,t){if("function"!=typeof t)throw new ge(i);return e=rs(e),function(){if(--e<1)return t.apply(this,arguments)}},Ln.ary=_o,Ln.assign=ls,Ln.assignIn=cs,Ln.assignInWith=us,Ln.assignWith=ds,Ln.at=ps,Ln.before=vo,Ln.bind=go,Ln.bindAll=Hs,Ln.bindKey=yo,Ln.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ao(e)?e:[e]},Ln.chain=eo,Ln.chunk=function(e,t,n){t=(n?si(e,t,n):void 0===t)?1:on(rs(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var i=0,o=0,s=r(Xt(a/t));i<a;)s[o++]=Ur(e,i,i+=t);return s},Ln.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,a=[];++t<n;){var i=e[t];i&&(a[r++]=i)}return a},Ln.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],a=e;a--;)t[a-1]=arguments[a];return mt(Ao(n)?va(n):[n],ir(t,1))},Ln.cond=function(e){var t=null==e?0:e.length,n=Ja();return e=t?ft(e,(function(e){if("function"!=typeof e[1])throw new ge(i);return[n(e[0]),e[1]]})):[],Nr((function(n){for(var r=-1;++r<t;){var a=e[r];if(it(a[0],this,n))return it(a[1],this,n)}}))},Ln.conforms=function(e){return function(e){var t=bs(e);return function(n){return Zn(n,e,t)}}(Jn(e,1))},Ln.constant=Bs,Ln.countBy=ro,Ln.create=function(e,t){var n=Tn(e);return null==t?n:Vn(n,t)},Ln.curry=function e(t,n,r){var a=za(t,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return a.placeholder=e.placeholder,a},Ln.curryRight=function e(t,n,r){var a=za(t,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return a.placeholder=e.placeholder,a},Ln.debounce=bo,Ln.defaults=fs,Ln.defaultsDeep=ms,Ln.defer=wo,Ln.delay=xo,Ln.difference=Li,Ln.differenceBy=Ti,Ln.differenceWith=Ei,Ln.drop=function(e,t,n){var r=null==e?0:e.length;return r?Ur(e,(t=n||void 0===t?1:rs(t))<0?0:t,r):[]},Ln.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Ur(e,0,(t=r-(t=n||void 0===t?1:rs(t)))<0?0:t):[]},Ln.dropRightWhile=function(e,t){return e&&e.length?ta(e,Ja(t,3),!0,!0):[]},Ln.dropWhile=function(e,t){return e&&e.length?ta(e,Ja(t,3),!0):[]},Ln.fill=function(e,t,n,r){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&si(e,t,n)&&(n=0,r=a),function(e,t,n,r){var a=e.length;for((n=rs(n))<0&&(n=-n>a?0:a+n),(r=void 0===r||r>a?a:rs(r))<0&&(r+=a),r=n>r?0:as(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Ln.filter=function(e,t){return(Ao(e)?ut:ar)(e,Ja(t,3))},Ln.flatMap=function(e,t){return ir(po(e,t),1)},Ln.flatMapDeep=function(e,t){return ir(po(e,t),1/0)},Ln.flatMapDepth=function(e,t,n){return n=void 0===n?1:rs(n),ir(po(e,t),n)},Ln.flatten=Ai,Ln.flattenDeep=function(e){return(null==e?0:e.length)?ir(e,1/0):[]},Ln.flattenDepth=function(e,t){return(null==e?0:e.length)?ir(e,t=void 0===t?1:rs(t)):[]},Ln.flip=function(e){return za(e,512)},Ln.flow=qs,Ln.flowRight=Us,Ln.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var a=e[t];r[a[0]]=a[1]}return r},Ln.functions=function(e){return null==e?[]:ur(e,bs(e))},Ln.functionsIn=function(e){return null==e?[]:ur(e,ws(e))},Ln.groupBy=lo,Ln.initial=function(e){return(null==e?0:e.length)?Ur(e,0,-1):[]},Ln.intersection=Yi,Ln.intersectionBy=$i,Ln.intersectionWith=Ii,Ln.invert=vs,Ln.invertBy=gs,Ln.invokeMap=co,Ln.iteratee=Ws,Ln.keyBy=uo,Ln.keys=bs,Ln.keysIn=ws,Ln.map=po,Ln.mapKeys=function(e,t){var n={};return t=Ja(t,3),lr(e,(function(e,r,a){Wn(n,t(e,r,a),e)})),n},Ln.mapValues=function(e,t){var n={};return t=Ja(t,3),lr(e,(function(e,r,a){Wn(n,r,t(e,r,a))})),n},Ln.matches=function(e){return Lr(Jn(e,1))},Ln.matchesProperty=function(e,t){return Tr(e,Jn(t,1))},Ln.memoize=ko,Ln.merge=xs,Ln.mergeWith=ks,Ln.method=Ks,Ln.methodOf=Gs,Ln.mixin=Js,Ln.negate=Do,Ln.nthArg=function(e){return e=rs(e),Nr((function(t){return Or(t,e)}))},Ln.omit=Ds,Ln.omitBy=function(e,t){return Ss(e,Do(Ja(t)))},Ln.once=function(e){return vo(2,e)},Ln.orderBy=function(e,t,n,r){return null==e?[]:(Ao(t)||(t=null==t?[]:[t]),Ao(n=r?void 0:n)||(n=null==n?[]:[n]),jr(e,t,n))},Ln.over=Xs,Ln.overArgs=Mo,Ln.overEvery=Qs,Ln.overSome=el,Ln.partial=So,Ln.partialRight=Co,Ln.partition=fo,Ln.pick=Ms,Ln.pickBy=Ss,Ln.property=tl,Ln.propertyOf=function(e){return function(t){return null==e?void 0:dr(e,t)}},Ln.pull=zi,Ln.pullAll=Fi,Ln.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Pr(e,t,Ja(n,2)):e},Ln.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Pr(e,t,void 0,n):e},Ln.pullAt=Ri,Ln.range=nl,Ln.rangeRight=rl,Ln.rearg=Lo,Ln.reject=function(e,t){return(Ao(e)?ut:ar)(e,Do(Ja(t,3)))},Ln.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,a=[],i=e.length;for(t=Ja(t,3);++r<i;){var o=e[r];t(o,r,e)&&(n.push(o),a.push(r))}return Yr(e,a),n},Ln.rest=function(e,t){if("function"!=typeof e)throw new ge(i);return Nr(e,t=void 0===t?t:rs(t))},Ln.reverse=Hi,Ln.sampleSize=function(e,t,n){return t=(n?si(e,t,n):void 0===t)?1:rs(t),(Ao(e)?Fn:Fr)(e,t)},Ln.set=function(e,t,n){return null==e?e:Rr(e,t,n)},Ln.setWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Rr(e,t,n,r)},Ln.shuffle=function(e){return(Ao(e)?Rn:qr)(e)},Ln.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&si(e,t,n)?(t=0,n=r):(t=null==t?0:rs(t),n=void 0===n?r:rs(n)),Ur(e,t,n)):[]},Ln.sortBy=mo,Ln.sortedUniq=function(e){return e&&e.length?Gr(e):[]},Ln.sortedUniqBy=function(e,t){return e&&e.length?Gr(e,Ja(t,2)):[]},Ln.split=function(e,t,n){return n&&"number"!=typeof n&&si(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=ss(e))&&("string"==typeof t||null!=t&&!Ko(t))&&!(t=Zr(t))&&zt(e)?ca(Vt(e),0,n):e.split(t,n):[]},Ln.spread=function(e,t){if("function"!=typeof e)throw new ge(i);return t=null==t?0:on(rs(t),0),Nr((function(n){var r=n[t],a=ca(n,0,t);return r&&mt(a,r),it(e,this,a)}))},Ln.tail=function(e){var t=null==e?0:e.length;return t?Ur(e,1,t):[]},Ln.take=function(e,t,n){return e&&e.length?Ur(e,0,(t=n||void 0===t?1:rs(t))<0?0:t):[]},Ln.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Ur(e,(t=r-(t=n||void 0===t?1:rs(t)))<0?0:t,r):[]},Ln.takeRightWhile=function(e,t){return e&&e.length?ta(e,Ja(t,3),!1,!0):[]},Ln.takeWhile=function(e,t){return e&&e.length?ta(e,Ja(t,3)):[]},Ln.tap=function(e,t){return t(e),e},Ln.throttle=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw new ge(i);return Bo(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),bo(e,t,{leading:r,maxWait:t,trailing:a})},Ln.thru=to,Ln.toArray=ts,Ln.toPairs=Cs,Ln.toPairsIn=Ls,Ln.toPath=function(e){return Ao(e)?ft(e,Mi):Zo(e)?[e]:va(Di(ss(e)))},Ln.toPlainObject=os,Ln.transform=function(e,t,n){var r=Ao(e),a=r||Io(e)||Xo(e);if(t=Ja(t,4),null==n){var i=e&&e.constructor;n=a?r?new i:[]:Bo(e)&&Fo(i)?Tn(Ue(e)):{}}return(a?st:lr)(e,(function(e,r,a){return t(n,e,r,a)})),n},Ln.unary=function(e){return _o(e,1)},Ln.union=Bi,Ln.unionBy=qi,Ln.unionWith=Ui,Ln.uniq=function(e){return e&&e.length?Xr(e):[]},Ln.uniqBy=function(e,t){return e&&e.length?Xr(e,Ja(t,2)):[]},Ln.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Xr(e,void 0,t):[]},Ln.unset=function(e,t){return null==e||Qr(e,t)},Ln.unzip=Vi,Ln.unzipWith=Wi,Ln.update=function(e,t,n){return null==e?e:ea(e,t,oa(n))},Ln.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:ea(e,t,oa(n),r)},Ln.values=Ts,Ln.valuesIn=function(e){return null==e?[]:Ot(e,ws(e))},Ln.without=Ki,Ln.words=Fs,Ln.wrap=function(e,t){return So(oa(t),e)},Ln.xor=Gi,Ln.xorBy=Ji,Ln.xorWith=Zi,Ln.zip=Xi,Ln.zipObject=function(e,t){return aa(e||[],t||[],Bn)},Ln.zipObjectDeep=function(e,t){return aa(e||[],t||[],Rr)},Ln.zipWith=Qi,Ln.entries=Cs,Ln.entriesIn=Ls,Ln.extend=cs,Ln.extendWith=us,Js(Ln,Ln),Ln.add=ol,Ln.attempt=Rs,Ln.camelCase=Es,Ln.capitalize=Os,Ln.ceil=sl,Ln.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=is(n))==n?n:0),void 0!==t&&(t=(t=is(t))==t?t:0),Gn(is(e),t,n)},Ln.clone=function(e){return Jn(e,4)},Ln.cloneDeep=function(e){return Jn(e,5)},Ln.cloneDeepWith=function(e,t){return Jn(e,5,t="function"==typeof t?t:void 0)},Ln.cloneWith=function(e,t){return Jn(e,4,t="function"==typeof t?t:void 0)},Ln.conformsTo=function(e,t){return null==t||Zn(e,t,bs(t))},Ln.deburr=js,Ln.defaultTo=function(e,t){return null==e||e!=e?t:e},Ln.divide=ll,Ln.endsWith=function(e,t,n){e=ss(e),t=Zr(t);var r=e.length,a=n=void 0===n?r:Gn(rs(n),0,r);return(n-=t.length)>=0&&e.slice(n,a)==t},Ln.eq=To,Ln.escape=function(e){return(e=ss(e))&&z.test(e)?e.replace(I,It):e},Ln.escapeRegExp=function(e){return(e=ss(e))&&W.test(e)?e.replace(V,"\\$&"):e},Ln.every=function(e,t,n){var r=Ao(e)?ct:nr;return n&&si(e,t,n)&&(t=void 0),r(e,Ja(t,3))},Ln.find=ao,Ln.findIndex=Oi,Ln.findKey=function(e,t){return yt(e,Ja(t,3),lr)},Ln.findLast=io,Ln.findLastIndex=ji,Ln.findLastKey=function(e,t){return yt(e,Ja(t,3),cr)},Ln.floor=cl,Ln.forEach=oo,Ln.forEachRight=so,Ln.forIn=function(e,t){return null==e?e:or(e,Ja(t,3),ws)},Ln.forInRight=function(e,t){return null==e?e:sr(e,Ja(t,3),ws)},Ln.forOwn=function(e,t){return e&&lr(e,Ja(t,3))},Ln.forOwnRight=function(e,t){return e&&cr(e,Ja(t,3))},Ln.get=hs,Ln.gt=Eo,Ln.gte=Oo,Ln.has=function(e,t){return null!=e&&ri(e,t,hr)},Ln.hasIn=_s,Ln.head=Pi,Ln.identity=Vs,Ln.includes=function(e,t,n,r){e=Yo(e)?e:Ts(e),n=n&&!r?rs(n):0;var a=e.length;return n<0&&(n=on(a+n,0)),Jo(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&wt(e,t,n)>-1},Ln.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:rs(n);return a<0&&(a=on(r+a,0)),wt(e,t,a)},Ln.inRange=function(e,t,n){return t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n){return e>=sn(t,n)&&e<on(t,n)}(e=is(e),t,n)},Ln.invoke=ys,Ln.isArguments=jo,Ln.isArray=Ao,Ln.isArrayBuffer=Po,Ln.isArrayLike=Yo,Ln.isArrayLikeObject=$o,Ln.isBoolean=function(e){return!0===e||!1===e||qo(e)&&fr(e)==u},Ln.isBuffer=Io,Ln.isDate=No,Ln.isElement=function(e){return qo(e)&&1===e.nodeType&&!Wo(e)},Ln.isEmpty=function(e){if(null==e)return!0;if(Yo(e)&&(Ao(e)||"string"==typeof e||"function"==typeof e.splice||Io(e)||Xo(e)||jo(e)))return!e.length;var t=ni(e);if(t==h||t==y)return!e.size;if(di(e))return!Dr(e).length;for(var n in e)if(De.call(e,n))return!1;return!0},Ln.isEqual=function(e,t){return br(e,t)},Ln.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?br(e,t,void 0,n):!!r},Ln.isError=zo,Ln.isFinite=function(e){return"number"==typeof e&&nn(e)},Ln.isFunction=Fo,Ln.isInteger=Ro,Ln.isLength=Ho,Ln.isMap=Uo,Ln.isMatch=function(e,t){return e===t||wr(e,t,Xa(t))},Ln.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,wr(e,t,Xa(t),n)},Ln.isNaN=function(e){return Vo(e)&&e!=+e},Ln.isNative=function(e){if(ui(e))throw new pe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return xr(e)},Ln.isNil=function(e){return null==e},Ln.isNull=function(e){return null===e},Ln.isNumber=Vo,Ln.isObject=Bo,Ln.isObjectLike=qo,Ln.isPlainObject=Wo,Ln.isRegExp=Ko,Ln.isSafeInteger=function(e){return Ro(e)&&e>=-9007199254740991&&e<=9007199254740991},Ln.isSet=Go,Ln.isString=Jo,Ln.isSymbol=Zo,Ln.isTypedArray=Xo,Ln.isUndefined=function(e){return void 0===e},Ln.isWeakMap=function(e){return qo(e)&&ni(e)==x},Ln.isWeakSet=function(e){return qo(e)&&"[object WeakSet]"==fr(e)},Ln.join=function(e,t){return null==e?"":rn.call(e,t)},Ln.kebabCase=As,Ln.last=Ni,Ln.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r;return void 0!==n&&(a=(a=rs(n))<0?on(r+a,0):sn(a,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):bt(e,kt,a,!0)},Ln.lowerCase=Ps,Ln.lowerFirst=Ys,Ln.lt=Qo,Ln.lte=es,Ln.max=function(e){return e&&e.length?rr(e,Vs,mr):void 0},Ln.maxBy=function(e,t){return e&&e.length?rr(e,Ja(t,2),mr):void 0},Ln.mean=function(e){return Dt(e,Vs)},Ln.meanBy=function(e,t){return Dt(e,Ja(t,2))},Ln.min=function(e){return e&&e.length?rr(e,Vs,Sr):void 0},Ln.minBy=function(e,t){return e&&e.length?rr(e,Ja(t,2),Sr):void 0},Ln.stubArray=al,Ln.stubFalse=il,Ln.stubObject=function(){return{}},Ln.stubString=function(){return""},Ln.stubTrue=function(){return!0},Ln.multiply=dl,Ln.nth=function(e,t){return e&&e.length?Or(e,rs(t)):void 0},Ln.noConflict=function(){return We._===this&&(We._=Te),this},Ln.noop=Zs,Ln.now=ho,Ln.pad=function(e,t,n){e=ss(e);var r=(t=rs(t))?Ut(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return ja(Qt(a),n)+e+ja(Xt(a),n)},Ln.padEnd=function(e,t,n){e=ss(e);var r=(t=rs(t))?Ut(e):0;return t&&r<t?e+ja(t-r,n):e},Ln.padStart=function(e,t,n){e=ss(e);var r=(t=rs(t))?Ut(e):0;return t&&r<t?ja(t-r,n)+e:e},Ln.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),cn(ss(e).replace(G,""),t||0)},Ln.random=function(e,t,n){if(n&&"boolean"!=typeof n&&si(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=ns(e),void 0===t?(t=e,e=0):t=ns(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var a=un();return sn(e+a*(t-e+Be("1e-"+((a+"").length-1))),t)}return $r(e,t)},Ln.reduce=function(e,t,n){var r=Ao(e)?ht:Ct,a=arguments.length<3;return r(e,Ja(t,4),n,a,er)},Ln.reduceRight=function(e,t,n){var r=Ao(e)?_t:Ct,a=arguments.length<3;return r(e,Ja(t,4),n,a,tr)},Ln.repeat=function(e,t,n){return t=(n?si(e,t,n):void 0===t)?1:rs(t),Ir(ss(e),t)},Ln.replace=function(){var e=arguments,t=ss(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Ln.result=function(e,t,n){var r=-1,a=(t=sa(t,e)).length;for(a||(a=1,e=void 0);++r<a;){var i=null==e?void 0:e[Mi(t[r])];void 0===i&&(r=a,i=n),e=Fo(i)?i.call(e):i}return e},Ln.round=pl,Ln.runInContext=e,Ln.sample=function(e){return(Ao(e)?zn:zr)(e)},Ln.size=function(e){if(null==e)return 0;if(Yo(e))return Jo(e)?Ut(e):e.length;var t=ni(e);return t==h||t==y?e.size:Dr(e).length},Ln.snakeCase=$s,Ln.some=function(e,t,n){var r=Ao(e)?vt:Vr;return n&&si(e,t,n)&&(t=void 0),r(e,Ja(t,3))},Ln.sortedIndex=function(e,t){return Wr(e,t)},Ln.sortedIndexBy=function(e,t,n){return Kr(e,t,Ja(n,2))},Ln.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Wr(e,t);if(r<n&&To(e[r],t))return r}return-1},Ln.sortedLastIndex=function(e,t){return Wr(e,t,!0)},Ln.sortedLastIndexBy=function(e,t,n){return Kr(e,t,Ja(n,2),!0)},Ln.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Wr(e,t,!0)-1;if(To(e[n],t))return n}return-1},Ln.startCase=Is,Ln.startsWith=function(e,t,n){return e=ss(e),n=null==n?0:Gn(rs(n),0,e.length),t=Zr(t),e.slice(n,n+t.length)==t},Ln.subtract=fl,Ln.sum=function(e){return e&&e.length?Lt(e,Vs):0},Ln.sumBy=function(e,t){return e&&e.length?Lt(e,Ja(t,2)):0},Ln.template=function(e,t,n){var r=Ln.templateSettings;n&&si(e,t,n)&&(t=void 0),e=ss(e),t=us({},t,r,Fa);var a,i,o=us({},t.imports,r.imports,Fa),s=bs(o),l=Ot(o,s),c=0,u=t.interpolate||ue,d="__p += '",p=_e((t.escape||ue).source+"|"+u.source+"|"+(u===H?ne:ue).source+"|"+(t.evaluate||ue).source+"|$","g"),f="//# sourceURL="+(De.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ze+"]")+"\n";e.replace(p,(function(t,n,r,o,s,l){return r||(r=o),d+=e.slice(c,l).replace(de,Nt),n&&(a=!0,d+="' +\n__e("+n+") +\n'"),s&&(i=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),d+="';\n";var m=De.call(t,"variable")&&t.variable;m||(d="with (obj) {\n"+d+"\n}\n"),d=(i?d.replace(A,""):d).replace(P,"$1").replace(Y,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var h=Rs((function(){return fe(s,f+"return "+d).apply(void 0,l)}));if(h.source=d,zo(h))throw h;return h},Ln.times=function(e,t){if((e=rs(e))<1||e>9007199254740991)return[];var n=4294967295,r=sn(e,4294967295);e-=4294967295;for(var a=Tt(r,t=Ja(t));++n<e;)t(n);return a},Ln.toFinite=ns,Ln.toInteger=rs,Ln.toLength=as,Ln.toLower=function(e){return ss(e).toLowerCase()},Ln.toNumber=is,Ln.toSafeInteger=function(e){return e?Gn(rs(e),-9007199254740991,9007199254740991):0===e?e:0},Ln.toString=ss,Ln.toUpper=function(e){return ss(e).toUpperCase()},Ln.trim=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(K,"");if(!e||!(t=Zr(t)))return e;var r=Vt(e),a=Vt(t);return ca(r,At(r,a),Pt(r,a)+1).join("")},Ln.trimEnd=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(J,"");if(!e||!(t=Zr(t)))return e;var r=Vt(e);return ca(r,0,Pt(r,Vt(t))+1).join("")},Ln.trimStart=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(G,"");if(!e||!(t=Zr(t)))return e;var r=Vt(e);return ca(r,At(r,Vt(t))).join("")},Ln.truncate=function(e,t){var n=30,r="...";if(Bo(t)){var a="separator"in t?t.separator:a;n="length"in t?rs(t.length):n,r="omission"in t?Zr(t.omission):r}var i=(e=ss(e)).length;if(zt(e)){var o=Vt(e);i=o.length}if(n>=i)return e;var s=n-Ut(r);if(s<1)return r;var l=o?ca(o,0,s).join(""):e.slice(0,s);if(void 0===a)return l+r;if(o&&(s+=l.length-s),Ko(a)){if(e.slice(s).search(a)){var c,u=l;for(a.global||(a=_e(a.source,ss(re.exec(a))+"g")),a.lastIndex=0;c=a.exec(u);)var d=c.index;l=l.slice(0,void 0===d?s:d)}}else if(e.indexOf(Zr(a),s)!=s){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+r},Ln.unescape=function(e){return(e=ss(e))&&N.test(e)?e.replace($,Wt):e},Ln.uniqueId=function(e){var t=++Me;return ss(e)+t},Ln.upperCase=Ns,Ln.upperFirst=zs,Ln.each=oo,Ln.eachRight=so,Ln.first=Pi,Js(Ln,(ul={},lr(Ln,(function(e,t){De.call(Ln.prototype,t)||(ul[t]=e)})),ul),{chain:!1}),Ln.VERSION="4.17.20",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Ln[e].placeholder=Ln})),st(["drop","take"],(function(e,t){jn.prototype[e]=function(n){n=void 0===n?1:on(rs(n),0);var r=this.__filtered__&&!t?new jn(this):this.clone();return r.__filtered__?r.__takeCount__=sn(n,r.__takeCount__):r.__views__.push({size:sn(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},jn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;jn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ja(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");jn.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");jn.prototype[e]=function(){return this.__filtered__?new jn(this):this[n](1)}})),jn.prototype.compact=function(){return this.filter(Vs)},jn.prototype.find=function(e){return this.filter(e).head()},jn.prototype.findLast=function(e){return this.reverse().find(e)},jn.prototype.invokeMap=Nr((function(e,t){return"function"==typeof e?new jn(this):this.map((function(n){return gr(n,e,t)}))})),jn.prototype.reject=function(e){return this.filter(Do(Ja(e)))},jn.prototype.slice=function(e,t){e=rs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new jn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=rs(t))<0?n.dropRight(-t):n.take(t-e)),n)},jn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},jn.prototype.toArray=function(){return this.take(4294967295)},lr(jn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=Ln[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);a&&(Ln.prototype[t]=function(){var t=this.__wrapped__,o=r?[1]:arguments,s=t instanceof jn,l=o[0],c=s||Ao(t),u=function(e){var t=a.apply(Ln,mt([e],o));return r&&d?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(s=c=!1);var d=this.__chain__,p=!!this.__actions__.length,f=i&&!d,m=s&&!p;if(!i&&c){t=m?t:new jn(this);var h=e.apply(t,o);return h.__actions__.push({func:to,args:[u],thisArg:void 0}),new On(h,d)}return f&&m?e.apply(this,o):(h=this.thru(u),f?r?h.value()[0]:h.value():h)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ye[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Ln.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var a=this.value();return t.apply(Ao(a)?a:[],e)}return this[n]((function(n){return t.apply(Ao(n)?n:[],e)}))}})),lr(jn.prototype,(function(e,t){var n=Ln[t];if(n){var r=n.name+"";De.call(yn,r)||(yn[r]=[]),yn[r].push({name:t,func:n})}})),yn[La(void 0,2).name]=[{name:"wrapper",func:void 0}],jn.prototype.clone=function(){var e=new jn(this.__wrapped__);return e.__actions__=va(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=va(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=va(this.__views__),e},jn.prototype.reverse=function(){if(this.__filtered__){var e=new jn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},jn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ao(e),r=t<0,a=n?e.length:0,i=function(e,t,n){var r=-1,a=n.length;for(;++r<a;){var i=n[r],o=i.size;switch(i.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=sn(t,e+o);break;case"takeRight":e=on(e,t-o)}}return{start:e,end:t}}(0,a,this.__views__),o=i.start,s=i.end,l=s-o,c=r?s:o-1,u=this.__iteratees__,d=u.length,p=0,f=sn(l,this.__takeCount__);if(!n||!r&&a==l&&f==l)return na(e,this.__actions__);var m=[];e:for(;l--&&p<f;){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}}m[p++]=_}return m},Ln.prototype.at=no,Ln.prototype.chain=function(){return eo(this)},Ln.prototype.commit=function(){return new On(this.value(),this.__chain__)},Ln.prototype.next=function(){void 0===this.__values__&&(this.__values__=ts(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Ln.prototype.plant=function(e){for(var t,n=this;n instanceof En;){var r=Ci(n);r.__index__=0,r.__values__=void 0,t?a.__wrapped__=r:t=r;var a=r;n=n.__wrapped__}return a.__wrapped__=e,t},Ln.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof jn){var t=e;return this.__actions__.length&&(t=new jn(this)),(t=t.reverse()).__actions__.push({func:to,args:[Hi],thisArg:void 0}),new On(t,this.__chain__)}return this.thru(Hi)},Ln.prototype.toJSON=Ln.prototype.valueOf=Ln.prototype.value=function(){return na(this.__wrapped__,this.__actions__)},Ln.prototype.first=Ln.prototype.head,Xe&&(Ln.prototype[Xe]=function(){return this}),Ln}();We._=Kt,void 0===(a=function(){return Kt}.call(t,n,t,r))||(r.exports=a)}).call(this)}).call(this,n("yLpj"),n("YuTi")(e))},M2AK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("eO9T");t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.withParams)({type:"and"},(function(){for(var e=this,n=arguments.length,r=Array(n),a=0;a<n;a++)r[a]=arguments[a];return t.length>0&&t.reduce((function(t,n){return t&&n.apply(e,r)}),!0)}))}},MLWZ:function(e,t,n){"use strict";var r=n("xTJ+");function a(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var o=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),o.push(a(t)+"="+a(e))})))})),i=o.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},MMmD:function(e,t,n){var r=n("lSCD"),a=n("shjB");e.exports=function(e){return null!=e&&a(e.length)&&!r(e)}},"MO+k":function(e,t,n){e.exports=function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t={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]},n=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[t[r]]=r);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in a)if(a.hasOwnProperty(i)){if(!("channels"in a[i]))throw new Error("missing channels property: "+i);if(!("labels"in a[i]))throw new Error("missing channel labels property: "+i);if(a[i].labels.length!==a[i].channels)throw new Error("channel and label counts mismatch: "+i);var o=a[i].channels,s=a[i].labels;delete a[i].channels,delete a[i].labels,Object.defineProperty(a[i],"channels",{value:o}),Object.defineProperty(a[i],"labels",{value:s})}a.rgb.hsl=function(e){var t,n,r=e[0]/255,a=e[1]/255,i=e[2]/255,o=Math.min(r,a,i),s=Math.max(r,a,i),l=s-o;return s===o?t=0:r===s?t=(a-i)/l:a===s?t=2+(i-r)/l:i===s&&(t=4+(r-a)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(o+s)/2,[t,100*(s===o?0:n<=.5?l/(s+o):l/(2-s-o)),100*n]},a.rgb.hsv=function(e){var t,n,r,a,i,o=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(o,s,l),u=c-Math.min(o,s,l),d=function(e){return(c-e)/6/u+.5};return 0===u?a=i=0:(i=u/c,t=d(o),n=d(s),r=d(l),o===c?a=r-n:s===c?a=1/3+t-r:l===c&&(a=2/3+n-t),a<0?a+=1:a>1&&(a-=1)),[360*a,100*i,100*c]},a.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[a.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,r))*100,100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},a.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,a=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-a)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-a-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var r=n[e];if(r)return r;var a,i,o,s=1/0;for(var l in t)if(t.hasOwnProperty(l)){var c=t[l],u=(i=e,o=c,Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)+Math.pow(i[2]-o[2],2));u<s&&(s=u,a=l)}return a},a.keyword.rgb=function(e){return t[e]},a.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.hsl.rgb=function(e){var t,n,r,a,i,o=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[i=255*l,i,i];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),a=[0,0,0];for(var c=0;c<3;c++)(r=o+1/3*-(c-1))<0&&r++,r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,a[c]=255*i;return a},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,a=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,a*=i<=1?i:2-i,[t,100*(0===r?2*a/(i+a):2*n/(r+n)),(r+n)/2*100]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,a=Math.floor(t)%6,i=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*i),l=255*r*(1-n*(1-i));switch(r*=255,a){case 0:return[r,l,o];case 1:return[s,r,o];case 2:return[o,r,l];case 3:return[o,s,r];case 4:return[l,o,r];case 5:return[r,o,s]}},a.hsv.hsl=function(e){var t,n,r,a=e[0],i=e[1]/100,o=e[2]/100,s=Math.max(o,.01);return r=(2-i)*o,n=i*s,[a,100*(n=(n/=(t=(2-i)*s)<=1?t:2-t)||0),100*(r/=2)]},a.hwb.rgb=function(e){var t,n,r,a,i,o,s,l=e[0]/360,c=e[1]/100,u=e[2]/100,d=c+u;switch(d>1&&(c/=d,u/=d),r=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(r=1-r),a=c+r*((n=1-u)-c),t){default:case 6:case 0:i=n,o=a,s=c;break;case 1:i=a,o=n,s=c;break;case 2:i=c,o=n,s=a;break;case 3:i=c,o=a,s=n;break;case 4:i=a,o=c,s=n;break;case 5:i=n,o=c,s=a}return[255*i,255*o,255*s]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a))]},a.xyz.rgb=function(e){var t,n,r,a=e[0]/100,i=e[1]/100,o=e[2]/100;return n=-.9689*a+1.8758*i+.0415*o,r=.0557*a+-.204*i+1.057*o,t=(t=3.2406*a+-1.5372*i+-.4986*o)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(e){var t,n,r,a=e[0];t=e[1]/500+(n=(a+16)/116),r=n-e[2]/200;var i=Math.pow(n,3),o=Math.pow(t,3),s=Math.pow(r,3);return n=i>.008856?i:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},a.lab.lch=function(e){var t,n=e[0],r=e[1],a=e[2];return(t=360*Math.atan2(a,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+a*a),t]},a.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(o+=60),o},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,a=e[2]/255,i=Math.max(Math.max(n,r),a),o=Math.min(Math.min(n,r),a),s=i-o;return t=s<=0?0:i===n?(r-a)/s%6:i===r?2+(a-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?o/(1-s):0)]},a.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,a=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(a=(n-.5*r)/(1-r)),[e[0],100*r,100*a]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],100*r,100*a]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var a,i=[0,0,0],o=t%1*6,s=o%1,l=1-s;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=l,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=l,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=l}return a=(1-n)*r,[255*(n*i[0]+a),255*(n*i[1]+a),255*(n*i[2]+a)]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},a.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},a.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],100*r,100*a]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function r(e){var t=function(){for(var e={},t=Object.keys(n),r=t.length,a=0;a<r;a++)e[t[a]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;)for(var a=r.pop(),i=Object.keys(n[a]),o=i.length,s=0;s<o;s++){var l=i[s],c=t[l];-1===c.distance&&(c.distance=t[a].distance+1,c.parent=a,r.unshift(l))}return t}function a(e,t){return function(n){return t(e(n))}}function i(e,t){for(var r=[t[e].parent,e],i=n[t[e].parent][e],o=t[e].parent;t[o].parent;)r.unshift(t[o].parent),i=a(n[t[o].parent][o],i),o=t[o].parent;return i.conversion=r,i}n.rgb,n.hsl,n.hsv,n.hwb,n.cmyk,n.xyz,n.lab,n.lch,n.hex,n.keyword,n.ansi16,n.ansi256,n.hcg,n.apple,n.gray;var o={};Object.keys(n).forEach((function(e){o[e]={},Object.defineProperty(o[e],"channels",{value:n[e].channels}),Object.defineProperty(o[e],"labels",{value:n[e].labels});var t=function(e){for(var t=r(e),n={},a=Object.keys(t),o=a.length,s=0;s<o;s++){var l=a[s];null!==t[l].parent&&(n[l]=i(l,t))}return n}(e);Object.keys(t).forEach((function(n){var r=t[n];o[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,a=0;a<r;a++)n[a]=Math.round(n[a]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(r),o[e][n].raw=function(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}(r)}))}));var s=o,l={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]},c={getRgba:u,getHsla:d,getRgb:function(e){var t=u(e);return t&&t.slice(0,3)},getHsl:function(e){var t=d(e);return t&&t.slice(0,3)},getHwb:p,getAlpha:function(e){var t=u(e);return t||(t=d(e))||(t=p(e))?t[3]:void 0},hexString:function(e,t){return t=void 0!==t&&3===e.length?t:e[3],"#"+v(e[0])+v(e[1])+v(e[2])+(t>=0&&t<1?v(Math.round(255*t)):"")},rgbString:function(e,t){return t<1||e[3]&&e[3]<1?f(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:f,percentString:function(e,t){if(t<1||e[3]&&e[3]<1)return m(e,t);var n=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),a=Math.round(e[2]/255*100);return"rgb("+n+"%, "+r+"%, "+a+"%)"},percentaString:m,hslString:function(e,t){return t<1||e[3]&&e[3]<1?h(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:h,hwbString:function(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:"")+")"},keyword:function(e){return g[e.slice(0,3)]}};function u(e){if(e){var t=[0,0,0],n=1,r=e.match(/^#([a-fA-F0-9]{3,4})$/i),a="";if(r){a=(r=r[1])[3];for(var i=0;i<t.length;i++)t[i]=parseInt(r[i]+r[i],16);a&&(n=Math.round(parseInt(a+a,16)/255*100)/100)}else if(r=e.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)){for(a=r[2],r=r[1],i=0;i<t.length;i++)t[i]=parseInt(r.slice(2*i,2*i+2),16);a&&(n=Math.round(parseInt(a,16)/255*100)/100)}else if(r=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(i=0;i<t.length;i++)t[i]=parseInt(r[i+1]);n=parseFloat(r[4])}else if(r=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(i=0;i<t.length;i++)t[i]=Math.round(2.55*parseFloat(r[i+1]));n=parseFloat(r[4])}else if(r=e.match(/(\w+)/)){if("transparent"==r[1])return[0,0,0,0];if(!(t=l[r[1]]))return}for(i=0;i<t.length;i++)t[i]=_(t[i],0,255);return n=n||0==n?_(n,0,1):1,t[3]=n,t}}function d(e){if(e){var t=e.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[_(parseInt(t[1]),0,360),_(parseFloat(t[2]),0,100),_(parseFloat(t[3]),0,100),_(isNaN(n)?1:n,0,1)]}}}function p(e){if(e){var t=e.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[_(parseInt(t[1]),0,360),_(parseFloat(t[2]),0,100),_(parseFloat(t[3]),0,100),_(isNaN(n)?1:n,0,1)]}}}function f(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"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function h(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function _(e,t,n){return Math.min(Math.max(t,e),n)}function v(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var g={};for(var y in l)g[l[y]]=y;var b=function(e){return e instanceof b?e:this instanceof b?(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=c.getRgba(e))?this.setValues("rgb",t):(t=c.getHsla(e))?this.setValues("hsl",t):(t=c.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 b(e);var t};b.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 c.hexString(this.values.rgb)},rgbString:function(){return c.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return c.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return c.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return c.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return c.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return c.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return c.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;n<e.length;n++){var r=e[n]/255;t[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=e,r=void 0===t?.5:t,a=2*r-1,i=this.alpha()-n.alpha(),o=((a*i==-1?a:(a+i)/(1+a*i))+1)/2,s=1-o;return this.rgb(o*this.red()+s*n.red(),o*this.green()+s*n.green(),o*this.blue()+s*n.blue()).alpha(this.alpha()*r+n.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new b,r=this.values,a=n.values;for(var i in r)r.hasOwnProperty(i)&&(e=r[i],"[object Array]"===(t={}.toString.call(e))?a[i]=e.slice(0):"[object Number]"===t?a[i]=e:console.error("unexpected color value:",e));return n}},b.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},b.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},b.prototype.getValues=function(e){for(var t=this.values,n={},r=0;r<e.length;r++)n[e.charAt(r)]=t[e][r];return 1!==t.alpha&&(n.a=t.alpha),n},b.prototype.setValues=function(e,t){var n,r,a=this.values,i=this.spaces,o=this.maxes,l=1;if(this.valid=!0,"alpha"===e)l=t;else if(t.length)a[e]=t.slice(0,e.length),l=t[e.length];else if(void 0!==t[e.charAt(0)]){for(n=0;n<e.length;n++)a[e][n]=t[e.charAt(n)];l=t.a}else if(void 0!==t[i[e][0]]){var c=i[e];for(n=0;n<e.length;n++)a[e][n]=t[c[n]];l=t.alpha}if(a.alpha=Math.max(0,Math.min(1,void 0===l?a.alpha:l)),"alpha"===e)return!1;for(n=0;n<e.length;n++)r=Math.max(0,Math.min(o[e][n],a[e][n])),a[e][n]=Math.round(r);for(var u in i)u!==e&&(a[u]=s[e][u](a[e]));return!0},b.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)},b.prototype.setChannel=function(e,t,n){var r=this.values[e];return void 0===n?r[t]:(n===r[t]||(r[t]=n,this.setValues(e,r)),this)},"undefined"!=typeof window&&(window.Color=b);var w=b;function x(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}var k={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 k.valueOrDefault(k.isArray(e)?e[t]:e,n)},callback:function(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)},each:function(e,t,n,r){var a,i,o;if(k.isArray(e))if(i=e.length,r)for(a=i-1;a>=0;a--)t.call(n,e[a],a);else for(a=0;a<i;a++)t.call(n,e[a],a);else if(k.isObject(e))for(i=(o=Object.keys(e)).length,a=0;a<i;a++)t.call(n,e[o[a]],o[a])},arrayEquals:function(e,t){var n,r,a,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(a=e[n],i=t[n],a instanceof Array&&i instanceof Array){if(!k.arrayEquals(a,i))return!1}else if(a!==i)return!1;return!0},clone:function(e){if(k.isArray(e))return e.map(k.clone);if(k.isObject(e)){for(var t=Object.create(e),n=Object.keys(e),r=n.length,a=0;a<r;++a)t[n[a]]=k.clone(e[n[a]]);return t}return e},_merger:function(e,t,n,r){if(x(e)){var a=t[e],i=n[e];k.isObject(a)&&k.isObject(i)?k.merge(a,i,r):t[e]=k.clone(i)}},_mergerIf:function(e,t,n){if(x(e)){var r=t[e],a=n[e];k.isObject(r)&&k.isObject(a)?k.mergeIf(r,a):t.hasOwnProperty(e)||(t[e]=k.clone(a))}},merge:function(e,t,n){var r,a,i,o,s,l=k.isArray(t)?t:[t],c=l.length;if(!k.isObject(e))return e;for(r=(n=n||{}).merger||k._merger,a=0;a<c;++a)if(t=l[a],k.isObject(t))for(s=0,o=(i=Object.keys(t)).length;s<o;++s)r(i[s],e,t,n);return e},mergeIf:function(e,t){return k.merge(e,t,{merger:k._mergerIf})},extend:Object.assign||function(e){return k.merge(e,[].slice.call(arguments,1),{merger:function(e,t,n){t[e]=n[e]}})},inherits:function(e){var t=this,n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},r=function(){this.constructor=n};return r.prototype=t.prototype,n.prototype=new r,n.extend=k.inherits,e&&k.extend(n.prototype,e),n.__super__=t.prototype,n},_deprecated:function(e,t,n,r){void 0!==t&&console.warn(e+': "'+n+'" is deprecated. Please use "'+r+'" instead')}},D=k;k.callCallback=k.callback,k.indexOf=function(e,t,n){return Array.prototype.indexOf.call(e,t,n)},k.getValueOrDefault=k.valueOrDefault,k.getValueAtIndexOrDefault=k.valueAtIndexOrDefault;var M={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),-r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.45),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),e<1?r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-M.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*M.easeInBounce(2*e):.5*M.easeOutBounce(2*e-1)+.5}},S={effects:M};D.easingEffects=M;var C=Math.PI,L=C/180,T=2*C,E=C/2,O=C/4,j=2*C/3,A={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,r,a,i){if(i){var o=Math.min(i,a/2,r/2),s=t+o,l=n+o,c=t+r-o,u=n+a-o;e.moveTo(t,l),s<c&&l<u?(e.arc(s,l,o,-C,-E),e.arc(c,l,o,-E,0),e.arc(c,u,o,0,E),e.arc(s,u,o,E,C)):s<c?(e.moveTo(s,n),e.arc(c,l,o,-E,E),e.arc(s,l,o,E,C+E)):l<u?(e.arc(s,l,o,-C,0),e.arc(s,u,o,0,C)):e.arc(s,l,o,-C,C),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,r,a)},drawPoint:function(e,t,n,r,a,i){var o,s,l,c,u,d=(i||0)*L;if(t&&"object"==typeof t&&("[object HTMLImageElement]"===(o=t.toString())||"[object HTMLCanvasElement]"===o))return e.save(),e.translate(r,a),e.rotate(d),e.drawImage(t,-t.width/2,-t.height/2,t.width,t.height),void e.restore();if(!(isNaN(n)||n<=0)){switch(e.beginPath(),t){default:e.arc(r,a,n,0,T),e.closePath();break;case"triangle":e.moveTo(r+Math.sin(d)*n,a-Math.cos(d)*n),d+=j,e.lineTo(r+Math.sin(d)*n,a-Math.cos(d)*n),d+=j,e.lineTo(r+Math.sin(d)*n,a-Math.cos(d)*n),e.closePath();break;case"rectRounded":c=n-(u=.516*n),s=Math.cos(d+O)*c,l=Math.sin(d+O)*c,e.arc(r-s,a-l,u,d-C,d-E),e.arc(r+l,a-s,u,d-E,d),e.arc(r+s,a+l,u,d,d+E),e.arc(r-l,a+s,u,d+E,d+C),e.closePath();break;case"rect":if(!i){c=Math.SQRT1_2*n,e.rect(r-c,a-c,2*c,2*c);break}d+=O;case"rectRot":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(r-s,a-l),e.lineTo(r+l,a-s),e.lineTo(r+s,a+l),e.lineTo(r-l,a+s),e.closePath();break;case"crossRot":d+=O;case"cross":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(r-s,a-l),e.lineTo(r+s,a+l),e.moveTo(r+l,a-s),e.lineTo(r-l,a+s);break;case"star":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(r-s,a-l),e.lineTo(r+s,a+l),e.moveTo(r+l,a-s),e.lineTo(r-l,a+s),d+=O,s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(r-s,a-l),e.lineTo(r+s,a+l),e.moveTo(r+l,a-s),e.lineTo(r-l,a+s);break;case"line":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(r-s,a-l),e.lineTo(r+s,a+l);break;case"dash":e.moveTo(r,a),e.lineTo(r+Math.cos(d)*n,a+Math.sin(d)*n)}e.fill(),e.stroke()}},_isPointInArea:function(e,t){return e.x>t.left-1e-6&&e.x<t.right+1e-6&&e.y>t.top-1e-6&&e.y<t.bottom+1e-6},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,n,r){var a=n.steppedLine;if(a){if("middle"===a){var i=(t.x+n.x)/2;e.lineTo(i,r?n.y:t.y),e.lineTo(i,r?t.y:n.y)}else"after"===a&&!r||"after"!==a&&r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}else n.tension?e.bezierCurveTo(r?t.controlPointPreviousX:t.controlPointNextX,r?t.controlPointPreviousY:t.controlPointNextY,r?n.controlPointNextX:n.controlPointPreviousX,r?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):e.lineTo(n.x,n.y)}},P=A;D.clear=A.clear,D.drawRoundedRectangle=function(e){e.beginPath(),A.roundedRect.apply(A,arguments)};var Y={_set:function(e,t){return D.merge(this[e]||(this[e]={}),t)}};Y._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 $=Y,I=D.valueOrDefault,N={toLineHeight:function(e,t){var n=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e},toPadding:function(e){var t,n,r,a;return D.isObject(e)?(t=+e.top||0,n=+e.right||0,r=+e.bottom||0,a=+e.left||0):t=n=r=a=+e||0,{top:t,right:n,bottom:r,left:a,height:t+r,width:a+n}},_parseFont:function(e){var t=$.global,n=I(e.fontSize,t.defaultFontSize),r={family:I(e.fontFamily,t.defaultFontFamily),lineHeight:D.options.toLineHeight(I(e.lineHeight,t.defaultLineHeight),n),size:n,style:I(e.fontStyle,t.defaultFontStyle),weight:null,string:""};return r.string=function(e){return!e||D.isNullOrUndef(e.size)||D.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(r),r},resolve:function(e,t,n,r){var a,i,o,s=!0;for(a=0,i=e.length;a<i;++a)if(void 0!==(o=e[a])&&(void 0!==t&&"function"==typeof o&&(o=o(t),s=!1),void 0!==n&&D.isArray(o)&&(o=o[n],s=!1),void 0!==o))return r&&!s&&(r.cacheable=!1),o}},z={_factorize:function(e){var t,n=[],r=Math.sqrt(e);for(t=1;t<r;t++)e%t==0&&(n.push(t),n.push(e/t));return r===(0|r)&&n.push(r),n.sort((function(e,t){return e-t})).pop(),n},log10:Math.log10||function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t);return e===Math.pow(10,n)?n:t}},F=z;D.log10=z.log10;var R=D,H=S,B=P,q=N,U=F,V={getRtlAdapter:function(e,t,n){return e?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}}}(t,n):{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}}},overrideTextDirection:function(e,t){var n,r;"ltr"!==t&&"rtl"!==t||(r=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)},restoreTextDirection:function(e){var t=e.prevTextDirection;void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}};R.easing=H,R.canvas=B,R.options=q,R.math=U,R.rtl=V;var W=function(e){R.extend(this,e),this.initialize.apply(this,arguments)};R.extend(W.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=R.extend({},e._model)),e._start={},e},transition:function(e){var t=this,n=t._model,r=t._start,a=t._view;return n&&1!==e?(a||(a=t._view={}),r||(r=t._start={}),function(e,t,n,r){var a,i,o,s,l,c,u,d,p,f=Object.keys(n);for(a=0,i=f.length;a<i;++a)if(c=n[o=f[a]],t.hasOwnProperty(o)||(t[o]=c),(s=t[o])!==c&&"_"!==o[0]){if(e.hasOwnProperty(o)||(e[o]=s),(u=typeof c)==typeof(l=e[o]))if("string"===u){if((d=w(l)).valid&&(p=w(c)).valid){t[o]=p.mix(d,r).rgbString();continue}}else if(R.isFinite(l)&&R.isFinite(c)){t[o]=l+(c-l)*r;continue}t[o]=c}}(r,a,n,e),t):(t._view=R.extend({},n),t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return R.isNumber(this._model.x)&&R.isNumber(this._model.y)}}),W.extend=R.inherits;var K=W,G=K.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),J=G;Object.defineProperty(G.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(G.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}}),$._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:R.noop,onComplete:R.noop}});var Z={animations:[],request:null,addAnimation:function(e,t,n,r){var a,i,o=this.animations;for(t.chart=e,t.startTime=Date.now(),t.duration=n,r||(e.animating=!0),a=0,i=o.length;a<i;++a)if(o[a].chart===e)return void(o[a]=t);o.push(t),1===o.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=R.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=R.requestAnimFrame.call(window,(function(){e.request=null,e.startDigest()})))},startDigest:function(){this.advance(),this.animations.length>0&&this.requestAnimationFrame()},advance:function(){for(var e,t,n,r,a=this.animations,i=0;i<a.length;)t=(e=a[i]).chart,n=e.numSteps,r=Math.floor((Date.now()-e.startTime)/e.duration*n)+1,e.currentStep=Math.min(r,n),R.callback(e.render,[t,e],t),R.callback(e.onAnimationProgress,[e],t),e.currentStep>=n?(R.callback(e.onAnimationComplete,[e],t),t.animating=!1,a.splice(i,1)):++i}},X=R.options.resolve,Q=["push","pop","shift","splice","unshift"];function ee(e,t){var n=e._chartjs;if(n){var r=n.listeners,a=r.indexOf(t);-1!==a&&r.splice(a,1),r.length>0||(Q.forEach((function(t){delete e[t]})),delete e._chartjs)}}var te=function(e,t){this.initialize(e,t)};R.extend(te.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.getMeta(),t=this.chart,n=t.scales,r=this.getDataset(),a=t.options.scales;null!==e.xAxisID&&e.xAxisID in n&&!r.xAxisID||(e.xAxisID=r.xAxisID||a.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in n&&!r.yAxisID||(e.yAxisID=r.yAxisID||a.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&&ee(this._data,this)},createMetaDataset:function(){var e=this.datasetElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(e){var t=this.dataElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index,_index:e})},addElements:function(){var e,t,n=this.getMeta(),r=this.getDataset().data||[],a=n.data;for(e=0,t=r.length;e<t;++e)a[e]=a[e]||this.createMetaData(e);n.dataset=n.dataset||this.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,t,n=this,r=n.getDataset(),a=r.data||(r.data=[]);n._data!==a&&(n._data&&ee(n._data,n),a&&Object.isExtensible(a)&&(t=n,(e=a)._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Q.forEach((function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),a=r.apply(this,t);return R.each(e._chartjs.listeners,(function(e){"function"==typeof e[n]&&e[n].apply(e,t)})),a}})})))),n._data=a),n.resyncElements()},_configure:function(){this._config=R.merge(Object.create(null),[this.chart.options.datasets[this._type],this.getDataset()],{merger:function(e,t,n){"_meta"!==e&&"data"!==e&&R._merger(e,t,n)}})},_update:function(e){this._configure(),this._cachedDataOpts=null,this.update(e)},update:R.noop,transition:function(e){for(var t=this.getMeta(),n=t.data||[],r=n.length,a=0;a<r;++a)n[a].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],n=t.length,r=0;for(e.dataset&&e.dataset.draw();r<n;++r)t[r].draw()},getStyle:function(e){var t,n=this.getMeta(),r=n.dataset;return this._configure(),r&&void 0===e?t=this._resolveDatasetElementOptions(r||{}):(e=e||0,t=this._resolveDataElementOptions(n.data[e]||{},e)),!1!==t.fill&&null!==t.fill||(t.backgroundColor=t.borderColor),t},_resolveDatasetElementOptions:function(e,t){var n,r,a,i,o=this,s=o.chart,l=o._config,c=e.custom||{},u=s.options.elements[o.datasetElementType.prototype._type]||{},d=o._datasetElementOptions,p={},f={chart:s,dataset:o.getDataset(),datasetIndex:o.index,hover:t};for(n=0,r=d.length;n<r;++n)a=d[n],i=t?"hover"+a.charAt(0).toUpperCase()+a.slice(1):a,p[a]=X([c[i],l[i],u[i]],f);return p},_resolveDataElementOptions:function(e,t){var n=this,r=e&&e.custom,a=n._cachedDataOpts;if(a&&!r)return a;var i,o,s,l,c=n.chart,u=n._config,d=c.options.elements[n.dataElementType.prototype._type]||{},p=n._dataElementOptions,f={},m={chart:c,dataIndex:t,dataset:n.getDataset(),datasetIndex:n.index},h={cacheable:!r};if(r=r||{},R.isArray(p))for(o=0,s=p.length;o<s;++o)f[l=p[o]]=X([r[l],u[l],d[l]],m,t,h);else for(o=0,s=(i=Object.keys(p)).length;o<s;++o)f[l=i[o]]=X([r[l],u[p[l]],u[l],d[l]],m,t,h);return h.cacheable&&(n._cachedDataOpts=Object.freeze(f)),f},removeHoverStyle:function(e){R.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,r=e.custom||{},a=e._model,i=R.getHoverColor;e.$previousStyle={backgroundColor:a.backgroundColor,borderColor:a.borderColor,borderWidth:a.borderWidth},a.backgroundColor=X([r.hoverBackgroundColor,t.hoverBackgroundColor,i(a.backgroundColor)],void 0,n),a.borderColor=X([r.hoverBorderColor,t.hoverBorderColor,i(a.borderColor)],void 0,n),a.borderWidth=X([r.hoverBorderWidth,t.hoverBorderWidth,a.borderWidth],void 0,n)},_removeDatasetHoverStyle:function(){var e=this.getMeta().dataset;e&&this.removeHoverStyle(e)},_setDatasetHoverStyle:function(){var e,t,n,r,a,i,o=this.getMeta().dataset,s={};if(o){for(i=o._model,a=this._resolveDatasetElementOptions(o,!0),e=0,t=(r=Object.keys(a)).length;e<t;++e)s[n=r[e]]=i[n],i[n]=a[n];o.$previousStyle=s}},resyncElements:function(){var e=this.getMeta(),t=this.getDataset().data,n=e.data.length,r=t.length;r<n?e.data.splice(r,n-r):r>n&&this.insertElements(n,r-n)},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)}}),te.extend=R.inherits;var ne=te,re=2*Math.PI;function ae(e,t){var n=t.startAngle,r=t.endAngle,a=t.pixelMargin,i=a/t.outerRadius,o=t.x,s=t.y;e.beginPath(),e.arc(o,s,t.outerRadius,n-i,r+i),t.innerRadius>a?(i=a/t.innerRadius,e.arc(o,s,t.innerRadius-a,r+i,n-i,!0)):e.arc(o,s,a,r+Math.PI/2,n-Math.PI/2),e.closePath(),e.clip()}function ie(e,t,n){var r="inner"===t.borderAlign;r?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),n.fullCircles&&function(e,t,n,r){var a,i=n.endAngle;for(r&&(n.endAngle=n.startAngle+re,ae(e,n),n.endAngle=i,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=re,n.fullCircles--)),e.beginPath(),e.arc(n.x,n.y,n.innerRadius,n.startAngle+re,n.startAngle,!0),a=0;a<n.fullCircles;++a)e.stroke();for(e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.startAngle+re),a=0;a<n.fullCircles;++a)e.stroke()}(e,t,n,r),r&&ae(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()}$._set("global",{elements:{arc:{backgroundColor:$.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var oe=K.extend({_type:"arc",inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var n=this._view;if(n){for(var r=R.getAngleFromPoint(n,{x:e,y:t}),a=r.angle,i=r.distance,o=n.startAngle,s=n.endAngle;s<o;)s+=re;for(;a>s;)a-=re;for(;a<o;)a+=re;var l=a>=o&&a<=s,c=i>=n.innerRadius&&i<=n.outerRadius;return l&&c}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e,t=this._chart.ctx,n=this._view,r="inner"===n.borderAlign?.33:0,a={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-r,0),pixelMargin:r,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/re)};if(t.save(),t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,a.fullCircles){for(a.endAngle=a.startAngle+re,t.beginPath(),t.arc(a.x,a.y,a.outerRadius,a.startAngle,a.endAngle),t.arc(a.x,a.y,a.innerRadius,a.endAngle,a.startAngle,!0),t.closePath(),e=0;e<a.fullCircles;++e)t.fill();a.endAngle=a.startAngle+n.circumference%re}t.beginPath(),t.arc(a.x,a.y,a.outerRadius,a.startAngle,a.endAngle),t.arc(a.x,a.y,a.innerRadius,a.endAngle,a.startAngle,!0),t.closePath(),t.fill(),n.borderWidth&&ie(t,n,a),t.restore()}}),se=R.valueOrDefault,le=$.global.defaultColor;$._set("global",{elements:{line:{tension:.4,backgroundColor:le,borderWidth:3,borderColor:le,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var ce=K.extend({_type:"line",draw:function(){var e,t,n,r=this,a=r._view,i=r._chart.ctx,o=a.spanGaps,s=r._children.slice(),l=$.global,c=l.elements.line,u=-1,d=r._loop;if(s.length){if(r._loop){for(e=0;e<s.length;++e)if(t=R.previousItem(s,e),!s[e]._view.skip&&t._view.skip){s=s.slice(e).concat(s.slice(0,e)),d=o;break}d&&s.push(s[0])}for(i.save(),i.lineCap=a.borderCapStyle||c.borderCapStyle,i.setLineDash&&i.setLineDash(a.borderDash||c.borderDash),i.lineDashOffset=se(a.borderDashOffset,c.borderDashOffset),i.lineJoin=a.borderJoinStyle||c.borderJoinStyle,i.lineWidth=se(a.borderWidth,c.borderWidth),i.strokeStyle=a.borderColor||l.defaultColor,i.beginPath(),(n=s[0]._view).skip||(i.moveTo(n.x,n.y),u=0),e=1;e<s.length;++e)n=s[e]._view,t=-1===u?R.previousItem(s,e):s[u],n.skip||(u!==e-1&&!o||-1===u?i.moveTo(n.x,n.y):R.canvas.lineTo(i,t._view,n),u=e);d&&i.closePath(),i.stroke(),i.restore()}}}),ue=R.valueOrDefault,de=$.global.defaultColor;function pe(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}$._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:de,borderColor:de,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var fe=K.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:pe,inXRange:pe,inYRange:function(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius},getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,n=this._chart.ctx,r=t.pointStyle,a=t.rotation,i=t.radius,o=t.x,s=t.y,l=$.global,c=l.defaultColor;t.skip||(void 0===e||R.canvas._isPointInArea(t,e))&&(n.strokeStyle=t.borderColor||c,n.lineWidth=ue(t.borderWidth,l.elements.point.borderWidth),n.fillStyle=t.backgroundColor||c,R.canvas.drawPoint(n,r,i,o,s,a))}}),me=$.global.defaultColor;function he(e){return e&&void 0!==e.width}function _e(e){var t,n,r,a,i;return he(e)?(i=e.width/2,t=e.x-i,n=e.x+i,r=Math.min(e.y,e.base),a=Math.max(e.y,e.base)):(i=e.height/2,t=Math.min(e.x,e.base),n=Math.max(e.x,e.base),r=e.y-i,a=e.y+i),{left:t,top:r,right:n,bottom:a}}function ve(e,t,n){return e===t?n:e===n?t:e}function ge(e,t,n){var r,a,i,o,s=e.borderWidth,l=function(e){var t=e.borderSkipped,n={};return t?(e.horizontal?e.base>e.x&&(t=ve(t,"left","right")):e.base<e.y&&(t=ve(t,"bottom","top")),n[t]=!0,n):n}(e);return R.isObject(s)?(r=+s.top||0,a=+s.right||0,i=+s.bottom||0,o=+s.left||0):r=a=i=o=+s||0,{t:l.top||r<0?0:r>n?n:r,r:l.right||a<0?0:a>t?t:a,b:l.bottom||i<0?0:i>n?n:i,l:l.left||o<0?0:o>t?t:o}}function ye(e,t,n){var r=null===t,a=null===n,i=!(!e||r&&a)&&_e(e);return i&&(r||t>=i.left&&t<=i.right)&&(a||n>=i.top&&n<=i.bottom)}$._set("global",{elements:{rectangle:{backgroundColor:me,borderColor:me,borderSkipped:"bottom",borderWidth:0}}});var be=K.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,n=function(e){var t=_e(e),n=t.right-t.left,r=t.bottom-t.top,a=ge(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r},inner:{x:t.left+a.l,y:t.top+a.t,w:n-a.l-a.r,h:r-a.t-a.b}}}(t),r=n.outer,a=n.inner;e.fillStyle=t.backgroundColor,e.fillRect(r.x,r.y,r.w,r.h),r.w===a.w&&r.h===a.h||(e.save(),e.beginPath(),e.rect(r.x,r.y,r.w,r.h),e.clip(),e.fillStyle=t.borderColor,e.rect(a.x,a.y,a.w,a.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return ye(this._view,e,t)},inLabelRange:function(e,t){var n=this._view;return he(n)?ye(n,e,null):ye(n,null,t)},inXRange:function(e){return ye(this._view,e,null)},inYRange:function(e){return ye(this._view,null,e)},getCenterPoint:function(){var e,t,n=this._view;return he(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 he(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}}}),we={},xe=oe,ke=ce,De=fe,Me=be;we.Arc=xe,we.Line=ke,we.Point=De,we.Rectangle=Me;var Se=R._deprecated,Ce=R.valueOrDefault;function Le(e,t,n){var r,a,i=n.barThickness,o=t.stackCount,s=t.pixels[e],l=R.isNullOrUndef(i)?function(e,t){var n,r,a,i,o=e._length;for(a=1,i=t.length;a<i;++a)o=Math.min(o,Math.abs(t[a]-t[a-1]));for(a=0,i=e.getTicks().length;a<i;++a)r=e.getPixelForTick(a),o=a>0?Math.min(o,Math.abs(r-n)):o,n=r;return o}(t.scale,t.pixels):-1;return R.isNullOrUndef(i)?(r=l*n.categoryPercentage,a=n.barPercentage):(r=i*o,a=1),{chunk:r/o,ratio:a,start:s-r/2}}$._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),$._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var Te=ne.extend({dataElementType:we.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e,t,n=this;ne.prototype.initialize.apply(n,arguments),(e=n.getMeta()).stack=n.getDataset().stack,e.bar=!0,t=n._getIndexScale().options,Se("bar chart",t.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),Se("bar chart",t.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),Se("bar chart",t.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),Se("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),Se("bar chart",t.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var t,n,r=this.getMeta().data;for(this._ruler=this.getRuler(),t=0,n=r.length;t<n;++t)this.updateElement(r[t],t,e)},updateElement:function(e,t,n){var r=this,a=r.getMeta(),i=r.getDataset(),o=r._resolveDataElementOptions(e,t);e._xScale=r.getScaleForId(a.xAxisID),e._yScale=r.getScaleForId(a.yAxisID),e._datasetIndex=r.index,e._index=t,e._model={backgroundColor:o.backgroundColor,borderColor:o.borderColor,borderSkipped:o.borderSkipped,borderWidth:o.borderWidth,datasetLabel:i.label,label:r.chart.data.labels[t]},R.isArray(i.data[t])&&(e._model.borderSkipped=null),r._updateElementGeometry(e,t,n,o),e.pivot()},_updateElementGeometry:function(e,t,n,r){var a=this,i=e._model,o=a._getValueScale(),s=o.getBasePixel(),l=o.isHorizontal(),c=a._ruler||a.getRuler(),u=a.calculateBarValuePixels(a.index,t,r),d=a.calculateBarIndexPixels(a.index,t,c,r);i.horizontal=l,i.base=n?s:u.base,i.x=l?n?s:u.head:d.center,i.y=l?d.center:n?s:u.head,i.height=l?d.size:void 0,i.width=l?void 0:d.size},_getStacks:function(e){var t,n,r=this._getIndexScale(),a=r._getMatchingVisibleMetas(this._type),i=r.options.stacked,o=a.length,s=[];for(t=0;t<o&&(n=a[t],(!1===i||-1===s.indexOf(n.stack)||void 0===i&&void 0===n.stack)&&s.push(n.stack),n.index!==e);++t);return s},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var n=this._getStacks(e),r=void 0!==t?n.indexOf(t):-1;return-1===r?n.length-1:r},getRuler:function(){var e,t,n=this._getIndexScale(),r=[];for(e=0,t=this.getMeta().data.length;e<t;++e)r.push(n.getPixelForValue(null,e,this.index));return{pixels:r,start:n._startPixel,end:n._endPixel,stackCount:this.getStackCount(),scale:n}},calculateBarValuePixels:function(e,t,n){var r,a,i,o,s,l,c,u=this.chart,d=this._getValueScale(),p=d.isHorizontal(),f=u.data.datasets,m=d._getMatchingVisibleMetas(this._type),h=d._parseValue(f[e].data[t]),_=n.minBarLength,v=d.options.stacked,g=this.getMeta().stack,y=void 0===h.start?0:h.max>=0&&h.min>=0?h.min:h.max,b=void 0===h.start?h.end:h.max>=0&&h.min>=0?h.max-h.min:h.min-h.max,w=m.length;if(v||void 0===v&&void 0!==g)for(r=0;r<w&&(a=m[r]).index!==e;++r)a.stack===g&&(i=void 0===(c=d._parseValue(f[a.index].data[t])).start?c.end:c.min>=0&&c.max>=0?c.max:c.min,(h.min<0&&i<0||h.max>=0&&i>0)&&(y+=i));return o=d.getPixelForValue(y),l=(s=d.getPixelForValue(y+b))-o,void 0!==_&&Math.abs(l)<_&&(l=_,s=b>=0&&!p||b<0&&p?o-_:o+_),{size:l,base:o,head:s,center:s+l/2}},calculateBarIndexPixels:function(e,t,n,r){var a="flex"===r.barThickness?function(e,t,n){var r,a=t.pixels,i=a[e],o=e>0?a[e-1]:null,s=e<a.length-1?a[e+1]:null,l=n.categoryPercentage;return null===o&&(o=i-(null===s?t.end-t.start:s-i)),null===s&&(s=i+i-o),r=i-(i-Math.min(o,s))/2*l,{chunk:Math.abs(s-o)/2*l/t.stackCount,ratio:n.barPercentage,start:r}}(t,n,r):Le(t,n,r),i=this.getStackIndex(e,this.getMeta().stack),o=a.start+a.chunk*i+a.chunk/2,s=Math.min(Ce(r.maxBarThickness,1/0),a.chunk*a.ratio);return{base:o-s/2,head:o+s/2,center:o,size:s}},draw:function(){var e=this.chart,t=this._getValueScale(),n=this.getMeta().data,r=this.getDataset(),a=n.length,i=0;for(R.canvas.clipArea(e.ctx,e.chartArea);i<a;++i){var o=t._parseValue(r.data[i]);isNaN(o.min)||isNaN(o.max)||n[i].draw()}R.canvas.unclipArea(e.ctx)},_resolveDataElementOptions:function(){var e=this,t=R.extend({},ne.prototype._resolveDataElementOptions.apply(e,arguments)),n=e._getIndexScale().options,r=e._getValueScale().options;return t.barPercentage=Ce(n.barPercentage,t.barPercentage),t.barThickness=Ce(n.barThickness,t.barThickness),t.categoryPercentage=Ce(n.categoryPercentage,t.categoryPercentage),t.maxBarThickness=Ce(n.maxBarThickness,t.maxBarThickness),t.minBarLength=Ce(r.minBarLength,t.minBarLength),t}}),Ee=R.valueOrDefault,Oe=R.options.resolve;$._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.datasets[e.datasetIndex].label||"",r=t.datasets[e.datasetIndex].data[e.index];return n+": ("+e.xLabel+", "+e.yLabel+", "+r.r+")"}}}});var je=ne.extend({dataElementType:we.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(e){var t=this,n=t.getMeta().data;R.each(n,(function(n,r){t.updateElement(n,r,e)}))},updateElement:function(e,t,n){var r=this,a=r.getMeta(),i=e.custom||{},o=r.getScaleForId(a.xAxisID),s=r.getScaleForId(a.yAxisID),l=r._resolveDataElementOptions(e,t),c=r.getDataset().data[t],u=r.index,d=n?o.getPixelForDecimal(.5):o.getPixelForValue("object"==typeof c?c:NaN,t,u),p=n?s.getBasePixel():s.getPixelForValue(c,t,u);e._xScale=o,e._yScale=s,e._options=l,e._datasetIndex=u,e._index=t,e._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,rotation:l.rotation,radius:n?0:l.radius,skip:i.skip||isNaN(d)||isNaN(p),x:d,y:p},e.pivot()},setHoverStyle:function(e){var t=e._model,n=e._options,r=R.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Ee(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=Ee(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=Ee(n.hoverBorderWidth,n.borderWidth),t.radius=n.radius+n.hoverRadius},_resolveDataElementOptions:function(e,t){var n=this,r=n.chart,a=n.getDataset(),i=e.custom||{},o=a.data[t]||{},s=ne.prototype._resolveDataElementOptions.apply(n,arguments),l={chart:r,dataIndex:t,dataset:a,datasetIndex:n.index};return n._cachedDataOpts===s&&(s=R.extend({},s)),s.radius=Oe([i.radius,o.r,n._config.radius,r.options.elements.point.radius],l,t),s}}),Ae=R.valueOrDefault,Pe=Math.PI,Ye=2*Pe,$e=Pe/2;$._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t,n,r,a=document.createElement("ul"),i=e.data,o=i.datasets,s=i.labels;if(a.setAttribute("class",e.id+"-legend"),o.length)for(t=0,n=o[0].data.length;t<n;++t)(r=a.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[0].backgroundColor[t],s[t]&&r.appendChild(document.createTextNode(s[t]));return a.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(n,r){var a=e.getDatasetMeta(0),i=a.controller.getStyle(r);return{text:n,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,hidden:isNaN(t.datasets[0].data[r])||a.data[r].hidden,index:r}})):[]}},onClick:function(e,t){var n,r,a,i=t.index,o=this.chart;for(n=0,r=(o.data.datasets||[]).length;n<r;++n)(a=o.getDatasetMeta(n)).data[i]&&(a.data[i].hidden=!a.data[i].hidden);o.update()}},cutoutPercentage:50,rotation:-$e,circumference:Ye,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.labels[e.index],r=": "+t.datasets[e.datasetIndex].data[e.index];return R.isArray(n)?(n=n.slice())[0]+=r:n+=r,n}}}});var Ie=ne.extend({dataElementType:we.Arc,linkScales:R.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&++t;return t},update:function(e){var t,n,r,a,i=this,o=i.chart,s=o.chartArea,l=o.options,c=1,u=1,d=0,p=0,f=i.getMeta(),m=f.data,h=l.cutoutPercentage/100||0,_=l.circumference,v=i._getRingWeight(i.index);if(_<Ye){var g=l.rotation%Ye,y=(g+=g>=Pe?-Ye:g<-Pe?Ye:0)+_,b=Math.cos(g),w=Math.sin(g),x=Math.cos(y),k=Math.sin(y),D=g<=0&&y>=0||y>=Ye,M=g<=$e&&y>=$e||y>=Ye+$e,S=g<=-$e&&y>=-$e||y>=Pe+$e,C=g===-Pe||y>=Pe?-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),E=M?1:Math.max(w,w*h,k,k*h);c=(T-C)/2,u=(E-L)/2,d=-(T+C)/2,p=-(E+L)/2}for(r=0,a=m.length;r<a;++r)m[r]._options=i._resolveDataElementOptions(m[r],r);for(o.borderWidth=i.getMaxBorderWidth(),t=(s.right-s.left-o.borderWidth)/c,n=(s.bottom-s.top-o.borderWidth)/u,o.outerRadius=Math.max(Math.min(t,n)/2,0),o.innerRadius=Math.max(o.outerRadius*h,0),o.radiusLength=(o.outerRadius-o.innerRadius)/(i._getVisibleDatasetWeightTotal()||1),o.offsetX=d*o.outerRadius,o.offsetY=p*o.outerRadius,f.total=i.calculateTotal(),i.outerRadius=o.outerRadius-o.radiusLength*i._getRingWeightOffset(i.index),i.innerRadius=Math.max(i.outerRadius-o.radiusLength*v,0),r=0,a=m.length;r<a;++r)i.updateElement(m[r],r,e)},updateElement:function(e,t,n){var r=this,a=r.chart,i=a.chartArea,o=a.options,s=o.animation,l=(i.left+i.right)/2,c=(i.top+i.bottom)/2,u=o.rotation,d=o.rotation,p=r.getDataset(),f=n&&s.animateRotate||e.hidden?0:r.calculateCircumference(p.data[t])*(o.circumference/Ye),m=n&&s.animateScale?0:r.innerRadius,h=n&&s.animateScale?0:r.outerRadius,_=e._options||{};R.extend(e,{_datasetIndex:r.index,_index:t,_model:{backgroundColor:_.backgroundColor,borderColor:_.borderColor,borderWidth:_.borderWidth,borderAlign:_.borderAlign,x:l+a.offsetX,y:c+a.offsetY,startAngle:u,endAngle:d,circumference:f,outerRadius:h,innerRadius:m,label:R.valueAtIndexOrDefault(p.label,t,a.data.labels[t])}});var v=e._model;n&&s.animateRotate||(v.startAngle=0===t?o.rotation:r.getMeta().data[t-1]._model.endAngle,v.endAngle=v.startAngle+v.circumference),e.pivot()},calculateTotal:function(){var e,t=this.getDataset(),n=this.getMeta(),r=0;return R.each(n.data,(function(n,a){e=t.data[a],isNaN(e)||n.hidden||(r+=Math.abs(e))})),r},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?Ye*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,n,r,a,i,o,s,l,c=0,u=this.chart;if(!e)for(t=0,n=u.data.datasets.length;t<n;++t)if(u.isDatasetVisible(t)){e=(r=u.getDatasetMeta(t)).data,t!==this.index&&(i=r.controller);break}if(!e)return 0;for(t=0,n=e.length;t<n;++t)a=e[t],i?(i._configure(),o=i._resolveDataElementOptions(a,t)):o=a._options,"inner"!==o.borderAlign&&(s=o.borderWidth,c=(l=o.hoverBorderWidth)>(c=s>c?s:c)?l:c);return c},setHoverStyle:function(e){var t=e._model,n=e._options,r=R.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=Ae(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=Ae(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=Ae(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(Ae(this.chart.data.datasets[e].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});$._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"}}),$._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var Ne=Te.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),ze=R.valueOrDefault,Fe=R.options.resolve,Re=R.canvas._isPointInArea;function He(e,t){var n=e&&e.options.ticks||{},r=n.reverse,a=void 0===n.min?t:0,i=void 0===n.max?t:0;return{start:r?i:a,end:r?a:i}}function Be(e,t,n){var r=n/2,a=He(e,r),i=He(t,r);return{top:i.end,right:a.end,bottom:i.start,left:a.start}}function qe(e){var t,n,r,a;return R.isObject(e)?(t=e.top,n=e.right,r=e.bottom,a=e.left):t=n=r=a=e,{top:t,right:n,bottom:r,left:a}}$._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 Ue=ne.extend({datasetElementType:we.Line,dataElementType:we.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(e){var t,n,r=this,a=r.getMeta(),i=a.dataset,o=a.data||[],s=r.chart.options,l=r._config,c=r._showLine=ze(l.showLine,s.showLines);for(r._xScale=r.getScaleForId(a.xAxisID),r._yScale=r.getScaleForId(a.yAxisID),c&&(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),i._scale=r._yScale,i._datasetIndex=r.index,i._children=o,i._model=r._resolveDatasetElementOptions(i),i.pivot()),t=0,n=o.length;t<n;++t)r.updateElement(o[t],t,e);for(c&&0!==i._model.tension&&r.updateBezierControlPoints(),t=0,n=o.length;t<n;++t)o[t].pivot()},updateElement:function(e,t,n){var r,a,i=this,o=i.getMeta(),s=e.custom||{},l=i.getDataset(),c=i.index,u=l.data[t],d=i._xScale,p=i._yScale,f=o.dataset._model,m=i._resolveDataElementOptions(e,t);r=d.getPixelForValue("object"==typeof u?u:NaN,t,c),a=n?p.getBasePixel():i.calculatePointY(u,t,c),e._xScale=d,e._yScale=p,e._options=m,e._datasetIndex=c,e._index=t,e._model={x:r,y:a,skip:s.skip||isNaN(r)||isNaN(a),radius:m.radius,pointStyle:m.pointStyle,rotation:m.rotation,backgroundColor:m.backgroundColor,borderColor:m.borderColor,borderWidth:m.borderWidth,tension:ze(s.tension,f?f.tension:0),steppedLine:!!f&&f.steppedLine,hitRadius:m.hitRadius}},_resolveDatasetElementOptions:function(e){var t=this,n=t._config,r=e.custom||{},a=t.chart.options,i=a.elements.line,o=ne.prototype._resolveDatasetElementOptions.apply(t,arguments);return o.spanGaps=ze(n.spanGaps,a.spanGaps),o.tension=ze(n.lineTension,i.tension),o.steppedLine=Fe([r.steppedLine,n.steppedLine,i.stepped]),o.clip=qe(ze(n.clip,Be(t._xScale,t._yScale,o.borderWidth))),o},calculatePointY:function(e,t,n){var r,a,i,o,s,l,c,u=this.chart,d=this._yScale,p=0,f=0;if(d.options.stacked){for(s=+d.getRightValue(e),c=(l=u._getSortedVisibleDatasetMetas()).length,r=0;r<c&&(i=l[r]).index!==n;++r)a=u.data.datasets[i.index],"line"===i.type&&i.yAxisID===d.id&&((o=+d.getRightValue(a.data[t]))<0?f+=o||0:p+=o||0);return s<0?d.getPixelForValue(f+s):d.getPixelForValue(p+s)}return d.getPixelForValue(e)},updateBezierControlPoints:function(){var e,t,n,r,a=this.chart,i=this.getMeta(),o=i.dataset._model,s=a.chartArea,l=i.data||[];function c(e,t,n){return Math.max(Math.min(e,n),t)}if(o.spanGaps&&(l=l.filter((function(e){return!e._model.skip}))),"monotone"===o.cubicInterpolationMode)R.splineCurveMonotone(l);else for(e=0,t=l.length;e<t;++e)n=l[e]._model,r=R.splineCurve(R.previousItem(l,e)._model,n,R.nextItem(l,e)._model,o.tension),n.controlPointPreviousX=r.previous.x,n.controlPointPreviousY=r.previous.y,n.controlPointNextX=r.next.x,n.controlPointNextY=r.next.y;if(a.options.elements.line.capBezierPoints)for(e=0,t=l.length;e<t;++e)n=l[e]._model,Re(n,s)&&(e>0&&Re(l[e-1]._model,s)&&(n.controlPointPreviousX=c(n.controlPointPreviousX,s.left,s.right),n.controlPointPreviousY=c(n.controlPointPreviousY,s.top,s.bottom)),e<l.length-1&&Re(l[e+1]._model,s)&&(n.controlPointNextX=c(n.controlPointNextX,s.left,s.right),n.controlPointNextY=c(n.controlPointNextY,s.top,s.bottom)))},draw:function(){var e,t=this.chart,n=this.getMeta(),r=n.data||[],a=t.chartArea,i=t.canvas,o=0,s=r.length;for(this._showLine&&(e=n.dataset._model.clip,R.canvas.clipArea(t.ctx,{left:!1===e.left?0:a.left-e.left,right:!1===e.right?i.width:a.right+e.right,top:!1===e.top?0:a.top-e.top,bottom:!1===e.bottom?i.height:a.bottom+e.bottom}),n.dataset.draw(),R.canvas.unclipArea(t.ctx));o<s;++o)r[o].draw(a)},setHoverStyle:function(e){var t=e._model,n=e._options,r=R.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=ze(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=ze(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=ze(n.hoverBorderWidth,n.borderWidth),t.radius=ze(n.hoverRadius,n.radius)}}),Ve=R.options.resolve;$._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var t,n,r,a=document.createElement("ul"),i=e.data,o=i.datasets,s=i.labels;if(a.setAttribute("class",e.id+"-legend"),o.length)for(t=0,n=o[0].data.length;t<n;++t)(r=a.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[0].backgroundColor[t],s[t]&&r.appendChild(document.createTextNode(s[t]));return a.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(n,r){var a=e.getDatasetMeta(0),i=a.controller.getStyle(r);return{text:n,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,hidden:isNaN(t.datasets[0].data[r])||a.data[r].hidden,index:r}})):[]}},onClick:function(e,t){var n,r,a,i=t.index,o=this.chart;for(n=0,r=(o.data.datasets||[]).length;n<r;++n)(a=o.getDatasetMeta(n)).data[i].hidden=!a.data[i].hidden;o.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}});var We=ne.extend({dataElementType:we.Arc,linkScales:R.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,r,a=this,i=a.getDataset(),o=a.getMeta(),s=a.chart.options.startAngle||0,l=a._starts=[],c=a._angles=[],u=o.data;for(a._updateRadius(),o.count=a.countVisibleElements(),t=0,n=i.data.length;t<n;t++)l[t]=s,r=a._computeAngle(t),c[t]=r,s+=r;for(t=0,n=u.length;t<n;++t)u[t]._options=a._resolveDataElementOptions(u[t],t),a.updateElement(u[t],t,e)},_updateRadius:function(){var e=this,t=e.chart,n=t.chartArea,r=t.options,a=Math.min(n.right-n.left,n.bottom-n.top);t.outerRadius=Math.max(a/2,0),t.innerRadius=Math.max(r.cutoutPercentage?t.outerRadius/100*r.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),e.outerRadius=t.outerRadius-t.radiusLength*e.index,e.innerRadius=e.outerRadius-t.radiusLength},updateElement:function(e,t,n){var r=this,a=r.chart,i=r.getDataset(),o=a.options,s=o.animation,l=a.scale,c=a.data.labels,u=l.xCenter,d=l.yCenter,p=o.startAngle,f=e.hidden?0:l.getDistanceFromCenterForValue(i.data[t]),m=r._starts[t],h=m+(e.hidden?0:r._angles[t]),_=s.animateScale?0:l.getDistanceFromCenterForValue(i.data[t]),v=e._options||{};R.extend(e,{_datasetIndex:r.index,_index:t,_scale:l,_model:{backgroundColor:v.backgroundColor,borderColor:v.borderColor,borderWidth:v.borderWidth,borderAlign:v.borderAlign,x:u,y:d,innerRadius:0,outerRadius:n?_:f,startAngle:n&&s.animateRotate?p:m,endAngle:n&&s.animateRotate?p:h,label:R.valueAtIndexOrDefault(c,t,c[t])}}),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),n=0;return R.each(t.data,(function(t,r){isNaN(e.data[r])||t.hidden||n++})),n},setHoverStyle:function(e){var t=e._model,n=e._options,r=R.getHoverColor,a=R.valueOrDefault;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=a(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=a(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=a(n.hoverBorderWidth,n.borderWidth)},_computeAngle:function(e){var t=this,n=this.getMeta().count,r=t.getDataset(),a=t.getMeta();if(isNaN(r.data[e])||a.data[e].hidden)return 0;var i={chart:t.chart,dataIndex:e,dataset:r,datasetIndex:t.index};return Ve([t.chart.options.elements.arc.angle,2*Math.PI/n],i,e)}});$._set("pie",R.clone($.doughnut)),$._set("pie",{cutoutPercentage:0});var Ke=Ie,Ge=R.valueOrDefault;$._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var Je=ne.extend({datasetElementType:we.Line,dataElementType:we.Point,linkScales:R.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,r=this,a=r.getMeta(),i=a.dataset,o=a.data||[],s=r.chart.scale,l=r._config;for(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),i._scale=s,i._datasetIndex=r.index,i._children=o,i._loop=!0,i._model=r._resolveDatasetElementOptions(i),i.pivot(),t=0,n=o.length;t<n;++t)r.updateElement(o[t],t,e);for(r.updateBezierControlPoints(),t=0,n=o.length;t<n;++t)o[t].pivot()},updateElement:function(e,t,n){var r=this,a=e.custom||{},i=r.getDataset(),o=r.chart.scale,s=o.getPointPositionForValue(t,i.data[t]),l=r._resolveDataElementOptions(e,t),c=r.getMeta().dataset._model,u=n?o.xCenter:s.x,d=n?o.yCenter:s.y;e._scale=o,e._options=l,e._datasetIndex=r.index,e._index=t,e._model={x:u,y:d,skip:a.skip||isNaN(u)||isNaN(d),radius:l.radius,pointStyle:l.pointStyle,rotation:l.rotation,backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,tension:Ge(a.tension,c?c.tension:0),hitRadius:l.hitRadius}},_resolveDatasetElementOptions:function(){var e=this,t=e._config,n=e.chart.options,r=ne.prototype._resolveDatasetElementOptions.apply(e,arguments);return r.spanGaps=Ge(t.spanGaps,n.spanGaps),r.tension=Ge(t.lineTension,n.elements.line.tension),r},updateBezierControlPoints:function(){var e,t,n,r,a=this.getMeta(),i=this.chart.chartArea,o=a.data||[];function s(e,t,n){return Math.max(Math.min(e,n),t)}for(a.dataset._model.spanGaps&&(o=o.filter((function(e){return!e._model.skip}))),e=0,t=o.length;e<t;++e)n=o[e]._model,r=R.splineCurve(R.previousItem(o,e,!0)._model,n,R.nextItem(o,e,!0)._model,n.tension),n.controlPointPreviousX=s(r.previous.x,i.left,i.right),n.controlPointPreviousY=s(r.previous.y,i.top,i.bottom),n.controlPointNextX=s(r.next.x,i.left,i.right),n.controlPointNextY=s(r.next.y,i.top,i.bottom)},setHoverStyle:function(e){var t=e._model,n=e._options,r=R.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Ge(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=Ge(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=Ge(n.hoverBorderWidth,n.borderWidth),t.radius=Ge(n.hoverRadius,n.radius)}});$._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+")"}}}}),$._set("global",{datasets:{scatter:{showLine:!1}}});var Ze={bar:Te,bubble:je,doughnut:Ie,horizontalBar:Ne,line:Ue,polarArea:We,pie:Ke,radar:Je,scatter:Ue};function Xe(e,t){return e.native?{x:e.x,y:e.y}:R.getRelativePosition(e,t)}function Qe(e,t){var n,r,a,i,o,s,l=e._getSortedVisibleDatasetMetas();for(r=0,i=l.length;r<i;++r)for(a=0,o=(n=l[r].data).length;a<o;++a)(s=n[a])._view.skip||t(s)}function et(e,t){var n=[];return Qe(e,(function(e){e.inRange(t.x,t.y)&&n.push(e)})),n}function tt(e,t,n,r){var a=Number.POSITIVE_INFINITY,i=[];return Qe(e,(function(e){if(!n||e.inRange(t.x,t.y)){var o=e.getCenterPoint(),s=r(t,o);s<a?(i=[e],a=s):s===a&&i.push(e)}})),i}function nt(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){var a=t?Math.abs(e.x-r.x):0,i=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(i,2))}}function rt(e,t,n){var r=Xe(t,e);n.axis=n.axis||"x";var a=nt(n.axis),i=n.intersect?et(e,r):tt(e,r,!1,a),o=[];return i.length?(e._getSortedVisibleDatasetMetas().forEach((function(e){var t=e.data[i[0]._index];t&&!t._view.skip&&o.push(t)})),o):[]}var at={modes:{single:function(e,t){var n=Xe(t,e),r=[];return Qe(e,(function(e){if(e.inRange(n.x,n.y))return r.push(e),r})),r.slice(0,1)},label:rt,index:rt,dataset:function(e,t,n){var r=Xe(t,e);n.axis=n.axis||"xy";var a=nt(n.axis),i=n.intersect?et(e,r):tt(e,r,!1,a);return i.length>0&&(i=e.getDatasetMeta(i[0]._datasetIndex).data),i},"x-axis":function(e,t){return rt(e,t,{intersect:!1})},point:function(e,t){return et(e,Xe(t,e))},nearest:function(e,t,n){var r=Xe(t,e);n.axis=n.axis||"xy";var a=nt(n.axis);return tt(e,r,n.intersect,a)},x:function(e,t,n){var r=Xe(t,e),a=[],i=!1;return Qe(e,(function(e){e.inXRange(r.x)&&a.push(e),e.inRange(r.x,r.y)&&(i=!0)})),n.intersect&&!i&&(a=[]),a},y:function(e,t,n){var r=Xe(t,e),a=[],i=!1;return Qe(e,(function(e){e.inYRange(r.y)&&a.push(e),e.inRange(r.x,r.y)&&(i=!0)})),n.intersect&&!i&&(a=[]),a}}},it=R.extend;function ot(e,t){return R.where(e,(function(e){return e.pos===t}))}function st(e,t){return e.sort((function(e,n){var r=t?n:e,a=t?e:n;return r.weight===a.weight?r.index-a.index:r.weight-a.weight}))}function lt(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function ct(e,t,n){var r,a,i=n.box,o=e.maxPadding;if(n.size&&(e[n.pos]-=n.size),n.size=n.horizontal?i.height:i.width,e[n.pos]+=n.size,i.getPadding){var s=i.getPadding();o.top=Math.max(o.top,s.top),o.left=Math.max(o.left,s.left),o.bottom=Math.max(o.bottom,s.bottom),o.right=Math.max(o.right,s.right)}if(r=t.outerWidth-lt(o,e,"left","right"),a=t.outerHeight-lt(o,e,"top","bottom"),r!==e.w||a!==e.h){e.w=r,e.h=a;var l=n.horizontal?[r,e.w]:[a,e.h];return!(l[0]===l[1]||isNaN(l[0])&&isNaN(l[1]))}}function ut(e,t){var n=t.maxPadding;function r(e){var r={left:0,top:0,right:0,bottom:0};return e.forEach((function(e){r[e]=Math.max(t[e],n[e])})),r}return r(e?["left","right"]:["top","bottom"])}function dt(e,t,n){var r,a,i,o,s,l,c=[];for(r=0,a=e.length;r<a;++r)(o=(i=e[r]).box).update(i.width||t.w,i.height||t.h,ut(i.horizontal,t)),ct(t,n,i)&&(l=!0,c.length&&(s=!0)),o.fullWidth||c.push(i);return s&&dt(c,t,n)||l}function pt(e,t,n){var r,a,i,o,s=n.padding,l=t.x,c=t.y;for(r=0,a=e.length;r<a;++r)o=(i=e[r]).box,i.horizontal?(o.left=o.fullWidth?s.left:t.left,o.right=o.fullWidth?n.outerWidth-s.right:t.left+t.w,o.top=c,o.bottom=c+o.height,o.width=o.right-o.left,c=o.bottom):(o.left=l,o.right=l+o.width,o.top=t.top,o.bottom=t.top+t.h,o.height=o.bottom-o.top,l=o.right);t.x=l,t.y=c}$._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var ft,mt={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw:function(){t.draw.apply(t,arguments)}}]},e.boxes.push(t)},removeBox:function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure:function(e,t,n){for(var r,a=["fullWidth","position","weight"],i=a.length,o=0;o<i;++o)r=a[o],n.hasOwnProperty(r)&&(t[r]=n[r])},update:function(e,t,n){if(e){var r=e.options.layout||{},a=R.options.toPadding(r.padding),i=t-a.width,o=n-a.height,s=function(e){var t=function(e){var t,n,r,a=[];for(t=0,n=(e||[]).length;t<n;++t)r=e[t],a.push({index:t,box:r,pos:r.position,horizontal:r.isHorizontal(),weight:r.weight});return a}(e),n=st(ot(t,"left"),!0),r=st(ot(t,"right")),a=st(ot(t,"top"),!0),i=st(ot(t,"bottom"));return{leftAndTop:n.concat(a),rightAndBottom:r.concat(i),chartArea:ot(t,"chartArea"),vertical:n.concat(r),horizontal:a.concat(i)}}(e.boxes),l=s.vertical,c=s.horizontal,u=Object.freeze({outerWidth:t,outerHeight:n,padding:a,availableWidth:i,vBoxMaxWidth:i/2/l.length,hBoxMaxHeight:o/2}),d=it({maxPadding:it({},a),w:i,h:o,x:a.left,y:a.top},a);!function(e,t){var n,r,a;for(n=0,r=e.length;n<r;++n)(a=e[n]).width=a.horizontal?a.box.fullWidth&&t.availableWidth:t.vBoxMaxWidth,a.height=a.horizontal&&t.hBoxMaxHeight}(l.concat(c),u),dt(l,d,u),dt(c,d,u)&&dt(l,d,u),function(e){var t=e.maxPadding;function n(n){var r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(d),pt(s.leftAndTop,d,u),d.x+=d.w,d.y+=d.h,pt(s.rightAndBottom,d,u),e.chartArea={left:d.left,top:d.top,right:d.left+d.w,bottom:d.top+d.h},R.each(s.chartArea,(function(t){var n=t.box;it(n,e.chartArea),n.update(d.w,d.h)}))}}},ht=(ft=Object.freeze({__proto__:null,default:"/*\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"}))&&ft.default||ft,_t=["animationstart","webkitAnimationStart"],vt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function gt(e,t){var n=R.getStyle(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?Number(r[1]):void 0}var yt=!!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 bt(e,t,n){e.addEventListener(t,n,yt)}function wt(e,t,n){e.removeEventListener(t,n,yt)}function xt(e,t,n,r,a){return{type:e,chart:t,native:a||null,x:void 0!==n?n:null,y:void 0!==r?r:null}}function kt(e){var t=document.createElement("div");return t.className=e||"",t}function Dt(e,t,n){var r,a,i,o,s=e.$chartjs||(e.$chartjs={}),l=s.resizer=function(e){var t=kt("chartjs-size-monitor"),n=kt("chartjs-size-monitor-expand"),r=kt("chartjs-size-monitor-shrink");n.appendChild(kt()),r.appendChild(kt()),t.appendChild(n),t.appendChild(r),t._reset=function(){n.scrollLeft=1e6,n.scrollTop=1e6,r.scrollLeft=1e6,r.scrollTop=1e6};var a=function(){t._reset(),e()};return bt(n,"scroll",a.bind(n,"expand")),bt(r,"scroll",a.bind(r,"shrink")),t}((r=function(){if(s.resizer){var r=n.options.maintainAspectRatio&&e.parentNode,a=r?r.clientWidth:0;t(xt("resize",n)),r&&r.clientWidth<a&&n.canvas&&t(xt("resize",n))}},i=!1,o=[],function(){o=Array.prototype.slice.call(arguments),a=a||this,i||(i=!0,R.requestAnimFrame.call(window,(function(){i=!1,r.apply(a,o)})))}));!function(e,t){var n=e.$chartjs||(e.$chartjs={}),r=n.renderProxy=function(e){"chartjs-render-animation"===e.animationName&&t()};R.each(_t,(function(t){bt(e,t,r)})),n.reflow=!!e.offsetParent,e.classList.add("chartjs-render-monitor")}(e,(function(){if(s.resizer){var t=e.parentNode;t&&t!==l.parentNode&&t.insertBefore(l,t.firstChild),l._reset()}}))}function Mt(e){var t=e.$chartjs||{},n=t.resizer;delete t.resizer,function(e){var t=e.$chartjs||{},n=t.renderProxy;n&&(R.each(_t,(function(t){wt(e,t,n)})),delete t.renderProxy),e.classList.remove("chartjs-render-monitor")}(e),n&&n.parentNode&&n.parentNode.removeChild(n)}var St={disableCSSInjection:!1,_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,_ensureLoaded:function(e){if(!this.disableCSSInjection){var t=e.getRootNode?e.getRootNode():document;!function(e,t){var n=e.$chartjs||(e.$chartjs={});if(!n.containsStyles){n.containsStyles=!0,t="/* Chart.js */\n"+t;var r=document.createElement("style");r.setAttribute("type","text/css"),r.appendChild(document.createTextNode(t)),e.appendChild(r)}}(t.host?t:document.head,ht)}},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),function(e,t){var n=e.style,r=e.getAttribute("height"),a=e.getAttribute("width");if(e.$chartjs={initial:{height:r,width:a,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===a||""===a){var i=gt(e,"width");void 0!==i&&(e.width=i)}if(null===r||""===r)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var o=gt(e,"height");void 0!==i&&(e.height=o)}}(e,t),n):null},releaseContext:function(e){var t=e.canvas;if(t.$chartjs){var n=t.$chartjs.initial;["height","width"].forEach((function(e){var r=n[e];R.isNullOrUndef(r)?t.removeAttribute(e):t.setAttribute(e,r)})),R.each(n.style||{},(function(e,n){t.style[n]=e})),t.width=t.width,delete t.$chartjs}},addEventListener:function(e,t,n){var r=e.canvas;if("resize"!==t){var a=n.$chartjs||(n.$chartjs={});bt(r,t,(a.proxies||(a.proxies={}))[e.id+"_"+t]=function(t){n(function(e,t){var n=vt[e.type]||e.type,r=R.getRelativePosition(e,t);return xt(n,t,r.x,r.y,e)}(t,e))})}else Dt(r,n,e)},removeEventListener:function(e,t,n){var r=e.canvas;if("resize"!==t){var a=((n.$chartjs||{}).proxies||{})[e.id+"_"+t];a&&wt(r,t,a)}else Mt(r)}};R.addEvent=bt,R.removeEvent=wt;var Ct=St._enabled?St:{acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}},Lt=R.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},Ct);$._set("global",{plugins:{}});var Tt={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach((function(e){-1===t.indexOf(e)&&t.push(e)})),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach((function(e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)})),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,n){var r,a,i,o,s,l=this.descriptors(e),c=l.length;for(r=0;r<c;++r)if("function"==typeof(s=(i=(a=l[r]).plugin)[t])&&((o=[e].concat(n||[])).push(a.options),!1===s.apply(i,o)))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var n=[],r=[],a=e&&e.config||{},i=a.options&&a.options.plugins||{};return this._plugins.concat(a.plugins||[]).forEach((function(e){if(-1===n.indexOf(e)){var t=e.id,a=i[t];!1!==a&&(!0===a&&(a=R.clone($.global.plugins[t])),n.push(e),r.push({plugin:e,options:a||{}}))}})),t.descriptors=r,t.id=this._cacheId,r},_invalidate:function(e){delete e.$plugins}},Et={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=R.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?R.merge(Object.create(null),[$.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){this.defaults.hasOwnProperty(e)&&(this.defaults[e]=R.extend(this.defaults[e],t))},addScalesToLayout:function(e){R.each(e.scales,(function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,mt.addBox(e,t)}))}},Ot=R.valueOrDefault,jt=R.rtl.getRtlAdapter;$._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:R.noop,title:function(e,t){var n="",r=t.labels,a=r?r.length:0;if(e.length>0){var i=e[0];i.label?n=i.label:i.xLabel?n=i.xLabel:a>0&&i.index<a&&(n=r[i.index])}return n},afterTitle:R.noop,beforeBody:R.noop,beforeLabel:R.noop,label:function(e,t){var n=t.datasets[e.datasetIndex].label||"";return n&&(n+=": "),R.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:R.noop,afterBody:R.noop,beforeFooter:R.noop,footer:R.noop,afterFooter:R.noop}}});var At={average:function(e){if(!e.length)return!1;var t,n,r=0,a=0,i=0;for(t=0,n=e.length;t<n;++t){var o=e[t];if(o&&o.hasValue()){var s=o.tooltipPosition();r+=s.x,a+=s.y,++i}}return{x:r/i,y:a/i}},nearest:function(e,t){var n,r,a,i=t.x,o=t.y,s=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){var l=e[n];if(l&&l.hasValue()){var c=l.getCenterPoint(),u=R.distanceBetweenPoints(t,c);u<s&&(s=u,a=l)}}if(a){var d=a.tooltipPosition();i=d.x,o=d.y}return{x:i,y:o}}};function Pt(e,t){return t&&(R.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Yt(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function $t(e){var t=$.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:Ot(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:Ot(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:Ot(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:Ot(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:Ot(e.titleFontStyle,t.defaultFontStyle),titleFontSize:Ot(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:Ot(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:Ot(e.footerFontStyle,t.defaultFontStyle),footerFontSize:Ot(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 It(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function Nt(e){return Pt([],Yt(e))}var zt=K.extend({initialize:function(){this._model=$t(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options,n=t.callbacks,r=n.beforeTitle.apply(e,arguments),a=n.title.apply(e,arguments),i=n.afterTitle.apply(e,arguments),o=[];return o=Pt(o,Yt(r)),o=Pt(o,Yt(a)),o=Pt(o,Yt(i))},getBeforeBody:function(){return Nt(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,r=n._options.callbacks,a=[];return R.each(e,(function(e){var i={before:[],lines:[],after:[]};Pt(i.before,Yt(r.beforeLabel.call(n,e,t))),Pt(i.lines,r.label.call(n,e,t)),Pt(i.after,Yt(r.afterLabel.call(n,e,t))),a.push(i)})),a},getAfterBody:function(){return Nt(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,n=t.beforeFooter.apply(e,arguments),r=t.footer.apply(e,arguments),a=t.afterFooter.apply(e,arguments),i=[];return i=Pt(i,Yt(n)),i=Pt(i,Yt(r)),i=Pt(i,Yt(a))},update:function(e){var t,n,r,a,i,o,s,l,c,u,d=this,p=d._options,f=d._model,m=d._model=$t(p),h=d._active,_=d._data,v={xAlign:f.xAlign,yAlign:f.yAlign},g={x:f.x,y:f.y},y={width:f.width,height:f.height},b={x:f.caretX,y:f.caretY};if(h.length){m.opacity=1;var w=[],x=[];b=At[p.position].call(d,h,d._eventPosition);var k=[];for(t=0,n=h.length;t<n;++t)k.push((r=h[t],a=void 0,i=void 0,o=void 0,s=void 0,l=void 0,c=void 0,u=void 0,a=r._xScale,i=r._yScale||r._scale,o=r._index,s=r._datasetIndex,l=r._chart.getDatasetMeta(s).controller,c=l._getIndexScale(),u=l._getValueScale(),{xLabel:a?a.getLabelForIndex(o,s):"",yLabel:i?i.getLabelForIndex(o,s):"",label:c?""+c.getLabelForIndex(o,s):"",value:u?""+u.getLabelForIndex(o,s):"",index:o,datasetIndex:s,x:r._model.x,y:r._model.y}));p.filter&&(k=k.filter((function(e){return p.filter(e,_)}))),p.itemSort&&(k=k.sort((function(e,t){return p.itemSort(e,t,_)}))),R.each(k,(function(e){w.push(p.callbacks.labelColor.call(d,e,d._chart)),x.push(p.callbacks.labelTextColor.call(d,e,d._chart))})),m.title=d.getTitle(k,_),m.beforeBody=d.getBeforeBody(k,_),m.body=d.getBody(k,_),m.afterBody=d.getAfterBody(k,_),m.footer=d.getFooter(k,_),m.x=b.x,m.y=b.y,m.caretPadding=p.caretPadding,m.labelColors=w,m.labelTextColors=x,m.dataPoints=k,y=function(e,t){var n=e._chart.ctx,r=2*t.yPadding,a=0,i=t.body,o=i.reduce((function(e,t){return e+t.before.length+t.lines.length+t.after.length}),0);o+=t.beforeBody.length+t.afterBody.length;var s=t.title.length,l=t.footer.length,c=t.titleFontSize,u=t.bodyFontSize,d=t.footerFontSize;r+=s*c,r+=s?(s-1)*t.titleSpacing:0,r+=s?t.titleMarginBottom:0,r+=o*u,r+=o?(o-1)*t.bodySpacing:0,r+=l?t.footerMarginTop:0,r+=l*d,r+=l?(l-1)*t.footerSpacing:0;var p=0,f=function(e){a=Math.max(a,n.measureText(e).width+p)};return n.font=R.fontString(c,t._titleFontStyle,t._titleFontFamily),R.each(t.title,f),n.font=R.fontString(u,t._bodyFontStyle,t._bodyFontFamily),R.each(t.beforeBody.concat(t.afterBody),f),p=t.displayColors?u+2:0,R.each(i,(function(e){R.each(e.before,f),R.each(e.lines,f),R.each(e.after,f)})),p=0,n.font=R.fontString(d,t._footerFontStyle,t._footerFontFamily),R.each(t.footer,f),{width:a+=2*t.xPadding,height:r}}(this,m),g=function(e,t,n,r){var a=e.x,i=e.y,o=e.caretSize,s=e.caretPadding,l=e.cornerRadius,c=n.xAlign,u=n.yAlign,d=o+s,p=l+s;return"right"===c?a-=t.width:"center"===c&&((a-=t.width/2)+t.width>r.width&&(a=r.width-t.width),a<0&&(a=0)),"top"===u?i+=d:i-="bottom"===u?t.height+d:t.height/2,"center"===u?"left"===c?a+=d:"right"===c&&(a-=d):"left"===c?a-=p:"right"===c&&(a+=p),{x:a,y:i}}(m,y,v=function(e,t){var n,r,a,i,o,s=e._model,l=e._chart,c=e._chart.chartArea,u="center",d="center";s.y<t.height?d="top":s.y>l.height-t.height&&(d="bottom");var p=(c.left+c.right)/2,f=(c.top+c.bottom)/2;"center"===d?(n=function(e){return e<=p},r=function(e){return e>p}):(n=function(e){return e<=t.width/2},r=function(e){return e>=l.width-t.width/2}),a=function(e){return e+t.width+s.caretSize+s.caretPadding>l.width},i=function(e){return e-t.width-s.caretSize-s.caretPadding<0},o=function(e){return e<=f?"top":"bottom"},n(s.x)?(u="left",a(s.x)&&(u="center",d=o(s.y))):r(s.x)&&(u="right",i(s.x)&&(u="center",d=o(s.y)));var m=e._options;return{xAlign:m.xAlign?m.xAlign:u,yAlign:m.yAlign?m.yAlign:d}}(this,y),d._chart)}else m.opacity=0;return m.xAlign=v.xAlign,m.yAlign=v.yAlign,m.x=g.x,m.y=g.y,m.width=y.width,m.height=y.height,m.caretX=b.x,m.caretY=b.y,d._model=m,e&&p.custom&&p.custom.call(d,m),d},drawCaret:function(e,t){var n=this._chart.ctx,r=this._view,a=this.getCaretPosition(e,t,r);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)},getCaretPosition:function(e,t,n){var r,a,i,o,s,l,c=n.caretSize,u=n.cornerRadius,d=n.xAlign,p=n.yAlign,f=e.x,m=e.y,h=t.width,_=t.height;if("center"===p)s=m+_/2,"left"===d?(a=(r=f)-c,i=r,o=s+c,l=s-c):(a=(r=f+h)+c,i=r,o=s-c,l=s+c);else if("left"===d?(r=(a=f+u+c)-c,i=a+c):"right"===d?(r=(a=f+h-u-c)-c,i=a+c):(r=(a=n.caretX)-c,i=a+c),"top"===p)s=(o=m)-c,l=o;else{s=(o=m+_)+c,l=o;var v=i;i=r,r=v}return{x1:r,x2:a,x3:i,y1:o,y2:s,y3:l}},drawTitle:function(e,t,n){var r,a,i,o=t.title,s=o.length;if(s){var l=jt(t.rtl,t.x,t.width);for(e.x=It(t,t._titleAlign),n.textAlign=l.textAlign(t._titleAlign),n.textBaseline="middle",r=t.titleFontSize,a=t.titleSpacing,n.fillStyle=t.titleFontColor,n.font=R.fontString(r,t._titleFontStyle,t._titleFontFamily),i=0;i<s;++i)n.fillText(o[i],l.x(e.x),e.y+r/2),e.y+=r+a,i+1===s&&(e.y+=t.titleMarginBottom-a)}},drawBody:function(e,t,n){var r,a,i,o,s,l,c,u,d=t.bodyFontSize,p=t.bodySpacing,f=t._bodyAlign,m=t.body,h=t.displayColors,_=0,v=h?It(t,"left"):0,g=jt(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(f);for(n.textAlign=f,n.textBaseline="middle",n.font=R.fontString(d,t._bodyFontStyle,t._bodyFontFamily),e.x=It(t,b),n.fillStyle=t.bodyFontColor,R.each(t.beforeBody,y),_=h&&"right"!==b?"center"===f?d/2+1:d+2:0,s=0,c=m.length;s<c;++s){for(r=m[s],a=t.labelTextColors[s],i=t.labelColors[s],n.fillStyle=a,R.each(r.before,y),l=0,u=(o=r.lines).length;l<u;++l){if(h){var w=g.x(v);n.fillStyle=t.legendColorBackground,n.fillRect(g.leftForLtr(w,d),e.y,d,d),n.lineWidth=1,n.strokeStyle=i.borderColor,n.strokeRect(g.leftForLtr(w,d),e.y,d,d),n.fillStyle=i.backgroundColor,n.fillRect(g.leftForLtr(g.xPlus(w,1),d-2),e.y+1,d-2,d-2),n.fillStyle=a}y(o[l])}R.each(r.after,y)}_=0,R.each(t.afterBody,y),e.y-=p},drawFooter:function(e,t,n){var r,a,i=t.footer,o=i.length;if(o){var s=jt(t.rtl,t.x,t.width);for(e.x=It(t,t._footerAlign),e.y+=t.footerMarginTop,n.textAlign=s.textAlign(t._footerAlign),n.textBaseline="middle",r=t.footerFontSize,n.fillStyle=t.footerFontColor,n.font=R.fontString(r,t._footerFontStyle,t._footerFontFamily),a=0;a<o;++a)n.fillText(i[a],s.x(e.x),e.y+r/2),e.y+=r+t.footerSpacing}},drawBackground:function(e,t,n,r){n.fillStyle=t.backgroundColor,n.strokeStyle=t.borderColor,n.lineWidth=t.borderWidth;var a=t.xAlign,i=t.yAlign,o=e.x,s=e.y,l=r.width,c=r.height,u=t.cornerRadius;n.beginPath(),n.moveTo(o+u,s),"top"===i&&this.drawCaret(e,r),n.lineTo(o+l-u,s),n.quadraticCurveTo(o+l,s,o+l,s+u),"center"===i&&"right"===a&&this.drawCaret(e,r),n.lineTo(o+l,s+c-u),n.quadraticCurveTo(o+l,s+c,o+l-u,s+c),"bottom"===i&&this.drawCaret(e,r),n.lineTo(o+u,s+c),n.quadraticCurveTo(o,s+c,o,s+c-u),"center"===i&&"left"===a&&this.drawCaret(e,r),n.lineTo(o,s+u),n.quadraticCurveTo(o,s,o+u,s),n.closePath(),n.fill(),t.borderWidth>0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},r={x:t.x,y:t.y},a=Math.abs(t.opacity<.001)?0:t.opacity,i=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&i&&(e.save(),e.globalAlpha=a,this.drawBackground(r,t,e,n),r.y+=t.yPadding,R.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(r,t,e),this.drawBody(r,t,e),this.drawFooter(r,t,e),R.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t,n=this,r=n._options;return n._lastActive=n._lastActive||[],"mouseout"===e.type?n._active=[]:(n._active=n._chart.getElementsAtEventForMode(e,r.mode,r),r.reverse&&n._active.reverse()),(t=!R.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(r.enabled||r.custom)&&(n._eventPosition={x:e.x,y:e.y},n.update(!0),n.pivot())),t}}),Ft=At,Rt=zt;Rt.positioners=Ft;var Ht=R.valueOrDefault;function Bt(){return R.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,r){if("xAxes"===e||"yAxes"===e){var a,i,o,s=n[e].length;for(t[e]||(t[e]=[]),a=0;a<s;++a)o=n[e][a],i=Ht(o.type,"xAxes"===e?"category":"linear"),a>=t[e].length&&t[e].push({}),!t[e][a].type||o.type&&o.type!==t[e][a].type?R.merge(t[e][a],[Et.getScaleDefaults(i),o]):R.merge(t[e][a],o)}else R._merger(e,t,n,r)}})}function qt(){return R.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,r){var a=t[e]||Object.create(null),i=n[e];"scales"===e?t[e]=Bt(a,i):"scale"===e?t[e]=R.merge(a,[Et.getScaleDefaults(i.type),i]):R._merger(e,t,n,r)}})}function Ut(e){var t=e.options;R.each(e.scales,(function(t){mt.removeBox(e,t)})),t=qt($.global,$[e.config.type],t),e.options=e.config.options=t,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=t.tooltips,e.tooltip.initialize()}function Vt(e,t,n){var r,a=function(e){return e.id===r};do{r=t+n++}while(R.findIndex(e,a)>=0);return r}function Wt(e){return"top"===e||"bottom"===e}function Kt(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}$._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 Gt=function(e,t){return this.construct(e,t),this};R.extend(Gt.prototype,{construct:function(e,t){var n=this;t=function(e){var t=(e=e||Object.create(null)).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=qt($.global,$[e.type],e.options||{}),e}(t);var r=Lt.acquireContext(e,t),a=r&&r.canvas,i=a&&a.height,o=a&&a.width;n.id=R.uid(),n.ctx=r,n.canvas=a,n.config=t,n.width=o,n.height=i,n.aspectRatio=i?o/i:null,n.options=t.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,Gt.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(e){n.config.data=e}}),r&&a?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return Tt.notify(e,"beforeInit"),R.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),Tt.notify(e,"afterInit"),e},clear:function(){return R.canvas.clear(this),this},stop:function(){return Z.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,r=t.canvas,a=n.maintainAspectRatio&&t.aspectRatio||null,i=Math.max(0,Math.floor(R.getMaximumWidth(r))),o=Math.max(0,Math.floor(a?i/a:R.getMaximumHeight(r)));if((t.width!==i||t.height!==o)&&(r.width=t.width=i,r.height=t.height=o,r.style.width=i+"px",r.style.height=o+"px",R.retinaScale(t,n.devicePixelRatio),!e)){var s={width:i,height:o};Tt.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;R.each(t.xAxes,(function(e,n){e.id||(e.id=Vt(t.xAxes,"x-axis-",n))})),R.each(t.yAxes,(function(e,n){e.id||(e.id=Vt(t.yAxes,"y-axis-",n))})),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,n=e.scales||{},r=[],a=Object.keys(n).reduce((function(e,t){return e[t]=!1,e}),{});t.scales&&(r=r.concat((t.scales.xAxes||[]).map((function(e){return{options:e,dtype:"category",dposition:"bottom"}})),(t.scales.yAxes||[]).map((function(e){return{options:e,dtype:"linear",dposition:"left"}})))),t.scale&&r.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),R.each(r,(function(t){var r=t.options,i=r.id,o=Ht(r.type,t.dtype);Wt(r.position)!==Wt(t.dposition)&&(r.position=t.dposition),a[i]=!0;var s=null;if(i in n&&n[i].type===o)(s=n[i]).options=r,s.ctx=e.ctx,s.chart=e;else{var l=Et.getScaleConstructor(o);if(!l)return;s=new l({id:i,type:o,options:r,ctx:e.ctx,chart:e}),n[s.id]=s}s.mergeTicksOptions(),t.isDefault&&(e.scale=s)})),R.each(a,(function(e,t){e||delete n[t]})),e.scales=n,Et.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,n=this,r=[],a=n.data.datasets;for(e=0,t=a.length;e<t;e++){var i=a[e],o=n.getDatasetMeta(e),s=i.type||n.config.type;if(o.type&&o.type!==s&&(n.destroyDatasetMeta(e),o=n.getDatasetMeta(e)),o.type=s,o.order=i.order||0,o.index=e,o.controller)o.controller.updateIndex(e),o.controller.linkScales();else{var l=Ze[o.type];if(void 0===l)throw new Error('"'+o.type+'" is not a chart type.');o.controller=new l(n,e),r.push(o.controller)}}return r},resetElements:function(){var e=this;R.each(e.data.datasets,(function(t,n){e.getDatasetMeta(n).controller.reset()}),e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var t,n,r=this;if(e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]}),Ut(r),Tt._invalidate(r),!1!==Tt.notify(r,"beforeUpdate")){r.tooltip._data=r.data;var a=r.buildOrUpdateControllers();for(t=0,n=r.data.datasets.length;t<n;t++)r.getDatasetMeta(t).controller.buildOrUpdateElements();r.updateLayout(),r.options.animation&&r.options.animation.duration&&R.each(a,(function(e){e.reset()})),r.updateDatasets(),r.tooltip.initialize(),r.lastActive=[],Tt.notify(r,"afterUpdate"),r._layers.sort(Kt("z","_idx")),r._bufferedRender?r._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:r.render(e)}},updateLayout:function(){var e=this;!1!==Tt.notify(e,"beforeLayout")&&(mt.update(this,this.width,this.height),e._layers=[],R.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})),Tt.notify(e,"afterScaleUpdate"),Tt.notify(e,"afterLayout"))},updateDatasets:function(){if(!1!==Tt.notify(this,"beforeDatasetsUpdate")){for(var e=0,t=this.data.datasets.length;e<t;++e)this.updateDataset(e);Tt.notify(this,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this.getDatasetMeta(e),n={meta:t,index:e};!1!==Tt.notify(this,"beforeDatasetUpdate",[n])&&(t.controller._update(),Tt.notify(this,"afterDatasetUpdate",[n]))},render:function(e){var t=this;e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]});var n=t.options.animation,r=Ht(e.duration,n&&n.duration),a=e.lazy;if(!1!==Tt.notify(t,"beforeRender")){var i=function(e){Tt.notify(t,"afterRender"),R.callback(n&&n.onComplete,[e],t)};if(n&&r){var o=new J({numSteps:r/16.66,easing:e.easing||n.easing,render:function(e,t){var n=R.easing.effects[t.easing],r=t.currentStep,a=r/t.numSteps;e.draw(n(a),a,r)},onAnimationProgress:n.onProgress,onAnimationComplete:i});Z.addAnimation(t,o,r,a)}else t.draw(),i(new J({numSteps:0,chart:t}));return t}},draw:function(e){var t,n,r=this;if(r.clear(),R.isNullOrUndef(e)&&(e=1),r.transition(e),!(r.width<=0||r.height<=0)&&!1!==Tt.notify(r,"beforeDraw",[e])){for(n=r._layers,t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(r.chartArea);for(r.drawDatasets(e);t<n.length;++t)n[t].draw(r.chartArea);r._drawTooltip(e),Tt.notify(r,"afterDraw",[e])}},transition:function(e){for(var t=0,n=(this.data.datasets||[]).length;t<n;++t)this.isDatasetVisible(t)&&this.getDatasetMeta(t).controller.transition(e);this.tooltip.transition(e)},_getSortedDatasetMetas:function(e){var t,n,r=[];for(t=0,n=(this.data.datasets||[]).length;t<n;++t)e&&!this.isDatasetVisible(t)||r.push(this.getDatasetMeta(t));return r.sort(Kt("order","index")),r},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(e){var t,n;if(!1!==Tt.notify(this,"beforeDatasetsDraw",[e])){for(n=(t=this._getSortedVisibleDatasetMetas()).length-1;n>=0;--n)this.drawDataset(t[n],e);Tt.notify(this,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n={meta:e,index:e.index,easingValue:t};!1!==Tt.notify(this,"beforeDatasetDraw",[n])&&(e.controller.draw(t),Tt.notify(this,"afterDatasetDraw",[n]))},_drawTooltip:function(e){var t=this.tooltip,n={tooltip:t,easingValue:e};!1!==Tt.notify(this,"beforeTooltipDraw",[n])&&(t.draw(),Tt.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(e){return at.modes.single(this,e)},getElementsAtEvent:function(e){return at.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return at.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var r=at.modes[t];return"function"==typeof r?r(this,e,n):[]},getDatasetAtEvent:function(e){return at.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this.data.datasets[e];t._meta||(t._meta={});var n=t._meta[this.id];return n||(n=t._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t.order||0,index:e}),n},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t<n;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,n=this.data.datasets[e],r=n._meta&&n._meta[t];r&&(r.controller.destroy(),delete n._meta[t])},destroy:function(){var e,t,n=this,r=n.canvas;for(n.stop(),e=0,t=n.data.datasets.length;e<t;++e)n.destroyDatasetMeta(e);r&&(n.unbindEvents(),R.canvas.clear(n),Lt.releaseContext(n.ctx),n.canvas=null,n.ctx=null),Tt.notify(n,"destroy"),delete Gt.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new Rt({_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)};R.each(e.options.events,(function(r){Lt.addEventListener(e,r,n),t[r]=n})),e.options.responsive&&(n=function(){e.resize()},Lt.addEventListener(e,"resize",n),t.resize=n)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,R.each(t,(function(t,n){Lt.removeEventListener(e,n,t)})))},updateHoverStyle:function(e,t,n){var r,a,i,o=n?"set":"remove";for(a=0,i=e.length;a<i;++a)(r=e[a])&&this.getDatasetMeta(r._datasetIndex).controller[o+"HoverStyle"](r);"dataset"===t&&this.getDatasetMeta(e[0]._datasetIndex).controller["_"+o+"DatasetHoverStyle"]()},eventHandler:function(e){var t=this,n=t.tooltip;if(!1!==Tt.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var r=t.handleEvent(e);n&&(r=n._start?n.handleEvent(e):r|n.handleEvent(e)),Tt.notify(t,"afterEvent",[e]);var a=t._bufferedRequest;return a?t.render(a):r&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var t,n=this,r=n.options||{},a=r.hover;return n.lastActive=n.lastActive||[],"mouseout"===e.type?n.active=[]:n.active=n.getElementsAtEventForMode(e,a.mode,a),R.callback(r.onHover||r.hover.onHover,[e.native,n.active],n),"mouseup"!==e.type&&"click"!==e.type||r.onClick&&r.onClick.call(n,e.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,a.mode,!1),n.active.length&&a.mode&&n.updateHoverStyle(n.active,a.mode,!0),t=!R.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,t}}),Gt.instances={};var Jt=Gt;function Zt(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function Xt(e){this.options=e||{}}Gt.Controller=Gt,Gt.types={},R.configMerge=qt,R.scaleMerge=Bt,R.extend(Xt.prototype,{formats:Zt,parse:Zt,format:Zt,add:Zt,diff:Zt,startOf:Zt,endOf:Zt,_create:function(e){return e}}),Xt.override=function(e){R.extend(Xt.prototype,e)};var Qt={_date:Xt},en={formatters:{values:function(e){return R.isArray(e)?e:""+e},linear:function(e,t,n){var r=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&e!==Math.floor(e)&&(r=e-Math.floor(e));var a=R.log10(Math.abs(r)),i="";if(0!==e)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var o=R.log10(Math.abs(e)),s=Math.floor(o)-Math.floor(a);s=Math.max(Math.min(s,20),0),i=e.toExponential(s)}else{var l=-1*Math.floor(a);l=Math.max(Math.min(l,20),0),i=e.toFixed(l)}else i="0";return i},logarithmic:function(e,t,n){var r=e/Math.pow(10,Math.floor(R.log10(e)));return 0===e?"0":1===r||2===r||5===r||0===t||t===n.length-1?e.toExponential():""}}},tn=R.isArray,nn=R.isNullOrUndef,rn=R.valueOrDefault,an=R.valueAtIndexOrDefault;function on(e,t,n){var r,a=e.getTicks().length,i=Math.min(t,a-1),o=e.getPixelForTick(i),s=e._startPixel,l=e._endPixel;if(!(n&&(r=1===a?Math.max(o-s,l-o):0===t?(e.getPixelForTick(1)-o)/2:(o-e.getPixelForTick(i-1))/2,(o+=i<t?r:-r)<s-1e-6||o>l+1e-6)))return o}function sn(e,t,n,r){var a,i,o,s,l,c,u,d,p,f,m,h,_,v=n.length,g=[],y=[],b=[],w=0,x=0;for(a=0;a<v;++a){if(s=n[a].label,l=n[a].major?t.major:t.minor,e.font=c=l.string,u=r[c]=r[c]||{data:{},gc:[]},d=l.lineHeight,p=f=0,nn(s)||tn(s)){if(tn(s))for(i=0,o=s.length;i<o;++i)m=s[i],nn(m)||tn(m)||(p=R.measureText(e,u.data,u.gc,p,m),f+=d)}else p=R.measureText(e,u.data,u.gc,p,s),f=d;g.push(p),y.push(f),b.push(d/2),w=Math.max(p,w),x=Math.max(f,x)}function k(e){return{width:g[e]||0,height:y[e]||0,offset:b[e]||0}}return function(e,t){R.each(e,(function(e){var n,r=e.gc,a=r.length/2;if(a>t){for(n=0;n<a;++n)delete e.data[r[n]];r.splice(0,a)}}))}(r,v),h=g.indexOf(w),_=y.indexOf(x),{first:k(0),last:k(v-1),widest:k(h),highest:k(_)}}function ln(e){return e.drawTicks?e.tickMarkLength:0}function cn(e){var t,n;return e.display?(t=R.options._parseFont(e),n=R.options.toPadding(e.padding),t.lineHeight+n.height):0}function un(e,t){return R.extend(R.options._parseFont({fontFamily:rn(t.fontFamily,e.fontFamily),fontSize:rn(t.fontSize,e.fontSize),fontStyle:rn(t.fontStyle,e.fontStyle),lineHeight:rn(t.lineHeight,e.lineHeight)}),{color:R.options.resolve([t.fontColor,e.fontColor,$.global.defaultFontColor])})}function dn(e){var t=un(e,e.minor);return{minor:t,major:e.major.enabled?un(e,e.major):t}}function pn(e){var t,n,r,a=[];for(n=0,r=e.length;n<r;++n)void 0!==(t=e[n])._index&&a.push(t);return a}function fn(e,t,n,r){var a,i,o,s,l=rn(n,0),c=Math.min(rn(r,e.length),e.length),u=0;for(t=Math.ceil(t),r&&(t=(a=r-n)/Math.floor(a/t)),s=l;s<0;)u++,s=Math.round(l+u*t);for(i=Math.max(l,0);i<c;i++)o=e[i],i===s?(o._index=i,u++,s=Math.round(l+u*t)):delete o.label}$._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:en.formatters.values,minor:{},major:{}}});var mn=K.extend({zeroLineIndex:0,getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.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(){R.callback(this.options.beforeUpdate,[this])},update:function(e,t,n){var r,a,i,o,s,l=this,c=l.options.ticks,u=c.sampleSize;if(l.beforeUpdate(),l.maxWidth=e,l.maxHeight=t,l.margins=R.extend({left:0,right:0,top:0,bottom:0},n),l._ticks=null,l.ticks=null,l._labelSizes=null,l._maxLabelLines=0,l.longestLabelWidth=0,l.longestTextCache=l.longestTextCache||{},l._gridLineItems=null,l._labelItems=null,l.beforeSetDimensions(),l.setDimensions(),l.afterSetDimensions(),l.beforeDataLimits(),l.determineDataLimits(),l.afterDataLimits(),l.beforeBuildTicks(),o=l.buildTicks()||[],(!(o=l.afterBuildTicks(o)||o)||!o.length)&&l.ticks)for(o=[],r=0,a=l.ticks.length;r<a;++r)o.push({value:l.ticks[r],major:!1});return l._ticks=o,s=u<o.length,i=l._convertTicksToLabels(s?function(e,t){for(var n=[],r=e.length/t,a=0,i=e.length;a<i;a+=r)n.push(e[Math.floor(a)]);return n}(o,u):o),l._configure(),l.beforeCalculateTickRotation(),l.calculateTickRotation(),l.afterCalculateTickRotation(),l.beforeFit(),l.fit(),l.afterFit(),l._ticksToDraw=c.display&&(c.autoSkip||"auto"===c.source)?l._autoSkip(o):o,s&&(i=l._convertTicksToLabels(l._ticksToDraw)),l.ticks=i,l.afterUpdate(),l.minSize},_configure:function(){var e,t,n=this,r=n.options.ticks.reverse;n.isHorizontal()?(e=n.left,t=n.right):(e=n.top,t=n.bottom,r=!r),n._startPixel=e,n._endPixel=t,n._reversePixels=r,n._length=t-e},afterUpdate:function(){R.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){R.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(){R.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){R.callback(this.options.beforeDataLimits,[this])},determineDataLimits:R.noop,afterDataLimits:function(){R.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){R.callback(this.options.beforeBuildTicks,[this])},buildTicks:R.noop,afterBuildTicks:function(e){var t=this;return tn(e)&&e.length?R.callback(t.options.afterBuildTicks,[t,e]):(t.ticks=R.callback(t.options.afterBuildTicks,[t,t.ticks])||t.ticks,e)},beforeTickToLabelConversion:function(){R.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this.options.ticks;this.ticks=this.ticks.map(e.userCallback||e.callback,this)},afterTickToLabelConversion:function(){R.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){R.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e,t,n,r,a,i,o,s=this,l=s.options,c=l.ticks,u=s.getTicks().length,d=c.minRotation||0,p=c.maxRotation,f=d;!s._isVisible()||!c.display||d>=p||u<=1||!s.isHorizontal()?s.labelRotation=d:(t=(e=s._getLabelSizes()).widest.width,n=e.highest.height-e.highest.offset,r=Math.min(s.maxWidth,s.chart.width-t),t+6>(a=l.offset?s.maxWidth/u:r/(u-1))&&(a=r/(u-(l.offset?.5:1)),i=s.maxHeight-ln(l.gridLines)-c.padding-cn(l.scaleLabel),o=Math.sqrt(t*t+n*n),f=R.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/a,1)),Math.asin(Math.min(i/o,1))-Math.asin(n/o))),f=Math.max(d,Math.min(p,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){R.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){R.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=e.chart,r=e.options,a=r.ticks,i=r.scaleLabel,o=r.gridLines,s=e._isVisible(),l="bottom"===r.position,c=e.isHorizontal();if(c?t.width=e.maxWidth:s&&(t.width=ln(o)+cn(i)),c?s&&(t.height=ln(o)+cn(i)):t.height=e.maxHeight,a.display&&s){var u=dn(a),d=e._getLabelSizes(),p=d.first,f=d.last,m=d.widest,h=d.highest,_=.4*u.minor.lineHeight,v=a.padding;if(c){var g=0!==e.labelRotation,y=R.toRadians(e.labelRotation),b=Math.cos(y),w=Math.sin(y),x=w*m.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*(f.height-f.offset):b*f.width+w*f.offset):(k=p.width/2,D=f.width/2),e.paddingLeft=Math.max((k-M)*e.width/(e.width-M),0)+3,e.paddingRight=Math.max((D-S)*e.width/(e.width-S),0)+3}else{var C=a.mirror?0:m.width+v+_;t.width=Math.min(e.maxWidth,t.width+C),e.paddingTop=p.height/2,e.paddingBottom=f.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(){R.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(nn(e))return NaN;if(("number"==typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},_convertTicksToLabels:function(e){var t,n,r,a=this;for(a.ticks=e.map((function(e){return e.value})),a.beforeTickToLabelConversion(),t=a.convertTicksToLabels(e)||a.ticks,a.afterTickToLabelConversion(),n=0,r=e.length;n<r;++n)e[n].label=t[n];return t},_getLabelSizes:function(){var e=this,t=e._labelSizes;return t||(e._labelSizes=t=sn(e.ctx,dn(e.options.ticks),e.getTicks(),e.longestTextCache),e.longestLabelWidth=t.widest.width),t},_parseValue:function(e){var t,n,r,a;return tn(e)?(t=+this.getRightValue(e[0]),n=+this.getRightValue(e[1]),r=Math.min(t,n),a=Math.max(t,n)):(t=void 0,n=e=+this.getRightValue(e),r=e,a=e),{min:r,max:a,start:t,end:n}},_getScaleLabel:function(e){var t=this._parseValue(e);return void 0!==t.start?"["+t.start+", "+t.end+"]":+this.getRightValue(e)},getLabelForIndex:R.noop,getPixelForValue:R.noop,getValueForPixel:R.noop,getPixelForTick:function(e){var t=this.options.offset,n=this._ticks.length,r=1/Math.max(n-(t?0:1),1);return e<0||e>n-1?null:this.getPixelForDecimal(e*r+(t?r/2:0))},getPixelForDecimal:function(e){return this._reversePixels&&(e=1-e),this._startPixel+e*this._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.min,t=this.max;return this.beginAtZero?0:e<0&&t<0?t:e>0&&t>0?e:0},_autoSkip:function(e){var t,n,r,a,i=this.options.ticks,o=this._length,s=i.maxTicksLimit||o/this._tickSize()+1,l=i.major.enabled?function(e){var t,n,r=[];for(t=0,n=e.length;t<n;t++)e[t].major&&r.push(t);return r}(e):[],c=l.length,u=l[0],d=l[c-1];if(c>s)return function(e,t,n){var r,a,i=0,o=t[0];for(n=Math.ceil(n),r=0;r<e.length;r++)a=e[r],r===o?(a._index=r,o=t[++i*n]):delete a.label}(e,l,c/s),pn(e);if(r=function(e,t,n,r){var a,i,o,s,l=function(e){var t,n,r=e.length;if(r<2)return!1;for(n=e[0],t=1;t<r;++t)if(e[t]-e[t-1]!==n)return!1;return n}(e),c=(t.length-1)/r;if(!l)return Math.max(c,1);for(o=0,s=(a=R.math._factorize(l)).length-1;o<s;o++)if((i=a[o])>c)return i;return Math.max(c,1)}(l,e,0,s),c>0){for(t=0,n=c-1;t<n;t++)fn(e,r,l[t],l[t+1]);return a=c>1?(d-u)/(c-1):null,fn(e,r,R.isNullOrUndef(a)?0:u-a,u),fn(e,r,d,R.isNullOrUndef(a)?e.length:d+a),pn(e)}return fn(e,r),pn(e)},_tickSize:function(){var e=this.options.ticks,t=R.toRadians(this.labelRotation),n=Math.abs(Math.cos(t)),r=Math.abs(Math.sin(t)),a=this._getLabelSizes(),i=e.autoSkipPadding||0,o=a?a.widest.width+i:0,s=a?a.highest.height+i:0;return this.isHorizontal()?s*n>o*r?o/n:s/r:s*r<o*n?s/n:o/r},_isVisible:function(){var e,t,n,r=this.chart,a=this.options.display;if("auto"!==a)return!!a;for(e=0,t=r.data.datasets.length;e<t;++e)if(r.isDatasetVisible(e)&&((n=r.getDatasetMeta(e)).xAxisID===this.id||n.yAxisID===this.id))return!0;return!1},_computeGridLineItems:function(e){var t,n,r,a,i,o,s,l,c,u,d,p,f,m,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=ln(w),L=[],T=w.drawBorder?an(w.lineWidth,0,0):0,E=T/2,O=R._alignPixel,j=function(e){return O(y,e,T)};for("top"===x?(t=j(g.bottom),s=g.bottom-C,c=t-E,d=j(e.top)+E,f=e.bottom):"bottom"===x?(t=j(g.top),d=e.top,f=j(e.bottom)-E,s=t+E,c=g.top+C):"left"===x?(t=j(g.right),o=g.right-C,l=t-E,u=j(e.left)+E,p=e.right):(t=j(g.left),u=e.left,p=j(e.right)-E,o=t+E,l=g.left+C),n=0;n<S;++n)r=M[n]||{},nn(r.label)&&n<M.length||(n===g.zeroLineIndex&&b.offset===k?(m=w.zeroLineWidth,h=w.zeroLineColor,_=w.zeroLineBorderDash||[],v=w.zeroLineBorderDashOffset||0):(m=an(w.lineWidth,n,1),h=an(w.color,n,"rgba(0,0,0,0.1)"),_=w.borderDash||[],v=w.borderDashOffset||0),void 0!==(a=on(g,r._index||n,k))&&(i=O(y,a,m),D?o=l=u=p=i:s=c=d=f=i,L.push({tx1:o,ty1:s,tx2:l,ty2:c,x1:u,y1:d,x2:p,y2:f,width:m,color:h,borderDash:_,borderDashOffset:v})));return L.ticksLength=S,L.borderValue=t,L},_computeLabelItems:function(){var e,t,n,r,a,i,o,s,l,c,u,d,p=this,f=p.options,m=f.ticks,h=f.position,_=m.mirror,v=p.isHorizontal(),g=p._ticksToDraw,y=dn(m),b=m.padding,w=ln(f.gridLines),x=-R.toRadians(p.labelRotation),k=[];for("top"===h?(i=p.bottom-w-b,o=x?"left":"center"):"bottom"===h?(i=p.top+w+b,o=x?"right":"center"):"left"===h?(a=p.right-(_?0:w)-b,o=_?"left":"right"):(a=p.left+(_?0:w)+b,o=_?"right":"left"),e=0,t=g.length;e<t;++e)r=(n=g[e]).label,nn(r)||(s=p.getPixelForTick(n._index||e)+m.labelOffset,c=(l=n.major?y.major:y.minor).lineHeight,u=tn(r)?r.length:1,v?(a=s,d="top"===h?((x?1:.5)-u)*c:(x?0:.5)*c):(i=s,d=(1-u)*c/2),k.push({x:a,y:i,rotation:x,label:r,font:l,textOffset:d,textAlign:o}));return k},_drawGrid:function(e){var t=this,n=t.options.gridLines;if(n.display){var r,a,i,o,s,l=t.ctx,c=t.chart,u=R._alignPixel,d=n.drawBorder?an(n.lineWidth,0,0):0,p=t._gridLineItems||(t._gridLineItems=t._computeGridLineItems(e));for(i=0,o=p.length;i<o;++i)r=(s=p[i]).width,a=s.color,r&&a&&(l.save(),l.lineWidth=r,l.strokeStyle=a,l.setLineDash&&(l.setLineDash(s.borderDash),l.lineDashOffset=s.borderDashOffset),l.beginPath(),n.drawTicks&&(l.moveTo(s.tx1,s.ty1),l.lineTo(s.tx2,s.ty2)),n.drawOnChartArea&&(l.moveTo(s.x1,s.y1),l.lineTo(s.x2,s.y2)),l.stroke(),l.restore());if(d){var f,m,h,_,v=d,g=an(n.lineWidth,p.ticksLength-1,1),y=p.borderValue;t.isHorizontal()?(f=u(c,t.left,v)-v/2,m=u(c,t.right,g)+g/2,h=_=y):(h=u(c,t.top,v)-v/2,_=u(c,t.bottom,g)+g/2,f=m=y),l.lineWidth=d,l.strokeStyle=an(n.color,0),l.beginPath(),l.moveTo(f,h),l.lineTo(m,_),l.stroke()}}},_drawLabels:function(){var e=this;if(e.options.ticks.display){var t,n,r,a,i,o,s,l,c=e.ctx,u=e._labelItems||(e._labelItems=e._computeLabelItems());for(t=0,r=u.length;t<r;++t){if(o=(i=u[t]).font,c.save(),c.translate(i.x,i.y),c.rotate(i.rotation),c.font=o.string,c.fillStyle=o.color,c.textBaseline="middle",c.textAlign=i.textAlign,s=i.label,l=i.textOffset,tn(s))for(n=0,a=s.length;n<a;++n)c.fillText(""+s[n],0,l),l+=o.lineHeight;else c.fillText(s,0,l);c.restore()}}},_drawTitle:function(){var e=this,t=e.ctx,n=e.options,r=n.scaleLabel;if(r.display){var a,i,o=rn(r.fontColor,$.global.defaultFontColor),s=R.options._parseFont(r),l=R.options.toPadding(r.padding),c=s.lineHeight/2,u=n.position,d=0;if(e.isHorizontal())a=e.left+e.width/2,i="bottom"===u?e.bottom-c-l.bottom:e.top+c+l.top;else{var p="left"===u;a=p?e.left+c+l.top:e.right-c-l.top,i=e.top+e.height/2,d=p?-.5*Math.PI:.5*Math.PI}t.save(),t.translate(a,i),t.rotate(d),t.textAlign="center",t.textBaseline="middle",t.fillStyle=o,t.font=s.string,t.fillText(r.labelString,0,0),t.restore()}},draw:function(e){this._isVisible()&&(this._drawGrid(e),this._drawTitle(),this._drawLabels())},_layers:function(){var e=this,t=e.options,n=t.ticks&&t.ticks.z||0,r=t.gridLines&&t.gridLines.z||0;return e._isVisible()&&n!==r&&e.draw===e._draw?[{z:r,draw:function(){e._drawGrid.apply(e,arguments),e._drawTitle.apply(e,arguments)}},{z:n,draw:function(){e._drawLabels.apply(e,arguments)}}]:[{z:n,draw:function(){e.draw.apply(e,arguments)}}]},_getMatchingVisibleMetas:function(e){var t=this,n=t.isHorizontal();return t.chart._getSortedVisibleDatasetMetas().filter((function(r){return(!e||r.type===e)&&(n?r.xAxisID===t.id:r.yAxisID===t.id)}))}});mn.prototype._draw=mn.prototype.draw;var hn=mn,_n=R.isNullOrUndef,vn=hn.extend({determineDataLimits:function(){var e,t=this,n=t._getLabels(),r=t.options.ticks,a=r.min,i=r.max,o=0,s=n.length-1;void 0!==a&&(e=n.indexOf(a))>=0&&(o=e),void 0!==i&&(e=n.indexOf(i))>=0&&(s=e),t.minIndex=o,t.maxIndex=s,t.min=n[o],t.max=n[s]},buildTicks:function(){var e=this._getLabels(),t=this.minIndex,n=this.maxIndex;this.ticks=0===t&&n===e.length-1?e:e.slice(t,n+1)},getLabelForIndex:function(e,t){var n=this.chart;return n.getDatasetMeta(t).controller._getValueScaleId()===this.id?this.getRightValue(n.data.datasets[t].data[e]):this._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,n=e.ticks;hn.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),n&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(n.length-(t?0:1),1))},getPixelForValue:function(e,t,n){var r,a,i,o=this;return _n(t)||_n(n)||(e=o.chart.data.datasets[n].data[t]),_n(e)||(r=o.isHorizontal()?e.x:e.y),(void 0!==r||void 0!==e&&isNaN(t))&&(a=o._getLabels(),e=R.valueOrDefault(r,e),t=-1!==(i=a.indexOf(e))?i:t,isNaN(t)&&(t=e)),o.getPixelForDecimal((t-o._startValue)/o._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange);return Math.min(Math.max(t,0),this.ticks.length-1)},getBasePixel:function(){return this.bottom}}),gn={position:"bottom"};vn._defaults=gn;var yn=R.noop,bn=R.isNullOrUndef,wn=hn.extend({getRightValue:function(e){return"string"==typeof e?+e:hn.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=R.sign(e.min),r=R.sign(e.max);n<0&&r<0?e.max=0:n>0&&r>0&&(e.min=0)}var a=void 0!==t.min||void 0!==t.suggestedMin,i=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),a!==i&&e.min>=e.max&&(a?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this.options.ticks,n=t.stepSize,r=t.maxTicksLimit;return n?e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1:(e=this._computeTickLimit(),r=r||11),r&&(e=Math.min(r,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:yn,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),r={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,precision:t.precision,stepSize:R.valueOrDefault(t.fixedStepSize,t.stepSize)},a=e.ticks=function(e,t){var n,r,a,i,o=[],s=e.stepSize,l=s||1,c=e.maxTicks-1,u=e.min,d=e.max,p=e.precision,f=t.min,m=t.max,h=R.niceNum((m-f)/c/l)*l;if(h<1e-14&&bn(u)&&bn(d))return[f,m];(i=Math.ceil(m/h)-Math.floor(f/h))>c&&(h=R.niceNum(i*h/c/l)*l),s||bn(p)?n=Math.pow(10,R._decimalPlaces(h)):(n=Math.pow(10,p),h=Math.ceil(h*n)/n),r=Math.floor(f/h)*h,a=Math.ceil(m/h)*h,s&&(!bn(u)&&R.almostWhole(u/h,h/1e3)&&(r=u),!bn(d)&&R.almostWhole(d/h,h/1e3)&&(a=d)),i=(a-r)/h,i=R.almostEquals(i,Math.round(i),h/1e3)?Math.round(i):Math.ceil(i),r=Math.round(r*n)/n,a=Math.round(a*n)/n,o.push(bn(u)?r:u);for(var _=1;_<i;++_)o.push(Math.round((r+_*h)*n)/n);return o.push(bn(d)?a:d),o}(r,e);e.handleDirectionalChanges(),e.max=R.max(a),e.min=R.min(a),t.reverse?(a.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),hn.prototype.convertTicksToLabels.call(e)},_configure:function(){var e,t=this,n=t.getTicks(),r=t.min,a=t.max;hn.prototype._configure.call(t),t.options.offset&&n.length&&(r-=e=(a-r)/Math.max(n.length-1,1)/2,a+=e),t._startValue=r,t._endValue=a,t._valueRange=a-r}}),xn={position:"left",ticks:{callback:en.formatters.linear}};function kn(e,t,n,r){var a,i,o=e.options,s=function(e,t,n){var r=[n.type,void 0===t&&void 0===n.stack?n.index:"",n.stack].join(".");return void 0===e[r]&&(e[r]={pos:[],neg:[]}),e[r]}(t,o.stacked,n),l=s.pos,c=s.neg,u=r.length;for(a=0;a<u;++a)i=e._parseValue(r[a]),isNaN(i.min)||isNaN(i.max)||n.data[a].hidden||(l[a]=l[a]||0,c[a]=c[a]||0,o.relativePoints?l[a]=100:i.min<0||i.max<0?c[a]+=i.min:l[a]+=i.max)}function Dn(e,t,n){var r,a,i=n.length;for(r=0;r<i;++r)a=e._parseValue(n[r]),isNaN(a.min)||isNaN(a.max)||t.data[r].hidden||(e.min=Math.min(e.min,a.min),e.max=Math.max(e.max,a.max))}var Mn=wn.extend({determineDataLimits:function(){var e,t,n,r,a=this,i=a.options,o=a.chart.data.datasets,s=a._getMatchingVisibleMetas(),l=i.stacked,c={},u=s.length;if(a.min=Number.POSITIVE_INFINITY,a.max=Number.NEGATIVE_INFINITY,void 0===l)for(e=0;!l&&e<u;++e)l=void 0!==(t=s[e]).stack;for(e=0;e<u;++e)n=o[(t=s[e]).index].data,l?kn(a,c,t,n):Dn(a,t,n);R.each(c,(function(e){r=e.pos.concat(e.neg),a.min=Math.min(a.min,R.min(r)),a.max=Math.max(a.max,R.max(r))})),a.min=R.isFinite(a.min)&&!isNaN(a.min)?a.min:0,a.max=R.isFinite(a.max)&&!isNaN(a.max)?a.max:1,a.handleTickRangeOptions()},_computeTickLimit:function(){var e;return this.isHorizontal()?Math.ceil(this.width/40):(e=R.options._parseFont(this.options.ticks),Math.ceil(this.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){return this.getPixelForDecimal((+this.getRightValue(e)-this._startValue)/this._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])}}),Sn=xn;Mn._defaults=Sn;var Cn=R.valueOrDefault,Ln=R.math.log10,Tn={position:"left",ticks:{callback:en.formatters.logarithmic}};function En(e,t){return R.isFinite(e)&&e>=0?e:t}var On=hn.extend({determineDataLimits:function(){var e,t,n,r,a,i,o=this,s=o.options,l=o.chart,c=l.data.datasets,u=o.isHorizontal();function d(e){return u?e.xAxisID===o.id:e.yAxisID===o.id}o.min=Number.POSITIVE_INFINITY,o.max=Number.NEGATIVE_INFINITY,o.minNotZero=Number.POSITIVE_INFINITY;var p=s.stacked;if(void 0===p)for(e=0;e<c.length;e++)if(t=l.getDatasetMeta(e),l.isDatasetVisible(e)&&d(t)&&void 0!==t.stack){p=!0;break}if(s.stacked||p){var f={};for(e=0;e<c.length;e++){var m=[(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===f[m]&&(f[m]=[]),a=0,i=(r=c[e].data).length;a<i;a++){var h=f[m];n=o._parseValue(r[a]),isNaN(n.min)||isNaN(n.max)||t.data[a].hidden||n.min<0||n.max<0||(h[a]=h[a]||0,h[a]+=n.max)}}R.each(f,(function(e){if(e.length>0){var t=R.min(e),n=R.max(e);o.min=Math.min(o.min,t),o.max=Math.max(o.max,n)}}))}else for(e=0;e<c.length;e++)if(t=l.getDatasetMeta(e),l.isDatasetVisible(e)&&d(t))for(a=0,i=(r=c[e].data).length;a<i;a++)n=o._parseValue(r[a]),isNaN(n.min)||isNaN(n.max)||t.data[a].hidden||n.min<0||n.max<0||(o.min=Math.min(n.min,o.min),o.max=Math.max(n.max,o.max),0!==n.min&&(o.minNotZero=Math.min(n.min,o.minNotZero)));o.min=R.isFinite(o.min)?o.min:null,o.max=R.isFinite(o.max)?o.max:null,o.minNotZero=R.isFinite(o.minNotZero)?o.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;e.min=En(t.min,e.min),e.max=En(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(Ln(e.min))-1),e.max=Math.pow(10,Math.floor(Ln(e.max))+1)):(e.min=1,e.max=10)),null===e.min&&(e.min=Math.pow(10,Math.floor(Ln(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(Ln(e.min))+1):10),null===e.minNotZero&&(e.min>0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(Ln(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),r={min:En(t.min),max:En(t.max)},a=e.ticks=function(e,t){var n,r,a=[],i=Cn(e.min,Math.pow(10,Math.floor(Ln(t.min)))),o=Math.floor(Ln(t.max)),s=Math.ceil(t.max/Math.pow(10,o));0===i?(n=Math.floor(Ln(t.minNotZero)),r=Math.floor(t.minNotZero/Math.pow(10,n)),a.push(i),i=r*Math.pow(10,n)):(n=Math.floor(Ln(i)),r=Math.floor(i/Math.pow(10,n)));var l=n<0?Math.pow(10,Math.abs(n)):1;do{a.push(i),10==++r&&(r=1,l=++n>=0?1:l),i=Math.round(r*Math.pow(10,n)*l)/l}while(n<o||n===o&&r<s);var c=Cn(e.max,i);return a.push(c),a}(r,e);e.max=R.max(a),e.min=R.min(a),t.reverse?(n=!n,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n&&a.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),hn.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(Ln(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,n=0;hn.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),n=Cn(e.options.ticks.fontSize,$.global.defaultFontSize)/e._length),e._startValue=Ln(t),e._valueOffset=n,e._valueRange=(Ln(e.max)-Ln(t))/(1-n)},getPixelForValue:function(e){var t=this,n=0;return(e=+t.getRightValue(e))>t.min&&e>0&&(n=(Ln(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)}}),jn=Tn;On._defaults=jn;var An=R.valueOrDefault,Pn=R.valueAtIndexOrDefault,Yn=R.options.resolve,$n={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:en.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function In(e){var t=e.ticks;return t.display&&e.display?An(t.fontSize,$.global.defaultFontSize)+2*t.backdropPaddingY:0}function Nn(e,t,n,r,a){return e===r||e===a?{start:t-n/2,end:t+n/2}:e<r||e>a?{start:t-n,end:t}:{start:t,end:t+n}}function zn(e){return 0===e||180===e?"center":e<180?"left":"right"}function Fn(e,t,n,r){var a,i,o=n.y+r/2;if(R.isArray(t))for(a=0,i=t.length;a<i;++a)e.fillText(t[a],n.x,o),o+=r;else e.fillText(t,n.x,o)}function Rn(e,t,n){90===e||270===e?n.y-=t.h/2:(e>270||e<90)&&(n.y-=t.h)}function Hn(e){return R.isNumber(e)?e:0}var Bn=wn.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=In(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;R.each(t.data.datasets,(function(a,i){if(t.isDatasetVisible(i)){var o=t.getDatasetMeta(i);R.each(a.data,(function(t,a){var i=+e.getRightValue(t);isNaN(i)||o.data[a].hidden||(n=Math.min(i,n),r=Math.max(i,r))}))}})),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=r===Number.NEGATIVE_INFINITY?0:r,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/In(this.options))},convertTicksToLabels:function(){var e=this;wn.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map((function(){var t=R.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.options;e.display&&e.pointLabels.display?function(e){var t,n,r,a=R.options._parseFont(e.options.pointLabels),i={l:0,r:e.width,t:0,b:e.height-e.paddingTop},o={};e.ctx.font=a.string,e._pointLabelSizes=[];var s,l,c,u=e.chart.data.labels.length;for(t=0;t<u;t++){r=e.getPointPosition(t,e.drawingArea+5),s=e.ctx,l=a.lineHeight,c=e.pointLabels[t],n=R.isArray(c)?{w:R.longestText(s,s.font,c),h:c.length*l}:{w:s.measureText(c).width,h:l},e._pointLabelSizes[t]=n;var d=e.getIndexAngle(t),p=R.toDegrees(d)%360,f=Nn(p,r.x,n.w,0,180),m=Nn(p,r.y,n.h,90,270);f.start<i.l&&(i.l=f.start,o.l=d),f.end>i.r&&(i.r=f.end,o.r=d),m.start<i.t&&(i.t=m.start,o.t=d),m.end>i.b&&(i.b=m.end,o.b=d)}e.setReductions(e.drawingArea,i,o)}(this):this.setCenterPoint(0,0,0,0)},setReductions:function(e,t,n){var r=this,a=t.l/Math.sin(n.l),i=Math.max(t.r-r.width,0)/Math.sin(n.r),o=-t.t/Math.cos(n.t),s=-Math.max(t.b-(r.height-r.paddingTop),0)/Math.cos(n.b);a=Hn(a),i=Hn(i),o=Hn(o),s=Hn(s),r.drawingArea=Math.min(Math.floor(e-(a+i)/2),Math.floor(e-(o+s)/2)),r.setCenterPoint(a,i,o,s)},setCenterPoint:function(e,t,n,r){var a=this,i=a.width-t-a.drawingArea,o=e+a.drawingArea,s=n+a.drawingArea,l=a.height-a.paddingTop-r-a.drawingArea;a.xCenter=Math.floor((o+i)/2+a.left),a.yCenter=Math.floor((s+l)/2+a.top+a.paddingTop)},getIndexAngle:function(e){var t=this.chart,n=(e*(360/t.data.labels.length)+((t.options||{}).startAngle||0))%360;return(n<0?n+360:n)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(R.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.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(n)*t+this.xCenter,y:Math.sin(n)*t+this.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this.min,n=this.max;return this.getPointPositionForValue(e||0,this.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0)},_drawGrid:function(){var e,t,n,r=this,a=r.ctx,i=r.options,o=i.gridLines,s=i.angleLines,l=An(s.lineWidth,o.lineWidth),c=An(s.color,o.color);if(i.pointLabels.display&&function(e){var t=e.ctx,n=e.options,r=n.pointLabels,a=In(n),i=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),o=R.options._parseFont(r);t.save(),t.font=o.string,t.textBaseline="middle";for(var s=e.chart.data.labels.length-1;s>=0;s--){var l=0===s?a/2:0,c=e.getPointPosition(s,i+l+5),u=Pn(r.fontColor,s,$.global.defaultFontColor);t.fillStyle=u;var d=e.getIndexAngle(s),p=R.toDegrees(d);t.textAlign=zn(p),Rn(p,e._pointLabelSizes[s],c),Fn(t,e.pointLabels[s],c,o.lineHeight)}t.restore()}(r),o.display&&R.each(r.ticks,(function(e,n){0!==n&&(t=r.getDistanceFromCenterForValue(r.ticksAsNumbers[n]),function(e,t,n,r){var a,i=e.ctx,o=t.circular,s=e.chart.data.labels.length,l=Pn(t.color,r-1),c=Pn(t.lineWidth,r-1);if((o||s)&&l&&c){if(i.save(),i.strokeStyle=l,i.lineWidth=c,i.setLineDash&&(i.setLineDash(t.borderDash||[]),i.lineDashOffset=t.borderDashOffset||0),i.beginPath(),o)i.arc(e.xCenter,e.yCenter,n,0,2*Math.PI);else{a=e.getPointPosition(0,n),i.moveTo(a.x,a.y);for(var u=1;u<s;u++)a=e.getPointPosition(u,n),i.lineTo(a.x,a.y)}i.closePath(),i.stroke(),i.restore()}}(r,o,t,n))})),s.display&&l&&c){for(a.save(),a.lineWidth=l,a.strokeStyle=c,a.setLineDash&&(a.setLineDash(Yn([s.borderDash,o.borderDash,[]])),a.lineDashOffset=Yn([s.borderDashOffset,o.borderDashOffset,0])),e=r.chart.data.labels.length-1;e>=0;e--)t=r.getDistanceFromCenterForValue(i.ticks.reverse?r.min:r.max),n=r.getPointPosition(e,t),a.beginPath(),a.moveTo(r.xCenter,r.yCenter),a.lineTo(n.x,n.y),a.stroke();a.restore()}},_drawLabels:function(){var e=this,t=e.ctx,n=e.options.ticks;if(n.display){var r,a,i=e.getIndexAngle(0),o=R.options._parseFont(n),s=An(n.fontColor,$.global.defaultFontColor);t.save(),t.font=o.string,t.translate(e.xCenter,e.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",R.each(e.ticks,(function(i,l){(0!==l||n.reverse)&&(r=e.getDistanceFromCenterForValue(e.ticksAsNumbers[l]),n.showLabelBackdrop&&(a=t.measureText(i).width,t.fillStyle=n.backdropColor,t.fillRect(-a/2-n.backdropPaddingX,-r-o.size/2-n.backdropPaddingY,a+2*n.backdropPaddingX,o.size+2*n.backdropPaddingY)),t.fillStyle=s,t.fillText(i,0,-r))})),t.restore()}},_drawTitle:R.noop}),qn=$n;Bn._defaults=qn;var Un=R._deprecated,Vn=R.options.resolve,Wn=R.valueOrDefault,Kn=Number.MIN_SAFE_INTEGER||-9007199254740991,Gn=Number.MAX_SAFE_INTEGER||9007199254740991,Jn={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}},Zn=Object.keys(Jn);function Xn(e,t){return e-t}function Qn(e){return R.valueOrDefault(e.time.min,e.ticks.min)}function er(e){return R.valueOrDefault(e.time.max,e.ticks.max)}function tr(e,t,n,r){var a=function(e,t,n){for(var r,a,i,o=0,s=e.length-1;o>=0&&o<=s;){if(a=e[(r=o+s>>1)-1]||null,i=e[r],!a)return{lo:null,hi:i};if(i[t]<n)o=r+1;else{if(!(a[t]>n))return{lo:a,hi:i};s=r-1}}return{lo:i,hi:null}}(e,t,n),i=a.lo?a.hi?a.lo:e[e.length-2]:e[0],o=a.lo?a.hi?a.hi:e[e.length-1]:e[1],s=o[t]-i[t],l=s?(n-i[t])/s:0,c=(o[r]-i[r])*l;return i[r]+c}function nr(e,t){var n=e._adapter,r=e.options.time,a=r.parser,i=a||r.format,o=t;return"function"==typeof a&&(o=a(o)),R.isFinite(o)||(o="string"==typeof i?n.parse(o,i):n.parse(o)),null!==o?+o:(a||"function"!=typeof i||(o=i(t),R.isFinite(o)||(o=n.parse(o))),o)}function rr(e,t){if(R.isNullOrUndef(t))return null;var n=e.options.time,r=nr(e,e.getRightValue(t));return null===r||n.round&&(r=+e._adapter.startOf(r,n.round)),r}function ar(e,t,n,r){var a,i,o,s=Zn.length;for(a=Zn.indexOf(e);a<s-1;++a)if(o=(i=Jn[Zn[a]]).steps?i.steps:Gn,i.common&&Math.ceil((n-t)/(o*i.size))<=r)return Zn[a];return Zn[s-1]}function ir(e,t,n){var r,a,i=[],o={},s=t.length;for(r=0;r<s;++r)o[a=t[r]]=r,i.push({value:a,major:!1});return 0!==s&&n?function(e,t,n,r){var a,i,o=e._adapter,s=+o.startOf(t[0].value,r),l=t[t.length-1].value;for(a=s;a<=l;a=+o.add(a,1,r))(i=n[a])>=0&&(t[i].major=!0);return t}(e,i,o,n):i}var or=hn.extend({initialize:function(){this.mergeTicksOptions(),hn.prototype.initialize.call(this)},update:function(){var e=this,t=e.options,n=t.time||(t.time={}),r=e._adapter=new Qt._date(t.adapters.date);return Un("time scale",n.format,"time.format","time.parser"),Un("time scale",n.min,"time.min","ticks.min"),Un("time scale",n.max,"time.max","ticks.max"),R.mergeIf(n.displayFormats,r.formats()),hn.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),hn.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,r,a,i,o,s=this,l=s.chart,c=s._adapter,u=s.options,d=u.time.unit||"day",p=Gn,f=Kn,m=[],h=[],_=[],v=s._getLabels();for(e=0,n=v.length;e<n;++e)_.push(rr(s,v[e]));for(e=0,n=(l.data.datasets||[]).length;e<n;++e)if(l.isDatasetVisible(e))if(a=l.data.datasets[e].data,R.isObject(a[0]))for(h[e]=[],t=0,r=a.length;t<r;++t)i=rr(s,a[t]),m.push(i),h[e][t]=i;else h[e]=_.slice(0),o||(m=m.concat(_),o=!0);else h[e]=[];_.length&&(p=Math.min(p,_[0]),f=Math.max(f,_[_.length-1])),m.length&&(m=n>1?function(e){var t,n,r,a={},i=[];for(t=0,n=e.length;t<n;++t)a[r=e[t]]||(a[r]=!0,i.push(r));return i}(m).sort(Xn):m.sort(Xn),p=Math.min(p,m[0]),f=Math.max(f,m[m.length-1])),p=rr(s,Qn(u))||p,f=rr(s,er(u))||f,p=p===Gn?+c.startOf(Date.now(),d):p,f=f===Kn?+c.endOf(Date.now(),d)+1:f,s.min=Math.min(p,f),s.max=Math.max(p+1,f),s._table=[],s._timestamps={data:m,datasets:h,labels:_}},buildTicks:function(){var e,t,n,r=this,a=r.min,i=r.max,o=r.options,s=o.ticks,l=o.time,c=r._timestamps,u=[],d=r.getLabelCapacity(a),p=s.source,f=o.distribution;for(c="data"===p||"auto"===p&&"series"===f?c.data:"labels"===p?c.labels:function(e,t,n,r){var a,i=e._adapter,o=e.options,s=o.time,l=s.unit||ar(s.minUnit,t,n,r),c=Vn([s.stepSize,s.unitStepSize,1]),u="week"===l&&s.isoWeekday,d=t,p=[];if(u&&(d=+i.startOf(d,"isoWeek",u)),d=+i.startOf(d,u?"day":l),i.diff(n,t,l)>1e5*c)throw t+" and "+n+" are too far apart with stepSize of "+c+" "+l;for(a=d;a<n;a=+i.add(a,c,l))p.push(a);return a!==n&&"ticks"!==o.bounds||p.push(a),p}(r,a,i,d),"ticks"===o.bounds&&c.length&&(a=c[0],i=c[c.length-1]),a=rr(r,Qn(o))||a,i=rr(r,er(o))||i,e=0,t=c.length;e<t;++e)(n=c[e])>=a&&n<=i&&u.push(n);return r.min=a,r.max=i,r._unit=l.unit||(s.autoSkip?ar(l.minUnit,r.min,r.max,d):function(e,t,n,r,a){var i,o;for(i=Zn.length-1;i>=Zn.indexOf(n);i--)if(o=Zn[i],Jn[o].common&&e._adapter.diff(a,r,o)>=t-1)return o;return Zn[n?Zn.indexOf(n):0]}(r,u.length,l.minUnit,r.min,r.max)),r._majorUnit=s.major.enabled&&"year"!==r._unit?function(e){for(var t=Zn.indexOf(e)+1,n=Zn.length;t<n;++t)if(Jn[Zn[t]].common)return Zn[t]}(r._unit):void 0,r._table=function(e,t,n,r){if("linear"===r||!e.length)return[{time:t,pos:0},{time:n,pos:1}];var a,i,o,s,l,c=[],u=[t];for(a=0,i=e.length;a<i;++a)(s=e[a])>t&&s<n&&u.push(s);for(u.push(n),a=0,i=u.length;a<i;++a)l=u[a+1],o=u[a-1],s=u[a],void 0!==o&&void 0!==l&&Math.round((l+o)/2)===s||c.push({time:s,pos:a/(i-1)});return c}(r._timestamps.data,a,i,f),r._offsets=function(e,t,n,r,a){var i,o,s=0,l=0;return a.offset&&t.length&&(i=tr(e,"time",t[0],"pos"),s=1===t.length?1-i:(tr(e,"time",t[1],"pos")-i)/2,o=tr(e,"time",t[t.length-1],"pos"),l=1===t.length?o:(o-tr(e,"time",t[t.length-2],"pos"))/2),{start:s,end:l,factor:1/(s+1+l)}}(r._table,u,0,0,o),s.reverse&&u.reverse(),ir(r,u,r._majorUnit)},getLabelForIndex:function(e,t){var n=this,r=n._adapter,a=n.chart.data,i=n.options.time,o=a.labels&&e<a.labels.length?a.labels[e]:"",s=a.datasets[t].data[e];return R.isObject(s)&&(o=n.getRightValue(s)),i.tooltipFormat?r.format(nr(n,o),i.tooltipFormat):"string"==typeof o?o:r.format(nr(n,o),i.displayFormats.datetime)},tickFormatFunction:function(e,t,n,r){var a=this._adapter,i=this.options,o=i.time.displayFormats,s=o[this._unit],l=this._majorUnit,c=o[l],u=n[t],d=i.ticks,p=l&&c&&u&&u.major,f=a.format(e,r||(p?c:s)),m=p?d.major:d.minor,h=Vn([m.callback,m.userCallback,d.callback,d.userCallback]);return h?h(f,t,n):f},convertTicksToLabels:function(e){var t,n,r=[];for(t=0,n=e.length;t<n;++t)r.push(this.tickFormatFunction(e[t].value,t,e));return r},getPixelForOffset:function(e){var t=this._offsets,n=tr(this._table,"time",e,"pos");return this.getPixelForDecimal((t.start+n)*t.factor)},getPixelForValue:function(e,t,n){var r=null;if(void 0!==t&&void 0!==n&&(r=this._timestamps.datasets[n][t]),null===r&&(r=rr(this,e)),null!==r)return this.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._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end,r=tr(this._table,"pos",n,"time");return this._adapter._create(r)},_getLabelSize:function(e){var t=this.options.ticks,n=this.ctx.measureText(e).width,r=R.toRadians(this.isHorizontal()?t.maxRotation:t.minRotation),a=Math.cos(r),i=Math.sin(r),o=Wn(t.fontSize,$.global.defaultFontSize);return{w:n*a+o*i,h:n*i+o*a}},getLabelWidth:function(e){return this._getLabelSize(e).w},getLabelCapacity:function(e){var t=this,n=t.options.time,r=n.displayFormats,a=r[n.unit]||r.millisecond,i=t.tickFormatFunction(e,0,ir(t,[e],t._majorUnit),a),o=t._getLabelSize(i),s=Math.floor(t.isHorizontal()?t.width/o.w:t.height/o.h);return t.options.offset&&s--,s>0?s:1}}),sr={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}}};or._defaults=sr;var lr={category:vn,linear:Mn,logarithmic:On,radialLinear:Bn,time:or},cr={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"};Qt._date.override("function"==typeof e?{_id:"moment",formats:function(){return cr},parse:function(t,n){return"string"==typeof t&&"string"==typeof n?t=e(t,n):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,n){return e(t).format(n)},add:function(t,n,r){return e(t).add(n,r).valueOf()},diff:function(t,n,r){return e(t).diff(e(n),r)},startOf:function(t,n,r){return t=e(t),"isoWeek"===n?t.isoWeekday(r).valueOf():t.startOf(n).valueOf()},endOf:function(t,n){return e(t).endOf(n).valueOf()},_create:function(t){return e(t)}}:{}),$._set("global",{plugins:{filler:{propagate:!0}}});var ur={dataset:function(e){var t=e.fill,n=e.chart,r=n.getDatasetMeta(t),a=r&&n.isDatasetVisible(t)&&r.dataset._children||[],i=a.length||0;return i?function(e,t){return t<i&&a[t]._view||null}:null},boundary:function(e){var t=e.boundary,n=t?t.x:null,r=t?t.y:null;return R.isArray(t)?function(e,n){return t[n]}:function(e){return{x:null===n?e.x:n,y:null===r?e.y:r}}}};function dr(e,t,n){var r,a=e._model||{},i=a.fill;if(void 0===i&&(i=!!a.backgroundColor),!1===i||null===i)return!1;if(!0===i)return"origin";if(r=parseFloat(i,10),isFinite(r)&&Math.floor(r)===r)return"-"!==i[0]&&"+"!==i[0]||(r=t+r),!(r===t||r<0||r>=n)&&r;switch(i){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return i;default:return!1}}function pr(e){return(e.el._scale||{}).getPointPositionForValue?function(e){var t,n,r,a,i,o=e.el._scale,s=o.options,l=o.chart.data.labels.length,c=e.fill,u=[];if(!l)return null;for(t=s.ticks.reverse?o.max:o.min,n=s.ticks.reverse?o.min:o.max,r=o.getPointPositionForValue(0,t),a=0;a<l;++a)i="start"===c||"end"===c?o.getPointPositionForValue(a,"start"===c?t:n):o.getBasePosition(a),s.gridLines.circular&&(i.cx=r.x,i.cy=r.y,i.angle=o.getIndexAngle(a)-Math.PI/2),u.push(i);return u}(e):function(e){var t,n=e.el._model||{},r=e.el._scale||{},a=e.fill,i=null;if(isFinite(a))return null;if("start"===a?i=void 0===n.scaleBottom?r.bottom:n.scaleBottom:"end"===a?i=void 0===n.scaleTop?r.top:n.scaleTop:void 0!==n.scaleZero?i=n.scaleZero:r.getBasePixel&&(i=r.getBasePixel()),null!=i){if(void 0!==i.x&&void 0!==i.y)return i;if(R.isFinite(i))return{x:(t=r.isHorizontal())?i:null,y:t?null:i}}return null}(e)}function fr(e,t,n){var r,a=e[t].fill,i=[t];if(!n)return a;for(;!1!==a&&-1===i.indexOf(a);){if(!isFinite(a))return a;if(!(r=e[a]))return!1;if(r.visible)return a;i.push(a),a=r.fill}return!1}function mr(e){var t=e.fill,n="dataset";return!1===t?null:(isFinite(t)||(n="boundary"),ur[n](e))}function hr(e){return e&&!e.skip}function _r(e,t,n,r,a){var i,o,s,l;if(r&&a){for(e.moveTo(t[0].x,t[0].y),i=1;i<r;++i)R.canvas.lineTo(e,t[i-1],t[i]);if(void 0===n[0].angle)for(e.lineTo(n[a-1].x,n[a-1].y),i=a-1;i>0;--i)R.canvas.lineTo(e,n[i],n[i-1],!0);else for(o=n[0].cx,s=n[0].cy,l=Math.sqrt(Math.pow(n[0].x-o,2)+Math.pow(n[0].y-s,2)),i=a-1;i>0;--i)e.arc(o,s,l,n[i].angle,n[i-1].angle,!0)}}function vr(e,t,n,r,a,i){var o,s,l,c,u,d,p,f,m=t.length,h=r.spanGaps,_=[],v=[],g=0,y=0;for(e.beginPath(),o=0,s=m;o<s;++o)u=n(c=t[l=o%m]._view,l,r),d=hr(c),p=hr(u),i&&void 0===f&&d&&(s=m+(f=o+1)),d&&p?(g=_.push(c),y=v.push(u)):g&&y&&(h?(d&&_.push(c),p&&v.push(u)):(_r(e,_,v,g,y),g=y=0,_=[],v=[]));_r(e,_,v,g,y),e.closePath(),e.fillStyle=a,e.fill()}var gr={id:"filler",afterDatasetsUpdate:function(e,t){var n,r,a,i,o=(e.data.datasets||[]).length,s=t.propagate,l=[];for(r=0;r<o;++r)i=null,(a=(n=e.getDatasetMeta(r)).dataset)&&a._model&&a instanceof we.Line&&(i={visible:e.isDatasetVisible(r),fill:dr(a,r,o),chart:e,el:a}),n.$filler=i,l.push(i);for(r=0;r<o;++r)(i=l[r])&&(i.fill=fr(l,r,s),i.boundary=pr(i),i.mapper=mr(i))},beforeDatasetsDraw:function(e){var t,n,r,a,i,o,s,l=e._getSortedVisibleDatasetMetas(),c=e.ctx;for(n=l.length-1;n>=0;--n)(t=l[n].$filler)&&t.visible&&(a=(r=t.el)._view,i=r._children||[],o=t.mapper,s=a.backgroundColor||$.global.defaultColor,o&&s&&i.length&&(R.canvas.clipArea(c,e.chartArea),vr(c,i,o,a,s,r._loop),R.canvas.unclipArea(c)))}},yr=R.rtl.getRtlAdapter,br=R.noop,wr=R.valueOrDefault;function xr(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}$._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,r=this.chart,a=r.getDatasetMeta(n);a.hidden=null===a.hidden?!r.data.datasets[n].hidden:null,r.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.options.legend||{},r=n.labels&&n.labels.usePointStyle;return e._getSortedDatasetMetas().map((function(n){var a=n.controller.getStyle(r?0:void 0);return{text:t[n.index].label,fillStyle:a.backgroundColor,hidden:!e.isDatasetVisible(n.index),lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:a.borderWidth,strokeStyle:a.borderColor,pointStyle:a.pointStyle,rotation:a.rotation,datasetIndex:n.index}}),this)}}},legendCallback:function(e){var t,n,r,a=document.createElement("ul"),i=e.data.datasets;for(a.setAttribute("class",e.id+"-legend"),t=0,n=i.length;t<n;t++)(r=a.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=i[t].backgroundColor,i[t].label&&r.appendChild(document.createTextNode(i[t].label));return a.outerHTML}});var kr=K.extend({initialize:function(e){R.extend(this,e),this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1},beforeUpdate:br,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:br,beforeSetDimensions:br,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:br,beforeBuildLabels:br,buildLabels:function(){var e=this,t=e.options.labels||{},n=R.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:br,beforeFit:br,fit:function(){var e=this,t=e.options,n=t.labels,r=t.display,a=e.ctx,i=R.options._parseFont(n),o=i.size,s=e.legendHitBoxes=[],l=e.minSize,c=e.isHorizontal();if(c?(l.width=e.maxWidth,l.height=r?10:0):(l.width=r?10:0,l.height=e.maxHeight),r){if(a.font=i.string,c){var u=e.lineWidths=[0],d=0;a.textAlign="left",a.textBaseline="middle",R.each(e.legendItems,(function(e,t){var r=xr(n,o)+o/2+a.measureText(e.text).width;(0===t||u[u.length-1]+r+2*n.padding>l.width)&&(d+=o+n.padding,u[u.length-(t>0?0:1)]=0),s[t]={left:0,top:0,width:r,height:o},u[u.length-1]+=r+n.padding})),l.height+=d}else{var p=n.padding,f=e.columnWidths=[],m=e.columnHeights=[],h=n.padding,_=0,v=0;R.each(e.legendItems,(function(e,t){var r=xr(n,o)+o/2+a.measureText(e.text).width;t>0&&v+o+2*p>l.height&&(h+=_+n.padding,f.push(_),m.push(v),_=0,v=0),_=Math.max(_,r),v+=o+p,s[t]={left:0,top:0,width:r,height:o}})),h+=_,f.push(_),m.push(v),l.width+=h}e.width=l.width,e.height=l.height}else e.width=l.width=e.height=l.height=0},afterFit:br,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,r=$.global,a=r.defaultColor,i=r.elements.line,o=e.height,s=e.columnHeights,l=e.width,c=e.lineWidths;if(t.display){var u,d=yr(t.rtl,e.left,e.minSize.width),p=e.ctx,f=wr(n.fontColor,r.defaultFontColor),m=R.options._parseFont(n),h=m.size;p.textAlign=d.textAlign("left"),p.textBaseline="middle",p.lineWidth=.5,p.strokeStyle=f,p.fillStyle=f,p.font=m.string;var _=xr(n,h),v=e.legendHitBoxes,g=function(e,r){switch(t.align){case"start":return n.padding;case"end":return e-r;default:return(e-r+n.padding)/2}},y=e.isHorizontal();u=y?{x:e.left+g(l,c[0]),y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+g(o,s[0]),line:0},R.rtl.overrideTextDirection(e.ctx,t.textDirection);var b=h+n.padding;R.each(e.legendItems,(function(t,r){var f=p.measureText(t.text).width,m=_+h/2+f,w=u.x,x=u.y;d.setWidth(e.minSize.width),y?r>0&&w+m+n.padding>e.left+e.minSize.width&&(x=u.y+=b,u.line++,w=u.x=e.left+g(l,c[u.line])):r>0&&x+b>e.top+e.minSize.height&&(w=u.x=w+e.columnWidths[u.line]+n.padding,u.line++,x=u.y=e.top+g(o,s[u.line]));var k=d.x(w);!function(e,t,r){if(!(isNaN(_)||_<=0)){p.save();var o=wr(r.lineWidth,i.borderWidth);if(p.fillStyle=wr(r.fillStyle,a),p.lineCap=wr(r.lineCap,i.borderCapStyle),p.lineDashOffset=wr(r.lineDashOffset,i.borderDashOffset),p.lineJoin=wr(r.lineJoin,i.borderJoinStyle),p.lineWidth=o,p.strokeStyle=wr(r.strokeStyle,a),p.setLineDash&&p.setLineDash(wr(r.lineDash,i.borderDash)),n&&n.usePointStyle){var s=_*Math.SQRT2/2,l=d.xPlus(e,_/2),c=t+h/2;R.canvas.drawPoint(p,r.pointStyle,s,l,c,r.rotation)}else p.fillRect(d.leftForLtr(e,_),t,_,h),0!==o&&p.strokeRect(d.leftForLtr(e,_),t,_,h);p.restore()}}(k,x,t),v[r].left=d.leftForLtr(k,v[r].width),v[r].top=x,function(e,t,n,r){var a=h/2,i=d.xPlus(e,_+a),o=t+a;p.fillText(n.text,i,o),n.hidden&&(p.beginPath(),p.lineWidth=2,p.moveTo(i,o),p.lineTo(d.xPlus(i,r),o),p.stroke())}(k,x,t,f),y?u.x+=m+n.padding:u.y+=b})),R.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var n,r,a,i=this;if(e>=i.left&&e<=i.right&&t>=i.top&&t<=i.bottom)for(a=i.legendHitBoxes,n=0;n<a.length;++n)if(e>=(r=a[n]).left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height)return i.legendItems[n];return null},handleEvent:function(e){var t,n=this,r=n.options,a="mouseup"===e.type?"click":e.type;if("mousemove"===a){if(!r.onHover&&!r.onLeave)return}else{if("click"!==a)return;if(!r.onClick)return}t=n._getLegendItemAt(e.x,e.y),"click"===a?t&&r.onClick&&r.onClick.call(n,e.native,t):(r.onLeave&&t!==n._hoveredItem&&(n._hoveredItem&&r.onLeave.call(n,e.native,n._hoveredItem),n._hoveredItem=t),r.onHover&&t&&r.onHover.call(n,e.native,t))}});function Dr(e,t){var n=new kr({ctx:e.ctx,options:t,chart:e});mt.configure(e,n,t),mt.addBox(e,n),e.legend=n}var Mr={id:"legend",_element:kr,beforeInit:function(e){var t=e.options.legend;t&&Dr(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(R.mergeIf(t,$.global.legend),n?(mt.configure(e,n,t),n.options=t):Dr(e,t)):n&&(mt.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},Sr=R.noop;$._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Cr=K.extend({initialize:function(e){R.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:Sr,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:Sr,beforeSetDimensions:Sr,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:Sr,beforeBuildLabels:Sr,buildLabels:Sr,afterBuildLabels:Sr,beforeFit:Sr,fit:function(){var e,t=this,n=t.options,r=t.minSize={},a=t.isHorizontal();n.display?(e=(R.isArray(n.text)?n.text.length:1)*R.options._parseFont(n).lineHeight+2*n.padding,t.width=r.width=a?t.maxWidth:e,t.height=r.height=a?e:t.maxHeight):t.width=r.width=t.height=r.height=0},afterFit:Sr,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=e.options;if(n.display){var r,a,i,o=R.options._parseFont(n),s=o.lineHeight,l=s/2+n.padding,c=0,u=e.top,d=e.left,p=e.bottom,f=e.right;t.fillStyle=R.valueOrDefault(n.fontColor,$.global.defaultFontColor),t.font=o.string,e.isHorizontal()?(a=d+(f-d)/2,i=u+l,r=f-d):(a="left"===n.position?d+l:f-l,i=u+(p-u)/2,r=p-u,c=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(a,i),t.rotate(c),t.textAlign="center",t.textBaseline="middle";var m=n.text;if(R.isArray(m))for(var h=0,_=0;_<m.length;++_)t.fillText(m[_],0,h,r),h+=s;else t.fillText(m,0,0,r);t.restore()}}});function Lr(e,t){var n=new Cr({ctx:e.ctx,options:t,chart:e});mt.configure(e,n,t),mt.addBox(e,n),e.titleBlock=n}var Tr={},Er=gr,Or=Mr,jr={id:"title",_element:Cr,beforeInit:function(e){var t=e.options.title;t&&Lr(e,t)},beforeUpdate:function(e){var t=e.options.title,n=e.titleBlock;t?(R.mergeIf(t,$.global.title),n?(mt.configure(e,n,t),n.options=t):Lr(e,t)):n&&(mt.removeBox(e,n),delete e.titleBlock)}};for(var Ar in Tr.filler=Er,Tr.legend=Or,Tr.title=jr,Jt.helpers=R,function(){function e(e,t,n){var r;return"string"==typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}function t(e){return null!=e&&"none"!==e}function n(n,r,a){var i=document.defaultView,o=R._getParentNode(n),s=i.getComputedStyle(n)[r],l=i.getComputedStyle(o)[r],c=t(s),u=t(l),d=Number.POSITIVE_INFINITY;return c||u?Math.min(c?e(s,n,a):d,u?e(l,o,a):d):"none"}R.where=function(e,t){if(R.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return R.each(e,(function(e){t(e)&&n.push(e)})),n},R.findIndex=Array.prototype.findIndex?function(e,t,n){return e.findIndex(t,n)}:function(e,t,n){n=void 0===n?e:n;for(var r=0,a=e.length;r<a;++r)if(t.call(n,e[r],r,e))return r;return-1},R.findNextWhere=function(e,t,n){R.isNullOrUndef(n)&&(n=-1);for(var r=n+1;r<e.length;r++){var a=e[r];if(t(a))return a}},R.findPreviousWhere=function(e,t,n){R.isNullOrUndef(n)&&(n=e.length);for(var r=n-1;r>=0;r--){var a=e[r];if(t(a))return a}},R.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},R.almostEquals=function(e,t,n){return Math.abs(e-t)<n},R.almostWhole=function(e,t){var n=Math.round(e);return n-t<=e&&n+t>=e},R.max=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.max(e,t)}),Number.NEGATIVE_INFINITY)},R.min=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.min(e,t)}),Number.POSITIVE_INFINITY)},R.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0==(e=+e)||isNaN(e)?e:e>0?1:-1},R.toRadians=function(e){return e*(Math.PI/180)},R.toDegrees=function(e){return e*(180/Math.PI)},R._decimalPlaces=function(e){if(R.isFinite(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}},R.getAngleFromPoint=function(e,t){var n=t.x-e.x,r=t.y-e.y,a=Math.sqrt(n*n+r*r),i=Math.atan2(r,n);return i<-.5*Math.PI&&(i+=2*Math.PI),{angle:i,distance:a}},R.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},R.aliasPixel=function(e){return e%2==0?0:.5},R._alignPixel=function(e,t,n){var r=e.currentDevicePixelRatio,a=n/2;return Math.round((t-a)*r)/r+a},R.splineCurve=function(e,t,n,r){var a=e.skip?t:e,i=t,o=n.skip?t:n,s=Math.sqrt(Math.pow(i.x-a.x,2)+Math.pow(i.y-a.y,2)),l=Math.sqrt(Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2)),c=s/(s+l),u=l/(s+l),d=r*(c=isNaN(c)?0:c),p=r*(u=isNaN(u)?0:u);return{previous:{x:i.x-d*(o.x-a.x),y:i.y-d*(o.y-a.y)},next:{x:i.x+p*(o.x-a.x),y:i.y+p*(o.y-a.y)}}},R.EPSILON=Number.EPSILON||1e-14,R.splineCurveMonotone=function(e){var t,n,r,a,i,o,s,l,c,u=(e||[]).map((function(e){return{model:e._model,deltaK:0,mK:0}})),d=u.length;for(t=0;t<d;++t)if(!(r=u[t]).model.skip){if(n=t>0?u[t-1]:null,(a=t<d-1?u[t+1]:null)&&!a.model.skip){var p=a.model.x-r.model.x;r.deltaK=0!==p?(a.model.y-r.model.y)/p:0}!n||n.model.skip?r.mK=r.deltaK:!a||a.model.skip?r.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(r.deltaK)?r.mK=0:r.mK=(n.deltaK+r.deltaK)/2}for(t=0;t<d-1;++t)r=u[t],a=u[t+1],r.model.skip||a.model.skip||(R.almostEquals(r.deltaK,0,this.EPSILON)?r.mK=a.mK=0:(i=r.mK/r.deltaK,o=a.mK/r.deltaK,(l=Math.pow(i,2)+Math.pow(o,2))<=9||(s=3/Math.sqrt(l),r.mK=i*s*r.deltaK,a.mK=o*s*r.deltaK)));for(t=0;t<d;++t)(r=u[t]).model.skip||(n=t>0?u[t-1]:null,a=t<d-1?u[t+1]:null,n&&!n.model.skip&&(c=(r.model.x-n.model.x)/3,r.model.controlPointPreviousX=r.model.x-c,r.model.controlPointPreviousY=r.model.y-c*r.mK),a&&!a.model.skip&&(c=(a.model.x-r.model.x)/3,r.model.controlPointNextX=r.model.x+c,r.model.controlPointNextY=r.model.y+c*r.mK))},R.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]},R.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},R.niceNum=function(e,t){var n=Math.floor(R.log10(e)),r=e/Math.pow(10,n);return(t?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10)*Math.pow(10,n)},R.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)},R.getRelativePosition=function(e,t){var n,r,a=e.originalEvent||e,i=e.target||e.srcElement,o=i.getBoundingClientRect(),s=a.touches;s&&s.length>0?(n=s[0].clientX,r=s[0].clientY):(n=a.clientX,r=a.clientY);var l=parseFloat(R.getStyle(i,"padding-left")),c=parseFloat(R.getStyle(i,"padding-top")),u=parseFloat(R.getStyle(i,"padding-right")),d=parseFloat(R.getStyle(i,"padding-bottom")),p=o.right-o.left-l-u,f=o.bottom-o.top-c-d;return{x:n=Math.round((n-o.left-l)/p*i.width/t.currentDevicePixelRatio),y:r=Math.round((r-o.top-c)/f*i.height/t.currentDevicePixelRatio)}},R.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},R.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},R._calculatePadding=function(e,t,n){return(t=R.getStyle(e,t)).indexOf("%")>-1?n*parseInt(t,10)/100:parseInt(t,10)},R._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},R.getMaximumWidth=function(e){var t=R._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,r=n-R._calculatePadding(t,"padding-left",n)-R._calculatePadding(t,"padding-right",n),a=R.getConstraintWidth(e);return isNaN(a)?r:Math.min(r,a)},R.getMaximumHeight=function(e){var t=R._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,r=n-R._calculatePadding(t,"padding-top",n)-R._calculatePadding(t,"padding-bottom",n),a=R.getConstraintHeight(e);return isNaN(a)?r:Math.min(r,a)},R.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},R.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var r=e.canvas,a=e.height,i=e.width;r.height=a*n,r.width=i*n,e.ctx.scale(n,n),r.style.height||r.style.width||(r.style.height=a+"px",r.style.width=i+"px")}},R.fontString=function(e,t,n){return t+" "+e+"px "+n},R.longestText=function(e,t,n,r){var a=(r=r||{}).data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(a=r.data={},i=r.garbageCollect=[],r.font=t),e.font=t;var o,s,l,c,u,d=0,p=n.length;for(o=0;o<p;o++)if(null!=(c=n[o])&&!0!==R.isArray(c))d=R.measureText(e,a,i,d,c);else if(R.isArray(c))for(s=0,l=c.length;s<l;s++)null==(u=c[s])||R.isArray(u)||(d=R.measureText(e,a,i,d,u));var f=i.length/2;if(f>n.length){for(o=0;o<f;o++)delete a[i[o]];i.splice(0,f)}return d},R.measureText=function(e,t,n,r,a){var i=t[a];return i||(i=t[a]=e.measureText(a).width,n.push(a)),i>r&&(r=i),r},R.numberOfLabelLines=function(e){var t=1;return R.each(e,(function(e){R.isArray(e)&&e.length>t&&(t=e.length)})),t},R.color=w?function(e){return e instanceof CanvasGradient&&(e=$.global.defaultColor),w(e)}:function(e){return console.error("Color.js not found!"),e},R.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:R.color(e).saturate(.5).darken(.1).rgbString()}}(),Jt._adapters=Qt,Jt.Animation=J,Jt.animationService=Z,Jt.controllers=Ze,Jt.DatasetController=ne,Jt.defaults=$,Jt.Element=K,Jt.elements=we,Jt.Interaction=at,Jt.layouts=mt,Jt.platform=Lt,Jt.plugins=Tt,Jt.Scale=hn,Jt.scaleService=Et,Jt.Ticks=en,Jt.Tooltip=Rt,Jt.helpers.each(lr,(function(e,t){Jt.scaleService.registerScaleType(t,e,e._defaults)})),Tr)Tr.hasOwnProperty(Ar)&&Jt.plugins.register(Tr[Ar]);Jt.platform.initialize();var Pr=Jt;return"undefined"!=typeof window&&(window.Chart=Jt),Jt.Chart=Jt,Jt.Legend=Tr.legend._element,Jt.Title=Tr.title._element,Jt.pluginService=Jt.plugins,Jt.PluginBase=Jt.Element.extend({}),Jt.canvasHelpers=Jt.helpers.canvas,Jt.layoutService=Jt.layouts,Jt.LinearScaleBase=wn,Jt.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(e){Jt[e]=function(t,n){return new Jt(t,Jt.helpers.merge(n||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}})),Pr}(function(){try{return n("wd/R")}catch(e){}}())},MrPd:function(e,t,n){var r=n("hypo"),a=n("ljhN"),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var o=e[t];i.call(e,t)&&a(o,n)&&(void 0!==n||t in e)||r(e,t,n)}},NKxu:function(e,t,n){var r=n("lSCD"),a=n("E2jh"),i=n("GoyQ"),o=n("3Fdi"),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||a(e))&&(r(e)?p:s).test(o(e))}},Nehr:function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},Npjl:function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},NyK7:function(e,t,n){"use strict";n("5BNI")},NykK:function(e,t,n){var r=n("nmnc"),a=n("AP2z"),i=n("KfNM"),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?a(e):i(e)}},O0oS:function(e,t,n){var r=n("Cwc5"),a=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=a},OH9c:function(e,t,n){"use strict";e.exports=function(e,t,n,r,a){return e.config=t,n&&(e.code=n),e.request=r,e.response=a,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},OIYi: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("wd/R"))},OTTw:function(e,t,n){"use strict";var r=n("xTJ+");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function a(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=a(window.location.href),function(t){var n=r.isString(t)?a(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},Oaa7: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("wd/R"))},Ob0Z:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function r(e,t,n,r){var a="";if(t)switch(n){case"s":a="काही सेकंद";break;case"ss":a="%d सेकंद";break;case"m":a="एक मिनिट";break;case"mm":a="%d मिनिटे";break;case"h":a="एक तास";break;case"hh":a="%d तास";break;case"d":a="एक दिवस";break;case"dd":a="%d दिवस";break;case"M":a="एक महिना";break;case"MM":a="%d महिने";break;case"y":a="एक वर्ष";break;case"yy":a="%d वर्षे"}else switch(n){case"s":a="काही सेकंदां";break;case"ss":a="%d सेकंदां";break;case"m":a="एका मिनिटा";break;case"mm":a="%d मिनिटां";break;case"h":a="एका तासा";break;case"hh":a="%d तासां";break;case"d":a="एका दिवसा";break;case"dd":a="%d दिवसां";break;case"M":a="एका महिन्या";break;case"MM":a="%d महिन्यां";break;case"y":a="एका वर्षा";break;case"yy":a="%d वर्षां"}return a.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n("wd/R"))},OjkT: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("wd/R"))},OlTG:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("eO9T");t.default=(0,r.regex)("alphaNum",/^[a-zA-Z0-9]*$/)},OmwH:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n("wd/R"))},Onz0:function(e,t,n){(function(e){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(this,n("tjlA").Buffer)},Opvw:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return d})),n.d(t,"h",(function(){return p})),n.d(t,"i",(function(){return f})),n.d(t,"j",(function(){return m})),n.d(t,"k",(function(){return h})),n.d(t,"l",(function(){return _})),n.d(t,"m",(function(){return g})),n.d(t,"n",(function(){return v})),n.d(t,"o",(function(){return y})),n.d(t,"p",(function(){return b})),n.d(t,"q",(function(){return w})),n.d(t,"r",(function(){return x})),n.d(t,"s",(function(){return k})),n.d(t,"t",(function(){return D})),n.d(t,"u",(function(){return M})),n.d(t,"v",(function(){return S})),n.d(t,"w",(function(){return C})),n.d(t,"x",(function(){return L})),n.d(t,"y",(function(){return T})),n.d(t,"z",(function(){return E})),n.d(t,"A",(function(){return O})),n.d(t,"B",(function(){return A})),n.d(t,"C",(function(){return j})),n.d(t,"D",(function(){return P})),n.d(t,"E",(function(){return Y})),n.d(t,"F",(function(){return $})),n.d(t,"G",(function(){return I})),n.d(t,"H",(function(){return N})),n.d(t,"I",(function(){return z})),n.d(t,"J",(function(){return F})),n.d(t,"K",(function(){return R})),n.d(t,"L",(function(){return H})),n.d(t,"M",(function(){return B})),n.d(t,"N",(function(){return q}));var r=n("Jjj3"),a=n.n(r),i={name:"ArrowLeftIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z","clip-rule":"evenodd"}})])}},o={name:"ArrowRightIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z","clip-rule":"evenodd"}})])}},s={name:"CalculatorIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M6 2a2 2 0 00-2 2v12a2 2 0 002 2h8a2 2 0 002-2V4a2 2 0 00-2-2H6zm1 2a1 1 0 000 2h6a1 1 0 100-2H7zm6 7a1 1 0 011 1v3a1 1 0 11-2 0v-3a1 1 0 011-1zm-3 3a1 1 0 100 2h.01a1 1 0 100-2H10zm-4 1a1 1 0 011-1h.01a1 1 0 110 2H7a1 1 0 01-1-1zm1-4a1 1 0 100 2h.01a1 1 0 100-2H7zm2 1a1 1 0 011-1h.01a1 1 0 110 2H10a1 1 0 01-1-1zm4-4a1 1 0 100 2h.01a1 1 0 100-2H13zM9 9a1 1 0 011-1h.01a1 1 0 110 2H10a1 1 0 01-1-1zM7 8a1 1 0 000 2h.01a1 1 0 000-2H7z","clip-rule":"evenodd"}})])}},l={name:"CheckCircleIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"}})])}},c={name:"ChevronDoubleRightIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M10.293 15.707a1 1 0 010-1.414L14.586 10l-4.293-4.293a1 1 0 111.414-1.414l5 5a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0z","clip-rule":"evenodd"}}),e("path",{attrs:{"fill-rule":"evenodd",d:"M4.293 15.707a1 1 0 010-1.414L8.586 10 4.293 5.707a1 1 0 011.414-1.414l5 5a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0z","clip-rule":"evenodd"}})])}},u={name:"ChevronDownIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"}})])}},d={name:"CloudDownloadIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M2 9.5A3.5 3.5 0 005.5 13H9v2.586l-1.293-1.293a1 1 0 00-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L11 15.586V13h2.5a4.5 4.5 0 10-.616-8.958 4.002 4.002 0 10-7.753 1.977A3.5 3.5 0 002 9.5zm9 3.5H9V8a1 1 0 012 0v5z","clip-rule":"evenodd"}})])}},p={name:"CloudUploadIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M5.5 13a3.5 3.5 0 01-.369-6.98 4 4 0 117.753-1.977A4.5 4.5 0 1113.5 13H11V9.413l1.293 1.293a1 1 0 001.414-1.414l-3-3a1 1 0 00-1.414 0l-3 3a1 1 0 001.414 1.414L9 9.414V13H5.5z"}}),e("path",{attrs:{d:"M9 13h2v5a1 1 0 11-2 0v-5z"}})])}},f={name:"CogIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z","clip-rule":"evenodd"}})])}},m={name:"CreditCardIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M4 4a2 2 0 00-2 2v1h16V6a2 2 0 00-2-2H4z"}}),e("path",{attrs:{"fill-rule":"evenodd",d:"M18 9H2v5a2 2 0 002 2h12a2 2 0 002-2V9zM4 13a1 1 0 011-1h1a1 1 0 110 2H5a1 1 0 01-1-1zm5-1a1 1 0 100 2h1a1 1 0 100-2H9z","clip-rule":"evenodd"}})])}},h={name:"DatabaseIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M3 12v3c0 1.657 3.134 3 7 3s7-1.343 7-3v-3c0 1.657-3.134 3-7 3s-7-1.343-7-3z"}}),e("path",{attrs:{d:"M3 7v3c0 1.657 3.134 3 7 3s7-1.343 7-3V7c0 1.657-3.134 3-7 3S3 8.657 3 7z"}}),e("path",{attrs:{d:"M17 5c0 1.657-3.134 3-7 3S3 6.657 3 5s3.134-3 7-3 7 1.343 7 3z"}})])}},_={name:"DocumentDuplicateIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M9 2a2 2 0 00-2 2v8a2 2 0 002 2h6a2 2 0 002-2V6.414A2 2 0 0016.414 5L14 2.586A2 2 0 0012.586 2H9z"}}),e("path",{attrs:{d:"M3 8a2 2 0 012-2v10h8a2 2 0 01-2 2H5a2 2 0 01-2-2V8z"}})])}},v={name:"DocumentTextIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L15.414 6A2 2 0 0116 7.414V16a2 2 0 01-2 2H6a2 2 0 01-2-2V4zm2 6a1 1 0 011-1h6a1 1 0 110 2H7a1 1 0 01-1-1zm1 3a1 1 0 100 2h6a1 1 0 100-2H7z","clip-rule":"evenodd"}})])}},g={name:"DocumentIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L15.414 6A2 2 0 0116 7.414V16a2 2 0 01-2 2H6a2 2 0 01-2-2V4z","clip-rule":"evenodd"}})])}},y={name:"DotsHorizontalIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M6 10a2 2 0 11-4 0 2 2 0 014 0zM12 10a2 2 0 11-4 0 2 2 0 014 0zM16 12a2 2 0 100-4 2 2 0 000 4z"}})])}},b={name:"DownloadIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm3.293-7.707a1 1 0 011.414 0L9 10.586V3a1 1 0 112 0v7.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z","clip-rule":"evenodd"}})])}},w={name:"EyeIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M10 12a2 2 0 100-4 2 2 0 000 4z"}}),e("path",{attrs:{"fill-rule":"evenodd",d:"M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z","clip-rule":"evenodd"}})])}},x={name:"FilterIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M3 3a1 1 0 011-1h12a1 1 0 011 1v3a1 1 0 01-.293.707L12 11.414V15a1 1 0 01-.293.707l-2 2A1 1 0 018 17v-5.586L3.293 6.707A1 1 0 013 6V3z","clip-rule":"evenodd"}})])}},k={name:"FolderIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M2 6a2 2 0 012-2h5l2 2h5a2 2 0 012 2v6a2 2 0 01-2 2H4a2 2 0 01-2-2V6z"}})])}},D={name:"HashtagIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M9.243 3.03a1 1 0 01.727 1.213L9.53 6h2.94l.56-2.243a1 1 0 111.94.486L14.53 6H17a1 1 0 110 2h-2.97l-1 4H15a1 1 0 110 2h-2.47l-.56 2.242a1 1 0 11-1.94-.485L10.47 14H7.53l-.56 2.242a1 1 0 11-1.94-.485L5.47 14H3a1 1 0 110-2h2.97l1-4H5a1 1 0 110-2h2.47l.56-2.243a1 1 0 011.213-.727zM9.03 8l-1 4h2.938l1-4H9.031z","clip-rule":"evenodd"}})])}},M={name:"LinkIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M12.586 4.586a2 2 0 112.828 2.828l-3 3a2 2 0 01-2.828 0 1 1 0 00-1.414 1.414 4 4 0 005.656 0l3-3a4 4 0 00-5.656-5.656l-1.5 1.5a1 1 0 101.414 1.414l1.5-1.5zm-5 5a2 2 0 012.828 0 1 1 0 101.414-1.414 4 4 0 00-5.656 0l-3 3a4 4 0 105.656 5.656l1.5-1.5a1 1 0 10-1.414-1.414l-1.5 1.5a2 2 0 11-2.828-2.828l3-3z","clip-rule":"evenodd"}})])}},S={name:"MailIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M2.003 5.884L10 9.882l7.997-3.998A2 2 0 0016 4H4a2 2 0 00-1.997 1.884z"}}),e("path",{attrs:{d:"M18 8.118l-8 4-8-4V14a2 2 0 002 2h12a2 2 0 002-2V8.118z"}})])}},C={name:"MinusCircleIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM7 9a1 1 0 000 2h6a1 1 0 100-2H7z","clip-rule":"evenodd"}})])}},L={name:"PaperAirplaneIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M10.894 2.553a1 1 0 00-1.788 0l-7 14a1 1 0 001.169 1.409l5-1.429A1 1 0 009 15.571V11a1 1 0 112 0v4.571a1 1 0 00.725.962l5 1.428a1 1 0 001.17-1.408l-7-14z"}})])}},T={name:"PencilAltIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M17.414 2.586a2 2 0 00-2.828 0L7 10.172V13h2.828l7.586-7.586a2 2 0 000-2.828z"}}),e("path",{attrs:{"fill-rule":"evenodd",d:"M2 6a2 2 0 012-2h4a1 1 0 010 2H4v10h10v-4a1 1 0 112 0v4a2 2 0 01-2 2H4a2 2 0 01-2-2V6z","clip-rule":"evenodd"}})])}},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",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"}})])}},O={name:"PlusCircleIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-11a1 1 0 10-2 0v2H7a1 1 0 100 2h2v2a1 1 0 102 0v-2h2a1 1 0 100-2h-2V7z","clip-rule":"evenodd"}})])}},j={name:"PlusSmIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z","clip-rule":"evenodd"}})])}},A={name:"PlusIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z","clip-rule":"evenodd"}})])}},P={name:"RefreshIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z","clip-rule":"evenodd"}})])}},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",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z","clip-rule":"evenodd"}})])}},$={name:"ShoppingCartIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M3 1a1 1 0 000 2h1.22l.305 1.222a.997.997 0 00.01.042l1.358 5.43-.893.892C3.74 11.846 4.632 14 6.414 14H15a1 1 0 000-2H6.414l1-1H14a1 1 0 00.894-.553l3-6A1 1 0 0017 3H6.28l-.31-1.243A1 1 0 005 1H3zM16 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM6.5 18a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"}})])}},I={name:"SortAscendingIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M3 3a1 1 0 000 2h11a1 1 0 100-2H3zM3 7a1 1 0 000 2h5a1 1 0 000-2H3zM3 11a1 1 0 100 2h4a1 1 0 100-2H3zM13 16a1 1 0 102 0v-5.586l1.293 1.293a1 1 0 001.414-1.414l-3-3a1 1 0 00-1.414 0l-3 3a1 1 0 101.414 1.414L13 10.414V16z"}})])}},N={name:"SortDescendingIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M3 3a1 1 0 000 2h11a1 1 0 100-2H3zM3 7a1 1 0 000 2h7a1 1 0 100-2H3zM3 11a1 1 0 100 2h4a1 1 0 100-2H3zM15 8a1 1 0 10-2 0v5.586l-1.293-1.293a1 1 0 00-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L15 13.586V8z"}})])}},z={name:"TrashIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z","clip-rule":"evenodd"}})])}},F={name:"UserAddIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M8 9a3 3 0 100-6 3 3 0 000 6zM8 11a6 6 0 016 6H2a6 6 0 016-6zM16 7a1 1 0 10-2 0v1h-1a1 1 0 100 2h1v1a1 1 0 102 0v-1h1a1 1 0 100-2h-1V7z"}})])}},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",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z","clip-rule":"evenodd"}})])}},H={name:"ViewGridIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M5 3a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2V5a2 2 0 00-2-2H5zM5 11a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2v-2a2 2 0 00-2-2H5zM11 5a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V5zM11 13a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"}})])}},B={name:"XCircleIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"}})])}},q={name:"XIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"}})])}}},Oxv6: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){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("wd/R"))},P7XM:function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},PA2r:function(e,t,n){!function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),r=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],a=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function i(e){return e>1&&e<5&&1!=~~(e/10)}function o(e,t,n,r){var a=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?a+(i(e)?"sekundy":"sekund"):a+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?a+(i(e)?"minuty":"minut"):a+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?a+(i(e)?"hodiny":"hodin"):a+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?a+(i(e)?"dny":"dní"):a+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?a+(i(e)?"měsíce":"měsíců"):a+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?a+(i(e)?"roky":"let"):a+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},PeUW: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("wd/R"))},PpIw: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("wd/R"))},Q1l4:function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},QJfA:function(e,t,n){var r=n("ACR0");"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,a);r.locals&&(e.exports=r.locals)},QcOe:function(e,t,n){var r=n("GoyQ"),a=n("6sVZ"),i=n("7Ix3"),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=a(e),n=[];for(var s in e)("constructor"!=s||!t&&o.call(e,s))&&n.push(s);return n}},Qj4J: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("wd/R"))},QkVE:function(e,t,n){var r=n("EpBk");e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},QkVN:function(e,t,n){var r=n("+Qka"),a=n("LsHQ")((function(e,t,n){r(e,t,n)}));e.exports=a},QpuX:function(e,t,n){e.exports=n("+qE3").EventEmitter},QrEl:function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,".graph-container[data-v-0fb7cf40]{height:300px}",""])},RAwQ:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?a[n][0]:a[n][1]}function n(e){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 n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(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:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},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("wd/R"))},RK2C:function(e,t,n){var r=n("lXi+");"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,a);r.locals&&(e.exports=r.locals)},RNYL:function(e,t,n){var r=n("+Uym");"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,a);r.locals&&(e.exports=r.locals)},RSDI:function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,".flatpickr-calendar.open{z-index:60!important}",""])},RUiw:function(e,t,n){"use strict";var r=n("o0o1"),a=n.n(r),i=n("ta7f"),o=(i.required,i.minLength,i.numeric,i.minValue,i.maxLength,i.requiredIf),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})}}},l=n("KHd+"),c=Object(l.a)(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,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})}}},d=Object(l.a)(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,p=n("ta7f"),f=(p.required,p.requiredIf),m={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:f("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})}}},h=Object(l.a)(m,(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,v=n("ta7f"),g=(v.required,v.requiredIf),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})}}},b=Object(l.a)(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,w=n("wd/R"),x=n.n(w),k=n("ta7f"),D=(k.required,k.requiredIf),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})}}},S=Object(l.a)(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,C=n("ta7f"),L=(C.required,C.requiredIf),T={props:{field:{type:Object,default:null,required:!0},isEdit:{type:Boolean,default:!1},invalidFields:{type:Array,default:function(){return[]}}},data:function(){return{date:null,placeholder:"",invalidFieldIds:[]}},validations:{date:{required:L("isRequired")}},computed:{isRequired:function(){return!(!this.field||!this.field.is_required)},isInvalid:function(){return!!(this.invalidFieldIds.indexOf(this.field.cfid)>=0||this.$v.date.$error&&!this.$v.date.required)}},watch:{invalidFields:{handler:"setInvalidFieldIds",deep:!0},field:{handler:"handleData",deep:!0}},mounted:function(){this.date=this.field&&this.field.defaultAnswer?this.field.defaultAnswer:new Date,this.placeholder=this.field&&this.field.placeholder?this.field.placeholder:""},methods:{handleData:function(){this.date=this.field&&this.field.defaultAnswer?this.field.defaultAnswer:new Date,this.placeholder=this.field&&this.field.placeholder?this.field.placeholder:""},onDateChanged:function(e){this.$v.date.$touch(),this.$emit("update",{field:this.field,value:x()(e).format("YYYY-MM-DD")})},setInvalidFieldIds:function(){this.invalidFieldIds=this.invalidFields.map((function(e){return e.id}))}}},E=Object(l.a)(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,O=n("ta7f"),j=(O.required,O.minLength,O.numeric,O.minValue,O.maxLength,O.requiredIf),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})}}},P=Object(l.a)(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,Y=n("ta7f"),$=(Y.required,Y.url),I=Y.requiredIf,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:$,required:I("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})}}},z=Object(l.a)(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,F=n("ta7f"),R=(F.required,F.minLength,F.numeric,F.minValue,F.maxLength,F.requiredIf),H={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:R("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}))}}},B=Object(l.a)(H,(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,q=n("ta7f"),U=(q.required,q.numeric),V=q.requiredIf,W={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:V("isRequired"),numeric:U}},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})}}},K=Object(l.a)(W,(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,G=n("L2JU");function J(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Z(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){J(i,r,a,o,s,"next",e)}function s(e){J(i,r,a,o,s,"throw",e)}o(void 0)}))}}function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){ee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a={components:{InputField:c,SwitchField:d,TimeField:h,DropdownField:b,DateTimeField:S,DateField:E,TextAreaField:P,UrlField:z,PhoneField:B,NumberField:K},data:function(){return{formData:{customFields:[]},invalidFields:[],customFields:[]}},methods:Q(Q({},Object(G.b)("customFields",["fetchCustomFields"])),{},{setInitialCustomFields:function(){var e=arguments,t=this;return Z(a.a.mark((function n(){var r,i;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.length>0&&void 0!==e[0]?e[0]:null,n.next=3,t.fetchCustomFields({type:r,limit:"all"});case 3:i=n.sent,t.customFields=i.data.customFields.data.map((function(e){return Q(Q({},e),{},{cfid:e.id})})),t.setRemainingCustomFieldsValue();case 6:case"end":return n.stop()}}),n)})))()},setEditCustomFields:function(e,t){var n=this;this.customFields=e.map((function(e){return e.label=e.custom_field.label,e.cfid=e.custom_field.id,e.options=e.custom_field.options,e.placeholder=e.custom_field.placeholder,e.is_required=e.custom_field.is_required,e.order=e.custom_field.order,e}));var r=t.map((function(e){return e.id})),a=e.map((function(e){return e.custom_field_id}));this.$utils.arrayDifference(r,a).forEach((function(e){var r=t.find((function(t){return t.id==e}));n.customFields.push(Q(Q({},r),{},{cfid:r.id}))})),this.setRemainingCustomFieldsValue(!0)},setCustomFieldValue:function(e){var t=this.formData.customFields.findIndex((function(t){return t.id==e.field.cfid})),n=this.invalidFields.findIndex((function(t){return t.id==e.field.cfid}));return n>=0&&e.value&&this.invalidFields.splice(n,1),t>=0?(this.formData.customFields[t].value=e.value,!0):(this.formData.customFields.push({id:e.field.cfid,value:e.value}),!0)},setRemainingCustomFieldsValue:function(){var e=this,t=this.formData.customFields.map((function(e){return e.id})),n=this.customFields.map((function(e){return e.cfid}));this.$utils.arrayDifference(n,t).forEach((function(t){var n=e.customFields.find((function(e){return e.cfid==t}));e.formData.customFields.push({id:n.cfid,isRequired:n.is_required,value:n.defaultAnswer})})),this.customFields=_.sortBy(this.customFields,(function(e){return e.order}))},getInvalidFields:function(){return this.formData.customFields.filter((function(e){return e.isRequired&&(null==e.value||null==e.value||""==e.value)}))},touchCustomField:function(){var e=this;return new Promise((function(t,n){try{e.getInvalidFields()<=0&&t({error:!1}),e.invalidFields=e.getInvalidFields(),t({error:!0})}catch(e){n(e)}}))}})}},RbiO:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("eO9T");t.default=(0,r.regex)("numeric",/^[0-9]*$/)},"Rn+g":function(e,t,n){"use strict";var r=n("LYNF");e.exports=function(e,t,n){var a=n.config.validateStatus;!a||a(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},RnhZ:function(e,t,n){var r={"./af":"K/tc","./af.js":"K/tc","./ar":"jnO4","./ar-dz":"o1bE","./ar-dz.js":"o1bE","./ar-kw":"Qj4J","./ar-kw.js":"Qj4J","./ar-ly":"HP3h","./ar-ly.js":"HP3h","./ar-ma":"CoRJ","./ar-ma.js":"CoRJ","./ar-sa":"gjCT","./ar-sa.js":"gjCT","./ar-tn":"bYM6","./ar-tn.js":"bYM6","./ar.js":"jnO4","./az":"SFxW","./az.js":"SFxW","./be":"H8ED","./be.js":"H8ED","./bg":"hKrs","./bg.js":"hKrs","./bm":"p/rL","./bm.js":"p/rL","./bn":"kEOa","./bn-bd":"loYQ","./bn-bd.js":"loYQ","./bn.js":"kEOa","./bo":"0mo+","./bo.js":"0mo+","./br":"aIdf","./br.js":"aIdf","./bs":"JVSJ","./bs.js":"JVSJ","./ca":"1xZ4","./ca.js":"1xZ4","./cs":"PA2r","./cs.js":"PA2r","./cv":"A+xa","./cv.js":"A+xa","./cy":"l5ep","./cy.js":"l5ep","./da":"DxQv","./da.js":"DxQv","./de":"tGlX","./de-at":"s+uk","./de-at.js":"s+uk","./de-ch":"u3GI","./de-ch.js":"u3GI","./de.js":"tGlX","./dv":"WYrj","./dv.js":"WYrj","./el":"jUeY","./el.js":"jUeY","./en-au":"Dmvi","./en-au.js":"Dmvi","./en-ca":"OIYi","./en-ca.js":"OIYi","./en-gb":"Oaa7","./en-gb.js":"Oaa7","./en-ie":"4dOw","./en-ie.js":"4dOw","./en-il":"czMo","./en-il.js":"czMo","./en-in":"7C5Q","./en-in.js":"7C5Q","./en-nz":"b1Dy","./en-nz.js":"b1Dy","./en-sg":"t+mt","./en-sg.js":"t+mt","./eo":"Zduo","./eo.js":"Zduo","./es":"iYuL","./es-do":"CjzT","./es-do.js":"CjzT","./es-mx":"tbfe","./es-mx.js":"tbfe","./es-us":"Vclq","./es-us.js":"Vclq","./es.js":"iYuL","./et":"7BjC","./et.js":"7BjC","./eu":"D/JM","./eu.js":"D/JM","./fa":"jfSC","./fa.js":"jfSC","./fi":"gekB","./fi.js":"gekB","./fil":"1ppg","./fil.js":"1ppg","./fo":"ByF4","./fo.js":"ByF4","./fr":"nyYc","./fr-ca":"2fjn","./fr-ca.js":"2fjn","./fr-ch":"Dkky","./fr-ch.js":"Dkky","./fr.js":"nyYc","./fy":"cRix","./fy.js":"cRix","./ga":"USCx","./ga.js":"USCx","./gd":"9rRi","./gd.js":"9rRi","./gl":"iEDd","./gl.js":"iEDd","./gom-deva":"qvJo","./gom-deva.js":"qvJo","./gom-latn":"DKr+","./gom-latn.js":"DKr+","./gu":"4MV3","./gu.js":"4MV3","./he":"x6pH","./he.js":"x6pH","./hi":"3E1r","./hi.js":"3E1r","./hr":"S6ln","./hr.js":"S6ln","./hu":"WxRl","./hu.js":"WxRl","./hy-am":"1rYy","./hy-am.js":"1rYy","./id":"UDhR","./id.js":"UDhR","./is":"BVg3","./is.js":"BVg3","./it":"bpih","./it-ch":"bxKX","./it-ch.js":"bxKX","./it.js":"bpih","./ja":"B55N","./ja.js":"B55N","./jv":"tUCv","./jv.js":"tUCv","./ka":"IBtZ","./ka.js":"IBtZ","./kk":"bXm7","./kk.js":"bXm7","./km":"6B0Y","./km.js":"6B0Y","./kn":"PpIw","./kn.js":"PpIw","./ko":"Ivi+","./ko.js":"Ivi+","./ku":"JCF/","./ku.js":"JCF/","./ky":"lgnt","./ky.js":"lgnt","./lb":"RAwQ","./lb.js":"RAwQ","./lo":"sp3z","./lo.js":"sp3z","./lt":"JvlW","./lt.js":"JvlW","./lv":"uXwI","./lv.js":"uXwI","./me":"KTz0","./me.js":"KTz0","./mi":"aIsn","./mi.js":"aIsn","./mk":"aQkU","./mk.js":"aQkU","./ml":"AvvY","./ml.js":"AvvY","./mn":"lYtQ","./mn.js":"lYtQ","./mr":"Ob0Z","./mr.js":"Ob0Z","./ms":"6+QB","./ms-my":"ZAMP","./ms-my.js":"ZAMP","./ms.js":"6+QB","./mt":"G0Uy","./mt.js":"G0Uy","./my":"honF","./my.js":"honF","./nb":"bOMt","./nb.js":"bOMt","./ne":"OjkT","./ne.js":"OjkT","./nl":"+s0g","./nl-be":"2ykv","./nl-be.js":"2ykv","./nl.js":"+s0g","./nn":"uEye","./nn.js":"uEye","./oc-lnc":"Fnuy","./oc-lnc.js":"Fnuy","./pa-in":"8/+R","./pa-in.js":"8/+R","./pl":"jVdC","./pl.js":"jVdC","./pt":"8mBD","./pt-br":"0tRk","./pt-br.js":"0tRk","./pt.js":"8mBD","./ro":"lyxo","./ro.js":"lyxo","./ru":"lXzo","./ru.js":"lXzo","./sd":"Z4QM","./sd.js":"Z4QM","./se":"//9w","./se.js":"//9w","./si":"7aV9","./si.js":"7aV9","./sk":"e+ae","./sk.js":"e+ae","./sl":"gVVK","./sl.js":"gVVK","./sq":"yPMs","./sq.js":"yPMs","./sr":"zx6S","./sr-cyrl":"E+lV","./sr-cyrl.js":"E+lV","./sr.js":"zx6S","./ss":"Ur1D","./ss.js":"Ur1D","./sv":"X709","./sv.js":"X709","./sw":"dNwA","./sw.js":"dNwA","./ta":"PeUW","./ta.js":"PeUW","./te":"XLvN","./te.js":"XLvN","./tet":"V2x9","./tet.js":"V2x9","./tg":"Oxv6","./tg.js":"Oxv6","./th":"EOgW","./th.js":"EOgW","./tk":"Wv91","./tk.js":"Wv91","./tl-ph":"Dzi0","./tl-ph.js":"Dzi0","./tlh":"z3Vd","./tlh.js":"z3Vd","./tr":"DoHr","./tr.js":"DoHr","./tzl":"z1FC","./tzl.js":"z1FC","./tzm":"wQk9","./tzm-latn":"tT3J","./tzm-latn.js":"tT3J","./tzm.js":"wQk9","./ug-cn":"YRex","./ug-cn.js":"YRex","./uk":"raLr","./uk.js":"raLr","./ur":"UpQW","./ur.js":"UpQW","./uz":"Loxo","./uz-latn":"AQ68","./uz-latn.js":"AQ68","./uz.js":"Loxo","./vi":"KSF8","./vi.js":"KSF8","./x-pseudo":"/X5v","./x-pseudo.js":"/X5v","./yo":"fzPg","./yo.js":"fzPg","./zh-cn":"XDpg","./zh-cn.js":"XDpg","./zh-hk":"SatO","./zh-hk.js":"SatO","./zh-mo":"OmwH","./zh-mo.js":"OmwH","./zh-tw":"kOpN","./zh-tw.js":"kOpN"};function a(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=i,e.exports=a,a.id="RnhZ"},RoFp:function(e,t,n){"use strict";var r=n("lm0R");function a(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,i=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return i||o?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(a,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(r.nextTick(a,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},RryX:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("eO9T");t.default=function(e){return(0,r.withParams)({type:"maxValue",max:e},(function(t){return!(0,r.req)(t)||(!/\s/.test(t)||t instanceof Date)&&+t<=+e}))}},"S+eF":function(e,t,n){(function(t,n){!function(t){"use strict";"function"==typeof bootstrap?bootstrap("promise",t):e.exports=t()}((function(){"use strict";var e=!1;try{throw new Error}catch(t){e=!!t.stack}var r,a=k(),i=function(){},o=function(){var e={task:void 0,next:null},r=e,a=!1,i=void 0,s=!1,l=[];function c(){for(var t,n;e.next;)t=(e=e.next).task,e.task=void 0,(n=e.domain)&&(e.domain=void 0,n.enter()),u(t,n);for(;l.length;)u(t=l.pop());a=!1}function u(e,t){try{e()}catch(e){if(s)throw t&&t.exit(),setTimeout(c,0),t&&t.enter(),e;setTimeout((function(){throw e}),0)}t&&t.exit()}if(o=function(e){r=r.next={task:e,domain:s&&t.domain,next:null},a||(a=!0,i())},"object"==typeof t&&"[object process]"===t.toString()&&t.nextTick)s=!0,i=function(){t.nextTick(c)};else if("function"==typeof n)i="undefined"!=typeof window?n.bind(window,c):function(){n(c)};else if("undefined"!=typeof MessageChannel){var d=new MessageChannel;d.port1.onmessage=function(){i=p,d.port1.onmessage=c,c()};var p=function(){d.port2.postMessage(0)};i=function(){setTimeout(c,0),p()}}else i=function(){setTimeout(c,0)};return o.runAfter=function(e){l.push(e),a||(a=!0,i())},o}(),s=Function.call;function l(e){return function(){return s.apply(e,arguments)}}var c,u=l(Array.prototype.slice),d=l(Array.prototype.reduce||function(e,t){var n=0,r=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=r)throw new TypeError}for(;n<r;n++)n in this&&(t=e(t,this[n],n));return t}),p=l(Array.prototype.indexOf||function(e){for(var t=0;t<this.length;t++)if(this[t]===e)return t;return-1}),f=l(Array.prototype.map||function(e,t){var n=this,r=[];return d(n,(function(a,i,o){r.push(e.call(t,i,o,n))}),void 0),r}),m=Object.create||function(e){function t(){}return t.prototype=e,new t},h=Object.defineProperty||function(e,t,n){return e[t]=n.value,e},_=l(Object.prototype.hasOwnProperty),v=Object.keys||function(e){var t=[];for(var n in e)_(e,n)&&t.push(n);return t},g=l(Object.prototype.toString);function y(e){return"[object StopIteration]"===g(e)||e instanceof c}c="undefined"!=typeof ReturnValue?ReturnValue:function(e){this.value=e};function b(t,n){if(e&&n.stack&&"object"==typeof t&&null!==t&&t.stack){for(var r=[],a=n;a;a=a.source)a.stack&&(!t.__minimumStackCounter__||t.__minimumStackCounter__>a.stackCounter)&&(h(t,"__minimumStackCounter__",{value:a.stackCounter,configurable:!0}),r.unshift(a.stack));r.unshift(t.stack);var i=function(e){for(var t=e.split("\n"),n=[],r=0;r<t.length;++r){var a=t[r];!x(a)&&(-1===(i=a).indexOf("(module.js:")&&-1===i.indexOf("(node.js:"))&&a&&n.push(a)}var i;return n.join("\n")}(r.join("\nFrom previous event:\n"));h(t,"stack",{value:i,configurable:!0})}}function w(e){var t=/at .+ \((.+):(\d+):(?:\d+)\)$/.exec(e);if(t)return[t[1],Number(t[2])];var n=/at ([^ ]+):(\d+):(?:\d+)$/.exec(e);if(n)return[n[1],Number(n[2])];var r=/.*@(.+):(\d+)$/.exec(e);return r?[r[1],Number(r[2])]:void 0}function x(e){var t=w(e);if(!t)return!1;var n=t[0],i=t[1];return n===r&&i>=a&&i<=G}function k(){if(e)try{throw new Error}catch(e){var t=e.stack.split("\n"),n=w(t[0].indexOf("@")>0?t[1]:t[2]);if(!n)return;return r=n[0],n[1]}}function D(e){return e instanceof T?e:A(e)?function(e){var t=S();return D.nextTick((function(){try{e.then(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}})),t.promise}(e):B(e)}D.resolve=D,D.nextTick=o,D.longStackSupport=!1;var M=1;function S(){var t,n=[],r=[],a=m(S.prototype),i=m(T.prototype);if(i.promiseDispatch=function(e,a,i){var o=u(arguments);n?(n.push(o),"when"===a&&i[1]&&r.push(i[1])):D.nextTick((function(){t.promiseDispatch.apply(t,o)}))},i.valueOf=function(){if(n)return i;var e=O(t);return j(e)&&(t=e),e},i.inspect=function(){return t?t.inspect():{state:"pending"}},D.longStackSupport&&e)try{throw new Error}catch(e){i.stack=e.stack.substring(e.stack.indexOf("\n")+1),i.stackCounter=M++}function o(a){t=a,D.longStackSupport&&e&&(i.source=a),d(n,(function(e,t){D.nextTick((function(){a.promiseDispatch.apply(a,t)}))}),void 0),n=void 0,r=void 0}return a.promise=i,a.resolve=function(e){t||o(D(e))},a.fulfill=function(e){t||o(B(e))},a.reject=function(e){t||o(H(e))},a.notify=function(e){t||d(r,(function(t,n){D.nextTick((function(){n(e)}))}),void 0)},a}function C(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=S();try{e(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}return t.promise}function L(e){return C((function(t,n){for(var r=0,a=e.length;r<a;r++)D(e[r]).then(t,n)}))}function T(e,t,n){void 0===t&&(t=function(e){return H(new Error("Promise does not support operation: "+e))}),void 0===n&&(n=function(){return{state:"unknown"}});var r=m(T.prototype);if(r.promiseDispatch=function(n,a,i){var o;try{o=e[a]?e[a].apply(r,i):t.call(r,a,i)}catch(e){o=H(e)}n&&n(o)},r.inspect=n,n){var a=n();"rejected"===a.state&&(r.exception=a.reason),r.valueOf=function(){var e=n();return"pending"===e.state||"rejected"===e.state?r:e.value}}return r}function E(e,t,n,r){return D(e).then(t,n,r)}function O(e){if(j(e)){var t=e.inspect();if("fulfilled"===t.state)return t.value}return e}function j(e){return e instanceof T}function A(e){return(t=e)===Object(t)&&"function"==typeof e.then;var t}"object"==typeof t&&t&&t.env&&t.env.Q_DEBUG&&(D.longStackSupport=!0),D.defer=S,S.prototype.makeNodeResolver=function(){var e=this;return function(t,n){t?e.reject(t):arguments.length>2?e.resolve(u(arguments,1)):e.resolve(n)}},D.Promise=C,D.promise=C,C.race=L,C.all=V,C.reject=H,C.resolve=D,D.passByCopy=function(e){return e},T.prototype.passByCopy=function(){return this},D.join=function(e,t){return D(e).join(t)},T.prototype.join=function(e){return D([this,e]).spread((function(e,t){if(e===t)return e;throw new Error("Q can't join: not the same: "+e+" "+t)}))},D.race=L,T.prototype.race=function(){return this.then(D.race)},D.makePromise=T,T.prototype.toString=function(){return"[object Promise]"},T.prototype.then=function(e,t,n){var r=this,a=S(),i=!1;return D.nextTick((function(){r.promiseDispatch((function(t){i||(i=!0,a.resolve(function(t){try{return"function"==typeof e?e(t):t}catch(e){return H(e)}}(t)))}),"when",[function(e){i||(i=!0,a.resolve(function(e){if("function"==typeof t){b(e,r);try{return t(e)}catch(e){return H(e)}}return H(e)}(e)))}])})),r.promiseDispatch(void 0,"when",[void 0,function(e){var t,r=!1;try{t=function(e){return"function"==typeof n?n(e):e}(e)}catch(e){if(r=!0,!D.onerror)throw e;D.onerror(e)}r||a.notify(t)}]),a.promise},D.tap=function(e,t){return D(e).tap(t)},T.prototype.tap=function(e){return e=D(e),this.then((function(t){return e.fcall(t).thenResolve(t)}))},D.when=E,T.prototype.thenResolve=function(e){return this.then((function(){return e}))},D.thenResolve=function(e,t){return D(e).thenResolve(t)},T.prototype.thenReject=function(e){return this.then((function(){throw e}))},D.thenReject=function(e,t){return D(e).thenReject(t)},D.nearer=O,D.isPromise=j,D.isPromiseAlike=A,D.isPending=function(e){return j(e)&&"pending"===e.inspect().state},T.prototype.isPending=function(){return"pending"===this.inspect().state},D.isFulfilled=function(e){return!j(e)||"fulfilled"===e.inspect().state},T.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},D.isRejected=function(e){return j(e)&&"rejected"===e.inspect().state},T.prototype.isRejected=function(){return"rejected"===this.inspect().state};var P,Y,$,I=[],N=[],z=[],F=!0;function R(){I.length=0,N.length=0,F||(F=!0)}function H(e){var n=T({when:function(n){return n&&function(e){if(F){var n=p(N,e);-1!==n&&("object"==typeof t&&"function"==typeof t.emit&&D.nextTick.runAfter((function(){var r=p(z,e);-1!==r&&(t.emit("rejectionHandled",I[n],e),z.splice(r,1))})),N.splice(n,1),I.splice(n,1))}}(this),n?n(e):this}},(function(){return this}),(function(){return{state:"rejected",reason:e}}));return function(e,n){F&&("object"==typeof t&&"function"==typeof t.emit&&D.nextTick.runAfter((function(){-1!==p(N,e)&&(t.emit("unhandledRejection",n,e),z.push(e))})),N.push(e),n&&void 0!==n.stack?I.push(n.stack):I.push("(no stack) "+n))}(n,e),n}function B(e){return T({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},delete:function(t){delete e[t]},post:function(t,n){return null==t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return v(e)}},void 0,(function(){return{state:"fulfilled",value:e}}))}function q(e,t,n){return D(e).spread(t,n)}function U(e,t,n){return D(e).dispatch(t,n)}function V(e){return E(e,(function(e){var t=0,n=S();return d(e,(function(r,a,i){var o;j(a)&&"fulfilled"===(o=a.inspect()).state?e[i]=o.value:(++t,E(a,(function(r){e[i]=r,0==--t&&n.resolve(e)}),n.reject,(function(e){n.notify({index:i,value:e})})))}),void 0),0===t&&n.resolve(e),n.promise}))}function W(e){if(0===e.length)return D.resolve();var t=D.defer(),n=0;return d(e,(function(r,a,i){var o=e[i];n++,E(o,(function(e){t.resolve(e)}),(function(e){if(0===--n){var r=e||new Error(""+e);r.message="Q can't get fulfillment value from any promise, all promises were rejected. Last error message: "+r.message,t.reject(r)}}),(function(e){t.notify({index:i,value:e})}))}),void 0),t.promise}function K(e){return E(e,(function(e){return e=f(e,D),E(V(f(e,(function(e){return E(e,i,i)}))),(function(){return e}))}))}D.resetUnhandledRejections=R,D.getUnhandledReasons=function(){return I.slice()},D.stopUnhandledRejectionTracking=function(){R(),F=!1},R(),D.reject=H,D.fulfill=B,D.master=function(e){return T({isDef:function(){}},(function(t,n){return U(e,t,n)}),(function(){return D(e).inspect()}))},D.spread=q,T.prototype.spread=function(e,t){return this.all().then((function(t){return e.apply(void 0,t)}),t)},D.async=function(e){return function(){function t(e,t){var i;if("undefined"==typeof StopIteration){try{i=n[e](t)}catch(e){return H(e)}return i.done?D(i.value):E(i.value,r,a)}try{i=n[e](t)}catch(e){return y(e)?D(e.value):H(e)}return E(i,r,a)}var n=e.apply(this,arguments),r=t.bind(t,"next"),a=t.bind(t,"throw");return r()}},D.spawn=function(e){D.done(D.async(e)())},D.return=function(e){throw new c(e)},D.promised=function(e){return function(){return q([this,V(arguments)],(function(t,n){return e.apply(t,n)}))}},D.dispatch=U,T.prototype.dispatch=function(e,t){var n=this,r=S();return D.nextTick((function(){n.promiseDispatch(r.resolve,e,t)})),r.promise},D.get=function(e,t){return D(e).dispatch("get",[t])},T.prototype.get=function(e){return this.dispatch("get",[e])},D.set=function(e,t,n){return D(e).dispatch("set",[t,n])},T.prototype.set=function(e,t){return this.dispatch("set",[e,t])},D.del=D.delete=function(e,t){return D(e).dispatch("delete",[t])},T.prototype.del=T.prototype.delete=function(e){return this.dispatch("delete",[e])},D.mapply=D.post=function(e,t,n){return D(e).dispatch("post",[t,n])},T.prototype.mapply=T.prototype.post=function(e,t){return this.dispatch("post",[e,t])},D.send=D.mcall=D.invoke=function(e,t){return D(e).dispatch("post",[t,u(arguments,2)])},T.prototype.send=T.prototype.mcall=T.prototype.invoke=function(e){return this.dispatch("post",[e,u(arguments,1)])},D.fapply=function(e,t){return D(e).dispatch("apply",[void 0,t])},T.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},D.try=D.fcall=function(e){return D(e).dispatch("apply",[void 0,u(arguments,1)])},T.prototype.fcall=function(){return this.dispatch("apply",[void 0,u(arguments)])},D.fbind=function(e){var t=D(e),n=u(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(u(arguments))])}},T.prototype.fbind=function(){var e=this,t=u(arguments);return function(){return e.dispatch("apply",[this,t.concat(u(arguments))])}},D.keys=function(e){return D(e).dispatch("keys",[])},T.prototype.keys=function(){return this.dispatch("keys",[])},D.all=V,T.prototype.all=function(){return V(this)},D.any=W,T.prototype.any=function(){return W(this)},D.allResolved=(P=K,Y="allResolved",$="allSettled",function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(Y+" is deprecated, use "+$+" instead.",new Error("").stack),P.apply(P,arguments)}),T.prototype.allResolved=function(){return K(this)},D.allSettled=function(e){return D(e).allSettled()},T.prototype.allSettled=function(){return this.then((function(e){return V(f(e,(function(e){function t(){return e.inspect()}return(e=D(e)).then(t,t)})))}))},D.fail=D.catch=function(e,t){return D(e).then(void 0,t)},T.prototype.fail=T.prototype.catch=function(e){return this.then(void 0,e)},D.progress=function(e,t){return D(e).then(void 0,void 0,t)},T.prototype.progress=function(e){return this.then(void 0,void 0,e)},D.fin=D.finally=function(e,t){return D(e).finally(t)},T.prototype.fin=T.prototype.finally=function(e){if(!e||"function"!=typeof e.apply)throw new Error("Q can't apply finally callback");return e=D(e),this.then((function(t){return e.fcall().then((function(){return t}))}),(function(t){return e.fcall().then((function(){throw t}))}))},D.done=function(e,t,n,r){return D(e).done(t,n,r)},T.prototype.done=function(e,n,r){var a=function(e){D.nextTick((function(){if(b(e,i),!D.onerror)throw e;D.onerror(e)}))},i=e||n||r?this.then(e,n,r):this;"object"==typeof t&&t&&t.domain&&(a=t.domain.bind(a)),i.then(void 0,a)},D.timeout=function(e,t,n){return D(e).timeout(t,n)},T.prototype.timeout=function(e,t){var n=S(),r=setTimeout((function(){t&&"string"!=typeof t||((t=new Error(t||"Timed out after "+e+" ms")).code="ETIMEDOUT"),n.reject(t)}),e);return this.then((function(e){clearTimeout(r),n.resolve(e)}),(function(e){clearTimeout(r),n.reject(e)}),n.notify),n.promise},D.delay=function(e,t){return void 0===t&&(t=e,e=void 0),D(e).delay(t)},T.prototype.delay=function(e){return this.then((function(t){var n=S();return setTimeout((function(){n.resolve(t)}),e),n.promise}))},D.nfapply=function(e,t){return D(e).nfapply(t)},T.prototype.nfapply=function(e){var t=S(),n=u(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},D.nfcall=function(e){var t=u(arguments,1);return D(e).nfapply(t)},T.prototype.nfcall=function(){var e=u(arguments),t=S();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},D.nfbind=D.denodeify=function(e){if(void 0===e)throw new Error("Q can't wrap an undefined function");var t=u(arguments,1);return function(){var n=t.concat(u(arguments)),r=S();return n.push(r.makeNodeResolver()),D(e).fapply(n).fail(r.reject),r.promise}},T.prototype.nfbind=T.prototype.denodeify=function(){var e=u(arguments);return e.unshift(this),D.denodeify.apply(void 0,e)},D.nbind=function(e,t){var n=u(arguments,2);return function(){var r=n.concat(u(arguments)),a=S();function i(){return e.apply(t,arguments)}return r.push(a.makeNodeResolver()),D(i).fapply(r).fail(a.reject),a.promise}},T.prototype.nbind=function(){var e=u(arguments,0);return e.unshift(this),D.nbind.apply(void 0,e)},D.nmapply=D.npost=function(e,t,n){return D(e).npost(t,n)},T.prototype.nmapply=T.prototype.npost=function(e,t){var n=u(t||[]),r=S();return n.push(r.makeNodeResolver()),this.dispatch("post",[e,n]).fail(r.reject),r.promise},D.nsend=D.nmcall=D.ninvoke=function(e,t){var n=u(arguments,2),r=S();return n.push(r.makeNodeResolver()),D(e).dispatch("post",[t,n]).fail(r.reject),r.promise},T.prototype.nsend=T.prototype.nmcall=T.prototype.ninvoke=function(e){var t=u(arguments,1),n=S();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},D.nodeify=function(e,t){return D(e).nodeify(t)},T.prototype.nodeify=function(e){if(!e)return this;this.then((function(t){D.nextTick((function(){e(null,t)}))}),(function(t){D.nextTick((function(){e(t)}))}))},D.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var G=k();return D}))}).call(this,n("8oxB"),n("URgk").setImmediate)},"S/cL":function(e,t,n){"use strict";n("iAMx")},S6ln:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},SFxW: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;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("wd/R"))},SatO:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1200?"上午":1200===r?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n("wd/R"))},SfRM:function(e,t,n){var r=n("YESw");e.exports=function(){this.__data__=r?r(null):{},this.size=0}},SntB:function(e,t,n){"use strict";var r=n("xTJ+");e.exports=function(e,t){t=t||{};var n={},a=["url","method","params","data"],i=["headers","auth","proxy"],o=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(a,(function(e){void 0!==t[e]&&(n[e]=t[e])})),r.forEach(i,(function(a){r.isObject(t[a])?n[a]=r.deepMerge(e[a],t[a]):void 0!==t[a]?n[a]=t[a]:r.isObject(e[a])?n[a]=r.deepMerge(e[a]):void 0!==e[a]&&(n[a]=e[a])})),r.forEach(o,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])}));var s=a.concat(i).concat(o),l=Object.keys(t).filter((function(e){return-1===s.indexOf(e)}));return r.forEach(l,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])})),n}},SpYT:function(e){e.exports=JSON.parse('{"navigation":{"dashboard":"Komandna tabla","customers":"Klijenti","items":"Stavke","invoices":"Fakture","expenses":"Rashodi","estimates":"Profakture","payments":"Plaćanja","reports":"Izveštaji","settings":"Podešavanja","logout":"Odjavi se"},"general":{"view_pdf":"Pogledaj PDF","copy_pdf_url":"Kopiraj PDF link","download_pdf":"Preuzmi PDF","save":"Sačuvaj","cancel":"Otkaži","update":"Ažuriraj","deselect":"Poništi izbor","download":"Preuzmi","from_date":"Od Datuma","to_date":"Do Datuma","from":"Od","to":"Do","sort_by":"Rasporedi Po","ascending":"Rastuće","descending":"Opadajuće","subject":"Predmet","message":"Poruka","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"},"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"},"customers":{"title":"Klijenti","add_customer":"Dodaj Klijenta","contacts_list":"Lista klijenata","name":"Naziv","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","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","add_new_customer":"Dodaj novog klijenta","save_customer":"Sačuvaj klijenta","update_customer":"Ažuriraj klijenta","customer":"Klijent | Klijenti","new_customer":"Nov klijent","edit_customer":"Izmeni klijenta","basic_info":"Osnovne informacije","billing_address":"Adresa za naplatu","shipping_address":"Adresa za dostavu","copy_billing_address":"Kopiraj iz adrese za naplatu","no_customers":"Još uvek nema klijenata!","no_customers_found":"Klijenti nisu pronađeni!","list_of_customers":"Ova sekcija će da sadrži spisak klijenata.","primary_display_name":"Primarni naziv koji se prikazuje","select_currency":"Odaberi valutu","select_a_customer":"Odaberi klijenta","type_or_click":"Unesi tekst ili klikni da izabereš","confirm_delete":"Nećeš moći da povratiš ovog klijenta i sve njegove Fakture, Profakture i Uplate. | Nećeš moći da povratiš ove klijente i njihove Fakture, Profakture i Uplate.","created_message":"Klijent uspešno kreiran","updated_message":"Klijent uspešno ažuriran","deleted_message":"Klijent uspešno obrisan | Klijenti uspešno obrisani"},"items":{"title":"Stavke","items_list":"Lista stavki","name":"Naziv","unit":"Jedinica","description":"Opis","added_on":"Datum dodavanja","price":"Cena","date_of_creation":"Datum kreiranja","action":"Akcije","add_item":"Dodaj Stavku","save_item":"Sačuvaj Stavku","update_item":"Ažuriraj Stavku","item":"Stavka | Stavke","add_new_item":"Dodaj novu stavku","new_item":"Nova stavka","edit_item":"Izmeni stavku","no_items":"Još uvek nema stavki!","list_of_items":"Ova sekcija će da sadrži spisak stavki.","select_a_unit":"odaberi jedinicu","taxes":"Porezi","item_attached_message":"Nije dozvoljeno brisanje stavke koje se koristi","confirm_delete":"Nećeš moći da povratiš ovu Stavku | Nećeš moći da povratiš ove Stavke","created_message":"Stavka uspešno kreirana","updated_message":"Stavka uspešno ažurirana","deleted_message":"Stavka uspešno obrisana | Stavke uspešno obrisane"},"estimates":{"title":"Profakture","estimate":"Profaktura | Profakture","estimates_list":"Lista profaktura","days":"{days} Dan","months":"{months} Mesec","years":"{years} Godina","all":"Sve","paid":"Plaćeno","unpaid":"Neplaćeno","customer":"KLIJENT","ref_no":"POZIV NA BROJ","number":"BROJ","amount_due":"IZNOS DOSPEĆA","partially_paid":"Delimično Plaćeno","total":"Ukupno za plaćanje","discount":"Popust","sub_total":"Ukupno","estimate_number":"Broj profakture","ref_number":"Poziv na broj","contact":"Kontakt","add_item":"Dodaj stavku","date":"Datum","due_date":"Datum Dospeća","expiry_date":"Datum Isteka","status":"Status","add_tax":"Dodaj Porez","amount":"Iznos","action":"Akcija","notes":"Napomena","tax":"Porez","estimate_template":"Šablon","convert_to_invoice":"Pretvori u Fakturu","mark_as_sent":"Označi kao Poslato","send_estimate":"Pošalji Profakturu","resend_estimate":"Ponovo pošalji Profakturu","record_payment":"Unesi uplatu","add_estimate":"Dodaj Profakturu","save_estimate":"Sačuvaj Profakturu","confirm_conversion":"Detalji ove Profakture će biti iskorišćeni za pravljenje Fakture.","conversion_message":"Faktura uspešno kreirana","confirm_send_estimate":"Ova Profaktura će biti poslata putem Email-a klijentu","confirm_mark_as_sent":"Ova Profaktura će biti označena kao Poslata","confirm_mark_as_accepted":"Ova Profaktura će biti označena kao Prihvaćena","confirm_mark_as_rejected":"Ova Profaktura će biti označena kao Odbijena","no_matching_estimates":"Ne postoji odgovarajuća profaktura!","mark_as_sent_successfully":"Profaktura uspešno označena kao Poslata","send_estimate_successfully":"Profaktura uspešno poslata","errors":{"required":"Polje je obavezno"},"accepted":"Prihvaćeno","sent":"Poslato","draft":"U izradi","declined":"Odbijeno","new_estimate":"Nova Profaktura","add_new_estimate":"Dodaj novu Profakturu","update_Estimate":"Ažuriraj Profakturu","edit_estimate":"Izmeni Profakturu","items":"stavke","Estimate":"Profaktura | Profakture","add_new_tax":"Dodaj nov Porez","no_estimates":"Još uvek nema Profaktura!","list_of_estimates":"Ova sekcija će da sadrži spisak Profaktura.","mark_as_rejected":"Označi kao odbijeno","mark_as_accepted":"Označi kao prihvaćeno","marked_as_accepted_message":"Profaktura označena kao prihvaćena","marked_as_rejected_message":"Profaktura označena kao odbijena","confirm_delete":"Nećeš moći da povratiš ovu Profakturu | Nećeš moći da povratiš ove Profakture","created_message":"Profaktura uspešno kreirana","updated_message":"Profaktura uspešno ažurirana","deleted_message":"Profaktura uspešno obrisana | Profakture uspešno obrisane","user_email_does_not_exist":"Email adresa klijenta ne postoji","something_went_wrong":"nešto je krenulo naopako","item":{"title":"Naziv stavke","description":"Opis","quantity":"Količina","price":"Cena","discount":"Popust","total":"Ukupno za plaćanje","total_discount":"Ukupan popust","sub_total":"Ukupno","tax":"Porez","amount":"Iznos","select_an_item":"Unesi tekst ili klikni da izabereš","type_item_description":"Unesi opis Stavke (nije obavezno)"}},"invoices":{"title":"Fakture","invoices_list":"List Faktura","days":"{days} dan","months":"{months} Mesec","years":"{years} Godina","all":"Sve","paid":"Plaćeno","unpaid":"Neplaćeno","customer":"KLIJENT","paid_status":"STATUS UPLATE","ref_no":"POZIV NA BROJ","number":"BROJ","amount_due":"IZNOS DOSPEĆA","partially_paid":"Delimično plaćeno","total":"Ukupno za plaćanje","discount":"Popust","sub_total":"Ukupno","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 plaćanju","save_payment":"Sačuvaj Uplatu","update_payment":"Ažuriraj Uplatu","payment":"Uplata | Uplate","no_payments":"Još uvek nema uplata!","no_matching_payments":"Ne postoje uplate koje odgovaraju pretrazi!","list_of_payments":"Ova sekcija će da sadrži listu uplata.","select_payment_mode":"Odaberi način plaćanja","confirm_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":"List Rashoda","select_a_customer":"Odaberi klijenta","expense_title":"Naslov","customer":"Klijent","contact":"Kontakt","category":"Kategorija","from_date":"Datum od","to_date":"Datum do","expense_date":"Datum","description":"Opis","receipt":"Račun","amount":"Iznos","action":"Akcija","note":"Napomena","category_id":"ID kategorije","date":"Datum Rashoda","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"},"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"},"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"},"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","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","invoice_setting_updated":"Podešavanje za fakture je uspešno sačuvano"},"estimates":{"title":"Profakture","estimate_prefix":"Prefiks profaktura","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"},"payments":{"title":"Plaćanja","payment_prefix":"Prefiks uplata","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_mode":"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"},"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"}},"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","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_formate":"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","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","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} "}},"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","username":"Korisničko ime baze podataka","db_name":"Naziv baze podataka","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_url":"Nevažeći URL (ex: http://www.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 255 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 255 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"}}')},T1AV:function(e,t,n){var r=n("t2Dn"),a=n("5Tg0"),i=n("yP5f"),o=n("Q1l4"),s=n("+iFO"),l=n("03A+"),c=n("Z0cm"),u=n("3L66"),d=n("DSRE"),p=n("lSCD"),f=n("GoyQ"),m=n("YO3V"),h=n("c6wG"),_=n("itsj"),v=n("jeLo");e.exports=function(e,t,n,g,y,b,w){var x=_(e,n),k=_(t,n),D=w.get(k);if(D)r(e,n,D);else{var M=b?b(x,k,n+"",e,t,w):void 0,S=void 0===M;if(S){var C=c(k),L=!C&&d(k),T=!C&&!L&&h(k);M=k,C||L||T?c(x)?M=x:u(x)?M=o(x):L?(S=!1,M=a(k,!0)):T?(S=!1,M=i(k,!0)):M=[]:m(k)||l(k)?(M=x,l(x)?M=v(x):f(x)&&!p(x)||(M=s(k))):S=!1}S&&(w.set(k,M),y(M,k,g,b,w),w.delete(k)),r(e,n,M)}}},T1qN:function(e,t,n){"use strict";n("RNYL")},TwFf:function(e){e.exports=JSON.parse('{"navigation":{"dashboard":"الرئيسية","customers":"العملاء","items":"الأصناف","invoices":"الفواتير","expenses":"النفقات","estimates":"التقديرات","payments":"المدفوعات","reports":"التقارير","settings":"الإعدادات","logout":"خروج","users":"المستخدمون"},"general":{"add_company":"أضف شركة","view_pdf":"عرض PDF","copy_pdf_url":"Copy PDF Url","download_pdf":"تنزيل PDF","save":"حفظ","create":"خلق","cancel":"إلغاء الأمر","update":"تحديث","deselect":"Deselect","download":"تنزيل","from_date":"من تاريخ","to_date":"إلى تاريخ","from":"من","to":"إلى","sort_by":"ترتيب حسب","ascending":"تصاعدي","descending":"تنازلي","subject":"موضوع","body":"الجسم","message":"رسالة","send":"إرسال","go_back":"إلى الخلف","back_to_login":"العودة إلى تسجيل الدخول؟","home":"الرئيسية","filter":"تصفية","delete":"حذف","edit":"تعديل","view":"عرض","add_new_item":"إضافة صنف جديد","clear_all":"مسح الكل","showing":"عرض","of":"من","actions":"العمليات","subtotal":"المجموع الفرعي","discount":"خصم","fixed":"ثابت","percentage":"نسبة","tax":"ضريبة","total_amount":"المبلغ الإجمالي","bill_to":"مطلوب من","ship_to":"يشحن إلى","due":"واجبة السداد","draft":"مسودة","sent":"مرسلة","all":"الكل","select_all":"تحديد الل","choose_file":"اضغط هنا لاختيار ملف","choose_template":"اختيار القالب","choose":"اختر","remove":"إزالة","powered_by":"تصميم","bytefury":"باترفوري","select_a_status":"اختر الحالة","select_a_tax":"اختر الضريبة","search":"بحث","are_you_sure":"هل أنت متأكد?","list_is_empty":"القائمة فارغة.","no_tax_found":"لا يوجد ضريبة!","four_zero_four":"404","you_got_lost":"عفواً! يبدو أنك قد تهت!","go_home":"عودة إلى الرئيسية","test_mail_conf":"اختبار تكوين البريد","send_mail_successfully":"تم إرسال البريد بنجاح","setting_updated":"تم تحديث الإعدادات بنجاح","select_state":"اختر الولاية/المنطقة","select_country":"اختر الدولة","select_city":"اختر المدينة","street_1":"عنوان الشارع 1","street_2":"عنوان الشارع 2","action_failed":"فشلت العملية","retry":"أعد المحاولة","choose_note":"اختر ملاحظة","no_note_found":"لم يتم العثور على الملاحظة","insert_note":"أدخل ملاحظة"},"dashboard":{"select_year":"اختر السنة","cards":{"due_amount":"المبلغ المطلوب","customers":"العملاء","invoices":"الفواتير","estimates":"التقديرات"},"chart_info":{"total_sales":"المبيعات","total_receipts":"إجمالي الدخل","total_expense":"النفقات","net_income":"صافي الدخل","year":"اختر السنة"},"weekly_invoices":{"title":"الفواتير الأسبوعية"},"monthly_chart":{"title":"المبيعات والنفقات"},"recent_invoices_card":{"title":"فواتير مستحقة","due_on":"مستحقة في","customer":"العميل","amount_due":"المبلغ المطلوب","actions":"العمليات","view_all":"عرض الكل"},"recent_estimate_card":{"title":"أحدث التقديرات","date":"التاريخ","customer":"العميل","amount_due":"المبلغ المطلوب","actions":"العمليات","view_all":"عرض الكل"}},"tax_types":{"name":"الاسم","description":"الوصف","percent":"نسبه مئويه","compound_tax":"الضريبة المركبة"},"global_search":{"search":"بحث...","customers":"العملاء","users":"المستخدمون","no_results_found":"لم يتم العثور على نتائج"},"customers":{"title":"العملاء","add_customer":"إضافة عميل","contacts_list":"قائمة العملاء","name":"الاسم","mail":"البريد","statement":"البيان","display_name":"اسم العرض","primary_contact_name":"اسم التواصل الرئيسي","contact_name":"اسم تواصل آخر","amount_due":"المبلغ المطلوب","email":"البريد الإلكتروني","address":"العنوان","phone":"الهاتف","website":"موقع الإنترنت","overview":"استعراض","enable_portal":"Enable Portal","country":"الدولة","state":"الولاية/المنطقة","city":"المدينة","zip_code":"الرمز البريدي","added_on":"أضيف في","action":"إجراء","password":"كلمة المرور","street_number":"رقم الشارع","primary_currency":"العملة الرئيسية","description":"الوصف","add_new_customer":"إضافة عميل جديد","save_customer":"حفظ العميل","update_customer":"تحديث بيانات العميل","customer":"عميل | عملاء","new_customer":"عميل جديد","edit_customer":"تعديل عميل","basic_info":"معلوات أساسية","billing_address":"عنوان الفوترة","shipping_address":"عنوان الشحن","copy_billing_address":"نسخ من عنوان الفوترة","no_customers":"لا يوجد عملاء حتى الآن!","no_customers_found":"لم يتم الحصول على عملاء!","list_of_customers":"سوف يحتوي هذا القسم على قائمة العملاء.","primary_display_name":"اسم العرض الرئيسي","select_currency":"اختر العملة","select_a_customer":"اختر العميل","type_or_click":"اكتب أو اضغط للاختيار","new_transaction":"معاملة جديدة","no_matching_customers":"لا يوجد عملاء مطابقين!","phone_number":"رقم الهاتف","create_date":"تاريخ الإنشاء","confirm_delete":"لن تتمكن من استرداد هذا العميل وجميع الفواتير والتقديرات والمدفوعات ذات الصلة. | لن تتمكن من استرداد هؤلاء العملاء وجميع الفواتير والتقديرات والمدفوعات ذات الصلة.","created_message":"تم إنشاء العملاء بنجاح","updated_message":"تم تحديث العملاء بنجاح","deleted_message":"تم حذف العملاء بنجاح | تم حذف العميل بنجاح"},"items":{"title":"الأصناف","items_list":"قائمة الأصناف","name":"الاسم","unit":"الوحدة","description":"الوصف","added_on":"أضيف في","price":"السعر","date_of_creation":"تاريخ الإنشاء","action":"إجراء","add_item":"إضافة صنف","save_item":"حفظ الصنف","update_item":"تحديث الصنف","item":"صنف | أصناف","add_new_item":"إضافة صنف جديد","new_item":"جديد صنف","edit_item":"تحديث صنف","no_items":"لا يوجد أصناف حتى الآن!","list_of_items":"هذا القسم سوف يحتوي على قائمة الأصناف.","select_a_unit":"اختر الوحدة","taxes":"الضرائب","item_attached_message":"لا يمكن حذف الصنف قيد الاستخدام","confirm_delete":"لن تتمكن من استرجاع هذا الصنف | لن تتمكن من استرجاع هذه الأصناف","created_message":"تم إنشاء الصنف بنجاح","updated_message":"تم تحديث الصنف بنجاح","deleted_message":"تم حذف الصنف بنجاح | تم حذف الأصناف بنجاح"},"estimates":{"title":"التقديرات","estimate":"تقدير | تقديرات","estimates_list":"قائمة التقديرات","days":"{days} أيام","months":"{months} أشهر","years":"{years} سنوات","all":"الكل","paid":"مدفوع","unpaid":"غير مدفوع","customer":"العميل","ref_no":"رقم المرجع.","number":"الرقم","amount_due":"المبلغ المطلوب","partially_paid":"مدفوع جزئيا","total":"الإجمالي","discount":"الخصم","sub_total":"حاصل الجمع","estimate_number":"رقم تقدير","ref_number":"رقم المرجع","contact":"تواصل","add_item":"إضافة صنف","date":"تاريخ","due_date":"تاريخ الاستحقاق","expiry_date":"تاريخ الصلاحية","status":"الحالة","add_tax":"إضافة ضرية","amount":"المبلغ المطلوب","action":"إجراء","notes":"ملاحظات","tax":"ضريبة","estimate_template":"قالب","convert_to_invoice":"تحويل إلى فاتورة","mark_as_sent":"تحديد كمرسل","send_estimate":"إرسال التقدير","resend_estimate":"إعادة إرسال التقدير","record_payment":"تسجيل مدفوات","add_estimate":"إضافة تقدير","save_estimate":"حفظ التقدير","confirm_conversion":"هل تريد تحويل هذا التقدير إلى فاتورة؟","conversion_message":"تم إنشاء الفاتورة بنجاح","confirm_send_estimate":"سيتم إرسال هذا التقدير بالبريد الإلكتروني إلى العميل","confirm_mark_as_sent":"سيتم التحديد كمرسل على هذا التقدير","confirm_mark_as_accepted":"سيتم التحديد كمقبول على هذا التقدير","confirm_mark_as_rejected":"سيتم التحديد كمرفوض على هذا التقدير","no_matching_estimates":"لا يوجد تقديرات مطابقة!","mark_as_sent_successfully":"تم التحديد كمرسل بنجاح","send_estimate_successfully":"تم إرسال التقدير بنجاح","errors":{"required":"حقل مطلوب"},"accepted":"مقبول","sent":"مرسل","draft":"مسودة","declined":"مرفوض","new_estimate":"تقدير جديد","add_new_estimate":"إضافة تقدير جديد","update_Estimate":"تحديث تقدير","edit_estimate":"تعديل التقدير","items":"الأصناف","Estimate":"تقدير | تقديرات","add_new_tax":"إضافة ضريبة جديدة","no_estimates":"لا يوجد تقديرات حالياً!","list_of_estimates":"هذا القسم سوف يحتوي على التقديرات.","mark_as_rejected":"تحديد كمرفوض","mark_as_accepted":"تحديد كمقروء","marked_as_accepted_message":"تحديد التقدير كمقبول","marked_as_rejected_message":"تحديد التقدير كمرفوض","confirm_delete":"لن تستطيع استرجاع هذا التقدير | لن تستطيع إستعادة هذه التقديرات","created_message":"تم إنشاء التقدير بنجاح","updated_message":"تم تحديث التقدير بنجاح","deleted_message":"تم حذف التقدير بنجاح | تم حذف التقديرات بنجاح","user_email_does_not_exist":"البريد الالكتروني للمستخدم غير موجود","something_went_wrong":"خطأ غير معروف!","item":{"title":"اسم الصنف","description":"الوصف","quantity":"الكمية","price":"السعر","discount":"الخصم","total":"الإجمالي","total_discount":"مجموع الخصم","sub_total":"حاصل الجمع","tax":"الضرية","amount":"المبلغ المطلوب","select_an_item":"اكتب أو اختر الصنف","type_item_description":"اكتب وصف الصنف (اختياري)"}},"invoices":{"title":"الفواتير","invoices_list":"قائمة الفواتير","days":"{days} أيام","months":"{months} أشهر","years":"{years} سنوات","all":"الكل","paid":"مدفوع","unpaid":"غير مدفوع","customer":"العميل","paid_status":"حالة الدفع","ref_no":"رقم المرجع.","number":"الرقم","amount_due":"المبلغ المطلوب","partially_paid":"مدفوع جزئياً","total":"الإجمالي","discount":"الخصم","sub_total":"حاصل الجمع","invoice":"فاتورة | فواتير","invoice_number":"رقم الفاتورة","ref_number":"رقم المرجع","contact":"تواصل","add_item":"إضافة صنف","date":"التاريخ","due_date":"تاريخ الاستحقاق","status":"الحالة","add_tax":"إضافة ضريبة","amount":"المبلغ المطلوب","action":"إجراء","notes":"ملاحظات","view":"عرض","send_invoice":"إرسال الفاتورة","resend_invoice":"إعادة إرسال الفاتورة","invoice_template":"قالب الفاتورة","template":"قالب","mark_as_sent":"تحديد كمرسل","confirm_send_invoice":"سيتم إرسال هذه الفاتورة بالبريد الألكتروني إلى العميل","invoice_mark_as_sent":"سيتم تحديد هذه الفاتورة كمرسلة","confirm_send":"سيتم إرسال هذه الفاتورة بالبريد الألكتروني إلى العميل","invoice_date":"تاريخ الفاتورة","record_payment":"تسجيل مدفوعات","add_new_invoice":"إضافة فاتورة جديدة","update_expense":"تحديث المصروفات","edit_invoice":"تعديل الفاتورة","new_invoice":"فاتورة جديدة","save_invoice":"حفظ الفاتورة","update_invoice":"تحديث الفاتورة","add_new_tax":"إضافة ضريبة جديدة","no_invoices":"لا يوجد فواتير حتى الآن!","list_of_invoices":"قائمة الفواتير .","select_invoice":"اختر الفاتورة","no_matching_invoices":"لا يوجد فواتير مطابقة!","mark_as_sent_successfully":"تم تحديد الفاتورة كمرسلة بنجاح","send_invoice_successfully":"تم إرسال الفاتورة بنجاح","cloned_successfully":"تم استنساخ الفاتورة بنجاح","clone_invoice":"استنساخ الفاتورة","confirm_clone":"سيتم استنساخ هذه الفاتورة في فاتورة جديدة","item":{"title":"اسم الصنف","description":"الوصف","quantity":"الكمية","price":"السعر","discount":"الخصم","total":"الإجمالي","total_discount":"إجمالي الخصم","sub_total":"حاصل الجمع","tax":"الضريبة","amount":"المبلغ المطلوب","select_an_item":"اكتب أو انقر لاختيار صنف","type_item_description":"وصف الصنف (اختياري)"},"payment_attached_message":"هناك مدفوعات مرتبطة بالفعل بإحدى الفواتير المحددة. تأكد من حذف المدفوعات المرتبطة أولاً قبل حذف الفاتورة.","confirm_delete":"لن تتمكن من استرجاع الفاتورة بعد هذه الإجراء | لن تتمكن من استرجاع الفواتير بعد هذا الإجراء","created_message":"تم إنشاء الفاتورة بنجاح","updated_message":"تم تحديث الفاتورة بنجاح","deleted_message":"تم حذف الفاتورة بنجاح | تم حذف الفواتير بنجاح","marked_as_sent_message":"تم إرسال الفاتورة بنجاح","user_email_does_not_exist":"البريد الإلكتروني للمستخدم غير موجود!","something_went_wrong":"خطأ غير معروف!","invalid_due_amount_message":"المبلغ النهائي للفاتورة لا يمكن أن يكون أقل من المبلغ المطلوب لها. رجاءاً حدث الفاتورة أو قم بحذف المدفوعات المرتبطة بها للاستمرار."},"credit_notes":{"title":"ملاحظات إئتمانية","credit_notes_list":"قائمة الملاحظات الإئتمانية","credit_notes":"ملاحظات إئتمانية","contact":"تواصل","date":"التاريخ","amount":"المبلغ المطلوب","action":"إجراء","credit_number":"الرقم الإئتماني","notes":"ملاحظات","confirm_delete":"هل تريد حفذف هذه الملاحظة الإئتمانية؟","item":{"title":"اسم الصنف","description":"الوصف","quantity":"الكمية","price":"السعر","discount":"الخصم","total":"الإجمالي","total_discount":"إجمالي الخصم","sub_total":"حاصل الجمع","tax":"الضريبة"}},"payments":{"title":"المدفوعات","payments_list":"قائمة المدفوعات","record_payment":"تسجيل دفعة","customer":"العميل","date":"التاريخ","amount":"المبلغ المطلوب","action":"إجراء","payment_number":"رقم الدفعة","payment_mode":"نوع الدفعة","invoice":"الفاتورة","note":"ملاحظة","add_payment":"إضافة دفعة","new_payment":"دفعة جديدة","edit_payment":"تعديل الدفعة","view_payment":"عرض الدفعة","add_new_payment":"إضافة دفعة جديدة","send_payment_receipt":"Send Payment Receipt","send_payment":"إرسال الدفعة","save_payment":"حفظ الدفعة","update_payment":"تحديث الدفعة","payment":"دفعة | مدفوعات","no_payments":"لا يوجد مدفوعات حتى الآن!","no_matching_payments":"لا توجد مدفوعات مطابقة!","list_of_payments":"سوف تحتوي هذه القائمة على مدفوعات الفواتير.","select_payment_mode":"اختر طريقة الدفع","confirm_mark_as_sent":"سيتم التحديد كمرسل على هذا التقدير","confirm_send_payment":"This payment will be sent via email to the customer","send_payment_successfully":"Payment sent successfully","user_email_does_not_exist":"البريد الإلكتروني للمستخدم غير موجود!","something_went_wrong":"خطأ غير معروف!","confirm_delete":"لن تكون قادر على استرجاع هذه الدفعة | لن تكون قادراً على استرجاع هذه المدفوعات","created_message":"تم إنشاء الدفعة بنجاح","updated_message":"تم تحديث الدفعة بنجاح","deleted_message":"تم حذف الدفعة بنجاح | تم حذف المدفوعات بنجاح","invalid_amount_message":"قيمة الدفعة غير صحيحة!"},"expenses":{"title":"النفقات","expenses_list":"قائمة النفقات","select_a_customer":"حدد عميلاً","expense_title":"العنوان","customer":"العميل","contact":"تواصل","category":"الفئة","from_date":"من تاريخ","to_date":"حتى تاريخ","expense_date":"التاريخ","description":"الوصف","receipt":"سند القبض","amount":"المبلغ المطلوب","action":"إجراء","note":"ملاحظة","category_id":"رمز الفئة","date":"تاريخ النفقات","add_expense":"أضف نفقات","add_new_expense":"أضف نفقات جديدة","save_expense":"حفظ النفقات","update_expense":"تحديث النفقات","download_receipt":"تنزيل السند","edit_expense":"تعديل النفقات","new_expense":"نفقات جديدة","expense":"إنفاق | نفقات","no_expenses":"لا يوجد نفقات حتى الآن!","list_of_expenses":"هذه القائمة ستحتوي النفقات الخاصة بك","confirm_delete":"لن تتمكن من استرجاع هذا الإنفاق | لن تتمكن من استرجاع هذه النفقات","created_message":"تم إنشاء النفقات بنجاح","updated_message":"تم تحديث النفقات بنجاح","deleted_message":"تم حذف النفقات بنجاح","categories":{"categories_list":"قائمة الفئات","title":"العنوان","name":"الاسم","description":"الوصف","amount":"المبلغ المطلوب","actions":"العمليات","add_category":"إضافة فئمة","new_category":"فئة جديدة","category":"فئة | فئات","select_a_category":"اختر الفئة"}},"login":{"email":"البريد الإلكتروني","password":"كلمة المرور","forgot_password":"نسيت كلمة المرور؟","or_signIn_with":"أو سجل الدخول بواسطة","login":"دخول","register":"تسجيل","reset_password":"إعادة تعيين كلمة المرور","password_reset_successfully":"تم إعادة تعيين كلمة المرور بنجاح","enter_email":"أدخل البريد الالكتروني","enter_password":"أكتب كلمة المرور","retype_password":"أعد كتابة كلمة المرور","login_placeholder":"mail@example.com"},"users":{"title":"المستخدمون","users_list":"قائمة المستخدمين","name":"اسم","description":"وصف","added_on":"وأضاف في","date_of_creation":"تاريخ الخلق","action":"عمل","add_user":"إضافة مستخدم","save_user":"حفظ المستخدم","update_user":"تحديث المستخدم","user":"تحديث المستخدم","add_new_user":"إضافة مستخدم جديد","new_user":"مستخدم جديد","edit_user":"تحرير العضو","no_users":"لا مستخدمين حتى الآن!","list_of_users":"سيحتوي هذا القسم على قائمة المستخدمين.","email":"البريد الإلكتروني","phone":"هاتف","password":"كلمه السر","user_attached_message":"لا يمكن حذف عنصر قيد الاستخدام بالفعل","confirm_delete":"لن تتمكن من استرداد هذا العنصر | لن تتمكن من استرداد هؤلاء المستخدمين","created_message":"تم إنشاء المستخدم بنجاح","updated_message":"تم تحديث المستخدم بنجاح","deleted_message":"تم حذف المستخدم بنجاح | تم حذف المستخدم بنجاح"},"reports":{"title":"تقرير","from_date":"من تاريخ","to_date":"حتى تاريخ","status":"الحالة","paid":"مدفوع","unpaid":"غير مدفوع","download_pdf":"تنزيل PDF","view_pdf":"عرض PDF","update_report":"تحديث التقرير","report":"تقرير | تقارير","profit_loss":{"profit_loss":"الخسائر والأرباح","to_date":"حتى تاريخ","from_date":"من تاريخ","date_range":"اختر مدى التاريخ"},"sales":{"sales":"المبيعات","date_range":"اختر مدى التاريخ","to_date":"حتى تاريخ","from_date":"من تاريخ","report_type":"نوع التقرير"},"taxes":{"taxes":"الضرائب","to_date":"حتى تاريخ","from_date":"من تاريخ","date_range":"اختر مدى التاريخ"},"errors":{"required":"حقل مطلوب"},"invoices":{"invoice":"الفاتورة","invoice_date":"تاريخ الفاتورة","due_date":"تاريخ الاستحقاق","amount":"المبلغ المطلوب","contact_name":"اسم التواصل","status":"الحالة"},"estimates":{"estimate":"تقدير","estimate_date":"تاريخ التقدير","due_date":"مستحق بتاريخ","estimate_number":"رقم مستحق","ref_number":"رقم المرجع","amount":"المبلغ المطلوب","contact_name":"اسم التواصل","status":"الحالة"},"expenses":{"expenses":"النفقات","category":"الفئة","date":"التاريخ","amount":"المبلغ المطلوب","to_date":"حتى تاريخ","from_date":"من تاريخ","date_range":"اختر مدى التاريخ"}},"settings":{"menu_title":{"account_settings":"إعدادات الحساب","company_information":"معلومات المنشأة","customization":"تخصيص","preferences":"تفضيلات","notifications":"تنبيهات","tax_types":"نوع الضريبة","expense_category":"فئات النفقات","update_app":"تحديث النظام","backup":"دعم","file_disk":"قرص الملف","custom_fields":"الحقول المخصصة","payment_modes":"طرق الدفع","notes":"ملاحظات"},"title":"إعدادات","setting":"إعدادات | إعدادات","general":"عام","language":"اللغة","primary_currency":"العملة الرئيسية","timezone":"المنطقة الزمنية","date_format":"صيغة التاريخ","currencies":{"title":"العملات","currency":"العملة | العملات","currencies_list":"قائمة العملات","select_currency":"اختر العملة","name":"الاسم","code":"المرجع","symbol":"الرمز","precision":"الدقة","thousand_separator":"فاصل الآلاف","decimal_separator":"الفاصلة العشرية","position":"الموقع","position_of_symbol":"موقع رمز العملة","right":"يمين","left":"يسار","action":"إجراء","add_currency":"أضف عملة"},"mail":{"host":"خادم البريد","port":"منفذ البريد","driver":"مشغل البريد","secret":"سري","mailgun_secret":"الرمز السري لـ Mailgun","mailgun_domain":"المجال","mailgun_endpoint":"النهاية الطرفية لـ Mailgun","ses_secret":"SES الرمز السري","ses_key":"SES مفتاح","password":"كلمة مرور البريد الالكتروني","username":"اسم المستخدم للبريد الإلكتروني","mail_config":"إعدادات البريد الالكتروني","from_name":"اسم المرسل","from_mail":"عنوان البريد الالكتروني للمرسل","encryption":"صيغة ا لتشفير","mail_config_desc":"أدناه هو نموذج لتكوين برنامج تشغيل البريد الإلكتروني لإرسال رسائل البريد الإلكتروني من التطبيق. يمكنك أيضًا تهيئة موفري الجهات الخارجية مثل Sendgrid و SES إلخ."},"pdf":{"title":"PDF إعدادات","footer_text":"نص التذييل","pdf_layout":"اتجاه صفحة PDF"},"company_info":{"company_info":"معلومات الشركة","company_name":"اسم الشركة","company_logo":"شعار الشركة","section_description":"معلومات عن شركتك سيتم عرضها على الفواتير والتقديرات والمستندات الأخرى.","phone":"الهاتف","country":"الدولة","state":"الولاية/المنطقة","city":"المدينة","address":"العنوان","zip":"الرمز البريدي","save":"حفظ","updated_message":"تم تحديث معلومات الشركة بنجاح"},"custom_fields":{"title":"الحقول المخصصة","section_description":"قم بتخصيص فواتيرك وتقديراتك وإيصالات الدفع باستخدام الحقول الخاصة بك. تأكد من استخدام الحقول المضافة أدناه في تنسيقات العناوين في صفحة إعدادات التخصيص.","add_custom_field":"إضافة حقل مخصص","edit_custom_field":"تحرير الحقل المخصص","field_name":"اسم الحقل","label":"ضع الكلمة المناسبة","type":"نوع","name":"اسم","required":"مطلوب","placeholder":"عنصر نائب","help_text":"نص المساعدة","default_value":"القيمة الافتراضية","prefix":"اختصار","starting_number":"رقم البداية","model":"نموذج","help_text_description":"أدخل بعض النص لمساعدة المستخدمين على فهم الغرض من هذا الحقل المخصص.","suffix":"لاحقة","yes":"نعم","no":"لا","order":"طلب","custom_field_confirm_delete":"لن تتمكن من استعادة هذا الحقل المخصص","already_in_use":"الحقل المخصص قيد الاستخدام بالفعل","deleted_message":"تم حذف الحقل المخصص بنجاح","options":"خيارات","add_option":"أضف خيارات","add_another_option":"أضف خيارًا آخر","sort_in_alphabetical_order":"فرز حسب الترتيب الأبجدي","add_options_in_bulk":"أضف الخيارات بشكل مجمّع","use_predefined_options":"استخدم الخيارات المحددة مسبقًا","select_custom_date":"حدد التاريخ المخصص","select_relative_date":"حدد التاريخ النسبي","ticked_by_default":"يتم تحديده بشكل افتراضي","updated_message":"تم تحديث الحقل المخصص بنجاح","added_message":"تمت إضافة الحقل المخصص بنجاح"},"customization":{"customization":"التخصيص","save":"حفظ","addresses":{"title":"العنوان","section_description":"يمكنك ضبط عنوان إرسال فواتير العملاء وتنسيق عنوان شحن العملاء (معروض في PDF فقط).","customer_billing_address":"عنوان فواتير العميل","customer_shipping_address":"عنوان الشحن للعميل","company_address":"عنوان الشركة","insert_fields":"أضف حقل","contact":"تواصل","address":"العنوان","display_name":"الاسم الظاهر","primary_contact_name":"مسؤول التواصل الرئيسي","email":"البريد الإلكتروني","website":"موقع الإنترنت","name":"الاسم","country":"الدولة","state":"الولاية/المنطقة","city":"المدينة","company_name":"اسم الشركة","address_street_1":"عنوان الشارع 1","address_street_2":"عنوان الشارع 2","phone":"الهاتف","zip_code":"الرمز البريدي","address_setting_updated":"تم تحديث العنوان بنجاح"},"updated_message":"تم تحديث معلومات الشركة بنجاح","invoices":{"title":"الفواتير","notes":"ملاحظات","invoice_prefix":"بادئة رقم الفاتورة","default_invoice_email_body":"نص الفاتورة الافتراضي للبريد الإلكتروني","invoice_settings":"إعدادات الفاتورة","autogenerate_invoice_number":"ترقيم آلي للفاتورة","invoice_setting_description":"تعطيل الترقيم الآلي ، إذا كنت لا ترغب في إنشاء أرقام الفاتورة تلقائيًا في كل مرة تقوم فيها بإنشاء فاتورة جديدة.","enter_invoice_prefix":"أدخل بادئة رقم الفاتورة","terms_and_conditions":"الأحكام والشروط","company_address_format":"تنسيق عنوان الشركة","shipping_address_format":"تنسيق عنوان الشحن","billing_address_format":"تنسيق عنوان الفواتير","invoice_setting_updated":"تم تحديث إعداد الفاتورة بنجاح"},"estimates":{"title":"التقديرات","estimate_prefix":"بادئة رقم التقدير","default_estimate_email_body":"تقدير نص البريد الإلكتروني الافتراضي","estimate_settings":"إعدادت التقدير","autogenerate_estimate_number":"ترقيم آلي للتقدير","estimate_setting_description":"تعطيل الترقيم الآلي ، إذا كنت لا ترغب في إنشاء أرقام التقديرات تلقائيًا في كل مرة تقوم فيها بإنشاء تقدير جديد.","enter_estimate_prefix":"أدخل بادئة رقم التقدير","estimate_setting_updated":"تم تحديث إعدادات التقدير بنجاح","company_address_format":"تنسيق عنوان الشركة","billing_address_format":"تنسيق عنوان الفواتير","shipping_address_format":"تنسيق عنوان الشحن"},"payments":{"title":"المدفوعات","description":"Modes of transaction for payments","payment_prefix":"بادئة رقم الدفعة","default_payment_email_body":"نص البريد الإلكتروني للدفع الافتراضي","payment_settings":"إعدادات الدفعة","autogenerate_payment_number":"ترقيم آلي للمدفوعات","payment_setting_description":"تعطيل الترقيم الآلي ، إذا كنت لا ترغب في إنشاء أرقام الدفعة تلقائيًا في كل مرة تقوم فيها بإنشاء دفعة جديدة.","enter_payment_prefix":"أدخل بادئة رقم الدفعة","payment_setting_updated":"تم تحديث إعدادات الدفعة بنجاح","payment_modes":"طرق الدفع","add_payment_mode":"أضف وضع الدفع","edit_payment_mode":"تحرير وضع الدفع","mode_name":"اسم الوضع","payment_mode_added":"تمت إضافة وضع الدفع","payment_mode_updated":"تم تحديث وضع الدفع","payment_mode_confirm_delete":"لن تتمكن من استعادة وضع الدفع هذا","already_in_use":"وضع الدفع قيد الاستخدام بالفعل","deleted_message":"تم حذف وضع الدفع بنجاح","company_address_format":"تنسيق عنوان الشركة","from_customer_address_format":"من تنسيق عنوان العميل"},"items":{"title":"العناصر","units":"الوحدات","add_item_unit":"إضافة وحدة عنصر","edit_item_unit":"تحرير وحدة العناصر","unit_name":"إسم الوحدة","item_unit_added":"تمت إضافة وحدة العنصر","item_unit_updated":"تم تحديث وحدة العنصر","item_unit_confirm_delete":"لن تتمكن من استرداد وحدة العنصر هذه","already_in_use":"وحدة العنصر قيد الاستخدام بالفعل","deleted_message":"تم حذف وحدة العنصر بنجاح"},"notes":{"title":"ملاحظات","description":"Save time by creating notes and reusing them on your invoices, estimates & payments.","notes":"ملاحظات","type":"نوع","add_note":"اضف ملاحظة","add_new_note":"أضف ملاحظة جديدة","name":"اسم","edit_note":"تحرير مذكرة","note_added":"تمت إضافة الملاحظة","note_updated":"تم تحديث الملاحظة","note_confirm_delete":"لن تتمكن من استعادة هذه الملاحظة","already_in_use":"الملاحظة قيد الاستخدام بالفعل","deleted_message":"تم حذف الملاحظة بنجاح"}},"account_settings":{"profile_picture":"صورة الملف الشخصي","name":"الاسم","email":"البريد الإلكتروني","password":"كلمة المرور","confirm_password":"أعد كتابة كلمة المرور","account_settings":"إعدادات الجساب","save":"حفظ","section_description":"يمكنك تحديث اسمك والبريد الإلكتروني وكلمة المرور باستخدام النموذج أدناه.","updated_message":"تم تحديث إعدادات الحساب بنجاح"},"user_profile":{"name":"الاسم","email":"البريد الإلكتروني","password":"كلمة المرور","confirm_password":"أعد كتابة كلمة المرور"},"notification":{"title":"الإشعارات","email":"إرسال الإشعارات إلى","description":"ما هي إشعارات البريد الإلكتروني التي ترغب في تلقيها عندما يتغير شيء ما؟","invoice_viewed":"تم عرض الفاتورة","invoice_viewed_desc":"عندما يستعرض عميلك الفاتورة المرسلة عبر الشاشة الرئيسية.","estimate_viewed":"تم عرض التقدير","estimate_viewed_desc":"عندما يستعرض عميلك التقدير المرسلة عبر الشاشة الرئيسية.","save":"حفظ","email_save_message":"تم حفظ البريد الإلكتروني بنجاح","please_enter_email":"فضلاً أدخل البريد الإلكتروني"},"tax_types":{"title":"أنواع الضرائب","add_tax":"أضف ضريبة","edit_tax":"تحرير الضريبة","description":"يمكنك إضافة أو إزالة الضرائب كما يحلو لك. النظام يدعم الضرائب على العناصر الفردية وكذلك على الفاتورة.","add_new_tax":"إضافة ضريبة جديدة","tax_settings":"إعدادات الضريبة","tax_per_item":"ضريبة على الصنف","tax_name":"اسم الضريبة","compound_tax":"ضريبة مجمعة","percent":"نسبة مؤوية","action":"إجراء","tax_setting_description":"قم بتمكين هذا إذا كنت تريد إضافة ضرائب لعناصر الفاتورة الفردية. بشكل افتراضي ، تضاف الضرائب مباشرة إلى الفاتورة.","created_message":"تم إنشاء نوع الضريبة بنجاح","updated_message":"تم تحديث نوع الضريبة بنجاح","deleted_message":"تم حذف نوع الضريبة بنجاح","confirm_delete":"لن تتمكن من استرجاع نوع الضرية هذا","already_in_use":"ضريبة قيد الاستخدام"},"expense_category":{"title":"فئات النفقات","action":"إجراء","description":"الفئات مطلوبة لإضافة إدخالات النفقات. يمكنك إضافة أو إزالة هذه الفئات وفقًا لتفضيلاتك.","add_new_category":"إضافة فئة جديدة","add_category":"إضافة فئة","edit_category":"تحرير الفئة","category_name":"اسم الفئة","category_description":"الوصف","created_message":"تم إنشاء نوع النفقات بنجاح","deleted_message":"تم حذف نوع النفقات بنجاح","updated_message":"تم تحديث نوع النفقات بنجاح","confirm_delete":"لن تتمكن من استرجاع نوع النفقات هذا","already_in_use":"نوع قيد الاستخدام"},"preferences":{"currency":"العملة","default_language":"اللغة الافتراضية","time_zone":"المنطة الزمنية","fiscal_year":"السنة المالية","date_format":"صيغة التاريخ","discount_setting":"إعدادات الخصم","discount_per_item":"خصم على الصنف ","discount_setting_description":"قم بتمكين هذا إذا كنت تريد إضافة خصم إلى عناصر الفاتورة الفردية. بشكل افتراضي ، يتم إضافة الخصم مباشرة إلى الفاتورة.","save":"حفظ","preference":"تفضيل | تفضيلات","general_settings":"التفضيلات الافتراضية للنظام.","updated_message":"تم تحديث التفضيلات بنجاح","select_language":"اختر اللغة","select_time_zone":"اختر المنطة الزمنية","select_date_format":"Select Date Format","select_financial_year":"اختر السنة المالية"},"update_app":{"title":"تحديث النظام","description":"يمكنك تحديث النظام بسهولة عن طريق البحث عن تحديث جديد بالنقر فوق الزر أدناه","check_update":"تحقق من التحديثات","avail_update":"تحديث جديد متوفر","next_version":"النسخة الجديدة","requirements":"Requirements","update":"حدث الآن","update_progress":"قيد التحديث...","progress_text":"سوف يستغرق التحديث بضع دقائق. يرجى عدم تحديث الشاشة أو إغلاق النافذة قبل انتهاء التحديث","update_success":"تم تحديث النظام! يرجى الانتظار حتى يتم إعادة تحميل نافذة المتصفح تلقائيًا.","latest_message":"لا يوجد تحديثات متوفرة! لديك حالياً أحدث نسخة.","current_version":"النسخة الحالية","download_zip_file":"تنزيل ملف ZIP","unzipping_package":"حزمة فك الضغط","copying_files":"نسخ الملفات","running_migrations":"إدارة عمليات الترحيل","finishing_update":"تحديث التشطيب","update_failed":"فشل التحديث","update_failed_text":"آسف! فشل التحديث الخاص بك في: {step} خطوة"},"backup":{"title":"النسخ الاحتياطي | النسخ الاحتياطية","description":"النسخة الاحتياطية هي ملف مضغوط يحتوي على جميع الملفات في الدلائل التي تحددها مع تفريغ قاعدة البيانات الخاصة بك","new_backup":"إضافة نسخة احتياطية جديدة","create_backup":"انشئ نسخة احتياطية","select_backup_type":"حدد نوع النسخ الاحتياطي","backup_confirm_delete":"لن تتمكن من استعادة هذه النسخة الاحتياطية","path":"مسار","new_disk":"قرص جديد","created_at":"أنشئت في","size":"size","dropbox":"بصندوق الإسقاط","local":"محلي","healthy":"صحي","amount_of_backups":"كمية النسخ الاحتياطية","newest_backups":"أحدث النسخ الاحتياطية","used_storage":"التخزين المستخدم","select_disk":"حدد القرص","action":"عمل","deleted_message":"تم حذف النسخة الاحتياطية بنجاح","created_message":"Backup created successfully","invalid_disk_credentials":"بيانات اعتماد غير صالحة للقرص المحدد"},"disk":{"title":"قرص الملفات | أقراص الملفات","description":"بشكل افتراضي ، ستستخدم Crater القرص المحلي لحفظ النسخ الاحتياطية والأفاتار وملفات الصور الأخرى. يمكنك تكوين أكثر من برامج تشغيل قرص مثل DigitalOcean و S3 و Dropbox وفقًا لتفضيلاتك.","created_at":"أنشئت في","dropbox":"بصندوق الإسقاط","name":"اسم","driver":"سائق","disk_type":"نوع","disk_name":"اسم القرص","new_disk":"إضافة قرص جديد","filesystem_driver":"برنامج تشغيل نظام الملفات","local_driver":"سائق محلي","local_root":"الجذر المحلي","public_driver":"سائق عام","public_root":"الجذر العام","public_url":"URL العام","public_visibility":"الرؤية العامة","media_driver":"سائق وسائط","media_root":"جذر الوسائط","aws_driver":"برنامج تشغيل AWS","aws_key":"مفتاح AWS","aws_secret":"AWS Secret","aws_region":"منطقة AWS","aws_bucket":"حاوية AWS","aws_root":"AWS الجذر","do_spaces_type":"هل نوع المساحات","do_spaces_key":"مفتاح Do Spaces","do_spaces_secret":"هل المساحات سرية","do_spaces_region":"هل منطقة المساحات","do_spaces_bucket":"هل دلو المساحات","do_spaces_endpoint":"قم بعمل نقطة نهاية للمسافات","do_spaces_root":"عمل الجذر للمسافات","dropbox_type":"نوع Dropbox","dropbox_token":"رمز Dropbox","dropbox_key":"مفتاح Dropbox","dropbox_secret":"Dropbox Secret","dropbox_app":"تطبيق Dropbox","dropbox_root":"جذر Dropbox","default_driver":"برنامج التشغيل الافتراضي","is_default":"أمر افتراضي","set_default_disk":"تعيين القرص الافتراضي","success_set_default_disk":"Disk set as default successfully","save_pdf_to_disk":"حفظ ملفات PDF على القرص","disk_setting_description":"قم بتمكين هذا ، إذا كنت ترغب في حفظ نسخة من كل فاتورة ، تقدير وإيصال دفع PDF على القرص الافتراضي الخاص بك تلقائيًا. سيؤدي تشغيل هذا الخيار إلى تقليل وقت التحميل عند عرض ملفات PDF.","select_disk":"حدد القرص","disk_settings":"إعدادات القرص","confirm_delete":"Your existing files & folders in the specified disk will not be affected but your disk configuration will be deleted from Crater","action":"عمل","edit_file_disk":"Edit File Disk","success_create":"تمت إضافة القرص بنجاح","success_update":"Disk updated successfully","error":"فشل إضافة القرص","deleted_message":"File Disk deleted successfully","disk_variables_save_successfully":"تم تكوين القرص بنجاح","disk_variables_save_error":"فشل تكوين القرص.","invalid_disk_credentials":"بيانات اعتماد غير صالحة للقرص المحدد"}},"wizard":{"account_info":"معلومات الحساب","account_info_desc":"سيتم استخدام التفاصيل أدناه لإنشاء حساب المسؤول الرئيسي. كما يمكنك تغيير التفاصيل في أي وقت بعد تسجيل الدخول.","name":"الاسم","email":"البريد الإلكتروني","password":"كلمة المرور","confirm_password":"أعد كتابة كلمة المرور","save_cont":"حفظ واستمرار","company_info":"معلومات الشركة","company_info_desc":"سيتم عرض هذه المعلومات على الفواتير. لاحظ أنه يمكنك تعديل هذا لاحقًا في صفحة الإعدادات.","company_name":"اسم الشركة","company_logo":"شعار الشركة","logo_preview":"استعراض الشعار","preferences":"التفضيلات","preferences_desc":"التفضيلات الافتراضية للنظام","country":"الدولة","state":"الولاية/المنطقة","city":"المدينة","address":"العنوان","street":"العنوان 1 | العنوان 2","phone":"الهاتف","zip_code":"الرمز البريدي","go_back":"للخلف","currency":"العملة","language":"اللغة","time_zone":"المنطة الزمنية","fiscal_year":"السنة المالية","date_format":"صيغة التاريخ","from_address":"من العنوان","username":"اسم المستخدم","next":"التالي","continue":"استمرار","skip":"تخطي","database":{"database":"عنوان قاعدة البيانات","connection":"اتصال قاعدة البيانات","host":"خادم قاعدة البيانات","port":"منفذ قاعدة البيانات","password":"كلمة مرور قاعدة البيانات","app_url":"عنوان الإنترنت للنظام","app_domain":"App Domain","username":"اسم المستخدم لقاعدة البيانات","db_name":"سم قاعدة البيانات","db_path":"Database Path","desc":"قم بإنشاء قاعدة بيانات على الخادم الخاص بك وتعيين بيانات الاعتماد باستخدام النموذج أدناه."},"permissions":{"permissions":"الأذونات","permission_confirm_title":"هل أنت متأكد من الاستمرار؟","permission_confirm_desc":"فشل فحص أذونات المجلد","permission_desc":"فيما يلي قائمة أذونات المجلد المطلوبة حتى يعمل التطبيق. في حالة فشل فحص الإذن ، تأكد من تحديث أذونات المجلد."},"mail":{"host":"خادم البريد","port":"منفذ البريد","driver":"مشغل البريد","secret":"سري","mailgun_secret":"الرمز السري لـ Mailgun","mailgun_domain":"المجال","mailgun_endpoint":"النهاية الطرفية لـ Mailgun","ses_secret":"SES الرمز السري","ses_key":"SES مفتاح","password":"كلمة مرور البريد الالكتروني","username":"اسم المستخدم للبريد الإلكتروني","mail_config":"إعدادات البريد الالكتروني","from_name":"اسم المرسل","from_mail":"عنوان البريد الالكتروني للمرسل","encryption":"صيغة ا لتشفير","mail_config_desc":"أدناه هو نموذج لتكوين برنامج تشغيل البريد الإلكتروني لإرسال رسائل البريد الإلكتروني من التطبيق. يمكنك أيضًا تهيئة موفري الجهات الخارجية مثل Sendgrid و SES إلخ."},"req":{"system_req":"متطلبات النظام","php_req_version":"Php (النسخة المطلوبة {version} بحد أدنى)","check_req":"فحص متطلبات النظام","system_req_desc":"يحتوي النظام على بعض متطلبات الخادم. تأكد من أن خادمك لديه نسخة php المطلوبة وجميع الامتدادات المذكورة أدناه."},"errors":{"migrate_failed":"فشل إنشاء الجداول","database_variables_save_error":"غير قادر على الاتصال بقاعدة البيانات باستخدام القيم المقدمة.","mail_variables_save_error":"فشل تكوين البريد الإلكتروني.","connection_failed":"فشل اتصال قاعدة البيانات","database_should_be_empty":"يجب أن تكون قاعدة البيانات فارغة"},"success":{"mail_variables_save_successfully":"تم تكوين البريد الإلكتروني بنجاح","database_variables_save_successfully":"تم تكوين قاعدة البيانات بنجاح."}},"layout_login":{"copyright_crater":"حقوق الطبع والنشر @ كريتر - 2020","super_simple_invoicing":"فوترة سهلة ومبسطة للغاية","for_freelancer":"للمبرمجين المستقلين","small_businesses":"والأعال الصغيرة ","crater_help":"كريتر يساعدك على تتبع النفقات وتسجيل المدفوعات وإنشاء","invoices_and_estimates":"الفواتير والتقديرات مع إمكانية اختيار قوالب متعددة."},"validation":{"invalid_phone":"رقم الهاتف غير صحيح","invalid_url":"عنوان انترنت غير صحيح (مثال: http://www.crater.com)","invalid_domain_url":"عنوان انترنت غير صحيح (مثال: crater.com)","required":"حقل مطلوب","email_incorrect":"بريد الكتروني غير صحيح.","email_already_taken":"هذا البريد الالكتروني مستخدم مسبقاً","email_does_not_exist":"لا يوجد كستخدم بهذا البريد الالكتروني","item_unit_already_taken":"وحدة البند قد اتخذت بالفعل","payment_mode_already_taken":"لقد تم بالفعل أخذ طريقة الدفع","send_reset_link":"أرسال رابط استعادة كلمة المرور","not_yet":"ليس بعد؟ أعد الإرسال الآن..","password_min_length":"كلمة المرور يجب أن تتكون من {count} أحرف على الأقل","name_min_length":"الاسم يجب أن يتكون من {count} أحرف على الأقل","enter_valid_tax_rate":"أدخل معدل الضريبة بشكل صحيح","numbers_only":"أرقام فقط.","characters_only":"حروف فقط.","password_incorrect":"يجب أن تكون كلمات المرور متطابقة","password_length":"يجب أن تكون كلمة المرور بطول {count} حرف.","qty_must_greater_than_zero":"الكمية يجب أن تكون أكبر من صفر.","price_greater_than_zero":"السعر يجب أن يكون أكبر من صفر.","payment_greater_than_zero":"الدفعة يجب أن تكون أكبر من صفر.","payment_greater_than_due_amount":"مبلغ الدفعة أكثر من المبلغ المستحق لهذه الفاتورة.","quantity_maxlength":"يجب ألا تزيد الكمية عن 20 رقماً.","price_maxlength":"يجب ألا يزيد السعر عن 20 رقماً.","price_minvalue":"يجب أن يكون السعر أكبر من صفر.","amount_maxlength":"يجب ألا يزيد المبلغ عن 20 رقماً.","amount_minvalue":"يجب أن يكون المبلغ أكبر من صفر.","description_maxlength":"يجب ألا يزيد الوصف عن 255 حرفاً.","subject_maxlength":"Subject should not be greater than 100 characters.","message_maxlength":"Message should not be greater than 255 characters.","maximum_options_error":"الحد الأعلى هو {max} خيارات. قم بإزالة أحد الخيارات لتحديد خيار آخر.","notes_maxlength":"يجب ألا يزيد حجم الملاحظات عن 255 حرفاً.","address_maxlength":"يجب ألا يزيد العنوان عن 255 حرفاً.","ref_number_maxlength":"يجب ألا يزيد الرقم المرجعي عن 255 حرفاً.","prefix_maxlength":"يجب ألا تزيد البادئة عن 5 أحرف.","something_went_wrong":"خطأ غير معروف!"},"pdf_estimate_label":"تقدير","pdf_estimate_number":"رقم تقدير","pdf_estimate_date":"تاريخ التقدير","pdf_estimate_expire_date":"Expiry date","pdf_invoice_label":"الفاتورة","pdf_invoice_number":"رقم الفاتورة","pdf_invoice_date":"تاريخ الفاتورة","pdf_invoice_due_date":"Due date","pdf_notes":"ملاحظات","pdf_items_label":"الأصناف","pdf_quantity_label":"الكمية","pdf_price_label":"السعر","pdf_discount_label":"الخصم","pdf_amount_label":"المبلغ المطلوب","pdf_subtotal":"Subtotal","pdf_total":"الإجمالي","pdf_payment_receipt_label":"PAYMENT RECEIPT","pdf_payment_date":"Payment Date","pdf_payment_number":"رقم الدفعة","pdf_payment_mode":"نوع الدفعة","pdf_payment_amount_received_label":"Amount Received","pdf_expense_report_label":"EXPENSES REPORT","pdf_total_expenses_label":"TOTAL EXPENSE","pdf_profit_loss_label":"PROFIT & LOSS REPORT","pdf_income_label":"INCOME","pdf_net_profit_label":"NET PROFIT","pdf_customer_sales_report":"Sales Report: By Customer","pdf_total_sales_label":"TOTAL SALES","pdf_item_sales_label":"Sales Report: By Item","pdf_tax_report_label":"TAX REPORT","pdf_total_tax_label":"TOTAL TAX","pdf_tax_types_label":"أنواع الضرائب","pdf_expenses_label":"النفقات","pdf_bill_to":"مطلوب من,","pdf_ship_to":"يشحن إلى,","pdf_received_from":"Received from:"}')},U6jy:function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var a in r)n.call(r,a)&&(e[a]=r[a])}return e};var n=Object.prototype.hasOwnProperty},UDhR: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("wd/R"))},"UNi/":function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},URgk:function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,a=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(a.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(a.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("YBdB"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("yLpj"))},USCx:function(e,t,n){!function(e){"use strict";e.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],weekdaysShort:["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],weekdaysMin:["Do","Lu","Má","Cé","Dé","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"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("wd/R"))},Uav6:function(e,t,n){"use strict";t.a={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"}}},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-no-wrap",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-no-wrap",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"}}}},Ugjx:function(e,t,n){"use strict";t.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)}}},UnBK:function(e,t,n){"use strict";var r=n("xTJ+"),a=n("xAGQ"),i=n("Lmem"),o=n("JEQr");function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=a(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return s(e),t.data=a(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=a(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},UpQW: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("wd/R"))},Ur1D: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("wd/R"))},V2x9: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("wd/R"))},VaNO:function(e,t){e.exports=function(e){return this.__data__.has(e)}},Vclq:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n("wd/R"))},VlXo:function(e){e.exports=JSON.parse('{"navigation":{"dashboard":"Informācijas panelis","customers":"Klienti","items":"Preces","invoices":"Rēķini","expenses":"Izdevumi","estimates":"Aprēķini","payments":"Maksājumi","reports":"Atskaites","settings":"Iestatījumi","logout":"Iziet","users":"Lietotāji"},"general":{"add_company":"Pievienot uzņēmumu","view_pdf":"Apskatīt PDF","copy_pdf_url":"Kopēt PDF Url","download_pdf":"Lejupielādēt PDF","save":"Saglabāt","create":"Izveidot","cancel":"Atcelt","update":"Atjaunināt","deselect":"Atcelt iezīmēšanu","download":"Lejupielādēt","from_date":"Datums no","to_date":"Datums līdz","from":"No","to":"Kam","sort_by":"Kārtot pēc","ascending":"Augošā secībā","descending":"Dilstošā secībā","subject":"Temats","body":"Saturs","message":"Ziņojums","send":"Nosūtīt","go_back":"Atpakaļ","back_to_login":"Atpakaļ uz autorizāciju?","home":"Sākums","filter":"Filtrēt","delete":"Dzēst","edit":"Labot","view":"Skatīt","add_new_item":"Pievienot jaunu","clear_all":"Notīrīt visu","showing":"Rāda","of":"no","actions":"Darbības","subtotal":"KOPĀ","discount":"ATLAIDE","fixed":"Fiksēts","percentage":"Procenti","tax":"Nodoklis","total_amount":"KOPĀ APMAKSAI","bill_to":"Saņēmējs","ship_to":"Piegādāt uz","due":"Due","draft":"Melnraksts","sent":"Nosūtīts","all":"Visi","select_all":"Iezīmēt visu","choose_file":"Speid šeit, lai izvēlētos failu","choose_template":"Izvēlaties sagatavi","choose":"Izvēlies","remove":"Dzēst","powered_by":"Powered by","bytefury":"Bytefury","select_a_status":"Izvēlieties statusu","select_a_tax":"Izvēlēties nodokli","search":"Meklēt","are_you_sure":"Vai esat pārliecināts?","list_is_empty":"Saraksts ir tukšs.","no_tax_found":"Nodoklis nav atrasts!","four_zero_four":"404","you_got_lost":"Opā! Esi apmaldījies!","go_home":"Uz Sākumu","test_mail_conf":"Jūsu e-pasta uzstādījumu tests","send_mail_successfully":"Veiksmīgi nosūtīts","setting_updated":"Iestatījumi tika veiksmīgi atjaunināti","select_state":"Izvēlieties reģionu","select_country":"Izvēlēties valsti","select_city":"Izvēlieties pilsētu","street_1":"Adrese 1","street_2":"Adrese 2","action_failed":"Darbība neizdevās","retry":"Atkārtot","choose_note":"Izvēlieties piezīmi","no_note_found":"Piezīmes nav atrastas","insert_note":"Ievietot piezīmi"},"dashboard":{"select_year":"Izvēlieties gadu","cards":{"due_amount":"Apmaksas summa","customers":"Klienti","invoices":"Rēķini","estimates":"Aprēķini"},"chart_info":{"total_sales":"Pārdotais","total_receipts":"Čeki","total_expense":"Izdevumi","net_income":"Peļņa","year":"Izvēlieties gadu"},"weekly_invoices":{"title":"Nedēļas rēķini"},"monthly_chart":{"title":"Pārdotais un Izdevumi"},"recent_invoices_card":{"title":"Pienākošie rēķini","due_on":"Termiņš","customer":"Klients","amount_due":"Apmaksas summa","actions":"Darbības","view_all":"Skatīt visus"},"recent_estimate_card":{"title":"Nesenie aprēķini","date":"Datums","customer":"Klients","amount_due":"Apmaksas summa","actions":"Darbības","view_all":"Skatīt visus"}},"tax_types":{"name":"Nosaukums","description":"Apraksts","percent":"Procenti","compound_tax":"Compound Tax"},"global_search":{"search":"Meklēt...","customers":"Klienti","users":"Lietotāji","no_results_found":"Nav atbilstošu rezultātu"},"customers":{"title":"Klienti","add_customer":"Pievienot klientu","contacts_list":"Klientu saraksts","name":"Vārds","mail":"Pasts","statement":"Statement","display_name":"Nosaukums","primary_contact_name":"Galvenā kontakta vārds","contact_name":"Kontaktpersonas vārds","amount_due":"Kopā","email":"E-pasts","address":"Adrese","phone":"Telefona numurs","website":"Mājaslapa","overview":"Pārskats","enable_portal":"Aktivizēt portālu","country":"Valsts","state":"Reģions","city":"Pilsēta","zip_code":"Pasta indekss","added_on":"Pievienots","action":"Darbība","password":"Parole","street_number":"Adrese","primary_currency":"Primārā valūta","description":"Apraksts","add_new_customer":"Pievienot jaunu klientu","save_customer":"Saglabāt klientu","update_customer":"Atjaunināt klientu","customer":"Klients | Klienti","new_customer":"Jauns klients","edit_customer":"Rediģēt klientu","basic_info":"Pamatinformācija","billing_address":"Juridiskā adrese","shipping_address":"Piegādes adrese","copy_billing_address":"Kopēt no juridiskās adreses","no_customers":"Pagaidām nav klientu!","no_customers_found":"Klienti netika atrasti!","list_of_customers":"Šajā sadaļā būs klientu saraksts.","primary_display_name":"Klienta nosaukums","select_currency":"Izvēlieties valūtu","select_a_customer":"Izvēlēties klientu","type_or_click":"Rakstīt vai spiest, lai izvēlētos","new_transaction":"Jauns darījums","no_matching_customers":"Netika atrasts neviens klients!","phone_number":"Telefona numurs","create_date":"Izveidošanas datums","confirm_delete":"Jūs nevarēsit atgūt šo klientu un visus saistītos rēķinus, aprēķinus un maksājumus.","created_message":"Klients izveidots veiksmīgi","updated_message":"Klients atjaunināts veiksmīgi","deleted_message":"Klients veiksmīgi izdzēsts"},"items":{"title":"Preces","items_list":"Preču saraksts","name":"Nosaukums","unit":"Vienība","description":"Apraksts","added_on":"Pievienots","price":"Cena","date_of_creation":"Izveidošanas datums","action":"Darbība","add_item":"Pievienot","save_item":"Saglabāt","update_item":"Atjaunināt","item":"Prece | Preces","add_new_item":"Pievienot jaunu preci","new_item":"Jauna prece","edit_item":"Rediģēt preci","no_items":"Nav preču!","list_of_items":"Šajā sadaļā būs preču/pakalpojumu saraksts.","select_a_unit":"atlasiet vienību","taxes":"Nodokļi","item_attached_message":"Nevar dzēst preci, kura tiek izmantota","confirm_delete":"Jūs nevarēsiet atgūt šo preci","created_message":"Prece izveidota veiksmīgi","updated_message":"Prece atjaunināta veiksmīgi","deleted_message":"Prece veiksmīgi izdzēsta"},"estimates":{"title":"Aprēķini","estimate":"Aprēķins | Aprēķini","estimates_list":"Aprēķinu saraksts","days":"{days} Dienas","months":"{months} Mēnesis","years":"{years} Gads","all":"Visi","paid":"Apmaksāts","unpaid":"Neapmaksāts","customer":"KLIENTS","ref_no":"REF NR.","number":"NUMURS","amount_due":"Summa apmaksai","partially_paid":"Daļēji apmaksāts","total":"Kopā","discount":"Atlaide","sub_total":"Starpsumma","estimate_number":"Aprēķina numurs","ref_number":"Ref numurs","contact":"Kontakti","add_item":"Pievienot preci","date":"Datums","due_date":"Apmaksas termiņš","expiry_date":"Termiņa beigu datums","status":"Status","add_tax":"Pievienot nodokli","amount":"Summa","action":"Darbība","notes":"Piezīmes","tax":"Nodoklis","estimate_template":"Sagatave","convert_to_invoice":"Pārveidot par rēķinu","mark_as_sent":"Atzīmēt kā nosūtītu","send_estimate":"Nosūtīt aprēķinu","resend_estimate":"Atkārtoti nosūtīt aprēķinu","record_payment":"Izveidot maksājumu","add_estimate":"Pievienot aprēķinu","save_estimate":"Saglabāt aprēķinu","confirm_conversion":"Šis aprēķins tiks izmantots, lai izveidotu jaunu rēķinu.","conversion_message":"Rēķins izveidots veiksmīgi","confirm_send_estimate":"Šis aprēķins tiks nosūtīts klientam e-pastā","confirm_mark_as_sent":"Aprēķins tiks atzīmēts kā nosūtīts","confirm_mark_as_accepted":"Aprēķins tiks atzīmēts kā apstiprināts","confirm_mark_as_rejected":"Aprēķins tiks atzīmēts kā noraidīts","no_matching_estimates":"Netika atrasts neviens aprēķins!","mark_as_sent_successfully":"Aprēķins atzīmēts kā veiksmīgi nosūtīts","send_estimate_successfully":"Aprēķins veiksmīgi nosūtīts","errors":{"required":"Šis lauks ir obligāts"},"accepted":"Apstiprināts","sent":"Nosūtīts","draft":"Melnraksts","declined":"Noraidīts","new_estimate":"Jauns aprēķins","add_new_estimate":"Pievienot jaunu aprēķinu","update_Estimate":"Atjaunināt aprēķinu","edit_estimate":"Labot aprēķinu","items":"preces","Estimate":"Aprēķins | Aprēķini","add_new_tax":"Pievienot jaunu nodokli","no_estimates":"Vēl nav aprēķinu!","list_of_estimates":"Šajā sadaļā būs aprēķinu saraksts.","mark_as_rejected":"Atzīmēt kā noraidītu","mark_as_accepted":"Atzīmēt kā apstiprinātu","marked_as_accepted_message":"Aprēķins atzīmēts kā apstiprināts","marked_as_rejected_message":"Aprēķins atzīmēts kā noraidīts","confirm_delete":"Jūs nevarēsiet atgūt šo aprēķinu | Jūs nevarēsiet atgūt šo aprēķinus","created_message":"Aprēķins izveidots veiksmīgi","updated_message":"Aprēķins atjaunināts veiksmīgi","deleted_message":"Aprēķins veiksmīgi izdzēsts | Aprēķini veiksmīgi izdzēsti","user_email_does_not_exist":"Lietotāja e-pasts neeksistē","something_went_wrong":"kaut kas nogāja greizi","item":{"title":"Preces nosaukums","description":"Apraksts","quantity":"Daudzums","price":"Cena","discount":"Atlaide","total":"Kopā","total_discount":"Kopējā atlaide","sub_total":"Starpsumma","tax":"Nodoklis","amount":"Summa","select_an_item":"Rakstīt vai spiest, lai izvēlētos","type_item_description":"Ievadiet preces/pakalpojuma aprakstu (nav obligāti)"}},"invoices":{"title":"Rēķini","invoices_list":"Rēķinu saraksts","days":"{days} Dienas","months":"{months} Mēnesis","years":"{years} Gads","all":"Visi","paid":"Apmaksāts","unpaid":"Neapmaksāts","customer":"KLIENTS","paid_status":"APMAKSAS STATUS","ref_no":"REF NR.","number":"NUMURS","amount_due":"SUMMA APMAKSAI","partially_paid":"Daļēji apmaksāts","total":"Kopā","discount":"Atlaide","sub_total":"Starpsumma","invoice":"Rēķins | Rēķini","invoice_number":"Rēķina numurs","ref_number":"Ref numurs","contact":"Kontakti","add_item":"Pievienot preci","date":"Datums","due_date":"Apmaksas termiņš","status":"Status","add_tax":"Pievienot nodokli","amount":"Summa","action":"Darbība","notes":"Piezīmes","view":"Skatīt","send_invoice":"Nosūtīt rēķinu","resend_invoice":"Nosūtīt rēķinu atkārtoti","invoice_template":"Rēķina sagatave","template":"Sagatave","mark_as_sent":"Atzīmēt kā nosūtītu","confirm_send_invoice":"Šis rēķins tiks nosūtīts klientam e-pastā","invoice_mark_as_sent":"Rēķins tiks atzīmēts kā nosūtīts","confirm_send":"Šis rēķins tiks nosūtīts klientam e-pastā","invoice_date":"Rēķina datums","record_payment":"Izveidot maksājumu","add_new_invoice":"Jauns rēķins","update_expense":"Atjaunināt izdevumu","edit_invoice":"Rediģēt rēķinu","new_invoice":"Jauns rēķins","save_invoice":"Saglabāt rēķinu","update_invoice":"Atjaunināt rēķinu","add_new_tax":"Pievienot jaunu nodokli","no_invoices":"Vēl nav rēķinu!","list_of_invoices":"Šajā sadaļā būs rēķinu saraksts.","select_invoice":"Izvēlaties rēķinu","no_matching_invoices":"Netika atrasts neviens rēķins!","mark_as_sent_successfully":"Rēķins atzīmēts kā veiksmīgi nosūtīts","send_invoice_successfully":"Rēķins ir veiksmīgi nosūtīts","cloned_successfully":"Rēķins ir veiksmīgi nokopēts","clone_invoice":"Kopēt rēķinu","confirm_clone":"Šis rēķins tiks nokopēts kā jauns rēķins","item":{"title":"Preces nosaukums","description":"Apraksts","quantity":"Daudzums","price":"Cena","discount":"Atlaide","total":"Kopā","total_discount":"Kopējā atlaide","sub_total":"Starpsumma","tax":"Nodoklis","amount":"Summa","select_an_item":"Rakstīt vai spiest, lai izvēlētos","type_item_description":"Ievadiet preces/pakalpojuma aprakstu (nav obligāti)"},"payment_attached_message":"Vienam no atzīmētajiem rēķiniem jau ir pievienots maksājums. Pārliecinieties, ka pievienoti maksājumi ir izdzēsti","confirm_delete":"Jūs nevarēsiet atgūt šo rēķinu | Jūs nevarēsiet atgūt šos rēķinus","created_message":"Rēķins izveidots veiksmīgi","updated_message":"Rēķins ir veiksmīgi atjaunināts","deleted_message":"Rēķins veiksmīgi izdzēsts | Rēķini veiksmīgi izdzēsti","marked_as_sent_message":"Rēķins atzīmēts kā veiksmīgi nosūtīts","user_email_does_not_exist":"Lietotāja e-pasts neeksistē","something_went_wrong":"kaut kas nogāja greizi","invalid_due_amount_message":"Rēķina kopējā summa nevar būt mazāka par kopējo apmaksāto summu. Lūdzu atjauniniet rēķinu vai dzēsiet piesaistītos maksājumus, lai turpinātu."},"credit_notes":{"title":"Credit Notes","credit_notes_list":"Credit Notes List","credit_notes":"Credit Notes","contact":"Kontakti","date":"Datums","amount":"Summa","action":"Darbība","credit_number":"Credit Number","notes":"Piezīmes","confirm_delete":"Do you want to delete this credit note?","item":{"title":"Vienuma nosaukums","description":"Apraksts","quantity":"Daudzums","price":"Cena","discount":"Atlaide","total":"Kopā","total_discount":"Kopējā atlaide","sub_total":"Starpsumma","tax":"Nodoklis"}},"payments":{"title":"Maksājumi","payments_list":"Maksājumu saraksts","record_payment":"Izveidot maksājumu","customer":"Klients","date":"Datums","amount":"Summa","action":"Darbība","payment_number":"Maksājuma numurs","payment_mode":"Apmaksas veids","invoice":"Rēķins","note":"Piezīme","add_payment":"Pievienot maksājumu","new_payment":"Jauns maksājums","edit_payment":"Labot maksājumu","view_payment":"Skatīt maksājumu","add_new_payment":"Pievienot jaunu maksājumu","send_payment_receipt":"Nosūtīt maksājuma izdruku","send_payment":"Nosūtīt maksājumu","save_payment":"Saglabāt maksājumu","update_payment":"Labot maksājumu","payment":"Maksājums | Maksājumi","no_payments":"Nav pievienotu maksājumu!","no_matching_payments":"Netika atrasts neviens maksājums!","list_of_payments":"Šajā sadaļā būs maksājumu saraksts.","select_payment_mode":"Izvēlēties maksājuma veidu","confirm_mark_as_sent":"Aprēķins tiks atzīmēts kā nosūtīts","confirm_send_payment":"Šis maksājums tiks nosūtīts klientam e-pastā","send_payment_successfully":"Maksājums veiksmīgi nosūtīts","user_email_does_not_exist":"Lietotāja e-pasts neeksistē","something_went_wrong":"kaut kas nogāja greizi","confirm_delete":"Jūs nevarēsiet atgūt šo maksājumu | Jūs nevarēsiet atgūt šos maksājumus","created_message":"Maksājums veiksmīgi izveidots","updated_message":"Maksājums veiksmīgi labots","deleted_message":"Maksājums veiksmīgi izdzēsts | Maksājumi veiksmīgi izdzēsti","invalid_amount_message":"Maksājuma summa nav pareiza"},"expenses":{"title":"Izdevumi","expenses_list":"Izdevumu saraksts","select_a_customer":"Izvēlēties klientu","expense_title":"Nosaukums","customer":"Klients","contact":"Kontakti","category":"Kategorija","from_date":"Datums no","to_date":"Datums līdz","expense_date":"Datums","description":"Apraksts","receipt":"Čeks","amount":"Summa","action":"Darbība","note":"Piezīme","category_id":"Kategorijas Id","date":"Datums","add_expense":"Pievienot izdevumu","add_new_expense":"Pievienot jaunu izdevumu","save_expense":"Saglabāt izdevumu","update_expense":"Atjaunināt izdevumu","download_receipt":"Lejupielādēt čeku","edit_expense":"Labot izdevumu","new_expense":"Jauns izdevums","expense":"Izdevums | Izdevumi","no_expenses":"Vēl nav izdevumu!","list_of_expenses":"Šajā sadaļā būs izdevumu saraksts.","confirm_delete":"Jūs nevarēsiet atgūt šo izdevumu | Jūs nevarēsiet atgūt šos izdevumus","created_message":"Izdevums izveidots veiksmīgi","updated_message":"Izdevums atjaunināts veiksmīgi","deleted_message":"Izdevums veiksmīgi izdzēsts | Izdevumi veiksmīgi izdzēsti","categories":{"categories_list":"Kategoriju saraksts","title":"Nosaukums","name":"Vārds","description":"Apraksts","amount":"Summa","actions":"Darbības","add_category":"Pievienot kategoriju","new_category":"Jauna Kategorija","category":"Kategorija | Kategorijas","select_a_category":"Izvēlieties kategoriju"}},"login":{"email":"E-pasts","password":"Parole","forgot_password":"Aizmirsi paroli?","or_signIn_with":"vai pierakstīties ar","login":"Ielogoties","register":"Reģistrēties","reset_password":"Atjaunot paroli","password_reset_successfully":"Parole atjaunota veiksmīgi","enter_email":"Ievadiet e-pastu","enter_password":"Ievadiet paroli","retype_password":"Atkārtoti ievadiet paroli","login_placeholder":"epasts@piemers.lv"},"users":{"title":"Lietotāji","users_list":"Lietotāju saraksts","name":"Vārds","description":"Apraksts","added_on":"Pievienots","date_of_creation":"Izveidošanas datums","action":"Darbība","add_user":"Pievienot lietotāju","save_user":"Saglabāt lietotāju","update_user":"Atjaunināt lietotāju","user":"Lietotājs | Lietotāji","add_new_user":"Pievienot jaunu lietotāju","new_user":"Jauns lietotājs","edit_user":"Rediģēt lietotāju","no_users":"Pagaidām nav lietotāju!","list_of_users":"Šajā sadaļā būs lietotāju saraksts.","email":"E-pasts","phone":"Telefona numurs","password":"Parole","user_attached_message":"Nevar dzēst preci, kura tiek izmantota","confirm_delete":"Jūs nevarēsiet atgūt šo lietotāju | Jūs nevarēsiet atgūt šos lietotājus","created_message":"Lietotājs veiksmīgi izveidots","updated_message":"Lietotājs veiksmīgi labots","deleted_message":"Lietotājs veiksmīgi izdzēsts"},"reports":{"title":"Atskaite","from_date":"Datums no","to_date":"Datums līdz","status":"Status","paid":"Apmaksāts","unpaid":"Neapmaksāts","download_pdf":"Lejupielādēt PDF","view_pdf":"Apskatīt PDF","update_report":"Labot atskaiti","report":"Atskaite | Atskaites","profit_loss":{"profit_loss":"Peļņa & Zaudējumi","to_date":"Datums līdz","from_date":"Datums no","date_range":"Izvēlēties datumus"},"sales":{"sales":"Pārdotais","date_range":"Izvēlēties datumus","to_date":"Datums līdz","from_date":"Datums no","report_type":"Atskaites veids"},"taxes":{"taxes":"Nodokļi","to_date":"Datums līdz","from_date":"Datums no","date_range":"Izvēlēties datumus"},"errors":{"required":"Šis lauks ir obligāts"},"invoices":{"invoice":"Rēķins","invoice_date":"Rēķina datums","due_date":"Apmaksas termiņš","amount":"Summa","contact_name":"Kontaktpersonas vārds","status":"Status"},"estimates":{"estimate":"Aprēķins","estimate_date":"Aprēķina datums","due_date":"Termiņš","estimate_number":"Aprēķina numurs","ref_number":"Ref numurs","amount":"Summa","contact_name":"Kontaktpersonas vārds","status":"Status"},"expenses":{"expenses":"Izdevumi","category":"Kategorija","date":"Datums","amount":"Summa","to_date":"Datums līdz","from_date":"Datums no","date_range":"Izvēlēties datumus"}},"settings":{"menu_title":{"account_settings":"Konta iestatījumi","company_information":"Uzņēmuma informācija","customization":"Pielāgošana","preferences":"Iestatījumi","notifications":"Paziņojumi","tax_types":"Nodokļu veidi","expense_category":"Izdevumu kategorijas","update_app":"Atjaunināt App","backup":"Rezerves kopija","file_disk":"Disks","custom_fields":"Pielāgotie lauki","payment_modes":"Apmaksas veidi","notes":"Piezīmes"},"title":"Iestatījumi","setting":"Iestatījumi | Iestatījumi","general":"Vispārīgi","language":"Valoda","primary_currency":"Primārā valūta","timezone":"Laika josla","date_format":"Datuma formāts","currencies":{"title":"Valūtas","currency":"Valūta | Valūtas","currencies_list":"Valūtu saraksts","select_currency":"Izvēleties valūtu","name":"Nosaukums","code":"Kods","symbol":"Simbols","precision":"Precizitāte","thousand_separator":"Tūkstošu atdalītājs","decimal_separator":"Decimāldaļu atdalītājs","position":"Pozīcija","position_of_symbol":"Pozīcijas simbols","right":"Pa labi","left":"Pa kreisi","action":"Darbība","add_currency":"Pievienot valūtu"},"mail":{"host":"E-pasta serveris","port":"E-pasta ports","driver":"E-pasta draiveris","secret":"Secret","mailgun_secret":"Mailgun Secret","mailgun_domain":"Domēns","mailgun_endpoint":"Mailgun Endpoint","ses_secret":"SES Secret","ses_key":"SES Key","password":"E-pasta parole","username":"E-pasta lietotājvārds","mail_config":"E-pasta konfigurācija","from_name":"E-pasts no","from_mail":"E-pasta adrese no kuras sūtīt","encryption":"E-pasta šifrēšana","mail_config_desc":"Zemāk ir e-pasta konfigurēšanas forma. Jūs varat konfigurēt arī trešās puses servisus kā Sendgrid, SES u.c."},"pdf":{"title":"PDF uzstādījumi","footer_text":"Kājenes teksts","pdf_layout":"PDF izkārtojums"},"company_info":{"company_info":"Uzņēmuma informācija","company_name":"Uzņēmuma nosaukums","company_logo":"Uzņēmuma logo","section_description":"Informācija par uzņēmumu kura tiks uzrādīta rēķinos, aprēķinos un citos dokumentos kurus veidosiet Crater sistēmā.","phone":"Telefona numurs","country":"Valsts","state":"Reģions","city":"Pilsēta","address":"Adrese","zip":"Pasta indekss","save":"Saglabāt","updated_message":"Uzņēmuma informācija veiksmīgi saglabāta"},"custom_fields":{"title":"Pielāgotie lauki","section_description":"Customize your Invoices, Estimates & Payment Receipts with your own fields. Make sure to use the below added fields on the address formats on Customization settings page.","add_custom_field":"Add Custom Field","edit_custom_field":"Edit Custom Field","field_name":"Field Name","label":"Label","type":"Type","name":"Name","required":"Required","placeholder":"Placeholder","help_text":"Help Text","default_value":"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":"pielāgošana","save":"Saglabāt","addresses":{"title":"Adreses","section_description":"Jūs varat pielāgot klienta juridiskās adreses un piegādes adreses formātu. (Uzrādās PDF izdrukā). ","customer_billing_address":"Klienta norēķinu adrese","customer_shipping_address":"Klienta piegādes adrese","company_address":"Uzņēmuma adrese","insert_fields":"Pievienot lauku","contact":"Kontakti","address":"Adrese","display_name":"Nosaukums","primary_contact_name":"Galvenā kontakta vārds","email":"E-pasts","website":"Mājaslapa","name":"Nosaukums","country":"Valsts","state":"Reģions","city":"Pilsēta","company_name":"Uzņēmuma nosaukums","address_street_1":"Adrese 1","address_street_2":"Adrese 2","phone":"Telefona numurs","zip_code":"Pasta indekss","address_setting_updated":"Iestatījumi tika veiksmīgi atjaunināti"},"updated_message":"Uzņēmuma informācija veiksmīgi saglabāta","invoices":{"title":"Rēķini","notes":"Piezīmes","invoice_prefix":"Rēķina prefikss","default_invoice_email_body":"Default Invoice Email Body","invoice_settings":"Invoice Settings","autogenerate_invoice_number":"Automātiski ģenerēt rēķina numuru","invoice_setting_description":"Atspējojiet, ja nevēlaties automātiski ģenerēt rēķinu numurus katru reizi, kad izveidojat jaunu rēķinu.","enter_invoice_prefix":"Ievadiet rēķina prefiksu","terms_and_conditions":"Lietošanas noteikumi","company_address_format":"Uzņēmuma adreses formāts","shipping_address_format":"Piegādes adreses formāts","billing_address_format":"Maksātāja / Uzņēmuma adreses formāts","invoice_setting_updated":"Rēķina iestatījumi ir veiksmīgi atjaunināti"},"estimates":{"title":"Aprēķini","estimate_prefix":"Aprēķinu prefikss","default_estimate_email_body":"Noklusējamais Aprēķina e-pasta saturs","estimate_settings":"Aprēķinu iestatījumi","autogenerate_estimate_number":"Automātiski ģenerēt Aprēķina numuru","estimate_setting_description":"Atspējojiet, ja nevēlaties automātiski ģenerēt Aprēķinu numurus katru reizi, kad izveidojat jaunu Aprēķinu.","enter_estimate_prefix":"Ievadiet Aprēķina prefiksu","estimate_setting_updated":"Aprēķina iestatījumi ir veiksmīgi atjaunināti","company_address_format":"Uzņēmuma adreses formāts","billing_address_format":"Maksātāja / Uzņēmuma adreses formāts","shipping_address_format":"Piegādes adreses formāts"},"payments":{"title":"Maksājumi","description":"Pārskaitījumu veidi, maksājumiem","payment_prefix":"Maksājuma prefikss","default_payment_email_body":"Noklusējamais Maksājuma e-pasta saturs","payment_settings":"Maksājumu iestatījumi","autogenerate_payment_number":"Automātiski ģenerēt Maksājuma numuru","payment_setting_description":"Atspējojiet, ja nevēlaties automātiski ģenerēt Maksājuma numurus katru reizi, kad izveidojat jaunu Maksājumu.","enter_payment_prefix":"Ievadiet Maksājuma prefiksu","payment_setting_updated":"Maksājumu iestatījumi ir veiksmīgi atjaunināti","payment_modes":"Apmaksas veidi","add_payment_mode":"Pievienojiet apmaksas veidu","edit_payment_mode":"Labot maksājuma veidu","mode_name":"Veida nosaukums","payment_mode_added":"Pievienots maksāšanas veids","payment_mode_updated":"Labots maksāšanas veids","payment_mode_confirm_delete":"Jums nebūs iespējas atgūt šo Maksājuma veidu","already_in_use":"Maksājuma veids jau tiek izmantots","deleted_message":"Maksājuma veids veiksmīgi izdzēsts","company_address_format":"Uzņēmuma adreses formāts","from_customer_address_format":"No Klienta adreses formāts"},"items":{"title":"Preces","units":"Vienības","add_item_unit":"Pievienot Preces vienību","edit_item_unit":"Labot Preces vienību","unit_name":"Vienības nosaukums","item_unit_added":"Preces vienība pievienota","item_unit_updated":"Preces vienība atjaunota","item_unit_confirm_delete":"Jums nebūs iespējas atgūt šo Preces vienību","already_in_use":"Preces vienība jau tiek izmantota","deleted_message":"Preces vienība veiksmīgi izdzēsta"},"notes":{"title":"Piezīmes","description":"Save time by creating notes and reusing them on your invoices, estimates & payments.","notes":"Notes","type":"Type","add_note":"Add Note","add_new_note":"Add New Note","name":"Name","edit_note":"Edit Note","note_added":"Note added successfully","note_updated":"Note Updated successfully","note_confirm_delete":"You will not be able to recover this Note","already_in_use":"Note is already in use","deleted_message":"Note deleted successfully"}},"account_settings":{"profile_picture":"Profile Picture","name":"Name","email":"Email","password":"Password","confirm_password":"Confirm Password","account_settings":"Account Settings","save":"Save","section_description":"You can update your name, email & password using the form below.","updated_message":"Account Settings updated successfully"},"user_profile":{"name":"Name","email":"Email","password":"Password","confirm_password":"Confirm Password"},"notification":{"title":"Notification","email":"Send Notifications to","description":"Which email notifications would you like to receive when something changes?","invoice_viewed":"Invoice viewed","invoice_viewed_desc":"When your customer views the invoice sent via crater dashboard.","estimate_viewed":"Estimate viewed","estimate_viewed_desc":"When your customer views the estimate sent via crater dashboard.","save":"Save","email_save_message":"Email saved successfully","please_enter_email":"Please Enter Email"},"tax_types":{"title":"Tax Types","add_tax":"Add Tax","edit_tax":"Edit Tax","description":"You can add or Remove Taxes as you please. Crater supports Taxes on Individual Items as well as on the invoice.","add_new_tax":"Add New Tax","tax_settings":"Tax Settings","tax_per_item":"Tax Per Item","tax_name":"Tax Name","compound_tax":"Compound Tax","percent":"Percent","action":"Action","tax_setting_description":"Enable this if you want to add taxes to individual invoice items. By default, taxes are added directly to the invoice.","created_message":"Tax type created successfully","updated_message":"Tax type updated successfully","deleted_message":"Tax type deleted successfully","confirm_delete":"Jums nebūs iespējas atgūt šo Nodokļa veidu","already_in_use":"Nodoklis jau tiek izmantots"},"expense_category":{"title":"Izdevumu kategorijas","action":"Darbība","description":"Kategorijas ir obligātas, lai pievienotu Izdevumus.","add_new_category":"Pievienot jaunu kategoriju","add_category":"Pievienot kategoriju","edit_category":"Rediģēt kategoriju","category_name":"Kategorijas nosaukums","category_description":"Apraksts","created_message":"Izdevumu kategorija izveidota veiksmīgi","deleted_message":"Izdevumu kategorija veiksmīgi izdzēsta","updated_message":"Izdevumu kategorija atjaunināta veiksmīgi","confirm_delete":"Jums nebūs iespējas atgūt šo Izdevumu kategoriju","already_in_use":"Kategorija jau tiek izmantota"},"preferences":{"currency":"Valūta","default_language":"Noklusējuma valoda","time_zone":"Laika josla","fiscal_year":"Finanšu gads","date_format":"Datuma formāts","discount_setting":"Atlaižu iestatījumi","discount_per_item":"Atlaide par preci/pakalpojumu ","discount_setting_description":"Iespējot šo, lai piešķirtu atlaides individuālām rēķina precēm. Pēc noklusējuma, atlaide tiek piemērota rēķinam.","save":"Saglabāt","preference":"Iestatījumi | Iestatījumi","general_settings":"Noklusējamie iestatījumi sistēmai.","updated_message":"Iestatījumi atjaunināti veiksmīgi","select_language":"Izvēlieties valodu","select_time_zone":"Izvēlaties laika joslu","select_date_format":"Izvēlaties datuma formātu","select_financial_year":"Izvēlaties finanšu gadu"},"update_app":{"title":"Atjaunināt App","description":"Jūs varat atjaunināt Crater sistēmas versiju pavisam vienkārši - spiežot uz pogas zemāk","check_update":"Meklēt atjauninājumus","avail_update":"Pieejami jauni atjauninājumi","next_version":"Nākamā versija","requirements":"Prasības","update":"Atjaunināt tagad","update_progress":"Notiek atjaunināšana...","progress_text":"Tas prasīs tikai dažas minūtes. Pirms atjaunināšanas beigām, lūdzu, neatsvaidziniet ekrānu un neaizveriet logu","update_success":"Sistēma ir atjaunināta! Lūdzu, uzgaidiet, kamēr pārlūkprogrammas logs tiks automātiski ielādēts.","latest_message":"Atjauninājumi nav pieejami! Jums ir jaunākā versija.","current_version":"Versija","download_zip_file":"Lejupielādēt ZIP failu","unzipping_package":"Atarhivē Zip failu","copying_files":"Notiek failu kopēšana","running_migrations":"Notiek migrācijas","finishing_update":"Pabeidz atjauninājumu","update_failed":"Atjaunināšana neizdevās","update_failed_text":"Atvainojiet! Jūsu atjauninājuma laikā notika kļūda: {step}. solī"},"backup":{"title":"Backup | Backups","description":"The backup is a zipfile that contains all files in the directories you specify along with a dump of your database","new_backup":"Add New Backup","create_backup":"Create Backup","select_backup_type":"Select Backup Type","backup_confirm_delete":"You will not be able to recover this Backup","path":"path","new_disk":"New Disk","created_at":"created at","size":"size","dropbox":"dropbox","local":"local","healthy":"healthy","amount_of_backups":"amount of backups","newest_backups":"newest backups","used_storage":"used storage","select_disk":"Select Disk","action":"Action","deleted_message":"Backup deleted successfully","created_message":"Backup created successfully","invalid_disk_credentials":"Invalid credential of selected disk"},"disk":{"title":"File Disk | File Disks","description":"By default, Crater will use your local disk for saving backups, avatar and other image files. You can configure more than one disk drivers like DigitalOcean, S3 and Dropbox according to your preference.","created_at":"created at","dropbox":"dropbox","name":"Name","driver":"Driver","disk_type":"Type","disk_name":"Disk Name","new_disk":"Add New Disk","filesystem_driver":"Filesystem Driver","local_driver":"local Driver","local_root":"local Root","public_driver":"Public Driver","public_root":"Public Root","public_url":"Public URL","public_visibility":"Public Visibility","media_driver":"Media Driver","media_root":"Media Root","aws_driver":"AWS Driver","aws_key":"AWS Key","aws_secret":"AWS Secret","aws_region":"AWS Region","aws_bucket":"AWS Bucket","aws_root":"AWS Root","do_spaces_type":"Do Spaces type","do_spaces_key":"Do Spaces key","do_spaces_secret":"Do Spaces Secret","do_spaces_region":"Do Spaces Region","do_spaces_bucket":"Do Spaces Bucket","do_spaces_endpoint":"Do Spaces Endpoint","do_spaces_root":"Do Spaces Root","dropbox_type":"Dropbox Type","dropbox_token":"Dropbox Token","dropbox_key":"Dropbox Key","dropbox_secret":"Dropbox Secret","dropbox_app":"Dropbox App","dropbox_root":"Dropbox Root","default_driver":"Default Driver","is_default":"IR NOKLUSĒJAMS","set_default_disk":"Iestatiet noklusējuma disku","success_set_default_disk":"Disks ir veiksmīgi iestatīts kā noklusējums","save_pdf_to_disk":"Saglabāt PDF uz diska","disk_setting_description":" Iespējot šo, ja vēlaties lai katru rēķina, aprēķina un maksājuma izdrukas PDF kopiju saglabātu diskā. Šī opcija samazinās ielādēšanas laiku, kad apskatīsiet PDF.","select_disk":"Izvēlieties disku","disk_settings":"Diska uzstādījumi","confirm_delete":"Jūsu esošie faili un mapes norādītajā diskā netiks ietekmēti, bet diska konfigurācija tiks izdzēsta no Crater sistēmas","action":"Darbība","edit_file_disk":"Labot failu disku","success_create":"Disks tika pievienots veiksmīgi","success_update":"Disks atjaunināts veiksmīgi","error":"Diska pievienošanas kļūda","deleted_message":"Failu disks veiksmīgi izdzēsts","disk_variables_save_successfully":"Disks konfigurēts veiksmīgi","disk_variables_save_error":"Diska konfigurācija neveiksmīga.","invalid_disk_credentials":"Nepareizi pieejas dati atzīmētajam diskam"}},"wizard":{"account_info":"Konta informācija","account_info_desc":"Zemāk sniegtā informācija tiks izmantota galvenā administratora konta izveidei. Jūs varēsiet mainīt informāciju jebkurā laikā pēc ielogošanās.","name":"Vārds","email":"E-pasts","password":"Parole","confirm_password":"Apstipriniet paroli","save_cont":"Saglabāt un turpināt","company_info":"Uzņēmuma informācija","company_info_desc":"Šī informācija tiks parādīta rēķinos. Ņemiet vērā, ka vēlāk to var rediģēt iestatījumu lapā.","company_name":"Uzņēmuma nosaukums","company_logo":"Uzņēmuma logo","logo_preview":"Logo","preferences":"Iestatījumi","preferences_desc":"Noklusējamie iestatījumi sistēmai.","country":"Valsts","state":"Reģions","city":"Pilsēta","address":"Adrese","street":"Adrese1 | Adrese2","phone":"Telefona numurs","zip_code":"Pasta indekss","go_back":"Atpakaļ","currency":"Valūta","language":"Valoda","time_zone":"Time Zone","fiscal_year":"Financial Year","date_format":"Date Format","from_address":"From Address","username":"Username","next":"Next","continue":"Continue","skip":"Skip","database":{"database":"Site URL & Database","connection":"Database Connection","host":"Database Host","port":"Database Port","password":"Database Password","app_url":"App URL","app_domain":"App Domain","username":"Database Username","db_name":"Database Name","db_path":"Database Path","desc":"Create a database on your server and set the credentials using the form below."},"permissions":{"permissions":"Permissions","permission_confirm_title":"Are you sure you want to continue?","permission_confirm_desc":"Folder permission check failed","permission_desc":"Below is the list of folder permissions which are required in order for the app to work. If the permission check fails, make sure to update your folder permissions."},"mail":{"host":"Mail Host","port":"Mail Port","driver":"Mail Driver","secret":"Secret","mailgun_secret":"Mailgun Secret","mailgun_domain":"Domain","mailgun_endpoint":"Mailgun Endpoint","ses_secret":"SES Secret","ses_key":"SES Key","password":"Mail Password","username":"Mail Username","mail_config":"Mail Configuration","from_name":"From Mail Name","from_mail":"From Mail Address","encryption":"Mail Encryption","mail_config_desc":"Below is the form for Configuring Email driver for sending emails from the app. You can also configure third party providers like Sendgrid, SES etc."},"req":{"system_req":"System Requirements","php_req_version":"Php (version {version} required)","check_req":"Pārbaudīt prasības","system_req_desc":"Crater sistēmai ir dažas servera prasības. Pārliecinieties, ka jūsu serverim ir vajadzīgā php versija un visi tālāk minētie paplašinājumi."},"errors":{"migrate_failed":"Migrācija neizdevās","database_variables_save_error":"Nevarēja konfigurēt .env failu. Lūdzu pārbaudiet faila pieejas","mail_variables_save_error":"E-pasta konfigurācija neveiksmīga.","connection_failed":"Datubāzes savienojums neveiksmīgs","database_should_be_empty":"Datubāzei jābūt tukšai"},"success":{"mail_variables_save_successfully":"E-pasts konfigurēts veiksmīgi","database_variables_save_successfully":"Database configured successfully."}},"layout_login":{"copyright_crater":"Copyright @ Crater - 2020","super_simple_invoicing":"Super Simple Invoicing","for_freelancer":"for Freelancers &","small_businesses":"Small Businesses ","crater_help":"Crater helps you track expenses, record payments & generate beautiful","invoices_and_estimates":"invoices & estimates with ability to choose multiple templates."},"validation":{"invalid_phone":"Invalid Phone Number","invalid_url":"Invalid url (ex: http://www.crater.com)","invalid_domain_url":"Invalid url (ex: crater.com)","required":"Field is required","email_incorrect":"Incorrect Email.","email_already_taken":"The email has already been taken.","email_does_not_exist":"User with given email doesn\'t exist","item_unit_already_taken":"This item unit name has already been taken","payment_mode_already_taken":"This payment mode name has already been taken","send_reset_link":"Send Reset Link","not_yet":"Not yet? Send it again","password_min_length":"Password must contain {count} characters","name_min_length":"Name must have at least {count} letters.","enter_valid_tax_rate":"Enter valid tax rate","numbers_only":"Numbers Only.","characters_only":"Characters Only.","password_incorrect":"Passwords must be identical","password_length":"Password must be {count} character long.","qty_must_greater_than_zero":"Quantity must be greater than zero.","price_greater_than_zero":"Price must be greater than zero.","payment_greater_than_zero":"Payment must be greater than zero.","payment_greater_than_due_amount":"Entered Payment is more than due amount of this invoice.","quantity_maxlength":"Quantity should not be greater than 20 digits.","price_maxlength":"Price should not be greater than 20 digits.","price_minvalue":"Price should be greater than 0.","amount_maxlength":"Amount should not be greater than 20 digits.","amount_minvalue":"Amount should be greater than 0.","description_maxlength":"Description should not be greater than 255 characters.","subject_maxlength":"Subject should not be greater than 100 characters.","message_maxlength":"Message should not be greater than 255 characters.","maximum_options_error":"Maximum of {max} options selected. First remove a selected option to select another.","notes_maxlength":"Notes should not be greater than 255 characters.","address_maxlength":"Address should not be greater than 255 characters.","ref_number_maxlength":"Ref Number should not be greater than 255 characters.","prefix_maxlength":"Prefix should not be greater than 5 characters.","something_went_wrong":"something went wrong"},"pdf_estimate_label":"Aprēķins","pdf_estimate_number":"Aprēķina numurs","pdf_estimate_date":"Aprēķina datums","pdf_estimate_expire_date":"Derīgs līdz","pdf_invoice_label":"Rēķins","pdf_invoice_number":"Rēķina numurs","pdf_invoice_date":"Rēķina datums","pdf_invoice_due_date":"Apmaksas termiņš","pdf_notes":"Notes","pdf_items_label":"Nosaukums","pdf_quantity_label":"Daudzums","pdf_price_label":"Cena","pdf_discount_label":"Atlaide","pdf_amount_label":"Summa","pdf_subtotal":"Starpsumma","pdf_total":"Kopā","pdf_payment_receipt_label":"MAKSĀJUMA IZDRUKA","pdf_payment_date":"Maksājuma datums","pdf_payment_number":"Maksājuma numurs","pdf_payment_mode":"Apmaksas veids","pdf_payment_amount_received_label":"Saņemtā summa","pdf_expense_report_label":"IZDEVUMU ATSKAITE","pdf_total_expenses_label":"KOPĀ IZDEVUMI","pdf_profit_loss_label":"PEĻŅAS & IZDEVUMU ATSKAITE","pdf_income_label":"IENĀKUMI","pdf_net_profit_label":"PEĻŅA","pdf_customer_sales_report":"Atskaite par pārdoto: Pēc lietotāja","pdf_total_sales_label":"KOPĀ PĀRDOTAIS","pdf_item_sales_label":"Atskaite par pārdoto: Pēc preces/pakalpojuma","pdf_tax_report_label":"NODOKĻU ATSKAITE","pdf_total_tax_label":"NODOKĻI KOPĀ","pdf_tax_types_label":"Nodokļu veidi","pdf_expenses_label":"Izdevumi","pdf_bill_to":"Saņēmējs,","pdf_ship_to":"Piegādes adrese,","pdf_received_from":"Saņemts no:"}')},WFqU:function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("yLpj"))},WYrj: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("wd/R"))},"Wq+d":function(e,t,n){var r=n("xMtq");"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,a);r.locals&&(e.exports=r.locals)},Wv91:function(e,t,n){!function(e){"use strict";var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n("wd/R"))},WxRl:function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var a=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return a+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return a+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return a+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return a+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return a+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return a+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},X709: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("wd/R"))},XDpg:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n("wd/R"))},XLvN: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("wd/R"))},XPB1:function(e,t,n){"use strict";n("6Q9W")},XXVU:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("eO9T");t.default=(0,r.regex)("email",/(^$|^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$)/)},XbO3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("eO9T");t.default=function(e){return(0,r.withParams)({type:"minLength",min:e},(function(t){return!(0,r.req)(t)||(0,r.len)(t)>=e}))}},Xhqo:function(e,t,n){"use strict";var r=n("qPBE").Buffer,a=n(2);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,a,i=r.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,n=i,a=s,t.copy(n,a),s+=o.data.length,o=o.next;return i},e}(),a&&a.inspect&&a.inspect.custom&&(e.exports.prototype[a.inspect.custom]=function(){var e=a.inspect({length:this.length});return this.constructor.name+" "+e})},Xi7e:function(e,t,n){var r=n("KMkd"),a=n("adU4"),i=n("tMB7"),o=n("+6XX"),s=n("Z8oC");function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=o,l.prototype.set=s,e.exports=l},XuX8:function(e,t,n){e.exports=n("INkZ")},"Y+58":function(e){e.exports=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","message":"Message","send":"Envoyer","go_back":"Retourner","back_to_login":"Retour connexion?","home":"Accueil","filter":"Filtre","delete":"Effacer","edit":"Modifier","view":"Voir","add_new_item":"Ajoute un nouvel objet","clear_all":"Tout effacer","showing":"Montrant","of":"de","actions":"Actions","subtotal":"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":"Chercher","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":"Rentrer chez soi","test_mail_conf":"Tester la configuration","send_mail_successfully":"Mail envoyé avec succès","setting_updated":"Réglage 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":"Ventes et dépenses"},"recent_invoices_card":{"title":"Factures dues","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 de dépense","customer":"Client","amount_due":"Montant dû","actions":"Actions","view_all":"Voir tout"}},"tax_types":{"name":"Nom","description":"La description","percent":"Pourcent","compound_tax":"Taxe composée"},"global_search":{"search":"Chercher...","customers":"Les clients","users":"Utilisateurs","no_results_found":"Aucun résultat trouvé"},"customers":{"title":"Clients","add_customer":"Ajouter un client","contacts_list":"Liste de clients","name":"Nom","mail":"Mail | Mails","statement":"Statement","display_name":"Statut et Nom de la société","primary_contact_name":"Nom du contact","contact_name":"Nom du contact","amount_due":"Montant dû","email":"Email","address":"Adresse","phone":"Téléphone","website":"Site Internet","overview":"Overview","enable_portal":"Activer le portail","country":"Pays","state":"Etat","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":"La description","add_new_customer":"Ajouter un nouveau client","save_customer":"Enregistrer le client","update_customer":"Mettre à jour le client","customer":"Client | Les 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 de la facturation","no_customers":"Pas encore de clients!","no_customers_found":"Aucun client trouvé!","list_of_customers":"Cette section contiendra la liste des clients.","primary_display_name":"Nom daffichage 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":"créer un rendez-vous","confirm_delete":"Vous ne pourrez pas récupérer ce client et toutes les factures, devis et paiements associés. | Vous ne serez pas en mesure de récupérer ces clients et toutes les factures, devis 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 darticles","name":"Nom","unit":"Unité","description":"La description","added_on":"Ajouté le","price":"Prix","date_of_creation":"Date de création","action":"action","add_item":"Ajouter un item","save_item":"Enregistrer lélément","update_item":"Mettre à jour lélément","item":"Article | Articles","add_new_item":"Ajoute un nouvel objet","new_item":"Nouvel article","edit_item":"Modifier larticle","no_items":"Aucun article pour le moment!","list_of_items":"Cette section contiendra la liste des éléments.","select_a_unit":"Sélectionnez l\'unité","taxes":"Les taxes","item_attached_message":"Impossible de supprimer un élément 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":"Élément mis à jour avec succès","deleted_message":"Élément supprimé avec succès | Éléments 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":"Total partiel","estimate_number":"N°","ref_number":"Numéro de ref","contact":"Contact","add_item":"Ajouter un article","date":"Date de dépense","due_date":"Date d\'échéance","expiry_date":"Date dexpiration","status":"Statut","add_tax":"Ajouter une taxe","amount":"Montant","action":"action","notes":"Remarques","tax":"Impôt","estimate_template":"Modèle de devis","convert_to_invoice":"Convertir en facture","mark_as_sent":"Marquer comme envoyé","send_estimate":"Envoyer un 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ée comme envoyé","confirm_mark_as_accepted":"Ce devis sera marquée comme acceptée","confirm_mark_as_rejected":"Ce devis sera marquée comme Rejetée","no_matching_estimates":"Aucune estimation correspondante!","mark_as_sent_successfully":"Devis marquée comme envoyée avec succès","send_estimate_successfully":"Devis envoyée avec succès","errors":{"required":"Champ requis"},"accepted":"Accepté","sent":"Envoyée","draft":"Brouillon","declined":"Refusé","new_estimate":"Nouveau devis","add_new_estimate":"Ajouter une nouvelle estimation","update_Estimate":"Mise à jour de lestimation","edit_estimate":"Modifier lestimation","items":"articles","Estimate":"Estimation | Estimations","add_new_tax":"Ajouter une nouvelle taxe","no_estimates":"Aucune estimation pour le moment!","list_of_estimates":"Cette section contiendra la liste des estimations.","mark_as_rejected":"Marquer comme rejeté","mark_as_accepted":"Marquer comme accepté","marked_as_accepted_message":"Estimation marquée comme acceptée","marked_as_rejected_message":"Estimation marquée comme rejetée","confirm_delete":"Vous ne pourrez pas récupérer cette estimation | Vous ne pourrez pas récupérer ces estimations","created_message":"Estimation créée avec succès","updated_message":"Estimation mise à jour avec succès","deleted_message":"Estimation supprimée avec succès | Estimations supprimées avec succès","user_email_does_not_exist":"L\'e-mail de l\'utilisateur n\'existe pas","something_went_wrong":"quelque chose a mal tourné","item":{"title":"Titre de larticle","description":"La description","quantity":"Quantité","price":"Prix","discount":"Remise","total":"Total","total_discount":"Remise totale","sub_total":"Total partiel","tax":"Impôt","amount":"Montant","select_an_item":"Tapez ou cliquez pour sélectionner un élément","type_item_description":"Type Item Description (optionnel)"}},"invoices":{"title":"Factures","invoices_list":"Liste de factures","days":"{jours} jours","months":"{mois} mois","years":"{années} Année","all":"Toute","paid":"Payé","unpaid":"Non payé","customer":"CLIENT","paid_status":"Paiement","ref_no":"Réf.","number":"N°","amount_due":"MONTANT DÛ","partially_paid":"Partiellement payé","total":"Total","discount":"Remise","sub_total":"Total partiel","invoice":"Facture | Factures","invoice_number":"Numéro de facture","ref_number":"Numéro de ref","contact":"Contact","add_item":"Ajouter un article","date":"Date de dépense","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é","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":"Enregister un paiement","add_new_invoice":"Ajouter une nouvelle facture","update_expense":"Frais de mise à jour","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 nouvelle 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":"Cloner","confirm_clone":"Cette facture sera clonée dans une nouvelle facture","item":{"title":"Titre de larticle","description":"La description","quantity":"Quantité","price":"Prix","discount":"Remise","total":"Total","total_discount":"Remise totale","sub_total":"Total partiel","tax":"Impôt","amount":"Montant","select_an_item":"Tapez ou cliquez pour sélectionner un élément","type_item_description":"Type Item Description (optionnel)"},"payment_attached_message":"Un paiement est déjà associé à l\'une des factures sélectionnées. Assurez-vous d’effacer d’abord les paiements en pièce jointe 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\'e-mail 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 de dépense","amount":"Montant Montant","action":"action","credit_number":"Numéro de crédit","notes":"Remarques","confirm_delete":"Voulez-vous supprimer cet avoir?","item":{"title":"Titre de larticle","description":"La description","quantity":"Quantité","price":"Prix","discount":"Remise","total":"Total","total_discount":"Remise totale","sub_total":"Total partiel","tax":"Impôt"}},"payments":{"title":"Paiements","payments_list":"Liste de paiements","record_payment":"Enregistrer un paiement","customer":"Client","date":"Date de dépense","amount":"Montant","action":"action","payment_number":"N°","payment_mode":"Mode de paiement","invoice":"Facture dachat","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 nouveau paiement","send_payment_receipt":"Envoyer le reçu","send_payment":"Envoyer le paiement","save_payment":"Enregistrer le paiement","update_payment":"Mettre à jour le paiement","payment":"Paiement | Paiements","no_payments":"Aucun paiement pour le moment!","no_matching_payments":"Il n\'y a aucun paiement correspondant!","list_of_payments":"Cette section contiendra la liste des paiements","select_payment_mode":"Sélectionnez le mode de paiement","confirm_mark_as_sent":"Ce devis sera marquée comme envoyé","confirm_send_payment":"Ce paiement sera envoyé par e-mail au client","send_payment_successfully":"Paiement envoyé avec succès","user_email_does_not_exist":"L\'e-mail 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 de dépense","description":"La description","receipt":"Le reçu","amount":"Montant Montant","action":"action","note":"Remarque","category_id":"Identifiant de catégorie","date":"Date de dépense","add_expense":"Ajouter une dépense","add_new_expense":"Ajouter une nouvelle dépense","save_expense":"Enregistrer la dépense","update_expense":"Frais de mise à jour","download_receipt":"Télécharger le reçu","edit_expense":"Modifier les dépenses","new_expense":"Nouvelle dépense","expense":"Frais | Les 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 frais","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":"La description","amount":"Montant Montant","actions":"Actions","add_category":"ajouter une catégorie","new_category":"Nouvelle catégorie","category":"Catégorie | Les 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":"Sidentifier","register":"Sinscrire","reset_password":"réinitialiser le mot de passe","password_reset_successfully":"Réinitialisation du mot de passe réussie","enter_email":"Entrer email","enter_password":"Entrer le mot de passe","retype_password":"Retaper le mot de passe","login_placeholder":"mail@example.com"},"users":{"title":"Utilisateurs","users_list":"Liste des utilisateurs","name":"Nom","description":"La 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 élément | 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 | L\'utilisateur a bien été supprimé"},"reports":{"title":"rapport","from_date":"A partir de la date","to_date":"À ce jour","status":"Statut","paid":"Payé","unpaid":"Non payé","download_pdf":"Télécharger le PDF","view_pdf":"Voir PDF","update_report":"Rapport de mise à jour","report":"Rapport | Rapports","profit_loss":{"profit_loss":"Perte de profit","to_date":"À ce jour","from_date":"Partir de la date","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":"A partir de la date","date_range":"Sélectionner une plage de dates"},"errors":{"required":"Champ requis"},"invoices":{"invoice":"Facture d\'achat","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 ref","amount":"Montant","contact_name":"Nom du contact","status":"Statut"},"expenses":{"expenses":"Dépenses","category":"Catégorie","date":"Date de dépense","amount":"Montant","to_date":"À ce jour","from_date":"A partir de la date","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":"Les notifications","tax_types":"Types de taxe","expense_category":"Catégories de dépenses","update_app":"Mise à jour de l\'application","backup":"Sauvegarde","file_disk":"Disque de fichiers","custom_fields":"Les champs personnalisés","payment_modes":"Modes de paiement","notes":"Remarques"},"title":"Paramètres","setting":"Paramètres | Paramètres","general":"Générale","language":"Langue","primary_currency":"Devise principale","timezone":"Fuseau horaire","date_format":"Format de date","currencies":{"title":"Monnaies","currency":"Monnaie | Monnaies","currencies_list":"Liste des devises","select_currency":"Sélectionnez la devise","name":"Nom","code":"Code","symbol":"symbole","precision":"Précision","thousand_separator":"Mille séparateur","decimal_separator":"Séparateur décimal","position":"Position","position_of_symbol":"Position du symbole","right":"Droite","left":"La gauche","action":"action","add_currency":"Ajouter une devise"},"mail":{"host":"Hôte du serveur mail","port":"Port du serveur mail","driver":"Pilote de courrier","secret":"Secret","mailgun_secret":"Mailgun Secret","mailgun_domain":"Domaine","mailgun_endpoint":"Mailgun Point Final","ses_secret":"SES Secret","ses_key":"SES clé","password":"Mot de passe du serveur mail","username":"Mail Nom d\'utilisateur","mail_config":"Configuration du courrier","from_name":"Nom de l\'email d\'envoi","from_mail":"Adresse email d\'envoi","encryption":"Chiffrement du courrier","mail_config_desc":"Les détails ci-dessous seront utilisés pour mettre à jour l\'environnement de messagerie. Aussi, vous pouvez modifier les détails à tout moment après la connexion."},"pdf":{"title":"Paramètre PDF","footer_text":"Pied de page texte","pdf_layout":"Mise en page PDF"},"company_info":{"company_info":"Information d\'entreprise","company_name":"Nom de la compagnie","company_logo":"Logo d\'entreprise","section_description":"Informations sur votre entreprise qui figureront sur les factures, estimations et autres documents créés par Crater.","phone":"Téléphone","country":"Pays","state":"Etat","city":"Ville","address":"Adresse","zip":"Code postal","save":"Sauvegarder","updated_message":"Informations sur la société mises à jour avec succès"},"custom_fields":{"title":"Les champs personnalisés","section_description":"Personnalisez vos factures, estimations 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 de domaine","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":"Addresse","display_name":"Nom","primary_contact_name":"Nom du contact principal","email":"Adresse 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ètre","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","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ètre","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":"Modes de paiement","add_payment_mode":"Ajouter un mode de paiement","edit_payment_mode":"Modifier le mode de paiement","mode_name":"Nom","payment_mode_added":"Mode de paiement ajouté","payment_mode_updated":"Mode de paiement mis à jour","payment_mode_confirm_delete":"Êtes-vous sur de supprimer ce mode de paiement ?","already_in_use":"Ce mode de paiement existe déjà.","deleted_message":"Mode de paiement supprimé avec succès","company_address_format":"Format d\'adresse de l\'entreprise","from_customer_address_format":"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é","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é 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":"Note éditée","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":"Remarque supprimée avec succès"}},"account_settings":{"profile_picture":"Image de profil","name":"Nom","email":"Adresse 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":"Adresse 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":"S il vous plaît entrer 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":"Pour cent","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":"Adicionar categoria","edit_category":"Editar categoria","category_name":"Nom de catégorie","category_description":"La 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":"Langage par défaut","time_zone":"Fuseau horaire","fiscal_year":"Année financière","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":"mettre à jour la description de l\'application","check_update":"Vérifier les mises à jour","avail_update":"Nouvelle mise à jour disponible","next_version":"Version suivante","requirements":"Exigences","update":"Mettre à jour maintenant","update_progress":"Mise à jour en cours...","progress_text":"Cela ne prendra que quelques minutes. S\'il vous plaît ne pas actualiser l\'écran 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","running_migrations":"Exécution de migrations","finishing_update":"Mise à jour de finition","update_failed":"Mise à jour a échoué","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 dans les répertoires que vous spécifiez avec un vidage de votre 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":"Nouveau disque","created_at":"créé à","size":"Taille","dropbox":"boîte de dépôt","local":"local","healthy":"en bonne santé","amount_of_backups":"quantité de sauvegardes","newest_backups":"dernières sauvegardes","used_storage":"Stockage utilisé","select_disk":"Sélectionnez le disque","action":"action","deleted_message":"Sauvegarde supprimée avec succès","created_message":"Backup created successfully","invalid_disk_credentials":"Informations d\'identification non valides du disque sélectionné"},"disk":{"title":"Disque de fichiers | Disques de fichiers","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":"boîte de dépôt","name":"Nom","driver":"Chauffeur","disk_type":"Type","disk_name":"Nom du disque","new_disk":"Ajouter un nouveau disque","filesystem_driver":"Pilote du système de fichiers","local_driver":"chauffeur local","local_root":"racine locale","public_driver":"Pilote public","public_root":"Racine publique","public_url":"URL publique","public_visibility":"Visibilité publique","media_driver":"Pilote multimédia","media_root":"Racine média","aws_driver":"Pilote AWS","aws_key":"Clé AWS","aws_secret":"AWS Secret","aws_region":"Région AWS","aws_bucket":"Bucket AWS","aws_root":"Racine AWS","do_spaces_type":"Do Spaces type","do_spaces_key":"Touche Do Spaces","do_spaces_secret":"Faire des espaces secrets","do_spaces_region":"Région Do Spaces","do_spaces_bucket":"Do Spaces Bucket","do_spaces_endpoint":"Do Spaces Endpoint","do_spaces_root":"Do Spaces Root","dropbox_type":"Type de Dropbox","dropbox_token":"Jeton Dropbox","dropbox_key":"Clé Dropbox","dropbox_secret":"Secret de Dropbox","dropbox_app":"Application Dropbox","dropbox_root":"Racine Dropbox","default_driver":"Pilote par défaut","is_default":"EST PAR DÉFAUT","set_default_disk":"Définir le disque par défaut","success_set_default_disk":"Disk set as default successfully","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 disque","disk_settings":"Paramètres du disque","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":"Disque ajouté avec succès","success_update":"Disk updated successfully","error":"L\'ajout de disque a échoué","deleted_message":"File Disk deleted successfully","disk_variables_save_successfully":"Disque configuré avec succès","disk_variables_save_error":"La configuration du disque a échoué.","invalid_disk_credentials":"Informations d\'identification non valides du disque sélectionné"}},"wizard":{"account_info":"Information sur le 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 continuer","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 la compagnie","company_logo":"Logo dentreprise","logo_preview":"Aperçu du logo","preferences":"Préférences","preferences_desc":"Préférences par défaut pour le système.","country":"Pays","state":"Etat","city":"Ville","address":"Adresse","street":"Rue 1 | Rue 2","phone":"Téléphone","zip_code":"Code postal","go_back":"Retourner","currency":"Devise","language":"La langue","time_zone":"Fuseau horaire","fiscal_year":"Année financière","date_format":"Format de date","from_address":"De l\'adresse","username":"Nom d\'utilisateur","next":"Suivant","continue":"Continuer","skip":"sauter","database":{"database":"URL du site et base de données","connection":"Connexion à la base de données","host":"Hôte de base de données","port":"Port de base de données","password":"Mot de passe de base de données","app_url":"Application URL","app_domain":"App Domain","username":"Nom d\'utilisateur de la base de données","db_name":"Nom de la base de données","db_path":"Database Path","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":"Les permissions","permission_confirm_title":"Es-tu sur de vouloir continuer?","permission_confirm_desc":"La vérification de l\\"autorisation du dossier a échoué","permission_desc":"Vous trouverez ci-dessous la liste des autorisations de dossier requises pour le fonctionnement de l\'application. Si la vérification des autorisations échoue, veillez à mettre à jour vos autorisations de dossier."},"mail":{"host":"Hôte du serveur mail","port":"Port mail","driver":"Pilote de courrier","secret":"Secret","mailgun_secret":"Mailgun Secret","mailgun_domain":"Domaine","mailgun_endpoint":"Mailgun Point Final","ses_secret":"SES Secret","ses_key":"SES clé","password":"Mot de passe mail","username":"Mail Nom d\'utilisateur","mail_config":"Configuration du courrier","from_name":"Nom de messagerie","from_mail":"De ladresse mail","encryption":"Chiffrement du courrier","mail_config_desc":"Les détails ci-dessous seront utilisés pour mettre à jour l\'environnement de messagerie. Aussi, vous pouvez modifier les détails à tout moment après la connexion."},"req":{"system_req":"Configuration requise","php_req_version":"Php (version {version} nécessaire)","check_req":"Vérifier les exigences","system_req_desc":"Crater a quelques exigences de serveur. Assurez-vous que votre serveur dispose de la version PHP requise et de toutes les extensions mentionnées ci-dessous."},"errors":{"migrate_failed":"Migration impossible","database_variables_save_error":"Impossible de se connecter à la base de données avec les valeurs fournies.","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":"Database should be empty"},"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":"Super Simple Facturation","for_freelancer":"pour les pigistes et","small_businesses":"Petites entreprises ","crater_help":"Crater vous aide à suivre vos dépenses, à enregistrer vos paiements et à générer de belles","invoices_and_estimates":"factures et devis avec possibilité de choisir 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":"L\'utilisateur avec un email donné n\'existe pas","item_unit_already_taken":"L\'unité d\'article a déjà été prise","payment_mode_already_taken":"Le mode de paiement a déjà été pris","send_reset_link":"Envoyer le lien de réinitialisation","not_yet":"Pas encore? Envoyer à nouveau","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 5 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 entré est plus 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 chiffre","amount_maxlength":"Le montant ne doit pas dépasser 20 chiffres.","amount_minvalue":"Le montant doit être supérieur à 0 chiffre","description_maxlength":"La description ne doit pas dépasser 255 caractères.","subject_maxlength":"Subject should not be greater than 100 characters.","message_maxlength":"Message should not be greater than 255 characters.","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":"Prefix should not be greater than 5 characters.","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":"Expiry date","pdf_invoice_label":"Facture dachat","pdf_invoice_number":"Numéro de facture","pdf_invoice_date":"Date de facturation","pdf_invoice_due_date":"Due date","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":"Subtotal","pdf_total":"Total","pdf_payment_receipt_label":"PAYMENT RECEIPT","pdf_payment_date":"Payment Date","pdf_payment_number":"N°","pdf_payment_mode":"Mode de paiement","pdf_payment_amount_received_label":"Amount Received","pdf_expense_report_label":"EXPENSES REPORT","pdf_total_expenses_label":"TOTAL EXPENSE","pdf_profit_loss_label":"PROFIT & LOSS REPORT","pdf_income_label":"INCOME","pdf_net_profit_label":"NET PROFIT","pdf_customer_sales_report":"Sales Report: By Customer","pdf_total_sales_label":"TOTAL SALES","pdf_item_sales_label":"Sales Report: By Item","pdf_tax_report_label":"TAX REPORT","pdf_total_tax_label":"TOTAL TAX","pdf_tax_types_label":"Types de taxe","pdf_expenses_label":"Dépenses","pdf_bill_to":"facturer,","pdf_ship_to":"Envoyez à,","pdf_received_from":"Received from:"}')},YBdB:function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,a,i,o,s,l=1,c={},u=!1,d=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){m(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){m(e.data)},r=function(e){i.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(a=d.documentElement,r=function(e){var t=d.createElement("script");t.onreadystatechange=function(){m(e),t.onreadystatechange=null,a.removeChild(t),t=null},a.appendChild(t)}):r=function(e){setTimeout(m,0,e)}:(o="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&m(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(o+t,"*")}),p.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var a={callback:e,args:t};return c[l]=a,r(l),l++},p.clearImmediate=f}function f(e){delete c[e]}function m(e){if(u)setTimeout(m,0,e);else{var t=c[e];if(t){u=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{f(e),u=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n("yLpj"),n("8oxB"))},YESw:function(e,t,n){var r=n("Cwc5")(Object,"create");e.exports=r},YJtn:function(e,t,n){var r=n("1pTX");"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,a);r.locals&&(e.exports=r.locals)},YO3V:function(e,t,n){var r=n("NykK"),a=n("LcsW"),i=n("ExA7"),o=Function.prototype,s=Object.prototype,l=o.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=a(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},YRex:function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n("wd/R"))},YjXl:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("eO9T");t.default=(0,r.regex)("alpha",/^[a-zA-Z]*$/)},YuTi: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}},Z0cm:function(e,t){var n=Array.isArray;e.exports=n},Z2iq:function(e,t,n){var r=n("aGX/");"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,a);r.locals&&(e.exports=r.locals)},Z4QM: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("wd/R"))},Z8oC:function(e,t,n){var r=n("y1pI");e.exports=function(e,t){var n=this.__data__,a=r(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}},ZAMP: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("wd/R"))},Zduo: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("wd/R"))},"aET+":function(e,t,n){var r,a,i={},o=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===a&&(a=r.apply(this,arguments)),a}),s=function(e,t){return t?t.querySelector(e):document.querySelector(e)},l=function(e){var t={};return function(e,n){if("function"==typeof e)return e();if(void 0===t[e]){var r=s.call(this,e,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}}(),c=null,u=0,d=[],p=n("9tPo");function f(e,t){for(var n=0;n<e.length;n++){var r=e[n],a=i[r.id];if(a){a.refs++;for(var o=0;o<a.parts.length;o++)a.parts[o](r.parts[o]);for(;o<r.parts.length;o++)a.parts.push(y(r.parts[o],t))}else{var s=[];for(o=0;o<r.parts.length;o++)s.push(y(r.parts[o],t));i[r.id]={id:r.id,refs:1,parts:s}}}}function m(e,t){for(var n=[],r={},a=0;a<e.length;a++){var i=e[a],o=t.base?i[0]+t.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};r[o]?r[o].parts.push(s):n.push(r[o]={id:o,parts:[s]})}return n}function h(e,t){var n=l(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=d[d.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),d.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var a=l(e.insertAt.before,n);n.insertBefore(t,a)}}function _(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=d.indexOf(e);t>=0&&d.splice(t,1)}function v(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){0;return n.nc}();r&&(e.attrs.nonce=r)}return g(t,e.attrs),h(e,t),t}function g(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function y(e,t){var n,r,a,i;if(t.transform&&e.css){if(!(i="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=i}if(t.singleton){var o=u++;n=c||(c=v(t)),r=x.bind(null,n,o,!1),a=x.bind(null,n,o,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",g(t,e.attrs),h(e,t),t}(t),r=D.bind(null,n,t),a=function(){_(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),r=k.bind(null,n),a=function(){_(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else a()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=o()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=m(e,t);return f(n,t),function(e){for(var r=[],a=0;a<n.length;a++){var o=n[a];(s=i[o.id]).refs--,r.push(s)}e&&f(m(e,t),t);for(a=0;a<r.length;a++){var s;if(0===(s=r[a]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete i[s.id]}}}};var b,w=(b=[],function(e,t){return b[e]=t,b.filter(Boolean).join("\n")});function x(e,t,n,r){var a=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,a);else{var i=document.createTextNode(a),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(i,o[t]):e.appendChild(i)}}function k(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function D(e,t,n){var r=n.css,a=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&a;(t.convertToAbsoluteUrls||i)&&(r=p(r)),a&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */");var o=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(o),s&&URL.revokeObjectURL(s)}},"aGX/":function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,".tab[data-v-135b706d]{padding:0!important}.tab-link[data-v-135b706d]{padding:10px 30px;display:block}",""])},aIdf:function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}var n=[/^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],r=/^(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,a=[/^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:a,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:a,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,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:function(e){switch(function e(t){return t>9?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},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("wd/R"))},aIsn: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("wd/R"))},aQkU: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("wd/R"))},adU4:function(e,t,n){var r=n("y1pI"),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)}},b1Dy: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("wd/R"))},b80T:function(e,t,n){var r=n("UNi/"),a=n("03A+"),i=n("Z0cm"),o=n("DSRE"),s=n("wJg7"),l=n("c6wG"),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&a(e),d=!n&&!u&&o(e),p=!n&&!u&&!d&&l(e),f=n||u||d||p,m=f?r(e.length,String):[],h=m.length;for(var _ in e)!t&&!c.call(e,_)||f&&("length"==_||d&&("offset"==_||"parent"==_)||p&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||s(_,h))||m.push(_);return m}},bOMt: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("wd/R"))},bXm7: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){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("wd/R"))},bYM6: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("wd/R"))},bpih: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("wd/R"))},bxKX: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("wd/R"))},c6wG:function(e,t,n){var r=n("dD9F"),a=n("sEf8"),i=n("mdPL"),o=i&&i.isTypedArray,s=o?a(o):r;e.exports=s},cRix:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("wd/R"))},cWtb:function(e,t,n){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p=".",t(t.s=9)}([function(e,t,n){"use strict";t.a={prefix:"",suffix:"",thousands:",",decimal:".",precision:2}},function(e,t,n){"use strict";var r=n(2),a=n(5),i=n(0);t.a=function(e,t){if(t.value){var o=n.i(a.a)(i.a,t.value);if("INPUT"!==e.tagName.toLocaleUpperCase()){var s=e.getElementsByTagName("input");1!==s.length||(e=s[0])}e.oninput=function(){var t=e.value.length-e.selectionEnd;e.value=n.i(r.a)(e.value,o),t=Math.max(t,o.suffix.length),t=e.value.length-t,t=Math.max(t,o.prefix.length+1),n.i(r.b)(e,t),e.dispatchEvent(n.i(r.c)("change"))},e.onfocus=function(){n.i(r.b)(e,e.value.length-o.suffix.length)},e.oninput(),e.dispatchEvent(n.i(r.c)("input"))}}},function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.a;"number"==typeof e&&(e=e.toFixed(o(t.precision)));var n=e.indexOf("-")>=0?"-":"",r=i(e),a=s(r,t.precision),d=u(a).split("."),p=d[0],m=d[1];return p=l(p,t.thousands),t.prefix+n+c(p,m,t.decimal)+t.suffix}function a(e,t){var n=e.indexOf("-")>=0?-1:1,r=s(i(e),t);return parseFloat(r)*n}function i(e){return u(e).replace(/\D+/g,"")||"0"}function o(e){return function(e,t,n){return Math.max(e,Math.min(t,n))}(0,e,20)}function s(e,t){var n=Math.pow(10,t);return(parseFloat(e)/n).toFixed(o(t))}function l(e,t){return e.replace(/(\d)(?=(?:\d{3})+\b)/gm,"$1"+t)}function c(e,t,n){return t?e+n+t:e}function u(e){return e?e.toString():""}function d(e,t){var n=function(){e.setSelectionRange(t,t)};e===document.activeElement&&(n(),setTimeout(n,1))}function p(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}var f=n(0);n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return p}))},function(e,t,n){"use strict";function r(e,t){t&&Object.keys(t).map((function(e){s.a[e]=t[e]})),e.directive("money",o.a),e.component("money",i.a)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(6),i=n.n(a),o=n(1),s=n(0);n.d(t,"Money",(function(){return i.a})),n.d(t,"VMoney",(function(){return o.a})),n.d(t,"options",(function(){return s.a})),n.d(t,"VERSION",(function(){return l}));var l="0.8.1";t.default=r,"undefined"!=typeof window&&window.Vue&&window.Vue.use(r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(0),i=n(2);t.default={name:"Money",props:{value:{required:!0,type:[Number,String],default:0},masked:{type:Boolean,default:!1},precision:{type:Number,default:function(){return a.a.precision}},decimal:{type:String,default:function(){return a.a.decimal}},thousands:{type:String,default:function(){return a.a.thousands}},prefix:{type:String,default:function(){return a.a.prefix}},suffix:{type:String,default:function(){return a.a.suffix}}},directives:{money:r.a},data:function(){return{formattedValue:""}},watch:{value:{immediate:!0,handler:function(e,t){var r=n.i(i.a)(e,this.$props);r!==this.formattedValue&&(this.formattedValue=r)}}},methods:{change:function(e){this.$emit("input",this.masked?e.target.value:n.i(i.d)(e.target.value,this.precision))}}}},function(e,t,n){"use strict";t.a=function(e,t){return e=e||{},t=t||{},Object.keys(e).concat(Object.keys(t)).reduce((function(n,r){return n[r]=void 0===t[r]?e[r]:t[r],n}),{})}},function(e,t,n){var r=n(7)(n(4),n(8),null,null);e.exports=r.exports},function(e,t){e.exports=function(e,t,n,r){var a,i=e=e||{},o=typeof e.default;"object"!==o&&"function"!==o||(a=e,i=e.default);var s="function"==typeof i?i.options:i;if(t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns),n&&(s._scopeId=n),r){var l=s.computed||(s.computed={});Object.keys(r).forEach((function(e){var t=r[e];l[e]=function(){return t}}))}return{esModule:a,exports:i,options:s}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("input",{directives:[{name:"money",rawName:"v-money",value:{precision:e.precision,decimal:e.decimal,thousands:e.thousands,prefix:e.prefix,suffix:e.suffix},expression:"{precision, decimal, thousands, prefix, suffix}"}],staticClass:"v-money",attrs:{type:"tel"},domProps:{value:e.formattedValue},on:{change:e.change}})},staticRenderFns:[]}},function(e,t,n){e.exports=n(3)}])},"cq/+":function(e,t,n){var r=n("mc0g")();e.exports=r},cvCv:function(e,t){e.exports=function(e){return function(){return e}}},cybi:function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,'.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)}}',""])},czMo: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("wd/R"))},dD9F:function(e,t,n){var r=n("NykK"),a=n("shjB"),i=n("ExA7"),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&a(e.length)&&!!o[r(e)]}},dNwA: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("wd/R"))},dTAl:function(e,t,n){var r=n("GoyQ"),a=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(a)return a(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},dy1E:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("eO9T");t.default=(0,r.regex)("url",/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i)},"e+ae":function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function a(e,t,n,a){var i=e+" ";switch(n){case"s":return t||a?"pár sekúnd":"pár sekundami";case"ss":return t||a?i+(r(e)?"sekundy":"sekúnd"):i+"sekundami";case"m":return t?"minúta":a?"minútu":"minútou";case"mm":return t||a?i+(r(e)?"minúty":"minút"):i+"minútami";case"h":return t?"hodina":a?"hodinu":"hodinou";case"hh":return t||a?i+(r(e)?"hodiny":"hodín"):i+"hodinami";case"d":return t||a?"deň":"dňom";case"dd":return t||a?i+(r(e)?"dni":"dní"):i+"dňami";case"M":return t||a?"mesiac":"mesiacom";case"MM":return t||a?i+(r(e)?"mesiace":"mesiacov"):i+"mesiacmi";case"y":return t||a?"rok":"rokom";case"yy":return t||a?i+(r(e)?"roky":"rokov"):i+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},e4Nc:function(e,t,n){var r=n("fGT3"),a=n("k+1r"),i=n("JHgL"),o=n("pSRY"),s=n("H8j4");function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=o,l.prototype.set=s,e.exports=l},"eA/Y":function(e,t,n){"use strict";e.exports=i;var r=n("J78i"),a=Object.create(n("Onz0"));function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}a.inherits=n("P7XM"),a.inherits(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},eO9T:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regex=t.ref=t.len=t.req=t.withParams=void 0;var r,a=n("h1BH"),i=(r=a)&&r.__esModule?r:{default:r};t.withParams=i.default;var o=t.req=function(e){if(Array.isArray(e))return!!e.length;if(null==e||!1===e)return!1;if(e instanceof Date)return!isNaN(e.getTime());if("object"==typeof e){for(var t in e)return!0;return!1}return!!String(e).length};t.len=function(e){return Array.isArray(e)?e.length:"object"==typeof e?Object.keys(e).length:String(e).length},t.ref=function(e,t,n){return"function"==typeof e?e.call(t,n):n[e]},t.regex=function(e,t){return(0,i.default)({type:e},(function(e){return!o(e)||t.test(e)}))}},ebwN:function(e,t,n){var r=n("Cwc5")(n("Kz5y"),"Map");e.exports=r},ekgI:function(e,t,n){var r=n("YESw"),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)}},endd:function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},eqyj:function(e,t,n){"use strict";var r=n("xTJ+");e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,a,i,o){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(a)&&s.push("path="+a),r.isString(i)&&s.push("domain="+i),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},fCAa:function(e,t,n){"use strict";n("KUD6")},fGT3:function(e,t,n){var r=n("4kuk"),a=n("Xi7e"),i=n("ebwN");e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||a),string:new r}}},fHbr:function(e,t,n){"use strict";var r={inheritAttrs:!1,props:{duration:{type:[Number,Object],default:300},delay:{type:[Number,Object],default:0},group:Boolean,tag:{type:String,default:"span"},origin:{type:String,default:""},styles:{type:Object,default:function(){return{animationFillMode:"both",animationTimingFunction:"ease-out"}}}},computed:{componentType:function(){return this.group?"transition-group":"transition"},hooks:function(){return Object.assign({beforeEnter:this.beforeEnter,afterEnter:this.cleanUpStyles,beforeLeave:this.beforeLeave,leave:this.leave,afterLeave:this.cleanUpStyles},this.$listeners)}},methods:{beforeEnter:function(e){var t=this.duration.enter?this.duration.enter:this.duration;e.style.animationDuration=t+"ms";var n=this.delay.enter?this.delay.enter:this.delay;e.style.animationDelay=n+"ms",this.setStyles(e)},cleanUpStyles:function(e){var t=this;Object.keys(this.styles).forEach((function(n){t.styles[n]&&(e.style[n]="")})),e.style.animationDuration="",e.style.animationDelay=""},beforeLeave:function(e){var t=this.duration.leave?this.duration.leave:this.duration;e.style.animationDuration=t+"ms";var n=this.delay.leave?this.delay.leave:this.delay;e.style.animationDelay=n+"ms",this.setStyles(e)},leave:function(e){this.setAbsolutePosition(e)},setStyles:function(e){var t=this;this.setTransformOrigin(e),Object.keys(this.styles).forEach((function(n){var r=t.styles[n];r&&(e.style[n]=r)}))},setAbsolutePosition:function(e){return this.group&&(e.style.position="absolute"),this},setTransformOrigin:function(e){return this.origin&&(e.style.transformOrigin=this.origin),this}}};!function(){if("undefined"!=typeof document){var e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style"),n=" @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .fadeIn { animation-name: fadeIn; } @keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } } .fadeOut { animation-name: fadeOut; } .fade-move { transition: transform .3s ease-out; } ";t.type="text/css",t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n)),e.appendChild(t)}}();var a={render:function(){var e=this.$createElement;return(this._self._c||e)(this.componentType,this._g(this._b({tag:"component",attrs:{tag:this.tag,"enter-active-class":"fadeIn","move-class":"fade-move","leave-active-class":"fadeOut"}},"component",this.$attrs,!1),this.hooks),[this._t("default")],2)},staticRenderFns:[],name:"fade-transition",mixins:[r]};!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 i={render:function(){var e=this.$createElement;return(this._self._c||e)(this.componentType,this._g(this._b({tag:"component",attrs:{tag:this.tag,"enter-active-class":"zoomIn","move-class":"zoom-move","leave-active-class":"zoomOut"}},"component",this.$attrs,!1),this.hooks),[this._t("default")],2)},staticRenderFns:[],name:"zoom-center-transition",mixins:[r]};!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 o={render:function(){var e=this.$createElement;return(this._self._c||e)(this.componentType,this._g(this._b({tag:"component",attrs:{tag:this.tag,"enter-active-class":"zoomInX","move-class":"zoom-move","leave-active-class":"zoomOutX"}},"component",this.$attrs,!1),this.hooks),[this._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:[r]};!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 s={render:function(){var e=this.$createElement;return(this._self._c||e)(this.componentType,this._g(this._b({tag:"component",attrs:{tag:this.tag,"enter-active-class":"zoomInY","move-class":"zoom-move","leave-active-class":"zoomOutY"}},"component",this.$attrs,!1),this.hooks),[this._t("default")],2)},staticRenderFns:[],name:"zoom-y-transition",mixins:[r],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 l={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:[r],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 c={render:function(){var e=this.$createElement;return(this._self._c||e)(this.componentType,this._g(this._b({tag:"component",attrs:{tag:this.tag,"enter-active-class":"scaleIn","move-class":"scale-move","leave-active-class":"scaleOut"}},"component",this.$attrs,!1),this.hooks),[this._t("default")],2)},staticRenderFns:[],name:"scale-transition",mixins:[r],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 u={render:function(){var e=this.$createElement;return(this._self._c||e)(this.componentType,this._g(this._b({tag:"component",attrs:{tag:this.tag,type:"animation","enter-active-class":"slideYIn","move-class":"slide-move","leave-active-class":"slideYOut"}},"component",this.$attrs,!1),this.hooks),[this._t("default")],2)},staticRenderFns:[],name:"slide-y-up-transition",mixins:[r],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 d={render:function(){var e=this.$createElement;return(this._self._c||e)(this.componentType,this._g(this._b({tag:"component",attrs:{tag:this.tag,"enter-active-class":"slideYDownIn","leave-active-class":"slideYDownOut"}},"component",this.$attrs,!1),this.hooks),[this._t("default")],2)},staticRenderFns:[],name:"slide-y-down-transition",mixins:[r],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 p={render:function(){var e=this.$createElement;return(this._self._c||e)(this.componentType,this._g(this._b({tag:"component",attrs:{tag:this.tag,"enter-active-class":"slideXLeftIn","move-class":"slide-move","leave-active-class":"slideXLeftOut"}},"component",this.$attrs,!1),this.hooks),[this._t("default")],2)},staticRenderFns:[],name:"slide-x-left-transition",mixins:[r],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 f={render:function(){var e=this.$createElement;return(this._self._c||e)(this.componentType,this._g(this._b({tag:"component",attrs:{tag:this.tag,"enter-active-class":"slideXRightIn","move-class":"slide-move","leave-active-class":"slideXRightOut"}},"component",this.$attrs,!1),this.hooks),[this._t("default")],2)},staticRenderFns:[],name:"slide-x-right-transition",mixins:[r],props:{styles:{type:Object,default:function(){return{animationFillMode:"both",animationTimingFunction:"cubic-bezier(.25,.8,.50,1)"}}}}},m={};function h(e,t){t&&t.components?t.components.forEach((function(t){return e.component(t.name,m[t.name])})):Object.keys(m).forEach((function(t){e.component(t,m[t])}))}m[a.name]=a,m[i.name]=i,m[o.name]=o,m[s.name]=s,m[l.name]=l,m[c.name]=c,m[u.name]=u,m[d.name]=d,m[p.name]=p,m[f.name]=f,"undefined"!=typeof window&&window.Vue&&window.Vue.use({install:h});var _={install:h};t.a=_},fXKp:function(e,t,n){"use strict";var r=n("hwdV").Buffer,a=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===a||!a(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=u,this.end=d,t=3;break;default:return this.write=p,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"<22>";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"<22>";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"<22>"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}t.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"<22>":t},i.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var a=o(t[r]);if(a>=0)return a>0&&(e.lastNeed=a-1),a;if(--r<n||-2===a)return 0;if((a=o(t[r]))>=0)return a>0&&(e.lastNeed=a-2),a;if(--r<n||-2===a)return 0;if((a=o(t[r]))>=0)return a>0&&(2===a?a=0:e.lastNeed=a-3),a;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},fcSw:function(e){e.exports=JSON.parse('{"navigation":{"dashboard":"Dashboard","customers":"Customers","items":"Items","invoices":"Invoices","expenses":"Expenses","estimates":"Estimates","payments":"Payments","reports":"Reports","settings":"Settings","logout":"Logout","users":"Users"},"general":{"add_company":"Add Company","view_pdf":"View PDF","copy_pdf_url":"Copy PDF Url","download_pdf":"Download PDF","save":"Save","create":"Create","cancel":"Cancel","update":"Update","deselect":"Deselect","download":"Download","from_date":"From Date","to_date":"To Date","from":"From","to":"To","sort_by":"Sort By","ascending":"Ascending","descending":"Descending","subject":"Subject","body":"Body","message":"Message","send":"Send","go_back":"Go Back","back_to_login":"Back to Login?","home":"Home","filter":"Filter","delete":"Delete","edit":"Edit","view":"View","add_new_item":"Add New Item","clear_all":"Clear All","showing":"Showing","of":"of","actions":"Actions","subtotal":"SUBTOTAL","discount":"DISCOUNT","fixed":"Fixed","percentage":"Percentage","tax":"TAX","total_amount":"TOTAL AMOUNT","bill_to":"Bill to","ship_to":"Ship to","due":"Due","draft":"Draft","sent":"Sent","all":"All","select_all":"Select All","choose_file":"Click here to choose a file","choose_template":"Choose a template","choose":"Choose","remove":"Remove","powered_by":"Powered by","bytefury":"Bytefury","select_a_status":"Select a status","select_a_tax":"Select a tax","search":"Search","are_you_sure":"Are you sure?","list_is_empty":"List is empty.","no_tax_found":"No tax found!","four_zero_four":"404","you_got_lost":"Whoops! You got Lost!","go_home":"Go Home","test_mail_conf":"Test Mail Configuration","send_mail_successfully":"Mail sent successfully","setting_updated":"Setting updated successfully","select_state":"Select state","select_country":"Select Country","select_city":"Select City","street_1":"Street 1","street_2":"Street 2","action_failed":"Action Failed","retry":"Retry","choose_note":"Choose Note","no_note_found":"No Note Found","insert_note":"Insert Note","copied_pdf_url_clipboard":"Copied PDF url to clipboard!"},"dashboard":{"select_year":"Select year","cards":{"due_amount":"Amount Due","customers":"Customers","invoices":"Invoices","estimates":"Estimates"},"chart_info":{"total_sales":"Sales","total_receipts":"Receipts","total_expense":"Expenses","net_income":"Net Income","year":"Select year"},"weekly_invoices":{"title":"Weekly Invoices"},"monthly_chart":{"title":"Sales & Expenses"},"recent_invoices_card":{"title":"Due Invoices","due_on":"Due On","customer":"Customer","amount_due":"Amount Due","actions":"Actions","view_all":"View All"},"recent_estimate_card":{"title":"Recent Estimates","date":"Date","customer":"Customer","amount_due":"Amount Due","actions":"Actions","view_all":"View All"}},"tax_types":{"name":"Name","description":"Description","percent":"Percent","compound_tax":"Compound Tax"},"global_search":{"search":"Search...","customers":"Customers","users":"Users","no_results_found":"No Results Found"},"customers":{"title":"Customers","add_customer":"Add Customer","contacts_list":"Customer List","name":"Name","mail":"Mail | Mails","statement":"Statement","display_name":"Display Name","primary_contact_name":"Primary Contact Name","contact_name":"Contact Name","amount_due":"Amount Due","email":"Email","address":"Address","phone":"Phone","website":"Website","overview":"Overview","enable_portal":"Enable Portal","country":"Country","state":"State","city":"City","zip_code":"Zip Code","added_on":"Added On","action":"Action","password":"Password","street_number":"Street Number","primary_currency":"Primary Currency","description":"Description","add_new_customer":"Add New Customer","save_customer":"Save Customer","update_customer":"Update Customer","customer":"Customer | Customers","new_customer":"New Customer","edit_customer":"Edit Customer","basic_info":"Basic Info","billing_address":"Billing Address","shipping_address":"Shipping Address","copy_billing_address":"Copy from Billing","no_customers":"No customers yet!","no_customers_found":"No customers found!","list_of_customers":"This section will contain the list of customers.","primary_display_name":"Primary Display Name","select_currency":"Select currency","select_a_customer":"Select a customer","type_or_click":"Type or click to select","new_transaction":"New Transaction","no_matching_customers":"There are no matching customers!","phone_number":"Phone Number","create_date":"Create Date","confirm_delete":"You will not be able to recover this customer and all the related Invoices, Estimates and Payments. | You will not be able to recover these customers and all the related Invoices, Estimates and Payments.","created_message":"Customer created successfully","updated_message":"Customer updated successfully","deleted_message":"Customer deleted successfully | Customers deleted successfully"},"items":{"title":"Items","items_list":"Items List","name":"Name","unit":"Unit","description":"Description","added_on":"Added On","price":"Price","date_of_creation":"Date Of Creation","action":"Action","add_item":"Add Item","save_item":"Save Item","update_item":"Update Item","item":"Item | Items","add_new_item":"Add New Item","new_item":"New Item","edit_item":"Edit Item","no_items":"No items yet!","list_of_items":"This section will contain the list of items.","select_a_unit":"select unit","taxes":"Taxes","item_attached_message":"Cannot delete an item which is already in use","confirm_delete":"You will not be able to recover this Item | You will not be able to recover these Items","created_message":"Item created successfully","updated_message":"Item updated successfully","deleted_message":"Item deleted successfully | Items deleted successfully"},"estimates":{"title":"Estimates","estimate":"Estimate | Estimates","estimates_list":"Estimates List","days":"{days} Days","months":"{months} Month","years":"{years} Year","all":"All","paid":"Paid","unpaid":"Unpaid","customer":"CUSTOMER","ref_no":"REF NO.","number":"NUMBER","amount_due":"AMOUNT DUE","partially_paid":"Partially Paid","total":"Total","discount":"Discount","sub_total":"Sub Total","estimate_number":"Estimate Number","ref_number":"Ref Number","contact":"Contact","add_item":"Add an Item","date":"Date","due_date":"Due Date","expiry_date":"Expiry Date","status":"Status","add_tax":"Add Tax","amount":"Amount","action":"Action","notes":"Notes","tax":"Tax","estimate_template":"Template","convert_to_invoice":"Convert to Invoice","mark_as_sent":"Mark as Sent","send_estimate":"Send Estimate","resend_estimate":"Resend Estimate","record_payment":"Record Payment","add_estimate":"Add Estimate","save_estimate":"Save Estimate","confirm_conversion":"This estimate will be used to create a new Invoice.","conversion_message":"Invoice created successful","confirm_send_estimate":"This estimate will be sent via email to the customer","confirm_mark_as_sent":"This estimate will be marked as sent","confirm_mark_as_accepted":"This estimate will be marked as Accepted","confirm_mark_as_rejected":"This estimate will be marked as Rejected","no_matching_estimates":"There are no matching estimates!","mark_as_sent_successfully":"Estimate marked as sent successfully","send_estimate_successfully":"Estimate sent successfully","errors":{"required":"Field is required"},"accepted":"Accepted","sent":"Sent","draft":"Draft","declined":"Declined","new_estimate":"New Estimate","add_new_estimate":"Add New Estimate","update_Estimate":"Update Estimate","edit_estimate":"Edit Estimate","items":"items","Estimate":"Estimate | Estimates","add_new_tax":"Add New Tax","no_estimates":"No estimates yet!","list_of_estimates":"This section will contain the list of estimates.","mark_as_rejected":"Mark as rejected","mark_as_accepted":"Mark as accepted","marked_as_accepted_message":"Estimate marked as accepted","marked_as_rejected_message":"Estimate marked as rejected","confirm_delete":"You will not be able to recover this Estimate | You will not be able to recover these Estimates","created_message":"Estimate created successfully","updated_message":"Estimate updated successfully","deleted_message":"Estimate deleted successfully | Estimates deleted successfully","user_email_does_not_exist":"User email does not exist","something_went_wrong":"something went wrong","item":{"title":"Item Title","description":"Description","quantity":"Quantity","price":"Price","discount":"Discount","total":"Total","total_discount":"Total Discount","sub_total":"Sub Total","tax":"Tax","amount":"Amount","select_an_item":"Type or click to select an item","type_item_description":"Type Item Description (optional)"}},"invoices":{"title":"Invoices","invoices_list":"Invoices List","days":"{days} Days","months":"{months} Month","years":"{years} Year","all":"All","paid":"Paid","unpaid":"Unpaid","customer":"CUSTOMER","paid_status":"PAID STATUS","ref_no":"REF NO.","number":"NUMBER","amount_due":"AMOUNT DUE","partially_paid":"Partially Paid","total":"Total","discount":"Discount","sub_total":"Sub Total","invoice":"Invoice | Invoices","invoice_number":"Invoice Number","ref_number":"Ref Number","contact":"Contact","add_item":"Add an Item","date":"Date","due_date":"Due Date","status":"Status","add_tax":"Add Tax","amount":"Amount","action":"Action","notes":"Notes","view":"View","send_invoice":"Send Invoice","resend_invoice":"Resend Invoice","invoice_template":"Invoice Template","template":"Template","mark_as_sent":"Mark as sent","confirm_send_invoice":"This invoice will be sent via email to the customer","invoice_mark_as_sent":"This invoice will be marked as sent","confirm_send":"This invoice will be sent via email to the customer","invoice_date":"Invoice Date","record_payment":"Record Payment","add_new_invoice":"Add New Invoice","update_expense":"Update Expense","edit_invoice":"Edit Invoice","new_invoice":"New Invoice","save_invoice":"Save Invoice","update_invoice":"Update Invoice","add_new_tax":"Add New Tax","no_invoices":"No Invoices yet!","list_of_invoices":"This section will contain the list of invoices.","select_invoice":"Select Invoice","no_matching_invoices":"There are no matching invoices!","mark_as_sent_successfully":"Invoice marked as sent successfully","send_invoice_successfully":"Invoice sent successfully","cloned_successfully":"Invoice cloned successfully","clone_invoice":"Clone Invoice","confirm_clone":"This invoice will be cloned into a new Invoice","item":{"title":"Item Title","description":"Description","quantity":"Quantity","price":"Price","discount":"Discount","total":"Total","total_discount":"Total Discount","sub_total":"Sub Total","tax":"Tax","amount":"Amount","select_an_item":"Type or click to select an item","type_item_description":"Type Item Description (optional)"},"payment_attached_message":"One of the selected invoices already have a payment attached to it. Make sure to delete the attached payments first in order to go ahead with the removal","confirm_delete":"You will not be able to recover this Invoice | You will not be able to recover these Invoices","created_message":"Invoice created successfully","updated_message":"Invoice updated successfully","deleted_message":"Invoice deleted successfully | Invoices deleted successfully","marked_as_sent_message":"Invoice marked as sent successfully","user_email_does_not_exist":"User email does not exist","something_went_wrong":"something went wrong","invalid_due_amount_message":"Total Invoice amount cannot be less than total paid amount for this Invoice. Please update the invoice or delete the associated payments to continue."},"credit_notes":{"title":"Credit Notes","credit_notes_list":"Credit Notes List","credit_notes":"Credit Notes","contact":"Contact","date":"Date","amount":"Amount","action":"Action","credit_number":"Credit Number","notes":"Notes","confirm_delete":"Do you want to delete this credit note?","item":{"title":"Item Title","description":"Description","quantity":"Quantity","price":"Price","discount":"Discount","total":"Total","total_discount":"Total Discount","sub_total":"Sub Total","tax":"Tax"}},"payments":{"title":"Payments","payments_list":"Payments List","record_payment":"Record Payment","customer":"Customer","date":"Date","amount":"Amount","action":"Action","payment_number":"Payment Number","payment_mode":"Payment Mode","invoice":"Invoice","note":"Note","add_payment":"Add Payment","new_payment":"New Payment","edit_payment":"Edit Payment","view_payment":"View Payment","add_new_payment":"Add New Payment","send_payment_receipt":"Send Payment Receipt","send_payment":"Send Payment","save_payment":"Save Payment","update_payment":"Update Payment","payment":"Payment | Payments","no_payments":"No payments yet!","no_matching_payments":"There are no matching payments!","list_of_payments":"This section will contain the list of payments.","select_payment_mode":"Select payment mode","confirm_mark_as_sent":"This estimate will be marked as sent","confirm_send_payment":"This payment will be sent via email to the customer","send_payment_successfully":"Payment sent successfully","user_email_does_not_exist":"User email does not exist","something_went_wrong":"something went wrong","confirm_delete":"You will not be able to recover this Payment | You will not be able to recover these Payments","created_message":"Payment created successfully","updated_message":"Payment updated successfully","deleted_message":"Payment deleted successfully | Payments deleted successfully","invalid_amount_message":"Payment amount is invalid"},"expenses":{"title":"Expenses","expenses_list":"Expenses List","select_a_customer":"Select a customer","expense_title":"Title","customer":"Customer","contact":"Contact","category":"Category","from_date":"From Date","to_date":"To Date","expense_date":"Date","description":"Description","receipt":"Receipt","amount":"Amount","action":"Action","note":"Note","category_id":"Category Id","date":"Date","add_expense":"Add Expense","add_new_expense":"Add New Expense","save_expense":"Save Expense","update_expense":"Update Expense","download_receipt":"Download Receipt","edit_expense":"Edit Expense","new_expense":"New Expense","expense":"Expense | Expenses","no_expenses":"No expenses yet!","list_of_expenses":"This section will contain the list of expenses.","confirm_delete":"You will not be able to recover this Expense | You will not be able to recover these Expenses","created_message":"Expense created successfully","updated_message":"Expense updated successfully","deleted_message":"Expense deleted successfully | Expenses deleted successfully","categories":{"categories_list":"Categories List","title":"Title","name":"Name","description":"Description","amount":"Amount","actions":"Actions","add_category":"Add Category","new_category":"New Category","category":"Category | Categories","select_a_category":"Select a category"}},"login":{"email":"Email","password":"Password","forgot_password":"Forgot Password?","or_signIn_with":"or Sign in with","login":"Login","register":"Register","reset_password":"Reset Password","password_reset_successfully":"Password Reset Successfully","enter_email":"Enter email","enter_password":"Enter Password","retype_password":"Retype Password","login_placeholder":"mail@example.com"},"users":{"title":"Users","users_list":"Users List","name":"Name","description":"Description","added_on":"Added On","date_of_creation":"Date Of Creation","action":"Action","add_user":"Add User","save_user":"Save User","update_user":"Update User","user":"User | Users","add_new_user":"Add New User","new_user":"New User","edit_user":"Edit User","no_users":"No users yet!","list_of_users":"This section will contain the list of users.","email":"Email","phone":"Phone","password":"Password","user_attached_message":"Cannot delete an item which is already in use","confirm_delete":"You will not be able to recover this User | You will not be able to recover these Users","created_message":"User created successfully","updated_message":"User updated successfully","deleted_message":"User deleted successfully | User deleted successfully"},"reports":{"title":"Report","from_date":"From Date","to_date":"To Date","status":"Status","paid":"Paid","unpaid":"Unpaid","download_pdf":"Download PDF","view_pdf":"View PDF","update_report":"Update Report","report":"Report | Reports","profit_loss":{"profit_loss":"Profit & Loss","to_date":"To Date","from_date":"From Date","date_range":"Select Date Range"},"sales":{"sales":"Sales","date_range":"Select Date Range","to_date":"To Date","from_date":"From Date","report_type":"Report Type"},"taxes":{"taxes":"Taxes","to_date":"To Date","from_date":"From Date","date_range":"Select Date Range"},"errors":{"required":"Field is required"},"invoices":{"invoice":"Invoice","invoice_date":"Invoice Date","due_date":"Due Date","amount":"Amount","contact_name":"Contact Name","status":"Status"},"estimates":{"estimate":"Estimate","estimate_date":"Estimate Date","due_date":"Due Date","estimate_number":"Estimate Number","ref_number":"Ref Number","amount":"Amount","contact_name":"Contact Name","status":"Status"},"expenses":{"expenses":"Expenses","category":"Category","date":"Date","amount":"Amount","to_date":"To Date","from_date":"From Date","date_range":"Select Date Range"}},"settings":{"menu_title":{"account_settings":"Account Settings","company_information":"Company Information","customization":"Customization","preferences":"Preferences","notifications":"Notifications","tax_types":"Tax Types","expense_category":"Expense Categories","update_app":"Update App","backup":"Backup","file_disk":"File Disk","custom_fields":"Custom Fields","payment_modes":"Payment Modes","notes":"Notes"},"title":"Settings","setting":"Settings | Settings","general":"General","language":"Language","primary_currency":"Primary Currency","timezone":"Time Zone","date_format":"Date Format","currencies":{"title":"Currencies","currency":"Currency | Currencies","currencies_list":"Currencies List","select_currency":"Select Currency","name":"Name","code":"Code","symbol":"Symbol","precision":"Precision","thousand_separator":"Thousand Separator","decimal_separator":"Decimal Separator","position":"Position","position_of_symbol":"Position Of Symbol","right":"Right","left":"Left","action":"Action","add_currency":"Add Currency"},"mail":{"host":"Mail Host","port":"Mail Port","driver":"Mail Driver","secret":"Secret","mailgun_secret":"Mailgun Secret","mailgun_domain":"Domain","mailgun_endpoint":"Mailgun Endpoint","ses_secret":"SES Secret","ses_key":"SES Key","password":"Mail Password","username":"Mail Username","mail_config":"Mail Configuration","from_name":"From Mail Name","from_mail":"From Mail Address","encryption":"Mail Encryption","mail_config_desc":"Below is the form for Configuring Email driver for sending emails from the app. You can also configure third party providers like Sendgrid, SES etc."},"pdf":{"title":"PDF Setting","footer_text":"Footer Text","pdf_layout":"PDF Layout"},"company_info":{"company_info":"Company info","company_name":"Company Name","company_logo":"Company Logo","section_description":"Information about your company that will be displayed on invoices, estimates and other documents created by Crater.","phone":"Phone","country":"Country","state":"State","city":"City","address":"Address","zip":"Zip","save":"Save","updated_message":"Company information updated successfully"},"custom_fields":{"title":"Custom Fields","section_description":"Customize your Invoices, Estimates & Payment Receipts with your own fields. Make sure to use the below added fields on the address formats on Customization settings page.","add_custom_field":"Add Custom Field","edit_custom_field":"Edit Custom Field","field_name":"Field Name","label":"Label","type":"Type","name":"Name","required":"Required","placeholder":"Placeholder","help_text":"Help Text","default_value":"Default Value","prefix":"Prefix","starting_number":"Starting Number","model":"Model","help_text_description":"Enter some text to help users understand the purpose of this custom field.","suffix":"Suffix","yes":"Yes","no":"No","order":"Order","custom_field_confirm_delete":"You will not be able to recover this Custom Field","already_in_use":"Custom Field is already in use","deleted_message":"Custom Field deleted successfully","options":"options","add_option":"Add Options","add_another_option":"Add another option","sort_in_alphabetical_order":"Sort in Alphabetical Order","add_options_in_bulk":"Add options in bulk","use_predefined_options":"Use Predefined Options","select_custom_date":"Select Custom Date","select_relative_date":"Select Relative Date","ticked_by_default":"Ticked by default","updated_message":"Custom Field updated successfully","added_message":"Custom Field added successfully"},"customization":{"customization":"customization","save":"Save","addresses":{"title":"Addresses","section_description":"You can set Customer Billing Address and Customer Shipping Address Format (Displayed in PDF only). ","customer_billing_address":"Customer Billing Address","customer_shipping_address":"Customer Shipping Address","company_address":"Company Address","insert_fields":"Insert Fields","contact":"Contact","address":"Address","display_name":"Display Name","primary_contact_name":"Primary Contact Name","email":"Email","website":"Website","name":"Name","country":"Country","state":"State","city":"City","company_name":"Company Name","address_street_1":"Address Street 1","address_street_2":"Address Street 2","phone":"Phone","zip_code":"Zip Code","address_setting_updated":"Address Setting updated successfully"},"updated_message":"Company information updated successfully","invoices":{"title":"Invoices","notes":"Notes","invoice_prefix":"Invoice Prefix","default_invoice_email_body":"Default Invoice Email Body","invoice_settings":"Invoice Settings","autogenerate_invoice_number":"Auto-generate Invoice Number","invoice_setting_description":"Disable this, If you don\'t wish to auto-generate invoice numbers each time you create a new invoice.","enter_invoice_prefix":"Enter invoice prefix","terms_and_conditions":"Terms and Conditions","company_address_format":"Company Address Format","shipping_address_format":"Shipping Address Format","billing_address_format":"Billing Address Format","invoice_setting_updated":"Invoice Setting updated successfully"},"estimates":{"title":"Estimates","estimate_prefix":"Estimate Prefix","default_estimate_email_body":"Default Estimate Email Body","estimate_settings":"Estimate Settings","autogenerate_estimate_number":"Auto-generate Estimate Number","estimate_setting_description":"Disable this, If you don\'t wish to auto-generate estimate numbers each time you create a new estimate.","enter_estimate_prefix":"Enter estmiate prefix","estimate_setting_updated":"Estimate Setting updated successfully","company_address_format":"Company Address Format","billing_address_format":"Billing Address Format","shipping_address_format":"Shipping Address Format"},"payments":{"title":"Payments","description":"Modes of transaction for payments","payment_prefix":"Payment Prefix","default_payment_email_body":"Default Payment Email Body","payment_settings":"Payment Settings","autogenerate_payment_number":"Auto-generate Payment Number","payment_setting_description":"Disable this, If you don\'t wish to auto-generate payment numbers each time you create a new payment.","enter_payment_prefix":"Enter Payment Prefix","payment_setting_updated":"Payment Setting updated successfully","payment_modes":"Payment Modes","add_payment_mode":"Add Payment Mode","edit_payment_mode":"Edit Payment Mode","mode_name":"Mode Name","payment_mode_added":"Payment Mode Added","payment_mode_updated":"Payment Mode Updated","payment_mode_confirm_delete":"You will not be able to recover this Payment Mode","already_in_use":"Payment Mode is already in use","deleted_message":"Payment Mode deleted successfully","company_address_format":"Company Address Format","from_customer_address_format":"From Customer Address Format"},"items":{"title":"Items","units":"Units","add_item_unit":"Add Item Unit","edit_item_unit":"Edit Item Unit","unit_name":"Unit Name","item_unit_added":"Item Unit Added","item_unit_updated":"Item Unit Updated","item_unit_confirm_delete":"You will not be able to recover this Item unit","already_in_use":"Item Unit is already in use","deleted_message":"Item Unit deleted successfully"},"notes":{"title":"Notes","description":"Save time by creating notes and reusing them on your invoices, estimates & payments.","notes":"Notes","type":"Type","add_note":"Add Note","add_new_note":"Add New Note","name":"Name","edit_note":"Edit Note","note_added":"Note added successfully","note_updated":"Note Updated successfully","note_confirm_delete":"You will not be able to recover this Note","already_in_use":"Note is already in use","deleted_message":"Note deleted successfully"}},"account_settings":{"profile_picture":"Profile Picture","name":"Name","email":"Email","password":"Password","confirm_password":"Confirm Password","account_settings":"Account Settings","save":"Save","section_description":"You can update your name, email & password using the form below.","updated_message":"Account Settings updated successfully"},"user_profile":{"name":"Name","email":"Email","password":"Password","confirm_password":"Confirm Password"},"notification":{"title":"Notification","email":"Send Notifications to","description":"Which email notifications would you like to receive when something changes?","invoice_viewed":"Invoice viewed","invoice_viewed_desc":"When your customer views the invoice sent via crater dashboard.","estimate_viewed":"Estimate viewed","estimate_viewed_desc":"When your customer views the estimate sent via crater dashboard.","save":"Save","email_save_message":"Email saved successfully","please_enter_email":"Please Enter Email"},"tax_types":{"title":"Tax Types","add_tax":"Add Tax","edit_tax":"Edit Tax","description":"You can add or Remove Taxes as you please. Crater supports Taxes on Individual Items as well as on the invoice.","add_new_tax":"Add New Tax","tax_settings":"Tax Settings","tax_per_item":"Tax Per Item","tax_name":"Tax Name","compound_tax":"Compound Tax","percent":"Percent","action":"Action","tax_setting_description":"Enable this if you want to add taxes to individual invoice items. By default, taxes are added directly to the invoice.","created_message":"Tax type created successfully","updated_message":"Tax type updated successfully","deleted_message":"Tax type deleted successfully","confirm_delete":"You will not be able to recover this Tax Type","already_in_use":"Tax is already in use"},"expense_category":{"title":"Expense Categories","action":"Action","description":"Categories are required for adding expense entries. You can Add or Remove these categories according to your preference.","add_new_category":"Add New Category","add_category":"Add Category","edit_category":"Edit Category","category_name":"Category Name","category_description":"Description","created_message":"Expense Category created successfully","deleted_message":"Expense category deleted successfully","updated_message":"Expense category updated successfully","confirm_delete":"You will not be able to recover this Expense Category","already_in_use":"Category is already in use"},"preferences":{"currency":"Currency","default_language":"Default Language","time_zone":"Time Zone","fiscal_year":"Financial Year","date_format":"Date Format","discount_setting":"Discount Setting","discount_per_item":"Discount Per Item ","discount_setting_description":"Enable this if you want to add Discount to individual invoice items. By default, Discount is added directly to the invoice.","save":"Save","preference":"Preference | Preferences","general_settings":"Default preferences for the system.","updated_message":"Preferences updated successfully","select_language":"Select Language","select_time_zone":"Select Time Zone","select_date_format":"Select Date Format","select_financial_year":"Select Financial Year"},"update_app":{"title":"Update App","description":"You can easily update Crater by checking for a new update by clicking the button below","check_update":"Check for updates","avail_update":"New Update available","next_version":"Next version","requirements":"Requirements","update":"Update Now","update_progress":"Update in progress...","progress_text":"It will just take a few minutes. Please do not refresh the screen or close the window before the update finishes","update_success":"App has been updated! Please wait while your browser window gets reloaded automatically.","latest_message":"No update available! You are on the latest version.","current_version":"Current Version","download_zip_file":"Download ZIP file","unzipping_package":"Unzipping Package","copying_files":"Copying Files","deleting_files":"Deleting Unused files","running_migrations":"Running Migrations","finishing_update":"Finishing Update","update_failed":"Update Failed","update_failed_text":"Sorry! Your update failed on : {step} step"},"backup":{"title":"Backup | Backups","description":"The backup is a zipfile that contains all files in the directories you specify along with a dump of your database","new_backup":"Add New Backup","create_backup":"Create Backup","select_backup_type":"Select Backup Type","backup_confirm_delete":"You will not be able to recover this Backup","path":"path","new_disk":"New Disk","created_at":"created at","size":"size","dropbox":"dropbox","local":"local","healthy":"healthy","amount_of_backups":"amount of backups","newest_backups":"newest backups","used_storage":"used storage","select_disk":"Select Disk","action":"Action","deleted_message":"Backup deleted successfully","created_message":"Backup created successfully","invalid_disk_credentials":"Invalid credential of selected disk"},"disk":{"title":"File Disk | File Disks","description":"By default, Crater will use your local disk for saving backups, avatar and other image files. You can configure more than one disk drivers like DigitalOcean, S3 and Dropbox according to your preference.","created_at":"created at","dropbox":"dropbox","name":"Name","driver":"Driver","disk_type":"Type","disk_name":"Disk Name","new_disk":"Add New Disk","filesystem_driver":"Filesystem Driver","local_driver":"local Driver","local_root":"local Root","public_driver":"Public Driver","public_root":"Public Root","public_url":"Public URL","public_visibility":"Public Visibility","media_driver":"Media Driver","media_root":"Media Root","aws_driver":"AWS Driver","aws_key":"AWS Key","aws_secret":"AWS Secret","aws_region":"AWS Region","aws_bucket":"AWS Bucket","aws_root":"AWS Root","do_spaces_type":"Do Spaces type","do_spaces_key":"Do Spaces key","do_spaces_secret":"Do Spaces Secret","do_spaces_region":"Do Spaces Region","do_spaces_bucket":"Do Spaces Bucket","do_spaces_endpoint":"Do Spaces Endpoint","do_spaces_root":"Do Spaces Root","dropbox_type":"Dropbox Type","dropbox_token":"Dropbox Token","dropbox_key":"Dropbox Key","dropbox_secret":"Dropbox Secret","dropbox_app":"Dropbox App","dropbox_root":"Dropbox Root","default_driver":"Default Driver","is_default":"IS DEFAULT","set_default_disk":"Set Default Disk","set_default_disk_confirm":"This disk will be set as default and all the new PDFs will be saved on this disk","success_set_default_disk":"Disk set as default successfully","save_pdf_to_disk":"Save PDFs to Disk","disk_setting_description":" Enable this, if you wish to save a copy of each Invoice, Estimate & Payment Receipt PDF on your default disk automatically. Turning this option will decrease the load-time when viewing the PDFs.","select_disk":"Select Disk","disk_settings":"Disk Settings","confirm_delete":"Your existing files & folders in the specified disk will not be affected but your disk configuration will be deleted from Crater","action":"Action","edit_file_disk":"Edit File Disk","success_create":"Disk added successfully","success_update":"Disk updated successfully","error":"Disk addition failed","deleted_message":"File Disk deleted successfully","disk_variables_save_successfully":"Disk Configured Successfully","disk_variables_save_error":"Disk configuration failed.","invalid_disk_credentials":"Invalid credential of selected disk"}},"wizard":{"account_info":"Account Information","account_info_desc":"Below details will be used to create the main Administrator account. Also you can change the details anytime after logging in.","name":"Name","email":"Email","password":"Password","confirm_password":"Confirm Password","save_cont":"Save & Continue","company_info":"Company Information","company_info_desc":"This information will be displayed on invoices. Note that you can edit this later on settings page.","company_name":"Company Name","company_logo":"Company Logo","logo_preview":"Logo Preview","preferences":"Preferences","preferences_desc":"Default preferences for the system.","country":"Country","state":"State","city":"City","address":"Address","street":"Street1 | Street2","phone":"Phone","zip_code":"Zip Code","go_back":"Go Back","currency":"Currency","language":"Language","time_zone":"Time Zone","fiscal_year":"Financial Year","date_format":"Date Format","from_address":"From Address","username":"Username","next":"Next","continue":"Continue","skip":"Skip","database":{"database":"Site URL & Database","connection":"Database Connection","host":"Database Host","port":"Database Port","password":"Database Password","app_url":"App URL","app_domain":"App Domain","username":"Database Username","db_name":"Database Name","db_path":"Database Path","desc":"Create a database on your server and set the credentials using the form below."},"permissions":{"permissions":"Permissions","permission_confirm_title":"Are you sure you want to continue?","permission_confirm_desc":"Folder permission check failed","permission_desc":"Below is the list of folder permissions which are required in order for the app to work. If the permission check fails, make sure to update your folder permissions."},"mail":{"host":"Mail Host","port":"Mail Port","driver":"Mail Driver","secret":"Secret","mailgun_secret":"Mailgun Secret","mailgun_domain":"Domain","mailgun_endpoint":"Mailgun Endpoint","ses_secret":"SES Secret","ses_key":"SES Key","password":"Mail Password","username":"Mail Username","mail_config":"Mail Configuration","from_name":"From Mail Name","from_mail":"From Mail Address","encryption":"Mail Encryption","mail_config_desc":"Below is the form for Configuring Email driver for sending emails from the app. You can also configure third party providers like Sendgrid, SES etc."},"req":{"system_req":"System Requirements","php_req_version":"Php (version {version} required)","check_req":"Check Requirements","system_req_desc":"Crater has a few server requirements. Make sure that your server has the required php version and all the extensions mentioned below."},"errors":{"migrate_failed":"Migrate Failed","database_variables_save_error":"Cannot write configuration to .env file. Please check its file permissions","mail_variables_save_error":"Email configuration failed.","connection_failed":"Database connection failed","database_should_be_empty":"Database should be empty"},"success":{"mail_variables_save_successfully":"Email configured successfully","database_variables_save_successfully":"Database configured successfully."}},"layout_login":{"copyright_crater":"Copyright @ Crater - 2020","super_simple_invoicing":"Super Simple Invoicing","for_freelancer":"for Freelancers &","small_businesses":"Small Businesses ","crater_help":"Crater helps you track expenses, record payments & generate beautiful","invoices_and_estimates":"invoices & estimates with ability to choose multiple templates."},"validation":{"invalid_phone":"Invalid Phone Number","invalid_url":"Invalid url (ex: http://www.crater.com)","invalid_domain_url":"Invalid url (ex: crater.com)","required":"Field is required","email_incorrect":"Incorrect Email.","email_already_taken":"The email has already been taken.","email_does_not_exist":"User with given email doesn\'t exist","item_unit_already_taken":"This item unit name has already been taken","payment_mode_already_taken":"This payment mode name has already been taken","send_reset_link":"Send Reset Link","not_yet":"Not yet? Send it again","password_min_length":"Password must contain {count} characters","name_min_length":"Name must have at least {count} letters.","enter_valid_tax_rate":"Enter valid tax rate","numbers_only":"Numbers Only.","characters_only":"Characters Only.","password_incorrect":"Passwords must be identical","password_length":"Password must be {count} character long.","qty_must_greater_than_zero":"Quantity must be greater than zero.","price_greater_than_zero":"Price must be greater than zero.","payment_greater_than_zero":"Payment must be greater than zero.","payment_greater_than_due_amount":"Entered Payment is more than due amount of this invoice.","quantity_maxlength":"Quantity should not be greater than 20 digits.","price_maxlength":"Price should not be greater than 20 digits.","price_minvalue":"Price should be greater than 0.","amount_maxlength":"Amount should not be greater than 20 digits.","amount_minvalue":"Amount should be greater than 0.","description_maxlength":"Description should not be greater than 65,000 characters.","subject_maxlength":"Subject should not be greater than 100 characters.","message_maxlength":"Message should not be greater than 255 characters.","maximum_options_error":"Maximum of {max} options selected. First remove a selected option to select another.","notes_maxlength":"Notes should not be greater than 65,000 characters.","address_maxlength":"Address should not be greater than 255 characters.","ref_number_maxlength":"Ref Number should not be greater than 255 characters.","prefix_maxlength":"Prefix should not be greater than 5 characters.","something_went_wrong":"something went wrong"},"pdf_estimate_label":"Estimate","pdf_estimate_number":"Estimate Number","pdf_estimate_date":"Estimate Date","pdf_estimate_expire_date":"Expiry date","pdf_invoice_label":"Invoice","pdf_invoice_number":"Invoice Number","pdf_invoice_date":"Invoice Date","pdf_invoice_due_date":"Due date","pdf_notes":"Notes","pdf_items_label":"Items","pdf_quantity_label":"Quantity","pdf_price_label":"Price","pdf_discount_label":"Discount","pdf_amount_label":"Amount","pdf_subtotal":"Subtotal","pdf_total":"Total","pdf_payment_receipt_label":"PAYMENT RECEIPT","pdf_payment_date":"Payment Date","pdf_payment_number":"Payment Number","pdf_payment_mode":"Payment Mode","pdf_payment_amount_received_label":"Amount Received","pdf_expense_report_label":"EXPENSES REPORT","pdf_total_expenses_label":"TOTAL EXPENSE","pdf_profit_loss_label":"PROFIT & LOSS REPORT","pdf_income_label":"INCOME","pdf_net_profit_label":"NET PROFIT","pdf_customer_sales_report":"Sales Report: By Customer","pdf_total_sales_label":"TOTAL SALES","pdf_item_sales_label":"Sales Report: By Item","pdf_tax_report_label":"TAX REPORT","pdf_total_tax_label":"TOTAL TAX","pdf_tax_types_label":"Tax Types","pdf_expenses_label":"Expenses","pdf_bill_to":"Bill to,","pdf_ship_to":"Ship to,","pdf_received_from":"Received from:"}')},fchd:function(e,t,n){"use strict";n("RK2C")},fmRc:function(e,t,n){var r=n("Xi7e"),a=n("77Zs"),i=n("L8xA"),o=n("gCq4"),s=n("VaNO"),l=n("0Cz8");function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=a,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=l,e.exports=c},fvq0:function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,'@charset "UTF-8";fieldset[disabled] .multiselect{pointer-events:none}.multiselect__spinner{right:1px;top:1px}.multiselect__spinner-after,.multiselect__spinner-before{position:absolute;content:"";top:50%;left:50%;margin:-8px 0 0 -8px;z-index:5;width:16px;height:16px;border-radius:100%;border:2px solid transparent;border-top-color:#41b883;box-shadow:0 0 0 1px transparent}.multiselect__spinner-after{-webkit-animation:spinning 2.4s cubic-bezier(.51,.09,.21,.8);animation:spinning 2.4s cubic-bezier(.51,.09,.21,.8);-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.multiselect__spinner-before{-webkit-animation:spinning 2.4s cubic-bezier(.41,.26,.2,.62);animation:spinning 2.4s cubic-bezier(.41,.26,.2,.62);-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.multiselect__loading-enter-active,.multiselect__loading-leave-active{transition:opacity .4s ease-in-out;opacity:1}.multiselect__loading-enter,.multiselect__loading-leave-active{opacity:0}.multiselect,.multiselect__input,.multiselect__single{font-family:inherit;touch-action:manipulation}.multiselect{box-sizing:content-box;display:block;position:relative;width:100%;min-height:40px;text-align:left;color:#35495e}.multiselect *{box-sizing:border-box}.multiselect:focus{border-width:1px;border-style:solid;--border-opacity:1;border-color:#5851d8;border-color:rgba(88,81,216,var(--border-opacity))}.multiselect--disabled{pointer-events:none;opacity:.6}.multiselect--active:not(.multiselect--above) .multiselect__current,.multiselect--active:not(.multiselect--above) .multiselect__input,.multiselect--active:not(.multiselect--above) .multiselect__tags{border-bottom-left-radius:0;border-bottom-right-radius:0}.multiselect--active .multiselect__select{transform:rotate(180deg)}.multiselect--above.multiselect--active .multiselect__current,.multiselect--above.multiselect--active .multiselect__input,.multiselect--above.multiselect--active .multiselect__tags{border-top-left-radius:0;border-top-right-radius:0}.multiselect__input,.multiselect__single{min-height:20px;transition:border .1s ease}.multiselect__input::-moz-placeholder{--text-opacity:1;color:#cbd5e0;color:rgba(203,213,224,var(--text-opacity))}.multiselect__input:-ms-input-placeholder{--text-opacity:1;color:#cbd5e0;color:rgba(203,213,224,var(--text-opacity))}.multiselect__input::placeholder{--text-opacity:1;color:#cbd5e0;color:rgba(203,213,224,var(--text-opacity))}.multiselect__tag~.multiselect__input,.multiselect__tag~.multiselect__single{width:auto}.multiselect__input:hover,.multiselect__single:hover{border-color:#cfcfcf}.multiselect__input:focus,.multiselect__single:focus{border-color:#a8a8a8;outline:none}.multiselect__tag{text-overflow:ellipsis}.multiselect__tag-icon{font-style:normal}.multiselect__tag-icon:after{content:"\\D7";color:#fff;font-size:14px}.multiselect__tag-icon:focus:after,.multiselect__tag-icon:hover:after{color:#fff}.multiselect__current{line-height:16px;min-height:40px;box-sizing:border-box;display:block;overflow:hidden;padding:8px 30px 0 12px;white-space:nowrap;margin:0;text-decoration:none;border-radius:5px;border:1px solid #ebf1fa;cursor:pointer}.multiselect__select{right:1px;top:1px;transition:transform .2s}.multiselect__select:before{position:relative;right:0;top:55%;color:#a5acc1;margin-top:4px;border-color:#a5acc1 transparent transparent;border-style:solid;border-width:5px 5px 0;content:""}.multiselect__placeholder{--text-opacity:1;color:#cbd5e0;color:rgba(203,213,224,var(--text-opacity));display:inline-block;margin-bottom:10px;padding-top:2px}.multiselect--active .multiselect__placeholder{display:none}.multiselect__content-wrapper{max-height:240px;-webkit-overflow-scrolling:touch}.multiselect--above .multiselect__content-wrapper{bottom:100%;border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:5px;border-top-right-radius:5px;border-bottom:none;border-top:1px solid #e8e8e8}.multiselect__content::webkit-scrollbar{display:none}.multiselect__option{min-height:40px}.multiselect__option:after{top:0;right:0;position:absolute;line-height:40px;padding-right:12px;padding-left:20px;font-size:13px}.multiselect__option--highlight{background:#41b883;outline:none;color:#fff}.multiselect__option--highlight:after{content:attr(data-select);background:#41b883;color:#fff}.multiselect__option--selected{background:#f3f3f3;color:#35495e;font-weight:700}.multiselect__option--selected:after{content:attr(data-selected);color:silver}.multiselect__option--selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect--disabled .multiselect__current,.multiselect--disabled .multiselect__select{background:#ebf1fa;--text-opacity:1;color:#cbd5e0;color:rgba(203,213,224,var(--text-opacity))}.multiselect--disabled .multiselect__input,.multiselect--disabled .multiselect__single{--text-opacity:1;color:#cbd5e0;color:rgba(203,213,224,var(--text-opacity));--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity))}.multiselect__option--disabled{background:transparent!important;color:#ddd!important;cursor:text;pointer-events:none}.multiselect__option--group{background:#ededed;color:#35495e}.multiselect__option--group.multiselect__option--highlight{background:#35495e;color:#fff}.multiselect__option--group.multiselect__option--highlight:after{background:#35495e}.multiselect__option--disabled.multiselect__option--highlight{background:#dedede}.multiselect__option--group-selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--group-selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect-enter-active,.multiselect-leave-active{transition:all .15s ease}.multiselect-enter,.multiselect-leave-active{opacity:0}[dir=rtl] .multiselect{text-align:right}[dir=rtl] .multiselect__select{right:auto;left:1px}[dir=rtl] .multiselect__tags{padding:8px 8px 0 40px}[dir=rtl] .multiselect__content{text-align:right}[dir=rtl] .multiselect__option:after{right:auto;left:0}[dir=rtl] .multiselect__clear{right:auto;left:12px}[dir=rtl] .multiselect__spinner{right:auto;left:1px}@-webkit-keyframes spinning{0%{transform:rotate(0)}to{transform:rotate(2turn)}}@keyframes spinning{0%{transform:rotate(0)}to{transform:rotate(2turn)}}.multiselect .multiselect__option--highlight{--bg-opacity:1;background-color:#f7fafc;background-color:rgba(247,250,252,var(--bg-opacity));color:#040405;font-weight:400!important}.multiselect .multiselect__option--highlight.multiselect__option--selected{--bg-opacity:1;background-color:#eeeefb;background-color:rgba(238,238,251,var(--bg-opacity));color:#040405;font-weight:400!important}.multiselect .multiselect__option--highlight.multiselect__option--selected:after,.multiselect .multiselect__option--highlight:after{background:#040405;color:#fff}.multiselect .multiselect__option--selected{font-weight:400!important;--bg-opacity:1;background-color:#eeeefb;background-color:rgba(238,238,251,var(--bg-opacity))}.multiselect.error{border:1px solid #fb7178;border-radius:5px}',""])},fzPg: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("wd/R"))},g7np:function(e,t,n){"use strict";var r=n("2SVd"),a=n("5oMp");e.exports=function(e,t){return e&&!r(t)?a(e,t):t}},gCq4:function(e,t){e.exports=function(e){return this.__data__.get(e)}},gVVK:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return a+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return a+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return a+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami";case"d":return t||r?"en dan":"enim dnem";case"dd":return a+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi";case"M":return t||r?"en mesec":"enim mesecem";case"MM":return a+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci";case"y":return t||r?"eno leto":"enim letom";case"yy":return a+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti"}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},gekB:function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,r,a,i){var o="";switch(a){case"s":return i?"muutaman sekunnin":"muutama sekunti";case"ss":o=i?"sekunnin":"sekuntia";break;case"m":return i?"minuutin":"minuutti";case"mm":o=i?"minuutin":"minuuttia";break;case"h":return i?"tunnin":"tunti";case"hh":o=i?"tunnin":"tuntia";break;case"d":return i?"päivän":"päivä";case"dd":o=i?"päivän":"päivää";break;case"M":return i?"kuukauden":"kuukausi";case"MM":o=i?"kuukauden":"kuukautta";break;case"y":return i?"vuoden":"vuosi";case"yy":o=i?"vuoden":"vuotta"}return o=function(e,r){return e<10?r?n[e]:t[e]:e}(e,i)+" "+o}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},gjCT: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("wd/R"))},h1BH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("AjSV").withParams;t.default=r},hEqX:function(e,t,n){"use strict";n("tIyD")},hKrs: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("wd/R"))},hUol:function(e,t,n){var r,a;n("B9Yq"),r=[n("EVdn")],void 0===(a=function(e){return function(){var t,n,r,a=0,i="error",o="info",s="success",l="warning",c={clear:function(n,r){var a=m();t||u(a),d(n,a,r)||function(n){for(var r=t.children(),a=r.length-1;a>=0;a--)d(e(r[a]),n)}(a)},remove:function(n){var r=m();t||u(r),n&&0===e(":focus",n).length?h(n):t.children().length&&t.remove()},error:function(e,t,n){return f({type:i,iconClass:m().iconClasses.error,message:e,optionsOverride:n,title:t})},getContainer:u,info:function(e,t,n){return f({type:o,iconClass:m().iconClasses.info,message:e,optionsOverride:n,title:t})},options:{},subscribe:function(e){n=e},success:function(e,t,n){return f({type:s,iconClass:m().iconClasses.success,message:e,optionsOverride:n,title:t})},version:"2.1.4",warning:function(e,t,n){return f({type:l,iconClass:m().iconClasses.warning,message:e,optionsOverride:n,title:t})}};return c;function u(n,r){return n||(n=m()),(t=e("#"+n.containerId)).length||r&&(t=function(n){return(t=e("<div/>").attr("id",n.containerId).addClass(n.positionClass)).appendTo(e(n.target)),t}(n)),t}function d(t,n,r){var a=!(!r||!r.force)&&r.force;return!(!t||!a&&0!==e(":focus",t).length||(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){h(t)}}),0))}function p(e){n&&n(e)}function f(n){var i=m(),o=n.iconClass||i.iconClass;if(void 0!==n.optionsOverride&&(i=e.extend(i,n.optionsOverride),o=n.optionsOverride.iconClass||o),!function(e,t){if(e.preventDuplicates){if(t.message===r)return!0;r=t.message}return!1}(i,n)){a++,t=u(i,!0);var s=null,l=e("<div/>"),c=e("<div/>"),d=e("<div/>"),f=e("<div/>"),_=e(i.closeHtml),v={intervalId:null,hideEta:null,maxHideTime:null},g={toastId:a,state:"visible",startTime:new Date,options:i,map:n};return n.iconClass&&l.addClass(i.toastClass).addClass(o),function(){if(n.title){var e=n.title;i.escapeHtml&&(e=y(n.title)),c.append(e).addClass(i.titleClass),l.append(c)}}(),function(){if(n.message){var e=n.message;i.escapeHtml&&(e=y(n.message)),d.append(e).addClass(i.messageClass),l.append(d)}}(),i.closeButton&&(_.addClass(i.closeClass).attr("role","button"),l.prepend(_)),i.progressBar&&(f.addClass(i.progressClass),l.prepend(f)),i.rtl&&l.addClass("rtl"),i.newestOnTop?t.prepend(l):t.append(l),function(){var e="";switch(n.iconClass){case"toast-success":case"toast-info":e="polite";break;default:e="assertive"}l.attr("aria-live",e)}(),l.hide(),l[i.showMethod]({duration:i.showDuration,easing:i.showEasing,complete:i.onShown}),i.timeOut>0&&(s=setTimeout(b,i.timeOut),v.maxHideTime=parseFloat(i.timeOut),v.hideEta=(new Date).getTime()+v.maxHideTime,i.progressBar&&(v.intervalId=setInterval(k,10))),i.closeOnHover&&l.hover(x,w),!i.onclick&&i.tapToDismiss&&l.click(b),i.closeButton&&_&&_.click((function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),i.onCloseClick&&i.onCloseClick(e),b(!0)})),i.onclick&&l.click((function(e){i.onclick(e),b()})),p(g),i.debug&&console&&console.log(g),l}function y(e){return null==e&&(e=""),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function b(t){var n=t&&!1!==i.closeMethod?i.closeMethod:i.hideMethod,r=t&&!1!==i.closeDuration?i.closeDuration:i.hideDuration,a=t&&!1!==i.closeEasing?i.closeEasing:i.hideEasing;if(!e(":focus",l).length||t)return clearTimeout(v.intervalId),l[n]({duration:r,easing:a,complete:function(){h(l),clearTimeout(s),i.onHidden&&"hidden"!==g.state&&i.onHidden(),g.state="hidden",g.endTime=new Date,p(g)}})}function w(){(i.timeOut>0||i.extendedTimeOut>0)&&(s=setTimeout(b,i.extendedTimeOut),v.maxHideTime=parseFloat(i.extendedTimeOut),v.hideEta=(new Date).getTime()+v.maxHideTime)}function x(){clearTimeout(s),v.hideEta=0,l.stop(!0,!0)[i.showMethod]({duration:i.showDuration,easing:i.showEasing})}function k(){var e=(v.hideEta-(new Date).getTime())/v.maxHideTime*100;f.width(e+"%")}}function m(){return e.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">×</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},c.options)}function h(e){t||(t=u()),e.is(":visible")||(e.remove(),e=null,0===t.children().length&&(t.remove(),r=void 0))}}()}.apply(t,r))||(e.exports=a)},heNW: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)}},honF: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("wd/R"))},hwdV:function(e,t,n){var r=n("tjlA"),a=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return a(e,t,n)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=o),o.prototype=Object.create(a.prototype),i(a,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=a(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},hypo:function(e,t,n){var r=n("O0oS");e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},iAMx:function(e,t,n){var r=n("s9fM");"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,a);r.locals&&(e.exports=r.locals)},iEDd: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("wd/R"))},iYuL:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})}(n("wd/R"))},itsj:function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},jAWH:function(e,t){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},jE9Z:function(e,t,n){"use strict";function r(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}var a={name:"router-view",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,r=t.children,a=t.parent,i=t.data;i.routerView=!0;for(var o=a.$createElement,s=n.name,l=a.$route,c=a._routerViewCache||(a._routerViewCache={}),u=0,d=!1;a&&a._routerRoot!==a;)a.$vnode&&a.$vnode.data.routerView&&u++,a._inactive&&(d=!0),a=a.$parent;if(i.routerViewDepth=u,d)return o(c[s],i,r);var p=l.matched[u];if(!p)return c[s]=null,o();var f=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(f,i,r)}};var i=/[!'()*]/g,o=function(e){return"%"+e.charCodeAt(0).toString(16)},s=/%2C/g,l=function(e){return encodeURIComponent(e).replace(i,o).replace(s,",")},c=decodeURIComponent;function u(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),r=c(n.shift()),a=n.length>0?c(n.join("=")):null;void 0===t[r]?t[r]=a:Array.isArray(t[r])?t[r].push(a):t[r]=[t[r],a]})),t):t}function d(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return l(t);if(Array.isArray(n)){var r=[];return n.forEach((function(e){void 0!==e&&(null===e?r.push(l(t)):r.push(l(t)+"="+l(e)))})),r.join("&")}return l(t)+"="+l(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var p=/\/?$/;function f(e,t,n,r){var a=r&&r.options.stringifyQuery,i={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:t.query||{},params:t.params||{},fullPath:_(t,a),matched:e?h(e):[]};return n&&(i.redirectedFrom=_(n,a)),Object.freeze(i)}var m=f(null,{path:"/"});function h(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function _(e,t){var n=e.path,r=e.query;void 0===r&&(r={});var a=e.hash;return void 0===a&&(a=""),(n||"/")+(t||d)(r)+a}function v(e,t){return t===m?e===t:!!t&&(e.path&&t.path?e.path.replace(p,"")===t.path.replace(p,"")&&e.hash===t.hash&&g(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&g(e.query,t.query)&&g(e.params,t.params)))}function g(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){var r=e[n],a=t[n];return"object"==typeof r&&"object"==typeof a?g(r,a):String(r)===String(a)}))}var y,b={name:"router-link",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:[String,Array],default:"click"}},render:function(e){var t=this,n=this.$router,r=this.$route,a=n.resolve(this.to,r,this.append),i=a.location,o=a.route,s=a.href,l={},c=n.options.linkActiveClass,u=n.options.linkExactActiveClass,d=null==c?"router-link-active":c,m=null==u?"router-link-exact-active":u,h=null==this.activeClass?d:this.activeClass,_=null==this.exactActiveClass?m:this.exactActiveClass,g=i.path?f(null,i,null,n):o;l[_]=v(r,g),l[h]=this.exact?l[_]:function(e,t){return 0===e.path.replace(p,"/").indexOf(t.path.replace(p,"/"))&&(!t.hash||e.hash===t.hash)&&function(e,t){for(var n in t)if(!(n in e))return!1;return!0}(e.query,t.query)}(r,g);var b=function(e){w(e)&&(t.replace?n.replace(i):n.push(i))},x={click:w};Array.isArray(this.event)?this.event.forEach((function(e){x[e]=b})):x[this.event]=b;var k={class:l};if("a"===this.tag)k.on=x,k.attrs={href:s};else{var D=function e(t){var n;if(t)for(var r=0;r<t.length;r++){if("a"===(n=t[r]).tag)return n;if(n.children&&(n=e(n.children)))return n}}(this.$slots.default);if(D){D.isStatic=!1;var M=y.util.extend;(D.data=M({},D.data)).on=x,(D.data.attrs=M({},D.data.attrs)).href=s}else k.on=x}return e(this.tag,k,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}}var x="undefined"!=typeof window;function k(e,t,n){var r=e.charAt(0);if("/"===r)return e;if("?"===r||"#"===r)return t+e;var a=t.split("/");n&&a[a.length-1]||a.pop();for(var i=e.replace(/^\//,"").split("/"),o=0;o<i.length;o++){var s=i[o];".."===s?a.pop():"."!==s&&a.push(s)}return""!==a[0]&&a.unshift(""),a.join("/")}function D(e){return e.replace(/\/\//g,"/")}var M=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},S=F,C=j,L=function(e,t){return P(j(e,t))},T=P,E=z,O=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function j(e,t){for(var n,r=[],a=0,i=0,o="",s=t&&t.delimiter||"/";null!=(n=O.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],f=n[3],m=n[4],h=n[5],_=n[6],v=n[7];o&&(r.push(o),o="");var g=null!=p&&null!=d&&d!==p,y="+"===_||"*"===_,b="?"===_||"*"===_,w=n[2]||s,x=m||h;r.push({name:f||a++,prefix:p||"",delimiter:w,optional:b,repeat:y,partial:g,asterisk:!!v,pattern:x?$(x):v?".*":"[^"+Y(w)+"]+?"})}}return i<e.length&&(o+=e.substr(i)),o&&r.push(o),r}function A(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function P(e){for(var t=new Array(e.length),n=0;n<e.length;n++)"object"==typeof e[n]&&(t[n]=new RegExp("^(?:"+e[n].pattern+")$"));return function(n,r){for(var a="",i=n||{},o=(r||{}).pretty?A:encodeURIComponent,s=0;s<e.length;s++){var l=e[s];if("string"!=typeof l){var c,u=i[l.name];if(null==u){if(l.optional){l.partial&&(a+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(M(u)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(u)+"`");if(0===u.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var d=0;d<u.length;d++){if(c=o(u[d]),!t[s].test(c))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(c)+"`");a+=(0===d?l.prefix:l.delimiter)+c}}else{if(c=l.asterisk?encodeURI(u).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):o(u),!t[s].test(c))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+c+'"');a+=l.prefix+c}}else a+=l}return a}}function Y(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function $(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function I(e,t){return e.keys=t,e}function N(e){return e.sensitive?"":"i"}function z(e,t,n){M(t)||(n=t||n,t=[]);for(var r=(n=n||{}).strict,a=!1!==n.end,i="",o=0;o<e.length;o++){var s=e[o];if("string"==typeof s)i+=Y(s);else{var l=Y(s.prefix),c="(?:"+s.pattern+")";t.push(s),s.repeat&&(c+="(?:"+l+c+")*"),i+=c=s.optional?s.partial?l+"("+c+")?":"(?:"+l+"("+c+"))?":l+"("+c+")"}}var u=Y(n.delimiter||"/"),d=i.slice(-u.length)===u;return r||(i=(d?i.slice(0,-u.length):i)+"(?:"+u+"(?=$))?"),i+=a?"$":r&&d?"":"(?="+u+"|$)",I(new RegExp("^"+i,N(n)),t)}function F(e,t,n){return M(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return I(e,t)}(e,t):M(e)?function(e,t,n){for(var r=[],a=0;a<e.length;a++)r.push(F(e[a],t,n).source);return I(new RegExp("(?:"+r.join("|")+")",N(n)),t)}(e,t,n):function(e,t,n){return z(j(e,n),t,n)}(e,t,n)}S.parse=C,S.compile=L,S.tokensToFunction=T,S.tokensToRegExp=E;var R=Object.create(null);function H(e,t,n){try{return(R[e]||(R[e]=S.compile(e)))(t||{},{pretty:!0})}catch(e){return""}}function B(e,t,n,r){var a=t||[],i=n||Object.create(null),o=r||Object.create(null);e.forEach((function(e){!function e(t,n,r,a,i,o){var s=a.path,l=a.name;0;var c=function(e,t){if("/"===(e=e.replace(/\/$/,""))[0])return e;if(null==t)return e;return D(t.path+"/"+e)}(s,i),u=a.pathToRegexpOptions||{};"boolean"==typeof a.caseSensitive&&(u.sensitive=a.caseSensitive);var d={path:c,regex:q(c,u),components:a.components||{default:a.component},instances:{},name:l,parent:i,matchAs:o,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 i=o?D(o+"/"+a.path):void 0;e(t,n,r,a,d,i)}));if(void 0!==a.alias){(Array.isArray(a.alias)?a.alias:[a.alias]).forEach((function(o){var s={path:o,children:a.children};e(t,n,r,s,i,d.path||"/")}))}n[d.path]||(t.push(d.path),n[d.path]=d);l&&(r[l]||(r[l]=d))}(a,i,o,e)}));for(var s=0,l=a.length;s<l;s++)"*"===a[s]&&(a.push(a.splice(s,1)[0]),l--,s--);return{pathList:a,pathMap:i,nameMap:o}}function q(e,t){return S(e,[],t)}function U(e,t,n,r){var a="string"==typeof e?{path:e}:e;if(a.name||a._normalized)return a;if(!a.path&&a.params&&t){(a=V({},a))._normalized=!0;var i=V(V({},t.params),a.params);if(t.name)a.name=t.name,a.params=i;else if(t.matched.length){var o=t.matched[t.matched.length-1].path;a.path=H(o,i,t.path)}else 0;return a}var s=function(e){var t="",n="",r=e.indexOf("#");r>=0&&(t=e.slice(r),e=e.slice(0,r));var a=e.indexOf("?");return a>=0&&(n=e.slice(a+1),e=e.slice(0,a)),{path:e,query:n,hash:t}}(a.path||""),l=t&&t.path||"/",c=s.path?k(s.path,l,n||a.append):l,d=function(e,t,n){void 0===t&&(t={});var r,a=n||u;try{r=a(e||"")}catch(e){r={}}for(var i in t){var o=t[i];r[i]=Array.isArray(o)?o.slice():o}return r}(s.query,a.query,r&&r.options.parseQuery),p=a.hash||s.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:c,query:d,hash:p}}function V(e,t){for(var n in t)e[n]=t[n];return e}function W(e,t){var n=B(e),r=n.pathList,a=n.pathMap,i=n.nameMap;function o(e,n,o){var s=U(e,n,!1,t),c=s.name;if(c){var u=i[c];if(!u)return l(null,s);var d=u.regex.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}));if("object"!=typeof s.params&&(s.params={}),n&&"object"==typeof n.params)for(var p in n.params)!(p in s.params)&&d.indexOf(p)>-1&&(s.params[p]=n.params[p]);if(u)return s.path=H(u.path,s.params),l(u,s,o)}else if(s.path){s.params={};for(var f=0;f<r.length;f++){var m=r[f],h=a[m];if(K(h.regex,s.path,s.params))return l(h,s,o)}}return l(null,s)}function s(e,n){var r=e.redirect,a="function"==typeof r?r(f(e,n,null,t)):r;if("string"==typeof a&&(a={path:a}),!a||"object"!=typeof a)return l(null,n);var s=a,c=s.name,u=s.path,d=n.query,p=n.hash,m=n.params;if(d=s.hasOwnProperty("query")?s.query:d,p=s.hasOwnProperty("hash")?s.hash:p,m=s.hasOwnProperty("params")?s.params:m,c){i[c];return o({_normalized:!0,name:c,query:d,hash:p,params:m},void 0,n)}if(u){var h=function(e,t){return k(e,t.parent?t.parent.path:"/",!0)}(u,e);return o({_normalized:!0,path:H(h,m),query:d,hash:p},void 0,n)}return l(null,n)}function l(e,n,r){return e&&e.redirect?s(e,r||n):e&&e.matchAs?function(e,t,n){var r=o({_normalized:!0,path:H(n,t.params)});if(r){var a=r.matched,i=a[a.length-1];return t.params=r.params,l(i,t)}return l(null,t)}(0,n,e.matchAs):f(e,n,r,t)}return{match:o,addRoutes:function(e){B(e,r,a,i)}}}function K(e,t,n){var r=t.match(e);if(!r)return!1;if(!n)return!0;for(var a=1,i=r.length;a<i;++a){var o=e.keys[a-1],s="string"==typeof r[a]?decodeURIComponent(r[a]):r[a];o&&(n[o.name]=s)}return!0}var G=Object.create(null);function J(){window.addEventListener("popstate",(function(e){var t;X(),e.state&&e.state.key&&(t=e.state.key,ie=t)}))}function Z(e,t,n,r){if(e.app){var a=e.options.scrollBehavior;a&&e.app.$nextTick((function(){var e=function(){var e=se();if(e)return G[e]}(),i=a(t,n,r?e:null);if(i){var o,s="object"==typeof i;if(s&&"string"==typeof i.selector){var l=document.querySelector(i.selector);if(l){var c=i.offset&&"object"==typeof i.offset?i.offset:{};e=function(e,t){var n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{x:r.left-n.left-t.x,y:r.top-n.top-t.y}}(l,c={x:te((o=c).x)?o.x:0,y:te(o.y)?o.y:0})}else Q(i)&&(e=ee(i))}else s&&Q(i)&&(e=ee(i));e&&window.scrollTo(e.x,e.y)}}))}}function X(){var e=se();e&&(G[e]={x:window.pageXOffset,y:window.pageYOffset})}function Q(e){return te(e.x)||te(e.y)}function ee(e){return{x:te(e.x)?e.x:window.pageXOffset,y:te(e.y)?e.y:window.pageYOffset}}function te(e){return"number"==typeof e}var ne,re=x&&((-1===(ne=window.navigator.userAgent).indexOf("Android 2.")&&-1===ne.indexOf("Android 4.0")||-1===ne.indexOf("Mobile Safari")||-1!==ne.indexOf("Chrome")||-1!==ne.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history),ae=x&&window.performance&&window.performance.now?window.performance:Date,ie=oe();function oe(){return ae.now().toFixed(3)}function se(){return ie}function le(e,t){X();var n=window.history;try{t?n.replaceState({key:ie},"",e):(ie=oe(),n.pushState({key:ie},"",e))}catch(n){window.location[t?"replace":"assign"](e)}}function ce(e){le(e,!0)}function ue(e,t,n){var r=function(a){a>=e.length?n():e[a]?t(e[a],(function(){r(a+1)})):r(a+1)};r(0)}function de(e,t){return pe(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function pe(e){return Array.prototype.concat.apply([],e)}function fe(e){var t=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}var me=function(e,t){this.router=e,this.base=function(e){if(!e)if(x){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=m,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function he(e,t,n,r){var a=de(e,(function(e,r,a,i){var o=function(e,t){"function"!=typeof e&&(e=y.extend(e));return e.options[t]}(e,t);if(o)return Array.isArray(o)?o.map((function(e){return n(e,r,a,i)})):n(o,r,a,i)}));return pe(r?a.reverse():a)}function _e(e,t){if(t)return function(){return e.apply(t,arguments)}}me.prototype.listen=function(e){this.cb=e},me.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},me.prototype.onError=function(e){this.errorCbs.push(e)},me.prototype.transitionTo=function(e,t,n){var r=this,a=this.router.match(e,this.current);this.confirmTransition(a,(function(){r.updateRoute(a),t&&t(a),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach((function(e){e(a)})))}),(function(e){n&&n(e),e&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach((function(t){t(e)})))}))},me.prototype.confirmTransition=function(e,t,n){var a=this,i=this.current,o=function(e){r(e)&&(a.errorCbs.length?a.errorCbs.forEach((function(t){t(e)})):console.error(e)),n&&n(e)};if(v(e,i)&&e.matched.length===i.matched.length)return this.ensureURL(),o();var s,l=function(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n<r&&e[n]===t[n];n++);return{updated:t.slice(0,n),activated:t.slice(n),deactivated:e.slice(n)}}(this.current.matched,e.matched),c=l.updated,u=l.deactivated,d=l.activated,p=[].concat(function(e){return he(e,"beforeRouteLeave",_e,!0)}(u),this.router.beforeHooks,function(e){return he(e,"beforeRouteUpdate",_e)}(c),d.map((function(e){return e.beforeEnter})),(s=d,function(e,t,n){var a=!1,i=0,o=null;de(s,(function(e,t,s,l){if("function"==typeof e&&void 0===e.cid){a=!0,i++;var c,u=fe((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=fe((function(e){var t="Failed to resolve async component "+l+": "+e;o||(o=r(e)?e:new Error(t),n(o))}));try{c=e(u,d)}catch(e){d(e)}if(c)if("function"==typeof c.then)c.then(u,d);else{var p=c.component;p&&"function"==typeof p.then&&p.then(u,d)}}})),a||n()}));this.pending=e;var f=function(t,n){if(a.pending!==e)return o();try{t(e,i,(function(e){!1===e||r(e)?(a.ensureURL(!0),o(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(o(),"object"==typeof e&&e.replace?a.replace(e):a.push(e)):n(e)}))}catch(e){o(e)}};ue(p,f,(function(){var n=[];ue(function(e,t,n){return he(e,"beforeRouteEnter",(function(e,r,a,i){return function(e,t,n,r,a){return function(i,o,s){return e(i,o,(function(e){s(e),"function"==typeof e&&r.push((function(){!function e(t,n,r,a){n[r]?t(n[r]):a()&&setTimeout((function(){e(t,n,r,a)}),16)}(e,t.instances,n,a)}))}))}}(e,a,i,t,n)}))}(d,n,(function(){return a.current===e})).concat(a.router.resolveHooks),f,(function(){if(a.pending!==e)return o();a.pending=null,t(e),a.router.app&&a.router.app.$nextTick((function(){n.forEach((function(e){e()}))}))}))}))},me.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 ve=function(e){function t(t,n){var r=this;e.call(this,t,n);var a=t.options.scrollBehavior;a&&J(),window.addEventListener("popstate",(function(e){var n=r.current;r.transitionTo(ge(r.base),(function(e){a&&Z(t,e,n,!0)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var r=this,a=this.current;this.transitionTo(e,(function(e){le(D(r.base+e.fullPath)),Z(r.router,e,a,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,a=this.current;this.transitionTo(e,(function(e){ce(D(r.base+e.fullPath)),Z(r.router,e,a,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(ge(this.base)!==this.current.fullPath){var t=D(this.base+this.current.fullPath);e?le(t):ce(t)}},t.prototype.getCurrentLocation=function(){return ge(this.base)},t}(me);function ge(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 ye=function(e){function t(t,n,r){e.call(this,t,n),r&&function(e){var t=ge(e);if(!/^\/#/.test(t))return window.location.replace(D(e+"/#"+t)),!0}(this.base)||be()}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(){be()&&e.transitionTo(we(),(function(e){ke(e.fullPath)}))}))},t.prototype.push=function(e,t,n){this.transitionTo(e,(function(e){xe(e.fullPath),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){this.transitionTo(e,(function(e){ke(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;we()!==t&&(e?xe(t):ke(t))},t.prototype.getCurrentLocation=function(){return we()},t}(me);function be(){var e=we();return"/"===e.charAt(0)||(ke("/"+e),!1)}function we(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.slice(t+1)}function xe(e){window.location.hash=e}function ke(e){var t=window.location.href,n=t.indexOf("#"),r=n>=0?t.slice(0,n):t;window.location.replace(r+"#"+e)}var De=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){t.index=n,t.updateRoute(r)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(me),Me=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=W(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!re&&!1!==e.fallback,this.fallback&&(t="hash"),x||(t="abstract"),this.mode=t,t){case"history":this.history=new ve(this,e.base);break;case"hash":this.history=new ye(this,e.base,this.fallback);break;case"abstract":this.history=new De(this,e.base);break;default:0}},Se={currentRoute:{}};function Ce(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}Me.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},Se.currentRoute.get=function(){return this.history&&this.history.current},Me.prototype.init=function(e){var t=this;if(this.apps.push(e),!this.app){this.app=e;var n=this.history;if(n instanceof ve)n.transitionTo(n.getCurrentLocation());else if(n instanceof ye){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},Me.prototype.beforeEach=function(e){return Ce(this.beforeHooks,e)},Me.prototype.beforeResolve=function(e){return Ce(this.resolveHooks,e)},Me.prototype.afterEach=function(e){return Ce(this.afterHooks,e)},Me.prototype.onReady=function(e,t){this.history.onReady(e,t)},Me.prototype.onError=function(e){this.history.onError(e)},Me.prototype.push=function(e,t,n){this.history.push(e,t,n)},Me.prototype.replace=function(e,t,n){this.history.replace(e,t,n)},Me.prototype.go=function(e){this.history.go(e)},Me.prototype.back=function(){this.go(-1)},Me.prototype.forward=function(){this.go(1)},Me.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]}))}))):[]},Me.prototype.resolve=function(e,t,n){var r=U(e,t||this.history.current,n,this),a=this.match(r,t),i=a.redirectedFrom||a.fullPath;return{location:r,route:a,href:function(e,t,n){var r="hash"===n?"#"+t:t;return e?D(e+"/"+r):r}(this.history.base,i,this.mode),normalizedTo:r,resolved:a}},Me.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==m&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Me.prototype,Se),Me.install=function e(t){if(!e.installed){e.installed=!0,y=t;var n=function(e){return void 0!==e},r=function(e,t){var r=e.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(e,t)};t.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("router-view",a),t.component("router-link",b);var i=t.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},Me.version="2.7.0",x&&window.Vue&&window.Vue.use(Me),t.a=Me},jUeY:function(e,t,n){!function(e){"use strict";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,t){var n,r=this._calendarEl[e],a=t&&t.hours();return n=r,("undefined"!=typeof Function&&n instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(r=r.apply(t)),r.replace("{}",a%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n("wd/R"))},jVdC:function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),r=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function a(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function i(e,t,n){var r=e+" ";switch(n){case"ss":return r+(a(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return r+(a(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(a(e)?"godziny":"godzin");case"ww":return r+(a(e)?"tygodnie":"tygodni");case"MM":return r+(a(e)?"miesiące":"miesięcy");case"yy":return r+(a(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,r){return e?/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:i,m:i,mm:i,h:i,hh:i,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:i,M:"miesiąc",MM:i,y:"rok",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},jeLo:function(e,t,n){var r=n("juv8"),a=n("mTTR");e.exports=function(e){return r(e,a(e))}},"jfS+":function(e,t,n){"use strict";var r=n("endd");function a(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}a.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},a.source=function(){var e;return{token:new a((function(t){e=t})),cancel:e}},e.exports=a},jfSC: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("wd/R"))},jhwR:function(e,t){Vue.directive("click-outside",{bind:function(e,t,n){e.event=function(r){e===r.target||e.contains(r.target)||n.context[t.expression](r)},document.body.addEventListener("click",e.event)},unbind:function(e){document.body.removeEventListener("click",e.event)}}),Vue.directive("autoresize",{inserted:function(e){e.style.height=e.scrollHeight+"px",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)}})},jnO4:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},a={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,n,i,o){var s=r(t),l=a[e][r(t)];return 2===s&&(l=l[n?0:1]),l.replace(/%d/i,t)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n("wd/R"))},juv8:function(e,t,n){var r=n("MrPd"),a=n("hypo");e.exports=function(e,t,n,i){var o=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=i?i(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),o?a(n,c,u):r(n,c,u)}return n}},jxF0:function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,".note-modal .header-editior .editor-menu-bar{margin-left:.5px;margin-right:0}",""])},"k+1r":function(e,t,n){var r=n("QkVE");e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},kEOa: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("wd/R"))},kOpN:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n("wd/R"))},"kVK+":function(e,t){t.read=function(e,t,n,r,a){var i,o,s=8*a-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?a-1:0,p=n?-1:1,f=e[t+d];for(d+=p,i=f&(1<<-u)-1,f>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=p,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=r;u>0;o=256*o+e[t+d],d+=p,u-=8);if(0===i)i=1-c;else{if(i===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,r),i-=c}return(f?-1:1)*o*Math.pow(2,i-r)},t.write=function(e,t,n,r,a,i){var o,s,l,c=8*i-a-1,u=(1<<c)-1,d=u>>1,p=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:i-1,m=r?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(o++,l/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*l-1)*Math.pow(2,a),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,a),o=0));a>=8;e[n+f]=255&s,f+=m,s/=256,a-=8);for(o=o<<a|s,c+=a;c>0;e[n+f]=255&o,f+=m,o/=256,c-=8);e[n+f-m]|=128*h}},kd2E:function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var s=/\+/g;e=e.split(t);var l=1e3;i&&"number"==typeof i.maxKeys&&(l=i.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var u=0;u<c;++u){var d,p,f,m,h=e[u].replace(s,"%20"),_=h.indexOf(n);_>=0?(d=h.substr(0,_),p=h.substr(_+1)):(d=h,p=""),f=decodeURIComponent(d),m=decodeURIComponent(p),r(o,f)?a(o[f])?o[f].push(m):o[f]=[o[f],m]:o[f]=m}return o};var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},kdPC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("eO9T");t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":";return(0,r.withParams)({type:"macAddress"},(function(t){if(!(0,r.req)(t))return!0;if("string"!=typeof t)return!1;var n="string"==typeof e&&""!==e?t.split(e):12===t.length||16===t.length?t.match(/.{2}/g):null;return null!==n&&(6===n.length||8===n.length)&&n.every(a)}))};var a=function(e){return e.toLowerCase().match(/^[0-9a-f]{2}$/)}},kekF:function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},kghg:function(e){e.exports=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":"Users"},"general":{"add_company":"Add Company","view_pdf":"Ver PDF","copy_pdf_url":"Copy PDF Url","download_pdf":"Descargar PDF","save":"Guardar","create":"Create","cancel":"Cancelar","update":"Actualizar","deselect":"Deselect","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":"Send","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":"Choose Note","no_note_found":"No Note Found","insert_note":"Insert Note"},"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":"Search...","customers":"Clientes","users":"Users","no_results_found":"No Results Found"},"customers":{"title":"Clientes","add_customer":"Agregar cliente","contacts_list":"Lista de clientes","name":"Nombre","mail":"Mail | Mails","statement":"Statement","display_name":"Nombre para mostrar","primary_contact_name":"Nombre de contacto primario","contact_name":"Nombre de contacto","amount_due":"Cantidad Debida","email":"Email","address":"Dirección","phone":"Teléfono","website":"Sitio web","overview":"Overview","enable_portal":"Enable Portal","country":"País","state":"Estado","city":"Ciudad","zip_code":"Código postal","added_on":"Añadido el","action":"Acción","password":"Contraseña","street_number":"Número de calle","primary_currency":"Moneda primaria","description":"Descripción","add_new_customer":"Agregar nuevo cliente","save_customer":"Guardar cliente","update_customer":"Actualizar cliente","customer":"Cliente | Clientes","new_customer":"Nuevo cliente","edit_customer":"Editar cliente","basic_info":"Información básica","billing_address":"Dirección de Facturación","shipping_address":"Dirección de Envío","copy_billing_address":"Copia de facturación","no_customers":"¡Aún no hay clientes!","no_customers_found":"¡No se encontraron clientes!","list_of_customers":"Esta sección contendrá la lista de clientes.","primary_display_name":"Nombre de visualización principal","select_currency":"Seleccione el tipo de moneda","select_a_customer":"Selecciona un cliente","type_or_click":"Escriba o haga clic para seleccionar","new_transaction":"Nueva transacción","no_matching_customers":"¡No hay clientes coincidentes!","phone_number":"Número de teléfono","create_date":"Fecha de Creación","confirm_delete":"No podrá recuperar este cliente y todas las facturas, estimaciones y pagos relacionados. | No podrá recuperar estos clientes y todas las facturas, estimaciones y pagos relacionados.","created_message":"Cliente creado con éxito","updated_message":"Cliente actualizado con éxito","deleted_message":"Cliente eliminado correctamente | Clientes eliminados exitosamente"},"items":{"title":"Artículos","items_list":"Lista de artículos","name":"Nombre","unit":"Unidad","description":"Descripción","added_on":"Añadido","price":"Precio","date_of_creation":"Fecha de creación","action":"Acción","add_item":"Añadir artículo","save_item":"Guardar artículo","update_item":"Actualizar elemento","item":"Artículo | Artículos","add_new_item":"Agregar ítem nuevo","new_item":"Nuevo artículo","edit_item":"Editar elemento","no_items":"¡Aún no hay artículos!","list_of_items":"Esta sección contendrá la lista de artículos.","select_a_unit":"seleccionar unidad","taxes":"Impuestos","item_attached_message":"No se puede eliminar un elemento que ya está en uso.","confirm_delete":"No podrá recuperar este artículo | No podrás recuperar estos elementos","created_message":"Artículo creado con éxito","updated_message":"Artículo actualizado con éxito","deleted_message":"Elemento eliminado con éxito | Elementos eliminados correctamente"},"estimates":{"title":"Presupuestos","estimate":"Presupuesto | Presupuestos","estimates_list":"Lista de presupuestos","days":"{días} Días","months":"{meses} Mes","years":"{años} Año","all":"Todas","paid":"Pagada","unpaid":"No pagado","customer":"CLIENTE","ref_no":"NÚMERO DE REFERENCIA.","number":"NÚMERO","amount_due":"CANTIDAD DEBIDA","partially_paid":"Parcialmente pagado","total":"Total","discount":"Descuento","sub_total":"Subtotal","estimate_number":"Número de Presupuesto","ref_number":"Número de referencia","contact":"Contacto","add_item":"Agregar un artículo","date":"Fecha","due_date":"Fecha de vencimiento","expiry_date":"Fecha de caducidad","status":"Estado","add_tax":"Agregar impuesto","amount":"Cantidad","action":"Acción","notes":"Notas","tax":"Impuesto","estimate_template":"Plantilla de presupuesto","convert_to_invoice":"Convertir a factura","mark_as_sent":"Marcar como enviado","send_estimate":"Enviar presupuesto","resend_estimate":"Resend Estimate","record_payment":"Registro de pago","add_estimate":"Agregar presupuesto","save_estimate":"Guardar presupuesto","confirm_conversion":"¿Quiere convertir este presupuesto en una factura?","conversion_message":"Conversión exitosa","confirm_send_estimate":"Este presupuesto se enviará por correo electrónico al cliente","confirm_mark_as_sent":"Este presupuesto se marcará como enviado","confirm_mark_as_accepted":"Este presupuesto se marcará como Aceptado","confirm_mark_as_rejected":"Este presupuesto se marcará como Rechazado","no_matching_estimates":"¡No hay presupuestos coincidentes!","mark_as_sent_successfully":"Presupuesto marcado como enviado correctamente","send_estimate_successfully":"Presupuesto enviado con éxito","errors":{"required":"Se requiere campo"},"accepted":"Aceptado","sent":"Enviado","draft":"Borrador","declined":"Rechazado","new_estimate":"Nuevo presupuesto","add_new_estimate":"Añadir nuevo presupuesto","update_Estimate":"Actualizar presupuesto","edit_estimate":"Editar presupuesto","items":"artículos","Estimate":"Presupuestos | Presupuestos","add_new_tax":"Agregar nuevo impuesto","no_estimates":"¡Aún no hay presupuestos!","list_of_estimates":"Esta sección contendrá la lista de presupuestos.","mark_as_rejected":"Marcar como rechazado","mark_as_accepted":"Marcar como aceptado","marked_as_accepted_message":"Presupuesto marcado como aceptado","marked_as_rejected_message":"Presupuesto marcado como rechazado","confirm_delete":"No podrá recuperar este presupuesto | No podrá recuperar estos presupuestos","created_message":"Presupuesto creada con éxito","updated_message":"Presupuesto actualizada con éxito","deleted_message":"Presupuesto eliminada con éxito | Presupuestos eliminadas exitosamente","user_email_does_not_exist":"El email del usuario no existe","something_went_wrong":"Algo fue mal","item":{"title":"Título del artículo","description":"Descripción","quantity":"Cantidad","price":"Precio","discount":"Descuento","total":"Total","total_discount":"Descuento total","sub_total":"Subtotal","tax":"Impuesto","amount":"Cantidad","select_an_item":"Escriba o haga clic para seleccionar un elemento","type_item_description":"Descripción del tipo de elemento(opcional)"}},"invoices":{"title":"Facturas","invoices_list":"Lista de facturas","days":"{días} Días","months":"{meses} Mes","years":"{años} Año","all":"Todas","paid":"Pagada","unpaid":"No pagado","customer":"CLIENTE","paid_status":"ESTADO PAGADO","ref_no":"NÚMERO DE REFERENCIA.","number":"NÚMERO","amount_due":"CANTIDAD DEBIDA","partially_paid":"Parcialmente pagado","total":"Total","discount":"Descuento","sub_total":"Subtotal","invoice":"Factura | Facturas","invoice_number":"Numero de factura","ref_number":"Número de referencia","contact":"Contacto","add_item":"Agregar un artículo","date":"Fecha","due_date":"Fecha de vencimiento","status":"Estado","add_tax":"Agregar impuesto","amount":"Cantidad","action":"Acción","notes":"Notas","view":"Ver","send_invoice":"Enviar la factura","resend_invoice":"Resend Invoice","invoice_template":"Plantilla de factura","template":"Modelo","mark_as_sent":"Marcar como enviada","confirm_send_invoice":"Esta factura será enviada por email al cliente","invoice_mark_as_sent":"Esta factura se marcará como enviada","confirm_send":"Estas facturas se enviarán por correo electrónico al cliente.","invoice_date":"Fecha de la factura","record_payment":"Registro de pago","add_new_invoice":"Añadir nueva factura","update_expense":"Actualizar gasto","edit_invoice":"Editar factura","new_invoice":"Nueva factura","save_invoice":"Guardar factura","update_invoice":"Actualizar factura","add_new_tax":"Agregar nuevo impuesto","no_invoices":"¡Aún no hay facturas!","list_of_invoices":"Esta sección contendrá la lista de facturas.","select_invoice":"Seleccionar factura","no_matching_invoices":"¡No hay facturas coincidentes con la selección!","mark_as_sent_successfully":"Factura marcada como enviada con éxito","send_invoice_successfully":"Factura enviada exitosamente","cloned_successfully":"Factura clonada exitosamente","clone_invoice":"Factura de clonación","confirm_clone":"Esta factura se clonará en una nueva factura.","item":{"title":"Título del artículo","description":"Descripción","quantity":"Cantidad","price":"Precio","discount":"Descuento","total":"Total","total_discount":"Descuento total","sub_total":"Subtotal","tax":"Impuesto","amount":"Cantidad","select_an_item":"Escriba o haga clic para seleccionar un elemento","type_item_description":"Descripción del tipo de elemento (opcional)"},"payment_attached_message":"Una de las facturas seleccionadas ya tiene un pago adjunto. Asegúrese de eliminar primero los pagos adjuntos para continuar con la eliminación","confirm_delete":"No podrá recuperar esta factura | No podrá recuperar estas facturas","created_message":"Factura creada exitosamente","updated_message":"Factura actualizada exitosamente","deleted_message":"Factura eliminada con éxito | Facturas borradas exitosamente","marked_as_sent_message":"Factura marcada como enviada con éxito","user_email_does_not_exist":"El email del usuario no existe","something_went_wrong":"Algo fue mal","invalid_due_amount_message":"El pago ingresado es mayor que la cantidad total debida por esta factura. Por favor verificalo y vuelve a intentarlo"},"credit_notes":{"title":"Notas de credito","credit_notes_list":"Lista de notas de crédito","credit_notes":"Notas de credito","contact":"Contacto","date":"Fecha","amount":"Cantidad","action":"Acción","credit_number":"Número de crédito","notes":"Notas","confirm_delete":"¿Desea eliminar esta nota de crédito?","item":{"title":"Título del artículo","description":"Descripción","quantity":"Cantidad","price":"Precio","discount":"Descuento","total":"Total","total_discount":"Descuento total","sub_total":"Subtotal","tax":"Impuesto"}},"payments":{"title":"Pagos","payments_list":"Lista de pagos","record_payment":"Registro de pago","customer":"Cliente","date":"Fecha","amount":"Cantidad","action":"Acción","payment_number":"Numero de pago","payment_mode":"Modo de pago","invoice":"Factura","note":"Nota","add_payment":"Agregar pago","new_payment":"Nuevo pago","edit_payment":"Editar pago","view_payment":"Ver pago","add_new_payment":"Agregar nuevo pago","send_payment_receipt":"Enviar recibo de pago","send_payment":"Enviar pago","save_payment":"Guardar pago","update_payment":"Actualizar pago","payment":"Pago | Pagos","no_payments":"¡Aún no hay pagos!","no_matching_payments":"¡No hay pagos equivalentes!","list_of_payments":"Esta sección contendrá la lista de pagos.","select_payment_mode":"Seleccionar modo de pago","confirm_mark_as_sent":"Este presupuesto se marcará como enviado","confirm_send_payment":"This payment will be sent via email to the customer","send_payment_successfully":"Payment sent successfully","user_email_does_not_exist":"El email del usuario no existe","something_went_wrong":"Algo fue mal","confirm_delete":"No podrá recuperar este pago | No podrá recuperar estos pagos","created_message":"Pago creado con éxito","updated_message":"Pago actualizado con éxito","deleted_message":"Pago eliminado con éxito | Pagos eliminados exitosamente","invalid_amount_message":"El importe del pago no es válido."},"expenses":{"title":"Gastos","expenses_list":"Lista de gastos","select_a_customer":"Selecciona un cliente","expense_title":"Título","customer":"Cliente","contact":"Contacto","category":"Categoría","from_date":"Desde la fecha","to_date":"Hasta la fecha","expense_date":"Fecha","description":"Descripción","receipt":"Recibo","amount":"Cantidad","action":"Acción","note":"Nota","category_id":"Categoria ID","date":"Fecha de gastos","add_expense":"Añadir gastos","add_new_expense":"Añadir nuevo gasto","save_expense":"Guardar gasto","update_expense":"Actualizar gasto","download_receipt":"Descargar recibo","edit_expense":"Editar gasto","new_expense":"Nuevo gasto","expense":"Gastos | Gastos","no_expenses":"¡No hay gastos todavía!","list_of_expenses":"Esta sección contendrá la lista de gastos.","confirm_delete":"No podrá recuperar este gasto | No podrá recuperar estos gastos","created_message":"Gastos creados exitosamente","updated_message":"Gastos actualizados con éxito","deleted_message":"Gastos eliminados con éxito | Gastos eliminados exitosamente","categories":{"categories_list":"Lista de categorías","title":"Título","name":"Nombre","description":"Descripción","amount":"Cantidad","actions":"Comportamiento","add_category":"añadir categoría","new_category":"Nueva categoría","category":"Categoría | Categorias","select_a_category":"Seleccione una categoría"}},"login":{"email":"Email","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":"mail@example.com"},"users":{"title":"Users","users_list":"Users List","name":"Nombre","description":"Descripción","added_on":"Añadido","date_of_creation":"Fecha de creación","action":"Acción","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":"Teléfono","password":"Contraseña","user_attached_message":"No se puede eliminar un elemento que ya está en uso.","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":"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":"Backup","file_disk":"File Disk","custom_fields":"Campos Personalizados","payment_modes":"Payment Modes","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":"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":"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":"Email","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":"Default Invoice Email Body","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":"Company Address Format","shipping_address_format":"Shipping Address Format","billing_address_format":"Billing Address Format","invoice_setting_updated":"Configuración de factura actualizada correctamente"},"estimates":{"title":"Estimaciones","estimate_prefix":"Prefijo de los presupuestos","default_estimate_email_body":"Default Estimate Email Body","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":"Company Address Format","billing_address_format":"Billing Address Format","shipping_address_format":"Shipping Address Format"},"payments":{"title":"Pagos","description":"Modes of transaction for payments","payment_prefix":"Prefijo de los pagos","default_payment_email_body":"Default Payment Email Body","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":"Payment Modes","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":"Company Address Format","from_customer_address_format":"From Customer Address Format"},"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":"Save time by creating notes and reusing them on your invoices, estimates & payments.","notes":"Notas","type":"Tipo","add_note":"Add Note","add_new_note":"Add New Note","name":"Nombre","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":"Foto de perfil","name":"Nombre","email":"Email","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":"Email","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":"Default Language","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":"Select Date Format","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":"Requirements","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":"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":"Acción","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":"Nombre","driver":"Driver","disk_type":"Tipo","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":"Acción","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":"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":"Email","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":"App Domain","username":"Nombre de usuario de la base de datos","db_name":"Nombre de la base de datos","db_path":"Database Path","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":"This item unit name has already been taken","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":"Subject should not be greater than 100 characters.","message_maxlength":"Message should not be greater than 255 characters.","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":"Expiry date","pdf_invoice_label":"Factura","pdf_invoice_number":"Numero de factura","pdf_invoice_date":"Fecha de la factura","pdf_invoice_due_date":"Due date","pdf_notes":"Notas","pdf_items_label":"Artículos","pdf_quantity_label":"Cantidad","pdf_price_label":"Precio","pdf_discount_label":"Descuento","pdf_amount_label":"Cantidad","pdf_subtotal":"Subtotal","pdf_total":"Total","pdf_payment_receipt_label":"PAYMENT RECEIPT","pdf_payment_date":"Payment Date","pdf_payment_number":"Numero de pago","pdf_payment_mode":"Modo de pago","pdf_payment_amount_received_label":"Amount Received","pdf_expense_report_label":"EXPENSES REPORT","pdf_total_expenses_label":"TOTAL EXPENSE","pdf_profit_loss_label":"PROFIT & LOSS REPORT","pdf_income_label":"INCOME","pdf_net_profit_label":"NET PROFIT","pdf_customer_sales_report":"Sales Report: By Customer","pdf_total_sales_label":"TOTAL SALES","pdf_item_sales_label":"Sales Report: By Item","pdf_tax_report_label":"TAX REPORT","pdf_total_tax_label":"TOTAL TAX","pdf_tax_types_label":"Tipos de impuestos","pdf_expenses_label":"Gastos","pdf_bill_to":"Cobrar a,","pdf_ship_to":"Enviar a,","pdf_received_from":"Received from:"}')},kkvA:function(e,t,n){"use strict";var r=n("KHd+"),a=Object(r.a)({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"}},[t("circle",{staticClass:"opacity-25",attrs:{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}}),this._v(" "),t("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);t.a=a.exports},kl5A:function(e,t,n){(function(t,r,a){var i=n("qfHW"),o=n("P7XM"),s=n("yQtW"),l=n("43KI"),c=n("2Tiy"),u=s.IncomingMessage,d=s.readyStates;var p=e.exports=function(e){var n,r=this;l.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new t(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){r.setHeader(t,e.headers[t])}));var a=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!i.abortController)a=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!i.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");n=!0}r._mode=function(e,t){return i.fetch&&t?"fetch":i.mozchunkedarraybuffer?"moz-chunked-arraybuffer":i.msstream?"ms-stream":i.arraybuffer&&e?"arraybuffer":i.vbArray&&e?"text:vbarray":"text"}(n,a),r._fetchTimer=null,r.on("finish",(function(){r._onFinish()}))};o(p,l.Writable),p.prototype.setHeader=function(e,t){var n=e.toLowerCase();-1===f.indexOf(n)&&(this._headers[n]={name:e,value:t})},p.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},p.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},p.prototype._onFinish=function(){var e=this;if(!e._destroyed){var n=e._opts,o=e._headers,s=null;"GET"!==n.method&&"HEAD"!==n.method&&(s=i.arraybuffer?c(t.concat(e._body)):i.blobConstructor?new r.Blob(e._body.map((function(e){return c(e)})),{type:(o["content-type"]||{}).value||""}):t.concat(e._body).toString());var l=[];if(Object.keys(o).forEach((function(e){var t=o[e].name,n=o[e].value;Array.isArray(n)?n.forEach((function(e){l.push([t,e])})):l.push([t,n])})),"fetch"===e._mode){var u=null;if(i.abortController){var p=new AbortController;u=p.signal,e._fetchAbortController=p,"requestTimeout"in n&&0!==n.requestTimeout&&(e._fetchTimer=r.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),n.requestTimeout))}r.fetch(e._opts.url,{method:e._opts.method,headers:l,body:s||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin",signal:u}).then((function(t){e._fetchResponse=t,e._connect()}),(function(t){r.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)}))}else{var f=e._xhr=new r.XMLHttpRequest;try{f.open(e._opts.method,e._opts.url,!0)}catch(t){return void a.nextTick((function(){e.emit("error",t)}))}"responseType"in f&&(f.responseType=e._mode.split(":")[0]),"withCredentials"in f&&(f.withCredentials=!!n.withCredentials),"text"===e._mode&&"overrideMimeType"in f&&f.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in n&&(f.timeout=n.requestTimeout,f.ontimeout=function(){e.emit("requestTimeout")}),l.forEach((function(e){f.setRequestHeader(e[0],e[1])})),e._response=null,f.onreadystatechange=function(){switch(f.readyState){case d.LOADING:case d.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(f.onprogress=function(){e._onXHRProgress()}),f.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{f.send(s)}catch(t){return void a.nextTick((function(){e.emit("error",t)}))}}}},p.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},p.prototype._connect=function(){var e=this;e._destroyed||(e._response=new u(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},p.prototype._write=function(e,t,n){this._body.push(e),n()},p.prototype.abort=p.prototype.destroy=function(){this._destroyed=!0,r.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},p.prototype.end=function(e,t,n){"function"==typeof e&&(n=e,e=void 0),l.Writable.prototype.end.call(this,e,t,n)},p.prototype.flushHeaders=function(){},p.prototype.setTimeout=function(){},p.prototype.setNoDelay=function(){},p.prototype.setSocketKeepAlive=function(){};var f=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,n("tjlA").Buffer,n("yLpj"),n("8oxB"))},l5ep: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("wd/R"))},lB32:function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,".customer-select .list{max-height:173px;min-height:173px}",""])},lJCZ:function(e,t,n){(function(e){var r=n("kl5A"),a=n("yQtW"),i=n("U6jy"),o=n("jAWH"),s=n("CxY0"),l=t;l.request=function(t,n){t="string"==typeof t?s.parse(t):i(t);var a=-1===e.location.protocol.search(/^https?:$/)?"http:":"",o=t.protocol||a,l=t.hostname||t.host,c=t.port,u=t.path||"/";l&&-1!==l.indexOf(":")&&(l="["+l+"]"),t.url=(l?o+"//"+l:"")+(c?":"+c:"")+u,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var d=new r(t);return n&&d.on("response",n),d},l.get=function(e,t){var n=l.request(e,t);return n.end(),n},l.ClientRequest=r,l.IncomingMessage=a.IncomingMessage,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.globalAgent=new l.Agent,l.STATUS_CODES=o,l.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,n("yLpj"))},lSCD:function(e,t,n){var r=n("NykK"),a=n("GoyQ");e.exports=function(e){if(!a(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},"lXi+":function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,".update-description ul li{list-style:disc!important;margin-bottom:4px}",""])},lXzo:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,a;return"m"===n?t?"минута":"минуту":e+" "+(r=+e,a={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),r%10==1&&r%100!=11?a[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?a[1]:a[2])}var n=[/^янв/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:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,w:"неделя",ww:t,M:"месяц",MM:t,y:"год",yy:t},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("wd/R"))},lYtQ:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})}(n("wd/R"))},lgnt: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){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("wd/R"))},ljhN:function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},lm0R:function(e,t,n){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,a){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,o,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,a)}));default:for(i=new Array(s-1),o=0;o<i.length;)i[o++]=arguments[o];return t.nextTick((function(){e.apply(null,i)}))}}}:e.exports=t}).call(this,n("8oxB"))},loYQ: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("wd/R"))},lqaV:function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,"@-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}",""])},ls82:function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var a=t&&t.prototype instanceof d?t:d,i=Object.create(a.prototype),o=new k(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(a,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw i;return M()}for(n.method=a,n.arg=i;;){var o=n.delegate;if(o){var s=b(o,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,o),i}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var u={};function d(){}function p(){}function f(){}var m={};m[a]=function(){return this};var h=Object.getPrototypeOf,_=h&&h(h(D([])));_&&_!==t&&n.call(_,a)&&(m=_);var v=f.prototype=d.prototype=Object.create(m);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){var r;this._invoke=function(a,i){function o(){return new t((function(r,o){!function r(a,i,o,s){var l=c(e[a],e,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(d).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}(a,i,r,o)}))}return r=r?r.then(o,o):o()}}function b(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function D(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:M}}function M(){return{value:void 0,done:!0}}return p.prototype=v.constructor=f,f.constructor=p,p.displayName=s(f,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,s(e,o,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(y.prototype),y.prototype[i]=function(){return this},e.AsyncIterator=y,e.async=function(t,n,r,a,i){void 0===i&&(i=Promise);var o=new y(l(t,n,r,a),i);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},g(v),s(v,o,"Generator"),v[a]=function(){return this},v.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=D,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},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 t=this;function r(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,u):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),u},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),x(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;x(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:D(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},lyxo:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n("wd/R"))},mTTR:function(e,t,n){var r=n("b80T"),a=n("QcOe"),i=n("MMmD");e.exports=function(e){return i(e)?r(e,!0):a(e)}},mc0g:function(e,t){e.exports=function(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++a];if(!1===n(i[l],l,i))break}return t}}},mdPL:function(e,t,n){(function(e){var r=n("WFqU"),a=t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===a&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s}).call(this,n("YuTi")(e))},"mv/X":function(e,t,n){var r=n("ljhN"),a=n("MMmD"),i=n("wJg7"),o=n("GoyQ");e.exports=function(e,t,n){if(!o(n))return!1;var s=typeof t;return!!("number"==s?a(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},nmnc:function(e,t,n){var r=n("Kz5y").Symbol;e.exports=r},nyYc:function(e,t,n){!function(e){"use strict";var t=/(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,n=[/^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:t,monthsShortRegex:t,monthsStrictRegex:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,monthsShortStrictRegex:/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",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("wd/R"))},o0o1:function(e,t,n){e.exports=n("ls82")},o1bE:function(e,t,n){!function(e){"use strict";var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(r,a,i,o){var s=t(r),l=n[e][t(r)];return 2===s&&(l=l[a?0:1]),l.replace(/%d/i,r)}},a=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-dz",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}})}(n("wd/R"))},o6ji:function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,'.content-box[data-v-f30130f4]{background-image:url(/images/login-vector1.svg)}.content-bottom[data-v-f30130f4]{background-image:url(/images/login-vector3.svg);background-size:100% 100%;height:300px;right:32%;bottom:0}.content-box[data-v-f30130f4]:before{background-image:url(/images/frame.svg);background-size:100% 100%;height:300px;right:0;top:0;width:420px;z-index:1}.content-box[data-v-f30130f4]:after,.content-box[data-v-f30130f4]:before{content:"";background-repeat:no-repeat;position:absolute}.content-box[data-v-f30130f4]:after{background-image:url(/images/login-vector2.svg);background-size:cover;height:100%;width:100%;right:7.5%}',""])},ozpq:function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"isAppLoaded",(function(){return J})),n.d(r,"languages",(function(){return Z})),n.d(r,"currencies",(function(){return X})),n.d(r,"timeZones",(function(){return Q})),n.d(r,"dateFormats",(function(){return ee})),n.d(r,"fiscalYears",(function(){return te})),n.d(r,"countries",(function(){return ne})),n.d(r,"isSidebarOpen",(function(){return re}));var a={};n.r(a),n.d(a,"login",(function(){return pe})),n.d(a,"setLogoutFalse",(function(){return fe})),n.d(a,"logout",(function(){return me}));var i={};n.r(i),n.d(i,"isLoggedOut",(function(){return he}));var o={};n.r(o),n.d(o,"updateCurrentUser",(function(){return be})),n.d(o,"fetchCurrentUser",(function(){return we})),n.d(o,"uploadAvatar",(function(){return xe})),n.d(o,"fetchUserSettings",(function(){return ke})),n.d(o,"updateUserSettings",(function(){return De}));var s={};n.r(s),n.d(s,"currentUser",(function(){return Me}));var l={};n.r(l),n.d(l,"fetchCategories",(function(){return Oe})),n.d(l,"fetchCategory",(function(){return je})),n.d(l,"addCategory",(function(){return Ae})),n.d(l,"updateCategory",(function(){return Pe})),n.d(l,"deleteCategory",(function(){return Ye}));var c={};n.r(c),n.d(c,"categories",(function(){return $e})),n.d(c,"getCategoryById",(function(){return Ie}));var u={};n.r(u),n.d(u,"fetchCustomers",(function(){return He})),n.d(u,"fetchCustomer",(function(){return Be})),n.d(u,"fetchViewCustomer",(function(){return qe})),n.d(u,"addCustomer",(function(){return Ue})),n.d(u,"updateCustomer",(function(){return Ve})),n.d(u,"deleteCustomer",(function(){return We})),n.d(u,"deleteMultipleCustomers",(function(){return Ke})),n.d(u,"setSelectAllState",(function(){return Ge})),n.d(u,"selectAllCustomers",(function(){return Je})),n.d(u,"selectCustomer",(function(){return Ze})),n.d(u,"resetSelectedCustomer",(function(){return Xe}));var d={};n.r(d),n.d(d,"customers",(function(){return Qe})),n.d(d,"selectAllField",(function(){return et})),n.d(d,"selectedCustomers",(function(){return tt})),n.d(d,"totalCustomers",(function(){return nt})),n.d(d,"getCustomer",(function(){return rt})),n.d(d,"selectedViewCustomer",(function(){return at}));var p={};n.r(p),n.d(p,"setSelectedCompany",(function(){return ut})),n.d(p,"updateCompany",(function(){return dt})),n.d(p,"updateCompanyLogo",(function(){return pt})),n.d(p,"fetchCompanySettings",(function(){return ft})),n.d(p,"updateCompanySettings",(function(){return mt})),n.d(p,"setItemDiscount",(function(){return ht})),n.d(p,"fetchMailDrivers",(function(){return _t})),n.d(p,"fetchMailConfig",(function(){return vt})),n.d(p,"updateMailConfig",(function(){return gt})),n.d(p,"sendTestMail",(function(){return yt})),n.d(p,"setDefaultCurrency",(function(){return bt}));var f={};n.r(f),n.d(f,"getSelectedCompany",(function(){return wt})),n.d(f,"getMomentDateFormat",(function(){return xt})),n.d(f,"getCarbonDateFormat",(function(){return kt})),n.d(f,"itemDiscount",(function(){return Dt})),n.d(f,"defaultFiscalYear",(function(){return Mt})),n.d(f,"defaultTimeZone",(function(){return St})),n.d(f,"defaultCurrency",(function(){return Ct})),n.d(f,"defaultCurrencyForInput",(function(){return Lt}));var m={};n.r(m),n.d(m,"loadData",(function(){return At}));var h={};n.r(h),n.d(h,"getContacts",(function(){return Pt})),n.d(h,"getInvoices",(function(){return Yt})),n.d(h,"getEstimates",(function(){return $t})),n.d(h,"getExpenses",(function(){return It})),n.d(h,"getRecentInvoices",(function(){return Nt})),n.d(h,"getNewContacts",(function(){return zt})),n.d(h,"getTotalDueAmount",(function(){return Ft})),n.d(h,"getDueInvoices",(function(){return Rt})),n.d(h,"getRecentEstimates",(function(){return Ht})),n.d(h,"getDashboardDataLoaded",(function(){return Bt})),n.d(h,"getWeeklyInvoicesCounter",(function(){return qt})),n.d(h,"getWeeklyInvoicesDays",(function(){return Ut})),n.d(h,"getChartMonths",(function(){return Vt})),n.d(h,"getChartInvoices",(function(){return Wt})),n.d(h,"getChartExpenses",(function(){return Kt})),n.d(h,"getNetProfits",(function(){return Gt})),n.d(h,"getReceiptTotals",(function(){return Jt})),n.d(h,"getTotalSales",(function(){return Zt})),n.d(h,"getTotalReceipts",(function(){return Xt})),n.d(h,"getTotalExpenses",(function(){return Qt})),n.d(h,"getNetProfit",(function(){return en}));var _={};n.r(_),n.d(_,"fetchEstimates",(function(){return ln})),n.d(_,"getRecord",(function(){return cn})),n.d(_,"fetchCreateEstimate",(function(){return un})),n.d(_,"getEstimateNumber",(function(){return dn})),n.d(_,"fetchEstimate",(function(){return pn})),n.d(_,"fetchViewEstimate",(function(){return fn})),n.d(_,"sendEmail",(function(){return mn})),n.d(_,"addEstimate",(function(){return hn})),n.d(_,"deleteEstimate",(function(){return _n})),n.d(_,"deleteMultipleEstimates",(function(){return vn})),n.d(_,"updateEstimate",(function(){return gn})),n.d(_,"markAsAccepted",(function(){return yn})),n.d(_,"markAsRejected",(function(){return bn})),n.d(_,"markAsSent",(function(){return wn})),n.d(_,"convertToInvoice",(function(){return xn})),n.d(_,"searchEstimate",(function(){return kn})),n.d(_,"selectEstimate",(function(){return Dn})),n.d(_,"setSelectAllState",(function(){return Mn})),n.d(_,"selectAllEstimates",(function(){return Sn})),n.d(_,"resetSelectedEstimates",(function(){return Cn})),n.d(_,"setCustomer",(function(){return Ln})),n.d(_,"setItem",(function(){return Tn})),n.d(_,"resetCustomer",(function(){return En})),n.d(_,"resetItem",(function(){return On})),n.d(_,"setTemplate",(function(){return jn})),n.d(_,"selectCustomer",(function(){return An})),n.d(_,"resetSelectedCustomer",(function(){return Pn})),n.d(_,"selectNote",(function(){return Yn})),n.d(_,"resetSelectedNote",(function(){return $n}));var v={};n.r(v),n.d(v,"estimates",(function(){return In})),n.d(v,"selectAllField",(function(){return Nn})),n.d(v,"getTemplateId",(function(){return zn})),n.d(v,"selectedEstimates",(function(){return Fn})),n.d(v,"totalEstimates",(function(){return Rn})),n.d(v,"selectedCustomer",(function(){return Hn})),n.d(v,"selectedNote",(function(){return Bn})),n.d(v,"getEstimate",(function(){return qn}));var g={};n.r(g),n.d(g,"fetchExpenses",(function(){return Gn})),n.d(g,"fetchExpense",(function(){return Jn})),n.d(g,"getExpenseReceipt",(function(){return Zn})),n.d(g,"uploadExpenseReceipt",(function(){return Xn})),n.d(g,"addExpense",(function(){return Qn})),n.d(g,"updateExpense",(function(){return er})),n.d(g,"deleteExpense",(function(){return tr})),n.d(g,"deleteMultipleExpenses",(function(){return nr})),n.d(g,"setSelectAllState",(function(){return rr})),n.d(g,"selectAllExpenses",(function(){return ar})),n.d(g,"selectExpense",(function(){return ir}));var y={};n.r(y),n.d(y,"expenses",(function(){return or})),n.d(y,"selectAllField",(function(){return sr})),n.d(y,"selectedExpenses",(function(){return lr})),n.d(y,"totalExpenses",(function(){return cr}));var b={};n.r(b),n.d(b,"fetchInvoices",(function(){return mr})),n.d(b,"fetchInvoice",(function(){return hr})),n.d(b,"sendEmail",(function(){return _r})),n.d(b,"addInvoice",(function(){return vr})),n.d(b,"deleteInvoice",(function(){return gr})),n.d(b,"deleteMultipleInvoices",(function(){return yr})),n.d(b,"updateInvoice",(function(){return br})),n.d(b,"markAsSent",(function(){return wr})),n.d(b,"cloneInvoice",(function(){return xr})),n.d(b,"searchInvoice",(function(){return kr})),n.d(b,"getInvoiceNumber",(function(){return Dr})),n.d(b,"selectInvoice",(function(){return Mr})),n.d(b,"setSelectAllState",(function(){return Sr})),n.d(b,"selectAllInvoices",(function(){return Cr})),n.d(b,"resetSelectedInvoices",(function(){return Lr})),n.d(b,"setCustomer",(function(){return Tr})),n.d(b,"resetCustomer",(function(){return Er})),n.d(b,"setTemplate",(function(){return Or})),n.d(b,"selectCustomer",(function(){return jr})),n.d(b,"resetSelectedCustomer",(function(){return Ar})),n.d(b,"setItem",(function(){return Pr})),n.d(b,"resetItem",(function(){return Yr})),n.d(b,"selectNote",(function(){return $r})),n.d(b,"resetSelectedNote",(function(){return Ir}));var w={};n.r(w),n.d(w,"invoices",(function(){return Nr})),n.d(w,"selectAllField",(function(){return zr})),n.d(w,"getTemplateId",(function(){return Fr})),n.d(w,"selectedInvoices",(function(){return Rr})),n.d(w,"totalInvoices",(function(){return Hr})),n.d(w,"selectedCustomer",(function(){return Br})),n.d(w,"selectedNote",(function(){return qr})),n.d(w,"selectedItem",(function(){return Ur})),n.d(w,"getInvoice",(function(){return Vr}));var x={};n.r(x),n.d(x,"fetchPayments",(function(){return Qr})),n.d(x,"fetchPayment",(function(){return ea})),n.d(x,"addPayment",(function(){return ta})),n.d(x,"setSelectAllState",(function(){return na})),n.d(x,"selectPayment",(function(){return ra})),n.d(x,"updatePayment",(function(){return aa})),n.d(x,"deleteMultiplePayments",(function(){return ia})),n.d(x,"deletePayment",(function(){return oa})),n.d(x,"selectAllPayments",(function(){return sa})),n.d(x,"addPaymentMode",(function(){return la})),n.d(x,"updatePaymentMode",(function(){return ca})),n.d(x,"fetchPaymentModes",(function(){return ua})),n.d(x,"fetchPaymentMode",(function(){return da})),n.d(x,"deletePaymentMode",(function(){return pa})),n.d(x,"sendEmail",(function(){return fa})),n.d(x,"searchPayment",(function(){return ma})),n.d(x,"selectNote",(function(){return ha})),n.d(x,"resetSelectedNote",(function(){return _a}));var k={};n.r(k),n.d(k,"payments",(function(){return va})),n.d(k,"selectedPayments",(function(){return ga})),n.d(k,"selectAllField",(function(){return ya})),n.d(k,"totalPayments",(function(){return ba})),n.d(k,"paymentModes",(function(){return wa})),n.d(k,"selectedNote",(function(){return xa}));var D={};n.r(D),n.d(D,"fetchItems",(function(){return Ca})),n.d(D,"fetchItem",(function(){return La})),n.d(D,"addItem",(function(){return Ta})),n.d(D,"updateItem",(function(){return Ea})),n.d(D,"deleteItem",(function(){return Oa})),n.d(D,"deleteMultipleItems",(function(){return ja})),n.d(D,"setSelectAllState",(function(){return Aa})),n.d(D,"selectAllItems",(function(){return Pa})),n.d(D,"selectItem",(function(){return Ya})),n.d(D,"addItemUnit",(function(){return $a})),n.d(D,"updateItemUnit",(function(){return Ia})),n.d(D,"fetchItemUnits",(function(){return Na})),n.d(D,"fatchItemUnit",(function(){return za})),n.d(D,"deleteItemUnit",(function(){return Fa}));var M={};n.r(M),n.d(M,"items",(function(){return Ra})),n.d(M,"selectAllField",(function(){return Ha})),n.d(M,"selectedItems",(function(){return Ba})),n.d(M,"totalItems",(function(){return qa})),n.d(M,"itemUnits",(function(){return Ua}));var S={};n.r(S),n.d(S,"openModal",(function(){return Ja})),n.d(S,"closeModal",(function(){return Za})),n.d(S,"resetModalData",(function(){return Xa}));var C={};n.r(C),n.d(C,"modalActive",(function(){return Qa})),n.d(C,"modalTitle",(function(){return ei})),n.d(C,"componentName",(function(){return ti})),n.d(C,"modalDataID",(function(){return ni})),n.d(C,"modalData",(function(){return ri})),n.d(C,"modalSize",(function(){return ai})),n.d(C,"refreshData",(function(){return ii})),n.d(C,"variant",(function(){return oi}));var L={};n.r(L),n.d(L,"fetchCustomFields",(function(){return hi})),n.d(L,"fetchNoteCustomFields",(function(){return _i})),n.d(L,"fetchCustomField",(function(){return vi})),n.d(L,"addCustomField",(function(){return gi})),n.d(L,"updateCustomField",(function(){return yi})),n.d(L,"deleteCustomFields",(function(){return bi}));var T={};n.r(T),n.d(T,"getCustomFields",(function(){return wi}));var E={};n.r(E),n.d(E,"fetchTaxTypes",(function(){return Ci})),n.d(E,"fetchTaxTypesList",(function(){return Li})),n.d(E,"addTaxType",(function(){return Ti})),n.d(E,"fetchTaxType",(function(){return Ei})),n.d(E,"updateTaxType",(function(){return Oi})),n.d(E,"deleteTaxType",(function(){return ji}));var O={};n.r(O),n.d(O,"taxTypes",(function(){return Ai})),n.d(O,"getTaxTypeById",(function(){return Pi}));var j={};n.r(j),n.d(j,"fetchUsers",(function(){return zi})),n.d(j,"fetchUser",(function(){return Fi})),n.d(j,"addUser",(function(){return Ri})),n.d(j,"updateUser",(function(){return Hi})),n.d(j,"deleteUser",(function(){return Bi})),n.d(j,"deleteMultipleUsers",(function(){return qi})),n.d(j,"setSelectAllState",(function(){return Ui})),n.d(j,"selectAllUsers",(function(){return Vi})),n.d(j,"selectedUser",(function(){return Wi}));var A={};n.r(A),n.d(A,"users",(function(){return Ki})),n.d(A,"selectAllField",(function(){return Gi})),n.d(A,"selectedUsers",(function(){return Ji})),n.d(A,"totalUsers",(function(){return Zi}));var P={};n.r(P),n.d(P,"fetchBackups",(function(){return no})),n.d(P,"createBackup",(function(){return ro})),n.d(P,"removeBackup",(function(){return ao}));var Y={};n.r(Y),n.d(Y,"getBackups",(function(){return io})),n.d(Y,"getBackupDisks",(function(){return oo})),n.d(Y,"getBackupDisksInfo",(function(){return so}));var $={};n.r($),n.d($,"fetchDisks",(function(){return po})),n.d($,"fetchDiskDrivers",(function(){return fo})),n.d($,"fetchDiskEnv",(function(){return mo})),n.d($,"createDisk",(function(){return ho})),n.d($,"updateDisk",(function(){return _o})),n.d($,"deleteFileDisk",(function(){return vo}));var I={};n.r(I),n.d(I,"getDisks",(function(){return go})),n.d(I,"getDiskDrivers",(function(){return yo}));var N={};n.r(N),n.d(N,"fetchEstimateTemplates",(function(){return Mo}));var z={};n.r(z),n.d(z,"getEstimateTemplates",(function(){return So}));var F={};n.r(F),n.d(F,"fetchInvoiceTemplates",(function(){return Eo}));var R={};n.r(R),n.d(R,"getInvoiceTemplates",(function(){return Oo}));var H={};n.r(H),n.d(H,"searchUsers",(function(){return $o}));var B={};n.r(B),n.d(B,"getCustomerList",(function(){return Io})),n.d(B,"getUserList",(function(){return No}));var q={};n.r(q),n.d(q,"fetchNotes",(function(){return Ho})),n.d(q,"fetchNote",(function(){return Bo})),n.d(q,"addNote",(function(){return qo})),n.d(q,"updateNote",(function(){return Uo})),n.d(q,"deleteNote",(function(){return Vo}));var U={};n.r(U),n.d(U,"notes",(function(){return Wo}));var V,W=n("XuX8"),K=n.n(W),G=n("L2JU"),J=function(e){return e.isAppLoaded},Z=function(e){return e.languages},X=function(e){return e.currencies},Q=function(e){return e.timeZones},ee=function(e){return e.dateFormats},te=function(e){return e.fiscalYears},ne=function(e){return e.countries},re=function(e){return e.isSidebarOpen};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}var ie,oe=(ae(V={},"UPDATE_APP_LOADING_STATUS",(function(e,t){e.isAppLoaded=t})),ae(V,"SET_LANGUAGES",(function(e,t){e.languages=t})),ae(V,"SET_CURRENCIES",(function(e,t){e.currencies=t})),ae(V,"SET_TIMEZONES",(function(e,t){e.timeZones=t})),ae(V,"SET_DATE_FORMATS",(function(e,t){e.dateFormats=t})),ae(V,"SET_FISCAL_YEARS",(function(e,t){e.fiscalYears=t})),ae(V,"SET_COUNTRIES",(function(e,t){e.countries=t})),ae(V,"TOGGLE_SIDEBAR",(function(e){e.isSidebarOpen=!e.isSidebarOpen})),V),se={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("SET_CURRENCIES",n.data.currencies),t("SET_COUNTRIES",n.data.countries),t("UPDATE_APP_LOADING_STATUS",!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("SET_LANGUAGES",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("SET_CURRENCIES",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("SET_DATE_FORMATS",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("SET_FISCAL_YEARS",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("SET_TIMEZONES",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("SET_COUNTRIES",n.data.countries),e(n)})).catch((function(e){n(e)}))}))},toggleSidebar:function(e){(0,e.commit)("TOGGLE_SIDEBAR")}};function le(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,ue=(le(ie={},"AUTH_SUCCESS",(function(e,t){e.token=t,e.status="success"})),le(ie,"SET_LOGOUT",(function(e,t){e.isLoggedOut=t})),le(ie,"AUTH_ERROR",(function(e,t){e.token=null,e.status="error"})),le(ie,"REFRESH_SUCCESS",(function(e,t){e.token=t,e.status="success"})),ie),de=n("qDvH"),pe=function(e,t){var n=e.commit;return new Promise((function(e,r){window.axios.get("/sanctum/csrf-cookie").then((function(a){window.axios.post("/login",t).then((function(t){n("SET_LOGOUT",!1),n("user/RESET_CURRENT_USER",null,{root:!0}),n("UPDATE_APP_LOADING_STATUS",!1,{root:!0}),window.toastr.success("Login Successful"),e(t)})).catch((function(e){n("AUTH_ERROR",e.response),r(e)}))}))}))},fe=function(e){e.state;(0,e.commit)("SET_LOGOUT",!1)},me=function(e){var t=e.state,n=e.commit;return new Promise((function(e,r){if(t.isLoggedOut)return e(),!0;n("SET_LOGOUT",!0),window.axios.get("/auth/logout").then((function(){de.a.push("/login"),window.toastr.success("Logged out!","Success")})).catch((function(e){de.a.push("/login"),r(e)}))}))},he=function(e){return e.isLoggedOut},_e={namespaced:!0,state:{status:"",isLoggedOut:!1},getters:i,actions:a,mutations:ue};function ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ge,ye=(ve(ce={},"RESET_CURRENT_USER",(function(e,t){e.currentUser=null})),ve(ce,"BOOTSTRAP_CURRENT_USER",(function(e,t){e.currentUser=t})),ve(ce,"UPDATE_CURRENT_USER",(function(e,t){e.currentUser=t})),ve(ce,"UPDATE_USER_AVATAR",(function(e,t){e.currentUser&&(e.currentUser.avatar=t.avatar)})),ve(ce,"SET_DEFAULT_LANGUAGE",(function(e,t){window.i18n.locale=t})),ce),be=(n("LvDl"),function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){axios.put("/api/v1/me",t).then((function(t){n("UPDATE_CURRENT_USER",t.data.user),e(t)})).catch((function(e){r(e)}))}))}),we=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/me",t).then((function(t){n("BOOTSTRAP_CURRENT_USER",t.data.user),e(t)})).catch((function(e){r(e)}))}))},xe=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/me/upload-avatar",t).then((function(t){n("UPDATE_USER_AVATAR",t.data.user),e(t)})).catch((function(e){r(e)}))}))},ke=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)}))}))},De=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.put("/api/v1/me/settings",t).then((function(r){n("SET_DEFAULT_LANGUAGE",t.settings.language),e(r)})).catch((function(e){r(e)}))}))},Me=function(e){return e.currentUser},Se={namespaced:!0,state:{currentUser:null},getters:s,actions:o,mutations:ye};function Ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Te,Ee=(Le(ge={},"SET_CATEGORIES",(function(e,t){e.categories=t})),Le(ge,"ADD_CATEGORY",(function(e,t){e.categories.push(t.category)})),Le(ge,"UPDATE_CATEGORY",(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?Ce(Object(n),!0).forEach((function(t){Le(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t.category))})),Le(ge,"DELETE_CATEGORY",(function(e,t){var n=e.categories.findIndex((function(e){return e.id===t}));e.categories.splice(n,1)})),ge),Oe=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/categories",{params:t}).then((function(t){n("SET_CATEGORIES",t.data.categories.data),e(t)})).catch((function(e){r(e)}))}))},je=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)}))}))},Ae=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/categories",t).then((function(t){n("ADD_CATEGORY",t.data),e(t)})).catch((function(e){r(e)}))}))},Pe=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.put("/api/v1/categories/".concat(t.id),t).then((function(t){n("UPDATE_CATEGORY",t.data),e(t)})).catch((function(e){r(e)}))}))},Ye=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.delete("/api/v1/categories/".concat(t)).then((function(r){r.data.success&&n("DELETE_CATEGORY",t),e(r)})).catch((function(e){r(e)}))}))},$e=function(e){return e.categories},Ie=function(e){return function(t){return e.categories.find((function(e){return e.id===t}))}},Ne={namespaced:!0,state:{categories:[]},getters:c,actions:l,mutations:Ee};function ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fe,Re=(ze(Te={},"BOOTSTRAP_CUSTOMERS",(function(e,t){e.customers=t})),ze(Te,"SET_TOTAL_CUSTOMERS",(function(e,t){e.totalCustomers=t})),ze(Te,"ADD_CUSTOMER",(function(e,t){e.customers.push(t.customer)})),ze(Te,"UPDATE_CUSTOMER",(function(e,t){var n=e.customers.findIndex((function(e){return e.id===t.customer.id}));e.customers[n]=t.customer})),ze(Te,"DELETE_CUSTOMER",(function(e,t){var n=e.customers.findIndex((function(e){return e.id===t}));e.customers.splice(n,1)})),ze(Te,"DELETE_MULTIPLE_CUSTOMERS",(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=[]})),ze(Te,"SET_SELECTED_CUSTOMERS",(function(e,t){e.selectedCustomers=t})),ze(Te,"RESET_SELECTED_CUSTOMER",(function(e,t){e.selectedCustomer=null})),ze(Te,"SET_SELECT_ALL_STATE",(function(e,t){e.selectAllField=t})),ze(Te,"SET_SELECTED_VIEW_CUSTOMER",(function(e,t){e.selectedViewCustomer=t})),Te),He=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/customers",{params:t}).then((function(t){n("BOOTSTRAP_CUSTOMERS",t.data.customers.data),n("SET_TOTAL_CUSTOMERS",t.data.customerTotalCount),n("search/SET_CUSTOMER_LISTS",t.data.customers.data,{root:!0}),e(t)})).catch((function(e){r(e)}))}))},Be=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.get("/api/v1/customers/".concat(t.id)).then((function(t){e(t)})).catch((function(e){n(e)}))}))},qe=function(e,t){var n=e.commit;e.dispatch;return new Promise((function(e,r){window.axios.get("/api/v1/customers/".concat(t.id,"/stats"),{params:t}).then((function(t){n("SET_SELECTED_VIEW_CUSTOMER",t.data),e(t)})).catch((function(e){r(e)}))}))},Ue=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/customers",t).then((function(t){n("ADD_CUSTOMER",t.data),e(t)})).catch((function(e){r(e)}))}))},Ve=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.put("/api/v1/customers/".concat(t.id),t).then((function(t){t.data.success&&n("UPDATE_CUSTOMER",t.data),e(t)})).catch((function(e){r(e)}))}))},We=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/customers/delete",t).then((function(r){n("DELETE_CUSTOMER",t),e(r)})).catch((function(e){r(e)}))}))},Ke=function(e,t){var n=e.commit,r=(e.dispatch,e.state);return new Promise((function(e,t){window.axios.post("/api/v1/customers/delete",{ids:r.selectedCustomers}).then((function(t){n("DELETE_MULTIPLE_CUSTOMERS",r.selectedCustomers),e(t)})).catch((function(e){t(e)}))}))},Ge=function(e,t){var n=e.commit;e.dispatch,e.state;n("SET_SELECT_ALL_STATE",t)},Je=function(e){var t=e.commit,n=(e.dispatch,e.state);n.selectedCustomers.length===n.customers.length?(t("SET_SELECTED_CUSTOMERS",[]),t("SET_SELECT_ALL_STATE",!1)):(t("SET_SELECTED_CUSTOMERS",n.customers.map((function(e){return e.id}))),t("SET_SELECT_ALL_STATE",!0))},Ze=function(e,t){var n=e.commit,r=(e.dispatch,e.state);n("SET_SELECTED_CUSTOMERS",t),r.selectedCustomers.length===r.customers.length?n("SET_SELECT_ALL_STATE",!0):n("SET_SELECT_ALL_STATE",!1)},Xe=function(e,t){var n=e.commit;e.dispatch,e.state;n("RESET_SELECTED_CUSTOMER")},Qe=function(e){return e.customers},et=function(e){return e.selectAllField},tt=function(e){return e.selectedCustomers},nt=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}))}},at=function(e){return e.selectedViewCustomer},it={namespaced:!0,state:{customers:[],totalCustomers:0,selectAllField:!1,selectedCustomers:[],selectedViewCustomer:{}},getters:d,actions:u,mutations:Re},ot=n("Ugjx");function st(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lt,ct=(st(Fe={},"SET_SELECTED_COMPANY",(function(e,t){ot.a.set("selectedCompany",t.id),e.selectedCompany=t})),st(Fe,"SET_MOMENT_DATE_FORMAT",(function(e,t){e.momentDateFormat=t})),st(Fe,"SET_CARBON_DATE_FORMAT",(function(e,t){e.carbonDateFormat=t})),st(Fe,"SET_ITEM_DISCOUNT",(function(e){e.item_discount=!0})),st(Fe,"SET_DEFAULT_FISCAL_YEAR",(function(e,t){e.defaultFiscalYear=t})),st(Fe,"SET_DEFAULT_TIME_ZONE",(function(e,t){e.defaultTimeZone=t})),st(Fe,"SET_DEFAULT_CURRENCY",(function(e,t){e.defaultCurrency=t.default_currency})),Fe),ut=function(e,t){var n=e.commit;e.dispatch,e.state;n("SET_SELECTED_COMPANY",t)},dt=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)}))}))},pt=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)}))}))},ft=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)}))}))},mt=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/company/settings",t).then((function(r){n("SET_CARBON_DATE_FORMAT",t.settings.carbon_date_format),n("SET_MOMENT_DATE_FORMAT",t.settings.moment_date_format),e(r)})).catch((function(e){r(e)}))}))},ht=function(e){var t=e.commit;e.dispatch,e.state;t("SET_ITEM_DISCOUNT")},_t=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)}))}))},vt=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)}))}))},gt=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)}))}))},yt=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)}))}))},bt=function(e,t){var n=e.commit;e.dispatch,e.state;n("SET_DEFAULT_CURRENCY",{default_currency:t})},wt=function(e){return e.selectedCompany},xt=function(e){return e.momentDateFormat},kt=function(e){return e.carbonDateFormat},Dt=function(e){return e.item_discount},Mt=function(e){return e.defaultFiscalYear},St=function(e){return e.defaultTimeZone},Ct=function(e){return e.defaultCurrency},Lt=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}},Tt={namespaced:!0,state:{companies:[],selectedCompany:null,company:null,momentDateFormat:null,carbonDateFormat:null,item_discount:!1,defaultFiscalYear:null,defaultTimeZone:null,defaultCurrency:null},getters:f,actions:p,mutations:ct};function Et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ot,jt=(Et(lt={},"SET_INITIAL_DATA",(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})),Et(lt,"SET_DASHBOARD_DATA_LOADED_STATE",(function(e,t){e.isDashboardDataLoaded=t})),Et(lt,"UPDATE_INVOICE_STATUS",(function(e,t){var n=e.dueInvoices.findIndex((function(e){return e.id===t.id}));e.dueInvoices[n]&&(e.dueInvoices[n].status=t.status)})),Et(lt,"DELETE_INVOICE",(function(e,t){var n=e.dueInvoices.findIndex((function(e){return e.id===t.ids[0]}));e.dueInvoices.splice(n,1)})),Et(lt,"DELETE_ESTIMATE",(function(e,t){var n=e.recentEstimates.findIndex((function(e){return e.id===t.ids[0]}));e.recentEstimates.splice(n,1)})),Et(lt,"UPDATE_ESTIMATE_STATUS",(function(e,t){var n=e.recentEstimates.findIndex((function(e){return e.id===t.id}));e.recentEstimates[n]&&(e.recentEstimates[n].status=t.status)})),lt),At=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/dashboard",{params:t}).then((function(t){n("SET_INITIAL_DATA",t.data),n("SET_DASHBOARD_DATA_LOADED_STATE",!0),e(t)})).catch((function(e){r(e)}))}))},Pt=function(e){return e.contacts},Yt=function(e){return e.invoices},$t=function(e){return e.estimates},It=function(e){return e.expenses},Nt=function(e){return e.recentInvoices},zt=function(e){return e.newContacts},Ft=function(e){return e.totalDueAmount},Rt=function(e){return e.dueInvoices},Ht=function(e){return e.recentEstimates},Bt=function(e){return e.isDashboardDataLoaded},qt=function(e){return e.weeklyInvoices.counter},Ut=function(e){return e.weeklyInvoices.days},Vt=function(e){return e.chartData.months},Wt=function(e){return e.chartData.invoiceTotals},Kt=function(e){return e.chartData.expenseTotals},Gt=function(e){return e.chartData.netProfits},Jt=function(e){return e.chartData.receiptTotals},Zt=function(e){return e.salesTotal},Xt=function(e){return e.totalReceipts},Qt=function(e){return e.totalExpenses},en=function(e){return e.netProfit},tn={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:m,mutations:jt};function nn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rn(e){return function(e){if(Array.isArray(e))return an(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 an(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 an(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 an(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var on,sn=(nn(Ot={},"SET_ESTIMATES",(function(e,t){e.estimates=t})),nn(Ot,"SET_TOTAL_ESTIMATES",(function(e,t){e.totalEstimates=t})),nn(Ot,"ADD_ESTIMATE",(function(e,t){e.estimates=[].concat(rn(e.estimates),[t])})),nn(Ot,"DELETE_ESTIMATE",(function(e,t){var n=e.estimates.findIndex((function(e){return e.id===t}));e.estimates.splice(n,1)})),nn(Ot,"SET_SELECTED_ESTIMATES",(function(e,t){e.selectedEstimates=t})),nn(Ot,"DELETE_MULTIPLE_ESTIMATES",(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=[]})),nn(Ot,"UPDATE_ESTIMATE",(function(e,t){var n=e.estimates.findIndex((function(e){return e.id===t.estimate.id}));e.estimates[n]=t.estimate})),nn(Ot,"UPDATE_ESTIMATE_STATUS",(function(e,t){var n=e.estimates.findIndex((function(e){return e.id===t.id}));e.estimates[n]&&(e.estimates[n].status=t.status)})),nn(Ot,"RESET_SELECTED_ESTIMATES",(function(e,t){e.selectedEstimates=[],e.selectAllField=!1})),nn(Ot,"SET_TEMPLATE_ID",(function(e,t){e.estimateTemplateId=t})),nn(Ot,"SELECT_CUSTOMER",(function(e,t){e.selectedCustomer=t})),nn(Ot,"RESET_SELECTED_CUSTOMER",(function(e,t){e.selectedCustomer=null})),nn(Ot,"SET_SELECT_ALL_STATE",(function(e,t){e.selectAllField=t})),nn(Ot,"VIEW_ESTIMATE",(function(e,t){e.selectedEstimate=t})),nn(Ot,"SET_SELECTED_NOTE",(function(e,t){e.selectedNote=t})),nn(Ot,"RESET_SELECTED_NOTE",(function(e,t){e.selectedNote=null})),Ot),ln=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/estimates",{params:t}).then((function(t){n("SET_ESTIMATES",t.data.estimates.data),n("SET_TOTAL_ESTIMATES",t.data.estimateTotalCount),e(t)})).catch((function(e){r(e)}))}))},cn=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)}))}))},un=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)}))}))},dn=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)}))}))},pn=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/estimates/".concat(t)).then((function(t){n("SET_TEMPLATE_ID",t.data.estimate.estimate_template_id),e(t)})).catch((function(e){r(e)}))}))},fn=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/estimates/".concat(t)).then((function(t){n("VIEW_ESTIMATE",t.data.estimate),e(t)})).catch((function(e){r(e)}))}))},mn=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/estimates/".concat(t.id,"/send"),t).then((function(r){r.data.success&&(n("UPDATE_ESTIMATE_STATUS",{id:t.id,status:"SENT"}),n("VIEW_ESTIMATE"),n("dashboard/UPDATE_ESTIMATE_STATUS",{id:t.id,status:"SENT"},{root:!0})),e(r)})).catch((function(e){r(e)}))}))},hn=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/estimates",t).then((function(t){n("ADD_ESTIMATE",t.data.estimate),e(t)})).catch((function(e){r(e)}))}))},_n=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/estimates/delete",t).then((function(r){n("DELETE_ESTIMATE",t),n("dashboard/DELETE_ESTIMATE",t,{root:!0}),e(r)})).catch((function(e){r(e)}))}))},vn=function(e,t){var n=e.commit,r=(e.dispatch,e.state);return new Promise((function(e,t){window.axios.post("/api/v1/estimates/delete",{ids:r.selectedEstimates}).then((function(t){n("DELETE_MULTIPLE_ESTIMATES",r.selectedEstimates),e(t)})).catch((function(e){t(e)}))}))},gn=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.put("/api/v1/estimates/".concat(t.id),t).then((function(t){n("UPDATE_ESTIMATE",t.data),e(t)})).catch((function(e){r(e)}))}))},yn=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/estimates/".concat(t.id,"/status"),t).then((function(r){n("dashboard/UPDATE_ESTIMATE_STATUS",{id:t.id,status:"ACCEPTED"},{root:!0}),e(r)})).catch((function(e){r(e)}))}))},bn=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/estimates/".concat(t.id,"/status"),t).then((function(r){n("dashboard/UPDATE_ESTIMATE_STATUS",{id:t.id,status:"REJECTED"},{root:!0}),e(r)})).catch((function(e){r(e)}))}))},wn=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/estimates/".concat(t.id,"/status"),t).then((function(r){n("UPDATE_ESTIMATE_STATUS",{id:t.id,status:"SENT"}),n("dashboard/UPDATE_ESTIMATE_STATUS",{id:t.id,status:"SENT"},{root:!0}),e(r)})).catch((function(e){r(e)}))}))},xn=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)}))}))},kn=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)}))}))},Dn=function(e,t){var n=e.commit,r=(e.dispatch,e.state);n("SET_SELECTED_ESTIMATES",t),r.selectedEstimates.length===r.estimates.length?n("SET_SELECT_ALL_STATE",!0):n("SET_SELECT_ALL_STATE",!1)},Mn=function(e,t){var n=e.commit;e.dispatch,e.state;n("SET_SELECT_ALL_STATE",t)},Sn=function(e){var t=e.commit,n=(e.dispatch,e.state);n.selectedEstimates.length===n.estimates.length?(t("SET_SELECTED_ESTIMATES",[]),t("SET_SELECT_ALL_STATE",!1)):(t("SET_SELECTED_ESTIMATES",n.estimates.map((function(e){return e.id}))),t("SET_SELECT_ALL_STATE",!0))},Cn=function(e){var t=e.commit;e.dispatch,e.state;t("RESET_SELECTED_ESTIMATES")},Ln=function(e,t){var n=e.commit;e.dispatch,e.state;n("RESET_CUSTOMER"),n("SET_CUSTOMER",t)},Tn=function(e,t){var n=e.commit;e.dispatch,e.state;n("RESET_ITEM"),n("SET_ITEM",t)},En=function(e){var t=e.commit;e.dispatch,e.state;t("RESET_CUSTOMER")},On=function(e){var t=e.commit;e.dispatch,e.state;t("RESET_ITEM")},jn=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){n("SET_TEMPLATE_ID",t),e({})}))},An=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/customers/".concat(t)).then((function(t){n("RESET_SELECTED_CUSTOMER"),n("SELECT_CUSTOMER",t.data.customer),e(t)})).catch((function(e){r(e)}))}))},Pn=function(e,t){var n=e.commit;e.dispatch,e.state;n("RESET_SELECTED_CUSTOMER")},Yn=function(e,t){var n=e.commit;e.dispatch,e.state;n("RESET_SELECTED_NOTE"),n("SET_SELECTED_NOTE",t.notes)},$n=function(e,t){var n=e.commit;e.dispatch,e.state;n("RESET_SELECTED_NOTE")},In=function(e){return e.estimates},Nn=function(e){return e.selectAllField},zn=function(e){return e.estimateTemplateId},Fn=function(e){return e.selectedEstimates},Rn=function(e){return e.totalEstimates},Hn=function(e){return e.selectedCustomer},Bn=function(e){return e.selectedNote},qn=function(e){return function(t){var n=parseInt(t);return e.estimates.find((function(e){return e.id===n}))}},Un={namespaced:!0,state:{estimates:[],estimateTemplateId:1,selectAllField:!1,selectedEstimates:[],totalEstimates:0,selectedCustomer:null,selectedEstimate:null,selectedNote:null},getters:v,actions:_,mutations:sn};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,Kn=(Vn(on={},"SET_EXPENSES",(function(e,t){e.expenses=t})),Vn(on,"ADD_EXPENSE",(function(e,t){e.expenses.push(t)})),Vn(on,"UPDATE_EXPENSE",(function(e,t){var n=e.expenses.findIndex((function(e){return e.id===t.expense.id}));e.expenses[n]=t.expense})),Vn(on,"DELETE_EXPENSE",(function(e,t){var n=e.expenses.findIndex((function(e){return e.id===t}));e.expenses.splice(n,1)})),Vn(on,"SET_SELECT_ALL",(function(e,t){t?e.expenses.filter((function(t){e.selectedRow.push(t.id)})):e.selectedRow=[]})),Vn(on,"SET_TOTAL_EXPENSES",(function(e,t){e.totalExpenses=t})),Vn(on,"DELETE_EXPENSE",(function(e,t){var n=e.expenses.findIndex((function(e){return e.id===t}));e.expenses.splice(n,1)})),Vn(on,"DELETE_MULTIPLE_EXPENSES",(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=[]})),Vn(on,"SET_SELECTED_EXPENSES",(function(e,t){e.selectedExpenses=t})),Vn(on,"SET_SELECT_ALL_STATE",(function(e,t){e.selectAllField=t})),on),Gn=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/expenses",{params:t}).then((function(t){n("SET_EXPENSES",t.data.expenses.data),n("SET_TOTAL_EXPENSES",t.data.expenseTotalCount),e(t)})).catch((function(e){r(e)}))}))},Jn=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)}))}))},Zn=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)}))}))},Xn=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)}))}))},Qn=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/expenses",t).then((function(t){n("ADD_EXPENSE",t.data),e(t)})).catch((function(e){r(e)}))}))},er=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/expenses/".concat(t.id),t.editData).then((function(t){n("UPDATE_EXPENSE",t.data),e(t)})).catch((function(e){r(e)}))}))},tr=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/expenses/delete",t).then((function(r){n("DELETE_EXPENSE",t),e(r)})).catch((function(e){r(e)}))}))},nr=function(e,t){var n=e.commit,r=(e.dispatch,e.state);return new Promise((function(e,t){window.axios.post("/api/v1/expenses/delete",{ids:r.selectedExpenses}).then((function(t){n("DELETE_MULTIPLE_EXPENSES",r.selectedExpenses),e(t)})).catch((function(e){t(e)}))}))},rr=function(e,t){var n=e.commit;e.dispatch,e.state;n("SET_SELECT_ALL_STATE",t)},ar=function(e){var t=e.commit,n=(e.dispatch,e.state);n.selectedExpenses.length===n.expenses.length?(t("SET_SELECTED_EXPENSES",[]),t("SET_SELECT_ALL_STATE",!1)):(t("SET_SELECTED_EXPENSES",n.expenses.map((function(e){return e.id}))),t("SET_SELECT_ALL_STATE",!0))},ir=function(e,t){var n=e.commit,r=(e.dispatch,e.state);n("SET_SELECTED_EXPENSES",t),r.selectedExpenses.length===r.expenses.length?n("SET_SELECT_ALL_STATE",!0):n("SET_SELECT_ALL_STATE",!1)},or=function(e){return e.expenses},sr=function(e){return e.selectAllField},lr=function(e){return e.selectedExpenses},cr=function(e){return e.totalExpenses},ur={namespaced:!0,state:{expenses:[],totalExpenses:0,selectAllField:!1,selectedExpenses:[]},getters:y,actions:g,mutations:Kn};function dr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pr,fr=(dr(Wn={},"SET_INVOICES",(function(e,t){e.invoices=t})),dr(Wn,"SET_TOTAL_INVOICES",(function(e,t){e.totalInvoices=t})),dr(Wn,"ADD_INVOICE",(function(e,t){e.invoices.push(t)})),dr(Wn,"DELETE_INVOICE",(function(e,t){var n=e.invoices.findIndex((function(e){return e.id===t.id}));e.invoices.splice(n,1)})),dr(Wn,"SET_SELECTED_INVOICES",(function(e,t){e.selectedInvoices=t})),dr(Wn,"UPDATE_INVOICE",(function(e,t){var n=e.invoices.findIndex((function(e){return e.id===t.invoice.id}));e.invoices[n]=t.invoice})),dr(Wn,"UPDATE_INVOICE_STATUS",(function(e,t){var n=e.invoices.findIndex((function(e){return e.id===t.id}));e.invoices[n]&&(e.invoices[n].status=t.status)})),dr(Wn,"RESET_SELECTED_INVOICES",(function(e,t){e.selectedInvoices=[],e.selectAllField=!1})),dr(Wn,"DELETE_MULTIPLE_INVOICES",(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=[]})),dr(Wn,"SET_TEMPLATE_ID",(function(e,t){e.invoiceTemplateId=t})),dr(Wn,"SELECT_CUSTOMER",(function(e,t){e.selectedCustomer=t})),dr(Wn,"RESET_SELECTED_CUSTOMER",(function(e,t){e.selectedCustomer=null})),dr(Wn,"SET_SELECT_ALL_STATE",(function(e,t){e.selectAllField=t})),dr(Wn,"RESET_SELECTED_NOTE",(function(e,t){e.selectedNote=null})),dr(Wn,"SET_SELECTED_NOTE",(function(e,t){e.selectedNote=t})),dr(Wn,"RESET_ITEM",(function(e,t){e.selectedItem=null})),dr(Wn,"SET_ITEM",(function(e,t){e.selectedItem=t})),Wn),mr=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/invoices",{params:t}).then((function(t){n("SET_INVOICES",t.data.invoices.data),n("SET_TOTAL_INVOICES",t.data.invoiceTotalCount),e(t)})).catch((function(e){r(e)}))}))},hr=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/invoices/".concat(t)).then((function(t){n("SET_TEMPLATE_ID",t.data.invoice.invoice_template_id),e(t)})).catch((function(e){r(e)}))}))},_r=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/invoices/".concat(t.id,"/send"),t).then((function(r){r.data.success&&(n("UPDATE_INVOICE_STATUS",{id:t.id,status:"SENT"}),n("dashboard/UPDATE_INVOICE_STATUS",{id:t.id,status:"SENT"},{root:!0})),e(r)})).catch((function(e){r(e)}))}))},vr=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/invoices",t).then((function(t){n("ADD_INVOICE",t.data),e(t)})).catch((function(e){r(e)}))}))},gr=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/invoices/delete",t).then((function(r){r.data.error||(n("DELETE_INVOICE",t),n("dashboard/DELETE_INVOICE",t,{root:!0})),e(r)})).catch((function(e){r(e)}))}))},yr=function(e,t){var n=e.commit,r=(e.dispatch,e.state);return new Promise((function(e,t){window.axios.post("/api/v1/invoices/delete",{ids:r.selectedInvoices}).then((function(t){t.data.error||n("DELETE_MULTIPLE_INVOICES",r.selectedInvoices),e(t)})).catch((function(e){t(e)}))}))},br=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.put("/api/v1/invoices/".concat(t.id),t).then((function(t){t.data.invoice&&n("UPDATE_INVOICE",t.data),e(t)})).catch((function(e){r(e)}))}))},wr=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/invoices/".concat(t.id,"/status"),t).then((function(r){n("UPDATE_INVOICE_STATUS",{id:t.id,status:"SENT"}),n("dashboard/UPDATE_INVOICE_STATUS",{id:t.id,status:"SENT"},{root:!0}),e(r)})).catch((function(e){r(e)}))}))},xr=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)}))}))},kr=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)}))}))},Dr=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)}))}))},Mr=function(e,t){var n=e.commit,r=(e.dispatch,e.state);n("SET_SELECTED_INVOICES",t),r.selectedInvoices.length===r.invoices.length?n("SET_SELECT_ALL_STATE",!0):n("SET_SELECT_ALL_STATE",!1)},Sr=function(e,t){var n=e.commit;e.dispatch,e.state;n("SET_SELECT_ALL_STATE",t)},Cr=function(e){var t=e.commit,n=(e.dispatch,e.state);n.selectedInvoices.length===n.invoices.length?(t("SET_SELECTED_INVOICES",[]),t("SET_SELECT_ALL_STATE",!1)):(t("SET_SELECTED_INVOICES",n.invoices.map((function(e){return e.id}))),t("SET_SELECT_ALL_STATE",!0))},Lr=function(e){var t=e.commit;e.dispatch,e.state;t("RESET_SELECTED_INVOICES")},Tr=function(e,t){var n=e.commit;e.dispatch,e.state;n("RESET_CUSTOMER"),n("SET_CUSTOMER",t)},Er=function(e){var t=e.commit;e.dispatch,e.state;t("RESET_CUSTOMER")},Or=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){n("SET_TEMPLATE_ID",t),e({})}))},jr=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/customers/".concat(t)).then((function(t){n("RESET_SELECTED_CUSTOMER"),n("SELECT_CUSTOMER",t.data.customer),e(t)})).catch((function(e){r(e)}))}))},Ar=function(e,t){var n=e.commit;e.dispatch,e.state;n("RESET_SELECTED_CUSTOMER")},Pr=function(e,t){var n=e.commit;e.dispatch,e.state;n("RESET_ITEM"),n("SET_ITEM",t)},Yr=function(e){var t=e.commit;e.dispatch,e.state;t("RESET_ITEM")},$r=function(e,t){var n=e.commit;e.dispatch,e.state;n("RESET_SELECTED_NOTE"),n("SET_SELECTED_NOTE",t.notes)},Ir=function(e,t){var n=e.commit;e.dispatch,e.state;n("RESET_SELECTED_NOTE")},Nr=function(e){return e.invoices},zr=function(e){return e.selectAllField},Fr=function(e){return e.invoiceTemplateId},Rr=function(e){return e.selectedInvoices},Hr=function(e){return e.totalInvoices},Br=function(e){return e.selectedCustomer},qr=function(e){return e.selectedNote},Ur=function(e){return e.selectedItem},Vr=function(e){return function(t){var n=parseInt(t);return e.invoices.find((function(e){return e.id===n}))}},Wr={namespaced:!0,state:{invoices:[],invoiceTemplateId:1,selectedInvoices:[],selectAllField:!1,totalInvoices:0,selectedCustomer:null,selectedNote:null,selectedItem:null},getters:w,actions:b,mutations:fr};function Kr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gr(e){return function(e){if(Array.isArray(e))return Jr(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 Jr(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 Jr(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 Jr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Zr,Xr=(Kr(pr={},"SET_PAYMENTS",(function(e,t){e.payments=t})),Kr(pr,"SET_TOTAL_PAYMENTS",(function(e,t){e.totalPayments=t})),Kr(pr,"ADD_PAYMENT",(function(e,t){e.payments.push(t)})),Kr(pr,"DELETE_PAYMENT",(function(e,t){var n=e.payments.findIndex((function(e){return e.id===t}));e.payments.splice(n,1)})),Kr(pr,"DELETE_MULTIPLE_PAYMENTS",(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=[]})),Kr(pr,"SET_SELECTED_PAYMENTS",(function(e,t){e.selectedPayments=t})),Kr(pr,"SET_SELECT_ALL_STATE",(function(e,t){e.selectAllField=t})),Kr(pr,"SET_PAYMENT_MODES",(function(e,t){e.paymentModes=t})),Kr(pr,"ADD_PAYMENT_MODE",(function(e,t){e.paymentModes=[t.paymentMethod].concat(Gr(e.paymentModes))})),Kr(pr,"DELETE_PAYMENT_MODE",(function(e,t){var n=e.paymentModes.findIndex((function(e){return e.id===t}));e.paymentModes.splice(n,1)})),Kr(pr,"UPDATE_PAYMENT_MODE",(function(e,t){var n=e.paymentModes.findIndex((function(e){return e.id===t.paymentMethod.id}));e.paymentModes[n]=t.paymentMethod})),Kr(pr,"RESET_SELECTED_NOTE",(function(e,t){e.selectedNote=null})),Kr(pr,"SET_SELECTED_NOTE",(function(e,t){e.selectedNote=t})),pr),Qr=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/payments",{params:t}).then((function(t){n("SET_PAYMENTS",t.data.payments.data),n("SET_TOTAL_PAYMENTS",t.data.paymentTotalCount),e(t)})).catch((function(e){r(e)}))}))},ea=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)}))}))},ta=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)}))}))},na=function(e,t){var n=e.commit;e.dispatch,e.state;n("SET_SELECT_ALL_STATE",t)},ra=function(e,t){var n=e.commit,r=(e.dispatch,e.state);n("SET_SELECTED_PAYMENTS",t),r.selectedPayments.length===r.payments.length?n("SET_SELECT_ALL_STATE",!0):n("SET_SELECT_ALL_STATE",!1)},aa=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)}))}))},ia=function(e,t){var n=e.commit,r=(e.dispatch,e.state);return new Promise((function(e,t){window.axios.post("/api/v1/payments/delete",{ids:r.selectedPayments}).then((function(t){n("DELETE_MULTIPLE_PAYMENTS",r.selectedPayments),e(t)})).catch((function(e){t(e)}))}))},oa=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/payments/delete",t).then((function(r){n("DELETE_PAYMENT",t),e(r)})).catch((function(e){r(e)}))}))},sa=function(e){var t=e.commit,n=(e.dispatch,e.state);n.selectedPayments.length===n.payments.length?(t("SET_SELECTED_PAYMENTS",[]),t("SET_SELECT_ALL_STATE",!1)):(t("SET_SELECTED_PAYMENTS",n.payments.map((function(e){return e.id}))),t("SET_SELECT_ALL_STATE",!0))},la=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/payment-methods",t).then((function(t){n("ADD_PAYMENT_MODE",t.data),e(t)})).catch((function(e){r(e)}))}))},ca=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.put("/api/v1/payment-methods/".concat(t.id),t).then((function(t){n("UPDATE_PAYMENT_MODE",t.data),e(t)})).catch((function(e){r(e)}))}))},ua=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/payment-methods",{params:t}).then((function(t){n("SET_PAYMENT_MODES",t.data.paymentMethods.data),e(t)})).catch((function(e){r(e)}))}))},da=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)}))}))},pa=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.delete("/api/v1/payment-methods/".concat(t)).then((function(r){r.data.error||n("DELETE_PAYMENT_MODE",t),e(r)})).catch((function(e){r(e)}))}))},fa=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)}))}))},ma=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)}))}))},ha=function(e,t){var n=e.commit;e.dispatch,e.state;n("RESET_SELECTED_NOTE"),n("SET_SELECTED_NOTE",t.notes)},_a=function(e,t){var n=e.commit;e.dispatch,e.state;n("RESET_SELECTED_NOTE")},va=function(e){return e.payments},ga=function(e){return e.selectedPayments},ya=function(e){return e.selectAllField},ba=function(e){return e.totalPayments},wa=function(e){return e.paymentModes},xa=function(e){return e.selectedNote},ka={namespaced:!0,state:{payments:[],totalPayments:0,selectAllField:!1,selectedPayments:[],paymentModes:[],selectedNote:null},getters:k,actions:x,mutations:Xr};function Da(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ma,Sa=(Da(Zr={},"BOOTSTRAP_ITEMS",(function(e,t){e.items=t})),Da(Zr,"SET_TOTAL_ITEMS",(function(e,t){e.totalItems=t})),Da(Zr,"ADD_ITEM",(function(e,t){e.items.push(t.item)})),Da(Zr,"UPDATE_ITEM",(function(e,t){var n=e.items.findIndex((function(e){return e.id===t.item.id}));e.items[n]=t.item})),Da(Zr,"DELETE_ITEM",(function(e,t){var n=e.items.findIndex((function(e){return e.id===t}));e.items.splice(n,1)})),Da(Zr,"DELETE_MULTIPLE_ITEMS",(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=[]})),Da(Zr,"SET_SELECTED_ITEMS",(function(e,t){e.selectedItems=t})),Da(Zr,"SET_SELECT_ALL_STATE",(function(e,t){e.selectAllField=t})),Da(Zr,"ADD_ITEM_UNIT",(function(e,t){e.itemUnits.push(t.unit)})),Da(Zr,"SET_ITEM_UNITS",(function(e,t){e.itemUnits=t})),Da(Zr,"DELETE_ITEM_UNIT",(function(e,t){var n=e.itemUnits.findIndex((function(e){return e.id===t}));e.itemUnits.splice(n,1)})),Da(Zr,"UPDATE_ITEM_UNIT",(function(e,t){var n=e.itemUnits.findIndex((function(e){return e.id==e.id}));e.itemUnits[n]=t})),Zr),Ca=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/items",{params:t}).then((function(t){n("BOOTSTRAP_ITEMS",t.data.items.data),n("SET_TOTAL_ITEMS",t.data.itemTotalCount),e(t)})).catch((function(e){r(e)}))}))},La=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)}))}))},Ta=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/items",t).then((function(t){n("ADD_ITEM",t.data),e(t)})).catch((function(e){r(e)}))}))},Ea=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.put("/api/v1/items/".concat(t.id),t).then((function(t){n("UPDATE_ITEM",t.data),e(t)})).catch((function(e){r(e)}))}))},Oa=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/items/delete",t).then((function(r){n("DELETE_ITEM",t),e(r)})).catch((function(e){r(e)}))}))},ja=function(e,t){var n=e.commit,r=(e.dispatch,e.state);return new Promise((function(e,t){window.axios.post("/api/v1/items/delete",{ids:r.selectedItems}).then((function(t){n("DELETE_MULTIPLE_ITEMS",r.selectedItems),e(t)})).catch((function(e){t(e)}))}))},Aa=function(e,t){var n=e.commit;e.dispatch,e.state;n("SET_SELECT_ALL_STATE",t)},Pa=function(e){var t=e.commit,n=(e.dispatch,e.state);n.selectedItems.length===n.items.length?(t("SET_SELECTED_ITEMS",[]),t("SET_SELECT_ALL_STATE",!1)):(t("SET_SELECTED_ITEMS",n.items.map((function(e){return e.id}))),t("SET_SELECT_ALL_STATE",!0))},Ya=function(e,t){var n=e.commit,r=(e.dispatch,e.state);n("SET_SELECTED_ITEMS",t),r.selectedItems.length===r.items.length?n("SET_SELECT_ALL_STATE",!0):n("SET_SELECT_ALL_STATE",!1)},$a=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/units",t).then((function(t){n("ADD_ITEM_UNIT",t.data),e(t)})).catch((function(e){r(e)}))}))},Ia=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.put("/api/v1/units/".concat(t.id),t).then((function(t){n("UPDATE_ITEM_UNIT",t.data.unit),e(t)})).catch((function(e){r(e)}))}))},Na=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/units",{params:t}).then((function(t){n("SET_ITEM_UNITS",t.data.units.data),e(t)})).catch((function(e){r(e)}))}))},za=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)}))}))},Fa=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.delete("/api/v1/units/".concat(t)).then((function(r){r.data.error||n("DELETE_ITEM_UNIT",t),e(r)})).catch((function(e){r(e)}))}))},Ra=function(e){return e.items},Ha=function(e){return e.selectAllField},Ba=function(e){return e.selectedItems},qa=function(e){return e.totalItems},Ua=function(e){return e.itemUnits},Va={namespaced:!0,state:{items:[],totalItems:0,selectAllField:!1,selectedItems:[],itemUnits:[]},getters:M,actions:D,mutations:Sa};function Wa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ka,Ga=(Wa(Ma={},"SHOW_MODAL",(function(e,t){e.active=t})),Wa(Ma,"HIDE_MODAL",(function(e,t){e.active=t})),Wa(Ma,"SET_TITLE",(function(e,t){e.title=t})),Wa(Ma,"SET_COMPONENT_NAME",(function(e,t){e.componentName=t})),Wa(Ma,"SET_ID",(function(e,t){e.id=t})),Wa(Ma,"SET_DATA",(function(e,t){e.data=t})),Wa(Ma,"SET_SIZE",(function(e,t){e.size=t})),Wa(Ma,"SET_REFRESH_DATA",(function(e,t){e.refreshData=t})),Wa(Ma,"RESET_DATA",(function(e){e.content="",e.title="",e.componentName="",e.id="",e.data=null,e.refreshData=null})),Wa(Ma,"SET_VARIANT",(function(e,t){e.variant=t})),Ma),Ja=function(e,t){var n=e.commit;e.dispatch,e.state;n("SET_COMPONENT_NAME",t.componentName),n("SHOW_MODAL",!0),t.id&&n("SET_ID",t.id),n("SET_TITLE",t.title),t.data&&n("SET_DATA",t.data),t.refreshData&&n("SET_REFRESH_DATA",t.refreshData),t.variant&&n("SET_VARIANT",t.variant),t.size&&n("SET_SIZE",t.size)},Za=function(e){var t=e.commit;e.dispatch,e.state;t("RESET_DATA"),t("HIDE_MODAL",!1)},Xa=function(e){var t=e.commit;e.dispatch,e.state;t("RESET_DATA")},Qa=function(e){return e.active},ei=function(e){return e.title},ti=function(e){return e.componentName},ni=function(e){return e.id},ri=function(e){return e.data},ai=function(e){return e.size},ii=function(e){return e.refreshData},oi=function(e){return e.variant},si={namespaced:!0,state:{active:!1,content:"",title:"",componentName:"",id:"",size:"md",data:null,refreshData:null,variant:""},getters:C,actions:S,mutations:Ga};function li(e){return function(e){if(Array.isArray(e))return ci(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 ci(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 ci(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 ci(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ui(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function di(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ui(Object(n),!0).forEach((function(t){pi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ui(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fi,mi=(pi(Ka={},"SET_CUSTOM_FIELDS",(function(e,t){e.customFields=t})),pi(Ka,"ADD_CUSTOM_FIELDS",(function(e,t){t=di(di({},t),{},{options:t.options.map((function(e){return{name:e||""}}))}),e.customFields=[].concat(li(e.customFields),[t])})),pi(Ka,"UPDATE_CUSTOM_FIELDS",(function(e,t){t=di(di({},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)})),pi(Ka,"DELETE_CUSTOM_FIELDS",(function(e,t){var n=e.customFields.findIndex((function(e){return e.id===t}));e.customFields.splice(n,1)})),pi(Ka,"SET_REQUEST_STATE",(function(e,t){e.isRequestOngoing=t})),Ka),hi=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/custom-fields",{params:t}).then((function(t){n("SET_CUSTOM_FIELDS",t.data.customFields.data),e(t)})).catch((function(e){r(e)}))}))},_i=function(e,t){var n=e.commit,r=(e.dispatch,e.state);return new Promise((function(e,a){if(r.isRequestOngoing)return e({requestOnGoing:!0}),!0;n("SET_REQUEST_STATE",!0),window.axios.get("/api/v1/custom-fields",{params:t}).then((function(t){n("SET_CUSTOM_FIELDS",t.data.customFields.data),n("SET_REQUEST_STATE",!1),e(t)})).catch((function(e){n("SET_REQUEST_STATE",!1),a(e)}))}))},vi=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)}))}))},gi=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/custom-fields",t).then((function(t){n("ADD_CUSTOM_FIELDS",t.data.customField),e(t)})).catch((function(e){r(e)}))}))},yi=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.put("/api/v1/custom-fields/".concat(t.id),t).then((function(r){n("UPDATE_CUSTOM_FIELDS",t),e(r)})).catch((function(e){r(e)}))}))},bi=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.delete("/api/v1/custom-fields/".concat(t)).then((function(r){n("DELETE_CUSTOM_FIELDS",t),e(r)})).catch((function(e){r(e)}))}))},wi=function(e){return e.customFields},xi={namespaced:!0,state:{customFields:[],isRequestOngoing:!1},getters:T,actions:L,mutations:mi};function ki(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Di(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mi,Si=(Di(fi={},"SET_TAX_TYPES",(function(e,t){e.taxTypes=t})),Di(fi,"ADD_TAX_TYPE",(function(e,t){e.taxTypes.push(t.taxType)})),Di(fi,"UPDATE_TAX_TYPE",(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?ki(Object(n),!0).forEach((function(t){Di(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ki(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t.taxType))})),Di(fi,"DELETE_TAX_TYPE",(function(e,t){var n=e.taxTypes.findIndex((function(e){return e.id===t}));e.taxTypes.splice(n,1)})),fi),Ci=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/tax-types",{params:t}).then((function(t){n("SET_TAX_TYPES",t.data.taxTypes.data),e(t)})).catch((function(e){r(e)}))}))},Li=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("SET_TAX_TYPES",n.data.taxTypes),e(n)})).catch((function(e){n(e)}))}))},Ti=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/tax-types",t).then((function(t){n("ADD_TAX_TYPE",t.data),e(t)})).catch((function(e){r(e)}))}))},Ei=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)}))}))},Oi=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.put("/api/v1/tax-types/".concat(t.id),t).then((function(t){n("UPDATE_TAX_TYPE",t.data),e(t)})).catch((function(e){r(e)}))}))},ji=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.delete("/api/v1/tax-types/".concat(t)).then((function(r){r.data.success&&n("DELETE_TAX_TYPE",t),e(r)})).catch((function(e){r(e)}))}))},Ai=function(e){return e.taxTypes},Pi=function(e){return function(t){return e.taxTypes.find((function(e){return e.id===t}))}},Yi={namespaced:!0,state:{taxTypes:[]},getters:O,actions:E,mutations:Si};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}var Ii,Ni=($i(Mi={},"BOOTSTRAP_USERS",(function(e,t){e.users=t})),$i(Mi,"SET_TOTAL_USERS",(function(e,t){e.totalUsers=t})),$i(Mi,"ADD_USER",(function(e,t){e.users.push(t.user)})),$i(Mi,"UPDATE_USER",(function(e,t){var n=e.users.findIndex((function(e){return e.id===t.user.id}));e.users[n]=t.user})),$i(Mi,"DELETE_USER",(function(e,t){var n=e.users.findIndex((function(e){return e.id===t[0]}));e.users.splice(n,1)})),$i(Mi,"DELETE_MULTIPLE_USERS",(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=[]})),$i(Mi,"SET_SELECTED_USERS",(function(e,t){e.selectedUsers=t})),$i(Mi,"SET_SELECT_ALL_STATE",(function(e,t){e.selectAllField=t})),Mi),zi=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/users",{params:t}).then((function(t){n("BOOTSTRAP_USERS",t.data.users.data),n("SET_TOTAL_USERS",t.data.users.total),n("search/SET_USER_LISTS",t.data.users.data,{root:!0}),e(t)})).catch((function(e){r(e)}))}))},Fi=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)}))}))},Ri=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/users",t).then((function(t){n("ADD_USER",t.data),e(t)})).catch((function(e){r(e)}))}))},Hi=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.put("/api/v1/users/".concat(t.id),t).then((function(t){t.data.success&&n("UPDATE_USER",t.data),e(t)})).catch((function(e){r(e)}))}))},Bi=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/users/delete",{users:t}).then((function(r){n("DELETE_USER",t),e(r)})).catch((function(e){r(e)}))}))},qi=function(e,t){var n=e.commit,r=(e.dispatch,e.state);return new Promise((function(e,t){window.axios.post("/api/v1/users/delete",{users:r.selectedUsers}).then((function(t){n("DELETE_MULTIPLE_USERS",r.selectedUsers),e(t)})).catch((function(e){t(e)}))}))},Ui=function(e,t){var n=e.commit;e.dispatch,e.state;n("SET_SELECT_ALL_STATE",t)},Vi=function(e){var t=e.commit,n=(e.dispatch,e.state);n.selectedUsers.length===n.users.length?(t("SET_SELECTED_USERS",[]),t("SET_SELECT_ALL_STATE",!1)):(t("SET_SELECTED_USERS",n.users.map((function(e){return e.id}))),t("SET_SELECT_ALL_STATE",!0))},Wi=function(e,t){var n=e.commit,r=(e.dispatch,e.state);n("SET_SELECTED_USERS",t),r.selectedUsers.length===r.users.length?n("SET_SELECT_ALL_STATE",!0):n("SET_SELECT_ALL_STATE",!1)},Ki=function(e){return e.users},Gi=function(e){return e.selectAllField},Ji=function(e){return e.selectedUsers},Zi=function(e){return e.totalUsers},Xi={namespaced:!0,state:{users:[],totalUsers:0,selectAllField:!1,selectedUsers:[]},getters:A,actions:j,mutations:Ni};function Qi(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,to=(Qi(Ii={},"SET_BACKUPS",(function(e,t){e.backups=t.backups,e.backupDisks=t.disks})),Qi(Ii,"SET_BACKUP_DISKS",(function(e,t){e.backupDisksInfo=t.disks})),Qi(Ii,"ADD_BACKUPS",(function(e,t){e.backups.push(t.backup)})),Qi(Ii,"DELETE_BACKUPS",(function(e,t){var n=e.backups.findIndex((function(e){return e.id===t}));e.backups.splice(n,1)})),Ii),no=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/backups",{params:t}).then((function(t){n("SET_BACKUPS",t.data),e(t)})).catch((function(e){r(e)}))}))},ro=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.post("/api/v1/backups",t).then((function(t){e(t)})).catch((function(e){n(e)}))}))},ao=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.delete("/api/v1/backups/".concat(t.disk),{params:t}).then((function(t){e(t)})).catch((function(e){n(e)}))}))},io=function(e){return e.backups},oo=function(e){return e.backupDisks},so=function(e){return e.backupDisksInfo},lo={namespaced:!0,state:{backups:[],backupDisks:[],backupDisksInfo:[]},getters:Y,actions:P,mutations:to};function co(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uo=(co(eo={},"SET_DISKS",(function(e,t){e.disks=t})),co(eo,"SET_DISK_DRIVER",(function(e,t){e.diskDrivers=t.drivers})),co(eo,"ADD_DISKS",(function(e,t){e.disks.push(t.disk)})),co(eo,"DELETE_DISK",(function(e,t){var n=e.disks.findIndex((function(e){return e.id===t}));e.disks.splice(n,1)})),eo),po=function(e,t){var n=e.commit;return new Promise((function(e,r){window.axios.get("/api/v1/disks",{params:t}).then((function(t){n("SET_DISKS",t.data.disks.data),e(t)})).catch((function(e){r(e)}))}))},fo=function(e){var t=e.commit;return new Promise((function(e,n){window.axios.get("/api/v1/disk/drivers").then((function(n){t("SET_DISK_DRIVER",n.data),e(n)})).catch((function(e){n(e)}))}))},mo=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)}))}))},ho=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)}))}))},_o=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)}))}))},vo=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.delete("/api/v1/disks/".concat(t)).then((function(r){r.data.success&&n("DELETE_DISK",t),e(r)})).catch((function(e){r(e)}))}))},go=function(e){return e.disks},yo=function(e){return e.diskDrivers},bo={namespaced:!0,state:{disks:[],diskDrivers:[]},getters:I,actions:$,mutations:uo};var wo,xo,ko,Do=(ko=function(e,t){e.estimateTemplates=t},(xo="SET_ESTIMATE_TEMPLATES")in(wo={})?Object.defineProperty(wo,xo,{value:ko,enumerable:!0,configurable:!0,writable:!0}):wo[xo]=ko,wo),Mo=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/estimates/templates",{params:t}).then((function(t){n("SET_ESTIMATE_TEMPLATES",t.data.templates),e(t)})).catch((function(e){r(e)}))}))},So=function(e){return e.estimateTemplates},Co={namespaced:!0,state:{estimateTemplates:[]},getters:z,actions:N,mutations:Do};var Lo,To=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},"SET_INVOICE_TEMPLATES",(function(e,t){e.invoiceTemplates=t})),Eo=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/invoices/templates",{params:t}).then((function(t){n("SET_INVOICE_TEMPLATES",t.data.invoiceTemplates),e(t)})).catch((function(e){r(e)}))}))},Oo=function(e){return e.invoiceTemplates},jo={namespaced:!0,state:{invoiceTemplates:[]},getters:R,actions:F,mutations:To};function Ao(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Po,Yo=(Ao(Lo={},"SET_CUSTOMER_LISTS",(function(e,t){e.customerList=t})),Ao(Lo,"SET_USER_LISTS",(function(e,t){e.userList=t})),Lo),$o=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/search",{params:t}).then((function(t){n("SET_CUSTOMER_LISTS",t.data.customers.data),n("SET_USER_LISTS",t.data.users.data),e(t)})).catch((function(e){r(e)}))}))},Io=function(e){return e.customerList?e.customerList:[]},No=function(e){return e.userList?e.userList:[]},zo={namespaced:!0,state:{userList:[],customerList:[]},getters:B,actions:H,mutations:Yo};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 Ro=(Fo(Po={},"BOOTSTRAP_NOTES",(function(e,t){e.notes=t})),Fo(Po,"ADD_NOTE",(function(e,t){e.notes.push(t.note)})),Fo(Po,"UPDATE_NOTE",(function(e,t){var n=e.notes.findIndex((function(e){return e.id===t.note.id}));e.notes[n]=t.note})),Fo(Po,"DELETE_NOTE",(function(e,t){var n=e.notes.findIndex((function(e){return e.id===t}));e.notes.splice(n,1)})),Po),Ho=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/notes",{params:t}).then((function(t){n("BOOTSTRAP_NOTES",t.data.notes.data),e(t)})).catch((function(e){r(e)}))}))},Bo=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)}))}))},qo=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/notes",t).then((function(t){n("ADD_NOTE",t.data),e(t)})).catch((function(e){r(e)}))}))},Uo=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.put("/api/v1/notes/".concat(t.id),t).then((function(t){n("UPDATE_NOTE",t.data),e(t)})).catch((function(e){r(e)}))}))},Vo=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.delete("/api/v1/notes/".concat(t)).then((function(r){n("DELETE_NOTE",t),e(r)})).catch((function(e){r(e)}))}))},Wo=function(e){return e.notes},Ko={namespaced:!0,state:{notes:[]},getters:U,actions:q,mutations:Ro};K.a.use(G.a);t.a=new G.a.Store({strict:!0,state:{languages:[],timeZones:[],dateFormats:[],fiscalYears:[],currencies:[],countries:[],isAppLoaded:!1,isSidebarOpen:!1},getters:r,mutations:oe,actions:se,modules:{auth:_e,user:Se,category:Ne,company:Tt,customer:it,dashboard:tn,estimate:Un,item:Va,invoice:Wr,expense:ur,modal:si,customFields:xi,payment:ka,taxType:Yi,users:Xi,backup:lo,disks:bo,estimateTemplate:Co,invoiceTemplate:jo,search:zo,notes:Ko}})},"p/rL":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("wd/R"))},pFRH:function(e,t,n){var r=n("cvCv"),a=n("O0oS"),i=n("zZ0H"),o=a?function(e,t){return a(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=o},pSRY:function(e,t,n){var r=n("QkVE");e.exports=function(e){return r(this,e).has(e)}},phht:function(e,t,n){"use strict";n("Wq+d")},qDvH:function(e,t,n){"use strict";var r=n("XuX8"),a=n.n(r),i=n("jE9Z"),o=n("L2JU"),s=n("Opvw"),l=n("3caz");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p={components:{PlusIcon:s.B,DocumentTextIcon:s.n,DocumentIcon:s.m,UserIcon:s.K,CogIcon:s.i,LogoutIcon:l.r},computed:u(u(u({},Object(o.c)("user",["currentUser"])),Object(o.c)(["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:u(u(u(u({},Object(o.b)("user",["fetchCurrentUser"])),Object(o.b)("auth",["logout"])),Object(o.b)("modal",["openModal"])),Object(o.b)(["toggleSidebar"]))},f=(n("S/cL"),n("KHd+")),m=Object(f.a)(p,(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.$createElement,t=this._self._c||e;return t("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"}},[t("img",{staticClass:"hidden h-6 md:block",attrs:{id:"logo-white",src:"/assets/img/logo-white.png",alt:"Crater Logo"}}),this._v(" "),t("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,h=Object(f.a)({},(function(){var e=this.$createElement,t=this._self._c||e;return t("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"},[this._v("\n "+this._s(this.$t("general.powered_by"))+"\n\n "),t("a",{staticClass:"pl-1 font-normal text-gray-900",attrs:{href:"http://bytefury.com/",target:"_blank"}},[this._v("\n "+this._s(this.$t("general.bytefury"))+"\n ")])])}),[],!1,null,null,null).exports;function _(e){return function(e){if(Array.isArray(e))return v(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 v(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 v(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 v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(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){b(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 b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w={components:{HomeIcon:l.q,UserIcon:l.y,StarIcon:l.x,DocumentIcon:l.k,DocumentTextIcon:l.l,CreditCardIcon:l.i,CalculatorIcon:l.b,ChartBarIcon:l.c,CogIcon:l.h,UsersIcon:l.z},computed:y(y(y({},Object(o.c)(["isSidebarOpen"])),Object(o.c)("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(_(e[2]))),e}}),methods:y(y({},Object(o.b)(["toggleSidebar"])),{},{hasActiveUrl:function(e){return this.isActive=!0,this.$route.path.indexOf(e)>-1},hasStaticUrl:function(e){return this.$route.path.indexOf(e)}})};function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(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 M={components:{SiteHeader:m,SiteSidebar:Object(f.a)(w,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("sw-transition",{attrs:{type:"fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isSidebarOpen,expression:"isSidebarOpen"}],staticClass:"fixed top-0 left-0 z-20 w-full h-full",staticStyle:{background:"rgba(48, 75, 88, 0.5)"},on:{click:function(t){return t.preventDefault(),e.toggleSidebar(t)}}})]),e._v(" "),n("div",{staticClass:"hidden w-56 h-screen pb-32 overflow-y-auto bg-white border-r border-gray-200 border-solid xl:w-64 sw-scroll md:block"},e._l(e.menuItems,(function(t,r){return n("sw-list",{key:r,attrs:{variant:"sidebar"}},e._l(t,(function(t,r){return n("sw-list-item",{key:r,attrs:{title:e.$t(t.title),active:e.hasActiveUrl(t.route),to:t.route,"tag-name":"router-link"}},[n(t.icon,{tag:"component",staticClass:"h-5",attrs:{slot:"icon"},slot:"icon"})],1)})),1)})),1),e._v(" "),n("transition",{attrs:{"enter-class":"-translate-x-full","enter-active-class":"transition duration-300 ease-in-out transform","enter-to-class":"translate-x-0","leave-active-class":"transition duration-300 ease-in-out transform","leave-class":"translate-x-0","leave-to-class":"-translate-x-full"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isSidebarOpen,expression:"isSidebarOpen"}],staticClass:"fixed top-0 z-30 w-64 h-screen pt-16 pb-32 overflow-y-auto bg-white border-r border-gray-200 border-solid sw-scroll md:hidden"},e._l(e.menuItems,(function(t,r){return n("sw-list",{key:r,attrs:{variant:"sidebar"}},e._l(t,(function(t,r){return n("sw-list-item",{key:r,attrs:{title:e.$t(t.title),active:e.hasActiveUrl(t.route),to:t.route,"tag-name":"router-link"},nativeOn:{click:function(t){return e.toggleSidebar(t)}}},[n(t.icon,{tag:"component",staticClass:"h-5",attrs:{slot:"icon"},slot:"icon"})],1)})),1)})),1)])],1)}),[],!1,null,null,null).exports,SiteFooter:h,BaseModal:n("xm8R").a,RefreshIcon:s.D},computed:k(k(k({},Object(o.c)(["isAppLoaded"])),Object(o.c)("company",{selectedCompany:"getSelectedCompany"})),{},{isShow:function(){return!0}}),created:function(){var e=this;this.bootstrap().then((function(){e.setInitialCompany()}))},methods:k(k(k({},Object(o.b)(["bootstrap"])),Object(o.b)("company",["setSelectedCompany"])),{},{setInitialCompany:function(){this.setSelectedCompany(this.selectedCompany)}})},S=Object(f.a)(M,(function(){var e=this.$createElement,t=this._self._c||e;return this.isAppLoaded?t("div",{staticClass:"h-full"},[t("base-modal"),this._v(" "),t("site-header"),this._v(" "),t("div",{staticClass:"flex h-screen pt-16 pb-10 overflow-hidden"},[t("site-sidebar"),this._v(" "),t("router-view")],1),this._v(" "),t("site-footer")],1):t("div",{staticClass:"h-full"},[t("refresh-icon",{staticClass:"h-6 animate-spin"})],1)}),[],!1,null,null,null).exports,C=(n("DFBw"),Object(f.a)({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"grid h-full grid-cols-12 overflow-y-hidden bg-gray-100"},[n("div",{staticClass:"flex items-center justify-center w-full max-w-sm col-span-12 p-4 mx-auto text-gray-900 md:p-8 md:col-span-6 lg:col-span-4 flex-2 md:pb-48 md:pt-40"},[n("div",{staticClass:"w-full"},[e._m(0),e._v(" "),n("router-view"),e._v(" "),n("div",{staticClass:"pt-24 mt-0 text-sm not-italic font-medium leading-relaxed text-left text-gray-500 md:pt-40"},[n("p",{staticClass:"mb-3"},[e._v(e._s(e.$t("layout_login.copyright_crater")))])])],1)]),e._v(" "),n("div",{staticClass:"relative flex-col items-center justify-center hidden w-full h-full pl-10 bg-no-repeat bg-cover md:col-span-6 lg:col-span-8 md:flex content-box"},[n("div",{staticClass:"pl-20 xl:pl-0"},[n("h1",{staticClass:"hidden mb-3 text-3xl font-bold leading-normal text-white xl:text-5xl xl:leading-tight md:none lg:block"},[e._v("\n "+e._s(e.$t("layout_login.super_simple_invoicing"))+" "),n("br"),e._v("\n "+e._s(e.$t("layout_login.for_freelancer"))+" "),n("br"),e._v("\n "+e._s(e.$t("layout_login.small_businesses"))+" "),n("br")]),e._v(" "),n("p",{staticClass:"hidden text-sm not-italic font-normal leading-normal text-gray-100 xl:text-base xl:leading-6 md:none lg:block"},[e._v("\n "+e._s(e.$t("layout_login.crater_help"))),n("br"),e._v("\n "+e._s(e.$t("layout_login.invoices_and_estimates"))),n("br")])]),e._v(" "),n("div",{staticClass:"absolute z-50 w-full bg-no-repeat content-bottom"})])])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("a",{attrs:{href:"/admin"}},[t("img",{staticClass:"block w-48 h-auto max-w-full mb-32 text-primary-400",attrs:{src:"/assets/img/crater-logo.png",alt:"Crater Logo"}})])}],!1,null,"f30130f4",null).exports),L={watch:{$route:"onRouteChange"}},T=Object(f.a)(L,(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,E=n("o0o1"),O=n.n(E),j=Object(f.a)({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{width:"39",height:"39",viewBox:"0 0 39 39",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("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"}}),this._v(" "),t("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,A=Object(f.a)({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{width:"39",height:"39",viewBox:"0 0 39 39",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("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"}}),this._v(" "),t("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,P=Object(f.a)({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{width:"40",height:"39",viewBox:"0 0 40 39",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("circle",{attrs:{cx:"20.0078",cy:"19.7782",r:"18.7188",fill:"#F2F2F2",stroke:"#F2F2F2","stroke-width":"1.00639"}}),this._v(" "),t("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"}}),this._v(" "),t("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"}}),this._v(" "),t("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"}}),this._v(" "),t("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 Y(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){N(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(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("ta7f"),F=z.required,R=z.email,H=z.minLength,B={components:{IconFacebook:j,IconTwitter:A,IconGoogle:P,EyeIcon:l.o,EyeOffIcon:l.p},data:function(){return{loginData:{email:"",password:"",remember:""},submitted:!1,isLoading:!1,isShowPassword:!1}},validations:{loginData:{email:{required:F,email:R},password:{required:F,minLength:H(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:I(I({},Object(o.b)("auth",["login"])),{},{validateBeforeSubmit:function(){var e,t=this;return(e=O.a.mark((function e(){return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(axios.defaults.withCredentials=!0,t.$v.loginData.$touch(),!t.$v.$invalid){e.next=4;break}return e.abrupt("return",!0);case 4:return t.isLoading=!0,e.prev=5,e.next=8,t.login(t.loginData);case 8:t.$router.push("/admin/dashboard"),t.isLoading=!1,e.next=15;break;case 12:e.prev=12,e.t0=e.catch(5),t.isLoading=!1;case 15:case"end":return e.stop()}}),e,null,[[5,12]])})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Y(i,r,a,o,s,"next",e)}function s(e){Y(i,r,a,o,s,"throw",e)}o(void 0)}))})()}})},q=Object(f.a)(B,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{attrs:{id:"loginForm"},on:{submit:function(t){return t.preventDefault(),e.validateBeforeSubmit(t)}}},[n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("login.email"),error:e.emailError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.loginData.email.$error,placeholder:e.$t(e.login.login_placeholder),focus:"",type:"email",name:"email"},on:{input:function(t){return e.$v.loginData.email.$touch()}},model:{value:e.loginData.email,callback:function(t){e.$set(e.loginData,"email",t)},expression:"loginData.email"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("login.password"),error:e.passwordError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.loginData.password.$error,type:e.getInputType,name:"password"},on:{input:function(t){return e.$v.loginData.password.$touch()}},scopedSlots:e._u([{key:"rightIcon",fn:function(){return[e.isShowPassword?n("eye-off-icon",{staticClass:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",on:{click:function(t){e.isShowPassword=!e.isShowPassword}}}):n("eye-icon",{staticClass:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",on:{click:function(t){e.isShowPassword=!e.isShowPassword}}})]},proxy:!0}]),model:{value:e.loginData.password,callback:function(t){e.$set(e.loginData,"password",t)},expression:"loginData.password"}})],1),e._v(" "),n("div",{staticClass:"mt-5 mb-8"},[n("div",{staticClass:"mb-4"},[n("router-link",{staticClass:"text-sm text-primary-400 hover:text-gray-700",attrs:{to:"forgot-password"}},[e._v("\n "+e._s(e.$t("login.forgot_password"))+"\n ")])],1)]),e._v(" "),n("sw-button",{attrs:{loading:e.isLoading,disabled:e.isLoading,type:"submit",variant:"primary"}},[e._v("\n "+e._s(e.$t("login.login"))+"\n ")])],1)}),[],!1,null,null,null).exports;n("S+eF");function U(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var V=n("ta7f"),W=V.required,K={data:function(){return{formData:{email:""},isSent:!1,isLoading:!1}},validations:{formData:{email:{email:V.email,required:W}}},methods:{validateBeforeSubmit:function(e){var t,n=this;return(t=O.a.mark((function e(){return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.$v.formData.$touch(),n.$v.formData.$invalid){e.next=15;break}return e.prev=2,n.isLoading=!0,e.next=6,axios.post("/api/v1/auth/password/email",n.formData);case 6:e.sent.data&&toastr.success("Mail sent successfuly!","Success"),n.isSent=!0,n.isLoading=!1,e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),n.isLoading=!1;case 15:case"end":return e.stop()}}),e,null,[[2,12]])})),function(){var e=this,n=arguments;return new Promise((function(r,a){var i=t.apply(e,n);function o(e){U(i,r,a,o,s,"next",e)}function s(e){U(i,r,a,o,s,"throw",e)}o(void 0)}))})()}}},G=Object(f.a)(K,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{attrs:{id:"loginForm"},on:{submit:function(t){return t.preventDefault(),e.validateBeforeSubmit(t)}}},[n("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 J(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var Z=n("ta7f"),X=Z.required,Q=Z.email,ee=Z.sameAs,te={data:function(){return{formData:{email:"",password:"",password_confirmation:""},isLoading:!1}},validations:{formData:{email:{required:X,email:Q},password:{required:X,minLength:(0,Z.minLength)(8)},password_confirmation:{sameAsPassword:ee("password")}}},methods:{validateBeforeSubmit:function(e){var t,n=this;return(t=O.a.mark((function e(){var t,r;return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.$v.formData.$touch(),n.$v.formData.$invalid){e.next=15;break}return e.prev=2,t={email:n.formData.email,password:n.formData.password,password_confirmation:n.formData.password_confirmation,token:n.$route.params.token},n.isLoading=!0,e.next=7,axios.post("/api/v1/auth/reset/password",t);case 7:r=e.sent,n.isLoading=!1,r.data&&(toastr.success(n.$t("login.password_reset_successfully"),"Success"),n.$router.push("/login")),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),e.t0.response&&403===e.t0.response.status&&(toastr.error(e.t0.response.data,n.$t("validation.email_incorrect")),n.isLoading=!1);case 15:case"end":return e.stop()}}),e,null,[[2,12]])})),function(){var e=this,n=arguments;return new Promise((function(r,a){var i=t.apply(e,n);function o(e){J(i,r,a,o,s,"next",e)}function s(e){J(i,r,a,o,s,"throw",e)}o(void 0)}))})()}}},ne=Object(f.a)(te,(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,re={data:function(){return{name:"",email:"",password:"",password_confirmation:""}},methods:{validateBeforeSubmit:function(e){this.$validator.validateAll().then((function(e){e&&alert("Form Submitted!")}))}}},ae=Object(f.a)(re,(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,ie={components:{ArrowLeftIcon:s.a},mounted:function(){this.setLayoutClasses()},destroyed:function(){document.getElementsByTagName("body")[0].classList-=" bg-black"},methods:{setLayoutClasses:function(){document.getElementsByTagName("body")[0].classList+=" bg-black"}}},oe=Object(f.a)(ie,(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-no-wrap 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 se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach((function(t){ce(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ue={components:{DollarIcon:Object(f.a)({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("circle",{attrs:{cx:"25",cy:"25",r:"25",fill:"#FDE4E5"}}),this._v(" "),t("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:Object(f.a)({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("circle",{attrs:{cx:"25",cy:"25",r:"25",fill:"#EAF1FB"}}),this._v(" "),t("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:Object(f.a)({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("circle",{attrs:{cx:"25",cy:"25",r:"25",fill:"#EAF1FB"}}),this._v(" "),t("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:Object(f.a)({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("circle",{attrs:{cx:"25",cy:"25",r:"25",fill:"#EAF1FB"}}),this._v(" "),t("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 le({},this.$store.state.dashboard)},computed:le(le(le({},Object(o.c)("user",{user:"currentUser"})),Object(o.c)("dashboard",["getContacts","getInvoices","getEstimates","getTotalDueAmount","getDashboardDataLoaded"])),Object(o.c)("company",["defaultCurrency"]))},de=Object(f.a)(ue,(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,pe={name:"SweetModal",props:{title:{type:String,required:!1,default:""},overlayTheme:{type:String,required:!1,default:"light"},modalTheme:{type:String,required:!1,default:"light"},blocking:{type:Boolean,required:!1,default:!1},pulseOnBlock:{type:Boolean,required:!1,default:!0},icon:{type:String,required:!1,default:""},hideCloseButton:{type:Boolean,required:!1,default:!1},enableMobileFullscreen:{type:Boolean,required:!1,default:!0},width:{type:[Number,String],required:!1,default:null}},mounted(){this.tabs=this.$children.filter(e=>e.cmpName&&"tab"==e.cmpName),this.has_tabs&&(this.currentTab=this._changeTab(this.tabs[0])),document.addEventListener("keyup",this._onDocumentKeyup)},beforeDestroy(){document.removeEventListener("keyup",this._onDocumentKeyup)},data:()=>({visible:!1,is_open:!1,is_bouncing:!1,tabs:[],backups:{body:{height:null,overflow:null}}}),computed:{has_title(){return this.title||this.$slots.title},has_tabs(){return this.tabs.length>0},has_content(){return this.$slots.default},current_tab(){return this.tabs.filter(e=>!0===e.active)[0]},overlay_classes(){return["sweet-modal-overlay","theme-"+this.overlayTheme,"sweet-modal-clickable",{"is-visible":this.visible,blocking:this.blocking}]},modal_classes(){return["sweet-modal","theme-"+this.modalTheme,{"has-title":this.has_title,"has-tabs":this.has_tabs,"has-content":this.has_content,"has-icon":this.icon,"is-mobile-fullscreen":this.enableMobileFullscreen,"is-visible":this.visible,"is-alert":this.icon&&!this.has_tabs||!this.icon&&!this.title&&!this.$slots.title,bounce:this.is_bouncing}]},modal_style(){let e=this.width,t=null;return null!==e&&(Number(e)==e&&(e+="px"),t="none"),{width:e,maxWidth:t}}},methods:{open(e=null){if(e&&this.has_tabs){let t=this.tabs.filter(t=>t.id===e);if(t.length>0)this.currentTab=this._changeTab(t[0]);else{let t=this.tabs[e];t&&(this.currentTab=this._changeTab(t))}}this.is_open=!0,this._lockBody(),this._animateIcon(),setTimeout(()=>this.visible=!0,30),this.$emit("open")},close(){this.visible=!1,this._unlockBody(),setTimeout(()=>this.is_open=!1,300),this.$emit("close")},bounce(){this.is_bouncing=!0,setTimeout(()=>this.is_bouncing=!1,330)},_lockBody(){this.backups.body.height=document.body.style.height,this.backups.body.overflow=document.body.style.overflow,document.body.style.height="100%",document.body.style.overflow="hidden"},_unlockBody(){document.body.style.height=this.backups.body.height,document.body.style.overflow=this.backups.body.overflow},_onOverlayClick(e){e.target.classList&&!e.target.classList.contains("sweet-modal-clickable")||(this.blocking?this.pulseOnBlock&&this.bounce():this.close())},_onDocumentKeyup(e){27==e.keyCode&&(this.blocking?this.pulseOnBlock&&this.bounce():this.close())},_changeTab(e){this.tabs.map(t=>t.active=t==e),this.currentTab=e},_getClassesForTab:e=>["sweet-modal-tab",{active:e.active,disabled:e.disabled}],_animateIcon(){if(this.icon)switch(this.icon){case"success":setTimeout(()=>{this._applyClasses(this.$refs.icon_success,{"":["animate"],".sweet-modal-tip":["animateSuccessTip"],".sweet-modal-long":["animateSuccessLong"]})},80);break;case"warning":this._applyClasses(this.$refs.icon_warning,{"":["pulseWarning"],".sweet-modal-body":["pulseWarningIns"],".sweet-modal-dot":["pulseWarningIns"]});break;case"error":setTimeout(()=>{this._applyClasses(this.$refs.icon_error,{"":["animateErrorIcon"],".sweet-modal-x-mark":["animateXMark"]})},80)}},_applyClasses(e,t){for(let n in t){let r,a=t[n];r=""==n?e:e.querySelector(n),r.classList.remove(...a),r.classList.add(...a)}}}},fe=(n("phht"),Object(f.a)(pe,(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.$createElement,t=this._self._c||e;return t("span",{staticClass:"sweet-modal-x-mark"},[t("span",{staticClass:"sweet-modal-line sweet-modal-left"}),this._v(" "),t("span",{staticClass:"sweet-modal-line sweet-modal-right"})])}],!1,null,null,null).exports,{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"}}),me=(Object(f.a)(fe,(function(){var e=this.$createElement;return(this._self._c||e)("div",{class:["sweet-modal-tab",{active:this.active}]},[this._t("default")],2)}),[],!1,null,null,null).exports,n("MO+k")),he=n.n(me);function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ge={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?_e(Object(n),!0).forEach((function(t){ve(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}({},Object(o.c)("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(100*t.value,e.defaultCurrency)}}},legend:{display:!1}},r={labels:this.labels,datasets:[{label:"Sales",fill:!1,lineTension:.3,backgroundColor:"rgba(230, 254, 249)",borderColor:"#040405",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",pointBorderColor:"#040405",pointBackgroundColor:"#fff",pointBorderWidth:1,pointHoverRadius:5,pointHoverBackgroundColor:"#040405",pointHoverBorderColor:"rgba(220,220,220,1)",pointHoverBorderWidth:2,pointRadius:4,pointHitRadius:10,data:this.invoices.map((function(e){return e/100}))},{label:"Receipts",fill:!1,lineTension:.3,backgroundColor:"rgba(230, 254, 249)",borderColor:"rgb(2, 201, 156)",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",pointBorderColor:"rgb(2, 201, 156)",pointBackgroundColor:"#fff",pointBorderWidth:1,pointHoverRadius:5,pointHoverBackgroundColor:"rgb(2, 201, 156)",pointHoverBorderColor:"rgba(220,220,220,1)",pointHoverBorderWidth:2,pointRadius:4,pointHitRadius:10,data:this.receipts.map((function(e){return e/100}))},{label:"Expenses",fill:!1,lineTension:.3,backgroundColor:"rgba(245, 235, 242)",borderColor:"rgb(255,0,0)",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",pointBorderColor:"rgb(255,0,0)",pointBackgroundColor:"#fff",pointBorderWidth:1,pointHoverRadius:5,pointHoverBackgroundColor:"rgb(255,0,0)",pointHoverBorderColor:"rgba(220,220,220,1)",pointHoverBorderWidth:2,pointRadius:4,pointHitRadius:10,data:this.expenses.map((function(e){return e/100}))},{label:"Net Income",fill:!1,lineTension:.3,backgroundColor:"rgba(236, 235, 249)",borderColor:"rgba(88, 81, 216, 1)",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",pointBorderColor:"rgba(88, 81, 216, 1)",pointBackgroundColor:"#fff",pointBorderWidth:1,pointHoverRadius:5,pointHoverBackgroundColor:"rgba(88, 81, 216, 1)",pointHoverBorderColor:"rgba(220,220,220,1)",pointHoverBorderWidth:2,pointRadius:4,pointHitRadius:10,data:this.income.map((function(e){return e/100}))}]};this.myLineChart=new he.a(t,{type:"line",data:r,options:n})},methods:{update:function(){this.myLineChart.data.labels=this.labels,this.myLineChart.data.datasets[0].data=this.invoices.map((function(e){return e/100})),this.myLineChart.data.datasets[1].data=this.receipts.map((function(e){return e/100})),this.myLineChart.data.datasets[2].data=this.expenses.map((function(e){return e/100})),this.myLineChart.data.datasets[3].data=this.income.map((function(e){return e/100})),this.myLineChart.update({lazy:!0})},beforeDestroy:function(){this.myLineChart.destroy()}}},ye=(n("0IOw"),Object(f.a)(ge,(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,"0fb7cf40",null).exports);function be(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function 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}var De={components:{LineChart:ye,ChartSquareBarIcon:l.d},data:function(){return xe(xe({},this.$store.state.dashboard),{},{isLoaded:!1,years:["This year","Previous year"],selectedYear:"This year"})},computed:xe(xe(xe({},Object(o.c)("user",{user:"currentUser"})),Object(o.c)("dashboard",["getChartMonths","getChartInvoices","getChartExpenses","getNetProfits","getReceiptTotals","getTotalSales","getTotalReceipts","getTotalExpenses","getNetProfit"])),Object(o.c)("company",["defaultCurrency"])),watch:{selectedYear:function(e){if("Previous year"===e){this.loadData({previous_year:!0})}else this.loadData()}},created:function(){this.loadData()},methods:xe(xe({},Object(o.b)("dashboard",["loadData"])),{},{loadData:function(e){var t,n=this;return(t=O.a.mark((function t(){return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.$store.dispatch("dashboard/loadData",e);case 2:n.isLoaded=!0;case 3:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,a){var i=t.apply(e,n);function o(e){be(i,r,a,o,s,"next",e)}function s(e){be(i,r,a,o,s,"throw",e)}o(void 0)}))})()}})},Me=Object(f.a)(De,(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 Se(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Ce(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Se(i,r,a,o,s,"next",e)}function s(e){Se(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Te(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){Ee(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 Ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oe={components:{PencilIcon:s.z,EyeIcon:s.q,PaperAirplaneIcon:s.x,CheckCircleIcon:s.d,TrashIcon:s.I,DocumentTextIcon:s.n,XCircleIcon:s.M},data:function(){return Te(Te({},this.$store.state.dashboard),{},{currency:{precision:2,thousand_separator:",",decimal_separator:".",symbol:"$"},isLoaded:!1,fetching:!1})},computed:Te(Te({},Object(o.c)("user",{user:"currentUser"})),Object(o.c)("dashboard",["getDashboardDataLoaded","getDueInvoices","getRecentEstimates"])),methods:Te(Te(Te(Te(Te({},Object(o.b)("dashboard",["loadData"])),Object(o.b)("invoice",["deleteInvoice","sendEmail","markAsSent"])),Object(o.b)("estimate",["deleteEstimate","markAsAccepted","markAsRejected","convertToInvoice"])),Object(o.b)("estimate",{sendEstimateEmail:"sendEmail",markEstimateAsSent:"markAsSent"})),{},{loadData:function(e){var t=this;return Ce(O.a.mark((function n(){return O.a.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 Ce(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.id=e,window.swal({title:t.$t("general.are_you_sure"),text:t.$tc("estimates.confirm_delete",1),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var e=Ce(O.a.mark((function e(n){var r;return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n){e.next=5;break}return e.next=3,t.deleteEstimate({ids:[t.id]});case 3:(r=e.sent).data.success?(window.toastr.success(t.$tc("estimates.deleted_message",1)),t.refreshEstTable()):r.data.error&&window.toastr.error(r.data.message);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return n.stop()}}),n)})))()},refreshInvTable:function(){this.$refs.inv_table.refresh()},refreshEstTable:function(){this.$refs.est_table.refresh()},convertInToinvoice:function(e){var t=this;return Ce(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:window.swal({title:t.$t("general.are_you_sure"),text:t.$t("estimates.confirm_conversion"),icon:"/assets/icon/file-alt-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Ce(O.a.mark((function n(r){var a;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=6;break}return n.next=3,t.convertToInvoice(e);case 3:a=n.sent,t.selectAllField=!1,a.data?(window.toastr.success(t.$t("estimates.conversion_message")),t.$router.push("invoices/".concat(a.data.invoice.id,"/edit"))):a.data.error&&window.toastr.error(a.data.message);case 6:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},onMarkAsSent:function(e){var t=this;return Ce(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:window.swal({title:t.$t("general.are_you_sure"),text:t.$t("estimates.confirm_mark_as_sent"),icon:"/assets/icon/check-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Ce(O.a.mark((function n(r){var a,i;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=7;break}return a={id:e,status:"SENT"},n.next=4,t.markEstimateAsSent(a);case 4:i=n.sent,t.refreshEstTable(),i.data&&window.toastr.success(t.$tc("estimates.mark_as_sent_successfully"));case 7:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},removeInvoice:function(e){var t=this;return Ce(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.id=e,window.swal({title:t.$t("general.are_you_sure"),text:t.$tc("invoices.confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var e=Ce(O.a.mark((function e(n){var r;return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n){e.next=5;break}return e.next=3,t.deleteInvoice({ids:[t.id]});case 3:(r=e.sent).data.success?(window.toastr.success(t.$tc("invoices.deleted_message")),t.refreshInvTable()):r.data.error&&window.toastr.error(r.data.message);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return n.stop()}}),n)})))()},sendInvoice:function(e){var t=this;return Ce(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:window.swal({title:t.$t("general.are_you_sure"),text:t.$t("invoices.confirm_send"),icon:"/assets/icon/paper-plane-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Ce(O.a.mark((function n(r){var a,i;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=13;break}return a={id:e},n.next=4,t.sendEmail(a);case 4:if(i=n.sent,t.refreshInvTable(),!i.data.success){n.next=9;break}return window.toastr.success(t.$tc("invoices.send_invoice_successfully")),n.abrupt("return",!0);case 9:if("user_email_does_not_exist"!==i.data.error){n.next=12;break}return window.toastr.error(t.$tc("invoices.user_email_does_not_exist")),n.abrupt("return",!1);case 12:window.toastr.error(t.$tc("invoices.something_went_wrong"));case 13:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},sentInvoice:function(e){var t=this;return Ce(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:window.swal({title:t.$t("general.are_you_sure"),text:t.$t("invoices.invoice_mark_as_sent"),icon:"/assets/icon/check-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Ce(O.a.mark((function n(r){var a,i;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=7;break}return a={id:e,status:"SENT"},n.next=4,t.markAsSent(a);case 4:i=n.sent,t.refreshInvTable(),i.data&&window.toastr.success(t.$tc("invoices.mark_as_sent_successfully"));case 7:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},onMarkAsAccepted:function(e){var t=this;return Ce(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:window.swal({title:t.$t("general.are_you_sure"),text:t.$t("estimates.confirm_mark_as_accepted"),icon:"/assets/icon/check-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Ce(O.a.mark((function n(r){var a,i;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=7;break}return a={id:e},n.next=4,t.markAsAccepted(a);case 4:i=n.sent,t.refreshEstTable(),i.data&&(t.refreshEstTable(),window.toastr.success(t.$tc("estimates.marked_as_accepted_message")));case 7:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},onMarkAsRejected:function(e){var t=this;return Ce(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:window.swal({title:t.$t("general.are_you_sure"),text:t.$t("estimates.confirm_mark_as_rejected"),icon:"/assets/icon/times-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Ce(O.a.mark((function n(r){var a,i;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=7;break}return a={id:e},n.next=4,t.markAsRejected(a);case 4:i=n.sent,t.refreshEstTable(),i.data&&(t.refreshEstTable(),window.toastr.success(t.$tc("estimates.marked_as_rejected_message")));case 7:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},sendEstimate:function(e){var t=this;return Ce(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:window.swal({title:t.$t("general.are_you_sure"),text:t.$t("estimates.confirm_send_estimate"),icon:"/assets/icon/paper-plane-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Ce(O.a.mark((function n(r){var a,i;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=13;break}return a={id:e},n.next=4,t.sendEstimateEmail(a);case 4:if(i=n.sent,t.refreshEstTable(),!i.data.success){n.next=9;break}return window.toastr.success(t.$tc("estimates.send_estimate_successfully")),n.abrupt("return",!0);case 9:if("user_email_does_not_exist"!==i.data.error){n.next=12;break}return window.toastr.error(t.$tc("estimates.user_email_does_not_exist")),n.abrupt("return",!0);case 12:window.toastr.error(t.$tc("estimates.something_went_wrong"));case 13:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()}})},je={components:{DashboardStats:de,DashboardChart:Me,DashboardTable:Object(f.a)(Oe,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.getDashboardDataLoaded?e._e():n("base-loader"),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-6 mt-10 xl:grid-cols-2"},[n("div",{staticClass:"due-invoices"},[n("div",{staticClass:"relative z-10 flex items-center justify-between"},[n("h6",{staticClass:"mb-0 text-xl font-semibold leading-normal"},[e._v("\n "+e._s(e.$t("dashboard.recent_invoices_card.title"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{"tag-name":"router-link",to:"/admin/invoices",variant:"primary-outline"}},[e._v("\n "+e._s(e.$t("dashboard.recent_invoices_card.view_all"))+"\n ")])],1),e._v(" "),n("sw-table-component",{ref:"inv_table",attrs:{data:e.getDueInvoices,"show-filter":!1,"table-class":"table"}},[n("sw-table-column",{attrs:{sortable:!0,label:e.$t("dashboard.recent_invoices_card.due_on"),show:"formattedDueDate"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("dashboard.recent_invoices_card.due_on")))]),e._v(" "),n("span",{staticClass:"mt-6"},[e._v(e._s(t.formattedDueDate))])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("dashboard.recent_invoices_card.customer"),show:"user.name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("dashboard.recent_invoices_card.customer")))]),e._v(" "),n("router-link",{staticClass:"font-medium text-primary-500",attrs:{to:{path:"invoices/"+t.id+"/view"}}},[e._v("\n "+e._s(t.user.name)+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("invoices.status"),"sort-as":"status"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(" "+e._s(e.$t("invoices.status")))]),e._v(" "),n("sw-badge",{attrs:{"bg-color":e.$utils.getBadgeStatusColor(t.status).bgColor,color:e.$utils.getBadgeStatusColor(t.status).color}},[e._v("\n "+e._s("PARTIALLY_PAID"!=t.status?t.status:t.status.replace("_"," "))+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("dashboard.recent_invoices_card.amount_due"),show:"due_amount","sort-as":"due_amount"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("dashboard.recent_invoices_card.amount_due")))]),e._v(" "),n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(t.due_amount,t.user.currency))}})]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"action-dropdown dashboard-recent-invoice-options no-click"},scopedSlots:e._u([{key:"default",fn:function(t){return n("sw-dropdown",{},[n("dot-icon",{attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"invoices/"+t.id+"/edit"}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"invoices/"+t.id+"/view"}},[n("eye-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("invoices.view"))+"\n ")],1),e._v(" "),"DRAFT"===t.status?n("sw-dropdown-item",{on:{click:function(n){return e.sentInvoice(t.id)}}},[n("check-circle-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("invoices.mark_as_sent"))+"\n ")],1):e._e(),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.removeInvoice(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)}}])})],1)],1),e._v(" "),n("div",{staticClass:"recent-estimates"},[n("div",{staticClass:"relative z-10 flex items-center justify-between"},[n("h6",{staticClass:"mb-0 text-xl font-semibold leading-normal"},[e._v("\n "+e._s(e.$t("dashboard.recent_estimate_card.title"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{"tag-name":"router-link",to:"/admin/estimates",variant:"primary-outline"}},[e._v("\n "+e._s(e.$t("dashboard.recent_estimate_card.view_all"))+"\n ")])],1),e._v(" "),n("sw-table-component",{ref:"est_table",attrs:{data:e.getRecentEstimates,"show-filter":!1,"table-class":"table"}},[n("sw-table-column",{attrs:{sortable:!0,label:e.$t("dashboard.recent_estimate_card.date"),show:"formattedExpiryDate"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("dashboard.recent_estimate_card.date")))]),e._v(" "),n("span",{staticClass:"mt-6"},[e._v(e._s(t.formattedExpiryDate))])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("dashboard.recent_estimate_card.customer"),show:"user.name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("dashboard.recent_estimate_card.customer")))]),e._v(" "),n("router-link",{staticClass:"font-medium text-primary-500",attrs:{to:{path:"estimates/"+t.id+"/view"}}},[e._v("\n "+e._s(t.user.name)+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("estimates.status"),show:"status"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(" "+e._s(e.$t("estimates.status")))]),e._v(" "),n("sw-badge",{staticClass:"px-3 py-1",attrs:{"bg-color":e.$utils.getBadgeStatusColor(t.status).bgColor,color:e.$utils.getBadgeStatusColor(t.status).color}},[e._v("\n "+e._s(t.status)+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("dashboard.recent_estimate_card.amount_due"),show:"total","sort-as":"total"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("dashboard.recent_estimate_card.amount_due")))]),e._v(" "),n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(t.total,t.user.currency))}})]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"action-dropdown no-click"},scopedSlots:e._u([{key:"default",fn:function(t){return n("sw-dropdown",{},[n("dot-icon",{attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"estimates/"+t.id+"/edit"}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"estimates/"+t.id+"/view"}},[n("eye-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.view"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.convertInToinvoice(t.id)}}},[n("document-text-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("estimates.convert_to_invoice"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.onMarkAsSent(t.id)}}},[n("check-circle-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("estimates.mark_as_sent"))+"\n ")],1),e._v(" "),"ACCEPTED"!==t.status?n("sw-dropdown-item",{on:{click:function(n){return e.onMarkAsAccepted(t.id)}}},[n("check-circle-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("estimates.mark_as_accepted"))+"\n ")],1):e._e(),e._v(" "),"REJECTED"!==t.status?n("sw-dropdown-item",{on:{click:function(n){return e.onMarkAsRejected(t.id)}}},[n("x-circle-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("estimates.mark_as_rejected"))+"\n ")],1):e._e(),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.removeEstimate(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)}}])})],1)],1)])],1)}),[],!1,null,null,null).exports}},Ae=Object(f.a)(je,(function(){var e=this.$createElement,t=this._self._c||e;return t("base-page",[t("dashboard-stats"),this._v(" "),t("dashboard-chart"),this._v(" "),t("dashboard-table")],1)}),[],!1,null,null,null).exports,Pe=Object(f.a)({},(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;n("lJCZ");function Ye(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function $e(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Ye(i,r,a,o,s,"next",e)}function s(e){Ye(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ne(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){ze(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 ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fe={components:{AstronautIcon:Pe,ChevronDownIcon:s.f,PlusSmIcon:s.C,FilterIcon:s.r,XIcon:s.N,TrashIcon:s.I,PencilIcon:s.z,EyeIcon:s.q},data:function(){return{showFilters:!1,isRequestOngoing:!0,filters:{display_name:"",contact_name:"",phone:""}}},computed:Ne(Ne({showEmptyScreen:function(){return!this.totalCustomers&&!this.isRequestOngoing},filterIcon:function(){return this.showFilters?"x-icon":"filter-icon"}},Object(o.c)("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:Ne(Ne({},Object(o.b)("customer",["fetchCustomers","selectAllCustomers","selectCustomer","deleteCustomer","deleteMultipleCustomers","setSelectAllState"])),{},{refreshTable:function(){this.$refs.table.refresh()},fetchData:function(e){var t=this;return $e(O.a.mark((function n(){var r,a,i,o;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={display_name:t.filters.display_name,contact_name:t.filters.contact_name,phone:t.filters.phone,orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},t.isRequestOngoing=!0,n.next=5,t.fetchCustomers(i);case 5:return o=n.sent,t.isRequestOngoing=!1,n.abrupt("return",{data:o.data.customers.data,pagination:{totalPages:o.data.customers.last_page,currentPage:r}});case 8:case"end":return n.stop()}}),n)})))()},setFilters:function(){this.refreshTable()},clearFilter:function(){this.filters={display_name:"",contact_name:"",phone:""}},toggleFilter:function(){this.showFilters&&this.clearFilter(),this.showFilters=!this.showFilters},removeCustomer:function(e){var t=this;return $e(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$tc("customers.confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=$e(O.a.mark((function n(r){var a;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=10;break}return n.next=3,t.deleteCustomer({ids:[e]});case 3:if(!(a=n.sent).data.success){n.next=8;break}return window.toastr.success(t.$tc("customers.deleted_message",1)),t.$refs.table.refresh(),n.abrupt("return",!0);case 8:return window.toastr.error(a.data.message),n.abrupt("return",!0);case 10:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},removeMultipleCustomers:function(){var e=this;return $e(O.a.mark((function t(){return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:swal({title:e.$t("general.are_you_sure"),text:e.$tc("customers.confirm_delete",2),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=$e(O.a.mark((function t(n){var r;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=5;break}return t.next=3,e.deleteMultipleCustomers();case 3:(r=t.sent).data.success?(window.toastr.success(e.$tc("customers.deleted_message",2)),e.refreshTable()):r.data.error&&window.toastr.error(r.data.message);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()}})},Re=Object(f.a)(Fe,(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:{to:"dashboard",title:e.$t("general.home")}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$tc("customers.customer",2),active:""}})],1),e._v(" "),n("template",{slot:"actions"},[n("sw-button",{directives:[{name:"show",rawName:"v-show",value:e.totalCustomers,expression:"totalCustomers"}],attrs:{size:"lg",variant:"primary-outline"},on:{click:e.toggleFilter}},[e._v("\n "+e._s(e.$t("general.filter"))+"\n "),n(e.filterIcon,{tag:"component",staticClass:"h-4 ml-1 -mr-1 font-bold"})],1),e._v(" "),n("sw-button",{staticClass:"ml-4",attrs:{"tag-name":"router-link",to:"customers/create",size:"lg",variant:"primary"}},[n("plus-sm-icon",{staticClass:"h-6 mr-1 -ml-2 font-bold"}),e._v("\n "+e._s(e.$t("customers.new_customer"))+"\n ")],1)],1)],2),e._v(" "),n("slide-y-up-transition",[n("sw-filter-wrapper",{directives:[{name:"show",rawName:"v-show",value:e.showFilters,expression:"showFilters"}]},[n("sw-input-group",{staticClass:"flex-1 mt-2",attrs:{label:e.$t("customers.display_name")}},[n("sw-input",{staticClass:"mt-2",attrs:{type:"text",name:"name",autocomplete:"off"},model:{value:e.filters.display_name,callback:function(t){e.$set(e.filters,"display_name",t)},expression:"filters.display_name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"flex-1 mt-2 ml-0 lg:ml-6",attrs:{label:e.$t("customers.contact_name")}},[n("sw-input",{staticClass:"mt-2",attrs:{type:"text",name:"address_name",autocomplete:"off"},model:{value:e.filters.contact_name,callback:function(t){e.$set(e.filters,"contact_name",t)},expression:"filters.contact_name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"flex-1 mt-2 ml-0 lg:ml-6",attrs:{label:e.$t("customers.phone")}},[n("sw-input",{staticClass:"mt-2",attrs:{type:"text",name:"phone",autocomplete:"off"},model:{value:e.filters.phone,callback:function(t){e.$set(e.filters,"phone",t)},expression:"filters.phone"}})],1),e._v(" "),n("label",{staticClass:"absolute text-sm leading-snug text-black cursor-pointer",staticStyle:{top:"10px",right:"15px"},on:{click:e.clearFilter}},[e._v(e._s(e.$t("general.clear_all")))])],1)],1),e._v(" "),n("sw-empty-table-placeholder",{directives:[{name:"show",rawName:"v-show",value:e.showEmptyScreen,expression:"showEmptyScreen"}],attrs:{title:e.$t("customers.no_customers"),description:e.$t("customers.list_of_customers")}},[n("astronaut-icon",{staticClass:"mt-5 mb-4"}),e._v(" "),n("sw-button",{attrs:{slot:"actions","tag-name":"router-link",to:"/admin/customers/create",size:"lg",variant:"primary-outline"},slot:"actions"},[e._v("\n "+e._s(e.$t("customers.add_new_customer"))+"\n ")])],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.showEmptyScreen,expression:"!showEmptyScreen"}],staticClass:"relative table-container"},[n("div",{staticClass:"relative flex items-center justify-between h-10 mt-5 border-b-2 border-gray-200 border-solid"},[n("p",{staticClass:"text-sm"},[e._v("\n "+e._s(e.$t("general.showing"))+": "),n("b",[e._v(e._s(e.customers.length))]),e._v("\n "+e._s(e.$t("general.of"))+" "),n("b",[e._v(e._s(e.totalCustomers))])]),e._v(" "),n("sw-transition",{attrs:{type:"fade"}},[e.selectedCustomers.length?n("sw-dropdown",[n("span",{staticClass:"flex block text-sm font-medium cursor-pointer select-none text-primary-400",attrs:{slot:"activator"},slot:"activator"},[e._v("\n "+e._s(e.$t("general.actions"))+"\n "),n("chevron-down-icon",{staticClass:"h-5"})],1),e._v(" "),n("sw-dropdown-item",{on:{click:e.removeMultipleCustomers}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1):e._e()],1)],1),e._v(" "),n("div",{staticClass:"absolute z-10 items-center pl-4 mt-2 select-none md:mt-12"},[n("sw-checkbox",{staticClass:"hidden md:inline",attrs:{variant:"primary",size:"sm"},on:{change:e.selectAllCustomers},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}}),e._v(" "),n("sw-checkbox",{staticClass:"md:hidden",attrs:{label:e.$t("general.select_all"),variant:"primary",size:"sm"},on:{change:e.selectAllCustomers},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}})],1),e._v(" "),n("sw-table-component",{ref:"table",attrs:{"show-filter":!1,data:e.fetchData,"table-class":"table"}},[n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"no-click"},scopedSlots:e._u([{key:"default",fn:function(t){return n("div",{staticClass:"relative block"},[n("sw-checkbox",{attrs:{id:t.id,value:t.id,variant:"primary",size:"sm"},model:{value:e.selectField,callback:function(t){e.selectField=t},expression:"selectField"}})],1)}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,filterable:!0,label:e.$t("customers.display_name"),show:"name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("customers.display_name")))]),e._v(" "),n("router-link",{staticClass:"font-medium text-primary-500",attrs:{to:{path:"customers/"+t.id+"/view"}}},[e._v("\n "+e._s(t.name)+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("customers.contact_name"),show:"contact_name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("customers.contact_name")))]),e._v(" "),n("span",[e._v("\n "+e._s(t.contact_name?t.contact_name:"No Contact Name")+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("customers.phone"),show:"phone"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("customers.phone")))]),e._v(" "),n("span",[e._v("\n "+e._s(t.phone?t.phone:"No Contact")+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("customers.amount_due"),show:"due_amount"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(" "+e._s(e.$t("customers.amount_due"))+" ")]),e._v(" "),n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(t.due_amount,t.currency))}})]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("customers.added_on"),"sort-as":"created_at",show:"formattedCreatedAt"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"action-dropdown"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(" "+e._s(e.$t("customers.action"))+" ")]),e._v(" "),n("sw-dropdown",[n("dot-icon",{attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"customers/"+t.id+"/edit"}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"customers/"+t.id+"/view"}},[n("eye-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.view"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.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,He=n("48T8"),Be=(n("LvDl"),n("RUiw"));function qe(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Ue(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){qe(i,r,a,o,s,"next",e)}function s(e){qe(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function We(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(n),!0).forEach((function(t){Ke(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 Ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ge=n("ta7f"),Je=Ge.required,Ze=Ge.minLength,Xe=Ge.email,Qe=Ge.url,et=Ge.maxLength,tt={components:{DocumentDuplicateIcon:s.l},mixins:[Be.a],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:Je,minLength:Ze(3)},email:{email:Xe},website:{url:Qe}},billing:{address_street_1:{maxLength:et(255)},address_street_2:{maxLength:et(255)}},shipping:{address_street_1:{maxLength:et(255)},address_street_2:{maxLength:et(255)}}},computed:We(We(We({},Object(o.c)(["currencies"])),Object(o.c)("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:We(We(We({},Object(o.b)("customer",["addCustomer","fetchCustomer","updateCustomer","fetchViewCustomer"])),Object(o.b)("customFields",["fetchCustomFields"])),{},{currencyNameWithCode:function(e){var t=e.name,n=e.code;return"".concat(n," - ").concat(t)},loadCustomer:function(){var e=this;return Ue(O.a.mark((function t(){var n,r,a,i;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={id:e.$route.params.id},t.next=3,e.fetchCustomer(n);case 3:return r=t.sent,e.formData=We(We({},e.formData),r.data.customer),r.data.customer.billing_address&&(e.billing=r.data.customer.billing_address,r.data.customer.billing_address.country_id&&(e.billing_country=r.data.customer.billing_address.country)),r.data.customer.shipping_address&&(e.shipping=r.data.customer.shipping_address,r.data.customer.shipping_address.country_id&&(e.shipping_country=r.data.customer.shipping_address.country)),e.formData.currency_id=r.data.customer.currency_id,e.currency=r.data.customer.currency,t.next=11,e.fetchCustomFields({type:"Customer",limit:"all"});case 11:a=t.sent,i=a.data.customFields.data,e.formData.fields=r.data.customer.fields,e.setEditCustomFields(r.data.customer.fields,i);case 15:case"end":return t.stop()}}),t)})))()},fetchInitData:function(){var e=this;return Ue(O.a.mark((function t(){var n;return O.a.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=We(We({},this.billing),{},{type:"shipping"}),this.shipping_country=this.billing_country,this.shipping_state=this.billing_state,this.shipping_city=this.billing_city):(this.shipping=We(We({},He.a),{},{type:"shipping"}),this.shipping_country=null,this.shipping_state=null,this.shipping_city=null)},submitCustomerData:function(){var e=this;return Ue(O.a.mark((function t(){var n,r;return O.a.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=[We({},e.billing),We({},e.shipping)]:e.hasBillingAdd?e.formData.addresses=[We({},e.billing)]:e.hasShippingAdd&&(e.formData.addresses=[We({},e.shipping)]),t.prev=7,r=null,e.isLoading=!0,e.currency&&(e.formData.currency_id=e.currency.id),!e.isEdit){t.next=19;break}return t.next=14,e.updateCustomer(e.formData);case 14:(r=t.sent).data.success&&(e.$router.push("/admin/customers/".concat(r.data.customer.id,"/view")),window.toastr.success(e.$t("customers.updated_message"))),r.data.error&&window.toastr.error(e.$t("validation.email_already_taken")),t.next=23;break;case 19:return t.next=21,e.addCustomer(e.formData);case 21:(r=t.sent).data.success&&(e.$router.push("/admin/customers/".concat(r.data.customer.id,"/view")),window.toastr.success(e.$t("customers.created_message")));case 23:return e.isLoading=!1,t.abrupt("return",!0);case 27:t.prev=27,t.t0=t.catch(7),e.isLoading=!1,err.response.data.errors.email&&window.toastr.error(e.$t("validation.email_already_taken"));case 31:case"end":return t.stop()}}),t,null,[[7,27]])})))()}})},nt=Object(f.a)(tt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-page",{staticClass:"customer-create"},[e.initLoad?n("base-loader"):n("form",{on:{submit:function(t){return t.preventDefault(),e.submitCustomerData(t)}}},[n("sw-page-header",{staticClass:"mb-5",attrs:{title:e.pageTitle}},[n("sw-breadcrumb",{attrs:{slot:"breadcrumbs"},slot:"breadcrumbs"},[n("sw-breadcrumb-item",{attrs:{to:"/admin/dashboard",title:e.$t("general.home")}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{to:"/admin/customers",title:e.$tc("customers.customer",2)}}),e._v(" "),"customers.edit"===e.$route.name?n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$t("customers.edit_customer"),active:""}}):n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$t("customers.new_customer"),active:""}})],1),e._v(" "),n("template",{slot:"actions"},[n("sw-button",{staticClass:"hidden md:relative md:flex",attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit",size:"lg"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2 -ml-1"}),e._v("\n\n "+e._s(e.isEdit?e.$t("customers.update_customer"):e.$t("customers.save_customer"))+"\n ")],1)],1)],2),e._v(" "),n("sw-card",{attrs:{variant:"customer-card"}},[n("div",{staticClass:"grid grid-cols-5 gap-4 mb-8"},[n("h6",{staticClass:"col-span-5 sw-section-title lg:col-span-1"},[e._v("\n "+e._s(e.$t("customers.basic_info"))+"\n ")]),e._v(" "),n("div",{staticClass:"grid col-span-5 lg:col-span-4 gap-y-6 gap-x-4 md:grid-cols-6"},[n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.display_name"),error:e.displayNameError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.formData.name.$error,focus:"",type:"text",name:"name",tabindex:"1"},on:{input:function(t){return e.$v.formData.name.$touch()}},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.primary_contact_name")}},[n("sw-input",{attrs:{label:e.$t("customers.contact_name"),type:"text",tabindex:"2"},model:{value:e.formData.contact_name,callback:function(t){e.$set(e.formData,"contact_name","string"==typeof t?t.trim():t)},expression:"formData.contact_name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.email"),error:e.emailError}},[n("sw-input",{attrs:{invalid:e.$v.formData.email.$error,type:"text",name:"email",tabindex:"3"},on:{input:function(t){return e.$v.formData.email.$touch()}},model:{value:e.formData.email,callback:function(t){e.$set(e.formData,"email","string"==typeof t?t.trim():t)},expression:"formData.email"}})],1),e._v(" "),n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.phone")}},[n("sw-input",{attrs:{type:"text",name:"phone",tabindex:"4"},model:{value:e.formData.phone,callback:function(t){e.$set(e.formData,"phone","string"==typeof t?t.trim():t)},expression:"formData.phone"}})],1),e._v(" "),n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.primary_currency")}},[n("sw-select",{attrs:{options:e.currencies,"custom-label":e.currencyNameWithCode,"allow-empty":!1,searchable:!0,"show-labels":!1,tabindex:5,placeholder:e.$t("customers.select_currency"),label:"name","track-by":"id"},model:{value:e.currency,callback:function(t){e.currency=t},expression:"currency"}})],1),e._v(" "),n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.website"),error:e.urlError}},[n("sw-input",{attrs:{invalid:e.$v.formData.website.$error,type:"url",tabindex:"6"},on:{input:function(t){return e.$v.formData.website.$touch()}},model:{value:e.formData.website,callback:function(t){e.$set(e.formData,"website",t)},expression:"formData.website"}})],1)],1)]),e._v(" "),n("sw-divider",{staticClass:"mb-5 md:mb-8"}),e._v(" "),n("div",{staticClass:"grid grid-cols-5 gap-4 mb-8"},[n("h6",{staticClass:"col-span-5 sw-section-title lg:col-span-1"},[e._v("\n "+e._s(e.$t("customers.billing_address"))+"\n ")]),e._v(" "),n("div",{staticClass:"grid col-span-5 lg:col-span-4 gap-y-6 gap-x-4 md:grid-cols-6"},[n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.name")}},[n("sw-input",{attrs:{type:"text",name:"address_name",tabindex:"7"},model:{value:e.billing.name,callback:function(t){e.$set(e.billing,"name","string"==typeof t?t.trim():t)},expression:"billing.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.country")}},[n("sw-select",{attrs:{options:e.countries,searchable:!0,"show-labels":!1,"allow-empty":!0,tabindex:8,placeholder:e.$t("general.select_country"),label:"name","track-by":"id"},model:{value:e.billing_country,callback:function(t){e.billing_country=t},expression:"billing_country"}})],1),e._v(" "),n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.state")}},[n("sw-input",{attrs:{name:"billing.state",type:"text",tabindex:"9"},model:{value:e.billing.state,callback:function(t){e.$set(e.billing,"state",t)},expression:"billing.state"}})],1),e._v(" "),n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.city")}},[n("sw-input",{attrs:{name:"billing.city",type:"text",tabindex:"10"},model:{value:e.billing.city,callback:function(t){e.$set(e.billing,"city",t)},expression:"billing.city"}})],1),e._v(" "),n("div",{staticClass:"md:col-span-3"},[n("sw-input-group",{attrs:{label:e.$t("customers.address"),error:e.billAddress1Error}},[n("sw-textarea",{attrs:{placeholder:e.$t("general.street_1"),type:"text",name:"billing_street1",rows:"3",tabindex:"11"},on:{input:function(t){return e.$v.billing.address_street_1.$touch()}},model:{value:e.billing.address_street_1,callback:function(t){e.$set(e.billing,"address_street_1","string"==typeof t?t.trim():t)},expression:"billing.address_street_1"}})],1),e._v(" "),n("sw-input-group",{attrs:{error:e.billAddress2Error}},[n("sw-textarea",{attrs:{placeholder:e.$t("general.street_2"),type:"text",name:"billing_street2",rows:"3",tabindex:"12"},on:{input:function(t){return e.$v.billing.address_street_2.$touch()}},model:{value:e.billing.address_street_2,callback:function(t){e.$set(e.billing,"address_street_2","string"==typeof t?t.trim():t)},expression:"billing.address_street_2"}})],1)],1),e._v(" "),n("div",{staticClass:"md:col-span-3"},[n("sw-input-group",{staticClass:"mb-6",attrs:{label:e.$t("customers.phone")}},[n("sw-input",{attrs:{type:"text",name:"phone",tabindex:"13"},model:{value:e.billing.phone,callback:function(t){e.$set(e.billing,"phone","string"==typeof t?t.trim():t)},expression:"billing.phone"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("customers.zip_code")}},[n("sw-input",{attrs:{tabindex:"14",type:"text",name:"zip"},model:{value:e.billing.zip,callback:function(t){e.$set(e.billing,"zip","string"==typeof t?t.trim():t)},expression:"billing.zip"}})],1)],1)],1)]),e._v(" "),n("sw-divider",{staticClass:"mb-5 md:mb-8"}),e._v(" "),n("div",{staticClass:"flex items-center justify-start mb-6 md:justify-end md:mb-0"},[n("div",{staticClass:"p-1"},[n("sw-button",{ref:"sameAddress",staticClass:"h-8 px-3 py-1 mb-4",attrs:{variant:"primary",type:"button"},on:{click:function(t){return e.copyAddress(!0)}}},[n("document-duplicate-icon",{staticClass:"h-4 mr-1 -ml-2"}),e._v(" "),n("span",{staticClass:"text-xs"},[e._v("\n "+e._s(e.$t("customers.copy_billing_address"))+"\n ")])],1)],1)]),e._v(" "),n("div",{staticClass:"grid grid-cols-5 gap-4 mb-8"},[n("h6",{staticClass:"col-span-5 sw-section-title lg:col-span-1"},[e._v("\n "+e._s(e.$t("customers.shipping_address"))+"\n ")]),e._v(" "),n("div",{staticClass:"grid col-span-5 lg:col-span-4 gap-y-6 gap-x-4 md:grid-cols-6"},[n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.name")}},[n("sw-input",{attrs:{type:"text",name:"address_name",tabindex:"15"},model:{value:e.shipping.name,callback:function(t){e.$set(e.shipping,"name","string"==typeof t?t.trim():t)},expression:"shipping.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.country")}},[n("sw-select",{attrs:{options:e.countries,searchable:!0,"show-labels":!1,tabindex:16,"allow-empty":!0,placeholder:e.$t("general.select_country"),label:"name","track-by":"id"},model:{value:e.shipping_country,callback:function(t){e.shipping_country=t},expression:"shipping_country"}})],1),e._v(" "),n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.state")}},[n("sw-input",{attrs:{name:"shipping.state",type:"text",tabindex:"17"},model:{value:e.shipping.state,callback:function(t){e.$set(e.shipping,"state",t)},expression:"shipping.state"}})],1),e._v(" "),n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.city")}},[n("sw-input",{attrs:{name:"shipping.city",type:"text",tabindex:"18"},model:{value:e.shipping.city,callback:function(t){e.$set(e.shipping,"city",t)},expression:"shipping.city"}})],1),e._v(" "),n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.address")}},[n("sw-textarea",{attrs:{tabindex:19,placeholder:e.$t("general.street_1"),type:"text",name:"street_1",rows:"3"},on:{input:function(t){return e.$v.shipping.address_street_1.$touch()}},model:{value:e.shipping.address_street_1,callback:function(t){e.$set(e.shipping,"address_street_1","string"==typeof t?t.trim():t)},expression:"shipping.address_street_1"}}),e._v(" "),e.$v.shipping.address_street_1.$error?n("div",[e.$v.shipping.address_street_1.maxLength?e._e():n("span",{staticClass:"text-sm text-danger"},[e._v(e._s(e.$t("validation.address_maxlength")))])]):e._e(),e._v(" "),n("sw-textarea",{attrs:{tabindex:20,placeholder:e.$t("general.street_2"),type:"text",name:"street_2",rows:"3"},on:{input:function(t){return e.$v.shipping.address_street_2.$touch()}},model:{value:e.shipping.address_street_2,callback:function(t){e.$set(e.shipping,"address_street_2","string"==typeof t?t.trim():t)},expression:"shipping.address_street_2"}}),e._v(" "),e.$v.shipping.address_street_2.$error?n("div",[e.$v.shipping.address_street_2.maxLength?e._e():n("span",{staticClass:"text-danger"},[e._v(e._s(e.$t("validation.address_maxlength")))])]):e._e()],1),e._v(" "),n("div",{staticClass:"md:col-span-3"},[n("sw-input-group",{staticClass:"mb-6",attrs:{label:e.$t("customers.phone")}},[n("sw-input",{attrs:{type:"text",name:"phone",tabindex:"21"},model:{value:e.shipping.phone,callback:function(t){e.$set(e.shipping,"phone","string"==typeof t?t.trim():t)},expression:"shipping.phone"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("customers.zip_code")}},[n("sw-input",{attrs:{type:"text",name:"zip",tabindex:"22"},model:{value:e.shipping.zip,callback:function(t){e.$set(e.shipping,"zip","string"==typeof t?t.trim():t)},expression:"shipping.zip"}})],1)],1)],1)]),e._v(" "),e.customFields.length>0?n("sw-divider",{staticClass:"mb-5 md:mb-8"}):e._e(),e._v(" "),e.customFields.length>0?n("div",{staticClass:"grid grid-cols-5 gap-4 mb-8"},[n("h6",{staticClass:"col-span-5 sw-section-title lg:col-span-1"},[e._v("\n "+e._s(e.$t("settings.custom_fields.title"))+"\n ")]),e._v(" "),n("div",{staticClass:"grid col-span-5 lg:col-span-4 gap-y-6 gap-x-4 md:grid-cols-6"},e._l(e.customFields,(function(t,r){return n("sw-input-group",{key:r,staticClass:"md:col-span-3",attrs:{label:t.label,required:!!t.is_required}},[n(t.type+"Field",{tag:"component",attrs:{type:t.type.label,field:t,isEdit:e.isEdit,"invalid-fields":e.invalidFields,tabindex:23+r},on:{update:e.setCustomFieldValue}})],1)})),1)]):e._e(),e._v(" "),n("sw-button",{staticClass:"flex w-full sm:hidden md:hidden",attrs:{disabled:e.isLoading,loading:e.isLoading,variant:"primary",type:"submit",size:"lg"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2 -ml-1"}),e._v("\n "+e._s(e.isEdit?e.$t("customers.update_customer"):e.$t("customers.save_customer"))+"\n ")],1)],1)],1)],1)}),[],!1,null,null,null).exports;function rt(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function at(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){rt(i,r,a,o,s,"next",e)}function s(e){rt(i,r,a,o,s,"throw",e)}o(void 0)}))}}function it(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?it(Object(n),!0).forEach((function(t){st(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function st(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lt=n("LvDl"),ct={components:{FilterIcon:s.r,SortAscendingIcon:s.G,SortDescendingIcon:s.H,SearchIcon:s.E},data:function(){return{id:null,customers:[],customer:null,currency:null,searchData:{orderBy:null,orderByField:null,searchText:null},isSearching:!1}},computed:ot(ot({getOrderBy:function(){return"asc"===this.searchData.orderBy||null==this.searchData.orderBy},getOrderName:function(){return this.getOrderBy?this.$t("general.ascending"):this.$t("general.descending")}},Object(o.c)("company",["defaultCurrency"])),Object(o.c)("customer",["selectedViewCustomer"])),watch:{$route:function(e,t){this.loadCustomer()}},created:function(){this.loadCustomers(),this.loadCustomer(),this.onSearch=lt.debounce(this.onSearch,500)},methods:ot(ot({},Object(o.b)("customer",["fetchCustomers"])),{},{hasActiveUrl:function(e){return this.$route.params.id==e},loadCustomers:function(){var e=this;return at(O.a.mark((function t(){var n;return O.a.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 at(O.a.mark((function t(){return O.a.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 at(O.a.mark((function t(){var n,r;return O.a.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(ot({},n));case 8:r=t.sent,e.isSearching=!1,r.data&&(e.customers=r.data.customers.data),t.next=16;break;case 13:t.prev=13,t.t0=t.catch(5),e.isSearching=!1;case 16:case"end":return t.stop()}}),t,null,[[5,13]])})))()},sortData:function(){return"asc"===this.searchData.orderBy?(this.searchData.orderBy="desc",this.onSearch(),!0):(this.searchData.orderBy="asc",this.onSearch(),!0)}})},ut=Object(f.a)(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:{label:e.$t("customers.create_date"),size:"sm",id:"filter_create_date",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:{label:e.$t("customers.display_name"),size:"sm",id:"filter_display_name",name:"filter",value:"users.name"},on:{change:e.onSearch},model:{value:e.searchData.orderByField,callback:function(t){e.$set(e.searchData,"orderByField",t)},expression:"searchData.orderByField"}})],1)],1)],1),e._v(" "),n("sw-button",{directives:[{name:"tooltip",rawName:"v-tooltip.top-center",value:{content:e.getOrderName},expression:"{ content: getOrderName }",modifiers:{"top-center":!0}}],staticClass:"ml-1",attrs:{size:"md",variant:"gray-light"},on:{click:e.sortData}},[e.getOrderBy?n("sort-ascending-icon",{staticClass:"h-5"}):n("sort-descending-icon",{staticClass:"h-5"})],1)],1)],1),e._v(" "),e.isSearching?n("base-loader",{attrs:{"show-bg-overlay":!0}}):n("div",{staticClass:"h-full pb-32 overflow-y-scroll border-l border-gray-200 border-solid sidebar sw-scroll"},[e._l(e.customers,(function(t,r){return n("router-link",{key:r,class:["flex justify-between p-4 items-center cursor-pointer hover:bg-gray-100 border-l-4 border-transparent",{"bg-gray-100 border-l-4 border-primary-500 border-solid":e.hasActiveUrl(t.id)}],staticStyle:{"border-top":"1px solid rgba(185, 193, 209, 0.41)"},attrs:{to:"/admin/customers/"+t.id+"/view",id:"customer-"+t.id}},[n("div",[n("div",{staticClass:"pr-2 text-sm not-italic font-normal leading-5 text-black capitalize truncate"},[e._v("\n "+e._s(t.name)+"\n ")]),e._v(" "),t.contact_name?n("div",{staticClass:"mt-1 text-xs not-italic font-medium leading-5 text-gray-600"},[e._v("\n "+e._s(t.contact_name)+"\n ")]):e._e()]),e._v(" "),n("div",{staticClass:"flex-1 whitespace-no-wrap 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 dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function 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 ft={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?dt(Object(n),!0).forEach((function(t){pt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dt(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:[]}},Object(o.c)("customer",["selectedViewCustomer"])),watch:{$route:function(e,t){this.customer=this.selectedViewCustomer}}};function mt(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function ht(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){mt(i,r,a,o,s,"next",e)}function s(e){mt(i,r,a,o,s,"throw",e)}o(void 0)}))}}function _t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(n),!0).forEach((function(t){gt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_t(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}var yt={components:{LineChart:ye,CustomerInfo:Object(f.a)(ft,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pt-6 mt-5 border-t-2 border-solid lg:pt-8 md:pt-4",staticStyle:{"border-top-color":"#f9fbff"}},[n("div",{staticClass:"col-span-12"},[n("p",{staticClass:"text-gray-500 uppercase sw-section-title"},[e._v("\n "+e._s(e.$t("customers.basic_info"))+"\n ")]),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mt-5 lg:grid-cols-3 md:grid-cols-2 sm:grid-cols-1"},[n("div",[n("p",{staticClass:"mb-1 text-sm font-normal leading-5 non-italic text-primary-800"},[e._v("\n "+e._s(e.$t("customers.display_name"))+"\n ")]),e._v(" "),n("p",{staticClass:"text-sm font-bold leading-5 text-black non-italic"},[e._v("\n "+e._s(e.selectedViewCustomer.customer&&e.selectedViewCustomer.customer.name?e.selectedViewCustomer.customer.name:"")+"\n ")])]),e._v(" "),n("div",[n("p",{staticClass:"mb-1 text-sm font-normal leading-5 non-italic text-primary-800"},[e._v("\n "+e._s(e.$t("customers.primary_contact_name"))+"\n ")]),e._v(" "),n("p",{staticClass:"text-sm font-bold leading-5 text-black non-italic"},[e._v("\n "+e._s(e.selectedViewCustomer.customer&&e.selectedViewCustomer.customer.contact_name?e.selectedViewCustomer.customer.contact_name:"")+"\n ")])]),e._v(" "),n("div",[n("p",{staticClass:"mb-1 text-sm font-normal leading-5 non-italic text-primary-800"},[e._v("\n "+e._s(e.$t("customers.email"))+"\n ")]),e._v(" "),n("p",{staticClass:"text-sm font-bold leading-5 text-black non-italic"},[e._v("\n "+e._s(e.selectedViewCustomer.customer&&e.selectedViewCustomer.customer.email?e.selectedViewCustomer.customer.email:"")+"\n ")])])]),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mt-5 lg:grid-cols-3 md:grid-cols-2 sm:grid-cols-1"},[n("div",[n("p",{staticClass:"mb-1 text-sm font-normal leading-5 non-italic text-primary-800"},[e._v("\n "+e._s(e.$t("wizard.currency"))+"\n ")]),e._v(" "),n("p",{staticClass:"text-sm font-bold leading-5 text-black non-italic"},[e._v("\n "+e._s(e.selectedViewCustomer.customer.currency?e.selectedViewCustomer.customer.currency.code+" ("+e.selectedViewCustomer.customer.currency.symbol+")":"")+"\n ")])]),e._v(" "),n("div",[n("p",{staticClass:"mb-1 text-sm font-normal leading-5 non-italic text-primary-800"},[e._v("\n "+e._s(e.$t("customers.phone_number"))+"\n ")]),e._v(" "),n("p",{staticClass:"text-sm font-bold leading-5 text-black non-italic"},[e._v("\n "+e._s(e.selectedViewCustomer.customer&&e.selectedViewCustomer.customer.phone?e.selectedViewCustomer.customer.phone:"")+"\n ")])]),e._v(" "),n("div",[n("p",{staticClass:"mb-1 text-sm font-normal leading-5 non-italic text-primary-800"},[e._v("\n "+e._s(e.$t("customers.website"))+"\n ")]),e._v(" "),n("p",{staticClass:"text-sm font-bold leading-5 text-black non-italic"},[e._v("\n "+e._s(e.selectedViewCustomer.customer&&e.selectedViewCustomer.customer.website?e.selectedViewCustomer.customer.website:"")+"\n ")])])]),e._v(" "),e.getFormattedShippingAddress.length||e.getFormattedBillingAddress.length?n("p",{staticClass:"mt-8 text-gray-500 uppercase sw-section-title"},[e._v("\n "+e._s(e.$t("customers.address"))+"\n ")]):e._e(),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 md:grid-cols-2 sm:grid-cols-1 lg:grid-cols-2"},[e.getFormattedBillingAddress.length?n("div",{staticClass:"mt-5"},[n("p",{staticClass:"mb-1 text-sm font-normal leading-5 non-italic text-primary-800"},[e._v("\n "+e._s(e.$t("customers.billing_address"))+"\n ")]),e._v(" "),n("p",{staticClass:"text-sm font-bold leading-5 text-black non-italic",domProps:{innerHTML:e._s(e.getFormattedBillingAddress)}})]):e._e(),e._v(" "),e.getFormattedShippingAddress.length?n("div",{staticClass:"mt-5"},[n("p",{staticClass:"mb-1 text-sm font-normal leading-5 non-italic text-primary-800"},[e._v("\n "+e._s(e.$t("customers.shipping_address"))+"\n ")]),e._v(" "),n("p",{staticClass:"text-sm font-bold leading-5 text-black non-italic",domProps:{innerHTML:e._s(e.getFormattedShippingAddress)}})]):e._e()]),e._v(" "),e.getCustomField.length>0?n("p",{staticClass:"mt-8 text-gray-500 uppercase sw-section-title"},[e._v("\n "+e._s(e.$t("settings.custom_fields.title"))+"\n ")]):e._e(),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mt-5 lg:grid-cols-3 md:grid-cols-2 sm:grid-cols-1"},e._l(e.getCustomField,(function(t,r){return n("div",{key:r,attrs:{required:!!t.is_required}},[n("p",{staticClass:"mb-1 text-sm font-normal leading-5 non-italic text-primary-800"},[e._v("\n "+e._s(t.custom_field.label)+"\n ")]),e._v(" "),"Switch"===t.type?n("p",{staticClass:"text-sm font-bold leading-5 text-black non-italic"},[1===t.defaultAnswer?n("span",[e._v(" Yes ")]):n("span",[e._v(" No ")])]):n("p",{staticClass:"text-sm font-bold leading-5 text-black non-italic"},[e._v("\n "+e._s(t.defaultAnswer)+"\n ")])])})),0)])])}),[],!1,null,null,null).exports,ChartSquareBarIcon:l.d},data:function(){return{id:null,customers:[],isLoaded:!1,chartData:null,years:["This year","Previous year"],selectedYear:"This year"}},computed:vt(vt({},Object(o.c)("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:vt(vt({},Object(o.b)("customer",["fetchViewCustomer"])),{},{loadCustomer:function(){var e=this;return ht(O.a.mark((function t(){var n;return O.a.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 ht(O.a.mark((function n(){var r,a;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("Previous year"!=e){n.next=6;break}return n.next=3,t.fetchViewCustomer({id:t.$route.params.id,previous_year:!0});case 3:return(r=n.sent).data&&(t.chartData=r.data.chartData),n.abrupt("return",!0);case 6:return n.next=8,t.fetchViewCustomer({id:t.$route.params.id});case 8:return(a=n.sent).data&&(t.chartData=a.data.chartData),n.abrupt("return",!0);case 11:case"end":return n.stop()}}),n)})))()}})},bt=Object(f.a)(yt,(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 wt(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function xt(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){wt(i,r,a,o,s,"next",e)}function s(e){wt(i,r,a,o,s,"throw",e)}o(void 0)}))}}function kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function 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={components:{LineChart:ye,DotsHorizontalIcon:s.o,CustomerViewSidebar:ut,DocumentIcon:s.m,DocumentTextIcon:s.n,CreditCardIcon:s.j,CalculatorIcon:s.c,CustomerChart:bt,TrashIcon:s.I},data:function(){return{customer:null}},computed:Dt(Dt({},Object(o.c)("customer",["selectedViewCustomer"])),{},{pageTitle:function(){return this.selectedViewCustomer.customer?this.selectedViewCustomer.customer.name:""}}),created:function(){this.fetchViewCustomer({id:this.$route.params.id})},methods:Dt(Dt({},Object(o.b)("customer",["fetchViewCustomer","selectCustomer","deleteMultipleCustomers"])),{},{removeCustomer:function(e){var t=this;return xt(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$tc("customers.confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=xt(O.a.mark((function n(r){var a,i;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=13;break}return a=[e],t.selectCustomer(a),n.next=5,t.deleteMultipleCustomers();case 5:if(!(i=n.sent).data.success){n.next=12;break}return window.toastr.success(t.$tc("customers.deleted_message")),t.$router.push("/admin/customers"),n.abrupt("return",!0);case 12:request.data.error&&window.toastr.error(i.data.message);case 13:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()}})},Ct=Object(f.a)(St,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-page",{staticClass:"xl:pl-96"},[n("sw-page-header",{attrs:{title:e.pageTitle}},[n("template",{slot:"actions"},[n("sw-button",{staticClass:"mr-3",attrs:{"tag-name":"router-link",to:"/admin/customers/"+e.$route.params.id+"/edit",variant:"primary-outline"}},[e._v("\n "+e._s(e.$t("general.edit"))+"\n ")]),e._v(" "),n("sw-dropdown",{attrs:{position:"bottom-end"}},[n("sw-button",{staticClass:"mr-3",attrs:{slot:"activator",variant:"primary"},slot:"activator"},[e._v("\n "+e._s(e.$t("customers.new_transaction"))+"\n ")]),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"/admin/estimates/create?customer="+e.$route.params.id}},[n("document-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("estimates.new_estimate"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"/admin/invoices/create?customer="+e.$route.params.id}},[n("document-text-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("invoices.new_invoice"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"/admin/payments/create?customer="+e.$route.params.id}},[n("credit-card-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("payments.new_payment"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"/admin/expenses/create?customer="+e.$route.params.id}},[n("calculator-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("expenses.new_expense"))+"\n ")],1)],1),e._v(" "),n("sw-dropdown",[n("sw-button",{attrs:{slot:"activator",variant:"primary"},slot:"activator"},[n("dots-horizontal-icon",{staticClass:"h-5 -ml-1 -mr-1"})],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(t){return e.removeCustomer(e.$route.params.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)],1)],2),e._v(" "),n("customer-view-sidebar"),e._v(" "),n("customer-chart")],1)}),[],!1,null,null,null).exports;function Lt(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Tt(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Lt(i,r,a,o,s,"next",e)}function s(e){Lt(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(n),!0).forEach((function(t){jt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var At={components:{SatelliteIcon:Object(f.a)({},(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:s.r,XIcon:s.N,PlusIcon:s.B,ChevronDownIcon:s.f,PencilIcon:s.z,TrashIcon:s.I},data:function(){return{id:null,showFilters:!1,sortedBy:"created_at",isRequestOngoing:!0,filters:{name:"",unit:"",price:""}}},computed:Ot(Ot(Ot({},Object(o.c)("item",["items","selectedItems","totalItems","selectAllField","itemUnits"])),Object(o.c)("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:Ot(Ot({},Object(o.b)("item",["fetchItems","selectAllItems","selectItem","deleteItem","deleteMultipleItems","setSelectAllState","fetchItemUnits"])),{},{refreshTable:function(){this.$refs.table.refresh()},fetchData:function(e){var t=this;return Tt(O.a.mark((function n(){var r,a,i,o;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={search:null!==t.filters.name?t.filters.name:"",unit_id:null!==t.filters.unit?t.filters.unit.id:"",price:100*t.filters.price,orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},t.isRequestOngoing=!0,n.next=5,t.fetchItems(i);case 5:return o=n.sent,t.isRequestOngoing=!1,n.abrupt("return",{data:o.data.items.data,pagination:{totalPages:o.data.items.last_page,currentPage:r}});case 8:case"end":return n.stop()}}),n)})))()},setFilters:function(){this.refreshTable()},clearFilter:function(){this.filters={name:"",unit:"",price:""}},toggleFilter:function(){this.showFilters&&this.clearFilter(),this.showFilters=!this.showFilters},removeItems:function(e){var t=this;return Tt(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.id=e,swal({title:t.$t("general.are_you_sure"),text:t.$tc("items.confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Tt(O.a.mark((function n(r){var a;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=13;break}return n.next=3,t.deleteItem({ids:[e]});case 3:if(!(a=n.sent).data.success){n.next=8;break}return window.toastr.success(t.$tc("items.deleted_message",1)),t.$refs.table.refresh(),n.abrupt("return",!0);case 8:if("item_attached"!==a.data.error){n.next=11;break}return window.toastr.error(t.$tc("items.item_attached_message"),t.$t("general.action_failed")),n.abrupt("return",!0);case 11:return window.toastr.error(a.data.message),n.abrupt("return",!0);case 13:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 2:case"end":return n.stop()}}),n)})))()},removeMultipleItems:function(){var e=this;return Tt(O.a.mark((function t(){return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:swal({title:e.$t("general.are_you_sure"),text:e.$tc("items.confirm_delete",2),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=Tt(O.a.mark((function t(n){var r;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=5;break}return t.next=3,e.deleteMultipleItems();case 3:(r=t.sent).data.success||r.data.items?(window.toastr.success(e.$tc("items.deleted_message",2)),e.$refs.table.refresh()):r.data.error&&window.toastr.error(r.data.message);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()}})},Pt=Object(f.a)(At,(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:{to:"dashboard",title:e.$t("general.home")}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$tc("items.item",2),active:""}})],1),e._v(" "),n("template",{slot:"actions"},[n("sw-button",{directives:[{name:"show",rawName:"v-show",value:e.totalItems,expression:"totalItems"}],attrs:{variant:"primary-outline",size:"lg"},on:{click:e.toggleFilter}},[e._v("\n "+e._s(e.$t("general.filter"))+"\n "),n(e.filterIcon,{tag:"component",staticClass:"w-4 h-4 ml-2 -mr-1"})],1),e._v(" "),n("sw-button",{staticClass:"ml-4",attrs:{"tag-name":"router-link",to:"items/create",variant:"primary",size:"lg"}},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("items.add_item"))+"\n ")],1)],1)],2),e._v(" "),n("slide-y-up-transition",[n("sw-filter-wrapper",{directives:[{name:"show",rawName:"v-show",value:e.showFilters,expression:"showFilters"}]},[n("sw-input-group",{staticClass:"flex-1 mt-2 ml-0",attrs:{label:e.$tc("items.name")}},[n("sw-input",{staticClass:"mt-2",attrs:{type:"text",name:"name",autocomplete:"off"},model:{value:e.filters.name,callback:function(t){e.$set(e.filters,"name",t)},expression:"filters.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"flex-1 mt-2 ml-0 lg:ml-6",attrs:{label:e.$tc("items.unit")}},[n("sw-select",{staticClass:"mt-2",attrs:{options:e.itemUnits,searchable:!0,"show-labels":!1,placeholder:e.$t("items.select_a_unit"),label:"name",autocomplete:"off"},model:{value:e.filters.unit,callback:function(t){e.$set(e.filters,"unit",t)},expression:"filters.unit"}})],1),e._v(" "),n("sw-input-group",{staticClass:"flex-1 mt-2 ml-0 lg:ml-6",attrs:{label:e.$tc("items.price")}},[n("sw-input",{staticClass:"mt-2",attrs:{type:"text",name:"name",autocomplete:"off"},model:{value:e.filters.price,callback:function(t){e.$set(e.filters,"price",t)},expression:"filters.price"}})],1),e._v(" "),n("label",{staticClass:"absolute text-sm leading-snug text-gray-900 cursor-pointer",staticStyle:{top:"10px",right:"15px"},on:{click:e.clearFilter}},[e._v("\n "+e._s(e.$t("general.clear_all")))])],1)],1),e._v(" "),n("sw-empty-table-placeholder",{directives:[{name:"show",rawName:"v-show",value:e.showEmptyScreen,expression:"showEmptyScreen"}],attrs:{title:e.$t("items.no_items"),description:e.$t("items.list_of_items")}},[n("satellite-icon",{staticClass:"mt-5 mb-4"}),e._v(" "),n("sw-button",{attrs:{slot:"actions","tag-name":"router-link",to:"/admin/items/create",size:"lg",variant:"primary-outline"},slot:"actions"},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("items.add_new_item"))+"\n ")],1)],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.showEmptyScreen,expression:"!showEmptyScreen"}],staticClass:"relative table-container"},[n("div",{staticClass:"relative flex items-center justify-between h-10 mt-5 list-none border-b-2 border-gray-200 border-solid"},[n("p",{staticClass:"text-sm"},[e._v("\n "+e._s(e.$t("general.showing"))+": "),n("b",[e._v(e._s(e.items.length))]),e._v("\n "+e._s(e.$t("general.of"))+" "),n("b",[e._v(e._s(e.totalItems))])]),e._v(" "),n("sw-transition",[e.selectedItems.length?n("sw-dropdown",[n("span",{staticClass:"flex block text-sm font-medium cursor-pointer select-none text-primary-400",attrs:{slot:"activator"},slot:"activator"},[e._v("\n "+e._s(e.$t("general.actions"))+"\n "),n("chevron-down-icon",{staticClass:"h-5"})],1),e._v(" "),n("sw-dropdown-item",{on:{click:e.removeMultipleItems}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1):e._e()],1)],1),e._v(" "),n("div",{staticClass:"absolute z-10 items-center pl-4 mt-2 select-none md:mt-12"},[n("sw-checkbox",{staticClass:"hidden md:inline",attrs:{variant:"primary",size:"sm"},on:{change:e.selectAllItems},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}}),e._v(" "),n("sw-checkbox",{staticClass:"md:hidden",attrs:{label:e.$t("general.select_all"),variant:"primary",size:"sm"},on:{change:e.selectAllItems},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}})],1),e._v(" "),n("sw-table-component",{ref:"table",attrs:{data:e.fetchData,"show-filter":!1,"table-class":"table"}},[n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"no-click"},scopedSlots:e._u([{key:"default",fn:function(t){return n("div",{staticClass:"custom-control custom-checkbox"},[n("sw-checkbox",{attrs:{id:t.id,value:t.id,variant:"primary",size:"sm"},model:{value:e.selectField,callback:function(t){e.selectField=t},expression:"selectField"}})],1)}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("items.name"),show:"name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("items.name")))]),e._v(" "),n("router-link",{staticClass:"font-medium text-primary-500",attrs:{to:{path:"items/"+t.id+"/edit"}}},[e._v("\n "+e._s(t.name)+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("items.unit"),show:"unit_name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("items.unit")))]),e._v(" "),n("span",[e._v("\n "+e._s(t.unit_name?t.unit_name:"Not selected")+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("items.price"),show:"price"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(" "+e._s(e.$t("items.price"))+" ")]),e._v(" "),n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(t.price,e.defaultCurrency))}})]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("items.added_on"),"sort-as":"created_at",show:"formattedCreatedAt"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,filterable:!1,"cell-class":"action-dropdown"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(" "+e._s(e.$t("items.action"))+" ")]),e._v(" "),n("sw-dropdown",[n("dot-icon",{attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"items/"+t.id+"/edit"}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.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 Yt(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function $t(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Yt(i,r,a,o,s,"next",e)}function s(e){Yt(i,r,a,o,s,"throw",e)}o(void 0)}))}}function It(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?It(Object(n),!0).forEach((function(t){zt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ft=n("ta7f"),Rt=Ft.required,Ht=Ft.minLength,Bt=Ft.numeric,qt=Ft.minValue,Ut=Ft.maxLength,Vt={components:{ShoppingCartIcon:s.F},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:Nt(Nt(Nt(Nt(Nt({},Object(o.c)("company",["defaultCurrencyForInput"])),Object(o.c)("item",["itemUnits"])),Object(o.c)("taxType",["taxTypes"])),{},{price:{get:function(){return this.formData.price/100},set:function(e){this.formData.price=100*e}},pageTitle:function(){return"items.edit"===this.$route.name?this.$t("items.edit_item"):this.$t("items.new_item")}},Object(o.c)("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 Nt(Nt({},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:Rt,minLength:Ht(3)},price:{required:Rt,numeric:Bt,maxLength:Ut(20),minValue:qt(.1)},description:{maxLength:Ut(65e3)}}},methods:Nt(Nt(Nt(Nt(Nt({},Object(o.b)("item",["addItem","fetchItem","updateItem","fetchItemUnits"])),Object(o.b)("taxType",["fetchTaxTypes"])),Object(o.b)("company",["fetchCompanySettings"])),Object(o.b)("modal",["openModal"])),{},{setTaxPerItem:function(){var e=this;return $t(O.a.mark((function t(){var n;return O.a.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 $t(O.a.mark((function t(){var n;return O.a.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=Nt(Nt({},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 Nt(Nt({},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 $t(O.a.mark((function t(){var n,r;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!1);case 3:if(e.formData.unit&&(e.formData.unit_id=e.formData.unit.id),e.isLoading=!0,!e.isEdit){t.next=11;break}return t.next=8,e.updateItem(e.formData);case 8:n=t.sent,t.next=15;break;case 11:return r=Nt(Nt({},e.formData),{},{taxes:e.formData.taxes.map((function(t){return{tax_type_id:t.id,amount:e.formData.price*t.percent/100,percent:t.percent,name:t.name,collective_tax:0}}))}),t.next=14,e.addItem(r);case 14:n=t.sent;case 15:if(!n.data){t.next=27;break}if(e.isLoading=!1,e.isEdit){t.next=23;break}return window.toastr.success(e.$tc("items.created_message")),e.$router.push("/admin/items"),t.abrupt("return",!0);case 23:return window.toastr.success(e.$tc("items.updated_message")),e.$router.push("/admin/items"),t.abrupt("return",!0);case 26:window.toastr.error(n.data.error);case 27:case"end":return t.stop()}}),t)})))()},addItemUnit:function(){var e=this;return $t(O.a.mark((function t(){return O.a.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)})))()}})},Wt=Object(f.a)(Vt,(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:{to:"/admin/dashboard",title:e.$t("general.home")}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{to:"/admin/items",title:e.$tc("items.item",2)}}),e._v(" "),"items.edit"===e.$route.name?n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$t("items.edit_item"),active:""}}):n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$t("items.new_item"),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,Kt=Object(f.a)({},(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,Gt=n("wd/R"),Jt=n.n(Gt);function Zt(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Xt(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Zt(i,r,a,o,s,"next",e)}function s(e){Zt(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function en(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qt(Object(n),!0).forEach((function(t){tn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nn={components:{MoonWalkerIcon:Kt,PlusIcon:s.B,FilterIcon:s.r,XIcon:s.N,ChevronDownIcon:s.f,DotsHorizontalIcon:l.m,PencilIcon:s.z,DocumentDuplicateIcon:s.l,TrashIcon:s.I,CheckCircleIcon:s.d,PaperAirplaneIcon:s.x,DocumentTextIcon:s.n,XCircleIcon:s.M,EyeIcon:s.q,CreditCardIcon:s.j,HashtagIcon:s.t},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:en(en(en({showEmptyScreen:function(){return!this.totalInvoices&&!this.isRequestOngoing},filterIcon:function(){return this.showFilters?"x-icon":"filter-icon"}},Object(o.c)("customer",["customers"])),Object(o.c)("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:en(en(en(en({},Object(o.b)("invoice",["fetchInvoices","getRecord","selectInvoice","resetSelectedInvoices","selectAllInvoices","deleteInvoice","deleteMultipleInvoices","sendEmail","markAsSent","setSelectAllState","cloneInvoice"])),Object(o.b)("customer",["fetchCustomers"])),Object(o.b)("modal",["openModal"])),{},{sendInvoice:function(e){var t=this;return Xt(O.a.mark((function n(){return O.a.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 Xt(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$t("invoices.invoice_mark_as_sent"),icon:"/assets/icon/check-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Xt(O.a.mark((function n(r){var a,i;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=7;break}return a={id:e,status:"SENT"},n.next=4,t.markAsSent(a);case 4:i=n.sent,t.refreshTable(),i.data&&window.toastr.success(t.$tc("invoices.mark_as_sent_successfully"));case 7:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},onCloneInvoice:function(e){var t=this;return Xt(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$t("invoices.confirm_clone"),icon:"/assets/icon/check-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Xt(O.a.mark((function n(r){var a;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=6;break}return n.next=3,t.cloneInvoice({id:e});case 3:a=n.sent,t.refreshTable(),a.data&&(window.toastr.success(t.$tc("invoices.cloned_successfully")),t.$router.push("/admin/invoices/".concat(a.data.invoice.id,"/edit")));case 6:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},setStatusFilter:function(e){if(this.activeTab==e.title)return!0;switch(this.activeTab=e.title,e.title){case this.$t("general.due"):this.filters.status={name:"DUE",value:"DUE"};break;case this.$t("general.draft"):this.filters.status={name:"DRAFT",value:"DRAFT"};break;default:this.filters.status={name:"",value:""}}},refreshTable:function(){this.$refs.table.refresh()},fetchData:function(e){var t=this;return Xt(O.a.mark((function n(){var r,a,i,o;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={customer_id:t.filters.customer?t.filters.customer.id:"",status:t.filters.status.value,from_date:t.filters.from_date,to_date:t.filters.to_date,invoice_number:t.filters.invoice_number,orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},t.isRequestOngoing=!0,n.next=5,t.fetchInvoices(i);case 5:return o=n.sent,t.isRequestOngoing=!1,t.currency=o.data.currency,n.abrupt("return",{data:o.data.invoices.data,pagination:{totalPages:o.data.invoices.last_page,currentPage:r,count:o.data.invoices.count}});case 9:case"end":return n.stop()}}),n)})))()},setFilters:function(){this.resetSelectedInvoices(),this.refreshTable()},clearFilter:function(){this.filters.customer&&this.$refs.customerSelect.$refs.baseSelect.removeElement(this.filters.customer),this.filters={customer:"",status:"",from_date:"",to_date:"",invoice_number:""},this.activeTab=this.$t("general.all")},toggleFilter:function(){this.showFilters&&this.clearFilter(),this.showFilters=!this.showFilters},onSelectCustomer:function(e){this.filters.customer=e},removeInvoice:function(e){var t=this;return Xt(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.id=e,swal({title:t.$t("general.are_you_sure"),text:t.$tc("invoices.confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Xt(O.a.mark((function n(r){var a;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=13;break}return n.next=3,t.deleteInvoice({ids:[e]});case 3:if(!(a=n.sent).data.success){n.next=8;break}return window.toastr.success(t.$tc("invoices.deleted_message")),t.$refs.table.refresh(),n.abrupt("return",!0);case 8:if("payment_attached"!==a.data.error){n.next=11;break}return window.toastr.error(t.$t("invoices.payment_attached_message"),t.$t("general.action_failed")),n.abrupt("return",!0);case 11:return window.toastr.error(a.data.error),n.abrupt("return",!0);case 13:t.resetSelectedInvoices();case 14:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 2:case"end":return n.stop()}}),n)})))()},removeMultipleInvoices:function(){var e=this;return Xt(O.a.mark((function t(){return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:swal({title:e.$t("general.are_you_sure"),text:e.$tc("invoices.confirm_delete",2),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=Xt(O.a.mark((function t(n){var r;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=8;break}return t.next=3,e.deleteMultipleInvoices();case 3:if("payment_attached"!==(r=t.sent).data.error){t.next=7;break}return window.toastr.error(e.$t("invoices.payment_attached_message"),e.$t("general.action_failed")),t.abrupt("return",!0);case 7:r.data?(e.$refs.table.refresh(),e.resetSelectedInvoices(),window.toastr.success(e.$tc("invoices.deleted_message",2))):r.data.error&&window.toastr.error(r.data.message);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},clearCustomerSearch:function(e,t){var n=this;return Xt(O.a.mark((function e(){return O.a.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 Xt(O.a.mark((function e(){return O.a.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")}}})},rn=Object(f.a)(nn,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-page",[n("sw-page-header",{attrs:{title:e.$t("invoices.title")}},[n("sw-breadcrumb",{attrs:{slot:"breadcrumbs"},slot:"breadcrumbs"},[n("sw-breadcrumb-item",{attrs:{to:"dashboard",title:e.$t("general.home")}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$tc("invoices.invoice",2),active:""}})],1),e._v(" "),n("template",{slot:"actions"},[n("sw-button",{directives:[{name:"show",rawName:"v-show",value:e.totalInvoices,expression:"totalInvoices"}],attrs:{size:"lg",variant:"primary-outline"},on:{click:e.toggleFilter}},[e._v("\n "+e._s(e.$t("general.filter"))+"\n "),n(e.filterIcon,{tag:"component",staticClass:"w-4 h-4 ml-2 -mr-1"})],1),e._v(" "),n("sw-button",{staticClass:"ml-4",attrs:{"tag-name":"router-link",to:"/admin/invoices/create",size:"lg",variant:"primary"}},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("invoices.new_invoice"))+"\n ")],1)],1)],2),e._v(" "),n("slide-y-up-transition",[n("sw-filter-wrapper",{directives:[{name:"show",rawName:"v-show",value:e.showFilters,expression:"showFilters"}],staticClass:"relative grid grid-flow-col grid-rows"},[n("sw-input-group",{staticClass:"mt-2",attrs:{label:e.$tc("customers.customer",1)}},[n("base-customer-select",{ref:"customerSelect",on:{select:e.onSelectCustomer,deselect:e.clearCustomerSearch}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-2 xl:mx-8",attrs:{label:e.$t("invoices.status")}},[n("sw-select",{attrs:{options:e.status,"group-select":!1,searchable:!0,"show-labels":!1,placeholder:e.$t("general.select_a_status"),"allow-empty":!1,"group-values":"options","group-label":"label","track-by":"name",label:"name"},on:{remove:function(t){return e.clearStatusSearch()},select:e.setActiveTab},model:{value:e.filters.status,callback:function(t){e.$set(e.filters,"status",t)},expression:"filters.status"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-2",attrs:{label:e.$t("general.from")}},[n("base-date-picker",{attrs:{"calendar-button":!0,"calendar-button-icon":"calendar"},model:{value:e.filters.from_date,callback:function(t){e.$set(e.filters,"from_date",t)},expression:"filters.from_date"}})],1),e._v(" "),n("div",{staticClass:"hidden w-8 h-0 mx-4 border border-gray-400 border-solid xl:block",staticStyle:{"margin-top":"3.5rem"}}),e._v(" "),n("sw-input-group",{staticClass:"mt-2",attrs:{label:e.$t("general.to")}},[n("base-date-picker",{attrs:{"calendar-button":!0,"calendar-button-icon":"calendar"},model:{value:e.filters.to_date,callback:function(t){e.$set(e.filters,"to_date",t)},expression:"filters.to_date"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-2 xl:ml-8",attrs:{label:e.$t("invoices.invoice_number")}},[n("sw-input",{model:{value:e.filters.invoice_number,callback:function(t){e.$set(e.filters,"invoice_number",t)},expression:"filters.invoice_number"}},[n("hashtag-icon",{staticClass:"h-5 ml-1 text-gray-500",attrs:{slot:"leftIcon"},slot:"leftIcon"})],1)],1),e._v(" "),n("label",{staticClass:"absolute text-sm leading-snug text-black cursor-pointer",staticStyle:{top:"10px",right:"15px"},on:{click:e.clearFilter}},[e._v(e._s(e.$t("general.clear_all")))])],1)],1),e._v(" "),n("sw-empty-table-placeholder",{directives:[{name:"show",rawName:"v-show",value:e.showEmptyScreen,expression:"showEmptyScreen"}],attrs:{title:e.$t("invoices.no_invoices"),description:e.$t("invoices.list_of_invoices")}},[n("moon-walker-icon",{staticClass:"mt-5 mb-4"}),e._v(" "),n("sw-button",{attrs:{slot:"actions","tag-name":"router-link",to:"/admin/invoices/create",size:"lg",variant:"primary-outline"},slot:"actions"},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("invoices.new_invoice"))+"\n ")],1)],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.showEmptyScreen,expression:"!showEmptyScreen"}],staticClass:"relative"},[n("div",{staticClass:"relative mt-5"},[n("p",{staticClass:"absolute right-0 m-0 text-sm",staticStyle:{top:"50px"}},[e._v("\n "+e._s(e.$t("general.showing"))+": "),n("b",[e._v(e._s(e.invoices.length))]),e._v("\n\n "+e._s(e.$t("general.of"))+" "),n("b",[e._v(e._s(e.totalInvoices))])]),e._v(" "),n("sw-tabs",{attrs:{"active-tab":e.activeTab},on:{update:e.setStatusFilter}},[n("sw-tab-item",{attrs:{title:e.$t("general.due"),filter:"DUE"}}),e._v(" "),n("sw-tab-item",{attrs:{title:e.$t("general.draft"),filter:"DRAFT"}}),e._v(" "),n("sw-tab-item",{attrs:{title:e.$t("general.all"),filter:""}})],1),e._v(" "),n("sw-transition",{attrs:{type:"fade"}},[e.selectedInvoices.length?n("sw-dropdown",{staticClass:"absolute float-right",staticStyle:{"margin-top":"-35px"}},[n("span",{staticClass:"flex block text-sm font-medium cursor-pointer select-none text-primary-400",attrs:{slot:"activator"},slot:"activator"},[e._v("\n "+e._s(e.$t("general.actions"))+"\n "),n("chevron-down-icon",{staticClass:"h-5"})],1),e._v(" "),n("sw-dropdown-item",{on:{click:e.removeMultipleInvoices}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1):e._e()],1)],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.invoices&&e.invoices.length,expression:"invoices && invoices.length"}],staticClass:"absolute z-10 items-center pl-4 mt-2 select-none md:mt-12"},[n("sw-checkbox",{staticClass:"hidden md:inline",attrs:{variant:"primary",size:"sm"},on:{change:e.selectAllInvoices},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}}),e._v(" "),n("sw-checkbox",{staticClass:"md:hidden",attrs:{label:e.$t("general.select_all"),variant:"primary",size:"sm"},on:{change:e.selectAllInvoices},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}})],1),e._v(" "),n("sw-table-component",{ref:"table",attrs:{"show-filter":!1,data:e.fetchData,"table-class":"table"}},[n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"no-click"},scopedSlots:e._u([{key:"default",fn:function(t){return n("div",{staticClass:"relative block"},[n("sw-checkbox",{attrs:{id:t.id,value:t.id,variant:"primary",size:"sm"},model:{value:e.selectField,callback:function(t){e.selectField=t},expression:"selectField"}})],1)}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("invoices.date"),"sort-as":"invoice_date",show:"formattedInvoiceDate"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("invoices.number"),show:"invoice_number"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("invoices.number")))]),e._v(" "),n("router-link",{staticClass:"font-medium text-primary-500",attrs:{to:{path:"invoices/"+t.id+"/view"}}},[e._v("\n "+e._s(t.invoice_number)+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("invoices.customer"),width:"20%",show:"name"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("invoices.status"),"sort-as":"status"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(" "+e._s(e.$t("invoices.status")))]),e._v(" "),n("sw-badge",{attrs:{"bg-color":e.$utils.getBadgeStatusColor(t.status).bgColor,color:e.$utils.getBadgeStatusColor(t.status).color}},[e._v("\n "+e._s(t.status.replace("_"," "))+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("invoices.paid_status"),"sort-as":"paid_status"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("invoices.paid_status")))]),e._v(" "),n("sw-badge",{attrs:{"bg-color":e.$utils.getBadgeStatusColor(t.status).bgColor,color:e.$utils.getBadgeStatusColor(t.status).color}},[e._v("\n "+e._s(t.paid_status.replace("_"," "))+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("invoices.amount_due"),"sort-as":"due_amount"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("invoices.amount_due")))]),e._v(" "),n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(t.due_amount,t.user.currency))}})]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"action-dropdown no-click"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("invoices.action")))]),e._v(" "),n("sw-dropdown",[n("dot-icon",{attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"invoices/"+t.id+"/edit"}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"invoices/"+t.id+"/view"}},[n("eye-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("invoices.view"))+"\n ")],1),e._v(" "),"DRAFT"==t.status?n("sw-dropdown-item",{on:{click:function(n){return e.sendInvoice(t)}}},[n("paper-airplane-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("invoices.send_invoice"))+"\n ")],1):e._e(),e._v(" "),"SENT"===t.status||"VIEWED"===t.status?n("sw-dropdown-item",{on:{click:function(n){return e.sendInvoice(t)}}},[n("paper-airplane-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("invoices.resend_invoice"))+"\n ")],1):e._e(),e._v(" "),"DRAFT"==t.status?n("sw-dropdown-item",{on:{click:function(n){return e.markInvoiceAsSent(t.id)}}},[n("check-circle-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("invoices.mark_as_sent"))+"\n ")],1):e._e(),e._v(" "),"SENT"===t.status||"VIEWED"===t.status||"OVERDUE"===t.status?n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"/admin/payments/"+t.id+"/create"}},[n("credit-card-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("payments.record_payment"))+"\n ")],1):e._e(),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.onCloneInvoice(t.id)}}},[n("document-duplicate-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("invoices.clone_invoice"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.removeInvoice(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)]}}])})],1)],1)],1)}),[],!1,null,null,null).exports,an=n("t2rG"),on=n.n(an),sn=n("5i4m"),ln=n.n(sn),cn={name:"",tax_type_id:0,amount:null,percent:null,compound_tax:!1},un={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 dn(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pn(Object(n),!0).forEach((function(t){mn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hn={components:{XCircleIcon:s.M,ShoppingCartIcon:s.F},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:fn({},Object(o.c)("item",["items"])),watch:{invalidDescription:function(e){console.log(e)}},methods:fn(fn(fn({},Object(o.b)("modal",["openModal"])),Object(o.b)("item",["fetchItems"])),{},{searchItems:function(e){var t,n=this;return(t=O.a.mark((function t(){var r;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={search:e,filter:{name:e,unit:"",price:""},orderByField:"",orderBy:"",page:1},n.item&&(r.item_id=n.item.item_id),n.loading=!0,t.next=5,n.fetchItems(r);case 5:n.loading=!1;case 6:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,a){var i=t.apply(e,n);function o(e){dn(i,r,a,o,s,"next",e)}function s(e){dn(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onTextChange:function(e){this.searchItems(e),this.$emit("search",e)},openItemModal:function(){this.$emit("onSelectItem"),this.openModal({title:this.$t("items.add_item"),componentName:"ItemModal",data:{taxPerItem:this.taxPerItem,taxes:this.taxes}})},onSelect:function(e){this.$emit("select",e),this.fetchItems()},deselectItem:function(){this.itemSelect=null,this.$emit("deselect")}})},_n=Object(f.a)(hn,(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 vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vn(Object(n),!0).forEach((function(t){yn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bn={components:{CheckCircleIcon:s.d,TrashIcon:s.I},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:gn({},this.taxData),selectedTax:null}},computed:gn(gn({},Object(o.c)("taxType",["taxTypes"])),{},{filteredTypes:function(){var e=this;return this.taxTypes.map((function(e){return gn({},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}))),this.updateTax(),window.hub.$on("newTax",(function(t){e.selectedTax||(e.selectedTax=t,e.onSelectTax(t))}))},methods:gn(gn({},Object(o.b)("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:gn(gn({},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"})}})},wn=Object(f.a)(bn,(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,xn=Object(f.a)({},(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 kn(e){return function(e){if(Array.isArray(e))return Dn(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 Dn(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 Dn(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 Dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mn(Object(n),!0).forEach((function(t){Cn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ln=n("ta7f"),Tn=Ln.required,En=Ln.minValue,On=Ln.between,jn=Ln.maxLength,An={components:{Tax:wn,ItemSelect:_n,TrashIcon:s.I,ViewGridIcon:s.L,ChevronDownIcon:s.f,DragIcon:xn},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:Sn({},this.itemData),maxDiscount:0,money:{decimal:".",thousands:",",prefix:"$ ",precision:2,masked:!1},isSelected:!1}},computed:Sn(Sn(Sn(Sn({},Object(o.c)("item",["items"])),Object(o.c)("modal",["modalActive"])),Object(o.c)("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=100*e,this.item.discount=e}},total:function(){return this.subtotal-this.item.discount_val},totalSimpleTax:function(){return window._.sumBy(this.item.taxes,(function(e){return e.compound_tax?0:e.amount}))},totalCompoundTax:function(){return 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=100*e,this.maxDiscount=this.item.price):this.item.price=e}}}),watch:{item:{handler:"updateItem",deep:!0},subtotal:function(e){"percentage"===this.item.discount_type&&(this.item.discount_val=this.item.discount*e/100)},modalActive:function(e){e||(this.isSelected=!1)}},validations:function(){return{item:{name:{required:Tn},quantity:{required:Tn,minValue:En(0),maxLength:jn(20)},price:{required:Tn,minValue:En(1),maxLength:jn(20)},discount_val:{between:On(0,this.maxDiscount)},description:{maxLength:jn(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(Sn(Sn({},cn),{},{id:ln.a.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=Sn(Sn({},un),{},{id:this.item.id,taxes:[Sn(Sn({},cn),{},{id:ln.a.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:Sn({},e)}),n++}))}},selectFixed:function(){"fixed"!==this.item.discount_type&&(this.item.discount_val=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:Sn(Sn({},this.item),{},{total:this.total,totalSimpleTax:this.totalSimpleTax,totalCompoundTax:this.totalCompoundTax,totalTax:this.totalTax,tax:this.totalTax,taxes:kn(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)}}},Pn=Object(f.a)(An,(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",{staticClass:"flex items-center px-5 py-1 text-sm font-medium leading-none text-center text-gray-500 whitespace-no-wrap border border-gray-300 border-solid rounded rounded-tl-none rounded-bl-none dropdown-toggle",staticStyle:{height:"43px"},attrs:{slot:"activator",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",variant:"white"},slot:"activator"},[n("span",{staticClass:"flex items-center"},[e._v("\n "+e._s("fixed"==e.item.discount_type?e.currency.symbol:"%")+"\n "),n("chevron-down-icon",{staticClass:"h-5"})],1)]),e._v(" "),n("sw-dropdown-item",{on:{click:e.selectFixed}},[e._v("\n "+e._s(e.$t("general.fixed"))+"\n ")]),e._v(" "),n("sw-dropdown-item",{on:{click:e.selectPercentage}},[e._v("\n "+e._s(e.$t("general.percentage"))+"\n ")])],1)],1)])]):e._e(),e._v(" "),n("td",{staticClass:"px-5 py-4 text-right align-top"},[n("div",{staticClass:"flex items-center justify-end text-sm"},[n("span",[n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(e.total,e.currency))}})]),e._v(" "),n("div",{staticClass:"flex items-center justify-center w-6 h-10 mx-2 cursor-pointer"},[e.showRemoveItemIcon?n("trash-icon",{staticClass:"h-5 text-gray-700",on:{click:e.removeItem}}):e._e()],1)])])]),e._v(" "),"YES"===e.taxPerItem?n("tr",{staticClass:"tax-tr"},[n("td",{staticClass:"px-5 py-4 text-left align-top"}),e._v(" "),n("td",{staticClass:"px-5 py-4 text-left align-top",attrs:{colspan:"4"}},e._l(e.item.taxes,(function(t,r){return n("tax",{key:t.id,attrs:{index:r,"tax-data":t,taxes:e.item.taxes,"discounted-total":e.total,"total-tax":e.totalSimpleTax,total:e.total,currency:e.currency},on:{update:e.updateTax,remove:e.removeTax}})})),1)]):e._e()])])])])}),[],!1,null,null,null).exports;function Yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yn(Object(n),!0).forEach((function(t){In(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function In(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nn={components:{UserIcon:s.K},props:{valid:{type:Object,default:function(){}},customerId:{type:Number,default:null}},computed:$n({},Object(o.c)("invoice",["getTemplateId","selectedCustomer"])),created:function(){this.resetSelectedCustomer(),this.customerId&&this.selectCustomer(this.customerId)},methods:$n($n($n({},Object(o.b)("invoice",["resetSelectedCustomer","selectCustomer"])),Object(o.b)("modal",["openModal"])),{},{editCustomer:function(){this.openModal({title:this.$t("customers.edit_customer"),componentName:"CustomerModal",id:this.selectedCustomer.id,data:this.selectedCustomer})}})},zn=Object(f.a)(Nn,(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-no-wrap"},[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-no-wrap"},[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 Fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fn(Object(n),!0).forEach((function(t){Hn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bn={components:{TrashIcon:s.I},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?(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"}},methods:{updateTax:function(){this.$emit("update",{index:this.index,item:Rn(Rn({},this.tax),{},{amount:this.taxAmount})})}}},qn=Object(f.a)(Bn,(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 Un(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Vn(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 Vn(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 Vn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wn(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Kn(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Wn(i,r,a,o,s,"next",e)}function s(e){Wn(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jn(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){Zn(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 Zn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xn=n("ta7f"),Qn=Xn.required,er=Xn.between,tr=Xn.maxLength,nr=Xn.numeric,rr={mixins:[Be.a],components:{InvoiceItem:Pn,CustomerSelect:zn,Tax:qn,draggable:on.a,PlusSmIcon:l.v,ChevronDownIcon:s.f,PencilIcon:s.z,ShoppingCartIcon:s.F,HashtagIcon:s.t},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:[Jn(Jn({},un),{},{id:ln.a.raw(),taxes:[Jn(Jn({},cn),{},{id:ln.a.raw()})]})],taxes:[]},selectedCurrency:"",taxPerItem:null,discountPerItem:null,isLoadingInvoice:!1,isLoadingData:!1,isLoading:!1,maxDiscount:0,invoicePrefix:null,invoiceNumAttribute:null,InvoiceFields:["customer","customerCustom","company","invoice","invoiceCustom"],customerId:null}},validations:function(){return{newInvoice:{invoice_date:{required:Qn},due_date:{required:Qn},discount_val:{between:er(0,this.subtotal)},reference_number:{maxLength:tr(255)}},selectedCustomer:{required:Qn},invoiceNumAttribute:{required:Qn,numeric:nr}}},computed:Jn(Jn(Jn(Jn(Jn(Jn({},Object(o.c)("company",["itemDiscount"])),Object(o.c)("company",["defaultCurrency"])),Object(o.c)("notes",["notes"])),Object(o.c)("invoice",["getTemplateId","selectedCustomer","selectedNote"])),Object(o.c)("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=100*e,this.newInvoice.discount=e}},totalSimpleTax:function(){return window._.sumBy(this.newInvoice.taxes,(function(e){return e.compound_tax?0:e.amount}))},totalCompoundTax:function(){return 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: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:Jn(Jn(Jn(Jn(Jn(Jn(Jn(Jn({},Object(o.b)("modal",["openModal"])),Object(o.b)("invoice",["addInvoice","fetchInvoice","getInvoiceNumber","selectCustomer","updateInvoice","resetSelectedNote"])),Object(o.b)("invoiceTemplate",["fetchInvoiceTemplates"])),Object(o.b)("company",["fetchCompanySettings"])),Object(o.b)("item",["fetchItems"])),Object(o.b)("taxType",["fetchTaxTypes"])),Object(o.b)("customFields",["fetchCustomFields"])),{},{selectFixed:function(){"fixed"!==this.newInvoice.discount_type&&(this.newInvoice.discount_val=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],Jn({},e.item))},fetchInitialData:function(){var e=this;return Kn(O.a.mark((function t(){var n;return O.a.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=Kn(O.a.mark((function t(n){var r,a,i;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=Un(n,5),r[0],r[1],r[2],a=r[3],i=r[4],!e.isEdit&&i.data&&"YES"===i.data.invoice_auto_generate?a.data&&(e.invoiceNumAttribute=a.data.nextNumber,e.invoicePrefix=a.data.prefix):e.invoicePrefix=a.data.prefix,e.isLoadingData=!1;case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){console.log(e)}));case 7:case"end":return t.stop()}}),t)})))()},loadData:function(){var e=this;return Kn(O.a.mark((function t(){return O.a.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=Kn(O.a.mark((function t(n){var r,a,i,o,s;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=Un(n,2),a=r[0],i=r[1],a.data&&(e.customerId=a.data.invoice.user_id,e.newInvoice=a.data.invoice,e.formData=Jn(Jn({},e.formData),a.data.invoice),e.newInvoice.invoice_date=Jt()(a.data.invoice.invoice_date,"YYYY-MM-DD").toString(),e.newInvoice.due_date=Jt()(a.data.invoice.due_date,"YYYY-MM-DD").toString(),e.discountPerItem=a.data.invoice.discount_per_item,e.selectedCurrency=e.defaultCurrency,e.invoiceNumAttribute=a.data.nextInvoiceNumber,e.invoicePrefix=a.data.invoicePrefix,e.taxPerItem=a.data.invoice.tax_per_item,o=a.data.invoice.fields,i.data&&(s=i.data.customFields.data,e.setEditCustomFields(o,s))),e.isLoadingInvoice=!1;case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){console.log(e)})),t.abrupt("return",!0);case 4:return e.isLoadingInvoice=!0,t.next=7,e.setInitialCustomFields("Invoice");case 7:return t.next=9,e.fetchTaxTypes({limit:"all"});case 9:e.selectedCurrency=e.defaultCurrency,e.newInvoice.invoice_date=Jt()().toString(),e.newInvoice.due_date=Jt()().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(Jn(Jn({},un),{},{id:ln.a.raw(),taxes:[Jn(Jn({},cn),{},{id:ln.a.raw()})]}))},removeItem:function(e){this.newInvoice.items.splice(e,1)},updateItem:function(e){Object.assign(this.newInvoice.items[e.index],Jn({},e.item))},submitForm:function(){var e=this;return Kn(O.a.mark((function t(){var n,r;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.touchCustomField();case 2:if(n=t.sent,e.checkValid()&&!n.error){t.next=5;break}return t.abrupt("return",!1);case 5:if(e.isLoading=!0,e.newInvoice.invoice_number=e.invoicePrefix+"-"+e.invoiceNumAttribute,r=Jn(Jn(Jn({},e.formData),e.newInvoice),{},{sub_total:e.subtotal,total:e.total,tax:e.totalTax,user_id:null,invoice_template_id:e.getTemplateId}),null!=e.selectedCustomer&&(r.user_id=e.selectedCustomer.id),"invoices.edit"!==e.$route.name){t.next=12;break}return e.submitUpdate(r),t.abrupt("return");case 12:e.submitCreate(r);case 13:case"end":return t.stop()}}),t)})))()},submitCreate:function(e){var t=this;this.addInvoice(e).then((function(e){e.data&&(t.$router.push("/admin/invoices/".concat(e.data.invoice.id,"/view")),window.toastr.success(t.$t("invoices.created_message"))),t.isLoading=!1})).catch((function(e){t.isLoading=!1}))},submitUpdate:function(e){var t=this;this.updateInvoice(e).then((function(e){t.isLoading=!1,e.data.success&&(t.$router.push("/admin/invoices/".concat(e.data.invoice.id,"/view")),window.toastr.success(t.$t("invoices.updated_message"))),"invalid_due_amount"===e.data.error&&window.toastr.error(t.$t("invoices.invalid_due_amount_message"))})).catch((function(e){t.isLoading=!1}))},checkItemsData:function(e,t){this.newInvoice.items[e].valid=t},onSelectTax:function(e){var t=0;e.compound_tax&&this.subtotalWithDiscount?t=(this.subtotalWithDiscount+this.totalSimpleTax)*e.percent/100:this.subtotalWithDiscount&&e.percent&&(t=this.subtotalWithDiscount*e.percent/100),this.newInvoice.taxes.push(Jn(Jn({},cn),{},{id:ln.a.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()}})},ar=(n("hEqX"),Object(f.a)(rr,(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:{to:"/admin/dashboard",title:e.$t("general.home")}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{to:"/admin/invoices",title:e.$tc("invoices.invoice",2)}}),e._v(" "),"invoice.edit"===e.$route.name?n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$t("invoices.edit_invoice"),active:""}}):n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$t("invoices.new_invoice"),active:""}})],1),e._v(" "),n("template",{slot:"actions"},["invoices.edit"===e.$route.name?n("sw-button",{staticClass:"mr-3",attrs:{disabled:e.isLoading,"tag-name":"a",href:"/invoices/pdf/"+e.newInvoice.unique_hash,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:{change: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:{change:function(t){return e.$v.newInvoice.due_date.$touch()}},model:{value:e.newInvoice.due_date,callback:function(t){e.$set(e.newInvoice,"due_date",t)},expression:"newInvoice.due_date"}})],1),e._v(" "),n("sw-input-group",{staticClass:"lg:mt-0",attrs:{label:e.$t("invoices.invoice_number"),error:e.invoiceNumError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{prefix:e.invoicePrefix+" - ",invalid:e.$v.invoiceNumAttribute.$error},on:{input:function(t){return e.$v.invoiceNumAttribute.$touch()}},model:{value:e.invoiceNumAttribute,callback:function(t){e.invoiceNumAttribute=t},expression:"invoiceNumAttribute"}},[n("hashtag-icon",{staticClass:"h-4 ml-1 text-gray-500",attrs:{slot:"leftIcon"},slot:"leftIcon"})],1)],1),e._v(" "),n("sw-input-group",{staticClass:"lg:mt-0",attrs:{label:e.$t("invoices.ref_number"),error:e.referenceError}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.newInvoice.reference_number.$error},on:{input:function(t){return e.$v.newInvoice.reference_number.$touch()}},model:{value:e.newInvoice.reference_number,callback:function(t){e.$set(e.newInvoice,"reference_number",t)},expression:"newInvoice.reference_number"}},[n("hashtag-icon",{staticClass:"h-4 ml-1 text-gray-500",attrs:{slot:"leftIcon"},slot:"leftIcon"})],1)],1)],1)],1),e._v(" "),n("table",{staticClass:"w-full text-center item-table"},[n("colgroup",[n("col",{staticStyle:{width:"40%"}}),e._v(" "),n("col",{staticStyle:{width:"10%"}}),e._v(" "),n("col",{staticStyle:{width:"15%"}}),e._v(" "),"YES"===e.discountPerItem?n("col",{staticStyle:{width:"15%"}}):e._e(),e._v(" "),n("col",{staticStyle:{width:"15%"}})]),e._v(" "),n("thead",{staticClass:"bg-white border border-gray-200 border-solid"},[n("tr",[n("th",{staticClass:"px-5 py-3 text-sm not-italic font-medium leading-5 text-left text-gray-700 border-t border-b border-gray-200 border-solid"},[n("span",{staticClass:"pl-12"},[e._v("\n "+e._s(e.$tc("items.item",2))+"\n ")])]),e._v(" "),n("th",{staticClass:"px-5 py-3 text-sm not-italic font-medium leading-5 text-right text-gray-700 border-t border-b border-gray-200 border-solid"},[e._v("\n "+e._s(e.$t("invoices.item.quantity"))+"\n ")]),e._v(" "),n("th",{staticClass:"px-5 py-3 text-sm not-italic font-medium leading-5 text-left text-gray-700 border-t border-b border-gray-200 border-solid"},[e._v("\n "+e._s(e.$t("invoices.item.price"))+"\n ")]),e._v(" "),"YES"===e.discountPerItem?n("th",{staticClass:"px-5 py-3 text-sm not-italic font-medium leading-5 text-left text-gray-700 border-t border-b border-gray-200 border-solid"},[e._v("\n "+e._s(e.$t("invoices.item.discount"))+"\n ")]):e._e(),e._v(" "),n("th",{staticClass:"px-5 py-3 text-sm not-italic font-medium leading-5 text-right text-gray-700 border-t border-b border-gray-200 border-solid"},[n("span",{staticClass:"pr-10"},[e._v("\n "+e._s(e.$t("invoices.item.amount"))+"\n ")])])])]),e._v(" "),n("draggable",{staticClass:"item-body",attrs:{tag:"tbody",handle:".handle"},model:{value:e.newInvoice.items,callback:function(t){e.$set(e.newInvoice,"items",t)},expression:"newInvoice.items"}},e._l(e.newInvoice.items,(function(t,r){return n("invoice-item",{key:t.id,attrs:{index:r,"item-data":t,"invoice-items":e.newInvoice.items,currency:e.currency,"tax-per-item":e.taxPerItem,"discount-per-item":e.discountPerItem},on:{remove:e.removeItem,update:e.updateItem,itemValidate:e.checkItemsData}})})),1)],1),e._v(" "),n("div",{staticClass:"flex items-center justify-center w-full px-6 py-3 text-base border-b border-gray-200 border-solid cursor-pointer text-primary-400 hover:bg-gray-200",on:{click:e.addItem}},[n("shopping-cart-icon",{staticClass:"h-5 mr-2"}),e._v("\n "+e._s(e.$t("invoices.add_item"))+"\n ")],1),e._v(" "),n("div",{staticClass:"block my-10 invoice-foot lg:justify-between lg:flex lg:items-start"},[n("div",{staticClass:"w-full lg:w-1/2"},[n("div",{staticClass:"mb-6"},[n("sw-popup",{ref:"notePopup",staticClass:"text-sm font-semibold leading-5 text-primary-400"},[n("div",{staticClass:"float-right mt-1",attrs:{slot:"activator"},slot:"activator"},[e._v("\n + "+e._s(e.$t("general.insert_note"))+"\n ")]),e._v(" "),n("note-select-popup",{attrs:{type:"Invoice"},on:{select:e.onSelectNote}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("invoices.notes")}},[n("base-custom-input",{attrs:{fields:e.InvoiceFields},model:{value:e.newInvoice.notes,callback:function(t){e.$set(e.newInvoice,"notes",t)},expression:"newInvoice.notes"}})],1)],1),e._v(" "),e.customFields.length>0?n("div",{staticClass:"grid gap-x-4 gap-y-2 md:gap-x-8 md:gap-y-4 grid-col-1 md:grid-cols-2"},e._l(e.customFields,(function(t,r){return n("sw-input-group",{key:r,attrs:{label:t.label,required:!!t.is_required}},[n(t.type+"Field",{tag:"component",attrs:{type:t.type.label,field:t,isEdit: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 lg:w-auto",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",{staticClass:"flex items-center justify-center w-12 border border-gray-300 border-solid rounded-tl-none rounded-bl-none font-base",staticStyle:{height:"43px"},attrs:{slot:"activator",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",variant:"white"},slot:"activator"},[n("span",{staticClass:"flex"},[e._v("\n "+e._s("fixed"==e.newInvoice.discount_type?e.currency.symbol:"%")+"\n "),n("chevron-down-icon",{staticClass:"h-5"})],1)]),e._v(" "),n("sw-dropdown-item",{on:{click:e.selectFixed}},[e._v("\n "+e._s(e.$t("general.fixed"))+"\n ")]),e._v(" "),n("sw-dropdown-item",{on:{click:e.selectPercentage}},[e._v("\n "+e._s(e.$t("general.percentage"))+"\n ")])],1)],1)]):e._e(),e._v(" "),!e.taxPerItem?e._e():n("div",e._l(e.newInvoice.taxes,(function(t,r){return n("tax",{key:t.id,attrs:{index:r,total:e.subtotalWithDiscount,tax:t,taxes:e.newInvoice.taxes,currency:e.currency,"total-tax":e.totalSimpleTax},on:{remove:e.removeInvoiceTax,update:e.updateTax}})})),1),e._v(" "),"NO"===e.taxPerItem||null===e.taxPerItem?n("sw-popup",{ref:"taxModal",staticClass:"my-3 text-sm font-semibold leading-5 text-primary-400"},[n("div",{staticClass:"float-right pt-2 pb-5",attrs:{slot:"activator"},slot:"activator"},[e._v("\n + "+e._s(e.$t("invoices.add_tax"))+"\n ")]),e._v(" "),n("tax-select-popup",{attrs:{taxes:e.newInvoice.taxes},on:{select:e.onSelectTax}})],1):e._e(),e._v(" "),n("div",{staticClass:"flex items-center justify-between w-full pt-2 mt-5 border-t border-gray-200 border-solid"},[n("label",{staticClass:"text-sm font-semibold leading-5 text-gray-500 uppercase"},[e._v("\n "+e._s(e.$t("invoices.total"))+" "+e._s(e.$t("invoices.amount"))+":\n ")]),e._v(" "),n("label",{staticClass:"flex items-center justify-center text-lg uppercase text-primary-400"},[n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(e.total,e.currency))}})])])],2)])],1)],1)}),[],!1,null,null,null).exports);function ir(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function or(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){ir(i,r,a,o,s,"next",e)}function s(e){ir(i,r,a,o,s,"throw",e)}o(void 0)}))}}function sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function 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}var ur=n("LvDl"),dr={components:{DotsHorizontalIcon:s.o,FilterIcon:s.r,SortAscendingIcon:s.G,SortDescendingIcon:s.H,SearchIcon:s.E,LinkIcon:s.u,PencilIcon:s.z,TrashIcon:s.I},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=ur.debounce(this.onSearch,500)},methods:lr(lr(lr({},Object(o.b)("invoice",["fetchInvoices","getRecord","searchInvoice","markAsSent","sendEmail","deleteInvoice","selectInvoice","fetchInvoice"])),Object(o.b)("modal",["openModal"])),{},{hasActiveUrl:function(e){return this.$route.params.id==e},loadInvoices:function(){var e=this;return or(O.a.mark((function t(){var n;return O.a.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 or(O.a.mark((function t(){var n;return O.a.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 or(O.a.mark((function t(){var n,r;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n="",""!==e.searchData.searchText&&null!==e.searchData.searchText&&void 0!==e.searchData.searchText&&(n+="search=".concat(e.searchData.searchText,"&")),null!==e.searchData.orderBy&&void 0!==e.searchData.orderBy&&(n+="orderBy=".concat(e.searchData.orderBy,"&")),null!==e.searchData.orderByField&&void 0!==e.searchData.orderByField&&(n+="orderByField=".concat(e.searchData.orderByField)),e.isSearching=!0,t.next=7,e.searchInvoice(n);case 7:r=t.sent,e.isSearching=!1,r.data&&(e.invoices=r.data.invoices.data);case 10:case"end":return t.stop()}}),t)})))()},sortData:function(){return"asc"===this.searchData.orderBy?(this.searchData.orderBy="desc",this.onSearch(),!0):(this.searchData.orderBy="asc",this.onSearch(),!0)},onMarkAsSent:function(){var e=this;return or(O.a.mark((function t(){return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:window.swal({title:e.$t("general.are_you_sure"),text:e.$t("invoices.invoice_mark_as_sent"),icon:"/assets/icon/check-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=or(O.a.mark((function t(n){var r;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=7;break}return e.isMarkingAsSent=!0,t.next=4,e.markAsSent({id:e.invoice.id,status:"SENT"});case 4:r=t.sent,e.isMarkingAsSent=!1,r.data&&(e.invoice.status="SENT",window.toastr.success(e.$tc("invoices.marked_as_sent_message")));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},onSendInvoice:function(){var e=this;return or(O.a.mark((function t(){return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.openModal({title:e.$t("invoices.send_invoice"),componentName:"SendInvoiceModal",id:e.invoice.id,data:e.invoice});case 1:case"end":return t.stop()}}),t)})))()},copyPdfUrl:function(){var e="".concat(window.location.origin,"/invoices/pdf/").concat(this.invoice.unique_hash);this.$utils.copyTextToClipboard(e);window.toastr.success(this.$t("general.copied_pdf_url_clipboard"))},removeInvoice:function(e){var t=this;return or(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:window.swal({title:t.$t("general.are_you_sure"),text:"you will not be able to recover this invoice!",icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=or(O.a.mark((function n(r){var a;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=5;break}return n.next=3,t.deleteInvoice({ids:[e]});case 3:(a=n.sent).data.success?(window.toastr.success(t.$tc("invoices.deleted_message",1)),t.$router.push("/admin/invoices")):a.data.error&&window.toastr.error(a.data.message);case 5:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()}})},pr=Object(f.a)(dr,(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:{"tag-name":"router-link",to:"/admin/payments/"+e.$route.params.id+"/create",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:{"tag-name":"router-link",to:"/admin/invoices/"+e.$route.params.id+"/edit"}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(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",size:"sm",type:"radio",name:"filter",label:e.$t("invoices.invoice_number"),value:"invoice_number"},on:{change:e.onSearch},model:{value:e.searchData.orderByField,callback:function(t){e.$set(e.searchData,"orderByField",t)},expression:"searchData.orderByField"}})],1)],1)],1),e._v(" "),n("sw-button",{directives:[{name:"tooltip",rawName:"v-tooltip.top-center",value:{content:e.getOrderName},expression:"{ content: getOrderName }",modifiers:{"top-center":!0}}],staticClass:"ml-1",attrs:{size:"md",variant:"gray-light"},on:{click:e.sortData}},[e.getOrderBy?n("sort-ascending-icon",{staticClass:"h-5"}):n("sort-descending-icon",{staticClass:"h-5"})],1)],1)],1),e._v(" "),e.isSearching?n("base-loader",{attrs:{"show-bg-overlay":!0}}):n("div",{staticClass:"h-full pb-32 overflow-y-scroll border-l border-gray-200 border-solid sw-scroll"},[e._l(e.invoices,(function(t,r){return n("router-link",{key:r,class:["flex justify-between p-4 items-center cursor-pointer hover:bg-gray-100 border-l-4 border-transparent",{"bg-gray-100 border-l-4 border-primary-500 border-solid":e.hasActiveUrl(t.id)}],staticStyle:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"},attrs:{to:"/admin/invoices/"+t.id+"/view",id:"invoice-"+t.id}},[n("div",{staticClass:"flex-2"},[n("div",{staticClass:"pr-2 mb-2 text-sm not-italic font-normal leading-5 text-black capitalize truncate"},[e._v("\n "+e._s(t.user.name)+"\n ")]),e._v(" "),n("div",{staticClass:"mt-1 mb-2 text-xs not-italic font-medium leading-5 text-gray-600"},[e._v("\n "+e._s(t.invoice_number)+"\n ")]),e._v(" "),n("sw-badge",{staticClass:"px-1 text-xs",attrs:{"bg-color":e.$utils.getBadgeStatusColor(t.status).bgColor,color:e.$utils.getBadgeStatusColor(t.status).color,"font-size":e.$utils.getBadgeStatusColor(t.status).fontSize}},[e._v("\n "+e._s(t.status)+"\n ")])],1),e._v(" "),n("div",{staticClass:"flex-1 whitespace-no-wrap 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 fr(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function mr(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){fr(i,r,a,o,s,"next",e)}function s(e){fr(i,r,a,o,s,"throw",e)}o(void 0)}))}}function hr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hr(Object(n),!0).forEach((function(t){vr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gr={components:{CapsuleIcon:Object(f.a)({},(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:s.B,FilterIcon:s.r,XIcon:s.N,ChevronDownIcon:s.f,EyeIcon:s.q,PencilIcon:s.z,TrashIcon:s.I},data:function(){return{showFilters:!1,sortedBy:"created_at",isRequestOngoing:!0,filters:{customer:"",payment_mode:"",payment_number:""}}},computed:_r(_r(_r({showEmptyScreen:function(){return!this.totalPayments&&!this.isRequestOngoing},filterIcon:function(){return this.showFilters?"x-icon":"filter-icon"}},Object(o.c)("customer",["customers"])),Object(o.c)("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:_r(_r({},Object(o.b)("payment",["fetchPayments","selectAllPayments","selectPayment","deletePayment","deleteMultiplePayments","setSelectAllState","fetchPaymentModes"])),{},{fetchData:function(e){var t=this;return mr(O.a.mark((function n(){var r,a,i,o;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={customer_id:t.filters.customer?t.filters.customer.id:"",payment_method_id:null!==t.filters.payment_mode?t.filters.payment_mode.id:"",payment_number:t.filters.payment_number,orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},t.isRequestOngoing=!0,n.next=5,t.fetchPayments(i);case 5:return o=n.sent,t.isRequestOngoing=!1,n.abrupt("return",{data:o.data.payments.data,pagination:{totalPages:o.data.payments.last_page,currentPage:r,count:o.data.payments.count}});case 8:case"end":return n.stop()}}),n)})))()},refreshTable:function(){this.$refs.table.refresh()},setFilters:function(){this.refreshTable()},clearFilter:function(){this.filters.customer&&this.$refs.customerSelect.$refs.baseSelect.removeElement(this.filters.customer),this.filters={customer:"",payment_mode:"",payment_number:""}},toggleFilter:function(){this.showFilters&&this.clearFilter(),this.showFilters=!this.showFilters},onSelectCustomer:function(e){this.filters.customer=e},removePayment:function(e){var t=this;return mr(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$tc("payments.confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=mr(O.a.mark((function n(r){var a;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=10;break}return n.next=3,t.deletePayment({ids:[e]});case 3:if(!(a=n.sent).data.success){n.next=8;break}return window.toastr.success(t.$tc("payments.deleted_message",1)),t.$refs.table.refresh(),n.abrupt("return",!0);case 8:return window.toastr.error(a.data.message),n.abrupt("return",!0);case 10:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},removeMultiplePayments:function(){var e=this;return mr(O.a.mark((function t(){return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:swal({title:e.$t("general.are_you_sure"),text:e.$tc("payments.confirm_delete",2),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=mr(O.a.mark((function t(n){var r;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=5;break}return t.next=3,e.deleteMultiplePayments();case 3:(r=t.sent).data.success?(window.toastr.success(e.$tc("payments.deleted_message",2)),e.$refs.table.refresh()):r.data.error&&window.toastr.error(r.data.message);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},clearCustomerSearch:function(e,t){var n=this;return mr(O.a.mark((function e(){return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.filters.customer="",n.refreshTable();case 2:case"end":return e.stop()}}),e)})))()},showModel:function(e){this.selectedRow=e,this.$refs.Delete_modal.open()},removeSelectedItems:function(){var e=this;return mr(O.a.mark((function t(){return O.a.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)})))()}})},yr=Object(f.a)(gr,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-page",{staticClass:"payments"},[n("sw-page-header",{attrs:{title:e.$t("payments.title")}},[n("sw-breadcrumb",{attrs:{slot:"breadcrumbs"},slot:"breadcrumbs"},[n("sw-breadcrumb-item",{attrs:{to:"dashboard",title:e.$t("general.home")}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$tc("payments.payment",2),active:""}})],1),e._v(" "),n("template",{slot:"actions"},[n("sw-button",{directives:[{name:"show",rawName:"v-show",value:e.totalPayments,expression:"totalPayments"}],attrs:{variant:"primary-outline",size:"lg"},on:{click:e.toggleFilter}},[e._v("\n "+e._s(e.$t("general.filter"))+"\n "),n(e.filterIcon,{tag:"component",staticClass:"w-4 h-4 ml-2 -mr-1"})],1),e._v(" "),n("sw-button",{staticClass:"ml-4",attrs:{"tag-name":"router-link",to:"payments/create",variant:"primary",size:"lg"}},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("payments.add_payment"))+"\n ")],1)],1)],2),e._v(" "),n("slide-y-up-transition",[n("sw-filter-wrapper",{directives:[{name:"show",rawName:"v-show",value:e.showFilters,expression:"showFilters"}],staticClass:"mt-3"},[n("sw-input-group",{staticClass:"flex-1 mt-2",attrs:{label:e.$t("payments.customer"),color:"black-light"}},[n("base-customer-select",{ref:"customerSelect",on:{select:e.onSelectCustomer,deselect:e.clearCustomerSearch}})],1),e._v(" "),n("sw-input-group",{staticClass:"flex-1 mt-2 lg:ml-6",attrs:{label:e.$t("payments.payment_number")}},[n("sw-input",{attrs:{placeholder:e.$t(e.payments.payment_number),name:"payment_number"},model:{value:e.filters.payment_number,callback:function(t){e.$set(e.filters,"payment_number",t)},expression:"filters.payment_number"}})],1),e._v(" "),n("sw-input-group",{staticClass:"flex-1 mt-2 lg:ml-6",attrs:{label:e.$t("payments.payment_mode")}},[n("sw-select",{attrs:{options:e.paymentModes,searchable:!0,"show-labels":!1,placeholder:e.$t("payments.payment_mode"),label:"name"},model:{value:e.filters.payment_mode,callback:function(t){e.$set(e.filters,"payment_mode",t)},expression:"filters.payment_mode"}})],1),e._v(" "),n("label",{staticClass:"absolute text-sm leading-snug text-gray-900 cursor-pointer",staticStyle:{top:"10px",right:"15px"},on:{click:e.clearFilter}},[e._v(e._s(e.$t("general.clear_all")))])],1)],1),e._v(" "),e.showEmptyScreen?n("sw-empty-table-placeholder",{attrs:{title:e.$t("payments.no_payments"),description:e.$t("payments.list_of_payments")}},[n("capsule-icon",{staticClass:"mt-5 mb-4"}),e._v(" "),n("sw-button",{attrs:{slot:"actions","tag-name":"router-link",to:"/admin/payments/create",size:"lg",variant:"primary-outline"},slot:"actions"},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("payments.add_new_payment"))+"\n ")],1)],1):e._e(),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.showEmptyScreen,expression:"!showEmptyScreen"}],staticClass:"relative table-container"},[n("div",{staticClass:"relative flex items-center justify-between h-10 mt-5 list-none border-b-2 border-gray-200 border-solid"},[n("p",{staticClass:"text-sm"},[e._v("\n "+e._s(e.$t("general.showing"))+": "),n("b",[e._v(e._s(e.payments.length))]),e._v("\n "+e._s(e.$t("general.of"))+" "),n("b",[e._v(e._s(e.totalPayments))])]),e._v(" "),n("sw-transition",{attrs:{type:"fade"}},[e.selectedPayments.length?n("sw-dropdown",[n("span",{staticClass:"flex block text-sm font-medium cursor-pointer select-none text-primary-400",attrs:{slot:"activator"},slot:"activator"},[e._v("\n "+e._s(e.$t("general.actions"))+"\n "),n("chevron-down-icon",{staticClass:"h-5"})],1),e._v(" "),n("sw-dropdown-item",{on:{click:e.removeMultiplePayments}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1):e._e()],1)],1),e._v(" "),n("div",{staticClass:"absolute z-10 items-center pl-4 mt-2 select-none md:mt-12"},[n("sw-checkbox",{staticClass:"hidden md:inline",attrs:{variant:"primary",size:"sm"},on:{change:e.selectAllPayments},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}}),e._v(" "),n("sw-checkbox",{staticClass:"md:hidden",attrs:{label:e.$t("general.select_all"),variant:"primary",size:"sm"},on:{change:e.selectAllPayments},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}})],1),e._v(" "),n("sw-table-component",{ref:"table",attrs:{data:e.fetchData,"show-filter":!1,"table-class":"table"}},[n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"no-click"},scopedSlots:e._u([{key:"default",fn:function(t){return n("div",{staticClass:"relative block"},[n("sw-checkbox",{attrs:{id:t.id,value:t.id,variant:"primary",size:"sm"},model:{value:e.selectField,callback:function(t){e.selectField=t},expression:"selectField"}})],1)}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("payments.date"),"sort-as":"payment_date",show:"formattedPaymentDate"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("payments.payment_number"),show:"payment_number"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("payments.payment_number")))]),e._v(" "),n("router-link",{staticClass:"font-medium text-primary-500",attrs:{to:{path:"payments/"+t.id+"/view"}}},[e._v("\n "+e._s(t.payment_number)+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("payments.customer"),show:"name"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("payments.payment_mode"),show:"payment_mode"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("payments.payment_mode")))]),e._v(" "),n("span",[e._v("\n "+e._s(t.payment_mode?t.payment_mode:"Not selected")+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("payments.invoice"),"sort-as":"invoice_id",show:"invoice_number"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("invoices.invoice_number")))]),e._v(" "),n("span",[e._v("\n "+e._s(t.invoice_number?t.invoice_number:"No Invoice")+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("payments.amount")},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("payments.amount")))]),e._v(" "),n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(t.amount,t.user.currency))}})]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"action-dropdown"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("payments.action")))]),e._v(" "),n("sw-dropdown",[n("dot-icon",{attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"payments/"+t.id+"/edit"}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"payments/"+t.id+"/view"}},[n("eye-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.view"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.removePayment(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)]}}])})],1)],1)],1)}),[],!1,null,null,null).exports;function br(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function wr(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){br(i,r,a,o,s,"next",e)}function s(e){br(i,r,a,o,s,"throw",e)}o(void 0)}))}}function xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xr(Object(n),!0).forEach((function(t){Dr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mr=n("ta7f"),Sr=Mr.required,Cr=Mr.between,Lr=Mr.numeric,Tr={mixins:[Be.a],components:{ShoppingCartIcon:s.F},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:Sr},formData:{payment_date:{required:Sr},amount:{required:Sr,between:Cr(1,this.maxPayableAmount+1)}},paymentNumAttribute:{required:Sr,numeric:Lr}}},computed:kr(kr(kr(kr({},Object(o.c)("company",["defaultCurrencyForInput"])),Object(o.c)("payment",["paymentModes","selectedNote"])),Object(o.c)("customer",["customers"])),{},{amount:{get:function(){return this.formData.amount/100},set:function(e){this.formData.amount=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 wr(O.a.mark((function t(){return O.a.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:kr(kr(kr(kr(kr(kr({},Object(o.b)("invoice",["fetchInvoice","fetchInvoices"])),Object(o.b)("payment",["addPayment","updatePayment","fetchPayment","fetchPaymentModes","resetSelectedNote"])),Object(o.b)("company",["fetchCompanySettings"])),Object(o.b)("modal",["openModal"])),Object(o.b)("customer",["fetchCustomers"])),{},{invoiceWithAmount:function(e){var t=e.invoice_number,n=e.due_amount;return"".concat(t," (").concat(this.$utils.formatGraphMoney(n,this.customer.currency),")")},addPaymentMode:function(){var e=this;return wr(O.a.mark((function t(){return O.a.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 wr(O.a.mark((function t(){var n,r;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchCompanySettings(["payment_auto_generate"]);case 2:return n=t.sent,t.next=5,axios.get("/api/v1/next-number?key=payment");case 5:if(r=t.sent,!n.data||"YES"!==n.data.payment_auto_generate){t.next=13;break}if(!r.data){t.next=11;break}return e.paymentNumAttribute=r.data.nextNumber,e.paymentPrefix=r.data.prefix,t.abrupt("return",!0);case 11:t.next=14;break;case 13:e.paymentPrefix=r.data.prefix;case 14:case"end":return t.stop()}}),t)})))()},loadData:function(){var e=this;return wr(O.a.mark((function t(){var n,r;return O.a.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=kr(kr({},e.formData),n.data.payment),e.customer=n.data.payment.user,e.formData.payment_date=Jt()(n.data.payment.payment_date,"YYYY-MM-DD").toString(),e.formData.amount=parseFloat(n.data.payment.amount),e.paymentPrefix=n.data.payment_prefix,e.paymentNumAttribute=n.data.nextPaymentNumber,e.formData.payment_method=n.data.payment.payment_method,null!==n.data.payment.invoice&&(e.maxPayableAmount=parseInt(n.data.payment.amount)+parseInt(n.data.payment.invoice.due_amount),e.invoice=n.data.payment.invoice),t.next=15,e.fetchCustomFields({type:"Payment",limit:"all"});case 15:if(r=t.sent,e.setEditCustomFields(n.data.payment.fields,r.data.customFields.data),!e.formData.payment_method_id){t.next=20;break}return t.next=20,e.fetchPaymentModes({limit:"all"});case 20:if(!e.formData.user_id){t.next=23;break}return t.next=23,e.fetchCustomers({limit:"all"});case 23:e.isRequestOnGoing=!1,t.next=35;break;case 26:return e.isRequestOnGoing=!0,e.checkAutoGenerate(),e.setInitialCustomFields("Payment"),e.formData.payment_date=Jt()().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 wr(O.a.mark((function t(){var n;return O.a.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 wr(O.a.mark((function n(){var r;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.fetchInvoice(e);case 2:r=n.sent,t.formData.amount=r.data.invoice.due_amount,t.maxPayableAmount=r.data.invoice.due_amount;case 5:case"end":return n.stop()}}),n)})))()},fetchCustomerInvoices:function(e){var t=this;return wr(O.a.mark((function n(){var r,a;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r={customer_id:e,status:"UNPAID"},n.next=3,t.fetchInvoices(r);case 3:a=n.sent,t.invoiceList=a.data.invoices.data;case 5:case"end":return n.stop()}}),n)})))()},submitPaymentData:function(){var e=this;return wr(O.a.mark((function t(){var n,r,a,i,o;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.touchCustomField();case 2:if(n=t.sent,e.$v.customer.$touch(),e.$v.formData.$touch(),!e.$v.$invalid&&!n.error){t.next=7;break}return t.abrupt("return",!0);case 7:if(e.formData.payment_number=e.paymentPrefix+"-"+e.paymentNumAttribute,!e.isEdit){t.next=35;break}return r={editData:kr(kr({},e.formData),{},{payment_method_id:e.formData.payment_method?e.formData.payment_method.id:null,payment_date:Jt()(e.formData.payment_date).format("YYYY-MM-DD")}),id:e.$route.params.id},t.prev=10,e.isLoading=!0,t.next=14,e.updatePayment(r);case 14:if(!(a=t.sent).data.success){t.next=20;break}return e.isLoading=!1,e.$router.push("/admin/payments/".concat(a.data.payment.id,"/view")),window.toastr.success(e.$t("payments.updated_message")),t.abrupt("return",!0);case 20:if("invalid_amount"!==a.data.error){t.next=23;break}return window.toastr.error(e.$t("invalid_amount_message")),t.abrupt("return",!1);case 23:window.toastr.error(a.data.error),t.next=33;break;case 26:if(t.prev=26,t.t0=t.catch(10),e.isLoading=!1,!t.t0.response.data.errors.payment_number){t.next=32;break}return window.toastr.error(t.t0.response.data.errors.payment_number),t.abrupt("return",!0);case 32:window.toastr.error(t.t0.response.data.message);case 33:t.next=59;break;case 35:return i=kr(kr({},e.formData),{},{payment_method_id:e.formData.payment_method?e.formData.payment_method.id:null,payment_date:Jt()(e.formData.payment_date).format("YYYY-MM-DD")}),e.isLoading=!0,t.prev=37,t.next=40,e.addPayment(i);case 40:if(!(o=t.sent).data.success){t.next=46;break}return e.$router.push("/admin/payments/".concat(o.data.payment.id,"/view")),window.toastr.success(e.$t("payments.created_message")),e.isLoading=!0,t.abrupt("return",!0);case 46:if("invalid_amount"!==o.data.error){t.next=49;break}return window.toastr.error(e.$t("invalid_amount_message")),t.abrupt("return",!1);case 49:window.toastr.error(o.data.error),t.next=59;break;case 52:if(t.prev=52,t.t1=t.catch(37),e.isLoading=!1,!t.t1.response.data.errors.payment_number){t.next=58;break}return window.toastr.error(t.t1.response.data.errors.payment_number),t.abrupt("return",!0);case 58:window.toastr.error(t.t1.response.data.message);case 59:case"end":return t.stop()}}),t,null,[[10,26],[37,52]])})))()},onSelectNote:function(e){this.formData.notes=""+e.notes,this.$refs.notePopup.close()}})},Er=Object(f.a)(Tr,(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:{to:"/admin/dashboard",title:e.$t("general.home")}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{to:"/admin/payments",title:e.$tc("payments.payment",2)}}),e._v(" "),"payments.edit"===e.$route.name?n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$t("payments.edit_payment"),active:""}}):n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$t("payments.new_payment"),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:{change: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"),label:"name",maxHeight:150},model:{value:e.formData.payment_method,callback:function(t){e.$set(e.formData,"payment_method",t)},expression:"formData.payment_method"}},[n("div",{attrs:{slot:"afterList"},slot:"afterList"},[n("button",{staticClass:"flex items-center justify-center w-full px-2 py-2 bg-gray-200 border-none outline-none text-primary-400",attrs:{type:"button"},on:{click:e.addPaymentMode}},[n("shopping-cart-icon",{staticClass:"h-5 mr-3 text-primary-400"}),e._v(" "),n("label",[e._v(e._s(e.$t("settings.customization.payments.add_payment_mode")))])],1)])])],1)],1),e._v(" "),e.customFields.length>0?n("div",[n("div",{staticClass:"grid gap-6 mt-6 grid-col-1 md:grid-cols-2"},e._l(e.customFields,(function(t,r){return n("sw-input-group",{key:r,attrs:{label:t.label,required:!!t.is_required}},[n(t.type+"Field",{tag:"component",attrs:{type:t.type.label,field:t,isEdit: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 Or(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function jr(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Or(i,r,a,o,s,"next",e)}function s(e){Or(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ar(Object(n),!0).forEach((function(t){Yr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $r=n("LvDl"),Ir={components:{DotsHorizontalIcon:s.o,FilterIcon:s.r,SortAscendingIcon:s.G,SortDescendingIcon:s.H,SearchIcon:s.E,TrashIcon:s.I,PencilIcon:s.z,LinkIcon:s.u},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=$r.debounce(this.onSearch,500)},methods:Pr(Pr(Pr({},Object(o.b)("payment",["fetchPayments","fetchPayment","sendEmail","deletePayment","searchPayment"])),Object(o.b)("modal",["openModal"])),{},{hasActiveUrl:function(e){return this.$route.params.id==e},loadPayments:function(){var e=this;return jr(O.a.mark((function t(){var n;return O.a.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 jr(O.a.mark((function t(){var n;return O.a.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 jr(O.a.mark((function t(){var n,r;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n="",""!==e.searchData.searchText&&null!==e.searchData.searchText&&void 0!==e.searchData.searchText&&(n+="search=".concat(e.searchData.searchText,"&")),null!==e.searchData.orderBy&&void 0!==e.searchData.orderBy&&(n+="orderBy=".concat(e.searchData.orderBy,"&")),null!==e.searchData.orderByField&&void 0!==e.searchData.orderByField&&(n+="orderByField=".concat(e.searchData.orderByField)),e.isSearching=!0,t.next=7,e.searchPayment(n);case 7:r=t.sent,e.isSearching=!1,r.data&&(e.payments=r.data.payments.data);case 10:case"end":return t.stop()}}),t)})))()},sortData:function(){return"asc"===this.searchData.orderBy?(this.searchData.orderBy="desc",this.onSearch(),!0):(this.searchData.orderBy="asc",this.onSearch(),!0)},onPaymentSend:function(){var e=this;return jr(O.a.mark((function t(){return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.openModal({title:e.$t("payments.send_payment"),componentName:"SendPaymentModal",id:e.payment.id,data:e.payment,variant:"lg"});case 1:case"end":return t.stop()}}),t)})))()},copyPdfUrl:function(){var e="".concat(window.location.origin,"/payments/pdf/").concat(this.payment.unique_hash);this.$utils.copyTextToClipboard(e);window.toastr.success(this.$t("general.copied_pdf_url_clipboard"))},removePayment:function(e){var t=this;return jr(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.id=e,window.swal({title:t.$t("general.are_you_sure"),text:"you will not be able to recover this payment!",icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=jr(O.a.mark((function n(r){var a;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=5;break}return n.next=3,t.deletePayment({ids:[e]});case 3:(a=n.sent).data.success?(window.toastr.success(t.$tc("payments.deleted_message",1)),t.$router.push("/admin/payments")):a.data.error&&window.toastr.error(a.data.message);case 5:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 2:case"end":return n.stop()}}),n)})))()}})},Nr=Object(f.a)(Ir,(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:{"tag-name":"router-link",to:"/admin/payments/"+e.$route.params.id+"/edit"}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(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:{label:e.$t("invoices.title"),size:"sm",id:"filter_invoice_number",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:{label:e.$t("payments.date"),size:"sm",id:"filter_payment_date",name:"filter",value:"payment_date"},on:{change:e.onSearch},model:{value:e.searchData.orderByField,callback:function(t){e.$set(e.searchData,"orderByField",t)},expression:"searchData.orderByField"}})],1)],1),e._v(" "),n("sw-dropdown-item",{staticClass:"flex cursor-pointer"},[n("sw-input-group",{staticClass:"-mt-3 font-normal"},[n("sw-radio",{attrs:{id:"filter_payment_number",label:e.$t("payments.payment_number"),size:"sm",name:"filter",value:"payment_number"},on:{change:e.onSearch},model:{value:e.searchData.orderByField,callback:function(t){e.$set(e.searchData,"orderByField",t)},expression:"searchData.orderByField"}})],1)],1)],1),e._v(" "),n("sw-button",{directives:[{name:"tooltip",rawName:"v-tooltip.top-center",value:{content:e.getOrderName},expression:"{ content: getOrderName }",modifiers:{"top-center":!0}}],staticClass:"ml-1",attrs:{size:"md",variant:"gray-light"},on:{click:e.sortData}},[e.getOrderBy?n("sort-ascending-icon",{staticClass:"h-5"}):n("sort-descending-icon",{staticClass:"h-5"})],1)],1)],1),e._v(" "),e.isSearching?n("base-loader",{attrs:{"show-bg-overlay":!0}}):n("div",{staticClass:"h-full pb-32 overflow-y-scroll border-l border-gray-200 border-solid sw-scroll"},[e._l(e.payments,(function(t,r){return n("router-link",{key:r,class:["flex justify-between p-4 items-center cursor-pointer hover:bg-gray-100 border-l-4 border-transparent",{"bg-gray-100 border-l-4 border-primary-500 border-solid":e.hasActiveUrl(t.id)}],staticStyle:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"},attrs:{to:"/admin/payments/"+t.id+"/view",id:"payment-"+t.id}},[n("div",{staticClass:"flex-2"},[n("div",{staticClass:"pr-2 mb-2 text-sm not-italic font-normal leading-5 text-black capitalize truncate"},[e._v("\n "+e._s(t.user.name)+"\n ")]),e._v(" "),n("div",{staticClass:"mb-1 text-xs not-italic font-medium leading-5 text-gray-500 capitalize"},[e._v("\n "+e._s(t.payment_number)+"\n ")]),e._v(" "),n("div",{staticClass:"mb-1 text-xs not-italic font-medium leading-5 text-gray-500 capitalize"},[e._v("\n "+e._s(t.invoice_number)+"\n ")])]),e._v(" "),n("div",{staticClass:"flex-1 whitespace-no-wrap 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 zr(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Fr(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){zr(i,r,a,o,s,"next",e)}function s(e){zr(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hr(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){Br(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 Br(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qr={components:{MoonWalkerIcon:Kt,DotsHorizontalIcon:l.m,PlusIcon:s.B,FilterIcon:s.r,XIcon:s.N,ChevronDownIcon:s.f,PencilIcon:s.z,TrashIcon:s.I,CheckCircleIcon:s.d,PaperAirplaneIcon:s.x,DocumentTextIcon:s.n,XCircleIcon:s.M,EyeIcon:s.q,HashtagIcon:s.t},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:Hr(Hr(Hr({showEmptyScreen:function(){return!this.totalEstimates&&!this.isRequestOngoing},filterIcon:function(){return this.showFilters?"x-icon":"filter-icon"}},Object(o.c)("customer",["customers"])),Object(o.c)("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:Hr(Hr(Hr({},Object(o.b)("estimate",["fetchEstimates","resetSelectedEstimates","getRecord","selectEstimate","selectAllEstimates","deleteEstimate","deleteMultipleEstimates","markAsSent","convertToInvoice","setSelectAllState","markAsAccepted","markAsRejected","sendEmail"])),Object(o.b)("modal",["openModal"])),{},{refreshTable:function(){this.$refs.table.refresh()},fetchData:function(e){var t=this;return Fr(O.a.mark((function n(){var r,a,i,o;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={customer_id:""===t.filters.customer?t.filters.customer:t.filters.customer.id,status:t.filters.status,from_date:t.filters.from_date,to_date:t.filters.to_date,estimate_number:t.filters.estimate_number,orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},t.isRequestOngoing=!0,n.next=5,t.fetchEstimates(i);case 5:return o=n.sent,t.isRequestOngoing=!1,t.currency=o.data.currency,n.abrupt("return",{data:o.data.estimates.data,pagination:{totalPages:o.data.estimates.last_page,currentPage:r,count:o.data.estimates.count}});case 9:case"end":return n.stop()}}),n)})))()},setStatusFilter:function(e){if(this.activeTab==e.title)return!0;switch(this.activeTab=e.title,e.title){case this.$t("general.draft"):this.filters.status="DRAFT";break;case this.$t("general.sent"):this.filters.status="SENT";break;default:this.filters.status=""}},onMarkAsAccepted:function(e){var t=this;return Fr(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$t("estimates.confirm_mark_as_accepted"),icon:"/assets/icon/check-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Fr(O.a.mark((function n(r){var a;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=6;break}return a={id:e,status:"ACCEPTED"},n.next=4,t.markAsAccepted(a);case 4:n.sent.data&&(t.$refs.table.refresh(),window.toastr.success(t.$tc("estimates.marked_as_accepted_message")));case 6:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},onMarkAsRejected:function(e){var t=this;return Fr(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$t("estimates.confirm_mark_as_rejected"),icon:"/assets/icon/times-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Fr(O.a.mark((function n(r){var a;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=6;break}return a={id:e,status:"REJECTED"},n.next=4,t.markAsRejected(a);case 4:n.sent.data&&(t.$refs.table.refresh(),window.toastr.success(t.$tc("estimates.marked_as_rejected_message")));case 6:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},setFilters:function(){this.resetSelectedEstimates(),this.$refs.table.refresh()},clearFilter:function(){this.filters.customer&&this.$refs.customerSelect.$refs.baseSelect.removeElement(this.filters.customer),this.filters={customer:"",status:"",from_date:"",to_date:"",estimate_number:""},this.activeTab=this.$t("general.all")},toggleFilter:function(){this.showFilters&&this.clearFilter(),this.showFilters=!this.showFilters},onSelectCustomer:function(e){this.filters.customer=e},removeEstimate:function(e){var t=this;return Fr(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.id=e,swal({title:t.$t("general.are_you_sure"),text:t.$tc("estimates.confirm_delete",1),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var e=Fr(O.a.mark((function e(n){var r;return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n){e.next=5;break}return e.next=3,t.deleteEstimate({ids:[t.id]});case 3:(r=e.sent).data.success?(t.$refs.table.refresh(),t.resetSelectedEstimates(),window.toastr.success(t.$tc("estimates.deleted_message",1))):r.data.error&&window.toastr.error(r.data.message);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return n.stop()}}),n)})))()},convertInToinvoice:function(e){var t=this;return Fr(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$t("estimates.confirm_conversion"),icon:"/assets/icon/file-alt-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Fr(O.a.mark((function n(r){var a;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=5;break}return n.next=3,t.convertToInvoice(e);case 3:(a=n.sent).data?(window.toastr.success(t.$t("estimates.conversion_message")),t.$router.push("invoices/".concat(a.data.invoice.id,"/edit"))):a.data.error&&window.toastr.error(a.data.message);case 5:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},removeMultipleEstimates:function(){var e=this;return Fr(O.a.mark((function t(){return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:swal({title:e.$t("general.are_you_sure"),text:e.$tc("estimates.confirm_delete",2),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=Fr(O.a.mark((function t(n){var r;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=5;break}return t.next=3,e.deleteMultipleEstimates();case 3:(r=t.sent).data.success?(e.$refs.table.refresh(),e.resetSelectedEstimates(),window.toastr.success(e.$tc("estimates.deleted_message",2))):r.data.error&&window.toastr.error(r.data.message);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},clearCustomerSearch:function(e,t){var n=this;return Fr(O.a.mark((function e(){return O.a.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 Fr(O.a.mark((function e(){return O.a.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 Fr(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$t("estimates.confirm_mark_as_sent"),icon:"/assets/icon/check-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Fr(O.a.mark((function n(r){var a,i;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=7;break}return a={id:e,status:"SENT"},n.next=4,t.markAsSent(a);case 4:i=n.sent,t.refreshTable(),i.data&&window.toastr.success(t.$tc("estimates.mark_as_sent_successfully"));case 7:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},sendEstimate:function(e){var t=this;return Fr(O.a.mark((function n(){return O.a.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")}}})},Ur=Object(f.a)(qr,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-page",[n("sw-page-header",{attrs:{title:e.$t("estimates.title")}},[n("sw-breadcrumb",{attrs:{slot:"breadcrumbs"},slot:"breadcrumbs"},[n("sw-breadcrumb-item",{attrs:{to:"dashboard",title:e.$t("general.home")}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$tc("estimates.estimate",2),active:""}})],1),e._v(" "),n("template",{slot:"actions"},[n("sw-button",{directives:[{name:"show",rawName:"v-show",value:e.totalEstimates,expression:"totalEstimates"}],attrs:{size:"lg",variant:"primary-outline"},on:{click:e.toggleFilter}},[e._v("\n "+e._s(e.$t("general.filter"))+"\n "),n(e.filterIcon,{tag:"component",staticClass:"w-4 h-4 ml-2 -mr-1"})],1),e._v(" "),n("sw-button",{staticClass:"ml-4",attrs:{"tag-name":"router-link",to:"estimates/create",size:"lg",variant:"primary"}},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("estimates.new_estimate"))+"\n ")],1)],1)],2),e._v(" "),n("slide-y-up-transition",[n("sw-filter-wrapper",{directives:[{name:"show",rawName:"v-show",value:e.showFilters,expression:"showFilters"}],staticClass:"relative grid grid-flow-col grid-rows"},[n("sw-input-group",{staticClass:"mt-2",attrs:{label:e.$tc("customers.customer",1)}},[n("base-customer-select",{ref:"customerSelect",on:{select:e.onSelectCustomer,deselect:e.clearCustomerSearch}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-2 xl:mx-8",attrs:{label:e.$t("estimates.status")}},[n("sw-select",{attrs:{options:e.status,searchable:!0,"show-labels":!1,"allow-empty":!1,placeholder:e.$t("general.select_a_status")},on:{select:e.setActiveTab,remove:function(t){return e.clearStatusSearch()}},model:{value:e.filters.status,callback:function(t){e.$set(e.filters,"status",t)},expression:"filters.status"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-2",attrs:{label:e.$t("general.from"),color:"black-light"}},[n("base-date-picker",{attrs:{"calendar-button":!0,"calendar-button-icon":"calendar"},model:{value:e.filters.from_date,callback:function(t){e.$set(e.filters,"from_date",t)},expression:"filters.from_date"}})],1),e._v(" "),n("div",{staticClass:"hidden w-8 h-0 mx-4 border border-gray-400 border-solid xl:block",staticStyle:{"margin-top":"3.5rem"}}),e._v(" "),n("sw-input-group",{staticClass:"mt-2",attrs:{label:e.$t("general.to"),color:"black-light"}},[n("base-date-picker",{attrs:{"calendar-button":!0,"calendar-button-icon":"calendar"},model:{value:e.filters.to_date,callback:function(t){e.$set(e.filters,"to_date",t)},expression:"filters.to_date"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-2 xl:ml-8",attrs:{label:e.$t("estimates.estimate_number"),color:"black-light"}},[n("sw-input",{model:{value:e.filters.estimate_number,callback:function(t){e.$set(e.filters,"estimate_number",t)},expression:"filters.estimate_number"}},[n("hashtag-icon",{staticClass:"h-5 ml-1 text-gray-500",attrs:{slot:"leftIcon"},slot:"leftIcon"})],1)],1),e._v(" "),n("label",{staticClass:"absolute text-sm leading-snug text-black cursor-pointer",staticStyle:{top:"10px",right:"15px"},on:{click:e.clearFilter}},[e._v(e._s(e.$t("general.clear_all")))])],1)],1),e._v(" "),n("sw-empty-table-placeholder",{directives:[{name:"show",rawName:"v-show",value:e.showEmptyScreen,expression:"showEmptyScreen"}],attrs:{title:e.$t("estimates.no_estimates"),description:e.$t("estimates.list_of_estimates")}},[n("moon-walker-icon",{staticClass:"mt-5 mb-4"}),e._v(" "),n("sw-button",{attrs:{slot:"actions","tag-name":"router-link",to:"/admin/estimates/create",size:"lg",variant:"primary-outline"},slot:"actions"},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("estimates.add_new_estimate"))+"\n ")],1)],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.showEmptyScreen,expression:"!showEmptyScreen"}],staticClass:"relative"},[n("div",{staticClass:"relative mt-5"},[n("p",{staticClass:"absolute right-0 m-0 text-sm",staticStyle:{top:"50px"}},[e._v("\n "+e._s(e.$t("general.showing"))+": "),n("b",[e._v(e._s(e.estimates.length))]),e._v("\n "+e._s(e.$t("general.of"))+" "),n("b",[e._v(e._s(e.totalEstimates))])]),e._v(" "),n("sw-tabs",{staticClass:"mb-10",attrs:{"active-tab":e.activeTab},on:{update:e.setStatusFilter}},[n("sw-tab-item",{attrs:{title:e.$t("general.draft"),filter:"DRAFT"}}),e._v(" "),n("sw-tab-item",{attrs:{title:e.$t("general.sent"),filter:"SENT"}}),e._v(" "),n("sw-tab-item",{attrs:{title:e.$t("general.all"),filter:""}})],1),e._v(" "),n("sw-transition",{attrs:{type:"fade"}},[e.selectedEstimates.length?n("sw-dropdown",{staticClass:"absolute float-right",staticStyle:{"margin-top":"-70px"}},[n("span",{staticClass:"flex block text-sm font-medium cursor-pointer select-none text-primary-400",attrs:{slot:"activator"},slot:"activator"},[e._v("\n "+e._s(e.$t("general.actions"))+"\n "),n("chevron-down-icon",{staticClass:"h-5"})],1),e._v(" "),n("sw-dropdown-item",{on:{click:e.removeMultipleEstimates}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1):e._e()],1)],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.estimates&&e.estimates.length,expression:"estimates && estimates.length"}],staticClass:"absolute z-10 items-center pl-4 mt-2 select-none md:mt-6"},[n("sw-checkbox",{staticClass:"hidden md:inline",attrs:{variant:"primary",size:"sm"},on:{change:e.selectAllEstimates},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}}),e._v(" "),n("sw-checkbox",{staticClass:"md:hidden",attrs:{label:e.$t("general.select_all"),variant:"primary",size:"sm"},on:{change:e.selectAllEstimates},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}})],1),e._v(" "),n("sw-table-component",{ref:"table",attrs:{"show-filter":!1,data:e.fetchData,"table-class":"table"}},[n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"no-click"},scopedSlots:e._u([{key:"default",fn:function(t){return n("div",{staticClass:"flex items-center"},[n("sw-checkbox",{attrs:{id:t.id,value:t.id,variant:"primary",size:"sm"},model:{value:e.selectField,callback:function(t){e.selectField=t},expression:"selectField"}})],1)}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("estimates.date"),"sort-as":"estimate_date",show:"formattedEstimateDate"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$tc("estimates.estimate",1),show:"estimate_number"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$tc("estimates.estimate",1)))]),e._v(" "),n("router-link",{staticClass:"font-medium text-primary-500",attrs:{to:{path:"estimates/"+t.id+"/view"}}},[e._v("\n "+e._s(t.estimate_number)+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("estimates.customer"),"sort-as":"name",show:"name"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("estimates.status"),show:"status"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(" "+e._s(e.$t("estimates.status")))]),e._v(" "),n("sw-badge",{staticClass:"px-3 py-1",attrs:{"bg-color":e.$utils.getBadgeStatusColor(t.status).bgColor,color:e.$utils.getBadgeStatusColor(t.status).color}},[e._v("\n "+e._s(t.status)+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("invoices.total"),"sort-as":"total"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(" "+e._s(e.$t("estimates.total")))]),e._v(" "),n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(t.total,t.user.currency))}})]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"action-dropdown"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(" "+e._s(e.$t("estimates.action"))+" ")]),e._v(" "),n("sw-dropdown",{attrs:{containerClass:"w-56"}},[n("dot-icon",{attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"estimates/"+t.id+"/edit"}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.removeEstimate(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"estimates/"+t.id+"/view"}},[n("eye-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.view"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.convertInToinvoice(t.id)}}},[n("document-text-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("estimates.convert_to_invoice"))+"\n ")],1),e._v(" "),"SENT"!==t.status?n("sw-dropdown-item",{on:{click:function(n){return e.onMarkAsSent(t.id)}}},[n("check-circle-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("estimates.mark_as_sent"))+"\n ")],1):e._e(),e._v(" "),"SENT"!==t.status?n("sw-dropdown-item",{on:{click:function(n){return e.sendEstimate(t)}}},[n("paper-airplane-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("estimates.send_estimate"))+"\n ")],1):e._e(),e._v(" "),"SENT"==t.status||"VIEWED"==t.status?n("sw-dropdown-item",{on:{click:function(n){return e.sendEstimate(t)}}},[n("paper-airplane-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("estimates.resend_estimate"))+"\n ")],1):e._e(),e._v(" "),"ACCEPTED"!==t.status?n("sw-dropdown-item",{on:{click:function(n){return e.onMarkAsAccepted(t.id)}}},[n("check-circle-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("estimates.mark_as_accepted"))+"\n ")],1):e._e(),e._v(" "),"REJECTED"!==t.status?n("sw-dropdown-item",{on:{click:function(n){return e.onMarkAsRejected(t.id)}}},[n("x-circle-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("estimates.mark_as_rejected"))+"\n ")],1):e._e()],1)]}}])})],1)],1)],1)}),[],!1,null,null,null).exports,Vr={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 Wr(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Kr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kr(Object(n),!0).forEach((function(t){Jr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zr=n("ta7f").maxLength,Xr={components:{XCircleIcon:s.M,ShoppingCartIcon:s.F},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:Zr(255)}}}},computed:Gr({},Object(o.c)("item",["items"])),watch:{invalidDescription:function(e){console.log(e)}},methods:Gr(Gr(Gr({},Object(o.b)("modal",["openModal"])),Object(o.b)("item",["fetchItems"])),{},{searchItems:function(e){var t,n=this;return(t=O.a.mark((function t(){var r;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={search:e,filter:{name:e,unit:"",price:""},orderByField:"",orderBy:"",page:1},n.item&&(r.item_id=n.item.item_id),n.loading=!0,t.next=5,n.fetchItems(r);case 5:n.loading=!1;case 6:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,a){var i=t.apply(e,n);function o(e){Wr(i,r,a,o,s,"next",e)}function s(e){Wr(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onTextChange:function(e){this.searchItems(e),this.$emit("search",e)},openItemModal:function(){this.$emit("onSelectItem"),this.openModal({title:this.$t("items.add_item"),componentName:"ItemModal",data:{taxPerItem:this.taxPerItem,taxes:this.taxes}})},onSelect:function(e){this.$emit("select",e),this.fetchItems()},deselectItem:function(){this.itemSelect=null,this.$emit("deselect")}})},Qr=Object(f.a)(Xr,(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 ea(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ta(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ea(Object(n),!0).forEach((function(t){na(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ea(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function na(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ra={components:{CheckCircleIcon:s.d,TrashIcon:s.I},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:ta({},this.taxData),selectedTax:null}},computed:ta(ta({},Object(o.c)("taxType",["taxTypes"])),{},{filteredTypes:function(){var e=this;return this.taxTypes.map((function(e){return ta({},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:ta(ta({},Object(o.b)("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:ta(ta({},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"})}})},aa=Object(f.a)(ra,(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 ia(e){return function(e){if(Array.isArray(e))return oa(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 oa(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 oa(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 oa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function la(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sa(Object(n),!0).forEach((function(t){ca(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ca(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ua=n("ta7f"),da=ua.required,pa=ua.minValue,fa=ua.between,ma=ua.maxLength,ha={components:{Tax:aa,ItemSelect:Qr,TrashIcon:s.I,ChevronDownIcon:s.f,DragIcon:xn},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:la({},this.itemData),maxDiscount:0,money:{decimal:".",thousands:",",prefix:"$ ",precision:2,masked:!1},isSelected:!1}},computed:la(la(la(la({},Object(o.c)("item",["items"])),Object(o.c)("modal",["modalActive"])),Object(o.c)("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=100*e,this.item.discount=e}},total:function(){return this.subtotal-this.item.discount_val},totalSimpleTax:function(){return window._.sumBy(this.item.taxes,(function(e){return e.compound_tax?0:e.amount}))},totalCompoundTax:function(){return 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=100*e,this.maxDiscount=this.item.price):this.item.price=e}}}),watch:{item:{handler:"updateItem",deep:!0},subtotal:function(e){"percentage"===this.item.discount_type&&(this.item.discount_val=this.item.discount*e/100)},modalActive:function(e){e||(this.isSelected=!1)}},validations:function(){return{item:{name:{required:da},quantity:{required:da,minValue:pa(0),maxLength:ma(20)},price:{required:da,minValue:pa(1),maxLength:ma(20)},discount_val:{between:fa(0,this.maxDiscount)},description:{maxLength:ma(65e3)}}}},created:function(){var e=this;window.hub.$on("checkItems",this.validateItem),window.hub.$on("newItem",(function(t){"YES"===e.taxPerItem&&(e.item.taxes=t.taxes),!e.item.item_id&&e.modalActive&&e.isSelected&&e.onSelectItem(t)}))},mounted:function(){this.$v.item.$reset()},methods:{updateTax:function(e){this.$set(this.item.taxes,e.index,e.item),0!==this.item.taxes[this.item.taxes.length-1].tax_type_id&&this.item.taxes.push(la(la({},cn),{},{id:ln.a.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=la(la({},Vr),{},{id:this.item.id,taxes:[la(la({},cn),{},{id:ln.a.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:la({},e)}),n++}))}},selectFixed:function(){"fixed"!==this.item.discount_type&&(this.item.discount_val=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:la(la({},this.item),{},{total:this.total,totalSimpleTax:this.totalSimpleTax,totalCompoundTax:this.totalCompoundTax,totalTax:this.totalTax,tax:this.totalTax,taxes:ia(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)}}},_a=Object(f.a)(ha,(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",padding:"6px"},attrs:{slot:"activator",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",variant:"white"},slot:"activator"},[n("span",{staticClass:"flex"},[e._v("\n "+e._s("fixed"==e.item.discount_type?e.currency.symbol:"%")+"\n "),n("chevron-down-icon",{staticClass:"h-5"})],1)]),e._v(" "),n("sw-dropdown-item",{on:{click:e.selectFixed}},[e._v("\n "+e._s(e.$t("general.fixed"))+"\n ")]),e._v(" "),n("sw-dropdown-item",{on:{click:e.selectPercentage}},[e._v("\n "+e._s(e.$t("general.percentage"))+"\n ")])],1)],1)])]):e._e(),e._v(" "),n("td",{staticClass:"px-5 py-4 text-right align-top"},[n("div",{staticClass:"flex items-center justify-end text-sm"},[n("span",[n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(e.total,e.currency))}})]),e._v(" "),n("div",{staticClass:"flex items-center justify-center w-6 h-10 mx-2 cursor-pointer"},[e.isShowRemoveItemIcon?n("trash-icon",{staticClass:"h-5 text-gray-700",on:{click:e.removeItem}}):e._e()],1)])])]),e._v(" "),"YES"===e.taxPerItem?n("tr",{staticClass:"tax-tr"},[n("td",{staticClass:"px-5 py-4 text-left align-top"}),e._v(" "),n("td",{staticClass:"px-5 py-4 text-left align-top",attrs:{colspan:"4"}},e._l(e.item.taxes,(function(t,r){return n("tax",{key:t.id,attrs:{index:r,"tax-data":t,taxes:e.item.taxes,"discounted-total":e.total,"total-tax":e.totalSimpleTax,total:e.total,currency:e.currency},on:{update:e.updateTax,remove:e.removeTax}})})),1)]):e._e()])])])])}),[],!1,null,null,null).exports;function va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function 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={components:{UserIcon:s.K},props:{valid:{type:Object,default:function(){}},customerId:{type:Number,default:null}},computed:ga({},Object(o.c)("estimate",["getTemplateId","selectedCustomer"])),created:function(){this.resetSelectedCustomer(),this.customerId&&this.selectCustomer(this.customerId)},methods:ga(ga(ga({},Object(o.b)("estimate",["resetSelectedCustomer","selectCustomer"])),Object(o.b)("modal",["openModal"])),{},{editCustomer:function(){this.openModal({title:this.$t("customers.edit_customer"),componentName:"CustomerModal",id:this.selectedCustomer.id,data:this.selectedCustomer})}})},wa=Object(f.a)(ba,(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-no-wrap"},[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-no-wrap"},[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 xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ka(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xa(Object(n),!0).forEach((function(t){Da(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Da(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ma={components:{TrashIcon:s.I},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?(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"}},methods:{updateTax:function(){this.$emit("update",{index:this.index,item:ka(ka({},this.tax),{},{amount:this.taxAmount})})}}},Sa=Object(f.a)(Ma,(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=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return La(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 La(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 La(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ta(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Ea(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Ta(i,r,a,o,s,"next",e)}function s(e){Ta(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Oa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ja(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oa(Object(n),!0).forEach((function(t){Aa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Aa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pa,Ya=n("ta7f"),$a=Ya.required,Ia=Ya.between,Na=Ya.maxLength,za=Ya.numeric,Fa={mixins:[Be.a],components:{EstimateItem:_a,CustomerSelect:wa,Tax:Sa,draggable:on.a,ChevronDownIcon:s.f,PencilIcon:l.u,ShoppingCartIcon:s.F,PlusSmIcon:l.v,HashtagIcon:s.t},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:[ja(ja({},Vr),{},{id:ln.a.raw(),taxes:[ja(ja({},cn),{},{id:ln.a.raw()})]})],taxes:[]},selectedCurrency:"",taxPerItem:null,discountPerItem:null,isLoadingEstimate:!1,isLoadingData:!1,isLoading:!1,maxDiscount:0,estimateNumAttribute:null,estimatePrefix:null,EstimateFields:["customer","company","customerCustom","estimate","estimateCustom"],customerId:null}},validations:function(){return{newEstimate:{estimate_date:{required:$a},expiry_date:{required:$a},discount_val:{between:Ia(0,this.subtotal)},reference_number:{maxLength:Na(255)}},selectedCustomer:{required:$a},estimateNumAttribute:{required:$a,numeric:za}}},computed:ja(ja(ja(ja(ja({},Object(o.c)("company",["itemDiscount"])),Object(o.c)("company",["defaultCurrency"])),Object(o.c)("estimate",["getTemplateId","selectedCustomer","selectedNote"])),Object(o.c)("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=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:ja(ja(ja(ja(ja(ja(ja(ja({},Object(o.b)("modal",["openModal"])),Object(o.b)("estimate",["addEstimate","fetchEstimate","getEstimateNumber","selectCustomer","updateEstimate","resetSelectedNote"])),Object(o.b)("item",["fetchItems"])),Object(o.b)("taxType",["fetchTaxTypes"])),Object(o.b)("company",["fetchCompanySettings"])),Object(o.b)("estimateTemplate",["fetchEstimateTemplates"])),Object(o.b)("customFields",["fetchCustomFields"])),{},{selectFixed:function(){"fixed"!==this.newEstimate.discount_type&&(this.newEstimate.discount_val=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],ja({},e.item))},fetchInitialItems:function(){var e=this;return Ea(O.a.mark((function t(){var n;return O.a.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=Ea(O.a.mark((function t(n){var r,a,i;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=Ca(n,5),r[0],r[1],r[2],a=r[3],i=r[4],!e.isEdit&&i.data&&"YES"===i.data.estimate_auto_generate?a.data&&(e.estimateNumAttribute=a.data.nextNumber,e.estimatePrefix=a.data.prefix):e.estimatePrefix=a.data.prefix,e.isLoadingData=!1;case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){console.log(e)}));case 7:case"end":return t.stop()}}),t)})))()},loadData:function(){var e=this;return Ea(O.a.mark((function t(){return O.a.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=Ea(O.a.mark((function t(n){var r,a,i,o,s;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Ca(n,2),a=r[0],i=r[1],a.data&&(e.customerId=a.data.estimate.user_id,e.newEstimate=a.data.estimate,e.formData=ja(ja({},e.formData),a.data.estimate),e.newEstimate.estimate_date=Jt()(a.data.estimate.estimate_date,"YYYY-MM-DD").toString(),e.newEstimate.expiry_date=Jt()(a.data.estimate.expiry_date,"YYYY-MM-DD").toString(),e.discountPerItem=a.data.estimate.discount_per_item,e.taxPerItem=a.data.estimate.tax_per_item,e.selectedCurrency=e.defaultCurrency,e.estimateTemplates=a.data.estimate.estimateTemplates,e.estimateNumAttribute=a.data.nextEstimateNumber,e.estimatePrefix=a.data.estimatePrefix,o=a.data.estimate.fields,i.data&&(s=i.data.customFields.data,e.setEditCustomFields(o,s))),e.isLoadingEstimate=!1,t.abrupt("return");case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){console.log(e)})),t.abrupt("return",!0);case 4:return e.isLoadingEstimate=!0,t.next=7,e.setInitialCustomFields("Estimate");case 7:return t.next=9,e.fetchTaxTypes({limit:"all"});case 9:e.selectedCurrency=e.defaultCurrency,e.newEstimate.estimate_date=Jt()().toString(),e.newEstimate.expiry_date=Jt()().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(ja(ja({},Vr),{},{id:ln.a.raw(),taxes:[ja(ja({},cn),{},{id:ln.a.raw()})]}))},removeItem:function(e){this.newEstimate.items.splice(e,1)},updateItem:function(e){Object.assign(this.newEstimate.items[e.index],ja({},e.item))},submitForm:function(){var e=this;return Ea(O.a.mark((function t(){var n,r;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.touchCustomField();case 2:if(n=t.sent,e.checkValid()&&!n.error){t.next=5;break}return t.abrupt("return",!1);case 5:if(e.isLoading=!0,e.newEstimate.estimate_number=e.estimatePrefix+"-"+e.estimateNumAttribute,r=ja(ja(ja({},e.formData),e.newEstimate),{},{estimate_date:Jt()(e.newEstimate.estimate_date).format("YYYY-MM-DD"),expiry_date:Jt()(e.newEstimate.expiry_date).format("YYYY-MM-DD"),sub_total:e.subtotal,total:e.total,tax:e.totalTax,user_id:null,estimate_template_id:e.getTemplateId}),null!=e.selectedCustomer&&(r.user_id=e.selectedCustomer.id),"estimates.edit"!==e.$route.name){t.next=12;break}return e.submitUpdate(r),t.abrupt("return");case 12:e.submitCreate(r);case 13:case"end":return t.stop()}}),t)})))()},submitCreate:function(e){var t=this;this.addEstimate(e).then((function(e){e.data&&(t.$router.push("/admin/estimates/".concat(e.data.estimate.id,"/view")),window.toastr.success(t.$t("estimates.created_message"))),t.isLoading=!1})).catch((function(e){t.isLoading=!1}))},submitUpdate:function(e){var t=this;this.updateEstimate(e).then((function(e){t.isLoading=!1,e.data&&(t.$router.push("/admin/estimates/".concat(e.data.estimate.id,"/view")),window.toastr.success(t.$t("estimates.updated_message")))})).catch((function(e){t.isLoading=!1}))},checkItemsData:function(e,t){this.newEstimate.items[e].valid=t},onSelectTax:function(e){var t=0;e.compound_tax&&this.subtotalWithDiscount?t=(this.subtotalWithDiscount+this.totalSimpleTax)*e.percent/100:this.subtotalWithDiscount&&e.percent&&(t=this.subtotalWithDiscount*e.percent/100),this.newEstimate.taxes.push(ja(ja({},cn),{},{id:ln.a.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()}})},Ra=(n("LnpJ"),Object(f.a)(Fa,(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:{to:"/admin/dashboard",title:e.$t("general.home")}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{to:"/admin/estimates",title:e.$tc("estimates.estimate",2)}}),e._v(" "),"estimates.edit"===e.$route.name?n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$t("estimates.edit_estimate"),active:""}}):n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$t("estimates.new_estimate"),active:""}})],1),e._v(" "),n("template",{slot:"actions"},["estimates.edit"===e.$route.name?n("sw-button",{staticClass:"mr-3",attrs:{"tag-name":"a",href:"/estimates/pdf/"+e.newEstimate.unique_hash,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:{change: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:{change:function(t){return e.$v.newEstimate.expiry_date.$touch()}},model:{value:e.newEstimate.expiry_date,callback:function(t){e.$set(e.newEstimate,"expiry_date",t)},expression:"newEstimate.expiry_date"}})],1),e._v(" "),n("sw-input-group",{staticClass:"lg:mt-0",attrs:{label:e.$t("estimates.estimate_number"),error:e.estimateNumError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{prefix:e.estimatePrefix+" - ",invalid:e.$v.estimateNumAttribute.$error},on:{input:function(t){return e.$v.estimateNumAttribute.$touch()}},model:{value:e.estimateNumAttribute,callback:function(t){e.estimateNumAttribute=t},expression:"estimateNumAttribute"}},[n("hashtag-icon",{staticClass:"h-4 ml-1 text-gray-500",attrs:{slot:"leftIcon"},slot:"leftIcon"})],1)],1),e._v(" "),n("sw-input-group",{staticClass:"lg:mt-0",attrs:{label:e.$t("estimates.ref_number"),error:e.referenceNumError}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.newEstimate.reference_number.$error},on:{input:function(t){return e.$v.newEstimate.reference_number.$touch()}},model:{value:e.newEstimate.reference_number,callback:function(t){e.$set(e.newEstimate,"reference_number",t)},expression:"newEstimate.reference_number"}},[n("hashtag-icon",{staticClass:"h-4 ml-1 text-gray-500",attrs:{slot:"leftIcon"},slot:"leftIcon"})],1)],1)],1)],1),e._v(" "),n("table",{staticClass:"w-full text-center item-table"},[n("colgroup",[n("col",{staticStyle:{width:"40%"}}),e._v(" "),n("col",{staticStyle:{width:"10%"}}),e._v(" "),n("col",{staticStyle:{width:"15%"}}),e._v(" "),"YES"===e.discountPerItem?n("col",{staticStyle:{width:"15%"}}):e._e(),e._v(" "),n("col",{staticStyle:{width:"15%"}})]),e._v(" "),n("thead",{staticClass:"bg-white border border-gray-200 border-solid"},[n("tr",[n("th",{staticClass:"px-5 py-3 text-sm not-italic font-medium leading-5 text-left text-gray-700 border-t border-b border-gray-200 border-solid"},[n("span",{staticClass:"pl-12"},[e._v("\n "+e._s(e.$tc("items.item",2))+"\n ")])]),e._v(" "),n("th",{staticClass:"px-5 py-3 text-sm not-italic font-medium leading-5 text-right text-gray-700 border-t border-b border-gray-200 border-solid"},[n("span",[e._v("\n "+e._s(e.$t("estimates.item.quantity"))+"\n ")])]),e._v(" "),n("th",{staticClass:"px-5 py-3 text-sm not-italic font-medium leading-5 text-left text-gray-700 border-t border-b border-gray-200 border-solid"},[n("span",[e._v("\n "+e._s(e.$t("estimates.item.price"))+"\n ")])]),e._v(" "),"YES"===e.discountPerItem?n("th",{staticClass:"px-5 py-3 text-sm not-italic font-medium leading-5 text-left text-gray-700 border-t border-b border-gray-200 border-solid"},[n("span",[e._v("\n "+e._s(e.$t("estimates.item.discount"))+"\n ")])]):e._e(),e._v(" "),n("th",{staticClass:"px-5 py-3 text-sm not-italic font-medium leading-5 text-right text-gray-700 border-t border-b border-gray-200 border-solid"},[n("span",{staticClass:"pr-10 column-heading"},[e._v("\n "+e._s(e.$t("estimates.item.amount"))+"\n ")])])])]),e._v(" "),n("draggable",{staticClass:"item-body",attrs:{tag:"tbody",handle:".handle"},model:{value:e.newEstimate.items,callback:function(t){e.$set(e.newEstimate,"items",t)},expression:"newEstimate.items"}},e._l(e.newEstimate.items,(function(t,r){return n("estimate-item",{key:t.id,attrs:{index:r,"item-data":t,currency:e.currency,"estimate-items":e.newEstimate.items,"tax-per-item":e.taxPerItem,"discount-per-item":e.discountPerItem},on:{remove:e.removeItem,update:e.updateItem,itemValidate:e.checkItemsData}})})),1)],1),e._v(" "),n("div",{staticClass:"flex items-center justify-center w-full px-6 py-3 text-base border-b border-gray-200 border-solid cursor-pointer text-primary-400 hover:bg-gray-200",on:{click:e.addItem}},[n("shopping-cart-icon",{staticClass:"h-5 mr-2"}),e._v("\n "+e._s(e.$t("estimates.add_item"))+"\n ")],1),e._v(" "),n("div",{staticClass:"block my-10 estimate-foot lg:flex lg:justify-between lg:items-start"},[n("div",{staticClass:"w-full lg:w-1/2"},[n("div",{staticClass:"mb-6"},[n("sw-popup",{ref:"notePopup",staticClass:"text-sm font-semibold leading-5 text-primary-400"},[n("div",{staticClass:"float-right mt-1",attrs:{slot:"activator"},slot:"activator"},[e._v("\n + "+e._s(e.$t("general.insert_note"))+"\n ")]),e._v(" "),n("note-select-popup",{attrs:{type:"Estimate"},on:{select:e.onSelectNote}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("estimates.notes")}},[n("base-custom-input",{attrs:{fields:e.EstimateFields},model:{value:e.newEstimate.notes,callback:function(t){e.$set(e.newEstimate,"notes",t)},expression:"newEstimate.notes"}})],1)],1),e._v(" "),e.customFields.length>0?n("div",{staticClass:"grid gap-x-4 gap-y-2 md:gap-x-8 md:gap-y-4 grid-col-1 md:grid-cols-2"},e._l(e.customFields,(function(t,r){return n("sw-input-group",{key:r,attrs:{label:t.label,required:!!t.is_required}},[n(t.type+"Field",{tag:"component",attrs:{type:t.type.label,field:t,isEdit: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",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",{staticClass:"flex items-center justify-center w-12 border border-gray-300 border-solid rounded-tl-none rounded-bl-none font-base",staticStyle:{height:"43px"},attrs:{slot:"activator",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",variant:"white"},slot:"activator"},[n("span",{staticClass:"flex"},[e._v("\n "+e._s("fixed"==e.newEstimate.discount_type?e.currency.symbol:"%")+"\n "),n("chevron-down-icon",{staticClass:"h-5"})],1)]),e._v(" "),n("sw-dropdown-item",{on:{click:e.selectFixed}},[e._v("\n "+e._s(e.$t("general.fixed"))+"\n ")]),e._v(" "),n("sw-dropdown-item",{on:{click:e.selectPercentage}},[e._v("\n "+e._s(e.$t("general.percentage"))+"\n ")])],1)],1)]):e._e(),e._v(" "),"NO"===e.taxPerItem||null===e.taxPerItem?n("div",e._l(e.newEstimate.taxes,(function(t,r){return n("tax",{key:t.id,attrs:{index:r,total:e.subtotalWithDiscount,tax:t,taxes:e.newEstimate.taxes,currency:e.currency,"total-tax":e.totalSimpleTax},on:{remove:e.removeEstimateTax,update:e.updateTax}})})),1):e._e(),e._v(" "),"NO"===e.taxPerItem||null===e.taxPerItem?n("sw-popup",{ref:"taxModal",staticClass:"my-3 text-sm font-semibold leading-5 text-primary-400"},[n("div",{staticClass:"float-right pt-2 pb-4",attrs:{slot:"activator"},slot:"activator"},[e._v("\n + "+e._s(e.$t("estimates.add_tax"))+"\n ")]),e._v(" "),n("tax-select-popup",{attrs:{taxes:e.newEstimate.taxes},on:{select:e.onSelectTax}})],1):e._e(),e._v(" "),n("div",{staticClass:"flex items-center justify-between w-full pt-2 mt-5 border-t border-gray-200 border-solid"},[n("label",{staticClass:"m-0 text-sm font-semibold leading-5 text-gray-500 uppercase"},[e._v(e._s(e.$t("estimates.total"))+" "+e._s(e.$t("estimates.amount"))+":")]),e._v(" "),n("label",{staticClass:"flex items-center justify-center text-lg uppercase text-primary-400"},[n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(e.total,e.currency))}})])])],2)])],1)],1)}),[],!1,null,null,null).exports);function Ha(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Ba(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Ha(i,r,a,o,s,"next",e)}function s(e){Ha(i,r,a,o,s,"throw",e)}o(void 0)}))}}function qa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ua(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){Va(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 Va(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wa=n("LvDl"),Ka={components:{DotsHorizontalIcon:s.o,FilterIcon:s.r,SortAscendingIcon:s.G,SortDescendingIcon:s.H,SearchIcon:s.E,LinkIcon:s.u,TrashIcon:s.I,PencilIcon:s.z},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=Wa.debounce(this.onSearched,500)},methods:Ua(Ua(Ua({},Object(o.b)("estimate",["fetchEstimates","getRecord","searchEstimate","markAsSent","sendEmail","deleteEstimate","selectEstimate","fetchViewEstimate"])),Object(o.b)("modal",["openModal"])),{},(Pa={hasActiveUrl:function(e){return this.$route.params.id==e},loadEstimates:function(){var e=this;return Ba(O.a.mark((function t(){var n;return O.a.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 Ba(O.a.mark((function t(){var n;return O.a.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=Ua({},n.data.estimate));case 4:case"end":return t.stop()}}),t)})))()},copyPdfUrl:function(){var e="".concat(window.location.origin,"/estimates/pdf/").concat(this.estimate.unique_hash);this.$utils.copyTextToClipboard(e);window.toastr.success(this.$tc("general.copied_pdf_url_clipboard"))},onSearched:function(){var e=this;return Ba(O.a.mark((function t(){var n,r;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n="",""!==e.searchData.searchText&&null!==e.searchData.searchText&&void 0!==e.searchData.searchText&&(n+="search=".concat(e.searchData.searchText,"&")),null!==e.searchData.orderBy&&void 0!==e.searchData.orderBy&&(n+="orderBy=".concat(e.searchData.orderBy,"&")),null!==e.searchData.orderByField&&void 0!==e.searchData.orderByField&&(n+="orderByField=".concat(e.searchData.orderByField)),e.isSearching=!0,t.next=7,e.searchEstimate(n);case 7:r=t.sent,e.isSearching=!1,r.data&&(e.estimates=r.data.estimates.data);case 10:case"end":return t.stop()}}),t)})))()},sortData:function(){return"asc"===this.searchData.orderBy?(this.searchData.orderBy="desc",this.onSearched(),!0):(this.searchData.orderBy="asc",this.onSearched(),!0)},onMarkAsSent:function(){var e=this;return Ba(O.a.mark((function t(){return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:window.swal({title:e.$t("general.are_you_sure"),text:e.$t("estimates.confirm_mark_as_sent"),icon:"/assets/icon/check-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=Ba(O.a.mark((function t(n){var r;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=7;break}return e.isMarkAsSent=!0,t.next=4,e.markAsSent({id:e.estimate.id,status:"SENT"});case 4:r=t.sent,e.isMarkAsSent=!1,r.data&&(e.estimate.status="SENT",window.toastr.success(e.$tc("estimates.mark_as_sent_successfully")));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},onSendEstimate:function(e){var t=this;return Ba(O.a.mark((function e(){return O.a.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)})))()}},Va(Pa,"copyPdfUrl",(function(){var e="".concat(window.location.origin,"/estimates/pdf/").concat(this.estimate.unique_hash);this.$utils.copyTextToClipboard(e);window.toastr.success(this.$tc("general.copied_pdf_url_clipboard"))})),Va(Pa,"removeEstimate",(function(e){var t=this;return Ba(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:window.swal({title:t.$t("general.are_you_sure"),text:"you will not be able to recover this estimate!",icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Ba(O.a.mark((function n(r){var a;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=5;break}return n.next=3,t.deleteEstimate({ids:[e]});case 3:(a=n.sent).data.success?(window.toastr.success(t.$tc("estimates.deleted_message",1)),t.$router.push("/admin/estimates")):a.data.error&&window.toastr.error(a.data.message);case 5:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()})),Pa))},Ga=Object(f.a)(Ka,(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:{"tag-name":"router-link",to:"/admin/estimates/"+e.$route.params.id+"/edit"}},[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",value:"expiry_date",label:e.$t("estimates.due_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",value:"estimate_number",label:e.$t("estimates.estimate_number"),size:"sm",name:"filter"},on:{change:e.onSearched},model:{value:e.searchData.orderByField,callback:function(t){e.$set(e.searchData,"orderByField",t)},expression:"searchData.orderByField"}})],1)],1)],1),e._v(" "),n("sw-button",{directives:[{name:"tooltip",rawName:"v-tooltip.top-center",value:{content:e.getOrderName},expression:"{ content: getOrderName }",modifiers:{"top-center":!0}}],staticClass:"ml-1",attrs:{size:"md",variant:"gray-light"},on:{click:e.sortData}},[e.getOrderBy?n("sort-ascending-icon",{staticClass:"h-5"}):n("sort-descending-icon",{staticClass:"h-5"})],1)],1)],1),e._v(" "),e.isSearching?n("base-loader",{attrs:{"show-bg-overlay":!0}}):n("div",{staticClass:"h-full pb-32 overflow-y-scroll border-l border-gray-200 border-solid sw-scroll"},[e._l(e.estimates,(function(t,r){return n("router-link",{key:r,class:["flex justify-between side-estimate p-4 cursor-pointer hover:bg-gray-100 items-center border-l-4 border-transparent",{"bg-gray-100 border-l-4 border-primary-500 border-solid":e.hasActiveUrl(t.id)}],staticStyle:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"},attrs:{to:"/admin/estimates/"+t.id+"/view",id:"estimate-"+t.id}},[n("div",{staticClass:"flex-2"},[n("div",{staticClass:"pr-2 mb-2 text-sm not-italic font-normal leading-5 text-black capitalize truncate"},[e._v("\n "+e._s(t.user.name)+"\n ")]),e._v(" "),n("div",{staticClass:"mt-1 mb-2 text-xs not-italic font-medium leading-5 text-gray-600"},[e._v("\n "+e._s(t.estimate_number)+"\n ")]),e._v(" "),n("sw-badge",{staticClass:"px-1 text-xs",attrs:{"bg-color":e.$utils.getBadgeStatusColor(t.status).bgColor,color:e.$utils.getBadgeStatusColor(t.status).color}},[e._v("\n "+e._s(t.status)+"\n ")])],1),e._v(" "),n("div",{staticClass:"flex-1 whitespace-no-wrap 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 Ja(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Za(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Ja(i,r,a,o,s,"next",e)}function s(e){Ja(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xa(Object(n),!0).forEach((function(t){ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ei(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ti={components:{ObservatoryIcon:Object(f.a)({},(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:s.B,FilterIcon:s.r,XIcon:s.N,ChevronDownIcon:s.f,PencilIcon:s.z,TrashIcon:s.I},data:function(){return{showFilters:!1,isRequestOngoing:!0,filters:{category:null,from_date:"",to_date:"",user:""}}},computed:Qa(Qa(Qa(Qa(Qa({showEmptyScreen:function(){return!this.totalExpenses&&!this.isRequestOngoing},filterIcon:function(){return this.showFilters?"x-icon":"filter-icon"}},Object(o.c)("category",["categories"])),Object(o.c)("expense",["selectedExpenses","totalExpenses","expenses","selectAllField"])),Object(o.c)("company",["defaultCurrency"])),Object(o.c)("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:Qa(Qa(Qa({},Object(o.b)("expense",["fetchExpenses","selectExpense","deleteExpense","deleteMultipleExpenses","selectAllExpenses","setSelectAllState"])),Object(o.b)("category",["fetchCategories"])),{},{fetchData:function(e){var t=this;return Za(O.a.mark((function n(){var r,a,i,o;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={user_id:t.filters.user?t.filters.user.id:null,expense_category_id:null!==t.filters.category?t.filters.category.id:"",from_date:(t.filters.from_date,t.filters.from_date),to_date:(t.filters.to_date,t.filters.to_date),orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},t.isRequestOngoing=!0,n.next=5,t.fetchExpenses(i);case 5:return o=n.sent,t.isRequestOngoing=!1,n.abrupt("return",{data:o.data.expenses.data,pagination:{totalPages:o.data.expenses.last_page,currentPage:r,count:o.data.expenses.count}});case 8:case"end":return n.stop()}}),n)})))()},onSelectCustomer:function(e){this.filters.user=e},refreshTable:function(){this.$refs.table.refresh()},setFilters:function(){this.refreshTable()},clearFilter:function(){this.filters.user&&this.$refs.customerSelect.$refs.baseSelect.removeElement(this.filters.user),this.filters={category:null,from_date:"",to_date:"",user:null}},clearCustomerSearch:function(e,t){var n=this;return Za(O.a.mark((function e(){return O.a.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 Za(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$tc("expenses.confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Za(O.a.mark((function n(r){var a;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=11;break}return n.next=3,t.deleteExpense({ids:[e]});case 3:if(!(a=n.sent).data.success){n.next=10;break}return window.toastr.success(t.$tc("expenses.deleted_message",1)),t.refreshTable(),n.abrupt("return",!0);case 10:a.data.error&&window.toastr.error(a.data.message);case 11:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},removeMultipleExpenses:function(){var e=this;return Za(O.a.mark((function t(){return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:swal({title:e.$t("general.are_you_sure"),text:e.$tc("expenses.confirm_delete",2),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=Za(O.a.mark((function t(n){var r;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=5;break}return t.next=3,e.deleteMultipleExpenses();case 3:(r=t.sent).data.success?(window.toastr.success(e.$tc("expenses.deleted_message",2)),e.$refs.table.refresh()):r.data.error&&window.toastr.error(r.data.message);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()}})},ni=Object(f.a)(ti,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-page",[n("sw-page-header",{attrs:{title:e.$t("expenses.title")}},[n("sw-breadcrumb",{attrs:{slot:"breadcrumbs"},slot:"breadcrumbs"},[n("sw-breadcrumb-item",{attrs:{to:"dashboard",title:e.$t("general.home")}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$tc("expenses.expense",2),active:""}})],1),e._v(" "),n("template",{slot:"actions"},[n("sw-button",{directives:[{name:"show",rawName:"v-show",value:e.totalExpenses,expression:"totalExpenses"}],attrs:{size:"lg",variant:"primary-outline"},on:{click:e.toggleFilter}},[e._v("\n "+e._s(e.$t("general.filter"))+"\n "),n(e.filterIcon,{tag:"component",staticClass:"w-4 h-4 ml-2 -mr-1"})],1),e._v(" "),n("sw-button",{staticClass:"ml-4",attrs:{"tag-name":"router-link",to:"expenses/create",size:"lg",variant:"primary"}},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("expenses.add_expense"))+"\n ")],1)],1)],2),e._v(" "),n("slide-y-up-transition",[n("sw-filter-wrapper",{directives:[{name:"show",rawName:"v-show",value:e.showFilters,expression:"showFilters"}],staticClass:"mt-3"},[n("sw-input-group",{staticClass:"flex-1 mt-3",attrs:{label:e.$t("expenses.customer")}},[n("base-customer-select",{ref:"customerSelect",on:{select:e.onSelectCustomer,deselect:e.clearCustomerSearch}})],1),e._v(" "),n("sw-input-group",{staticClass:"flex-1 mt-2 ml-0 lg:ml-6",attrs:{label:e.$t("expenses.category")}},[n("sw-select",{staticClass:"mt-2",attrs:{options:e.categories,searchable:!0,"show-labels":!1,placeholder:e.$t("expenses.categories.select_a_category"),label:"name"},on:{click:function(t){e.filter=!e.filter}},model:{value:e.filters.category,callback:function(t){e.$set(e.filters,"category",t)},expression:"filters.category"}})],1),e._v(" "),n("sw-input-group",{staticClass:"flex-1 mt-2 ml-0 lg:ml-6",attrs:{label:e.$t("expenses.from_date")}},[n("base-date-picker",{staticClass:"mt-2",attrs:{"calendar-button":!0,"calendar-button-icon":"calendar"},model:{value:e.filters.from_date,callback:function(t){e.$set(e.filters,"from_date",t)},expression:"filters.from_date"}})],1),e._v(" "),n("sw-input-group",{staticClass:"flex-1 mt-2 ml-0 lg:ml-6",attrs:{label:e.$t("expenses.to_date")}},[n("base-date-picker",{staticClass:"mt-2",attrs:{"calendar-button":!0,"calendar-button-icon":"calendar"},model:{value:e.filters.to_date,callback:function(t){e.$set(e.filters,"to_date",t)},expression:"filters.to_date"}})],1),e._v(" "),n("label",{staticClass:"absolute text-sm leading-snug text-black cursor-pointer",staticStyle:{top:"10px",right:"15px"},on:{click:e.clearFilter}},[e._v(e._s(e.$t("general.clear_all")))])],1)],1),e._v(" "),n("sw-empty-table-placeholder",{directives:[{name:"show",rawName:"v-show",value:e.showEmptyScreen,expression:"showEmptyScreen"}],attrs:{title:e.$t("expenses.no_expenses"),description:e.$t("expenses.list_of_expenses")}},[n("observatory-icon",{staticClass:"mt-5 mb-4"}),e._v(" "),n("sw-button",{attrs:{slot:"actions","tag-name":"router-link",to:"/admin/expenses/create",size:"lg",variant:"primary-outline"},slot:"actions"},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("expenses.add_new_expense"))+"\n ")],1)],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.showEmptyScreen,expression:"!showEmptyScreen"}],staticClass:"relative table-container"},[n("div",{staticClass:"relative flex items-center justify-between h-10 mt-5 list-none border-b-2 border-gray-200 border-solid"},[n("p",{staticClass:"text-sm"},[e._v("\n "+e._s(e.$t("general.showing"))+": "),n("b",[e._v(e._s(e.expenses.length))]),e._v("\n\n "+e._s(e.$t("general.of"))+" "),n("b",[e._v(e._s(e.totalExpenses))])]),e._v(" "),n("sw-transition",{attrs:{type:"fade"}},[e.selectedExpenses.length?n("sw-dropdown",[n("span",{staticClass:"flex block text-sm font-medium cursor-pointer select-none text-primary-400",attrs:{slot:"activator"},slot:"activator"},[e._v("\n "+e._s(e.$t("general.actions"))+"\n "),n("chevron-down-icon",{staticClass:"h-5"})],1),e._v(" "),n("sw-dropdown-item",{on:{click:e.removeMultipleExpenses}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1):e._e()],1)],1),e._v(" "),n("div",{staticClass:"absolute z-10 items-center pl-4 mt-2 select-none md:mt-12"},[n("sw-checkbox",{staticClass:"hidden md:inline",attrs:{variant:"primary",size:"sm"},on:{change:e.selectAllExpenses},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}}),e._v(" "),n("sw-checkbox",{staticClass:"md:hidden",attrs:{label:e.$t("general.select_all"),variant:"primary",size:"sm"},on:{change:e.selectAllExpenses},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}})],1),e._v(" "),n("sw-table-component",{ref:"table",attrs:{"show-filter":!1,data:e.fetchData}},[n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"no-click"},scopedSlots:e._u([{key:"default",fn:function(t){return n("div",{staticClass:"relative block"},[n("sw-checkbox",{attrs:{id:t.id,value:t.id,variant:"primary",size:"sm"},model:{value:e.selectField,callback:function(t){e.selectField=t},expression:"selectField"}})],1)}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("expenses.date"),"sort-as":"expense_date",show:"formattedExpenseDate"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$tc("expenses.categories.category",1),"sort-as":"name",show:"category.name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$tc("expenses.categories.category",1)))]),e._v(" "),n("router-link",{staticClass:"font-medium text-primary-500",attrs:{to:{path:"expenses/"+t.id+"/edit"}}},[e._v("\n "+e._s(t.category.name)+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("expenses.customer"),"sort-as":"user_name",show:"user_name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("expenses.customer")))]),e._v(" "),n("span",[e._v(" "+e._s(t.user_name?t.user_name:"Not selected")+" ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("expenses.note"),"sort-as":"expense_date"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("expenses.note")))]),e._v(" "),n("div",{staticClass:"notes"},[n("div",{staticClass:"truncate note w-60"},[e._v(e._s(t.notes))])])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("expenses.amount"),"sort-as":"amount",show:"category.amount"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("expenses.amount")))]),e._v(" "),n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(t.amount,e.defaultCurrency))}})]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"action-dropdown no-click"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("expenses.action")))]),e._v(" "),n("sw-dropdown",[n("dot-icon",{attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"expenses/"+t.id+"/edit"}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.removeExpense(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)]}}])})],1)],1)],1)}),[],!1,null,null,null).exports;function ri(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function ai(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){ri(i,r,a,o,s,"next",e)}function s(e){ri(i,r,a,o,s,"throw",e)}o(void 0)}))}}function ii(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ii(Object(n),!0).forEach((function(t){si(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ii(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function si(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var li=n("ta7f"),ci=li.required,ui=li.minValue,di=li.maxLength,pi={mixins:[Be.a],components:{CloudUploadIcon:s.h,ShoppingCartIcon:s.F,DownloadIcon:l.n},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:ci},formData:{expense_date:{required:ci},amount:{required:ci,minValue:ui(.1),maxLength:di(20)},notes:{maxLength:di(65e3)}}},computed:oi(oi(oi(oi(oi({},Object(o.c)("company",["defaultCurrencyForInput"])),{},{amount:{get:function(){return this.formData.amount/100},set:function(e){this.formData.amount=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}},Object(o.c)("category",["categories"])),Object(o.c)("customer",["customers"])),Object(o.c)("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:oi(oi(oi(oi(oi({},Object(o.b)("expense",["getExpenseReceipt","addExpense","updateExpense","fetchExpense"])),Object(o.b)("modal",["openModal"])),Object(o.b)("category",["fetchCategories"])),Object(o.b)("customer",["fetchCustomers"])),{},{openCategoryModal:function(){this.openModal({title:this.$t("settings.expense_category.add_category"),componentName:"CategoryModal"})},onChange:function(e){this.previewReceipt=e.image,this.fileObject=e.file},getReceipt:function(){var e=this;return ai(O.a.mark((function t(){var n;return O.a.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 ai(O.a.mark((function t(){var n,r;return O.a.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=oi(oi({},e.formData),n.data.expense),e.formData.expense_date=Jt()(e.formData.expense_date).toString(),e.formData.amount=n.data.expense.amount,e.fileSendUrl="/api/v1/expenses/".concat(e.$route.params.id),n.data.expense.expense_category_id&&(e.category=e.categories.find((function(e){return e.id===n.data.expense.expense_category_id}))),n.data.expense.user_id&&(e.customer=e.customers.find((function(e){return e.id===n.data.expense.user_id}))),t.next=18,e.fetchCustomFields({type:"Expense",limit:"all"});case 18:return r=t.sent,e.setEditCustomFields(n.data.expense.fields,r.data.customFields.data),e.getReceipt(),e.isRequestOnGoing=!1,t.abrupt("return",!0);case 23:return t.next=25,e.setInitialCustomFields("Expense");case 25:e.$route.query.customer&&e.setExpenseCustomer(parseInt(e.$route.query.customer)),e.isRequestOnGoing=!1;case 27:case"end":return t.stop()}}),t)})))()},sendData:function(){var e=this;return ai(O.a.mark((function t(){var n,r,a,i;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.touchCustomField();case 2:if(n=t.sent,e.$v.category.$touch(),e.$v.formData.$touch(),!e.$v.$invalid&&!n.error){t.next=7;break}return t.abrupt("return",!0);case 7:if(r=new FormData,e.fileObject&&r.append("attachment_receipt",e.fileObject),r.append("expense_category_id",e.formData.expense_category_id),r.append("expense_date",Jt()(e.formData.expense_date).format("YYYY-MM-DD")),r.append("amount",e.formData.amount),r.append("notes",e.formData.notes?e.formData.notes:""),r.append("user_id",e.customer?e.customer.id:""),r.append("customFields",JSON.stringify(e.formData.customFields)),!e.isEdit){t.next=29;break}return e.isLoading=!0,r.append("_method","PUT"),t.next=20,e.updateExpense({id:e.$route.params.id,editData:r});case 20:if(!(a=t.sent).data.success){t.next=26;break}return e.isLoading=!1,window.toastr.success(e.$t("expenses.updated_message")),e.$router.push("/admin/expenses"),t.abrupt("return",!0);case 26:window.toastr.error(a.data.error),t.next=39;break;case 29:return e.isLoading=!0,t.next=32,e.addExpense(r);case 32:if(i=t.sent,e.isLoading=!1,!i.data.success){t.next=38;break}return window.toastr.success(e.$t("expenses.created_message")),e.$router.push("/admin/expenses"),t.abrupt("return",!0);case 38:window.toastr.success(i.data.success);case 39:case"end":return t.stop()}}),t)})))()}})},fi=Object(f.a)(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:{to:"/admin/dashboard",title:e.$t("general.home")}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{to:"/admin/expenses",title:e.$tc("expenses.expense",2)}}),e._v(" "),"expenses.edit"===e.$route.name?n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$t("expenses.edit_expense"),active:""}}):n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$t("expenses.new_expense"),active:""}})],1),e._v(" "),n("template",{slot:"actions"},[e.isReceiptAvailable?n("sw-button",{staticClass:"mr-2",attrs:{"tag-name":"a",href:e.getReceiptUrl,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:{change: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:{trigger:"#receipt-box","preview-avatar":e.previewReceipt,"enable-cropper":!1},on:{changed:e.onChange},scopedSlots:e._u([{key:"icon",fn:function(){return[n("cloud-upload-icon",{staticClass:"h-5 mb-2 text-xl leading-6 text-gray-400"})]},proxy:!0}])})],1)],1),e._v(" "),e.customFields.length>0?n("div",[n("div",{staticClass:"grid gap-6 mt-6 grid-col-1 md:grid-cols-2"},e._l(e.customFields,(function(t,r){return n("sw-input-group",{key:r,attrs:{label:t.label,required:!!t.is_required}},[n(t.type+"Field",{tag:"component",attrs:{type:t.type.label,field:t,isEdit: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 mi(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function hi(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){mi(i,r,a,o,s,"next",e)}function s(e){mi(i,r,a,o,s,"throw",e)}o(void 0)}))}}function _i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_i(Object(n),!0).forEach((function(t){gi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yi={components:{AstronautIcon:Pe,FilterIcon:s.r,XIcon:s.N,ChevronDownIcon:s.f,PencilIcon:s.z,TrashIcon:s.I,PlusIcon:s.B},data:function(){return{id:null,showFilters:!1,sortedBy:"created_at",isRequestOngoing:!0,filters:{name:"",email:"",phone:""}}},computed:vi(vi(vi({},Object(o.c)("user",["currentUser"])),Object(o.c)("users",["users","selectedUsers","totalUsers","selectAllField"])),{},{isSuperAdmin:function(){return"super admin"==this.currentUser.role},showEmptyScreen:function(){return!this.totalUsers&&!this.isRequestOngoing},filterIcon:function(){return this.showFilters?"x-icon":"filter-icon"},selectField:{get:function(){return this.selectedUsers},set:function(e){this.selectedUser(e)}},selectAllFieldStatus:{get:function(){return this.selectAllField},set:function(e){this.setSelectAllState(e)}}}),created:function(){this.isSuperAdmin||this.$router.push("/admin/dashboard")},watch:{filters:{handler:"setFilters",deep:!0}},destroyed:function(){this.selectAllField&&this.selectAllUsers()},methods:vi(vi({},Object(o.b)("users",["fetchUsers","selectAllUsers","selectedUser","deleteUser","deleteMultipleUsers","setSelectAllState"])),{},{refreshTable:function(){this.$refs.table.refresh()},fetchData:function(e){var t=this;return hi(O.a.mark((function n(){var r,a,i,o;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={display_name:null!==t.filters.name?t.filters.name:"",phone:null!==t.filters.phone?t.filters.phone:"",email:null!==t.filters.email?t.filters.email:"",orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},t.isRequestOngoing=!0,n.next=5,t.fetchUsers(i);case 5:return o=n.sent,t.isRequestOngoing=!1,n.abrupt("return",{data:o.data.users.data,pagination:{totalPages:o.data.users.last_page,currentPage:r}});case 8:case"end":return n.stop()}}),n)})))()},setFilters:function(){this.refreshTable()},clearFilter:function(){this.filters={name:"",email:"",phone:""}},toggleFilter:function(){this.showFilters&&this.clearFilter(),this.showFilters=!this.showFilters},removeUser:function(e){var t=this;return hi(O.a.mark((function n(){var r;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:(r=[]).push(e),swal({title:t.$t("general.are_you_sure"),text:t.$tc("users.confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var e=hi(O.a.mark((function e(n){var a;return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n){e.next=13;break}return e.next=3,t.deleteUser(r);case 3:if(!(a=e.sent).data.success){e.next=8;break}return window.toastr.success(t.$tc("users.deleted_message",1)),t.$refs.table.refresh(),e.abrupt("return",!0);case 8:if("user_attached"!==a.data.error){e.next=11;break}return window.toastr.error(t.$tc("users.user_attached_message"),t.$t("general.action_failed")),e.abrupt("return",!0);case 11:return window.toastr.error(a.data.message),e.abrupt("return",!0);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return n.stop()}}),n)})))()},removeMultipleUsers:function(){var e=this;return hi(O.a.mark((function t(){return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:swal({title:e.$t("general.are_you_sure"),text:e.$tc("users.confirm_delete",2),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=hi(O.a.mark((function t(n){var r;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=5;break}return t.next=3,e.deleteMultipleUsers();case 3:(r=t.sent).data.success||r.data.users?(window.toastr.success(e.$tc("users.deleted_message",2)),e.$refs.table.refresh()):r.data.error&&window.toastr.error(r.data.message);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()}})},bi=Object(f.a)(yi,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isSuperAdmin?n("base-page",{staticClass:"items"},[n("sw-page-header",{attrs:{title:e.$t("users.title")}},[n("sw-breadcrumb",{attrs:{slot:"breadcrumbs"},slot:"breadcrumbs"},[n("sw-breadcrumb-item",{attrs:{to:"dashboard",title:e.$t("general.home")}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$tc("users.title",2),active:""}})],1),e._v(" "),n("template",{slot:"actions"},[n("sw-button",{directives:[{name:"show",rawName:"v-show",value:e.totalUsers,expression:"totalUsers"}],attrs:{variant:"primary-outline",size:"lg"},on:{click:e.toggleFilter}},[e._v("\n "+e._s(e.$t("general.filter"))+"\n "),n(e.filterIcon,{tag:"component",staticClass:"w-4 h-4 ml-2 -mr-1"})],1),e._v(" "),n("sw-button",{staticClass:"ml-4",attrs:{"tag-name":"router-link",to:"users/create",variant:"primary",size:"lg"}},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("users.add_user"))+"\n ")],1)],1)],2),e._v(" "),n("slide-y-up-transition",[n("sw-filter-wrapper",{directives:[{name:"show",rawName:"v-show",value:e.showFilters,expression:"showFilters"}],staticClass:"mt-3"},[n("sw-input-group",{staticClass:"flex-1 mt-2 mr-4",attrs:{label:e.$tc("users.name")}},[n("sw-input",{staticClass:"mt-2",attrs:{type:"text",name:"name",autocomplete:"off"},model:{value:e.filters.name,callback:function(t){e.$set(e.filters,"name",t)},expression:"filters.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"flex-1 mt-2 mr-4",attrs:{label:e.$tc("users.email")}},[n("sw-input",{staticClass:"mt-2",attrs:{type:"text",name:"email",autocomplete:"off"},model:{value:e.filters.email,callback:function(t){e.$set(e.filters,"email",t)},expression:"filters.email"}})],1),e._v(" "),n("sw-input-group",{staticClass:"flex-1 mt-2",attrs:{label:e.$tc("users.phone")}},[n("sw-input",{staticClass:"mt-2",attrs:{type:"text",name:"phone",autocomplete:"off"},model:{value:e.filters.phone,callback:function(t){e.$set(e.filters,"phone",t)},expression:"filters.phone"}})],1),e._v(" "),n("label",{staticClass:"absolute text-sm leading-snug text-gray-900 cursor-pointer",staticStyle:{top:"10px",right:"15px"},on:{click:e.clearFilter}},[e._v("\n "+e._s(e.$t("general.clear_all")))])],1)],1),e._v(" "),n("sw-empty-table-placeholder",{directives:[{name:"show",rawName:"v-show",value:e.showEmptyScreen,expression:"showEmptyScreen"}],attrs:{title:e.$t("users.no_users"),description:e.$t("users.list_of_users")}},[n("astronaut-icon",{staticClass:"mt-5 mb-4"}),e._v(" "),n("sw-button",{attrs:{slot:"actions","tag-name":"router-link",to:"/admin/users/create",size:"lg",variant:"primary-outline"},slot:"actions"},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("users.add_user"))+"\n ")],1)],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.showEmptyScreen,expression:"!showEmptyScreen"}],staticClass:"relative table-container"},[n("div",{staticClass:"relative flex items-center justify-between h-10 mt-5 list-none border-b-2 border-gray-200 border-solid"},[n("p",{staticClass:"text-sm"},[e._v("\n "+e._s(e.$t("general.showing"))+": "),n("b",[e._v(e._s(e.users.length))]),e._v("\n\n "+e._s(e.$t("general.of"))+"\n\n "),n("b",[e._v(e._s(e.totalUsers))])]),e._v(" "),n("sw-transition",{attrs:{type:"fade"}},[e.selectedUsers.length?n("sw-dropdown",[n("span",{staticClass:"flex block text-sm font-medium cursor-pointer select-none text-primary-400",attrs:{slot:"activator"},slot:"activator"},[e._v("\n "+e._s(e.$t("general.actions"))+"\n "),n("chevron-down-icon",{staticClass:"h-5"})],1),e._v(" "),n("sw-dropdown-item",{on:{click:e.removeMultipleUsers}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1):e._e()],1)],1),e._v(" "),n("div",{staticClass:"absolute z-10 items-center pl-4 mt-2 select-none md:mt-12"},[n("sw-checkbox",{staticClass:"hidden md:inline",attrs:{variant:"primary",size:"sm"},on:{change:e.selectAllUsers},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}}),e._v(" "),n("sw-checkbox",{staticClass:"md:hidden",attrs:{label:e.$t("general.select_all"),variant:"primary",size:"sm"},on:{change:e.selectAllUsers},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}})],1),e._v(" "),n("sw-table-component",{ref:"table",attrs:{data:e.fetchData,"show-filter":!1,"table-class":"table"}},[n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"no-click"},scopedSlots:e._u([{key:"default",fn:function(t){return n("div",{staticClass:"custom-control custom-checkbox"},[n("sw-checkbox",{attrs:{id:t.id,value:t.id,variant:"primary",size:"sm"},model:{value:e.selectField,callback:function(t){e.selectField=t},expression:"selectField"}})],1)}}],null,!1,3150036800)}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("users.name"),show:"name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("users.name")))]),e._v(" "),n("router-link",{staticClass:"font-medium text-primary-500",attrs:{to:{path:"users/"+t.id+"/edit"}}},[e._v("\n "+e._s(t.name)+"\n ")])]}}],null,!1,2266017303)}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("users.email"),show:"email"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("users.phone"),show:"phone"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("users.phone")))]),e._v(" "),n("span",[e._v(e._s(t.phone?t.phone:"No Contact")+" ")])]}}],null,!1,3015326942)}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("users.added_on"),"sort-as":"created_at",show:"formattedCreatedAt"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,filterable:!1,"cell-class":"action-dropdown"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(" "+e._s(e.$t("users.action"))+" ")]),e._v(" "),n("sw-dropdown",[n("dot-icon",{attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"users/"+t.id+"/edit"}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.removeUser(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)]}}],null,!1,2310025438)})],1)],1)],1):e._e()}),[],!1,null,null,null).exports;function wi(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function xi(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){wi(i,r,a,o,s,"next",e)}function s(e){wi(i,r,a,o,s,"throw",e)}o(void 0)}))}}function ki(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Di(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ki(Object(n),!0).forEach((function(t){Mi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ki(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Si=n("ta7f"),Ci=Si.required,Li=Si.minLength,Ti=Si.email,Ei=(Si.numeric,Si.minValue,Si.maxLength,Si.requiredIf),Oi={data:function(){return{isLoading:!1,title:"Add User",formData:{name:"",email:null,password:null,phone:null}}},computed:Di(Di({},Object(o.c)("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:Ci,minLength:Li(3)},email:{email:Ti,required:Ci},password:{required:Ei((function(){return!this.isEdit})),minLength:Li(8)}}},methods:Di(Di({},Object(o.b)("users",["addUser","fetchUser","updateUser"])),{},{loadEditData:function(){var e=this;return xi(O.a.mark((function t(){var n;return O.a.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=Di(Di({},e.formData),n.data.user));case 4:case"end":return t.stop()}}),t)})))()},submitUser:function(){var e=this;return xi(O.a.mark((function t(){var n;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:if(t.prev=3,e.isLoading=!0,!e.isEdit){t.next=13;break}return t.next=8,e.updateUser(e.formData);case 8:(n=t.sent).data.success&&(window.toastr.success(e.$tc("users.updated_message")),e.$router.push("/admin/users"),e.isLoading=!1),n.data.error&&window.toastr.error(e.$t("validation.email_already_taken")),t.next=22;break;case 13:return t.next=15,e.addUser(e.formData);case 15:if(!(n=t.sent).data.success){t.next=22;break}if(e.isLoading=!1,e.isEdit){t.next=22;break}return window.toastr.success(e.$tc("users.created_message")),e.$router.push("/admin/users"),t.abrupt("return",!0);case 22:t.next=27;break;case 24:t.prev=24,t.t0=t.catch(3),t.t0.response.data.errors.email&&(e.isLoading=!1);case 27:case"end":return t.stop()}}),t,null,[[3,24]])})))()}})},ji=Object(f.a)(Oi,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isSuperAdmin?n("base-page",{staticClass:"item-create"},[n("sw-page-header",{staticClass:"mb-3",attrs:{title:e.pageTitle}},[n("sw-breadcrumb",{attrs:{slot:"breadcrumbs"},slot:"breadcrumbs"},[n("sw-breadcrumb-item",{attrs:{to:"/admin/dashboard",title:e.$t("general.home")}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{to:"/admin/users",title:e.$tc("users.user",2)}}),e._v(" "),"users.edit"===e.$route.name?n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$t("users.edit_user"),active:""}}):n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$t("users.new_user"),active:""}})],1),e._v(" "),n("template",{slot:"actions"})],2),e._v(" "),n("div",{staticClass:"grid grid-cols-12"},[n("div",{staticClass:"col-span-12 md:col-span-8"},[n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.submitUser(t)}}},[n("sw-card",[n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("users.name"),error:e.nameError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.formData.name.$error,focus:"",type:"text",name:"name"},on:{input:function(t){return e.$v.formData.name.$touch()}},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name","string"==typeof t?t.trim():t)},expression:"formData.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("users.email"),error:e.emailError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.formData.email.$error,type:"text",name:"email","tab-index":"3"},on:{input:function(t){return e.$v.formData.email.$touch()}},model:{value:e.formData.email,callback:function(t){e.$set(e.formData,"email","string"==typeof t?t.trim():t)},expression:"formData.email"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$tc("users.password"),error:e.passwordError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.formData.password.$error,type:"password"},on:{input:function(t){return e.$v.formData.password.$touch()}},model:{value:e.formData.password,callback:function(t){e.$set(e.formData,"password",t)},expression:"formData.password"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4 mb-6",attrs:{label:e.$t("users.phone")}},[n("sw-input",{attrs:{type:"text",name:"phone","tab-index":"4"},model:{value:e.formData.phone,callback:function(t){e.$set(e.formData,"phone","string"==typeof t?t.trim():t)},expression:"formData.phone"}})],1),e._v(" "),n("div",{staticClass:"mt-6 mb-4"},[n("sw-button",{staticClass:"flex justify-center w-full md:w-auto",attrs:{loading:e.isLoading,variant:"primary",type:"submit",size:"lg"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2 -ml-1"}),e._v("\n "+e._s(e.isEdit?e.$t("users.update_user"):e.$t("users.save_user"))+"\n ")],1)],1)],1)],1)])])],1):e._e()}),[],!1,null,null,null).exports;function Ai(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Pi(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Ai(i,r,a,o,s,"next",e)}function s(e){Ai(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Yi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yi(Object(n),!0).forEach((function(t){Ii(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ii(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ni=n("ta7f").required,zi={components:{DocumentTextIcon:s.n},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:Jt()().startOf("month").toString(),to_date:Jt()().endOf("month").toString()},url:null,customerSiteURL:null,itemsSiteURL:null}},validations:{range:{required:Ni},formData:{from_date:{required:Ni},to_date:{required:Ni}}},computed:$i($i({},Object(o.c)("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(Jt()(this.formData.from_date).format("YYYY-MM-DD"),"&to_date=").concat(Jt()(this.formData.to_date).format("YYYY-MM-DD"))},itemDateRangeUrl:function(){return"".concat(this.itemsSiteURL,"?from_date=").concat(Jt()(this.formData.from_date).format("YYYY-MM-DD"),"&to_date=").concat(Jt()(this.formData.to_date).format("YYYY-MM-DD"))}}),watch:{range:function(e){this.formData.from_date=Jt()(e).startOf("year").toString(),this.formData.to_date=Jt()(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:$i($i({},Object(o.b)("salesReport",["loadLinkByCustomer","loadLinkByItems"])),{},{getThisDate:function(e,t){return Jt()()[e](t).toString()},getPreDate:function(e,t){return Jt()().subtract(1,t)[e](t).toString()},onChangeDateRange:function(){switch(this.selectedRange){case"Today":this.formData.from_date=Jt()().toString(),this.formData.to_date=Jt()().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 Pi(O.a.mark((function t(){return O.a.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 Pi(O.a.mark((function t(){var n;return O.a.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 Pi(O.a.mark((function n(){return O.a.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)}})},Fi=Object(f.a)(zi,(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:{change: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:{change:function(t){return e.$v.formData.to_date.$touch()}},model:{value:e.formData.to_date,callback:function(t){e.$set(e.formData,"to_date",t)},expression:"formData.to_date"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-12 mt-6 md:mt-8"},[n("sw-input-group",{staticClass:"col-span-12 md:col-span-8",attrs:{label:e.$t("reports.sales.report_type")}},[n("sw-select",{staticClass:"mt-2",attrs:{options:e.reportTypes,"allow-empty":!1,"show-labels":!1,placeholder:e.$t("reports.sales.report_type")},on:{input:e.getInitialReport},model:{value:e.selectedType,callback:function(t){e.selectedType=t},expression:"selectedType"}})],1)],1),e._v(" "),n("sw-button",{staticClass:"content-center hidden mt-0 w-md md:flex md:mt-8",attrs:{variant:"primary-outline",type:"submit"},on:{click:function(t){return t.preventDefault(),e.getReports()}}},[e._v("\n "+e._s(e.$t("reports.update_report"))+"\n ")])],1),e._v(" "),n("div",{staticClass:"col-span-8 mt-0 md:mt-12"},[n("iframe",{staticClass:"hidden w-full h-screen border-gray-100 border-solid rounded md:flex",attrs:{src:e.getReportUrl}}),e._v(" "),n("a",{staticClass:"flex items-center justify-center h-10 px-5 py-1 text-sm font-medium leading-none text-center text-white whitespace-no-wrap 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 Ri(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Hi(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Ri(i,r,a,o,s,"next",e)}function s(e){Ri(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Bi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qi(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){Ui(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 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 Vi=n("ta7f").required,Wi={components:{DocumentTextIcon:s.n},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:Jt()().startOf("month").toString(),to_date:Jt()().endOf("month").toString()},url:null,siteURL:null}},validations:{range:{required:Vi},formData:{from_date:{required:Vi},to_date:{required:Vi}}},computed:qi(qi({},Object(o.c)("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(Jt()(this.formData.from_date).format("YYYY-MM-DD"),"&to_date=").concat(Jt()(this.formData.to_date).format("YYYY-MM-DD"))}}),watch:{range:function(e){this.formData.from_date=Jt()(e).startOf("year").toString(),this.formData.to_date=Jt()(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 Jt()()[e](t).toString()},getPreDate:function(e,t){return Jt()().subtract(1,t)[e](t).toString()},onChangeDateRange:function(){switch(this.selectedRange){case"Today":this.formData.from_date=Jt()().toString(),this.formData.to_date=Jt()().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 Hi(O.a.mark((function t(){var n;return O.a.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 Hi(O.a.mark((function n(){return O.a.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)}}},Ki=Object(f.a)(Wi,(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:{change: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:{change: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-no-wrap 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 Gi(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Ji(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Gi(i,r,a,o,s,"next",e)}function s(e){Gi(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zi(Object(n),!0).forEach((function(t){Qi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qi(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("ta7f").required,to={components:{DocumentTextIcon:s.n},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:Jt()().startOf("month").toString(),to_date:Jt()().endOf("month").toString()},url:null,siteURL:null}},validations:{range:{required:eo},formData:{from_date:{required:eo},to_date:{required:eo}}},computed:Xi(Xi({},Object(o.c)("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(Jt()(this.formData.from_date).format("YYYY-MM-DD"),"&to_date=").concat(Jt()(this.formData.to_date).format("YYYY-MM-DD"))}}),watch:{range:function(e){this.formData.from_date=Jt()(e).startOf("year").toString(),this.formData.to_date=Jt()(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 Jt()()[e](t).toString()},getPreDate:function(e,t){return Jt()().subtract(1,t)[e](t).toString()},onChangeDateRange:function(){switch(this.selectedRange){case"Today":this.formData.from_date=Jt()().toString(),this.formData.to_date=Jt()().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 Ji(O.a.mark((function t(){var n;return O.a.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 Ji(O.a.mark((function n(){return O.a.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)}}},no=Object(f.a)(to,(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:{change: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:{change: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-no-wrap 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 ro(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function ao(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){ro(i,r,a,o,s,"next",e)}function s(e){ro(i,r,a,o,s,"throw",e)}o(void 0)}))}}function io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?io(Object(n),!0).forEach((function(t){so(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):io(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function so(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lo=n("ta7f").required,co={components:{DocumentTextIcon:s.n},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:Jt()().startOf("month").toString(),to_date:Jt()().endOf("month").toString()},url:null,siteURL:null}},validations:{range:{required:lo},formData:{from_date:{required:lo},to_date:{required:lo}}},computed:oo(oo({},Object(o.c)("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(Jt()(this.formData.from_date).format("YYYY-MM-DD"),"&to_date=").concat(Jt()(this.formData.to_date).format("YYYY-MM-DD"))}}),watch:{range:function(e){this.formData.from_date=Jt()(e).startOf("year").toString(),this.formData.to_date=Jt()(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 Jt()()[e](t).toString()},getPreDate:function(e,t){return Jt()().subtract(1,t)[e](t).toString()},onChangeDateRange:function(){switch(this.selectedRange){case"Today":this.formData.from_date=Jt()().toString(),this.formData.to_date=Jt()().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 ao(O.a.mark((function t(){var n;return O.a.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 ao(O.a.mark((function n(){return O.a.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)}}},uo=Object(f.a)(co,(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:{change: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:{change: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-no-wrap 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,po={components:{DownloadIcon:s.p},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}}},fo=(n("18b+"),Object(f.a)(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),mo={components:{UserIcon:l.y,OfficeBuildingIcon:l.s,PencilAltIcon:s.y,CogIcon:s.i,CheckCircleIcon:l.e,ClipboardListIcon:l.g,MailIcon:s.v,BellIcon:l.a,FolderIcon:s.s,RefreshIcon:s.D,CubeIcon:l.j,CloudUploadIcon:s.h,DatabaseIcon:s.k,CreditCardIcon:s.j,ClipboardCheckIcon:l.f},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)}}},ho=Object(f.a)(mo,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-page",[n("div",{staticClass:"pb-6"},[n("sw-page-header",{attrs:{title:e.$tc("settings.setting",1)}},[n("sw-breadcrumb",{attrs:{slot:"breadcrumbs"},slot:"breadcrumbs"},[n("sw-breadcrumb-item",{attrs:{title:e.$t("general.home"),to:"/admin/dashboard"}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{title:e.$tc("settings.setting",2),to:"/admin/settings/user-profile",active:""}})],1)],1)],1),e._v(" "),n("div",{staticClass:"w-full mb-6 select-wrapper xl:hidden"},[n("sw-select",{attrs:{options:e.menuItems,searchable:!0,"show-labels":!1,"allow-empty":!1,"custom-label":e.getCustomLabel},on:{input:e.navigateToSetting},model:{value:e.currentSetting,callback:function(t){e.currentSetting=t},expression:"currentSetting"}})],1),e._v(" "),n("div",{staticClass:"grid md:grid-cols-12"},[n("div",{staticClass:"hidden col-span-3 mt-1 xl:block"},[n("sw-list",e._l(e.menuItems,(function(t,r){return n("sw-list-item",{key:r,staticClass:"py-3",attrs:{title:e.$t(t.title),to:t.link,active:e.hasActiveUrl(t.link),"tag-name":"router-link"}},[n(t.icon,{tag:"component",staticClass:"h-5",attrs:{slot:"icon"},slot:"icon"})],1)})),1)],1),e._v(" "),n("div",{staticClass:"col-span-12 xl:col-span-9"},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])}),[],!1,null,null,null).exports;function _o(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function vo(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){_o(i,r,a,o,s,"next",e)}function s(e){_o(i,r,a,o,s,"throw",e)}o(void 0)}))}}function go(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?go(Object(n),!0).forEach((function(t){bo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):go(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wo=n("ta7f"),xo=wo.required,ko=wo.email,Do=wo.maxLength,Mo={components:{CloudUploadIcon:s.h},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:xo},country_id:{required:xo},email:{email:ko},address_street_1:{maxLength:Do(255)},address_street_2:{maxLength:Do(255)}}},computed:yo(yo({},Object(o.c)(["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:yo(yo(yo({},Object(o.b)("company",["updateCompany","updateCompanyLogo"])),Object(o.b)("user",["fetchCurrentUser"])),{},{onUploadHandler:function(e){this.previewLogo=e.getCroppedCanvas().toDataURL(this.cropperOutputMime)},onHandleUploadError:function(){window.toastr.error("Oops! Something went wrong...")},onChange:function(e){this.cropperOutputMime=e.type,this.fileObject=e},setInitialData:function(){var e=this;return vo(O.a.mark((function t(){var n;return O.a.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 vo(O.a.mark((function t(){var n,r;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:return e.isLoading=!0,t.next=6,e.updateCompany(e.formData);case 6:if(!(n=t.sent).data.success){t.next=17;break}if(e.isLoading=!1,!e.fileObject||!e.previewLogo){t.next=14;break}return(r=new FormData).append("company_logo",JSON.stringify({name:e.fileObject.name,data:e.previewLogo})),t.next=14,e.updateCompanyLogo(r);case 14:return e.isLoading=!1,window.toastr.success(e.$t("settings.company_info.updated_message")),t.abrupt("return",!0);case 17:return e.isLoading=!1,window.toastr.error(n.data.error),t.abrupt("return",!0);case 20:case"end":return t.stop()}}),t)})))()}})},So=Object(f.a)(Mo,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{staticClass:"relative h-full",on:{submit:function(t){return t.preventDefault(),e.updateCompanyData(t)}}},[e.isRequestOnGoing?n("base-loader",{attrs:{"show-bg-overlay":!0}}):e._e(),e._v(" "),n("sw-card",{attrs:{variant:"setting-card"}},[n("template",{slot:"header"},[n("h6",{staticClass:"sw-section-title"},[e._v("\n "+e._s(e.$t("settings.company_info.company_info"))+"\n ")]),e._v(" "),n("p",{staticClass:"mt-2 text-sm leading-snug text-gray-500",staticStyle:{"max-width":"680px"}},[e._v("\n "+e._s(e.$t("settings.company_info.section_description"))+"\n ")])]),e._v(" "),n("div",{staticClass:"grid mb-6 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$tc("settings.company_info.company_logo")}},[n("div",{staticClass:"relative flex items-center justify-center h-24 p-5 mt-2 bg-transparent border-2 border-gray-200 border-dashed rounded-md image-upload-box",attrs:{id:"logo-box"}},[e.previewLogo?n("img",{staticClass:"absolute opacity-100 preview-logo",staticStyle:{"max-height":"80%",animation:"fadeIn 2s ease"},attrs:{src:e.previewLogo}}):n("div",{staticClass:"flex flex-col items-center"},[n("cloud-upload-icon",{staticClass:"h-5 mb-2 text-xl leading-6 text-gray-400"}),e._v(" "),n("p",{staticClass:"text-xs leading-4 text-center text-gray-400"},[e._v("\n Drag a file here or\n "),n("span",{staticClass:"cursor-pointer text-primary-500",attrs:{id:"pick-avatar"}},[e._v("\n browse\n ")]),e._v("\n to choose a file\n ")])],1)]),e._v(" "),n("sw-avatar",{attrs:{trigger:"#logo-box","preview-avatar":e.previewLogo},on:{changed:e.onChange,uploadHandler:e.onUploadHandler,handleUploadError:e.onHandleUploadError},scopedSlots:e._u([{key:"icon",fn:function(){return[n("cloud-upload-icon",{staticClass:"h-5 mb-2 text-xl leading-6 text-gray-400"})]},proxy:!0}])})],1)],1),e._v(" "),n("div",{staticClass:"grid gap-6 sm:grid-col-1 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$tc("settings.company_info.company_name"),error:e.nameError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.formData.name.$error,placeholder:e.$t("settings.company_info.company_name")},on:{input:function(t){return e.$v.formData.name.$touch()}},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$tc("settings.company_info.phone")}},[n("sw-input",{staticClass:"mt-2",attrs:{placeholder:e.$t("settings.company_info.phone")},model:{value:e.formData.phone,callback:function(t){e.$set(e.formData,"phone",t)},expression:"formData.phone"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$tc("settings.company_info.country"),error:e.countryError,required:""}},[n("sw-select",{staticClass:"mt-2",class:{error:e.$v.formData.country_id.$error},attrs:{options:e.countries,searchable:!0,"show-labels":!1,"allow-empty":!1,placeholder:e.$t("general.select_country"),label:"name","track-by":"id"},model:{value:e.country,callback:function(t){e.country=t},expression:"country"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$tc("settings.company_info.state")}},[n("sw-input",{staticClass:"mt-2",attrs:{placeholder:e.$tc("settings.company_info.state"),name:"state",type:"text"},model:{value:e.formData.state,callback:function(t){e.$set(e.formData,"state",t)},expression:"formData.state"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$tc("settings.company_info.city")}},[n("sw-input",{staticClass:"mt-2",attrs:{placeholder:e.$tc("settings.company_info.city"),name:"city",type:"text"},model:{value:e.formData.city,callback:function(t){e.$set(e.formData,"city",t)},expression:"formData.city"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$tc("settings.company_info.zip")}},[n("sw-input",{staticClass:"mt-2",attrs:{placeholder:e.$tc("settings.company_info.zip")},model:{value:e.formData.zip,callback:function(t){e.$set(e.formData,"zip",t)},expression:"formData.zip"}})],1),e._v(" "),n("div",[n("sw-input-group",{attrs:{label:e.$tc("settings.company_info.address"),error:e.address1Error}},[n("sw-textarea",{class:{invalid:e.$v.formData.address_street_1.$error},attrs:{placeholder:e.$tc("general.street_1"),rows:"2"},on:{input:function(t){return e.$v.formData.address_street_1.$touch()}},model:{value:e.formData.address_street_1,callback:function(t){e.$set(e.formData,"address_street_1",t)},expression:"formData.address_street_1"}})],1),e._v(" "),n("sw-input-group",{staticClass:"my-2",attrs:{error:e.address2Error}},[n("sw-textarea",{class:{invalid:e.$v.formData.address_street_2.$error},attrs:{placeholder:e.$tc("general.street_2"),rows:"2"},on:{input:function(t){return e.$v.formData.address_street_2.$touch()}},model:{value:e.formData.address_street_2,callback:function(t){e.$set(e.formData,"address_street_2",t)},expression:"formData.address_street_2"}})],1)],1)],1),e._v(" "),n("sw-button",{staticClass:"mt-4",attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2 -ml-1"}),e._v("\n "+e._s(e.$tc("settings.company_info.save"))+"\n ")],1)],2)],1)}),[],!1,null,null,null).exports;function Co(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Lo(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Co(i,r,a,o,s,"next",e)}function s(e){Co(i,r,a,o,s,"throw",e)}o(void 0)}))}}function To(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?To(Object(n),!0).forEach((function(t){Oo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):To(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 jo=n("ta7f"),Ao=jo.required,Po=jo.maxLength,Yo=jo.alpha,$o={props:{settings:{type:Object,require:!0,default:!1}},data:function(){return{invoiceAutogenerate:!1,invoices:{invoice_prefix:null,invoice_mail_body:null,company_address_format:null,shipping_address_format:null,billing_address_format:null},isLoading:!1,InvoiceMailFields:["customer","customerCustom","invoice","invoiceCustom","company"],billingFields:["billing","customer","customerCustom","invoiceCustom"],shippingFields:["shipping","customer","customerCustom","invoiceCustom"],companyFields:["company","invoiceCustom"]}},computed:{invoicePrefixError:function(){return this.$v.invoices.invoice_prefix.$error?this.$v.invoices.invoice_prefix.required?this.$v.invoices.invoice_prefix.maxLength?this.$v.invoices.invoice_prefix.alpha?void 0:this.$t("validation.characters_only"):this.$t("validation.prefix_maxlength"):this.$t("validation.required"):""}},watch:{settings:function(e){this.invoices.invoice_prefix=e?e.invoice_prefix:"",this.invoices.invoice_mail_body=e?e.invoice_mail_body:null,this.invoices.company_address_format=e?e.invoice_company_address_format:null,this.invoices.shipping_address_format=e?e.invoice_shipping_address_format:null,this.invoices.billing_address_format=e?e.invoice_billing_address_format:null,this.invoice_auto_generate=e?e.invoice_auto_generate:"","YES"===this.invoice_auto_generate?this.invoiceAutogenerate=!0:this.invoiceAutogenerate=!1}},validations:{invoices:{invoice_prefix:{required:Ao,maxLength:Po(5),alpha:Yo}}},methods:Eo(Eo({},Object(o.b)("company",["updateCompanySettings"])),{},{setInvoiceSetting:function(){var e=this;return Lo(O.a.mark((function t(){var n;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={settings:{invoice_auto_generate:e.invoiceAutogenerate?"YES":"NO"}},t.next=3,e.updateCompanySettings(n);case 3:t.sent.data&&window.toastr.success(e.$t("general.setting_updated"));case 5:case"end":return t.stop()}}),t)})))()},changeToUppercase:function(e){if("INVOICES"===e)return this.invoices.invoice_prefix=this.invoices.invoice_prefix.toUpperCase(),!0},updateInvoiceSetting:function(){var e=this;return Lo(O.a.mark((function t(){var n;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.invoices.$touch(),!e.$v.invoices.$invalid){t.next=3;break}return t.abrupt("return",!1);case 3:n={settings:{invoice_prefix:e.invoices.invoice_prefix,invoice_mail_body:e.invoices.invoice_mail_body,invoice_company_address_format:e.invoices.company_address_format,invoice_billing_address_format:e.invoices.billing_address_format,invoice_shipping_address_format:e.invoices.shipping_address_format}},e.updateSetting(n)&&window.toastr.success(e.$t("settings.customization.invoices.invoice_setting_updated"));case 5:case"end":return t.stop()}}),t)})))()},updateSetting:function(e){var t=this;return Lo(O.a.mark((function n(){return O.a.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)})))()}})},Io=Object(f.a)($o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("form",{staticClass:"mt-6",attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.updateInvoiceSetting(t)}}},[n("sw-input-group",{attrs:{label:e.$t("settings.customization.invoices.invoice_prefix"),error:e.invoicePrefixError}},[n("sw-input",{staticStyle:{"max-width":"30%"},attrs:{invalid:e.$v.invoices.invoice_prefix.$error},on:{input:function(t){return e.$v.invoices.invoice_prefix.$touch()},keyup:function(t){return e.changeToUppercase("INVOICES")}},model:{value:e.invoices.invoice_prefix,callback:function(t){e.$set(e.invoices,"invoice_prefix",t)},expression:"invoices.invoice_prefix"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-6 mb-4",attrs:{label:e.$t("settings.customization.invoices.default_invoice_email_body")}},[n("base-custom-input",{staticClass:"mt-2",attrs:{fields:e.InvoiceMailFields},model:{value:e.invoices.invoice_mail_body,callback:function(t){e.$set(e.invoices,"invoice_mail_body",t)},expression:"invoices.invoice_mail_body"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-6 mb-4",attrs:{label:e.$t("settings.customization.invoices.company_address_format")}},[n("base-custom-input",{staticClass:"mt-2",attrs:{fields:e.companyFields},model:{value:e.invoices.company_address_format,callback:function(t){e.$set(e.invoices,"company_address_format",t)},expression:"invoices.company_address_format"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-6 mb-4",attrs:{label:e.$t("settings.customization.invoices.shipping_address_format")}},[n("base-custom-input",{staticClass:"mt-2",attrs:{fields:e.shippingFields},model:{value:e.invoices.shipping_address_format,callback:function(t){e.$set(e.invoices,"shipping_address_format",t)},expression:"invoices.shipping_address_format"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-6 mb-4",attrs:{label:e.$t("settings.customization.invoices.billing_address_format")}},[n("base-custom-input",{staticClass:"mt-2",attrs:{fields:e.billingFields},model:{value:e.invoices.billing_address_format,callback:function(t){e.$set(e.invoices,"billing_address_format",t)},expression:"invoices.billing_address_format"}})],1),e._v(" "),n("sw-button",{staticClass:"mt-4",attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.$t("settings.customization.save"))+"\n ")],1)],1),e._v(" "),n("sw-divider",{staticClass:"mt-6 mb-8"}),e._v(" "),n("div",{staticClass:"flex"},[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 ")])])])],1)}),[],!1,null,null,null).exports;function No(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function zo(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){No(i,r,a,o,s,"next",e)}function s(e){No(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Fo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ro(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fo(Object(n),!0).forEach((function(t){Ho(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ho(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bo=n("ta7f"),qo=Bo.required,Uo=Bo.maxLength,Vo=Bo.alpha,Wo={props:{settings:{type:Object,require:!0,default:!1}},data:function(){return{estimateAutogenerate:!1,estimates:{estimate_prefix:null,estimate_mail_body:null,estimate_terms_and_conditions:null,company_address_format:null,shipping_address_format:null,billing_address_format:null},billingFields:["billing","customer","customerCustom","estimateCustom"],shippingFields:["shipping","customer","customerCustom","estimateCustom"],mailFields:["customer","estimate","company","customerCustom","estimateCustom"],companyFields:["company","estimateCustom"],isLoading:!1}},computed:{estimatePrefixError:function(){return this.$v.estimates.estimate_prefix.$error?this.$v.estimates.estimate_prefix.required?this.$v.estimates.estimate_prefix.maxLength?this.$v.estimates.estimate_prefix.alpha?void 0:this.$t("validation.characters_only"):this.$t("validation.prefix_maxlength"):this.$t("validation.required"):""}},validations:{estimates:{estimate_prefix:{required:qo,maxLength:Uo(5),alpha:Vo}}},watch:{settings:function(e){this.estimates.estimate_prefix=e?e.estimate_prefix:"",this.estimates.estimate_mail_body=e?e.estimate_mail_body:"",this.estimates.company_address_format=e?e.estimate_company_address_format:"",this.estimates.shipping_address_format=e?e.estimate_shipping_address_format:"",this.estimates.billing_address_format=e?e.estimate_billing_address_format:"",this.estimates.estimate_terms_and_conditions=e?e.estimate_terms_and_conditions:"",this.estimate_auto_generate=e?e.estimate_auto_generate:"","YES"===this.estimate_auto_generate?this.estimateAutogenerate=!0:this.estimateAutogenerate=!1}},methods:Ro(Ro({},Object(o.b)("company",["updateCompanySettings"])),{},{setEstimateSetting:function(){var e=this;return zo(O.a.mark((function t(){var n;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={settings:{estimate_auto_generate:e.estimateAutogenerate?"YES":"NO"}},t.next=3,e.updateCompanySettings(n);case 3:t.sent.data&&window.toastr.success(e.$t("general.setting_updated"));case 5:case"end":return t.stop()}}),t)})))()},changeToUppercase:function(e){if("ESTIMATES"===e)return this.estimates.estimate_prefix=this.estimates.estimate_prefix.toUpperCase(),!0},updateEstimateSetting:function(){var e=this;return zo(O.a.mark((function t(){var n;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.estimates.$touch(),!e.$v.estimates.$invalid){t.next=3;break}return t.abrupt("return",!1);case 3:n={settings:{estimate_prefix:e.estimates.estimate_prefix,estimate_mail_body:e.estimates.estimate_mail_body,estimate_company_address_format:e.estimates.company_address_format,estimate_shipping_address_format:e.estimates.shipping_address_format,estimate_billing_address_format:e.estimates.billing_address_format}},e.updateSetting(n)&&window.toastr.success(e.$t("settings.customization.estimates.estimate_setting_updated"));case 5:case"end":return t.stop()}}),t)})))()},updateSetting:function(e){var t=this;return zo(O.a.mark((function n(){return O.a.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)})))()}})},Ko=Object(f.a)(Wo,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("form",{staticClass:"mt-6",attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.updateEstimateSetting(t)}}},[n("sw-input-group",{attrs:{label:e.$t("settings.customization.estimates.estimate_prefix"),error:e.estimatePrefixError}},[n("sw-input",{staticStyle:{"max-width":"30%"},attrs:{invalid:e.$v.estimates.estimate_prefix.$error},on:{input:function(t){return e.$v.estimates.estimate_prefix.$touch()},keyup:function(t){return e.changeToUppercase("ESTIMATES")}},model:{value:e.estimates.estimate_prefix,callback:function(t){e.$set(e.estimates,"estimate_prefix",t)},expression:"estimates.estimate_prefix"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-6 mb-4",attrs:{label:e.$t("settings.customization.estimates.default_estimate_email_body")}},[n("base-custom-input",{attrs:{fields:e.mailFields},model:{value:e.estimates.estimate_mail_body,callback:function(t){e.$set(e.estimates,"estimate_mail_body",t)},expression:"estimates.estimate_mail_body"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-6 mb-4",attrs:{label:e.$t("settings.customization.estimates.company_address_format")}},[n("base-custom-input",{attrs:{fields:e.companyFields},model:{value:e.estimates.company_address_format,callback:function(t){e.$set(e.estimates,"company_address_format",t)},expression:"estimates.company_address_format"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-6 mb-4",attrs:{label:e.$t("settings.customization.estimates.shipping_address_format")}},[n("base-custom-input",{attrs:{fields:e.shippingFields},model:{value:e.estimates.shipping_address_format,callback:function(t){e.$set(e.estimates,"shipping_address_format",t)},expression:"estimates.shipping_address_format"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-6 mb-4",attrs:{label:e.$t("settings.customization.estimates.billing_address_format")}},[n("base-custom-input",{attrs:{fields:e.billingFields},model:{value:e.estimates.billing_address_format,callback:function(t){e.$set(e.estimates,"billing_address_format",t)},expression:"estimates.billing_address_format"}})],1),e._v(" "),n("sw-button",{staticClass:"mt-4",attrs:{disabled:e.isLoading,loading:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.$t("settings.customization.save"))+"\n ")],1)],1),e._v(" "),n("sw-divider",{staticClass:"mt-6 mb-8"}),e._v(" "),n("div",{staticClass:"flex"},[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 ")])])])],1)}),[],!1,null,null,null).exports;function Go(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Jo(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Go(i,r,a,o,s,"next",e)}function s(e){Go(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zo(Object(n),!0).forEach((function(t){Qo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zo(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 es=n("ta7f"),ts=es.required,ns=es.maxLength,rs=es.alpha,as={props:{settings:{type:Object,require:!0,default:!1}},data:function(){return{paymentAutogenerate:!1,payments:{payment_prefix:null,payment_mail_body:null,from_customer_address_format:null,company_address_format:null},mailFields:["customer","customerCustom","company","payment","paymentCustom"],customerAddressFields:["billing","customer","customerCustom","paymentCustom"],companyFields:["company","paymentCustom"],isLoading:!1}},computed:{paymentPrefixError:function(){return this.$v.payments.payment_prefix.$error?this.$v.payments.payment_prefix.required?this.$v.payments.payment_prefix.maxLength?this.$v.payments.payment_prefix.alpha?void 0:this.$t("validation.characters_only"):this.$t("validation.prefix_maxlength"):this.$t("validation.required"):""}},validations:{payments:{payment_prefix:{required:ts,maxLength:ns(5),alpha:rs}}},watch:{settings:function(e){this.payments.payment_prefix=e?e.payment_prefix:"",this.payments.payment_mail_body=e?e.payment_mail_body:"",this.payments.company_address_format=e?e.payment_company_address_format:"",this.payments.from_customer_address_format=e?e.payment_from_customer_address_format:"",this.payment_auto_generate=e?e.payment_auto_generate:"","YES"===this.payment_auto_generate?this.paymentAutogenerate=!0:this.paymentAutogenerate=!1}},methods:Xo(Xo(Xo({},Object(o.b)("modal",["openModal"])),Object(o.b)("company",["updateCompanySettings"])),{},{changeToUppercase:function(e){if("PAYMENTS"===e)return this.payments.payment_prefix=this.payments.payment_prefix.toUpperCase(),!0},setPaymentSetting:function(){var e=this;return Jo(O.a.mark((function t(){var n;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={settings:{payment_auto_generate:e.paymentAutogenerate?"YES":"NO"}},t.next=3,e.updateCompanySettings(n);case 3:t.sent.data&&window.toastr.success(e.$t("general.setting_updated"));case 5:case"end":return t.stop()}}),t)})))()},updatePaymentSetting:function(){var e=this;return Jo(O.a.mark((function t(){var n;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.payments.$touch(),!e.$v.payments.$invalid){t.next=3;break}return t.abrupt("return",!1);case 3:n={settings:{payment_prefix:e.payments.payment_prefix,payment_mail_body:e.payments.payment_mail_body,payment_company_address_format:e.payments.company_address_format,payment_from_customer_address_format:e.payments.from_customer_address_format}},e.updateSetting(n)&&window.toastr.success(e.$t("settings.customization.payments.payment_setting_updated"));case 5:case"end":return t.stop()}}),t)})))()},updateSetting:function(e){var t=this;return Jo(O.a.mark((function n(){return O.a.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)})))()}})},is=Object(f.a)(as,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("form",{staticClass:"mt-6",attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.updatePaymentSetting(t)}}},[n("sw-input-group",{attrs:{label:e.$t("settings.customization.payments.payment_prefix"),error:e.paymentPrefixError}},[n("sw-input",{staticClass:"mt-2",staticStyle:{"max-width":"30%"},attrs:{invalid:e.$v.payments.payment_prefix.$error},on:{input:function(t){return e.$v.payments.payment_prefix.$touch()},keyup:function(t){return e.changeToUppercase("PAYMENTS")}},model:{value:e.payments.payment_prefix,callback:function(t){e.$set(e.payments,"payment_prefix",t)},expression:"payments.payment_prefix"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-6 mb-4",attrs:{label:e.$t("settings.customization.payments.default_payment_email_body")}},[n("base-custom-input",{attrs:{fields:e.mailFields},model:{value:e.payments.payment_mail_body,callback:function(t){e.$set(e.payments,"payment_mail_body",t)},expression:"payments.payment_mail_body"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-6 mb-4",attrs:{label:e.$t("settings.customization.payments.company_address_format")}},[n("base-custom-input",{attrs:{fields:e.companyFields},model:{value:e.payments.company_address_format,callback:function(t){e.$set(e.payments,"company_address_format",t)},expression:"payments.company_address_format"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-6 mb-4",attrs:{label:e.$t("settings.customization.payments.from_customer_address_format")}},[n("base-custom-input",{attrs:{fields:e.customerAddressFields},model:{value:e.payments.from_customer_address_format,callback:function(t){e.$set(e.payments,"from_customer_address_format",t)},expression:"payments.from_customer_address_format"}})],1),e._v(" "),n("sw-button",{staticClass:"my-4",attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.$t("settings.customization.save"))+"\n ")],1)],1),e._v(" "),n("sw-divider",{staticClass:"mt-6 mb-8"}),e._v(" "),n("div",{staticClass:"flex"},[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 ")])])])],1)}),[],!1,null,null,null).exports;function os(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function ss(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){os(i,r,a,o,s,"next",e)}function s(e){os(i,r,a,o,s,"throw",e)}o(void 0)}))}}function ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ls(Object(n),!0).forEach((function(t){us(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ls(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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}var ds=n("ta7f"),ps=(ds.required,ds.maxLength,ds.alpha,{components:{TrashIcon:s.I,PlusIcon:s.B,PencilIcon:s.z},methods:cs(cs(cs({},Object(o.b)("modal",["openModal"])),Object(o.b)("item",["deleteItemUnit","fetchItemUnits"])),{},{fetchData:function(e){var t=this;return ss(O.a.mark((function n(){var r,a,i,o;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},n.next=4,t.fetchItemUnits(i);case 4:return o=n.sent,n.abrupt("return",{data:o.data.units.data,pagination:{totalPages:o.data.units.last_page,currentPage:r,count:o.data.units.count}});case 6:case"end":return n.stop()}}),n)})))()},addItemUnit:function(){var e=this;return ss(O.a.mark((function t(){return O.a.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 ss(O.a.mark((function n(){return O.a.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 ss(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$t("settings.customization.items.item_unit_confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=ss(O.a.mark((function n(r){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=9;break}return n.next=3,t.deleteItemUnit(e);case 3:if(!n.sent.data.success){n.next=8;break}return window.toastr.success(t.$t("settings.customization.items.deleted_message")),t.$refs.table.refresh(),n.abrupt("return",!0);case 8:window.toastr.error(t.$t("settings.customization.items.already_in_use"));case 9:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()}})});function fs(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hs(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){_s(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 _s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vs={data:function(){return{settings:{},isRequestOnGoing:!1}},components:{InvoicesTab:Io,EstimatesTab:Ko,PaymentsTab:is,ItemsTab:Object(f.a)(ps,(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-no-wrap"},[n("sw-button",{attrs:{size:"lg",variant:"primary-outline"},on:{click:e.addItemUnit}},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("settings.customization.items.add_item_unit"))+"\n ")],1)],1),e._v(" "),n("sw-table-component",{ref:"table",attrs:{variant:"gray",data:e.fetchData,"show-filter":!1}},[n("sw-table-column",{attrs:{sortable:!0,label:e.$t("settings.customization.items.unit_name"),show:"name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.customization.items.unit_name")))]),e._v(" "),n("span",{staticClass:"mt-6"},[e._v(e._s(t.name))])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"action-dropdown"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.tax_types.action")))]),e._v(" "),n("sw-dropdown",[n("dot-icon",{staticClass:"h-5 mr-3 text-primary-800",attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.editItemUnit(t)}}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.removeItemUnit(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)]}}])})],1)],1)}),[],!1,null,null,null).exports},created:function(){this.fetchSettings()},methods:hs(hs({},Object(o.b)("company",["fetchCompanySettings"])),{},{fetchSettings:function(){var e,t=this;return(e=O.a.mark((function e(){var n;return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.isRequestOnGoing=!0,e.next=3,t.fetchCompanySettings(["payment_auto_generate","payment_prefix","payment_mail_body","invoice_auto_generate","invoice_prefix","invoice_mail_body","estimate_auto_generate","estimate_prefix","estimate_mail_body","invoice_billing_address_format","invoice_shipping_address_format","invoice_company_address_format","invoice_mail_body","payment_mail_body","payment_company_address_format","payment_from_customer_address_format","estimate_company_address_format","estimate_billing_address_format","estimate_shipping_address_format"]);case 3:n=e.sent,t.settings=n.data,t.isRequestOnGoing=!1;case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){fs(i,r,a,o,s,"next",e)}function s(e){fs(i,r,a,o,s,"throw",e)}o(void 0)}))})()}})},gs=Object(f.a)(vs,(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 ys(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function bs(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){ys(i,r,a,o,s,"next",e)}function s(e){ys(i,r,a,o,s,"throw",e)}o(void 0)}))}}function ws(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ws(Object(n),!0).forEach((function(t){ks(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ws(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ks(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ds=n("ta7f"),Ms={data:function(){return{isLoading:!1,notification_email:null,notify_invoice_viewed:null,notify_estimate_viewed:null,isRequestOnGoing:!1}},validations:{notification_email:{required:Ds.required,email:Ds.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({},Object(o.b)("company",["fetchCompanySettings","updateCompanySettings"])),{},{fetchData:function(){var e=this;return bs(O.a.mark((function t(){var n;return O.a.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 bs(O.a.mark((function t(){var n;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:return e.isLoading=!0,n={settings:{notification_email:e.notification_email}},t.next=7,e.updateCompanySettings(n);case 7:t.sent.data.success&&(e.isLoading=!1,window.toastr.success(e.$tc("settings.notification.email_save_message")));case 9:case"end":return t.stop()}}),t)})))()},setInvoiceViewd:function(e){var t=this;return bs(O.a.mark((function e(){var n;return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.$v.$touch(),!t.$v.$invalid){e.next=4;break}return t.notify_invoice_viewed=!t.notify_invoice_viewed,e.abrupt("return",!0);case 4:return n={settings:{notify_invoice_viewed:t.notify_invoice_viewed?"YES":"NO"}},e.next=7,t.updateCompanySettings(n);case 7:e.sent.data.success&&window.toastr.success(t.$tc("general.setting_updated"));case 9:case"end":return e.stop()}}),e)})))()},setEstimateViewd:function(e){var t=this;return bs(O.a.mark((function e(){var n;return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.$v.$touch(),!t.$v.$invalid){e.next=4;break}return t.notify_estimate_viewed=!t.notify_estimate_viewed,e.abrupt("return",!0);case 4:return n={settings:{notify_estimate_viewed:t.notify_estimate_viewed?"YES":"NO"}},e.next=7,t.updateCompanySettings(n);case 7:e.sent.data&&window.toastr.success(t.$tc("general.setting_updated"));case 9:case"end":return e.stop()}}),e)})))()}})},Ss=Object(f.a)(Ms,(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 Cs(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Ls(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Cs(i,r,a,o,s,"next",e)}function s(e){Cs(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Ts(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ts(Object(n),!0).forEach((function(t){Os(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ts(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Os(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var js=n("ta7f").required,As={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:js},language:{required:js},dateFormat:{required:js},timeZone:{required:js},fiscalYear:{required:js}}},computed:Es(Es(Es({},Object(o.c)(["currencies","timeZones","dateFormats","fiscalYears","languages"])),Object(o.c)("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 Ls(O.a.mark((function t(){return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.setInitialData();case 1:case"end":return t.stop()}}),t)})))()},methods:Es(Es(Es({},Object(o.b)("company",["setDefaultCurrency","fetchCompanySettings","updateCompanySettings"])),Object(o.b)(["fetchLanguages","fetchFiscalYears","fetchDateFormats","fetchTimeZones"])),{},{currencyNameWithCode:function(e){var t=e.name,n=e.code;return"".concat(n," - ").concat(t)},setInitialData:function(){var e=this;return Ls(O.a.mark((function t(){var n;return O.a.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 Ls(O.a.mark((function t(){var n,r;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:return e.isLoading=!0,n={settings:{currency:e.formData.currency.id,time_zone:e.formData.timeZone.value,fiscal_year:e.formData.fiscalYear.value,language:e.formData.language.code,carbon_date_format:e.formData.dateFormat.carbon_format_value,moment_date_format:e.formData.dateFormat.moment_format_value}},t.next=7,e.updateCompanySettings(n);case 7:if(!(r=t.sent).data.success){t.next=13;break}return e.isLoading=!1,e.setDefaultCurrency(e.formData.currency),window.toastr.success(e.$t("settings.preferences.updated_message")),t.abrupt("return",!0);case 13:return window.toastr.error(r.data.error),t.abrupt("return",!0);case 15:case"end":return t.stop()}}),t)})))()},setDiscount:function(){var e=this;return Ls(O.a.mark((function t(){var n;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={settings:{discount_per_item:e.discount_per_item?"YES":"NO"}},t.next=3,e.updateCompanySettings(n);case 3:t.sent.data.success&&window.toastr.success(e.$t("general.setting_updated"));case 5:case"end":return t.stop()}}),t)})))()}})},Ps=Object(f.a)(As,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{staticClass:"relative",attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.updatePreferencesData(t)}}},[e.isRequestOnGoing?n("base-loader",{attrs:{"show-bg-overlay":!0}}):e._e(),e._v(" "),n("sw-card",{attrs:{variant:"setting-card"}},[n("template",{slot:"header"},[n("h6",{staticClass:"sw-section-title"},[e._v("\n "+e._s(e.$t("settings.menu_title.preferences"))+"\n ")]),e._v(" "),n("p",{staticClass:"mt-2 text-sm leading-snug text-gray-500",staticStyle:{"max-width":"680px"}},[e._v("\n "+e._s(e.$t("settings.preferences.general_settings"))+"\n ")])]),e._v(" "),n("div",{staticClass:"grid gap-6 sm:grid-col-1 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$tc("settings.preferences.currency"),error:e.currencyError,required:""}},[n("sw-select",{staticClass:"mt-2",class:{error:e.$v.formData.currency.$error},attrs:{options:e.currencies,"custom-label":e.currencyNameWithCode,searchable:!0,"show-labels":!1,"allow-empty":!1,placeholder:e.$tc("settings.currencies.select_currency"),label:"name","track-by":"id"},model:{value:e.formData.currency,callback:function(t){e.$set(e.formData,"currency",t)},expression:"formData.currency"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$tc("settings.preferences.default_language"),error:e.languageError,required:""}},[n("sw-select",{staticClass:"mt-2",class:{error:e.$v.formData.language.$error},attrs:{options:e.languages,searchable:!0,"show-labels":!1,"allow-empty":!1,placeholder:e.$tc("settings.preferences.select_language"),label:"name","track-by":"code"},model:{value:e.formData.language,callback:function(t){e.$set(e.formData,"language",t)},expression:"formData.language"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$tc("settings.preferences.time_zone"),error:e.timeZoneError,required:""}},[n("sw-select",{staticClass:"mt-2",class:{error:e.$v.formData.timeZone.$error},attrs:{options:e.timeZones,searchable:!0,"show-labels":!1,"allow-empty":!1,placeholder:e.$tc("settings.preferences.select_time_zone"),label:"key","track-by":"key"},model:{value:e.formData.timeZone,callback:function(t){e.$set(e.formData,"timeZone",t)},expression:"formData.timeZone"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$tc("settings.preferences.date_format"),error:e.dateFormatError,required:""}},[n("sw-select",{staticClass:"mt-2",class:{error:e.$v.formData.dateFormat.$error},attrs:{options:e.dateFormats,searchable:!0,"show-labels":!1,"allow-empty":!1,placeholder:e.$tc("settings.preferences.select_date_format"),label:"display_date"},model:{value:e.formData.dateFormat,callback:function(t){e.$set(e.formData,"dateFormat",t)},expression:"formData.dateFormat"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-2",attrs:{label:e.$tc("settings.preferences.fiscal_year"),error:e.fiscalYearError,required:""}},[n("sw-select",{class:{error:e.$v.formData.fiscalYear.$error},attrs:{options:e.fiscalYears,"show-labels":!1,"allow-empty":!1,searchable:!0,placeholder:e.$tc("settings.preferences.select_financial_year"),label:"key","track-by":"value"},model:{value:e.formData.fiscalYear,callback:function(t){e.$set(e.formData,"fiscalYear",t)},expression:"formData.fiscalYear"}})],1)],1),e._v(" "),n("sw-button",{staticClass:"mt-6",attrs:{variant:"primary",type:"submit",disabled:e.isLoading,loading:e.isLoading}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2 -ml-1"}),e._v("\n "+e._s(e.$tc("settings.company_info.save"))+"\n ")],1),e._v(" "),n("sw-divider",{staticClass:"mt-6 mb-8"}),e._v(" "),n("div",{staticClass:"flex"},[n("div",{staticClass:"relative w-12"},[n("sw-switch",{staticClass:"absolute",staticStyle:{top:"-18px"},on:{change:e.setDiscount},model:{value:e.discount_per_item,callback:function(t){e.discount_per_item=t},expression:"discount_per_item"}})],1),e._v(" "),n("div",{staticClass:"ml-15"},[n("p",{staticClass:"p-0 mb-1 text-base leading-snug text-black"},[e._v("\n "+e._s(e.$t("settings.preferences.discount_per_item"))+"\n ")]),e._v(" "),n("p",{staticClass:"p-0 m-0 text-xs leading-tight text-gray-500",staticStyle:{"max-width":"480px"}},[e._v("\n "+e._s(e.$t("settings.preferences.discount_setting_description"))+"\n ")])])])],2)],1)}),[],!1,null,null,null).exports,Ys=n("CaTG");function $s(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Is(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){$s(i,r,a,o,s,"next",e)}function s(e){$s(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Ns(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zs(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 Rs=n("ta7f"),Hs=Rs.required,Bs=(Rs.requiredIf,Rs.sameAs),qs=Rs.email,Us=Rs.minLength,Vs={components:{CloudUploadIcon:s.h,BaseLoader:Ys.a},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:Hs},email:{required:Hs,email:qs},password:{minLength:Us(8)},confirm_password:{sameAsPassword:Bs("password")}},language:{required:Hs}},computed:zs(zs({},Object(o.c)(["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:zs(zs(zs({},Object(o.b)("user",["fetchCurrentUser","updateCurrentUser","fetchUserSettings","updateUserSettings","uploadAvatar"])),Object(o.b)(["fetchLanguages"])),{},{onUploadHandler:function(e){this.previewAvatar=e.getCroppedCanvas().toDataURL(this.cropperOutputMime)},onHandleUploadError:function(){window.toastr.error("Oops! Something went wrong...")},onChange:function(e){this.cropperOutputMime=e.type,this.fileObject=e},setInitialData:function(){var e=this;return Is(O.a.mark((function t(){var n,r;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isRequestOnGoing=!0,t.next=3,e.fetchCurrentUser();case 3:return n=t.sent,e.formData.name=n.data.user.name,e.formData.email=n.data.user.email,n.data.user.avatar?e.previewAvatar=n.data.user.avatar:e.previewAvatar="/images/default-avatar.jpg",t.next=9,e.fetchUserSettings(["language"]);case 9:r=t.sent,e.language=e.languages.find((function(e){return e.code==r.data.language})),e.isRequestOnGoing=!1;case 12:case"end":return t.stop()}}),t)})))()},updateUserData:function(){var e=this;return Is(O.a.mark((function t(){var n,r,a,i;return O.a.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},null!=e.formData.password&&void 0!==e.formData.password&&""!==e.formData.password&&(n=zs(zs({},n),{},{password:e.formData.password})),t.next=8,e.updateCurrentUser(n);case 8:return r=t.sent,a={settings:{language:e.language.code}},t.next=12,e.updateUserSettings(a);case 12:if(t.sent,!r.data.success){t.next=20;break}return e.isLoading=!1,e.fileObject&&e.previewAvatar&&((i=new FormData).append("admin_avatar",JSON.stringify({name:e.fileObject.name,data:e.previewAvatar})),e.uploadAvatar(i)),window.toastr.success(e.$t("settings.account_settings.updated_message")),e.formData.password="",e.formData.confirm_password="",t.abrupt("return",!0);case 20:return window.toastr.error(r.data.error),e.isLoading=!1,t.abrupt("return",!0);case 23:case"end":return t.stop()}}),t)})))()}})},Ws=Object(f.a)(Vs,(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-no-wrap"},[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 Ks(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Gs(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Ks(i,r,a,o,s,"next",e)}function s(e){Ks(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Js(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zs(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){Xs(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 Xs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qs={components:{TrashIcon:s.I,PencilIcon:s.z,PlusIcon:s.B},data:function(){return{formData:{tax_per_item:!1},isRequestOnGoing:!1}},computed:Zs({},Object(o.c)("taxType",["taxTypes","getTaxTypeById"])),mounted:function(){this.getTaxSetting()},methods:Zs(Zs(Zs(Zs({},Object(o.b)("modal",["openModal"])),Object(o.b)("taxType",["indexLoadData","deleteTaxType","fetchTaxType","fetchTaxTypes"])),Object(o.b)("company",["fetchCompanySettings","updateCompanySettings"])),{},{fetchData:function(e){var t=this;return Gs(O.a.mark((function n(){var r,a,i,o;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},n.next=4,t.fetchTaxTypes(i);case 4:return o=n.sent,n.abrupt("return",{data:o.data.taxTypes.data,pagination:{totalPages:o.data.taxTypes.last_page,currentPage:r,count:o.data.taxTypes.count}});case 6:case"end":return n.stop()}}),n)})))()},getTaxSetting:function(){var e=this;return Gs(O.a.mark((function t(){var n;return O.a.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 Gs(O.a.mark((function e(){var n;return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={settings:{tax_per_item:t.formData.tax_per_item?"YES":"NO"}},e.next=3,t.updateCompanySettings(n);case 3:e.sent.data&&window.toastr.success(t.$t("general.setting_updated"));case 5:case"end":return e.stop()}}),e)})))()},removeTax:function(e,t){var n=this;return Gs(O.a.mark((function t(){return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:swal({title:n.$t("general.are_you_sure"),text:n.$t("settings.tax_types.confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=Gs(O.a.mark((function t(r){return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=9;break}return t.next=3,n.deleteTaxType(e);case 3:if(!t.sent.data.success){t.next=8;break}return window.toastr.success(n.$t("settings.tax_types.deleted_message")),n.$refs.table.refresh(),t.abrupt("return",!0);case 8:window.toastr.error(n.$t("settings.tax_types.already_in_use"));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},openTaxModal:function(){this.openModal({title:this.$t("settings.tax_types.add_tax"),componentName:"TaxTypeModal",refreshData:this.$refs.table.refresh})},editTax:function(e){var t=this;return Gs(O.a.mark((function n(){var r;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.fetchTaxType(e);case 2:r=n.sent,t.openModal({title:t.$t("settings.tax_types.edit_tax"),componentName:"TaxTypeModal",id:e,data:r.data.taxType,refreshData:t.$refs.table.refresh});case 4:case"end":return n.stop()}}),n)})))()}})},el=Object(f.a)(Qs,(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-no-wrap",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 tl(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function nl(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){tl(i,r,a,o,s,"next",e)}function s(e){tl(i,r,a,o,s,"throw",e)}o(void 0)}))}}function rl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function al(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rl(Object(n),!0).forEach((function(t){il(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function il(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ol=n("ta7f"),sl=(ol.required,ol.maxLength,ol.alpha,{components:{TrashIcon:s.I,PencilIcon:s.z,PlusIcon:s.B},methods:al(al(al({},Object(o.b)("modal",["openModal"])),Object(o.b)("notes",["fetchNotes","deleteNote"])),{},{fetchData:function(e){var t=this;return nl(O.a.mark((function n(){var r,a,i,o;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},n.next=4,t.fetchNotes(i);case 4:return o=n.sent,n.abrupt("return",{data:o.data.notes.data,pagination:{totalPages:o.data.notes.last_page,currentPage:r,count:o.data.notes.count}});case 6:case"end":return n.stop()}}),n)})))()},removeNote:function(e){var t=this;swal({title:this.$t("general.are_you_sure"),text:this.$t("settings.customization.notes.note_confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=nl(O.a.mark((function n(r){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=9;break}return n.next=3,t.deleteNote(e);case 3:if(!n.sent.data.success){n.next=8;break}return window.toastr.success(t.$t("settings.customization.notes.deleted_message")),t.$refs.table.refresh(),n.abrupt("return",!0);case 8:window.toastr.error(t.$t("settings.customization.notes.already_in_use"));case 9:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}())},editNote:function(e){this.openModal({title:this.$t("settings.customization.notes.edit_note"),componentName:"NoteSelectModal",id:e.id,data:e,variant:"lg",refreshData:this.$refs.table.refresh})},openNoteSelectModal:function(){this.openModal({title:this.$t("settings.customization.notes.add_note"),componentName:"NoteSelectModal",variant:"lg",refreshData:this.$refs.table.refresh})}})}),ll=Object(f.a)(sl,(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-no-wrap",attrs:{slot:"header"},slot:"header"},[n("div",[n("h6",{staticClass:"sw-section-title"},[e._v("\n "+e._s(e.$t("settings.customization.notes.title"))+"\n ")]),e._v(" "),n("p",{staticClass:"mt-2 text-sm leading-snug text-gray-500",staticStyle:{"max-width":"680px"}},[e._v("\n "+e._s(e.$t("settings.customization.notes.description"))+"\n ")])]),e._v(" "),n("div",{staticClass:"mt-4 lg:mt-0 lg:ml-2"},[n("sw-button",{attrs:{size:"lg",variant:"primary-outline"},on:{click:e.openNoteSelectModal}},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("settings.customization.notes.add_note"))+"\n ")],1)],1)]),e._v(" "),n("sw-table-component",{ref:"table",attrs:{variant:"gray","show-filter":!1,data:e.fetchData}},[n("sw-table-column",{attrs:{label:e.$t("settings.customization.notes.name"),show:"name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.customization.notes.name")))]),e._v(" "),n("span",{staticClass:"mt-6"},[e._v(e._s(t.name))])]}}])}),e._v(" "),n("sw-table-column",{attrs:{label:e.$t("settings.customization.notes.type"),show:"type"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.customization.notes.type")))]),e._v(" "),n("span",{staticClass:"mt-6"},[e._v(e._s(t.type))])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"action-dropdown"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.tax_types.action")))]),e._v(" "),n("sw-dropdown",[n("dot-icon",{staticClass:"h-5",attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.editNote(t)}}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.removeNote(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)]}}])})],1)],1)}),[],!1,null,null,null).exports;function cl(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function ul(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){cl(i,r,a,o,s,"next",e)}function s(e){cl(i,r,a,o,s,"throw",e)}o(void 0)}))}}function dl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dl(Object(n),!0).forEach((function(t){fl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ml={components:{TrashIcon:s.I,PencilIcon:s.z,PlusIcon:s.B},computed:pl({},Object(o.c)("category",["categories","getCategoryById"])),methods:pl(pl(pl({},Object(o.b)("modal",["openModal"])),Object(o.b)("category",["fetchCategories","fetchCategory","deleteCategory"])),{},{fetchData:function(e){var t=this;return ul(O.a.mark((function n(){var r,a,i,o;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},t.isRequestOngoing=!0,n.next=5,t.fetchCategories(i);case 5:return o=n.sent,t.isRequestOngoing=!1,n.abrupt("return",{data:o.data.categories.data,pagination:{totalPages:o.data.categories.last_page,currentPage:r,count:o.data.categories.count}});case 8:case"end":return n.stop()}}),n)})))()},removeExpenseCategory:function(e,t){var n=this;return ul(O.a.mark((function t(){return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:swal({title:n.$t("general.are_you_sure"),text:n.$t("settings.expense_category.confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=ul(O.a.mark((function t(r){return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=10;break}return t.next=3,n.deleteCategory(e);case 3:if(!t.sent.data.success){t.next=9;break}return window.toastr.success(n.$tc("settings.expense_category.deleted_message")),n.id=null,n.$refs.table.refresh(),t.abrupt("return",!0);case 9:window.toastr.error(n.$t("settings.expense_category.already_in_use"));case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},addExpenseCategory:function(){this.openModal({title:this.$t("settings.expense_category.add_category"),componentName:"CategoryModal",refreshData:this.$refs.table.refresh})},editExpenseCategory:function(e){var t=this;return ul(O.a.mark((function n(){var r;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.fetchCategory(e);case 2:r=n.sent,t.openModal({title:t.$t("settings.expense_category.edit_category"),componentName:"CategoryModal",id:e,data:r.data.category,refreshData:t.$refs.table.refresh});case 4:case"end":return n.stop()}}),n)})))()}})},hl=Object(f.a)(ml,(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-no-wrap",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-no-wrap",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 _l(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var vl=n("ta7f"),gl=vl.required,yl=vl.email,bl=vl.numeric,wl={props:{configData:{type:Object,require:!0,default:Object},loading:{type:Boolean,require:!0,default:!1},mailDrivers:{type:Array,require:!0,default:Array}},components:{EyeIcon:l.o,EyeOffIcon:l.p},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:gl},mail_host:{required:gl},mail_port:{required:gl,numeric:bl},mail_username:{required:gl},mail_password:{required:gl},mail_encryption:{required:gl},from_mail:{required:gl,email:yl},from_name:{required:gl}}},computed:{driverError:function(){return this.$v.mailConfigData.mail_driver.$error?this.$v.mailConfigData.mail_driver.required?void 0:this.$tc("validation.required"):""},hostError:function(){return this.$v.mailConfigData.mail_host.$error?this.$v.mailConfigData.mail_host.required?void 0:this.$tc("validation.required"):""},usernameError:function(){return this.$v.mailConfigData.mail_username.$error?this.$v.mailConfigData.mail_username.required?void 0:this.$tc("validation.required"):""},passwordError:function(){return this.$v.mailConfigData.mail_password.$error?this.$v.mailConfigData.mail_password.required?void 0:this.$tc("validation.required"):""},portError:function(){return this.$v.mailConfigData.mail_port.$error?this.$v.mailConfigData.mail_port.required?this.$v.mailConfigData.mail_port.numeric?void 0:this.$tc("validation.numbers_only"):this.$tc("validation.required"):""},encryptionError:function(){return this.$v.mailConfigData.mail_encryption.$error?this.$v.mailConfigData.mail_encryption.required?void 0:this.$tc("validation.required"):""},fromEmailError:function(){return this.$v.mailConfigData.from_mail.$error?this.$v.mailConfigData.from_mail.required?this.$v.mailConfigData.from_mail.email?void 0:this.$tc("validation.email_incorrect"):this.$tc("validation.required"):""},fromNameError:function(){return this.$v.mailConfigData.from_name.$error?this.$v.mailConfigData.from_name.required?void 0:this.$tc("validation.required"):""},getInputType:function(){return this.isShowPassword?"text":"password"}},mounted:function(){for(var e in this.mailConfigData)this.configData.hasOwnProperty(e)&&(this.mailConfigData[e]=this.configData[e])},methods:{saveEmailConfig:function(){var e,t=this;return(e=O.a.mark((function e(){return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$v.mailConfigData.$touch(),t.$v.mailConfigData.$invalid||t.$emit("submit-data",t.mailConfigData),e.abrupt("return",!1);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){_l(i,r,a,o,s,"next",e)}function s(e){_l(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onChangeDriver:function(){this.$v.mailConfigData.mail_driver.$touch(),this.$emit("on-change-driver",this.mailConfigData.mail_driver)}}},xl=Object(f.a)(wl,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{on:{submit:function(t){return t.preventDefault(),e.saveEmailConfig(t)}}},[n("div",{staticClass:"grid gap-6 grid-col-1 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("settings.mail.driver"),error:e.driverError,required:""}},[n("sw-select",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.mail_driver.$error,options:e.mailDrivers,searchable:!0,"allow-empty":!1,"show-labels":!1},on:{input:e.onChangeDriver},model:{value:e.mailConfigData.mail_driver,callback:function(t){e.$set(e.mailConfigData,"mail_driver",t)},expression:"mailConfigData.mail_driver"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.host"),error:e.hostError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.mail_host.$error,type:"text",name:"mail_host"},on:{input:function(t){return e.$v.mailConfigData.mail_host.$touch()}},model:{value:e.mailConfigData.mail_host,callback:function(t){e.$set(e.mailConfigData,"mail_host","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_host"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.username"),error:e.usernameError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.mail_username.$error,type:"text",name:"db_name"},on:{input:function(t){return e.$v.mailConfigData.mail_username.$touch()}},model:{value:e.mailConfigData.mail_username,callback:function(t){e.$set(e.mailConfigData,"mail_username","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_username"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.password"),error:e.passwordError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.mail_password.$error,type:e.getInputType,name:"password"},on:{input:function(t){return e.$v.mailConfigData.mail_password.$touch()}},scopedSlots:e._u([{key:"rightIcon",fn:function(){return[e.isShowPassword?n("eye-off-icon",{staticClass:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",on:{click:function(t){e.isShowPassword=!e.isShowPassword}}}):n("eye-icon",{staticClass:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",on:{click:function(t){e.isShowPassword=!e.isShowPassword}}})]},proxy:!0}]),model:{value:e.mailConfigData.mail_password,callback:function(t){e.$set(e.mailConfigData,"mail_password","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_password"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.port"),error:e.portError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.mail_port.$error,type:"text",name:"mail_port"},on:{input:function(t){return e.$v.mailConfigData.mail_port.$touch()}},model:{value:e.mailConfigData.mail_port,callback:function(t){e.$set(e.mailConfigData,"mail_port","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_port"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.encryption"),error:e.encryptionError,required:""}},[n("sw-select",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.mail_encryption.$error,options:e.encryptions,searchable:!0,"show-labels":!1},on:{input:function(t){return e.$v.mailConfigData.mail_encryption.$touch()}},model:{value:e.mailConfigData.mail_encryption,callback:function(t){e.$set(e.mailConfigData,"mail_encryption","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_encryption"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.from_mail"),error:e.fromEmailError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.from_mail.$error,type:"text",name:"from_mail"},on:{input:function(t){return e.$v.mailConfigData.from_mail.$touch()}},model:{value:e.mailConfigData.from_mail,callback:function(t){e.$set(e.mailConfigData,"from_mail","string"==typeof t?t.trim():t)},expression:"mailConfigData.from_mail"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.from_name"),error:e.fromNameError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.from_name.$error,type:"text",name:"from_name"},on:{input:function(t){return e.$v.mailConfigData.from_name.$touch()}},model:{value:e.mailConfigData.from_name,callback:function(t){e.$set(e.mailConfigData,"from_name","string"==typeof t?t.trim():t)},expression:"mailConfigData.from_name"}})],1)],1),e._v(" "),n("div",{staticClass:"flex my-10"},[n("sw-button",{attrs:{disabled:e.loading,loading:e.loading,type:"submit",variant:"primary"}},[n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.$t("general.save"))+"\n ")],1),e._v(" "),e._t("default")],2)])}),[],!1,null,null,null).exports;function kl(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var Dl=n("ta7f"),Ml=Dl.required,Sl=Dl.email,Cl=(Dl.numeric,{props:{configData:{type:Object,require:!0,default:Object},loading:{type:Boolean,require:!0,default:!1},mailDrivers:{type:Array,require:!0,default:Array}},components:{EyeIcon:l.o,EyeOffIcon:l.p},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:Ml},mail_mailgun_domain:{required:Ml},mail_mailgun_endpoint:{required:Ml},mail_mailgun_secret:{required:Ml},from_mail:{required:Ml,email:Sl},from_name:{required:Ml}}},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=O.a.mark((function e(){return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$v.mailConfigData.$touch(),t.$v.mailConfigData.$invalid||t.$emit("submit-data",t.mailConfigData),e.abrupt("return",!1);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){kl(i,r,a,o,s,"next",e)}function s(e){kl(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onChangeDriver:function(){this.$v.mailConfigData.mail_driver.$touch(),this.$emit("on-change-driver",this.mailConfigData.mail_driver)}}}),Ll=Object(f.a)(Cl,(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 Tl(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var El=n("ta7f"),Ol=El.required,jl=El.email,Al=El.numeric,Pl={props:{configData:{type:Object,require:!0,default:Object},loading:{type:Boolean,require:!0,default:!1},mailDrivers:{type:Array,require:!0,default:Array}},components:{EyeOffIcon:l.p,EyeIcon:l.o},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:Ol},mail_host:{required:Ol},mail_port:{required:Ol,numeric:Al},mail_ses_key:{required:Ol},mail_ses_secret:{required:Ol},mail_encryption:{required:Ol},from_mail:{required:Ol,email:jl},from_name:{required:Ol}}},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=O.a.mark((function e(){return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$v.mailConfigData.$touch(),t.$v.mailConfigData.$invalid||t.$emit("submit-data",t.mailConfigData),e.abrupt("return",!1);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Tl(i,r,a,o,s,"next",e)}function s(e){Tl(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onChangeDriver:function(){this.$v.mailConfigData.mail_driver.$touch(),this.$emit("on-change-driver",this.mailConfigData.mail_driver)}}},Yl=Object(f.a)(Pl,(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 $l(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var Il=n("ta7f"),Nl=Il.required,zl=Il.email,Fl={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:Nl},from_mail:{required:Nl,email:zl},from_name:{required:Nl}}},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=O.a.mark((function e(){return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$v.mailConfigData.$touch(),t.$v.mailConfigData.$invalid||t.$emit("submit-data",t.mailConfigData),e.abrupt("return",!1);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){$l(i,r,a,o,s,"next",e)}function s(e){$l(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onChangeDriver:function(){this.$v.mailConfigData.mail_driver.$touch(),this.$emit("on-change-driver",this.mailConfigData.mail_driver)}}},Rl=Object(f.a)(Fl,(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 Hl(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Bl(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Hl(i,r,a,o,s,"next",e)}function s(e){Hl(i,r,a,o,s,"throw",e)}o(void 0)}))}}function ql(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ul(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ql(Object(n),!0).forEach((function(t){Vl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ql(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wl={components:{Smtp:xl,Mailgun:Ll,Ses:Yl,sendmail:Rl,mail:Rl},data:function(){return{mailConfigData:null,mail_driver:"smtp",isLoading:!1,isRequestOnGoing:!1,mail_drivers:[]}},mounted:function(){this.loadData()},methods:Ul(Ul(Ul({},Object(o.b)("modal",["openModal"])),Object(o.b)("company",["fetchMailDrivers","fetchMailConfig","updateMailConfig"])),{},{loadData:function(){var e=this;return Bl(O.a.mark((function t(){var n,r;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isRequestOnGoing=!0,t.next=3,e.fetchMailDrivers();case 3:return n=t.sent,t.next=6,e.fetchMailConfig();case 6:r=t.sent,n.data&&(e.mail_drivers=n.data),r.data&&(e.mailConfigData=r.data,e.mail_driver=r.data.mail_driver),e.isRequestOnGoing=!1;case 10:case"end":return t.stop()}}),t)})))()},saveEmailConfig:function(e){var t=this;return Bl(O.a.mark((function n(){var r;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,t.isLoading=!0,n.next=4,t.updateMailConfig(e);case 4:return(r=n.sent).data.success?(t.isLoading=!1,window.toastr.success(t.$t("wizard.success."+r.data.success))):window.toastr.error(t.$t("wizard.errors."+r.data.error)),n.abrupt("return",!0);case 9:n.prev=9,n.t0=n.catch(0),window.toastr.error("Something went wrong");case 12:case"end":return n.stop()}}),n,null,[[0,9]])})))()},openMailTestModal:function(){this.openModal({title:"Test Mail Configuration",componentName:"MailTestModal"})}})},Kl=Object(f.a)(Wl,(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 Gl(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Jl(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Gl(i,r,a,o,s,"next",e)}function s(e){Gl(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Zl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xl={components:{LoadingIcon:n("kkvA").a},data:function(){var e;return Zl(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),Zl(e,"minPhpVesrion",null),e},computed:{allowToUpdate:function(){var e=this;if(null!==this.requiredExtentions)return Object.keys(this.requiredExtentions).every((function(t){return e.requiredExtentions[t]}))},hasUiUpdate:function(){return"4.0.0"!=this.updateData.version}},created:function(){var e=this;window.addEventListener("beforeunload",(function(t){e.isUpdating&&(t.returnValue="Update is in progress!")}))},mounted:function(){var e=this;window.axios.get("/api/v1/app/version").then((function(t){e.currentVersion=t.data.version}))},methods:{getStatus:function(e){return e.started&&e.completed?"finished":e.started&&!e.completed?"running":e.started||e.completed?"error":"pending"},statusClass:function(e){switch(this.getStatus(e)){case"pending":return"text-primary-800 bg-gray-200";case"finished":return"text-teal-500 bg-teal-100";case"running":return"text-blue-400 bg-blue-100";case"error":return"text-danger bg-red-200"}},checkUpdate:function(){var e=this;return Jl(O.a.mark((function t(){var n;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.isCheckingforUpdate=!0,t.next=4,window.axios.get("/api/v1/check/update");case 4:if(n=t.sent,e.isCheckingforUpdate=!1,n.data.version){t.next=9;break}return window.toastr.info(e.$t("settings.update_app.latest_message")),t.abrupt("return");case 9:n.data&&(e.updateData.isMinor=n.data.is_minor,e.updateData.version=n.data.version.version,e.description=n.data.version.description,e.requiredExtentions=n.data.version.extensions,e.isUpdateAvailable=!0,e.requiredExtentions=n.data.version.extensions,e.minPhpVesrion=n.data.version.minimum_php_version,e.deletedFiles=n.data.version.deleted_files),t.next=17;break;case 12:t.prev=12,t.t0=t.catch(0),e.isUpdateAvailable=!1,e.isCheckingforUpdate=!1,window.toastr.error("Something went wrong");case 17:case"end":return t.stop()}}),t,null,[[0,12]])})))()},onUpdateApp:function(){var e=this;return Jl(O.a.mark((function t(){var n,r,a,i,o;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=null,e.allowToUpdate){t.next=4;break}return window.toastr.error("Your current configuration does not match the update requirements. Please try again after all the requirements are fulfilled. "),t.abrupt("return",!0);case 4:r=0;case 5:if(!(r<e.updateSteps.length)){t.next=29;break}return a=e.updateSteps[r],t.prev=7,e.isUpdating=!0,a.started=!0,i={version:e.updateData.version,installed:e.currentVersion,deleted_files:e.deletedFiles,path:n||null},t.next=13,window.axios.post(a.stepUrl,i);case 13:o=t.sent,a.completed=!0,o.data&&o.data.path&&(n=o.data.path),"settings.update_app.finishing_update"==a.translationKey&&(e.isUpdating=!1,window.toastr.success(e.$t("settings.update_app.update_success")),setTimeout((function(){location.reload()}),3e3)),t.next=26;break;case 19:return t.prev=19,t.t0=t.catch(7),a.started=!1,a.completed=!0,window.toastr.error(e.$t("validation.something_went_wrong")),e.onUpdateFailed(a.translationKey),t.abrupt("return",!1);case 26:r++,t.next=5;break;case 29:case"end":return t.stop()}}),t,null,[[7,19]])})))()},onUpdateFailed:function(e){var t=this,n=this.$t(e);swal({title:this.$t("settings.update_app.update_failed"),text:this.$tc("settings.update_app.update_failed_text",n,{step:n}),buttons:[this.$t("general.cancel"),this.$t("general.retry")]}).then(function(){var e=Jl(O.a.mark((function e(n){return O.a.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)}}())}}},Ql=(n("fchd"),Object(f.a)(Xl,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("sw-card",{attrs:{variant:"setting-card"}},[n("template",{slot:"header"},[n("h6",{staticClass:"sw-section-title"},[e._v("\n "+e._s(e.$t("settings.update_app.title"))+"\n ")]),e._v(" "),n("p",{staticClass:"mt-2 text-sm leading-snug text-gray-500",staticStyle:{"max-width":"680px"}},[e._v("\n "+e._s(e.$t("settings.update_app.description"))+"\n ")])]),e._v(" "),n("div",{staticClass:"m-0"},[n("label",{staticClass:"text-sm not-italic font-medium input-label"},[e._v("\n "+e._s(e.$t("settings.update_app.current_version"))+"\n ")]),e._v(" "),n("label",{staticClass:"box-border flex w-16 p-3 my-2 text-sm text-gray-500 bg-gray-200 border border-gray-200 border-solid rounded-md version"},[e._v("\n "+e._s(e.currentVersion)+"\n ")]),e._v(" "),n("sw-button",{staticClass:"mt-6",attrs:{loading:e.isCheckingforUpdate,disabled:e.isCheckingforUpdate||e.isUpdating,variant:"primary-outline"},on:{click:e.checkUpdate}},[e._v("\n "+e._s(e.$t("settings.update_app.check_update"))+"\n ")]),e._v(" "),e.isUpdateAvailable?n("sw-divider",{staticClass:"mt-2 mb-4"}):e._e(),e._v(" "),e.isUpdateAvailable?n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isUpdating,expression:"!isUpdating"}],staticClass:"mt-4 content"},[n("h6",{staticClass:"mb-8 sw-section-title"},[e._v("\n "+e._s(e.$t("settings.update_app.avail_update"))+"\n ")]),e._v(" "),n("label",{staticClass:"text-sm not-italic font-medium input-label"},[e._v("\n "+e._s(e.$t("settings.update_app.next_version"))+" ")]),n("br"),e._v(" "),n("label",{staticClass:"box-border flex w-16 p-3 my-2 text-sm text-gray-500 bg-gray-200 border border-gray-200 border-solid rounded-md version"},[e._v("\n "+e._s(e.updateData.version)+"\n ")]),e._v(" "),n("div",{staticClass:"pl-5 mt-4 mb-8 text-sm leading-snug text-gray-500 update-description",staticStyle:{"white-space":"pre-wrap","max-width":"480px"},domProps:{innerHTML:e._s(e.description)}}),e._v(" "),n("label",{staticClass:"text-sm not-italic font-medium input-label"},[e._v("\n "+e._s(e.$t("settings.update_app.requirements"))+"\n ")]),e._v(" "),n("table",{staticClass:"w-1/2 mt-2 border-2 border-gray-200 table-fixed"},e._l(e.requiredExtentions,(function(t,r){return n("tr",{key:r,staticClass:"p-2 border-2 border-gray-200"},[n("td",{staticClass:"p-2 text-sm truncate",attrs:{width:"70%"}},[e._v("\n "+e._s(r)+"\n ")]),e._v(" "),n("td",{staticClass:"p-2 text-sm text-right",attrs:{width:"30%"}},[n("span",t?{staticClass:"inline-block w-4 h-4 ml-3 mr-2 rounded-full bg-success"}:{staticClass:"inline-block w-4 h-4 ml-3 mr-2 rounded-full bg-danger"})])])})),0),e._v(" "),n("sw-button",{staticClass:"mt-10",attrs:{size:"lg",variant:"primary"},on:{click:e.onUpdateApp}},[e._v("\n "+e._s(e.$t("settings.update_app.update"))+"\n ")])],1):e._e(),e._v(" "),e.isUpdating?n("div",{staticClass:"relative flex justify-between mt-4 content"},[n("div",[n("h6",{staticClass:"m-0 mb-3 font-medium sw-section-title"},[e._v("\n "+e._s(e.$t("settings.update_app.update_progress"))+"\n ")]),e._v(" "),n("p",{staticClass:"mb-8 text-sm leading-snug text-gray-500",staticStyle:{"max-width":"480px"}},[e._v("\n "+e._s(e.$t("settings.update_app.progress_text"))+"\n ")])]),e._v(" "),n("loading-icon",{staticClass:"absolute right-0 h-6 m-1 animate-spin text-primary-400"})],1):e._e(),e._v(" "),e.isUpdating?n("ul",{staticClass:"w-full p-0 list-none"},e._l(e.updateSteps,(function(t){return n("li",{staticClass:"flex justify-between w-full py-3 border-b border-gray-200 border-solid last:border-b-0"},[n("p",{staticClass:"m-0 text-sm leading-8"},[e._v(e._s(e.$t(t.translationKey)))]),e._v(" "),n("div",{staticClass:"flex flex-row items-center"},[t.time?n("span",{staticClass:"mr-3 text-xs text-gray-500"},[e._v("\n "+e._s(t.time)+"\n ")]):e._e(),e._v(" "),n("span",{staticClass:"block py-1 text-sm text-center uppercase rounded-full",class:e.statusClass(t),staticStyle:{width:"88px"}},[e._v("\n "+e._s(e.getStatus(t))+"\n ")])])])})),0):e._e()],1)],2)}),[],!1,null,null,null).exports);function ec(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function tc(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){ec(i,r,a,o,s,"next",e)}function s(e){ec(i,r,a,o,s,"throw",e)}o(void 0)}))}}function nc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nc(Object(n),!0).forEach((function(t){ac(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ac(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ic={components:{PlusIcon:s.B,TrashIcon:s.I,CloudDownloadIcon:s.g},data:function(){return{isRequestOngoing:!0,filters:{selected_disk:{driver:"local"}}}},computed:rc({},Object(o.c)("disks",["getDisks"])),created:function(){this.loadDisksData()},methods:rc(rc(rc(rc({},Object(o.b)("backup",["fetchBackups","downloadBackup","removeBackup"])),Object(o.b)("disks",["fetchDisks"])),Object(o.b)("modal",["openModal"])),{},{getCustomLabel:function(e){var t=e.driver,n=e.name;if(n)return"".concat(n," — [").concat(t,"]")},onRemoveBackup:function(e){var t=this;return tc(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$t("settings.backup.backup_confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=tc(O.a.mark((function n(r){var a;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=9;break}return a={disk:t.filters.selected_disk.driver,file_disk_id:t.filters.selected_disk.id,path:e.path},n.next=4,t.removeBackup(a);case 4:if(!n.sent.data.success){n.next=9;break}return window.toastr.success(t.$t("settings.backup.deleted_message")),t.$refs.table.refresh(),n.abrupt("return",!0);case 9:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},loadDisksData:function(){var e=this;return tc(O.a.mark((function t(){var n;return O.a.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 tc(O.a.mark((function n(){var r,a;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.page,e.filter,e.sort,r={disk:t.filters.selected_disk.driver,file_disk_id:t.filters.selected_disk.id},t.isRequestOngoing=!0,n.next=5,t.fetchBackups(r);case 5:return(a=n.sent).data.error&&window.toastr.error(t.$t("settings.backup."+a.data.error)),t.isRequestOngoing=!1,n.abrupt("return",{data:a.data.backups,pagination:{totalPages:1,currentPage:1}});case 10:case"end":return n.stop()}}),n)})))()},refreshTable:function(){var e=this;setTimeout((function(){e.$refs.table.refresh()}),100)},onCreateNewBackup:function(){var e=this;return tc(O.a.mark((function t(){return O.a.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 tc(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.isRequestOngoing=!0,window.axios({method:"GET",url:"/api/v1/download-backup",responseType:"blob",params:{disk:t.filters.selected_disk.driver,file_disk_id:t.filters.selected_disk.id,path:e.path}}).then((function(n){var r=window.URL.createObjectURL(new Blob([n.data])),a=document.createElement("a");a.href=r,a.setAttribute("download",e.path.split("/")[1]),document.body.appendChild(a),a.click(),t.isRequestOngoing=!1})).catch((function(e){t.isRequestOngoing=!1,window.toastr.error(e.response.data.message)}));case 2:case"end":return n.stop()}}),n)})))()}})},oc=Object(f.a)(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-no-wrap",attrs:{slot:"header"},slot:"header"},[n("div",[n("h6",{staticClass:"sw-section-title"},[e._v("\n "+e._s(e.$tc("settings.backup.title",1))+"\n ")]),e._v(" "),n("p",{staticClass:"mt-2 text-sm leading-snug text-gray-500",staticStyle:{"max-width":"680px"}},[e._v("\n "+e._s(e.$t("settings.backup.description"))+"\n ")])]),e._v(" "),n("div",{staticClass:"mt-4 lg:mt-0 lg:ml-2"},[n("sw-button",{attrs:{variant:"primary-outline",size:"lg"},on:{click:e.onCreateNewBackup}},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("settings.backup.new_backup"))+"\n ")],1)],1)]),e._v(" "),n("div",{staticClass:"grid mb-8 md:grid-cols-3"},[n("sw-input-group",{attrs:{label:e.$t("settings.disk.select_disk")}},[n("sw-select",{attrs:{options:e.getDisks,searchable:!0,"show-labels":!1,placeholder:e.$t("settings.disk.select_disk"),"allow-empty":!1,"track-by":"id",label:"name","custom-label":e.getCustomLabel},on:{select:e.refreshTable},model:{value:e.filters.selected_disk,callback:function(t){e.$set(e.filters,"selected_disk",t)},expression:"filters.selected_disk"}})],1)],1),e._v(" "),n("sw-table-component",{ref:"table",attrs:{variant:"gray","show-filter":!1,data:e.fetchBackupsData}},[n("sw-table-column",{attrs:{label:e.$t("settings.backup.path"),show:"path"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.backup.path")))]),e._v(" "),n("span",{staticClass:"mt-6"},[e._v(e._s(t.path))])]}}])}),e._v(" "),n("sw-table-column",{attrs:{label:e.$t("settings.backup.created_at"),show:"created_at"}}),e._v(" "),n("sw-table-column",{attrs:{label:e.$t("settings.backup.size"),show:"size"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,data:e.fetchBackupsData,"cell-class":"action-dropdown"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.backup.action")))]),e._v(" "),n("sw-dropdown",[n("dot-icon",{attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.onDownloadBckup(t)}}},[n("cloud-download-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.download"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.onRemoveBackup(t)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)]}}])})],1)],1)],1)}),[],!1,null,null,null).exports;function sc(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function lc(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){sc(i,r,a,o,s,"next",e)}function s(e){sc(i,r,a,o,s,"throw",e)}o(void 0)}))}}function cc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uc(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){dc(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 dc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pc={components:{CheckCircleIcon:s.d,PlusIcon:s.B,TrashIcon:s.I,PencilIcon:s.z},data:function(){return{disk:"local",save_pdf_to_disk:!0,loading:!1,disks:[]}},mounted:function(){this.getDiskSetting()},methods:uc(uc(uc(uc({},Object(o.b)("modal",["openModal"])),Object(o.b)("disks",["fetchDisks","updateDisk","deleteFileDisk"])),Object(o.b)("company",["updateCompanySettings","fetchCompanySettings"])),{},{fetchData:function(e){var t=this;return lc(O.a.mark((function n(){var r,a,i,o;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},n.next=4,t.fetchDisks(i);case 4:return o=n.sent,n.abrupt("return",{data:o.data.disks.data,pagination:{totalPages:o.data.disks.last_page,currentPage:r,count:o.data.disks.count}});case 6:case"end":return n.stop()}}),n)})))()},isShowAction:function(e){return!e.set_as_default||("SYSTEM"!=e.type||!e.set_as_default)},openCreateDiskModal:function(){this.openModal({title:this.$t("settings.disk.new_disk"),componentName:"FileDiskModal",variant:"lg",refreshData:this.refreshTable})},openEditDiskModal:function(e){this.openModal({title:this.$t("settings.disk.edit_file_disk"),componentName:"FileDiskModal",variant:"lg",id:e.id,data:e,refreshData:this.refreshTable})},refreshTable:function(){this.$refs.table.refresh()},getDiskSetting:function(e){var t=this;return lc(O.a.mark((function e(){var n;return O.a.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 lc(O.a.mark((function t(){var n;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={settings:{save_pdf_to_disk:e.save_pdf_to_disk?"YES":"NO"}},t.next=3,e.updateCompanySettings(n);case 3:t.sent.data.success&&window.toastr.success(e.$t("general.setting_updated")),e.$refs.table.refresh();case 6:case"end":return t.stop()}}),t)})))()},setDefaultDiskData:function(e){var t=this;return lc(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$t("settings.disk.set_default_disk_confirm"),icon:"/assets/icon/check-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=lc(O.a.mark((function n(r){var a;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=7;break}return t.loading=!0,a={set_as_default:!0,id:e},n.next=5,t.updateDisk(a);case 5:n.sent.data.success&&(t.refreshTable(),window.toastr.success(t.$t("settings.disk.success_set_default_disk")));case 7:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},removeDisk:function(e){var t=this;return lc(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$t("settings.disk.confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=lc(O.a.mark((function n(r){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=8;break}return n.next=3,t.deleteFileDisk(e);case 3:if(!n.sent.data.success){n.next=8;break}return window.toastr.success(t.$t("settings.disk.deleted_message")),t.refreshTable(),n.abrupt("return",!0);case 8:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()}})},fc=Object(f.a)(pc,(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-no-wrap",attrs:{slot:"header"},slot:"header"},[n("div",[n("h6",{staticClass:"sw-section-title"},[e._v("\n "+e._s(e.$tc("settings.disk.title",1))+"\n ")]),e._v(" "),n("p",{staticClass:"mt-2 text-sm leading-snug text-gray-500",staticStyle:{"max-width":"680px"}},[e._v("\n "+e._s(e.$t("settings.disk.description"))+"\n ")])]),e._v(" "),n("div",{staticClass:"mt-4 lg:mt-0 lg:ml-2"},[n("sw-button",{attrs:{variant:"primary-outline",size:"lg"},on:{click:e.openCreateDiskModal}},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("settings.disk.new_disk"))+"\n ")],1)],1)]),e._v(" "),n("sw-table-component",{ref:"table",staticClass:"mt-0 mb-3",attrs:{variant:"gray","show-filter":!1,data:e.fetchData,"table-class":"table tax-table"}},[n("sw-table-column",{attrs:{label:e.$t("settings.disk.disk_name"),show:"name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.disk.disk_name")))]),e._v(" "),n("span",{staticClass:"mt-6"},[e._v(e._s(t.name))])]}}])}),e._v(" "),n("sw-table-column",{attrs:{label:e.$t("settings.disk.filesystem_driver"),show:"driver"}}),e._v(" "),n("sw-table-column",{attrs:{label:e.$t("settings.disk.disk_type"),show:"type"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,label:e.$t("settings.disk.is_default")},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.disk.is_default")))]),e._v(" "),n("sw-badge",{attrs:{"bg-color":e.$utils.getBadgeStatusColor(t.set_as_default?"YES":"NO").bgColor,color:e.$utils.getBadgeStatusColor(t.set_as_default?"YES":"NO").color}},[e._v("\n "+e._s(t.set_as_default?"Yes":"No".replace("_"," "))+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"action-dropdown no-click"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.disk.action")))]),e._v(" "),e.isShowAction(t)?n("sw-dropdown",[n("a",{attrs:{slot:"activator",href:"#"},slot:"activator"},[n("dot-icon")],1),e._v(" "),t.set_as_default?e._e():n("sw-dropdown-item",{on:{click:function(n){return e.setDefaultDiskData(t.id)}}},[n("check-circle-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("settings.disk.set_default_disk"))+"\n ")],1),e._v(" "),"SYSTEM"!==t.type?n("sw-dropdown-item",{on:{click:function(n){return e.openEditDiskModal(t)}}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1):e._e(),e._v(" "),"SYSTEM"===t.type||t.set_as_default?e._e():n("sw-dropdown-item",{on:{click:function(n){return e.removeDisk(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1):e._e()]}}])})],1),e._v(" "),n("sw-divider",{staticClass:"mt-6 mb-4"}),e._v(" "),n("h3",{staticClass:"mb-5 text-lg font-medium text-black"},[e._v("\n "+e._s(e.$t("settings.disk.disk_settings"))+"\n ")]),e._v(" "),n("div",{staticClass:"flex"},[n("div",{staticClass:"relative w-12"},[n("sw-switch",{staticClass:"absolute",staticStyle:{top:"-18px"},on:{change:e.setDiskSettings},model:{value:e.save_pdf_to_disk,callback:function(t){e.save_pdf_to_disk=t},expression:"save_pdf_to_disk"}})],1),e._v(" "),n("div",{staticClass:"ml-4"},[n("p",{staticClass:"p-0 mb-1 text-base leading-snug text-black"},[e._v("\n "+e._s(e.$t("settings.disk.save_pdf_to_disk"))+"\n ")]),e._v(" "),n("p",{staticClass:"max-w-lg p-0 m-0 text-xs leading-tight text-gray-500"},[e._v("\n "+e._s(e.$t("settings.disk.disk_setting_description"))+"\n ")])])])],1)],1)}),[],!1,null,null,null).exports;function mc(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function hc(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){mc(i,r,a,o,s,"next",e)}function s(e){mc(i,r,a,o,s,"throw",e)}o(void 0)}))}}function _c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vc(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){gc(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 gc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yc={components:{PencilIcon:s.z,TrashIcon:s.I,PlusIcon:s.B},methods:vc(vc(vc({},Object(o.b)("customFields",["fetchCustomFields","deleteCustomFields"])),Object(o.b)("modal",["openModal"])),{},{fetchData:function(e){var t=this;return hc(O.a.mark((function n(){var r,a,i,o;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},n.next=4,t.fetchCustomFields(i);case 4:return o=n.sent,n.abrupt("return",{data:o.data.customFields.data,pagination:{totalPages:o.data.customFields.last_page,currentPage:r,count:o.data.customFields.count}});case 6:case"end":return n.stop()}}),n)})))()},removeCustomField:function(e){var t=this;return hc(O.a.mark((function n(){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$t("settings.custom_fields.custom_field_confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=hc(O.a.mark((function n(r){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=10;break}return n.next=3,t.deleteCustomFields(e);case 3:if(!n.sent.data.success){n.next=9;break}return window.toastr.success(t.$t("settings.custom_fields.deleted_message")),t.id=null,t.$refs.table.refresh(),n.abrupt("return",!0);case 9:window.toastr.error(t.$t("settings.custom_fields.already_in_use"));case 10:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},addCustomField:function(){this.openModal({title:this.$t("settings.custom_fields.add_custom_field"),componentName:"CustomFieldModal",refreshData:this.$refs.table.refresh})},editCustomField:function(e){this.openModal({title:this.$t("settings.custom_fields.edit_custom_field"),componentName:"CustomFieldModal",id:e,refreshData:this.$refs.table.refresh})}})},bc=Object(f.a)(yc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("sw-card",{attrs:{variant:"setting-card"}},[n("div",{staticClass:"flex flex-wrap justify-between lg:flex-no-wrap",attrs:{slot:"header"},slot:"header"},[n("div",[n("h6",{staticClass:"sw-section-title"},[e._v("\n "+e._s(e.$t("settings.menu_title.custom_fields"))+"\n ")]),e._v(" "),n("p",{staticClass:"mt-2 text-sm leading-snug text-gray-500",staticStyle:{"max-width":"680px"}},[e._v("\n "+e._s(e.$t("settings.custom_fields.section_description"))+"\n ")])]),e._v(" "),n("div",{staticClass:"mt-4 lg:mt-0 lg:ml-2"},[n("sw-button",{attrs:{variant:"primary-outline",size:"lg"},on:{click:e.addCustomField}},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("settings.custom_fields.add_custom_field"))+"\n ")],1)],1)]),e._v(" "),n("sw-table-component",{ref:"table",attrs:{variant:"gray","show-filter":!1,data:e.fetchData}},[n("sw-table-column",{attrs:{sortable:!0,label:e.$t("settings.custom_fields.name"),show:"name"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("settings.custom_fields.label"),show:"label"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("settings.custom_fields.model"),show:"model_type"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("settings.custom_fields.type"),show:"type.label"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,filterable:!0,label:e.$t("settings.custom_fields.required"),show:"is_required"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.custom_fields.required")))]),e._v(" "),n("sw-badge",{attrs:{"bg-color":e.$utils.getBadgeStatusColor(t.is_required?"YES":"NO").bgColor,color:e.$utils.getBadgeStatusColor(t.is_required?"YES":"NO").color}},[e._v("\n "+e._s(t.is_required?e.$t("settings.custom_fields.yes"):e.$t("settings.custom_fields.no").replace("_"," "))+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"action-dropdown"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.tax_types.action")))]),e._v(" "),n("sw-dropdown",[n("dot-icon",{attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.editCustomField(t.id)}}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.removeCustomField(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)]}}])})],1)],1)}),[],!1,null,null,null).exports;function wc(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function xc(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){wc(i,r,a,o,s,"next",e)}function s(e){wc(i,r,a,o,s,"throw",e)}o(void 0)}))}}function kc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kc(Object(n),!0).forEach((function(t){Mc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sc=n("ta7f"),Cc=(Sc.required,Sc.maxLength,Sc.alpha,{components:{TrashIcon:s.I,PencilIcon:s.z,PlusIcon:s.B},methods:Dc(Dc(Dc({},Object(o.b)("modal",["openModal"])),Object(o.b)("payment",["deletePaymentMode","fetchPaymentModes"])),{},{fetchData:function(e){var t=this;return xc(O.a.mark((function n(){var r,a,i,o;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},n.next=4,t.fetchPaymentModes(i);case 4:return o=n.sent,n.abrupt("return",{data:o.data.paymentMethods.data,pagination:{totalPages:o.data.paymentMethods.last_page,currentPage:r,count:o.data.paymentMethods.count}});case 6:case"end":return n.stop()}}),n)})))()},addPaymentMode:function(){this.openModal({title:this.$t("settings.customization.payments.add_payment_mode"),componentName:"PaymentMode",refreshData:this.$refs.table.refresh})},editPaymentMode:function(e){this.openModal({title:this.$t("settings.customization.payments.edit_payment_mode"),componentName:"PaymentMode",id:e.id,data:e,refreshData:this.$refs.table.refresh})},removePaymentMode:function(e){var t=this;swal({title:this.$t("general.are_you_sure"),text:this.$t("settings.customization.payments.payment_mode_confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=xc(O.a.mark((function n(r){return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=10;break}return n.next=3,t.deletePaymentMode(e);case 3:if(!n.sent.data.success){n.next=9;break}return window.toastr.success(t.$t("settings.customization.payments.deleted_message")),t.id=null,t.$refs.table.refresh(),n.abrupt("return",!0);case 9:window.toastr.error(t.$t("settings.customization.payments.already_in_use"));case 10:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}())}})}),Lc=Object(f.a)(Cc,(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-no-wrap",attrs:{slot:"header"},slot:"header"},[n("div",[n("h6",{staticClass:"sw-section-title"},[e._v("\n "+e._s(e.$t("settings.customization.payments.payment_modes"))+"\n ")]),e._v(" "),n("p",{staticClass:"mt-2 text-sm leading-snug text-gray-500",staticStyle:{"max-width":"680px"}},[e._v("\n "+e._s(e.$t("settings.customization.payments.description"))+"\n ")])]),e._v(" "),n("div",{staticClass:"mt-4 lg:mt-0 lg:ml-2"},[n("sw-button",{attrs:{variant:"primary-outline",size:"lg"},on:{click:e.addPaymentMode}},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("settings.customization.payments.add_payment_mode"))+"\n ")],1)],1)]),e._v(" "),n("sw-table-component",{ref:"table",attrs:{variant:"gray","show-filter":!1,data:e.fetchData}},[n("sw-table-column",{attrs:{label:e.$t("settings.customization.payments.mode_name"),show:"name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.customization.payments.mode_name")))]),e._v(" "),n("span",{staticClass:"mt-6"},[e._v(" "+e._s(t.name))])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"action-dropdown"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.tax_types.action")))]),e._v(" "),n("sw-dropdown",[n("dot-icon",{staticClass:"h-5",attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.editPaymentMode(t)}}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.removePaymentMode(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)]}}])})],1)],1)}),[],!1,null,null,null).exports;function Tc(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Ec(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Tc(i,r,a,o,s,"next",e)}function s(e){Tc(i,r,a,o,s,"throw",e)}o(void 0)}))}}var Oc={components:{ArrowRightIcon:s.b},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 Ec(O.a.mark((function t(){var n;return O.a.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 Ec(O.a.mark((function t(){return O.a.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)})))()}}},jc=Object(f.a)(Oc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("sw-wizard-step",{attrs:{title:e.$t("wizard.req.system_req"),description:e.$t("wizard.req.system_req_desc")}},[n("div",{staticClass:"w-full md:w-2/3"},[n("div",{staticClass:"mb-6"},[e.phpSupportInfo?n("div",{staticClass:"grid grid-flow-row grid-cols-3 p-3 border border-gray-200 lg:gap-24 sm:gap-4"},[n("div",{staticClass:"col-span-2 text-sm"},[e._v("\n "+e._s(e.$t("wizard.req.php_req_version",{version:e.phpSupportInfo.minimum}))+"\n ")]),e._v(" "),n("div",{staticClass:"text-right"},[e._v("\n "+e._s(e.phpSupportInfo.current)+"\n "),e.phpSupportInfo.supported?n("span",{staticClass:"inline-block w-4 h-4 ml-3 mr-2 rounded-full bg-success"}):n("span",{staticClass:"inline-block w-4 h-4 ml-3 mr-2 rounded-full bg-danger"})])]):e._e(),e._v(" "),e.requirements?n("div",e._l(e.requirements,(function(t,r){return n("div",{key:r,staticClass:"grid grid-flow-row grid-cols-3 p-3 border border-gray-200 lg:gap-24 sm:gap-4"},[n("div",{staticClass:"col-span-2 text-sm"},[e._v("\n "+e._s(r)+"\n ")]),e._v(" "),n("div",{staticClass:"text-right"},[n("span",t?{staticClass:"inline-block w-4 h-4 ml-3 mr-2 rounded-full bg-success"}:{staticClass:"inline-block w-4 h-4 ml-3 mr-2 rounded-full bg-danger"})])])})),0):e._e()]),e._v(" "),e.hasNext?n("sw-button",{staticClass:"mt-4 pull-right",attrs:{variant:"primary"},on:{click:e.next}},[e._v("\n "+e._s(e.$t("wizard.continue"))+"\n "),n("arrow-right-icon",{staticClass:"h-5 ml-2 -mr-1"})],1):e._e(),e._v(" "),e.requirements?e._e():n("sw-button",{staticClass:"mt-4",attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary"},on:{click:e.getRequirements}},[e._v("\n "+e._s(e.$t("wizard.req.check_req"))+"\n ")])],1)])}),[],!1,null,null,null).exports;function Ac(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Pc(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Ac(i,r,a,o,s,"next",e)}function s(e){Ac(i,r,a,o,s,"throw",e)}o(void 0)}))}}var Yc={components:{ArrowRightIcon:s.b},data:function(){return{isFetching:!1,isLoading:!1,permissions:[],errors:!1}},created:function(){this.getPermissions()},methods:{getPermissions:function(){var e=this;return Pc(O.a.mark((function t(){var n,r;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isLoading=e.isFetching=!0,t.next=3,window.axios.get("/api/v1/onboarding/permissions",e.profileData);case 3:(n=t.sent).data&&(e.permissions=n.data.permissions.permissions,e.errors=n.data.permissions.errors,r=e,e.errors?swal({title:e.$t("wizard.permissions.permission_confirm_title"),text:e.$t("wizard.permissions.permission_confirm_desc"),icon:"warning",buttons:!0,dangerMode:!0}).then(function(){var t=Pc(O.a.mark((function t(n){return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n&&(r.isLoading=e.isFetching=!1);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()):e.isLoading=e.isFetching=!1,e.isLoading=e.isFetching=!1);case 5:case"end":return t.stop()}}),t)})))()},next:function(){var e=this;return Pc(O.a.mark((function t(){return O.a.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)})))()}}},$c=Object(f.a)(Yc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("sw-wizard-step",{attrs:{title:e.$t("wizard.permissions.permissions"),description:e.$t("wizard.permissions.permission_desc")}},[e.isFetching?n("base-loader",{attrs:{"show-bg-overlay":!0}}):e._e(),e._v(" "),n("div",{staticClass:"relative"},[e._l(e.permissions,(function(t,r){return n("div",{key:r,staticClass:"border border-gray-200"},[n("div",{staticClass:"grid grid-flow-row grid-cols-3 lg:gap-24 sm:gap-4"},[n("div",{staticClass:"col-span-2 p-3"},[e._v("\n "+e._s(t.folder)+"\n ")]),e._v(" "),n("div",{staticClass:"p-3 text-right"},[t.isSet?n("span",{staticClass:"inline-block w-4 h-4 ml-3 mr-2 rounded-full bg-success"}):n("span",{staticClass:"inline-block w-4 h-4 ml-3 mr-2 rounded-full bg-danger"}),e._v(" "),n("span",[e._v(e._s(t.permission))])])])])})),e._v(" "),n("sw-button",{directives:[{name:"show",rawName:"v-show",value:!e.isFetching,expression:"!isFetching"}],staticClass:"mt-10",attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary"},on:{click:e.next}},[e._v("\n "+e._s(e.$t("wizard.continue"))+"\n "),n("arrow-right-icon",{staticClass:"h-5 ml-2 -mr-1"})],1)],2)],1)}),[],!1,null,null,null).exports;n("Hc5T");function Ic(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var Nc=n("ta7f"),zc=Nc.required,Fc=Nc.numeric,Rc=(Nc.url,{components:{SaveIcon:l.w},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:zc},database_hostname:{required:zc},database_port:{required:zc,numeric:Fc},database_name:{required:zc},database_username:{required:zc},app_url:{required:zc,isUrl:function(e){return this.$utils.checkValidUrl(e)}},app_domain:{required:zc,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=O.a.mark((function e(){return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$v.databaseData.$touch(),t.$v.databaseData.$invalid||t.$emit("submit-data",t.databaseData),e.abrupt("return",!1);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Ic(i,r,a,o,s,"next",e)}function s(e){Ic(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onChangeConnection:function(){this.$v.databaseData.database_connection.$touch(),this.$emit("on-change-driver",this.databaseData.database_connection)}}}),Hc=Object(f.a)(Rc,(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 Bc(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var qc=n("ta7f"),Uc=qc.required,Vc=qc.numeric,Wc=(qc.url,{components:{SaveIcon:l.w},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:Uc},database_hostname:{required:Uc},database_port:{required:Uc,numeric:Vc},database_name:{required:Uc},database_username:{required:Uc},app_url:{required:Uc,isUrl:function(e){return this.$utils.checkValidUrl(e)}},app_domain:{required:Uc,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=O.a.mark((function e(){return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$v.databaseData.$touch(),t.$v.databaseData.$invalid||t.$emit("submit-data",t.databaseData),e.abrupt("return",!1);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Bc(i,r,a,o,s,"next",e)}function s(e){Bc(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onChangeConnection:function(){this.$v.databaseData.database_connection.$touch(),this.$emit("on-change-driver",this.databaseData.database_connection)}}}),Kc=Object(f.a)(Wc,(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 Gc(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var Jc=n("ta7f"),Zc=Jc.required,Xc=(Jc.numeric,Jc.url,{components:{SaveIcon:l.w},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:Zc},database_name:{required:Zc},app_url:{required:Zc,isUrl:function(e){return this.$utils.checkValidUrl(e)}},app_domain:{required:Zc,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=O.a.mark((function e(){return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$v.databaseData.$touch(),t.$v.databaseData.$invalid||t.$emit("submit-data",t.databaseData),e.abrupt("return",!1);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Gc(i,r,a,o,s,"next",e)}function s(e){Gc(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onChangeConnection:function(){this.$v.databaseData.database_connection.$touch(),this.$emit("on-change-driver",this.databaseData.database_connection)}}}),Qc=Object(f.a)(Xc,(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 eu(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var tu=n("ta7f"),nu=tu.required,ru=tu.numeric,au=(tu.url,{components:{SaveIcon:l.w},props:{configData:{type:Object,require:!0,default:Object},isLoading:{type:Boolean,require:!0,default:!1},isFetching:{type:Boolean,require:!0,default:!1}},data:function(){return{databaseData:{database_connection:"mysql",database_hostname:"127.0.0.1",database_port:"3306",database_name:null,database_username:null,database_password:null,app_url:window.location.origin,app_domain:window.location.origin.replace(/(^\w+:|^)\/\//,"")},connections:["sqlite","mysql","pgsql","sqlsrv"]}},validations:{databaseData:{database_connection:{required:nu},database_hostname:{required:nu},database_port:{required:nu,numeric:ru},database_name:{required:nu},database_username:{required:nu},app_url:{required:nu,isUrl:function(e){return this.$utils.checkValidUrl(e)}},app_domain:{required:nu,isUrl:function(e){return this.$utils.checkValidDomainUrl(e)}}}},computed:{urlError:function(){return this.$v.databaseData.app_url.$error?this.$v.databaseData.app_url.required?this.$v.databaseData.app_url.isUrl?void 0:this.$tc("validation.invalid_url"):this.$tc("validation.required"):""},domainError:function(){return this.$v.databaseData.app_domain.$error?this.$v.databaseData.app_domain.required?this.$v.databaseData.app_domain.isUrl?void 0:this.$tc("validation.invalid_domain_url"):this.$tc("validation.required"):""},connectionError:function(){return this.$v.databaseData.database_connection.$error?this.$v.databaseData.database_connection.required?void 0:this.$tc("validation.required"):""},portError:function(){return this.$v.databaseData.database_port.$error?this.$v.databaseData.database_port.required?this.$v.databaseData.database_port.numeric?void 0:this.$tc("validation.numbers_only"):this.$tc("validation.required"):""},nameError:function(){return this.$v.databaseData.database_name.$error?this.$v.databaseData.database_name.required?void 0:this.$tc("validation.required"):""},usernameError:function(){return this.$v.databaseData.database_username.$error?this.$v.databaseData.database_username.required?void 0:this.$tc("validation.required"):""},hostnameError:function(){return this.$v.databaseData.database_hostname.$error?this.$v.databaseData.database_hostname.required?void 0:this.$tc("validation.required"):""}},mounted:function(){for(var e in this.databaseData)this.configData.hasOwnProperty(e)&&(this.databaseData[e]=this.configData[e])},methods:{next:function(){var e,t=this;return(e=O.a.mark((function e(){return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$v.databaseData.$touch(),t.$v.databaseData.$invalid||t.$emit("submit-data",t.databaseData),e.abrupt("return",!1);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){eu(i,r,a,o,s,"next",e)}function s(e){eu(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onChangeConnection:function(){this.$v.databaseData.database_connection.$touch(),this.$emit("on-change-driver",this.databaseData.database_connection)}}});function iu(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function ou(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){iu(i,r,a,o,s,"next",e)}function s(e){iu(i,r,a,o,s,"throw",e)}o(void 0)}))}}var su={components:{Mysql:Hc,Pgsql:Kc,Sqlite:Qc,Sqlsrv:Object(f.a)(au,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.next()}}},[n("div",[n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 lg:mb-6 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.database.app_url"),error:e.urlError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.databaseData.app_url.$error,type:"text",name:"name"},on:{input:function(t){return e.$v.databaseData.app_url.$touch()}},model:{value:e.databaseData.app_url,callback:function(t){e.$set(e.databaseData,"app_url","string"==typeof t?t.trim():t)},expression:"databaseData.app_url"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.database.app_domain"),error:e.domainError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.databaseData.app_domain.$error,type:"text",name:"name",placeholder:"crater.com"},on:{input:function(t){return e.$v.databaseData.app_domain.$touch()}},model:{value:e.databaseData.app_domain,callback:function(t){e.$set(e.databaseData,"app_domain","string"==typeof t?t.trim():t)},expression:"databaseData.app_domain"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 lg:mb-6 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.database.connection"),error:e.connectionError,required:""}},[n("sw-select",{attrs:{invalid:e.$v.databaseData.database_connection.$error,options:e.connections,searchable:!0,"show-labels":!1,"allow-empty":!1},on:{input:e.onChangeConnection},model:{value:e.databaseData.database_connection,callback:function(t){e.$set(e.databaseData,"database_connection",t)},expression:"databaseData.database_connection"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.database.port"),error:e.portError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.databaseData.database_port.$error,type:"text",name:"database_port"},on:{input:function(t){return e.$v.databaseData.database_port.$touch()}},model:{value:e.databaseData.database_port,callback:function(t){e.$set(e.databaseData,"database_port","string"==typeof t?t.trim():t)},expression:"databaseData.database_port"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 lg:mb-6 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.database.db_name"),error:e.nameError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.databaseData.database_name.$error,type:"text",name:"database_name"},on:{input:function(t){return e.$v.databaseData.database_name.$touch()}},model:{value:e.databaseData.database_name,callback:function(t){e.$set(e.databaseData,"database_name","string"==typeof t?t.trim():t)},expression:"databaseData.database_name"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.database.username"),error:e.usernameError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.databaseData.database_username.$error,type:"text",name:"database_username"},on:{input:function(t){return e.$v.databaseData.database_username.$touch()}},model:{value:e.databaseData.database_username,callback:function(t){e.$set(e.databaseData,"database_username","string"==typeof t?t.trim():t)},expression:"databaseData.database_username"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-6 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("wizard.database.password")}},[n("sw-input",{attrs:{type:"password",name:"name"},model:{value:e.databaseData.database_password,callback:function(t){e.$set(e.databaseData,"database_password","string"==typeof t?t.trim():t)},expression:"databaseData.database_password"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.database.host"),error:e.hostnameError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.databaseData.database_hostname.$error,type:"text",name:"database_hostname"},on:{input:function(t){return e.$v.databaseData.database_hostname.$touch()}},model:{value:e.databaseData.database_hostname,callback:function(t){e.$set(e.databaseData,"database_hostname","string"==typeof t?t.trim():t)},expression:"databaseData.database_hostname"}})],1)],1),e._v(" "),n("sw-button",{directives:[{name:"show",rawName:"v-show",value:!e.isFetching,expression:"!isFetching"}],staticClass:"mt-4",attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("save-icon",{staticClass:"h-5 mr-2"}),e._v("\n "+e._s(e.$t("wizard.save_cont"))+"\n ")],1)],1)])}),[],!1,null,null,null).exports},data:function(){return{databaseData:{database_connection:"mysql"},isLoading:!1,isFetching:!1,database_connection:"mysql",connections:["sqlite","mysql","pgsql","sqlsrv"]}},created:function(){this.getDatabaseConfig(this.database_connection)},methods:{getDatabaseConfig:function(e){var t=this;return ou(O.a.mark((function n(){var r,a;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.isLoading=t.isFetching=!0,r={connection:e},n.next=4,window.axios.get("/api/v1/onboarding/database/config",{params:r});case 4:(a=n.sent).data.success&&(t.databaseData=a.data.config,t.database_connection=e,t.databaseData.database_connection=e,t.isLoading=t.isFetching=!1);case 6:case"end":return n.stop()}}),n)})))()},next:function(e){var t=this;return ou(O.a.mark((function n(){var r;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.isLoading=t.isFetching=!0,n.prev=1,n.next=4,window.axios.get("/sanctum/csrf-cookie");case 4:return n.next=6,window.axios.post("/api/v1/onboarding/database/config",e);case 6:return r=n.sent,n.next=9,window.axios.get("/sanctum/csrf-cookie");case 9:if(!r.data.success){n.next=17;break}return n.next=12,window.axios.post("/api/v1/onboarding/finish");case 12:return t.$emit("next",3),window.toastr.success(t.$t("wizard.success."+r.data.success)),n.abrupt("return",!0);case 17:r.data.error?window.toastr.error(t.$t("wizard.errors."+r.data.error)):r.data.error_message&&window.toastr.error(r.data.error_message);case 18:n.next=23;break;case 20:n.prev=20,n.t0=n.catch(1),window.toastr.error(n.t0.response.data.message);case 23:return n.prev=23,t.isLoading=t.isFetching=!1,n.finish(23);case 26:case"end":return n.stop()}}),n,null,[[1,20,23,26]])})))()}}},lu=Object(f.a)(su,(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 cu(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var uu=n("ta7f"),du=uu.required,pu=uu.email,fu=uu.numeric,mu={props:{configData:{type:Object,require:!0,default:Object},loading:{type:Boolean,require:!0,default:!1},mailDrivers:{type:Array,require:!0,default:Array}},components:{EyeIcon:l.o,EyeOffIcon:l.p},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:du},mail_host:{required:du},mail_port:{required:du,numeric:fu},mail_username:{required:du},mail_password:{required:du},mail_encryption:{required:du},from_mail:{required:du,email:pu},from_name:{required:du}}},computed:{driverError:function(){return this.$v.mailConfigData.mail_driver.$error?this.$v.mailConfigData.mail_driver.required?void 0:this.$tc("validation.required"):""},hostError:function(){return this.$v.mailConfigData.mail_host.$error?this.$v.mailConfigData.mail_host.required?void 0:this.$tc("validation.required"):""},usernameError:function(){return this.$v.mailConfigData.mail_username.$error?this.$v.mailConfigData.mail_username.required?void 0:this.$tc("validation.required"):""},passwordError:function(){return this.$v.mailConfigData.mail_password.$error?this.$v.mailConfigData.mail_password.required?void 0:this.$tc("validation.required"):""},portError:function(){return this.$v.mailConfigData.mail_port.$error?this.$v.mailConfigData.mail_port.required?this.$v.mailConfigData.mail_port.numeric?void 0:this.$tc("validation.numbers_only"):this.$tc("validation.required"):""},encryptionError:function(){return this.$v.mailConfigData.mail_encryption.$error?this.$v.mailConfigData.mail_encryption.required?void 0:this.$tc("validation.required"):""},fromEmailError:function(){return this.$v.mailConfigData.from_mail.$error?this.$v.mailConfigData.from_mail.required?this.$v.mailConfigData.from_mail.email?void 0:this.$tc("validation.email_incorrect"):this.$tc("validation.required"):""},fromNameError:function(){return this.$v.mailConfigData.from_name.$error?this.$v.mailConfigData.from_name.required?void 0:this.$tc("validation.required"):""},getInputType:function(){return this.isShowPassword?"text":"password"}},mounted:function(){for(var e in this.mailConfigData)this.configData.hasOwnProperty(e)&&(this.mailConfigData[e]=this.configData[e])},methods:{saveEmailConfig:function(){var e,t=this;return(e=O.a.mark((function e(){return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$v.mailConfigData.$touch(),t.$v.mailConfigData.$invalid||t.$emit("submit-data",t.mailConfigData),e.abrupt("return",!1);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){cu(i,r,a,o,s,"next",e)}function s(e){cu(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onChangeDriver:function(){this.$v.mailConfigData.mail_driver.$touch(),this.$emit("on-change-driver",this.mailConfigData.mail_driver)}}},hu=Object(f.a)(mu,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{on:{submit:function(t){return t.preventDefault(),e.saveEmailConfig()}}},[n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.mail.driver"),error:e.driverError,required:""}},[n("sw-select",{attrs:{invalid:e.$v.mailConfigData.mail_driver.$error,options:e.mailDrivers,searchable:!0,"allow-empty":!1,"show-labels":!1},on:{input:e.onChangeDriver},model:{value:e.mailConfigData.mail_driver,callback:function(t){e.$set(e.mailConfigData,"mail_driver",t)},expression:"mailConfigData.mail_driver"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.mail.host"),error:e.hostError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.mailConfigData.mail_host.$error,type:"text",name:"mail_host"},on:{input:function(t){return e.$v.mailConfigData.mail_host.$touch()}},model:{value:e.mailConfigData.mail_host,callback:function(t){e.$set(e.mailConfigData,"mail_host","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_host"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.mail.username"),error:e.usernameError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.mailConfigData.mail_username.$error,type:"text",name:"db_name"},on:{input:function(t){return e.$v.mailConfigData.mail_username.$touch()}},model:{value:e.mailConfigData.mail_username,callback:function(t){e.$set(e.mailConfigData,"mail_username","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_username"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.mail.password"),error:e.passwordError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.mailConfigData.mail_password.$error,type:e.getInputType,name:"password"},on:{input:function(t){return e.$v.mailConfigData.mail_password.$touch()}},scopedSlots:e._u([{key:"rightIcon",fn:function(){return[e.isShowPassword?n("eye-off-icon",{staticClass:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",on:{click:function(t){e.isShowPassword=!e.isShowPassword}}}):n("eye-icon",{staticClass:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",on:{click:function(t){e.isShowPassword=!e.isShowPassword}}})]},proxy:!0}]),model:{value:e.mailConfigData.mail_password,callback:function(t){e.$set(e.mailConfigData,"mail_password","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_password"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.mail.port"),error:e.portError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.mailConfigData.mail_port.$error,type:"text",name:"mail_port"},on:{input:function(t){return e.$v.mailConfigData.mail_port.$touch()}},model:{value:e.mailConfigData.mail_port,callback:function(t){e.$set(e.mailConfigData,"mail_port","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_port"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.mail.encryption"),error:e.encryptionError,required:""}},[n("sw-select",{attrs:{invalid:e.$v.mailConfigData.mail_encryption.$error,options:e.encryptions,searchable:!0,"show-labels":!1},on:{input:function(t){return e.$v.mailConfigData.mail_encryption.$touch()}},model:{value:e.mailConfigData.mail_encryption,callback:function(t){e.$set(e.mailConfigData,"mail_encryption","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_encryption"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-6 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("wizard.mail.from_mail"),error:e.fromEmailError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.mailConfigData.from_mail.$error,type:"text",name:"from_mail"},on:{input:function(t){return e.$v.mailConfigData.from_mail.$touch()}},model:{value:e.mailConfigData.from_mail,callback:function(t){e.$set(e.mailConfigData,"from_mail","string"==typeof t?t.trim():t)},expression:"mailConfigData.from_mail"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.mail.from_name"),error:e.fromNameError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.mailConfigData.from_name.$error,type:"text",name:"from_name"},on:{input:function(t){return e.$v.mailConfigData.from_name.$touch()}},model:{value:e.mailConfigData.from_name,callback:function(t){e.$set(e.mailConfigData,"from_name","string"==typeof t?t.trim():t)},expression:"mailConfigData.from_name"}})],1)],1),e._v(" "),n("sw-button",{staticClass:"mt-4",attrs:{loading:e.loading,disabled:e.loading,variant:"primary",type:"submit"}},[e.loading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.$t("general.save"))+"\n ")],1)],1)}),[],!1,null,null,null).exports;function _u(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var vu=n("ta7f"),gu=vu.required,yu=vu.email,bu={props:{configData:{type:Object,require:!0,default:Object},loading:{type:Boolean,require:!0,default:!1},mailDrivers:{type:Array,require:!0,default:Array}},components:{EyeIcon:l.o,EyeOffIcon:l.p},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:gu},mail_mailgun_domain:{required:gu},mail_mailgun_endpoint:{required:gu},mail_mailgun_secret:{required:gu},from_mail:{required:gu,email:yu},from_name:{required:gu}}},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=O.a.mark((function e(){return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$v.mailConfigData.$touch(),t.$v.mailConfigData.$invalid||t.$emit("submit-data",t.mailConfigData),e.abrupt("return",!1);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){_u(i,r,a,o,s,"next",e)}function s(e){_u(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onChangeDriver:function(){this.$v.mailConfigData.mail_driver.$touch(),this.$emit("on-change-driver",this.mailConfigData.mail_driver)}}},wu=Object(f.a)(bu,(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 xu(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var ku=n("ta7f"),Du=ku.required,Mu=ku.email,Su=ku.numeric,Cu={props:{configData:{type:Object,require:!0,default:Object},loading:{type:Boolean,require:!0,default:!1},mailDrivers:{type:Array,require:!0,default:Array}},components:{EyeIcon:l.o,EyeOffIcon:l.p},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:Du},mail_host:{required:Du},mail_port:{required:Du,numeric:Su},mail_ses_key:{required:Du},mail_ses_secret:{required:Du},mail_encryption:{required:Du},from_mail:{required:Du,email:Mu},from_name:{required:Du}}},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=O.a.mark((function e(){return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$v.mailConfigData.$touch(),t.$v.mailConfigData.$invalid||t.$emit("submit-data",t.mailConfigData),e.abrupt("return",!1);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){xu(i,r,a,o,s,"next",e)}function s(e){xu(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onChangeDriver:function(){this.$v.mailConfigData.mail_driver.$touch(),this.$emit("on-change-driver",this.mailConfigData.mail_driver)}}},Lu=Object(f.a)(Cu,(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 Tu(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var Eu=n("ta7f"),Ou=Eu.required,ju=Eu.email,Au={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:Ou},from_mail:{required:Ou,email:ju},from_name:{required:Ou}}},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=O.a.mark((function e(){return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$v.mailConfigData.$touch(),t.$v.mailConfigData.$invalid||t.$emit("submit-data",t.mailConfigData),e.abrupt("return",!1);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Tu(i,r,a,o,s,"next",e)}function s(e){Tu(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onChangeDriver:function(){this.$v.mailConfigData.mail_driver.$touch(),this.$emit("on-change-driver",this.mailConfigData.mail_driver)}}},Pu=Object(f.a)(Au,(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 Yu(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function $u(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Yu(i,r,a,o,s,"next",e)}function s(e){Yu(i,r,a,o,s,"throw",e)}o(void 0)}))}}var Iu={components:{Smtp:hu,Mailgun:wu,Ses:Lu,sendmail:Pu,mail:Pu},data:function(){return{mailConfigData:{mail_driver:"mail"},mail_driver:"mail",isLoading:!1,isFetching:!1,mail_drivers:[]}},created:function(){this.getMailDrivers()},methods:{getMailDrivers:function(){var e=this;return $u(O.a.mark((function t(){var n;return O.a.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 $u(O.a.mark((function n(){var r;return O.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.isLoading=t.isFetching=!0,n.prev=1,n.next=4,window.axios.post("/api/v1/mail/config",e);case 4:return(r=n.sent).data.success?(t.$emit("next",4),window.toastr.success(t.$t("wizard.success."+r.data.success))):window.toastr.error(t.$t("wizard.errors."+r.data.error)),t.isLoading=t.isFetching=!1,n.abrupt("return",!0);case 10:n.prev=10,n.t0=n.catch(1),t.isLoading=t.isFetching=!1,window.toastr.error("Something went wrong");case 14:case"end":return n.stop()}}),n,null,[[1,10]])})))()}}},Nu=Object(f.a)(Iu,(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 zu(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Fu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ru(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fu(Object(n),!0).forEach((function(t){Hu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bu=n("ta7f"),qu=Bu.required,Uu=Bu.requiredIf,Vu=Bu.sameAs,Wu=Bu.minLength,Ku=Bu.email,Gu={components:{CloudUploadIcon:s.h},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:qu,minLength:Wu(3)},email:{email:Ku,required:qu},password:{required:qu,minLength:Wu(8)},confirm_password:{required:Uu("isRequired"),sameAsPassword:Vu("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:Ru(Ru({},Object(o.b)("user",["uploadAvatar"])),{},{onUploadHandler:function(e){this.previewAvatar=e.getCroppedCanvas().toDataURL(this.cropperOutputMime)},onHandleUploadError:function(){window.toastr.error("Oops! Something went wrong...")},onChange:function(e){this.cropperOutputMime=e.type,this.fileObject=e},next:function(){var e,t=this;return(e=O.a.mark((function e(){var n,r;return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.$v.profileData.$touch(),!t.$v.profileData.$invalid){e.next=3;break}return e.abrupt("return",!0);case 3:return t.isLoading=!0,e.next=6,window.axios.put("/api/v1/me",t.profileData);case 6:return(n=e.sent).data&&(t.fileObject&&t.previewAvatar&&((r=new FormData).append("admin_avatar",JSON.stringify({name:t.fileObject.name,data:t.previewAvatar,id:n.data.user.id})),t.uploadAvatar(r)),t.$emit("next",5),t.isLoading=!1),e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){zu(i,r,a,o,s,"next",e)}function s(e){zu(i,r,a,o,s,"throw",e)}o(void 0)}))})()}})},Ju=(n("NyK7"),Object(f.a)(Gu,(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 Zu(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Xu(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Zu(i,r,a,o,s,"next",e)}function s(e){Zu(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Qu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ed(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qu(Object(n),!0).forEach((function(t){td(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function td(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nd=n("ta7f"),rd=nd.required,ad=nd.maxLength,id={components:{CloudUploadIcon:s.h},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:rd},country_id:{required:rd},address_street_1:{maxLength:ad(255)},address_street_2:{maxLength:ad(255)}}},watch:{country:function(e){var t=e.id;return this.companyData.country_id=t,!0}},computed:{companyNameError:function(){return this.$v.companyData.name.$error?this.$v.companyData.name.required?void 0:this.$tc("validation.required"):""},countryError:function(){return this.$v.companyData.country_id.$error?this.$v.companyData.country_id.required?void 0:this.$tc("validation.required"):""},address1Error:function(){return this.$v.companyData.address_street_1.$error?this.$v.companyData.address_street_1.maxLength?void 0:this.$t("validation.description_maxlength"):""},address2Error:function(){return this.$v.companyData.address_street_2.$error?this.$v.companyData.address_street_2.maxLength?void 0:this.$t("validation.description_maxlength"):""}},mounted:function(){this.fetchCountries()},methods:ed(ed({},Object(o.b)("company",["setSelectedCompany"])),{},{onUploadHandler:function(e){this.previewLogo=e.getCroppedCanvas().toDataURL(this.cropperOutputMime)},onHandleUploadError:function(){window.toastr.error("Oops! Something went wrong...")},onChange:function(e){this.cropperOutputMime=e.type,this.fileObject=e},next:function(){var e=this;return Xu(O.a.mark((function t(){var n,r;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.companyData.$touch(),!e.$v.companyData.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:return e.isLoading=!0,t.next=6,window.axios.put("/api/v1/company",e.companyData);case 6:if(!(n=t.sent).data){t.next=16;break}if(e.setSelectedCompany(n.data.company),!e.fileObject||!e.previewLogo){t.next=14;break}return(r=new FormData).append("company_logo",JSON.stringify({name:e.fileObject.name,data:e.previewLogo})),t.next=14,axios.post("/api/v1/company/upload-logo",r,{headers:{"Content-Type":"multipart/form-data",company:n.data.company.id}});case 14:e.$emit("next",6),e.isLoading=!1;case 16:case"end":return t.stop()}}),t)})))()},onFileChange:function(e){var t=this,n=event.target;if(this.companyData.logo=n.files[0],n.files&&n.files[0]){var r=new FileReader;r.onload=function(e){t.previewLogo=e.target.result},r.readAsDataURL(n.files[0])}},fetchCountries:function(){var e=this;return Xu(O.a.mark((function t(){var n;return O.a.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)})))()}})},od=Object(f.a)(id,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("sw-wizard-step",{attrs:{title:e.$t("wizard.company_info"),description:e.$t("wizard.company_info_desc")}},[e.isFetching?n("base-loader",{attrs:{"show-bg-overlay":!0}}):e._e(),e._v(" "),n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.next()}}},[n("div",[n("div",{staticClass:"grid grid-cols-1 mb-4 md:grid-cols-2 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$tc("settings.company_info.company_logo")}},[n("div",{staticClass:"relative flex items-center justify-center h-24 p-5 mt-2 bg-transparent border-2 border-gray-200 border-dashed rounded-md image-upload-box",attrs:{id:"logo-box"}},[e.previewLogo?n("img",{staticClass:"absolute opacity-100 preview-logo",staticStyle:{"max-height":"80%",animation:"fadeIn 2s ease"},attrs:{src:e.previewLogo}}):n("div",{staticClass:"flex flex-col items-center"},[n("cloud-upload-icon",{staticClass:"h-5 mb-2 text-xl leading-6 text-gray-400"}),e._v(" "),n("p",{staticClass:"text-xs leading-4 text-center text-gray-400"},[e._v("\n Drag a file here or\n "),n("span",{staticClass:"cursor-pointer text-primary-500",attrs:{id:"pick-avatar"}},[e._v("browse")]),e._v("\n to choose a file\n ")])],1)]),e._v(" "),n("sw-avatar",{attrs:{trigger:"#logo-box","preview-avatar":e.previewLogo},on:{changed:e.onChange,uploadHandler:e.onUploadHandler,handleUploadError:e.onHandleUploadError},scopedSlots:e._u([{key:"icon",fn:function(){return[n("cloud-upload-icon",{staticClass:"h-5 mb-2 text-xl leading-6 text-gray-400"})]},proxy:!0}])})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.company_name"),error:e.companyNameError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.companyData.name.$error,type:"text",name:"name"},on:{input:function(t){return e.$v.companyData.name.$touch()}},model:{value:e.companyData.name,callback:function(t){e.$set(e.companyData,"name","string"==typeof t?t.trim():t)},expression:"companyData.name"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.country"),error:e.countryError,required:""}},[n("sw-select",{class:{error:e.$v.companyData.country_id.$error},attrs:{options:e.countries,searchable:!0,"allow-empty":!1,"show-labels":!1,placeholder:e.$t("general.select_country"),"track-by":"id",label:"name"},model:{value:e.country,callback:function(t){e.country=t},expression:"country"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.state")}},[n("sw-input",{attrs:{name:"state",type:"text"},model:{value:e.companyData.state,callback:function(t){e.$set(e.companyData,"state",t)},expression:"companyData.state"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.city")}},[n("sw-input",{attrs:{name:"city",type:"text"},model:{value:e.companyData.city,callback:function(t){e.$set(e.companyData,"city",t)},expression:"companyData.city"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-6 md:grid-cols-2"},[n("div",[n("sw-input-group",{attrs:{label:e.$t("wizard.address"),error:e.address1Error}},[n("sw-textarea",{attrs:{invalid:e.$v.companyData.address_street_1.$error,placeholder:e.$t("general.street_1"),name:"billing_street1",rows:"2"},on:{input:function(t){return e.$v.companyData.address_street_1.$touch()}},model:{value:e.companyData.address_street_1,callback:function(t){e.$set(e.companyData,"address_street_1","string"==typeof t?t.trim():t)},expression:"companyData.address_street_1"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-1 lg:mt-2 md:mt-2",attrs:{error:e.address2Error}},[n("sw-textarea",{attrs:{invalid:e.$v.companyData.address_street_2.$error,placeholder:e.$t("general.street_2"),name:"billing_street2",rows:"2"},on:{input:function(t){return e.$v.companyData.address_street_2.$touch()}},model:{value:e.companyData.address_street_2,callback:function(t){e.$set(e.companyData,"address_street_2",t)},expression:"companyData.address_street_2"}})],1)],1),e._v(" "),n("div",[n("sw-input-group",{attrs:{label:e.$t("wizard.zip_code")}},[n("sw-input",{attrs:{type:"text",name:"zip"},model:{value:e.companyData.zip,callback:function(t){e.$set(e.companyData,"zip","string"==typeof t?t.trim():t)},expression:"companyData.zip"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("wizard.phone")}},[n("sw-input",{attrs:{type:"text",name:"phone"},model:{value:e.companyData.phone,callback:function(t){e.$set(e.companyData,"phone","string"==typeof t?t.trim():t)},expression:"companyData.phone"}})],1)],1)]),e._v(" "),n("sw-button",{staticClass:"mt-4",attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.$t("wizard.save_cont"))+"\n ")],1)],1)])],1)}),[],!1,null,null,null).exports,sd=n("Ugjx");function ld(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function cd(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){ld(i,r,a,o,s,"next",e)}function s(e){ld(i,r,a,o,s,"throw",e)}o(void 0)}))}}function ud(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ud(Object(n),!0).forEach((function(t){pd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ud(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fd=n("ta7f"),md=fd.required,hd=(fd.minLength,fd.email,{data:function(){return{settingData:{language:null,currency:null,timeZone:null,dateFormat:null,fiscalYear:null},isLoading:!1,isFetching:!1,step:1}},validations:{settingData:{currency:{required:md},language:{required:md},dateFormat:{required:md},timeZone:{required:md},fiscalYear:{required:md}}},computed:dd(dd(dd({},Object(o.c)(["languages","currencies","timeZones","dateFormats","fiscalYears"])),Object(o.c)("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:dd(dd(dd({},Object(o.b)("company",["updateCompanySettings","setSelectedCompany"])),Object(o.b)(["fetchLanguages","fetchCurrencies","fetchFiscalYears","fetchDateFormats","fetchTimeZones"])),{},{setInitialData:function(){var e=this;return cd(O.a.mark((function t(){return O.a.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 cd(O.a.mark((function t(){var n,r;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.settingData.$touch(),!e.$v.settingData.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:return e.isLoading=!0,n={settings:{currency:e.settingData.currency.id,time_zone:e.settingData.timeZone.value,language:e.settingData.language.code,fiscal_year:e.settingData.fiscalYear.value,carbon_date_format:e.settingData.dateFormat.carbon_format_value,moment_date_format:e.settingData.dateFormat.moment_format_value}},t.next=7,e.updateCompanySettings(n);case 7:(r=t.sent).data&&(e.isLoading=!1,e.updateUserSettings(),sd.a.set("auth.token",r.data.token));case 9:case"end":return t.stop()}}),t)})))()},updateUserSettings:function(){var e=this;return cd(O.a.mark((function t(){var n;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={settings:{language:e.settingData.language.code}},t.next=3,axios.put("/api/v1/me/settings",n);case 3:t.sent.data&&(e.$emit("next","COMPLETED"),window.toastr.success("Login Successful"),e.$router.push("/admin/dashboard"));case 5:case"end":return t.stop()}}),t)})))()}})});function _d(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function vd(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){_d(i,r,a,o,s,"next",e)}function s(e){_d(i,r,a,o,s,"throw",e)}o(void 0)}))}}var gd={components:{step_1:jc,step_2:$c,step_3:lu,step_4:Nu,step_5:Ju,step_6:od,step_7:Object(f.a)(hd,(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 vd(O.a.mark((function t(){var n,r;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,axios.get("/api/v1/onboarding/wizard-step");case 2:if("COMPLETED"!==(n=t.sent).data.profile_complete){t.next=6;break}return e.$router.push("/admin/dashboard"),t.abrupt("return");case 6:(r=parseInt(n.data.profile_complete))&&(e.step=r+1,e.tab="step_".concat(r+1));case 8:case"end":return t.stop()}}),t)})))()},setProfileComplete:function(e){return vd(O.a.mark((function t(){var n;return O.a.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 vd(O.a.mark((function n(){return O.a.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)})))()}}},yd=Object(f.a)(gd,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"flex flex-col items-center justify-between w-full h-32 pt-10 step-indicator"},[n("img",{staticClass:"h-12",attrs:{id:"logo-crater",src:"/assets/img/crater-logo.png",alt:"Crater Logo"}}),e._v(" "),n("sw-wizard",{attrs:{steps:7,currentStep:e.step,"allow-navigation-redirect":!1},on:{"update:currentStep":function(t){e.step=t},"update:current-step":function(t){e.step=t}}},[n(e.tab,{tag:"component",on:{next:e.setTab}})],1)],1)}),[],!1,null,null,null).exports;a.a.use(i.a);var bd=[{path:"/",component:C,meta:{redirectIfAuthenticated:!0},children:[{path:"/",component:q},{path:"login",component:q,name:"login"},{path:"/forgot-password",component:G,name:"forgot-password"},{path:"/reset-password/:token",component:ne,name:"reset-password"},{path:"register",component:ae,name:"register"}]},{path:"/on-boarding",component:T,children:[{path:"/",component:yd,name:"wizard"}]},{path:"/admin",component:S,meta:{requiresAuth:!0},children:[{path:"/",component:Ae,name:"dashboard"},{path:"dashboard",component:Ae},{path:"customers",component:Re},{path:"customers/create",name:"customers.create",component:nt},{path:"customers/:id/edit",name:"customers.edit",component:nt},{path:"customers/:id/view",name:"customers.view",component:Ct},{path:"items",component:Pt},{path:"items/create",name:"items.create",component:Wt},{path:"items/:id/edit",name:"items.edit",component:Wt},{path:"estimates",name:"estimates.index",component:Ur},{path:"estimates/create",name:"estimates.create",component:Ra},{path:"estimates/:id/view",name:"estimates.view",component:Ga},{path:"estimates/:id/edit",name:"estimates.edit",component:Ra},{path:"invoices",name:"invoices.index",component:rn},{path:"invoices/create",name:"invoices.create",component:ar},{path:"invoices/:id/view",name:"invoices.view",component:pr},{path:"invoices/:id/edit",name:"invoices.edit",component:ar},{path:"payments",name:"payments.index",component:yr},{path:"payments/create",name:"payments.create",component:Er},{path:"payments/:id/create",name:"invoice.payments.create",component:Er},{path:"payments/:id/edit",name:"payments.edit",component:Er},{path:"payments/:id/view",name:"payments.view",component:Nr},{path:"expenses",component:ni},{path:"expenses/create",name:"expenses.create",component:fi},{path:"expenses/:id/edit",name:"expenses.edit",component:fi},{path:"users",component:bi},{path:"users/create",name:"users.create",component:ji},{path:"users/:id/edit",name:"users.edit",component:ji},{path:"reports",component:fo,children:[{path:"sales",component:Fi},{path:"expenses",component:Ki},{path:"profit-loss",component:no},{path:"taxes",component:uo}]},{path:"settings",component:ho,children:[{path:"company-info",name:"company.info",component:So},{path:"customization",name:"customization",component:gs},{path:"payment-mode",name:"payment.mode",component:Lc},{path:"custom-fields",name:"custom.fields",component:bc},{path:"user-profile",name:"user.profile",component:Ws},{path:"preferences",name:"preferences",component:Ps},{path:"tax-types",name:"tax.types",component:el},{path:"notes",name:"notes",component:ll},{path:"expense-category",name:"expense.category",component:hl},{path:"mail-configuration",name:"mailconfig",component:Kl},{path:"notifications",name:"notifications",component:Ss},{path:"update-app",name:"updateapp",component:Ql},{path:"backup",name:"backup",component:oc},{path:"file-disk",name:"file-disk",component:fc}]}]},{path:"*",component:oe}],wd=new i.a({routes:bd,mode:"history",linkActiveClass:"active"});t.a=wd},qPBE:function(e,t,n){var r=n("tjlA"),a=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return a(e,t,n)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=o),i(a,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=a(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},qfHW:function(e,t,n){(function(e){t.fetch=s(e.fetch)&&s(e.ReadableStream),t.writableStream=s(e.WritableStream),t.abortController=s(e.AbortController),t.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),t.blobConstructor=!0}catch(e){}var n;function r(){if(void 0!==n)return n;if(e.XMLHttpRequest){n=new e.XMLHttpRequest;try{n.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function a(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}var i=void 0!==e.ArrayBuffer,o=i&&s(e.ArrayBuffer.prototype.slice);function s(e){return"function"==typeof e}t.arraybuffer=t.fetch||i&&a("arraybuffer"),t.msstream=!t.fetch&&o&&a("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&i&&a("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!r()&&s(r().overrideMimeType),t.vbArray=s(e.VBArray),n=null}).call(this,n("yLpj"))},qkdH:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function s(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.r(t),n.d(t,"MultiDrag",(function(){return yt})),n.d(t,"Sortable",(function(){return Fe})),n.d(t,"Swap",(function(){return 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),f=c(/safari/i)&&!c(/chrome/i)&&!c(/android/i),m=c(/iP(ad|od|hone)/i),h=c(/chrome/i)&&c(/android/i),_={capture:!1,passive:!1};function v(e,t,n){e.addEventListener(t,n,!u&&_)}function g(e,t,n){e.removeEventListener(t,n,!u&&_)}function y(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function b(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function w(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&y(e,t):y(e,t))||r&&e===n)return e;if(e===n)break}while(e=b(e))}return null}var x,k=/\s+/g;function D(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(k," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(k," ")}}function M(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function S(e,t){var n="";if("string"==typeof e)n=e;else do{var r=M(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(n)}function C(e,t,n){if(e){var r=e.getElementsByTagName(t),a=0,i=r.length;if(n)for(;a<i;a++)n(r[a],a);return r}return[]}function L(){var e=document.scrollingElement;return e||document.documentElement}function T(e,t,n,r,a){if(e.getBoundingClientRect||e===window){var i,o,s,l,c,d,p;if(e!==window&&e!==L()?(o=(i=e.getBoundingClientRect()).top,s=i.left,l=i.bottom,c=i.right,d=i.height,p=i.width):(o=0,s=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,p=window.innerWidth),(t||n)&&e!==window&&(a=a||e.parentNode,!u))do{if(a&&a.getBoundingClientRect&&("none"!==M(a,"transform")||n&&"static"!==M(a,"position"))){var f=a.getBoundingClientRect();o-=f.top+parseInt(M(a,"border-top-width")),s-=f.left+parseInt(M(a,"border-left-width")),l=o+i.height,c=s+i.width;break}}while(a=a.parentNode);if(r&&e!==window){var m=S(a||e),h=m&&m.a,_=m&&m.d;m&&(l=(o/=_)+(d/=_),c=(s/=h)+(p/=h))}return{top:o,left:s,bottom:l,right:c,width:p,height:d}}}function E(e,t,n){for(var r=Y(e,!0),a=T(e)[t];r;){var i=T(r)[n];if(!("top"===n||"left"===n?a>=i:a<=i))return r;if(r===L())break;r=Y(r,!1)}return!1}function O(e,t,n){for(var r=0,a=0,i=e.children;a<i.length;){if("none"!==i[a].style.display&&i[a]!==Fe.ghost&&i[a]!==Fe.dragged&&w(i[a],n.draggable,e,!1)){if(r===t)return i[a];r++}a++}return null}function 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,r=L();if(e)do{var a=S(e),i=a.a,o=a.d;t+=e.scrollLeft*i,n+=e.scrollTop*o}while(e!==r&&(e=e.parentNode));return[t,n]}function Y(e,t){if(!e||!e.getBoundingClientRect)return L();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var a=M(n);if(n.clientWidth<n.scrollWidth&&("auto"==a.overflowX||"scroll"==a.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==a.overflowY||"scroll"==a.overflowY)){if(!n.getBoundingClientRect||n===document.body)return L();if(r||t)return n;r=!0}}}while(n=n.parentNode);return L()}function $(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 I(e,t){return function(){if(!x){var n=arguments,r=this;1===n.length?e.call(r,n[0]):e.apply(r,n),x=setTimeout((function(){x=void 0}),t)}}}function N(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function z(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 R(e){M(e,"position",""),M(e,"top",""),M(e,"left",""),M(e,"width",""),M(e,"height","")}var H="Sortable"+(new Date).getTime();function B(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==M(e,"display")&&e!==Fe.ghost){t.push({target:e,rect:T(e)});var n=o({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=S(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var a=!1,i=0;t.forEach((function(e){var t=0,n=e.target,o=n.fromRect,s=T(n),l=n.prevFromRect,c=n.prevToRect,u=e.rect,d=S(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&$(l,s)&&!$(o,s)&&(u.top-s.top)/(u.left-s.left)==(o.top-s.top)/(o.left-s.left)&&(t=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(u,l,c,r.options)),$(s,o)||(n.prevFromRect=o,n.prevToRect=s,t||(t=r.options.animation),r.animate(n,u,s,t)),t&&(a=!0,i=Math.max(i,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),a?e=setTimeout((function(){"function"==typeof n&&n()}),i):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){M(e,"transition",""),M(e,"transform","");var a=S(this.el),i=a&&a.a,o=a&&a.d,s=(t.left-n.left)/(i||1),l=(t.top-n.top)/(o||1);e.animatingX=!!s,e.animatingY=!!l,M(e,"transform","translate3d("+s+"px,"+l+"px,0)"),function(e){e.offsetWidth}(e),M(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),M(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){M(e,"transition",""),M(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}var q=[],U={initializeByDefault:!0},V={mount:function(e){for(var t in U)U.hasOwnProperty(t)&&!(t in e)&&(e[t]=U[t]);q.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var a=e+"Global";q.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][a]&&t[r.pluginName][a](o({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](o({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var a in q.forEach((function(r){var a=r.pluginName;if(e.options[a]||r.initializeByDefault){var o=new r(e,t,e.options);o.sortable=e,o.options=e.options,e[a]=o,i(n,o.defaults)}})),e.options)if(e.options.hasOwnProperty(a)){var o=this.modifyOption(e,a,e.options[a]);void 0!==o&&(e.options[a]=o)}},getEventProperties:function(e,t){var n={};return q.forEach((function(r){"function"==typeof r.eventProperties&&i(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return q.forEach((function(a){e[a.pluginName]&&a.optionListeners&&"function"==typeof a.optionListeners[t]&&(r=a.optionListeners[t].call(e[a.pluginName],n))})),r}};function W(e){var t=e.sortable,n=e.rootEl,r=e.name,a=e.targetEl,i=e.cloneEl,s=e.toEl,l=e.fromEl,c=e.oldIndex,p=e.newIndex,f=e.oldDraggableIndex,m=e.newDraggableIndex,h=e.originalEvent,_=e.putSortable,v=e.extraEventProperties;if(t=t||n&&n[H]){var g,y=t.options,b="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||u||d?(g=document.createEvent("Event")).initEvent(r,!0,!0):g=new CustomEvent(r,{bubbles:!0,cancelable:!0}),g.to=s||n,g.from=l||n,g.item=a||n,g.clone=i,g.oldIndex=c,g.newIndex=p,g.oldDraggableIndex=f,g.newDraggableIndex=m,g.originalEvent=h,g.pullMode=_?_.lastPutMode:void 0;var w=o({},v,V.getEventProperties(r,t));for(var x in w)g[x]=w[x];n&&n.dispatchEvent(g),y[b]&&y[b].call(t,g)}}var K=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,a=s(n,["evt"]);V.pluginEvent.bind(Fe)(e,t,o({dragEl:J,parentEl:Z,ghostEl:X,rootEl:Q,nextEl:ee,lastDownEl:te,cloneEl:ne,cloneHidden:re,dragStarted:_e,putSortable:ce,activeSortable:Fe.active,originalEvent:r,oldIndex:ae,oldDraggableIndex:oe,newIndex:ie,newDraggableIndex:se,hideGhostForTarget:$e,unhideGhostForTarget:Ie,cloneNowHidden:function(){re=!0},cloneNowShown:function(){re=!1},dispatchSortableEvent:function(e){G({sortable:t,name:e,originalEvent:r})}},a))};function G(e){W(o({putSortable:ce,cloneEl:ne,targetEl:J,rootEl:Q,oldIndex:ae,oldDraggableIndex:oe,newIndex:ie,newDraggableIndex:se},e))}var J,Z,X,Q,ee,te,ne,re,ae,ie,oe,se,le,ce,ue,de,pe,fe,me,he,_e,ve,ge,ye,be,we=!1,xe=!1,ke=[],De=!1,Me=!1,Se=[],Ce=!1,Le=[],Te="undefined"!=typeof document,Ee=m,Oe=d||u?"cssFloat":"float",je=Te&&!h&&!m&&"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),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),a=O(e,0,t),i=O(e,1,t),o=a&&M(a),s=i&&M(i),l=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+T(a).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+T(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&o.float&&"none"!==o.float){var u="left"===o.float?"left":"right";return!i||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return a&&("block"===o.display||"flex"===o.display||"table"===o.display||"grid"===o.display||l>=r&&"none"===n[Oe]||i&&"none"===n[Oe]&&l+c>r)?"vertical":"horizontal"},Ye=function(e){function t(e,n){return function(r,a,i,o){var s=r.options.group.name&&a.options.group.name&&r.options.group.name===a.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,a,i,o),n)(r,a,i,o);var l=(n?r:a).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},a=e.group;a&&"object"==r(a)||(a={name:a}),n.name=a.name,n.checkPull=t(a.pull,!0),n.checkPut=t(a.put),n.revertClone=a.revertClone,e.group=n},$e=function(){!Ae&&X&&M(X,"display","none")},Ie=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(J){e=e.touches?e.touches[0]:e;var t=(a=e.clientX,i=e.clientY,ke.some((function(e){if(!j(e)){var t=T(e),n=e[H].options.emptyInsertThreshold,r=a>=t.left-n&&a<=t.right+n,s=i>=t.top-n&&i<=t.bottom+n;return n&&r&&s?o=e:void 0}})),o);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[H]._onDragOver(n)}}var a,i,o},ze=function(e){J&&J.parentNode[H]._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[H]=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 r in V.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var a in Ye(t),this)"_"===a.charAt(0)&&"function"==typeof this[a]&&(this[a]=this[a].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 Re(e,t,n,r,a,i,o,s){var l,c,p=e[H],f=p.options.onMove;return!window.CustomEvent||u||d?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=a||t,l.relatedRect=i||T(t),l.willInsertAfter=s,l.originalEvent=o,e.dispatchEvent(l),f&&(c=f.call(p,l,o)),c}function He(e){e.draggable=!1}function Be(){Ce=!1}function qe(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function Ue(e){return setTimeout(e,0)}function Ve(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,J):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,a=r.preventOnFilter,i=e.type,o=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(o||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=r.filter;if(function(e){Le.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&Le.push(r)}}(n),!J&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||r.disabled||l.isContentEditable||(s=w(s,r.draggable,n,!1))&&s.animated||te===s)){if(ae=A(s),oe=A(s,r.draggable),"function"==typeof c){if(c.call(this,e,s,this))return G({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),K("filter",t,{evt:e}),void(a&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(r){if(r=w(l,r.trim(),n,!1))return G({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),K("filter",t,{evt:e}),!0}))))return void(a&&e.cancelable&&e.preventDefault());r.handle&&!w(l,r.handle,n,!1)||this._prepareDragStart(e,o,s)}}},_prepareDragStart:function(e,t,n){var r,a=this,i=a.el,o=a.options,s=i.ownerDocument;if(n&&!J&&n.parentNode===i){var l=T(n);if(Q=i,Z=(J=n).parentNode,ee=J.nextSibling,te=n,le=o.group,Fe.dragged=J,ue={target:J,clientX:(t||e).clientX,clientY:(t||e).clientY},me=ue.clientX-l.left,he=ue.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,J.style["will-change"]="all",r=function(){K("delayEnded",a,{evt:e}),Fe.eventCanceled?a._onDrop():(a._disableDelayedDragEvents(),!p&&a.nativeDraggable&&(J.draggable=!0),a._triggerDragStart(e,t),G({sortable:a,name:"choose",originalEvent:e}),D(J,o.chosenClass,!0))},o.ignore.split(",").forEach((function(e){C(J,e.trim(),He)})),v(s,"dragover",Ne),v(s,"mousemove",Ne),v(s,"touchmove",Ne),v(s,"mouseup",a._onDrop),v(s,"touchend",a._onDrop),v(s,"touchcancel",a._onDrop),p&&this.nativeDraggable&&(this.options.touchStartThreshold=4,J.draggable=!0),K("delayStart",this,{evt:e}),!o.delay||o.delayOnTouchOnly&&!t||this.nativeDraggable&&(d||u))r();else{if(Fe.eventCanceled)return void this._onDrop();v(s,"mouseup",a._disableDelayedDrag),v(s,"touchend",a._disableDelayedDrag),v(s,"touchcancel",a._disableDelayedDrag),v(s,"mousemove",a._delayedDragTouchMoveHandler),v(s,"touchmove",a._delayedDragTouchMoveHandler),o.supportPointer&&v(s,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(r,o.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){J&&He(J),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(J,"dragend",this),v(Q,"dragstart",this._onDragStart));try{document.selection?Ue((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(we=!1,Q&&J){K("dragStarted",this,{evt:t}),this.nativeDraggable&&v(document,"dragover",ze);var n=this.options;!e&&D(J,n.dragClass,!1),D(J,n.ghostClass,!0),Fe.active=this,e&&this._appendGhost(),G({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(de){this._lastX=de.clientX,this._lastY=de.clientY,$e();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(J.parentNode[H]._isOutsideThisEl(e),t)do{if(t[H]){if(t[H]._onDragOver({clientX:de.clientX,clientY:de.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Ie()}},_onTouchMove:function(e){if(ue){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,a=e.touches?e.touches[0]:e,i=X&&S(X,!0),o=X&&i&&i.a,s=X&&i&&i.d,l=Ee&&be&&P(be),c=(a.clientX-ue.clientX+r.x)/(o||1)+(l?l[0]-Se[0]:0)/(o||1),u=(a.clientY-ue.clientY+r.y)/(s||1)+(l?l[1]-Se[1]:0)/(s||1);if(!Fe.active&&!we){if(n&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(X){i?(i.e+=c-(pe||0),i.f+=u-(fe||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,fe=u,de=a}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!X){var e=this.options.fallbackOnBody?document.body:Q,t=T(J,!0,Ee,!0,e),n=this.options;if(Ee){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=J.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",Ee?"absolute":"fixed"),M(X,"zIndex","100000"),M(X,"pointerEvents","none"),Fe.ghost=X,e.appendChild(X),M(X,"transform-origin",me/parseInt(X.style.width)*100+"% "+he/parseInt(X.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,a=n.options;K("dragStart",this,{evt:e}),Fe.eventCanceled?this._onDrop():(K("setupClone",this),Fe.eventCanceled||((ne=z(J)).draggable=!1,ne.style["will-change"]="",this._hideClone(),D(ne,this.options.chosenClass,!1),Fe.clone=ne),n.cloneId=Ue((function(){K("clone",n),Fe.eventCanceled||(n.options.removeCloneOnHide||Q.insertBefore(ne,J),n._hideClone(),G({sortable:n,name:"clone"}))})),!t&&D(J,a.dragClass,!0),t?(xe=!0,n._loopId=setInterval(n._emulateDragOver,50)):(g(document,"mouseup",n._onDrop),g(document,"touchend",n._onDrop),g(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",a.setData&&a.setData.call(n,r,J)),v(document,"drop",n),M(J,"transform","translateZ(0)")),we=!0,n._dragStartId=Ue(n._dragStarted.bind(n,t,e)),v(document,"selectstart",n),_e=!0,f&&M(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,a,i=this.el,s=e.target,l=this.options,c=l.group,u=Fe.active,d=le===c,p=l.sort,f=ce||u,m=this,h=!1;if(!Ce){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=w(s,l.draggable,i,!0),$("dragOver"),Fe.eventCanceled)return h;if(J.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||m._ignoreWhileAnimating===s)return z(!1);if(xe=!1,u&&!l.disabled&&(d?p||(r=!Q.contains(J)):ce===this||(this.lastPutMode=le.checkPull(this,u,J,e))&&c.checkPut(this,u,J,e))){if(a="vertical"===this._getDirection(e,s),t=T(J),$("dragOverValid"),Fe.eventCanceled)return h;if(r)return Z=Q,I(),this._hideClone(),$("revert"),Fe.eventCanceled||(ee?Q.insertBefore(J,ee):Q.appendChild(J)),z(!0);var _=j(i,l.draggable);if(!_||function(e,t,n){var r=T(j(n.el,n.options.draggable));return t?e.clientX>r.right+10||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+10}(e,a,this)&&!_.animated){if(_===J)return z(!1);if(_&&i===e.target&&(s=_),s&&(n=T(s)),!1!==Re(Q,i,J,t,s,n,e,!!s))return I(),i.appendChild(J),Z=i,F(),z(!0)}else if(s.parentNode===i){n=T(s);var v,g,y,b=J.parentNode!==i,x=!function(e,t,n){var r=n?e.left:e.top,a=n?e.right:e.bottom,i=n?e.width:e.height,o=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return r===o||a===s||r+i/2===o+l/2}(J.animated&&J.toRect||t,s.animated&&s.toRect||n,a),k=a?"top":"left",S=E(s,"top","top")||E(J,"top","top"),C=S?S.scrollTop:void 0;if(ve!==s&&(g=n[k],De=!1,Me=!x&&l.invertSwap||b),0!==(v=function(e,t,n,r,a,i,o,s){var l=r?e.clientY:e.clientX,c=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,p=!1;if(!o)if(s&&ye<c*a){if(!De&&(1===ge?l>u+c*i/2:l<d-c*i/2)&&(De=!0),De)p=!0;else if(1===ge?l<u+ye:l>d-ye)return-ge}else if(l>u+c*(1-a)/2&&l<d-c*(1-a)/2)return function(e){return A(J)<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,a,x?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Me,ve===s))){var L=A(J);do{L-=v,y=Z.children[L]}while(y&&("none"===M(y,"display")||y===X))}if(0===v||y===s)return z(!1);ve=s,ge=v;var O=s.nextElementSibling,P=!1,Y=Re(Q,i,J,t,s,n,e,P=1===v);if(!1!==Y)return 1!==Y&&-1!==Y||(P=1===Y),Ce=!0,setTimeout(Be,30),I(),P&&!O?i.appendChild(J):s.parentNode.insertBefore(J,P?O:s),S&&N(S,0,C-S.scrollTop),Z=J.parentNode,void 0===g||Me||(ye=Math.abs(g-T(s)[k])),F(),z(!0)}if(i.contains(J))return z(!1)}return!1}function $(l,c){K(l,m,o({evt:e,isOwner:d,axis:a?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:p,fromSortable:f,target:s,completed:z,onMove:function(n,r){return Re(Q,i,J,t,n,T(n),e,r)},changed:F},c))}function I(){$("dragOverAnimationCapture"),m.captureAnimationState(),m!==f&&f.captureAnimationState()}function z(t){return $("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(m),m!==f&&(D(J,ce?ce.options.ghostClass:u.options.ghostClass,!1),D(J,l.ghostClass,!0)),ce!==m&&m!==Fe.active?ce=m:m===Fe.active&&ce&&(ce=null),f===m&&(m._ignoreWhileAnimating=s),m.animateAll((function(){$("dragOverAnimationComplete"),m._ignoreWhileAnimating=null})),m!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(s===J&&!J.animated||s===i&&!s.animated)&&(ve=null),l.dragoverBubble||e.rootEl||s===document||(J.parentNode[H]._isOutsideThisEl(e.target),!t&&Ne(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function F(){ie=A(J),se=A(J,l.draggable),G({sortable:m,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(J),se=A(J,n.draggable),K("drop",this,{evt:e}),Z=J&&J.parentNode,ie=A(J),se=A(J,n.draggable),Fe.eventCanceled||(we=!1,Me=!1,De=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ve(this.cloneId),Ve(this._dragStartId),this.nativeDraggable&&(g(document,"drop",this),g(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),f&&M(document.body,"user-select",""),M(J,"transform",""),e&&(_e&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),X&&X.parentNode&&X.parentNode.removeChild(X),(Q===Z||ce&&"clone"!==ce.lastPutMode)&&ne&&ne.parentNode&&ne.parentNode.removeChild(ne),J&&(this.nativeDraggable&&g(J,"dragend",this),He(J),J.style["will-change"]="",_e&&!we&&D(J,ce?ce.options.ghostClass:this.options.ghostClass,!1),D(J,this.options.chosenClass,!1),G({sortable:this,name:"unchoose",toEl:Z,newIndex:null,newDraggableIndex:null,originalEvent:e}),Q!==Z?(ie>=0&&(G({rootEl:Z,name:"add",toEl:Z,fromEl:Q,originalEvent:e}),G({sortable:this,name:"remove",toEl:Z,originalEvent:e}),G({rootEl:Z,name:"sort",toEl:Z,fromEl:Q,originalEvent:e}),G({sortable:this,name:"sort",toEl:Z,originalEvent:e})),ce&&ce.save()):ie!==ae&&ie>=0&&(G({sortable:this,name:"update",toEl:Z,originalEvent:e}),G({sortable:this,name:"sort",toEl:Z,originalEvent:e})),Fe.active&&(null!=ie&&-1!==ie||(ie=ae,se=oe),G({sortable:this,name:"end",toEl:Z,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){K("nulling",this),Q=J=Z=X=ee=ne=te=re=ue=de=_e=ie=se=ae=oe=ve=ge=ce=le=Fe.dragged=Fe.ghost=Fe.clone=Fe.active=null,Le.forEach((function(e){e.checked=!0})),Le.length=pe=fe=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":J&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,a=n.length,i=this.options;r<a;r++)w(e=n[r],i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||qe(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,r){var a=n.children[r];w(a,this.options.draggable,n,!1)&&(t[e]=a)}),this),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return w(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=V.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&Ye(n)},destroy:function(){K("destroy",this);var e=this.el;e[H]=null,g(e,"mousedown",this._onTapStart),g(e,"touchstart",this._onTapStart),g(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(g(e,"dragover",this),g(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),ke.splice(ke.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!re){if(K("hideClone",this),Fe.eventCanceled)return;M(ne,"display","none"),this.options.removeCloneOnHide&&ne.parentNode&&ne.parentNode.removeChild(ne),re=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(re){if(K("showClone",this),Fe.eventCanceled)return;Q.contains(J)&&!this.options.group.revertClone?Q.insertBefore(ne,J):ee?Q.insertBefore(ne,ee):Q.appendChild(ne),this.options.group.revertClone&&this.animate(J,ne),M(ne,"display",""),re=!1}}else this._hideClone()}},Te&&v(document,"touchmove",(function(e){(Fe.active||we)&&e.cancelable&&e.preventDefault()})),Fe.utils={on:v,off:g,css:M,find:C,is:function(e,t){return!!w(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:I,closest:w,toggleClass:D,clone:z,index:A,nextTick:Ue,cancelNextTick:Ve,detectDirection:Pe,getChild:O},Fe.get=function(e){return e[H]},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)),V.mount(e)}))},Fe.create=function(e,t){return new Fe(e,t)},Fe.version="1.10.2";var We,Ke,Ge,Je,Ze,Xe,Qe=[],et=!1;function tt(){Qe.forEach((function(e){clearInterval(e.pid)})),Qe=[]}function nt(){clearInterval(Xe)}var rt,at=I((function(e,t,n,r){if(t.scroll){var a,i=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,c=L(),u=!1;Ke!==n&&(Ke=n,tt(),We=t.scroll,a=t.scrollFn,!0===We&&(We=Y(n,!0)));var d=0,p=We;do{var f=p,m=T(f),h=m.top,_=m.bottom,v=m.left,g=m.right,y=m.width,b=m.height,w=void 0,x=void 0,k=f.scrollWidth,D=f.scrollHeight,S=M(f),C=f.scrollLeft,E=f.scrollTop;f===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 O=w&&(Math.abs(g-i)<=s&&C+y<k)-(Math.abs(v-i)<=s&&!!C),j=x&&(Math.abs(_-o)<=s&&E+b<D)-(Math.abs(h-o)<=s&&!!E);if(!Qe[d])for(var A=0;A<=d;A++)Qe[A]||(Qe[A]={});Qe[d].vx==O&&Qe[d].vy==j&&Qe[d].el===f||(Qe[d].el=f,Qe[d].vx=O,Qe[d].vy=j,clearInterval(Qe[d].pid),0==O&&0==j||(u=!0,Qe[d].pid=setInterval(function(){r&&0===this.layer&&Fe.active._onTouchMove(Ze);var t=Qe[this.layer].vy?Qe[this.layer].vy*l:0,n=Qe[this.layer].vx?Qe[this.layer].vx*l:0;"function"==typeof a&&"continue"!==a.call(Fe.dragged.parentNode[H],n,t,e,Ze,Qe[this.layer].el)||N(Qe[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&p!==c&&(p=Y(p,!1)));et=u}}),30),it=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,a=e.activeSortable,i=e.dispatchSortableEvent,o=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||a;o();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(u)&&(i("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function ot(){}function st(){}function lt(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;rt=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,a=e.activeSortable,i=e.changed,o=e.cancel;if(a.options.swap){var s=this.sortable.el,l=this.options;if(n&&n!==s){var c=rt;!1!==r(n)?(D(n,l.swapClass,!0),rt=n):rt=null,c&&c!==rt&&D(c,l.swapClass,!1)}i(),t(!0),o()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,a=n||this.sortable,i=this.options;rt&&D(rt,i.swapClass,!1),rt&&(i.swap||n&&n.options.swap)&&r!==rt&&(a.captureAnimationState(),a!==t&&t.captureAnimationState(),function(e,t){var n,r,a=e.parentNode,i=t.parentNode;if(!a||!i||a.isEqualNode(t)||i.isEqualNode(e))return;n=A(e),r=A(t),a.isEqualNode(i)&&n<r&&r++;a.insertBefore(t,a.children[n]),i.insertBefore(e,i.children[r])}(r,rt),a.animateAll(),a!==t&&t.animateAll())},nulling:function(){rt=null}},i(e,{pluginName:"swap",eventProperties:function(){return{swapItem:rt}}})}ot.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=O(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:it},i(ot,{pluginName:"revertOnSpill"}),st.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:it},i(st,{pluginName:"removeOnSpill"});var ct,ut,dt,pt,ft,mt=[],ht=[],_t=!1,vt=!1,gt=!1;function yt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?v(document,"pointerup",this._deselectMultiDrag):(v(document,"mouseup",this._deselectMultiDrag),v(document,"touchend",this._deselectMultiDrag)),v(document,"keydown",this._checkKeyDown),v(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var r="";mt.length&&ut===e?mt.forEach((function(e,t){r+=(t?", ":"")+e.textContent})):r=n.textContent,t.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;dt=t},delayEnded:function(){this.isMultiDrag=~mt.indexOf(dt)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<mt.length;r++)ht.push(z(mt[r])),ht[r].sortableIndex=mt[r].sortableIndex,ht[r].draggable=!1,ht[r].style["will-change"]="",D(ht[r],this.options.selectedClass,!1),mt[r]===dt&&D(ht[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,a=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||mt.length&&ut===t&&(bt(!0,n),r("clone"),a()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(bt(!1,n),ht.forEach((function(e){M(e,"display","")})),t(),ft=!1,r())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),r=e.cancel;this.isMultiDrag&&(ht.forEach((function(e){M(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),ft=!0,r())},dragStartGlobal:function(e){e.sortable;!this.isMultiDrag&&ut&&ut.multiDrag._deselectMultiDrag(),mt.forEach((function(e){e.sortableIndex=A(e)})),mt=mt.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)){mt.forEach((function(e){e!==dt&&M(e,"position","absolute")}));var r=T(dt,!1,!0,!0);mt.forEach((function(e){e!==dt&&F(e,r)})),vt=!0,_t=!0}n.animateAll((function(){vt=!1,_t=!1,t.options.animation&&mt.forEach((function(e){R(e)})),t.options.sort&&wt()}))}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;vt&&~mt.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,a=e.dragRect;mt.length>1&&(mt.forEach((function(e){r.addAnimationState({target:e,rect:vt?T(e):a}),R(e),e.fromRect=a,t.removeAnimationState(e)})),vt=!1,function(e,t){mt.forEach((function(n,r){var a=t.children[n.sortableIndex+(e?Number(r):0)];a?t.insertBefore(n,a):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,a=e.activeSortable,i=e.parentEl,o=e.putSortable,s=this.options;if(r){if(n&&a._hideClone(),_t=!1,s.animation&&mt.length>1&&(vt||!n&&!a.options.sort&&!o)){var l=T(dt,!1,!0,!0);mt.forEach((function(e){e!==dt&&(F(e,l),i.appendChild(e))})),vt=!0}if(!n)if(vt||wt(),mt.length>1){var c=ft;a._showClone(t),a.options.animation&&!ft&&c&&ht.forEach((function(e){a.addAnimationState({target:e,rect:pt}),e.fromRect=pt,e.thisAnimationDuration=null}))}else a._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(mt.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){pt=i({},t);var a=S(dt,!0);pt.top-=a.f,pt.left-=a.e}},dragOverAnimationComplete:function(){vt&&(vt=!1,wt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,a=e.sortable,i=e.dispatchSortableEvent,o=e.oldIndex,s=e.putSortable,l=s||this.sortable;if(t){var c=this.options,u=r.children;if(!gt)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),D(dt,c.selectedClass,!~mt.indexOf(dt)),~mt.indexOf(dt))mt.splice(mt.indexOf(dt),1),ct=null,W({sortable:a,rootEl:n,name:"deselect",targetEl:dt,originalEvt:t});else{if(mt.push(dt),W({sortable:a,rootEl:n,name:"select",targetEl:dt,originalEvt:t}),t.shiftKey&&ct&&a.el.contains(ct)){var d,p,f=A(ct),m=A(dt);if(~f&&~m&&f!==m)for(m>f?(p=f,d=m):(p=m,d=f+1);p<d;p++)~mt.indexOf(u[p])||(D(u[p],c.selectedClass,!0),mt.push(u[p]),W({sortable:a,rootEl:n,name:"select",targetEl:u[p],originalEvt:t}))}else ct=dt;ut=l}if(gt&&this.isMultiDrag){if((r[H].options.sort||r!==n)&&mt.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,mt.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(),mt.forEach((function(e){u[_]?r.insertBefore(e,u[_]):r.appendChild(e),_++})),o===A(dt))){var v=!1;mt.forEach((function(e){e.sortableIndex===A(e)||(v=!0)})),v&&i("update")}mt.forEach((function(e){R(e)})),l.animateAll()}ut=l}(n===r||s&&"clone"!==s.lastPutMode)&&ht.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=gt=!1,ht.length=0},destroyGlobal:function(){this._deselectMultiDrag(),g(document,"pointerup",this._deselectMultiDrag),g(document,"mouseup",this._deselectMultiDrag),g(document,"touchend",this._deselectMultiDrag),g(document,"keydown",this._checkKeyDown),g(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==gt&>||ut!==this.sortable||e&&w(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;mt.length;){var t=mt[0];D(t,this.options.selectedClass,!1),mt.shift(),W({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[H];t&&t.options.multiDrag&&!~mt.indexOf(e)&&(ut&&ut!==t&&(ut.multiDrag._deselectMultiDrag(),ut=t),D(e,t.options.selectedClass,!0),mt.push(e))},deselect:function(e){var t=e.parentNode[H],n=mt.indexOf(e);t&&t.options.multiDrag&&~n&&(D(e,t.options.selectedClass,!1),mt.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return mt.forEach((function(r){var a;t.push({multiDragElement:r,index:r.sortableIndex}),a=vt&&r!==dt?-1:vt?A(r,":not(."+e.options.selectedClass+")"):A(r),n.push({multiDragElement:r,index:a})})),{items:l(mt),clones:[].concat(ht),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function bt(e,t){ht.forEach((function(n,r){var a=t.children[n.sortableIndex+(e?Number(r):0)];a?t.insertBefore(n,a):t.appendChild(n)}))}function wt(){mt.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(){Ze=Ke=We=et=Xe=Ge=Je=null,Qe.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(r,a);if(Ze=e,t||d||u||f){at(e,this.options,i,t);var o=Y(i,!0);!et||Xe&&r===Ge&&a===Je||(Xe&&nt(),Xe=setInterval((function(){var i=Y(document.elementFromPoint(r,a),!0);i!==o&&(o=i,tt()),at(e,n.options,i,t)}),10),Ge=r,Je=a)}else{if(!this.options.bubbleScroll||Y(i,!0)===L())return void tt();at(e,this.options,Y(i,!1),!1)}}},i(e,{pluginName:"scroll",initializeByDefault:!0})}),Fe.mount(st,ot),t.default=Fe},qoKy:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("eO9T");t.default=function(e){return(0,r.withParams)({type:"requiredIf",prop:e},(function(t,n){return!(0,r.ref)(e,this,n)||(0,r.req)(t)}))}},qvJo:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return r?a[n][0]:a[n][1]}e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){switch(t){case"D":return e+"वेर";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}})}(n("wd/R"))},rXFu:function(e,t,n){"use strict";(function(t,r){var a=n("lm0R");e.exports=y;var i,o=n("49sm");y.ReadableState=g;n("+qE3").EventEmitter;var s=function(e,t){return e.listeners(t).length},l=n("QpuX"),c=n("qPBE").Buffer,u=t.Uint8Array||function(){};var d=Object.create(n("Onz0"));d.inherits=n("P7XM");var p=n(1),f=void 0;f=p&&p.debuglog?p.debuglog("stream"):function(){};var m,h=n("Xhqo"),_=n("RoFp");d.inherits(y,l);var v=["error","close","destroy","pause","resume"];function g(e,t){e=e||{};var r=t instanceof(i=i||n("sZro"));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var a=e.highWaterMark,o=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:r&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(m||(m=n("fXKp").StringDecoder),this.decoder=new m(e.encoding),this.encoding=e.encoding)}function y(e){if(i=i||n("sZro"),!(this instanceof y))return new y(e);this._readableState=new g(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function b(e,t,n,r,a){var i,o=e._readableState;null===t?(o.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,k(e)}(e,o)):(a||(i=function(e,t){var n;r=t,c.isBuffer(r)||r instanceof u||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(o,t)),i?e.emit("error",i):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?w(e,o,t,!1):M(e,o)):w(e,o,t,!1))):r||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(o)}function w(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&k(e)),M(e,t)}Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),y.prototype.destroy=_.destroy,y.prototype._undestroy=_.undestroy,y.prototype._destroy=function(e,t){this.push(null),t(e)},y.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=c.from(e,t),t=""),n=!0),b(this,e,t,!1,n)},y.prototype.unshift=function(e){return b(this,e,null,!0,!1)},y.prototype.isPaused=function(){return!1===this._readableState.flowing},y.prototype.setEncoding=function(e){return m||(m=n("fXKp").StringDecoder),this._readableState.decoder=new m(e),this._readableState.encoding=e,this};function x(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?a.nextTick(D,e):D(e))}function D(e){f("emit readable"),e.emit("readable"),T(e)}function M(e,t){t.readingMore||(t.readingMore=!0,a.nextTick(S,e,t))}function S(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(f("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function C(e){f("readable nexttick read 0"),e.read(0)}function L(e,t){t.reading||(f("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),T(e),t.flowing&&!t.reading&&e.read(0)}function T(e){var t=e._readableState;for(f("flow",t.flowing);t.flowing&&null!==e.read(););}function E(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,a=n.data;e-=a.length;for(;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(o===i.length?a+=i:a+=i.slice(0,e),0===(e-=o)){o===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(o));break}++r}return t.length-=r,a}(e,t):function(e,t){var n=c.allocUnsafe(e),r=t.head,a=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,o),0===(e-=o)){o===i.length?(++a,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(o));break}++a}return t.length-=a,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function O(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,a.nextTick(j,t,e))}function j(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function A(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}y.prototype.read=function(e){f("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?O(this):k(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&O(this),null;var r,a=t.needReadable;return f("need readable",a),(0===t.length||t.length-e<t.highWaterMark)&&f("length less than watermark",a=!0),t.ended||t.reading?f("reading or ended",a=!1):a&&(f("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=x(n,t))),null===(r=e>0?E(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&O(this)),null!==r&&this.emit("data",r),r},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,f("pipe count=%d opts=%j",i.pipesCount,t);var l=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?u:y;function c(t,r){f("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,f("cleanup"),e.removeListener("close",v),e.removeListener("finish",g),e.removeListener("drain",d),e.removeListener("error",_),e.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",y),n.removeListener("data",h),p=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||d())}function u(){f("onend"),e.end()}i.endEmitted?a.nextTick(l):n.once("end",l),e.on("unpipe",c);var d=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,T(e))}}(n);e.on("drain",d);var p=!1;var m=!1;function h(t){f("ondata"),m=!1,!1!==e.write(t)||m||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==A(i.pipes,e))&&!p&&(f("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,m=!0),n.pause())}function _(t){f("onerror",t),y(),e.removeListener("error",_),0===s(e,"error")&&e.emit("error",t)}function v(){e.removeListener("finish",g),y()}function g(){f("onfinish"),e.removeListener("close",v),y()}function y(){f("unpipe"),n.unpipe(e)}return n.on("data",h),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",_),e.once("close",v),e.once("finish",g),e.emit("pipe",n),i.flowing||(f("pipe resume"),n.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<a;i++)r[i].emit("unpipe",this,n);return this}var o=A(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},y.prototype.on=function(e,t){var n=l.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&k(this):a.nextTick(C,this))}return n},y.prototype.addListener=y.prototype.on,y.prototype.resume=function(){var e=this._readableState;return e.flowing||(f("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,a.nextTick(L,e,t))}(this,e)),this},y.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this},y.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var a in e.on("end",(function(){if(f("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(a){(f("wrapped data"),n.decoder&&(a=n.decoder.write(a)),n.objectMode&&null==a)||(n.objectMode||a&&a.length)&&(t.push(a)||(r=!0,e.pause()))})),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var i=0;i<v.length;i++)e.on(v[i],this.emit.bind(this,v[i]));return this._read=function(t){f("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(y.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),y._fromList=E}).call(this,n("yLpj"),n("8oxB"))},raLr:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,a;return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(r=+e,a={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),r%10==1&&r%100!=11?a[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?a[1]:a[2])}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(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},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:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},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("wd/R"))},"s+uk":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},s4NR:function(e,t,n){"use strict";t.decode=t.parse=n("kd2E"),t.encode=t.stringify=n("4JlD")},s9fM:function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,'.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)}',""])},sEf8:function(e,t){e.exports=function(e){return function(t){return e(t)}}},sZro:function(e,t,n){"use strict";var r=n("lm0R"),a=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=d;var i=Object.create(n("Onz0"));i.inherits=n("P7XM");var o=n("rXFu"),s=n("3BRs");i.inherits(d,o);for(var l=a(s.prototype),c=0;c<l.length;c++){var u=l[c];d.prototype[u]||(d.prototype[u]=s.prototype[u])}function d(e){if(!(this instanceof d))return new d(e);o.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||r.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},shjB:function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},sp3z: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("wd/R"))},"t+mt":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("wd/R"))},t2Dn:function(e,t,n){var r=n("hypo"),a=n("ljhN");e.exports=function(e,t,n){(void 0!==n&&!a(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},t2rG:function(e,t,n){var r;"undefined"!=typeof self&&self,r=function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"01f9":function(e,t,n){"use strict";var r=n("2d00"),a=n("5ca1"),i=n("2aba"),o=n("32e9"),s=n("84f2"),l=n("41a0"),c=n("7f20"),u=n("38fd"),d=n("2b4c")("iterator"),p=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,n,m,h,_,v){l(n,t,m);var g,y,b,w=function(e){if(!p&&e in M)return M[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",k="values"==h,D=!1,M=e.prototype,S=M[d]||M["@@iterator"]||h&&M[h],C=S||w(h),L=h?k?w("entries"):C:void 0,T="Array"==t&&M.entries||S;if(T&&(b=u(T.call(new e)))!==Object.prototype&&b.next&&(c(b,x,!0),r||"function"==typeof b[d]||o(b,d,f)),k&&S&&"values"!==S.name&&(D=!0,C=function(){return S.call(this)}),r&&!v||!p&&!D&&M[d]||o(M,d,C),s[t]=C,s[x]=f,h)if(g={values:k?C:w("values"),keys:_?C:w("keys"),entries:L},v)for(y in g)y in M||i(M,y,g[y]);else a(a.P+a.F*(p||D),t,g);return g}},"02f4":function(e,t,n){var r=n("4588"),a=n("be13");e.exports=function(e){return function(t,n){var i,o,s=String(a(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(i=s.charCodeAt(l))<55296||i>56319||l+1===c||(o=s.charCodeAt(l+1))<56320||o>57343?e?s.charAt(l):i:e?s.slice(l,l+2):o-56320+(i-55296<<10)+65536}}},"0390":function(e,t,n){"use strict";var r=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"0bfb":function(e,t,n){"use strict";var r=n("cb7c");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var r=n("ce10"),a=n("e11e");e.exports=Object.keys||function(e){return r(e,a)}},1495:function(e,t,n){var r=n("86cc"),a=n("cb7c"),i=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){a(e);for(var n,o=i(t),s=o.length,l=0;s>l;)r.f(e,n=o[l++],t[n]);return e}},"214f":function(e,t,n){"use strict";n("b0c5");var r=n("2aba"),a=n("32e9"),i=n("79e5"),o=n("be13"),s=n("2b4c"),l=n("520a"),c=s("species"),u=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var p=s(e),f=!i((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),m=f?!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(!f||!m||"replace"===e&&!u||"split"===e&&!d){var h=/./[p],_=n(o,p,""[e],(function(e,t,n,r,a){return t.exec===l?f&&!a?{done:!0,value:h.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),v=_[0],g=_[1];r(String.prototype,e,v),a(RegExp.prototype,p,2==t?function(e,t){return g.call(e,this,t)}:function(e){return g.call(e,this)})}}},"230e":function(e,t,n){var r=n("d3f4"),a=n("7726").document,i=r(a)&&r(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},"23c6":function(e,t,n){var r=n("2d95"),a=n("2b4c")("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),a))?n:i?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var r=n("7726"),a=n("32e9"),i=n("69a8"),o=n("ca5a")("src"),s=n("fa5b"),l=(""+s).split("toString");n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(i(n,"name")||a(n,"name",t)),e[t]!==n&&(c&&(i(n,o)||a(n,o,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:a(e,t,n):(delete e[t],a(e,t,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[o]||s.call(this)}))},"2aeb":function(e,t,n){var r=n("cb7c"),a=n("1495"),i=n("e11e"),o=n("613b")("IE_PROTO"),s=function(){},l=function(){var e,t=n("230e")("iframe"),r=i.length;for(t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[i[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[o]=e):n=l(),void 0===t?n:a(n,t)}},"2b4c":function(e,t,n){var r=n("5537")("wks"),a=n("ca5a"),i=n("7726").Symbol,o="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=o&&i[e]||(o?i:a)("Symbol."+e))}).store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var r=n("5ca1"),a=n("d2c8");r(r.P+r.F*n("5147")("includes"),"String",{includes:function(e){return!!~a(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(e,t,n){var r=n("86cc"),a=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var r=n("69a8"),a=n("4bf8"),i=n("613b")("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=a(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),a=n("4630"),i=n("7f20"),o={};n("32e9")(o,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(o,{next:a(1,n)}),i(e,t+" Iterator")}},"456d":function(e,t,n){var r=n("4bf8"),a=n("0d58");n("5eda")("keys",(function(){return function(e){return a(r(e))}}))},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},5147:function(e,t,n){var r=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},"520a":function(e,t,n){"use strict";var r,a,i=n("0bfb"),o=RegExp.prototype.exec,s=String.prototype.replace,l=o,c=(r=/a/,a=/b*/g,o.call(r,"a"),o.call(a,"a"),0!==r.lastIndex||0!==a.lastIndex),u=void 0!==/()??/.exec("")[1];(c||u)&&(l=function(e){var t,n,r,a,l=this;return u&&(n=new RegExp("^"+l.source+"$(?!\\s)",i.call(l))),c&&(t=l.lastIndex),r=o.call(l,e),c&&r&&(l.lastIndex=l.global?r.index+r[0].length:t),u&&r&&r.length>1&&s.call(r[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(r[a]=void 0)})),r}),e.exports=l},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5537:function(e,t,n){var r=n("8378"),a=n("7726"),i=a["__core-js_shared__"]||(a["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(e,t,n){var r=n("7726"),a=n("8378"),i=n("32e9"),o=n("2aba"),s=n("9b43"),l=function(e,t,n){var c,u,d,p,f=e&l.F,m=e&l.G,h=e&l.S,_=e&l.P,v=e&l.B,g=m?r:h?r[t]||(r[t]={}):(r[t]||{}).prototype,y=m?a:a[t]||(a[t]={}),b=y.prototype||(y.prototype={});for(c in m&&(n=t),n)d=((u=!f&&g&&void 0!==g[c])?g:n)[c],p=v&&u?s(d,r):_&&"function"==typeof d?s(Function.call,d):d,g&&o(g,c,d,e&l.U),y[c]!=d&&i(y,c,p),_&&b[c]!=d&&(b[c]=d)};r.core=a,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},"5eda":function(e,t,n){var r=n("5ca1"),a=n("8378"),i=n("79e5");e.exports=function(e,t){var n=(a.Object||{})[e]||Object[e],o={};o[e]=t(n),r(r.S+r.F*i((function(){n(1)})),"Object",o)}},"5f1b":function(e,t,n){"use strict";var r=n("23c6"),a=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return a.call(e,t)}},"613b":function(e,t,n){var r=n("5537")("keys"),a=n("ca5a");e.exports=function(e){return r[e]||(r[e]=a(e))}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},6762:function(e,t,n){"use strict";var r=n("5ca1"),a=n("c366")(!0);r(r.P,"Array",{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var r=n("626a"),a=n("be13");e.exports=function(e){return r(a(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},7333:function(e,t,n){"use strict";var r=n("0d58"),a=n("2621"),i=n("52a7"),o=n("4bf8"),s=n("626a"),l=Object.assign;e.exports=!l||n("79e5")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=r}))?function(e,t){for(var n=o(e),l=arguments.length,c=1,u=a.f,d=i.f;l>c;)for(var p,f=s(arguments[c++]),m=u?r(f).concat(u(f)):r(f),h=m.length,_=0;h>_;)d.call(f,p=m[_++])&&(n[p]=f[p]);return n}:l},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(e,t,n){var r=n("4588"),a=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?a(e+t,0):i(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"7f20":function(e,t,n){var r=n("86cc").f,a=n("69a8"),i=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!a(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},8378:function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var r=n("cb7c"),a=n("c69a"),i=n("6a99"),o=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),a)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),a=Array.prototype;null==a[r]&&n("32e9")(a,r,{}),e.exports=function(e){a[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),a=Math.min;e.exports=function(e){return e>0?a(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(t,n){t.exports=e},a481:function(e,t,n){"use strict";var r=n("cb7c"),a=n("4bf8"),i=n("9def"),o=n("4588"),s=n("0390"),l=n("5f1b"),c=Math.max,u=Math.min,d=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g;n("214f")("replace",2,(function(e,t,n,m){return[function(r,a){var i=e(this),o=null==r?void 0:r[t];return void 0!==o?o.call(r,i,a):n.call(String(i),r,a)},function(e,t){var a=m(n,e,this,t);if(a.done)return a.value;var d=r(e),p=String(this),f="function"==typeof t;f||(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(f){var T=[D].concat(S,M,p);void 0!==L&&T.push(L);var E=String(t.apply(void 0,T))}else E=h(D,p,M,S,L,t);M>=x&&(w+=p.slice(x,M)+E,x=M+D.length)}return w+p.slice(x)}];function h(e,t,r,i,o,s){var l=r+e.length,c=i.length,u=f;return void 0!==o&&(o=a(o),u=p),n.call(s,u,(function(n,a){var s;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(l);case"<":s=o[a.slice(1,-1)];break;default:var u=+a;if(0===u)return n;if(u>c){var p=d(u/10);return 0===p?n:p<=c?void 0===i[p-1]?a.charAt(1):i[p-1]+a.charAt(1):n}s=i[u-1]}return void 0===s?"":s}))}}))},aae3:function(e,t,n){var r=n("d3f4"),a=n("2d95"),i=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==a(e))}},ac6a:function(e,t,n){for(var r=n("cadf"),a=n("0d58"),i=n("2aba"),o=n("7726"),s=n("32e9"),l=n("84f2"),c=n("2b4c"),u=c("iterator"),d=c("toStringTag"),p=l.Array,f={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},m=a(f),h=0;h<m.length;h++){var _,v=m[h],g=f[v],y=o[v],b=y&&y.prototype;if(b&&(b[u]||s(b,u,p),b[d]||s(b,d,v),l[v]=p,g))for(_ in r)b[_]||i(b,_,r[_],!0)}},b0c5:function(e,t,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},be13:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},c366:function(e,t,n){var r=n("6821"),a=n("9def"),i=n("77f1");e.exports=function(e){return function(t,n,o){var s,l=r(t),c=a(l.length),u=i(o,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},c649:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return l})),n("a481");var r,a,i="undefined"!=typeof window?window.console:e.console,o=/-(\w)/g,s=(r=function(e){return e.replace(o,(function(e,t){return t?t.toUpperCase():""}))},a=Object.create(null),function(e){return a[e]||(a[e]=r(e))});function l(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function c(e,t,n){var r=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}}).call(this,n("c8ba"))},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cadf:function(e,t,n){"use strict";var r=n("9c6c"),a=n("d53b"),i=n("84f2"),o=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=o(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,a(1)):a(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ce10:function(e,t,n){var r=n("69a8"),a=n("6821"),i=n("c366")(!1),o=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=a(e),l=0,c=[];for(n in s)n!=o&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~i(c,n)||c.push(n));return c}},d2c8:function(e,t,n){var r=n("aae3"),a=n("be13");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(a(e))}},d3f4:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(e,t,n){"use strict";var r=n("5ca1"),a=n("9def"),i=n("d2c8"),o="".startsWith;r(r.P+r.F*n("5147")("startsWith"),"String",{startsWith:function(e){var t=i(this,e,"startsWith"),n=a(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return o?o.call(t,r,n):t.slice(n,n+r.length)===r}})},f6fd:function(e,t){!function(e){var t=e.getElementsByTagName("script");"currentScript"in e||Object.defineProperty(e,"currentScript",{get:function(){try{throw new Error}catch(r){var e,n=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in t)if(t[e].src==n||"interactive"==t[e].readyState)return t[e];return null}}})}(document)},f751:function(e,t,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,n){var r=n("7726").document;e.exports=r&&r.documentElement},fb15:function(e,t,n){"use strict";var r;function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.r(t),"undefined"!=typeof window&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1])),n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d"),n("6762"),n("2fdb");var l=n("a352"),c=n.n(l),u=n("c649");function d(e,t){var n=this;this.$nextTick((function(){return n.$emit(e.toLowerCase(),t)}))}function p(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),d.call(t,e,n)}}function f(e){return["transition-group","TransitionGroup"].includes(e)}function m(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&&f(t.tag)}(t);var n=function(e,t,n){var r=0,a=0,i=m(t,n,"header");i&&(r=i.length,e=e?[].concat(s(i),s(e)):s(i));var o=m(t,n,"footer");return o&&(a=o.length,e=e?[].concat(s(e),s(o)):s(o)),{children:e,headerOffset:r,footerOffset:a}}(t,this.$slots,this.$scopedSlots),r=n.children,a=n.headerOffset,i=n.footerOffset;this.headerOffset=a,this.footerOffset=i;var l=function(e,t){var n=null,r=function(e,t){n=function(e,t,n){return void 0===n||((e=e||{})[t]=n),e}(n,e,t)};if(r("attrs",Object.keys(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,n){return t[n]=e[n],t}),{})),!t)return n;var a=t.on,i=t.props,o=t.attrs;return r("on",a),r("props",i),Object.assign(n.attrs,o),n}(this.$attrs,this.componentData);return e(this.getTag(),l,r)},created:function(){null!==this.list&&null!==this.value&&u.b.error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&u.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&u.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={};h.forEach((function(n){t["on"+n]=p.call(e,n)})),_.forEach((function(n){t["on"+n]=d.bind(e,n)}));var n=Object.keys(this.$attrs).reduce((function(t,n){return t[Object(u.a)(n)]=e.$attrs[n],t}),{}),r=Object.assign({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in r)&&(r.draggable=">*"),this._sortable=new c.a(this.rootContainer,r),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var e=this._vnode.fnOptions;return e&&e.functional},getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var n=Object(u.a)(t);-1===v.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick((function(){e.visibleIndexes=function(e,t,n,r){if(!e)return[];var a=e.map((function(e){return e.elm})),i=t.length-r,o=s(t).map((function(e,t){return t>=i?a.length:a.indexOf(e)}));return n?o.filter((function(e){return-1!==e})):o}(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)}))},getUnderlyingVm:function(e){var t=function(e,t){return e.map((function(e){return e.elm})).indexOf(t)}(this.getChildrenNodes()||[],e);return-1===t?null:{index:t,element:this.realList[t]}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&f(t.$options._componentTag)?t.$parent:!("realList"in t)&&1===t.$children.length&&"realList"in t.$children[0]?t.$children[0]:t},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=s(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,s(e))};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,r=this.getUnderlyingPotencialDraggableComponent(t);if(!r)return{component:r};var a=r.realList,i={list:a,component:r};if(t!==n&&a&&r.getUnderlyingVm){var o=r.getUnderlyingVm(n);if(o)return Object.assign(o,i)}return i},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[e].data=null;var t=this.getComponent();t.children=[],t.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),g=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){Object(u.d)(e.item);var n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();var r={element:t,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(e){if(Object(u.c)(this.rootContainer,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context.index;this.spliceList(t,1);var n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})}else Object(u.d)(e.clone)},onDragUpdate:function(e){Object(u.d)(e.item),Object(u.c)(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);var r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=s(t.to.children).filter((function(e){return"none"!==e.style.display})),r=n.indexOf(t.related),a=e.component.getVmIndex(r);return-1===n.indexOf(g)&&t.willInsertAfter?a+1:a},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var r=this.getRelatedContextFromMoveEvent(e),a=this.context,i=this.computeFutureIndex(r,e);return Object.assign(a,{futureIndex:i}),n(Object.assign({},e,{relatedContext:r,draggedContext:a}),t)},onDragEnd:function(){this.computeIndexes(),g=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",y);var b=y;t.default=b}}).default},e.exports=r(n("qkdH"))},t9FE:function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,n("yLpj"))},tGlX:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},tIyD:function(e,t,n){var r=n("vGAp");"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,a);r.locals&&(e.exports=r.locals)},tMB7:function(e,t,n){var r=n("y1pI");e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},tQ2B:function(e,t,n){"use strict";var r=n("xTJ+"),a=n("Rn+g"),i=n("MLWZ"),o=n("g7np"),s=n("w0Vi"),l=n("OTTw"),c=n("LYNF");e.exports=function(e){return new Promise((function(t,u){var d=e.data,p=e.headers;r.isFormData(d)&&delete p["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",h=e.auth.password||"";p.Authorization="Basic "+btoa(m+":"+h)}var _=o(e.baseURL,e.url);if(f.open(e.method.toUpperCase(),i(_,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?s(f.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:n,config:e,request:f};a(t,u,r),f=null}},f.onabort=function(){f&&(u(c("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){u(c("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),u(c(t,e,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var v=n("eqyj"),g=(e.withCredentials||l(_))&&e.xsrfCookieName?v.read(e.xsrfCookieName):void 0;g&&(p[e.xsrfHeaderName]=g)}if("setRequestHeader"in f&&r.forEach(p,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete p[t]:f.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),e.responseType)try{f.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){f&&(f.abort(),u(e),f=null)})),void 0===d&&(d=null),f.send(d)}))}},tT3J: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("wd/R"))},tUCv: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("wd/R"))},ta7f:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.maxValue=t.minValue=t.and=t.or=t.url=t.sameAs=t.requiredUnless=t.requiredIf=t.required=t.minLength=t.maxLength=t.macAddress=t.ipAddress=t.email=t.between=t.numeric=t.alphaNum=t.alpha=void 0;var r=w(n("YjXl")),a=w(n("OlTG")),i=w(n("RbiO")),o=w(n("7BF0")),s=w(n("XXVU")),l=w(n("yZ1b")),c=w(n("kdPC")),u=w(n("KhKh")),d=w(n("XbO3")),p=w(n("1PTn")),f=w(n("qoKy")),m=w(n("5lKX")),h=w(n("tsu9")),_=w(n("dy1E")),v=w(n("0pQ5")),g=w(n("M2AK")),y=w(n("62b2")),b=w(n("RryX"));function w(e){return e&&e.__esModule?e:{default:e}}t.alpha=r.default,t.alphaNum=a.default,t.numeric=i.default,t.between=o.default,t.email=s.default,t.ipAddress=l.default,t.macAddress=c.default,t.maxLength=u.default,t.minLength=d.default,t.required=p.default,t.requiredIf=f.default,t.requiredUnless=m.default,t.sameAs=h.default,t.url=_.default,t.or=v.default,t.and=g.default,t.minValue=y.default,t.maxValue=b.default},tbfe:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(n("wd/R"))},tjlA:function(e,t,n){"use strict";(function(e){var r=n("H7XF"),a=n("kVK+"),i=n("49sm");function o(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=p(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|m(t,n),a=(e=s(e,r)).write(t,n);a!==r&&(e=e.slice(0,a));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|f(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):p(e,t);if("Buffer"===t.type&&i(t.data))return p(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=s(e,t<0?0:0|f(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|f(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return R(e).length;default:if(r)return F(e).length;t=(""+t).toLowerCase(),r=!0}}function h(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return L(this,t,n);case"base64":return M(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function _(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,a){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,a);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,a){var i,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var u=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*o}else-1!==u&&(i-=i-u),u=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){for(var d=!0,p=0;p<l;p++)if(c(e,i+p)!==c(t,p)){d=!1;break}if(d)return i}return-1}function y(e,t,n,r){n=Number(n)||0;var a=e.length-n;r?(r=Number(r))>a&&(r=a):r=a;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function b(e,t,n,r){return H(F(t,e.length-n),e,n,r)}function w(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function x(e,t,n,r){return w(e,t,n,r)}function k(e,t,n,r){return H(R(t),e,n,r)}function D(e,t,n,r){return H(function(e,t){for(var n,r,a,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,a=n%256,i.push(a),i.push(r);return i}(t,e.length-n),e,n,r)}function M(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a<n;){var i,o,s,l,c=e[a],u=null,d=c>239?4:c>223?3:c>191?2:1;if(a+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(i=e[a+1]))&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[a+1],o=e[a+2],128==(192&i)&&128==(192&o)&&(l=(15&c)<<12|(63&i)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[a+1],o=e[a+2],s=e[a+3],128==(192&i)&&128==(192&o)&&128==(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),a+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,a=0,i=Math.min(n,r);a<i;++a)if(e[a]!==t[a]){n=e[a],r=t[a];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),a=0;for(n=0;n<e.length;++n){var o=e[n];if(!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,a),a+=o.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)_(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)_(this,t,t+3),_(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)_(this,t,t+7),_(this,t+1,t+6),_(this,t+2,t+5),_(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):h.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,a){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(a>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(i,o),c=this.slice(r,a),u=e.slice(t,n),d=0;d<s;++d)if(c[d]!==u[d]){i=c[d],o=u[d];break}return i<o?-1:o<i?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function C(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(127&e[a]);return r}function L(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(e[a]);return r}function T(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var a="",i=t;i<n;++i)a+=z(e[i]);return a}function E(e,t,n){for(var r=e.slice(t,n),a="",i=0;i<r.length;i+=2)a+=String.fromCharCode(r[i]+256*r[i+1]);return a}function O(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,n,r,a,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function A(e,t,n,r){t<0&&(t=65535+t+1);for(var a=0,i=Math.min(e.length-n,2);a<i;++a)e[n+a]=(t&255<<8*(r?a:1-a))>>>8*(r?a:1-a)}function P(e,t,n,r){t<0&&(t=4294967295+t+1);for(var a=0,i=Math.min(e.length-n,4);a<i;++a)e[n+a]=t>>>8*(r?a:3-a)&255}function Y(e,t,n,r,a,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function $(e,t,n,r,i){return i||Y(e,0,n,4),a.write(e,t,n,r,23,4),n+4}function I(e,t,n,r,i){return i||Y(e,0,n,8),a.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var a=t-e;n=new l(a,void 0);for(var i=0;i<a;++i)n[i]=this[i+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e],a=1,i=0;++i<t&&(a*=256);)r+=this[e+i]*a;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e+--t],a=1;t>0&&(a*=256);)r+=this[e+--t]*a;return r},l.prototype.readUInt8=function(e,t){return t||O(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e],a=1,i=0;++i<t&&(a*=256);)r+=this[e+i]*a;return r>=(a*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=t,a=1,i=this[e+--r];r>0&&(a*=256);)i+=this[e+--r]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||O(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||O(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||O(e,4,this.length),a.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),a.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),a.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||O(e,8,this.length),a.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||j(this,e,t,n,Math.pow(2,8*n)-1,0);var a=1,i=0;for(this[t]=255&e;++i<n&&(a*=256);)this[t+i]=e/a&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||j(this,e,t,n,Math.pow(2,8*n)-1,0);var a=n-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):A(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):P(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);j(this,e,t,n,a-1,-a)}var i=0,o=1,s=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);j(this,e,t,n,a-1,-a)}var i=n-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):A(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):P(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return $(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return $(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return I(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return I(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var a,i=r-n;if(this===e&&n<t&&t<r)for(a=i-1;a>=0;--a)e[a+t]=this[a+n];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(a=0;a<i;++a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var a=e.charCodeAt(0);a<256&&(e=a)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var o=l.isBuffer(e)?e:F(new l(e,r).toString()),s=o.length;for(i=0;i<n-t;++i)this[i+t]=o[i%s]}return this};var N=/[^+\/0-9A-Za-z-_]/g;function z(e){return e<16?"0"+e.toString(16):e.toString(16)}function F(e,t){var n;t=t||1/0;for(var r=e.length,a=null,i=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function R(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,n,r){for(var a=0;a<r&&!(a+n>=t.length||a>=e.length);++a)t[a+n]=e[a];return a}}).call(this,n("yLpj"))},tsu9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("eO9T");t.default=function(e){return(0,r.withParams)({type:"sameAs",eq:e},(function(t,n){return t===(0,r.ref)(e,this,n)}))}},u3GI:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},u8Dt:function(e,t,n){var r=n("YESw"),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return a.call(t,e)?t[e]:void 0}},uEye: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("wd/R"))},uXwI:function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function r(e,r,a){return e+" "+n(t[a],e,r)}function a(e,r,a){return n(t[a],e,r)}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:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:r,m:a,mm:r,h:a,hh:r,d:a,dd:r,M:a,MM:r,y:a,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},udLX:function(e,t,n){var r;"undefined"!=typeof self&&self,r=function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"00ee":function(e,t,n){var r={};r[n("b622")("toStringTag")]="z",e.exports="[object z]"===String(r)},"00fd":function(e,t,n){var r=n("9e69"),a=Object.prototype,i=a.hasOwnProperty,o=a.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var a=o.call(e);return r&&(t?e[s]=n:delete e[s]),a}},"010e":function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n("c1df"))},"02fb":function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n("c1df"))},"0366":function(e,t,n){var r=n("1c0b");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},"03ec":function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n("c1df"))},"0558":function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,r,a){var i=e+" ";switch(r){case"s":return n||a?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?i+(n||a?"sekúndur":"sekúndum"):i+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?i+(n||a?"mínútur":"mínútum"):n?i+"mínúta":i+"mínútu";case"hh":return t(e)?i+(n||a?"klukkustundir":"klukkustundum"):i+"klukkustund";case"d":return n?"dagur":a?"dag":"degi";case"dd":return t(e)?n?i+"dagar":i+(a?"daga":"dögum"):n?i+"dagur":i+(a?"dag":"degi");case"M":return n?"mánuður":a?"mánuð":"mánuði";case"MM":return t(e)?n?i+"mánuðir":i+(a?"mánuði":"mánuðum"):n?i+"mánuður":i+(a?"mánuð":"mánuði");case"y":return n||a?"ár":"ári";case"yy":return t(e)?i+(n||a?"ár":"árum"):i+(n||a?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},"057f":function(e,t,n){var r=n("fc6a"),a=n("241c").f,i={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"[object Window]"==i.call(e)?function(e){try{return a(e)}catch(e){return o.slice()}}(e):a(r(e))}},"06cf":function(e,t,n){var r=n("83ab"),a=n("d1e7"),i=n("5c6c"),o=n("fc6a"),s=n("c04e"),l=n("5135"),c=n("0cfb"),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=o(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(l(e,t))return i(!a.f.call(e,t),e[t])}},"0721":function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},"073e":function(e,t,n){"use strict";var r=n("5dbe"),a=i(Error);function i(e){return t.displayName=e.displayName||e.name,t;function t(t){return t&&(t=r.apply(null,arguments)),new e(t)}}e.exports=a,a.eval=i(EvalError),a.range=i(RangeError),a.reference=i(ReferenceError),a.syntax=i(SyntaxError),a.type=i(TypeError),a.uri=i(URIError),a.create=i},"079e":function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n("c1df"))},"07c7":function(e,t){e.exports=function(){return!1}},"0a3c":function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("c1df"))},"0a84":function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n("c1df"))},"0ac0":function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return _})),n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return D})),n.d(t,"g",(function(){return k})),n.d(t,"h",(function(){return C})),n.d(t,"i",(function(){return w})),n.d(t,"j",(function(){return S})),n.d(t,"k",(function(){return b}));var r=n("304a"),a=Math.pow(2,16);function i(e){return 65535&e}var o=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=null),this.pos=e,this.deleted=t,this.recover=n},s=function(e,t){void 0===t&&(t=!1),this.ranges=e,this.inverted=t};s.prototype.recover=function(e){var t=0,n=i(e);if(!this.inverted)for(var r=0;r<n;r++)t+=this.ranges[3*r+2]-this.ranges[3*r+1];return this.ranges[3*n]+t+function(e){return(e-(65535&e))/a}(e)},s.prototype.mapResult=function(e,t){return void 0===t&&(t=1),this._map(e,t,!1)},s.prototype.map=function(e,t){return void 0===t&&(t=1),this._map(e,t,!0)},s.prototype._map=function(e,t,n){for(var r=0,i=this.inverted?2:1,s=this.inverted?1:2,l=0;l<this.ranges.length;l+=3){var c=this.ranges[l]-(this.inverted?r:0);if(c>e)break;var u=this.ranges[l+i],d=this.ranges[l+s],p=c+u;if(e<=p){var f=c+r+((u?e==c?-1:e==p?1:t:t)<0?0:d);if(n)return f;var m=e==(t<0?c:p)?null:l/3+(e-c)*a;return new o(f,t<0?e!=c:e!=p,m)}r+=d-u}return n?e+r:new o(e+r)},s.prototype.touches=function(e,t){for(var n=0,r=i(t),a=this.inverted?2:1,o=this.inverted?1:2,s=0;s<this.ranges.length;s+=3){var l=this.ranges[s]-(this.inverted?n:0);if(l>e)break;var c=this.ranges[s+a];if(e<=l+c&&s==3*r)return!0;n+=this.ranges[s+o]-c}return!1},s.prototype.forEach=function(e){for(var t=this.inverted?2:1,n=this.inverted?1:2,r=0,a=0;r<this.ranges.length;r+=3){var i=this.ranges[r],o=i-(this.inverted?a:0),s=i+(this.inverted?0:a),l=this.ranges[r+t],c=this.ranges[r+n];e(o,o+l,s,s+c),a+=c-l}},s.prototype.invert=function(){return new s(this.ranges,!this.inverted)},s.prototype.toString=function(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)},s.offset=function(e){return 0==e?s.empty:new s(e<0?[0,-e,0]:[0,0,e])},s.empty=new s([]);var l=function(e,t,n,r){this.maps=e||[],this.from=n||0,this.to=null==r?this.maps.length:r,this.mirror=t};function c(e){var t=Error.call(this,e);return t.__proto__=c.prototype,t}l.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.maps.length),new l(this.maps,this.mirror,e,t)},l.prototype.copy=function(){return new l(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)},l.prototype.appendMap=function(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)},l.prototype.appendMapping=function(e){for(var t=0,n=this.maps.length;t<e.maps.length;t++){var r=e.getMirror(t);this.appendMap(e.maps[t],null!=r&&r<t?n+r:null)}},l.prototype.getMirror=function(e){if(this.mirror)for(var t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]},l.prototype.setMirror=function(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)},l.prototype.appendMappingInverted=function(e){for(var t=e.maps.length-1,n=this.maps.length+e.maps.length;t>=0;t--){var r=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=r&&r>t?n-r-1:null)}},l.prototype.invert=function(){var e=new l;return e.appendMappingInverted(this),e},l.prototype.map=function(e,t){if(void 0===t&&(t=1),this.mirror)return this._map(e,t,!0);for(var n=this.from;n<this.to;n++)e=this.maps[n].map(e,t);return e},l.prototype.mapResult=function(e,t){return void 0===t&&(t=1),this._map(e,t,!1)},l.prototype._map=function(e,t,n){for(var r=!1,a=this.from;a<this.to;a++){var i=this.maps[a].mapResult(e,t);if(null!=i.recover){var s=this.getMirror(a);if(null!=s&&s>a&&s<this.to){a=s,e=this.maps[s].recover(i.recover);continue}}i.deleted&&(r=!0),e=i.pos}return n?e:new o(e,r)},c.prototype=Object.create(Error.prototype),c.prototype.constructor=c,c.prototype.name="TransformError";var u=function(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new l},d={before:{configurable:!0},docChanged:{configurable:!0}};function p(){throw new Error("Override me")}d.before.get=function(){return this.docs.length?this.docs[0]:this.doc},u.prototype.step=function(e){var t=this.maybeStep(e);if(t.failed)throw new c(t.failed);return this},u.prototype.maybeStep=function(e){var t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t},d.docChanged.get=function(){return this.steps.length>0},u.prototype.addStep=function(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t},Object.defineProperties(u.prototype,d);var f=Object.create(null),m=function(){};m.prototype.apply=function(e){return p()},m.prototype.getMap=function(){return s.empty},m.prototype.invert=function(e){return p()},m.prototype.map=function(e){return p()},m.prototype.merge=function(e){return null},m.prototype.toJSON=function(){return p()},m.fromJSON=function(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");var n=f[t.stepType];if(!n)throw new RangeError("No step type "+t.stepType+" defined");return n.fromJSON(e,t)},m.jsonID=function(e,t){if(e in f)throw new RangeError("Duplicate use of step JSON ID "+e);return f[e]=t,t.prototype.jsonID=e,t};var h=function(e,t){this.doc=e,this.failed=t};h.ok=function(e){return new h(e,null)},h.fail=function(e){return new h(null,e)},h.fromReplace=function(e,t,n,a){try{return h.ok(e.replace(t,n,a))}catch(e){if(e instanceof r.ReplaceError)return h.fail(e.message);throw e}};var _=function(e){function t(t,n,r,a){e.call(this),this.from=t,this.to=n,this.slice=r,this.structure=!!a}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){return this.structure&&g(e,this.from,this.to)?h.fail("Structure replace would overwrite content"):h.fromReplace(e,this.from,this.to,this.slice)},t.prototype.getMap=function(){return new s([this.from,this.to-this.from,this.slice.size])},t.prototype.invert=function(e){return new t(this.from,this.from+this.slice.size,e.slice(this.from,this.to))},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted?null:new t(n.pos,Math.max(n.pos,r.pos),this.slice)},t.prototype.merge=function(e){if(!(e instanceof t)||e.structure!=this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;var n=this.slice.size+e.slice.size==0?r.Slice.empty:new r.Slice(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new t(e.from,this.to,n,this.structure)}var a=this.slice.size+e.slice.size==0?r.Slice.empty:new r.Slice(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new t(this.from,this.to+(e.to-e.from),a,this.structure)},t.prototype.toJSON=function(){var e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new t(n.from,n.to,r.Slice.fromJSON(e,n.slice),!!n.structure)},t}(m);m.jsonID("replace",_);var v=function(e){function t(t,n,r,a,i,o,s){e.call(this),this.from=t,this.to=n,this.gapFrom=r,this.gapTo=a,this.slice=i,this.insert=o,this.structure=!!s}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){if(this.structure&&(g(e,this.from,this.gapFrom)||g(e,this.gapTo,this.to)))return h.fail("Structure gap-replace would overwrite content");var t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return h.fail("Gap is not a flat range");var n=this.slice.insertAt(this.insert,t.content);return n?h.fromReplace(e,this.from,this.to,n):h.fail("Content does not fit in gap")},t.prototype.getMap=function(){return new s([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])},t.prototype.invert=function(e){var n=this.gapTo-this.gapFrom;return new t(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),a=e.map(this.gapFrom,-1),i=e.map(this.gapTo,1);return n.deleted&&r.deleted||a<n.pos||i>r.pos?null:new t(n.pos,r.pos,a,i,this.slice,this.insert,this.structure)},t.prototype.toJSON=function(){var e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to||"number"!=typeof n.gapFrom||"number"!=typeof n.gapTo||"number"!=typeof n.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new t(n.from,n.to,n.gapFrom,n.gapTo,r.Slice.fromJSON(e,n.slice),n.insert,!!n.structure)},t}(m);function g(e,t,n){for(var r=e.resolve(t),a=n-t,i=r.depth;a>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,a--;if(a>0)for(var o=r.node(i).maybeChild(r.indexAfter(i));a>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,a--}return!1}function y(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function b(e){for(var t=e.parent.content.cutByIndex(e.startIndex,e.endIndex),n=e.depth;;--n){var r=e.$from.node(n),a=e.$from.index(n),i=e.$to.indexAfter(n);if(n<e.depth&&r.canReplace(a,i,t))return n;if(0==n||r.type.spec.isolating||!y(r,a,i))break}}function w(e,t,n,r){void 0===r&&(r=e);var a=function(e,t){var n=e.parent,r=e.startIndex,a=e.endIndex,i=n.contentMatchAt(r).findWrapping(t);if(!i)return null;var o=i.length?i[0]:t;return n.canReplaceWith(r,a,o)?i:null}(e,t),i=a&&function(e,t){var n=e.parent,r=e.startIndex,a=e.endIndex,i=n.child(r),o=t.contentMatch.findWrapping(i.type);if(!o)return null;for(var s=(o.length?o[o.length-1]:t).contentMatch,l=r;s&&l<a;l++)s=s.matchType(n.child(l).type);return s&&s.validEnd?o:null}(r,t);return i?a.map(x).concat({type:t,attrs:n}).concat(i.map(x)):null}function x(e){return{type:e,attrs:null}}function k(e,t,n,r){void 0===n&&(n=1);var a=e.resolve(t),i=a.depth-n,o=r&&r[r.length-1]||a.parent;if(i<0||a.parent.type.spec.isolating||!a.parent.canReplace(a.index(),a.parent.childCount)||!o.type.validContent(a.parent.content.cutByIndex(a.index(),a.parent.childCount)))return!1;for(var s=a.depth-1,l=n-2;s>i;s--,l--){var c=a.node(s),u=a.index(s);if(c.type.spec.isolating)return!1;var d=c.content.cutByIndex(u,c.childCount),p=r&&r[l]||c;if(p!=c&&(d=d.replaceChild(0,p.type.create(p.attrs))),!c.canReplace(u+1,c.childCount)||!p.type.validContent(d))return!1}var f=a.indexAfter(i),m=r&&r[0];return a.node(i).canReplaceWith(f,f,m?m.type:a.node(i+1).type)}function D(e,t){var n=e.resolve(t),r=n.index();return M(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function M(e,t){return e&&t&&!e.isLeaf&&e.canAppend(t)}function S(e,t,n){void 0===n&&(n=-1);for(var r=e.resolve(t),a=r.depth;;a--){var i=void 0,o=void 0,s=r.index(a);if(a==r.depth?(i=r.nodeBefore,o=r.nodeAfter):n>0?(i=r.node(a+1),s++,o=r.node(a).maybeChild(s)):(i=r.node(a).maybeChild(s-1),o=r.node(a+1)),i&&!i.isTextblock&&M(i,o)&&r.node(a).canReplace(s,s+1))return t;if(0==a)break;t=n<0?r.before(a):r.after(a)}}function C(e,t,n){var r=e.resolve(t);if(!n.content.size)return t;for(var a=n.content,i=0;i<n.openStart;i++)a=a.firstChild.content;for(var o=1;o<=(0==n.openStart&&n.size?2:1);o++)for(var s=r.depth;s>=0;s--){var l=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,c=r.index(s)+(l>0?1:0);if(1==o?r.node(s).canReplace(c,c,a):r.node(s).contentMatchAt(c).findWrapping(a.firstChild.type))return 0==l?r.pos:l<0?r.before(s+1):r.after(s+1)}return null}function L(e,t,n){for(var a=[],i=0;i<e.childCount;i++){var o=e.child(i);o.content.size&&(o=o.copy(L(o.content,t,o))),o.isInline&&(o=t(o,n,i)),a.push(o)}return r.Fragment.fromArray(a)}m.jsonID("replaceAround",v),u.prototype.lift=function(e,t){for(var n=e.$from,a=e.$to,i=e.depth,o=n.before(i+1),s=a.after(i+1),l=o,c=s,u=r.Fragment.empty,d=0,p=i,f=!1;p>t;p--)f||n.index(p)>0?(f=!0,u=r.Fragment.from(n.node(p).copy(u)),d++):l--;for(var m=r.Fragment.empty,h=0,_=i,g=!1;_>t;_--)g||a.after(_+1)<a.end(_)?(g=!0,m=r.Fragment.from(a.node(_).copy(m)),h++):c++;return this.step(new v(l,c,o,s,new r.Slice(u.append(m),d,h),u.size-d,!0))},u.prototype.wrap=function(e,t){for(var n=r.Fragment.empty,a=t.length-1;a>=0;a--)n=r.Fragment.from(t[a].type.create(t[a].attrs,n));var i=e.start,o=e.end;return this.step(new v(i,o,i,o,new r.Slice(n,0,0),t.length,!0))},u.prototype.setBlockType=function(e,t,n,a){var i=this;if(void 0===t&&(t=e),!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");var o=this.steps.length;return this.doc.nodesBetween(e,t,(function(e,t){if(e.isTextblock&&!e.hasMarkup(n,a)&&function(e,t,n){var r=e.resolve(t),a=r.index();return r.parent.canReplaceWith(a,a+1,n)}(i.doc,i.mapping.slice(o).map(t),n)){i.clearIncompatible(i.mapping.slice(o).map(t,1),n);var s=i.mapping.slice(o),l=s.map(t,1),c=s.map(t+e.nodeSize,1);return i.step(new v(l,c,l+1,c-1,new r.Slice(r.Fragment.from(n.create(a,null,e.marks)),0,0),1,!0)),!1}})),this},u.prototype.setNodeMarkup=function(e,t,n,a){var i=this.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");t||(t=i.type);var o=t.create(n,null,a||i.marks);if(i.isLeaf)return this.replaceWith(e,e+i.nodeSize,o);if(!t.validContent(i.content))throw new RangeError("Invalid content for node type "+t.name);return this.step(new v(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new r.Slice(r.Fragment.from(o),0,0),1,!0))},u.prototype.split=function(e,t,n){void 0===t&&(t=1);for(var a=this.doc.resolve(e),i=r.Fragment.empty,o=r.Fragment.empty,s=a.depth,l=a.depth-t,c=t-1;s>l;s--,c--){i=r.Fragment.from(a.node(s).copy(i));var u=n&&n[c];o=r.Fragment.from(u?u.type.create(u.attrs,o):a.node(s).copy(o))}return this.step(new _(e,e,new r.Slice(i.append(o),t,t),!0))},u.prototype.join=function(e,t){void 0===t&&(t=1);var n=new _(e-t,e+t,r.Slice.empty,!0);return this.step(n)};var T=function(e){function t(t,n,r){e.call(this),this.from=t,this.to=n,this.mark=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){var t=this,n=e.slice(this.from,this.to),a=e.resolve(this.from),i=a.node(a.sharedDepth(this.to)),o=new r.Slice(L(n.content,(function(e,n){return n.type.allowsMarkType(t.mark.type)?e.mark(t.mark.addToSet(e.marks)):e}),i),n.openStart,n.openEnd);return h.fromReplace(e,this.from,this.to,o)},t.prototype.invert=function(){return new E(this.from,this.to,this.mark)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new t(n.pos,r.pos,this.mark)},t.prototype.merge=function(e){if(e instanceof t&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new t(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},t.prototype.toJSON=function(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new t(n.from,n.to,e.markFromJSON(n.mark))},t}(m);m.jsonID("addMark",T);var E=function(e){function t(t,n,r){e.call(this),this.from=t,this.to=n,this.mark=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){var t=this,n=e.slice(this.from,this.to),a=new r.Slice(L(n.content,(function(e){return e.mark(t.mark.removeFromSet(e.marks))})),n.openStart,n.openEnd);return h.fromReplace(e,this.from,this.to,a)},t.prototype.invert=function(){return new T(this.from,this.to,this.mark)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new t(n.pos,r.pos,this.mark)},t.prototype.merge=function(e){if(e instanceof t&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new t(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},t.prototype.toJSON=function(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new t(n.from,n.to,e.markFromJSON(n.mark))},t}(m);function O(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}m.jsonID("removeMark",E),u.prototype.addMark=function(e,t,n){var r=this,a=[],i=[],o=null,s=null;return this.doc.nodesBetween(e,t,(function(r,l,c){if(r.isInline){var u=r.marks;if(!n.isInSet(u)&&c.type.allowsMarkType(n.type)){for(var d=Math.max(l,e),p=Math.min(l+r.nodeSize,t),f=n.addToSet(u),m=0;m<u.length;m++)u[m].isInSet(f)||(o&&o.to==d&&o.mark.eq(u[m])?o.to=p:a.push(o=new E(d,p,u[m])));s&&s.to==d?s.to=p:i.push(s=new T(d,p,n))}}})),a.forEach((function(e){return r.step(e)})),i.forEach((function(e){return r.step(e)})),this},u.prototype.removeMark=function(e,t,n){var a=this;void 0===n&&(n=null);var i=[],o=0;return this.doc.nodesBetween(e,t,(function(a,s){if(a.isInline){o++;var l=null;if(n instanceof r.MarkType){var c=n.isInSet(a.marks);c&&(l=[c])}else n?n.isInSet(a.marks)&&(l=[n]):l=a.marks;if(l&&l.length)for(var u=Math.min(s+a.nodeSize,t),d=0;d<l.length;d++){for(var p=l[d],f=void 0,m=0;m<i.length;m++){var h=i[m];h.step==o-1&&p.eq(i[m].style)&&(f=h)}f?(f.to=u,f.step=o):i.push({style:p,from:Math.max(s,e),to:u,step:o})}}})),i.forEach((function(e){return a.step(new E(e.from,e.to,e.style))})),this},u.prototype.clearIncompatible=function(e,t,n){void 0===n&&(n=t.contentMatch);for(var a=this.doc.nodeAt(e),i=[],o=e+1,s=0;s<a.childCount;s++){var l=a.child(s),c=o+l.nodeSize,u=n.matchType(l.type,l.attrs);if(u){n=u;for(var d=0;d<l.marks.length;d++)t.allowsMarkType(l.marks[d].type)||this.step(new E(o,c,l.marks[d]))}else i.push(new _(o,c,r.Slice.empty));o=c}if(!n.validEnd){var p=n.fillBefore(r.Fragment.empty,!0);this.replace(o,o,new r.Slice(p,0,0))}for(var f=i.length-1;f>=0;f--)this.step(i[f]);return this},u.prototype.replace=function(e,t,n){void 0===t&&(t=e),void 0===n&&(n=r.Slice.empty);var a=function(e,t,n,a){if(void 0===n&&(n=t),void 0===a&&(a=r.Slice.empty),t==n&&!a.size)return null;var i=e.resolve(t),o=e.resolve(n);return O(i,o,a)?new _(t,n,a):new j(i,o,a).fit()}(this.doc,e,t,n);return a&&this.step(a),this},u.prototype.replaceWith=function(e,t,n){return this.replace(e,t,new r.Slice(r.Fragment.from(n),0,0))},u.prototype.delete=function(e,t){return this.replace(e,t,r.Slice.empty)},u.prototype.insert=function(e,t){return this.replaceWith(e,e,t)};var j=function(e,t,n){this.$to=t,this.$from=e,this.unplaced=n,this.frontier=[];for(var a=0;a<=e.depth;a++){var i=e.node(a);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(a))})}this.placed=r.Fragment.empty;for(var o=e.depth;o>0;o--)this.placed=r.Fragment.from(e.node(o).copy(this.placed))},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 Y(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(Y(e.lastChild.content,t-1,n)))}function $(e,t){for(var n=0;n<t;n++)e=e.firstChild.content;return e}function I(e,t,n){if(t<=0)return e;var a=e.content;return t>1&&(a=a.replaceChild(0,I(a.firstChild,t-1,1==a.childCount?n-1:0))),t>0&&(a=e.type.contentMatch.fillBefore(a).append(a),n<=0&&(a=a.append(e.type.contentMatch.matchFragment(a).fillBefore(r.Fragment.empty,!0)))),e.copy(a)}function N(e,t,n,r,a){var i=e.node(t),o=a?e.indexAfter(t):e.index(t);if(o==i.childCount&&!n.compatibleContent(i.type))return null;var s=r.fillBefore(i.content,!0,o);return s&&!function(e,t,n){for(var r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}(n,i.content,o)?s:null}function z(e,t,n,a,i){if(t<n){var o=e.firstChild;e=e.replaceChild(0,o.copy(z(o.content,t+1,n,a,o)))}if(t>a){var s=i.contentMatchAt(0),l=s.fillBefore(e).append(e);e=l.append(s.matchFragment(l).fillBefore(r.Fragment.empty,!0))}return e}function F(e,t){for(var n=[],r=Math.min(e.depth,t.depth);r>=0;r--){var a=e.start(r);if(a<e.pos-(e.depth-r)||t.end(r)>t.pos+(t.depth-r)||e.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;a==t.start(r)&&n.push(r)}return n}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,a=this.$from,i=this.close(t<0?this.$to:a.doc.resolve(t));if(!i)return null;for(var o=this.placed,s=a.depth,l=i.depth;s&&l&&1==o.childCount;)o=o.firstChild.content,s--,l--;var c=new r.Slice(o,s,l);return t>-1?new v(a.pos,t,this.$to.pos,this.$to.end(),c,n):c.size||a.pos!=this.$to.pos?new _(a.pos,i.pos,c):void 0},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,a=(t?(n=$(this.unplaced.content,t-1).firstChild).content:this.unplaced.content).firstChild,i=this.depth;i>=0;i--){var o=this.frontier[i],s=o.type,l=o.match,c=void 0,u=void 0;if(1==e&&(a?l.matchType(a.type)||(u=l.fillBefore(r.Fragment.from(a),!1)):s.compatibleContent(n.type)))return{sliceDepth:t,frontierDepth:i,parent:n,inject:u};if(2==e&&a&&(c=l.findWrapping(a.type)))return{sliceDepth:t,frontierDepth:i,parent:n,wrap:c};if(n&&l.matchType(n.type))break}},j.prototype.openMore=function(){var e=this.unplaced,t=e.content,n=e.openStart,a=e.openEnd,i=$(t,n);return!(!i.childCount||i.firstChild.isLeaf||(this.unplaced=new r.Slice(t,n+1,Math.max(a,i.size+n>=t.size-a?n+1:0)),0))},j.prototype.dropNode=function(){var e=this.unplaced,t=e.content,n=e.openStart,a=e.openEnd,i=$(t,n);if(i.childCount<=1&&n>0){var o=t.size-n<=n+i.size;this.unplaced=new r.Slice(P(t,n-1,1),n-1,o?n-1:a)}else this.unplaced=new r.Slice(P(t,n,1),n,a)},j.prototype.placeNodes=function(e){for(var t=e.sliceDepth,n=e.frontierDepth,a=e.parent,i=e.inject,o=e.wrap;this.depth>n;)this.closeFrontierNode();if(o)for(var s=0;s<o.length;s++)this.openFrontierNode(o[s]);var l=this.unplaced,c=a?a.content:l.content,u=l.openStart-t,d=0,p=[],f=this.frontier[n],m=f.match,h=f.type;if(i){for(var _=0;_<i.childCount;_++)p.push(i.child(_));m=m.matchFragment(i)}for(var v=c.size+t-(l.content.size-l.openEnd);d<c.childCount;){var g=c.child(d),y=m.matchType(g.type);if(!y)break;(++d>1||0==u||g.content.size)&&(m=y,p.push(I(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=Y(this.placed,n,r.Fragment.from(p)),this.frontier[n].match=m,b&&v<0&&a&&a.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(var w=0,x=c;w<v;w++){var k=x.lastChild;this.frontier.push({type:k.type,match:k.contentMatchAt(k.childCount)}),x=k.content}this.unplaced=b?0==t?r.Slice.empty:new r.Slice(P(l.content,t-1,1),t-1,v<0?l.openEnd:t-1):new r.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,r=this.$to.after(n);n>1&&r==this.$to.end(--n);)++r;return r},j.prototype.findCloseLevel=function(e){e:for(var t=Math.min(this.depth,e.depth);t>=0;t--){var n=this.frontier[t],r=n.match,a=n.type,i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),o=N(e,t,a,r,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=Y(this.placed,t.depth,t.fit)),e=t.move;for(var n=t.depth+1;n<=e.depth;n++){var r=e.node(n),a=r.type.contentMatch.fillBefore(r.content,!0,e.index(n));this.openFrontierNode(r.type,r.attrs,a)}return e},j.prototype.openFrontierNode=function(e,t,n){var a=this.frontier[this.depth];a.match=a.match.matchType(e),this.placed=Y(this.placed,this.depth,r.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(r.Fragment.empty,!0);e.childCount&&(this.placed=Y(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 a=this.doc.resolve(e),i=this.doc.resolve(t);if(O(a,i,n))return this.step(new _(e,t,n));var o=F(a,this.doc.resolve(t));0==o[o.length-1]&&o.pop();var s=-(a.depth+1);o.unshift(s);for(var l=a.depth,c=a.pos-1;l>0;l--,c--){var u=a.node(l).type.spec;if(u.defining||u.isolating)break;o.indexOf(l)>-1?s=l:a.before(l)==c&&o.splice(1,0,-l)}for(var d=o.indexOf(s),p=[],f=n.openStart,m=n.content,h=0;;h++){var v=m.firstChild;if(p.push(v),h==n.openStart)break;m=v.content}f>0&&p[f-1].type.spec.defining&&a.node(d).type!=p[f-1].type?f-=1:f>=2&&p[f-1].isTextblock&&p[f-2].type.spec.defining&&a.node(d).type!=p[f-2].type&&(f-=2);for(var g=n.openStart;g>=0;g--){var y=(g+f+1)%(n.openStart+1),b=p[y];if(b)for(var w=0;w<o.length;w++){var x=o[(w+d)%o.length],k=!0;x<0&&(k=!1,x=-x);var D=a.node(x-1),M=a.index(x-1);if(D.canReplaceWith(M,M,b.type,b.marks))return this.replace(a.before(x),k?i.after(x):t,new r.Slice(z(n.content,0,n.openStart,y),y,n.openEnd))}}for(var S=this.steps.length,C=o.length-1;C>=0&&(this.replace(e,t,n),!(this.steps.length>S));C--){var L=o[C];C<0||(e=a.before(L),t=i.after(L))}return this},u.prototype.replaceRangeWith=function(e,t,n){if(!n.isInline&&e==t&&this.doc.resolve(e).parent.content.size){var a=function(e,t,n){var r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(var a=r.depth-1;a>=0;a--){var i=r.index(a);if(r.node(a).canReplaceWith(i,i,n))return r.before(a+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(var o=r.depth-1;o>=0;o--){var s=r.indexAfter(o);if(r.node(o).canReplaceWith(s,s,n))return r.after(o+1);if(s<r.node(o).childCount)return null}}(this.doc,e,n.type);null!=a&&(e=t=a)}return this.replaceRange(e,t,new r.Slice(r.Fragment.from(n),0,0))},u.prototype.deleteRange=function(e,t){for(var n=this.doc.resolve(e),r=this.doc.resolve(t),a=F(n,r),i=0;i<a.length;i++){var o=a[i],s=i==a.length-1;if(s&&0==o||n.node(o).type.contentMatch.validEnd)return this.delete(n.start(o),r.end(o));if(o>0&&(s||n.node(o-1).canReplace(n.index(o-1),r.indexAfter(o-1))))return this.delete(n.before(o),r.after(o))}for(var l=1;l<=n.depth&&l<=r.depth;l++)if(e-n.start(l)==n.depth-l&&t>n.end(l)&&r.end(l)-t!=r.depth-l)return this.delete(n.before(l),t);return this.delete(e,t)}},"0b07":function(e,t,n){var r=n("34ac"),a=n("3698");e.exports=function(e,t){var n=a(e,t);return r(n)?n:void 0}},"0caa":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return r?a[n][0]:a[n][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(n("c1df"))},"0cfb":function(e,t,n){var r=n("83ab"),a=n("d039"),i=n("cc12");e.exports=!r&&!a((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"0d24":function(e,t,n){(function(e){var r=n("2b3e"),a=n("07c7"),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||a;e.exports=l}).call(this,n("62e4")(e))},"0e49":function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n("c1df"))},"0e6b":function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})}(n("c1df"))},"0e81":function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n("c1df"))},"0f14":function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},"0f38":function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n("c1df"))},"0ff2":function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("c1df"))},"100e":function(e,t,n){var r=n("cd9d"),a=n("2286"),i=n("c1c9");e.exports=function(e,t){return i(a(e,t,r),e+"")}},1020:function(e,t){function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(t){var r=e[t];"object"!=typeof r||Object.isFrozen(r)||n(r)})),e}var r=n,a=n;r.default=a;class i{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data}ignoreMatch(){this.ignore=!0}}function o(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function s(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t];return t.forEach((function(e){for(const t in e)n[t]=e[t]})),n}function l(e){return e.nodeName.toLowerCase()}var c=Object.freeze({__proto__:null,escapeHTML:o,inherit:s,nodeStream:function(e){const t=[];return function e(n,r){for(let a=n.firstChild;a;a=a.nextSibling)3===a.nodeType?r+=a.nodeValue.length:1===a.nodeType&&(t.push({event:"start",offset:r,node:a}),r=e(a,r),l(a).match(/br|hr|img|input/)||t.push({event:"stop",offset:r,node:a}));return r}(e,0),t},mergeStreams:function(e,t,n){let r=0,a="";const i=[];function s(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function c(e){a+="<"+l(e)+[].map.call(e.attributes,(function(e){return" "+e.nodeName+'="'+o(e.value)+'"'})).join("")+">"}function u(e){a+="</"+l(e)+">"}function d(e){("start"===e.event?c:u)(e.node)}for(;e.length||t.length;){let t=s();if(a+=o(n.substring(r,t[0].offset)),r=t[0].offset,t===e){i.reverse().forEach(u);do{d(t.splice(0,1)[0]),t=s()}while(t===e&&t.length&&t[0].offset===r);i.reverse().forEach(c)}else"start"===t[0].event?i.push(t[0].node):i.pop(),d(t.splice(0,1)[0])}return a+o(n.substr(r))}});const u=e=>!!e.kind;class d{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=o(e)}openNode(e){if(!u(e))return;let t=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){u(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}class p{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t={kind:e,children:[]};this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{p._collapse(e)}))}}class f 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 m(e){return e?"string"==typeof e?e:e.source:null}const h="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",_={begin:"\\\\[\\s\\S]",relevance:0},v={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[_]},g={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[_]},y={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/},b=function(e,t,n={}){const r=s({className:"comment",begin:e,end:t,contains:[]},n);return r.contains.push(y),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),r},w=b("//","$"),x=b("/\\*","\\*/"),k=b("#","$"),D={className:"number",begin:"\\b\\d+(\\.\\d+)?",relevance:0},M={className:"number",begin:h,relevance:0},S={className:"number",begin:"\\b(0b[01]+)",relevance:0},C={className:"number",begin:"\\b\\d+(\\.\\d+)?(%|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},L={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[_,{begin:/\[/,end:/\]/,relevance:0,contains:[_]}]}]},T={className:"title",begin:"[a-zA-Z]\\w*",relevance:0},E={className:"title",begin:"[a-zA-Z_]\\w*",relevance:0},O={begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0};var j=Object.freeze({__proto__:null,IDENT_RE:"[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE:"[a-zA-Z_]\\w*",NUMBER_RE:"\\b\\d+(\\.\\d+)?",C_NUMBER_RE:h,BINARY_NUMBER_RE:"\\b(0b[01]+)",RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=function(...e){return e.map(e=>m(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:_,APOS_STRING_MODE:v,QUOTE_STRING_MODE:g,PHRASAL_WORDS_MODE:y,COMMENT:b,C_LINE_COMMENT_MODE:w,C_BLOCK_COMMENT_MODE:x,HASH_COMMENT_MODE:k,NUMBER_MODE:D,C_NUMBER_MODE:M,BINARY_NUMBER_MODE:S,CSS_NUMBER_MODE:C,REGEXP_MODE:L,TITLE_MODE:T,UNDERSCORE_TITLE_MODE:E,METHOD_GUARD:O,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 A=["of","and","for","in","not","or","if","then","parent","list","value"];function P(e){function t(t,n){return new RegExp(m(t),"m"+(e.case_insensitive?"i":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=function(e){return new RegExp(e.toString()+"|").exec("").length-1}(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=t(function(e,t="|"){const n=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;let r=0,a="";for(let i=0;i<e.length;i++){r+=1;const o=r;let s=m(e[i]);for(i>0&&(a+=t),a+="(";s.length>0;){const e=n.exec(s);if(null==e){a+=s;break}a+=s.substring(0,e.index),s=s.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?a+="\\"+String(Number(e[1])+o):(a+=e[0],"("===e[0]&&r++)}a+=")"}return a}(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex((e,t)=>t>0&&void 0!==e),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function a(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}if(e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=s(e.classNameAliases||{}),function n(i,o){const l=i;if(i.compiled)return l;i.compiled=!0,i.__beforeBegin=null,i.keywords=i.keywords||i.beginKeywords;let c=null;if("object"==typeof i.keywords&&(c=i.keywords.$pattern,delete i.keywords.$pattern),i.keywords&&(i.keywords=function(e,t){const n={};return"string"==typeof e?r("keyword",e):Object.keys(e).forEach((function(t){r(t,e[t])})),n;function r(e,r){t&&(r=r.toLowerCase()),r.split(" ").forEach((function(t){const r=t.split("|");n[r[0]]=[e,Y(r[0],r[1])]}))}}(i.keywords,e.case_insensitive)),i.lexemes&&c)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return l.keywordPatternRe=t(i.lexemes||c||/\w+/,!0),o&&(i.beginKeywords&&(i.begin="\\b("+i.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",i.__beforeBegin=a),i.begin||(i.begin=/\B|\b/),l.beginRe=t(i.begin),i.endSameAsBegin&&(i.end=i.begin),i.end||i.endsWithParent||(i.end=/\B|\b/),i.end&&(l.endRe=t(i.end)),l.terminator_end=m(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:function e(t){return!!t&&(t.endsWithParent||e(t.starts))}(e)?s(e,{starts:e.starts?s(e.starts):null}):Object.isFrozen(e)?s(e):e}("self"===e?i:e)}))),i.contains.forEach((function(e){n(e,l)})),i.starts&&n(i.starts,o),l.matcher=function(e){const t=new r;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:"begin"})),e.terminator_end&&t.addRule(e.terminator_end,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(l),l}(e)}function Y(e,t){return t?Number(t):function(e){return A.includes(e.toLowerCase())}(e)?0:1}function $(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 I=o,N=s,{nodeStream:z,mergeStreams:F}=c,R=Symbol("nomatch");var H=function(e){const t=[],n=Object.create(null),a=Object.create(null),o=[];let s=!0;const l=/(^(<[^>]+>|\t|)+|\n)/gm,c="Could not find the language '{}', did you forget to load/include a language module?",u={disableAutodetect:!0,name:"Plain text",contains:[]};let d={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:f};function p(e){return d.noHighlightRe.test(e)}function m(e,t,n,r){const a={code:t,language:e};k("before:highlight",a);const i=a.result?a.result:h(a.language,a.code,n,r);return i.code=a.code,k("after:highlight",i),i}function h(e,t,r,a){const o=t;function l(e,t){const n=w.case_insensitive?t[0].toLowerCase():t[0];return Object.prototype.hasOwnProperty.call(e.keywords,n)&&e.keywords[n]}function u(){null!=D.subLanguage?function(){if(""===C)return;let e=null;if("string"==typeof D.subLanguage){if(!n[D.subLanguage])return void S.addText(C);e=h(D.subLanguage,C,!0,M[D.subLanguage]),M[D.subLanguage]=e.top}else e=_(C,D.subLanguage.length?D.subLanguage:null);D.relevance>0&&(L+=e.relevance),S.addSublanguage(e.emitter,e.language)}():function(){if(!D.keywords)return void S.addText(C);let e=0;D.keywordPatternRe.lastIndex=0;let t=D.keywordPatternRe.exec(C),n="";for(;t;){n+=C.substring(e,t.index);const r=l(D,t);if(r){const[e,a]=r;S.addText(n),n="",L+=a;const i=w.classNameAliases[e]||e;S.addKeyword(t[0],i)}else n+=t[0];e=D.keywordPatternRe.lastIndex,t=D.keywordPatternRe.exec(C)}n+=C.substr(e),S.addText(n)}(),C=""}function p(e){return e.className&&S.openNode(w.classNameAliases[e.className]||e.className),D=Object.create(e,{parent:{value:D}}),D}function f(e){return 0===D.matcher.regexIndex?(C+=e[0],1):(O=!0,0)}function m(e){const t=e[0],n=e.rule,r=new i(n),a=[n.__beforeBegin,n["on:begin"]];for(const n of a)if(n&&(n(e,r),r.ignore))return f(t);return n&&n.endSameAsBegin&&(n.endRe=new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),n.skip?C+=t:(n.excludeBegin&&(C+=t),u(),n.returnBegin||n.excludeBegin||(C=t)),p(n),n.returnBegin?0:t.length}function v(e){const t=e[0],n=o.substr(e.index),r=function e(t,n,r){let a=function(e,t){const n=e&&e.exec(t);return n&&0===n.index}(t.endRe,r);if(a){if(t["on:end"]){const e=new i(t);t["on:end"](n,e),e.ignore&&(a=!1)}if(a){for(;t.endsParent&&t.parent;)t=t.parent;return t}}if(t.endsWithParent)return e(t.parent,n,r)}(D,e,n);if(!r)return R;const a=D;a.skip?C+=t:(a.returnEnd||a.excludeEnd||(C+=t),u(),a.excludeEnd&&(C=t));do{D.className&&S.closeNode(),D.skip||D.subLanguage||(L+=D.relevance),D=D.parent}while(D!==r.parent);return r.starts&&(r.endSameAsBegin&&(r.starts.endRe=r.endRe),p(r.starts)),a.returnEnd?0:t.length}let g={};function y(t,n){const a=n&&n[0];if(C+=t,null==a)return u(),0;if("begin"===g.type&&"end"===n.type&&g.index===n.index&&""===a){if(C+=o.slice(n.index,n.index+1),!s){const t=new Error("0 width match regex");throw t.languageName=e,t.badRule=g.rule,t}return 1}if(g=n,"begin"===n.type)return m(n);if("illegal"===n.type&&!r){const e=new Error('Illegal lexeme "'+a+'" for mode "'+(D.className||"<unnamed>")+'"');throw e.mode=D,e}if("end"===n.type){const e=v(n);if(e!==R)return e}if("illegal"===n.type&&""===a)return 1;if(E>1e5&&E>3*n.index)throw new Error("potential infinite loop, way more iterations than matches");return C+=a,a.length}const w=b(e);if(!w)throw console.error(c.replace("{}",e)),new Error('Unknown language: "'+e+'"');const x=P(w);let k="",D=a||x;const M={},S=new d.__emitter(d);!function(){const e=[];for(let t=D;t!==w;t=t.parent)t.className&&e.unshift(t.className);e.forEach(e=>S.openNode(e))}();let C="",L=0,T=0,E=0,O=!1;try{for(D.matcher.considerAll();;){E++,O?O=!1:D.matcher.considerAll(),D.matcher.lastIndex=T;const e=D.matcher.exec(o);if(!e)break;const t=y(o.substring(T,e.index),e);T=e.index+t}return y(o.substr(T)),S.closeAllNodes(),S.finalize(),k=S.toHTML(),{relevance:L,value:k,language:e,illegal:!1,emitter:S,top:D}}catch(t){if(t.message&&t.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:t.message,context:o.slice(T-100,T+100),mode:t.mode},sofar:k,relevance:0,value:I(o),emitter:S};if(s)return{illegal:!1,relevance:0,value:I(o),emitter:S,language:e,top:D,errorRaised:t};throw t}}function _(e,t){t=t||d.languages||Object.keys(n);const r=function(e){const t={relevance:0,emitter:new d.__emitter(d),value:I(e),illegal:!1,top:u};return t.emitter.addText(e),t}(e),a=t.filter(b).filter(x).map(t=>h(t,e,!1));a.unshift(r);const i=a.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(b(e.language).supersetOf===t.language)return 1;if(b(t.language).supersetOf===e.language)return-1}return 0}),[o,s]=i,l=o;return l.second_best=s,l}function v(e){return d.tabReplace||d.useBR?e.replace(l,e=>"\n"===e?d.useBR?"<br>":e:d.tabReplace?e.replace(/\t/g,d.tabReplace):e):e}function g(e){let t=null;const n=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=d.languageDetectRe.exec(t);if(n){const t=b(n[1]);return t||(console.warn(c.replace("{}",n[1])),console.warn("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find(e=>p(e)||b(e))}(e);if(p(n))return;k("before:highlightBlock",{block:e,language:n}),d.useBR?(t=document.createElement("div"),t.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,"\n")):t=e;const r=t.textContent,i=n?m(n,r,!0):_(r),o=z(t);if(o.length){const e=document.createElement("div");e.innerHTML=i.value,i.value=F(o,z(e),r)}i.value=v(i.value),k("after:highlightBlock",{block:e,result:i}),e.innerHTML=i.value,e.className=function(e,t,n){const r=t?a[t]:n,i=[e.trim()];return e.match(/\bhljs\b/)||i.push("hljs"),e.includes(r)||i.push(r),i.join(" ").trim()}(e.className,n,i.language),e.result={language:i.language,re:i.relevance,relavance:i.relevance},i.second_best&&(e.second_best={language:i.second_best.language,re:i.second_best.relevance,relavance:i.second_best.relevance})}const y=()=>{if(y.called)return;y.called=!0;const e=document.querySelectorAll("pre code");t.forEach.call(e,g)};function b(e){return e=(e||"").toLowerCase(),n[e]||n[a[e]]}function w(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach(e=>{a[e]=t})}function x(e){const t=b(e);return t&&!t.disableAutodetect}function k(e,t){const n=e;o.forEach((function(e){e[n]&&e[n](t)}))}Object.assign(e,{highlight:m,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=N(d,e)},initHighlighting:y,initHighlightingOnLoad:function(){window.addEventListener("DOMContentLoaded",y,!1)},registerLanguage:function(t,r){let a=null;try{a=r(e)}catch(e){if(console.error("Language definition for '{}' could not be registered.".replace("{}",t)),!s)throw e;console.error(e),a=u}a.name||(a.name=t),n[t]=a,a.rawDefinition=r.bind(null,e),a.aliases&&w(a.aliases,{languageName:t})},listLanguages:function(){return Object.keys(n)},getLanguage:b,registerAliases:w,requireLanguage:function(e){console.warn("requireLanguage is deprecated and will be removed entirely in the future."),console.warn("Please see https://github.com/highlightjs/highlight.js/pull/2844");const t=b(e);if(t)return t;throw new Error("The '{}' language is required, but not loaded.".replace("{}",e))},autoDetection:x,inherit:N,addPlugin:function(e){o.push(e)},vuePlugin:$(e).VuePlugin}),e.debugMode=function(){s=!1},e.safeMode=function(){s=!0},e.versionString="10.4.0";for(const e in j)"object"==typeof j[e]&&r(j[e]);return Object.assign(e,j),e}({});e.exports=H},"10e8":function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n("c1df"))},1276:function(e,t,n){"use strict";var r=n("d784"),a=n("44e7"),i=n("825a"),o=n("1d80"),s=n("4840"),l=n("8aa5"),c=n("50c4"),u=n("14c3"),d=n("9263"),p=n("d039"),f=[].push,m=Math.min,h=!p((function(){return!RegExp(4294967295,"y")}));r("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(o(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!a(e))return t.call(r,e,i);for(var s,l,c,u=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,h=new RegExp(e.source,p+"g");(s=d.call(h,r))&&!((l=h.lastIndex)>m&&(u.push(r.slice(m,s.index)),s.length>1&&s.index<r.length&&f.apply(u,s.slice(1)),c=s[0].length,m=l,u.length>=i));)h.lastIndex===s.index&&h.lastIndex++;return m===r.length?!c&&h.test("")||u.push(""):u.push(r.slice(m)),u.length>i?u.slice(0,i):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var a=o(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,a,n):r.call(String(a),t,n)},function(e,a){var o=n(r,e,this,a,r!==t);if(o.done)return o.value;var d=i(e),p=String(this),f=s(d,RegExp),_=d.unicode,v=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(h?"y":"g"),g=new f(h?d:"^(?:"+d.source+")",v),y=void 0===a?4294967295:a>>>0;if(0===y)return[];if(0===p.length)return null===u(g,p)?[p]:[];for(var b=0,w=0,x=[];w<p.length;){g.lastIndex=h?w:0;var k,D=u(g,h?p:p.slice(w));if(null===D||(k=m(c(g.lastIndex+(h?0:w)),p.length))===b)w=l(p,w,_);else{if(x.push(p.slice(b,w)),x.length===y)return x;for(var M=1;M<=D.length-1;M++)if(x.push(D[M]),x.length===y)return x;w=b=k}}return x.push(p.slice(b)),x}]}),!h)},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}},1310:function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},1368:function(e,t,n){var r,a=n("da03"),i=(r=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},"13d5":function(e,t,n){"use strict";var r=n("23e7"),a=n("d58f").left,i=n("a640"),o=n("ae40"),s=n("2d00"),l=n("605d"),c=i("reduce"),u=o("reduce",{1:0});r({target:"Array",proto:!0,forced:!c||!u||!l&&s>79&&s<83},{reduce:function(e){return a(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"13e9":function(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var a=t.words[r];return 1===r.length?n?a[0]:a[1]:e+" "+t.correctGrammaticalCase(e,a)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("c1df"))},"14c3":function(e,t,n){var r=n("c6b6"),a=n("9263");e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return a.call(e,t)}},"159b":function(e,t,n){var r=n("da84"),a=n("fdbc"),i=n("17c2"),o=n("9112");for(var s in a){var l=r[s],c=l&&l.prototype;if(c&&c.forEach!==i)try{o(c,"forEach",i)}catch(e){c.forEach=i}}},"167b":function(e,t,n){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n("c1df"))},"17c2":function(e,t,n){"use strict";var r=n("b727").forEach,a=n("a640"),i=n("ae40"),o=a("forEach"),s=i("forEach");e.exports=o&&s?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"19aa":function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},"1a8c":function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},"1b45":function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("c1df"))},"1be4":function(e,t,n){var r=n("d066");e.exports=r("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,n){var r=n("b622")("iterator"),a=!1;try{var i=0,o={next:function(){return{done:!!i++}},return:function(){a=!0}};o[r]=function(){return this},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},"1cdc":function(e,t,n){var r=n("342f");e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},"1cfd":function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,a,i,o){var s=n(t),l=r[e][n(t)];return 2===s&&(l=l[a?0:1]),l.replace(/%d/i,t)}},i=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n("c1df"))},"1d80":function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},"1dde":function(e,t,n){var r=n("d039"),a=n("b622"),i=n("2d00"),o=a("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1efc":function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},"1fc1":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,a;return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(r=+e,a={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),r%10==1&&r%100!=11?a[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?a[1]:a[2])}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:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n("c1df"))},"1fc8":function(e,t,n){var r=n("4245");e.exports=function(e,t){var n=r(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}},"201b":function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,n){return"ი"===n?t+"ში":t+n+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n("c1df"))},2266:function(e,t,n){var r=n("825a"),a=n("e95a"),i=n("50c4"),o=n("0366"),s=n("35a1"),l=n("2a62"),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var u,d,p,f,m,h,_,v=n&&n.that,g=!(!n||!n.AS_ENTRIES),y=!(!n||!n.IS_ITERATOR),b=!(!n||!n.INTERRUPTED),w=o(t,v,1+g+b),x=function(e){return u&&l(u),new c(!0,e)},k=function(e){return g?(r(e),b?w(e[0],e[1],x):w(e[0],e[1])):b?w(e,x):w(e)};if(y)u=e;else{if("function"!=typeof(d=s(e)))throw TypeError("Target is not iterable");if(a(d)){for(p=0,f=i(e.length);f>p;p++)if((m=k(e[p]))&&m instanceof c)return m;return new c(!1)}u=d.call(e)}for(h=u.next;!(_=h.call(u)).done;){try{m=k(_.value)}catch(e){throw l(u),e}if("object"==typeof m&&m&&m instanceof c)return m}return new c(!1)}},2286:function(e,t,n){var r=n("85e3"),a=Math.max;e.exports=function(e,t,n){return t=a(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=a(i.length-t,0),l=Array(s);++o<s;)l[o]=i[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=i[o];return c[t]=n(l),r(e,this,c)}}},"22f8":function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n("c1df"))},"23cb":function(e,t,n){var r=n("a691"),a=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?a(n+t,0):i(n,t)}},"23e7":function(e,t,n){var r=n("da84"),a=n("06cf").f,i=n("9112"),o=n("6eeb"),s=n("ce4e"),l=n("e893"),c=n("94ca");e.exports=function(e,t){var n,u,d,p,f,m=e.target,h=e.global,_=e.stat;if(n=h?r:_?r[m]||s(m,{}):(r[m]||{}).prototype)for(u in t){if(p=t[u],d=e.noTargetGet?(f=a(n,u))&&f.value:n[u],!c(h?u:m+(_?".":"#")+u,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),o(n,u,p,e)}}},"241c":function(e,t,n){var r=n("ca84"),a=n("7839").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},2421:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:r,monthsShort:r,weekdays:"یهكشهممه_دووشهممه_سێشهممه_چوارشهممه_پێنجشهممه_ههینی_شهممه".split("_"),weekdaysShort:"یهكشهم_دووشهم_سێشهم_چوارشهم_پێنجشهم_ههینی_شهممه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره|بهیانی/,isPM:function(e){return/ئێواره/.test(e)},meridiem:function(e,t,n){return e<12?"بهیانی":"ئێواره"},calendar:{sameDay:"[ئهمرۆ كاتژمێر] LT",nextDay:"[بهیانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له %s",past:"%s",s:"چهند چركهیهك",ss:"چركه %d",m:"یهك خولهك",mm:"%d خولهك",h:"یهك كاتژمێر",hh:"%d كاتژمێر",d:"یهك ڕۆژ",dd:"%d ڕۆژ",M:"یهك مانگ",MM:"%d مانگ",y:"یهك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n("c1df"))},2474:function(e,t,n){var r=n("2b3e").Uint8Array;e.exports=r},2478:function(e,t,n){var r=n("4245");e.exports=function(e){return r(this,e).get(e)}},2524:function(e,t,n){var r=n("6044");e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},2532:function(e,t,n){"use strict";var r=n("23e7"),a=n("5a34"),i=n("1d80");r({target:"String",proto:!0,forced:!n("ab13")("includes")},{includes:function(e){return!!~String(i(this)).indexOf(a(e),arguments.length>1?arguments[1]:void 0)}})},"253c":function(e,t,n){var r=n("3729"),a=n("1310");e.exports=function(e){return a(e)&&"[object Arguments]"==r(e)}},2554:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("c1df"))},"25f0":function(e,t,n){"use strict";var r=n("6eeb"),a=n("825a"),i=n("d039"),o=n("ad6d"),s=RegExp.prototype,l=s.toString,c=i((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),u="toString"!=l.name;(c||u)&&r(RegExp.prototype,"toString",(function(){var e=a(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in s)?o.call(e):n)}),{unsafe:!0})},2626:function(e,t,n){"use strict";var r=n("d066"),a=n("9bf2"),i=n("b622"),o=n("83ab"),s=i("species");e.exports=function(e){var t=r(e),n=a.f;o&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},"26f9":function(e,t,n){!function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?a(n)[0]:r?a(n)[1]:a(n)[2]}function r(e){return e%10==0||e>10&&e<20}function a(e){return t[e].split("_")}function i(e,t,i,o){var s=e+" ";return 1===e?s+n(0,t,i[0],o):t?s+(r(e)?a(i)[1]:a(i)[0]):o?s+a(i)[1]:s+(r(e)?a(i)[1]:a(i)[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:function(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"},ss:i,m:n,mm:i,h:n,hh:i,d:n,dd:i,M:n,MM:i,y:n,yy:i},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n("c1df"))},"28c9":function(e,t){e.exports=function(){this.__data__=[],this.size=0}},2921:function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n("c1df"))},"293c":function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var a=t.words[r];return 1===r.length?n?a[0]:a[1]:e+" "+t.correctGrammaticalCase(e,a)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("c1df"))},"29f3":function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},"2a62":function(e,t,n){var r=n("825a");e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},"2b3e":function(e,t,n){var r=n("585a"),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();e.exports=i},"2bfb":function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("c1df"))},"2ca0":function(e,t,n){"use strict";var r,a=n("23e7"),i=n("06cf").f,o=n("50c4"),s=n("5a34"),l=n("1d80"),c=n("ab13"),u=n("c430"),d="".startsWith,p=Math.min,f=c("startsWith");a({target:"String",proto:!0,forced:!(!u&&!f&&(r=i(String.prototype,"startsWith"),r&&!r.writable)||f)},{startsWith:function(e){var t=String(l(this));s(e);var n=o(p(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return d?d.call(t,r,n):t.slice(n,n+r.length)===r}})},"2cf4":function(e,t,n){var r,a,i,o=n("da84"),s=n("d039"),l=n("0366"),c=n("1be4"),u=n("cc12"),d=n("1cdc"),p=n("605d"),f=o.location,m=o.setImmediate,h=o.clearImmediate,_=o.process,v=o.MessageChannel,g=o.Dispatch,y=0,b={},w=function(e){if(b.hasOwnProperty(e)){var t=b[e];delete b[e],t()}},x=function(e){return function(){w(e)}},k=function(e){w(e.data)},D=function(e){o.postMessage(e+"",f.protocol+"//"+f.host)};m&&h||(m=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return b[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(y),y},h=function(e){delete b[e]},p?r=function(e){_.nextTick(x(e))}:g&&g.now?r=function(e){g.now(x(e))}:v&&!d?(i=(a=new v).port2,a.port1.onmessage=k,r=l(i.postMessage,i,1)):o.addEventListener&&"function"==typeof postMessage&&!o.importScripts&&f&&"file:"!==f.protocol&&!s(D)?(r=D,o.addEventListener("message",k,!1)):r="onreadystatechange"in u("script")?function(e){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),w(e)}}:function(e){setTimeout(x(e),0)}),e.exports={set:m,clear:h}},"2d00":function(e,t,n){var r,a,i=n("da84"),o=n("342f"),s=i.process,l=s&&s.versions,c=l&&l.v8;c?a=(r=c.split("."))[0]+r[1]:o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(a=r[1]),e.exports=a&&+a},"2dcb":function(e,t,n){var r=n("91e9")(Object.getPrototypeOf,Object);e.exports=r},"2e8c":function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n("c1df"))},"2ec1":function(e,t,n){var r=n("100e"),a=n("9aff");e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,s&&a(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,o)}return t}))}},"2fcc":function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},"304a":function(e,t,n){"use strict";function r(e){this.content=e}n.r(t),n.d(t,"ContentMatch",(function(){return A})),n.d(t,"DOMParser",(function(){return ee})),n.d(t,"DOMSerializer",(function(){return de})),n.d(t,"Fragment",(function(){return i})),n.d(t,"Mark",(function(){return u})),n.d(t,"MarkType",(function(){return Z})),n.d(t,"Node",(function(){return T})),n.d(t,"NodeRange",(function(){return S})),n.d(t,"NodeType",(function(){return W})),n.d(t,"ReplaceError",(function(){return d})),n.d(t,"ResolvedPos",(function(){return w})),n.d(t,"Schema",(function(){return X})),n.d(t,"Slice",(function(){return p})),r.prototype={constructor:r,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return-1==t?void 0:this.content[t+1]},update:function(e,t,n){var a=n&&n!=e?this.remove(n):this,i=a.find(e),o=a.content.slice();return-1==i?o.push(n||e,t):(o[i+1]=t,n&&(o[i]=n)),new r(o)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new r(n)},addToStart:function(e,t){return new r([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new r(n)},addBefore:function(e,t,n){var a=this.remove(t),i=a.content.slice(),o=a.find(e);return i.splice(-1==o?i.length:o,0,t,n),new r(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=r.from(e)).size?new r(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=r.from(e)).size?new r(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=r.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},get size(){return this.content.length>>1}},r.from=function(e){if(e instanceof r)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new r(t)};var a=r,i=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},o={firstChild:{configurable:!0},lastChild:{configurable:!0},childCount:{configurable:!0}};i.prototype.nodesBetween=function(e,t,n,r,a){void 0===r&&(r=0);for(var i=0,o=0;o<t;i++){var s=this.content[i],l=o+s.nodeSize;if(l>e&&!1!==n(s,r+o,a,i)&&s.content.size){var c=o+1;s.nodesBetween(Math.max(0,e-c),Math.min(s.content.size,t-c),n,r+c)}o=l}},i.prototype.descendants=function(e){this.nodesBetween(0,this.size,e)},i.prototype.textBetween=function(e,t,n,r){var a="",i=!0;return this.nodesBetween(e,t,(function(o,s){o.isText?(a+=o.text.slice(Math.max(e,s)-s,t-s),i=!n):o.isLeaf&&r?(a+=r,i=!n):!i&&o.isBlock&&(a+=n,i=!0)}),0),a},i.prototype.append=function(e){if(!e.size)return this;if(!this.size)return e;var t=this.lastChild,n=e.firstChild,r=this.content.slice(),a=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),a=1);a<e.content.length;a++)r.push(e.content[a]);return new i(r,this.size+e.size)},i.prototype.cut=function(e,t){if(null==t&&(t=this.size),0==e&&t==this.size)return this;var n=[],r=0;if(t>e)for(var a=0,o=0;o<t;a++){var s=this.content[a],l=o+s.nodeSize;l>e&&((o<e||l>t)&&(s=s.isText?s.cut(Math.max(0,e-o),Math.min(s.text.length,t-o)):s.cut(Math.max(0,e-o-1),Math.min(s.content.size,t-o-1))),n.push(s),r+=s.nodeSize),o=l}return new i(n,r)},i.prototype.cutByIndex=function(e,t){return e==t?i.empty:0==e&&t==this.content.length?this:new i(this.content.slice(e,t))},i.prototype.replaceChild=function(e,t){var n=this.content[e];if(n==t)return this;var r=this.content.slice(),a=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new i(r,a)},i.prototype.addToStart=function(e){return new i([e].concat(this.content),this.size+e.nodeSize)},i.prototype.addToEnd=function(e){return new i(this.content.concat(e),this.size+e.nodeSize)},i.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},o.firstChild.get=function(){return this.content.length?this.content[0]:null},o.lastChild.get=function(){return this.content.length?this.content[this.content.length-1]:null},o.childCount.get=function(){return this.content.length},i.prototype.child=function(e){var t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t},i.prototype.maybeChild=function(e){return this.content[e]},i.prototype.forEach=function(e){for(var t=0,n=0;t<this.content.length;t++){var r=this.content[t];e(r,n,t),n+=r.nodeSize}},i.prototype.findDiffStart=function(e,t){return void 0===t&&(t=0),function e(t,n,r){for(var a=0;;a++){if(a==t.childCount||a==n.childCount)return t.childCount==n.childCount?null:r;var i=t.child(a),o=n.child(a);if(i!=o){if(!i.sameMarkup(o))return r;if(i.isText&&i.text!=o.text){for(var s=0;i.text[s]==o.text[s];s++)r++;return r}if(i.content.size||o.content.size){var l=e(i.content,o.content,r+1);if(null!=l)return l}r+=i.nodeSize}else r+=i.nodeSize}}(this,e,t)},i.prototype.findDiffEnd=function(e,t,n){return void 0===t&&(t=this.size),void 0===n&&(n=e.size),function e(t,n,r,a){for(var i=t.childCount,o=n.childCount;;){if(0==i||0==o)return i==o?null:{a:r,b:a};var s=t.child(--i),l=n.child(--o),c=s.nodeSize;if(s!=l){if(!s.sameMarkup(l))return{a:r,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++,r--,a--;return{a:r,b:a}}if(s.content.size||l.content.size){var p=e(s.content,l.content,r-1,a-1);if(p)return p}r-=c,a-=c}else r-=c,a-=c}}(this,e,t,n)},i.prototype.findIndex=function(e,t){if(void 0===t&&(t=-1),0==e)return l(0,e);if(e==this.size)return l(this.content.length,e);if(e>this.size||e<0)throw new RangeError("Position "+e+" outside of fragment ("+this+")");for(var n=0,r=0;;n++){var a=r+this.child(n).nodeSize;if(a>=e)return a==e||t>0?l(n+1,a):l(n,r);r=a}},i.prototype.toString=function(){return"<"+this.toStringInner()+">"},i.prototype.toStringInner=function(){return this.content.join(", ")},i.prototype.toJSON=function(){return this.content.length?this.content.map((function(e){return e.toJSON()})):null},i.fromJSON=function(e,t){if(!t)return i.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new i(t.map(e.nodeFromJSON))},i.fromArray=function(e){if(!e.length)return i.empty;for(var t,n=0,r=0;r<e.length;r++){var a=e[r];n+=a.nodeSize,r&&a.isText&&e[r-1].sameMarkup(a)?(t||(t=e.slice(0,r)),t[t.length-1]=a.withText(t[t.length-1].text+a.text)):t&&t.push(a)}return new i(t||e,n)},i.from=function(e){if(!e)return i.empty;if(e instanceof i)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new i([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(i.prototype,o);var s={index:0,offset:0};function l(e,t){return s.index=e,s.offset=t,s}function c(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;var n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(!c(e[r],t[r]))return!1}else{for(var a in e)if(!(a in t)||!c(e[a],t[a]))return!1;for(var i in t)if(!(i in e))return!1}return!0}i.empty=new i([],0);var u=function(e,t){this.type=e,this.attrs=t};function d(e){var t=Error.call(this,e);return t.__proto__=d.prototype,t}u.prototype.addToSet=function(e){for(var t,n=!1,r=0;r<e.length;r++){var a=e[r];if(this.eq(a))return e;if(this.type.excludes(a.type))t||(t=e.slice(0,r));else{if(a.type.excludes(this.type))return e;!n&&a.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(a)}}return t||(t=e.slice()),n||t.push(this),t},u.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},u.prototype.isInSet=function(e){for(var t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1},u.prototype.eq=function(e){return this==e||this.type==e.type&&c(this.attrs,e.attrs)},u.prototype.toJSON=function(){var e={type:this.type.name};for(var t in this.attrs){e.attrs=this.attrs;break}return e},u.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)},u.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},u.setFrom=function(e){if(!e||0==e.length)return u.none;if(e instanceof u)return[e];var t=e.slice();return t.sort((function(e,t){return e.type.rank-t.type.rank})),t},u.none=[],d.prototype=Object.create(Error.prototype),d.prototype.constructor=d,d.prototype.name="ReplaceError";var p=function(e,t,n){this.content=e,this.openStart=t,this.openEnd=n},f={size:{configurable:!0}};function m(e,t,n){if(n.openStart>e.depth)throw new d("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new d("Inconsistent open depths");return function e(t,n,r,a){var o=t.index(a),s=t.node(a);if(o==n.index(a)&&a<t.depth-r.openStart){var l=e(t,n,r,a+1);return s.copy(s.content.replaceChild(o,l))}if(r.content.size){if(r.openStart||r.openEnd||t.depth!=a||n.depth!=a){var c=function(e,t){for(var n=t.depth-e.openStart,r=t.node(n).copy(e.content),a=n-1;a>=0;a--)r=t.node(a).copy(i.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(r,t),u=c.start,d=c.end;return y(s,function e(t,n,r,a,o){var s=t.depth>o&&_(t,n,o+1),l=a.depth>o&&_(r,a,o+1),c=[];return g(null,t,o,c),s&&l&&n.index(o)==r.index(o)?(h(s,l),v(y(s,e(t,n,r,a,o+1)),c)):(s&&v(y(s,b(t,n,o+1)),c),g(n,r,o,c),l&&v(y(l,b(r,a,o+1)),c)),g(a,null,o,c),new i(c)}(t,u,d,n,a))}var p=t.parent,f=p.content;return y(p,f.cut(0,t.parentOffset).append(r.content).append(f.cut(n.parentOffset)))}return y(s,b(t,n,a))}(e,t,n,0)}function h(e,t){if(!t.type.compatibleContent(e.type))throw new d("Cannot join "+t.type.name+" onto "+e.type.name)}function _(e,t,n){var r=e.node(n);return h(r,t.node(n)),r}function v(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 g(e,t,n,r){var a=(t||e).node(n),i=0,o=t?t.index(n):a.childCount;e&&(i=e.index(n),e.depth>n?i++:e.textOffset&&(v(e.nodeAfter,r),i++));for(var s=i;s<o;s++)v(a.child(s),r);t&&t.depth==n&&t.textOffset&&v(t.nodeBefore,r)}function y(e,t){if(!e.type.validContent(t))throw new d("Invalid content for node "+e.type.name);return e.copy(t)}function b(e,t,n){var r=[];return g(null,e,n,r),e.depth>n&&v(y(_(e,t,n+1),b(e,t,n+1)),r),g(t,null,n,r),new i(r)}f.size.get=function(){return this.content.size-this.openStart-this.openEnd},p.prototype.insertAt=function(e,t){var n=function e(t,n,r,a){var i=t.findIndex(n),o=i.index,s=i.offset,l=t.maybeChild(o);if(s==n||l.isText)return a&&!a.canReplace(o,o,r)?null:t.cut(0,n).append(r).append(t.cut(n));var c=e(l.content,n-s-1,r);return c&&t.replaceChild(o,l.copy(c))}(this.content,e+this.openStart,t,null);return n&&new p(n,this.openStart,this.openEnd)},p.prototype.removeBetween=function(e,t){return new p(function e(t,n,r){var a=t.findIndex(n),i=a.index,o=a.offset,s=t.maybeChild(i),l=t.findIndex(r),c=l.index,u=l.offset;if(o==n||s.isText){if(u!=r&&!t.child(c).isText)throw new RangeError("Removing non-flat range");return t.cut(0,n).append(t.cut(r))}if(i!=c)throw new RangeError("Removing non-flat range");return t.replaceChild(i,s.copy(e(s.content,n-o-1,r-o-1)))}(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)},p.prototype.eq=function(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd},p.prototype.toString=function(){return this.content+"("+this.openStart+","+this.openEnd+")"},p.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},p.fromJSON=function(e,t){if(!t)return p.empty;var n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new p(i.fromJSON(e,t.content),t.openStart||0,t.openEnd||0)},p.maxOpen=function(e,t){void 0===t&&(t=!0);for(var n=0,r=0,a=e.firstChild;a&&!a.isLeaf&&(t||!a.type.spec.isolating);a=a.firstChild)n++;for(var i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)r++;return new p(e,n,r)},Object.defineProperties(p.prototype,f),p.empty=new p(i.empty,0,0);var w=function(e,t,n){this.pos=e,this.path=t,this.depth=t.length/3-1,this.parentOffset=n},x={parent:{configurable:!0},doc:{configurable:!0},textOffset:{configurable:!0},nodeAfter:{configurable:!0},nodeBefore:{configurable:!0}};w.prototype.resolveDepth=function(e){return null==e?this.depth:e<0?this.depth+e:e},x.parent.get=function(){return this.node(this.depth)},x.doc.get=function(){return this.node(0)},w.prototype.node=function(e){return this.path[3*this.resolveDepth(e)]},w.prototype.index=function(e){return this.path[3*this.resolveDepth(e)+1]},w.prototype.indexAfter=function(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)},w.prototype.start=function(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1},w.prototype.end=function(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size},w.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]},w.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},x.textOffset.get=function(){return this.pos-this.path[this.path.length-1]},x.nodeAfter.get=function(){var e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;var n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r},x.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)},w.prototype.marks=function(){var e=this.parent,t=this.index();if(0==e.content.size)return u.none;if(this.textOffset)return e.child(t).marks;var n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){var a=n;n=r,r=a}for(var i=n.marks,o=0;o<i.length;o++)!1!==i[o].type.spec.inclusive||r&&i[o].isInSet(r.marks)||(i=i[o--].removeFromSet(i));return i},w.prototype.marksAcross=function(e){var t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;for(var n=t.marks,r=e.parent.maybeChild(e.index()),a=0;a<n.length;a++)!1!==n[a].type.spec.inclusive||r&&n[a].isInSet(r.marks)||(n=n[a--].removeFromSet(n));return n},w.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},w.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 S(this,e,n)},w.prototype.sameParent=function(e){return this.pos-this.parentOffset==e.pos-e.parentOffset},w.prototype.max=function(e){return e.pos>this.pos?e:this},w.prototype.min=function(e){return e.pos<this.pos?e:this},w.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},w.resolve=function(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");for(var n=[],r=0,a=t,i=e;;){var o=i.content.findIndex(a),s=o.index,l=o.offset,c=a-l;if(n.push(i,s,r+l),!c)break;if((i=i.child(s)).isText)break;a=c-1,r+=l+1}return new w(t,n,a)},w.resolveCached=function(e,t){for(var n=0;n<k.length;n++){var r=k[n];if(r.pos==t&&r.doc==e)return r}var a=k[D]=w.resolve(e,t);return D=(D+1)%M,a},Object.defineProperties(w.prototype,x);var k=[],D=0,M=12,S=function(e,t,n){this.$from=e,this.$to=t,this.depth=n},C={start:{configurable:!0},end:{configurable:!0},parent:{configurable:!0},startIndex:{configurable:!0},endIndex:{configurable:!0}};C.start.get=function(){return this.$from.before(this.depth+1)},C.end.get=function(){return this.$to.after(this.depth+1)},C.parent.get=function(){return this.$from.node(this.depth)},C.startIndex.get=function(){return this.$from.index(this.depth)},C.endIndex.get=function(){return this.$to.indexAfter(this.depth)},Object.defineProperties(S.prototype,C);var L=Object.create(null),T=function(e,t,n,r){this.type=e,this.attrs=t,this.content=n||i.empty,this.marks=r||u.none},E={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}};E.nodeSize.get=function(){return this.isLeaf?1:2+this.content.size},E.childCount.get=function(){return this.content.childCount},T.prototype.child=function(e){return this.content.child(e)},T.prototype.maybeChild=function(e){return this.content.maybeChild(e)},T.prototype.forEach=function(e){this.content.forEach(e)},T.prototype.nodesBetween=function(e,t,n,r){void 0===r&&(r=0),this.content.nodesBetween(e,t,n,r,this)},T.prototype.descendants=function(e){this.nodesBetween(0,this.content.size,e)},E.textContent.get=function(){return this.textBetween(0,this.content.size,"")},T.prototype.textBetween=function(e,t,n,r){return this.content.textBetween(e,t,n,r)},E.firstChild.get=function(){return this.content.firstChild},E.lastChild.get=function(){return this.content.lastChild},T.prototype.eq=function(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)},T.prototype.sameMarkup=function(e){return this.hasMarkup(e.type,e.attrs,e.marks)},T.prototype.hasMarkup=function(e,t,n){return this.type==e&&c(this.attrs,t||e.defaultAttrs||L)&&u.sameSet(this.marks,n||u.none)},T.prototype.copy=function(e){return void 0===e&&(e=null),e==this.content?this:new this.constructor(this.type,this.attrs,e,this.marks)},T.prototype.mark=function(e){return e==this.marks?this:new this.constructor(this.type,this.attrs,this.content,e)},T.prototype.cut=function(e,t){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))},T.prototype.slice=function(e,t,n){if(void 0===t&&(t=this.content.size),void 0===n&&(n=!1),e==t)return p.empty;var r=this.resolve(e),a=this.resolve(t),i=n?0:r.sharedDepth(t),o=r.start(i),s=r.node(i).content.cut(r.pos-o,a.pos-o);return new p(s,r.depth-i,a.depth-i)},T.prototype.replace=function(e,t,n){return m(this.resolve(e),this.resolve(t),n)},T.prototype.nodeAt=function(e){for(var t=this;;){var n=t.content.findIndex(e),r=n.index,a=n.offset;if(!(t=t.maybeChild(r)))return null;if(a==e||t.isText)return t;e-=a+1}},T.prototype.childAfter=function(e){var t=this.content.findIndex(e),n=t.index,r=t.offset;return{node:this.content.maybeChild(n),index:n,offset:r}},T.prototype.childBefore=function(e){if(0==e)return{node:null,index:0,offset:0};var t=this.content.findIndex(e),n=t.index,r=t.offset;if(r<e)return{node:this.content.child(n),index:n,offset:r};var a=this.content.child(n-1);return{node:a,index:n-1,offset:r-a.nodeSize}},T.prototype.resolve=function(e){return w.resolveCached(this,e)},T.prototype.resolveNoCache=function(e){return w.resolve(this,e)},T.prototype.rangeHasMark=function(e,t,n){var r=!1;return t>e&&this.nodesBetween(e,t,(function(e){return n.isInSet(e.marks)&&(r=!0),!r})),r},E.isBlock.get=function(){return this.type.isBlock},E.isTextblock.get=function(){return this.type.isTextblock},E.inlineContent.get=function(){return this.type.inlineContent},E.isInline.get=function(){return this.type.isInline},E.isText.get=function(){return this.type.isText},E.isLeaf.get=function(){return this.type.isLeaf},E.isAtom.get=function(){return this.type.isAtom},T.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()+")"),j(this.marks,e)},T.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},T.prototype.canReplace=function(e,t,n,r,a){void 0===n&&(n=i.empty),void 0===r&&(r=0),void 0===a&&(a=n.childCount);var o=this.contentMatchAt(e).matchFragment(n,r,a),s=o&&o.matchFragment(this.content,t);if(!s||!s.validEnd)return!1;for(var l=r;l<a;l++)if(!this.type.allowsMarks(n.child(l).marks))return!1;return!0},T.prototype.canReplaceWith=function(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;var a=this.contentMatchAt(e).matchType(n),i=a&&a.matchFragment(this.content,t);return!!i&&i.validEnd},T.prototype.canAppend=function(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)},T.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()}))},T.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},T.fromJSON=function(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");var n=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}var r=i.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)},Object.defineProperties(T.prototype,E);var O=function(e){function t(t,n,r,a){if(e.call(this,t,n,null,a),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={textContent:{configurable:!0},nodeSize:{configurable:!0}};return t.prototype.toString=function(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):j(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}(T);function j(e,t){for(var n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}var A=function(e){this.validEnd=e,this.next=[],this.wrapCache=[]},P={inlineContent:{configurable:!0},defaultType:{configurable:!0},edgeCount:{configurable:!0}};A.parse=function(e,t){var n=new Y(e,t);if(null==n.next)return A.empty;var r=I(n);n.next&&n.err("Unexpected trailing text");var a=function(e){var t=Object.create(null);return function n(r){var a=[];r.forEach((function(t){e[t].forEach((function(t){var n=t.term,r=t.to;if(n){var i=a.indexOf(n),o=i>-1&&a[i+1];B(e,r).forEach((function(e){o||a.push(n,o=[]),-1==o.indexOf(e)&&o.push(e)}))}}))}));for(var i=t[r.join(",")]=new A(r.indexOf(e.length-1)>-1),o=0;o<a.length;o+=2){var s=a[o+1].sort(H);i.next.push(a[o],t[s.join(",")]||n(s))}return i}(B(e,0))}(function(e){var t=[[]];return a(function e(t,i){if("choice"==t.type)return t.exprs.reduce((function(t,n){return t.concat(e(n,i))}),[]);if("seq"==t.type)for(var o=0;;o++){var s=e(t.exprs[o],i);if(o==t.exprs.length-1)return s;a(s,i=n())}else{if("star"==t.type){var l=n();return r(i,l),a(e(t.expr,l),l),[r(l)]}if("plus"==t.type){var c=n();return a(e(t.expr,i),c),a(e(t.expr,c),c),[r(c)]}if("opt"==t.type)return[r(i)].concat(e(t.expr,i));if("range"==t.type){for(var u=i,d=0;d<t.min;d++){var p=n();a(e(t.expr,u),p),u=p}if(-1==t.max)a(e(t.expr,u),u);else for(var f=t.min;f<t.max;f++){var m=n();r(u,m),a(e(t.expr,u),m),u=m}return[r(u)]}if("name"==t.type)return[r(i,null,t.value)]}}(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){var a={term:r,to:n};return t[e].push(a),a}function a(e,t){e.forEach((function(e){return e.to=t}))}}(r));return function(e,t){for(var n=0,r=[e];n<r.length;n++){for(var a=r[n],i=!a.validEnd,o=[],s=0;s<a.next.length;s+=2){var l=a.next[s],c=a.next[s+1];o.push(l.name),!i||l.isText||l.hasRequiredAttrs()||(i=!1),-1==r.indexOf(c)&&r.push(c)}i&&t.err("Only non-generatable nodes ("+o.join(", ")+") in a required position")}}(a,n),a},A.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},A.prototype.matchFragment=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.childCount);for(var r=this,a=t;r&&a<n;a++)r=r.matchType(e.child(a).type);return r},P.inlineContent.get=function(){var e=this.next[0];return!!e&&e.isInline},P.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}},A.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},A.prototype.fillBefore=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=0);var r=[this];return function a(o,s){var l=o.matchFragment(e,n);if(l&&(!t||l.validEnd))return i.from(s.map((function(e){return e.createAndFill()})));for(var c=0;c<o.next.length;c+=2){var u=o.next[c],d=o.next[c+1];if(!u.isText&&!u.hasRequiredAttrs()&&-1==r.indexOf(d)){r.push(d);var p=a(d,s.concat(u));if(p)return p}}}(this,[])},A.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},A.prototype.computeWrapping=function(e){for(var t=Object.create(null),n=[{match:this,type:null,via:null}];n.length;){var r=n.shift(),a=r.match;if(a.matchType(e)){for(var i=[],o=r;o.type;o=o.via)i.push(o.type);return i.reverse()}for(var s=0;s<a.next.length;s+=2){var l=a.next[s];l.isLeaf||l.hasRequiredAttrs()||l.name in t||r.type&&!a.next[s+1].validEnd||(n.push({match:l.contentMatch,type:l,via:r}),t[l.name]=!0)}}},P.edgeCount.get=function(){return this.next.length>>1},A.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]}},A.prototype.toString=function(){var e=[];return function t(n){e.push(n);for(var r=1;r<n.next.length;r+=2)-1==e.indexOf(n.next[r])&&t(n.next[r])}(this),e.map((function(t,n){for(var r=n+(t.validEnd?"*":" ")+" ",a=0;a<t.next.length;a+=2)r+=(a?", ":"")+t.next[a].name+"->"+e.indexOf(t.next[a+1]);return r})).join("\n")},Object.defineProperties(A.prototype,P),A.empty=new A(!0);var Y=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()},$={next:{configurable:!0}};function I(e){var t=[];do{t.push(N(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function N(e){var t=[];do{t.push(z(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function z(e){for(var t=function(e){if(e.eat("(")){var t=I(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){var n=function(e,t){var n=e.nodeTypes,r=n[t];if(r)return[r];var a=[];for(var i in n){var o=n[i];o.groups.indexOf(t)>-1&&a.push(o)}return 0==a.length&&e.err("No node type or group '"+t+"' found"),a}(e,e.next).map((function(t){return null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}}));return e.pos++,1==n.length?n[0]:{type:"choice",exprs:n}}e.err("Unexpected token '"+e.next+"'")}(e);;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=R(e,t)}return t}function F(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");var t=Number(e.next);return e.pos++,t}function R(e,t){var n=F(e),r=n;return e.eat(",")&&(r="}"!=e.next?F(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function H(e,t){return t-e}function B(e,t){var n=[];return function t(r){var a=e[r];if(1==a.length&&!a[0].term)return t(a[0].to);n.push(r);for(var i=0;i<a.length;i++){var o=a[i],s=o.term,l=o.to;s||-1!=n.indexOf(l)||t(l)}}(t),n.sort(H)}function q(e){var t=Object.create(null);for(var n in e){var r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function U(e,t){var n=Object.create(null);for(var r in e){var a=t&&t[r];if(void 0===a){var i=e[r];if(!i.hasDefault)throw new RangeError("No value supplied for attribute "+r);a=i.default}n[r]=a}return n}function V(e){var t=Object.create(null);if(e)for(var n in e)t[n]=new G(e[n]);return t}$.next.get=function(){return this.tokens[this.pos]},Y.prototype.eat=function(e){return this.next==e&&(this.pos++||!0)},Y.prototype.err=function(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")},Object.defineProperties(Y.prototype,$);var W=function(e,t,n){this.name=e,this.schema=t,this.spec=n,this.groups=n.group?n.group.split(" "):[],this.attrs=V(n.attrs),this.defaultAttrs=q(this.attrs),this.contentMatch=null,this.markSet=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e},K={isInline:{configurable:!0},isTextblock:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0}};K.isInline.get=function(){return!this.isBlock},K.isTextblock.get=function(){return this.isBlock&&this.inlineContent},K.isLeaf.get=function(){return this.contentMatch==A.empty},K.isAtom.get=function(){return this.isLeaf||this.spec.atom},W.prototype.hasRequiredAttrs=function(){for(var e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1},W.prototype.compatibleContent=function(e){return this==e||this.contentMatch.compatible(e.contentMatch)},W.prototype.computeAttrs=function(e){return!e&&this.defaultAttrs?this.defaultAttrs:U(this.attrs,e)},W.prototype.create=function(e,t,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new T(this,this.computeAttrs(e),i.from(t),u.setFrom(n))},W.prototype.createChecked=function(e,t,n){if(t=i.from(t),!this.validContent(t))throw new RangeError("Invalid content for node "+this.name);return new T(this,this.computeAttrs(e),t,u.setFrom(n))},W.prototype.createAndFill=function(e,t,n){if(e=this.computeAttrs(e),(t=i.from(t)).size){var r=this.contentMatch.fillBefore(t);if(!r)return null;t=r.append(t)}var a=this.contentMatch.matchFragment(t).fillBefore(i.empty,!0);return a?new T(this,e,t.append(a),u.setFrom(n)):null},W.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},W.prototype.allowsMarkType=function(e){return null==this.markSet||this.markSet.indexOf(e)>-1},W.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},W.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:u.empty:e},W.compile=function(e,t){var n=Object.create(null);e.forEach((function(e,r){return n[e]=new W(e,t,r)}));var r=t.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(var a in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n},Object.defineProperties(W.prototype,K);var G=function(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default},J={isRequired:{configurable:!0}};J.isRequired.get=function(){return!this.hasDefault},Object.defineProperties(G.prototype,J);var Z=function(e,t,n,r){this.name=e,this.schema=n,this.spec=r,this.attrs=V(r.attrs),this.rank=t,this.excluded=null;var a=q(this.attrs);this.instance=a&&new u(this,a)};Z.prototype.create=function(e){return!e&&this.instance?this.instance:new u(this,U(this.attrs,e))},Z.compile=function(e,t){var n=Object.create(null),r=0;return e.forEach((function(e,a){return n[e]=new Z(e,r++,t,a)})),n},Z.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},Z.prototype.isInSet=function(e){for(var t=0;t<e.length;t++)if(e[t].type==this)return e[t]},Z.prototype.excludes=function(e){return this.excluded.indexOf(e)>-1};var X=function(e){for(var t in this.spec={},e)this.spec[t]=e[t];this.spec.nodes=a.from(e.nodes),this.spec.marks=a.from(e.marks),this.nodes=W.compile(this.spec.nodes,this),this.marks=Z.compile(this.spec.marks,this);var n=Object.create(null);for(var r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");var i=this.nodes[r],o=i.spec.content||"",s=i.spec.marks;i.contentMatch=n[o]||(n[o]=A.parse(o,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.markSet="_"==s?null:s?Q(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?[]:Q(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 Q(e,t){for(var n=[],r=0;r<t.length;r++){var a=t[r],i=e.marks[a],o=i;if(i)n.push(i);else for(var s in e.marks){var l=e.marks[s];("_"==a||l.spec.group&&l.spec.group.split(" ").indexOf(a)>-1)&&n.push(o=l)}if(!o)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}X.prototype.node=function(e,t,n,r){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof W))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,n,r)},X.prototype.text=function(e,t){var n=this.nodes.text;return new O(n,n.defaultAttrs,e,u.setFrom(t))},X.prototype.mark=function(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)},X.prototype.nodeFromJSON=function(e){return T.fromJSON(this,e)},X.prototype.markFromJSON=function(e){return u.fromJSON(this,e)},X.prototype.nodeType=function(e){var t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t};var ee=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)}))};ee.prototype.parse=function(e,t){void 0===t&&(t={});var n=new oe(this,t,!1);return n.addAll(e,null,t.from,t.to),n.finish()},ee.prototype.parseSlice=function(e,t){void 0===t&&(t={});var n=new oe(this,t,!0);return n.addAll(e,null,t.from,t.to),p.maxOpen(n.finish())},ee.prototype.matchTag=function(e,t){for(var n=0;n<this.tags.length;n++){var r=this.tags[n];if(le(e,r.tag)&&(void 0===r.namespace||e.namespaceURI==r.namespace)&&(!r.context||t.matchesContext(r.context))){if(r.getAttrs){var a=r.getAttrs(e);if(!1===a)continue;r.attrs=a}return r}}},ee.prototype.matchStyle=function(e,t,n){for(var r=0;r<this.styles.length;r++){var a=this.styles[r];if(!(0!=a.style.indexOf(e)||a.context&&!n.matchesContext(a.context)||a.style.length>e.length&&(61!=a.style.charCodeAt(e.length)||a.style.slice(e.length+1)!=t))){if(a.getAttrs){var i=a.getAttrs(t);if(!1===i)continue;a.attrs=i}return a}}},ee.schemaRules=function(e){var t=[];function n(e){for(var n=null==e.priority?50:e.priority,r=0;r<t.length;r++){var a=t[r];if((null==a.priority?50:a.priority)<n)break}t.splice(r,0,e)}var r,a=function(t){var r=e.marks[t].spec.parseDOM;r&&r.forEach((function(e){n(e=ce(e)),e.mark=t}))};for(var i in e.marks)a(i);for(var o in e.nodes)r=void 0,(r=e.nodes[o].spec.parseDOM)&&r.forEach((function(e){n(e=ce(e)),e.node=o}));return t},ee.fromSchema=function(e){return e.cached.domParser||(e.cached.domParser=new ee(e,ee.schemaRules(e)))};var te={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},ne={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},re={ol:!0,ul:!0};function ae(e){return(e?1:0)|("full"===e?2:0)}var ie=function(e,t,n,r,a,i,o){this.type=e,this.attrs=t,this.solid=a,this.match=i||(4&o?null:e.contentMatch),this.options=o,this.content=[],this.marks=n,this.activeMarks=u.none,this.pendingMarks=r};ie.prototype.findWrapping=function(e){if(!this.match){if(!this.type)return[];var t=this.type.contentMatch.fillBefore(i.from(e));if(!t){var n,r=this.type.contentMatch;return(n=r.findWrapping(e.type))?(this.match=r,n):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)},ie.prototype.finish=function(e){if(!(1&this.options)){var t,n=this.content[this.content.length-1];n&&n.isText&&(t=/[ \t\r\n\u000c]+$/.exec(n.text))&&(n.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length)))}var r=i.from(this.content);return!e&&this.match&&(r=r.append(this.match.fillBefore(i.empty,!0))),this.type?this.type.create(this.attrs,r,this.marks):r},ie.prototype.applyPending=function(e){for(var t=0,n=this.pendingMarks;t<n.length;t++){var r=n[t];(this.type?this.type.allowsMarkType(r.type):ue(r.type,e))&&!r.isInSet(this.activeMarks)&&(this.activeMarks=r.addToSet(this.activeMarks),this.pendingMarks=r.removeFromSet(this.pendingMarks))}};var oe=function(e,t,n){this.parser=e,this.options=t,this.isOpen=n;var r,a=t.topNode,i=ae(t.preserveWhitespace)|(n?4:0);r=a?new ie(a.type,a.attrs,u.none,u.none,!0,t.topMatch||a.type.contentMatch,i):new ie(n?null:e.schema.topNodeType,null,u.none,u.none,!0,null,i),this.nodes=[r],this.open=0,this.find=t.findPositions,this.needsBlock=!1},se={top:{configurable:!0},currentPos:{configurable:!0}};function le(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function ce(e){var t={};for(var n in e)t[n]=e[n];return t}function ue(e,t){var n=t.schema.nodes,r=function(r){var a=n[r];if(a.allowsMarkType(e)){var i=[],o=function(e){i.push(e);for(var n=0;n<e.edgeCount;n++){var r=e.edge(n),a=r.type,s=r.next;if(a==t)return!0;if(i.indexOf(s)<0&&o(s))return!0}};return o(a.contentMatch)?{v:!0}:void 0}};for(var a in n){var i=r(a);if(i)return i.v}}se.top.get=function(){return this.nodes[this.open]},oe.prototype.addDOM=function(e){if(3==e.nodeType)this.addTextNode(e);else if(1==e.nodeType){var t=e.getAttribute("style"),n=t?this.readStyles(function(e){for(var t,n=/\s*([\w-]+)\s*:\s*([^;]+)/g,r=[];t=n.exec(e);)r.push(t[1],t[2].trim());return r}(t)):null,r=this.top;if(null!=n)for(var a=0;a<n.length;a++)this.addPendingMark(n[a]);if(this.addElement(e),null!=n)for(var i=0;i<n.length;i++)this.removePendingMark(n[i],r)}},oe.prototype.addTextNode=function(e){var t=e.nodeValue,n=this.top;if((n.type?n.type.inlineContent:n.content.length&&n.content[0].isInline)||/[^ \t\r\n\u000c]/.test(t)){if(1&n.options)2&n.options||(t=t.replace(/\r?\n|\r/g," "));else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){var r=n.content[n.content.length-1],a=e.previousSibling;(!r||a&&"BR"==a.nodeName||r.isText&&/[ \t\r\n\u000c]$/.test(r.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)},oe.prototype.addElement=function(e){var t=e.nodeName.toLowerCase();re.hasOwnProperty(t)&&function(e){for(var t=e.firstChild,n=null;t;t=t.nextSibling){var r=1==t.nodeType?t.nodeName.toLowerCase():null;r&&re.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):"li"==r?n=t:r&&(n=null)}}(e);var n=this.options.ruleFromNode&&this.options.ruleFromNode(e)||this.parser.matchTag(e,this);if(n?n.ignore:ne.hasOwnProperty(t))this.findInside(e);else if(!n||n.skip){n&&n.skip.nodeType&&(e=n.skip);var r,a=this.top,i=this.needsBlock;if(te.hasOwnProperty(t))r=!0,a.type||(this.needsBlock=!0);else if(!e.firstChild)return void this.leafFallback(e);this.addAll(e),r&&this.sync(a),this.needsBlock=i}else this.addElementByRule(e,n)},oe.prototype.leafFallback=function(e){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"))},oe.prototype.readStyles=function(e){for(var t=u.none,n=0;n<e.length;n+=2){var r=this.parser.matchStyle(e[n],e[n+1],this);if(r){if(r.ignore)return null;t=this.parser.schema.marks[r.mark].create(r.attrs).addToSet(t)}}return t},oe.prototype.addElementByRule=function(e,t){var n,r,a,i=this;t.node?(r=this.parser.schema.nodes[t.node]).isLeaf?this.insertNode(r.create(t.attrs))||this.leafFallback(e):n=this.enter(r,t.attrs,t.preserveWhitespace):(a=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(a));var o=this.top;if(r&&r.isLeaf)this.findInside(e);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach((function(e){return i.insertNode(e)}));else{var s=t.contentElement;"string"==typeof s?s=e.querySelector(s):"function"==typeof s&&(s=s(e)),s||(s=e),this.findAround(e,s,!0),this.addAll(s,n)}n&&(this.sync(o),this.open--),a&&this.removePendingMark(a,o)},oe.prototype.addAll=function(e,t,n,r){for(var a=n||0,i=n?e.childNodes[n]:e.firstChild,o=null==r?null:e.childNodes[r];i!=o;i=i.nextSibling,++a)this.findAtPoint(e,a),this.addDOM(i),t&&te.hasOwnProperty(i.nodeName.toLowerCase())&&this.sync(t);this.findAtPoint(e,a)},oe.prototype.findPlace=function(e){for(var t,n,r=this.open;r>=0;r--){var a=this.nodes[r],i=a.findWrapping(e);if(i&&(!t||t.length>i.length)&&(t=i,n=a,!i.length))break;if(a.solid)break}if(!t)return!1;this.sync(n);for(var o=0;o<t.length;o++)this.enterInner(t[o],null,!1);return!0},oe.prototype.insertNode=function(e){if(e.isInline&&this.needsBlock&&!this.top.type){var t=this.textblockFromContext();t&&this.enterInner(t)}if(this.findPlace(e)){this.closeExtra();var n=this.top;n.applyPending(e.type),n.match&&(n.match=n.match.matchType(e.type));for(var r=n.activeMarks,a=0;a<e.marks.length;a++)n.type&&!n.type.allowsMarkType(e.marks[a].type)||(r=e.marks[a].addToSet(r));return n.content.push(e.mark(r)),!0}return!1},oe.prototype.enter=function(e,t,n){var r=this.findPlace(e.create(t));return r&&this.enterInner(e,t,!0,n),r},oe.prototype.enterInner=function(e,t,n,r){this.closeExtra();var a=this.top;a.applyPending(e),a.match=a.match&&a.match.matchType(e,t);var i=null==r?-5&a.options:ae(r);4&a.options&&0==a.content.length&&(i|=4),this.nodes.push(new ie(e,t,a.activeMarks,a.pendingMarks,n,null,i)),this.open++},oe.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}},oe.prototype.finish=function(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)},oe.prototype.sync=function(e){for(var t=this.open;t>=0;t--)if(this.nodes[t]==e)return void(this.open=t)},se.currentPos.get=function(){this.closeExtra();for(var e=0,t=this.open;t>=0;t--){for(var n=this.nodes[t].content,r=n.length-1;r>=0;r--)e+=n[r].nodeSize;t&&e++}return e},oe.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)},oe.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)},oe.prototype.findAround=function(e,t,n){if(e!=t&&this.find)for(var r=0;r<this.find.length;r++)null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)},oe.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))},oe.prototype.matchesContext=function(e){var t=this;if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);var n=e.split("/"),r=this.options.context,a=!(this.isOpen||r&&r.parent.type!=this.nodes[0].type),i=-(r?r.depth+1:0)+(a?0:1),o=function(e,s){for(;e>=0;e--){var l=n[e];if(""==l){if(e==n.length-1||0==e)continue;for(;s>=i;s--)if(o(e-1,s))return!0;return!1}var c=s>0||0==s&&a?t.nodes[s].type:r&&s>=i?r.node(s-i).type:null;if(!c||c.name!=l&&-1==c.groups.indexOf(l))return!1;s--}return!0};return o(n.length-1,this.open)},oe.prototype.textblockFromContext=function(){var e=this.options.context;if(e)for(var t=e.depth;t>=0;t--){var n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(var r in this.parser.schema.nodes){var a=this.parser.schema.nodes[r];if(a.isTextblock&&a.defaultAttrs)return a}},oe.prototype.addPendingMark=function(e){this.top.pendingMarks=e.addToSet(this.top.pendingMarks)},oe.prototype.removePendingMark=function(e,t){for(var n=this.open;n>=0;n--){var r=this.nodes[n];if(r.pendingMarks.lastIndexOf(e)>-1?r.pendingMarks=e.removeFromSet(r.pendingMarks):r.activeMarks=e.removeFromSet(r.activeMarks),r==t)break}},Object.defineProperties(oe.prototype,se);var de=function(e,t){this.nodes=e||{},this.marks=t||{}};function pe(e){var t={};for(var n in e){var r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function fe(e){return e.document||window.document}de.prototype.serializeFragment=function(e,t,n){var r=this;void 0===t&&(t={}),n||(n=fe(t).createDocumentFragment());var a=n,i=null;return e.forEach((function(e){if(i||e.marks.length){i||(i=[]);for(var n=0,o=0;n<i.length&&o<e.marks.length;){var s=e.marks[o];if(r.marks[s.type.name]){if(!s.eq(i[n])||!1===s.type.spec.spanning)break;n+=2,o++}else o++}for(;n<i.length;)a=i.pop(),i.pop();for(;o<e.marks.length;){var l=e.marks[o++],c=r.serializeMark(l,e.isInline,t);c&&(i.push(l,a),a.appendChild(c.dom),a=c.contentDOM||c.dom)}}a.appendChild(r.serializeNode(e,t))})),n},de.prototype.serializeNode=function(e,t){void 0===t&&(t={});var n=de.renderSpec(fe(t),this.nodes[e.type.name](e)),r=n.dom,a=n.contentDOM;if(a){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");t.onContent?t.onContent(e,a,t):this.serializeFragment(e.content,t,a)}return r},de.prototype.serializeNodeAndMarks=function(e,t){void 0===t&&(t={});for(var n=this.serializeNode(e,t),r=e.marks.length-1;r>=0;r--){var a=this.serializeMark(e.marks[r],e.isInline,t);a&&((a.contentDOM||a.dom).appendChild(n),n=a.dom)}return n},de.prototype.serializeMark=function(e,t,n){void 0===n&&(n={});var r=this.marks[e.type.name];return r&&de.renderSpec(fe(n),r(e,t))},de.renderSpec=function(e,t,n){if(void 0===n&&(n=null),"string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};var r=t[0],a=r.indexOf(" ");a>0&&(n=r.slice(0,a),r=r.slice(a+1));var i=null,o=n?e.createElementNS(n,r):e.createElement(r),s=t[1],l=1;if(s&&"object"==typeof s&&null==s.nodeType&&!Array.isArray(s))for(var c in l=2,s)if(null!=s[c]){var u=c.indexOf(" ");u>0?o.setAttributeNS(c.slice(0,u),c.slice(u+1),s[c]):o.setAttribute(c,s[c])}for(var d=l;d<t.length;d++){var p=t[d];if(0===p){if(d<t.length-1||d>l)throw new RangeError("Content hole must be the only child of its parent node");return{dom:o,contentDOM:o}}var f=de.renderSpec(e,p,n),m=f.dom,h=f.contentDOM;if(o.appendChild(m),h){if(i)throw new RangeError("Multiple content holes");i=h}}return{dom:o,contentDOM:i}},de.fromSchema=function(e){return e.cached.domSerializer||(e.cached.domSerializer=new de(this.nodesFromSchema(e),this.marksFromSchema(e)))},de.nodesFromSchema=function(e){var t=pe(e.nodes);return t.text||(t.text=function(e){return e.text}),t},de.marksFromSchema=function(e){return pe(e.marks)}},"30c9":function(e,t,n){var r=n("9520"),a=n("b218");e.exports=function(e){return null!=e&&a(e.length)&&!r(e)}},"32b3":function(e,t,n){var r=n("872a"),a=n("9638"),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var o=e[t];i.call(e,t)&&a(o,n)&&(void 0!==n||t in e)||r(e,t,n)}},"342f":function(e,t,n){var r=n("d066");e.exports=r("navigator","userAgent")||""},"34ac":function(e,t,n){var r=n("9520"),a=n("1368"),i=n("1a8c"),o=n("dc57"),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||a(e))&&(r(e)?p:s).test(o(e))}},"35a1":function(e,t,n){var r=n("f5df"),a=n("3f8c"),i=n("b622")("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||a[r(e)]}},3698:function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},3729:function(e,t,n){var r=n("9e69"),a=n("00fd"),i=n("29f3"),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?a(e):i(e)}},"37c3":function(e,t,n){e.exports=function(){"use strict";var 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,n){var r={};return r.directiveName=t,r.eventName=n,r.bind=function(r,a,i){var o=void 0!==console.error?console.error:console.log,s=null,l=void 0;if("function"!=typeof a.value)if("object"===e(a.value)&&a.value.hasOwnProperty("handler")&&"function"==typeof a.value.handler)s=a.value.handler,delete(l=Object.assign({},a.value)).handler;else{var c="["+t+"]: provided expression '"+a.expression+"' must be a function or an object containing a property named 'handler' that is a function.";i.context.name&&(c+="\nFound in component '"+i.context.name+"'"),o(c)}else s=a.value;var u=function(e){r.contains(e.target)||r===e.target||s(e,r,l)};r["__vueEventOutside__"+n]=u,document.addEventListener(n,u)},r.unbind=function(e,t){document.removeEventListener(n,e["__vueEventOutside__"+n]),e["__vueEventOutside__"+n]=null},r},n={directiveName:"event-outside",bind:function(t,n,r){var a=void 0!==console.error?console.error:console.log,i=void 0;if("object"!==e(n.value)||void 0===n.value.name||"string"!=typeof n.value.name||void 0===n.value.handler||"function"!=typeof n.value.handler){var o="[v-event-outside]: provided expression '"+n.expression+'\' must be an object containing a "name" string and a "handler" function.';return r.context.name&&(o+="\nFound in component '"+r.context.name+"'"),void a(o)}if(delete(i=Object.assign({},n.value)).name,delete i.handler,n.modifiers.jquery&&void 0===window.$&&void 0===window.jQuery){var s="[v-event-outside]: jQuery is not present in window.";return r.context.name&&(s+="\nFound in component '"+r.context.name+"'"),void a(s)}var l=function(e){t.contains(e.target)||t===e.target||n.value.handler(e,t,i)};t["__vueEventOutside__"+n.value.name]=l,n.modifiers.jquery?jQuery(document).on(n.value.name,l):document.addEventListener(n.value.name,l)},unbind:function(e,t){t.modifiers.jquery?jQuery(document).off(t.value.name,e["__vueEventOutside__"+t.value.name]):document.removeEventListener(t.value.name,e["__vueEventOutside__"+t.value.name]),e["__vueEventOutside__"+t.value.name]=null}},r=t("click-outside","click"),a=t("dblclick-outside","dblclick"),i=t("focus-outside","focusin"),o=t("blur-outside","focusout"),s=t("mousemove-outside","mousemove"),l=t("mousedown-outside","mousedown"),c=t("mouseup-outside","mouseup"),u=t("mouseover-outside","mouseover"),d=t("mouseout-outside","mouseout"),p=t("change-outside","change"),f=t("select-outside","select"),m=t("submit-outside","submit"),h=t("keydown-outside","keydown"),_=t("keypress-outside","keypress"),v=t("keyup-outside","keyup"),g={install:function(e){e.directive(r.directiveName,r),e.directive(a.directiveName,a),e.directive(i.directiveName,i),e.directive(o.directiveName,o),e.directive(s.directiveName,s),e.directive(l.directiveName,l),e.directive(c.directiveName,c),e.directive(u.directiveName,u),e.directive(d.directiveName,d),e.directive(p.directiveName,p),e.directive(f.directiveName,f),e.directive(m.directiveName,m),e.directive(h.directiveName,h),e.directive(_.directiveName,_),e.directive(_.directiveName,_),e.directive(v.directiveName,v),e.directive(n.directiveName,n)}};return"undefined"!=typeof window&&window.Vue&&window.Vue.use(g),g}()},"37e8":function(e,t,n){var r=n("83ab"),a=n("9bf2"),i=n("825a"),o=n("df75");e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=o(t),s=r.length,l=0;s>l;)a.f(e,n=r[l++],t[n]);return e}},3886:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n("c1df"))},"39a6":function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("c1df"))},"39bd":function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function r(e,t,n,r){var a="";if(t)switch(n){case"s":a="काही सेकंद";break;case"ss":a="%d सेकंद";break;case"m":a="एक मिनिट";break;case"mm":a="%d मिनिटे";break;case"h":a="एक तास";break;case"hh":a="%d तास";break;case"d":a="एक दिवस";break;case"dd":a="%d दिवस";break;case"M":a="एक महिना";break;case"MM":a="%d महिने";break;case"y":a="एक वर्ष";break;case"yy":a="%d वर्षे"}else switch(n){case"s":a="काही सेकंदां";break;case"ss":a="%d सेकंदां";break;case"m":a="एका मिनिटा";break;case"mm":a="%d मिनिटां";break;case"h":a="एका तासा";break;case"hh":a="%d तासां";break;case"d":a="एका दिवसा";break;case"dd":a="%d दिवसां";break;case"M":a="एका महिन्या";break;case"MM":a="%d महिन्यां";break;case"y":a="एका वर्षा";break;case"yy":a="%d वर्षां"}return a.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n("c1df"))},"3a39":function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n("c1df"))},"3a6c":function(e,t,n){!function(e){"use strict";e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n("c1df"))},"3b1b":function(e,t,n){!function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("c1df"))},"3b4a":function(e,t,n){var r=n("0b07"),a=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=a},"3bbe":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3c0d":function(e,t,n){!function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),r=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],a=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function i(e){return e>1&&e<5&&1!=~~(e/10)}function o(e,t,n,r){var a=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?a+(i(e)?"sekundy":"sekund"):a+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?a+(i(e)?"minuty":"minut"):a+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?a+(i(e)?"hodiny":"hodin"):a+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?a+(i(e)?"dny":"dní"):a+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?a+(i(e)?"měsíce":"měsíců"):a+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?a+(i(e)?"roky":"let"):a+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},"3ca3":function(e,t,n){"use strict";var r=n("6547").charAt,a=n("69f3"),i=n("7dd0"),o=a.set,s=a.getterFor("String Iterator");i(String,"String",(function(e){o(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=s(this),n=t.string,a=t.index;return a>=n.length?{value:void 0,done:!0}:(e=r(n,a),t.index+=e.length,{value:e,done:!1})}))},"3ce4":function(e,t,n){"use strict";var r=n("1020"),a=n("073e");function i(e,t,n){var i,s=r.configure({}),l=(n||{}).prefix;if("string"!=typeof e)throw a("Expected `string` for name, got `%s`",e);if(!r.getLanguage(e))throw a("Unknown language: `%s` is not registered",e);if("string"!=typeof t)throw a("Expected `string` for value, got `%s`",t);if(null==l&&(l="hljs-"),r.configure({__emitter:o,classPrefix:l}),i=r.highlight(e,t,!0),r.configure(s||{}),i.errorRaised)throw i.errorRaised;return{relevance:i.relevance,language:i.language,value:i.emitter.rootNode.children}}function o(e){this.options=e,this.rootNode={children:[]},this.stack=[this.rootNode]}function s(){}t.highlight=i,t.highlightAuto=function(e,t){var n,o,s,l,c=t||{},u=c.subset||r.listLanguages(),d=c.prefix,p=u.length,f=-1;if(null==d&&(d="hljs-"),"string"!=typeof e)throw a("Expected `string` for value, got `%s`",e);for(o={relevance:0,language:null,value:[]},n={relevance:0,language:null,value:[]};++f<p;)l=u[f],r.getLanguage(l)&&((s=i(l,e,t)).language=l,s.relevance>o.relevance&&(o=s),s.relevance>n.relevance&&(o=n,n=s));return o.language&&(n.secondBest=o),n},t.registerLanguage=function(e,t){r.registerLanguage(e,t)},t.listLanguages=function(){return r.listLanguages()},t.registerAlias=function(e,t){var n,a=e;for(n in t&&((a={})[e]=t),a)r.registerAliases(a[n],{languageName:n})},o.prototype.addText=function(e){var t,n,r=this.stack;""!==e&&(t=r[r.length-1],(n=t.children[t.children.length-1])&&"text"===n.type?n.value+=e:t.children.push({type:"text",value:e}))},o.prototype.addKeyword=function(e,t){this.openNode(t),this.addText(e),this.closeNode()},o.prototype.addSublanguage=function(e,t){var n=this.stack,r=n[n.length-1],a=e.rootNode.children,i=t?{type:"element",tagName:"span",properties:{className:[t]},children:a}:a;r.children=r.children.concat(i)},o.prototype.openNode=function(e){var t=this.stack,n=this.options.classPrefix+e,r=t[t.length-1],a={type:"element",tagName:"span",properties:{className:[n]},children:[]};r.children.push(a),t.push(a)},o.prototype.closeNode=function(){this.stack.pop()},o.prototype.closeAllNodes=s,o.prototype.finalize=s,o.prototype.toHTML=function(){return""}},"3de5":function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n("c1df"))},"3e92":function(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n("c1df"))},"3f8c":function(e,t){e.exports={}},4160:function(e,t,n){"use strict";var r=n("23e7"),a=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=a},{forEach:a})},"41c3":function(e,t,n){var r=n("1a8c"),a=n("eac5"),i=n("ec8c"),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=a(e),n=[];for(var s in e)("constructor"!=s||!t&&o.call(e,s))&&n.push(s);return n}},"423e":function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n("c1df"))},4245:function(e,t,n){var r=n("1290");e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},42454:function(e,t,n){var r=n("f909"),a=n("2ec1")((function(e,t,n){r(e,t,n)}));e.exports=a},"428f":function(e,t,n){var r=n("da84");e.exports=r},4359:function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},"440c":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?a[n][0]:a[n][1]}function n(e){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 n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(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:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},"44ad":function(e,t,n){var r=n("d039"),a=n("c6b6"),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?i.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var r=n("b622"),a=n("7c73"),i=n("9bf2"),o=r("unscopables"),s=Array.prototype;null==s[o]&&i.f(s,o,{configurable:!0,value:a(null)}),e.exports=function(e){s[o][e]=!0}},"44de":function(e,t,n){var r=n("da84");e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},"44e7":function(e,t,n){var r=n("861d"),a=n("c6b6"),i=n("b622")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==a(e))}},4678:function(e,t,n){var r={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function a(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=i,e.exports=a,a.id="4678"},4840:function(e,t,n){var r=n("825a"),a=n("1c0b"),i=n("b622")("species");e.exports=function(e,t){var n,o=r(e).constructor;return void 0===o||null==(n=r(o)[i])?t:a(n)}},"485c":function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("c1df"))},4930:function(e,t,n){var r=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"49ab":function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1200?"上午":1200===r?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n("c1df"))},"49f4":function(e,t,n){var r=n("6044");e.exports=function(){this.__data__=r?r(null):{},this.size=0}},"4ba9":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("c1df"))},"4d64":function(e,t,n){var r=n("fc6a"),a=n("50c4"),i=n("23cb"),o=function(e){return function(t,n,o){var s,l=r(t),c=a(l.length),u=i(o,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},"4de4":function(e,t,n){"use strict";var r=n("23e7"),a=n("b727").filter,i=n("1dde"),o=n("ae40"),s=i("filter"),l=o("filter");r({target:"Array",proto:!0,forced:!s||!l},{filter:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){"use strict";var r=n("0366"),a=n("7b0b"),i=n("9bdd"),o=n("e95a"),s=n("50c4"),l=n("8418"),c=n("35a1");e.exports=function(e){var t,n,u,d,p,f,m=a(e),h="function"==typeof this?this:Array,_=arguments.length,v=_>1?arguments[1]:void 0,g=void 0!==v,y=c(m),b=0;if(g&&(v=r(v,_>2?arguments[2]:void 0,2)),null==y||h==Array&&o(y))for(n=new h(t=s(m.length));t>b;b++)f=g?v(m[b],b):m[b],l(n,b,f);else for(p=(d=y.call(m)).next,n=new h;!(u=p.call(d)).done;b++)f=g?i(d,v,[u.value,b],!0):u.value,l(n,b,f);return n.length=b,n}},"4f50":function(e,t,n){var r=n("b760"),a=n("e5383"),i=n("c8fe"),o=n("4359"),s=n("fa21"),l=n("d370"),c=n("6747"),u=n("dcbe"),d=n("0d24"),p=n("9520"),f=n("1a8c"),m=n("60ed"),h=n("73ac"),_=n("8adb"),v=n("8de2");e.exports=function(e,t,n,g,y,b,w){var x=_(e,n),k=_(t,n),D=w.get(k);if(D)r(e,n,D);else{var M=b?b(x,k,n+"",e,t,w):void 0,S=void 0===M;if(S){var C=c(k),L=!C&&d(k),T=!C&&!L&&h(k);M=k,C||L||T?c(x)?M=x:u(x)?M=o(x):L?(S=!1,M=a(k,!0)):T?(S=!1,M=i(k,!0)):M=[]:m(k)||l(k)?(M=x,l(x)?M=v(x):f(x)&&!p(x)||(M=s(k))):S=!1}S&&(w.set(k,M),y(M,k,g,b,w),w.delete(k)),r(e,n,M)}}},5038:function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(n("c1df"))},"50c4":function(e,t,n){var r=n("a691"),a=Math.min;e.exports=function(e){return e>0?a(r(e),9007199254740991):0}},"50d8":function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},5120:function(e,t,n){!function(e){"use strict";e.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],weekdaysShort:["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],weekdaysMin:["Do","Lu","Má","Cé","Dé","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"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 f})),n.d(t,"EditorState",(function(){return x})),n.d(t,"NodeSelection",(function(){return d})),n.d(t,"Plugin",(function(){return M})),n.d(t,"PluginKey",(function(){return L})),n.d(t,"Selection",(function(){return o})),n.d(t,"SelectionRange",(function(){return l})),n.d(t,"TextSelection",(function(){return c})),n.d(t,"Transaction",(function(){return v}));var r=n("304a"),a=n("0ac0"),i=Object.create(null),o=function(e,t,n){this.ranges=n||[new l(e.min(t),e.max(t))],this.$anchor=e,this.$head=t},s={anchor:{configurable:!0},head:{configurable:!0},from:{configurable:!0},to:{configurable:!0},$from:{configurable:!0},$to:{configurable:!0},empty:{configurable:!0}};s.anchor.get=function(){return this.$anchor.pos},s.head.get=function(){return this.$head.pos},s.from.get=function(){return this.$from.pos},s.to.get=function(){return this.$to.pos},s.$from.get=function(){return this.ranges[0].$from},s.$to.get=function(){return this.ranges[0].$to},s.empty.get=function(){for(var e=this.ranges,t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0},o.prototype.content=function(){return this.$from.node(0).slice(this.from,this.to,!0)},o.prototype.replace=function(e,t){void 0===t&&(t=r.Slice.empty);for(var n=t.content.lastChild,a=null,i=0;i<t.openEnd;i++)a=n,n=n.lastChild;for(var o=e.steps.length,s=this.ranges,l=0;l<s.length;l++){var c=s[l],u=c.$from,d=c.$to,p=e.mapping.slice(o);e.replaceRange(p.map(u.pos),p.map(d.pos),l?r.Slice.empty:t),0==l&&_(e,o,(n?n.isInline:a&&a.isTextblock)?-1:1)}},o.prototype.replaceWith=function(e,t){for(var n=e.steps.length,r=this.ranges,a=0;a<r.length;a++){var i=r[a],o=i.$from,s=i.$to,l=e.mapping.slice(n),c=l.map(o.pos),u=l.map(s.pos);a?e.deleteRange(c,u):(e.replaceRangeWith(c,u,t),_(e,n,t.isInline?-1:1))}},o.findFrom=function(e,t,n){var r=e.parent.inlineContent?new c(e):h(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(var a=e.depth-1;a>=0;a--){var i=t<0?h(e.node(0),e.node(a),e.before(a+1),e.index(a),t,n):h(e.node(0),e.node(a),e.after(a+1),e.index(a)+1,t,n);if(i)return i}},o.near=function(e,t){return void 0===t&&(t=1),this.findFrom(e,t)||this.findFrom(e,-t)||new f(e.node(0))},o.atStart=function(e){return h(e,e,0,0,1)||new f(e)},o.atEnd=function(e){return h(e,e,e.content.size,e.childCount,-1)||new f(e)},o.fromJSON=function(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");var n=i[t.type];if(!n)throw new RangeError("No selection type "+t.type+" defined");return n.fromJSON(e,t)},o.jsonID=function(e,t){if(e in i)throw new RangeError("Duplicate use of selection JSON ID "+e);return i[e]=t,t.prototype.jsonID=e,t},o.prototype.getBookmark=function(){return c.between(this.$anchor,this.$head).getBookmark()},Object.defineProperties(o.prototype,s),o.prototype.visible=!0;var l=function(e,t){this.$from=e,this.$to=t},c=function(e){function t(t,n){void 0===n&&(n=t),e.call(this,t,n)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={$cursor:{configurable:!0}};return n.$cursor.get=function(){return this.$anchor.pos==this.$head.pos?this.$head:null},t.prototype.map=function(n,r){var a=n.resolve(r.map(this.head));if(!a.parent.inlineContent)return e.near(a);var i=n.resolve(r.map(this.anchor));return new t(i.parent.inlineContent?i:a,a)},t.prototype.replace=function(t,n){if(void 0===n&&(n=r.Slice.empty),e.prototype.replace.call(this,t,n),n==r.Slice.empty){var a=this.$from.marksAcross(this.$to);a&&t.ensureMarks(a)}},t.prototype.eq=function(e){return e instanceof t&&e.anchor==this.anchor&&e.head==this.head},t.prototype.getBookmark=function(){return new u(this.anchor,this.head)},t.prototype.toJSON=function(){return{type:"text",anchor:this.anchor,head:this.head}},t.fromJSON=function(e,n){if("number"!=typeof n.anchor||"number"!=typeof n.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new t(e.resolve(n.anchor),e.resolve(n.head))},t.create=function(e,t,n){void 0===n&&(n=t);var r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))},t.between=function(n,r,a){var i=n.pos-r.pos;if(a&&!i||(a=i>=0?1:-1),!r.parent.inlineContent){var o=e.findFrom(r,a,!0)||e.findFrom(r,-a,!0);if(!o)return e.near(r,a);r=o.$head}return n.parent.inlineContent||(0==i||(n=(e.findFrom(n,-a,!0)||e.findFrom(n,a,!0)).$anchor).pos<r.pos!=i<0)&&(n=r),new t(n,r)},Object.defineProperties(t.prototype,n),t}(o);o.jsonID("text",c);var u=function(e,t){this.anchor=e,this.head=t};u.prototype.map=function(e){return new u(e.map(this.anchor),e.map(this.head))},u.prototype.resolve=function(e){return c.between(e.resolve(this.anchor),e.resolve(this.head))};var d=function(e){function t(t){var n=t.nodeAfter,r=t.node(0).resolve(t.pos+n.nodeSize);e.call(this,t,r),this.node=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.map=function(n,r){var a=r.mapResult(this.anchor),i=a.deleted,o=a.pos,s=n.resolve(o);return i?e.near(s):new t(s)},t.prototype.content=function(){return new r.Slice(r.Fragment.from(this.node),0,0)},t.prototype.eq=function(e){return e instanceof t&&e.anchor==this.anchor},t.prototype.toJSON=function(){return{type:"node",anchor:this.anchor}},t.prototype.getBookmark=function(){return new p(this.anchor)},t.fromJSON=function(e,n){if("number"!=typeof n.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new t(e.resolve(n.anchor))},t.create=function(e,t){return new this(e.resolve(t))},t.isSelectable=function(e){return!e.isText&&!1!==e.type.spec.selectable},t}(o);d.prototype.visible=!1,o.jsonID("node",d);var p=function(e){this.anchor=e};p.prototype.map=function(e){var t=e.mapResult(this.anchor),n=t.deleted,r=t.pos;return n?new u(r,r):new p(r)},p.prototype.resolve=function(e){var t=e.resolve(this.anchor),n=t.nodeAfter;return n&&d.isSelectable(n)?new d(t):o.near(t)};var f=function(e){function t(t){e.call(this,t.resolve(0),t.resolve(t.content.size))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.replace=function(t,n){if(void 0===n&&(n=r.Slice.empty),n==r.Slice.empty){t.delete(0,t.doc.content.size);var a=e.atStart(t.doc);a.eq(t.selection)||t.setSelection(a)}else e.prototype.replace.call(this,t,n)},t.prototype.toJSON=function(){return{type:"all"}},t.fromJSON=function(e){return new t(e)},t.prototype.map=function(e){return new t(e)},t.prototype.eq=function(e){return e instanceof t},t.prototype.getBookmark=function(){return m},t}(o);o.jsonID("all",f);var m={map:function(){return this},resolve:function(e){return new f(e)}};function h(e,t,n,r,a,i){if(t.inlineContent)return c.create(e,n);for(var o=r-(a>0?0:1);a>0?o<t.childCount:o>=0;o+=a){var s=t.child(o);if(s.isAtom){if(!i&&d.isSelectable(s))return d.create(e,n-(a<0?s.nodeSize:0))}else{var l=h(e,s,n+a,a<0?s.childCount:0,a,i);if(l)return l}n+=s.nodeSize*a}}function _(e,t,n){var r=e.steps.length-1;if(!(r<t)){var i,s=e.steps[r];(s instanceof a.c||s instanceof a.b)&&(e.mapping.maps[r].forEach((function(e,t,n,r){null==i&&(i=r)})),e.setSelection(o.near(e.doc.resolve(i),n)))}}var v=function(e){function t(t){e.call(this,t.doc),this.time=Date.now(),this.curSelection=t.selection,this.curSelectionFor=0,this.storedMarks=t.storedMarks,this.updated=0,this.meta=Object.create(null)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={selection:{configurable:!0},selectionSet:{configurable:!0},storedMarksSet:{configurable:!0},isGeneric:{configurable:!0},scrolledIntoView:{configurable:!0}};return n.selection.get=function(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection},t.prototype.setSelection=function(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=-3&(1|this.updated),this.storedMarks=null,this},n.selectionSet.get=function(){return(1&this.updated)>0},t.prototype.setStoredMarks=function(e){return this.storedMarks=e,this.updated|=2,this},t.prototype.ensureMarks=function(e){return r.Mark.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this},t.prototype.addStoredMark=function(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))},t.prototype.removeStoredMark=function(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))},n.storedMarksSet.get=function(){return(2&this.updated)>0},t.prototype.addStep=function(t,n){e.prototype.addStep.call(this,t,n),this.updated=-3&this.updated,this.storedMarks=null},t.prototype.setTime=function(e){return this.time=e,this},t.prototype.replaceSelection=function(e){return this.selection.replace(this,e),this},t.prototype.replaceSelectionWith=function(e,t){var n=this.selection;return!1!==t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||r.Mark.none))),n.replaceWith(this,e),this},t.prototype.deleteSelection=function(){return this.selection.replace(this),this},t.prototype.insertText=function(e,t,n){void 0===n&&(n=t);var r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();if(!e)return this.deleteRange(t,n);var a=this.storedMarks;if(!a){var i=this.doc.resolve(t);a=n==t?i.marks():i.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,a)),this.selection.empty||this.setSelection(o.near(this.selection.$to)),this},t.prototype.setMeta=function(e,t){return this.meta["string"==typeof e?e:e.key]=t,this},t.prototype.getMeta=function(e){return this.meta["string"==typeof e?e:e.key]},n.isGeneric.get=function(){for(var e in this.meta)return!1;return!0},t.prototype.scrollIntoView=function(){return this.updated|=4,this},n.scrolledIntoView.get=function(){return(4&this.updated)>0},Object.defineProperties(t.prototype,n),t}(a.e);function g(e,t){return t&&e?e.bind(t):e}var y=function(e,t,n){this.name=e,this.init=g(t.init,n),this.apply=g(t.apply,n)},b=[new y("doc",{init:function(e){return e.doc||e.schema.topNodeType.createAndFill()},apply:function(e){return e.doc}}),new y("selection",{init:function(e,t){return e.selection||o.atStart(t.doc)},apply:function(e){return e.selection}}),new y("storedMarks",{init:function(e){return e.storedMarks||null},apply:function(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new y("scrollToSelection",{init:function(){return 0},apply:function(e,t){return e.scrolledIntoView?t+1:t}})],w=function(e,t){var n=this;this.schema=e,this.fields=b.concat(),this.plugins=[],this.pluginsByKey=Object.create(null),t&&t.forEach((function(e){if(n.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");n.plugins.push(e),n.pluginsByKey[e.key]=e,e.spec.state&&n.fields.push(new y(e.key,e.spec.state,e))}))},x=function(e){this.config=e},k={schema:{configurable:!0},plugins:{configurable:!0},tr:{configurable:!0}};k.schema.get=function(){return this.config.schema},k.plugins.get=function(){return this.config.plugins},x.prototype.apply=function(e){return this.applyTransaction(e).state},x.prototype.filterTransaction=function(e,t){void 0===t&&(t=-1);for(var n=0;n<this.config.plugins.length;n++)if(n!=t){var r=this.config.plugins[n];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,e,this))return!1}return!0},x.prototype.applyTransaction=function(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};for(var t=[e],n=this.applyInner(e),r=null;;){for(var a=!1,i=0;i<this.config.plugins.length;i++){var o=this.config.plugins[i];if(o.spec.appendTransaction){var s=r?r[i].n:0,l=r?r[i].state:this,c=s<t.length&&o.spec.appendTransaction.call(o,s?t.slice(s):t,l,n);if(c&&n.filterTransaction(c,i)){if(c.setMeta("appendedTransaction",e),!r){r=[];for(var u=0;u<this.config.plugins.length;u++)r.push(u<i?{state:n,n:t.length}:{state:this,n:0})}t.push(c),n=n.applyInner(c),a=!0}r&&(r[i]={state:n,n:t.length})}}if(!a)return{state:n,transactions:t}}},x.prototype.applyInner=function(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");for(var t=new x(this.config),n=this.config.fields,r=0;r<n.length;r++){var a=n[r];t[a.name]=a.apply(e,this[a.name],this,t)}for(var i=0;i<D.length;i++)D[i](this,e,t);return t},k.tr.get=function(){return new v(this)},x.create=function(e){for(var t=new w(e.schema||e.doc.type.schema,e.plugins),n=new x(t),r=0;r<t.fields.length;r++)n[t.fields[r].name]=t.fields[r].init(e,n);return n},x.prototype.reconfigure=function(e){for(var t=new w(e.schema||this.schema,e.plugins),n=t.fields,r=new x(t),a=0;a<n.length;a++){var i=n[a].name;r[i]=this.hasOwnProperty(i)?this[i]:n[a].init(e,r)}return r},x.prototype.toJSON=function(e){var t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map((function(e){return e.toJSON()}))),e&&"object"==typeof e)for(var n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");var r=e[n],a=r.spec.state;a&&a.toJSON&&(t[n]=a.toJSON.call(r,this[r.key]))}return t},x.fromJSON=function(e,t,n){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");var a=new w(e.schema,e.plugins),i=new x(a);return a.fields.forEach((function(a){if("doc"==a.name)i.doc=r.Node.fromJSON(e.schema,t.doc);else if("selection"==a.name)i.selection=o.fromJSON(i.doc,t.selection);else if("storedMarks"==a.name)t.storedMarks&&(i.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(var s in n){var l=n[s],c=l.spec.state;if(l.key==a.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(t,s))return void(i[a.name]=c.fromJSON.call(l,e,t[s],i))}i[a.name]=a.init(e,i)}})),i},x.addApplyListener=function(e){D.push(e)},x.removeApplyListener=function(e){var t=D.indexOf(e);t>-1&&D.splice(t,1)},Object.defineProperties(x.prototype,k);var D=[],M=function(e){this.props={},e.props&&function e(t,n,r){for(var a in t){var i=t[a];i instanceof Function?i=i.bind(n):"handleDOMEvents"==a&&(i=e(i,n,{})),r[a]=i}return r}(e.props,this,this.props),this.spec=e,this.key=e.key?e.key.key:C("plugin")};M.prototype.getState=function(e){return e[this.key]};var S=Object.create(null);function C(e){return e in S?e+"$"+ ++S[e]:(S[e]=0,e+"$")}var L=function(e){void 0===e&&(e="key"),this.key=C(e)};L.prototype.get=function(e){return e.config.pluginsByKey[this.key]},L.prototype.getState=function(e){return e[this.key]}},5319:function(e,t,n){"use strict";var r=n("d784"),a=n("825a"),i=n("7b0b"),o=n("50c4"),s=n("a691"),l=n("1d80"),c=n("8aa5"),u=n("14c3"),d=Math.max,p=Math.min,f=Math.floor,m=/\$([$&'`]|\d\d?|<[^>]*>)/g,h=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(e,t,n,r){var _=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,v=r.REPLACE_KEEPS_$0,g=_?"$":"$0";return[function(n,r){var a=l(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,a,r):t.call(String(a),n,r)},function(e,r){if(!_&&v||"string"==typeof r&&-1===r.indexOf(g)){var i=n(t,e,this,r);if(i.done)return i.value}var l=a(e),f=String(this),m="function"==typeof r;m||(r=String(r));var h=l.global;if(h){var b=l.unicode;l.lastIndex=0}for(var w=[];;){var x=u(l,f);if(null===x)break;if(w.push(x),!h)break;""===String(x[0])&&(l.lastIndex=c(f,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),f.length),0),T=[],E=1;E<x.length;E++)T.push(void 0===(k=x[E])?k:String(k));var O=x.groups;if(m){var j=[C].concat(T,L,f);void 0!==O&&j.push(O);var A=String(r.apply(void 0,j))}else A=y(C,f,L,T,O,r);L>=M&&(D+=f.slice(M,L)+A,M=L+C.length)}return D+f.slice(M)}];function y(e,n,r,a,o,s){var l=r+e.length,c=a.length,u=h;return void 0!==o&&(o=i(o),u=m),t.call(s,u,(function(t,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(l);case"<":s=o[i.slice(1,-1)];break;default:var u=+i;if(0===u)return t;if(u>c){var d=f(u/10);return 0===d?t:d<=c?void 0===a[d-1]?i.charAt(1):a[d-1]+i.charAt(1):t}s=a[u-1]}return void 0===s?"":s}))}}))},"55a3":function(e,t){e.exports=function(e){return this.__data__.has(e)}},"55be":function(e,t,n){"use strict";n.r(t),n.d(t,"CellSelection",(function(){return P})),n.d(t,"TableMap",(function(){return m})),n.d(t,"TableView",(function(){return Se})),n.d(t,"__clipCells",(function(){return z})),n.d(t,"__insertCells",(function(){return H})),n.d(t,"__pastedCells",(function(){return I})),n.d(t,"addColSpan",(function(){return j})),n.d(t,"addColumn",(function(){return re})),n.d(t,"addColumnAfter",(function(){return ie})),n.d(t,"addColumnBefore",(function(){return ae})),n.d(t,"addRow",(function(){return ce})),n.d(t,"addRowAfter",(function(){return de})),n.d(t,"addRowBefore",(function(){return ue})),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 Te})),n.d(t,"columnResizingPluginKey",(function(){return Le})),n.d(t,"deleteColumn",(function(){return se})),n.d(t,"deleteRow",(function(){return fe})),n.d(t,"deleteTable",(function(){return Me})),n.d(t,"findCell",(function(){return C})),n.d(t,"fixTables",(function(){return te})),n.d(t,"fixTablesKey",(function(){return ee})),n.d(t,"goToNextCell",(function(){return De})),n.d(t,"handlePaste",(function(){return G})),n.d(t,"inSameTable",(function(){return S})),n.d(t,"isInTable",(function(){return x})),n.d(t,"mergeCells",(function(){return he})),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 O})),n.d(t,"removeColumn",(function(){return oe})),n.d(t,"removeRow",(function(){return pe})),n.d(t,"rowIsHeader",(function(){return le})),n.d(t,"selectedRect",(function(){return ne})),n.d(t,"selectionCell",(function(){return k})),n.d(t,"setAttr",(function(){return E})),n.d(t,"setCellAttr",(function(){return ge})),n.d(t,"splitCell",(function(){return _e})),n.d(t,"splitCellWithType",(function(){return ve})),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 be})),n.d(t,"toggleHeaderCell",(function(){return ke})),n.d(t,"toggleHeaderColumn",(function(){return xe})),n.d(t,"toggleHeaderRow",(function(){return we})),n.d(t,"updateColumnsOnResize",(function(){return Ce}));var r,a,i=n("5313"),o=n("304a"),s=n("7f06"),l=n("576a"),c=n("0ac0");if("undefined"!=typeof WeakMap){var u=new WeakMap;r=function(e){return u.get(e)},a=function(e,t){return u.set(e,t),t}}else{var d=[],p=0;r=function(e){for(var t=0;t<d.length;t+=2)if(d[t]==e)return d[t+1]},a=function(e,t){return 10==p&&(p=0),d[p++]=e,d[p++]=t}}var f=function(e,t,n,r){this.left=e,this.top=t,this.right=n,this.bottom=r},m=function(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r};function h(e){if(e.colwidth)return e.colwidth.slice();for(var t=[],n=0;n<e.colspan;n++)t.push(0);return t}function _(e,t){var n=e.getAttribute("data-colwidth"),r=n&&/^\d+(,\d+)*$/.test(n)?n.split(",").map((function(e){return Number(e)})):null,a=Number(e.getAttribute("colspan")||1),i={colspan:a,rowspan:Number(e.getAttribute("rowspan")||1),colwidth:r&&r.length==a?r:null};for(var o in t){var s=t[o].getFromDOM,l=s&&s(e);null!=l&&(i[o]=l)}return i}function v(e,t){var n={};for(var r in 1!=e.attrs.colspan&&(n.colspan=e.attrs.colspan),1!=e.attrs.rowspan&&(n.rowspan=e.attrs.rowspan),e.attrs.colwidth&&(n["data-colwidth"]=e.attrs.colwidth.join(",")),t){var a=t[r].setDOMAttr;a&&a(e.attrs[r],n)}return n}function g(e){var t=e.cellAttributes||{},n={colspan:{default:1},rowspan:{default:1},colwidth:{default:null}};for(var r in t)n[r]={default:t[r].default};return{table:{content:"table_row+",tableRole:"table",isolating:!0,group:e.tableGroup,parseDOM:[{tag:"table"}],toDOM:function(){return["table",["tbody",0]]}},table_row:{content:"(table_cell | table_header)*",tableRole:"row",parseDOM:[{tag:"tr"}],toDOM:function(){return["tr",0]}},table_cell:{content:e.cellContent,attrs:n,tableRole:"cell",isolating:!0,parseDOM:[{tag:"td",getAttrs:function(e){return _(e,t)}}],toDOM:function(e){return["td",v(e,t),0]}},table_header:{content:e.cellContent,attrs:n,tableRole:"header_cell",isolating:!0,parseDOM:[{tag:"th",getAttrs:function(e){return _(e,t)}}],toDOM:function(e){return["th",v(e,t),0]}}}}function y(e){var t=e.cached.tableNodeTypes;if(!t)for(var n in t=e.cached.tableNodeTypes={},e.nodes){var r=e.nodes[n],a=r.spec.tableRole;a&&(t[a]=r)}return t}m.prototype.findCell=function(e){for(var t=0;t<this.map.length;t++){var n=this.map[t];if(n==e){for(var r=t%this.width,a=t/this.width|0,i=r+1,o=a+1,s=1;i<this.width&&this.map[t+s]==n;s++)i++;for(var l=1;o<this.height&&this.map[t+this.width*l]==n;l++)o++;return new f(r,a,i,o)}}throw new RangeError("No cell with offset "+e+" found")},m.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")},m.prototype.nextCell=function(e,t,n){var r=this.findCell(e),a=r.left,i=r.right,o=r.top,s=r.bottom;return"horiz"==t?(n<0?0==a:i==this.width)?null:this.map[o*this.width+(n<0?a-1:i)]:(n<0?0==o:s==this.height)?null:this.map[a+this.width*(n<0?o-1:s)]},m.prototype.rectBetween=function(e,t){var n=this.findCell(e),r=n.left,a=n.right,i=n.top,o=n.bottom,s=this.findCell(t),l=s.left,c=s.right,u=s.top,d=s.bottom;return new f(Math.min(r,l),Math.min(i,u),Math.max(a,c),Math.max(o,d))},m.prototype.cellsInRect=function(e){for(var t=[],n={},r=e.top;r<e.bottom;r++)for(var a=e.left;a<e.right;a++){var i=r*this.width+a,o=this.map[i];n[o]||(n[o]=!0,a==e.left&&a&&this.map[i-1]==o||r==e.top&&r&&this.map[i-this.width]==o||t.push(o))}return t},m.prototype.positionAt=function(e,t,n){for(var r=0,a=0;;r++){var i=a+n.child(r).nodeSize;if(r==e){for(var o=t+e*this.width,s=(e+1)*this.width;o<s&&this.map[o]<a;)o++;return o==s?i-1:this.map[o]}a=i}},m.get=function(e){return r(e)||a(e,function(e){if("table"!=e.type.spec.tableRole)throw new RangeError("Not a table node: "+e.type.name);for(var t=function(e){for(var t=-1,n=!1,r=0;r<e.childCount;r++){var a=e.child(r),i=0;if(n)for(var o=0;o<r;o++)for(var s=e.child(o),l=0;l<s.childCount;l++){var c=s.child(l);o+c.attrs.rowspan>r&&(i+=c.attrs.colspan)}for(var u=0;u<a.childCount;u++){var d=a.child(u);i+=d.attrs.colspan,d.attrs.rowspan>1&&(n=!0)}-1==t?t=i:t!=i&&(t=Math.max(t,i))}return t}(e),n=e.childCount,r=[],a=0,i=null,o=[],s=0,l=t*n;s<l;s++)r[s]=0;for(var c=0,u=0;c<n;c++){var d=e.child(c);u++;for(var p=0;;p++){for(;a<r.length&&0!=r[a];)a++;if(p==d.childCount)break;for(var f=d.child(p),_=f.attrs,v=_.colspan,g=_.rowspan,y=_.colwidth,b=0;b<g;b++){if(b+c>=n){(i||(i=[])).push({type:"overlong_rowspan",pos:u,n:g-b});break}for(var w=a+b*t,x=0;x<v;x++){0==r[w+x]?r[w+x]=u:(i||(i=[])).push({type:"collision",row:c,pos:u,n:v-x});var k=y&&y[x];if(k){var D=(w+x)%t*2,M=o[D];null==M||M!=k&&1==o[D+1]?(o[D]=k,o[D+1]=1):M==k&&o[D+1]++}}}a+=v,u+=f.nodeSize}for(var S=(c+1)*t,C=0;a<S;)0==r[a++]&&C++;C&&(i||(i=[])).push({type:"missing",row:c,n:C}),u++}for(var L=new m(t,n,r,i),T=!1,E=0;!T&&E<o.length;E+=2)null!=o[E]&&o[E+1]<n&&(T=!0);return T&&function(e,t,n){e.problems||(e.problems=[]);for(var r=0,a={};r<e.map.length;r++){var i=e.map[r];if(!a[i]){a[i]=!0;for(var o=n.nodeAt(i),s=null,l=0;l<o.attrs.colspan;l++){var c=(r+l)%e.width,u=t[2*c];null==u||o.attrs.colwidth&&o.attrs.colwidth[l]==u||((s||(s=h(o.attrs)))[l]=u)}s&&e.problems.unshift({type:"colwidth mismatch",pos:i,colwidth:s})}}}(L,o,e),L}(e))};var b=new i.PluginKey("selectingCells");function w(e){for(var t=e.depth-1;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function x(e){for(var t=e.selection.$head,n=t.depth;n>0;n--)if("row"==t.node(n).type.spec.tableRole)return!0;return!1}function k(e){var t=e.selection;return t.$anchorCell?t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell:t.node&&"cell"==t.node.type.spec.tableRole?t.$anchor:w(t.$head)||function(e){for(var t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){var r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n)}for(var a=e.nodeBefore,i=e.pos;a;a=a.lastChild,i--){var o=a.type.spec.tableRole;if("cell"==o||"header_cell"==o)return e.doc.resolve(i-a.nodeSize)}}(t.$head)}function D(e){return"row"==e.parent.type.spec.tableRole&&e.nodeAfter}function M(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function S(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function C(e){return m.get(e.node(-1)).findCell(e.pos-e.start(-1))}function L(e){return m.get(e.node(-1)).colCount(e.pos-e.start(-1))}function T(e,t,n){var r=e.start(-1),a=m.get(e.node(-1)).nextCell(e.pos-r,t,n);return null==a?null:e.node(0).resolve(r+a)}function E(e,t,n){var r={};for(var a in e)r[a]=e[a];return r[t]=n,r}function O(e,t,n){void 0===n&&(n=1);var r=E(e,"colspan",e.colspan-n);return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some((function(e){return e>0}))||(r.colwidth=null)),r}function j(e,t,n){void 0===n&&(n=1);var r=E(e,"colspan",e.colspan+n);if(r.colwidth){r.colwidth=r.colwidth.slice();for(var a=0;a<n;a++)r.colwidth.splice(t,0,0)}return r}function A(e,t,n){for(var r=y(t.type.schema).header_cell,a=0;a<e.height;a++)if(t.nodeAt(e.map[n+a*e.width]).type!=r)return!1;return!0}var P=function(e){function t(t,n){void 0===n&&(n=t);var r=t.node(-1),a=m.get(r),o=t.start(-1),s=a.rectBetween(t.pos-o,n.pos-o),l=t.node(0),c=a.cellsInRect(s).filter((function(e){return e!=n.pos-o}));c.unshift(n.pos-o);var u=c.map((function(e){var t=r.nodeAt(e),n=e+o+1;return new i.SelectionRange(l.resolve(n),l.resolve(n+t.content.size))}));e.call(this,u[0].$from,u[0].$to,u),this.$anchorCell=t,this.$headCell=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.map=function(e,n){var r=e.resolve(n.map(this.$anchorCell.pos)),a=e.resolve(n.map(this.$headCell.pos));if(D(r)&&D(a)&&S(r,a)){var o=this.$anchorCell.node(-1)!=r.node(-1);return o&&this.isRowSelection()?t.rowSelection(r,a):o&&this.isColSelection()?t.colSelection(r,a):new t(r,a)}return i.TextSelection.between(r,a)},t.prototype.content=function(){for(var e=this.$anchorCell.node(-1),t=m.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),a={},i=[],s=r.top;s<r.bottom;s++){for(var l=[],c=s*t.width+r.left,u=r.left;u<r.right;u++,c++){var d=t.map[c];if(!a[d]){a[d]=!0;var p=t.findCell(d),f=e.nodeAt(d),h=r.left-p.left,_=p.right-r.right;if(h>0||_>0){var v=f.attrs;h>0&&(v=O(v,0,h)),_>0&&(v=O(v,v.colspan-_,_)),f=p.left<r.left?f.type.createAndFill(v):f.type.create(v,f.content)}if(p.top<r.top||p.bottom>r.bottom){var g=E(f.attrs,"rowspan",Math.min(p.bottom,r.bottom)-Math.max(p.top,r.top));f=p.top<r.top?f.type.createAndFill(g):f.type.create(g,f.content)}l.push(f)}}i.push(e.child(s).copy(o.Fragment.from(l)))}var y=this.isColSelection()&&this.isRowSelection()?e:i;return new o.Slice(o.Fragment.from(y),1,1)},t.prototype.replace=function(t,n){void 0===n&&(n=o.Slice.empty);for(var r=t.steps.length,a=this.ranges,i=0;i<a.length;i++){var s=a[i],l=s.$from,c=s.$to,u=t.mapping.slice(r);t.replace(u.map(l.pos),u.map(c.pos),i?o.Slice.empty:n)}var d=e.findFrom(t.doc.resolve(t.mapping.slice(r).map(this.to)),-1);d&&t.setSelection(d)},t.prototype.replaceWith=function(e,t){this.replace(e,new o.Slice(o.Fragment.from(t),0,0))},t.prototype.forEachCell=function(e){for(var t=this.$anchorCell.node(-1),n=m.get(t),r=this.$anchorCell.start(-1),a=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r)),i=0;i<a.length;i++)e(t.nodeAt(a[i]),r+a[i])},t.prototype.isColSelection=function(){var e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;var n=e+this.$anchorCell.nodeAfter.attrs.rowspan,r=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,r)==this.$headCell.node(-1).childCount},t.colSelection=function(e,n){void 0===n&&(n=e);var r=m.get(e.node(-1)),a=e.start(-1),i=r.findCell(e.pos-a),o=r.findCell(n.pos-a),s=e.node(0);return i.top<=o.top?(i.top>0&&(e=s.resolve(a+r.map[i.left])),o.bottom<r.height&&(n=s.resolve(a+r.map[r.width*(r.height-1)+o.right-1]))):(o.top>0&&(n=s.resolve(a+r.map[o.left])),i.bottom<r.height&&(e=s.resolve(a+r.map[r.width*(r.height-1)+i.right-1]))),new t(e,n)},t.prototype.isRowSelection=function(){var e=m.get(this.$anchorCell.node(-1)),t=this.$anchorCell.start(-1),n=e.colCount(this.$anchorCell.pos-t),r=e.colCount(this.$headCell.pos-t);if(Math.min(n,r)>0)return!1;var a=n+this.$anchorCell.nodeAfter.attrs.colspan,i=r+this.$headCell.nodeAfter.attrs.colspan;return Math.max(a,i)==e.width},t.prototype.eq=function(e){return e instanceof t&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos},t.rowSelection=function(e,n){void 0===n&&(n=e);var r=m.get(e.node(-1)),a=e.start(-1),i=r.findCell(e.pos-a),o=r.findCell(n.pos-a),s=e.node(0);return i.left<=o.left?(i.left>0&&(e=s.resolve(a+r.map[i.top*r.width])),o.right<r.width&&(n=s.resolve(a+r.map[r.width*(o.top+1)-1]))):(o.left>0&&(n=s.resolve(a+r.map[o.top*r.width])),i.right<r.width&&(e=s.resolve(a+r.map[r.width*(i.top+1)-1]))),new t(e,n)},t.prototype.toJSON=function(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}},t.fromJSON=function(e,n){return new t(e.resolve(n.anchor),e.resolve(n.head))},t.create=function(e,n,r){return void 0===r&&(r=n),new t(e.resolve(n),e.resolve(r))},t.prototype.getBookmark=function(){return new Y(this.$anchorCell.pos,this.$headCell.pos)},t}(i.Selection);P.prototype.visible=!1,i.Selection.jsonID("cell",P);var Y=function(e,t){this.anchor=e,this.head=t};function $(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 I(e){if(!e.size)return null;for(var t=e.content,n=e.openStart,r=e.openEnd;1==t.childCount&&(n>0&&r>0||"table"==t.firstChild.type.spec.tableRole);)n--,r--,t=t.firstChild.content;var a=t.firstChild,i=a.type.spec.tableRole,s=a.type.schema,l=[];if("row"==i)for(var c=0;c<t.childCount;c++){var u=t.child(c).content,d=c?0:Math.max(0,n-1),p=c<t.childCount-1?0:Math.max(0,r-1);(d||p)&&(u=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||r?N(y(s).row,new o.Slice(t,n,r)).content:t)}return function(e,t){for(var n=[],r=0;r<t.length;r++)for(var a=t[r],i=a.childCount-1;i>=0;i--)for(var s=a.child(i).attrs,l=s.rowspan,c=s.colspan,u=r;u<r+l;u++)n[u]=(n[u]||0)+c;for(var d=0,p=0;p<n.length;p++)d=Math.max(d,n[p]);for(var f=0;f<n.length;f++)if(f>=t.length&&t.push(o.Fragment.empty),n[f]<d){for(var m=y(e).cell.createAndFill(),h=[],_=n[f];_<d;_++)h.push(m);t[f]=t[f].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 z(e,t,n){var r=e.width,a=e.height,i=e.rows;if(r!=t){for(var s=[],l=[],c=0;c<i.length;c++){for(var u=i[c],d=[],p=s[c]||0,f=0;p<t;f++){var m=u.child(f%u.childCount);p+m.attrs.colspan>t&&(m=m.type.create(O(m.attrs,m.attrs.colspan,p+m.attrs.colspan-t),m.content)),d.push(m),p+=m.attrs.colspan;for(var h=1;h<m.attrs.rowspan;h++)s[c+h]=(s[c+h]||0)+m.attrs.colspan}l.push(o.Fragment.from(d))}i=l,r=t}if(a!=n){for(var _=[],v=0,g=0;v<n;v++,g++){for(var y=[],b=i[g%a],w=0;w<b.childCount;w++){var x=b.child(w);v+x.attrs.rowspan>n&&(x=x.type.create(E(x.attrs,"rowspan",Math.max(1,n-x.attrs.rowspan)),x.content)),y.push(x)}_.push(o.Fragment.from(y))}i=_,a=n}return{width:r,height:a,rows:i}}function F(e,t,n,r,a,i,o,s){if(0==o||o==t.height)return!1;for(var l=!1,c=a;c<i;c++){var u=o*t.width+c,d=t.map[u];if(t.map[u-t.width]==d){l=!0;var p=n.nodeAt(d),f=t.findCell(d),m=f.top,h=f.left;e.setNodeMarkup(e.mapping.slice(s).map(d+r),null,E(p.attrs,"rowspan",o-m)),e.insert(e.mapping.slice(s).map(t.positionAt(o,h,n)),p.type.createAndFill(E(p.attrs,"rowspan",m+p.attrs.rowspan-o))),c+=p.attrs.colspan-1}}return l}function R(e,t,n,r,a,i,o,s){if(0==o||o==t.width)return!1;for(var l=!1,c=a;c<i;c++){var u=c*t.width+o,d=t.map[u];if(t.map[u-1]==d){l=!0;var p=n.nodeAt(d),f=t.colCount(d),m=e.mapping.slice(s).map(d+r);e.setNodeMarkup(m,null,O(p.attrs,o-f,p.attrs.colspan-(o-f))),e.insert(m+p.nodeSize,p.type.createAndFill(O(p.attrs,0,o-f))),c+=p.attrs.rowspan-1}}return l}function H(e,t,n,r,a){var i=n?e.doc.nodeAt(n-1):e.doc,s=m.get(i),l=r.top,c=r.left,u=c+a.width,d=l+a.height,p=e.tr,f=0;function h(){i=n?p.doc.nodeAt(n-1):p.doc,s=m.get(i),f=p.mapping.maps.length}(function(e,t,n,r,a,i,s){var l,c,u=y(e.doc.type.schema);if(a>t.width)for(var d=0,p=0;d<t.height;d++){var f=n.child(d);p+=f.nodeSize;var m=[],h=void 0;h=null==f.lastChild||f.lastChild.type==u.cell?l||(l=u.cell.createAndFill()):c||(c=u.header_cell.createAndFill());for(var _=t.width;_<a;_++)m.push(h);e.insert(e.mapping.slice(s).map(p-1+r),m)}if(i>t.height){for(var v=[],g=0,b=(t.height-1)*t.width;g<Math.max(t.width,a);g++){var w=!(g>=t.width)&&n.nodeAt(t.map[b+g]).type==u.header_cell;v.push(w?c||(c=u.header_cell.createAndFill()):l||(l=u.cell.createAndFill()))}for(var x=u.row.create(null,o.Fragment.from(v)),k=[],D=t.height;D<i;D++)k.push(x);e.insert(e.mapping.slice(s).map(r+n.nodeSize-2),k)}return!(!l&&!c)})(p,s,i,n,u,d,f)&&h(),F(p,s,i,n,c,u,l,f)&&h(),F(p,s,i,n,c,u,d,f)&&h(),R(p,s,i,n,l,d,c,f)&&h(),R(p,s,i,n,l,d,u,f)&&h();for(var _=l;_<d;_++){var v=s.positionAt(_,c,i),g=s.positionAt(_,u,i);p.replace(p.mapping.slice(f).map(v+n),p.mapping.slice(f).map(g+n),new o.Slice(a.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)}Y.prototype.map=function(e){return new Y(e.map(this.anchor),e.map(this.head))},Y.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:U("horiz",-1),ArrowRight:U("horiz",1),ArrowUp:U("vert",-1),ArrowDown:U("vert",1),"Shift-ArrowLeft":V("horiz",-1),"Shift-ArrowRight":V("horiz",1),"Shift-ArrowUp":V("vert",-1),"Shift-ArrowDown":V("vert",1),Backspace:W,"Mod-Backspace":W,Delete:W,"Mod-Delete":W});function q(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function U(e,t){return function(n,r,a){var o=n.selection;if(o instanceof P)return q(n,r,i.Selection.near(o.$headCell,t));if("horiz"!=e&&!o.empty)return!1;var s=Z(a,e,t);if(null==s)return!1;if("horiz"==e)return q(n,r,i.Selection.near(n.doc.resolve(o.head+t),t));var l,c=n.doc.resolve(s),u=T(c,e,t);return l=u?i.Selection.near(u,1):t<0?i.Selection.near(n.doc.resolve(c.before(-1)),-1):i.Selection.near(n.doc.resolve(c.after(-1)),1),q(n,r,l)}}function V(e,t){return function(n,r,a){var i=n.selection;if(!(i instanceof P)){var o=Z(a,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,r,new P(i.$anchorCell,s))}}function W(e,t){var n=e.selection;if(!(n instanceof P))return!1;if(t){var r=e.tr,a=y(e.schema).cell.createAndFill().content;n.forEachCell((function(e,t){e.content.eq(a)||r.replace(r.mapping.map(t+1),r.mapping.map(t+e.nodeSize-1),new o.Slice(a,0,0))})),r.docChanged&&t(r)}return!0}function K(e,t){var n=w(e.state.doc.resolve(t));return!!n&&(e.dispatch(e.state.tr.setSelection(new P(n))),!0)}function G(e,t,n){if(!x(e.state))return!1;var r=I(n),a=e.state.selection;if(a instanceof P){r||(r={width:1,height:1,rows:[o.Fragment.from(N(y(e.state.schema).cell,n))]});var i=a.$anchorCell.node(-1),s=a.$anchorCell.start(-1),l=m.get(i).rectBetween(a.$anchorCell.pos-s,a.$headCell.pos-s);return r=z(r,l.right-l.left,l.bottom-l.top),H(e.state,e.dispatch,s,l,r),!0}if(r){var c=k(e.state),u=c.start(-1);return H(e.state,e.dispatch,u,m.get(c.node(-1)).findCell(c.pos-u),r),!0}return!1}function J(e,t){if(!t.ctrlKey&&!t.metaKey){var n,r=X(e,t.target);if(t.shiftKey&&e.state.selection instanceof P)a(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&r&&null!=(n=w(e.state.selection.$anchor))&&Q(e,t).pos!=n.pos)a(n,t),t.preventDefault();else if(!r)return;e.root.addEventListener("mouseup",i),e.root.addEventListener("dragstart",i),e.root.addEventListener("mousemove",o)}function a(t,n){var r=Q(e,n),a=null==b.getState(e.state);if(!r||!S(t,r)){if(!a)return;r=t}var i=new P(t,r);if(a||!e.state.selection.eq(i)){var o=e.state.tr.setSelection(i);a&&o.setMeta(b,t.pos),e.dispatch(o)}}function i(){e.root.removeEventListener("mouseup",i),e.root.removeEventListener("dragstart",i),e.root.removeEventListener("mousemove",o),null!=b.getState(e.state)&&e.dispatch(e.state.tr.setMeta(b,-1))}function o(n){var o,s=b.getState(e.state);if(null!=s)o=e.state.doc.resolve(s);else if(X(e,n.target)!=r&&!(o=Q(e,t)))return i();o&&a(o,n)}}function Z(e,t,n){if(!(e.state.selection instanceof i.TextSelection))return null;for(var r=e.state.selection.$head,a=r.depth-1;a>=0;a--){var o=r.node(a);if((n<0?r.index(a):r.indexAfter(a))!=(n<0?0:o.childCount))return null;if("cell"==o.type.spec.tableRole||"header_cell"==o.type.spec.tableRole){var s=r.before(a),l="vert"==t?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(l)?s:null}}return null}function X(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t}function Q(e,t){var n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?w(e.state.doc.resolve(n.pos)):null}var ee=new i.PluginKey("fix-tables");function te(e,t){var n,r=function(t,r){"table"==t.type.spec.tableRole&&(n=function(e,t,n,r){var a=m.get(t);if(!a.problems)return r;r||(r=e.tr);for(var i,o,s=[],l=0;l<a.height;l++)s.push(0);for(var c=0;c<a.problems.length;c++){var u=a.problems[c];if("collision"==u.type){for(var d=t.nodeAt(u.pos),p=0;p<d.attrs.rowspan;p++)s[u.row+p]+=u.n;r.setNodeMarkup(r.mapping.map(n+1+u.pos),null,O(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 f=t.nodeAt(u.pos);r.setNodeMarkup(r.mapping.map(n+1+u.pos),null,E(f.attrs,"rowspan",f.attrs.rowspan-u.n))}else if("colwidth mismatch"==u.type){var h=t.nodeAt(u.pos);r.setNodeMarkup(r.mapping.map(n+1+u.pos),null,E(h.attrs,"colwidth",u.colwidth))}}for(var _=0;_<s.length;_++)s[_]&&(null==i&&(i=_),o=_);for(var v=0,g=n+1;v<a.height;v++){var b=t.child(v),w=g+b.nodeSize,x=s[v];if(x>0){var k="cell";b.firstChild&&(k=b.firstChild.type.spec.tableRole);for(var D=[],M=0;M<x;M++)D.push(y(e.schema)[k].createAndFill());var S=0!=v&&i!=v-1||o!=v?w-1:g+1;r.insert(r.mapping.map(S),D)}g=w}return r.setMeta(ee,{fixTables:!0})}(e,t,r,n))};return t?t.doc!=e.doc&&function e(t,n,r,a){var i=t.childCount,o=n.childCount;e:for(var s=0,l=0;s<o;s++){for(var c=n.child(s),u=l,d=Math.min(i,s+3);u<d;u++)if(t.child(u)==c){l=u+1,r+=c.nodeSize;continue e}a(c,r),l<i&&t.child(l).sameMarkup(c)?e(t.child(l),c,r+1,a):c.nodesBetween(0,c.content.size,a,r+1),r+=c.nodeSize}}(t.doc,e.doc,0,r):e.doc.descendants(r),n}function ne(e){var t,n=e.selection,r=k(e),a=r.node(-1),i=r.start(-1),o=m.get(a);return(t=n instanceof P?o.rectBetween(n.$anchorCell.pos-i,n.$headCell.pos-i):o.findCell(r.pos-i)).tableStart=i,t.map=o,t.table=a,t}function re(e,t,n){var r=t.map,a=t.tableStart,i=t.table,o=n>0?-1:0;A(r,i,n+o)&&(o=0==n||n==r.width?null:0);for(var s=0;s<r.height;s++){var l=s*r.width+n;if(n>0&&n<r.width&&r.map[l-1]==r.map[l]){var c=r.map[l],u=i.nodeAt(c);e.setNodeMarkup(e.mapping.map(a+c),null,j(u.attrs,n-r.colCount(c))),s+=u.attrs.rowspan-1}else{var d=null==o?y(i.type.schema).cell:i.nodeAt(r.map[l+o]).type,p=r.positionAt(s,n,i);e.insert(e.mapping.map(a+p),d.createAndFill())}}return e}function ae(e,t){if(!x(e))return!1;if(t){var n=ne(e);t(re(e.tr,n,n.left))}return!0}function ie(e,t){if(!x(e))return!1;if(t){var n=ne(e);t(re(e.tr,n,n.right))}return!0}function oe(e,t,n){for(var r=t.map,a=t.table,i=t.tableStart,o=e.mapping.maps.length,s=0;s<r.height;){var l=s*r.width+n,c=r.map[l],u=a.nodeAt(c);if(n>0&&r.map[l-1]==c||n<r.width-1&&r.map[l+1]==c)e.setNodeMarkup(e.mapping.slice(o).map(i+c),null,O(u.attrs,n-r.colCount(c)));else{var d=e.mapping.slice(o).map(i+c);e.delete(d,d+u.nodeSize)}s+=u.attrs.rowspan}}function se(e,t){if(!x(e))return!1;if(t){var n=ne(e),r=e.tr;if(0==n.left&&n.right==n.map.width)return!1;for(var a=n.right-1;oe(r,n,a),a!=n.left;a--)n.table=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc,n.map=m.get(n.table);t(r)}return!0}function le(e,t,n){for(var r=y(t.type.schema).header_cell,a=0;a<e.width;a++)if(t.nodeAt(e.map[a+n*e.width]).type!=r)return!1;return!0}function ce(e,t,n){for(var r=t.map,a=t.tableStart,i=t.table,o=a,s=0;s<n;s++)o+=i.child(s).nodeSize;var l=[],c=n>0?-1:0;le(r,i,n+c)&&(c=0==n||n==r.height?null:0);for(var u=0,d=r.width*n;u<r.width;u++,d++)if(n>0&&n<r.height&&r.map[d]==r.map[d-r.width]){var p=r.map[d],f=i.nodeAt(p).attrs;e.setNodeMarkup(a+p,null,E(f,"rowspan",f.rowspan+1)),u+=f.colspan-1}else{var m=null==c?y(i.type.schema).cell:i.nodeAt(r.map[d+c*r.width]).type;l.push(m.createAndFill())}return e.insert(o,y(i.type.schema).row.create(null,l)),e}function ue(e,t){if(!x(e))return!1;if(t){var n=ne(e);t(ce(e.tr,n,n.top))}return!0}function de(e,t){if(!x(e))return!1;if(t){var n=ne(e);t(ce(e.tr,n,n.bottom))}return!0}function pe(e,t,n){for(var r=t.map,a=t.table,i=t.tableStart,o=0,s=0;s<n;s++)o+=a.child(s).nodeSize;var l=o+a.child(n).nodeSize,c=e.mapping.maps.length;e.delete(o+i,l+i);for(var u=0,d=n*r.width;u<r.width;u++,d++){var p=r.map[d];if(n>0&&p==r.map[d-r.width]){var f=a.nodeAt(p).attrs;e.setNodeMarkup(e.mapping.slice(c).map(p+i),null,E(f,"rowspan",f.rowspan-1)),u+=f.colspan-1}else if(n<r.width&&p==r.map[d+r.width]){var m=a.nodeAt(p),h=m.type.create(E(m.attrs,"rowspan",m.attrs.rowspan-1),m.content),_=r.positionAt(n+1,u,a);e.insert(e.mapping.slice(c).map(i+_),h),u+=m.attrs.colspan-1}}}function fe(e,t){if(!x(e))return!1;if(t){var n=ne(e),r=e.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(var a=n.bottom-1;pe(r,n,a),a!=n.top;a--)n.table=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc,n.map=m.get(n.table);t(r)}return!0}function me(e){var t=e.content;return 1==t.childCount&&t.firstChild.isTextblock&&0==t.firstChild.childCount}function he(e,t){var n=e.selection;if(!(n instanceof P)||n.$anchorCell.pos==n.$headCell.pos)return!1;var r=ne(e),a=r.map;if(function(e,t){for(var n=e.width,r=e.height,a=e.map,i=t.top*n+t.left,o=i,s=(t.bottom-1)*n+t.left,l=i+(t.right-t.left-1),c=t.top;c<t.bottom;c++){if(t.left>0&&a[o]==a[o-1]||t.right<n&&a[l]==a[l+1])return!0;o+=n,l+=n}for(var u=t.left;u<t.right;u++){if(t.top>0&&a[i]==a[i-n]||t.bottom<r&&a[s]==a[s+n])return!0;i++,s++}return!1}(a,r))return!1;if(t){for(var i,s,l=e.tr,c={},u=o.Fragment.empty,d=r.top;d<r.bottom;d++)for(var p=r.left;p<r.right;p++){var f=a.map[d*a.width+p],m=r.table.nodeAt(f);if(!c[f])if(c[f]=!0,null==i)i=f,s=m;else{me(m)||(u=u.append(m.content));var h=l.mapping.map(f+r.tableStart);l.delete(h,h+m.nodeSize)}}if(l.setNodeMarkup(i+r.tableStart,null,E(j(s.attrs,s.attrs.colspan,r.right-r.left-s.attrs.colspan),"rowspan",r.bottom-r.top)),u.size){var _=i+1+s.content.size,v=me(s)?i+1:_;l.replaceWith(v+r.tableStart,_+r.tableStart,u)}l.setSelection(new P(l.doc.resolve(i+r.tableStart))),t(l)}return!0}function _e(e,t){var n=y(e.schema);return ve((function(e){var t=e.node;return n[t.type.spec.tableRole]}))(e,t)}function ve(e){return function(t,n){var r,a,i=t.selection;if(i instanceof P){if(i.$anchorCell.pos!=i.$headCell.pos)return!1;r=i.$anchorCell.nodeAfter,a=i.$anchorCell.pos}else{if(!(r=function(e){for(var t=e.depth;t>0;t--){var n=e.node(t).type.spec.tableRole;if("cell"===n||"header_cell"===n)return e.node(t)}return null}(i.$from)))return!1;a=w(i.$from).pos}if(1==r.attrs.colspan&&1==r.attrs.rowspan)return!1;if(n){var o=r.attrs,s=[],l=o.colwidth;o.rowspan>1&&(o=E(o,"rowspan",1)),o.colspan>1&&(o=E(o,"colspan",1));for(var c,u=ne(t),d=t.tr,p=0;p<u.right-u.left;p++)s.push(l?E(o,"colwidth",l&&l[p]?[l[p]]:null):o);for(var f=u.top;f<u.bottom;f++){var m=u.map.positionAt(f,u.left,u.table);f==u.top&&(m+=r.nodeSize);for(var h=u.left,_=0;h<u.right;h++,_++)h==u.left&&f==u.top||d.insert(c=d.mapping.map(m+u.tableStart,1),e({node:r,row:f,col:h}).createAndFill(s[_]))}d.setNodeMarkup(a,e({node:r,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 ge(e,t){return function(n,r){if(!x(n))return!1;var a=k(n);if(a.nodeAfter.attrs[e]===t)return!1;if(r){var i=n.tr;n.selection instanceof P?n.selection.forEachCell((function(n,r){n.attrs[e]!==t&&i.setNodeMarkup(r,null,E(n.attrs,e,t))})):i.setNodeMarkup(a.pos,null,E(a.nodeAfter.attrs,e,t)),r(i)}return!0}}function ye(e,t,n){for(var r=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1}),a=0;a<r.length;a++){var i=t.table.nodeAt(r[a]);if(i&&i.type!==n.header_cell)return!1}return!0}function be(e,t){return(t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic?function(e){return function(t,n){if(!x(t))return!1;if(n){for(var r=y(t.schema),a=ne(t),i=t.tr,o=a.map.cellsInRect("column"==e?new f(a.left,0,a.right,a.map.height):"row"==e?new f(0,a.top,a.map.width,a.bottom):a),s=o.map((function(e){return a.table.nodeAt(e)})),l=0;l<o.length;l++)s[l].type==r.header_cell&&i.setNodeMarkup(a.tableStart+o[l],r.cell,s[l].attrs);if(0==i.steps.length)for(var c=0;c<o.length;c++)i.setNodeMarkup(a.tableStart+o[c],r.header_cell,s[c].attrs);n(i)}return!0}}(e):function(t,n){if(!x(t))return!1;if(n){var r=y(t.schema),a=ne(t),i=t.tr,o=ye("row",a,r),s=ye("column",a,r),l=("column"===e?o:"row"===e&&s)?1:0,c="column"==e?new f(0,l,1,a.map.height):"row"==e?new f(l,0,a.map.width,1):a,u="column"==e?s?r.cell:r.header_cell:"row"==e?o?r.cell:r.header_cell:r.cell;a.map.cellsInRect(c).forEach((function(e){var t=e+a.tableStart,n=i.doc.nodeAt(t);n&&i.setNodeMarkup(t,u,n.attrs)})),n(i)}return!0}}var we=be("row",{useDeprecatedLogic:!0}),xe=be("column",{useDeprecatedLogic:!0}),ke=be("cell",{useDeprecatedLogic:!0});function De(e){return function(t,n){if(!x(t))return!1;var r=function(e,t){if(t<0){var n=e.nodeBefore;if(n)return e.pos-n.nodeSize;for(var r=e.index(-1)-1,a=e.before();r>=0;r--){var i=e.node(-1).child(r);if(i.childCount)return a-1-i.lastChild.nodeSize;a-=i.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;for(var o=e.node(-1),s=e.indexAfter(-1),l=e.after();s<o.childCount;s++){var c=o.child(s);if(c.childCount)return l+1;l+=c.nodeSize}}}(k(t),e);if(null!=r){if(n){var a=t.doc.resolve(r);n(t.tr.setSelection(i.TextSelection.between(a,M(a))).scrollIntoView())}return!0}}}function Me(e,t){for(var n=e.selection.$anchor,r=n.depth;r>0;r--)if("table"==n.node(r).type.spec.tableRole)return t&&t(e.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1}var Se=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")),Ce(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))};function Ce(e,t,n,r,a,i){for(var o=0,s=!0,l=t.firstChild,c=e.firstChild,u=0,d=0;u<c.childCount;u++)for(var p=c.child(u).attrs,f=p.colspan,m=p.colwidth,h=0;h<f;h++,d++){var _=a==d?i:m&&m[h],v=_?_+"px":"";o+=_||r,_||(s=!1),l?(l.style.width!=v&&(l.style.width=v),l=l.nextSibling):t.appendChild(document.createElement("col")).style.width=v}for(;l;){var g=l.nextSibling;l.parentNode.removeChild(l),l=g}s?(n.style.width=o+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=o+"px")}Se.prototype.update=function(e){return e.type==this.node.type&&(this.node=e,Ce(e,this.colgroup,this.table,this.cellMinWidth),!0)},Se.prototype.ignoreMutation=function(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))};var Le=new i.PluginKey("tableColumnResizing");function Te(e){void 0===e&&(e={});var t=e.handleWidth;void 0===t&&(t=5);var n=e.cellMinWidth;void 0===n&&(n=25);var r=e.View;void 0===r&&(r=Se);var a=e.lastColumnResizable;return void 0===a&&(a=!0),new i.Plugin({key:Le,state:{init:function(e,t){return this.spec.props.nodeViews[y(t.schema).table.name]=function(e,t){return new r(e,n,t)},new Ee(-1,!1)},apply:function(e,t){return t.apply(e)}},props:{attributes:function(e){return Le.getState(e).activeHandle>-1?{class:"resize-cursor"}:null},handleDOMEvents:{mousemove:function(e,n){!function(e,t,n,r,a){var i=Le.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=Oe(e,t,"left"):u-t.clientX<=n&&(s=Oe(e,t,"right"))}if(s!=i.activeHandle){if(!a&&-1!==s){var d=e.state.doc.resolve(s),p=d.node(-1),f=m.get(p),h=d.start(-1);if(f.colCount(d.pos-h)+d.nodeAfter.attrs.colspan-1==f.width-1)return}Ae(e,s)}}}(e,n,t,0,a)},mouseleave:function(e){!function(e){var t=Le.getState(e.state);t.activeHandle>-1&&!t.dragging&&Ae(e,-1)}(e)},mousedown:function(e,t){!function(e,t,n){var r=Le.getState(e.state);if(-1==r.activeHandle||r.dragging)return!1;var a=e.state.doc.nodeAt(r.activeHandle),i=function(e,t,n){var r=n.colspan,a=n.colwidth,i=a&&a[a.length-1];if(i)return i;var o=e.domAtPos(t),s=o.node.childNodes[o.offset].offsetWidth,l=r;if(a)for(var c=0;c<r;c++)a[c]&&(s-=a[c],l--);return s/l}(e,r.activeHandle,a.attrs);function o(t){window.removeEventListener("mouseup",o),window.removeEventListener("mousemove",s);var r=Le.getState(e.state);r.dragging&&(function(e,t,n){for(var r=e.state.doc.resolve(t),a=r.node(-1),i=m.get(a),o=r.start(-1),s=i.colCount(r.pos-o)+r.nodeAfter.attrs.colspan-1,l=e.state.tr,c=0;c<i.height;c++){var u=c*i.width+s;if(!c||i.map[u]!=i.map[u-i.width]){var d=i.map[u],p=a.nodeAt(d).attrs,f=1==p.colspan?0:s-i.colCount(d);if(!p.colwidth||p.colwidth[f]!=n){var h=p.colwidth?p.colwidth.slice():Pe(p.colspan);h[f]=n,l.setNodeMarkup(o+d,null,E(p,"colwidth",h))}}}l.docChanged&&e.dispatch(l)}(e,r.activeHandle,je(r.dragging,t,n)),e.dispatch(e.state.tr.setMeta(Le,{setDragging:null})))}function s(t){if(!t.which)return o(t);var r=Le.getState(e.state),a=je(r.dragging,t,n);!function(e,t,n,r){for(var a=e.state.doc.resolve(t),i=a.node(-1),o=a.start(-1),s=m.get(i).colCount(a.pos-o)+a.nodeAfter.attrs.colspan-1,l=e.domAtPos(a.start(-1)).node;"TABLE"!=l.nodeName;)l=l.parentNode;Ce(i,l.firstChild,l,r,s,n)}(e,r.activeHandle,a,n)}e.dispatch(e.state.tr.setMeta(Le,{setDragging:{startX:t.clientX,startWidth:i}})),window.addEventListener("mouseup",o),window.addEventListener("mousemove",s),t.preventDefault()}(e,t,n)}},decorations:function(e){var t=Le.getState(e);if(t.activeHandle>-1)return function(e,t){for(var n=[],r=e.doc.resolve(t),a=r.node(-1),i=m.get(a),o=r.start(-1),s=i.colCount(r.pos-o)+r.nodeAfter.attrs.colspan,c=0;c<i.height;c++){var u=s+c*i.width-1;if(!(s!=i.width&&i.map[u]==i.map[u+1]||0!=c&&i.map[u-1]==i.map[u-1-i.width])){var d=i.map[u],p=o+d+a.nodeAt(d).nodeSize-1,f=document.createElement("div");f.className="column-resize-handle",n.push(l.a.widget(p,f))}}return l.b.create(e.doc,n)}(e,t.activeHandle)},nodeViews:{}}})}var Ee=function(e,t){this.activeHandle=e,this.dragging=t};function Oe(e,t,n){var r=e.posAtCoords({left:t.clientX,top:t.clientY});if(!r)return-1;var a=r.pos,i=w(e.state.doc.resolve(a));if(!i)return-1;if("right"==n)return i.pos;var o=m.get(i.node(-1)),s=i.start(-1),l=o.map.indexOf(i.pos-s);return l%o.width==0?-1:s+o.map[l-1]}function je(e,t,n){var r=t.clientX-e.startX;return Math.max(n,e.startWidth+r)}function Ae(e,t){e.dispatch(e.state.tr.setMeta(Le,{setHandle:t}))}function Pe(e){for(var t=[],n=0;n<e;n++)t.push(0);return t}function Ye(e){void 0===e&&(e={});var t=e.allowTableNodeSelection;return void 0===t&&(t=!1),new i.Plugin({key:b,state:{init:function(){return null},apply:function(e,t){var n=e.getMeta(b);if(null!=n)return-1==n?null:n;if(null==t||!e.docChanged)return t;var r=e.mapping.mapResult(t),a=r.deleted,i=r.pos;return a?null:i}},props:{decorations:$,handleDOMEvents:{mousedown:J},createSelectionBetween:function(e){if(null!=b.getState(e.state))return e.state.selection},handleTripleClick:K,handleKeyDown:B,handlePaste:G},appendTransaction:function(e,n,r){return function(e,t,n){var r,a,o=(t||e).selection,s=(t||e).doc;if(o instanceof i.NodeSelection&&(a=o.node.type.spec.tableRole)){if("cell"==a||"header_cell"==a)r=P.create(s,o.from);else if("row"==a){var l=s.resolve(o.from+1);r=P.rowSelection(l,l)}else if(!n){var c=m.get(o.node),u=o.from+1,d=u+c.map[c.width*c.height-1];r=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 r=t.pos,a=n.pos,i=t.depth;i>=0&&!(t.after(i+1)<t.end(i));i--,r++);for(var o=n.depth;o>=0&&!(n.before(o+1)>n.start(o));o--,a--);return r==a&&/row|table/.test(t.node(i).type.spec.tableRole)}(o)?r=i.TextSelection.create(s,o.from):o instanceof i.TextSelection&&function(e){for(var t,n,r=e.$from,a=e.$to,i=r.depth;i>0;i--){var o=r.node(i);if("cell"===o.type.spec.tableRole||"header_cell"===o.type.spec.tableRole){t=o;break}}for(var s=a.depth;s>0;s--){var l=a.node(s);if("cell"===l.type.spec.tableRole||"header_cell"===l.type.spec.tableRole){n=l;break}}return t!==n&&0===a.parentOffset}(o)&&(r=i.TextSelection.create(s,o.$from.start(),o.$from.end()));return r&&(t||(t=e.tr)).setSelection(r),t}(r,te(r,n),t)}})}Ee.prototype.apply=function(e){var t=this,n=e.getMeta(Le);if(n&&null!=n.setHandle)return new Ee(n.setHandle,null);if(n&&void 0!==n.setDragging)return new Ee(t.activeHandle,n.setDragging);if(t.activeHandle>-1&&e.docChanged){var r=e.mapping.map(t.activeHandle,-1);D(e.doc.resolve(r))||(r=null),t=new Ee(r,t.dragging)}return t}},"55c9":function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n("c1df"))},5692:function(e,t,n){var r=n("c430"),a=n("c6cd");(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.8.0",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var r=n("d066"),a=n("241c"),i=n("7418"),o=n("825a");e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},"576a":function(e,t,n){"use strict";n.d(t,"a",(function(){return Mt})),n.d(t,"b",(function(){return Tt}));var r=n("5313"),a=n("304a"),i=n("0ac0"),o={};if("undefined"!=typeof navigator&&"undefined"!=typeof document){var s=/Edge\/(\d+)/.exec(navigator.userAgent),l=/MSIE \d/.test(navigator.userAgent),c=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);o.mac=/Mac/.test(navigator.platform);var u=o.ie=!!(l||c||s);o.ie_version=l?document.documentMode||6:c?+c[1]:s?+s[1]:null,o.gecko=!u&&/gecko\/(\d+)/i.test(navigator.userAgent),o.gecko_version=o.gecko&&+(/Firefox\/(\d+)/.exec(navigator.userAgent)||[0,0])[1];var d=!u&&/Chrome\/(\d+)/.exec(navigator.userAgent);o.chrome=!!d,o.chrome_version=d&&+d[1],o.ios=!u&&/AppleWebKit/.test(navigator.userAgent)&&/Mobile\/\w+/.test(navigator.userAgent),o.android=/Android \d/.test(navigator.userAgent),o.webkit="webkitFontSmoothing"in document.documentElement.style,o.safari=/Apple Computer/.test(navigator.vendor),o.webkit_version=o.webkit&&+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]}var p=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},f=function(e){var t=e.parentNode;return t&&11==t.nodeType?t.host:t},m=null,h=function(e,t,n){var r=m||(m=document.createRange());return r.setEnd(e,null==n?e.nodeValue.length:n),r.setStart(e,t||0),r},_=function(e,t,n,r){return n&&(g(e,t,n,r,-1)||g(e,t,n,r,1))},v=/^(img|br|input|textarea|hr)$/i;function g(e,t,n,r,a){for(;;){if(e==n&&t==r)return!0;if(t==(a<0?0:y(e))){var i=e.parentNode;if(1!=i.nodeType||b(e)||v.test(e.nodeName)||"false"==e.contentEditable)return!1;t=p(e)+(a<0?0:1),e=i}else{if(1!=e.nodeType)return!1;if("false"==(e=e.childNodes[t+(a<0?-1:0)]).contentEditable)return!1;t=a<0?y(e):0}}}function y(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function b(e){for(var t,n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}var w=function(e){var t=e.isCollapsed;return t&&o.chrome&&e.rangeCount&&!e.getRangeAt(0).collapsed&&(t=!1),t};function x(e,t){var n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function k(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function D(e,t){return"number"==typeof e?e:e[t]}function M(e){var t=e.getBoundingClientRect();return{left:t.left,right:t.left+e.clientWidth,top:t.top,bottom:t.top+e.clientHeight}}function S(e,t,n){for(var r=e.someProp("scrollThreshold")||0,a=e.someProp("scrollMargin")||5,i=e.dom.ownerDocument,o=n||e.dom;o;o=f(o))if(1==o.nodeType){var s=o==i.body||1!=o.nodeType,l=s?k(i):M(o),c=0,u=0;if(t.top<l.top+D(r,"top")?u=-(l.top-t.top+D(a,"top")):t.bottom>l.bottom-D(r,"bottom")&&(u=t.bottom-l.bottom+D(a,"bottom")),t.left<l.left+D(r,"left")?c=-(l.left-t.left+D(a,"left")):t.right>l.right-D(r,"right")&&(c=t.right-l.right+D(a,"right")),c||u)if(s)i.defaultView.scrollBy(c,u);else{var d=o.scrollLeft,p=o.scrollTop;u&&(o.scrollTop+=u),c&&(o.scrollLeft+=c);var m=o.scrollLeft-d,h=o.scrollTop-p;t={left:t.left-m,top:t.top-h,right:t.right-m,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=f(e));return t}function L(e,t){for(var n=0;n<e.length;n++){var r=e[n],a=r.dom,i=r.top,o=r.left;a.scrollTop!=i+t&&(a.scrollTop=i+t),a.scrollLeft!=o&&(a.scrollLeft=o)}}var T=null;function E(e,t){for(var n,r,a=2e8,i=0,o=t.top,s=t.top,l=e.firstChild,c=0;l;l=l.nextSibling,c++){var u=void 0;if(1==l.nodeType)u=l.getClientRects();else{if(3!=l.nodeType)continue;u=h(l).getClientRects()}for(var d=0;d<u.length;d++){var p=u[d];if(p.top<=o&&p.bottom>=s){o=Math.max(p.bottom,o),s=Math.min(p.top,s);var f=p.left>t.left?p.left-t.left:p.right<t.left?t.left-p.right:0;if(f<a){n=l,a=f,r=f&&3==n.nodeType?{left:p.right<t.left?p.right:p.left,top:t.top}:t,1==l.nodeType&&f&&(i=c+(t.left>=(p.left+p.right)/2?1:0));continue}}!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(i=c+1)}}return n&&3==n.nodeType?function(e,t){for(var n=e.nodeValue.length,r=document.createRange(),a=0;a<n;a++){r.setEnd(e,a+1),r.setStart(e,a);var i=A(r,1);if(i.top!=i.bottom&&O(t,i))return{node:e,offset:a+(t.left>=(i.left+i.right)/2?1:0)}}return{node:e,offset:0}}(n,r):!n||a&&1==n.nodeType?{node:e,offset:i}:E(n,r)}function O(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){var n,r,a,i,s=e.root;if(s.caretPositionFromPoint)try{var l=s.caretPositionFromPoint(t.left,t.top);l&&(a=(n=l).offsetNode,i=n.offset)}catch(e){}if(!a&&s.caretRangeFromPoint){var c=s.caretRangeFromPoint(t.left,t.top);c&&(a=(r=c).startContainer,i=r.startOffset)}var u,d=s.elementFromPoint(t.left,t.top+1);if(!d||!e.dom.contains(1!=d.nodeType?d.parentNode:d)){var p=e.dom.getBoundingClientRect();if(!O(t,p))return null;if(!(d=function e(t,n,r){var a=t.childNodes.length;if(a&&r.top<r.bottom)for(var i=Math.max(0,Math.min(a-1,Math.floor(a*(n.top-r.top)/(r.bottom-r.top))-2)),o=i;;){var s=t.childNodes[o];if(1==s.nodeType)for(var l=s.getClientRects(),c=0;c<l.length;c++){var u=l[c];if(O(n,u))return e(s,n,u)}if((o=(o+1)%a)==i)break}return t}(e.dom,t,p)))return null}if(o.safari&&d.draggable&&(a=i=null),d=function(e,t){var n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}(d,t),a){if(o.gecko&&1==a.nodeType&&(i=Math.min(i,a.childNodes.length))<a.childNodes.length){var f,m=a.childNodes[i];"IMG"==m.nodeName&&(f=m.getBoundingClientRect()).right<=t.left&&f.bottom>t.top&&i++}a==e.dom&&i==a.childNodes.length-1&&1==a.lastChild.nodeType&&t.top>a.lastChild.getBoundingClientRect().bottom?u=e.state.doc.content.size:0!=i&&1==a.nodeType&&"BR"==a.childNodes[i-1].nodeName||(u=function(e,t,n,r){for(var a=-1,i=t;i!=e.dom;){var o=e.docView.nearestDesc(i,!0);if(!o)return null;if(o.node.isBlock&&o.parent){var s=o.dom.getBoundingClientRect();if(s.left>r.left||s.top>r.top)a=o.posBefore;else{if(!(s.right<r.left||s.bottom<r.top))break;a=o.posAfter}}i=o.dom.parentNode}return a>-1?a:e.docView.posFromDOM(t,n)}(e,a,i,t))}null==u&&(u=function(e,t,n){var r=E(t,n),a=r.node,i=r.offset,o=-1;if(1==a.nodeType&&!a.firstChild){var s=a.getBoundingClientRect();o=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return e.docView.posFromDOM(a,i,o)}(e,d,t));var h=e.docView.nearestDesc(d,!0);return{pos:u,inside:h?h.posAtStart-h.border:-1}}function A(e,t){var n=e.getClientRects();return n.length?n[t<0?0:n.length-1]:e.getBoundingClientRect()}var P=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Y(e,t,n){var r=e.docView.domFromPos(t),a=r.node,i=r.offset,s=e.state.doc.resolve(t),l=s.parent.inlineContent,c=o.webkit||o.gecko;if(3==a.nodeType&&c&&P.test(a.nodeValue)){var u=A(h(a,i,i),n);if(o.gecko&&i&&/\s/.test(a.nodeValue[i-1])&&i<a.nodeValue.length){var d=A(h(a,i-1,i-1),-1);if(d.top==u.top){var f=A(h(a,i,i+1),-1);if(f.top!=u.top)return $(f,f.left<d.left)}}return u}if(l){for(var m=s.depth?e.docView.domAfterPos(s.before()):e.dom;n<0&&!i&&a!=m;)i=p(a),a=a.parentNode;for(;n>=0&&i==y(a)&&a!=m;)i=p(a)+1,a=a.parentNode}if(3==a.nodeType)return n<0?$(A(h(a,i-1,i),1),!1):$(A(h(a,i,i+1),-1),!0);if(!l){if(i&&(n<0||i==y(a))){var _=a.childNodes[i-1];if(1==_.nodeType)return I(_.getBoundingClientRect(),!1)}if(i<y(a)){var v=a.childNodes[i];if(1==v.nodeType)return I(v.getBoundingClientRect(),!0)}return I(a.getBoundingClientRect(),n>=0)}if(i&&(n<0||i==y(a))){var g=a.childNodes[i-1],b=3==g.nodeType?h(g,y(g)-(c?0:1)):1==g.nodeType&&"BR"!=g.nodeName?g:null;if(b)return $(A(b,1),!1)}if(i<y(a)){var w=a.childNodes[i],x=3==w.nodeType?h(w,0,c?0:1):1==w.nodeType?w:null;if(x)return $(A(x,-1),!0)}return $(A(3==a.nodeType?h(a):a,-n),n>=0)}function $(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 I(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 N(e,t,n){var r=e.state,a=e.root.activeElement;r!=t&&e.updateState(t),a!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),a!=e.dom&&a&&a.focus()}}var z=/[\u0590-\u08ac]/,F=null,R=null,H=!1;function B(e,t,n){return F==t&&R==n?H:(F=t,R=n,H="up"==n||"down"==n?function(e,t,n){var r=t.selection,a="up"==n?r.$anchor.min(r.$head):r.$anchor.max(r.$head);return N(e,t,(function(){for(var t=e.docView.domFromPos(a.pos).node;;){var r=e.docView.nearestDesc(t,!0);if(!r)break;if(r.node.isBlock){t=r.dom;break}t=r.dom.parentNode}for(var i=Y(e,a.pos,1),o=t.firstChild;o;o=o.nextSibling){var s=void 0;if(1==o.nodeType)s=o.getClientRects();else{if(3!=o.nodeType)continue;s=h(o,0,o.nodeValue.length).getClientRects()}for(var l=0;l<s.length;l++){var c=s[l];if(c.bottom>c.top&&("up"==n?c.bottom<i.top+1:c.top>i.bottom-1))return!1}}return!0}))}(e,t,n):function(e,t,n){var r=t.selection.$head;if(!r.parent.isTextblock)return!1;var a=r.parentOffset,i=!a,o=a==r.parent.content.size,s=getSelection();return z.test(r.parent.textContent)&&s.modify?N(e,t,(function(){var t=s.getRangeAt(0),a=s.focusNode,i=s.focusOffset,o=s.caretBidiLevel;s.modify("move",n,"character");var l=!(r.depth?e.docView.domAfterPos(r.before()):e.dom).contains(1==s.focusNode.nodeType?s.focusNode:s.focusNode.parentNode)||a==s.focusNode&&i==s.focusOffset;return s.removeAllRanges(),s.addRange(t),null!=o&&(s.caretBidiLevel=o),l})):"left"==n||"backward"==n?i:o}(e,t,n))}var q=function(e,t,n,r){this.parent=e,this.children=t,this.dom=n,n.pmViewDesc=this,this.contentDOM=r,this.dirty=0},U={beforePosition:{configurable:!0},size:{configurable:!0},border:{configurable:!0},posBefore:{configurable:!0},posAtStart:{configurable:!0},posAfter:{configurable:!0},posAtEnd:{configurable:!0},contentLost:{configurable:!0}};q.prototype.matchesWidget=function(){return!1},q.prototype.matchesMark=function(){return!1},q.prototype.matchesNode=function(){return!1},q.prototype.matchesHack=function(){return!1},U.beforePosition.get=function(){return!1},q.prototype.parseRule=function(){return null},q.prototype.stopEvent=function(){return!1},U.size.get=function(){for(var e=0,t=0;t<this.children.length;t++)e+=this.children[t].size;return e},U.border.get=function(){return 0},q.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()},q.prototype.posBeforeChild=function(e){for(var t=0,n=this.posAtStart;t<this.children.length;t++){var r=this.children[t];if(r==e)return n;n+=r.size}},U.posBefore.get=function(){return this.parent.posBeforeChild(this)},U.posAtStart.get=function(){return this.parent?this.parent.posBeforeChild(this)+this.border:0},U.posAfter.get=function(){return this.posBefore+this.size},U.posAtEnd.get=function(){return this.posAtStart+this.size-2*this.border},q.prototype.localPosFromDOM=function(e,t,n){if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode)){if(n<0){var r,a;if(e==this.contentDOM)r=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;r=e.previousSibling}for(;r&&(!(a=r.pmViewDesc)||a.parent!=this);)r=r.previousSibling;return r?this.posBeforeChild(a)+a.size:this.posAtStart}var i,o;if(e==this.contentDOM)i=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&(!(o=i.pmViewDesc)||o.parent!=this);)i=i.nextSibling;return i?this.posBeforeChild(o):this.posAtEnd}var s;if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))s=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(var l=e;;l=l.parentNode){if(l==this.dom){s=!1;break}if(l.parentNode.firstChild!=l)break}if(null==s&&t==e.childNodes.length)for(var c=e;;c=c.parentNode){if(c==this.dom){s=!0;break}if(c.parentNode.lastChild!=c)break}}return(null==s?n>0:s)?this.posAtEnd:this.posAtStart},q.prototype.nearestDesc=function(e,t){for(var n=!0,r=e;r;r=r.parentNode){var a=this.getDesc(r);if(a&&(!t||a.node)){if(!n||!a.nodeDOM||(1==a.nodeDOM.nodeType?a.nodeDOM.contains(1==e.nodeType?e:e.parentNode):a.nodeDOM==e))return a;n=!1}}},q.prototype.getDesc=function(e){for(var t=e.pmViewDesc,n=t;n;n=n.parent)if(n==this)return t},q.prototype.posFromDOM=function(e,t,n){for(var r=e;r;r=r.parentNode){var a=this.getDesc(r);if(a)return a.localPosFromDOM(e,t,n)}return-1},q.prototype.descAt=function(e){for(var t=0,n=0;t<this.children.length;t++){var r=this.children[t],a=n+r.size;if(n==e&&a!=n){for(;!r.border&&r.children.length;)r=r.children[0];return r}if(e<a)return r.descAt(e-n-r.border);n=a}},q.prototype.domFromPos=function(e){if(!this.contentDOM)return{node:this.dom,offset:0};for(var t=0,n=0;;n++){if(t==e){for(;n<this.children.length&&(this.children[n].beforePosition||this.children[n].dom.parentNode!=this.contentDOM);)n++;return{node:this.contentDOM,offset:n==this.children.length?this.contentDOM.childNodes.length:p(this.children[n].dom)}}if(n==this.children.length)throw new Error("Invalid position "+e);var r=this.children[n],a=t+r.size;if(e<a)return r.domFromPos(e-t-r.border);t=a}},q.prototype.parseRange=function(e,t,n){if(void 0===n&&(n=0),0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};for(var r=-1,a=-1,i=n,o=0;;o++){var s=this.children[o],l=i+s.size;if(-1==r&&e<=l){var c=i+s.border;if(e>=c&&t<=l-s.border&&s.node&&s.contentDOM&&this.contentDOM.contains(s.contentDOM))return s.parseRange(e,t,c);e=i;for(var u=o;u>0;u--){var d=this.children[u-1];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(1)){r=p(d.dom)+1;break}e-=d.size}-1==r&&(r=0)}if(r>-1&&(l>t||o==this.children.length-1)){t=l;for(var f=o+1;f<this.children.length;f++){var m=this.children[f];if(m.size&&m.dom.parentNode==this.contentDOM&&!m.emptyChildAt(-1)){a=p(m.dom);break}t+=m.size}-1==a&&(a=this.contentDOM.childNodes.length);break}i=l}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:a}},q.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)},q.prototype.domAfterPos=function(e){var t=this.domFromPos(e),n=t.node,r=t.offset;if(1!=n.nodeType||r==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[r]},q.prototype.setSelection=function(e,t,n,r){for(var a=Math.min(e,t),i=Math.max(e,t),s=0,l=0;s<this.children.length;s++){var c=this.children[s],u=l+c.size;if(a>l&&i<u)return c.setSelection(e-l-c.border,t-l-c.border,n,r);l=u}var d=this.domFromPos(e),p=this.domFromPos(t),f=n.getSelection(),m=!1;if((o.gecko||o.safari)&&e==t)if(3==d.node.nodeType)m=d.offset&&"\n"==d.node.nodeValue[d.offset-1];else{var h=d.node.childNodes[d.offset-1];m=h&&("BR"==h.nodeName||"false"==h.contentEditable)}if(r||m&&o.safari||!_(d.node,d.offset,f.anchorNode,f.anchorOffset)||!_(p.node,p.offset,f.focusNode,f.focusOffset)){var v=!1;if((f.extend||e==t)&&!m){f.collapse(d.node,d.offset);try{e!=t&&f.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),f.removeAllRanges(),f.addRange(y)}}},q.prototype.ignoreMutation=function(e){return!this.contentDOM&&"selection"!=e.type},U.contentLost.get=function(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)},q.prototype.markDirty=function(e,t){for(var n=0,r=0;r<this.children.length;r++){var a=this.children[r],i=n+a.size;if(n==i?e<=i&&t>=n:e<i&&t>n){var o=n+a.border,s=i-a.border;if(e>=o&&t<=s)return this.dirty=e==n||t==i?2:1,void(e!=o||t!=s||!a.contentLost&&a.dom.parentNode==this.contentDOM?a.markDirty(e-o,t-o):a.dirty=3);a.dirty=3}n=i}this.dirty=2},q.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(q.prototype,U);var V=[],W=function(e){function t(t,n,r,a){var i,o=n.type.toDOM;if("function"==typeof o&&(o=o(r,(function(){return i?i.parent?i.parent.posBeforeChild(i):void 0:a}))),!n.type.spec.raw){if(1!=o.nodeType){var s=document.createElement("span");s.appendChild(o),o=s}o.contentEditable=!1,o.classList.add("ProseMirror-widget")}e.call(this,t,V,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}(q),K=function(e){function t(t,n,r,a){e.call(this,t,V,n,null),this.textDOM=r,this.text=a}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={size:{configurable:!0}};return n.size.get=function(){return this.text.length},t.prototype.localPosFromDOM=function(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t},t.prototype.domFromPos=function(e){return{node:this.textDOM,offset:e}},t.prototype.ignoreMutation=function(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue},Object.defineProperties(t.prototype,n),t}(q),G=function(e){function t(t,n,r,a){e.call(this,t,[],r,a),this.mark=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.create=function(e,n,r,i){var o=i.nodeViews[n.type.name],s=o&&o(n,i,r);return s&&s.dom||(s=a.DOMSerializer.renderSpec(document,n.type.spec.toDOM(n,r))),new t(e,n,s.dom,s.contentDOM||s.dom)},t.prototype.parseRule=function(){return{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}},t.prototype.matchesMark=function(e){return 3!=this.dirty&&this.mark.eq(e)},t.prototype.markDirty=function(t,n){if(e.prototype.markDirty.call(this,t,n),0!=this.dirty){for(var r=this.parent;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=0}},t.prototype.slice=function(e,n,r){var a=t.create(this.parent,this.mark,!0,r),i=this.children,o=this.size;n<o&&(i=de(i,n,o,r)),e>0&&(i=de(i,0,e,r));for(var s=0;s<i.length;s++)i[s].parent=a;return a.children=i,a},t}(q),J=function(e){function t(t,n,r,a,i,o,s,l,c){e.call(this,t,n.isLeaf?V:[],i,o),this.nodeDOM=s,this.node=n,this.outerDeco=r,this.innerDeco=a,o&&this.updateChildren(l,c)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={size:{configurable:!0},border:{configurable:!0}};return t.create=function(e,n,r,i,o,s){var l,c,u=o.nodeViews[n.type.name],d=u&&u(n,o,(function(){return c?c.parent?c.parent.posBeforeChild(c):void 0:s}),r),p=d&&d.dom,f=d&&d.contentDOM;if(n.isText)if(p){if(3!=p.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else p=document.createTextNode(n.text);else p||(p=(l=a.DOMSerializer.renderSpec(document,n.type.spec.toDOM(n))).dom,f=l.contentDOM);f||n.isText||"BR"==p.nodeName||(p.hasAttribute("contenteditable")||(p.contentEditable=!1),n.type.spec.draggable&&(p.draggable=!0));var m=p;return p=oe(p,r,n),d?c=new ee(e,n,r,i,p,f,m,d,o,s+1):n.isText?new X(e,n,r,i,p,m,o):new t(e,n,r,i,p,f,m,o,s+1)},t.prototype.parseRule=function(){var e=this;if(this.node.type.spec.reparseInView)return null;var t={node:this.node.type.name,attrs:this.node.attrs};return this.node.type.spec.code&&(t.preserveWhitespace="full"),this.contentDOM&&!this.contentLost?t.contentElement=this.contentDOM:t.getContent=function(){return e.contentDOM?a.Fragment.empty:e.node.content},t},t.prototype.matchesNode=function(e,t,n){return 0==this.dirty&&e.eq(this.node)&&se(t,this.outerDeco)&&n.eq(this.innerDeco)},n.size.get=function(){return this.node.nodeSize},n.border.get=function(){return this.node.isLeaf?0:1},t.prototype.updateChildren=function(e,t){var n=this,r=this.node.inlineContent,i=t,s=r&&e.composing&&this.localCompositionNode(e,t),l=new ce(this,s&&s.node);!function(e,t,n,r){var a=t.locals(e),i=0;if(0!=a.length)for(var o=0,s=[],l=null,c=0;;){if(o<a.length&&a[o].to==i){for(var u=a[o++],d=void 0;o<a.length&&a[o].to==i;)(d||(d=[u])).push(a[o++]);if(d){d.sort(ue);for(var p=0;p<d.length;p++)n(d[p],c,!!l)}else n(u,c,!!l)}var f=void 0,m=void 0;if(l)m=-1,f=l,l=null;else{if(!(c<e.childCount))break;m=c,f=e.child(c++)}for(var h=0;h<s.length;h++)s[h].to<=i&&s.splice(h--,1);for(;o<a.length&&a[o].from<=i&&a[o].to>i;)s.push(a[o++]);var _=i+f.nodeSize;if(f.isText){var v=_;o<a.length&&a[o].from<v&&(v=a[o].from);for(var g=0;g<s.length;g++)s[g].to<v&&(v=s[g].to);v<_&&(l=f.cut(v-i),f=f.cut(0,v-i),_=v,m=-1)}var y=s.length?f.isInline&&!f.isLeaf?s.filter((function(e){return!e.inline})):s.slice():V;r(f,y,t.forChild(i,f),m),i=_}else for(var b=0;b<e.childCount;b++){var w=e.child(b);r(w,a,t.forChild(i,w),b),i+=w.nodeSize}}(this.node,this.innerDeco,(function(t,o,s){t.spec.marks?l.syncToMarks(t.spec.marks,r,e):t.type.side>=0&&!s&&l.syncToMarks(o==n.node.childCount?a.Mark.none:n.node.child(o).marks,r,e),l.placeWidget(t,e,i)}),(function(t,n,a,o){l.syncToMarks(t.marks,r,e),l.findNodeMatch(t,n,a,o)||l.updateNextNode(t,n,a,e,o)||l.addNode(t,n,a,e,i),i+=t.nodeSize})),l.syncToMarks(V,r,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(s&&this.protectLocalComposition(e,s),function e(t,n,r){for(var a=t.firstChild,i=!1,o=0;o<n.length;o++){var s=n[o],l=s.dom;if(l.parentNode==t){for(;l!=a;)a=le(a),i=!0;a=a.nextSibling}else i=!0,t.insertBefore(l,a);if(s instanceof G){var c=a?a.previousSibling:t.lastChild;e(s.contentDOM,s.children,r),a=c?c.nextSibling:t.firstChild}}for(;a;)a=le(a),i=!0;i&&r.trackWrites==t&&(r.trackWrites=null)}(this.contentDOM,this.children,e),o.ios&&function(e){if("UL"==e.nodeName||"OL"==e.nodeName){var t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}(this.dom))},t.prototype.localCompositionNode=function(e,t){var n=e.state.selection,a=n.from,i=n.to;if(!(!(e.state.selection instanceof r.TextSelection)||a<t||i>t+this.node.content.size)){var o=e.root.getSelection(),s=function(e,t){for(;;){if(3==e.nodeType)return e;if(1==e.nodeType&&t>0){if(e.childNodes.length>t&&3==e.childNodes[t].nodeType)return e.childNodes[t];e=e.childNodes[t-1],t=y(e)}else{if(!(1==e.nodeType&&t<e.childNodes.length))return null;e=e.childNodes[t],t=0}}}(o.focusNode,o.focusOffset);if(s&&this.dom.contains(s.parentNode)){var l=s.nodeValue,c=function(e,t,n,r){for(var a=0,i=0;a<e.childCount&&i<=r;){var o=e.child(a++),s=i;if(i+=o.nodeSize,o.isText){for(var l=o.text;a<e.childCount;){var c=e.child(a++);if(i+=c.nodeSize,!c.isText)break;l+=c.text}if(i>=n){var u=l.lastIndexOf(t,r-s);if(u>=0&&u+t.length+s>=n)return s+u}}}return-1}(this.node.content,l,a-t,i-t);return c<0?null:{node:s,pos:c,text:l}}}},t.prototype.protectLocalComposition=function(e,t){var n=t.node,r=t.pos,a=t.text;if(!this.getDesc(n)){for(var i=n;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=null)}var o=new K(this,i,n,a);e.compositionNodes.push(o),this.children=de(this.children,r,r+a.length,e,o)}},t.prototype.update=function(e,t,n,r){return!(3==this.dirty||!e.sameMarkup(this.node)||(this.updateInner(e,t,n,r),0))},t.prototype.updateInner=function(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=0},t.prototype.updateOuterDeco=function(e){if(!se(e,this.outerDeco)){var t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=ae(this.dom,this.nodeDOM,re(this.outerDeco,this.node,t),re(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}(q);function Z(e,t,n,r,a){return oe(r,t,e),new J(null,e,t,n,r,r,r,a,0)}var X=function(e){function t(t,n,r,a,i,o,s){e.call(this,t,n,r,a,i,null,o,s)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.parseRule=function(){for(var e=this.nodeDOM.parentNode;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}},t.prototype.update=function(e,t,n,r){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!e.sameMarkup(this.node)||(this.updateOuterDeco(t),0==this.dirty&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=0,0))},t.prototype.inParent=function(){for(var e=this.parent.contentDOM,t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1},t.prototype.domFromPos=function(e){return{node:this.nodeDOM,offset:e}},t.prototype.localPosFromDOM=function(t,n,r){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):e.prototype.localPosFromDOM.call(this,t,n,r)},t.prototype.ignoreMutation=function(e){return"characterData"!=e.type&&"selection"!=e.type},t.prototype.slice=function(e,n,r){var a=this.node.cut(e,n),i=document.createTextNode(a.text);return new t(this.parent,a,this.outerDeco,this.innerDeco,i,i,r)},t}(J),Q=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}(q),ee=function(e){function t(t,n,r,a,i,o,s,l,c,u){e.call(this,t,n,r,a,i,o,s,c,u),this.spec=l}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.update=function(t,n,r,a){if(3==this.dirty)return!1;if(this.spec.update){var i=this.spec.update(t,n);return i&&this.updateInner(t,n,r,a),i}return!(!this.contentDOM&&!t.isLeaf)&&e.prototype.update.call(this,t,n,r,a)},t.prototype.selectNode=function(){this.spec.selectNode?this.spec.selectNode():e.prototype.selectNode.call(this)},t.prototype.deselectNode=function(){this.spec.deselectNode?this.spec.deselectNode():e.prototype.deselectNode.call(this)},t.prototype.setSelection=function(t,n,r,a){this.spec.setSelection?this.spec.setSelection(t,n,r):e.prototype.setSelection.call(this,t,n,r,a)},t.prototype.destroy=function(){this.spec.destroy&&this.spec.destroy(),e.prototype.destroy.call(this)},t.prototype.stopEvent=function(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)},t.prototype.ignoreMutation=function(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):e.prototype.ignoreMutation.call(this,t)},t}(J);function te(e){e&&(this.nodeName=e)}te.prototype=Object.create(null);var ne=[new te];function re(e,t,n){if(0==e.length)return ne;for(var r=n?ne[0]:new te,a=[r],i=0;i<e.length;i++){var o=e[i].type.attrs;if(o)for(var s in o.nodeName&&a.push(r=new te(o.nodeName)),o){var l=o[s];null!=l&&(n&&1==a.length&&a.push(r=new te(t.isInline?"span":"div")),"class"==s?r.class=(r.class?r.class+" ":"")+l:"style"==s?r.style=(r.style?r.style+";":"")+l:"nodeName"!=s&&(r[s]=l))}}return a}function ae(e,t,n,r){if(n==ne&&r==ne)return t;for(var a=t,i=0;i<r.length;i++){var o=r[i],s=n[i];if(i){var l=void 0;s&&s.nodeName==o.nodeName&&a!=e&&(l=a.parentNode)&&l.tagName.toLowerCase()==o.nodeName||((l=document.createElement(o.nodeName)).pmIsDeco=!0,l.appendChild(a),s=ne[0]),a=l}ie(a,s||ne[0],o)}return a}function ie(e,t,n){for(var r in t)"class"==r||"style"==r||"nodeName"==r||r in n||e.removeAttribute(r);for(var a in n)"class"!=a&&"style"!=a&&"nodeName"!=a&&n[a]!=t[a]&&e.setAttribute(a,n[a]);if(t.class!=n.class){for(var i=t.class?t.class.split(" "):V,o=n.class?n.class.split(" "):V,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 oe(e,t,n){return ae(e,e,ne,re(t,n,1!=e.nodeType))}function se(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 le(e){var t=e.nextSibling;return e.parentNode.removeChild(e),t}var ce=function(e,t){this.top=e,this.lock=t,this.index=0,this.stack=[],this.changed=!1;var n=function(e,t){for(var n=[],r=e.childCount,a=t.length-1;r>0&&a>=0;a--){var i=t[a],o=i.node;if(o){if(o!=e.child(r-1))break;n.push(i),--r}}return{nodes:n.reverse(),offset:r}}(e.node.content,e.children);this.preMatched=n.nodes,this.preMatchOffset=n.offset};function ue(e,t){return e.type.side-t.type.side}function de(e,t,n,r,a){for(var i=[],o=0,s=0;o<e.length;o++){var l=e[o],c=s,u=s+=l.size;c>=n||u<=t?i.push(l):(c<t&&i.push(l.slice(0,t-c,r)),a&&(i.push(a),a=null),u>n&&i.push(l.slice(n-c,l.size,r)))}return i}function pe(e,t){var n=e.root.getSelection(),a=e.state.doc;if(!n.focusNode)return null;var i=e.docView.nearestDesc(n.focusNode),o=i&&0==i.size,s=e.docView.posFromDOM(n.focusNode,n.focusOffset);if(s<0)return null;var l,c,u=a.resolve(s);if(w(n)){for(l=u;i&&!i.node;)i=i.parent;if(i&&i.node.isAtom&&r.NodeSelection.isSelectable(i.node)&&i.parent&&(!i.node.isInline||!function(e,t,n){for(var r=0==t,a=t==y(e);r||a;){if(e==n)return!0;var i=p(e);if(!(e=e.parentNode))return!1;r=r&&0==i,a=a&&i==y(e)}}(n.focusNode,n.focusOffset,i.dom))){var d=i.posBefore;c=new r.NodeSelection(s==d?u:a.resolve(d))}}else{var f=e.docView.posFromDOM(n.anchorNode,n.anchorOffset);if(f<0)return null;l=a.resolve(f)}return c||(c=be(e,l,u,"pointer"==t||e.state.selection.head<u.pos&&!o?1:-1)),c}function fe(e,t){var n=e.state.selection;if(ge(e,n),e.editable?e.hasFocus():we(e)&&document.activeElement&&document.activeElement.contains(e.dom)){if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){var t=e.root.getSelection(),n=document.createRange(),r=e.cursorWrapper.dom,a="IMG"==r.nodeName;a?n.setEnd(r.parentNode,p(r)+1):n.setEnd(r,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!a&&!e.state.selection.visible&&o.ie&&o.ie_version<=11&&(r.disabled=!0,r.disabled=!1)}(e);else{var a,i,s=n.anchor,l=n.head;!me||n instanceof r.TextSelection||(n.$from.parent.inlineContent||(a=he(e,n.from)),n.empty||n.$from.parent.inlineContent||(i=he(e,n.to))),e.docView.setSelection(s,l,e.root,t),me&&(a&&ve(a),i&&ve(i)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function(e){var t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.hideSelectionGuard);var n=e.root.getSelection(),r=n.anchorNode,a=n.anchorOffset;t.addEventListener("selectionchange",e.hideSelectionGuard=function(){n.anchorNode==r&&n.anchorOffset==a||(t.removeEventListener("selectionchange",e.hideSelectionGuard),e.dom.classList.remove("ProseMirror-hideselection"))})}(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}ce.prototype.getPreMatch=function(e){return e>=this.preMatchOffset?this.preMatched[e-this.preMatchOffset]:null},ce.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}},ce.prototype.destroyRest=function(){this.destroyBetween(this.index,this.top.children.length)},ce.prototype.syncToMarks=function(e,t,n){for(var r=0,a=this.stack.length>>1,i=Math.min(a,e.length);r<i&&(r==a-1?this.top:this.stack[r+1<<1]).matchesMark(e[r])&&!1!==e[r].type.spec.spanning;)r++;for(;r<a;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),a--;for(;a<e.length;){this.stack.push(this.top,this.index+1);for(var o=-1,s=this.index;s<Math.min(this.index+3,this.top.children.length);s++)if(this.top.children[s].matchesMark(e[a])){o=s;break}if(o>-1)o>this.index&&(this.changed=!0,this.destroyBetween(this.index,o)),this.top=this.top.children[this.index];else{var l=G.create(this.top,e[a],t,n);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,a++}},ce.prototype.findNodeMatch=function(e,t,n,r){var a=-1,i=r<0?void 0:this.getPreMatch(r),o=this.top.children;if(i&&i.matchesNode(e,t,n))a=o.indexOf(i);else for(var s=this.index,l=Math.min(o.length,s+5);s<l;s++){var c=o[s];if(c.matchesNode(e,t,n)&&this.preMatched.indexOf(c)<0){a=s;break}}return!(a<0||(this.destroyBetween(this.index,a),this.index++,0))},ce.prototype.updateNextNode=function(e,t,n,r,a){for(var i=this.index;i<this.top.children.length;i++){var o=this.top.children[i];if(o instanceof J){var s=this.preMatched.indexOf(o);if(s>-1&&s+this.preMatchOffset!=a)return!1;var l=o.dom;if((!this.lock||!(l==this.lock||1==l.nodeType&&l.contains(this.lock.parentNode))||e.isText&&o.node&&o.node.isText&&o.nodeDOM.nodeValue==e.text&&3!=o.dirty&&se(t,o.outerDeco))&&o.update(e,t,n,r))return this.destroyBetween(this.index,i),o.dom!=l&&(this.changed=!0),this.index++,!0;break}}return!1},ce.prototype.addNode=function(e,t,n,r,a){this.top.children.splice(this.index++,0,J.create(this.top,e,t,n,r,a)),this.changed=!0},ce.prototype.placeWidget=function(e,t,n){var r=this.index<this.top.children.length?this.top.children[this.index]:null;if(!r||!r.matchesWidget(e)||e!=r.widget&&r.widget.type.toDOM.parentNode){var a=new W(this.top,e,t,n);this.top.children.splice(this.index++,0,a),this.changed=!0}else this.index++},ce.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 X)||/\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 Q(this.top,V,t,null)),this.changed=!0}};var me=o.safari||o.chrome&&o.chrome_version<63;function he(e,t){var n=e.docView.domFromPos(t),r=n.node,a=n.offset,i=a<r.childNodes.length?r.childNodes[a]:null,s=a?r.childNodes[a-1]:null;if(o.safari&&i&&"false"==i.contentEditable)return _e(i);if(!(i&&"false"!=i.contentEditable||s&&"false"!=s.contentEditable)){if(i)return _e(i);if(s)return _e(s)}}function _e(e){return e.contentEditable="true",o.safari&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function ve(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function ge(e,t){if(t instanceof r.NodeSelection){var n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(ye(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else ye(e)}function ye(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=null)}function be(e,t,n,a){return e.someProp("createSelectionBetween",(function(r){return r(e,t,n)}))||r.TextSelection.between(t,n,a)}function we(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 xe(e,t){var n=e.selection,a=n.$anchor,i=n.$head,o=t>0?a.max(i):a.min(i),s=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return s&&r.Selection.findFrom(s,t)}function ke(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function De(e,t,n){var a=e.state.selection;if(!(a instanceof r.TextSelection)){if(a instanceof r.NodeSelection&&a.node.isInline)return ke(e,new r.TextSelection(t>0?a.$to:a.$from));var i=xe(e.state,t);return!!i&&ke(e,i)}if(!a.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"right":"left")){var s=xe(e.state,t);return!!(s&&s instanceof r.NodeSelection)&&ke(e,s)}if(!(o.mac&&n.indexOf("m")>-1)){var l,c=a.$head,u=c.textOffset?null:t<0?c.nodeBefore:c.nodeAfter;if(!u||u.isText)return!1;var d=t<0?c.pos-u.nodeSize:c.pos;return!!(u.isAtom||(l=e.docView.descAt(d))&&!l.contentDOM)&&(r.NodeSelection.isSelectable(u)?ke(e,new r.NodeSelection(t<0?e.state.doc.resolve(c.pos-u.nodeSize):c)):!!o.webkit&&ke(e,new r.TextSelection(e.state.doc.resolve(t<0?d:d+u.nodeSize))))}}function Me(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Se(e){var t=e.pmViewDesc;return t&&0==t.size&&(e.nextSibling||"BR"!=e.nodeName)}function Ce(e){var t=e.root.getSelection(),n=t.focusNode,r=t.focusOffset;if(n){var a,i,s=!1;for(o.gecko&&1==n.nodeType&&r<Me(n)&&Se(n.childNodes[r])&&(s=!0);;)if(r>0){if(1!=n.nodeType)break;var l=n.childNodes[r-1];if(Se(l))a=n,i=--r;else{if(3!=l.nodeType)break;r=(n=l).nodeValue.length}}else{if(Te(n))break;for(var c=n.previousSibling;c&&Se(c);)a=n.parentNode,i=p(c),c=c.previousSibling;if(c)r=Me(n=c);else{if((n=n.parentNode)==e.dom)break;r=0}}s?Ee(e,t,n,r):a&&Ee(e,t,a,i)}}function Le(e){var t=e.root.getSelection(),n=t.focusNode,r=t.focusOffset;if(n){for(var a,i,o=Me(n);;)if(r<o){if(1!=n.nodeType)break;if(!Se(n.childNodes[r]))break;a=n,i=++r}else{if(Te(n))break;for(var s=n.nextSibling;s&&Se(s);)a=s.parentNode,i=p(s)+1,s=s.nextSibling;if(s)r=0,o=Me(n=s);else{if((n=n.parentNode)==e.dom)break;r=o=0}}a&&Ee(e,t,a,i)}}function Te(e){var t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function Ee(e,t,n,r){if(w(t)){var a=document.createRange();a.setEnd(n,r),a.setStart(n,r),t.removeAllRanges(),t.addRange(a)}else t.extend&&t.extend(n,r);e.domObserver.setCurSelection();var i=e.state;setTimeout((function(){e.state==i&&fe(e)}),50)}function Oe(e,t,n){var a=e.state.selection;if(a instanceof r.TextSelection&&!a.empty||n.indexOf("s")>-1)return!1;if(o.mac&&n.indexOf("m")>-1)return!1;var i=a.$from,s=a.$to;if(!i.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){var l=xe(e.state,t);if(l&&l instanceof r.NodeSelection)return ke(e,l)}if(!i.parent.inlineContent){var c=r.Selection.findFrom(t<0?i:s,t);return!c||ke(e,c)}return!1}function je(e,t){if(!(e.state.selection instanceof r.TextSelection))return!0;var n=e.state.selection,a=n.$head,i=n.$anchor,o=n.empty;if(!a.sameParent(i))return!0;if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;var s=!a.textOffset&&(t<0?a.nodeBefore:a.nodeAfter);if(s&&!s.isText){var l=e.state.tr;return t<0?l.delete(a.pos-s.nodeSize,a.pos):l.delete(a.pos,a.pos+s.nodeSize),e.dispatch(l),!0}return!1}function Ae(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function Pe(e,t){var n=t.keyCode,r=function(e){var t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}(t);return 8==n||o.mac&&72==n&&"c"==r?je(e,-1)||Ce(e):46==n||o.mac&&68==n&&"c"==r?je(e,1)||Le(e):13==n||27==n||(37==n?De(e,-1,r)||Ce(e):39==n?De(e,1,r)||Le(e):38==n?Oe(e,-1,r)||Ce(e):40==n?function(e){if(o.safari&&!(e.state.selection.$head.parentOffset>0)){var t=e.root.getSelection(),n=t.focusNode,r=t.focusOffset;if(n&&1==n.nodeType&&0==r&&n.firstChild&&"false"==n.firstChild.contentEditable){var a=n.firstChild;Ae(e,a,!0),setTimeout((function(){return Ae(e,a,!1)}),20)}}}(e)||Oe(e,1,r)||Le(e):r==(o.mac?"m":"c")&&(66==n||73==n||89==n||90==n))}function Ye(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 $e(e,t,n,i,s){if(t<0){var l=e.lastSelectionTime>Date.now()-50?e.lastSelectionOrigin:null,c=pe(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 f,m,h=e.state.selection,_=function(e,t,n){var r=e.docView.parseRange(t,n),i=r.node,s=r.fromOffset,l=r.toOffset,c=r.from,u=r.to,d=e.root.getSelection(),p=null,f=d.anchorNode;if(f&&e.dom.contains(1==f.nodeType?f:f.parentNode)&&(p=[{node:f,offset:d.anchorOffset}],w(d)||p.push({node:d.focusNode,offset:d.focusOffset})),o.chrome&&8===e.lastKeyCode)for(var m=l;m>s;m--){var h=i.childNodes[m-1],_=h.pmViewDesc;if("BR"==h.nodeType&&!_){l=m;break}if(!_||_.size)break}var v=e.state.doc,g=e.someProp("domParser")||a.DOMParser.fromSchema(e.state.schema),y=v.resolve(c),b=null,x=g.parse(i,{topNode:y.parent,topMatch:y.parent.contentMatchAt(y.index()),topOpen:!0,from:s,to:l,preserveWhitespace:!y.parent.type.spec.code||"full",editableContent:!0,findPositions:p,ruleFromNode:Ye,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?(f=e.state.selection.to,m="end"):(f=e.state.selection.from,m="start"),e.lastKeyCode=null;var y=function(e,t,n,r,a){var i=e.findDiffStart(t,n);if(null==i)return null;var o=e.findDiffEnd(t,n+e.size,n+t.size),s=o.a,l=o.b;if("end"==a){var c=Math.max(0,i-Math.min(s,l));r-=s+c-i}return s<i&&e.size<t.size?(l=(i-=r<=i&&r>=s?i-r:0)+(l-s),s=i):l<i&&(s=(i-=r<=i&&r>=l?i-r:0)+(s-l),l=i),{start:i,endA:s,endB:l}}(g.content,_.doc.content,_.from,f,m);if(!y){if(!(i&&h instanceof r.TextSelection&&!h.empty&&h.$head.sameParent(h.$anchor))||e.composing||_.sel&&_.sel.anchor!=_.sel.head){if(_.sel){var b=Ie(e,e.state.doc,_.sel);b&&!b.eq(e.state.selection)&&e.dispatch(e.state.tr.setSelection(b))}return}y={start:h.from,endA:h.to,endB:h.to}}e.domChangeCount++,e.state.selection.from<e.state.selection.to&&y.start==y.endB&&e.state.selection instanceof r.TextSelection&&(y.start>e.state.selection.from&&y.start<=e.state.selection.from+2?y.start=e.state.selection.from:y.endA<e.state.selection.to&&y.endA>=e.state.selection.to-2&&(y.endB+=e.state.selection.to-y.endA,y.endA=e.state.selection.to)),o.ie&&o.ie_version<=11&&y.endB==y.start+1&&y.endA==y.start&&y.start>_.from&&" "==_.doc.textBetween(y.start-_.from-1,y.start-_.from+1)&&(y.start--,y.endA--,y.endB--);var k,D=_.doc.resolveNoCache(y.start-_.from),M=_.doc.resolveNoCache(y.endB-_.from),S=D.sameParent(M)&&D.parent.inlineContent;if((o.ios&&e.lastIOSEnter>Date.now()-225&&(!S||s.some((function(e){return"DIV"==e.nodeName||"P"==e.nodeName})))||!S&&D.pos<_.doc.content.size&&(k=r.Selection.findFrom(_.doc.resolve(D.pos+1),1,!0))&&k.head==M.pos)&&e.someProp("handleKeyDown",(function(t){return t(e,x(13,"Enter"))})))e.lastIOSEnter=0;else if(e.state.selection.anchor>y.start&&function(e,t,n,r,a){if(!r.parent.isTextblock||n-t<=a.pos-r.pos||Ne(r,!0,!1)<a.pos)return!1;var i=e.resolve(t);if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;var o=e.resolve(Ne(i,!0,!0));return!(!o.parent.isTextblock||o.pos>n||Ne(o,!0,!1)<n)&&r.parent.content.cut(r.parentOffset).eq(o.parent.content)}(v,y.start,y.endA,D,M)&&e.someProp("handleKeyDown",(function(t){return t(e,x(8,"Backspace"))})))o.android&&o.chrome&&e.domObserver.suppressSelectionUpdates();else{o.android&&!S&&D.start()!=M.start()&&0==M.parentOffset&&D.depth==M.depth&&_.sel&&_.sel.anchor==_.sel.head&&_.sel.head==y.endA&&(y.endB-=2,M=_.doc.resolveNoCache(y.endB-_.from),setTimeout((function(){e.someProp("handleKeyDown",(function(t){return t(e,x(13,"Enter"))}))}),20));var C,L,T,E,O=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 fe(e)}),20)),C=e.state.tr.delete(O,j),L=v.resolve(y.start).marksAcross(v.resolve(y.endA));else if(y.endA==y.endB&&(E=v.resolve(y.start))&&(T=function(e,t){for(var n,r,i,o=e.firstChild.marks,s=t.firstChild.marks,l=o,c=s,u=0;u<s.length;u++)l=s[u].removeFromSet(l);for(var d=0;d<o.length;d++)c=o[d].removeFromSet(c);if(1==l.length&&0==c.length)r=l[0],n="add",i=function(e){return e.mark(r.addToSet(e.marks))};else{if(0!=l.length||1!=c.length)return null;r=c[0],n="remove",i=function(e){return e.mark(r.removeFromSet(e.marks))}}for(var p=[],f=0;f<t.childCount;f++)p.push(i(t.child(f)));if(a.Fragment.from(p).eq(e))return{mark:r,type:n}}(D.parent.content.cut(D.parentOffset,M.parentOffset),E.parent.content.cut(E.parentOffset,y.endA-E.start()))))C=e.state.tr,"add"==T.type?C.addMark(O,j,T.mark):C.removeMark(O,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,O,j,A)})))return;C=e.state.tr.insertText(A,O,j)}if(C||(C=e.state.tr.replace(O,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==O||P.head==C.mapping.map(j)-1)||o.ie&&P.empty&&P.head==O)&&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:be(e,t.resolve(n.anchor),t.resolve(n.head))}function Ne(e,t,n){for(var r=e.depth,a=t?e.end():e.pos;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,a++,t=!1;if(n)for(var i=e.node(r).maybeChild(e.indexAfter(r));i&&!i.isLeaf;)i=i.firstChild,a++;return a}function ze(e,t){for(var n=[],r=t.content,i=t.openStart,o=t.openEnd;i>1&&o>1&&1==r.childCount&&1==r.firstChild.childCount;){i--,o--;var s=r.firstChild;n.push(s.type.name,s.attrs!=s.type.defaultAttrs?s.attrs:null),r=s.content}var l=e.someProp("clipboardSerializer")||a.DOMSerializer.fromSchema(e.state.schema),c=Ue(),u=c.createElement("div");u.appendChild(l.serializeFragment(r,{document:c}));for(var d,p=u.firstChild;p&&1==p.nodeType&&(d=Be[p.nodeName.toLowerCase()]);){for(var f=d.length-1;f>=0;f--){for(var m=c.createElement(d[f]);u.firstChild;)m.appendChild(u.firstChild);u.appendChild(m)}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 Fe(e,t,n,r,i){var o,s,l=i.parent.type.spec.code;if(!n&&!t)return null;var c=t&&(r||l||!n);if(c){if(e.someProp("transformPastedText",(function(e){t=e(t,l||r)})),l)return new a.Slice(a.Fragment.from(e.state.schema.text(t)),0,0);var u=e.someProp("clipboardTextParser",(function(e){return e(t,i,r)}));u?s=u:(o=document.createElement("div"),t.trim().split(/(?:\r\n?|\n)+/).forEach((function(e){o.appendChild(document.createElement("p")).textContent=e})))}else e.someProp("transformPastedHTML",(function(e){n=e(n)})),o=function(e){var t=/(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));var n,r=Ue().createElement("div"),a=/(?:<meta [^>]*>)*<([a-z][^>\s]+)/i.exec(e),i=0;(n=a&&Be[a[1].toLowerCase()])&&(e=n.map((function(e){return"<"+e+">"})).join("")+e+n.map((function(e){return"</"+e+">"})).reverse().join(""),i=n.length),r.innerHTML=e;for(var o=0;o<i;o++)r=r.firstChild;return r}(n);var d=o&&o.querySelector("[data-pm-slice]"),p=d&&/^(\d+) (\d+) (.*)/.exec(d.getAttribute("data-pm-slice"));if(!s){var f=e.someProp("clipboardParser")||e.someProp("domParser")||a.DOMParser.fromSchema(e.state.schema);s=f.parseSlice(o,{preserveWhitespace:!(!c&&!p),context:i})}return s=p?function(e,t){if(!e.size)return e;var n,r=e.content.firstChild.type.schema;try{n=JSON.parse(t)}catch(t){return e}for(var i=e.content,o=e.openStart,s=e.openEnd,l=n.length-2;l>=0;l-=2){var c=r.nodes[n[l]];if(!c||c.hasRequiredAttrs())break;i=a.Fragment.from(c.create(n[l+1],i)),o++,s++}return new a.Slice(i,o,s)}(function(e,t,n){return t<e.openStart&&(e=new a.Slice(He(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new a.Slice(He(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}(s,+p[1],+p[2]),p[3]):a.Slice.maxOpen(function(e,t){if(e.childCount<2)return e;for(var n=function(n){var r=t.node(n).contentMatchAt(t.index(n)),i=void 0,o=[];if(e.forEach((function(e){if(o){var t,n=r.findWrapping(e.type);if(!n)return o=null;if(t=o.length&&i.length&&function e(t,n,r,i,o){if(o<t.length&&o<n.length&&t[o]==n[o]){var s=e(t,n,r,i.lastChild,o+1);if(s)return i.copy(i.content.replaceChild(i.childCount-1,s));if(i.contentMatchAt(i.childCount).matchType(o==t.length-1?r.type:t[o+1]))return i.copy(i.content.append(a.Fragment.from(Re(r,t,o+1))))}}(n,i,e,o[o.length-1],0))o[o.length-1]=t;else{o.length&&(o[o.length-1]=function e(t,n){if(0==n)return t;var r=t.content.replaceChild(t.childCount-1,e(t.lastChild,n-1)),i=t.contentMatchAt(t.childCount).fillBefore(a.Fragment.empty,!0);return t.copy(r.append(i))}(o[o.length-1],i.length));var s=Re(e,n);o.push(s),r=r.matchType(s.type,s.attrs),i=n}}})),o)return{v:a.Fragment.from(o)}},r=t.depth;r>=0;r--){var i=n(r);if(i)return i.v}return e}(s.content,i),!1),e.someProp("transformPasted",(function(e){s=e(s)})),s}function Re(e,t,n){void 0===n&&(n=0);for(var r=t.length-1;r>=n;r--)e=t[r].create(null,a.Fragment.from(e));return e}function He(e,t,n,r,i,o){var s=t<0?e.firstChild:e.lastChild,l=s.content;return i<r-1&&(l=He(l,t,n,r,i+1,o)),i>=n&&(l=t<0?s.contentMatchAt(0).fillBefore(l,e.childCount>1||o<=i).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(a.Fragment.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,s.copy(l))}var Be={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},qe=null;function Ue(){return qe||(qe=document.implementation.createHTMLDocument("title"))}var Ve={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},We=o.ie&&o.ie_version<=11,Ke=function(){this.anchorNode=this.anchorOffset=this.focusNode=this.focusOffset=null};Ke.prototype.set=function(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset},Ke.prototype.eq=function(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset};var Ge=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 Ke,We&&(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};Ge.prototype.flushSoon=function(){var e=this;this.flushingSoon<0&&(this.flushingSoon=window.setTimeout((function(){e.flushingSoon=-1,e.flush()}),20))},Ge.prototype.forceFlush=function(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())},Ge.prototype.start=function(){this.observer&&this.observer.observe(this.view.dom,Ve),We&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()},Ge.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()}We&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()},Ge.prototype.connectSelection=function(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)},Ge.prototype.disconnectSelection=function(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)},Ge.prototype.suppressSelectionUpdates=function(){var e=this;this.suppressingSelectionUpdates=!0,setTimeout((function(){return e.suppressingSelectionUpdates=!1}),50)},Ge.prototype.onSelectionChange=function(){if((!(e=this.view).editable||e.root.activeElement==e.dom)&&we(e)){var e;if(this.suppressingSelectionUpdates)return fe(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()}},Ge.prototype.setCurSelection=function(){this.currentSelection.set(this.view.root.getSelection())},Ge.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},Ge.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)&&we(this.view)&&!this.ignoreSelectionChange(t),r=-1,a=-1,i=!1,s=[];if(this.view.editable)for(var l=0;l<e.length;l++){var c=this.registerMutation(e[l],s);c&&(r=r<0?c.from:Math.min(c.from,r),a=a<0?c.to:Math.max(c.to,a),c.typeOver&&(i=!0))}if(o.gecko&&s.length>1){var u=s.filter((function(e){return"BR"==e.nodeName}));if(2==u.length){var d=u[0],p=u[1];d.parentNode&&d.parentNode.parentNode==p.parentNode?p.remove():d.remove()}}(r>-1||n)&&(r>-1&&(this.view.docView.markDirty(r,a),f=this.view,Je||(Je=!0,"normal"==getComputedStyle(f.dom).whiteSpace&&console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."))),this.handleDOMChange(r,a,i,s),this.view.docView.dirty?this.view.updateState(this.view.state):this.currentSelection.eq(t)||fe(this.view))}var f},Ge.prototype.registerMutation=function(e,t){if(t.indexOf(e.target)>-1)return null;var n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){var r=e.previousSibling,a=e.nextSibling;if(o.ie&&o.ie_version<=11&&e.addedNodes.length)for(var i=0;i<e.addedNodes.length;i++){var s=e.addedNodes[i],l=s.previousSibling,c=s.nextSibling;(!l||Array.prototype.indexOf.call(e.addedNodes,l)<0)&&(r=l),(!c||Array.prototype.indexOf.call(e.addedNodes,c)<0)&&(a=c)}for(var u=r&&r.parentNode==e.target?p(r)+1:0,d=n.localPosFromDOM(e.target,u,-1),f=a&&a.parentNode==e.target?p(a):e.target.childNodes.length,m=0;m<e.addedNodes.length;m++)t.push(e.addedNodes[m]);return{from:d,to:n.localPosFromDOM(e.target,f,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 Je=!1,Ze={},Xe={};function Qe(e,t){e.lastSelectionOrigin=t,e.lastSelectionTime=Date.now()}function et(e){e.someProp("handleDOMEvents",(function(t){for(var n in t)e.eventHandlers[n]||e.dom.addEventListener(n,e.eventHandlers[n]=function(t){return tt(e,t)})}))}function tt(e,t){return e.someProp("handleDOMEvents",(function(n){var r=n[t.type];return!!r&&(r(e,t)||t.defaultPrevented)}))}function nt(e){return{left:e.clientX,top:e.clientY}}function rt(e,t,n,r,a){if(-1==r)return!1;for(var i=e.state.doc.resolve(r),o=function(r){if(e.someProp(t,(function(t){return r>i.depth?t(e,n,i.nodeAfter,i.before(r),a,!0):t(e,n,i.node(r),i.before(r),a,!1)})))return{v:!0}},s=i.depth+1;s>0;s--){var l=o(s);if(l)return l.v}return!1}function at(e,t,n){e.focused||e.focus();var r=e.state.tr.setSelection(t);"pointer"==n&&r.setMeta("pointer",!0),e.dispatch(r)}function it(e,t,n,a,i){return rt(e,"handleClickOn",t,n,a)||e.someProp("handleClick",(function(n){return n(e,t,a)}))||(i?function(e,t){if(-1==t)return!1;var n,a,i=e.state.selection;i instanceof r.NodeSelection&&(n=i.node);for(var o=e.state.doc.resolve(t),s=o.depth+1;s>0;s--){var l=s>o.depth?o.nodeAfter:o.node(s);if(r.NodeSelection.isSelectable(l)){a=n&&i.$from.depth>0&&s>=i.$from.depth&&o.before(i.$from.depth+1)==i.$from.pos?o.before(i.$from.depth):o.before(s);break}}return null!=a&&(at(e,r.NodeSelection.create(e.state.doc,a),"pointer"),!0)}(e,n):function(e,t){if(-1==t)return!1;var n=e.state.doc.resolve(t),a=n.nodeAfter;return!!(a&&a.isAtom&&r.NodeSelection.isSelectable(a))&&(at(e,new r.NodeSelection(n),"pointer"),!0)}(e,n))}function ot(e,t,n,r){return rt(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",(function(n){return n(e,t,r)}))}function st(e,t,n,a){return rt(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&&(at(e,r.TextSelection.create(n,0,n.content.size),"pointer"),!0);for(var a=n.resolve(t),i=a.depth+1;i>0;i--){var o=i>a.depth?a.nodeAfter:a.node(i),s=a.before(i);if(o.inlineContent)at(e,r.TextSelection.create(n,s+1,s+1+o.content.size),"pointer");else{if(!r.NodeSelection.isSelectable(o))continue;at(e,r.NodeSelection.create(n,s),"pointer")}return!0}}(e,n)}function lt(e){return ht(e)}Xe.keydown=function(e,t){if(e.shiftKey=16==t.keyCode||t.shiftKey,!dt(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)}))||Pe(e,t)?t.preventDefault():Qe(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)}},Xe.keyup=function(e,t){16==t.keyCode&&(e.shiftKey=!1)},Xe.keypress=function(e,t){if(!(dt(e,t)||!t.charCode||t.ctrlKey&&!t.altKey||o.mac&&t.metaKey))if(e.someProp("handleKeyPress",(function(n){return n(e,t)})))t.preventDefault();else{var n=e.state.selection;if(!(n instanceof r.TextSelection&&n.$from.sameParent(n.$to))){var a=String.fromCharCode(t.charCode);e.someProp("handleTextInput",(function(t){return t(e,n.$from.pos,n.$to.pos,a)}))||e.dispatch(e.state.tr.insertText(a).scrollIntoView()),t.preventDefault()}}};var ct=o.mac?"metaKey":"ctrlKey";Ze.mousedown=function(e,t){e.shiftKey=t.shiftKey;var n=lt(e),r=Date.now(),a="singleClick";r-e.lastClick.time<500&&function(e,t){var n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}(t,e.lastClick)&&!t[ct]&&("singleClick"==e.lastClick.type?a="doubleClick":"doubleClick"==e.lastClick.type&&(a="tripleClick")),e.lastClick={time:r,x:t.clientX,y:t.clientY,type:a};var i=e.posAtCoords(nt(t));i&&("singleClick"==a?e.mouseDown=new ut(e,i,t,n):("doubleClick"==a?ot:st)(e,i.pos,i.inside,t)?t.preventDefault():Qe(e,"pointer"))};var ut=function(e,t,n,a){var i,s,l=this;if(this.view=e,this.startDoc=e.state.doc,this.pos=t,this.event=n,this.flushed=a,this.selectNode=n[ct],this.allowDefault=n.shiftKey,t.inside>-1)i=e.state.doc.nodeAt(t.inside),s=t.inside;else{var c=e.state.doc.resolve(t.pos);i=c.parent,s=c.depth?c.before():0}this.mightDrag=null;var u=a?null:n.target,d=u?e.docView.nearestDesc(u,!0):null;this.target=d?d.dom:null,(i.type.spec.draggable&&!1!==i.type.spec.selectable||e.state.selection instanceof r.NodeSelection&&s==e.state.selection.from)&&(this.mightDrag={node:i,pos:s,addAttr:this.target&&!this.target.draggable,setUneditable:this.target&&o.gecko&&!this.target.hasAttribute("contentEditable")}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout((function(){return l.target.setAttribute("contentEditable","false")}),20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),Qe(e,"pointer")};function dt(e,t){return!!e.composing||!!(o.safari&&Math.abs(t.timeStamp-e.compositionEndedAt)<500)&&(e.compositionEndedAt=-2e8,!0)}ut.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},ut.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(nt(e))),this.allowDefault||!t?Qe(this.view,"pointer"):it(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():this.flushed||o.safari&&this.mightDrag&&!this.mightDrag.node.isAtom||o.chrome&&!(this.view.state.selection instanceof r.TextSelection)&&(t.pos==this.view.state.selection.from||t.pos==this.view.state.selection.to)?(at(this.view,r.Selection.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):Qe(this.view,"pointer")}},ut.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),Qe(this.view,"pointer")},Ze.touchdown=function(e){lt(e),Qe(e,"pointer")},Ze.contextmenu=function(e){return lt(e)};var pt=o.android?5e3:-1;function ft(e,t){clearTimeout(e.composingTimeout),t>-1&&(e.composingTimeout=setTimeout((function(){return ht(e)}),t))}function mt(e){for(e.composing=!1;e.compositionNodes.length>0;)e.compositionNodes.pop().markParentsDirty()}function ht(e,t){if(e.domObserver.forceFlush(),mt(e),t||e.docView.dirty){var n=pe(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}Xe.compositionstart=Xe.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(),ht(e,!0),e.markCursor=null;else if(ht(e),o.gecko&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length)for(var r=e.root.getSelection(),a=r.focusNode,i=r.focusOffset;a&&1==a.nodeType&&0!=i;){var s=i<0?a.lastChild:a.childNodes[i-1];if(!s)break;if(3==s.nodeType){r.collapse(s,s.nodeValue.length);break}a=s,i=-1}e.composing=!0}ft(e,pt)},Xe.compositionend=function(e,t){e.composing&&(e.composing=!1,e.compositionEndedAt=t.timeStamp,ft(e,20))};var _t=o.ie&&o.ie_version<15||o.ios&&o.webkit_version<604;function vt(e,t,n,r){var i=Fe(e,t,n,e.shiftKey,e.state.selection.$from);if(!e.someProp("handlePaste",(function(t){return t(e,r,i||a.Slice.empty)}))&&i){var o=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(i),s=o?e.state.tr.replaceSelectionWith(o,e.shiftKey):e.state.tr.replaceSelection(i);e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste"))}}Ze.copy=Xe.cut=function(e,t){var n=e.state.selection,r="cut"==t.type;if(!n.empty){var a=_t?null:t.clipboardData,i=ze(e,n.content()),o=i.dom,s=i.text;a?(t.preventDefault(),a.clearData(),a.setData("text/html",o.innerHTML),a.setData("text/plain",s)):function(e,t){if(e.dom.parentNode){var n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";var r=getSelection(),a=document.createRange();a.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(a),setTimeout((function(){n.parentNode&&n.parentNode.removeChild(n),e.focus()}),50)}}(e,o),r&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))}},Xe.paste=function(e,t){var n=_t?null:t.clipboardData,r=n&&n.getData("text/html"),a=n&&n.getData("text/plain");n&&(r||a||n.files.length)?(vt(e,a,r,t),t.preventDefault()):function(e,t){if(e.dom.parentNode){var n=e.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus(),setTimeout((function(){e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?vt(e,r.value,null,t):vt(e,r.textContent,r.innerHTML,t)}),50)}}(e,t)};var gt=function(e,t){this.slice=e,this.move=t},yt=o.mac?"altKey":"ctrlKey";for(var bt in Ze.dragstart=function(e,t){var n=e.mouseDown;if(n&&n.done(),t.dataTransfer){var a=e.state.selection,i=a.empty?null:e.posAtCoords(nt(t));if(i&&i.pos>=a.from&&i.pos<=(a instanceof r.NodeSelection?a.to-1:a.to));else if(n&&n.mightDrag)e.dispatch(e.state.tr.setSelection(r.NodeSelection.create(e.state.doc,n.mightDrag.pos)));else if(t.target&&1==t.target.nodeType){var o=e.docView.nearestDesc(t.target,!0);if(!o||!o.node.type.spec.draggable||o==e.docView)return;e.dispatch(e.state.tr.setSelection(r.NodeSelection.create(e.state.doc,o.posBefore)))}var s=e.state.selection.content(),l=ze(e,s),c=l.dom,u=l.text;t.dataTransfer.clearData(),t.dataTransfer.setData(_t?"Text":"text/html",c.innerHTML),_t||t.dataTransfer.setData("text/plain",u),e.dragging=new gt(s,!t[yt])}},Ze.dragend=function(e){var t=e.dragging;window.setTimeout((function(){e.dragging==t&&(e.dragging=null)}),50)},Xe.dragover=Xe.dragenter=function(e,t){return t.preventDefault()},Xe.drop=function(e,t){var n=e.dragging;if(e.dragging=null,t.dataTransfer){var o=e.posAtCoords(nt(t));if(o){var s=e.state.doc.resolve(o.pos);if(s){var l=n&&n.slice||Fe(e,t.dataTransfer.getData(_t?"Text":"text/plain"),_t?null:t.dataTransfer.getData("text/html"),!1,s),c=n&&!t[yt];if(e.someProp("handleDrop",(function(n){return n(e,t,l||a.Slice.empty,c)})))t.preventDefault();else if(l){t.preventDefault();var u=l?Object(i.h)(e.state.doc,s.pos,l):s.pos;null==u&&(u=s.pos);var d=e.state.tr;c&&d.deleteSelection();var p=d.mapping.map(u),f=0==l.openStart&&0==l.openEnd&&1==l.content.childCount,m=d.doc;if(f?d.replaceRangeWith(p,p,l.content.firstChild):d.replaceRange(p,p,l),!d.doc.eq(m)){var h=d.doc.resolve(p);if(f&&r.NodeSelection.isSelectable(l.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(l.content.firstChild))d.setSelection(new r.NodeSelection(h));else{var _=d.mapping.map(u);d.mapping.maps[d.mapping.maps.length-1].forEach((function(e,t,n,r){return _=r})),d.setSelection(be(e,h,d.doc.resolve(_)))}e.focus(),e.dispatch(d.setMeta("uiEvent","drop"))}}}}}},Ze.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())&&fe(e)}),20))},Ze.blur=function(e){e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),e.domObserver.currentSelection.set({}),e.focused=!1)},Ze.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)}},Xe)Ze[bt]=Xe[bt];function wt(e,t){if(e==t)return!0;for(var n in e)if(e[n]!==t[n])return!1;for(var r in t)if(!(r in e))return!1;return!0}var xt=function(e,t){this.spec=t||Lt,this.side=this.spec.side||0,this.toDOM=e};xt.prototype.map=function(e,t,n,r){var a=e.mapResult(t.from+r,this.side<0?-1:1),i=a.pos;return a.deleted?null:new Mt(i-n,i-n,this)},xt.prototype.valid=function(){return!0},xt.prototype.eq=function(e){return this==e||e instanceof xt&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&wt(this.spec,e.spec))};var kt=function(e,t){this.spec=t||Lt,this.attrs=e};kt.prototype.map=function(e,t,n,r){var a=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,i=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return a>=i?null:new Mt(a,i,this)},kt.prototype.valid=function(e,t){return t.from<t.to},kt.prototype.eq=function(e){return this==e||e instanceof kt&&wt(this.attrs,e.attrs)&&wt(this.spec,e.spec)},kt.is=function(e){return e.type instanceof kt};var Dt=function(e,t){this.spec=t||Lt,this.attrs=e};Dt.prototype.map=function(e,t,n,r){var a=e.mapResult(t.from+r,1);if(a.deleted)return null;var i=e.mapResult(t.to+r,-1);return i.deleted||i.pos<=a.pos?null:new Mt(a.pos-n,i.pos-n,this)},Dt.prototype.valid=function(e,t){var n=e.content.findIndex(t.from),r=n.index,a=n.offset;return a==t.from&&a+e.child(r).nodeSize==t.to},Dt.prototype.eq=function(e){return this==e||e instanceof Dt&&wt(this.attrs,e.attrs)&&wt(this.spec,e.spec)};var Mt=function(e,t,n){this.from=e,this.to=t,this.type=n},St={spec:{configurable:!0},inline:{configurable:!0}};Mt.prototype.copy=function(e,t){return new Mt(e,t,this.type)},Mt.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},Mt.prototype.map=function(e,t,n){return this.type.map(e,this,t,n)},Mt.widget=function(e,t,n){return new Mt(e,e,new xt(t,n))},Mt.inline=function(e,t,n,r){return new Mt(e,t,new kt(n,r))},Mt.node=function(e,t,n,r){return new Mt(e,t,new Dt(n,r))},St.spec.get=function(){return this.type.spec},St.inline.get=function(){return this.type instanceof kt},Object.defineProperties(Mt.prototype,St);var Ct=[],Lt={},Tt=function(e,t){this.local=e&&e.length?e:Ct,this.children=t&&t.length?t:Ct};Tt.create=function(e,t){return t.length?Yt(t,e,0,Lt):Et},Tt.prototype.find=function(e,t,n){var r=[];return this.findInner(null==e?0:e,null==t?1e9:t,r,0,n),r},Tt.prototype.findInner=function(e,t,n,r,a){for(var i=0;i<this.local.length;i++){var o=this.local[i];o.from<=t&&o.to>=e&&(!a||a(o.spec))&&n.push(o.copy(o.from+r,o.to+r))}for(var s=0;s<this.children.length;s+=3)if(this.children[s]<t&&this.children[s+1]>e){var l=this.children[s]+1;this.children[s+2].findInner(e-l,t-l,n,r+l,a)}},Tt.prototype.map=function(e,t,n){return this==Et||0==e.maps.length?this:this.mapInner(e,t,0,0,n||Lt)},Tt.prototype.mapInner=function(e,t,n,r,a){for(var i,o=0;o<this.local.length;o++){var s=this.local[o].map(e,n,r);s&&s.type.valid(t,s)?(i||(i=[])).push(s):a.onRemove&&a.onRemove(this.local[o].spec)}return this.children.length?function(e,t,n,r,a,i,o){for(var s=e.slice(),l=function(e,t,n,r){for(var o=0;o<s.length;o+=3){var l=s[o+1],c=void 0;-1==l||e>l+i||(t>=s[o]+i?s[o+1]=-1:n>=a&&(c=r-n-(t-e))&&(s[o]+=c,s[o+1]+=c))}},c=0;c<n.maps.length;c++)n.maps[c].forEach(l);for(var u=!1,d=0;d<s.length;d+=3)if(-1==s[d+1]){var p=n.map(e[d]+i),f=p-a;if(f<0||f>=r.content.size){u=!0;continue}var m=n.map(e[d+1]+i,-1)-a,h=r.content.findIndex(f),_=h.index,v=h.offset,g=r.maybeChild(_);if(g&&v==f&&v+g.nodeSize==m){var y=s[d+2].mapInner(n,g,p+1,e[d]+i+1,o);y!=Et?(s[d]=f,s[d+1]=m,s[d+2]=y):(s[d+1]=-2,u=!0)}else u=!0}if(u){var b=Yt(function(e,t,n,r,a,i,o){function s(e,t){for(var i=0;i<e.local.length;i++){var l=e.local[i].map(r,a,t);l?n.push(l):o.onRemove&&o.onRemove(e.local[i].spec)}for(var c=0;c<e.children.length;c+=3)s(e.children[c+2],e.children[c]+t+1)}for(var l=0;l<e.length;l+=3)-1==e[l+1]&&s(e[l+2],t[l]+i+1);return n}(s,e,t||[],n,a,i,o),r,0,o);t=b.local;for(var w=0;w<s.length;w+=3)s[w+1]<0&&(s.splice(w,3),w-=3);for(var x=0,k=0;x<b.children.length;x+=3){for(var D=b.children[x];k<s.length&&s[k]<D;)k+=3;s.splice(k,0,b.children[x],b.children[x+1],b.children[x+2])}}return new Tt(t&&t.sort($t),s)}(this.children,i,e,t,n,r,a):i?new Tt(i.sort($t)):Et},Tt.prototype.add=function(e,t){return t.length?this==Et?Tt.create(e,t):this.addInner(e,t,0):this},Tt.prototype.addInner=function(e,t,n){var r,a=this,i=0;e.forEach((function(e,o){var s,l=o+n;if(s=At(t,e,l)){for(r||(r=a.children.slice());i<r.length&&r[i]<o;)i+=3;r[i]==o?r[i+2]=r[i+2].addInner(e,s,l+1):r.splice(i,0,o,o+e.nodeSize,Yt(s,e,l+1,Lt)),i+=3}}));var o=jt(i?Pt(t):t,-n);return new Tt(o.length?this.local.concat(o).sort($t):this.local,r||this.children)},Tt.prototype.remove=function(e){return 0==e.length||this==Et?this:this.removeInner(e,0)},Tt.prototype.removeInner=function(e,t){for(var n=this.children,r=this.local,a=0;a<n.length;a+=3){for(var i=void 0,o=n[a]+t,s=n[a+1]+t,l=0,c=void 0;l<e.length;l++)(c=e[l])&&c.from>o&&c.to<s&&(e[l]=null,(i||(i=[])).push(c));if(i){n==this.children&&(n=this.children.slice());var u=n[a+2].removeInner(i,o+1);u!=Et?n[a+2]=u:(n.splice(a,3),a-=3)}}if(r.length)for(var d=0,p=void 0;d<e.length;d++)if(p=e[d])for(var f=0;f<r.length;f++)r[f].eq(p,t)&&(r==this.local&&(r=this.local.slice()),r.splice(f--,1));return n==this.children&&r==this.local?this:r.length||n.length?new Tt(r,n):Et},Tt.prototype.forChild=function(e,t){if(this==Et)return this;if(t.isLeaf)return Tt.empty;for(var n,r,a=0;a<this.children.length;a+=3)if(this.children[a]>=e){this.children[a]==e&&(n=this.children[a+2]);break}for(var i=e+1,o=i+t.content.size,s=0;s<this.local.length;s++){var l=this.local[s];if(l.from<o&&l.to>i&&l.type instanceof kt){var c=Math.max(i,l.from)-i,u=Math.min(o,l.to)-i;c<u&&(r||(r=[])).push(l.copy(c,u))}}if(r){var d=new Tt(r.sort($t));return n?new Ot([d,n]):d}return n||Et},Tt.prototype.eq=function(e){if(this==e)return!0;if(!(e instanceof Tt)||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},Tt.prototype.locals=function(e){return It(this.localsInner(e))},Tt.prototype.localsInner=function(e){if(this==Et)return Ct;if(e.inlineContent||!this.local.some(kt.is))return this.local;for(var t=[],n=0;n<this.local.length;n++)this.local[n].type instanceof kt||t.push(this.local[n]);return t};var Et=new Tt;Tt.empty=Et,Tt.removeOverlap=It;var Ot=function(e){this.members=e};function jt(e,t){if(!t||!e.length)return e;for(var n=[],r=0;r<e.length;r++){var a=e[r];n.push(new Mt(a.from+t,a.to+t,a.type))}return n}function At(e,t,n){if(t.isLeaf)return null;for(var r=n+t.nodeSize,a=null,i=0,o=void 0;i<e.length;i++)(o=e[i])&&o.from>n&&o.to<r&&((a||(a=[])).push(o),e[i]=null);return a}function Pt(e){for(var t=[],n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function Yt(e,t,n,r){var a=[],i=!1;t.forEach((function(t,o){var s=At(e,t,o+n);if(s){i=!0;var l=Yt(s,t,n+o+1,r);l!=Et&&a.push(o,o+t.nodeSize,l)}}));for(var o=jt(i?Pt(e):e,-n).sort($t),s=0;s<o.length;s++)o[s].type.valid(t,o[s])||(r.onRemove&&r.onRemove(o[s].spec),o.splice(s--,1));return o.length||a.length?new Tt(o,a):Et}function $t(e,t){return e.from-t.from||e.to-t.to}function It(e){for(var t=e,n=0;n<t.length-1;n++){var r=t[n];if(r.from!=r.to)for(var a=n+1;a<t.length;a++){var i=t[a];if(i.from!=r.from){i.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,i.from),Nt(t,a,r.copy(i.from,r.to)));break}i.to!=r.to&&(t==e&&(t=e.slice()),t[a]=i.copy(i.from,r.to),Nt(t,a+1,i.copy(r.to,i.to)))}}return t}function Nt(e,t,n){for(;t<e.length&&$t(n,e[t])>0;)t++;e.splice(t,0,n)}function zt(e){var t=[];return e.someProp("decorations",(function(n){var r=n(e.state);r&&r!=Et&&t.push(r)})),e.cursorWrapper&&t.push(Tt.create(e.state.doc,[e.cursorWrapper.deco])),Ot.from(t)}Ot.prototype.forChild=function(e,t){if(t.isLeaf)return Tt.empty;for(var n=[],r=0;r<this.members.length;r++){var a=this.members[r].forChild(e,t);a!=Et&&(a instanceof Ot?n=n.concat(a.members):n.push(a))}return Ot.from(n)},Ot.prototype.eq=function(e){if(!(e instanceof Ot)||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},Ot.prototype.locals=function(e){for(var t,n=!0,r=0;r<this.members.length;r++){var a=this.members[r].localsInner(e);if(a.length)if(t){n&&(t=t.slice(),n=!1);for(var i=0;i<a.length;i++)t.push(a[i])}else t=a}return t?It(n?t:t.sort($t)):Ct},Ot.from=function(e){switch(e.length){case 0:return Et;case 1:return e[0];default:return new Ot(e)}};var Ft=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=qt(this),this.markCursor=null,this.cursorWrapper=null,Bt(this),this.nodeViews=Ut(this),this.docView=Z(this.state.doc,Ht(this),zt(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 Ge(e,(function(t,n,r,a){return $e(e,t,n,r,a)})),e.domObserver.start(),e.domChangeCount=0,e.eventHandlers=Object.create(null);var t=function(t){var n=Ze[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)||tt(e,t)||!e.editable&&t.type in Xe||n(e,t)})};for(var n in Ze)t(n);o.safari&&e.dom.addEventListener("input",(function(){return null})),et(e)}(this),this.pluginViews=[],this.updatePluginViews()},Rt={props:{configurable:!0},root:{configurable:!0}};function Ht(e){var t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",(function(n){if("function"==typeof n&&(n=n(e.state)),n)for(var r in n)"class"==r?t.class+=" "+n[r]:t[r]||"contenteditable"==r||"nodeName"==r||(t[r]=String(n[r]))})),[Mt.node(0,e.state.doc.content.size,t)]}function Bt(e){if(e.markCursor){var t=document.createElement("img");t.setAttribute("mark-placeholder","true"),e.cursorWrapper={dom:t,deco:Mt.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function qt(e){return!e.someProp("editable",(function(t){return!1===t(e.state)}))}function Ut(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}Rt.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},Ft.prototype.update=function(e){e.handleDOMEvents!=this._props.handleDOMEvents&&et(this),this._props=e,this.updateStateInner(e.state,!0)},Ft.prototype.setProps=function(e){var t={};for(var n in this._props)t[n]=this._props[n];for(var r in t.state=this.state,e)t[r]=e[r];this.update(t)},Ft.prototype.updateState=function(e){this.updateStateInner(e,this.state.plugins!=e.plugins)},Ft.prototype.updateStateInner=function(e,t){var n=this,a=this.state,i=!1,s=!1;if(e.storedMarks&&this.composing&&(mt(this),s=!0),this.state=e,t){var l=Ut(this);(function(e,t){var n=0,r=0;for(var a in e){if(e[a]!=t[a])return!0;n++}for(var i in t)r++;return n!=r})(l,this.nodeViews)&&(this.nodeViews=l,i=!0),et(this)}this.editable=qt(this),Bt(this);var c=zt(this),u=Ht(this),d=t?"reset":e.scrollToSelection>a.scrollToSelection?"to selection":"preserve",p=i||!this.docView.matchesNode(e.doc,u,c);!p&&e.selection.eq(a.selection)||(s=!0);var f,m,h,v,g,y,b,w,x,k,D,M="preserve"==d&&s&&null==this.dom.style.overflowAnchor&&function(e){for(var t,n,r=e.dom.getBoundingClientRect(),a=Math.max(0,r.top),i=(r.left+r.right)/2,o=a+1;o<Math.min(innerHeight,r.bottom);o+=5){var s=e.root.elementFromPoint(i,o);if(s!=e.dom&&e.dom.contains(s)){var l=s.getBoundingClientRect();if(l.top>=a-20){t=s,n=l.top;break}}}return{refDOM:t,refTop:n,stack:C(e.dom)}}(this);if(s){this.domObserver.stop();var T=p&&(o.ie||o.chrome)&&!this.composing&&!a.selection.empty&&!e.selection.empty&&(v=a.selection,g=e.selection,y=Math.min(v.$anchor.sharedDepth(v.head),g.$anchor.sharedDepth(g.head)),v.$anchor.start(y)!=g.$anchor.start(y));if(p){var E=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=Z(e.doc,u,c,this.dom,this)),E&&!this.trackWrites&&(T=!0)}T||!(this.mouseDown&&this.domObserver.currentSelection.eq(this.root.getSelection())&&(f=this,m=f.docView.domFromPos(f.state.selection.anchor),h=f.root.getSelection(),_(m.node,m.offset,h.anchorNode,h.anchorOffset)))?fe(this,T):(ge(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}if(this.updatePluginViews(a),"reset"==d)this.dom.scrollTop=0;else if("to selection"==d){var O=this.root.getSelection().focusNode;this.someProp("handleScrollToSelection",(function(e){return e(n)}))||(e.selection instanceof r.NodeSelection?S(this,this.docView.domAfterPos(e.selection.from).getBoundingClientRect(),O):S(this,this.coordsAtPos(e.selection.head,1),O))}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))},Ft.prototype.destroyPluginViews=function(){for(var e;e=this.pluginViews.pop();)e.destroy&&e.destroy()},Ft.prototype.updatePluginViews=function(e){if(e&&e.plugins==this.state.plugins)for(var t=0;t<this.pluginViews.length;t++){var n=this.pluginViews[t];n.update&&n.update(this,e)}else{this.destroyPluginViews();for(var r=0;r<this.state.plugins.length;r++){var a=this.state.plugins[r];a.spec.view&&this.pluginViews.push(a.spec.view(this))}}},Ft.prototype.someProp=function(e,t){var n,r=this._props&&this._props[e];if(null!=r&&(n=t?t(r):r))return n;var a=this.state.plugins;if(a)for(var i=0;i<a.length;i++){var o=a[i].props[e];if(null!=o&&(n=t?t(o):o))return n}},Ft.prototype.hasFocus=function(){return this.root.activeElement==this.dom},Ft.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),fe(this),this.domObserver.start()},Rt.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},Ft.prototype.posAtCoords=function(e){return j(this,e)},Ft.prototype.coordsAtPos=function(e,t){return void 0===t&&(t=1),Y(this,e,t)},Ft.prototype.domAtPos=function(e){return this.docView.domFromPos(e)},Ft.prototype.nodeDOM=function(e){var t=this.docView.descAt(e);return t?t.nodeDOM:null},Ft.prototype.posAtDOM=function(e,t,n){void 0===n&&(n=-1);var r=this.docView.posFromDOM(e,t,n);if(null==r)throw new RangeError("DOM position not inside the editor");return r},Ft.prototype.endOfTextblock=function(e,t){return B(this,t||this.state,e)},Ft.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,[],zt(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)},Ft.prototype.dispatchEvent=function(e){return function(e,t){tt(e,t)||!Ze[t.type]||!e.editable&&t.type in Xe||Ze[t.type](e,t)}(this,e)},Ft.prototype.dispatch=function(e){var t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))},Object.defineProperties(Ft.prototype,Rt)},"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"))},"585a":function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("c8ba"))},5899:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(e,t,n){var r=n("1d80"),a="["+n("5899")+"]",i=RegExp("^"+a+a+"*"),o=RegExp(a+a+"*$"),s=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(i,"")),2&e&&(n=n.replace(o,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},"598a":function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n("c1df"))},"5a34":function(e,t,n){var r=n("44e7");e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5aff":function(e,t,n){!function(e){"use strict";var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n("c1df"))},"5b14":function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var a=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return a+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return a+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return a+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return a+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return a+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return a+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},"5c3a":function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n("c1df"))},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5cbb":function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n("c1df"))},"5dbe":function(e,t,n){!function(){var t;function n(e){for(var t,n,r,a,i=1,o=[].slice.call(arguments),s=0,l=e.length,c="",u=!1,d=!1,p=function(){return o[i++]},f=function(){for(var n="";/\d/.test(e[s]);)n+=e[s++],t=e[s];return n.length>0?parseInt(n):null};s<l;++s)if(t=e[s],u)switch(u=!1,"."==t?(d=!1,t=e[++s]):"0"==t&&"."==e[s+1]?(d=!0,t=e[s+=2]):d=!0,a=f(),t){case"b":c+=parseInt(p(),10).toString(2);break;case"c":c+="string"==typeof(n=p())||n instanceof String?n:String.fromCharCode(parseInt(n,10));break;case"d":c+=parseInt(p(),10);break;case"f":r=String(parseFloat(p()).toFixed(a||6)),c+=d?r:r.replace(/^0/,"");break;case"j":c+=JSON.stringify(p());break;case"o":c+="0"+parseInt(p(),10).toString(8);break;case"s":c+=p();break;case"x":c+="0x"+parseInt(p(),10).toString(16);break;case"X":c+="0x"+parseInt(p(),10).toString(16).toUpperCase();break;default:c+=t}else"%"===t?u=!0:c+=t;return c}(t=e.exports=n).format=n,t.vsprintf=function(e,t){return n.apply(null,[e].concat(t))},"undefined"!=typeof console&&"function"==typeof console.log&&(t.printf=function(){console.log(n.apply(null,arguments))})}()},"5e2e":function(e,t,n){var r=n("28c9"),a=n("69d5"),i=n("b4c0"),o=n("fba5"),s=n("67ca");function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=o,l.prototype.set=s,e.exports=l},"5fbd":function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})}(n("c1df"))},6044:function(e,t,n){var r=n("0b07")(Object,"create");e.exports=r},"605d":function(e,t,n){var r=n("c6b6"),a=n("da84");e.exports="process"==r(a.process)},"60ed":function(e,t,n){var r=n("3729"),a=n("2dcb"),i=n("1310"),o=Function.prototype,s=Object.prototype,l=o.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=a(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},6117:function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n("c1df"))},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},6403:function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("c1df"))},6547:function(e,t,n){var r=n("a691"),a=n("1d80"),i=function(e){return function(t,n){var i,o,s=String(a(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(i=s.charCodeAt(l))<55296||i>56319||l+1===c||(o=s.charCodeAt(l+1))<56320||o>57343?e?s.charAt(l):i:e?s.slice(l,l+2):o-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},"65db":function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n("c1df"))},"65f0":function(e,t,n){var r=n("861d"),a=n("e8b5"),i=n("b622")("species");e.exports=function(e,t){var n;return a(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!a(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},6747:function(e,t){var n=Array.isArray;e.exports=n},6784:function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n("c1df"))},"67ca":function(e,t,n){var r=n("cb5a");e.exports=function(e,t){var n=this.__data__,a=r(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}},6887:function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}var n=[/^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],r=/^(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,a=[/^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:a,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:a,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,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:function(e){switch(function e(t){return t>9?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})}(n("c1df"))},"688b":function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("c1df"))},6909:function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n("c1df"))},"69d5":function(e,t,n){var r=n("cb5a"),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():a.call(t,n,1),--this.size,0))}},"69f3":function(e,t,n){var r,a,i,o=n("7f9a"),s=n("da84"),l=n("861d"),c=n("9112"),u=n("5135"),d=n("c6cd"),p=n("f772"),f=n("d012"),m=s.WeakMap;if(o){var h=d.state||(d.state=new m),_=h.get,v=h.has,g=h.set;r=function(e,t){return t.facade=e,g.call(h,e,t),t},a=function(e){return _.call(h,e)||{}},i=function(e){return v.call(h,e)}}else{var y=p("state");f[y]=!0,r=function(e,t){return t.facade=e,c(e,y,t),t},a=function(e){return u(e,y)?e[y]:{}},i=function(e){return u(e,y)}}e.exports={set:r,get:a,has:i,enforce:function(e){return i(e)?a(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=a(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},"6ce3":function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},"6d79":function(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("c1df"))},"6d83":function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n("c1df"))},"6e98":function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("c1df"))},"6eeb":function(e,t,n){var r=n("da84"),a=n("9112"),i=n("5135"),o=n("ce4e"),s=n("8925"),l=n("69f3"),c=l.get,u=l.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var l,c=!!s&&!!s.unsafe,p=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||a(n,"name",t),(l=u(n)).source||(l.source=d.join("string"==typeof t?t:""))),e!==r?(c?!f&&e[t]&&(p=!0):delete e[t],p?e[t]=n:a(e,t,n)):p?e[t]=n:o(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},"6f12":function(e,t,n){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("c1df"))},"6f50":function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("c1df"))},"6fcd":function(e,t,n){var r=n("50d8"),a=n("d370"),i=n("6747"),o=n("0d24"),s=n("c098"),l=n("73ac"),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&a(e),d=!n&&!u&&o(e),p=!n&&!u&&!d&&l(e),f=n||u||d||p,m=f?r(e.length,String):[],h=m.length;for(var _ in e)!t&&!c.call(e,_)||f&&("length"==_||d&&("offset"==_||"parent"==_)||p&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||s(_,h))||m.push(_);return m}},7118:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("c1df"))},7156:function(e,t,n){var r=n("861d"),a=n("d2bb");e.exports=function(e,t,n){var i,o;return a&&"function"==typeof(i=t.constructor)&&i!==n&&r(o=i.prototype)&&o!==n.prototype&&a(e,o),e}},"716b":function(e,t,n){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p=".",t(t.s=9)}([function(e,t,n){"use strict";t.a={prefix:"",suffix:"",thousands:",",decimal:".",precision:2}},function(e,t,n){"use strict";var r=n(2),a=n(5),i=n(0);t.a=function(e,t){if(t.value){var o=n.i(a.a)(i.a,t.value);if("INPUT"!==e.tagName.toLocaleUpperCase()){var s=e.getElementsByTagName("input");1!==s.length||(e=s[0])}e.oninput=function(){var t=e.value.length-e.selectionEnd;e.value=n.i(r.a)(e.value,o),t=Math.max(t,o.suffix.length),t=e.value.length-t,t=Math.max(t,o.prefix.length+1),n.i(r.b)(e,t),e.dispatchEvent(n.i(r.c)("change"))},e.onfocus=function(){n.i(r.b)(e,e.value.length-o.suffix.length)},e.oninput(),e.dispatchEvent(n.i(r.c)("input"))}}},function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.a;"number"==typeof e&&(e=e.toFixed(o(t.precision)));var n=e.indexOf("-")>=0?"-":"",r=i(e),a=s(r,t.precision),d=u(a).split("."),p=d[0],m=d[1];return p=l(p,t.thousands),t.prefix+n+c(p,m,t.decimal)+t.suffix}function a(e,t){var n=e.indexOf("-")>=0?-1:1,r=s(i(e),t);return parseFloat(r)*n}function i(e){return u(e).replace(/\D+/g,"")||"0"}function o(e){return function(e,t,n){return Math.max(e,Math.min(t,n))}(0,e,20)}function s(e,t){var n=Math.pow(10,t);return(parseFloat(e)/n).toFixed(o(t))}function l(e,t){return e.replace(/(\d)(?=(?:\d{3})+\b)/gm,"$1"+t)}function c(e,t,n){return t?e+n+t:e}function u(e){return e?e.toString():""}function d(e,t){var n=function(){e.setSelectionRange(t,t)};e===document.activeElement&&(n(),setTimeout(n,1))}function p(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}var f=n(0);n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return p}))},function(e,t,n){"use strict";function r(e,t){t&&Object.keys(t).map((function(e){s.a[e]=t[e]})),e.directive("money",o.a),e.component("money",i.a)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(6),i=n.n(a),o=n(1),s=n(0);n.d(t,"Money",(function(){return i.a})),n.d(t,"VMoney",(function(){return o.a})),n.d(t,"options",(function(){return s.a})),n.d(t,"VERSION",(function(){return l}));var l="0.8.1";t.default=r,"undefined"!=typeof window&&window.Vue&&window.Vue.use(r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(0),i=n(2);t.default={name:"Money",props:{value:{required:!0,type:[Number,String],default:0},masked:{type:Boolean,default:!1},precision:{type:Number,default:function(){return a.a.precision}},decimal:{type:String,default:function(){return a.a.decimal}},thousands:{type:String,default:function(){return a.a.thousands}},prefix:{type:String,default:function(){return a.a.prefix}},suffix:{type:String,default:function(){return a.a.suffix}}},directives:{money:r.a},data:function(){return{formattedValue:""}},watch:{value:{immediate:!0,handler:function(e,t){var r=n.i(i.a)(e,this.$props);r!==this.formattedValue&&(this.formattedValue=r)}}},methods:{change:function(e){this.$emit("input",this.masked?e.target.value:n.i(i.d)(e.target.value,this.precision))}}}},function(e,t,n){"use strict";t.a=function(e,t){return e=e||{},t=t||{},Object.keys(e).concat(Object.keys(t)).reduce((function(n,r){return n[r]=void 0===t[r]?e[r]:t[r],n}),{})}},function(e,t,n){var r=n(7)(n(4),n(8),null,null);e.exports=r.exports},function(e,t){e.exports=function(e,t,n,r){var a,i=e=e||{},o=typeof e.default;"object"!==o&&"function"!==o||(a=e,i=e.default);var s="function"==typeof i?i.options:i;if(t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns),n&&(s._scopeId=n),r){var l=s.computed||(s.computed={});Object.keys(r).forEach((function(e){var t=r[e];l[e]=function(){return t}}))}return{esModule:a,exports:i,options:s}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("input",{directives:[{name:"money",rawName:"v-money",value:{precision:e.precision,decimal:e.decimal,thousands:e.thousands,prefix:e.prefix,suffix:e.suffix},expression:"{precision, decimal, thousands, prefix, suffix}"}],staticClass:"v-money",attrs:{type:"tel"},domProps:{value:e.formattedValue},on:{change:e.change}})},staticRenderFns:[]}},function(e,t,n){e.exports=n(3)}])},"72af":function(e,t,n){var r=n("99cd")();e.exports=r},"72f0":function(e,t){e.exports=function(e){return function(){return e}}},7333:function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n("c1df"))},"73ac":function(e,t,n){var r=n("743f"),a=n("b047"),i=n("99d3"),o=i&&i.isTypedArray,s=o?a(o):r;e.exports=s},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"743f":function(e,t,n){var r=n("3729"),a=n("b218"),i=n("1310"),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&a(e.length)&&!!o[r(e)]}},"746f":function(e,t,n){var r=n("428f"),a=n("5135"),i=n("e538"),o=n("9bf2").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});a(t,e)||o(t,e,{value:i.f(e)})}},"74dc":function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n("c1df"))},7530:function(e,t,n){var r=n("1a8c"),a=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(a)return a(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"79bc":function(e,t,n){var r=n("0b07")(n("2b3e"),"Map");e.exports=r},"7a48":function(e,t,n){var r=n("6044"),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)}},"7b0b":function(e,t,n){var r=n("1d80");e.exports=function(e){return Object(r(e))}},"7b83":function(e,t,n){var r=n("7c64"),a=n("93ed"),i=n("2478"),o=n("a524"),s=n("1fc8");function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=o,l.prototype.set=s,e.exports=l},"7be6":function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function a(e,t,n,a){var i=e+" ";switch(n){case"s":return t||a?"pár sekúnd":"pár sekundami";case"ss":return t||a?i+(r(e)?"sekundy":"sekúnd"):i+"sekundami";case"m":return t?"minúta":a?"minútu":"minútou";case"mm":return t||a?i+(r(e)?"minúty":"minút"):i+"minútami";case"h":return t?"hodina":a?"hodinu":"hodinou";case"hh":return t||a?i+(r(e)?"hodiny":"hodín"):i+"hodinami";case"d":return t||a?"deň":"dňom";case"dd":return t||a?i+(r(e)?"dni":"dní"):i+"dňami";case"M":return t||a?"mesiac":"mesiacom";case"MM":return t||a?i+(r(e)?"mesiace":"mesiacov"):i+"mesiacmi";case"y":return t||a?"rok":"rokom";case"yy":return t||a?i+(r(e)?"roky":"rokov"):i+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},"7c64":function(e,t,n){var r=n("e24b"),a=n("5e2e"),i=n("79bc");e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||a),string:new r}}},"7c73":function(e,t,n){var r,a=n("825a"),i=n("37e8"),o=n("7839"),s=n("d012"),l=n("1be4"),c=n("cc12"),u=n("f772"),d=u("IE_PROTO"),p=function(){},f=function(e){return"<script>"+e+"<\/script>"},m=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;m=r?function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=c("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F);for(var n=o.length;n--;)delete m.prototype[o[n]];return m()};s[d]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p.prototype=a(e),n=new p,p.prototype=null,n[d]=e):n=m(),void 0===t?n:i(n,t)}},"7db0":function(e,t,n){"use strict";var r=n("23e7"),a=n("b727").find,i=n("44d2"),o=n("ae40"),s=!0,l=o("find");"find"in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s||!l},{find:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},"7dd0":function(e,t,n){"use strict";var r=n("23e7"),a=n("9ed3"),i=n("e163"),o=n("d2bb"),s=n("d44e"),l=n("9112"),c=n("6eeb"),u=n("b622"),d=n("c430"),p=n("3f8c"),f=n("ae93"),m=f.IteratorPrototype,h=f.BUGGY_SAFARI_ITERATORS,_=u("iterator"),v=function(){return this};e.exports=function(e,t,n,u,f,g,y){a(n,t,u);var b,w,x,k=function(e){if(e===f&&L)return L;if(!h&&e in S)return S[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},D=t+" Iterator",M=!1,S=e.prototype,C=S[_]||S["@@iterator"]||f&&S[f],L=!h&&C||k(f),T="Array"==t&&S.entries||C;if(T&&(b=i(T.call(new e)),m!==Object.prototype&&b.next&&(d||i(b)===m||(o?o(b,m):"function"!=typeof b[_]&&l(b,_,v)),s(b,D,!0,!0),d&&(p[D]=v))),"values"==f&&C&&"values"!==C.name&&(M=!0,L=function(){return C.call(this)}),d&&!y||S[_]===L||l(S,_,L),p[t]=L,f)if(w={values:k("values"),keys:g?L:k("keys"),entries:k("entries")},y)for(x in w)(h||M||!(x in S))&&c(S,x,w[x]);else r({target:t,proto:!0,forced:h||M},w);return w}},"7e64":function(e,t,n){var r=n("5e2e"),a=n("efb6"),i=n("2fcc"),o=n("802a"),s=n("55a3"),l=n("d02c");function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=a,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=l,e.exports=c},"7f06":function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return v}));for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",229:"q"},a={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"',229:"Q"},i="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),o="undefined"!=typeof navigator&&/Apple Computer/.test(navigator.vendor),s="undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),l="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),c="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),u=i&&(l||+i[1]<57)||s&&l,d=0;d<10;d++)r[48+d]=r[96+d]=String(d);for(d=1;d<=24;d++)r[d+111]="F"+d;for(d=65;d<=90;d++)r[d]=String.fromCharCode(d+32),a[d]=String.fromCharCode(d);for(var p in r)a.hasOwnProperty(p)||(a[p]=r[p]);var f=n("5313"),m="undefined"!=typeof navigator&&/Mac/.test(navigator.platform);function h(e){var t,n,r,a,i=e.split(/-(?!$)/),o=i[i.length-1];"Space"==o&&(o=" ");for(var s=0;s<i.length-1;s++){var l=i[s];if(/^(cmd|meta|m)$/i.test(l))a=!0;else if(/^a(lt)?$/i.test(l))t=!0;else if(/^(c|ctrl|control)$/i.test(l))n=!0;else if(/^s(hift)?$/i.test(l))r=!0;else{if(!/^mod$/i.test(l))throw new Error("Unrecognized modifier name: "+l);m?a=!0:n=!0}}return t&&(o="Alt-"+o),n&&(o="Ctrl-"+o),a&&(o="Meta-"+o),r&&(o="Shift-"+o),o}function _(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}function v(e){return new f.Plugin({props:{handleKeyDown:g(e)}})}function g(e){var t=function(e){var t=Object.create(null);for(var n in e)t[h(n)]=e[n];return t}(e);return function(e,n){var i,s=function(e){var t=!(u&&(e.ctrlKey||e.altKey||e.metaKey)||(o||c)&&e.shiftKey&&e.key&&1==e.key.length)&&e.key||(e.shiftKey?a:r)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(n),l=1==s.length&&" "!=s,d=t[_(s,n,!l)];if(d&&d(e.state,e.dispatch,e))return!0;if(l&&(n.shiftKey||n.altKey||n.metaKey||s.charCodeAt(0)>127)&&(i=r[n.keyCode])&&i!=s){var p=t[_(i,n,!0)];if(p&&p(e.state,e.dispatch,e))return!0}else if(l&&n.shiftKey){var f=t[_(s,n,!0)];if(f&&f(e.state,e.dispatch,e))return!0}return!1}}},"7f33":function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n("c1df"))},"7f9a":function(e,t,n){var r=n("da84"),a=n("8925"),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(a(i))},"802a":function(e,t){e.exports=function(e){return this.__data__.get(e)}},8155:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return a+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return a+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return a+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami";case"d":return t||r?"en dan":"enim dnem";case"dd":return a+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi";case"M":return t||r?"en mesec":"enim mesecem";case"MM":return a+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci";case"y":return t||r?"eno leto":"enim letom";case"yy":return a+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti"}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("c1df"))},"81e9":function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,r,a,i){var o="";switch(a){case"s":return i?"muutaman sekunnin":"muutama sekunti";case"ss":o=i?"sekunnin":"sekuntia";break;case"m":return i?"minuutin":"minuutti";case"mm":o=i?"minuutin":"minuuttia";break;case"h":return i?"tunnin":"tunti";case"hh":o=i?"tunnin":"tuntia";break;case"d":return i?"päivän":"päivä";case"dd":o=i?"päivän":"päivää";break;case"M":return i?"kuukauden":"kuukausi";case"MM":o=i?"kuukauden":"kuukautta";break;case"y":return i?"vuoden":"vuosi";case"yy":o=i?"vuoden":"vuotta"}return o=function(e,r){return e<10?r?n[e]:t[e]:e}(e,i)+" "+o}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},8230:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n("c1df"))},"825a":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,n){var r=n("d039");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,t,n){"use strict";var r=n("c04e"),a=n("9bf2"),i=n("5c6c");e.exports=function(e,t,n){var o=r(t);o in e?a.f(e,o,i(0,n)):e[o]=n}},"84aa":function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n("c1df"))},"85e3":function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},"861d":function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},8689:function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n("c1df"))},"872a":function(e,t,n){var r=n("3b4a");e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},8840:function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("c1df"))},8875:function(e,t,n){var r,a,i;"undefined"!=typeof self&&self,a=[],void 0===(i="function"==typeof(r=function(){return function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(e){var n,r,a,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e.stack)||/@([^@]*):(\d+):(\d+)\s*$/gi.exec(e.stack),o=i&&i[1]||!1,s=i&&i[2]||!1,l=document.location.href.replace(document.location.hash,""),c=document.getElementsByTagName("script");o===l&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(s-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),a=n.replace(r,"$1").trim());for(var u=0;u<c.length;u++){if("interactive"===c[u].readyState)return c[u];if(c[u].src===o)return c[u];if(o===l&&c[u].innerHTML&&c[u].innerHTML.trim()===a)return c[u]}return null}}})?r.apply(t,a):r)||(e.exports=i)},8925:function(e,t,n){var r=n("c6cd"),a=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return a.call(e)}),e.exports=r.inspectSource},"898b":function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})}(n("c1df"))},"8aa5":function(e,t,n){"use strict";var r=n("6547").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"8adb":function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},"8bbf":function(t,n){t.exports=e},"8d47":function(e,t,n){!function(e){"use strict";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,t){var n,r=this._calendarEl[e],a=t&&t.hours();return n=r,("undefined"!=typeof Function&&n instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(r=r.apply(t)),r.replace("{}",a%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n("c1df"))},"8d57":function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),r=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function a(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function i(e,t,n){var r=e+" ";switch(n){case"ss":return r+(a(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return r+(a(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(a(e)?"godziny":"godzin");case"ww":return r+(a(e)?"tygodnie":"tygodni");case"MM":return r+(a(e)?"miesiące":"miesięcy");case"yy":return r+(a(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,r){return e?/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:i,m:i,mm:i,h:i,hh:i,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:i,M:"miesiąc",MM:i,y:"rok",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},"8de2":function(e,t,n){var r=n("8eeb"),a=n("9934");e.exports=function(e){return r(e,a(e))}},"8df4":function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysShort:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n("c1df"))},"8e73":function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},a={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,n,i,o){var s=r(t),l=a[e][r(t)];return 2===s&&(l=l[n?0:1]),l.replace(/%d/i,t)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n("c1df"))},"8eeb":function(e,t,n){var r=n("32b3"),a=n("872a");e.exports=function(e,t,n,i){var o=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=i?i(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),o?a(n,c,u):r(n,c,u)}return n}},9043:function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n("c1df"))},"90e3":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},"90ea":function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n("c1df"))},9112:function(e,t,n){var r=n("83ab"),a=n("9bf2"),i=n("5c6c");e.exports=r?function(e,t,n){return a.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"91e9":function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},9263:function(e,t,n){"use strict";var r,a,i=n("ad6d"),o=n("9f7f"),s=RegExp.prototype.exec,l=String.prototype.replace,c=s,u=(r=/a/,a=/b*/g,s.call(r,"a"),s.call(a,"a"),0!==r.lastIndex||0!==a.lastIndex),d=o.UNSUPPORTED_Y||o.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(u||p||d)&&(c=function(e){var t,n,r,a,o=this,c=d&&o.sticky,f=i.call(o),m=o.source,h=0,_=e;return c&&(-1===(f=f.replace("y","")).indexOf("g")&&(f+="g"),_=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==e[o.lastIndex-1])&&(m="(?: "+m+")",_=" "+_,h++),n=new RegExp("^(?:"+m+")",f)),p&&(n=new RegExp("^"+m+"$(?!\\s)",f)),u&&(t=o.lastIndex),r=s.call(c?n:o,_),c?r?(r.input=r.input.slice(h),r[0]=r[0].slice(h),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:u&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),p&&r&&r.length>1&&l.call(r[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(r[a]=void 0)})),r}),e.exports=c},"92c3":function(e,t,n){e.exports=function(){"use strict";var e,t=(function(e){var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(){r(this,e)}return t(e,[{key:"on",value:function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this}},{key:"emit",value:function(e){this._callbacks=this._callbacks||{};var t=this._callbacks[e];if(t){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];for(var i=0,o=o=t;!(i>=o.length);)o[i++].apply(this,r)}return this}},{key:"off",value:function(e,t){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var n=this._callbacks[e];if(!n)return this;if(1===arguments.length)return delete this._callbacks[e],this;for(var r=0;r<n.length;r++)if(n[r]===t){n.splice(r,1);break}return this}}]),e}(),i=function(e){function i(e,t){r(this,i);var a,o=n(this,(i.__proto__||Object.getPrototypeOf(i)).call(this)),s=void 0;if(o.element=e,o.version=i.version,o.defaultOptions.previewTemplate=o.defaultOptions.previewTemplate.replace(/\n*/g,""),o.clickableElements=[],o.listeners=[],o.files=[],"string"==typeof o.element&&(o.element=document.querySelector(o.element)),!o.element||null==o.element.nodeType)throw new Error("Invalid dropzone element.");if(o.element.dropzone)throw new Error("Dropzone already attached.");i.instances.push(o),o.element.dropzone=o;var l,c=null!=(a=i.optionsForElement(o.element))?a:{};if(o.options=i.extend({},o.defaultOptions,c,null!=t?t:{}),o.options.forceFallback||!i.isBrowserSupported())return l=o.options.fallback.call(o),n(o,l);if(null==o.options.url&&(o.options.url=o.element.getAttribute("action")),!o.options.url)throw new Error("No URL provided.");if(o.options.acceptedFiles&&o.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(o.options.uploadMultiple&&o.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return o.options.acceptedMimeTypes&&(o.options.acceptedFiles=o.options.acceptedMimeTypes,delete o.options.acceptedMimeTypes),null!=o.options.renameFilename&&(o.options.renameFile=function(e){return o.options.renameFilename.call(o,e.name,e)}),o.options.method=o.options.method.toUpperCase(),(s=o.getExistingFallback())&&s.parentNode&&s.parentNode.removeChild(s),!1!==o.options.previewsContainer&&(o.options.previewsContainer?o.previewsContainer=i.getElement(o.options.previewsContainer,"previewsContainer"):o.previewsContainer=o.element),o.options.clickable&&(!0===o.options.clickable?o.clickableElements=[o.element]:o.clickableElements=i.getElements(o.options.clickable,"clickable")),o.init(),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,a),t(i,null,[{key:"initClass",value:function(){this.prototype.Emitter=a,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype.defaultOptions={url:null,method:"post",withCredentials:!1,timeout:3e4,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(e,t,n){if(n)return{dzuuid:n.file.upload.uuid,dzchunkindex:n.index,dztotalfilesize:n.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:n.file.upload.totalChunkCount,dzchunkbyteoffset:n.index*this.options.chunkSize}},accept:function(e,t){return t()},chunksUploaded:function(e,t){t()},fallback:function(){var e=void 0;this.element.className=this.element.className+" dz-browser-not-supported";for(var t=0,n=n=this.element.getElementsByTagName("div");!(t>=n.length);){var r=n[t++];if(/(^| )dz-message($| )/.test(r.className)){e=r,r.className="dz-message";break}}e||(e=i.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(e));var a=e.getElementsByTagName("span")[0];return a&&(null!=a.textContent?a.textContent=this.options.dictFallbackMessage:null!=a.innerText&&(a.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e,t,n,r){var a={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},i=e.width/e.height;null==t&&null==n?(t=a.srcWidth,n=a.srcHeight):null==t?t=n*i:null==n&&(n=t/i);var o=(t=Math.min(t,a.srcWidth))/(n=Math.min(n,a.srcHeight));if(a.srcWidth>t||a.srcHeight>n)if("crop"===r)i>o?(a.srcHeight=e.height,a.srcWidth=a.srcHeight*o):(a.srcWidth=e.width,a.srcHeight=a.srcWidth/o);else{if("contain"!==r)throw new Error("Unknown resizeMethod '"+r+"'");i>o?n=t/i:t=n*i}return a.srcX=(e.width-a.srcWidth)/2,a.srcY=(e.height-a.srcHeight)/2,a.trgWidth=t,a.trgHeight=n,a},transformFile:function(e,t){return(this.options.resizeWidth||this.options.resizeHeight)&&e.type.match(/image.*/)?this.resizeImage(e,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,t):t(e)},previewTemplate:'<div class="dz-preview dz-file-preview">\n <div class="dz-image"><img data-dz-thumbnail /></div>\n <div class="dz-details">\n <div class="dz-size"><span data-dz-size></span></div>\n <div class="dz-filename"><span data-dz-name></span></div>\n </div>\n <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n <div class="dz-error-message"><span data-dz-errormessage></span></div>\n <div class="dz-success-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n <title>Check</title>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>\n </g>\n </svg>\n </div>\n <div class="dz-error-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n <title>Error</title>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <g id="Check-+-Oval-2" sketch:type="MSLayerGroup" stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" sketch:type="MSShapeGroup"></path>\n </g>\n </g>\n </svg>\n </div>\n</div>',drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:function(e){},dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:function(e){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var t=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){e.previewElement=i.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement);for(var n=0,r=r=e.previewElement.querySelectorAll("[data-dz-name]");!(n>=r.length);){var a=r[n++];a.textContent=e.name}for(var o=0,s=s=e.previewElement.querySelectorAll("[data-dz-size]");!(o>=s.length);)(a=s[o++]).innerHTML=this.filesize(e.size);this.options.addRemoveLinks&&(e._removeLink=i.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'+this.options.dictRemoveFile+"</a>"),e.previewElement.appendChild(e._removeLink));for(var l=function(n){return n.preventDefault(),n.stopPropagation(),e.status===i.UPLOADING?i.confirm(t.options.dictCancelUploadConfirmation,(function(){return t.removeFile(e)})):t.options.dictRemoveFileConfirmation?i.confirm(t.options.dictRemoveFileConfirmation,(function(){return t.removeFile(e)})):t.removeFile(e)},c=0,u=u=e.previewElement.querySelectorAll("[data-dz-remove]");!(c>=u.length);)u[c++].addEventListener("click",l)}},removedfile:function(e){return null!=e.previewElement&&null!=e.previewElement.parentNode&&e.previewElement.parentNode.removeChild(e.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(e,t){if(e.previewElement){e.previewElement.classList.remove("dz-file-preview");for(var n=0,r=r=e.previewElement.querySelectorAll("[data-dz-thumbnail]");!(n>=r.length);){var a=r[n++];a.alt=e.name,a.src=t}return setTimeout((function(){return e.previewElement.classList.add("dz-image-preview")}),1)}},error:function(e,t){if(e.previewElement){e.previewElement.classList.add("dz-error"),"String"!=typeof t&&t.error&&(t=t.error);for(var n=0,r=r=e.previewElement.querySelectorAll("[data-dz-errormessage]");!(n>=r.length);)r[n++].textContent=t}},errormultiple:function(){},processing:function(e){if(e.previewElement&&(e.previewElement.classList.add("dz-processing"),e._removeLink))return e._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(e,t,n){if(e.previewElement)for(var r=0,a=a=e.previewElement.querySelectorAll("[data-dz-uploadprogress]");!(r>=a.length);){var i=a[r++];"PROGRESS"===i.nodeName?i.value=t:i.style.width=t+"%"}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(e){if(e.previewElement)return e.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(e){return this.emit("error",e,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(e){if(e._removeLink&&(e._removeLink.innerHTML=this.options.dictRemoveFile),e.previewElement)return e.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var a=0,i=i=n;!(a>=i.length);){var o=i[a++];for(var s in o){var l=o[s];e[s]=l}}return e}}]),t(i,[{key:"getAcceptedFiles",value:function(){return this.files.filter((function(e){return e.accepted})).map((function(e){return e}))}},{key:"getRejectedFiles",value:function(){return this.files.filter((function(e){return!e.accepted})).map((function(e){return e}))}},{key:"getFilesWithStatus",value:function(e){return this.files.filter((function(t){return t.status===e})).map((function(e){return e}))}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(i.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(i.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(i.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter((function(e){return e.status===i.UPLOADING||e.status===i.QUEUED})).map((function(e){return e}))}},{key:"init",value:function(){var e=this;"form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(i.createElement('<div class="dz-default dz-message"><span>'+this.options.dictDefaultMessage+"</span></div>")),this.clickableElements.length&&function t(){return e.hiddenFileInput&&e.hiddenFileInput.parentNode.removeChild(e.hiddenFileInput),e.hiddenFileInput=document.createElement("input"),e.hiddenFileInput.setAttribute("type","file"),(null===e.options.maxFiles||e.options.maxFiles>1)&&e.hiddenFileInput.setAttribute("multiple","multiple"),e.hiddenFileInput.className="dz-hidden-input",null!==e.options.acceptedFiles&&e.hiddenFileInput.setAttribute("accept",e.options.acceptedFiles),null!==e.options.capture&&e.hiddenFileInput.setAttribute("capture",e.options.capture),e.hiddenFileInput.style.visibility="hidden",e.hiddenFileInput.style.position="absolute",e.hiddenFileInput.style.top="0",e.hiddenFileInput.style.left="0",e.hiddenFileInput.style.height="0",e.hiddenFileInput.style.width="0",i.getElement(e.options.hiddenInputContainer,"hiddenInputContainer").appendChild(e.hiddenFileInput),e.hiddenFileInput.addEventListener("change",(function(){var n=e.hiddenFileInput.files;if(n.length)for(var r=0,a=a=n;!(r>=a.length);){var i=a[r++];e.addFile(i)}return e.emit("addedfiles",n),t()}))}(),this.URL=null!==window.URL?window.URL:window.webkitURL;for(var t=0,n=n=this.events;!(t>=n.length);){var r=n[t++];this.on(r,this.options[r])}this.on("uploadprogress",(function(){return e.updateTotalUploadProgress()})),this.on("removedfile",(function(){return e.updateTotalUploadProgress()})),this.on("canceled",(function(t){return e.emit("complete",t)})),this.on("complete",(function(t){if(0===e.getAddedFiles().length&&0===e.getUploadingFiles().length&&0===e.getQueuedFiles().length)return setTimeout((function(){return e.emit("queuecomplete")}),0)}));var a=function(e){return e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(t){return e.emit("dragstart",t)},dragenter:function(t){return a(t),e.emit("dragenter",t)},dragover:function(t){var n=void 0;try{n=t.dataTransfer.effectAllowed}catch(e){}return t.dataTransfer.dropEffect="move"===n||"linkMove"===n?"move":"copy",a(t),e.emit("dragover",t)},dragleave:function(t){return e.emit("dragleave",t)},drop:function(t){return a(t),e.drop(t)},dragend:function(t){return e.emit("dragend",t)}}}],this.clickableElements.forEach((function(t){return e.listeners.push({element:t,events:{click:function(n){return(t!==e.element||n.target===e.element||i.elementInside(n.target,e.element.querySelector(".dz-message")))&&e.hiddenFileInput.click(),!0}}})})),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),(null!=this.hiddenFileInput?this.hiddenFileInput.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,i.instances.splice(i.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var e=void 0,t=0,n=0;if(this.getActiveFiles().length){for(var r=0,a=a=this.getActiveFiles();!(r>=a.length);){var i=a[r++];t+=i.upload.bytesSent,n+=i.upload.total}e=100*t/n}else e=100;return this.emit("totaluploadprogress",e,n,t)}},{key:"_getParamName",value:function(e){return"function"==typeof this.options.paramName?this.options.paramName(e):this.options.paramName+(this.options.uploadMultiple?"["+e+"]":"")}},{key:"_renameFile",value:function(e){return"function"!=typeof this.options.renameFile?e.name:this.options.renameFile(e)}},{key:"getFallbackForm",value:function(){var e,t=void 0;if(e=this.getExistingFallback())return e;var n='<div class="dz-fallback">';this.options.dictFallbackText&&(n+="<p>"+this.options.dictFallbackText+"</p>"),n+='<input type="file" name="'+this._getParamName(0)+'" '+(this.options.uploadMultiple?'multiple="multiple"':void 0)+' /><input type="submit" value="Upload!"></div>';var r=i.createElement(n);return"FORM"!==this.element.tagName?(t=i.createElement('<form action="'+this.options.url+'" enctype="multipart/form-data" method="'+this.options.method+'"></form>')).appendChild(r):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=t?t:r}},{key:"getExistingFallback",value:function(){for(var e=function(e){for(var t=0,n=n=e;!(t>=n.length);){var r=n[t++];if(/(^| )fallback($| )/.test(r.className))return r}},t=["div","form"],n=0;n<t.length;n++){var r,a=t[n];if(r=e(this.element.getElementsByTagName(a)))return r}}},{key:"setupEventListeners",value:function(){return this.listeners.map((function(e){return function(){var t=[];for(var n in e.events){var r=e.events[n];t.push(e.element.addEventListener(n,r,!1))}return t}()}))}},{key:"removeEventListeners",value:function(){return this.listeners.map((function(e){return function(){var t=[];for(var n in e.events){var r=e.events[n];t.push(e.element.removeEventListener(n,r,!1))}return t}()}))}},{key:"disable",value:function(){var e=this;return this.clickableElements.forEach((function(e){return e.classList.remove("dz-clickable")})),this.removeEventListeners(),this.disabled=!0,this.files.map((function(t){return e.cancelUpload(t)}))}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach((function(e){return e.classList.add("dz-clickable")})),this.setupEventListeners()}},{key:"filesize",value:function(e){var t=0,n="b";if(e>0){for(var r=["tb","gb","mb","kb","b"],a=0;a<r.length;a++){var i=r[a];if(e>=Math.pow(this.options.filesizeBase,4-a)/10){t=e/Math.pow(this.options.filesizeBase,4-a),n=i;break}}t=Math.round(10*t)/10}return"<strong>"+t+"</strong> "+this.options.dictFileSizeUnits[n]}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(e){if(e.dataTransfer){this.emit("drop",e);for(var t=[],n=0;n<e.dataTransfer.files.length;n++)t[n]=e.dataTransfer.files[n];if(this.emit("addedfiles",t),t.length){var r=e.dataTransfer.items;r&&r.length&&null!=r[0].webkitGetAsEntry?this._addFilesFromItems(r):this.handleFiles(t)}}}},{key:"paste",value:function(e){if(null!=(null!=(t=null!=e?e.clipboardData:void 0)?function(e){return e.items}(t):void 0)){var t;this.emit("paste",e);var n=e.clipboardData.items;return n.length?this._addFilesFromItems(n):void 0}}},{key:"handleFiles",value:function(e){for(var t=0,n=n=e;!(t>=n.length);){var r=n[t++];this.addFile(r)}}},{key:"_addFilesFromItems",value:function(e){var t=this;return function(){for(var n=[],r=0,a=a=e;!(r>=a.length);){var i,o=a[r++];null!=o.webkitGetAsEntry&&(i=o.webkitGetAsEntry())?i.isFile?n.push(t.addFile(o.getAsFile())):i.isDirectory?n.push(t._addFilesFromDirectory(i,i.name)):n.push(void 0):null==o.getAsFile||null!=o.kind&&"file"!==o.kind?n.push(void 0):n.push(t.addFile(o.getAsFile()))}return n}()}},{key:"_addFilesFromDirectory",value:function(e,t){var n=this,r=e.createReader(),a=function(e){return n=function(t){return t.log(e)},null!=(t=console)&&"function"==typeof t.log?n(t):void 0;var t,n};return function e(){return r.readEntries((function(r){if(r.length>0){for(var a=0,i=i=r;!(a>=i.length);){var o=i[a++];o.isFile?o.file((function(e){if(!n.options.ignoreHiddenFiles||"."!==e.name.substring(0,1))return e.fullPath=t+"/"+e.name,n.addFile(e)})):o.isDirectory&&n._addFilesFromDirectory(o,t+"/"+o.name)}e()}return null}),a)}()}},{key:"accept",value:function(e,t){return this.options.maxFilesize&&e.size>1024*this.options.maxFilesize*1024?t(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):i.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,t):t(this.options.dictInvalidFileType)}},{key:"addFile",value:function(e){var t=this;return e.upload={uuid:i.uuidv4(),progress:0,total:e.size,bytesSent:0,filename:this._renameFile(e),chunked:this.options.chunking&&(this.options.forceChunking||e.size>this.options.chunkSize),totalChunkCount:Math.ceil(e.size/this.options.chunkSize)},this.files.push(e),e.status=i.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,(function(n){return n?(e.accepted=!1,t._errorProcessing([e],n)):(e.accepted=!0,t.options.autoQueue&&t.enqueueFile(e)),t._updateMaxFilesReachedClass()}))}},{key:"enqueueFiles",value:function(e){for(var t=0,n=n=e;!(t>=n.length);){var r=n[t++];this.enqueueFile(r)}return null}},{key:"enqueueFile",value:function(e){var t=this;if(e.status!==i.ADDED||!0!==e.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(e.status=i.QUEUED,this.options.autoProcessQueue)return setTimeout((function(){return t.processQueue()}),0)}},{key:"_enqueueThumbnail",value:function(e){var t=this;if(this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(e),setTimeout((function(){return t._processThumbnailQueue()}),0)}},{key:"_processThumbnailQueue",value:function(){var e=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var t=this._thumbnailQueue.shift();return this.createThumbnail(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,(function(n){return e.emit("thumbnail",t,n),e._processingThumbnail=!1,e._processThumbnailQueue()}))}}},{key:"removeFile",value:function(e){if(e.status===i.UPLOADING&&this.cancelUpload(e),this.files=o(this.files,e),this.emit("removedfile",e),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(e){null==e&&(e=!1);for(var t=0,n=n=this.files.slice();!(t>=n.length);){var r=n[t++];(r.status!==i.UPLOADING||e)&&this.removeFile(r)}return null}},{key:"resizeImage",value:function(e,t,n,r,a){var o=this;return this.createThumbnail(e,t,n,r,!0,(function(t,n){if(null==n)return a(e);var r=o.options.resizeMimeType;null==r&&(r=e.type);var s=n.toDataURL(r,o.options.resizeQuality);return"image/jpeg"!==r&&"image/jpg"!==r||(s=c.restore(e.dataURL,s)),a(i.dataURItoBlob(s))}))}},{key:"createThumbnail",value:function(e,t,n,r,a,i){var o=this,s=new FileReader;return s.onload=function(){if(e.dataURL=s.result,"image/svg+xml"!==e.type)return o.createThumbnailFromUrl(e,t,n,r,a,i);null!=i&&i(s.result)},s.readAsDataURL(e)}},{key:"createThumbnailFromUrl",value:function(e,t,n,r,a,i,o){var s=this,c=document.createElement("img");return o&&(c.crossOrigin=o),c.onload=function(){var o=function(e){return e(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&a&&(o=function(e){return EXIF.getData(c,(function(){return e(EXIF.getTag(this,"Orientation"))}))}),o((function(a){e.width=c.width,e.height=c.height;var o=s.options.resize.call(s,e,t,n,r),u=document.createElement("canvas"),d=u.getContext("2d");switch(u.width=o.trgWidth,u.height=o.trgHeight,a>4&&(u.width=o.trgHeight,u.height=o.trgWidth),a){case 2:d.translate(u.width,0),d.scale(-1,1);break;case 3:d.translate(u.width,u.height),d.rotate(Math.PI);break;case 4:d.translate(0,u.height),d.scale(1,-1);break;case 5:d.rotate(.5*Math.PI),d.scale(1,-1);break;case 6:d.rotate(.5*Math.PI),d.translate(0,-u.width);break;case 7:d.rotate(.5*Math.PI),d.translate(u.height,-u.width),d.scale(-1,1);break;case 8:d.rotate(-.5*Math.PI),d.translate(-u.height,0)}l(d,c,null!=o.srcX?o.srcX:0,null!=o.srcY?o.srcY:0,o.srcWidth,o.srcHeight,null!=o.trgX?o.trgX:0,null!=o.trgY?o.trgY:0,o.trgWidth,o.trgHeight);var p=u.toDataURL("image/png");if(null!=i)return i(p,u)}))},null!=i&&(c.onerror=i),c.src=e.dataURL}},{key:"processQueue",value:function(){var e=this.options.parallelUploads,t=this.getUploadingFiles().length,n=t;if(!(t>=e)){var r=this.getQueuedFiles();if(r.length>0){if(this.options.uploadMultiple)return this.processFiles(r.slice(0,e-t));for(;n<e;){if(!r.length)return;this.processFile(r.shift()),n++}}}}},{key:"processFile",value:function(e){return this.processFiles([e])}},{key:"processFiles",value:function(e){for(var t=0,n=n=e;!(t>=n.length);){var r=n[t++];r.processing=!0,r.status=i.UPLOADING,this.emit("processing",r)}return this.options.uploadMultiple&&this.emit("processingmultiple",e),this.uploadFiles(e)}},{key:"_getFilesWithXhr",value:function(e){return this.files.filter((function(t){return t.xhr===e})).map((function(e){return e}))}},{key:"cancelUpload",value:function(e){if(e.status===i.UPLOADING){for(var t=this._getFilesWithXhr(e.xhr),n=0,r=r=t;!(n>=r.length);)r[n++].status=i.CANCELED;void 0!==e.xhr&&e.xhr.abort();for(var a=0,o=o=t;!(a>=o.length);){var s=o[a++];this.emit("canceled",s)}this.options.uploadMultiple&&this.emit("canceledmultiple",t)}else e.status!==i.ADDED&&e.status!==i.QUEUED||(e.status=i.CANCELED,this.emit("canceled",e),this.options.uploadMultiple&&this.emit("canceledmultiple",[e]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(e){if("function"==typeof e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(this,n)}return e}},{key:"uploadFile",value:function(e){return this.uploadFiles([e])}},{key:"uploadFiles",value:function(e){var t=this;this._transformFiles(e,(function(n){if(e[0].upload.chunked){var r=e[0],a=n[0];r.upload.chunks=[];var o=function(){for(var n=0;void 0!==r.upload.chunks[n];)n++;if(!(n>=r.upload.totalChunkCount)){var o=n*t.options.chunkSize,s=Math.min(o+t.options.chunkSize,r.size),l={name:t._getParamName(0),data:a.webkitSlice?a.webkitSlice(o,s):a.slice(o,s),filename:r.upload.filename,chunkIndex:n};r.upload.chunks[n]={file:r,index:n,dataBlock:l,status:i.UPLOADING,progress:0,retries:0},t._uploadData(e,[l])}};if(r.upload.finishedChunkUpload=function(n){var a=!0;n.status=i.SUCCESS,n.dataBlock=null,n.xhr=null;for(var s=0;s<r.upload.totalChunkCount;s++){if(void 0===r.upload.chunks[s])return o();r.upload.chunks[s].status!==i.SUCCESS&&(a=!1)}a&&t.options.chunksUploaded(r,(function(){t._finished(e,"",null)}))},t.options.parallelChunkUploads)for(var s=0;s<r.upload.totalChunkCount;s++)o();else o()}else{for(var l=[],c=0;c<e.length;c++)l[c]={name:t._getParamName(c),data:n[c],filename:e[c].upload.filename};t._uploadData(e,l)}}))}},{key:"_getChunk",value:function(e,t){for(var n=0;n<e.upload.totalChunkCount;n++)if(void 0!==e.upload.chunks[n]&&e.upload.chunks[n].xhr===t)return e.upload.chunks[n]}},{key:"_uploadData",value:function(e,t){for(var n=this,r=new XMLHttpRequest,a=0,o=o=e;!(a>=o.length);)o[a++].xhr=r;e[0].upload.chunked&&(e[0].upload.chunks[t[0].chunkIndex].xhr=r);var s=this.resolveOption(this.options.method,e),l=this.resolveOption(this.options.url,e);r.open(s,l,!0),r.timeout=this.resolveOption(this.options.timeout,e),r.withCredentials=!!this.options.withCredentials,r.onload=function(t){n._finishedUploading(e,r,t)},r.onerror=function(){n._handleUploadError(e,r)},(null!=r.upload?r.upload:r).onprogress=function(t){return n._updateFilesUploadProgress(e,r,t)};var c={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};for(var u in this.options.headers&&i.extend(c,this.options.headers),c){var d=c[u];d&&r.setRequestHeader(u,d)}var p=new FormData;if(this.options.params){var f=this.options.params;for(var m in"function"==typeof f&&(f=f.call(this,e,r,e[0].upload.chunked?this._getChunk(e[0],r):null)),f){var h=f[m];p.append(m,h)}}for(var _=0,v=v=e;!(_>=v.length);){var g=v[_++];this.emit("sending",g,r,p)}this.options.uploadMultiple&&this.emit("sendingmultiple",e,r,p),this._addFormElementData(p);for(var y=0;y<t.length;y++){var b=t[y];p.append(b.name,b.data,b.filename)}this.submitRequest(r,p,e)}},{key:"_transformFiles",value:function(e,t){for(var n=this,r=[],a=0,i=function(i){n.options.transformFile.call(n,e[i],(function(n){r[i]=n,++a===e.length&&t(r)}))},o=0;o<e.length;o++)i(o)}},{key:"_addFormElementData",value:function(e){if("FORM"===this.element.tagName)for(var t=0,n=n=this.element.querySelectorAll("input, textarea, select, button");!(t>=n.length);){var r=n[t++],a=r.getAttribute("name"),i=r.getAttribute("type");if(i&&(i=i.toLowerCase()),null!=a)if("SELECT"===r.tagName&&r.hasAttribute("multiple"))for(var o=0,s=s=r.options;!(o>=s.length);){var l=s[o++];l.selected&&e.append(a,l.value)}else(!i||"checkbox"!==i&&"radio"!==i||r.checked)&&e.append(a,r.value)}}},{key:"_updateFilesUploadProgress",value:function(e,t,n){var r=void 0;if(void 0!==n){if(r=100*n.loaded/n.total,e[0].upload.chunked){var a=e[0],i=this._getChunk(a,t);i.progress=r,i.total=n.total,i.bytesSent=n.loaded,a.upload.progress=0,a.upload.total=0,a.upload.bytesSent=0;for(var o=0;o<a.upload.totalChunkCount;o++)void 0!==a.upload.chunks[o]&&void 0!==a.upload.chunks[o].progress&&(a.upload.progress+=a.upload.chunks[o].progress,a.upload.total+=a.upload.chunks[o].total,a.upload.bytesSent+=a.upload.chunks[o].bytesSent);a.upload.progress=a.upload.progress/a.upload.totalChunkCount}else for(var s=0,l=l=e;!(s>=l.length);){var c=l[s++];c.upload.progress=r,c.upload.total=n.total,c.upload.bytesSent=n.loaded}for(var u=0,d=d=e;!(u>=d.length);){var p=d[u++];this.emit("uploadprogress",p,p.upload.progress,p.upload.bytesSent)}}else{var f=!0;r=100;for(var m=0,h=h=e;!(m>=h.length);){var _=h[m++];100===_.upload.progress&&_.upload.bytesSent===_.upload.total||(f=!1),_.upload.progress=r,_.upload.bytesSent=_.upload.total}if(f)return;for(var v=0,g=g=e;!(v>=g.length);){var y=g[v++];this.emit("uploadprogress",y,r,y.upload.bytesSent)}}}},{key:"_finishedUploading",value:function(e,t,n){var r=void 0;if(e[0].status!==i.CANCELED&&4===t.readyState){if("arraybuffer"!==t.responseType&&"blob"!==t.responseType&&(r=t.responseText,t.getResponseHeader("content-type")&&~t.getResponseHeader("content-type").indexOf("application/json")))try{r=JSON.parse(r)}catch(e){n=e,r="Invalid JSON response from server."}this._updateFilesUploadProgress(e),200<=t.status&&t.status<300?e[0].upload.chunked?e[0].upload.finishedChunkUpload(this._getChunk(e[0],t)):this._finished(e,r,n):this._handleUploadError(e,t,r)}}},{key:"_handleUploadError",value:function(e,t,n){if(e[0].status!==i.CANCELED){if(e[0].upload.chunked&&this.options.retryChunks){var r=this._getChunk(e[0],t);if(r.retries++<this.options.retryChunksLimit)return void this._uploadData(e,[r.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}for(var a=0,o=o=e;!(a>=o.length);)o[a++],this._errorProcessing(e,n||this.options.dictResponseError.replace("{{statusCode}}",t.status),t)}}},{key:"submitRequest",value:function(e,t,n){e.send(t)}},{key:"_finished",value:function(e,t,n){for(var r=0,a=a=e;!(r>=a.length);){var o=a[r++];o.status=i.SUCCESS,this.emit("success",o,t,n),this.emit("complete",o)}if(this.options.uploadMultiple&&(this.emit("successmultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(e,t,n){for(var r=0,a=a=e;!(r>=a.length);){var o=a[r++];o.status=i.ERROR,this.emit("error",o,t,n),this.emit("complete",o)}if(this.options.uploadMultiple&&(this.emit("errormultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}}]),i}();i.initClass(),i.version="5.5.1",i.options={},i.optionsForElement=function(e){return e.getAttribute("id")?i.options[s(e.getAttribute("id"))]:void 0},i.instances=[],i.forElement=function(e){if("string"==typeof e&&(e=document.querySelector(e)),null==(null!=e?e.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return e.dropzone},i.autoDiscover=!0,i.discover=function(){var e=void 0;if(document.querySelectorAll)e=document.querySelectorAll(".dropzone");else{e=[];var t=function(t){return function(){for(var n=[],r=0,a=a=t;!(r>=a.length);){var i=a[r++];/(^| )dropzone($| )/.test(i.className)?n.push(e.push(i)):n.push(void 0)}return n}()};t(document.getElementsByTagName("div")),t(document.getElementsByTagName("form"))}return function(){for(var t=[],n=0,r=r=e;!(n>=r.length);){var a=r[n++];!1!==i.optionsForElement(a)?t.push(new i(a)):t.push(void 0)}return t}()},i.blacklistedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],i.isBrowserSupported=function(){var e=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a"))for(var t=0,n=n=i.blacklistedBrowsers;!(t>=n.length);)n[t++].test(navigator.userAgent)&&(e=!1);else e=!1;else e=!1;return e},i.dataURItoBlob=function(e){for(var t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(t.length),a=new Uint8Array(r),i=0,o=t.length,s=0<=o;s?i<=o:i>=o;s?i++:i--)a[i]=t.charCodeAt(i);return new Blob([r],{type:n})};var o=function(e,t){return e.filter((function(e){return e!==t})).map((function(e){return e}))},s=function(e){return e.replace(/[\-_](\w)/g,(function(e){return e.charAt(1).toUpperCase()}))};i.createElement=function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes[0]},i.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},i.getElement=function(e,t){var n=void 0;if("string"==typeof e?n=document.querySelector(e):null!=e.nodeType&&(n=e),null==n)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector or a plain HTML element.");return n},i.getElements=function(e,t){var n=void 0,r=void 0;if(e instanceof Array){r=[];try{for(var a=0,i=i=e;!(a>=i.length);)n=i[a++],r.push(this.getElement(n,t))}catch(e){r=null}}else if("string"==typeof e){r=[];for(var o=0,s=s=document.querySelectorAll(e);!(o>=s.length);)n=s[o++],r.push(n)}else null!=e.nodeType&&(r=[e]);if(null==r||!r.length)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");return r},i.confirm=function(e,t,n){return window.confirm(e)?t():null!=n?n():void 0},i.isValidFile=function(e,t){if(!t)return!0;t=t.split(",");for(var n=e.type,r=n.replace(/\/.*$/,""),a=0,i=i=t;!(a>=i.length);){var o=i[a++];if("."===(o=o.trim()).charAt(0)){if(-1!==e.name.toLowerCase().indexOf(o.toLowerCase(),e.name.length-o.length))return!0}else if(/\/\*$/.test(o)){if(r===o.replace(/\/.*$/,""))return!0}else if(n===o)return!0}return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(e){return this.each((function(){return new i(this,e)}))}),null!==e?e.exports=i:window.Dropzone=i,i.ADDED="added",i.QUEUED="queued",i.ACCEPTED=i.QUEUED,i.UPLOADING="uploading",i.PROCESSING=i.UPLOADING,i.CANCELED="canceled",i.ERROR="error",i.SUCCESS="success";var l=function(e,t,n,r,a,i,o,s,l,c){var u=function(e){e.naturalWidth;var t=e.naturalHeight,n=document.createElement("canvas");n.width=1,n.height=t;var r=n.getContext("2d");r.drawImage(e,0,0);for(var a=r.getImageData(1,0,1,t).data,i=0,o=t,s=t;s>i;)0===a[4*(s-1)+3]?o=s:i=s,s=o+i>>1;var l=s/t;return 0===l?1:l}(t);return e.drawImage(t,n,r,a,i,o,s,l,c/u)},c=function(){function e(){r(this,e)}return t(e,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(e){for(var t="",n=void 0,r=void 0,a="",i=void 0,o=void 0,s=void 0,l="",c=0;i=(n=e[c++])>>2,o=(3&n)<<4|(r=e[c++])>>4,s=(15&r)<<2|(a=e[c++])>>6,l=63&a,isNaN(r)?s=l=64:isNaN(a)&&(l=64),t=t+this.KEY_STR.charAt(i)+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(l),n=r=a="",i=o=s=l="",c<e.length;);return t}},{key:"restore",value:function(e,t){if(!e.match("data:image/jpeg;base64,"))return t;var n=this.decode64(e.replace("data:image/jpeg;base64,","")),r=this.slice2Segments(n),a=this.exifManipulation(t,r);return"data:image/jpeg;base64,"+this.encode64(a)}},{key:"exifManipulation",value:function(e,t){var n=this.getExifArray(t),r=this.insertExif(e,n);return new Uint8Array(r)}},{key:"getExifArray",value:function(e){for(var t=void 0,n=0;n<e.length;){if(255===(t=e[n])[0]&225===t[1])return t;n++}return[]}},{key:"insertExif",value:function(e,t){var n=e.replace("data:image/jpeg;base64,",""),r=this.decode64(n),a=r.indexOf(255,3),i=r.slice(0,a),o=r.slice(a),s=i;return(s=s.concat(t)).concat(o)}},{key:"slice2Segments",value:function(e){for(var t=0,n=[];!(255===e[t]&218===e[t+1]);){if(255===e[t]&216===e[t+1])t+=2;else{var r=t+(256*e[t+2]+e[t+3])+2,a=e.slice(t,r);n.push(a),t=r}if(t>e.length)break}return n}},{key:"decode64",value:function(e){var t=void 0,n=void 0,r="",a=void 0,i=void 0,o="",s=0,l=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(e)&&console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");t=this.KEY_STR.indexOf(e.charAt(s++))<<2|(a=this.KEY_STR.indexOf(e.charAt(s++)))>>4,n=(15&a)<<4|(i=this.KEY_STR.indexOf(e.charAt(s++)))>>2,r=(3&i)<<6|(o=this.KEY_STR.indexOf(e.charAt(s++))),l.push(t),64!==i&&l.push(n),64!==o&&l.push(r),t=n=r="",a=i=o="",s<e.length;);return l}}]),e}();c.initClass(),i._autoDiscoverFunction=function(){if(i.autoDiscover)return i.discover()},function(e,t){var n=!1,r=!0,a=e.document,i=a.documentElement,o=a.addEventListener?"addEventListener":"attachEvent",s=a.addEventListener?"removeEventListener":"detachEvent",l=a.addEventListener?"":"on",c=function r(i){if("readystatechange"!==i.type||"complete"===a.readyState)return("load"===i.type?e:a)[s](l+i.type,r,!1),!n&&(n=!0)?t.call(e,i.type||i):void 0};if("complete"!==a.readyState){if(a.createEventObject&&i.doScroll){try{r=!e.frameElement}catch(e){}r&&function e(){try{i.doScroll("left")}catch(t){return void setTimeout(e,50)}return c("poll")}()}a[o](l+"DOMContentLoaded",c,!1),a[o](l+"readystatechange",c,!1),e[o](l+"load",c,!1)}}(window,i._autoDiscoverFunction)}(e={exports:{}}),e.exports),n={getSignedURL(e,t){let n={filePath:e.name,contentType:e.type};return new Promise((r,a)=>{var i=new FormData;let o=new XMLHttpRequest,s="function"==typeof t.signingURL?t.signingURL(e):t.signingURL;o.open("POST",s),o.onload=function(){200==o.status?r(JSON.parse(o.response)):a(o.statusText)},o.onerror=function(e){console.error("Network Error : Could not send request to AWS (Maybe CORS errors)"),a(e)},!0===t.withCredentials&&(o.withCredentials=!0),Object.entries(t.headers||{}).forEach(([e,t])=>{o.setRequestHeader(e,t)}),n=Object.assign(n,t.params||{}),Object.entries(n).forEach(([e,t])=>{i.append(e,t)}),o.send(i)})},sendFile(e,t,n){var r=n?this.setResponseHandler:this.sendS3Handler;return this.getSignedURL(e,t).then(t=>r(t,e)).catch(e=>e)},setResponseHandler(e,t){t.s3Signature=e.signature,t.s3Url=e.postEndpoint},sendS3Handler(e,t){let n=new FormData,r=e.signature;return Object.keys(r).forEach((function(e){n.append(e,r[e])})),n.append("file",t),new Promise((t,r)=>{let a=new XMLHttpRequest;a.open("POST",e.postEndpoint),a.onload=function(){if(201==a.status){var e=(new window.DOMParser).parseFromString(a.response,"text/xml").firstChild.children[0].innerHTML;t({success:!0,message:e})}else{var n=(new window.DOMParser).parseFromString(a.response,"text/xml").firstChild.children[0].innerHTML;r({success:!1,message:n+". Request is marked as resolved when returns as status 201"})}},a.onerror=function(e){var t=(new window.DOMParser).parseFromString(a.response,"text/xml").firstChild.children[1].innerHTML;r({success:!1,message:t})},a.send(n)})}};return t.autoDiscover=!1,function(e,t,n,r,a,i,o,s,l,c){"boolean"!=typeof o&&(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),u)if(d.functional){var p=d.render;d.render=function(e,t){return u.call(t),p(e,t)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,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:[]},0,{props:{id:{type:String,required:!0,default:"dropzone"},options:{type:Object,required:!0},includeStyling:{type:Boolean,default:!0,required:!1},awss3:{type:Object,required:!1,default:null},destroyDropzone:{type:Boolean,default:!0,required:!1},duplicateCheck:{type:Boolean,default:!1,required:!1},useCustomSlot:{type:Boolean,default:!1,required:!1}},data:()=>({isS3:!1,isS3OverridesServerPropagation:!1,wasQueueAutoProcess:!0}),computed:{dropzoneSettings(){let e={thumbnailWidth:200,thumbnailHeight:200};return Object.keys(this.options).forEach((function(t){e[t]=this.options[t]}),this),null!==this.awss3&&(e.autoProcessQueue=!1,this.isS3=!0,this.isS3OverridesServerPropagation=!1===this.awss3.sendFileToServer,void 0!==this.options.autoProcessQueue&&(this.wasQueueAutoProcess=this.options.autoProcessQueue),this.isS3OverridesServerPropagation&&(e.url=e=>e[0].s3Url)),e}},mounted(){if(this.$isServer&&this.hasBeenMounted)return;this.hasBeenMounted=!0,this.dropzone=new t(this.$refs.dropzoneElement,this.dropzoneSettings);let e=this;this.dropzone.on("thumbnail",(function(t,n){e.$emit("vdropzone-thumbnail",t,n)})),this.dropzone.on("addedfile",(function(t){var n,r;if(e.duplicateCheck&&this.files.length)for(n=0,r=this.files.length;n<r-1;n++)this.files[n].name===t.name&&this.files[n].size===t.size&&this.files[n].lastModifiedDate.toString()===t.lastModifiedDate.toString()&&(this.removeFile(t),e.$emit("vdropzone-duplicate-file",t));e.$emit("vdropzone-file-added",t),e.isS3&&e.wasQueueAutoProcess&&!t.manuallyAdded&&e.getSignedAndUploadToS3(t)})),this.dropzone.on("addedfiles",(function(t){e.$emit("vdropzone-files-added",t)})),this.dropzone.on("removedfile",(function(t){e.$emit("vdropzone-removed-file",t),t.manuallyAdded&&null!==e.dropzone.options.maxFiles&&e.dropzone.options.maxFiles++})),this.dropzone.on("success",(function(t,n){if(e.$emit("vdropzone-success",t,n),e.isS3){if(e.isS3OverridesServerPropagation){var r=(new window.DOMParser).parseFromString(n,"text/xml").firstChild.children[0].innerHTML;e.$emit("vdropzone-s3-upload-success",r)}e.wasQueueAutoProcess&&e.setOption("autoProcessQueue",!1)}})),this.dropzone.on("successmultiple",(function(t,n){e.$emit("vdropzone-success-multiple",t,n)})),this.dropzone.on("error",(function(t,n,r){e.$emit("vdropzone-error",t,n,r),this.isS3&&e.$emit("vdropzone-s3-upload-error")})),this.dropzone.on("errormultiple",(function(t,n,r){e.$emit("vdropzone-error-multiple",t,n,r)})),this.dropzone.on("sending",(function(t,n,r){if(e.isS3)if(e.isS3OverridesServerPropagation){let e=t.s3Signature;Object.keys(e).forEach((function(t){r.append(t,e[t])}))}else r.append("s3ObjectLocation",t.s3ObjectLocation);e.$emit("vdropzone-sending",t,n,r)})),this.dropzone.on("sendingmultiple",(function(t,n,r){e.$emit("vdropzone-sending-multiple",t,n,r)})),this.dropzone.on("complete",(function(t){e.$emit("vdropzone-complete",t)})),this.dropzone.on("completemultiple",(function(t){e.$emit("vdropzone-complete-multiple",t)})),this.dropzone.on("canceled",(function(t){e.$emit("vdropzone-canceled",t)})),this.dropzone.on("canceledmultiple",(function(t){e.$emit("vdropzone-canceled-multiple",t)})),this.dropzone.on("maxfilesreached",(function(t){e.$emit("vdropzone-max-files-reached",t)})),this.dropzone.on("maxfilesexceeded",(function(t){e.$emit("vdropzone-max-files-exceeded",t)})),this.dropzone.on("processing",(function(t){e.$emit("vdropzone-processing",t)})),this.dropzone.on("processingmultiple",(function(t){e.$emit("vdropzone-processing-multiple",t)})),this.dropzone.on("uploadprogress",(function(t,n,r){e.$emit("vdropzone-upload-progress",t,n,r)})),this.dropzone.on("totaluploadprogress",(function(t,n,r){e.$emit("vdropzone-total-upload-progress",t,n,r)})),this.dropzone.on("reset",(function(){e.$emit("vdropzone-reset")})),this.dropzone.on("queuecomplete",(function(){e.$emit("vdropzone-queue-complete")})),this.dropzone.on("drop",(function(t){e.$emit("vdropzone-drop",t)})),this.dropzone.on("dragstart",(function(t){e.$emit("vdropzone-drag-start",t)})),this.dropzone.on("dragend",(function(t){e.$emit("vdropzone-drag-end",t)})),this.dropzone.on("dragenter",(function(t){e.$emit("vdropzone-drag-enter",t)})),this.dropzone.on("dragover",(function(t){e.$emit("vdropzone-drag-over",t)})),this.dropzone.on("dragleave",(function(t){e.$emit("vdropzone-drag-leave",t)})),e.$emit("vdropzone-mounted")},beforeDestroy(){this.destroyDropzone&&this.dropzone.destroy()},methods:{manuallyAddFile:function(e,t){e.manuallyAdded=!0,this.dropzone.emit("addedfile",e);let n=!1;if((t.indexOf(".svg")>-1||t.indexOf(".png")>-1||t.indexOf(".jpg")>-1||t.indexOf(".jpeg")>-1||t.indexOf(".gif")>-1||t.indexOf(".webp")>-1)&&(n=!0),this.dropzone.options.createImageThumbnails&&n&&e.size<=1024*this.dropzone.options.maxThumbnailFilesize*1024){t&&this.dropzone.emit("thumbnail",e,t);for(var r=e.previewElement.querySelectorAll("[data-dz-thumbnail]"),a=0;a<r.length;a++)r[a].style.width=this.dropzoneSettings.thumbnailWidth+"px",r[a].style.height=this.dropzoneSettings.thumbnailHeight+"px",r[a].style["object-fit"]="contain"}this.dropzone.emit("complete",e),this.dropzone.options.maxFiles&&this.dropzone.options.maxFiles--,this.dropzone.files.push(e),this.$emit("vdropzone-file-added-manually",e)},setOption:function(e,t){this.dropzone.options[e]=t},removeAllFiles:function(e){this.dropzone.removeAllFiles(e)},processQueue:function(){let e=this.dropzone;this.isS3&&!this.wasQueueAutoProcess?this.getQueuedFiles().forEach(e=>{this.getSignedAndUploadToS3(e)}):this.dropzone.processQueue(),this.dropzone.on("success",(function(){e.options.autoProcessQueue=!0})),this.dropzone.on("queuecomplete",(function(){e.options.autoProcessQueue=!1}))},init:function(){return this.dropzone.init()},destroy:function(){return this.dropzone.destroy()},updateTotalUploadProgress:function(){return this.dropzone.updateTotalUploadProgress()},getFallbackForm:function(){return this.dropzone.getFallbackForm()},getExistingFallback:function(){return this.dropzone.getExistingFallback()},setupEventListeners:function(){return this.dropzone.setupEventListeners()},removeEventListeners:function(){return this.dropzone.removeEventListeners()},disable:function(){return this.dropzone.disable()},enable:function(){return this.dropzone.enable()},filesize:function(e){return this.dropzone.filesize(e)},accept:function(e,t){return this.dropzone.accept(e,t)},addFile:function(e){return this.dropzone.addFile(e)},removeFile:function(e){this.dropzone.removeFile(e)},getAcceptedFiles:function(){return this.dropzone.getAcceptedFiles()},getRejectedFiles:function(){return this.dropzone.getRejectedFiles()},getFilesWithStatus:function(){return this.dropzone.getFilesWithStatus()},getQueuedFiles:function(){return this.dropzone.getQueuedFiles()},getUploadingFiles:function(){return this.dropzone.getUploadingFiles()},getAddedFiles:function(){return this.dropzone.getAddedFiles()},getActiveFiles:function(){return this.dropzone.getActiveFiles()},getSignedAndUploadToS3(e){var t=n.sendFile(e,this.awss3,this.isS3OverridesServerPropagation);this.isS3OverridesServerPropagation?t.then(()=>{setTimeout(()=>this.dropzone.processFile(e))}):t.then(t=>{t.success?(e.s3ObjectLocation=t.message,setTimeout(()=>this.dropzone.processFile(e)),this.$emit("vdropzone-s3-upload-success",t.message)):void 0!==t.message?this.$emit("vdropzone-s3-upload-error",t.message):this.$emit("vdropzone-s3-upload-error","Network Error : Could not send request to AWS. (Maybe CORS error)")}),t.catch(e=>{alert(e)})},setAWSSigningURL(e){this.isS3&&(this.awss3.signingURL=e)}}},0,0,0,void 0)}()},"93ed":function(e,t,n){var r=n("4245");e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},"94ca":function(e,t,n){var r=n("d039"),a=/#|\.prototype\./,i=function(e,t){var n=s[o(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},o=i.normalize=function(e){return String(e).replace(a,".").toLowerCase()},s=i.data={},l=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},9520:function(e,t,n){var r=n("3729"),a=n("1a8c");e.exports=function(e){if(!a(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},"957c":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,a;return"m"===n?t?"минута":"минуту":e+" "+(r=+e,a={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),r%10==1&&r%100!=11?a[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?a[1]:a[2])}var n=[/^янв/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:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,w:"неделя",ww:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n("c1df"))},"958b":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})}(n("c1df"))},9609:function(e,t,n){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("c1df"))},9638:function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},9686:function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t?e<4?e:e+12:"ভোর"===t||"সকাল"===t?e:"দুপুর"===t?e>=3?e:e+12:"বিকাল"===t||"সন্ধ্যা"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})}(n("c1df"))},"96cf":function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var a=t&&t.prototype instanceof d?t:d,i=Object.create(a.prototype),o=new k(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(a,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw i;return{value:void 0,done:!0}}for(n.method=a,n.arg=i;;){var o=n.delegate;if(o){var s=b(o,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,o),i}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var u={};function d(){}function p(){}function f(){}var m={};m[a]=function(){return this};var h=Object.getPrototypeOf,_=h&&h(h(D([])));_&&_!==t&&n.call(_,a)&&(m=_);var v=f.prototype=d.prototype=Object.create(m);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){var r;this._invoke=function(a,i){function o(){return new t((function(r,o){!function r(a,i,o,s){var l=c(e[a],e,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(d).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}(a,i,r,o)}))}return r=r?r.then(o,o):o()}}function b(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function D(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:M}}function M(){return{value:void 0,done:!0}}return p.prototype=v.constructor=f,f.constructor=p,p.displayName=s(f,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,s(e,o,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(y.prototype),y.prototype[i]=function(){return this},e.AsyncIterator=y,e.async=function(t,n,r,a,i){void 0===i&&(i=Promise);var o=new y(l(t,n,r,a),i);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},g(v),s(v,o,"Generator"),v[a]=function(){return this},v.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=D,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},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 t=this;function r(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,u):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),u},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),x(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;x(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:D(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},"972c":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n("c1df"))},9797:function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n("c1df"))},"986d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("5313"),a=n("304a"),i=n("55be"),o=function(e,t){return function(n){Array.isArray(e)||(e=[e]);for(var r=0,a=e.length;r<a;r++){var i=j(e[r])(n.selection);if(i){var o=h(i.pos,t)(n);if(o!==n)return o}}return n}},s=function(e){return function(t){if(p(t.selection)){var n=t.selection,i=n.$from,o=n.$to;if(e instanceof a.Fragment&&i.parent.canReplace(i.index(),i.indexAfter(),e)||i.parent.canReplaceWith(i.index(),i.indexAfter(),e.type))return m(t.replaceWith(i.pos,o.pos,e).setSelection(new r.NodeSelection(t.doc.resolve(i.pos))))}return t}},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return function(n){var a=r.Selection.findFrom(n.doc.resolve(e),t,!0);return a?n.setSelection(a):n}},c=function(e){return e.type&&e.type.spec.selectable},u=function(e,t,n){return function(e){return c(e)&&e.type.isLeaf}(e)?n.setSelection(new r.NodeSelection(n.doc.resolve(t))):l(t)(n)},d=function(e,t,n){return function(r){var a="number"==typeof t,i=r.selection.$from,l=a?r.doc.resolve(t):p(r.selection)?r.doc.resolve(i.pos+1):i,d=l.parent;if(p(r.selection)&&n&&r!==(r=s(e)(r)))return r;if(b(d)&&r!==(r=o(d.type,e)(r))){var f=c(e)?l.before(l.depth):l.pos;return u(e,f,r)}if(y(l,e)){r.insert(l.pos,e);var h=a?l.pos:c(e)?r.selection.$anchor.pos-1:r.selection.$anchor.pos;return m(u(e,h,r))}for(var _=l.depth;_>0;_--){var v=l.after(_),g=r.doc.resolve(v);if(y(g,e))return r.insert(v,e),m(u(e,v,r))}return r}},p=function(e){return e instanceof r.NodeSelection},f=function(e,t){return Array.isArray(e)&&e.indexOf(t.type)>-1||t.type===e},m=function(e){return Object.assign(Object.create(e),e).setTime(Date.now())},h=function(e,t){return function(n){var r=n.doc.nodeAt(e),a=n.doc.resolve(e);if(_(a,t)){var i=(n=n.replaceWith(e,e+r.nodeSize,t)).selection.$from.pos-1;return n=l(Math.max(i,0),-1)(n),n=l(n.selection.$from.start())(n),m(n)}return n}},_=function(e,t){var n=e.node(e.depth);return n&&n.type.validContent(t instanceof a.Fragment?t:a.Fragment.from(t))},v=function(e){return function(t){var n=t.doc.nodeAt(e);return m(t.delete(e,e+n.nodeSize))}},g=function(e){if(e.cached.tableNodeTypes)return e.cached.tableNodeTypes;var t={};return Object.keys(e.nodes).forEach((function(n){var r=e.nodes[n];r.spec.tableRole&&(t[r.spec.tableRole]=r)})),e.cached.tableNodeTypes=t,t},y=function(e,t){var n=e.index();return t instanceof a.Fragment?e.parent.canReplace(n,n,t):t instanceof a.Node&&e.parent.canReplaceWith(n,n,t.type)},b=function(e){return!e||"paragraph"===e.type.name&&2===e.nodeSize},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?e.createChecked(null,t):e.createAndFill()},x=function(e){return function(t){for(var n=i.TableMap.get(t.$anchorCell.node(-1)),r=t.$anchorCell.start(-1),a=n.cellsInRect(e),o=n.cellsInRect(n.rectBetween(t.$anchorCell.pos-r,t.$headCell.pos-r)),s=0,l=a.length;s<l;s++)if(-1===o.indexOf(a[s]))return!1;return!0}},k=function(e){return e[0].map((function(t,n){return e.map((function(e){return e[n]}))}))},D=function(e){for(var t=i.TableMap.get(e),n=[],r=0;r<t.height;r++){for(var a=[],o={},s=0;s<t.width;s++){var l=t.map[r*t.width+s],c=e.nodeAt(l),u=t.findCell(l);o[l]||u.top!==r?a.push(null):(o[l]=!0,a.push(c))}n.push(a)}return n},M=function(e,t){for(var n=[],r=i.TableMap.get(e),a=0;a<r.height;a++){for(var o=e.child(a),s=[],l=0;l<r.width;l++)if(t[a][l]){var c=r.map[a*r.width+l],u=t[a][l],d=e.nodeAt(c).type.createChecked(Object.assign({},u.attrs),u.content,u.marks);s.push(d)}n.push(o.type.createChecked(o.attrs,s,o.marks))}return e.type.createChecked(e.attrs,n,e.marks)},S=function(e,t,n,r){var a=t[0]>n[0]?-1:1,i=e.splice(t[0],t.length),o=i.length%2==0?1:0,s=void 0;return s=-1===r&&1===a?n[0]-1:1===r&&-1===a?n[n.length-1]-o+1:-1===a?n[0]:n[n.length-1]-o,e.splice.apply(e,[s,0].concat(i)),e},C=function(e,t,n,r){var a="Target position is invalid, you can't move the "+r+" "+e+" to "+t+", the target can't be split. You could use tryToFit option.";if(1==(e>t?-1:1)){if(-1!==n.slice(0,n.length-1).indexOf(t))throw new Error(a)}else if(-1!==n.slice(1).indexOf(t))throw new Error(a);return!0},L=function(e){return function(t){var n=t.$from;return T(n,e)}},T=function(e,t){for(var n=e.depth;n>0;n--){var r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}},E=function(e,t){return function(n){var r=L(e)(n);if(r)return P(r.pos,t)}},O=function(e){return function(t){return!!L(e)(t)}},j=function(e){return function(t){return L((function(t){return f(e,t)}))(t)}},A=function(e){var t=e.$from.nodeBefore,n=r.Selection.findFrom(e.$from,-1);if(n&&t){var a=j(t.type)(n);return a?a.pos:n.$from.pos}},P=function(e,t){var n=t(e),r=n.node.childNodes[n.offset];return n.node.nodeType===Node.TEXT_NODE?n.node.parentNode:r&&r.nodeType!==Node.TEXT_NODE?r:n.node},Y=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!e)throw new Error('Invalid "node" parameter');var n=[];return e.descendants((function(e,r){if(n.push({node:e,pos:r}),!t)return!1})),n},$=function(e,t,n){if(!e)throw new Error('Invalid "node" parameter');if(!t)throw new Error('Invalid "predicate" parameter');return Y(e,n).filter((function(e){return t(e.node)}))},I=function(e,t,n){return $(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)},z=function(e){return e instanceof i.CellSelection},F=function(e){if(z(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},R=function(e){return function(t){var n=N(t);if(n){var r=i.TableMap.get(n.node);return(Array.isArray(e)?e:Array.from([e])).reduce((function(e,t){if(t>=0&&t<=r.width-1){var a=r.cellsInRect({left:t,right:t+1,top:0,bottom:r.height});return e.concat(a.map((function(e){var t=n.node.nodeAt(e),r=e+n.start;return{pos:r,start:r+1,node:t}})))}}),[])}}},H=function(e){return function(t){var n=N(t);if(n){var r=i.TableMap.get(n.node);return(Array.isArray(e)?e:Array.from([e])).reduce((function(e,t){if(t>=0&&t<=r.height-1){var a=r.cellsInRect({left:0,right:r.width,top:t,bottom:t+1});return e.concat(a.map((function(e){var t=n.node.nodeAt(e),r=e+n.start;return{pos:r,start:r+1,node:t}})))}}),[])}}},B=function(e){return function(t,n){return function(r){var a=N(r.selection),o="row"===e;if(a){var s=i.TableMap.get(a.node);if(t>=0&&t<(o?s.height:s.width)){var l=o?0:t,c=o?t:0,u=o?s.width:t+1,d=o?t+1:s.height;if(n){var p=Z(r.selection.$from);if(!p)return r;var f=s.findCell(p.pos-a.start);o?(c=Math.min(c,f.top),d=Math.max(d,f.bottom)):(l=Math.min(l,f.left),u=Math.max(u,f.right))}var h=s.cellsInRect({left:l,top:c,right:o?u:l+1,bottom:o?c+1:d}),_=d-c==1?h:s.cellsInRect({left:o?l:u-1,top:o?d-1:c,right:u,bottom:d}),v=a.start+h[0],g=a.start+_[_.length-1],y=r.doc.resolve(v),b=r.doc.resolve(g);return m(r.setSelection(new i.CellSelection(b,y)))}}return r}}},q=B("column"),U=B("row"),V=function(e){return function(t){var n=N(t.selection);if(n){var r=i.TableMap.get(n.node);if(e>=0&&e<=r.height){for(var a=n.node,o=g(a.type.schema),s=n.start,l=0;l<e+1;l++)s+=a.child(l).nodeSize;var c=a.child(e),u=[],p=0;if(c.forEach((function(e){1===e.attrs.rowspan&&(p+=e.attrs.colspan,u.push(o[e.type.spec.tableRole].createAndFill(e.attrs,e.marks)))})),p<r.width){for(var f=[],m=function(n){var r=Q(n,(function(t,r){var a=t.node.attrs.rowspan;return a>1&&n+a>e}))(t);f.push.apply(f,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(r))},h=e;h>=0;h--)m(h);f.length&&f.forEach((function(e){t=J(e,{rowspan:e.node.attrs.rowspan+1})(t)}))}return d(o.row.create(c.attrs,u),s)(t)}}return t}},W=function(e){return function(t){var n=N(t.selection);if(n){var r=i.TableMap.get(n.node);if(0===e&&1===r.width)return G(t);if(e>=0&&e<=r.width)return i.removeColumn(t,{map:r,tableStart:n.start,table:n.node},e),m(t)}return t}},K=function(e){return function(t){var n=N(t.selection);if(n){var r=i.TableMap.get(n.node);if(0===e&&1===r.height)return G(t);if(e>=0&&e<=r.height)return i.removeRow(t,{map:r,tableStart:n.start,table:n.node},e),m(t)}return t}},G=function(e){for(var t=e.selection.$from,n=t.depth;n>0;n--)if("table"===t.node(n).type.spec.tableRole)return m(e.delete(t.before(n),t.after(n)));return e},J=function(e,t){return function(n){return e?(n.setNodeMarkup(e.pos,null,Object.assign({},e.node.attrs,t)),m(n)):n}},Z=function(e){return T(e,(function(e){return e.type.spec.tableRole&&/cell/i.test(e.type.spec.tableRole)}))},X=function(e){var t=Z(e);if(t){var n=function(e){return T(e,(function(e){return e.type.spec.tableRole&&/table/i.test(e.type.spec.tableRole)}))}(e),r=i.TableMap.get(n.node),a=t.pos-n.start;return r.rectBetween(a,a)}},Q=function(e,t){return function(n){var r=[],a=H(e)(n.selection);if(a)for(var i=a.length-1;i>=0;i--)t(a[i],n)&&r.push(a[i]);return r}},ee=function(e){return function(t){for(var n=e,r=e,a=function(e){var a=R(e)(t.selection);a&&a.forEach((function(t){var a=t.node.attrs.colspan+e-1;a>=n&&(n=e),a>r&&(r=a)}))},i=e;i>=0;i--)a(i);var o=function(e){var n=R(e)(t.selection);n&&n.forEach((function(t){var n=t.node.attrs.colspan+e-1;t.node.attrs.colspan>1&&n>r&&(r=n)}))};for(i=e;i<=r;i++)o(i);var s=[];for(i=n;i<=r;i++){var l=R(i)(t.selection);l&&l.length&&s.push(i)}n=s[0],r=s[s.length-1];for(var c=R(n)(t.selection),u=H(0)(t.selection),d=t.doc.resolve(c[c.length-1].pos),p=void 0,f=r;f>=n;f--){var m=R(f)(t.selection);if(m&&m.length){for(var h=u.length-1;h>=0;h--)if(u[h].pos===m[0].pos){p=m[0];break}if(p)break}}return{$anchor:d,$head:t.doc.resolve(p.pos),indexes:s}}},te=function(e){return function(t){for(var n=e,r=e,a=function(e){H(e)(t.selection).forEach((function(t){var a=t.node.attrs.rowspan+e-1;a>=n&&(n=e),a>r&&(r=a)}))},i=e;i>=0;i--)a(i);var o=function(e){H(e)(t.selection).forEach((function(t){var n=t.node.attrs.rowspan+e-1;t.node.attrs.rowspan>1&&n>r&&(r=n)}))};for(i=e;i<=r;i++)o(i);var s=[];for(i=n;i<=r;i++){var l=H(i)(t.selection);l&&l.length&&s.push(i)}n=s[0],r=s[s.length-1];for(var c=H(n)(t.selection),u=R(0)(t.selection),d=t.doc.resolve(c[c.length-1].pos),p=void 0,f=r;f>=n;f--){var m=H(f)(t.selection);if(m&&m.length){for(var h=u.length-1;h>=0;h--)if(u[h].pos===m[0].pos){p=m[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=E,t.hasParentNode=O,t.findParentNodeOfType=j,t.findParentNodeOfTypeClosestToPos=function(e,t){return T(e,(function(e){return f(t,e)}))},t.hasParentNodeOfType=function(e){return function(t){return O((function(t){return f(e,t)}))(t)}},t.findParentDomRefOfType=function(e,t){return function(n){return E((function(t){return f(e,t)}),t)(n)}},t.findSelectedNodeOfType=function(e){return function(t){if(p(t)){var n=t.node,r=t.$from;if(f(e,n))return{node:n,pos:r.pos,depth:r.depth}}}},t.findPositionOfNodeBefore=A,t.findDomRefAtPos=P,t.flatten=Y,t.findChildren=$,t.findTextNodes=function(e,t){return $(e,(function(e){return e.isText}),t)},t.findInlineNodes=function(e,t){return $(e,(function(e){return e.isInline}),t)},t.findBlockNodes=function(e,t){return $(e,(function(e){return e.isBlock}),t)},t.findChildrenByAttr=function(e,t,n){return $(e,(function(e){return!!t(e.attrs)}),n)},t.findChildrenByType=I,t.findChildrenByMark=function(e,t,n){return $(e,(function(e){return t.isInSet(e.marks)}),n)},t.contains=function(e,t){return!!I(e,t).length},t.findTable=N,t.isCellSelection=z,t.getSelectionRect=function(e){if(z(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(z(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(z(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=R,t.getCellsInRow=H,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),r=e+t.start;return{pos:r,start:r+1,node:n}}))}},t.selectColumn=q,t.selectRow=U,t.selectTable=function(e){var t=N(e.selection);if(t){var n=i.TableMap.get(t.node).map;if(n&&n.length){var r=t.start+n[0],a=t.start+n[n.length-1],o=e.doc.resolve(r),s=e.doc.resolve(a);return m(e.setSelection(new i.CellSelection(s,o)))}}return e},t.emptyCell=function(e,t){return function(n){if(e){var r=g(t).cell.createAndFill().content;if(!e.node.content.eq(r))return n.replaceWith(e.pos+1,e.pos+e.node.nodeSize,r),m(n)}return n}},t.addColumnAt=function(e){return function(t){var n=N(t.selection);if(n){var r=i.TableMap.get(n.node);if(e>=0&&e<=r.width)return m(i.addColumn(t,{map:r,tableStart:n.start,table:n.node},e))}return t}},t.moveRow=function(e,t,n){return function(r){var a=Object.assign({tryToFit:!1,direction:0},n),i=N(r.selection);if(!i)return r;var o=te(e)(r).indexes,s=te(t)(r).indexes;if(o.indexOf(t)>-1)return r;!a.tryToFit&&s.length>1&&C(e,t,s,"row");var l=function(e,t,n,r){var a=D(e.node);return a=S(a,t,n,r),M(e.node,a)}(i,o,s,a.direction);return m(r).replaceWith(i.pos,i.pos+i.node.nodeSize,l)}},t.moveColumn=function(e,t,n){return function(r){var a=Object.assign({tryToFit:!1,direction:0},n),i=N(r.selection);if(!i)return r;var o=ee(e)(r).indexes,s=ee(t)(r).indexes;if(o.indexOf(t)>-1)return r;!a.tryToFit&&s.length>1&&C(e,t,s,"column");var l=function(e,t,n,r){var a=k(D(e.node));return a=S(a,t,n,r),a=k(a),M(e.node,a)}(i,o,s,a.direction);return m(r).replaceWith(i.pos,i.pos+i.node.nodeSize,l)}},t.addRowAt=function(e,t){return function(n){var r=N(n.selection);if(r){var a=i.TableMap.get(r.node),o=e-1;if(t&&o>=0)return m(V(o)(n));if(e>=0&&e<=a.height)return m(i.addRow(n,{map:a,tableStart:r.start,table:r.node},e))}return n}},t.cloneRowAt=V,t.removeColumnAt=W,t.removeRowAt=K,t.removeTable=G,t.removeSelectedColumns=function(e){var t=e.selection;if(F(t))return G(e);if(z(t)){var n=N(t);if(n){var r=i.TableMap.get(n.node),a=r.rectBetween(t.$anchorCell.pos-n.start,t.$headCell.pos-n.start);if(0==a.left&&a.right==r.width)return!1;for(var o=Object.assign({},a,{map:r,table:n.node,tableStart:n.start}),s=o.right-1;i.removeColumn(e,o,s),s!==o.left;s--)o.table=o.tableStart?e.doc.nodeAt(o.tableStart-1):e.doc,o.map=i.TableMap.get(o.table);return m(e)}}return e},t.removeSelectedRows=function(e){var t=e.selection;if(F(t))return G(e);if(z(t)){var n=N(t);if(n){var r=i.TableMap.get(n.node),a=r.rectBetween(t.$anchorCell.pos-n.start,t.$headCell.pos-n.start);if(0==a.top&&a.bottom==r.height)return!1;for(var o=Object.assign({},a,{map:r,table:n.node,tableStart:n.start}),s=o.bottom-1;i.removeRow(e,o,s),s!==o.top;s--)o.table=o.tableStart?e.doc.nodeAt(o.tableStart-1):e.doc,o.map=i.TableMap.get(o.table);return m(e)}}return e},t.removeColumnClosestToPos=function(e){return function(t){var n=X(e);return n?W(n.left)(l(e.pos)(t)):t}},t.removeRowClosestToPos=function(e){return function(t){var n=X(e);return n?K(n.top)(l(e.pos)(t)):t}},t.forEachCellInColumn=function(e,t,n){return function(a){var i=R(e)(a.selection);if(i){for(var o=i.length-1;o>=0;o--)a=t(i[o],a);if(n){var s=a.doc.resolve(a.mapping.map(i[i.length-1].pos));a.setSelection(r.Selection.near(s))}return m(a)}return a}},t.forEachCellInRow=function(e,t,n){return function(a){var i=H(e)(a.selection);if(i){for(var o=i.length-1;o>=0;o--)a=t(i[o],a);if(n){var s=a.doc.resolve(a.mapping.map(i[i.length-1].pos));a.setSelection(r.Selection.near(s))}}return a}},t.setCellAttrs=J,t.createTable=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=g(e),o=i.cell,s=i.header_cell,l=i.row,c=i.table,u=[],d=[],p=0;p<n;p++)u.push(w(o,a)),r&&d.push(w(s,a));for(var f=[],m=0;m<t;m++)f.push(l.createChecked(null,r&&0===m?d:u));return c.createChecked(null,f)},t.findCellClosestToPos=Z,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 m(e.delete(t,n))}return e},t.replaceSelectedNode=s,t.setTextSelection=l,t.safeInsert=d,t.setParentNodeMarkup=function(e,t,n,r){return function(a){var i=j(e)(a.selection);return i?m(a.setNodeMarkup(i.pos,t,Object.assign({},i.node.attrs,n),r)):a}},t.selectParentNodeOfType=function(e){return function(t){if(!p(t.selection)){var n=j(e)(t.selection);if(n)return m(t.setSelection(r.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 r=n("6fcd"),a=n("41c3"),i=n("30c9");e.exports=function(e){return i(e)?r(e,!0):a(e)}},"99af":function(e,t,n){"use strict";var r=n("23e7"),a=n("d039"),i=n("e8b5"),o=n("861d"),s=n("7b0b"),l=n("50c4"),c=n("8418"),u=n("65f0"),d=n("1dde"),p=n("b622"),f=n("2d00"),m=p("isConcatSpreadable"),h=f>=51||!a((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),_=d("concat"),v=function(e){if(!o(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,forced:!h||!_},{concat:function(e){var t,n,r,a,i,o=s(this),d=u(o,0),p=0;for(t=-1,r=arguments.length;t<r;t++)if(v(i=-1===t?o:arguments[t])){if(p+(a=l(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<a;n++,p++)n in i&&c(d,p,i[n])}else{if(p>=9007199254740991)throw TypeError("Maximum allowed index exceeded");c(d,p++,i)}return d.length=p,d}})},"99cd":function(e,t){e.exports=function(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++a];if(!1===n(i[l],l,i))break}return t}}},"99d3":function(e,t,n){(function(e){var r=n("585a"),a=t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===a&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s}).call(this,n("62e4")(e))},"9aff":function(e,t,n){var r=n("9638"),a=n("30c9"),i=n("c098"),o=n("1a8c");e.exports=function(e,t,n){if(!o(n))return!1;var s=typeof t;return!!("number"==s?a(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},"9bdd":function(e,t,n){var r=n("825a"),a=n("2a62");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){throw a(e),t}}},"9bf2":function(e,t,n){var r=n("83ab"),a=n("0cfb"),i=n("825a"),o=n("c04e"),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(i(e),t=o(t,!0),i(n),a)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9e69":function(e,t,n){var r=n("2b3e").Symbol;e.exports=r},"9ed3":function(e,t,n){"use strict";var r=n("ae93").IteratorPrototype,a=n("7c73"),i=n("5c6c"),o=n("d44e"),s=n("3f8c"),l=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=a(r,{next:i(1,n)}),o(e,c,!1,!0),s[c]=l,e}},"9f26":function(e,t,n){!function(e){"use strict";var t=/(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,n=[/^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:t,monthsShortRegex:t,monthsStrictRegex:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,monthsShortStrictRegex:/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n("c1df"))},"9f7f":function(e,t,n){"use strict";var r=n("d039");function a(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=a("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=a("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},a356:function(e,t,n){!function(e){"use strict";var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(r,a,i,o){var s=t(r),l=n[e][t(r)];return 2===s&&(l=l[a?0:1]),l.replace(/%d/i,r)}},a=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-dz",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}})}(n("c1df"))},a434:function(e,t,n){"use strict";var r=n("23e7"),a=n("23cb"),i=n("a691"),o=n("50c4"),s=n("7b0b"),l=n("65f0"),c=n("8418"),u=n("1dde"),d=n("ae40"),p=u("splice"),f=d("splice",{ACCESSORS:!0,0:0,1:2}),m=Math.max,h=Math.min;r({target:"Array",proto:!0,forced:!p||!f},{splice:function(e,t){var n,r,u,d,p,f,_=s(this),v=o(_.length),g=a(e,v),y=arguments.length;if(0===y?n=r=0:1===y?(n=0,r=v-g):(n=y-2,r=h(m(i(t),0),v-g)),v+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(u=l(_,r),d=0;d<r;d++)(p=g+d)in _&&c(u,d,_[p]);if(u.length=r,n<r){for(d=g;d<v-r;d++)f=d+n,(p=d+r)in _?_[f]=_[p]:delete _[f];for(d=v;d>v-r+n;d--)delete _[d-1]}else if(n>r)for(d=v-r;d>g;d--)f=d+n-1,(p=d+r-1)in _?_[f]=_[p]:delete _[f];for(d=0;d<n;d++)_[d+g]=arguments[d+2];return _.length=v-r+n,u}})},a454:function(e,t,n){var r=n("72f0"),a=n("3b4a"),i=n("cd9d"),o=a?function(e,t){return a(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=o},a4d3:function(e,t,n){"use strict";var r=n("23e7"),a=n("da84"),i=n("d066"),o=n("c430"),s=n("83ab"),l=n("4930"),c=n("fdbf"),u=n("d039"),d=n("5135"),p=n("e8b5"),f=n("861d"),m=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"),E=n("f772"),O=n("d012"),j=n("90e3"),A=n("b622"),P=n("e538"),Y=n("746f"),$=n("d44e"),I=n("69f3"),N=n("b727").forEach,z=E("hidden"),F=A("toPrimitive"),R=I.set,H=I.getterFor("Symbol"),B=Object.prototype,q=a.Symbol,U=i("JSON","stringify"),V=D.f,W=M.f,K=x.f,G=S.f,J=T("symbols"),Z=T("op-symbols"),X=T("string-to-symbol-registry"),Q=T("symbol-to-string-registry"),ee=T("wks"),te=a.QObject,ne=!te||!te.prototype||!te.prototype.findChild,re=s&&u((function(){return 7!=y(W({},"a",{get:function(){return W(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=V(B,t);r&&delete B[t],W(e,t,n),r&&e!==B&&W(B,t,r)}:W,ae=function(e,t){var n=J[e]=y(q.prototype);return R(n,{type:"Symbol",tag:e,description:t}),s||(n.description=t),n},ie=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof q},oe=function(e,t,n){e===B&&oe(Z,t,n),m(e);var r=v(t,!0);return m(n),d(J,r)?(n.enumerable?(d(e,z)&&e[z][r]&&(e[z][r]=!1),n=y(n,{enumerable:g(0,!1)})):(d(e,z)||W(e,z,g(1,{})),e[z][r]=!0),re(e,r,n)):W(e,r,n)},se=function(e,t){m(e);var n=_(t),r=b(n).concat(de(n));return N(r,(function(t){s&&!le.call(n,t)||oe(e,t,n[t])})),e},le=function(e){var t=v(e,!0),n=G.call(this,t);return!(this===B&&d(J,t)&&!d(Z,t))&&(!(n||!d(this,t)||!d(J,t)||d(this,z)&&this[z][t])||n)},ce=function(e,t){var n=_(e),r=v(t,!0);if(n!==B||!d(J,r)||d(Z,r)){var a=V(n,r);return!a||!d(J,r)||d(n,z)&&n[z][r]||(a.enumerable=!0),a}},ue=function(e){var t=K(_(e)),n=[];return N(t,(function(e){d(J,e)||d(O,e)||n.push(e)})),n},de=function(e){var t=e===B,n=K(t?Z:_(e)),r=[];return N(n,(function(e){!d(J,e)||t&&!d(B,e)||r.push(J[e])})),r};l||(L((q=function(){if(this instanceof q)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===B&&n.call(Z,e),d(this,z)&&d(this[z],t)&&(this[z][t]=!1),re(this,t,g(1,e))};return s&&ne&&re(B,t,{configurable:!0,set:n}),ae(t,e)}).prototype,"toString",(function(){return H(this).tag})),L(q,"withoutSetter",(function(e){return ae(j(e),e)})),S.f=le,M.f=oe,D.f=ce,w.f=x.f=ue,k.f=de,P.f=function(e){return ae(A(e),e)},s&&(W(q.prototype,"description",{configurable:!0,get:function(){return H(this).description}}),o||L(B,"propertyIsEnumerable",le,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:q}),N(b(ee),(function(e){Y(e)})),r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=String(e);if(d(X,t))return X[t];var n=q(t);return X[t]=n,Q[n]=t,n},keyFor:function(e){if(!ie(e))throw TypeError(e+" is not a symbol");if(d(Q,e))return Q[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!s},{create:function(e,t){return void 0===t?y(e):se(y(e),t)},defineProperty:oe,defineProperties:se,getOwnPropertyDescriptor:ce}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ue,getOwnPropertySymbols:de}),r({target:"Object",stat:!0,forced:u((function(){k.f(1)}))},{getOwnPropertySymbols:function(e){return k.f(h(e))}}),U&&r({target:"JSON",stat:!0,forced:!l||u((function(){var e=q();return"[null]"!=U([e])||"{}"!=U({a:e})||"{}"!=U(Object(e))}))},{stringify:function(e,t,n){for(var r,a=[e],i=1;arguments.length>i;)a.push(arguments[i++]);if(r=t,(f(t)||void 0!==e)&&!ie(e))return p(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ie(t))return t}),a[1]=t,U.apply(null,a)}}),q.prototype[F]||C(q.prototype,F,q.prototype.valueOf),$(q,"Symbol"),O[z]=!0},a524:function(e,t,n){var r=n("4245");e.exports=function(e){return r(this,e).has(e)}},a566:function(e,t,n){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=4)}([function(e,t,n){var r=n(2),a=n(8);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),r(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r,a,i=e[1]||"",o=e[3];if(!o)return i;if(t&&"function"==typeof btoa){var s=(n=o,r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(a," */")),l=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")}));return[i].concat(l).concat([s]).join("\n")}return[i].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(r)for(var i=0;i<this.length;i++){var o=this[i][0];null!=o&&(a[o]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);r&&a[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},function(e,t,n){"use strict";var r,a=function(){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]}}(),i=[];function o(e){for(var t=-1,n=0;n<i.length;n++)if(i[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},r=[],a=0;a<e.length;a++){var s=e[a],l=t.base?s[0]+t.base:s[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var d=o(u),p={css:s[1],media:s[2],sourceMap:s[3]};-1!==d?(i[d].references++,i[d].updater(p)):i.push({identifier:u,updater:h(p,t),references:1}),r.push(u)}return r}function l(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var o=a(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 c,u=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function d(e,t,n,r){var a=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=u(t,a);else{var i=document.createTextNode(a),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(i,o[t]):e.appendChild(i)}}function p(e,t,n){var r=n.css,a=n.media,i=n.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),i&&btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var f=null,m=0;function h(e,t){var n,r,a;if(t.singleton){var i=m++;n=f||(f=l(t)),r=d.bind(null,n,i,!1),a=d.bind(null,n,i,!0)}else n=l(t),r=p.bind(null,n,t),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else a()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var a=o(n[r]);i[a].references--}for(var l=s(e,t),c=0;c<n.length;c++){var u=o(n[c]);0===i[u].references&&(i[u].updater(),i.splice(u,1))}n=l}}}},function(e,t,n){e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l="undefined"!=typeof window&&void 0!==window.document,c=l?window:{},u=!(!l||!c.document.documentElement)&&"ontouchstart"in c.document.documentElement,d=!!l&&"PointerEvent"in c,p="".concat("cropper","-crop"),f="".concat("cropper","-disabled"),m="".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 E(e){return"number"==typeof e&&!T(e)}var O=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 Y(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 $(e){return"function"==typeof e}var I=Array.prototype.slice;function N(e){return Array.from?Array.from(e):I.call(e)}function z(e,t){return e&&$(t)&&(Array.isArray(e)||E(e.length)?N(e).forEach((function(n,r){t.call(e,n,r,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),r=1;r<t;r++)n[r-1]=arguments[r];return A(e)&&n.length>0&&n.forEach((function(t){A(t)&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e},R=/\.\d*(?:0|9){12}\d*$/;function H(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return R.test(e)?Math.round(e*t)/t:e}var B=/^width|height|left|top|marginLeft|marginTop$/;function q(e,t){var n=e.style;z(t,(function(e,t){B.test(t)&&E(e)&&(e="".concat(e,"px")),n[t]=e}))}function U(e,t){if(t)if(E(e.length))z(e,(function(e){U(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 V(e,t){t&&(E(e.length)?z(e,(function(e){V(e,t)})):e.classList?e.classList.remove(t):e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,"")))}function W(e,t,n){t&&(E(e.length)?z(e,(function(e){W(e,t,n)})):n?U(e,t):V(e,t))}var K=/([a-z\d])([A-Z])/g;function G(e){return e.replace(K,"$1-$2").toLowerCase()}function J(e,t){return A(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(G(t)))}function Z(e,t,n){A(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(G(t)),n)}var X=/\s\s*/,Q=function(){var e=!1;if(l){var t=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});c.addEventListener("test",n,r),c.removeEventListener("test",n,r)}return e}();function ee(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=n;t.trim().split(X).forEach((function(t){if(!Q){var i=e.listeners;i&&i[t]&&i[t][n]&&(a=i[t][n],delete i[t][n],0===Object.keys(i[t]).length&&delete i[t],0===Object.keys(i).length&&delete e.listeners)}e.removeEventListener(t,a,r)}))}function te(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=n;t.trim().split(X).forEach((function(t){if(r.once&&!Q){var i=e.listeners,o=void 0===i?{}:i;a=function(){delete o[t][n],e.removeEventListener(t,a,r);for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];n.apply(e,s)},o[t]||(o[t]={}),o[t][n]&&e.removeEventListener(t,o[t][n],r),o[t][n]=a,e.listeners=o}e.addEventListener(t,a,r)}))}function ne(e,t,n){var r;return $(Event)&&$(CustomEvent)?r=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,n),e.dispatchEvent(r)}function re(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}var ae=c.location,ie=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function oe(e){var t=e.match(ie);return null!==t&&(t[1]!==ae.protocol||t[2]!==ae.hostname||t[3]!==ae.port)}function se(e){var t="timestamp=".concat((new Date).getTime());return e+(-1===e.indexOf("?")?"?":"&")+t}function le(e){var t=e.rotate,n=e.scaleX,r=e.scaleY,a=e.translateX,i=e.translateY,o=[];E(a)&&0!==a&&o.push("translateX(".concat(a,"px)")),E(i)&&0!==i&&o.push("translateY(".concat(i,"px)")),E(t)&&0!==t&&o.push("rotate(".concat(t,"deg)")),E(n)&&1!==n&&o.push("scaleX(".concat(n,")")),E(r)&&1!==r&&o.push("scaleY(".concat(r,")"));var s=o.length?o.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function ce(e,t){var n=e.pageX,r=e.pageY,a={endX:n,endY:r};return t?a:i({startX:n,startY:r},a)}function ue(e){var t=e.aspectRatio,n=e.height,r=e.width,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",i=O(r),o=O(n);if(i&&o){var s=n*t;"contain"===a&&s>r||"cover"===a&&s<r?n=r/t:r=n*t}else i?n=r/t:o&&(r=n*t);return{width:r,height:n}}function de(e,t,n,r){var a=t.aspectRatio,i=t.naturalWidth,s=t.naturalHeight,l=t.rotate,c=void 0===l?0:l,u=t.scaleX,d=void 0===u?1:u,p=t.scaleY,f=void 0===p?1:p,m=n.aspectRatio,h=n.naturalWidth,_=n.naturalHeight,v=r.fillColor,g=void 0===v?"transparent":v,y=r.imageSmoothingEnabled,b=void 0===y||y,w=r.imageSmoothingQuality,x=void 0===w?"low":w,k=r.maxWidth,D=void 0===k?1/0:k,M=r.maxHeight,S=void 0===M?1/0:M,C=r.minWidth,L=void 0===C?0:C,T=r.minHeight,E=void 0===T?0:T,O=document.createElement("canvas"),j=O.getContext("2d"),A=ue({aspectRatio:m,width:D,height:S}),P=ue({aspectRatio:m,width:L,height:E},"cover"),Y=Math.min(A.width,Math.max(P.width,h)),$=Math.min(A.height,Math.max(P.height,_)),I=ue({aspectRatio:a,width:D,height:S}),N=ue({aspectRatio:a,width:L,height:E},"cover"),z=Math.min(I.width,Math.max(N.width,i)),F=Math.min(I.height,Math.max(N.height,s)),R=[-z/2,-F/2,z,F];return O.width=H(Y),O.height=H($),j.fillStyle=g,j.fillRect(0,0,Y,$),j.save(),j.translate(Y/2,$/2),j.rotate(c*Math.PI/180),j.scale(d,f),j.imageSmoothingEnabled=b,j.imageSmoothingQuality=x,j.drawImage.apply(j,[e].concat(o(R.map((function(e){return Math.floor(H(e))}))))),j.restore(),O}var pe=String.fromCharCode,fe=/^data:.*,/,me={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,t=this.options,n=this.container,r=this.cropper;U(r,m),V(e,m);var a={width:Math.max(n.offsetWidth,Number(t.minContainerWidth)||200),height:Math.max(n.offsetHeight,Number(t.minContainerHeight)||100)};this.containerData=a,q(r,{width:a.width,height:a.height}),U(e,m),V(r,m)},initCanvas:function(){var e=this.containerData,t=this.imageData,n=this.options.viewMode,r=Math.abs(t.rotate)%180==90,a=r?t.naturalHeight:t.naturalWidth,i=r?t.naturalWidth:t.naturalHeight,o=a/i,s=e.width,l=e.height;e.height*o>e.width?3===n?s=e.height*o:l=e.width/o:3===n?l=e.width/o:s=e.height*o;var c={aspectRatio:o,naturalWidth:a,naturalHeight:i,width:s,height:l};c.left=(e.width-s)/2,c.top=(e.height-l)/2,c.oldLeft=c.left,c.oldTop=c.top,this.canvasData=c,this.limited=1===n||2===n,this.limitCanvas(!0,!0),this.initialImageData=F({},t),this.initialCanvasData=F({},c)},limitCanvas:function(e,t){var n=this.options,r=this.containerData,a=this.canvasData,i=this.cropBoxData,o=n.viewMode,s=a.aspectRatio,l=this.cropped&&i;if(e){var c=Number(n.minCanvasWidth)||0,u=Number(n.minCanvasHeight)||0;o>1?(c=Math.max(c,r.width),u=Math.max(u,r.height),3===o&&(u*s>c?c=u*s:u=c/s)):o>0&&(c?c=Math.max(c,l?i.width:0):u?u=Math.max(u,l?i.height:0):l&&(c=i.width,(u=i.height)*s>c?c=u*s:u=c/s));var d=ue({aspectRatio:s,width:c,height:u});c=d.width,u=d.height,a.minWidth=c,a.minHeight=u,a.maxWidth=1/0,a.maxHeight=1/0}if(t)if(o>(l?0:1)){var p=r.width-a.width,f=r.height-a.height;a.minLeft=Math.min(0,p),a.minTop=Math.min(0,f),a.maxLeft=Math.max(0,p),a.maxTop=Math.max(0,f),l&&this.limited&&(a.minLeft=Math.min(i.left,i.left+(i.width-a.width)),a.minTop=Math.min(i.top,i.top+(i.height-a.height)),a.maxLeft=i.left,a.maxTop=i.top,2===o&&(a.width>=r.width&&(a.minLeft=Math.min(0,p),a.maxLeft=Math.max(0,p)),a.height>=r.height&&(a.minTop=Math.min(0,f),a.maxTop=Math.max(0,f))))}else a.minLeft=-a.width,a.minTop=-a.height,a.maxLeft=r.width,a.maxTop=r.height},renderCanvas:function(e,t){var n=this.canvasData,r=this.imageData;if(t){var a=function(e){var t=e.width,n=e.height,r=e.degree;if(90==(r=Math.abs(r)%180))return{width:n,height:t};var a=r%90*Math.PI/180,i=Math.sin(a),o=Math.cos(a),s=t*o+n*i,l=t*i+n*o;return r>90?{width:l,height:s}:{width:s,height:l}}({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),i=a.width,o=a.height,s=n.width*(i/n.naturalWidth),l=n.height*(o/n.naturalHeight);n.left-=(s-n.width)/2,n.top-=(l-n.height)/2,n.width=s,n.height=l,n.aspectRatio=i/o,n.naturalWidth=i,n.naturalHeight=o,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCanvas(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,q(this.canvas,F({width:n.width,height:n.height},le({translateX:n.left,translateY:n.top}))),this.renderImage(e),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(e){var t=this.canvasData,n=this.imageData,r=n.naturalWidth*(t.width/t.naturalWidth),a=n.naturalHeight*(t.height/t.naturalHeight);F(n,{width:r,height:a,left:(t.width-r)/2,top:(t.height-a)/2}),q(this.image,F({width:n.width,height:n.height},le(F({translateX:n.left,translateY:n.top},n)))),e&&this.output()},initCropBox:function(){var e=this.options,t=this.canvasData,n=e.aspectRatio||e.initialAspectRatio,r=Number(e.autoCropArea)||.8,a={width:t.width,height:t.height};n&&(t.height*n>t.width?a.height=a.width/n:a.width=a.height*n),this.cropBoxData=a,this.limitCropBox(!0,!0),a.width=Math.min(Math.max(a.width,a.minWidth),a.maxWidth),a.height=Math.min(Math.max(a.height,a.minHeight),a.maxHeight),a.width=Math.max(a.minWidth,a.width*r),a.height=Math.max(a.minHeight,a.height*r),a.left=t.left+(t.width-a.width)/2,a.top=t.top+(t.height-a.height)/2,a.oldLeft=a.left,a.oldTop=a.top,this.initialCropBoxData=F({},a)},limitCropBox:function(e,t){var n=this.options,r=this.containerData,a=this.canvasData,i=this.cropBoxData,o=this.limited,s=n.aspectRatio;if(e){var l=Number(n.minCropBoxWidth)||0,c=Number(n.minCropBoxHeight)||0,u=o?Math.min(r.width,a.width,a.width+a.left,r.width-a.left):r.width,d=o?Math.min(r.height,a.height,a.height+a.top,r.height-a.top):r.height;l=Math.min(l,r.width),c=Math.min(c,r.height),s&&(l&&c?c*s>l?c=l/s:l=c*s:l?c=l/s:c&&(l=c*s),d*s>u?d=u/s:u=d*s),i.minWidth=Math.min(l,u),i.minHeight=Math.min(c,d),i.maxWidth=u,i.maxHeight=d}t&&(o?(i.minLeft=Math.max(0,a.left),i.minTop=Math.max(0,a.top),i.maxLeft=Math.min(r.width,a.left+a.width)-i.width,i.maxTop=Math.min(r.height,a.top+a.height)-i.height):(i.minLeft=0,i.minTop=0,i.maxLeft=r.width-i.width,i.maxTop=r.height-i.height))},renderCropBox:function(){var e=this.options,t=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCropBox(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,e.movable&&e.cropBoxMovable&&Z(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())}},he={initPreview:function(){var e=this.element,t=this.crossOrigin,n=this.options.preview,r=t?this.crossOriginUrl:this.url,a=e.alt||"The image to preview",i=document.createElement("img");if(t&&(i.crossOrigin=t),i.src=r,i.alt=a,this.viewBox.appendChild(i),this.viewBoxImage=i,n){var o=n;"string"==typeof n?o=e.ownerDocument.querySelectorAll(n):n.querySelector&&(o=[n]),this.previews=o,z(o,(function(e){var n=document.createElement("img");Z(e,b,{width:e.offsetWidth,height:e.offsetHeight,html:e.innerHTML}),t&&(n.crossOrigin=t),n.src=r,n.alt=a,n.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',e.innerHTML="",e.appendChild(n)}))}},resetPreview:function(){z(this.previews,(function(e){var t=J(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(G(t)))}(e,b)}))},preview:function(){var e=this.imageData,t=this.canvasData,n=this.cropBoxData,r=n.width,a=n.height,i=e.width,o=e.height,s=n.left-t.left-e.left,l=n.top-t.top-e.top;this.cropped&&!this.disabled&&(q(this.viewBoxImage,F({width:i,height:o},le(F({translateX:-s,translateY:-l},e)))),z(this.previews,(function(t){var n=J(t,b),c=n.width,u=n.height,d=c,p=u,f=1;r&&(p=a*(f=c/r)),a&&p>u&&(d=r*(f=u/a),p=u),q(t,{width:d,height:p}),q(t.getElementsByTagName("img")[0],F({width:i*f,height:o*f},le(F({translateX:-s*f,translateY:-l*f},e))))})))}},_e={bind:function(){var e=this.element,t=this.options,n=this.cropper;$(t.cropstart)&&te(e,"cropstart",t.cropstart),$(t.cropmove)&&te(e,"cropmove",t.cropmove),$(t.cropend)&&te(e,"cropend",t.cropend),$(t.crop)&&te(e,"crop",t.crop),$(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;$(t.cropstart)&&ee(e,"cropstart",t.cropstart),$(t.cropmove)&&ee(e,"cropmove",t.cropmove),$(t.cropend)&&ee(e,"cropend",t.cropend),$(t.crop)&&ee(e,"crop",t.crop),$(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)}},ve={resize:function(){if(!this.disabled){var e,t,n=this.options,r=this.container,a=this.containerData,i=r.offsetWidth/a.width;1===i&&r.offsetHeight===a.height||(n.restore&&(e=this.getCanvasData(),t=this.getCropBoxData()),this.render(),n.restore&&(this.setCanvasData(z(e,(function(t,n){e[n]=t*i}))),this.setCropBoxData(z(t,(function(e,n){t[n]=e*i})))))}},dblclick:function(){var e,t;this.disabled||"none"===this.options.dragMode||this.setDragMode((e=this.dragBox,t=p,(e.classList?e.classList.contains(t):e.className.indexOf(t)>-1)?"move":"crop"))},wheel:function(e){var t=this,n=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(e.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){t.wheeling=!1}),50),e.deltaY?r=e.deltaY>0?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=e.detail>0?1:-1),this.zoom(-r*n,e)))},cropStart:function(e){var t=e.buttons,n=e.button;if(!(this.disabled||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(E(t)&&1!==t||E(n)&&0!==n||e.ctrlKey))){var r,a=this.options,i=this.pointers;e.changedTouches?z(e.changedTouches,(function(e){i[e.identifier]=ce(e)})):i[e.pointerId||0]=ce(e),r=Object.keys(i).length>1&&a.zoomable&&a.zoomOnTouch?"zoom":J(e.target,y),D.test(r)&&!1!==ne(this.element,"cropstart",{originalEvent:e,action:r})&&(e.preventDefault(),this.action=r,this.cropping=!1,"crop"===r&&(this.cropping=!0,U(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?z(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?z(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,W(this.dragBox,v,this.cropped&&this.options.modal)),ne(this.element,"cropend",{originalEvent:e,action:t}))}}},ge={change:function(e){var t,n=this.options,r=this.canvasData,a=this.containerData,o=this.cropBoxData,s=this.pointers,l=this.action,c=n.aspectRatio,u=o.left,d=o.top,p=o.width,f=o.height,h=u+p,_=d+f,v=0,g=0,y=a.width,b=a.height,w=!0;!c&&e.shiftKey&&(c=p&&f?p/f:1),this.limited&&(v=o.minLeft,g=o.minTop,y=v+Math.min(a.width,r.width,r.left+r.width),b=g+Math.min(a.height,r.height,r.top+r.height));var x=s[Object.keys(s)[0]],k={x:x.endX-x.startX,y:x.endY-x.startY},D=function(e){switch(e){case"e":h+k.x>y&&(k.x=y-h);break;case"w":u+k.x<v&&(k.x=v-u);break;case"n":d+k.y<g&&(k.y=g-d);break;case"s":_+k.y>b&&(k.y=b-_)}};switch(l){case"all":u+=k.x,d+=k.y;break;case"e":if(k.x>=0&&(h>=y||c&&(d<=g||_>=b))){w=!1;break}D("e"),(p+=k.x)<0&&(l="w",u-=p=-p),c&&(f=p/c,d+=(o.height-f)/2);break;case"n":if(k.y<=0&&(d<=g||c&&(u<=v||h>=y))){w=!1;break}D("n"),f-=k.y,d+=k.y,f<0&&(l="s",d-=f=-f),c&&(p=f*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&&(f=p/c,d+=(o.height-f)/2);break;case"s":if(k.y>=0&&(_>=b||c&&(u<=v||h>=y))){w=!1;break}D("s"),(f+=k.y)<0&&(l="n",d-=f=-f),c&&(p=f*c,u+=(o.width-p)/2);break;case"ne":if(c){if(k.y<=0&&(d<=g||h>=y)){w=!1;break}D("n"),f-=k.y,d+=k.y,p=f*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&&(f-=k.y,d+=k.y):(f-=k.y,d+=k.y);p<0&&f<0?(l="sw",d-=f=-f,u-=p=-p):p<0?(l="nw",u-=p=-p):f<0&&(l="se",d-=f=-f);break;case"nw":if(c){if(k.y<=0&&(d<=g||u<=v)){w=!1;break}D("n"),f-=k.y,d+=k.y,p=f*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&&(f-=k.y,d+=k.y):(f-=k.y,d+=k.y);p<0&&f<0?(l="se",d-=f=-f,u-=p=-p):p<0?(l="ne",u-=p=-p):f<0&&(l="sw",d-=f=-f);break;case"sw":if(c){if(k.x<=0&&(u<=v||_>=b)){w=!1;break}D("w"),p-=k.x,u+=k.x,f=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&&(f+=k.y):f+=k.y;p<0&&f<0?(l="ne",d-=f=-f,u-=p=-p):p<0?(l="se",u-=p=-p):f<0&&(l="nw",d-=f=-f);break;case"se":if(c){if(k.x>=0&&(h>=y||_>=b)){w=!1;break}D("e"),f=(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&&(f+=k.y):f+=k.y;p<0&&f<0?(l="nw",d-=f=-f,u-=p=-p):p<0?(l="sw",u-=p=-p):f<0&&(l="ne",d-=f=-f);break;case"move":this.move(k.x,k.y),w=!1;break;case"zoom":this.zoom(function(e){var t=i({},e),n=[];return z(e,(function(e,r){delete t[r],z(t,(function(t){var r=Math.abs(e.startX-t.startX),a=Math.abs(e.startY-t.startY),i=Math.abs(e.endX-t.endX),o=Math.abs(e.endY-t.endY),s=Math.sqrt(r*r+a*a),l=(Math.sqrt(i*i+o*o)-s)/s;n.push(l)}))})),n.sort((function(e,t){return Math.abs(e)<Math.abs(t)})),n[0]}(s),e),w=!1;break;case"crop":if(!k.x||!k.y){w=!1;break}t=re(this.cropper),u=x.startX-t.left,d=x.startY-t.top,p=o.minWidth,f=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-=f),this.cropped||(V(this.cropBox,m),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}w&&(o.width=p,o.height=f,o.left=u,o.top=d,this.action=l,this.renderCropBox()),z(s,(function(e){e.startX=e.endX,e.startY=e.endY}))}},ye={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&U(this.dragBox,v),V(this.cropBox,m),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(),V(this.dragBox,v),U(this.cropBox,m)),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,z(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,V(this.cropper,f)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,U(this.cropper,f)),this},destroy:function(){var e=this.element;return e.cropper?(e.cropper=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=n.left,a=n.top;return this.moveTo(j(e)?e:r+Number(e),j(t)?t:a+Number(t))},moveTo:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.movable&&(E(e)&&(n.left=e,r=!0),E(t)&&(n.top=t,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(e,t){var n=this.canvasData;return e=(e=Number(e))<0?1/(1-e):1+e,this.zoomTo(n.width*e/n.naturalWidth,null,t)},zoomTo:function(e,t,n){var r=this.options,a=this.canvasData,i=a.width,o=a.height,s=a.naturalWidth,l=a.naturalHeight;if((e=Number(e))>=0&&this.ready&&!this.disabled&&r.zoomable){var c=s*e,u=l*e;if(!1===ne(this.element,"zoom",{ratio:e,oldRatio:i/s,originalEvent:n}))return this;if(n){var d=this.pointers,p=re(this.cropper),f=d&&Object.keys(d).length?function(e){var t=0,n=0,r=0;return z(e,(function(e){var a=e.startX,i=e.startY;t+=a,n+=i,r+=1})),{pageX:t/=r,pageY:n/=r}}(d):{pageX:n.pageX,pageY:n.pageY};a.left-=(c-i)*((f.pageX-p.left-a.left)/i),a.top-=(u-o)*((f.pageY-p.top-a.top)/o)}else Y(t)&&E(t.x)&&E(t.y)?(a.left-=(c-i)*((t.x-a.left)/i),a.top-=(u-o)*((t.y-a.top)/o)):(a.left-=(c-i)/2,a.top-=(u-o)/2);a.width=c,a.height=u,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return E(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,E(t)?t:1)},scaleY:function(e){var t=this.imageData.scaleX;return this.scale(E(t)?t:1,e)},scale:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.scalable&&(E(e)&&(n.scaleX=e,r=!0),E(t)&&(n.scaleY=t,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.options,r=this.imageData,a=this.canvasData,i=this.cropBoxData;if(this.ready&&this.cropped){e={x:i.left-a.left,y:i.top-a.top,width:i.width,height:i.height};var o=r.width/r.naturalWidth;if(z(e,(function(t,n){e[n]=t/o})),t){var s=Math.round(e.y+e.height),l=Math.round(e.x+e.width);e.x=Math.round(e.x),e.y=Math.round(e.y),e.width=l-e.x,e.height=s-e.y}}else e={x:0,y:0,width:0,height:0};return n.rotatable&&(e.rotate=r.rotate||0),n.scalable&&(e.scaleX=r.scaleX||1,e.scaleY=r.scaleY||1),e},setData:function(e){var t=this.options,n=this.imageData,r=this.canvasData,a={};if(this.ready&&!this.disabled&&Y(e)){var i=!1;t.rotatable&&E(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,i=!0),t.scalable&&(E(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,i=!0),E(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,i=!0)),i&&this.renderCanvas(!0,!0);var o=n.width/n.naturalWidth;E(e.x)&&(a.left=e.x*o+r.left),E(e.y)&&(a.top=e.y*o+r.top),E(e.width)&&(a.width=e.width*o),E(e.height)&&(a.height=e.height*o),this.setCropBoxData(a)}return this},getContainerData:function(){return this.ready?F({},this.containerData):{}},getImageData:function(){return this.sized?F({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,t={};return this.ready&&z(["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&&Y(e)&&(E(e.left)&&(t.left=e.left),E(e.top)&&(t.top=e.top),E(e.width)?(t.width=e.width,t.height=e.width/n):E(e.height)&&(t.height=e.height,t.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e,t=this.cropBoxData;return this.ready&&this.cropped&&(e={left:t.left,top:t.top,width:t.width,height:t.height}),e||{}},setCropBoxData:function(e){var t,n,r=this.cropBoxData,a=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&Y(e)&&(E(e.left)&&(r.left=e.left),E(e.top)&&(r.top=e.top),E(e.width)&&e.width!==r.width&&(t=!0,r.width=e.width),E(e.height)&&e.height!==r.height&&(n=!0,r.height=e.height),a&&(t?r.height=r.width/a:n&&(r.width=r.height*a)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var t=this.canvasData,n=de(this.image,this.imageData,t,e);if(!this.cropped)return n;var r=this.getData(),a=r.x,i=r.y,s=r.width,l=r.height,c=n.width/Math.floor(t.naturalWidth);1!==c&&(a*=c,i*=c,s*=c,l*=c);var u=s/l,d=ue({aspectRatio:u,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),p=ue({aspectRatio:u,width:e.minWidth||0,height:e.minHeight||0},"cover"),f=ue({aspectRatio:u,width:e.width||(1!==c?n.width:s),height:e.height||(1!==c?n.height:l)}),m=f.width,h=f.height;m=Math.min(d.width,Math.max(p.width,m)),h=Math.min(d.height,Math.max(p.height,h));var _=document.createElement("canvas"),v=_.getContext("2d");_.width=H(m),_.height=H(h),v.fillStyle=e.fillColor||"transparent",v.fillRect(0,0,m,h);var g=e.imageSmoothingEnabled,y=void 0===g||g,b=e.imageSmoothingQuality;v.imageSmoothingEnabled=y,b&&(v.imageSmoothingQuality=b);var w,x,k,D,M,S,C=n.width,L=n.height,T=a,E=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||E<=-l||E>L?(E=0,x=0,D=0,S=0):E<=0?(D=-E,E=0,S=x=Math.min(L,l+E)):E<=L&&(D=0,S=x=Math.min(l,L-E));var O=[T,E,w,x];if(M>0&&S>0){var j=m/s;O.push(k*j,D*j,M*j,S*j)}return v.drawImage.apply(v,[n].concat(o(O.map((function(e){return Math.floor(H(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,r=this.face;if(this.ready&&!this.disabled){var a="crop"===e,i=t.movable&&"move"===e;e=a||i?e:"none",t.dragMode=e,Z(n,y,e),W(n,p,a),W(n,g,i),t.cropBoxMovable||(Z(r,y,e),W(r,p,a),W(r,g,i))}return this}},be=c.Cropper,we=function(){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,e),!n||!C.test(n.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=n,this.options=F({},L,Y(r)&&r),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}var r,a,i;return r=e,i=[{key:"noConflict",value:function(){return window.Cropper=be,e}},{key:"setDefaults",value:function(e){F(L,Y(e)&&e)}}],(a=[{key:"init",value:function(){var e,t=this.element,n=t.tagName.toLowerCase();if(!t.cropper){if(t.cropper=this,"img"===n){if(this.isImg=!0,e=t.getAttribute("src")||"",this.originalUrl=e,!e)return;e=t.src}else"canvas"===n&&window.HTMLCanvasElement&&(e=t.toDataURL());this.load(e)}}},{key:"load",value:function(e){var t=this;if(e){this.url=e,this.imageData={};var n=this.element,r=this.options;if(r.rotatable||r.scalable||(r.checkOrientation=!1),r.checkOrientation&&window.ArrayBuffer)if(M.test(e))S.test(e)?this.read((a=e.replace(fe,""),i=atob(a),o=new ArrayBuffer(i.length),z(s=new Uint8Array(o),(function(e,t){s[t]=i.charCodeAt(t)})),o)):this.clone();else{var a,i,o,s,l=new XMLHttpRequest,c=this.clone.bind(this);this.reloading=!0,this.xhr=l,l.onabort=c,l.onerror=c,l.ontimeout=c,l.onprogress=function(){"image/jpeg"!==l.getResponseHeader("content-type")&&l.abort()},l.onload=function(){t.read(l.response)},l.onloadend=function(){t.reloading=!1,t.xhr=null},r.checkCrossOrigin&&oe(e)&&n.crossOrigin&&(e=se(e)),l.open("GET",e),l.responseType="arraybuffer",l.withCredentials="use-credentials"===n.crossOrigin,l.send()}else this.clone()}}},{key:"read",value:function(e){var t=this.options,n=this.imageData,r=function(e){var t,n=new DataView(e);try{var r,a,i;if(255===n.getUint8(0)&&216===n.getUint8(1))for(var o=n.byteLength,s=2;s+1<o;){if(255===n.getUint8(s)&&225===n.getUint8(s+1)){a=s;break}s+=1}if(a){var l=a+10;if("Exif"===function(e,t,n){var r="";n+=t;for(var a=t;a<n;a+=1)r+=pe(e.getUint8(a));return r}(n,a+4,4)){var c=n.getUint16(l);if(((r=18761===c)||19789===c)&&42===n.getUint16(l+2,r)){var u=n.getUint32(l+4,r);u>=8&&(i=l+u)}}}if(i){var d,p,f=n.getUint16(i,r);for(p=0;p<f;p+=1)if(d=i+12*p+2,274===n.getUint16(d,r)){d+=8,t=n.getUint16(d,r),n.setUint16(d,1,r);break}}}catch(e){t=1}return t}(e),a=0,i=1,o=1;if(r>1){this.url=function(e,t){for(var n=[],r=new Uint8Array(e);r.length>0;)n.push(pe.apply(null,N(r.subarray(0,8192)))),r=r.subarray(8192);return"data:".concat("image/jpeg",";base64,").concat(btoa(n.join("")))}(e);var s=function(e){var t=0,n=1,r=1;switch(e){case 2:n=-1;break;case 3:t=-180;break;case 4:r=-1;break;case 5:t=90,r=-1;break;case 6:t=90;break;case 7:t=90,n=-1;break;case 8:t=-90}return{rotate:t,scaleX:n,scaleY:r}}(r);a=s.rotate,i=s.scaleX,o=s.scaleY}t.rotatable&&(n.rotate=a),t.scalable&&(n.scaleX=i,n.scaleY=o),this.clone()}},{key:"clone",value:function(){var e=this.element,t=this.url,n=e.crossOrigin,r=t;this.options.checkCrossOrigin&&oe(t)&&(n||(n="anonymous"),r=se(t)),this.crossOrigin=n,this.crossOriginUrl=r;var a=document.createElement("img");n&&(a.crossOrigin=n),a.src=r||t,a.alt=e.alt||"The image to crop",this.image=a,a.onload=this.start.bind(this),a.onerror=this.stop.bind(this),U(a,h),e.parentNode.insertBefore(a,e.nextSibling)}},{key:"start",value:function(){var e=this,t=this.image;t.onload=null,t.onerror=null,this.sizing=!0;var n=c.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(c.navigator.userAgent),r=function(t,n){F(e.imageData,{naturalWidth:t,naturalHeight:n,aspectRatio:t/n}),e.sizing=!1,e.sized=!0,e.build()};if(!t.naturalWidth||n){var a=document.createElement("img"),i=document.body||document.documentElement;this.sizingImage=a,a.onload=function(){r(a.width,a.height),n||i.removeChild(a)},a.src=t.src,n||(a.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",i.appendChild(a))}else r(t.naturalWidth,t.naturalHeight)}},{key:"stop",value:function(){var e=this.image;e.onload=null,e.onerror=null,e.parentNode.removeChild(e),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var e=this.element,t=this.options,n=this.image,r=e.parentNode,a=document.createElement("div");a.innerHTML='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>';var i=a.querySelector(".".concat("cropper","-container")),o=i.querySelector(".".concat("cropper","-canvas")),s=i.querySelector(".".concat("cropper","-drag-box")),l=i.querySelector(".".concat("cropper","-crop-box")),c=l.querySelector(".".concat("cropper","-face"));this.container=r,this.cropper=i,this.canvas=o,this.dragBox=s,this.cropBox=l,this.viewBox=i.querySelector(".".concat("cropper","-view-box")),this.face=c,o.appendChild(n),U(e,m),r.insertBefore(i,e.nextSibling),this.isImg||V(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,U(l,m),t.guides||U(l.getElementsByClassName("".concat("cropper","-dashed")),m),t.center||U(l.getElementsByClassName("".concat("cropper","-center")),m),t.background&&U(i,"".concat("cropper","-bg")),t.highlight||U(c,_),t.cropBoxMovable&&(U(c,g),Z(c,y,"all")),t.cropBoxResizable||(U(l.getElementsByClassName("".concat("cropper","-line")),m),U(l.getElementsByClassName("".concat("cropper","-point")),m)),this.render(),this.ready=!0,this.setDragMode(t.dragMode),t.autoCrop&&this.crop(),this.setData(t.data),$(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),V(this.element,m))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}])&&n(r.prototype,a),i&&n(r,i),e}();return F(we.prototype,me,he,_e,ve,ge,ye),we}()},function(e,t,n){e.exports=n(9)},function(e,t,n){var r=n(2),a=n(6);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),r(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(1),a=n.n(r)()(!0);a.push([e.i,"/*!\n * Cropper.js v1.5.7\n * https://fengyuanchen.github.io/cropperjs\n *\n * Copyright 2015-present Chen Fengyuan\n * Released under the MIT license\n *\n * Date: 2020-05-23T05:22:57.283Z\n */\n\n.cropper-container {\n direction: ltr;\n font-size: 0;\n line-height: 0;\n position: relative;\n -ms-touch-action: none;\n touch-action: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.cropper-container img {\n display: block;\n height: 100%;\n image-orientation: 0deg;\n max-height: none !important;\n max-width: none !important;\n min-height: 0 !important;\n min-width: 0 !important;\n width: 100%;\n}\n\n.cropper-wrap-box,\n.cropper-canvas,\n.cropper-drag-box,\n.cropper-crop-box,\n.cropper-modal {\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.cropper-wrap-box,\n.cropper-canvas {\n overflow: hidden;\n}\n\n.cropper-drag-box {\n background-color: #fff;\n opacity: 0;\n}\n\n.cropper-modal {\n background-color: #000;\n opacity: 0.5;\n}\n\n.cropper-view-box {\n display: block;\n height: 100%;\n outline: 1px solid #39f;\n outline-color: rgba(51, 153, 255, 0.75);\n overflow: hidden;\n width: 100%;\n}\n\n.cropper-dashed {\n border: 0 dashed #eee;\n display: block;\n opacity: 0.5;\n position: absolute;\n}\n\n.cropper-dashed.dashed-h {\n border-bottom-width: 1px;\n border-top-width: 1px;\n height: calc(100% / 3);\n left: 0;\n top: calc(100% / 3);\n width: 100%;\n}\n\n.cropper-dashed.dashed-v {\n border-left-width: 1px;\n border-right-width: 1px;\n height: 100%;\n left: calc(100% / 3);\n top: 0;\n width: calc(100% / 3);\n}\n\n.cropper-center {\n display: block;\n height: 0;\n left: 50%;\n opacity: 0.75;\n position: absolute;\n top: 50%;\n width: 0;\n}\n\n.cropper-center::before,\n.cropper-center::after {\n background-color: #eee;\n content: ' ';\n display: block;\n position: absolute;\n}\n\n.cropper-center::before {\n height: 1px;\n left: -3px;\n top: 0;\n width: 7px;\n}\n\n.cropper-center::after {\n height: 7px;\n left: 0;\n top: -3px;\n width: 1px;\n}\n\n.cropper-face,\n.cropper-line,\n.cropper-point {\n display: block;\n height: 100%;\n opacity: 0.1;\n position: absolute;\n width: 100%;\n}\n\n.cropper-face {\n background-color: #fff;\n left: 0;\n top: 0;\n}\n\n.cropper-line {\n background-color: #39f;\n}\n\n.cropper-line.line-e {\n cursor: ew-resize;\n right: -3px;\n top: 0;\n width: 5px;\n}\n\n.cropper-line.line-n {\n cursor: ns-resize;\n height: 5px;\n left: 0;\n top: -3px;\n}\n\n.cropper-line.line-w {\n cursor: ew-resize;\n left: -3px;\n top: 0;\n width: 5px;\n}\n\n.cropper-line.line-s {\n bottom: -3px;\n cursor: ns-resize;\n height: 5px;\n left: 0;\n}\n\n.cropper-point {\n background-color: #39f;\n height: 5px;\n opacity: 0.75;\n width: 5px;\n}\n\n.cropper-point.point-e {\n cursor: ew-resize;\n margin-top: -3px;\n right: -3px;\n top: 50%;\n}\n\n.cropper-point.point-n {\n cursor: ns-resize;\n left: 50%;\n margin-left: -3px;\n top: -3px;\n}\n\n.cropper-point.point-w {\n cursor: ew-resize;\n left: -3px;\n margin-top: -3px;\n top: 50%;\n}\n\n.cropper-point.point-s {\n bottom: -3px;\n cursor: s-resize;\n left: 50%;\n margin-left: -3px;\n}\n\n.cropper-point.point-ne {\n cursor: nesw-resize;\n right: -3px;\n top: -3px;\n}\n\n.cropper-point.point-nw {\n cursor: nwse-resize;\n left: -3px;\n top: -3px;\n}\n\n.cropper-point.point-sw {\n bottom: -3px;\n cursor: nesw-resize;\n left: -3px;\n}\n\n.cropper-point.point-se {\n bottom: -3px;\n cursor: nwse-resize;\n height: 20px;\n opacity: 1;\n right: -3px;\n width: 20px;\n}\n\n@media (min-width: 768px) {\n .cropper-point.point-se {\n height: 15px;\n width: 15px;\n }\n}\n\n@media (min-width: 992px) {\n .cropper-point.point-se {\n height: 10px;\n width: 10px;\n }\n}\n\n@media (min-width: 1200px) {\n .cropper-point.point-se {\n height: 5px;\n opacity: 0.75;\n width: 5px;\n }\n}\n\n.cropper-point.point-se::before {\n background-color: #39f;\n bottom: -50%;\n content: ' ';\n display: block;\n height: 200%;\n opacity: 0;\n position: absolute;\n right: -50%;\n width: 200%;\n}\n\n.cropper-invisible {\n opacity: 0;\n}\n\n.cropper-bg {\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC');\n}\n\n.cropper-hide {\n display: block;\n height: 0;\n position: absolute;\n width: 0;\n}\n\n.cropper-hidden {\n display: none !important;\n}\n\n.cropper-move {\n cursor: move;\n}\n\n.cropper-crop {\n cursor: crosshair;\n}\n\n.cropper-disabled .cropper-drag-box,\n.cropper-disabled .cropper-face,\n.cropper-disabled .cropper-line,\n.cropper-disabled .cropper-point {\n cursor: not-allowed;\n}\n","",{version:3,sources:["webpack://node_modules/cropperjs/dist/cropper.css"],names:[],mappings:"AAAA;;;;;;;;EAQE;;AAEF;EACE,cAAc;EACd,YAAY;EACZ,cAAc;EACd,kBAAkB;EAClB,sBAAsB;EACtB,kBAAkB;EAClB,yBAAyB;EACzB,sBAAsB;EACtB,qBAAqB;EACrB,iBAAiB;AACnB;;AAEA;EACE,cAAc;EACd,YAAY;EACZ,uBAAuB;EACvB,2BAA2B;EAC3B,0BAA0B;EAC1B,wBAAwB;EACxB,uBAAuB;EACvB,WAAW;AACb;;AAEA;;;;;EAKE,SAAS;EACT,OAAO;EACP,kBAAkB;EAClB,QAAQ;EACR,MAAM;AACR;;AAEA;;EAEE,gBAAgB;AAClB;;AAEA;EACE,sBAAsB;EACtB,UAAU;AACZ;;AAEA;EACE,sBAAsB;EACtB,YAAY;AACd;;AAEA;EACE,cAAc;EACd,YAAY;EACZ,uBAAuB;EACvB,uCAAuC;EACvC,gBAAgB;EAChB,WAAW;AACb;;AAEA;EACE,qBAAqB;EACrB,cAAc;EACd,YAAY;EACZ,kBAAkB;AACpB;;AAEA;EACE,wBAAwB;EACxB,qBAAqB;EACrB,sBAAsB;EACtB,OAAO;EACP,mBAAmB;EACnB,WAAW;AACb;;AAEA;EACE,sBAAsB;EACtB,uBAAuB;EACvB,YAAY;EACZ,oBAAoB;EACpB,MAAM;EACN,qBAAqB;AACvB;;AAEA;EACE,cAAc;EACd,SAAS;EACT,SAAS;EACT,aAAa;EACb,kBAAkB;EAClB,QAAQ;EACR,QAAQ;AACV;;AAEA;;EAEE,sBAAsB;EACtB,YAAY;EACZ,cAAc;EACd,kBAAkB;AACpB;;AAEA;EACE,WAAW;EACX,UAAU;EACV,MAAM;EACN,UAAU;AACZ;;AAEA;EACE,WAAW;EACX,OAAO;EACP,SAAS;EACT,UAAU;AACZ;;AAEA;;;EAGE,cAAc;EACd,YAAY;EACZ,YAAY;EACZ,kBAAkB;EAClB,WAAW;AACb;;AAEA;EACE,sBAAsB;EACtB,OAAO;EACP,MAAM;AACR;;AAEA;EACE,sBAAsB;AACxB;;AAEA;EACE,iBAAiB;EACjB,WAAW;EACX,MAAM;EACN,UAAU;AACZ;;AAEA;EACE,iBAAiB;EACjB,WAAW;EACX,OAAO;EACP,SAAS;AACX;;AAEA;EACE,iBAAiB;EACjB,UAAU;EACV,MAAM;EACN,UAAU;AACZ;;AAEA;EACE,YAAY;EACZ,iBAAiB;EACjB,WAAW;EACX,OAAO;AACT;;AAEA;EACE,sBAAsB;EACtB,WAAW;EACX,aAAa;EACb,UAAU;AACZ;;AAEA;EACE,iBAAiB;EACjB,gBAAgB;EAChB,WAAW;EACX,QAAQ;AACV;;AAEA;EACE,iBAAiB;EACjB,SAAS;EACT,iBAAiB;EACjB,SAAS;AACX;;AAEA;EACE,iBAAiB;EACjB,UAAU;EACV,gBAAgB;EAChB,QAAQ;AACV;;AAEA;EACE,YAAY;EACZ,gBAAgB;EAChB,SAAS;EACT,iBAAiB;AACnB;;AAEA;EACE,mBAAmB;EACnB,WAAW;EACX,SAAS;AACX;;AAEA;EACE,mBAAmB;EACnB,UAAU;EACV,SAAS;AACX;;AAEA;EACE,YAAY;EACZ,mBAAmB;EACnB,UAAU;AACZ;;AAEA;EACE,YAAY;EACZ,mBAAmB;EACnB,YAAY;EACZ,UAAU;EACV,WAAW;EACX,WAAW;AACb;;AAEA;EACE;IACE,YAAY;IACZ,WAAW;EACb;AACF;;AAEA;EACE;IACE,YAAY;IACZ,WAAW;EACb;AACF;;AAEA;EACE;IACE,WAAW;IACX,aAAa;IACb,UAAU;EACZ;AACF;;AAEA;EACE,sBAAsB;EACtB,YAAY;EACZ,YAAY;EACZ,cAAc;EACd,YAAY;EACZ,UAAU;EACV,kBAAkB;EAClB,WAAW;EACX,WAAW;AACb;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,+QAA+Q;AACjR;;AAEA;EACE,cAAc;EACd,SAAS;EACT,kBAAkB;EAClB,QAAQ;AACV;;AAEA;EACE,wBAAwB;AAC1B;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,iBAAiB;AACnB;;AAEA;;;;EAIE,mBAAmB;AACrB",sourcesContent:["/*!\n * Cropper.js v1.5.7\n * https://fengyuanchen.github.io/cropperjs\n *\n * Copyright 2015-present Chen Fengyuan\n * Released under the MIT license\n *\n * Date: 2020-05-23T05:22:57.283Z\n */\n\n.cropper-container {\n direction: ltr;\n font-size: 0;\n line-height: 0;\n position: relative;\n -ms-touch-action: none;\n touch-action: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.cropper-container img {\n display: block;\n height: 100%;\n image-orientation: 0deg;\n max-height: none !important;\n max-width: none !important;\n min-height: 0 !important;\n min-width: 0 !important;\n width: 100%;\n}\n\n.cropper-wrap-box,\n.cropper-canvas,\n.cropper-drag-box,\n.cropper-crop-box,\n.cropper-modal {\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.cropper-wrap-box,\n.cropper-canvas {\n overflow: hidden;\n}\n\n.cropper-drag-box {\n background-color: #fff;\n opacity: 0;\n}\n\n.cropper-modal {\n background-color: #000;\n opacity: 0.5;\n}\n\n.cropper-view-box {\n display: block;\n height: 100%;\n outline: 1px solid #39f;\n outline-color: rgba(51, 153, 255, 0.75);\n overflow: hidden;\n width: 100%;\n}\n\n.cropper-dashed {\n border: 0 dashed #eee;\n display: block;\n opacity: 0.5;\n position: absolute;\n}\n\n.cropper-dashed.dashed-h {\n border-bottom-width: 1px;\n border-top-width: 1px;\n height: calc(100% / 3);\n left: 0;\n top: calc(100% / 3);\n width: 100%;\n}\n\n.cropper-dashed.dashed-v {\n border-left-width: 1px;\n border-right-width: 1px;\n height: 100%;\n left: calc(100% / 3);\n top: 0;\n width: calc(100% / 3);\n}\n\n.cropper-center {\n display: block;\n height: 0;\n left: 50%;\n opacity: 0.75;\n position: absolute;\n top: 50%;\n width: 0;\n}\n\n.cropper-center::before,\n.cropper-center::after {\n background-color: #eee;\n content: ' ';\n display: block;\n position: absolute;\n}\n\n.cropper-center::before {\n height: 1px;\n left: -3px;\n top: 0;\n width: 7px;\n}\n\n.cropper-center::after {\n height: 7px;\n left: 0;\n top: -3px;\n width: 1px;\n}\n\n.cropper-face,\n.cropper-line,\n.cropper-point {\n display: block;\n height: 100%;\n opacity: 0.1;\n position: absolute;\n width: 100%;\n}\n\n.cropper-face {\n background-color: #fff;\n left: 0;\n top: 0;\n}\n\n.cropper-line {\n background-color: #39f;\n}\n\n.cropper-line.line-e {\n cursor: ew-resize;\n right: -3px;\n top: 0;\n width: 5px;\n}\n\n.cropper-line.line-n {\n cursor: ns-resize;\n height: 5px;\n left: 0;\n top: -3px;\n}\n\n.cropper-line.line-w {\n cursor: ew-resize;\n left: -3px;\n top: 0;\n width: 5px;\n}\n\n.cropper-line.line-s {\n bottom: -3px;\n cursor: ns-resize;\n height: 5px;\n left: 0;\n}\n\n.cropper-point {\n background-color: #39f;\n height: 5px;\n opacity: 0.75;\n width: 5px;\n}\n\n.cropper-point.point-e {\n cursor: ew-resize;\n margin-top: -3px;\n right: -3px;\n top: 50%;\n}\n\n.cropper-point.point-n {\n cursor: ns-resize;\n left: 50%;\n margin-left: -3px;\n top: -3px;\n}\n\n.cropper-point.point-w {\n cursor: ew-resize;\n left: -3px;\n margin-top: -3px;\n top: 50%;\n}\n\n.cropper-point.point-s {\n bottom: -3px;\n cursor: s-resize;\n left: 50%;\n margin-left: -3px;\n}\n\n.cropper-point.point-ne {\n cursor: nesw-resize;\n right: -3px;\n top: -3px;\n}\n\n.cropper-point.point-nw {\n cursor: nwse-resize;\n left: -3px;\n top: -3px;\n}\n\n.cropper-point.point-sw {\n bottom: -3px;\n cursor: nesw-resize;\n left: -3px;\n}\n\n.cropper-point.point-se {\n bottom: -3px;\n cursor: nwse-resize;\n height: 20px;\n opacity: 1;\n right: -3px;\n width: 20px;\n}\n\n@media (min-width: 768px) {\n .cropper-point.point-se {\n height: 15px;\n width: 15px;\n }\n}\n\n@media (min-width: 992px) {\n .cropper-point.point-se {\n height: 10px;\n width: 10px;\n }\n}\n\n@media (min-width: 1200px) {\n .cropper-point.point-se {\n height: 5px;\n opacity: 0.75;\n width: 5px;\n }\n}\n\n.cropper-point.point-se::before {\n background-color: #39f;\n bottom: -50%;\n content: ' ';\n display: block;\n height: 200%;\n opacity: 0;\n position: absolute;\n right: -50%;\n width: 200%;\n}\n\n.cropper-invisible {\n opacity: 0;\n}\n\n.cropper-bg {\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC');\n}\n\n.cropper-hide {\n display: block;\n height: 0;\n position: absolute;\n width: 0;\n}\n\n.cropper-hidden {\n display: none !important;\n}\n\n.cropper-move {\n cursor: move;\n}\n\n.cropper-crop {\n cursor: crosshair;\n}\n\n.cropper-disabled .cropper-drag-box,\n.cropper-disabled .cropper-face,\n.cropper-disabled .cropper-line,\n.cropper-disabled .cropper-point {\n cursor: not-allowed;\n}\n"],sourceRoot:""}]),t.default=a},function(e,t,n){"use strict";var r=n(0);n.n(r).a},function(e,t,n){"use strict";n.r(t);var r=n(1),a=n.n(r)()(!0);a.push([e.i,".avatar-cropper .avatar-cropper-overlay {\n text-align: center;\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 99999;\n}\n.avatar-cropper .avatar-cropper-overlay-inline {\n position: initial;\n}\n.avatar-cropper .avatar-cropper-img-input {\n display: none;\n}\n.avatar-cropper .avatar-cropper-close {\n float: right;\n padding: 20px;\n font-size: 3rem;\n color: #fff;\n font-weight: 100;\n text-shadow: 0px 1px rgba(40, 40, 40, 0.3);\n}\n.avatar-cropper .avatar-cropper-mark {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.1);\n}\n.avatar-cropper .avatar-cropper-container {\n background: #fff;\n z-index: 999;\n box-shadow: 1px 1px 5px rgba(100, 100, 100, 0.14);\n}\n.avatar-cropper .avatar-cropper-container .avatar-cropper-image-container {\n position: relative;\n max-width: 400px;\n height: 300px;\n}\n.avatar-cropper .avatar-cropper-container img {\n max-width: 100%;\n height: 100%;\n}\n.avatar-cropper .avatar-cropper-container .avatar-cropper-footer {\n display: flex;\n align-items: stretch;\n align-content: stretch;\n justify-content: space-between;\n}\n.avatar-cropper .avatar-cropper-container .avatar-cropper-footer .avatar-cropper-btn {\n width: 50%;\n padding: 15px 0;\n cursor: pointer;\n border: none;\n background: transparent;\n outline: none;\n}\n.avatar-cropper .avatar-cropper-container .avatar-cropper-footer .avatar-cropper-btn:hover {\n background-color: #2aabd2;\n color: #fff;\n}\n","",{version:3,sources:["webpack://src/AvatarCropper.vue"],names:[],mappings:"AAAA;EACE,kBAAkB;EAClB,aAAa;EACb,mBAAmB;EACnB,uBAAuB;EACvB,eAAe;EACf,MAAM;EACN,OAAO;EACP,QAAQ;EACR,SAAS;EACT,cAAc;AAChB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,aAAa;AACf;AACA;EACE,YAAY;EACZ,aAAa;EACb,eAAe;EACf,WAAW;EACX,gBAAgB;EAChB,0CAA0C;AAC5C;AACA;EACE,eAAe;EACf,MAAM;EACN,OAAO;EACP,QAAQ;EACR,SAAS;EACT,8BAA8B;AAChC;AACA;EACE,gBAAgB;EAChB,YAAY;EACZ,iDAAiD;AACnD;AACA;EACE,kBAAkB;EAClB,gBAAgB;EAChB,aAAa;AACf;AACA;EACE,eAAe;EACf,YAAY;AACd;AACA;EACE,aAAa;EACb,oBAAoB;EACpB,sBAAsB;EACtB,8BAA8B;AAChC;AACA;EACE,UAAU;EACV,eAAe;EACf,eAAe;EACf,YAAY;EACZ,uBAAuB;EACvB,aAAa;AACf;AACA;EACE,yBAAyB;EACzB,WAAW;AACb",sourcesContent:[".avatar-cropper .avatar-cropper-overlay {\n text-align: center;\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 99999;\n}\n.avatar-cropper .avatar-cropper-overlay-inline {\n position: initial;\n}\n.avatar-cropper .avatar-cropper-img-input {\n display: none;\n}\n.avatar-cropper .avatar-cropper-close {\n float: right;\n padding: 20px;\n font-size: 3rem;\n color: #fff;\n font-weight: 100;\n text-shadow: 0px 1px rgba(40, 40, 40, 0.3);\n}\n.avatar-cropper .avatar-cropper-mark {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.1);\n}\n.avatar-cropper .avatar-cropper-container {\n background: #fff;\n z-index: 999;\n box-shadow: 1px 1px 5px rgba(100, 100, 100, 0.14);\n}\n.avatar-cropper .avatar-cropper-container .avatar-cropper-image-container {\n position: relative;\n max-width: 400px;\n height: 300px;\n}\n.avatar-cropper .avatar-cropper-container img {\n max-width: 100%;\n height: 100%;\n}\n.avatar-cropper .avatar-cropper-container .avatar-cropper-footer {\n display: flex;\n align-items: stretch;\n align-content: stretch;\n justify-content: space-between;\n}\n.avatar-cropper .avatar-cropper-container .avatar-cropper-footer .avatar-cropper-btn {\n width: 50%;\n padding: 15px 0;\n cursor: pointer;\n border: none;\n background: transparent;\n outline: none;\n}\n.avatar-cropper .avatar-cropper-container .avatar-cropper-footer .avatar-cropper-btn:hover {\n background-color: #2aabd2;\n color: #fff;\n}\n"],sourceRoot:""}]),t.default=a},function(e,t,n){"use strict";n.r(t),n(5);var r=n(3),a=n.n(r);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o={props:{trigger:{type:[String,Element],required:!0},uploadHandler:{type:Function},uploadUrl:{type:String},requestMethod:{type:String,default:"POST"},uploadHeaders:{type:Object},uploadFormName:{type:String,default:"file"},uploadFormData:{type:Object,default:function(){return{}}},cropperOptions:{type:Object,default:function(){return{aspectRatio:1,autoCropArea:1,viewMode:1,movable:!1,zoomable:!1}}},outputOptions:{type:Object},outputMime:{type:String,default:null},outputQuality:{type:Number,default:.9},mimes:{type:String,default:"image/png, image/gif, image/jpeg, image/bmp, image/x-icon"},labels:{type:Object,default:function(){return{submit:"提交",cancel:"取消"}}},withCredentials:{type:Boolean,default:!1},inline:{type:Boolean,default:!1}},data:function(){return{cropper:void 0,dataUrl:void 0,filename:void 0}},methods:{destroy:function(){this.cropper.destroy(),this.$refs.input.value="",this.dataUrl=void 0},submit:function(){this.$emit("submit"),this.uploadUrl?this.uploadImage():this.uploadHandler?this.uploadHandler(this.cropper):this.$emit("error","No upload handler found.","user"),this.destroy()},cancel:function(){this.$emit("cancel"),this.destroy()},pickImage:function(e){this.$refs.input.click(),e.preventDefault(),e.stopPropagation()},createCropper:function(){this.cropper=new a.a(this.$refs.img,this.cropperOptions)},uploadImage:function(){var e=this;this.cropper.getCroppedCanvas(this.outputOptions).toBlob((function(t){var n=new FormData,r=new XMLHttpRequest,a=Object.assign({},e.uploadFormData);for(var i in r.withCredentials=e.withCredentials,a)n.append(i,a[i]);for(var o in n.append(e.uploadFormName,t,e.filename),e.$emit("uploading",n,r),r.open(e.requestMethod,e.uploadUrl,!0),e.uploadHeaders)r.setRequestHeader(o,e.uploadHeaders[o]);r.onreadystatechange=function(){if(4===r.readyState){var t="";try{t=JSON.parse(r.responseText)}catch(e){t=r.responseText}e.$emit("completed",t,n,r),[200,201,204].indexOf(r.status)>-1?e.$emit("uploaded",t,n,r):e.$emit("error","Image upload fail.","upload",r)}},r.send(n)}),this.outputMime,this.outputQuality)}},mounted:function(){var e=this,t="object"==i(this.trigger)?this.trigger:document.querySelector(this.trigger);t?t.addEventListener("click",this.pickImage):this.$emit("error","No avatar make trigger found.","user");var n=this.$refs.input;n.addEventListener("change",(function(){if(null!=n.files&&null!=n.files[0]){if(!e.mimes.split(", ").find((function(e){return e===n.files[0].type})))return void e.$emit("error","File type not correct.","user");var t=new FileReader;t.onload=function(t){e.dataUrl=t.target.result},t.readAsDataURL(n.files[0]),e.filename=n.files[0].name||"unknown",e.mimeType=e.mimeType||n.files[0].type,e.$emit("changed",n.files[0],t)}}))}};n(7);var s=function(e,t,n,r,a,i,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=[],c._compiled=!0),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"}})])})).exports;t.default=s}])},a630:function(e,t,n){var r=n("23e7"),a=n("4df4");r({target:"Array",stat:!0,forced:!n("1c7e")((function(e){Array.from(e)}))},{from:a})},a640:function(e,t,n){"use strict";var r=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},a691:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},a7fa:function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n("c1df"))},a9e3:function(e,t,n){"use strict";var r=n("83ab"),a=n("da84"),i=n("94ca"),o=n("6eeb"),s=n("5135"),l=n("c6b6"),c=n("7156"),u=n("c04e"),d=n("d039"),p=n("7c73"),f=n("241c").f,m=n("06cf").f,h=n("9bf2").f,_=n("58a8").trim,v=a.Number,g=v.prototype,y="Number"==l(p(g)),b=function(e){var t,n,r,a,i,o,s,l,c=u(e,!1);if("string"==typeof c&&c.length>2)if(43===(t=(c=_(c)).charCodeAt(0))||45===t){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:r=2,a=49;break;case 79:case 111:r=8,a=55;break;default:return+c}for(o=(i=c.slice(2)).length,s=0;s<o;s++)if((l=i.charCodeAt(s))<48||l>a)return NaN;return parseInt(i,r)}return+c};if(i("Number",!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var w,x=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof x&&(y?d((function(){g.valueOf.call(n)})):"Number"!=l(n))?c(new v(b(t)),n,x):b(t)},k=r?f(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),D=0;k.length>D;D++)s(v,w=k[D])&&!s(x,w)&&h(x,w,m(v,w));x.prototype=g,g.constructor=x,o(a,"Number",x)}},aaf2:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return r?a[n][0]:a[n][1]}e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){switch(t){case"D":return e+"वेर";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}})}(n("c1df"))},ab13:function(e,t,n){var r=n("b622")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},ac1f:function(e,t,n){"use strict";var r=n("23e7"),a=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},ad6d:function(e,t,n){"use strict";var r=n("825a");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ada2:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,a;return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(r=+e,a={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),r%10==1&&r%100!=11?a[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?a[1]:a[2])}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(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},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:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n("c1df"))},ae40:function(e,t,n){var r=n("83ab"),a=n("d039"),i=n("5135"),o=Object.defineProperty,s={},l=function(e){throw e};e.exports=function(e,t){if(i(s,e))return s[e];t||(t={});var n=[][e],c=!!i(t,"ACCESSORS")&&t.ACCESSORS,u=i(t,0)?t[0]:l,d=i(t,1)?t[1]:void 0;return s[e]=!!n&&!a((function(){if(c&&!r)return!0;var e={length:-1};c?o(e,1,{enumerable:!0,get:l}):e[1]=1,n.call(e,u,d)}))}},ae93:function(e,t,n){"use strict";var r,a,i,o=n("e163"),s=n("9112"),l=n("5135"),c=n("b622"),u=n("c430"),d=c("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(a=o(o(i)))!==Object.prototype&&(r=a):p=!0),null==r&&(r={}),u||l(r,d)||s(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},b041:function(e,t,n){"use strict";var r=n("00ee"),a=n("f5df");e.exports=r?{}.toString:function(){return"[object "+a(this)+"]"}},b047:function(e,t){e.exports=function(e){return function(t){return e(t)}}},b0c0:function(e,t,n){var r=n("83ab"),a=n("9bf2").f,i=Function.prototype,o=i.toString,s=/^\s*function ([^ (]*)/;r&&!("name"in i)&&a(i,"name",{configurable:!0,get:function(){try{return o.call(this).match(s)[1]}catch(e){return""}}})},b218:function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},b29d:function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n("c1df"))},b3eb:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},b469:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},b4c0:function(e,t,n){var r=n("cb5a");e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},b53d:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n("c1df"))},b540:function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n("c1df"))},b575:function(e,t,n){var r,a,i,o,s,l,c,u,d=n("da84"),p=n("06cf").f,f=n("2cf4").set,m=n("1cdc"),h=n("605d"),_=d.MutationObserver||d.WebKitMutationObserver,v=d.document,g=d.process,y=d.Promise,b=p(d,"queueMicrotask"),w=b&&b.value;w||(r=function(){var e,t;for(h&&(e=g.domain)&&e.exit();a;){t=a.fn,a=a.next;try{t()}catch(e){throw a?o():i=void 0,e}}i=void 0,e&&e.enter()},!m&&!h&&_&&v?(s=!0,l=v.createTextNode(""),new _(r).observe(l,{characterData:!0}),o=function(){l.data=s=!s}):y&&y.resolve?(c=y.resolve(void 0),u=c.then,o=function(){u.call(c,r)}):o=h?function(){g.nextTick(r)}:function(){f.call(d,r)}),e.exports=w||function(e){var t={fn:e,next:void 0};i&&(i.next=t),a||(a=t,o()),i=t}},b5b7:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(n("c1df"))},b622:function(e,t,n){var r=n("da84"),a=n("5692"),i=n("5135"),o=n("90e3"),s=n("4930"),l=n("fdbf"),c=a("wks"),u=r.Symbol,d=l?u:u&&u.withoutSetter||o;e.exports=function(e){return i(c,e)||(s&&i(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},b64b:function(e,t,n){var r=n("23e7"),a=n("7b0b"),i=n("df75");r({target:"Object",stat:!0,forced:n("d039")((function(){i(1)}))},{keys:function(e){return i(a(e))}})},b727:function(e,t,n){var r=n("0366"),a=n("44ad"),i=n("7b0b"),o=n("50c4"),s=n("65f0"),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,d=6==e,p=7==e,f=5==e||d;return function(m,h,_,v){for(var g,y,b=i(m),w=a(b),x=r(h,_,3),k=o(w.length),D=0,M=v||s,S=t?M(m,k):n||p?M(m,0):void 0;k>D;D++)if((f||D in w)&&(y=x(g=w[D],D,b),e))if(t)S[D]=y;else if(y)switch(e){case 3:return!0;case 5:return g;case 6:return D;case 2:l.call(S,g)}else switch(e){case 4:return!1;case 7:l.call(S,g)}return d?-1:c||u?u:S}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},b760:function(e,t,n){var r=n("872a"),a=n("9638");e.exports=function(e,t,n){(void 0!==n&&!a(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},b7e9:function(e,t,n){!function(e){"use strict";e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("c1df"))},b84c:function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},b97c:function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function r(e,r,a){return e+" "+n(t[a],e,r)}function a(e,r,a){return n(t[a],e,r)}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:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:r,m:a,mm:r,h:a,hh:r,d:a,dd:r,M:a,MM:r,y:a,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},bb71:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},bbc0:function(e,t,n){var r=n("6044"),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return a.call(t,e)?t[e]:void 0}},c04e:function(e,t,n){var r=n("861d");e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},c098:function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},c109:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n("c1df"))},c1c9:function(e,t,n){var r=n("a454"),a=n("f3c1")(r);e.exports=a},c1df:function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function a(){return t.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function c(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function p(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function f(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,n,r){return Mt(e,t,n,r,!0).utc()}function h(e){return null==e._pf&&(e._pf={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}),e._pf}function _(e){if(null==e._isValid){var t=h(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),a=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(a=a&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return a;e._isValid=a}return e._isValid}function v(e){var t=m(NaN);return null!=e?f(h(t),e):h(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var g=a.momentProperties=[],y=!1;function b(e,t){var n,r,a;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=h(t)),c(t._locale)||(e._locale=t._locale),g.length>0)for(n=0;n<g.length;n++)c(a=t[r=g[n]])||(e[r]=a);return e}function w(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,a.updateOffset(this),y=!1)}function x(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function k(e){!1===a.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function D(e,t){var n=!0;return f((function(){if(null!=a.deprecationHandler&&a.deprecationHandler(null,e),n){var r,i,o,l=[];for(i=0;i<arguments.length;i++){if(r="","object"==typeof arguments[i]){for(o in r+="\n["+i+"] ",arguments[0])s(arguments[0],o)&&(r+=o+": "+arguments[0][o]+", ");r=r.slice(0,-2)}else r=arguments[i];l.push(r)}k(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var M,S={};function C(e,t){null!=a.deprecationHandler&&a.deprecationHandler(e,t),S[e]||(k(t),S[e]=!0)}function L(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function T(e,t){var n,r=f({},e);for(n in t)s(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&o(e[n])&&(r[n]=f({},r[n]));return r}function E(e){null!=e&&this.set(e)}function O(e,t,n){var r=""+Math.abs(e),a=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null,M=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var j=/(\[[^\[]*\])|(\\)?([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,A=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,P={},Y={};function $(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(Y[e]=a),t&&(Y[t[0]]=function(){return O(a.apply(this,arguments),t[1],t[2])}),n&&(Y[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function I(e,t){return e.isValid()?(t=N(t,e.localeData()),P[t]=P[t]||function(e){var t,n,r,a=e.match(j);for(t=0,n=a.length;t<n;t++)Y[a[t]]?a[t]=Y[a[t]]:a[t]=(r=a[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,i="";for(r=0;r<n;r++)i+=L(a[r])?a[r].call(t,e):a[r];return i}}(t),P[t](e)):e.localeData().invalidDate()}function N(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(A.lastIndex=0;n>=0&&A.test(e);)e=e.replace(A,r),A.lastIndex=0,n-=1;return e}var z={};function F(e,t){var n=e.toLowerCase();z[n]=z[n+"s"]=z[t]=e}function R(e){return"string"==typeof e?z[e]||z[e.toLowerCase()]:void 0}function H(e){var t,n,r={};for(n in e)s(e,n)&&(t=R(n))&&(r[t]=e[n]);return r}var B={};function q(e,t){B[e]=t}function U(e){return e%4==0&&e%100!=0||e%400==0}function V(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function W(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=V(t)),n}function K(e,t){return function(n){return null!=n?(J(this,e,n),a.updateOffset(this,t),this):G(this,e)}}function G(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function J(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&U(e.year())&&1===e.month()&&29===e.date()?(n=W(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),xe(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var Z,X=/\d/,Q=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ne=/[+-]?\d{6}/,re=/\d\d?/,ae=/\d\d\d\d?/,ie=/\d\d\d\d\d\d?/,oe=/\d{1,3}/,se=/\d{1,4}/,le=/[+-]?\d{1,6}/,ce=/\d+/,ue=/[+-]?\d+/,de=/Z|[+-]\d\d:?\d\d/gi,pe=/Z|[+-]\d\d(?::?\d\d)?/gi,fe=/[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 me(e,t,n){Z[e]=L(t)?t:function(e,r){return e&&n?n:t}}function he(e,t){return s(Z,e)?Z[e](t._strict,t._locale):new RegExp(_e(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,a){return t||n||r||a}))))}function _e(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Z={};var ve,ge={};function ye(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=W(e)}),n=0;n<e.length;n++)ge[e[n]]=r}function be(e,t){ye(e,(function(e,n,r,a){r._w=r._w||{},t(e,r._w,r,a)}))}function we(e,t,n){null!=t&&s(ge,e)&&ge[e](t,n._a,n,e)}function xe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?U(e)?29:28:31-r%7%2}ve=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},$("M",["MM",2],"Mo",(function(){return this.month()+1})),$("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),$("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),F("month","M"),q("month",8),me("M",re),me("MM",re,Q),me("MMM",(function(e,t){return t.monthsShortRegex(e)})),me("MMMM",(function(e,t){return t.monthsRegex(e)})),ye(["M","MM"],(function(e,t){t[1]=W(e)-1})),ye(["MMM","MMMM"],(function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);null!=a?t[1]=a:h(n).invalidMonth=e}));var ke="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),De="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Me=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Se=fe,Ce=fe;function Le(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=m([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=ve.call(this._shortMonthsParse,o))?a:null:-1!==(a=ve.call(this._longMonthsParse,o))?a:null:"MMM"===t?-1!==(a=ve.call(this._shortMonthsParse,o))||-1!==(a=ve.call(this._longMonthsParse,o))?a:null:-1!==(a=ve.call(this._longMonthsParse,o))||-1!==(a=ve.call(this._shortMonthsParse,o))?a:null}function Te(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=W(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),xe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Ee(e){return null!=e?(Te(this,e),a.updateOffset(this,!0),this):G(this,"Month")}function Oe(){function e(e,t){return t.length-e.length}var t,n,r=[],a=[],i=[];for(t=0;t<12;t++)n=m([2e3,t]),r.push(this.monthsShort(n,"")),a.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(r.sort(e),a.sort(e),i.sort(e),t=0;t<12;t++)r[t]=_e(r[t]),a[t]=_e(a[t]);for(t=0;t<24;t++)i[t]=_e(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function je(e){return U(e)?366:365}$("Y",0,0,(function(){var e=this.year();return e<=9999?O(e,4):"+"+e})),$(0,["YY",2],0,(function(){return this.year()%100})),$(0,["YYYY",4],0,"year"),$(0,["YYYYY",5],0,"year"),$(0,["YYYYYY",6,!0],0,"year"),F("year","y"),q("year",1),me("Y",ue),me("YY",re,Q),me("YYYY",se,te),me("YYYYY",le,ne),me("YYYYYY",le,ne),ye(["YYYYY","YYYYYY"],0),ye("YYYY",(function(e,t){t[0]=2===e.length?a.parseTwoDigitYear(e):W(e)})),ye("YY",(function(e,t){t[0]=a.parseTwoDigitYear(e)})),ye("Y",(function(e,t){t[0]=parseInt(e,10)})),a.parseTwoDigitYear=function(e){return W(e)+(W(e)>68?1900:2e3)};var Ae=K("FullYear",!0);function Pe(e,t,n,r,a,i,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,a,i,o),s}function Ye(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 $e(e,t,n){var r=7+t-n;return-(7+Ye(e,0,r).getUTCDay()-t)%7+r-1}function Ie(e,t,n,r,a){var i,o,s=1+7*(t-1)+(7+n-r)%7+$e(e,r,a);return s<=0?o=je(i=e-1)+s:s>je(e)?(i=e+1,o=s-je(e)):(i=e,o=s),{year:i,dayOfYear:o}}function Ne(e,t,n){var r,a,i=$e(e.year(),t,n),o=Math.floor((e.dayOfYear()-i-1)/7)+1;return o<1?r=o+ze(a=e.year()-1,t,n):o>ze(e.year(),t,n)?(r=o-ze(e.year(),t,n),a=e.year()+1):(a=e.year(),r=o),{week:r,year:a}}function ze(e,t,n){var r=$e(e,t,n),a=$e(e+1,t,n);return(je(e)-r+a)/7}function Fe(e,t){return e.slice(t,7).concat(e.slice(0,t))}$("w",["ww",2],"wo","week"),$("W",["WW",2],"Wo","isoWeek"),F("week","w"),F("isoWeek","W"),q("week",5),q("isoWeek",5),me("w",re),me("ww",re,Q),me("W",re),me("WW",re,Q),be(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=W(e)})),$("d",0,"do","day"),$("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),$("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),$("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),F("day","d"),F("weekday","e"),F("isoWeekday","E"),q("day",11),q("weekday",11),q("isoWeekday",11),me("d",re),me("e",re),me("E",re),me("dd",(function(e,t){return t.weekdaysMinRegex(e)})),me("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),me("dddd",(function(e,t){return t.weekdaysRegex(e)})),be(["dd","ddd","dddd"],(function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:h(n).invalidWeekday=e})),be(["d","e","E"],(function(e,t,n,r){t[r]=W(e)}));var Re="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),He="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Be="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),qe=fe,Ue=fe,Ve=fe;function We(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=m([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=ve.call(this._weekdaysParse,o))?a:null:"ddd"===t?-1!==(a=ve.call(this._shortWeekdaysParse,o))?a:null:-1!==(a=ve.call(this._minWeekdaysParse,o))?a:null:"dddd"===t?-1!==(a=ve.call(this._weekdaysParse,o))||-1!==(a=ve.call(this._shortWeekdaysParse,o))||-1!==(a=ve.call(this._minWeekdaysParse,o))?a:null:"ddd"===t?-1!==(a=ve.call(this._shortWeekdaysParse,o))||-1!==(a=ve.call(this._weekdaysParse,o))||-1!==(a=ve.call(this._minWeekdaysParse,o))?a:null:-1!==(a=ve.call(this._minWeekdaysParse,o))||-1!==(a=ve.call(this._weekdaysParse,o))||-1!==(a=ve.call(this._shortWeekdaysParse,o))?a:null}function Ke(){function e(e,t){return t.length-e.length}var t,n,r,a,i,o=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=m([2e3,1]).day(t),r=_e(this.weekdaysMin(n,"")),a=_e(this.weekdaysShort(n,"")),i=_e(this.weekdays(n,"")),o.push(r),s.push(a),l.push(i),c.push(r),c.push(a),c.push(i);o.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ge(){return this.hours()%12||12}function Je(e,t){$(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ze(e,t){return t._meridiemParse}$("H",["HH",2],0,"hour"),$("h",["hh",2],0,Ge),$("k",["kk",2],0,(function(){return this.hours()||24})),$("hmm",0,0,(function(){return""+Ge.apply(this)+O(this.minutes(),2)})),$("hmmss",0,0,(function(){return""+Ge.apply(this)+O(this.minutes(),2)+O(this.seconds(),2)})),$("Hmm",0,0,(function(){return""+this.hours()+O(this.minutes(),2)})),$("Hmmss",0,0,(function(){return""+this.hours()+O(this.minutes(),2)+O(this.seconds(),2)})),Je("a",!0),Je("A",!1),F("hour","h"),q("hour",13),me("a",Ze),me("A",Ze),me("H",re),me("h",re),me("k",re),me("HH",re,Q),me("hh",re,Q),me("kk",re,Q),me("hmm",ae),me("hmmss",ie),me("Hmm",ae),me("Hmmss",ie),ye(["H","HH"],3),ye(["k","kk"],(function(e,t,n){var r=W(e);t[3]=24===r?0:r})),ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ye(["h","hh"],(function(e,t,n){t[3]=W(e),h(n).bigHour=!0})),ye("hmm",(function(e,t,n){var r=e.length-2;t[3]=W(e.substr(0,r)),t[4]=W(e.substr(r)),h(n).bigHour=!0})),ye("hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[3]=W(e.substr(0,r)),t[4]=W(e.substr(r,2)),t[5]=W(e.substr(a)),h(n).bigHour=!0})),ye("Hmm",(function(e,t,n){var r=e.length-2;t[3]=W(e.substr(0,r)),t[4]=W(e.substr(r))})),ye("Hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[3]=W(e.substr(0,r)),t[4]=W(e.substr(r,2)),t[5]=W(e.substr(a))}));var Xe,Qe=K("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:ke,monthsShort:De,week:{dow:0,doy:6},weekdays:Re,weekdaysMin:Be,weekdaysShort:He,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function rt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function at(e){return e?e.toLowerCase().replace("_","-"):e}function it(t){var r=null;if(void 0===tt[t]&&void 0!==e&&e&&e.exports)try{r=Xe._abbr,n("4678")("./"+t),ot(r)}catch(e){tt[t]=null}return tt[t]}function ot(e,t){var n;return e&&((n=c(t)?lt(e):st(e,t))?Xe=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Xe._abbr}function st(e,t){if(null!==t){var n,r=et;if(t.abbr=e,null!=tt[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])r=tt[t.parentLocale]._config;else{if(null==(n=it(t.parentLocale)))return nt[t.parentLocale]||(nt[t.parentLocale]=[]),nt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return tt[e]=new E(T(r,t)),nt[e]&&nt[e].forEach((function(e){st(e.name,e.config)})),ot(e),tt[e]}return delete tt[e],null}function lt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Xe;if(!i(e)){if(t=it(e))return t;e=[e]}return function(e){for(var t,n,r,a,i=0;i<e.length;){for(t=(a=at(e[i]).split("-")).length,n=(n=at(e[i+1]))?n.split("-"):null;t>0;){if(r=it(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&rt(a,n)>=t-1)break;t--}i++}return Xe}(e)}function ct(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>xe(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,h(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),h(e)._overflowWeeks&&-1===t&&(t=7),h(e)._overflowWeekday&&-1===t&&(t=8),h(e).overflow=t),e}var ut=/^\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)?)?$/,dt=/^\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)?)?$/,pt=/Z|[+-]\d\d(?::?\d\d)?/,ft=[["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]],mt=[["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/]],ht=/^\/?Date\((-?\d+)/i,_t=/^(?:(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}))$/,vt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function gt(e){var t,n,r,a,i,o,s=e._i,l=ut.exec(s)||dt.exec(s);if(l){for(h(e).iso=!0,t=0,n=ft.length;t<n;t++)if(ft[t][1].exec(l[1])){a=ft[t][0],r=!1!==ft[t][2];break}if(null==a)return void(e._isValid=!1);if(l[3]){for(t=0,n=mt.length;t<n;t++)if(mt[t][1].exec(l[3])){i=(l[2]||" ")+mt[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(l[4]){if(!pt.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=a+(i||"")+(o||""),kt(e)}else e._isValid=!1}function yt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function bt(e){var t,n,r,a,i,o,s,l,c=_t.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){if(n=c[4],r=c[3],a=c[2],i=c[5],o=c[6],s=c[7],l=[yt(n),De.indexOf(r),parseInt(a,10),parseInt(i,10),parseInt(o,10)],s&&l.push(parseInt(s,10)),t=l,!function(e,t,n){return!e||He.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(h(n).weekdayMismatch=!0,n._isValid=!1,!1)}(c[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return vt[e];if(t)return 0;var r=parseInt(n,10),a=r%100;return(r-a)/100*60+a}(c[8],c[9],c[10]),e._d=Ye.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function wt(e,t,n){return null!=e?e:null!=t?t:n}function xt(e){var t,n,r,i,o,s=[];if(!e._d){for(r=function(e){var t=new Date(a.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,a,i,o,s,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,o=4,n=wt(t.GG,e._a[0],Ne(St(),1,4).year),r=wt(t.W,1),((a=wt(t.E,1))<1||a>7)&&(l=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,c=Ne(St(),i,o),n=wt(t.gg,e._a[0],c.year),r=wt(t.w,c.week),null!=t.d?((a=t.d)<0||a>6)&&(l=!0):null!=t.e?(a=t.e+i,(t.e<0||t.e>6)&&(l=!0)):a=i),r<1||r>ze(n,i,o)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=Ie(n,r,a,i,o),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=wt(e._a[0],r[0]),(e._dayOfYear>je(o)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Ye(o,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ye:Pe).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(h(e).weekdayMismatch=!0)}}function kt(e){if(e._f!==a.ISO_8601)if(e._f!==a.RFC_2822){e._a=[],h(e).empty=!0;var t,n,r,i,o,s,l=""+e._i,c=l.length,u=0;for(r=N(e._f,e._locale).match(j)||[],t=0;t<r.length;t++)i=r[t],(n=(l.match(he(i,e))||[])[0])&&((o=l.substr(0,l.indexOf(n))).length>0&&h(e).unusedInput.push(o),l=l.slice(l.indexOf(n)+n.length),u+=n.length),Y[i]?(n?h(e).empty=!1:h(e).unusedTokens.push(i),we(i,n,e)):e._strict&&!n&&h(e).unusedTokens.push(i);h(e).charsLeftOver=c-u,l.length>0&&h(e).unusedInput.push(l),e._a[3]<=12&&!0===h(e).bigHour&&e._a[3]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=h(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),xt(e),ct(e)}else bt(e);else gt(e)}function Dt(e){var t=e._i,n=e._f;return e._locale=e._locale||lt(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),x(t)?new w(ct(t)):(d(t)?e._d=t:i(n)?function(e){var t,n,r,a,i,o,s=!1;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)i=0,o=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],kt(t),_(t)&&(o=!0),i+=h(t).charsLeftOver,i+=10*h(t).unusedTokens.length,h(t).score=i,s?i<r&&(r=i,n=t):(null==r||i<r||o)&&(r=i,n=t,o&&(s=!0));f(e,n||t)}(e):n?kt(e):function(e){var t=e._i;c(t)?e._d=new Date(a.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=ht.exec(e._i);null===t?(gt(e),!1===e._isValid&&(delete e._isValid,bt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:a.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):i(t)?(e._a=p(t.slice(0),(function(e){return parseInt(e,10)})),xt(e)):o(t)?function(e){if(!e._d){var t=H(e._i),n=void 0===t.day?t.date:t.day;e._a=p([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),xt(e)}}(e):u(t)?e._d=new Date(t):a.createFromInputFallback(e)}(e),_(e)||(e._d=null),e))}function Mt(e,t,n,r,a){var s,c={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(o(e)&&l(e)||i(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=a,c._l=n,c._i=e,c._f=t,c._strict=r,(s=new w(ct(Dt(c))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function St(e,t,n,r){return Mt(e,t,n,r,!1)}a.createFromInputFallback=D("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),a.ISO_8601=function(){},a.RFC_2822=function(){};var Ct=D("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()})),Lt=D("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}));function Tt(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return St();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Et=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ot(e){var t=H(e),n=t.year||0,r=t.quarter||0,a=t.month||0,i=t.week||t.isoWeek||0,o=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,n,r=!1;for(t in e)if(s(e,t)&&(-1===ve.call(Et,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<Et.length;++n)if(e[Et[n]]){if(r)return!1;parseFloat(e[Et[n]])!==W(e[Et[n]])&&(r=!0)}return!0}(t),this._milliseconds=+d+1e3*u+6e4*c+1e3*l*60*60,this._days=+o+7*i,this._months=+a+3*r+12*n,this._data={},this._locale=lt(),this._bubble()}function jt(e){return e instanceof Ot}function At(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Pt(e,t){$(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+O(~~(e/60),2)+t+O(~~e%60,2)}))}Pt("Z",":"),Pt("ZZ",""),me("Z",pe),me("ZZ",pe),ye(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=$t(pe,e)}));var Yt=/([\+\-]|\d\d)/gi;function $t(e,t){var n,r,a=(t||"").match(e);return null===a?null:0===(r=60*(n=((a[a.length-1]||[])+"").match(Yt)||["-",0,0])[1]+W(n[2]))?0:"+"===n[0]?r:-r}function It(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(x(e)||d(e)?e.valueOf():St(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),a.updateOffset(n,!1),n):St(e).local()}function Nt(e){return-Math.round(e._d.getTimezoneOffset())}function zt(){return!!this.isValid()&&this._isUTC&&0===this._offset}a.updateOffset=function(){};var Ft=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Rt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ht(e,t){var n,r,a,i,o,l,c=e,d=null;return jt(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(c={},t?c[t]=+e:c.milliseconds=+e):(d=Ft.exec(e))?(n="-"===d[1]?-1:1,c={y:0,d:W(d[2])*n,h:W(d[3])*n,m:W(d[4])*n,s:W(d[5])*n,ms:W(At(1e3*d[6]))*n}):(d=Rt.exec(e))?(n="-"===d[1]?-1:1,c={y:Bt(d[2],n),M:Bt(d[3],n),w:Bt(d[4],n),d:Bt(d[5],n),h:Bt(d[6],n),m:Bt(d[7],n),s:Bt(d[8],n)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(i=St(c.from),o=St(c.to),a=i.isValid()&&o.isValid()?(o=It(o,i),i.isBefore(o)?l=qt(i,o):((l=qt(o,i)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(c={}).ms=a.milliseconds,c.M=a.months),r=new Ot(c),jt(e)&&s(e,"_locale")&&(r._locale=e._locale),jt(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Bt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function qt(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 Ut(e,t){return function(n,r){var a;return null===r||isNaN(+r)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),Vt(this,Ht(n,r),e),this}}function Vt(e,t,n,r){var i=t._milliseconds,o=At(t._days),s=At(t._months);e.isValid()&&(r=null==r||r,s&&Te(e,G(e,"Month")+s*n),o&&J(e,"Date",G(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&a.updateOffset(e,o||s))}Ht.fn=Ot.prototype,Ht.invalid=function(){return Ht(NaN)};var Wt=Ut(1,"add"),Kt=Ut(-1,"subtract");function Gt(e){return"string"==typeof e||e instanceof String}function Jt(e){return x(e)||d(e)||Gt(e)||u(e)||function(e){var t=i(e),n=!1;return t&&(n=0===e.filter((function(t){return!u(t)&&Gt(e)})).length),t&&n}(e)||function(e){var t,n,r=o(e)&&!l(e),a=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<i.length;t+=1)n=i[t],a=a||s(e,n);return r&&a}(e)||null==e}function Zt(e){var t,n=o(e)&&!l(e),r=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)r=r||s(e,a[t]);return n&&r}function Xt(e,t){if(e.date()<t.date())return-Xt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Qt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=lt(e))&&(this._locale=t),this)}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var en=D("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 tn(){return this._locale}function nn(e,t){return(e%t+t)%t}function rn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function an(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function sn(){var e,t,n=[],r=[],a=[],i=[],o=this.eras();for(e=0,t=o.length;e<t;++e)r.push(_e(o[e].name)),n.push(_e(o[e].abbr)),a.push(_e(o[e].narrow)),i.push(_e(o[e].name)),i.push(_e(o[e].abbr)),i.push(_e(o[e].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function ln(e,t){$(0,[e,e.length],0,t)}function cn(e,t,n,r,a){var i;return null==e?Ne(this,r,a).year:(t>(i=ze(e,r,a))&&(t=i),un.call(this,e,t,n,r,a))}function un(e,t,n,r,a){var i=Ie(e,t,n,r,a),o=Ye(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}$("N",0,0,"eraAbbr"),$("NN",0,0,"eraAbbr"),$("NNN",0,0,"eraAbbr"),$("NNNN",0,0,"eraName"),$("NNNNN",0,0,"eraNarrow"),$("y",["y",1],"yo","eraYear"),$("y",["yy",2],0,"eraYear"),$("y",["yyy",3],0,"eraYear"),$("y",["yyyy",4],0,"eraYear"),me("N",on),me("NN",on),me("NNN",on),me("NNNN",(function(e,t){return t.erasNameRegex(e)})),me("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?h(n).era=a:h(n).invalidEra=e})),me("y",ce),me("yy",ce),me("yyy",ce),me("yyyy",ce),me("yo",(function(e,t){return t._eraYearOrdinalRegex||ce})),ye(["y","yy","yyy","yyyy"],0),ye(["yo"],(function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,a):t[0]=parseInt(e,10)})),$(0,["gg",2],0,(function(){return this.weekYear()%100})),$(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ln("gggg","weekYear"),ln("ggggg","weekYear"),ln("GGGG","isoWeekYear"),ln("GGGGG","isoWeekYear"),F("weekYear","gg"),F("isoWeekYear","GG"),q("weekYear",1),q("isoWeekYear",1),me("G",ue),me("g",ue),me("GG",re,Q),me("gg",re,Q),me("GGGG",se,te),me("gggg",se,te),me("GGGGG",le,ne),me("ggggg",le,ne),be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=W(e)})),be(["gg","GG"],(function(e,t,n,r){t[r]=a.parseTwoDigitYear(e)})),$("Q",0,"Qo","quarter"),F("quarter","Q"),q("quarter",7),me("Q",X),ye("Q",(function(e,t){t[1]=3*(W(e)-1)})),$("D",["DD",2],"Do","date"),F("date","D"),q("date",9),me("D",re),me("DD",re,Q),me("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ye(["D","DD"],2),ye("Do",(function(e,t){t[2]=W(e.match(re)[0])}));var dn=K("Date",!0);$("DDD",["DDDD",3],"DDDo","dayOfYear"),F("dayOfYear","DDD"),q("dayOfYear",4),me("DDD",oe),me("DDDD",ee),ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=W(e)})),$("m",["mm",2],0,"minute"),F("minute","m"),q("minute",14),me("m",re),me("mm",re,Q),ye(["m","mm"],4);var pn=K("Minutes",!1);$("s",["ss",2],0,"second"),F("second","s"),q("second",15),me("s",re),me("ss",re,Q),ye(["s","ss"],5);var fn,mn,hn=K("Seconds",!1);for($("S",0,0,(function(){return~~(this.millisecond()/100)})),$(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),$(0,["SSS",3],0,"millisecond"),$(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),$(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),$(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),$(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),$(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),$(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),F("millisecond","ms"),q("millisecond",16),me("S",oe,X),me("SS",oe,Q),me("SSS",oe,ee),fn="SSSS";fn.length<=9;fn+="S")me(fn,ce);function _n(e,t){t[6]=W(1e3*("0."+e))}for(fn="S";fn.length<=9;fn+="S")ye(fn,_n);mn=K("Milliseconds",!1),$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");var vn=w.prototype;function gn(e){return e}vn.add=Wt,vn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Jt(arguments[0])?(e=arguments[0],t=void 0):Zt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||St(),r=It(n,this).startOf("day"),i=a.calendarFormat(this,r)||"sameElse",o=t&&(L(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,St(n)))},vn.clone=function(){return new w(this)},vn.diff=function(e,t,n){var r,a,i;if(!this.isValid())return NaN;if(!(r=It(e,this)).isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=R(t)){case"year":i=Xt(this,r)/12;break;case"month":i=Xt(this,r);break;case"quarter":i=Xt(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-a)/864e5;break;case"week":i=(this-r-a)/6048e5;break;default:i=this-r}return n?i:V(i)},vn.endOf=function(e){var t,n;if(void 0===(e=R(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:rn,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+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1}return this._d.setTime(t),a.updateOffset(this,!0),this},vn.format=function(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=I(this,e);return this.localeData().postformat(t)},vn.from=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||St(e).isValid())?Ht({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},vn.fromNow=function(e){return this.from(St(),e)},vn.to=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||St(e).isValid())?Ht({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},vn.toNow=function(e){return this.to(St(),e)},vn.get=function(e){return L(this[e=R(e)])?this[e]():this},vn.invalidAt=function(){return h(this).overflow},vn.isAfter=function(e,t){var n=x(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=R(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},vn.isBefore=function(e,t){var n=x(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=R(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},vn.isBetween=function(e,t,n,r){var a=x(e)?e:St(e),i=x(t)?t:St(t);return!!(this.isValid()&&a.isValid()&&i.isValid())&&("("===(r=r||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===r[1]?this.isBefore(i,n):!this.isAfter(i,n))},vn.isSame=function(e,t){var n,r=x(e)?e:St(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=R(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},vn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},vn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},vn.isValid=function(){return _(this)},vn.lang=en,vn.locale=Qt,vn.localeData=tn,vn.max=Lt,vn.min=Ct,vn.parsingFlags=function(){return f({},h(this))},vn.set=function(e,t){if("object"==typeof e){var n,r=function(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:B[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=H(e));for(n=0;n<r.length;n++)this[r[n].unit](e[r[n].unit])}else if(L(this[e=R(e)]))return this[e](t);return this},vn.startOf=function(e){var t,n;if(void 0===(e=R(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:rn,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-=nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=nn(t,6e4);break;case"second":t=this._d.valueOf(),t-=nn(t,1e3)}return this._d.setTime(t),a.updateOffset(this,!0),this},vn.subtract=Kt,vn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},vn.toObject=function(){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()}},vn.toDate=function(){return new Date(this.valueOf())},vn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?I(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):L(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",I(n,"Z")):I(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},vn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",a="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=a+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(vn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),vn.toJSON=function(){return this.isValid()?this.toISOString():null},vn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},vn.unix=function(){return Math.floor(this.valueOf()/1e3)},vn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},vn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},vn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""},vn.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""},vn.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""},vn.eraYear=function(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-a(i[e].since).year())*n+i[e].offset;return this.year()},vn.year=Ae,vn.isLeapYear=function(){return U(this.year())},vn.weekYear=function(e){return cn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},vn.isoWeekYear=function(e){return cn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},vn.quarter=vn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},vn.month=Ee,vn.daysInMonth=function(){return xe(this.year(),this.month())},vn.week=vn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},vn.isoWeek=vn.isoWeeks=function(e){var t=Ne(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},vn.weeksInYear=function(){var e=this.localeData()._week;return ze(this.year(),e.dow,e.doy)},vn.weeksInWeekYear=function(){var e=this.localeData()._week;return ze(this.weekYear(),e.dow,e.doy)},vn.isoWeeksInYear=function(){return ze(this.year(),1,4)},vn.isoWeeksInISOWeekYear=function(){return ze(this.isoWeekYear(),1,4)},vn.date=dn,vn.day=vn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},vn.weekday=function(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")},vn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},vn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},vn.hour=vn.hours=Qe,vn.minute=vn.minutes=pn,vn.second=vn.seconds=hn,vn.millisecond=vn.milliseconds=mn,vn.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=$t(pe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Nt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Vt(this,Ht(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Nt(this)},vn.utc=function(e){return this.utcOffset(0,e)},vn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Nt(this),"m")),this},vn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=$t(de,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},vn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?St(e).utcOffset():0,(this.utcOffset()-e)%60==0)},vn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},vn.isLocal=function(){return!!this.isValid()&&!this._isUTC},vn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},vn.isUtc=zt,vn.isUTC=zt,vn.zoneAbbr=function(){return this._isUTC?"UTC":""},vn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},vn.dates=D("dates accessor is deprecated. Use date instead.",dn),vn.months=D("months accessor is deprecated. Use month instead",Ee),vn.years=D("years accessor is deprecated. Use year instead",Ae),vn.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),vn.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Dt(t))._a?(e=t._isUTC?m(t._a):St(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,a=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0;for(r=0;r<a;r++)(n&&e[r]!==t[r]||!n&&W(e[r])!==W(t[r]))&&o++;return o+i}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var yn=E.prototype;function bn(e,t,n,r){var a=lt(),i=m().set(r,t);return a[n](i,e)}function wn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return bn(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=bn(e,r,n,"month");return a}function xn(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var a,i=lt(),o=e?i._week.dow:0,s=[];if(null!=n)return bn(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=bn(t,(a+o)%7,r,"day");return s}yn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return L(r)?r.call(t,n):r},yn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(j).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},yn.invalidDate=function(){return this._invalidDate},yn.ordinal=function(e){return this._ordinal.replace("%d",e)},yn.preparse=gn,yn.postformat=gn,yn.relativeTime=function(e,t,n,r){var a=this._relativeTime[n];return L(a)?a(e,t,n,r):a.replace(/%d/i,e)},yn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return L(n)?n(t):n.replace(/%s/i,t)},yn.set=function(e){var t,n;for(n in e)s(e,n)&&(L(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)},yn.eras=function(e,t){var n,r,i,o=this._eras||lt("en")._eras;for(n=0,r=o.length;n<r;++n){switch(typeof o[n].since){case"string":i=a(o[n].since).startOf("day"),o[n].since=i.valueOf()}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":i=a(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf()}}return o},yn.erasParse=function(e,t,n){var r,a,i,o,s,l=this.eras();for(e=e.toUpperCase(),r=0,a=l.length;r<a;++r)if(i=l[r].name.toUpperCase(),o=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[r];break;case"NNNN":if(i===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if([i,o,s].indexOf(e)>=0)return l[r]},yn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?a(e.since).year():a(e.since).year()+(t-e.offset)*n},yn.erasAbbrRegex=function(e){return s(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},yn.erasNameRegex=function(e){return s(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},yn.erasNarrowRegex=function(e){return s(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex},yn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Me).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},yn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Me.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},yn.monthsParse=function(e,t,n){var r,a,i;if(this._monthsParseExact)return Le.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=m([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},yn.monthsRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Oe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Ce),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},yn.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Oe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Se),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},yn.week=function(e){return Ne(e,this._week.dow,this._week.doy).week},yn.firstDayOfYear=function(){return this._week.doy},yn.firstDayOfWeek=function(){return this._week.dow},yn.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Fe(n,this._week.dow):e?n[e.day()]:n},yn.weekdaysMin=function(e){return!0===e?Fe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},yn.weekdaysShort=function(e){return!0===e?Fe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},yn.weekdaysParse=function(e,t,n){var r,a,i;if(this._weekdaysParseExact)return We.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=m([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},yn.weekdaysRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=qe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},yn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ue),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},yn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ve),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},yn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},yn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("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===W(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),a.lang=D("moment.lang is deprecated. Use moment.locale instead.",ot),a.langData=D("moment.langData is deprecated. Use moment.localeData instead.",lt);var kn=Math.abs;function Dn(e,t,n,r){var a=Ht(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Mn(e){return e<0?Math.floor(e):Math.ceil(e)}function Sn(e){return 4800*e/146097}function Cn(e){return 146097*e/4800}function Ln(e){return function(){return this.as(e)}}var Tn=Ln("ms"),En=Ln("s"),On=Ln("m"),jn=Ln("h"),An=Ln("d"),Pn=Ln("w"),Yn=Ln("M"),$n=Ln("Q"),In=Ln("y");function Nn(e){return function(){return this.isValid()?this._data[e]:NaN}}var zn=Nn("milliseconds"),Fn=Nn("seconds"),Rn=Nn("minutes"),Hn=Nn("hours"),Bn=Nn("days"),qn=Nn("months"),Un=Nn("years"),Vn=Math.round,Wn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Kn(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}var Gn=Math.abs;function Jn(e){return(e>0)-(e<0)||+e}function Zn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,a,i,o,s,l=Gn(this._milliseconds)/1e3,c=Gn(this._days),u=Gn(this._months),d=this.asSeconds();return d?(e=V(l/60),t=V(e/60),l%=60,e%=60,n=V(u/12),u%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",a=d<0?"-":"",i=Jn(this._months)!==Jn(d)?"-":"",o=Jn(this._days)!==Jn(d)?"-":"",s=Jn(this._milliseconds)!==Jn(d)?"-":"",a+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(c?o+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var Xn=Ot.prototype;return Xn.isValid=function(){return this._isValid},Xn.abs=function(){var e=this._data;return this._milliseconds=kn(this._milliseconds),this._days=kn(this._days),this._months=kn(this._months),e.milliseconds=kn(e.milliseconds),e.seconds=kn(e.seconds),e.minutes=kn(e.minutes),e.hours=kn(e.hours),e.months=kn(e.months),e.years=kn(e.years),this},Xn.add=function(e,t){return Dn(this,e,t,1)},Xn.subtract=function(e,t){return Dn(this,e,t,-1)},Xn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=R(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Sn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Cn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Xn.asMilliseconds=Tn,Xn.asSeconds=En,Xn.asMinutes=On,Xn.asHours=jn,Xn.asDays=An,Xn.asWeeks=Pn,Xn.asMonths=Yn,Xn.asQuarters=$n,Xn.asYears=In,Xn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*W(this._months/12):NaN},Xn._bubble=function(){var e,t,n,r,a,i=this._milliseconds,o=this._days,s=this._months,l=this._data;return i>=0&&o>=0&&s>=0||i<=0&&o<=0&&s<=0||(i+=864e5*Mn(Cn(s)+o),o=0,s=0),l.milliseconds=i%1e3,e=V(i/1e3),l.seconds=e%60,t=V(e/60),l.minutes=t%60,n=V(t/60),l.hours=n%24,o+=V(n/24),a=V(Sn(o)),s+=a,o-=Mn(Cn(a)),r=V(s/12),s%=12,l.days=o,l.months=s,l.years=r,this},Xn.clone=function(){return Ht(this)},Xn.get=function(e){return e=R(e),this.isValid()?this[e+"s"]():NaN},Xn.milliseconds=zn,Xn.seconds=Fn,Xn.minutes=Rn,Xn.hours=Hn,Xn.days=Bn,Xn.weeks=function(){return V(this.days()/7)},Xn.months=qn,Xn.years=Un,Xn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,a=!1,i=Wn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(a=e),"object"==typeof t&&(i=Object.assign({},Wn,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var a=Ht(e).abs(),i=Vn(a.as("s")),o=Vn(a.as("m")),s=Vn(a.as("h")),l=Vn(a.as("d")),c=Vn(a.as("M")),u=Vn(a.as("w")),d=Vn(a.as("y")),p=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(p=p||u<=1&&["w"]||u<n.w&&["ww",u]),(p=p||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,p[3]=+e>0,p[4]=r,Kn.apply(null,p)}(this,!a,i,n),a&&(r=n.pastFuture(+this,r)),n.postformat(r)},Xn.toISOString=Zn,Xn.toString=Zn,Xn.toJSON=Zn,Xn.locale=Qt,Xn.localeData=tn,Xn.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Zn),Xn.lang=en,$("X",0,0,"unix"),$("x",0,0,"valueOf"),me("x",ue),me("X",/[+-]?\d+(\.\d{1,3})?/),ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ye("x",(function(e,t,n){n._d=new Date(W(e))})),a.version="2.29.1",t=St,a.fn=vn,a.min=function(){var e=[].slice.call(arguments,0);return Tt("isBefore",e)},a.max=function(){var e=[].slice.call(arguments,0);return Tt("isAfter",e)},a.now=function(){return Date.now?Date.now():+new Date},a.utc=m,a.unix=function(e){return St(1e3*e)},a.months=function(e,t){return wn(e,t,"months")},a.isDate=d,a.locale=ot,a.invalid=v,a.duration=Ht,a.isMoment=x,a.weekdays=function(e,t,n){return xn(e,t,n,"weekdays")},a.parseZone=function(){return St.apply(null,arguments).parseZone()},a.localeData=lt,a.isDuration=jt,a.monthsShort=function(e,t){return wn(e,t,"monthsShort")},a.weekdaysMin=function(e,t,n){return xn(e,t,n,"weekdaysMin")},a.defineLocale=st,a.updateLocale=function(e,t){if(null!=t){var n,r,a=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(T(tt[e]._config,t)):(null!=(r=it(e))&&(a=r._config),t=T(a,t),null==r&&(t.abbr=e),(n=new E(t)).parentLocale=tt[e],tt[e]=n),ot(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===ot()&&ot(e)):null!=tt[e]&&delete tt[e]);return tt[e]},a.locales=function(){return M(tt)},a.weekdaysShort=function(e,t,n){return xn(e,t,n,"weekdaysShort")},a.normalizeUnits=R,a.relativeTimeRounding=function(e){return void 0===e?Vn:"function"==typeof e&&(Vn=e,!0)},a.relativeTimeThreshold=function(e,t){return void 0!==Wn[e]&&(void 0===t?Wn[e]:(Wn[e]=t,"s"===e&&(Wn.ss=t-1),!0))},a.calendarFormat=function(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"},a.prototype=vn,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a}()}).call(this,n("62e4")(e))},c430:function(e,t){e.exports=!1},c6b6:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},c6cd:function(e,t,n){var r=n("da84"),a=n("ce4e"),i=r["__core-js_shared__"]||a("__core-js_shared__",{});e.exports=i},c740:function(e,t,n){"use strict";var r=n("23e7"),a=n("b727").findIndex,i=n("44d2"),o=n("ae40"),s=!0,l=o("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){s=!1})),r({target:"Array",proto:!0,forced:s||!l},{findIndex:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i("findIndex")},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},c8f3:function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},c8fe:function(e,t,n){var r=n("f8af");e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},c975:function(e,t,n){"use strict";var r=n("23e7"),a=n("4d64").indexOf,i=n("a640"),o=n("ae40"),s=[].indexOf,l=!!s&&1/[1].indexOf(1,-0)<0,c=i("indexOf"),u=o("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:l||!c||!u},{indexOf:function(e){return l?s.apply(this,arguments)||0:a(this,e,arguments.length>1?arguments[1]:void 0)}})},ca84:function(e,t,n){var r=n("5135"),a=n("fc6a"),i=n("4d64").indexOf,o=n("d012");e.exports=function(e,t){var n,s=a(e),l=0,c=[];for(n in s)!r(o,n)&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~i(c,n)||c.push(n));return c}},caad:function(e,t,n){"use strict";var r=n("23e7"),a=n("4d64").includes,i=n("44d2");r({target:"Array",proto:!0,forced:!n("ae40")("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},cb5a:function(e,t,n){var r=n("9638");e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},cc12:function(e,t,n){var r=n("da84"),a=n("861d"),i=r.document,o=a(i)&&a(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},cd9d:function(e,t){e.exports=function(e){return e}},cdf9:function(e,t,n){var r=n("825a"),a=n("861d"),i=n("f069");e.exports=function(e,t){if(r(e),a(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},ce4e:function(e,t,n){var r=n("da84"),a=n("9112");e.exports=function(e,t){try{a(r,e,t)}catch(n){r[e]=t}return t}},cf1e:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var a=t.words[r];return 1===r.length?n?a[0]:a[1]:e+" "+t.correctGrammaticalCase(e,a)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("c1df"))},cf51:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return r||t?a[n][0]:a[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},cf75:function(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,r,a){var i=function(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),a=e%10,i="";return n>0&&(i+=t[n]+"vatlh"),r>0&&(i+=(""!==i?" ":"")+t[r]+"maH"),a>0&&(i+=(""!==i?" ":"")+t[a]),""===i?"pagh":i}(e);switch(r){case"ss":return i+" lup";case"mm":return i+" tup";case"hh":return i+" rep";case"dd":return i+" jaj";case"MM":return i+" jar";case"yy":return i+" DIS"}}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(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"},past:function(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"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},d012:function(e,t){e.exports={}},d02c:function(e,t,n){var r=n("5e2e"),a=n("79bc"),i=n("7b83");e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!a||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(o)}return n.set(e,t),this.size=n.size,this}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},d066:function(e,t,n){var r=n("428f"),a=n("da84"),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(a[e]):r[e]&&r[e][t]||a[e]&&a[e][t]}},d1e7:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,i=a&&!r.call({1:2},1);t.f=i?function(e){var t=a(this,e);return!!t&&t.enumerable}:r},d26a:function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n("c1df"))},d28b:function(e,t,n){n("746f")("iterator")},d2bb:function(e,t,n){var r=n("825a"),a=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return r(n),a(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},d2d4:function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"})}(n("c1df"))},d370:function(e,t,n){var r=n("253c"),a=n("1310"),i=Object.prototype,o=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return a(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},d3b7:function(e,t,n){var r=n("00ee"),a=n("6eeb"),i=n("b041");r||a(Object.prototype,"toString",i,{unsafe:!0})},d44e:function(e,t,n){var r=n("9bf2").f,a=n("5135"),i=n("b622")("toStringTag");e.exports=function(e,t,n){e&&!a(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},d58f:function(e,t,n){var r=n("1c0b"),a=n("7b0b"),i=n("44ad"),o=n("50c4"),s=function(e){return function(t,n,s,l){r(n);var c=a(t),u=i(c),d=o(c.length),p=e?d-1:0,f=e?-1:1;if(s<2)for(;;){if(p in u){l=u[p],p+=f;break}if(p+=f,e?p<0:d<=p)throw TypeError("Reduce of empty array with no initial value")}for(;e?p>=0:d>p;p+=f)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 r=n("6eeb"),a=n("d039"),i=n("b622"),o=n("9263"),s=n("9112"),l=i("species"),c=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),u="$0"==="a".replace(/./,"$0"),d=i("replace"),p=!!/./[d]&&""===/./[d]("a","$0"),f=!a((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,d){var m=i(e),h=!a((function(){var t={};return t[m]=function(){return 7},7!=""[e](t)})),_=h&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[m]=/./[m]),n.exec=function(){return t=!0,null},n[m](""),!t}));if(!h||!_||"replace"===e&&(!c||!u||p)||"split"===e&&!f){var v=/./[m],g=n(m,""[e],(function(e,t,n,r,a){return t.exec===o?h&&!a?{done:!0,value:v.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),y=g[0],b=g[1];r(String.prototype,e,y),r(RegExp.prototype,m,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}d&&s(RegExp.prototype[m],"sham",!0)}},d81d:function(e,t,n){"use strict";var r=n("23e7"),a=n("b727").map,i=n("1dde"),o=n("ae40"),s=i("map"),l=o("map");r({target:"Array",proto:!0,forced:!s||!l},{map:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},d9f8:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n("c1df"))},da03:function(e,t,n){var r=n("2b3e")["__core-js_shared__"];e.exports=r},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},db29:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],a=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("c1df"))},dbb4:function(e,t,n){var r=n("23e7"),a=n("83ab"),i=n("56ef"),o=n("fc6a"),s=n("06cf"),l=n("8418");r({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(e){for(var t,n,r=o(e),a=s.f,c=i(r),u={},d=0;c.length>d;)void 0!==(n=a(r,t=c[d++]))&&l(u,t,n);return u}})},dc4d:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},r=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i];e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:r,longMonthsParse:r,shortMonthsParse:[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i],monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n("c1df"))},dc57:function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},dcbe:function(e,t,n){var r=n("30c9"),a=n("1310");e.exports=function(e){return a(e)&&r(e)}},ddb0:function(e,t,n){var r=n("da84"),a=n("fdbc"),i=n("e260"),o=n("9112"),s=n("b622"),l=s("iterator"),c=s("toStringTag"),u=i.values;for(var d in a){var p=r[d],f=p&&p.prototype;if(f){if(f[l]!==u)try{o(f,l,u)}catch(e){f[l]=u}if(f[c]||o(f,c,d),a[d])for(var m in i)if(f[m]!==i[m])try{o(f,m,i[m])}catch(e){f[m]=i[m]}}}},df75:function(e,t,n){var r=n("ca84"),a=n("7839");e.exports=Object.keys||function(e){return r(e,a)}},e01a:function(e,t,n){"use strict";var r=n("23e7"),a=n("83ab"),i=n("da84"),o=n("5135"),s=n("861d"),l=n("9bf2").f,c=n("e893"),u=i.Symbol;if(a&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var d={},p=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof p?new u(e):void 0===e?u():u(e);return""===e&&(d[t]=!0),t};c(p,u);var f=p.prototype=u.prototype;f.constructor=p;var m=f.toString,h="Symbol(test)"==String(u("test")),_=/^Symbol\((.*)\)[^)]+$/;l(f,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=m.call(e);if(o(d,e))return"";var n=h?t.slice(7,-1):t.replace(_,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:p})}},e0c5:function(e,t,n){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n("c1df"))},e163:function(e,t,n){var r=n("5135"),a=n("7b0b"),i=n("f772"),o=n("e177"),s=i("IE_PROTO"),l=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=a(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},e177:function(e,t,n){var r=n("d039");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e1d3:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("c1df"))},e24b:function(e,t,n){var r=n("49f4"),a=n("1efc"),i=n("bbc0"),o=n("7a48"),s=n("2524");function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=o,l.prototype.set=s,e.exports=l},e260:function(e,t,n){"use strict";var r=n("fc6a"),a=n("44d2"),i=n("3f8c"),o=n("69f3"),s=n("7dd0"),l=o.set,c=o.getterFor("Array Iterator");e.exports=s(Array,"Array",(function(e,t){l(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,a("keys"),a("values"),a("entries")},e2cc:function(e,t,n){var r=n("6eeb");e.exports=function(e,t,n){for(var a in t)r(e,a,t[a],n);return e}},e439:function(e,t,n){var r=n("23e7"),a=n("d039"),i=n("fc6a"),o=n("06cf").f,s=n("83ab"),l=a((function(){o(1)}));r({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return o(i(e),t)}})},e538:function(e,t,n){var r=n("b622");t.f=r},e5383:function(e,t,n){(function(e){var r=n("2b3e"),a=t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===a?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n("62e4")(e))},e667:function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},e6cf:function(e,t,n){"use strict";var r,a,i,o,s=n("23e7"),l=n("c430"),c=n("da84"),u=n("d066"),d=n("fea9"),p=n("6eeb"),f=n("e2cc"),m=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"),E=n("94ca"),O=n("b622"),j=n("605d"),A=n("2d00"),P=O("species"),Y="Promise",$=T.get,I=T.set,N=T.getterFor(Y),z=d,F=c.TypeError,R=c.document,H=c.process,B=u("fetch"),q=C.f,U=q,V=!!(R&&R.createEvent&&c.dispatchEvent),W="function"==typeof PromiseRejectionEvent,K=E(Y,(function(){if(y(z)===String(z)){if(66===A)return!0;if(!j&&!W)return!0}if(l&&!z.prototype.finally)return!0;if(A>=51&&/native code/.test(z))return!1;var e=z.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[P]=t,!(e.then((function(){}))instanceof t)})),G=K||!w((function(e){z.all(e).catch((function(){}))})),J=function(e){var t;return!(!_(e)||"function"!=typeof(t=e.then))&&t},Z=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;D((function(){for(var r=e.value,a=1==e.state,i=0;n.length>i;){var o,s,l,c=n[i++],u=a?c.ok:c.fail,d=c.resolve,p=c.reject,f=c.domain;try{u?(a||(2===e.rejection&&te(e),e.rejection=1),!0===u?o=r:(f&&f.enter(),o=u(r),f&&(f.exit(),l=!0)),o===c.promise?p(F("Promise-chain cycle")):(s=J(o))?s.call(o,d,p):d(o)):p(r)}catch(e){f&&!l&&f.exit(),p(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Q(e)}))}},X=function(e,t,n){var r,a;V?((r=R.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!W&&(a=c["on"+e])?a(r):"unhandledrejection"===e&&S("Unhandled promise rejection",n)},Q=function(e){k.call(c,(function(){var t,n=e.facade,r=e.value;if(ee(e)&&(t=L((function(){j?H.emit("unhandledRejection",r,n):X("unhandledrejection",n,r)})),e.rejection=j||ee(e)?2:1,t.error))throw t.value}))},ee=function(e){return 1!==e.rejection&&!e.parent},te=function(e){k.call(c,(function(){var t=e.facade;j?H.emit("rejectionHandled",t):X("rejectionhandled",t,e.value)}))},ne=function(e,t,n){return function(r){e(t,r,n)}},re=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Z(e,!0))},ae=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw F("Promise can't be resolved itself");var r=J(t);r?D((function(){var n={done:!1};try{r.call(t,ne(ae,n,e),ne(re,n,e))}catch(t){re(n,t,e)}})):(e.value=t,e.state=1,Z(e,!1))}catch(t){re({done:!1},t,e)}}};K&&(z=function(e){g(this,z,Y),v(e),r.call(this);var t=$(this);try{e(ne(ae,t),ne(re,t))}catch(e){re(t,e)}},(r=function(e){I(this,{type:Y,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=f(z.prototype,{then:function(e,t){var n=N(this),r=q(x(this,z));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=j?H.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Z(n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new r,t=$(e);this.promise=e,this.resolve=ne(ae,t),this.reject=ne(re,t)},C.f=q=function(e){return e===z||e===i?new a(e):U(e)},l||"function"!=typeof d||(o=d.prototype.then,p(d.prototype,"then",(function(e,t){var n=this;return new z((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(z,B.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:K},{Promise:z}),m(z,Y,!1,!0),h(Y),i=u(Y),s({target:Y,stat:!0,forced:K},{reject:function(e){var t=q(this);return t.reject.call(void 0,e),t.promise}}),s({target:Y,stat:!0,forced:l||K},{resolve:function(e){return M(l&&this===i?z:this,e)}}),s({target:Y,stat:!0,forced:G},{all:function(e){var t=this,n=q(t),r=n.resolve,a=n.reject,i=L((function(){var n=v(t.resolve),i=[],o=0,s=1;b(e,(function(e){var l=o++,c=!1;i.push(void 0),s++,n.call(t,e).then((function(e){c||(c=!0,i[l]=e,--s||r(i))}),a)})),--s||r(i)}));return i.error&&a(i.value),n.promise},race:function(e){var t=this,n=q(t),r=n.reject,a=L((function(){var a=v(t.resolve);b(e,(function(e){a.call(t,e).then(n.resolve,r)}))}));return a.error&&r(a.value),n.promise}})},e81d:function(e,t,n){!function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n("c1df"))},e893:function(e,t,n){var r=n("5135"),a=n("56ef"),i=n("06cf"),o=n("9bf2");e.exports=function(e,t){for(var n=a(t),s=o.f,l=i.f,c=0;c<n.length;c++){var u=n[c];r(e,u)||s(e,u,l(t,u))}}},e8b5:function(e,t,n){var r=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==r(e)}},e95a:function(e,t,n){var r=n("b622"),a=n("3f8c"),i=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||o[i]===e)}},eac5:function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},ebe4:function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("c1df"))},ec18:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?a[n][2]?a[n][2]:a[n][1]:r?a[n][0]:a[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},ec2e:function(e,t,n){!function(e){"use strict";e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})}(n("c1df"))},ec8c:function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},eda5:function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n("c1df"))},efb6:function(e,t,n){var r=n("5e2e");e.exports=function(){this.__data__=new r,this.size=0}},f069:function(e,t,n){"use strict";var r=n("1c0b"),a=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new a(e)}},f260:function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("c1df"))},f3c1:function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var a=n(),i=16-(a-r);if(r=a,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},f3ff:function(e,t,n){!function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n("c1df"))},f5df:function(e,t,n){var r=n("00ee"),a=n("c6b6"),i=n("b622")("toStringTag"),o="Arguments"==a(function(){return arguments}());e.exports=r?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:o?a(t):"Object"==(r=a(t))&&"function"==typeof t.callee?"Arguments":r}},f6b4:function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["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"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n("c1df"))},f772:function(e,t,n){var r=n("5692"),a=n("90e3"),i=r("keys");e.exports=function(e){return i[e]||(i[e]=a(e))}},f8af:function(e,t,n){var r=n("2474");e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},f909:function(e,t,n){var r=n("7e64"),a=n("b760"),i=n("72af"),o=n("4f50"),s=n("1a8c"),l=n("9934"),c=n("8adb");e.exports=function e(t,n,u,d,p){t!==n&&i(n,(function(i,l){if(p||(p=new r),s(i))o(t,n,l,u,e,d,p);else{var f=d?d(c(t,l),i,l+"",t,n,p):void 0;void 0===f&&(f=i),a(t,l,f)}}),l)}},fa21:function(e,t,n){var r=n("7530"),a=n("2dcb"),i=n("eac5");e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(a(e))}},facd:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],a=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("c1df"))},fb15:function(e,t,n){"use strict";if(n.r(t),"undefined"!=typeof window){var r=window.document.currentScript,a=n("8875");r=a(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:a});var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n("4160"),n("b64b"),n("159b"),n("a4d3"),n("4de4"),n("e439"),n("dbb4");var c={classes:{avatarContainer:"relative flex items-center justify-center w-32 h-32 p-5 mt-2 bg-transparent border-2 border-dashed rounded-md cursor-pointer avatar-upload border-gray-300",overlay:"absolute top-0 left-0 z-10 flex items-center justify-center w-full h-full opacity-0 overlay",overlayIcon:"mb-2 text-3xl leading-normal text-white",image:"absolute opacity-100 h-20 w-20",previewAvatarClass:"flex flex-col items-center",defaultIcon:"mb-2 text-xl leading-6 text-gray-400",defaultLabel:"text-xs leading-4 text-center text-gray-400"},variants:{}},u={classes:"px-2 py-1 text-sm bg-success text-green-800 uppercase font-normal text-center",variants:{success:"px-2 py-1 text-sm bg-success text-green-800 uppercase font-normal text-center",info:"px-2 py-1 text-sm bg-info text-teal-900 uppercase text-center font-normal",danger:"px-2 py-1 text-sm bg-red-100 text-danger uppercase font-normal text-center",warning:"px-2 py-1 text-sm bg-warning text-indigo-900 uppercase font-normal text-center"}},d={classes:{button:"inline-flex items-center justify-center text-white font-normal transition duration-150 ease-in-out border border-transparent focus:outline-none bg-gray-400 whitespace-no-wrap",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-no-wrap"},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-no-wrap"},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-no-wrap"},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-no-wrap"},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-no-wrap"},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-no-wrap"},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-no-wrap"},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-no-wrap"},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-no-wrap"},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-no-wrap"},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-no-wrap"},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-no-wrap"},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-no-wrap"}}},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"}},f={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"}}},m={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-no-wrap",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-thin 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-no-wrap",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",label:"text-sm",requiredSign:"text-danger",inputContainer:"mt-1",errorText:"mt-1 text-danger text-sm"},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"}},E={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",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"}},O={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-no-wrap 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-no-wrap 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-no-wrap 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:{}},Y={SwAvatar:c,SwBadge:u,SwBreadcrumb:p,SwTab:E,SwButton:d,SwCard:f,SwCheckbox:m,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:O,SwTransition:j,SwTable:A,SwWizard:P},$=(n("c740"),n("b0c0"),n("ac1f"),n("5319"),n("42454")),I=n.n($),N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=n.props;Object.keys(t).forEach((function(e){var n={default:function(){return t[e]}};r[e]=n})),e.component(n.name,l(l({},n),{props:r}))},z=function(e,t,n,r,a){var i=function(e,t){var n=[{name:"SwDropdownItem",themeName:"SwDropdown"},{name:"SwDropdownDivider",themeName:"SwDropdown"},{name:"SwTableComponent",themeName:"SwTable"},{name:"SwTableColumn",themeName:"SwTable"},{name:"Pagination",themeName:"SwTable"}],r=n.findIndex((function(e){return e.name==t}));return r>=0?e[n[r].themeName]:e[t]}(t,n),o=a[n],s=I()(o,i),c=r[n].props;return Object.keys(s).forEach((function(e){var t={default:function(){return s[e]}};c[e]=t})),e.extend(l(l({},r[n]),{props:c}))},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]},R=(n("a9e3"),n("a566")),H=c.classes,B=c.variants;function q(e,t,n,r,a,i,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):a&&(l=s?function(){a.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:a),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}var U=q({components:{AvatarCropper:n.n(R).a},install:function(e,t){N(e,t,this)},props:{classes:{type:Object,default:function(){return H}},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.variants);return l(l({},this.classes),e)},hasTrigger:function(){return void 0!==this.$options.propsData.trigger},hasIconSlot:function(){return!!this.$slots.icon}},watch:{previewAvatar:function(e){this.selectedImage=e}},mounted:function(){if(!this.enableCropper&&this.hasTrigger){var e=document.querySelector(this.trigger);e?e.addEventListener("click",this.pickImage):this.$emit("error","No avatar make trigger found.","user")}},methods:{onFileChange:function(e){var t=this,n=e.target;if(this.file=n.files[0],n.files&&n.files[0]){var r=new FileReader;r.onload=function(e){t.selectedImage=e.target.result,t.$emit("changed",{file:t.file,image:t.selectedImage})},r.readAsDataURL(n.files[0])}},pickImage:function(e){this.$refs.file.click(),e.preventDefault(),e.stopPropagation()}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.enableCropper?n("div",[e.hasTrigger?e._e():n("div",{class:e.avatarStyle.avatarContainer,attrs:{id:"pick-avatar"}},[e.selectedImage?n("img",{class:e.avatarStyle.image,staticStyle:{animation:"fadeIn 2s ease"},attrs:{src:e.selectedImage}}):e._e(),e.selectedImage?e._e():n("div",{class:e.avatarStyle.previewAvatarClass},[e.hasIconSlot?n("div",{class:e.avatarStyle.defaultIcon},[e._t("icon")],2):e._e(),n("p",{class:e.avatarStyle.defaultLabel},[e._t("default",[e._v(e._s(e.label))])],2)])]),n("avatar-cropper",{attrs:{labels:e.labels,"cropper-options":e.cropperOptions,"output-options":e.cropperOutputOptions,"output-quality":e.outputQuality,"upload-handler":function(t){return e.$emit("uploadHandler",t)},trigger:e.trigger},on:{changed:function(t){return e.$emit("changed",t)},error:function(t){return e.$emit("handleUploadError",t)}}})],1):n("div",[e.hasTrigger?e._e():n("div",{class:e.avatarStyle.avatarContainer,on:{click:function(t){return e.$refs.file.click()}}},[e.selectedImage?n("img",{class:e.avatarStyle.image,staticStyle:{animation:"fadeIn 2s ease"},attrs:{src:e.selectedImage}}):e._e(),e.selectedImage?e._e():n("div",{class:e.avatarStyle.previewAvatarClass},[e.hasIconSlot?n("div",{class:e.avatarStyle.defaultIcon},[e._t("icon")],2):e._e(),n("p",{class:e.avatarStyle.defaultLabel},[e._t("default",[e._v(e._s(e.label))])],2)])]),n("input",{ref:"file",staticClass:"hidden",attrs:{type:"file"},on:{change:e.onFileChange}})])}),[],!1,null,null,null).exports,V=u.variants,W=q({name:"SwBadge",install:function(e,t){N(e,t,this)},props:{variants:{type:Object,default:function(){return V}},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.variants);return e||this.classes}}},(function(){var e=this.$createElement;return(this._self._c||e)("span",{class:this.currentClass,style:{backgroundColor:this.bgColor,color:this.color}},[this._t("default")],2)}),[],!1,null,null,null).exports,K=p.classes,G=q({name:"SwBreadcrumb",install:function(e,t){N(e,t,this)},props:{classes:{type:Object,default:function(){return K}}},data:function(){return{breadcrumbItems:[]}},mounted:function(){this.breadcrumbItems=this.$children,this.setChilds()},methods:{setChilds:function(){var e=this;this.breadcrumbItems.forEach((function(t){t.classes=e.classes}))}}},(function(){var e=this.$createElement,t=this._self._c||e;return t("nav",[t("ol",{class:this.classes.listContainer},[this._t("default")],2)])}),[],!1,null,null,null).exports,J=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,Z=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:Z},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.variants);return l(l({},this.classes),e)},buttonStyle:function(){var e=[],t=F(this.variant,this.variants),n=F(this.size,this.sizes);return e.push(t?t.button:this.classes.button),n&&n.button&&e.push(n.button),this.disabled&&e.push(t&&t.disabledClass?t.disabledClass:this.classes.disabledClass),e},loadingIconStyle:function(){var e=[],t=F(this.size,this.sizes);return e.push(this.classes.loadingIcon),t&&t.loadingIcon&&e.push(t.loadingIcon),e},isLoading:function(){return!!this.loading},hasLoaderSlot:function(){return!!this.$slots.loader}}},(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=f.classes,re=f.variants,ae=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 re}},variant:{type:String,default:null}},computed:{cardStyle:function(){var e={};return this.variant&&(e=F(this.variant,this.variants)),l(l({},this.classes),e)},hasHeaderSlot:function(){return!!this.$slots.header},hasFooterSlot:function(){return!!this.$slots.footer}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.cardStyle.container},[e.hasHeaderSlot?n("div",{class:e.cardStyle.header},[e._t("header")],2):e._e(),n("div",{class:e.cardStyle.body},[e._t("default")],2),e.hasFooterSlot?n("div",{class:e.cardStyle.footer},[e._t("footer")],2):e._e()])}),[],!1,null,null,null).exports;function ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oe(e,t){if(e){if("string"==typeof e)return ie(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ie(e,t):void 0}}function se(e){return function(e){if(Array.isArray(e))return ie(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||oe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n("caad"),n("c975"),n("a434"),n("d3b7"),n("25f0"),n("2532"),n("e01a"),n("d28b"),n("a630"),n("e260"),n("3ca3"),n("ddb0"),n("fb6a");var le=m.classes,ce=m.variants,ue=m.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.variants);return l(l({},this.classes),e)},lebelStyle:function(){var e=F(this.size,this.sizes);return[this.checkBoxStyle.label,e.label]},inputStyle:function(){var e=F(this.size,this.sizes);return[this.checkBoxStyle.input,e.input]}},methods:{updateInput:function(e){var t=e.target.checked;if(this.modelValue instanceof Array){var n=se(this.modelValue);t?n.push(this.value):n.splice(n.indexOf(this.value),1),this.$emit("change",n)}else this.$emit("change",t?this.trueValue:this.falseValue)}}},(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,fe=h.variants,me=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 fe}},variant:{type:String,default:""}},computed:{dividerStyle:function(){var e=null;return this.variant&&(e=F(this.variant,this.variants)),e||this.classes}}},(function(){var e=this.$createElement;return(this._self._c||e)("hr",{class:this.dividerStyle})}),[],!1,null,null,null).exports;function he(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 _e(e){if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ve(e){var t=_e(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ge(e){return e instanceof _e(e).Element||e instanceof Element}function ye(e){return e instanceof _e(e).HTMLElement||e instanceof HTMLElement}function be(e){return e?(e.nodeName||"").toLowerCase():null}function we(e){return((ge(e)?e.ownerDocument:e.document)||window.document).documentElement}function xe(e){return he(we(e)).left+ve(e).scrollLeft}function ke(e){return _e(e).getComputedStyle(e)}function De(e){var t=ke(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function Me(e,t,n){void 0===n&&(n=!1);var r,a,i=we(t),o=he(e),s=ye(t),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(s||!s&&!n)&&(("body"!==be(t)||De(i))&&(l=(r=t)!==_e(r)&&ye(r)?{scrollLeft:(a=r).scrollLeft,scrollTop:a.scrollTop}:ve(r)),ye(t)?((c=he(t)).x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=xe(i))),{x:o.left+l.scrollLeft-c.x,y:o.top+l.scrollTop-c.y,width:o.width,height:o.height}}function Se(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function Ce(e){return"html"===be(e)?e:e.assignedSlot||e.parentNode||e.host||we(e)}function Le(e,t){void 0===t&&(t=[]);var n=function e(t){return["html","body","#document"].indexOf(be(t))>=0?t.ownerDocument.body:ye(t)&&De(t)?t:e(Ce(t))}(e),r="body"===be(n),a=_e(n),i=r?[a].concat(a.visualViewport||[],De(n)?n:[]):n,o=t.concat(i);return r?o:o.concat(Le(Ce(i)))}function Te(e){return["table","td","th"].indexOf(be(e))>=0}function Ee(e){if(!ye(e)||"fixed"===ke(e).position)return null;var t=e.offsetParent;if(t){var n=we(t);if("body"===be(t)&&"static"===ke(t).position&&"static"!==ke(n).position)return n}return t}function Oe(e){for(var t=_e(e),n=Ee(e);n&&Te(n)&&"static"===ke(n).position;)n=Ee(n);return n&&"body"===be(n)&&"static"===ke(n).position?t:n||function(e){for(var t=Ce(e);ye(t)&&["html","body"].indexOf(be(t))<0;){var n=ke(t);if("none"!==n.transform||"none"!==n.perspective||n.willChange&&"auto"!==n.willChange)return t;t=t.parentNode}return null}(e)||t}var je="top",Ae="bottom",Pe="right",Ye="left",$e=[je,Ae,Pe,Ye],Ie=$e.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),Ne=[].concat($e,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),ze=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Fe(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(a){n.add(a.name),[].concat(a.requires||[],a.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var a=t.get(r);a&&e(a)}})),r.push(a)}(e)})),r}var Re={placement:"bottom",modifiers:[],strategy:"absolute"};function He(){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 Be(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,a=t.defaultOptions,i=void 0===a?Re:a;return function(e,t,n){void 0===n&&(n=i);var a,o,s={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},Re),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:ge(e)?Le(e):e.contextElement?Le(e.contextElement):[],popper:Le(t)};var a=function(e){var t=Fe(e);return ze.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign(Object.assign(Object.assign({},n),t),{},{options:Object.assign(Object.assign({},n.options),t.options),data:Object.assign(Object.assign({},n.data),t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,s.options.modifiers)));return s.orderedModifiers=a.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,a=e.effect;if("function"==typeof a){var i=a({state:s,name:t,instance:u,options:r});l.push(i||function(){})}})),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(He(t,n)){s.rects={reference:Me(t,Oe(n),"fixed"===s.options.strategy),popper:Se(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var a=s.orderedModifiers[r],i=a.fn,o=a.options,l=void 0===o?{}:o,d=a.name;"function"==typeof i&&(s=i({state:s,options:l,name:d,instance:u})||s)}else s.reset=!1,r=-1}}},update:(a=function(){return new Promise((function(e){u.forceUpdate(),e(s)}))},function(){return o||(o=new Promise((function(e){Promise.resolve().then((function(){o=void 0,e(a())}))}))),o}),destroy:function(){d(),c=!0}};if(!He(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 qe={passive:!0};function Ue(e){return e.split("-")[0]}function Ve(e){return e.split("-")[1]}function We(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ke(e){var t,n=e.reference,r=e.element,a=e.placement,i=a?Ue(a):null,o=a?Ve(a):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case je:t={x:s,y:n.y-r.height};break;case Ae:t={x:s,y:n.y+n.height};break;case Pe:t={x:n.x+n.width,y:l};break;case Ye:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?We(i):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case"start":t[c]=Math.floor(t[c])-Math.floor(n[u]/2-r[u]/2);break;case"end":t[c]=Math.floor(t[c])+Math.ceil(n[u]/2-r[u]/2)}}return t}var Ge={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Je(e){var t,n=e.popper,r=e.popperRect,a=e.placement,i=e.offsets,o=e.position,s=e.gpuAcceleration,l=e.adaptive,c=function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Math.round(t*r)/r||0,y:Math.round(n*r)/r||0}}(i),u=c.x,d=c.y,p=i.hasOwnProperty("x"),f=i.hasOwnProperty("y"),m=Ye,h=je,_=window;if(l){var v=Oe(n);v===_e(n)&&(v=we(n)),a===je&&(h=Ae,d-=v.clientHeight-r.height,d*=s?1:-1),a===Ye&&(m=Pe,u-=v.clientWidth-r.width,u*=s?1:-1)}var g,y=Object.assign({position:o},l&&Ge);return s?Object.assign(Object.assign({},y),{},((g={})[h]=f?"0":"",g[m]=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]=f?d+"px":"",t[m]=p?u+"px":"",t.transform="",t))}var Ze={left:"right",right:"left",bottom:"top",top:"bottom"};function Xe(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ze[e]}))}var Qe={start:"end",end:"start"};function et(e){return e.replace(/start|end/g,(function(e){return Qe[e]}))}function tt(e,t){var n,r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&((n=r)instanceof _e(n).ShadowRoot||n instanceof ShadowRoot)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function nt(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function rt(e,t){return"viewport"===t?nt(function(e){var t=_e(e),n=we(e),r=t.visualViewport,a=n.clientWidth,i=n.clientHeight,o=0,s=0;return r&&(a=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,s=r.offsetTop)),{width:a,height:i,x:o+xe(e),y:s}}(e)):ye(t)?function(e){var t=he(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):nt(function(e){var t=we(e),n=ve(e),r=e.ownerDocument.body,a=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+xe(e),s=-n.scrollTop;return"rtl"===ke(r||t).direction&&(o+=Math.max(t.clientWidth,r?r.clientWidth:0)-a),{width:a,height:i,x:o,y:s}}(we(e)))}function at(e,t,n){var r="clippingParents"===t?function(e){var t=Le(Ce(e)),n=["absolute","fixed"].indexOf(ke(e).position)>=0&&ye(e)?Oe(e):e;return ge(n)?t.filter((function(e){return ge(e)&&tt(e,n)&&"body"!==be(e)})):[]}(e):[].concat(t),a=[].concat(r,[n]),i=a[0],o=a.reduce((function(t,n){var r=rt(e,n);return t.top=Math.max(r.top,t.top),t.right=Math.min(r.right,t.right),t.bottom=Math.min(r.bottom,t.bottom),t.left=Math.max(r.left,t.left),t}),rt(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 it(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function ot(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function st(e,t){void 0===t&&(t={});var n=t,r=n.placement,a=void 0===r?e.placement:r,i=n.boundary,o=void 0===i?"clippingParents":i,s=n.rootBoundary,l=void 0===s?"viewport":s,c=n.elementContext,u=void 0===c?"popper":c,d=n.altBoundary,p=void 0!==d&&d,f=n.padding,m=void 0===f?0:f,h=it("number"!=typeof m?m:ot(m,$e)),_="popper"===u?"reference":"popper",v=e.elements.reference,g=e.rects.popper,y=e.elements[p?_:u],b=at(ge(y)?y:y.contextElement||we(e.elements.popper),o,l),w=he(v),x=Ke({reference:w,element:g,strategy:"absolute",placement:a}),k=nt(Object.assign(Object.assign({},g),x)),D="popper"===u?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("popper"===u&&S){var C=S[a];Object.keys(M).forEach((function(e){var t=[Pe,Ae].indexOf(e)>=0?1:-1,n=[je,Ae].indexOf(e)>=0?"y":"x";M[e]+=C[n]*t}))}return M}function lt(e,t,n){return Math.max(e,Math.min(t,n))}function ct(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 ut(e){return[je,Pe,Ae,Ye].some((function(t){return e[t]>=0}))}var dt=Be({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,i=void 0===a||a,o=r.resize,s=void 0===o||o,l=_e(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,qe)})),s&&l.addEventListener("resize",n.update,qe),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,qe)})),s&&l.removeEventListener("resize",n.update,qe)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ke({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=void 0===r||r,i=n.adaptive,o=void 0===i||i,s={placement:Ue(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign(Object.assign({},t.styles.popper),Je(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),Je(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},a=t.elements[e];ye(a)&&be(a)&&(Object.assign(a.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],a=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});ye(r)&&be(r)&&(Object.assign(r.style,i),Object.keys(a).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=void 0===a?[0,0]:a,o=Ne.reduce((function(e,n){return e[n]=function(e,t,n){var r=Ue(e),a=[Ye,je].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign(Object.assign({},t),{},{placement:e})):n,o=i[0],s=i[1];return o=o||0,s=(s||0)*a,[Ye,Pe].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}(n,t.rects,i),e}),{}),s=o[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=o}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,i=void 0===a||a,o=n.altAxis,s=void 0===o||o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,m=void 0===f||f,h=n.allowedAutoPlacements,_=t.options.placement,v=Ue(_),g=l||(v!==_&&m?function(e){if("auto"===Ue(e))return[];var t=Xe(e);return[et(e),t,et(t)]}(_):[Xe(_)]),y=[_].concat(g).reduce((function(e,n){return e.concat("auto"===Ue(n)?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,a=n.boundary,i=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Ne:l,u=Ve(r),d=u?s?Ie:Ie.filter((function(e){return Ve(e)===u})):$e,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=st(e,{placement:n,boundary:a,rootBoundary:i,padding:o})[Ue(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,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=Ue(S),L="start"===Ve(S),T=[je,Ae].indexOf(C)>=0,E=T?"width":"height",O=st(t,{placement:S,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),j=T?L?Pe:Ye:L?Ae:je;b[E]>w[E]&&(j=Xe(j));var A=Xe(j),P=[];if(i&&P.push(O[C]<=0),s&&P.push(O[j]<=0,O[A]<=0),P.every((function(e){return e}))){D=S,k=!1;break}x.set(S,P)}if(k)for(var Y=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"},$=m?3:1;$>0&&"break"!==Y($);$--);t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,i=void 0===a||a,o=n.altAxis,s=void 0!==o&&o,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,m=n.tetherOffset,h=void 0===m?0:m,_=st(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Ue(t.placement),g=Ve(t.placement),y=!g,b=We(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?je:Ye,L="y"===b?Ae:Pe,T="y"===b?"height":"width",E=x[b],O=x[b]+_[C],j=x[b]-_[L],A=f?-D[T]/2:0,P="start"===g?k[T]:D[T],Y="start"===g?-D[T]:-k[T],$=t.elements.arrow,I=f&&$?Se($):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=N[C],F=N[L],R=lt(0,k[T],I[T]),H=y?k[T]/2-A-R-z-M:P-R-z-M,B=y?-k[T]/2+A+R+F+M:Y+R+F+M,q=t.elements.arrow&&Oe(t.elements.arrow),U=q?"y"===b?q.clientTop||0:q.clientLeft||0:0,V=t.modifiersData.offset?t.modifiersData.offset[t.placement][b]:0,W=x[b]+H-V-U,K=x[b]+B-V,G=lt(f?Math.min(O,W):O,E,f?Math.max(j,K):j);x[b]=G,S[b]=G-E}if(s){var J="x"===b?je:Ye,Z="x"===b?Ae:Pe,X=x[w],Q=lt(X+_[J],X,X-_[Z]);x[w]=Q,S[w]=Q-X}t.modifiersData[r]=S}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,a=n.elements.arrow,i=n.modifiersData.popperOffsets,o=Ue(n.placement),s=We(o),l=[Ye,Pe].indexOf(o)>=0?"height":"width";if(a&&i){var c=n.modifiersData[r+"#persistent"].padding,u=Se(a),d="y"===s?je:Ye,p="y"===s?Ae:Pe,f=n.rects.reference[l]+n.rects.reference[s]-i[s]-n.rects.popper[l],m=i[s]-n.rects.reference[s],h=Oe(a),_=h?"y"===s?h.clientHeight||0:h.clientWidth||0:0,v=f/2-m/2,g=c[d],y=_-u[l]-c[p],b=_/2-u[l]/2+v,w=lt(g,b,y),x=s;n.modifiersData[r]=((t={})[x]=w,t.centerOffset=w-b,t)}},effect:function(e){var t=e.state,n=e.options,r=e.name,a=n.element,i=void 0===a?"[data-popper-arrow]":a,o=n.padding,s=void 0===o?0:o;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&tt(t.elements.popper,i)&&(t.elements.arrow=i,t.modifiersData[r+"#persistent"]={padding:it("number"!=typeof s?s:ot(s,$e))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,o=st(t,{elementContext:"reference"}),s=st(t,{altBoundary:!0}),l=ct(o,r),c=ct(s,a,i),u=ut(l),d=ut(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})}}]}),pt=_.classes,ft=_.variants,mt=q({name:"SwDrodown",components:{},props:{variant:{type:String,default:null},variants:{type:Object,default:function(){return ft}},classes:{type:Object,default:function(){return pt}},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.variants);return l(l({},this.classes),e)}},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.$children.forEach((function(t){t.$children.length&&(e.children=t.$children)})),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=dt(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,ht=_.classes,_t=q({name:"SwDropdownItem",components:{SwCustomTag:Z},inheritAttrs:!1,install:function(e,t){N(e,t,this)},props:{tagName:{type:String,required:!1,default:"div"}},data:function(){return{theme:ht}},computed:{getDropdownItemStyle:function(){var e=this.classes||{};return l(l({},this.theme),e)}}},(function(){var e=this.$createElement;return(this._self._c||e)("sw-custom-tag",this._g(this._b({class:this.getDropdownItemStyle.item,attrs:{tag:this.tagName}},"sw-custom-tag",this.$attrs,!1),this.$listeners),[this._t("default")],2)}),[],!1,null,null,null).exports,vt=_.classes,gt=q({name:"SwDropdownDivider",props:{variants:{type:Object,default:function(){return null}}},data:function(){return{theme:vt}},computed:{getDropdownDividerStyle:function(){var e=this.classes||{};return l(l({},this.theme),e)}}},(function(){var e=this.$createElement;return(this._self._c||e)("div",{class:this.getDropdownDividerStyle.divider})}),[],!1,null,null,null).exports,yt=g.classes,bt=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 yt}}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.classes.container},[n("div",{class:e.classes.slotContainer},[e._t("default")],2),n("div",{class:e.classes.titleContainer},[n("label",{class:e.classes.title},[e._v(e._s(e.title))])]),n("div",{class:e.classes.descriptionContainer},[n("label",{class:e.classes.description},[e._v(" "+e._s(e.description)+" ")])]),n("div",{class:e.classes.actionsContainer},[e._t("actions")],2)])}),[],!1,null,null,null).exports,wt=y.classes,xt=y.variants,kt=q({name:"SwFilterWrapper",install:function(e,t){N(e,t,this)},props:{isShow:{type:Boolean,default:!1},classes:{type:Object,default:function(){return wt}},variant:{type:String,default:null},variants:{type:Object,default:function(){return xt}}},computed:{filterWrapperStyle:function(){var e=F(this.variant,this.variants);return l(l({},this.classes),e)}}},(function(){var e=this.$createElement,t=this._self._c||e;return t("transition",{attrs:{name:"fade"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:this.isShow,expression:"isShow"}],class:this.filterWrapperStyle.container},[this._t("filter-header"),t("div",{class:this.filterWrapperStyle.body},[this._t("default")],2)],2)])}),[],!1,null,null,null).exports,Dt=b.variants,Mt=b.classes,St=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 Mt}},value:{type:[String,Number,File],default:""},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},variants:{type:Object,default:function(){return Dt}},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.variants)),this.invalid&&(e=F("danger",this.variants)),this.disabled&&(e=F("disabled",this.variants)),l(l({},this.classes),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}},watch:{value:function(){this.inputValue=this.value},focus:function(){this.focusInput()}},mounted:function(){this.focusInput()},methods:{focusInput:function(){this.focus&&this.$refs.baseInput.focus()},handleInput:function(){this.$emit("input",this.inputValue)},handleChange:function(){this.$emit("change",this.inputValue)},handleKeyupEnter:function(){this.$emit("keyup",this.inputValue)},handleKeyDownEnter:function(e){this.$emit("keydown",e,this.inputValue)},handleFocusOut:function(){this.isFocused=!1,this.$emit("blur",this.inputValue)},handleFocus:function(){this.isFocused=!0,this.$emit("handleFocus",this.inputValue)},handleEnter:function(){this.$emit("handleEnter",this.inputValue)}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.containerStyle},[e.hasLeftIconSlot?n("div",{class:e.inputStyle.leftIconContainer},[e._t("leftIcon")],2):e._e(),e.prefix?n("p",{class:e.inputStyle.prefixContainer},[n("span",{class:e.inputStyle.prefix},[e._v(e._s(e.prefix))])]):e._e(),"checkbox"===e.$attrs.type?n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.inputValue,expression:"inputValue"}],ref:"baseInput",class:e.getBaseInputStyle,attrs:{disabled:e.disabled,type:"checkbox"},domProps:{value:e.value,checked:Array.isArray(e.inputValue)?e._i(e.inputValue,e.value)>-1:e.inputValue},on:{input:e.handleInput,change:[function(t){var n=e.inputValue,r=t.target,a=!!r.checked;if(Array.isArray(n)){var i=e.value,o=e._i(n,i);r.checked?o<0&&(e.inputValue=n.concat([i])):o>-1&&(e.inputValue=n.slice(0,o).concat(n.slice(o+1)))}else e.inputValue=a},e.handleChange],keyup:[e.handleKeyupEnter,function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}],keydown:e.handleKeyDownEnter,blur:e.handleFocusOut,focus:e.handleFocus}},"input",e.$attrs,!1)):"radio"===e.$attrs.type?n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.inputValue,expression:"inputValue"}],ref:"baseInput",class:e.getBaseInputStyle,attrs:{disabled:e.disabled,type:"radio"},domProps:{value:e.value,checked:e._q(e.inputValue,e.value)},on:{input:e.handleInput,change:[function(t){e.inputValue=e.value},e.handleChange],keyup:[e.handleKeyupEnter,function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}],keydown:e.handleKeyDownEnter,blur:e.handleFocusOut,focus:e.handleFocus}},"input",e.$attrs,!1)):n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.inputValue,expression:"inputValue"}],ref:"baseInput",class:e.getBaseInputStyle,attrs:{disabled:e.disabled,type:e.$attrs.type},domProps:{value:e.value,value:e.inputValue},on:{input:[function(t){t.target.composing||(e.inputValue=t.target.value)},e.handleInput],change:e.handleChange,keyup:[e.handleKeyupEnter,function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}],keydown:e.handleKeyDownEnter,blur:e.handleFocusOut,focus:e.handleFocus}},"input",e.$attrs,!1)),e.hasRightIconSlot?n("div",{class:e.inputStyle.rightIconContainer},[e._t("rightIcon")],2):e._e()])}),[],!1,null,null,null).exports,Ct=x.variants,Lt=q({name:"SwLabel",install:function(e,t){N(e,t,this)},props:{classes:{type:String,default:x.classes},variants:{type:Object,default:function(){return Ct}},variant:{type:String,default:""}},computed:{labelStyle:function(){var e=null;return this.variant&&(e=F(this.variant,this.variants)),e||this.classes}}},(function(){var e=this.$createElement;return(this._self._c||e)("label",{class:this.labelStyle},[this._t("default")],2)}),[],!1,null,null,null).exports,Tt=w.classes,Et=w.variants,Ot=q({name:"SwInputGroup",install:function(e,t){N(e,t,this)},components:{SwLabel:Lt},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 Tt}},variants:{type:Object,default:function(){return Et}},variant:{type:String,default:""}},computed:{inputGroupStyle:function(){var e=F(this.variant,this.variants);return l(l({},this.classes),e)}}},(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},[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._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,jt=k.classes,At=k.variants,Pt=q({name:"SwList",install:function(e,t){N(e,t,this)},props:{classes:{type:Object,default:function(){return jt}},variants:{type:Object,default:function(){return At}},variant:{type:String,required:!1,default:""}},data:function(){return{items:[]}},computed:{listStyle:function(){this.setChilds();var e=F(this.variant,this.variants);return l(l({},this.classes),e)}},mounted:function(){this.items=this.$children,this.setChilds()},methods:{setChilds:function(){var e=this;this.items.forEach((function(t){t.classes=e.classes,t.variants=e.variants,t.variant=e.variant,t.isLoading=!1}))}}},(function(){var e=this.$createElement;return(this._self._c||e)("div",{class:this.listStyle.container},[this._t("default")],2)}),[],!1,null,null,null).exports,Yt=q({name:"SwListItem",install:function(e,t){N(e,t,this)},components:{SwCustomTag:Z},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,$t=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,It=D.classes,Nt=D.variants,zt=q({install:function(e,t){N(e,t,this)},props:{classes:{type:Object,default:function(){return It}},isOpen:{type:Boolean,default:!1,validator:function(e){return-1!==[!0,!1].indexOf(e)}},variants:{type:Object,default:function(){return Nt}},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.variants);return l(l({},this.classes),e)}},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,Ft=n("716b"),Rt=M.variants,Ht=M.classes,Bt=q({name:"SwMoney",install:function(e,t){N(e,t,this)},components:{Money:Ft.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 Ht}},variants:{type:Object,default:function(){return Rt}},variant:{type:String,default:null}},data:function(){return{inputValue:this.value}},computed:{baseStyle:function(){var e=this.classes;return this.variant&&(e=F(this.variant,this.variants)),this.invalid&&(e=F("danger",this.variants)),this.disabled&&(e=F("disabled",this.variants)),e||this.classes}},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,qt=S.classes,Ut=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 qt}}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.classes.container},[n("div",[n("h3",{class:e.classes.pageTitle},[e._v(" "+e._s(e.title)+" ")]),e._t("breadcrumbs")],2),n("div",{class:e.classes.actionsContainer},[e._t("actions")],2)])}),[],!1,null,null,null).exports,Vt=C.classes,Wt=q({name:"SwPopup",install:function(e,t){N(e,t,this)},props:{classes:{type:Object,default:function(){return Vt}},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.classes.above},isAbove:function(){return"above"===this.openDirection||"top"===this.openDirection||"below"!==this.openDirection&&"bottom"!==this.openDirection&&"above"===this.preferredOpenDirection},baseStyle:function(){var e=[this.classes.base];return this.isAbove&&e.push(this.classes.above),e}},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.classes.container},[n("div",{class:e.classes.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,Kt=n("92c3"),Gt=q({components:{vueDropzone:n.n(Kt).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-no-wrap dz-filename">\n <span class="w-full" data-dz-name=""></span>\n </div>\n <div class="w-full mb-2 text-xs text-center dz-size">\n <span class="w-full" data-dz-size=""></span>\n </div>\n <div class="relative w-20 h-1 overflow-hidden scale-100 rounded opacity-100 pointer-events-none bg-primary-200 dz-progress">\n <span\n class="absolute inset-0 w-0 bg-gray-700 dz-upload bg-primary-500"\n data-dz-uploadprogress=""\n style="width: 100%;"\n ></span>\n </div>\n </div>\n '},thumbnail:function(e,t){var n,r,a,i;if(e.previewElement){for(e.previewElement.classList.remove("dz-file-preview"),n=0,r=(a=e.previewElement.querySelectorAll("[data-dz-thumbnail-bg]")).length;n<r;n++)(i=a[n]).alt=e.name,i.style.width=this.options.thumbnailWidth+"px",i.style.height=this.options.thumbnailHeight+"px",i.style["object-fit"]="contain",i.style.backgroundImage='url("'+t+'")';return setTimeout((function(){return e.previewElement.classList.add("dz-image-preview")}),1)}},uploadprogress:function(e,t){if(e.previewElement){var n=e.previewElement.querySelector("[data-dz-uploadprogress]");n.style.width=t+"%",100==t&&(n.style.width="0%")}}}},(function(){var e=this.$createElement;return(this._self._c||e)("vue-dropzone",this._g(this._b({ref:"myVueDropzone",staticClass:"p-10 border-2 border-dashed",attrs:{options:this.getOptions,"accepted-files":"application/pdf","use-custom-slot":!0},on:{"vdropzone-thumbnail":this.thumbnail}},"vue-dropzone",this.$attrs,!1),this.$listeners))}),[],!1,null,null,null).exports,Jt=L.classes,Zt=L.variants,Xt=L.sizes,Qt=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 Jt}},variants:{type:Object,default:function(){return Zt}},sizes:{type:Object,default:function(){return Xt}},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.variants);return l(l({},this.classes),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}},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,en=T.classes,tn=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 en}}},data:function(){return{id:null,checkValue:this.value}},computed:{uniqueId:function(){return"_"+Math.random().toString(36).substr(2,9)}},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.classes.container},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.checkValue,expression:"checkValue"}],class:e.classes.switch,attrs:{id:e.uniqueId,type:"checkbox",disabled:e.disabled},domProps:{checked:Array.isArray(e.checkValue)?e._i(e.checkValue,null)>-1:e.checkValue},on:{input:e.handleInput,change:[function(t){var n=e.checkValue,r=t.target,a=!!r.checked;if(Array.isArray(n)){var i=e._i(n,null);r.checked?i<0&&(e.checkValue=n.concat([null])):i>-1&&(e.checkValue=n.slice(0,i).concat(n.slice(i+1)))}else e.checkValue=a},e.handleChange],keyup:e.handleKeyupEnter,blur:e.handleFocusOut}}),n("label",{class:e.classes.label,attrs:{for:e.uniqueId}},[n("span",{staticClass:"switch-circle"})])])}),[],!1,null,null,null).exports,nn=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.$createElement;return(this._self._c||e)("div",{directives:[{name:"show",rawName:"v-show",value:this.isActive,expression:"isActive"}]},[this._t("default")],2)}),[],!1,null,null,null).exports,rn=(n("7db0"),n("d81d"),E.classes),an=q({name:"SwTabs",install:function(e,t){N(e,t,this)},props:{classes:{type:Object,default:function(){return rn}},activeTab:{type:String,default:null}},data:function(){return{tabs:[],currentTab:null}},computed:{tabsContailerStyle:function(){return[this.classes.tabNavContainer]}},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.tabsContailerStyle},e._l(e.tabs,(function(t,r){return n("li",{key:r,class:t.isActive?e.classes.tabNavItemActive:e.classes.tabNavItem,attrs:{"aria-selected":t.isActive},on:{click:function(n){return e.setTab(t)}}},[e._v(" "+e._s(t.title)+" ")])})),0),e._t("default")],2)}),[],!1,null,null,null).exports,on=O.variants,sn=q({name:"SwTextarea",inheritAttrs:!1,install:function(e,t){N(e,t,this)},props:{classes:{type:String,default:O.classes},variant:{type:String,default:null},variants:{type:Object,default:function(){return on}},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.variants)),this.invalid&&(e=F("danger",this.variants)),this.disabled&&(e=F("disabled",this.variants)),e||this.classes}}},(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,ln=j.classes,cn=j.variants,un=q({name:"SwTransition",install:function(e,t){N(e,t,this)},props:{variant:{type:String,default:null},variants:{type:Object,default:function(){return cn}},classes:{type:Object,default:function(){return ln}}},computed:{transitionStyle:function(){var e=F(this.variant,this.variants);return l(l({},this.classes),e)}}},(function(){var e=this.$createElement;return(this._self._c||e)("transition",{attrs:{"enter-active-class":this.transitionStyle.enterActive,"leave-active-class":this.transitionStyle.leave,"enter-class":this.transitionStyle.enter,"enter-to-class":this.transitionStyle.enterTo,"leave-class":this.transitionStyle.leave,"leave-to-class":this.transitionStyle.leaveTo}},[this._t("default")],2)}),[],!1,null,null,null).exports,dn=n("5313"),pn=n("304a"),fn=n("0ac0"),mn={};if("undefined"!=typeof navigator&&"undefined"!=typeof document){var hn=/Edge\/(\d+)/.exec(navigator.userAgent),_n=/MSIE \d/.test(navigator.userAgent),vn=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);mn.mac=/Mac/.test(navigator.platform);var gn=mn.ie=!!(_n||vn||hn);mn.ie_version=_n?document.documentMode||6:vn?+vn[1]:hn?+hn[1]:null,mn.gecko=!gn&&/gecko\/(\d+)/i.test(navigator.userAgent),mn.gecko_version=mn.gecko&&+(/Firefox\/(\d+)/.exec(navigator.userAgent)||[0,0])[1];var yn=!gn&&/Chrome\/(\d+)/.exec(navigator.userAgent);mn.chrome=!!yn,mn.chrome_version=yn&&+yn[1],mn.ios=!gn&&/AppleWebKit/.test(navigator.userAgent)&&/Mobile\/\w+/.test(navigator.userAgent),mn.android=/Android \d/.test(navigator.userAgent),mn.webkit="webkitFontSmoothing"in document.documentElement.style,mn.safari=/Apple Computer/.test(navigator.vendor),mn.webkit_version=mn.webkit&&+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]}var bn=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},wn=function(e){var t=e.parentNode;return t&&11==t.nodeType?t.host:t},xn=function(e,t,n){var r=document.createRange();return r.setEnd(e,null==n?e.nodeValue.length:n),r.setStart(e,t||0),r},kn=function(e,t,n,r){return n&&(Mn(e,t,n,r,-1)||Mn(e,t,n,r,1))},Dn=/^(img|br|input|textarea|hr)$/i;function Mn(e,t,n,r,a){for(;;){if(e==n&&t==r)return!0;if(t==(a<0?0:Sn(e))){var i=e.parentNode;if(1!=i.nodeType||Cn(e)||Dn.test(e.nodeName)||"false"==e.contentEditable)return!1;t=bn(e)+(a<0?0:1),e=i}else{if(1!=e.nodeType)return!1;if("false"==(e=e.childNodes[t+(a<0?-1:0)]).contentEditable)return!1;t=a<0?Sn(e):0}}}function Sn(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Cn(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 Ln=function(e){var t=e.isCollapsed;return t&&mn.chrome&&e.rangeCount&&!e.getRangeAt(0).collapsed&&(t=!1),t};function Tn(e,t){var n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function En(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function On(e,t){return"number"==typeof e?e:e[t]}function jn(e){var t=e.getBoundingClientRect();return{left:t.left,right:t.left+e.clientWidth,top:t.top,bottom:t.top+e.clientHeight}}function An(e,t,n){for(var r=e.someProp("scrollThreshold")||0,a=e.someProp("scrollMargin")||5,i=e.dom.ownerDocument,o=n||e.dom;o;o=wn(o))if(1==o.nodeType){var s=o==i.body||1!=o.nodeType,l=s?En(i):jn(o),c=0,u=0;if(t.top<l.top+On(r,"top")?u=-(l.top-t.top+On(a,"top")):t.bottom>l.bottom-On(r,"bottom")&&(u=t.bottom-l.bottom+On(a,"bottom")),t.left<l.left+On(r,"left")?c=-(l.left-t.left+On(a,"left")):t.right>l.right-On(r,"right")&&(c=t.right-l.right+On(a,"right")),c||u)if(s)i.defaultView.scrollBy(c,u);else{var d=o.scrollLeft,p=o.scrollTop;u&&(o.scrollTop+=u),c&&(o.scrollLeft+=c);var f=o.scrollLeft-d,m=o.scrollTop-p;t={left:t.left-f,top:t.top-m,right:t.right-f,bottom:t.bottom-m}}if(s)break}}function Pn(e){for(var t=[],n=e.ownerDocument;e&&(t.push({dom:e,top:e.scrollTop,left:e.scrollLeft}),e!=n);e=wn(e));return t}function Yn(e,t){for(var n=0;n<e.length;n++){var r=e[n],a=r.dom,i=r.top,o=r.left;a.scrollTop!=i+t&&(a.scrollTop=i+t),a.scrollLeft!=o&&(a.scrollLeft=o)}}var $n=null;function In(e,t){for(var n,r,a=2e8,i=0,o=t.top,s=t.top,l=e.firstChild,c=0;l;l=l.nextSibling,c++){var u=void 0;if(1==l.nodeType)u=l.getClientRects();else{if(3!=l.nodeType)continue;u=xn(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 f=p.left>t.left?p.left-t.left:p.right<t.left?t.left-p.right:0;if(f<a){n=l,a=f,r=f&&3==n.nodeType?{left:p.right<t.left?p.right:p.left,top:t.top}:t,1==l.nodeType&&f&&(i=c+(t.left>=(p.left+p.right)/2?1:0));continue}}!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(i=c+1)}}return n&&3==n.nodeType?function(e,t){for(var n=e.nodeValue.length,r=document.createRange(),a=0;a<n;a++){r.setEnd(e,a+1),r.setStart(e,a);var i=Fn(r,1);if(i.top!=i.bottom&&Nn(t,i))return{node:e,offset:a+(t.left>=(i.left+i.right)/2?1:0)}}return{node:e,offset:0}}(n,r):!n||a&&1==n.nodeType?{node:e,offset:i}:In(n,r)}function Nn(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function zn(e,t){var n,r,a,i,o=e.root;if(o.caretPositionFromPoint)try{var s=o.caretPositionFromPoint(t.left,t.top);s&&(a=(n=s).offsetNode,i=n.offset)}catch(e){}if(!a&&o.caretRangeFromPoint){var l=o.caretRangeFromPoint(t.left,t.top);l&&(a=(r=l).startContainer,i=r.startOffset)}var c,u=o.elementFromPoint(t.left,t.top+1);if(!u||!e.dom.contains(1!=u.nodeType?u.parentNode:u)){var d=e.dom.getBoundingClientRect();if(!Nn(t,d))return null;if(!(u=function e(t,n,r){var a=t.childNodes.length;if(a&&r.top<r.bottom)for(var i=Math.max(0,Math.min(a-1,Math.floor(a*(n.top-r.top)/(r.bottom-r.top))-2)),o=i;;){var s=t.childNodes[o];if(1==s.nodeType)for(var l=s.getClientRects(),c=0;c<l.length;c++){var u=l[c];if(Nn(n,u))return e(s,n,u)}if((o=(o+1)%a)==i)break}return t}(e.dom,t,d)))return null}if(mn.safari&&u.draggable&&(a=i=null),u=function(e,t){var n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}(u,t),a){if(mn.gecko&&1==a.nodeType&&(i=Math.min(i,a.childNodes.length))<a.childNodes.length){var p,f=a.childNodes[i];"IMG"==f.nodeName&&(p=f.getBoundingClientRect()).right<=t.left&&p.bottom>t.top&&i++}a==e.dom&&i==a.childNodes.length-1&&1==a.lastChild.nodeType&&t.top>a.lastChild.getBoundingClientRect().bottom?c=e.state.doc.content.size:0!=i&&1==a.nodeType&&"BR"==a.childNodes[i-1].nodeName||(c=function(e,t,n,r){for(var a=-1,i=t;i!=e.dom;){var o=e.docView.nearestDesc(i,!0);if(!o)return null;if(o.node.isBlock&&o.parent){var s=o.dom.getBoundingClientRect();if(s.left>r.left||s.top>r.top)a=o.posBefore;else{if(!(s.right<r.left||s.bottom<r.top))break;a=o.posAfter}}i=o.dom.parentNode}return a>-1?a:e.docView.posFromDOM(t,n)}(e,a,i,t))}null==c&&(c=function(e,t,n){var r=In(t,n),a=r.node,i=r.offset,o=-1;if(1==a.nodeType&&!a.firstChild){var s=a.getBoundingClientRect();o=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return e.docView.posFromDOM(a,i,o)}(e,u,t));var m=e.docView.nearestDesc(u,!0);return{pos:c,inside:m?m.posAtStart-m.border:-1}}function Fn(e,t){var n=e.getClientRects();return n.length?n[t<0?0:n.length-1]:e.getBoundingClientRect()}function Rn(e,t){var n=e.docView.domFromPos(t),r=n.node,a=n.offset;if(3==r.nodeType&&(mn.webkit||mn.gecko)){var i=Fn(xn(r,a,a),0);if(mn.gecko&&a&&/\s/.test(r.nodeValue[a-1])&&a<r.nodeValue.length){var o=Fn(xn(r,a-1,a-1),-1);if(o.top==i.top){var s=Fn(xn(r,a,a+1),-1);if(s.top!=i.top)return Hn(s,s.left<o.left)}}return i}if(1==r.nodeType&&!e.state.doc.resolve(t).parent.inlineContent){var l,c=!0;if(a<r.childNodes.length){var u=r.childNodes[a];1==u.nodeType&&(l=u.getBoundingClientRect())}if(!l&&a){var d=r.childNodes[a-1];1==d.nodeType&&(l=d.getBoundingClientRect(),c=!1)}return function(e,t){if(0==e.height)return e;var n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}(l||r.getBoundingClientRect(),c)}for(var p=-1;p<2;p+=2)if(p<0&&a){var f=void 0,m=3==r.nodeType?xn(r,a-1,a):3==(f=r.childNodes[a-1]).nodeType?xn(f):1==f.nodeType&&"BR"!=f.nodeName?f:null;if(m){var h=Fn(m,1);if(h.top<h.bottom)return Hn(h,!1)}}else if(p>0&&a<Sn(r)){var _=void 0,v=3==r.nodeType?xn(r,a,a+1):3==(_=r.childNodes[a]).nodeType?xn(_):1==_.nodeType?_:null;if(v){var g=Fn(v,-1);if(g.top<g.bottom)return Hn(g,!0)}}return Hn(Fn(3==r.nodeType?xn(r):r,0),!1)}function Hn(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 Bn(e,t,n){var r=e.state,a=e.root.activeElement;r!=t&&e.updateState(t),a!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),a!=e.dom&&a&&a.focus()}}var qn=/[\u0590-\u08ac]/,Un=null,Vn=null,Wn=!1;function Kn(e,t,n){return Un==t&&Vn==n?Wn:(Un=t,Vn=n,Wn="up"==n||"down"==n?function(e,t,n){var r=t.selection,a="up"==n?r.$anchor.min(r.$head):r.$anchor.max(r.$head);return Bn(e,t,(function(){for(var t=e.docView.domFromPos(a.pos).node;;){var r=e.docView.nearestDesc(t,!0);if(!r)break;if(r.node.isBlock){t=r.dom;break}t=r.dom.parentNode}for(var i=Rn(e,a.pos),o=t.firstChild;o;o=o.nextSibling){var s=void 0;if(1==o.nodeType)s=o.getClientRects();else{if(3!=o.nodeType)continue;s=xn(o,0,o.nodeValue.length).getClientRects()}for(var l=0;l<s.length;l++){var c=s[l];if(c.bottom>c.top&&("up"==n?c.bottom<i.top+1:c.top>i.bottom-1))return!1}}return!0}))}(e,t,n):function(e,t,n){var r=t.selection.$head;if(!r.parent.isTextblock)return!1;var a=r.parentOffset,i=!a,o=a==r.parent.content.size,s=getSelection();return qn.test(r.parent.textContent)&&s.modify?Bn(e,t,(function(){var t=s.getRangeAt(0),a=s.focusNode,i=s.focusOffset,o=s.caretBidiLevel;s.modify("move",n,"character");var l=!(r.depth?e.docView.domAfterPos(r.before()):e.dom).contains(1==s.focusNode.nodeType?s.focusNode:s.focusNode.parentNode)||a==s.focusNode&&i==s.focusOffset;return s.removeAllRanges(),s.addRange(t),null!=o&&(s.caretBidiLevel=o),l})):"left"==n||"backward"==n?i:o}(e,t,n))}var Gn=function(e,t,n,r){this.parent=e,this.children=t,this.dom=n,n.pmViewDesc=this,this.contentDOM=r,this.dirty=0},Jn={beforePosition:{configurable:!0},size:{configurable:!0},border:{configurable:!0},posBefore:{configurable:!0},posAtStart:{configurable:!0},posAfter:{configurable:!0},posAtEnd:{configurable:!0},contentLost:{configurable:!0}};Gn.prototype.matchesWidget=function(){return!1},Gn.prototype.matchesMark=function(){return!1},Gn.prototype.matchesNode=function(){return!1},Gn.prototype.matchesHack=function(){return!1},Jn.beforePosition.get=function(){return!1},Gn.prototype.parseRule=function(){return null},Gn.prototype.stopEvent=function(){return!1},Jn.size.get=function(){for(var e=0,t=0;t<this.children.length;t++)e+=this.children[t].size;return e},Jn.border.get=function(){return 0},Gn.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()},Gn.prototype.posBeforeChild=function(e){for(var t=0,n=this.posAtStart;t<this.children.length;t++){var r=this.children[t];if(r==e)return n;n+=r.size}},Jn.posBefore.get=function(){return this.parent.posBeforeChild(this)},Jn.posAtStart.get=function(){return this.parent?this.parent.posBeforeChild(this)+this.border:0},Jn.posAfter.get=function(){return this.posBefore+this.size},Jn.posAtEnd.get=function(){return this.posAtStart+this.size-2*this.border},Gn.prototype.localPosFromDOM=function(e,t,n){if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode)){if(n<0){var r,a;if(e==this.contentDOM)r=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;r=e.previousSibling}for(;r&&(!(a=r.pmViewDesc)||a.parent!=this);)r=r.previousSibling;return r?this.posBeforeChild(a)+a.size:this.posAtStart}var i,o;if(e==this.contentDOM)i=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&(!(o=i.pmViewDesc)||o.parent!=this);)i=i.nextSibling;return i?this.posBeforeChild(o):this.posAtEnd}var s;if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))s=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(var l=e;;l=l.parentNode){if(l==this.dom){s=!1;break}if(l.parentNode.firstChild!=l)break}if(null==s&&t==e.childNodes.length)for(var c=e;;c=c.parentNode){if(c==this.dom){s=!0;break}if(c.parentNode.lastChild!=c)break}}return(null==s?n>0:s)?this.posAtEnd:this.posAtStart},Gn.prototype.nearestDesc=function(e,t){for(var n=!0,r=e;r;r=r.parentNode){var a=this.getDesc(r);if(a&&(!t||a.node)){if(!n||!a.nodeDOM||(1==a.nodeDOM.nodeType?a.nodeDOM.contains(1==e.nodeType?e:e.parentNode):a.nodeDOM==e))return a;n=!1}}},Gn.prototype.getDesc=function(e){for(var t=e.pmViewDesc,n=t;n;n=n.parent)if(n==this)return t},Gn.prototype.posFromDOM=function(e,t,n){for(var r=e;r;r=r.parentNode){var a=this.getDesc(r);if(a)return a.localPosFromDOM(e,t,n)}return-1},Gn.prototype.descAt=function(e){for(var t=0,n=0;t<this.children.length;t++){var r=this.children[t],a=n+r.size;if(n==e&&a!=n){for(;!r.border&&r.children.length;)r=r.children[0];return r}if(e<a)return r.descAt(e-n-r.border);n=a}},Gn.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:bn(this.children[n].dom)}}if(n==this.children.length)throw new Error("Invalid position "+e);var r=this.children[n],a=t+r.size;if(e<a)return r.domFromPos(e-t-r.border);t=a}},Gn.prototype.parseRange=function(e,t,n){if(void 0===n&&(n=0),0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};for(var r=-1,a=-1,i=n,o=0;;o++){var s=this.children[o],l=i+s.size;if(-1==r&&e<=l){var c=i+s.border;if(e>=c&&t<=l-s.border&&s.node&&s.contentDOM&&this.contentDOM.contains(s.contentDOM))return s.parseRange(e,t,c);e=i;for(var u=o;u>0;u--){var d=this.children[u-1];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(1)){r=bn(d.dom)+1;break}e-=d.size}-1==r&&(r=0)}if(r>-1&&(l>t||o==this.children.length-1)){t=l;for(var p=o+1;p<this.children.length;p++){var f=this.children[p];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(-1)){a=bn(f.dom);break}t+=f.size}-1==a&&(a=this.contentDOM.childNodes.length);break}i=l}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:a}},Gn.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)},Gn.prototype.domAfterPos=function(e){var t=this.domFromPos(e),n=t.node,r=t.offset;if(1!=n.nodeType||r==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[r]},Gn.prototype.setSelection=function(e,t,n,r){for(var a=Math.min(e,t),i=Math.max(e,t),o=0,s=0;o<this.children.length;o++){var l=this.children[o],c=s+l.size;if(a>s&&i<c)return l.setSelection(e-s-l.border,t-s-l.border,n,r);s=c}var u=this.domFromPos(e),d=this.domFromPos(t),p=n.getSelection(),f=!1;if((mn.gecko||mn.safari)&&e==t){var m=u.node.childNodes[u.offset-1];f=m&&("BR"==m.nodeName||"false"==m.contentEditable)}if(r||f&&mn.safari||!kn(u.node,u.offset,p.anchorNode,p.anchorOffset)||!kn(d.node,d.offset,p.focusNode,p.focusOffset)){var h=!1;if((p.extend||e==t)&&!f){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)}}},Gn.prototype.ignoreMutation=function(e){return!this.contentDOM&&"selection"!=e.type},Jn.contentLost.get=function(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)},Gn.prototype.markDirty=function(e,t){for(var n=0,r=0;r<this.children.length;r++){var a=this.children[r],i=n+a.size;if(n==i?e<=i&&t>=n:e<i&&t>n){var o=n+a.border,s=i-a.border;if(e>=o&&t<=s)return this.dirty=e==n||t==i?2:1,void(e!=o||t!=s||!a.contentLost&&a.dom.parentNode==this.contentDOM?a.markDirty(e-o,t-o):a.dirty=3);a.dirty=3}n=i}this.dirty=2},Gn.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(Gn.prototype,Jn);var Zn=[],Xn=function(e){function t(t,n,r,a){var i,o=n.type.toDOM;if("function"==typeof o&&(o=o(r,(function(){return i?i.parent?i.parent.posBeforeChild(i):void 0:a}))),!n.type.spec.raw){if(1!=o.nodeType){var s=document.createElement("span");s.appendChild(o),o=s}o.contentEditable=!1,o.classList.add("ProseMirror-widget")}e.call(this,t,Zn,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}(Gn),Qn=function(e){function t(t,n,r,a){e.call(this,t,Zn,n,null),this.textDOM=r,this.text=a}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={size:{configurable:!0}};return n.size.get=function(){return this.text.length},t.prototype.localPosFromDOM=function(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t},t.prototype.domFromPos=function(e){return{node:this.textDOM,offset:e}},t.prototype.ignoreMutation=function(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue},Object.defineProperties(t.prototype,n),t}(Gn),er=function(e){function t(t,n,r,a){e.call(this,t,[],r,a),this.mark=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.create=function(e,n,r,a){var i=a.nodeViews[n.type.name],o=i&&i(n,a,r);return o&&o.dom||(o=pn.DOMSerializer.renderSpec(document,n.type.spec.toDOM(n,r))),new t(e,n,o.dom,o.contentDOM||o.dom)},t.prototype.parseRule=function(){return{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}},t.prototype.matchesMark=function(e){return 3!=this.dirty&&this.mark.eq(e)},t.prototype.markDirty=function(t,n){if(e.prototype.markDirty.call(this,t,n),0!=this.dirty){for(var r=this.parent;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=0}},t.prototype.slice=function(e,n,r){var a=t.create(this.parent,this.mark,!0,r),i=this.children,o=this.size;n<o&&(i=_r(i,n,o,r)),e>0&&(i=_r(i,0,e,r));for(var s=0;s<i.length;s++)i[s].parent=a;return a.children=i,a},t}(Gn),tr=function(e){function t(t,n,r,a,i,o,s,l,c){e.call(this,t,n.isLeaf?Zn:[],i,o),this.nodeDOM=s,this.node=n,this.outerDeco=r,this.innerDeco=a,o&&this.updateChildren(l,c)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={size:{configurable:!0},border:{configurable:!0}};return t.create=function(e,n,r,a,i,o){var s,l,c=i.nodeViews[n.type.name],u=c&&c(n,i,(function(){return l?l.parent?l.parent.posBeforeChild(l):void 0:o}),r),d=u&&u.dom,p=u&&u.contentDOM;if(n.isText)if(d){if(3!=d.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else d=document.createTextNode(n.text);else d||(d=(s=pn.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 f=d;return d=dr(d,r,n),u?l=new ir(e,n,r,a,d,p,f,u,i,o+1):n.isText?new rr(e,n,r,a,d,f,i):new t(e,n,r,a,d,p,f,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?pn.Fragment.empty:e.node.content},t},t.prototype.matchesNode=function(e,t,n){return 0==this.dirty&&e.eq(this.node)&&pr(t,this.outerDeco)&&n.eq(this.innerDeco)},n.size.get=function(){return this.node.nodeSize},n.border.get=function(){return this.node.isLeaf?0:1},t.prototype.updateChildren=function(e,t){var n=this,r=this.node.inlineContent,a=t,i=r&&e.composing&&this.localCompositionNode(e,t),o=new mr(this,i&&i.node);!function(e,t,n,r){var a=t.locals(e),i=0;if(0!=a.length)for(var o=0,s=[],l=null,c=0;;){if(o<a.length&&a[o].to==i){for(var u=a[o++],d=void 0;o<a.length&&a[o].to==i;)(d||(d=[u])).push(a[o++]);if(d){d.sort(hr);for(var p=0;p<d.length;p++)n(d[p],c,!!l)}else n(u,c,!!l)}var f=void 0,m=void 0;if(l)m=-1,f=l,l=null;else{if(!(c<e.childCount))break;m=c,f=e.child(c++)}for(var h=0;h<s.length;h++)s[h].to<=i&&s.splice(h--,1);for(;o<a.length&&a[o].from<=i&&a[o].to>i;)s.push(a[o++]);var _=i+f.nodeSize;if(f.isText){var v=_;o<a.length&&a[o].from<v&&(v=a[o].from);for(var g=0;g<s.length;g++)s[g].to<v&&(v=s[g].to);v<_&&(l=f.cut(v-i),f=f.cut(0,v-i),_=v,m=-1)}var y=s.length?f.isInline&&!f.isLeaf?s.filter((function(e){return!e.inline})):s.slice():Zn;r(f,y,t.forChild(i,f),m),i=_}else for(var b=0;b<e.childCount;b++){var w=e.child(b);r(w,a,t.forChild(i,w),b),i+=w.nodeSize}}(this.node,this.innerDeco,(function(t,i,s){t.spec.marks?o.syncToMarks(t.spec.marks,r,e):t.type.side>=0&&!s&&o.syncToMarks(i==n.node.childCount?pn.Mark.none:n.node.child(i).marks,r,e),o.placeWidget(t,e,a)}),(function(t,n,i,s){o.syncToMarks(t.marks,r,e),o.findNodeMatch(t,n,i,s)||o.updateNextNode(t,n,i,e,s)||o.addNode(t,n,i,e,a),a+=t.nodeSize})),o.syncToMarks(Zn,r,e),this.node.isTextblock&&o.addTextblockHacks(),o.destroyRest(),(o.changed||2==this.dirty)&&(i&&this.protectLocalComposition(e,i),function e(t,n,r){for(var a=t.firstChild,i=!1,o=0;o<n.length;o++){var s=n[o],l=s.dom;if(l.parentNode==t){for(;l!=a;)a=fr(a),i=!0;a=a.nextSibling}else i=!0,t.insertBefore(l,a);if(s instanceof er){var c=a?a.previousSibling:t.lastChild;e(s.contentDOM,s.children,r),a=c?c.nextSibling:t.firstChild}}for(;a;)a=fr(a),i=!0;i&&r.trackWrites==t&&(r.trackWrites=null)}(this.contentDOM,this.children,e),mn.ios&&function(e){if("UL"==e.nodeName||"OL"==e.nodeName){var t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}(this.dom))},t.prototype.localCompositionNode=function(e,t){var n=e.state.selection,r=n.from,a=n.to;if(!(!(e.state.selection instanceof dn.TextSelection)||r<t||a>t+this.node.content.size)){var i=e.root.getSelection(),o=function(e,t){for(;;){if(3==e.nodeType)return e;if(1==e.nodeType&&t>0){if(e.childNodes.length>t&&3==e.childNodes[t].nodeType)return e.childNodes[t];e=e.childNodes[t-1],t=Sn(e)}else{if(!(1==e.nodeType&&t<e.childNodes.length))return null;e=e.childNodes[t],t=0}}}(i.focusNode,i.focusOffset);if(o&&this.dom.contains(o.parentNode)){var s=o.nodeValue,l=function(e,t,n,r){for(var a=0,i=0;a<e.childCount&&i<=r;){var o=e.child(a++),s=i;if(i+=o.nodeSize,o.isText){for(var l=o.text;a<e.childCount;){var c=e.child(a++);if(i+=c.nodeSize,!c.isText)break;l+=c.text}if(i>=n){var u=l.lastIndexOf(t,r-s);if(u>=0&&u+t.length+s>=n)return s+u}}}return-1}(this.node.content,s,r-t,a-t);return l<0?null:{node:o,pos:l,text:s}}}},t.prototype.protectLocalComposition=function(e,t){var n=t.node,r=t.pos,a=t.text;if(!this.getDesc(n)){for(var i=n;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=null)}var o=new Qn(this,i,n,a);e.compositionNodes.push(o),this.children=_r(this.children,r,r+a.length,e,o)}},t.prototype.update=function(e,t,n,r){return!(3==this.dirty||!e.sameMarkup(this.node)||(this.updateInner(e,t,n,r),0))},t.prototype.updateInner=function(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=0},t.prototype.updateOuterDeco=function(e){if(!pr(e,this.outerDeco)){var t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=cr(this.dom,this.nodeDOM,lr(this.outerDeco,this.node,t),lr(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}(Gn);function nr(e,t,n,r,a){return dr(r,t,e),new tr(null,e,t,n,r,r,r,a,0)}var rr=function(e){function t(t,n,r,a,i,o,s){e.call(this,t,n,r,a,i,null,o,s)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.parseRule=function(){for(var e=this.nodeDOM.parentNode;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}},t.prototype.update=function(e,t,n,r){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!e.sameMarkup(this.node)||(this.updateOuterDeco(t),0==this.dirty&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=0,0))},t.prototype.inParent=function(){for(var e=this.parent.contentDOM,t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1},t.prototype.domFromPos=function(e){return{node:this.nodeDOM,offset:e}},t.prototype.localPosFromDOM=function(t,n,r){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):e.prototype.localPosFromDOM.call(this,t,n,r)},t.prototype.ignoreMutation=function(e){return"characterData"!=e.type&&"selection"!=e.type},t.prototype.slice=function(e,n,r){var a=this.node.cut(e,n),i=document.createTextNode(a.text);return new t(this.parent,a,this.outerDeco,this.innerDeco,i,i,r)},t}(tr),ar=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}(Gn),ir=function(e){function t(t,n,r,a,i,o,s,l,c,u){e.call(this,t,n,r,a,i,o,s,c,u),this.spec=l}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.update=function(t,n,r,a){if(3==this.dirty)return!1;if(this.spec.update){var i=this.spec.update(t,n);return i&&this.updateInner(t,n,r,a),i}return!(!this.contentDOM&&!t.isLeaf)&&e.prototype.update.call(this,t,n,r,a)},t.prototype.selectNode=function(){this.spec.selectNode?this.spec.selectNode():e.prototype.selectNode.call(this)},t.prototype.deselectNode=function(){this.spec.deselectNode?this.spec.deselectNode():e.prototype.deselectNode.call(this)},t.prototype.setSelection=function(t,n,r,a){this.spec.setSelection?this.spec.setSelection(t,n,r):e.prototype.setSelection.call(this,t,n,r,a)},t.prototype.destroy=function(){this.spec.destroy&&this.spec.destroy(),e.prototype.destroy.call(this)},t.prototype.stopEvent=function(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)},t.prototype.ignoreMutation=function(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):e.prototype.ignoreMutation.call(this,t)},t}(tr);function or(e){e&&(this.nodeName=e)}or.prototype=Object.create(null);var sr=[new or];function lr(e,t,n){if(0==e.length)return sr;for(var r=n?sr[0]:new or,a=[r],i=0;i<e.length;i++){var o=e[i].type.attrs,s=r;if(o)for(var l in o.nodeName&&a.push(s=new or(o.nodeName)),o){var c=o[l];null!=c&&(n&&1==a.length&&a.push(s=r=new or(t.isInline?"span":"div")),"class"==l?s.class=(s.class?s.class+" ":"")+c:"style"==l?s.style=(s.style?s.style+";":"")+c:"nodeName"!=l&&(s[l]=c))}}return a}function cr(e,t,n,r){if(n==sr&&r==sr)return t;for(var a=t,i=0;i<r.length;i++){var o=r[i],s=n[i];if(i){var l=void 0;s&&s.nodeName==o.nodeName&&a!=e&&(l=a.parentNode)&&l.tagName.toLowerCase()==o.nodeName||((l=document.createElement(o.nodeName)).pmIsDeco=!0,l.appendChild(a),s=sr[0]),a=l}ur(a,s||sr[0],o)}return a}function ur(e,t,n){for(var r in t)"class"==r||"style"==r||"nodeName"==r||r in n||e.removeAttribute(r);for(var a in n)"class"!=a&&"style"!=a&&"nodeName"!=a&&n[a]!=t[a]&&e.setAttribute(a,n[a]);if(t.class!=n.class){for(var i=t.class?t.class.split(" "):Zn,o=n.class?n.class.split(" "):Zn,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 dr(e,t,n){return cr(e,e,sr,lr(t,n,1!=e.nodeType))}function pr(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function fr(e){var t=e.nextSibling;return e.parentNode.removeChild(e),t}var mr=function(e,t){this.top=e,this.lock=t,this.index=0,this.stack=[],this.changed=!1;var n=function(e,t){for(var n=[],r=e.childCount,a=t.length-1;r>0&&a>=0;a--){var i=t[a],o=i.node;if(o){if(o!=e.child(r-1))break;n.push(i),--r}}return{nodes:n.reverse(),offset:r}}(e.node.content,e.children);this.preMatched=n.nodes,this.preMatchOffset=n.offset};function hr(e,t){return e.type.side-t.type.side}function _r(e,t,n,r,a){for(var i=[],o=0,s=0;o<e.length;o++){var l=e[o],c=s,u=s+=l.size;c>=n||u<=t?i.push(l):(c<t&&i.push(l.slice(0,t-c,r)),a&&(i.push(a),a=null),u>n&&i.push(l.slice(n-c,l.size,r)))}return i}function vr(e,t){var n=e.root.getSelection(),r=e.state.doc;if(!n.focusNode)return null;var a=e.docView.nearestDesc(n.focusNode),i=a&&0==a.size,o=e.docView.posFromDOM(n.focusNode,n.focusOffset);if(o<0)return null;var s,l,c=r.resolve(o);if(Ln(n)){for(s=c;a&&!a.node;)a=a.parent;if(a&&a.node.isAtom&&dn.NodeSelection.isSelectable(a.node)&&a.parent&&(!a.node.isInline||!function(e,t,n){for(var r=0==t,a=t==Sn(e);r||a;){if(e==n)return!0;var i=bn(e);if(!(e=e.parentNode))return!1;r=r&&0==i,a=a&&i==Sn(e)}}(n.focusNode,n.focusOffset,a.dom))){var u=a.posBefore;l=new dn.NodeSelection(o==u?c:r.resolve(u))}}else{var d=e.docView.posFromDOM(n.anchorNode,n.anchorOffset);if(d<0)return null;s=r.resolve(d)}return l||(l=Mr(e,s,c,"pointer"==t||e.state.selection.head<c.pos&&!i?1:-1)),l}function gr(e,t){var n=e.state.selection;if(kr(e,n),e.editable?e.hasFocus():Sr(e)&&document.activeElement&&document.activeElement.contains(e.dom)){if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){var t=e.root.getSelection(),n=document.createRange(),r=e.cursorWrapper.dom,a="IMG"==r.nodeName;a?n.setEnd(r.parentNode,bn(r)+1):n.setEnd(r,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!a&&!e.state.selection.visible&&mn.ie&&mn.ie_version<=11&&(r.disabled=!0,r.disabled=!1)}(e);else{var r,a,i=n.anchor,o=n.head;!yr||n instanceof dn.TextSelection||(n.$from.parent.inlineContent||(r=br(e,n.from)),n.empty||n.$from.parent.inlineContent||(a=br(e,n.to))),e.docView.setSelection(i,o,e.root,t),yr&&(r&&xr(r),a&&xr(a)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function(e){var t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.hideSelectionGuard);var n=e.root.getSelection(),r=n.anchorNode,a=n.anchorOffset;t.addEventListener("selectionchange",e.hideSelectionGuard=function(){n.anchorNode==r&&n.anchorOffset==a||(t.removeEventListener("selectionchange",e.hideSelectionGuard),e.dom.classList.remove("ProseMirror-hideselection"))})}(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}mr.prototype.getPreMatch=function(e){return e>=this.preMatchOffset?this.preMatched[e-this.preMatchOffset]:null},mr.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}},mr.prototype.destroyRest=function(){this.destroyBetween(this.index,this.top.children.length)},mr.prototype.syncToMarks=function(e,t,n){for(var r=0,a=this.stack.length>>1,i=Math.min(a,e.length);r<i&&(r==a-1?this.top:this.stack[r+1<<1]).matchesMark(e[r])&&!1!==e[r].type.spec.spanning;)r++;for(;r<a;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),a--;for(;a<e.length;){this.stack.push(this.top,this.index+1);for(var o=-1,s=this.index;s<Math.min(this.index+3,this.top.children.length);s++)if(this.top.children[s].matchesMark(e[a])){o=s;break}if(o>-1)o>this.index&&(this.changed=!0,this.destroyBetween(this.index,o)),this.top=this.top.children[this.index];else{var l=er.create(this.top,e[a],t,n);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,a++}},mr.prototype.findNodeMatch=function(e,t,n,r){var a=-1,i=r<0?void 0:this.getPreMatch(r),o=this.top.children;if(i&&i.matchesNode(e,t,n))a=o.indexOf(i);else for(var s=this.index,l=Math.min(o.length,s+5);s<l;s++){var c=o[s];if(c.matchesNode(e,t,n)&&this.preMatched.indexOf(c)<0){a=s;break}}return!(a<0||(this.destroyBetween(this.index,a),this.index++,0))},mr.prototype.updateNextNode=function(e,t,n,r,a){for(var i=this.index;i<this.top.children.length;i++){var o=this.top.children[i];if(o instanceof tr){var s=this.preMatched.indexOf(o);if(s>-1&&s+this.preMatchOffset!=a)return!1;var l=o.dom;if((!this.lock||!(l==this.lock||1==l.nodeType&&l.contains(this.lock.parentNode))||e.isText&&o.node&&o.node.isText&&o.nodeDOM.nodeValue==e.text&&3!=o.dirty&&pr(t,o.outerDeco))&&o.update(e,t,n,r))return this.destroyBetween(this.index,i),o.dom!=l&&(this.changed=!0),this.index++,!0;break}}return!1},mr.prototype.addNode=function(e,t,n,r,a){this.top.children.splice(this.index++,0,tr.create(this.top,e,t,n,r,a)),this.changed=!0},mr.prototype.placeWidget=function(e,t,n){var r=this.index<this.top.children.length?this.top.children[this.index]:null;if(!r||!r.matchesWidget(e)||e!=r.widget&&r.widget.type.toDOM.parentNode){var a=new Xn(this.top,e,t,n);this.top.children.splice(this.index++,0,a),this.changed=!0}else this.index++},mr.prototype.addTextblockHacks=function(){for(var e=this.top.children[this.index-1];e instanceof er;)e=e.children[e.children.length-1];if(!e||!(e instanceof rr)||/\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 ar(this.top,Zn,t,null)),this.changed=!0}};var yr=mn.safari||mn.chrome&&mn.chrome_version<63;function br(e,t){var n=e.docView.domFromPos(t),r=n.node,a=n.offset,i=a<r.childNodes.length?r.childNodes[a]:null,o=a?r.childNodes[a-1]:null;if(mn.safari&&i&&"false"==i.contentEditable)return wr(i);if(!(i&&"false"!=i.contentEditable||o&&"false"!=o.contentEditable)){if(i)return wr(i);if(o)return wr(o)}}function wr(e){return e.contentEditable="true",mn.safari&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function xr(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function kr(e,t){if(t instanceof dn.NodeSelection){var n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Dr(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Dr(e)}function Dr(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=null)}function Mr(e,t,n,r){return e.someProp("createSelectionBetween",(function(r){return r(e,t,n)}))||dn.TextSelection.between(t,n,r)}function Sr(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 Cr(e,t){var n=e.selection,r=n.$anchor,a=n.$head,i=t>0?r.max(a):r.min(a),o=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return o&&dn.Selection.findFrom(o,t)}function Lr(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Tr(e,t,n){var r=e.state.selection;if(!(r instanceof dn.TextSelection)){if(r instanceof dn.NodeSelection&&r.node.isInline)return Lr(e,new dn.TextSelection(t>0?r.$to:r.$from));var a=Cr(e.state,t);return!!a&&Lr(e,a)}if(!r.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"right":"left")){var i=Cr(e.state,t);return!!(i&&i instanceof dn.NodeSelection)&&Lr(e,i)}if(!(mn.mac&&n.indexOf("m")>-1)){var o,s=r.$head,l=s.textOffset?null:t<0?s.nodeBefore:s.nodeAfter;if(!l||l.isText)return!1;var c=t<0?s.pos-l.nodeSize:s.pos;return!!(l.isAtom||(o=e.docView.descAt(c))&&!o.contentDOM)&&(dn.NodeSelection.isSelectable(l)?Lr(e,new dn.NodeSelection(t<0?e.state.doc.resolve(s.pos-l.nodeSize):s)):!!mn.webkit&&Lr(e,new dn.TextSelection(e.state.doc.resolve(t<0?c:c+l.nodeSize))))}}function Er(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Or(e){var t=e.pmViewDesc;return t&&0==t.size&&(e.nextSibling||"BR"!=e.nodeName)}function jr(e){var t=e.root.getSelection(),n=t.focusNode,r=t.focusOffset;if(n){var a,i,o=!1;for(mn.gecko&&1==n.nodeType&&r<Er(n)&&Or(n.childNodes[r])&&(o=!0);;)if(r>0){if(1!=n.nodeType)break;var s=n.childNodes[r-1];if(Or(s))a=n,i=--r;else{if(3!=s.nodeType)break;r=(n=s).nodeValue.length}}else{if(Pr(n))break;for(var l=n.previousSibling;l&&Or(l);)a=n.parentNode,i=bn(l),l=l.previousSibling;if(l)r=Er(n=l);else{if((n=n.parentNode)==e.dom)break;r=0}}o?Yr(e,t,n,r):a&&Yr(e,t,a,i)}}function Ar(e){var t=e.root.getSelection(),n=t.focusNode,r=t.focusOffset;if(n){for(var a,i,o=Er(n);;)if(r<o){if(1!=n.nodeType)break;if(!Or(n.childNodes[r]))break;a=n,i=++r}else{if(Pr(n))break;for(var s=n.nextSibling;s&&Or(s);)a=s.parentNode,i=bn(s)+1,s=s.nextSibling;if(s)r=0,o=Er(n=s);else{if((n=n.parentNode)==e.dom)break;r=o=0}}a&&Yr(e,t,a,i)}}function Pr(e){var t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function Yr(e,t,n,r){if(Ln(t)){var a=document.createRange();a.setEnd(n,r),a.setStart(n,r),t.removeAllRanges(),t.addRange(a)}else t.extend&&t.extend(n,r);e.domObserver.setCurSelection();var i=e.state;setTimeout((function(){e.state==i&&gr(e)}),50)}function $r(e,t,n){var r=e.state.selection;if(r instanceof dn.TextSelection&&!r.empty||n.indexOf("s")>-1)return!1;if(mn.mac&&n.indexOf("m")>-1)return!1;var a=r.$from,i=r.$to;if(!a.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){var o=Cr(e.state,t);if(o&&o instanceof dn.NodeSelection)return Lr(e,o)}if(!a.parent.inlineContent){var s=dn.Selection.findFrom(t<0?a:i,t);return!s||Lr(e,s)}return!1}function Ir(e,t){if(!(e.state.selection instanceof dn.TextSelection))return!0;var n=e.state.selection,r=n.$head,a=n.$anchor,i=n.empty;if(!r.sameParent(a))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;var o=!r.textOffset&&(t<0?r.nodeBefore:r.nodeAfter);if(o&&!o.isText){var s=e.state.tr;return t<0?s.delete(r.pos-o.nodeSize,r.pos):s.delete(r.pos,r.pos+o.nodeSize),e.dispatch(s),!0}return!1}function Nr(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function zr(e,t){var n=t.keyCode,r=function(e){var t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}(t);return 8==n||mn.mac&&72==n&&"c"==r?Ir(e,-1)||jr(e):46==n||mn.mac&&68==n&&"c"==r?Ir(e,1)||Ar(e):13==n||27==n||(37==n?Tr(e,-1,r)||jr(e):39==n?Tr(e,1,r)||Ar(e):38==n?$r(e,-1,r)||jr(e):40==n?function(e){if(mn.safari&&!(e.state.selection.$head.parentOffset>0)){var t=e.root.getSelection(),n=t.focusNode,r=t.focusOffset;if(n&&1==n.nodeType&&0==r&&n.firstChild&&"false"==n.firstChild.contentEditable){var a=n.firstChild;Nr(e,a,!0),setTimeout((function(){return Nr(e,a,!1)}),20)}}}(e)||$r(e,1,r)||Ar(e):r==(mn.mac?"m":"c")&&(66==n||73==n||89==n||90==n))}function Fr(e){var t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(mn.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||mn.safari&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0}}function Rr(e,t,n,r,a){if(t<0){var i=e.lastSelectionTime>Date.now()-50?e.lastSelectionOrigin:null,o=vr(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,f=function(e,t,n){var r=e.docView.parseRange(t,n),a=r.node,i=r.fromOffset,o=r.toOffset,s=r.from,l=r.to,c=e.root.getSelection(),u=null,d=c.anchorNode;if(d&&e.dom.contains(1==d.nodeType?d:d.parentNode)&&(u=[{node:d,offset:c.anchorOffset}],Ln(c)||u.push({node:c.focusNode,offset:c.focusOffset})),mn.chrome&&8===e.lastKeyCode)for(var p=o;p>i;p--){var f=a.childNodes[p-1],m=f.pmViewDesc;if("BR"==f.nodeType&&!m){o=p;break}if(!m||m.size)break}var h=e.state.doc,_=e.someProp("domParser")||pn.DOMParser.fromSchema(e.state.schema),v=h.resolve(s),g=null,y=_.parse(a,{topNode:v.parent,topMatch:v.parent.contentMatchAt(v.index()),topOpen:!0,from:i,to:o,preserveWhitespace:!v.parent.type.spec.code||"full",editableContent:!0,findPositions:u,ruleFromNode:Fr,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),m=e.state.doc,h=m.slice(f.from,f.to);8===e.lastKeyCode&&Date.now()-100<e.lastKeyCodeTime?(u=e.state.selection.to,d="end"):(u=e.state.selection.from,d="start"),e.lastKeyCode=null;var _=function(e,t,n,r,a){var i=e.findDiffStart(t,n);if(null==i)return null;var o=e.findDiffEnd(t,n+e.size,n+t.size),s=o.a,l=o.b;if("end"==a){var c=Math.max(0,i-Math.min(s,l));r-=s+c-i}return s<i&&e.size<t.size?(l=(i-=r<=i&&r>=s?i-r:0)+(l-s),s=i):l<i&&(s=(i-=r<=i&&r>=l?i-r:0)+(s-l),l=i),{start:i,endA:s,endB:l}}(h.content,f.doc.content,f.from,u,d);if(!_){if(!(r&&p instanceof dn.TextSelection&&!p.empty&&p.$head.sameParent(p.$anchor))||e.composing||f.sel&&f.sel.anchor!=f.sel.head){if(f.sel){var v=Hr(e,e.state.doc,f.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 dn.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)),mn.ie&&mn.ie_version<=11&&_.endB==_.start+1&&_.endA==_.start&&_.start>f.from&&" "==f.doc.textBetween(_.start-f.from-1,_.start-f.from+1)&&(_.start--,_.endA--,_.endB--);var g,y=f.doc.resolveNoCache(_.start-f.from),b=f.doc.resolveNoCache(_.endB-f.from),w=y.sameParent(b)&&y.parent.inlineContent;if((mn.ios&&e.lastIOSEnter>Date.now()-225&&(!w||a.some((function(e){return"DIV"==e.nodeName||"P"==e.nodeName})))||!w&&y.pos<f.doc.content.size&&(g=dn.Selection.findFrom(f.doc.resolve(y.pos+1),1,!0))&&g.head==b.pos)&&e.someProp("handleKeyDown",(function(t){return t(e,Tn(13,"Enter"))})))e.lastIOSEnter=0;else if(e.state.selection.anchor>_.start&&function(e,t,n,r,a){if(!r.parent.isTextblock||n-t<=a.pos-r.pos||Br(r,!0,!1)<a.pos)return!1;var i=e.resolve(t);if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;var o=e.resolve(Br(i,!0,!0));return!(!o.parent.isTextblock||o.pos>n||Br(o,!0,!1)<n)&&r.parent.content.cut(r.parentOffset).eq(o.parent.content)}(m,_.start,_.endA,y,b)&&e.someProp("handleKeyDown",(function(t){return t(e,Tn(8,"Backspace"))})))mn.android&&mn.chrome&&e.domObserver.suppressSelectionUpdates();else{mn.android&&!w&&y.start()!=b.start()&&0==b.parentOffset&&y.depth==b.depth&&f.sel&&f.sel.anchor==f.sel.head&&f.sel.head==_.endA&&(_.endB-=2,b=f.doc.resolveNoCache(_.endB-f.from),setTimeout((function(){e.someProp("handleKeyDown",(function(t){return t(e,Tn(13,"Enter"))}))}),20));var x,k,D,M,S=_.start,C=_.endA;if(w)if(y.pos==b.pos)mn.ie&&mn.ie_version<=11&&0==y.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout((function(){return gr(e)}),20)),x=e.state.tr.delete(S,C),k=m.resolve(_.start).marksAcross(m.resolve(_.endA));else if(_.endA==_.endB&&(M=m.resolve(_.start))&&(D=function(e,t){for(var n,r,a,i=e.firstChild.marks,o=t.firstChild.marks,s=i,l=o,c=0;c<o.length;c++)s=o[c].removeFromSet(s);for(var u=0;u<i.length;u++)l=i[u].removeFromSet(l);if(1==s.length&&0==l.length)r=s[0],n="add",a=function(e){return e.mark(r.addToSet(e.marks))};else{if(0!=s.length||1!=l.length)return null;r=l[0],n="remove",a=function(e){return e.mark(r.removeFromSet(e.marks))}}for(var d=[],p=0;p<t.childCount;p++)d.push(a(t.child(p)));if(pn.Fragment.from(d).eq(e))return{mark:r,type:n}}(y.parent.content.cut(y.parentOffset,b.parentOffset),M.parent.content.cut(M.parentOffset,_.endA-M.start()))))x=e.state.tr,"add"==D.type?x.addMark(S,C,D.mark):x.removeMark(S,C,D.mark);else if(y.parent.child(y.index()).isText&&y.index()==b.index()-(b.textOffset?0:1)){var L=y.parent.textBetween(y.parentOffset,b.parentOffset);if(e.someProp("handleTextInput",(function(t){return t(e,S,C,L)})))return;x=e.state.tr.insertText(L,S,C)}if(x||(x=e.state.tr.replace(S,C,f.doc.slice(_.start-f.from,_.endB-f.from))),f.sel){var T=Hr(e,x.doc,f.sel);T&&!(mn.chrome&&mn.android&&e.composing&&T.empty&&(T.head==S||T.head==x.mapping.map(C)-1)||mn.ie&&T.empty&&T.head==S)&&x.setSelection(T)}k&&x.ensureMarks(k),e.dispatch(x.scrollIntoView())}}}function Hr(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:Mr(e,t.resolve(n.anchor),t.resolve(n.head))}function Br(e,t,n){for(var r=e.depth,a=t?e.end():e.pos;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,a++,t=!1;if(n)for(var i=e.node(r).maybeChild(e.indexAfter(r));i&&!i.isLeaf;)i=i.firstChild,a++;return a}function qr(e,t){for(var n=[],r=t.content,a=t.openStart,i=t.openEnd;a>1&&i>1&&1==r.childCount&&1==r.firstChild.childCount;){a--,i--;var o=r.firstChild;n.push(o.type.name,o.type.hasRequiredAttrs()?o.attrs:null),r=o.content}var s=e.someProp("clipboardSerializer")||pn.DOMSerializer.fromSchema(e.state.schema),l=Jr(),c=l.createElement("div");c.appendChild(s.serializeFragment(r,{document:l}));for(var u,d=c.firstChild;d&&1==d.nodeType&&(u=Kr[d.nodeName.toLowerCase()]);){for(var p=u.length-1;p>=0;p--){for(var f=l.createElement(u[p]);c.firstChild;)f.appendChild(c.firstChild);c.appendChild(f)}d=c.firstChild}return d&&1==d.nodeType&&d.setAttribute("data-pm-slice",a+" "+i+" "+JSON.stringify(n)),{dom:c,text:e.someProp("clipboardTextSerializer",(function(e){return e(t)}))||t.content.textBetween(0,t.content.size,"\n\n")}}function Ur(e,t,n,r,a){var i,o,s=a.parent.type.spec.code;if(!n&&!t)return null;var l=t&&(r||s||!n);if(l){if(e.someProp("transformPastedText",(function(e){t=e(t,s||r)})),s)return new pn.Slice(pn.Fragment.from(e.state.schema.text(t)),0,0);var c=e.someProp("clipboardTextParser",(function(e){return e(t,a,r)}));c?o=c:(i=document.createElement("div"),t.trim().split(/(?:\r\n?|\n)+/).forEach((function(e){i.appendChild(document.createElement("p")).textContent=e})))}else e.someProp("transformPastedHTML",(function(e){n=e(n)})),i=function(e){var t=/(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));var n,r=Jr().createElement("div"),a=/(?:<meta [^>]*>)*<([a-z][^>\s]+)/i.exec(e),i=0;(n=a&&Kr[a[1].toLowerCase()])&&(e=n.map((function(e){return"<"+e+">"})).join("")+e+n.map((function(e){return"</"+e+">"})).reverse().join(""),i=n.length),r.innerHTML=e;for(var o=0;o<i;o++)r=r.firstChild;return r}(n);var u=i&&i.querySelector("[data-pm-slice]"),d=u&&/^(\d+) (\d+) (.*)/.exec(u.getAttribute("data-pm-slice"));if(!o){var p=e.someProp("clipboardParser")||e.someProp("domParser")||pn.DOMParser.fromSchema(e.state.schema);o=p.parseSlice(i,{preserveWhitespace:!(!l&&!d),context:a})}return o=d?function(e,t){if(!e.size)return e;var n,r=e.content.firstChild.type.schema;try{n=JSON.parse(t)}catch(t){return e}for(var a=e.content,i=e.openStart,o=e.openEnd,s=n.length-2;s>=0;s-=2){var l=r.nodes[n[s]];if(!l||l.hasRequiredAttrs())break;a=pn.Fragment.from(l.create(n[s+1],a)),i++,o++}return new pn.Slice(a,i,o)}(function(e,t,n){return t<e.openStart&&(e=new pn.Slice(Wr(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new pn.Slice(Wr(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}(o,+d[1],+d[2]),d[3]):pn.Slice.maxOpen(function(e,t){if(e.childCount<2)return e;for(var n=function(n){var r=t.node(n).contentMatchAt(t.index(n)),a=void 0,i=[];if(e.forEach((function(e){if(i){var t,n=r.findWrapping(e.type);if(!n)return i=null;if(t=i.length&&a.length&&function e(t,n,r,a,i){if(i<t.length&&i<n.length&&t[i]==n[i]){var o=e(t,n,r,a.lastChild,i+1);if(o)return a.copy(a.content.replaceChild(a.childCount-1,o));if(a.contentMatchAt(a.childCount).matchType(i==t.length-1?r.type:t[i+1]))return a.copy(a.content.append(pn.Fragment.from(Vr(r,t,i+1))))}}(n,a,e,i[i.length-1],0))i[i.length-1]=t;else{i.length&&(i[i.length-1]=function e(t,n){if(0==n)return t;var r=t.content.replaceChild(t.childCount-1,e(t.lastChild,n-1)),a=t.contentMatchAt(t.childCount).fillBefore(pn.Fragment.empty,!0);return t.copy(r.append(a))}(i[i.length-1],a.length));var o=Vr(e,n);i.push(o),r=r.matchType(o.type,o.attrs),a=n}}})),i)return{v:pn.Fragment.from(i)}},r=t.depth;r>=0;r--){var a=n(r);if(a)return a.v}return e}(o.content,a),!1),e.someProp("transformPasted",(function(e){o=e(o)})),o}function Vr(e,t,n){void 0===n&&(n=0);for(var r=t.length-1;r>=n;r--)e=t[r].create(null,pn.Fragment.from(e));return e}function Wr(e,t,n,r,a,i){var o=t<0?e.firstChild:e.lastChild,s=o.content;return a<r-1&&(s=Wr(s,t,n,r,a+1,i)),a>=n&&(s=t<0?o.contentMatchAt(0).fillBefore(s,e.childCount>1||i<=a).append(s):s.append(o.contentMatchAt(o.childCount).fillBefore(pn.Fragment.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,o.copy(s))}var Kr={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},Gr=null;function Jr(){return Gr||(Gr=document.implementation.createHTMLDocument("title"))}var Zr={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Xr=mn.ie&&mn.ie_version<=11,Qr=function(){this.anchorNode=this.anchorOffset=this.focusNode=this.focusOffset=null};Qr.prototype.set=function(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset},Qr.prototype.eq=function(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset};var ea=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]);mn.ie&&mn.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 Qr,Xr&&(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};ea.prototype.flushSoon=function(){var e=this;this.flushingSoon<0&&(this.flushingSoon=window.setTimeout((function(){e.flushingSoon=-1,e.flush()}),20))},ea.prototype.forceFlush=function(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())},ea.prototype.start=function(){this.observer&&this.observer.observe(this.view.dom,Zr),Xr&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()},ea.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()}Xr&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()},ea.prototype.connectSelection=function(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)},ea.prototype.disconnectSelection=function(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)},ea.prototype.suppressSelectionUpdates=function(){var e=this;this.suppressingSelectionUpdates=!0,setTimeout((function(){return e.suppressingSelectionUpdates=!1}),50)},ea.prototype.onSelectionChange=function(){if((!(e=this.view).editable||e.root.activeElement==e.dom)&&Sr(e)){var e;if(this.suppressingSelectionUpdates)return gr(this.view);if(mn.ie&&mn.ie_version<=11&&!this.view.state.selection.empty){var t=this.view.root.getSelection();if(t.focusNode&&kn(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}},ea.prototype.setCurSelection=function(){this.currentSelection.set(this.view.root.getSelection())},ea.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},ea.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)&&Sr(this.view)&&!this.ignoreSelectionChange(t),r=-1,a=-1,i=!1,o=[];if(this.view.editable)for(var s=0;s<e.length;s++){var l=this.registerMutation(e[s],o);l&&(r=r<0?l.from:Math.min(l.from,r),a=a<0?l.to:Math.max(l.to,a),l.typeOver&&(i=!0))}if(mn.gecko&&o.length>1){var c=o.filter((function(e){return"BR"==e.nodeName}));if(2==c.length){var u=c[0],d=c[1];u.parentNode&&u.parentNode.parentNode==d.parentNode?d.remove():u.remove()}}(r>-1||n)&&(r>-1&&(this.view.docView.markDirty(r,a),p=this.view,ta||(ta=!0,"normal"==getComputedStyle(p.dom).whiteSpace&&console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."))),this.handleDOMChange(r,a,i,o),this.view.docView.dirty?this.view.updateState(this.view.state):this.currentSelection.eq(t)||gr(this.view))}var p},ea.prototype.registerMutation=function(e,t){if(t.indexOf(e.target)>-1)return null;var n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){var r=e.previousSibling,a=e.nextSibling;if(mn.ie&&mn.ie_version<=11&&e.addedNodes.length)for(var i=0;i<e.addedNodes.length;i++){var o=e.addedNodes[i],s=o.previousSibling,l=o.nextSibling;(!s||Array.prototype.indexOf.call(e.addedNodes,s)<0)&&(r=s),(!l||Array.prototype.indexOf.call(e.addedNodes,l)<0)&&(a=l)}for(var c=r&&r.parentNode==e.target?bn(r)+1:0,u=n.localPosFromDOM(e.target,c,-1),d=a&&a.parentNode==e.target?bn(a):e.target.childNodes.length,p=0;p<e.addedNodes.length;p++)t.push(e.addedNodes[p]);return{from:u,to:n.localPosFromDOM(e.target,d,1)}}return"attributes"==e.type?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}};var ta=!1,na={},ra={};function aa(e,t){e.lastSelectionOrigin=t,e.lastSelectionTime=Date.now()}function ia(e){e.someProp("handleDOMEvents",(function(t){for(var n in t)e.eventHandlers[n]||e.dom.addEventListener(n,e.eventHandlers[n]=function(t){return oa(e,t)})}))}function oa(e,t){return e.someProp("handleDOMEvents",(function(n){var r=n[t.type];return!!r&&(r(e,t)||t.defaultPrevented)}))}function sa(e){return{left:e.clientX,top:e.clientY}}function la(e,t,n,r,a){if(-1==r)return!1;for(var i=e.state.doc.resolve(r),o=function(r){if(e.someProp(t,(function(t){return r>i.depth?t(e,n,i.nodeAfter,i.before(r),a,!0):t(e,n,i.node(r),i.before(r),a,!1)})))return{v:!0}},s=i.depth+1;s>0;s--){var l=o(s);if(l)return l.v}return!1}function ca(e,t,n){e.focused||e.focus();var r=e.state.tr.setSelection(t);"pointer"==n&&r.setMeta("pointer",!0),e.dispatch(r)}function ua(e,t,n,r,a){return la(e,"handleClickOn",t,n,r)||e.someProp("handleClick",(function(n){return n(e,t,r)}))||(a?function(e,t){if(-1==t)return!1;var n,r,a=e.state.selection;a instanceof dn.NodeSelection&&(n=a.node);for(var i=e.state.doc.resolve(t),o=i.depth+1;o>0;o--){var s=o>i.depth?i.nodeAfter:i.node(o);if(dn.NodeSelection.isSelectable(s)){r=n&&a.$from.depth>0&&o>=a.$from.depth&&i.before(a.$from.depth+1)==a.$from.pos?i.before(a.$from.depth):i.before(o);break}}return null!=r&&(ca(e,dn.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&&dn.NodeSelection.isSelectable(r))&&(ca(e,new dn.NodeSelection(n),"pointer"),!0)}(e,n))}function da(e,t,n,r){return la(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",(function(n){return n(e,t,r)}))}function pa(e,t,n,r){return la(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&&(ca(e,dn.TextSelection.create(n,0,n.content.size),"pointer"),!0);for(var r=n.resolve(t),a=r.depth+1;a>0;a--){var i=a>r.depth?r.nodeAfter:r.node(a),o=r.before(a);if(i.inlineContent)ca(e,dn.TextSelection.create(n,o+1,o+1+i.content.size),"pointer");else{if(!dn.NodeSelection.isSelectable(i))continue;ca(e,dn.NodeSelection.create(n,o),"pointer")}return!0}}(e,n)}function fa(e){return ba(e)}ra.keydown=function(e,t){if(e.shiftKey=16==t.keyCode||t.shiftKey,!_a(e,t))if(e.domObserver.forceFlush(),e.lastKeyCode=t.keyCode,e.lastKeyCodeTime=Date.now(),!mn.ios||13!=t.keyCode||t.ctrlKey||t.altKey||t.metaKey)e.someProp("handleKeyDown",(function(n){return n(e,t)}))||zr(e,t)?t.preventDefault():aa(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,Tn(13,"Enter"))})),e.lastIOSEnter=0)}),200)}},ra.keyup=function(e,t){16==t.keyCode&&(e.shiftKey=!1)},ra.keypress=function(e,t){if(!(_a(e,t)||!t.charCode||t.ctrlKey&&!t.altKey||mn.mac&&t.metaKey))if(e.someProp("handleKeyPress",(function(n){return n(e,t)})))t.preventDefault();else{var n=e.state.selection;if(!(n instanceof dn.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 ma=mn.mac?"metaKey":"ctrlKey";na.mousedown=function(e,t){e.shiftKey=t.shiftKey;var n=fa(e),r=Date.now(),a="singleClick";r-e.lastClick.time<500&&function(e,t){var n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}(t,e.lastClick)&&!t[ma]&&("singleClick"==e.lastClick.type?a="doubleClick":"doubleClick"==e.lastClick.type&&(a="tripleClick")),e.lastClick={time:r,x:t.clientX,y:t.clientY,type:a};var i=e.posAtCoords(sa(t));i&&("singleClick"==a?e.mouseDown=new ha(e,i,t,n):("doubleClick"==a?da:pa)(e,i.pos,i.inside,t)?t.preventDefault():aa(e,"pointer"))};var ha=function(e,t,n,r){var a,i,o=this;if(this.view=e,this.startDoc=e.state.doc,this.pos=t,this.event=n,this.flushed=r,this.selectNode=n[ma],this.allowDefault=n.shiftKey,t.inside>-1)a=e.state.doc.nodeAt(t.inside),i=t.inside;else{var s=e.state.doc.resolve(t.pos);a=s.parent,i=s.depth?s.before():0}this.mightDrag=null;var l=r?null:n.target,c=l?e.docView.nearestDesc(l,!0):null;this.target=c?c.dom:null,(a.type.spec.draggable&&!1!==a.type.spec.selectable||e.state.selection instanceof dn.NodeSelection&&i==e.state.selection.from)&&(this.mightDrag={node:a,pos:i,addAttr:this.target&&!this.target.draggable,setUneditable:this.target&&mn.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)),aa(e,"pointer")};function _a(e,t){return!!e.composing||!!(mn.safari&&Math.abs(t.timeStamp-e.compositionEndedAt)<500)&&(e.compositionEndedAt=-2e8,!0)}ha.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},ha.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(sa(e))),this.allowDefault||!t?aa(this.view,"pointer"):ua(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():this.flushed||mn.safari&&this.mightDrag&&!this.mightDrag.node.isAtom||mn.chrome&&!(this.view.state.selection instanceof dn.TextSelection)&&(t.pos==this.view.state.selection.from||t.pos==this.view.state.selection.to)?(ca(this.view,dn.Selection.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):aa(this.view,"pointer")}},ha.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),aa(this.view,"pointer")},na.touchdown=function(e){fa(e),aa(e,"pointer")},na.contextmenu=function(e){return fa(e)};var va=mn.android?5e3:-1;function ga(e,t){clearTimeout(e.composingTimeout),t>-1&&(e.composingTimeout=setTimeout((function(){return ba(e)}),t))}function ya(e){for(e.composing=!1;e.compositionNodes.length>0;)e.compositionNodes.pop().markParentsDirty()}function ba(e,t){if(e.domObserver.forceFlush(),ya(e),t||e.docView.dirty){var n=vr(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}ra.compositionstart=ra.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(),ba(e,!0),e.markCursor=null;else if(ba(e),mn.gecko&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length)for(var r=e.root.getSelection(),a=r.focusNode,i=r.focusOffset;a&&1==a.nodeType&&0!=i;){var o=i<0?a.lastChild:a.childNodes[i-1];if(!o)break;if(3==o.nodeType){r.collapse(o,o.nodeValue.length);break}a=o,i=-1}e.composing=!0}ga(e,va)},ra.compositionend=function(e,t){e.composing&&(e.composing=!1,e.compositionEndedAt=t.timeStamp,ga(e,20))};var wa=mn.ie&&mn.ie_version<15||mn.ios&&mn.webkit_version<604;function xa(e,t,n,r){var a=Ur(e,t,n,e.shiftKey,e.state.selection.$from);if(!e.someProp("handlePaste",(function(t){return t(e,r,a||pn.Slice.empty)}))&&a){var i=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(a),o=i?e.state.tr.replaceSelectionWith(i,e.shiftKey):e.state.tr.replaceSelection(a);e.dispatch(o.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste"))}}na.copy=ra.cut=function(e,t){var n=e.state.selection,r="cut"==t.type;if(!n.empty){var a=wa?null:t.clipboardData,i=qr(e,n.content()),o=i.dom,s=i.text;a?(t.preventDefault(),a.clearData(),a.setData("text/html",o.innerHTML),a.setData("text/plain",s)):function(e,t){if(e.dom.parentNode){var n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";var r=getSelection(),a=document.createRange();a.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(a),setTimeout((function(){n.parentNode&&n.parentNode.removeChild(n),e.focus()}),50)}}(e,o),r&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))}},ra.paste=function(e,t){var n=wa?null:t.clipboardData,r=n&&n.getData("text/html"),a=n&&n.getData("text/plain");n&&(r||a||n.files.length)?(xa(e,a,r,t),t.preventDefault()):function(e,t){if(e.dom.parentNode){var n=e.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus(),setTimeout((function(){e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?xa(e,r.value,null,t):xa(e,r.textContent,r.innerHTML,t)}),50)}}(e,t)};var ka=function(e,t){this.slice=e,this.move=t},Da=mn.mac?"altKey":"ctrlKey";for(var Ma in na.dragstart=function(e,t){var n=e.mouseDown;if(n&&n.done(),t.dataTransfer){var r=e.state.selection,a=r.empty?null:e.posAtCoords(sa(t));if(a&&a.pos>=r.from&&a.pos<=(r instanceof dn.NodeSelection?r.to-1:r.to));else if(n&&n.mightDrag)e.dispatch(e.state.tr.setSelection(dn.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(dn.NodeSelection.create(e.state.doc,i.posBefore)))}var o=e.state.selection.content(),s=qr(e,o),l=s.dom,c=s.text;t.dataTransfer.clearData(),t.dataTransfer.setData(wa?"Text":"text/html",l.innerHTML),wa||t.dataTransfer.setData("text/plain",c),e.dragging=new ka(o,!t[Da])}},na.dragend=function(e){window.setTimeout((function(){return e.dragging=null}),50)},ra.dragover=ra.dragenter=function(e,t){return t.preventDefault()},ra.drop=function(e,t){var n=e.dragging;if(e.dragging=null,t.dataTransfer){var r=e.posAtCoords(sa(t));if(r){var a=e.state.doc.resolve(r.pos);if(a){var i=n&&n.slice||Ur(e,t.dataTransfer.getData(wa?"Text":"text/plain"),wa?null:t.dataTransfer.getData("text/html"),!1,a),o=n&&!t[Da];if(e.someProp("handleDrop",(function(n){return n(e,t,i||pn.Slice.empty,o)})))t.preventDefault();else if(i){t.preventDefault();var s=i?Object(fn.h)(e.state.doc,a.pos,i):a.pos;null==s&&(s=a.pos);var l=e.state.tr;o&&l.deleteSelection();var c=l.mapping.map(s),u=0==i.openStart&&0==i.openEnd&&1==i.content.childCount,d=l.doc;if(u?l.replaceRangeWith(c,c,i.content.firstChild):l.replaceRange(c,c,i),!l.doc.eq(d)){var p=l.doc.resolve(c);if(u&&dn.NodeSelection.isSelectable(i.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(i.content.firstChild))l.setSelection(new dn.NodeSelection(p));else{var f=l.mapping.map(s);l.mapping.maps[l.mapping.maps.length-1].forEach((function(e,t,n,r){return f=r})),l.setSelection(Mr(e,p,l.doc.resolve(f)))}e.focus(),e.dispatch(l.setMeta("uiEvent","drop"))}}}}}},na.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())&&gr(e)}),20))},na.blur=function(e){e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),e.domObserver.currentSelection.set({}),e.focused=!1)},na.beforeinput=function(e,t){if(mn.chrome&&mn.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,Tn(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)}},ra)na[Ma]=ra[Ma];function Sa(e,t){if(e==t)return!0;for(var n in e)if(e[n]!==t[n])return!1;for(var r in t)if(!(r in e))return!1;return!0}var Ca=function(e,t){this.spec=t||Aa,this.side=this.spec.side||0,this.toDOM=e};Ca.prototype.map=function(e,t,n,r){var a=e.mapResult(t.from+r,this.side<0?-1:1),i=a.pos;return a.deleted?null:new Ea(i-n,i-n,this)},Ca.prototype.valid=function(){return!0},Ca.prototype.eq=function(e){return this==e||e instanceof Ca&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Sa(this.spec,e.spec))};var La=function(e,t){this.spec=t||Aa,this.attrs=e};La.prototype.map=function(e,t,n,r){var a=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,i=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return a>=i?null:new Ea(a,i,this)},La.prototype.valid=function(e,t){return t.from<t.to},La.prototype.eq=function(e){return this==e||e instanceof La&&Sa(this.attrs,e.attrs)&&Sa(this.spec,e.spec)},La.is=function(e){return e.type instanceof La};var Ta=function(e,t){this.spec=t||Aa,this.attrs=e};Ta.prototype.map=function(e,t,n,r){var a=e.mapResult(t.from+r,1);if(a.deleted)return null;var i=e.mapResult(t.to+r,-1);return i.deleted||i.pos<=a.pos?null:new Ea(a.pos-n,i.pos-n,this)},Ta.prototype.valid=function(e,t){var n=e.content.findIndex(t.from),r=n.index,a=n.offset;return a==t.from&&a+e.child(r).nodeSize==t.to},Ta.prototype.eq=function(e){return this==e||e instanceof Ta&&Sa(this.attrs,e.attrs)&&Sa(this.spec,e.spec)};var Ea=function(e,t,n){this.from=e,this.to=t,this.type=n},Oa={spec:{configurable:!0},inline:{configurable:!0}};Ea.prototype.copy=function(e,t){return new Ea(e,t,this.type)},Ea.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},Ea.prototype.map=function(e,t,n){return this.type.map(e,this,t,n)},Ea.widget=function(e,t,n){return new Ea(e,e,new Ca(t,n))},Ea.inline=function(e,t,n,r){return new Ea(e,t,new La(n,r))},Ea.node=function(e,t,n,r){return new Ea(e,t,new Ta(n,r))},Oa.spec.get=function(){return this.type.spec},Oa.inline.get=function(){return this.type instanceof La},Object.defineProperties(Ea.prototype,Oa);var ja=[],Aa={},Pa=function(e,t){this.local=e&&e.length?e:ja,this.children=t&&t.length?t:ja};Pa.create=function(e,t){return t.length?Fa(t,e,0,Aa):Ya},Pa.prototype.find=function(e,t,n){var r=[];return this.findInner(null==e?0:e,null==t?1e9:t,r,0,n),r},Pa.prototype.findInner=function(e,t,n,r,a){for(var i=0;i<this.local.length;i++){var o=this.local[i];o.from<=t&&o.to>=e&&(!a||a(o.spec))&&n.push(o.copy(o.from+r,o.to+r))}for(var s=0;s<this.children.length;s+=3)if(this.children[s]<t&&this.children[s+1]>e){var l=this.children[s]+1;this.children[s+2].findInner(e-l,t-l,n,r+l,a)}},Pa.prototype.map=function(e,t,n){return this==Ya||0==e.maps.length?this:this.mapInner(e,t,0,0,n||Aa)},Pa.prototype.mapInner=function(e,t,n,r,a){for(var i,o=0;o<this.local.length;o++){var s=this.local[o].map(e,n,r);s&&s.type.valid(t,s)?(i||(i=[])).push(s):a.onRemove&&a.onRemove(this.local[o].spec)}return this.children.length?function(e,t,n,r,a,i,o){for(var s=e.slice(),l=function(e,t,n,r){for(var o=0;o<s.length;o+=3){var l=s[o+1],c=void 0;-1==l||e>l+i||(t>=s[o]+i?s[o+1]=-1:n>=a&&(c=r-n-(t-e))&&(s[o]+=c,s[o+1]+=c))}},c=0;c<n.maps.length;c++)n.maps[c].forEach(l);for(var u=!1,d=0;d<s.length;d+=3)if(-1==s[d+1]){var p=n.map(e[d]+i),f=p-a;if(f<0||f>=r.content.size){u=!0;continue}var m=n.map(e[d+1]+i,-1)-a,h=r.content.findIndex(f),_=h.index,v=h.offset,g=r.maybeChild(_);if(g&&v==f&&v+g.nodeSize==m){var y=s[d+2].mapInner(n,g,p+1,e[d]+i+1,o);y!=Ya?(s[d]=f,s[d+1]=m,s[d+2]=y):(s[d+1]=-2,u=!0)}else u=!0}if(u){var b=Fa(function(e,t,n,r,a,i,o){function s(e,t){for(var i=0;i<e.local.length;i++){var l=e.local[i].map(r,a,t);l?n.push(l):o.onRemove&&o.onRemove(e.local[i].spec)}for(var c=0;c<e.children.length;c+=3)s(e.children[c+2],e.children[c]+t+1)}for(var l=0;l<e.length;l+=3)-1==e[l+1]&&s(e[l+2],t[l]+i+1);return n}(s,e,t||[],n,a,i,o),r,0,o);t=b.local;for(var w=0;w<s.length;w+=3)s[w+1]<0&&(s.splice(w,3),w-=3);for(var x=0,k=0;x<b.children.length;x+=3){for(var D=b.children[x];k<s.length&&s[k]<D;)k+=3;s.splice(k,0,b.children[x],b.children[x+1],b.children[x+2])}}return new Pa(t&&t.sort(Ra),s)}(this.children,i,e,t,n,r,a):i?new Pa(i.sort(Ra)):Ya},Pa.prototype.add=function(e,t){return t.length?this==Ya?Pa.create(e,t):this.addInner(e,t,0):this},Pa.prototype.addInner=function(e,t,n){var r,a=this,i=0;e.forEach((function(e,o){var s,l=o+n;if(s=Na(t,e,l)){for(r||(r=a.children.slice());i<r.length&&r[i]<o;)i+=3;r[i]==o?r[i+2]=r[i+2].addInner(e,s,l+1):r.splice(i,0,o,o+e.nodeSize,Fa(s,e,l+1,Aa)),i+=3}}));var o=Ia(i?za(t):t,-n);return new Pa(o.length?this.local.concat(o).sort(Ra):this.local,r||this.children)},Pa.prototype.remove=function(e){return 0==e.length||this==Ya?this:this.removeInner(e,0)},Pa.prototype.removeInner=function(e,t){for(var n=this.children,r=this.local,a=0;a<n.length;a+=3){for(var i=void 0,o=n[a]+t,s=n[a+1]+t,l=0,c=void 0;l<e.length;l++)(c=e[l])&&c.from>o&&c.to<s&&(e[l]=null,(i||(i=[])).push(c));if(i){n==this.children&&(n=this.children.slice());var u=n[a+2].removeInner(i,o+1);u!=Ya?n[a+2]=u:(n.splice(a,3),a-=3)}}if(r.length)for(var d=0,p=void 0;d<e.length;d++)if(p=e[d])for(var f=0;f<r.length;f++)r[f].eq(p,t)&&(r==this.local&&(r=this.local.slice()),r.splice(f--,1));return n==this.children&&r==this.local?this:r.length||n.length?new Pa(r,n):Ya},Pa.prototype.forChild=function(e,t){if(this==Ya)return this;if(t.isLeaf)return Pa.empty;for(var n,r,a=0;a<this.children.length;a+=3)if(this.children[a]>=e){this.children[a]==e&&(n=this.children[a+2]);break}for(var i=e+1,o=i+t.content.size,s=0;s<this.local.length;s++){var l=this.local[s];if(l.from<o&&l.to>i&&l.type instanceof La){var c=Math.max(i,l.from)-i,u=Math.min(o,l.to)-i;c<u&&(r||(r=[])).push(l.copy(c,u))}}if(r){var d=new Pa(r.sort(Ra));return n?new $a([d,n]):d}return n||Ya},Pa.prototype.eq=function(e){if(this==e)return!0;if(!(e instanceof Pa)||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},Pa.prototype.locals=function(e){return Ha(this.localsInner(e))},Pa.prototype.localsInner=function(e){if(this==Ya)return ja;if(e.inlineContent||!this.local.some(La.is))return this.local;for(var t=[],n=0;n<this.local.length;n++)this.local[n].type instanceof La||t.push(this.local[n]);return t};var Ya=new Pa;Pa.empty=Ya,Pa.removeOverlap=Ha;var $a=function(e){this.members=e};function Ia(e,t){if(!t||!e.length)return e;for(var n=[],r=0;r<e.length;r++){var a=e[r];n.push(new Ea(a.from+t,a.to+t,a.type))}return n}function Na(e,t,n){if(t.isLeaf)return null;for(var r=n+t.nodeSize,a=null,i=0,o=void 0;i<e.length;i++)(o=e[i])&&o.from>n&&o.to<r&&((a||(a=[])).push(o),e[i]=null);return a}function za(e){for(var t=[],n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function Fa(e,t,n,r){var a=[],i=!1;t.forEach((function(t,o){var s=Na(e,t,o+n);if(s){i=!0;var l=Fa(s,t,n+o+1,r);l!=Ya&&a.push(o,o+t.nodeSize,l)}}));for(var o=Ia(i?za(e):e,-n).sort(Ra),s=0;s<o.length;s++)o[s].type.valid(t,o[s])||(r.onRemove&&r.onRemove(o[s].spec),o.splice(s--,1));return o.length||a.length?new Pa(o,a):Ya}function Ra(e,t){return e.from-t.from||e.to-t.to}function Ha(e){for(var t=e,n=0;n<t.length-1;n++){var r=t[n];if(r.from!=r.to)for(var a=n+1;a<t.length;a++){var i=t[a];if(i.from!=r.from){i.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,i.from),Ba(t,a,r.copy(i.from,r.to)));break}i.to!=r.to&&(t==e&&(t=e.slice()),t[a]=i.copy(i.from,r.to),Ba(t,a+1,i.copy(r.to,i.to)))}}return t}function Ba(e,t,n){for(;t<e.length&&Ra(n,e[t])>0;)t++;e.splice(t,0,n)}function qa(e){var t=[];return e.someProp("decorations",(function(n){var r=n(e.state);r&&r!=Ya&&t.push(r)})),e.cursorWrapper&&t.push(Pa.create(e.state.doc,[e.cursorWrapper.deco])),$a.from(t)}$a.prototype.forChild=function(e,t){if(t.isLeaf)return Pa.empty;for(var n=[],r=0;r<this.members.length;r++){var a=this.members[r].forChild(e,t);a!=Ya&&(a instanceof $a?n=n.concat(a.members):n.push(a))}return $a.from(n)},$a.prototype.eq=function(e){if(!(e instanceof $a)||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},$a.prototype.locals=function(e){for(var t,n=!0,r=0;r<this.members.length;r++){var a=this.members[r].localsInner(e);if(a.length)if(t){n&&(t=t.slice(),n=!1);for(var i=0;i<a.length;i++)t.push(a[i])}else t=a}return t?Ha(n?t:t.sort(Ra)):ja},$a.from=function(e){switch(e.length){case 0:return Ya;case 1:return e[0];default:return new $a(e)}};var Ua=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=Ga(this),this.markCursor=null,this.cursorWrapper=null,Ka(this),this.nodeViews=Ja(this),this.docView=nr(this.state.doc,Wa(this),qa(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 ea(e,(function(t,n,r,a){return Rr(e,t,n,r,a)})),e.domObserver.start(),e.domChangeCount=0,e.eventHandlers=Object.create(null);var t=function(t){var n=na[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)||oa(e,t)||!e.editable&&t.type in ra||n(e,t)})};for(var n in na)t(n);mn.safari&&e.dom.addEventListener("input",(function(){return null})),ia(e)}(this),this.pluginViews=[],this.updatePluginViews()},Va={props:{configurable:!0},root:{configurable:!0}};function Wa(e){var t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",(function(n){if("function"==typeof n&&(n=n(e.state)),n)for(var r in n)"class"==r?t.class+=" "+n[r]:t[r]||"contenteditable"==r||"nodeName"==r||(t[r]=String(n[r]))})),[Ea.node(0,e.state.doc.content.size,t)]}function Ka(e){if(e.markCursor){var t=document.createElement("img");t.setAttribute("mark-placeholder","true"),e.cursorWrapper={dom:t,deco:Ea.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function Ga(e){return!e.someProp("editable",(function(t){return!1===t(e.state)}))}function Ja(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}Va.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},Ua.prototype.update=function(e){e.handleDOMEvents!=this._props.handleDOMEvents&&ia(this),this._props=e,this.updateStateInner(e.state,!0)},Ua.prototype.setProps=function(e){var t={};for(var n in this._props)t[n]=this._props[n];for(var r in t.state=this.state,e)t[r]=e[r];this.update(t)},Ua.prototype.updateState=function(e){this.updateStateInner(e,this.state.plugins!=e.plugins)},Ua.prototype.updateStateInner=function(e,t){var n=this,r=this.state,a=!1,i=!1;if(e.storedMarks&&this.composing&&(ya(this),i=!0),this.state=e,t){var o=Ja(this);(function(e,t){var n=0,r=0;for(var a in e){if(e[a]!=t[a])return!0;n++}for(var i in t)r++;return n!=r})(o,this.nodeViews)&&(this.nodeViews=o,a=!0),ia(this)}this.editable=Ga(this),Ka(this);var s=qa(this),l=Wa(this),c=t?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",u=a||!this.docView.matchesNode(e.doc,l,s);!u&&e.selection.eq(r.selection)||(i=!0);var d,p,f,m,h,_,v,g,y,b,w,x="preserve"==c&&i&&null==this.dom.style.overflowAnchor&&function(e){for(var t,n,r=e.dom.getBoundingClientRect(),a=Math.max(0,r.top),i=(r.left+r.right)/2,o=a+1;o<Math.min(innerHeight,r.bottom);o+=5){var s=e.root.elementFromPoint(i,o);if(s!=e.dom&&e.dom.contains(s)){var l=s.getBoundingClientRect();if(l.top>=a-20){t=s,n=l.top;break}}}return{refDOM:t,refTop:n,stack:Pn(e.dom)}}(this);if(i){this.domObserver.stop();var k=u&&(mn.ie||mn.chrome)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&(m=r.selection,h=e.selection,_=Math.min(m.$anchor.sharedDepth(m.head),h.$anchor.sharedDepth(h.head)),m.$anchor.start(_)!=h.$anchor.start(_));if(u){var D=mn.chrome?this.trackWrites=this.root.getSelection().focusNode:null;!a&&this.docView.update(e.doc,l,s,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=nr(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),f=d.root.getSelection(),kn(p.node,p.offset,f.anchorNode,f.anchorOffset)))?gr(this,k):(kr(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}if(this.updatePluginViews(r),"reset"==c)this.dom.scrollTop=0;else if("to selection"==c){var M=this.root.getSelection().focusNode;this.someProp("handleScrollToSelection",(function(e){return e(n)}))||(e.selection instanceof dn.NodeSelection?An(this,this.docView.domAfterPos(e.selection.from).getBoundingClientRect(),M):An(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,Yn(b,0==w?0:w-y))},Ua.prototype.destroyPluginViews=function(){for(var e;e=this.pluginViews.pop();)e.destroy&&e.destroy()},Ua.prototype.updatePluginViews=function(e){if(e&&e.plugins==this.state.plugins)for(var t=0;t<this.pluginViews.length;t++){var n=this.pluginViews[t];n.update&&n.update(this,e)}else{this.destroyPluginViews();for(var r=0;r<this.state.plugins.length;r++){var a=this.state.plugins[r];a.spec.view&&this.pluginViews.push(a.spec.view(this))}}},Ua.prototype.someProp=function(e,t){var n,r=this._props&&this._props[e];if(null!=r&&(n=t?t(r):r))return n;var a=this.state.plugins;if(a)for(var i=0;i<a.length;i++){var o=a[i].props[e];if(null!=o&&(n=t?t(o):o))return n}},Ua.prototype.hasFocus=function(){return this.root.activeElement==this.dom},Ua.prototype.focus=function(){this.domObserver.stop(),this.editable&&function(e){if(e.setActive)return e.setActive();if($n)return e.focus($n);var t=Pn(e);e.focus(null==$n?{get preventScroll(){return $n={preventScroll:!0},!0}}:void 0),$n||($n=!1,Yn(t,0))}(this.dom),gr(this),this.domObserver.start()},Va.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},Ua.prototype.posAtCoords=function(e){return zn(this,e)},Ua.prototype.coordsAtPos=function(e){return Rn(this,e)},Ua.prototype.domAtPos=function(e){return this.docView.domFromPos(e)},Ua.prototype.nodeDOM=function(e){var t=this.docView.descAt(e);return t?t.nodeDOM:null},Ua.prototype.posAtDOM=function(e,t,n){void 0===n&&(n=-1);var r=this.docView.posFromDOM(e,t,n);if(null==r)throw new RangeError("DOM position not inside the editor");return r},Ua.prototype.endOfTextblock=function(e,t){return Kn(this,t||this.state,e)},Ua.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,[],qa(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)},Ua.prototype.dispatchEvent=function(e){return function(e,t){oa(e,t)||!na[t.type]||!e.editable&&t.type in ra||na[t.type](e,t)}(this,e)},Ua.prototype.dispatch=function(e){var t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))},Object.defineProperties(Ua.prototype,Va);var Za=function(e,t){var n=this;this.editorView=e,this.width=t.width||1,this.color=t.color||"black",this.class=t.class,this.cursorPos=null,this.element=null,this.timeout=null,this.handlers=["dragover","dragend","drop","dragleave"].map((function(t){var r=function(e){return n[t](e)};return e.dom.addEventListener(t,r),{name:t,handler:r}}))};Za.prototype.destroy=function(){var e=this;this.handlers.forEach((function(t){var n=t.name,r=t.handler;return e.editorView.dom.removeEventListener(n,r)}))},Za.prototype.update=function(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&this.updateOverlay()},Za.prototype.setCursor=function(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())},Za.prototype.updateOverlay=function(){var e,t=this.editorView.state.doc.resolve(this.cursorPos);if(!t.parent.inlineContent){var n=t.nodeBefore,r=t.nodeAfter;if(n||r){var a=this.editorView.nodeDOM(this.cursorPos-(n?n.nodeSize:0)).getBoundingClientRect(),i=n?a.bottom:a.top;n&&r&&(i=(i+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),e={left:a.left,right:a.right,top:i-this.width/2,bottom:i+this.width/2}}}if(!e){var o=this.editorView.coordsAtPos(this.cursorPos);e={left:o.left-this.width/2,right:o.left+this.width/2,top:o.top,bottom:o.bottom}}var s=this.editorView.dom.offsetParent;this.element||(this.element=s.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none; background-color: "+this.color);var l=!s||s==document.body&&"static"==getComputedStyle(s).position?{left:-pageXOffset,top:-pageYOffset}:s.getBoundingClientRect();this.element.style.left=e.left-l.left+"px",this.element.style.top=e.top-l.top+"px",this.element.style.width=e.right-e.left+"px",this.element.style.height=e.bottom-e.top+"px"},Za.prototype.scheduleRemoval=function(e){var t=this;clearTimeout(this.timeout),this.timeout=setTimeout((function(){return t.setCursor(null)}),e)},Za.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(fn.h)(this.editorView.state.doc,n,this.editorView.dragging.slice))&&(n=t.pos),this.setCursor(n),this.scheduleRemoval(5e3)}}},Za.prototype.dragend=function(){this.scheduleRemoval(20)},Za.prototype.drop=function(){this.scheduleRemoval(20)},Za.prototype.dragleave=function(e){e.target!=this.editorView.dom&&this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)};var Xa=n("7f06"),Qa=n("576a"),ei=function(e){function t(t){e.call(this,t,t)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.map=function(n,r){var a=n.resolve(r.map(this.head));return t.valid(a)?new t(a):e.near(a)},t.prototype.content=function(){return pn.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 ti(this.anchor)},t.valid=function(e){var t=e.parent;if(t.isTextblock||!function(e){for(var t=e.depth;t>=0;t--){var n=e.index(t);if(0!=n)for(var r=e.node(t).child(n-1);;r=r.lastChild){if(0==r.childCount&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}}return!0}(e)||!function(e){for(var t=e.depth;t>=0;t--){var n=e.indexAfter(t),r=e.node(t);if(n!=r.childCount)for(var a=r.child(n);;a=a.firstChild){if(0==a.childCount&&!a.inlineContent||a.isAtom||a.type.spec.isolating)return!0;if(a.inlineContent)return!1}}return!0}(e))return!1;var n=t.type.spec.allowGapCursor;if(null!=n)return n;var r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock},t.findFrom=function(e,n,r){e:for(;;){if(!r&&t.valid(e))return e;for(var a=e.pos,i=null,o=e.depth;;o--){var s=e.node(o);if(n>0?e.indexAfter(o)<s.childCount:e.index(o)>0){i=s.child(n>0?e.indexAfter(o):e.index(o)-1);break}if(0==o)return null;a+=n;var l=e.doc.resolve(a);if(t.valid(l))return l}for(;;){var c=n>0?i.firstChild:i.lastChild;if(!c){if(i.isAtom&&!i.isText&&!dn.NodeSelection.isSelectable(i)){e=e.doc.resolve(a+i.nodeSize*n),r=!1;continue e}break}i=c,a+=n;var u=e.doc.resolve(a);if(t.valid(u))return u}return null}},t}(dn.Selection);ei.prototype.visible=!1,dn.Selection.jsonID("gapcursor",ei);var ti=function(e){this.pos=e};ti.prototype.map=function(e){return new ti(e.map(this.pos))},ti.prototype.resolve=function(e){var t=e.resolve(this.pos);return ei.valid(t)?new ei(t):dn.Selection.near(t)};var ni=Object(Xa.a)({ArrowLeft:ri("horiz",-1),ArrowRight:ri("horiz",1),ArrowUp:ri("vert",-1),ArrowDown:ri("vert",1)});function ri(e,t){var n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,r,a){var i=e.selection,o=t>0?i.$to:i.$from,s=i.empty;if(i instanceof dn.TextSelection){if(!a.endOfTextblock(n)||0==o.depth)return!1;s=!1,o=e.doc.resolve(t>0?o.after():o.before())}var l=ei.findFrom(o,t,s);return!!l&&(r&&r(e.tr.setSelection(new ei(l))),!0)}}function ai(e,t,n){if(!e.editable)return!1;var r=e.state.doc.resolve(t);if(!ei.valid(r))return!1;var a=e.posAtCoords({left:n.clientX,top:n.clientY}).inside;return!(a>-1&&dn.NodeSelection.isSelectable(e.state.doc.nodeAt(a))||(e.dispatch(e.state.tr.setSelection(new ei(r))),0))}function ii(e){if(!(e.selection instanceof ei))return null;var t=document.createElement("div");return t.className="ProseMirror-gapcursor",Qa.b.create(e.doc,[Qa.a.widget(e.selection.head,t,{key:"gapcursor"})])}function oi(e,t){return!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0)}function si(e,t){for(;e;e="start"==t?e.firstChild:e.lastChild)if(e.isTextblock)return!0;return!1}function li(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 ci(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 ui(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 di(e,t){var n=e.selection,r=n.$head,a=n.$anchor;if(!r.parent.type.spec.code||!r.sameParent(a))return!1;var i=r.node(-1),o=r.indexAfter(-1),s=ui(i.contentMatchAt(o));if(!i.canReplaceWith(o,o,s))return!1;if(t){var l=r.after(),c=e.tr.replaceWith(l,l,s.createAndFill());c.setSelection(dn.Selection.near(c.doc.resolve(l),1)),t(c.scrollIntoView())}return!0}function pi(e,t){var n=e.selection,r=n.$from,a=n.$to;if(e.selection instanceof dn.NodeSelection&&e.selection.node.isBlock)return!(!r.parentOffset||!Object(fn.g)(e.doc,r.pos)||(t&&t(e.tr.split(r.pos).scrollIntoView()),0));if(!r.parent.isBlock)return!1;if(t){var i=a.parentOffset==a.parent.content.size,o=e.tr;e.selection instanceof dn.TextSelection&&o.deleteSelection();var s=0==r.depth?null:ui(r.node(-1).contentMatchAt(r.indexAfter(-1))),l=i&&s?[{type:s}]:null,c=Object(fn.g)(o.doc,o.mapping.map(r.pos),1,l);l||c||!Object(fn.g)(o.doc,o.mapping.map(r.pos),1,s&&[{type:s}])||(l=[{type:s}],c=!0),c&&(o.split(o.mapping.map(r.pos),1,l),i||r.parentOffset||r.parent.type==s||!r.node(-1).canReplace(r.index(-1),r.indexAfter(-1),pn.Fragment.from(s.create(),r.parent))||o.setNodeMarkup(o.mapping.map(r.before()),s)),t(o.scrollIntoView())}return!0}function fi(e,t,n){var r,a,i=t.nodeBefore,o=t.nodeAfter;if(i.type.spec.isolating||o.type.spec.isolating)return!1;if(function(e,t,n){var r=t.nodeBefore,a=t.nodeAfter,i=t.index();return!(!(r&&a&&r.type.compatibleContent(a.type))||(!r.content.size&&t.parent.canReplace(i-1,i)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),0):!t.parent.canReplace(i,i+1)||!a.isTextblock&&!Object(fn.f)(e.doc,t.pos)||(n&&n(e.tr.clearIncompatible(t.pos,r.type,r.contentMatchAt(r.childCount)).join(t.pos).scrollIntoView()),0)))}(e,t,n))return!0;if(t.parent.canReplace(t.index(),t.index()+1)&&(r=(a=i.contentMatchAt(i.childCount)).findWrapping(o.type))&&a.matchType(r[0]||o.type).validEnd){if(n){for(var s=t.pos+o.nodeSize,l=pn.Fragment.empty,c=r.length-1;c>=0;c--)l=pn.Fragment.from(r[c].create(null,l));l=pn.Fragment.from(i.copy(l));var u=e.tr.step(new fn.b(t.pos-1,s,t.pos,s,new pn.Slice(l,1,0),r.length,!0)),d=s+2*r.length;Object(fn.f)(u.doc,d)&&u.join(d),n(u.scrollIntoView())}return!0}var p=dn.Selection.findFrom(t,1),f=p&&p.$from.blockRange(p.$to),m=f&&Object(fn.k)(f);return null!=m&&m>=t.depth&&(n&&n(e.tr.lift(f,m).scrollIntoView()),!0)}function mi(e,t){return function(n,r){var a=n.selection,i=a.from,o=a.to,s=!1;return n.doc.nodesBetween(i,o,(function(r,a){if(s)return!1;if(r.isTextblock&&!r.hasMarkup(e,t))if(r.type==e)s=!0;else{var i=n.doc.resolve(a),o=i.index();s=i.parent.canReplaceWith(o,o+1,e)}})),!!s&&(r&&r(n.tr.setBlockType(i,o,e,t).scrollIntoView()),!0)}}function hi(e,t){return function(n,r){var a=n.selection,i=a.empty,o=a.$cursor,s=a.ranges;if(i&&!o||!function(e,t,n){for(var r=function(r){var a=t[r],i=a.$from,o=a.$to,s=0==i.depth&&e.type.allowsMarkType(n);if(e.nodesBetween(i.pos,o.pos,(function(e){if(s)return!1;s=e.inlineContent&&e.type.allowsMarkType(n)})),s)return{v:!0}},a=0;a<t.length;a++){var i=r(a);if(i)return i.v}return!1}(n.doc,s,e))return!1;if(r)if(o)e.isInSet(n.storedMarks||o.marks())?r(n.tr.removeStoredMark(e)):r(n.tr.addStoredMark(e.create(t)));else{for(var l=!1,c=n.tr,u=0;!l&&u<s.length;u++){var d=s[u],p=d.$from,f=d.$to;l=n.doc.rangeHasMark(p.pos,f.pos,e)}for(var m=0;m<s.length;m++){var h=s[m],_=h.$from,v=h.$to;l?c.removeMark(_.pos,v.pos,e):c.addMark(_.pos,v.pos,e.create(t))}r(c.scrollIntoView())}return!0}}function _i(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(t,n,r){for(var a=0;a<e.length;a++)if(e[a](t,n,r))return!0;return!1}}var vi=_i(oi,(function(e,t,n){var r=e.selection.$cursor;if(!r||(n?!n.endOfTextblock("backward",e):r.parentOffset>0))return!1;var a=li(r);if(!a){var i=r.blockRange(),o=i&&Object(fn.k)(i);return null!=o&&(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)}var s=a.nodeBefore;if(!s.type.spec.isolating&&fi(e,a,t))return!0;if(0==r.parent.content.size&&(si(s,"end")||dn.NodeSelection.isSelectable(s))){if(t){var l=e.tr.deleteRange(r.before(),r.after());l.setSelection(si(s,"end")?dn.Selection.findFrom(l.doc.resolve(l.mapping.map(a.pos,-1)),-1):dn.NodeSelection.create(l.doc,a.pos-s.nodeSize)),t(l.scrollIntoView())}return!0}return!(!s.isAtom||a.depth!=r.depth-1||(t&&t(e.tr.delete(a.pos-s.nodeSize,a.pos).scrollIntoView()),0))}),(function(e,t,n){var r=e.selection,a=r.$head,i=a;if(!r.empty)return!1;if(a.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):a.parentOffset>0)return!1;i=li(a)}var o=i&&i.nodeBefore;return!(!o||!dn.NodeSelection.isSelectable(o)||(t&&t(e.tr.setSelection(dn.NodeSelection.create(e.doc,i.pos-o.nodeSize)).scrollIntoView()),0))})),gi=_i(oi,(function(e,t,n){var r=e.selection.$cursor;if(!r||(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size))return!1;var a=ci(r);if(!a)return!1;var i=a.nodeAfter;if(fi(e,a,t))return!0;if(0==r.parent.content.size&&(si(i,"start")||dn.NodeSelection.isSelectable(i))){if(t){var o=e.tr.deleteRange(r.before(),r.after());o.setSelection(si(i,"start")?dn.Selection.findFrom(o.doc.resolve(o.mapping.map(a.pos)),1):dn.NodeSelection.create(o.doc,o.mapping.map(a.pos))),t(o.scrollIntoView())}return!0}return!(!i.isAtom||a.depth!=r.depth-1||(t&&t(e.tr.delete(a.pos,a.pos+i.nodeSize).scrollIntoView()),0))}),(function(e,t,n){var r=e.selection,a=r.$head,i=a;if(!r.empty)return!1;if(a.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):a.parentOffset<a.parent.content.size)return!1;i=ci(a)}var o=i&&i.nodeAfter;return!(!o||!dn.NodeSelection.isSelectable(o)||(t&&t(e.tr.setSelection(dn.NodeSelection.create(e.doc,i.pos)).scrollIntoView()),0))})),yi={Enter:_i((function(e,t){var n=e.selection,r=n.$head,a=n.$anchor;return!(!r.parent.type.spec.code||!r.sameParent(a)||(t&&t(e.tr.insertText("\n").scrollIntoView()),0))}),(function(e,t){var n=e.selection,r=n.$from,a=n.$to;if(r.parent.inlineContent||a.parent.inlineContent)return!1;var i=ui(r.parent.contentMatchAt(a.indexAfter()));if(!i||!i.isTextblock)return!1;if(t){var o=(!r.parentOffset&&a.index()<a.parent.childCount?r:a).pos,s=e.tr.insert(o,i.createAndFill());s.setSelection(dn.TextSelection.create(s.doc,o+1)),t(s.scrollIntoView())}return!0}),(function(e,t){var n=e.selection.$cursor;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){var r=n.before();if(Object(fn.g)(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}var a=n.blockRange(),i=a&&Object(fn.k)(a);return null!=i&&(t&&t(e.tr.lift(a,i).scrollIntoView()),!0)}),pi),"Mod-Enter":di,Backspace:vi,"Mod-Backspace":vi,Delete:gi,"Mod-Delete":gi,"Mod-a":function(e,t){return t&&t(e.tr.setSelection(new dn.AllSelection(e.doc))),!0}},bi={"Ctrl-h":yi.Backspace,"Alt-Backspace":yi["Mod-Backspace"],"Ctrl-d":yi.Delete,"Ctrl-Alt-Backspace":yi["Mod-Delete"],"Alt-Delete":yi["Mod-Delete"],"Alt-d":yi["Mod-Delete"]};for(var wi in yi)bi[wi]=yi[wi];var xi=("undefined"!=typeof navigator?/Mac/.test(navigator.platform):"undefined"!=typeof os&&"darwin"==os.platform())?bi:yi,ki=function(e,t){var n;this.match=e,this.handler="string"==typeof t?(n=t,function(e,t,r,a){var i=n;if(t[1]){var o=t[0].lastIndexOf(t[1]);i+=t[0].slice(o+t[1].length);var s=(r+=o)-a;s>0&&(i=t[0].slice(o-s,o)+i,r=a)}return e.tr.insertText(i,r,a)}):t};function Di(e,t,n,r,a,i){if(e.composing)return!1;var o=e.state,s=o.doc.resolve(t);if(s.parent.type.spec.code)return!1;for(var l=s.parent.textBetween(Math.max(0,s.parentOffset-500),s.parentOffset,null,"")+r,c=0;c<a.length;c++){var u=a[c].match.exec(l),d=u&&a[c].handler(o,u,t-(u[0].length-r.length),n);if(d)return e.dispatch(d.setMeta(i,{transform:d,from:t,to:n,text:r})),!0}return!1}function Mi(e,t){for(var n=e.plugins,r=0;r<n.length;r++){var a=n[r],i=void 0;if(a.spec.isInputRules&&(i=a.getState(e))){if(t){for(var o=e.tr,s=i.transform,l=s.steps.length-1;l>=0;l--)o.step(s.steps[l].invert(s.docs[l]));var c=o.doc.resolve(i.from).marks();t(o.replaceWith(i.from,i.to,e.schema.text(i.text,c)))}return!0}}return!1}new ki(/--$/,"—"),new ki(/\.\.\.$/,"…"),new ki(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),new ki(/"$/,"”"),new ki(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),new ki(/'$/,"’");var Si=n("986d");function Ci(e,t){const{from:n,to:r}=e.selection;let a=[];e.doc.nodesBetween(n,r,e=>{a=[...a,...e.marks]});const i=a.find(e=>e.type.name===t.name);return i?i.attrs:{}}function Li(e,t){const{from:n,to:r}=e.selection;let a=[];e.doc.nodesBetween(n,r,e=>{a=[...a,e]});const i=a.reverse().find(e=>e.type.name===t.name);return i?i.attrs:{}}function Ti(e=null,t=null){if(!e||!t)return!1;const n=e.parent.childAfter(e.parentOffset);if(!n.node)return!1;const r=n.node.marks.find(e=>e.type===t);if(!r)return!1;let a=e.index(),i=e.start()+n.offset,o=a+1,s=i+n.node.nodeSize;for(;a>0&&r.isInSet(e.parent.child(a-1).marks);)a-=1,i-=e.parent.child(a).nodeSize;for(;o<e.parent.childCount&&r.isInSet(e.parent.child(o).marks);)s+=e.parent.child(o).nodeSize,o+=1;return{from:i,to:s}}function Ei(e,t,n={}){const r=Object(Si.findSelectedNodeOfType)(t)(e.selection)||Object(Si.findParentNode)(e=>e.type===t)(e.selection);return Object.keys(n).length&&r?r.node.hasMarkup(t,{...r.node.attrs,...n}):!!r}var Oi=n("8bbf"),ji=n.n(Oi);function Ai(e,t){return function(n,r){var a=n.selection,i=a.$from,o=a.$to,s=i.blockRange(o),l=!1,c=s;if(!s)return!1;if(s.depth>=2&&i.node(s.depth-1).type.compatibleContent(e)&&0==s.startIndex){if(0==i.index(s.depth-1))return!1;var u=n.doc.resolve(s.start-2);c=new pn.NodeRange(u,u,s.depth),s.endIndex<s.parent.childCount&&(s=new pn.NodeRange(i,n.doc.resolve(o.end(s.depth)),s.depth)),l=!0}var d=Object(fn.i)(c,e,t,s);return!!d&&(r&&r(function(e,t,n,r,a){for(var i=pn.Fragment.empty,o=n.length-1;o>=0;o--)i=pn.Fragment.from(n[o].type.create(n[o].attrs,i));e.step(new fn.b(t.start-(r?2:0),t.end,t.start,t.end,new pn.Slice(i,0,0),n.length,!0));for(var s=0,l=0;l<n.length;l++)n[l].type==a&&(s=l+1);for(var c=n.length-s,u=t.start+n.length-(r?2:0),d=t.parent,p=t.startIndex,f=t.endIndex,m=!0;p<f;p++,m=!1)!m&&Object(fn.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 Pi(e){return function(t,n){var r=t.selection,a=r.$from,i=r.$to,o=a.blockRange(i,(function(t){return t.childCount&&t.firstChild.type==e}));return!!o&&(!n||(a.node(o.depth-1).type==e?function(e,t,n,r){var a=e.tr,i=r.end,o=r.$to.end(r.depth);return i<o&&(a.step(new fn.b(i-1,o,i,o,new pn.Slice(pn.Fragment.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new pn.NodeRange(a.doc.resolve(r.$from.pos),a.doc.resolve(o),r.depth)),t(a.lift(r,Object(fn.k)(r)).scrollIntoView()),!0}(t,n,e,o):function(e,t,n){for(var r=e.tr,a=n.parent,i=n.end,o=n.endIndex-1,s=n.startIndex;o>s;o--)i-=a.child(o).nodeSize,r.delete(i-1,i+1);var l=r.doc.resolve(n.start),c=l.nodeAfter,u=0==n.startIndex,d=n.endIndex==a.childCount,p=l.node(-1),f=l.index(-1);if(!p.canReplace(f+(u?0:1),f+1,c.content.append(d?pn.Fragment.empty:pn.Fragment.from(a))))return!1;var m=l.pos,h=m+c.nodeSize;return r.step(new fn.b(m-(u?1:0),h+(d?1:0),m+1,h-1,new pn.Slice((u?pn.Fragment.empty:pn.Fragment.from(a.copy(pn.Fragment.empty))).append(d?pn.Fragment.empty:pn.Fragment.from(a.copy(pn.Fragment.empty))),u?0:1,d?0:1),u?0:1)),t(r.scrollIntoView()),!0}(t,n,o)))}}function Yi(e){return function(t,n){var r=t.selection,a=r.$from,i=r.$to,o=a.blockRange(i,(function(t){return t.childCount&&t.firstChild.type==e}));if(!o)return!1;var s=o.startIndex;if(0==s)return!1;var l=o.parent,c=l.child(s-1);if(c.type!=e)return!1;if(n){var u=c.lastChild&&c.lastChild.type==l.type,d=pn.Fragment.from(u?e.create():null),p=new pn.Slice(pn.Fragment.from(e.create(null,pn.Fragment.from(l.type.create(null,d)))),u?3:1,0),f=o.start,m=o.end;n(t.tr.step(new fn.b(f-(u?3:1),m,f,m,p,1,!0)).scrollIntoView())}return!0}}var $i=function(e,t){var n;this.match=e,this.handler="string"==typeof t?(n=t,function(e,t,r,a){var i=n;if(t[1]){var o=t[0].lastIndexOf(t[1]);i+=t[0].slice(o+t[1].length);var s=(r+=o)-a;s>0&&(i=t[0].slice(o-s,o)+i,r=a)}return e.tr.insertText(i,r,a)}):t};function Ii(e,t,n,r){return new $i(e,(function(e,a,i,o){var s=n instanceof Function?n(a):n,l=e.tr.delete(i,o),c=l.doc.resolve(i).blockRange(),u=c&&Object(fn.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(fn.f)(l.doc,i-1)&&(!r||r(a,d))&&l.join(i-1),l}))}function Ni(e,t,n){return new $i(e,(function(e,r,a,i){var o=e.doc.resolve(a),s=n instanceof Function?n(r):n;return o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),t)?e.tr.delete(a,i).setBlockType(a,a,t,s):null}))}function zi(e,t,n){return new $i(e,(e,r,a,i)=>{const o=n instanceof Function?n(r):n,{tr:s}=e,l=r.length-1;let c=i,u=a;if(r[l]){const n=a+r[0].indexOf(r[l-1]),o=n+r[l-1].length-1,d=n+r[l-1].lastIndexOf(r[l]),p=d+r[l].length;if(function(e,t,n){let r=[];return n.doc.nodesBetween(e,t,(e,t)=>{r=[...r,...e.marks.map(n=>({start:t,end:t+e.nodeSize,mark:n}))]}),r}(a,i,e).filter(e=>{const{excluded:n}=e.mark.type;return n.find(e=>e.name===t.name)}).filter(e=>e.end>n).length)return!1;p<o&&s.delete(p,o),d>n&&s.delete(n,d),u=n,c=u+r[l].length}return s.addMark(u,c,t.create(o)),s.removeStoredMark(t),s})}function Fi(e,t,n){const r=a=>{const i=[];return a.forEach(a=>{if(a.isText){const{text:r}=a;let o,s=0;do{if(o=e.exec(r),o){const e=o.index,r=e+o[0].length,l=n instanceof Function?n(o[0]):n;e>0&&i.push(a.cut(s,e)),i.push(a.cut(e,r).mark(t.create(l).addToSet(a.marks))),s=r}}while(o);s<r.length&&i.push(a.cut(s))}else i.push(a.copy(r(a.content)))}),pn.Fragment.fromArray(i)};return new dn.Plugin({props:{transformPasted:e=>new pn.Slice(r(e.content),e.openStart,e.openEnd)}})}function Ri(e,t,n){const r=(a,i)=>{const o=[];return a.forEach(a=>{if(a.isText){const{text:r,marks:s}=a;let l,c=0;const u=!!s.filter(e=>"link"===e.type.name)[0];for(;!u&&null!==(l=e.exec(r));)if(i&&i.type.allowsMarkType(t)&&l[1]){const e=l.index,r=e+l[0].length,i=e+l[0].indexOf(l[1]),s=i+l[1].length,u=n instanceof Function?n(l):n;e>0&&o.push(a.cut(c,e)),o.push(a.cut(i,s).mark(t.create(u).addToSet(a.marks))),c=r}c<r.length&&o.push(a.cut(c))}else o.push(a.copy(r(a.content,a)))}),pn.Fragment.fromArray(o)};return new dn.Plugin({props:{transformPasted:e=>new pn.Slice(r(e.content),e.openStart,e.openEnd)}})}function Hi(e,t,n={}){return(r,a,i)=>Ei(r,e,n)?mi(t)(r,a,i):mi(e,n)(r,a,i)}function Bi(e,t){return e.type===t.nodes.bullet_list||e.type===t.nodes.ordered_list||e.type===t.nodes.todo_list}function qi(e,t){return(n,r,a)=>{const{schema:i,selection:o}=n,{$from:s,$to:l}=o,c=s.blockRange(l);if(!c)return!1;const u=Object(Si.findParentNode)(e=>Bi(e,i))(o);if(c.depth>=1&&u&&c.depth-u.depth<=1){if(u.node.type===e)return Pi(t)(n,r,a);if(Bi(u.node,i)&&e.validContent(u.node.content)){const{tr:t}=n;return t.setNodeMarkup(u.pos,e),r&&r(t),!1}}return Ai(e)(n,r,a)}}function Ui(e,t={}){return(n,r,a)=>Ei(n,e,t)?function(e,t){var n=e.selection,r=n.$from,a=n.$to,i=r.blockRange(a),o=i&&Object(fn.k)(i);return null!=o&&(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)}(n,r):function(e,t){return function(n,r){var a=n.selection,i=a.$from,o=a.$to,s=i.blockRange(o),l=s&&Object(fn.i)(s,e,t);return!!l&&(r&&r(n.tr.wrap(s,l).scrollIntoView()),!0)}}(e,t)(n,r,a)}new $i(/--$/,"—"),new $i(/\.\.\.$/,"…"),new $i(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),new $i(/"$/,"”"),new $i(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),new $i(/'$/,"’");class Vi{constructor(e,{editor:t,extension:n,parent:r,node:a,view:i,decorations:o,getPos:s}){this.component=e,this.editor=t,this.extension=n,this.parent=r,this.node=a,this.view=i,this.decorations=o,this.isNode=!!this.node.marks,this.isMark=!this.isNode,this.getPos=this.isMark?this.getMarkPos:s,this.captureEvents=!0,this.dom=this.createDOM(),this.contentDOM=this.vm.$refs.content}createDOM(){const e=ji.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=ji.a.config.silent;ji.a.config.silent=!0,Object.entries(e).forEach(([e,t])=>{this.vm._props[e]=t}),ji.a.config.silent=t}updateAttrs(e){if(!this.view.editable)return;const{state:t}=this.view,{type:n}=this.node,r=this.getPos(),a={...this.node.attrs,...e},i=this.isMark?t.tr.removeMark(r.from,r.to,n).addMark(r.from,r.to,n.create(a)):t.tr.setNodeMarkup(r,null,a);this.view.dispatch(i)}ignoreMutation(e){return!("selection"===e.type||this.contentDOM&&this.contentDOM.contains(e.target))}stopEvent(e){if("function"==typeof this.extension.stopEvent)return this.extension.stopEvent(e);const t=!!this.extension.schema.draggable;if(t&&"mousedown"===e.type){const t=e.target.closest&&e.target.closest("[data-drag-handle]");t&&(this.dom===t||this.dom.contains(t))&&(this.captureEvents=!1,document.addEventListener("dragend",()=>{this.captureEvents=!0},{once:!0}))}const n="copy"===e.type,r="paste"===e.type,a="cut"===e.type,i=e.type.startsWith("drag")||"drop"===e.type;return!(t&&i||n||r||a)&&this.captureEvents}selectNode(){this.updateComponentProps({selected:!0})}deselectNode(){this.updateComponentProps({selected:!1})}getMarkPos(){const e=this.view.posAtDOM(this.dom);return Ti(this.view.state.doc.resolve(e),this.node.type)}destroy(){this.vm.$destroy()}}class Wi{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 Ki{constructor(e=[],t){e.forEach(e=>{e.bindEditor(t),e.init()}),this.extensions=e}get nodes(){return this.extensions.filter(e=>"node"===e.type).reduce((e,{name:t,schema:n})=>({...e,[t]:n}),{})}get options(){const{view:e}=this;return this.extensions.reduce((t,n)=>({...t,[n.name]:new Proxy(n.options,{set(t,n,r){const a=t[n]!==r;return Object.assign(t,{[n]:r}),a&&e.updateState(e.state),!0}})}),{})}get marks(){return this.extensions.filter(e=>"mark"===e.type).reduce((e,{name:t,schema:n})=>({...e,[t]:n}),{})}get plugins(){return this.extensions.filter(e=>e.plugins).reduce((e,{plugins:t})=>[...e,...t],[])}keymaps({schema:e}){return[...this.extensions.filter(e=>["extension"].includes(e.type)).filter(e=>e.keys).map(t=>t.keys({schema:e})),...this.extensions.filter(e=>["node","mark"].includes(e.type)).filter(e=>e.keys).map(t=>t.keys({type:e["".concat(t.type,"s")][t.name],schema:e}))].map(e=>Object(Xa.b)(e))}inputRules({schema:e,excludedExtensions:t}){if(!(t instanceof Array)&&t)return[];const n=t instanceof Array?this.extensions.filter(e=>!t.includes(e.name)):this.extensions;return[...n.filter(e=>["extension"].includes(e.type)).filter(e=>e.inputRules).map(t=>t.inputRules({schema:e})),...n.filter(e=>["node","mark"].includes(e.type)).filter(e=>e.inputRules).map(t=>t.inputRules({type:e["".concat(t.type,"s")][t.name],schema:e}))].reduce((e,t)=>[...e,...t],[])}pasteRules({schema:e,excludedExtensions:t}){if(!(t instanceof Array)&&t)return[];const n=t instanceof Array?this.extensions.filter(e=>!t.includes(e.name)):this.extensions;return[...n.filter(e=>["extension"].includes(e.type)).filter(e=>e.pasteRules).map(t=>t.pasteRules({schema:e})),...n.filter(e=>["node","mark"].includes(e.type)).filter(e=>e.pasteRules).map(t=>t.pasteRules({type:e["".concat(t.type,"s")][t.name],schema:e}))].reduce((e,t)=>[...e,...t],[])}commands({schema:e,view:t}){return this.extensions.filter(e=>e.commands).reduce((n,r)=>{const{name:a,type:i}=r,o={},s=r.commands({schema:e,...["node","mark"].includes(i)?{type:e["".concat(i,"s")][a]}:{}}),l=(e,n)=>!!t.editable&&(t.focus(),e(n)(t.state,t.dispatch,t)),c=(e,t)=>{Array.isArray(t)?o[e]=e=>t.forEach(t=>l(t,e)):"function"==typeof t&&(o[e]=e=>l(t,e))};return"object"==typeof s?Object.entries(s).forEach(([e,t])=>{c(e,t)}):c(a,s),{...n,...o}},{})}}class Gi extends Wi{constructor(e={}){super(e)}get type(){return"mark"}get view(){return null}get schema(){return null}command(){return()=>{}}}function Ji(e=0,t=0,n=0){return Math.min(Math.max(parseInt(e,10),t),n)}class Zi extends Wi{constructor(e={}){super(e)}get type(){return"node"}get view(){return null}get schema(){return null}command(){return()=>{}}}class Xi extends Zi{get name(){return"doc"}get schema(){return{content:"block+"}}}class Qi extends Zi{get name(){return"paragraph"}get schema(){return{content:"inline*",group:"block",draggable:!1,parseDOM:[{tag:"p"}],toDOM:()=>["p",0]}}commands({type:e}){return()=>mi(e)}}class eo extends Zi{get name(){return"text"}get schema(){return{group:"inline"}}}class to extends class{on(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this}emit(e,...t){this._callbacks=this._callbacks||{};const n=this._callbacks[e];return n&&n.forEach(e=>e.apply(this,t)),this}off(e,t){if(arguments.length){const n=this._callbacks?this._callbacks[e]:null;n&&(t?this._callbacks[e]=n.filter(e=>e!==t):delete this._callbacks[e])}else this._callbacks={};return this}}{constructor(e={}){super(),this.defaultOptions={editorProps:{},editable:!0,autoFocus:null,extensions:[],content:"",topNode:"doc",emptyDocument:{type:"doc",content:[{type:"paragraph"}]},useBuiltInExtensions:!0,disableInputRules:!1,disablePasteRules:!1,dropCursor:{},enableDropCursor:!0,enableGapCursor:!0,parseOptions:{},injectCSS:!0,onInit:()=>{},onTransaction:()=>{},onUpdate:()=>{},onFocus:()=>{},onBlur:()=>{},onPaste:()=>{},onDrop:()=>{}},this.events=["init","transaction","update","focus","blur","paste","drop"],this.init(e)}init(e={}){this.setOptions({...this.defaultOptions,...e}),this.focused=!1,this.selection={from:0,to:0},this.element=document.createElement("div"),this.extensions=this.createExtensions(),this.nodes=this.createNodes(),this.marks=this.createMarks(),this.schema=this.createSchema(),this.plugins=this.createPlugins(),this.keymaps=this.createKeymaps(),this.inputRules=this.createInputRules(),this.pasteRules=this.createPasteRules(),this.view=this.createView(),this.commands=this.createCommands(),this.setActiveNodesAndMarks(),this.options.injectCSS&&function(e){{const t=document.createElement("style");t.type="text/css",t.textContent=e;const{head:n}=document,{firstChild:r}=n;r?n.insertBefore(t,r):n.appendChild(t)}}('.ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n'),null!==this.options.autoFocus&&this.focus(this.options.autoFocus),this.events.forEach(e=>{var t;this.on(e,this.options[(t="on ".concat(e),t.replace(/(?:^\w|[A-Z]|\b\w)/g,(e,t)=>0===t?e.toLowerCase():e.toUpperCase()).replace(/\s+/g,""))]||(()=>{}))}),this.emit("init",{view:this.view,state:this.state}),this.extensions.view=this.view}setOptions(e){this.options={...this.options,...e},this.view&&this.state&&this.view.updateState(this.state)}get builtInExtensions(){return this.options.useBuiltInExtensions?[new Xi,new eo,new Qi]:[]}get state(){return this.view?this.view.state:null}createExtensions(){return new Ki([...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 pn.Schema({topNode:this.options.topNode,nodes:this.nodes,marks:this.marks})}createState(){return dn.EditorState.create({schema:this.schema,doc:this.createDocument(this.options.content),plugins:[...this.plugins,(t={rules:this.inputRules},n=t.rules,r=new dn.Plugin({state:{init:function(){return null},apply:function(e,t){var n=e.getMeta(this);return n||(e.selectionSet||e.docChanged?null:t)}},props:{handleTextInput:function(e,t,a,i){return Di(e,t,a,i,n,r)},handleDOMEvents:{compositionend:function(e){setTimeout((function(){var t=e.state.selection.$cursor;t&&Di(e,t.pos,t.pos,"",n,r)}))}}},isInputRules:!0}),r),...this.pasteRules,...this.keymaps,Object(Xa.b)({Backspace:Mi}),Object(Xa.b)(xi),...this.options.enableDropCursor?[(e=this.options.dropCursor,void 0===e&&(e={}),new dn.Plugin({view:function(t){return new Za(t,e)}}))]:[],...this.options.enableGapCursor?[new dn.Plugin({props:{decorations:ii,createSelectionBetween:function(e,t,n){if(t.pos==n.pos&&ei.valid(n))return new ei(n)},handleClick:ai,handleKeyDown:ni}})]:[],new dn.Plugin({key:new dn.PluginKey("editable"),props:{editable:()=>this.options.editable}}),new dn.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 dn.Plugin({props:this.options.editorProps})]});var e,t,n,r}createDocument(e,t=this.options.parseOptions){if(null===e)return this.schema.nodeFromJSON(this.options.emptyDocument);if("object"==typeof e)try{return this.schema.nodeFromJSON(e)}catch(t){return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",t),this.schema.nodeFromJSON(this.options.emptyDocument)}if("string"==typeof e){const n="<div>".concat(e,"</div>"),r=(new window.DOMParser).parseFromString(n,"text/html").body.firstElementChild;return pn.DOMParser.fromSchema(this.schema).parse(r,t)}return!1}createView(){return new Ua(this.element,{state:this.createState(),handlePaste:(...e)=>{this.emit("paste",...e)},handleDrop:(...e)=>{this.emit("drop",...e)},dispatchTransaction:this.dispatchTransaction.bind(this)})}setParentComponent(e=null){e&&this.view.setProps({nodeViews:this.initNodeViews({parent:e,extensions:[...this.builtInExtensions,...this.options.extensions]})})}initNodeViews({parent:e,extensions:t}){return t.filter(e=>["node","mark"].includes(e.type)).filter(e=>e.view).reduce((t,n)=>({...t,[n.name]:(t,r,a,i)=>{const o=n.view;return new Vi(o,{editor:this,extension:n,parent:e,node:t,view:r,getPos:a,decorations:i})}}),{})}dispatchTransaction(e){const t=this.state.apply(e);this.view.updateState(t),this.selection={from:this.state.selection.from,to:this.state.selection.to},this.setActiveNodesAndMarks(),this.emit("transaction",{getHTML:this.getHTML.bind(this),getJSON:this.getJSON.bind(this),state:this.state,transaction:e}),e.docChanged&&!e.getMeta("preventUpdate")&&this.emitUpdate(e)}emitUpdate(e){this.emit("update",{getHTML:this.getHTML.bind(this),getJSON:this.getJSON.bind(this),state:this.state,transaction:e})}resolveSelection(e=null){if(this.selection&&null===e)return this.selection;if("start"===e||!0===e)return{from:0,to:0};if("end"===e){const{doc:e}=this.state;return{from:e.content.size,to:e.content.size}}return{from:e,to:e}}focus(e=null){if(this.view.focused&&null===e||!1===e)return;const{from:t,to:n}=this.resolveSelection(e);this.setSelection(t,n),setTimeout(()=>this.view.focus(),10)}setSelection(e=0,t=0){const{doc:n,tr:r}=this.state,a=Ji(e,0,n.content.size),i=Ji(t,0,n.content.size),o=dn.TextSelection.create(n,a,i),s=r.setSelection(o);this.view.dispatch(s)}blur(){this.view.dom.blur()}getSchemaJSON(){return JSON.parse(JSON.stringify({nodes:this.extensions.nodes,marks:this.extensions.marks}))}getHTML(){const e=document.createElement("div"),t=pn.DOMSerializer.fromSchema(this.schema).serializeFragment(this.state.doc.content);return e.appendChild(t),e.innerHTML}getJSON(){return this.state.doc.toJSON()}setContent(e={},t=!1,n){const{doc:r,tr:a}=this.state,i=this.createDocument(e,n),o=dn.TextSelection.create(r,0,r.content.size),s=a.setSelection(o).replaceSelectionWith(i,!1).setMeta("preventUpdate",!t);this.view.dispatch(s)}clearContent(e=!1){this.setContent(this.options.emptyDocument,e)}setActiveNodesAndMarks(){this.activeMarks=Object.entries(this.schema.marks).reduce((e,[t,n])=>({...e,[t]:(e={})=>function(e,t){const{from:n,$from:r,to:a,empty:i}=e.selection;return i?!!t.isInSet(e.storedMarks||r.marks()):!!e.doc.rangeHasMark(n,a,t)}(this.state,n)}),{}),this.activeMarkAttrs=Object.entries(this.schema.marks).reduce((e,[t,n])=>({...e,[t]:Ci(this.state,n)}),{}),this.activeNodes=Object.entries(this.schema.nodes).reduce((e,[t,n])=>({...e,[t]:(e={})=>Ei(this.state,n,e)}),{})}getMarkAttrs(e=null){return this.activeMarkAttrs[e]}getNodeAttrs(e=null){return{...Li(this.state,this.schema.nodes[e])}}get isActive(){return Object.entries({...this.activeMarks,...this.activeNodes}).reduce((e,[t,n])=>({...e,[t]:(e={})=>n(e)}),{})}registerPlugin(e=null,t){const n="function"==typeof t?t(e,this.state.plugins):[e,...this.state.plugins],r=this.state.reconfigure({plugins:n});this.view.updateState(r)}unregisterPlugin(e=null){if(!e||!this.view.docView)return;const t=this.state.reconfigure({plugins:this.state.plugins.filter(t=>!t.key.startsWith("".concat(e,"$")))});this.view.updateState(t)}destroy(){this.view&&this.view.destroy()}}var no={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 ro{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 ao={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 dn.Plugin({key:new dn.PluginKey("menu_bar"),view:e=>new ro({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 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:"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,oo=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,so=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,lo=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,co=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,uo=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,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.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,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:"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,mo=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,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:"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,_o=q({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M22.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,vo=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,go=(n("3ce4"),n("55be"));new dn.PluginKey("collab");var yo=function(){};yo.prototype.append=function(e){return e.length?(e=yo.from(e),!this.length&&e||e.length<200&&this.leafAppend(e)||this.length<200&&e.leafPrepend(this)||this.appendInner(e)):this},yo.prototype.prepend=function(e){return e.length?yo.from(e).append(this):this},yo.prototype.appendInner=function(e){return new wo(this,e)},yo.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?yo.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},yo.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},yo.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)},yo.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var r=[];return this.forEach((function(t,n){return r.push(e(t,n))}),t,n),r},yo.from=function(e){return e instanceof yo?e:e&&e.length?new bo(e):yo.empty};var bo=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var a=t;a<n;a++)if(!1===e(this.values[a],r+a))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var a=t-1;a>=n;a--)if(!1===e(this.values[a],r+a))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=200)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=200)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}(yo);yo.empty=new bo([]);var wo=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var a=this.left.length;return!(t<a&&!1===this.left.forEachInner(e,t,Math.min(n,a),r))&&!(n>a&&!1===this.right.forEachInner(e,Math.max(t-a,0),Math.min(this.length,n)-a,r+a))&&void 0},t.prototype.forEachInvertedInner=function(e,t,n,r){var a=this.left.length;return!(t>a&&!1===this.right.forEachInvertedInner(e,t-a,Math.max(n,a)-a,r+a))&&!(n<a&&!1===this.left.forEachInvertedInner(e,Math.min(t,a),n,r))&&void 0},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(yo),xo=yo,ko=function(e,t){this.items=e,this.eventCount=t};ko.prototype.popEvent=function(e,t){var n=this;if(0==this.eventCount)return null;for(var r,a,i=this.items.length;;i--)if(this.items.get(i-1).selection){--i;break}t&&(r=this.remapping(i,this.items.length),a=r.maps.length);var o,s,l=e.tr,c=[],u=[];return this.items.forEach((function(e,t){if(!e.step)return r||(r=n.remapping(i,t+1),a=r.maps.length),a--,void u.push(e);if(r){u.push(new Do(e.map));var d,p=e.step.map(r.slice(a));p&&l.maybeStep(p).doc&&(d=l.mapping.maps[l.mapping.maps.length-1],c.push(new Do(d,null,null,c.length+u.length))),a--,d&&r.appendMap(d,a)}else l.maybeStep(e.step);return e.selection?(o=r?e.selection.map(r.slice(a)):e.selection,s=new ko(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}},ko.prototype.addTransform=function(e,t,n,r){for(var a=[],i=this.eventCount,o=this.items,s=!r&&o.length?o.get(o.length-1):null,l=0;l<e.steps.length;l++){var c,u=e.steps[l].invert(e.docs[l]),d=new Do(e.mapping.maps[l],u,t);(c=s&&s.merge(d))&&(d=c,l?a.pop():o=o.slice(0,o.length-1)),a.push(d),t&&(i++,t=null),r||(s=d)}var p,f,m,h=i-n.depth;return h>So&&(f=h,(p=o).forEach((function(e,t){if(e.selection&&0==f--)return m=t,!1})),o=p.slice(m),i-=h),new ko(o.append(a),i)},ko.prototype.remapping=function(e,t){var n=new fn.a;return this.items.forEach((function(t,r){var a=null!=t.mirrorOffset&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:null;n.appendMap(t.map,a)}),e,t),n},ko.prototype.addMaps=function(e){return 0==this.eventCount?this:new ko(this.items.append(e.map((function(e){return new Do(e)}))),this.eventCount)},ko.prototype.rebased=function(e,t){if(!this.eventCount)return this;var n=[],r=Math.max(0,this.items.length-t),a=e.mapping,i=e.steps.length,o=this.eventCount;this.items.forEach((function(e){e.selection&&o--}),r);var s=t;this.items.forEach((function(t){var r=a.getMirror(--s);if(null!=r){i=Math.min(i,r);var l=a.maps[r];if(t.step){var c=e.steps[r].invert(e.docs[r]),u=t.selection&&t.selection.map(a.slice(s+1,r));u&&o++,n.push(new Do(l,c,u))}else n.push(new Do(l))}}),r);for(var l=[],c=t;c<i;c++)l.push(new Do(a.maps[c]));var u=this.items.slice(0,r).append(l).append(n),d=new ko(u,o);return d.emptyItemCount()>500&&(d=d.compress(this.items.length-n.length)),d},ko.prototype.emptyItemCount=function(){var e=0;return this.items.forEach((function(t){t.step||e++})),e},ko.prototype.compress=function(e){void 0===e&&(e=this.items.length);var t=this.remapping(0,e),n=t.maps.length,r=[],a=0;return this.items.forEach((function(i,o){if(o>=e)r.push(i),i.selection&&a++;else if(i.step){var s=i.step.map(t.slice(n)),l=s&&s.getMap();if(n--,l&&t.appendMap(l,n),s){var c=i.selection&&i.selection.map(t.slice(n));c&&a++;var u,d=new Do(l.invert(),s,c),p=r.length-1;(u=r.length&&r[p].merge(d))?r[p]=u:r.push(d)}}else i.map&&n--}),this.items.length,0),new ko(xo.from(r.reverse()),a)},ko.empty=new ko(xo.empty,0);var Do=function(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r};Do.prototype.merge=function(e){if(this.step&&e.step&&!e.selection){var t=e.step.merge(this.step);if(t)return new Do(t.getMap().invert(),t,this.selection)}};var Mo=function(e,t,n,r){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r},So=20;function Co(e){var t=[];return e.forEach((function(e,n,r,a){return t.push(r,a)})),t}function Lo(e,t){if(!e)return null;for(var n=[],r=0;r<e.length;r+=2){var a=t.map(e[r],1),i=t.map(e[r+1],-1);a<=i&&n.push(a,i)}return n}function To(e,t,n,r){var a=jo(t),i=Ao.get(t).spec.config,o=(r?e.undone:e.done).popEvent(t,a);if(o){var s=o.selection.resolve(o.transform.doc),l=(r?e.done:e.undone).addTransform(o.transform,t.selection.getBookmark(),i,a),c=new Mo(r?l:o.remaining,r?o.remaining:l,null,0);n(o.transform.setSelection(s).setMeta(Ao,{redo:r,historyState:c}).scrollIntoView())}}var Eo=!1,Oo=null;function jo(e){var t=e.plugins;if(Oo!=t){Eo=!1,Oo=t;for(var n=0;n<t.length;n++)if(t[n].spec.historyPreserveItems){Eo=!0;break}}return Eo}var Ao=new dn.PluginKey("history"),Po=new dn.PluginKey("closeHistory");function Yo(e){return e={depth:e&&e.depth||100,newGroupDelay:e&&e.newGroupDelay||500},new dn.Plugin({key:Ao,state:{init:function(){return new Mo(ko.empty,ko.empty,null,0)},apply:function(t,n,r){return function(e,t,n,r){var a,i=n.getMeta(Ao);if(i)return i.historyState;n.getMeta(Po)&&(e=new Mo(e.done,e.undone,null,0));var o=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(o&&o.getMeta(Ao))return o.getMeta(Ao).redo?new Mo(e.done.addTransform(n,null,r,jo(t)),e.undone,Co(n.mapping.maps[n.steps.length-1]),e.prevTime):new Mo(e.done,e.undone.addTransform(n,null,r,jo(t)),null,e.prevTime);if(!1===n.getMeta("addToHistory")||o&&!1===o.getMeta("addToHistory"))return(a=n.getMeta("rebased"))?new Mo(e.done.rebased(n,a),e.undone.rebased(n,a),Lo(e.prevRanges,n.mapping),e.prevTime):new Mo(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),Lo(e.prevRanges,n.mapping),e.prevTime);var s=0==e.prevTime||!o&&(e.prevTime<(n.time||0)-r.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;var n=!1;return e.mapping.maps[0].forEach((function(e,r){for(var a=0;a<t.length;a+=2)e<=t[a+1]&&r>=t[a]&&(n=!0)})),n}(n,e.prevRanges)),l=o?Lo(e.prevRanges,n.mapping):Co(n.mapping.maps[n.steps.length-1]);return new Mo(e.done.addTransform(n,s?t.selection.getBookmark():null,r,jo(t)),ko.empty,l,n.time)}(n,r,t,e)}},config:e})}function $o(e,t){var n=Ao.getState(e);return!(!n||0==n.done.eventCount||(t&&To(n,e,t,!1),0))}function Io(e,t){var n=Ao.getState(e);return!(!n||0==n.undone.eventCount||(t&&To(n,e,t,!0),0))}function No(e){var t=Ao.getState(e);return t?t.done.eventCount:0}function zo(e){var t=Ao.getState(e);return t?t.undone.eventCount:0}class Fo extends Zi{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()=>Ui(e)}keys({type:e}){return{"Ctrl->":Ui(e)}}inputRules({type:e}){return[Ii(/^\s*>\s$/,e)]}}class Ro extends Zi{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()=>qi(e,t.nodes.list_item)}keys({type:e,schema:t}){return{"Shift-Ctrl-8":qi(e,t.nodes.list_item)}}inputRules({type:e}){return[Ii(/^\s*([-+*])\s$/,e)]}}class Ho extends Zi{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()=>Hi(e,t.nodes.paragraph)}keys({type:e}){return{"Shift-Ctrl-\\":mi(e)}}inputRules({type:e}){return[Ni(/^```$/,e)]}}class Bo extends Zi{get name(){return"hard_break"}get schema(){return{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM:()=>["br"]}}commands({type:e}){return()=>_i(di,(t,n)=>(n(t.tr.replaceSelectionWith(e.create()).scrollIntoView()),!0))}keys({type:e}){const t=_i(di,(t,n)=>(n(t.tr.replaceSelectionWith(e.create()).scrollIntoView()),!0));return{"Mod-Enter":t,"Shift-Enter":t}}}class qo extends Zi{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=>Hi(e,t.nodes.paragraph,n)}keys({type:e}){return this.options.levels.reduce((t,n)=>({...t,["Shift-Ctrl-".concat(n)]:mi(e,{level:n})}),{})}inputRules({type:e}){return this.options.levels.map(t=>Ni(new RegExp("^(#{1,".concat(t,"})\\s$")),e,()=>({level:t})))}}class Uo extends Zi{get name(){return"list_item"}get schema(){return{content:"paragraph block*",defining:!0,draggable:!1,parseDOM:[{tag:"li"}],toDOM:()=>["li",0]}}keys({type:e}){return{Enter:(t=e,function(e,n){var r=e.selection,a=r.$from,i=r.$to,o=r.node;if(o&&o.isBlock||a.depth<2||!a.sameParent(i))return!1;var s=a.node(-1);if(s.type!=t)return!1;if(0==a.parent.content.size&&a.node(-1).childCount==a.indexAfter(-1)){if(2==a.depth||a.node(-3).type!=t||a.index(-2)!=a.node(-2).childCount-1)return!1;if(n){for(var l=pn.Fragment.empty,c=a.index(-1)>0,u=a.depth-(c?1:2);u>=a.depth-3;u--)l=pn.Fragment.from(a.node(u).copy(l));l=l.append(pn.Fragment.from(t.createAndFill()));var d=e.tr.replace(a.before(c?null:-1),a.after(-3),new pn.Slice(l,c?3:2,2));d.setSelection(e.selection.constructor.near(d.doc.resolve(a.pos+(c?3:2)))),n(d.scrollIntoView())}return!0}var p=i.pos==a.end()?s.contentMatchAt(0).defaultType:null,f=e.tr.delete(a.pos,i.pos),m=p&&[null,{type:p}];return!!Object(fn.g)(f.doc,a.pos,2,m)&&(n&&n(f.split(a.pos,2,m).scrollIntoView()),!0)}),Tab:Yi(e),"Shift-Tab":Pi(e)};var t}}class Vo extends Zi{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()=>qi(e,t.nodes.list_item)}keys({type:e,schema:t}){return{"Shift-Ctrl-9":qi(e,t.nodes.list_item)}}inputRules({type:e}){return[Ii(/^(\d+)\.\s$/,e,e=>({order:+e[1]}),(e,t)=>t.childCount+t.attrs.order===+e[1])]}}Object(go.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 Wo extends Zi{get name(){return"todo_item"}get defaultOptions(){return{nested:!1}}get view(){return{props:["node","updateAttrs","view"],methods:{onChange(){this.updateAttrs({done:!this.node.attrs.done})}},template:'\n <li :data-type="node.type.name" :data-done="node.attrs.done.toString()" data-drag-handle>\n <span class="todo-checkbox" contenteditable="false" @click="onChange"></span>\n <div class="todo-content" ref="content" :contenteditable="view.editable.toString()"></div>\n </li>\n '}}get schema(){return{attrs:{done:{default:!1}},draggable:!0,content:this.options.nested?"(paragraph|todo_list)+":"paragraph+",toDOM:e=>{const{done:t}=e.attrs;return["li",{"data-type":this.name,"data-done":t.toString()},["span",{class:"todo-checkbox",contenteditable:"false"}],["div",{class:"todo-content"},0]]},parseDOM:[{priority:51,tag:'[data-type="'.concat(this.name,'"]'),getAttrs:e=>({done:"true"===e.getAttribute("data-done")})}]}}keys({type:e}){return{Enter:(t=e,function(e,n){const{$from:r,$to:a,node:i}=e.selection;if(i&&i.isBlock||r.depth<2||!r.sameParent(a))return!1;const o=r.node(-1);if(o.type!=t)return!1;if(0==r.parent.content.size){if(2==r.depth||r.node(-3).type!=t||r.index(-2)!=r.node(-2).childCount-1)return!1;if(n){let a=pn.Fragment.empty;const i=r.index(-1)>0;for(let e=r.depth-(i?1:2);e>=r.depth-3;e--)a=pn.Fragment.from(r.node(e).copy(a));a=a.append(pn.Fragment.from(t.createAndFill()));const o=e.tr.replace(r.before(i?null:-1),r.after(-3),new pn.Slice(a,i?3:2,2));o.setSelection(e.selection.constructor.near(o.doc.resolve(r.pos+(i?3:2)))),n(o.scrollIntoView())}return!0}const s=a.pos==r.end()?o.contentMatchAt(r.indexAfter(-1)).defaultType:null,l=e.tr.delete(r.pos,a.pos);let c=s&&[{type:t},{type:s}];return c||(c=[{type:t},null]),!!function(e,t,n=1,r){const a=e.resolve(t),i=a.depth-n,o=r&&r[r.length-1]||a.parent;if(i<0||a.parent.type.spec.isolating||!a.parent.canReplace(a.index(),a.parent.childCount)||!o.type.validContent(a.parent.content.cutByIndex(a.index(),a.parent.childCount)))return!1;for(let e=a.depth-1,t=n-2;e>i;e--,t--){const n=a.node(e),i=a.index(e);if(n.type.spec.isolating)return!1;let o=n.content.cutByIndex(i,n.childCount);const s=r&&r[t]||n;if(s!=n&&(o=o.replaceChild(0,s.type.create(s.attrs))),!n.canReplace(i+1,n.childCount))return!1}const s=a.indexAfter(i),l=r&&r[0];return a.node(i).canReplaceWith(s,s,l?l.type:a.node(i+1).type)}(l.doc,r.pos,2,c)&&(n&&n(l.split(r.pos,2,c).scrollIntoView()),!0)}),Tab:this.options.nested?Yi(e):()=>{},"Shift-Tab":Pi(e)};var t}}class Ko extends Zi{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()=>qi(e,t.nodes.todo_item)}inputRules({type:e}){return[Ii(/^\s*(\[ \])\s$/,e)]}}class Go extends Gi{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":hi(e)}}commands({type:e}){return()=>hi(e)}inputRules({type:e}){return[zi(/(?:\*\*|__)([^*_]+)(?:\*\*|__)$/,e)]}pasteRules({type:e}){return[Ri(/(?:\*\*|__)([^*_]+)(?:\*\*|__)/g,e)]}}class Jo extends Gi{get name(){return"code"}get schema(){return{excludes:"_",parseDOM:[{tag:"code"}],toDOM:()=>["code",0]}}keys({type:e}){return{"Mod-`":hi(e)}}commands({type:e}){return()=>hi(e)}inputRules({type:e}){return[zi(/(?:`)([^`]+)(?:`)$/,e)]}pasteRules({type:e}){return[Ri(/(?:`)([^`]+)(?:`)/g,e)]}}class Zo extends Gi{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":hi(e)}}commands({type:e}){return()=>hi(e)}inputRules({type:e}){return[zi(/(?:^|[^_])(_([^_]+)_)$/,e),zi(/(?:^|[^*])(\*([^*]+)\*)$/,e)]}pasteRules({type:e}){return[Ri(/_([^_]+)_/g,e),Ri(/\*([^*]+)\*/g,e)]}}class Xo extends Gi{get name(){return"link"}get defaultOptions(){return{openOnClick:!0,target:null}}get schema(){return{attrs:{href:{default:null},target:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:e=>({href:e.getAttribute("href"),target:e.getAttribute("target")})}],toDOM:e=>["a",{...e.attrs,rel:"noopener noreferrer nofollow",target:this.options.target},0]}}commands({type:e}){return t=>t.href?function(e,t){return(n,r)=>{const{tr:a,selection:i,doc:o}=n,{ranges:s,empty:l}=i;if(l){const{from:n,to:r}=Ti(i.$from,e);o.rangeHasMark(n,r,e)&&a.removeMark(n,r,e),a.addMark(n,r,e.create(t))}else s.forEach(n=>{const{$to:r,$from:i}=n;o.rangeHasMark(i.pos,r.pos,e)&&a.removeMark(i.pos,r.pos,e),a.addMark(i.pos,r.pos,e.create(t))});return r(a)}}(e,t):function(e){return(t,n)=>{const{tr:r,selection:a}=t;let{from:i,to:o}=a;const{$from:s,empty:l}=a;if(l){const t=Ti(s,e);i=t.from,o=t.to}return r.removeMark(i,o,e),n(r)}}(e)}pasteRules({type:e}){return[Fi(/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 dn.Plugin({props:{handleClick:(e,t,n)=>{const{schema:r}=e.state,a=Ci(e.state,r.marks.link);a.href&&n.target instanceof HTMLAnchorElement&&(n.stopPropagation(),window.open(a.href,a.target))}}})]:[]}}class Qo extends Gi{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":hi(e)}}commands({type:e}){return()=>hi(e)}inputRules({type:e}){return[zi(/~([^~]+)~$/,e)]}pasteRules({type:e}){return[Ri(/~([^~]+)~/g,e)]}}class es extends Gi{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":hi(e)}}commands({type:e}){return()=>hi(e)}}class ts extends Wi{get name(){return"history"}get defaultOptions(){return{depth:"",newGroupDelay:""}}keys(){return{"Mod-z":$o,"Mod-y":Io,"Shift-Mod-z":Io,"Mod-я":$o,"Shift-Mod-я":Io}}get plugins(){return[Yo({depth:this.options.depth,newGroupDelay:this.options.newGroupDelay})]}commands(){return{undo:()=>$o,redo:()=>Io,undoDepth:()=>No,redoDepth:()=>zo}}}var ns=v.classes,rs=v.variants,as=q({name:"SwEditor",install:function(e,t){N(e,t,this)},components:{EditorContent:no,EditorMenuBar:ao,UnderlineIcon:io,BoldIcon:oo,CodingIcon:so,ItalicIcon:lo,ListIcon:co,ListUlIcon:uo,ParagraphIcon:po,QuoteIcon:fo,StrikethroughIcon:mo,UndoIcon:ho,RedoIcon:_o,CodeBlockIcon:vo,SwDropdown:mt},props:{setEditor:{type:String,default:""},classes:{type:Object,default:function(){return ns}},variant:{type:String,required:!1,default:null},variants:{type:Object,default:function(){return rs}},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-no-wrap",itemIcon:"w-5 h-5 mr-3 text-secondary"}}}},data:function(){return{editor:null}},computed:{getEditorStyle:function(){var e=F(this.variant,this.variants);return l(l({},this.classes),e)}},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 to({disableInputRules:!0,disablePasteRules:!0,extensions:[new Fo,new Ho,new Bo,new qo({levels:[1,2,3]}),new Ro,new Vo,new Uo,new Wo,new Ko,new Go,new Jo,new Zo,new Xo,new Qo,new es,new ts],content:"",onUpdate:function(t){var n=(0,t.getHTML)();e.$emit("input",n)}}),this.editor.setContent(this.setEditor),setTimeout((function(){for(var t=0;t<e.$refs.myEditor.$el.children.length;t++)e.$refs.myEditor.$el.children[t].className+=" ".concat(e.getEditorStyle.proseMirror)}),200)},getIconContainerStyle:function(e){return e?this.getEditorStyle.activeIconContainer:this.getEditorStyle.iconContainer},mobileMenuIconContainerStyle:function(e){return e?this.getEditorStyle.menuDropdown.activeIconContainer:this.getEditorStyle.menuDropdown.iconContainer}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.getEditorStyle.editorContainer},[n("div",{class:e.getEditorStyle.menuDropdown.container},[n("sw-dropdown",{attrs:{classes:e.dropdownClasses}},[n("div",{attrs:{slot:"activator"},slot:"activator"},[n("svg",{class:e.getEditorStyle.menuDropdown.activator,attrs:{fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M6 10a2 2 0 11-4 0 2 2 0 014 0zM12 10a2 2 0 11-4 0 2 2 0 014 0zM16 12a2 2 0 100-4 2 2 0 000 4z"}})])]),n("editor-menu-bar",{attrs:{editor:e.editor},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.commands,a=t.isActive;return[n("div",{class:e.getEditorStyle.menuDropdown.menuContainer},[n("span",{class:e.mobileMenuIconContainerStyle(a.bold()),on:{click:r.bold}},[n("bold-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(a.italic()),on:{click:r.italic}},[n("italic-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(a.strike()),on:{click:r.strike}},[n("strikethrough-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(a.underline()),on:{click:r.underline}},[n("underline-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(a.code()),on:{click:r.code}},[n("coding-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(a.paragraph()),on:{click:r.paragraph}},[n("paragraph-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(a.heading({level:1})),on:{click:function(e){return r.heading({level:1})}}},[e._v(" H1 ")]),n("span",{class:e.mobileMenuIconContainerStyle(a.heading({level:2})),on:{click:function(e){return r.heading({level:2})}}},[e._v(" H2 ")]),n("span",{class:e.mobileMenuIconContainerStyle(a.heading({level:3})),on:{click:function(e){return r.heading({level:3})}}},[e._v(" H3 ")]),n("span",{class:e.mobileMenuIconContainerStyle(a.bullet_list()),on:{click:r.bullet_list}},[n("list-ul-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(a.ordered_list()),on:{click:r.ordered_list}},[n("list-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(a.blockquote()),on:{click:r.blockquote}},[n("quote-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(a.code_block()),on:{click:r.code_block}},[n("code-block-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(),on:{click:r.undo}},[n("undo-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(),on:{click:r.redo}},[n("redo-icon",{class:e.getEditorStyle.menuDropdown.icon})],1)])]}}])})],1)],1),n("editor-menu-bar",{class:e.getEditorStyle.editorMenuBar,attrs:{editor:e.editor},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.commands,a=t.isActive;return[n("div",{class:e.getEditorStyle.menuContainer},[n("span",{class:e.getIconContainerStyle(a.bold()),on:{click:r.bold}},[n("bold-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(a.italic()),on:{click:r.italic}},[n("italic-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(a.strike()),on:{click:r.strike}},[n("strikethrough-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(a.underline()),on:{click:r.underline}},[n("underline-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(a.code()),on:{click:r.code}},[n("coding-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(a.paragraph()),on:{click:r.paragraph}},[n("paragraph-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(a.heading({level:1})),on:{click:function(e){return r.heading({level:1})}}},[e._v(" H1 ")]),n("span",{class:e.getIconContainerStyle(a.heading({level:2})),on:{click:function(e){return r.heading({level:2})}}},[e._v(" H2 ")]),n("span",{class:e.getIconContainerStyle(a.heading({level:3})),on:{click:function(e){return r.heading({level:3})}}},[e._v(" H3 ")]),n("span",{class:e.getIconContainerStyle(a.bullet_list()),on:{click:r.bullet_list}},[n("list-ul-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(a.ordered_list()),on:{click:r.ordered_list}},[n("list-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(a.blockquote()),on:{click:r.blockquote}},[n("quote-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(a.code_block()),on:{click:r.code_block}},[n("code-block-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(),on:{click:r.undo}},[n("undo-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(),on:{click:r.redo}},[n("redo-icon",{class:e.getEditorStyle.icon})],1)])]}}])}),n("editor-content",{ref:"myEditor",class:e.getEditorStyle.editor,attrs:{editor:e.editor}})],1)}),[],!1,null,null,null).exports,is=P.classes,ss=q({props:{currentStep:{type:Number,default:null},steps:{type:Number,default:null},classes:{type:Object,default:function(){return is}}},methods:{stepStyle:function(e){return this.currentStep===e?[this.classes.currentStep,this.classes.progress]:this.currentStep>e?[this.classes.previousStep,this.classes.progress]:this.currentStep<e?[this.classes.nextStep,this.classes.progress]:[this.classes.progress]}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.classes.navigationContainer},[e.steps>0?n("div",{class:e.classes.progressesContainer},[n("div",{class:e.classes.progressesSubContainer},e._l(e.steps,(function(t,r){return n("div",{key:r,class:e.stepStyle(t),on:{click:function(t){return e.$emit("update:currentStep",r+1)}}},[e.currentStep>t?n("svg",{class:e.classes.icon,attrs:{fill:"currentColor",viewBox:"0 0 20 20"},on:{click:function(t){return e.$emit("update:currentStep",r+1)}}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"}})]):e._e()])})),0)]):e._e()])}),[],!1,null,null,null).exports,ls=P.classes,cs=P.variants,us=q({install:function(e,t){N(e,t,this)},components:{WizardNavigation:ss},props:{currentStep:{type:Number,default:0},steps:{type:Number,default:0},classes:{type:Object,default:function(){return ls}},variant:{type:String,default:null},variants:{type:Object,default:function(){return cs}},allowNavigationRedirect:{type:Boolean,default:!1}},computed:{wizardStyle:function(){var e=F(this.variant,this.variants);return l(l({},this.classes),e)},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},[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)],1)}),[],!1,null,null,null).exports,ds=P.classes,ps=q({name:"SwWizardStep",props:{description:{type:String,default:null},title:{type:String,default:null},classes:{type:Object,default:function(){return ds}}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.classes.stepContainer},[e.title||e.description?n("div",{class:e.classes.stepHeadingContainer},[e.title?n("p",{class:e.classes.stepTitle},[e._v(" "+e._s(e.title)+" ")]):e._e(),e.description?n("p",{class:e.classes.stepDescription},[e._v(" "+e._s(e.description)+" ")]):e._e()]):e._e(),e._t("default")],2)}),[],!1,null,null,null).exports;function fs(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function ms(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){fs(i,r,a,o,s,"next",e)}function s(e){fs(i,r,a,o,s,"throw",e)}o(void 0)}))}}function hs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vs(e,t,n){return t&&_s(e.prototype,t),n&&_s(e,n),e}function gs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}}(e,t)||oe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ys(e){return(ys="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 bs(){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){return t.reduce((function(t,n){return t[n]=e[n],t}),{})}n("99af"),n("96cf"),n("e6cf"),n("2ca0"),n("13d5"),n("1276");var xs=function(){function e(t){hs(this,e);var n=ws(t,["show","label","dataType","sortable","sortBy","filterable","filterOn","hidden","formatter","cellClass","headerClass","sortAs"]);for(var r in n)this[r]=t[r];this.template=t.$scopedSlots.default}return vs(e,[{key:"isFilterable",value:function(){return this.filterable}},{key:"getFilterFieldName",value:function(){return this.filterOn||this.show}},{key:"isSortable",value:function(){return this.sortable}},{key:"getSortPredicate",value:function(e,t){var n=this.getSortFieldName(),r=t.find((function(e){return e.sortAs===n||e.show===n})).dataType;return r.startsWith("date")||"numeric"===r?function(t,r){var a=t.getSortableValue(n),i=r.getSortableValue(n);return"desc"===e?i<a?-1:1:a<i?-1:1}:function(t,r){var a=t.getSortableValue(n),i=r.getSortableValue(n);return"desc"===e?i.localeCompare(a):a.localeCompare(i)}}},{key:"getSortFieldName",value:function(){return this.sortBy||this.sortAs||this.show}}]),e}(),ks=new(function(){function e(){hs(this,e)}return vs(e,[{key:"get",value:function(e){var t=JSON.parse(localStorage.getItem(e));return t?new Date(t.expires)<new Date?(localStorage.removeItem(e),null):t.value:null}},{key:"has",value:function(e){return null!==this.get(e)}},{key:"set",value:function(e,t,n){var r=(new Date).getTime(),a=new Date(r+6e4*n);localStorage.setItem(e,JSON.stringify({value:t,expires:a}))}}]),e}()),Ds=n("c1df"),Ms=n.n(Ds),Ss=function(){function e(t,n){hs(this,e),this.data=t,this.columns=n}return vs(e,[{key:"getValue",value:function(e){return function e(t,n){if(!n)return t;if(null===t||"object"!==ys(t))return t;var r=gs(n.split(/\.(.+)/),2),a=r[0],i=r[1];return e(t[a],i)}(this.data,e)}},{key:"getColumn",value:function(e){return this.columns.find((function(t){return t.show===e||t.sortAs===e}))}},{key:"getFilterableValue",value:function(e){var t=this.getValue(e);return t?t.toString().toLowerCase():""}},{key:"getSortableValue",value:function(e){var t=this.getColumn(e).dataType,n=this.getValue(e);if(null==n)return"";if(n instanceof String&&(n=n.toLowerCase()),t.startsWith("date")){var r=t.replace("date:","");return Ms()(n,r).format("YYYYMMDDHHmmss")}return"numeric"===t?n:n.toString()}},{key:"passesFilter",value:function(e){var t=this;return this.columns.filter((function(e){return e.isFilterable()})).map((function(e){return t.getFilterableValue(e.getFilterFieldName())})).filter((function(t){return t.indexOf(e.toLowerCase())>=0})).length}}]),e}(),Cs=A.classes,Ls=q({props:{column:{type:Object},sort:{type:Object},classes:{type:Object,default:function(){return Cs}}},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?bs("table-component__th table-component__th--sort",this.column.headerClass,this.headerStyle,this.classes.thSortStyles):bs("table-component__th table-component__th--sort-".concat(this.sort.order),this.column.headerClass,this.headerStyle,this.classes.thSortStyles):bs("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.classes.thStyles}},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,Ts=A.classes,Es=A.classes,Os=q({components:{TableCell:{functional:!0,props:{column:{type:Object},row:{type:Object},responsiveLabel:{type:String},classes:{type:Object,default:function(){return Ts}}},render:function(e,t){var n=t.props,r={};return n.column.cellClass&&(r.class=n.column.cellClass),r.class+=" ".concat(n.classes.tdStyles),n.column.template?e("td",r,n.column.template(n.row.data)):(r.domProps={},r.domProps.innerHTML=n.column.formatter(n.row.getValue(n.column.show),n.row.data),e("td",{class:n.classes.tdStyles},[e("span",n.responsiveLabel),r.domProps.innerHTML]))}}},props:{columns:{type:[String,Object,Array],default:null},row:{type:[String,Object,Array],default:null},classes:{type:Object,default:function(){return Es}}},computed:{visibleColumns:function(){return this.columns.filter((function(e){return!e.hidden}))},rowStyle:function(){return this.classes.trStyles}},methods:{onClick:function(e){this.$emit("rowClick",{e: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.classes,"responsive-label":t.label}})})),1)}),[],!1,null,null,null).exports,js={tableClass:"",theadClass:"",tbodyClass:"",headerClass:"",cellClass:"",filterInputClass:"",filterPlaceholder:"Filter table…",filterNoResults:"There are no matching rows"},As=js,Ps=A.classes,Ys=A.variants,$s=q({props:{pagination:{type:Object,default:function(){return{}}},classes:{type:Object,default:function(){return Ps}},variants:{type:Object,default:function(){return Ys}},variant:{type:String,default:null}},computed:{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.variants)),l(l({},this.classes),e)}},methods:{isActive:function(e){return(this.pagination.currentPage||1)===e},paginationPageClass:function(e){var t="";return t+=" ".concat(this.tableTheme.pageItem),this.isActive(e)&&(t+=" ".concat(this.tableTheme.activePageItem)),t},paginationPageStyle:function(e){var t="";return"..."===e&&(t+=" ".concat(this.tableTheme.paginationDisabled)),t},pageClicked:function(e){"..."===e||e===this.pagination.currentPage||e>this.pagination.totalPages||e<1||this.$emit("pageChange",e)},pageLinks:function(){var e=[],t=2,n=this.pagination.totalPages-1;this.pagination.totalPages>=10&&(t=Math.max(1,this.pagination.currentPage-2),n=Math.min(this.pagination.currentPage+2,this.pagination.totalPages));for(var r=t;r<=n;r++)e.push(r);return e}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.shouldShowPagination?n("nav",[n("ul",{class:e.paginationContainerStyle},[n("li",{class:e.firstPageDisabledStyle},[n("a",{class:e.firstPageDisabledStyle,on:{click:function(t){return e.pageClicked(e.pagination.currentPage-1)}}},[n("i",{class:e.paginationLeftIconStyle},[e._v("«")])])]),e.hasFirst?n("li",{staticClass:"overflow-hidden"},[n("a",{class:e.paginationPageClass(1),style:e.paginationPageStyle(1),on:{click:function(t){return e.pageClicked(1)}}},[e._v("1")])]):e._e(),e.hasFirstEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[e._v("…")])]):e._e(),e._l(e.pages,(function(t){return n("li",{key:t},[n("a",{class:e.paginationPageClass(t),style:e.paginationPageStyle(t),on:{click:function(n){return e.pageClicked(t)}}},[e._v(e._s(t))])])})),e.hasLastEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[e._v("…")])]):e._e(),e.hasLast?n("li",[n("a",{class:e.paginationPageClass(this.pagination.totalPages),style:e.paginationPageStyle(this.pagination.totalPages),on:{click:function(t){return e.pageClicked(e.pagination.totalPages)}}},[e._v(" "+e._s(e.pagination.totalPages)+" ")])]):e._e(),n("li",[n("a",{style:e.lastPageDisabledStyle,on:{click:function(t){return e.pageClicked(e.pagination.currentPage+1)}}},[n("i",{class:e.paginationRightIconStyle},[e._v("»")])])])],2)]):e._e()}),[],!1,null,null,null).exports,Is=A.classes,Ns=A.variants,zs=q({components:{TableColumnHeader:Ls,TableRow:Os,Pagination:$s},props:{data:{default:function(){return[]},type:[Array,Function]},classes:{type:Object,default:function(){return Is}},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 As.tableClass}},theadClass:{default:function(){return As.theadClass}},tbodyClass:{default:function(){return As.tbodyClass}},filterInputClass:{default:function(){return As.filterInputClass}},filterPlaceholder:{default:function(){return As.filterPlaceholder}},filterNoResults:{default:function(){return As.filterNoResults}},variants:{type:Object,default:function(){return Ns}},variant:{type:String,default:null}},data:function(){return{columns:[],rows:[],filter:"",sort:{fieldName:"",order:""},pagination:null,loading:!1,localSettings:{}}},computed:{fullTableClass:function(){return bs("table-component__table",this.tableClass)},fullTableHeadClass:function(){return bs("table-component__table__head",this.theadClass)},fullTableBodyClass:function(){return bs("table-component__table__body",this.tbodyClass)},fullFilterInputClass:function(){return bs("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.variants)),l(l({},this.classes),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 ms(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 xs(e)})),n.forEach((function(t){Object.keys(t.$options.props).forEach((function(r){return t.$watch(r,(function(){e.columns=n.map((function(e){return new xs(e)}))}))}))})),t.next=6,e.mapDataToRows();case 6:case"end":return t.stop()}}),t)})))()},methods:{pageChange:function(e){var t=this;return ms(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 ms(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.usesLocalData){t.next=4;break}t.t0=e.prepareLocalData(),t.next=7;break;case 4:return t.next=6,e.fetchServerData();case 6:t.t0=t.sent;case 7:n=t.t0,r=0,e.rows=n.map((function(e){return e.vueTableComponentInternalRowId=r++,e})).map((function(t){return new Ss(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 ms(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.pagination&&e.pagination.currentPage||1,e.loading=!0,t.next=4,e.data({filter:e.filter,sort:e.sort,page:n});case 4:return r=t.sent,e.pagination=r.pagination,e.loading=!1,t.abrupt("return",r.data);case 8:case"end":return t.stop()}}),t)})))()},refresh:function(){var e=this;return ms(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(){ks.set(this.storageKey,ws(this.$data,["filter","sort"]),this.cacheLifetime)},restoreState:function(){var e=ks.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,Fs=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:As.cellClass},headerClass:{default:As.headerClass}}},(function(){this.$createElement;return this._self._c,this._e()}),[],!1,null,null,null).exports,Rs=n("37c3"),Hs=n.n(Rs),Bs={SwAvatar:U,SwBadge:W,SwBreadcrumb:G,SwBreadcrumbItem:J,SwButton:te,SwCard:ae,SwCheckbox:de,SwDivider:me,SwDropdown:mt,SwDropdownItem:_t,SwDropdownDivider:gt,SwEmptyTablePlaceholder:bt,SwFilterWrapper:kt,SwInput:St,SwLabel:Lt,SwList:Pt,SwListItem:Yt,SwModal:zt,SwListGroup:$t,SwMoney:Bt,SwPageHeader:Ut,SwPopup:Wt,SwInputGroup:Ot,SwFileUpload:Gt,SwRadio:Qt,SwSwitch:tn,SwTabItem:nn,SwTableComponent:zs,SwTableColumn:Fs,Pagination:$s,SwTabs:an,SwTextarea:sn,SwTransition:un,SwEditor:as,SwWizard:us,SwWizardStep:ps,SwWizardNavigation:ss},qs={install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.use(Hs.a),!this.installed){this.installed=!0;var n=l(l({},Y),t.theme||{}),r=t.components||Object.keys(Bs);r.forEach((function(t){e.component(t,z(e,n,t,Bs,Y))}))}}};t.default=qs},fb6a:function(e,t,n){"use strict";var r=n("23e7"),a=n("861d"),i=n("e8b5"),o=n("23cb"),s=n("50c4"),l=n("fc6a"),c=n("8418"),u=n("b622"),d=n("1dde"),p=n("ae40"),f=d("slice"),m=p("slice",{ACCESSORS:!0,0:0,1:2}),h=u("species"),_=[].slice,v=Math.max;r({target:"Array",proto:!0,forced:!f||!m},{slice:function(e,t){var n,r,u,d=l(this),p=s(d.length),f=o(e,p),m=o(void 0===t?p:t,p);if(i(d)&&("function"!=typeof(n=d.constructor)||n!==Array&&!i(n.prototype)?a(n)&&null===(n=n[h])&&(n=void 0):n=void 0,n===Array||void 0===n))return _.call(d,f,m);for(r=new(void 0===n?Array:n)(v(m-f,0)),u=0;f<m;f++,u++)f in d&&c(r,u,d[f]);return r.length=u,r}})},fba5:function(e,t,n){var r=n("cb5a");e.exports=function(e){return r(this.__data__,e)>-1}},fc6a:function(e,t,n){var r=n("44ad"),a=n("1d80");e.exports=function(e){return r(a(e))}},fd7e:function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("c1df"))},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,n){var r=n("4930");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(e,t,n){var r=n("da84");e.exports=r.Promise},ffff:function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))}})},e.exports=r(n("XuX8"))},vDqi:function(e,t,n){e.exports=n("zuR4")},vGAp:function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,".invoice-create-page .invoice-foot .invoice-total{min-width:390px}@media (max-width:480px){.invoice-create-page .invoice-foot .invoice-total{min-width:384px}}",""])},vdwK:function(e,t){},w0Vi:function(e,t,n){"use strict";var r=n("xTJ+"),a=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,o={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(o[t]&&a.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},w48C:function(e,t,n){var r;"undefined"!=typeof self&&self,e.exports=(r=n("zwY0"),function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t){e.exports=r},function(e,t,n){"use strict";n.r(t),n.d(t,"Component",(function(){return d})),n.d(t,"Plugin",(function(){return p}));var r=n(0),a=n.n(r),i=["onChange","onClose","onDestroy","onMonthChange","onOpen","onYearChange"];function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=function(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},l=function(e){return o({},e)},c=i.concat(["onValueUpdate","onDayCreate","onParseConfig","onReady","onPreCalendarPosition","onKeyDown"]),u=["locale","showMonths"],d={name:"flat-pickr",render:function(e){return e("input",{attrs:{type:"text","data-input":!0},props:{disabled:this.disabled},on:{input:this.onInput}})},props:{value:{default:null,required:!0,validator:function(e){return null===e||e instanceof Date||"string"==typeof e||e instanceof String||e instanceof Array||"number"==typeof e}},config:{type:Object,default:function(){return{wrap:!1,defaultDate:null}}},events:{type:Array,default:function(){return i}},disabled:{type:Boolean,default:!1}},data:function(){return{fp:null}},mounted:function(){var e=this;if(!this.fp){var t=l(this.config);this.events.forEach((function(n){var r,i=a.a.defaultConfig[n]||[];t[n]=(r=t[n]||[],r instanceof Array?r:[r]).concat(i,(function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];e.$emit.apply(e,[s(n)].concat(r))}))})),t.defaultDate=this.value||t.defaultDate,this.fp=new a.a(this.getElem(),t),this.fpInput().addEventListener("blur",this.onBlur),this.$on("on-close",this.onClose),this.$watch("disabled",this.watchDisabled,{immediate:!0})}},methods:{getElem:function(){return this.config.wrap?this.$el.parentNode:this.$el},onInput:function(e){var t=this,n=e.target;this.$nextTick((function(){t.$emit("input",n.value)}))},fpInput:function(){return this.fp.altInput||this.fp.input},onBlur:function(e){this.$emit("blur",e.target.value)},onClose:function(e,t){this.$emit("input",t)},watchDisabled:function(e){e?this.fpInput().setAttribute("disabled",e):this.fpInput().removeAttribute("disabled")}},watch:{config:{deep:!0,handler:function(e){var t=this,n=l(e);c.forEach((function(e){delete n[e]})),this.fp.set(n),u.forEach((function(e){void 0!==n[e]&&t.fp.set(e,n[e])}))}},value:function(e){e!==this.$el.value&&this.fp&&this.fp.setDate(e,!0)}},beforeDestroy:function(){this.fp&&(this.fpInput().removeEventListener("blur",this.onBlur),this.fp.destroy(),this.fp=null)}},p=function(e,t){var n="flat-pickr";"string"==typeof t&&(n=t),e.component(n,d)};d.install=p,t.default=d}]).default)},wJg7:function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},wQk9: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("wd/R"))},wclG:function(e,t,n){var r=n("pFRH"),a=n("88Gu")(r);e.exports=a},"wd/R":function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function a(){return t.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function c(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function p(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function f(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,n,r){return Mt(e,t,n,r,!0).utc()}function h(e){return null==e._pf&&(e._pf={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}),e._pf}function _(e){if(null==e._isValid){var t=h(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),a=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(a=a&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return a;e._isValid=a}return e._isValid}function v(e){var t=m(NaN);return null!=e?f(h(t),e):h(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var g=a.momentProperties=[],y=!1;function b(e,t){var n,r,a;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=h(t)),c(t._locale)||(e._locale=t._locale),g.length>0)for(n=0;n<g.length;n++)c(a=t[r=g[n]])||(e[r]=a);return e}function w(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,a.updateOffset(this),y=!1)}function x(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function k(e){!1===a.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function D(e,t){var n=!0;return f((function(){if(null!=a.deprecationHandler&&a.deprecationHandler(null,e),n){var r,i,o,l=[];for(i=0;i<arguments.length;i++){if(r="","object"==typeof arguments[i]){for(o in r+="\n["+i+"] ",arguments[0])s(arguments[0],o)&&(r+=o+": "+arguments[0][o]+", ");r=r.slice(0,-2)}else r=arguments[i];l.push(r)}k(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var M,S={};function C(e,t){null!=a.deprecationHandler&&a.deprecationHandler(e,t),S[e]||(k(t),S[e]=!0)}function L(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function T(e,t){var n,r=f({},e);for(n in t)s(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&o(e[n])&&(r[n]=f({},r[n]));return r}function E(e){null!=e&&this.set(e)}function O(e,t,n){var r=""+Math.abs(e),a=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null,M=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var j=/(\[[^\[]*\])|(\\)?([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,A=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,P={},Y={};function $(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(Y[e]=a),t&&(Y[t[0]]=function(){return O(a.apply(this,arguments),t[1],t[2])}),n&&(Y[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function I(e,t){return e.isValid()?(t=N(t,e.localeData()),P[t]=P[t]||function(e){var t,n,r,a=e.match(j);for(t=0,n=a.length;t<n;t++)Y[a[t]]?a[t]=Y[a[t]]:a[t]=(r=a[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,i="";for(r=0;r<n;r++)i+=L(a[r])?a[r].call(t,e):a[r];return i}}(t),P[t](e)):e.localeData().invalidDate()}function N(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(A.lastIndex=0;n>=0&&A.test(e);)e=e.replace(A,r),A.lastIndex=0,n-=1;return e}var z={};function F(e,t){var n=e.toLowerCase();z[n]=z[n+"s"]=z[t]=e}function R(e){return"string"==typeof e?z[e]||z[e.toLowerCase()]:void 0}function H(e){var t,n,r={};for(n in e)s(e,n)&&(t=R(n))&&(r[t]=e[n]);return r}var B={};function q(e,t){B[e]=t}function U(e){return e%4==0&&e%100!=0||e%400==0}function V(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function W(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=V(t)),n}function K(e,t){return function(n){return null!=n?(J(this,e,n),a.updateOffset(this,t),this):G(this,e)}}function G(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function J(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&U(e.year())&&1===e.month()&&29===e.date()?(n=W(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),xe(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var Z,X=/\d/,Q=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ne=/[+-]?\d{6}/,re=/\d\d?/,ae=/\d\d\d\d?/,ie=/\d\d\d\d\d\d?/,oe=/\d{1,3}/,se=/\d{1,4}/,le=/[+-]?\d{1,6}/,ce=/\d+/,ue=/[+-]?\d+/,de=/Z|[+-]\d\d:?\d\d/gi,pe=/Z|[+-]\d\d(?::?\d\d)?/gi,fe=/[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 me(e,t,n){Z[e]=L(t)?t:function(e,r){return e&&n?n:t}}function he(e,t){return s(Z,e)?Z[e](t._strict,t._locale):new RegExp(_e(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,a){return t||n||r||a}))))}function _e(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Z={};var ve,ge={};function ye(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=W(e)}),n=0;n<e.length;n++)ge[e[n]]=r}function be(e,t){ye(e,(function(e,n,r,a){r._w=r._w||{},t(e,r._w,r,a)}))}function we(e,t,n){null!=t&&s(ge,e)&&ge[e](t,n._a,n,e)}function xe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?U(e)?29:28:31-r%7%2}ve=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},$("M",["MM",2],"Mo",(function(){return this.month()+1})),$("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),$("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),F("month","M"),q("month",8),me("M",re),me("MM",re,Q),me("MMM",(function(e,t){return t.monthsShortRegex(e)})),me("MMMM",(function(e,t){return t.monthsRegex(e)})),ye(["M","MM"],(function(e,t){t[1]=W(e)-1})),ye(["MMM","MMMM"],(function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);null!=a?t[1]=a:h(n).invalidMonth=e}));var ke="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),De="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Me=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Se=fe,Ce=fe;function Le(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=m([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=ve.call(this._shortMonthsParse,o))?a:null:-1!==(a=ve.call(this._longMonthsParse,o))?a:null:"MMM"===t?-1!==(a=ve.call(this._shortMonthsParse,o))||-1!==(a=ve.call(this._longMonthsParse,o))?a:null:-1!==(a=ve.call(this._longMonthsParse,o))||-1!==(a=ve.call(this._shortMonthsParse,o))?a:null}function Te(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=W(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),xe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Ee(e){return null!=e?(Te(this,e),a.updateOffset(this,!0),this):G(this,"Month")}function Oe(){function e(e,t){return t.length-e.length}var t,n,r=[],a=[],i=[];for(t=0;t<12;t++)n=m([2e3,t]),r.push(this.monthsShort(n,"")),a.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(r.sort(e),a.sort(e),i.sort(e),t=0;t<12;t++)r[t]=_e(r[t]),a[t]=_e(a[t]);for(t=0;t<24;t++)i[t]=_e(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function je(e){return U(e)?366:365}$("Y",0,0,(function(){var e=this.year();return e<=9999?O(e,4):"+"+e})),$(0,["YY",2],0,(function(){return this.year()%100})),$(0,["YYYY",4],0,"year"),$(0,["YYYYY",5],0,"year"),$(0,["YYYYYY",6,!0],0,"year"),F("year","y"),q("year",1),me("Y",ue),me("YY",re,Q),me("YYYY",se,te),me("YYYYY",le,ne),me("YYYYYY",le,ne),ye(["YYYYY","YYYYYY"],0),ye("YYYY",(function(e,t){t[0]=2===e.length?a.parseTwoDigitYear(e):W(e)})),ye("YY",(function(e,t){t[0]=a.parseTwoDigitYear(e)})),ye("Y",(function(e,t){t[0]=parseInt(e,10)})),a.parseTwoDigitYear=function(e){return W(e)+(W(e)>68?1900:2e3)};var Ae=K("FullYear",!0);function Pe(e,t,n,r,a,i,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,a,i,o),s}function Ye(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 $e(e,t,n){var r=7+t-n;return-(7+Ye(e,0,r).getUTCDay()-t)%7+r-1}function Ie(e,t,n,r,a){var i,o,s=1+7*(t-1)+(7+n-r)%7+$e(e,r,a);return s<=0?o=je(i=e-1)+s:s>je(e)?(i=e+1,o=s-je(e)):(i=e,o=s),{year:i,dayOfYear:o}}function Ne(e,t,n){var r,a,i=$e(e.year(),t,n),o=Math.floor((e.dayOfYear()-i-1)/7)+1;return o<1?r=o+ze(a=e.year()-1,t,n):o>ze(e.year(),t,n)?(r=o-ze(e.year(),t,n),a=e.year()+1):(a=e.year(),r=o),{week:r,year:a}}function ze(e,t,n){var r=$e(e,t,n),a=$e(e+1,t,n);return(je(e)-r+a)/7}function Fe(e,t){return e.slice(t,7).concat(e.slice(0,t))}$("w",["ww",2],"wo","week"),$("W",["WW",2],"Wo","isoWeek"),F("week","w"),F("isoWeek","W"),q("week",5),q("isoWeek",5),me("w",re),me("ww",re,Q),me("W",re),me("WW",re,Q),be(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=W(e)})),$("d",0,"do","day"),$("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),$("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),$("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),F("day","d"),F("weekday","e"),F("isoWeekday","E"),q("day",11),q("weekday",11),q("isoWeekday",11),me("d",re),me("e",re),me("E",re),me("dd",(function(e,t){return t.weekdaysMinRegex(e)})),me("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),me("dddd",(function(e,t){return t.weekdaysRegex(e)})),be(["dd","ddd","dddd"],(function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:h(n).invalidWeekday=e})),be(["d","e","E"],(function(e,t,n,r){t[r]=W(e)}));var Re="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),He="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Be="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),qe=fe,Ue=fe,Ve=fe;function We(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=m([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=ve.call(this._weekdaysParse,o))?a:null:"ddd"===t?-1!==(a=ve.call(this._shortWeekdaysParse,o))?a:null:-1!==(a=ve.call(this._minWeekdaysParse,o))?a:null:"dddd"===t?-1!==(a=ve.call(this._weekdaysParse,o))||-1!==(a=ve.call(this._shortWeekdaysParse,o))||-1!==(a=ve.call(this._minWeekdaysParse,o))?a:null:"ddd"===t?-1!==(a=ve.call(this._shortWeekdaysParse,o))||-1!==(a=ve.call(this._weekdaysParse,o))||-1!==(a=ve.call(this._minWeekdaysParse,o))?a:null:-1!==(a=ve.call(this._minWeekdaysParse,o))||-1!==(a=ve.call(this._weekdaysParse,o))||-1!==(a=ve.call(this._shortWeekdaysParse,o))?a:null}function Ke(){function e(e,t){return t.length-e.length}var t,n,r,a,i,o=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=m([2e3,1]).day(t),r=_e(this.weekdaysMin(n,"")),a=_e(this.weekdaysShort(n,"")),i=_e(this.weekdays(n,"")),o.push(r),s.push(a),l.push(i),c.push(r),c.push(a),c.push(i);o.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ge(){return this.hours()%12||12}function Je(e,t){$(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ze(e,t){return t._meridiemParse}$("H",["HH",2],0,"hour"),$("h",["hh",2],0,Ge),$("k",["kk",2],0,(function(){return this.hours()||24})),$("hmm",0,0,(function(){return""+Ge.apply(this)+O(this.minutes(),2)})),$("hmmss",0,0,(function(){return""+Ge.apply(this)+O(this.minutes(),2)+O(this.seconds(),2)})),$("Hmm",0,0,(function(){return""+this.hours()+O(this.minutes(),2)})),$("Hmmss",0,0,(function(){return""+this.hours()+O(this.minutes(),2)+O(this.seconds(),2)})),Je("a",!0),Je("A",!1),F("hour","h"),q("hour",13),me("a",Ze),me("A",Ze),me("H",re),me("h",re),me("k",re),me("HH",re,Q),me("hh",re,Q),me("kk",re,Q),me("hmm",ae),me("hmmss",ie),me("Hmm",ae),me("Hmmss",ie),ye(["H","HH"],3),ye(["k","kk"],(function(e,t,n){var r=W(e);t[3]=24===r?0:r})),ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ye(["h","hh"],(function(e,t,n){t[3]=W(e),h(n).bigHour=!0})),ye("hmm",(function(e,t,n){var r=e.length-2;t[3]=W(e.substr(0,r)),t[4]=W(e.substr(r)),h(n).bigHour=!0})),ye("hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[3]=W(e.substr(0,r)),t[4]=W(e.substr(r,2)),t[5]=W(e.substr(a)),h(n).bigHour=!0})),ye("Hmm",(function(e,t,n){var r=e.length-2;t[3]=W(e.substr(0,r)),t[4]=W(e.substr(r))})),ye("Hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[3]=W(e.substr(0,r)),t[4]=W(e.substr(r,2)),t[5]=W(e.substr(a))}));var Xe,Qe=K("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:ke,monthsShort:De,week:{dow:0,doy:6},weekdays:Re,weekdaysMin:Be,weekdaysShort:He,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function rt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function at(e){return e?e.toLowerCase().replace("_","-"):e}function it(t){var r=null;if(void 0===tt[t]&&void 0!==e&&e&&e.exports)try{r=Xe._abbr,n("RnhZ")("./"+t),ot(r)}catch(e){tt[t]=null}return tt[t]}function ot(e,t){var n;return e&&((n=c(t)?lt(e):st(e,t))?Xe=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Xe._abbr}function st(e,t){if(null!==t){var n,r=et;if(t.abbr=e,null!=tt[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])r=tt[t.parentLocale]._config;else{if(null==(n=it(t.parentLocale)))return nt[t.parentLocale]||(nt[t.parentLocale]=[]),nt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return tt[e]=new E(T(r,t)),nt[e]&&nt[e].forEach((function(e){st(e.name,e.config)})),ot(e),tt[e]}return delete tt[e],null}function lt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Xe;if(!i(e)){if(t=it(e))return t;e=[e]}return function(e){for(var t,n,r,a,i=0;i<e.length;){for(t=(a=at(e[i]).split("-")).length,n=(n=at(e[i+1]))?n.split("-"):null;t>0;){if(r=it(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&rt(a,n)>=t-1)break;t--}i++}return Xe}(e)}function ct(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>xe(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,h(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),h(e)._overflowWeeks&&-1===t&&(t=7),h(e)._overflowWeekday&&-1===t&&(t=8),h(e).overflow=t),e}var ut=/^\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)?)?$/,dt=/^\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)?)?$/,pt=/Z|[+-]\d\d(?::?\d\d)?/,ft=[["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]],mt=[["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/]],ht=/^\/?Date\((-?\d+)/i,_t=/^(?:(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}))$/,vt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function gt(e){var t,n,r,a,i,o,s=e._i,l=ut.exec(s)||dt.exec(s);if(l){for(h(e).iso=!0,t=0,n=ft.length;t<n;t++)if(ft[t][1].exec(l[1])){a=ft[t][0],r=!1!==ft[t][2];break}if(null==a)return void(e._isValid=!1);if(l[3]){for(t=0,n=mt.length;t<n;t++)if(mt[t][1].exec(l[3])){i=(l[2]||" ")+mt[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(l[4]){if(!pt.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=a+(i||"")+(o||""),kt(e)}else e._isValid=!1}function yt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function bt(e){var t,n,r,a,i,o,s,l,c=_t.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){if(n=c[4],r=c[3],a=c[2],i=c[5],o=c[6],s=c[7],l=[yt(n),De.indexOf(r),parseInt(a,10),parseInt(i,10),parseInt(o,10)],s&&l.push(parseInt(s,10)),t=l,!function(e,t,n){return!e||He.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(h(n).weekdayMismatch=!0,n._isValid=!1,!1)}(c[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return vt[e];if(t)return 0;var r=parseInt(n,10),a=r%100;return(r-a)/100*60+a}(c[8],c[9],c[10]),e._d=Ye.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function wt(e,t,n){return null!=e?e:null!=t?t:n}function xt(e){var t,n,r,i,o,s=[];if(!e._d){for(r=function(e){var t=new Date(a.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,a,i,o,s,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,o=4,n=wt(t.GG,e._a[0],Ne(St(),1,4).year),r=wt(t.W,1),((a=wt(t.E,1))<1||a>7)&&(l=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,c=Ne(St(),i,o),n=wt(t.gg,e._a[0],c.year),r=wt(t.w,c.week),null!=t.d?((a=t.d)<0||a>6)&&(l=!0):null!=t.e?(a=t.e+i,(t.e<0||t.e>6)&&(l=!0)):a=i),r<1||r>ze(n,i,o)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=Ie(n,r,a,i,o),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=wt(e._a[0],r[0]),(e._dayOfYear>je(o)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Ye(o,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ye:Pe).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(h(e).weekdayMismatch=!0)}}function kt(e){if(e._f!==a.ISO_8601)if(e._f!==a.RFC_2822){e._a=[],h(e).empty=!0;var t,n,r,i,o,s,l=""+e._i,c=l.length,u=0;for(r=N(e._f,e._locale).match(j)||[],t=0;t<r.length;t++)i=r[t],(n=(l.match(he(i,e))||[])[0])&&((o=l.substr(0,l.indexOf(n))).length>0&&h(e).unusedInput.push(o),l=l.slice(l.indexOf(n)+n.length),u+=n.length),Y[i]?(n?h(e).empty=!1:h(e).unusedTokens.push(i),we(i,n,e)):e._strict&&!n&&h(e).unusedTokens.push(i);h(e).charsLeftOver=c-u,l.length>0&&h(e).unusedInput.push(l),e._a[3]<=12&&!0===h(e).bigHour&&e._a[3]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=h(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),xt(e),ct(e)}else bt(e);else gt(e)}function Dt(e){var t=e._i,n=e._f;return e._locale=e._locale||lt(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),x(t)?new w(ct(t)):(d(t)?e._d=t:i(n)?function(e){var t,n,r,a,i,o,s=!1;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)i=0,o=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],kt(t),_(t)&&(o=!0),i+=h(t).charsLeftOver,i+=10*h(t).unusedTokens.length,h(t).score=i,s?i<r&&(r=i,n=t):(null==r||i<r||o)&&(r=i,n=t,o&&(s=!0));f(e,n||t)}(e):n?kt(e):function(e){var t=e._i;c(t)?e._d=new Date(a.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=ht.exec(e._i);null===t?(gt(e),!1===e._isValid&&(delete e._isValid,bt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:a.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):i(t)?(e._a=p(t.slice(0),(function(e){return parseInt(e,10)})),xt(e)):o(t)?function(e){if(!e._d){var t=H(e._i),n=void 0===t.day?t.date:t.day;e._a=p([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),xt(e)}}(e):u(t)?e._d=new Date(t):a.createFromInputFallback(e)}(e),_(e)||(e._d=null),e))}function Mt(e,t,n,r,a){var s,c={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(o(e)&&l(e)||i(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=a,c._l=n,c._i=e,c._f=t,c._strict=r,(s=new w(ct(Dt(c))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function St(e,t,n,r){return Mt(e,t,n,r,!1)}a.createFromInputFallback=D("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),a.ISO_8601=function(){},a.RFC_2822=function(){};var Ct=D("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()})),Lt=D("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}));function Tt(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return St();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Et=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ot(e){var t=H(e),n=t.year||0,r=t.quarter||0,a=t.month||0,i=t.week||t.isoWeek||0,o=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,n,r=!1;for(t in e)if(s(e,t)&&(-1===ve.call(Et,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<Et.length;++n)if(e[Et[n]]){if(r)return!1;parseFloat(e[Et[n]])!==W(e[Et[n]])&&(r=!0)}return!0}(t),this._milliseconds=+d+1e3*u+6e4*c+1e3*l*60*60,this._days=+o+7*i,this._months=+a+3*r+12*n,this._data={},this._locale=lt(),this._bubble()}function jt(e){return e instanceof Ot}function At(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Pt(e,t){$(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+O(~~(e/60),2)+t+O(~~e%60,2)}))}Pt("Z",":"),Pt("ZZ",""),me("Z",pe),me("ZZ",pe),ye(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=$t(pe,e)}));var Yt=/([\+\-]|\d\d)/gi;function $t(e,t){var n,r,a=(t||"").match(e);return null===a?null:0===(r=60*(n=((a[a.length-1]||[])+"").match(Yt)||["-",0,0])[1]+W(n[2]))?0:"+"===n[0]?r:-r}function It(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(x(e)||d(e)?e.valueOf():St(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),a.updateOffset(n,!1),n):St(e).local()}function Nt(e){return-Math.round(e._d.getTimezoneOffset())}function zt(){return!!this.isValid()&&this._isUTC&&0===this._offset}a.updateOffset=function(){};var Ft=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Rt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ht(e,t){var n,r,a,i,o,l,c=e,d=null;return jt(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(c={},t?c[t]=+e:c.milliseconds=+e):(d=Ft.exec(e))?(n="-"===d[1]?-1:1,c={y:0,d:W(d[2])*n,h:W(d[3])*n,m:W(d[4])*n,s:W(d[5])*n,ms:W(At(1e3*d[6]))*n}):(d=Rt.exec(e))?(n="-"===d[1]?-1:1,c={y:Bt(d[2],n),M:Bt(d[3],n),w:Bt(d[4],n),d:Bt(d[5],n),h:Bt(d[6],n),m:Bt(d[7],n),s:Bt(d[8],n)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(i=St(c.from),o=St(c.to),a=i.isValid()&&o.isValid()?(o=It(o,i),i.isBefore(o)?l=qt(i,o):((l=qt(o,i)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(c={}).ms=a.milliseconds,c.M=a.months),r=new Ot(c),jt(e)&&s(e,"_locale")&&(r._locale=e._locale),jt(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Bt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function qt(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 Ut(e,t){return function(n,r){var a;return null===r||isNaN(+r)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),Vt(this,Ht(n,r),e),this}}function Vt(e,t,n,r){var i=t._milliseconds,o=At(t._days),s=At(t._months);e.isValid()&&(r=null==r||r,s&&Te(e,G(e,"Month")+s*n),o&&J(e,"Date",G(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&a.updateOffset(e,o||s))}Ht.fn=Ot.prototype,Ht.invalid=function(){return Ht(NaN)};var Wt=Ut(1,"add"),Kt=Ut(-1,"subtract");function Gt(e){return"string"==typeof e||e instanceof String}function Jt(e){return x(e)||d(e)||Gt(e)||u(e)||function(e){var t=i(e),n=!1;return t&&(n=0===e.filter((function(t){return!u(t)&&Gt(e)})).length),t&&n}(e)||function(e){var t,n,r=o(e)&&!l(e),a=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<i.length;t+=1)n=i[t],a=a||s(e,n);return r&&a}(e)||null==e}function Zt(e){var t,n=o(e)&&!l(e),r=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)r=r||s(e,a[t]);return n&&r}function Xt(e,t){if(e.date()<t.date())return-Xt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Qt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=lt(e))&&(this._locale=t),this)}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var en=D("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 tn(){return this._locale}function nn(e,t){return(e%t+t)%t}function rn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function an(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function sn(){var e,t,n=[],r=[],a=[],i=[],o=this.eras();for(e=0,t=o.length;e<t;++e)r.push(_e(o[e].name)),n.push(_e(o[e].abbr)),a.push(_e(o[e].narrow)),i.push(_e(o[e].name)),i.push(_e(o[e].abbr)),i.push(_e(o[e].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function ln(e,t){$(0,[e,e.length],0,t)}function cn(e,t,n,r,a){var i;return null==e?Ne(this,r,a).year:(t>(i=ze(e,r,a))&&(t=i),un.call(this,e,t,n,r,a))}function un(e,t,n,r,a){var i=Ie(e,t,n,r,a),o=Ye(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}$("N",0,0,"eraAbbr"),$("NN",0,0,"eraAbbr"),$("NNN",0,0,"eraAbbr"),$("NNNN",0,0,"eraName"),$("NNNNN",0,0,"eraNarrow"),$("y",["y",1],"yo","eraYear"),$("y",["yy",2],0,"eraYear"),$("y",["yyy",3],0,"eraYear"),$("y",["yyyy",4],0,"eraYear"),me("N",on),me("NN",on),me("NNN",on),me("NNNN",(function(e,t){return t.erasNameRegex(e)})),me("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?h(n).era=a:h(n).invalidEra=e})),me("y",ce),me("yy",ce),me("yyy",ce),me("yyyy",ce),me("yo",(function(e,t){return t._eraYearOrdinalRegex||ce})),ye(["y","yy","yyy","yyyy"],0),ye(["yo"],(function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,a):t[0]=parseInt(e,10)})),$(0,["gg",2],0,(function(){return this.weekYear()%100})),$(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ln("gggg","weekYear"),ln("ggggg","weekYear"),ln("GGGG","isoWeekYear"),ln("GGGGG","isoWeekYear"),F("weekYear","gg"),F("isoWeekYear","GG"),q("weekYear",1),q("isoWeekYear",1),me("G",ue),me("g",ue),me("GG",re,Q),me("gg",re,Q),me("GGGG",se,te),me("gggg",se,te),me("GGGGG",le,ne),me("ggggg",le,ne),be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=W(e)})),be(["gg","GG"],(function(e,t,n,r){t[r]=a.parseTwoDigitYear(e)})),$("Q",0,"Qo","quarter"),F("quarter","Q"),q("quarter",7),me("Q",X),ye("Q",(function(e,t){t[1]=3*(W(e)-1)})),$("D",["DD",2],"Do","date"),F("date","D"),q("date",9),me("D",re),me("DD",re,Q),me("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ye(["D","DD"],2),ye("Do",(function(e,t){t[2]=W(e.match(re)[0])}));var dn=K("Date",!0);$("DDD",["DDDD",3],"DDDo","dayOfYear"),F("dayOfYear","DDD"),q("dayOfYear",4),me("DDD",oe),me("DDDD",ee),ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=W(e)})),$("m",["mm",2],0,"minute"),F("minute","m"),q("minute",14),me("m",re),me("mm",re,Q),ye(["m","mm"],4);var pn=K("Minutes",!1);$("s",["ss",2],0,"second"),F("second","s"),q("second",15),me("s",re),me("ss",re,Q),ye(["s","ss"],5);var fn,mn,hn=K("Seconds",!1);for($("S",0,0,(function(){return~~(this.millisecond()/100)})),$(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),$(0,["SSS",3],0,"millisecond"),$(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),$(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),$(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),$(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),$(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),$(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),F("millisecond","ms"),q("millisecond",16),me("S",oe,X),me("SS",oe,Q),me("SSS",oe,ee),fn="SSSS";fn.length<=9;fn+="S")me(fn,ce);function _n(e,t){t[6]=W(1e3*("0."+e))}for(fn="S";fn.length<=9;fn+="S")ye(fn,_n);mn=K("Milliseconds",!1),$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");var vn=w.prototype;function gn(e){return e}vn.add=Wt,vn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Jt(arguments[0])?(e=arguments[0],t=void 0):Zt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||St(),r=It(n,this).startOf("day"),i=a.calendarFormat(this,r)||"sameElse",o=t&&(L(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,St(n)))},vn.clone=function(){return new w(this)},vn.diff=function(e,t,n){var r,a,i;if(!this.isValid())return NaN;if(!(r=It(e,this)).isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=R(t)){case"year":i=Xt(this,r)/12;break;case"month":i=Xt(this,r);break;case"quarter":i=Xt(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-a)/864e5;break;case"week":i=(this-r-a)/6048e5;break;default:i=this-r}return n?i:V(i)},vn.endOf=function(e){var t,n;if(void 0===(e=R(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:rn,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+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1}return this._d.setTime(t),a.updateOffset(this,!0),this},vn.format=function(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=I(this,e);return this.localeData().postformat(t)},vn.from=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||St(e).isValid())?Ht({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},vn.fromNow=function(e){return this.from(St(),e)},vn.to=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||St(e).isValid())?Ht({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},vn.toNow=function(e){return this.to(St(),e)},vn.get=function(e){return L(this[e=R(e)])?this[e]():this},vn.invalidAt=function(){return h(this).overflow},vn.isAfter=function(e,t){var n=x(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=R(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},vn.isBefore=function(e,t){var n=x(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=R(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},vn.isBetween=function(e,t,n,r){var a=x(e)?e:St(e),i=x(t)?t:St(t);return!!(this.isValid()&&a.isValid()&&i.isValid())&&(("("===(r=r||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===r[1]?this.isBefore(i,n):!this.isAfter(i,n)))},vn.isSame=function(e,t){var n,r=x(e)?e:St(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=R(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},vn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},vn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},vn.isValid=function(){return _(this)},vn.lang=en,vn.locale=Qt,vn.localeData=tn,vn.max=Lt,vn.min=Ct,vn.parsingFlags=function(){return f({},h(this))},vn.set=function(e,t){if("object"==typeof e){var n,r=function(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:B[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=H(e));for(n=0;n<r.length;n++)this[r[n].unit](e[r[n].unit])}else if(L(this[e=R(e)]))return this[e](t);return this},vn.startOf=function(e){var t,n;if(void 0===(e=R(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:rn,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-=nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=nn(t,6e4);break;case"second":t=this._d.valueOf(),t-=nn(t,1e3)}return this._d.setTime(t),a.updateOffset(this,!0),this},vn.subtract=Kt,vn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},vn.toObject=function(){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()}},vn.toDate=function(){return new Date(this.valueOf())},vn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?I(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):L(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",I(n,"Z")):I(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},vn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",a="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=a+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(vn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),vn.toJSON=function(){return this.isValid()?this.toISOString():null},vn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},vn.unix=function(){return Math.floor(this.valueOf()/1e3)},vn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},vn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},vn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""},vn.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""},vn.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""},vn.eraYear=function(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-a(i[e].since).year())*n+i[e].offset;return this.year()},vn.year=Ae,vn.isLeapYear=function(){return U(this.year())},vn.weekYear=function(e){return cn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},vn.isoWeekYear=function(e){return cn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},vn.quarter=vn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},vn.month=Ee,vn.daysInMonth=function(){return xe(this.year(),this.month())},vn.week=vn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},vn.isoWeek=vn.isoWeeks=function(e){var t=Ne(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},vn.weeksInYear=function(){var e=this.localeData()._week;return ze(this.year(),e.dow,e.doy)},vn.weeksInWeekYear=function(){var e=this.localeData()._week;return ze(this.weekYear(),e.dow,e.doy)},vn.isoWeeksInYear=function(){return ze(this.year(),1,4)},vn.isoWeeksInISOWeekYear=function(){return ze(this.isoWeekYear(),1,4)},vn.date=dn,vn.day=vn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},vn.weekday=function(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")},vn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},vn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},vn.hour=vn.hours=Qe,vn.minute=vn.minutes=pn,vn.second=vn.seconds=hn,vn.millisecond=vn.milliseconds=mn,vn.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=$t(pe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Nt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Vt(this,Ht(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Nt(this)},vn.utc=function(e){return this.utcOffset(0,e)},vn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Nt(this),"m")),this},vn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=$t(de,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},vn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?St(e).utcOffset():0,(this.utcOffset()-e)%60==0)},vn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},vn.isLocal=function(){return!!this.isValid()&&!this._isUTC},vn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},vn.isUtc=zt,vn.isUTC=zt,vn.zoneAbbr=function(){return this._isUTC?"UTC":""},vn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},vn.dates=D("dates accessor is deprecated. Use date instead.",dn),vn.months=D("months accessor is deprecated. Use month instead",Ee),vn.years=D("years accessor is deprecated. Use year instead",Ae),vn.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),vn.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Dt(t))._a?(e=t._isUTC?m(t._a):St(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,a=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0;for(r=0;r<a;r++)(n&&e[r]!==t[r]||!n&&W(e[r])!==W(t[r]))&&o++;return o+i}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var yn=E.prototype;function bn(e,t,n,r){var a=lt(),i=m().set(r,t);return a[n](i,e)}function wn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return bn(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=bn(e,r,n,"month");return a}function xn(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var a,i=lt(),o=e?i._week.dow:0,s=[];if(null!=n)return bn(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=bn(t,(a+o)%7,r,"day");return s}yn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return L(r)?r.call(t,n):r},yn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(j).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},yn.invalidDate=function(){return this._invalidDate},yn.ordinal=function(e){return this._ordinal.replace("%d",e)},yn.preparse=gn,yn.postformat=gn,yn.relativeTime=function(e,t,n,r){var a=this._relativeTime[n];return L(a)?a(e,t,n,r):a.replace(/%d/i,e)},yn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return L(n)?n(t):n.replace(/%s/i,t)},yn.set=function(e){var t,n;for(n in e)s(e,n)&&(L(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)},yn.eras=function(e,t){var n,r,i,o=this._eras||lt("en")._eras;for(n=0,r=o.length;n<r;++n){switch(typeof o[n].since){case"string":i=a(o[n].since).startOf("day"),o[n].since=i.valueOf()}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":i=a(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf()}}return o},yn.erasParse=function(e,t,n){var r,a,i,o,s,l=this.eras();for(e=e.toUpperCase(),r=0,a=l.length;r<a;++r)if(i=l[r].name.toUpperCase(),o=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[r];break;case"NNNN":if(i===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if([i,o,s].indexOf(e)>=0)return l[r]},yn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?a(e.since).year():a(e.since).year()+(t-e.offset)*n},yn.erasAbbrRegex=function(e){return s(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},yn.erasNameRegex=function(e){return s(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},yn.erasNarrowRegex=function(e){return s(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex},yn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Me).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},yn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Me.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},yn.monthsParse=function(e,t,n){var r,a,i;if(this._monthsParseExact)return Le.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=m([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},yn.monthsRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Oe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Ce),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},yn.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Oe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Se),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},yn.week=function(e){return Ne(e,this._week.dow,this._week.doy).week},yn.firstDayOfYear=function(){return this._week.doy},yn.firstDayOfWeek=function(){return this._week.dow},yn.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Fe(n,this._week.dow):e?n[e.day()]:n},yn.weekdaysMin=function(e){return!0===e?Fe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},yn.weekdaysShort=function(e){return!0===e?Fe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},yn.weekdaysParse=function(e,t,n){var r,a,i;if(this._weekdaysParseExact)return We.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=m([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},yn.weekdaysRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=qe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},yn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ue),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},yn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ve),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},yn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},yn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("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===W(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),a.lang=D("moment.lang is deprecated. Use moment.locale instead.",ot),a.langData=D("moment.langData is deprecated. Use moment.localeData instead.",lt);var kn=Math.abs;function Dn(e,t,n,r){var a=Ht(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Mn(e){return e<0?Math.floor(e):Math.ceil(e)}function Sn(e){return 4800*e/146097}function Cn(e){return 146097*e/4800}function Ln(e){return function(){return this.as(e)}}var Tn=Ln("ms"),En=Ln("s"),On=Ln("m"),jn=Ln("h"),An=Ln("d"),Pn=Ln("w"),Yn=Ln("M"),$n=Ln("Q"),In=Ln("y");function Nn(e){return function(){return this.isValid()?this._data[e]:NaN}}var zn=Nn("milliseconds"),Fn=Nn("seconds"),Rn=Nn("minutes"),Hn=Nn("hours"),Bn=Nn("days"),qn=Nn("months"),Un=Nn("years"),Vn=Math.round,Wn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Kn(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}var Gn=Math.abs;function Jn(e){return(e>0)-(e<0)||+e}function Zn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,a,i,o,s,l=Gn(this._milliseconds)/1e3,c=Gn(this._days),u=Gn(this._months),d=this.asSeconds();return d?(e=V(l/60),t=V(e/60),l%=60,e%=60,n=V(u/12),u%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",a=d<0?"-":"",i=Jn(this._months)!==Jn(d)?"-":"",o=Jn(this._days)!==Jn(d)?"-":"",s=Jn(this._milliseconds)!==Jn(d)?"-":"",a+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(c?o+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var Xn=Ot.prototype;return Xn.isValid=function(){return this._isValid},Xn.abs=function(){var e=this._data;return this._milliseconds=kn(this._milliseconds),this._days=kn(this._days),this._months=kn(this._months),e.milliseconds=kn(e.milliseconds),e.seconds=kn(e.seconds),e.minutes=kn(e.minutes),e.hours=kn(e.hours),e.months=kn(e.months),e.years=kn(e.years),this},Xn.add=function(e,t){return Dn(this,e,t,1)},Xn.subtract=function(e,t){return Dn(this,e,t,-1)},Xn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=R(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Sn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Cn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Xn.asMilliseconds=Tn,Xn.asSeconds=En,Xn.asMinutes=On,Xn.asHours=jn,Xn.asDays=An,Xn.asWeeks=Pn,Xn.asMonths=Yn,Xn.asQuarters=$n,Xn.asYears=In,Xn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*W(this._months/12):NaN},Xn._bubble=function(){var e,t,n,r,a,i=this._milliseconds,o=this._days,s=this._months,l=this._data;return i>=0&&o>=0&&s>=0||i<=0&&o<=0&&s<=0||(i+=864e5*Mn(Cn(s)+o),o=0,s=0),l.milliseconds=i%1e3,e=V(i/1e3),l.seconds=e%60,t=V(e/60),l.minutes=t%60,n=V(t/60),l.hours=n%24,o+=V(n/24),a=V(Sn(o)),s+=a,o-=Mn(Cn(a)),r=V(s/12),s%=12,l.days=o,l.months=s,l.years=r,this},Xn.clone=function(){return Ht(this)},Xn.get=function(e){return e=R(e),this.isValid()?this[e+"s"]():NaN},Xn.milliseconds=zn,Xn.seconds=Fn,Xn.minutes=Rn,Xn.hours=Hn,Xn.days=Bn,Xn.weeks=function(){return V(this.days()/7)},Xn.months=qn,Xn.years=Un,Xn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,a=!1,i=Wn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(a=e),"object"==typeof t&&(i=Object.assign({},Wn,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var a=Ht(e).abs(),i=Vn(a.as("s")),o=Vn(a.as("m")),s=Vn(a.as("h")),l=Vn(a.as("d")),c=Vn(a.as("M")),u=Vn(a.as("w")),d=Vn(a.as("y")),p=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(p=p||u<=1&&["w"]||u<n.w&&["ww",u]),(p=p||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,p[3]=+e>0,p[4]=r,Kn.apply(null,p)}(this,!a,i,n),a&&(r=n.pastFuture(+this,r)),n.postformat(r)},Xn.toISOString=Zn,Xn.toString=Zn,Xn.toJSON=Zn,Xn.locale=Qt,Xn.localeData=tn,Xn.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Zn),Xn.lang=en,$("X",0,0,"unix"),$("x",0,0,"valueOf"),me("x",ue),me("X",/[+-]?\d+(\.\d{1,3})?/),ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ye("x",(function(e,t,n){n._d=new Date(W(e))})),a.version="2.29.1",t=St,a.fn=vn,a.min=function(){var e=[].slice.call(arguments,0);return Tt("isBefore",e)},a.max=function(){var e=[].slice.call(arguments,0);return Tt("isAfter",e)},a.now=function(){return Date.now?Date.now():+new Date},a.utc=m,a.unix=function(e){return St(1e3*e)},a.months=function(e,t){return wn(e,t,"months")},a.isDate=d,a.locale=ot,a.invalid=v,a.duration=Ht,a.isMoment=x,a.weekdays=function(e,t,n){return xn(e,t,n,"weekdays")},a.parseZone=function(){return St.apply(null,arguments).parseZone()},a.localeData=lt,a.isDuration=jt,a.monthsShort=function(e,t){return wn(e,t,"monthsShort")},a.weekdaysMin=function(e,t,n){return xn(e,t,n,"weekdaysMin")},a.defineLocale=st,a.updateLocale=function(e,t){if(null!=t){var n,r,a=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(T(tt[e]._config,t)):(null!=(r=it(e))&&(a=r._config),t=T(a,t),null==r&&(t.abbr=e),(n=new E(t)).parentLocale=tt[e],tt[e]=n),ot(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===ot()&&ot(e)):null!=tt[e]&&delete tt[e]);return tt[e]},a.locales=function(){return M(tt)},a.weekdaysShort=function(e,t,n){return xn(e,t,n,"weekdaysShort")},a.normalizeUnits=R,a.relativeTimeRounding=function(e){return void 0===e?Vn:"function"==typeof e&&(Vn=e,!0)},a.relativeTimeThreshold=function(e,t){return void 0!==Wn[e]&&(void 0===t?Wn[e]:(Wn[e]=t,"s"===e&&(Wn.ss=t-1),!0))},a.calendarFormat=function(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"},a.prototype=vn,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a}()}).call(this,n("YuTi")(e))},x6pH: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("wd/R"))},xAGQ:function(e,t,n){"use strict";var r=n("xTJ+");e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},xMtq:function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,'@-webkit-keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@-webkit-keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}@keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}@-webkit-keyframes rotatePlaceholder{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}to{transform:rotate(-405deg)}}@keyframes rotatePlaceholder{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}to{transform:rotate(-405deg)}}.animateSuccessTip{-webkit-animation:animateSuccessTip .75s;animation:animateSuccessTip .75s}.animateSuccessLong{-webkit-animation:animateSuccessLong .75s;animation:animateSuccessLong .75s}.sweet-modal-icon.sweet-modal-success.animate:after{-webkit-animation:rotatePlaceholder 4.25s ease-in;animation:rotatePlaceholder 4.25s ease-in}@-webkit-keyframes animateErrorIcon{0%{transform:rotateX(100deg);opacity:0}to{transform:rotateX(0deg);opacity:1}}@keyframes animateErrorIcon{0%{transform:rotateX(100deg);opacity:0}to{transform:rotateX(0deg);opacity:1}}.animateErrorIcon{-webkit-animation:animateErrorIcon .5s;animation:animateErrorIcon .5s}@-webkit-keyframes animateXMark{0%{transform:scale(.4);margin-top:26px;opacity:0}50%{transform:scale(.4);margin-top:26px;opacity:0}80%{transform:scale(1.15);margin-top:-6px}to{transform:scale(1);margin-top:0;opacity:1}}@keyframes animateXMark{0%{transform:scale(.4);margin-top:26px;opacity:0}50%{transform:scale(.4);margin-top:26px;opacity:0}80%{transform:scale(1.15);margin-top:-6px}to{transform:scale(1);margin-top:0;opacity:1}}.animateXMark{-webkit-animation:animateXMark .5s;animation:animateXMark .5s}@-webkit-keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}@keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}.pulseWarning{-webkit-animation:pulseWarning .75s infinite alternate;animation:pulseWarning .75s infinite alternate}@-webkit-keyframes pulseWarningIns{0%{background-color:#f8d486}to{background-color:#f8bb86}}@keyframes pulseWarningIns{0%{background-color:#f8d486}to{background-color:#f8bb86}}.pulseWarningIns{-webkit-animation:pulseWarningIns .75s infinite alternate;animation:pulseWarningIns .75s infinite alternate}@-webkit-keyframes rotate-loading{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes rotate-loading{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.sweet-modal-icon{position:relative;width:80px;height:80px;border:4px solid grey;border-radius:50%;margin:auto;padding:0;box-sizing:content-box}.sweet-modal-icon.sweet-modal-error{border-color:#f44336}.sweet-modal-icon.sweet-modal-error .sweet-modal-x-mark{position:relative;display:block}.sweet-modal-icon.sweet-modal-error .sweet-modal-line{display:block;position:absolute;top:37px;height:5px;width:47px;background-color:#f44336;border-radius:2px}.sweet-modal-icon.sweet-modal-error .sweet-modal-line.sweet-modal-left{transform:rotate(45deg);left:17px}.sweet-modal-icon.sweet-modal-error .sweet-modal-line.sweet-modal-right{transform:rotate(-45deg);right:16px}.sweet-modal-icon.sweet-modal-warning{border-color:#ff9800}.sweet-modal-icon.sweet-modal-warning .sweet-modal-body{position:absolute;width:5px;height:47px;left:50%;top:10px;margin-left:-2px;border-radius:2px;background-color:#ff9800}.sweet-modal-icon.sweet-modal-warning .sweet-modal-dot{position:absolute;left:50%;bottom:10px;width:7px;height:7px;margin-left:-3px;border-radius:50%;background-color:#ff9800}.sweet-modal-icon.sweet-modal-info{border-color:#039be5}.sweet-modal-icon.sweet-modal-info:before{content:"";position:absolute;width:5px;height:29px;left:50%;bottom:17px;margin-left:-2px;border-radius:2px;background-color:#039be5}.sweet-modal-icon.sweet-modal-info:after{content:"";position:absolute;width:7px;height:7px;top:19px;margin-left:-3px;border-radius:50%;background-color:#039be5}.sweet-modal-icon.sweet-modal-success{border-color:#4caf50}.sweet-modal-icon.sweet-modal-success:after,.sweet-modal-icon.sweet-modal-success:before{content:"";position:absolute;border-radius:40px;width:60px;height:120px;background:#fff;transform:rotate(45deg)}.sweet-modal-icon.sweet-modal-success:before{border-radius:120px 0 0 120px;top:-7px;left:-33px;transform:rotate(-45deg);transform-origin:60px 60px}.sweet-modal-icon.sweet-modal-success:after{border-radius:0 120px 120px 0;top:-11px;left:30px;transform:rotate(-45deg);transform-origin:0 60px}.sweet-modal-icon.sweet-modal-success .sweet-modal-placeholder{box-sizing:content-box;position:absolute;left:-4px;top:-4px;z-index:2;width:80px;height:80px;border:4px solid rgba(76,175,80,.2);border-radius:50%}.sweet-modal-icon.sweet-modal-success .sweet-modal-fix{position:absolute;left:28px;top:8px;z-index:1;width:7px;height:90px;background-color:#fff;transform:rotate(-45deg)}.sweet-modal-icon.sweet-modal-success .sweet-modal-line{display:block;position:absolute;z-index:2;height:5px;background-color:#4caf50;border-radius:2px}.sweet-modal-icon.sweet-modal-success .sweet-modal-line.sweet-modal-tip{width:25px;left:14px;top:46px;transform:rotate(45deg)}.sweet-modal-icon.sweet-modal-success .sweet-modal-line.sweet-modal-long{width:47px;right:8px;top:38px;transform:rotate(-45deg)}.sweet-modal-icon.sweet-modal-custom{border-radius:0;border:none;background-size:contain;background-position:50%;background-repeat:no-repeat}.sweet-modal.theme-dark .sweet-modal-icon.sweet-modal-success .sweet-modal-fix,.sweet-modal.theme-dark .sweet-modal-icon.sweet-modal-success:after,.sweet-modal.theme-dark .sweet-modal-icon.sweet-modal-success:before{background-color:#182028}.sweet-modal-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:9001;font-size:14px;-webkit-font-smoothing:antialiased;background:hsla(0,0%,100%,.9);opacity:0;transition:opacity .3s;transform:translateZ(0);-webkit-perspective:500px}.sweet-modal-overlay.theme-dark{background:rgba(24,32,40,.94)}.sweet-modal-overlay.is-visible{opacity:1}.sweet-modal{box-sizing:border-box;background:#fff;box-shadow:0 8px 46px rgba(0,0,0,.08),0 2px 6px rgba(0,0,0,.03);position:absolute;top:50%;left:50%;width:80%;max-width:640px;max-height:100vh;overflow-y:auto;border-radius:2px;transform:scale(.9) translate(calc(-50% - 32px),-50%);opacity:0;transition-property:transform,opacity;transition-duration:.3s;transition-delay:.05s;transition-timing-function:cubic-bezier(.52,.02,.19,1.02)}.sweet-modal .sweet-box-actions{position:absolute;top:12px;right:12px}.sweet-modal .sweet-box-actions .sweet-action-close{display:inline-block;cursor:pointer;color:#222c38;text-align:center;width:42px;height:42px;line-height:42px;border-radius:50%}.sweet-modal .sweet-box-actions .sweet-action-close svg{width:24px;height:24px;vertical-align:middle;margin-top:-2px}.sweet-modal .sweet-box-actions .sweet-action-close svg,.sweet-modal .sweet-box-actions .sweet-action-close svg circle,.sweet-modal .sweet-box-actions .sweet-action-close svg path,.sweet-modal .sweet-box-actions .sweet-action-close svg polygon,.sweet-modal .sweet-box-actions .sweet-action-close svg rect{fill:currentColor}.sweet-modal .sweet-box-actions .sweet-action-close:hover{background:#039be5;color:#fff}.sweet-modal .sweet-title{height:64px;line-height:64px;border-bottom:1px solid #eaeaea;padding-left:32px;padding-right:64px}.sweet-modal .sweet-title,.sweet-modal .sweet-title>h2{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sweet-modal .sweet-title>h2{margin:0;padding:0;font-weight:500;font-size:22px}.sweet-modal ul.sweet-modal-tabs{padding:0;list-style-type:none;display:flex;align-items:center;width:calc(100% + 32px);height:100%;margin:0 0 0 -32px;overflow-x:auto}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab{display:block;height:100%}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:flex;align-items:center;padding-left:20px;padding-right:20px;color:#222c38;text-decoration:none;text-align:center;height:100%}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-title{display:block}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon{display:block;line-height:1}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon img,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon svg{width:16px;height:16px}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon img,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon img circle,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon img path,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon img polygon,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon img rect,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon svg,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon svg circle,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon svg path,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon svg polygon,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon svg rect{fill:currentColor}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon+span.sweet-modal-tab-title{line-height:1;margin-top:8px}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab:first-child a{padding-left:32px}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab.active a{font-weight:600;color:#039be5}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab.disabled a{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;pointer-events:none;color:#999}.sweet-modal.has-tabs:not(.has-title) .sweet-title{height:84px;line-height:84px}.sweet-modal.has-tabs.has-title ul.sweet-modal-tabs{width:100%;height:48px;margin:0;border-bottom:1px solid #eaeaea}.sweet-modal.has-tabs.has-title ul.sweet-modal-tabs li.sweet-modal-tab a{margin-top:-4px}.sweet-modal.has-tabs.has-title ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon{display:inline-block}.sweet-modal.has-tabs.has-title ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon img,.sweet-modal.has-tabs.has-title ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon svg{vertical-align:middle;margin-top:-2px;margin-right:8px}.sweet-modal.has-tabs.has-title ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-title{display:inline-block}.sweet-modal .sweet-content{display:flex;align-items:center;padding:24px 32px;line-height:1.5}.sweet-modal .sweet-content .sweet-content-content{flex-grow:1}.sweet-modal .sweet-content .sweet-modal-tab:not(.active){display:none}.sweet-modal .sweet-content .sweet-modal-icon{margin-bottom:36px}.sweet-modal .sweet-buttons{text-align:right;padding:12px 20px}.sweet-modal .sweet-content+.sweet-buttons{border-top:1px solid #eaeaea}.sweet-modal.is-alert .sweet-content{display:block;text-align:center;font-size:16px;padding-top:64px;padding-bottom:64px}.sweet-modal.has-tabs.has-icon .sweet-content{padding-top:32px;padding-bottom:32px}.sweet-modal.has-tabs.has-icon .sweet-content .sweet-content-content{padding-left:32px}.sweet-modal.has-tabs.has-icon .sweet-content .sweet-modal-icon,.sweet-modal:not(.has-content) .sweet-modal-icon{margin-bottom:0}.sweet-modal.theme-dark{background:#182028;color:#fff}.sweet-modal.theme-dark .sweet-box-actions .sweet-action-close{color:#fff}.sweet-modal.theme-dark .sweet-title{border-bottom-color:#090c0f;box-shadow:0 1px 0 #273442}.sweet-modal.theme-dark ul.sweet-modal-tabs li a{color:#fff}.sweet-modal.theme-dark ul.sweet-modal-tabs li.active a{color:#039be5}.sweet-modal.theme-dark ul.sweet-modal-tabs li.disabled a{color:#3e5368}.sweet-modal.theme-dark.has-tabs.has-title ul.sweet-modal-tabs{border-bottom-color:#090c0f;box-shadow:0 1px 0 #273442}.sweet-modal.theme-dark .sweet-content+.sweet-buttons{border-top-color:#273442;box-shadow:0 -1px 0 #090c0f}.sweet-modal .sweet-buttons,.sweet-modal .sweet-content{opacity:0;transition-property:transform,opacity;transition-duration:.3s;transition-delay:.09s;transition-timing-function:cubic-bezier(.52,.02,.19,1.02)}.sweet-modal .sweet-content{transform:translateY(-8px)}.sweet-modal .sweet-buttons{transform:translateY(16px)}.sweet-modal.is-visible{transform:translate(-50%,-50%);opacity:1}.sweet-modal.is-visible .sweet-buttons,.sweet-modal.is-visible .sweet-content{transform:none;opacity:1}.sweet-modal.bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-iteration-count:2;animation-iteration-count:2;-webkit-animation-direction:alternate;animation-direction:alternate}@media screen and (min-width:601px){@-webkit-keyframes bounce{0%{transform:scale(1) translate(-50%,-50%)}50%{transform:scale(1.02) translate(calc(-50% + 8px),-50%)}to{transform:scale(1) translate(-50%,-50%)}}@keyframes bounce{0%{transform:scale(1) translate(-50%,-50%)}50%{transform:scale(1.02) translate(calc(-50% + 8px),-50%)}to{transform:scale(1) translate(-50%,-50%)}}}@media screen and (max-width:600px){.sweet-modal.is-mobile-fullscreen{width:100%;height:100vh;left:0;top:0;transform:scale(.9)}.sweet-modal.is-mobile-fullscreen.is-visible{transform:none}.sweet-modal.is-mobile-fullscreen .sweet-buttons{box-sizing:border-box;position:absolute;bottom:0;left:0;width:100%}}',""])},"xTJ+":function(e,t,n){"use strict";var r=n("HSsa"),a=Object.prototype.toString;function i(e){return"[object Array]"===a.call(e)}function o(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function l(e){return"[object Function]"===a.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===a.call(e)},isBuffer:function(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isUndefined:o,isDate:function(e){return"[object Date]"===a.call(e)},isFile:function(e){return"[object File]"===a.call(e)},isBlob:function(e){return"[object Blob]"===a.call(e)},isFunction:l,isStream:function(e){return s(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,a=arguments.length;r<a;r++)c(arguments[r],n);return t},deepMerge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]="object"==typeof n?e({},n):n}for(var r=0,a=arguments.length;r<a;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,a){e[a]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},xm8R:function(e,t,n){"use strict";var r=n("Opvw"),a=n("L2JU"),i=n("o0o1"),o=n.n(i);function s(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){s(i,r,a,o,l,"next",e)}function l(e){s(i,r,a,o,l,"throw",e)}o(void 0)}))}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=n("ta7f"),f=p.required,m=p.minLength,h=p.between,_=p.maxLength,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({},Object(a.c)("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:f,minLength:m(3)},percent:{required:f,between:h(0,100)},description:{maxLength:_(255)}}},mounted:function(){var e=this;return l(o.a.mark((function t(){return o.a.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({},Object(a.b)("modal",["closeModal","resetModalData"])),Object(a.b)("taxType",["addTaxType","updateTaxType","fetchTaxType"])),{},{resetFormData:function(){this.formData={id:null,name:null,percent:0,description:null,collective_tax:0},this.$v.formData.$reset()},submitTaxTypeData:function(){var e=this;return l(o.a.mark((function t(){var n;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:if(e.isLoading=!0,e.isEdit){t.next=10;break}return t.next=7,e.addTaxType(e.formData);case 7:n=t.sent,t.next=13;break;case 10:return t.next=12,e.updateTaxType(e.formData);case 12:n=t.sent;case 13:if(!n.data){t.next=20;break}return e.isEdit?window.toastr.success(e.$t("settings.tax_types.updated_message")):window.toastr.success(e.$t("settings.tax_types.created_message")),window.hub.$emit("newTax",n.data.taxType),e.refreshData&&e.refreshData(),e.closeTaxModal(),e.isLoading=!1,t.abrupt("return",!0);case 20:window.toastr.error(n.data.error);case 21:case"end":return t.stop()}}),t)})))()},setData:function(){var e=this;return l(o.a.mark((function t(){return o.a.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()}})},g=n("KHd+"),y=Object(g.a)(v,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tax-type-modal"},[n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.submitTaxTypeData(t)}}},[n("div",{staticClass:"p-8 sm:p-6"},[n("sw-input-group",{staticClass:"mt-3",attrs:{label:e.$t("tax_types.name"),error:e.nameError,variant:"horizontal",required:""}},[n("sw-input",{ref:"name",attrs:{invalid:e.$v.formData.name.$error,type:"text"},on:{input:function(t){return e.$v.formData.name.$touch()}},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-3",attrs:{label:e.$t("tax_types.percent"),error:e.percentError,variant:"horizontal",required:""}},[n("sw-money",{staticClass:"relative w-full focus:border focus:border-solid focus:border-primary",attrs:{currency:e.defaultInput,invalid:e.$v.formData.percent.$error},on:{input:function(t){return e.$v.formData.percent.$touch()}},model:{value:e.formData.percent,callback:function(t){e.$set(e.formData,"percent",t)},expression:"formData.percent"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-3",attrs:{label:e.$t("tax_types.description"),error:e.descriptionError,variant:"horizontal"}},[n("sw-textarea",{attrs:{rows:"4",cols:"50"},on:{input:function(t){return e.$v.formData.description.$touch()}},model:{value:e.formData.description,callback:function(t){e.$set(e.formData,"description",t)},expression:"formData.description"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-3",attrs:{label:e.$t("tax_types.compound_tax"),variant:"horizontal"}},[n("sw-switch",{staticClass:"flex items-center mt-1",model:{value:e.formData.compound_tax,callback:function(t){e.$set(e.formData,"compound_tax",t)},expression:"formData.compound_tax"}})],1)],1),e._v(" "),n("div",{staticClass:"z-0 flex justify-end p-4 border-t border-solid border--200 border-modal-bg"},[n("sw-button",{staticClass:"mr-3 text-sm",attrs:{variant:"primary-outline",type:"button"},on:{click:e.closeTaxModal}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{loading:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.isEdit?e.$t("general.update"):e.$t("general.save"))+"\n ")],1)],1)])])}),[],!1,null,null,null).exports;function b(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D=n("ta7f"),M=D.required,S=D.minLength,C=(D.numeric,D.maxLength),L=D.minValue,T={components:{ShoppingCartIcon:r.F},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({},Object(a.c)("company",["defaultCurrencyForInput"])),{},{price:{get:function(){return this.formData.price/100},set:function(e){this.formData.price=100*e}}},Object(a.c)("modal",["modalDataID","modalData"])),Object(a.c)("item",["getItemById","itemUnits"])),Object(a.c)("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({},Object(a.b)("modal",["closeModal","resetModalData"])),Object(a.b)("item",["addItem","updateItem","fetchItemUnits"])),Object(a.b)("invoice",["setItem"])),{},{resetFormData:function(){this.formData={name:null,price:null,description:null,unit:null,id:null},this.$v.$reset()},fetchEditData:function(){this.tempData=this.getItemById(this.modalDataID),this.tempData&&(this.formData.name=this.tempData.name,this.formData.price=this.tempData.price,this.formData.description=this.tempData.description,this.formData.unit=this.tempData.unit,this.formData.id=this.tempData.id)},submitItemData:function(){var e,t=this;return(e=o.a.mark((function e(){var n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.$v.formData.$touch(),!t.$v.$invalid){e.next=3;break}return e.abrupt("return",!0);case 3:if(t.formData.unit&&(t.formData.unit_id=t.formData.unit.id),t.isLoading=!0,!t.isEdit){e.next=11;break}return e.next=8,t.updateItem(t.formData);case 8:n=e.sent,e.next=15;break;case 11:return r=x(x({},t.formData),{},{taxes:t.formData.taxes.map((function(e){return{tax_type_id:e.id,amount:t.formData.price*e.percent/100,percent:e.percent,name:e.name,collective_tax:0}}))}),e.next=14,t.addItem(r);case 14:n=e.sent;case 15:if(!n.data){e.next=24;break}return window.toastr.success(t.$tc("items.created_message")),t.setItem(n.data.item),window.hub.$emit("newItem",n.data.item),t.isLoading=!1,t.resetModalData(),t.resetFormData(),t.closeModal(),e.abrupt("return",!0);case 24:window.toastr.error(n.data.error);case 25:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){b(i,r,a,o,s,"next",e)}function s(e){b(i,r,a,o,s,"throw",e)}o(void 0)}))})()},closeItemModal:function(){this.resetFormData(),this.closeModal(),this.resetModalData()}})},E=Object(g.a)(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,maxHeight: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 O(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?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}var Y={data:function(){return{selectedTemplate:1,isLoading:!1}},computed:A(A({},Object(a.c)("modal",["modalData"])),Object(a.c)("estimate",["getTemplateId"])),mounted:function(){this.selectedTemplate=this.getTemplateId},methods:A(A(A({},Object(a.b)("estimate",["setTemplate"])),Object(a.b)("modal",["closeModal","resetModalData"])),{},{chooseTemplate:function(){var e,t=this;return(e=o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.isLoading=!0,e.next=3,t.setTemplate(t.selectedTemplate);case 3:e.sent&&(t.isLoading=!1,t.resetModalData(),t.closeModal());case 5:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){O(i,r,a,o,s,"next",e)}function s(e){O(i,r,a,o,s,"throw",e)}o(void 0)}))})()},closeEstimateModal:function(){this.selectedTemplate=this.getTemplateId,this.closeModal(),this.resetModalData()}})},$=Object(g.a)(Y,(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:"flex flex-wrap justify-start p-1 overflow-x-auto sw-scroll"},e._l(e.modalData,(function(t,r){return n("div",{key:r,staticClass:"relative m-2 border border-gray-200 border-solid",class:{"border border-solid border-primary-500":e.selectedTemplate===t.id}},[n("img",{attrs:{src:t.path,alt:"template-image",height:"200",width:"140"},on:{click:function(n){e.selectedTemplate=t.id}}}),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()])})),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 I(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){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}var R={data:function(){return{selectedTemplate:1,isLoading:!1}},computed:z(z({},Object(a.c)("modal",["modalData"])),Object(a.c)("invoice",["getTemplateId"])),mounted:function(){this.selectedTemplate=this.getTemplateId},methods:z(z(z({},Object(a.b)("invoice",["setTemplate"])),Object(a.b)("modal",["closeModal","resetModalData"])),{},{chooseTemplate:function(){var e,t=this;return(e=o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.isLoading=!0,e.next=3,t.setTemplate(t.selectedTemplate);case 3:e.sent&&(t.isLoading=!1,t.resetModalData(),t.closeModal());case 5:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){I(i,r,a,o,s,"next",e)}function s(e){I(i,r,a,o,s,"throw",e)}o(void 0)}))})()},closeInvoiceModal:function(){this.selectedTemplate=this.getTemplateId,this.closeModal(),this.resetModalData()}})},H=Object(g.a)(R,(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:"flex flex-wrap justify-start p-1 overflow-x-auto sw-scroll"},e._l(e.modalData,(function(t,r){return n("div",{key:r,staticClass:"relative m-2 border border-gray-200 border-solid",class:{"border border-solid border-primary-500":e.selectedTemplate===t.id}},[n("img",{attrs:{src:t.path,alt:"template-image",height:"200",width:"140"},on:{click:function(n){e.selectedTemplate=t.id}}}),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()])})),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,B=n("48T8");function q(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function U(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){q(i,r,a,o,s,"next",e)}function s(e){q(i,r,a,o,s,"throw",e)}o(void 0)}))}}function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(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 G=n("ta7f"),J=G.required,Z=G.minLength,X=G.email,Q=(G.numeric,G.url),ee=G.maxLength,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:J,minLength:Z(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:W(W(W(W({},Object(a.c)(["currencies","countries"])),Object(a.c)("company",["defaultCurrency"])),Object(a.c)("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:W(W(W(W(W({},Object(a.b)("invoice",{setInvoiceCustomer:"selectCustomer"})),Object(a.b)("estimate",{setEstimateCustomer:"selectCustomer"})),Object(a.b)("customer",["fetchCustomer","addCustomer","updateCustomer"])),Object(a.b)("modal",["closeModal"])),{},{resetData:function(){this.formData={name:null,currency_id:null,phone:null,website:null,contact_name:null,addresses:[]},this.billingCountry=null,this.shippingCountry=null,this.billing=W({},B.a),this.shipping=W({},B.a),this.$v.formData.$reset()},cancelCustomer:function(){this.resetData(),this.closeModal()},copyAddress:function(e){!0===e?(this.isCopyFromBilling=!0,this.shipping=W(W({},this.billing),{},{type:"shipping"}),this.shippingCountry=this.billingCountry):(this.shipping=W(W({},B.a),{},{type:"shipping"}),this.shippingCountry=null)},loadData:function(){var e=this;return U(o.a.mark((function t(){var n;return o.a.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=[W(W({},this.billing),{},{type:"billing"}),W(W({},this.shipping),{},{type:"shipping"})],!0):!1===e?(this.formData.addresses.push(W(W({},this.billing),{},{type:"billing"})),!0):(this.formData.addresses=[W(W({},this.shipping),{},{type:"shipping"})],!0)},setData:function(){var e=this;return U(o.a.mark((function t(){return o.a.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 U(o.a.mark((function t(){var n;return o.a.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=[W({},e.billing),W({},e.shipping)]:e.hasBillingAdd?e.formData.addresses=[W({},e.billing)]:e.hasShippingAdd&&(e.formData.addresses=[W({},e.shipping)]),e.isLoading=!0,e.currency?e.formData.currency_id=e.currency.id:e.formData.currency_id=e.defaultCurrency.id,t.prev=6,n=null,!e.modalDataID){t.next=14;break}return t.next=11,e.updateCustomer(e.formData);case 11:n=t.sent,t.next=17;break;case 14:return t.next=16,e.addCustomer(e.formData);case 16:n=t.sent;case 17:if(!n.data){t.next=25;break}return e.modalDataID?window.toastr.success(e.$tc("customers.updated_message")):window.toastr.success(e.$tc("customers.created_message")),e.isLoading=!1,"invoices.create"!==e.$route.name&&"invoices.edit"!==e.$route.name||e.setInvoiceCustomer(n.data.customer.id),"estimates.create"!==e.$route.name&&"estimates.edit"!==e.$route.name||e.setEstimateCustomer(n.data.customer.id),e.resetData(),e.closeModal(),t.abrupt("return",!0);case 25:t.next=30;break;case 27:t.prev=27,t.t0=t.catch(6),e.isLoading=!1;case 30:case"end":return t.stop()}}),t,null,[[6,27]])})))()}})},ne=Object(g.a)(te,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"customer-modal"},[n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.submitCustomerData(t)}}},[n("div",{staticClass:"flex-1 p-5 sm:p-6"},[n("sw-tabs",[n("sw-tab-item",{staticClass:"mt-5",attrs:{title:"Basic Info"}},[n("sw-input-group",{attrs:{label:e.$t("customers.display_name"),error:e.nameError,variant:"horizontal",required:""}},[n("sw-input",{ref:"name",staticClass:"mt-1 md:mt-0",attrs:{invalid:e.$v.formData.name.$error,type:"text",name:"name"},on:{input:function(t){return e.$v.formData.name.$touch()}},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name","string"==typeof t?t.trim():t)},expression:"formData.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.primary_display_name"),variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{type:"text"},model:{value:e.formData.contact_name,callback:function(t){e.$set(e.formData,"contact_name",t)},expression:"formData.contact_name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("login.email"),error:e.emailError,variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{invalid:e.$v.formData.email.$error,type:"text",name:"email"},on:{input:function(t){return e.$v.formData.email.$touch()}},model:{value:e.formData.email,callback:function(t){e.$set(e.formData,"email","string"==typeof t?t.trim():t)},expression:"formData.email"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$tc("settings.currencies.currency"),variant:"horizontal"}},[n("sw-select",{staticClass:"mt-1 md:mt-0",attrs:{options:e.currencies,searchable:!0,"allow-empty":!1,"show-labels":!1,placeholder:e.$t("customers.select_currency"),maxHeight:200,label:"name","track-by":"id"},model:{value:e.currency,callback:function(t){e.currency=t},expression:"currency"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.phone"),variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{type:"text",name:"phone"},model:{value:e.formData.phone,callback:function(t){e.$set(e.formData,"phone","string"==typeof t?t.trim():t)},expression:"formData.phone"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.website"),error:e.websiteError,variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{invalid:e.$v.formData.website.$error,type:"url"},on:{input:function(t){return e.$v.formData.website.$touch()}},model:{value:e.formData.website,callback:function(t){e.$set(e.formData,"website",t)},expression:"formData.website"}})],1)],1),e._v(" "),n("sw-tab-item",{staticClass:"mt-5",attrs:{title:"Billing Address"}},[n("sw-input-group",{attrs:{label:e.$t("customers.name"),variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{type:"text"},model:{value:e.billing.name,callback:function(t){e.$set(e.billing,"name",t)},expression:"billing.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.phone"),variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{type:"text",name:"phone"},model:{value:e.billing.phone,callback:function(t){e.$set(e.billing,"phone","string"==typeof t?t.trim():t)},expression:"billing.phone"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.address"),error:e.bill1Error,variant:"horizontal"}},[n("sw-textarea",{staticClass:"mt-1 md:mt-0",attrs:{placeholder:e.$t("general.street_1"),rows:"2",cols:"50"},on:{input:function(t){return e.$v.billing.address_street_1.$touch()}},model:{value:e.billing.address_street_1,callback:function(t){e.$set(e.billing,"address_street_1",t)},expression:"billing.address_street_1"}}),e._v(" "),n("br")],1),e._v(" "),n("sw-input-group",{attrs:{error:e.bill2Error,variant:"horizontal"}},[n("sw-textarea",{attrs:{placeholder:e.$t("general.street_2"),rows:"2",cols:"50"},on:{input:function(t){return e.$v.billing.address_street_2.$touch()}},model:{value:e.billing.address_street_2,callback:function(t){e.$set(e.billing,"address_street_2",t)},expression:"billing.address_street_2"}}),e._v(" "),n("br")],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.country"),variant:"horizontal"}},[n("sw-select",{staticClass:"mt-1 md:mt-0",attrs:{options:e.countries,searchable:!0,"show-labels":!1,placeholder:e.$t("general.select_country"),"allow-empty":!1,"track-by":"id",label:"name"},model:{value:e.billingCountry,callback:function(t){e.billingCountry=t},expression:"billingCountry"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.state"),variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{type:"text",name:"billingState"},model:{value:e.billing.state,callback:function(t){e.$set(e.billing,"state",t)},expression:"billing.state"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.city"),variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{type:"text",name:"billingCity"},model:{value:e.billing.city,callback:function(t){e.$set(e.billing,"city",t)},expression:"billing.city"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.zip_code"),variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{type:"text"},model:{value:e.billing.zip,callback:function(t){e.$set(e.billing,"zip",t)},expression:"billing.zip"}})],1)],1),e._v(" "),n("sw-tab-item",{staticClass:"mt-5",attrs:{title:"Shipping Address"}},[n("div",{staticClass:"grid md:grid-cols-12"},[n("div",{staticClass:"flex justify-end col-span-12"},[n("sw-button",{ref:"sameAddress",attrs:{variant:"primary",type:"button"},on:{click:function(t){return e.copyAddress(!0)}}},[e._v("\n "+e._s(e.$t("customers.copy_billing_address"))+"\n ")])],1)]),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.name"),variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{type:"text"},model:{value:e.shipping.name,callback:function(t){e.$set(e.shipping,"name",t)},expression:"shipping.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.phone"),variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{type:"text",name:"phone"},model:{value:e.shipping.phone,callback:function(t){e.$set(e.shipping,"phone","string"==typeof t?t.trim():t)},expression:"shipping.phone"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.address"),error:e.ship1Error,variant:"horizontal"}},[n("sw-textarea",{staticClass:"mt-1 md:mt-0",attrs:{placeholder:e.$t("general.street_1"),rows:"2",cols:"50"},on:{input:function(t){return e.$v.shipping.address_street_1.$touch()}},model:{value:e.shipping.address_street_1,callback:function(t){e.$set(e.shipping,"address_street_1",t)},expression:"shipping.address_street_1"}}),e._v(" "),n("br")],1),e._v(" "),n("sw-input-group",{attrs:{error:e.ship2Error,variant:"horizontal"}},[n("sw-textarea",{attrs:{placeholder:e.$t("general.street_2"),rows:"2",cols:"50"},on:{input:function(t){return e.$v.shipping.address_street_2.$touch()}},model:{value:e.shipping.address_street_2,callback:function(t){e.$set(e.shipping,"address_street_2",t)},expression:"shipping.address_street_2"}}),e._v(" "),n("br")],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.country"),variant:"horizontal"}},[n("sw-select",{staticClass:"mt-1 md:mt-0",attrs:{options:e.countries,searchable:!0,"show-labels":!1,"allow-empty":!1,placeholder:e.$t("general.select_country"),"track-by":"id",label:"name"},model:{value:e.shippingCountry,callback:function(t){e.shippingCountry=t},expression:"shippingCountry"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.state"),variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{type:"text",name:"shippingState"},model:{value:e.shipping.state,callback:function(t){e.$set(e.shipping,"state",t)},expression:"shipping.state"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.city"),variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{type:"text",name:"shippingCity"},model:{value:e.shipping.city,callback:function(t){e.$set(e.shipping,"city",t)},expression:"shipping.city"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.zip_code"),variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{type:"text"},model:{value:e.shipping.zip,callback:function(t){e.$set(e.shipping,"zip",t)},expression:"shipping.zip"}})],1)],1)],1)],1),e._v(" "),n("div",{staticClass:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},[n("sw-button",{staticClass:"mr-3 text-sm",attrs:{type:"button",variant:"primary-outline"},on:{click:e.cancelCustomer}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{variant:"primary",type:"submit",loading:e.isLoading}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.$t("general.save"))+"\n ")],1)],1)])])}),[],!1,null,null,null).exports;function re(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function ae(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){re(i,r,a,o,s,"next",e)}function s(e){re(i,r,a,o,s,"throw",e)}o(void 0)}))}}function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(n),!0).forEach((function(t){se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var le=n("ta7f"),ce=le.required,ue=le.minLength,de=le.maxLength,pe={data:function(){return{isEdit:!1,isLoading:!1,formData:{id:null,name:null,description:null}}},computed:oe(oe({},Object(a.c)("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({},Object(a.b)("modal",["closeModal"])),Object(a.b)("category",["addCategory","updateCategory"])),{},{resetFormData:function(){this.formData={id:null,name:null,description:null},this.$v.formData.$reset()},submitCategoryData:function(){var e=this;return ae(o.a.mark((function t(){var n;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:if(e.isLoading=!0,e.isEdit){t.next=10;break}return t.next=7,e.addCategory(e.formData);case 7:n=t.sent,t.next=13;break;case 10:return t.next=12,e.updateCategory(e.formData);case 12:n=t.sent;case 13:if(!n.data){t.next=20;break}return e.isEdit?window.toastr.success(e.$t("settings.expense_category.updated_message")):window.toastr.success(e.$t("settings.expense_category.created_message")),window.hub.$emit("newCategory",n.data.category),e.refreshData&&e.refreshData(),e.closeCategoryModal(),e.isLoading=!1,t.abrupt("return",!0);case 20:window.toastr.error(n.data.error);case 21:case"end":return t.stop()}}),t)})))()},setData:function(){var e=this;return ae(o.a.mark((function t(){return o.a.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()}})},fe=Object(g.a)(pe,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.submitCategoryData(t)}}},[n("div",{staticClass:"p-8 sm:p-6"},[n("sw-input-group",{attrs:{label:e.$t("expenses.category"),error:e.nameError,variant:"horizontal",required:""}},[n("sw-input",{ref:"name",attrs:{invalid:e.$v.formData.name.$error,type:"text"},on:{input:function(t){return e.$v.formData.name.$touch()}},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-5",attrs:{label:e.$t("expenses.description"),error:e.descriptionError,variant:"horizontal"}},[n("sw-textarea",{attrs:{rows:"4",cols:"50"},on:{input:function(t){return e.$v.formData.description.$touch()}},model:{value:e.formData.description,callback:function(t){e.$set(e.formData,"description",t)},expression:"formData.description"}})],1)],1),e._v(" "),n("div",{staticClass:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid border-modal-bg"},[n("sw-button",{staticClass:"mr-3 text-sm",attrs:{type:"button",variant:"primary-outline"},on:{click:e.closeCategoryModal}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{variant:"primary",type:"submit",loading:e.isLoading}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.isEdit?e.$t("general.update"):e.$t("general.save"))+"\n ")],1)],1)])}),[],!1,null,null,null).exports;n("LvDl");function me(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function he(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){me(i,r,a,o,s,"next",e)}function s(e){me(i,r,a,o,s,"throw",e)}o(void 0)}))}}function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(n),!0).forEach((function(t){ge(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ye=n("ta7f").required,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({},Object(a.c)("disks",["getDisks"])),Object(a.c)("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({},Object(a.b)("backup",["createBackup"])),Object(a.b)("disks",["fetchDisks"])),Object(a.b)("modal",["closeModal"])),{},{getCustomLabel:function(e){var t=e.driver,n=e.name;return"".concat(n," — [").concat(t,"]")},createNewBackup:function(){var e=this;return he(o.a.mark((function t(){var n;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={option:e.formData.option,file_disk_id:e.formData.selected_disk.id},t.prev=1,e.isCreateLoading=!0,t.next=5,e.createBackup(n);case 5:e.isCreateLoading=!1,window.toastr.success(e.$t("settings.backup.created_message")),e.refreshData&&e.refreshData(),e.cancelBackup(),t.next=15;break;case 11:t.prev=11,t.t0=t.catch(1),e.isCreateLoading=!1,window.toastr.error(t.t0.response.data.message);case 15:case"end":return t.stop()}}),t,null,[[1,11]])})))()},loadData:function(){var e=this;return he(o.a.mark((function t(){var n;return o.a.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()}})},we=Object(g.a)(be,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"relative customer-modal"},[e.isRequestOngoing?n("base-loader",{staticClass:"h-130",attrs:{"show-bg-overlay":!0}}):e._e(),e._v(" "),n("form",{on:{submit:function(t){return t.preventDefault(),e.createNewBackup(t)}}},[n("div",{staticClass:"p-6"},[n("sw-input-group",{staticClass:"py-2",attrs:{label:e.$t("settings.backup.select_backup_type"),error:e.optionError,horizontal:"",required:""}},[n("sw-select",{attrs:{options:e.options,searchable:!0,"show-labels":!1,placeholder:e.$t("settings.backup.select_backup_type"),"allow-empty":!1,maxHeight:100},model:{value:e.formData.option,callback:function(t){e.$set(e.formData,"option",t)},expression:"formData.option"}})],1),e._v(" "),n("sw-input-group",{staticClass:"py-2",attrs:{label:e.$t("settings.disk.select_disk"),error:e.selectDiskError,horizontal:"",required:""}},[n("sw-select",{attrs:{options:e.getDisks,searchable:!0,"show-labels":!1,placeholder:e.$t("settings.disk.select_disk"),"allow-empty":!1,"track-by":"id","preselect-first":!0,"custom-label":e.getCustomLabel,maxHeight:100,loading:e.isLoading},model:{value:e.formData.selected_disk,callback:function(t){e.$set(e.formData,"selected_disk",t)},expression:"formData.selected_disk"}})],1)],1),e._v(" "),n("div",{staticClass:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},[n("sw-button",{staticClass:"mr-3",attrs:{variant:"primary-outline",type:"button"},on:{click:e.cancelBackup}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{loading:e.isCreateLoading,variant:"primary",type:"submit",disabled:e.isCreateLoading}},[e.isCreateLoading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.$t("general.create"))+"\n ")],1)],1)])],1)}),[],!1,null,null,null).exports;function xe(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function ke(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){xe(i,r,a,o,s,"next",e)}function s(e){xe(i,r,a,o,s,"throw",e)}o(void 0)}))}}function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach((function(t){Se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ce=n("ta7f"),Le=Ce.required,Te=Ce.minLength,Ee={data:function(){return{isEdit:!1,isLoading:!1,formData:{id:null,name:null}}},computed:Me(Me({},Object(a.c)("modal",["modalDataID","modalData","modalActive","refreshData"])),{},{nameError:function(){return this.$v.formData.name.$error?this.$v.formData.name.required?void 0:this.$tc("validation.required"):""}}),validations:{formData:{name:{required:Le,minLength:Te(2)}}},mounted:function(){var e=this;return ke(o.a.mark((function t(){return o.a.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({},Object(a.b)("modal",["closeModal","resetModalData"])),Object(a.b)("payment",["addPaymentMode","updatePaymentMode"])),{},{resetFormData:function(){this.formData={id:null,name:null},this.$v.formData.$reset()},submitPaymentMode:function(){var e=this;return ke(o.a.mark((function t(){var n;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:if(e.isLoading=!0,!e.isEdit){t.next=16;break}return t.next=7,e.updatePaymentMode(e.formData);case 7:if(!(n=t.sent).data){t.next=13;break}return window.toastr.success(e.$t("settings.customization.payments.payment_mode_updated")),e.refreshData&&e.refreshData(),e.closePaymentModeModal(),t.abrupt("return",!0);case 13:window.toastr.error(n.data.error),t.next=32;break;case 16:return t.prev=16,t.next=19,e.addPaymentMode(e.formData);case 19:if(!(n=t.sent).data){t.next=26;break}return e.isLoading=!1,window.toastr.success(e.$t("settings.customization.payments.payment_mode_added")),e.refreshData&&e.refreshData(),e.closePaymentModeModal(),t.abrupt("return",!0);case 26:window.toastr.error(n.data.error),t.next=32;break;case 29:t.prev=29,t.t0=t.catch(16),e.isLoading=!1;case 32:case"end":return t.stop()}}),t,null,[[16,29]])})))()},setData:function(){var e=this;return ke(o.a.mark((function t(){return o.a.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()}})},Oe=Object(g.a)(Ee,(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,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Ae(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){je(i,r,a,o,s,"next",e)}function s(e){je(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ye(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){$e(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 $e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ie=n("ta7f"),Ne=Ie.required,ze=Ie.minLength,Fe={data:function(){return{isEdit:!1,isLoading:!1,formData:{id:null,name:null}}},computed:Ye(Ye({},Object(a.c)("modal",["modalDataID","modalData","modalActive","refreshData"])),{},{nameError:function(){return this.$v.formData.name.$error?this.$v.formData.name.required?void 0:this.$tc("validation.required"):""}}),validations:{formData:{name:{required:Ne,minLength:ze(2)}}},mounted:function(){var e=this;return Ae(o.a.mark((function t(){return o.a.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:Ye(Ye(Ye({},Object(a.b)("modal",["closeModal","resetModalData"])),Object(a.b)("item",["addItemUnit","updateItemUnit","fatchItemUnit"])),{},{resetFormData:function(){this.formData={id:null,name:null},this.$v.formData.$reset()},submitItemUnit:function(){var e=this;return Ae(o.a.mark((function t(){var n;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:if(e.isLoading=!0,t.prev=4,e.isEdit){t.next=11;break}return t.next=8,e.addItemUnit(e.formData);case 8:n=t.sent,t.next=14;break;case 11:return t.next=13,e.updateItemUnit(e.formData);case 13:n=t.sent;case 14:if(!n.data){t.next=20;break}return e.isLoading=!1,e.isEdit?window.toastr.success(e.$t("settings.customization.items.item_unit_updated")):window.toastr.success(e.$t("settings.customization.items.item_unit_added")),e.refreshData&&e.refreshData(),e.closeItemUnitModal(),t.abrupt("return",!0);case 20:t.next=26;break;case 22:t.prev=22,t.t0=t.catch(4),e.isLoading=!1,window.toastr.error(n.data.error);case 26:case"end":return t.stop()}}),t,null,[[4,22]])})))()},setData:function(){var e=this;return Ae(o.a.mark((function t(){return o.a.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()}})},Re=Object(g.a)(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,He=n("3caz");function Be(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function qe(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Be(i,r,a,o,s,"next",e)}function s(e){Be(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(n),!0).forEach((function(t){We(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function We(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ke=n("ta7f"),Ge=Ke.required,Je=(Ke.minLength,Ke.email),Ze=Ke.maxLength,Xe={components:{PaperAirplaneIcon:He.t},data:function(){return{isEdit:!1,isLoading:!1,formData:{to:null,subject:null,message:null}}},computed:Ve(Ve({},Object(a.c)("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:Ge,email:Je},subject:{required:Ge,maxLength:Ze(100)},message:{required:Ge,maxLength:Ze(255)}}},mounted:function(){var e=this;return qe(o.a.mark((function t(){return o.a.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:Ve(Ve(Ve({},Object(a.b)("modal",["closeModal","resetModalData"])),Object(a.b)("company",["sendTestMail"])),{},{resetFormData:function(){this.formData={to:null,subject:null,message:null},this.$v.formData.$reset()},onTestMailSend:function(){var e=this;return qe(o.a.mark((function t(){var n;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:return e.isLoading=!0,t.next=6,e.sendTestMail(e.formData);case 6:if(!(n=t.sent).data){t.next=17;break}if(!n.data.success){t.next=13;break}return window.toastr.success(e.$tc("general.send_mail_successfully")),e.closeTaxModal(),e.isLoading=!1,t.abrupt("return",!0);case 13:return window.toastr.error(e.$tc("validation.something_went_wrong")),e.closeTaxModal(),e.isLoading=!1,t.abrupt("return",!0);case 17:window.toastr.error(n.data.error);case 18:case"end":return t.stop()}}),t)})))()},closeTaxModal:function(){this.resetModalData(),this.resetFormData(),this.closeModal()}})},Qe=Object(g.a)(Xe,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"mail-config-modal"},[n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.onTestMailSend(t)}}},[n("div",{staticClass:"p-4 md:p-8"},[n("sw-input-group",{staticClass:"mt-3",attrs:{label:e.$t("general.to"),error:e.emailError,variant:"horizontal",required:""}},[n("sw-input",{ref:"to",attrs:{invalid:e.$v.formData.to.$error,type:"text"},on:{input:function(t){return e.$v.formData.to.$touch()}},model:{value:e.formData.to,callback:function(t){e.$set(e.formData,"to",t)},expression:"formData.to"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-3",attrs:{label:e.$t("general.subject"),error:e.subjectError,variant:"horizontal",required:""}},[n("sw-input",{attrs:{invalid:e.$v.formData.subject.$error,type:"text"},on:{input:function(t){return e.$v.formData.subject.$touch()}},model:{value:e.formData.subject,callback:function(t){e.$set(e.formData,"subject",t)},expression:"formData.subject"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-3",attrs:{label:e.$t("general.message"),error:e.messageError,variant:"horizontal",required:""}},[n("sw-textarea",{attrs:{invalid:e.$v.formData.message.$error,rows:"4",cols:"50"},on:{input:function(t){return e.$v.formData.message.$touch()}},model:{value:e.formData.message,callback:function(t){e.$set(e.formData,"message",t)},expression:"formData.message"}})],1)],1),e._v(" "),n("div",{staticClass:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},[n("sw-button",{staticClass:"mr-3",attrs:{variant:"primary-outline"},on:{click:e.closeTaxModal}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{variant:"primary",type:"submit",loading:e.isLoading}},[e.isLoading?e._e():n("paper-airplane-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.isEdit?e.$t("general.update"):e.$t("general.send"))+"\n ")],1)],1)])])}),[],!1,null,null,null).exports;function et(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function tt(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){et(i,r,a,o,s,"next",e)}function s(e){et(i,r,a,o,s,"throw",e)}o(void 0)}))}}function nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(n),!0).forEach((function(t){at(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function at(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var it=n("ta7f"),ot=it.required,st=it.email,lt=(n("LvDl"),{components:{PaperAirplaneIcon:r.x},data:function(){return{isLoading:!1,InvoiceMailFields:["customer","customerCustom","invoice","invoiceCustom","company"],formData:{from:null,to:null,subject:"New Invoice",body:null}}},validations:{formData:{from:{required:ot,email:st},to:{required:ot,email:st},subject:{required:ot},body:{required:ot}}},computed:rt(rt(rt({},Object(a.c)("modal",["modalDataID","modalData","modalActive"])),Object(a.c)("user",["currentUser"])),{},{fromError:function(){return this.$v.formData.from.$error?this.$v.formData.from.required?this.$v.formData.from.email?void 0:this.$tc("validation.email_incorrect"):this.$tc("validation.required"):""},toError:function(){return this.$v.formData.to.$error?this.$v.formData.to.required?this.$v.formData.from.email?void 0:this.$tc("validation.email_incorrect"):this.$tc("validation.required"):""},subjectError:function(){return this.$v.formData.subject.$error?this.$v.formData.subject.required?void 0:this.$tc("validation.required"):""},bodyError:function(){return this.$v.formData.body.$error?this.$v.formData.body.required?void 0:this.$tc("validation.required"):""}}),mounted:function(){this.setInitialData()},methods:rt(rt(rt(rt({},Object(a.b)("modal",["closeModal"])),Object(a.b)("invoice",["sendEmail"])),Object(a.b)("company",["fetchCompanySettings","fetchMailConfig"])),{},{setInitialData:function(){var e=this;return tt(o.a.mark((function t(){var n,r;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchMailConfig();case 2:return n=t.sent,e.modalData&&(e.formData.from=n.data.from_mail,e.formData.to=e.modalData.user.email),t.next=6,e.fetchCompanySettings(["invoice_mail_body"]);case 6:r=t.sent,e.formData.body=r.data.invoice_mail_body;case 8:case"end":return t.stop()}}),t)})))()},resetFormData:function(){this.formData={from:null,to:null,subject:null,body:null}},sendInvoiceData:function(){var e=this;return tt(o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:swal({title:e.$t("general.are_you_sure"),text:e.$t("invoices.confirm_send_invoice"),icon:"/assets/icon/check-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=tt(o.a.mark((function t(n){var r,a;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!n){t.next=15;break}return r=rt(rt({},e.formData),{},{id:e.modalDataID,status:"SENT"}),e.isLoading=!0,t.next=6,e.sendEmail(r);case 6:if(a=t.sent,e.closeModal(),!a.data.success){t.next=12;break}return e.isLoading=!1,window.toastr.success(e.$tc("invoices.send_invoice_successfully")),t.abrupt("return",!0);case 12:if("invoices.user_email_does_not_exist"!==a.data.error){t.next=15;break}return window.toastr.error(e.$tc("invoices.user_email_does_not_exist")),t.abrupt("return",!1);case 15:t.next=21;break;case 17:t.prev=17,t.t0=t.catch(0),e.isLoading=!1,window.toastr.error(e.$tc("invoices.something_went_wrong"));case 21:case"end":return t.stop()}}),t,null,[[0,17]])})));return function(e){return t.apply(this,arguments)}}());case 4:case"end":return t.stop()}}),t)})))()},closeSendInvoiceModal:function(){this.resetFormData(),this.closeModal()}})}),ct=Object(g.a)(lt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.sendInvoiceData(t)}}},[n("div",{staticClass:"gap-4 px-8 py-8 sm:p-6"},[n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("general.from"),error:e.fromError,variant:"vertical",required:""}},[n("sw-input",{attrs:{invalid:e.$v.formData.from.$error,type:"text"},on:{input:function(t){return e.$v.formData.from.$touch()}},model:{value:e.formData.from,callback:function(t){e.$set(e.formData,"from",t)},expression:"formData.from"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("general.to"),error:e.toError,variant:"vertical",required:""}},[n("sw-input",{attrs:{invalid:e.$v.formData.to.$error,type:"text"},on:{input:function(t){return e.$v.formData.to.$touch()}},model:{value:e.formData.to,callback:function(t){e.$set(e.formData,"to",t)},expression:"formData.to"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("general.subject"),error:e.subjectError,variant:"vertical",required:""}},[n("sw-input",{attrs:{invalid:e.$v.formData.subject.$error,type:"text"},on:{input:function(t){return e.$v.formData.subject.$touch()}},model:{value:e.formData.subject,callback:function(t){e.$set(e.formData,"subject",t)},expression:"formData.subject"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("general.body"),error:e.bodyError,variant:"vertical",required:""}},[n("base-custom-input",{staticClass:"mt-2",attrs:{fields:e.InvoiceMailFields,invalid:e.$v.formData.body.$error},on:{input:function(t){return e.$v.formData.body.$touch()}},model:{value:e.formData.body,callback:function(t){e.$set(e.formData,"body",t)},expression:"formData.body"}})],1)],1),e._v(" "),n("div",{staticClass:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},[n("sw-button",{staticClass:"mr-3",attrs:{variant:"primary-outline",type:"button"},on:{click:e.closeSendInvoiceModal}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("paper-airplane-icon",{staticClass:"h-5 mr-2"}),e._v("\n "+e._s(e.$t("general.send"))+"\n ")],1)],1)])])}),[],!1,null,null,null).exports;function ut(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function dt(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){ut(i,r,a,o,s,"next",e)}function s(e){ut(i,r,a,o,s,"throw",e)}o(void 0)}))}}function pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ft(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){mt(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 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 ht=n("ta7f"),_t=ht.required,vt=ht.email,gt=(n("LvDl"),{components:{PaperAirplaneIcon:r.x},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:ft(ft(ft({},Object(a.c)("modal",["modalDataID","modalData","modalActive"])),Object(a.c)("user",["currentUser"])),{},{getEmailUrl:function(){return this.url},fromError:function(){return this.$v.formData.from.$error?this.$v.formData.from.required?this.$v.formData.from.email?void 0:this.$tc("validation.email_incorrect"):this.$tc("validation.required"):""},toError:function(){return this.$v.formData.to.$error?this.$v.formData.to.required?this.$v.formData.to.email?void 0:this.$tc("validation.email_incorrect"):this.$tc("validation.required"):""},subjectError:function(){return this.$v.formData.subject.$error?this.$v.formData.subject.required?void 0:this.$tc("validation.required"):""},bodyError:function(){return this.$v.formData.body.$error?this.$v.formData.body.required?void 0:this.$tc("validation.required"):""}}),mounted:function(){this.setInitialData()},methods:ft(ft(ft(ft({},Object(a.b)("modal",["closeModal"])),Object(a.b)("estimate",["sendEmail"])),Object(a.b)("company",["fetchCompanySettings","fetchMailConfig"])),{},{setInitialData:function(){var e=this;return dt(o.a.mark((function t(){var n,r;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchMailConfig();case 2:return n=t.sent,e.modalData&&(e.formData.from=n.data.from_mail,e.formData.to=e.modalData.user.email),t.next=6,e.fetchCompanySettings(["estimate_mail_body"]);case 6:r=t.sent,e.formData.body=r.data.estimate_mail_body;case 8:case"end":return t.stop()}}),t)})))()},resetFormData:function(){this.formData={from:null,to:null,subject:null,body:null}},sendEstimateData:function(){var e=this;return dt(o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:swal({title:e.$t("general.are_you_sure"),text:e.$t("estimates.confirm_send_estimate"),icon:"/assets/icon/check-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=dt(o.a.mark((function t(n){var r,a;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!n){t.next=15;break}return r=ft(ft({},e.formData),{},{id:e.modalDataID,status:"SENT"}),e.isLoading=!0,t.next=6,e.sendEmail(r);case 6:if(a=t.sent,e.closeModal(),!a.data.success){t.next=12;break}return e.isLoading=!1,window.toastr.success(e.$tc("estimates.send_estimate_successfully")),t.abrupt("return",!0);case 12:if("estimates.user_email_does_not_exist"!==a.data.error){t.next=15;break}return window.toastr.error(e.$tc("estimates.user_email_does_not_exist")),t.abrupt("return",!1);case 15:t.next=21;break;case 17:t.prev=17,t.t0=t.catch(0),e.isLoading=!1,window.toastr.error(e.$tc("estimates.something_went_wrong"));case 21:case"end":return t.stop()}}),t,null,[[0,17]])})));return function(e){return t.apply(this,arguments)}}());case 4:case"end":return t.stop()}}),t)})))()},closeSendEstimateModal:function(){this.resetFormData(),this.closeModal()}})}),yt=Object(g.a)(gt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.sendEstimateData(t)}}},[n("div",{staticClass:"px-8 py-8 sm:p-6"},[n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("general.from"),error:e.fromError,variant:"vertical",required:""}},[n("sw-input",{attrs:{invalid:e.$v.formData.from.$error,type:"text"},on:{input:function(t){return e.$v.formData.from.$touch()}},model:{value:e.formData.from,callback:function(t){e.$set(e.formData,"from",t)},expression:"formData.from"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("general.to"),error:e.toError,variant:"vertical",required:""}},[n("sw-input",{attrs:{invalid:e.$v.formData.to.$error,type:"text"},on:{input:function(t){return e.$v.formData.to.$touch()}},model:{value:e.formData.to,callback:function(t){e.$set(e.formData,"to",t)},expression:"formData.to"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("general.subject"),error:e.subjectError,variant:"vertical",required:""}},[n("sw-input",{attrs:{invalid:e.$v.formData.subject.$error,type:"text"},on:{input:function(t){return e.$v.formData.subject.$touch()}},model:{value:e.formData.subject,callback:function(t){e.$set(e.formData,"subject",t)},expression:"formData.subject"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("general.body"),error:e.bodyError,variant:"vertical",required:""}},[n("base-custom-input",{staticClass:"mt-2",attrs:{fields:e.estimateMailFields,invalid:e.$v.formData.body.$error},on:{input:function(t){return e.$v.formData.body.$touch()}},model:{value:e.formData.body,callback:function(t){e.$set(e.formData,"body",t)},expression:"formData.body"}})],1)],1),e._v(" "),n("div",{staticClass:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},[n("sw-button",{staticClass:"mr-3",attrs:{variant:"primary-outline",type:"button"},on:{click:e.closeSendEstimateModal}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("paper-airplane-icon",{staticClass:"h-5 mr-2"}),e._v("\n "+e._s(e.$t("general.send"))+"\n ")],1)],1)])])}),[],!1,null,null,null).exports;function bt(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function wt(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){bt(i,r,a,o,s,"next",e)}function s(e){bt(i,r,a,o,s,"throw",e)}o(void 0)}))}}function xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(n),!0).forEach((function(t){Dt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mt=n("ta7f"),St=Mt.required,Ct=Mt.email,Lt=(n("LvDl"),{components:{PaperAirplaneIcon:r.x},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({},Object(a.c)("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({},Object(a.b)("modal",["closeModal"])),Object(a.b)("payment",["sendEmail"])),Object(a.b)("company",["fetchCompanySettings","fetchMailConfig"])),{},{setInitialData:function(){var e=this;return wt(o.a.mark((function t(){var n,r;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchMailConfig();case 2:return n=t.sent,e.modalData&&(e.formData.from=n.data.from_mail,e.formData.to=e.modalData.user.email),t.next=6,e.fetchCompanySettings(["payment_mail_body"]);case 6:r=t.sent,e.formData.body=r.data.payment_mail_body;case 8:case"end":return t.stop()}}),t)})))()},resetFormData:function(){this.formData={from:null,to:null,subject:null,body:null}},sendPaymentData:function(){var e=this;return wt(o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:swal({title:e.$t("general.are_you_sure"),text:e.$t("payments.confirm_send_payment"),icon:"/assets/icon/check-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=wt(o.a.mark((function t(n){var r,a;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!n){t.next=15;break}return r=kt(kt({},e.formData),{},{id:e.modalDataID,status:"SENT"}),e.isLoading=!0,t.next=6,e.sendEmail(r);case 6:if(a=t.sent,e.closeModal(),!a.data.success){t.next=12;break}return e.isLoading=!1,window.toastr.success(e.$tc("payments.send_payment_successfully")),t.abrupt("return",!0);case 12:if("payments.user_email_does_not_exist"!==a.data.error){t.next=15;break}return window.toastr.error(e.$tc("payments.user_email_does_not_exist")),t.abrupt("return",!1);case 15:t.next=21;break;case 17:t.prev=17,t.t0=t.catch(0),e.isLoading=!1,window.toastr.error(e.$tc("payments.something_went_wrong"));case 21:case"end":return t.stop()}}),t,null,[[0,17]])})));return function(e){return t.apply(this,arguments)}}());case 4:case"end":return t.stop()}}),t)})))()},closeSendPaymentModal:function(){this.resetFormData(),this.closeModal()}})}),Tt=Object(g.a)(Lt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.sendPaymentData(t)}}},[n("div",{staticClass:"px-8 py-8 sm:p-6"},[n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("general.from"),variant:"vertical",error:e.fromError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.formData.from.$error,type:"text"},on:{input:function(t){return e.$v.formData.from.$touch()}},model:{value:e.formData.from,callback:function(t){e.$set(e.formData,"from",t)},expression:"formData.from"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("general.to"),error:e.toError,variant:"vertical",required:""}},[n("sw-input",{attrs:{type:"text",invalid:e.$v.formData.to.$error},on:{input:function(t){return e.$v.formData.to.$touch()}},model:{value:e.formData.to,callback:function(t){e.$set(e.formData,"to",t)},expression:"formData.to"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("general.subject"),error:e.subjectError,variant:"vertical",required:""}},[n("sw-input",{attrs:{invalid:e.$v.formData.subject.$error,type:"text"},on:{input:function(t){return e.$v.formData.subject.$touch()}},model:{value:e.formData.subject,callback:function(t){e.$set(e.formData,"subject",t)},expression:"formData.subject"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("general.body"),error:e.bodyError,variant:"vertical",required:""}},[n("sw-editor",{attrs:{"set-editor":e.formData.body,invalid:e.$v.formData.body.$error},on:{input:function(t){return e.$v.formData.body.$touch()}},model:{value:e.formData.body,callback:function(t){e.$set(e.formData,"body",t)},expression:"formData.body"}})],1)],1),e._v(" "),n("div",{staticClass:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},[n("sw-button",{staticClass:"mr-3",attrs:{variant:"primary-outline",type:"button"},on:{click:e.closeSendPaymentModal}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("paper-airplane-icon",{staticClass:"h-5 mr-2"}),e._v("\n "+e._s(e.$t("general.send"))+"\n ")],1)],1)])])}),[],!1,null,null,null).exports;function Et(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Ot(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Et(i,r,a,o,s,"next",e)}function s(e){Et(i,r,a,o,s,"throw",e)}o(void 0)}))}}function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function 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 Yt=n("ta7f"),$t=Yt.required,It=(Yt.edisk,{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:$t},key:{required:$t},secret:{required:$t},app:{required:$t},root:{required:$t}},name:{required:$t},selected_disk:{required:$t}},computed:At(At({},Object(a.c)("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({},Object(a.b)("disks",["fetchDiskEnv","updateDisk"])),{},{loadData:function(){var e=this;return Ot(o.a.mark((function t(){var n,r;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isLoading=!0,n={disk:e.selected_disk},!e.isEdit){t.next=9;break}e.diskConfigData=JSON.parse(e.modalData.credentials),e.set_as_default=e.modalData.set_as_default,e.set_as_default&&(e.is_current_disk=!0),e.name=e.modalData.name,t.next=13;break;case 9:return t.next=11,e.fetchDiskEnv(n);case 11:r=t.sent,e.diskConfigData=r.data;case 13:e.selected_disk=e.disks.find((function(e){return"dropbox"==e.value})),e.isLoading=!1;case 15:case"end":return t.stop()}}),t)})))()},submitData:function(){var e=this;return Ot(o.a.mark((function t(){var n;return o.a.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)}})}),Nt=Object(g.a)(It,(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 zt(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Ft(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){zt(i,r,a,o,s,"next",e)}function s(e){zt(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Rt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ht(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rt(Object(n),!0).forEach((function(t){Bt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rt(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("ta7f"),Ut=qt.required,Vt=(qt.edisk,{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:Ut}},name:{required:Ut},selected_disk:{required:Ut}},computed:Ht(Ht({},Object(a.c)("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:Ht(Ht({},Object(a.b)("disks",["fetchDiskEnv","updateDisk"])),{},{loadData:function(){var e=this;return Ft(o.a.mark((function t(){var n,r;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isLoading=!0,n={disk:"local"},!e.isEdit){t.next=9;break}e.diskConfigData=JSON.parse(e.modalData.credentials),e.set_as_default=e.modalData.set_as_default,e.set_as_default&&(e.is_current_disk=!0),e.name=e.modalData.name,t.next=13;break;case 9:return t.next=11,e.fetchDiskEnv(n);case 11:r=t.sent,e.diskConfigData=r.data;case 13:e.selected_disk=e.disks.find((function(e){return"local"==e.value})),e.isLoading=!1;case 15:case"end":return t.stop()}}),t)})))()},submitData:function(){var e=this;return Ft(o.a.mark((function t(){var n;return o.a.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)}})}),Wt=Object(g.a)(Vt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{on:{submit:function(t){return t.preventDefault(),e.submitData(t)}}},[n("div",{staticClass:"px-8 py-6"},[n("div",{staticClass:"grid gap-6 grid-col-1 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("settings.disk.name"),error:e.nameError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{type:"text",name:"name",invalid:e.$v.name.$error},on:{input:function(t){return e.$v.name.$touch()}},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$tc("settings.disk.driver"),required:""}},[n("sw-select",{staticClass:"mt-2",attrs:{invalid:e.$v.selected_disk.$error,options:e.disks,searchable:!0,"allow-empty":!1,"show-labels":!1,"track-by":"value",label:"name"},on:{input:e.onChangeDriver},model:{value:e.selected_disk,callback:function(t){e.selected_disk=t},expression:"selected_disk"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.disk.local_root"),required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{type:"text",name:"name",placeholder:"Ex. /user/root/"},model:{value:e.diskConfigData.root,callback:function(t){e.$set(e.diskConfigData,"root","string"==typeof t?t.trim():t)},expression:"diskConfigData.root"}})],1)],1),e._v(" "),e.isDisabled?e._e():n("div",{staticClass:"flex items-center mt-6"},[n("div",{staticClass:"relative flex items-center w-12"},[n("sw-switch",{staticClass:"flex",model:{value:e.set_as_default,callback:function(t){e.set_as_default=t},expression:"set_as_default"}})],1),e._v(" "),n("div",{staticClass:"ml-4 right"},[n("p",{staticClass:"p-0 mb-1 text-base leading-snug text-black box-title"},[e._v("\n "+e._s(e.$t("settings.disk.is_default"))+"\n ")])])])]),e._v(" "),e._t("default",null,{diskData:{isLoading:e.isLoading,submitData:e.submitData}})],2)}),[],!1,null,null,null).exports;function Kt(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Gt(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Kt(i,r,a,o,s,"next",e)}function s(e){Kt(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zt(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){Xt(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 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("ta7f"),en=Qt.required,tn=(Qt.edisk,{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:Zt(Zt({},Object(a.c)("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:Zt(Zt({},Object(a.b)("disks",["fetchDiskEnv","updateDisk"])),{},{loadData:function(){var e=this;return Gt(o.a.mark((function t(){var n,r;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isLoading=!0,n={disk:"s3"},!e.isEdit){t.next=9;break}e.diskConfigData=JSON.parse(e.modalData.credentials),e.set_as_default=e.modalData.set_as_default,e.set_as_default&&(e.is_current_disk=!0),e.name=e.modalData.name,t.next=13;break;case 9:return t.next=11,e.fetchDiskEnv(n);case 11:r=t.sent,e.diskConfigData=r.data;case 13:e.selected_disk=e.disks.find((function(e){return"s3"==e.value})),e.isLoading=!1;case 15:case"end":return t.stop()}}),t)})))()},submitData:function(){var e=this;return Gt(o.a.mark((function t(){var n;return o.a.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)}})}),nn=Object(g.a)(tn,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{on:{submit:function(t){return t.preventDefault(),e.submitData(t)}}},[n("div",{staticClass:"px-8 py-6"},[n("div",{staticClass:"grid gap-6 grid-col-1 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("settings.disk.name"),error:e.nameError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{type:"text",name:"name",invalid:e.$v.name.$error},on:{input:function(t){return e.$v.name.$touch()}},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$tc("settings.disk.driver"),required:""}},[n("sw-select",{staticClass:"mt-2",attrs:{invalid:e.$v.selected_disk.$error,options:e.disks,searchable:!0,"allow-empty":!1,"show-labels":!1,"track-by":"value",label:"name"},on:{input:e.onChangeDriver},model:{value:e.selected_disk,callback:function(t){e.selected_disk=t},expression:"selected_disk"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.disk.aws_root"),error:e.rootError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.diskConfigData.root.$error,type:"text",name:"name",placeholder:"Ex. /user/root/"},on:{input:function(t){return e.$v.diskConfigData.root.$touch()}},model:{value:e.diskConfigData.root,callback:function(t){e.$set(e.diskConfigData,"root","string"==typeof t?t.trim():t)},expression:"diskConfigData.root"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.disk.aws_key"),error:e.keyError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.diskConfigData.key.$error,type:"text",name:"name",placeholder:"Ex. KEIS4S39SERSDS"},on:{input:function(t){return e.$v.diskConfigData.key.$touch()}},model:{value:e.diskConfigData.key,callback:function(t){e.$set(e.diskConfigData,"key","string"==typeof t?t.trim():t)},expression:"diskConfigData.key"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.disk.aws_secret"),error:e.secretError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.diskConfigData.secret.$error,type:"text",name:"name",placeholder:"Ex. ********"},on:{input:function(t){return e.$v.diskConfigData.secret.$touch()}},model:{value:e.diskConfigData.secret,callback:function(t){e.$set(e.diskConfigData,"secret","string"==typeof t?t.trim():t)},expression:"diskConfigData.secret"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.disk.aws_region"),error:e.regionError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.diskConfigData.region.$error,type:"text",name:"name",placeholder:"Ex. us-west"},on:{input:function(t){return e.$v.diskConfigData.region.$touch()}},model:{value:e.diskConfigData.region,callback:function(t){e.$set(e.diskConfigData,"region","string"==typeof t?t.trim():t)},expression:"diskConfigData.region"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.disk.aws_bucket"),error:e.bucketError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.diskConfigData.bucket.$error,type:"text",name:"name",placeholder:"Ex. AppName"},on:{input:function(t){return e.$v.diskConfigData.bucket.$touch()}},model:{value:e.diskConfigData.bucket,callback:function(t){e.$set(e.diskConfigData,"bucket","string"==typeof t?t.trim():t)},expression:"diskConfigData.bucket"}})],1)],1),e._v(" "),e.isDisabled?e._e():n("div",{staticClass:"flex items-center mt-6"},[n("div",{staticClass:"relative flex items-center w-12"},[n("sw-switch",{staticClass:"flex",model:{value:e.set_as_default,callback:function(t){e.set_as_default=t},expression:"set_as_default"}})],1),e._v(" "),n("div",{staticClass:"ml-4 right"},[n("p",{staticClass:"p-0 mb-1 text-base leading-snug text-black box-title"},[e._v("\n "+e._s(e.$t("settings.disk.is_default"))+"\n ")])])])]),e._v(" "),e._t("default",null,{diskData:{isLoading:e.isLoading,submitData:e.submitData}})],2)}),[],!1,null,null,null).exports;function rn(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function an(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){rn(i,r,a,o,s,"next",e)}function s(e){rn(i,r,a,o,s,"throw",e)}o(void 0)}))}}function on(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?on(Object(n),!0).forEach((function(t){ln(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):on(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cn=n("ta7f"),un=cn.required,dn=cn.url,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({},Object(a.c)("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({},Object(a.b)("disks",["fetchDiskEnv","updateDisk"])),{},{loadData:function(){var e=this;return an(o.a.mark((function t(){var n,r;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isLoading=!0,n={disk:"doSpaces"},!e.isEdit){t.next=9;break}e.diskConfigData=JSON.parse(e.modalData.credentials),e.set_as_default=e.modalData.set_as_default,e.set_as_default&&(e.is_current_disk=!0),e.name=e.modalData.name,t.next=13;break;case 9:return t.next=11,e.fetchDiskEnv(n);case 11:r=t.sent,e.diskConfigData=r.data;case 13:e.selected_disk=e.disks.find((function(e){return"doSpaces"==e.value})),e.isLoading=!1;case 15:case"end":return t.stop()}}),t)})))()},submitData:function(){var e=this;return an(o.a.mark((function t(){var n;return o.a.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)}})},fn=Object(g.a)(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 mn(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function hn(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){mn(i,r,a,o,s,"next",e)}function s(e){mn(i,r,a,o,s,"throw",e)}o(void 0)}))}}function _n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_n(Object(n),!0).forEach((function(t){gn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_n(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yn=n("ta7f"),bn=(yn.required,yn.minLength,yn.email,yn.numeric,yn.url,yn.maxLength,{components:{Dropbox:Nt,Local:Wt,S3:nn,DoSpaces:fn},data:function(){return{isLoading:!1,isEdit:!1,set_as_default:!1,name:"local",formData:{},selected_disk:"local",diskConfigData:{}}},computed:vn(vn({},Object(a.c)("modal",["modalDataID","modalData","modalActive","refreshData"])),Object(a.c)("disks",["getDiskDrivers"])),created:function(){this.modalDataID&&(this.isEdit=!0),this.loadData()},methods:vn(vn(vn({},Object(a.b)("disks",["fetchDiskDrivers","createDisk","updateDisk"])),Object(a.b)("modal",["closeModal"])),{},{isRequestFire:function(e){return e&&(e.diskData.isLoading||this.isLoading)},loadData:function(){var e=this;return hn(o.a.mark((function t(){var n;return o.a.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.a.mark((function n(){var r,a;return o.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.isLoading=!0,r=vn({id:t.modalDataID},e),!t.isEdit){n.next=8;break}return n.next=5,t.updateDisk(r);case 5:a=n.sent,n.next=11;break;case 8:return n.next=10,t.createDisk(r);case 10:a=n.sent;case 11:a.data.success?(t.refreshData(),t.closeDisk(),t.isEdit?window.toastr.success(t.$t("settings.disk.success_update")):window.toastr.success(t.$t("settings.disk.success_create"))):window.toastr.error(t.$t("settings.disk.invalid_disk_credentials")),t.isLoading=!1;case 13:case"end":return n.stop()}}),n)})))()},closeDisk:function(){this.closeModal()}})}),wn=Object(g.a)(bn,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"file-disk-modal"},[e.getDiskDrivers.length?n("div",[n(e.selected_disk,{tag:"component",attrs:{loading:e.isLoading,disks:e.getDiskDrivers,"is-edit":e.isEdit},on:{"on-change-disk":function(t){return e.selected_disk=t.value},submit:e.createNewDisk},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"z-0 flex justify-end p-4 border-t border-solid border-gray-light"},[n("sw-button",{staticClass:"mr-3 text-sm",attrs:{variant:"primary-outline",type:"button"},on:{click:e.closeDisk}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{loading:e.isRequestFire(t),variant:"primary",disabled:e.isRequestFire(t),type:"submit"}},[e.isRequestFire(t)?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.$t("general.save"))+"\n ")],1)],1)]}}],null,!1,100721560)})],1):e._e()])}),[],!1,null,null,null).exports;function xn(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function kn(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){xn(i,r,a,o,s,"next",e)}function s(e){xn(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dn(Object(n),!0).forEach((function(t){Sn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cn=n("ta7f"),Ln=(Cn.required,Cn.minLength,Cn.email,Cn.numeric,Cn.url,Cn.maxLength,{components:{Dropbox:Nt,Local:Wt,S3:nn,DoSpaces:fn},data:function(){return{isLoading:!1,set_as_default:!1,name:"local",formData:null,selected_disk:null,diskConfigData:{}}},computed:Mn(Mn({},Object(a.c)("modal",["modalData","refreshData"])),Object(a.c)("disks",["getDisks"])),created:function(){this.loadData()},methods:Mn(Mn(Mn({},Object(a.b)("disks",["fetchDisks","setDefaultDisk"])),Object(a.b)("modal",["closeModal"])),{},{loadData:function(){var e=this;return kn(o.a.mark((function t(){var n;return o.a.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.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.next=3,e.setDefaultDisk(e.selected_disk);case 3:t.sent.data.success&&(e.refreshData(),e.closeDisk(),window.toastr.success(e.$t("settings.disk.success"))),e.isLoading=!0;case 6:case"end":return t.stop()}}),t)})))()},closeDisk:function(){this.closeModal()},getCustomLabel:function(e){var t=e.driver,n=e.name;return"".concat(n," — [").concat(t,"]")}})}),Tn=Object(g.a)(Ln,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"file-disk-modal"},[n("form",{on:{submit:function(t){return t.preventDefault(),e.submitData(t)}}},[n("div",{staticClass:"px-8 py-6"},[n("sw-input-group",{attrs:{label:e.$t("settings.disk.driver"),required:""}},[n("sw-select",{staticClass:"mt-2",attrs:{options:e.getDisks,searchable:!0,"allow-empty":!1,"show-labels":!1,"track-by":"id","custom-label":e.getCustomLabel},model:{value:e.selected_disk,callback:function(t){e.selected_disk=t},expression:"selected_disk"}})],1)],1),e._v(" "),n("div",{staticClass:"z-0 flex justify-end p-4 border-t border-solid border-gray-light"},[n("sw-button",{staticClass:"mr-3 text-sm",attrs:{type:"button",variant:"primary-outline"},on:{click:e.closeDisk}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{staticClass:"text-sm",attrs:{loading:e.isLoading,icon:"save",type:"submit",variant:"primary"}},[e._v("\n "+e._s(e.$t("general.save"))+"\n ")])],1)])])}),[],!1,null,null,null).exports,En={props:{value:{type:String,default:null}},data:function(){return{inputValue:this.value}},watch:{value:function(e){this.inputValue=e}}},On=Object(g.a)(En,(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,jn={props:{value:{type:[String,Number],default:null}},data:function(){return{inputValue:this.value}},watch:{value:function(e){this.inputValue=e}}},An=Object(g.a)(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,Pn={props:{value:{type:[Boolean,Number],default:!1}},data:function(){return{inputValue:this.value}},watch:{value:function(e){this.inputValue=e}}},Yn=Object(g.a)(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,$n={props:{value:{type:String,default:null}},data:function(){return{inputValue:this.value}},watch:{value:function(e){this.inputValue=e}}},In=Object(g.a)($n,(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,Nn={props:{value:{type:[String,Object],default:null}},data:function(){return{inputValue:this.value}},watch:{value:function(e){this.inputValue=e}}},zn=Object(g.a)(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,Fn={props:{value:{type:String,default:null}},data:function(){return{inputValue:this.value}},watch:{value:function(e){this.inputValue=e}}},Rn=Object(g.a)(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,Hn={props:{value:{type:[String,Number],default:null}},data:function(){return{inputValue:this.value}},watch:{value:function(e){this.inputValue=e}}},Bn=Object(g.a)(Hn,(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,qn=n("wd/R"),Un=n.n(qn),Vn={props:{value:{type:String,default:null},defaultDateTime:{type:String,default:null}},data:function(){return{inputValue:this.value?this.value:Un()().format("YYYY-MM-DD hh:mm")}},watch:{value:function(e){this.inputValue=e},defaultDateTime:function(e){this.dateTimeValue=e}}},Wn=Object(g.a)(Vn,(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,Kn={props:{value:{type:[String,Date],default:null}},data:function(){return{inputValue:Un()().format("YYYY-MM-DD")}},watch:{value:function(e){this.inputValue=e}}},Gn=Object(g.a)(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,Jn={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}}},Zn=Object(g.a)(Jn,(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,Xn={components:{PlusCircleIcon:r.A},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}}},Qn=Object(g.a)(Xn,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"flex items-center",staticStyle:{"margin-top":"5px"}},[n("sw-input",{staticStyle:{width:"90%"},attrs:{type:"text"},on:{handleEnter:function(t){return t.stopPropagation(),e.onAddOption(t)}},model:{value:e.option,callback:function(t){e.option=t},expression:"option"}}),e._v(" "),n("plus-circle-icon",{staticClass:"ml-1 cursor-pointer text-danger",on:{click:e.onAddOption}})],1)}),[],!1,null,null,null).exports;function er(e){return function(e){if(Array.isArray(e))return tr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return tr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tr(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nr(e){return(nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rr(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function ar(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){rr(i,r,a,o,s,"next",e)}function s(e){rr(i,r,a,o,s,"throw",e)}o(void 0)}))}}function ir(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ir(Object(n),!0).forEach((function(t){sr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ir(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lr=n("ta7f"),cr=lr.required,ur=lr.requiredIf,dr=lr.numeric,pr=lr.minLength,fr={components:{MinusCircleIcon:r.w,OptionCreate:Qn,InputType:On,NumberType:An,SwitchType:Yn,TextAreaType:In,TimeType:zn,UrlType:Rn,PhoneType:Bn,DateTimeType:Wn,DateType:Gn,DropdownType:Zn},data:function(){return{isEdit:!1,dateType:"custom",isLoading:!1,relativeDateTypes:["Today","Tomorrow","Yesterday","Starting Date of Week","Ending Date of Week","Starting Date of Next Week","Ending Date of Next Week","Starting Date of Previous Week","Ending Date of Previous Week","Starting Date of Month","Ending Date of Month","Starting Date of Next Month","Ending Date of Next Month","Starting Date of Previous Month","Ending Date of Previous Month","Starting Date of Fiscal Month","Ending Date of Fiscal Month"],dataTypes:[{label:"Text",value:"Input"},{label:"Textarea",value:"TextArea"},{label:"Phone",value:"Phone"},{label:"URL",value:"Url"},{label:"Number",value:"Number"},{label:"Select Field",value:"Dropdown"},{label:"Switch Toggle",value:"Switch"},{label:"Date",value:"Date"},{label:"Time",value:"Time"},{label:"Date & Time",value:"DateTime"}],modelTypes:["Customer","Invoice","Estimate","Expense","Payment"],selectType:null,formData:{label:null,type:null,name:null,default_answer:null,is_required:!1,placeholder:null,model_type:null,order:1,options:[]}}},validations:{selectType:{required:cr},formData:{name:{required:cr},label:{required:cr},model_type:{required:cr},order:{required:cr,numeric:dr},options:{required:ur("isDropdownSelected"),minLength:pr(1),$each:{name:{required:ur("isDropdownSelected"),minLength:pr(1)}}}}},computed:or(or({},Object(a.c)("modal",["modalData","modalDataID","refreshData"])),{},{isDropdownSelected:function(){return!(!this.selectType||"Select Field"!==this.selectType.label)},isSwitchTypeSelected:function(){return!(!this.selectType||"Switch Toggle"!==this.selectType.label)},nameError:function(){return this.$v.formData.name.$error?this.$v.formData.name.required?void 0:this.$tc("validation.required"):""},labelError:function(){return this.$v.formData.label.$error?this.$v.formData.label.required?void 0:this.$tc("validation.required"):""},modalTypeError:function(){return this.$v.formData.model_type.$error?this.$v.formData.model_type.required?void 0:this.$tc("validation.required"):""},dataTypeError:function(){return this.$v.selectType.$error?this.$v.selectType.required?void 0:this.$tc("validation.required"):""},hasPlaceHolder:function(){return"Switch Toggle"!=this.selectType.label},orderError:function(){return this.$v.formData.order.$error?this.$v.formData.order.required?this.$v.formData.order.numeric?void 0:this.$tc("validation.numbers_only"):this.$tc("validation.required"):""}}),watch:{"formData.type":function(e,t){null==t&&null==t||this.onChangeReset()},dateType:function(e,t){null==t&&null==t||this.onChangeReset()}},mounted:function(){if(this.modalDataID)return this.setData(),!0;this.formData.model_type=this.modelTypes[0],this.selectType=this.dataTypes[0],this.formData.type=this.dataTypes[0].value},methods:or(or(or({},Object(a.b)("customFields",["addCustomField","updateCustomField","fetchCustomField"])),Object(a.b)("modal",["closeModal"])),{},{resetFormData:function(){var e;this.formData=(sr(e={label:null},"label",null),sr(e,"type",null),sr(e,"dateTimeValue",null),sr(e,"default_answer",null),sr(e,"is_required",!1),sr(e,"placeholder",null),sr(e,"model_type",null),sr(e,"options",[{name:""}]),e),this.$v.$reset()},submitCustomFieldData:function(){var e=this;return ar(o.a.mark((function t(){var n,r,a,i;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.selectType.$touch(),e.$v.formData.$touch(),!e.$v.$invalid){t.next=4;break}return t.abrupt("return",!1);case 4:if(n=or(or({},e.formData),{},{options:e.formData.options.map((function(e){return e.name})),default_answer:e.isDropdownSelected&&e.formData.default_answer?e.formData.default_answer.name:e.formData.default_answer}),e.isSwitchTypeSelected&&null==e.formData.default_answer&&(n.default_answer=!1),"Date"==n.type&&(n.default_answer=n.default_answer?Un()(n.default_answer).format("YYYY-MM-DD"):null),"Time"==n.type&&"object"==nr(n.default_answer)&&(r=n&&n.default_answer&&n.default_answer.HH?n.default_answer.HH:null,a=n&&n.default_answer&&n.default_answer.mm?n.default_answer.mm:null,i=n&&n.default_answer&&n.default_answer.ss?n.default_answer.ss:null,n.default_answer="".concat(r,":").concat(a,":").concat(i)),null,!e.isEdit){t.next=18;break}return e.isLoading=!0,t.next=13,e.updateCustomField(n);case 13:return t.sent,window.toastr.success(e.$tc("settings.custom_fields.updated_message")),e.refreshData(),e.closeCategoryModal(),t.abrupt("return",!0);case 18:return e.isLoading=!0,t.next=21,e.addCustomField(n);case 21:return t.sent,window.toastr.success(e.$tc("settings.custom_fields.added_message")),e.refreshData(),e.closeCategoryModal(),t.abrupt("return",!0);case 26:case"end":return t.stop()}}),t)})))()},addNewOptions:function(e){this.formData.options=[{name:e}].concat(er(this.formData.options))},removeOption:function(e){this.formData.options.splice(e,1)},setData:function(){var e=this;return ar(o.a.mark((function t(){var n,r,a;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchCustomField(e.modalDataID);case 2:n=t.sent,r=n.data.customField,e.isEdit=!0,a=or(or({},r),{},sr({options:[],dateTimeValue:r.defaultAnswer,default_answer:r.defaultAnswer},"options",r.options?r.options.map((function(e){return{name:e||""}})):[])),e.selectType=e.dataTypes.find((function(e){return e.value==r.type})),"Dropdown"==a.type&&(a.default_answer={name:r.defaultAnswer}),e.formData=or({},a);case 9:case"end":return t.stop()}}),t)})))()},onChangeReset:function(){this.formData=or(or({},this.formData),{},{default_answer:null,is_required:!1,placeholder:null,options:[]})},onSelectTypeChange:function(e){this.formData.type=e.value,this.$v.selectType.$touch()},closeCategoryModal:function(){this.resetFormData(),this.closeModal()}})},mr=Object(g.a)(fr,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"custom-field-modal"},[n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.submitCustomFieldData(t)}}},[n("div",{staticClass:"px-8 py-8 overflow-y-auto sw-scroll sm:p-6",staticStyle:{"max-height":"600px"}},[n("sw-input-group",{attrs:{label:e.$t("settings.custom_fields.name"),error:e.nameError,horizontal:"",required:""}},[n("sw-input",{ref:"name",attrs:{invalid:e.$v.formData.name.$error,type:"text"},on:{input:function(t){return e.$v.formData.name.$touch()}},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-5",attrs:{label:e.$t("settings.custom_fields.model"),error:e.modalTypeError,horizontal:"",required:""}},[n("sw-select",{attrs:{options:e.modelTypes,invalid:e.$v.formData.model_type.$error,searchable:!0,"show-labels":!1,"allow-empty":!1},on:{input:function(t){return e.$v.formData.model_type.$touch()}},model:{value:e.formData.model_type,callback:function(t){e.$set(e.formData,"model_type",t)},expression:"formData.model_type"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-5",attrs:{label:e.$t("settings.custom_fields.required"),horizontal:""}},[n("sw-switch",{staticStyle:{"margin-top":"-20px"},model:{value:e.formData.is_required,callback:function(t){e.$set(e.formData,"is_required",t)},expression:"formData.is_required"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-5",attrs:{label:e.$t("settings.custom_fields.type"),error:e.dataTypeError,horizontal:"",required:""}},[n("sw-select",{attrs:{options:e.dataTypes,invalid:e.$v.selectType.$error,searchable:!0,"show-labels":!1,"allow-empty":!1,"track-by":"label",label:"label"},on:{input:e.onSelectTypeChange},model:{value:e.selectType,callback:function(t){e.selectType=t},expression:"selectType"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-5",attrs:{label:e.$t("settings.custom_fields.label"),error:e.labelError,horizontal:"",required:""}},[n("sw-input",{ref:"name",attrs:{invalid:e.$v.formData.label.$error,type:"text"},on:{input:function(t){return e.$v.formData.label.$touch()}},model:{value:e.formData.label,callback:function(t){e.$set(e.formData,"label",t)},expression:"formData.label"}})],1),e._v(" "),e.isDropdownSelected?n("sw-input-group",{staticClass:"mt-5",attrs:{label:e.$t("settings.custom_fields.options"),horizontal:""}},[n("option-create",{on:{onAdd:e.addNewOptions}}),e._v(" "),e._l(e.formData.options,(function(t,r){return n("div",{key:r,staticClass:"flex items-center",staticStyle:{"margin-top":"5px"}},[n("sw-input",{staticStyle:{width:"90%"},attrs:{type:"text"},model:{value:t.name,callback:function(n){e.$set(t,"name",n)},expression:"option.name"}}),e._v(" "),n("minus-circle-icon",{staticClass:"ml-1 cursor-pointer icon text-danger",on:{click:function(t){return e.removeOption(r)}}})],1)}))],2):e._e(),e._v(" "),e.formData.type?n("sw-input-group",{staticClass:"relative mt-5",attrs:{label:e.$t("settings.custom_fields.default_value"),horizontal:""}},[n(e.formData.type+"Type",{tag:"component",attrs:{value:e.formData.default_answer,options:e.formData.options,defaultDateTime:e.formData.dateTimeValue},model:{value:e.formData.default_answer,callback:function(t){e.$set(e.formData,"default_answer",t)},expression:"formData.default_answer"}})],1):e._e(),e._v(" "),e.isSwitchTypeSelected?e._e():n("sw-input-group",{staticClass:"mt-5",attrs:{label:e.$t("settings.custom_fields.placeholder"),horizontal:""}},[n("sw-input",{attrs:{type:"text"},model:{value:e.formData.placeholder,callback:function(t){e.$set(e.formData,"placeholder",t)},expression:"formData.placeholder"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-5",attrs:{label:e.$t("settings.custom_fields.order"),error:e.orderError,horizontal:""}},[n("sw-input",{attrs:{invalid:e.$v.formData.order.$error,type:"number"},on:{input:function(t){return e.$v.formData.order.$touch()}},model:{value:e.formData.order,callback:function(t){e.$set(e.formData,"order",t)},expression:"formData.order"}})],1)],1),e._v(" "),n("div",{staticClass:"z-0 flex justify-end p-4 border-t border-solid border-gray-light border-modal-bg"},[n("sw-button",{staticClass:"mr-3",attrs:{type:"button",variant:"primary-outline"},on:{click:e.closeCategoryModal}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.isEdit?e.$t("general.update"):e.$t("general.save"))+"\n ")],1)],1)])])}),[],!1,null,null,null).exports;function hr(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function _r(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){hr(i,r,a,o,s,"next",e)}function s(e){hr(i,r,a,o,s,"throw",e)}o(void 0)}))}}function vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vr(Object(n),!0).forEach((function(t){yr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var br=n("ta7f"),wr=br.required,xr=br.minLength,kr={data:function(){return{isEdit:!1,isLoading:!1,types:["Invoice","Estimate","Payment"],selectType:null,formData:{type:"",name:"",notes:""},noteType:null,fields:[]}},computed:gr(gr({},Object(a.c)("modal",["modalDataID","modalData","modalActive","refreshData"])),{},{nameError:function(){return this.$v.formData.name.$error?this.$v.formData.name.required?void 0:this.$tc("validation.required"):""},noteError:function(){return this.$v.formData.notes.$error?this.$v.formData.notes.required?void 0:this.$tc("validation.required"):""},typeError:function(){return this.$v.noteType.$error?this.$v.noteType.required?void 0:this.$tc("validation.required"):""}}),validations:{formData:{name:{required:wr,minLength:xr(2)},notes:{required:wr}},noteType:{required:wr}},mounted:function(){var e=this;return _r(o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.setFields(),e.modalDataID?(e.isEdit=!0,e.setData()):e.modalData?e.noteType=e.modalData:e.noteType="Invoice";case 2:case"end":return t.stop()}}),t)})))()},watch:{noteType:function(){this.setFields()}},methods:gr(gr(gr(gr(gr(gr({},Object(a.b)("modal",["closeModal","resetModalData"])),Object(a.b)("notes",["addNote","updateNote"])),Object(a.b)("invoice",{setInvoiceNote:"selectNote"})),Object(a.b)("estimate",{setEstimateNote:"selectNote"})),Object(a.b)("payment",{setPaymentNote:"selectNote"})),{},{setFields:function(){return this.fields=["customer","customerCustom"],"Invoice"===this.noteType&&this.fields.push("invoice","invoiceCustom"),"Estimate"===this.noteType&&this.fields.push("estimate","estimateCustom"),"Payment"===this.noteType&&this.fields.push("payment","paymentCustom"),!0},resetFormData:function(){this.formData={name:null,notes:null},this.notetype=null,this.$v.formData.$reset()},submitNote:function(){var e=this;return _r(o.a.mark((function t(){var n,r,a,i;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),e.$v.noteType.$touch(),!e.$v.$invalid){t.next=4;break}return t.abrupt("return",!0);case 4:if(e.isLoading=!0,!e.isEdit){t.next=18;break}return n={id:e.modalDataID,type:e.noteType,name:e.formData.name,notes:e.formData.notes},t.next=9,e.updateNote(n);case 9:if(!(r=t.sent).data){t.next=15;break}return window.toastr.success(e.$t("settings.customization.notes.note_updated")),e.refreshData&&e.refreshData(),e.closeNoteModal(),t.abrupt("return",!0);case 15:window.toastr.error(r.data.error),t.next=38;break;case 18:return t.prev=18,a={type:e.noteType,name:e.formData.name,notes:e.formData.notes},t.next=22,e.addNote(a);case 22:if(!(i=t.sent).data||!i.data.note){t.next=32;break}return e.isLoading=!1,window.toastr.success(e.$t("settings.customization.notes.note_added")),("invoices.create"===e.$route.name&&"Invoice"===i.data.note.type||"invoices.edit"===e.$route.name&&"Invoice"===i.data.note.type)&&e.setInvoiceNote(i.data.note),("estimates.create"===e.$route.name&&"Estimate"===i.data.note.type||"estimates.edit"===e.$route.name&&"Estimate"===i.data.note.type)&&e.setEstimateNote(i.data.note),("payments.create"===e.$route.name&&"Payment"===i.data.note.type||"payments.edit"===e.$route.name&&"Payment"===i.data.note.type)&&e.setPaymentNote(i.data.note),e.refreshData&&e.refreshData(),e.closeNoteModal(),t.abrupt("return",!0);case 32:window.toastr.error(i.data.error),t.next=38;break;case 35:t.prev=35,t.t0=t.catch(18),t.t0.response.data.errors.name&&(e.isLoading=!0);case 38:case"end":return t.stop()}}),t,null,[[18,35]])})))()},setData:function(){var e=this;return _r(o.a.mark((function t(){return o.a.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()}})},Dr=(n("9n23"),Object(g.a)(kr,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"note-modal"},[n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.submitNote(t)}}},[n("div",{staticClass:"px-8 py-8 sm:p-6"},[n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("settings.customization.notes.name"),error:e.nameError,variant:"vertical",required:""}},[n("sw-input",{ref:"name",attrs:{invalid:e.$v.formData.name.$error,type:"text"},on:{input:function(t){return e.$v.formData.name.$touch()}},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("settings.customization.notes.type"),error:e.typeError,variant:"vertical",required:""}},[n("sw-select",{staticClass:"mt-2",attrs:{options:e.types,"allow-empty":!1,"show-labels":!1},model:{value:e.noteType,callback:function(t){e.noteType=t},expression:"noteType"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.customization.notes.notes"),error:e.noteError,variant:"vertical",required:""}},[n("base-custom-input",{staticClass:"mt-2",attrs:{fields:e.fields},model:{value:e.formData.notes,callback:function(t){e.$set(e.formData,"notes",t)},expression:"formData.notes"}})],1)],1),e._v(" "),n("div",{staticClass:"z-0 flex justify-end px-4 py-4 border-t border-solid border-gray-light"},[n("sw-button",{staticClass:"mr-2",attrs:{variant:"primary-outline",type:"button"},on:{click:e.closeNoteModal}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{loading:e.isLoading,variant:"primary",icon:"save",type:"submit"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.isEdit?e.$t("general.update"):e.$t("general.save"))+"\n ")],1)],1)])])}),[],!1,null,null,null).exports);function Mr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mr(Object(n),!0).forEach((function(t){Cr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mr(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}var Lr={components:{TaxTypeModal:y,ItemModal:E,EstimateTemplate:$,InvoiceTemplate:H,CustomerModal:ne,CategoryModal:fe,BackupModal:we,PaymentMode:Oe,ItemUnit:Re,MailTestModal:Qe,SendInvoiceModal:ct,SendEstimateModal:yt,SendPaymentModal:Tt,XIcon:r.N,FileDiskModal:wn,SetDefaultDiskModal:Tn,CustomFieldModal:mr,NoteSelectModal:Dr},data:function(){return{component:""}},computed:Sr({},Object(a.c)("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:Sr({},Object(a.b)("modal",["openModal","closeModal"]))},Tr=Object(g.a)(Lr,(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);t.a=Tr.exports},y1pI:function(e,t,n){var r=n("ljhN");e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},yK9s:function(e,t,n){"use strict";var r=n("xTJ+");e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},yLpj: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},yP5f:function(e,t,n){var r=n("+K+b");e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},yPMs: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("wd/R"))},yQtW:function(e,t,n){(function(e,r,a){var i=n("qfHW"),o=n("P7XM"),s=n("43KI"),l=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=t.IncomingMessage=function(t,n,o,l){var c=this;if(s.Readable.call(c),c._mode=o,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",(function(){e.nextTick((function(){c.emit("close")}))})),"fetch"===o){if(c._fetchResponse=n,c.url=n.url,c.statusCode=n.status,c.statusMessage=n.statusText,n.headers.forEach((function(e,t){c.headers[t.toLowerCase()]=e,c.rawHeaders.push(t,e)})),i.writableStream){var u=new WritableStream({write:function(e){return new Promise((function(t,n){c._destroyed?n():c.push(new r(e))?t():c._resumeFetch=t}))},close:function(){a.clearTimeout(l),c._destroyed||c.push(null)},abort:function(e){c._destroyed||c.emit("error",e)}});try{return void n.body.pipeTo(u).catch((function(e){a.clearTimeout(l),c._destroyed||c.emit("error",e)}))}catch(e){}}var d=n.body.getReader();!function e(){d.read().then((function(t){if(!c._destroyed){if(t.done)return a.clearTimeout(l),void c.push(null);c.push(new r(t.value)),e()}})).catch((function(e){a.clearTimeout(l),c._destroyed||c.emit("error",e)}))}()}else{if(c._xhr=t,c._pos=0,c.url=t.responseURL,c.statusCode=t.status,c.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var n=t[1].toLowerCase();"set-cookie"===n?(void 0===c.headers[n]&&(c.headers[n]=[]),c.headers[n].push(t[2])):void 0!==c.headers[n]?c.headers[n]+=", "+t[2]:c.headers[n]=t[2],c.rawHeaders.push(t[1],t[2])}})),c._charset="x-user-defined",!i.overrideMimeType){var p=c.rawHeaders["mime-type"];if(p){var f=p.match(/;\s*charset=([^;])(;|$)/);f&&(c._charset=f[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};o(c,s.Readable),c.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},c.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text:vbarray":if(t.readyState!==l.DONE)break;try{n=new a.VBArray(t.responseBody).toArray()}catch(e){}if(null!==n){e.push(new r(n));break}case"text":try{n=t.responseText}catch(t){e._mode="text:vbarray";break}if(n.length>e._pos){var i=n.substr(e._pos);if("x-user-defined"===e._charset){for(var o=new r(i.length),s=0;s<i.length;s++)o[s]=255&i.charCodeAt(s);e.push(o)}else e.push(i,e._charset);e._pos=n.length}break;case"arraybuffer":if(t.readyState!==l.DONE||!t.response)break;n=t.response,e.push(new r(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=t.response,t.readyState!==l.LOADING||!n)break;e.push(new r(new Uint8Array(n)));break;case"ms-stream":if(n=t.response,t.readyState!==l.LOADING)break;var c=new a.MSStreamReader;c.onprogress=function(){c.result.byteLength>e._pos&&(e.push(new r(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(n)}e._xhr.readyState===l.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,n("8oxB"),n("tjlA").Buffer,n("yLpj"))},yZ1b:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("eO9T");t.default=(0,r.withParams)({type:"ipAddress"},(function(e){if(!(0,r.req)(e))return!0;if("string"!=typeof e)return!1;var t=e.split(".");return 4===t.length&&t.every(a)}));var a=function(e){if(e.length>3||0===e.length)return!1;if("0"===e[0]&&"0"!==e)return!1;if(!e.match(/^\d+$/))return!1;var t=0|+e;return t>=0&&t<=255}},z1FC:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return r||t?a[n][0]:a[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},z3Vd:function(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,r,a){var i=function(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),a=e%10,i="";return n>0&&(i+=t[n]+"vatlh"),r>0&&(i+=(""!==i?" ":"")+t[r]+"maH"),a>0&&(i+=(""!==i?" ":"")+t[a]),""===i?"pagh":i}(e);switch(r){case"ss":return i+" lup";case"mm":return i+" tup";case"hh":return i+" rep";case"dd":return i+" jaj";case"MM":return i+" jar";case"yy":return i+" DIS"}}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(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"},past:function(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"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},zTzw:function(e){e.exports=JSON.parse('{"navigation":{"dashboard":"Dashboard","customers":"Clienti","items":"Commesse","invoices":"Fatture","expenses":"Spese","estimates":"Preventivi","payments":"Pagamenti","reports":"Reports","settings":"Configurazione","logout":"Logout","users":"Users"},"general":{"add_company":"Add Company","view_pdf":"Vedi PDF","copy_pdf_url":"Copy PDF Url","download_pdf":"Scarica PDF","save":"Salva","create":"Create","cancel":"Elimina","update":"Aggiorna","deselect":"Deseleziona","download":"Download","from_date":"Dalla Data","to_date":"Alla Data","from":"Da","to":"A","sort_by":"Ordina per","ascending":"Crescente","descending":"Decrescente","subject":"Oggetto","body":"Corpo","message":"Messaggio","send":"Send","go_back":"Torna indietro","back_to_login":"Torna al Login?","home":"Home","filter":"Filtro","delete":"Elimina","edit":"Modifica","view":"Visualizza","add_new_item":"Aggiungi nuova Commessa","clear_all":"Pulisci tutto","showing":"Showing","of":"di","actions":"Azioni","subtotal":"SUBTOTALE","discount":"SCONTO","fixed":"Fissato","percentage":"Percentuale","tax":"TASSA","total_amount":"AMMONTARE TOTALE","bill_to":"Fattura a","ship_to":"Invia a","due":"Dovuto","draft":"Bozza","sent":"Inviata","all":"Tutte","select_all":"Seleziona tutto","choose_file":"Clicca per selezionare un file","choose_template":"Scegli un modello","choose":"Scegli","remove":"Rimuovi","powered_by":"Prodotto da","bytefury":"Bytefury","select_a_status":"Seleziona uno Stato","select_a_tax":"Seleziona una Tassa","search":"Cerca","are_you_sure":"Sei sicuro/a?","list_is_empty":"La lista è vuota.","no_tax_found":"Nessuna Tassa trovata!","four_zero_four":"404","you_got_lost":"Hoops! Ti sei perso","go_home":"Vai alla Home","test_mail_conf":"Configurazione della mail di test","send_mail_successfully":"Mail inviata con successo","setting_updated":"Configurazioni aggiornate con successo","select_state":"Seleziona lo Stato","select_country":"Seleziona Paese","select_city":"Seleziona Città","street_1":"Indirizzo 1","street_2":"Indirizzo 2","action_failed":"Errore","retry":"Retry","choose_note":"Choose Note","no_note_found":"No Note Found","insert_note":"Insert Note"},"dashboard":{"select_year":"Seleziona anno","cards":{"due_amount":"Somma dovuta","customers":"Clienti","invoices":"Fatture","estimates":"Preventivi"},"chart_info":{"total_sales":"Vendite","total_receipts":"Ricevute","total_expense":"Uscite","net_income":"Guadagno netto","year":"Seleziona anno"},"weekly_invoices":{"title":"Fatture a settimana"},"monthly_chart":{"title":"Entrate & Uscite"},"recent_invoices_card":{"title":"Fatture insolute","due_on":"Data di scadenza","customer":"Cliente","amount_due":"Ammontare dovuto","actions":"Azioni","view_all":"Vedi tutto"},"recent_estimate_card":{"title":"Preventivi recenti","date":"Data","customer":"Cliente","amount_due":"Ammontare dovuto","actions":"Azioni","view_all":"Vedi tutto"}},"tax_types":{"name":"Nome","description":"Descrizione","percent":"Percento","compound_tax":"Tassa composta"},"global_search":{"search":"Search...","customers":"Clienti","users":"Users","no_results_found":"No Results Found"},"customers":{"title":"Clienti","add_customer":"Aggiungi cliente","contacts_list":"Lista clienti","name":"Nome","mail":"Mail | Mails","statement":"Statement","display_name":"Mostra nome","primary_contact_name":"Riferimento","contact_name":"Nome Contatto","amount_due":"Ammontare dovuto","email":"Email","address":"Indirizzo","phone":"Telefono","website":"Sito web","overview":"Overview","enable_portal":"Enable Portal","country":"Paese","state":"Stato","city":"Città","zip_code":"Codice Postale","added_on":"Aggiunto il","action":"Azione","password":"Password","street_number":"Numero Civico","primary_currency":"Valùta Principale","description":"Descrizione","add_new_customer":"Aggiungi nuovo Cliente","save_customer":"Salva Cliente","update_customer":"Aggiorna Cliente","customer":"Cliente | Clienti","new_customer":"Nuovo cliente","edit_customer":"Modifica Cliente","basic_info":"Informazioni","billing_address":"Indirizzo di Fatturazione","shipping_address":"Indirizzo di Spedizione","copy_billing_address":"Copia da Fatturazione","no_customers":"Ancora nessun Cliente!","no_customers_found":"Nessun cliente trovato!","list_of_customers":"Qui ci sarà la lista dei tuoi clienti","primary_display_name":"Mostra il Nome Principale","select_currency":"Selezione Valùta","select_a_customer":"Seleziona Cliente","type_or_click":"Scrivi o clicca per selezionare","new_transaction":"Nuova transazione","no_matching_customers":"Non ci sono clienti corrispondenti!","phone_number":"Numero di telefono","create_date":"Crea data","confirm_delete":"Non sarai in grado di recuperare questo cliente e tutte le relative fatture, stime e pagamenti. | Non sarai in grado di recuperare questi clienti e tutte le relative fatture, stime e pagamenti.","created_message":"Cliente creato con successo","updated_message":"Cliente aggiornato con successo","deleted_message":"Cliente cancellato con successo | Clienti cancellati con successo"},"items":{"title":"Commesse","items_list":"Lista Commesse","name":"Nome","unit":"Unità/Tipo","description":"Descrizione","added_on":"Aggiunto il","price":"Prezzo","date_of_creation":"Data di creazione","action":"Azione","add_item":"Aggiungi Commessa","save_item":"Salva","update_item":"Aggiorna","item":"Commessa | Commesse","add_new_item":"Aggiungi nuova Commessa","new_item":"Nuova Commessa","edit_item":"Modifica Commessa","no_items":"Ancora nessuna commessa!","list_of_items":"Qui ci sarà la lista delle commesse.","select_a_unit":"Seleziona","taxes":"Imposte","item_attached_message":"Non puoi eliminare una Commessa che è già attiva","confirm_delete":"Non potrai ripristinare la Commessa | Non potrai ripristinare le Commesse","created_message":"Commessa creata con successo","updated_message":"Commessa aggiornata con successo","deleted_message":"Commessa eliminata con successo | Commesse eliminate con successo"},"estimates":{"title":"Preventivi","estimate":"Preventivo | Preventivi","estimates_list":"Lista Preventivi","days":"{days} Giorni","months":"{months} Mese","years":"{years} Anno","all":"Tutti","paid":"Pagato","unpaid":"Non pagato","customer":"CLIENTE","ref_no":"RIF N.","number":"NUMERO","amount_due":"AMMONTARE DOVUTO","partially_paid":"Pagamento Parziale","total":"Totale","discount":"Sconto","sub_total":"Sub Totale","estimate_number":"Preventivo Numero","ref_number":"Numero di Rif.","contact":"Contatto","add_item":"Aggiungi un item","date":"Data","due_date":"Data di pagamento","expiry_date":"Data di scadenza","status":"Stato","add_tax":"Aggiungi Imposta","amount":"Ammontare","action":"Azione","notes":"Note","tax":"Imposta","estimate_template":"Modello","convert_to_invoice":"Converti in Fattura","mark_as_sent":"Segna come Inviata","send_estimate":"Invia preventivo","resend_estimate":"Resend Estimate","record_payment":"Registra Pagamento","add_estimate":"Aggiungi Preventivo","save_estimate":"Salva Preventivo","confirm_conversion":"Questo preventivo verrà usato per generare una nuova fattura.","conversion_message":"Fattura creata","confirm_send_estimate":"Questo preventivo verrà inviato al cliente via mail","confirm_mark_as_sent":"Questo preventivo verrà contrassegnato come inviato","confirm_mark_as_accepted":"Questo preventivo verrà contrassegnato come Accettato","confirm_mark_as_rejected":"Questo preventivo verrà contrassegnato come Rifiutato","no_matching_estimates":"Nessun preventivo trovato!","mark_as_sent_successfully":"Preventivo contrassegnato come inviato con successo","send_estimate_successfully":"Preventivo inviato con successo","errors":{"required":"Campo obbligatorio"},"accepted":"Accettato","sent":"Inviato","draft":"Bozza","declined":"Rifiutato","new_estimate":"Nuovo Preventivo","add_new_estimate":"Crea Nuovo Preventivo","update_Estimate":"Aggiorna preventivo","edit_estimate":"Modifica Preventivo","items":"Commesse","Estimate":"Preventivo | Preventivi","add_new_tax":"Aggiungi una nuova tassa/imposta","no_estimates":"Ancora nessun preventivo!","list_of_estimates":"Questa sezione conterrà la lista dei preventivi.","mark_as_rejected":"Segna come Rifiutato","mark_as_accepted":"Segna come Accettato","marked_as_accepted_message":"Preventivo contrassegnato come accettato","marked_as_rejected_message":"Preventivo contrassegnato come rifiutato","confirm_delete":"Non potrai più recuperare questo preventivo | Non potrai più recuperare questi preventivi","created_message":"Preventivo creato con successo","updated_message":"Preventivo modificato con successo","deleted_message":"Preventivo eliminato con successo | Preventivi eliminati con successo","user_email_does_not_exist":"La Email utente non esiste","something_went_wrong":"Si è verificato un errore","item":{"title":"Titolo Commessa","description":"Descrizione","quantity":"Quantità","price":"Prezzo","discount":"Sconto","total":"Totale","total_discount":"Sconto Totale","sub_total":"Sub Totale","tax":"Tasse","amount":"Ammontare","select_an_item":"Scrivi o clicca per selezionare un item","type_item_description":"Scrivi una Descrizione (opzionale)"}},"invoices":{"title":"Fatture","invoices_list":"Lista Fatture","days":"{days} Giorni","months":"{months} Mese","years":"{years} Anno","all":"Tutti","paid":"Pagato","unpaid":"Insoluto","customer":"CLIENTE","paid_status":"STATO DI PAGAMENTO","ref_no":"RIF N.","number":"NUMERO","amount_due":"AMMONTARE DOVUTO","partially_paid":"Parzialmente Pagata","total":"Totale","discount":"Sconto","sub_total":"Sub Totale","invoice":"Fattura | Fatture","invoice_number":"Numero Fattura","ref_number":"Rif Numero","contact":"Contatto","add_item":"Aggiungi Commessa/Item","date":"Data","due_date":"Data di pagamento","status":"Stato","add_tax":"Aggiungi Imposta","amount":"Ammontare","action":"Azione","notes":"Note","view":"Vedi","send_invoice":"Invia Fattura","resend_invoice":"Resend Invoice","invoice_template":"Modello Fattura","template":"Modello","mark_as_sent":"Segna come inviata","confirm_send_invoice":"Questa fattura sarà inviata via Mail al Cliente","invoice_mark_as_sent":"Questa fattura sarà contrassegnata come inviata","confirm_send":"Questa fattura sarà inviata via Mail al Cliente","invoice_date":"Data fattura","record_payment":"Registra Pagamento","add_new_invoice":"Aggiungi nuova Fattura","update_expense":"Aggiorna Costo","edit_invoice":"Modifica Fattura","new_invoice":"Nuova Fattura","save_invoice":"Salva fattura","update_invoice":"Aggiorna Fattura","add_new_tax":"Aggiungi tassa/imposta","no_invoices":"Ancora nessuna fattura!","list_of_invoices":"Questa sezione conterrà la lista delle Fatture.","select_invoice":"Seleziona Fattura","no_matching_invoices":"Nessuna fattura trovata!","mark_as_sent_successfully":"Fattura contassegnata come inviata con successo","send_invoice_successfully":"Fattura inviata con successo","cloned_successfully":"Fattura copiata con successo","clone_invoice":"Clona Fattura","confirm_clone":"Questa fattura verrà clonata in una nuova fattura","item":{"title":"Titolo Commessa","description":"Descrizione","quantity":"Quantità","price":"Prezzo","discount":"Sconto","total":"Totale","total_discount":"Sconto Totale","sub_total":"Sub Totale","tax":"Tassa","amount":"Ammontare","select_an_item":"Scrivi o clicca per selezionare un item","type_item_description":"Scrivi una descrizione (opzionale)"},"payment_attached_message":"Una delle fatture selezionate ha già associato un pagamento. Assicurati di eliminare il pagamento associato prima di procedere con la rimozione","confirm_delete":"Non potrai recuperare la Fattura cancellata | Non potrai recuperare le Fatture cancellate","created_message":"Fattura creata con successo","updated_message":"Fattura aggiornata con successo","deleted_message":"Fattura cancellata con successo | Fatture cancellate con successo","marked_as_sent_message":"Fattura contrassegnata come inviata con successo","user_email_does_not_exist":"La Email utente non esiste","something_went_wrong":"Si è verificato un errore","invalid_due_amount_message":"L\'ammontare totale della fattura non può essere inferiore all\'ammontare totale pagato per questa fattura. Modifica la fattura o cancella i pagamenti associati per continuare."},"credit_notes":{"title":"Note di Credito","credit_notes_list":"Lista Note di Credito","credit_notes":"Note di Credito","contact":"Contatta","date":"Data","amount":"Ammontare","action":"Azione","credit_number":"Numero Credito","notes":"Note","confirm_delete":"Vuoi cancellare questa nota di credito?","item":{"title":"Titolo","description":"Descrizione","quantity":"Quantità","price":"Prezzo","discount":"Sconto","total":"Totale","total_discount":"Sconto Totale","sub_total":"Sub Totale","tax":"Tassa"}},"payments":{"title":"Pagamenti","payments_list":"Lista Pagamenti","record_payment":"Registra Pagamento","customer":"Cliente","date":"Data","amount":"Ammontare","action":"Azione","payment_number":"Numero di pagamento","payment_mode":"Modalità di Pagamento","invoice":"Fattura","note":"Nota","add_payment":"Aggiungi Pagamento","new_payment":"Nuovo Pagamento","edit_payment":"Modifica Pagamento","view_payment":"Vedi Pagamento","add_new_payment":"Aggiungi nuovo pagamento","send_payment_receipt":"Invia ricevuta di pagamento","send_payment":"Inviare il pagamento","save_payment":"Salva pagamento","update_payment":"Aggiorna pagamento","payment":"Pagamento | Pagamenti","no_payments":"Ancora nessun pagamento!","no_matching_payments":"Non ci sono pagamenti!","list_of_payments":"Questa sezione conterrà la lista dei pagamenti.","select_payment_mode":"Seleziona modalità di pagamento","confirm_mark_as_sent":"Questo preventivo verrà contrassegnato come inviato","confirm_send_payment":"Questo pagamento verrà inviato via email al cliente","send_payment_successfully":"Pagamento inviato con successo","user_email_does_not_exist":"Email utente non esiste","something_went_wrong":"si è verificato un errore","confirm_delete":"Non potrai recuperare questo pagamento | Non potrai recuperare questi pagamenti","created_message":"Pagamento creato con successo","updated_message":"Pagamento aggiornato con successo","deleted_message":"Pagamento cancellato con successo | Pagamenti cancellati con successo","invalid_amount_message":"L\'ammontare del pagamento non è valido"},"expenses":{"title":"Spese","expenses_list":"Lista Costi","select_a_customer":"Seleziona Cliente","expense_title":"Titolo","customer":"Cliente","contact":"Contatto","category":"Categoria","from_date":"Dalla Data","to_date":"Alla Data","expense_date":"Data","description":"Descrizione","receipt":"Ricevuta","amount":"Ammontare","action":"Azione","note":"Nota","category_id":"Id categoria","date":"Data Spesa","add_expense":"Aggiungi Spesa","add_new_expense":"Aggiungi nuova Spesa","save_expense":"Salva la Spesa","update_expense":"Aggiorna Spesa","download_receipt":"Scarica la Ricevuta","edit_expense":"Modifica Spesa","new_expense":"Nuova Spesa","expense":"Spesa | Spese","no_expenses":"Ancora nessuna spesa!","list_of_expenses":"Questa sezione conterrà la lista delle Spese.","confirm_delete":"Non potrai recuperare questa spesa | Non potrai recuperare queste spese","created_message":"Spesa creata con successo","updated_message":"Spesa modificata con successo","deleted_message":"Spesa cancellata con successo | Spese cancellate con successo","categories":{"categories_list":"Lista categorie","title":"Titolo","name":"Nome","description":"Descrizione","amount":"Ammontare","actions":"Azioni","add_category":"Aggiungi Categoria","new_category":"Nuova Categoria","category":"Categoria | Categorie","select_a_category":"Seleziona Categoria"}},"login":{"email":"Email","password":"Password","forgot_password":"Password dimenticata?","or_signIn_with":"o fai login con","login":"Login","register":"Registrati","reset_password":"Resetta Password","password_reset_successfully":"Password Resettata con successo","enter_email":"Inserisci email","enter_password":"Inserisci Password","retype_password":"Ridigita Password","login_placeholder":"mail@example.com"},"users":{"title":"Users","users_list":"Users List","name":"Nome","description":"Descrizione","added_on":"Aggiunto il","date_of_creation":"Data di creazione","action":"Azione","add_user":"Add User","save_user":"Save User","update_user":"Update User","user":"User | Users","add_new_user":"Add New User","new_user":"New User","edit_user":"Edit User","no_users":"No users yet!","list_of_users":"This section will contain the list of users.","email":"Email","phone":"Telefono","password":"Password","user_attached_message":"Non puoi eliminare una Commessa che è già attiva","confirm_delete":"You will not be able to recover this User | You will not be able to recover these Users","created_message":"User created successfully","updated_message":"User updated successfully","deleted_message":"User deleted successfully | User deleted successfully"},"reports":{"title":"Report","from_date":"Da","to_date":"A","status":"Stato","paid":"Pagato","unpaid":"Non pagato","download_pdf":"Scarica PDF","view_pdf":"Vedi PDF","update_report":"Aggiorna Report","report":"Report | Reports","profit_loss":{"profit_loss":"Guadagni & Perdite","to_date":"A","from_date":"Da","date_range":"Seleziona intervallo date"},"sales":{"sales":"Vendite","date_range":"Seleziona intervallo date","to_date":"A","from_date":"Da","report_type":"Tipo di report"},"taxes":{"taxes":"Tasse","to_date":"Alla data","from_date":"Dalla data","date_range":"Seleziona intervallo date"},"errors":{"required":"Campo obbligatorio"},"invoices":{"invoice":"Fattura","invoice_date":"Data fattura","due_date":"Data di pagamento","amount":"Ammontare","contact_name":"Nome contatto","status":"Stato"},"estimates":{"estimate":"Preventivo","estimate_date":"Data preventivo","due_date":"Data di pagamento","estimate_number":"Numero di preventivo","ref_number":"Numero di Rif.","amount":"Ammontare","contact_name":"Nome contatto","status":"Stato"},"expenses":{"expenses":"Spese","category":"Categoria","date":"Data","amount":"Ammontare","to_date":"Alla data","from_date":"Dalla data","date_range":"Seleziona intervallo date"}},"settings":{"menu_title":{"account_settings":"Impostazioni Account","company_information":"Informazioni Azienda","customization":"Personalizzazione","preferences":"Opzioni","notifications":"Notifiche","tax_types":"Tupi di Tasse","expense_category":"Categorie di spesa","update_app":"Aggiorna App","backup":"Backup","file_disk":"File Disk","custom_fields":"Campi personalizzati","payment_modes":"Payment Modes","notes":"Note"},"title":"Impostazioni","setting":"Opzione | Impostazioni","general":"Generale","language":"Lingua","primary_currency":"Valuta Principale","timezone":"Time Zone","date_format":"Formato data","currencies":{"title":"Valute","currency":"Valùta | Valute","currencies_list":"Lista valute","select_currency":"Seleziona Valùta","name":"Nome","code":"Codice","symbol":"Simbolo","precision":"Precisione","thousand_separator":"Separatore migliaia","decimal_separator":"Separatore decimali","position":"Posizione","position_of_symbol":"Posizione del Simbolo","right":"Destra","left":"Sinistra","action":"Azione","add_currency":"Aggiungi Valùta"},"mail":{"host":"Mail Host","port":"Mail - Porta","driver":"Mail Driver","secret":"Secret","mailgun_secret":"Mailgun Secret","mailgun_domain":"Domain","mailgun_endpoint":"Mailgun Endpoint","ses_secret":"SES Secret","ses_key":"SES Key","password":"Mail Password","username":"Mail Username","mail_config":"Configurazione Mail","from_name":"Nome Mittente Mail","from_mail":"Indirizzo Mittente Mail","encryption":"Tipo di cifratura Mail","mail_config_desc":"Form per Configurazione Driver Mail per invio mail dall\'App. Puoi anche configurare providers di terze parti come Sendgrid, SES, etc.."},"pdf":{"title":"Configurazione PDF","footer_text":"Testo Footer","pdf_layout":"Layout PDF"},"company_info":{"company_info":"Info azienda","company_name":"Nome azienda","company_logo":"Logo azienda","section_description":"Informazioni sulla tua azienda che saranno mostrate in fattura, preventivi ed altri documenti creati dell\'applicazione.","phone":"Telefono","country":"Paese","state":"Stato","city":"Città","address":"Indirizzo","zip":"CAP","save":"Salva","updated_message":"Informazioni Azienda aggiornate con successo."},"custom_fields":{"title":"Campi personalizzati","section_description":"Customize your Invoices, Estimates & Payment Receipts with your own fields. Make sure to use the below added fields on the address formats on Customization settings page.","add_custom_field":"Aggiungi campo personalizzato","edit_custom_field":"Modifica campo personalizzato","field_name":"Nome campo","label":"Etichetta","type":"genere","name":"Nome","required":"Necessaria","placeholder":"segnaposto","help_text":"Testo guida","default_value":"Valore predefinito","prefix":"Prefisso","starting_number":"Numero iniziale","model":"Modella","help_text_description":"Inserisci del testo per aiutare gli utenti a comprendere lo scopo di questo campo personalizzato.","suffix":"Suffisso","yes":"sì","no":"No","order":"Ordine","custom_field_confirm_delete":"Non sarai in grado di recuperare questo campo personalizzato","already_in_use":"Il campo personalizzato è già in uso","deleted_message":"Campo personalizzato eliminato correttamente","options":"opzioni","add_option":"Aggiungi opzioni","add_another_option":"Aggiungi un\'altra opzione","sort_in_alphabetical_order":"Ordina in ordine alfabetico","add_options_in_bulk":"Aggiungi opzioni in blocco","use_predefined_options":"Usa opzioni predefinite","select_custom_date":"Seleziona la data personalizzata","select_relative_date":"Seleziona la data relativa","ticked_by_default":"Contrassegnato per impostazione predefinita","updated_message":"Campo personalizzato aggiornato correttamente","added_message":"Campo personalizzato aggiunto correttamente"},"customization":{"customization":"personalizzazione","save":"Salva","addresses":{"title":"Indirizzi","section_description":"Puoi settare l\'indirizzo di fatturazione del Cliente e/o il formato dell\'indirizzo di spedizione (Mostrato solo sul PDF). ","customer_billing_address":"Indirizzo Fatturazione Cliente","customer_shipping_address":"Indirizzo spedizione Cliente","company_address":"Indirizzo Azienda","insert_fields":"Inserisci Campi","contact":"Contatto","address":"Indirizzo","display_name":"Mostra nome","primary_contact_name":"Nome contatto primario","email":"Email","website":"Sito web","name":"Nome","country":"Paese","state":"Stato","city":"Città","company_name":"Nome Azienda","address_street_1":"Indirizzo 1","address_street_2":"Indirizzo 2","phone":"Telefono","zip_code":"CAP/ZIP Code","address_setting_updated":"Indirizzo aggiornato con Successo"},"updated_message":"Info azienda aggiornate con successo","invoices":{"title":"Fatture","notes":"Note","invoice_prefix":"Prefisso Fattura","default_invoice_email_body":"Default Invoice Email Body","invoice_settings":"Impostazioni fattura","autogenerate_invoice_number":"Auto genera numero di fattura","invoice_setting_description":"Disabilita, se non vuoi auto-generare i numeri delle fatture ogni volta che crei una nuova fattura.","enter_invoice_prefix":"Inserisci prefisso fattura","terms_and_conditions":"Termini e Condizioni","company_address_format":"Company Address Format","shipping_address_format":"Shipping Address Format","billing_address_format":"Billing Address Format","invoice_setting_updated":"Impostazioni fatture aggiornate con successo"},"estimates":{"title":"Preventivi","estimate_prefix":"Prefisso Preventivi","default_estimate_email_body":"Default Estimate Email Body","estimate_settings":"Impostazioni Preventivi","autogenerate_estimate_number":"Auto-genera Numero di preventivo","estimate_setting_description":"Disabilita, se non vuoi autogenerare il numero di preventivo ogni volta che ne viene creato uno nuovo.","enter_estimate_prefix":"Inserisci prefisso preventivo","estimate_setting_updated":"Impostazioni preventivi aggiornate con successo","company_address_format":"Company Address Format","billing_address_format":"Billing Address Format","shipping_address_format":"Shipping Address Format"},"payments":{"title":"Pagamenti","description":"Modes of transaction for payments","payment_prefix":"Prefisso Pagamento","default_payment_email_body":"Default Payment Email Body","payment_settings":"Impostazioni Pagamento","autogenerate_payment_number":"Auto genera il numero di Pagamento","payment_setting_description":"Disabilita, se non vuoi autogenerare il numero di pagamento ogni volta che ne viene creato uno nuovo.","enter_payment_prefix":"Inserisci prefisso di pagamento","payment_setting_updated":"Impostazioni di pagamento aggiornate con successo","payment_modes":"Payment Modes","add_payment_mode":"Aggiungi modalità di pagamento","edit_payment_mode":"Modifica modalità di pagamento","mode_name":"Nome modalità","payment_mode_added":"Modalità di pagamento aggiunta","payment_mode_updated":"Modalità di pagamento aggiornata","payment_mode_confirm_delete":"Non potrai ripristinare la modalità di pagamento","already_in_use":"Modalità di pagamento già in uso","deleted_message":"Payment Mode deleted successfully","company_address_format":"Company Address Format","from_customer_address_format":"From Customer Address Format"},"items":{"title":"Commesse","units":"unità","add_item_unit":"Aggiungi Unità Item","edit_item_unit":"Modifica unità articolo","unit_name":"Nome","item_unit_added":"Unità aggiunta","item_unit_updated":"Unità aggiornata","item_unit_confirm_delete":"Non potrai ripristinare questa unità Item","already_in_use":"Unità Item già in uso","deleted_message":"Unità item eliminata con successo"},"notes":{"title":"Note","description":"Save time by creating notes and reusing them on your invoices, estimates & payments.","notes":"Note","type":"genere","add_note":"Add Note","add_new_note":"Add New Note","name":"Nome","edit_note":"Edit Note","note_added":"Note added successfully","note_updated":"Note Updated successfully","note_confirm_delete":"You will not be able to recover this Note","already_in_use":"Note is already in use","deleted_message":"Note deleted successfully"}},"account_settings":{"profile_picture":"Immagine profilo","name":"Nome","email":"Email","password":"Password","confirm_password":"Conferma Password","account_settings":"Impostazioni Account","save":"Salva","section_description":"Puoi aggiornare nome email e password utilizzando il form qui sotto.","updated_message":"Impostazioni account aggiornate con successo"},"user_profile":{"name":"Nome","email":"Email","password":"Password","confirm_password":"Conferma Password"},"notification":{"title":"Notifica","email":"Invia notifiche a","description":"Quali notifiche email vorresti ricevere quando qualcosa cambia?","invoice_viewed":"Fattura visualizzata","invoice_viewed_desc":"Quando il cliente visualizza la fattura inviata via dashboard applicazione.","estimate_viewed":"Preventivo visualizzato","estimate_viewed_desc":"Quando il cliente visualizza il preventivo inviato dall\'applicazione.","save":"Salva","email_save_message":"Email salvata con successo","please_enter_email":"Inserisci Email"},"tax_types":{"title":"Tipi di Imposta","add_tax":"Aggiungi Imposta","edit_tax":"Modifica imposta","description":"Puoi aggiongere e rimuovere imposte a piacimento. Vengono supportate Tasse differenti per prodotti/servizi specifici esattamento come per le fatture.","add_new_tax":"Aggiungi nuova imposta","tax_settings":"Impostazioni Imposte","tax_per_item":"Tassa per prodotto/servizio","tax_name":"Nome imposta","compound_tax":"Imposta composta","percent":"Percento","action":"Azione","tax_setting_description":"Abilita se vuoi aggiungere imposte specifiche per prodotti o servizi. Di default le imposte sono aggiunte direttamente alla fattura.","created_message":"Tipo di imposta creato con successo","updated_message":"Tipo di imposta aggiornato con successo","deleted_message":"Tipo di imposta eliminato con successo","confirm_delete":"Non potrai ripristinare questo tipo di imposta","already_in_use":"Imposta già in uso"},"expense_category":{"title":"Categorie di spesa","action":"Azione","description":"Le categorie sono necessarie per aggiungere delle voci di spesa. Puoi aggiungere o eliminare queste categorie in base alle tue preferenze.","add_new_category":"Aggiungi nuova categoria","add_category":"Aggiungi categoria","edit_category":"Modifica categoria","category_name":"Nome Categoria","category_description":"Descrizione","created_message":"Categoria di spesa creata con successo","deleted_message":"Categoria di spesa eliminata con successo","updated_message":"Categoria di spesa aggiornata con successo","confirm_delete":"Non potrai ripristinare questa categoria di spesa","already_in_use":"Categoria già in uso"},"preferences":{"currency":"Valùta","default_language":"Default Language","time_zone":"Time Zone","fiscal_year":"Anno finanziario","date_format":"Formato Data","discount_setting":"Impostazione Sconto","discount_per_item":"Sconto Per Item ","discount_setting_description":"Abilita se vuoi aggiungere uno sconto ad uno specifica fattura. Di default, lo sconto è aggiunto direttamente in fattura.","save":"Salva","preference":"Preferenza | Preferenze","general_settings":"Impostazioni di default del sistema.","updated_message":"Preferenze aggiornate con successo","select_language":"seleziona lingua","select_time_zone":"Seleziona Time Zone","select_date_format":"Select Date Format","select_financial_year":"Seleziona anno finanziario"},"update_app":{"title":"Aggiorna App","description":"Puoi facilmente aggiornare l\'app. Aggiorna cliccando sul bottone qui sotto","check_update":"Controllo aggiornamenti","avail_update":"Aggiornamento disponibile","next_version":"Versione successiva","requirements":"Requirements","update":"Aggiorna ora","update_progress":"Aggiornamento in corso...","progress_text":"Sarà necessario qualche minuto. Per favore non aggiornare la pagina e non chiudere la finestra prima che l\'aggiornamento sia completato","update_success":"L\'App è aggiornata! Attendi che la pagina venga ricaricata automaticamente.","latest_message":"Nessun aggiornamneto disponibile! Sei già alla versione più recente.","current_version":"Versione corrente","download_zip_file":"Scarica il file ZIP","unzipping_package":"Pacchetto di decompressione","copying_files":"Copia dei file","running_migrations":"Esecuzione delle migrazioni","finishing_update":"Aggiornamento di finitura","update_failed":"Aggiornamento non riuscito","update_failed_text":"Scusate! L\'aggiornamento non è riuscito il: passaggio {step}"},"backup":{"title":"Backup | Backups","description":"The backup is a zipfile that contains all files in the directories you specify along with a dump of your database","new_backup":"Add New Backup","create_backup":"Create Backup","select_backup_type":"Select Backup Type","backup_confirm_delete":"You will not be able to recover this Backup","path":"path","new_disk":"New Disk","created_at":"created at","size":"size","dropbox":"dropbox","local":"local","healthy":"healthy","amount_of_backups":"amount of backups","newest_backups":"newest backups","used_storage":"used storage","select_disk":"Select Disk","action":"Azione","deleted_message":"Backup deleted successfully","created_message":"Backup created successfully","invalid_disk_credentials":"Invalid credential of selected disk"},"disk":{"title":"File Disk | File Disks","description":"By default, Crater will use your local disk for saving backups, avatar and other image files. You can configure more than one disk drivers like DigitalOcean, S3 and Dropbox according to your preference.","created_at":"created at","dropbox":"dropbox","name":"Nome","driver":"Driver","disk_type":"genere","disk_name":"Disk Name","new_disk":"Add New Disk","filesystem_driver":"Filesystem Driver","local_driver":"local Driver","local_root":"local Root","public_driver":"Public Driver","public_root":"Public Root","public_url":"Public URL","public_visibility":"Public Visibility","media_driver":"Media Driver","media_root":"Media Root","aws_driver":"AWS Driver","aws_key":"AWS Key","aws_secret":"AWS Secret","aws_region":"AWS Region","aws_bucket":"AWS Bucket","aws_root":"AWS Root","do_spaces_type":"Do Spaces type","do_spaces_key":"Do Spaces key","do_spaces_secret":"Do Spaces Secret","do_spaces_region":"Do Spaces Region","do_spaces_bucket":"Do Spaces Bucket","do_spaces_endpoint":"Do Spaces Endpoint","do_spaces_root":"Do Spaces Root","dropbox_type":"Dropbox Type","dropbox_token":"Dropbox Token","dropbox_key":"Dropbox Key","dropbox_secret":"Dropbox Secret","dropbox_app":"Dropbox App","dropbox_root":"Dropbox Root","default_driver":"Default Driver","is_default":"IS DEFAULT","set_default_disk":"Set Default Disk","success_set_default_disk":"Disk set as default successfully","save_pdf_to_disk":"Save PDFs to Disk","disk_setting_description":" Enable this, if you wish to save a copy of each Invoice, Estimate & Payment Receipt PDF on your default disk automatically. Turning this option will decrease the load-time when viewing the PDFs.","select_disk":"Select Disk","disk_settings":"Disk Settings","confirm_delete":"Your existing files & folders in the specified disk will not be affected but your disk configuration will be deleted from Crater","action":"Azione","edit_file_disk":"Edit File Disk","success_create":"Disk added successfully","success_update":"Disk updated successfully","error":"Disk addition failed","deleted_message":"File Disk deleted successfully","disk_variables_save_successfully":"Disk Configured Successfully","disk_variables_save_error":"Disk configuration failed.","invalid_disk_credentials":"Invalid credential of selected disk"}},"wizard":{"account_info":"Informazioni Account","account_info_desc":"I dettagli qui sotto verranno usati per creare l\'account principale dell\'Amministratore. Puoi modificarli in qualsiasi momento dopo esserti loggato come Amministratore.","name":"Nome","email":"Email","password":"Password","confirm_password":"Conferma Password","save_cont":"Salva & Continua","company_info":"Informazioni Azienda","company_info_desc":"Questa informazione verrà mostrata nelle fatture. Puoi modificare queste informazione in un momento successivo dalla pagina delle impostazioni.","company_name":"Nome Azienda","company_logo":"Logo Azienda","logo_preview":"Anteprima Logo","preferences":"Impostazioni","preferences_desc":"Impostazioni di default del sistema.","country":"Paese","state":"Stato","city":"Città","address":"Indirizzo","street":"Indirizzo1 | Indirizzo2","phone":"Telefono","zip_code":"CAP/Zip Code","go_back":"Torna indietro","currency":"Valùta","language":"Lingua","time_zone":"Time Zone","fiscal_year":"Anno Finanziario","date_format":"Formato Date","from_address":"Indirizzo - Da","username":"Username","next":"Successivo","continue":"Continua","skip":"Salta","database":{"database":"URL del sito & database","connection":"Connessione Database","host":"Database Host","port":"Database - Porta","password":"Database Password","app_url":"App URL","app_domain":"App Domain","username":"Database Username","db_name":"Database Nome","db_path":"Database Path","desc":"Crea un database sul tuo server e setta le credenziali usando il form qui sotto."},"permissions":{"permissions":"Permessi","permission_confirm_title":"Sei sicuro di voler continuare?","permission_confirm_desc":"Controllo sui permessi Cartelle, fallito","permission_desc":"Qui sotto la lista dei permessi richiesti per far funzionare correttamente l\'App. Se il controllo dei permessi fallisce, assicurati di aggiornare/modificare i permessi sulle cartelle."},"mail":{"host":"Mail Host","port":"Mail - Porta","driver":"Mail Driver","secret":"Secret","mailgun_secret":"Mailgun Secret","mailgun_domain":"Domain","mailgun_endpoint":"Mailgun Endpoint","ses_secret":"SES Secret","ses_key":"SES Key","password":"Mail Password","username":"Mail Username","mail_config":"Configurazione Mail","from_name":"Nome mittente mail","from_mail":"Indirizzo mittente mail","encryption":"Tipo di cifratura Mail","mail_config_desc":"Form per configurazione del \'driver mail\' per inviare emails dall\'App. Puoi anche configurare servizi di terze parti come Sendgrid, SES, ecc.."},"req":{"system_req":"Requisiti di Sistema","php_req_version":"Php (versione {version} richiesta)","check_req":"Controllo Requisiti","system_req_desc":"Crater ha alcuni requisiti di sistema. Assicurati che il server ha la versione di php richiesta e tutte le estensioni necessarie."},"errors":{"migrate_failed":"Migrate Failed","database_variables_save_error":"Cannot write configuration to .env file. Please check its file permissions","mail_variables_save_error":"Email configuration failed.","connection_failed":"Database connection failed","database_should_be_empty":"Database should be empty"},"success":{"mail_variables_save_successfully":"Email configurata con successo","database_variables_save_successfully":"Database configurato con successo."}},"layout_login":{"copyright_crater":"Copyright @ Crater - 2020","super_simple_invoicing":"Fatturazione super semplice","for_freelancer":"per Freelancers &","small_businesses":"Medio Piccoli Business ","crater_help":"Crater ti aiuta a tracciare le spese, registrare pagamenti e generare graziose","invoices_and_estimates":"fatture & preventivi con possibilità di scegliere tra diversi modelli."},"validation":{"invalid_phone":"Numero di telefono invalido","invalid_url":"URL non valido (es: http://www.crater.com)","invalid_domain_url":"URL non valido (es: crater.com)","required":"Campo obbligatorio","email_incorrect":"Email non corretta.","email_already_taken":"Email già in uso.","email_does_not_exist":"L\'utente con questa email non esiste","item_unit_already_taken":"Questo nome item è già utilizzato","payment_mode_already_taken":"Questa modalità di pagamento è già stata inserita.","send_reset_link":"Invia Link di Reset","not_yet":"Non ancora? Invia di nuovo","password_min_length":"La password deve contenere {count} caratteri","name_min_length":"Il nome deve avere almeno {count} lettere.","enter_valid_tax_rate":"Inserisci un tasso di imposta valido","numbers_only":"Solo numeri.","characters_only":"Solo caratteri.","password_incorrect":"La Password deve essere identica","password_length":"La password deve essere lunga {count} caratteri.","qty_must_greater_than_zero":"La quantità deve essere maggiore di zero.","price_greater_than_zero":"Il prezzo deve essere maggiore di zero.","payment_greater_than_zero":"Il pagamento deve essere maggiore di zero.","payment_greater_than_due_amount":"Il pagamento inserito è maggiore di quello indicato in fattura.","quantity_maxlength":"La Quantità non può essere maggiore di 20 cifre.","price_maxlength":"Il prezzo non può contenere più di 20 cifre.","price_minvalue":"Il prezzo deve essere maggiore di 0.","amount_maxlength":"La somma non deve contenere più di 20 cifre.","amount_minvalue":"La somma deve essere maggiore di 0.","description_maxlength":"La Descrizione non deve superare i 255 caratteri.","subject_maxlength":"L\'Oggetto non deve superare i 100 caratter.","message_maxlength":"Il messaggio non può superare i 255 caratteri.","maximum_options_error":"Massimo di {max} opzioni selezionate. Per selezionare un\'altra opzione deseleziona prima una opzione.","notes_maxlength":"Le note non possono superare i 255 caratteri.","address_maxlength":"L\'Indirizzo non può eccedere i 255 caratteri.","ref_number_maxlength":"Il Numero di Riferimento non può superare i 255 caratteri.","prefix_maxlength":"Il Prefisso non può superare i 5 caratteri.","something_went_wrong":"Si è verificato un errore"},"pdf_estimate_label":"Preventivo","pdf_estimate_number":"Preventivo Numero","pdf_estimate_date":"Data preventivo","pdf_estimate_expire_date":"Expiry date","pdf_invoice_label":"Fattura","pdf_invoice_number":"Numero Fattura","pdf_invoice_date":"Data fattura","pdf_invoice_due_date":"Due date","pdf_notes":"Note","pdf_items_label":"Commesse","pdf_quantity_label":"Quantità","pdf_price_label":"Prezzo","pdf_discount_label":"Sconto","pdf_amount_label":"Ammontare","pdf_subtotal":"Subtotal","pdf_total":"Totale","pdf_payment_receipt_label":"PAYMENT RECEIPT","pdf_payment_date":"Payment Date","pdf_payment_number":"Numero di pagamento","pdf_payment_mode":"Modalità di Pagamento","pdf_payment_amount_received_label":"Amount Received","pdf_expense_report_label":"EXPENSES REPORT","pdf_total_expenses_label":"TOTAL EXPENSE","pdf_profit_loss_label":"PROFIT & LOSS REPORT","pdf_income_label":"INCOME","pdf_net_profit_label":"NET PROFIT","pdf_customer_sales_report":"Sales Report: By Customer","pdf_total_sales_label":"TOTAL SALES","pdf_item_sales_label":"Sales Report: By Item","pdf_tax_report_label":"TAX REPORT","pdf_total_tax_label":"TOTAL TAX","pdf_tax_types_label":"Tipi di Imposta","pdf_expenses_label":"Uscite","pdf_bill_to":"Fattura a,","pdf_ship_to":"Invia a,","pdf_received_from":"Received from:"}')},zZ0H:function(e,t){e.exports=function(e){return e}},zuR4:function(e,t,n){"use strict";var r=n("xTJ+"),a=n("HSsa"),i=n("CgaS"),o=n("SntB");function s(e){var t=new i(e),n=a(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var l=s(n("JEQr"));l.Axios=i,l.create=function(e){return s(o(l.defaults,e))},l.Cancel=n("endd"),l.CancelToken=n("jfS+"),l.isCancel=n("Lmem"),l.all=function(e){return Promise.all(e)},l.spread=n("DfZB"),e.exports=l,e.exports.default=l},zwY0:function(e,t,n){e.exports=function(){"use strict";var e=function(){return(e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function t(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),a=0;for(t=0;t<n;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)r[a]=i[o];return r}var n=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],r={_disable:[],_enable:[],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,enable:[],enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var 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},a={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:function(e){var 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},i=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},o=function(e){return!0===e?1:0};function s(e,t,n){var r;return void 0===n&&(n=!1),function(){var a=this,i=arguments;null!==r&&clearTimeout(r),r=window.setTimeout((function(){r=null,n||e.apply(a,i)}),t),n&&!r&&e.apply(a,i)}}var l=function(e){return e instanceof Array?e:[e]};function c(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function u(e,t,n){var r=window.document.createElement(e);return t=t||"",n=n||"",r.className=t,void 0!==n&&(r.textContent=n),r}function d(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function p(e,t){var n=u("div","numInputWrapper"),r=u("input","numInput "+e),a=u("span","arrowUp"),i=u("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?r.type="number":(r.type="text",r.pattern="\\d*"),void 0!==t)for(var o in t)r.setAttribute(o,t[o]);return n.appendChild(r),n.appendChild(a),n.appendChild(i),n}function f(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(t){return e.target}}var m=function(){},h=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},_={D:m,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*o(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var r=parseInt(t),a=new Date(e.getFullYear(),0,2+7*(r-1),0,0,0,0);return a.setDate(a.getDate()-a.getDay()+n.firstDayOfWeek),a},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:m,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:m,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},v={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})"},g={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[g.w(e,t,n)]},F:function(e,t,n){return h(g.n(e,t,n)-1,!1,t)},G:function(e,t,n){return i(g.h(e,t,n))},H:function(e){return i(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[o(e.getHours()>11)]},M:function(e,t){return h(e.getMonth(),!0,t)},S:function(e){return i(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return i(e.getFullYear(),4)},d:function(e){return i(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return i(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return i(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},y=function(e){var t=e.config,n=void 0===t?r:t,i=e.l10n,o=void 0===i?a:i,s=e.isMobile,l=void 0!==s&&s;return function(e,t,r){var a=r||o;return void 0===n.formatDate||l?t.split("").map((function(t,r,i){return g[t]&&"\\"!==i[r-1]?g[t](e,a,n):"\\"!==t?t:""})).join(""):n.formatDate(e,t,a)}},b=function(e){var t=e.config,n=void 0===t?r:t,i=e.l10n,o=void 0===i?a:i;return function(e,t,a,i){if(0===e||e){var s,l=i||o,c=e;if(e instanceof Date)s=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)s=new Date(e);else if("string"==typeof e){var u=t||(n||r).dateFormat,d=String(e).trim();if("today"===d)s=new Date,a=!0;else if(/Z$/.test(d)||/GMT$/.test(d))s=new Date(e);else if(n&&n.parseDate)s=n.parseDate(e,u);else{s=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var p=void 0,f=[],m=0,h=0,g="";m<u.length;m++){var y=u[m],b="\\"===y,w="\\"===u[m-1]||b;if(v[y]&&!w){g+=v[y];var x=new RegExp(g).exec(e);x&&(p=!0)&&f["Y"!==y?"push":"unshift"]({fn:_[y],val:x[++h]})}else b||(g+=".");f.forEach((function(e){var t=e.fn,n=e.val;return s=t(s,n,l)||s}))}s=p?s:void 0}}if(s instanceof Date&&!isNaN(s.getTime()))return!0===a&&s.setHours(0,0,0,0),s;n.errorHandler(new Error("Invalid date provided: "+c))}}};function w(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var x=864e5;function k(m,_){var g={config:e(e({},r),M.defaultConfig),l10n:a};function k(e){return e.bind(g)}function D(){var e=g.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==g.calendarContainer&&(g.calendarContainer.style.visibility="hidden",g.calendarContainer.style.display="block"),void 0!==g.daysContainer){var t=(g.days.offsetWidth+1)*e.showMonths;g.daysContainer.style.width=t+"px",g.calendarContainer.style.width=t+(void 0!==g.weekWrapper?g.weekWrapper.offsetWidth:0)+"px",g.calendarContainer.style.removeProperty("visibility"),g.calendarContainer.style.removeProperty("display")}}))}function S(e){if(0===g.selectedDates.length){var t=void 0!==g.config.minDate?new Date(g.config.minDate.getTime()):new Date,n=T(),r=n.hours,a=n.minutes,s=n.seconds;t.setHours(r,a,s,0),g.setDate(t,!1)}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=f(e),r=n;void 0!==g.amPM&&n===g.amPM&&(g.amPM.textContent=g.l10n.amPM[o(g.amPM.textContent===g.l10n.amPM[0])]);var a=parseFloat(r.getAttribute("min")),s=parseFloat(r.getAttribute("max")),l=parseFloat(r.getAttribute("step")),c=parseInt(r.value,10),u=e.delta||(t?38===e.which?1:-1:0),d=c+l*u;if(void 0!==r.value&&2===r.value.length){var p=r===g.hourElement,m=r===g.minuteElement;d<a?(d=s+d+o(!p)+(o(p)&&o(!g.amPM)),m&&$(void 0,-1,g.hourElement)):d>s&&(d=r===g.hourElement?d-s-o(!g.amPM):a,m&&$(void 0,1,g.hourElement)),g.amPM&&p&&(1===l?d+c===23:Math.abs(d-c)>l)&&(g.amPM.textContent=g.l10n.amPM[o(g.amPM.textContent===g.l10n.amPM[0])]),r.value=i(d)}}(e);var l=g._input.value;C(),ye(),g._input.value!==l&&g._debouncedChange()}function C(){if(void 0!==g.hourElement&&void 0!==g.minuteElement){var e,t,n=(parseInt(g.hourElement.value.slice(-2),10)||0)%24,r=(parseInt(g.minuteElement.value,10)||0)%60,a=void 0!==g.secondElement?(parseInt(g.secondElement.value,10)||0)%60:0;void 0!==g.amPM&&(e=n,t=g.amPM.textContent,n=e%12+12*o(t===g.l10n.amPM[1]));var i=void 0!==g.config.minTime||g.config.minDate&&g.minDateHasTime&&g.latestSelectedDateObj&&0===w(g.latestSelectedDateObj,g.config.minDate,!0);if(void 0!==g.config.maxTime||g.config.maxDate&&g.maxDateHasTime&&g.latestSelectedDateObj&&0===w(g.latestSelectedDateObj,g.config.maxDate,!0)){var s=void 0!==g.config.maxTime?g.config.maxTime:g.config.maxDate;(n=Math.min(n,s.getHours()))===s.getHours()&&(r=Math.min(r,s.getMinutes())),r===s.getMinutes()&&(a=Math.min(a,s.getSeconds()))}if(i){var l=void 0!==g.config.minTime?g.config.minTime:g.config.minDate;(n=Math.max(n,l.getHours()))===l.getHours()&&(r=Math.max(r,l.getMinutes())),r===l.getMinutes()&&(a=Math.max(a,l.getSeconds()))}E(n,r,a)}}function L(e){var t=e||g.latestSelectedDateObj;t&&E(t.getHours(),t.getMinutes(),t.getSeconds())}function T(){var e=g.config.defaultHour,t=g.config.defaultMinute,n=g.config.defaultSeconds;if(void 0!==g.config.minDate){var r=g.config.minDate.getHours(),a=g.config.minDate.getMinutes();(e=Math.max(e,r))===r&&(t=Math.max(a,t)),e===r&&t===a&&(n=g.config.minDate.getSeconds())}if(void 0!==g.config.maxDate){var i=g.config.maxDate.getHours(),o=g.config.maxDate.getMinutes();(e=Math.min(e,i))===i&&(t=Math.min(o,t)),e===i&&t===o&&(n=g.config.maxDate.getSeconds())}return{hours:e,minutes:t,seconds:n}}function E(e,t,n){void 0!==g.latestSelectedDateObj&&g.latestSelectedDateObj.setHours(e%24,t,n||0,0),g.hourElement&&g.minuteElement&&!g.isMobile&&(g.hourElement.value=i(g.config.time_24hr?e:(12+e)%12+12*o(e%12==0)),g.minuteElement.value=i(t),void 0!==g.amPM&&(g.amPM.textContent=g.l10n.amPM[o(e>=12)]),void 0!==g.secondElement&&(g.secondElement.value=i(n)))}function O(e){var t=f(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&Z(n)}function j(e,t,n,r){return t instanceof Array?t.forEach((function(t){return j(e,t,n,r)})):e instanceof Array?e.forEach((function(e){return j(e,t,n,r)})):(e.addEventListener(t,n,r),void g._handlers.push({element:e,event:t,handler:n,options:r}))}function A(){me("onChange")}function P(e,t){var n=void 0!==e?g.parseDate(e):g.latestSelectedDateObj||(g.config.minDate&&g.config.minDate>g.now?g.config.minDate:g.config.maxDate&&g.config.maxDate<g.now?g.config.maxDate:g.now),r=g.currentYear,a=g.currentMonth;try{void 0!==n&&(g.currentYear=n.getFullYear(),g.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,g.config.errorHandler(e)}t&&g.currentYear!==r&&(me("onYearChange"),B()),!t||g.currentYear===r&&g.currentMonth===a||me("onMonthChange"),g.redraw()}function Y(e){var t=f(e);~t.className.indexOf("arrow")&&$(e,t.classList.contains("arrowUp")?1:-1)}function $(e,t,n){var r=e&&f(e),a=n||r&&r.parentNode&&r.parentNode.firstChild,i=he("increment");i.delta=t,a&&a.dispatchEvent(i)}function I(e,t,n,r){var a=X(t,!0),i=u("span","flatpickr-day "+e,t.getDate().toString());return i.dateObj=t,i.$i=r,i.setAttribute("aria-label",g.formatDate(t,g.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===w(t,g.now)&&(g.todayDateElem=i,i.classList.add("today"),i.setAttribute("aria-current","date")),a?(i.tabIndex=-1,_e(t)&&(i.classList.add("selected"),g.selectedDateElem=i,"range"===g.config.mode&&(c(i,"startRange",g.selectedDates[0]&&0===w(t,g.selectedDates[0],!0)),c(i,"endRange",g.selectedDates[1]&&0===w(t,g.selectedDates[1],!0)),"nextMonthDay"===e&&i.classList.add("inRange")))):i.classList.add("flatpickr-disabled"),"range"===g.config.mode&&function(e){return!("range"!==g.config.mode||g.selectedDates.length<2)&&w(e,g.selectedDates[0])>=0&&w(e,g.selectedDates[1])<=0}(t)&&!_e(t)&&i.classList.add("inRange"),g.weekNumbers&&1===g.config.showMonths&&"prevMonthDay"!==e&&n%7==1&&g.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+g.config.getWeek(t)+"</span>"),me("onDayCreate",i),i}function N(e){e.focus(),"range"===g.config.mode&&ne(e)}function z(e){for(var t=e>0?0:g.config.showMonths-1,n=e>0?g.config.showMonths:-1,r=t;r!=n;r+=e)for(var a=g.daysContainer.children[r],i=e>0?0:a.children.length-1,o=e>0?a.children.length:-1,s=i;s!=o;s+=e){var l=a.children[s];if(-1===l.className.indexOf("hidden")&&X(l.dateObj))return l}}function F(e,t){var n=Q(document.activeElement||document.body),r=void 0!==e?e:n?document.activeElement:void 0!==g.selectedDateElem&&Q(g.selectedDateElem)?g.selectedDateElem:void 0!==g.todayDateElem&&Q(g.todayDateElem)?g.todayDateElem:z(t>0?1:-1);void 0===r?g._input.focus():n?function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():g.currentMonth,r=t>0?g.config.showMonths:-1,a=t>0?1:-1,i=n-g.currentMonth;i!=r;i+=a)for(var o=g.daysContainer.children[i],s=n-g.currentMonth===i?e.$i+t:t<0?o.children.length-1:0,l=o.children.length,c=s;c>=0&&c<l&&c!=(t>0?l:-1);c+=a){var u=o.children[c];if(-1===u.className.indexOf("hidden")&&X(u.dateObj)&&Math.abs(e.$i-c)>=Math.abs(t))return N(u)}g.changeMonth(a),F(z(a),0)}(r,t):N(r)}function R(e,t){for(var n=(new Date(e,t,1).getDay()-g.l10n.firstDayOfWeek+7)%7,r=g.utils.getDaysInMonth((t-1+12)%12,e),a=g.utils.getDaysInMonth(t,e),i=window.document.createDocumentFragment(),o=g.config.showMonths>1,s=o?"prevMonthDay hidden":"prevMonthDay",l=o?"nextMonthDay hidden":"nextMonthDay",c=r+1-n,d=0;c<=r;c++,d++)i.appendChild(I(s,new Date(e,t-1,c),c,d));for(c=1;c<=a;c++,d++)i.appendChild(I("",new Date(e,t,c),c,d));for(var p=a+1;p<=42-n&&(1===g.config.showMonths||d%7!=0);p++,d++)i.appendChild(I(l,new Date(e,t+1,p%a),p,d));var f=u("div","dayContainer");return f.appendChild(i),f}function H(){if(void 0!==g.daysContainer){d(g.daysContainer),g.weekNumbers&&d(g.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<g.config.showMonths;t++){var n=new Date(g.currentYear,g.currentMonth,1);n.setMonth(g.currentMonth+t),e.appendChild(R(n.getFullYear(),n.getMonth()))}g.daysContainer.appendChild(e),g.days=g.daysContainer.firstChild,"range"===g.config.mode&&1===g.selectedDates.length&&ne()}}function B(){if(!(g.config.showMonths>1||"dropdown"!==g.config.monthSelectorType)){var e=function(e){return!(void 0!==g.config.minDate&&g.currentYear===g.config.minDate.getFullYear()&&e<g.config.minDate.getMonth()||void 0!==g.config.maxDate&&g.currentYear===g.config.maxDate.getFullYear()&&e>g.config.maxDate.getMonth())};g.monthsDropdownContainer.tabIndex=-1,g.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var n=u("option","flatpickr-monthDropdown-month");n.value=new Date(g.currentYear,t).getMonth().toString(),n.textContent=h(t,g.config.shorthandCurrentMonth,g.l10n),n.tabIndex=-1,g.currentMonth===t&&(n.selected=!0),g.monthsDropdownContainer.appendChild(n)}}}function q(){var e,t=u("div","flatpickr-month"),n=window.document.createDocumentFragment();g.config.showMonths>1||"static"===g.config.monthSelectorType?e=u("span","cur-month"):(g.monthsDropdownContainer=u("select","flatpickr-monthDropdown-months"),g.monthsDropdownContainer.setAttribute("aria-label",g.l10n.monthAriaLabel),j(g.monthsDropdownContainer,"change",(function(e){var t=f(e),n=parseInt(t.value,10);g.changeMonth(n-g.currentMonth),me("onMonthChange")})),B(),e=g.monthsDropdownContainer);var r=p("cur-year",{tabindex:"-1"}),a=r.getElementsByTagName("input")[0];a.setAttribute("aria-label",g.l10n.yearAriaLabel),g.config.minDate&&a.setAttribute("min",g.config.minDate.getFullYear().toString()),g.config.maxDate&&(a.setAttribute("max",g.config.maxDate.getFullYear().toString()),a.disabled=!!g.config.minDate&&g.config.minDate.getFullYear()===g.config.maxDate.getFullYear());var i=u("div","flatpickr-current-month");return i.appendChild(e),i.appendChild(r),n.appendChild(i),t.appendChild(n),{container:t,yearElement:a,monthElement:e}}function U(){d(g.monthNav),g.monthNav.appendChild(g.prevMonthNav),g.config.showMonths&&(g.yearElements=[],g.monthElements=[]);for(var e=g.config.showMonths;e--;){var t=q();g.yearElements.push(t.yearElement),g.monthElements.push(t.monthElement),g.monthNav.appendChild(t.container)}g.monthNav.appendChild(g.nextMonthNav)}function V(){g.weekdayContainer?d(g.weekdayContainer):g.weekdayContainer=u("div","flatpickr-weekdays");for(var e=g.config.showMonths;e--;){var t=u("div","flatpickr-weekdaycontainer");g.weekdayContainer.appendChild(t)}return W(),g.weekdayContainer}function W(){if(g.weekdayContainer){var e=g.l10n.firstDayOfWeek,n=t(g.l10n.weekdays.shorthand);e>0&&e<n.length&&(n=t(n.splice(e,n.length),n.splice(0,e)));for(var r=g.config.showMonths;r--;)g.weekdayContainer.children[r].innerHTML="\n <span class='flatpickr-weekday'>\n "+n.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function K(e,t){void 0===t&&(t=!0);var n=t?e:e-g.currentMonth;n<0&&!0===g._hidePrevMonthArrow||n>0&&!0===g._hideNextMonthArrow||(g.currentMonth+=n,(g.currentMonth<0||g.currentMonth>11)&&(g.currentYear+=g.currentMonth>11?1:-1,g.currentMonth=(g.currentMonth+12)%12,me("onYearChange"),B()),H(),me("onMonthChange"),ve())}function G(e){return!(!g.config.appendTo||!g.config.appendTo.contains(e))||g.calendarContainer.contains(e)}function J(e){if(g.isOpen&&!g.config.inline){var t=f(e),n=G(t),r=t===g.input||t===g.altInput||g.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(g.input)||~e.path.indexOf(g.altInput)),a="blur"===e.type?r&&e.relatedTarget&&!G(e.relatedTarget):!r&&!n&&!G(e.relatedTarget),i=!g.config.ignoredFocusElements.some((function(e){return e.contains(t)}));a&&i&&(void 0!==g.timeContainer&&void 0!==g.minuteElement&&void 0!==g.hourElement&&""!==g.input.value&&void 0!==g.input.value&&S(),g.close(),g.config&&"range"===g.config.mode&&1===g.selectedDates.length&&(g.clear(!1),g.redraw()))}}function Z(e){if(!(!e||g.config.minDate&&e<g.config.minDate.getFullYear()||g.config.maxDate&&e>g.config.maxDate.getFullYear())){var t=e,n=g.currentYear!==t;g.currentYear=t||g.currentYear,g.config.maxDate&&g.currentYear===g.config.maxDate.getFullYear()?g.currentMonth=Math.min(g.config.maxDate.getMonth(),g.currentMonth):g.config.minDate&&g.currentYear===g.config.minDate.getFullYear()&&(g.currentMonth=Math.max(g.config.minDate.getMonth(),g.currentMonth)),n&&(g.redraw(),me("onYearChange"),B())}}function X(e,t){void 0===t&&(t=!0);var n=g.parseDate(e,void 0,t);if(g.config.minDate&&n&&w(n,g.config.minDate,void 0!==t?t:!g.minDateHasTime)<0||g.config.maxDate&&n&&w(n,g.config.maxDate,void 0!==t?t:!g.maxDateHasTime)>0)return!1;if(0===g.config.enable.length&&0===g.config.disable.length)return!0;if(void 0===n)return!1;for(var r=g.config.enable.length>0,a=r?g.config.enable:g.config.disable,i=0,o=void 0;i<a.length;i++){if("function"==typeof(o=a[i])&&o(n))return r;if(o instanceof Date&&void 0!==n&&o.getTime()===n.getTime())return r;if("string"==typeof o&&void 0!==n){var s=g.parseDate(o,void 0,!0);return s&&s.getTime()===n.getTime()?r:!r}if("object"==typeof o&&void 0!==n&&o.from&&o.to&&n.getTime()>=o.from.getTime()&&n.getTime()<=o.to.getTime())return r}return!r}function Q(e){return void 0!==g.daysContainer&&-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&g.daysContainer.contains(e)}function ee(e){e.target!==g._input||e.relatedTarget&&G(e.relatedTarget)||g.setDate(g._input.value,!0,e.target===g.altInput?g.config.altFormat:g.config.dateFormat)}function te(e){var t=f(e),n=g.config.wrap?m.contains(t):t===g._input,r=g.config.allowInput,a=g.isOpen&&(!r||!n),i=g.config.inline&&n&&!r;if(13===e.keyCode&&n){if(r)return g.setDate(g._input.value,!0,t===g.altInput?g.config.altFormat:g.config.dateFormat),t.blur();g.open()}else if(G(t)||a||i){var o=!!g.timeContainer&&g.timeContainer.contains(t);switch(e.keyCode){case 13:o?(e.preventDefault(),S(),ce()):ue(e);break;case 27:e.preventDefault(),ce();break;case 8:case 46:n&&!g.config.allowInput&&(e.preventDefault(),g.clear());break;case 37:case 39:if(o||n)g.hourElement&&g.hourElement.focus();else if(e.preventDefault(),void 0!==g.daysContainer&&(!1===r||document.activeElement&&Q(document.activeElement))){var s=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),K(s),F(z(1),0)):F(void 0,s)}break;case 38:case 40:e.preventDefault();var l=40===e.keyCode?1:-1;g.daysContainer&&void 0!==t.$i||t===g.input||t===g.altInput?e.ctrlKey?(e.stopPropagation(),Z(g.currentYear-l),F(z(1),0)):o||F(void 0,7*l):t===g.currentYearElement?Z(g.currentYear-l):g.config.enableTime&&(!o&&g.hourElement&&g.hourElement.focus(),S(e),g._debouncedChange());break;case 9:if(o){var c=[g.hourElement,g.minuteElement,g.secondElement,g.amPM].concat(g.pluginElements).filter((function(e){return e})),u=c.indexOf(t);if(-1!==u){var d=c[u+(e.shiftKey?-1:1)];e.preventDefault(),(d||g._input).focus()}}else!g.config.noCalendar&&g.daysContainer&&g.daysContainer.contains(t)&&e.shiftKey&&(e.preventDefault(),g._input.focus())}}if(void 0!==g.amPM&&t===g.amPM)switch(e.key){case g.l10n.amPM[0].charAt(0):case g.l10n.amPM[0].charAt(0).toLowerCase():g.amPM.textContent=g.l10n.amPM[0],C(),ye();break;case g.l10n.amPM[1].charAt(0):case g.l10n.amPM[1].charAt(0).toLowerCase():g.amPM.textContent=g.l10n.amPM[1],C(),ye()}(n||G(t))&&me("onKeyDown",e)}function ne(e){if(1===g.selectedDates.length&&(!e||e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled"))){for(var t=e?e.dateObj.getTime():g.days.firstElementChild.dateObj.getTime(),n=g.parseDate(g.selectedDates[0],void 0,!0).getTime(),r=Math.min(t,g.selectedDates[0].getTime()),a=Math.max(t,g.selectedDates[0].getTime()),i=!1,o=0,s=0,l=r;l<a;l+=x)X(new Date(l),!0)||(i=i||l>r&&l<a,l<n&&(!o||l>o)?o=l:l>n&&(!s||l<s)&&(s=l));for(var c=0;c<g.config.showMonths;c++)for(var u=g.daysContainer.children[c],d=function(r,a){var l,c,d,p=u.children[r],f=p.dateObj.getTime(),m=o>0&&f<o||s>0&&f>s;return m?(p.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach((function(e){p.classList.remove(e)})),"continue"):i&&!m?"continue":(["startRange","inRange","endRange","notAllowed"].forEach((function(e){p.classList.remove(e)})),void(void 0!==e&&(e.classList.add(t<=g.selectedDates[0].getTime()?"startRange":"endRange"),n<t&&f===n?p.classList.add("startRange"):n>t&&f===n&&p.classList.add("endRange"),f>=o&&(0===s||f<=s)&&(c=n,d=t,(l=f)>Math.min(c,d)&&l<Math.max(c,d))&&p.classList.add("inRange"))))},p=0,f=u.children.length;p<f;p++)d(p)}}function re(){!g.isOpen||g.config.static||g.config.inline||se()}function ae(e){return function(t){var n=g.config["_"+e+"Date"]=g.parseDate(t,g.config.dateFormat),r=g.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(g["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),g.selectedDates&&(g.selectedDates=g.selectedDates.filter((function(e){return X(e)})),g.selectedDates.length||"min"!==e||L(n),ye()),g.daysContainer&&(le(),void 0!==n?g.currentYearElement[e]=n.getFullYear().toString():g.currentYearElement.removeAttribute(e),g.currentYearElement.disabled=!!r&&void 0!==n&&r.getFullYear()===n.getFullYear())}}function ie(){return g.config.wrap?m.querySelector("[data-input]"):m}function oe(){"object"!=typeof g.config.locale&&void 0===M.l10ns[g.config.locale]&&g.config.errorHandler(new Error("flatpickr: invalid locale "+g.config.locale)),g.l10n=e(e({},M.l10ns.default),"object"==typeof g.config.locale?g.config.locale:"default"!==g.config.locale?M.l10ns[g.config.locale]:void 0),v.K="("+g.l10n.amPM[0]+"|"+g.l10n.amPM[1]+"|"+g.l10n.amPM[0].toLowerCase()+"|"+g.l10n.amPM[1].toLowerCase()+")",void 0===e(e({},_),JSON.parse(JSON.stringify(m.dataset||{}))).time_24hr&&void 0===M.defaultConfig.time_24hr&&(g.config.time_24hr=g.l10n.time_24hr),g.formatDate=y(g),g.parseDate=b({config:g.config,l10n:g.l10n})}function se(e){if(void 0!==g.calendarContainer){me("onPreCalendarPosition");var t=e||g._positionElement,n=Array.prototype.reduce.call(g.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),r=g.calendarContainer.offsetWidth,a=g.config.position.split(" "),i=a[0],o=a.length>1?a[1]:null,s=t.getBoundingClientRect(),l=window.innerHeight-s.bottom,u="above"===i||"below"!==i&&l<n&&s.top>n,d=window.pageYOffset+s.top+(u?-n-2:t.offsetHeight+2);if(c(g.calendarContainer,"arrowTop",!u),c(g.calendarContainer,"arrowBottom",u),!g.config.inline){var p=window.pageXOffset+s.left,f=!1,m=!1;"center"===o?(p-=(r-s.width)/2,f=!0):"right"===o&&(p-=r-s.width,m=!0),c(g.calendarContainer,"arrowLeft",!f&&!m),c(g.calendarContainer,"arrowCenter",f),c(g.calendarContainer,"arrowRight",m);var h=window.document.body.offsetWidth-(window.pageXOffset+s.right),_=p+r>window.document.body.offsetWidth,v=h+r>window.document.body.offsetWidth;if(c(g.calendarContainer,"rightMost",_),!g.config.static)if(g.calendarContainer.style.top=d+"px",_)if(v){var y=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];try{n.cssRules}catch(e){continue}e=n;break}return null!=e?e:(r=document.createElement("style"),document.head.appendChild(r),r.sheet);var r}();if(void 0===y)return;var b=window.document.body.offsetWidth,w=Math.max(0,b/2-r/2),x=y.cssRules.length,k="{left:"+s.left+"px;right:auto;}";c(g.calendarContainer,"rightMost",!1),c(g.calendarContainer,"centerMost",!0),y.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+k,x),g.calendarContainer.style.left=w+"px",g.calendarContainer.style.right="auto"}else g.calendarContainer.style.left="auto",g.calendarContainer.style.right=h+"px";else g.calendarContainer.style.left=p+"px",g.calendarContainer.style.right="auto"}}}function le(){g.config.noCalendar||g.isMobile||(B(),ve(),H())}function ce(){g._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(g.close,0):g.close()}function ue(e){e.preventDefault(),e.stopPropagation();var t=function e(t,n){return n(t)?t:t.parentNode?e(t.parentNode,n):void 0}(f(e),(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")}));if(void 0!==t){var n=t,r=g.latestSelectedDateObj=new Date(n.dateObj.getTime()),a=(r.getMonth()<g.currentMonth||r.getMonth()>g.currentMonth+g.config.showMonths-1)&&"range"!==g.config.mode;if(g.selectedDateElem=n,"single"===g.config.mode)g.selectedDates=[r];else if("multiple"===g.config.mode){var i=_e(r);i?g.selectedDates.splice(parseInt(i),1):g.selectedDates.push(r)}else"range"===g.config.mode&&(2===g.selectedDates.length&&g.clear(!1,!1),g.latestSelectedDateObj=r,g.selectedDates.push(r),0!==w(r,g.selectedDates[0],!0)&&g.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(C(),a){var o=g.currentYear!==r.getFullYear();g.currentYear=r.getFullYear(),g.currentMonth=r.getMonth(),o&&(me("onYearChange"),B()),me("onMonthChange")}if(ve(),H(),ye(),a||"range"===g.config.mode||1!==g.config.showMonths?void 0!==g.selectedDateElem&&void 0===g.hourElement&&g.selectedDateElem&&g.selectedDateElem.focus():N(n),void 0!==g.hourElement&&void 0!==g.hourElement&&g.hourElement.focus(),g.config.closeOnSelect){var s="single"===g.config.mode&&!g.config.enableTime,l="range"===g.config.mode&&2===g.selectedDates.length&&!g.config.enableTime;(s||l)&&ce()}A()}}g.parseDate=b({config:g.config,l10n:g.l10n}),g._handlers=[],g.pluginElements=[],g.loadedPlugins=[],g._bind=j,g._setHoursFromDate=L,g._positionCalendar=se,g.changeMonth=K,g.changeYear=Z,g.clear=function(e,t){if(void 0===e&&(e=!0),void 0===t&&(t=!0),g.input.value="",void 0!==g.altInput&&(g.altInput.value=""),void 0!==g.mobileInput&&(g.mobileInput.value=""),g.selectedDates=[],g.latestSelectedDateObj=void 0,!0===t&&(g.currentYear=g._initialDate.getFullYear(),g.currentMonth=g._initialDate.getMonth()),!0===g.config.enableTime){var n=T(),r=n.hours,a=n.minutes,i=n.seconds;E(r,a,i)}g.redraw(),e&&me("onChange")},g.close=function(){g.isOpen=!1,g.isMobile||(void 0!==g.calendarContainer&&g.calendarContainer.classList.remove("open"),void 0!==g._input&&g._input.classList.remove("active")),me("onClose")},g._createElement=u,g.destroy=function(){void 0!==g.config&&me("onDestroy");for(var e=g._handlers.length;e--;){var t=g._handlers[e];t.element.removeEventListener(t.event,t.handler,t.options)}if(g._handlers=[],g.mobileInput)g.mobileInput.parentNode&&g.mobileInput.parentNode.removeChild(g.mobileInput),g.mobileInput=void 0;else if(g.calendarContainer&&g.calendarContainer.parentNode)if(g.config.static&&g.calendarContainer.parentNode){var n=g.calendarContainer.parentNode;if(n.lastChild&&n.removeChild(n.lastChild),n.parentNode){for(;n.firstChild;)n.parentNode.insertBefore(n.firstChild,n);n.parentNode.removeChild(n)}}else g.calendarContainer.parentNode.removeChild(g.calendarContainer);g.altInput&&(g.input.type="text",g.altInput.parentNode&&g.altInput.parentNode.removeChild(g.altInput),delete g.altInput),g.input&&(g.input.type=g.input._type,g.input.classList.remove("flatpickr-input"),g.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((function(e){try{delete g[e]}catch(e){}}))},g.isEnabled=X,g.jumpToDate=P,g.open=function(e,t){if(void 0===t&&(t=g._positionElement),!0===g.isMobile){if(e){e.preventDefault();var n=f(e);n&&n.blur()}return void 0!==g.mobileInput&&(g.mobileInput.focus(),g.mobileInput.click()),void me("onOpen")}if(!g._input.disabled&&!g.config.inline){var r=g.isOpen;g.isOpen=!0,r||(g.calendarContainer.classList.add("open"),g._input.classList.add("active"),me("onOpen"),se(t)),!0===g.config.enableTime&&!0===g.config.noCalendar&&(!1!==g.config.allowInput||void 0!==e&&g.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return g.hourElement.select()}),50))}},g.redraw=le,g.set=function(e,t){if(null!==e&&"object"==typeof e)for(var r in Object.assign(g.config,e),e)void 0!==de[r]&&de[r].forEach((function(e){return e()}));else g.config[e]=t,void 0!==de[e]?de[e].forEach((function(e){return e()})):n.indexOf(e)>-1&&(g.config[e]=l(t));g.redraw(),ye(!0)},g.setDate=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=g.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return g.clear(t);pe(e,n),g.latestSelectedDateObj=g.selectedDates[g.selectedDates.length-1],g.redraw(),P(void 0,t),L(),0===g.selectedDates.length&&g.clear(!1),ye(t),t&&me("onChange")},g.toggle=function(e){if(!0===g.isOpen)return g.close();g.open(e)};var de={locale:[oe,W],showMonths:[U,D,V],minDate:[P],maxDate:[P]};function pe(e,t){var n=[];if(e instanceof Array)n=e.map((function(e){return g.parseDate(e,t)}));else if(e instanceof Date||"number"==typeof e)n=[g.parseDate(e,t)];else if("string"==typeof e)switch(g.config.mode){case"single":case"time":n=[g.parseDate(e,t)];break;case"multiple":n=e.split(g.config.conjunction).map((function(e){return g.parseDate(e,t)}));break;case"range":n=e.split(g.l10n.rangeSeparator).map((function(e){return g.parseDate(e,t)}))}else g.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));g.selectedDates=g.config.allowInvalidPreload?n:n.filter((function(e){return e instanceof Date&&X(e,!1)})),"range"===g.config.mode&&g.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function fe(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?g.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:g.parseDate(e.from,void 0),to:g.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function me(e,t){if(void 0!==g.config){var n=g.config[e];if(void 0!==n&&n.length>0)for(var r=0;n[r]&&r<n.length;r++)n[r](g.selectedDates,g.input.value,g,t);"onChange"===e&&(g.input.dispatchEvent(he("change")),g.input.dispatchEvent(he("input")))}}function he(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function _e(e){for(var t=0;t<g.selectedDates.length;t++)if(0===w(g.selectedDates[t],e))return""+t;return!1}function ve(){g.config.noCalendar||g.isMobile||!g.monthNav||(g.yearElements.forEach((function(e,t){var n=new Date(g.currentYear,g.currentMonth,1);n.setMonth(g.currentMonth+t),g.config.showMonths>1||"static"===g.config.monthSelectorType?g.monthElements[t].textContent=h(n.getMonth(),g.config.shorthandCurrentMonth,g.l10n)+" ":g.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()})),g._hidePrevMonthArrow=void 0!==g.config.minDate&&(g.currentYear===g.config.minDate.getFullYear()?g.currentMonth<=g.config.minDate.getMonth():g.currentYear<g.config.minDate.getFullYear()),g._hideNextMonthArrow=void 0!==g.config.maxDate&&(g.currentYear===g.config.maxDate.getFullYear()?g.currentMonth+1>g.config.maxDate.getMonth():g.currentYear>g.config.maxDate.getFullYear()))}function ge(e){return g.selectedDates.map((function(t){return g.formatDate(t,e)})).filter((function(e,t,n){return"range"!==g.config.mode||g.config.enableTime||n.indexOf(e)===t})).join("range"!==g.config.mode?g.config.conjunction:g.l10n.rangeSeparator)}function ye(e){void 0===e&&(e=!0),void 0!==g.mobileInput&&g.mobileFormatStr&&(g.mobileInput.value=void 0!==g.latestSelectedDateObj?g.formatDate(g.latestSelectedDateObj,g.mobileFormatStr):""),g.input.value=ge(g.config.dateFormat),void 0!==g.altInput&&(g.altInput.value=ge(g.config.altFormat)),!1!==e&&me("onValueUpdate")}function be(e){var t=f(e),n=g.prevMonthNav.contains(t),r=g.nextMonthNav.contains(t);n||r?K(n?-1:1):g.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?g.changeYear(g.currentYear+1):t.classList.contains("arrowDown")&&g.changeYear(g.currentYear-1)}return function(){g.element=g.input=m,g.isOpen=!1,function(){var t=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],a=e(e({},JSON.parse(JSON.stringify(m.dataset||{}))),_),i={};g.config.parseDate=a.parseDate,g.config.formatDate=a.formatDate,Object.defineProperty(g.config,"enable",{get:function(){return g.config._enable},set:function(e){g.config._enable=fe(e)}}),Object.defineProperty(g.config,"disable",{get:function(){return g.config._disable},set:function(e){g.config._disable=fe(e)}});var o="time"===a.mode;if(!a.dateFormat&&(a.enableTime||o)){var s=M.defaultConfig.dateFormat||r.dateFormat;i.dateFormat=a.noCalendar||o?"H:i"+(a.enableSeconds?":S":""):s+" H:i"+(a.enableSeconds?":S":"")}if(a.altInput&&(a.enableTime||o)&&!a.altFormat){var c=M.defaultConfig.altFormat||r.altFormat;i.altFormat=a.noCalendar||o?"h:i"+(a.enableSeconds?":S K":" K"):c+" h:i"+(a.enableSeconds?":S":"")+" K"}Object.defineProperty(g.config,"minDate",{get:function(){return g.config._minDate},set:ae("min")}),Object.defineProperty(g.config,"maxDate",{get:function(){return g.config._maxDate},set:ae("max")});var u=function(e){return function(t){g.config["min"===e?"_minTime":"_maxTime"]=g.parseDate(t,"H:i:S")}};Object.defineProperty(g.config,"minTime",{get:function(){return g.config._minTime},set:u("min")}),Object.defineProperty(g.config,"maxTime",{get:function(){return g.config._maxTime},set:u("max")}),"time"===a.mode&&(g.config.noCalendar=!0,g.config.enableTime=!0),Object.assign(g.config,i,a);for(var d=0;d<t.length;d++)g.config[t[d]]=!0===g.config[t[d]]||"true"===g.config[t[d]];for(n.filter((function(e){return void 0!==g.config[e]})).forEach((function(e){g.config[e]=l(g.config[e]||[]).map(k)})),g.isMobile=!g.config.disableMobile&&!g.config.inline&&"single"===g.config.mode&&!g.config.disable.length&&!g.config.enable.length&&!g.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),d=0;d<g.config.plugins.length;d++){var p=g.config.plugins[d](g)||{};for(var f in p)n.indexOf(f)>-1?g.config[f]=l(p[f]).map(k).concat(g.config[f]):void 0===a[f]&&(g.config[f]=p[f])}a.altInputClass||(g.config.altInputClass=ie().className+" "+g.config.altInputClass),me("onParseConfig")}(),oe(),g.input=ie(),g.input?(g.input._type=g.input.type,g.input.type="text",g.input.classList.add("flatpickr-input"),g._input=g.input,g.config.altInput&&(g.altInput=u(g.input.nodeName,g.config.altInputClass),g._input=g.altInput,g.altInput.placeholder=g.input.placeholder,g.altInput.disabled=g.input.disabled,g.altInput.required=g.input.required,g.altInput.tabIndex=g.input.tabIndex,g.altInput.type="text",g.input.setAttribute("type","hidden"),!g.config.static&&g.input.parentNode&&g.input.parentNode.insertBefore(g.altInput,g.input.nextSibling)),g.config.allowInput||g._input.setAttribute("readonly","readonly"),g._positionElement=g.config.positionElement||g._input):g.config.errorHandler(new Error("Invalid input element specified")),function(){g.selectedDates=[],g.now=g.parseDate(g.config.now)||new Date;var e=g.config.defaultDate||("INPUT"!==g.input.nodeName&&"TEXTAREA"!==g.input.nodeName||!g.input.placeholder||g.input.value!==g.input.placeholder?g.input.value:null);e&&pe(e,g.config.dateFormat),g._initialDate=g.selectedDates.length>0?g.selectedDates[0]:g.config.minDate&&g.config.minDate.getTime()>g.now.getTime()?g.config.minDate:g.config.maxDate&&g.config.maxDate.getTime()<g.now.getTime()?g.config.maxDate:g.now,g.currentYear=g._initialDate.getFullYear(),g.currentMonth=g._initialDate.getMonth(),g.selectedDates.length>0&&(g.latestSelectedDateObj=g.selectedDates[0]),void 0!==g.config.minTime&&(g.config.minTime=g.parseDate(g.config.minTime,"H:i")),void 0!==g.config.maxTime&&(g.config.maxTime=g.parseDate(g.config.maxTime,"H:i")),g.minDateHasTime=!!g.config.minDate&&(g.config.minDate.getHours()>0||g.config.minDate.getMinutes()>0||g.config.minDate.getSeconds()>0),g.maxDateHasTime=!!g.config.maxDate&&(g.config.maxDate.getHours()>0||g.config.maxDate.getMinutes()>0||g.config.maxDate.getSeconds()>0)}(),g.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=g.currentMonth),void 0===t&&(t=g.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:g.l10n.daysInMonth[e]}},g.isMobile||function(){var e=window.document.createDocumentFragment();if(g.calendarContainer=u("div","flatpickr-calendar"),g.calendarContainer.tabIndex=-1,!g.config.noCalendar){if(e.appendChild((g.monthNav=u("div","flatpickr-months"),g.yearElements=[],g.monthElements=[],g.prevMonthNav=u("span","flatpickr-prev-month"),g.prevMonthNav.innerHTML=g.config.prevArrow,g.nextMonthNav=u("span","flatpickr-next-month"),g.nextMonthNav.innerHTML=g.config.nextArrow,U(),Object.defineProperty(g,"_hidePrevMonthArrow",{get:function(){return g.__hidePrevMonthArrow},set:function(e){g.__hidePrevMonthArrow!==e&&(c(g.prevMonthNav,"flatpickr-disabled",e),g.__hidePrevMonthArrow=e)}}),Object.defineProperty(g,"_hideNextMonthArrow",{get:function(){return g.__hideNextMonthArrow},set:function(e){g.__hideNextMonthArrow!==e&&(c(g.nextMonthNav,"flatpickr-disabled",e),g.__hideNextMonthArrow=e)}}),g.currentYearElement=g.yearElements[0],ve(),g.monthNav)),g.innerContainer=u("div","flatpickr-innerContainer"),g.config.weekNumbers){var t=function(){g.calendarContainer.classList.add("hasWeeks");var e=u("div","flatpickr-weekwrapper");e.appendChild(u("span","flatpickr-weekday",g.l10n.weekAbbreviation));var t=u("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,r=t.weekNumbers;g.innerContainer.appendChild(n),g.weekNumbers=r,g.weekWrapper=n}g.rContainer=u("div","flatpickr-rContainer"),g.rContainer.appendChild(V()),g.daysContainer||(g.daysContainer=u("div","flatpickr-days"),g.daysContainer.tabIndex=-1),H(),g.rContainer.appendChild(g.daysContainer),g.innerContainer.appendChild(g.rContainer),e.appendChild(g.innerContainer)}g.config.enableTime&&e.appendChild(function(){g.calendarContainer.classList.add("hasTime"),g.config.noCalendar&&g.calendarContainer.classList.add("noCalendar"),g.timeContainer=u("div","flatpickr-time"),g.timeContainer.tabIndex=-1;var e=u("span","flatpickr-time-separator",":"),t=p("flatpickr-hour",{"aria-label":g.l10n.hourAriaLabel});g.hourElement=t.getElementsByTagName("input")[0];var n=p("flatpickr-minute",{"aria-label":g.l10n.minuteAriaLabel});if(g.minuteElement=n.getElementsByTagName("input")[0],g.hourElement.tabIndex=g.minuteElement.tabIndex=-1,g.hourElement.value=i(g.latestSelectedDateObj?g.latestSelectedDateObj.getHours():g.config.time_24hr?g.config.defaultHour:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(g.config.defaultHour)),g.minuteElement.value=i(g.latestSelectedDateObj?g.latestSelectedDateObj.getMinutes():g.config.defaultMinute),g.hourElement.setAttribute("step",g.config.hourIncrement.toString()),g.minuteElement.setAttribute("step",g.config.minuteIncrement.toString()),g.hourElement.setAttribute("min",g.config.time_24hr?"0":"1"),g.hourElement.setAttribute("max",g.config.time_24hr?"23":"12"),g.minuteElement.setAttribute("min","0"),g.minuteElement.setAttribute("max","59"),g.timeContainer.appendChild(t),g.timeContainer.appendChild(e),g.timeContainer.appendChild(n),g.config.time_24hr&&g.timeContainer.classList.add("time24hr"),g.config.enableSeconds){g.timeContainer.classList.add("hasSeconds");var r=p("flatpickr-second");g.secondElement=r.getElementsByTagName("input")[0],g.secondElement.value=i(g.latestSelectedDateObj?g.latestSelectedDateObj.getSeconds():g.config.defaultSeconds),g.secondElement.setAttribute("step",g.minuteElement.getAttribute("step")),g.secondElement.setAttribute("min","0"),g.secondElement.setAttribute("max","59"),g.timeContainer.appendChild(u("span","flatpickr-time-separator",":")),g.timeContainer.appendChild(r)}return g.config.time_24hr||(g.amPM=u("span","flatpickr-am-pm",g.l10n.amPM[o((g.latestSelectedDateObj?g.hourElement.value:g.config.defaultHour)>11)]),g.amPM.title=g.l10n.toggleTitle,g.amPM.tabIndex=-1,g.timeContainer.appendChild(g.amPM)),g.timeContainer}()),c(g.calendarContainer,"rangeMode","range"===g.config.mode),c(g.calendarContainer,"animate",!0===g.config.animate),c(g.calendarContainer,"multiMonth",g.config.showMonths>1),g.calendarContainer.appendChild(e);var a=void 0!==g.config.appendTo&&void 0!==g.config.appendTo.nodeType;if((g.config.inline||g.config.static)&&(g.calendarContainer.classList.add(g.config.inline?"inline":"static"),g.config.inline&&(!a&&g.element.parentNode?g.element.parentNode.insertBefore(g.calendarContainer,g._input.nextSibling):void 0!==g.config.appendTo&&g.config.appendTo.appendChild(g.calendarContainer)),g.config.static)){var s=u("div","flatpickr-wrapper");g.element.parentNode&&g.element.parentNode.insertBefore(s,g.element),s.appendChild(g.element),g.altInput&&s.appendChild(g.altInput),s.appendChild(g.calendarContainer)}g.config.static||g.config.inline||(void 0!==g.config.appendTo?g.config.appendTo:window.document.body).appendChild(g.calendarContainer)}(),function(){if(g.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(g.element.querySelectorAll("[data-"+e+"]"),(function(t){return j(t,"click",g[e])}))})),g.isMobile)!function(){var e=g.config.enableTime?g.config.noCalendar?"time":"datetime-local":"date";g.mobileInput=u("input",g.input.className+" flatpickr-mobile"),g.mobileInput.tabIndex=1,g.mobileInput.type=e,g.mobileInput.disabled=g.input.disabled,g.mobileInput.required=g.input.required,g.mobileInput.placeholder=g.input.placeholder,g.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",g.selectedDates.length>0&&(g.mobileInput.defaultValue=g.mobileInput.value=g.formatDate(g.selectedDates[0],g.mobileFormatStr)),g.config.minDate&&(g.mobileInput.min=g.formatDate(g.config.minDate,"Y-m-d")),g.config.maxDate&&(g.mobileInput.max=g.formatDate(g.config.maxDate,"Y-m-d")),g.input.getAttribute("step")&&(g.mobileInput.step=String(g.input.getAttribute("step"))),g.input.type="hidden",void 0!==g.altInput&&(g.altInput.type="hidden");try{g.input.parentNode&&g.input.parentNode.insertBefore(g.mobileInput,g.input.nextSibling)}catch(e){}j(g.mobileInput,"change",(function(e){g.setDate(f(e).value,!1,g.mobileFormatStr),me("onChange"),me("onClose")}))}();else{var e=s(re,50);g._debouncedChange=s(A,300),g.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&j(g.daysContainer,"mouseover",(function(e){"range"===g.config.mode&&ne(f(e))})),j(window.document.body,"keydown",te),g.config.inline||g.config.static||j(window,"resize",e),void 0!==window.ontouchstart?j(window.document,"touchstart",J):j(window.document,"click",J),j(window.document,"focus",J,{capture:!0}),!0===g.config.clickOpens&&(j(g._input,"focus",g.open),j(g._input,"click",g.open)),void 0!==g.daysContainer&&(j(g.monthNav,"click",be),j(g.monthNav,["keyup","increment"],O),j(g.daysContainer,"click",ue)),void 0!==g.timeContainer&&void 0!==g.minuteElement&&void 0!==g.hourElement&&(j(g.timeContainer,["increment"],S),j(g.timeContainer,"blur",S,{capture:!0}),j(g.timeContainer,"click",Y),j([g.hourElement,g.minuteElement],["focus","click"],(function(e){return f(e).select()})),void 0!==g.secondElement&&j(g.secondElement,"focus",(function(){return g.secondElement&&g.secondElement.select()})),void 0!==g.amPM&&j(g.amPM,"click",(function(e){S(e),A()}))),g.config.allowInput&&j(g._input,"blur",ee)}}(),(g.selectedDates.length||g.config.noCalendar)&&(g.config.enableTime&&L(g.config.noCalendar?g.latestSelectedDateObj||g.config.minDate:void 0),ye(!1)),D();var t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!g.isMobile&&t&&se(),me("onReady")}(),g}function D(e,t){for(var n=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),r=[],a=0;a<n.length;a++){var i=n[a];try{if(null!==i.getAttribute("data-fp-omit"))continue;void 0!==i._flatpickr&&(i._flatpickr.destroy(),i._flatpickr=void 0),i._flatpickr=k(i,t||{}),r.push(i._flatpickr)}catch(e){console.error(e)}}return 1===r.length?r[0]:r}"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var r=function(t){t&&Object.keys(t).forEach((function(n){return e[n]=t[n]}))},a=0,i=t;a<i.length;a++){var o=i[a];r(o)}return e}),"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return D(this,e)},HTMLElement.prototype.flatpickr=function(e){return D([this],e)});var M=function(e,t){return"string"==typeof e?D(window.document.querySelectorAll(e),t):e instanceof Node?D([e],t):D(e,t)};return M.defaultConfig={},M.l10ns={en:e({},a),default:e({},a)},M.localize=function(t){M.l10ns.default=e(e({},M.l10ns.default),t)},M.setDefaults=function(t){M.defaultConfig=e(e({},M.defaultConfig),t)},M.parseDate=b({}),M.formatDate=y({}),M.compareDates=w,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return D(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=M),M}()},zx6S:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var a=t.words[r];return 1===r.length?n?a[0]:a[1]:e+" "+t.correctGrammaticalCase(e,a)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))}}); |