webpackJsonp([2],{"+27R":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var i={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?i[n][0]:i[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("PJh5"))},"+7/x":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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?e:"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})})(n("PJh5"))},"+WA1":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},"+WRH":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},"/6P1":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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?i(n)[0]:r?i(n)[1]:i(n)[2]}function r(e){return e%10==0||e>10&&e<20}function i(e){return t[e].split("_")}function a(e,t,a,o){var s=e+" ";return 1===e?s+n(0,t,a[0],o):t?s+(r(e)?i(a)[1]:i(a)[0]):o?s+i(a)[1]:s+(r(e)?i(a)[1]:i(a)[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:a,m:n,mm:a,h:n,hh:a,d:n,dd:a,M:n,MM:a,y:n,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})})(n("PJh5"))},"/E8D":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},"/bsm":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},"/mhn":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},"0X8Q":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},"1C9R":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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?e:"সকাল"===t?e:"দুপুর"===t?e>=3?e:e+12:"বিকাল"===t?e+12:"সন্ধ্যা"===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("PJh5"))},"2pmY":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},"2s1U":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return i+=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 i+=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 i+=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 i+=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 i+=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 i+=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("PJh5"))},"3CJN":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},"3IRH":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}},"3K28":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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],i=/^(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:i,monthsShortRegex:i,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("PJh5"))},"3LKG":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},"3MVc":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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},i={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,n,a,o){var s=r(t),u=i[e][r(t)];return 2===s&&(u=u[n?0:1]),u.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: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,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("PJh5"))},"3hfc":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n){var r,i;return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(r=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[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("PJh5"))},"4T7g":function(e,t,n){e.exports=n.p+"static/img/style02.2175fb6.png"},"54Wl":function(e,t){},"5Omq":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},"5SNd":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},"5eDb":function(e,t,n){(function(t){!function(n){"use strict";var r=function(){},i=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},a=function(e){return function(){return e}},o=function(e){return e};function s(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}var u,l,c,d,f,m,h,p,g,_,v,y,b=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return!e.apply(null,t)}},w=a(!1),M=a(!0),k=function(){return L},L=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},i={fold:function(e,t){return e()},is:w,isSome:w,isNone:M,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:a(null),getOrUndefined:a(void 0),or:n,orThunk:t,map:k,each:r,bind:k,exists:w,forall:M,filter:k,equals:e,equals_:e,toArray:function(){return[]},toString:a("none()")};return Object.freeze&&Object.freeze(i),i}(),D=function(e){var t=a(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:M,isNone:w,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return D(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:L},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(w,function(t){return n(e,t)})}};return i},x={some:D,none:k,from:function(e){return null===e||void 0===e?L:D(e)}},A=function(e){return function(t){return function(e){if(null===e)return"null";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t}(t)===e}},C=A("string"),T=A("object"),S=A("array"),Y=A("null"),N=A("boolean"),E=A("function"),P=A("number"),I=Array.prototype.slice,O=Array.prototype.indexOf,F=Array.prototype.push,R=function(e,t){return O.call(e,t)},H=function(e,t){return R(e,t)>-1},j=function(e,t){for(var n=0,r=e.length;n<r;n++)if(t(e[n],n))return!0;return!1},B=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var a=e[i];r[i]=t(a,i)}return r},W=function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)},U=function(e,t){for(var n=[],r=[],i=0,a=e.length;i<a;i++){var o=e[i];(t(o,i)?n:r).push(o)}return{pass:n,fail:r}},z=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var a=e[r];t(a,r)&&n.push(a)}return n},J=function(e,t,n){return W(e,function(e){n=t(n,e)}),n},q=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return x.some(i)}return x.none()},V=function(e,t){for(var n=0,r=e.length;n<r;n++)if(t(e[n],n))return x.some(n);return x.none()},G=function(e,t){return function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!S(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);F.apply(t,e[n])}return t}(B(e,t))},$=function(e,t){for(var n=0,r=e.length;n<r;++n)if(!0!==t(e[n],n))return!1;return!0},K=function(e,t){return z(e,function(e){return!H(t,e)})},Q=function(e){return 0===e.length?x.none():x.some(e[0])},X=function(e){return 0===e.length?x.none():x.some(e[e.length-1])},Z=E(Array.from)?Array.from:function(e){return I.call(e)},ee=void 0!==n.window?n.window:Function("return this;")(),te=function(e,t){return function(e,t){for(var n=void 0!==t&&null!==t?t:ee,r=0;r<e.length&&void 0!==n&&null!==n;++r)n=n[e[r]];return n}(e.split("."),t)},ne={getOrDie:function(e,t){var n=function(e,t){return te(e,t)}(e,t);if(void 0===n||null===n)throw new Error(e+" not available on this browser");return n}},re=function(){return ne.getOrDie("URL")},ie={createObjectURL:function(e){return re().createObjectURL(e)},revokeObjectURL:function(e){re().revokeObjectURL(e)}},ae=n.navigator,oe=ae.userAgent,se=function(e){return"matchMedia"in n.window&&n.matchMedia(e).matches};p=/Android/.test(oe),l=(l=!(u=/WebKit/.test(oe))&&/MSIE/gi.test(oe)&&/Explorer/gi.test(ae.appName))&&/MSIE (\w+)\./.exec(oe)[1],c=-1!==oe.indexOf("Trident/")&&(-1!==oe.indexOf("rv:")||-1!==ae.appName.indexOf("Netscape"))&&11,d=-1!==oe.indexOf("Edge/")&&!l&&!c&&12,l=l||c||d,f=!u&&!c&&/Gecko/.test(oe),m=-1!==oe.indexOf("Mac"),h=/(iPad|iPhone)/.test(oe),g="FormData"in n.window&&"FileReader"in n.window&&"URL"in n.window&&!!ie.createObjectURL,_=se("only screen and (max-device-width: 480px)")&&(p||h),v=se("only screen and (min-width: 800px)")&&(p||h),y=-1!==oe.indexOf("Windows Phone"),d&&(u=!1);var ue,le={opera:!1,webkit:u,ie:l,gecko:f,mac:m,iOS:h,android:p,contentEditable:!h||g||parseInt(oe.match(/AppleWebKit\/(\d*)/)[1],10)>=534,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:8!==l,range:n.window.getSelection&&"Range"in n.window,documentMode:l&&!d?n.document.documentMode||7:10,fileApi:g,ceFalse:!1===l||l>8,cacheSuffix:null,container:null,overrideViewPort:null,experimentalShadowDom:!1,canHaveCSP:!1===l||l>11,desktop:!_&&!v,windowsPhone:y},ce=window.Promise?window.Promise:function(){function e(e,t){return function(){e.apply(t,arguments)}}var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},n=function(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],u(t,e(a,this),e(o,this))},r=n.immediateFn||"function"==typeof setImmediate&&setImmediate||function(e){setTimeout(e,1)};function i(e){var t=this;null!==this._state?r(function(){var n=t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(t){return void e.reject(t)}e.resolve(r)}else(t._state?e.resolve:e.reject)(t._value)}):this._deferreds.push(e)}function a(t){try{if(t===this)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if("function"==typeof n)return void u(e(n,t),e(a,this),e(o,this))}this._state=!0,this._value=t,s.call(this)}catch(e){o.call(this,e)}}function o(e){this._state=!1,this._value=e,s.call(this)}function s(){for(var e=0,t=this._deferreds.length;e<t;e++)i.call(this,this._deferreds[e]);this._deferreds=null}function u(e,t,n){var r=!1;try{e(function(e){r||(r=!0,t(e))},function(e){r||(r=!0,n(e))})}catch(e){if(r)return;r=!0,n(e)}}return n.prototype.catch=function(e){return this.then(null,e)},n.prototype.then=function(e,t){var r=this;return new n(function(n,a){i.call(r,new function(e,t,n,r){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r}(e,t,n,a))})},n.all=function(){var e=Array.prototype.slice.call(1===arguments.length&&t(arguments[0])?arguments[0]:arguments);return new n(function(t,n){if(0===e.length)return t([]);var r=e.length;function i(a,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){i(a,e)},n)}e[a]=o,0==--r&&t(e)}catch(e){n(e)}}for(var a=0;a<e.length;a++)i(a,e[a])})},n.resolve=function(e){return e&&"object"==typeof e&&e.constructor===n?e:new n(function(t){t(e)})},n.reject=function(e){return new n(function(t,n){n(e)})},n.race=function(e){return new n(function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)})},n}(),de=function(e,t){return"number"!=typeof t&&(t=0),setTimeout(e,t)},fe=function(e,t){return"number"!=typeof t&&(t=1),setInterval(e,t)},me=function(e,t){var n,r;return(r=function(){var r=arguments;clearTimeout(n),n=de(function(){e.apply(this,r)},t)}).stop=function(){clearTimeout(n)},r},he={requestAnimationFrame:function(e,t){ue?ue.then(e):ue=new ce(function(e){t||(t=n.document.body),function(e,t){var r,i=n.window.requestAnimationFrame,a=["ms","moz","webkit"];for(r=0;r<a.length&&!i;r++)i=n.window[a[r]+"RequestAnimationFrame"];i||(i=function(e){n.window.setTimeout(e,0)}),i(e,t)}(e,t)}).then(e)},setTimeout:de,setInterval:fe,setEditorTimeout:function(e,t,n){return de(function(){e.removed||t()},n)},setEditorInterval:function(e,t,n){var r;return r=fe(function(){e.removed?clearInterval(r):t()},n)},debounce:me,throttle:me,clearInterval:function(e){return clearInterval(e)},clearTimeout:function(e){return clearTimeout(e)}},pe=/^(?:mouse|contextmenu)|click/,ge={keyLocation:1,layerX:1,layerY:1,returnValue:1,webkitMovementX:1,webkitMovementY:1,keyIdentifier:1},_e=function(){return!1},ve=function(){return!0},ye=function(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r||!1):e.attachEvent&&e.attachEvent("on"+t,n)},be=function(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r||!1):e.detachEvent&&e.detachEvent("on"+t,n)},we=function(e,t){var r,i=t||{};for(r in e)ge[r]||(i[r]=e[r]);if(i.target||(i.target=i.srcElement||n.document),le.experimentalShadowDom&&(i.target=function(e,t){if(e.composedPath){var n=e.composedPath();if(n&&n.length>0)return n[0]}return t}(e,i.target)),e&&pe.test(e.type)&&void 0===e.pageX&&void 0!==e.clientX){var a=i.target.ownerDocument||n.document,o=a.documentElement,s=a.body;i.pageX=e.clientX+(o&&o.scrollLeft||s&&s.scrollLeft||0)-(o&&o.clientLeft||s&&s.clientLeft||0),i.pageY=e.clientY+(o&&o.scrollTop||s&&s.scrollTop||0)-(o&&o.clientTop||s&&s.clientTop||0)}return i.preventDefault=function(){i.isDefaultPrevented=ve,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},i.stopPropagation=function(){i.isPropagationStopped=ve,e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)},i.stopImmediatePropagation=function(){i.isImmediatePropagationStopped=ve,i.stopPropagation()},!1===function(e){return e.isDefaultPrevented===ve||e.isDefaultPrevented===_e}(i)&&(i.isDefaultPrevented=_e,i.isPropagationStopped=_e,i.isImmediatePropagationStopped=_e),void 0===i.metaKey&&(i.metaKey=!1),i},Me=function(e,t,n){var r=e.document,i={type:"ready"};if(n.domLoaded)t(i);else{var a=function(){return"complete"===r.readyState||"interactive"===r.readyState&&r.body},o=function(){n.domLoaded||(n.domLoaded=!0,t(i))},s=function(){a()&&(be(r,"readystatechange",s),o())},u=function(){try{r.documentElement.doScroll("left")}catch(e){return void he.setTimeout(u)}o()};!r.addEventListener||le.ie&&le.ie<11?(ye(r,"readystatechange",s),r.documentElement.doScroll&&e.self===e.top&&u()):a()?o():ye(e,"DOMContentLoaded",o),ye(e,"load",o)}},ke=function(){var e,t,r,i,a,o=this,s={};t="mce-data-"+(+new Date).toString(32),i="onmouseenter"in n.document.documentElement,r="onfocusin"in n.document.documentElement,a={mouseenter:"mouseover",mouseleave:"mouseout"},e=1,o.domLoaded=!1,o.events=s;var u=function(e,t){var n,r,i,a,o=s[t];if(n=o&&o[e.type])for(r=0,i=n.length;r<i;r++)if((a=n[r])&&!1===a.func.call(a.scope,e)&&e.preventDefault(),e.isImmediatePropagationStopped())return};o.bind=function(l,c,d,f){var m,h,p,g,_,v,y,b=n.window,w=function(e){u(we(e||b.event),m)};if(l&&3!==l.nodeType&&8!==l.nodeType){for(l[t]?m=l[t]:(m=e++,l[t]=m,s[m]={}),f=f||l,p=(c=c.split(" ")).length;p--;)v=w,_=y=!1,"DOMContentLoaded"===(g=c[p])&&(g="ready"),o.domLoaded&&"ready"===g&&"complete"===l.readyState?d.call(f,we({type:g})):(i||(_=a[g])&&(v=function(e){var t,n;if(t=e.currentTarget,(n=e.relatedTarget)&&t.contains)n=t.contains(n);else for(;n&&n!==t;)n=n.parentNode;n||((e=we(e||b.event)).type="mouseout"===e.type?"mouseleave":"mouseenter",e.target=t,u(e,m))}),r||"focusin"!==g&&"focusout"!==g||(y=!0,_="focusin"===g?"focus":"blur",v=function(e){(e=we(e||b.event)).type="focus"===e.type?"focusin":"focusout",u(e,m)}),(h=s[m][g])?"ready"===g&&o.domLoaded?d({type:g}):h.push({func:d,scope:f}):(s[m][g]=h=[{func:d,scope:f}],h.fakeName=_,h.capture=y,h.nativeHandler=v,"ready"===g?Me(l,v,o):ye(l,_||g,v,y)));return l=h=0,d}},o.unbind=function(e,n,r){var i,a,u,l,c,d;if(!e||3===e.nodeType||8===e.nodeType)return o;if(i=e[t]){if(d=s[i],n){for(u=(n=n.split(" ")).length;u--;)if(a=d[c=n[u]]){if(r)for(l=a.length;l--;)if(a[l].func===r){var f=a.nativeHandler,m=a.fakeName,h=a.capture;(a=a.slice(0,l).concat(a.slice(l+1))).nativeHandler=f,a.fakeName=m,a.capture=h,d[c]=a}r&&0!==a.length||(delete d[c],be(e,a.fakeName||c,a.nativeHandler,a.capture))}}else{for(c in d)a=d[c],be(e,a.fakeName||c,a.nativeHandler,a.capture);d={}}for(c in d)return o;delete s[i];try{delete e[t]}catch(n){e[t]=null}}return o},o.fire=function(e,n,r){var i;if(!e||3===e.nodeType||8===e.nodeType)return o;(r=we(null,r)).type=n,r.target=e;do{(i=e[t])&&u(r,i),e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow}while(e&&!r.isPropagationStopped());return o},o.clean=function(e){var n,r,i=o.unbind;if(!e||3===e.nodeType||8===e.nodeType)return o;if(e[t]&&i(e),e.getElementsByTagName||(e=e.document),e&&e.getElementsByTagName)for(i(e),n=(r=e.getElementsByTagName("*")).length;n--;)(e=r[n])[t]&&i(e);return o},o.destroy=function(){s={}},o.cancel=function(e){return e&&(e.preventDefault(),e.stopImmediatePropagation()),!1}};ke.Event=new ke,ke.Event.bind(n.window,"ready",function(){});var Le,De,xe,Ae,Ce,Te,Se,Ye,Ne,Ee,Pe,Ie,Oe,Fe,Re,He,je,Be,We="sizzle"+-new Date,Ue=n.window.document,ze=0,Je=0,qe=Dt(),Ve=Dt(),Ge=Dt(),$e=function(e,t){return e===t&&(Pe=!0),0},Ke="undefined",Qe=1<<31,Xe={}.hasOwnProperty,Ze=[],et=Ze.pop,tt=Ze.push,nt=Ze.push,rt=Ze.slice,it=Ze.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},at="[\\x20\\t\\r\\n\\f]",ot="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",st="\\["+at+"*("+ot+")(?:"+at+"*([*^$|!~]?=)"+at+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ot+"))|)"+at+"*\\]",ut=":("+ot+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+st+")*)|.*)\\)|)",lt=new RegExp("^"+at+"+|((?:^|[^\\\\])(?:\\\\.)*)"+at+"+$","g"),ct=new RegExp("^"+at+"*,"+at+"*"),dt=new RegExp("^"+at+"*([>+~]|"+at+")"+at+"*"),ft=new RegExp("="+at+"*([^\\]'\"]*?)"+at+"*\\]","g"),mt=new RegExp(ut),ht=new RegExp("^"+ot+"$"),pt={ID:new RegExp("^#("+ot+")"),CLASS:new RegExp("^\\.("+ot+")"),TAG:new RegExp("^("+ot+"|[*])"),ATTR:new RegExp("^"+st),PSEUDO:new RegExp("^"+ut),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+at+"*(even|odd|(([+-]|)(\\d*)n|)"+at+"*(?:([+-]|)"+at+"*(\\d+)|))"+at+"*\\)|)","i"),bool:new RegExp("^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$","i"),needsContext:new RegExp("^"+at+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+at+"*((?:-\\d)?\\d*)"+at+"*\\)|)(?=[^-]|$)","i")},gt=/^(?:input|select|textarea|button)$/i,_t=/^h\d$/i,vt=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,bt=/[+~]/,wt=/'|\\/g,Mt=new RegExp("\\\\([\\da-f]{1,6}"+at+"?|("+at+")|.)","ig"),kt=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{nt.apply(Ze=rt.call(Ue.childNodes),Ue.childNodes),Ze[Ue.childNodes.length].nodeType}catch(e){nt={apply:Ze.length?function(e,t){tt.apply(e,rt.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}var Lt=function(e,t,n,r){var i,a,o,s,u,l,c,d,f,m;if((t?t.ownerDocument||t:Ue)!==Oe&&Ie(t),t=t||Oe,n=n||[],!e||"string"!=typeof e)return n;if(1!==(s=t.nodeType)&&9!==s)return[];if(Re&&!r){if(i=yt.exec(e))if(o=i[1]){if(9===s){if(!(a=t.getElementById(o))||!a.parentNode)return n;if(a.id===o)return n.push(a),n}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(o))&&Be(t,a)&&a.id===o)return n.push(a),n}else{if(i[2])return nt.apply(n,t.getElementsByTagName(e)),n;if((o=i[3])&&De.getElementsByClassName)return nt.apply(n,t.getElementsByClassName(o)),n}if(De.qsa&&(!He||!He.test(e))){if(d=c=We,f=t,m=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(l=Te(e),(c=t.getAttribute("id"))?d=c.replace(wt,"\\$&"):t.setAttribute("id",d),d="[id='"+d+"'] ",u=l.length;u--;)l[u]=d+Et(l[u]);f=bt.test(e)&&Yt(t.parentNode)||t,m=l.join(",")}if(m)try{return nt.apply(n,f.querySelectorAll(m)),n}catch(e){}finally{c||t.removeAttribute("id")}}}return Ye(e.replace(lt,"$1"),t,n,r)};function Dt(){var e=[];return function t(n,r){return e.push(n+" ")>xe.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function xt(e){return e[We]=!0,e}function At(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||Qe)-(~e.sourceIndex||Qe);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function Ct(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function Tt(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function St(e){return xt(function(t){return t=+t,xt(function(n,r){for(var i,a=e([],n.length,t),o=a.length;o--;)n[i=a[o]]&&(n[i]=!(r[i]=n[i]))})})}function Yt(e){return e&&typeof e.getElementsByTagName!==Ke&&e}for(Le in De=Lt.support={},Ce=Lt.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},Ie=Lt.setDocument=function(e){var t,n=e?e.ownerDocument||e:Ue,r=n.defaultView;return n!==Oe&&9===n.nodeType&&n.documentElement?(Oe=n,Fe=n.documentElement,Re=!Ce(n),r&&r!==function(e){try{return e.top}catch(e){}return null}(r)&&(r.addEventListener?r.addEventListener("unload",function(){Ie()},!1):r.attachEvent&&r.attachEvent("onunload",function(){Ie()})),De.attributes=!0,De.getElementsByTagName=!0,De.getElementsByClassName=vt.test(n.getElementsByClassName),De.getById=!0,xe.find.ID=function(e,t){if(typeof t.getElementById!==Ke&&Re){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},xe.filter.ID=function(e){var t=e.replace(Mt,kt);return function(e){return e.getAttribute("id")===t}},xe.find.TAG=De.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==Ke)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],i=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[i++];)1===n.nodeType&&r.push(n);return r}return a},xe.find.CLASS=De.getElementsByClassName&&function(e,t){if(Re)return t.getElementsByClassName(e)},je=[],He=[],De.disconnectedMatch=!0,He=He.length&&new RegExp(He.join("|")),je=je.length&&new RegExp(je.join("|")),t=vt.test(Fe.compareDocumentPosition),Be=t||vt.test(Fe.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},$e=t?function(e,t){if(e===t)return Pe=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!De.sortDetached&&t.compareDocumentPosition(e)===r?e===n||e.ownerDocument===Ue&&Be(Ue,e)?-1:t===n||t.ownerDocument===Ue&&Be(Ue,t)?1:Ee?it.call(Ee,e)-it.call(Ee,t):0:4&r?-1:1)}:function(e,t){if(e===t)return Pe=!0,0;var r,i=0,a=e.parentNode,o=t.parentNode,s=[e],u=[t];if(!a||!o)return e===n?-1:t===n?1:a?-1:o?1:Ee?it.call(Ee,e)-it.call(Ee,t):0;if(a===o)return At(e,t);for(r=e;r=r.parentNode;)s.unshift(r);for(r=t;r=r.parentNode;)u.unshift(r);for(;s[i]===u[i];)i++;return i?At(s[i],u[i]):s[i]===Ue?-1:u[i]===Ue?1:0},n):Oe},Lt.matches=function(e,t){return Lt(e,null,null,t)},Lt.matchesSelector=function(e,t){if((e.ownerDocument||e)!==Oe&&Ie(e),t=t.replace(ft,"='$1']"),De.matchesSelector&&Re&&(!je||!je.test(t))&&(!He||!He.test(t)))try{var n=(void 0).call(e,t);if(n||De.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return Lt(t,Oe,null,[e]).length>0},Lt.contains=function(e,t){return(e.ownerDocument||e)!==Oe&&Ie(e),Be(e,t)},Lt.attr=function(e,t){(e.ownerDocument||e)!==Oe&&Ie(e);var n=xe.attrHandle[t.toLowerCase()],r=n&&Xe.call(xe.attrHandle,t.toLowerCase())?n(e,t,!Re):void 0;return void 0!==r?r:De.attributes||!Re?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},Lt.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},Lt.uniqueSort=function(e){var t,n=[],r=0,i=0;if(Pe=!De.detectDuplicates,Ee=!De.sortStable&&e.slice(0),e.sort($e),Pe){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return Ee=null,e},Ae=Lt.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+=Ae(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=Ae(t);return n},(xe=Lt.selectors={cacheLength:50,createPseudo:xt,match:pt,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(Mt,kt),e[3]=(e[3]||e[4]||e[5]||"").replace(Mt,kt),"~="===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]||Lt.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]&&Lt.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return pt.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&mt.test(n)&&(t=Te(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(Mt,kt).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=qe[e+" "];return t||(t=new RegExp("(^|"+at+")"+e+"("+at+"|$)"))&&qe(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==Ke&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=Lt.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var a="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,d,f,m,h,p=a!==o?"nextSibling":"previousSibling",g=t.parentNode,_=s&&t.nodeName.toLowerCase(),v=!u&&!s;if(g){if(a){for(;p;){for(d=t;d=d[p];)if(s?d.nodeName.toLowerCase()===_:1===d.nodeType)return!1;h=p="only"===e&&!h&&"nextSibling"}return!0}if(h=[o?g.firstChild:g.lastChild],o&&v){for(m=(l=(c=g[We]||(g[We]={}))[e]||[])[0]===ze&&l[1],f=l[0]===ze&&l[2],d=m&&g.childNodes[m];d=++m&&d&&d[p]||(f=m=0)||h.pop();)if(1===d.nodeType&&++f&&d===t){c[e]=[ze,m,f];break}}else if(v&&(l=(t[We]||(t[We]={}))[e])&&l[0]===ze)f=l[1];else for(;(d=++m&&d&&d[p]||(f=m=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==_:1!==d.nodeType)||!++f||(v&&((d[We]||(d[We]={}))[e]=[ze,f]),d!==t)););return(f-=i)===r||f%r==0&&f/r>=0}}},PSEUDO:function(e,t){var n,r=xe.pseudos[e]||xe.setFilters[e.toLowerCase()]||Lt.error("unsupported pseudo: "+e);return r[We]?r(t):r.length>1?(n=[e,e,"",t],xe.setFilters.hasOwnProperty(e.toLowerCase())?xt(function(e,n){for(var i,a=r(e,t),o=a.length;o--;)e[i=it.call(e,a[o])]=!(n[i]=a[o])}):function(e){return r(e,0,n)}):r}},pseudos:{not:xt(function(e){var t=[],n=[],r=Se(e.replace(lt,"$1"));return r[We]?xt(function(e,t,n,i){for(var a,o=r(e,null,i,[]),s=e.length;s--;)(a=o[s])&&(e[s]=!(t[s]=a))}):function(e,i,a){return t[0]=e,r(t,null,a,n),!n.pop()}}),has:xt(function(e){return function(t){return Lt(e,t).length>0}}),contains:xt(function(e){return e=e.replace(Mt,kt),function(t){return(t.textContent||t.innerText||Ae(t)).indexOf(e)>-1}}),lang:xt(function(e){return ht.test(e||"")||Lt.error("unsupported lang: "+e),e=e.replace(Mt,kt).toLowerCase(),function(t){var n;do{if(n=Re?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(e){var t=n.window.location&&n.window.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===Fe},focus:function(e){return e===Oe.activeElement&&(!Oe.hasFocus||Oe.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!xe.pseudos.empty(e)},header:function(e){return _t.test(e.nodeName)},input:function(e){return gt.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:St(function(){return[0]}),last:St(function(e,t){return[t-1]}),eq:St(function(e,t,n){return[n<0?n+t:n]}),even:St(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:St(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:St(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:St(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=xe.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})xe.pseudos[Le]=Ct(Le);for(Le in{submit:!0,reset:!0})xe.pseudos[Le]=Tt(Le);function Nt(){}function Et(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function Pt(e,t,n){var r=t.dir,i=n&&"parentNode"===r,a=Je++;return t.first?function(t,n,a){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,a)}:function(t,n,o){var s,u,l=[ze,a];if(o){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,o))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if((s=(u=t[We]||(t[We]={}))[r])&&s[0]===ze&&s[1]===a)return l[2]=s[2];if(u[r]=l,l[2]=e(t,n,o))return!0}}}function It(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function Ot(e,t,n,r,i){for(var a,o=[],s=0,u=e.length,l=null!=t;s<u;s++)(a=e[s])&&(n&&!n(a,r,i)||(o.push(a),l&&t.push(s)));return o}function Ft(e,t,n,r,i,a){return r&&!r[We]&&(r=Ft(r)),i&&!i[We]&&(i=Ft(i,a)),xt(function(a,o,s,u){var l,c,d,f=[],m=[],h=o.length,p=a||function(e,t,n){for(var r=0,i=t.length;r<i;r++)Lt(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),g=!e||!a&&t?p:Ot(p,f,e,s,u),_=n?i||(a?e:h||r)?[]:o:g;if(n&&n(g,_,s,u),r)for(l=Ot(_,m),r(l,[],s,u),c=l.length;c--;)(d=l[c])&&(_[m[c]]=!(g[m[c]]=d));if(a){if(i||e){if(i){for(l=[],c=_.length;c--;)(d=_[c])&&l.push(g[c]=d);i(null,_=[],l,u)}for(c=_.length;c--;)(d=_[c])&&(l=i?it.call(a,d):f[c])>-1&&(a[l]=!(o[l]=d))}}else _=Ot(_===o?_.splice(h,_.length):_),i?i(null,o,_,u):nt.apply(o,_)})}function Rt(e){for(var t,n,r,i=e.length,a=xe.relative[e[0].type],o=a||xe.relative[" "],s=a?1:0,u=Pt(function(e){return e===t},o,!0),l=Pt(function(e){return it.call(t,e)>-1},o,!0),c=[function(e,n,r){return!a&&(r||n!==Ne)||((t=n).nodeType?u(e,n,r):l(e,n,r))}];s<i;s++)if(n=xe.relative[e[s].type])c=[Pt(It(c),n)];else{if((n=xe.filter[e[s].type].apply(null,e[s].matches))[We]){for(r=++s;r<i&&!xe.relative[e[r].type];r++);return Ft(s>1&&It(c),s>1&&Et(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(lt,"$1"),n,s<r&&Rt(e.slice(s,r)),r<i&&Rt(e=e.slice(r)),r<i&&Et(e))}c.push(n)}return It(c)}Nt.prototype=xe.filters=xe.pseudos,xe.setFilters=new Nt,Te=Lt.tokenize=function(e,t){var n,r,i,a,o,s,u,l=Ve[e+" "];if(l)return t?0:l.slice(0);for(o=e,s=[],u=xe.preFilter;o;){for(a in n&&!(r=ct.exec(o))||(r&&(o=o.slice(r[0].length)||o),s.push(i=[])),n=!1,(r=dt.exec(o))&&(n=r.shift(),i.push({value:n,type:r[0].replace(lt," ")}),o=o.slice(n.length)),xe.filter)!(r=pt[a].exec(o))||u[a]&&!(r=u[a](r))||(n=r.shift(),i.push({value:n,type:a,matches:r}),o=o.slice(n.length));if(!n)break}return t?o.length:o?Lt.error(e):Ve(e,s).slice(0)},Se=Lt.compile=function(e,t){var n,r=[],i=[],a=Ge[e+" "];if(!a){for(t||(t=Te(e)),n=t.length;n--;)(a=Rt(t[n]))[We]?r.push(a):i.push(a);(a=Ge(e,function(e,t){var n=t.length>0,r=e.length>0,i=function(i,a,o,s,u){var l,c,d,f=0,m="0",h=i&&[],p=[],g=Ne,_=i||r&&xe.find.TAG("*",u),v=ze+=null==g?1:Math.random()||.1,y=_.length;for(u&&(Ne=a!==Oe&&a);m!==y&&null!=(l=_[m]);m++){if(r&&l){for(c=0;d=e[c++];)if(d(l,a,o)){s.push(l);break}u&&(ze=v)}n&&((l=!d&&l)&&f--,i&&h.push(l))}if(f+=m,n&&m!==f){for(c=0;d=t[c++];)d(h,p,a,o);if(i){if(f>0)for(;m--;)h[m]||p[m]||(p[m]=et.call(s));p=Ot(p)}nt.apply(s,p),u&&!i&&p.length>0&&f+t.length>1&&Lt.uniqueSort(s)}return u&&(ze=v,Ne=g),h};return n?xt(i):i}(i,r))).selector=e}return a},Ye=Lt.select=function(e,t,n,r){var i,a,o,s,u,l="function"==typeof e&&e,c=!r&&Te(e=l.selector||e);if(n=n||[],1===c.length){if((a=c[0]=c[0].slice(0)).length>2&&"ID"===(o=a[0]).type&&De.getById&&9===t.nodeType&&Re&&xe.relative[a[1].type]){if(!(t=(xe.find.ID(o.matches[0].replace(Mt,kt),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(a.shift().value.length)}for(i=pt.needsContext.test(e)?0:a.length;i--&&(o=a[i],!xe.relative[s=o.type]);)if((u=xe.find[s])&&(r=u(o.matches[0].replace(Mt,kt),bt.test(a[0].type)&&Yt(t.parentNode)||t))){if(a.splice(i,1),!(e=r.length&&Et(a)))return nt.apply(n,r),n;break}}return(l||Se(e,c))(r,t,!Re,n,bt.test(e)&&Yt(t.parentNode)||t),n},De.sortStable=We.split("").sort($e).join("")===We,De.detectDuplicates=!!Pe,Ie(),De.sortDetached=!0;var Ht=Array.isArray,jt=function(e,t,n){var r,i;if(!e)return 0;if(n=n||e,void 0!==e.length){for(r=0,i=e.length;r<i;r++)if(!1===t.call(n,e[r],r,e))return 0}else for(r in e)if(e.hasOwnProperty(r)&&!1===t.call(n,e[r],r,e))return 0;return 1},Bt=function(e,t,n){var r,i;for(r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return r;return-1},Wt={isArray:Ht,toArray:function(e){var t,n,r=e;if(!Ht(e))for(r=[],t=0,n=e.length;t<n;t++)r[t]=e[t];return r},each:jt,map:function(e,t){var n=[];return jt(e,function(r,i){n.push(t(r,i,e))}),n},filter:function(e,t){var n=[];return jt(e,function(r,i){t&&!t(r,i,e)||n.push(r)}),n},indexOf:function(e,t){var n,r;if(e)for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},reduce:function(e,t,n,r){var i=0;for(arguments.length<3&&(n=e[0]);i<e.length;i++)n=t.call(r,n,e[i],i);return n},findIndex:Bt,find:function(e,t,n){var r=Bt(e,t,n);if(-1!==r)return e[r]},last:function(e){return e[e.length-1]}},Ut=/^\s*|\s*$/g,zt=function(e){return null===e||void 0===e?"":(""+e).replace(Ut,"")},Jt=function(e,t){return t?!("array"!==t||!Wt.isArray(e))||typeof e===t:void 0!==e},qt=function(e,t,n,r){r=r||this,e&&(n&&(e=e[n]),Wt.each(e,function(e,i){if(!1===t.call(r,e,i,n))return!1;qt(e,t,n,r)}))},Vt={trim:zt,isArray:Wt.isArray,is:Jt,toArray:Wt.toArray,makeMap:function(e,t,n){var r;for(e=e||[],t=t||",","string"==typeof e&&(e=e.split(t)),n=n||{},r=e.length;r--;)n[e[r]]={};return n},each:Wt.each,map:Wt.map,grep:Wt.filter,inArray:Wt.indexOf,hasOwn:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},extend:function(e,t){for(var n,r,i,a=[],o=2;o<arguments.length;o++)a[o-2]=arguments[o];var s,u=arguments;for(n=1,r=u.length;n<r;n++)for(i in t=u[n])t.hasOwnProperty(i)&&void 0!==(s=t[i])&&(e[i]=s);return e},create:function(e,t,n){var r,i,a,o,s,u=0;if(e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e),a=e[3].match(/(^|\.)(\w+)$/i)[2],!(i=this.createNS(e[3].replace(/\.\w+$/,""),n))[a]){if("static"===e[2])return i[a]=t,void(this.onCreate&&this.onCreate(e[2],e[3],i[a]));t[a]||(t[a]=function(){},u=1),i[a]=t[a],this.extend(i[a].prototype,t),e[5]&&(r=this.resolve(e[5]).prototype,o=e[5].match(/\.(\w+)$/i)[1],s=i[a],i[a]=u?function(){return r[o].apply(this,arguments)}:function(){return this.parent=r[o],s.apply(this,arguments)},i[a].prototype[a]=i[a],this.each(r,function(e,t){i[a].prototype[t]=r[t]}),this.each(t,function(e,t){r[t]?i[a].prototype[t]=function(){return this.parent=r[t],e.apply(this,arguments)}:t!==a&&(i[a].prototype[t]=e)})),this.each(t.static,function(e,t){i[a][t]=e})}},walk:qt,createNS:function(e,t){var r,i;for(t=t||n.window,e=e.split("."),r=0;r<e.length;r++)t[i=e[r]]||(t[i]={}),t=t[i];return t},resolve:function(e,t){var r,i;for(t=t||n.window,r=0,i=(e=e.split(".")).length;r<i&&(t=t[e[r]]);r++);return t},explode:function(e,t){return!e||Jt(e,"array")?e:Wt.map(e.split(t||","),zt)},_addCacheSuffix:function(e){var t=le.cacheSuffix;return t&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e}},Gt=n.document,$t=Array.prototype.push,Kt=Array.prototype.slice,Qt=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,Xt=ke.Event,Zt=Vt.makeMap("children,contents,next,prev"),en=function(e){return void 0!==e},tn=function(e){return"string"==typeof e},nn=function(e,t){var n,r,i;for(i=(t=t||Gt).createElement("div"),n=t.createDocumentFragment(),i.innerHTML=e;r=i.firstChild;)n.appendChild(r);return n},rn=function(e,t,n,r){var i;if(tn(t))t=nn(t,vn(e[0]));else if(t.length&&!t.nodeType){if(t=mn.makeArray(t),r)for(i=t.length-1;i>=0;i--)rn(e,t[i],n,r);else for(i=0;i<t.length;i++)rn(e,t[i],n,r);return e}if(t.nodeType)for(i=e.length;i--;)n.call(e[i],t);return e},an=function(e,t){return e&&t&&-1!==(" "+e.className+" ").indexOf(" "+t+" ")},on=function(e,t,n){var r,i;return t=mn(t)[0],e.each(function(){n&&r===this.parentNode?i.appendChild(this):(r=this.parentNode,i=t.cloneNode(!1),this.parentNode.insertBefore(i,this),i.appendChild(this))}),e},sn=Vt.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),un=Vt.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),ln={for:"htmlFor",class:"className",readonly:"readOnly"},cn={float:"cssFloat"},dn={},fn={},mn=function(e,t){return new mn.fn.init(e,t)},hn=/^\s*|\s*$/g,pn=function(e){return null===e||void 0===e?"":(""+e).replace(hn,"")},gn=function(e,t){var n,r,i,a;if(e)if(void 0===(n=e.length)){for(r in e)if(e.hasOwnProperty(r)&&(a=e[r],!1===t.call(a,r,a)))break}else for(i=0;i<n&&(a=e[i],!1!==t.call(a,i,a));i++);return e},_n=function(e,t){var n=[];return gn(e,function(e,r){t(r,e)&&n.push(r)}),n},vn=function(e){return e?9===e.nodeType?e:e.ownerDocument:Gt};mn.fn=mn.prototype={constructor:mn,selector:"",context:null,length:0,init:function(e,t){var r,i;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if(t&&t.nodeType)this.context=t;else{if(t)return mn(e).attr(t);this.context=t=n.document}if(tn(e)){if(this.selector=e,!(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:Qt.exec(e)))return mn(t).find(e);if(r[1])for(i=nn(e,vn(t)).firstChild;i;)$t.call(this,i),i=i.nextSibling;else{if(!(i=vn(t).getElementById(r[2])))return this;if(i.id!==r[2])return this.find(e);this.length=1,this[0]=i}}else this.add(e,!1);return this},toArray:function(){return Vt.toArray(this)},add:function(e,t){var n,r;if(tn(e))return this.add(mn(e));if(!1!==t)for(n=mn.unique(this.toArray().concat(mn.makeArray(e))),this.length=n.length,r=0;r<n.length;r++)this[r]=n[r];else $t.apply(this,mn.makeArray(e));return this},attr:function(e,t){var n,r=this;if("object"==typeof e)gn(e,function(e,t){r.attr(e,t)});else{if(!en(t)){if(r[0]&&1===r[0].nodeType){if((n=dn[e])&&n.get)return n.get(r[0],e);if(un[e])return r.prop(e)?e:void 0;null===(t=r[0].getAttribute(e,2))&&(t=void 0)}return t}this.each(function(){var n;if(1===this.nodeType){if((n=dn[e])&&n.set)return void n.set(this,t);null===t?this.removeAttribute(e,2):this.setAttribute(e,t,2)}})}return r},removeAttr:function(e){return this.attr(e,null)},prop:function(e,t){var n=this;if("object"==typeof(e=ln[e]||e))gn(e,function(e,t){n.prop(e,t)});else{if(!en(t))return n[0]&&n[0].nodeType&&e in n[0]?n[0][e]:t;this.each(function(){1===this.nodeType&&(this[e]=t)})}return n},css:function(e,t){var n,r,i=this,a=function(e){return e.replace(/-(\D)/g,function(e,t){return t.toUpperCase()})},o=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e})};if("object"==typeof e)gn(e,function(e,t){i.css(e,t)});else if(en(t))e=a(e),"number"!=typeof t||sn[e]||(t=t.toString()+"px"),i.each(function(){var n=this.style;if((r=fn[e])&&r.set)r.set(this,t);else{try{this.style[cn[e]||e]=t}catch(e){}null!==t&&""!==t||(n.removeProperty?n.removeProperty(o(e)):n.removeAttribute(e))}});else{if(n=i[0],(r=fn[e])&&r.get)return r.get(n);if(!n.ownerDocument.defaultView)return n.currentStyle?n.currentStyle[a(e)]:"";try{return n.ownerDocument.defaultView.getComputedStyle(n,null).getPropertyValue(o(e))}catch(e){return}}return i},remove:function(){for(var e,t=this.length;t--;)e=this[t],Xt.clean(e),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var e,t=this.length;t--;)for(e=this[t];e.firstChild;)e.removeChild(e.firstChild);return this},html:function(e){var t;if(en(e)){t=this.length;try{for(;t--;)this[t].innerHTML=e}catch(n){mn(this[t]).empty().append(e)}return this}return this[0]?this[0].innerHTML:""},text:function(e){var t;if(en(e)){for(t=this.length;t--;)"innerText"in this[t]?this[t].innerText=e:this[0].textContent=e;return this}return this[0]?this[0].innerText||this[0].textContent:""},append:function(){return rn(this,arguments,function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(e)})},prepend:function(){return rn(this,arguments,function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.insertBefore(e,this.firstChild)},!0)},before:function(){return this[0]&&this[0].parentNode?rn(this,arguments,function(e){this.parentNode.insertBefore(e,this)}):this},after:function(){return this[0]&&this[0].parentNode?rn(this,arguments,function(e){this.parentNode.insertBefore(e,this.nextSibling)},!0):this},appendTo:function(e){return mn(e).append(this),this},prependTo:function(e){return mn(e).prepend(this),this},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){return on(this,e)},wrapAll:function(e){return on(this,e,!0)},wrapInner:function(e){return this.each(function(){mn(this).contents().wrapAll(e)}),this},unwrap:function(){return this.parent().each(function(){mn(this).replaceWith(this.childNodes)})},clone:function(){var e=[];return this.each(function(){e.push(this.cloneNode(!0))}),mn(e)},addClass:function(e){return this.toggleClass(e,!0)},removeClass:function(e){return this.toggleClass(e,!1)},toggleClass:function(e,t){var n=this;return"string"!=typeof e?n:(-1!==e.indexOf(" ")?gn(e.split(" "),function(){n.toggleClass(this,t)}):n.each(function(n,r){var i,a;(a=an(r,e))!==t&&(i=r.className,a?r.className=pn((" "+i+" ").replace(" "+e+" "," ")):r.className+=i?" "+e:e)}),n)},hasClass:function(e){return an(this[0],e)},each:function(e){return gn(this,e)},on:function(e,t){return this.each(function(){Xt.bind(this,e,t)})},off:function(e,t){return this.each(function(){Xt.unbind(this,e,t)})},trigger:function(e){return this.each(function(){"object"==typeof e?Xt.fire(this,e.type,e):Xt.fire(this,e)})},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return new mn(Kt.apply(this,arguments))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(e){var t,n,r=[];for(t=0,n=this.length;t<n;t++)mn.find(e,this[t],r);return mn(r)},filter:function(e){return mn("function"==typeof e?_n(this.toArray(),function(t,n){return e(n,t)}):mn.filter(e,this.toArray()))},closest:function(e){var t=[];return e instanceof mn&&(e=e[0]),this.each(function(n,r){for(;r;){if("string"==typeof e&&mn(r).is(e)){t.push(r);break}if(r===e){t.push(r);break}r=r.parentNode}}),mn(t)},offset:function(e){var t,n,r,i,a=0,o=0;return e?this.css(e):((t=this[0])&&(r=(n=t.ownerDocument).documentElement,t.getBoundingClientRect&&(a=(i=t.getBoundingClientRect()).left+(r.scrollLeft||n.body.scrollLeft)-r.clientLeft,o=i.top+(r.scrollTop||n.body.scrollTop)-r.clientTop)),{left:a,top:o})},push:$t,sort:[].sort,splice:[].splice},Vt.extend(mn,{extend:Vt.extend,makeArray:function(e){return(t=e)&&t===t.window||e.nodeType?[e]:Vt.toArray(e);var t},inArray:function(e,t){var n;if(t.indexOf)return t.indexOf(e);for(n=t.length;n--;)if(t[n]===e)return n;return-1},isArray:Vt.isArray,each:gn,trim:pn,grep:_n,find:Lt,expr:Lt.selectors,unique:Lt.uniqueSort,text:Lt.getText,contains:Lt.contains,filter:function(e,t,n){var r=t.length;for(n&&(e=":not("+e+")");r--;)1!==t[r].nodeType&&t.splice(r,1);return t=1===t.length?mn.find.matchesSelector(t[0],e)?[t[0]]:[]:mn.find.matches(e,t)}});var yn=function(e,t,n){var r=[],i=e[t];for("string"!=typeof n&&n instanceof mn&&(n=n[0]);i&&9!==i.nodeType;){if(void 0!==n){if(i===n)break;if("string"==typeof n&&mn(i).is(n))break}1===i.nodeType&&r.push(i),i=i[t]}return r},bn=function(e,t,n,r){var i=[];for(r instanceof mn&&(r=r[0]);e;e=e[t])if(!n||e.nodeType===n){if(void 0!==r){if(e===r)break;if("string"==typeof r&&mn(e).is(r))break}i.push(e)}return i},wn=function(e,t,n){for(e=e[t];e;e=e[t])if(e.nodeType===n)return e;return null};gn({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return yn(e,"parentNode")},next:function(e){return wn(e,"nextSibling",1)},prev:function(e){return wn(e,"previousSibling",1)},children:function(e){return bn(e.firstChild,"nextSibling",1)},contents:function(e){return Vt.toArray(("iframe"===e.nodeName?e.contentDocument||e.contentWindow.document:e).childNodes)}},function(e,t){mn.fn[e]=function(n){var r=[];return this.each(function(){var e=t.call(r,this,n,r);e&&(mn.isArray(e)?r.push.apply(r,e):r.push(e))}),this.length>1&&(Zt[e]||(r=mn.unique(r)),0===e.indexOf("parents")&&(r=r.reverse())),r=mn(r),n?r.filter(n):r}}),gn({parentsUntil:function(e,t){return yn(e,"parentNode",t)},nextUntil:function(e,t){return bn(e,"nextSibling",1,t).slice(1)},prevUntil:function(e,t){return bn(e,"previousSibling",1,t).slice(1)}},function(e,t){mn.fn[e]=function(n,r){var i=[];return this.each(function(){var e=t.call(i,this,n,i);e&&(mn.isArray(e)?i.push.apply(i,e):i.push(e))}),this.length>1&&(i=mn.unique(i),0!==e.indexOf("parents")&&"prevUntil"!==e||(i=i.reverse())),i=mn(i),r?i.filter(r):i}}),mn.fn.is=function(e){return!!e&&this.filter(e).length>0},mn.fn.init.prototype=mn.fn,mn.overrideDefaults=function(e){var t,n=function(r,i){return t=t||e(),0===arguments.length&&(r=t.element),i||(i=t.context),new n.fn.init(r,i)};return mn.extend(n,this),n};var Mn=function(e,t,n){gn(n,function(n,r){e[n]=e[n]||{},e[n][t]=r})};le.ie&&le.ie<8&&(Mn(dn,"get",{maxlength:function(e){var t=e.maxLength;if(2147483647!==t)return t},size:function(e){var t=e.size;if(20!==t)return t},class:function(e){return e.className},style:function(e){var t=e.style.cssText;if(0!==t.length)return t}}),Mn(dn,"set",{class:function(e,t){e.className=t},style:function(e,t){e.style.cssText=t}})),le.ie&&le.ie<9&&(cn.float="styleFloat",Mn(fn,"set",{opacity:function(e,t){var n=e.style;null===t||""===t?n.removeAttribute("filter"):(n.zoom=1,n.filter="alpha(opacity="+100*t+")")}})),mn.attrHooks=dn,mn.cssHooks=fn;var kn,Ln,Dn,xn=function(){return An(0,0)},An=function(e,t){return{major:e,minor:t}},Cn={nu:An,detect:function(e,t){var n=String(t).toLowerCase();return 0===e.length?xn():function(e,t){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}}(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return An(r(1),r(2))}(e,n)},unknown:xn},Tn=function(e,t){return function(){return t===e}},Sn=function(e){var t=e.current;return{current:t,version:e.version,isEdge:Tn("Edge",t),isChrome:Tn("Chrome",t),isIE:Tn("IE",t),isOpera:Tn("Opera",t),isFirefox:Tn("Firefox",t),isSafari:Tn("Safari",t)}},Yn={unknown:function(){return Sn({current:void 0,version:Cn.unknown()})},nu:Sn,edge:a("Edge"),chrome:a("Chrome"),ie:a("IE"),opera:a("Opera"),firefox:a("Firefox"),safari:a("Safari")},Nn=function(e,t){return function(){return t===e}},En=function(e){var t=e.current;return{current:t,version:e.version,isWindows:Nn("Windows",t),isiOS:Nn("iOS",t),isAndroid:Nn("Android",t),isOSX:Nn("OSX",t),isLinux:Nn("Linux",t),isSolaris:Nn("Solaris",t),isFreeBSD:Nn("FreeBSD",t)}},Pn={unknown:function(){return En({current:void 0,version:Cn.unknown()})},nu:En,windows:a("Windows"),ios:a("iOS"),android:a("Android"),linux:a("Linux"),osx:a("OSX"),solaris:a("Solaris"),freebsd:a("FreeBSD")},In=function(e,t){var n=String(t).toLowerCase();return q(e,function(e){return e.search(n)})},On=function(e,t){return In(e,t).map(function(e){var n=Cn.detect(e.versionRegexes,t);return{current:e.name,version:n}})},Fn=function(e,t){return In(e,t).map(function(e){var n=Cn.detect(e.versionRegexes,t);return{current:e.name,version:n}})},Rn=function(e,t){return-1!==e.indexOf(t)},Hn=function(e){return e.replace(/^\s+|\s+$/g,"")},jn=function(e){return e.replace(/\s+$/g,"")},Bn=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Wn=function(e){return function(t){return Rn(t,e)}},Un=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return Rn(e,"edge/")&&Rn(e,"chrome")&&Rn(e,"safari")&&Rn(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Bn],search:function(e){return Rn(e,"chrome")&&!Rn(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return Rn(e,"msie")||Rn(e,"trident")}},{name:"Opera",versionRegexes:[Bn,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Wn("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Wn("firefox")},{name:"Safari",versionRegexes:[Bn,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(Rn(e,"safari")||Rn(e,"mobile/"))&&Rn(e,"applewebkit")}}],zn=[{name:"Windows",search:Wn("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return Rn(e,"iphone")||Rn(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Wn("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Wn("os x"),versionRegexes:[/.*?os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Wn("linux"),versionRegexes:[]},{name:"Solaris",search:Wn("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Wn("freebsd"),versionRegexes:[]}],Jn={browsers:a(Un),oses:a(zn)},qn=function(e){var t=Jn.browsers(),n=Jn.oses(),r=On(t,e).fold(Yn.unknown,Yn.nu),i=Fn(n,e).fold(Pn.unknown,Pn.nu);return{browser:r,os:i,deviceType:function(e,t,n){var r=e.isiOS()&&!0===/ipad/i.test(n),i=e.isiOS()&&!r,o=e.isAndroid()&&3===e.version.major,s=e.isAndroid()&&4===e.version.major,u=r||o||s&&!0===/mobile/i.test(n),l=e.isiOS()||e.isAndroid(),c=l&&!u,d=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n);return{isiPad:a(r),isiPhone:a(i),isTablet:a(u),isPhone:a(c),isTouch:a(l),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:a(d)}}(i,r,e)}},Vn={detect:(kn=function(){var e=n.navigator.userAgent;return qn(e)},Dn=!1,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Dn||(Dn=!0,Ln=kn.apply(null,e)),Ln})},Gn=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:a(e)}},$n={fromHtml:function(e,t){var r=(t||n.document).createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw n.console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Gn(r.childNodes[0])},fromTag:function(e,t){var r=(t||n.document).createElement(e);return Gn(r)},fromText:function(e,t){var r=(t||n.document).createTextNode(e);return Gn(r)},fromDom:Gn,fromPoint:function(e,t,n){var r=e.dom();return x.from(r.elementFromPoint(t,n)).map(Gn)}},Kn=(n.Node.ATTRIBUTE_NODE,n.Node.CDATA_SECTION_NODE,n.Node.COMMENT_NODE,n.Node.DOCUMENT_NODE),Qn=(n.Node.DOCUMENT_TYPE_NODE,n.Node.DOCUMENT_FRAGMENT_NODE,n.Node.ELEMENT_NODE),Xn=n.Node.TEXT_NODE,Zn=(n.Node.PROCESSING_INSTRUCTION_NODE,n.Node.ENTITY_REFERENCE_NODE,n.Node.ENTITY_NODE,n.Node.NOTATION_NODE,function(e){return e.dom().nodeName.toLowerCase()}),er=function(e){return function(t){return function(e){return e.dom().nodeType}(t)===e}},tr=er(Qn),nr=er(Xn),rr=Object.keys,ir=Object.hasOwnProperty,ar=function(e,t){for(var n=rr(e),r=0,i=n.length;r<i;r++){var a=n[r];t(e[a],a)}},or=function(e,t){return sr(e,function(e,n){return{k:n,v:t(e,n)}})},sr=function(e,t){var n={};return ar(e,function(e,r){var i=t(e,r);n[i.k]=i.v}),n},ur=function(e,t){var n={},r={};return ar(e,function(e,i){(t(e,i)?n:r)[i]=e}),{t:n,f:r}},lr=function(e,t){return ir.call(e,t)},cr=function(e){return void 0!==e.style&&E(e.style.getPropertyValue)},dr=function(e,t,r){if(!(C(r)||N(r)||P(r)))throw n.console.error("Invalid call to Attr.set. Key ",t,":: Value ",r,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,r+"")},fr=function(e,t,n){dr(e.dom(),t,n)},mr=function(e,t){var n=e.dom();ar(t,function(e,t){dr(n,t,e)})},hr=function(e,t){var n=e.dom().getAttribute(t);return null===n?void 0:n},pr=function(e,t){e.dom().removeAttribute(t)},gr=function(e,t){var r=e.dom();ar(t,function(e,t){!function(e,t,r){if(!C(r))throw n.console.error("Invalid call to CSS.set. Property ",t,":: Value ",r,":: Element ",e),new Error("CSS value must be a string: "+r);cr(e)&&e.style.setProperty(t,r)}(r,t,e)})},_r=function(e,t){var r=e.dom(),i=n.window.getComputedStyle(r).getPropertyValue(t),a=""!==i||function(e){var t=nr(e)?e.dom().parentNode:e.dom();return void 0!==t&&null!==t&&t.ownerDocument.body.contains(t)}(e)?i:vr(r,t);return null===a?void 0:a},vr=function(e,t){return cr(e)?e.style.getPropertyValue(t):""},yr=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e.length!==t.length)throw new Error('Wrong number of arguments to struct. Expected "['+e.length+']", got '+t.length+" arguments");var r={};return W(e,function(e,n){r[e]=a(t[n])}),r}},br=function(e,t){var n=[],r=function(e){return n.push(e),t(e)},i=t(e);do{i=i.bind(r)}while(i.isSome());return n},wr=function(){return ne.getOrDie("Node")},Mr=function(e,t,n){return 0!=(e.compareDocumentPosition(t)&n)},kr=function(e,t){return Mr(e,t,wr().DOCUMENT_POSITION_CONTAINED_BY)},Lr=Qn,Dr=Kn,xr=function(e,t){var n=e.dom();if(n.nodeType!==Lr)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Ar=function(e){return e.nodeType!==Lr&&e.nodeType!==Dr||0===e.childElementCount},Cr=function(e,t){return e.dom()===t.dom()},Tr=Vn.detect().browser.isIE()?function(e,t){return kr(e.dom(),t.dom())}:function(e,t){var n=e.dom(),r=t.dom();return n!==r&&n.contains(r)},Sr=function(e){return $n.fromDom(e.dom().ownerDocument)},Yr=function(e){return $n.fromDom(e.dom().ownerDocument.defaultView)},Nr=function(e){return x.from(e.dom().parentNode).map($n.fromDom)},Er=function(e){return x.from(e.dom().previousSibling).map($n.fromDom)},Pr=function(e){return x.from(e.dom().nextSibling).map($n.fromDom)},Ir=function(e){return t=br(e,Er),(n=I.call(t,0)).reverse(),n;var t,n},Or=function(e){return br(e,Pr)},Fr=function(e){return B(e.dom().childNodes,$n.fromDom)},Rr=function(e,t){var n=e.dom().childNodes;return x.from(n[t]).map($n.fromDom)},Hr=function(e){return Rr(e,0)},jr=function(e){return Rr(e,e.dom().childNodes.length-1)},Br=(yr("element","offset"),Vn.detect().browser),Wr=function(e){return q(e,tr)},Ur={getPos:function(e,t,n){var r,i,a=0,o=0,s=e.ownerDocument;if(n=n||e,t){if(n===e&&t.getBoundingClientRect&&"static"===_r($n.fromDom(e),"position"))return{x:a=(i=t.getBoundingClientRect()).left+(s.documentElement.scrollLeft||e.scrollLeft)-s.documentElement.clientLeft,y:o=i.top+(s.documentElement.scrollTop||e.scrollTop)-s.documentElement.clientTop};for(r=t;r&&r!==n&&r.nodeType;)a+=r.offsetLeft||0,o+=r.offsetTop||0,r=r.offsetParent;for(r=t.parentNode;r&&r!==n&&r.nodeType;)a-=r.scrollLeft||0,o-=r.scrollTop||0,r=r.parentNode;o+=function(e){return Br.isFirefox()&&"table"===Zn(e)?Wr(Fr(e)).filter(function(e){return"caption"===Zn(e)}).bind(function(e){return Wr(Or(e)).map(function(t){var n=t.dom().offsetTop,r=e.dom().offsetTop,i=e.dom().offsetHeight;return n<=r?-i:0})}).getOr(0):0}($n.fromDom(t))}return{x:a,y:o}}},zr={},Jr={exports:zr};!function(e,n,r,i){!function(i){"object"==typeof n&&void 0!==r?r.exports=i():"function"==typeof e&&e.amd?e([],i):("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this).EphoxContactWrapper=i()}(function(){return function e(t,n,r){function a(s,u){if(!n[s]){if(!t[s]){var l="function"==typeof i&&i;if(!u&&l)return l(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var d=n[s]={exports:{}};t[s][0].call(d.exports,function(e){return a(t[s][1][e]||e)},d,d.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof i&&i,s=0;s<r.length;s++)a(r[s]);return a}({1:[function(e,t,n){var r,i,a=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var l,c=[],d=!1,f=-1;function m(){d&&l&&(d=!1,l.length?c=l.concat(c):f=-1,c.length&&h())}function h(){if(!d){var e=u(m);d=!0;for(var t=c.length;t;){for(l=c,c=[];++f<t;)l&&l[f].run();f=-1,t=c.length}l=null,d=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function g(){}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 p(e,t)),1!==c.length||d||u(h)},p.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=g,a.addListener=g,a.once=g,a.off=g,a.removeListener=g,a.removeAllListeners=g,a.emit=g,a.prependListener=g,a.prependOnceListener=g,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}},{}],2:[function(e,t,n){(function(e){!function(n){var r=setTimeout;function i(){}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=[],c(e,this)}function o(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 u(t.promise,e)}s(t.promise,r)}else(1===e._state?s:u)(t.promise,e._value)})):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void l(e);if("function"==typeof n)return void c((r=n,i=t,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=t,l(e)}catch(t){u(e,t)}var r,i}function u(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++)o(e,e._deferreds[t]);e._deferreds=null}function c(e,t){var n=!1;try{e(function(e){n||(n=!0,s(t,e))},function(e){n||(n=!0,u(t,e))})}catch(e){if(n)return;n=!0,u(t,e)}}a.prototype.catch=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return o(this,new function(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}(e,t,n)),n},a.all=function(e){var t=Array.prototype.slice.call(e);return new a(function(e,n){if(0===t.length)return e([]);var r=t.length;function i(a,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){i(a,e)},n)}t[a]=o,0==--r&&e(t)}catch(e){n(e)}}for(var a=0;a<t.length;a++)i(a,t[a])})},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,i=e.length;r<i;r++)e[r].then(t,n)})},a._immediateFn="function"==typeof e?function(t){e(t)}:function(e){r(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!==t&&t.exports?t.exports=a:n.Promise||(n.Promise=a)}(this)}).call(this,e("timers").setImmediate)},{timers:3}],3:[function(e,t,n){(function(t,r){var i=e("process/browser.js").nextTick,a=Function.prototype.apply,o=Array.prototype.slice,s={},u=0;function l(e,t){this._id=e,this._clearFn=t}n.setTimeout=function(){return new l(a.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new l(a.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},l.prototype.unref=l.prototype.ref=function(){},l.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n.setImmediate="function"==typeof t?t:function(e){var t=u++,r=!(arguments.length<2)&&o.call(arguments,1);return s[t]=!0,i(function(){s[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))}),t},n.clearImmediate="function"==typeof r?r:function(e){delete s[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(e,t,n){var r=e("promise-polyfill"),i="undefined"!=typeof window?window:Function("return this;")();t.exports={boltExport:i.Promise||r}},{"promise-polyfill":2}]},{},[4])(4)})}(void 0,zr,Jr,void 0);var qr=Jr.exports.boltExport,Vr=function(e){var t=x.none(),r=[],i=function(e){a()?s(e):r.push(e)},a=function(){return t.isSome()},o=function(e){W(e,s)},s=function(e){t.each(function(t){n.setTimeout(function(){e(t)},0)})};return e(function(e){t=x.some(e),o(r),r=[]}),{get:i,map:function(e){return Vr(function(t){i(function(n){t(e(n))})})},isReady:a}},Gr={nu:Vr,pure:function(e){return Vr(function(t){t(e)})}},$r=function(e){n.setTimeout(function(){throw e},0)},Kr=function(e){var t=function(t){e().then(t,$r)};return{map:function(t){return Kr(function(){return e().then(t)})},bind:function(t){return Kr(function(){return e().then(function(e){return t(e).toPromise()})})},anonBind:function(t){return Kr(function(){return e().then(function(){return t.toPromise()})})},toLazy:function(){return Gr.nu(t)},toCached:function(){var t=null;return Kr(function(){return null===t&&(t=e()),t})},toPromise:e,get:t}},Qr={nu:function(e){return Kr(function(){return new qr(e)})},pure:function(e){return Kr(function(){return qr.resolve(e)})}},Xr=function(e,t){return t(function(t){var n=[],r=0;0===e.length?t([]):W(e,function(i,a){i.get(function(i){return function(a){n[i]=a,++r>=e.length&&t(n)}}(a))})})},Zr=function(e){return Xr(e,Qr.nu)},ei=function(e){return{is:function(t){return e===t},isValue:M,isError:w,getOr:a(e),getOrThunk:a(e),getOrDie:a(e),or:function(t){return ei(e)},orThunk:function(t){return ei(e)},fold:function(t,n){return n(e)},map:function(t){return ei(t(e))},mapError:function(t){return ei(e)},each:function(t){t(e)},bind:function(t){return t(e)},exists:function(t){return t(e)},forall:function(t){return t(e)},toOption:function(){return x.some(e)}}},ti=function(e){return{is:w,isValue:w,isError:M,getOr:o,getOrThunk:function(e){return e()},getOrDie:function(){return(t=String(e),function(){throw new Error(t)})();var t},or:function(e){return e},orThunk:function(e){return e()},fold:function(t,n){return t(e)},map:function(t){return ti(e)},mapError:function(t){return ti(t(e))},each:r,bind:function(t){return ti(e)},exists:w,forall:M,toOption:x.none}},ni={value:ei,error:ti,fromOption:function(e,t){return e.fold(function(){return ti(t)},ei)}};function ri(e,t){var n=e,r=function(e,n,r,i){var a,o;if(e){if(!i&&e[n])return e[n];if(e!==t){if(a=e[r])return a;for(o=e.parentNode;o&&o!==t;o=o.parentNode)if(a=o[r])return a}}};this.current=function(){return n},this.next=function(e){return n=r(n,"firstChild","nextSibling",e)},this.prev=function(e){return n=r(n,"lastChild","previousSibling",e)},this.prev2=function(e){return n=function(e,n,r,i){var a,o,s;if(e){if(a=e[r],t&&a===t)return;if(a){if(!i)for(s=a[n];s;s=s[n])if(!s[n])return s;return a}if((o=e.parentNode)&&o!==t)return o}}(n,"lastChild","previousSibling",e)}}var ii,ai,oi,si=function(e){var t;return function(n){return(t=t||function(e,t){for(var n={},r=0,i=e.length;r<i;r++){var a=e[r];n[String(a)]=t(a,r)}return n}(e,a(!0))).hasOwnProperty(Zn(n))}},ui=si(["h1","h2","h3","h4","h5","h6"]),li=si(["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"]),ci=function(e){return tr(e)&&!li(e)},di=function(e){return tr(e)&&"br"===Zn(e)},fi=si(["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"]),mi=si(["ul","ol","dl"]),hi=si(["li","dd","dt"]),pi=si(["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param","embed","source","wbr","track"]),gi=si(["thead","tbody","tfoot"]),_i=si(["td","th"]),vi=si(["pre","script","textarea","style"]),yi=function(e){return function(t){return!!t&&t.nodeType===e}},bi=yi(1),wi=function(e){var t=e.toLowerCase().split(" ");return function(e){var n,r;if(e&&e.nodeType)for(r=e.nodeName.toLowerCase(),n=0;n<t.length;n++)if(r===t[n])return!0;return!1}},Mi=function(e){return function(t){if(bi(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}},ki=yi(3),Li=yi(8),Di=yi(9),xi=yi(11),Ai=wi("br"),Ci=Mi("true"),Ti=Mi("false"),Si={isText:ki,isElement:bi,isComment:Li,isDocument:Di,isDocumentFragment:xi,isBr:Ai,isContentEditableTrue:Ci,isContentEditableFalse:Ti,isRestrictedNode:function(e){return!!e&&!Object.getPrototypeOf(e)},matchNodeNames:wi,hasPropValue:function(e,t){return function(n){return bi(n)&&n[e]===t}},hasAttribute:function(e,t){return function(t){return bi(t)&&t.hasAttribute(e)}},hasAttributeValue:function(e,t){return function(n){return bi(n)&&n.getAttribute(e)===t}},matchStyleValues:function(e,t){var n=t.toLowerCase().split(" ");return function(t){var r;if(bi(t))for(r=0;r<n.length;r++){var i=t.ownerDocument.defaultView.getComputedStyle(t,null);if((i?i.getPropertyValue(e):null)===n[r])return!0}return!1}},isBogus:function(e){return bi(e)&&e.hasAttribute("data-mce-bogus")},isBogusAll:function(e){return bi(e)&&"all"===e.getAttribute("data-mce-bogus")},isTable:function(e){return bi(e)&&"TABLE"===e.tagName}},Yi=function(e){return e&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},Ni=function(e,t){var n,r=t.childNodes;if(!Si.isElement(t)||!Yi(t)){for(n=r.length-1;n>=0;n--)Ni(e,r[n]);if(!1===Si.isDocument(t)){if(Si.isText(t)&&t.nodeValue.length>0){var i=Vt.trim(t.nodeValue).length;if(e.isBlock(t.parentNode)||i>0)return;if(0===i&&function(e){var t=e.previousSibling&&"SPAN"===e.previousSibling.nodeName,n=e.nextSibling&&"SPAN"===e.nextSibling.nodeName;return t&&n}(t))return}else if(Si.isElement(t)&&(1===(r=t.childNodes).length&&Yi(r[0])&&t.parentNode.insertBefore(r[0],t),r.length||pi($n.fromDom(t))))return;e.remove(t)}return t}},Ei={trimNode:Ni},Pi=Vt.makeMap,Ii=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Oi=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Fi=/[<>&\"\']/g,Ri=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,Hi={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};ai={'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;","&":"&amp;","`":"&#96;"},oi={"&lt;":"<","&gt;":">","&amp;":"&","&quot;":'"',"&apos;":"'"};var ji=function(e,t){var n,r,i,a={};if(e){for(e=e.split(","),t=t||10,n=0;n<e.length;n+=2)r=String.fromCharCode(parseInt(e[n],t)),ai[r]||(i="&"+e[n+1]+";",a[r]=i,a[i]=r);return a}};ii=ji("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);var Bi=function(e,t){return e.replace(t?Ii:Oi,function(e){return ai[e]||e})},Wi=function(e,t){return e.replace(t?Ii:Oi,function(e){return e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":ai[e]||"&#"+e.charCodeAt(0)+";"})},Ui=function(e,t,n){return n=n||ii,e.replace(t?Ii:Oi,function(e){return ai[e]||n[e]||e})},zi={encodeRaw:Bi,encodeAllRaw:function(e){return(""+e).replace(Fi,function(e){return ai[e]||e})},encodeNumeric:Wi,encodeNamed:Ui,getEncodeFunc:function(e,t){var n=ji(t)||ii,r=Pi(e.replace(/\+/g,","));return r.named&&r.numeric?function(e,t){return e.replace(t?Ii:Oi,function(e){return void 0!==ai[e]?ai[e]:void 0!==n[e]?n[e]:e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":"&#"+e.charCodeAt(0)+";"})}:r.named?t?function(e,t){return Ui(e,t,n)}:Ui:r.numeric?Wi:Bi},decode:function(e){return e.replace(Ri,function(e,t){return t?(t="x"===t.charAt(0).toLowerCase()?parseInt(t.substr(1),16):parseInt(t,10))>65535?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):Hi[t]||String.fromCharCode(t):oi[e]||ii[e]||(n=e,(r=$n.fromTag("div").dom()).innerHTML=n,r.textContent||r.innerText||n);var n,r})}},Ji={},qi={},Vi=Vt.makeMap,Gi=Vt.each,$i=Vt.extend,Ki=Vt.explode,Qi=Vt.inArray,Xi=function(e,t){return(e=Vt.trim(e))?e.split(t||" "):[]},Zi=function(e){var t,n,r,i,a,o,s={},u=function(e,n,r){var i,a,o,u=function(e,t){var n,r,i={};for(n=0,r=e.length;n<r;n++)i[e[n]]=t||{};return i};for(r=r||[],n=n||"","string"==typeof r&&(r=Xi(r)),i=(e=Xi(e)).length;i--;)o={attributes:u(a=Xi([t,n].join(" "))),attributesOrder:a,children:u(r,qi)},s[e[i]]=o},l=function(e,t){var n,r,i,a;for(n=(e=Xi(e)).length,t=Xi(t);n--;)for(r=s[e[n]],i=0,a=t.length;i<a;i++)r.attributes[t[i]]={},r.attributesOrder.push(t[i])};return Ji[e]?Ji[e]:(t="id accesskey class dir lang style tabindex title role",n="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",r="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment","html4"!==e&&(t+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",n+=" article aside details dialog figure main header footer hgroup section nav",r+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),"html5-strict"!==e&&(t+=" xml:lang",r=[r,o="acronym applet basefont big font strike tt"].join(" "),Gi(Xi(o),function(e){u(e,"",r)}),n=[n,a="center dir isindex noframes"].join(" "),i=[n,r].join(" "),Gi(Xi(a),function(e){u(e,"",i)})),i=i||[n,r].join(" "),u("html","manifest","head body"),u("head","","base command link meta noscript script style title"),u("title hr noscript br"),u("base","href target"),u("link","href rel media hreflang type sizes hreflang"),u("meta","name http-equiv content charset"),u("style","media type scoped"),u("script","src async defer type charset"),u("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",i),u("address dt dd div caption","",i),u("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",r),u("blockquote","cite",i),u("ol","reversed start type","li"),u("ul","","li"),u("li","value",i),u("dl","","dt dd"),u("a","href target rel media hreflang type",r),u("q","cite",r),u("ins del","cite datetime",i),u("img","src sizes srcset alt usemap ismap width height"),u("iframe","src name width height",i),u("embed","src type width height"),u("object","data type typemustmatch name usemap form width height",[i,"param"].join(" ")),u("param","name value"),u("map","name",[i,"area"].join(" ")),u("area","alt coords shape href target rel media hreflang type"),u("table","border","caption colgroup thead tfoot tbody tr"+("html4"===e?" col":"")),u("colgroup","span","col"),u("col","span"),u("tbody thead tfoot","","tr"),u("tr","","td th"),u("td","colspan rowspan headers",i),u("th","colspan rowspan headers scope abbr",i),u("form","accept-charset action autocomplete enctype method name novalidate target",i),u("fieldset","disabled form name",[i,"legend"].join(" ")),u("label","form for",r),u("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),u("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===e?i:r),u("select","disabled form multiple name required size","option optgroup"),u("optgroup","disabled label","option"),u("option","disabled label selected value"),u("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),u("menu","type label",[i,"li"].join(" ")),u("noscript","",i),"html4"!==e&&(u("wbr"),u("ruby","",[r,"rt rp"].join(" ")),u("figcaption","",i),u("mark rt rp summary bdi","",r),u("canvas","width height",i),u("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[i,"track source"].join(" ")),u("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[i,"track source"].join(" ")),u("picture","","img source"),u("source","src srcset type media sizes"),u("track","kind src srclang label default"),u("datalist","",[r,"option"].join(" ")),u("article section nav aside main header footer","",i),u("hgroup","","h1 h2 h3 h4 h5 h6"),u("figure","",[i,"figcaption"].join(" ")),u("time","datetime",r),u("dialog","open",i),u("command","type label icon disabled checked radiogroup command"),u("output","for form name",r),u("progress","value max",r),u("meter","value min max low high optimum",r),u("details","open",[i,"summary"].join(" ")),u("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!==e&&(l("script","language xml:space"),l("style","xml:space"),l("object","declare classid code codebase codetype archive standby align border hspace vspace"),l("embed","align name hspace vspace"),l("param","valuetype type"),l("a","charset name rev shape coords"),l("br","clear"),l("applet","codebase archive code object alt name width height align hspace vspace"),l("img","name longdesc align border hspace vspace"),l("iframe","longdesc frameborder marginwidth marginheight scrolling align"),l("font basefont","size color face"),l("input","usemap align"),l("select","onchange"),l("textarea"),l("h1 h2 h3 h4 h5 h6 div p legend caption","align"),l("ul","type compact"),l("li","type"),l("ol dl menu dir","compact"),l("pre","width xml:space"),l("hr","align noshade size width"),l("isindex","prompt"),l("table","summary width frame rules cellspacing cellpadding align bgcolor"),l("col","width align char charoff valign"),l("colgroup","width align char charoff valign"),l("thead","align char charoff valign"),l("tr","align char charoff valign bgcolor"),l("th","axis align char charoff valign nowrap bgcolor width height"),l("form","accept"),l("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),l("tfoot","align char charoff valign"),l("tbody","align char charoff valign"),l("area","nohref"),l("body","background bgcolor text link vlink alink")),"html4"!==e&&(l("input button select textarea","autofocus"),l("input textarea","placeholder"),l("a","download"),l("link script img","crossorigin"),l("iframe","sandbox seamless allowfullscreen")),Gi(Xi("a form meter progress dfn"),function(e){s[e]&&delete s[e].children[e]}),delete s.caption.children.table,delete s.script,Ji[e]=s,s)},ea=function(e,t){var n;return e&&(n={},"string"==typeof e&&(e={"*":e}),Gi(e,function(e,r){n[r]=n[r.toUpperCase()]="map"===t?Vi(e,/[, ]/):Ki(e,/[, ]/)})),n};function ta(e){var t,n,r,i,a,o,s,u,l,c,d,f,m,h={},p={},g=[],_={},v={},y=function(t,n,r){var i=e[t];return i?i=Vi(i,/[, ]/,Vi(i.toUpperCase(),/[, ]/)):(i=Ji[t])||(i=Vi(n," ",Vi(n.toUpperCase()," ")),i=$i(i,r),Ji[t]=i),i};r=Zi((e=e||{}).schema),!1===e.verify_html&&(e.valid_elements="*[*]"),t=ea(e.valid_styles),n=ea(e.invalid_styles,"map"),u=ea(e.valid_classes,"map"),i=y("whitespace_elements","pre script noscript style textarea video audio iframe object code"),a=y("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),o=y("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),s=y("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),c=y("non_empty_elements","td th iframe video audio object script pre code",o),d=y("move_caret_before_on_enter_elements","table",c),f=y("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),l=y("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary",f),m=y("text_inline_elements","span strong b em i font strike u var cite dfn code mark q sup sub samp"),Gi((e.special||"script noscript iframe noframes noembed title style textarea xmp").split(" "),function(e){v[e]=new RegExp("</"+e+"[^>]*>","gi")});var b=function(e){return new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$")},w=function(e){var t,n,r,i,a,o,s,u,l,c,d,f,m,p,_,v,y,w,M,k=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)\])?$/,L=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,D=/[*?+]/;if(e)for(e=Xi(e,","),h["@"]&&(v=h["@"].attributes,y=h["@"].attributesOrder),t=0,n=e.length;t<n;t++)if(a=k.exec(e[t])){if(p=a[1],l=a[2],_=a[3],u=a[5],o={attributes:f={},attributesOrder:m=[]},"#"===p&&(o.paddEmpty=!0),"-"===p&&(o.removeEmpty=!0),"!"===a[4]&&(o.removeEmptyAttrs=!0),v){for(w in v)f[w]=v[w];m.push.apply(m,y)}if(u)for(r=0,i=(u=Xi(u,"|")).length;r<i;r++)if(a=L.exec(u[r])){if(s={},d=a[1],c=a[2].replace(/[\\:]:/g,":"),p=a[3],M=a[4],"!"===d&&(o.attributesRequired=o.attributesRequired||[],o.attributesRequired.push(c),s.required=!0),"-"===d){delete f[c],m.splice(Qi(m,c),1);continue}p&&("="===p&&(o.attributesDefault=o.attributesDefault||[],o.attributesDefault.push({name:c,value:M}),s.defaultValue=M),":"===p&&(o.attributesForced=o.attributesForced||[],o.attributesForced.push({name:c,value:M}),s.forcedValue=M),"<"===p&&(s.validValues=Vi(M,"?"))),D.test(c)?(o.attributePatterns=o.attributePatterns||[],s.pattern=b(c),o.attributePatterns.push(s)):(f[c]||m.push(c),f[c]=s)}v||"@"!==l||(v=f,y=m),_&&(o.outputName=l,h[_]=o),D.test(l)?(o.pattern=b(l),g.push(o)):h[l]=o}},M=function(e){h={},g=[],w(e),Gi(r,function(e,t){p[t]=e.children})},k=function(e){var t=/^(~)?(.+)$/;e&&(Ji.text_block_elements=Ji.block_elements=null,Gi(Xi(e,","),function(e){var n=t.exec(e),r="~"===n[1],i=r?"span":"div",a=n[2];if(p[a]=p[i],_[a]=i,r||(l[a.toUpperCase()]={},l[a]={}),!h[a]){var o=h[i];delete(o=$i({},o)).removeEmptyAttrs,delete o.removeEmpty,h[a]=o}Gi(p,function(e,t){e[i]&&(p[t]=e=$i({},p[t]),e[a]=e[i])})}))},L=function(t){var n=/^([+\-]?)(\w+)\[([^\]]+)\]$/;Ji[e.schema]=null,t&&Gi(Xi(t,","),function(e){var t,r,i=n.exec(e);i&&(r=i[1],t=r?p[i[2]]:p[i[2]]={"#comment":{}},t=p[i[2]],Gi(Xi(i[3],"|"),function(e){"-"===r?delete t[e]:t[e]={}}))})},D=function(e){var t,n=h[e];if(n)return n;for(t=g.length;t--;)if((n=g[t]).pattern.test(e))return n};return e.valid_elements?M(e.valid_elements):(Gi(r,function(e,t){h[t]={attributes:e.attributes,attributesOrder:e.attributesOrder},p[t]=e.children}),"html5"!==e.schema&&Gi(Xi("strong/b em/i"),function(e){e=Xi(e,"/"),h[e[1]].outputName=e[0]}),Gi(Xi("ol ul sub sup blockquote span font a table tbody tr strong em b i"),function(e){h[e]&&(h[e].removeEmpty=!0)}),Gi(Xi("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),function(e){h[e].paddEmpty=!0}),Gi(Xi("span"),function(e){h[e].removeEmptyAttrs=!0})),k(e.custom_elements),L(e.valid_children),w(e.extended_valid_elements),L("+ol[ul|ol],+ul[ul|ol]"),Gi({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},function(e,t){h[t]&&(h[t].parentsRequired=Xi(e))}),e.invalid_elements&&Gi(Ki(e.invalid_elements),function(e){h[e]&&delete h[e]}),D("span")||w("span[!data-mce-type|*]"),{children:p,elements:h,getValidStyles:function(){return t},getValidClasses:function(){return u},getBlockElements:function(){return l},getInvalidStyles:function(){return n},getShortEndedElements:function(){return o},getTextBlockElements:function(){return f},getTextInlineElements:function(){return m},getBoolAttrs:function(){return s},getElementRule:D,getSelfClosingElements:function(){return a},getNonEmptyElements:function(){return c},getMoveCaretBeforeOnEnterElements:function(){return d},getWhiteSpaceElements:function(){return i},getSpecialElements:function(){return v},isValidChild:function(e,t){var n=p[e.toLowerCase()];return!(!n||!n[t.toLowerCase()])},isValid:function(e,t){var n,r,i=D(e);if(i){if(!t)return!0;if(i.attributes[t])return!0;if(n=i.attributePatterns)for(r=n.length;r--;)if(n[r].pattern.test(e))return!0}return!1},getCustomElements:function(){return _},addValidElements:w,setValidElements:M,addCustomElements:k,addValidChildren:L}}var na=function(e,t,n,r){var i=function(e){return(e=parseInt(e,10).toString(16)).length>1?e:"0"+e};return"#"+i(t)+i(n)+i(r)};function ra(e,t){var n,r,i,a,o=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,s=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,u=/\s*([^:]+):\s*([^;]+);?/g,l=/\s+$/,c={};for(e=e||{},t&&(i=t.getValidStyles(),a=t.getInvalidStyles()),r="\\\" \\' \\; \\: ; : \ufeff".split(" "),n=0;n<r.length;n++)c[r[n]]="\ufeff"+n,c["\ufeff"+n]=r[n];return{toHex:function(e){return e.replace(o,na)},parse:function(t){var r,i,a,d,f,m,h,p,g={},_=e.url_converter,v=e.url_converter_scope||this,y=function(e,t,r){var i,a,o,s;if((i=g[e+"-top"+t])&&(a=g[e+"-right"+t])&&(o=g[e+"-bottom"+t])&&(s=g[e+"-left"+t])){var u=[i,a,o,s];for(n=u.length-1;n--&&u[n]===u[n+1];);n>-1&&r||(g[e+t]=-1===n?u[0]:u.join(" "),delete g[e+"-top"+t],delete g[e+"-right"+t],delete g[e+"-bottom"+t],delete g[e+"-left"+t])}},b=function(e){var t,n=g[e];if(n){for(t=(n=n.split(" ")).length;t--;)if(n[t]!==n[0])return!1;return g[e]=n[0],!0}},w=function(e){return d=!0,c[e]},M=function(e,t){return d&&(e=e.replace(/\uFEFF[0-9]/g,function(e){return c[e]})),t||(e=e.replace(/\\([\'\";:])/g,"$1")),e},k=function(e){return String.fromCharCode(parseInt(e.slice(1),16))},L=function(e){return e.replace(/\\[0-9a-f]+/gi,k)},D=function(t,n,r,i,a,o){if(a=a||o)return"'"+(a=M(a)).replace(/\'/g,"\\'")+"'";if(n=M(n||r||i),!e.allow_script_urls){var s=n.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(s))return"";if(!e.allow_svg_data_urls&&/^data:image\/svg/i.test(s))return""}return _&&(n=_.call(v,n,"style")),"url('"+n.replace(/\'/g,"\\'")+"')"};if(t){for(t=(t=t.replace(/[\u0000-\u001F]/g,"")).replace(/\\[\"\';:\uFEFF]/g,w).replace(/\"[^\"]+\"|\'[^\']+\'/g,function(e){return e.replace(/[;:]/g,w)});r=u.exec(t);)if(u.lastIndex=r.index+r[0].length,i=r[1].replace(l,"").toLowerCase(),a=r[2].replace(l,""),i&&a){if(i=L(i),a=L(a),-1!==i.indexOf("\ufeff")||-1!==i.indexOf('"'))continue;if(!e.allow_script_urls&&("behavior"===i||/expression\s*\(|\/\*|\*\//.test(a)))continue;"font-weight"===i&&"700"===a?a="bold":"color"!==i&&"background-color"!==i||(a=a.toLowerCase()),a=(a=a.replace(o,na)).replace(s,D),g[i]=d?M(a,!0):a}y("border","",!0),y("border","-width"),y("border","-color"),y("border","-style"),y("padding",""),y("margin",""),f="border",h="border-style",p="border-color",b(m="border-width")&&b(h)&&b(p)&&(g[f]=g[m]+" "+g[h]+" "+g[p],delete g[m],delete g[h],delete g[p]),"medium none"===g.border&&delete g.border,"none"===g["border-image"]&&delete g["border-image"]}return g},serialize:function(e,t){var n,r,o="",s=function(t){var n,r,a,s;if(n=i[t])for(r=0,a=n.length;r<a;r++)t=n[r],(s=e[t])&&(o+=(o.length>0?" ":"")+t+": "+s+";")},u=function(e,t){var n;return!((n=a["*"])&&n[e]||(n=a[t])&&n[e])};if(t&&i)s("*"),s(t);else for(n in e)!(r=e[n])||a&&!u(n,t)||(o+=(o.length>0?" ":"")+n+": "+r+";");return o}}}var ia=Vt.each,aa=Vt.grep,oa=le.ie,sa=/^([a-z0-9],?)+$/i,ua=/^[ \t\r\n]*$/,la=function(e,t,n){var r={},i=t.keep_values,a={set:function(e,r,i){t.url_converter&&(r=t.url_converter.call(t.url_converter_scope||n(),r,i,e[0])),e.attr("data-mce-"+i,r).attr(i,r)},get:function(e,t){return e.attr("data-mce-"+t)||e.attr(t)}};return r={style:{set:function(e,t){null===t||"object"!=typeof t?(i&&e.attr("data-mce-style",t),e.attr("style",t)):e.css(t)},get:function(t){var n=t.attr("data-mce-style")||t.attr("style");return n=e.serialize(e.parse(n),t[0].nodeName)}}},i&&(r.href=r.src=a),r},ca=function(e,t){var n=t.attr("style"),r=e.serialize(e.parse(n),t[0].nodeName);r||(r=null),t.attr("data-mce-style",r)},da=function(e,t){var n,r,i=0;if(e)for(n=e.nodeType,e=e.previousSibling;e;e=e.previousSibling)r=e.nodeType,(!t||3!==r||r!==n&&e.nodeValue.length)&&(i++,n=r);return i};function fa(e,t){var r,s=this;void 0===t&&(t={});var u={},l=n.window,c={},d=0,f=function(e,t){void 0===t&&(t={});var r,s=0,u={};r=t.maxLoadTime||5e3;var l=function(t){e.getElementsByTagName("head")[0].appendChild(t)},c=function(i,a,o){var c,d,f,m,h=function(){for(var e=m.passed,t=e.length;t--;)e[t]();m.status=2,m.passed=[],m.failed=[]},p=function(){for(var e=m.failed,t=e.length;t--;)e[t]();m.status=3,m.passed=[],m.failed=[]},g=function(e,t){e()||((new Date).getTime()-f<r?he.setTimeout(t):p())},_=function(){g(function(){for(var t,n,r=e.styleSheets,i=r.length;i--;)if((n=(t=r[i]).ownerNode?t.ownerNode:t.owningElement)&&n.id===c.id)return h(),!0},_)},v=function(){g(function(){try{var e=d.sheet.cssRules;return h(),!!e}catch(e){}},v)};if(i=Vt._addCacheSuffix(i),u[i]?m=u[i]:(m={passed:[],failed:[]},u[i]=m),a&&m.passed.push(a),o&&m.failed.push(o),1!==m.status)if(2!==m.status)if(3!==m.status){if(m.status=1,(c=e.createElement("link")).rel="stylesheet",c.type="text/css",c.id="u"+s++,c.async=!1,c.defer=!1,f=(new Date).getTime(),t.contentCssCors&&(c.crossOrigin="anonymous"),"onload"in c&&!((y=n.navigator.userAgent.match(/WebKit\/(\d*)/))&&parseInt(y[1],10)<536))c.onload=_,c.onerror=p;else{if(n.navigator.userAgent.indexOf("Firefox")>0)return(d=e.createElement("style")).textContent='@import "'+i+'"',v(),void l(d);_()}var y;l(c),c.href=i}else p();else h()},d=function(e){return Qr.nu(function(t){c(e,i(t,a(ni.value(e))),i(t,a(ni.error(e))))})},f=function(e){return e.fold(o,o)};return{load:c,loadAll:function(e,t,n){Zr(B(e,d)).get(function(e){var r=U(e,function(e){return e.isValue()});r.fail.length>0?n(r.fail.map(f)):t(r.pass.map(f))})}}}(e,{contentCssCors:t.contentCssCors}),m=[],h=t.schema?t.schema:ta({}),p=ra({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope},t.schema),g=t.ownEvents?new ke(t.proxy):ke.Event,_=h.getBlockElements(),v=mn.overrideDefaults(function(){return{context:e,element:V.getRoot()}}),y=function(t){if(t&&e&&"string"==typeof t){var n=e.getElementById(t);return n&&n.id!==t?e.getElementsByName(t)[1]:n}return t},b=function(e){return"string"==typeof e&&(e=y(e)),v(e)},w=function(e,t,n){var i,a,o=b(e);return o.length&&(a=(i=r[t])&&i.get?i.get(o,t):o.attr(t)),void 0===a&&(a=n||""),a},M=function(e){var t=y(e);return t?t.attributes:[]},k=function(e,n,i){var a,o;""===i&&(i=null);var s=b(e);a=s.attr(n),s.length&&((o=r[n])&&o.set?o.set(s,i,n):s.attr(n,i),a!==i&&t.onSetAttrib&&t.onSetAttrib({attrElm:s,attrName:n,attrValue:i}))},L=function(){return t.root_element||e.body},D=function(t,n){return Ur.getPos(e.body,y(t),n)},x=function(e,t,n){var r=b(e);return n?r.css(t):("float"===(t=t.replace(/-(\D)/g,function(e,t){return t.toUpperCase()}))&&(t=le.ie&&le.ie<12?"styleFloat":"cssFloat"),r[0]&&r[0].style?r[0].style[t]:void 0)},A=function(e){var t,n;return e=y(e),t=x(e,"width"),n=x(e,"height"),-1===t.indexOf("px")&&(t=0),-1===n.indexOf("px")&&(n=0),{w:parseInt(t,10)||e.offsetWidth||e.clientWidth,h:parseInt(n,10)||e.offsetHeight||e.clientHeight}},C=function(e,t){var n;if(!e)return!1;if(!Array.isArray(e)){if("*"===t)return 1===e.nodeType;if(sa.test(t)){var r=t.toLowerCase().split(/,/),i=e.nodeName.toLowerCase();for(n=r.length-1;n>=0;n--)if(r[n]===i)return!0;return!1}if(e.nodeType&&1!==e.nodeType)return!1}var a=Array.isArray(e)?e:[e];return Lt(t,a[0].ownerDocument||a[0],null,a).length>0},T=function(e,t,n,r){var i,a=[],o=y(e);for(r=void 0===r,n=n||("BODY"!==L().nodeName?L().parentNode:null),Vt.is(t,"string")&&(i=t,t="*"===t?function(e){return 1===e.nodeType}:function(e){return C(e,i)});o&&o!==n&&o.nodeType&&9!==o.nodeType;){if(!t||"function"==typeof t&&t(o)){if(!r)return[o];a.push(o)}o=o.parentNode}return r?a:null},S=function(e,t,n){var r=t;if(e)for("string"==typeof t&&(r=function(e){return C(e,t)}),e=e[n];e;e=e[n])if("function"==typeof r&&r(e))return e;return null},Y=function(e,t,n){var r,i="string"==typeof e?y(e):e;if(!i)return!1;if(Vt.isArray(i)&&(i.length||0===i.length))return r=[],ia(i,function(e,i){e&&("string"==typeof e&&(e=y(e)),r.push(t.call(n,e,i)))}),r;var a=n||s;return t.call(a,i)},N=function(e,t){b(e).each(function(e,n){ia(t,function(e,t){k(n,t,e)})})},E=function(e,t){var n=b(e);oa?n.each(function(e,n){if(!1!==n.canHaveHTML){for(;n.firstChild;)n.removeChild(n.firstChild);try{n.innerHTML="<br>"+t,n.removeChild(n.firstChild)}catch(e){mn("<div></div>").html("<br>"+t).contents().slice(1).appendTo(n)}return t}}):n.html(t)},P=function(t,n,r,i,a){return Y(t,function(t){var o="string"==typeof n?e.createElement(n):n;return N(o,r),i&&("string"!=typeof i&&i.nodeType?o.appendChild(i):"string"==typeof i&&E(o,i)),a?o:t.appendChild(o)})},I=function(t,n,r){return P(e.createElement(t),t,n,r,!0)},O=zi.decode,F=zi.encodeAllRaw,R=function(e,t){var n=b(e);return t?n.each(function(){for(var e;e=this.firstChild;)3===e.nodeType&&0===e.data.length?this.removeChild(e):this.parentNode.insertBefore(e,this)}).remove():n.remove(),n.length>1?n.toArray():n[0]},H=function(e,t,n){b(e).toggleClass(t,n).each(function(){""===this.className&&mn(this).attr("class",null)})},j=function(e,t,n){return Y(t,function(t){return Vt.is(t,"array")&&(e=e.cloneNode(!0)),n&&ia(aa(t.childNodes),function(t){e.appendChild(t)}),t.parentNode.replaceChild(e,t)})},W=function(){return e.createRange()},z=function(n,r,i,a){if(Vt.isArray(n)){for(var o=n.length;o--;)n[o]=z(n[o],r,i,a);return n}return!t.collect||n!==e&&n!==l||m.push([n,r,i,a]),g.bind(n,r,i,a||V)},J=function(t,n,r){var i;if(Vt.isArray(t)){for(i=t.length;i--;)t[i]=J(t[i],n,r);return t}if(m&&(t===e||t===l))for(i=m.length;i--;){var a=m[i];t!==a[0]||n&&n!==a[1]||r&&r!==a[2]||g.unbind(a[0],a[1],a[2])}return g.unbind(t,n,r)},q=function(e){if(e&&Si.isElement(e)){var t=e.getAttribute("data-mce-contenteditable");return t&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null}return null},V={doc:e,settings:t,win:l,files:c,stdMode:!0,boxModel:!0,styleSheetLoader:f,boundEvents:m,styles:p,schema:h,events:g,isBlock:function(e){if("string"==typeof e)return!!_[e];if(e){var t=e.nodeType;if(t)return!(1!==t||!_[e.nodeName])}return!1},$:v,$$:b,root:null,clone:function(t,n){if(!oa||1!==t.nodeType||n)return t.cloneNode(n);if(!n){var r=e.createElement(t.nodeName);return ia(M(t),function(e){k(r,e.nodeName,w(t,e.nodeName))}),r}return null},getRoot:L,getViewPort:function(e){var t=e||l,n=t.document.documentElement;return{x:t.pageXOffset||n.scrollLeft,y:t.pageYOffset||n.scrollTop,w:t.innerWidth||n.clientWidth,h:t.innerHeight||n.clientHeight}},getRect:function(e){var t,n;return e=y(e),t=D(e),n=A(e),{x:t.x,y:t.y,w:n.w,h:n.h}},getSize:A,getParent:function(e,t,n){var r=T(e,t,n,!1);return r&&r.length>0?r[0]:null},getParents:T,get:y,getNext:function(e,t){return S(e,t,"nextSibling")},getPrev:function(e,t){return S(e,t,"previousSibling")},select:function(n,r){return Lt(n,y(r)||t.root_element||e,[])},is:C,add:P,create:I,createHTML:function(e,t,n){var r,i="";for(r in i+="<"+e,t)t.hasOwnProperty(r)&&null!==t[r]&&void 0!==t[r]&&(i+=" "+r+'="'+F(t[r])+'"');return void 0!==n?i+">"+n+"</"+e+">":i+" />"},createFragment:function(t){var n,r=e.createElement("div"),i=e.createDocumentFragment();for(i.appendChild(r),t&&(r.innerHTML=t);n=r.firstChild;)i.appendChild(n);return i.removeChild(r),i},remove:R,setStyle:function(e,n,r){var i=b(e).css(n,r);t.update_styles&&ca(p,i)},getStyle:x,setStyles:function(e,n){var r=b(e).css(n);t.update_styles&&ca(p,r)},removeAllAttribs:function(e){return Y(e,function(e){var t,n=e.attributes;for(t=n.length-1;t>=0;t--)e.removeAttributeNode(n.item(t))})},setAttrib:k,setAttribs:N,getAttrib:w,getPos:D,parseStyle:function(e){return p.parse(e)},serializeStyle:function(e,t){return p.serialize(e,t)},addStyle:function(t){var r,i;if(V!==fa.DOM&&e===n.document){if(u[t])return;u[t]=!0}(i=e.getElementById("mceDefaultStyles"))||((i=e.createElement("style")).id="mceDefaultStyles",i.type="text/css",(r=e.getElementsByTagName("head")[0]).firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i)),i.styleSheet?i.styleSheet.cssText+=t:i.appendChild(e.createTextNode(t))},loadCSS:function(t){var r;V===fa.DOM||e!==n.document?(t||(t=""),r=e.getElementsByTagName("head")[0],ia(t.split(","),function(e){var t;e=Vt._addCacheSuffix(e),c[e]||(c[e]=!0,t=I("link",{rel:"stylesheet",href:e}),r.appendChild(t))})):fa.DOM.loadCSS(t)},addClass:function(e,t){b(e).addClass(t)},removeClass:function(e,t){H(e,t,!1)},hasClass:function(e,t){return b(e).hasClass(t)},toggleClass:H,show:function(e){b(e).show()},hide:function(e){b(e).hide()},isHidden:function(e){return"none"===b(e).css("display")},uniqueId:function(e){return(e||"mce_")+d++},setHTML:E,getOuterHTML:function(e){var t="string"==typeof e?y(e):e;return Si.isElement(t)?t.outerHTML:mn("<div></div>").append(mn(t).clone()).html()},setOuterHTML:function(e,t){b(e).each(function(){try{if("outerHTML"in this)return void(this.outerHTML=t)}catch(e){}R(mn(this).html(t),!0)})},decode:O,encode:F,insertAfter:function(e,t){var n=y(t);return Y(e,function(e){var t,r;return t=n.parentNode,(r=n.nextSibling)?t.insertBefore(e,r):t.appendChild(e),e})},replace:j,rename:function(e,t){var n;return e.nodeName!==t.toUpperCase()&&(n=I(t),ia(M(e),function(t){k(n,t.nodeName,w(e,t.nodeName))}),j(n,e,!0)),n||e},findCommonAncestor:function(e,t){for(var n,r=e;r;){for(n=t;n&&r!==n;)n=n.parentNode;if(r===n)break;r=r.parentNode}return!r&&e.ownerDocument?e.ownerDocument.documentElement:r},toHex:function(e){return p.toHex(Vt.trim(e))},run:Y,getAttribs:M,isEmpty:function(e,t){var n,r,i,a,o,s,u=0;if(e=e.firstChild){o=new ri(e,e.parentNode),t=t||(h?h.getNonEmptyElements():null),a=h?h.getWhiteSpaceElements():{};do{if(i=e.nodeType,Si.isElement(e)){var l=e.getAttribute("data-mce-bogus");if(l){e=o.next("all"===l);continue}if(s=e.nodeName.toLowerCase(),t&&t[s]){if("br"===s){u++,e=o.next();continue}return!1}for(n=(r=M(e)).length;n--;)if("name"===(s=r[n].nodeName)||"data-mce-bookmark"===s)return!1}if(8===i)return!1;if(3===i&&!ua.test(e.nodeValue))return!1;if(3===i&&e.parentNode&&a[e.parentNode.nodeName]&&ua.test(e.nodeValue))return!1;e=o.next()}while(e)}return u<=1},createRng:W,nodeIndex:da,split:function(e,t,n){var r,i,a,o=W();if(e&&t)return o.setStart(e.parentNode,da(e)),o.setEnd(t.parentNode,da(t)),r=o.extractContents(),(o=W()).setStart(t.parentNode,da(t)+1),o.setEnd(e.parentNode,da(e)+1),i=o.extractContents(),(a=e.parentNode).insertBefore(Ei.trimNode(V,r),e),n?a.insertBefore(n,e):a.insertBefore(t,e),a.insertBefore(Ei.trimNode(V,i),e),R(e),n||t},bind:z,unbind:J,fire:function(e,t,n){return g.fire(e,t,n)},getContentEditable:q,getContentEditableParent:function(e){for(var t=L(),n=null;e&&e!==t&&null===(n=q(e));e=e.parentNode);return n},destroy:function(){if(m)for(var e=m.length;e--;){var t=m[e];g.unbind(t[0],t[1],t[2])}Lt.setDocument&&Lt.setDocument()},isChildOf:function(e,t){for(;e;){if(t===e)return!0;e=e.parentNode}return!1},dumpRng:function(e){return"startContainer: "+e.startContainer.nodeName+", startOffset: "+e.startOffset+", endContainer: "+e.endContainer.nodeName+", endOffset: "+e.endOffset}};return r=la(p,t,function(){return V}),V}!function(e){e.DOM=e(n.document),e.nodeIndex=da}(fa||(fa={}));var ma=fa,ha=ma.DOM,pa=Vt.each,ga=Vt.grep,_a=function(e){return"function"==typeof e},va=function(){var e={},t=[],r={},i=[],a=0;this.isDone=function(t){return 2===e[t]},this.markDone=function(t){e[t]=2},this.add=this.load=function(n,i,a,o){void 0===e[n]&&(t.push(n),e[n]=0),i&&(r[n]||(r[n]=[]),r[n].push({success:i,failure:o,scope:a||this}))},this.remove=function(t){delete e[t],delete r[t]},this.loadQueue=function(e,n,r){this.loadScripts(t,e,n,r)},this.loadScripts=function(t,o,s,u){var l,c=[],d=function(e,t){pa(r[t],function(t){_a(t[e])&&t[e].call(t.scope)}),r[t]=void 0};i.push({success:o,failure:u,scope:s||this}),(l=function(){var r=ga(t);if(t.length=0,pa(r,function(t){2!==e[t]?3!==e[t]?1!==e[t]&&(e[t]=1,a++,function(e,t,r){var i,a,o=ha;a=o.uniqueId(),(i=n.document.createElement("script")).id=a,i.type="text/javascript",i.src=Vt._addCacheSuffix(e),i.onload=function(){o.remove(a),i&&(i.onreadystatechange=i.onload=i=null),t()},i.onerror=function(){_a(r)?r():"undefined"!=typeof console&&console.log&&console.log("Failed to load script: "+e)},(n.document.getElementsByTagName("head")[0]||n.document.body).appendChild(i)}(t,function(){e[t]=2,a--,d("success",t),l()},function(){e[t]=3,a--,c.push(t),d("failure",t),l()})):d("failure",t):d("success",t)}),!a){var o=i.slice(0);i.length=0,pa(o,function(e){0===c.length?_a(e.success)&&e.success.call(e.scope):_a(e.failure)&&e.failure.call(e.scope,c)})}})()}};va.ScriptLoader=new va;var ya=Vt.each;function ba(){var e=this,t=[],n={},r={},i=[],a=function(e){var t;return r[e]&&(t=r[e].dependencies),t||[]},o=function(e,t){return"object"==typeof t?t:"string"==typeof e?{prefix:"",resource:t,suffix:""}:{prefix:e.prefix,resource:t,suffix:e.suffix}},s=function(e,t,n,r){var i=a(e);ya(i,function(e){var n=o(t,e);u(n.resource,n,void 0,void 0)}),n&&(r?n.call(r):n.call(va))},u=function(e,t,i,a,o){if(!n[e]){var u="string"==typeof t?t:t.prefix+t.resource+t.suffix;0!==u.indexOf("/")&&-1===u.indexOf("://")&&(u=ba.baseURL+"/"+u),n[e]=u.substring(0,u.lastIndexOf("/")),r[e]?s(e,t,i,a):va.ScriptLoader.add(u,function(){return s(e,t,i,a)},a,o)}};return{items:t,urls:n,lookup:r,_listeners:i,get:function(e){if(r[e])return r[e].instance},dependencies:a,requireLangPack:function(e,t){var r=ba.language;if(r&&!1!==ba.languageLoad){if(t)if(-1!==(t=","+t+",").indexOf(","+r.substr(0,2)+","))r=r.substr(0,2);else if(-1===t.indexOf(","+r+","))return;va.ScriptLoader.add(n[e]+"/langs/"+r+".js")}},add:function(e,n,a){t.push(n),r[e]={instance:n,dependencies:a};var o=U(i,function(t){return t.name===e});return i=o.fail,ya(o.pass,function(e){e.callback()}),n},remove:function(e){delete n[e],delete r[e]},createUrl:o,addComponents:function(t,n){var r=e.urls[t];ya(n,function(e){va.ScriptLoader.add(r+"/"+e)})},load:u,waitFor:function(e,t){r.hasOwnProperty(e)?t():i.push({name:e,callback:t})}}}!function(e){e.PluginManager=e(),e.ThemeManager=e()}(ba||(ba={}));var wa=function(e,t){Nr(e).each(function(n){n.dom().insertBefore(t.dom(),e.dom())})},Ma=function(e,t){Pr(e).fold(function(){Nr(e).each(function(e){La(e,t)})},function(e){wa(e,t)})},ka=function(e,t){Hr(e).fold(function(){La(e,t)},function(n){e.dom().insertBefore(t.dom(),n.dom())})},La=function(e,t){e.dom().appendChild(t.dom())},Da=function(e,t){W(t,function(t){La(e,t)})},xa=function(e){e.dom().textContent="",W(Fr(e),function(e){Aa(e)})},Aa=function(e){var t=e.dom();null!==t.parentNode&&t.parentNode.removeChild(t)},Ca=function(e){var t,n=Fr(e);n.length>0&&(t=e,W(n,function(e){wa(t,e)})),Aa(e)},Ta=function(e,t){var r=null;return{cancel:function(){null!==r&&(n.clearTimeout(r),r=null)},throttle:function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];null===r&&(r=n.setTimeout(function(){e.apply(null,i),r=null},t))}}},Sa=function(e){var t=e,n=function(){return t};return{get:n,set:function(e){t=e},clone:function(){return Sa(n())}}},Ya=function(e,t){var n=hr(e,t);return void 0===n||""===n?[]:n.split(" ")},Na=function(e){return void 0!==e.dom().classList},Ea=function(e,t){return function(e,t,n){var r=Ya(e,t).concat([n]);return fr(e,t,r.join(" ")),!0}(e,"class",t)},Pa=function(e,t){return function(e,t,n){var r=z(Ya(e,t),function(e){return e!==n});return r.length>0?fr(e,t,r.join(" ")):pr(e,t),!1}(e,"class",t)},Ia=function(e,t){Na(e)?e.dom().classList.add(t):Ea(e,t)},Oa=function(e){0===(Na(e)?e.dom().classList:function(e){return Ya(e,"class")}(e)).length&&pr(e,"class")},Fa=function(e,t){return Na(e)&&e.dom().classList.contains(t)},Ra=function(e,t){var n=[];return W(Fr(e),function(e){t(e)&&(n=n.concat([e])),n=n.concat(Ra(e,t))}),n},Ha=function(e,t){return function(e,t){var r=void 0===t?n.document:t.dom();return Ar(r)?[]:B(r.querySelectorAll(e),$n.fromDom)}(t,e)};function ja(e,t,n,r,i){return e(n,r)?x.some(n):E(i)&&i(n)?x.none():t(n,r,i)}var Ba=function(e,t,n){for(var r=e.dom(),i=E(n)?n:a(!1);r.parentNode;){r=r.parentNode;var o=$n.fromDom(r);if(t(o))return x.some(o);if(i(o))break}return x.none()},Wa=function(e,t,n){return ja(function(e,t){return t(e)},Ba,e,t,n)},Ua=function(e,t,n){return Ba(e,function(e){return xr(e,t)},n)},za=function(e,t){return function(e,t){var r=void 0===t?n.document:t.dom();return Ar(r)?x.none():x.from(r.querySelector(e)).map($n.fromDom)}(t,e)},Ja=function(e,t,n){return ja(xr,Ua,e,t,n)},qa=a("mce-annotation"),Va=a("data-mce-annotation"),Ga=a("data-mce-annotation-uid"),$a=function(e,t){var n=e.selection.getRng(),r=$n.fromDom(n.startContainer),i=$n.fromDom(e.getBody()),a=t.fold(function(){return"."+qa()},function(e){return"["+Va()+'="'+e+'"]'}),o=Rr(r,n.startOffset).getOr(r),s=function(e,t){return n=t,(r=e.dom())&&r.hasAttribute&&r.hasAttribute(n)?x.some(hr(e,t)):x.none();var n,r};return Ja(o,a,function(e){return Cr(e,i)}).bind(function(t){return s(t,""+Ga()).bind(function(n){return s(t,""+Va()).map(function(t){var r=Ka(e,n);return{uid:n,name:t,elements:r}})})})},Ka=function(e,t){var n=$n.fromDom(e.getBody());return Ha(n,"["+Ga()+'="'+t+'"]')},Qa=function(e,t){var n=$n.fromDom(e.getBody()),r=Ha(n,"["+Va()+'="'+t+'"]'),i={};return W(r,function(e){var t=hr(e,Ga()),n=i.hasOwnProperty(t)?i[t]:[];i[t]=n.concat([e])}),i},Xa=function(e,t){var r,i,a,o=Sa({}),s=function(e,t){u(e,function(e){return t(e),e})},u=function(e,t){var n=o.get(),r=t(n.hasOwnProperty(e)?n[e]:{listeners:[],previous:Sa(x.none())});n[e]=r,o.set(n)},l=(r=function(){var t,n,r,i=o.get(),a=(t=rr(i),(r=I.call(t,0)).sort(n),r);W(a,function(t){u(t,function(n){var r=n.previous.get();return $a(e,x.some(t)).fold(function(){r.isSome()&&(function(e){s(e,function(t){W(t.listeners,function(t){return t(!1,e)})})}(t),n.previous.set(x.none()))},function(e){var t=e.uid,i=e.name,a=e.elements;r.is(t)||(function(e,t,n){s(e,function(r){W(r.listeners,function(r){return r(!0,e,{uid:t,nodes:B(n,function(e){return e.dom()})})})})}(i,t,a),n.previous.set(x.some(t)))}),{previous:n.previous,listeners:n.listeners}})})},i=30,a=null,{cancel:function(){null!==a&&(n.clearTimeout(a),a=null)},throttle:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];null!==a&&n.clearTimeout(a),a=n.setTimeout(function(){r.apply(null,e),a=null},i)}});return e.on("remove",function(){l.cancel()}),e.on("nodeChange",function(){l.throttle()}),{addListener:function(e,t){u(e,function(e){return{previous:e.previous,listeners:e.listeners.concat([t])}})}}},Za=function(e,t){e.on("init",function(){e.serializer.addNodeFilter("span",function(e){W(e,function(e){(function(e){return x.from(e.attributes.map[Va()]).bind(t.lookup)})(e).each(function(t){!1===t.persistent&&e.unwrap()})})})})},eo=function(){var e={};return{register:function(t,n){e[t]={name:t,settings:n}},lookup:function(t){return e.hasOwnProperty(t)?x.from(e[t]).map(function(e){return e.settings}):x.none()}}},to=function(){return(to=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},no=0,ro=function(e,t){return $n.fromDom(e.dom().cloneNode(t))},io=function(e){return ro(e,!1)},ao=function(e){return ro(e,!0)},oo=function(e,t){var r,i,a=Sr(e).dom(),o=$n.fromDom(a.createDocumentFragment()),s=(r=t,(i=(a||n.document).createElement("div")).innerHTML=r,Fr($n.fromDom(i)));Da(o,s),xa(e),La(e,o)},so=function(e){return"\ufeff"===e},uo="\ufeff",lo=function(e){return e.replace(new RegExp("\ufeff","g"),"")},co=Si.isElement,fo=Si.isText,mo=function(e){return fo(e)&&(e=e.parentNode),co(e)&&e.hasAttribute("data-mce-caret")},ho=function(e){return fo(e)&&so(e.data)},po=function(e){return mo(e)||ho(e)},go=function(e){return e.firstChild!==e.lastChild||!Si.isBr(e.firstChild)},_o=function(e){var t=e.container();return!(!e||!Si.isText(t))&&(t.data.charAt(e.offset())===uo||e.isAtStart()&&ho(t.previousSibling))},vo=function(e){var t=e.container();return!(!e||!Si.isText(t))&&(t.data.charAt(e.offset()-1)===uo||e.isAtEnd()&&ho(t.nextSibling))},yo=function(e,t,r){var i,a,o;return(i=t.ownerDocument.createElement(e)).setAttribute("data-mce-caret",r?"before":"after"),i.setAttribute("data-mce-bogus","all"),i.appendChild(((o=n.document.createElement("br")).setAttribute("data-mce-bogus","1"),o)),a=t.parentNode,r?a.insertBefore(i,t):t.nextSibling?a.insertBefore(i,t.nextSibling):a.appendChild(i),i},bo=function(e){return fo(e)&&e.data[0]===uo},wo=function(e){return fo(e)&&e.data[e.data.length-1]===uo},Mo=function(e){return e&&e.hasAttribute("data-mce-caret")?(t=e.getElementsByTagName("br"),n=t[t.length-1],Si.isBogus(n)&&n.parentNode.removeChild(n),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null;var t,n},ko=Si.isContentEditableTrue,Lo=Si.isContentEditableFalse,Do=Si.isBr,xo=Si.isText,Ao=Si.matchNodeNames("script style textarea"),Co=Si.matchNodeNames("img input textarea hr iframe video audio object"),To=Si.matchNodeNames("table"),So=po,Yo=function(e){return!So(e)&&(xo(e)?!Ao(e.parentNode):Co(e)||Do(e)||To(e)||No(e))},No=function(e){return!1===function(e){return Si.isElement(e)&&"true"===e.getAttribute("unselectable")}(e)&&Lo(e)},Eo=function(e,t){return Yo(e)&&function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if(No(e))return!1;if(ko(e))return!0}return!0}(e,t)},Po=Math.round,Io=function(e){return e?{left:Po(e.left),top:Po(e.top),bottom:Po(e.bottom),right:Po(e.right),width:Po(e.width),height:Po(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}},Oo=function(e,t){return e=Io(e),t?e.right=e.left:(e.left=e.left+e.width,e.right=e.left),e.width=0,e},Fo=function(e,t,n){return e>=0&&e<=Math.min(t.height,n.height)/2},Ro=function(e,t){var n=Math.min(t.height/2,e.height/2);return e.bottom-n<t.top||!(e.top>t.bottom)&&Fo(t.top-e.bottom,e,t)},Ho=function(e,t){return e.top>t.bottom||!(e.bottom<t.top)&&Fo(t.bottom-e.top,e,t)},jo=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},Bo=function(e){var t=e.startContainer,n=e.startOffset;return t.hasChildNodes()&&e.endOffset===n+1?t.childNodes[n]:null},Wo=function(e,t){return 1===e.nodeType&&e.hasChildNodes()&&(t>=e.childNodes.length&&(t=e.childNodes.length-1),e=e.childNodes[t]),e},Uo=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-︯ﾞ-ﾟ]"),zo=function(e){return"string"==typeof e&&e.charCodeAt(0)>=768&&Uo.test(e)},Jo=function(e,t,n){return e.isSome()&&t.isSome()?x.some(n(e.getOrDie(),t.getOrDie())):x.none()},qo=[].slice,Vo=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=qo.call(arguments);return function(e){for(var t=0;t<n.length;t++)if(!n[t](e))return!1;return!0}},Go=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=qo.call(arguments);return function(e){for(var t=0;t<n.length;t++)if(n[t](e))return!0;return!1}},$o=Si.isElement,Ko=Yo,Qo=Si.matchStyleValues("display","block table"),Xo=Si.matchStyleValues("float","left right"),Zo=Vo($o,Ko,b(Xo)),es=b(Si.matchStyleValues("white-space","pre pre-line pre-wrap")),ts=Si.isText,ns=Si.isBr,rs=ma.nodeIndex,is=Wo,as=function(e){return"createRange"in e?e.createRange():ma.DOM.createRng()},os=function(e){return e&&/[\r\n\t ]/.test(e)},ss=function(e){return!!e.setStart&&!!e.setEnd},us=function(e){var t,n=e.startContainer,r=e.startOffset;return!!(os(e.toString())&&es(n.parentNode)&&Si.isText(n)&&(t=n.data,os(t[r-1])||os(t[r+1])))},ls=function(e){return 0===e.left&&0===e.right&&0===e.top&&0===e.bottom},cs=function(e){var t,n;return t=(n=e.getClientRects()).length>0?Io(n[0]):Io(e.getBoundingClientRect()),!ss(e)&&ns(e)&&ls(t)?function(e){var t,n=e.ownerDocument,r=as(n),i=n.createTextNode(" "),a=e.parentNode;return a.insertBefore(i,e),r.setStart(i,0),r.setEnd(i,1),t=Io(r.getBoundingClientRect()),a.removeChild(i),t}(e):ls(t)&&ss(e)?function(e){var t=e.startContainer,n=e.endContainer,r=e.startOffset,i=e.endOffset;if(t===n&&Si.isText(n)&&0===r&&1===i){var a=e.cloneRange();return a.setEndAfter(n),cs(a)}return null}(e):t},ds=function(e,t){var n=Oo(e,t);return n.width=1,n.right=n.left+1,n},fs=function(e){var t,n,r=[],i=function(e){var t,n;0!==e.height&&(r.length>0&&(t=e,n=r[r.length-1],t.left===n.left&&t.top===n.top&&t.bottom===n.bottom&&t.right===n.right)||r.push(e))},a=function(e,t){var n=as(e.ownerDocument);if(t<e.data.length){if(zo(e.data[t]))return r;if(zo(e.data[t-1])&&(n.setStart(e,t),n.setEnd(e,t+1),!us(n)))return i(ds(cs(n),!1)),r}t>0&&(n.setStart(e,t-1),n.setEnd(e,t),us(n)||i(ds(cs(n),!1))),t<e.data.length&&(n.setStart(e,t),n.setEnd(e,t+1),us(n)||i(ds(cs(n),!0)))};if(ts(e.container()))return a(e.container(),e.offset()),r;if($o(e.container()))if(e.isAtEnd())n=is(e.container(),e.offset()),ts(n)&&a(n,n.data.length),Zo(n)&&!ns(n)&&i(ds(cs(n),!1));else{if(n=is(e.container(),e.offset()),ts(n)&&a(n,0),Zo(n)&&e.isAtEnd())return i(ds(cs(n),!1)),r;t=is(e.container(),e.offset()-1),Zo(t)&&!ns(t)&&(Qo(t)||Qo(n)||!Zo(n))&&i(ds(cs(t),!1)),Zo(n)&&i(ds(cs(n),!0))}return r};function ms(e,t,n){var r=function(){return n||(n=fs(ms(e,t))),n};return{container:a(e),offset:a(t),toRange:function(){var n;return(n=as(e.ownerDocument)).setStart(e,t),n.setEnd(e,t),n},getClientRects:r,isVisible:function(){return r().length>0},isAtStart:function(){return ts(e),0===t},isAtEnd:function(){return ts(e)?t>=e.data.length:t>=e.childNodes.length},isEqual:function(n){return n&&e===n.container()&&t===n.offset()},getNode:function(n){return is(e,n?t-1:t)}}}!function(e){e.fromRangeStart=function(t){return e(t.startContainer,t.startOffset)},e.fromRangeEnd=function(t){return e(t.endContainer,t.endOffset)},e.after=function(t){return e(t.parentNode,rs(t)+1)},e.before=function(t){return e(t.parentNode,rs(t))},e.isAbove=function(e,t){return Jo(Q(t.getClientRects()),X(e.getClientRects()),Ro).getOr(!1)},e.isBelow=function(e,t){return Jo(X(t.getClientRects()),Q(e.getClientRects()),Ho).getOr(!1)},e.isAtStart=function(e){return!!e&&e.isAtStart()},e.isAtEnd=function(e){return!!e&&e.isAtEnd()},e.isTextPosition=function(e){return!!e&&Si.isText(e.container())},e.isElementPosition=function(t){return!1===e.isTextPosition(t)}}(ms||(ms={}));var hs,ps=ms,gs=Si.isText,_s=Si.isBogus,vs=ma.nodeIndex,ys=function(e){var t=e.parentNode;return _s(t)?ys(t):t},bs=function(e){return e?Wt.reduce(e.childNodes,function(e,t){return _s(t)&&"BR"!==t.nodeName?e=e.concat(bs(t)):e.push(t),e},[]):[]},ws=function(e){return function(t){return e===t}},Ms=function(e){return(gs(e)?"text()":e.nodeName.toLowerCase())+"["+function(e){var t,n,r;return t=bs(ys(e)),n=Wt.findIndex(t,ws(e),e),t=t.slice(0,n+1),r=Wt.reduce(t,function(e,n,r){return gs(n)&&gs(t[r-1])&&e++,e},0),t=Wt.filter(t,Si.matchNodeNames(e.nodeName)),(n=Wt.findIndex(t,ws(e),e))-r}(e)+"]"},ks=function(e,t){var n,r,i,a,o,s=[];return n=t.container(),r=t.offset(),gs(n)?i=function(e,t){for(;(e=e.previousSibling)&&gs(e);)t+=e.data.length;return t}(n,r):(r>=(a=n.childNodes).length?(i="after",r=a.length-1):i="before",n=a[r]),s.push(Ms(n)),o=function(e,t,n){var r=[];for(t=t.parentNode;!(t===e||n&&n(t));t=t.parentNode)r.push(t);return r}(e,n),o=Wt.filter(o,b(Si.isBogus)),(s=s.concat(Wt.map(o,function(e){return Ms(e)}))).reverse().join("/")+","+i},Ls=function(e,t){var n,r,i;return t?(t=(n=t.split(","))[0].split("/"),i=n.length>1?n[1]:"before",(r=Wt.reduce(t,function(e,t){return(t=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(t))?("text()"===t[1]&&(t[1]="#text"),n=e,r=t[1],i=parseInt(t[2],10),a=bs(n),a=Wt.filter(a,function(e,t){return!gs(e)||!gs(a[t-1])}),(a=Wt.filter(a,Si.matchNodeNames(r)))[i]):null;var n,r,i,a},e))?gs(r)?function(e,t){for(var n,r=e,i=0;gs(r);){if(n=r.data.length,t>=i&&t<=i+n){e=r,t-=i;break}if(!gs(r.nextSibling)){e=r,t=n;break}i+=n,r=r.nextSibling}return gs(e)&&t>e.data.length&&(t=e.data.length),ps(e,t)}(r,parseInt(i,10)):(i="after"===i?vs(r)+1:vs(r),ps(r.parentNode,i)):null):null},Ds=function(e,t){Si.isText(t)&&0===t.data.length&&e.remove(t)},xs=function(e,t,n){Si.isDocumentFragment(n)?function(e,t,n){var r=x.from(n.firstChild),i=x.from(n.lastChild);t.insertNode(n),r.each(function(t){return Ds(e,t.previousSibling)}),i.each(function(t){return Ds(e,t.nextSibling)})}(e,t,n):function(e,t,n){t.insertNode(n),Ds(e,n.previousSibling),Ds(e,n.nextSibling)}(e,t,n)},As=Si.isContentEditableFalse,Cs=function(e,t,n,r,i){var a,o=r[i?"startContainer":"endContainer"],s=r[i?"startOffset":"endOffset"],u=[],l=0,c=e.getRoot();for(Si.isText(o)?u.push(n?function(e,t,n){var r,i;for(i=e(t.data.slice(0,n)).length,r=t.previousSibling;r&&Si.isText(r);r=r.previousSibling)i+=e(r.data).length;return i}(t,o,s):s):(s>=(a=o.childNodes).length&&a.length&&(l=1,s=Math.max(0,a.length-1)),u.push(e.nodeIndex(a[s],n)+l));o&&o!==c;o=o.parentNode)u.push(e.nodeIndex(o,n));return u},Ts=function(e,t,n){var r=0;return Vt.each(e.select(t),function(e){if("all"!==e.getAttribute("data-mce-bogus"))return e!==n&&void r++}),r},Ss=function(e,t){var n,r,i,a=t?"start":"end";n=e[a+"Container"],r=e[a+"Offset"],Si.isElement(n)&&"TR"===n.nodeName&&(n=(i=n.childNodes)[Math.min(t?r:r-1,i.length-1)])&&(r=t?0:n.childNodes.length,e["set"+(t?"Start":"End")](n,r))},Ys=function(e){return Ss(e,!0),Ss(e,!1),e},Ns=function(e,t){var n;if(Si.isElement(e)&&(e=Wo(e,t),As(e)))return e;if(po(e)){if(Si.isText(e)&&mo(e)&&(e=e.parentNode),n=e.previousSibling,As(n))return n;if(n=e.nextSibling,As(n))return n}},Es=function(e,t,n){var r=n.getNode(),i=r?r.nodeName:null,a=n.getRng();if(As(r)||"IMG"===i)return{name:i,index:Ts(n.dom,i,r)};var o=function(e){return Ns(e.startContainer,e.startOffset)||Ns(e.endContainer,e.endOffset)}(a);return o?{name:i=o.tagName,index:Ts(n.dom,i,o)}:function(e,t,n,r){var i=t.dom,a={};return a.start=Cs(i,e,n,r,!0),t.isCollapsed()||(a.end=Cs(i,e,n,r,!1)),a}(e,n,t,a)},Ps=function(e,t,n){var r={"data-mce-type":"bookmark",id:t,style:"overflow:hidden;line-height:0px"};return n?e.create("span",r,"&#xFEFF;"):e.create("span",r)},Is=function(e,t){var n=e.dom,r=e.getRng(),i=n.uniqueId(),a=e.isCollapsed(),o=e.getNode(),s=o.nodeName;if("IMG"===s)return{name:s,index:Ts(n,s,o)};var u=Ys(r.cloneRange());if(!a){u.collapse(!1);var l=Ps(n,i+"_end",t);xs(n,u,l)}(r=Ys(r)).collapse(!0);var c=Ps(n,i+"_start",t);return xs(n,r,c),e.moveToBookmark({id:i,keep:1}),{id:i}},Os={getBookmark:function(e,t,n){return 2===t?Es(lo,n,e):3===t?function(e){var t=e.getRng();return{start:ks(e.dom.getRoot(),ps.fromRangeStart(t)),end:ks(e.dom.getRoot(),ps.fromRangeEnd(t))}}(e):t?function(e){return{rng:e.getRng()}}(e):Is(e,!1)},getUndoBookmark:s(Es,o,!0),getPersistentBookmark:Is},Fs=function(e){return Si.isElement(e)&&"_mce_caret"===e.id},Rs=function(e,t){for(;t&&t!==e;){if("_mce_caret"===t.id)return t;t=t.parentNode}return null},Hs=Si.isElement,js=Si.isText,Bs=function(e){var t=e.parentNode;t&&t.removeChild(e)},Ws=function(e,t){0===t.length?Bs(e):e.nodeValue=t},Us=function(e){var t=lo(e);return{count:e.length-t.length,text:t}},zs=function(e,t){return Vs(e),t},Js=function(e,t){var n,r,i,a=t.container(),o=(n=Z(a.childNodes),r=e,i=R(n,r),-1===i?x.none():x.some(i)).map(function(e){return e<t.offset()?ps(a,t.offset()-1):t}).getOr(t);return Vs(e),o},qs=function(e,t){return js(e)&&t.container()===e?function(e,t){var n=Us(e.data.substr(0,t.offset())),r=Us(e.data.substr(t.offset())),i=n.text+r.text;return i.length>0?(Ws(e,i),ps(e,t.offset()-n.count)):t}(e,t):zs(e,t)},Vs=function(e){if(Hs(e)&&po(e)&&(go(e)?e.removeAttribute("data-mce-caret"):Bs(e)),js(e)){var t=lo(function(e){try{return e.nodeValue}catch(e){return""}}(e));Ws(e,t)}},Gs={removeAndReposition:function(e,t){return ps.isTextPosition(t)?qs(e,t):function(e,t){return t.container()===e.parentNode?Js(e,t):zs(e,t)}(e,t)},remove:Vs},$s=Vn.detect().browser,Ks=Si.isContentEditableFalse,Qs=function(e,t,n){var r,i,a,o,s,u=Oo(t.getBoundingClientRect(),n);return"BODY"===e.tagName?(r=e.ownerDocument.documentElement,i=e.scrollLeft||r.scrollLeft,a=e.scrollTop||r.scrollTop):(s=e.getBoundingClientRect(),i=e.scrollLeft-s.left,a=e.scrollTop-s.top),u.left+=i,u.right+=i,u.top+=a,u.bottom+=a,u.width=1,(o=t.offsetWidth-t.clientWidth)>0&&(n&&(o*=-1),u.left+=o,u.right+=o),u},Xs=function(e,t,n){var r,i,a=Sa(x.none()),o=function(){!function(e){var t,n,r,i,a;for(t=mn("*[contentEditable=false]",e),i=0;i<t.length;i++)r=(n=t[i]).previousSibling,wo(r)&&(1===(a=r.data).length?r.parentNode.removeChild(r):r.deleteData(a.length-1,1)),r=n.nextSibling,bo(r)&&(1===(a=r.data).length?r.parentNode.removeChild(r):r.deleteData(0,1))}(e),i&&(Gs.remove(i),i=null),a.get().each(function(e){mn(e.caret).remove(),a.set(x.none())}),clearInterval(r)},s=function(){r=he.setInterval(function(){n()?mn("div.mce-visual-caret",e).toggleClass("mce-visual-caret-hidden"):mn("div.mce-visual-caret",e).addClass("mce-visual-caret-hidden")},500)};return{show:function(n,r){var u,l,c;if(o(),c=r,Si.isElement(c)&&/^(TD|TH)$/i.test(c.tagName))return null;if(!t(r))return i=function(e,t){var n,r,i;if(r=e.ownerDocument.createTextNode(uo),i=e.parentNode,t){if(n=e.previousSibling,fo(n)){if(po(n))return n;if(wo(n))return n.splitText(n.data.length-1)}i.insertBefore(r,e)}else{if(n=e.nextSibling,fo(n)){if(po(n))return n;if(bo(n))return n.splitText(1),n}e.nextSibling?i.insertBefore(r,e.nextSibling):i.appendChild(r)}return r}(r,n),l=r.ownerDocument.createRange(),Ks(i.nextSibling)?(l.setStart(i,0),l.setEnd(i,0)):(l.setStart(i,1),l.setEnd(i,1)),l;i=yo("p",r,n),u=Qs(e,r,n),mn(i).css("top",u.top);var d=mn('<div class="mce-visual-caret" data-mce-bogus="all"></div>').css(u).appendTo(e)[0];return a.set(x.some({caret:d,element:r,before:n})),a.get().each(function(e){n&&mn(e.caret).addClass("mce-visual-caret-before")}),s(),(l=r.ownerDocument.createRange()).setStart(i,0),l.setEnd(i,0),l},hide:o,getCss:function(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"},reposition:function(){a.get().each(function(t){var n=Qs(e,t.element,t.before);mn(t.caret).css(n)})},destroy:function(){return he.clearInterval(r)}}},Zs=function(){return $s.isIE()||$s.isEdge()||$s.isFirefox()},eu=function(e){return Ks(e)||Si.isTable(e)&&Zs()},tu=Si.isContentEditableFalse,nu=Si.matchStyleValues("display","block table table-cell table-caption list-item"),ru=po,iu=mo,au=Si.isElement,ou=Yo,su=function(e){return e>0},uu=function(e){return e<0},lu=function(e,t){for(var n;n=e(t);)if(!iu(n))return n;return null},cu=function(e,t,n,r,i){var a=new ri(e,r);if(uu(t)){if((tu(e)||iu(e))&&n(e=lu(a.prev,!0)))return e;for(;e=lu(a.prev,i);)if(n(e))return e}if(su(t)){if((tu(e)||iu(e))&&n(e=lu(a.next,!0)))return e;for(;e=lu(a.next,i);)if(n(e))return e}return null},du=function(e,t){for(;e&&e!==t;){if(nu(e))return e;e=e.parentNode}return null},fu=function(e,t,n){return du(e.container(),n)===du(t.container(),n)},mu=function(e,t){var n,r;return t?(n=t.container(),r=t.offset(),au(n)?n.childNodes[r+e]:null):null},hu=function(e,t){var n=t.ownerDocument.createRange();return e?(n.setStartBefore(t),n.setEndBefore(t)):(n.setStartAfter(t),n.setEndAfter(t)),n},pu=function(e,t,n){return du(t,e)===du(n,e)},gu=function(e,t,n){var r,i;for(i=e?"previousSibling":"nextSibling";n&&n!==t;){if(r=n[i],ru(r)&&(r=r[i]),tu(r)){if(pu(t,r,n))return r;break}if(ou(r))break;n=n.parentNode}return null},_u=s(hu,!0),vu=s(hu,!1),yu=function(e,t,n){var r,i,a,o,u=s(gu,!0,t),l=s(gu,!1,t);if(i=n.startContainer,a=n.startOffset,mo(i)){if(au(i)||(i=i.parentNode),"before"===(o=i.getAttribute("data-mce-caret"))&&(r=i.nextSibling,eu(r)))return _u(r);if("after"===o&&(r=i.previousSibling,eu(r)))return vu(r)}if(!n.collapsed)return n;if(Si.isText(i)){if(ru(i)){if(1===e){if(r=l(i))return _u(r);if(r=u(i))return vu(r)}if(-1===e){if(r=u(i))return vu(r);if(r=l(i))return _u(r)}return n}if(wo(i)&&a>=i.data.length-1)return 1===e&&(r=l(i))?_u(r):n;if(bo(i)&&a<=1)return-1===e&&(r=u(i))?vu(r):n;if(a===i.data.length)return(r=l(i))?_u(r):n;if(0===a)return(r=u(i))?vu(r):n}return n},bu=function(e,t){return x.from(mu(e?0:-1,t)).filter(tu)},wu=function(e,t,n){var r=yu(e,t,n);return-1===e?ms.fromRangeStart(r):ms.fromRangeEnd(r)},Mu=function(e){return x.from(e.getNode()).map($n.fromDom)},ku=function(e,t){for(;t=e(t);)if(t.isVisible())return t;return t},Lu=function(e,t){var n=fu(e,t);return!(n||!Si.isBr(e.getNode()))||n};!function(e){e[e.Backwards=-1]="Backwards",e[e.Forwards=1]="Forwards"}(hs||(hs={}));var Du=Si.isContentEditableFalse,xu=Si.isText,Au=Si.isElement,Cu=Si.isBr,Tu=Yo,Su=function(e){return Co(e)||function(e){return!!No(e)&&!0!==J(Z(e.getElementsByTagName("*")),function(e,t){return e||ko(t)},!1)}(e)},Yu=Eo,Nu=function(e,t){return e.hasChildNodes()&&t<e.childNodes.length?e.childNodes[t]:null},Eu=function(e,t){if(su(e)){if(Tu(t.previousSibling)&&!xu(t.previousSibling))return ps.before(t);if(xu(t))return ps(t,0)}if(uu(e)){if(Tu(t.nextSibling)&&!xu(t.nextSibling))return ps.after(t);if(xu(t))return ps(t,t.data.length)}return uu(e)?Cu(t)?ps.before(t):ps.after(t):ps.before(t)},Pu=function(e,t,n){var r,i,o,s,u;if(!Au(n)||!t)return null;if(t.isEqual(ps.after(n))&&n.lastChild){if(u=ps.after(n.lastChild),uu(e)&&Tu(n.lastChild)&&Au(n.lastChild))return Cu(n.lastChild)?ps.before(n.lastChild):u}else u=t;var l=u.container(),c=u.offset();if(xu(l)){if(uu(e)&&c>0)return ps(l,--c);if(su(e)&&c<l.length)return ps(l,++c);r=l}else{if(uu(e)&&c>0&&(i=Nu(l,c-1),Tu(i)))return!Su(i)&&(o=cu(i,e,Yu,i))?xu(o)?ps(o,o.data.length):ps.after(o):xu(i)?ps(i,i.data.length):ps.before(i);if(su(e)&&c<l.childNodes.length&&(i=Nu(l,c),Tu(i)))return Cu(i)?function(e,t){var n=t.nextSibling;return n&&Tu(n)?xu(n)?ps(n,0):ps.before(n):Pu(hs.Forwards,ps.after(t),e)}(n,i):!Su(i)&&(o=cu(i,e,Yu,i))?xu(o)?ps(o,0):ps.before(o):xu(i)?ps(i,0):ps.after(i);r=i||u.getNode()}return(su(e)&&u.isAtEnd()||uu(e)&&u.isAtStart())&&(r=cu(r,e,a(!0),n,!0),Yu(r,n))?Eu(e,r):(i=cu(r,e,Yu,n),!(s=Wt.last(z(function(e,t){for(var n=[];e&&e!==t;)n.push(e),e=e.parentNode;return n}(l,n),Du)))||i&&s.contains(i)?i?Eu(e,i):null:u=su(e)?ps.after(s):ps.before(s))},Iu=function(e){return{next:function(t){return Pu(hs.Forwards,t,e)},prev:function(t){return Pu(hs.Backwards,t,e)}}},Ou=function(e){return ps.isTextPosition(e)?0===e.offset():Yo(e.getNode())},Fu=function(e){if(ps.isTextPosition(e)){var t=e.container();return e.offset()===t.data.length}return Yo(e.getNode(!0))},Ru=function(e,t){return!ps.isTextPosition(e)&&!ps.isTextPosition(t)&&e.getNode()===t.getNode(!0)},Hu=function(e,t,n){return e?!Ru(t,n)&&(r=t,!(!ps.isTextPosition(r)&&Si.isBr(r.getNode())))&&Fu(t)&&Ou(n):!Ru(n,t)&&Ou(t)&&Fu(n);var r},ju=function(e,t,n){var r=Iu(t);return x.from(e?r.next(n):r.prev(n))},Bu=function(e,t,n){return ju(e,t,n).bind(function(r){return fu(n,r,t)&&Hu(e,n,r)?ju(e,t,r):x.some(r)})},Wu=function(e,t,n,r){return Bu(e,t,n).bind(function(n){return r(n)?Wu(e,t,n,r):x.some(n)})},Uu=function(e,t){var n,r=e?t.firstChild:t.lastChild;return Si.isText(r)?x.some(ps(r,e?0:r.data.length)):r?Yo(r)?x.some(e?ps.before(r):(n=r,Si.isBr(n)?ps.before(n):ps.after(n))):function(e,t,n){var r=e?ps.before(n):ps.after(n);return ju(e,t,r)}(e,t,r):x.none()},zu=s(ju,!0),Ju=s(ju,!1),qu={fromPosition:ju,nextPosition:zu,prevPosition:Ju,navigate:Bu,navigateIgnore:Wu,positionIn:Uu,firstPositionIn:s(Uu,!0),lastPositionIn:s(Uu,!1)},Vu=function(e,t){return Si.isElement(t)&&e.isBlock(t)&&!t.innerHTML&&!le.ie&&(t.innerHTML='<br data-mce-bogus="1" />'),t},Gu=function(e,t){return qu.lastPositionIn(e).fold(function(){return!1},function(e){return t.setStart(e.container(),e.offset()),t.setEnd(e.container(),e.offset()),!0})},$u=function(e,t,n){return!(!function(e){return!1===e.hasChildNodes()}(t)||!Rs(e,t)||(function(e,t){var n=e.ownerDocument.createTextNode(uo);e.appendChild(n),t.setStart(n,0),t.setEnd(n,0)}(t,n),0))},Ku=function(e,t,n,r){var i,a,o,s,u=n[t?"start":"end"],l=e.getRoot();if(u){for(o=u[0],a=l,i=u.length-1;i>=1;i--){if(s=a.childNodes,$u(l,a,r))return!0;if(u[i]>s.length-1)return!!$u(l,a,r)||Gu(a,r);a=s[u[i]]}3===a.nodeType&&(o=Math.min(u[0],a.nodeValue.length)),1===a.nodeType&&(o=Math.min(u[0],a.childNodes.length)),t?r.setStart(a,o):r.setEnd(a,o)}return!0},Qu=function(e){return Si.isText(e)&&e.data.length>0},Xu=function(e,t,n){var r,i,a,o,s,u,l=e.get(n.id+"_"+t),c=n.keep;if(l){if(r=l.parentNode,"start"===t?(c?l.hasChildNodes()?(r=l.firstChild,i=1):Qu(l.nextSibling)?(r=l.nextSibling,i=0):Qu(l.previousSibling)?(r=l.previousSibling,i=l.previousSibling.data.length):(r=l.parentNode,i=e.nodeIndex(l)+1):i=e.nodeIndex(l),s=r,u=i):(c?l.hasChildNodes()?(r=l.firstChild,i=1):Qu(l.previousSibling)?(r=l.previousSibling,i=l.previousSibling.data.length):(r=l.parentNode,i=e.nodeIndex(l)):i=e.nodeIndex(l),s=r,u=i),!c){for(o=l.previousSibling,a=l.nextSibling,Vt.each(Vt.grep(l.childNodes),function(e){Si.isText(e)&&(e.nodeValue=e.nodeValue.replace(/\uFEFF/g,""))});l=e.get(n.id+"_"+t);)e.remove(l,!0);o&&a&&o.nodeType===a.nodeType&&Si.isText(o)&&!le.opera&&(i=o.nodeValue.length,o.appendData(a.nodeValue),e.remove(a),s=o,u=i)}return x.some(ps(s,u))}return x.none()},Zu=function(e,t){var n=e.dom;if(t){if(function(e){return Vt.isArray(e.start)}(t))return function(e,t){var n=e.createRng();return Ku(e,!0,t,n)&&Ku(e,!1,t,n)?x.some(n):x.none()}(n,t);if(function(e){return"string"==typeof e.start}(t))return x.some(function(e,t){var n,r;return n=e.createRng(),r=Ls(e.getRoot(),t.start),n.setStart(r.container(),r.offset()),r=Ls(e.getRoot(),t.end),n.setEnd(r.container(),r.offset()),n}(n,t));if(function(e){return e.hasOwnProperty("id")}(t))return function(e,t){var n,r,i=Xu(e,"start",t),a=Xu(e,"end",t);return Jo(i,(r=i,(n=a).isSome()?n:r),function(t,n){var r=e.createRng();return r.setStart(Vu(e,t.container()),t.offset()),r.setEnd(Vu(e,n.container()),n.offset()),r})}(n,t);if(function(e){return e.hasOwnProperty("name")}(t))return function(e,t){return x.from(e.select(t.name)[t.index]).map(function(t){var n=e.createRng();return n.selectNode(t),n})}(n,t);if(function(e){return e.hasOwnProperty("rng")}(t))return x.some(t.rng)}return x.none()},el={getBookmark:function(e,t,n){return Os.getBookmark(e,t,n)},moveToBookmark:function(e,t){Zu(e,t).each(function(t){e.setRng(t)})},isBookmarkNode:function(e){return Si.isElement(e)&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")}},tl=function(e){return e&&/^(IMG)$/.test(e.nodeName)},nl=function(e){return e&&3===e.nodeType&&/^([\t \r\n]+|)$/.test(e.nodeValue)},rl=function(e,t,n){return"color"!==n&&"backgroundColor"!==n||(t=e.toHex(t)),"fontWeight"===n&&700===t&&(t="bold"),"fontFamily"===n&&(t=t.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),""+t},il={isInlineBlock:tl,moveStart:function(e,t,n){var r,i,a,o=n.startOffset,s=n.startContainer;if((n.startContainer!==n.endContainer||!tl(n.startContainer.childNodes[n.startOffset]))&&1===s.nodeType)for(o<(a=s.childNodes).length?r=new ri(s=a[o],e.getParent(s,e.isBlock)):(r=new ri(s=a[a.length-1],e.getParent(s,e.isBlock))).next(!0),i=r.current();i;i=r.next())if(3===i.nodeType&&!nl(i))return n.setStart(i,0),void t.setRng(n)},getNonWhiteSpaceSibling:function(e,t,n){if(e)for(t=t?"nextSibling":"previousSibling",e=n?e:e[t];e;e=e[t])if(1===e.nodeType||!nl(e))return e},isTextBlock:function(e,t){return t.nodeType&&(t=t.nodeName),!!e.schema.getTextBlockElements()[t.toLowerCase()]},isValid:function(e,t,n){return e.schema.isValidChild(t,n)},isWhiteSpaceNode:nl,replaceVars:function(e,t){return"string"!=typeof e?e=e(t):t&&(e=e.replace(/%(\w+)/g,function(e,n){return t[n]||e})),e},isEq:function(e,t){return e=e||"",t=t||"",e=""+(e.nodeName||e),t=""+(t.nodeName||t),e.toLowerCase()===t.toLowerCase()},normalizeStyleValue:rl,getStyle:function(e,t,n){return rl(e,e.getStyle(t,n),n)},getTextDecoration:function(e,t){var n;return e.getParent(t,function(t){return(n=e.getStyle(t,"text-decoration"))&&"none"!==n}),n},getParents:function(e,t,n){return e.getParents(t,n,e.getRoot())}},al=el.isBookmarkNode,ol=il.getParents,sl=il.isWhiteSpaceNode,ul=il.isTextBlock,ll=function(e,t){for(void 0===t&&(t=3===e.nodeType?e.length:e.childNodes.length);e&&e.hasChildNodes();)(e=e.childNodes[t])&&(t=3===e.nodeType?e.length:e.childNodes.length);return{node:e,offset:t}},cl=function(e,t){for(var n=t;n;){if(1===n.nodeType&&e.getContentEditable(n))return"false"===e.getContentEditable(n)?n:t;n=n.parentNode}return t},dl=function(e,t,n,r){var i,a,o=n.nodeValue;return void 0===r&&(r=e?o.length:0),e?-1!==(i=(i=o.lastIndexOf(" ",r))>(a=o.lastIndexOf(" ",r))?i:a)&&!t&&(i<r||!e)&&i<=o.length&&i++:(i=o.indexOf(" ",r),a=o.indexOf(" ",r),i=-1!==i&&(-1===a||i<a)?i:a),i},fl=function(e,t,n,r,i,a){var o,s,u,l;if(3===n.nodeType){if(-1!==(u=dl(i,a,n,r)))return{container:n,offset:u};l=n}for(o=new ri(n,e.getParent(n,e.isBlock)||t);s=o[i?"prev":"next"]();)if(3!==s.nodeType||al(s.parentNode)){if(e.isBlock(s)||il.isEq(s,"BR"))break}else if(l=s,-1!==(u=dl(i,a,s)))return{container:s,offset:u};if(l)return{container:l,offset:r=i?0:l.length}},ml=function(e,t,n,r,i){var a,o,s,u;for(3===r.nodeType&&0===r.nodeValue.length&&r[i]&&(r=r[i]),a=ol(e,r),o=0;o<a.length;o++)for(s=0;s<t.length;s++)if(!("collapsed"in(u=t[s])&&u.collapsed!==n.collapsed)&&e.is(a[o],u.selector))return a[o];return r},hl=function(e,t,n,r){var i,a=e.dom,o=a.getRoot();if(t[0].wrapper||(i=a.getParent(n,t[0].block,o)),!i){var s=a.getParent(n,"LI,TD,TH");i=a.getParent(3===n.nodeType?n.parentNode:n,function(t){return t!==o&&ul(e,t)},s)}if(i&&t[0].wrapper&&(i=ol(a,i,"ul,ol").reverse()[0]||i),!i)for(i=n;i[r]&&!a.isBlock(i[r])&&(i=i[r],!il.isEq(i,"br")););return i||n},pl=function(e,t,n,r,i,a,o){var s,u,l,c,d,f;if(s=u=o?n:i,c=o?"previousSibling":"nextSibling",d=e.getRoot(),3===s.nodeType&&!sl(s)&&(o?r>0:a<s.nodeValue.length))return s;for(;;){if(!t[0].block_expand&&e.isBlock(u))return u;for(l=u[c];l;l=l[c])if(!al(l)&&!sl(l)&&("BR"!==(f=l).nodeName||!f.getAttribute("data-mce-bogus")||f.nextSibling))return u;if(u===d||u.parentNode===d){s=u;break}u=u.parentNode}return s},gl=function(e,t,n,r){var i,a=t.startContainer,o=t.startOffset,s=t.endContainer,u=t.endOffset,l=e.dom;return 1===a.nodeType&&a.hasChildNodes()&&3===(a=Wo(a,o)).nodeType&&(o=0),1===s.nodeType&&s.hasChildNodes()&&3===(s=Wo(s,t.collapsed?u:u-1)).nodeType&&(u=s.nodeValue.length),a=cl(l,a),s=cl(l,s),(al(a.parentNode)||al(a))&&(a=al(a)?a:a.parentNode,3===(a=t.collapsed?a.previousSibling||a:a.nextSibling||a).nodeType&&(o=t.collapsed?a.length:0)),(al(s.parentNode)||al(s))&&(s=al(s)?s:s.parentNode,3===(s=t.collapsed?s.nextSibling||s:s.previousSibling||s).nodeType&&(u=t.collapsed?0:s.length)),t.collapsed&&((i=fl(l,e.getBody(),a,o,!0,r))&&(a=i.container,o=i.offset),(i=fl(l,e.getBody(),s,u,!1,r))&&(s=i.container,u=i.offset)),n[0].inline&&(s=r?s:function(e,t){var n=ll(e,t);if(n.node){for(;n.node&&0===n.offset&&n.node.previousSibling;)n=ll(n.node.previousSibling);n.node&&n.offset>0&&3===n.node.nodeType&&" "===n.node.nodeValue.charAt(n.offset-1)&&n.offset>1&&(e=n.node).splitText(n.offset-1)}return e}(s,u)),(n[0].inline||n[0].block_expand)&&(n[0].inline&&3===a.nodeType&&0!==o||(a=pl(l,n,a,o,s,u,!0)),n[0].inline&&3===s.nodeType&&u!==s.nodeValue.length||(s=pl(l,n,a,o,s,u,!1))),n[0].selector&&!1!==n[0].expand&&!n[0].inline&&(a=ml(l,n,t,a,"previousSibling"),s=ml(l,n,t,s,"nextSibling")),(n[0].block||n[0].selector)&&(a=hl(e,n,a,"previousSibling"),s=hl(e,n,s,"nextSibling"),n[0].block&&(l.isBlock(a)||(a=pl(l,n,a,o,s,u,!0)),l.isBlock(s)||(s=pl(l,n,a,o,s,u,!1)))),1===a.nodeType&&(o=l.nodeIndex(a),a=a.parentNode),1===s.nodeType&&(u=l.nodeIndex(s)+1,s=s.parentNode),{startContainer:a,startOffset:o,endContainer:s,endOffset:u}},_l=Vt.each,vl={walk:function(e,t,n){var r,i,a,o,s,u,l,c=t.startContainer,d=t.startOffset,f=t.endContainer,m=t.endOffset;if((l=e.select("td[data-mce-selected],th[data-mce-selected]")).length>0)_l(l,function(e){n([e])});else{var h,p,g,_=function(e){var t;return 3===(t=e[0]).nodeType&&t===c&&d>=t.nodeValue.length&&e.splice(0,1),t=e[e.length-1],0===m&&e.length>0&&t===f&&3===t.nodeType&&e.splice(e.length-1,1),e},v=function(e,t,n){for(var r=[];e&&e!==n;e=e[t])r.push(e);return r},y=function(e,t){do{if(e.parentNode===t)return e;e=e.parentNode}while(e)},b=function(e,t,r){var i=r?"nextSibling":"previousSibling";for(s=(o=e).parentNode;o&&o!==t;o=s)s=o.parentNode,(u=v(o===e?o:o[i],i)).length&&(r||u.reverse(),n(_(u)))};if(1===c.nodeType&&c.hasChildNodes()&&(c=c.childNodes[d]),1===f.nodeType&&f.hasChildNodes()&&(p=m,g=(h=f).childNodes,--p>g.length-1?p=g.length-1:p<0&&(p=0),f=g[p]||h),c===f)return n(_([c]));for(r=e.findCommonAncestor(c,f),o=c;o;o=o.parentNode){if(o===f)return b(c,r,!0);if(o===r)break}for(o=f;o;o=o.parentNode){if(o===c)return b(f,r);if(o===r)break}i=y(c,r)||c,a=y(f,r)||f,b(c,i,!0),(u=v(i===c?i:i.nextSibling,"nextSibling",a===f?a.nextSibling:a)).length&&n(_(u)),b(f,a)}}},yl=function(e,t){var n=function(t){return e(t)?x.from(t.dom().nodeValue):x.none()};return{get:function(r){if(!e(r))throw new Error("Can only get "+t+" value of a "+t+" node");return n(r).getOr("")},getOption:n,set:function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom().nodeValue=r}}}(nr,"text"),bl=function(e){return yl.get(e)},wl=function(e,t,n,r){return Nr(t).fold(function(){return"skipping"},function(i){return"br"===r||function(e){return nr(e)&&"\ufeff"===bl(e)}(t)?"valid":function(e){return tr(e)&&Fa(e,qa())}(t)?"existing":Fs(t)?"caret":il.isValid(e,n,r)&&il.isValid(e,Zn(i),n)?"valid":"invalid-child"})},Ml=function(e,t,n,r){var i,a,o=t.uid,s=void 0===o?(i="mce-annotation",a=(new Date).getTime(),i+"_"+Math.floor(1e9*Math.random())+ ++no+String(a)):o,u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(t,["uid"]),l=$n.fromTag("span",e);Ia(l,qa()),fr(l,""+Ga(),s),fr(l,""+Va(),n);var c=r(s,u),d=c.attributes,f=void 0===d?{}:d,m=c.classes,h=void 0===m?[]:m;return mr(l,f),function(e,t){W(t,function(t){Ia(e,t)})}(l,h),l},kl=function(e,t,n,r,i){var a=[],o=Ml(e.getDoc(),i,n,r),s=Sa(x.none()),u=function(){s.set(x.none())},l=function(e){W(e,c)},c=function(t){var n,r;switch(wl(e,t,"span",Zn(t))){case"invalid-child":u();var i=Fr(t);l(i),u();break;case"valid":var s=r.get().getOrThunk(function(){var e=io(o);return a.push(e),r.set(x.some(e)),e});wa(n=t,r=s),La(r,n)}};return vl.walk(e.dom,t,function(e){u(),function(e){var t=B(e,$n.fromDom);l(t)}(e)}),a},Ll=function(e,t,n,r){e.undoManager.transact(function(){var i=e.selection.getRng();if(i.collapsed&&function(e,t){var n=gl(e,t,[{inline:!0}],function(e){return 3===e.startContainer.nodeType&&e.startContainer.nodeValue.length>=e.startOffset&&" "===e.startContainer.nodeValue[e.startOffset]}(t));t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset),e.selection.setRng(t)}(e,i),e.selection.getRng().collapsed){var a=Ml(e.getDoc(),r,t,n.decorate);oo(a," "),e.selection.getRng().insertNode(a.dom()),e.selection.select(a.dom())}else{var o=Os.getPersistentBookmark(e.selection,!1),s=e.selection.getRng();kl(e,s,t,n.decorate,r),e.selection.moveToBookmark(o)}})};function Dl(e){var t=eo();Za(e,t);var n=Xa(e);return{register:function(e,n){t.register(e,n)},annotate:function(n,r){t.lookup(n).each(function(t){Ll(e,n,t,r)})},annotationChanged:function(e,t){n.addListener(e,t)},remove:function(t){$a(e,x.some(t)).each(function(e){var t=e.elements;W(t,Ca)})},getAll:function(t){var n=Qa(e,t);return or(n,function(e){return B(e,function(e){return e.dom()})})}}}var xl=function(e){return Vt.grep(e.childNodes,function(e){return"LI"===e.nodeName})},Al=function(e){return e&&e.firstChild&&e.firstChild===e.lastChild&&function(e){return" "===e.data||Si.isBr(e)}(e.firstChild)},Cl=function(e){return e.length>0&&(!(t=e[e.length-1]).firstChild||Al(t))?e.slice(0,-1):e;var t},Tl=function(e,t){var n=e.getParent(t,e.isBlock);return n&&"LI"===n.nodeName?n:null},Sl=function(e,t){var n=ps.after(e),r=Iu(t).prev(n);return r?r.toRange():null},Yl=function(e,t,n){var r=e.parentNode;return Vt.each(t,function(t){r.insertBefore(t,e)}),function(e,t){var n=ps.before(e),r=Iu(t).next(n);return r?r.toRange():null}(e,n)},Nl=function(e,t){var n=t.firstChild,r=t.lastChild;return n&&"meta"===n.name&&(n=n.next),r&&"mce_marker"===r.attr("id")&&(r=r.prev),function(e,t){var n=e.getNonEmptyElements();return t&&(t.isEmpty(n)||function(e,t){return e.getBlockElements()[t.name]&&function(e){return e.firstChild&&e.firstChild===e.lastChild}(t)&&function(e){return"br"===e.name||" "===e.value}(t.firstChild)}(e,t))}(e,r)&&(r=r.prev),!(!n||n!==r||"ul"!==n.name&&"ol"!==n.name)},El=function(e,t,n,r){var i=function(e,t,n){var r=t.serialize(n);return function(e){var t=e.firstChild,n=e.lastChild;return t&&"META"===t.nodeName&&t.parentNode.removeChild(t),n&&"mce_marker"===n.id&&n.parentNode.removeChild(n),e}(e.createFragment(r))}(t,e,r),a=Tl(t,n.startContainer),o=Cl(xl(i.firstChild)),s=t.getRoot(),u=function(e){var r=ps.fromRangeStart(n),i=Iu(t.getRoot()),o=1===e?i.prev(r):i.next(r);return!o||Tl(t,o.getNode())!==a};return u(1)?Yl(a,o,s):u(2)?function(e,t,n,r){return r.insertAfter(t.reverse(),e),Sl(t[0],n)}(a,o,s,t):function(e,t,n,r){var i=function(e,t){var n=t.cloneRange(),r=t.cloneRange();return n.setStartBefore(e),r.setEndAfter(e),[n.cloneContents(),r.cloneContents()]}(e,r),a=e.parentNode;return a.insertBefore(i[0],e),Vt.each(t,function(t){a.insertBefore(t,e)}),a.insertBefore(i[1],e),a.removeChild(e),Sl(t[t.length-1],n)}(a,o,s,n)},Pl=function(e,t){return!!Tl(e,t)},Il=Vt.each,Ol=function(e){this.compare=function(t,n){if(t.nodeName!==n.nodeName)return!1;var r=function(t){var n={};return Il(e.getAttribs(t),function(r){var i=r.nodeName.toLowerCase();0!==i.indexOf("_")&&"style"!==i&&0!==i.indexOf("data-")&&(n[i]=e.getAttrib(t,i))}),n},i=function(e,t){var n,r;for(r in e)if(e.hasOwnProperty(r)){if(void 0===(n=t[r]))return!1;if(e[r]!==n)return!1;delete t[r]}for(r in t)if(t.hasOwnProperty(r))return!1;return!0};return!(!i(r(t),r(n))||!i(e.parseStyle(e.getAttrib(t,"style")),e.parseStyle(e.getAttrib(n,"style")))||el.isBookmarkNode(t)||el.isBookmarkNode(n))}},Fl=function(e){var t=Ha(e,"br"),n=z(function(e){for(var t=[],n=e.dom();n;)t.push($n.fromDom(n)),n=n.lastChild;return t}(e).slice(-1),di);t.length===n.length&&W(n,Aa)},Rl=function(e){xa(e),La(e,$n.fromHtml('<br data-mce-bogus="1">'))},Hl=function(e){jr(e).each(function(t){Er(t).each(function(n){li(e)&&di(t)&&li(n)&&Aa(t)})})},jl=Vt.makeMap;function Bl(e){var t,n,r,i,a,o=[];return t=(e=e||{}).indent,n=jl(e.indent_before||""),r=jl(e.indent_after||""),i=zi.getEncodeFunc(e.entity_encoding||"raw",e.entities),a="html"===e.element_format,{start:function(e,s,u){var l,c,d,f;if(t&&n[e]&&o.length>0&&(f=o[o.length-1]).length>0&&"\n"!==f&&o.push("\n"),o.push("<",e),s)for(l=0,c=s.length;l<c;l++)d=s[l],o.push(" ",d.name,'="',i(d.value,!0),'"');o[o.length]=!u||a?">":" />",u&&t&&r[e]&&o.length>0&&(f=o[o.length-1]).length>0&&"\n"!==f&&o.push("\n")},end:function(e){var n;o.push("</",e,">"),t&&r[e]&&o.length>0&&(n=o[o.length-1]).length>0&&"\n"!==n&&o.push("\n")},text:function(e,t){e.length>0&&(o[o.length]=t?e:i(e))},cdata:function(e){o.push("<![CDATA[",e,"]]>")},comment:function(e){o.push("\x3c!--",e,"--\x3e")},pi:function(e,n){n?o.push("<?",e," ",i(n),"?>"):o.push("<?",e,"?>"),t&&o.push("\n")},doctype:function(e){o.push("<!DOCTYPE",e,">",t?"\n":"")},reset:function(){o.length=0},getContent:function(){return o.join("").replace(/\n$/,"")}}}function Wl(e,t){void 0===t&&(t=ta());var n=Bl(e);return(e=e||{}).validate=!("validate"in e)||e.validate,{serialize:function(r){var i,a;a=e.validate,i={3:function(e){n.text(e.value,e.raw)},8:function(e){n.comment(e.value)},7:function(e){n.pi(e.name,e.value)},10:function(e){n.doctype(e.value)},4:function(e){n.cdata(e.value)},11:function(e){if(e=e.firstChild)do{o(e)}while(e=e.next)}},n.reset();var o=function(e){var r,s,u,l,c,d,f,m,h,p=i[e.type];if(p)p(e);else{if(r=e.name,s=e.shortEnded,u=e.attributes,a&&u&&u.length>1&&((d=[]).map={},h=t.getElementRule(e.name))){for(f=0,m=h.attributesOrder.length;f<m;f++)(l=h.attributesOrder[f])in u.map&&(c=u.map[l],d.map[l]=c,d.push({name:l,value:c}));for(f=0,m=u.length;f<m;f++)(l=u[f].name)in d.map||(c=u.map[l],d.map[l]=c,d.push({name:l,value:c}));u=d}if(n.start(e.name,u,s),!s){if(e=e.firstChild)do{o(e)}while(e=e.next);n.end(r)}}};return 1!==r.type||e.inner?i[11](r):o(r),n.getContent()}}}var Ul,zl=function(e){var t=ps.fromRangeStart(e),r=ps.fromRangeEnd(e),i=e.commonAncestorContainer;return qu.fromPosition(!1,i,r).map(function(a){return!fu(t,r,i)&&fu(t,a,i)?function(e,t,r,i){var a=n.document.createRange();return a.setStart(e,t),a.setEnd(r,i),a}(t.container(),t.offset(),a.container(),a.offset()):e}).getOr(e)},Jl=function(e){return e.collapsed?e:zl(e)},ql=Si.matchNodeNames("td th"),Vl=function(e,t){var n=e.selection.getRng(),r=n.startContainer,i=n.startOffset;n.collapsed&&function(e,t){return Si.isText(e)&&" "===e.nodeValue[t-1]}(r,i)&&Si.isText(r)&&(r.insertData(i-1," "),r.deleteData(i,1),n.setStart(r,i),n.setEnd(r,i),e.selection.setRng(n)),e.selection.setContent(t)},Gl=function(e,t,n){var r,i,a,o,s,u,l,c,d,f,m,h=e.selection,p=e.dom;if(/^ | $/.test(t)&&(t=function(e,t){var n,r;n=e.startContainer,r=e.startOffset;var i=function(e){return n[e]&&3===n[e].nodeType};return 3===n.nodeType&&(r>0?t=t.replace(/^&nbsp;/," "):i("previousSibling")||(t=t.replace(/^ /,"&nbsp;")),r<n.length?t=t.replace(/&nbsp;(<br>|)$/," "):i("nextSibling")||(t=t.replace(/(&nbsp;| )(<br>|)$/,"&nbsp;"))),t}(h.getRng(),t)),r=e.parser,m=n.merge,i=Wl({validate:e.settings.validate},e.schema),f='<span id="mce_marker" data-mce-type="bookmark">&#xFEFF;&#x200B;</span>',u={content:t,format:"html",selection:!0,paste:n.paste},(u=e.fire("BeforeSetContent",u)).isDefaultPrevented())e.fire("SetContent",{content:u.content,format:"html",selection:!0,paste:n.paste});else{-1===(t=u.content).indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,f);var g=(c=h.getRng()).startContainer||(c.parentElement?c.parentElement():null),_=e.getBody();g===_&&h.isCollapsed()&&p.isBlock(_.firstChild)&&function(e,t){return t&&!e.schema.getShortEndedElements()[t.nodeName]}(e,_.firstChild)&&p.isEmpty(_.firstChild)&&((c=p.createRng()).setStart(_.firstChild,0),c.setEnd(_.firstChild,0),h.setRng(c)),h.isCollapsed()||(e.selection.setRng(Jl(e.selection.getRng())),e.getDoc().execCommand("Delete",!1,null),t=function(e,t){var n,r;return n=e.startContainer,r=e.startOffset,3===n.nodeType&&e.collapsed&&(" "===n.data[r]?(n.deleteData(r,1),/[\u00a0| ]$/.test(t)||(t+=" ")):" "===n.data[r-1]&&(n.deleteData(r-1,1),/[\u00a0| ]$/.test(t)||(t=" "+t))),t}(e.selection.getRng(),t));var v,y={context:(a=h.getNode()).nodeName.toLowerCase(),data:n.data,insert:!0};if(s=r.parse(t,y),!0===n.paste&&Nl(e.schema,s)&&Pl(p,a))return c=El(i,p,e.selection.getRng(),s),e.selection.setRng(c),void e.fire("SetContent",u);if(function(e){for(var t=e;t=t.walk();)1===t.type&&t.attr("data-mce-fragment","1")}(s),"mce_marker"===(d=s.lastChild).attr("id"))for(l=d,d=d.prev;d;d=d.walk(!0))if(3===d.type||!p.isBlock(d.name)){e.schema.isValidChild(d.parent.name,"span")&&d.parent.insert(l,d,"br"===d.name);break}if(e._selectionOverrides.showBlockCaretContainer(a),y.invalid){for(Vl(e,f),a=h.getNode(),o=e.getBody(),9===a.nodeType?a=d=o:d=a;d!==o;)a=d,d=d.parentNode;t=a===o?o.innerHTML:p.getOuterHTML(a),t=i.serialize(r.parse(t.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,function(){return i.serialize(s)}))),a===o?p.setHTML(o,t):p.setOuterHTML(a,t)}else!function(e,t,n){if("all"===n.getAttribute("data-mce-bogus"))n.parentNode.insertBefore(e.dom.createFragment(t),n);else{var r=n.firstChild,i=n.lastChild;!r||r===i&&"BR"===r.nodeName?e.dom.setHTML(n,t):Vl(e,t)}}(e,t=i.serialize(s),a);!function(e,t){var n=e.schema.getTextInlineElements(),r=e.dom;if(t){var i=e.getBody(),a=new Ol(r);Vt.each(r.select("*[data-mce-fragment]"),function(e){for(var t=e.parentNode;t&&t!==i;t=t.parentNode)n[e.nodeName.toLowerCase()]&&a.compare(t,e)&&r.remove(e,!0)})}}(e,m),function(e,t){var n,r,i,a,o,s=e.dom,u=e.selection;if(t){if(e.selection.scrollIntoView(t),n=function(t){for(var n=e.getBody();t&&t!==n;t=t.parentNode)if("false"===e.dom.getContentEditable(t))return t;return null}(t))return s.remove(t),void u.select(n);var l=s.createRng();(a=t.previousSibling)&&3===a.nodeType?(l.setStart(a,a.nodeValue.length),le.ie||(o=t.nextSibling)&&3===o.nodeType&&(a.appendData(o.data),o.parentNode.removeChild(o))):(l.setStartBefore(t),l.setEndBefore(t)),r=s.getParent(t,s.isBlock),s.remove(t),r&&s.isEmpty(r)&&(e.$(r).empty(),l.setStart(r,0),l.setEnd(r,0),ql(r)||function(e){return!!e.getAttribute("data-mce-fragment")}(r)||!(i=function(t){var n=ps.fromRangeStart(t);if(n=Iu(e.getBody()).next(n))return n.toRange()}(l))?s.add(r,s.create("br",{"data-mce-bogus":"1"})):(l=i,s.remove(r))),u.setRng(l)}}(e,p.get("mce_marker")),v=e.getBody(),Vt.each(v.getElementsByTagName("*"),function(e){e.removeAttribute("data-mce-fragment")}),function(e,t){x.from(e.getParent(t,"td,th")).map($n.fromDom).each(Hl)}(e.dom,e.selection.getStart()),e.fire("SetContent",u),e.addVisual()}},$l={insertAtCaret:function(e,t){var n=function(e){var t;return"string"!=typeof e?(t=Vt.extend({paste:e.paste,data:{paste:e.paste}},e),{content:e.content,details:t}):{content:e,details:{}}}(t);Gl(e,n.content,n.details)}},Kl=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,Ql=function(e,t,n){var r=e.getParam(t,n);if(-1!==r.indexOf("=")){var i=e.getParam(t,"","hash");return i.hasOwnProperty(e.id)?i[e.id]:n}return r},Xl={getIframeAttrs:function(e){return e.getParam("iframe_attrs",{})},getDocType:function(e){return e.getParam("doctype","<!DOCTYPE html>")},getDocumentBaseUrl:function(e){return e.getParam("document_base_url","")},getBodyId:function(e){return Ql(e,"body_id","tinymce")},getBodyClass:function(e){return Ql(e,"body_class","")},getContentSecurityPolicy:function(e){return e.getParam("content_security_policy","")},shouldPutBrInPre:function(e){return e.getParam("br_in_pre",!0)},getForcedRootBlock:function(e){if(e.getParam("force_p_newlines",!1))return"p";var t=e.getParam("forced_root_block","p");return!1===t?"":t},getForcedRootBlockAttrs:function(e){return e.getParam("forced_root_block_attrs",{})},getBrNewLineSelector:function(e){return e.getParam("br_newline_selector",".mce-toc h2,figcaption,caption")},getNoNewLineSelector:function(e){return e.getParam("no_newline_selector","")},shouldKeepStyles:function(e){return e.getParam("keep_styles",!0)},shouldEndContainerOnEmptyBlock:function(e){return e.getParam("end_container_on_empty_block",!1)},getFontStyleValues:function(e){return Vt.explode(e.getParam("font_size_style_values",""))},getFontSizeClasses:function(e){return Vt.explode(e.getParam("font_size_classes",""))},getImagesDataImgFilter:function(e){return e.getParam("images_dataimg_filter",a(!0),"function")},isAutomaticUploadsEnabled:function(e){return e.getParam("automatic_uploads",!0,"boolean")},shouldReuseFileName:function(e){return e.getParam("images_reuse_filename",!1,"boolean")},shouldReplaceBlobUris:function(e){return e.getParam("images_replace_blob_uris",!0,"boolean")},getImageUploadUrl:function(e){return e.getParam("images_upload_url","","string")},getImageUploadBasePath:function(e){return e.getParam("images_upload_base_path","","string")},getImagesUploadCredentials:function(e){return e.getParam("images_upload_credentials",!1,"boolean")},getImagesUploadHandler:function(e){return e.getParam("images_upload_handler",null,"function")},shouldUseContentCssCors:function(e){return e.getParam("content_css_cors",!1,"boolean")},getInlineBoundarySelector:function(e){return e.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string")}},Zl=function(e,t){if(!t)return t;var n=t.container(),r=t.offset();return e?ho(n)?Si.isText(n.nextSibling)?ps(n.nextSibling,0):ps.after(n):_o(t)?ps(n,r+1):t:ho(n)?Si.isText(n.previousSibling)?ps(n.previousSibling,n.previousSibling.data.length):ps.before(n):vo(t)?ps(n,r-1):t},ec={isInlineTarget:function(e,t){return xr($n.fromDom(t),Xl.getInlineBoundarySelector(e))},findRootInline:function(e,t,n){var r=function(e,t,n){return z(ma.DOM.getParents(n.container(),"*",t),e)}(e,t,n);return x.from(r[r.length-1])},isRtl:function(e){return"rtl"===ma.DOM.getStyle(e,"direction",!0)||(t=e.textContent,Kl.test(t));var t},isAtZwsp:function(e){return _o(e)||vo(e)},normalizePosition:Zl,normalizeForwards:s(Zl,!0),normalizeBackwards:s(Zl,!1),hasSameParentBlock:function(e,t,n){var r=du(t,e),i=du(n,e);return r&&r===i}},tc=function(e,t){return Tr(e,t)?Wa(t,function(e){return fi(e)||hi(e)},function(e){return function(t){return Cr(e,$n.fromDom(t.dom().parentNode))}}(e)):x.none()},nc=function(e){e.dom.isEmpty(e.getBody())&&(e.setContent(""),function(e){var t=e.getBody(),n=t.firstChild&&e.dom.isBlock(t.firstChild)?t.firstChild:t;e.selection.setCursorLocation(n,0)}(e))},rc=function(e,t,n){return Jo(qu.firstPositionIn(n),qu.lastPositionIn(n),function(r,i){var a=ec.normalizePosition(!0,r),o=ec.normalizePosition(!1,i),s=ec.normalizePosition(!1,t);return e?qu.nextPosition(n,s).map(function(e){return e.isEqual(o)&&t.isEqual(a)}).getOr(!1):qu.prevPosition(n,s).map(function(e){return e.isEqual(a)&&t.isEqual(o)}).getOr(!1)}).getOr(!0)},ic=function(e,t){var n,r,i,a=$n.fromDom(e),o=$n.fromDom(t);return n=o,r="pre,code",i=s(Cr,a),Ua(n,r,i).isSome()},ac=function(e,t){return Yo(t)&&!1===function(e,t){return Si.isText(t)&&/^[ \t\r\n]*$/.test(t.data)&&!1===ic(e,t)}(e,t)||function(e){return Si.isElement(e)&&"A"===e.nodeName&&e.hasAttribute("name")}(t)||oc(t)},oc=Si.hasAttribute("data-mce-bookmark"),sc=Si.hasAttribute("data-mce-bogus"),uc=Si.hasAttributeValue("data-mce-bogus","all"),lc=function(e){return function(e){var t,n,r=0;if(ac(e,e))return!1;if(!(n=e.firstChild))return!0;t=new ri(n,e);do{if(uc(n))n=t.next(!0);else if(sc(n))n=t.next();else if(Si.isBr(n))r++,n=t.next();else{if(ac(e,n))return!1;n=t.next()}}while(n);return r<=1}(e.dom())},cc=yr("block","position"),dc=yr("from","to"),fc=function(e,t){var n=$n.fromDom(e),r=$n.fromDom(t.container());return tc(n,r).map(function(e){return cc(e,t)})},mc=function(e,t,n){var r=fc(e,ps.fromRangeStart(n)),i=r.bind(function(n){return qu.fromPosition(t,e,n.position()).bind(function(n){return fc(e,n).map(function(n){return function(e,t,n){return Si.isBr(n.position().getNode())&&!1===lc(n.block())?qu.positionIn(!1,n.block().dom()).bind(function(r){return r.isEqual(n.position())?qu.fromPosition(t,e,r).bind(function(t){return fc(e,t)}):x.some(n)}).getOr(n):n}(e,t,n)})})});return Jo(r,i,dc).filter(function(e){return function(e){return!1===Cr(e.from().block(),e.to().block())}(e)&&function(e){return Nr(e.from().block()).bind(function(t){return Nr(e.to().block()).filter(function(e){return Cr(t,e)})}).isSome()}(e)&&function(e){return!1===Si.isContentEditableFalse(e.from().block().dom())&&!1===Si.isContentEditableFalse(e.to().block().dom())}(e)})},hc=function(e,t,n){return n.collapsed?mc(e,t,n):x.none()},pc=function(e,t,n){return Tr(t,e)?function(e,t){for(var n=E(t)?t:w,r=e.dom(),i=[];null!==r.parentNode&&void 0!==r.parentNode;){var a=r.parentNode,o=$n.fromDom(a);if(i.push(o),!0===n(o))break;r=a}return i}(e,function(e){return n(e)||Cr(e,t)}).slice(0,-1):[]},gc=function(e,t){return pc(e,t,a(!1))},_c=gc,vc=function(e,t){return[e].concat(gc(e,t))},yc=function(e){var t=Fr(e);return V(t,li).fold(function(){return t},function(e){return t.slice(0,e)})},bc=function(e){var t=yc(e);return W(t,Aa),t},wc=function(e,t){var n=vc(t,e);return q(n.reverse(),lc).each(Aa)},Mc=function(e,t,n,r){if(lc(n))return Rl(n),qu.firstPositionIn(n.dom());0===z(Ir(r),function(e){return!lc(e)}).length&&lc(t)&&wa(r,$n.fromTag("br"));var i=qu.prevPosition(n.dom(),ps.before(r.dom()));return W(bc(t),function(e){wa(r,e)}),wc(e,t),i},kc=function(e,t,n){if(lc(n))return Aa(n),lc(t)&&Rl(t),qu.firstPositionIn(t.dom());var r=qu.lastPositionIn(n.dom());return W(bc(t),function(e){La(n,e)}),wc(e,t),r},Lc=function(e,t){return Tr(t,e)?function(e,t){var n=vc(t,e);return x.from(n[n.length-1])}(t,e):x.none()},Dc=function(e,t){qu.positionIn(e,t.dom()).map(function(e){return e.getNode()}).map($n.fromDom).filter(di).each(Aa)},xc=function(e,t,n){return Dc(!0,t),Dc(!1,n),Lc(t,n).fold(s(kc,e,t,n),s(Mc,e,t,n))},Ac=function(e,t,n,r){return t?xc(e,r,n):xc(e,n,r)},Cc=function(e,t){var n,r=$n.fromDom(e.getBody());return(n=hc(r.dom(),t,e.selection.getRng()).bind(function(e){return Ac(r,t,e.from().block(),e.to().block())})).each(function(t){e.selection.setRng(t.toRange())}),n.isSome()},Tc=function(e,t){var n=$n.fromDom(t),r=s(Cr,e);return Ba(n,_i,r).isSome()},Sc=function(e,t){var n=qu.prevPosition(e.dom(),ps.fromRangeStart(t)).isNone(),r=qu.nextPosition(e.dom(),ps.fromRangeEnd(t)).isNone();return!function(e,t){return Tc(e,t.startContainer)||Tc(e,t.endContainer)}(e,t)&&n&&r},Yc=function(e){var t=$n.fromDom(e.getBody()),n=e.selection.getRng();return Sc(t,n)?function(e){return e.setContent(""),e.selection.setCursorLocation(),!0}(e):function(e,t){var n=t.getRng();return Jo(tc(e,$n.fromDom(n.startContainer)),tc(e,$n.fromDom(n.endContainer)),function(r,i){return!1===Cr(r,i)&&(n.deleteContents(),Ac(e,!0,r,i).each(function(e){t.setRng(e.toRange())}),!0)}).getOr(!1)}(t,e.selection)},Nc=function(e,t){return!e.selection.isCollapsed()&&Yc(e)},Ec=function(e){if(!S(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],r={};return W(e,function(i,a){var o=rr(i);if(1!==o.length)throw new Error("one and only one name per case");var s=o[0],u=i[s];if(void 0!==r[s])throw new Error("duplicate key detected:"+s);if("cata"===s)throw new Error("cannot have a case named cata (sorry)");if(!S(u))throw new Error("case arguments must be an array");t.push(s),r[s]=function(){var r=arguments.length;if(r!==u.length)throw new Error("Wrong number of arguments to case "+s+". Expected "+u.length+" ("+u+"), got "+r);for(var i=new Array(r),o=0;o<i.length;o++)i[o]=arguments[o];return{fold:function(){if(arguments.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+arguments.length);return arguments[a].apply(null,i)},match:function(e){var n=rr(e);if(t.length!==n.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+n.join(","));if(!$(t,function(e){return H(n,e)}))throw new Error("Not all branches were specified when using match. Specified: "+n.join(", ")+"\nRequired: "+t.join(", "));return e[s].apply(null,i)},log:function(e){n.console.log(e,{constructors:t,constructor:s,params:i})}}}}),r},Pc=function(e){return Mu(e).exists(di)},Ic=function(e,t,n){var r=z(vc($n.fromDom(n.container()),t),li),i=Q(r).getOr(t);return qu.fromPosition(e,i.dom(),n).filter(Pc)},Oc=function(e,t){return Mu(t).exists(di)||Ic(!0,e,t).isSome()},Fc=function(e,t){return function(e){return x.from(e.getNode(!0)).map($n.fromDom)}(t).exists(di)||Ic(!1,e,t).isSome()},Rc=s(Ic,!1),Hc=s(Ic,!0),jc=(Ul=" ",function(e){return Ul===e}),Bc=function(e){return/^[\r\n\t ]$/.test(e)},Wc=function(e){return!Bc(e)&&!jc(e)},Uc=function(e,t,n){return x.from(n.container()).filter(Si.isText).exists(function(r){var i=e?0:-1;return t(r.data.charAt(n.offset()+i))})},zc=s(Uc,!0,Bc),Jc=s(Uc,!1,Bc),qc=function(e){var t=e.container();return Si.isText(t)&&0===t.data.length},Vc=function(e,t){var n=mu(e,t);return Si.isContentEditableFalse(n)&&!Si.isBogusAll(n)},Gc=s(Vc,0),$c=s(Vc,-1),Kc=function(e,t){return Si.isTable(mu(e,t))},Qc=s(Kc,0),Xc=s(Kc,-1),Zc=Ec([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),ed=function(e,t,n,r){var i=r.getNode(!1===t);return tc($n.fromDom(e),$n.fromDom(n.getNode())).map(function(e){return lc(e)?Zc.remove(e.dom()):Zc.moveToElement(i)}).orThunk(function(){return x.some(Zc.moveToElement(i))})},td=function(e,t,n){return qu.fromPosition(t,e,n).bind(function(r){return i=r.getNode(),_i($n.fromDom(i))||hi($n.fromDom(i))?x.none():function(e,t,n,r){var i=function(t){return ci($n.fromDom(t))&&!fu(n,r,e)};return bu(!t,n).fold(function(){return bu(t,r).fold(a(!1),i)},i)}(e,t,n,r)?x.none():t&&Si.isContentEditableFalse(r.getNode())?ed(e,t,n,r):!1===t&&Si.isContentEditableFalse(r.getNode(!0))?ed(e,t,n,r):t&&$c(n)?x.some(Zc.moveToPosition(r)):!1===t&&Gc(n)?x.some(Zc.moveToPosition(r)):x.none();var i})},nd=function(e,t,n){return function(e,t){var n=t.getNode(!1===e),r=e?"after":"before";return Si.isElement(n)&&n.getAttribute("data-mce-caret")===r}(t,n)?function(e,t){return e&&Si.isContentEditableFalse(t.nextSibling)?x.some(Zc.moveToElement(t.nextSibling)):!1===e&&Si.isContentEditableFalse(t.previousSibling)?x.some(Zc.moveToElement(t.previousSibling)):x.none()}(t,n.getNode(!1===t)).fold(function(){return td(e,t,n)},x.some):td(e,t,n).bind(function(t){return function(e,t,n){return n.fold(function(e){return x.some(Zc.remove(e))},function(e){return x.some(Zc.moveToElement(e))},function(n){return fu(t,n,e)?x.none():x.some(Zc.moveToPosition(n))})}(e,n,t)})},rd=function(e,t,n){if(0!==n){var r=e.data.slice(t,t+n),i=t+n>=e.data.length,a=0===t;e.replaceData(t,n,function(e,t,n){return J(e.split(""),function(r,i){return function(e){return-1!==" \f\n\r\t\v".indexOf(e)}(i)||" "===i?r.previousCharIsSpace||""===r.str&&t||r.str.length===e.length-1&&n?{previousCharIsSpace:!1,str:r.str+" "}:{previousCharIsSpace:!0,str:r.str+" "}:{previousCharIsSpace:!1,str:r.str+i}},{previousCharIsSpace:!1,str:""}).str}(r,a,i))}},id=function(e,t){var n,r=e.data.slice(t),i=r.length-(n=r,n.replace(/^\s+/g,"")).length;return rd(e,t,i)},ad=function(e,t){return function(e,t){var n=e.container(),r=e.offset();return!1===ps.isTextPosition(e)&&n===t.parentNode&&r>ps.before(t).offset()}(t,e)?ps(t.container(),t.offset()-1):t},od=function(e){return Yo(e.previousSibling)?x.some((t=e.previousSibling,Si.isText(t)?ps(t,t.data.length):ps.after(t))):e.previousSibling?qu.lastPositionIn(e.previousSibling):x.none();var t},sd=function(e){return Yo(e.nextSibling)?x.some((t=e.nextSibling,Si.isText(t)?ps(t,0):ps.before(t))):e.nextSibling?qu.firstPositionIn(e.nextSibling):x.none();var t},ud=function(e,t){return od(t).orThunk(function(){return sd(t)}).orThunk(function(){return function(e,t){var n=ps.before(t.previousSibling?t.previousSibling:t.parentNode);return qu.prevPosition(e,n).fold(function(){return qu.nextPosition(e,ps.after(t))},x.some)}(e,t)})},ld=function(e,t){return sd(t).orThunk(function(){return od(t)}).orThunk(function(){return function(e,t){return qu.nextPosition(e,ps.after(t)).fold(function(){return qu.prevPosition(e,ps.before(t))},x.some)}(e,t)})},cd=function(e,t,n){return function(e,t,n){return e?ld(t,n):ud(t,n)}(e,t,n).map(s(ad,n))},dd=function(e,t,n){n.fold(function(){e.focus()},function(n){e.selection.setRng(n.toRange(),t)})},fd=function(e,t){return t&&e.schema.getBlockElements().hasOwnProperty(Zn(t))},md=function(e){if(lc(e)){var t=$n.fromHtml('<br data-mce-bogus="1">');return xa(e),La(e,t),x.some(ps.before(t.dom()))}return x.none()},hd=function(e,t,n){var r,i,a,o,s=Er(e).filter(nr),u=Pr(e).filter(nr);return Aa(e),(r=s,i=u,a=t,o=function(e,t,r){var i=e.dom(),a=t.dom(),o=i.data.length;return function(e,t,n){var r=jn(e.data).length;e.appendData(t.data),Aa($n.fromDom(t)),n&&id(e,r)}(i,a,n),r.container()===a?ps(i,o):r},r.isSome()&&i.isSome()&&a.isSome()?x.some(o(r.getOrDie(),i.getOrDie(),a.getOrDie())):x.none()).orThunk(function(){return n&&(s.each(function(e){return t=e.dom(),n=e.dom().length,r=t.data.slice(0,n),i=r.length-jn(r).length,rd(t,n-i,i);var t,n,r,i}),u.each(function(e){return id(e.dom(),0)})),t})},pd=function(e,t,n,r){void 0===r&&(r=!0);var i,a=cd(t,e.getBody(),n.dom()),o=Ba(n,s(fd,e),(i=e.getBody(),function(e){return e.dom()===i})),u=hd(n,a,function(e,t){return lr(e.schema.getTextInlineElements(),Zn(t))}(e,n));e.dom.isEmpty(e.getBody())?(e.setContent(""),e.selection.setCursorLocation()):o.bind(md).fold(function(){r&&dd(e,t,u)},function(n){r&&dd(e,t,x.some(n))})},gd=function(e,t){return function(e,t,n){var r=yu(t?1:-1,e,n),i=ps.fromRangeStart(r),a=$n.fromDom(e);return!1===t&&$c(i)?x.some(Zc.remove(i.getNode(!0))):t&&Gc(i)?x.some(Zc.remove(i.getNode())):!1===t&&Gc(i)&&Fc(a,i)?Rc(a,i).map(function(e){return Zc.remove(e.getNode())}):t&&$c(i)&&Oc(a,i)?Hc(a,i).map(function(e){return Zc.remove(e.getNode())}):nd(e,t,i)}(e.getBody(),t,e.selection.getRng()).map(function(n){return n.fold(function(e,t){return function(n){return e._selectionOverrides.hideFakeCaret(),pd(e,t,$n.fromDom(n)),!0}}(e,t),function(e,t){return function(n){var r=t?ps.before(n):ps.after(n);return e.selection.setRng(r.toRange()),!0}}(e,t),function(e){return function(t){return e.selection.setRng(t.toRange()),!0}}(e))}).getOr(!1)},_d=function(e,t){var n,r=e.selection.getNode();return!!Si.isContentEditableFalse(r)&&(n=$n.fromDom(e.getBody()),W(Ha(n,".mce-offscreen-selection"),Aa),pd(e,t,$n.fromDom(e.selection.getNode())),nc(e),!0)},vd=function(e,t){return e.selection.isCollapsed()?gd(e,t):_d(e,t)},yd=function(e){var t,n=function(e,t){for(;t&&t!==e;){if(Si.isContentEditableTrue(t)||Si.isContentEditableFalse(t))return t;t=t.parentNode}return null}(e.getBody(),e.selection.getNode());return Si.isContentEditableTrue(n)&&e.dom.isBlock(n)&&e.dom.isEmpty(n)&&(t=e.dom.create("br",{"data-mce-bogus":"1"}),e.dom.setHTML(n,""),n.appendChild(t),e.selection.setRng(ps.before(t).toRange())),!0},bd=Si.isText,wd=function(e){return bd(e)&&e.data[0]===uo},Md=function(e){return bd(e)&&e.data[e.data.length-1]===uo},kd=function(e){return e.ownerDocument.createTextNode(uo)},Ld=function(e,t){return e?function(e){if(bd(e.previousSibling))return Md(e.previousSibling)?e.previousSibling:(e.previousSibling.appendData(uo),e.previousSibling);if(bd(e))return wd(e)?e:(e.insertData(0,uo),e);var t=kd(e);return e.parentNode.insertBefore(t,e),t}(t):function(e){if(bd(e.nextSibling))return wd(e.nextSibling)?e.nextSibling:(e.nextSibling.insertData(0,uo),e.nextSibling);if(bd(e))return Md(e)?e:(e.appendData(uo),e);var t=kd(e);return e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t}(t)},Dd=s(Ld,!0),xd=s(Ld,!1),Ad=function(e,t){return Si.isText(e.container())?Ld(t,e.container()):Ld(t,e.getNode())},Cd=function(e,t){var n=t.get();return n&&e.container()===n&&ho(n)},Td=function(e,t){return t.fold(function(t){Gs.remove(e.get());var n=Dd(t);return e.set(n),x.some(ps(n,n.length-1))},function(t){return qu.firstPositionIn(t).map(function(t){if(Cd(t,e))return ps(e.get(),1);Gs.remove(e.get());var n=Ad(t,!0);return e.set(n),ps(n,1)})},function(t){return qu.lastPositionIn(t).map(function(t){if(Cd(t,e))return ps(e.get(),e.get().length-1);Gs.remove(e.get());var n=Ad(t,!1);return e.set(n),ps(n,n.length-1)})},function(t){Gs.remove(e.get());var n=xd(t);return e.set(n),x.some(ps(n,1))})},Sd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n].apply(null,t);if(r.isSome())return r}return x.none()},Yd=Ec([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),Nd=function(e,t){var n=du(t,e);return n||e},Ed=function(e,t,n){var r=ec.normalizeForwards(n),i=Nd(t,r.container());return ec.findRootInline(e,i,r).fold(function(){return qu.nextPosition(i,r).bind(s(ec.findRootInline,e,i)).map(function(e){return Yd.before(e)})},x.none)},Pd=function(e,t){return null===Rs(e,t)},Id=function(e,t,n){return ec.findRootInline(e,t,n).filter(s(Pd,t))},Od=function(e,t,n){var r=ec.normalizeBackwards(n);return Id(e,t,r).bind(function(e){return qu.prevPosition(e,r).isNone()?x.some(Yd.start(e)):x.none()})},Fd=function(e,t,n){var r=ec.normalizeForwards(n);return Id(e,t,r).bind(function(e){return qu.nextPosition(e,r).isNone()?x.some(Yd.end(e)):x.none()})},Rd=function(e,t,n){var r=ec.normalizeBackwards(n),i=Nd(t,r.container());return ec.findRootInline(e,i,r).fold(function(){return qu.prevPosition(i,r).bind(s(ec.findRootInline,e,i)).map(function(e){return Yd.after(e)})},x.none)},Hd=function(e){return!1===ec.isRtl(Bd(e))},jd=function(e,t,n){return Sd([Ed,Od,Fd,Rd],[e,t,n]).filter(Hd)},Bd=function(e){return e.fold(o,o,o,o)},Wd=function(e){return e.fold(a("before"),a("start"),a("end"),a("after"))},Ud=function(e){return e.fold(Yd.before,Yd.before,Yd.after,Yd.after)},zd=function(e,t,n,r,i,a){return Jo(ec.findRootInline(t,n,r),ec.findRootInline(t,n,i),function(t,r){return t!==r&&ec.hasSameParentBlock(n,t,r)?Yd.after(e?t:r):a}).getOr(a)},Jd=function(e,t){return e.fold(a(!0),function(e){return r=t,!(Wd(n=e)===Wd(r)&&Bd(n)===Bd(r));var n,r})},qd=function(e,t){return e?t.fold(i(x.some,Yd.start),x.none,i(x.some,Yd.after),x.none):t.fold(x.none,i(x.some,Yd.before),x.none,i(x.some,Yd.end))},Vd=function(e,t,n,r){var i=ec.normalizePosition(e,r),a=jd(t,n,i);return jd(t,n,i).bind(s(qd,e)).orThunk(function(){return function(e,t,n,r,i){var a=ec.normalizePosition(e,i);return qu.fromPosition(e,n,a).map(s(ec.normalizePosition,e)).fold(function(){return r.map(Ud)},function(i){return jd(t,n,i).map(s(zd,e,t,n,a,i)).filter(s(Jd,r))}).filter(Hd)}(e,t,n,a,r)})},Gd=jd,$d=Vd,Kd=(s(Vd,!1),s(Vd,!0),Ud),Qd=function(e){return e.fold(Yd.start,Yd.start,Yd.end,Yd.end)},Xd=function(e){return E(e.selection.getSel().modify)},Zd=function(e,t,n){var r=e?1:-1;return t.setRng(ps(n.container(),n.offset()+r).toRange()),t.getSel().modify("move",e?"forward":"backward","word"),!0},ef=function(e,t){var n=t.selection.getRng(),r=e?ps.fromRangeEnd(n):ps.fromRangeStart(n);return!!Xd(t)&&(e&&_o(r)?Zd(!0,t.selection,r):!(e||!vo(r))&&Zd(!1,t.selection,r))},tf=function(e,t){var n=e.dom.createRng();n.setStart(t.container(),t.offset()),n.setEnd(t.container(),t.offset()),e.selection.setRng(n)},nf=function(e){return!1!==e.settings.inline_boundaries},rf=function(e,t){e?t.setAttribute("data-mce-selected","inline-boundary"):t.removeAttribute("data-mce-selected")},af=function(e,t,n){return Td(t,n).map(function(t){return tf(e,t),n})},of=function(e,t,n){return function(){return!!nf(t)&&ef(e,t)}},sf={move:function(e,t,n){return function(){return!!nf(e)&&function(e,t,n){var r=e.getBody(),i=ps.fromRangeStart(e.selection.getRng()),a=s(ec.isInlineTarget,e);return $d(n,a,r,i).bind(function(n){return af(e,t,n)})}(e,t,n).isSome()}},moveNextWord:s(of,!0),movePrevWord:s(of,!1),setupSelectedState:function(e){var t=Sa(null),n=s(ec.isInlineTarget,e);return e.on("NodeChange",function(r){nf(e)&&(function(e,t,n){var r=z(t.select('*[data-mce-selected="inline-boundary"]'),e),i=z(n,e);W(K(r,i),s(rf,!1)),W(K(i,r),s(rf,!0))}(n,e.dom,r.parents),function(e,t){if(e.selection.isCollapsed()&&!0!==e.composing&&t.get()){var n=ps.fromRangeStart(e.selection.getRng());ps.isTextPosition(n)&&!1===ec.isAtZwsp(n)&&(tf(e,Gs.removeAndReposition(t.get(),n)),t.set(null))}}(e,t),function(e,t,n,r){if(t.selection.isCollapsed()){var i=z(r,e);W(i,function(r){var i=ps.fromRangeStart(t.selection.getRng());Gd(e,t.getBody(),i).bind(function(e){return af(t,n,e)})})}}(n,e,t,r.parents))}),t},setCaretPosition:tf},uf=function(e,t){return function(n){return Td(t,n).map(function(t){return sf.setCaretPosition(e,t),!0}).getOr(!1)}},lf=function(e,t,r,i){var a=e.getBody(),o=s(ec.isInlineTarget,e);e.undoManager.ignore(function(){e.selection.setRng(function(e,t){var r=n.document.createRange();return r.setStart(e.container(),e.offset()),r.setEnd(t.container(),t.offset()),r}(r,i)),e.execCommand("Delete"),Gd(o,a,ps.fromRangeStart(e.selection.getRng())).map(Qd).map(uf(e,t))}),e.nodeChanged()},cf=function(e,t,n,r){var i=function(e,t){var n=du(t,e);return n||e}(e.getBody(),r.container()),o=s(ec.isInlineTarget,e),u=Gd(o,i,r);return u.bind(function(e){return n?e.fold(a(x.some(Qd(e))),x.none,a(x.some(Kd(e))),x.none):e.fold(x.none,a(x.some(Kd(e))),x.none,a(x.some(Qd(e))))}).map(uf(e,t)).getOrThunk(function(){var a=qu.navigate(n,i,r),s=a.bind(function(e){return Gd(o,i,e)});return u.isSome()&&s.isSome()?ec.findRootInline(o,i,r).map(function(t){return!!function(e){return Jo(qu.firstPositionIn(e),qu.lastPositionIn(e),function(t,n){var r=ec.normalizePosition(!0,t),i=ec.normalizePosition(!1,n);return qu.nextPosition(e,r).map(function(e){return e.isEqual(i)}).getOr(!0)}).getOr(!0)}(t)&&(pd(e,n,$n.fromDom(t)),!0)}).getOr(!1):s.bind(function(i){return a.map(function(i){return n?lf(e,t,r,i):lf(e,t,i,r),!0})}).getOr(!1)})},df=function(e,t,n){if(e.selection.isCollapsed()&&function(e){return!1!==e.settings.inline_boundaries}(e)){var r=ps.fromRangeStart(e.selection.getRng());return cf(e,t,n,r)}return!1},ff=yr("start","end"),mf=yr("rng","table","cells"),hf=Ec([{removeTable:["element"]},{emptyCells:["cells"]}]),pf=function(e,t){return Ja($n.fromDom(e),"td,th",t)},gf=function(e,t){return Ua(e,"table",t)},_f=function(e){return!1===Cr(e.start(),e.end())},vf=function(e,t){return gf(e.start(),t).bind(function(n){return gf(e.end(),t).bind(function(e){return Cr(n,e)?x.some(n):x.none()})})},yf=function(e){return Ha(e,"td,th")},bf=function(e,t){var n=pf(t.startContainer,e),r=pf(t.endContainer,e);return t.collapsed?x.none():Jo(n,r,ff).fold(function(){return n.fold(function(){return r.bind(function(t){return gf(t,e).bind(function(e){return Q(yf(e)).map(function(e){return ff(e,t)})})})},function(t){return gf(t,e).bind(function(e){return X(yf(e)).map(function(e){return ff(t,e)})})})},function(t){return wf(e,t)?x.none():function(e,t){return gf(e.start(),t).bind(function(t){return X(yf(t)).map(function(t){return ff(e.start(),t)})})}(t,e)})},wf=function(e,t){return vf(t,e).isSome()},Mf=function(e,t){var n=function(e){return s(Cr,e)}(e);return function(e,t){var n=pf(e.startContainer,t),r=pf(e.endContainer,t);return Jo(n,r,ff).filter(_f).filter(function(e){return wf(t,e)}).orThunk(function(){return bf(t,e)})}(t,n).bind(function(e){return function(e,t){return vf(e,t).map(function(t){return mf(e,t,yf(t))})}(e,n)})},kf=function(e,t){return V(e,function(e){return Cr(e,t)})},Lf=function(e){return function(e){return Jo(kf(e.cells(),e.rng().start()),kf(e.cells(),e.rng().end()),function(t,n){return e.cells().slice(t,n+1)})}(e).map(function(t){var n=e.cells();return t.length===n.length?hf.removeTable(e.table()):hf.emptyCells(t)})},Df=function(e,t){return Mf(e,t).bind(Lf)},xf=function(e){var t=[];if(e)for(var n=0;n<e.rangeCount;n++)t.push(e.getRangeAt(n));return t},Af=xf,Cf=function(e){return G(e,function(e){var t=Bo(e);return t?[$n.fromDom(t)]:[]})},Tf=function(e){return xf(e).length>1},Sf=function(e){return z(Cf(e),_i)},Yf=function(e){return Ha(e,"td[data-mce-selected],th[data-mce-selected]")},Nf=function(e,t){var n=Yf(t),r=Sf(e);return n.length>0?n:r},Ef=Nf,Pf=function(e){return Nf(Af(e.selection.getSel()),$n.fromDom(e.getBody()))},If=function(e,t){return W(t,Rl),e.selection.setCursorLocation(t[0].dom(),0),!0},Of=function(e,t){return pd(e,!1,t),!0},Ff=function(e,t,n,r){return Hf(t,r).fold(function(){return function(e,t,n){return Df(t,n).map(function(t){return t.fold(s(Of,e),s(If,e))})}(e,t,n)},function(t){return function(e,t){return jf(e,t)}(e,t)}).getOr(!1)},Rf=function(e,t){return q(vc(t,e),_i)},Hf=function(e,t){return q(vc(t,e),function(e){return"caption"===Zn(e)})},jf=function(e,t){return Rl(t),e.selection.setCursorLocation(t.dom(),0),x.some(!0)},Bf=function(e,t,n,r,i){return qu.navigate(n,e.getBody(),i).bind(function(a){return function(e,t,n,r){return qu.firstPositionIn(e.dom()).bind(function(i){return qu.lastPositionIn(e.dom()).map(function(e){return t?n.isEqual(i)&&r.isEqual(e):n.isEqual(e)&&r.isEqual(i)})}).getOr(!0)}(r,n,i,a)?function(e,t){return jf(e,t)}(e,r):function(e,t,n){return Hf(e,$n.fromDom(n.getNode())).map(function(e){return!1===Cr(e,t)})}(t,r,a)}).or(x.some(!0))},Wf=function(e,t,n,r){var i=ps.fromRangeStart(e.selection.getRng());return Rf(n,r).bind(function(r){return lc(r)?jf(e,r):function(e,t,n,r,i){return qu.navigate(n,e.getBody(),i).bind(function(e){return Rf(t,$n.fromDom(e.getNode())).map(function(e){return!1===Cr(e,r)})})}(e,n,t,r,i)})},Uf=function(e,t,n){var r=$n.fromDom(e.getBody());return Hf(r,n).fold(function(){return Wf(e,t,r,n)},function(n){return function(e,t,n,r){var i=ps.fromRangeStart(e.selection.getRng());return lc(r)?jf(e,r):Bf(e,n,t,r,i)}(e,t,r,n)}).getOr(!1)},zf=function(e,t){var n=$n.fromDom(e.selection.getStart(!0)),r=Pf(e);return e.selection.isCollapsed()&&0===r.length?Uf(e,t,n):function(e,t){var n=$n.fromDom(e.getBody()),r=e.selection.getRng(),i=Pf(e);return 0!==i.length?If(e,i):Ff(e,n,r,t)}(e,n)},Jf=il.isEq,qf=function(e,t,n){var r=e.formatter.get(n);if(r)for(var i=0;i<r.length;i++)if(!1===r[i].inherit&&e.dom.is(t,r[i].selector))return!0;return!1},Vf=function(e,t,n,r){var i=e.dom.getRoot();return t!==i&&(t=e.dom.getParent(t,function(t){return!!qf(e,t,n)||t.parentNode===i||!!Kf(e,t,n,r,!0)}),Kf(e,t,n,r))},Gf=function(e,t,n){return!!Jf(t,n.inline)||!!Jf(t,n.block)||(n.selector?1===t.nodeType&&e.is(t,n.selector):void 0)},$f=function(e,t,n,r,i,a){var o,s,u,l=n[r];if(n.onmatch)return n.onmatch(t,n,r);if(l)if(void 0===l.length){for(o in l)if(l.hasOwnProperty(o)){if(s="attributes"===r?e.getAttrib(t,o):il.getStyle(e,t,o),i&&!s&&!n.exact)return;if((!i||n.exact)&&!Jf(s,il.normalizeStyleValue(e,il.replaceVars(l[o],a),o)))return}}else for(u=0;u<l.length;u++)if("attributes"===r?e.getAttrib(t,l[u]):il.getStyle(e,t,l[u]))return n;return n},Kf=function(e,t,n,r,i){var a,o,s,u,l=e.formatter.get(n),c=e.dom;if(l&&t)for(o=0;o<l.length;o++)if(a=l[o],Gf(e.dom,t,a)&&$f(c,t,a,"attributes",i,r)&&$f(c,t,a,"styles",i,r)){if(u=a.classes)for(s=0;s<u.length;s++)if(!e.dom.hasClass(t,u[s]))return;return a}},Qf={matchNode:Kf,matchName:Gf,match:function(e,t,n,r){var i;return r?Vf(e,r,t,n):(r=e.selection.getNode(),!!Vf(e,r,t,n)||!((i=e.selection.getStart())===r||!Vf(e,i,t,n)))},matchAll:function(e,t,n){var r,i=[],a={};return r=e.selection.getStart(),e.dom.getParent(r,function(r){var o,s;for(o=0;o<t.length;o++)s=t[o],!a[s]&&Kf(e,r,s,n)&&(a[s]=!0,i.push(s))},e.dom.getRoot()),i},canApply:function(e,t){var n,r,i,a,o,s=e.formatter.get(t),u=e.dom;if(s)for(n=e.selection.getStart(),r=il.getParents(u,n),a=s.length-1;a>=0;a--){if(!(o=s[a].selector)||s[a].defaultBlock)return!0;for(i=r.length-1;i>=0;i--)if(u.is(r[i],o))return!0}return!1},matchesUnInheritedFormatSelector:qf},Xf=function(e,t){return e.splitText(t)},Zf={split:function(e){var t=e.startContainer,n=e.startOffset,r=e.endContainer,i=e.endOffset;return t===r&&Si.isText(t)?n>0&&n<t.nodeValue.length&&(t=(r=Xf(t,n)).previousSibling,i>n?(t=r=Xf(r,i-=n).previousSibling,i=r.nodeValue.length,n=0):i=0):(Si.isText(t)&&n>0&&n<t.nodeValue.length&&(t=Xf(t,n),n=0),Si.isText(r)&&i>0&&i<r.nodeValue.length&&(i=(r=Xf(r,i).previousSibling).nodeValue.length)),{startContainer:t,startOffset:n,endContainer:r,endOffset:i}}},em=uo,tm=function(e){return function(e){for(var t=[];e;){if(3===e.nodeType&&e.nodeValue!==em||e.childNodes.length>1)return[];1===e.nodeType&&t.push(e),e=e.firstChild}return t}(e).length>0},nm=function(e){var t;if(e)for(e=(t=new ri(e,e)).current();e;e=t.next())if(3===e.nodeType)return e;return null},rm=function(e){var t=$n.fromTag("span");return mr(t,{id:"_mce_caret","data-mce-bogus":"1","data-mce-type":"format-caret"}),e&&La(t,$n.fromText(em)),t},im=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,i=e.selection;if(tm(t))pd(e,!1,$n.fromDom(t),n);else{var a=i.getRng(),o=r.getParent(t,r.isBlock),s=function(e){var t=nm(e);return t&&t.nodeValue.charAt(0)===em&&t.deleteData(0,1),t}(t);a.startContainer===s&&a.startOffset>0&&a.setStart(s,a.startOffset-1),a.endContainer===s&&a.endOffset>0&&a.setEnd(s,a.endOffset-1),r.remove(t,!0),o&&r.isEmpty(o)&&Rl($n.fromDom(o)),i.setRng(a)}},am=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,i=e.selection;if(t)im(e,t,n);else if(!(t=Rs(e.getBody(),i.getStart())))for(;t=r.get("_mce_caret");)im(e,t,!1)},om=function(e,t,n){var r=e.dom,i=r.getParent(n,s(il.isTextBlock,e));i&&r.isEmpty(i)?n.parentNode.replaceChild(t,n):(Fl($n.fromDom(n)),r.isEmpty(n)?n.parentNode.replaceChild(t,n):r.insertAfter(t,n))},sm=function(e,t){return e.appendChild(t),t},um=function(e,t){var n,r,i=(n=function(e,t){return sm(e,t.cloneNode(!1))},r=t,function(e,t){for(var n=e.length-1;n>=0;n--)t(e[n],n)}(e,function(e){r=n(r,e)}),r);return sm(i,i.ownerDocument.createTextNode(em))},lm=function(e){e.on("mouseup keydown",function(t){!function(e,t){var n=e.selection,r=e.getBody();am(e,null,!1),8!==t&&46!==t||!n.isCollapsed()||n.getStart().innerHTML!==em||am(e,Rs(r,n.getStart())),37!==t&&39!==t||am(e,Rs(r,n.getStart()))}(e,t.keyCode)})},cm=function(e,t){return e.schema.getTextInlineElements().hasOwnProperty(Zn(t))&&!Fs(t.dom())&&!Si.isBogus(t.dom())},dm=function(e){return 1===Fr(e).length},fm=function(e,t,n,r){var i=s(cm,t),a=B(z(r,i),function(e){return e.dom()});if(0===a.length)pd(t,e,n);else{var o=function(e,t){var n=rm(!1),r=um(t,n.dom());return wa($n.fromDom(e),n),Aa($n.fromDom(e)),ps(r,0)}(n.dom(),a);t.selection.setRng(o.toRange())}},mm=function(e,t){var n=$n.fromDom(e.getBody()),r=$n.fromDom(e.selection.getStart()),i=z(function(e,t){var n=vc(t,e);return V(n,li).fold(a(n),function(e){return n.slice(0,e)})}(n,r),dm);return X(i).map(function(n){var r,a=ps.fromRangeStart(e.selection.getRng());return!(!rc(t,a,n.dom())||(r=n,Fs(r.dom())&&tm(r.dom()))||(fm(t,e,n,i),0))}).getOr(!1)},hm=function(e,t){return!!e.selection.isCollapsed()&&mm(e,t)},pm=function(e){for(var t=0,n=0,r=e;r&&r.nodeType;)t+=r.offsetLeft||0,n+=r.offsetTop||0,r=r.offsetParent;return{x:t,y:n}},gm=function(e,t,n){var r,i,a,o,s=e.dom,u=s.getRoot(),l=0;if(!function(e,t,n){var r={elm:t,alignToTop:n};return e.fire("scrollIntoView",r),r.isDefaultPrevented()}(e,t,n)&&Si.isElement(t)){if(!1===n&&(l=t.offsetHeight),"BODY"!==u.nodeName){var c=e.selection.getScrollContainer();if(c)return r=pm(t).y-pm(c).y+l,o=c.clientHeight,void((r<(a=c.scrollTop)||r+25>a+o)&&(c.scrollTop=r<a?r:r-o+25))}i=s.getViewPort(e.getWin()),r=s.getPos(t).y+l,a=i.y,o=i.h,(r<i.y||r+25>a+o)&&e.getWin().scrollTo(0,r<a?r:r-o+25)}},_m=function(e,t){Q(ms.fromRangeStart(t).getClientRects()).each(function(t){var n,r,i=function(e){if(e.inline)return e.getBody().getBoundingClientRect();var t=e.getWin();return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight}}(e),a={x:function(e,t){return t.left>e.left&&t.right<e.right?0:t.left<e.left?t.left-e.left:t.right-e.right}(n=i,r=t),y:function(e,t){return t.top>e.top&&t.bottom<e.bottom?0:t.top<e.top?t.top-e.top:t.bottom-e.bottom}(n,r)};!function(e,t,n){e.inline?(e.getBody().scrollLeft+=t,e.getBody().scrollTop+=n):e.getWin().scrollBy(t,n)}(e,0!==a.x?a.x>0?a.x+4:a.x-4:0,0!==a.y?a.y>0?a.y+4:a.y-4:0)})},vm=Si.isContentEditableTrue,ym=Si.isContentEditableFalse,bm=function(e,t,n,r,i){return t._selectionOverrides.showCaret(e,n,r,i)},wm=function(e,t){return e.fire("BeforeObjectSelected",{target:t}).isDefaultPrevented()?null:function(e){var t=e.ownerDocument.createRange();return t.selectNode(e),t}(t)},Mm=function(e,t,n){var r=yu(1,e.getBody(),t),i=ps.fromRangeStart(r),a=i.getNode();if(ym(a))return bm(1,e,a,!i.isAtEnd(),!1);var o=i.getNode(!0);if(ym(o))return bm(1,e,o,!1,!1);var s=e.dom.getParent(i.getNode(),function(e){return ym(e)||vm(e)});return ym(s)?bm(1,e,s,!1,n):null},km=function(e,t,n){if(!t||!t.collapsed)return t;var r=Mm(e,t,n);return r||t},Lm=function(e,t){e.selection.setRng(t),_m(e,e.selection.getRng())},Dm=function(e,t,n,r,i,a){var o=bm(r,e,a.getNode(!i),i,!0);if(t.collapsed){var s=t.cloneRange();i?s.setEnd(o.startContainer,o.startOffset):s.setStart(o.endContainer,o.endOffset),s.deleteContents()}else t.deleteContents();return e.selection.setRng(o),function(e,t){Si.isText(t)&&0===t.data.length&&e.remove(t)}(e.dom,n),!0},xm=function(e,t){return function(e,t){var n=e.selection.getRng();if(!Si.isText(n.commonAncestorContainer))return!1;var r=t?hs.Forwards:hs.Backwards,i=Iu(e.getBody()),a=s(ku,i.next),o=s(ku,i.prev),u=t?a:o,l=t?Gc:$c,c=wu(r,e.getBody(),n),d=ec.normalizePosition(t,u(c));if(!d)return!1;if(l(d))return Dm(e,n,c.getNode(),r,t,d);var f=u(d);return!!(f&&l(f)&&Lu(d,f))&&Dm(e,n,c.getNode(),r,t,f)}(e,t)},Am=function(e,t){e.getDoc().execCommand(t,!1,null)},Cm={deleteCommand:function(e){vd(e,!1)||xm(e,!1)||df(e,!1)||Cc(e,!1)||zf(e)||Nc(e,!1)||hm(e,!1)||(Am(e,"Delete"),nc(e))},forwardDeleteCommand:function(e){vd(e,!0)||xm(e,!0)||df(e,!0)||Cc(e,!0)||zf(e)||Nc(e,!0)||hm(e,!0)||Am(e,"ForwardDelete")}},Tm=function(e,t,n){var r=function(t){return n=e,r=t.dom(),i=vr(r,n),x.from(i).filter(function(e){return e.length>0});var n,r,i};return Wa($n.fromDom(n),function(e){return r(e).isSome()},function(e){return Cr($n.fromDom(t),e)}).bind(r)},Sm=function(e){return function(t,n){return x.from(n).map($n.fromDom).filter(tr).bind(function(n){return Tm(e,t,n.dom()).or(function(e,t){return x.from(ma.DOM.getStyle(t,e,!0))}(e,n.dom()))}).getOr("")}},Ym={getFontSize:Sm("font-size"),getFontFamily:i(function(e){return e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},Sm("font-family")),toPt:function(e,t){return/[0-9.]+px$/.test(e)?function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}(72*parseInt(e,10)/96,t||0)+"pt":e}},Nm=function(e){return qu.firstPositionIn(e.getBody()).map(function(e){var t=e.container();return Si.isText(t)?t.parentNode:t})},Em=function(e){return x.from(e.selection.getRng()).bind(function(t){return function(e,t){return e.startContainer===t&&0===e.startOffset}(t,e.getBody())?x.none():x.from(e.selection.getStart(!0))})},Pm=function(e,t){if(/^[0-9\.]+$/.test(t)){var n=parseInt(t,10);if(n>=1&&n<=7){var r=Xl.getFontStyleValues(e),i=Xl.getFontSizeClasses(e);return i?i[n-1]||t:r[n-1]||t}return t}return t},Im=function(e,t){e.formatter.toggle("fontname",{value:Pm(e,t)}),e.nodeChanged()},Om=function(e){return Em(e).fold(function(){return Nm(e).map(function(t){return Ym.getFontFamily(e.getBody(),t)}).getOr("")},function(t){return Ym.getFontFamily(e.getBody(),t)})},Fm=function(e,t){e.formatter.toggle("fontsize",{value:Pm(e,t)}),e.nodeChanged()},Rm=function(e){return Em(e).fold(function(){return Nm(e).map(function(t){return Ym.getFontSize(e.getBody(),t)}).getOr("")},function(t){return Ym.getFontSize(e.getBody(),t)})},Hm={isEq:function(e,t){return e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}},jm=function(e,t,n){return null!==function(e,t,n){for(;e&&e!==t;){if(n(e))return e;e=e.parentNode}return null}(e,t,n)},Bm=function(e,t,n){return jm(e,t,function(e){return e.nodeName===n})},Wm=function(e){return e&&"TABLE"===e.nodeName},Um=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},zm=function(e,t){return po(e)&&!1===jm(e,t,Fs)},Jm=function(e,t,n){for(var r=new ri(t,e.getParent(t.parentNode,e.isBlock)||e.getRoot());t=r[n?"prev":"next"]();)if(Si.isBr(t))return!0},qm=function(e,t,n,r,i){var a,o,s,u,l=e.getRoot(),c=e.schema.getNonEmptyElements();if(s=e.getParent(i.parentNode,e.isBlock)||l,r&&Si.isBr(i)&&t&&e.isEmpty(s))return x.some(ms(i.parentNode,e.nodeIndex(i)));for(a=new ri(i,s);u=a[r?"prev":"next"]();){if("false"===e.getContentEditableParent(u)||zm(u,l))return x.none();if(Si.isText(u)&&u.nodeValue.length>0)return!1===Bm(u,l,"A")?x.some(ms(u,r?u.nodeValue.length:0)):x.none();if(e.isBlock(u)||c[u.nodeName.toLowerCase()])return x.none();o=u}return n&&o?x.some(ms(o,0)):x.none()},Vm=function(e,t,n,r){var i,a,o,s,u,l,c,d=e.getRoot(),f=!1;if(i=r[(n?"start":"end")+"Container"],a=r[(n?"start":"end")+"Offset"],c=Si.isElement(i)&&a===i.childNodes.length,u=e.schema.getNonEmptyElements(),l=n,po(i))return x.none();if(Si.isElement(i)&&a>i.childNodes.length-1&&(l=!1),Si.isDocument(i)&&(i=d,a=0),i===d){if(l&&(s=i.childNodes[a>0?a-1:0])){if(po(s))return x.none();if(u[s.nodeName]||Wm(s))return x.none()}if(i.hasChildNodes()){if(a=Math.min(!l&&a>0?a-1:a,i.childNodes.length-1),i=i.childNodes[a],a=Si.isText(i)&&c?i.data.length:0,!t&&i===d.lastChild&&Wm(i))return x.none();if(function(e,t){for(;t&&t!==e;){if(Si.isContentEditableFalse(t))return!0;t=t.parentNode}return!1}(d,i)||po(i))return x.none();if(i.hasChildNodes()&&!1===Wm(i)){s=i,o=new ri(i,d);do{if(Si.isContentEditableFalse(s)||po(s)){f=!1;break}if(Si.isText(s)&&s.nodeValue.length>0){a=l?0:s.nodeValue.length,i=s,f=!0;break}if(u[s.nodeName.toLowerCase()]&&!Um(s)){a=e.nodeIndex(s),i=s.parentNode,l||a++,f=!0;break}}while(s=l?o.next():o.prev())}}}return t&&(Si.isText(i)&&0===a&&qm(e,c,t,!0,i).each(function(e){i=e.container(),a=e.offset(),f=!0}),Si.isElement(i)&&((s=i.childNodes[a])||(s=i.childNodes[a-1]),!s||!Si.isBr(s)||function(e,t){return e.previousSibling&&e.previousSibling.nodeName===t}(s,"A")||Jm(e,s,!1)||Jm(e,s,!0)||qm(e,c,t,!0,s).each(function(e){i=e.container(),a=e.offset(),f=!0}))),l&&!t&&Si.isText(i)&&a===i.nodeValue.length&&qm(e,c,t,!1,i).each(function(e){i=e.container(),a=e.offset(),f=!0}),f?x.some(ms(i,a)):x.none()},Gm={normalize:function(e,t){var n=t.collapsed,r=t.cloneRange(),i=ms.fromRangeStart(t);return Vm(e,n,!0,r).each(function(e){n&&ms.isAbove(i,e)||r.setStart(e.container(),e.offset())}),n||Vm(e,n,!1,r).each(function(e){r.setEnd(e.container(),e.offset())}),n&&r.collapse(!0),Hm.isEq(t,r)?x.none():x.some(r)}},$m=function(e,t,n){var r=e.create("span",{},"&nbsp;");n.parentNode.insertBefore(r,n),t.scrollIntoView(r),e.remove(r)},Km=function(e,t,n,r){var i=e.createRng();r?(i.setStartBefore(n),i.setEndBefore(n)):(i.setStartAfter(n),i.setEndAfter(n)),t.setRng(i)},Qm=function(e,t){var n,r,i=e.selection,a=e.dom,o=i.getRng();Gm.normalize(a,o).each(function(e){o.setStart(e.startContainer,e.startOffset),o.setEnd(e.endContainer,e.endOffset)});var s=o.startOffset,u=o.startContainer;if(1===u.nodeType&&u.hasChildNodes()){var l=s>u.childNodes.length-1;u=u.childNodes[Math.min(s,u.childNodes.length-1)]||u,s=l&&3===u.nodeType?u.nodeValue.length:0}var c=a.getParent(u,a.isBlock),d=c?a.getParent(c.parentNode,a.isBlock):null,f=d?d.nodeName.toUpperCase():"",m=t&&t.ctrlKey;"LI"!==f||m||(c=d),u&&3===u.nodeType&&s>=u.nodeValue.length&&(function(e,t,n){for(var r,i=new ri(t,n),a=e.getNonEmptyElements();r=i.next();)if(a[r.nodeName.toLowerCase()]||r.length>0)return!0}(e.schema,u,c)||(n=a.create("br"),o.insertNode(n),o.setStartAfter(n),o.setEndAfter(n),r=!0)),n=a.create("br"),xs(a,o,n),$m(a,i,n),Km(a,i,n,r),e.undoManager.add()},Xm=function(e,t){var n=$n.fromTag("br");wa($n.fromDom(t),n),e.undoManager.add()},Zm=function(e,t){eh(e.getBody(),t)||Ma($n.fromDom(t),$n.fromTag("br"));var n=$n.fromTag("br");Ma($n.fromDom(t),n),$m(e.dom,e.selection,n.dom()),Km(e.dom,e.selection,n.dom(),!1),e.undoManager.add()},eh=function(e,t){return n=ps.after(t),!!Si.isBr(n.getNode())||qu.nextPosition(e,ps.after(t)).map(function(e){return Si.isBr(e.getNode())}).getOr(!1);var n},th=function(e){return e&&"A"===e.nodeName&&"href"in e},nh=function(e){return e.fold(a(!1),th,th,a(!1))},rh=function(e,t){t.fold(r,s(Xm,e),s(Zm,e),r)},ih={insert:function(e,t){var n=function(e){var t=s(ec.isInlineTarget,e),n=ps.fromRangeStart(e.selection.getRng());return Gd(t,e.getBody(),n).filter(nh)}(e);n.isSome()?n.each(s(rh,e)):Qm(e,t)}},ah={create:yr("start","soffset","finish","foffset")},oh=Ec([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),sh=(oh.before,oh.on,oh.after,function(e){return e.fold(o,o,o)}),uh=Ec([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),lh={domRange:uh.domRange,relative:uh.relative,exact:uh.exact,exactFromRange:function(e){return uh.exact(e.start(),e.soffset(),e.finish(),e.foffset())},getWin:function(e){var t=function(e){return e.match({domRange:function(e){return $n.fromDom(e.startContainer)},relative:function(e,t){return sh(e)},exact:function(e,t,n,r){return e}})}(e);return Yr(t)},range:ah.create},ch=Vn.detect().browser,dh=function(e,t){var n=nr(t)?bl(t).length:Fr(t).length+1;return e>n?n:e<0?0:e},fh=function(e){return lh.range(e.start(),dh(e.soffset(),e.start()),e.finish(),dh(e.foffset(),e.finish()))},mh=function(e,t){return!Si.isRestrictedNode(t.dom())&&(Tr(e,t)||Cr(e,t))},hh=function(e){return function(t){return mh(e,t.start())&&mh(e,t.finish())}},ph=function(e){return!0===e.inline||ch.isIE()},gh=function(e){return lh.range($n.fromDom(e.startContainer),e.startOffset,$n.fromDom(e.endContainer),e.endOffset)},_h=function(e){var t=e.getSelection();return(t&&0!==t.rangeCount?x.from(t.getRangeAt(0)):x.none()).map(gh)},vh=function(e){var t=Yr(e);return _h(t.dom()).filter(hh(e))},yh=function(e,t){return x.from(t).filter(hh(e)).map(fh)},bh=function(e){var t=n.document.createRange();try{return t.setStart(e.start().dom(),e.soffset()),t.setEnd(e.finish().dom(),e.foffset()),x.some(t)}catch(e){return x.none()}},wh=function(e){return(e.bookmark?e.bookmark:x.none()).bind(s(yh,$n.fromDom(e.getBody()))).bind(bh)},Mh={store:function(e){var t=ph(e)?vh($n.fromDom(e.getBody())):x.none();e.bookmark=t.isSome()?t:e.bookmark},storeNative:function(e,t){var n=$n.fromDom(e.getBody()),r=(ph(e)?x.from(t):x.none()).map(gh).filter(hh(n));e.bookmark=r.isSome()?r:e.bookmark},readRange:_h,restore:function(e){wh(e).each(function(t){e.selection.setRng(t)})},getRng:wh,getBookmark:vh,validate:yh},kh=function(e){return mi(e)||hi(e)},Lh=function(e){return z(B(e.selection.getSelectedBlocks(),$n.fromDom),function(e){return!kh(e)&&!function(e){return Nr(e).map(kh).getOr(!1)}(e)})},Dh=function(e,t){var n=e.settings,r=e.dom,i=e.selection,a=e.formatter,o=/[a-z%]+$/i.exec(n.indentation)[0],s=parseInt(n.indentation,10),u=e.getParam("indent_use_margin",!1);e.queryCommandState("InsertUnorderedList")||e.queryCommandState("InsertOrderedList")||n.forced_root_block||r.getParent(i.getNode(),r.isBlock)||a.apply("div"),W(Lh(e),function(e){!function(e,t,n,r,i,a){if("false"!==e.getContentEditable(a)){var o=n?"margin":"padding";if(o="TABLE"===a.nodeName?"margin":o,o+="rtl"===e.getStyle(a,"direction",!0)?"Right":"Left","outdent"===t){var s=Math.max(0,parseInt(a.style[o]||0,10)-r);e.setStyle(a,o,s?s+i:"")}else s=parseInt(a.style[o]||0,10)+r+i,e.setStyle(a,o,s)}}(r,t,u,s,o,e.dom())})},xh=Vt.each,Ah=Vt.extend,Ch=Vt.map,Th=Vt.inArray;function Sh(e){var t,n,r,i,a={state:{},exec:{},value:{}},o=e.settings;e.on("PreInit",function(){t=e.dom,n=e.selection,o=e.settings,r=e.formatter});var s=function(t){var n;if(!e.quirks.isHidden()&&!e.removed){if(t=t.toLowerCase(),n=a.state[t])return n(t);try{return e.getDoc().queryCommandState(t)}catch(e){}return!1}},u=function(e,t){t=t||"exec",xh(e,function(e,n){xh(n.toLowerCase().split(","),function(n){a[t][n]=e})})},l=function(t,n,r){t=t.toLowerCase(),a.value[t]=function(){return n.call(r||e)}};Ah(this,{execCommand:function(t,n,r,i){var o,s,u=!1;if(!e.removed){if(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(t)||i&&i.skip_focus?Mh.restore(e):e.focus(),(i=e.fire("BeforeExecCommand",{command:t,ui:n,value:r})).isDefaultPrevented())return!1;if(s=t.toLowerCase(),o=a.exec[s])return o(s,n,r),e.fire("ExecCommand",{command:t,ui:n,value:r}),!0;if(xh(e.plugins,function(i){if(i.execCommand&&i.execCommand(t,n,r))return e.fire("ExecCommand",{command:t,ui:n,value:r}),u=!0,!1}),u)return u;if(e.theme&&e.theme.execCommand&&e.theme.execCommand(t,n,r))return e.fire("ExecCommand",{command:t,ui:n,value:r}),!0;try{u=e.getDoc().execCommand(t,n,r)}catch(e){}return!!u&&(e.fire("ExecCommand",{command:t,ui:n,value:r}),!0)}},queryCommandState:s,queryCommandValue:function(t){var n;if(!e.quirks.isHidden()&&!e.removed){if(t=t.toLowerCase(),n=a.value[t])return n(t);try{return e.getDoc().queryCommandValue(t)}catch(e){}}},queryCommandSupported:function(t){if(t=t.toLowerCase(),a.exec[t])return!0;try{return e.getDoc().queryCommandSupported(t)}catch(e){}return!1},addCommands:u,addCommand:function(t,n,r){t=t.toLowerCase(),a.exec[t]=function(t,i,a,o){return n.call(r||e,i,a,o)}},addQueryStateHandler:function(t,n,r){t=t.toLowerCase(),a.state[t]=function(){return n.call(r||e)}},addQueryValueHandler:l,hasCustomCommand:function(e){return e=e.toLowerCase(),!!a.exec[e]}});var c=function(t,n,r){return void 0===n&&(n=!1),void 0===r&&(r=null),e.getDoc().execCommand(t,n,r)},d=function(e){return r.match(e)},f=function(t,n){r.toggle(t,n?{value:n}:void 0),e.nodeChanged()},m=function(e){i=n.getBookmark(e)},h=function(){n.moveToBookmark(i)};u({"mceResetDesignMode,mceBeginUndoLevel":function(){},"mceEndUndoLevel,mceAddUndoLevel":function(){e.undoManager.add()},"Cut,Copy,Paste":function(t){var n,r=e.getDoc();try{c(t)}catch(e){n=!0}if("paste"!==t||r.queryCommandEnabled(t)||(n=!0),n||!r.queryCommandSupported(t)){var i=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");le.mac&&(i=i.replace(/Ctrl\+/g,"⌘+")),e.notificationManager.open({text:i,type:"error"})}},unlink:function(){if(n.isCollapsed()){var t=e.dom.getParent(e.selection.getStart(),"a");t&&e.dom.remove(t,!0)}else r.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(e){var t=e.substring(7);"full"===t&&(t="justify"),xh("left,center,right,justify".split(","),function(e){t!==e&&r.remove("align"+e)}),"none"!==t&&f("align"+t)},"InsertUnorderedList,InsertOrderedList":function(e){var r,i;c(e),(r=t.getParent(n.getNode(),"ol,ul"))&&(i=r.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(i.nodeName)&&(m(),t.split(i,r),h()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){f(e)},"ForeColor,HiliteColor":function(e,t,n){f(e,n)},FontName:function(t,n,r){Im(e,r)},FontSize:function(t,n,r){Fm(e,r)},RemoveFormat:function(e){r.remove(e)},mceBlockQuote:function(){f("blockquote")},FormatBlock:function(e,t,n){return f(n||"p")},mceCleanup:function(){var t=n.getBookmark();e.setContent(e.getContent()),n.moveToBookmark(t)},mceRemoveNode:function(t,r,i){var a=i||n.getNode();a!==e.getBody()&&(m(),e.dom.remove(a,!0),h())},mceSelectNodeDepth:function(r,i,a){var o=0;t.getParent(n.getNode(),function(e){if(1===e.nodeType&&o++===a)return n.select(e),!1},e.getBody())},mceSelectNode:function(e,t,r){n.select(r)},mceInsertContent:function(t,n,r){$l.insertAtCaret(e,r)},mceInsertRawHTML:function(t,r,i){n.setContent("tiny_mce_marker");var a=e.getContent();e.setContent(a.replace(/tiny_mce_marker/g,function(){return i}))},mceToggleFormat:function(e,t,n){f(n)},mceSetContent:function(t,n,r){e.setContent(r)},"Indent,Outdent":function(t){Dh(e,t)},mceRepaint:function(){},InsertHorizontalRule:function(){e.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){e.hasVisual=!e.hasVisual,e.addVisual()},mceReplaceContent:function(t,r,i){e.execCommand("mceInsertContent",!1,i.replace(/\{\$selection\}/g,n.getContent({format:"text"})))},mceInsertLink:function(e,i,a){var o;"string"==typeof a&&(a={href:a}),o=t.getParent(n.getNode(),"a"),a.href=a.href.replace(" ","%20"),o&&a.href||r.remove("link"),a.href&&r.apply("link",a,o)},selectAll:function(){var e=t.getParent(n.getStart(),Si.isContentEditableTrue);if(e){var r=t.createRng();r.selectNodeContents(e),n.setRng(r)}},delete:function(){Cm.deleteCommand(e)},forwardDelete:function(){Cm.forwardDeleteCommand(e)},mceNewDocument:function(){e.setContent("")},InsertLineBreak:function(t,n,r){return ih.insert(e,r),!0}});var p=function(e){return function(){var i=n.isCollapsed()?[t.getParent(n.getNode(),t.isBlock)]:n.getSelectedBlocks(),a=Ch(i,function(t){return!!r.matchNode(t,e)});return-1!==Th(a,!0)}};u({JustifyLeft:p("alignleft"),JustifyCenter:p("aligncenter"),JustifyRight:p("alignright"),JustifyFull:p("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){return d(e)},mceBlockQuote:function(){return d("blockquote")},Outdent:function(){var e;if(o.inline_styles){if((e=t.getParent(n.getStart(),t.isBlock))&&parseInt(e.style.paddingLeft,10)>0)return!0;if((e=t.getParent(n.getEnd(),t.isBlock))&&parseInt(e.style.paddingLeft,10)>0)return!0}return s("InsertUnorderedList")||s("InsertOrderedList")||!o.inline_styles&&!!t.getParent(n.getNode(),"BLOCKQUOTE")},"InsertUnorderedList,InsertOrderedList":function(e){var r=t.getParent(n.getNode(),"ul,ol");return r&&("insertunorderedlist"===e&&"UL"===r.tagName||"insertorderedlist"===e&&"OL"===r.tagName)}},"state"),u({Undo:function(){e.undoManager.undo()},Redo:function(){e.undoManager.redo()}}),l("FontName",function(){return Om(e)},this),l("FontSize",function(){return Rm(e)},this)}var Yh=Vt.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend"," "),Nh=function(e){var t,n,r=this,i={},a=function(){return!1},o=function(){return!0};t=(e=e||{}).scope||r,n=e.toggleEvent||a;var s=function(e,t,o,s){var u,l,c;if(!1===t&&(t=a),t)for(t={func:t},s&&Vt.extend(t,s),c=(l=e.toLowerCase().split(" ")).length;c--;)e=l[c],(u=i[e])||(u=i[e]=[],n(e,!0)),o?u.unshift(t):u.push(t);return r},u=function(e,t){var a,o,s,u,l;if(e)for(a=(u=e.toLowerCase().split(" ")).length;a--;){if(e=u[a],o=i[e],!e){for(s in i)n(s,!1),delete i[s];return r}if(o){if(t)for(l=o.length;l--;)o[l].func===t&&(o=o.slice(0,l).concat(o.slice(l+1)),i[e]=o);else o.length=0;o.length||(n(e,!1),delete i[e])}}else{for(e in i)n(e,!1);i={}}return r};r.fire=function(n,r){var s,l,c,d;if(n=n.toLowerCase(),(r=r||{}).type=n,r.target||(r.target=t),r.preventDefault||(r.preventDefault=function(){r.isDefaultPrevented=o},r.stopPropagation=function(){r.isPropagationStopped=o},r.stopImmediatePropagation=function(){r.isImmediatePropagationStopped=o},r.isDefaultPrevented=a,r.isPropagationStopped=a,r.isImmediatePropagationStopped=a),e.beforeFire&&e.beforeFire(r),s=i[n])for(l=0,c=s.length;l<c;l++){if((d=s[l]).once&&u(n,d.func),r.isImmediatePropagationStopped())return r.stopPropagation(),r;if(!1===d.func.call(t,r))return r.preventDefault(),r}return r},r.on=s,r.off=u,r.once=function(e,t,n){return s(e,t,n,{once:!0})},r.has=function(e){return e=e.toLowerCase(),!(!i[e]||0===i[e].length)}};Nh.isNative=function(e){return!!Yh[e.toLowerCase()]};var Eh,Ph=function(e){return e._eventDispatcher||(e._eventDispatcher=new Nh({scope:e,toggleEvent:function(t,n){Nh.isNative(t)&&e.toggleNativeEvent&&e.toggleNativeEvent(t,n)}})),e._eventDispatcher},Ih={fire:function(e,t,n){if(this.removed&&"remove"!==e&&"detach"!==e)return t;if(t=Ph(this).fire(e,t,n),!1!==n&&this.parent)for(var r=this.parent();r&&!t.isPropagationStopped();)r.fire(e,t,!1),r=r.parent();return t},on:function(e,t,n){return Ph(this).on(e,t,n)},off:function(e,t){return Ph(this).off(e,t)},once:function(e,t){return Ph(this).once(e,t)},hasEventListeners:function(e){return Ph(this).has(e)}},Oh=function(e,t){return e.fire("PreProcess",t)},Fh=function(e,t){return e.fire("PostProcess",t)},Rh=function(e){return e.fire("remove")},Hh=function(e){return e.fire("detach")},jh=function(e,t){return e.fire("SwitchMode",{mode:t})},Bh=function(e,t,n,r){e.fire("ObjectResizeStart",{target:t,width:n,height:r})},Wh=function(e,t,n,r){e.fire("ObjectResized",{target:t,width:n,height:r})},Uh=function(e,t,n){try{e.getDoc().execCommand(t,!1,n)}catch(e){}},zh=function(e,t,n){var r,i;Fa(e,t)&&!1===n?(i=t,Na(r=e)?r.dom().classList.remove(i):Pa(r,i),Oa(r)):n&&Ia(e,t)},Jh=function(e,t){zh($n.fromDom(e.getBody()),"mce-content-readonly",t),t?(e.selection.controlSelection.hideResizeRect(),e.readonly=!0,e.getBody().contentEditable="false"):(e.readonly=!1,e.getBody().contentEditable="true",Uh(e,"StyleWithCSS",!1),Uh(e,"enableInlineTableEditing",!1),Uh(e,"enableObjectResizing",!1),e.focus(),e.nodeChanged())},qh=function(e){return e.readonly?"readonly":"design"},Vh=ma.DOM,Gh=function(e,t){return"selectionchange"===t?e.getDoc():!e.inline&&/^mouse|touch|click|contextmenu|drop|dragover|dragend/.test(t)?e.getDoc().documentElement:e.settings.event_root?(e.eventRoot||(e.eventRoot=Vh.select(e.settings.event_root)[0]),e.eventRoot):e.getBody()},$h=function(e,t,n){!function(e){return!e.hidden&&!e.readonly}(e)?function(e){return!0===e.readonly}(e)&&n.preventDefault():e.fire(t,n)},Kh=function(e,t){var n,r;if(e.delegates||(e.delegates={}),!e.delegates[t]&&!e.removed)if(n=Gh(e,t),e.settings.event_root){if(Eh||(Eh={},e.editorManager.on("removeEditor",function(){var t;if(!e.editorManager.activeEditor&&Eh){for(t in Eh)e.dom.unbind(Gh(e,t));Eh=null}})),Eh[t])return;r=function(n){for(var r=n.target,i=e.editorManager.get(),a=i.length;a--;){var o=i[a].getBody();(o===r||Vh.isChildOf(r,o))&&$h(i[a],t,n)}},Eh[t]=r,Vh.bind(n,t,r)}else r=function(n){$h(e,t,n)},Vh.bind(n,t,r),e.delegates[t]=r},Qh={bindPendingEventDelegates:function(){var e=this;Vt.each(e._pendingNativeEvents,function(t){Kh(e,t)})},toggleNativeEvent:function(e,t){"focus"!==e&&"blur"!==e&&(t?this.initialized?Kh(this,e):this._pendingNativeEvents?this._pendingNativeEvents.push(e):this._pendingNativeEvents=[e]:this.initialized&&(this.dom.unbind(Gh(this,e),e,this.delegates[e]),delete this.delegates[e]))},unbindAllNativeEvents:function(){var e,t=this.getBody(),n=this.dom;if(this.delegates){for(e in this.delegates)this.dom.unbind(Gh(this,e),e,this.delegates[e]);delete this.delegates}!this.inline&&t&&n&&(t.onload=null,n.unbind(this.getWin()),n.unbind(this.getDoc())),n&&(n.unbind(t),n.unbind(this.getContainer()))}},Xh=Qh=Vt.extend({},Ih,Qh),Zh=yr("sections","settings"),ep=Vn.detect().deviceType.isTouch(),tp=["lists","autolink","autosave"],np={theme:"mobile"},rp=function(e){var t=S(e)?e.join(" "):e,n=B(C(t)?t.split(" "):[],Hn);return z(n,function(e){return e.length>0})},ip=function(e,t){var n=ur(t,function(t,n){return H(e,n)});return Zh(n.t,n.f)},ap=function(e,t){return e.sections().hasOwnProperty(t)},op=function(e,t,n,r){var i=rp(n.forced_plugins),a=rp(r.plugins),o=function(e,t){return[].concat(rp(e)).concat(rp(t))}(i,e&&ap(t,"mobile")?function(e){return z(e,s(H,tp))}(a):a);return Vt.extend(r,{plugins:o.join(" ")})},sp=function(e,t,n,r){var i=ip(["mobile"],r),a=Vt.extend(t,n,i.settings(),function(e,t){var n=t.settings().inline;return e&&ap(t,"mobile")&&!n}(e,i)?function(e,t,n){var r=e.sections(),i=r.hasOwnProperty(t)?r[t]:{};return Vt.extend({},n,i)}(i,"mobile",np):{},{validate:!0,content_editable:i.settings().inline,external_plugins:function(e,t){var n=t.external_plugins?t.external_plugins:{};return e&&e.external_plugins?Vt.extend({},e.external_plugins,n):n}(n,i.settings())});return op(e,i,n,a)},up=function(e,t,n){return x.from(t.settings[n]).filter(e)},lp=function(e,t,n,r){var i,a=t in e.settings?e.settings[t]:n;return"hash"===r?function(e){var t={};return"string"==typeof e?W(e.indexOf("=")>0?e.split(/[;,](?![^=;,]*(?:[;,]|$))/):e.split(","),function(e){var n=e.split("=");n.length>1?t[Vt.trim(n[0])]=Vt.trim(n[1]):t[Vt.trim(n[0])]=Vt.trim(n)}):t=e,t}(a):"string"===r?up(C,e,t).getOr(n):"number"===r?up(P,e,t).getOr(n):"boolean"===r?up(N,e,t).getOr(n):"object"===r?up(T,e,t).getOr(n):"array"===r?up(S,e,t).getOr(n):"string[]"===r?up((i=C,function(e){return S(e)&&$(e,i)}),e,t).getOr(n):"function"===r?up(E,e,t).getOr(n):a},cp=Vt.each,dp=Vt.explode,fp={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},mp=Vt.makeMap("alt,ctrl,shift,meta,access");function hp(e){var t={},n=[],r=function(e){var t,n,r={};for(n in cp(dp(e,"+"),function(e){e in mp?r[e]=!0:/^[0-9]{2,}$/.test(e)?r.keyCode=parseInt(e,10):(r.charCode=e.charCodeAt(0),r.keyCode=fp[e]||e.toUpperCase().charCodeAt(0))}),t=[r.keyCode],mp)r[n]?t.push(n):r[n]=!1;return r.id=t.join(","),r.access&&(r.alt=!0,le.mac?r.ctrl=!0:r.shift=!0),r.meta&&(le.mac?r.meta=!0:(r.ctrl=!0,r.meta=!1)),r},i=function(t,n,i,a){var o;return(o=Vt.map(dp(t,">"),r))[o.length-1]=Vt.extend(o[o.length-1],{func:i,scope:a||e}),Vt.extend(o[0],{desc:e.translate(n),subpatterns:o.slice(1)})},a=function(e,t){return!!t&&t.ctrl===e.ctrlKey&&t.meta===e.metaKey&&t.alt===e.altKey&&t.shift===e.shiftKey&&!!(e.keyCode===t.keyCode||e.charCode&&e.charCode===t.charCode)&&(e.preventDefault(),!0)},o=function(e){return e.func?e.func.call(e.scope):null};e.on("keyup keypress keydown",function(e){!function(e){return e.altKey||e.ctrlKey||e.metaKey}(e)&&!function(e){return"keydown"===e.type&&e.keyCode>=112&&e.keyCode<=123}(e)||e.isDefaultPrevented()||(cp(t,function(t){if(a(e,t))return n=t.subpatterns.slice(0),"keydown"===e.type&&o(t),!0}),a(e,n[0])&&(1===n.length&&"keydown"===e.type&&o(n[0]),n.shift()))}),this.add=function(n,r,a,o){var s;return s=a,"string"==typeof a?a=function(){e.execCommand(s,!1,null)}:Vt.isArray(s)&&(a=function(){e.execCommand(s[0],s[1],s[2])}),cp(dp(Vt.trim(n.toLowerCase())),function(e){var n=i(e,r,a,o);t[n.id]=n}),!0},this.remove=function(e){var n=i(e);return!!t[n.id]&&(delete t[n.id],!0)}}var pp=function(e){var t=Sr(e).dom();return e.dom()===t.activeElement},gp=function(e){return(t=Sr(e),r=void 0!==t?t.dom():n.document,x.from(r.activeElement).map($n.fromDom)).filter(function(t){return e.dom().contains(t.dom())});var t,r},_p=function(e,t){return function(e){return e.collapsed?x.from(Wo(e.startContainer,e.startOffset)).map($n.fromDom):x.none()}(t).bind(function(t){return gi(t)?x.some(t):!1===Tr(e,t)?x.some(e):x.none()})},vp=function(e,t){_p($n.fromDom(e.getBody()),t).bind(function(e){return qu.firstPositionIn(e.dom())}).fold(function(){e.selection.normalize()},function(t){return e.selection.setRng(t.toRange())})},yp=function(e){if(e.setActive)try{e.setActive()}catch(t){e.focus()}else e.focus()},bp=function(e){var t,n=e.getBody();return n&&(t=$n.fromDom(n),pp(t)||gp(t).isSome())},wp=function(e){return e.inline?bp(e):function(e){return e.iframeElement&&pp($n.fromDom(e.iframeElement))}(e)},Mp=function(e){return e.editorManager.setActive(e)},kp=function(e,t){e.removed||(t?Mp(e):function(e){var t=e.selection,n=e.settings.content_editable,r=e.getBody(),i=t.getRng();e.quirks.refreshContentEditable();var a=function(e,t){return e.dom.getParent(t,function(t){return"true"===e.dom.getContentEditable(t)})}(e,t.getNode());if(e.$.contains(r,a))return yp(a),vp(e,i),void Mp(e);void 0!==e.bookmark&&!1===wp(e)&&Mh.getRng(e).each(function(t){e.selection.setRng(t),i=t}),n||(le.opera||yp(r),e.getWin().focus()),(le.gecko||n)&&(yp(r),vp(e,i)),Mp(e)}(e))},Lp=wp,Dp=function(e,t){return t.dom()[e]},xp=function(e,t){return parseInt(_r(t,e),10)},Ap=s(Dp,"clientWidth"),Cp=s(Dp,"clientHeight"),Tp=s(xp,"margin-top"),Sp=s(xp,"margin-left"),Yp={isXYInContentArea:function(e,t,n){var r,i=$n.fromDom(e.getBody()),a=e.inline?i:(r=i,$n.fromDom(r.dom().ownerDocument.documentElement)),o=function(e,t,n,r){var i=function(e){return e.dom().getBoundingClientRect()}(t);return{x:n-(e?i.left+t.dom().clientLeft+Sp(t):0),y:r-(e?i.top+t.dom().clientTop+Tp(t):0)}}(e.inline,a,t,n);return function(e,t,n){var r=Ap(e),i=Cp(e);return t>=0&&n>=0&&t<=r&&n<=i}(a,o.x,o.y)},isEditorAttachedToDom:function(e){var t,n=e.inline?e.getBody():e.getContentAreaContainer();return(t=n,x.from(t).map($n.fromDom)).map(function(e){return Tr(Sr(e),e)}).getOr(!1)}};function Np(e){var t=[],n=function(){var t,n=e.theme;return n&&n.getNotificationManagerImpl?n.getNotificationManagerImpl():{open:t=function(){throw new Error("Theme did not provide a NotificationManager implementation.")},close:t,reposition:t,getArgs:t}},r=function(){t.length>0&&n().reposition(t)},i=function(e){V(t,function(t){return t===e}).each(function(e){t.splice(e,1)})},a=function(a){if(!e.removed&&Yp.isEditorAttachedToDom(e))return q(t,function(e){return t=n().getArgs(e),r=a,!(t.type!==r.type||t.text!==r.text||t.progressBar||t.timeout||r.progressBar||r.timeout);var t,r}).getOrThunk(function(){e.editorManager.setActive(e);var o=n().open(a,function(){i(o),r()});return function(e){t.push(e)}(o),r(),o})};return function(e){e.on("SkinLoaded",function(){var t=e.settings.service_message;t&&a({text:t,type:"warning",timeout:0,icon:""})}),e.on("ResizeEditor ResizeWindow",function(){he.requestAnimationFrame(r)}),e.on("remove",function(){W(t.slice(),function(e){n().close(e)})})}(e),{open:a,close:function(){x.from(t[0]).each(function(e){n().close(e),i(e),r()})},getNotifications:function(){return t}}}function Ep(e){var t=[],n=function(){var t,n=e.theme;return n&&n.getWindowManagerImpl?n.getWindowManagerImpl():{open:t=function(){throw new Error("Theme did not provide a WindowManager implementation.")},alert:t,confirm:t,close:t,getParams:t,setParams:t}},r=function(e,t){return function(){return t?t.apply(e,arguments):void 0}},i=function(n){t.push(n),function(t){e.fire("OpenWindow",{win:t})}(n)},a=function(n){V(t,function(e){return e===n}).each(function(r){t.splice(r,1),function(t){e.fire("CloseWindow",{win:t})}(n),0===t.length&&e.focus()})},o=function(){return x.from(t[t.length-1])};return e.on("remove",function(){W(t.slice(0),function(e){n().close(e)})}),{windows:t,open:function(t,r){e.editorManager.setActive(e),Mh.store(e);var o=n().open(t,r,a);return i(o),o},alert:function(e,t,o){var s=n().alert(e,r(o||this,t),a);i(s)},confirm:function(e,t,o){var s=n().confirm(e,r(o||this,t),a);i(s)},close:function(){o().each(function(e){n().close(e),a(e)})},getParams:function(){return o().map(n().getParams).getOr(null)},setParams:function(e){o().each(function(t){n().setParams(t,e)})},getWindows:function(){return t}}}var Pp={},Ip="en",Op={setCode:function(e){e&&(Ip=e,this.rtl=!!this.data[e]&&"rtl"===this.data[e]._dir)},getCode:function(){return Ip},rtl:!1,add:function(e,t){var n=Pp[e];for(var r in n||(Pp[e]=n={}),t)n[r]=t[r];this.setCode(e)},translate:function(e){var t=Pp[Ip]||{},n=function(e){return Vt.is(e,"function")?Object.prototype.toString.call(e):r(e)?"":""+e},r=function(e){return""===e||null===e||Vt.is(e,"undefined")},i=function(e){return e=n(e),Vt.hasOwn(t,e)?n(t[e]):e};if(r(e))return"";if(Vt.is(e,"object")&&Vt.hasOwn(e,"raw"))return n(e.raw);if(Vt.is(e,"array")){var a=e.slice(1);e=i(e[0]).replace(/\{([0-9]+)\}/g,function(e,t){return Vt.hasOwn(a,t)?n(a[t]):e})}return i(e).replace(/{context:\w+}$/,"")},data:Pp},Fp=ba.PluginManager,Rp=function(e,t){var n=function(e,t){for(var n in Fp.urls)if(Fp.urls[n]+"/plugin"+t+".js"===e)return n;return null}(t,e.suffix);return n?Op.translate(["Failed to load plugin: {0} from url {1}",n,t]):Op.translate(["Failed to load plugin url: {0}",t])},Hp=function(e,t){e.notificationManager.open({type:"error",text:t})},jp=function(e,t){e._skinLoaded?Hp(e,t):e.on("SkinLoaded",function(){Hp(e,t)})},Bp=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=n.window.console;i&&(i.error?i.error.apply(i,arguments):i.log.apply(i,arguments))},Wp={pluginLoadError:function(e,t){jp(e,Rp(e,t))},pluginInitError:function(e,t,n){var r=Op.translate(["Failed to initialize plugin: {0}",t]);Bp(r,n),jp(e,r)},uploadError:function(e,t){jp(e,Op.translate(["Failed to upload image: {0}",t]))},displayError:jp,initError:Bp},Up=ba.PluginManager,zp=ba.ThemeManager;function Jp(){return new(ne.getOrDie("XMLHttpRequest"))}function qp(e,t){var r={},i=function(e,r,i,a){var o,s;(o=Jp()).open("POST",t.url),o.withCredentials=t.credentials,o.upload.onprogress=function(e){a(e.loaded/e.total*100)},o.onerror=function(){i("Image upload failed due to a XHR Transport error. Code: "+o.status)},o.onload=function(){var e,n,a;o.status<200||o.status>=300?i("HTTP Error: "+o.status):(e=JSON.parse(o.responseText))&&"string"==typeof e.location?r((n=t.basePath,a=e.location,n?n.replace(/\/$/,"")+"/"+a.replace(/^\//,""):a)):i("Invalid JSON: "+o.responseText)},(s=new n.FormData).append("file",e.blob(),e.filename()),o.send(s)},a=function(e,t){return{url:t,blobInfo:e,status:!0}},o=function(e,t){return{url:"",blobInfo:e,status:!1,error:t}},s=function(e,t){Vt.each(r[e],function(e){e(t)}),delete r[e]},u=function(n,i){return n=Vt.grep(n,function(t){return!e.isUploaded(t.blobUri())}),ce.all(Vt.map(n,function(n){return e.isPending(n.blobUri())?function(e){var t=e.blobUri();return new ce(function(e){r[t]=r[t]||[],r[t].push(e)})}(n):function(t,n,r){return e.markPending(t.blobUri()),new ce(function(i){var u;try{var l=function(){u&&u.close()};n(t,function(n){l(),e.markUploaded(t.blobUri(),n),s(t.blobUri(),a(t,n)),i(a(t,n))},function(n){l(),e.removeFailed(t.blobUri()),s(t.blobUri(),o(t,n)),i(o(t,n))},function(e){e<0||e>100||(u||(u=r()),u.progressBar.value(e))})}catch(e){i(o(t,e.message))}})}(n,t.handler,i)}))};return!1===E(t.handler)&&(t.handler=i),{upload:function(e,n){return t.url||t.handler!==i?u(e,n):new ce(function(e){e([])})}}}var Vp=function(e){return ne.getOrDie("atob")(e)},Gp=function(e){var t,n,r=decodeURIComponent(e).split(",");return(n=/data:([^;]+)/.exec(r[0]))&&(t=n[1]),{type:t,data:r[1]}},$p=function(e){return new ce(function(t){var r,i,a,o=Gp(e);try{r=Vp(o.data)}catch(e){return void t(new n.Blob([]))}for(i=function(e){return new(ne.getOrDie("Uint8Array"))(e)}(r.length),a=0;a<i.length;a++)i[a]=r.charCodeAt(a);t(new n.Blob([i],{type:o.type}))})},Kp=function(e){return 0===e.indexOf("blob:")?function(e){return new ce(function(t,n){var r=function(){n("Cannot convert "+e+" to Blob. Resource might not exist or is inaccessible.")};try{var i=Jp();i.open("GET",e,!0),i.responseType="blob",i.onload=function(){200===this.status?t(this.response):r()},i.onerror=r,i.send()}catch(e){r()}})}(e):0===e.indexOf("data:")?$p(e):null},Qp=function(e){return new ce(function(t){var n=new(ne.getOrDie("FileReader"));n.onloadend=function(){t(n.result)},n.readAsDataURL(e)})},Xp=Gp,Zp=0,eg=function(e){return(e||"blobid")+Zp++},tg=function(e,t,n,r){var i,a;0!==t.src.indexOf("blob:")?(i=Xp(t.src).data,(a=e.findFirst(function(e){return e.base64()===i}))?n({image:t,blobInfo:a}):Kp(t.src).then(function(r){a=e.create(eg(),r,i),e.add(a),n({image:t,blobInfo:a})},function(e){r(e)})):(a=e.getByUri(t.src))?n({image:t,blobInfo:a}):Kp(t.src).then(function(r){Qp(r).then(function(o){i=Xp(o).data,a=e.create(eg(),r,i),e.add(a),n({image:t,blobInfo:a})})},function(e){r(e)})},ng=function(e){return e?Z(e.getElementsByTagName("img")):[]},rg=0,ig={uuid:function(e){return e+rg+++(t=function(){return Math.round(4294967295*Math.random()).toString(36)},"s"+(new Date).getTime().toString(36)+t()+t()+t());var t}};function ag(e){var t,n,r,i,o,s,u,l,c,d=(t=[],n=function(e){var t,n,r;if(!e.blob||!e.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");return t=e.id||ig.uuid("blobid"),n=e.name||t,{id:a(t),name:a(n),filename:a(n+"."+(r=e.blob.type,{"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png"}[r.toLowerCase()]||"dat")),blob:a(e.blob),base64:a(e.base64),blobUri:a(e.blobUri||ie.createObjectURL(e.blob)),uri:a(e.uri)}},{create:function(e,t,r,i){if(C(e))return n({id:e,name:i,blob:t,base64:r});if(T(e))return n(e);throw new Error("Unknown input type")},add:function(e){r(e.id())||t.push(e)},get:r=function(e){return i(function(t){return t.id()===e})},getByUri:function(e){return i(function(t){return t.blobUri()===e})},findFirst:i=function(e){return z(t,e)[0]},removeByUri:function(e){t=z(t,function(t){return t.blobUri()!==e||(ie.revokeObjectURL(t.blobUri()),!1)})},destroy:function(){W(t,function(e){ie.revokeObjectURL(e.blobUri())}),t=[]}}),f=(u={},l=function(e,t){return{status:e,resultUri:t}},{hasBlobUri:c=function(e){return e in u},getResultUri:function(e){var t=u[e];return t?t.resultUri:null},isPending:function(e){return!!c(e)&&1===u[e].status},isUploaded:function(e){return!!c(e)&&2===u[e].status},markPending:function(e){u[e]=l(1,null)},markUploaded:function(e,t){u[e]=l(2,t)},removeFailed:function(e){delete u[e]},destroy:function(){u={}}}),m=[],h=function(t){return function(n){return e.selection?t(n):[]}},p=function(e,t,n){var r=0;do{-1!==(r=e.indexOf(t,r))&&(e=e.substring(0,r)+n+e.substr(r+t.length),r+=n.length-t.length+1)}while(-1!==r);return e},g=function(e,t,n){return e=p(e,'src="'+t+'"','src="'+n+'"'),e=p(e,'data-mce-src="'+t+'"','data-mce-src="'+n+'"')},_=function(t,n){W(e.undoManager.data,function(e){"fragmented"===e.type?e.fragments=B(e.fragments,function(e){return g(e,t,n)}):e.content=g(e.content,t,n)})},v=function(){return e.notificationManager.open({text:e.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})},y=function(t,n){d.removeByUri(t.src),_(t.src,n),e.$(t).attr({src:Xl.shouldReuseFileName(e)?n+"?"+(new Date).getTime():n,"data-mce-src":e.convertURL(n,"src")})},b=function(t){return o||(o=qp(f,{url:Xl.getImageUploadUrl(e),basePath:Xl.getImageUploadBasePath(e),credentials:Xl.getImagesUploadCredentials(e),handler:Xl.getImagesUploadHandler(e)})),k().then(h(function(n){var r;return r=B(n,function(e){return e.blobInfo}),o.upload(r,v).then(h(function(r){var i=B(r,function(t,r){var i=n[r].image;return t.status&&Xl.shouldReplaceBlobUris(e)?y(i,t.url):t.error&&Wp.uploadError(e,t.error),{element:i,status:t.status}});return t&&t(i),i}))}))},w=function(t){if(Xl.isAutomaticUploadsEnabled(e))return b(t)},M=function(t){return!1!==$(m,function(e){return e(t)})&&(0!==t.getAttribute("src").indexOf("data:")||Xl.getImagesDataImgFilter(e)(t))},k=function(){return s||(s=function(e,t){var n={};return{findAll:function(r,i){var o;i||(i=a(!0)),o=z(ng(r),function(t){var n=t.src;return!!le.fileApi&&!t.hasAttribute("data-mce-bogus")&&!t.hasAttribute("data-mce-placeholder")&&!(!n||n===le.transparentSrc)&&(0===n.indexOf("blob:")?!e.isUploaded(n)&&i(t):0===n.indexOf("data:")&&i(t))});var s=B(o,function(e){if(n[e.src])return new ce(function(t){n[e.src].then(function(n){if("string"==typeof n)return n;t({image:e,blobInfo:n.blobInfo})})});var r=new ce(function(n,r){tg(t,e,n,r)}).then(function(e){return delete n[e.image.src],e}).catch(function(t){return delete n[e.src],t});return n[e.src]=r,r});return ce.all(s)}}}(f,d)),s.findAll(e.getBody(),M).then(h(function(t){return t=z(t,function(t){return"string"!=typeof t||(Wp.displayError(e,t),!1)}),W(t,function(e){_(e.image.src,e.blobInfo.blobUri()),e.image.src=e.blobInfo.blobUri(),e.image.removeAttribute("data-mce-src")}),t}))},L=function(t){return t.replace(/src="(blob:[^"]+)"/g,function(t,n){var r=f.getResultUri(n);if(r)return'src="'+r+'"';var i=d.getByUri(n);return i||(i=J(e.editorManager.get(),function(e,t){return e||t.editorUpload&&t.editorUpload.blobCache.getByUri(n)},null)),i?'src="data:'+i.blob().type+";base64,"+i.base64()+'"':t})};return e.on("setContent",function(){Xl.isAutomaticUploadsEnabled(e)?w():k()}),e.on("RawSaveContent",function(e){e.content=L(e.content)}),e.on("getContent",function(e){e.source_view||"raw"===e.format||(e.content=L(e.content))}),e.on("PostRender",function(){e.parser.addNodeFilter("img",function(e){W(e,function(e){var t=e.attr("src");if(!d.getByUri(t)){var n=f.getResultUri(t);n&&e.attr("src",n)}})})}),{blobCache:d,addFilter:function(e){m.push(e)},uploadImages:b,uploadImagesAuto:w,scanForImages:k,destroy:function(){d.destroy(),f.destroy(),s=o=null}}}var og=function(e,t){return e.hasOwnProperty(t.nodeName)},sg=function(e,t){return!!Si.isText(t)||!!Si.isElement(t)&&!og(e,t)&&!el.isBookmarkNode(t)},ug=function(e,t){if(Si.isText(t)){if(0===t.nodeValue.length)return!0;if(/^\s+$/.test(t.nodeValue)&&(!t.nextSibling||og(e,t.nextSibling)))return!0}return!1},lg=function(e){var t,n,r,i,a,o,s,u,l,c,d,f=e.settings,m=e.dom,h=e.selection,p=e.schema,g=p.getBlockElements(),_=h.getStart(),v=e.getBody();if(d=f.forced_root_block,_&&Si.isElement(_)&&d&&(c=v.nodeName.toLowerCase(),p.isValidChild(c,d.toLowerCase())&&!function(e,t,n){return j(_c($n.fromDom(n),$n.fromDom(t)),function(t){return og(e,t.dom())})}(g,v,_))){for(n=(t=h.getRng()).startContainer,r=t.startOffset,i=t.endContainer,a=t.endOffset,l=Lp(e),_=v.firstChild;_;)if(sg(g,_)){if(ug(g,_)){s=_,_=_.nextSibling,m.remove(s);continue}o||(o=m.create(d,e.settings.forced_root_block_attrs),_.parentNode.insertBefore(o,_),u=!0),s=_,_=_.nextSibling,o.appendChild(s)}else o=null,_=_.nextSibling;u&&l&&(t.setStart(n,r),t.setEnd(i,a),h.setRng(t),e.nodeChanged())}},cg=function(e){e.settings.forced_root_block&&e.on("NodeChange",s(lg,e))},dg=function(e){return Hr(e).fold(a([e]),function(t){return[e].concat(dg(t))})},fg=function(e){return jr(e).fold(a([e]),function(t){return"br"===Zn(t)?Er(t).map(function(t){return[e].concat(fg(t))}).getOr([]):[e].concat(fg(t))})},mg=function(e,t){return Jo(function(e){var t=e.startContainer,n=e.startOffset;return Si.isText(t)?0===n?x.some($n.fromDom(t)):x.none():x.from(t.childNodes[n]).map($n.fromDom)}(t),function(e){var t=e.endContainer,n=e.endOffset;return Si.isText(t)?n===t.data.length?x.some($n.fromDom(t)):x.none():x.from(t.childNodes[n-1]).map($n.fromDom)}(t),function(t,n){var r=q(dg(e),s(Cr,t)),i=q(fg(e),s(Cr,n));return r.isSome()&&i.isSome()}).getOr(!1)},hg=function(e,t,n,r){var i=n,a=new ri(n,i),o=e.schema.getNonEmptyElements();do{if(3===n.nodeType&&0!==Vt.trim(n.nodeValue).length)return void(r?t.setStart(n,0):t.setEnd(n,n.nodeValue.length));if(o[n.nodeName]&&!/^(TD|TH)$/.test(n.nodeName))return void(r?t.setStartBefore(n):"BR"===n.nodeName?t.setEndBefore(n):t.setEndAfter(n));if(le.ie&&le.ie<11&&e.isBlock(n)&&e.isEmpty(n))return void(r?t.setStart(n,0):t.setEnd(n,0))}while(n=r?a.next():a.prev());"BODY"===i.nodeName&&(r?t.setStart(i,0):t.setEnd(i,i.childNodes.length))},pg=function(e){var t=e.selection.getSel();return t&&t.rangeCount>0};function gg(e){var t,n=[];"onselectionchange"in e.getDoc()||e.on("NodeChange Click MouseUp KeyUp Focus",function(n){var r,i;i={startContainer:(r=e.selection.getRng()).startContainer,startOffset:r.startOffset,endContainer:r.endContainer,endOffset:r.endOffset},"nodechange"!==n.type&&Hm.isEq(i,t)||e.fire("SelectionChange"),t=i}),e.on("contextmenu",function(){e.fire("SelectionChange")}),e.on("SelectionChange",function(){var t=e.selection.getStart(!0);!t||!le.range&&e.selection.isCollapsed()||pg(e)&&!function(t){var r,i;if((i=e.$(t).parentsUntil(e.getBody()).add(t)).length===n.length){for(r=i.length;r>=0&&i[r]===n[r];r--);if(-1===r)return n=i,!0}return n=i,!1}(t)&&e.dom.isChildOf(t,e.getBody())&&e.nodeChanged({selectionChange:!0})}),e.on("MouseUp",function(t){!t.isDefaultPrevented()&&pg(e)&&("IMG"===e.selection.getNode().nodeName?he.setEditorTimeout(e,function(){e.nodeChanged()}):e.nodeChanged())}),this.nodeChanged=function(t){var n,r,i,a=e.selection;e.initialized&&a&&!e.settings.disable_nodechange&&!e.readonly&&(i=e.getBody(),(n=a.getStart(!0)||i).ownerDocument===e.getDoc()&&e.dom.isChildOf(n,i)||(n=i),r=[],e.dom.getParent(n,function(e){if(e===i)return!0;r.push(e)}),(t=t||{}).element=n,t.parents=r,e.fire("NodeChange",t))}}var _g,vg={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,END:35,HOME:36,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey||this.metaKeyPressed(e)},metaKeyPressed:function(e){return le.mac?e.metaKey:e.ctrlKey&&!e.altKey}},yg=function(e){return J(e,function(e,t){return e.concat(function(e){var t=function(t){return B(t,function(t){return(t=Io(t)).node=e,t})};if(Si.isElement(e))return t(e.getClientRects());if(Si.isText(e)){var n=e.ownerDocument.createRange();return n.setStart(e,0),n.setEnd(e,e.data.length),t(n.getClientRects())}}(t))},[])};!function(e){e[e.Up=-1]="Up",e[e.Down=1]="Down"}(_g||(_g={}));var bg=function(e,t,n,r,i,a){var o,s,u=0,l=[],c=function(r){var a,o,c;for(c=yg([r]),-1===e&&(c=c.reverse()),a=0;a<c.length;a++)if(o=c[a],!n(o,s)){if(l.length>0&&t(o,Wt.last(l))&&u++,o.line=u,i(o))return!0;l.push(o)}};return(s=Wt.last(a.getClientRects()))?(c(o=a.getNode()),function(e,t,n,r){for(;r=cu(r,e,Eo,t);)if(n(r))return}(e,r,c,o),l):l},wg=s(bg,_g.Up,Ro,Ho),Mg=s(bg,_g.Down,Ho,Ro),kg=function(e){return function(t){return function(e,t){return t.line>e}(e,t)}},Lg=function(e){return function(t){return function(e,t){return t.line===e}(e,t)}},Dg=Si.isContentEditableFalse,xg=cu,Ag=function(e,t){return Math.abs(e.left-t)},Cg=function(e,t){return Math.abs(e.right-t)},Tg=function(e,t){return e>=t.left&&e<=t.right},Sg=function(e,t){return Wt.reduce(e,function(e,n){var r,i;return r=Math.min(Ag(e,t),Cg(e,t)),i=Math.min(Ag(n,t),Cg(n,t)),Tg(t,n)?n:Tg(t,e)?e:i===r&&Dg(n.node)?n:i<r?n:e})},Yg=function(e,t,n,r){for(;r=xg(r,e,Eo,t);)if(n(r))return},Ng=function(e,t,n){var r,i=yg(function(e){return z(Z(e.getElementsByTagName("*")),eu)}(e)),a=z(i,function(e){return n>=e.top&&n<=e.bottom});return(r=Sg(a,t))&&(r=Sg(function(e,t){var n=[],r=function(e,r){var i;return i=z(yg([r]),function(n){return!e(n,t)}),n=n.concat(i),0===i.length};return n.push(t),Yg(_g.Up,e,s(r,Ro),t.node),Yg(_g.Down,e,s(r,Ho),t.node),n}(e,r),t))&&eu(r.node)?function(e,t){return{node:e.node,before:Ag(e,t)<Cg(e,t)}}(r,t):null},Eg=function(e,t,n){if(n.collapsed)return!1;if(le.ie&&le.ie<=11&&n.startOffset===n.endOffset-1&&n.startContainer===n.endContainer){var r=n.startContainer.childNodes[n.startOffset];if(Si.isElement(r))return j(r.getClientRects(),function(n){return jo(n,e,t)})}return j(n.getClientRects(),function(n){return jo(n,e,t)})},Pg=function(e){var t,n,r,i;return i=e.getBoundingClientRect(),n=(t=e.ownerDocument).documentElement,r=t.defaultView,{top:i.top+r.pageYOffset-n.clientTop,left:i.left+r.pageXOffset-n.clientLeft}},Ig=function(e,t){return n=function(e){return e.inline?Pg(e.getBody()):{left:0,top:0}}(e),r=function(e){var t=e.getBody();return e.inline?{left:t.scrollLeft,top:t.scrollTop}:{left:0,top:0}}(e),{pageX:(i=function(e,t){if(t.target.ownerDocument!==e.getDoc()){var n=Pg(e.getContentAreaContainer()),r=function(e){var t=e.getBody(),n=e.getDoc().documentElement,r={left:t.scrollLeft,top:t.scrollTop},i={left:t.scrollLeft||n.scrollLeft,top:t.scrollTop||n.scrollTop};return e.inline?r:i}(e);return{left:t.pageX-n.left+r.left,top:t.pageY-n.top+r.top}}return{left:t.pageX,top:t.pageY}}(e,t)).left-n.left+r.left,pageY:i.top-n.top+r.top};var n,r,i},Og=Si.isContentEditableFalse,Fg=Si.isContentEditableTrue,Rg=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},Hg=function(e,t){return function(n){if(function(e){return 0===e.button}(n)){var r=q(t.dom.getParents(n.target),Go(Og,Fg)).getOr(null);if(s=t.getBody(),Og(u=r)&&u!==s){var i=t.dom.getPos(r),a=t.getBody(),o=t.getDoc().documentElement;e.element=r,e.screenX=n.screenX,e.screenY=n.screenY,e.maxX=(t.inline?a.scrollWidth:o.offsetWidth)-2,e.maxY=(t.inline?a.scrollHeight:o.offsetHeight)-2,e.relX=n.pageX-i.x,e.relY=n.pageY-i.y,e.width=r.offsetWidth,e.height=r.offsetHeight,e.ghost=function(e,t,n,r){var i=t.cloneNode(!0);e.dom.setStyles(i,{width:n,height:r}),e.dom.setAttrib(i,"data-mce-selected",null);var a=e.dom.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return e.dom.setStyles(a,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:n,height:r}),e.dom.setStyles(i,{margin:0,boxSizing:"border-box"}),a.appendChild(i),a}(t,r,e.width,e.height)}}var s,u}},jg=function(e,t){return function(n){if(e.dragging&&function(e,t,n){return t!==n&&!e.dom.isChildOf(t,n)&&!Og(t)}(t,(s=t.selection,3===(u=s.getSel().getRangeAt(0).startContainer).nodeType?u.parentNode:u),e.element)){var r=(a=e.element,(o=a.cloneNode(!0)).removeAttribute("data-mce-selected"),o),i=t.fire("drop",{targetClone:r,clientX:n.clientX,clientY:n.clientY});i.isDefaultPrevented()||(r=i.targetClone,t.undoManager.transact(function(){Rg(e.element),t.insertContent(t.dom.getOuterHTML(r)),t._selectionOverrides.hideFakeCaret()}))}var a,o,s,u;Bg(e)}},Bg=function(e){e.dragging=!1,e.element=null,Rg(e.ghost)},Wg=function(e){var t,r,i,a,o,s,u={};t=ma.DOM,s=n.document,r=Hg(u,e),i=function(e,t){var n=he.throttle(function(e,n){t._selectionOverrides.hideFakeCaret(),t.selection.placeCaretAt(e,n)},0);return function(r){var i,a,o=Math.max(Math.abs(r.screenX-e.screenX),Math.abs(r.screenY-e.screenY));if(function(e){return e.element}(e)&&!e.dragging&&o>10){if(t.fire("dragstart",{target:e.element}).isDefaultPrevented())return;e.dragging=!0,t.focus()}if(e.dragging){var s=function(e,t){return{pageX:t.pageX-e.relX,pageY:t.pageY+5}}(e,Ig(t,r));i=e.ghost,a=t.getBody(),i.parentNode!==a&&a.appendChild(i),function(e,t,n,r,i,a){var o=0,s=0;e.style.left=t.pageX+"px",e.style.top=t.pageY+"px",t.pageX+n>i&&(o=t.pageX+n-i),t.pageY+r>a&&(s=t.pageY+r-a),e.style.width=n-o+"px",e.style.height=r-s+"px"}(e.ghost,s,e.width,e.height,e.maxX,e.maxY),n(r.clientX,r.clientY)}}}(u,e),a=jg(u,e),o=function(e,t){return function(){e.dragging&&t.fire("dragend"),Bg(e)}}(u,e),e.on("mousedown",r),e.on("mousemove",i),e.on("mouseup",a),t.bind(s,"mousemove",i),t.bind(s,"mouseup",o),e.on("remove",function(){t.unbind(s,"mousemove",i),t.unbind(s,"mouseup",o)})},Ug=function(e){Wg(e),function(e){e.on("drop",function(t){var n=void 0!==t.clientX?e.getDoc().elementFromPoint(t.clientX,t.clientY):null;(Og(n)||Og(e.dom.getContentEditableParent(n)))&&t.preventDefault()})}(e)},zg=function(e){var t=Ta(function(){if(!e.removed&&e.selection.getRng().collapsed){var t=km(e,e.selection.getRng(),!1);e.selection.setRng(t)}},0);e.on("focus",function(){t.throttle()}),e.on("blur",function(){t.cancel()})},Jg=Si.isContentEditableTrue,qg=Si.isContentEditableFalse,Vg=function(e,t){for(var n=e.getBody();t&&t!==n;){if(Jg(t)||qg(t))return t;t=t.parentNode}return null},Gg=function(e){var t,n,r=e.getBody(),i=Xs(e.getBody(),function(t){return e.dom.isBlock(t)},function(){return Lp(e)}),a="sel-"+e.dom.uniqueId(),o=function(t){t&&e.selection.setRng(t)},s=function(){return e.selection.getRng()},u=function(t,n,r,a){return void 0===a&&(a=!0),e.fire("ShowCaret",{target:n,direction:t,before:r}).isDefaultPrevented()?null:(a&&e.selection.scrollIntoView(n,-1===t),i.show(r,n))},l=function(e,t){return t=yu(e,r,t),-1===e?ps.fromRangeStart(t):ps.fromRangeEnd(t)},c=function(e){return po(e)||bo(e)||wo(e)},d=function(e){return c(e.startContainer)||c(e.endContainer)},f=function(t){var n=e.schema.getShortEndedElements(),r=e.dom.createRng(),i=t.startContainer,a=t.startOffset,o=t.endContainer,s=t.endOffset;return lr(n,i.nodeName.toLowerCase())?0===a?r.setStartBefore(i):r.setStartAfter(i):r.setStart(i,a),lr(n,o.nodeName.toLowerCase())?0===s?r.setEndBefore(o):r.setEndAfter(o):r.setEnd(o,s),r},m=function(n,r){var i,o,s,c,f,m,h,g,_,v,y=e.$,b=e.dom;if(!n)return null;if(n.collapsed){if(!d(n))if(!1===r){if(g=l(-1,n),eu(g.getNode(!0)))return u(-1,g.getNode(!0),!1,!1);if(eu(g.getNode()))return u(-1,g.getNode(),!g.isAtEnd(),!1)}else{if(g=l(1,n),eu(g.getNode()))return u(1,g.getNode(),!g.isAtEnd(),!1);if(eu(g.getNode(!0)))return u(1,g.getNode(!0),!1,!1)}return null}return c=n.startContainer,f=n.startOffset,m=n.endOffset,3===c.nodeType&&0===f&&qg(c.parentNode)&&(c=c.parentNode,f=b.nodeIndex(c),c=c.parentNode),1!==c.nodeType?null:(m===f+1&&c===n.endContainer&&(i=c.childNodes[f]),qg(i)?(_=v=i.cloneNode(!0),(h=e.fire("ObjectSelected",{target:i,targetClone:_})).isDefaultPrevented()?null:(o=za($n.fromDom(e.getBody()),"#"+a).fold(function(){return y([])},function(e){return y([e.dom()])}),_=h.targetClone,0===o.length&&(o=y('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>').attr("id",a)).appendTo(e.getBody()),n=e.dom.createRng(),_===v&&le.ie?(o.empty().append('<p style="font-size: 0" data-mce-bogus="all"> </p>').append(_),n.setStartAfter(o[0].firstChild.firstChild),n.setEndAfter(_)):(o.empty().append(" ").append(_).append(" "),n.setStart(o[0].firstChild,1),n.setEnd(o[0].lastChild,0)),o.css({top:b.getPos(i,e.getBody()).y}),o[0].focus(),(s=e.selection.getSel()).removeAllRanges(),s.addRange(n),W(Ha($n.fromDom(e.getBody()),"*[data-mce-selected]"),function(e){pr(e,"data-mce-selected")}),i.setAttribute("data-mce-selected","1"),t=i,p(),n)):null)},h=function(){t&&(t.removeAttribute("data-mce-selected"),za($n.fromDom(e.getBody()),"#"+a).each(Aa),t=null),za($n.fromDom(e.getBody()),"#"+a).each(Aa),t=null},p=function(){i.hide()};return le.ceFalse&&(function(){e.on("mouseup",function(t){var n=s();n.collapsed&&Yp.isXYInContentArea(e,t.clientX,t.clientY)&&o(Mm(e,n,!1))}),e.on("click",function(t){var n;(n=Vg(e,t.target))&&(qg(n)&&(t.preventDefault(),e.focus()),Jg(n)&&e.dom.isChildOf(n,e.selection.getNode())&&h())}),e.on("blur NewBlock",function(){h()}),e.on("ResizeWindow FullscreenStateChanged",function(){return i.reposition()});var n=function(t,n){var r,i,a=e.dom.getParent(t,e.dom.isBlock),o=e.dom.getParent(n,e.dom.isBlock);return!(!a||!e.dom.isChildOf(a,o)||!1!==qg(Vg(e,a)))||a&&(r=a,i=o,!(e.dom.getParent(r,e.dom.isBlock)===e.dom.getParent(i,e.dom.isBlock)))&&function(e){var t=Iu(e);if(!e.firstChild)return!1;var n=ps.before(e.firstChild),r=t.next(n);return r&&!Gc(r)&&!$c(r)}(a)};!function(e){var t=!1;e.on("touchstart",function(){t=!1}),e.on("touchmove",function(){t=!0}),e.on("touchend",function(n){var r=Vg(e,n.target);qg(r)&&(t||(n.preventDefault(),m(wm(e,r))))})}(e),e.on("mousedown",function(t){var i,a=t.target;if((a===r||"HTML"===a.nodeName||e.dom.isChildOf(a,r))&&!1!==Yp.isXYInContentArea(e,t.clientX,t.clientY))if(i=Vg(e,a))qg(i)?(t.preventDefault(),m(wm(e,i))):(h(),Jg(i)&&t.shiftKey||Eg(t.clientX,t.clientY,e.selection.getRng())||(p(),e.selection.placeCaretAt(t.clientX,t.clientY)));else if(!1===eu(a)){h(),p();var s=Ng(r,t.clientX,t.clientY);if(s&&!n(t.target,s.node)){t.preventDefault();var l=u(1,s.node,s.before,!1);e.getBody().focus(),o(l)}}}),e.on("keypress",function(t){vg.modifierPressed(t)||(t.keyCode,qg(e.selection.getNode())&&t.preventDefault())}),e.on("getSelectionRange",function(e){var n=e.range;if(t){if(!t.parentNode)return void(t=null);(n=n.cloneRange()).selectNode(t),e.range=n}}),e.on("setSelectionRange",function(e){e.range=f(e.range);var t=m(e.range,e.forward);t&&(e.range=t)}),e.on("AfterSetSelectionRange",function(t){var n,r=t.range;d(r)||"mcepastebin"===r.startContainer.parentNode.id||p(),n=r.startContainer.parentNode,e.dom.hasClass(n,"mce-offscreen-selection")||h()}),e.on("copy",function(t){var n,r=t.clipboardData;if(!t.isDefaultPrevented()&&t.clipboardData&&!le.ie){var i=(n=e.dom.get(a))?n.getElementsByTagName("*")[0]:n;i&&(t.preventDefault(),r.clearData(),r.setData("text/html",i.outerHTML),r.setData("text/plain",i.outerText))}}),Ug(e),zg(e)}(),(n=e.contentStyles).push(i.getCss()),n.push(".mce-content-body .mce-offscreen-selection {position: absolute;left: -9999999999px;max-width: 1000000px;}.mce-content-body *[contentEditable=false] {cursor: default;}.mce-content-body *[contentEditable=true] {cursor: text;}")),{showCaret:u,showBlockCaretContainer:function(t){t.hasAttribute("data-mce-caret")&&(Mo(t),o(s()),e.selection.scrollIntoView(t[0]))},hideFakeCaret:p,destroy:function(){i.destroy(),t=null}}},$g=function(e){return 0===e.indexOf("data-")||0===e.indexOf("aria-")},Kg=function(e){for(var t=e;/<!--|--!?>/g.test(t);)t=t.replace(/<!--|--!?>/g,"");return t},Qg=function(e,t){return!e.allow_html_data_urls&&(/^data:image\//i.test(t)?!1===e.allow_svg_data_urls&&/^data:image\/svg\+xml/i.test(t):/^data:/i.test(t))},Xg=function(e,t,n){var r,i,a,o,s=1;for(o=e.getShortEndedElements(),(a=/<([!?\/])?([A-Za-z0-9\-_\:\.]+)((?:\s+[^"\'>]+(?:(?:"[^"]*")|(?:\'[^\']*\')|[^>]*))*|\/|\s+)>/g).lastIndex=r=n;i=a.exec(t);){if(r=a.lastIndex,"/"===i[1])s--;else if(!i[1]){if(i[2]in o)continue;s++}if(0===s)break}return r},Zg=function(e,t){var n=e.exec(t);if(n){var r=n[1],i=n[2];return"string"==typeof r&&"data-mce-bogus"===r.toLowerCase()?i:null}return null};function e_(e,t){void 0===t&&(t=ta());var n=function(){};!1!==(e=e||{}).fix_self_closing&&(e.fix_self_closing=!0);var r=e.comment?e.comment:n,i=e.cdata?e.cdata:n,a=e.text?e.text:n,o=e.start?e.start:n,s=e.end?e.end:n,u=e.pi?e.pi:n,l=e.doctype?e.doctype:n;return{parse:function(n){var c,d,f,m,h,p,g,_,v,y,b,w,M,k,L,D,x,A,C,T,S,Y,N,E,P,I,O,F,R,H=0,j=[],B=0,W=zi.decode,U=Vt.makeMap("src,href,data,background,formaction,poster,xlink:href"),z=/((java|vb)script|mhtml):/i,J=function(e){var t,n;for(t=j.length;t--&&j[t].name!==e;);if(t>=0){for(n=j.length-1;n>=t;n--)(e=j[n]).valid&&s(e.name);j.length=t}},q=function(t,n,r,i,a){var o,s;if(r=(n=n.toLowerCase())in b?n:W(r||i||a||""),M&&!_&&!1===$g(n)){if(!(o=A[n])&&C){for(s=C.length;s--&&!(o=C[s]).pattern.test(n););-1===s&&(o=null)}if(!o)return;if(o.validValues&&!(r in o.validValues))return}if(U[n]&&!e.allow_script_urls){var u=r.replace(/[\s\u0000-\u001F]+/g,"");try{u=decodeURIComponent(u)}catch(e){u=unescape(u)}if(z.test(u))return;if(Qg(e,u))return}_&&(n in U||0===n.indexOf("on"))||(m.map[n]=r,m.push({name:n,value:r}))};for(P=new RegExp("<(?:(?:!--([\\w\\W]*?)--!?>)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:!DOCTYPE([\\w\\W]*?)>)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)((?:\\s+[^\"'>]+(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>]*))*|\\/|\\s+)>))","g"),I=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,y=t.getShortEndedElements(),E=e.self_closing_elements||t.getSelfClosingElements(),b=t.getBoolAttrs(),M=e.validate,v=e.remove_internals,R=e.fix_self_closing,O=t.getSpecialElements(),N=n+">";c=P.exec(N);){if(H<c.index&&a(W(n.substr(H,c.index-H))),d=c[6])":"===(d=d.toLowerCase()).charAt(0)&&(d=d.substr(1)),J(d);else if(d=c[7]){if(c.index+c[0].length>n.length){a(W(n.substr(c.index))),H=c.index+c[0].length;continue}":"===(d=d.toLowerCase()).charAt(0)&&(d=d.substr(1)),w=d in y,R&&E[d]&&j.length>0&&j[j.length-1].name===d&&J(d);var V=Zg(I,c[8]);if(null!==V){if("all"===V){H=Xg(t,n,P.lastIndex),P.lastIndex=H;continue}L=!1}if(!M||(k=t.getElementRule(d))){if(L=!0,M&&(A=k.attributes,C=k.attributePatterns),(x=c[8])?((_=-1!==x.indexOf("data-mce-type"))&&v&&(L=!1),(m=[]).map={},x.replace(I,q)):(m=[]).map={},M&&!_){if(T=k.attributesRequired,S=k.attributesDefault,Y=k.attributesForced,k.removeEmptyAttrs&&!m.length&&(L=!1),Y)for(h=Y.length;h--;)g=(D=Y[h]).name,"{$uid}"===(F=D.value)&&(F="mce_"+B++),m.map[g]=F,m.push({name:g,value:F});if(S)for(h=S.length;h--;)(g=(D=S[h]).name)in m.map||("{$uid}"===(F=D.value)&&(F="mce_"+B++),m.map[g]=F,m.push({name:g,value:F}));if(T){for(h=T.length;h--&&!(T[h]in m.map););-1===h&&(L=!1)}if(D=m.map["data-mce-bogus"]){if("all"===D){H=Xg(t,n,P.lastIndex),P.lastIndex=H;continue}L=!1}}L&&o(d,m,w)}else L=!1;if(f=O[d]){f.lastIndex=H=c.index+c[0].length,(c=f.exec(n))?(L&&(p=n.substr(H,c.index-H)),H=c.index+c[0].length):(p=n.substr(H),H=n.length),L&&(p.length>0&&a(p,!0),s(d)),P.lastIndex=H;continue}w||(x&&x.indexOf("/")===x.length-1?L&&s(d):j.push({name:d,valid:L}))}else(d=c[1])?(">"===d.charAt(0)&&(d=" "+d),e.allow_conditional_comments||"[if"!==d.substr(0,3).toLowerCase()||(d=" "+d),r(d)):(d=c[2])?i(Kg(d)):(d=c[3])?l(d):(d=c[4])&&u(d,c[5]);H=c.index+c[0].length}for(H<n.length&&a(W(n.substr(H))),h=j.length-1;h>=0;h--)(d=j[h]).valid&&s(d.name)}}}!function(e){e.findEndTag=Xg}(e_||(e_={}));var t_=e_,n_=function(e,t){var n,r,i,a,o,s=t,u=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,l=e.schema;for(s=function(e,t){var n=new RegExp(["\\s?("+e.join("|")+')="[^"]+"'].join("|"),"gi");return t.replace(n,"")}(e.getTempAttrs(),s),o=l.getShortEndedElements();a=u.exec(s);)r=u.lastIndex,i=a[0].length,n=o[a[1]]?r:t_.findEndTag(l,s,r),s=s.substring(0,r-i)+s.substring(n),u.lastIndex=r-i;return lo(s)},r_={trimExternal:n_,trimInternal:n_},i_=0,a_=2,o_=1,s_=function(e,t){var n=e.length+t.length+2,r=new Array(n),i=new Array(n),a=function(n,r,i,o,u){var l=s(n,r,i,o);if(null===l||l.start===r&&l.diag===r-o||l.end===n&&l.diag===n-i)for(var c=n,d=i;c<r||d<o;)c<r&&d<o&&e[c]===t[d]?(u.push([0,e[c]]),++c,++d):r-n>o-i?(u.push([2,e[c]]),++c):(u.push([1,t[d]]),++d);else{a(n,l.start,i,l.start-l.diag,u);for(var f=l.start;f<l.end;++f)u.push([0,e[f]]);a(l.end,r,l.end-l.diag,o,u)}},o=function(n,r,i,a){for(var o=n;o-r<a&&o<i&&e[o]===t[o-r];)++o;return function(e,t,n){return{start:e,end:t,diag:n}}(n,o,r)},s=function(n,a,s,u){var l=a-n,c=u-s;if(0===l||0===c)return null;var d,f,m,h,p,g=l-c,_=c+l,v=(_%2==0?_:_+1)/2;for(r[1+v]=n,i[1+v]=a+1,d=0;d<=v;++d){for(f=-d;f<=d;f+=2){for(m=f+v,f===-d||f!==d&&r[m-1]<r[m+1]?r[m]=r[m+1]:r[m]=r[m-1]+1,p=(h=r[m])-n+s-f;h<a&&p<u&&e[h]===t[p];)r[m]=++h,++p;if(g%2!=0&&g-d<=f&&f<=g+d&&i[m-g]<=r[m])return o(i[m-g],f+n-s,a,u)}for(f=g-d;f<=g+d;f+=2){for(m=f+v-g,f===g-d||f!==g+d&&i[m+1]<=i[m-1]?i[m]=i[m+1]-1:i[m]=i[m-1],p=(h=i[m]-1)-n+s-f;h>=n&&p>=s&&e[h]===t[p];)i[m]=h--,p--;if(g%2==0&&-d<=f&&f<=d&&i[m]<=r[m+g])return o(i[m],f+n-s,a,u)}}},u=[];return a(0,e.length,0,t.length,u),u},u_=function(e){return Si.isElement(e)?e.outerHTML:Si.isText(e)?zi.encodeRaw(e.data,!1):Si.isComment(e)?"\x3c!--"+e.data+"--\x3e":""},l_=function(e,t,r){var i=function(e){var t,r,i;for(i=n.document.createElement("div"),t=n.document.createDocumentFragment(),e&&(i.innerHTML=e);r=i.firstChild;)t.appendChild(r);return t}(t);if(e.hasChildNodes()&&r<e.childNodes.length){var a=e.childNodes[r];a.parentNode.insertBefore(i,a)}else e.appendChild(i)},c_=function(e){return z(B(Z(e.childNodes),u_),function(e){return e.length>0})},d_=function(e,t){var n=B(Z(t.childNodes),u_);return function(e,t){var n=0;W(e,function(e){e[0]===i_?n++:e[0]===o_?(l_(t,e[1],n),n++):e[0]===a_&&function(e,t){if(e.hasChildNodes()&&t<e.childNodes.length){var n=e.childNodes[t];n.parentNode.removeChild(n)}}(t,n)})}(s_(n,e),t),t},f_=Sa(x.none()),m_=function(e){return{type:"fragmented",fragments:e,content:"",bookmark:null,beforeBookmark:null}},h_=function(e){return{type:"complete",fragments:null,content:e,bookmark:null,beforeBookmark:null}},p_=function(e){return"fragmented"===e.type?e.fragments.join(""):e.content},g_=function(e){var t=$n.fromTag("body",f_.get().getOrThunk(function(){var e=n.document.implementation.createHTMLDocument("undo");return f_.set(x.some(e)),e}));return oo(t,p_(e)),W(Ha(t,"*[data-mce-bogus]"),Ca),t.dom().innerHTML},__={createFragmentedLevel:m_,createCompleteLevel:h_,createFromEditor:function(e){var t,n,r;return t=c_(e.getBody()),-1!==(n=(r=G(t,function(t){var n=r_.trimInternal(e.serializer,t);return n.length>0?[n]:[]})).join("")).indexOf("</iframe>")?m_(r):h_(n)},applyToEditor:function(e,t,n){"fragmented"===t.type?d_(t.fragments,e.getBody()):e.setContent(t.content,{format:"raw"}),e.selection.moveToBookmark(n?t.beforeBookmark:t.bookmark)},isEq:function(e,t){return!(!e||!t)&&(!!function(e,t){return p_(e)===p_(t)}(e,t)||function(e,t){return g_(e)===g_(t)}(e,t))}};function v_(e){var t,n,r=this,i=0,a=[],o=0,s=function(){return 0===o},u=function(e){s()&&(r.typing=e)},l=function(t){e.setDirty(t)},c=function(e){u(!1),r.add({},e)},d=function(){r.typing&&(u(!1),r.add())};return e.on("init",function(){r.add()}),e.on("BeforeExecCommand",function(e){var t=e.command;"Undo"!==t&&"Redo"!==t&&"mceRepaint"!==t&&(d(),r.beforeChange())}),e.on("ExecCommand",function(e){var t=e.command;"Undo"!==t&&"Redo"!==t&&"mceRepaint"!==t&&c(e)}),e.on("ObjectResizeStart Cut",function(){r.beforeChange()}),e.on("SaveContent ObjectResized blur",c),e.on("DragEnd",c),e.on("KeyUp",function(t){var i=t.keyCode;t.isDefaultPrevented()||((i>=33&&i<=36||i>=37&&i<=40||45===i||t.ctrlKey)&&(c(),e.nodeChanged()),46!==i&&8!==i||e.nodeChanged(),n&&r.typing&&!1===__.isEq(__.createFromEditor(e),a[0])&&(!1===e.isDirty()&&(l(!0),e.fire("change",{level:a[0],lastLevel:null})),e.fire("TypingUndo"),n=!1,e.nodeChanged()))}),e.on("KeyDown",function(e){var t=e.keyCode;if(!e.isDefaultPrevented())if(t>=33&&t<=36||t>=37&&t<=40||45===t)r.typing&&c(e);else{var i=e.ctrlKey&&!e.altKey||e.metaKey;!(t<16||t>20)||224===t||91===t||r.typing||i||(r.beforeChange(),u(!0),r.add({},e),n=!0)}}),e.on("MouseDown",function(e){r.typing&&c(e)}),e.on("input",function(e){e.inputType&&("insertReplacementText"===e.inputType||function(e){return"insertText"===e.inputType&&null===e.data}(e))&&c(e)}),e.addShortcut("meta+z","","Undo"),e.addShortcut("meta+y,meta+shift+z","","Redo"),e.on("AddUndo Undo Redo ClearUndos",function(t){t.isDefaultPrevented()||e.nodeChanged()}),r={data:a,typing:!1,beforeChange:function(){s()&&(t=Os.getUndoBookmark(e.selection))},add:function(n,r){var o,u,c,d=e.settings;if(c=__.createFromEditor(e),n=n||{},n=Vt.extend(n,c),!1===s()||e.removed)return null;if(u=a[i],e.fire("BeforeAddUndo",{level:n,lastLevel:u,originalEvent:r}).isDefaultPrevented())return null;if(u&&__.isEq(u,n))return null;if(a[i]&&(a[i].beforeBookmark=t),d.custom_undo_redo_levels&&a.length>d.custom_undo_redo_levels){for(o=0;o<a.length-1;o++)a[o]=a[o+1];a.length--,i=a.length}n.bookmark=Os.getUndoBookmark(e.selection),i<a.length-1&&(a.length=i+1),a.push(n),i=a.length-1;var f={level:n,lastLevel:u,originalEvent:r};return e.fire("AddUndo",f),i>0&&(l(!0),e.fire("change",f)),n},undo:function(){var t;return r.typing&&(r.add(),r.typing=!1,u(!1)),i>0&&(t=a[--i],__.applyToEditor(e,t,!0),l(!0),e.fire("undo",{level:t})),t},redo:function(){var t;return i<a.length-1&&(t=a[++i],__.applyToEditor(e,t,!1),l(!0),e.fire("redo",{level:t})),t},clear:function(){a=[],i=0,r.typing=!1,r.data=a,e.fire("ClearUndos")},hasUndo:function(){return i>0||r.typing&&a[0]&&!__.isEq(__.createFromEditor(e),a[0])},hasRedo:function(){return i<a.length-1&&!r.typing},transact:function(e){return d(),r.beforeChange(),r.ignore(e),r.add()},ignore:function(e){try{o++,e()}finally{o--}},extra:function(t,n){var o,s;r.transact(t)&&(s=a[i].bookmark,o=a[i-1],__.applyToEditor(e,o,!0),r.transact(n)&&(a[i-1].beforeBookmark=s))}}}var y_={},b_=Wt.filter,w_=Wt.each;!function(e,t){var n=y_[e];n||(y_[e]=n=[]),y_[e].push(t)}("pre",function(e){var t,n,r=e.selection.getRng();t=Si.matchNodeNames("pre"),r.collapsed||(n=e.selection.getSelectedBlocks(),w_(b_(b_(n,t),function(e){return t(e.previousSibling)&&-1!==Wt.indexOf(n,e.previousSibling)}),function(e){var t,n;t=e.previousSibling,mn(n=e).remove(),mn(t).append("<br><br>").append(n.childNodes)}))});var M_=function(e,t){w_(y_[e],function(e){e(t)})},k_=/^(src|href|style)$/,L_=Vt.each,D_=il.isEq,x_=function(e,t,n){return e.isChildOf(t,n)&&t!==n&&!e.isBlock(n)},A_=function(e,t,n){var r,i,a;return r=t[n?"startContainer":"endContainer"],i=t[n?"startOffset":"endOffset"],Si.isElement(r)&&(a=r.childNodes.length-1,!n&&i&&i--,r=r.childNodes[i>a?a:i]),Si.isText(r)&&n&&i>=r.nodeValue.length&&(r=new ri(r,e.getBody()).next()||r),Si.isText(r)&&!n&&0===i&&(r=new ri(r,e.getBody()).prev()||r),r},C_=function(e,t,n,r){var i=e.create(n,r);return t.parentNode.insertBefore(i,t),i.appendChild(t),i},T_=function(e,t,n,r,i){var a=$n.fromDom(t),o=$n.fromDom(e.create(r,i)),s=n?Or(a):Ir(a);return Da(o,s),n?(wa(a,o),ka(o,a)):(Ma(a,o),La(o,a)),o.dom()},S_=function(e,t,n,r){return!(t=il.getNonWhiteSpaceSibling(t,n,r))||"BR"===t.nodeName||e.isBlock(t)},Y_=function(e,t,n,r,i){var a,o,s,u=e.dom;if(!function(e,t,n){return!!D_(t,n.inline)||!!D_(t,n.block)||(n.selector?Si.isElement(t)&&e.is(t,n.selector):void 0)}(u,r,t)&&!function(e,t){return t.links&&"A"===e.tagName}(r,t))return!1;if("all"!==t.remove)for(L_(t.styles,function(e,a){e=il.normalizeStyleValue(u,il.replaceVars(e,n),a),"number"==typeof a&&(a=e,i=0),(t.remove_similar||!i||D_(il.getStyle(u,i,a),e))&&u.setStyle(r,a,""),s=1}),s&&""===u.getAttrib(r,"style")&&(r.removeAttribute("style"),r.removeAttribute("data-mce-style")),L_(t.attributes,function(e,t){var a;if(e=il.replaceVars(e,n),"number"==typeof t&&(t=e,i=0),!i||D_(u.getAttrib(i,t),e)){if("class"===t&&(e=u.getAttrib(r,t))&&(a="",L_(e.split(/\s+/),function(e){/mce\-\w+/.test(e)&&(a+=(a?" ":"")+e)}),a))return void u.setAttrib(r,t,a);"class"===t&&r.removeAttribute("className"),k_.test(t)&&r.removeAttribute("data-mce-"+t),r.removeAttribute(t)}}),L_(t.classes,function(e){e=il.replaceVars(e,n),i&&!u.hasClass(i,e)||u.removeClass(r,e)}),o=u.getAttribs(r),a=0;a<o.length;a++){var l=o[a].nodeName;if(0!==l.indexOf("_")&&0!==l.indexOf("data-"))return!1}return"none"!==t.remove?(function(e,t,n){var r,i=t.parentNode,a=e.dom,o=e.settings.forced_root_block;n.block&&(o?i===a.getRoot()&&(n.list_block&&D_(t,n.list_block)||L_(Vt.grep(t.childNodes),function(t){il.isValid(e,o,t.nodeName.toLowerCase())?r?r.appendChild(t):(r=C_(a,t,o),a.setAttribs(r,e.settings.forced_root_block_attrs)):r=0})):a.isBlock(t)&&!a.isBlock(i)&&(S_(a,t,!1)||S_(a,t.firstChild,!0,1)||t.insertBefore(a.create("br"),t.firstChild),S_(a,t,!0)||S_(a,t.lastChild,!1,1)||t.appendChild(a.create("br")))),n.selector&&n.inline&&!D_(n.inline,t)||a.remove(t,1)}(e,r,t),!0):void 0},N_={removeFormat:Y_,remove:function(e,t,n,r,i){var a,o,s=e.formatter.get(t),u=s[0],l=!0,c=e.dom,d=e.selection,f=function(r){var a=function(e,t,n,r,i){var a;return L_(il.getParents(e.dom,t.parentNode).reverse(),function(t){var o;a||"_start"===t.id||"_end"===t.id||(o=Qf.matchNode(e,t,n,r,i))&&!1!==o.split&&(a=t)}),a}(e,r,t,n,i);return function(e,t,n,r,i,a,o,s){var u,l,c,d,f,m,h=e.dom;if(n){for(m=n.parentNode,u=r.parentNode;u&&u!==m;u=u.parentNode){for(l=h.clone(u,!1),f=0;f<t.length;f++)if(Y_(e,t[f],s,l,l)){l=0;break}l&&(c&&l.appendChild(c),d||(d=l),c=l)}!a||o.mixed&&h.isBlock(n)||(r=h.split(n,r)),c&&(i.parentNode.insertBefore(c,i),d.appendChild(i))}return r}(e,s,a,r,r,!0,u,n)},m=function(t){var r,i,a,o,d;if(Si.isElement(t)&&c.getContentEditable(t)&&(o=l,l="true"===c.getContentEditable(t),d=!0),r=Vt.grep(t.childNodes),l&&!d)for(i=0,a=s.length;i<a&&!Y_(e,s[i],n,t,t);i++);if(u.deep&&r.length){for(i=0,a=r.length;i<a;i++)m(r[i]);d&&(l=o)}},h=function(e){var t=c.get(e?"_start":"_end"),n=t[e?"firstChild":"lastChild"];return function(e){return el.isBookmarkNode(e)&&Si.isElement(e)&&("_start"===e.id||"_end"===e.id)}(n)&&(n=n[e?"firstChild":"lastChild"]),Si.isText(n)&&0===n.data.length&&(n=e?t.previousSibling||t.nextSibling:t.nextSibling||t.previousSibling),c.remove(t,!0),n},p=function(t){var n,r,i=t.commonAncestorContainer;if(t=gl(e,t,s,!0),u.split){if(t=Zf.split(t),(n=A_(e,t,!0))!==(r=A_(e,t))){if(/^(TR|TH|TD)$/.test(n.nodeName)&&n.firstChild&&(n="TR"===n.nodeName?n.firstChild.firstChild||n:n.firstChild||n),i&&/^T(HEAD|BODY|FOOT|R)$/.test(i.nodeName)&&/^(TH|TD)$/.test(r.nodeName)&&r.firstChild&&(r=r.firstChild||r),x_(c,n,r)){var a=x.from(n.firstChild).getOr(n);return f(T_(c,a,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void h(!0)}if(x_(c,r,n))return a=x.from(r.lastChild).getOr(r),f(T_(c,a,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void h(!1);n=C_(c,n,"span",{id:"_start","data-mce-type":"bookmark"}),r=C_(c,r,"span",{id:"_end","data-mce-type":"bookmark"}),f(n),f(r),n=h(!0),r=h()}else n=r=f(n);t.startContainer=n.parentNode?n.parentNode:n,t.startOffset=c.nodeIndex(n),t.endContainer=r.parentNode?r.parentNode:r,t.endOffset=c.nodeIndex(r)+1}vl.walk(c,t,function(t){L_(t,function(t){m(t),Si.isElement(t)&&"underline"===e.dom.getStyle(t,"text-decoration")&&t.parentNode&&"underline"===il.getTextDecoration(c,t.parentNode)&&Y_(e,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:"underline"}},null,t)})})};if(r)r.nodeType?((o=c.createRng()).setStartBefore(r),o.setEndAfter(r),p(o)):p(r);else if("false"!==c.getContentEditable(d.getNode()))d.isCollapsed()&&u.inline&&!c.select("td[data-mce-selected],th[data-mce-selected]").length?function(e,t,n,r){var i,a,o,s,u,l,c,d=e.dom,f=e.selection,m=[],h=f.getRng();for(i=h.startContainer,a=h.startOffset,u=i,3===i.nodeType&&(a!==i.nodeValue.length&&(s=!0),u=u.parentNode);u;){if(Qf.matchNode(e,u,t,n,r)){l=u;break}u.nextSibling&&(s=!0),m.push(u),u=u.parentNode}if(l)if(s){o=f.getBookmark(),h.collapse(!0);var p=gl(e,h,e.formatter.get(t),!0);p=Zf.split(p),e.formatter.remove(t,n,p),f.moveToBookmark(o)}else{c=Rs(e.getBody(),l);var g=rm(!1).dom(),_=um(m,g);om(e,g,c||l),im(e,c,!1),f.setCursorLocation(_,1),d.isEmpty(l)&&d.remove(l)}}(e,t,n,i):(a=Os.getPersistentBookmark(e.selection,!0),p(d.getRng()),d.moveToBookmark(a),u.inline&&Qf.match(e,t,n,d.getStart())&&il.moveStart(c,d,d.getRng()),e.nodeChanged());else{r=d.getNode();for(var g=0,_=s.length;g<_&&(!s[g].ceFalseOverride||!Y_(e,s[g],n,r,r));g++);}}},E_=Vt.each,P_=function(e){return e&&1===e.nodeType&&!el.isBookmarkNode(e)&&!Fs(e)&&!Si.isBogus(e)},I_=function(e,t){var n;for(n=e;n;n=n[t]){if(3===n.nodeType&&0!==n.nodeValue.length)return e;if(1===n.nodeType&&!el.isBookmarkNode(n))return n}return e},O_=function(e,t,n){var r,i,a=new Ol(e);if(t&&n&&(t=I_(t,"previousSibling"),n=I_(n,"nextSibling"),a.compare(t,n))){for(r=t.nextSibling;r&&r!==n;)i=r,r=r.nextSibling,t.appendChild(i);return e.remove(n),Vt.each(Vt.grep(n.childNodes),function(e){t.appendChild(e)}),t}return n},F_=function(e,t,n){E_(e.childNodes,function(e){P_(e)&&(t(e)&&n(e),e.hasChildNodes()&&F_(e,t,n))})},R_=function(e,t){return s(function(t,n){return!(!n||!il.getStyle(e,n,t))},t)},H_=function(e,t,n){return s(function(t,n,r){e.setStyle(r,t,n),""===r.getAttribute("style")&&r.removeAttribute("style"),j_(e,r)},t,n)},j_=function(e,t){"SPAN"===t.nodeName&&0===e.getAttribs(t).length&&e.remove(t,!0)},B_=function(e,t){var n;1===t.nodeType&&t.parentNode&&1===t.parentNode.nodeType&&(n=il.getTextDecoration(e,t.parentNode),e.getStyle(t,"color")&&n?e.setStyle(t,"text-decoration",n):e.getStyle(t,"text-decoration")===n&&e.setStyle(t,"text-decoration",null))},W_=function(e,t,n,r){E_(t,function(t){E_(e.dom.select(t.inline,r),function(r){P_(r)&&N_.removeFormat(e,t,n,r,t.exact?r:null)}),function(e,t,n){if(t.clear_child_styles){var r=t.links?"*:not(a)":"*";E_(e.select(r,n),function(n){P_(n)&&E_(t.styles,function(t,r){e.setStyle(n,r,"")})})}}(e.dom,t,r)})},U_=function(e,t,n,r){(t.styles.color||t.styles.textDecoration)&&(Vt.walk(r,s(B_,e),"childNodes"),B_(e,r))},z_=function(e,t,n,r){t.styles&&t.styles.backgroundColor&&F_(r,R_(e,"fontSize"),H_(e,"backgroundColor",il.replaceVars(t.styles.backgroundColor,n)))},J_=function(e,t,n,r){"sub"!==t.inline&&"sup"!==t.inline||(F_(r,R_(e,"fontSize"),H_(e,"fontSize","")),e.remove(e.select("sup"===t.inline?"sub":"sup",r),!0))},q_=function(e,t,n,r){r&&!1!==t.merge_siblings&&(r=O_(e,il.getNonWhiteSpaceSibling(r),r),r=O_(e,r,il.getNonWhiteSpaceSibling(r,!0)))},V_=function(e,t,n,r,i){Qf.matchNode(e,i.parentNode,n,r)&&N_.removeFormat(e,t,r,i)||t.merge_with_parents&&e.dom.getParent(i.parentNode,function(a){if(Qf.matchNode(e,a,n,r))return N_.removeFormat(e,t,r,i),!0})},G_=Vt.each,$_=function(e,t,n,r){var i,a,o=e.formatter.get(t),s=o[0],u=!r&&e.selection.isCollapsed(),l=e.dom,c=e.selection,d=function(e,t){if(t=t||s,e){if(t.onformat&&t.onformat(e,t,n,r),G_(t.styles,function(t,r){l.setStyle(e,r,il.replaceVars(t,n))}),t.styles){var i=l.getAttrib(e,"style");i&&e.setAttribute("data-mce-style",i)}G_(t.attributes,function(t,r){l.setAttrib(e,r,il.replaceVars(t,n))}),G_(t.classes,function(t){t=il.replaceVars(t,n),l.hasClass(e,t)||l.addClass(e,t)})}},f=function(e,t){var n=!1;return!!s.selector&&(G_(e,function(e){if(!("collapsed"in e&&e.collapsed!==u))return l.is(t,e.selector)&&!Fs(t)?(d(t,e),n=!0,!1):void 0}),n)},m=function(r,i,a,u){var l,c,m=[],h=!0;l=s.inline||s.block,c=r.create(l),d(c),vl.walk(r,i,function(i){var a,p=function(i){var g,_,v,y;if(y=h,g=i.nodeName.toLowerCase(),_=i.parentNode.nodeName.toLowerCase(),1===i.nodeType&&r.getContentEditable(i)&&(y=h,h="true"===r.getContentEditable(i),v=!0),il.isEq(g,"br"))return a=0,void(s.block&&r.remove(i));if(s.wrapper&&Qf.matchNode(e,i,t,n))a=0;else{if(h&&!v&&s.block&&!s.wrapper&&il.isTextBlock(e,g)&&il.isValid(e,_,l))return i=r.rename(i,l),d(i),m.push(i),void(a=0);if(s.selector){var b=f(o,i);if(!s.inline||b)return void(a=0)}!h||v||!il.isValid(e,l,g)||!il.isValid(e,_,l)||!u&&3===i.nodeType&&1===i.nodeValue.length&&65279===i.nodeValue.charCodeAt(0)||Fs(i)||s.inline&&r.isBlock(i)?(a=0,G_(Vt.grep(i.childNodes),p),v&&(h=y),a=0):(a||(a=r.clone(c,!1),i.parentNode.insertBefore(a,i),m.push(a)),a.appendChild(i))}};G_(i,p)}),!0===s.links&&G_(m,function(e){var t=function(e){"A"===e.nodeName&&d(e,s),G_(Vt.grep(e.childNodes),t)};t(e)}),G_(m,function(i){var a,u=function(e){var t=!1;return G_(e.childNodes,function(e){if(function(e){return e&&1===e.nodeType&&!el.isBookmarkNode(e)&&!Fs(e)&&!Si.isBogus(e)}(e))return t=e,!1}),t};a=function(e){var t=0;return G_(e.childNodes,function(e){il.isWhiteSpaceNode(e)||el.isBookmarkNode(e)||t++}),t}(i),!(m.length>1)&&r.isBlock(i)||0!==a?(s.inline||s.wrapper)&&(s.exact||1!==a||(i=function(e){var t,n;return(t=u(e))&&!el.isBookmarkNode(t)&&Qf.matchName(r,t,s)&&(n=r.clone(t,!1),d(n),r.replace(n,e,!0),r.remove(t,1)),n||e}(i)),W_(e,o,n,i),V_(e,s,t,n,i),z_(r,s,n,i),J_(r,s,n,i),q_(r,s,n,i)):r.remove(i,1)})};if("false"!==l.getContentEditable(c.getNode())){if(s){if(r)r.nodeType?f(o,r)||((a=l.createRng()).setStartBefore(r),a.setEndAfter(r),m(l,gl(e,a,o),0,!0)):m(l,r,0,!0);else if(u&&s.inline&&!l.select("td[data-mce-selected],th[data-mce-selected]").length)!function(e,t,n){var r,i,a,o,s,u,l=e.selection;o=(r=l.getRng(!0)).startOffset,u=r.startContainer.nodeValue,(i=Rs(e.getBody(),l.getStart()))&&(a=nm(i));var c,d,f=/[^\s\u00a0\u00ad\u200b\ufeff]/;u&&o>0&&o<u.length&&f.test(u.charAt(o))&&f.test(u.charAt(o-1))?(s=l.getBookmark(),r.collapse(!0),r=gl(e,r,e.formatter.get(t)),r=Zf.split(r),e.formatter.apply(t,n,r),l.moveToBookmark(s)):(i&&a.nodeValue===em?e.formatter.apply(t,n,i):(c=e.getDoc(),d=rm(!0).dom(),a=(i=c.importNode(d,!0)).firstChild,r.insertNode(i),o=1,e.formatter.apply(t,n,i)),l.setCursorLocation(a,o))}(e,t,n);else{var h=e.selection.getNode();e.settings.forced_root_block||!o[0].defaultBlock||l.getParent(h,l.isBlock)||$_(e,o[0].defaultBlock),e.selection.setRng(Jl(e.selection.getRng())),i=Os.getPersistentBookmark(e.selection,!0),m(l,gl(e,c.getRng(),o)),s.styles&&U_(l,s,n,h),c.moveToBookmark(i),il.moveStart(l,c,c.getRng()),e.nodeChanged()}M_(t,e)}}else{r=c.getNode();for(var p=0,g=o.length;p<g;p++)if(o[p].ceFalseOverride&&l.is(r,o[p].selector))return void d(r,o[p])}},K_={applyFormat:$_},Q_=Vt.each,X_={formatChanged:function(e,t,n,r,i){null===t.get()&&function(e,t){var n={};e.set({}),t.on("NodeChange",function(r){var i=il.getParents(t.dom,r.element),a={};i=Vt.grep(i,function(e){return 1===e.nodeType&&!e.getAttribute("data-mce-bogus")}),Q_(e.get(),function(e,r){Q_(i,function(o){return t.formatter.matchNode(o,r,{},e.similar)?(n[r]||(Q_(e,function(e){e(!0,{node:o,format:r,parents:i})}),n[r]=e),a[r]=e,!1):!Qf.matchesUnInheritedFormatSelector(t,o,r)&&void 0})}),Q_(n,function(e,t){a[t]||(delete n[t],Q_(e,function(e){e(!1,{node:r.element,format:t,parents:i})}))})})}(t,e),function(e,t,n,r){var i=e.get();Q_(t.split(","),function(e){i[e]||(i[e]=[],i[e].similar=r),i[e].push(n)}),e.set(i)}(t,n,r,i)}},Z_={get:function(e){var t={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},inherit:!1,preview:!1,defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"justify"},inherit:!1,defaultBlock:"div",preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all"},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all"}],italic:[{inline:"em",remove:"all"},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all"}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all"}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all"}],forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:1,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:function(){return!0},onformat:function(t,n,r){Vt.each(r,function(n,r){e.setAttrib(t,r,n)})}},removeformat:[{selector:"b,strong,em,i,font,u,strike,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return Vt.each("p h1 h2 h3 h4 h5 h6 div address pre div dt dd samp".split(/\s/),function(e){t[e]={block:e,remove:"all"}}),t}},ev=Vt.each,tv=ma.DOM,nv=function(e,t){var n,r,i,a=t&&t.schema||ta({}),o=function(e){var t;return r="string"==typeof e?{name:e,classes:[],attrs:{}}:e,function(e,t){t.classes.length&&tv.addClass(e,t.classes.join(" ")),tv.setAttribs(e,t.attrs)}(t=tv.create(r.name),r),t},s=function(e,t,n){var r,i,u,l=t.length>0&&t[0],c=l&&l.name;if(u=function(e,t){var n="string"!=typeof e?e.nodeName.toLowerCase():e,r=a.getElementRule(n),i=r&&r.parentsRequired;return!(!i||!i.length)&&(t&&-1!==Vt.inArray(i,t)?t:i[0])}(e,c))c===u?(i=t[0],t=t.slice(1)):i=u;else if(l)i=t[0],t=t.slice(1);else if(!n)return e;return i&&(r=o(i)).appendChild(e),n&&(r||(r=tv.create("div")).appendChild(e),Vt.each(n,function(t){var n=o(t);r.insertBefore(n,e)})),s(r,t,i&&i.siblings)};return e&&e.length?(r=e[0],n=o(r),(i=tv.create("div")).appendChild(s(n,e.slice(1),r.siblings)),i):""},rv=function(e){var t,n={classes:[],attrs:{}};return"*"!==(e=n.selector=Vt.trim(e))&&(t=e.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,function(e,t,r,i,a){switch(t){case"#":n.attrs.id=r;break;case".":n.classes.push(r);break;case":":-1!==Vt.inArray("checked disabled enabled read-only required".split(" "),r)&&(n.attrs[r]=r)}if("["===i){var o=a.match(/([\w\-]+)(?:\=\"([^\"]+))?/);o&&(n.attrs[o[1]]=o[2])}return""})),n.name=t||"div",n},iv=function(e){return e&&"string"==typeof e?(e=(e=e.split(/\s*,\s*/)[0]).replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),Vt.map(e.split(/(?:>|\s+(?![^\[\]]+\]))/),function(e){var t=Vt.map(e.split(/(?:~\+|~|\+)/),rv),n=t.pop();return t.length&&(n.siblings=t),n}).reverse()):[]},av={getCssText:function(e,t){var n,r,i,a,o,s,u="";if(!1===(s=e.settings.preview_styles))return"";"string"!=typeof s&&(s="font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow");var l=function(e){return e.replace(/%(\w+)/g,"")};if("string"==typeof t){if(!(t=e.formatter.get(t)))return;t=t[0]}return"preview"in t&&!1===(s=t.preview)?"":(n=t.block||t.inline||"span",(a=iv(t.selector)).length?(a[0].name||(a[0].name=n),n=t.selector,r=nv(a,e)):r=nv([n],e),i=tv.select(n,r)[0]||r.firstChild,ev(t.styles,function(e,t){(e=l(e))&&tv.setStyle(i,t,e)}),ev(t.attributes,function(e,t){(e=l(e))&&tv.setAttrib(i,t,e)}),ev(t.classes,function(e){e=l(e),tv.hasClass(i,e)||tv.addClass(i,e)}),e.fire("PreviewFormats"),tv.setStyles(r,{position:"absolute",left:-65535}),e.getBody().appendChild(r),o=tv.getStyle(e.getBody(),"fontSize",!0),o=/px$/.test(o)?parseInt(o,10):0,ev(s.split(" "),function(t){var n=tv.getStyle(i,t,!0);if(!("background-color"===t&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(n)&&(n=tv.getStyle(e.getBody(),t,!0),"#ffffff"===tv.toHex(n).toLowerCase())||"color"===t&&"#000000"===tv.toHex(n).toLowerCase())){if("font-size"===t&&/em|%$/.test(n)){if(0===o)return;n=parseFloat(n)/(/%$/.test(n)?100:1)*o+"px"}"border"===t&&n&&(u+="padding:0 2px;"),u+=t+":"+n+";"}}),e.fire("AfterPreviewFormats"),tv.remove(r),u)},parseSelector:iv,selectorToHtml:function(e,t){return nv(iv(e),t)}},ov={toggle:function(e,t,n,r,i){var a=t.get(n);!Qf.match(e,n,r,i)||"toggle"in a[0]&&!a[0].toggle?K_.applyFormat(e,n,r,i):N_.remove(e,n,r,i)}},sv={setup:function(e){e.addShortcut("meta+b","","Bold"),e.addShortcut("meta+i","","Italic"),e.addShortcut("meta+u","","Underline");for(var t=1;t<=6;t++)e.addShortcut("access+"+t,"",["FormatBlock",!1,"h"+t]);e.addShortcut("access+7","",["FormatBlock",!1,"p"]),e.addShortcut("access+8","",["FormatBlock",!1,"div"]),e.addShortcut("access+9","",["FormatBlock",!1,"address"])}};function uv(e){var t=function(e){var t={},n=function(e,r){e&&("string"!=typeof e?Vt.each(e,function(e,t){n(t,e)}):(r=r.length?r:[r],Vt.each(r,function(e){void 0===e.deep&&(e.deep=!e.selector),void 0===e.split&&(e.split=!e.selector||e.inline),void 0===e.remove&&e.selector&&!e.inline&&(e.remove="none"),e.selector&&e.inline&&(e.mixed=!0,e.block_expand=!0),"string"==typeof e.classes&&(e.classes=e.classes.split(/\s+/))}),t[e]=r))};return n(Z_.get(e.dom)),n(e.settings.formats),{get:function(e){return e?t[e]:t},register:n,unregister:function(e){return e&&t[e]&&delete t[e],t}}}(e),n=Sa(null);return sv.setup(e),lm(e),{get:t.get,register:t.register,unregister:t.unregister,apply:s(K_.applyFormat,e),remove:s(N_.remove,e),toggle:s(ov.toggle,e,t),match:s(Qf.match,e),matchAll:s(Qf.matchAll,e),matchNode:s(Qf.matchNode,e),canApply:s(Qf.canApply,e),formatChanged:s(X_.formatChanged,e,n),getCssText:s(av.getCssText,e)}}var lv,cv=Object.prototype.hasOwnProperty,dv=(lv=function(e,t){return t},function(){for(var e=new Array(arguments.length),t=0;t<e.length;t++)e[t]=arguments[t];if(0===e.length)throw new Error("Can't merge zero objects");for(var n={},r=0;r<e.length;r++){var i=e[r];for(var a in i)cv.call(i,a)&&(n[a]=lv(n[a],i[a]))}return n}),fv={register:function(e,t,n){e.addAttributeFilter("data-mce-tabindex",function(e,t){for(var n,r=e.length;r--;)(n=e[r]).attr("tabindex",n.attributes.map["data-mce-tabindex"]),n.attr(t,null)}),e.addAttributeFilter("src,href,style",function(e,r){for(var i,a,o=e.length,s="data-mce-"+r,u=t.url_converter,l=t.url_converter_scope;o--;)void 0!==(a=(i=e[o]).attributes.map[s])?(i.attr(r,a.length>0?a:null),i.attr(s,null)):(a=i.attributes.map[r],"style"===r?a=n.serializeStyle(n.parseStyle(a),i.name):u&&(a=u.call(l,a,r,i.name)),i.attr(r,a.length>0?a:null))}),e.addAttributeFilter("class",function(e){for(var t,n,r=e.length;r--;)(n=(t=e[r]).attr("class"))&&(n=t.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),t.attr("class",n.length>0?n:null))}),e.addAttributeFilter("data-mce-type",function(e,t,n){for(var r,i=e.length;i--;)"bookmark"!==(r=e[i]).attributes.map["data-mce-type"]||n.cleanup||(x.from(r.firstChild).exists(function(e){return!so(e.value)})?r.unwrap():r.remove())}),e.addNodeFilter("noscript",function(e){for(var t,n=e.length;n--;)(t=e[n].firstChild)&&(t.value=zi.decode(t.value))}),e.addNodeFilter("script,style",function(e,n){for(var r,i,a,o=e.length,s=function(e){return e.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")};o--;)i=(r=e[o]).firstChild?r.firstChild.value:"","script"===n?((a=r.attr("type"))&&r.attr("type","mce-no/type"===a?null:a.replace(/^mce\-/,"")),"xhtml"===t.element_format&&i.length>0&&(r.firstChild.value="// <![CDATA[\n"+s(i)+"\n// ]]>")):"xhtml"===t.element_format&&i.length>0&&(r.firstChild.value="\x3c!--\n"+s(i)+"\n--\x3e")}),e.addNodeFilter("#comment",function(e){for(var t,n=e.length;n--;)0===(t=e[n]).value.indexOf("[CDATA[")?(t.name="#cdata",t.type=4,t.value=t.value.replace(/^\[CDATA\[|\]\]$/g,"")):0===t.value.indexOf("mce:protected ")&&(t.name="#text",t.type=3,t.raw=!0,t.value=unescape(t.value).substr(14))}),e.addNodeFilter("xml:namespace,input",function(e,t){for(var n,r=e.length;r--;)7===(n=e[r]).type?n.remove():1===n.type&&("input"!==t||"type"in n.attributes.map||n.attr("type","text"))}),e.addAttributeFilter("data-mce-type",function(t){W(t,function(t){"format-caret"===t.attr("data-mce-type")&&(t.isEmpty(e.schema.getNonEmptyElements())?t.remove():t.unwrap())})}),e.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize",function(e,t){for(var n=e.length;n--;)e[n].attr(t,null)})},trimTrailingBr:function(e){var t,n,r=function(e){return e&&"br"===e.name};r(t=e.lastChild)&&r(n=t.prev)&&(t.remove(),n.remove())}},mv={process:function(e,t,r){return function(e,t){return e&&e.hasEventListeners("PreProcess")&&!t.no_events}(e,r)?function(e,t,r){var i,a,o,s=e.dom;return t=t.cloneNode(!0),(i=n.document.implementation).createHTMLDocument&&(a=i.createHTMLDocument(""),Vt.each("BODY"===t.nodeName?t.childNodes:[t],function(e){a.body.appendChild(a.importNode(e,!0))}),t="BODY"!==t.nodeName?a.body.firstChild:a.body,o=s.doc,s.doc=a),Oh(e,dv(r,{node:t})),o&&(s.doc=o),t}(e,t,r):t}},hv=function(e,t,n){e.addNodeFilter("font",function(e){W(e,function(e){var r=t.parse(e.attr("style")),i=e.attr("color"),a=e.attr("face"),o=e.attr("size");i&&(r.color=i),a&&(r["font-family"]=a),o&&(r["font-size"]=n[parseInt(e.attr("size"),10)-1]),e.name="span",e.attr("style",t.serialize(r)),function(e,t){W(t,function(t){e.attr(t,null)})}(e,["color","face","size"])})})},pv=function(e,t){var n=ra();t.convert_fonts_to_spans&&hv(e,n,Vt.explode(t.font_size_legacy_values)),function(e,t){e.addNodeFilter("strike",function(e){W(e,function(e){var n=t.parse(e.attr("style"));n["text-decoration"]="line-through",e.name="span",e.attr("style",t.serialize(n))})})}(e,n)},gv={register:function(e,t){t.inline_styles&&pv(e,t)}},_v=/^[ \t\r\n]*$/,vv={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},yv=function(e,t,n){var r,i,a=n?"lastChild":"firstChild",o=n?"prev":"next";if(e[a])return e[a];if(e!==t){if(r=e[o])return r;for(i=e.parent;i&&i!==t;i=i.parent)if(r=i[o])return r}},bv=function(){function e(e,t){this.name=e,this.type=t,1===t&&(this.attributes=[],this.attributes.map={})}return e.create=function(t,n){var r,i;if(r=new e(t,vv[t]||1),n)for(i in n)r.attr(i,n[i]);return r},e.prototype.replace=function(e){return e.parent&&e.remove(),this.insert(e,this),this.remove(),this},e.prototype.attr=function(e,t){var n,r;if("string"!=typeof e){for(r in e)this.attr(r,e[r]);return this}if(n=this.attributes){if(void 0!==t){if(null===t){if(e in n.map)for(delete n.map[e],r=n.length;r--;)if(n[r].name===e)return n=n.splice(r,1),this;return this}if(e in n.map){for(r=n.length;r--;)if(n[r].name===e){n[r].value=t;break}}else n.push({name:e,value:t});return n.map[e]=t,this}return n.map[e]}},e.prototype.clone=function(){var t,n,r,i,a,o=new e(this.name,this.type);if(r=this.attributes){for((a=[]).map={},t=0,n=r.length;t<n;t++)"id"!==(i=r[t]).name&&(a[a.length]={name:i.name,value:i.value},a.map[i.name]=i.value);o.attributes=a}return o.value=this.value,o.shortEnded=this.shortEnded,o},e.prototype.wrap=function(e){return this.parent.insert(e,this),e.append(this),this},e.prototype.unwrap=function(){var e,t;for(e=this.firstChild;e;)t=e.next,this.insert(e,this,!0),e=t;this.remove()},e.prototype.remove=function(){var e=this.parent,t=this.next,n=this.prev;return e&&(e.firstChild===this?(e.firstChild=t,t&&(t.prev=null)):n.next=t,e.lastChild===this?(e.lastChild=n,n&&(n.next=null)):t.prev=n,this.parent=this.next=this.prev=null),this},e.prototype.append=function(e){var t;return e.parent&&e.remove(),(t=this.lastChild)?(t.next=e,e.prev=t,this.lastChild=e):this.lastChild=this.firstChild=e,e.parent=this,e},e.prototype.insert=function(e,t,n){var r;return e.parent&&e.remove(),r=t.parent||this,n?(t===r.firstChild?r.firstChild=e:t.prev.next=e,e.prev=t.prev,e.next=t,t.prev=e):(t===r.lastChild?r.lastChild=e:t.next.prev=e,e.next=t.next,e.prev=t,t.next=e),e.parent=r,e},e.prototype.getAll=function(e){var t,n=[];for(t=this.firstChild;t;t=yv(t,this))t.name===e&&n.push(t);return n},e.prototype.empty=function(){var e,t,n;if(this.firstChild){for(e=[],n=this.firstChild;n;n=yv(n,this))e.push(n);for(t=e.length;t--;)(n=e[t]).parent=n.firstChild=n.lastChild=n.next=n.prev=null}return this.firstChild=this.lastChild=null,this},e.prototype.isEmpty=function(e,t,n){var r,i,a=this.firstChild;if(t=t||{},a)do{if(1===a.type){if(a.attributes.map["data-mce-bogus"])continue;if(e[a.name])return!1;for(r=a.attributes.length;r--;)if("name"===(i=a.attributes[r].name)||0===i.indexOf("data-mce-bookmark"))return!1}if(8===a.type)return!1;if(3===a.type&&!_v.test(a.value))return!1;if(3===a.type&&a.parent&&t[a.parent.name]&&_v.test(a.value))return!1;if(n&&n(a))return!1}while(a=yv(a,this));return!0},e.prototype.walk=function(e){return yv(this,null,e)},e}(),wv=function(e,t,n,r){(e.padd_empty_with_br||t.insert)&&n[r.name]?r.empty().append(new bv("br",1)).shortEnded=!0:r.empty().append(new bv("#text",3)).value=" "},Mv=function(e){return kv(e,"#text")&&" "===e.firstChild.value},kv=function(e,t){return e&&e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.name===t},Lv=function(e,t,n,r){return r.isEmpty(t,n,function(t){return function(e,t){var n=e.getElementRule(t.name);return n&&n.paddEmpty}(e,t)})},Dv=function(e,t){return e&&(t[e.name]||"br"===e.name)},xv=function(e,t){var n=e.schema;t.remove_trailing_brs&&e.addNodeFilter("br",function(e,r,i){var a,o,s,u,l,c,d,f,m=e.length,h=Vt.extend({},n.getBlockElements()),p=n.getNonEmptyElements(),g=n.getWhiteSpaceElements();for(h.body=1,a=0;a<m;a++)if(s=(o=e[a]).parent,h[o.parent.name]&&o===s.lastChild){for(l=o.prev;l;){if("span"!==(c=l.name)||"bookmark"!==l.attr("data-mce-type")){if("br"!==c)break;if("br"===c){o=null;break}}l=l.prev}o&&(o.remove(),Lv(n,p,g,s)&&(d=n.getElementRule(s.name))&&(d.removeEmpty?s.remove():d.paddEmpty&&wv(t,i,h,s)))}else{for(u=o;s&&s.firstChild===u&&s.lastChild===u&&(u=s,!h[s.name]);)s=s.parent;u===s&&!0!==t.padd_empty_with_br&&((f=new bv("#text",3)).value=" ",o.replace(f))}}),e.addAttributeFilter("href",function(e){var n,r,i,a=e.length;if(!t.allow_unsafe_link_target)for(;a--;)"a"===(n=e[a]).name&&"_blank"===n.attr("target")&&n.attr("rel",(r=n.attr("rel"),i=r?Vt.trim(r):"",/\b(noopener)\b/g.test(i)?i:function(e){return e.split(" ").filter(function(e){return e.length>0}).concat(["noopener"]).sort().join(" ")}(i)))}),t.allow_html_in_named_anchor||e.addAttributeFilter("id,name",function(e){for(var t,n,r,i,a=e.length;a--;)if("a"===(i=e[a]).name&&i.firstChild&&!i.attr("href")){r=i.parent,t=i.lastChild;do{n=t.prev,r.insert(t,i),t=n}while(t)}}),t.fix_list_elements&&e.addNodeFilter("ul,ol",function(e){for(var t,n,r=e.length;r--;)if("ul"===(n=(t=e[r]).parent).name||"ol"===n.name)if(t.prev&&"li"===t.prev.name)t.prev.append(t);else{var i=new bv("li",1);i.attr("style","list-style-type: none"),t.wrap(i)}}),t.validate&&n.getValidClasses()&&e.addAttributeFilter("class",function(e){for(var t,r,i,a,o,s,u,l=e.length,c=n.getValidClasses();l--;){for(r=(t=e[l]).attr("class").split(" "),o="",i=0;i<r.length;i++)a=r[i],u=!1,(s=c["*"])&&s[a]&&(u=!0),s=c[t.name],!u&&s&&s[a]&&(u=!0),u&&(o&&(o+=" "),o+=a);o.length||(o=null),t.attr("class",o)}})},Av=Vt.makeMap,Cv=Vt.each,Tv=Vt.explode,Sv=Vt.extend;function Yv(e,t){void 0===t&&(t=ta());var n={},r=[],i={},a={};(e=e||{}).validate=!("validate"in e)||e.validate,e.root_name=e.root_name||"body";var o=function(e){var t,o,s;(o=e.name)in n&&((s=i[o])?s.push(e):i[o]=[e]),t=r.length;for(;t--;)(o=r[t].name)in e.attributes.map&&((s=a[o])?s.push(e):a[o]=[e]);return e},s={schema:t,addAttributeFilter:function(e,t){Cv(Tv(e),function(e){var n;for(n=0;n<r.length;n++)if(r[n].name===e)return void r[n].callbacks.push(t);r.push({name:e,callbacks:[t]})})},getAttributeFilters:function(){return[].concat(r)},addNodeFilter:function(e,t){Cv(Tv(e),function(e){var r=n[e];r||(n[e]=r=[]),r.push(t)})},getNodeFilters:function(){var e=[];for(var t in n)n.hasOwnProperty(t)&&e.push({name:t,callbacks:n[t]});return e},filterNode:o,parse:function(s,u){var l,c,d,f,m,h,p,g,_,v,y,b=[];u=u||{},i={},a={},_=Sv(Av("script,style,head,html,body,title,meta,param"),t.getBlockElements());var w=t.getNonEmptyElements(),M=t.children,k=e.validate,L="forced_root_block"in u?u.forced_root_block:e.forced_root_block,D=t.getWhiteSpaceElements(),x=/^[ \t\r\n]+/,A=/[ \t\r\n]+$/,C=/[ \t\r\n]+/g,T=/^[ \t\r\n]+$/;v=D.hasOwnProperty(u.context)||D.hasOwnProperty(e.root_name);var S=function(e,t){var r,a=new bv(e,t);return e in n&&((r=i[e])?r.push(a):i[e]=[a]),a},Y=function(e){var n,r,i,a,o=t.getBlockElements();for(n=e.prev;n&&3===n.type;){if((i=n.value.replace(A,"")).length>0)return void(n.value=i);if(r=n.next){if(3===r.type&&r.value.length){n=n.prev;continue}if(!o[r.name]&&"script"!==r.name&&"style"!==r.name){n=n.prev;continue}}a=n.prev,n.remove(),n=a}};l=t_({validate:k,allow_script_urls:e.allow_script_urls,allow_conditional_comments:e.allow_conditional_comments,self_closing_elements:function(e){var t,n={};for(t in e)"li"!==t&&"p"!==t&&(n[t]=e[t]);return n}(t.getSelfClosingElements()),cdata:function(e){y.append(S("#cdata",4)).value=e},text:function(e,t){var n;v||(e=e.replace(C," "),Dv(y.lastChild,_)&&(e=e.replace(x,""))),0!==e.length&&((n=S("#text",3)).raw=!!t,y.append(n).value=e)},comment:function(e){y.append(S("#comment",8)).value=e},pi:function(e,t){y.append(S(e,7)).value=t,Y(y)},doctype:function(e){y.append(S("#doctype",10)).value=e,Y(y)},start:function(e,n,i){var o,s,u,l,c;if(u=k?t.getElementRule(e):{}){for((o=S(u.outputName||e,1)).attributes=n,o.shortEnded=i,y.append(o),(c=M[y.name])&&M[o.name]&&!c[o.name]&&b.push(o),s=r.length;s--;)(l=r[s].name)in n.map&&((p=a[l])?p.push(o):a[l]=[o]);_[e]&&Y(o),i||(y=o),!v&&D[e]&&(v=!0)}},end:function(n){var r,i,a,o,s;if(i=k?t.getElementRule(n):{}){if(_[n]&&!v){if((r=y.firstChild)&&3===r.type)if((a=r.value.replace(x,"")).length>0)r.value=a,r=r.next;else for(o=r.next,r.remove(),r=o;r&&3===r.type;)a=r.value,o=r.next,(0===a.length||T.test(a))&&(r.remove(),r=o),r=o;if((r=y.lastChild)&&3===r.type)if((a=r.value.replace(A,"")).length>0)r.value=a,r=r.prev;else for(o=r.prev,r.remove(),r=o;r&&3===r.type;)a=r.value,o=r.prev,(0===a.length||T.test(a))&&(r.remove(),r=o),r=o}if(v&&D[n]&&(v=!1),i.removeEmpty&&Lv(t,w,D,y)&&!y.attributes.map.name&&!y.attr("id"))return s=y.parent,_[y.name]?y.empty().remove():y.unwrap(),void(y=s);i.paddEmpty&&(Mv(y)||Lv(t,w,D,y))&&wv(e,u,_,y),y=y.parent}}},t);var N=y=new bv(u.context||e.root_name,11);if(l.parse(s),k&&b.length&&(u.context?u.invalid=!0:function(e){var n,r,i,a,s,u,l,c,d,f,m,h,p,g,_,v;for(h=Av("tr,td,th,tbody,thead,tfoot,table"),f=t.getNonEmptyElements(),m=t.getWhiteSpaceElements(),p=t.getTextBlockElements(),g=t.getSpecialElements(),n=0;n<e.length;n++)if((r=e[n]).parent&&!r.fixed)if(p[r.name]&&"li"===r.parent.name){for(_=r.next;_&&p[_.name];)_.name="li",_.fixed=!0,r.parent.insert(_,r.parent),_=_.next;r.unwrap(r)}else{for(a=[r],i=r.parent;i&&!t.isValidChild(i.name,r.name)&&!h[i.name];i=i.parent)a.push(i);if(i&&a.length>1){for(a.reverse(),s=u=o(a[0].clone()),d=0;d<a.length-1;d++){for(t.isValidChild(u.name,a[d].name)?(l=o(a[d].clone()),u.append(l)):l=u,c=a[d].firstChild;c&&c!==a[d+1];)v=c.next,l.append(c),c=v;u=l}Lv(t,f,m,s)?i.insert(r,a[0],!0):(i.insert(s,a[0],!0),i.insert(r,s)),i=a[0],(Lv(t,f,m,i)||kv(i,"br"))&&i.empty().remove()}else if(r.parent){if("li"===r.name){if((_=r.prev)&&("ul"===_.name||"ul"===_.name)){_.append(r);continue}if((_=r.next)&&("ul"===_.name||"ul"===_.name)){_.insert(r,_.firstChild,!0);continue}r.wrap(o(new bv("ul",1)));continue}t.isValidChild(r.parent.name,"div")&&t.isValidChild("div",r.name)?r.wrap(o(new bv("div",1))):g[r.name]?r.empty().remove():r.unwrap()}}}(b)),L&&("body"===N.name||u.isRootContent)&&function(){var n,r,i=N.firstChild,a=function(e){e&&((i=e.firstChild)&&3===i.type&&(i.value=i.value.replace(x,"")),(i=e.lastChild)&&3===i.type&&(i.value=i.value.replace(A,"")))};if(t.isValidChild(N.name,L.toLowerCase())){for(;i;)n=i.next,3===i.type||1===i.type&&"p"!==i.name&&!_[i.name]&&!i.attr("data-mce-type")?r?r.append(i):((r=S(L,1)).attr(e.forced_root_block_attrs),N.insert(r,i),r.append(i)):(a(r),r=null),i=n;a(r)}}(),!u.invalid){for(g in i){for(p=n[g],m=(c=i[g]).length;m--;)c[m].parent||c.splice(m,1);for(d=0,f=p.length;d<f;d++)p[d](c,g,u)}for(d=0,f=r.length;d<f;d++)if((p=r[d]).name in a){for(m=(c=a[p.name]).length;m--;)c[m].parent||c.splice(m,1);for(m=0,h=p.callbacks.length;m<h;m++)p.callbacks[m](c,p.name,u)}}return N}};return xv(s,e),gv.register(s,e),s}var Nv=function(e,t,n){-1===Vt.inArray(t,n)&&(e.addAttributeFilter(n,function(e,t){for(var n=e.length;n--;)e[n].attr(t,null)}),t.push(n))},Ev=function(e,t,n){var r=lo(n.getInner?t.innerHTML:e.getOuterHTML(t));return n.selection||vi($n.fromDom(t))?r:Vt.trim(r)},Pv=function(e,t,n){var r=n.selection?dv({forced_root_block:!1},n):n,i=e.parse(t,r);return fv.trimTrailingBr(i),i},Iv=function(e,t,n,r,i){return function(e,t,n){return!t.no_events&&e?Fh(e,dv(t,{content:n})).content:n}(e,i,function(e,t,n){return Wl(e,t).serialize(n)}(t,n,r))};function Ov(e,t){var n=function(e,t){var n,r,i,a=["data-mce-selected"];return n=t&&t.dom?t.dom:ma.DOM,r=t&&t.schema?t.schema:ta(e),e.entity_encoding=e.entity_encoding||"named",e.remove_trailing_brs=!("remove_trailing_brs"in e)||e.remove_trailing_brs,i=Yv(e,r),fv.register(i,e,n),{schema:r,addNodeFilter:i.addNodeFilter,addAttributeFilter:i.addAttributeFilter,serialize:function(a,o){var s=dv({format:"html"},o||{}),u=mv.process(t,a,s),l=Ev(n,u,s),c=Pv(i,l,s);return"tree"===s.format?c:Iv(t,e,r,c,s)},addRules:function(e){r.addValidElements(e)},setRules:function(e){r.setValidElements(e)},addTempAttr:s(Nv,i,a),getTempAttrs:function(){return a}}}(e,t);return{schema:n.schema,addNodeFilter:n.addNodeFilter,addAttributeFilter:n.addAttributeFilter,serialize:n.serialize,addRules:n.addRules,setRules:n.setRules,addTempAttr:n.addTempAttr,getTempAttrs:n.getTempAttrs}}function Fv(e){return{getBookmark:s(el.getBookmark,e),moveToBookmark:s(el.moveToBookmark,e)}}!function(e){e.isBookmarkNode=el.isBookmarkNode}(Fv||(Fv={}));var Rv,Hv=Fv,jv=Si.isContentEditableFalse,Bv=Si.isContentEditableTrue,Wv=function(e,t){var r,i,a,o,s,u,l,c,d,f,m,h,p,g,_,v,y,b=t.dom,w=Vt.each,M=t.getDoc(),k=n.document,L=Math.abs,D=Math.round,x=t.getBody();o={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]};var A=".mce-content-body";t.contentStyles.push(A+" div.mce-resizehandle {position: absolute;border: 1px solid black;box-sizing: content-box;background: #FFF;width: 7px;height: 7px;z-index: 10000}"+A+" .mce-resizehandle:hover {background: #000}"+A+" img[data-mce-selected],"+A+" hr[data-mce-selected] {outline: 1px solid black;resize: none}"+A+" .mce-clonedresizable {position: absolute;"+(le.gecko?"":"outline: 1px dashed black;")+"opacity: .5;filter: alpha(opacity=50);z-index: 10000}"+A+" .mce-resize-helper {background: #555;background: rgba(0,0,0,0.75);border-radius: 3px;border: 1px;color: white;display: none;font-family: sans-serif;font-size: 12px;white-space: nowrap;line-height: 14px;margin: 5px 10px;padding: 5px;position: absolute;z-index: 10001}");var C=function(e){return e&&("IMG"===e.nodeName||t.dom.is(e,"figure.image"))},T=function(e){var n=e.target;(function(e,t){return C(e.target)&&!Eg(e.clientX,e.clientY,t)})(e,t.selection.getRng())&&!e.isDefaultPrevented()&&t.selection.select(n)},S=function(e){return t.dom.is(e,"figure.image")?e.querySelector("img"):e},Y=function(e){var n=t.settings.object_resizing;return!1!==n&&!le.iOS&&("string"!=typeof n&&(n="table,img,figure.image,div"),"false"!==e.getAttribute("data-mce-resize")&&e!==t.getBody()&&xr($n.fromDom(e),n))},N=function(e){var n,o,w,M;n=e.screenX-u,o=e.screenY-l,g=n*s[2]+f,_=o*s[3]+m,g=g<5?5:g,_=_<5?5:_,(C(r)&&!1!==t.settings.resize_img_proportional?!vg.modifierPressed(e):vg.modifierPressed(e)||C(r)&&s[2]*s[3]!=0)&&(L(n)>L(o)?(_=D(g*h),g=D(_/h)):(g=D(_/h),_=D(g*h))),b.setStyles(S(i),{width:g,height:_}),w=s.startPos.x+n,M=s.startPos.y+o,w=w>0?w:0,M=M>0?M:0,b.setStyles(a,{left:w,top:M,display:"block"}),a.innerHTML=g+" &times; "+_,s[2]<0&&i.clientWidth<=g&&b.setStyle(i,"left",c+(f-g)),s[3]<0&&i.clientHeight<=_&&b.setStyle(i,"top",d+(m-_)),(n=x.scrollWidth-v)+(o=x.scrollHeight-y)!=0&&b.setStyles(a,{left:w-n,top:M-o}),p||(Bh(t,r,f,m),p=!0)},E=function(){p=!1;var e=function(e,n){n&&(r.style[e]||!t.schema.isValid(r.nodeName.toLowerCase(),e)?b.setStyle(S(r),e,n):b.setAttrib(S(r),e,n))};e("width",g),e("height",_),b.unbind(M,"mousemove",N),b.unbind(M,"mouseup",E),k!==M&&(b.unbind(k,"mousemove",N),b.unbind(k,"mouseup",E)),b.remove(i),b.remove(a),P(r),Wh(t,r,g,_),b.setAttrib(r,"style",b.getAttrib(r,"style")),t.nodeChanged()},P=function(e){var n,p,L,D,A;I(),R(),n=b.getPos(e,x),c=n.x,d=n.y,A=e.getBoundingClientRect(),p=A.width||A.right-A.left,L=A.height||A.bottom-A.top,r!==e&&(r=e,g=_=0),D=t.fire("ObjectSelected",{target:e}),Y(e)&&!D.isDefaultPrevented()?w(o,function(e,t){var n;(n=b.get("mceResizeHandle"+t))&&b.remove(n),n=b.add(x,"div",{id:"mceResizeHandle"+t,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+t+"-resize; margin:0; padding:0"}),11===le.ie&&(n.contentEditable=!1),b.bind(n,"mousedown",function(t){t.stopImmediatePropagation(),t.preventDefault(),function(t){u=t.screenX,l=t.screenY,f=S(r).clientWidth,m=S(r).clientHeight,h=m/f,s=e,e.startPos={x:p*e[0]+c,y:L*e[1]+d},v=x.scrollWidth,y=x.scrollHeight,i=r.cloneNode(!0),b.addClass(i,"mce-clonedresizable"),b.setAttrib(i,"data-mce-bogus","all"),i.contentEditable=!1,i.unSelectabe=!0,b.setStyles(i,{left:c,top:d,margin:0}),i.removeAttribute("data-mce-selected"),x.appendChild(i),b.bind(M,"mousemove",N),b.bind(M,"mouseup",E),k!==M&&(b.bind(k,"mousemove",N),b.bind(k,"mouseup",E)),a=b.add(x,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},f+" &times; "+m)}(t)}),e.elm=n,b.setStyles(n,{left:p*e[0]+c-n.offsetWidth/2,top:L*e[1]+d-n.offsetHeight/2})}):I(),r.setAttribute("data-mce-selected","1")},I=function(){var e,t;for(e in R(),r&&r.removeAttribute("data-mce-selected"),o)(t=b.get("mceResizeHandle"+e))&&(b.unbind(t),b.remove(t))},O=function(n){var r,i=function(e,t){if(e)do{if(e===t)return!0}while(e=e.parentNode)};p||t.removed||(w(b.select("img[data-mce-selected],hr[data-mce-selected]"),function(e){e.removeAttribute("data-mce-selected")}),r="mousedown"===n.type?n.target:e.getNode(),i(r=b.$(r).closest("table,img,figure.image,hr")[0],x)&&(H(),i(e.getStart(!0),r)&&i(e.getEnd(!0),r))?P(r):I())},F=function(e){return jv(function(e,t){for(;t&&t!==e;){if(Bv(t)||jv(t))return t;t=t.parentNode}return null}(t.getBody(),e))},R=function(){for(var e in o){var t=o[e];t.elm&&(b.unbind(t.elm),delete t.elm)}},H=function(){try{t.getDoc().execCommand("enableObjectResizing",!1,!1)}catch(e){}};return t.on("init",function(){H(),le.ie&&le.ie>=11&&(t.on("mousedown click",function(e){var n=e.target,r=n.nodeName;p||!/^(TABLE|IMG|HR)$/.test(r)||F(n)||(2!==e.button&&t.selection.select(n,"TABLE"===r),"mousedown"===e.type&&t.nodeChanged())}),t.dom.bind(x,"mscontrolselect",function(e){var n=function(e){he.setEditorTimeout(t,function(){t.selection.select(e)})};if(F(e.target))return e.preventDefault(),void n(e.target);/^(TABLE|IMG|HR)$/.test(e.target.nodeName)&&(e.preventDefault(),"IMG"===e.target.tagName&&n(e.target))}));var e=he.throttle(function(e){t.composing||O(e)});t.on("nodechange ResizeEditor ResizeWindow drop FullscreenStateChanged",e),t.on("keyup compositionend",function(t){r&&"TABLE"===r.nodeName&&e(t)}),t.on("hide blur",I),t.on("contextmenu",T)}),t.on("remove",R),{isResizable:Y,showResizeRect:P,hideResizeRect:I,updateResizeRect:O,destroy:function(){r=i=null}}},Uv=function(e){return Si.isContentEditableTrue(e)||Si.isContentEditableFalse(e)},zv={fromPoint:function(e,t,n){var r,i,a=n;if(a.caretPositionFromPoint)(i=a.caretPositionFromPoint(e,t))&&((r=n.createRange()).setStart(i.offsetNode,i.offset),r.collapse(!0));else if(n.caretRangeFromPoint)r=n.caretRangeFromPoint(e,t);else if(a.body.createTextRange){r=a.body.createTextRange();try{r.moveToPoint(e,t),r.collapse(!0)}catch(i){r=function(e,t,n){var r,i,a;if(r=n.elementFromPoint(e,t),i=n.body.createTextRange(),r&&"HTML"!==r.tagName||(r=n.body),i.moveToElementText(r),(a=(a=Vt.toArray(i.getClientRects())).sort(function(e,n){return(e=Math.abs(Math.max(e.top-t,e.bottom-t)))-(n=Math.abs(Math.max(n.top-t,n.bottom-t)))})).length>0){t=(a[0].bottom+a[0].top)/2;try{return i.moveToPoint(e,t),i.collapse(!0),i}catch(e){}}return null}(e,t,n)}return function(e,t){var n=e&&e.parentElement?e.parentElement():null;return Si.isContentEditableFalse(function(e,t,n){for(;e&&e!==t;){if(n(e))return e;e=e.parentNode}return null}(n,t,Uv))?null:e}(r,n.body)}return r}},Jv=function(e,t){return B(t,function(t){var n=e.fire("GetSelectionRange",{range:t});return n.range!==t?n.range:t})},qv=function(e,t){var r=(t||n.document).createDocumentFragment();return W(e,function(e){r.appendChild(e.dom())}),$n.fromDom(r)},Vv=yr("element","width","rows"),Gv=yr("element","cells"),$v=yr("x","y"),Kv=function(e,t){var n=parseInt(hr(e,t),10);return isNaN(n)?1:n},Qv=function(e,t,n){var r=e.rows();return!!(r[n]?r[n].cells():[])[t]},Xv=function(e){return J(e,function(e,t){return t.cells().length>e?t.cells().length:e},0)},Zv=function(e,t){for(var n=e.rows(),r=0;r<n.length;r++)for(var i=n[r].cells(),a=0;a<i.length;a++)if(Cr(i[a],t))return x.some($v(a,r));return x.none()},ey=function(e,t,n,r,i){for(var a=[],o=e.rows(),s=n;s<=i;s++){var u=o[s].cells(),l=t<r?u.slice(t,r+1):u.slice(r,t+1);a.push(Gv(o[s].element(),l))}return a},ty=function(e){var t=Vv(io(e),0,[]);return W(Ha(e,"tr"),function(e,n){W(Ha(e,"td,th"),function(r,i){!function(e,t,n,r,i){for(var a=Kv(i,"rowspan"),o=Kv(i,"colspan"),s=e.rows(),u=n;u<n+a;u++){s[u]||(s[u]=Gv(ao(r),[]));for(var l=t;l<t+o;l++)s[u].cells()[l]=u===n&&l===t?i:io(i)}}(t,function(e,t,n){for(;Qv(e,t,n);)t++;return t}(t,i,n),n,e,r)})}),Vv(t.element(),Xv(t.rows()),t.rows())},ny=function(e){return function(e,t){var n=io(e.element()),r=$n.fromTag("tbody");return Da(r,t),La(n,r),n}(e,function(e){return B(e.rows(),function(e){var t=B(e.cells(),function(e){var t=ao(e);return pr(t,"colspan"),pr(t,"rowspan"),t}),n=io(e.element());return Da(n,t),n})}(e))},ry=function(e,t,n){return Zv(e,t).bind(function(t){return Zv(e,n).map(function(n){return function(e,t,n){var r=t.x(),i=t.y(),a=n.x(),o=n.y(),s=i<o?ey(e,r,i,a,o):ey(e,r,o,a,i);return Vv(e.element(),Xv(s),s)}(e,t,n)})})},iy=function(e,t){return q(e,function(e){return"li"===Zn(e)&&mg(e,t)}).fold(a([]),function(t){return function(e){return q(e,function(e){return"ul"===Zn(e)||"ol"===Zn(e)})}(e).map(function(e){return[$n.fromTag("li"),$n.fromTag(Zn(e))]}).getOr([])})},ay=function(e,t){var n=$n.fromDom(t.commonAncestorContainer),r=vc(n,e),i=z(r,function(e){return ci(e)||ui(e)}),o=iy(r,t),s=i.concat(o.length?o:function(e){return hi(e)?Nr(e).filter(mi).fold(a([]),function(t){return[e,t]}):mi(e)?[e]:[]}(n));return B(s,io)},oy=function(){return qv([])},sy=function(e,t){return n=$n.fromDom(t.cloneContents()),r=ay(e,t),i=J(r,function(e,t){return La(t,e),t},n),r.length>0?qv([i]):i;var n,r,i},uy=function(e,t){return(n=e,r=t[0],Ua(r,"table",s(Cr,n))).bind(function(e){var n=t[0],r=t[t.length-1],i=ty(e);return ry(i,n,r).map(function(e){return qv([ny(e)])})}).getOrThunk(oy);var n,r},ly=function(e,t){var n=Ef(t,e);return n.length>0?uy(e,n):function(e,t){return t.length>0&&t[0].collapsed?oy():sy(e,t[0])}(e,t)},cy=function(e,t){if(void 0===t&&(t={}),t.get=!0,t.format=t.format||"html",t.selection=!0,(t=e.fire("BeforeGetContent",t)).isDefaultPrevented())return e.fire("GetContent",t),t.content;if("text"===t.format)return function(e){return x.from(e.selection.getRng()).map(function(t){var n=e.dom.add(e.getBody(),"div",{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},t.cloneContents()),r=lo(n.innerText);return e.dom.remove(n),r}).getOr("")}(e);t.getInner=!0;var n=function(e,t){var n,r=e.selection.getRng(),i=e.dom.create("body"),a=e.selection.getSel(),o=Jv(e,Af(a));return(n=t.contextual?ly($n.fromDom(e.getBody()),o).dom():r.cloneContents())&&i.appendChild(n),e.selection.serializer.serialize(i,t)}(e,t);return"tree"===t.format?n:(t.content=e.selection.isCollapsed()?"":n,e.fire("GetContent",t),t.content)},dy=function(e,t,n){var r,i,a,o=function(e,t){return to(to({format:"html"},e),{set:!0,selection:!0,content:t})}(n,t),s=e.selection.getRng(),u=e.getDoc();if(o.no_events||!(o=e.fire("BeforeSetContent",o)).isDefaultPrevented()){if(t=function(e,t){if("raw"!==t.format){var n=e.parser.parse(t.content,to({isRootContent:!0,forced_root_block:!1},t));return Wl({validate:e.validate},e.schema).serialize(n)}return t.content}(e,o),s.insertNode){t+='<span id="__caret">_</span>',s.startContainer===u&&s.endContainer===u?u.body.innerHTML=t:(s.deleteContents(),0===u.body.childNodes.length?u.body.innerHTML=t:s.createContextualFragment?s.insertNode(s.createContextualFragment(t)):(i=u.createDocumentFragment(),a=u.createElement("div"),i.appendChild(a),a.outerHTML=t,s.insertNode(i))),r=e.dom.get("__caret"),(s=u.createRange()).setStartBefore(r),s.setEndBefore(r),e.selection.setRng(s),e.dom.remove("__caret");try{e.selection.setRng(s)}catch(e){}}else{var l=s;l.item&&(u.execCommand("Delete",!1,null),l=e.selection.getRng()),/^\s+/.test(t)?(l.pasteHTML('<span id="__mce_tmp">_</span>'+t),e.dom.remove("__mce_tmp")):l.pasteHTML(t)}o.no_events||e.fire("SetContent",o)}else e.fire("SetContent",o)},fy=function(e,t,n,r,i){var a=n?t.startContainer:t.endContainer,o=n?t.startOffset:t.endOffset;return x.from(a).map($n.fromDom).map(function(e){return r&&t.collapsed?e:Rr(e,i(e,o)).getOr(e)}).bind(function(e){return tr(e)?x.some(e):Nr(e)}).map(function(e){return e.dom()}).getOr(e)},my=function(e,t,n){return fy(e,t,!0,n,function(e,t){return Math.min(e.dom().childNodes.length,t)})},hy=function(e,t,n){return fy(e,t,!1,n,function(e,t){return t>0?t-1:t})},py=function(e,t){for(var n=e;e&&Si.isText(e)&&0===e.length;)e=t?e.nextSibling:e.previousSibling;return e||n},gy=Vt.each,_y=function(e){return!!e.select},vy=function(e){return!(!e||!e.ownerDocument)&&Tr($n.fromDom(e.ownerDocument),$n.fromDom(e))},yy=function(e,t,n,r){var i,a,o,s,u,l=function(e,t){return dy(r,e,t)},c=function(e){var t=f();t.collapse(!!e),m(t)},d=function(){return t.getSelection?t.getSelection():t.document.selection},f=function(){var n,i,a,u,l=function(e,t,n){try{return t.compareBoundaryPoints(e,n)}catch(e){return-1}};if(!t)return null;if(void 0===(u=t.document)||null===u)return null;if(void 0!==r.bookmark&&!1===Lp(r)){var c=Mh.getRng(r);if(c.isSome())return c.map(function(e){return Jv(r,[e])[0]}).getOr(u.createRange())}try{(n=d())&&!Si.isRestrictedNode(n.anchorNode)&&(i=n.rangeCount>0?n.getRangeAt(0):n.createRange?n.createRange():u.createRange())}catch(e){}return(i=Jv(r,[i])[0])||(i=u.createRange?u.createRange():u.body.createTextRange()),i.setStart&&9===i.startContainer.nodeType&&i.collapsed&&(a=e.getRoot(),i.setStart(a,0),i.setEnd(a,0)),o&&s&&(0===l(i.START_TO_START,i,o)&&0===l(i.END_TO_END,i,o)?i=s:(o=null,s=null)),i},m=function(e,t){var n,i;if(function(e){return!!e&&(!!_y(e)||vy(e.startContainer)&&vy(e.endContainer))}(e)){var a=_y(e)?e:null;if(a){s=null;try{a.select()}catch(e){}}else{if(n=d(),e=r.fire("SetSelectionRange",{range:e,forward:t}).range,n){s=e;try{n.removeAllRanges(),n.addRange(e)}catch(e){}!1===t&&n.extend&&(n.collapse(e.endContainer,e.endOffset),n.extend(e.startContainer,e.startOffset)),o=n.rangeCount>0?n.getRangeAt(0):null}e.collapsed||e.startContainer!==e.endContainer||!n.setBaseAndExtent||le.ie||e.endOffset-e.startOffset<2&&e.startContainer.hasChildNodes()&&(i=e.startContainer.childNodes[e.startOffset])&&"IMG"===i.tagName&&(n.setBaseAndExtent(e.startContainer,e.startOffset,e.endContainer,e.endOffset),n.anchorNode===e.startContainer&&n.focusNode===e.endContainer||n.setBaseAndExtent(i,0,i,1)),r.fire("AfterSetSelectionRange",{range:e,forward:t})}}},h=function(){var t,n,r=d();return!(r&&r.anchorNode&&r.focusNode)||((t=e.createRng()).setStart(r.anchorNode,r.anchorOffset),t.collapse(!0),(n=e.createRng()).setStart(r.focusNode,r.focusOffset),n.collapse(!0),t.compareBoundaryPoints(t.START_TO_START,n)<=0)},p={bookmarkManager:null,controlSelection:null,dom:e,win:t,serializer:n,editor:r,collapse:c,setCursorLocation:function(t,n){var i=e.createRng();t?(i.setStart(t,n),i.setEnd(t,n),m(i),c(!1)):(hg(e,i,r.getBody(),!0),m(i))},getContent:function(e){return cy(r,e)},setContent:l,getBookmark:function(e,t){return i.getBookmark(e,t)},moveToBookmark:function(e){return i.moveToBookmark(e)},select:function(t,n){return function(e,t,n){return x.from(t).map(function(t){var r=e.nodeIndex(t),i=e.createRng();return i.setStart(t.parentNode,r),i.setEnd(t.parentNode,r+1),n&&(hg(e,i,t,!0),hg(e,i,t,!1)),i})}(e,t,n).each(m),t},isCollapsed:function(){var e=f(),t=d();return!(!e||e.item)&&(e.compareEndPoints?0===e.compareEndPoints("StartToEnd",e):!t||e.collapsed)},isForward:h,setNode:function(t){return l(e.getOuterHTML(t)),t},getNode:function(){return e=r.getBody(),(t=f())?(i=t.startContainer,a=t.endContainer,o=t.startOffset,s=t.endOffset,n=t.commonAncestorContainer,!t.collapsed&&(i===a&&s-o<2&&i.hasChildNodes()&&(n=i.childNodes[o]),3===i.nodeType&&3===a.nodeType&&(i=i.length===o?py(i.nextSibling,!0):i.parentNode,a=0===s?py(a.previousSibling,!1):a.parentNode,i&&i===a))?i:n&&3===n.nodeType?n.parentNode:n):e;var e,t,n,i,a,o,s},getSel:d,setRng:m,getRng:f,getStart:function(e){return my(r.getBody(),f(),e)},getEnd:function(e){return hy(r.getBody(),f(),e)},getSelectedBlocks:function(t,n){return function(e,t,n,r){var i,a,o=[];if(a=e.getRoot(),n=e.getParent(n||my(a,t,t.collapsed),e.isBlock),r=e.getParent(r||hy(a,t,t.collapsed),e.isBlock),n&&n!==a&&o.push(n),n&&r&&n!==r){i=n;for(var s=new ri(n,a);(i=s.next())&&i!==r;)e.isBlock(i)&&o.push(i)}return r&&n!==r&&r!==a&&o.push(r),o}(e,f(),t,n)},normalize:function(){var t=f(),n=d();if(!Tf(n)&&pg(r)){var i=Gm.normalize(e,t);return i.each(function(e){m(e,h())}),i.getOr(t)}return t},selectorChanged:function(t,n){var i;return u||(u={},i={},r.on("NodeChange",function(t){var n=t.element,r=e.getParents(n,null,e.getRoot()),a={};gy(u,function(t,n){gy(r,function(o){if(e.is(o,n))return i[n]||(gy(t,function(e){e(!0,{node:o,selector:n,parents:r})}),i[n]=t),a[n]=t,!1})}),gy(i,function(e,t){a[t]||(delete i[t],gy(e,function(e){e(!1,{node:n,selector:t,parents:r})}))})})),u[t]||(u[t]=[]),u[t].push(n),p},getScrollContainer:function(){for(var t,n=e.getRoot();n&&"BODY"!==n.nodeName;){if(n.scrollHeight>n.clientHeight){t=n;break}n=n.parentNode}return t},scrollIntoView:function(e,t){return gm(r,e,t)},placeCaretAt:function(e,t){return m(zv.fromPoint(e,t,r.getDoc()))},getBoundingClientRect:function(){var e=f();return e.collapsed?ps.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},destroy:function(){t=o=s=null,a.destroy()}};return i=Hv(p),a=Wv(p,r),p.bookmarkManager=i,p.controlSelection=a,p};!function(e){e[e.Br=0]="Br",e[e.Block=1]="Block",e[e.Wrap=2]="Wrap",e[e.Eol=3]="Eol"}(Rv||(Rv={}));var by=function(e,t){return e===hs.Backwards?t.reverse():t},wy=function(e,t,n){return e===hs.Forwards?t.next(n):t.prev(n)},My=function(e,t,n,r){return Si.isBr(r.getNode(t===hs.Forwards))?Rv.Br:!1===fu(n,r)?Rv.Block:Rv.Wrap},ky=function(e,t,n,r){for(var i,a=Iu(n),o=r,s=[];o&&(i=wy(t,a,o));){if(Si.isBr(i.getNode(!1)))return t===hs.Forwards?{positions:by(t,s).concat([i]),breakType:Rv.Br,breakAt:x.some(i)}:{positions:by(t,s),breakType:Rv.Br,breakAt:x.some(i)};if(i.isVisible()){if(e(o,i)){var u=My(0,t,o,i);return{positions:by(t,s),breakType:u,breakAt:x.some(i)}}s.push(i),o=i}else o=i}return{positions:by(t,s),breakType:Rv.Eol,breakAt:x.none()}},Ly=function(e,t,n,r){return t(n,r).breakAt.map(function(r){var i=t(n,r).positions;return e===hs.Backwards?i.concat(r):[r].concat(i)}).getOr([])},Dy=function(e,t){return J(e,function(e,n){return e.fold(function(){return x.some(n)},function(r){return Jo(Q(r.getClientRects()),Q(n.getClientRects()),function(e,i){var a=Math.abs(t-e.left);return Math.abs(t-i.left)<=a?n:r}).or(e)})},x.none())},xy=function(e,t){return Q(t.getClientRects()).bind(function(t){return Dy(e,t.left)})},Ay=s(ky,ms.isAbove,-1),Cy=s(ky,ms.isBelow,1),Ty=s(Ly,-1,Ay),Sy=s(Ly,1,Cy),Yy=Si.isContentEditableFalse,Ny=Bo,Ey=function(e,t,n,r){var i=e===hs.Forwards,a=i?Gc:$c;if(!r.collapsed){var o=Ny(r);if(Yy(o))return bm(e,t,o,e===hs.Backwards,!0)}var s=function(e){return mo(e.startContainer)}(r),u=wu(e,t.getBody(),r);if(a(u))return wm(t,u.getNode(!i));var l=ec.normalizePosition(i,n(u));if(!l)return s?r:null;if(a(l))return bm(e,t,l.getNode(!i),i,!0);var c=n(l);return c&&a(c)&&Lu(l,c)?bm(e,t,c.getNode(!i),i,!0):s?km(t,l.toRange(),!0):null},Py=function(e,t,n,r){var i,a,o,s,u,l,c,d,f;if(f=Ny(r),i=wu(e,t.getBody(),r),a=n(t.getBody(),kg(1),i),o=z(a,Lg(1)),u=Wt.last(i.getClientRects()),(Gc(i)||Qc(i))&&(f=i.getNode()),($c(i)||Xc(i))&&(f=i.getNode(!0)),!u)return null;if(l=u.left,(s=Sg(o,l))&&Yy(s.node))return c=Math.abs(l-s.left),d=Math.abs(l-s.right),bm(e,t,s.node,c<d,!0);if(f){var m=function(e,t,n,r){var i,a,o,s,u,l,c=Iu(t),d=[],f=0,m=function(e){return Wt.last(e.getClientRects())};1===e?(i=c.next,a=Ho,o=Ro,s=ps.after(r)):(i=c.prev,a=Ro,o=Ho,s=ps.before(r)),l=m(s);do{if(s.isVisible()&&!o(u=m(s),l)){if(d.length>0&&a(u,Wt.last(d))&&f++,(u=Io(u)).position=s,u.line=f,n(u))return d;d.push(u)}}while(s=i(s));return d}(e,t.getBody(),kg(1),f);if(s=Sg(z(m,Lg(1)),l))return km(t,s.position.toRange(),!0);if(s=Wt.last(z(m,Lg(0))))return km(t,s.position.toRange(),!0)}},Iy=function(e,t,n){var r,i,a=Iu(e.getBody()),o=s(ku,a.next),u=s(ku,a.prev);if(n.collapsed&&e.settings.forced_root_block){if(!(r=e.dom.getParent(n.startContainer,"PRE")))return;(1===t?o(ps.fromRangeStart(n)):u(ps.fromRangeStart(n)))||(i=function(e){var t=e.dom.create(Xl.getForcedRootBlock(e));return(!le.ie||le.ie>=11)&&(t.innerHTML='<br data-mce-bogus="1">'),t}(e),1===t?e.$(r).after(i):e.$(r).before(i),e.selection.select(i,!0),e.selection.collapse())}},Oy=function(e,t){return function(){var n=function(e,t){var n,r=Iu(e.getBody()),i=s(ku,r.next),a=s(ku,r.prev),o=t?hs.Forwards:hs.Backwards,u=t?i:a,l=e.selection.getRng();return(n=Ey(o,e,u,l))?n:(n=Iy(e,o,l))||null}(e,t);return!!n&&(Lm(e,n),!0)}},Fy=function(e,t){return function(){var n=function(e,t){var n,r=t?1:-1,i=t?Mg:wg,a=e.selection.getRng();return(n=Py(r,e,i,a))?n:(n=Iy(e,r,a))||null}(e,t);return!!n&&(Lm(e,n),!0)}},Ry=function(e,t){return function(){var n=t?ps.fromRangeEnd(e.selection.getRng()):ps.fromRangeStart(e.selection.getRng()),r=t?Cy(e.getBody(),n):Ay(e.getBody(),n);return(t?X(r.positions):Q(r.positions)).filter(function(e){return function(t){return e?$c(t):Gc(t)}}(t)).fold(a(!1),function(t){return e.selection.setRng(t.toRange()),!0})}},Hy=function(e,t,n,r,i){var a=Ha($n.fromDom(n),"td,th,caption").map(function(e){return e.dom()});return function(e,t,n){return J(e,function(e,r){return e.fold(function(){return x.some(r)},function(e){var i=Math.sqrt(Math.abs(e.x-t)+Math.abs(e.y-n)),a=Math.sqrt(Math.abs(r.x-t)+Math.abs(r.y-n));return x.some(a<i?r:e)})},x.none())}(z(function(e,t){return G(t,function(t){var n=function(e,t){return{left:e.left-t,top:e.top-t,right:e.right+2*t,bottom:e.bottom+2*t,width:e.width+t,height:e.height+t}}(Io(t.getBoundingClientRect()),-1);return[{x:n.left,y:e(n),cell:t},{x:n.right,y:e(n),cell:t}]})}(e,a),function(e){return t(e,i)}),r,i).map(function(e){return e.cell})},jy=s(Hy,function(e){return e.bottom},function(e,t){return e.y<t}),By=s(Hy,function(e){return e.top},function(e,t){return e.y>t}),Wy=function(e,t){return Q(t.getClientRects()).bind(function(t){return jy(e,t.left,t.top)}).bind(function(e){return xy((n=e,qu.lastPositionIn(n).map(function(e){return Ay(n,e).positions.concat(e)}).getOr([])),t);var n})},Uy=function(e,t){return X(t.getClientRects()).bind(function(t){return By(e,t.left,t.top)}).bind(function(e){return xy((n=e,qu.firstPositionIn(n).map(function(e){return[e].concat(Cy(n,e).positions)}).getOr([])),t);var n})},zy=function(e,t,n){var r=e(t,n);return function(e){return e.breakType===Rv.Wrap&&0===e.positions.length}(r)||!Si.isBr(n.getNode())&&function(e){return e.breakType===Rv.Br&&1===e.positions.length}(r)?!function(e,t,n){return n.breakAt.map(function(n){return e(t,n).breakAt.isSome()}).getOr(!1)}(e,t,r):r.breakAt.isNone()},Jy=s(zy,Ay),qy=s(zy,Cy),Vy=function(e,t,n,r){var i=e.selection.getRng(),a=t?1:-1;if(Zs()&&function(e,t,n){var r=ps.fromRangeStart(t);return qu.positionIn(!e,n).map(function(e){return e.isEqual(r)}).getOr(!1)}(t,i,n)){var o=bm(a,e,n,!t,!0);return Lm(e,o),!0}return!1},Gy=function(e,t){var n=t.getNode(e);return Si.isElement(n)&&"TABLE"===n.nodeName?x.some(n):x.none()},$y=function(e,t,n){var r=Gy(!!t,n),i=!1===t;r.fold(function(){return Lm(e,n.toRange())},function(r){return qu.positionIn(i,e.getBody()).filter(function(e){return e.isEqual(n)}).fold(function(){return Lm(e,n.toRange())},function(i){return function(e,t,n,r){var i=Xl.getForcedRootBlock(t);i?t.undoManager.transact(function(){var r=$n.fromTag(i);mr(r,Xl.getForcedRootBlockAttrs(t)),La(r,$n.fromTag("br")),e?Ma($n.fromDom(n),r):wa($n.fromDom(n),r);var a=t.dom.createRng();a.setStart(r.dom(),0),a.setEnd(r.dom(),0),Lm(t,a)}):Lm(t,r.toRange())}(t,e,r,n)})})},Ky=function(e,t,n,r){var i=e.selection.getRng(),a=ps.fromRangeStart(i),o=e.getBody();if(!t&&Jy(r,a)){var s=function(e,t,n){return Wy(t,n).orThunk(function(){return Q(n.getClientRects()).bind(function(n){return Dy(Ty(e,ps.before(t)),n.left)})}).getOr(ps.before(t))}(o,n,a);return $y(e,t,s),!0}return!(!t||!qy(r,a))&&(s=function(e,t,n){return Uy(t,n).orThunk(function(){return Q(n.getClientRects()).bind(function(n){return Dy(Sy(e,ps.after(t)),n.left)})}).getOr(ps.after(t))}(o,n,a),$y(e,t,s),!0)},Qy=function(e,t){return function(){return x.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind(function(n){return x.from(e.dom.getParent(n,"table")).map(function(n){return Vy(e,t,n)})}).getOr(!1)}},Xy=function(e,t){return function(){return x.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind(function(n){return x.from(e.dom.getParent(n,"table")).map(function(r){return Ky(e,t,r,n)})}).getOr(!1)}},Zy=function(e){return H(["figcaption"],Zn(e))},eb=function(e){var t=n.document.createRange();return t.setStartBefore(e.dom()),t.setEndBefore(e.dom()),t},tb=function(e,t,n){n?La(e,t):ka(e,t)},nb=function(e,t,n,r){return""===t?function(e,t){var n=$n.fromTag("br");return tb(e,n,t),eb(n)}(e,r):function(e,t,n,r){var i=$n.fromTag(n),a=$n.fromTag("br");return mr(i,r),La(i,a),tb(e,i,t),eb(a)}(e,r,t,n)},rb=function(e,t,n){return t?function(e,t){return Cy(e,t).breakAt.isNone()}(e.dom(),n):function(e,t){return Ay(e,t).breakAt.isNone()}(e.dom(),n)},ib=function(e,t){var n=$n.fromDom(e.getBody()),r=ps.fromRangeStart(e.selection.getRng()),i=Xl.getForcedRootBlock(e),a=Xl.getForcedRootBlockAttrs(e);return function(e,t){var n=s(Cr,t);return Wa($n.fromDom(e.container()),li,n).filter(Zy)}(r,n).exists(function(){if(rb(n,t,r)){var o=nb(n,i,a,t);return e.selection.setRng(o),!0}return!1})},ab=function(e,t){return function(){return!!e.selection.isCollapsed()&&ib(e,t)}},ob=function(e,t){return G(function(e){return B(e,function(e){return dv({shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0,action:r},e)})}(e),function(e){return function(e,t){return t.keyCode===e.keyCode&&t.shiftKey===e.shiftKey&&t.altKey===e.altKey&&t.ctrlKey===e.ctrlKey&&t.metaKey===e.metaKey}(e,t)?[e]:[]})},sb=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,r)}},ub=function(e,t){return q(ob(e,t),function(e){return e.action()})},lb=function(e,t){e.on("keydown",function(n){!1===n.isDefaultPrevented()&&function(e,t,n){var r=Vn.detect().os;ub([{keyCode:vg.RIGHT,action:Oy(e,!0)},{keyCode:vg.LEFT,action:Oy(e,!1)},{keyCode:vg.UP,action:Fy(e,!1)},{keyCode:vg.DOWN,action:Fy(e,!0)},{keyCode:vg.RIGHT,action:Qy(e,!0)},{keyCode:vg.LEFT,action:Qy(e,!1)},{keyCode:vg.UP,action:Xy(e,!1)},{keyCode:vg.DOWN,action:Xy(e,!0)},{keyCode:vg.RIGHT,action:sf.move(e,t,!0)},{keyCode:vg.LEFT,action:sf.move(e,t,!1)},{keyCode:vg.RIGHT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:sf.moveNextWord(e,t)},{keyCode:vg.LEFT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:sf.movePrevWord(e,t)},{keyCode:vg.UP,action:ab(e,!1)},{keyCode:vg.DOWN,action:ab(e,!0)}],n).each(function(e){n.preventDefault()})}(e,t,n)})},cb=function(e,t){e.on("keydown",function(n){!1===n.isDefaultPrevented()&&function(e,t,n){ub([{keyCode:vg.BACKSPACE,action:sb(vd,e,!1)},{keyCode:vg.DELETE,action:sb(vd,e,!0)},{keyCode:vg.BACKSPACE,action:sb(xm,e,!1)},{keyCode:vg.DELETE,action:sb(xm,e,!0)},{keyCode:vg.BACKSPACE,action:sb(df,e,t,!1)},{keyCode:vg.DELETE,action:sb(df,e,t,!0)},{keyCode:vg.BACKSPACE,action:sb(zf,e,!1)},{keyCode:vg.DELETE,action:sb(zf,e,!0)},{keyCode:vg.BACKSPACE,action:sb(Nc,e,!1)},{keyCode:vg.DELETE,action:sb(Nc,e,!0)},{keyCode:vg.BACKSPACE,action:sb(Cc,e,!1)},{keyCode:vg.DELETE,action:sb(Cc,e,!0)},{keyCode:vg.BACKSPACE,action:sb(hm,e,!1)},{keyCode:vg.DELETE,action:sb(hm,e,!0)}],n).each(function(e){n.preventDefault()})}(e,t,n)}),e.on("keyup",function(t){!1===t.isDefaultPrevented()&&function(e,t){ub([{keyCode:vg.BACKSPACE,action:sb(yd,e)},{keyCode:vg.DELETE,action:sb(yd,e)}],t)}(e,t)})},db=function(e){return x.from(e.dom.getParent(e.selection.getStart(!0),e.dom.isBlock))},fb=function(e,t){var n,r,i,a=t,o=e.dom,s=e.schema.getMoveCaretBeforeOnEnterElements();if(t){if(/^(LI|DT|DD)$/.test(t.nodeName)){var u=function(e){for(;e;){if(1===e.nodeType||3===e.nodeType&&e.data&&/[\r\n\s]/.test(e.data))return e;e=e.nextSibling}}(t.firstChild);u&&/^(UL|OL|DL)$/.test(u.nodeName)&&t.insertBefore(o.doc.createTextNode(" "),t.firstChild)}if(i=o.createRng(),t.normalize(),t.hasChildNodes()){for(n=new ri(t,t);r=n.current();){if(Si.isText(r)){i.setStart(r,0),i.setEnd(r,0);break}if(s[r.nodeName.toLowerCase()]){i.setStartBefore(r),i.setEndBefore(r);break}a=r,r=n.next()}r||(i.setStart(a,0),i.setEnd(a,0))}else Si.isBr(t)?t.nextSibling&&o.isBlock(t.nextSibling)?(i.setStartBefore(t),i.setEndBefore(t)):(i.setStartAfter(t),i.setEndAfter(t)):(i.setStart(t,0),i.setEnd(t,0));e.selection.setRng(i),o.remove(void 0),e.selection.scrollIntoView(t)}},mb=function(e,t){var n,r,i=e.getRoot();for(n=t;n!==i&&"false"!==e.getContentEditable(n);)"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==i?r:i},hb=db,pb=function(e){return db(e).fold(a(""),function(e){return e.nodeName.toUpperCase()})},gb=function(e){return db(e).filter(function(e){return hi($n.fromDom(e))}).isSome()},_b=function(e,t){return e&&e.parentNode&&e.parentNode.nodeName===t},vb=function(e){return e&&/^(OL|UL|LI)$/.test(e.nodeName)},yb=function(e){var t=e.parentNode;return/^(LI|DT|DD)$/.test(t.nodeName)?t:e},bb=function(e,t,n){for(var r=e[n?"firstChild":"lastChild"];r&&!Si.isElement(r);)r=r[n?"nextSibling":"previousSibling"];return r===t},wb=function(e,t,n,r,i){var a=e.dom,o=e.selection.getRng();if(n!==e.getBody()){var s;vb(s=n)&&vb(s.parentNode)&&(i="LI");var u=i?t(i):a.create("BR");if(bb(n,r,!0)&&bb(n,r,!1))_b(n,"LI")?a.insertAfter(u,yb(n)):a.replace(u,n);else if(bb(n,r,!0))_b(n,"LI")?(a.insertAfter(u,yb(n)),u.appendChild(a.doc.createTextNode(" ")),u.appendChild(n)):n.parentNode.insertBefore(u,n);else if(bb(n,r,!1))a.insertAfter(u,yb(n));else{n=yb(n);var l=o.cloneRange();l.setStartAfter(r),l.setEndAfter(n);var c=l.extractContents();"LI"===i&&function(e,t){return e.firstChild&&e.firstChild.nodeName===t}(c,"LI")?(u=c.firstChild,a.insertAfter(c,n)):(a.insertAfter(c,n),a.insertAfter(u,n))}a.remove(r),fb(e,u)}},Mb=function(e,t){return t&&"A"===t.nodeName&&e.isEmpty(t)},kb=function(e){e.innerHTML='<br data-mce-bogus="1">'},Lb=function(e,t){return e.nodeName===t||e.previousSibling&&e.previousSibling.nodeName===t},Db=function(e,t){return t&&e.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&!/^(fixed|absolute)/i.test(t.style.position)&&"true"!==e.getContentEditable(t)},xb=function(e,t,n){return!1===Si.isText(t)?n:e?1===n&&t.data.charAt(n-1)===uo?0:n:n===t.data.length-1&&t.data.charAt(n)===uo?t.data.length:n},Ab=function(e,t){var n,r,i=e.getRoot();for(n=t;n!==i&&"false"!==e.getContentEditable(n);)"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==i?r:i},Cb=function(e,t,n){x.from(n.style).map(e.dom.parseStyle).each(function(n){var r=function(e){var t={},n=e.dom();if(cr(n))for(var r=0;r<n.style.length;r++){var i=n.style.item(r);t[i]=n.style[i]}return t}($n.fromDom(t)),i=to(to({},r),n);e.dom.setStyles(t,i)});var r=x.from(n.class).map(function(e){return e.split(/\s+/)}),i=x.from(t.className).map(function(e){return z(e.split(/\s+/),function(e){return""!==e})});Jo(r,i,function(n,r){var i=z(r,function(e){return!H(n,e)}),a=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}(n,i);e.dom.setAttrib(t,"class",a.join(" "))});var a=["style","class"],o=ur(n,function(e,t){return!H(a,t)}).t;e.dom.setAttribs(t,o)},Tb=function(e,t){var n=Xl.getForcedRootBlock(e);if(n&&n.toLowerCase()===t.tagName.toLowerCase()){var r=Xl.getForcedRootBlockAttrs(e);Cb(e,t,r)}},Sb=function(e,t){var n,r,i,a,o,s,u,l,c,d,f,m,h,p=e.dom,g=e.schema,_=g.getNonEmptyElements(),v=e.selection.getRng(),y=function(t){var n,a,s,u=i,l=g.getTextInlineElements();if(s=n=t||"TABLE"===d||"HR"===d?p.create(t||m):o.cloneNode(!1),!1===Xl.shouldKeepStyles(e))p.setAttrib(n,"style",null),p.setAttrib(n,"class",null);else do{if(l[u.nodeName]){if(Fs(u)||el.isBookmarkNode(u))continue;a=u.cloneNode(!1),p.setAttrib(a,"id",""),n.hasChildNodes()?(a.appendChild(n.firstChild),n.appendChild(a)):(s=a,n.appendChild(a))}}while((u=u.parentNode)&&u!==r);return Tb(e,n),kb(s),n},b=function(e){var t,n,r,s;if(s=xb(e,i,a),Si.isText(i)&&(e?s>0:s<i.nodeValue.length))return!1;if(i.parentNode===o&&h&&!e)return!0;if(e&&Si.isElement(i)&&i===o.firstChild)return!0;if(Lb(i,"TABLE")||Lb(i,"HR"))return h&&!e||!h&&e;for(t=new ri(i,o),Si.isText(i)&&(e&&0===s?t.prev():e||s!==i.nodeValue.length||t.next());n=t.current();){if(Si.isElement(n)){if(!n.getAttribute("data-mce-bogus")&&(r=n.nodeName.toLowerCase(),_[r]&&"br"!==r))return!1}else if(Si.isText(n)&&!/^[ \t\r\n]*$/.test(n.nodeValue))return!1;e?t.prev():t.next()}return!0},w=function(){u=/^(H[1-6]|PRE|FIGURE)$/.test(d)&&"HGROUP"!==f?y(m):y(),Xl.shouldEndContainerOnEmptyBlock(e)&&Db(p,c)&&p.isEmpty(o)?u=p.split(c,o):p.insertAfter(u,o),fb(e,u)};Gm.normalize(p,v).each(function(e){v.setStart(e.startContainer,e.startOffset),v.setEnd(e.endContainer,e.endOffset)}),i=v.startContainer,a=v.startOffset,m=Xl.getForcedRootBlock(e),s=t.shiftKey,Si.isElement(i)&&i.hasChildNodes()&&(h=a>i.childNodes.length-1,i=i.childNodes[Math.min(a,i.childNodes.length-1)]||i,a=h&&Si.isText(i)?i.nodeValue.length:0),(r=Ab(p,i))&&((m&&!s||!m&&s)&&(i=function(e,t,n,r,i){var a,o,s,u,l,c,d=t||"P",f=e.dom,m=Ab(f,r);if(!(o=f.getParent(r,f.isBlock))||!Db(f,o)){if(c=(o=o||m)===e.getBody()||function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)}(o)?o.nodeName.toLowerCase():o.parentNode.nodeName.toLowerCase(),!o.hasChildNodes())return a=f.create(d),Tb(e,a),o.appendChild(a),n.setStart(a,0),n.setEnd(a,0),a;for(u=r;u.parentNode!==o;)u=u.parentNode;for(;u&&!f.isBlock(u);)s=u,u=u.previousSibling;if(s&&e.schema.isValidChild(c,d.toLowerCase())){for(a=f.create(d),Tb(e,a),s.parentNode.insertBefore(a,s),u=s;u&&!f.isBlock(u);)l=u.nextSibling,a.appendChild(u),u=l;n.setStart(r,i),n.setEnd(r,i)}}return r}(e,m,v,i,a)),o=p.getParent(i,p.isBlock),c=o?p.getParent(o.parentNode,p.isBlock):null,d=o?o.nodeName.toUpperCase():"","LI"!==(f=c?c.nodeName.toUpperCase():"")||t.ctrlKey||(o=c,c=c.parentNode,d=f),/^(LI|DT|DD)$/.test(d)&&p.isEmpty(o)?wb(e,y,c,o,m):m&&o===e.getBody()||(m=m||"P",mo(o)?(u=Mo(o),p.isEmpty(o)&&kb(o),Tb(e,u),fb(e,u)):b()?w():b(!0)?(u=o.parentNode.insertBefore(y(),o),fb(e,Lb(o,"HR")?u:o)):((n=function(e){var t=e.cloneRange();return t.setStart(e.startContainer,xb(!0,e.startContainer,e.startOffset)),t.setEnd(e.endContainer,xb(!1,e.endContainer,e.endOffset)),t}(v).cloneRange()).setEndAfter(o),function(e){W(Ra($n.fromDom(e),nr),function(e){var t=e.dom();t.nodeValue=lo(t.nodeValue)})}(l=n.extractContents()),function(e){do{Si.isText(e)&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild}while(e)}(l),u=l.firstChild,p.insertAfter(l,o),function(e,t,n){var r,i=n,a=[];if(i){for(;i=i.firstChild;){if(e.isBlock(i))return;Si.isElement(i)&&!t[i.nodeName.toLowerCase()]&&a.push(i)}for(r=a.length;r--;)!(i=a[r]).hasChildNodes()||i.firstChild===i.lastChild&&""===i.firstChild.nodeValue?e.remove(i):Mb(e,i)&&e.remove(i)}}(p,_,u),function(e,t){var n;t.normalize(),(n=t.lastChild)&&!/^(left|right)$/gi.test(e.getStyle(n,"float",!0))||e.add(t,"br")}(p,o),p.isEmpty(o)&&kb(o),u.normalize(),p.isEmpty(u)?(p.remove(u),w()):(Tb(e,u),fb(e,u))),p.setAttrib(u,"id",""),e.fire("NewBlock",{newBlock:u})))},Yb=function(e,t){return hb(e).filter(function(e){return t.length>0&&xr($n.fromDom(e),t)}).isSome()},Nb=function(e){return Yb(e,Xl.getBrNewLineSelector(e))},Eb=function(e){return Yb(e,Xl.getNoNewLineSelector(e))},Pb=Ec([{br:[]},{block:[]},{none:[]}]),Ib=function(e,t){return Eb(e)},Ob=function(e){return function(t,n){return""===Xl.getForcedRootBlock(t)===e}},Fb=function(e){return function(t,n){return gb(t)===e}},Rb=function(e,t){return function(n,r){return pb(n)===e.toUpperCase()===t}},Hb=function(e){return Rb("pre",e)},jb=function(e){return function(t,n){return Xl.shouldPutBrInPre(t)===e}},Bb=function(e,t){return Nb(e)},Wb=function(e,t){return t},Ub=function(e){var t=Xl.getForcedRootBlock(e),n=mb(e.dom,e.selection.getStart());return n&&e.schema.isValidChild(n.nodeName,t||"P")},zb=function(e,t){return function(n,r){return J(e,function(e,t){return e&&t(n,r)},!0)?x.some(t):x.none()}},Jb=function(e,t){return Sd([zb([Ib],Pb.none()),zb([Rb("summary",!0)],Pb.br()),zb([Hb(!0),jb(!1),Wb],Pb.br()),zb([Hb(!0),jb(!1)],Pb.block()),zb([Hb(!0),jb(!0),Wb],Pb.block()),zb([Hb(!0),jb(!0)],Pb.br()),zb([Fb(!0),Wb],Pb.br()),zb([Fb(!0)],Pb.block()),zb([Ob(!0),Wb,Ub],Pb.block()),zb([Ob(!0)],Pb.br()),zb([Bb],Pb.br()),zb([Ob(!1),Wb],Pb.br()),zb([Ub],Pb.block())],[e,t.shiftKey]).getOr(Pb.none())},qb=function(e,t){Jb(e,t).fold(function(){ih.insert(e,t)},function(){Sb(e,t)},r)},Vb=function(e){e.on("keydown",function(t){t.keyCode===vg.ENTER&&function(e,t){var n;t.isDefaultPrevented()||(t.preventDefault(),(n=e.undoManager).typing&&(n.typing=!1,n.add()),e.undoManager.transact(function(){!1===e.selection.isCollapsed()&&e.execCommand("Delete"),qb(e,t)}))}(e,t)})},Gb=function(e,t){var n=t.container(),r=t.offset();return Si.isText(n)?(n.insertData(r,e),x.some(ms(n,r+e.length))):Mu(t).map(function(n){var r=$n.fromText(e);return t.isAtEnd()?Ma(n,r):wa(n,r),ms(r.dom(),e.length)})},$b=s(Gb," "),Kb=s(Gb," "),Qb=function(e,t,n){return qu.navigateIgnore(e,t,n,qc)},Xb=function(e,t){return q(vc($n.fromDom(t.container()),e),li)},Zb=function(e,t,n){return Qb(e,t.dom(),n).forall(function(e){return Xb(t,n).fold(function(){return!1===fu(e,n,t.dom())},function(r){return!1===fu(e,n,t.dom())&&Tr(r,$n.fromDom(e.container()))})})},ew=function(e,t,n){return Xb(t,n).fold(function(){return Qb(e,t.dom(),n).forall(function(e){return!1===fu(e,n,t.dom())})},function(t){return Qb(e,t.dom(),n).isNone()})},tw=s(ew,!1),nw=s(ew,!0),rw=s(Zb,!1),iw=s(Zb,!0),aw=function(e){return ms.isTextPosition(e)&&!e.isAtStart()&&!e.isAtEnd()},ow=function(e,t){var n=z(vc($n.fromDom(t.container()),e),li);return Q(n).getOr(e)},sw=function(e,t){return aw(t)?Jc(t):Jc(t)||qu.prevPosition(ow(e,t).dom(),t).exists(Jc)},uw=function(e,t){return aw(t)?zc(t):zc(t)||qu.nextPosition(ow(e,t).dom(),t).exists(zc)},lw=function(e){return Mu(e).bind(function(e){return Wa(e,tr)}).exists(function(e){return t=_r(e,"white-space"),H(["pre","pre-wrap"],t);var t})},cw=function(e,t){return function(e,t){return qu.prevPosition(e.dom(),t).isNone()}(e,t)||function(e,t){return qu.nextPosition(e.dom(),t).isNone()}(e,t)||tw(e,t)||nw(e,t)||Fc(e,t)||Oc(e,t)},dw=function(e,t){var n=function(e){var t=e.container(),n=e.offset();return Si.isText(t)&&n<t.data.length?ms(t,n+1):e}(t);return!lw(n)&&(nw(e,n)||iw(e,n)||Oc(e,n)||uw(e,n))},fw=function(e,t){return function(e,t){return!lw(t)&&(tw(e,t)||rw(e,t)||Fc(e,t)||sw(e,t))}(e,t)||dw(e,t)},mw=function(e,t){return jc(e.charAt(t))},hw=function(e){var t=e.container();return Si.isText(t)&&Rn(t.data," ")},pw=function(e){var t=e.data,n=function(e){var t=e.split("");return B(t,function(e,n){return jc(e)&&n>0&&n<t.length-1&&Wc(t[n-1])&&Wc(t[n+1])?" ":e}).join("")}(t);return n!==t&&(e.data=n,!0)},gw=function(e,t){return x.some(t).filter(hw).bind(function(t){var n=t.container();return function(e,t){var n=t.data,r=ms(t,0);return!(!mw(n,0)||fw(e,r)||(t.data=" "+n.slice(1),0))}(e,n)||pw(n)||function(e,t){var n=t.data,r=ms(t,n.length-1);return!(!mw(n,n.length-1)||fw(e,r)||(t.data=n.slice(0,-1)+" ",0))}(e,n)?x.some(t):x.none()})},_w=function(e){var t=$n.fromDom(e.getBody());e.selection.isCollapsed()&&gw(t,ms.fromRangeStart(e.selection.getRng())).each(function(t){e.selection.setRng(t.toRange())})},vw=function(e,t){return function(n){return function(e,t){return!lw(t)&&(cw(e,t)||sw(e,t)||uw(e,t))}(e,n)?$b(t):Kb(t)}},yw=function(e){var t=ps.fromRangeStart(e.selection.getRng()),n=$n.fromDom(e.getBody());if(e.selection.isCollapsed()){var r=s(ec.isInlineTarget,e),i=ps.fromRangeStart(e.selection.getRng());return Gd(r,e.getBody(),i).bind(function(e){return function(t){return t.fold(function(t){return qu.prevPosition(e.dom(),ps.before(t))},function(e){return qu.firstPositionIn(e)},function(e){return qu.lastPositionIn(e)},function(t){return qu.nextPosition(e.dom(),ps.after(t))})}}(n)).bind(vw(n,t)).exists(function(e){return function(t){return e.selection.setRng(t.toRange()),e.nodeChanged(),!0}}(e))}return!1},bw=function(e){e.on("keydown",function(t){!1===t.isDefaultPrevented()&&function(e,t){ub([{keyCode:vg.SPACEBAR,action:sb(yw,e)}],t).each(function(e){t.preventDefault()})}(e,t)})},ww=function(e,t){t.hasAttribute("data-mce-caret")&&(Mo(t),function(e){e.selection.setRng(e.selection.getRng())}(e),e.selection.scrollIntoView(t))},Mw=function(e,t){var n=function(e){return za($n.fromDom(e.getBody()),"*[data-mce-caret]").fold(a(null),function(e){return e.dom()})}(e);if(n)return"compositionstart"===t.type?(t.preventDefault(),t.stopPropagation(),void ww(e,n)):void(go(n)&&(ww(e,n),e.undoManager.add()))},kw=function(e){e.on("keyup compositionstart",s(Mw,e))},Lw=Vn.detect().browser,Dw=function(e){!function(e){var t=Ta(function(){e.composing||_w(e)},0);Lw.isIE()&&(e.on("keypress",function(e){t.throttle()}),e.on("remove",function(e){t.cancel()}))}(e),e.on("input",function(t){!1===t.isComposing&&_w(e)})},xw=function(e){e.on("keydown",function(t){!1===t.isDefaultPrevented()&&function(e,t){ub([{keyCode:vg.END,action:Ry(e,!0)},{keyCode:vg.HOME,action:Ry(e,!1)}],t).each(function(e){t.preventDefault()})}(e,t)})},Aw=function(e){var t=sf.setupSelectedState(e);kw(e),lb(e,t),cb(e,t),Vb(e),bw(e),Dw(e),xw(e)};function Cw(e){var t,r,i,a=Vt.each,o=vg.BACKSPACE,s=vg.DELETE,u=e.dom,l=e.selection,c=e.settings,d=e.parser,f=le.gecko,m=le.ie,h=le.webkit,p=m?"Text":"URL",g=function(t,n){try{e.getDoc().execCommand(t,!1,n)}catch(e){}},_=function(e){return e.isDefaultPrevented()},v=function(){e.shortcuts.add("meta+a",null,"SelectAll")},y=function(){e.on("keydown",function(e){if(!_(e)&&e.keyCode===o&&l.isCollapsed()&&0===l.getRng().startOffset){var t=l.getNode().previousSibling;if(t&&t.nodeName&&"table"===t.nodeName.toLowerCase())return e.preventDefault(),!1}})},b=function(){e.inline||(e.contentStyles.push("body {min-height: 150px}"),e.on("click",function(t){var n;if("HTML"===t.target.nodeName){if(le.ie>11)return void e.getBody().focus();n=e.selection.getRng(),e.getBody().focus(),e.selection.setRng(n),e.selection.normalize(),e.nodeChanged()}}))};return e.on("keydown",function(t){var n,r,i,a,o;if(!_(t)&&t.keyCode===vg.BACKSPACE&&(r=(n=l.getRng()).startContainer,i=n.startOffset,a=u.getRoot(),o=r,n.collapsed&&0===i)){for(;o&&o.parentNode&&o.parentNode.firstChild===o&&o.parentNode!==a;)o=o.parentNode;"BLOCKQUOTE"===o.tagName&&(e.formatter.toggle("blockquote",null,o),(n=u.createRng()).setStart(r,0),n.setEnd(r,0),l.setRng(n))}}),t=function(e){var t=u.create("body"),n=e.cloneContents();return t.appendChild(n),l.serializer.serialize(t,{format:"html"})},e.on("keydown",function(n){var r,i,a,l,c,d=n.keyCode;if(!_(n)&&(d===s||d===o)){if(r=e.selection.isCollapsed(),i=e.getBody(),r&&!u.isEmpty(i))return;if(!r&&(a=e.selection.getRng(),l=t(a),(c=u.createRng()).selectNode(e.getBody()),l!==t(c)))return;n.preventDefault(),e.setContent(""),i.firstChild&&u.isBlock(i.firstChild)?e.selection.setCursorLocation(i.firstChild,0):e.selection.setCursorLocation(i,0),e.nodeChanged()}}),le.windowsPhone||e.on("keyup focusin mouseup",function(e){vg.modifierPressed(e)||l.normalize()},!0),h&&(e.settings.content_editable||u.bind(e.getDoc(),"mousedown mouseup",function(t){var n;if(t.target===e.getDoc().documentElement)if(n=l.getRng(),e.getBody().focus(),"mousedown"===t.type){if(po(n.startContainer))return;l.placeCaretAt(t.clientX,t.clientY)}else l.setRng(n)}),e.on("click",function(t){var n=t.target;/^(IMG|HR)$/.test(n.nodeName)&&"false"!==u.getContentEditableParent(n)&&(t.preventDefault(),e.selection.select(n),e.nodeChanged()),"A"===n.nodeName&&u.hasClass(n,"mce-item-anchor")&&(t.preventDefault(),l.select(n))}),c.forced_root_block&&e.on("init",function(){g("DefaultParagraphSeparator",c.forced_root_block)}),e.on("init",function(){e.dom.bind(e.getBody(),"submit",function(e){e.preventDefault()})}),y(),d.addNodeFilter("br",function(e){for(var t=e.length;t--;)"Apple-interchange-newline"===e[t].attr("class")&&e[t].remove()}),le.iOS?(e.inline||e.on("keydown",function(){n.document.activeElement===n.document.body&&e.getWin().focus()}),b(),e.on("click",function(e){var t=e.target;do{if("A"===t.tagName)return void e.preventDefault()}while(t=t.parentNode)}),e.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")):v()),le.ie>=11&&(b(),y()),le.ie&&(v(),g("AutoUrlDetect",!1),e.on("dragstart",function(t){!function(t){var n,r;t.dataTransfer&&(e.selection.isCollapsed()&&"IMG"===t.target.tagName&&l.select(t.target),(n=e.selection.getContent()).length>0&&(r="data:text/mce-internal,"+escape(e.id)+","+escape(n),t.dataTransfer.setData(p,r)))}(t)}),e.on("drop",function(t){if(!_(t)){var n=function(e){var t;return e.dataTransfer&&(t=e.dataTransfer.getData(p))&&t.indexOf("data:text/mce-internal,")>=0?(t=t.substr("data:text/mce-internal,".length).split(","),{id:unescape(t[0]),html:unescape(t[1])}):null}(t);if(n&&n.id!==e.id){t.preventDefault();var r=zv.fromPoint(t.x,t.y,e.getDoc());l.setRng(r),i=n.html,a=!0,e.queryCommandSupported("mceInsertClipboardContent")?e.execCommand("mceInsertClipboardContent",!1,{content:i,internal:a}):e.execCommand("mceInsertContent",!1,i)}}var i,a})),f&&(e.on("keydown",function(t){if(!_(t)&&t.keyCode===o){if(!e.getBody().getElementsByTagName("hr").length)return;if(l.isCollapsed()&&0===l.getRng().startOffset){var n=l.getNode(),r=n.previousSibling;if("HR"===n.nodeName)return u.remove(n),void t.preventDefault();r&&r.nodeName&&"hr"===r.nodeName.toLowerCase()&&(u.remove(r),t.preventDefault())}}}),n.Range.prototype.getClientRects||e.on("mousedown",function(t){if(!_(t)&&"HTML"===t.target.nodeName){var n=e.getBody();n.blur(),he.setEditorTimeout(e,function(){n.focus()})}}),r=function(){var t=u.getAttribs(l.getStart().cloneNode(!1));return function(){var n=l.getStart();n!==e.getBody()&&(u.setAttrib(n,"style",null),a(t,function(e){n.setAttributeNode(e.cloneNode(!0))}))}},i=function(){return!l.isCollapsed()&&u.getParent(l.getStart(),u.isBlock)!==u.getParent(l.getEnd(),u.isBlock)},e.on("keypress",function(t){var n;if(!_(t)&&(8===t.keyCode||46===t.keyCode)&&i())return n=r(),e.getDoc().execCommand("delete",!1,null),n(),t.preventDefault(),!1}),u.bind(e.getDoc(),"cut",function(t){var n;!_(t)&&i()&&(n=r(),he.setEditorTimeout(e,function(){n()}))}),c.readonly||e.on("BeforeExecCommand MouseDown",function(){g("StyleWithCSS",!1),g("enableInlineTableEditing",!1),c.object_resizing||g("enableObjectResizing",!1)}),e.on("SetContent ExecCommand",function(e){"setcontent"!==e.type&&"mceInsertLink"!==e.command||a(u.select("a"),function(e){var t=e.parentNode,n=u.getRoot();if(t.lastChild===e){for(;t&&!u.isBlock(t);){if(t.parentNode.lastChild!==t||t===n)return;t=t.parentNode}u.add(t,"br",{"data-mce-bogus":1})}})}),e.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}"),le.mac&&e.on("keydown",function(t){!vg.metaKeyPressed(t)||t.shiftKey||37!==t.keyCode&&39!==t.keyCode||(t.preventDefault(),e.selection.getSel().modify("move",37===t.keyCode?"backward":"forward","lineboundary"))}),y()),{refreshContentEditable:function(){},isHidden:function(){var t;return!f||e.removed?0:!(t=e.selection.getSel())||!t.rangeCount||0===t.rangeCount}}}var Tw=function(e){return Si.isElement(e)&&fi($n.fromDom(e))},Sw=function(e){e.on("click",function(t){t.detail>=3&&function(e){var t=e.selection.getRng(),n=ms.fromRangeStart(t),r=ms.fromRangeEnd(t);if(ms.isElementPosition(n)){var i=n.container();Tw(i)&&qu.firstPositionIn(i).each(function(e){return t.setStart(e.container(),e.offset())})}ms.isElementPosition(r)&&(i=n.container(),Tw(i)&&qu.lastPositionIn(i).each(function(e){return t.setEnd(e.container(),e.offset())})),e.selection.setRng(Jl(t))}(e)})},Yw=function(e){!function(e){e.on("click",function(t){e.dom.getParent(t.target,"details")&&t.preventDefault()})}(e),function(e){e.parser.addNodeFilter("details",function(e){W(e,function(e){e.attr("data-mce-open",e.attr("open")),e.attr("open","open")})}),e.serializer.addNodeFilter("details",function(e){W(e,function(e){var t=e.attr("data-mce-open");e.attr("open",C(t)?t:null),e.attr("data-mce-open",null)})})}(e)},Nw=ma.DOM,Ew=function(e){e.bindPendingEventDelegates(),e.initialized=!0,e.fire("init"),e.focus(!0),e.nodeChanged({initial:!0}),e.execCallback("init_instance_callback",e),function(e){e.settings.auto_focus&&he.setEditorTimeout(e,function(){var t;(t=!0===e.settings.auto_focus?e:e.editorManager.get(e.settings.auto_focus)).destroyed||t.focus()},100)}(e)},Pw=function(e,t){var r,i,a=e.settings,o=e.getElement(),s=e.getDoc();a.inline||(e.getElement().style.visibility=e.orgVisibility),t||a.content_editable||(s.open(),s.write(e.iframeHTML),s.close()),a.content_editable&&(e.on("remove",function(){var e=this.getBody();Nw.removeClass(e,"mce-content-body"),Nw.removeClass(e,"mce-edit-focus"),Nw.setAttrib(e,"contentEditable",null)}),Nw.addClass(o,"mce-content-body"),e.contentDocument=s=a.content_document||n.document,e.contentWindow=a.content_window||n.window,e.bodyElement=o,a.content_document=a.content_window=null,a.root_name=o.nodeName.toLowerCase()),(r=e.getBody()).disabled=!0,e.readonly=a.readonly,e.readonly||(e.inline&&"static"===Nw.getStyle(r,"position",!0)&&(r.style.position="relative"),r.contentEditable=e.getParam("content_editable_state",!0)),r.disabled=!1,e.editorUpload=ag(e),e.schema=ta(a),e.dom=ma(s,{keep_values:!0,url_converter:e.convertURL,url_converter_scope:e,hex_colors:a.force_hex_style_colors,class_filter:a.class_filter,update_styles:!0,root_element:e.inline?e.getBody():null,collect:a.content_editable,schema:e.schema,contentCssCors:Xl.shouldUseContentCssCors(e),onSetAttrib:function(t){e.fire("SetAttrib",t)}}),e.parser=function(e){var t=Yv(e.settings,e.schema);return t.addAttributeFilter("src,href,style,tabindex",function(t,n){for(var r,i,a,o=t.length,s=e.dom;o--;)if(i=(r=t[o]).attr(n),a="data-mce-"+n,!r.attributes.map[a]){if(0===i.indexOf("data:")||0===i.indexOf("blob:"))continue;"style"===n?((i=s.serializeStyle(s.parseStyle(i),r.name)).length||(i=null),r.attr(a,i),r.attr(n,i)):"tabindex"===n?(r.attr(a,i),r.attr(n,null)):r.attr(a,e.convertURL(i,n,r.name))}}),t.addNodeFilter("script",function(e){for(var t,n,r=e.length;r--;)0!==(n=(t=e[r]).attr("type")||"no/type").indexOf("mce-")&&t.attr("type","mce-"+n)}),t.addNodeFilter("#cdata",function(e){for(var t,n=e.length;n--;)(t=e[n]).type=8,t.name="#comment",t.value="[CDATA["+t.value+"]]"}),t.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",function(t){for(var n,r=t.length,i=e.schema.getNonEmptyElements();r--;)(n=t[r]).isEmpty(i)&&0===n.getAll("br").length&&(n.append(new bv("br",1)).shortEnded=!0)}),t}(e),e.serializer=Ov(a,e),e.selection=yy(e.dom,e.getWin(),e.serializer,e),e.annotator=Dl(e),e.formatter=uv(e),e.undoManager=v_(e),e._nodeChangeDispatcher=new gg(e),e._selectionOverrides=Gg(e),Yw(e),Sw(e),Aw(e),cg(e),e.fire("PreInit"),a.browser_spellcheck||a.gecko_spellcheck||(s.body.spellcheck=!1,Nw.setAttrib(r,"spellcheck","false")),e.quirks=Cw(e),e.fire("PostRender"),a.directionality&&(r.dir=a.directionality),a.nowrap&&(r.style.whiteSpace="nowrap"),a.protect&&e.on("BeforeSetContent",function(e){Vt.each(a.protect,function(t){e.content=e.content.replace(t,function(e){return"\x3c!--mce:protected "+escape(e)+"--\x3e"})})}),e.on("SetContent",function(){e.addVisual(e.getBody())}),e.load({initial:!0,format:"html"}),e.startContent=e.getContent({format:"raw"}),e.on("compositionstart compositionend",function(t){e.composing="compositionstart"===t.type}),e.contentStyles.length>0&&(i="",Vt.each(e.contentStyles,function(e){i+=e+"\r\n"}),e.dom.addStyle(i)),function(e){return e.inline?Nw.styleSheetLoader:e.dom.styleSheetLoader}(e).loadAll(e.contentCSS,function(t){Ew(e)},function(t){Ew(e)}),a.content_style&&function(e,t){var n=$n.fromDom(e.getDoc().head),r=$n.fromTag("style");fr(r,"type","text/css"),La(r,$n.fromText(t)),La(n,r)}(e,a.content_style)},Iw=ma.DOM,Ow=function(e,t){var r=e.editorManager.translate("Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help"),i=function(e,t,n,r){var i=$n.fromTag("iframe");return mr(i,r),mr(i,{id:e+"_ifr",frameBorder:"0",allowTransparency:"true",title:t}),gr(i,{width:"100%",height:function(e){var t="number"==typeof e?e+"px":e;return t||""}(n),display:"block"}),i}(e.id,r,t.height,Xl.getIframeAttrs(e)).dom();i.onload=function(){i.onload=null,e.fire("load")};var a=function(e,t){if(n.document.domain!==n.window.location.hostname&&le.ie&&le.ie<12){var r=ig.uuid("mce");e[r]=function(){Pw(e)};var i='javascript:(function(){document.open();document.domain="'+n.document.domain+'";var ed = window.parent.tinymce.get("'+e.id+'");document.write(ed.iframeHTML);document.close();ed.'+r+"(true);})()";return Iw.setAttrib(t,"src",i),!0}return!1}(e,i);return e.contentAreaContainer=t.iframeContainer,e.iframeElement=i,e.iframeHTML=function(e){var t,n,r;return r=Xl.getDocType(e)+"<html><head>",Xl.getDocumentBaseUrl(e)!==e.documentBaseUrl&&(r+='<base href="'+e.documentBaseURI.getURI()+'" />'),r+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />',t=Xl.getBodyId(e),n=Xl.getBodyClass(e),Xl.getContentSecurityPolicy(e)&&(r+='<meta http-equiv="Content-Security-Policy" content="'+Xl.getContentSecurityPolicy(e)+'" />'),r+='</head><body id="'+t+'" class="mce-content-body '+n+'" data-id="'+e.id+'"><br></body></html>'}(e),Iw.add(t.iframeContainer,i),a},Fw=function(e,t){var n=Ow(e,t);t.editorContainer&&(Iw.get(t.editorContainer).style.display=e.orgDisplay,e.hidden=Iw.isHidden(t.editorContainer)),e.getElement().style.display="none",Iw.setAttrib(e.id,"aria-hidden","true"),n||Pw(e)},Rw=ma.DOM,Hw=function(e,t,n){var r=Up.get(n),i=Up.urls[n]||e.documentBaseUrl.replace(/\/$/,"");if(n=Vt.trim(n),r&&-1===Vt.inArray(t,n)){if(Vt.each(Up.dependencies(n),function(n){Hw(e,t,n)}),e.plugins[n])return;try{var a=new r(e,i,e.$);e.plugins[n]=a,a.init&&(a.init(e,i),t.push(n))}catch(t){Wp.pluginInitError(e,n,t)}}},jw=function(e){return e.replace(/^\-/,"")},Bw=function(e){return{editorContainer:e,iframeContainer:e}},Ww=function(e){var t=e.getElement();return e.inline?Bw(null):function(e){var t=Rw.create("div");return Rw.insertAfter(t,e),Bw(t)}(t)},Uw=function(e){var t=e.settings,n=e.getElement();return e.orgDisplay=n.style.display,C(t.theme)?function(e){var t,n,r,i,a,o=e.settings,s=e.getElement();return t=o.width||Rw.getStyle(s,"width")||"100%",n=o.height||Rw.getStyle(s,"height")||s.offsetHeight,r=o.min_height||100,(i=/^[0-9\.]+(|px)$/i).test(""+t)&&(t=Math.max(parseInt(t,10),100)),i.test(""+n)&&(n=Math.max(parseInt(n,10),r)),a=e.theme.renderUI({targetNode:s,width:t,height:n,deltaWidth:o.delta_width,deltaHeight:o.delta_height}),o.content_editable||(n=(a.iframeHeight||n)+("number"==typeof n?a.deltaHeight||0:""))<r&&(n=r),a.height=n,a}(e):E(t.theme)?function(e){var t,n=e.getElement();return(t=e.settings.theme(e,n)).editorContainer.nodeType&&(t.editorContainer.id=t.editorContainer.id||e.id+"_parent"),t.iframeContainer&&t.iframeContainer.nodeType&&(t.iframeContainer.id=t.iframeContainer.id||e.id+"_iframecontainer"),t.height=t.iframeHeight?t.iframeHeight:n.offsetHeight,t}(e):Ww(e)},zw=function(e){var t,n=e.settings,r=e.getElement();return e.rtl=n.rtl_ui||e.editorManager.i18n.rtl,e.editorManager.i18n.setCode(n.language),n.aria_label=n.aria_label||Rw.getAttrib(r,"aria-label",e.getLang("aria.rich_text_area")),e.fire("ScriptsLoaded"),function(e){var t,n=e.settings.theme;C(n)?(e.settings.theme=jw(n),t=zp.get(n),e.theme=new t(e,zp.urls[n]),e.theme.init&&e.theme.init(e,zp.urls[n]||e.documentBaseUrl.replace(/\/$/,""),e.$)):e.theme={}}(e),function(e){var t=[];Vt.each(e.settings.plugins.split(/[ ,]/),function(n){Hw(e,t,jw(n))})}(e),t=Uw(e),e.editorContainer=t.editorContainer?t.editorContainer:null,n.content_css&&Vt.each(Vt.explode(n.content_css),function(t){e.contentCSS.push(e.documentBaseURI.toAbsolute(t))}),n.content_editable?Pw(e):Fw(e,t)},Jw=ma.DOM,qw=function(e){return"-"===e.charAt(0)},Vw=function(e,t){var n=va.ScriptLoader;!function(e,t,n,r){var i=t.settings,a=i.theme;if(C(a)){if(!qw(a)&&!zp.urls.hasOwnProperty(a)){var o=i.theme_url;o?zp.load(a,t.documentBaseURI.toAbsolute(o)):zp.load(a,"themes/"+a+"/theme"+n+".js")}e.loadQueue(function(){zp.waitFor(a,r)})}else r()}(n,e,t,function(){!function(e,t){var n=t.settings;n.language&&"en"!==n.language&&!n.language_url&&(n.language_url=t.editorManager.baseURL+"/langs/"+n.language+".js"),n.language_url&&!t.editorManager.i18n.data[n.language]&&e.add(n.language_url)}(n,e),function(e,t){Vt.isArray(e.plugins)&&(e.plugins=e.plugins.join(" ")),Vt.each(e.external_plugins,function(t,n){Up.load(n,t),e.plugins+=" "+n}),Vt.each(e.plugins.split(/[ ,]/),function(e){if((e=Vt.trim(e))&&!Up.urls[e])if(qw(e)){e=e.substr(1,e.length);var n=Up.dependencies(e);Vt.each(n,function(e){var n={prefix:"plugins/",resource:e,suffix:"/plugin"+t+".js"};e=Up.createUrl(n,e),Up.load(e.resource,e)})}else Up.load(e,{prefix:"plugins/",resource:e,suffix:"/plugin"+t+".js"})})}(e.settings,t),n.loadQueue(function(){e.removed||zw(e)},e,function(t){Wp.pluginLoadError(e,t[0]),e.removed||zw(e)})})},Gw=function(e){var t=e.settings,r=e.id,i=function(){Jw.unbind(n.window,"ready",i),e.render()};if(ke.Event.domLoaded){if(e.getElement()&&le.contentEditable){t.inline?e.inline=!0:(e.orgVisibility=e.getElement().style.visibility,e.getElement().style.visibility="hidden");var a=e.getElement().form||Jw.getParent(r,"form");a&&(e.formElement=a,t.hidden_input&&!/TEXTAREA|INPUT/i.test(e.getElement().nodeName)&&(Jw.insertAfter(Jw.create("input",{type:"hidden",name:r}),r),e.hasHiddenInput=!0),e.formEventDelegate=function(t){e.fire(t.type,t)},Jw.bind(a,"submit reset",e.formEventDelegate),e.on("reset",function(){e.setContent(e.startContent,{format:"raw"})}),!t.submit_patch||a.submit.nodeType||a.submit.length||a._mceOldSubmit||(a._mceOldSubmit=a.submit,a.submit=function(){return e.editorManager.triggerSave(),e.setDirty(!1),a._mceOldSubmit(a)})),e.windowManager=Ep(e),e.notificationManager=Np(e),"xml"===t.encoding&&e.on("GetContent",function(e){e.save&&(e.content=Jw.encode(e.content))}),t.add_form_submit_trigger&&e.on("submit",function(){e.initialized&&e.save()}),t.add_unload_trigger&&(e._beforeUnload=function(){!e.initialized||e.destroyed||e.isHidden()||e.save({format:"raw",no_events:!0,set_dirty:!1})},e.editorManager.on("BeforeUnload",e._beforeUnload)),e.editorManager.add(e),Vw(e,e.suffix)}}else Jw.bind(n.window,"ready",i)},$w=function(e,t,n){var r=e.sidebars?e.sidebars:[];r.push({name:t,settings:n}),e.sidebars=r},Kw=Vt.each,Qw=Vt.trim,Xw="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),Zw={ftp:21,http:80,https:443,mailto:25},eM=function(e,t){var r,i,a=this;if(e=Qw(e),r=(t=a.settings=t||{}).base_uri,/^([\w\-]+):([^\/]{2})/i.test(e)||/^\s*#/.test(e))a.source=e;else{var o=0===e.indexOf("//");0!==e.indexOf("/")||o||(e=(r&&r.protocol||"http")+"://mce_host"+e),/^[\w\-]*:?\/\//.test(e)||(i=t.base_uri?t.base_uri.path:new eM(n.document.location.href).directory,""==t.base_uri.protocol?e="//mce_host"+a.toAbsPath(i,e):(e=/([^#?]*)([#?]?.*)/.exec(e),e=(r&&r.protocol||"http")+"://mce_host"+a.toAbsPath(i,e[1])+e[2])),e=e.replace(/@@/g,"(mce_at)"),e=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(e),Kw(Xw,function(t,n){var r=e[n];r&&(r=r.replace(/\(mce_at\)/g,"@@")),a[t]=r}),r&&(a.protocol||(a.protocol=r.protocol),a.userInfo||(a.userInfo=r.userInfo),a.port||"mce_host"!==a.host||(a.port=r.port),a.host&&"mce_host"!==a.host||(a.host=r.host),a.source=""),o&&(a.protocol="")}};eM.prototype={setPath:function(e){e=/^(.*?)\/?(\w+)?$/.exec(e),this.path=e[0],this.directory=e[1],this.file=e[2],this.source="",this.getURI()},toRelative:function(e){var t;if("./"===e)return e;if("mce_host"!==(e=new eM(e,{base_uri:this})).host&&this.host!==e.host&&e.host||this.port!==e.port||this.protocol!==e.protocol&&""!==e.protocol)return e.getURI();var n=this.getURI(),r=e.getURI();return n===r||"/"===n.charAt(n.length-1)&&n.substr(0,n.length-1)===r?n:(t=this.toRelPath(this.path,e.path),e.query&&(t+="?"+e.query),e.anchor&&(t+="#"+e.anchor),t)},toAbsolute:function(e,t){return(e=new eM(e,{base_uri:this})).getURI(t&&this.isSameOrigin(e))},isSameOrigin:function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=Zw[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},toRelPath:function(e,t){var n,r,i,a=0,o="";if(e=(e=e.substring(0,e.lastIndexOf("/"))).split("/"),n=t.split("/"),e.length>=n.length)for(r=0,i=e.length;r<i;r++)if(r>=n.length||e[r]!==n[r]){a=r+1;break}if(e.length<n.length)for(r=0,i=n.length;r<i;r++)if(r>=e.length||e[r]!==n[r]){a=r+1;break}if(1===a)return t;for(r=0,i=e.length-(a-1);r<i;r++)o+="../";for(r=a-1,i=n.length;r<i;r++)o+=r!==a-1?"/"+n[r]:n[r];return o},toAbsPath:function(e,t){var n,r,i,a=0,o=[];for(r=/\/$/.test(t)?"/":"",e=e.split("/"),t=t.split("/"),Kw(e,function(e){e&&o.push(e)}),e=o,n=t.length-1,o=[];n>=0;n--)0!==t[n].length&&"."!==t[n]&&(".."!==t[n]?a>0?a--:o.push(t[n]):a++);return 0!==(i=(n=e.length-a)<=0?o.reverse().join("/"):e.slice(0,n).join("/")+"/"+o.reverse().join("/")).indexOf("/")&&(i="/"+i),r&&i.lastIndexOf("/")!==i.length-1&&(i+=r),i},getURI:function(e){var t;return this.source&&!e||(t="",e||(this.protocol?t+=this.protocol+"://":t+="//",this.userInfo&&(t+=this.userInfo+"@"),this.host&&(t+=this.host),this.port&&(t+=":"+this.port)),this.path&&(t+=this.path),this.query&&(t+="?"+this.query),this.anchor&&(t+="#"+this.anchor),this.source=t),this.source}},eM.parseDataUri=function(e){var t,n;return e=decodeURIComponent(e).split(","),(n=/data:([^;]+)/.exec(e[0]))&&(t=n[1]),{type:t,data:e[1]}},eM.getDocumentBaseUrl=function(e){var t;return t=0!==e.protocol.indexOf("http")&&"file:"!==e.protocol?e.href:e.protocol+"//"+e.host+e.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),t};var tM=function(e,t,n){var r;if(t.format=t.format?t.format:"html",t.get=!0,t.getInner=!0,t.no_events||e.fire("BeforeGetContent",t),"raw"===t.format)r=Vt.trim(r_.trimExternal(e.serializer,n.innerHTML));else if("text"===t.format)r=lo(n.innerText||n.textContent);else{if("tree"===t.format)return e.serializer.serialize(n,t);r=function(e,t){var n=Xl.getForcedRootBlock(e),r=new RegExp("^(<"+n+"[^>]*>(&nbsp;|&#160;|\\s| |<br \\/>|)<\\/"+n+">[\r\n]*|<br \\/>[\r\n]*)$");return t.replace(r,"")}(e,e.serializer.serialize(n,t))}return"text"===t.format||vi($n.fromDom(n))?t.content=r:t.content=Vt.trim(r),t.no_events||e.fire("GetContent",t),t.content},nM=function(e,t){t(e),e.firstChild&&nM(e.firstChild,t),e.next&&nM(e.next,t)},rM=function(e,t,n){var r=function(e,t,n){var r={},i={},a=[];for(var o in n.firstChild&&nM(n.firstChild,function(n){W(e,function(e){e.name===n.name&&(r[e.name]?r[e.name].nodes.push(n):r[e.name]={filter:e,nodes:[n]})}),W(t,function(e){"string"==typeof n.attr(e.name)&&(i[e.name]?i[e.name].nodes.push(n):i[e.name]={filter:e,nodes:[n]})})}),r)r.hasOwnProperty(o)&&a.push(r[o]);for(var o in i)i.hasOwnProperty(o)&&a.push(i[o]);return a}(e,t,n);W(r,function(e){W(e.filter.callbacks,function(t){t(e.nodes,e.filter.name,{})})})},iM=function(e){return e instanceof bv},aM=function(e,t){e.dom.setHTML(e.getBody(),t),function(e){Lp(e)&&qu.firstPositionIn(e.getBody()).each(function(t){var n=t.getNode(),r=Si.isTable(n)?qu.firstPositionIn(n).getOr(t):t;e.selection.setRng(r.toRange())})}(e)},oM=function(e,t,n){return void 0===n&&(n={}),n.format=n.format?n.format:"html",n.set=!0,n.content=iM(t)?"":t,iM(t)||n.no_events||(e.fire("BeforeSetContent",n),t=n.content),x.from(e.getBody()).fold(a(t),function(r){return iM(t)?function(e,t,n,r){rM(e.parser.getNodeFilters(),e.parser.getAttributeFilters(),n);var i=Wl({validate:e.validate},e.schema).serialize(n);return r.content=vi($n.fromDom(t))?i:Vt.trim(i),aM(e,r.content),r.no_events||e.fire("SetContent",r),n}(e,r,t,n):function(e,t,n,r){var i,a;return 0===n.length||/^\s+$/.test(n)?(a='<br data-mce-bogus="1">',"TABLE"===t.nodeName?n="<tr><td>"+a+"</td></tr>":/^(UL|OL)$/.test(t.nodeName)&&(n="<li>"+a+"</li>"),(i=Xl.getForcedRootBlock(e))&&e.schema.isValidChild(t.nodeName.toLowerCase(),i.toLowerCase())?(n=a,n=e.dom.createHTML(i,e.settings.forced_root_block_attrs,n)):n||(n='<br data-mce-bogus="1">'),aM(e,n),e.fire("SetContent",r)):("raw"!==r.format&&(n=Wl({validate:e.validate},e.schema).serialize(e.parser.parse(n,{isRootContent:!0,insert:!0}))),r.content=vi($n.fromDom(t))?n:Vt.trim(n),aM(e,r.content),r.no_events||e.fire("SetContent",r)),r.content}(e,r,t,n)})},sM=ma.DOM,uM=function(e){return x.from(e).each(function(e){return e.destroy()})},lM=function(e){if(!e.removed){var t=e._selectionOverrides,n=e.editorUpload,r=e.getBody(),i=e.getElement();r&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&i&&sM.remove(i.nextSibling),Rh(e),e.editorManager.remove(e),!e.inline&&r&&function(e){sM.setStyle(e.id,"display",e.orgDisplay)}(e),Hh(e),sM.remove(e.getContainer()),uM(t),uM(n),e.destroy()}},cM=function(e,t){var n=e.selection,r=e.dom;e.destroyed||(t||e.removed?(t||(e.editorManager.off("beforeunload",e._beforeUnload),e.theme&&e.theme.destroy&&e.theme.destroy(),uM(n),uM(r)),function(e){var t=e.formElement;t&&(t._mceOldSubmit&&(t.submit=t._mceOldSubmit,t._mceOldSubmit=null),sM.unbind(t,"submit reset",e.formEventDelegate))}(e),function(e){e.contentAreaContainer=e.formElement=e.container=e.editorContainer=null,e.bodyElement=e.contentDocument=e.contentWindow=null,e.iframeElement=e.targetElm=null,e.selection&&(e.selection=e.selection.win=e.selection.dom=e.selection.dom.doc=null)}(e),e.destroyed=!0):e.remove())},dM=ma.DOM,fM=Vt.extend,mM=Vt.each,hM=Vt.resolve,pM=le.ie,gM=function(e,t,n){var r=this,i=r.documentBaseUrl=n.documentBaseURL,a=n.baseURI;t=function(e,t,n,r,i){var a=function(e,t,n){return{id:e,theme:"modern",delta_width:0,delta_height:0,popup_css:"",plugins:"",document_base_url:t,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"<!DOCTYPE html>",visual:!0,font_size_style_values:"xx-small,x-small,small,medium,large,x-large,xx-large",font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,render_ui:!0,indentation:"40px",inline_styles:!0,convert_fonts_to_spans:!0,indent:"simple",indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",entity_encoding:"named",url_converter:n.convertURL,url_converter_scope:n,ie7_compat:!0}}(t,n,e);return sp(ep,a,r,i)}(r,e,i,n.defaultSettings,t),r.settings=t,ba.language=t.language||"en",ba.languageLoad=t.language_load,ba.baseURL=n.baseURL,r.id=e,r.setDirty(!1),r.plugins={},r.documentBaseURI=new eM(t.document_base_url,{base_uri:a}),r.baseURI=a,r.contentCSS=[],r.contentStyles=[],r.shortcuts=new hp(r),r.loadedCSS={},r.editorCommands=new Sh(r),r.suffix=n.suffix,r.editorManager=n,r.inline=t.inline,r.buttons={},r.menuItems={},t.cache_suffix&&(le.cacheSuffix=t.cache_suffix.replace(/^[\?\&]+/,"")),!1===t.override_viewport&&(le.overrideViewPort=!1),n.fire("SetupEditor",{editor:r}),r.execCallback("setup",r),r.$=mn.overrideDefaults(function(){return{context:r.inline?r.getBody():r.getDoc(),element:r.getBody()}})};fM(gM.prototype={render:function(){Gw(this)},focus:function(e){kp(this,e)},hasFocus:function(){return Lp(this)},execCallback:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r,i=this.settings[e];if(i)return this.callbackLookup&&(r=this.callbackLookup[e])&&(i=r.func,r=r.scope),"string"==typeof i&&(r=(r=i.replace(/\.\w+$/,""))?hM(r):0,i=hM(i),this.callbackLookup=this.callbackLookup||{},this.callbackLookup[e]={func:i,scope:r}),i.apply(r||this,Array.prototype.slice.call(arguments,1))},translate:function(e){if(e&&Vt.is(e,"string")){var t=this.settings.language||"en",n=this.editorManager.i18n;e=n.data[t+"."+e]||e.replace(/\{\#([^\}]+)\}/g,function(e,r){return n.data[t+"."+r]||"{#"+r+"}"})}return this.editorManager.translate(e)},getLang:function(e,t){return this.editorManager.i18n.data[(this.settings.language||"en")+"."+e]||(void 0!==t?t:"{#"+e+"}")},getParam:function(e,t,n){return lp(this,e,t,n)},nodeChanged:function(e){this._nodeChangeDispatcher.nodeChanged(e)},addButton:function(e,t){var n=this;t.cmd&&(t.onclick=function(){n.execCommand(t.cmd)}),t.stateSelector&&void 0===t.active&&(t.active=!1),t.text||t.icon||(t.icon=e),t.tooltip=t.tooltip||t.title,n.buttons[e]=t},addSidebar:function(e,t){return $w(this,e,t)},addMenuItem:function(e,t){var n=this;t.cmd&&(t.onclick=function(){n.execCommand(t.cmd)}),n.menuItems[e]=t},addContextToolbar:function(e,t){var n,r=this;r.contextToolbars=r.contextToolbars||[],"string"==typeof e&&(n=e,e=function(e){return r.dom.is(e,n)}),r.contextToolbars.push({id:ig.uuid("mcet"),predicate:e,items:t})},addCommand:function(e,t,n){this.editorCommands.addCommand(e,t,n)},addQueryStateHandler:function(e,t,n){this.editorCommands.addQueryStateHandler(e,t,n)},addQueryValueHandler:function(e,t,n){this.editorCommands.addQueryValueHandler(e,t,n)},addShortcut:function(e,t,n,r){this.shortcuts.add(e,t,n,r)},execCommand:function(e,t,n,r){return this.editorCommands.execCommand(e,t,n,r)},queryCommandState:function(e){return this.editorCommands.queryCommandState(e)},queryCommandValue:function(e){return this.editorCommands.queryCommandValue(e)},queryCommandSupported:function(e){return this.editorCommands.queryCommandSupported(e)},show:function(){this.hidden&&(this.hidden=!1,this.inline?this.getBody().contentEditable=!0:(dM.show(this.getContainer()),dM.hide(this.id)),this.load(),this.fire("show"))},hide:function(){var e=this.getDoc();this.hidden||(pM&&e&&!this.inline&&e.execCommand("SelectAll"),this.save(),this.inline?(this.getBody().contentEditable=!1,this===this.editorManager.focusedEditor&&(this.editorManager.focusedEditor=null)):(dM.hide(this.getContainer()),dM.setStyle(this.id,"display",this.orgDisplay)),this.hidden=!0,this.fire("hide"))},isHidden:function(){return!!this.hidden},setProgressState:function(e,t){this.fire("ProgressState",{state:e,time:t})},load:function(e){var t,n=this.getElement();return this.removed?"":n?((e=e||{}).load=!0,t=this.setContent(void 0!==n.value?n.value:n.innerHTML,e),e.element=n,e.no_events||this.fire("LoadContent",e),e.element=n=null,t):void 0},save:function(e){var t,n,r=this,i=r.getElement();if(i&&r.initialized&&!r.removed)return(e=e||{}).save=!0,e.element=i,e.content=r.getContent(e),e.no_events||r.fire("SaveContent",e),"raw"===e.format&&r.fire("RawSaveContent",e),t=e.content,/TEXTAREA|INPUT/i.test(i.nodeName)?i.value=t:(!e.is_removing&&r.inline||(i.innerHTML=t),(n=dM.getParent(r.id,"form"))&&mM(n.elements,function(e){if(e.name===r.id)return e.value=t,!1})),e.element=i=null,!1!==e.set_dirty&&r.setDirty(!1),t},setContent:function(e,t){return oM(this,e,t)},getContent:function(e){return function(e,t){return void 0===t&&(t={}),x.from(e.getBody()).fold(a("tree"===t.format?new bv("body",11):""),function(n){return tM(e,t,n)})}(this,e)},insertContent:function(e,t){t&&(e=fM({content:e},t)),this.execCommand("mceInsertContent",!1,e)},isDirty:function(){return!this.isNotDirty},setDirty:function(e){var t=!this.isNotDirty;this.isNotDirty=!e,e&&e!==t&&this.fire("dirty")},setMode:function(e){!function(e,t){t!==qh(e)&&(e.initialized?Jh(e,"readonly"===t):e.on("init",function(){Jh(e,"readonly"===t)}),jh(e,t))}(this,e)},getContainer:function(){return this.container||(this.container=dM.get(this.editorContainer||this.id+"_parent")),this.container},getContentAreaContainer:function(){return this.contentAreaContainer},getElement:function(){return this.targetElm||(this.targetElm=dM.get(this.id)),this.targetElm},getWin:function(){var e;return this.contentWindow||(e=this.iframeElement)&&(this.contentWindow=e.contentWindow),this.contentWindow},getDoc:function(){var e;return this.contentDocument||(e=this.getWin())&&(this.contentDocument=e.document),this.contentDocument},getBody:function(){var e=this.getDoc();return this.bodyElement||(e?e.body:null)},convertURL:function(e,t,n){var r=this.settings;return r.urlconverter_callback?this.execCallback("urlconverter_callback",e,n,!0,t):!r.convert_urls||n&&"LINK"===n.nodeName||0===e.indexOf("file:")||0===e.length?e:r.relative_urls?this.documentBaseURI.toRelative(e):e=this.documentBaseURI.toAbsolute(e,r.remove_script_host)},addVisual:function(e){var t,n=this,r=n.settings,i=n.dom;e=e||n.getBody(),void 0===n.hasVisual&&(n.hasVisual=r.visual),mM(i.select("table,a",e),function(e){var a;switch(e.nodeName){case"TABLE":return t=r.visual_table_class||"mce-item-table",void((a=i.getAttrib(e,"border"))&&"0"!==a||!n.hasVisual?i.removeClass(e,t):i.addClass(e,t));case"A":return void(i.getAttrib(e,"href")||(a=i.getAttrib(e,"name")||e.id,t=r.visual_anchor_class||"mce-item-anchor",a&&n.hasVisual?i.addClass(e,t):i.removeClass(e,t)))}}),n.fire("VisualAid",{element:e,hasVisual:n.hasVisual})},remove:function(){lM(this)},destroy:function(e){cM(this,e)},uploadImages:function(e){return this.editorUpload.uploadImages(e)},_scanForImages:function(){return this.editorUpload.scanForImages()}},Xh);var _M,vM,yM,bM={isEditorUIElement:function(e){return-1!==e.className.toString().indexOf("mce-")}},wM=function(e,t){Vn.detect().browser.isIE()?function(e){e.on("focusout",function(){Mh.store(e)})}(e):function(e,t){e.on("mouseup touchend",function(e){t.throttle()})}(e,t),e.on("keyup nodechange",function(t){(function(e){return"nodechange"===e.type&&e.selectionChange})(t)||Mh.store(e)})},MM=function(e){var t=Ta(function(){Mh.store(e)},0);e.inline&&function(e,t){var r=function(){t.throttle()};ma.DOM.bind(n.document,"mouseup",r),e.on("remove",function(){ma.DOM.unbind(n.document,"mouseup",r)})}(e,t),e.on("init",function(){wM(e,t)}),e.on("remove",function(){t.cancel()})},kM=ma.DOM,LM=function(e){return bM.isEditorUIElement(e)},DM=function(e,t){var n=e?e.settings.custom_ui_selector:"";return null!==kM.getParent(t,function(t){return LM(t)||!!n&&e.dom.is(t,n)})},xM=function(e,t){var r=t.editor;MM(r),r.on("focusin",function(){var t=e.focusedEditor;t!==this&&(t&&t.fire("blur",{focusedEditor:this}),e.setActive(this),e.focusedEditor=this,this.fire("focus",{blurredEditor:t}),this.focus(!0))}),r.on("focusout",function(){var t=this;he.setEditorTimeout(t,function(){var r=e.focusedEditor;DM(t,function(){try{return n.document.activeElement}catch(e){return n.document.body}}())||r!==t||(t.fire("blur",{focusedEditor:null}),e.focusedEditor=null)})}),_M||(_M=function(t){var r,i=e.activeEditor;r=t.target,i&&r.ownerDocument===n.document&&(r===n.document.body||DM(i,r)||e.focusedEditor!==i||(i.fire("blur",{focusedEditor:null}),e.focusedEditor=null))},kM.bind(n.document,"focusin",_M))},AM=function(e,t){e.focusedEditor===t.editor&&(e.focusedEditor=null),e.activeEditor||(kM.unbind(n.document,"focusin",_M),_M=null)},CM=function(e){e.on("AddEditor",s(xM,e)),e.on("RemoveEditor",s(AM,e))},TM=ma.DOM,SM=Vt.explode,YM=Vt.each,NM=Vt.extend,EM=0,PM=!1,IM=[],OM=[],FM=function(e){var t=e.type;YM(yM.get(),function(n){switch(t){case"scroll":n.fire("ScrollWindow",e);break;case"resize":n.fire("ResizeWindow",e)}})},RM=function(e){e!==PM&&(e?mn(window).on("resize scroll",FM):mn(window).off("resize scroll",FM),PM=e)},HM=function(e){var t=OM;delete IM[e.id];for(var n=0;n<IM.length;n++)if(IM[n]===e){IM.splice(n,1);break}return OM=z(OM,function(t){return e!==t}),yM.activeEditor===e&&(yM.activeEditor=OM.length>0?OM[0]:null),yM.focusedEditor===e&&(yM.focusedEditor=null),t.length!==OM.length};NM(yM={defaultSettings:{},$:mn,majorVersion:"4",minorVersion:"9.11",releaseDate:"2020-07-13",editors:IM,i18n:Op,activeEditor:null,settings:{},setup:function(){var e,t,r="";t=eM.getDocumentBaseUrl(n.document.location),/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/"));var i=window.tinymce||window.tinyMCEPreInit;if(i)e=i.base||i.baseURL,r=i.suffix;else{for(var a=n.document.getElementsByTagName("script"),o=0;o<a.length;o++){var s;if(""!==(s=a[o].src||"")){var u=s.substring(s.lastIndexOf("/"));if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(s)){-1!==u.indexOf(".min")&&(r=".min"),e=s.substring(0,s.lastIndexOf("/"));break}}}!e&&n.document.currentScript&&(-1!==(s=n.document.currentScript.src).indexOf(".min")&&(r=".min"),e=s.substring(0,s.lastIndexOf("/")))}this.baseURL=new eM(t).toAbsolute(e),this.documentBaseURL=t,this.baseURI=new eM(this.baseURL),this.suffix=r,CM(this)},overrideDefaults:function(e){var t,n;(t=e.base_url)&&(this.baseURL=new eM(this.documentBaseURL).toAbsolute(t.replace(/\/+$/,"")),this.baseURI=new eM(this.baseURL)),n=e.suffix,e.suffix&&(this.suffix=n),this.defaultSettings=e;var r=e.plugin_base_urls;for(var i in r)ba.PluginManager.urls[i]=r[i]},init:function(e){var t,r,i=this;r=Vt.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option tbody tfoot thead tr script noscript style textarea video audio iframe object menu"," ");var a=function(e){var t=e.id;return t||(t=(t=e.name)&&!TM.get(t)?e.name:TM.uniqueId(),e.setAttribute("id",t)),t},o=function(e,t){return t.constructor===RegExp?t.test(e.className):TM.hasClass(e,t)},s=function(e){t=e},u=function(){var t,l=0,c=[],d=function(e,n,r){var a=new gM(e,n,i);c.push(a),a.on("init",function(){++l===t.length&&s(c)}),a.targetElm=a.targetElm||r,a.render()};TM.unbind(window,"ready",u),function(t){var n=e[t];n&&n.apply(i,Array.prototype.slice.call(arguments,2))}("onpageload"),t=mn.unique(function(e){var t,r=[];if(le.ie&&le.ie<11)return Wp.initError("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tinymce.com/docs/get-started/system-requirements/"),[];if(e.types)return YM(e.types,function(e){r=r.concat(TM.select(e.selector))}),r;if(e.selector)return TM.select(e.selector);if(e.target)return[e.target];switch(e.mode){case"exact":(t=e.elements||"").length>0&&YM(SM(t),function(e){var t;(t=TM.get(e))?r.push(t):YM(n.document.forms,function(t){YM(t.elements,function(t){t.name===e&&(e="mce_editor_"+EM++,TM.setAttrib(t,"id",e),r.push(t))})})});break;case"textareas":case"specific_textareas":YM(TM.select("textarea"),function(t){e.editor_deselector&&o(t,e.editor_deselector)||e.editor_selector&&!o(t,e.editor_selector)||r.push(t)})}return r}(e)),e.types?YM(e.types,function(n){Vt.each(t,function(t){return!TM.is(t,n.selector)||(d(a(t),NM({},e,n),t),!1)})}):(Vt.each(t,function(e){var t;(t=i.get(e.id))&&t.initialized&&!(t.getContainer()||t.getBody()).parentNode&&(HM(t),t.unbindAllNativeEvents(),t.destroy(!0),t.removed=!0,t=null)}),0===(t=Vt.grep(t,function(e){return!i.get(e.id)})).length?s([]):YM(t,function(t){!function(e,t){return e.inline&&t.tagName.toLowerCase()in r}(e,t)?d(a(t),e,t):Wp.initError("Could not initialize inline editor on invalid inline target element",t)}))};return i.settings=e,TM.bind(window,"ready",u),new ce(function(e){t?e(t):s=function(t){e(t)}})},get:function(e){return 0===arguments.length?OM.slice(0):C(e)?q(OM,function(t){return t.id===e}).getOr(null):P(e)&&OM[e]?OM[e]:null},add:function(e){var t=this;return IM[e.id]===e?e:(null===t.get(e.id)&&("length"!==e.id&&(IM[e.id]=e),IM.push(e),OM.push(e)),RM(!0),t.activeEditor=e,t.fire("AddEditor",{editor:e}),vM||(vM=function(){t.fire("BeforeUnload")},TM.bind(window,"beforeunload",vM)),e)},createEditor:function(e,t){return this.add(new gM(e,t,this))},remove:function(e){var t,n,r=this;if(e){if(!C(e))return n=e,Y(r.get(n.id))?null:(HM(n)&&r.fire("RemoveEditor",{editor:n}),0===OM.length&&TM.unbind(window,"beforeunload",vM),n.remove(),RM(OM.length>0),n);YM(TM.select(e),function(e){(n=r.get(e.id))&&r.remove(n)})}else for(t=OM.length-1;t>=0;t--)r.remove(OM[t])},execCommand:function(e,t,n){var r=this.get(n);switch(e){case"mceAddEditor":return this.get(n)||new gM(n,this.settings,this).render(),!0;case"mceRemoveEditor":return r&&r.remove(),!0;case"mceToggleEditor":return r?(r.isHidden()?r.show():r.hide(),!0):(this.execCommand("mceAddEditor",0,n),!0)}return!!this.activeEditor&&this.activeEditor.execCommand(e,t,n)},triggerSave:function(){YM(OM,function(e){e.save()})},addI18n:function(e,t){Op.add(e,t)},translate:function(e){return Op.translate(e)},setActive:function(e){var t=this.activeEditor;this.activeEditor!==e&&(t&&t.fire("deactivate",{relatedTarget:e}),e.fire("activate",{relatedTarget:t})),this.activeEditor=e}},Ih),yM.setup();var jM=yM;function BM(e){return{walk:function(t,n){return vl.walk(e,t,n)},split:Zf.split,normalize:function(t){return Gm.normalize(e,t).fold(a(!1),function(e){return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),!0})}}}!function(e){e.compareRanges=Hm.isEq,e.getCaretRangeFromPoint=zv.fromPoint,e.getSelectedNode=Bo,e.getNode=Wo}(BM||(BM={}));var WM,UM,zM=BM,JM=Math.min,qM=Math.max,VM=Math.round,GM=function(e,t,n){var r,i,a,o,s,u;return r=t.x,i=t.y,a=e.w,o=e.h,s=t.w,u=t.h,"b"===(n=(n||"").split(""))[0]&&(i+=u),"r"===n[1]&&(r+=s),"c"===n[0]&&(i+=VM(u/2)),"c"===n[1]&&(r+=VM(s/2)),"b"===n[3]&&(i-=o),"r"===n[4]&&(r-=a),"c"===n[3]&&(i-=VM(o/2)),"c"===n[4]&&(r-=VM(a/2)),$M(r,i,a,o)},$M=function(e,t,n,r){return{x:e,y:t,w:n,h:r}},KM={inflate:function(e,t,n){return $M(e.x-t,e.y-n,e.w+2*t,e.h+2*n)},relativePosition:GM,findBestRelativePosition:function(e,t,n,r){var i,a;for(a=0;a<r.length;a++)if((i=GM(e,t,r[a])).x>=n.x&&i.x+i.w<=n.w+n.x&&i.y>=n.y&&i.y+i.h<=n.h+n.y)return r[a];return null},intersect:function(e,t){var n,r,i,a;return n=qM(e.x,t.x),r=qM(e.y,t.y),i=JM(e.x+e.w,t.x+t.w),a=JM(e.y+e.h,t.y+t.h),i-n<0||a-r<0?null:$M(n,r,i-n,a-r)},clamp:function(e,t,n){var r,i,a,o,s,u,l,c,d,f;return s=e.x,u=e.y,l=e.x+e.w,c=e.y+e.h,d=t.x+t.w,f=t.y+t.h,r=qM(0,t.x-s),i=qM(0,t.y-u),a=qM(0,l-d),o=qM(0,c-f),s+=r,u+=i,n&&(l+=r,c+=i,s-=a,u-=o),$M(s,u,(l-=a)-s,(c-=o)-u)},create:$M,fromClientRect:function(e){return $M(e.left,e.top,e.width,e.height)}},QM={},XM={add:function(e,t){QM[e.toLowerCase()]=t},has:function(e){return!!QM[e.toLowerCase()]},get:function(e){var t=e.toLowerCase(),n=QM.hasOwnProperty(t)?QM[t]:null;if(null===n)throw new Error("Could not find module for type: "+e);return n},create:function(e,t){var n;if("string"==typeof e?(t=t||{}).type=e:e=(t=e).type,e=e.toLowerCase(),!(n=QM[e]))throw new Error("Could not find control by type: "+e);return(n=new n(t)).type=e,n}},ZM=Vt.each,ek=Vt.extend,tk=function(){};tk.extend=WM=function(e){var t,n,r,i=this.prototype,a=function(){var e,t,n;if(!UM&&(this.init&&this.init.apply(this,arguments),t=this.Mixins))for(e=t.length;e--;)(n=t[e]).init&&n.init.apply(this,arguments)},o=function(){return this},s=function(e,t){return function(){var n,r=this._super;return this._super=i[e],n=t.apply(this,arguments),this._super=r,n}};for(n in UM=!0,t=new this,UM=!1,e.Mixins&&(ZM(e.Mixins,function(t){for(var n in t)"init"!==n&&(e[n]=t[n])}),i.Mixins&&(e.Mixins=i.Mixins.concat(e.Mixins))),e.Methods&&ZM(e.Methods.split(","),function(t){e[t]=o}),e.Properties&&ZM(e.Properties.split(","),function(t){var n="_"+t;e[t]=function(e){return void 0!==e?(this[n]=e,this):this[n]}}),e.Statics&&ZM(e.Statics,function(e,t){a[t]=e}),e.Defaults&&i.Defaults&&(e.Defaults=ek({},i.Defaults,e.Defaults)),e)"function"==typeof(r=e[n])&&i[n]?t[n]=s(n,r):t[n]=r;return a.prototype=t,a.constructor=a,a.extend=WM,a};var nk=Math.min,rk=Math.max,ik=Math.round,ak=function(e,t){var n,r,i,a;if(t=t||'"',null===e)return"null";if("string"==(i=typeof e))return r="\bb\tt\nn\ff\rr\"\"''\\\\",t+e.replace(/([\u0080-\uFFFF\x00-\x1f\"\'\\])/g,function(e,i){return'"'===t&&"'"===e?e:(n=r.indexOf(i))+1?"\\"+r.charAt(n+1):(e=i.charCodeAt().toString(16),"\\u"+"0000".substring(e.length)+e)})+t;if("object"===i){if(e.hasOwnProperty&&"[object Array]"===Object.prototype.toString.call(e)){for(n=0,r="[";n<e.length;n++)r+=(n>0?",":"")+ak(e[n],t);return r+"]"}for(a in r="{",e)e.hasOwnProperty(a)&&(r+="function"!=typeof e[a]?(r.length>1?","+t:t)+a+t+":"+ak(e[a],t):"");return r+"}"}return""+e},ok={serialize:ak,parse:function(e){try{return JSON.parse(e)}catch(e){}}},sk={callbacks:{},count:0,send:function(e){var t=this,n=ma.DOM,r=void 0!==e.count?e.count:t.count,i="tinymce_jsonp_"+r;t.callbacks[r]=function(a){n.remove(i),delete t.callbacks[r],e.callback(a)},n.add(n.doc.body,"script",{id:i,src:e.url,type:"text/javascript"}),t.count++}},uk={send:function(e){var t,n=0,r=function(){!e.async||4===t.readyState||n++>1e4?(e.success&&n<1e4&&200===t.status?e.success.call(e.success_scope,""+t.responseText,t,e):e.error&&e.error.call(e.error_scope,n>1e4?"TIMED_OUT":"GENERAL",t,e),t=null):setTimeout(r,10)};if(e.scope=e.scope||this,e.success_scope=e.success_scope||e.scope,e.error_scope=e.error_scope||e.scope,e.async=!1!==e.async,e.data=e.data||"",uk.fire("beforeInitialize",{settings:e}),t=Jp()){if(t.overrideMimeType&&t.overrideMimeType(e.content_type),t.open(e.type||(e.data?"POST":"GET"),e.url,e.async),e.crossDomain&&(t.withCredentials=!0),e.content_type&&t.setRequestHeader("Content-Type",e.content_type),e.requestheaders&&Vt.each(e.requestheaders,function(e){t.setRequestHeader(e.key,e.value)}),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),(t=uk.fire("beforeSend",{xhr:t,settings:e}).xhr).send(e.data),!e.async)return r();setTimeout(r,10)}}};Vt.extend(uk,Ih);var lk,ck=Vt.extend,dk=function(e){this.settings=ck({},e),this.count=0};dk.sendRPC=function(e){return(new dk).send(e)},dk.prototype={send:function(e){var t=e.error,n=e.success;(e=ck(this.settings,e)).success=function(r,i){void 0===(r=ok.parse(r))&&(r={error:"JSON Parse error."}),r.error?t.call(e.error_scope||e.scope,r.error,i):n.call(e.success_scope||e.scope,r.result)},e.error=function(n,r){t&&t.call(e.error_scope||e.scope,n,r)},e.data=ok.serialize({id:e.id||"c"+this.count++,method:e.method,params:e.params}),e.content_type="application/json",uk.send(e)}};try{lk=n.window.localStorage}catch(e){lk=function(){return e={},t=[],n={getItem:function(t){var n=e[t];return n||null},setItem:function(n,r){t.push(n),e[n]=String(r)},key:function(e){return t[e]},removeItem:function(n){t=t.filter(function(e){return e===n}),delete e[n]},clear:function(){t=[],e={}},length:0},Object.defineProperty(n,"length",{get:function(){return t.length},configurable:!1,enumerable:!1}),n;var e,t,n}()}var fk=jM,mk={geom:{Rect:KM},util:{Promise:ce,Delay:he,Tools:Vt,VK:vg,URI:eM,Class:tk,EventDispatcher:Nh,Observable:Ih,I18n:Op,XHR:uk,JSON:ok,JSONRequest:dk,JSONP:sk,LocalStorage:lk,Color:function(e){var t={},n=0,r=0,i=0,a=function(e){var a;return"object"==typeof e?"r"in e?(n=e.r,r=e.g,i=e.b):"v"in e&&function(e,t,a){var o,s,u,l;if(e=(parseInt(e,10)||0)%360,t=parseInt(t,10)/100,a=parseInt(a,10)/100,t=rk(0,nk(t,1)),a=rk(0,nk(a,1)),0!==t){switch(o=e/60,u=(s=a*t)*(1-Math.abs(o%2-1)),l=a-s,Math.floor(o)){case 0:n=s,r=u,i=0;break;case 1:n=u,r=s,i=0;break;case 2:n=0,r=s,i=u;break;case 3:n=0,r=u,i=s;break;case 4:n=u,r=0,i=s;break;case 5:n=s,r=0,i=u;break;default:n=r=i=0}n=ik(255*(n+l)),r=ik(255*(r+l)),i=ik(255*(i+l))}else n=r=i=ik(255*a)}(e.h,e.s,e.v):(a=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(e))?(n=parseInt(a[1],10),r=parseInt(a[2],10),i=parseInt(a[3],10)):(a=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(e))?(n=parseInt(a[1],16),r=parseInt(a[2],16),i=parseInt(a[3],16)):(a=/#([0-F])([0-F])([0-F])/gi.exec(e))&&(n=parseInt(a[1]+a[1],16),r=parseInt(a[2]+a[2],16),i=parseInt(a[3]+a[3],16)),n=n<0?0:n>255?255:n,r=r<0?0:r>255?255:r,i=i<0?0:i>255?255:i,t};return e&&a(e),t.toRgb=function(){return{r:n,g:r,b:i}},t.toHsv=function(){return function(e,t,n){var r,i,a,o;return i=0,(a=nk(e/=255,nk(t/=255,n/=255)))===(o=rk(e,rk(t,n)))?{h:0,s:0,v:100*(i=a)}:(r=(o-a)/o,i=o,{h:ik(60*((e===a?3:n===a?1:5)-(e===a?t-n:n===a?e-t:n-e)/(o-a))),s:ik(100*r),v:ik(100*i)})}(n,r,i)},t.toHex=function(){var e=function(e){return(e=parseInt(e,10).toString(16)).length>1?e:"0"+e};return"#"+e(n)+e(r)+e(i)},t.parse=a,t}},dom:{EventUtils:ke,Sizzle:Lt,DomQuery:mn,TreeWalker:ri,DOMUtils:ma,ScriptLoader:va,RangeUtils:zM,Serializer:Ov,ControlSelection:Wv,BookmarkManager:Hv,Selection:yy,Event:ke.Event},html:{Styles:ra,Entities:zi,Node:bv,Schema:ta,SaxParser:t_,DomParser:Yv,Writer:Bl,Serializer:Wl},ui:{Factory:XM},Env:le,AddOnManager:ba,Annotator:Dl,Formatter:uv,UndoManager:v_,EditorCommands:Sh,WindowManager:Ep,NotificationManager:Np,EditorObservable:Xh,Shortcuts:hp,Editor:gM,FocusManager:bM,EditorManager:jM,DOM:ma.DOM,ScriptLoader:va.ScriptLoader,PluginManager:ba.PluginManager,ThemeManager:ba.ThemeManager,trim:Vt.trim,isArray:Vt.isArray,is:Vt.is,toArray:Vt.toArray,makeMap:Vt.makeMap,each:Vt.each,map:Vt.map,grep:Vt.grep,inArray:Vt.inArray,extend:Vt.extend,create:Vt.create,walk:Vt.walk,createNS:Vt.createNS,resolve:Vt.resolve,explode:Vt.explode,_addCacheSuffix:Vt._addCacheSuffix,isOpera:le.opera,isWebKit:le.webkit,isIE:le.ie,isGecko:le.gecko,isMac:le.mac},hk=fk=Vt.extend(fk,mk);!function(e){window.tinymce=e,window.tinyMCE=e}(hk),function(t){try{e.exports=t}catch(e){}}(hk)}(window)}).call(t,n("DuR2"))},"5j66":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},"5vPg":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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 i="";if(t)switch(n){case"s":i="काही सेकंद";break;case"ss":i="%d सेकंद";break;case"m":i="एक मिनिट";break;case"mm":i="%d मिनिटे";break;case"h":i="एक तास";break;case"hh":i="%d तास";break;case"d":i="एक दिवस";break;case"dd":i="%d दिवस";break;case"M":i="एक महिना";break;case"MM":i="%d महिने";break;case"y":i="एक वर्ष";break;case"yy":i="%d वर्षे"}else switch(n){case"s":i="काही सेकंदां";break;case"ss":i="%d सेकंदां";break;case"m":i="एका मिनिटा";break;case"mm":i="%d मिनिटां";break;case"h":i="एका तासा";break;case"hh":i="%d तासां";break;case"d":i="एका दिवसा";break;case"dd":i="%d दिवसां";break;case"M":i="एका महिन्या";break;case"MM":i="%d महिन्यां";break;case"y":i="एका वर्षा";break;case"yy":i="%d वर्षां"}return i.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("PJh5"))},"5zde":function(e,t,n){n("zQR9"),n("qyJz"),e.exports=n("FeBl").Array.from},"6cf8":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},"6gwF":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAsCAYAAAATmipGAAAAAXNSR0IArs4c6QAACHxJREFUWAnNWFGMlNUVvvf+M7ssoISKWHYtIUYlSuKDNo1KE2kj6dpIjDSYEDVBG+2DrTHGlC2iTiAVSO1iDC9QjJLoiy8+YNi2qChZBU30RX1SUwS7lEXRWY24O7v/9fvOuef/Z3amD33Z6d2d/557znfO+c69/3//O+PcrHb/3li9eee5RbPUXR96Y7B622erXO6HXXC/gLIagv+XD2H7m1sGnjNMN3shev32satcY+qY936RhyYLwbEHWZdl4dHXhvqf7CZJ5laiW0+MuOAHjZz0uJAoyOeVrOcnhzdfPNZMdv3es8umG/GKEH2gvlKpFGYTRZMupQysOqRe3Up7RfQhxPrKgeqHv/upbxDhbxg+1Zefm/kG6bJAhjKTIZHErGKMGb7/1aH+v2lI5wb/emaP9/EBFkIfKYwywfSXIm1VdOxhMxyKV1lwpb7MnyYp+JM91ertfxn074d8Yn4VwTMXHf85g7hSYoce4+hdnyqc+9Xw6TtgeECS6YIkn+SfdDqSiBItMpY1yEaWKskJs6AlfwLmcfn0zPQLHIV3ahdNAPoJCUkDGjXCS4OxDz6+p0bY8nCTyZGhCaWC/iJQ1FgWR82qE4eELbjTz8zMSweGJi6PV/3pULxY7i/M2a4yC1HaEoHRw38ceMt0ucsXmMxekwFZZC2t4o+hJiYBZDIclfiwWClY3ISdeZCrar1bIESPb1+xH3fF4yhgilYLhrvs6LwFYX3CS0eH5sSaD1c4cwLYzJ9jJpOEGJCQ4gWUZPqp1lZAiENFrZEVohi7Y9uWbwdwA610xP/LRx4duGnkwWVnaS9bKBKbToJhporJksQkrMmYUAYEYmCFqL/5kR4dSJcgtdIXz+FkQZRqACYIICa6DPdup5YXSgmMkRBhn4QWIlBqThafCLCnXgzUW0jajTA5AOD9508O+tMtRAUuToxQErIw7Nu0ElsCpsTN6CaZOE2tSptujLQwJtY4AiAF7ycqwf2WY9lnxdByoVN7DYRgu92PF9cbIkOQPktoDEOWdDComckzx9dClmJyu6WIWNijJUTCcl9OiizU52fZ6I5fe7n12omyElbWPncS8e+PLB2FwM+ctkS/KSerLW+aJkN3xXaiwkemtbvMZmVvJ8pbqniOZ6G7OGwlioeCHG3b6SKvttS8I6WtqY0vnHLnee78A8+jeDI/CNXKxiNDyz5KkKK7ZfeZ1TjpPIYT1JUep2scu+S25krwoeWTzyebT73oIPuMTzQ/1OOdxxlJGJx51V9VsAMXQh39IXdRZdvuG/15mJxbUxtbMplPv+F8XEUQnyUJmvkGxr95fWjgoLG85Zkvr3bTjfexefcSI1j6NPmZrsXejIWsZJr8W+wpvxB2Lwzf2nO3LP35mald0eWryLrYfOGIPbmK8QGQu9CIxkbjLuh7ibNbRHwwFn/Z2ohObySZChnKDAoIOvGGD5vmTP5JRxytMfqNw2/HvrDhpYhFcXdSS4MeEDQAmUKzeOr85DoI2mLspyDnAclqPsk/6VIaIlPCFJPOLCrNIIeSE2bJBn3RmB9n5fG6uySc/Hh8SY4ZAlrtYmM5Gow9/i4tnNPbhWOZUUI5oL8IKTFVJM1kYoYsDX3CJpP6mZl5iSMPwal/OL5l6TgU35ZZNFzCyqDiwqemxXnUROk1GYIVWUuzpiBhNCHA2ylpqcRHpsEqVHZqoAs+bI3cRdzvHt804j56WSUWTMbejfUv/fEr6oKbHILiWLn6yBXVcwLYCn+MmUwSwkhShJT+mlVmzqKhEFspDeenLljh9PTkF2dbfXSva0A4W0bv6i5W1j9/j/+eBLTN+Xl0T22Vn1LSYFCrxXDYnRqC+GduNdjbjs334baRLa0H58Gn/jOEvRJfrflNVYvi08j9kwXy9FPKWAEa0TLquZdCxmFKsZB1z9XVoB9Sqy34OoRDT6+r7tNVZ5TUfl47tSb6eIQTig33wNGtl24yW7d7FtihcRb+i6kDei5U//N5dC5IdcrRPm2cTHuYOnl0SddOVIjI898lSp3Tdlz6Ynvq7OPw2u357vQX6/GE4vQkD7/c0jwVsXLpIXBXYDM9FdQpRvUc0K44s8kOUQ891X/uHvRyemslyvMoXjy6MfMeaG8bhmPft5+Pj8J6bS5JPH5WRQK8Nvj2iWCeR7xKoJRXAsPwbYSqYIEIPWS+3/hioF+e5yBLIGz0h2fAez02pqcfOji96el1lRe1FOMzo87ypjHdrP6beOY+oK7V1wuM4GB48pEikQz/6UMC2gxnI+1RDsFo4o+LjnCNsYLfvZ5BQdxiy4ZKVtBJZ9T1c4lLayFdw4BsLYmFmersFcoimF0Ss4jkWPgLQaVFT4kp+UWUC3x+tHnEDQhRMr7hiRPPItJzGoxk3dqzn/z7o5t3nLmsdIMUvdwuxPGPTXwSIdMxsVibeVBOH/EuiBOpBWl+xWl0uWvwOwTa9Y+f3Izb6l4adBkUEvN4ee5mDtZibJp5PT0RZzNaLJ3EN2aa3AgXBJiQRdE/QcUf8DI/QWgsJIEC3/FA/N4URAuBFCzG/OrRXafXqievJWeZPSRjAvEXgaIysDhqtgLQ0w5smlANYGbmpQN5CA7CjKuHEXduIRIOKJoJidKW8mK1w0rTzfV5FMUe33mr/yr0uYkpzNEkGVoltkwckyxugeKXPc6n4li5+sgV1aeJxExpiWniihnnCtC39NesugIpGnxtpbCbHscjcSdc1Odnj332EtZ/A4938u0wJdWxm+zpvaD/Hw8vOkeHdU9NLMmymYWU3Ty5zhY76BOwtVPnNp0q5lVdnTNpGaS41bWT/dhz38XX5QH5ipsIc0YqPtv02pZlB8yhW708GW/Vlo/N7+29DsT2YY5PYGP5GhyPVFz2y/8HkpycHwDOzhsF8IJm9AAAAABJRU5ErkJggg=="},"7LV+":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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 i(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function a(e,t,n){var r=e+" ";switch(n){case"ss":return r+(i(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return r+(i(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(i(e)?"godziny":"godzin");case"ww":return r+(i(e)?"tygodnie":"tygodni");case"MM":return r+(i(e)?"miesiące":"miesięcy");case"yy":return r+(i(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:a,m:a,mm:a,h:a,hh:a,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:a,M:"miesiąc",MM:a,y:"rok",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n("PJh5"))},"7MHZ":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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],i=/^(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:i,monthsShortRegex:i,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("PJh5"))},"7OnE":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},"7Q8x":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},"7Tis":function(e,t){},"7tms":function(e,t,n){
/*!
 * vue-qrcode v1.0.2
 * https://fengyuanchen.github.io/vue-qrcode
 *
 * Copyright 2018-present Chen Fengyuan
 * Released under the MIT license
 *
 * Date: 2020-01-18T06:04:33.222Z
 */var r;r=function(){"use strict";function e(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}var t,n=(function(t,n){t.exports=function t(n,r,i){function a(s,u){if(!r[s]){if(!n[s]){var l=e;if(!u&&l)return l(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var d=r[s]={exports:{}};n[s][0].call(d.exports,function(e){var t=n[s][1][e];return a(t||e)},d,d.exports,t,n,r,i)}return r[s].exports}for(var o=e,s=0;s<i.length;s++)a(i[s]);return a}({1:[function(e,t,n){t.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},{}],2:[function(e,t,n){var r=e("./utils").getSymbolSize;n.getRowColCoords=function(e){if(1===e)return[];for(var t=Math.floor(e/7)+2,n=r(e),i=145===n?26:2*Math.ceil((n-13)/(2*t-2)),a=[n-7],o=1;o<t-1;o++)a[o]=a[o-1]-i;return a.push(6),a.reverse()},n.getPositions=function(e){for(var t=[],r=n.getRowColCoords(e),i=r.length,a=0;a<i;a++)for(var o=0;o<i;o++)0===a&&0===o||0===a&&o===i-1||a===i-1&&0===o||t.push([r[a],r[o]]);return t}},{"./utils":21}],3:[function(e,t,n){var r=e("./mode"),i=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function a(e){this.mode=r.ALPHANUMERIC,this.data=e}a.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){var t;for(t=0;t+2<=this.data.length;t+=2){var n=45*i.indexOf(this.data[t]);n+=i.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(i.indexOf(this.data[t]),6)},t.exports=a},{"./mode":14}],4:[function(e,t,n){function r(){this.buffer=[],this.length=0}r.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t.exports=r},{}],5:[function(e,t,n){var r=e("../utils/buffer");function i(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=r.alloc(e*e),this.reservedBit=r.alloc(e*e)}i.prototype.set=function(e,t,n,r){var i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},i.prototype.get=function(e,t){return this.data[e*this.size+t]},i.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},i.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},t.exports=i},{"../utils/buffer":28}],6:[function(e,t,n){var r=e("../utils/buffer"),i=e("./mode");function a(e){this.mode=i.BYTE,this.data=r.from(e)}a.getBitsLength=function(e){return 8*e},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){for(var t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},t.exports=a},{"../utils/buffer":28,"./mode":14}],7:[function(e,t,n){var r=e("./error-correction-level"),i=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],a=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];n.getBlocksCount=function(e,t){switch(t){case r.L:return i[4*(e-1)+0];case r.M:return i[4*(e-1)+1];case r.Q:return i[4*(e-1)+2];case r.H:return i[4*(e-1)+3];default:return}},n.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return a[4*(e-1)+0];case r.M:return a[4*(e-1)+1];case r.Q:return a[4*(e-1)+2];case r.H:return a[4*(e-1)+3];default:return}}},{"./error-correction-level":8}],8:[function(e,t,n){n.L={bit:1},n.M={bit:0},n.Q={bit:3},n.H={bit:2},n.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},n.from=function(e,t){if(n.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return n.L;case"m":case"medium":return n.M;case"q":case"quartile":return n.Q;case"h":case"high":return n.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return t}}},{}],9:[function(e,t,n){var r=e("./utils").getSymbolSize;n.getPositions=function(e){var t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},{"./utils":21}],10:[function(e,t,n){var r=e("./utils"),i=r.getBCHDigit(1335);n.getEncodedBits=function(e,t){for(var n=e.bit<<3|t,a=n<<10;r.getBCHDigit(a)-i>=0;)a^=1335<<r.getBCHDigit(a)-i;return 21522^(n<<10|a)}},{"./utils":21}],11:[function(e,t,n){var r=e("../utils/buffer"),i=r.alloc(512),a=r.alloc(256);!function(){for(var e=1,t=0;t<255;t++)i[t]=e,a[e]=t,256&(e<<=1)&&(e^=285);for(t=255;t<512;t++)i[t]=i[t-255]}(),n.log=function(e){if(e<1)throw new Error("log("+e+")");return a[e]},n.exp=function(e){return i[e]},n.mul=function(e,t){return 0===e||0===t?0:i[a[e]+a[t]]}},{"../utils/buffer":28}],12:[function(e,t,n){var r=e("./mode"),i=e("./utils");function a(e){this.mode=r.KANJI,this.data=e}a.getBitsLength=function(e){return 13*e},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){var t;for(t=0;t<this.data.length;t++){var n=i.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},t.exports=a},{"./mode":14,"./utils":21}],13:[function(e,t,n){n.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var r={N1:3,N2:3,N3:40,N4:10};function i(e,t,r){switch(e){case n.Patterns.PATTERN000:return(t+r)%2==0;case n.Patterns.PATTERN001:return t%2==0;case n.Patterns.PATTERN010:return r%3==0;case n.Patterns.PATTERN011:return(t+r)%3==0;case n.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case n.Patterns.PATTERN101:return t*r%2+t*r%3==0;case n.Patterns.PATTERN110:return(t*r%2+t*r%3)%2==0;case n.Patterns.PATTERN111:return(t*r%3+(t+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}n.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},n.from=function(e){return n.isValid(e)?parseInt(e,10):void 0},n.getPenaltyN1=function(e){for(var t=e.size,n=0,i=0,a=0,o=null,s=null,u=0;u<t;u++){i=a=0,o=s=null;for(var l=0;l<t;l++){var c=e.get(u,l);c===o?i++:(i>=5&&(n+=r.N1+(i-5)),o=c,i=1),(c=e.get(l,u))===s?a++:(a>=5&&(n+=r.N1+(a-5)),s=c,a=1)}i>=5&&(n+=r.N1+(i-5)),a>=5&&(n+=r.N1+(a-5))}return n},n.getPenaltyN2=function(e){for(var t=e.size,n=0,i=0;i<t-1;i++)for(var a=0;a<t-1;a++){var o=e.get(i,a)+e.get(i,a+1)+e.get(i+1,a)+e.get(i+1,a+1);4!==o&&0!==o||n++}return n*r.N2},n.getPenaltyN3=function(e){for(var t=e.size,n=0,i=0,a=0,o=0;o<t;o++){i=a=0;for(var s=0;s<t;s++)i=i<<1&2047|e.get(o,s),s>=10&&(1488===i||93===i)&&n++,a=a<<1&2047|e.get(s,o),s>=10&&(1488===a||93===a)&&n++}return n*r.N3},n.getPenaltyN4=function(e){for(var t=0,n=e.data.length,i=0;i<n;i++)t+=e.data[i];var a=Math.abs(Math.ceil(100*t/n/5)-10);return a*r.N4},n.applyMask=function(e,t){for(var n=t.size,r=0;r<n;r++)for(var a=0;a<n;a++)t.isReserved(a,r)||t.xor(a,r,i(e,a,r))},n.getBestMask=function(e,t){for(var r=Object.keys(n.Patterns).length,i=0,a=1/0,o=0;o<r;o++){t(o),n.applyMask(o,e);var s=n.getPenaltyN1(e)+n.getPenaltyN2(e)+n.getPenaltyN3(e)+n.getPenaltyN4(e);n.applyMask(o,e),s<a&&(a=s,i=o)}return i}},{}],14:[function(e,t,n){var r=e("./version-check"),i=e("./regex");n.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},n.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},n.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},n.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},n.MIXED={bit:-1},n.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},n.getBestModeForData=function(e){return i.testNumeric(e)?n.NUMERIC:i.testAlphanumeric(e)?n.ALPHANUMERIC:i.testKanji(e)?n.KANJI:n.BYTE},n.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},n.isValid=function(e){return e&&e.bit&&e.ccBits},n.from=function(e,t){if(n.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return n.NUMERIC;case"alphanumeric":return n.ALPHANUMERIC;case"kanji":return n.KANJI;case"byte":return n.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return t}}},{"./regex":19,"./version-check":22}],15:[function(e,t,n){var r=e("./mode");function i(e){this.mode=r.NUMERIC,this.data=e.toString()}i.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){var t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);var i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*i+1))},t.exports=i},{"./mode":14}],16:[function(e,t,n){var r=e("../utils/buffer"),i=e("./galois-field");n.mul=function(e,t){for(var n=r.alloc(e.length+t.length-1),a=0;a<e.length;a++)for(var o=0;o<t.length;o++)n[a+o]^=i.mul(e[a],t[o]);return n},n.mod=function(e,t){for(var n=r.from(e);n.length-t.length>=0;){for(var a=n[0],o=0;o<t.length;o++)n[o]^=i.mul(t[o],a);for(var s=0;s<n.length&&0===n[s];)s++;n=n.slice(s)}return n},n.generateECPolynomial=function(e){for(var t=r.from([1]),a=0;a<e;a++)t=n.mul(t,[1,i.exp(a)]);return t}},{"../utils/buffer":28,"./galois-field":11}],17:[function(e,t,n){var r=e("../utils/buffer"),i=e("./utils"),a=e("./error-correction-level"),o=e("./bit-buffer"),s=e("./bit-matrix"),u=e("./alignment-pattern"),l=e("./finder-pattern"),c=e("./mask-pattern"),d=e("./error-correction-code"),f=e("./reed-solomon-encoder"),m=e("./version"),h=e("./format-info"),p=e("./mode"),g=e("./segments"),_=e("isarray");function v(e,t,n){var r,i,a=e.size,o=h.getEncodedBits(t,n);for(r=0;r<15;r++)i=1==(o>>r&1),r<6?e.set(r,8,i,!0):r<8?e.set(r+1,8,i,!0):e.set(a-15+r,8,i,!0),r<8?e.set(8,a-r-1,i,!0):r<9?e.set(8,15-r-1+1,i,!0):e.set(8,15-r-1,i,!0);e.set(a-8,8,1,!0)}function y(e,t,n){var a=new o;n.forEach(function(t){a.put(t.mode.bit,4),a.put(t.getLength(),p.getCharCountIndicator(t.mode,e)),t.write(a)});var s=i.getSymbolTotalCodewords(e),u=d.getTotalCodewordsCount(e,t),l=8*(s-u);for(a.getLengthInBits()+4<=l&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(0);for(var c=(l-a.getLengthInBits())/8,m=0;m<c;m++)a.put(m%2?17:236,8);return function(e,t,n){for(var a=i.getSymbolTotalCodewords(t),o=d.getTotalCodewordsCount(t,n),s=a-o,u=d.getBlocksCount(t,n),l=u-a%u,c=Math.floor(a/u),m=Math.floor(s/u),h=m+1,p=c-m,g=new f(p),_=0,v=new Array(u),y=new Array(u),b=0,w=r.from(e.buffer),M=0;M<u;M++){var k=M<l?m:h;v[M]=w.slice(_,_+k),y[M]=g.encode(v[M]),_+=k,b=Math.max(b,k)}var L,D,x=r.alloc(a),A=0;for(L=0;L<b;L++)for(D=0;D<u;D++)L<v[D].length&&(x[A++]=v[D][L]);for(L=0;L<p;L++)for(D=0;D<u;D++)x[A++]=y[D][L];return x}(a,e,t)}function b(e,t,n,r){var a;if(_(e))a=g.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");var o=t;if(!o){var d=g.rawSplit(e);o=m.getBestVersionForData(d,n)}a=g.fromString(e,o||40)}var f=m.getBestVersionForData(a,n);if(!f)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<f)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+f+".\n")}else t=f;var h=y(t,n,a),p=i.getSymbolSize(t),b=new s(p);return function(e,t){for(var n=e.size,r=l.getPositions(t),i=0;i<r.length;i++)for(var a=r[i][0],o=r[i][1],s=-1;s<=7;s++)if(!(a+s<=-1||n<=a+s))for(var u=-1;u<=7;u++)o+u<=-1||n<=o+u||(s>=0&&s<=6&&(0===u||6===u)||u>=0&&u<=6&&(0===s||6===s)||s>=2&&s<=4&&u>=2&&u<=4?e.set(a+s,o+u,!0,!0):e.set(a+s,o+u,!1,!0))}(b,t),function(e){for(var t=e.size,n=8;n<t-8;n++){var r=n%2==0;e.set(n,6,r,!0),e.set(6,n,r,!0)}}(b),function(e,t){for(var n=u.getPositions(t),r=0;r<n.length;r++)for(var i=n[r][0],a=n[r][1],o=-2;o<=2;o++)for(var s=-2;s<=2;s++)-2===o||2===o||-2===s||2===s||0===o&&0===s?e.set(i+o,a+s,!0,!0):e.set(i+o,a+s,!1,!0)}(b,t),v(b,n,0),t>=7&&function(e,t){for(var n,r,i,a=e.size,o=m.getEncodedBits(t),s=0;s<18;s++)n=Math.floor(s/3),r=s%3+a-8-3,i=1==(o>>s&1),e.set(n,r,i,!0),e.set(r,n,i,!0)}(b,t),function(e,t){for(var n=e.size,r=-1,i=n-1,a=7,o=0,s=n-1;s>0;s-=2)for(6===s&&s--;;){for(var u=0;u<2;u++)if(!e.isReserved(i,s-u)){var l=!1;o<t.length&&(l=1==(t[o]>>>a&1)),e.set(i,s-u,l),-1==--a&&(o++,a=7)}if((i+=r)<0||n<=i){i-=r,r=-r;break}}}(b,h),isNaN(r)&&(r=c.getBestMask(b,v.bind(null,b,n))),c.applyMask(r,b),v(b,n,r),{modules:b,version:t,errorCorrectionLevel:n,maskPattern:r,segments:a}}n.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");var n,r,o=a.M;return void 0!==t&&(o=a.from(t.errorCorrectionLevel,a.M),n=m.from(t.version),r=c.from(t.maskPattern),t.toSJISFunc&&i.setToSJISFunction(t.toSJISFunc)),b(e,n,o,r)}},{"../utils/buffer":28,"./alignment-pattern":2,"./bit-buffer":4,"./bit-matrix":5,"./error-correction-code":7,"./error-correction-level":8,"./finder-pattern":9,"./format-info":10,"./mask-pattern":13,"./mode":14,"./reed-solomon-encoder":18,"./segments":20,"./utils":21,"./version":23,isarray:33}],18:[function(e,t,n){var r=e("../utils/buffer"),i=e("./polynomial"),a=e("buffer").Buffer;function o(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}o.prototype.initialize=function(e){this.degree=e,this.genPoly=i.generateECPolynomial(this.degree)},o.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");var t=r.alloc(this.degree),n=a.concat([e,t],e.length+this.degree),o=i.mod(n,this.genPoly),s=this.degree-o.length;if(s>0){var u=r.alloc(this.degree);return o.copy(u,s),u}return o},t.exports=o},{"../utils/buffer":28,"./polynomial":16,buffer:30}],19:[function(e,t,n){var r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",i="(?:(?![A-Z0-9 $%*+\\-./:]|"+(r=r.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";n.KANJI=new RegExp(r,"g"),n.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),n.BYTE=new RegExp(i,"g"),n.NUMERIC=new RegExp("[0-9]+","g"),n.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var a=new RegExp("^"+r+"$"),o=new RegExp("^[0-9]+$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");n.testKanji=function(e){return a.test(e)},n.testNumeric=function(e){return o.test(e)},n.testAlphanumeric=function(e){return s.test(e)}},{}],20:[function(e,t,n){var r=e("./mode"),i=e("./numeric-data"),a=e("./alphanumeric-data"),o=e("./byte-data"),s=e("./kanji-data"),u=e("./regex"),l=e("./utils"),c=e("dijkstrajs");function d(e){return unescape(encodeURIComponent(e)).length}function f(e,t,n){for(var r,i=[];null!==(r=e.exec(n));)i.push({data:r[0],index:r.index,mode:t,length:r[0].length});return i}function m(e){var t,n,i=f(u.NUMERIC,r.NUMERIC,e),a=f(u.ALPHANUMERIC,r.ALPHANUMERIC,e);l.isKanjiModeEnabled()?(t=f(u.BYTE,r.BYTE,e),n=f(u.KANJI,r.KANJI,e)):(t=f(u.BYTE_KANJI,r.BYTE,e),n=[]);var o=i.concat(a,t,n);return o.sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function h(e,t){switch(t){case r.NUMERIC:return i.getBitsLength(e);case r.ALPHANUMERIC:return a.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return o.getBitsLength(e)}}function p(e,t){var n,u=r.getBestModeForData(e);if((n=r.from(t,u))!==r.BYTE&&n.bit<u.bit)throw new Error('"'+e+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(u));switch(n!==r.KANJI||l.isKanjiModeEnabled()||(n=r.BYTE),n){case r.NUMERIC:return new i(e);case r.ALPHANUMERIC:return new a(e);case r.KANJI:return new s(e);case r.BYTE:return new o(e)}}n.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(p(t,null)):t.data&&e.push(p(t.data,t.mode)),e},[])},n.fromString=function(e,t){for(var i=m(e,l.isKanjiModeEnabled()),a=function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];switch(i.mode){case r.NUMERIC:t.push([i,{data:i.data,mode:r.ALPHANUMERIC,length:i.length},{data:i.data,mode:r.BYTE,length:i.length}]);break;case r.ALPHANUMERIC:t.push([i,{data:i.data,mode:r.BYTE,length:i.length}]);break;case r.KANJI:t.push([i,{data:i.data,mode:r.BYTE,length:d(i.data)}]);break;case r.BYTE:t.push([{data:i.data,mode:r.BYTE,length:d(i.data)}])}}return t}(i),o=function(e,t){for(var n={},i={start:{}},a=["start"],o=0;o<e.length;o++){for(var s=e[o],u=[],l=0;l<s.length;l++){var c=s[l],d=""+o+l;u.push(d),n[d]={node:c,lastCount:0},i[d]={};for(var f=0;f<a.length;f++){var m=a[f];n[m]&&n[m].node.mode===c.mode?(i[m][d]=h(n[m].lastCount+c.length,c.mode)-h(n[m].lastCount,c.mode),n[m].lastCount+=c.length):(n[m]&&(n[m].lastCount=c.length),i[m][d]=h(c.length,c.mode)+4+r.getCharCountIndicator(c.mode,t))}}a=u}for(f=0;f<a.length;f++)i[a[f]].end=0;return{map:i,table:n}}(a,t),s=c.find_path(o.map,"start","end"),u=[],f=1;f<s.length-1;f++)u.push(o.table[s[f]].node);return n.fromArray(function(e){return e.reduce(function(e,t){var n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}(u))},n.rawSplit=function(e){return n.fromArray(m(e,l.isKanjiModeEnabled()))}},{"./alphanumeric-data":3,"./byte-data":6,"./kanji-data":12,"./mode":14,"./numeric-data":15,"./regex":19,"./utils":21,dijkstrajs:31}],21:[function(e,t,n){var r,i=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];n.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},n.getSymbolTotalCodewords=function(e){return i[e]},n.getBCHDigit=function(e){for(var t=0;0!==e;)t++,e>>>=1;return t},n.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');r=e},n.isKanjiModeEnabled=function(){return void 0!==r},n.toSJIS=function(e){return r(e)}},{}],22:[function(e,t,n){n.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},{}],23:[function(e,t,n){var r=e("./utils"),i=e("./error-correction-code"),a=e("./error-correction-level"),o=e("./mode"),s=e("./version-check"),u=e("isarray"),l=r.getBCHDigit(7973);function c(e,t){return o.getCharCountIndicator(e,t)+4}function d(e,t){var n=0;return e.forEach(function(e){var r=c(e.mode,t);n+=r+e.getBitsLength()}),n}n.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},n.getCapacity=function(e,t,n){if(!s.isValid(e))throw new Error("Invalid QR Code version");void 0===n&&(n=o.BYTE);var a=r.getSymbolTotalCodewords(e),u=i.getTotalCodewordsCount(e,t),l=8*(a-u);if(n===o.MIXED)return l;var d=l-c(n,e);switch(n){case o.NUMERIC:return Math.floor(d/10*3);case o.ALPHANUMERIC:return Math.floor(d/11*2);case o.KANJI:return Math.floor(d/13);case o.BYTE:default:return Math.floor(d/8)}},n.getBestVersionForData=function(e,t){var r,i=a.from(t,a.M);if(u(e)){if(e.length>1)return function(e,t){for(var r=1;r<=40;r++){var i=d(e,r);if(i<=n.getCapacity(r,t,o.MIXED))return r}}(e,i);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,t,r){for(var i=1;i<=40;i++)if(t<=n.getCapacity(i,r,e))return i}(r.mode,r.getLength(),i)},n.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");for(var t=e<<12;r.getBCHDigit(t)-l>=0;)t^=7973<<r.getBCHDigit(t)-l;return e<<12|t}},{"./error-correction-code":7,"./error-correction-level":8,"./mode":14,"./utils":21,"./version-check":22,isarray:33}],24:[function(e,t,n){var r=e("./can-promise"),i=e("./core/qrcode"),a=e("./renderer/canvas"),o=e("./renderer/svg-tag.js");function s(e,t,n,a,o){var s=[].slice.call(arguments,1),u=s.length,l="function"==typeof s[u-1];if(!l&&!r())throw new Error("Callback required as last argument");if(!l){if(u<1)throw new Error("Too few arguments provided");return 1===u?(n=t,t=a=void 0):2!==u||t.getContext||(a=n,n=t,t=void 0),new Promise(function(r,o){try{var s=i.create(n,a);r(e(s,t,a))}catch(e){o(e)}})}if(u<2)throw new Error("Too few arguments provided");2===u?(o=n,n=t,t=a=void 0):3===u&&(t.getContext&&void 0===o?(o=a,a=void 0):(o=a,a=n,n=t,t=void 0));try{var c=i.create(n,a);o(null,e(c,t,a))}catch(e){o(e)}}n.create=i.create,n.toCanvas=s.bind(null,a.render),n.toDataURL=s.bind(null,a.renderToDataURL),n.toString=s.bind(null,function(e,t,n){return o.render(e,n)})},{"./can-promise":1,"./core/qrcode":17,"./renderer/canvas":25,"./renderer/svg-tag.js":26}],25:[function(e,t,n){var r=e("./utils");n.render=function(e,t,n){var i=n,a=t;void 0!==i||t&&t.getContext||(i=t,t=void 0),t||(a=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),i=r.getOptions(i);var o=r.getImageWidth(e.modules.size,i),s=a.getContext("2d"),u=s.createImageData(o,o);return r.qrToImageData(u.data,e,i),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(s,a,o),s.putImageData(u,0,0),a},n.renderToDataURL=function(e,t,r){var i=r;void 0!==i||t&&t.getContext||(i=t,t=void 0),i||(i={});var a=n.render(e,t,i),o=i.type||"image/png",s=i.rendererOpts||{};return a.toDataURL(o,s.quality)}},{"./utils":27}],26:[function(e,t,n){var r=e("./utils");function i(e,t){var n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function a(e,t,n){var r=e+t;return void 0!==n&&(r+=" "+n),r}n.render=function(e,t,n){var o=r.getOptions(t),s=e.modules.size,u=e.modules.data,l=s+2*o.margin,c=o.color.light.a?"<path "+i(o.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",d="<path "+i(o.color.dark,"stroke")+' d="'+function(e,t,n){for(var r="",i=0,o=!1,s=0,u=0;u<e.length;u++){var l=Math.floor(u%t),c=Math.floor(u/t);l||o||(o=!0),e[u]?(s++,u>0&&l>0&&e[u-1]||(r+=o?a("M",l+n,.5+c+n):a("m",i,0),i=0,o=!1),l+1<t&&e[u+1]||(r+=a("h",s),s=0)):i++}return r}(u,s,o.margin)+'"/>',f='viewBox="0 0 '+l+" "+l+'"',m=o.width?'width="'+o.width+'" height="'+o.width+'" ':"",h='<svg xmlns="http://www.w3.org/2000/svg" '+m+f+' shape-rendering="crispEdges">'+c+d+"</svg>\n";return"function"==typeof n&&n(null,h),h}},{"./utils":27}],27:[function(e,t,n){function r(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");var t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");var n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}n.getOptions=function(e){e||(e={}),e.color||(e.color={});var t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:n,scale:n?4:i,margin:t,color:{dark:r(e.color.dark||"#000000ff"),light:r(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},n.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},n.getImageWidth=function(e,t){var r=n.getScale(e,t);return Math.floor((e+2*t.margin)*r)},n.qrToImageData=function(e,t,r){for(var i=t.modules.size,a=t.modules.data,o=n.getScale(i,r),s=Math.floor((i+2*r.margin)*o),u=r.margin*o,l=[r.color.light,r.color.dark],c=0;c<s;c++)for(var d=0;d<s;d++){var f=4*(c*s+d),m=r.color.light;if(c>=u&&d>=u&&c<s-u&&d<s-u){var h=Math.floor((c-u)/o),p=Math.floor((d-u)/o);m=l[a[h*i+p]?1:0]}e[f++]=m.r,e[f++]=m.g,e[f++]=m.b,e[f]=m.a}}},{}],28:[function(e,t,n){var r=e("isarray");a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}();var i=a.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function a(e,t,n){return a.TYPED_ARRAY_SUPPORT||this instanceof a?"number"==typeof e?u(this,e):function(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(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");var i;return i=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),a.TYPED_ARRAY_SUPPORT?i.__proto__=a.prototype:i=l(e,i),i}(e,t,n,r):"string"==typeof t?function(e,t){var n=0|d(t),r=s(e,n),i=r.write(t);return i!==n&&(r=r.slice(0,i)),r}(e,t):function(e,t){if(a.isBuffer(t)){var n=0|o(t.length),r=s(e,n);return 0===r.length?r:(t.copy(r,0,0,n),r)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(i=t.length)!=i?s(e,0):l(e,t);if("Buffer"===t.type&&Array.isArray(t.data))return l(e,t.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}(this,e,t,n):new a(e,t,n)}function o(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function s(e,t){var n;return a.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(t)).__proto__=a.prototype:(null===(n=e)&&(n=new a(t)),n.length=t),n}function u(e,t){var n=s(e,t<0?0:0|o(t));if(!a.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)n[r]=0;return n}function l(e,t){for(var n=t.length<0?0:0|o(t.length),r=s(e,n),i=0;i<n;i+=1)r[i]=255&t[i];return r}function c(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.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;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function d(e){if(a.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 t=e.length;return 0===t?0:c(e).length}a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),a.prototype.write=function(e,t,n){void 0===t?(n=this.length,t=0):void 0===n&&"string"==typeof t?(n=this.length,t=0):isFinite(t)&&(t|=0,isFinite(n)?n|=0:n=void 0);var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(e,t,n,r){return function(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}(c(t,e.length-n),e,n,r)}(this,e,t,n)},a.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),a.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=a.prototype;else{var i=t-e;n=new a(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},a.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 i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!a.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},a.prototype.fill=function(e,t,n){if("string"==typeof e){if("string"==typeof t?(t=0,n=this.length):"string"==typeof n&&(n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=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=a.isBuffer(e)?e:new a(e),s=o.length;for(i=0;i<n-t;++i)this[i+t]=o[i%s]}return this},a.concat=function(e,t){if(!r(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s(null,0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=u(null,t),o=0;for(n=0;n<e.length;++n){var l=e[n];if(!a.isBuffer(l))throw new TypeError('"list" argument must be an Array of Buffers');l.copy(i,o),o+=l.length}return i},a.byteLength=d,a.prototype._isBuffer=!0,a.isBuffer=function(e){return!(null==e||!e._isBuffer)},t.exports.alloc=function(e){var t=new a(e);return t.fill(0),t},t.exports.from=function(e){return new a(e)}},{isarray:33}],29:[function(e,t,n){n.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},n.toByteArray=function(e){var t,n,r=l(e),o=r[0],s=r[1],u=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,s)),c=0,d=s>0?o-4:o;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},n.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=0,s=n-i;o<s;o+=16383)a.push(c(e,o,o+16383>s?s:o+16383));return 1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),a.join("")};for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=o.length;s<u;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function l(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("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e,t,n){for(var i,a,o=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(r[(a=i)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],30:[function(e,t,n){var r=e("base64-js"),i=e("ieee754"),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=u,n.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},n.INSPECT_MAX_BYTES=50;var o=2147483647;function s(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|h(e,t),r=s(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return f(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(j(e,ArrayBuffer)||e&&j(e.buffer,ArrayBuffer))return function(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,u.prototype),r}(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return u.from(r,t,n);var i=function(e){if(u.isBuffer(e)){var t=0|m(e.length),n=s(t);return 0===n.length?n:(e.copy(n,0,0,t),n)}return void 0!==e.length?"number"!=typeof e.length||B(e.length)?s(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return c(e),s(e<0?0:0|m(e))}function f(e){for(var t=e.length<0?0:0|m(e.length),n=s(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function m(e){if(e>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function h(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||j(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":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(i)return r?-1:F(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),B(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:_(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function _(e,t,n,r,i){var a,o=1,s=e.length,u=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,u/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=n;a<s;a++)if(l(e,a)===l(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===u)return c*o}else-1!==c&&(a-=a-c),c=-1}else for(n+u>s&&(n=s-u),a=n;a>=0;a--){for(var d=!0,f=0;f<u;f++)if(l(e,a+f)!==l(t,f)){d=!1;break}if(d)return a}return-1}function v(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(B(s))return o;e[n+o]=s}return o}function y(e,t,n,r){return H(F(t,e.length-n),e,n,r)}function b(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 w(e,t,n,r){return b(e,t,n,r)}function M(e,t,n,r){return H(R(t),e,n,r)}function k(e,t,n,r){return H(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function L(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function D(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,u,l=e[i],c=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=n)switch(d){case 1:l<128&&(c=l);break;case 2:128==(192&(a=e[i+1]))&&(u=(31&l)<<6|63&a)>127&&(c=u);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(u=(15&l)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(u=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=x));return n}(r)}n.kMaxLength=o,u.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),u.poolSize=8192,u.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,n){return function(e,t,n){return c(e),e<=0?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},u.allocUnsafe=function(e){return d(e)},u.allocUnsafeSlow=function(e){return d(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(j(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),j(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.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}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(j(a,Uint8Array)&&(a=u.from(a)),!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=h,u.prototype._isBuffer=!0,u.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)p(this,t,t+1);return this},u.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)p(this,t,t+3),p(this,t+1,t+2);return this},u.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)p(this,t,t+7),p(this,t+1,t+6),p(this,t+2,t+5),p(this,t+3,t+4);return this},u.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?D(this,0,e):function(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 D(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return C(this,t,n);case"base64":return L(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},a&&(u.prototype[a]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,i){if(j(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,s=Math.min(a,o),l=this.slice(r,i),c=e.slice(t,n),d=0;d<s;++d)if(l[d]!==c[d]){a=l[d],o=c[d];break}return a<o?-1:o<a?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},u.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 i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return y(this,e,t,n);case"ascii":return b(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return M(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function A(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function C(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);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 i="",a=t;a<n;++a)i+=W[e[a]];return i}function S(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function Y(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 N(e,t,n,r,i,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function E(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function P(e,t,n,r,a){return t=+t,n>>>=0,a||E(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function I(e,t,n,r,a){return t=+t,n>>>=0,a||E(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,u.prototype),r},u.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||Y(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},u.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||Y(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return e>>>=0,t||Y(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||Y(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||Y(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||Y(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||Y(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||Y(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||Y(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return e>>>=0,t||Y(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||Y(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||Y(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||Y(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||Y(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return e>>>=0,t||Y(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||Y(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||Y(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||Y(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;N(this,e,t,n,i,0)}var a=1,o=0;for(this[t]=255&e;++o<n&&(a*=256);)this[t+o]=e/a&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;N(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);N(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);N(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeFloatLE=function(e,t,n){return P(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return P(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return I(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return I(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");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("Index out of range");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 i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var a=i-1;a>=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},u.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),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=u.isBuffer(e)?e:u.from(e,r),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var O=/[^+/0-9A-Za-z-_]/g;function F(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.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;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function R(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(O,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function j(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function B(e){return e!=e}var W=function(){for(var e=new Array(256),t=0;t<16;++t)for(var n=16*t,r=0;r<16;++r)e[n+r]="0123456789abcdef"[t]+"0123456789abcdef"[r];return e}()},{"base64-js":29,ieee754:32}],31:[function(e,t,n){var r={single_source_shortest_paths:function(e,t,n){var i={},a={};a[t]=0;var o,s,u,l,c,d,f,m,h=r.PriorityQueue.make();for(h.push(t,0);!h.empty();)for(u in o=h.pop(),s=o.value,l=o.cost,c=e[s]||{})c.hasOwnProperty(u)&&(d=c[u],f=l+d,m=a[u],(void 0===a[u]||m>f)&&(a[u]=f,h.push(u,f),i[u]=s));if(void 0!==n&&void 0===a[n]){var p=["Could not find a path from ",t," to ",n,"."].join("");throw new Error(p)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,n){var i=r.single_source_shortest_paths(e,t,n);return r.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(e){var t,n=r.PriorityQueue,i={};for(t in e=e||{},n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i.queue=[],i.sorter=e.sorter||n.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};void 0!==t&&(t.exports=r)},{}],32:[function(e,t,n){n.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,d=n?i-1:0,f=n?-1:1,m=e[t+d];for(d+=f,a=m&(1<<-c)-1,m>>=-c,c+=s;c>0;a=256*a+e[t+d],d+=f,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=256*o+e[t+d],d+=f,c-=8);if(0===a)a=1-l;else{if(a===u)return o?NaN:1/0*(m?-1:1);o+=Math.pow(2,r),a-=l}return(m?-1:1)*o*Math.pow(2,a-r)},n.write=function(e,t,n,r,i,a){var o,s,u,l=8*a-i-1,c=(1<<l)-1,d=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,m=r?0:a-1,h=r?1:-1,p=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=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),(t+=o+d>=1?f/u:f*Math.pow(2,1-d))*u>=2&&(o++,u/=2),o+d>=c?(s=0,o=c):o+d>=1?(s=(t*u-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+m]=255&s,m+=h,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+m]=255&o,m+=h,o/=256,l-=8);e[n+m-h]|=128*p}},{}],33:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}]},{},[24])(24)}(t={exports:{}},t.exports),t.exports);return{name:"qrcode",props:{value:null,options:Object,tag:{type:String,default:"canvas"}},render:function(e){return e(this.tag,this.$slots.default)},watch:{$props:{deep:!0,immediate:!0,handler:function(){this.$el&&this.generate()}}},methods:{generate:function(){var e=this,t=this.options,r=this.tag,i=String(this.value);"canvas"===r?n.toCanvas(this.$el,i,t,function(e){if(e)throw e}):"img"===r?n.toDataURL(i,t,function(t,n){if(t)throw t;e.$el.src=n}):n.toString(i,t,function(t,n){if(t)throw t;e.$el.innerHTML=n})}},mounted:function(){this.generate()}}},e.exports=r()},"8v14":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var i={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?i[n][0]:i[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("PJh5"))},"91wG":function(e,t){},"9DIu":function(e,t){},"9fvS":function(e,t){},A0RE:function(e,t){},ALEw:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},Ab7C:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},AfPn:function(e,t){},AoDM:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},BEem:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},BbgG:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},Bp2f:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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],i=/^(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:i,monthsShortRegex:i,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("PJh5"))},C7av:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},CFqe:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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],i=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("{}",i%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("PJh5"))},CqHt:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},DOkx:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var i={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?i[n][0]:i[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("PJh5"))},DSXN:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},"E67+":function(e,t){e.exports="data:image/png;base64, "},"EP/8":function(e,t){},ETHv:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},"F+2e":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},FKXc:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},FRPF:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},FlzV:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},Fpqq:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t?":a":2===t?":a":":e")},week:{dow:1,doy:4}})})(n("PJh5"))},Frex:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var i={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?i[n][0]:i[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("PJh5"))},FuaP:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},"G++c":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},GPKo:function(e,t){},GrS7:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},Gu7T:function(e,t,n){"use strict";t.__esModule=!0;var r,i=n("c/Tr"),a=(r=i)&&r.__esModule?r:{default:r};t.default=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(0,a.default)(e)}},H7xL:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return i});var r=function(){return"undefined"!=typeof window?window:e},i=function(){var e=r();return e&&e.tinymce?e.tinymce:null}}).call(t,n("DuR2"))},HTGT:function(e,t){},INcR:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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],i=/^(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:i,monthsShortRegex:i,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("PJh5"))},JUaT:function(e,t){},JoZn:function(e,t,n){e.exports=n.p+"static/img/default.e7ba9e1.jpg"},JwiF:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},KOFO:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},L1sD:function(e,t,n){e.exports=n.p+"static/img/style2-1.59a281f.png"},L8UZ:function(e,t){!function(){"use strict";var e,t,n,r,i,a=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),s=tinymce.util.Tools.resolve("tinymce.Env"),u="[-'\\.‘’․﹒＇．]",l="[:··״‧︓﹕：]",c="[±+*/,;;։،؍٬߸⁄︐︔﹐﹔，；]",d="[0-9٠-٩٫۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹]",f="\\r",m="\\n",h="[\v\f\u2028\u2029]",p="[̀-ͯ҃-҉֑-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ऀ-ःऺ-़ा-ॏ॑-ॗॢॣঁ-ঃ়া-ৄেৈো-্ৗৢৣਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑੰੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣஂா-ூெ-ைொ-்ௗఁ-ఃా-ౄె-ైొ-్ౕౖౢౣಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣംഃാ-ൄെ-ൈൊ-്ൗൢൣංඃ්ා-ුූෘ-ෟෲෳัิ-ฺ็-๎ັິ-ູົຼ່-ໍ༹༘༙༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏႚ-ႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳា-៓៝᠋-᠍ᢩᤠ-ᤫᤰ-᤻ᦰ-ᧀᧈᧉᨗ-ᨛᩕ-ᩞ᩠-᩿᩼ᬀ-ᬄ᬴-᭄᭫-᭳ᮀ-ᮂᮡ-᯦᮪-᯳ᰤ-᰷᳐-᳔᳒-᳨᳭ᳲ᷀-ᷦ᷼-᷿‌‍⃐-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꙯-꙲꙼꙽꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣠-꣱ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀ꨩ-ꨶꩃꩌꩍꩻꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꯣ-ꯪ꯬꯭ﬞ︀-️︠-︦ﾞﾟ]",g="[­؀-؃۝܏឴឵‎‏‪-‮⁠-⁤⁪-⁯\ufeff￹-￻]",_="[〱-〵゛゜゠-ヺー-ヿㇰ-ㇿ㋐-㋾㌀-㍗ｦ-ﾝ]",v="[=_‿⁀⁔︳︴﹍-﹏＿∀-⋿<>]",y="[!-#%-*,-\\/:;?@\\[-\\]_{}¡«·»¿;·՚-՟։֊־׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰෴๏๚๛༄-༒༺-༽྅࿐-࿔࿙࿚၊-၏჻፡-፨᐀᙭᙮᚛᚜᛫-᛭᜵᜶។-៖៘-៚᠀-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳓‐-‧‰-⁃⁅-⁑⁓-⁞⁽⁾₍₎〈〉❨-❵⟅⟆⟦-⟯⦃-⦘⧘-⧛⧼⧽⳹-⳼⳾⳿⵰⸀-⸮⸰⸱、-〃〈-】〔-〟〰〽゠・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꯫﴾﴿︐-︙︰-﹒﹔-﹡﹣﹨﹪﹫！-＃％-＊，-／：；？＠［-］＿｛｝｟-･]",b={characterIndices:{ALETTER:0,MIDNUMLET:1,MIDLETTER:2,MIDNUM:3,NUMERIC:4,CR:5,LF:6,NEWLINE:7,EXTEND:8,FORMAT:9,KATAKANA:10,EXTENDNUMLET:11,AT:12,OTHER:13},SETS:[new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-׳ؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆༀཀ-ཇཉ-ཬྈ-ྌႠ-Ⴥა-ჺჼᄀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᨀ-ᨖᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᯀ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⒶ-ⓩⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⴀ-ⴥⴰ-ⵥⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〻〼ㄅ-ㄭㄱ-ㆎㆠ-ㆺꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐꞑꞠ-ꞩꟺ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻﬀ-ﬆﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼＡ-Ｚａ-ｚﾠ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ]"),new RegExp(u),new RegExp(l),new RegExp(c),new RegExp(d),new RegExp(f),new RegExp(m),new RegExp(h),new RegExp(p),new RegExp(g),new RegExp(_),new RegExp(v),new RegExp("@")],EMPTY_STRING:"",PUNCTUATION:new RegExp("^"+y+"$"),WHITESPACE:/^\s+$/},w=function(){},M=function(e){return function(){return e}},k=M(!1),L=M(!0),D=function(){return x},x=(e=function(e){return e.isNone()},r={fold:function(e,t){return e()},is:k,isSome:k,isNone:L,getOr:n=function(e){return e},getOrThunk:t=function(e){return e()},getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:M(null),getOrUndefined:M(void 0),or:n,orThunk:t,map:D,each:w,bind:D,exists:k,forall:L,filter:D,equals:e,equals_:e,toArray:function(){return[]},toString:M("none()")},Object.freeze&&Object.freeze(r),r),A=(i="function",function(e){return function(e){if(null===e)return"null";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t}(e)===i}),C=(Array.prototype.slice,A(Array.from)&&Array.from,b.SETS),T=b.characterIndices.OTHER,S=function(e){var t,n,r=T,i=C.length;for(t=0;t<i;++t)if((n=C[t])&&n.test(e)){r=t;break}return r},Y=function(e){var t,n,r=(t=S,n={},function(e){if(n[e])return n[e];var r=t(e);return n[e]=r,r});return function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var a=e[i];r[i]=t(a,i)}return r}(e.split(""),r)},N=b.characterIndices,E=function(e,t){var n,r,i=e[t],a=e[t+1];return!(t<0||t>e.length-1&&0!==t||i===N.ALETTER&&a===N.ALETTER||(r=e[t+2],i===N.ALETTER&&(a===N.MIDLETTER||a===N.MIDNUMLET||a===N.AT)&&r===N.ALETTER||(n=e[t-1],(i===N.MIDLETTER||i===N.MIDNUMLET||a===N.AT)&&a===N.ALETTER&&n===N.ALETTER||!(i!==N.NUMERIC&&i!==N.ALETTER||a!==N.NUMERIC&&a!==N.ALETTER)||(i===N.MIDNUM||i===N.MIDNUMLET)&&a===N.NUMERIC&&n===N.NUMERIC||i===N.NUMERIC&&(a===N.MIDNUM||a===N.MIDNUMLET)&&r===N.NUMERIC||i===N.EXTEND||i===N.FORMAT||n===N.EXTEND||n===N.FORMAT||a===N.EXTEND||a===N.FORMAT||i===N.CR&&a===N.LF||i!==N.NEWLINE&&i!==N.CR&&i!==N.LF&&a!==N.NEWLINE&&a!==N.CR&&a!==N.LF&&(i===N.KATAKANA&&a===N.KATAKANA||a===N.EXTENDNUMLET&&(i===N.ALETTER||i===N.NUMERIC||i===N.KATAKANA||i===N.EXTENDNUMLET)||i===N.EXTENDNUMLET&&(a===N.ALETTER||a===N.NUMERIC||a===N.KATAKANA)||i===N.AT))))},P=b.EMPTY_STRING,I=b.WHITESPACE,O=b.PUNCTUATION,F=function(e){return"http"===e||"https"===e},R=function(e,t,n){var r=function(e,t){var n;for(n=t;n<e.length;++n){var r=e.charAt(n);if(I.test(r))break}return n}(t,n+1),i=t.substring(n+1,r);return"://"===i.substr(0,3)?{word:e+i,index:r}:{word:e,index:n}},H=function(e,t){return function(e,t){var n,r,i,a=0,o=Y(e),s=o.length,u=[],l=[];for(t||(t={}),t.ignoreCase&&(e=e.toLowerCase()),r=t.includePunctuation,i=t.includeWhitespace;a<s;++a)if(n=e.charAt(a),u.push(n),E(o,a)){if((u=u.join(P))&&(i||!I.test(u))&&(r||!O.test(u)))if(F(u)){var c=R(u,e,a);l.push(c.word),a=c.index}else l.push(u);u=[]}return l}(e.replace(/\ufeff/g,""),t)},j=function(e,t){return s.ie?function(e,t){for(var n=t.getBlockElements(),r=t.getShortEndedElements(),i=t.getWhiteSpaceElements(),a=function(e){return n[e.nodeName]||r[e.nodeName]||i[e.nodeName]},s="",u=new o(e,e);e=u.next();)3===e.nodeType?s+=e.data:a(e)&&(s+=" ");return s}(e,t):e.innerText},B=function(e){return H(function(e){return e.removed?"":j(e.getBody(),e.schema)}(e)).length},W=function(e){return{getCount:function(){return B(e)}}},U=tinymce.util.Tools.resolve("tinymce.util.Delay"),z=tinymce.util.Tools.resolve("tinymce.util.I18n"),J=function(e){var t=function(e){return z.translate(["{0} words",B(e)])},n=function(){e.theme.panel.find("#wordcount").text(t(e))};e.on("init",function(){var r=e.theme.panel&&e.theme.panel.find("#statusbar")[0],i=U.debounce(n,300);r&&U.setEditorTimeout(e,function(){r.insert({type:"label",name:"wordcount",text:t(e),classes:"wordcount",disabled:e.settings.readonly},0),e.on("setcontent beforeaddundo undo redo keyup",i)},0)})};a.add("wordcount",function(e){return J(e),W(e)})}()},LT9G:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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],i=/^(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:i,monthsShortRegex:i,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("PJh5"))},Lgqo:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},"MU+7":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAApCAYAAABOScuyAAAAAXNSR0IArs4c6QAACG5JREFUWAntWE2sXlUVPefc99qUoCmlpDHRATpwQAeSMMMSILQyKQ9iq2mIsTaMLAYNYSKBvDQBhASJRUox4a/+JDY2xIFUB8aYOukQguDABAmNhABt7YO+9n3v3uNaa599z71fX1876YzTfudnn73WXmefc/9eDJdRtj7535tCjIdjjF2T4r6jD246dBmwVV1+eDhffX7y2b6YwvdDTG9uWLfurqfm4sKqIEymSznM55zaEF7JOV+P39farnv1zp9/eHTuuU++cinsxeZ3//rTrWeXFt7qcv5Jl8OGnLtbT59bfOJi/kN7HA5W6t/2sw++E3P3+5Ri4I8FWQ4ppoWc4kN/emDjr5D5vBJ22rb75by+SwtPxxj2AINNC/qllJDkuNSsiV8/eM+6/0zjhuNVM4yMQkr3KMlZMFYAqsshfyGG7uBdz378128fOP1VOaxSfe/lM9sn4cw/wbEHNGIIomUF3pDXdMvdPGdWK6bkIh63P3FiJzQfRgIglBmxLPeZoQ3Zxjk828Tm4W/s3bB/Hud8SLfrd2c2hnPdflDs4morF86j4wGwHUztbEqbf7lj7b+GHMP+qhluc7yb4iyjhHmPmcaElsvsxKtwDp9548DJf+w4cHILd+ZHr+e1333h9H15sXs7dHkXd8fwbIQhofXJpZKbNoe5MlixmVnRWoyzKT6PC+NqrOoqijONTHevlakx3cg0jgmX9OjOg6fOIutrkMGZ3IU3UlMEicNyZDvGLJPXEgDsqdTk11bT9Pnclc5AvPmR927AnmxWoAa3rKaxmzP6LGpgw65qX5PbYavz9COue/fI/RuPa6JU9/7m7JfzZPLNAgO/HYkCl1dyLjjhhGUfi78AU2iWwmzz95nlHI7hDF2j85ljaNsWCFzNLRRCYsd+14YOA17JOJOws7WbgeaB6wIeLyn9AUF2Fq1q2nPnt4HmxZY8wLUg0No7Hl47w/3tkjygxQWsWJjGNWE6Mm4+eIIdSrhMrrErmLOctlaXD7oC8QJHoZ8u9tLngliEN6AZpuoCt4uSg+LLRovnpYpBr4OeDCQ/2MnHfs6bbH9oEBGsVIGfsiAfudND5Or0VWHkuLr1s9OdylpFKOwIT05m1biZOI9CPATbLYVWTmhlzKT+kWkAht14CoZZoE1IeRIwKrhj4XFZg2vSMVRLDsfTT2PjhQSbG+BxE7UnE/3qaiihyCCHIYlGYXAZPY6srOCnEL2hdOpWw8DgRcDYj2jASc9KfmXotLh0ZrD+5xDqjsibO//7gwAw5o5nBi86mGCiyEZN3uqlBRSw2NwJTI5KTuE0WN6JCOrcTAVZyM1HO7jZEy4iVn2XKjb6hNCmHH8rp8+rK5gBy3kJgDMUb3n8gxtx776WppnBm0bT1AHtM/jnpZ+K+cRreze+43a2P3hp4bql3N7IJ5Bj3J8PCfo0w0AY+3BNs/bdZ+biv+njpUaF5ZZ9728Dw5/5kOCxbZfRYkl8we7wQLE+bu54qCzHZfno7PJhgnOG83cENDucnO1it7wdPi/y0iaGD48MPChxkfE0I0ALu51TtR0eKow16ZYm83/LG+Zvi586J899X3JMm7RkOItIMxhYItCyzx8t8JRzadAfkcnLK16+LKgLhaCsMOZNQDcILkYTMFNxyLOfLIb1RHq5IIYcC0h8JIS3mbwHASQkJ2aMHI9xZ51uAbNbm7FQVZ8Q9iXOQNZ3vxDWTXFNCcZ7hJZKGSS1QGylTeAykggaMC4Y3LpKJDnWShBnQHsRgXVRlXOxsqg3FsyzOOVgFrdyy4omxqUvxrKsLLWwwRPzzKrwA9+ebxCXvO4y24wljQRnPT1MhLbMztEAjqBSSZ1SIINMqPptHgRXt/j6rlGClulAOJHXj4b8PNBUikeCY8QXFcPCWYSezX6Rvm5vuZbSRyPMlFi+S/RwzlEkMNIqqOFJ49lWfOedOsQjwXwNJz8p+mxppUbqGegXJUelhlJQJMO6w9rglVN+TIoXwzk/tapfHdxx6k6EF3Vbucs2Cb5YZmDY913rj8dAQh8BDwyPK1YOLIjJ9t2EzTNMROXsmdQZZ5jfP1SBn2e4ktCsSAOGwdhVDWbVxYeIl8paFkGRmBRLj+cInhfEMpaRYGTP7kzMpP7RqYIp3njYMhqi0GYh+9aoa+3ByaniGA7J4XjnpJ+4zX1YjwTzotNqFbrIoC4PJKRlQCZz7vnGfr0ZsYtQmijKVl0d1AOafuIsPlP8dBsJFq6QMbjCgITSLWS5j8JR8zTCX54rkItPLpiUaGvpWtiLeBEVd5u9rAzro76skiJtK0lQFs5WfEU++hxqL2QyX/qPiwnSLCodLTqgbwjWfrS8tXm6DcvKGQa/tkdZUS57jCXKwiAG//fZKtbet++YXvk5nqYxHuhKK17hV3tw4D3PhBLY/9ARO0yF0KbKMYECZVjxi6Mi1cqt2rWeupAN8ehrQcVHDJd6cIjGI7AloZ9r9Xv9tgA7IyU7RYQi1arHl5WbKJDLnRVjmL+3LqGyWO+CIyFHgD1rxupwshqzLppiVoOqxJyOgTF3gQU1O/g5Rn0MuAguzBZjfSIm2HS2Xi4QrGwUFzZcMVszea9kncExUzPI8VTh38YAs1ubsWjXpJxzFU+kcbnfJd6HO/zFzO+FzCD1+BUtbWSU1VZh2WAfAeRQAsmvVHzScc73moO+zy4nDVcXBVvhPD8Jk8KkZpRhfAz+BfhTQ4cSrZjqfVhxaQWxwq2gtfJQAJkKfuBrIqsne74E+L/1i7n44XB29BF67Kdf+mjLYx/dENrz32pi+iKRWhFbfjWisEm0ymZUnOHHZWrS6AtX/s3Mcfyl88f6M62whUQY0KSUCzXxhOjjFoz/a8LsH2UYVP8H759XHDwG91UAAAAASUVORK5CYII="},N3vo:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},NYST:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},Nd3h:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},NhQV:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={name:"active-step",props:{activeStep:{type:[Number,String],default:function(){return 1}},stepData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{}},methods:{}},i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"active-step-content font-0"},e._l(e.stepData,function(t,r){return n("div",{key:r+t.stepName,class:["active-step-cell inline-block border-box",r+1==e.activeStep?"active-step":"",t.hasSet?"active-hasset":""],style:{width:100/e.stepData.length+"%","max-width":100/e.stepData.length+"%"}},[n("div",{staticClass:"active-step-cell_inner border-box"},[r<e.stepData.length-1?n("div",{staticClass:"active-step-cell_line"}):e._e(),e._v(" "),n("div",{staticClass:"active-step-cell_title"},[n("div",{staticClass:"el-step__icon is-text inline-block text-center"},[t.hasSet?n("i",{staticClass:"el-icon-check font-14 color-2F54EB flex flex-pack-center flex-align-center"}):n("div",{staticClass:"el-step__icon-inner font-14 flex flex-pack-center flex-align-center"},[e._v(e._s(r+1))])]),e._v(" "),n("div",{staticClass:"active-step-cell_txt p-lr-10 bg-fff inline-block font-16"},[e._v(e._s(t.stepName))])])])])}),0)},staticRenderFns:[]};var a=n("VU/8")(r,i,!1,function(e){n("PKH1")},"data-v-73c4ca54",null).exports,o=n("fZjL"),s=n.n(o),u=n("mvHQ"),l=n.n(u),c=n("woOf"),d=n.n(c),f=function(e){for(var t=""==e||null==e?"":e,n=0,r=0;r<t.length;r++){null!=t.charAt(r).match(/[^\x00-\xff]/gi)?n+=2:n+=1}return n},m=function(e){for(var t=""==e||null==e?"":e,n=0,r=0;r<t.length;r++){null!=t.charAt(r).match(/[^\x00-\xff]/gi)?n+=1:n+=.5}return Math.ceil(n)},h=function(e,t){for(var n=""==e||null==e?"":e,r="",i=0,a=0;a<n.length&&(null!=n[a].match(/[^\x00-\xff]/gi)?i+=1:i+=.5,!(i>t));a++)r+=n[a];return r},p=function(e,t){for(var n=""==e||null==e?"":e,r="",i=0,a=0;a<n.length&&(null!=n[a].match(/[^\x00-\xff]/gi)?i+=2:i+=1,!(i>t));a++)r+=n[a];return r},g={name:"limitinput",props:{inputValue:{type:[String,Number],default:function(){return""}},maxLength:{type:Number,default:10},inputWidth:{type:Number,default:500},getByType:{type:String,default:"word"},holder:{type:String,default:"请输入"},disflag:{type:Boolean,default:!1},limitClass:{type:String,default:""}},data:function(){return{inputNum:0,limitLength:10,itemValue:""}},methods:{inputFocus:function(e){},toInput:function(e){var t="";"word"==this.getByType?(t=h(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=m(this.itemValue)):(t=p(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=f(this.itemValue)),this.$emit("update:inputValue",this.itemValue)},inputBlur:function(){this.$emit("update:inputValue",this.itemValue)}},watch:{maxLength:function(e,t){this.limitLength=e},inputValue:function(e,t){this.itemValue=e||"","word"==this.getByType?this.inputNum=m(this.itemValue):this.inputNum=f(this.itemValue)}},mounted:function(){this.limitLength=this.maxLength,this.itemValue=this.inputValue||"","word"==this.getByType?this.inputNum=m(this.inputValue):this.inputNum=f(this.inputValue)}},_={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["input-line-cell",e.limitClass],style:{width:e.inputWidth+"px"}},[n("el-input",{style:{width:e.inputWidth+"px"},attrs:{disabled:e.disflag,placeholder:e.holder},on:{blur:function(t){return e.inputBlur()},focus:function(t){return e.inputFocus()}},nativeOn:{keyup:function(t){return n=t,e.toInput(n);var n}},model:{value:e.itemValue,callback:function(t){e.itemValue=t},expression:"itemValue"}}),e._v(" "),n("span",{staticClass:"tip"},[n("span",{staticClass:"len_span"},[e._v(e._s(e.inputNum))]),e._v("/"+e._s(e.limitLength))])],1)},staticRenderFns:[]};var v=n("VU/8")(g,_,!1,function(e){n("gO+t")},"data-v-1d073e80",null).exports,y=n("P9l9"),b=n("Ch4/"),w=function(e,t){function n(e){return(e=e.toString())[1]?e:"0"+e}if(null!=e){var r=new Date(e),i=r.getFullYear(),a=r.getMonth()+1,o=r.getDate(),s=r.getHours(),u=r.getMinutes(),l=r.getSeconds();return[i,a,o].map(n).join(t||"-")+" "+[s,u,l].map(n).join(":")}return"--"},M=n("PJh5"),k=n.n(M),L={name:"base-config",components:{limitInput:v},data:function(){var e=this;return{loading:!1,statusText:{0:"正常",1:"删除",2:"已过期"},activeInfoData:{activityId:"",parentGoalId:"",parentGoalName:"",goalName:"",goalId:"",activityMarketPageId:"",gamePlanId:"",cardCoupId:"",activityMarketPageName:"",gamePlanName:"",gamePlanUrl:"",cardCoupName:"",router:"",activityName:"",dateRange:[],editDate:!1,startDate:"",endDate:"",startDateDisabled:!1,endDateDisabled:!1},rules:{activityName:[{required:!0,message:"请输入活动名称",trigger:"blur"}],dateRange:[{validator:function(t,n,r){n&&n.length&&(n[0]||n[1])?n[0]?n[1]?n[1]&&e.dueData.endDate&&new Date(e.activeInfoData.endDate).getTime()>e.dueData.endDate?r(new Error("您的分享有礼功能"+k()(e.dueData.endDate).format("YYYY年MM月DD日")+"到期，活动结束时间无法超过该日期。")):r():r(new Error("请选择结束日期")):r(new Error("请选择开始日期")):r(new Error("请选择活动有效期"))},trigger:"change"}]},choiceDateCopy:[],dueData:{dueDay:0,endDate:null,isOverdue:0,overdueDay:0},pickerOptions:{onPick:function(t){var n=t.maxDate,r=t.minDate;e.choiceDateCopy=[r.getTime()],n&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var n=e.choiceDateCopy[0]-31536e6,r=e.choiceDateCopy[0]+31536e6;return t.getTime()<n||t.getTime()>r||t.getTime()<Date.now()-864e5}return t.getTime()<Date.now()-864e5}},pickerOptionsStart:{disabledDate:function(e){return e.getTime()<Date.now()-864e5}},pickerOptionsEnd:{disabledDate:function(t){var n=t.getTime()<Date.now()-864e5;return e.activeInfoData.startDate&&(n=n||t.getTime()<new Date(e.activeInfoData.startDate).getTime()),e.activeInfoData.startDate&&new Date(e.activeInfoData.startDate).toDateString()!==(new Date).toDateString()||(n=n||t.getTime()<=(new Date).setHours(0,0,0)),n}}}},methods:{judgeDue:function(){console.log(1);var e=this;Object(y.a)("/sharing-core-web/isOverdue",{}).then(function(t){var n=t.data;if(1==n.errorCode)return e.dueData=d()({},e.dueData,n.result),!1;b.a.errorMsg(n)}).catch(function(t){e.$message.error({duration:2500,message:t.message})})},changeDate:function(e,t){this.editDate=!0,t&&(this.activeInfoData.endDate=""),this.activeInfoData.startDate&&(this.activeInfoData.startDate=w(new Date(this.activeInfoData.startDate).setHours(0,0,0,0))),this.activeInfoData.endDate&&(this.activeInfoData.endDate=w(new Date(this.activeInfoData.endDate).setHours(23,59,59,999))),this.activeInfoData.dateRange=[this.activeInfoData.startDate||"",this.activeInfoData.endDate||""]},returnBack:function(){this.$router.go(-1)},submitForm:function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.$store.dispatch("clearIndexData"),t.$route.query.hasOwnProperty("editFlag")?(t.$emit("submitNext",t.activeInfoData),t.$store.dispatch("saveBaseInfo",t.activeInfoData)):t.postSave()})},postSave:function(){var e=this,t=this;t.activeInfoData.dateRange||(t.activeInfoData.dateRange=[]),t.activeInfoData.startDate=t.activeInfoData.dateRange[0];var n={activityId:t.activeInfoData.activityId,activityName:t.activeInfoData.activityName,startDate:t.activeInfoData.dateRange[0],endDate:t.activeInfoData.dateRange[1],parentGoalId:t.activeInfoData.parentGoalId,goalId:t.activeInfoData.goalId,activityMarketPageId:t.activeInfoData.activityMarketPageId,activityMarketPageName:t.activeInfoData.activityMarketPageName,gamePlanId:t.activeInfoData.gamePlanId,gamePlanUrl:t.activeInfoData.gamePlanUrl,gamePlanName:t.activeInfoData.gamePlanName,cardCoupId:t.activeInfoData.cardCoupId,cardCoupName:t.activeInfoData.cardCoupName,router:t.activeInfoData.router&&t.activeInfoData.router.length?l()(t.activeInfoData.router):null};this.loading=!0,Object(y.c)("/sharing-core-web/edit-activity-base-info",n).then(function(e){var n=e.data;if(1==n.errorCode)return t.activeInfoData.activityId=n.result,t.$emit("submitNext",t.activeInfoData),void t.$store.dispatch("saveBaseInfo",t.activeInfoData);b.a.errorMsg(n)}).catch(function(e){t.$message.error({duration:2500,message:e.message})}).finally(function(){setTimeout(function(){e.loading=!1},500)})},getBaseData:function(){var e=this,t=this,n={activityId:t.$route.query.activityId};Object(y.a)("/sharing-core-web/get-activity-base-info",n).then(function(n){var r=n.data;if(1==r.errorCode)return r.result&&r.result.router&&(r.result.router=JSON.parse(r.result.router)),r.result.router.sort(function(e,t){return e.transId-t.transId}),e.startDateDisabled=Date.now()>r.result.startDate,e.endDateDisabled=Date.now()>r.result.endDate,r.result.startDate=w(r.result.startDate),r.result.endDate=w(r.result.endDate),r.result.dateRange=[r.result.startDate,r.result.endDate],t.activeInfoData=r.result,!1;b.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:2500,message:e.message})})}},mounted:function(){var e=this;if(e.judgeDue(),e.$route.query.hasOwnProperty("activityId")&&e.getBaseData(),s()(e.$store.state.activeInfo).length){var t=JSON.parse(l()(e.$store.state.activeInfo));e.activeInfoData.parentGoalId=t.firstGoal.goalId,e.activeInfoData.goalId=t.secondGoal.goalId,e.activeInfoData.goalName=t.secondGoal.goalName,e.activeInfoData.activityMarketPageId=t.markingValue,e.activeInfoData.activityMarketPageName=t.activityMarketPageName,e.activeInfoData.gamePlanId=t.gameValue[1],e.activeInfoData.gamePlanName=t.gamePlanName,e.activeInfoData.gamePlanUrl=t.gamePlanUrl,e.activeInfoData.cardCoupId=t.cardValue,e.activeInfoData.cardCoupName=t.cardCoupName,e.activeInfoData.router=t.pathArr}s()(e.$store.state.baseInfo).length&&e.$nextTick(function(){e.activeInfoData=JSON.parse(l()(e.$store.state.baseInfo))})}},D={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"base-config-content"},[n("div",{staticClass:"config-title font-14 color-303133"},[e._v("基本信息")]),e._v(" "),n("el-form",{ref:"baseForm",attrs:{"label-width":"114px",model:e.activeInfoData,rules:e.rules}},[e.$route.query.activityId?n("el-form-item",{attrs:{label:"活动目的：",prop:""}},[e._v(" "+e._s(e.activeInfoData.parentGoalName)+" - "+e._s(e.activeInfoData.goalName)+" ")]):e._e(),e._v(" "),e.$route.query.activityId?n("el-form-item",{attrs:{label:"转化路径：",prop:""}},[n("div",[e._v(e._s(e.activeInfoData.router&&e.activeInfoData.router.length?e.activeInfoData.router.map(function(e){return e.transName}).join("→"):""))])]):e._e(),e._v(" "),e.$route.query.activityId&&e.activeInfoData.activityMarketPageName?n("el-form-item",{attrs:{label:"活动营销页：",prop:"activityMarketPageName"}},[e._v(" "+e._s(e.activeInfoData.activityMarketPageName))]):e._e(),e._v(" "),e.$route.query.activityId&&e.activeInfoData.gamePlanName?n("el-form-item",{attrs:{label:"游戏计划：",prop:"gamePlanName"}},[e._v(" "+e._s(e.activeInfoData.gamePlanName))]):e._e(),e._v(" "),e.$route.query.activityId&&e.activeInfoData.cardCoupName?n("el-form-item",{attrs:{label:"卡券：",prop:"cardCoupName"}},[e._v("\n    "+e._s(e.activeInfoData.cardCoupName)+"\n    "),null!=e.activeInfoData.cardCoupStatus?n("el-tag",{staticStyle:{"margin-left":"5px"},attrs:{size:"mini",type:"danger"}},[e._v("\n    "+e._s(e.statusText[e.activeInfoData.cardCoupStatus])+"\n    ")]):e._e(),e._v(" "),null==e.activeInfoData.cardCoupStatus&&0==e.activeInfoData.cardCoupStock?n("el-tag",{staticStyle:{"margin-left":"5px"},attrs:{size:"mini",type:"danger"}},[e._v("\n     库存不足\n    ")]):e._e()],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"活动名称：",prop:"activityName"}},[n("limitInput",{attrs:{inputWidth:350,disflag:!!e.$route.query.editFlag,inputValue:e.activeInfoData.activityName,holder:"请输入活动名称",getByType:"char",maxLength:30},on:{"update:inputValue":function(t){return e.$set(e.activeInfoData,"activityName",t)},"update:input-value":function(t){return e.$set(e.activeInfoData,"activityName",t)}}})],1),e._v(" "),n("el-form-item",{attrs:{label:"活动有效期：",prop:"dateRange",required:""}},[n("el-date-picker",{staticClass:"m-l-10",attrs:{disabled:e.$route.query.editFlag||e.startDateDisabled,"prefix-icon":"el-icon-time",editable:!1,"value-format":"yyyy-MM-dd",type:"date",align:"right",placeholder:"开始日期","picker-options":e.pickerOptionsStart},on:{change:function(t){return e.changeDate(t,!0)}},model:{value:e.activeInfoData.startDate,callback:function(t){e.$set(e.activeInfoData,"startDate",t)},expression:"activeInfoData.startDate"}}),e._v(" "),n("span",{staticStyle:{margin:"0 5px",color:"#c0c4cc"}},[e._v("-")]),e._v(" "),n("el-date-picker",{staticClass:"m-l-10",attrs:{disabled:e.$route.query.editFlag||e.endDateDisabled,"prefix-icon":"el-icon-time",editable:!1,"value-format":"yyyy-MM-dd",type:"date",align:"right",placeholder:"结束日期","picker-options":e.pickerOptionsEnd},on:{change:function(t){return e.changeDate(t,!1)}},model:{value:e.activeInfoData.endDate,callback:function(t){e.$set(e.activeInfoData,"endDate",t)},expression:"activeInfoData.endDate"}})],1),e._v(" "),n("el-form-item",{staticClass:"m-t-50"},[n("el-button",{attrs:{type:"primary"},on:{click:e.returnBack}},[e._v("返回")]),e._v(" "),n("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:function(t){return e.submitForm("baseForm")}}},[e._v("下一步")])],1)],1)],1)},staticRenderFns:[]};var x=n("VU/8")(L,D,!1,function(e){n("gpE/")},"data-v-0e21f493",null).exports,A=n("//Fk"),C=n.n(A),T={name:"vue-gic-img-preview",props:{imgUrl:String,imgShowFlag:Boolean},data:function(){return{showFlag:!1,imgSrc:""}},methods:{hideImage:function(){this.showFlag=!1,this.$emit("hideImage",this.showFlag)},hidePanel:function(){this.showFlag&&this.hideImage()}},watch:{imgUrl:function(e){this.imgSrc=e},imgShowFlag:function(e){this.showFlag=e}},mounted:function(){this.imgSrc=this.imgUrl,this.showFlag=this.imgShowFlag,document.addEventListener("mousedown",this.hidePanel,!1)},beforeDestroy:function(){document.removeEventListener("mousedown",this.hidePanel,!1)}},S={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.showFlag?n("div",{staticClass:"image-view-contain"},[n("transition",{attrs:{name:"fade"}},[n("div",{staticClass:"image-view-body",on:{click:function(t){return t.stopPropagation(),e.hideImage(t)}}},[n("i",{staticClass:"el-icon-close"}),e._v(" "),n("img",{attrs:{src:e.imgSrc,alt:""}})])])],1):e._e()},staticRenderFns:[]};var Y=n("VU/8")(T,S,!1,function(e){n("Yrr6")},"data-v-021ae16c",null).exports,N={name:"single-upload-center",components:{vueGicImgPreview:Y},props:{value:{type:String,default:""},uploadLimit:{type:Number,default:1},limitFlag:{type:[Number,String],default:1},limitRate:{type:[Number,String],default:2},width:{type:Number,default:300},height:{type:Number,default:300},disabled:{type:Boolean,default:!1}},data:function(){return{projectName:"",imgShowFlag:!1,imgUrl:""}},beforeMount:function(){var e=window.location.origin;-1!=e.indexOf("localhost")?this.baseUrl="http://gicdev.demogic.com":this.baseUrl=e},methods:{uploadUrl:function(){var e=window.location.origin,t=void 0;return t="-1"!=e.indexOf("localhost")?"http://gicdev.demogic.com":e,this.upUrl=t+"/sharing-core-web/upload?requestProject=share-config&wxFlag=1",this.upUrl},handleAvatarSuccess:function(e,t,n){1==e.errorCode?(this.$emit("input",e.result.url),this.$emit("returnName",e.result.name)):b.a.errorMsg(e)},beforeAvatarUpload:function(e){var t=this,n="image/jpeg"===e.type||"image/jpg"===e.type,r=e.size/1024/1024<t.uploadLimit;return n||t.$message.error("上传图片只能是 JPG 格式!"),r||t.$message.error("上传图片大小不能超过 "+t.uploadLimit+"MB!"),n&&r&&new C.a(function(n,r){var i=new FileReader;i.onload=function(e){var i=new Image;i.onload=function(){var e=this.width,i=this.height;2!=t.limitFlag||e===t.width&&i===t.height||(t.$message.error("图片尺寸必须为"+t.width+"*"+t.height+"px"),r()),1==t.limitFlag&&e<t.width&&(t.$message.error("图片宽度必须≥"+t.width+"px!"),r()),3==t.limitFlag&&(e<t.width||e/i>5/4)&&(t.$message.error("图片宽度必须≥"+t.width+"px,宽高比≤5/4!"),r()),n()},i.src=e.target.result},i.readAsDataURL(e)})},showImage:function(e){if(!e||""==e)return!1;this.imgShowFlag=!0,this.imgUrl=e},hideImage:function(e){this.imgShowFlag=e}}},E={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"single-upload-center-wrap"},[n("el-upload",{staticClass:"avatar-uploader",attrs:{disabled:e.disabled,action:e.uploadUrl(),"show-file-list":!1,"on-success":e.handleAvatarSuccess,"before-upload":e.beforeAvatarUpload}},[e.value?n("img",{staticClass:"avatar",attrs:{src:e.value},on:{mouseover:function(t){return e.showImage(e.value)}}}):n("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]),e._v(" "),n("p",{staticClass:"upload-tip w-500"},[e._v("\n    宽度≥"+e._s(e.width)+"px，"+e._s(750==e.width?"750px*300px（推荐尺寸），":600==e.width?"600px*480px（推荐尺寸），":"")+"大小不超过1M，仅限JPG格式。\n  ")]),e._v(" "),n("vue-gic-img-preview",{attrs:{imgUrl:e.imgUrl,imgShowFlag:e.imgShowFlag},on:{hideImage:e.hideImage}})],1)},staticRenderFns:[]};var P=n("VU/8")(N,E,!1,function(e){n("GPKo")},"data-v-534389e2",null).exports,I=n("5eDb"),O=n.n(I),F=(n("o5MN"),["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"]),R=function(e){return-1!==F.indexOf(e)},H=function(e,t,n){var r=t.$props.value?t.$props.value:"",i=t.$props.initialValue?t.$props.initialValue:"";n.setContent(r||i),t.$listeners.input&&function(e,t){var n,r=e.$props.modelEvents?e.$props.modelEvents:null,i=Array.isArray(r)?r.join(" "):r;e.$watch("value",function(e,r){t&&"string"==typeof e&&e!==n&&e!==r&&(t.setContent(e),n=e)}),t.on(i||"change keyup undo redo",function(){n=t.getContent(),e.$emit("input",n)})}(t,n),function(e,t,n){Object.keys(t).filter(R).forEach(function(r){var i=t[r];"function"==typeof i&&("onInit"===r?i(e,n):n.on(r.substring(2),function(e){return i(e,n)}))})}(e,t.$listeners,n)},j=0,B=function(e){var t=Date.now();return e+"_"+Math.floor(1e9*Math.random())+ ++j+String(t)},W=function(e){return void 0===e||""===e?[]:Array.isArray(e)?e:e.split(" ")},U=n("H7xL"),z={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],value:String,disabled:Boolean},J=this&&this.__assign||function(){return(J=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},q={listeners:[],scriptId:B("tiny-script"),scriptLoaded:!1},V=function(e){return function(){var t,n,r,i=J({},e.$props.init,{readonly:e.$props.disabled,selector:"#"+e.elementId,plugins:(t=e.$props.init&&e.$props.init.plugins,n=e.$props.plugins,W(t).concat(W(n))),toolbar:e.$props.toolbar||e.$props.init&&e.$props.init.toolbar,inline:e.inlineEditor,setup:function(t){e.editor=t,t.on("init",function(n){return H(n,e,t)}),e.$props.init&&"function"==typeof e.$props.init.setup&&e.$props.init.setup(t)}});null!==(r=e.element)&&"textarea"===r.tagName.toLowerCase()&&(e.element.style.visibility=""),Object(U.a)().init(i)}},G={props:z,created:function(){this.elementId=this.$props.id||B("tiny-vue"),this.inlineEditor=this.$props.init&&this.$props.init.inline||this.$props.inline},watch:{disabled:function(){this.editor.setMode(this.disabled?"readonly":"design")}},mounted:function(){if(this.element=this.$el,null!==Object(U.a)())V(this)();else if(this.element&&this.element.ownerDocument){var e=this.element.ownerDocument,t=this.$props.cloudChannel?this.$props.cloudChannel:"stable",n=this.$props.apiKey?this.$props.apiKey:"";!function(e,t,n,r){e.scriptLoaded?r():(e.listeners.push(r),t.getElementById(e.scriptId)||function(e,t,n,r){var i=t.createElement("script");i.type="application/javascript",i.id=e,i.addEventListener("load",r),i.src=n,t.head&&t.head.appendChild(i)}(e.scriptId,t,n,function(){e.listeners.forEach(function(e){return e()}),e.scriptLoaded=!0}))}(q,e,"https://cloud.tinymce.com/"+t+"/tinymce.min.js?apiKey="+n,V(this))}},beforeDestroy:function(){null!==Object(U.a)()&&Object(U.a)().remove(this.editor)},render:function(e){return this.inlineEditor?function(e,t,n){return e(n||"div",{attrs:{id:t}})}(e,this.elementId,this.$props.tagName):function(e,t){return e("textarea",{attrs:{id:t},style:{visibility:"hidden"}})}(e,this.elementId)}},$=(n("f85y"),n("q/hF"),n("yXOt"),n("Rv7z"),n("c/6r"),{name:"tinymce-edit",props:{disabledEdit:{type:Boolean,default:function(){return!1}},bodyHtml:{type:String,default:function(){return""}},projectName:{type:String,default:function(){return"haoban-manage-web"}}},data:function(){return{repProjectName:"haoban-manage-web",tinymceHtml:"请输入内容",init:{language_url:"static/tinymce/zh_CN.js",language:"zh_CN",skin_url:"static/tinymce/skins/lightgray",height:300,plugins:"link colorpicker textcolor  ",toolbar:"bold italic underline strikethrough | fontsizeselect | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist | outdent indent blockquote | undo redo  | removeformat",branding:!1,setup:function(e){e.on("click input change undo redo execCommand KeyUp",function(e){})},fontsize_formats:"8px 10px 12px 14px 18px 24px 36px"}}},methods:{},watch:{projectName:function(e,t){this.repProjectName=e||"gic-web"},tinymceHtml:function(e,t){this.$emit("changeEditor",e)},bodyHtml:function(e,t){this.tinymceHtml=e}},components:{Editor:G},mounted:function(){O.a.init({}),this.tinymceHtml=this.bodyHtml}}),K={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tinymce-contain"},[n("editor",{attrs:{id:"tinymce",init:e.init,disabled:e.disabledEdit},model:{value:e.tinymceHtml,callback:function(t){e.tinymceHtml=t},expression:"tinymceHtml"}})],1)},staticRenderFns:[]};var Q=n("VU/8")($,K,!1,function(e){n("P+7F")},"data-v-957fc708",null).exports,X={name:"app-template",props:{templateData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{}},methods:{enterLine:function(e){return e&&(e=e.replace(/\n/g,"<br>")),e}}},Z={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-template-content"},[e.templateData.length>0?r("div"):e._e(),e._v(" "),e._l(e.templateData,function(t,i){return r("div",{key:i,staticClass:"displayItem",class:["item"+t.key,{curedit:e.curIndex==i}]},["B7"==t.key?r("div",{staticClass:"card-wrap",class:{"no-padding-r15":1==t.cardSetting.length&&t.cardSetting[0].cardData.length>2||t.cardSetting.length>2}},[1==t.cardStyle?r("div",{staticClass:"img"},[1==t.cardSetting.length&&t.cardSetting[0].cardData.length<2||0==t.cardSetting.length?r("img",{attrs:{src:n("L1sD"),alt:""}}):e._e(),e._v(" "),1==t.cardSetting.length&&2==t.cardSetting[0].cardData.length||2==t.cardSetting.length?r("img",{attrs:{src:n("OBzU"),alt:""}}):e._e(),e._v(" "),1==t.cardSetting.length&&t.cardSetting[0].cardData.length>2||t.cardSetting.length>2?r("img",{attrs:{src:n("Yyy8"),alt:""}}):e._e()]):e._e(),e._v(" "),2==t.cardStyle?r("div",{staticClass:"img"},[1==t.cardSetting.length&&t.cardSetting[0].cardData.length<2||0==t.cardSetting.length?r("img",{attrs:{src:n("kUhG"),alt:""}}):e._e(),e._v(" "),1==t.cardSetting.length&&2==t.cardSetting[0].cardData.length||2==t.cardSetting.length?r("img",{attrs:{src:n("aE84"),alt:""}}):e._e(),e._v(" "),1==t.cardSetting.length&&t.cardSetting[0].cardData.length>2||t.cardSetting.length>2?r("img",{attrs:{src:n("4T7g"),alt:""}}):e._e()]):e._e(),e._v(" "),3==t.cardStyle?r("div",{staticClass:"img"},[r("img",{attrs:{src:n("RD1t"),alt:""}})]):e._e()]):e._e(),e._v(" "),"A1"==t.key?r("div",{staticClass:"fu-text-wrap",domProps:{innerHTML:e._s(t.richTextContent)}}):e._e(),e._v(" "),"A2"==t.key?r("el-carousel",{staticStyle:{overflow:"hidden"},style:{height:"60px"}},e._l(t.data,function(e,t){return r("el-carousel-item",{key:t},[e.qcloudImageUrl?r("img",{style:{height:"60px"},attrs:{width:"100%",src:e.qcloudImageUrl,alt:""}}):r("img",{style:{height:"60px"},attrs:{width:"100%",src:n("E67+"),alt:""}})])}),1):e._e(),e._v(" "),"A3"==t.key&&9==t.templateType?r("div",[r("div",{staticClass:"main",staticStyle:{padding:"4px"}},[r("div",{staticClass:"column-item"},[r("div",{staticClass:"mainbox"},[r("div",{staticClass:"mainboxdraggable clearfix"},[i<3?e._l(t.data,function(t,n){return r("div",{key:n,staticClass:"mainboximg",class:e.curjggIndex==n?"curitem":""},[t.qcloudImageUrl?r("img",{attrs:{src:t.qcloudImageUrl,alt:""}}):e._e()])}):e._e()],2)])]),e._v(" "),r("div",{staticClass:"column-item"},[r("div",{staticClass:"mainbox"},[r("div",{staticClass:"mainboxdraggable clearfix"},[i>=3&&i<6?e._l(t.data,function(t,n){return r("div",{key:n,staticClass:"mainboximg",class:e.curjggIndex==n?"curitem":""},[t.qcloudImageUrl?r("img",{attrs:{src:t.qcloudImageUrl,alt:""}}):e._e()])}):e._e()],2)])]),e._v(" "),r("div",{staticClass:"column-item"},[r("div",{staticClass:"mainbox"},[r("div",{staticClass:"mainboxdraggable clearfix"},[i>=6&&i<9?e._l(t.data,function(t,n){return r("div",{key:n,staticClass:"mainboximg",class:e.curjggIndex==n?"curitem":""},[t.qcloudImageUrl?r("img",{attrs:{src:t.qcloudImageUrl,alt:""}}):e._e()])}):e._e()],2)])])])]):e._e(),e._v(" "),"A3"==t.key&&8==t.templateType?r("div",{staticClass:"phone-cube"},[t.data.length>0&&""==t.data[0].pos||t.data.length<1?r("div",{style:{height:157/t.lineSetting.column*t.lineSetting.row+"px"}}):r("div",{style:{height:157/t.lineSetting.column*t.lineSetting.row+"px"}},e._l(t.data,function(e,n){return r("img",{key:n,staticClass:"img-cube",style:{width:(e.pos[4]-e.pos[0])*(157/t.lineSetting.column)+"px",height:((0==e.pos[7]?10:e.pos[6])-e.pos[2])*(157/t.lineSetting.column)+"px",left:e.pos[0]*(157/t.lineSetting.column)+"px",top:e.pos[2]*(157/t.lineSetting.column)+"px"},attrs:{src:e.qcloudImageUrl,alt:t.lineSetting.column}})}),0)]):e._e(),e._v(" "),"A5"==t.key?r("div",{staticClass:"threecontent",style:[{color:t.fontColor,background:t.backgroundColor,textAlign:t.pos},{padding:0!==t.fillWay?"10px":""}],domProps:{innerHTML:e._s(e.enterLine(t.content))}}):e._e(),e._v(" "),"A6"==t.key?r("div",{staticClass:"crossbar"},[1==parseInt(t.templateType)?r("ul",e._l(t.data,function(i,a){return r("li",{key:a,staticClass:"crossbar-list",style:[{background:t.backgroundColor}]},[r("span",{staticClass:"crossbar-icon11"},[i.qcloudImageUrl?r("img",{attrs:{src:i.qcloudImageUrl,alt:""}}):r("img",{attrs:{src:n("JoZn"),alt:""}})]),e._v(" "),r("span",{staticClass:"crossbar-icon2",style:[{color:t.fontColor}]},[e._v(e._s(i.title))]),e._v(" "),r("span",{staticClass:"crossbar-icon3"},[t.jumpHint?r("i",{staticClass:"el-icon-arrow-right"}):e._e()])])}),0):e._e(),e._v(" "),2==parseInt(t.templateType)?r("ul",e._l(t.data,function(n,i){return r("li",{key:i,staticClass:"crossbar-list",style:[{background:t.backgroundColor}]},[r("span",{staticClass:"crossbar-icon2",style:[{color:t.fontColor}]},[e._v(e._s(n.title))]),e._v(" "),r("span",{staticClass:"crossbar-icon3"},[t.jumpHint?r("i",{staticClass:"el-icon-arrow-right"}):e._e()])])}),0):e._e(),e._v(" "),3==parseInt(t.templateType)?r("ul",[r("li",{staticClass:"crossbar-list",style:[{background:t.backgroundColor}]},e._l(t.data,function(i,a){return r("div",{key:a,staticClass:"double-heng-item"},[r("span",{staticClass:"crossbar-icon11"},[i.qcloudImageUrl?r("img",{attrs:{src:i.qcloudImageUrl,alt:""}}):r("img",{attrs:{src:n("JoZn"),alt:""}})]),e._v(" "),r("span",{staticClass:"crossbar-icon2",style:[{color:t.fontColor}]},[e._v(e._s(i.title))])])}),0)]):e._e()]):e._e(),e._v(" "),"A7"==t.key?r("div",[r("div",{staticClass:"fuzhuline",style:[{borderColor:t.fontColor,borderStyle:1==parseInt(t.style)?"solid":2==parseInt(t.style)?"dashed":3==parseInt(t.style)?"dotted":""},{margin:1==parseInt(t.fillWay)?"2px 10px":""}]})]):e._e(),e._v(" "),"A8"==t.key?r("div",[r("div",{style:{height:t.fillWay+"px"}})]):e._e(),e._v(" "),"B1"==t.key?r("div",[r("div",{staticClass:"integral-list-page"},[r("div",{staticClass:"integral-list-top",style:{height:1!==t.setting?"65px":""}},[r("img",{staticClass:"integral-img",attrs:{src:n("lvXc"),alt:""}}),e._v(" "),e._m(0,!0),e._v(" "),e._m(1,!0)]),e._v(" "),e._m(2,!0)])]):e._e(),e._v(" "),"B2"==t.key?r("div",[3==parseInt(t.templateType)?r("div",{staticClass:"customicon"},[e._l(t.data,function(n,i){return[1==n.status?r("div",{key:i,staticClass:"customicon-item",class:{dataiconflex:3==parseInt(t.amount)}},[r("p",{style:{color:n.fontColor}},[e._v("0")]),e._v(" "),r("p",{style:{color:n.fontColor}},[r("span",[e._v(e._s(n.title))])])]):e._e()]})],2):e._e(),e._v(" "),3!==parseInt(t.templateType)?r("div",{staticClass:"customicon"},[r("ul",{staticStyle:{width:"100%"}},[e._l(t.data,function(i,a){return[1==i.status?r("li",{key:a,staticClass:"crossbar-list",style:[{background:t.backgroundColor}]},[1==parseInt(t.templateType)?r("span",{staticClass:"crossbar-icon1"},[i.qcloudImageUrl?r("img",{attrs:{width:"20",height:"20",src:i.qcloudImageUrl,alt:""}}):r("img",{attrs:{width:"20",height:"20",src:n("JoZn"),alt:""}})]):e._e(),e._v(" "),r("span",{staticClass:"crossbar-icon2",style:[{color:t.fontColor}]},[r("span",[e._v(e._s(i.title))])]),e._v(" "),r("span",{staticClass:"crossbar-icon3"},[e._v("0")])]):e._e()]})],2)]):e._e()]):e._e()],1)})],2)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"integral-list-item"},[t("p",{staticClass:"integral-num"},[this._v("10000")]),this._v(" "),t("p",{staticClass:"integral-item-title"},[this._v("可用积分")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"integral-list-item"},[t("p",{staticClass:"integral-num"},[this._v("300")]),this._v(" "),t("p",{staticClass:"integral-item-title"},[this._v("冻结积分")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"integral-list-bottom",staticStyle:{overflow:"hidden"}},[t("img",{attrs:{width:"353",height:"85",src:n("iJ33")}})])}]};var ee={name:"center-config",props:{},components:{singleUploadCenter:P,limitInput:v,tinymceEdit:Q,appTemplate:n("VU/8")(X,Z,!1,function(e){n("9DIu")},"data-v-b0ac7298",null).exports},data:function(){var e=this;return{loading:!1,activeInfoData:{headUrl:"",shareBackColor:"#1890ff",shareFontColor:"#ffffff",shareButtonFont:"立即分享赢福利",activityIntroduceMode:"1",activityIntroduceId:"",activityIntroduceDetail:""},markingList:[],rules:{shareButtonFont:[{required:!0,message:"请输入分享按钮文案",trigger:"blur"}],activityIntroduceId:[{validator:function(t,n,r){""===n&&2==e.activeInfoData.activityIntroduceMode?r(new Error("选择图文模板")):r()},trigger:"blur"}]},templateData:[]}},methods:{changeMode:function(e){this.activeInfoData.activityIntroduceDetail="",this.activeInfoData.activityIntroduceId="",2==e&&(this.activeInfoData.activityIntroduceDetail=[],this.getMarkingList())},changePage:function(e){var t=this,n={pageId:e};Object(y.a)("/api-admin/page-detail",n).then(function(e){var n=e.data;if(0==n.errorCode)return n.result.value&&n.result.value.length&&n.result.value.forEach(function(e){"A3"==e.key&&(e.lineSetting=JSON.parse(e.lineSetting))}),t.templateData=JSON.parse(l()(n.result.value))||[],2==t.activeInfoData.activityIntroduceMode&&(t.activeInfoData.activityIntroduceDetail=JSON.parse(l()(n.result.value))),!1;b.a.errorMsg(n)}).catch(function(e){t.$message.error({duration:2500,message:e.message})})},changeEditor:function(e){this.activeInfoData.activityIntroduceDetail=e},getMarkingList:function(){var e=this;Object(y.a)("/sharing-core-web/list-marking-page",{}).then(function(t){var n=t.data;if(1==n.errorCode)return e.markingList=n.result||[],!1;b.a.errorMsg(n)}).catch(function(t){e.$message.error({duration:2500,message:t.message})})},submitBack:function(){this.$store.dispatch("saveCenterInfo",this.activeInfoData),this.$emit("submitBack")},submitForm:function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.$route.query.hasOwnProperty("editFlag")?(t.$emit("submitNext",t.activeInfoData),t.$store.dispatch("saveCenterInfo",t.activeInfoData)):t.postSave()})},postSave:function(){var e=this,t=this,n={activityId:t.activeInfoData.activityId,headUrl:t.activeInfoData.headUrl,shareBackColor:t.activeInfoData.shareBackColor,shareFontColor:t.activeInfoData.shareFontColor,shareButtonFont:t.activeInfoData.shareButtonFont,activityIntroduceMode:t.activeInfoData.activityIntroduceMode,activityIntroduceDetail:2==t.activeInfoData.activityIntroduceMode?l()(t.activeInfoData.activityIntroduceDetail):t.activeInfoData.activityIntroduceDetail,activityIntroduceId:t.activeInfoData.activityIntroduceId};this.loading=!0,Object(y.c)("/sharing-core-web/edit-activity-center",n).then(function(e){var n=e.data;if(1==n.errorCode)return t.$emit("submitNext",t.activeInfoData),void t.$store.dispatch("saveCenterInfo",t.activeInfoData);b.a.errorMsg(n)}).catch(function(e){t.$message.error({duration:2500,message:e.message})}).finally(function(){setTimeout(function(){e.loading=!1},500)})},getData:function(){var e=this,t={activityId:e.$route.query.activityId};Object(y.a)("/sharing-core-web/get-activity-center",t).then(function(t){var n=t.data;if(1==n.errorCode)return!!n.result&&(n.result.activityIntroduceMode=String(n.result.activityIntroduceMode),e.activeInfoData=n.result,e.getMarkingList(),e.changePage(e.activeInfoData.activityIntroduceId),!1);b.a.errorMsg(n)}).catch(function(t){e.$message.error({duration:2500,message:t.message})})}},mounted:function(){var e=this;e.$route.query.hasOwnProperty("activityId")&&e.getData(),s()(e.$store.state.baseInfo).length&&(e.activeInfoData.activityId=JSON.parse(l()(e.$store.state.baseInfo)).activityId),s()(e.$store.state.centerInfo).length&&e.$nextTick(function(){e.activeInfoData=JSON.parse(l()(e.$store.state.centerInfo)),2==e.$store.state.centerInfo.activityIntroduceMode&&(e.getMarkingList(),e.changePage(e.activeInfoData.activityIntroduceId))})}},te={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"center-config-content"},[n("div",{staticClass:"config-title font-14 color-303133"},[e._v("活动中心配置")]),e._v(" "),e._m(0),e._v(" "),n("div",{staticClass:"form-wrap flex"},[n("el-form",{ref:"centerForm",attrs:{"label-width":"144px",model:e.activeInfoData,rules:e.rules}},[n("el-form-item",{attrs:{label:"头图上传：",prop:""}},[n("single-upload-center",{attrs:{disabled:!!e.$route.query.hasOwnProperty("editFlag"),width:750},model:{value:e.activeInfoData.headUrl,callback:function(t){e.$set(e.activeInfoData,"headUrl",t)},expression:"activeInfoData.headUrl"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"分享按钮：",prop:""}},[n("div",{staticClass:"flex"},[n("span",{staticClass:"color-wrap flex flex-pack-center flex-space-between border-box"},[e._v("背景色"),n("el-color-picker",{attrs:{disabled:!!e.$route.query.hasOwnProperty("editFlag")},model:{value:e.activeInfoData.shareBackColor,callback:function(t){e.$set(e.activeInfoData,"shareBackColor",t)},expression:"activeInfoData.shareBackColor"}})],1),n("span",{staticClass:"color-wrap flex flex-space-between flex-pack-center border-box"},[e._v("文字色"),n("el-color-picker",{attrs:{disabled:!!e.$route.query.hasOwnProperty("editFlag")},model:{value:e.activeInfoData.shareFontColor,callback:function(t){e.$set(e.activeInfoData,"shareFontColor",t)},expression:"activeInfoData.shareFontColor"}})],1)])]),e._v(" "),n("el-form-item",{attrs:{label:"分享按钮文案：",prop:"shareButtonFont"}},[n("limitInput",{attrs:{inputWidth:394,disflag:!!e.$route.query.editFlag,inputValue:e.activeInfoData.shareButtonFont,holder:"请输入分享按钮文案",getByType:"char",maxLength:20},on:{"update:inputValue":function(t){return e.$set(e.activeInfoData,"shareButtonFont",t)},"update:input-value":function(t){return e.$set(e.activeInfoData,"shareButtonFont",t)}}})],1),e._v(" "),n("el-form-item",{attrs:{label:"活动介绍展现模式：",prop:"activityIntroduceMode"}},[n("el-radio-group",{attrs:{disabled:!!e.$route.query.hasOwnProperty("editFlag")},on:{change:e.changeMode},model:{value:e.activeInfoData.activityIntroduceMode,callback:function(t){e.$set(e.activeInfoData,"activityIntroduceMode",t)},expression:"activeInfoData.activityIntroduceMode"}},[n("el-radio",{attrs:{label:"1"}},[e._v("文字模式")]),e._v(" "),n("el-radio",{attrs:{label:"2"}},[e._v("图文模式")])],1)],1),e._v(" "),1==e.activeInfoData.activityIntroduceMode?n("el-form-item",{attrs:{label:"活动介绍文案：",prop:""}},[n("div",{staticClass:"w-400"},[n("tinymce-edit",{ref:"tinymceWrap",attrs:{disabledEdit:!!e.$route.query.editFlag,bodyHtml:e.activeInfoData.activityIntroduceDetail},on:{changeEditor:e.changeEditor}})],1)]):e._e(),e._v(" "),2==e.activeInfoData.activityIntroduceMode?n("el-form-item",{attrs:{label:"选择图文模板：",prop:"activityIntroduceId"}},[n("el-select",{attrs:{disabled:!!e.$route.query.hasOwnProperty("editFlag"),size:"large",placeholder:"请选择自定义页面"},on:{change:e.changePage},model:{value:e.activeInfoData.activityIntroduceId,callback:function(t){e.$set(e.activeInfoData,"activityIntroduceId",t)},expression:"activeInfoData.activityIntroduceId"}},e._l(e.markingList,function(e){return n("el-option",{key:e.pageId,attrs:{label:e.name,value:e.pageId}})}),1)],1):e._e(),e._v(" "),n("el-form-item",{staticClass:"m-t-50"},[n("el-button",{attrs:{type:"primary"},on:{click:e.submitBack}},[e._v("上一步")]),e._v(" "),n("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:function(t){return e.submitForm("centerForm")}}},[e._v("下一步")])],1)],1),e._v(" "),n("div",{staticClass:"form-preview"},[n("div",{staticClass:"form-preview-wrap"},[n("div",{staticClass:"form-preview-inner"},[n("div",{staticClass:"form-preview-body"},[n("div",{staticClass:"form-preview-body_top"},[n("img",{attrs:{src:e.activeInfoData.headUrl,alt:""}})]),e._v(" "),n("div",{staticClass:"form-preview-body_middle border-box"},[n("div",{staticClass:"form-preview-body_content"},[n("div",{staticClass:"form-preview-btn",style:{background:e.activeInfoData.shareBackColor,color:e.activeInfoData.shareFontColor}},[e._v(e._s(e.activeInfoData.shareButtonFont))])])]),e._v(" "),n("div",{staticClass:"form-preview-body_rules border-box"},[n("div",{staticClass:"rules-title"},[e._v("活动规则")]),e._v(" "),1==e.activeInfoData.activityIntroduceMode?n("div",{staticClass:"rules-body",domProps:{innerHTML:e._s(e.activeInfoData.activityIntroduceDetail)}}):e._e(),e._v(" "),2==e.activeInfoData.activityIntroduceMode?n("app-template",{attrs:{templateData:e.templateData}}):e._e()],1)])])])])],1)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[t("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2F54EB"}),this._v(" "),t("div",{staticClass:"el-alert__content"},[t("span",{staticClass:"el-alert__title color-606266 font-14 font-w-400"},[this._v("1. 活动中心是邀请人访问的页面，用于介绍活动和奖励规则，展示受邀人清单和奖励信息。"),t("br"),this._v("\n        2. 当前活动的转化路径以服务号作为受邀人入口，邀请人可在活动中心一键保存服务号的带二维码海报，以实现朋友圈转发。")])])])}]};var ne=n("VU/8")(ee,te,!1,function(e){n("wSDZ")},"data-v-02775a8a",null).exports,re={name:"single-upload",components:{vueGicImgPreview:Y},props:{value:{type:String,default:""},uploadLimit:{type:Number,default:1},limitFlag:{type:[Number,String],default:1},limitRate:{type:[Number,String],default:2},width:{type:Number,default:300},height:{type:Number,default:300},disabled:{type:Boolean,default:!1}},data:function(){return{projectName:"",imgShowFlag:!1,imgUrl:""}},beforeMount:function(){var e=window.location.origin;-1!=e.indexOf("localhost")?this.baseUrl="http://gicdev.demogic.com":this.baseUrl=e},methods:{uploadUrl:function(){var e=window.location.origin,t=void 0;return t="-1"!=e.indexOf("localhost")?"http://gicdev.demogic.com":e,this.upUrl=t+"/sharing-core-web/upload?requestProject=share-config&wxFlag=1",this.upUrl},handleAvatarSuccess:function(e,t,n){1==e.errorCode?(this.$emit("input",e.result.url),this.$emit("returnName",e.result.name)):b.a.errorMsg(e)},beforeAvatarUpload:function(e){var t=this,n="image/jpeg"===e.type||"image/jpg"===e.type,r=e.size/1024/1024<t.uploadLimit;return n||t.$message.error("上传图片只能是 JPG 格式!"),r||t.$message.error("上传图片大小不能超过 "+t.uploadLimit+"MB!"),n&&r&&new C.a(function(n,r){var i=new FileReader;i.onload=function(e){var i=new Image;i.onload=function(){var e=this.width,i=this.height;2!=t.limitFlag||e===t.width&&i===t.height||(t.$message.error("图片尺寸必须为"+t.width+"*"+t.height+"px"),r()),1==t.limitFlag&&(e<t.width||e/i>t.limitRate)&&(t.$message.error("图片宽度必须≥"+t.width+"px,宽高比≤"+t.limitRate+"!"),r()),3==t.limitFlag&&(e<t.width||e/i>5/4)&&(t.$message.error("图片宽度必须≥"+t.width+"px,宽高比≤5/4!"),r()),n()},i.src=e.target.result},i.readAsDataURL(e)})},showImage:function(e){if(!e||""==e)return!1;this.imgShowFlag=!0,this.imgUrl=e},hideImage:function(e){this.imgShowFlag=e}}},ie={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"single-upload-wrap"},[n("el-upload",{staticClass:"avatar-uploader",attrs:{disabled:e.disabled,action:e.uploadUrl(),"show-file-list":!1,"on-success":e.handleAvatarSuccess,"before-upload":e.beforeAvatarUpload}},[e.value?n("img",{staticClass:"avatar",attrs:{src:e.value},on:{mouseover:function(t){return e.showImage(e.value)}}}):n("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]),e._v(" "),n("p",{staticClass:"upload-tip w-500"},[e._v("\n    宽度≥"+e._s(e.width)+"px，宽高比≤"+e._s(e.limitRate)+"，"+e._s(750==e.width?"750px*300px（推荐尺寸），":600==e.width?"600px*480px（推荐尺寸），":"")+"大小不超过1M，仅限JPG格式。\n  ")]),e._v(" "),n("vue-gic-img-preview",{attrs:{imgUrl:e.imgUrl,imgShowFlag:e.imgShowFlag},on:{hideImage:e.hideImage}})],1)},staticRenderFns:[]};var ae={name:"card-config",props:{},components:{limitInput:v,singleUpload:n("VU/8")(re,ie,!1,function(e){n("mYlr")},"data-v-0e328d87",null).exports},data:function(){return{loading:!1,activeInfoData:{appletTitle:"",playBillUrl:"",fileName:""},rules:{appletTitle:[{required:!0,message:"请输入页面标题",trigger:"blur"}],playBillUrl:[{required:!0,message:"请上传海报图片",trigger:"blur"}]}}},methods:{returnName:function(e){this.activeInfoData.fileName=e},submitBack:function(){this.$store.dispatch("saveCardInfo",this.activeInfoData),this.$emit("submitBack")},submitForm:function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.$route.query.hasOwnProperty("editFlag")?(t.$emit("submitNext",t.activeInfoData),t.$store.dispatch("saveCardInfo",t.activeInfoData)):t.postSave()})},postSave:function(){var e=this,t=this,n={activityId:t.activeInfoData.activityId,playBillUrl:t.activeInfoData.playBillUrl,appletTitle:t.activeInfoData.appletTitle,fileName:t.activeInfoData.fileName?t.activeInfoData.fileName:""};this.loading=!0,Object(y.c)("/sharing-core-web/edit-activity-applet",n).then(function(e){var n=e.data;if(1==n.errorCode)return t.$emit("submitNext",t.activeInfoData),void t.$store.dispatch("saveCardInfo",t.activeInfoData);b.a.errorMsg(n)}).catch(function(e){t.$message.error({duration:2500,message:e.message})}).finally(function(){setTimeout(function(){e.loading=!1},500)})},getData:function(e){var t=this,n={activityId:e||t.$route.query.activityId};Object(y.a)("/sharing-core-web/get-activity-applet",n).then(function(e){var n=e.data;if(1==n.errorCode)return!!n.result&&(t.activeInfoData=n.result,!1);b.a.errorMsg(n)}).catch(function(e){t.$message.error({duration:2500,message:e.message})})}},mounted:function(){var e=this;e.$route.query.hasOwnProperty("activityId")&&e.getData(),s()(e.$store.state.baseInfo).length&&(e.activeInfoData.activityId=JSON.parse(l()(e.$store.state.baseInfo)).activityId),s()(e.$store.state.cardInfo).length&&e.$nextTick(function(){e.activeInfoData=JSON.parse(l()(e.$store.state.cardInfo))})}},oe={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"card-config-content"},[n("div",{staticClass:"config-title font-14 color-303133"},[e._v("小程序卡片配置")]),e._v(" "),e._m(0),e._v(" "),n("div",{staticClass:"form-wrap flex"},[n("el-form",{ref:"cardForm",attrs:{"label-width":"114px",model:e.activeInfoData,rules:e.rules}},[n("el-form-item",{attrs:{label:"页面标题：",prop:"appletTitle"}},[n("limitInput",{attrs:{inputWidth:503,disflag:e.$route.query.editFlag,inputValue:e.activeInfoData.appletTitle,holder:"请输入页面标题",getByType:"char",maxLength:40},on:{"update:inputValue":function(t){return e.$set(e.activeInfoData,"appletTitle",t)},"update:input-value":function(t){return e.$set(e.activeInfoData,"appletTitle",t)}}})],1),e._v(" "),n("el-form-item",{attrs:{label:"海报上传：",prop:"playBillUrl"}},[n("single-upload",{attrs:{width:600,disabled:e.$route.query.editFlag,limitRate:"5/4",limitFlag:3},on:{returnName:e.returnName},model:{value:e.activeInfoData.playBillUrl,callback:function(t){e.$set(e.activeInfoData,"playBillUrl",t)},expression:"activeInfoData.playBillUrl"}})],1),e._v(" "),n("el-form-item",{staticClass:"m-t-50"},[n("el-button",{attrs:{type:"primary"},on:{click:e.submitBack}},[e._v("上一步")]),e._v(" "),n("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:function(t){return e.submitForm("cardForm")}}},[e._v("下一步")])],1)],1),e._v(" "),n("div",{staticClass:"form-preview"},[n("div",{staticClass:"form-preview-top font-14 color-303133"},[e._v("效果预览")]),e._v(" "),n("div",{staticClass:"form-preview-body"},[n("div",{staticClass:"form-preview-inner"},[n("div",{staticClass:"form-preview-title"},[e._v(e._s(e.activeInfoData.appletTitle))]),e._v(" "),n("div",{staticClass:"form-preview-img flex flex-pack-center flex-align-center"},[n("img",{attrs:{src:e.activeInfoData.playBillUrl,alt:""}})])])])])],1)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[t("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2F54EB"}),this._v(" "),t("div",{staticClass:"el-alert__content"},[t("span",{staticClass:"el-alert__title color-606266 font-14 font-w-400"},[this._v("1. 邀请人可在活动中心一键转发【会员认证流程】的小程序卡片给微信好友，请对小程序卡片的样式进行设置。优秀的活动标题和封面图可以大幅提升受邀人的参与积极性！"),t("br"),this._v("\n        2. 受邀人服务号关注后，系统将自动发送【会员认证流程】的小程序卡片，请对小程序卡片的样式进行设置。优秀的活动标题和封面图可以大幅提升受邀人的参与积极性！")])])])}]};var se=n("VU/8")(ae,oe,!1,function(e){n("9fvS")},"data-v-36ff2175",null).exports,ue={name:"single-upload",components:{vueGicImgPreview:Y},props:{value:{type:String,default:""},uploadLimit:{type:Number,default:2},limitFlag:{type:[Number,String],default:2},width:{type:Number,default:300},height:{type:Number,default:300},disabled:{type:Boolean,default:!1}},data:function(){return{projectName:"",imgShowFlag:!1,imgUrl:""}},beforeMount:function(){var e=window.location.origin;-1!=e.indexOf("localhost")?this.baseUrl="http://gicdev.demogic.com":this.baseUrl=e},methods:{uploadUrl:function(){var e=window.location.origin,t=void 0;return t="-1"!=e.indexOf("localhost")?"http://gicdev.demogic.com":e,this.upUrl=t+"/sharing-core-web/upload?requestProject=share-config&wxFlag=1",this.upUrl},handleAvatarSuccess:function(e,t,n){1==e.errorCode?this.$emit("input",e.result.url):b.a.errorMsg(e)},beforeAvatarUpload:function(e){var t=this,n="image/jpeg"===e.type||"image/jpg"===e.type,r=e.size/1024/1024<t.uploadLimit;return n||t.$message.error("上传图片只能是 JPG 格式!"),r||t.$message.error("上传图片大小不能超过 "+t.uploadLimit+"MB!"),n&&r&&new C.a(function(n,r){var i=new FileReader;i.onload=function(e){var i=new Image;i.onload=function(){var e=this.width,i=this.height;2!=t.limitFlag||e===t.width&&i===t.height||(t.$message.error("图片尺寸必须为"+t.width+"*"+t.height+"px!"),r()),1==t.limitFlag&&(e<t.width||i<t.height)&&(t.$message.error("图片尺寸必须≥"+t.width+"*"+t.height+"px!"),r()),n()},i.src=e.target.result},i.readAsDataURL(e)})},showImage:function(e){if(!e||""==e)return!1;this.imgShowFlag=!0,this.imgUrl=e},hideImage:function(e){this.imgShowFlag=e}}},le={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"single-upload-wrap"},[n("el-upload",{staticClass:"avatar-uploader",attrs:{disabled:e.disabled,action:e.uploadUrl(),"show-file-list":!1,"on-success":e.handleAvatarSuccess,"before-upload":e.beforeAvatarUpload}},[e.value?n("img",{staticClass:"avatar",attrs:{src:e.value},on:{mouseover:function(t){return e.showImage(e.value)}}}):n("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]),e._v(" "),n("p",{staticClass:"upload-tip w-500"},[e._v("\n    图片规格630*800px，大小不超过"+e._s(e.uploadLimit)+"M，仅限JPG格式。\n  ")]),e._v(" "),e._m(0),e._v(" "),n("p",{staticClass:"upload-tip"},[e._v("如果设计师还没有设计好图片，可以先跳过该步骤，先保存活动配置。")]),e._v(" "),n("vue-gic-img-preview",{attrs:{imgUrl:e.imgUrl,imgShowFlag:e.imgShowFlag},on:{hideImage:e.hideImage}})],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("p",{staticClass:"upload-tip"},[this._v("为了确保二维码位置的准确，建议"),t("a",{staticClass:"color-2F54EB",attrs:{href:"https://report-1251519181.cos.ap-shanghai.myqcloud.com/haoban/20200102144544/模板.psd",download:"post.psd"}},[this._v(" 下载模板")]),this._v(" 基于模板进行海报设计。")])}]};var ce=n("VU/8")(ue,le,!1,function(e){n("gXxP")},"data-v-89250d52",null).exports,de=n("7tms"),fe={name:"poster-config",props:{},components:{postUpload:ce,qrcode:n.n(de).a},data:function(){return{loading:!1,activeInfoData:{playBillUrl:"",templateType:"1",qrcodeBackColor:"#ffffff",qrcodeFrontColor:"#000000",qrcodePadding:"1",activityId:""},rules:{playBillUrl:[{required:!0,message:"请上传海报图片",trigger:"blur"}]},qrcodeOption:{width:200,margin:.5,color:{dark:"#000000",light:"#ffffff"}}}},methods:{changeQrcode:function(){this.qrcodeOption={width:200,margin:this.activeInfoData.qrcodePadding/2,color:{dark:this.activeInfoData.qrcodeFrontColor,light:this.activeInfoData.qrcodeBackColor}}},selectTemplate:function(e){this.activeInfoData.templateType=e,this.qrcodeOption=4==e?{width:150,margin:this.activeInfoData.qrcodePadding/2,color:{dark:this.activeInfoData.qrcodeFrontColor,light:this.activeInfoData.qrcodeBackColor}}:{width:200,margin:this.activeInfoData.qrcodePadding/2,color:{dark:this.activeInfoData.qrcodeFrontColor,light:this.activeInfoData.qrcodeBackColor}}},submitBack:function(){this.$store.dispatch("savePosterInfo",this.activeInfoData),this.$emit("submitBack")},submitForm:function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.$route.query.hasOwnProperty("editFlag")?(t.$emit("submitNext",t.activeInfoData),t.$store.dispatch("savePosterInfo",t.activeInfoData)):t.postSave()})},postSave:function(){var e=this,t=this,n={activityId:t.activeInfoData.activityId,playBillUrl:t.activeInfoData.playBillUrl,templateType:t.activeInfoData.templateType,qrcodeBackColor:t.activeInfoData.qrcodeBackColor,qrcodeFrontColor:t.activeInfoData.qrcodeFrontColor,qrcodePadding:t.activeInfoData.qrcodePadding};this.loading=!0,Object(y.c)("/sharing-core-web/edit-activity-share",n).then(function(e){var n=e.data;if(1==n.errorCode)return t.$emit("submitNext",t.activeInfoData),void t.$store.dispatch("savePosterInfo",t.activeInfoData);b.a.errorMsg(n)}).catch(function(e){t.$message.error({duration:2500,message:e.message})}).finally(function(){setTimeout(function(){e.loading=!1},500)})},getData:function(e){var t=this,n={activityId:e||t.$route.query.activityId};Object(y.a)("/sharing-core-web/get-activity-share",n).then(function(e){var n=e.data;if(1==n.errorCode)return!!n.result&&(t.activeInfoData=n.result,t.qrcodeOption={width:200,margin:t.activeInfoData.qrcodePadding/2,color:{dark:t.activeInfoData.qrcodeFrontColor,light:t.activeInfoData.qrcodeBackColor}},!1);b.a.errorMsg(n)}).catch(function(e){t.$message.error({duration:2500,message:e.message})})}},mounted:function(){var e=this;e.$route.query.hasOwnProperty("activityId")&&e.getData(),s()(e.$store.state.baseInfo).length&&(e.activeInfoData.activityId=JSON.parse(l()(e.$store.state.baseInfo)).activityId),s()(e.$store.state.posterInfo).length&&e.$nextTick(function(){e.activeInfoData=JSON.parse(l()(e.$store.state.posterInfo)),e.qrcodeOption={width:100,margin:e.activeInfoData.qrcodePadding/2,color:{dark:e.activeInfoData.qrcodeFrontColor,light:e.activeInfoData.qrcodeBackColor}}})}},me={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"poster-config-content"},[r("div",{staticClass:"config-title font-14 color-303133"},[e._v("分享海报配置")]),e._v(" "),e._m(0),e._v(" "),r("div",{staticClass:"form-wrap flex"},[r("el-form",{ref:"posterForm",attrs:{"label-width":"114px",model:e.activeInfoData,rules:e.rules}},[r("el-form-item",{attrs:{label:"模板选择：",prop:""}},[r("div",{staticClass:"template-body"},[r("ul",{staticClass:"flex"},[r("li",{class:["border-box ",1==e.activeInfoData.templateType?"select-li":""],on:{click:function(t){return e.selectTemplate(1)}}},[r("img",{attrs:{src:n("u5VQ"),alt:""}}),e._v(" "),r("div",{staticClass:"common-cell-check"},[r("div",{staticClass:"common-cell-triangle"},[r("div",{staticClass:"common-cell-outer"},[r("i",{staticClass:"el-icon-upload-success el-icon-check"})])])])]),e._v(" "),r("li",{class:["m-l-10 border-box flex flex-align-center",2==e.activeInfoData.templateType?"select-li":""],on:{click:function(t){return e.selectTemplate(2)}}},[r("img",{attrs:{src:n("u5VQ"),alt:""}}),e._v(" "),r("div",{staticClass:"common-cell-check"},[r("div",{staticClass:"common-cell-triangle"},[r("div",{staticClass:"common-cell-outer"},[r("i",{staticClass:"el-icon-upload-success el-icon-check"})])])])]),e._v(" "),r("li",{class:["m-l-10 border-box flex flex-align-end",3==e.activeInfoData.templateType?"select-li":""],on:{click:function(t){return e.selectTemplate(3)}}},[r("img",{attrs:{src:n("u5VQ"),alt:""}}),e._v(" "),r("div",{staticClass:"common-cell-check"},[r("div",{staticClass:"common-cell-triangle"},[r("div",{staticClass:"common-cell-outer"},[r("i",{staticClass:"el-icon-upload-success el-icon-check"})])])])]),e._v(" "),r("li",{class:["m-l-10 border-box  flex flex-align-end flex-pack-end",4==e.activeInfoData.templateType?"select-li":""],on:{click:function(t){return e.selectTemplate(4)}}},[r("img",{staticClass:"w-24",attrs:{src:n("u5VQ"),alt:""}}),e._v(" "),r("div",{staticClass:"common-cell-check"},[r("div",{staticClass:"common-cell-triangle"},[r("div",{staticClass:"common-cell-outer"},[r("i",{staticClass:"el-icon-upload-success el-icon-check"})])])])])])])]),e._v(" "),r("el-form-item",{attrs:{label:"海报上传：",prop:""}},[r("post-upload",{attrs:{disabled:e.$route.query.editFlag,limitFlag:2,width:630,height:800},model:{value:e.activeInfoData.playBillUrl,callback:function(t){e.$set(e.activeInfoData,"playBillUrl",t)},expression:"activeInfoData.playBillUrl"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"二维码配置：",prop:""}},[r("div",{staticClass:"item-bg border-box"},[r("div",{staticClass:"flex"},[r("span",{staticClass:"color-wrap flex flex-pack-center flex-space-between border-box"},[e._v("前景色"),r("el-color-picker",{attrs:{disabled:e.$route.query.editFlag},on:{change:e.changeQrcode},model:{value:e.activeInfoData.qrcodeFrontColor,callback:function(t){e.$set(e.activeInfoData,"qrcodeFrontColor",t)},expression:"activeInfoData.qrcodeFrontColor"}})],1),r("span",{staticClass:"color-wrap flex flex-space-between flex-pack-center border-box"},[e._v("背景色"),r("el-color-picker",{attrs:{disabled:e.$route.query.editFlag},on:{change:e.changeQrcode},model:{value:e.activeInfoData.qrcodeBackColor,callback:function(t){e.$set(e.activeInfoData,"qrcodeBackColor",t)},expression:"activeInfoData.qrcodeBackColor"}})],1),e._v(" "),r("span",{staticClass:"font-14 color-606266 p-l-20"},[e._v("内边距")]),e._v(" "),r("el-input-number",{staticClass:"w-90 m-l-20",attrs:{disabled:e.$route.query.editFlag,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:40},on:{change:e.changeQrcode},model:{value:e.activeInfoData.qrcodePadding,callback:function(t){e.$set(e.activeInfoData,"qrcodePadding",t)},expression:"activeInfoData.qrcodePadding"}})],1)])]),e._v(" "),r("el-form-item",{staticClass:"m-t-50"},[r("el-button",{attrs:{type:"primary"},on:{click:e.submitBack}},[e._v("上一步")]),e._v(" "),r("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:function(t){return e.submitForm("posterForm")}}},[e._v("下一步")])],1)],1),e._v(" "),r("div",{staticClass:"form-preview"},[r("div",{staticClass:"form-preview-top font-14 color-303133"},[e._v("效果预览")]),e._v(" "),r("div",{staticClass:"form-preview-body",style:{backgroundImage:"url("+e.activeInfoData.playBillUrl+")",backgroundSize:"100%"}},[r("ul",[r("li",{class:["border-box",1==e.activeInfoData.templateType?"text-center":"",2==e.activeInfoData.templateType?"flex flex-align-center flex-pack-center":3==e.activeInfoData.templateType?"flex flex-align-end flex-pack-center":4==e.activeInfoData.templateType?"flex flex-align-end flex-pack-end li-50":""]},[r("qrcode",{attrs:{value:"123456",options:e.qrcodeOption}})],1)])])])],1)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[t("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2F54EB"}),this._v(" "),t("div",{staticClass:"el-alert__content"},[t("span",{staticClass:"el-alert__title color-606266 font-14 font-w-400"},[this._v("1. 当前活动的转化路径以小程序作为受邀人入口，邀请人可在活动中心一键保存小程序带二维码海报以实现朋友圈转发。 "),t("br"),this._v("\n        2. 请对分享海报进行配置，一张生动而有感染力的活动海报，是活动成败的关键！")])])])}]};var he=n("VU/8")(fe,me,!1,function(e){n("JUaT")},"data-v-4deeaf80",null).exports,pe=n("Xxa5"),ge=n.n(pe),_e=n("exGp"),ve=n.n(_e),ye={name:"consume-config",props:{value:{type:[Object,Array],default:function(){return{consumeStoreControlFlag:0,consumeStoreName:"",dealAmountControlFlag:0,dealAmountControlMin:1,dealAmountControlMax:1,singleDealNumberControlFlag:0,singleDealNumberControlMin:1,singleDealNumberControlMax:1,uuid:"",storeList:[],stepType:1}}}},components:{limitInput:v},data:function(){return{consumeAction:{consumeStoreControlFlag:0,consumeStoreName:"",dealAmountControlFlag:0,dealAmountControlMin:1,dealAmountControlMax:1,singleDealNumberControlFlag:0,singleDealNumberControlMin:1,singleDealNumberControlMax:1,uuid:"",storeList:[],stepType:1},consumeStoreData:[{goalId:0,goalName:"不予控制",describe:"不对消费门店作要求，即在全国任意门店消费都满足条件。"},{goalId:1,goalName:"消费门店控制",describe:"满足要求的门店范围，受邀人只有在范围内的门店消费，才有资格被计为有效消费行为。"}],dealAmountData:[{goalId:0,goalName:"不予控制",describe:"不对订单的成交金额作要求，即消费任意金额（大于0）都算满足条件。"},{goalId:1,goalName:"成交额控制",describe:"满足要求的成交额范围，受邀人的成交额只有满足该范围，才有资格被计为有效消费行为。"}],singleDealData:[{goalId:0,goalName:"不予控制",describe:"不对订单的成交商品件数作要求，即消费任意商品件数都算满足条件。"},{goalId:1,goalName:"成交件数控制",describe:"满足要求的成交件数范围，受邀人的成交件数只有满足该范围，才有资格被计为有效消费行为。"}],goalName:""}},methods:{submitForm:function(){var e=this;return e.consumeAction.storeList=0==e.consumeAction.consumeStoreControlFlag?[]:e.$refs.storeCard.rightList,new C.a(function(t,n){e.$refs.consumeForm.validate(function(n){n?(e.consumeAction.storeList=0==e.consumeAction.consumeStoreControlFlag?[]:e.$refs.storeCard.rightList,e.$emit("input",e.consumeAction),1!=e.consumeAction.consumeStoreControlFlag||e.consumeAction.storeList&&e.consumeAction.storeList.length&&e.consumeAction.consumeStoreName||t({flag:!1,msg:"请完善消费行为控制中的消费门店控制"}),1!=e.consumeAction.dealAmountControlFlag||e.consumeAction.dealAmountControlMin&&e.consumeAction.dealAmountControlMax||t({flag:!1,msg:"请完善消费行为控制中的成交额控制"}),1!=e.consumeAction.singleDealNumberControlFlag||e.consumeAction.singleDealNumberControlMin&&e.consumeAction.singleDealNumberControlMax||t({flag:!1,msg:"请完善消费行为控制中的单笔成交件数控制"}),t(e.consumeAction)):t(!1)})})},selectStore:function(e){if(this.$route.query.hasOwnProperty("editFlag"))return!1;this.consumeAction.consumeStoreControlFlag=e.goalId},selectMoney:function(e){if(this.$route.query.hasOwnProperty("editFlag"))return!1;this.consumeAction.dealAmountControlFlag=e.goalId},selectNumber:function(e){if(this.$route.query.hasOwnProperty("editFlag"))return!1;this.consumeAction.singleDealNumberControlFlag=e.goalId}},watch:{value:function(e){this.consumeAction=JSON.parse(l()(e))}},mounted:function(){this.consumeAction=JSON.parse(l()(this.value)),s()(this.$store.state.baseInfo).length&&(this.goalName=JSON.parse(l()(this.$store.state.baseInfo)).goalName,console.log(this.goalName))}},be={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"consume-config border-box"},[n("el-form",{ref:"consumeForm",attrs:{"label-width":"154px",model:e.consumeAction,rules:e.rules}},[e.goalName.includes("全渠道")||e.goalName.includes("线下门店")?n("el-form-item",{attrs:{label:"消费门店控制：",prop:""}},[n("ul",{staticClass:"flex "},[e._l(e.consumeStoreData,function(t,r){return[n("li",{key:r+"first",class:["li-cell li-second-cell flex-1 ",e.consumeAction.consumeStoreControlFlag==t.goalId?"li-second-active":""],on:{click:function(n){return e.selectStore(t)}}},[n("div",{staticClass:"li-cell-inner"},[n("div",{staticClass:"li-cell-bottom border-box"},[n("div",{staticClass:"li-cell-scene"},[n("div",{staticClass:"li-cell-scene_title font-14 color-303133"},[e._v(e._s(t.goalName))]),e._v(" "),n("div",{staticClass:"li-cell-scene_text font-14 color-606266"},[e._v(e._s(t.describe))])])])]),e._v(" "),n("div",{staticClass:"common-cell-check"},[n("div",{staticClass:"common-cell-triangle"},[n("div",{staticClass:"common-cell-outer"},[n("i",{staticClass:"el-icon-upload-success el-icon-check"})])])])])]})],2),e._v(" "),1==e.consumeAction.consumeStoreControlFlag?n("div",{staticClass:"store-select-wrap"},[n("div",{staticClass:"store-select-title"},[n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},slot:"content"},[e._v("该文案将显示在消费奖励规则中，"),n("br"),e._v("向活动参与者说明消费门店的条件要求，"),n("br"),e._v("请尽量用简洁易懂的描述。")]),e._v(" "),n("span",{staticClass:"font-12 color-606266 cursor-pointer store-title-name"},[e._v("门店条件文案：")])]),e._v(" "),n("limitInput",{attrs:{inputWidth:385,disflag:!!e.$route.query.editFlag,inputValue:e.consumeAction.consumeStoreName,holder:"请输入门店条件文案",getByType:"char",maxLength:30},on:{"update:inputValue":function(t){return e.$set(e.consumeAction,"consumeStoreName",t)},"update:input-value":function(t){return e.$set(e.consumeAction,"consumeStoreName",t)}}})],1),e._v(" "),n("div",{staticClass:"store-select-body"},[n("vue-gic-store-card",{ref:"storeCard",attrs:{isAdd:!e.$route.query.activityId,readonly:!!e.$route.query.editFlag,uuid:e.consumeAction.uuid},on:{"update:uuid":function(t){return e.$set(e.consumeAction,"uuid",t)}}})],1)]):e._e()]):e._e(),e._v(" "),n("el-form-item",{staticClass:"m-t-20",attrs:{label:"成交额控制：",prop:""}},[n("ul",{staticClass:"flex  "},[e._l(e.dealAmountData,function(t,r){return[n("li",{key:r+"first",class:["li-cell li-second-cell flex-1 ",e.consumeAction.dealAmountControlFlag==t.goalId?"li-second-active":""],on:{click:function(n){return e.selectMoney(t)}}},[n("div",{staticClass:"li-cell-inner"},[n("div",{staticClass:"li-cell-bottom border-box"},[n("div",{staticClass:"li-cell-scene"},[n("div",{staticClass:"li-cell-scene_title font-14 color-303133"},[e._v(e._s(t.goalName))]),e._v(" "),n("div",{staticClass:"li-cell-scene_text font-14 color-606266"},[e._v(e._s(t.describe))])])])]),e._v(" "),n("div",{staticClass:"common-cell-check"},[n("div",{staticClass:"common-cell-triangle"},[n("div",{staticClass:"common-cell-outer"},[n("i",{staticClass:"el-icon-upload-success el-icon-check"})])])])])]})],2),e._v(" "),1==e.consumeAction.dealAmountControlFlag?n("div",{staticClass:"store-select-wrap child-select-wrap"},[n("div",{staticClass:"store-select-title"},[n("span",{staticClass:"font-14 color-606266"},[e._v("控制区间：")]),e._v(" "),n("el-input-number",{attrs:{"controls-position":"right",step:1,"step-strictly":!0,min:1,max:999999},model:{value:e.consumeAction.dealAmountControlMin,callback:function(t){e.$set(e.consumeAction,"dealAmountControlMin",t)},expression:"consumeAction.dealAmountControlMin"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266 p-l-3 p-r-10"},[e._v("元 - ")]),e._v(" "),n("el-input-number",{attrs:{"controls-position":"right",step:1,"step-strictly":!0,min:1,max:999999},model:{value:e.consumeAction.dealAmountControlMax,callback:function(t){e.$set(e.consumeAction,"dealAmountControlMax",t)},expression:"consumeAction.dealAmountControlMax"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266"},[e._v("元 ")])],1)]):e._e()]),e._v(" "),n("el-form-item",{staticClass:"m-t-20",attrs:{label:"单笔成交件数控制：",prop:""}},[n("ul",{staticClass:"flex"},[e._l(e.singleDealData,function(t,r){return[n("li",{key:r+"first",class:["li-cell li-second-cell flex-1 ",e.consumeAction.singleDealNumberControlFlag==t.goalId?"li-second-active":""],on:{click:function(n){return e.selectNumber(t)}}},[n("div",{staticClass:"li-cell-inner"},[n("div",{staticClass:"li-cell-bottom border-box"},[n("div",{staticClass:"li-cell-scene"},[n("div",{staticClass:"li-cell-scene_title font-14 color-303133"},[e._v(e._s(t.goalName))]),e._v(" "),n("div",{staticClass:"li-cell-scene_text font-14 color-606266"},[e._v(e._s(t.describe))])])])]),e._v(" "),n("div",{staticClass:"common-cell-check"},[n("div",{staticClass:"common-cell-triangle"},[n("div",{staticClass:"common-cell-outer"},[n("i",{staticClass:"el-icon-upload-success el-icon-check"})])])])])]})],2),e._v(" "),1==e.consumeAction.singleDealNumberControlFlag?n("div",{staticClass:"store-select-wrap child-select-wrap"},[n("div",{staticClass:"store-select-title"},[n("span",{staticClass:"font-14 color-606266"},[e._v("控制区间：")]),e._v(" "),n("el-input-number",{attrs:{"controls-position":"right",step:1,"step-strictly":!0,min:1,max:99},model:{value:e.consumeAction.singleDealNumberControlMin,callback:function(t){e.$set(e.consumeAction,"singleDealNumberControlMin",t)},expression:"consumeAction.singleDealNumberControlMin"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266 p-l-3 p-r-10"},[e._v("件 - ")]),e._v(" "),n("el-input-number",{attrs:{"controls-position":"right",step:1,"step-strictly":!0,min:1,max:99},model:{value:e.consumeAction.singleDealNumberControlMax,callback:function(t){e.$set(e.consumeAction,"singleDealNumberControlMax",t)},expression:"consumeAction.singleDealNumberControlMax"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266"},[e._v("件 ")])],1)]):e._e()])],1)],1)},staticRenderFns:[]};var we=n("VU/8")(ye,be,!1,function(e){n("W2Qn")},"data-v-a7c41ba4",null).exports,Me={name:"spot-award",props:{value:{type:[Object,Array],default:function(){return{instanceMade:1,instancePoint:1,instanceNumber:1,instanceContent:[{start:0,end:5,point:1,infinity:!1},{start:10,end:20,point:1,infinity:!1}],awardLimitType:1,awardLimitNumber:1,awardLimitPoint:1,stepType:1}}},awardMode:{type:[String,Number],default:function(){return"1"}}},components:{},data:function(){return{basePath:[],instanceAward:{instanceMade:1,instancePoint:1,instanceNumber:1,instanceContent:[{start:0,end:5,point:1,infinity:!1},{start:10,end:20,point:1,infinity:!1}],awardLimitType:1,awardLimitNumber:1,awardLimitPoint:1,stepType:1},modeData:[{goalId:1,goalName:"定额奖励（推荐）",describe:"固定额度奖励"},{goalId:2,goalName:"阶梯奖励",describe:"累计邀请人数越多，奖励也越高"},{goalId:3,goalName:"成交额等比奖励",describe:"按受邀人成交额的一定比例来奖励"}],contentData:[{goalId:1,goalName:"不限制奖励（推荐）",describe:"同一个受邀人无论完成该路径行为多少次，邀请人都能获得相应额度的奖励。"},{goalId:2,goalName:"限制奖励次数",describe:"限制单个受邀人的完成该路径行为的次数，如果超过该次数，邀请人将无法获得该受邀人的奖励。"},{goalId:3,goalName:"限制奖励额度",describe:"限制单个受邀人能给邀请人触发的奖励，超过该额度之后，邀请人将无法获得该受邀人的奖励。"}]}},methods:{submitForm:function(){var e=this;return ve()(ge.a.mark(function t(){var n;return ge.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e,t.abrupt("return",new C.a(function(e,t){var r,i=this;n.$refs.rewardForm.validate((r=ve()(ge.a.mark(function t(r){var a,o,s,u,l;return ge.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=32;break}if(n.$emit("input",n.instanceAward),1!=n.instanceAward.instanceMade||n.instanceAward.instancePoint||e({flag:!1,msg:"请完善即时奖励中的即时奖励模式"}),3!=n.instanceAward.instanceMade||n.instanceAward.instancePoint&&n.instanceAward.instanceNumber||e({flag:!1,msg:"请完善即时奖励中的即时奖励模式"}),2!=n.instanceAward.instanceMade||n.instanceAward.instanceContent.length||e({flag:!1,msg:"请完善即时奖励中的即时奖励模式"}),2==n.instanceAward.instanceMade&&n.instanceAward.instanceContent.length>1&&!n.instanceAward.instanceContent[n.instanceAward.instanceContent.length-1].infinity&&e({flag:!1,msg:"请勾选即时奖励中的阶梯奖励无穷大"}),2==n.instanceAward.instanceMade&&n.instanceAward.instanceContent.length&&(a=!0,n.instanceAward.instanceContent.forEach(function(e){(!e.start&&0!=e.start||!e.end&&-1!=e.end||!e.point)&&(a=!1)}),console.log(a),a||e({flag:!1,msg:"请完善即时奖励中阶梯奖励的内容"})),!(2==n.instanceAward.instanceMade&&n.instanceAward.instanceContent.length>1)){t.next=27;break}o=!0,s=[],n.instanceAward.instanceContent.forEach(function(e){(!e.start&&0!=e.start||!e.end&&-1!=e.end||!e.point)&&(o=!1),s.push(e.start),-1!=e.end&&s.push(e.end)}),u=0;case 12:if(!(u<s.length-1)){t.next=26;break}l=u+1;case 14:if(!(l<s.length)){t.next=21;break}if(!(s[u]>=s[l])){t.next=18;break}return o=!1,t.abrupt("break",21);case 18:l++,t.next=14;break;case 21:if(o){t.next=23;break}return t.abrupt("break",26);case 23:u++,t.next=12;break;case 26:o||e({flag:!1,msg:"即时奖励中阶梯奖励的不同阶梯的区间值之间不允许存在间隔"});case 27:2!=n.instanceAward.awardLimitType||n.instanceAward.awardLimitNumber||e({flag:!1,msg:"请完善即时奖励中即时奖励内容"}),3!=n.instanceAward.awardLimitType||n.instanceAward.awardLimitPoint||e({flag:!1,msg:"请完善即时奖励中即时奖励内容"}),e(n.instanceAward),t.next=33;break;case 32:e(!1);case 33:case"end":return t.stop()}},t,i)})),function(e){return r.apply(this,arguments)}))}));case 2:case"end":return t.stop()}},t,e)}))()},selectStore:function(e){if(this.$route.query.hasOwnProperty("editFlag"))return!1;this.instanceAward.instanceMade=e.goalId},selectMoney:function(e){if(this.$route.query.hasOwnProperty("editFlag"))return!1;this.instanceAward.awardLimitType=e.goalId},changeEnd:function(e,t){t.end=e?-1:""},changeEndNum:function(e,t,n){t<this.instanceAward.instanceContent.length-1&&(this.instanceAward.instanceContent[t+1].start=e+1)},toAddItem:function(){if(this.instanceAward.instanceContent.length<2||!this.instanceAward.instanceContent.map(function(e){return e.infinity}).includes(!0))return this.instanceAward.instanceContent.push({start:0==this.instanceAward.instanceContent.length?0:this.instanceAward.instanceContent[this.instanceAward.instanceContent.length-1].end+1,end:20,point:1,infinity:!1}),!1;this.instanceAward.instanceContent.length>=2&&this.instanceAward.instanceContent.map(function(e){return e.infinity}).includes(!0)&&this.instanceAward.instanceContent.splice(-1,0,{start:this.instanceAward.instanceContent[this.instanceAward.instanceContent.length-2].end+1,end:20,point:1,infinity:!1})},deleteRow:function(e,t){t.splice(e,1)}},watch:{value:function(e){this.instanceAward=JSON.parse(l()(e))}},mounted:function(){this.instanceAward=JSON.parse(l()(this.value)),s()(this.$store.state.baseInfo).length&&(this.basePath=JSON.parse(l()(this.$store.state.baseInfo)).router)}},ke={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"spot-award border-box"},[n("el-form",{ref:"rewardForm",attrs:{"label-width":"154px",model:e.instanceAward,rules:e.rules}},[n("el-form-item",{attrs:{label:"即时奖励模式：",prop:""}},[n("ul",{staticClass:"flex "},[e._l(e.modeData,function(t,r){return[2!=r?n("li",{key:r+"first",class:["li-cell li-second-cell flex-1 ",e.instanceAward.instanceMade==t.goalId?"li-second-active":""],on:{click:function(n){return e.selectStore(t)}}},[n("div",{staticClass:"li-cell-inner"},[n("div",{staticClass:"li-cell-bottom border-box"},[n("div",{staticClass:"li-cell-scene"},[n("div",{staticClass:"li-cell-scene_title font-14 color-303133"},[e._v(e._s(t.goalName))]),e._v(" "),n("div",{staticClass:"li-cell-scene_text font-14 color-606266"},[e._v(e._s(t.describe))])])])]),e._v(" "),n("div",{staticClass:"common-cell-check"},[n("div",{staticClass:"common-cell-triangle"},[n("div",{staticClass:"common-cell-outer"},[n("i",{staticClass:"el-icon-upload-success el-icon-check"})])])])]):e._e(),e._v(" "),e.basePath.map(function(e){return e.transName}).includes("消费")&&2==r&&6==e.instanceAward.stepType?n("li",{key:r+"first",class:["li-cell li-second-cell flex-1 ",e.instanceAward.instanceMade==t.goalId?"li-second-active":""],on:{click:function(n){return e.selectStore(t)}}},[n("div",{staticClass:"li-cell-inner"},[n("div",{staticClass:"li-cell-bottom border-box"},[n("div",{staticClass:"li-cell-scene"},[n("div",{staticClass:"li-cell-scene_title font-14 color-303133"},[e._v(e._s(t.goalName))]),e._v(" "),n("div",{staticClass:"li-cell-scene_text font-14 color-606266"},[e._v(e._s(t.describe))])])])]),e._v(" "),n("div",{staticClass:"common-cell-check"},[n("div",{staticClass:"common-cell-triangle"},[n("div",{staticClass:"common-cell-outer"},[n("i",{staticClass:"el-icon-upload-success el-icon-check"})])])])]):e._e()]})],2),e._v(" "),1==e.instanceAward.instanceMade?n("div",{staticClass:"store-select-wrap"},[n("div",{staticClass:"store-select-title"},[n("span",{staticClass:"font-14 color-606266"},[e._v("定额奖励额度")]),e._v(" "),n("el-input-number",{attrs:{disabled:e.$route.query.editFlag,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:999999},model:{value:e.instanceAward.instancePoint,callback:function(t){e.$set(e.instanceAward,"instancePoint",t)},expression:"instanceAward.instancePoint"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266"},[e._v("积分")])],1)]):e._e(),e._v(" "),2==e.instanceAward.instanceMade?n("div",{staticClass:"store-select-wrap w-845"},[n("div",{staticClass:"store-select-title"},[n("span",{staticClass:"font-14 color-606266"},[e._v("阶梯奖励内容:")]),e._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.instanceAward.instanceContent,"row-class-name":e.tableRowClassName}},[n("el-table-column",{attrs:{label:"区间",width:"455"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"cell"},[0==t.$index?n("div",[n("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("前")]),e._v(" "),n("el-input-number",{attrs:{disabled:e.$route.query.editFlag,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:999999},on:{change:function(n){return e.changeEndNum(n,t.$index,t.row)}},model:{value:t.row.end,callback:function(n){e.$set(t.row,"end",n)},expression:"scope.row.end"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v("人")])],1):e._e(),e._v(" "),0!=t.$index&&t.$index!=e.instanceAward.instanceContent.length-1?n("div",[n("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("第")]),e._v(" "),n("el-input-number",{attrs:{disabled:!0,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:999999},model:{value:t.row.start,callback:function(n){e.$set(t.row,"start",n)},expression:"scope.row.start"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266 p-l-10 p-r-10"},[e._v("人 至")]),e._v(" "),n("el-input-number",{attrs:{disabled:e.$route.query.editFlag,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:999999},on:{change:function(n){return e.changeEndNum(n,t.$index,t.row)}},model:{value:t.row.end,callback:function(n){e.$set(t.row,"end",n)},expression:"scope.row.end"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v("人")])],1):e._e(),e._v(" "),0!=t.$index&&t.$index==e.instanceAward.instanceContent.length-1?n("div",[n("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("第")]),e._v(" "),n("el-input-number",{attrs:{disabled:!0,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:999999},model:{value:t.row.start,callback:function(n){e.$set(t.row,"start",n)},expression:"scope.row.start"}}),e._v(" "),t.row.infinity?e._e():n("span",{staticClass:"font-14 color-606266 p-l-10 p-r-10"},[e._v("人 至")]),e._v(" "),t.row.infinity?e._e():n("el-input-number",{attrs:{disabled:e.$route.query.editFlag,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:999999},model:{value:t.row.end,callback:function(n){e.$set(t.row,"end",n)},expression:"scope.row.end"}}),e._v(" "),t.$index==e.instanceAward.instanceContent.length-1?n("el-checkbox",{staticClass:"m-l-10",attrs:{disabled:e.$route.query.editFlag},on:{change:function(n){return e.changeEnd(n,t.row)}},model:{value:t.row.infinity,callback:function(n){e.$set(t.row,"infinity",n)},expression:"scope.row.infinity"}},[e._v("无穷大")]):e._e()],1):e._e()])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"奖励积分"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"cell"},[n("el-input-number",{attrs:{disabled:e.$route.query.editFlag,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:999999},model:{value:t.row.point,callback:function(n){e.$set(t.row,"point",n)},expression:"scope.row.point"}}),e._v(" "),0!=t.$index?n("el-button",{staticClass:"m-l-16",attrs:{disabled:e.$route.query.editFlag,type:"text",size:"small"},on:{click:function(n){return n.stopPropagation(),e.deleteRow(t.$index,e.instanceAward.instanceContent)}}},[e._v("\n                    删除\n                  ")]):e._e()],1)]}}])})],1),e._v(" "),n("div",{staticClass:"add-line text-center cursor-pointer",on:{click:e.toAddItem}},[n("i",{staticClass:"el-icon-plus color-2F54EB"}),n("span",{staticClass:"color-2F54EB font-14 p-l-10"},[e._v("添加奖项")])])],1)]):e._e(),e._v(" "),3==e.instanceAward.instanceMade?n("div",{staticClass:"store-select-wrap"},[n("div",{staticClass:"store-select-title"},[n("span",{staticClass:"font-14 color-606266"},[e._v("成交额等比奖励额度：")]),e._v(" "),n("span",{staticClass:"font-14 color-606266"},[e._v("每消费")]),e._v(" "),n("el-input-number",{attrs:{disabled:e.$route.query.editFlag,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:999},model:{value:e.instanceAward.instanceNumber,callback:function(t){e.$set(e.instanceAward,"instanceNumber",t)},expression:"instanceAward.instanceNumber"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266 p-l-3 p-r-10"},[e._v("元 - ")]),e._v(" "),n("el-input-number",{attrs:{disabled:e.$route.query.editFlag,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:999},model:{value:e.instanceAward.instancePoint,callback:function(t){e.$set(e.instanceAward,"instancePoint",t)},expression:"instanceAward.instancePoint"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266"},[e._v("积分")])],1)]):e._e()]),e._v(" "),6==e.instanceAward.stepType&&2==e.awardMode||1==e.awardMode?n("el-form-item",{staticClass:"m-t-20",attrs:{label:"奖励限制：",prop:""}},[n("ul",{staticClass:"flex  "},[e._l(e.contentData,function(t,r){return[n("li",{key:r+"first",class:["li-cell li-second-cell flex-1 ",e.instanceAward.awardLimitType==t.goalId?"li-second-active":""],on:{click:function(n){return e.selectMoney(t)}}},[n("div",{staticClass:"li-cell-inner"},[n("div",{staticClass:"li-cell-bottom border-box"},[n("div",{staticClass:"li-cell-scene"},[n("div",{staticClass:"li-cell-scene_title font-14 color-303133"},[e._v(e._s(t.goalName))]),e._v(" "),n("div",{staticClass:"li-cell-scene_text font-14 color-606266"},[e._v(e._s(t.describe))])])])]),e._v(" "),n("div",{staticClass:"common-cell-check"},[n("div",{staticClass:"common-cell-triangle"},[n("div",{staticClass:"common-cell-outer"},[n("i",{staticClass:"el-icon-upload-success el-icon-check"})])])])])]})],2),e._v(" "),2==e.instanceAward.awardLimitType?n("div",{staticClass:"store-select-wrap child-select-wrap"},[n("div",{staticClass:"store-select-title"},[n("span",{staticClass:"font-14 color-606266"},[e._v("限制次数：")]),e._v(" "),n("el-input-number",{attrs:{disabled:e.$route.query.editFlag,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:999999},model:{value:e.instanceAward.awardLimitNumber,callback:function(t){e.$set(e.instanceAward,"awardLimitNumber",t)},expression:"instanceAward.awardLimitNumber"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266 p-l-3 p-r-10"},[e._v("次")])],1)]):e._e(),e._v(" "),3==e.instanceAward.awardLimitType?n("div",{staticClass:"store-select-wrap child-select-wrap"},[n("div",{staticClass:"store-select-title"},[n("span",{staticClass:"font-14 color-606266"},[e._v("限制额度：")]),e._v(" "),n("el-input-number",{staticClass:"w-140",attrs:{disabled:e.$route.query.editFlag,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:9999999999},model:{value:e.instanceAward.awardLimitPoint,callback:function(t){e.$set(e.instanceAward,"awardLimitPoint",t)},expression:"instanceAward.awardLimitPoint"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266 p-l-3 p-r-10"},[e._v("积分")])],1)]):e._e()]):e._e()],1)],1)},staticRenderFns:[]};var Le=n("VU/8")(Me,ke,!1,function(e){n("HTGT")},"data-v-593ce3d8",null).exports,De={name:"select-card",props:{value:{type:String,default:""},cardName:{type:String,default:""},width:{type:String,default:"146px"}},data:function(){return{cardList:[],brandVisible:!1}},methods:{changeSelect:function(e){this.$emit("input",e.coupCardId),this.$emit("update:cardName",e.cardName),this.$emit("selectCard",e),this.brandVisible=!1},getCardList:function(){var e=this;Object(y.a)("/sharing-core-web/list-card",{}).then(function(t){var n=t.data;if(1==n.errorCode)return e.cardList=n.result||[],!1;b.a.errorMsg(n)}).catch(function(t){e.$message.error({duration:2500,message:t.message})})}},mounted:function(){this.getCardList()}},xe={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-popover",{attrs:{placement:"bottom",width:"300",trigger:"click"},model:{value:e.brandVisible,callback:function(t){e.brandVisible=t},expression:"brandVisible"}},[n("div",{staticClass:"company-select"},[n("div",{staticClass:"el-scrollbar define-search-select"},[n("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{overflow:"auto"}},[n("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},e._l(e.cardList,function(t){return n("li",{key:t.coupCardId,class:["el-select-dropdown__item ",e.value==t.coupCardId?"selected":""],on:{click:function(n){return e.changeSelect(t)}}},[n("span",[e._v(e._s(t.cardName||"--"))])])}),0)])])]),e._v(" "),n("div",{staticClass:"select-search-input cursor-pointer",staticStyle:{display:"inline-block","vertical-align":"middle"},attrs:{slot:"reference"},slot:"reference"},[n("div",{staticClass:"el-select",style:{width:e.width}},[n("div",{staticClass:"el-input el-input--suffix",staticStyle:{height:"32px"}},[n("div",{staticClass:"el-input__inner"},[n("div",{class:["text-ellipsis font-14 max-w-260",e.cardName?"color-606266":"color-909399"]},[e._v(e._s(e.cardName||"请选择"))])])])])])])},staticRenderFns:[]};var Ae=n("VU/8")(De,xe,!1,function(e){n("igos")},"data-v-2724e402",null).exports,Ce={name:"",props:{cardName:{type:String,default:""}},components:{},data:function(){return{}}},Te={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"el-select w-146"},[t("div",{staticClass:"el-input is-disabled el-input--suffix",staticStyle:{height:"32px"}},[t("div",{staticClass:"el-input__inner text-ellipsis"},[this._v(this._s(this.cardName||"--"))]),this._v(" "),this._m(0)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("span",{staticClass:"el-input__suffix"},[t("span",{staticClass:"el-input__suffix-inner"},[t("i",{staticClass:"el-select__caret el-input__icon el-icon-arrow-up"})])])}]};var Se=n("VU/8")(Ce,Te,!1,function(e){n("A0RE")},"data-v-4c63c66f",null).exports,Ye={name:"entry-award",props:{value:{type:[Object,Array],default:function(){return{dealNumberFlag:1,dealAmountFlag:0,dealNumberSettingParam:[{achieve:5,point:1,pointCheck:!1,cardId:"",cardName:"",cardCheck:!1,oldData:!1}],dealAmountSettingParam:[{achieve:5,point:1,pointCheck:!1,cardId:"",cardName:"",cardCheck:!1,oldData:!1}],stepType:1}}}},components:{selectCard:Ae,disableCardShow:Se},data:function(){return{basePath:[],passAward:{dealNumberFlag:1,dealAmountFlag:0,dealNumberSettingParam:[],dealAmountSettingParam:[],stepType:1},modeData:[{goalId:1,goalName:"完成人数（推荐）",describe:"以完成活动所设置路径的受邀人数量作为计数指标",check:!1},{goalId:2,goalName:"成交额",describe:"以受邀人的总消费金额作为计数指标（单个受邀人多次消费作累计计数）",check:!1}]}},methods:{submitForm:function(){var e=this;return new C.a(function(t,n){e.$refs.rewardForm.validate(function(n){if(n){if(e.$emit("input",e.passAward),0==e.passAward.dealNumberFlag&&0==e.passAward.dealAmountFlag&&t({flag:!1,msg:"请完善闯关奖励"}),1!=e.passAward.dealNumberFlag||e.passAward.dealNumberSettingParam.length||t({flag:!1,msg:"请完善闯关奖励中成交人数奖项"}),1==e.passAward.dealNumberFlag&&e.passAward.dealNumberSettingParam.length){var r=!0;e.passAward.dealNumberSettingParam.forEach(function(e){(e.cardCheck&&!e.cardId||!e.pointCheck&&!e.cardCheck||!e.achieve)&&(r=!1)}),r||t({flag:!1,msg:"请完善闯关奖励中成交人数奖项"})}if(1==e.passAward.dealNumberFlag&&e.passAward.dealNumberSettingParam.length>1){var i=!0,a=[];e.passAward.dealNumberSettingParam.forEach(function(e){a.push(e.achieve),e.cardCheck&&!e.cardId&&(i=!1)});for(var o=0;o<a.length-1;o++){for(var s=o+1;s<a.length;s++)if(a[o]>=a[s]){i=!1;break}if(!i)break}i||t({flag:!1,msg:"请按顺序填写闯关奖励中成交人数奖项中条件值"})}if(1!=e.passAward.dealAmountFlag||e.passAward.dealAmountSettingParam.length||t({flag:!1,msg:"请完善闯关奖励中成交额奖项"}),1==e.passAward.dealAmountFlag&&e.passAward.dealAmountSettingParam.length){var u=!0;e.passAward.dealAmountSettingParam.forEach(function(e){(e.cardCheck&&!e.cardId||!e.pointCheck&&!e.cardCheck||!e.achieve)&&(u=!1)}),u||t({flag:!1,msg:"请完善闯关奖励中成交额奖项"})}if(1==e.passAward.dealAmountFlag&&e.passAward.dealAmountSettingParam.length>1){var l=!0,c=[];e.passAward.dealAmountSettingParam.forEach(function(e){c.push(e.achieve),e.cardCheck&&!e.cardId&&(l=!1)});for(var d=0;d<c.length-1;d++){for(var f=d+1;f<c.length;f++)if(c[d]>=c[f]){l=!1;break}if(!l)break}l||t({flag:!1,msg:"请按顺序填写闯关奖励中成交额奖项中条件值"})}t(e.passAward)}else t(!1)})})},selectStore:function(e){if(this.$route.query.hasOwnProperty("editFlag"))return!1;1==e.goalId?this.passAward.dealNumberFlag=0==this.passAward.dealNumberFlag?1:0:this.passAward.dealAmountFlag=0==this.passAward.dealAmountFlag?1:0},deleteRow:function(e,t){if(this.$route.query.hasOwnProperty("editFlag"))return!1;t.splice(e,1)},addPeopleItem:function(){if(this.$route.query.hasOwnProperty("editFlag"))return!1;this.passAward.dealNumberSettingParam.push({achieve:5,point:1,pointCheck:!1,cardId:"",cardName:"",cardCheck:!1,oldData:!1})},addMoneyItem:function(){if(this.$route.query.hasOwnProperty("editFlag"))return!1;this.passAward.dealAmountSettingParam.push({achieve:5,point:1,pointCheck:!1,cardId:"",cardName:"",cardCheck:!1,oldData:!1})}},watch:{value:function(e){this.passAward=JSON.parse(l()(e))}},mounted:function(){this.passAward=JSON.parse(l()(this.value)),s()(this.$store.state.baseInfo).length&&(this.basePath=JSON.parse(l()(this.$store.state.baseInfo)).router)}},Ne={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"entry-award border-box"},[n("el-form",{ref:"rewardForm",attrs:{"label-width":"154px",model:e.passAward,rules:e.rules}},[n("el-form-item",{attrs:{label:"闯关指标（多选）：",prop:""}},[n("ul",{staticClass:"flex "},[e._l(e.modeData,function(t,r){return[0==r?n("li",{key:r+"first",class:["li-cell li-second-cell flex-1 ",1==e.passAward.dealNumberFlag?"li-second-active":""],on:{click:function(n){return e.selectStore(t)}}},[n("div",{staticClass:"li-cell-inner"},[n("div",{staticClass:"li-cell-bottom border-box"},[n("div",{staticClass:"li-cell-scene"},[n("div",{staticClass:"li-cell-scene_title font-14 color-303133"},[e._v(e._s(t.goalName))]),e._v(" "),n("div",{staticClass:"li-cell-scene_text font-14 color-606266"},[e._v(e._s(t.describe))])])])]),e._v(" "),n("div",{staticClass:"common-cell-check"},[n("div",{staticClass:"common-cell-triangle"},[n("div",{staticClass:"common-cell-outer"},[n("i",{staticClass:"el-icon-upload-success el-icon-check"})])])])]):e._e(),e._v(" "),1==r&&e.basePath.map(function(e){return e.transName}).includes("消费")&&6==e.passAward.stepType?n("li",{key:r+"first",class:["li-cell li-second-cell flex-1 ",1==e.passAward.dealAmountFlag?"li-second-active":""],on:{click:function(n){return e.selectStore(t)}}},[n("div",{staticClass:"li-cell-inner"},[n("div",{staticClass:"li-cell-bottom border-box"},[n("div",{staticClass:"li-cell-scene"},[n("div",{staticClass:"li-cell-scene_title font-14 color-303133"},[e._v(e._s(t.goalName))]),e._v(" "),n("div",{staticClass:"li-cell-scene_text font-14 color-606266"},[e._v(e._s(t.describe))])])])]),e._v(" "),n("div",{staticClass:"common-cell-check"},[n("div",{staticClass:"common-cell-triangle"},[n("div",{staticClass:"common-cell-outer"},[n("i",{staticClass:"el-icon-upload-success el-icon-check"})])])])]):e._e()]})],2)]),e._v(" "),n("el-form-item",{directives:[{name:"show",rawName:"v-show",value:1==e.passAward.dealNumberFlag,expression:"passAward.dealNumberFlag == 1"}],staticClass:"m-t-20",attrs:{label:"完成人数闯关奖项：",prop:""}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.passAward.dealNumberSettingParam}},[n("el-table-column",{attrs:{label:"条件"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"cell"},[n("div",[n("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("满")]),e._v(" "),n("el-input-number",{staticClass:"w-116",attrs:{disabled:e.$route.query.editFlag||t.row.oldData,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:999999},model:{value:t.row.achieve,callback:function(n){e.$set(t.row,"achieve",n)},expression:"scope.row.achieve"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v("人")])],1)])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"奖品"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"cell flex flex-align-center"},[n("div",[n("div",[n("el-checkbox",{attrs:{disabled:e.$route.query.editFlag||t.row.oldData},model:{value:t.row.pointCheck,callback:function(n){e.$set(t.row,"pointCheck",n)},expression:"scope.row.pointCheck"}},[e._v("积分")]),e._v(" "),n("el-input-number",{staticClass:"w-146",attrs:{disabled:e.$route.query.editFlag||t.row.oldData,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:999999},model:{value:t.row.point,callback:function(n){e.$set(t.row,"point",n)},expression:"scope.row.point"}})],1),e._v(" "),n("div",{staticClass:"m-t-10"},[n("el-checkbox",{attrs:{disabled:e.$route.query.editFlag||t.row.oldData},model:{value:t.row.cardCheck,callback:function(n){e.$set(t.row,"cardCheck",n)},expression:"scope.row.cardCheck"}},[e._v("卡券")]),e._v(" "),e.$route.query.editFlag||t.row.oldData?n("disable-card-show",{attrs:{cardName:t.row.cardName},on:{"update:cardName":function(n){return e.$set(t.row,"cardName",n)},"update:card-name":function(n){return e.$set(t.row,"cardName",n)}}}):n("select-card",{attrs:{cardName:t.row.cardName},on:{"update:cardName":function(n){return e.$set(t.row,"cardName",n)},"update:card-name":function(n){return e.$set(t.row,"cardName",n)}},model:{value:t.row.cardId,callback:function(n){e.$set(t.row,"cardId",n)},expression:"scope.row.cardId"}})],1)]),e._v(" "),0!=t.$index?n("el-button",{staticClass:"m-l-16",attrs:{disabled:e.$route.query.editFlag||t.row.oldData,type:"text",size:"small"},on:{click:function(n){return n.stopPropagation(),e.deleteRow(t.$index,e.passAward.dealNumberSettingParam)}}},[e._v("\n                删除\n              ")]):e._e()],1)]}}])})],1),e._v(" "),n("div",{staticClass:"add-line text-center cursor-pointer",on:{click:e.addPeopleItem}},[n("i",{staticClass:"el-icon-plus color-2F54EB"}),n("span",{staticClass:"color-2F54EB font-14 p-l-10"},[e._v("添加奖项")])])],1),e._v(" "),n("el-form-item",{directives:[{name:"show",rawName:"v-show",value:1==e.passAward.dealAmountFlag,expression:"passAward.dealAmountFlag == 1"}],staticClass:"m-t-20",attrs:{label:"成交额闯关奖项: ",prop:""}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.passAward.dealAmountSettingParam}},[n("el-table-column",{attrs:{label:"条件"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"cell"},[n("div",[n("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("满")]),e._v(" "),n("el-input-number",{staticClass:"w-116",attrs:{disabled:e.$route.query.editFlag||t.row.oldData,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:999999},model:{value:t.row.achieve,callback:function(n){e.$set(t.row,"achieve",n)},expression:"scope.row.achieve"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v("元")])],1)])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"奖品"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"cell flex flex-align-center"},[n("div",[n("div",[n("el-checkbox",{attrs:{disabled:e.$route.query.editFlag||t.row.oldData},model:{value:t.row.pointCheck,callback:function(n){e.$set(t.row,"pointCheck",n)},expression:"scope.row.pointCheck"}},[e._v("积分")]),e._v(" "),n("el-input-number",{staticClass:"w-146",attrs:{disabled:e.$route.query.editFlag||t.row.oldData,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:999999},model:{value:t.row.point,callback:function(n){e.$set(t.row,"point",n)},expression:"scope.row.point"}})],1),e._v(" "),n("div",{staticClass:"m-t-10"},[n("el-checkbox",{attrs:{disabled:e.$route.query.editFlag||t.row.oldData},model:{value:t.row.cardCheck,callback:function(n){e.$set(t.row,"cardCheck",n)},expression:"scope.row.cardCheck"}},[e._v("卡券")]),e._v(" "),e.$route.query.editFlag||t.row.oldData?n("disable-card-show",{attrs:{cardName:t.row.cardName},on:{"update:cardName":function(n){return e.$set(t.row,"cardName",n)},"update:card-name":function(n){return e.$set(t.row,"cardName",n)}}}):n("select-card",{attrs:{cardName:t.row.cardName},on:{"update:cardName":function(n){return e.$set(t.row,"cardName",n)},"update:card-name":function(n){return e.$set(t.row,"cardName",n)}},model:{value:t.row.cardId,callback:function(n){e.$set(t.row,"cardId",n)},expression:"scope.row.cardId"}})],1)]),e._v(" "),0!=t.$index?n("el-button",{staticClass:"m-l-16",attrs:{disabled:e.$route.query.editFlag||t.row.oldData,type:"text",size:"small"},on:{click:function(n){return n.stopPropagation(),e.deleteRow(t.$index,e.passAward.dealAmountSettingParam)}}},[e._v("\n                删除\n              ")]):e._e()],1)]}}])})],1),e._v(" "),n("div",{staticClass:"add-line text-center cursor-pointer",on:{click:e.addMoneyItem}},[n("i",{staticClass:"el-icon-plus color-2F54EB"}),n("span",{staticClass:"color-2F54EB font-14 p-l-10"},[e._v("添加奖项")])])],1)],1)],1)},staticRenderFns:[]};var Ee=n("VU/8")(Ye,Ne,!1,function(e){n("91wG")},"data-v-43bb5b6f",null).exports,Pe=n("c/Tr"),Ie=n.n(Pe),Oe=n("Gu7T"),Fe=n.n(Oe);var Re={name:"competition-award",mixins:[{methods:{dispatch:function(e,t,n){for(var r=this.$parent||this.$root,i=r.$options.componentName;r&&(!i||i!==e);)(r=r.$parent)&&(i=r.$options.componentName);r&&r.$emit.apply(r,[t].concat(n))},broadcast:function(e,t,n){(function e(t,n,r){this.$children.forEach(function(i){i.$options.componentName===t?i.$emit.apply(i,[n].concat(r)):e.apply(i,[t,n].concat([r]))})}).call(this,e,t,n)},isContinuityNum:function(e){var t=[],n=(t=e instanceof Array?[].concat(Fe()(e)):Ie()(e.toString()))[0],r=!0;for(var i in t){if(t[i]!=n){r=!1;break}n++}return r}}}],props:{value:{type:[Object,Array],default:function(){return{dealNumberFlag:1,dealAmountFlag:0,dealNumberSettingParam:[{awardName:"",start:0,end:5,infinity:!1,point:1,pointCheck:!1,cardId:"",cardName:"",cardCheck:!1}],dealAmountSettingParam:[{awardName:"",start:0,end:5,infinity:!1,point:1,pointCheck:!1,cardId:"",cardName:"",cardCheck:!1}],stepType:1}}}},components:{limitInput:v,selectCard:Ae,disableCardShow:Se},data:function(){return{basePath:[],compitionAward:{dealNumberFlag:1,dealAmountFlag:0,dealNumberSettingParam:[],dealAmountSettingParam:[],stepType:1},modeData:[{goalId:1,goalName:"完成人数（推荐）",describe:"以完成活动所设置路径的受邀人数量作为计数指标",check:!1},{goalId:2,goalName:"成交额",describe:"以受邀人的总消费金额作为计数指标（单个受邀人多次消费作累计计数）",check:!1}]}},methods:{isRepeat:function(e){var t={};for(var n in e){if(t[e[n]])return!0;t[e[n]]=!0}return!1},submitForm:function(){var e=this;return new C.a(function(t,n){var r,i=this;e.$refs.rewardForm.validate((r=ve()(ge.a.mark(function n(r){var a,o,s,u,l,c,d,f,m,h,p,g,_,v;return ge.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=68;break}if(e.$emit("input",e.compitionAward),1!=e.compitionAward.dealNumberFlag||e.compitionAward.dealNumberSettingParam.length||t({flag:!1,msg:"请完善竞赛奖励中成交人数奖项"}),1!=e.compitionAward.dealNumberFlag||!e.compitionAward.dealNumberSettingParam.length){n.next=13;break}return a=!0,o=[],e.compitionAward.dealNumberSettingParam.forEach(function(e){(!e.awardName||e.cardCheck&&!e.cardId||e.pointCheck&&!e.point||!e.pointCheck&&!e.cardCheck)&&(a=!1),o.push(e.awardName)}),n.next=9,e.isRepeat(o);case 9:s=n.sent,console.log(s,a),s&&t({flag:!1,msg:"竞赛奖励中成交人数奖项名称不能重复"}),a||t({flag:!1,msg:"请完善竞赛奖励中成交人数奖项"});case 13:if(!(1==e.compitionAward.dealNumberFlag&&e.compitionAward.dealNumberSettingParam.length>1)){n.next=34;break}u=!0,l=[],e.compitionAward.dealNumberSettingParam.forEach(function(e){(!e.start&&0!=e.start||!e.end&&-1!=e.end)&&(u=!1),l.push(e.start),-1!=e.end&&l.push(e.end)}),c=0;case 18:if(!(c<l.length-1)){n.next=32;break}d=c+1;case 20:if(!(d<l.length)){n.next=27;break}if(!(l[c]>l[d])){n.next=24;break}return u=!1,n.abrupt("break",27);case 24:d++,n.next=20;break;case 27:if(u){n.next=29;break}return n.abrupt("break",32);case 29:c++,n.next=18;break;case 32:console.log(u),u||t({flag:!1,msg:"竞赛奖励中排名区间值之间不允许存在间隔"});case 34:if(1!=e.compitionAward.dealAmountFlag||e.compitionAward.dealAmountSettingParam.length||t({flag:!1,msg:"请完善竞赛奖励中成交额奖项"}),1!=e.compitionAward.dealAmountFlag||!e.compitionAward.dealAmountSettingParam.length){n.next=45;break}return f=!0,m=[],e.compitionAward.dealAmountSettingParam.forEach(function(e){(!e.awardName||e.cardCheck&&!e.cardId||!e.pointCheck&&!e.cardCheck)&&(f=!1),m.push(e.awardName)}),n.next=41,e.isRepeat(m);case 41:h=n.sent,console.log(h,f),h&&t({flag:!1,msg:"竞赛奖励中成交额奖项名称不能重复"}),f||t({flag:!1,msg:"请完善竞赛奖励中成交额奖项"});case 45:if(!(1==e.compitionAward.dealAmountFlag&&e.compitionAward.dealAmountSettingParam.length>1)){n.next=65;break}p=!0,g=[],e.compitionAward.dealAmountSettingParam.forEach(function(e){(!e.start&&0!=e.start||!e.end&&-1!=e.end)&&(p=!1),g.push(e.start),-1!=e.end&&g.push(e.end)}),_=0;case 50:if(!(_<g.length-1)){n.next=64;break}v=_+1;case 52:if(!(v<g.length)){n.next=59;break}if(!(g[_]>g[v])){n.next=56;break}return p=!1,n.abrupt("break",59);case 56:v++,n.next=52;break;case 59:if(p){n.next=61;break}return n.abrupt("break",64);case 61:_++,n.next=50;break;case 64:p||t({flag:!1,msg:"竞赛奖励中排名区间值之间不允许存在间隔"});case 65:t(e.compitionAward),n.next=69;break;case 68:t(!1);case 69:case"end":return n.stop()}},n,i)})),function(e){return r.apply(this,arguments)}))})},selectStore:function(e){if(this.$route.query.hasOwnProperty("editFlag"))return!1;1==e.goalId?this.compitionAward.dealNumberFlag=0==this.compitionAward.dealNumberFlag?1:0:this.compitionAward.dealAmountFlag=0==this.compitionAward.dealAmountFlag?1:0},deleteRow:function(e,t){t.splice(e,1)},changeEnd:function(e,t){t.end=e?-1:""},changeEndNum:function(e,t,n,r){1==r?t<this.compitionAward.dealNumberSettingParam.length-1&&(this.compitionAward.dealNumberSettingParam[t+1].start=e+1):t<this.compitionAward.dealAmountSettingParam.length-1&&(this.compitionAward.dealAmountSettingParam[t+1].start=e+1)},addPeopleItem:function(){if(this.$route.query.hasOwnProperty("editFlag"))return!1;this.compitionAward.dealNumberSettingParam.push({awardName:"",start:0==this.compitionAward.dealNumberSettingParam.length?0:this.compitionAward.dealNumberSettingParam[this.compitionAward.dealNumberSettingParam.length-1].end+1,end:5,infinity:!1,point:1,pointCheck:!1,cardId:"",cardName:"",cardCheck:!1})},addMoneyItem:function(){if(this.$route.query.hasOwnProperty("editFlag"))return!1;this.compitionAward.dealAmountSettingParam.push({awardName:"",start:0==this.compitionAward.dealAmountSettingParam.length?0:this.compitionAward.dealAmountSettingParam[this.compitionAward.dealAmountSettingParam.length-1].end+1,end:5,infinity:!1,point:1,pointCheck:!1,cardId:"",cardName:"",cardCheck:!1})}},watch:{value:function(e){this.compitionAward=JSON.parse(l()(e)),console.log("compitionAward:",this.compitionAward)}},mounted:function(){this.compitionAward=JSON.parse(l()(this.value)),s()(this.$store.state.baseInfo).length&&(this.basePath=JSON.parse(l()(this.$store.state.baseInfo)).router,console.log(this.basePath))}},He={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"competition-award border-box"},[n("el-form",{ref:"rewardForm",attrs:{"label-width":"154px",model:e.compitionAward,rules:e.rules}},[n("el-form-item",{attrs:{label:"竞赛指标（多选）：",prop:""}},[n("ul",{staticClass:"flex "},[e._l(e.modeData,function(t,r){return[0==r?n("li",{key:r+"first",class:["li-cell li-second-cell flex-1 ",1==e.compitionAward.dealNumberFlag?"li-second-active":""],on:{click:function(n){return e.selectStore(t)}}},[n("div",{staticClass:"li-cell-inner"},[n("div",{staticClass:"li-cell-bottom border-box"},[n("div",{staticClass:"li-cell-scene"},[n("div",{staticClass:"li-cell-scene_title font-14 color-303133"},[e._v(e._s(t.goalName))]),e._v(" "),n("div",{staticClass:"li-cell-scene_text font-14 color-606266"},[e._v(e._s(t.describe))])])])]),e._v(" "),n("div",{staticClass:"common-cell-check"},[n("div",{staticClass:"common-cell-triangle"},[n("div",{staticClass:"common-cell-outer"},[n("i",{staticClass:"el-icon-upload-success el-icon-check"})])])])]):e._e(),e._v(" "),1==r&&e.basePath.map(function(e){return e.transName}).includes("消费")&&6==e.compitionAward.stepType?n("li",{key:r+"first",class:["li-cell li-second-cell flex-1 ",1==e.compitionAward.dealAmountFlag?"li-second-active":""],on:{click:function(n){return e.selectStore(t)}}},[n("div",{staticClass:"li-cell-inner"},[n("div",{staticClass:"li-cell-bottom border-box"},[n("div",{staticClass:"li-cell-scene"},[n("div",{staticClass:"li-cell-scene_title font-14 color-303133"},[e._v(e._s(t.goalName))]),e._v(" "),n("div",{staticClass:"li-cell-scene_text font-14 color-606266"},[e._v(e._s(t.describe))])])])]),e._v(" "),n("div",{staticClass:"common-cell-check"},[n("div",{staticClass:"common-cell-triangle"},[n("div",{staticClass:"common-cell-outer"},[n("i",{staticClass:"el-icon-upload-success el-icon-check"})])])])]):e._e()]})],2)]),e._v(" "),n("el-form-item",{directives:[{name:"show",rawName:"v-show",value:1==e.compitionAward.dealNumberFlag,expression:"compitionAward.dealNumberFlag == 1"}],staticClass:"m-t-20",attrs:{label:"完成人数竞赛奖项：",prop:""}},[n("div",{staticClass:"w-912"},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.compitionAward.dealNumberSettingParam}},[n("el-table-column",{attrs:{label:"奖项名称",width:"307"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"cell"},[n("limitInput",{attrs:{inputWidth:275,disflag:!!e.$route.query.editFlag,inputValue:t.row.awardName,holder:"请输入奖项名称",getByType:"char",maxLength:20},on:{"update:inputValue":function(n){return e.$set(t.row,"awardName",n)},"update:input-value":function(n){return e.$set(t.row,"awardName",n)}}})],1)]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"排名",width:"305"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"cell"},[0==t.$index?n("div",[n("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("前")]),e._v(" "),n("el-input-number",{staticClass:"w-140",attrs:{disabled:e.$route.query.editFlag,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:9999999999},on:{change:function(n){return e.changeEndNum(n,t.$index,t.row,1)}},model:{value:t.row.end,callback:function(n){e.$set(t.row,"end",n)},expression:"scope.row.end"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v("名")])],1):e._e(),e._v(" "),0!=t.$index&&t.$index!=e.compitionAward.dealNumberSettingParam.length-1?n("div",{staticClass:"l-h-40"},[n("div",[n("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("第")]),e._v(" "),n("el-input-number",{staticClass:"w-140",attrs:{disabled:!0,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:9999999999},model:{value:t.row.start,callback:function(n){e.$set(t.row,"start",n)},expression:"scope.row.start"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266 p-l-10 p-r-10"},[e._v("名 至")])],1),e._v(" "),n("div",[n("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("第")]),e._v(" "),n("el-input-number",{staticClass:"w-140",attrs:{disabled:e.$route.query.editFlag,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:9999999999},on:{change:function(n){return e.changeEndNum(n,t.$index,t.row,1)}},model:{value:t.row.end,callback:function(n){e.$set(t.row,"end",n)},expression:"scope.row.end"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v("名")])],1)]):e._e(),e._v(" "),0!=t.$index&&t.$index==e.compitionAward.dealNumberSettingParam.length-1?n("div",{staticClass:"l-h-40"},[n("div",[n("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("第")]),e._v(" "),n("el-input-number",{staticClass:"w-140",attrs:{disabled:!0,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:9999999999},model:{value:t.row.start,callback:function(n){e.$set(t.row,"start",n)},expression:"scope.row.start"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266 p-l-10 p-r-10"},[e._v("名 至")])],1),e._v(" "),n("div",[n("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("第")]),e._v(" "),n("el-input-number",{staticClass:"w-140",attrs:{disabled:e.$route.query.editFlag,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:9999999999},model:{value:t.row.end,callback:function(n){e.$set(t.row,"end",n)},expression:"scope.row.end"}})],1)]):e._e()])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"奖品",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"cell flex flex-align-center"},[n("div",[n("div",[n("el-checkbox",{model:{value:t.row.pointCheck,callback:function(n){e.$set(t.row,"pointCheck",n)},expression:"scope.row.pointCheck"}},[e._v("积分")]),e._v(" "),n("el-input-number",{staticClass:"w-146",attrs:{disabled:e.$route.query.editFlag,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:999999},model:{value:t.row.point,callback:function(n){e.$set(t.row,"point",n)},expression:"scope.row.point"}})],1),e._v(" "),n("div",{staticClass:"m-t-10"},[n("el-checkbox",{model:{value:t.row.cardCheck,callback:function(n){e.$set(t.row,"cardCheck",n)},expression:"scope.row.cardCheck"}},[e._v("卡券")]),e._v(" "),e.$route.query.editFlag?n("disable-card-show",{attrs:{cardName:t.row.cardName},on:{"update:cardName":function(n){return e.$set(t.row,"cardName",n)},"update:card-name":function(n){return e.$set(t.row,"cardName",n)}}}):n("select-card",{attrs:{cardName:t.row.cardName},on:{"update:cardName":function(n){return e.$set(t.row,"cardName",n)},"update:card-name":function(n){return e.$set(t.row,"cardName",n)}},model:{value:t.row.cardId,callback:function(n){e.$set(t.row,"cardId",n)},expression:"scope.row.cardId"}})],1)]),e._v(" "),0!=t.$index?n("el-button",{staticClass:"m-l-16",attrs:{disabled:e.$route.query.editFlag,type:"text",size:"small"},on:{click:function(n){return n.stopPropagation(),e.deleteRow(t.$index,e.compitionAward.dealNumberSettingParam)}}},[e._v("\n                  删除\n                ")]):e._e()],1)]}}])})],1),e._v(" "),n("div",{staticClass:"add-line text-center cursor-pointer",on:{click:e.addPeopleItem}},[n("i",{staticClass:"el-icon-plus color-2F54EB"}),n("span",{staticClass:"color-2F54EB font-14 p-l-10"},[e._v("添加奖项")])])],1)]),e._v(" "),n("el-form-item",{directives:[{name:"show",rawName:"v-show",value:1==e.compitionAward.dealAmountFlag,expression:"compitionAward.dealAmountFlag == 1"}],staticClass:"m-t-20",attrs:{label:"成交额竞赛奖项: ",prop:""}},[n("div",{staticClass:"w-912"},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.compitionAward.dealAmountSettingParam}},[n("el-table-column",{attrs:{label:"奖项名称",width:"307"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"cell"},[n("limitInput",{attrs:{inputWidth:275,disflag:!!e.$route.query.editFlag,inputValue:t.row.awardName,holder:"请输入奖项名称",getByType:"char",maxLength:20},on:{"update:inputValue":function(n){return e.$set(t.row,"awardName",n)},"update:input-value":function(n){return e.$set(t.row,"awardName",n)}}})],1)]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"排名",width:"305"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"cell"},[0==t.$index?n("div",[n("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("前")]),e._v(" "),n("el-input-number",{staticClass:"w-140",attrs:{disabled:e.$route.query.editFlag,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:9999999999},on:{change:function(n){return e.changeEndNum(n,t.$index,t.row,2)}},model:{value:t.row.end,callback:function(n){e.$set(t.row,"end",n)},expression:"scope.row.end"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v("名")])],1):e._e(),e._v(" "),0!=t.$index&&t.$index!=e.compitionAward.dealAmountSettingParam.length-1?n("div",{staticClass:"l-h-40"},[n("div",[n("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("第")]),e._v(" "),n("el-input-number",{staticClass:"w-140",attrs:{disabled:!0,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:9999999999},model:{value:t.row.start,callback:function(n){e.$set(t.row,"start",n)},expression:"scope.row.start"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266 p-l-10 p-r-10"},[e._v("名 至")])],1),e._v(" "),n("div",[n("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("第")]),e._v(" "),n("el-input-number",{staticClass:"w-140",attrs:{disabled:e.$route.query.editFlag,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:9999999999},on:{change:function(n){return e.changeEndNum(n,t.$index,t.row,2)}},model:{value:t.row.end,callback:function(n){e.$set(t.row,"end",n)},expression:"scope.row.end"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v("名")])],1)]):e._e(),e._v(" "),0!=t.$index&&t.$index==e.compitionAward.dealAmountSettingParam.length-1?n("div",{staticClass:"l-h-40"},[n("div",[n("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("第")]),e._v(" "),n("el-input-number",{staticClass:"w-140",attrs:{disabled:!0,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:9999999999},model:{value:t.row.start,callback:function(n){e.$set(t.row,"start",n)},expression:"scope.row.start"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266 p-l-10 p-r-10"},[e._v("名 至")])],1),e._v(" "),n("div",[n("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("第")]),e._v(" "),n("el-input-number",{staticClass:"w-140",attrs:{disabled:e.$route.query.editFlag,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:9999999999},model:{value:t.row.end,callback:function(n){e.$set(t.row,"end",n)},expression:"scope.row.end"}})],1)]):e._e()])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"奖品",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"cell flex flex-align-center"},[n("div",[n("div",[n("el-checkbox",{model:{value:t.row.pointCheck,callback:function(n){e.$set(t.row,"pointCheck",n)},expression:"scope.row.pointCheck"}},[e._v("积分")]),e._v(" "),n("el-input-number",{staticClass:"w-146",attrs:{disabled:e.$route.query.editFlag,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:999999},model:{value:t.row.point,callback:function(n){e.$set(t.row,"point",n)},expression:"scope.row.point"}})],1),e._v(" "),n("div",{staticClass:"m-t-10"},[n("el-checkbox",{model:{value:t.row.cardCheck,callback:function(n){e.$set(t.row,"cardCheck",n)},expression:"scope.row.cardCheck"}},[e._v("卡券")]),e._v(" "),e.$route.query.editFlag?n("disable-card-show",{attrs:{cardName:t.row.cardName},on:{"update:cardName":function(n){return e.$set(t.row,"cardName",n)},"update:card-name":function(n){return e.$set(t.row,"cardName",n)}}}):n("select-card",{attrs:{cardName:t.row.cardName},on:{"update:cardName":function(n){return e.$set(t.row,"cardName",n)},"update:card-name":function(n){return e.$set(t.row,"cardName",n)}},model:{value:t.row.cardId,callback:function(n){e.$set(t.row,"cardId",n)},expression:"scope.row.cardId"}})],1)]),e._v(" "),0!=t.$index?n("el-button",{staticClass:"m-l-16",attrs:{disabled:e.$route.query.editFlag,type:"text",size:"small"},on:{click:function(n){return n.stopPropagation(),e.deleteRow(t.$index,e.compitionAward.dealAmountSettingParam)}}},[e._v("\n                  删除\n                ")]):e._e()],1)]}}])})],1),e._v(" "),n("div",{staticClass:"add-line text-center cursor-pointer",on:{click:e.addMoneyItem}},[n("i",{staticClass:"el-icon-plus color-2F54EB"}),n("span",{staticClass:"color-2F54EB font-14 p-l-10"},[e._v("添加奖项")])])],1)])],1)],1)},staticRenderFns:[]};var je=n("VU/8")(Re,He,!1,function(e){n("AfPn")},"data-v-b61de156",null).exports,Be={name:"invitee-reward",props:{value:{type:[Object,Array],default:function(){return{pointSettingFlag:!0,cardSettingFlag:!1,pointAwardMode:1,pointAwardPoint:1,pointAwardStepParam:[{achieve:1,point:1}],pointAwardPerAmount:1,pointAwardPerPoint:1,cardAwardMode:1,cardId:"",cardName:"",cardAwardStepParam:[{achieve:1,cardId:"",cardName:""}],stepType:1}}}},components:{selectCard:Ae,disableCardShow:Se},data:function(){return{basePath:[],invitedAward:{pointSettingFlag:!0,cardSettingFlag:!1,pointAwardMode:1,pointAwardPoint:1,pointAwardStepParam:[{achieve:1,point:1}],pointAwardPerAmount:1,pointAwardPerPoint:1,cardAwardMode:1,cardId:"",cardName:"",cardAwardStepParam:[{achieve:1,cardId:"",cardName:""}],stepType:1}}},methods:{submitForm:function(){var e=this;return new C.a(function(t,n){e.$refs.rewardForm.validate(function(n){if(n){if(e.$emit("input",e.invitedAward),e.invitedAward.pointSettingFlag&&1==e.invitedAward.pointAwardMode&&!e.invitedAward.pointAwardPoint&&t({flag:!1,msg:"请完善受邀人奖励中积分奖励的定额奖励"}),!e.invitedAward.pointSettingFlag||3!=e.invitedAward.pointAwardMode||e.invitedAward.pointAwardPerAmount&&e.invitedAward.pointAwardPerPoint||t({flag:!1,msg:"请完善受邀人奖励中积分奖励的成交额等比奖励"}),e.invitedAward.pointSettingFlag&&2==e.invitedAward.pointAwardMode&&!e.invitedAward.pointAwardStepParam.length&&t({flag:!1,msg:"请完善受邀人奖励中积分奖励的阶梯奖励"}),e.invitedAward.pointSettingFlag&&2==e.invitedAward.pointAwardMode&&e.invitedAward.pointAwardStepParam.length){var r=!0;e.invitedAward.pointAwardStepParam.forEach(function(e){e.achieve&&e.point||(r=!1)}),r||t({flag:!1,msg:"请完善受邀人奖励中积分奖励的阶梯奖励中的成交额或奖励积分"})}if(e.invitedAward.pointSettingFlag&&2==e.invitedAward.pointAwardMode&&e.invitedAward.pointAwardStepParam.length>1){var i=!0,a=[];e.invitedAward.pointAwardStepParam.forEach(function(e){a.push(e.achieve)});for(var o=0;o<a.length-1;o++){for(var s=o+1;s<a.length;s++)if(a[o]>=a[s]){i=!1;break}if(!i)break}i||t({flag:!1,msg:"请按顺序填写受邀人奖励中积分奖励的阶梯奖项中成交额"})}if(e.invitedAward.cardSettingFlag&&1==e.invitedAward.cardAwardMode&&!e.invitedAward.cardId&&t({flag:!1,msg:"请完善受邀人奖励中卡券奖励"}),e.invitedAward.cardSettingFlag&&2==e.invitedAward.cardAwardMode&&!e.invitedAward.cardAwardStepParam.length&&t({flag:!1,msg:"请完善受邀人奖励中卡券奖励中的阶梯奖励"}),e.invitedAward.cardSettingFlag&&2==e.invitedAward.cardAwardMode&&e.invitedAward.cardAwardStepParam.length){var u=!0;e.invitedAward.cardAwardStepParam.forEach(function(e){e.achieve&&e.cardId||(u=!1)}),u||t({flag:!1,msg:"请完善受邀人奖励中卡券奖励的阶梯奖励中的成交额或奖励积分"})}if(e.invitedAward.cardSettingFlag&&2==e.invitedAward.cardAwardMode&&e.invitedAward.cardAwardStepParam.length>1){var l=!0,c=[];e.invitedAward.cardAwardStepParam.forEach(function(e){c.push(e.achieve),e.cardId||(l=!1)});for(var d=0;d<c.length-1;d++){for(var f=d+1;f<c.length;f++)if(c[d]>=c[f]){l=!1;break}if(!l)break}l||t({flag:!1,msg:"请按顺序填写受邀人奖励中卡券奖励阶梯奖项中成交额"})}t(e.invitedAward)}else t(!1)})})},deleteRow:function(e,t){if(this.$route.query.hasOwnProperty("editFlag"))return!1;t.splice(e,1)},addPointItem:function(){if(this.$route.query.hasOwnProperty("editFlag"))return!1;this.invitedAward.pointAwardStepParam.push({achieve:1,point:1})},addCardItem:function(){if(this.$route.query.hasOwnProperty("editFlag"))return!1;this.invitedAward.cardAwardStepParam.push({achieve:1,cardId:"",cardName:""})}},watch:{value:function(e){this.invitedAward=JSON.parse(l()(e))}},mounted:function(){this.invitedAward=JSON.parse(l()(this.value)),s()(this.$store.state.baseInfo).length&&(this.basePath=JSON.parse(l()(this.$store.state.baseInfo)).router)}},We={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"invitee-reward border-box"},[e._m(0),e._v(" "),n("el-form",{ref:"rewardForm",attrs:{"label-width":"154px",model:e.invitedAward,rules:e.rules}},[n("el-form-item",{attrs:{label:"奖励内容：",prop:""}},[n("div",{staticClass:"point-cell"},[n("div",{staticClass:"point-cell-title border-box flex flex-space-between"},[n("div",{staticClass:"point-cell-name font-14 color-303133 font-w-600"},[e._v("积分奖励")]),e._v(" "),n("div",{staticClass:"point-cell-switch"},[n("el-switch",{attrs:{disabled:e.$route.query.editFlag,"active-text":"","inactive-text":""},model:{value:e.invitedAward.pointSettingFlag,callback:function(t){e.$set(e.invitedAward,"pointSettingFlag",t)},expression:"invitedAward.pointSettingFlag"}})],1)]),e._v(" "),e.invitedAward.pointSettingFlag?n("div",{staticClass:"point-cell-body border-box"},[n("div",{staticClass:"point-title-tip font-14 color-606266"},[e._v("积分奖励只适用于受邀人有会员卡的场景（适合老客复购场景，不适合老带新场景），非会员受邀人即使完成相关行为也无法获取积分奖励。")]),e._v(" "),n("div",{staticClass:"el-form-item m-t-44",attrs:{"data-v-6033a8b1":""}},[n("label",{staticClass:"el-form-item__label",staticStyle:{width:"85px"},attrs:{for:""}},[e._v("奖励模式：")]),e._v(" "),n("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"85px"}},[n("el-radio-group",{attrs:{disabled:e.$route.query.editFlag},model:{value:e.invitedAward.pointAwardMode,callback:function(t){e.$set(e.invitedAward,"pointAwardMode",t)},expression:"invitedAward.pointAwardMode"}},[n("el-radio",{attrs:{label:1}},[e._v("定额奖励")]),e._v(" "),e.basePath.map(function(e){return e.transName}).includes("消费")&&6==e.invitedAward.stepType?n("el-radio",{attrs:{label:2}},[e._v("阶梯奖励")]):e._e(),e._v(" "),e.basePath.map(function(e){return e.transName}).includes("消费")&&6==e.invitedAward.stepType?n("el-radio",{attrs:{label:3}},[e._v("成交额等比奖励")]):e._e()],1)],1)]),e._v(" "),1==e.invitedAward.pointAwardMode?n("div",{staticClass:"m-t-20"},[n("div",{staticClass:"store-select-title"},[n("span",{staticClass:"font-14 color-606266"},[e._v("奖励额度：")]),e._v(" "),n("el-input-number",{attrs:{disabled:e.$route.query.editFlag,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:999999},model:{value:e.invitedAward.pointAwardPoint,callback:function(t){e.$set(e.invitedAward,"pointAwardPoint",t)},expression:"invitedAward.pointAwardPoint"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266"},[e._v("积分")])],1)]):e._e(),e._v(" "),2==e.invitedAward.pointAwardMode?n("div",{staticClass:"m-t-20 w-845"},[n("div",{staticClass:"store-select-title"},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.invitedAward.pointAwardStepParam}},[n("el-table-column",{attrs:{label:"成交额"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"cell"},[n("div",[n("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("满")]),e._v(" "),n("el-input-number",{attrs:{disabled:e.$route.query.editFlag,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:9999999999},model:{value:t.row.achieve,callback:function(n){e.$set(t.row,"achieve",n)},expression:"scope.row.achieve"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v("元")])],1)])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"奖励积分"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"cell"},[n("el-input-number",{attrs:{disabled:e.$route.query.editFlag,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:999999},model:{value:t.row.point,callback:function(n){e.$set(t.row,"point",n)},expression:"scope.row.point"}}),e._v(" "),0!=t.$index?n("el-button",{staticClass:"m-l-16",attrs:{disabled:e.$route.query.editFlag,type:"text",size:"small"},on:{click:function(n){return n.stopPropagation(),e.deleteRow(t.$index,e.invitedAward.pointAwardStepParam)}}},[e._v("\n                        删除\n                      ")]):e._e()],1)]}}])})],1),e._v(" "),n("div",{staticClass:"add-line text-center cursor-pointer",on:{click:e.addPointItem}},[n("i",{staticClass:"el-icon-plus color-2F54EB"}),n("span",{staticClass:"color-2F54EB font-14 p-l-10"},[e._v("添加奖项")])])],1)]):e._e(),e._v(" "),3==e.invitedAward.pointAwardMode?n("div",{staticClass:"m-t-20"},[n("div",{staticClass:"store-select-title"},[n("span",{staticClass:"font-14 color-606266"},[e._v("奖励额度：")]),e._v(" "),n("span",{staticClass:"font-14 color-606266"},[e._v("每消费")]),e._v(" "),n("el-input-number",{attrs:{disabled:e.$route.query.editFlag,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:999},model:{value:e.invitedAward.pointAwardPerAmount,callback:function(t){e.$set(e.invitedAward,"pointAwardPerAmount",t)},expression:"invitedAward.pointAwardPerAmount"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266 p-l-3 p-r-10"},[e._v("元 奖励 ")]),e._v(" "),n("el-input-number",{attrs:{disabled:e.$route.query.editFlag,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:999},model:{value:e.invitedAward.pointAwardPerPoint,callback:function(t){e.$set(e.invitedAward,"pointAwardPerPoint",t)},expression:"invitedAward.pointAwardPerPoint"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266"},[e._v("积分")])],1)]):e._e()]):e._e()])]),e._v(" "),n("el-form-item",{staticClass:"m-t-20",attrs:{label:"",prop:""}},[n("div",{staticClass:"point-cell"},[n("div",{staticClass:"point-cell-title flex flex-space-between"},[n("div",{staticClass:"point-cell-name font-14 color-303133 font-w-600"},[e._v("卡券奖励")]),e._v(" "),n("div",{staticClass:"point-cell-switch"},[n("el-switch",{attrs:{disabled:e.$route.query.editFlag,"active-text":"","inactive-text":""},model:{value:e.invitedAward.cardSettingFlag,callback:function(t){e.$set(e.invitedAward,"cardSettingFlag",t)},expression:"invitedAward.cardSettingFlag"}})],1)]),e._v(" "),e.invitedAward.cardSettingFlag?n("div",{staticClass:"point-cell-body"},[6==e.invitedAward.stepType?n("div",{staticClass:"point-title-tip font-14 color-606266"},[e._v("该奖励仅适用于消费行为后的奖励，消费行为之前如果有送受邀人卡券的需求，请在转化路径中增加“卡券领取”环节。受邀人奖励中的卡券仅单纯作为奖励，不做转化路径的漏斗分析、活动效果分析等。")]):e._e(),e._v(" "),6!=e.invitedAward.stepType?n("div",{staticClass:"point-title-tip font-14 color-606266"},[e._v("受邀人奖励中的卡券仅单纯作为奖励，不做转化路径的漏斗分析、活动效果分析等。如果希望卡券领取数据在数据分析中体现，则需要在转化路径中配置卡券领取的节点。")]):e._e(),e._v(" "),n("div",{staticClass:"el-form-item m-t-44",attrs:{"data-v-6033a8b1":""}},[n("label",{staticClass:"el-form-item__label",staticStyle:{width:"85px"},attrs:{for:""}},[e._v("奖励模式：")]),e._v(" "),n("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"85px"}},[n("el-radio-group",{attrs:{disabled:e.$route.query.editFlag},model:{value:e.invitedAward.cardAwardMode,callback:function(t){e.$set(e.invitedAward,"cardAwardMode",t)},expression:"invitedAward.cardAwardMode"}},[n("el-radio",{attrs:{label:1}},[e._v("固定奖励")]),e._v(" "),e.basePath.map(function(e){return e.transName}).includes("消费")&&6==e.invitedAward.stepType?n("el-radio",{attrs:{label:2}},[e._v("阶梯奖励")]):e._e()],1)],1)]),e._v(" "),1==e.invitedAward.cardAwardMode?n("div",{staticClass:"m-t-20 child-select-wrap"},[n("div",{staticClass:"store-select-title"},[n("span",{staticClass:"font-14 color-606266"},[e._v("选择卡券：")]),e._v(" "),e.$route.query.editFlag?n("disable-card-show",{attrs:{cardName:e.invitedAward.cardName}}):n("select-card",{attrs:{width:"260px",cardName:e.invitedAward.cardName},on:{"update:cardName":function(t){return e.$set(e.invitedAward,"cardName",t)},"update:card-name":function(t){return e.$set(e.invitedAward,"cardName",t)}},model:{value:e.invitedAward.cardId,callback:function(t){e.$set(e.invitedAward,"cardId",t)},expression:"invitedAward.cardId"}})],1)]):e._e(),e._v(" "),2==e.invitedAward.cardAwardMode?n("div",{staticClass:"m-t-20 child-select-wrap"},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.invitedAward.cardAwardStepParam}},[n("el-table-column",{attrs:{label:"成交额"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"cell"},[n("div",[n("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("满")]),e._v(" "),n("el-input-number",{attrs:{disabled:e.$route.query.editFlag,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:9999999999},model:{value:t.row.achieve,callback:function(n){e.$set(t.row,"achieve",n)},expression:"scope.row.achieve"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v("元")])],1)])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"奖励卡券"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"cell"},[e.$route.query.editFlag?n("disable-card-show",{attrs:{cardName:t.row.cardName}}):n("select-card",{attrs:{cardName:t.row.cardName},on:{"update:cardName":function(n){return e.$set(t.row,"cardName",n)},"update:card-name":function(n){return e.$set(t.row,"cardName",n)}},model:{value:t.row.cardId,callback:function(n){e.$set(t.row,"cardId",n)},expression:"scope.row.cardId"}}),e._v(" "),0!=t.$index?n("el-button",{staticClass:"m-l-16",attrs:{disabled:e.$route.query.editFlag,type:"text",size:"small"},on:{click:function(n){return n.stopPropagation(),e.deleteRow(t.$index,e.invitedAward.cardAwardStepParam)}}},[e._v("\n                      删除\n                    ")]):e._e()],1)]}}])})],1),e._v(" "),n("div",{staticClass:"add-line text-center cursor-pointer",on:{click:e.addCardItem}},[n("i",{staticClass:"el-icon-plus color-2F54EB"}),n("span",{staticClass:"color-2F54EB font-14 p-l-10"},[e._v("添加奖项")])])],1):e._e()]):e._e()])])],1)],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[t("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2F54EB"}),this._v(" "),t("div",{staticClass:"el-alert__content"},[t("span",{staticClass:"el-alert__title color-606266 font-14 font-w-400"},[this._v("给邀请人的奖励往往是为了扩大活动影响力和辐射范围，而受邀人奖励则能提升活动响应率和行为转化能力。"),t("br"),this._v("\n        您可以配置受邀人奖励，当完成相关行为后，受邀人将实时获取相关奖励。"),t("br"),this._v("\n        注意：与邀请人奖励不同，受邀人无论完成当前活动路径多少次，都只能获得一次受邀人奖励。")])])])}]};var Ue=n("VU/8")(Be,We,!1,function(e){n("eIVM")},"data-v-0c64ecd6",null).exports,ze=n("3E4D"),Je={name:"fraud-control",props:{value:{type:[Object,Array],default:function(){return{amountLimitFlag:0,amountLimitAmount:1,pointProgram:1,pointControlDay:1,stepType:1}}},notEdit:{type:Boolean,default:!0}},components:{},data:function(){return{activeIsStart:!1,pointFreeze:{amountLimitFlag:0,amountLimitAmount:1,pointProgram:1,pointControlDay:1,stepType:1},modeData:[{goalId:0,goalName:"不控制上限 (推荐)",describe:"同一个受邀人无论消费多少，都会计入累计成交额。"},{goalId:1,goalName:"控制成交额上限",describe:"限制针对单个受邀人统计的成交额，超过该额度之后，溢出的成交额不计入奖励结算的统计。"}],contentData:[{goalId:1,goalName:"延时发放（推荐）",describe:"根据自身的退换货有效期政策，设置延时发放积分的时长，积分发放后再退款，系统不会追扣积分。"},{goalId:2,goalName:"积分冻结",describe:"积分发放没有延时，但受邀人退款后会追扣（回收）积分，可设置积分冻结期来确保退换服务期内的积分安全。注意：闯关奖励、竞赛奖励、受邀人奖励不会追扣(回收)。"},{goalId:0,goalName:"不予控制",describe:"积分发放没有延时，也不会对受邀人的 退款事件作积分的追扣（回收）。"}]}},methods:{submitForm:function(){var e=this;return new C.a(function(t,n){e.$refs.rewardForm.validate(function(n){n?(e.$emit("input",e.pointFreeze),1!=e.pointFreeze.amountLimitFlag||e.pointFreeze.amountLimitAmount||t({flag:!1,msg:"请完善防欺诈风险控制中成交额上限控制"}),1!=e.pointFreeze.pointProgram||e.pointFreeze.pointControlDay||t({flag:!1,msg:"请完善防欺诈风险控制中积分处理方案"}),2!=e.pointFreeze.pointProgram||e.pointFreeze.pointControlDay||t({flag:!1,msg:"请完善防欺诈风险控制中积分处理方案"}),t(e.pointFreeze)):t(!1)})})},selectStore:function(e){return this.$route.query.hasOwnProperty("activityId")&&!this.notEdit&&this.activeIsStart?(ze.a.showmsg("成交额上限控制禁止修改","warning"),!1):!this.$route.query.hasOwnProperty("editFlag")&&void(this.pointFreeze.amountLimitFlag=e.goalId)},selectMoney:function(e){return this.$route.query.hasOwnProperty("activityId")&&!this.notEdit&&this.activeIsStart?(ze.a.showmsg("积分处理方案禁止修改","warning"),!1):!this.$route.query.hasOwnProperty("editFlag")&&void(this.pointFreeze.pointProgram=e.goalId)}},watch:{value:function(e){this.pointFreeze=JSON.parse(l()(e))}},mounted:function(){if(this.pointFreeze=JSON.parse(l()(this.value)),s()(this.$store.state.baseInfo).length){var e=JSON.parse(l()(this.$store.state.baseInfo)).startDate;this.activeIsStart=!(new Date(e).getTime()>(new Date).getTime())}}},qe={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"fraud-control border-box"},[n("el-form",{ref:"rewardForm",attrs:{"label-width":"154px",model:e.pointFreeze,rules:e.rules}},[n("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[n("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2F54EB"}),e._v(" "),n("div",{staticClass:"el-alert__content"},[n("span",{staticClass:"el-alert__title color-606266 font-14 font-w-400"},[e._v("为了获取邀请人奖励，可能会出现恶意盗刷的情况，因此系统支持对单个受邀人的成交额累计上限做控制。"),n("br"),e._v("\n          这能有效的杜绝邀请人在闯关奖励、竞赛奖励中采用作弊手段（即时奖励有单独的限制控制，该成交额上限对即时奖励不起作用）。")])])]),e._v(" "),n("el-form-item",{attrs:{label:"成交额上限控制：",prop:""}},[n("ul",{staticClass:"flex "},[e._l(e.modeData,function(t,r){return[n("li",{key:r+"first",class:["li-cell li-second-cell flex-1 ",e.pointFreeze.amountLimitFlag==t.goalId?"li-second-active":""],on:{click:function(n){return e.selectStore(t)}}},[n("div",{staticClass:"li-cell-inner"},[n("div",{staticClass:"li-cell-bottom border-box"},[n("div",{staticClass:"li-cell-scene"},[n("div",{staticClass:"li-cell-scene_title font-14 color-303133"},[e._v(e._s(t.goalName))]),e._v(" "),n("div",{staticClass:"li-cell-scene_text font-14 color-606266"},[e._v(e._s(t.describe))])])])]),e._v(" "),n("div",{staticClass:"common-cell-check"},[n("div",{staticClass:"common-cell-triangle"},[n("div",{staticClass:"common-cell-outer"},[n("i",{staticClass:"el-icon-upload-success el-icon-check"})])])])])]})],2),e._v(" "),1==e.pointFreeze.amountLimitFlag?n("div",{staticClass:"store-select-wrap"},[n("div",{staticClass:"store-select-title"},[n("span",{staticClass:"font-14 color-606266"},[e._v("限制额度：")]),e._v(" "),n("el-input-number",{attrs:{disabled:e.$route.query.editFlag||!e.notEdit&&e.activeIsStart,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:9999999999},model:{value:e.pointFreeze.amountLimitAmount,callback:function(t){e.$set(e.pointFreeze,"amountLimitAmount",t)},expression:"pointFreeze.amountLimitAmount"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266"},[e._v("元")])],1)]):e._e()]),e._v(" "),n("div",{staticClass:"el-alert el-alert--info m-t-20",attrs:{role:"alert"}},[n("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2F54EB"}),e._v(" "),n("div",{staticClass:"el-alert__content"},[n("span",{staticClass:"el-alert__title color-606266 font-14 font-w-400"},[e._v("转化路径的一系列节点中，消费行为尤其特殊，因为可以申请退款，所以涉及到奖励回收的问题。请根据自身的活动政策，配置相关的风险控制策略。注意：仅针对即时奖励可进行控制，闯关奖励、竞赛奖励和受邀人奖励不作回收处理。由于即时奖励中没有卡券类奖励，因此没有卡券处理方案的配置。")])])]),e._v(" "),n("el-form-item",{staticClass:"m-t-20",attrs:{label:"积分处理方案：",prop:""}},[n("ul",{staticClass:"flex  "},[e._l(e.contentData,function(t,r){return[n("li",{key:r+"first",class:["li-cell li-second-cell flex-1 ",e.pointFreeze.pointProgram==t.goalId?"li-second-active":""],on:{click:function(n){return e.selectMoney(t)}}},[n("div",{staticClass:"li-cell-inner"},[n("div",{staticClass:"li-cell-bottom border-box"},[n("div",{staticClass:"li-cell-scene"},[n("div",{staticClass:"li-cell-scene_title font-14 color-303133"},[e._v(e._s(t.goalName))]),e._v(" "),n("div",{staticClass:"li-cell-scene_text font-14 color-606266"},[e._v(e._s(t.describe))])])])]),e._v(" "),n("div",{staticClass:"common-cell-check"},[n("div",{staticClass:"common-cell-triangle"},[n("div",{staticClass:"common-cell-outer"},[n("i",{staticClass:"el-icon-upload-success el-icon-check"})])])])])]})],2),e._v(" "),1==e.pointFreeze.pointProgram?n("div",{staticClass:"store-select-wrap child-select-wrap"},[n("div",{staticClass:"store-select-title"},[n("span",{staticClass:"font-14 color-606266"},[e._v("延时时长：")]),e._v(" "),n("el-input-number",{attrs:{disabled:e.$route.query.editFlag||!e.notEdit&&e.activeIsStart,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:99},model:{value:e.pointFreeze.pointControlDay,callback:function(t){e.$set(e.pointFreeze,"pointControlDay",t)},expression:"pointFreeze.pointControlDay"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266 p-l-3 p-r-10"},[e._v("天")])],1)]):e._e(),e._v(" "),2==e.pointFreeze.pointProgram?n("div",{staticClass:"store-select-wrap child-select-wrap"},[n("div",{staticClass:"store-select-title"},[n("span",{staticClass:"font-14 color-606266"},[e._v("冻结时长：")]),e._v(" "),n("el-input-number",{attrs:{disabled:e.$route.query.editFlag||!e.notEdit&&e.activeIsStart,"controls-position":"right",step:1,"step-strictly":!0,min:1,max:99},model:{value:e.pointFreeze.pointControlDay,callback:function(t){e.$set(e.pointFreeze,"pointControlDay",t)},expression:"pointFreeze.pointControlDay"}}),e._v(" "),n("span",{staticClass:"font-14 color-606266 p-l-3 p-r-10"},[e._v("天")])],1)]):e._e()])],1)],1)},staticRenderFns:[]};var Ve={name:"reward-config",props:{},components:{consumeConfig:we,spotAward:Le,entryAward:Ee,competitionAward:je,inviteeReward:Ue,fraudControl:n("VU/8")(Je,qe,!1,function(e){n("EP/8")},"data-v-cb7902c4",null).exports},data:function(){return{loading:!1,basePath:[],stepObj:{"服务号关注":1,"访问活动营销页":2,"会员认证":3,"游戏参与":4,"卡券领取":5,"消费":6},switchObj:{serviceAttentionFlag:"服务号关注",entryActivityFlag:"访问活动营销页",authorizeOpenCardFlag:"会员认证",enjoyGameFlag:"游戏参与",receiveCardFlag:"卡券领取",consumeAwardFlag:"消费"},stepTypeNum:1,activeInfoData:{activityId:"",awardMode:"1",instantAwardFlag:1,passAwardFlag:0,competitionAwardFlag:0,serviceAttentionFlag:0,entryActivityFlag:0,authorizeOpenCardFlag:0,enjoyGameFlag:0,receiveCardFlag:0,consumeAwardFlag:0,stepType:this.stepTypeNum,consumeAction:{consumeStoreControlFlag:0,consumeStoreName:"",dealAmountControlFlag:0,dealAmountControlMin:1,dealAmountControlMax:1,singleDealNumberControlFlag:0,singleDealNumberControlMin:1,singleDealNumberControlMax:1,uuid:"",storeList:[],stepType:this.stepTypeNum},instanceAward:{instanceMade:1,instancePoint:1,instanceNumber:1,instanceContent:[{start:0,end:5,point:1,infinity:!1},{start:10,end:20,point:1,infinity:!1}],awardLimitType:1,awardLimitNumber:1,awardLimitPoint:1,stepType:this.stepTypeNum},passAward:{dealNumberFlag:1,dealAmountFlag:0,dealNumberSettingParam:[],dealAmountSettingParam:[],stepType:this.stepTypeNum},compitionAward:{dealNumberFlag:1,dealAmountFlag:0,dealNumberSettingParam:[],dealAmountSettingParam:[],stepType:this.stepTypeNum},invitedAward:{pointSettingFlag:!0,cardSettingFlag:!1,pointAwardMode:1,pointAwardPoint:1,pointAwardStepParam:[],pointAwardPerAmount:1,pointAwardPerPoint:1,cardAwardMode:1,cardId:"",cardName:"",cardAwardStepParam:[{achieve:1,cardId:"",cardName:""}],stepType:this.stepTypeNum},pointFreeze:{amountLimitFlag:0,amountLimitAmount:1,pointProgram:1,pointControlDay:1,stepType:this.stepTypeNum}},consumeAction:{consumeStoreControlFlag:0,consumeStoreName:"",dealAmountControlFlag:0,dealAmountControlMin:1,dealAmountControlMax:1,singleDealNumberControlFlag:0,singleDealNumberControlMin:1,singleDealNumberControlMax:1,uuid:"",storeList:[],stepType:this.stepTypeNum},instanceAward:{instanceMade:1,instancePoint:1,instanceNumber:1,instanceContent:[{start:0,end:5,point:1,infinity:!1},{start:10,end:20,point:1,infinity:!1}],awardLimitType:1,awardLimitNumber:1,awardLimitPoint:1,stepType:this.stepTypeNum},passAward:{dealNumberFlag:1,dealAmountFlag:0,dealNumberSettingParam:[],dealAmountSettingParam:[],stepType:this.stepTypeNum},compitionAward:{dealNumberFlag:1,dealAmountFlag:0,dealNumberSettingParam:[],dealAmountSettingParam:[],stepType:this.stepTypeNum},invitedAward:{pointSettingFlag:!0,cardSettingFlag:!1,pointAwardMode:1,pointAwardPoint:1,pointAwardStepParam:[],pointAwardPerAmount:1,pointAwardPerPoint:1,cardAwardMode:1,cardId:"",cardName:"",cardAwardStepParam:[{achieve:1,cardId:"",cardName:""}],stepType:this.stepTypeNum},pointFreeze:{amountLimitFlag:0,amountLimitAmount:1,pointProgram:1,pointControlDay:1,stepType:this.stepTypeNum},rules:{awardMode:[{required:!0,message:"请选择奖励模式",trigger:"blur"}]},awardData:[{goalId:1,selectedIconUrl:n("evrx"),iconUrl:n("MU+7"),goalName:"单次奖励（推荐）",describe:"无论活动的转化路径分多少步，只有当受邀人完成了最后一步的行为，邀请人才能得到奖励。",check:!1},{goalId:2,selectedIconUrl:n("a8rS"),iconUrl:n("6gwF"),goalName:"渐进式奖励",describe:"可以对转化路径当中的每一步单独配置奖励信息，即可以将转化路径理解为漏斗模型，邀请人可以分层获得奖励。"}],awardTypeData:[{goalId:1,key:"instantAwardFlag",goalName:"即时奖励（推荐）",describe:"当受邀人满足完成了相关的行为，即时发放邀请人或受邀人的奖励。",check:!1},{goalId:2,key:"passAwardFlag",goalName:"闯关奖励",describe:"满足相关行为的受邀人数量满足条件后，邀请人即可领取相关奖励，可设置难度逐级递增的多个阶段目标。",check:!1},{goalId:3,key:"competitionAwardFlag",goalName:"竞赛奖励",describe:"活动结束后进行统一排名结算和奖励发放的模式，奖项信息可自定义设置。",check:!1}],activeName:"first",serviceAttentionFlag:{activeName:"first",serviceAttentionFlag:!1,entryActivityFlag:!1,authorizeOpenCardFlag:!1,enjoyGameFlag:!1,receiveCardFlag:!1,consumeAwardFlag:!1,switchFlag:!1,stepType:1,title:"服务号关注奖励",subTitle:"当受邀人成功关注了服务号之后触发的奖励，开启后可配置相关奖励内容，若该行为无奖励则保持关闭状态即可。",instantAwardFlag:1,passAwardFlag:0,competitionAwardFlag:0,consumeAction:{consumeStoreControlFlag:0,consumeStoreName:"",dealAmountControlFlag:0,dealAmountControlMin:1,dealAmountControlMax:1,singleDealNumberControlFlag:0,singleDealNumberControlMin:1,singleDealNumberControlMax:1,uuid:"",storeList:[],stepType:1},instanceAward:{instanceMade:1,instancePoint:1,instanceNumber:1,instanceContent:[{start:0,end:5,point:1,infinity:!1},{start:10,end:20,point:1,infinity:!1}],awardLimitType:1,awardLimitNumber:1,awardLimitPoint:1,stepType:1},passAward:{dealNumberFlag:1,dealAmountFlag:0,dealNumberSettingParam:[],dealAmountSettingParam:[],stepType:1},compitionAward:{dealNumberFlag:1,dealAmountFlag:0,dealNumberSettingParam:[],dealAmountSettingParam:[],stepType:1},invitedAward:{pointSettingFlag:!0,cardSettingFlag:!1,pointAwardMode:1,pointAwardPoint:1,pointAwardStepParam:[],pointAwardPerAmount:1,pointAwardPerPoint:1,cardAwardMode:1,cardId:"",cardName:"",cardAwardStepParam:[{achieve:1,cardId:"",cardName:""}],stepType:1},pointFreeze:{amountLimitFlag:0,amountLimitAmount:1,pointProgram:1,pointControlDay:1,stepType:1}},entryActivityFlag:{activeName:"first",serviceAttentionFlag:!1,entryActivityFlag:!1,authorizeOpenCardFlag:!1,enjoyGameFlag:!1,receiveCardFlag:!1,consumeAwardFlag:!1,switchFlag:!1,stepType:2,title:"活动营销页访问奖励",subTitle:"当受邀人成功访问了指定活动营销页之后触发的奖励，开启后可配置相关奖励内容，若该行为无奖励则保持关闭状态即可。",instantAwardFlag:1,passAwardFlag:0,competitionAwardFlag:0,consumeAction:{consumeStoreControlFlag:0,consumeStoreName:"",dealAmountControlFlag:0,dealAmountControlMin:1,dealAmountControlMax:1,singleDealNumberControlFlag:0,singleDealNumberControlMin:1,singleDealNumberControlMax:1,uuid:"",storeList:[],stepType:2},instanceAward:{instanceMade:1,instancePoint:1,instanceNumber:1,instanceContent:[{start:0,end:5,point:1,infinity:!1},{start:10,end:20,point:1,infinity:!1}],awardLimitType:1,awardLimitNumber:1,awardLimitPoint:1,stepType:2},passAward:{dealNumberFlag:1,dealAmountFlag:0,dealNumberSettingParam:[],dealAmountSettingParam:[],stepType:2},compitionAward:{dealNumberFlag:1,dealAmountFlag:0,dealNumberSettingParam:[],dealAmountSettingParam:[],stepType:2},invitedAward:{pointSettingFlag:!0,cardSettingFlag:!1,pointAwardMode:1,pointAwardPoint:1,pointAwardStepParam:[],pointAwardPerAmount:1,pointAwardPerPoint:1,cardAwardMode:1,cardId:"",cardName:"",cardAwardStepParam:[{achieve:1,cardId:"",cardName:""}],stepType:2},pointFreeze:{amountLimitFlag:0,amountLimitAmount:1,pointProgram:1,pointControlDay:1,stepType:2}},authorizeOpenCardFlag:{activeName:"first",serviceAttentionFlag:!1,entryActivityFlag:!1,authorizeOpenCardFlag:!1,enjoyGameFlag:!1,receiveCardFlag:!1,consumeAwardFlag:!1,switchFlag:!1,stepType:3,title:"会员认证奖励",subTitle:"当受邀人完成了会员认证之后触发的奖励，开启后可配置相关奖励内容，若该行为无奖励则保持关闭状态即可。",instantAwardFlag:1,passAwardFlag:0,competitionAwardFlag:0,consumeAction:{consumeStoreControlFlag:0,consumeStoreName:"",dealAmountControlFlag:0,dealAmountControlMin:1,dealAmountControlMax:1,singleDealNumberControlFlag:0,singleDealNumberControlMin:1,singleDealNumberControlMax:1,uuid:"",storeList:[],stepType:3},instanceAward:{instanceMade:1,instancePoint:1,instanceNumber:1,instanceContent:[{start:0,end:5,point:1,infinity:!1},{start:10,end:20,point:1,infinity:!1}],awardLimitType:1,awardLimitNumber:1,awardLimitPoint:1,stepType:3},passAward:{dealNumberFlag:1,dealAmountFlag:0,dealNumberSettingParam:[{achieve:5,point:1,pointCheck:!1,cardId:"",cardName:"",cardCheck:!1}],dealAmountSettingParam:[{achieve:5,point:1,pointCheck:!1,cardId:"",cardName:"",cardCheck:!1}],stepType:3},compitionAward:{dealNumberFlag:1,dealAmountFlag:0,dealNumberSettingParam:[],dealAmountSettingParam:[],stepType:3},invitedAward:{pointSettingFlag:!0,cardSettingFlag:!1,pointAwardMode:1,pointAwardPoint:1,pointAwardStepParam:[],pointAwardPerAmount:1,pointAwardPerPoint:1,cardAwardMode:1,cardId:"",cardName:"",cardAwardStepParam:[{achieve:1,cardId:"",cardName:""}],stepType:3},pointFreeze:{amountLimitFlag:0,amountLimitAmount:1,pointProgram:1,pointControlDay:1,stepType:3}},enjoyGameFlag:{activeName:"first",serviceAttentionFlag:!1,entryActivityFlag:!1,authorizeOpenCardFlag:!1,enjoyGameFlag:!1,receiveCardFlag:!1,consumeAwardFlag:!1,switchFlag:!1,stepType:4,title:"游戏参与奖励",subTitle:"当受邀人成功参与了指定游戏之后触发的奖励，开启后可配置相关奖励内容，若该行为无奖励则保持关闭状态即可。",instantAwardFlag:1,passAwardFlag:0,competitionAwardFlag:0,consumeAction:{consumeStoreControlFlag:0,consumeStoreName:"",dealAmountControlFlag:0,dealAmountControlMin:1,dealAmountControlMax:1,singleDealNumberControlFlag:0,singleDealNumberControlMin:1,singleDealNumberControlMax:1,uuid:"",storeList:[],stepType:4},instanceAward:{instanceMade:1,instancePoint:1,instanceNumber:1,instanceContent:[{start:0,end:5,point:1,infinity:!1},{start:10,end:20,point:1,infinity:!1}],awardLimitType:1,awardLimitNumber:1,awardLimitPoint:1,stepType:4},passAward:{dealNumberFlag:1,dealAmountFlag:0,dealNumberSettingParam:[],dealAmountSettingParam:[],stepType:4},compitionAward:{dealNumberFlag:1,dealAmountFlag:0,dealNumberSettingParam:[],dealAmountSettingParam:[],stepType:4},invitedAward:{pointSettingFlag:!0,cardSettingFlag:!1,pointAwardMode:1,pointAwardPoint:1,pointAwardStepParam:[],pointAwardPerAmount:1,pointAwardPerPoint:1,cardAwardMode:1,cardId:"",cardName:"",cardAwardStepParam:[{achieve:1,cardId:"",cardName:""}],stepType:4},pointFreeze:{amountLimitFlag:0,amountLimitAmount:1,pointProgram:1,pointControlDay:1,stepType:4}},receiveCardFlag:{activeName:"first",serviceAttentionFlag:!1,entryActivityFlag:!1,authorizeOpenCardFlag:!1,enjoyGameFlag:!1,receiveCardFlag:!1,consumeAwardFlag:!1,switchFlag:!1,stepType:5,title:"卡券领取奖励",subTitle:"当受邀人成功领取了指定卡券之后触发的奖励，开启后可配置相关奖励内容，若该行为无奖励则保持关闭状态即可。",instantAwardFlag:1,passAwardFlag:0,competitionAwardFlag:0,consumeAction:{consumeStoreControlFlag:0,consumeStoreName:"",dealAmountControlFlag:0,dealAmountControlMin:1,dealAmountControlMax:1,singleDealNumberControlFlag:0,singleDealNumberControlMin:1,singleDealNumberControlMax:1,uuid:"",storeList:[],stepType:5},instanceAward:{instanceMade:1,instancePoint:1,instanceNumber:1,instanceContent:[{start:0,end:5,point:1,infinity:!1},{start:10,end:20,point:1,infinity:!1}],awardLimitType:1,awardLimitNumber:1,awardLimitPoint:1,stepType:5},passAward:{dealNumberFlag:1,dealAmountFlag:0,dealNumberSettingParam:[],dealAmountSettingParam:[],stepType:5},compitionAward:{dealNumberFlag:1,dealAmountFlag:0,dealNumberSettingParam:[],dealAmountSettingParam:[],stepType:5},invitedAward:{pointSettingFlag:!0,cardSettingFlag:!1,pointAwardMode:1,pointAwardPoint:1,pointAwardStepParam:[],pointAwardPerAmount:1,pointAwardPerPoint:1,cardAwardMode:1,cardId:"",cardName:"",cardAwardStepParam:[{achieve:1,cardId:"",cardName:""}],stepType:5},pointFreeze:{amountLimitFlag:0,amountLimitAmount:1,pointProgram:1,pointControlDay:1,stepType:5}},consumeAwardFlag:{activeName:"first",serviceAttentionFlag:!1,entryActivityFlag:!1,authorizeOpenCardFlag:!1,enjoyGameFlag:!1,receiveCardFlag:!1,consumeAwardFlag:!1,switchFlag:!1,stepType:6,title:"消费奖励",subTitle:"当受邀人进行了消费之后触发的奖励，开启后可配置相关奖励内容，若该行为无奖励则保持关闭状态即可。",instantAwardFlag:1,passAwardFlag:0,competitionAwardFlag:0,consumeAction:{consumeStoreControlFlag:0,consumeStoreName:"",dealAmountControlFlag:0,dealAmountControlMin:1,dealAmountControlMax:1,singleDealNumberControlFlag:0,singleDealNumberControlMin:1,singleDealNumberControlMax:1,uuid:"",storeList:[],stepType:6},instanceAward:{instanceMade:1,instancePoint:1,instanceNumber:1,instanceContent:[{start:0,end:5,point:1,infinity:!1},{start:10,end:20,point:1,infinity:!1}],awardLimitType:1,awardLimitNumber:1,awardLimitPoint:1,stepType:6},passAward:{dealNumberFlag:1,dealAmountFlag:0,dealNumberSettingParam:[],dealAmountSettingParam:[],stepType:6},compitionAward:{dealNumberFlag:1,dealAmountFlag:0,dealNumberSettingParam:[],dealAmountSettingParam:[],stepType:6},invitedAward:{pointSettingFlag:!0,cardSettingFlag:!1,pointAwardMode:1,pointAwardPoint:1,pointAwardStepParam:[],pointAwardPerAmount:1,pointAwardPerPoint:1,cardAwardMode:1,cardId:"",cardName:"",cardAwardStepParam:[{achieve:1,cardId:"",cardName:""}],stepType:6},pointFreeze:{amountLimitFlag:0,amountLimitAmount:1,pointProgram:1,pointControlDay:1,stepType:6}},ProgressiveData:[],notEdit:!0}},methods:{selectMode:function(e){if(this.$route.query.hasOwnProperty("activityId")&&!this.notEdit)return ze.a.showmsg("奖励模式禁止修改","warning"),!1;this.activeInfoData.awardMode=e.goalId,2!=e.goalId||this.ProgressiveData.length||this.changeModeData()},selectModeType:function(e,t){if(this.$route.query.hasOwnProperty("editFlag"))return!1;t[e.key]=t[e.key]?0:1;var n=this.stepObj[this.basePath[this.basePath.length-1].transName];1==this.activeInfoData.awardMode&&6!=n&&0==t.instantAwardFlag&&"second"==this.activeName&&(this.activeName="five"),1==this.activeInfoData.awardMode&&6!=n&&0==t.passAwardFlag&&"third"==this.activeName&&(this.activeName="five"),1==this.activeInfoData.awardMode&&6!=n&&0==t.competitionAwardFlag&&"four"==this.activeName&&(this.activeName="five"),1==this.activeInfoData.awardMode&&6==n&&0==t[e.key]&&0==t.instantAwardFlag&&"second"==this.activeName&&(this.activeName="first"),1==this.activeInfoData.awardMode&&6==n&&0==t[e.key]&&0==t.passAwardFlag&&"third"==this.activeName&&(this.activeName="first"),1==this.activeInfoData.awardMode&&6==n&&0==t[e.key]&&0==t.competitionAwardFlag&&"four"==this.activeName&&(this.activeName="first"),2==this.activeInfoData.awardMode&&6!=t.stepType&&0==t.instantAwardFlag&&"second"==t.activeName&&(t.activeName="five"),2==this.activeInfoData.awardMode&&6!=t.stepType&&0==t.passAwardFlag&&"third"==t.activeName&&(t.activeName="five"),2==this.activeInfoData.awardMode&&6!=t.stepType&&0==t.competitionAwardFlag&&"four"==t.activeName&&(t.activeName="five"),2==this.activeInfoData.awardMode&&6==t.stepType&&0==t.instantAwardFlag&&"second"==t.activeName&&(t.activeName="first"),2==this.activeInfoData.awardMode&&6==t.stepType&&0==t.passAwardFlag&&"third"==t.activeName&&(t.activeName="first"),2==this.activeInfoData.awardMode&&6==t.stepType&&0==t.competitionAwardFlag&&"four"==t.activeName&&(t.activeName="first")},changeModeData:function(){var e=this,t=function(t){e.basePath.forEach(function(n){n.transName==e.switchObj[t]&&e.ProgressiveData.push(e[t])})};for(var n in e.switchObj)t(n);e.$nextTick(function(){e.ProgressiveData[e.ProgressiveData.length-1].switchFlag=!0,e.ProgressiveData.forEach(function(t){e.basePath.map(function(e){return e.transName}).includes("消费")&&6==t.stepType?t.activeName="first":t.activeName="second"}),e.$forceUpdate()}),console.log(e.ProgressiveData)},handleClick:function(e,t){console.log(e,t)},submitBack:function(){var e=this;return ve()(ge.a.mark(function t(){var n,r,i,a,o,s,u;return ge.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(1!=(n=e).activeInfoData.awardMode){t.next=37;break}if(!n.basePath.map(function(e){return e.transName}).includes("消费")){t.next=7;break}return t.next=5,n.$refs.singleConsume.submitForm();case 5:t.next=8;break;case 7:case 8:if(1!=n.activeInfoData.instantAwardFlag){t.next=13;break}return t.next=11,n.$refs.singleSpot.submitForm();case 11:t.next=14;break;case 13:case 14:if(1!=n.activeInfoData.passAwardFlag){t.next=19;break}return t.next=17,n.$refs.singleEntry.submitForm();case 17:t.next=20;break;case 19:case 20:if(1!=n.activeInfoData.competitionAwardFlag){t.next=25;break}return t.next=23,n.$refs.singleCompetition.submitForm();case 23:t.next=26;break;case 25:case 26:return t.next=28,n.$refs.singleInvitee.submitForm();case 28:if(!n.basePath.map(function(e){return e.transName}).includes("消费")){t.next=33;break}return t.next=31,n.$refs.singleFreeze.submitForm();case 31:t.next=34;break;case 33:case 34:n.$store.dispatch("saveRewardInfo",n.activeInfoData),t.next=99;break;case 37:if(!0,!n.$refs.hasOwnProperty("multConsume")||!n.$refs.multConsume.length){t.next=47;break}r=0;case 40:if(!(r<n.$refs.multConsume.length)){t.next=47;break}return t.next=43,n.$refs.multConsume[r].submitForm();case 43:t.sent;case 44:r++,t.next=40;break;case 47:if(!0,!n.$refs.hasOwnProperty("multSpot")||!n.$refs.multSpot.length){t.next=57;break}i=0;case 50:if(!(i<n.$refs.multSpot.length)){t.next=57;break}return t.next=53,n.$refs.multSpot[i].submitForm();case 53:t.sent;case 54:i++,t.next=50;break;case 57:if(!0,!n.$refs.hasOwnProperty("multEntry")||!n.$refs.multEntry.length){t.next=67;break}a=0;case 60:if(!(a<n.$refs.multEntry.length)){t.next=67;break}return t.next=63,n.$refs.multEntry[a].submitForm();case 63:t.sent;case 64:a++,t.next=60;break;case 67:if(!0,!n.$refs.hasOwnProperty("multCompetition")||!n.$refs.multCompetition.length){t.next=77;break}o=0;case 70:if(!(o<n.$refs.multCompetition.length)){t.next=77;break}return t.next=73,n.$refs.multCompetition[o].submitForm();case 73:t.sent;case 74:o++,t.next=70;break;case 77:if(!0,!n.$refs.hasOwnProperty("multInvitee")||!n.$refs.multInvitee.length){t.next=87;break}s=0;case 80:if(!(s<n.$refs.multInvitee.length)){t.next=87;break}return t.next=83,n.$refs.multInvitee[s].submitForm();case 83:t.sent;case 84:s++,t.next=80;break;case 87:if(!0,!n.$refs.multFreeze||!n.$refs.multFreeze.length){t.next=97;break}u=0;case 90:if(!(u<n.$refs.multFreeze.length)){t.next=97;break}return t.next=93,n.$refs.multFreeze[u].submitForm();case 93:t.sent;case 94:u++,t.next=90;break;case 97:n.$store.dispatch("saveRewardInfo",n.activeInfoData),n.$store.dispatch("saveMultRewardInfo",n.ProgressiveData);case 99:n.$emit("submitBack");case 100:case"end":return t.stop()}},t,e)}))()},submitForm:function(e){var t=this,n=this;n.$refs[e].validate(function(e){return!!e&&(n.$route.query.hasOwnProperty("editFlag")?(n.$store.dispatch("clearActiveData"),n.$router.push("/shareIndex"),!1):(t.loading=!0,void(1==n.activeInfoData.awardMode?n.singleCheck():n.moreCheck())))})},singleCheck:function(){var e=this;return ve()(ge.a.mark(function t(){var n,r,i,a,o,s,u,c,d,f;return ge.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=e).basePath.map(function(e){return e.transName}).includes("消费")){t.next=7;break}return t.next=4,n.$refs.singleConsume.submitForm();case 4:t.t0=t.sent,t.next=8;break;case 7:t.t0=!0;case 8:if(!(r=t.t0).hasOwnProperty("flag")||r.flag){t.next=13;break}return ze.a.showmsg(r.msg,"warning"),e.loading=!1,t.abrupt("return",!1);case 13:if(1!=n.activeInfoData.instantAwardFlag){t.next=19;break}return t.next=16,n.$refs.singleSpot.submitForm();case 16:t.t1=t.sent,t.next=20;break;case 19:t.t1=!0;case 20:if(!(i=t.t1).hasOwnProperty("flag")||i.flag){t.next=25;break}return ze.a.showmsg(i.msg,"warning"),e.loading=!1,t.abrupt("return",!1);case 25:if(1!=n.activeInfoData.passAwardFlag){t.next=31;break}return t.next=28,n.$refs.singleEntry.submitForm();case 28:t.t2=t.sent,t.next=32;break;case 31:t.t2=!0;case 32:if(!(a=t.t2).hasOwnProperty("flag")||a.flag){t.next=37;break}return ze.a.showmsg(a.msg,"warning"),e.loading=!1,t.abrupt("return",!1);case 37:if(1!=n.activeInfoData.competitionAwardFlag){t.next=43;break}return t.next=40,n.$refs.singleCompetition.submitForm();case 40:t.t3=t.sent,t.next=44;break;case 43:t.t3=!0;case 44:if(!(o=t.t3).hasOwnProperty("flag")||o.flag){t.next=49;break}return ze.a.showmsg(o.msg,"warning"),e.loading=!1,t.abrupt("return",!1);case 49:return t.next=51,n.$refs.singleInvitee.submitForm();case 51:if(!(s=t.sent).hasOwnProperty("flag")||s.flag){t.next=56;break}return ze.a.showmsg(s.msg,"warning"),e.loading=!1,t.abrupt("return",!1);case 56:if(!n.basePath.map(function(e){return e.transName}).includes("消费")){t.next=62;break}return t.next=59,n.$refs.singleFreeze.submitForm();case 59:t.t4=t.sent,t.next=63;break;case 62:t.t4=!0;case 63:if(!(u=t.t4).hasOwnProperty("flag")||u.flag){t.next=68;break}return ze.a.showmsg(u.msg,"warning"),e.loading=!1,t.abrupt("return",!1);case 68:return c=n.basePath.map(function(e){return e.transName}),n.activeInfoData.stepType=n.stepObj[c[c.length-1]],n.activeInfoData.hasOwnProperty("consumeAction")&&(n.activeInfoData.consumeAction.stepType=n.stepObj[c[c.length-1]]),n.activeInfoData.hasOwnProperty("instanceAward")&&(n.activeInfoData.instanceAward.stepType=n.stepObj[c[c.length-1]]),n.activeInfoData.hasOwnProperty("passAward")&&(n.activeInfoData.passAward.stepType=n.stepObj[c[c.length-1]]),n.activeInfoData.hasOwnProperty("compitionAward")&&(n.activeInfoData.compitionAward.stepType=n.stepObj[c[c.length-1]]),n.activeInfoData.hasOwnProperty("invitedAward")&&(n.activeInfoData.invitedAward.stepType=n.stepObj[c[c.length-1]],n.activeInfoData.invitedAward.pointSettingFlag=n.activeInfoData.invitedAward.pointSettingFlag?1:0,n.activeInfoData.invitedAward.cardSettingFlag=n.activeInfoData.invitedAward.cardSettingFlag?1:0),n.activeInfoData.hasOwnProperty("pointFreeze")&&(n.activeInfoData.pointFreeze.stepType=n.stepObj[c[c.length-1]]),d=JSON.parse(l()(n.activeInfoData)),t.next=79,n.resetKey(d);case 79:d.passAward&&1==d.passAward.dealNumberFlag&&d.passAward.dealNumberSettingParam.forEach(function(e){e.oldData=!0,!e.cardCheck&&e.cardId&&(e.cardId="",e.cardName=""),!e.pointCheck&&e.point&&(e.point="")}),d.passAward&&1==d.passAward.dealAmountFlag&&d.passAward.dealAmountSettingParam.forEach(function(e){e.oldData=!0,!e.cardCheck&&e.cardId&&(e.cardId="",e.cardName=""),!e.pointCheck&&e.point&&(e.point="")}),f={activityId:d.activityId,awardMode:d.awardMode,awardItems:[d]},n.postSave(f);case 83:case"end":return t.stop()}},t,e)}))()},resetKey:function(e){var t=this;return ve()(ge.a.mark(function n(){var r,i;return ge.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:(i=(r=t).basePath.map(function(e){return e.transName})).includes("消费")||(r.$set(e,"consumeAction",null),r.$set(e,"pointFreeze",null)),0==e.instantAwardFlag&&r.$set(e,"instanceAward",null),0==e.passAwardFlag&&r.$set(e,"passAward",null),0==e.competitionAwardFlag&&r.$set(e,"compitionAward",null),i.includes("消费")&&0==e.consumeAction.consumeStoreControlFlag&&(r.$set(e.consumeAction,"consumeStoreName",""),r.$set(e.consumeAction,"storeList",[]),r.$set(e.consumeAction,"uuid","")),i.includes("消费")&&0==e.consumeAction.dealAmountControlFlag&&(r.$set(e.consumeAction,"dealAmountControlMin",""),r.$set(e.consumeAction,"dealAmountControlMax","")),i.includes("消费")&&0==e.consumeAction.singleDealNumberControlFlag&&(r.$set(e.consumeAction,"singleDealNumberControlMin",""),r.$set(e.consumeAction,"singleDealNumberControlMax","")),i.includes("消费")&&0==e.pointFreeze.amountLimitFlag&&r.$set(e.pointFreeze,"amountLimitAmount",""),i.includes("消费")&&0==e.pointFreeze.pointProgram&&r.$set(e.pointFreeze,"pointControlDay",""),1==e.instantAwardFlag&&1==e.instanceAward.instanceMade&&(r.$set(e.instanceAward,"instanceContent",[]),r.$set(e.instanceAward,"instanceNumber","")),1==e.instantAwardFlag&&2==e.instanceAward.instanceMade&&(r.$set(e.instanceAward,"instancePoint",""),r.$set(e.instanceAward,"instanceNumber","")),1==e.instantAwardFlag&&3==e.instanceAward.instanceMade&&r.$set(e.instanceAward,"instanceContent",[]),1==e.instantAwardFlag&&1==e.instanceAward.awardLimitType&&(r.$set(e.instanceAward,"awardLimitNumber",""),r.$set(e.instanceAward,"awardLimitPoint","")),1==e.instantAwardFlag&&2==e.instanceAward.awardLimitType&&r.$set(e.instanceAward,"awardLimitPoint",""),1==e.instantAwardFlag&&3==e.instanceAward.awardLimitType&&r.$set(e.instanceAward,"awardLimitNumber",""),1==e.passAwardFlag&&0==e.passAward.dealNumberFlag&&r.$set(e.passAward,"dealNumberSettingParam",[]),1==e.passAwardFlag&&0==e.passAward.dealAmountFlag&&r.$set(e.passAward,"dealAmountSettingParam",[]),1==e.competitionAwardFlag&&0==e.compitionAward.dealNumberFlag&&r.$set(e.compitionAward,"dealNumberSettingParam",[]),1==e.competitionAwardFlag&&0==e.compitionAward.dealAmountFlag&&r.$set(e.compitionAward,"dealAmountSettingParam",[]),0==e.invitedAward.pointSettingFlag&&(r.$set(e.invitedAward,"pointAwardMode",1),r.$set(e.invitedAward,"pointAwardPoint",""),r.$set(e.invitedAward,"pointAwardStepParam",[]),r.$set(e.invitedAward,"pointAwardPerAmount",""),r.$set(e.invitedAward,"pointAwardPerPoint","")),1==e.invitedAward.pointSettingFlag&&1==e.invitedAward.pointAwardMode&&(r.$set(e.invitedAward,"pointAwardStepParam",[]),r.$set(e.invitedAward,"pointAwardPerAmount",""),r.$set(e.invitedAward,"pointAwardPerPoint","")),1==e.invitedAward.pointSettingFlag&&2==e.invitedAward.pointAwardMode&&(r.$set(e.invitedAward,"pointAwardPoint",""),r.$set(e.invitedAward,"pointAwardPerAmount",""),r.$set(e.invitedAward,"pointAwardPerPoint","")),1==e.invitedAward.pointSettingFlag&&3==e.invitedAward.pointAwardMode&&(r.$set(e.invitedAward,"pointAwardPoint",""),r.$set(e.invitedAward,"pointAwardStepParam",[])),0==e.invitedAward.cardSettingFlag&&(r.$set(e.invitedAward,"cardAwardMode",1),r.$set(e.invitedAward,"cardId",""),r.$set(e.invitedAward,"cardName",""),r.$set(e.invitedAward,"cardAwardStepParam",[])),1==e.invitedAward.cardSettingFlag&&1==e.invitedAward.cardAwardMode&&r.$set(e.invitedAward,"cardAwardStepParam",[]),1==e.invitedAward.cardSettingFlag&&2==e.invitedAward.cardAwardMode&&(r.$set(e.invitedAward,"cardId",""),r.$set(e.invitedAward,"cardName",""));case 28:case"end":return n.stop()}},n,t)}))()},moreCheck:function(){var e=this;return ve()(ge.a.mark(function t(){var n,r,i,a,o,s,u,l,c,d,f,m,h,p,g,_;return ge.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=!0,!(n=e).$refs.hasOwnProperty("multConsume")||!n.$refs.multConsume.length){t.next=14;break}console.log(n.$refs),i=0;case 5:if(!(i<n.$refs.multConsume.length)){t.next=14;break}return t.next=8,n.$refs.multConsume[i].submitForm();case 8:if(r=t.sent){t.next=11;break}return t.abrupt("break",14);case 11:i++,t.next=5;break;case 14:if(!r.hasOwnProperty("flag")||r.flag){t.next=18;break}return ze.a.showmsg(r.msg,"warning"),e.loading=!1,t.abrupt("return",!1);case 18:if(a=!0,!n.$refs.hasOwnProperty("multSpot")||!n.$refs.multSpot.length){t.next=30;break}o=0;case 21:if(!(o<n.$refs.multSpot.length)){t.next=30;break}return t.next=24,n.$refs.multSpot[o].submitForm();case 24:if(a=t.sent){t.next=27;break}return t.abrupt("break",30);case 27:o++,t.next=21;break;case 30:if(!a.hasOwnProperty("flag")||a.flag){t.next=34;break}return ze.a.showmsg(a.msg,"warning"),e.loading=!1,t.abrupt("return",!1);case 34:if(s=!0,!n.$refs.hasOwnProperty("multEntry")||!n.$refs.multEntry.length){t.next=46;break}u=0;case 37:if(!(u<n.$refs.multEntry.length)){t.next=46;break}return t.next=40,n.$refs.multEntry[u].submitForm();case 40:if(s=t.sent){t.next=43;break}return t.abrupt("break",46);case 43:u++,t.next=37;break;case 46:if(!s.hasOwnProperty("flag")||s.flag){t.next=50;break}return ze.a.showmsg(s.msg,"warning"),e.loading=!1,t.abrupt("return",!1);case 50:if(l=!0,!n.$refs.hasOwnProperty("multCompetition")||!n.$refs.multCompetition.length){t.next=62;break}c=0;case 53:if(!(c<n.$refs.multCompetition.length)){t.next=62;break}return t.next=56,n.$refs.multCompetition[c].submitForm();case 56:if(l=t.sent){t.next=59;break}return t.abrupt("break",62);case 59:c++,t.next=53;break;case 62:if(!l.hasOwnProperty("flag")||l.flag){t.next=66;break}return ze.a.showmsg(l.msg,"warning"),e.loading=!1,t.abrupt("return",!1);case 66:if(d=!0,!n.$refs.hasOwnProperty("multInvitee")||!n.$refs.multInvitee.length){t.next=78;break}f=0;case 69:if(!(f<n.$refs.multInvitee.length)){t.next=78;break}return t.next=72,n.$refs.multInvitee[f].submitForm();case 72:if(d=t.sent){t.next=75;break}return t.abrupt("break",78);case 75:f++,t.next=69;break;case 78:if(!d.hasOwnProperty("flag")||d.flag){t.next=82;break}return ze.a.showmsg(d.msg,"warning"),e.loading=!1,t.abrupt("return",!1);case 82:if(m=!0,!n.$refs.multFreeze||!n.$refs.multFreeze.length){t.next=94;break}h=0;case 85:if(!(h<n.$refs.multFreeze.length)){t.next=94;break}return t.next=88,n.$refs.multFreeze[h].submitForm();case 88:if(m=t.sent){t.next=91;break}return t.abrupt("break",94);case 91:h++,t.next=85;break;case 94:if(!m.hasOwnProperty("flag")||m.flag){t.next=98;break}return ze.a.showmsg(m.msg,"warning"),e.loading=!1,t.abrupt("return",!1);case 98:n.ProgressiveData.forEach(function(e){e.hasOwnProperty("invitedAward")&&(e.invitedAward.pointSettingFlag=e.invitedAward.pointSettingFlag?1:0,e.invitedAward.cardSettingFlag=e.invitedAward.cardSettingFlag?1:0),e.passAward&&1==e.passAward.dealNumberFlag&&e.passAward.dealNumberSettingParam.forEach(function(e){e.oldData=!0,!e.cardCheck&&e.cardId&&(e.cardId="",e.cardName=""),!e.pointCheck&&e.point&&(e.point="")}),e.passAward&&1==e.passAward.dealAmountFlag&&e.passAward.dealAmountSettingParam.forEach(function(e){e.oldData=!0,!e.cardCheck&&e.cardId&&(e.cardId="",e.cardName=""),!e.pointCheck&&e.point&&(e.point="")})}),p=0;case 100:if(!(p<n.ProgressiveData.length)){t.next=107;break}return g=n.ProgressiveData[p],t.next=104,n.resetKey(g);case 104:p++,t.next=100;break;case 107:_={activityId:n.activeInfoData.activityId,awardMode:n.activeInfoData.awardMode,awardItems:n.ProgressiveData},n.postSave(_);case 109:case"end":return t.stop()}},t,e)}))()},postSave:function(e){var t=this,n=this,r=JSON.parse(l()(e));Object(y.b)("/sharing-core-web/edit-activity-award",r).then(function(e){var t=e.data;if(1==t.errorCode)return ze.a.showmsg("活动创建成功","success"),n.$store.dispatch("clearActiveData"),void n.$router.push("/createCompletion?url="+t.result);b.a.errorMsg(t)}).catch(function(e){n.$message.error({duration:2500,message:e.message})}).finally(function(){setTimeout(function(){t.loading=!1},500)})},getData:function(){var e=this,t={activityId:e.$route.query.activityId};Object(y.a)("/sharing-core-web/get-activity-award",t).then(function(t){var n=t.data;if(1==n.errorCode){if(!n.result)return e.notEdit=!0,!1;if(e.notEdit=!1,1!=n.result.awardMode){e.activeInfoData.activityId=n.result.activityId,e.activeInfoData.awardMode=n.result.awardMode;var r=n.result.awardItems;return r.forEach(function(t){6==t.stepType?t.activeName="first":t.activeName=t.instanceAward?"second":"five";var n=JSON.parse(l()(e.consumeAction)),r=JSON.parse(l()(e.instanceAward)),i=JSON.parse(l()(e.passAward)),a=JSON.parse(l()(e.compitionAward)),o=JSON.parse(l()(e.invitedAward)),s=JSON.parse(l()(e.pointFreeze));n.stepType=t.stepType,r.stepType=t.stepType,i.stepType=t.stepType,a.stepType=t.stepType,o.stepType=t.stepType,s.stepType=t.stepType,t.consumeAction=t.consumeAction?t.consumeAction:n,t.instanceAward=t.instanceAward?t.instanceAward:r,t.passAward=t.passAward?t.passAward:i,t.compitionAward=t.compitionAward?t.compitionAward:a,t.invitedAward=t.invitedAward?t.invitedAward:o,t.pointFreeze=t.pointFreeze?t.pointFreeze:s,t.invitedAward&&(t.invitedAward.pointSettingFlag=1==t.invitedAward.pointSettingFlag,t.invitedAward.cardSettingFlag=1==t.invitedAward.cardSettingFlag)}),e.ProgressiveData=JSON.parse(l()(r)),!1}e.consumeAction.stepType=n.result.awardItems[0].stepType,e.instanceAward.stepType=n.result.awardItems[0].stepType,e.passAward.stepType=n.result.awardItems[0].stepType,e.compitionAward.stepType=n.result.awardItems[0].stepType,e.invitedAward.stepType=n.result.awardItems[0].stepType,e.pointFreeze.stepType=n.result.awardItems[0].stepType;var i={activityId:n.result.activityId,awardMode:n.result.awardMode,stepType:n.result.awardItems[0].stepType,instantAwardFlag:n.result.awardItems[0].instantAwardFlag,passAwardFlag:n.result.awardItems[0].passAwardFlag,competitionAwardFlag:n.result.awardItems[0].competitionAwardFlag,serviceAttentionFlag:n.result.awardItems[0].serviceAttentionFlag,entryActivityFlag:n.result.awardItems[0].entryActivityFlag,authorizeOpenCardFlag:n.result.awardItems[0].authorizeOpenCardFlag,enjoyGameFlag:n.result.awardItems[0].enjoyGameFlag,receiveCardFlag:n.result.awardItems[0].receiveCardFlag,consumeAwardFlag:n.result.awardItems[0].consumeAwardFlag,consumeAction:n.result.awardItems[0].consumeAction?n.result.awardItems[0].consumeAction:e.consumeAction,instanceAward:n.result.awardItems[0].instanceAward?n.result.awardItems[0].instanceAward:e.instanceAward,passAward:n.result.awardItems[0].passAward?n.result.awardItems[0].passAward:e.passAward,compitionAward:n.result.awardItems[0].compitionAward?n.result.awardItems[0].compitionAward:e.compitionAward,invitedAward:n.result.awardItems[0].invitedAward?n.result.awardItems[0].invitedAward:e.invitedAward,pointFreeze:n.result.awardItems[0].pointFreeze?n.result.awardItems[0].pointFreeze:e.pointFreeze};i.invitedAward&&(i.invitedAward.pointSettingFlag=1==i.invitedAward.pointSettingFlag,i.invitedAward.cardSettingFlag=1==i.invitedAward.cardSettingFlag),6==i.stepType?e.activeName="first":e.activeName=i.instantAwardFlag?"second":"five",e.activeInfoData=i}else b.a.errorMsg(n)}).catch(function(t){e.$message.error({duration:2500,message:t.message})})}},mounted:function(){var e=this;if(e.$route.query.hasOwnProperty("activityId")&&e.getData(),s()(e.$store.state.baseInfo).length){e.basePath=JSON.parse(l()(e.$store.state.baseInfo)).router;var t=e.basePath.map(function(e){return e.transName});for(var n in t.includes("消费")?e.activeName="first":e.activeName="second",e.switchObj)e.activeInfoData[n]=t[t.length-1].includes(e.switchObj[n])?1:0;t[t.length-1].includes("领取卡券")&&(e.activeInfoData.consumeAwardFlag=1),e.stepTypeNum=e.stepObj[t[t.length-1]],e.activeInfoData.stepType=e.stepTypeNum,e.activeInfoData.consumeAction.stepType=e.stepTypeNum,e.activeInfoData.instanceAward.stepType=e.stepTypeNum,e.activeInfoData.passAward.stepType=e.stepTypeNum,e.activeInfoData.compitionAward.stepType=e.stepTypeNum,e.activeInfoData.invitedAward.stepType=e.stepTypeNum,e.activeInfoData.pointFreeze.stepType=e.stepTypeNum,e.activeInfoData.activityId=JSON.parse(l()(e.$store.state.baseInfo)).activityId}s()(e.$store.state.rewardInfo).length&&e.$nextTick(function(){e.activeInfoData=JSON.parse(l()(e.$store.state.rewardInfo)),console.log(e.activeInfoData),2==e.activeInfoData.awardMode&&(e.ProgressiveData=JSON.parse(l()(e.$store.state.multRewardInfo)))})}},Ge={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"reward-config-content"},[n("div",{staticClass:"config-title font-14 color-303133"},[e._v("奖励配置")]),e._v(" "),n("el-form",{ref:"rewardForm",attrs:{"label-width":"154px",model:e.activeInfoData,rules:e.rules}},[n("el-form-item",{attrs:{label:"奖励模式：",prop:"awardMode"}},[n("ul",{staticClass:"flex"},[e._l(e.awardData,function(t,r){return[n("li",{key:r+"first",class:["li-cell flex-1 ",e.activeInfoData.awardMode==t.goalId?"li-cell-active":""],on:{click:function(n){return e.selectMode(t)}}},[n("div",{staticClass:"li-cell-inner flex "},[n("div",{staticClass:"li-cell-left flex flex-align-center flex-pack-center"},[n("img",{attrs:{src:e.activeInfoData.awardMode==t.goalId?t.selectedIconUrl:t.iconUrl,alt:""}})]),e._v(" "),n("div",{staticClass:"li-cell-right border-box flex flex-column "},[n("div",{staticClass:"li-cell-active_name flex flex-align-center  font-18 color-303133"},[e._v(e._s(t.goalName))]),e._v(" "),n("div",{staticClass:"li-cell-active_describe flex flex-align-center  font-14 color-606266"},[e._v(e._s(t.describe))])])]),e._v(" "),n("div",{staticClass:"common-cell-check"},[n("div",{staticClass:"common-cell-triangle"},[n("div",{staticClass:"common-cell-outer"},[n("i",{staticClass:"el-icon-upload-success el-icon-check"})])])])])]})],2)]),e._v(" "),n("el-form-item",[n("div",{staticClass:"color-2F54EB font-14"},[e._v("注意：活动过程中，会员在活动过程中的活动动态将通过模板消息的方式进行触达通知")])]),e._v(" "),1==e.activeInfoData.awardMode?n("el-form-item",{attrs:{label:"奖励方案（多选）：",prop:""}},[n("ul",{staticClass:"flex  m-t-48"},[e._l(e.awardTypeData,function(t,r){return[n("li",{key:r+"second",class:["li-cell li-second-cell flex-1 ",e.activeInfoData[t.key]?"li-second-active":""],on:{click:function(n){return e.selectModeType(t,e.activeInfoData)}}},[n("div",{staticClass:"li-cell-inner"},[n("div",{staticClass:"li-cell-bottom border-box"},[n("div",{staticClass:"li-cell-scene"},[n("div",{staticClass:"li-cell-scene_title font-14 color-303133"},[e._v(e._s(t.goalName))]),e._v(" "),n("div",{staticClass:"li-cell-scene_text font-14 color-606266"},[e._v(e._s(t.describe))])])])]),e._v(" "),n("div",{staticClass:"common-cell-check"},[n("div",{staticClass:"common-cell-triangle"},[n("div",{staticClass:"common-cell-outer"},[n("i",{staticClass:"el-icon-upload-success el-icon-check"})])])])])]})],2)]):e._e(),e._v(" "),1==e.activeInfoData.awardMode?n("el-form-item",{staticClass:"m-t-50"},[n("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[e.basePath.map(function(e){return e.transName}).includes("消费")?n("el-tab-pane",{attrs:{label:"消费行为控制",name:"first"}},[n("consume-config",{ref:"singleConsume",model:{value:e.activeInfoData.consumeAction,callback:function(t){e.$set(e.activeInfoData,"consumeAction",t)},expression:"activeInfoData.consumeAction"}})],1):e._e(),e._v(" "),e.activeInfoData.instantAwardFlag?n("el-tab-pane",{attrs:{label:"即时奖励配置",name:"second"}},[n("spot-award",{ref:"singleSpot",model:{value:e.activeInfoData.instanceAward,callback:function(t){e.$set(e.activeInfoData,"instanceAward",t)},expression:"activeInfoData.instanceAward"}})],1):e._e(),e._v(" "),e.activeInfoData.passAwardFlag?n("el-tab-pane",{attrs:{label:"闯关奖励配置",name:"third"}},[n("entry-award",{ref:"singleEntry",model:{value:e.activeInfoData.passAward,callback:function(t){e.$set(e.activeInfoData,"passAward",t)},expression:"activeInfoData.passAward"}})],1):e._e(),e._v(" "),e.activeInfoData.competitionAwardFlag?n("el-tab-pane",{attrs:{label:"竞赛奖励配置",name:"four"}},[n("competition-award",{ref:"singleCompetition",model:{value:e.activeInfoData.compitionAward,callback:function(t){e.$set(e.activeInfoData,"compitionAward",t)},expression:"activeInfoData.compitionAward"}})],1):e._e(),e._v(" "),n("el-tab-pane",{attrs:{label:"受邀人奖励",name:"five"}},[n("invitee-reward",{ref:"singleInvitee",model:{value:e.activeInfoData.invitedAward,callback:function(t){e.$set(e.activeInfoData,"invitedAward",t)},expression:"activeInfoData.invitedAward"}})],1),e._v(" "),e.basePath.map(function(e){return e.transName}).includes("消费")?n("el-tab-pane",{attrs:{label:"防欺诈风险控制",name:"six"}},[n("fraud-control",{ref:"singleFreeze",attrs:{notEdit:e.notEdit},model:{value:e.activeInfoData.pointFreeze,callback:function(t){e.$set(e.activeInfoData,"pointFreeze",t)},expression:"activeInfoData.pointFreeze"}})],1):e._e()],1)],1):e._e(),e._v(" "),2==e.activeInfoData.awardMode?n("el-form-item",{staticClass:"m-t-50"},[n("ul",{staticClass:"active-big-class"},[e._l(e.ProgressiveData,function(t,r){return[n("li",{key:r+"set",class:["parent-li-cell border-box",t.switchFlag?"show-active-li":""]},[n("div",{staticClass:"progress-active-title flex  flex-space-between border-box"},[n("div",{staticClass:"active-title-left"},[n("div",{staticClass:"active-title-title font-16 color-303133"},[e._v(e._s(t.title))]),e._v(" "),n("div",{staticClass:"active-title-subtitle font-14 color-606266 m-t-7"},[e._v(e._s(t.subTitle))])]),e._v(" "),n("div",{staticClass:"active-title-right flex flex-align-center"},[n("el-switch",{attrs:{disabled:r==e.ProgressiveData.length-1||e.$route.query.editFlag,"active-text":"","inactive-text":""},model:{value:t.switchFlag,callback:function(n){e.$set(t,"switchFlag",n)},expression:"parentItem.switchFlag"}})],1)]),e._v(" "),t.switchFlag?n("div",{staticClass:"set-body"},[n("div",{staticClass:"el-form-item m-t-44",attrs:{"data-v-6033a8b1":""}},[n("label",{staticClass:"el-form-item__label",staticStyle:{width:"115px"},attrs:{for:""}},[e._v("奖励方案：")]),e._v(" "),n("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"115px"}},[n("ul",{staticClass:"flex  m-t-48"},[e._l(e.awardTypeData,function(r,i){return[n("li",{key:i+"second",class:["li-cell li-second-cell flex-1 ",t[r.key]?"li-second-active":""],on:{click:function(n){return e.selectModeType(r,t)}}},[n("div",{staticClass:"li-cell-inner"},[n("div",{staticClass:"li-cell-bottom border-box"},[n("div",{staticClass:"li-cell-scene"},[n("div",{staticClass:"li-cell-scene_title font-14 color-303133"},[e._v(e._s(r.goalName))]),e._v(" "),n("div",{staticClass:"li-cell-scene_text font-14 color-606266"},[e._v(e._s(r.describe))])])])]),e._v(" "),n("div",{staticClass:"common-cell-check"},[n("div",{staticClass:"common-cell-triangle"},[n("div",{staticClass:"common-cell-outer"},[n("i",{staticClass:"el-icon-upload-success el-icon-check"})])])])])]})],2)])]),e._v(" "),n("el-tabs",{staticClass:"m-t-30",attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:t.activeName,callback:function(n){e.$set(t,"activeName",n)},expression:"parentItem.activeName"}},[6==t.stepType?n("el-tab-pane",{attrs:{label:"消费行为控制",name:"first"}},[n("consume-config",{ref:"multConsume",refInFor:!0,model:{value:t.consumeAction,callback:function(n){e.$set(t,"consumeAction",n)},expression:"parentItem.consumeAction"}})],1):e._e(),e._v(" "),t.instantAwardFlag?n("el-tab-pane",{attrs:{label:"即时奖励配置",name:"second"}},[n("spot-award",{ref:"multSpot",refInFor:!0,attrs:{awardMode:e.activeInfoData.awardMode},model:{value:t.instanceAward,callback:function(n){e.$set(t,"instanceAward",n)},expression:"parentItem.instanceAward"}})],1):e._e(),e._v(" "),t.passAwardFlag?n("el-tab-pane",{attrs:{label:"闯关奖励配置",name:"third"}},[n("entry-award",{ref:"multEntry",refInFor:!0,model:{value:t.passAward,callback:function(n){e.$set(t,"passAward",n)},expression:"parentItem.passAward"}})],1):e._e(),e._v(" "),t.competitionAwardFlag?n("el-tab-pane",{attrs:{label:"竞赛奖励配置",name:"four"}},[n("competition-award",{ref:"multCompetition",refInFor:!0,model:{value:t.compitionAward,callback:function(n){e.$set(t,"compitionAward",n)},expression:"parentItem.compitionAward"}})],1):e._e(),e._v(" "),n("el-tab-pane",{attrs:{label:"受邀人奖励",name:"five"}},[n("invitee-reward",{ref:"multInvitee",refInFor:!0,model:{value:t.invitedAward,callback:function(n){e.$set(t,"invitedAward",n)},expression:"parentItem.invitedAward"}})],1),e._v(" "),6==t.stepType?n("el-tab-pane",{attrs:{label:"防欺诈风险控制",name:"six"}},[n("fraud-control",{ref:"multFreeze",refInFor:!0,attrs:{notEdit:e.notEdit},model:{value:t.pointFreeze,callback:function(n){e.$set(t,"pointFreeze",n)},expression:"parentItem.pointFreeze"}})],1):e._e()],1)],1):e._e()])]})],2)]):e._e(),e._v(" "),n("el-form-item",{staticClass:"m-t-50"},[n("el-button",{attrs:{type:"primary"},on:{click:e.submitBack}},[e._v("上一步")]),e._v(" "),e.$route.query.hasOwnProperty("editFlag")?e._e():n("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:function(t){return e.submitForm("rewardForm")}}},[e._v(" "+e._s(e.$route.query.hasOwnProperty("activityId")?"确认编辑":"确认新建"))]),e._v(" "),e.$route.query.hasOwnProperty("editFlag")?n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("rewardForm")}}},[e._v("返回活动列表")]):e._e()],1)],1)],1)},staticRenderFns:[]};var $e={name:"createCompletion",components:{activeStep:a,baseConfig:x,centerConfig:ne,cardConfig:se,posterConfig:he,rewardConfig:n("VU/8")(Ve,Ge,!1,function(e){n("54Wl")},"data-v-b3e38944",null).exports},data:function(){return{navpath:[{name:"分享有礼",path:"/shareIndex"},{name:this.$route.query.hasOwnProperty("editFlag")?"查看配置":this.$route.query.hasOwnProperty("activityId")?"编辑活动":"新建活动"}],activeStep:1,stepData:[{stepName:"基本信息",hasSet:!1},{stepName:"活动中心配置",hasSet:!1},{stepName:"小程序卡片配置",hasSet:!1},{stepName:"分享海报配置",hasSet:!1},{stepName:"奖励配置",hasSet:!1}]}},watch:{$route:function(e,t){}},methods:{submitNext:function(){this.stepData[this.activeStep-1].hasSet=!0,this.activeStep++},submitBack:function(){this.activeStep--,this.stepData[this.activeStep-1].hasSet=!1}}},Ke={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"create-completion common-wrap"},[n("div",{staticClass:"right-content border-box"},[n("div",{staticClass:"right-box border-box"},[n("div",{staticClass:"step-top"},[n("active-step",{attrs:{activeStep:e.activeStep,stepData:e.stepData}})],1),e._v(" "),n("div",{staticClass:"step-body"},["1"==e.activeStep?n("base-config",{on:{submitNext:e.submitNext}}):e._e(),e._v(" "),"2"==e.activeStep?n("center-config",{on:{submitBack:e.submitBack,submitNext:e.submitNext}}):e._e(),e._v(" "),"3"==e.activeStep?n("card-config",{on:{submitBack:e.submitBack,submitNext:e.submitNext}}):e._e(),e._v(" "),"4"==e.activeStep?n("poster-config",{on:{submitBack:e.submitBack,submitNext:e.submitNext}}):e._e(),e._v(" "),"5"==e.activeStep?n("reward-config",{on:{submitBack:e.submitBack,submitNext:e.submitNext}}):e._e()],1)])])])},staticRenderFns:[]};var Qe=n("VU/8")($e,Ke,!1,function(e){n("7Tis")},"data-v-6f84f180",null);t.default=Qe.exports},Nlnz:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},Nzt2:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},OBzU:function(e,t,n){e.exports=n.p+"static/img/style2-2.2121d9e.png"},ORgI:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},OSsP:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n){return e+" "+function(e,t){if(2===t)return function(e){var t={m:"v",b:"v",d:"z"};if(void 0===t[e.charAt(0)])return e;return t[e.charAt(0)]+e.substring(1)}(e);return 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,i=[/^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:i,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:i,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("PJh5"))},OUMt:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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 i(e,t,n,i){var a=e+" ";switch(n){case"s":return t||i?"pár sekúnd":"pár sekundami";case"ss":return t||i?a+(r(e)?"sekundy":"sekúnd"):a+"sekundami";case"m":return t?"minúta":i?"minútu":"minútou";case"mm":return t||i?a+(r(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?a+(r(e)?"hodiny":"hodín"):a+"hodinami";case"d":return t||i?"deň":"dňom";case"dd":return t||i?a+(r(e)?"dni":"dní"):a+"dňami";case"M":return t||i?"mesiac":"mesiacom";case"MM":return t||i?a+(r(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||i?"rok":"rokom";case"yy":return t||i?a+(r(e)?"roky":"rokov"):a+"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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n("PJh5"))},OVPi:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},"P+7F":function(e,t){},PJh5:function(e,t,n){(function(e){var t,r;//! moment.js
//! version : 2.29.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
r=function(){"use strict";var r,i;function a(){return r.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function u(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(u(e,t))return!1;return!0}function c(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function f(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function m(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function h(e,t){for(var n in t)u(t,n)&&(e[n]=t[n]);return u(t,"toString")&&(e.toString=t.toString),u(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return Nt(e,t,n,r,!0).utc()}function g(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=g(e),n=i.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function v(e){var t=p(NaN);return null!=e?h(g(t),e):g(t).userInvalidated=!0,t}i=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 y=a.momentProperties=[],b=!1;function w(e,t){var n,r,i;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=g(t)),c(t._locale)||(e._locale=t._locale),y.length>0)for(n=0;n<y.length;n++)c(i=t[r=y[n]])||(e[r]=i);return e}function M(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,a.updateOffset(this),b=!1)}function k(e){return e instanceof M||null!=e&&null!=e._isAMomentObject}function L(e){!1===a.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function D(e,t){var n=!0;return h(function(){if(null!=a.deprecationHandler&&a.deprecationHandler(null,e),n){var r,i,o,s=[];for(i=0;i<arguments.length;i++){if(r="","object"==typeof arguments[i]){for(o in r+="\n["+i+"] ",arguments[0])u(arguments[0],o)&&(r+=o+": "+arguments[0][o]+", ");r=r.slice(0,-2)}else r=arguments[i];s.push(r)}L(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var x,A={};function C(e,t){null!=a.deprecationHandler&&a.deprecationHandler(e,t),A[e]||(L(t),A[e]=!0)}function T(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function S(e,t){var n,r=h({},e);for(n in t)u(t,n)&&(s(e[n])&&s(t[n])?(r[n]={},h(r[n],e[n]),h(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)u(e,n)&&!u(t,n)&&s(e[n])&&(r[n]=h({},r[n]));return r}function Y(e){null!=e&&this.set(e)}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null,x=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)u(e,t)&&n.push(t);return n};function N(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var E=/(\[[^\[]*\])|(\\)?([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,P=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I={},O={};function F(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(O[e]=i),t&&(O[t[0]]=function(){return N(i.apply(this,arguments),t[1],t[2])}),n&&(O[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function R(e,t){return e.isValid()?(t=H(t,e.localeData()),I[t]=I[t]||function(e){var t,n,r,i=e.match(E);for(t=0,n=i.length;t<n;t++)O[i[t]]?i[t]=O[i[t]]:i[t]=(r=i[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,a="";for(r=0;r<n;r++)a+=T(i[r])?i[r].call(t,e):i[r];return a}}(t),I[t](e)):e.localeData().invalidDate()}function H(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(P.lastIndex=0;n>=0&&P.test(e);)e=e.replace(P,r),P.lastIndex=0,n-=1;return e}var j={};function B(e,t){var n=e.toLowerCase();j[n]=j[n+"s"]=j[t]=e}function W(e){return"string"==typeof e?j[e]||j[e.toLowerCase()]:void 0}function U(e){var t,n,r={};for(n in e)u(e,n)&&(t=W(n))&&(r[t]=e[n]);return r}var z={};function J(e,t){z[e]=t}function q(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 G(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=V(t)),n}function $(e,t){return function(n){return null!=n?(Q(this,e,n),a.updateOffset(this,t),this):K(this,e)}}function K(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Q(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&q(e.year())&&1===e.month()&&29===e.date()?(n=G(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ne(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var X,Z=/\d/,ee=/\d\d/,te=/\d{3}/,ne=/\d{4}/,re=/[+-]?\d{6}/,ie=/\d\d?/,ae=/\d\d\d\d?/,oe=/\d\d\d\d\d\d?/,se=/\d{1,3}/,ue=/\d{1,4}/,le=/[+-]?\d{1,6}/,ce=/\d+/,de=/[+-]?\d+/,fe=/Z|[+-]\d\d:?\d\d/gi,me=/Z|[+-]\d\d(?::?\d\d)?/gi,he=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function pe(e,t,n){X[e]=T(t)?t:function(e,r){return e&&n?n:t}}function ge(e,t){return u(X,e)?X[e](t._strict,t._locale):new RegExp(_e(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function _e(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}X={};var ve={};function ye(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),d(t)&&(r=function(e,n){n[t]=G(e)}),n=0;n<e.length;n++)ve[e[n]]=r}function be(e,t){ye(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function we(e,t,n){null!=t&&u(ve,e)&&ve[e](t,n._a,n,e)}var Me,ke=0,Le=1,De=2,xe=3,Ae=4,Ce=5,Te=6,Se=7,Ye=8;function Ne(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?q(e)?29:28:31-r%7%2}Me=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},F("M",["MM",2],"Mo",function(){return this.month()+1}),F("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),F("MMMM",0,0,function(e){return this.localeData().months(this,e)}),B("month","M"),J("month",8),pe("M",ie),pe("MM",ie,ee),pe("MMM",function(e,t){return t.monthsShortRegex(e)}),pe("MMMM",function(e,t){return t.monthsRegex(e)}),ye(["M","MM"],function(e,t){t[Le]=G(e)-1}),ye(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[Le]=i:g(n).invalidMonth=e});var Ee="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Pe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ie=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Oe=he,Fe=he;function Re(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=G(t);else if(!d(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Ne(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function He(e){return null!=e?(Re(this,e),a.updateOffset(this,!0),this):K(this,"Month")}function je(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],a=[];for(t=0;t<12;t++)n=p([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),a.sort(e),t=0;t<12;t++)r[t]=_e(r[t]),i[t]=_e(i[t]);for(t=0;t<24;t++)a[t]=_e(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Be(e){return q(e)?366:365}F("Y",0,0,function(){var e=this.year();return e<=9999?N(e,4):"+"+e}),F(0,["YY",2],0,function(){return this.year()%100}),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),B("year","y"),J("year",1),pe("Y",de),pe("YY",ie,ee),pe("YYYY",ue,ne),pe("YYYYY",le,re),pe("YYYYYY",le,re),ye(["YYYYY","YYYYYY"],ke),ye("YYYY",function(e,t){t[ke]=2===e.length?a.parseTwoDigitYear(e):G(e)}),ye("YY",function(e,t){t[ke]=a.parseTwoDigitYear(e)}),ye("Y",function(e,t){t[ke]=parseInt(e,10)}),a.parseTwoDigitYear=function(e){return G(e)+(G(e)>68?1900:2e3)};var We=$("FullYear",!0);function Ue(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 ze(e,t,n){var r=7+t-n;return-((7+Ue(e,0,r).getUTCDay()-t)%7)+r-1}function Je(e,t,n,r,i){var a,o,s=1+7*(t-1)+(7+n-r)%7+ze(e,r,i);return s<=0?o=Be(a=e-1)+s:s>Be(e)?(a=e+1,o=s-Be(e)):(a=e,o=s),{year:a,dayOfYear:o}}function qe(e,t,n){var r,i,a=ze(e.year(),t,n),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?r=o+Ve(i=e.year()-1,t,n):o>Ve(e.year(),t,n)?(r=o-Ve(e.year(),t,n),i=e.year()+1):(i=e.year(),r=o),{week:r,year:i}}function Ve(e,t,n){var r=ze(e,t,n),i=ze(e+1,t,n);return(Be(e)-r+i)/7}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),B("week","w"),B("isoWeek","W"),J("week",5),J("isoWeek",5),pe("w",ie),pe("ww",ie,ee),pe("W",ie),pe("WW",ie,ee),be(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=G(e)});function Ge(e,t){return e.slice(t,7).concat(e.slice(0,t))}F("d",0,"do","day"),F("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),F("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),F("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),B("day","d"),B("weekday","e"),B("isoWeekday","E"),J("day",11),J("weekday",11),J("isoWeekday",11),pe("d",ie),pe("e",ie),pe("E",ie),pe("dd",function(e,t){return t.weekdaysMinRegex(e)}),pe("ddd",function(e,t){return t.weekdaysShortRegex(e)}),pe("dddd",function(e,t){return t.weekdaysRegex(e)}),be(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:g(n).invalidWeekday=e}),be(["d","e","E"],function(e,t,n,r){t[r]=G(e)});var $e="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ke="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xe=he,Ze=he,et=he;function tt(){function e(e,t){return t.length-e.length}var t,n,r,i,a,o=[],s=[],u=[],l=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=_e(this.weekdaysMin(n,"")),i=_e(this.weekdaysShort(n,"")),a=_e(this.weekdays(n,"")),o.push(r),s.push(i),u.push(a),l.push(r),l.push(i),l.push(a);o.sort(e),s.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function nt(){return this.hours()%12||12}function rt(e,t){F(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function it(e,t){return t._meridiemParse}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,nt),F("k",["kk",2],0,function(){return this.hours()||24}),F("hmm",0,0,function(){return""+nt.apply(this)+N(this.minutes(),2)}),F("hmmss",0,0,function(){return""+nt.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)}),F("Hmm",0,0,function(){return""+this.hours()+N(this.minutes(),2)}),F("Hmmss",0,0,function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)}),rt("a",!0),rt("A",!1),B("hour","h"),J("hour",13),pe("a",it),pe("A",it),pe("H",ie),pe("h",ie),pe("k",ie),pe("HH",ie,ee),pe("hh",ie,ee),pe("kk",ie,ee),pe("hmm",ae),pe("hmmss",oe),pe("Hmm",ae),pe("Hmmss",oe),ye(["H","HH"],xe),ye(["k","kk"],function(e,t,n){var r=G(e);t[xe]=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[xe]=G(e),g(n).bigHour=!0}),ye("hmm",function(e,t,n){var r=e.length-2;t[xe]=G(e.substr(0,r)),t[Ae]=G(e.substr(r)),g(n).bigHour=!0}),ye("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[xe]=G(e.substr(0,r)),t[Ae]=G(e.substr(r,2)),t[Ce]=G(e.substr(i)),g(n).bigHour=!0}),ye("Hmm",function(e,t,n){var r=e.length-2;t[xe]=G(e.substr(0,r)),t[Ae]=G(e.substr(r))}),ye("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[xe]=G(e.substr(0,r)),t[Ae]=G(e.substr(r,2)),t[Ce]=G(e.substr(i))});var at=$("Hours",!0);var ot,st={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:Ee,monthsShort:Pe,week:{dow:0,doy:6},weekdays:$e,weekdaysMin:Qe,weekdaysShort:Ke,meridiemParse:/[ap]\.?m?\.?/i},ut={},lt={};function ct(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 dt(e){return e?e.toLowerCase().replace("_","-"):e}function ft(r){var i=null;if(void 0===ut[r]&&void 0!==e&&e&&e.exports)try{i=ot._abbr,t,n("uslO")("./"+r),mt(i)}catch(e){ut[r]=null}return ut[r]}function mt(e,t){var n;return e&&((n=c(t)?pt(e):ht(e,t))?ot=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ot._abbr}function ht(e,t){if(null!==t){var n,r=st;if(t.abbr=e,null!=ut[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=ut[e]._config;else if(null!=t.parentLocale)if(null!=ut[t.parentLocale])r=ut[t.parentLocale]._config;else{if(null==(n=ft(t.parentLocale)))return lt[t.parentLocale]||(lt[t.parentLocale]=[]),lt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ut[e]=new Y(S(r,t)),lt[e]&&lt[e].forEach(function(e){ht(e.name,e.config)}),mt(e),ut[e]}return delete ut[e],null}function pt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ot;if(!o(e)){if(t=ft(e))return t;e=[e]}return function(e){for(var t,n,r,i,a=0;a<e.length;){for(t=(i=dt(e[a]).split("-")).length,n=(n=dt(e[a+1]))?n.split("-"):null;t>0;){if(r=ft(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&ct(i,n)>=t-1)break;t--}a++}return ot}(e)}function gt(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[Le]<0||n[Le]>11?Le:n[De]<1||n[De]>Ne(n[ke],n[Le])?De:n[xe]<0||n[xe]>24||24===n[xe]&&(0!==n[Ae]||0!==n[Ce]||0!==n[Te])?xe:n[Ae]<0||n[Ae]>59?Ae:n[Ce]<0||n[Ce]>59?Ce:n[Te]<0||n[Te]>999?Te:-1,g(e)._overflowDayOfYear&&(t<ke||t>De)&&(t=De),g(e)._overflowWeeks&&-1===t&&(t=Se),g(e)._overflowWeekday&&-1===t&&(t=Ye),g(e).overflow=t),e}var _t=/^\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)?)?$/,vt=/^\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)?)?$/,yt=/Z|[+-]\d\d(?::?\d\d)?/,bt=[["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]],wt=[["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/]],Mt=/^\/?Date\((-?\d+)/i,kt=/^(?:(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}))$/,Lt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Dt(e){var t,n,r,i,a,o,s=e._i,u=_t.exec(s)||vt.exec(s);if(u){for(g(e).iso=!0,t=0,n=bt.length;t<n;t++)if(bt[t][1].exec(u[1])){i=bt[t][0],r=!1!==bt[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=wt.length;t<n;t++)if(wt[t][1].exec(u[3])){a=(u[2]||" ")+wt[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(u[4]){if(!yt.exec(u[4]))return void(e._isValid=!1);o="Z"}e._f=i+(a||"")+(o||""),St(e)}else e._isValid=!1}function xt(e,t,n,r,i,a){var o=[function(e){var t=parseInt(e,10);if(t<=49)return 2e3+t;if(t<=999)return 1900+t;return t}(e),Pe.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}function At(e){var t,n=kt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(n){if(t=xt(n[4],n[3],n[2],n[5],n[6],n[7]),!function(e,t,n){return!e||Ke.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}(n[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return Lt[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(n[8],n[9],n[10]),e._d=Ue.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function Ct(e,t,n){return null!=e?e:null!=t?t:n}function Tt(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[De]&&null==e._a[Le]&&function(e){var t,n,r,i,a,o,s,u,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,o=4,n=Ct(t.GG,e._a[ke],qe(Et(),1,4).year),r=Ct(t.W,1),((i=Ct(t.E,1))<1||i>7)&&(u=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,l=qe(Et(),a,o),n=Ct(t.gg,e._a[ke],l.year),r=Ct(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+a,(t.e<0||t.e>6)&&(u=!0)):i=a);r<1||r>Ve(n,a,o)?g(e)._overflowWeeks=!0:null!=u?g(e)._overflowWeekday=!0:(s=Je(n,r,i,a,o),e._a[ke]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=Ct(e._a[ke],r[ke]),(e._dayOfYear>Be(o)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=Ue(o,0,e._dayOfYear),e._a[Le]=n.getUTCMonth(),e._a[De]=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[xe]&&0===e._a[Ae]&&0===e._a[Ce]&&0===e._a[Te]&&(e._nextDay=!0,e._a[xe]=0),e._d=(e._useUTC?Ue:function(e,t,n,r,i,a,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,a,o),s}).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[xe]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}function St(e){if(e._f!==a.ISO_8601)if(e._f!==a.RFC_2822){e._a=[],g(e).empty=!0;var t,n,r,i,o,s,u=""+e._i,l=u.length,c=0;for(r=H(e._f,e._locale).match(E)||[],t=0;t<r.length;t++)i=r[t],(n=(u.match(ge(i,e))||[])[0])&&((o=u.substr(0,u.indexOf(n))).length>0&&g(e).unusedInput.push(o),u=u.slice(u.indexOf(n)+n.length),c+=n.length),O[i]?(n?g(e).empty=!1:g(e).unusedTokens.push(i),we(i,n,e)):e._strict&&!n&&g(e).unusedTokens.push(i);g(e).charsLeftOver=l-c,u.length>0&&g(e).unusedInput.push(u),e._a[xe]<=12&&!0===g(e).bigHour&&e._a[xe]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[xe]=function(e,t,n){var r;if(null==n)return t;return 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[xe],e._meridiem),null!==(s=g(e).era)&&(e._a[ke]=e._locale.erasConvertYear(s,e._a[ke])),Tt(e),gt(e)}else At(e);else Dt(e)}function Yt(e){var t=e._i,n=e._f;return e._locale=e._locale||pt(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),k(t)?new M(gt(t)):(f(t)?e._d=t:o(n)?function(e){var t,n,r,i,a,o,s=!1;if(0===e._f.length)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)a=0,o=!1,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],St(t),_(t)&&(o=!0),a+=g(t).charsLeftOver,a+=10*g(t).unusedTokens.length,g(t).score=a,s?a<r&&(r=a,n=t):(null==r||a<r||o)&&(r=a,n=t,o&&(s=!0));h(e,n||t)}(e):n?St(e):function(e){var t=e._i;c(t)?e._d=new Date(a.now()):f(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=Mt.exec(e._i);null===t?(Dt(e),!1===e._isValid&&(delete e._isValid,At(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:a.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):o(t)?(e._a=m(t.slice(0),function(e){return parseInt(e,10)}),Tt(e)):s(t)?function(e){if(!e._d){var t=U(e._i),n=void 0===t.day?t.date:t.day;e._a=m([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Tt(e)}}(e):d(t)?e._d=new Date(t):a.createFromInputFallback(e)}(e),_(e)||(e._d=null),e))}function Nt(e,t,n,r,i){var a,u={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(e)&&l(e)||o(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=i,u._l=n,u._i=e,u._f=t,u._strict=r,(a=new M(gt(Yt(u))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function Et(e,t,n,r){return Nt(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 Pt=D("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Et.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()}),It=D("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Et.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()});function Ot(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Et();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Ft=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Rt(e){var t=U(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,n,r=!1;for(t in e)if(u(e,t)&&(-1===Me.call(Ft,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<Ft.length;++n)if(e[Ft[n]]){if(r)return!1;parseFloat(e[Ft[n]])!==G(e[Ft[n]])&&(r=!0)}return!0}(t),this._milliseconds=+d+1e3*c+6e4*l+1e3*s*60*60,this._days=+o+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=pt(),this._bubble()}function Ht(e){return e instanceof Rt}function jt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Bt(e,t){F(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+N(~~(e/60),2)+t+N(~~e%60,2)})}Bt("Z",":"),Bt("ZZ",""),pe("Z",me),pe("ZZ",me),ye(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ut(me,e)});var Wt=/([\+\-]|\d\d)/gi;function Ut(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(Wt)||["-",0,0])[1]+G(n[2]))?0:"+"===n[0]?r:-r}function zt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(k(e)||f(e)?e.valueOf():Et(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),a.updateOffset(n,!1),n):Et(e).local()}function Jt(e){return-Math.round(e._d.getTimezoneOffset())}function qt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}a.updateOffset=function(){};var Vt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Gt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function $t(e,t){var n,r,i,a=e,o=null;return Ht(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(o=Vt.exec(e))?(n="-"===o[1]?-1:1,a={y:0,d:G(o[De])*n,h:G(o[xe])*n,m:G(o[Ae])*n,s:G(o[Ce])*n,ms:G(jt(1e3*o[Te]))*n}):(o=Gt.exec(e))?(n="-"===o[1]?-1:1,a={y:Kt(o[2],n),M:Kt(o[3],n),w:Kt(o[4],n),d:Kt(o[5],n),h:Kt(o[6],n),m:Kt(o[7],n),s:Kt(o[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=function(e,t){var n;if(!e.isValid()||!t.isValid())return{milliseconds:0,months:0};t=zt(t,e),e.isBefore(t)?n=Qt(e,t):((n=Qt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(Et(a.from),Et(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),r=new Rt(a),Ht(e)&&u(e,"_locale")&&(r._locale=e._locale),Ht(e)&&u(e,"_isValid")&&(r._isValid=e._isValid),r}function Kt(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 Xt(e,t){return function(n,r){var i;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."),i=n,n=r,r=i),Zt(this,$t(n,r),e),this}}function Zt(e,t,n,r){var i=t._milliseconds,o=jt(t._days),s=jt(t._months);e.isValid()&&(r=null==r||r,s&&Re(e,K(e,"Month")+s*n),o&&Q(e,"Date",K(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&a.updateOffset(e,o||s))}$t.fn=Rt.prototype,$t.invalid=function(){return $t(NaN)};var en=Xt(1,"add"),tn=Xt(-1,"subtract");function nn(e){return"string"==typeof e||e instanceof String}function rn(e){return k(e)||f(e)||nn(e)||d(e)||function(e){var t=o(e),n=!1;t&&(n=0===e.filter(function(t){return!d(t)&&nn(e)}).length);return t&&n}(e)||function(e){var t,n=s(e)&&!l(e),r=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<i.length;t+=1)r=r||u(e,i[t]);return n&&r}(e)||null===e||void 0===e}function an(e,t){if(e.date()<t.date())return-an(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 on(e){var t;return void 0===e?this._locale._abbr:(null!=(t=pt(e))&&(this._locale=t),this)}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var sn=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 un(){return this._locale}var ln=1e3,cn=60*ln,dn=60*cn,fn=3506328*dn;function mn(e,t){return(e%t+t)%t}function hn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-fn:new Date(e,t,n).valueOf()}function pn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-fn:Date.UTC(e,t,n)}function gn(e,t){return t.erasAbbrRegex(e)}function _n(){var e,t,n=[],r=[],i=[],a=[],o=this.eras();for(e=0,t=o.length;e<t;++e)r.push(_e(o[e].name)),n.push(_e(o[e].abbr)),i.push(_e(o[e].narrow)),a.push(_e(o[e].name)),a.push(_e(o[e].abbr)),a.push(_e(o[e].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function vn(e,t){F(0,[e,e.length],0,t)}function yn(e,t,n,r,i){var a;return null==e?qe(this,r,i).year:(t>(a=Ve(e,r,i))&&(t=a),function(e,t,n,r,i){var a=Je(e,t,n,r,i),o=Ue(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}.call(this,e,t,n,r,i))}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),pe("N",gn),pe("NN",gn),pe("NNN",gn),pe("NNNN",function(e,t){return t.erasNameRegex(e)}),pe("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),ye(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?g(n).era=i:g(n).invalidEra=e}),pe("y",ce),pe("yy",ce),pe("yyy",ce),pe("yyyy",ce),pe("yo",function(e,t){return t._eraYearOrdinalRegex||ce}),ye(["y","yy","yyy","yyyy"],ke),ye(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ke]=n._locale.eraYearOrdinalParse(e,i):t[ke]=parseInt(e,10)}),F(0,["gg",2],0,function(){return this.weekYear()%100}),F(0,["GG",2],0,function(){return this.isoWeekYear()%100}),vn("gggg","weekYear"),vn("ggggg","weekYear"),vn("GGGG","isoWeekYear"),vn("GGGGG","isoWeekYear"),B("weekYear","gg"),B("isoWeekYear","GG"),J("weekYear",1),J("isoWeekYear",1),pe("G",de),pe("g",de),pe("GG",ie,ee),pe("gg",ie,ee),pe("GGGG",ue,ne),pe("gggg",ue,ne),pe("GGGGG",le,re),pe("ggggg",le,re),be(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=G(e)}),be(["gg","GG"],function(e,t,n,r){t[r]=a.parseTwoDigitYear(e)}),F("Q",0,"Qo","quarter"),B("quarter","Q"),J("quarter",7),pe("Q",Z),ye("Q",function(e,t){t[Le]=3*(G(e)-1)}),F("D",["DD",2],"Do","date"),B("date","D"),J("date",9),pe("D",ie),pe("DD",ie,ee),pe("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ye(["D","DD"],De),ye("Do",function(e,t){t[De]=G(e.match(ie)[0])});var bn=$("Date",!0);F("DDD",["DDDD",3],"DDDo","dayOfYear"),B("dayOfYear","DDD"),J("dayOfYear",4),pe("DDD",se),pe("DDDD",te),ye(["DDD","DDDD"],function(e,t,n){n._dayOfYear=G(e)}),F("m",["mm",2],0,"minute"),B("minute","m"),J("minute",14),pe("m",ie),pe("mm",ie,ee),ye(["m","mm"],Ae);var wn=$("Minutes",!1);F("s",["ss",2],0,"second"),B("second","s"),J("second",15),pe("s",ie),pe("ss",ie,ee),ye(["s","ss"],Ce);var Mn,kn,Ln=$("Seconds",!1);for(F("S",0,0,function(){return~~(this.millisecond()/100)}),F(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,function(){return 10*this.millisecond()}),F(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),F(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),F(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),F(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),F(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),B("millisecond","ms"),J("millisecond",16),pe("S",se,Z),pe("SS",se,ee),pe("SSS",se,te),Mn="SSSS";Mn.length<=9;Mn+="S")pe(Mn,ce);function Dn(e,t){t[Te]=G(1e3*("0."+e))}for(Mn="S";Mn.length<=9;Mn+="S")ye(Mn,Dn);kn=$("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var xn=M.prototype;function An(e){return e}xn.add=en,xn.calendar=function(e,t){1===arguments.length&&(arguments[0]?rn(arguments[0])?(e=arguments[0],t=void 0):function(e){var t,n=s(e)&&!l(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)r=r||u(e,i[t]);return n&&r}(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Et(),r=zt(n,this).startOf("day"),i=a.calendarFormat(this,r)||"sameElse",o=t&&(T(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,Et(n)))},xn.clone=function(){return new M(this)},xn.diff=function(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=zt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=W(t)){case"year":a=an(this,r)/12;break;case"month":a=an(this,r);break;case"quarter":a=an(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:V(a)},xn.endOf=function(e){var t,n;if(void 0===(e=W(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?pn:hn,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+=dn-mn(t+(this._isUTC?0:this.utcOffset()*cn),dn)-1;break;case"minute":t=this._d.valueOf(),t+=cn-mn(t,cn)-1;break;case"second":t=this._d.valueOf(),t+=ln-mn(t,ln)-1}return this._d.setTime(t),a.updateOffset(this,!0),this},xn.format=function(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=R(this,e);return this.localeData().postformat(t)},xn.from=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||Et(e).isValid())?$t({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},xn.fromNow=function(e){return this.from(Et(),e)},xn.to=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||Et(e).isValid())?$t({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},xn.toNow=function(e){return this.to(Et(),e)},xn.get=function(e){return T(this[e=W(e)])?this[e]():this},xn.invalidAt=function(){return g(this).overflow},xn.isAfter=function(e,t){var n=k(e)?e:Et(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=W(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},xn.isBefore=function(e,t){var n=k(e)?e:Et(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=W(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},xn.isBetween=function(e,t,n,r){var i=k(e)?e:Et(e),a=k(t)?t:Et(t);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))},xn.isSame=function(e,t){var n,r=k(e)?e:Et(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=W(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},xn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},xn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},xn.isValid=function(){return _(this)},xn.lang=sn,xn.locale=on,xn.localeData=un,xn.max=It,xn.min=Pt,xn.parsingFlags=function(){return h({},g(this))},xn.set=function(e,t){if("object"==typeof e){var n,r=function(e){var t,n=[];for(t in e)u(e,t)&&n.push({unit:t,priority:z[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=U(e));for(n=0;n<r.length;n++)this[r[n].unit](e[r[n].unit])}else if(T(this[e=W(e)]))return this[e](t);return this},xn.startOf=function(e){var t,n;if(void 0===(e=W(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?pn:hn,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-=mn(t+(this._isUTC?0:this.utcOffset()*cn),dn);break;case"minute":t=this._d.valueOf(),t-=mn(t,cn);break;case"second":t=this._d.valueOf(),t-=mn(t,ln)}return this._d.setTime(t),a.updateOffset(this,!0),this},xn.subtract=tn,xn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},xn.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()}},xn.toDate=function(){return new Date(this.valueOf())},xn.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?R(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",R(n,"Z")):R(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},xn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",i="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=i+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(xn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),xn.toJSON=function(){return this.isValid()?this.toISOString():null},xn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},xn.unix=function(){return Math.floor(this.valueOf()/1e3)},xn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},xn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},xn.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""},xn.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""},xn.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""},xn.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()},xn.year=We,xn.isLeapYear=function(){return q(this.year())},xn.weekYear=function(e){return yn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},xn.isoWeekYear=function(e){return yn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},xn.quarter=xn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},xn.month=He,xn.daysInMonth=function(){return Ne(this.year(),this.month())},xn.week=xn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},xn.isoWeek=xn.isoWeeks=function(e){var t=qe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},xn.weeksInYear=function(){var e=this.localeData()._week;return Ve(this.year(),e.dow,e.doy)},xn.weeksInWeekYear=function(){var e=this.localeData()._week;return Ve(this.weekYear(),e.dow,e.doy)},xn.isoWeeksInYear=function(){return Ve(this.year(),1,4)},xn.isoWeeksInISOWeekYear=function(){return Ve(this.isoWeekYear(),1,4)},xn.date=bn,xn.day=xn.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},xn.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")},xn.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},xn.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")},xn.hour=xn.hours=at,xn.minute=xn.minutes=wn,xn.second=xn.seconds=Ln,xn.millisecond=xn.milliseconds=kn,xn.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=Ut(me,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Jt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Zt(this,$t(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Jt(this)},xn.utc=function(e){return this.utcOffset(0,e)},xn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Jt(this),"m")),this},xn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ut(fe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},xn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Et(e).utcOffset():0,(this.utcOffset()-e)%60==0)},xn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},xn.isLocal=function(){return!!this.isValid()&&!this._isUTC},xn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},xn.isUtc=qt,xn.isUTC=qt,xn.zoneAbbr=function(){return this._isUTC?"UTC":""},xn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},xn.dates=D("dates accessor is deprecated. Use date instead.",bn),xn.months=D("months accessor is deprecated. Use month instead",He),xn.years=D("years accessor is deprecated. Use year instead",We),xn.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()}),xn.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 w(t,this),(t=Yt(t))._a?(e=t._isUTC?p(t._a):Et(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&G(e[r])!==G(t[r]))&&o++;return o+a}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var Cn=Y.prototype;function Tn(e,t,n,r){var i=pt(),a=p().set(r,t);return i[n](a,e)}function Sn(e,t,n){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return Tn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Tn(e,r,n,"month");return i}function Yn(e,t,n,r){"boolean"==typeof e?(d(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,d(t)&&(n=t,t=void 0),t=t||"");var i,a=pt(),o=e?a._week.dow:0,s=[];if(null!=n)return Tn(t,(n+o)%7,r,"day");for(i=0;i<7;i++)s[i]=Tn(t,(i+o)%7,r,"day");return s}Cn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return T(r)?r.call(t,n):r},Cn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(E).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},Cn.invalidDate=function(){return this._invalidDate},Cn.ordinal=function(e){return this._ordinal.replace("%d",e)},Cn.preparse=An,Cn.postformat=An,Cn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return T(i)?i(e,t,n,r):i.replace(/%d/i,e)},Cn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)},Cn.set=function(e){var t,n;for(n in e)u(e,n)&&(T(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)},Cn.eras=function(e,t){var n,r,i,o=this._eras||pt("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},Cn.erasParse=function(e,t,n){var r,i,a,o,s,u=this.eras();for(e=e.toUpperCase(),r=0,i=u.length;r<i;++r)if(a=u[r].name.toUpperCase(),o=u[r].abbr.toUpperCase(),s=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return u[r];break;case"NNNN":if(a===e)return u[r];break;case"NNNNN":if(s===e)return u[r]}else if([a,o,s].indexOf(e)>=0)return u[r]},Cn.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},Cn.erasAbbrRegex=function(e){return u(this,"_erasAbbrRegex")||_n.call(this),e?this._erasAbbrRegex:this._erasRegex},Cn.erasNameRegex=function(e){return u(this,"_erasNameRegex")||_n.call(this),e?this._erasNameRegex:this._erasRegex},Cn.erasNarrowRegex=function(e){return u(this,"_erasNarrowRegex")||_n.call(this),e?this._erasNarrowRegex:this._erasRegex},Cn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ie).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},Cn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ie.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Cn.monthsParse=function(e,t,n){var r,i,a;if(this._monthsParseExact)return function(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Me.call(this._shortMonthsParse,o))?i:null:-1!==(i=Me.call(this._longMonthsParse,o))?i:null:"MMM"===t?-1!==(i=Me.call(this._shortMonthsParse,o))?i:-1!==(i=Me.call(this._longMonthsParse,o))?i:null:-1!==(i=Me.call(this._longMonthsParse,o))?i:-1!==(i=Me.call(this._shortMonthsParse,o))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.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}},Cn.monthsRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||je.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=Fe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Cn.monthsShortRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||je.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=Oe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Cn.week=function(e){return qe(e,this._week.dow,this._week.doy).week},Cn.firstDayOfYear=function(){return this._week.doy},Cn.firstDayOfWeek=function(){return this._week.dow},Cn.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ge(n,this._week.dow):e?n[e.day()]:n},Cn.weekdaysMin=function(e){return!0===e?Ge(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Cn.weekdaysShort=function(e){return!0===e?Ge(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Cn.weekdaysParse=function(e,t,n){var r,i,a;if(this._weekdaysParseExact)return function(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Me.call(this._weekdaysParse,o))?i:null:"ddd"===t?-1!==(i=Me.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=Me.call(this._minWeekdaysParse,o))?i:null:"dddd"===t?-1!==(i=Me.call(this._weekdaysParse,o))?i:-1!==(i=Me.call(this._shortWeekdaysParse,o))?i:-1!==(i=Me.call(this._minWeekdaysParse,o))?i:null:"ddd"===t?-1!==(i=Me.call(this._shortWeekdaysParse,o))?i:-1!==(i=Me.call(this._weekdaysParse,o))?i:-1!==(i=Me.call(this._minWeekdaysParse,o))?i:null:-1!==(i=Me.call(this._minWeekdaysParse,o))?i:-1!==(i=Me.call(this._weekdaysParse,o))?i:-1!==(i=Me.call(this._shortWeekdaysParse,o))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.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}},Cn.weekdaysRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||tt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Xe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Cn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||tt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Cn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||tt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=et),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Cn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Cn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},mt("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===G(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.",mt),a.langData=D("moment.langData is deprecated. Use moment.localeData instead.",pt);var Nn=Math.abs;function En(e,t,n,r){var i=$t(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Pn(e){return e<0?Math.floor(e):Math.ceil(e)}function In(e){return 4800*e/146097}function On(e){return 146097*e/4800}function Fn(e){return function(){return this.as(e)}}var Rn=Fn("ms"),Hn=Fn("s"),jn=Fn("m"),Bn=Fn("h"),Wn=Fn("d"),Un=Fn("w"),zn=Fn("M"),Jn=Fn("Q"),qn=Fn("y");function Vn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Gn=Vn("milliseconds"),$n=Vn("seconds"),Kn=Vn("minutes"),Qn=Vn("hours"),Xn=Vn("days"),Zn=Vn("months"),er=Vn("years");var tr=Math.round,nr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};var rr=Math.abs;function ir(e){return(e>0)-(e<0)||+e}function ar(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,a,o,s,u=rr(this._milliseconds)/1e3,l=rr(this._days),c=rr(this._months),d=this.asSeconds();return d?(t=V((e=V(u/60))/60),u%=60,e%=60,n=V(c/12),c%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",a=ir(this._months)!==ir(d)?"-":"",o=ir(this._days)!==ir(d)?"-":"",s=ir(this._milliseconds)!==ir(d)?"-":"",i+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(l?o+l+"D":"")+(t||e||u?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(u?s+r+"S":"")):"P0D"}var or=Rt.prototype;return or.isValid=function(){return this._isValid},or.abs=function(){var e=this._data;return this._milliseconds=Nn(this._milliseconds),this._days=Nn(this._days),this._months=Nn(this._months),e.milliseconds=Nn(e.milliseconds),e.seconds=Nn(e.seconds),e.minutes=Nn(e.minutes),e.hours=Nn(e.hours),e.months=Nn(e.months),e.years=Nn(e.years),this},or.add=function(e,t){return En(this,e,t,1)},or.subtract=function(e,t){return En(this,e,t,-1)},or.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=W(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+In(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(On(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)}},or.asMilliseconds=Rn,or.asSeconds=Hn,or.asMinutes=jn,or.asHours=Bn,or.asDays=Wn,or.asWeeks=Un,or.asMonths=zn,or.asQuarters=Jn,or.asYears=qn,or.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*G(this._months/12):NaN},or._bubble=function(){var e,t,n,r,i,a=this._milliseconds,o=this._days,s=this._months,u=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*Pn(On(s)+o),o=0,s=0),u.milliseconds=a%1e3,e=V(a/1e3),u.seconds=e%60,t=V(e/60),u.minutes=t%60,n=V(t/60),u.hours=n%24,s+=i=V(In(o+=V(n/24))),o-=Pn(On(i)),r=V(s/12),s%=12,u.days=o,u.months=s,u.years=r,this},or.clone=function(){return $t(this)},or.get=function(e){return e=W(e),this.isValid()?this[e+"s"]():NaN},or.milliseconds=Gn,or.seconds=$n,or.minutes=Kn,or.hours=Qn,or.days=Xn,or.weeks=function(){return V(this.days()/7)},or.months=Zn,or.years=er,or.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,a=nr;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(a=Object.assign({},nr,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),r=function(e,t,n,r){var i=$t(e).abs(),a=tr(i.as("s")),o=tr(i.as("m")),s=tr(i.as("h")),u=tr(i.as("d")),l=tr(i.as("M")),c=tr(i.as("w")),d=tr(i.as("y")),f=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(f=f||c<=1&&["w"]||c<n.w&&["ww",c]),(f=f||l<=1&&["M"]||l<n.M&&["MM",l]||d<=1&&["y"]||["yy",d])[2]=t,f[3]=+e>0,f[4]=r,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,f)}(this,!i,a,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)},or.toISOString=ar,or.toString=ar,or.toJSON=ar,or.locale=on,or.localeData=un,or.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ar),or.lang=sn,F("X",0,0,"unix"),F("x",0,0,"valueOf"),pe("x",de),pe("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(G(e))}),
//! moment.js
a.version="2.29.1",r=Et,a.fn=xn,a.min=function(){return Ot("isBefore",[].slice.call(arguments,0))},a.max=function(){return Ot("isAfter",[].slice.call(arguments,0))},a.now=function(){return Date.now?Date.now():+new Date},a.utc=p,a.unix=function(e){return Et(1e3*e)},a.months=function(e,t){return Sn(e,t,"months")},a.isDate=f,a.locale=mt,a.invalid=v,a.duration=$t,a.isMoment=k,a.weekdays=function(e,t,n){return Yn(e,t,n,"weekdays")},a.parseZone=function(){return Et.apply(null,arguments).parseZone()},a.localeData=pt,a.isDuration=Ht,a.monthsShort=function(e,t){return Sn(e,t,"monthsShort")},a.weekdaysMin=function(e,t,n){return Yn(e,t,n,"weekdaysMin")},a.defineLocale=ht,a.updateLocale=function(e,t){if(null!=t){var n,r,i=st;null!=ut[e]&&null!=ut[e].parentLocale?ut[e].set(S(ut[e]._config,t)):(null!=(r=ft(e))&&(i=r._config),t=S(i,t),null==r&&(t.abbr=e),(n=new Y(t)).parentLocale=ut[e],ut[e]=n),mt(e)}else null!=ut[e]&&(null!=ut[e].parentLocale?(ut[e]=ut[e].parentLocale,e===mt()&&mt(e)):null!=ut[e]&&delete ut[e]);return ut[e]},a.locales=function(){return x(ut)},a.weekdaysShort=function(e,t,n){return Yn(e,t,n,"weekdaysShort")},a.normalizeUnits=W,a.relativeTimeRounding=function(e){return void 0===e?tr:"function"==typeof e&&(tr=e,!0)},a.relativeTimeThreshold=function(e,t){return void 0!==nr[e]&&(void 0===t?nr[e]:(nr[e]=t,"s"===e&&(nr.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=xn,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},e.exports=r()}).call(t,n("3IRH")(e))},PKH1:function(e,t){},QZk1:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},RD1t:function(e,t){e.exports="data:image/png;base64, "},RnJI:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},Rv7z:function(e,t,n){n("iTxg")},Sjoy:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},SldL:function(e,t){!function(t){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag",l="object"==typeof e,c=t.regeneratorRuntime;if(c)l&&(e.exports=c);else{(c=t.regeneratorRuntime=l?e.exports:{}).wrap=b;var d="suspendedStart",f="suspendedYield",m="executing",h="completed",p={},g={};g[o]=function(){return this};var _=Object.getPrototypeOf,v=_&&_(_(Y([])));v&&v!==r&&i.call(v,o)&&(g=v);var y=L.prototype=M.prototype=Object.create(g);k.prototype=y.constructor=L,L.constructor=k,L[u]=k.displayName="GeneratorFunction",c.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===k||"GeneratorFunction"===(t.displayName||t.name))},c.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,L):(e.__proto__=L,u in e||(e[u]="GeneratorFunction")),e.prototype=Object.create(y),e},c.awrap=function(e){return{__await:e}},D(x.prototype),x.prototype[s]=function(){return this},c.AsyncIterator=x,c.async=function(e,t,n,r){var i=new x(b(e,t,n,r));return c.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},D(y),y[u]="Generator",y[o]=function(){return this},y.toString=function(){return"[object Generator]"},c.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}},c.values=Y,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},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(r,i){return s.type="throw",s.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(u&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):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),p},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),T(n),p}},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 i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:Y(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),p}}}function b(e,t,n,r){var i=t&&t.prototype instanceof M?t:M,a=Object.create(i.prototype),o=new S(r||[]);return a._invoke=function(e,t,n){var r=d;return function(i,a){if(r===m)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw a;return N()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=A(o,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=m;var u=w(e,t,n);if("normal"===u.type){if(r=n.done?h:f,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}(e,n,o),a}function w(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function M(){}function k(){}function L(){}function D(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function x(e){var t;this._invoke=function(n,r){function a(){return new Promise(function(t,a){!function t(n,r,a,o){var s=w(e[n],e,r);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==typeof l&&i.call(l,"__await")?Promise.resolve(l.__await).then(function(e){t("next",e,a,o)},function(e){t("throw",e,a,o)}):Promise.resolve(l).then(function(e){u.value=e,a(u)},o)}o(s.arg)}(n,r,t,a)})}return t=t?t.then(a,a):a()}}function A(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,A(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=w(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,p;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,p):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function C(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function Y(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return a.next=a}}return{next:N}}function N(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},To0v:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},Tqun:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},U5Iz:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},USNP:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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],i=/^(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:i,monthsShortRegex:i,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("PJh5"))},V0td:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},V4qH:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},V9zC:function(e,t){!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e,t){var n;return e.dom.getParents(e.selection.getStart(),function(e){var r;(r=e.style["forecolor"===t?"color":"background-color"])&&(n=n||r)}),n},n=function(e){var t,n=[];for(t=0;t<e.length;t+=2)n.push({text:e[t+1],color:"#"+e[t]});return n},r=function(e,t,n){e.undoManager.transact(function(){e.focus(),e.formatter.apply(t,{value:n}),e.nodeChanged()})},i=function(e,t){e.undoManager.transact(function(){e.focus(),e.formatter.remove(t,{value:null},null,!0),e.nodeChanged()})},a=function(e){e.addCommand("mceApplyTextcolor",function(t,n){r(e,t,n)}),e.addCommand("mceRemoveTextcolor",function(t){i(e,t)})},o=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),s=tinymce.util.Tools.resolve("tinymce.util.Tools"),u=["000000","Black","993300","Burnt orange","333300","Dark olive","003300","Dark green","003366","Dark azure","000080","Navy Blue","333399","Indigo","333333","Very dark gray","800000","Maroon","FF6600","Orange","808000","Olive","008000","Green","008080","Teal","0000FF","Blue","666699","Grayish blue","808080","Gray","FF0000","Red","FF9900","Amber","99CC00","Yellow green","339966","Sea green","33CCCC","Turquoise","3366FF","Royal blue","800080","Purple","999999","Medium gray","FF00FF","Magenta","FFCC00","Gold","FFFF00","Yellow","00FF00","Lime","00FFFF","Aqua","00CCFF","Sky blue","993366","Red violet","FFFFFF","White","FF99CC","Pink","FFCC99","Peach","FFFF99","Light yellow","CCFFCC","Pale green","CCFFFF","Pale cyan","99CCFF","Light sky blue","CC99FF","Plum"],l=function(e){return e.getParam("textcolor_map",u)},c=function(e){return e.getParam("textcolor_rows",5)},d=function(e){return e.getParam("textcolor_cols",8)},f=function(e){return e.getParam("color_picker_callback",null)},m=function(e){return e.getParam("forecolor_map",l(e))},h=function(e){return e.getParam("backcolor_map",l(e))},p=function(e){return e.getParam("forecolor_rows",c(e))},g=function(e){return e.getParam("backcolor_rows",c(e))},_=function(e){return e.getParam("forecolor_cols",d(e))},v=function(e){return e.getParam("backcolor_cols",d(e))},y=f,b=function(e){return"function"==typeof f(e)},w=tinymce.util.Tools.resolve("tinymce.util.I18n"),M=function(e,t,r,i){var a,s,u,l,c,d,f,m=0,h=o.DOM.uniqueId("mcearia"),p=function(e,t){var n="transparent"===e;return'<td class="mce-grid-cell'+(n?" mce-colorbtn-trans":"")+'"><div id="'+h+"-"+m+++'" data-mce-color="'+(e||"")+'" role="option" tabIndex="-1" style="'+(e?"background-color: "+e:"")+'" title="'+w.translate(t)+'">'+(n?"&#215;":"")+"</div></td>"};for((a=n(r)).push({text:w.translate("No color"),color:"transparent"}),u='<table class="mce-grid mce-grid-border mce-colorbutton-grid" role="list" cellspacing="0"><tbody>',l=a.length-1,d=0;d<t;d++){for(u+="<tr>",c=0;c<e;c++)u+=(f=d*e+c)>l?"<td></td>":p((s=a[f]).color,s.text);u+="</tr>"}if(i){for(u+='<tr><td colspan="'+e+'" class="mce-custom-color-btn"><div id="'+h+'-c" class="mce-widget mce-btn mce-btn-small mce-btn-flat" role="button" tabindex="-1" aria-labelledby="'+h+'-c" style="width: 100%"><button type="button" role="presentation" tabindex="-1">'+w.translate("Custom...")+"</button></div></td></tr>",u+="<tr>",c=0;c<e;c++)u+=p("","Custom color");u+="</tr>"}return u+="</tbody></table>"},k=function(e,t){e.style.background=t,e.setAttribute("data-mce-color",t)},L=function(e){return function(t){var n=t.control;n._color?e.execCommand("mceApplyTextcolor",n.settings.format,n._color):e.execCommand("mceRemoveTextcolor",n.settings.format)}},D=function(e,n){return function(r){var i,a=this.parent(),u=t(e,a.settings.format),l=function(t){e.execCommand("mceApplyTextcolor",a.settings.format,t),a.hidePanel(),a.color(t)};o.DOM.getParent(r.target,".mce-custom-color-btn")&&(a.hidePanel(),y(e).call(e,function(e){var t,r,i,o=a.panel.getEl().getElementsByTagName("table")[0];for(t=s.map(o.rows[o.rows.length-1].childNodes,function(e){return e.firstChild}),i=0;i<t.length&&(r=t[i]).getAttribute("data-mce-color");i++);if(i===n)for(i=0;i<n-1;i++)k(t[i],t[i+1].getAttribute("data-mce-color"));k(r,e),l(e)},u)),(i=r.target.getAttribute("data-mce-color"))?(this.lastId&&o.DOM.get(this.lastId).setAttribute("aria-selected","false"),r.target.setAttribute("aria-selected",!0),this.lastId=r.target.id,"transparent"===i?(e.execCommand("mceRemoveTextcolor",a.settings.format),a.hidePanel(),a.resetColor()):l(i)):null!==i&&a.hidePanel()}},x=function(e,t){return function(){var n=t?_(e):v(e),r=t?p(e):g(e),i=t?m(e):h(e),a=b(e);return M(n,r,i,a)}},A=function(e){e.addButton("forecolor",{type:"colorbutton",tooltip:"Text color",format:"forecolor",panel:{role:"application",ariaRemember:!0,html:x(e,!0),onclick:D(e,_(e))},onclick:L(e)}),e.addButton("backcolor",{type:"colorbutton",tooltip:"Background color",format:"hilitecolor",panel:{role:"application",ariaRemember:!0,html:x(e,!1),onclick:D(e,v(e))},onclick:L(e)})};e.add("textcolor",function(e){a(e),A(e)})}()},VGQH:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var i={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?i[n][0]:i[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("PJh5"))},VK9h:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},Vz2w:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},W2Qn:function(e,t){},Wlyy:function(e,t){!function(){"use strict";var e=function(t){var n=t,r=function(){return n};return{get:r,set:function(e){n=e},clone:function(){return e(r())}}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e){return{isContextMenuVisible:function(){return e.get()}}},r=function(e){return e.settings.contextmenu_never_use_native},i=function(e){return e.getParam("contextmenu","link openlink image inserttable | cell row column deletetable")},a=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),o=function(e){return a.DOM.select(e.settings.ui_container)[0]},s=function(e,t){return{x:e,y:t}},u=function(e,t,n){return s(e.x+t,e.y+n)},l=function(e,t){if(e&&"static"!==a.DOM.getStyle(e,"position",!0)){var n=a.DOM.getPos(e),r=n.x-e.scrollLeft,i=n.y-e.scrollTop;return u(t,-r,-i)}return u(t,0,0)},c=function(e,t){if(e.inline)return l(o(e),function(e){return s(e.pageX,e.pageY)}(t));var n,r,i,c=(n=e.getContentAreaContainer(),r=function(e){return s(e.clientX,e.clientY)}(t),i=a.DOM.getPos(n),u(r,i.x,i.y));return l(o(e),c)},d=tinymce.util.Tools.resolve("tinymce.ui.Factory"),f=tinymce.util.Tools.resolve("tinymce.util.Tools"),m=function(e,t,n,r){null===r.get()?r.set(function(e,t){var n,r,a=[];r=i(e),f.each(r.split(/[ ,]/),function(t){var n=e.menuItems[t];"|"===t&&(n={text:t}),n&&(n.shortcut="",a.push(n))});for(var s=0;s<a.length;s++)"|"===a[s].text&&(0!==s&&s!==a.length-1||a.splice(s,1));return(n=d.create("menu",{items:a,context:"contextmenu",classes:"contextmenu"})).uiContainer=o(e),n.renderTo(o(e)),n.on("hide",function(e){e.control===this&&t.set(!1)}),e.on("remove",function(){n.remove(),n=null}),n}(e,n)):r.get().show(),r.get().moveTo(t.x,t.y),n.set(!0)},h=function(e,t,n){e.on("contextmenu",function(i){(function(e,t){return t.ctrlKey&&!r(e)})(e,i)||(i.preventDefault(),m(e,c(e,i),t,n))})};t.add("contextmenu",function(t){var r=e(null),i=e(!1);return h(t,i,r),n(i)})}()},XU1s:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},XlWM:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var i={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?i[n][2]?i[n][2]:i[n][1]:r?i[n][0]:i[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("PJh5"))},Xxa5:function(e,t,n){e.exports=n("jyFz")},"XzD+":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},"YBA/":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},YXlc:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_À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:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})})(n("PJh5"))},Yrr6:function(e,t){},Yyy8:function(e,t,n){e.exports=n.p+"static/img/style01.0d773cc.png"},Z3om:function(e,t){!function(e){"use strict";var t,n,r,i,a,o=tinymce.util.Tools.resolve("tinymce.PluginManager"),s=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),u=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),l=tinymce.util.Tools.resolve("tinymce.util.VK"),c=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager"),d=tinymce.util.Tools.resolve("tinymce.util.Tools"),f=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),m=function(e){return e&&"BR"===e.nodeName},h=function(e){return e&&3===e.nodeType},p=function(e){return e&&/^(OL|UL|DL)$/.test(e.nodeName)},g=function(e){return e&&/^(OL|UL)$/.test(e.nodeName)},_=function(e){return e&&/^(DT|DD)$/.test(e.nodeName)},v=function(e){return e&&/^(LI|DT|DD)$/.test(e.nodeName)},y=function(e){return e&&/^(TH|TD)$/.test(e.nodeName)},b=m,w=function(e,t){return t&&!!e.schema.getTextBlockElements()[t.nodeName]},M=function(e,t){return e&&e.nodeName in t},k=function(e,t){return!!m(t)&&!(!e.isBlock(t.nextSibling)||m(t.previousSibling))},L=function(e,t,n){var r=e.isEmpty(t);return!(n&&e.select("span[data-mce-type=bookmark]",t).length>0)&&r},D=function(e,t){return e.isChildOf(t,e.getRoot())},x=function(e,t){if(h(e))return{container:e,offset:t};var n=s.getNode(e,t);return h(n)?{container:n,offset:t>=e.childNodes.length?n.data.length:0}:n.previousSibling&&h(n.previousSibling)?{container:n.previousSibling,offset:n.previousSibling.data.length}:n.nextSibling&&h(n.nextSibling)?{container:n.nextSibling,offset:0}:{container:e,offset:t}},A=function(e){var t=e.cloneRange(),n=x(e.startContainer,e.startOffset);t.setStart(n.container,n.offset);var r=x(e.endContainer,e.endOffset);return t.setEnd(r.container,r.offset),t},C=f.DOM,T=function(e){var t={},n=function(n){var r,i,a;i=e[n?"startContainer":"endContainer"],a=e[n?"startOffset":"endOffset"],1===i.nodeType&&(r=C.create("span",{"data-mce-type":"bookmark"}),i.hasChildNodes()?(a=Math.min(a,i.childNodes.length-1),n?i.insertBefore(r,i.childNodes[a]):C.insertAfter(r,i.childNodes[a])):i.appendChild(r),i=r,a=0),t[n?"startContainer":"endContainer"]=i,t[n?"startOffset":"endOffset"]=a};return n(!0),e.collapsed||n(),t},S=function(e){function t(t){var n,r,i;n=i=e[t?"startContainer":"endContainer"],r=e[t?"startOffset":"endOffset"],n&&(1===n.nodeType&&(r=function(e){for(var t=e.parentNode.firstChild,n=0;t;){if(t===e)return n;1===t.nodeType&&"bookmark"===t.getAttribute("data-mce-type")||n++,t=t.nextSibling}return-1}(n),n=n.parentNode,C.remove(i),!n.hasChildNodes()&&C.isBlock(n)&&n.appendChild(C.create("br"))),e[t?"startContainer":"endContainer"]=n,e[t?"startOffset":"endOffset"]=r)}t(!0),t();var n=C.createRng();return n.setStart(e.startContainer,e.startOffset),e.endContainer&&n.setEnd(e.endContainer,e.endOffset),A(n)},Y=function(){},N=function(e){return function(){return e}},E=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return!e.apply(null,t)}},P=N(!1),I=N(!0),O=function(){return F},F=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},r={fold:function(e,t){return e()},is:P,isSome:P,isNone:I,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:N(null),getOrUndefined:N(void 0),or:n,orThunk:t,map:O,each:Y,bind:O,exists:P,forall:I,filter:O,equals:e,equals_:e,toArray:function(){return[]},toString:N("none()")};return Object.freeze&&Object.freeze(r),r}(),R=function(e){var t=N(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:I,isNone:P,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return R(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:F},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(P,function(t){return n(e,t)})}};return i},H={some:R,none:O,from:function(e){return null===e||void 0===e?F:R(e)}},j=function(e){return function(t){return function(e){if(null===e)return"null";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t}(t)===e}},B=j("string"),W=j("array"),U=j("boolean"),z=j("function"),J=j("number"),q=Array.prototype.slice,V=Array.prototype.push,G=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var a=e[i];r[i]=t(a,i)}return r},$=function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)},K=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var a=e[r];t(a,r)&&n.push(a)}return n},Q=function(e,t,n){return $(e,function(e){n=t(n,e)}),n},X=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return H.some(i)}return H.none()},Z=function(e,t){return function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!W(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);V.apply(t,e[n])}return t}(G(e,t))},ee=function(e){return 0===e.length?H.none():H.some(e[0])},te=function(e){return 0===e.length?H.none():H.some(e[e.length-1])},ne=(z(Array.from)&&Array.from,void 0!==e.window?e.window:Function("return this;")()),re=function(e,t){return function(e,t){for(var n=void 0!==t&&null!==t?t:ne,r=0;r<e.length&&void 0!==n&&null!==n;++r)n=n[e[r]];return n}(e.split("."),t)},ie=function(e,t){var n=function(e,t){return re(e,t)}(e,t);if(void 0===n||null===n)throw new Error(e+" not available on this browser");return n},ae=function(e){return function(e){return ie("HTMLElement",e)}(re("ownerDocument.defaultView",e)).prototype.isPrototypeOf(e)},oe=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),se=function(e){var t=e.selection.getStart(!0);return e.dom.getParent(t,"OL,UL,DL",le(e,t))},ue=function(e){var t=e.selection.getSelectedBlocks();return d.grep(function(e,t){var n=d.map(t,function(t){var n=e.dom.getParent(t,"li,dd,dt",le(e,t));return n||t});return oe.unique(n)}(e,t),function(e){return v(e)})},le=function(e,t){var n=e.dom.getParents(t,"TD,TH");return n.length>0?n[0]:e.getBody()},ce=function(e,t){var n=e.dom.getParents(t,"ol,ul",le(e,t));return te(n)},de=function(e,t){var n=G(t,function(t){return ce(e,t).getOr(t)});return oe.unique(n)},fe={isList:function(e){var t=se(e);return ae(t)},getParentList:se,getSelectedSubLists:function(e){var t=se(e),n=e.selection.getSelectedBlocks();return function(e,t){return e&&1===t.length&&t[0]===e}(t,n)?function(e){return d.grep(e.querySelectorAll("ol,ul,dl"),function(e){return p(e)})}(t):d.grep(n,function(e){return p(e)&&t!==e})},getSelectedListItems:ue,getClosestListRootElm:le,getSelectedDlItems:function(e){return K(ue(e),_)},getSelectedListRoots:function(e){var t=function(e){var t=ce(e,e.selection.getStart()),n=K(e.selection.getSelectedBlocks(),g);return t.toArray().concat(n)}(e);return de(e,t)}},me=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:N(e)}},he={fromHtml:function(t,n){var r=(n||e.document).createElement("div");if(r.innerHTML=t,!r.hasChildNodes()||r.childNodes.length>1)throw e.console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return me(r.childNodes[0])},fromTag:function(t,n){var r=(n||e.document).createElement(t);return me(r)},fromText:function(t,n){var r=(n||e.document).createTextNode(t);return me(r)},fromDom:me,fromPoint:function(e,t,n){var r=e.dom();return H.from(r.elementFromPoint(t,n)).map(me)}},pe=function(e,t,n){return e.isSome()&&t.isSome()?H.some(n(e.getOrDie(),t.getOrDie())):H.none()},ge=Object.keys,_e=function(){return ie("Node")},ve=function(e,t,n){return 0!=(e.compareDocumentPosition(t)&n)},ye=function(e,t){return ve(e,t,_e().DOCUMENT_POSITION_CONTAINED_BY)},be=function(){return we(0,0)},we=function(e,t){return{major:e,minor:t}},Me={nu:we,detect:function(e,t){var n=String(t).toLowerCase();return 0===e.length?be():function(e,t){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}}(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return we(r(1),r(2))}(e,n)},unknown:be},ke=function(e,t){return function(){return t===e}},Le=function(e){var t=e.current;return{current:t,version:e.version,isEdge:ke("Edge",t),isChrome:ke("Chrome",t),isIE:ke("IE",t),isOpera:ke("Opera",t),isFirefox:ke("Firefox",t),isSafari:ke("Safari",t)}},De={unknown:function(){return Le({current:void 0,version:Me.unknown()})},nu:Le,edge:N("Edge"),chrome:N("Chrome"),ie:N("IE"),opera:N("Opera"),firefox:N("Firefox"),safari:N("Safari")},xe=function(e,t){return function(){return t===e}},Ae=function(e){var t=e.current;return{current:t,version:e.version,isWindows:xe("Windows",t),isiOS:xe("iOS",t),isAndroid:xe("Android",t),isOSX:xe("OSX",t),isLinux:xe("Linux",t),isSolaris:xe("Solaris",t),isFreeBSD:xe("FreeBSD",t)}},Ce={unknown:function(){return Ae({current:void 0,version:Me.unknown()})},nu:Ae,windows:N("Windows"),ios:N("iOS"),android:N("Android"),linux:N("Linux"),osx:N("OSX"),solaris:N("Solaris"),freebsd:N("FreeBSD")},Te=function(e,t){var n=String(t).toLowerCase();return X(e,function(e){return e.search(n)})},Se=function(e,t){return Te(e,t).map(function(e){var n=Me.detect(e.versionRegexes,t);return{current:e.name,version:n}})},Ye=function(e,t){return Te(e,t).map(function(e){var n=Me.detect(e.versionRegexes,t);return{current:e.name,version:n}})},Ne=function(e,t){return-1!==e.indexOf(t)},Ee=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Pe=function(e){return function(t){return Ne(t,e)}},Ie=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return Ne(e,"edge/")&&Ne(e,"chrome")&&Ne(e,"safari")&&Ne(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Ee],search:function(e){return Ne(e,"chrome")&&!Ne(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return Ne(e,"msie")||Ne(e,"trident")}},{name:"Opera",versionRegexes:[Ee,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Pe("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Pe("firefox")},{name:"Safari",versionRegexes:[Ee,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(Ne(e,"safari")||Ne(e,"mobile/"))&&Ne(e,"applewebkit")}}],Oe=[{name:"Windows",search:Pe("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return Ne(e,"iphone")||Ne(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Pe("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Pe("os x"),versionRegexes:[/.*?os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Pe("linux"),versionRegexes:[]},{name:"Solaris",search:Pe("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Pe("freebsd"),versionRegexes:[]}],Fe={browsers:N(Ie),oses:N(Oe)},Re=function(e){var t=Fe.browsers(),n=Fe.oses(),r=Se(t,e).fold(De.unknown,De.nu),i=Ye(n,e).fold(Ce.unknown,Ce.nu);return{browser:r,os:i,deviceType:function(e,t,n){var r=e.isiOS()&&!0===/ipad/i.test(n),i=e.isiOS()&&!r,a=e.isAndroid()&&3===e.version.major,o=e.isAndroid()&&4===e.version.major,s=r||a||o&&!0===/mobile/i.test(n),u=e.isiOS()||e.isAndroid(),l=u&&!s,c=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n);return{isiPad:N(r),isiPhone:N(i),isTablet:N(s),isPhone:N(l),isTouch:N(u),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:N(c)}}(i,r,e)}},He={detect:(t=function(){var t=e.navigator.userAgent;return Re(t)},r=!1,function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r||(r=!0,n=t.apply(null,e)),n})},je=(e.Node.ATTRIBUTE_NODE,e.Node.CDATA_SECTION_NODE,e.Node.COMMENT_NODE,e.Node.DOCUMENT_NODE,e.Node.DOCUMENT_TYPE_NODE,e.Node.DOCUMENT_FRAGMENT_NODE,e.Node.ELEMENT_NODE),Be=(e.Node.TEXT_NODE,e.Node.PROCESSING_INSTRUCTION_NODE,e.Node.ENTITY_REFERENCE_NODE,e.Node.ENTITY_NODE,e.Node.NOTATION_NODE,je),We=function(e,t){return e.dom()===t.dom()},Ue=He.detect().browser.isIE()?function(e,t){return ye(e.dom(),t.dom())}:function(e,t){var n=e.dom(),r=t.dom();return n!==r&&n.contains(r)},ze=function(e,t){var n=e.dom();if(n.nodeType!==Be)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Je=function(e){return H.from(e.dom().parentNode).map(he.fromDom)},qe=function(e){return G(e.dom().childNodes,he.fromDom)},Ve=function(e,t){var n=e.dom().childNodes;return H.from(n[t]).map(he.fromDom)},Ge=function(e){return Ve(e,0)},$e=function(e){return Ve(e,e.dom().childNodes.length-1)},Ke=(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}("element","offset"),function(e,t){Je(e).each(function(n){n.dom().insertBefore(t.dom(),e.dom())})}),Qe=function(e,t){e.dom().appendChild(t.dom())},Xe=function(e,t){$(t,function(t){Qe(e,t)})},Ze=function(e){var t=e.dom();null!==t.parentNode&&t.parentNode.removeChild(t)},et=function(e){return e.dom().nodeName.toLowerCase()},tt=(i=je,function(e){return function(e){return e.dom().nodeType}(e)===i}),nt=function(t,n){var r=t.dom();!function(e,t){for(var n=ge(e),r=0,i=n.length;r<i;r++){var a=n[r];t(e[a],a)}}(n,function(t,n){!function(t,n,r){if(!(B(r)||U(r)||J(r)))throw e.console.error("Invalid call to Attr.set. Key ",n,":: Value ",r,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(n,r+"")}(r,n,t)})},rt=function(e){return Q(e.dom().attributes,function(e,t){return e[t.name]=t.value,e},{})},it=function(t,n,r){if(!B(r))throw e.console.error("Invalid call to CSS.set. Property ",n,":: Value ",r,":: Element ",t),new Error("CSS value must be a string: "+r);(function(e){return void 0!==e.style&&z(e.style.getPropertyValue)})(t)&&t.style.setProperty(n,r)},at=function(e){return function(e,t){return he.fromDom(e.dom().cloneNode(t))}(e,!0)},ot=function(e,t){var n=function(e,t){var n=he.fromTag(t),r=rt(e);return nt(n,r),n}(e,t);Ke(e,n);var r=qe(e);return Xe(n,r),Ze(e),n},st=function(e,t){Qe(e.item,t.list)},ut=function(e,t){var n={list:he.fromTag(t,e),item:he.fromTag("li",e)};return Qe(n.list,n.item),n},lt=function(e,t,n){var r=t.slice(0,n.depth);return te(r).each(function(t){!function(e,t){Qe(e.list,t),e.item=t}(t,function(e,t,n){var r=he.fromTag("li",e);return nt(r,t),Xe(r,n),r}(e,n.itemAttributes,n.content)),function(e,t){et(e.list)!==t.listType&&(e.list=ot(e.list,t.listType)),nt(e.list,t.listAttributes)}(t,n)}),r},ct=function(e,t,n){var r,i=function(e,t,n){for(var r=[],i=0;i<n;i++)r.push(ut(e,t.listType));return r}(e,n,n.depth-t.length);return function(e){for(var t=1;t<e.length;t++)st(e[t-1],e[t])}(i),function(e,t){for(var n=0;n<e.length-1;n++)r=e[n].item,i="list-style-type",a="none",o=r.dom(),it(o,i,a);var r,i,a,o;te(e).each(function(e){nt(e.list,t.listAttributes),nt(e.item,t.itemAttributes),Xe(e.item,t.content)})}(i,n),r=i,pe(te(t),ee(r),st),t.concat(i)},dt=function(e){return ze(e,"OL,UL")},ft=function(e){return Ge(e).map(dt).getOr(!1)},mt=function(e){return e.depth>0},ht=function(e){return e.isSelected},pt=function(e){var t=qe(e),n=$e(e).map(dt).getOr(!1)?t.slice(0,-1):t;return G(n,at)},gt=Object.prototype.hasOwnProperty,_t=(a=function(e,t){return t},function(){for(var e=new Array(arguments.length),t=0;t<e.length;t++)e[t]=arguments[t];if(0===e.length)throw new Error("Can't merge zero objects");for(var n={},r=0;r<e.length;r++){var i=e[r];for(var o in i)gt.call(i,o)&&(n[o]=a(n[o],i[o]))}return n}),vt=function(e){$(e,function(t,n){(function(e,t){for(var n=e[t].depth,r=t-1;r>=0;r--){if(e[r].depth===n)return H.some(e[r]);if(e[r].depth<n)break}return H.none()})(e,n).each(function(e){var n,r;r=e,(n=t).listType=r.listType,n.listAttributes=_t({},r.listAttributes)})})},yt=function(e){var t=e,n=function(){return t};return{get:n,set:function(e){t=e},clone:function(){return yt(n())}}},bt=function(e,t,n,r){return Ge(r).filter(dt).fold(function(){t.each(function(e){We(e.start,r)&&n.set(!0)});var i=function(e,t,n){return Je(e).filter(tt).map(function(r){return{depth:t,isSelected:n,content:pt(e),itemAttributes:rt(e),listAttributes:rt(r),listType:et(r)}})}(r,e,n.get());t.each(function(e){We(e.end,r)&&n.set(!1)});var a=$e(r).filter(dt).map(function(r){return wt(e,t,n,r)}).getOr([]);return i.toArray().concat(a)},function(r){return wt(e,t,n,r)})},wt=function(e,t,n,r){return Z(qe(r),function(r){return(dt(r)?wt:bt)(e+1,t,n,r)})},Mt=tinymce.util.Tools.resolve("tinymce.Env"),kt=function(e,t){var n,r,i,a,o=e.dom,s=e.schema.getBlockElements(),u=o.createFragment();if(e.settings.forced_root_block&&(i=e.settings.forced_root_block),i&&((r=o.create(i)).tagName===e.settings.forced_root_block&&o.setAttribs(r,e.settings.forced_root_block_attrs),M(t.firstChild,s)||u.appendChild(r)),t)for(;n=t.firstChild;){var l=n.nodeName;a||"SPAN"===l&&"bookmark"===n.getAttribute("data-mce-type")||(a=!0),M(n,s)?(u.appendChild(n),r=null):i?(r||(r=o.create(i),u.appendChild(r)),r.appendChild(n)):u.appendChild(n)}return e.settings.forced_root_block?a||Mt.ie&&!(Mt.ie>10)||r.appendChild(o.create("br",{"data-mce-bogus":"1"})):u.appendChild(o.create("br")),u},Lt=function(t,n){return G(n,function(n){var r,i,a,o=(r=n.content,a=(i||e.document).createDocumentFragment(),$(r,function(e){a.appendChild(e.dom())}),he.fromDom(a));return he.fromDom(kt(t,o.dom()))})},Dt=function(e,t){return vt(t),function(e,t){var n=Q(t,function(t,n){return n.depth>t.length?ct(e,t,n):lt(e,t,n)},[]);return ee(n).map(function(e){return e.list})}(e.contentDocument,t).toArray()},xt=function(e){var t,n,r=G(fe.getSelectedListItems(e),he.fromDom);return pe(X(r,E(ft)),X((t=r,(n=q.call(t,0)).reverse(),n),E(ft)),function(e,t){return{start:e,end:t}})},At=function(e,t,n){var r=function(e,t){var n=yt(!1);return G(e,function(e){return{sourceList:e,entries:wt(0,t,n,e)}})}(t,xt(e));$(r,function(t){var r,i;!function(e,t){$(K(e,ht),function(e){return function(e,t){switch(e){case"Indent":t.depth++;break;case"Outdent":t.depth--;break;case"Flatten":t.depth=0}}(t,e)})}(t.entries,n),r=t.sourceList,i=function(e,t){return Z(function(e,t){if(0===e.length)return[];for(var n=t(e[0]),r=[],i=[],a=0,o=e.length;a<o;a++){var s=e[a],u=t(s);u!==n&&(r.push(i),i=[]),n=u,i.push(s)}return 0!==i.length&&r.push(i),r}(t,mt),function(t){return ee(t).map(mt).getOr(!1)?Dt(e,t):Lt(e,t)})}(e,t.entries),$(i,function(e){Ke(r,e)}),Ze(t.sourceList)})},Ct=f.DOM,Tt=function(e,t,n){var r,i,a,o,s,u;for(a=Ct.select('span[data-mce-type="bookmark"]',t),s=kt(e,n),(r=Ct.createRng()).setStartAfter(n),r.setEndAfter(t),o=(i=r.extractContents()).firstChild;o;o=o.firstChild)if("LI"===o.nodeName&&e.dom.isEmpty(o)){Ct.remove(o);break}e.dom.isEmpty(i)||Ct.insertAfter(i,t),Ct.insertAfter(s,t),L(e.dom,n.parentNode)&&(u=n.parentNode,d.each(a,function(e){u.parentNode.insertBefore(e,n.parentNode)}),Ct.remove(u)),Ct.remove(n),L(e.dom,t)&&Ct.remove(t)},St=function(e){ze(e,"dt")&&ot(e,"dd")},Yt=function(e,t,n){$(n,"Indent"===t?St:function(t){return function(e,t){ze(t,"dd")?ot(t,"dt"):ze(t,"dt")&&Je(t).each(function(n){return Tt(e,n.dom(),t.dom())})}(e,t)})},Nt=function(e,t){var n=G(fe.getSelectedListRoots(e),he.fromDom),r=G(fe.getSelectedDlItems(e),he.fromDom),i=!1;if(n.length||r.length){var a=e.selection.getBookmark();At(e,n,t),Yt(e,t,r),e.selection.moveToBookmark(a),e.selection.setRng(A(e.selection.getRng())),e.nodeChanged(),i=!0}return i},Et=function(e){return Nt(e,"Indent")},Pt=function(e){return Nt(e,"Outdent")},It=function(e){return Nt(e,"Flatten")},Ot=function(e,t){d.each(t,function(t,n){e.setAttribute(n,t)})},Ft=function(e,t,n){!function(e,t,n){var r=n["list-style-type"]?n["list-style-type"]:null;e.setStyle(t,"list-style-type",r)}(e,t,n),function(e,t,n){Ot(t,n["list-attributes"]),d.each(e.select("li",t),function(e){Ot(e,n["list-item-attributes"])})}(e,t,n)},Rt=function(e,t,n,r){var i,a;for(i=t[n?"startContainer":"endContainer"],a=t[n?"startOffset":"endOffset"],1===i.nodeType&&(i=i.childNodes[Math.min(a,i.childNodes.length-1)]||i),!n&&b(i.nextSibling)&&(i=i.nextSibling);i.parentNode!==r;){if(w(e,i))return i;if(/^(TD|TH)$/.test(i.parentNode.nodeName))return i;i=i.parentNode}return i},Ht=function(e,t,n){void 0===n&&(n={});var r,i=e.selection.getRng(!0),a="LI",o=fe.getClosestListRootElm(e,e.selection.getStart(!0)),s=e.dom;"false"!==s.getContentEditable(e.selection.getNode())&&("DL"===(t=t.toUpperCase())&&(a="DT"),r=T(i),d.each(function(e,t,n){for(var r,i=[],a=e.dom,o=Rt(e,t,!0,n),s=Rt(e,t,!1,n),u=[],l=o;l&&(u.push(l),l!==s);l=l.nextSibling);return d.each(u,function(t){if(w(e,t))return i.push(t),void(r=null);if(a.isBlock(t)||b(t))return b(t)&&a.remove(t),void(r=null);var o=t.nextSibling;c.isBookmarkNode(t)&&(w(e,o)||!o&&t.parentNode===n)?r=null:(r||(r=a.create("p"),t.parentNode.insertBefore(r,t),i.push(r)),r.appendChild(t))}),i}(e,i,o),function(r){var i,o;(o=r.previousSibling)&&p(o)&&o.nodeName===t&&function(e,t,n){var r=e.getStyle(t,"list-style-type"),i=n?n["list-style-type"]:"";return r===(i=null===i?"":i)}(s,o,n)?(i=o,r=s.rename(r,a),o.appendChild(r)):(i=s.create(t),r.parentNode.insertBefore(i,r),i.appendChild(r),r=s.rename(r,a)),function(e,t,n){d.each(n,function(n){var r;return e.setStyle(t,((r={})[n]="",r))})}(s,r,["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"]),Ft(s,i,n),Bt(e.dom,i)}),e.selection.setRng(S(r)))},jt=function(e,t,n){return function(e,t){return e&&t&&p(e)&&e.nodeName===t.nodeName}(t,n)&&function(e,t,n){return e.getStyle(t,"list-style-type",!0)===e.getStyle(n,"list-style-type",!0)}(e,t,n)&&(r=n,t.className===r.className);var r},Bt=function(e,t){var n,r;if(n=t.nextSibling,jt(e,t,n)){for(;r=n.firstChild;)t.appendChild(r);e.remove(n)}if(n=t.previousSibling,jt(e,t,n)){for(;r=n.lastChild;)t.insertBefore(r,t.firstChild);e.remove(n)}},Wt=function(e,t,n,r,i){if(t.nodeName!==r||Ut(i)){var a=T(e.selection.getRng(!0));d.each([t].concat(n),function(t){!function(e,t,n,r){if(t.nodeName!==n){var i=e.rename(t,n);Ft(e,i,r)}else Ft(e,t,r)}(e.dom,t,r,i)}),e.selection.setRng(S(a))}else It(e)},Ut=function(e){return"list-style-type"in e},zt={toggleList:function(e,t,n){var r=fe.getParentList(e),i=fe.getSelectedSubLists(e);n=n||{},r&&i.length>0?Wt(e,r,i,t,n):function(e,t,n,r){if(t!==e.getBody())if(t)if(t.nodeName!==n||Ut(r)){var i=T(e.selection.getRng(!0));Ft(e.dom,t,r),Bt(e.dom,e.dom.rename(t,n)),e.selection.setRng(S(i))}else It(e);else Ht(e,n,r)}(e,r,t,n)},mergeWithAdjacentLists:Bt},Jt=f.DOM,qt=function(e,t){var n,r=t.parentNode;"LI"===r.nodeName&&r.firstChild===t&&((n=r.previousSibling)&&"LI"===n.nodeName?(n.appendChild(t),L(e,r)&&Jt.remove(r)):Jt.setStyle(r,"listStyleType","none")),p(r)&&(n=r.previousSibling)&&"LI"===n.nodeName&&n.appendChild(t)},Vt=function(e,t){d.each(d.grep(e.select("ol,ul",t)),function(t){qt(e,t)})},Gt=function(e,t,n,r){var i,a,o=t.startContainer,l=t.startOffset;if(3===o.nodeType&&(n?l<o.data.length:l>0))return o;for(i=e.schema.getNonEmptyElements(),1===o.nodeType&&(o=s.getNode(o,l)),a=new u(o,r),n&&k(e.dom,o)&&a.next();o=a[n?"next":"prev2"]();){if("LI"===o.nodeName&&!o.hasChildNodes())return o;if(i[o.nodeName])return o;if(3===o.nodeType&&o.data.length>0)return o}},$t=function(e,t){var n=t.childNodes;return 1===n.length&&!p(n[0])&&e.isBlock(n[0])},Kt=function(e,t,n){var r,i;if(i=$t(e,n)?n.firstChild:n,function(e,t){$t(e,t)&&e.remove(t.firstChild,!0)}(e,t),!L(e,t,!0))for(;r=t.firstChild;)i.appendChild(r)},Qt=function(e,t,n){var r,i,a=t.parentNode;if(D(e,t)&&D(e,n)){p(n.lastChild)&&(i=n.lastChild),a===n.lastChild&&b(a.previousSibling)&&e.remove(a.previousSibling),(r=n.lastChild)&&b(r)&&t.hasChildNodes()&&e.remove(r),L(e,n,!0)&&e.$(n).empty(),Kt(e,t,n),i&&n.appendChild(i);var o=Ue(he.fromDom(n),he.fromDom(t))?e.getParents(t,p,n):[];e.remove(t),$(o,function(t){L(e,t)&&t!==e.getRoot()&&e.remove(t)})}},Xt=function(e,t,n,r){var i=e.dom;if(i.isEmpty(r))!function(e,t,n){e.dom.$(n).empty(),Qt(e.dom,t,n),e.selection.setCursorLocation(n)}(e,n,r);else{var a=T(t);Qt(i,n,r),e.selection.setRng(S(a))}},Zt=function(e,t){var n,r,i,a=e.dom,o=e.selection,s=o.getStart(),u=fe.getClosestListRootElm(e,s),l=a.getParent(o.getStart(),"LI",u);if(l){if((n=l.parentNode)===e.getBody()&&L(a,n))return!0;if(r=A(o.getRng(!0)),(i=a.getParent(Gt(e,r,t,u),"LI",u))&&i!==l)return t?Xt(e,r,i,l):function(e,t,n,r){var i=T(t);Qt(e.dom,n,r);var a=S(i);e.selection.setRng(a)}(e,r,l,i),!0;if(!i&&!t)return It(e),!0}return!1},en=function(e,t){return Zt(e,t)||function(e,t){var n=e.dom,r=e.selection.getStart(),i=fe.getClosestListRootElm(e,r),a=n.getParent(r,n.isBlock,i);if(a&&n.isEmpty(a)){var o=A(e.selection.getRng(!0)),s=n.getParent(Gt(e,o,t,i),"LI",i);if(s)return e.undoManager.transact(function(){!function(e,t,n){var r=e.getParent(t.parentNode,e.isBlock,n);e.remove(t),r&&e.isEmpty(r)&&e.remove(r)}(n,a,i),zt.mergeWithAdjacentLists(n,s.parentNode),e.selection.select(s,!0),e.selection.collapse(t)}),!0}return!1}(e,t)},tn=function(e,t){return e.selection.isCollapsed()?en(e,t):function(e){var t=e.selection.getStart(),n=fe.getClosestListRootElm(e,t);return!!(e.dom.getParent(t,"LI,DT,DD",n)||fe.getSelectedListItems(e).length>0)&&(e.undoManager.transact(function(){e.execCommand("Delete"),Vt(e.dom,e.getBody())}),!0)}(e)},nn=function(e){e.on("keydown",function(t){t.keyCode===l.BACKSPACE?tn(e,!1)&&t.preventDefault():t.keyCode===l.DELETE&&tn(e,!0)&&t.preventDefault()})},rn=tn,an=function(e){return{backspaceDelete:function(t){rn(e,t)}}},on=function(e,t){return function(){var n=e.dom.getParent(e.selection.getStart(),"UL,OL,DL");return n&&n.nodeName===t}},sn=function(e){e.on("BeforeExecCommand",function(t){var n=t.command.toLowerCase();"indent"===n?Et(e):"outdent"===n&&Pt(e)}),e.addCommand("InsertUnorderedList",function(t,n){zt.toggleList(e,"UL",n)}),e.addCommand("InsertOrderedList",function(t,n){zt.toggleList(e,"OL",n)}),e.addCommand("InsertDefinitionList",function(t,n){zt.toggleList(e,"DL",n)}),e.addCommand("RemoveList",function(){It(e)}),e.addQueryStateHandler("InsertUnorderedList",on(e,"UL")),e.addQueryStateHandler("InsertOrderedList",on(e,"OL")),e.addQueryStateHandler("InsertDefinitionList",on(e,"DL"))},un=function(e){return e.getParam("lists_indent_on_tab",!0)},ln=function(e){un(e)&&function(e){e.on("keydown",function(t){t.keyCode!==l.TAB||l.metaKeyPressed(t)||e.undoManager.transact(function(){(t.shiftKey?Pt(e):Et(e))&&t.preventDefault()})})}(e),nn(e)},cn=function(e,t){return function(n){var r=n.control;e.on("NodeChange",function(e){var n=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}(e.parents,y),i=-1!==n?e.parents.slice(0,n):e.parents,a=d.grep(i,p);r.active(a.length>0&&a[0].nodeName===t)})}},dn=function(e){(function(e,t){var n=e.settings.plugins?e.settings.plugins:"";return-1!==d.inArray(n.split(/[ ,]/),t)})(e,"advlist")||(e.addButton("numlist",{active:!1,title:"Numbered list",cmd:"InsertOrderedList",onPostRender:cn(e,"OL")}),e.addButton("bullist",{active:!1,title:"Bullet list",cmd:"InsertUnorderedList",onPostRender:cn(e,"UL")})),e.addButton("indent",{icon:"indent",title:"Increase indent",cmd:"Indent"})};o.add("lists",function(e){return ln(e),dn(e),sn(e),an(e)})}(window)},ZFGz:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},ZUyn:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},ZoSI:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},a8rS:function(e,t){e.exports="data:image/png;base64, "},aE84:function(e,t,n){e.exports=n.p+"static/img/style1-2.7338299.png"},aM0x:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},aqvp:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},bXQP:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},"c/6r":function(e,t,n){n("V9zC")},"c/Tr":function(e,t,n){e.exports={default:n("5zde"),__esModule:!0}},c1x4:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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 i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};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("PJh5"))},dURR:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},dyB6:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},"e/KL":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},"eBB/":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},eHwN:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},eIVM:function(e,t){},evrx:function(e,t){e.exports="data:image/png;base64, "},exGp:function(e,t,n){"use strict";t.__esModule=!0;var r,i=n("//Fk"),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e){return function(){var t=e.apply(this,arguments);return new a.default(function(e,n){return function r(i,o){try{var s=t[i](o),u=s.value}catch(e){return void n(e)}if(!s.done)return a.default.resolve(u).then(function(e){r("next",e)},function(e){r("throw",e)});e(u)}("next")})}}},f4W3:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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 i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};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("PJh5"))},f85y:function(e,t,n){n("Z3om")},fBQ2:function(e,t,n){"use strict";var r=n("evD5"),i=n("X8DO");e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},fW1y:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},g7KF:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},gEQe:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},gEU3:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},"gO+t":function(e,t){},gUgh:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},gXxP:function(e,t){},"gpE/":function(e,t){},hPuz:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},hng5:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},iJ33:function(e,t,n){e.exports=n.p+"static/img/credit-sign_bg.0dfa890.png"},iNtv:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var i={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?i[n][0]:t?i[n][0]:i[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("PJh5"))},iTxg:function(e,t){!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.util.Color"),n=function(e,t){e.find("#preview")[0].getEl().style.background=t},r=function(e,r){var i=t(r),a=i.toRgb();e.fromJSON({r:a.r,g:a.g,b:a.b,hex:i.toHex().substr(1)}),n(e,i.toHex())},i=function(e,t,i){var a=e.windowManager.open({title:"Color",items:{type:"container",layout:"flex",direction:"row",align:"stretch",padding:5,spacing:10,items:[{type:"colorpicker",value:i,onchange:function(){var e=this.rgb();a&&(a.find("#r").value(e.r),a.find("#g").value(e.g),a.find("#b").value(e.b),a.find("#hex").value(this.value().substr(1)),n(a,this.value()))}},{type:"form",padding:0,labelGap:5,defaults:{type:"textbox",size:7,value:"0",flex:1,spellcheck:!1,onchange:function(){var e,t,n=a.find("colorpicker")[0];if(e=this.name(),t=this.value(),"hex"===e)return r(a,t="#"+t),void n.value(t);t={r:a.find("#r").value(),g:a.find("#g").value(),b:a.find("#b").value()},n.value(t),r(a,t)}},items:[{name:"r",label:"R",autofocus:1},{name:"g",label:"G"},{name:"b",label:"B"},{name:"hex",label:"#",value:"000000"},{name:"preview",type:"container",border:1}]}]},onSubmit:function(){t("#"+a.toJSON().hex)}});r(a,i)};e.add("colorpicker",function(e){e.settings.color_picker_callback||(e.settings.color_picker_callback=function(t,n){i(e,t,n)})})}()},igos:function(e,t){},"j+vx":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},j8cJ:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},jxEH:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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,i){return e+" "+n(t[i],e,r)}function i(e,r,i){return n(t[i],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:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n("PJh5"))},jyFz:function(e,t,n){var r=function(){return this}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,a=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n("SldL"),i)r.regeneratorRuntime=a;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},"k+5o":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},kI9l:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},kUhG:function(e,t,n){e.exports=n.p+"static/img/style1-1.7c46a8c.png"},krPU:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},lOED:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},lvXc:function(e,t,n){e.exports=n.p+"static/img/credit-banner_bg.9a04f5a.png"},m7yE:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,r,i){var a=function(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),i=e%10,a="";n>0&&(a+=t[n]+"vatlh");r>0&&(a+=(""!==a?" ":"")+t[r]+"maH");i>0&&(a+=(""!==a?" ":"")+t[i]);return""===a?"pagh":a}(e);switch(r){case"ss":return a+" lup";case"mm":return a+" tup";case"hh":return a+" rep";case"dd":return a+" jaj";case"MM":return a+" jar";case"yy":return a+" DIS"}}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("PJh5"))},mYlr:function(e,t){},mvHQ:function(e,t,n){e.exports={default:n("qkKv"),__esModule:!0}},nE8X:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},nLOz:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},nS2h:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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,i,a){var o="";switch(i){case"s":return a?"muutaman sekunnin":"muutama sekunti";case"ss":o=a?"sekunnin":"sekuntia";break;case"m":return a?"minuutin":"minuutti";case"mm":o=a?"minuutin":"minuuttia";break;case"h":return a?"tunnin":"tunti";case"hh":o=a?"tunnin":"tuntia";break;case"d":return a?"päivän":"päivä";case"dd":o=a?"päivän":"päivää";break;case"M":return a?"kuukauden":"kuukausi";case"MM":o=a?"kuukauden":"kuukautta";break;case"y":return a?"vuoden":"vuosi";case"yy":o=a?"vuoden":"vuotta"}return o=function(e,r){return e<10?r?n[e]:t[e]:e}(e,a)+" "+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("PJh5"))},ntHu:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n){var r,i;return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(r=+e,i={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[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("PJh5"))},o5MN:function(e,t){!function(e){"use strict";var t,n,r,i,a=tinymce.util.Tools.resolve("tinymce.ThemeManager"),o=tinymce.util.Tools.resolve("tinymce.EditorManager"),s=tinymce.util.Tools.resolve("tinymce.util.Tools"),u=function(e){return!1!==l(e)},l=function(e){return e.getParam("menubar")},c=function(e){return e.getParam("toolbar_items_size")},d=function(e){return e.getParam("menu")},f=function(e){return!1===e.settings.skin},m=function(e){var t=e.getParam("resize","vertical");return!1===t?"none":"both"===t?"both":"vertical"},h=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),p=tinymce.util.Tools.resolve("tinymce.ui.Factory"),g=tinymce.util.Tools.resolve("tinymce.util.I18n"),_=function(e){return e.fire("SkinLoaded")},v=function(e){return e.fire("ResizeEditor")},y=function(e){return e.fire("BeforeRenderUI")},b=function(e,t){return function(){var n=e.find(t)[0];n&&n.focus(!0)}},w=function(e,t){e.shortcuts.add("Alt+F9","",b(t,"menubar")),e.shortcuts.add("Alt+F10,F10","",b(t,"toolbar")),e.shortcuts.add("Alt+F11","",b(t,"elementpath")),t.on("cancel",function(){e.focus()})},M=tinymce.util.Tools.resolve("tinymce.geom.Rect"),k=tinymce.util.Tools.resolve("tinymce.util.Delay"),L=function(){},D=function(e){return function(){return e}},x=D(!1),A=D(!0),C=function(){return T},T=(t=function(e){return e.isNone()},i={fold:function(e,t){return e()},is:x,isSome:x,isNone:A,getOr:r=function(e){return e},getOrThunk:n=function(e){return e()},getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:D(null),getOrUndefined:D(void 0),or:r,orThunk:n,map:C,each:L,bind:C,exists:x,forall:A,filter:C,equals:t,equals_:t,toArray:function(){return[]},toString:D("none()")},Object.freeze&&Object.freeze(i),i),S=function(e){var t=D(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:A,isNone:x,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return S(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:T},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(x,function(t){return n(e,t)})}};return i},Y={some:S,none:C,from:function(e){return null===e||void 0===e?T:S(e)}},N=function(e){return e?e.getRoot().uiContainer:null},E={getUiContainerDelta:function(e){var t=N(e);if(t&&"static"!==h.DOM.getStyle(t,"position",!0)){var n=h.DOM.getPos(t),r=t.scrollLeft-n.x,i=t.scrollTop-n.y;return Y.some({x:r,y:i})}return Y.none()},setUiContainer:function(e,t){var n=h.DOM.select(e.settings.ui_container)[0];t.getRoot().uiContainer=n},getUiContainer:N,inheritUiContainer:function(e,t){return t.uiContainer=N(e)}},P=function(e,t,n){var r,i=[];if(t)return s.each(t.split(/[ ,]/),function(t){var a,o=function(){var n=e.selection;t.settings.stateSelector&&n.selectorChanged(t.settings.stateSelector,function(e){t.active(e)},!0),t.settings.disabledStateSelector&&n.selectorChanged(t.settings.disabledStateSelector,function(e){t.disabled(e)})};"|"===t?r=null:(r||(r={type:"buttongroup",items:[]},i.push(r)),e.buttons[t]&&(a=t,"function"==typeof(t=e.buttons[a])&&(t=t()),t.type=t.type||"button",t.size=n,t=p.create(t),r.items.push(t),e.initialized?o():e.on("init",o)))}),{type:"toolbar",layout:"flow",items:i}},I=P,O=function(e,t){var n=[];if(s.each(function(e){var t=e.getParam("toolbar");return!1===t?[]:s.isArray(t)?s.grep(t,function(e){return e.length>0}):function(e,t){for(var n=[],r=1;r<10;r++){var i=e["toolbar"+r];if(!i)break;n.push(i)}var a=e.toolbar?[e.toolbar]:[t];return n.length>0?n:a}(e.settings,"undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image")}(e),function(r){var i;(i=r)&&n.push(P(e,i,t))}),n.length)return{type:"panel",layout:"stack",classes:"toolbar-grp",ariaRoot:!0,ariaRemember:!0,items:n}},F=h.DOM,R=function(e){return{left:e.x,top:e.y,width:e.w,height:e.h,right:e.x+e.w,bottom:e.y+e.h}},H=function(e,t){e.moveTo(t.left,t.top)},j=function(e,t,n,r,i,a){return a=R({x:t,y:n,w:a.w,h:a.h}),e&&(a=e({elementRect:R(r),contentAreaRect:R(i),panelRect:a})),a},B=function(e){var t,n=function(){return e.contextToolbars||[]},r=function(t,n){var r,i,a,o,u,l,c,d=function(e){return e.getParam("inline_toolbar_position_handler")}(e);if(!e.removed)if(t&&t.toolbar.panel){var f,m,h,p;c=["bc-tc","tc-bc","tl-bl","bl-tl","tr-br","br-tr"],u=t.toolbar.panel,n&&u.show(),f=t.element,m=F.getPos(e.getContentAreaContainer()),h=e.dom.getRect(f),"BODY"===(p=e.dom.getRoot()).nodeName&&(h.x-=p.ownerDocument.documentElement.scrollLeft||p.scrollLeft,h.y-=p.ownerDocument.documentElement.scrollTop||p.scrollTop),h.x+=m.x,h.y+=m.y,a=h,i=F.getRect(u.getEl()),o=F.getRect(e.getContentAreaContainer()||e.getBody());var g=E.getUiContainerDelta(u).getOr({x:0,y:0});if(a.x+=g.x,a.y+=g.y,i.x+=g.x,i.y+=g.y,o.x+=g.x,o.y+=g.y,"inline"!==F.getStyle(t.element,"display",!0)){var _=t.element.getBoundingClientRect();a.w=_.width,a.h=_.height}e.inline||(o.w=e.getDoc().documentElement.offsetWidth),e.selection.controlSelection.isResizable(t.element)&&a.w<25&&(a=M.inflate(a,0,8)),r=M.findBestRelativePosition(i,a,o,c),a=M.clamp(a,o),r?(l=M.relativePosition(i,a,r),H(u,j(d,l.x,l.y,a,o,i))):(o.h+=i.h,(a=M.intersect(o,a))?(r=M.findBestRelativePosition(i,a,o,["bc-tc","bl-tl","br-tr"]))?(l=M.relativePosition(i,a,r),H(u,j(d,l.x,l.y,a,o,i))):H(u,j(d,a.x,a.y,a,o,i)):u.hide()),function(e,t,n){t=t?t.substr(0,2):"",s.each({t:"down",b:"up"},function(r,i){e.classes.toggle("arrow-"+r,n(i,t.substr(0,1)))}),s.each({l:"left",r:"right"},function(r,i){e.classes.toggle("arrow-"+r,n(i,t.substr(1,1)))})}(u,r,function(e,t){return e===t})}else!function(e){s.each(e.contextToolbars,function(e){e.panel&&e.panel.hide()})}(e)},i=function(t){return function(){k.requestAnimationFrame(function(){e.selection&&r(u(e.selection.getNode()),t)})}},a=function(n){var a;if(n.toolbar.panel)return n.toolbar.panel.show(),void r(n);a=p.create({type:"floatpanel",role:"dialog",classes:"tinymce tinymce-inline arrow",ariaLabel:"Inline toolbar",layout:"flex",direction:"column",align:"stretch",autohide:!1,autofix:!0,fixed:!0,border:1,items:I(e,n.toolbar.items),oncancel:function(){e.focus()}}),E.setUiContainer(e,a),function(n){if(!t){var r=i(!0),a=E.getUiContainer(n);t=e.selection.getScrollContainer()||e.getWin(),F.bind(t,"scroll",r),F.bind(a,"scroll",r),e.on("remove",function(){F.unbind(t,"scroll",r),F.unbind(a,"scroll",r)})}}(a),n.toolbar.panel=a,a.renderTo().reflow(),r(n)},o=function(){s.each(n(),function(e){e.panel&&e.panel.hide()})},u=function(t){var r,i,a,o=n();for(r=(a=e.$(t).parents().add(t)).length-1;r>=0;r--)for(i=o.length-1;i>=0;i--)if(o[i].predicate(a[r]))return{toolbar:o[i],element:a[r]};return null};e.on("click keyup setContent ObjectResized",function(t){("setcontent"!==t.type||t.selection)&&k.setEditorTimeout(e,function(){var t;(t=u(e.selection.getNode()))?(o(),a(t)):o()})}),e.on("blur hide contextmenu",o),e.on("ObjectResizeStart",function(){var t=u(e.selection.getNode());t&&t.toolbar.panel&&t.toolbar.panel.hide()}),e.on("ResizeEditor ResizeWindow",i(!0)),e.on("nodeChange",i(!1)),e.on("remove",function(){s.each(n(),function(e){e.panel&&e.panel.remove()}),e.contextToolbars={}}),e.shortcuts.add("ctrl+F9","",function(){var t=u(e.selection.getNode());t&&t.toolbar.panel&&t.toolbar.panel.items()[0].focus()})},W=function(e){return function(t){return function(e){if(null===e)return"null";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t}(t)===e}},U=W("array"),z=W("function"),J=W("number"),q=(Array.prototype.slice,Array.prototype.indexOf),V=Array.prototype.push,G=function(e,t){var n,r,i=(n=e,r=t,q.call(n,r));return-1===i?Y.none():Y.some(i)},$=function(e,t){for(var n=0,r=e.length;n<r;n++)if(t(e[n],n))return!0;return!1},K=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var a=e[i];r[i]=t(a,i)}return r},Q=function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)},X=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var a=e[r];t(a,r)&&n.push(a)}return n},Z=(z(Array.from)&&Array.from,{file:{title:"File",items:"newdocument restoredraft | preview | print"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen"},insert:{title:"Insert",items:"image link media template codesample inserttable | charmap hr | pagebreak nonbreaking anchor toc | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | blockformats align | removeformat"},tools:{title:"Tools",items:"spellchecker spellcheckerlanguage | a11ycheck code"},table:{title:"Table"},help:{title:"Help"}}),ee=function(e,t){return"|"===e?{name:"|",item:{text:"|"}}:t?{name:e,item:t}:null},te=function(e,t){return function(e,t){for(var n=0,r=e.length;n<r;n++)if(t(e[n],n))return Y.some(n);return Y.none()}(e,function(e){return e.name===t}).isSome()},ne=function(e){return e&&"|"===e.item.text},re=function(e,t,n,r){var i,a,o,u;return t?(a=t[r],u=!0):a=Z[r],a&&(i={text:a.title},o=[],s.each((a.items||"").split(/[ ,]/),function(t){var n=ee(t,e[t]);n&&o.push(n)}),u||s.each(e,function(e,t){e.context!==r||te(o,t)||("before"===e.separator&&o.push({name:"|",item:{text:"|"}}),e.prependToContext?o.unshift(ee(t,e)):o.push(ee(t,e)),"after"===e.separator&&o.push({name:"|",item:{text:"|"}}))}),i.menu=K(function(e,t){var n=X(e,function(e){return!1===t.hasOwnProperty(e.name)}),r=X(n,function(e,t){return!ne(e)||!ne(n[t-1])});return X(r,function(e,t){return!ne(e)||t>0&&t<r.length-1})}(o,n),function(e){return e.item}),!i.menu.length)?null:i},ie=function(e){for(var t=[],n=function(e){var t,n=[],r=d(e);if(r)for(t in r)n.push(t);else for(t in Z)n.push(t);return n}(e),r=s.makeMap(function(e){return e.getParam("removed_menuitems","")}(e).split(/[ ,]/)),i=l(e),a="string"==typeof i?i.split(/[ ,]/):n,o=0;o<a.length;o++){var u=a[o],c=re(e.menuItems,d(e),r,u);c&&t.push(c)}return t},ae=h.DOM,oe=function(e){return{width:e.clientWidth,height:e.clientHeight}},se=function(e,t,n){var r,i,a,o;r=e.getContainer(),i=e.getContentAreaContainer().firstChild,a=oe(r),o=oe(i),null!==t&&(t=Math.max(function(e){return e.getParam("min_width",100,"number")}(e),t),t=Math.min(function(e){return e.getParam("max_width",65535,"number")}(e),t),ae.setStyle(r,"width",t+(a.width-o.width)),ae.setStyle(i,"width",t)),n=Math.max(function(e){return e.getParam("min_height",100,"number")}(e),n),n=Math.min(function(e){return e.getParam("max_height",65535,"number")}(e),n),ae.setStyle(i,"height",n),v(e)},ue=se,le=function(e,t,n){var r=e.getContentAreaContainer();se(e,r.clientWidth+t,r.clientHeight+n)},ce=tinymce.util.Tools.resolve("tinymce.Env"),de=function(e,t,n){var r,i=e.settings[n];i&&i((r=t.getEl("body"),{element:function(){return r}}))},fe=function(e,t,n){return function(r){var i=r.control,a=i.parents().filter("panel")[0],o=a.find("#"+t)[0],u=function(e,t){return s.grep(e,function(e){return e.name===t})[0]}(n,t);!function(e,t,n){s.each(n,function(n){var r=t.items().filter("#"+n.name)[0];r&&r.visible()&&n.name!==e&&(de(n,r,"onhide"),r.visible(!1))})}(t,a,n),i.parent().items().each(function(e){e.active(!1)}),o&&o.visible()?(de(u,o,"onhide"),o.hide(),i.active(!1)):(o?(o.show(),de(u,o,"onshow")):(o=p.create({type:"container",name:t,layout:"stack",classes:"sidebar-panel",html:""}),a.prepend(o),de(u,o,"onrender"),de(u,o,"onshow")),i.active(!0)),v(e)}},me=function(e){return!(ce.ie&&!(ce.ie>=11)||!e.sidebars)&&e.sidebars.length>0},he=function(e){return{type:"panel",name:"sidebar",layout:"stack",classes:"sidebar",items:[{type:"toolbar",layout:"stack",classes:"sidebar-toolbar",items:s.map(e.sidebars,function(t){var n=t.settings;return{type:"button",icon:n.icon,image:n.image,tooltip:n.tooltip,onclick:fe(e,t.name,e.sidebars)}})}]}},pe=function(e){var t=function(){e._skinLoaded=!0,_(e)};return function(){e.initialized?t():e.on("init",t)}},ge=h.DOM,_e=function(e){return{type:"panel",name:"iframe",layout:"stack",classes:"edit-area",border:e,html:""}},ve=function(e,t,n){var r,i,a;if(!1===f(e)&&n.skinUiCss?ge.styleSheetLoader.load(n.skinUiCss,pe(e)):pe(e)(),r=t.panel=p.create({type:"panel",role:"application",classes:"tinymce",style:"visibility: hidden",layout:"stack",border:1,items:[{type:"container",classes:"top-part",items:[!1===u(e)?null:{type:"menubar",border:"0 0 1 0",items:ie(e)},O(e,c(e))]},me(e)?function(e){return{type:"panel",layout:"stack",classes:"edit-aria-container",border:"1 0 0 0",items:[_e("0"),he(e)]}}(e):_e("1 0 0 0")]}),E.setUiContainer(e,r),"none"!==m(e)&&(i={type:"resizehandle",direction:m(e),onResizeStart:function(){var t=e.getContentAreaContainer().firstChild;a={width:t.clientWidth,height:t.clientHeight}},onResize:function(t){"both"===m(e)?ue(e,a.width+t.deltaX,a.height+t.deltaY):ue(e,null,a.height+t.deltaY)}}),function(e){return e.getParam("statusbar",!0,"boolean")}(e)){var o=g.translate(["Powered by {0}",'<a href="https://www.tiny.cloud/?utm_campaign=editor_referral&amp;utm_medium=poweredby&amp;utm_source=tinymce" rel="noopener" target="_blank" role="presentation" tabindex="-1">Tiny</a>']),s=function(e){return e.getParam("branding",!0,"boolean")}(e)?{type:"label",classes:"branding",html:" "+o}:null;r.add({type:"panel",name:"statusbar",classes:"statusbar",layout:"flow",border:"1 0 0 0",ariaRoot:!0,items:[{type:"elementpath",editor:e},i,s]})}return y(e),e.on("SwitchMode",function(e){return function(t){e.find("*").disabled("readonly"===t.mode)}}(r)),r.renderBefore(n.targetNode).reflow(),function(e){return e.getParam("readonly",!1,"boolean")}(e)&&e.setMode("readonly"),n.width&&ge.setStyle(r.getEl(),"width",n.width),e.on("remove",function(){r.remove(),r=null}),w(e,r),B(e),{iframeContainer:r.find("#iframe")[0].getEl(),editorContainer:r.getEl()}},ye=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),be=0,we={id:function(){return"mceu_"+be++},create:function(t,n,r){var i=e.document.createElement(t);return h.DOM.setAttribs(i,n),"string"==typeof r?i.innerHTML=r:s.each(r,function(e){e.nodeType&&i.appendChild(e)}),i},createFragment:function(e){return h.DOM.createFragment(e)},getWindowSize:function(){return h.DOM.getViewPort()},getSize:function(e){var t,n;if(e.getBoundingClientRect){var r=e.getBoundingClientRect();t=Math.max(r.width||r.right-r.left,e.offsetWidth),n=Math.max(r.height||r.bottom-r.bottom,e.offsetHeight)}else t=e.offsetWidth,n=e.offsetHeight;return{width:t,height:n}},getPos:function(e,t){return h.DOM.getPos(e,t||we.getContainer())},getContainer:function(){return ce.container?ce.container:e.document.body},getViewPort:function(e){return h.DOM.getViewPort(e)},get:function(t){return e.document.getElementById(t)},addClass:function(e,t){return h.DOM.addClass(e,t)},removeClass:function(e,t){return h.DOM.removeClass(e,t)},hasClass:function(e,t){return h.DOM.hasClass(e,t)},toggleClass:function(e,t,n){return h.DOM.toggleClass(e,t,n)},css:function(e,t,n){return h.DOM.setStyle(e,t,n)},getRuntimeStyle:function(e,t){return h.DOM.getStyle(e,t,!0)},on:function(e,t,n,r){return h.DOM.bind(e,t,n,r)},off:function(e,t,n){return h.DOM.unbind(e,t,n)},fire:function(e,t,n){return h.DOM.fire(e,t,n)},innerHtml:function(e,t){h.DOM.setHTML(e,t)}},Me=function(e){return"static"===we.getRuntimeStyle(e,"position")},ke=function(e){return e.state.get("fixed")};function Le(t,n,r){var i,a,o,s,u,l,c,d,f,m;return f=De(),o=(a=we.getPos(n,E.getUiContainer(t))).x,s=a.y,ke(t)&&Me(e.document.body)&&(o-=f.x,s-=f.y),i=t.getEl(),u=(m=we.getSize(i)).width,l=m.height,c=(m=we.getSize(n)).width,d=m.height,"b"===(r=(r||"").split(""))[0]&&(s+=d),"r"===r[1]&&(o+=c),"c"===r[0]&&(s+=Math.round(d/2)),"c"===r[1]&&(o+=Math.round(c/2)),"b"===r[3]&&(s-=l),"r"===r[4]&&(o-=u),"c"===r[3]&&(s-=Math.round(l/2)),"c"===r[4]&&(o-=Math.round(u/2)),{x:o,y:s,w:u,h:l}}var De=function(){var t=e.window;return{x:Math.max(t.pageXOffset,e.document.body.scrollLeft,e.document.documentElement.scrollLeft),y:Math.max(t.pageYOffset,e.document.body.scrollTop,e.document.documentElement.scrollTop),w:t.innerWidth||e.document.documentElement.clientWidth,h:t.innerHeight||e.document.documentElement.clientHeight}},xe=function(e){var t=E.getUiContainer(e);return t&&!ke(e)?function(e){return{x:0,y:0,w:e.scrollWidth-1,h:e.scrollHeight-1}}(t):De()},Ae={testMoveRel:function(e,t){for(var n=xe(this),r=0;r<t.length;r++){var i=Le(this,e,t[r]);if(ke(this)){if(i.x>0&&i.x+i.w<n.w&&i.y>0&&i.y+i.h<n.h)return t[r]}else if(i.x>n.x&&i.x+i.w<n.w+n.x&&i.y>n.y&&i.y+i.h<n.h+n.y)return t[r]}return t[0]},moveRel:function(e,t){"string"!=typeof t&&(t=this.testMoveRel(e,t));var n=Le(this,e,t);return this.moveTo(n.x,n.y)},moveBy:function(e,t){var n=this.layoutRect();return this.moveTo(n.x+e,n.y+t),this},moveTo:function(e,t){function n(e,t,n){return e<0?0:e+n>t&&(e=t-n)<0?0:e}if(this.settings.constrainToViewport){var r=xe(this),i=this.layoutRect();e=n(e,r.w+r.x,i.w),t=n(t,r.h+r.y,i.h)}var a=E.getUiContainer(this);return a&&Me(a)&&!ke(this)&&(e-=a.scrollLeft,t-=a.scrollTop),a&&(e+=1,t+=1),this.state.get("rendered")?this.layoutRect({x:e,y:t}).repaint():(this.settings.x=e,this.settings.y=t),this.fire("move",{x:e,y:t}),this}},Ce=tinymce.util.Tools.resolve("tinymce.util.Class"),Te=tinymce.util.Tools.resolve("tinymce.util.EventDispatcher"),Se=function(e){var t;if(e)return"number"==typeof e?{top:e=e||0,left:e,bottom:e,right:e}:(1===(t=(e=e.split(" ")).length)?e[1]=e[2]=e[3]=e[0]:2===t?(e[2]=e[0],e[3]=e[1]):3===t&&(e[3]=e[1]),{top:parseInt(e[0],10)||0,right:parseInt(e[1],10)||0,bottom:parseInt(e[2],10)||0,left:parseInt(e[3],10)||0})},Ye=function(e,t){function n(t){var n=parseFloat(function(t){var n=e.ownerDocument.defaultView;if(n){var r=n.getComputedStyle(e,null);return r?(t=t.replace(/[A-Z]/g,function(e){return"-"+e}),r.getPropertyValue(t)):null}return e.currentStyle[t]}(t));return isNaN(n)?0:n}return{top:n(t+"TopWidth"),right:n(t+"RightWidth"),bottom:n(t+"BottomWidth"),left:n(t+"LeftWidth")}};function Ne(){}function Ee(e){this.cls=[],this.cls._map={},this.onchange=e||Ne,this.prefix=""}s.extend(Ee.prototype,{add:function(e){return e&&!this.contains(e)&&(this.cls._map[e]=!0,this.cls.push(e),this._change()),this},remove:function(e){if(this.contains(e)){var t=void 0;for(t=0;t<this.cls.length&&this.cls[t]!==e;t++);this.cls.splice(t,1),delete this.cls._map[e],this._change()}return this},toggle:function(e,t){var n=this.contains(e);return n!==t&&(n?this.remove(e):this.add(e),this._change()),this},contains:function(e){return!!this.cls._map[e]},_change:function(){delete this.clsValue,this.onchange.call(this)}}),Ee.prototype.toString=function(){var e;if(this.clsValue)return this.clsValue;e="";for(var t=0;t<this.cls.length;t++)t>0&&(e+=" "),e+=this.prefix+this.cls[t];return e};var Pe,Ie,Oe,Fe=/^([\w\\*]+)?(?:#([\w\-\\]+))?(?:\.([\w\\\.]+))?(?:\[\@?([\w\\]+)([\^\$\*!~]?=)([\w\\]+)\])?(?:\:(.+))?/i,Re=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,He=/^\s*|\s*$/g,je=Ce.extend({init:function(e){var t=this.match;function n(e,n,i){var a;function o(e){e&&n.push(e)}return o(function(e){if(e)return e=e.toLowerCase(),function(t){return"*"===e||t.type===e}}((a=Fe.exec(e.replace(He,"")))[1])),o(function(e){if(e)return function(t){return t._name===e}}(a[2])),o(function(e){if(e)return e=e.split("."),function(t){for(var n=e.length;n--;)if(!t.classes.contains(e[n]))return!1;return!0}}(a[3])),o(function(e,t,n){if(e)return function(r){var i=r[e]?r[e]():"";return t?"="===t?i===n:"*="===t?i.indexOf(n)>=0:"~="===t?(" "+i+" ").indexOf(" "+n+" ")>=0:"!="===t?i!==n:"^="===t?0===i.indexOf(n):"$="===t&&i.substr(i.length-n.length)===n:!!n}}(a[4],a[5],a[6])),o(function(e){var n;if(e)return(e=/(?:not\((.+)\))|(.+)/i.exec(e))[1]?(n=r(e[1],[]),function(e){return!t(e,n)}):(e=e[2],function(t,n,r){return"first"===e?0===n:"last"===e?n===r-1:"even"===e?n%2==0:"odd"===e?n%2==1:!!t[e]&&t[e]()})}(a[7])),n.pseudo=!!a[7],n.direct=i,n}function r(e,t){var i,a,o,s=[];do{if(Re.exec(""),(a=Re.exec(e))&&(e=a[3],s.push(a[1]),a[2])){i=a[3];break}}while(a);for(i&&r(i,t),e=[],o=0;o<s.length;o++)">"!==s[o]&&e.push(n(s[o],[],">"===s[o-1]));return t.push(e),t}this._selectors=r(e,[])},match:function(e,t){var n,r,i,a,o,s,u,l,c,d,f,m,h;for(n=0,r=(t=t||this._selectors).length;n<r;n++){for(h=e,m=0,i=(a=(o=t[n]).length)-1;i>=0;i--)for(l=o[i];h;){if(l.pseudo)for(c=d=(f=h.parent().items()).length;c--&&f[c]!==h;);for(s=0,u=l.length;s<u;s++)if(!l[s](h,c,d)){s=u+1;break}if(s===u){m++;break}if(i===a-1)break;h=h.parent()}if(m===a)return!0}return!1},find:function(e){var t,n,r=[],i=this._selectors;function a(e,t,n){var i,o,s,u,l,c=t[n];for(i=0,o=e.length;i<o;i++){for(l=e[i],s=0,u=c.length;s<u;s++)if(!c[s](l,i,o)){s=u+1;break}if(s===u)n===t.length-1?r.push(l):l.items&&a(l.items(),t,n+1);else if(c.direct)return;l.items&&a(l.items(),t,n)}}if(e.items){for(t=0,n=i.length;t<n;t++)a(e.items(),i[t],0);n>1&&(r=function(e){for(var t,n=[],r=e.length;r--;)(t=e[r]).__checked||(n.push(t),t.__checked=1);for(r=n.length;r--;)delete n[r].__checked;return n}(r))}return Pe||(Pe=je.Collection),new Pe(r)}}),Be=Array.prototype.push,We=Array.prototype.slice;Oe={length:0,init:function(e){e&&this.add(e)},add:function(e){return s.isArray(e)?Be.apply(this,e):e instanceof Ie?this.add(e.toArray()):Be.call(this,e),this},set:function(e){var t,n=this.length;for(this.length=0,this.add(e),t=this.length;t<n;t++)delete this[t];return this},filter:function(e){var t,n,r,i,a=[];for("string"==typeof e?(e=new je(e),i=function(t){return e.match(t)}):i=e,t=0,n=this.length;t<n;t++)i(r=this[t])&&a.push(r);return new Ie(a)},slice:function(){return new Ie(We.apply(this,arguments))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},each:function(e){return s.each(this,e),this},toArray:function(){return s.toArray(this)},indexOf:function(e){for(var t=this.length;t--&&this[t]!==e;);return t},reverse:function(){return new Ie(s.toArray(this).reverse())},hasClass:function(e){return!!this[0]&&this[0].classes.contains(e)},prop:function(e,t){var n;return void 0!==t?(this.each(function(n){n[e]&&n[e](t)}),this):(n=this[0])&&n[e]?n[e]():void 0},exec:function(e){var t=s.toArray(arguments).slice(1);return this.each(function(n){n[e]&&n[e].apply(n,t)}),this},remove:function(){for(var e=this.length;e--;)this[e].remove();return this},addClass:function(e){return this.each(function(t){t.classes.add(e)})},removeClass:function(e){return this.each(function(t){t.classes.remove(e)})}},s.each("fire on off show hide append prepend before after reflow".split(" "),function(e){Oe[e]=function(){var t=s.toArray(arguments);return this.each(function(n){e in n&&n[e].apply(n,t)}),this}}),s.each("text name disabled active selected checked visible parent value data".split(" "),function(e){Oe[e]=function(t){return this.prop(e,t)}}),Ie=Ce.extend(Oe),je.Collection=Ie;var Ue=Ie,ze=function(e){this.create=e.create};ze.create=function(e,t){return new ze({create:function(n,r){var i,a=function(e){n.set(r,e.value)};return n.on("change:"+r,function(n){e.set(t,n.value)}),e.on("change:"+t,a),(i=n._bindings)||(i=n._bindings=[],n.on("destroy",function(){for(var e=i.length;e--;)i[e]()})),i.push(function(){e.off("change:"+t,a)}),e.get(t)}})};var Je=tinymce.util.Tools.resolve("tinymce.util.Observable");function qe(e){return e.nodeType>0}var Ve,Ge,$e=Ce.extend({Mixins:[Je],init:function(e){var t,n;for(t in e=e||{})(n=e[t])instanceof ze&&(e[t]=n.create(this,t));this.data=e},set:function(e,t){var n,r,i=this.data[e];if(t instanceof ze&&(t=t.create(this,e)),"object"==typeof e){for(n in e)this.set(n,e[n]);return this}return function e(t,n){var r,i;if(t===n)return!0;if(null===t||null===n)return t===n;if("object"!=typeof t||"object"!=typeof n)return t===n;if(s.isArray(n)){if(t.length!==n.length)return!1;for(r=t.length;r--;)if(!e(t[r],n[r]))return!1}if(qe(t)||qe(n))return t===n;for(r in i={},n){if(!e(t[r],n[r]))return!1;i[r]=!0}for(r in t)if(!i[r]&&!e(t[r],n[r]))return!1;return!0}(i,t)||(this.data[e]=t,r={target:this,name:e,value:t,oldValue:i},this.fire("change:"+e,r),this.fire("change",r)),this},get:function(e){return this.data[e]},has:function(e){return e in this.data},bind:function(e){return ze.create(this,e)},destroy:function(){this.fire("destroy")}}),Ke={},Qe={add:function(t){var n=t.parent();if(n){if(!n._layout||n._layout.isNative())return;Ke[n._id]||(Ke[n._id]=n),Ve||(Ve=!0,k.requestAnimationFrame(function(){var e,t;for(e in Ve=!1,Ke)(t=Ke[e]).state.get("rendered")&&t.reflow();Ke={}},e.document.body))}},remove:function(e){Ke[e._id]&&delete Ke[e._id]}},Xe="onmousewheel"in e.document,Ze=!1,et=0,tt={Statics:{classPrefix:"mce-"},isRtl:function(){return Ge.rtl},classPrefix:"mce-",init:function(e){var t,n,r=this;function i(e){var t;for(e=e.split(" "),t=0;t<e.length;t++)r.classes.add(e[t])}r.settings=e=s.extend({},r.Defaults,e),r._id=e.id||"mceu_"+et++,r._aria={role:e.role},r._elmCache={},r.$=ye,r.state=new $e({visible:!0,active:!1,disabled:!1,value:""}),r.data=new $e(e.data),r.classes=new Ee(function(){r.state.get("rendered")&&(r.getEl().className=this.toString())}),r.classes.prefix=r.classPrefix,(t=e.classes)&&(r.Defaults&&(n=r.Defaults.classes)&&t!==n&&i(n),i(t)),s.each("title text name visible disabled active value".split(" "),function(t){t in e&&r[t](e[t])}),r.on("click",function(){if(r.disabled())return!1}),r.settings=e,r.borderBox=Se(e.border),r.paddingBox=Se(e.padding),r.marginBox=Se(e.margin),e.hidden&&r.hide()},Properties:"parent,name",getContainerElm:function(){var e=E.getUiContainer(this);return e||we.getContainer()},getParentCtrl:function(e){for(var t,n=this.getRoot().controlIdLookup;e&&n&&!(t=n[e.id]);)e=e.parentNode;return t},initLayoutRect:function(){var e,t,n,r,i,a,o,s,u,l,c=this.settings,d=this.getEl();e=this.borderBox=this.borderBox||Ye(d,"border"),this.paddingBox=this.paddingBox||Ye(d,"padding"),this.marginBox=this.marginBox||Ye(d,"margin"),l=we.getSize(d),s=c.minWidth,u=c.minHeight,i=s||l.width,a=u||l.height,n=c.width,r=c.height,o=void 0!==(o=c.autoResize)?o:!n&&!r,n=n||i,r=r||a;var f=e.left+e.right,m=e.top+e.bottom,h=c.maxWidth||65535,p=c.maxHeight||65535;return this._layoutRect=t={x:c.x||0,y:c.y||0,w:n,h:r,deltaW:f,deltaH:m,contentW:n-f,contentH:r-m,innerW:n-f,innerH:r-m,startMinWidth:s||0,startMinHeight:u||0,minW:Math.min(i,h),minH:Math.min(a,p),maxW:h,maxH:p,autoResize:o,scrollW:0},this._lastLayoutRect={},t},layoutRect:function(e){var t,n,r,i,a,o=this._layoutRect;return o||(o=this.initLayoutRect()),e?(r=o.deltaW,i=o.deltaH,void 0!==e.x&&(o.x=e.x),void 0!==e.y&&(o.y=e.y),void 0!==e.minW&&(o.minW=e.minW),void 0!==e.minH&&(o.minH=e.minH),void 0!==(n=e.w)&&(n=(n=n<o.minW?o.minW:n)>o.maxW?o.maxW:n,o.w=n,o.innerW=n-r),void 0!==(n=e.h)&&(n=(n=n<o.minH?o.minH:n)>o.maxH?o.maxH:n,o.h=n,o.innerH=n-i),void 0!==(n=e.innerW)&&(n=(n=n<o.minW-r?o.minW-r:n)>o.maxW-r?o.maxW-r:n,o.innerW=n,o.w=n+r),void 0!==(n=e.innerH)&&(n=(n=n<o.minH-i?o.minH-i:n)>o.maxH-i?o.maxH-i:n,o.innerH=n,o.h=n+i),void 0!==e.contentW&&(o.contentW=e.contentW),void 0!==e.contentH&&(o.contentH=e.contentH),(t=this._lastLayoutRect).x===o.x&&t.y===o.y&&t.w===o.w&&t.h===o.h||((a=Ge.repaintControls)&&a.map&&!a.map[this._id]&&(a.push(this),a.map[this._id]=!0),t.x=o.x,t.y=o.y,t.w=o.w,t.h=o.h),this):o},repaint:function(){var t,n,r,i,a,o,s,u,l,c;l=e.document.createRange?function(e){return e}:Math.round,t=this.getEl().style,i=this._layoutRect,u=this._lastRepaintRect||{},o=(a=this.borderBox).left+a.right,s=a.top+a.bottom,i.x!==u.x&&(t.left=l(i.x)+"px",u.x=i.x),i.y!==u.y&&(t.top=l(i.y)+"px",u.y=i.y),i.w!==u.w&&(c=l(i.w-o),t.width=(c>=0?c:0)+"px",u.w=i.w),i.h!==u.h&&(c=l(i.h-s),t.height=(c>=0?c:0)+"px",u.h=i.h),this._hasBody&&i.innerW!==u.innerW&&(c=l(i.innerW),(r=this.getEl("body"))&&((n=r.style).width=(c>=0?c:0)+"px"),u.innerW=i.innerW),this._hasBody&&i.innerH!==u.innerH&&(c=l(i.innerH),(r=r||this.getEl("body"))&&((n=n||r.style).height=(c>=0?c:0)+"px"),u.innerH=i.innerH),this._lastRepaintRect=u,this.fire("repaint",{},!1)},updateLayoutRect:function(){this.parent()._lastRect=null,we.css(this.getEl(),{width:"",height:""}),this._layoutRect=this._lastRepaintRect=this._lastLayoutRect=null,this.initLayoutRect()},on:function(e,t){var n=this;return nt(n).on(e,function(e){var t,r;return"string"!=typeof e?e:function(i){return t||n.parentsAndSelf().each(function(n){var i=n.settings.callbacks;if(i&&(t=i[e]))return r=n,!1}),t?t.call(r,i):(i.action=e,void this.fire("execute",i))}}(t)),n},off:function(e,t){return nt(this).off(e,t),this},fire:function(e,t,n){if((t=t||{}).control||(t.control=this),t=nt(this).fire(e,t),!1!==n&&this.parent)for(var r=this.parent();r&&!t.isPropagationStopped();)r.fire(e,t,!1),r=r.parent();return t},hasEventListeners:function(e){return nt(this).has(e)},parents:function(e){var t,n=new Ue;for(t=this.parent();t;t=t.parent())n.add(t);return e&&(n=n.filter(e)),n},parentsAndSelf:function(e){return new Ue(this).add(this.parents(e))},next:function(){var e=this.parent().items();return e[e.indexOf(this)+1]},prev:function(){var e=this.parent().items();return e[e.indexOf(this)-1]},innerHtml:function(e){return this.$el.html(e),this},getEl:function(e){var t=e?this._id+"-"+e:this._id;return this._elmCache[t]||(this._elmCache[t]=ye("#"+t)[0]),this._elmCache[t]},show:function(){return this.visible(!0)},hide:function(){return this.visible(!1)},focus:function(){try{this.getEl().focus()}catch(e){}return this},blur:function(){return this.getEl().blur(),this},aria:function(e,t){var n=this.getEl(this.ariaTarget);return void 0===t?this._aria[e]:(this._aria[e]=t,this.state.get("rendered")&&n.setAttribute("role"===e?e:"aria-"+e,t),this)},encode:function(e,t){return!1!==t&&(e=this.translate(e)),(e||"").replace(/[&<>"]/g,function(e){return"&#"+e.charCodeAt(0)+";"})},translate:function(e){return Ge.translate?Ge.translate(e):e},before:function(e){var t=this.parent();return t&&t.insert(e,t.items().indexOf(this),!0),this},after:function(e){var t=this.parent();return t&&t.insert(e,t.items().indexOf(this)),this},remove:function(){var e,t,n=this,r=n.getEl(),i=n.parent();if(n.items){var a=n.items().toArray();for(t=a.length;t--;)a[t].remove()}i&&i.items&&(e=[],i.items().each(function(t){t!==n&&e.push(t)}),i.items().set(e),i._lastRect=null),n._eventsRoot&&n._eventsRoot===n&&ye(r).off();var o=n.getRoot().controlIdLookup;return o&&delete o[n._id],r&&r.parentNode&&r.parentNode.removeChild(r),n.state.set("rendered",!1),n.state.destroy(),n.fire("remove"),n},renderBefore:function(e){return ye(e).before(this.renderHtml()),this.postRender(),this},renderTo:function(e){return ye(e||this.getContainerElm()).append(this.renderHtml()),this.postRender(),this},preRender:function(){},render:function(){},renderHtml:function(){return'<div id="'+this._id+'" class="'+this.classes+'"></div>'},postRender:function(){var e,t,n,r,i,a=this,o=a.settings;for(r in a.$el=ye(a.getEl()),a.state.set("rendered",!0),o)0===r.indexOf("on")&&a.on(r.substr(2),o[r]);if(a._eventsRoot){for(n=a.parent();!i&&n;n=n.parent())i=n._eventsRoot;if(i)for(r in i._nativeEvents)a._nativeEvents[r]=!0}rt(a),o.style&&(e=a.getEl())&&(e.setAttribute("style",o.style),e.style.cssText=o.style),a.settings.border&&(t=a.borderBox,a.$el.css({"border-top-width":t.top,"border-right-width":t.right,"border-bottom-width":t.bottom,"border-left-width":t.left}));var s=a.getRoot();for(var u in s.controlIdLookup||(s.controlIdLookup={}),s.controlIdLookup[a._id]=a,a._aria)a.aria(u,a._aria[u]);!1===a.state.get("visible")&&(a.getEl().style.display="none"),a.bindStates(),a.state.on("change:visible",function(e){var t,n=e.value;a.state.get("rendered")&&(a.getEl().style.display=!1===n?"none":"",a.getEl().getBoundingClientRect()),(t=a.parent())&&(t._lastRect=null),a.fire(n?"show":"hide"),Qe.add(a)}),a.fire("postrender",{},!1)},bindStates:function(){},scrollIntoView:function(e){var t,n,r,i,a,o,s=this.getEl(),u=s.parentNode,l=function(e,t){var n,r,i=e;for(n=r=0;i&&i!==t&&i.nodeType;)n+=i.offsetLeft||0,r+=i.offsetTop||0,i=i.offsetParent;return{x:n,y:r}}(s,u);return t=l.x,n=l.y,r=s.offsetWidth,i=s.offsetHeight,a=u.clientWidth,o=u.clientHeight,"end"===e?(t-=a-r,n-=o-i):"center"===e&&(t-=a/2-r/2,n-=o/2-i/2),u.scrollLeft=t,u.scrollTop=n,this},getRoot:function(){for(var e,t=this,n=[];t;){if(t.rootControl){e=t.rootControl;break}n.push(t),e=t,t=t.parent()}e||(e=this);for(var r=n.length;r--;)n[r].rootControl=e;return e},reflow:function(){Qe.remove(this);var e=this.parent();return e&&e._layout&&!e._layout.isNative()&&e.reflow(),this}};function nt(e){return e._eventDispatcher||(e._eventDispatcher=new Te({scope:e,toggleEvent:function(t,n){n&&Te.isNative(t)&&(e._nativeEvents||(e._nativeEvents={}),e._nativeEvents[t]=!0,e.state.get("rendered")&&rt(e))}})),e._eventDispatcher}function rt(e){var t,n,r,i,a,o;function s(t){var n=e.getParentCtrl(t.target);n&&n.fire(t.type,t)}function u(){var e=i._lastHoverCtrl;e&&(e.fire("mouseleave",{target:e.getEl()}),e.parents().each(function(e){e.fire("mouseleave",{target:e.getEl()})}),i._lastHoverCtrl=null)}function l(t){var n,r,a,o=e.getParentCtrl(t.target),s=i._lastHoverCtrl,u=0;if(o!==s){if(i._lastHoverCtrl=o,(r=o.parents().toArray().reverse()).push(o),s){for((a=s.parents().toArray().reverse()).push(s),u=0;u<a.length&&r[u]===a[u];u++);for(n=a.length-1;n>=u;n--)(s=a[n]).fire("mouseleave",{target:s.getEl()})}for(n=u;n<r.length;n++)(o=r[n]).fire("mouseenter",{target:o.getEl()})}}function c(t){t.preventDefault(),"mousewheel"===t.type?(t.deltaY=-.025*t.wheelDelta,t.wheelDeltaX&&(t.deltaX=-.025*t.wheelDeltaX)):(t.deltaX=0,t.deltaY=t.detail),t=e.fire("wheel",t)}if(a=e._nativeEvents){for((r=e.parents().toArray()).unshift(e),t=0,n=r.length;!i&&t<n;t++)i=r[t]._eventsRoot;for(i||(i=r[r.length-1]||e),e._eventsRoot=i,n=t,t=0;t<n;t++)r[t]._eventsRoot=i;var d=i._delegates;for(o in d||(d=i._delegates={}),a){if(!a)return!1;"wheel"!==o||Ze?("mouseenter"===o||"mouseleave"===o?i._hasMouseEnter||(ye(i.getEl()).on("mouseleave",u).on("mouseover",l),i._hasMouseEnter=1):d[o]||(ye(i.getEl()).on(o,s),d[o]=!0),a[o]=!1):Xe?ye(e.getEl()).on("mousewheel",c):ye(e.getEl()).on("DOMMouseScroll",c)}}}s.each("text title visible disabled active value".split(" "),function(e){tt[e]=function(t){return 0===arguments.length?this.state.get(e):(void 0!==t&&this.state.set(e,t),this)}});var it=Ge=Ce.extend(tt),at=function(e){return!!e.getAttribute("data-mce-tabstop")};function ot(t){var n,r,i=t.root;function a(e){return e&&1===e.nodeType}try{n=e.document.activeElement}catch(t){n=e.document.body}function o(e){return a(e=e||n)?e.getAttribute("role"):null}function s(e){for(var t,r=e||n;r=r.parentNode;)if(t=o(r))return t}function u(e){var t=n;if(a(t))return t.getAttribute("aria-"+e)}function l(e){var t=e.tagName.toUpperCase();return"INPUT"===t||"TEXTAREA"===t||"SELECT"===t}function c(e){var t=[];return function e(n){if(1===n.nodeType&&"none"!==n.style.display&&!n.disabled){(function(e){return!(!l(e)||e.hidden)||!!at(e)||!!/^(button|menuitem|checkbox|tab|menuitemcheckbox|option|gridcell|slider)$/.test(o(e))})(n)&&t.push(n);for(var r=0;r<n.childNodes.length;r++)e(n.childNodes[r])}}(e||i.getEl()),t}function d(e){var t,n;(n=(e=e||r).parents().toArray()).unshift(e);for(var i=0;i<n.length&&!(t=n[i]).settings.ariaRoot;i++);return t}function f(e,t){return e<0?e=t.length-1:e>=t.length&&(e=0),t[e]&&t[e].focus(),e}function m(e,t){var r=-1,i=d();t=t||c(i.getEl());for(var a=0;a<t.length;a++)t[a]===n&&(r=a);r+=e,i.lastAriaIndex=f(r,t)}function h(){"tablist"===s()?m(-1,c(n.parentNode)):r.parent().submenu?v():m(-1)}function p(){var e=o(),t=s();"tablist"===t?m(1,c(n.parentNode)):"menuitem"===e&&"menu"===t&&u("haspopup")?y():m(1)}function g(){m(-1)}function _(){var e=o(),t=s();"menuitem"===e&&"menubar"===t?y():"button"===e&&u("haspopup")?y({key:"down"}):m(1)}function v(){r.fire("cancel")}function y(e){e=e||{},r.fire("click",{target:n,aria:e})}return r=i.getParentCtrl(n),i.on("keydown",function(e){function t(e,t){l(n)||at(n)||"slider"!==o(n)&&!1!==t(e)&&e.preventDefault()}if(!e.isDefaultPrevented())switch(e.keyCode){case 37:t(e,h);break;case 39:t(e,p);break;case 38:t(e,g);break;case 40:t(e,_);break;case 27:v();break;case 14:case 13:case 32:t(e,y);break;case 9:!function(e){if("tablist"===s()){var t=c(r.getEl("body"))[0];t&&t.focus()}else m(e.shiftKey?-1:1)}(e),e.preventDefault()}}),i.on("focusin",function(e){n=e.target,r=e.control}),{focusFirst:function(e){var t=d(e),n=c(t.getEl());t.settings.ariaRemember&&"lastAriaIndex"in t?f(t.lastAriaIndex,n):f(0,n)}}}var st={},ut=it.extend({init:function(e){var t=this;t._super(e),(e=t.settings).fixed&&t.state.set("fixed",!0),t._items=new Ue,t.isRtl()&&t.classes.add("rtl"),t.bodyClasses=new Ee(function(){t.state.get("rendered")&&(t.getEl("body").className=this.toString())}),t.bodyClasses.prefix=t.classPrefix,t.classes.add("container"),t.bodyClasses.add("container-body"),e.containerCls&&t.classes.add(e.containerCls),t._layout=p.create((e.layout||"")+"layout"),t.settings.items?t.add(t.settings.items):t.add(t.render()),t._hasBody=!0},items:function(){return this._items},find:function(e){return(e=st[e]=st[e]||new je(e)).find(this)},add:function(e){return this.items().add(this.create(e)).parent(this),this},focus:function(e){var t,n,r;if(!e||!(n=this.keyboardNav||this.parents().eq(-1)[0].keyboardNav))return r=this.find("*"),this.statusbar&&r.add(this.statusbar.items()),r.each(function(e){if(e.settings.autofocus)return t=null,!1;e.canFocus&&(t=t||e)}),t&&t.focus(),this;n.focusFirst(this)},replace:function(e,t){for(var n,r=this.items(),i=r.length;i--;)if(r[i]===e){r[i]=t;break}i>=0&&((n=t.getEl())&&n.parentNode.removeChild(n),(n=e.getEl())&&n.parentNode.removeChild(n)),t.parent(this)},create:function(e){var t,n=this,r=[];return s.isArray(e)||(e=[e]),s.each(e,function(e){e&&(e instanceof it||("string"==typeof e&&(e={type:e}),t=s.extend({},n.settings.defaults,e),e.type=t.type=t.type||e.type||n.settings.defaultType||(t.defaults?t.defaults.type:null),e=p.create(t)),r.push(e))}),r},renderNew:function(){var e=this;return e.items().each(function(t,n){var r;t.parent(e),t.state.get("rendered")||((r=e.getEl("body")).hasChildNodes()&&n<=r.childNodes.length-1?ye(r.childNodes[n]).before(t.renderHtml()):ye(r).append(t.renderHtml()),t.postRender(),Qe.add(t))}),e._layout.applyClasses(e.items().filter(":visible")),e._lastRect=null,e},append:function(e){return this.add(e).renderNew()},prepend:function(e){return this.items().set(this.create(e).concat(this.items().toArray())),this.renderNew()},insert:function(e,t,n){var r,i,a;return e=this.create(e),r=this.items(),!n&&t<r.length-1&&(t+=1),t>=0&&t<r.length&&(i=r.slice(0,t).toArray(),a=r.slice(t).toArray(),r.set(i.concat(e,a))),this.renderNew()},fromJSON:function(e){for(var t in e)this.find("#"+t).value(e[t]);return this},toJSON:function(){var e={};return this.find("*").each(function(t){var n=t.name(),r=t.value();n&&void 0!==r&&(e[n]=r)}),e},renderHtml:function(){var e=this._layout,t=this.settings.role;return this.preRender(),e.preRender(this),'<div id="'+this._id+'" class="'+this.classes+'"'+(t?' role="'+this.settings.role+'"':"")+'><div id="'+this._id+'-body" class="'+this.bodyClasses+'">'+(this.settings.html||"")+e.renderHtml(this)+"</div></div>"},postRender:function(){var e;return this.items().exec("postRender"),this._super(),this._layout.postRender(this),this.state.set("rendered",!0),this.settings.style&&this.$el.css(this.settings.style),this.settings.border&&(e=this.borderBox,this.$el.css({"border-top-width":e.top,"border-right-width":e.right,"border-bottom-width":e.bottom,"border-left-width":e.left})),this.parent()||(this.keyboardNav=ot({root:this})),this},initLayoutRect:function(){var e=this._super();return this._layout.recalc(this),e},recalc:function(){var e=this._layoutRect,t=this._lastRect;if(!t||t.w!==e.w||t.h!==e.h)return this._layout.recalc(this),e=this.layoutRect(),this._lastRect={x:e.x,y:e.y,w:e.w,h:e.h},!0},reflow:function(){var e;if(Qe.remove(this),this.visible()){for(it.repaintControls=[],it.repaintControls.map={},this.recalc(),e=it.repaintControls.length;e--;)it.repaintControls[e].repaint();"flow"!==this.settings.layout&&"stack"!==this.settings.layout&&this.repaint(),it.repaintControls=[]}return this}});function lt(e){var t,n;if(e.changedTouches)for(t="screenX screenY pageX pageY clientX clientY".split(" "),n=0;n<t.length;n++)e[t[n]]=e.changedTouches[0][t[n]]}function ct(t,n){var r,i,a,o,s,u,l,c=n.document||e.document;n=n||{};var d=c.getElementById(n.handle||t);a=function(t){var a,f,m=function(e){var t,n,r,i,a,o,s,u,l=Math.max;return t=e.documentElement,n=e.body,r=l(t.scrollWidth,n.scrollWidth),i=l(t.clientWidth,n.clientWidth),a=l(t.offsetWidth,n.offsetWidth),o=l(t.scrollHeight,n.scrollHeight),s=l(t.clientHeight,n.clientHeight),u=l(t.offsetHeight,n.offsetHeight),{width:r<a?i:r,height:o<u?s:o}}(c);lt(t),t.preventDefault(),i=t.button,a=d,u=t.screenX,l=t.screenY,f=e.window.getComputedStyle?e.window.getComputedStyle(a,null).getPropertyValue("cursor"):a.runtimeStyle.cursor,r=ye("<div></div>").css({position:"absolute",top:0,left:0,width:m.width,height:m.height,zIndex:2147483647,opacity:1e-4,cursor:f}).appendTo(c.body),ye(c).on("mousemove touchmove",s).on("mouseup touchend",o),n.start(t)},s=function(e){if(lt(e),e.button!==i)return o(e);e.deltaX=e.screenX-u,e.deltaY=e.screenY-l,e.preventDefault(),n.drag(e)},o=function(e){lt(e),ye(c).off("mousemove touchmove",s).off("mouseup touchend",o),r.remove(),n.stop&&n.stop(e)},this.destroy=function(){ye(d).off()},ye(d).on("mousedown touchstart",a)}var dt,ft,mt,ht,pt={init:function(){this.on("repaint",this.renderScroll)},renderScroll:function(){var e=this,t=2;function n(){var n,r,i;function a(i,a,o,s,u,l){var c,d,f,m,h,p,g,_;if(d=e.getEl("scroll"+i)){if(g=a.toLowerCase(),_=o.toLowerCase(),ye(e.getEl("absend")).css(g,e.layoutRect()[s]-1),!u)return void ye(d).css("display","none");ye(d).css("display","block"),c=e.getEl("body"),f=e.getEl("scroll"+i+"t"),m=c["client"+o]-2*t,h=(m-=n&&r?d["client"+l]:0)/c["scroll"+o],(p={})[g]=c["offset"+a]+t,p[_]=m,ye(d).css(p),(p={})[g]=c["scroll"+a]*h,p[_]=m*h,ye(f).css(p)}}i=e.getEl("body"),n=i.scrollWidth>i.clientWidth,r=i.scrollHeight>i.clientHeight,a("h","Left","Width","contentW",n,"Height"),a("v","Top","Height","contentH",r,"Width")}e.settings.autoScroll&&(e._hasScroll||(e._hasScroll=!0,function(){function n(n,r,i,a,o){var s,u=e._id+"-scroll"+n,l=e.classPrefix;ye(e.getEl()).append('<div id="'+u+'" class="'+l+"scrollbar "+l+"scrollbar-"+n+'"><div id="'+u+'t" class="'+l+'scrollbar-thumb"></div></div>'),e.draghelper=new ct(u+"t",{start:function(){s=e.getEl("body")["scroll"+r],ye("#"+u).addClass(l+"active")},drag:function(u){var l,c,d,f,m=e.layoutRect();c=m.contentW>m.innerW,d=m.contentH>m.innerH,f=e.getEl("body")["client"+i]-2*t,l=(f-=c&&d?e.getEl("scroll"+n)["client"+o]:0)/e.getEl("body")["scroll"+i],e.getEl("body")["scroll"+r]=s+u["delta"+a]/l},stop:function(){ye("#"+u).removeClass(l+"active")}})}e.classes.add("scroll"),n("v","Top","Height","Y","Width"),n("h","Left","Width","X","Height")}(),e.on("wheel",function(t){var r=e.getEl("body");r.scrollLeft+=10*(t.deltaX||0),r.scrollTop+=10*t.deltaY,n()}),ye(e.getEl("body")).on("scroll",n)),n())}},gt=ut.extend({Defaults:{layout:"fit",containerCls:"panel"},Mixins:[pt],renderHtml:function(){var e=this._layout,t=this.settings.html;return this.preRender(),e.preRender(this),void 0===t?t='<div id="'+this._id+'-body" class="'+this.bodyClasses+'">'+e.renderHtml(this)+"</div>":("function"==typeof t&&(t=t.call(this)),this._hasBody=!1),'<div id="'+this._id+'" class="'+this.classes+'" hidefocus="1" tabindex="-1" role="group">'+(this._preBodyHtml||"")+t+"</div>"}}),_t={resizeToContent:function(){this._layoutRect.autoResize=!0,this._lastRect=null,this.reflow()},resizeTo:function(e,t){if(e<=1||t<=1){var n=we.getWindowSize();e=e<=1?e*n.w:e,t=t<=1?t*n.h:t}return this._layoutRect.autoResize=!1,this.layoutRect({minW:e,minH:t,w:e,h:t}).reflow()},resizeBy:function(e,t){var n=this.layoutRect();return this.resizeTo(n.w+e,n.h+t)}},vt=[],yt=[];function bt(e,t){for(;e;){if(e===t)return!0;e=e.parent()}}function wt(){dt||(dt=function(e){2!==e.button&&function(e){for(var t=vt.length;t--;){var n=vt[t],r=n.getParentCtrl(e.target);if(n.settings.autohide){if(r&&(bt(r,n)||n.parent()===r))continue;(e=n.fire("autohide",{target:e.target})).isDefaultPrevented()||n.hide()}}}(e)},ye(e.document).on("click touchstart",dt))}function Mt(e){var t=we.getViewPort().y;function n(t,n){for(var r,i=0;i<vt.length;i++)if(vt[i]!==e)for(r=vt[i].parent();r&&(r=r.parent());)r===e&&vt[i].fixed(t).moveBy(0,n).repaint()}e.settings.autofix&&(e.state.get("fixed")?e._autoFixY>t&&(e.fixed(!1).layoutRect({y:e._autoFixY}).repaint(),n(!1,e._autoFixY-t)):(e._autoFixY=e.layoutRect().y,e._autoFixY<t&&(e.fixed(!0).layoutRect({y:0}).repaint(),n(!0,t-e._autoFixY))))}function kt(e,t){var n,r,i=Lt.zIndex||65535;if(e)yt.push(t);else for(n=yt.length;n--;)yt[n]===t&&yt.splice(n,1);if(yt.length)for(n=0;n<yt.length;n++)yt[n].modal&&(i++,r=yt[n]),yt[n].getEl().style.zIndex=i,yt[n].zIndex=i,i++;var a=ye("#"+t.classPrefix+"modal-block",t.getContainerElm())[0];r?ye(a).css("z-index",r.zIndex-1):a&&(a.parentNode.removeChild(a),ht=!1),Lt.currentZIndex=i}var Lt=gt.extend({Mixins:[Ae,_t],init:function(t){var n=this;n._super(t),n._eventsRoot=n,n.classes.add("floatpanel"),t.autohide&&(wt(),function(){if(!mt){var t=e.document.documentElement,n=t.clientWidth,r=t.clientHeight;mt=function(){e.document.all&&n===t.clientWidth&&r===t.clientHeight||(n=t.clientWidth,r=t.clientHeight,Lt.hideAll())},ye(e.window).on("resize",mt)}}(),vt.push(n)),t.autofix&&(ft||(ft=function(){var e;for(e=vt.length;e--;)Mt(vt[e])},ye(e.window).on("scroll",ft)),n.on("move",function(){Mt(this)})),n.on("postrender show",function(e){if(e.control===n){var t,r=n.classPrefix;n.modal&&!ht&&((t=ye("#"+r+"modal-block",n.getContainerElm()))[0]||(t=ye('<div id="'+r+'modal-block" class="'+r+"reset "+r+'fade"></div>').appendTo(n.getContainerElm())),k.setTimeout(function(){t.addClass(r+"in"),ye(n.getEl()).addClass(r+"in")}),ht=!0),kt(!0,n)}}),n.on("show",function(){n.parents().each(function(e){if(e.state.get("fixed"))return n.fixed(!0),!1})}),t.popover&&(n._preBodyHtml='<div class="'+n.classPrefix+'arrow"></div>',n.classes.add("popover").add("bottom").add(n.isRtl()?"end":"start")),n.aria("label",t.ariaLabel),n.aria("labelledby",n._id),n.aria("describedby",n.describedBy||n._id+"-none")},fixed:function(e){if(this.state.get("fixed")!==e){if(this.state.get("rendered")){var t=we.getViewPort();e?this.layoutRect().y-=t.y:this.layoutRect().y+=t.y}this.classes.toggle("fixed",e),this.state.set("fixed",e)}return this},show:function(){var e,t=this._super();for(e=vt.length;e--&&vt[e]!==this;);return-1===e&&vt.push(this),t},hide:function(){return Dt(this),kt(!1,this),this._super()},hideAll:function(){Lt.hideAll()},close:function(){return this.fire("close").isDefaultPrevented()||(this.remove(),kt(!1,this)),this},remove:function(){Dt(this),this._super()},postRender:function(){return this.settings.bodyRole&&this.getEl("body").setAttribute("role",this.settings.bodyRole),this._super()}});function Dt(e){var t;for(t=vt.length;t--;)vt[t]===e&&vt.splice(t,1);for(t=yt.length;t--;)yt[t]===e&&yt.splice(t,1)}Lt.hideAll=function(){for(var e=vt.length;e--;){var t=vt[e];t&&t.settings.autohide&&(t.hide(),vt.splice(e,1))}};var xt=function(e,t,n){var r,i,a=h.DOM,o=function(e){return e.getParam("fixed_toolbar_container")}(e);o&&(i=a.select(o)[0]);var s=function(){if(r&&r.moveRel&&r.visible()&&!r._fixed){var t=e.selection.getScrollContainer(),n=e.getBody(),i=0,o=0;if(t){var s=a.getPos(n),u=a.getPos(t);i=Math.max(0,u.x-s.x),o=Math.max(0,u.y-s.y)}r.fixed(!1).moveRel(n,e.rtl?["tr-br","br-tr"]:["tl-bl","bl-tl","tr-br"]).moveBy(i,o)}},l=function(){r&&(r.show(),s(),a.addClass(e.getBody(),"mce-edit-focus"))},d=function(){r&&(r.hide(),Lt.hideAll(),a.removeClass(e.getBody(),"mce-edit-focus"))},m=function(){r?r.visible()||l():(r=t.panel=p.create({type:i?"panel":"floatpanel",role:"application",classes:"tinymce tinymce-inline",layout:"flex",direction:"column",align:"stretch",autohide:!1,autofix:!0,fixed:function(e,t){return!(!e||t.settings.ui_container)}(i,e),border:1,items:[!1===u(e)?null:{type:"menubar",border:"0 0 1 0",items:ie(e)},O(e,c(e))]}),E.setUiContainer(e,r),y(e),i?r.renderTo(i).reflow():r.renderTo().reflow(),w(e,r),l(),B(e),e.on("nodeChange",s),e.on("ResizeWindow",s),e.on("activate",l),e.on("deactivate",d),e.nodeChanged())};return e.settings.content_editable=!0,e.on("focus",function(){!1===f(e)&&n.skinUiCss?a.styleSheetLoader.load(n.skinUiCss,m,m):m()}),e.on("blur hide",d),e.on("remove",function(){r&&(r.remove(),r=null)}),!1===f(e)&&n.skinUiCss?a.styleSheetLoader.load(n.skinUiCss,pe(e)):pe(e)(),{}};function At(e,t){var n,r,i=this,a=it.classPrefix;i.show=function(o,s){function u(){n&&(ye(e).append('<div class="'+a+"throbber"+(t?" "+a+"throbber-inline":"")+'"></div>'),s&&s())}return i.hide(),n=!0,o?r=k.setTimeout(u,o):u(),i},i.hide=function(){var t=e.lastChild;return k.clearTimeout(r),t&&-1!==t.className.indexOf("throbber")&&t.parentNode.removeChild(t),n=!1,i}}var Ct=function(e,t){var n;e.on("ProgressState",function(e){n=n||new At(t.panel.getEl("body")),e.state?n.show(e.time):n.hide()})},Tt=function(e,t,n){var r=function(e){var t=e.settings,n=t.skin,r=t.skin_url;if(!1!==n){var i=n||"lightgray";r=r?e.documentBaseURI.toAbsolute(r):o.baseURL+"/skins/"+i}return r}(e);return r&&(n.skinUiCss=r+"/skin.min.css",e.contentCSS.push(r+"/content"+(e.inline?".inline":"")+".min.css")),Ct(e,t),function(e){return e.getParam("inline",!1,"boolean")}(e)?xt(e,t,n):ve(e,t,n)},St=it.extend({Mixins:[Ae],Defaults:{classes:"widget tooltip tooltip-n"},renderHtml:function(){var e=this.classPrefix;return'<div id="'+this._id+'" class="'+this.classes+'" role="presentation"><div class="'+e+'tooltip-arrow"></div><div class="'+e+'tooltip-inner">'+this.encode(this.state.get("text"))+"</div></div>"},bindStates:function(){var e=this;return e.state.on("change:text",function(t){e.getEl().lastChild.innerHTML=e.encode(t.value)}),e._super()},repaint:function(){var e,t;e=this.getEl().style,t=this._layoutRect,e.left=t.x+"px",e.top=t.y+"px",e.zIndex=131070}}),Yt=it.extend({init:function(e){var t=this;t._super(e),e=t.settings,t.canFocus=!0,e.tooltip&&!1!==Yt.tooltips&&(t.on("mouseenter",function(n){var r=t.tooltip().moveTo(-65535);if(n.control===t){var i=r.text(e.tooltip).show().testMoveRel(t.getEl(),["bc-tc","bc-tl","bc-tr"]);r.classes.toggle("tooltip-n","bc-tc"===i),r.classes.toggle("tooltip-nw","bc-tl"===i),r.classes.toggle("tooltip-ne","bc-tr"===i),r.moveRel(t.getEl(),i)}else r.hide()}),t.on("mouseleave mousedown click",function(){t.tooltip().remove(),t._tooltip=null})),t.aria("label",e.ariaLabel||e.tooltip)},tooltip:function(){return this._tooltip||(this._tooltip=new St({type:"tooltip"}),E.inheritUiContainer(this,this._tooltip),this._tooltip.renderTo()),this._tooltip},postRender:function(){var e=this.settings;this._super(),this.parent()||!e.width&&!e.height||(this.initLayoutRect(),this.repaint()),e.autofocus&&this.focus()},bindStates:function(){var e=this;function t(t){e.aria("disabled",t),e.classes.toggle("disabled",t)}function n(t){e.aria("pressed",t),e.classes.toggle("active",t)}return e.state.on("change:disabled",function(e){t(e.value)}),e.state.on("change:active",function(e){n(e.value)}),e.state.get("disabled")&&t(!0),e.state.get("active")&&n(!0),e._super()},remove:function(){this._super(),this._tooltip&&(this._tooltip.remove(),this._tooltip=null)}}),Nt=Yt.extend({Defaults:{value:0},init:function(e){this._super(e),this.classes.add("progress"),this.settings.filter||(this.settings.filter=function(e){return Math.round(e)})},renderHtml:function(){var e=this._id,t=this.classPrefix;return'<div id="'+e+'" class="'+this.classes+'"><div class="'+t+'bar-container"><div class="'+t+'bar"></div></div><div class="'+t+'text">0%</div></div>'},postRender:function(){return this._super(),this.value(this.settings.value),this},bindStates:function(){var e=this;function t(t){t=e.settings.filter(t),e.getEl().lastChild.innerHTML=t+"%",e.getEl().firstChild.firstChild.style.width=t+"%"}return e.state.on("change:value",function(e){t(e.value)}),t(e.state.get("value")),e._super()}}),Et=function(e,t){e.getEl().lastChild.textContent=t+(e.progressBar?" "+e.progressBar.value()+"%":"")},Pt=it.extend({Mixins:[Ae],Defaults:{classes:"widget notification"},init:function(e){var t=this;t._super(e),t.maxWidth=e.maxWidth,e.text&&t.text(e.text),e.icon&&(t.icon=e.icon),e.color&&(t.color=e.color),e.type&&t.classes.add("notification-"+e.type),e.timeout&&(e.timeout<0||e.timeout>0)&&!e.closeButton?t.closeButton=!1:(t.classes.add("has-close"),t.closeButton=!0),e.progressBar&&(t.progressBar=new Nt),t.on("click",function(e){-1!==e.target.className.indexOf(t.classPrefix+"close")&&t.close()})},renderHtml:function(){var e,t=this.classPrefix,n="",r="",i="";return this.icon&&(n='<i class="'+t+"ico "+t+"i-"+this.icon+'"></i>'),e=' style="max-width: '+this.maxWidth+"px;"+(this.color?"background-color: "+this.color+';"':'"'),this.closeButton&&(r='<button type="button" class="'+t+'close" aria-hidden="true">×</button>'),this.progressBar&&(i=this.progressBar.renderHtml()),'<div id="'+this._id+'" class="'+this.classes+'"'+e+' role="presentation">'+n+'<div class="'+t+'notification-inner">'+this.state.get("text")+"</div>"+i+r+'<div style="clip: rect(1px, 1px, 1px, 1px);height: 1px;overflow: hidden;position: absolute;width: 1px;" aria-live="assertive" aria-relevant="additions" aria-atomic="true"></div></div>'},postRender:function(){var e=this;return k.setTimeout(function(){e.$el.addClass(e.classPrefix+"in"),Et(e,e.state.get("text"))},100),e._super()},bindStates:function(){var e=this;return e.state.on("change:text",function(t){e.getEl().firstChild.innerHTML=t.value,Et(e,t.value)}),e.progressBar&&(e.progressBar.bindStates(),e.progressBar.state.on("change:value",function(t){Et(e,e.state.get("text"))})),e._super()},close:function(){return this.fire("close").isDefaultPrevented()||this.remove(),this},repaint:function(){var e,t;e=this.getEl().style,t=this._layoutRect,e.left=t.x+"px",e.top=t.y+"px",e.zIndex=65534}});function It(e){var t=function(e){return e.inline?e.getElement():e.getContentAreaContainer()};return{open:function(n,r){var i,a=s.extend(n,{maxWidth:(i=t(e),we.getSize(i).width)}),o=new Pt(a);return o.args=a,a.timeout>0&&(o.timer=setTimeout(function(){o.close(),r()},a.timeout)),o.on("close",function(){r()}),o.renderTo(),o},close:function(e){e.close()},reposition:function(n){!function(e){Q(e,function(e){e.moveTo(0,0)})}(n),function(n){if(n.length>0){var r=n.slice(0,1)[0],i=t(e);r.moveRel(i,"tc-tc"),Q(n,function(e,t){t>0&&e.moveRel(n[t-1].getEl(),"bc-tc")})}}(n)},getArgs:function(e){return e.args}}}var Ot=[],Ft="";function Rt(t){var n,r=ye("meta[name=viewport]")[0];!1!==ce.overrideViewPort&&(r||((r=e.document.createElement("meta")).setAttribute("name","viewport"),e.document.getElementsByTagName("head")[0].appendChild(r)),(n=r.getAttribute("content"))&&void 0!==Ft&&(Ft=n),r.setAttribute("content",t?"width=device-width,initial-scale=1.0,user-scalable=0,minimum-scale=1.0,maximum-scale=1.0":Ft))}function Ht(t,n){(function(){for(var e=0;e<Ot.length;e++)if(Ot[e]._fullscreen)return!0;return!1})()&&!1===n&&ye([e.document.documentElement,e.document.body]).removeClass(t+"fullscreen")}var jt=Lt.extend({modal:!0,Defaults:{border:1,layout:"flex",containerCls:"panel",role:"dialog",callbacks:{submit:function(){this.fire("submit",{data:this.toJSON()})},close:function(){this.close()}}},init:function(e){var t=this;t._super(e),t.isRtl()&&t.classes.add("rtl"),t.classes.add("window"),t.bodyClasses.add("window-body"),t.state.set("fixed",!0),e.buttons&&(t.statusbar=new gt({layout:"flex",border:"1 0 0 0",spacing:3,padding:10,align:"center",pack:t.isRtl()?"start":"end",defaults:{type:"button"},items:e.buttons}),t.statusbar.classes.add("foot"),t.statusbar.parent(t)),t.on("click",function(e){var n=t.classPrefix+"close";(we.hasClass(e.target,n)||we.hasClass(e.target.parentNode,n))&&t.close()}),t.on("cancel",function(){t.close()}),t.on("move",function(e){e.control===t&&Lt.hideAll()}),t.aria("describedby",t.describedBy||t._id+"-none"),t.aria("label",e.title),t._fullscreen=!1},recalc:function(){var e,t,n,r,i=this.statusbar;this._fullscreen&&(this.layoutRect(we.getWindowSize()),this.layoutRect().contentH=this.layoutRect().innerH),this._super(),e=this.layoutRect(),this.settings.title&&!this._fullscreen&&(t=e.headerW)>e.w&&(n=e.x-Math.max(0,t/2),this.layoutRect({w:t,x:n}),r=!0),i&&(i.layoutRect({w:this.layoutRect().innerW}).recalc(),(t=i.layoutRect().minW+e.deltaW)>e.w&&(n=e.x-Math.max(0,t-e.w),this.layoutRect({w:t,x:n}),r=!0)),r&&this.recalc()},initLayoutRect:function(){var e,t=this._super(),n=0;if(this.settings.title&&!this._fullscreen){e=this.getEl("head");var r=we.getSize(e);t.headerW=r.width,t.headerH=r.height,n+=t.headerH}this.statusbar&&(n+=this.statusbar.layoutRect().h),t.deltaH+=n,t.minH+=n,t.h+=n;var i=we.getWindowSize();return t.x=this.settings.x||Math.max(0,i.w/2-t.w/2),t.y=this.settings.y||Math.max(0,i.h/2-t.h/2),t},renderHtml:function(){var e=this._layout,t=this._id,n=this.classPrefix,r=this.settings,i="",a="",o=r.html;return this.preRender(),e.preRender(this),r.title&&(i='<div id="'+t+'-head" class="'+n+'window-head"><div id="'+t+'-title" class="'+n+'title">'+this.encode(r.title)+'</div><div id="'+t+'-dragh" class="'+n+'dragh"></div><button type="button" class="'+n+'close" aria-hidden="true"><i class="mce-ico mce-i-remove"></i></button></div>'),r.url&&(o='<iframe src="'+r.url+'" tabindex="-1"></iframe>'),void 0===o&&(o=e.renderHtml(this)),this.statusbar&&(a=this.statusbar.renderHtml()),'<div id="'+t+'" class="'+this.classes+'" hidefocus="1"><div class="'+this.classPrefix+'reset" role="application">'+i+'<div id="'+t+'-body" class="'+this.bodyClasses+'">'+o+"</div>"+a+"</div></div>"},fullscreen:function(t){var n,r,i=this,a=e.document.documentElement,o=i.classPrefix;if(t!==i._fullscreen)if(ye(e.window).on("resize",function(){var e;if(i._fullscreen)if(n)i._timer||(i._timer=k.setTimeout(function(){var e=we.getWindowSize();i.moveTo(0,0).resizeTo(e.w,e.h),i._timer=0},50));else{e=(new Date).getTime();var t=we.getWindowSize();i.moveTo(0,0).resizeTo(t.w,t.h),(new Date).getTime()-e>50&&(n=!0)}}),r=i.layoutRect(),i._fullscreen=t,t){i._initial={x:r.x,y:r.y,w:r.w,h:r.h},i.borderBox=Se("0"),i.getEl("head").style.display="none",r.deltaH-=r.headerH+2,ye([a,e.document.body]).addClass(o+"fullscreen"),i.classes.add("fullscreen");var s=we.getWindowSize();i.moveTo(0,0).resizeTo(s.w,s.h)}else i.borderBox=Se(i.settings.border),i.getEl("head").style.display="",r.deltaH+=r.headerH,ye([a,e.document.body]).removeClass(o+"fullscreen"),i.classes.remove("fullscreen"),i.moveTo(i._initial.x,i._initial.y).resizeTo(i._initial.w,i._initial.h);return i.reflow()},postRender:function(){var e,t=this;setTimeout(function(){t.classes.add("in"),t.fire("open")},0),t._super(),t.statusbar&&t.statusbar.postRender(),t.focus(),this.dragHelper=new ct(t._id+"-dragh",{start:function(){e={x:t.layoutRect().x,y:t.layoutRect().y}},drag:function(n){t.moveTo(e.x+n.deltaX,e.y+n.deltaY)}}),t.on("submit",function(e){e.isDefaultPrevented()||t.close()}),Ot.push(t),Rt(!0)},submit:function(){return this.fire("submit",{data:this.toJSON()})},remove:function(){var e;for(this.dragHelper.destroy(),this._super(),this.statusbar&&this.statusbar.remove(),Ht(this.classPrefix,!1),e=Ot.length;e--;)Ot[e]===this&&Ot.splice(e,1);Rt(Ot.length>0)},getContentWindow:function(){var e=this.getEl().getElementsByTagName("iframe")[0];return e?e.contentWindow:null}});!function(){if(!ce.desktop){var t={w:e.window.innerWidth,h:e.window.innerHeight};k.setInterval(function(){var n=e.window.innerWidth,r=e.window.innerHeight;t.w===n&&t.h===r||(t={w:n,h:r},ye(e.window).trigger("resize"))},100)}ye(e.window).on("resize",function(){var e,t,n=we.getWindowSize();for(e=0;e<Ot.length;e++)t=Ot[e].layoutRect(),Ot[e].moveTo(Ot[e].settings.x||Math.max(0,n.w/2-t.w/2),Ot[e].settings.y||Math.max(0,n.h/2-t.h/2))})}();var Bt,Wt,Ut,zt=jt.extend({init:function(e){e={border:1,padding:20,layout:"flex",pack:"center",align:"center",containerCls:"panel",autoScroll:!0,buttons:{type:"button",text:"Ok",action:"ok"},items:{type:"label",multiline:!0,maxWidth:500,maxHeight:200}},this._super(e)},Statics:{OK:1,OK_CANCEL:2,YES_NO:3,YES_NO_CANCEL:4,msgBox:function(t){var n,r=t.callback||function(){};function i(e,t,n){return{type:"button",text:e,subtype:n?"primary":"",onClick:function(e){e.control.parents()[1].close(),r(t)}}}switch(t.buttons){case zt.OK_CANCEL:n=[i("Ok",!0,!0),i("Cancel",!1)];break;case zt.YES_NO:case zt.YES_NO_CANCEL:n=[i("Yes",1,!0),i("No",0)],t.buttons===zt.YES_NO_CANCEL&&n.push(i("Cancel",-1));break;default:n=[i("Ok",!0,!0)]}return new jt({padding:20,x:t.x,y:t.y,minWidth:300,minHeight:100,layout:"flex",pack:"center",align:"center",buttons:n,title:t.title,role:"alertdialog",items:{type:"label",multiline:!0,maxWidth:500,maxHeight:200,text:t.text},onPostRender:function(){this.aria("describedby",this.items()[0]._id)},onClose:t.onClose,onCancel:function(){r(!1)}}).renderTo(e.document.body).reflow()},alert:function(e,t){return"string"==typeof e&&(e={text:e}),e.callback=t,zt.msgBox(e)},confirm:function(e,t){return"string"==typeof e&&(e={text:e}),e.callback=t,e.buttons=zt.OK_CANCEL,zt.msgBox(e)}}}),Jt=function(t){return{renderUI:function(e){return Tt(t,this,e)},resizeTo:function(e,n){return ue(t,e,n)},resizeBy:function(e,n){return le(t,e,n)},getNotificationManagerImpl:function(){return It(t)},getWindowManagerImpl:function(){return{open:function(t,n,r){var i;return t.title=t.title||" ",t.url=t.url||t.file,t.url&&(t.width=parseInt(t.width||320,10),t.height=parseInt(t.height||240,10)),t.body&&(t.items={defaults:t.defaults,type:t.bodyType||"form",items:t.body,data:t.data,callbacks:t.commands}),t.url||t.buttons||(t.buttons=[{text:"Ok",subtype:"primary",onclick:function(){i.find("form")[0].submit()}},{text:"Cancel",onclick:function(){i.close()}}]),(i=new jt(t)).on("close",function(){r(i)}),t.data&&i.on("postRender",function(){this.find("*").each(function(e){var n=e.name();n in t.data&&e.value(t.data[n])})}),i.features=t||{},i.params=n||{},i=i.renderTo(e.document.body).reflow()},alert:function(e,t,n){var r;return(r=zt.alert(e,function(){t()})).on("close",function(){n(r)}),r},confirm:function(e,t,n){var r;return(r=zt.confirm(e,function(e){t(e)})).on("close",function(){n(r)}),r},close:function(e){e.close()},getParams:function(e){return e.params},setParams:function(e,t){e.params=t}}}}},qt=Ce.extend({Defaults:{firstControlClass:"first",lastControlClass:"last"},init:function(e){this.settings=s.extend({},this.Defaults,e)},preRender:function(e){e.bodyClasses.add(this.settings.containerClass)},applyClasses:function(e){var t,n,r,i,a=this.settings;t=a.firstControlClass,n=a.lastControlClass,e.each(function(e){e.classes.remove(t).remove(n).add(a.controlClass),e.visible()&&(r||(r=e),i=e)}),r&&r.classes.add(t),i&&i.classes.add(n)},renderHtml:function(e){var t="";return this.applyClasses(e.items()),e.items().each(function(e){t+=e.renderHtml()}),t},recalc:function(){},postRender:function(){},isNative:function(){return!1}}),Vt=qt.extend({Defaults:{containerClass:"abs-layout",controlClass:"abs-layout-item"},recalc:function(e){e.items().filter(":visible").each(function(e){var t=e.settings;e.layoutRect({x:t.x,y:t.y,w:t.w,h:t.h}),e.recalc&&e.recalc()})},renderHtml:function(e){return'<div id="'+e._id+'-absend" class="'+e.classPrefix+'abs-end"></div>'+this._super(e)}}),Gt=Yt.extend({Defaults:{classes:"widget btn",role:"button"},init:function(e){var t,n=this;n._super(e),e=n.settings,t=n.settings.size,n.on("click mousedown",function(e){e.preventDefault()}),n.on("touchstart",function(e){n.fire("click",e),e.preventDefault()}),e.subtype&&n.classes.add(e.subtype),t&&n.classes.add("btn-"+t),e.icon&&n.icon(e.icon)},icon:function(e){return arguments.length?(this.state.set("icon",e),this):this.state.get("icon")},repaint:function(){var e,t=this.getEl().firstChild;t&&((e=t.style).width=e.height="100%"),this._super()},renderHtml:function(){var t,n,r=this._id,i=this.classPrefix,a=this.state.get("icon"),o=this.state.get("text"),s="",u=this.settings;return(t=u.image)?(a="none","string"!=typeof t&&(t=e.window.getSelection?t[0]:t[1]),t=" style=\"background-image: url('"+t+"')\""):t="",o&&(this.classes.add("btn-has-text"),s='<span class="'+i+'txt">'+this.encode(o)+"</span>"),a=a?i+"ico "+i+"i-"+a:"",n="boolean"==typeof u.active?' aria-pressed="'+u.active+'"':"",'<div id="'+r+'" class="'+this.classes+'" tabindex="-1"'+n+'><button id="'+r+'-button" role="presentation" type="button" tabindex="-1">'+(a?'<i class="'+a+'"'+t+"></i>":"")+s+"</button></div>"},bindStates:function(){var t=this,n=t.$,r=t.classPrefix+"txt";function i(e){var i=n("span."+r,t.getEl());e?(i[0]||(n("button:first",t.getEl()).append('<span class="'+r+'"></span>'),i=n("span."+r,t.getEl())),i.html(t.encode(e))):i.remove(),t.classes.toggle("btn-has-text",!!e)}return t.state.on("change:text",function(e){i(e.value)}),t.state.on("change:icon",function(n){var r=n.value,a=t.classPrefix;t.settings.icon=r,r=r?a+"ico "+a+"i-"+t.settings.icon:"";var o=t.getEl().firstChild,s=o.getElementsByTagName("i")[0];r?(s&&s===o.firstChild||(s=e.document.createElement("i"),o.insertBefore(s,o.firstChild)),s.className=r):s&&o.removeChild(s),i(t.state.get("text"))}),t._super()}}),$t=Gt.extend({init:function(e){e=s.extend({text:"Browse...",multiple:!1,accept:null},e),this._super(e),this.classes.add("browsebutton"),e.multiple&&this.classes.add("multiple")},postRender:function(){var e=this,t=we.create("input",{type:"file",id:e._id+"-browse",accept:e.settings.accept});e._super(),ye(t).on("change",function(t){var n=t.target.files;e.value=function(){return n.length?e.settings.multiple?n:n[0]:null},t.preventDefault(),n.length&&e.fire("change",t)}),ye(t).on("click",function(e){e.stopPropagation()}),ye(e.getEl("button")).on("click touchstart",function(e){e.stopPropagation(),t.click(),e.preventDefault()}),e.getEl().appendChild(t)},remove:function(){ye(this.getEl("button")).off(),ye(this.getEl("input")).off(),this._super()}}),Kt=ut.extend({Defaults:{defaultType:"button",role:"group"},renderHtml:function(){var e=this._layout;return this.classes.add("btn-group"),this.preRender(),e.preRender(this),'<div id="'+this._id+'" class="'+this.classes+'"><div id="'+this._id+'-body">'+(this.settings.html||"")+e.renderHtml(this)+"</div></div>"}}),Qt=Yt.extend({Defaults:{classes:"checkbox",role:"checkbox",checked:!1},init:function(e){var t=this;t._super(e),t.on("click mousedown",function(e){e.preventDefault()}),t.on("click",function(e){e.preventDefault(),t.disabled()||t.checked(!t.checked())}),t.checked(t.settings.checked)},checked:function(e){return arguments.length?(this.state.set("checked",e),this):this.state.get("checked")},value:function(e){return arguments.length?this.checked(e):this.checked()},renderHtml:function(){var e=this._id,t=this.classPrefix;return'<div id="'+e+'" class="'+this.classes+'" unselectable="on" aria-labelledby="'+e+'-al" tabindex="-1"><i class="'+t+"ico "+t+'i-checkbox"></i><span id="'+e+'-al" class="'+t+'label">'+this.encode(this.state.get("text"))+"</span></div>"},bindStates:function(){var t=this;function n(e){t.classes.toggle("checked",e),t.aria("checked",e)}return t.state.on("change:text",function(e){t.getEl("al").firstChild.data=t.translate(e.value)}),t.state.on("change:checked change:value",function(e){t.fire("change"),n(e.value)}),t.state.on("change:icon",function(n){var r=n.value,i=t.classPrefix;if(void 0===r)return t.settings.icon;t.settings.icon=r,r=r?i+"ico "+i+"i-"+t.settings.icon:"";var a=t.getEl().firstChild,o=a.getElementsByTagName("i")[0];r?(o&&o===a.firstChild||(o=e.document.createElement("i"),a.insertBefore(o,a.firstChild)),o.className=r):o&&a.removeChild(o)}),t.state.get("checked")&&n(!0),t._super()}}),Xt=tinymce.util.Tools.resolve("tinymce.util.VK"),Zt=Yt.extend({init:function(e){var t=this;t._super(e),e=t.settings,t.classes.add("combobox"),t.subinput=!0,t.ariaTarget="inp",e.menu=e.menu||e.values,e.menu&&(e.icon="caret"),t.on("click",function(n){var r=n.target,i=t.getEl();if(ye.contains(i,r)||r===i)for(;r&&r!==i;)r.id&&-1!==r.id.indexOf("-open")&&(t.fire("action"),e.menu&&(t.showMenu(),n.aria&&t.menu.items()[0].focus())),r=r.parentNode}),t.on("keydown",function(e){var n;13===e.keyCode&&"INPUT"===e.target.nodeName&&(e.preventDefault(),t.parents().reverse().each(function(e){if(e.toJSON)return n=e,!1}),t.fire("submit",{data:n.toJSON()}))}),t.on("keyup",function(e){if("INPUT"===e.target.nodeName){var n=t.state.get("value"),r=e.target.value;r!==n&&(t.state.set("value",r),t.fire("autocomplete",e))}}),t.on("mouseover",function(e){var n=t.tooltip().moveTo(-65535);if(t.statusLevel()&&-1!==e.target.className.indexOf(t.classPrefix+"status")){var r=t.statusMessage()||"Ok",i=n.text(r).show().testMoveRel(e.target,["bc-tc","bc-tl","bc-tr"]);n.classes.toggle("tooltip-n","bc-tc"===i),n.classes.toggle("tooltip-nw","bc-tl"===i),n.classes.toggle("tooltip-ne","bc-tr"===i),n.moveRel(e.target,i)}})},statusLevel:function(e){return arguments.length>0&&this.state.set("statusLevel",e),this.state.get("statusLevel")},statusMessage:function(e){return arguments.length>0&&this.state.set("statusMessage",e),this.state.get("statusMessage")},showMenu:function(){var e,t=this,n=t.settings;t.menu||((e=n.menu||[]).length?e={type:"menu",items:e}:e.type=e.type||"menu",t.menu=p.create(e).parent(t).renderTo(t.getContainerElm()),t.fire("createmenu"),t.menu.reflow(),t.menu.on("cancel",function(e){e.control===t.menu&&t.focus()}),t.menu.on("show hide",function(e){e.control.items().each(function(e){e.active(e.value()===t.value())})}).fire("show"),t.menu.on("select",function(e){t.value(e.control.value())}),t.on("focusin",function(e){"INPUT"===e.target.tagName.toUpperCase()&&t.menu.hide()}),t.aria("expanded",!0)),t.menu.show(),t.menu.layoutRect({w:t.layoutRect().w}),t.menu.moveRel(t.getEl(),t.isRtl()?["br-tr","tr-br"]:["bl-tl","tl-bl"])},focus:function(){this.getEl("inp").focus()},repaint:function(){var t,n,r=this.getEl(),i=this.getEl("open"),a=this.layoutRect(),o=0,s=r.firstChild;this.statusLevel()&&"none"!==this.statusLevel()&&(o=parseInt(we.getRuntimeStyle(s,"padding-right"),10)-parseInt(we.getRuntimeStyle(s,"padding-left"),10)),t=i?a.w-we.getSize(i).width-10:a.w-10;var u=e.document;return u.all&&(!u.documentMode||u.documentMode<=8)&&(n=this.layoutRect().h-2+"px"),ye(s).css({width:t-o,lineHeight:n}),this._super(),this},postRender:function(){var e=this;return ye(this.getEl("inp")).on("change",function(t){e.state.set("value",t.target.value),e.fire("change",t)}),e._super()},renderHtml:function(){var e,t,n,r=this._id,i=this.settings,a=this.classPrefix,o=this.state.get("value")||"",s="",u="";return"spellcheck"in i&&(u+=' spellcheck="'+i.spellcheck+'"'),i.maxLength&&(u+=' maxlength="'+i.maxLength+'"'),i.size&&(u+=' size="'+i.size+'"'),i.subtype&&(u+=' type="'+i.subtype+'"'),n='<i id="'+r+'-status" class="mce-status mce-ico" style="display: none"></i>',this.disabled()&&(u+=' disabled="disabled"'),(e=i.icon)&&"caret"!==e&&(e=a+"ico "+a+"i-"+i.icon),t=this.state.get("text"),(e||t)&&(s='<div id="'+r+'-open" class="'+a+"btn "+a+'open" tabIndex="-1" role="button"><button id="'+r+'-action" type="button" hidefocus="1" tabindex="-1">'+("caret"!==e?'<i class="'+e+'"></i>':'<i class="'+a+'caret"></i>')+(t?(e?" ":"")+t:"")+"</button></div>",this.classes.add("has-open")),'<div id="'+r+'" class="'+this.classes+'"><input id="'+r+'-inp" class="'+a+'textbox" value="'+this.encode(o,!1)+'" hidefocus="1"'+u+' placeholder="'+this.encode(i.placeholder)+'" />'+n+s+"</div>"},value:function(e){return arguments.length?(this.state.set("value",e),this):(this.state.get("rendered")&&this.state.set("value",this.getEl("inp").value),this.state.get("value"))},showAutoComplete:function(e,t){var n=this;if(0!==e.length){n.menu?n.menu.items().remove():n.menu=p.create({type:"menu",classes:"combobox-menu",layout:"flow"}).parent(n).renderTo(),s.each(e,function(e){var r,i;n.menu.add({text:e.title,url:e.previewUrl,match:t,classes:"menu-item-ellipsis",onclick:(r=e.value,i=e.title,function(){n.fire("selectitem",{title:i,value:r})})})}),n.menu.renderNew(),n.hideMenu(),n.menu.on("cancel",function(e){e.control.parent()===n.menu&&(e.stopPropagation(),n.focus(),n.hideMenu())}),n.menu.on("select",function(){n.focus()});var r=n.layoutRect().w;n.menu.layoutRect({w:r,minW:0,maxW:r}),n.menu.repaint(),n.menu.reflow(),n.menu.show(),n.menu.moveRel(n.getEl(),n.isRtl()?["br-tr","tr-br"]:["bl-tl","tl-bl"])}else n.hideMenu()},hideMenu:function(){this.menu&&this.menu.hide()},bindStates:function(){var e=this;e.state.on("change:value",function(t){e.getEl("inp").value!==t.value&&(e.getEl("inp").value=t.value)}),e.state.on("change:disabled",function(t){e.getEl("inp").disabled=t.value}),e.state.on("change:statusLevel",function(t){var n=e.getEl("status"),r=e.classPrefix,i=t.value;we.css(n,"display","none"===i?"none":""),we.toggleClass(n,r+"i-checkmark","ok"===i),we.toggleClass(n,r+"i-warning","warn"===i),we.toggleClass(n,r+"i-error","error"===i),e.classes.toggle("has-status","none"!==i),e.repaint()}),we.on(e.getEl("status"),"mouseleave",function(){e.tooltip().hide()}),e.on("cancel",function(t){e.menu&&e.menu.visible()&&(t.stopPropagation(),e.hideMenu())});var t=function(e,t){t&&t.items().length>0&&t.items().eq(e)[0].focus()};return e.on("keydown",function(n){var r=n.keyCode;"INPUT"===n.target.nodeName&&(r===Xt.DOWN?(n.preventDefault(),e.fire("autocomplete"),t(0,e.menu)):r===Xt.UP&&(n.preventDefault(),t(-1,e.menu)))}),e._super()},remove:function(){ye(this.getEl("inp")).off(),this.menu&&this.menu.remove(),this._super()}}),en=Zt.extend({init:function(e){var t=this;e.spellcheck=!1,e.onaction&&(e.icon="none"),t._super(e),t.classes.add("colorbox"),t.on("change keyup postrender",function(){t.repaintColor(t.value())})},repaintColor:function(e){var t=this.getEl("open"),n=t?t.getElementsByTagName("i")[0]:null;if(n)try{n.style.background=e}catch(e){}},bindStates:function(){var e=this;return e.state.on("change:value",function(t){e.state.get("rendered")&&e.repaintColor(t.value)}),e._super()}}),tn=Gt.extend({showPanel:function(){var e=this,t=e.settings;if(e.classes.add("opened"),e.panel)e.panel.show();else{var n=t.panel;n.type&&(n={layout:"grid",items:n}),n.role=n.role||"dialog",n.popover=!0,n.autohide=!0,n.ariaRoot=!0,e.panel=new Lt(n).on("hide",function(){e.classes.remove("opened")}).on("cancel",function(t){t.stopPropagation(),e.focus(),e.hidePanel()}).parent(e).renderTo(e.getContainerElm()),e.panel.fire("show"),e.panel.reflow()}var r=e.panel.testMoveRel(e.getEl(),t.popoverAlign||(e.isRtl()?["bc-tc","bc-tl","bc-tr"]:["bc-tc","bc-tr","bc-tl","tc-bc","tc-br","tc-bl"]));e.panel.classes.toggle("start","l"===r.substr(-1)),e.panel.classes.toggle("end","r"===r.substr(-1));var i="t"===r.substr(0,1);e.panel.classes.toggle("bottom",!i),e.panel.classes.toggle("top",i),e.panel.moveRel(e.getEl(),r)},hidePanel:function(){this.panel&&this.panel.hide()},postRender:function(){var e=this;return e.aria("haspopup",!0),e.on("click",function(t){t.control===e&&(e.panel&&e.panel.visible()?e.hidePanel():(e.showPanel(),e.panel.focus(!!t.aria)))}),e._super()},remove:function(){return this.panel&&(this.panel.remove(),this.panel=null),this._super()}}),nn=h.DOM,rn=tn.extend({init:function(e){this._super(e),this.classes.add("splitbtn"),this.classes.add("colorbutton")},color:function(e){return e?(this._color=e,this.getEl("preview").style.backgroundColor=e,this):this._color},resetColor:function(){return this._color=null,this.getEl("preview").style.backgroundColor=null,this},renderHtml:function(){var e=this._id,t=this.classPrefix,n=this.state.get("text"),r=this.settings.icon?t+"ico "+t+"i-"+this.settings.icon:"",i=this.settings.image?" style=\"background-image: url('"+this.settings.image+"')\"":"",a="";return n&&(this.classes.add("btn-has-text"),a='<span class="'+t+'txt">'+this.encode(n)+"</span>"),'<div id="'+e+'" class="'+this.classes+'" role="button" tabindex="-1" aria-haspopup="true"><button role="presentation" hidefocus="1" type="button" tabindex="-1">'+(r?'<i class="'+r+'"'+i+"></i>":"")+'<span id="'+e+'-preview" class="'+t+'preview"></span>'+a+'</button><button type="button" class="'+t+'open" hidefocus="1" tabindex="-1"> <i class="'+t+'caret"></i></button></div>'},postRender:function(){var e=this,t=e.settings.onclick;return e.on("click",function(n){n.aria&&"down"===n.aria.key||n.control!==e||nn.getParent(n.target,"."+e.classPrefix+"open")||(n.stopImmediatePropagation(),t.call(e,n))}),delete e.settings.onclick,e._super()}}),an=tinymce.util.Tools.resolve("tinymce.util.Color"),on=Yt.extend({Defaults:{classes:"widget colorpicker"},init:function(e){this._super(e)},postRender:function(){var e,t,n,r,i,a=this,o=a.color();function s(e,t){var n,r,i=we.getPos(e);return n=t.pageX-i.x,r=t.pageY-i.y,{x:n=Math.max(0,Math.min(n/e.clientWidth,1)),y:r=Math.max(0,Math.min(r/e.clientHeight,1))}}function u(e,t){var o=(360-e.h)/360;we.css(n,{top:100*o+"%"}),t||we.css(i,{left:e.s+"%",top:100-e.v+"%"}),r.style.background=an({s:100,v:100,h:e.h}).toHex(),a.color().parse({s:e.s,v:e.v,h:e.h})}function l(t){var n;n=s(r,t),e.s=100*n.x,e.v=100*(1-n.y),u(e),a.fire("change")}function c(n){var r;r=s(t,n),(e=o.toHsv()).h=360*(1-r.y),u(e,!0),a.fire("change")}t=a.getEl("h"),n=a.getEl("hp"),r=a.getEl("sv"),i=a.getEl("svp"),a._repaint=function(){u(e=o.toHsv())},a._super(),a._svdraghelper=new ct(a._id+"-sv",{start:l,drag:l}),a._hdraghelper=new ct(a._id+"-h",{start:c,drag:c}),a._repaint()},rgb:function(){return this.color().toRgb()},value:function(e){if(!arguments.length)return this.color().toHex();this.color().parse(e),this._rendered&&this._repaint()},color:function(){return this._color||(this._color=an()),this._color},renderHtml:function(){var e,t=this._id,n=this.classPrefix,r="#ff0000,#ff0080,#ff00ff,#8000ff,#0000ff,#0080ff,#00ffff,#00ff80,#00ff00,#80ff00,#ffff00,#ff8000,#ff0000";return e='<div id="'+t+'-h" class="'+n+'colorpicker-h" style="background: -ms-linear-gradient(top,'+r+");background: linear-gradient(to bottom,"+r+');">'+function(){var e,t,i,a,o="";for(i="filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=",e=0,t=(a=r.split(",")).length-1;e<t;e++)o+='<div class="'+n+'colorpicker-h-chunk" style="height:'+100/t+"%;"+i+a[e]+",endColorstr="+a[e+1]+");-ms-"+i+a[e]+",endColorstr="+a[e+1]+')"></div>';return o}()+'<div id="'+t+'-hp" class="'+n+'colorpicker-h-marker"></div></div>','<div id="'+t+'" class="'+this.classes+'"><div id="'+t+'-sv" class="'+n+'colorpicker-sv"><div class="'+n+'colorpicker-overlay1"><div class="'+n+'colorpicker-overlay2"><div id="'+t+'-svp" class="'+n+'colorpicker-selector1"><div class="'+n+'colorpicker-selector2"></div></div></div></div></div>'+e+"</div>"}}),sn=Yt.extend({init:function(e){e=s.extend({height:100,text:"Drop an image here",multiple:!1,accept:null},e),this._super(e),this.classes.add("dropzone"),e.multiple&&this.classes.add("multiple")},renderHtml:function(){var e,t,n=this.settings;return e={id:this._id,hidefocus:"1"},t=we.create("div",e,"<span>"+this.translate(n.text)+"</span>"),n.height&&we.css(t,"height",n.height+"px"),n.width&&we.css(t,"width",n.width+"px"),t.className=this.classes,t.outerHTML},postRender:function(){var e=this,t=function(t){t.preventDefault(),e.classes.toggle("dragenter"),e.getEl().className=e.classes};e._super(),e.$el.on("dragover",function(e){e.preventDefault()}),e.$el.on("dragenter",t),e.$el.on("dragleave",t),e.$el.on("drop",function(t){if(t.preventDefault(),!e.state.get("disabled")){var n=function(t){var n=e.settings.accept;if("string"!=typeof n)return t;var r=new RegExp("("+n.split(/\s*,\s*/).join("|")+")$","i");return s.grep(t,function(e){return r.test(e.name)})}(t.dataTransfer.files);e.value=function(){return n.length?e.settings.multiple?n:n[0]:null},n.length&&e.fire("change",t)}})},remove:function(){this.$el.off(),this._super()}}),un=Yt.extend({init:function(e){var t=this;e.delimiter||(e.delimiter="»"),t._super(e),t.classes.add("path"),t.canFocus=!0,t.on("click",function(e){var n;(n=e.target.getAttribute("data-index"))&&t.fire("select",{value:t.row()[n],index:n})}),t.row(t.settings.row)},focus:function(){return this.getEl().firstChild.focus(),this},row:function(e){return arguments.length?(this.state.set("row",e),this):this.state.get("row")},renderHtml:function(){return'<div id="'+this._id+'" class="'+this.classes+'">'+this._getDataPathHtml(this.state.get("row"))+"</div>"},bindStates:function(){var e=this;return e.state.on("change:row",function(t){e.innerHtml(e._getDataPathHtml(t.value))}),e._super()},_getDataPathHtml:function(e){var t,n,r=e||[],i="",a=this.classPrefix;for(t=0,n=r.length;t<n;t++)i+=(t>0?'<div class="'+a+'divider" aria-hidden="true"> '+this.settings.delimiter+" </div>":"")+'<div role="button" class="'+a+"path-item"+(t===n-1?" "+a+"last":"")+'" data-index="'+t+'" tabindex="-1" id="'+this._id+"-"+t+'" aria-level="'+(t+1)+'">'+r[t].name+"</div>";return i||(i='<div class="'+a+'path-item"> </div>'),i}}),ln=un.extend({postRender:function(){var e=this,t=e.settings.editor;function n(e){if(1===e.nodeType){if("BR"===e.nodeName||e.getAttribute("data-mce-bogus"))return!0;if("bookmark"===e.getAttribute("data-mce-type"))return!0}return!1}return!1!==t.settings.elementpath&&(e.on("select",function(e){t.focus(),t.selection.select(this.row()[e.index].element),t.nodeChanged()}),t.on("nodeChange",function(r){for(var i=[],a=r.parents,o=a.length;o--;)if(1===a[o].nodeType&&!n(a[o])){var s=t.fire("ResolveName",{name:a[o].nodeName.toLowerCase(),target:a[o]});if(s.isDefaultPrevented()||i.push({name:s.name,element:a[o]}),s.isPropagationStopped())break}e.row(i)})),e._super()}}),cn=ut.extend({Defaults:{layout:"flex",align:"center",defaults:{flex:1}},renderHtml:function(){var e=this._layout,t=this.classPrefix;return this.classes.add("formitem"),e.preRender(this),'<div id="'+this._id+'" class="'+this.classes+'" hidefocus="1" tabindex="-1">'+(this.settings.title?'<div id="'+this._id+'-title" class="'+t+'title">'+this.settings.title+"</div>":"")+'<div id="'+this._id+'-body" class="'+this.bodyClasses+'">'+(this.settings.html||"")+e.renderHtml(this)+"</div></div>"}}),dn=ut.extend({Defaults:{containerCls:"form",layout:"flex",direction:"column",align:"stretch",flex:1,padding:15,labelGap:30,spacing:10,callbacks:{submit:function(){this.submit()}}},preRender:function(){var e=this,t=e.items();e.settings.formItemDefaults||(e.settings.formItemDefaults={layout:"flex",autoResize:"overflow",defaults:{flex:1}}),t.each(function(t){var n,r=t.settings.label;r&&((n=new cn(s.extend({items:{type:"label",id:t._id+"-l",text:r,flex:0,forId:t._id,disabled:t.disabled()}},e.settings.formItemDefaults))).type="formitem",t.aria("labelledby",t._id+"-l"),void 0===t.settings.flex&&(t.settings.flex=1),e.replace(t,n),n.add(t))})},submit:function(){return this.fire("submit",{data:this.toJSON()})},postRender:function(){this._super(),this.fromJSON(this.settings.data)},bindStates:function(){var e=this;function t(){var t,n,r=0,i=[];if(!1!==e.settings.labelGapCalc)for(("children"===e.settings.labelGapCalc?e.find("formitem"):e.items()).filter("formitem").each(function(e){var t=e.items()[0],n=t.getEl().clientWidth;r=n>r?n:r,i.push(t)}),n=e.settings.labelGap||0,t=i.length;t--;)i[t].settings.minWidth=r+n}e._super(),e.on("show",t),t()}}),fn=dn.extend({Defaults:{containerCls:"fieldset",layout:"flex",direction:"column",align:"stretch",flex:1,padding:"25 15 5 15",labelGap:30,spacing:10,border:1},renderHtml:function(){var e=this._layout,t=this.classPrefix;return this.preRender(),e.preRender(this),'<fieldset id="'+this._id+'" class="'+this.classes+'" hidefocus="1" tabindex="-1">'+(this.settings.title?'<legend id="'+this._id+'-title" class="'+t+'fieldset-title">'+this.settings.title+"</legend>":"")+'<div id="'+this._id+'-body" class="'+this.bodyClasses+'">'+(this.settings.html||"")+e.renderHtml(this)+"</div></fieldset>"}}),mn=0,hn=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:D(e)}},pn={fromHtml:function(t,n){var r=(n||e.document).createElement("div");if(r.innerHTML=t,!r.hasChildNodes()||r.childNodes.length>1)throw e.console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return hn(r.childNodes[0])},fromTag:function(t,n){var r=(n||e.document).createElement(t);return hn(r)},fromText:function(t,n){var r=(n||e.document).createTextNode(t);return hn(r)},fromDom:hn,fromPoint:function(e,t,n){var r=e.dom();return Y.from(r.elementFromPoint(t,n)).map(hn)}},gn=(e.Node.ATTRIBUTE_NODE,e.Node.CDATA_SECTION_NODE,e.Node.COMMENT_NODE,e.Node.DOCUMENT_NODE),_n=(e.Node.DOCUMENT_TYPE_NODE,e.Node.DOCUMENT_FRAGMENT_NODE,e.Node.ELEMENT_NODE),vn=(e.Node.TEXT_NODE,e.Node.PROCESSING_INSTRUCTION_NODE,e.Node.ENTITY_REFERENCE_NODE,e.Node.ENTITY_NODE,e.Node.NOTATION_NODE,void 0!==e.window?e.window:Function("return this;")(),function(){return yn(0,0)}),yn=function(e,t){return{major:e,minor:t}},bn={nu:yn,detect:function(e,t){var n=String(t).toLowerCase();return 0===e.length?vn():function(e,t){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}}(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return yn(r(1),r(2))}(e,n)},unknown:vn},wn=function(e,t){return function(){return t===e}},Mn=function(e){var t=e.current;return{current:t,version:e.version,isEdge:wn("Edge",t),isChrome:wn("Chrome",t),isIE:wn("IE",t),isOpera:wn("Opera",t),isFirefox:wn("Firefox",t),isSafari:wn("Safari",t)}},kn={unknown:function(){return Mn({current:void 0,version:bn.unknown()})},nu:Mn,edge:D("Edge"),chrome:D("Chrome"),ie:D("IE"),opera:D("Opera"),firefox:D("Firefox"),safari:D("Safari")},Ln=function(e,t){return function(){return t===e}},Dn=function(e){var t=e.current;return{current:t,version:e.version,isWindows:Ln("Windows",t),isiOS:Ln("iOS",t),isAndroid:Ln("Android",t),isOSX:Ln("OSX",t),isLinux:Ln("Linux",t),isSolaris:Ln("Solaris",t),isFreeBSD:Ln("FreeBSD",t)}},xn={unknown:function(){return Dn({current:void 0,version:bn.unknown()})},nu:Dn,windows:D("Windows"),ios:D("iOS"),android:D("Android"),linux:D("Linux"),osx:D("OSX"),solaris:D("Solaris"),freebsd:D("FreeBSD")},An=function(e,t){var n=String(t).toLowerCase();return function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return Y.some(i)}return Y.none()}(e,function(e){return e.search(n)})},Cn=function(e,t){return An(e,t).map(function(e){var n=bn.detect(e.versionRegexes,t);return{current:e.name,version:n}})},Tn=function(e,t){return An(e,t).map(function(e){var n=bn.detect(e.versionRegexes,t);return{current:e.name,version:n}})},Sn=function(e,t){return-1!==e.indexOf(t)},Yn=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Nn=function(e){return function(t){return Sn(t,e)}},En=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return Sn(e,"edge/")&&Sn(e,"chrome")&&Sn(e,"safari")&&Sn(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Yn],search:function(e){return Sn(e,"chrome")&&!Sn(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return Sn(e,"msie")||Sn(e,"trident")}},{name:"Opera",versionRegexes:[Yn,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Nn("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Nn("firefox")},{name:"Safari",versionRegexes:[Yn,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(Sn(e,"safari")||Sn(e,"mobile/"))&&Sn(e,"applewebkit")}}],Pn=[{name:"Windows",search:Nn("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return Sn(e,"iphone")||Sn(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Nn("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Nn("os x"),versionRegexes:[/.*?os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Nn("linux"),versionRegexes:[]},{name:"Solaris",search:Nn("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Nn("freebsd"),versionRegexes:[]}],In={browsers:D(En),oses:D(Pn)},On=function(e){var t=In.browsers(),n=In.oses(),r=Cn(t,e).fold(kn.unknown,kn.nu),i=Tn(n,e).fold(xn.unknown,xn.nu);return{browser:r,os:i,deviceType:function(e,t,n){var r=e.isiOS()&&!0===/ipad/i.test(n),i=e.isiOS()&&!r,a=e.isAndroid()&&3===e.version.major,o=e.isAndroid()&&4===e.version.major,s=r||a||o&&!0===/mobile/i.test(n),u=e.isiOS()||e.isAndroid(),l=u&&!s,c=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n);return{isiPad:D(r),isiPhone:D(i),isTablet:D(s),isPhone:D(l),isTouch:D(u),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:D(c)}}(i,r,e)}},Fn=_n,Rn=gn,Hn=function(e){return e.nodeType!==Fn&&e.nodeType!==Rn||0===e.childElementCount},jn=((Bt=function(){var t=e.navigator.userAgent;return On(t)},Ut=!1,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ut||(Ut=!0,Wt=Bt.apply(null,e)),Wt})().browser.isIE(),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}("element","offset"),s.trim),Bn=function(e){return function(t){if(t&&1===t.nodeType){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}},Wn=Bn("true"),Un=Bn("false"),zn=function(e,t,n,r,i){return{type:e,title:t,url:n,level:r,attach:i}},Jn=function(e){return e.innerText||e.textContent},qn=function(e){return e.id?e.id:(t="h",n=(new Date).getTime(),t+"_"+Math.floor(1e9*Math.random())+ ++mn+String(n));var t,n},Vn=function(e){return function(e){return e&&"A"===e.nodeName&&(e.id||e.name)}(e)&&$n(e)},Gn=function(e){return e&&/^(H[1-6])$/.test(e.nodeName)},$n=function(e){return function(e){for(;e=e.parentNode;){var t=e.contentEditable;if(t&&"inherit"!==t)return Wn(e)}return!1}(e)&&!Un(e)},Kn=function(e){return Gn(e)&&$n(e)},Qn=function(e){var t=qn(e);return zn("header",Jn(e),"#"+t,function(e){return Gn(e)?parseInt(e.nodeName.substr(1),10):0}(e),function(){e.id=t})},Xn=function(e){var t=e.id||e.name,n=Jn(e);return zn("anchor",n||"#"+t,"#"+t,0,L)},Zn=function(t){var n,r;return n="h1,h2,h3,h4,h5,h6,a:not([href])",r=t,K(((Bt=function(){var t=e.navigator.userAgent;return On(t)},Ut=!1,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ut||(Ut=!0,Wt=Bt.apply(null,e)),Wt})().browser.isIE(),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}("element","offset"),function(t,n){return function(t,n){var r=void 0===n?e.document:n.dom();return Hn(r)?[]:K(r.querySelectorAll(t),pn.fromDom)}(n,t)})(pn.fromDom(r),n),function(e){return e.dom()})},er=function(e){return jn(e.title).length>0},tr=function(e){var t=Zn(e);return X(function(e){return K(X(e,Kn),Qn)}(t).concat(function(e){return K(X(e,Vn),Xn)}(t)),er)},nr={},rr=function(e){return{title:e.title,value:{title:{raw:e.title},url:e.url,attach:e.attach}}},ir=function(e,t){return{title:e,value:{title:e,url:t,attach:L}}},ar=function(e,t,n){var r=t in e?e[t]:n;return!1===r?null:r},or=function(e,t,n,r){var i,a,o,u={title:"-"},l=function(e){var r=e.hasOwnProperty(n)?e[n]:[],i=X(r,function(e){return function(e,t){return!$(t,function(t){return t.url===e})}(e,t)});return s.map(i,function(e){return{title:e,value:{title:e,url:e,attach:L}}})},c=function(e){return function(e){return s.map(e,rr)}(X(t,function(t){return t.type===e}))};return!1===r.typeahead_urls?[]:"file"===n?(i=[sr(e,l(nr)),sr(e,c("header")),sr(e,function(){var e=c("anchor"),t=ar(r,"anchor_top","#top"),n=ar(r,"anchor_bottom","#bottom");return null!==t&&e.unshift(ir("<top>",t)),null!==n&&e.push(ir("<bottom>",n)),e}())],a=function(e,t){return 0===e.length||0===t.length?e.concat(t):e.concat(u,t)},o=[],Q(i,function(e){o=a(o,e)}),o):sr(e,l(nr))},sr=function(e,t){var n=e.toLowerCase(),r=s.grep(t,function(e){return-1!==e.title.toLowerCase().indexOf(n)});return 1===r.length&&r[0].title===e?[]:r},ur=function(e,t,n,r){var i=function(i){var a=tr(n),o=or(i,a,r,t);e.showAutoComplete(o,i)};e.on("autocomplete",function(){i(e.value())}),e.on("selectitem",function(t){var n=t.value;e.value(n.url);var i=function(e){var t=e.title;return t.raw?t.raw:t}(n);"image"===r?e.fire("change",{meta:{alt:i,attach:n.attach}}):e.fire("change",{meta:{text:i,attach:n.attach}}),e.focus()}),e.on("click",function(t){0===e.value().length&&"INPUT"===t.target.nodeName&&i("")}),e.on("PostRender",function(){e.getRoot().on("submit",function(t){t.isDefaultPrevented()||function(e,t){var n=nr[t];/^https?/.test(e)&&(n?G(n,e).isNone()&&(nr[t]=n.slice(0,5).concat(e)):nr[t]=[e])}(e.value(),r)})})},lr=function(e,t,n){var r=t.filepicker_validator_handler;r&&e.state.on("change:value",function(t){var i;0!==(i=t.value).length?r({url:i,type:n},function(t){var n=function(e){var t=e.status,n=e.message;return"valid"===t?{status:"ok",message:n}:"unknown"===t?{status:"warn",message:n}:"invalid"===t?{status:"warn",message:n}:{status:"none",message:""}}(t);e.statusMessage(n.message),e.statusLevel(n.status)}):e.statusLevel("none")})},cr=Zt.extend({Statics:{clearHistory:function(){nr={}}},init:function(e){var t,n,r,i=this,a=window.tinymce?window.tinymce.activeEditor:o.activeEditor,u=a.settings,l=e.filetype;e.spellcheck=!1,(r=u.file_picker_types||u.file_browser_callback_types)&&(r=s.makeMap(r,/[, ]/)),r&&!r[l]||(!(n=u.file_picker_callback)||r&&!r[l]?!(n=u.file_browser_callback)||r&&!r[l]||(t=function(){n(i.getEl("inp").id,i.value(),l,window)}):t=function(){var e=i.fire("beforecall").meta;e=s.extend({filetype:l},e),n.call(a,function(e,t){i.value(e).fire("change",{meta:t})},i.value(),e)}),t&&(e.icon="browse",e.onaction=t),i._super(e),i.classes.add("filepicker"),ur(i,u,a.getBody(),l),lr(i,u,l)}}),dr=Vt.extend({recalc:function(e){var t=e.layoutRect(),n=e.paddingBox;e.items().filter(":visible").each(function(e){e.layoutRect({x:n.left,y:n.top,w:t.innerW-n.right-n.left,h:t.innerH-n.top-n.bottom}),e.recalc&&e.recalc()})}}),fr=Vt.extend({recalc:function(e){var t,n,r,i,a,o,s,u,l,c,d,f,m,h,p,g,_,v,y,b,w,M,k,L,D,x,A,C,T,S,Y,N,E,P,I,O,F,R=[],H=Math.max,j=Math.min;for(r=e.items().filter(":visible"),i=e.layoutRect(),a=e.paddingBox,o=e.settings,f=e.isRtl()?o.direction||"row-reversed":o.direction,s=o.align,u=e.isRtl()?o.pack||"end":o.pack,l=o.spacing||0,"row-reversed"!==f&&"column-reverse"!==f||(r=r.set(r.toArray().reverse()),f=f.split("-")[0]),"column"===f?(L="y",M="h",k="minH",D="maxH",A="innerH",x="top",C="deltaH",T="contentH",P="left",N="w",S="x",Y="innerW",E="minW",I="right",O="deltaW",F="contentW"):(L="x",M="w",k="minW",D="maxW",A="innerW",x="left",C="deltaW",T="contentW",P="top",N="h",S="y",Y="innerH",E="minH",I="bottom",O="deltaH",F="contentH"),d=i[A]-a[x]-a[x],w=c=0,t=0,n=r.length;t<n;t++)h=(m=r[t]).layoutRect(),p=m.settings.flex,d-=t<n-1?l:0,p>0&&(c+=p,h[D]&&R.push(m),h.flex=p),d-=h[k],(g=a[P]+h[E]+a[I])>w&&(w=g);if((y={})[k]=d<0?i[k]-d+i[C]:i[A]-d+i[C],y[E]=w+i[O],y[T]=i[A]-d,y[F]=w,y.minW=j(y.minW,i.maxW),y.minH=j(y.minH,i.maxH),y.minW=H(y.minW,i.startMinWidth),y.minH=H(y.minH,i.startMinHeight),!i.autoResize||y.minW===i.minW&&y.minH===i.minH){for(v=d/c,t=0,n=R.length;t<n;t++)_=(h=(m=R[t]).layoutRect())[D],(g=h[k]+h.flex*v)>_?(d-=h[D]-h[k],c-=h.flex,h.flex=0,h.maxFlexSize=_):h.maxFlexSize=0;for(v=d/c,b=a[x],y={},0===c&&("end"===u?b=d+a[x]:"center"===u?(b=Math.round(i[A]/2-(i[A]-d)/2)+a[x])<0&&(b=a[x]):"justify"===u&&(b=a[x],l=Math.floor(d/(r.length-1)))),y[S]=a[P],t=0,n=r.length;t<n;t++)g=(h=(m=r[t]).layoutRect()).maxFlexSize||h[k],"center"===s?y[S]=Math.round(i[Y]/2-h[N]/2):"stretch"===s?(y[N]=H(h[E]||0,i[Y]-a[P]-a[I]),y[S]=a[P]):"end"===s&&(y[S]=i[Y]-h[N]-a.top),h.flex>0&&(g+=h.flex*v),y[M]=g,y[L]=b,m.layoutRect(y),m.recalc&&m.recalc(),b+=g+l}else if(y.w=y.minW,y.h=y.minH,e.layoutRect(y),this.recalc(e),null===e._lastRect){var B=e.parent();B&&(B._lastRect=null,B.recalc())}}}),mr=qt.extend({Defaults:{containerClass:"flow-layout",controlClass:"flow-layout-item",endClass:"break"},recalc:function(e){e.items().filter(":visible").each(function(e){e.recalc&&e.recalc()})},isNative:function(){return!0}}),hr=function(t,n){return function(t,n){var r=void 0===n?e.document:n.dom();return Hn(r)?Y.none():Y.from(r.querySelector(t)).map(pn.fromDom)}(n,t)},pr=function(e,t){return function(){e.execCommand("mceToggleFormat",!1,t)}},gr=function(e,t,n){var r=function(e){n(e,t)};e.formatter?e.formatter.formatChanged(t,r):e.on("init",function(){e.formatter.formatChanged(t,r)})},_r=function(e,t){return function(n){gr(e,t,function(e){n.control.active(e)})}},vr=function(e){var t=["alignleft","aligncenter","alignright","alignjustify"],n=[{text:"Left",icon:"alignleft",onclick:pr(e,"alignleft")},{text:"Center",icon:"aligncenter",onclick:pr(e,"aligncenter")},{text:"Right",icon:"alignright",onclick:pr(e,"alignright")},{text:"Justify",icon:"alignjustify",onclick:pr(e,"alignjustify")}];e.addMenuItem("align",{text:"Align",menu:n}),e.addButton("align",{type:"menubutton",icon:"alignleft",menu:n,onShowMenu:function(n){var r=n.control.menu;s.each(t,function(t,n){r.items().eq(n).each(function(n){return n.active(e.formatter.match(t))})})},onPostRender:function(n){var r=n.control;s.each(t,function(t,n){gr(e,t,function(e){r.icon("alignleft"),e&&r.icon(t)})})}}),s.each({alignleft:["Align left","JustifyLeft"],aligncenter:["Align center","JustifyCenter"],alignright:["Align right","JustifyRight"],alignjustify:["Justify","JustifyFull"],alignnone:["No alignment","JustifyNone"]},function(t,n){e.addButton(n,{active:!1,tooltip:t[0],cmd:t[1],onPostRender:_r(e,n)})})},yr=function(e){return e?e.split(",")[0]:""},br=function(e,t){return function(){var n=this;n.state.set("value",null),e.on("init nodeChange",function(r){var i=e.queryCommandValue("FontName"),a=function(e,t){var n,r=t?t.toLowerCase():"";return s.each(e,function(e){e.value.toLowerCase()===r&&(n=e.value)}),s.each(e,function(e){n||yr(e.value).toLowerCase()!==yr(r).toLowerCase()||(n=e.value)}),n}(t,i);n.value(a||null),!a&&i&&n.text(yr(i))})}},wr=function(e){e.addButton("fontselect",function(){var t=function(e){var t=function(e){for(var t=(e=e.replace(/;$/,"").split(";")).length;t--;)e[t]=e[t].split("=");return e}(e.settings.font_formats||"Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats");return s.map(t,function(e){return{text:{raw:e[0]},value:e[1],textStyle:-1===e[1].indexOf("dings")?"font-family:"+e[1]:""}})}(e);return{type:"listbox",text:"Font Family",tooltip:"Font Family",values:t,fixedWidth:!0,onPostRender:br(e,t),onselect:function(t){t.control.settings.value&&e.execCommand("FontName",!1,t.control.settings.value)}}})},Mr=function(e){wr(e)},kr=function(e,t){return/[0-9.]+px$/.test(e)?function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}(72*parseInt(e,10)/96,t||0)+"pt":e},Lr=function(e,t,n){var r;return s.each(e,function(e){e.value===n?r=n:e.value===t&&(r=t)}),r},Dr=function(e){e.addButton("fontsizeselect",function(){var t=function(e){var t=e.settings.fontsize_formats||"8pt 10pt 12pt 14pt 18pt 24pt 36pt";return s.map(t.split(" "),function(e){var t=e,n=e,r=e.split("=");return r.length>1&&(t=r[0],n=r[1]),{text:t,value:n}})}(e);return{type:"listbox",text:"Font Sizes",tooltip:"Font Sizes",values:t,fixedWidth:!0,onPostRender:function(e,t){return function(){var n=this;e.on("init nodeChange",function(r){var i,a,o,s;if(i=e.queryCommandValue("FontSize"))for(o=3;!s&&o>=0;o--)a=kr(i,o),s=Lr(t,a,i);n.value(s||null),s||n.text(a)})}}(e,t),onclick:function(t){t.control.settings.value&&e.execCommand("FontSize",!1,t.control.settings.value)}}})},xr=function(e){Dr(e)},Ar=function(e,t){var n=t.length;return s.each(t,function(t){t.menu&&(t.hidden=0===Ar(e,t.menu));var r=t.format;r&&(t.hidden=!e.formatter.canApply(r)),t.hidden&&n--}),n},Cr=function(e,t){var n=t.items().length;return t.items().each(function(t){t.menu&&t.visible(Cr(e,t.menu)>0),!t.menu&&t.settings.menu&&t.visible(Ar(e,t.settings.menu)>0);var r=t.settings.format;r&&t.visible(e.formatter.canApply(r)),t.visible()||n--}),n},Tr=function(e){var t=function(e){var t=0,n=[],r=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",icon:"bold",format:"bold"},{title:"Italic",icon:"italic",format:"italic"},{title:"Underline",icon:"underline",format:"underline"},{title:"Strikethrough",icon:"strikethrough",format:"strikethrough"},{title:"Superscript",icon:"superscript",format:"superscript"},{title:"Subscript",icon:"subscript",format:"subscript"},{title:"Code",icon:"code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Alignment",items:[{title:"Left",icon:"alignleft",format:"alignleft"},{title:"Center",icon:"aligncenter",format:"aligncenter"},{title:"Right",icon:"alignright",format:"alignright"},{title:"Justify",icon:"alignjustify",format:"alignjustify"}]}],i=function(e){var r=[];if(e)return s.each(e,function(e){var a={text:e.title,icon:e.icon};if(e.items)a.menu=i(e.items);else{var o=e.format||"custom"+t++;e.format||(e.name=o,n.push(e)),a.format=o,a.cmd=e.cmd}r.push(a)}),r};return e.on("init",function(){s.each(n,function(t){e.formatter.register(t.name,t)})}),{type:"menu",items:e.settings.style_formats_merge?e.settings.style_formats?i(r.concat(e.settings.style_formats)):i(r):i(e.settings.style_formats||r),onPostRender:function(t){e.fire("renderFormatsMenu",{control:t.control})},itemDefaults:{preview:!0,textStyle:function(){if(this.settings.format)return e.formatter.getCssText(this.settings.format)},onPostRender:function(){var t=this;t.parent().on("show",function(){var n,r;(n=t.settings.format)&&(t.disabled(!e.formatter.canApply(n)),t.active(e.formatter.match(n))),(r=t.settings.cmd)&&t.active(e.queryCommandState(r))})},onclick:function(){this.settings.format&&pr(e,this.settings.format)(),this.settings.cmd&&e.execCommand(this.settings.cmd)}}}}(e);!function(e,t){e.addMenuItem("formats",{text:"Formats",menu:t})}(e,t),function(e,t){e.addButton("styleselect",{type:"menubutton",text:"Formats",menu:t,onShowMenu:function(){e.settings.style_formats_autohide&&Cr(e,this.menu)}})}(e,t)},Sr=function(e,t){return function(){var n=[];return s.each(t,function(t){n.push({text:t[0],value:t[1],textStyle:function(){return e.formatter.getCssText(t[1])}})}),{type:"listbox",text:t[0][0],values:n,fixedWidth:!0,onselect:function(t){if(t.control){var n=t.control.value();pr(e,n)()}},onPostRender:function(e,t,n){return function(){var r=this;e.on("nodeChange",function(i){var a=e.formatter,o=null;s.each(i.parents,function(e){if(s.each(t,function(t){if(n?a.matchNode(e,n,{value:t.value})&&(o=t.value):a.matchNode(e,t.value)&&(o=t.value),o)return!1}),o)return!1}),r.value(o)})}}(e,n)}}},Yr=function(e){var t=function(e){for(var t=(e=e.replace(/;$/,"").split(";")).length;t--;)e[t]=e[t].split("=");return e}(e.settings.block_formats||"Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre");e.addMenuItem("blockformats",{text:"Blocks",menu:function(e,t){return s.map(t,function(t){return{text:t[0],onclick:pr(e,t[1]),textStyle:function(){return e.formatter.getCssText(t[1])}}})}(e,t)}),e.addButton("formatselect",Sr(e,t))},Nr=function(e,t){var n,r;if("string"==typeof t)r=t.split(" ");else if(s.isArray(t))return function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!U(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);V.apply(t,e[n])}return t}(s.map(t,function(t){return Nr(e,t)}));return n=s.grep(r,function(t){return"|"===t||t in e.menuItems}),s.map(n,function(t){return"|"===t?{text:"-"}:e.menuItems[t]})},Er=function(e){return e&&"-"===e.text},Pr=function(e){var t=X(e,function(t,n){return!Er(t)||!Er(e[n-1])});return X(t,function(e,n){return!Er(e)||n>0&&n<t.length-1})},Ir=function(e){var t=e.settings.insert_button_items;return Pr(t?Nr(e,t):function(e,t){var n=[{text:"-"}],r=s.grep(e.menuItems,function(e){return e.context===t});return s.each(r,function(e){"before"===e.separator&&n.push({text:"|"}),e.prependToContext?n.unshift(e):n.push(e),"after"===e.separator&&n.push({text:"|"})}),n}(e,"insert"))},Or=function(e){!function(e){e.addButton("insert",{type:"menubutton",icon:"insert",menu:[],oncreatemenu:function(){this.menu.add(Ir(e)),this.menu.renderNew()}})}(e)},Fr=function(e){!function(e){s.each({bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",subscript:"Subscript",superscript:"Superscript"},function(t,n){e.addButton(n,{active:!1,tooltip:t,onPostRender:_r(e,n),onclick:pr(e,n)})})}(e),function(e){s.each({outdent:["Decrease indent","Outdent"],indent:["Increase indent","Indent"],cut:["Cut","Cut"],copy:["Copy","Copy"],paste:["Paste","Paste"],help:["Help","mceHelp"],selectall:["Select all","SelectAll"],visualaid:["Visual aids","mceToggleVisualAid"],newdocument:["New document","mceNewDocument"],removeformat:["Clear formatting","RemoveFormat"],remove:["Remove","Delete"]},function(t,n){e.addButton(n,{tooltip:t[0],cmd:t[1]})})}(e),function(e){s.each({blockquote:["Blockquote","mceBlockQuote"],subscript:["Subscript","Subscript"],superscript:["Superscript","Superscript"]},function(t,n){e.addButton(n,{active:!1,tooltip:t[0],cmd:t[1],onPostRender:_r(e,n)})})}(e)},Rr=function(e){Fr(e),function(e){s.each({bold:["Bold","Bold","Meta+B"],italic:["Italic","Italic","Meta+I"],underline:["Underline","Underline","Meta+U"],strikethrough:["Strikethrough","Strikethrough"],subscript:["Subscript","Subscript"],superscript:["Superscript","Superscript"],removeformat:["Clear formatting","RemoveFormat"],newdocument:["New document","mceNewDocument"],cut:["Cut","Cut","Meta+X"],copy:["Copy","Copy","Meta+C"],paste:["Paste","Paste","Meta+V"],selectall:["Select all","SelectAll","Meta+A"]},function(t,n){e.addMenuItem(n,{text:t[0],icon:n,shortcut:t[2],cmd:t[1]})}),e.addMenuItem("codeformat",{text:"Code",icon:"code",onclick:pr(e,"code")})}(e)},Hr=function(e,t){return function(){var n=this,r=function(){var n="redo"===t?"hasRedo":"hasUndo";return!!e.undoManager&&e.undoManager[n]()};n.disabled(!r()),e.on("Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",function(){n.disabled(e.readonly||!r())})}},jr=function(e){!function(e){e.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onPostRender:Hr(e,"undo"),cmd:"undo"}),e.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onPostRender:Hr(e,"redo"),cmd:"redo"})}(e),function(e){e.addButton("undo",{tooltip:"Undo",onPostRender:Hr(e,"undo"),cmd:"undo"}),e.addButton("redo",{tooltip:"Redo",onPostRender:Hr(e,"redo"),cmd:"redo"})}(e)},Br=function(e){!function(e){e.addMenuItem("visualaid",{text:"Visual aids",selectable:!0,onPostRender:function(e){return function(){var t=this;e.on("VisualAid",function(e){t.active(e.hasVisual)}),t.active(e.hasVisual)}}(e),cmd:"mceToggleVisualAid"})}(e)},Wr={setup:function(t){!function(e){e.rtl&&(it.rtl=!0)}(t),function(e){e.on("mousedown progressstate",function(){Lt.hideAll()})}(t),function(t){t.settings.ui_container&&(ce.container=hr(pn.fromDom(e.document.body),t.settings.ui_container).fold(D(null),function(e){return e.dom()}))}(t),Yt.tooltips=!ce.iOS,it.translate=function(e){return o.translate(e)},Yr(t),vr(t),Rr(t),jr(t),xr(t),Mr(t),Tr(t),Br(t),Or(t)}},Ur=Vt.extend({recalc:function(e){var t,n,r,i,a,o,s,u,l,c,d,f,m,h,p,g,_,v,y,b,w,M,k,L,D,x,A,C,T=[],S=[];t=e.settings,i=e.items().filter(":visible"),a=e.layoutRect(),r=t.columns||Math.ceil(Math.sqrt(i.length)),n=Math.ceil(i.length/r),v=t.spacingH||t.spacing||0,y=t.spacingV||t.spacing||0,b=t.alignH||t.align,w=t.alignV||t.align,g=e.paddingBox,C="reverseRows"in t?t.reverseRows:e.isRtl(),b&&"string"==typeof b&&(b=[b]),w&&"string"==typeof w&&(w=[w]);for(d=0;d<r;d++)T.push(0);for(f=0;f<n;f++)S.push(0);for(f=0;f<n;f++)for(d=0;d<r&&(c=i[f*r+d]);d++)L=(l=c.layoutRect()).minW,D=l.minH,T[d]=L>T[d]?L:T[d],S[f]=D>S[f]?D:S[f];for(x=a.innerW-g.left-g.right,M=0,d=0;d<r;d++)M+=T[d]+(d>0?v:0),x-=(d>0?v:0)+T[d];for(A=a.innerH-g.top-g.bottom,k=0,f=0;f<n;f++)k+=S[f]+(f>0?y:0),A-=(f>0?y:0)+S[f];if(M+=g.left+g.right,k+=g.top+g.bottom,(u={}).minW=M+(a.w-a.innerW),u.minH=k+(a.h-a.innerH),u.contentW=u.minW-a.deltaW,u.contentH=u.minH-a.deltaH,u.minW=Math.min(u.minW,a.maxW),u.minH=Math.min(u.minH,a.maxH),u.minW=Math.max(u.minW,a.startMinWidth),u.minH=Math.max(u.minH,a.startMinHeight),!a.autoResize||u.minW===a.minW&&u.minH===a.minH){var Y;a.autoResize&&((u=e.layoutRect(u)).contentW=u.minW-a.deltaW,u.contentH=u.minH-a.deltaH),Y="start"===t.packV?0:A>0?Math.floor(A/n):0;var N=0,E=t.flexWidths;if(E)for(d=0;d<E.length;d++)N+=E[d];else N=r;var P=x/N;for(d=0;d<r;d++)T[d]+=E?E[d]*P:P;for(h=g.top,f=0;f<n;f++){for(m=g.left,s=S[f]+Y,d=0;d<r&&(c=i[C?f*r+r-1-d:f*r+d]);d++)p=c.settings,l=c.layoutRect(),o=Math.max(T[d],l.startMinWidth),l.x=m,l.y=h,"center"===(_=p.alignH||(b?b[d]||b[0]:null))?l.x=m+o/2-l.w/2:"right"===_?l.x=m+o-l.w:"stretch"===_&&(l.w=o),"center"===(_=p.alignV||(w?w[d]||w[0]:null))?l.y=h+s/2-l.h/2:"bottom"===_?l.y=h+s-l.h:"stretch"===_&&(l.h=s),c.layoutRect(l),m+=o+v,c.recalc&&c.recalc();h+=s+y}}else if(u.w=u.minW,u.h=u.minH,e.layoutRect(u),this.recalc(e),null===e._lastRect){var I=e.parent();I&&(I._lastRect=null,I.recalc())}}}),zr=Yt.extend({renderHtml:function(){return this.classes.add("iframe"),this.canFocus=!1,'<iframe id="'+this._id+'" class="'+this.classes+'" tabindex="-1" src="'+(this.settings.url||"javascript:''")+'" frameborder="0"></iframe>'},src:function(e){this.getEl().src=e},html:function(e,t){var n=this,r=this.getEl().contentWindow.document.body;return r?(r.innerHTML=e,t&&t()):k.setTimeout(function(){n.html(e)}),this}}),Jr=Yt.extend({init:function(e){this._super(e),this.classes.add("widget").add("infobox"),this.canFocus=!1},severity:function(e){this.classes.remove("error"),this.classes.remove("warning"),this.classes.remove("success"),this.classes.add(e)},help:function(e){this.state.set("help",e)},renderHtml:function(){var e=this.classPrefix;return'<div id="'+this._id+'" class="'+this.classes+'"><div id="'+this._id+'-body">'+this.encode(this.state.get("text"))+'<button role="button" tabindex="-1"><i class="'+e+"ico "+e+'i-help"></i></button></div></div>'},bindStates:function(){var e=this;return e.state.on("change:text",function(t){e.getEl("body").firstChild.data=e.encode(t.value),e.state.get("rendered")&&e.updateLayoutRect()}),e.state.on("change:help",function(t){e.classes.toggle("has-help",t.value),e.state.get("rendered")&&e.updateLayoutRect()}),e._super()}}),qr=Yt.extend({init:function(e){this._super(e),this.classes.add("widget").add("label"),this.canFocus=!1,e.multiline&&this.classes.add("autoscroll"),e.strong&&this.classes.add("strong")},initLayoutRect:function(){var e=this._super();return this.settings.multiline&&(we.getSize(this.getEl()).width>e.maxW&&(e.minW=e.maxW,this.classes.add("multiline")),this.getEl().style.width=e.minW+"px",e.startMinH=e.h=e.minH=Math.min(e.maxH,we.getSize(this.getEl()).height)),e},repaint:function(){return this.settings.multiline||(this.getEl().style.lineHeight=this.layoutRect().h+"px"),this._super()},severity:function(e){this.classes.remove("error"),this.classes.remove("warning"),this.classes.remove("success"),this.classes.add(e)},renderHtml:function(){var e,t,n=this.settings.forId,r=this.settings.html?this.settings.html:this.encode(this.state.get("text"));return!n&&(t=this.settings.forName)&&(e=this.getRoot().find("#"+t)[0])&&(n=e._id),n?'<label id="'+this._id+'" class="'+this.classes+'"'+(n?' for="'+n+'"':"")+">"+r+"</label>":'<span id="'+this._id+'" class="'+this.classes+'">'+r+"</span>"},bindStates:function(){var e=this;return e.state.on("change:text",function(t){e.innerHtml(e.encode(t.value)),e.state.get("rendered")&&e.updateLayoutRect()}),e._super()}}),Vr=ut.extend({Defaults:{role:"toolbar",layout:"flow"},init:function(e){this._super(e),this.classes.add("toolbar")},postRender:function(){return this.items().each(function(e){e.classes.add("toolbar-item")}),this._super()}}),Gr=Vr.extend({Defaults:{role:"menubar",containerCls:"menubar",ariaRoot:!0,defaults:{type:"menubutton"}}}),$r=Gt.extend({init:function(e){this._renderOpen=!0,this._super(e),e=this.settings,this.classes.add("menubtn"),e.fixedWidth&&this.classes.add("fixed-width"),this.aria("haspopup",!0),this.state.set("menu",e.menu||this.render())},showMenu:function(e){var t,n=this;if(n.menu&&n.menu.visible()&&!1!==e)return n.hideMenu();n.menu||(t=n.state.get("menu")||[],n.classes.add("opened"),t.length?t={type:"menu",animate:!0,items:t}:(t.type=t.type||"menu",t.animate=!0),t.renderTo?n.menu=t.parent(n).show().renderTo():n.menu=p.create(t).parent(n).renderTo(),n.fire("createmenu"),n.menu.reflow(),n.menu.on("cancel",function(e){e.control.parent()===n.menu&&(e.stopPropagation(),n.focus(),n.hideMenu())}),n.menu.on("select",function(){n.focus()}),n.menu.on("show hide",function(e){"hide"===e.type&&e.control.parent()===n&&n.classes.remove("opened-under"),e.control===n.menu&&(n.activeMenu("show"===e.type),n.classes.toggle("opened","show"===e.type)),n.aria("expanded","show"===e.type)}).fire("show")),n.menu.show(),n.menu.layoutRect({w:n.layoutRect().w}),n.menu.repaint(),n.menu.moveRel(n.getEl(),n.isRtl()?["br-tr","tr-br"]:["bl-tl","tl-bl"]);var r=n.menu.layoutRect(),i=n.$el.offset().top+n.layoutRect().h;i>r.y&&i<r.y+r.h&&n.classes.add("opened-under"),n.fire("showmenu")},hideMenu:function(){this.menu&&(this.menu.items().each(function(e){e.hideMenu&&e.hideMenu()}),this.menu.hide())},activeMenu:function(e){this.classes.toggle("active",e)},renderHtml:function(){var t,n=this._id,r=this.classPrefix,i=this.settings.icon,a=this.state.get("text"),o="";return(t=this.settings.image)?(i="none","string"!=typeof t&&(t=e.window.getSelection?t[0]:t[1]),t=" style=\"background-image: url('"+t+"')\""):t="",a&&(this.classes.add("btn-has-text"),o='<span class="'+r+'txt">'+this.encode(a)+"</span>"),i=this.settings.icon?r+"ico "+r+"i-"+i:"",this.aria("role",this.parent()instanceof Gr?"menuitem":"button"),'<div id="'+n+'" class="'+this.classes+'" tabindex="-1" aria-labelledby="'+n+'"><button id="'+n+'-open" role="presentation" type="button" tabindex="-1">'+(i?'<i class="'+i+'"'+t+"></i>":"")+o+' <i class="'+r+'caret"></i></button></div>'},postRender:function(){var e=this;return e.on("click",function(t){t.control===e&&function(e,t){for(;e;){if(t===e)return!0;e=e.parentNode}return!1}(t.target,e.getEl())&&(e.focus(),e.showMenu(!t.aria),t.aria&&e.menu.items().filter(":visible")[0].focus())}),e.on("mouseenter",function(t){var n,r=t.control,i=e.parent();r&&i&&r instanceof $r&&r.parent()===i&&(i.items().filter("MenuButton").each(function(e){e.hideMenu&&e!==r&&(e.menu&&e.menu.visible()&&(n=!0),e.hideMenu())}),n&&(r.focus(),r.showMenu()))}),e._super()},bindStates:function(){var e=this;return e.state.on("change:menu",function(){e.menu&&e.menu.remove(),e.menu=null}),e._super()},remove:function(){this._super(),this.menu&&this.menu.remove()}}),Kr=Lt.extend({Defaults:{defaultType:"menuitem",border:1,layout:"stack",role:"application",bodyRole:"menu",ariaRoot:!0},init:function(e){if(e.autohide=!0,e.constrainToViewport=!0,"function"==typeof e.items&&(e.itemsFactory=e.items,e.items=[]),e.itemDefaults)for(var t=e.items,n=t.length;n--;)t[n]=s.extend({},e.itemDefaults,t[n]);this._super(e),this.classes.add("menu"),e.animate&&11!==ce.ie&&this.classes.add("animate")},repaint:function(){return this.classes.toggle("menu-align",!0),this._super(),this.getEl().style.height="",this.getEl("body").style.height="",this},cancel:function(){this.hideAll(),this.fire("select")},load:function(){var e,t=this;function n(){t.throbber&&(t.throbber.hide(),t.throbber=null)}t.settings.itemsFactory&&(t.throbber||(t.throbber=new At(t.getEl("body"),!0),0===t.items().length?(t.throbber.show(),t.fire("loading")):t.throbber.show(100,function(){t.items().remove(),t.fire("loading")}),t.on("hide close",n)),t.requestTime=e=(new Date).getTime(),t.settings.itemsFactory(function(r){0!==r.length?t.requestTime===e&&(t.getEl().style.width="",t.getEl("body").style.width="",n(),t.items().remove(),t.getEl("body").innerHTML="",t.add(r),t.renderNew(),t.fire("loaded")):t.hide()}))},hideAll:function(){return this.find("menuitem").exec("hideMenu"),this._super()},preRender:function(){var e=this;return e.items().each(function(t){var n=t.settings;if(n.icon||n.image||n.selectable)return e._hasIcons=!0,!1}),e.settings.itemsFactory&&e.on("postrender",function(){e.settings.itemsFactory&&e.load()}),e.on("show hide",function(t){t.control===e&&("show"===t.type?k.setTimeout(function(){e.classes.add("in")},0):e.classes.remove("in"))}),e._super()}}),Qr=$r.extend({init:function(e){var t,n,r,i,a=this;a._super(e),e=a.settings,a._values=t=e.values,t&&(void 0!==e.value&&function t(i){for(var o=0;o<i.length;o++){if(n=i[o].selected||e.value===i[o].value)return r=r||i[o].text,a.state.set("value",i[o].value),!0;if(i[o].menu&&t(i[o].menu))return!0}}(t),!n&&t.length>0&&(r=t[0].text,a.state.set("value",t[0].value)),a.state.set("menu",t)),a.state.set("text",e.text||r),a.classes.add("listbox"),a.on("select",function(t){var n=t.control;i&&(t.lastControl=i),e.multiple?n.active(!n.active()):a.value(t.control.value()),i=n})},value:function(e){return 0===arguments.length?this.state.get("value"):void 0===e?this:(this.settings.values&&!function t(n){return $(n,function(n){return n.menu?t(n.menu):n.value===e})}(this.settings.values)?null===e&&this.state.set("value",null):this.state.set("value",e),this)},bindStates:function(){var e=this;return e.on("show",function(t){var n,r;n=t.control,r=e.value(),n instanceof Kr&&n.items().each(function(e){e.hasMenus()||e.active(e.value()===r)})}),e.state.on("change:value",function(t){var n=function e(t,n){var r;if(t)for(var i=0;i<t.length;i++){if(t[i].value===n)return t[i];if(t[i].menu&&(r=e(t[i].menu,n)))return r}}(e.state.get("menu"),t.value);n?e.text(n.text):e.text(e.settings.text)}),e._super()}}),Xr=Yt.extend({Defaults:{border:0,role:"menuitem"},init:function(e){var t;this._super(e),e=this.settings,this.classes.add("menu-item"),e.menu&&this.classes.add("menu-item-expand"),e.preview&&this.classes.add("menu-item-preview"),"-"!==(t=this.state.get("text"))&&"|"!==t||(this.classes.add("menu-item-sep"),this.aria("role","separator"),this.state.set("text","-")),e.selectable&&(this.aria("role","menuitemcheckbox"),this.classes.add("menu-item-checkbox"),e.icon="selected"),e.preview||e.selectable||this.classes.add("menu-item-normal"),this.on("mousedown",function(e){e.preventDefault()}),e.menu&&!e.ariaHideMenu&&this.aria("haspopup",!0)},hasMenus:function(){return!!this.settings.menu},showMenu:function(){var e,t=this,n=t.settings,r=t.parent();if(r.items().each(function(e){e!==t&&e.hideMenu()}),n.menu){(e=t.menu)?e.show():((e=n.menu).length?e={type:"menu",items:e}:e.type=e.type||"menu",r.settings.itemDefaults&&(e.itemDefaults=r.settings.itemDefaults),(e=t.menu=p.create(e).parent(t).renderTo()).reflow(),e.on("cancel",function(n){n.stopPropagation(),t.focus(),e.hide()}),e.on("show hide",function(e){e.control.items&&e.control.items().each(function(e){e.active(e.settings.selected)})}).fire("show"),e.on("hide",function(n){n.control===e&&t.classes.remove("selected")}),e.submenu=!0),e._parentMenu=r,e.classes.add("menu-sub");var i=e.testMoveRel(t.getEl(),t.isRtl()?["tl-tr","bl-br","tr-tl","br-bl"]:["tr-tl","br-bl","tl-tr","bl-br"]);e.moveRel(t.getEl(),i),e.rel=i,i="menu-sub-"+i,e.classes.remove(e._lastRel).add(i),e._lastRel=i,t.classes.add("selected"),t.aria("expanded",!0)}},hideMenu:function(){return this.menu&&(this.menu.items().each(function(e){e.hideMenu&&e.hideMenu()}),this.menu.hide(),this.aria("expanded",!1)),this},renderHtml:function(){var e,t=this._id,n=this.settings,r=this.classPrefix,i=this.state.get("text"),a=this.settings.icon,o="",s=n.shortcut,u=this.encode(n.url);function l(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function c(e){var t=n.match||"";return t?e.replace(new RegExp(l(t),"gi"),function(e){return"!mce~match["+e+"]mce~match!"}):e}function d(e){return e.replace(new RegExp(l("!mce~match["),"g"),"<b>").replace(new RegExp(l("]mce~match!"),"g"),"</b>")}return a&&this.parent().classes.add("menu-has-icons"),n.image&&(o=" style=\"background-image: url('"+n.image+"')\""),s&&(s=function(e){var t,n,r={};for(r=ce.mac?{alt:"&#x2325;",ctrl:"&#x2318;",shift:"&#x21E7;",meta:"&#x2318;"}:{meta:"Ctrl"},e=e.split("+"),t=0;t<e.length;t++)(n=r[e[t].toLowerCase()])&&(e[t]=n);return e.join("+")}(s)),a=r+"ico "+r+"i-"+(this.settings.icon||"none"),e="-"!==i?'<i class="'+a+'"'+o+"></i> ":"",i=d(this.encode(c(i))),u=d(this.encode(c(u))),'<div id="'+t+'" class="'+this.classes+'" tabindex="-1">'+e+("-"!==i?'<span id="'+t+'-text" class="'+r+'text">'+i+"</span>":"")+(s?'<div id="'+t+'-shortcut" class="'+r+'menu-shortcut">'+s+"</div>":"")+(n.menu?'<div class="'+r+'caret"></div>':"")+(u?'<div class="'+r+'menu-item-link">'+u+"</div>":"")+"</div>"},postRender:function(){var e=this,t=e.settings,n=t.textStyle;if("function"==typeof n&&(n=n.call(this)),n){var r=e.getEl("text");r&&(r.setAttribute("style",n),e._textStyle=n)}return e.on("mouseenter click",function(n){n.control===e&&(t.menu||"click"!==n.type?(e.showMenu(),n.aria&&e.menu.focus(!0)):(e.fire("select"),k.requestAnimationFrame(function(){e.parent().hideAll()})))}),e._super(),e},hover:function(){return this.parent().items().each(function(e){e.classes.remove("selected")}),this.classes.toggle("selected",!0),this},active:function(e){return function(e,t){var n=e._textStyle;if(n){var r=e.getEl("text");r.setAttribute("style",n),t&&(r.style.color="",r.style.backgroundColor="")}}(this,e),void 0!==e&&this.aria("checked",e),this._super(e)},remove:function(){this._super(),this.menu&&this.menu.remove()}}),Zr=Qt.extend({Defaults:{classes:"radio",role:"radio"}}),ei=Yt.extend({renderHtml:function(){var e=this.classPrefix;return this.classes.add("resizehandle"),"both"===this.settings.direction&&this.classes.add("resizehandle-both"),this.canFocus=!1,'<div id="'+this._id+'" class="'+this.classes+'"><i class="'+e+"ico "+e+'i-resize"></i></div>'},postRender:function(){var e=this;e._super(),e.resizeDragHelper=new ct(this._id,{start:function(){e.fire("ResizeStart")},drag:function(t){"both"!==e.settings.direction&&(t.deltaX=0),e.fire("Resize",t)},stop:function(){e.fire("ResizeEnd")}})},remove:function(){return this.resizeDragHelper&&this.resizeDragHelper.destroy(),this._super()}});function ti(e){var t="";if(e)for(var n=0;n<e.length;n++)t+='<option value="'+e[n]+'">'+e[n]+"</option>";return t}var ni=Yt.extend({Defaults:{classes:"selectbox",role:"selectbox",options:[]},init:function(e){var t=this;t._super(e),t.settings.size&&(t.size=t.settings.size),t.settings.options&&(t._options=t.settings.options),t.on("keydown",function(e){var n;13===e.keyCode&&(e.preventDefault(),t.parents().reverse().each(function(e){if(e.toJSON)return n=e,!1}),t.fire("submit",{data:n.toJSON()}))})},options:function(e){return arguments.length?(this.state.set("options",e),this):this.state.get("options")},renderHtml:function(){var e,t="";return e=ti(this._options),this.size&&(t=' size = "'+this.size+'"'),'<select id="'+this._id+'" class="'+this.classes+'"'+t+">"+e+"</select>"},bindStates:function(){var e=this;return e.state.on("change:options",function(t){e.getEl().innerHTML=ti(t.value)}),e._super()}});function ri(e,t,n){return e<t&&(e=t),e>n&&(e=n),e}function ii(e,t,n){e.setAttribute("aria-"+t,n)}function ai(e,t){var n,r,i,a,o;"v"===e.settings.orientation?(i="top",r="height",n="h"):(i="left",r="width",n="w"),o=e.getEl("handle"),a=((e.layoutRect()[n]||100)-we.getSize(o)[r])*((t-e._minValue)/(e._maxValue-e._minValue))+"px",o.style[i]=a,o.style.height=e.layoutRect().h+"px",ii(o,"valuenow",t),ii(o,"valuetext",""+e.settings.previewFilter(t)),ii(o,"valuemin",e._minValue),ii(o,"valuemax",e._maxValue)}var oi=Yt.extend({init:function(e){e.previewFilter||(e.previewFilter=function(e){return Math.round(100*e)/100}),this._super(e),this.classes.add("slider"),"v"===e.orientation&&this.classes.add("vertical"),this._minValue=J(e.minValue)?e.minValue:0,this._maxValue=J(e.maxValue)?e.maxValue:100,this._initValue=this.state.get("value")},renderHtml:function(){var e=this._id,t=this.classPrefix;return'<div id="'+e+'" class="'+this.classes+'"><div id="'+e+'-handle" class="'+t+'slider-handle" role="slider" tabindex="-1"></div></div>'},reset:function(){this.value(this._initValue).repaint()},postRender:function(){var e,t,n,r,i,a,o=this;e=o._minValue,t=o._maxValue,"v"===o.settings.orientation?(n="screenY",r="top",i="height",a="h"):(n="screenX",r="left",i="width",a="w"),o._super(),function(e,t){function n(n){var r,i;r=o.value(),r=ri(r=function(e,t,n){return n*(t-e)-e}(e,t,(r+(i=e))/(t-i)+.05*n),e,t),o.value(r),o.fire("dragstart",{value:r}),o.fire("drag",{value:r}),o.fire("dragend",{value:r})}o.on("keydown",function(e){switch(e.keyCode){case 37:case 38:n(-1);break;case 39:case 40:n(1)}})}(e,t),function(e,t,s){var u,l,c,d,f;o._dragHelper=new ct(o._id,{handle:o._id+"-handle",start:function(e){u=e[n],l=parseInt(o.getEl("handle").style[r],10),c=(o.layoutRect()[a]||100)-we.getSize(s)[i],o.fire("dragstart",{value:f})},drag:function(i){var a=i[n]-u;d=ri(l+a,0,c),s.style[r]=d+"px",f=e+d/c*(t-e),o.value(f),o.tooltip().text(""+o.settings.previewFilter(f)).show().moveRel(s,"bc tc"),o.fire("drag",{value:f})},stop:function(){o.tooltip().hide(),o.fire("dragend",{value:f})}})}(e,t,o.getEl("handle"))},repaint:function(){this._super(),ai(this,this.value())},bindStates:function(){var e=this;return e.state.on("change:value",function(t){ai(e,t.value)}),e._super()}}),si=Yt.extend({renderHtml:function(){return this.classes.add("spacer"),this.canFocus=!1,'<div id="'+this._id+'" class="'+this.classes+'"></div>'}}),ui=$r.extend({Defaults:{classes:"widget btn splitbtn",role:"button"},repaint:function(){var e,t,n=this.getEl(),r=this.layoutRect();return this._super(),e=n.firstChild,t=n.lastChild,ye(e).css({width:r.w-we.getSize(t).width,height:r.h-2}),ye(t).css({height:r.h-2}),this},activeMenu:function(e){ye(this.getEl().lastChild).toggleClass(this.classPrefix+"active",e)},renderHtml:function(){var t,n,r=this._id,i=this.classPrefix,a=this.state.get("icon"),o=this.state.get("text"),s=this.settings,u="";return(t=s.image)?(a="none","string"!=typeof t&&(t=e.window.getSelection?t[0]:t[1]),t=" style=\"background-image: url('"+t+"')\""):t="",a=s.icon?i+"ico "+i+"i-"+a:"",o&&(this.classes.add("btn-has-text"),u='<span class="'+i+'txt">'+this.encode(o)+"</span>"),n="boolean"==typeof s.active?' aria-pressed="'+s.active+'"':"",'<div id="'+r+'" class="'+this.classes+'" role="button"'+n+' tabindex="-1"><button type="button" hidefocus="1" tabindex="-1">'+(a?'<i class="'+a+'"'+t+"></i>":"")+u+'</button><button type="button" class="'+i+'open" hidefocus="1" tabindex="-1">'+(this._menuBtnText?(a?" ":"")+this._menuBtnText:"")+' <i class="'+i+'caret"></i></button></div>'},postRender:function(){var e=this.settings.onclick;return this.on("click",function(t){var n=t.target;if(t.control===this)for(;n;){if(t.aria&&"down"!==t.aria.key||"BUTTON"===n.nodeName&&-1===n.className.indexOf("open"))return t.stopImmediatePropagation(),void(e&&e.call(this,t));n=n.parentNode}}),delete this.settings.onclick,this._super()}}),li=mr.extend({Defaults:{containerClass:"stack-layout",controlClass:"stack-layout-item",endClass:"break"},isNative:function(){return!0}}),ci=gt.extend({Defaults:{layout:"absolute",defaults:{type:"panel"}},activateTab:function(e){var t;this.activeTabId&&(t=this.getEl(this.activeTabId),ye(t).removeClass(this.classPrefix+"active"),t.setAttribute("aria-selected","false")),this.activeTabId="t"+e,(t=this.getEl("t"+e)).setAttribute("aria-selected","true"),ye(t).addClass(this.classPrefix+"active"),this.items()[e].show().fire("showtab"),this.reflow(),this.items().each(function(t,n){e!==n&&t.hide()})},renderHtml:function(){var e=this,t=e._layout,n="",r=e.classPrefix;return e.preRender(),t.preRender(e),e.items().each(function(t,i){var a=e._id+"-t"+i;t.aria("role","tabpanel"),t.aria("labelledby",a),n+='<div id="'+a+'" class="'+r+'tab" unselectable="on" role="tab" aria-controls="'+t._id+'" aria-selected="false" tabIndex="-1">'+e.encode(t.settings.title)+"</div>"}),'<div id="'+e._id+'" class="'+e.classes+'" hidefocus="1" tabindex="-1"><div id="'+e._id+'-head" class="'+r+'tabs" role="tablist">'+n+'</div><div id="'+e._id+'-body" class="'+e.bodyClasses+'">'+t.renderHtml(e)+"</div></div>"},postRender:function(){var e=this;e._super(),e.settings.activeTab=e.settings.activeTab||0,e.activateTab(e.settings.activeTab),this.on("click",function(t){var n=t.target.parentNode;if(n&&n.id===e._id+"-head")for(var r=n.childNodes.length;r--;)n.childNodes[r]===t.target&&e.activateTab(r)})},initLayoutRect:function(){var e,t,n;t=(t=we.getSize(this.getEl("head")).width)<0?0:t,n=0,this.items().each(function(e){t=Math.max(t,e.layoutRect().minW),n=Math.max(n,e.layoutRect().minH)}),this.items().each(function(e){e.settings.x=0,e.settings.y=0,e.settings.w=t,e.settings.h=n,e.layoutRect({x:0,y:0,w:t,h:n})});var r=we.getSize(this.getEl("head")).height;return this.settings.minWidth=t,this.settings.minHeight=n+r,(e=this._super()).deltaH+=r,e.innerH=e.h-e.deltaH,e}}),di=Yt.extend({init:function(e){var t=this;t._super(e),t.classes.add("textbox"),e.multiline?t.classes.add("multiline"):(t.on("keydown",function(e){var n;13===e.keyCode&&(e.preventDefault(),t.parents().reverse().each(function(e){if(e.toJSON)return n=e,!1}),t.fire("submit",{data:n.toJSON()}))}),t.on("keyup",function(e){t.state.set("value",e.target.value)}))},repaint:function(){var t,n,r,i,a,o=0;t=this.getEl().style,n=this._layoutRect,a=this._lastRepaintRect||{};var s=e.document;return!this.settings.multiline&&s.all&&(!s.documentMode||s.documentMode<=8)&&(t.lineHeight=n.h-o+"px"),i=(r=this.borderBox).left+r.right+8,o=r.top+r.bottom+(this.settings.multiline?8:0),n.x!==a.x&&(t.left=n.x+"px",a.x=n.x),n.y!==a.y&&(t.top=n.y+"px",a.y=n.y),n.w!==a.w&&(t.width=n.w-i+"px",a.w=n.w),n.h!==a.h&&(t.height=n.h-o+"px",a.h=n.h),this._lastRepaintRect=a,this.fire("repaint",{},!1),this},renderHtml:function(){var e,t,n=this.settings;return e={id:this._id,hidefocus:"1"},s.each(["rows","spellcheck","maxLength","size","readonly","min","max","step","list","pattern","placeholder","required","multiple"],function(t){e[t]=n[t]}),this.disabled()&&(e.disabled="disabled"),n.subtype&&(e.type=n.subtype),(t=we.create(n.multiline?"textarea":"input",e)).value=this.state.get("value"),t.className=this.classes.toString(),t.outerHTML},value:function(e){return arguments.length?(this.state.set("value",e),this):(this.state.get("rendered")&&this.state.set("value",this.getEl().value),this.state.get("value"))},postRender:function(){var e=this;e.getEl().value=e.state.get("value"),e._super(),e.$el.on("change",function(t){e.state.set("value",t.target.value),e.fire("change",t)})},bindStates:function(){var e=this;return e.state.on("change:value",function(t){e.getEl().value!==t.value&&(e.getEl().value=t.value)}),e.state.on("change:disabled",function(t){e.getEl().disabled=t.value}),e._super()},remove:function(){this.$el.off(),this._super()}}),fi=function(){return{Selector:je,Collection:Ue,ReflowQueue:Qe,Control:it,Factory:p,KeyboardNavigation:ot,Container:ut,DragHelper:ct,Scrollable:pt,Panel:gt,Movable:Ae,Resizable:_t,FloatPanel:Lt,Window:jt,MessageBox:zt,Tooltip:St,Widget:Yt,Progress:Nt,Notification:Pt,Layout:qt,AbsoluteLayout:Vt,Button:Gt,ButtonGroup:Kt,Checkbox:Qt,ComboBox:Zt,ColorBox:en,PanelButton:tn,ColorButton:rn,ColorPicker:on,Path:un,ElementPath:ln,FormItem:cn,Form:dn,FieldSet:fn,FilePicker:cr,FitLayout:dr,FlexLayout:fr,FlowLayout:mr,FormatControls:Wr,GridLayout:Ur,Iframe:zr,InfoBox:Jr,Label:qr,Toolbar:Vr,MenuBar:Gr,MenuButton:$r,MenuItem:Xr,Throbber:At,Menu:Kr,ListBox:Qr,Radio:Zr,ResizeHandle:ei,SelectBox:ni,Slider:oi,Spacer:si,SplitButton:ui,StackLayout:li,TabPanel:ci,TextBox:di,DropZone:sn,BrowseButton:$t}},mi=function(e){e.ui?s.each(fi(),function(t,n){e.ui[n]=t}):e.ui=fi()};s.each(fi(),function(e,t){p.add(t,e)}),mi(window.tinymce?window.tinymce:{}),a.add("modern",function(e){return Wr.setup(e),Jt(e)})}(window)},oCzW:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},oo1B:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},ooba:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},pfs9:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},"q/hF":function(e,t,n){n("Wlyy")},qkKv:function(e,t,n){var r=n("FeBl"),i=r.JSON||(r.JSON={stringify:JSON.stringify});e.exports=function(e){return i.stringify.apply(i,arguments)}},qyJz:function(e,t,n){"use strict";var r=n("+ZMJ"),i=n("kM2E"),a=n("sB3e"),o=n("msXi"),s=n("Mhyx"),u=n("QRG4"),l=n("fBQ2"),c=n("3fs2");i(i.S+i.F*!n("dY0y")(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,d,f=a(e),m="function"==typeof this?this:Array,h=arguments.length,p=h>1?arguments[1]:void 0,g=void 0!==p,_=0,v=c(f);if(g&&(p=r(p,h>2?arguments[2]:void 0,2)),void 0==v||m==Array&&s(v))for(n=new m(t=u(f.length));t>_;_++)l(n,_,g?p(f[_],_):f[_]);else for(d=v.call(f),n=new m;!(i=d.next()).done;_++)l(n,_,g?o(d,p,[i.value,_],!0):i.value);return n.length=_,n}})},rIuo:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},rMbQ:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},rtsW:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},sqLM:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},ssxj:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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],i=/^(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 a(e){return e>1&&e<5&&1!=~~(e/10)}function o(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?i+(a(e)?"sekundy":"sekund"):i+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?i+(a(e)?"minuty":"minut"):i+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?i+(a(e)?"hodiny":"hodin"):i+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?i+(a(e)?"dny":"dní"):i+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?i+(a(e)?"měsíce":"měsíců"):i+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?i+(a(e)?"roky":"let"):i+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:i,monthsShortRegex:i,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("PJh5"))},svD2:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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 i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};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("PJh5"))},tkWw:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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,i,a,o){var s=t(r),u=n[e][t(r)];return 2===s&&(u=u[i?0:1]),u.replace(/%d/i,r)}},i=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-dz",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}})})(n("PJh5"))},tzHd:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},u5VQ:function(e,t){e.exports="data:image/png;base64, "},uSe8:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},ulq9:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n){var r,i;return"m"===n?t?"минута":"минуту":e+" "+(r=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[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("PJh5"))},upln:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
function t(e){return e%100==11||e%10!=1}function n(e,n,r,i){var a=e+" ";switch(r){case"s":return n||i?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?a+(n||i?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?a+(n||i?"mínútur":"mínútum"):n?a+"mínúta":a+"mínútu";case"hh":return t(e)?a+(n||i?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":i?"dag":"degi";case"dd":return t(e)?n?a+"dagar":a+(i?"daga":"dögum"):n?a+"dagur":a+(i?"dag":"degi");case"M":return n?"mánuður":i?"mánuð":"mánuði";case"MM":return t(e)?n?a+"mánuðir":a+(i?"mánuði":"mánuðum"):n?a+"mánuður":a+(i?"mánuð":"mánuði");case"y":return n||i?"ár":"ári";case"yy":return t(e)?a+(n||i?"ár":"árum"):a+(n||i?"á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("PJh5"))},uslO:function(e,t,n){var r={"./af":"3CJN","./af.js":"3CJN","./ar":"3MVc","./ar-dz":"tkWw","./ar-dz.js":"tkWw","./ar-kw":"j8cJ","./ar-kw.js":"j8cJ","./ar-ly":"wPpW","./ar-ly.js":"wPpW","./ar-ma":"dURR","./ar-ma.js":"dURR","./ar-sa":"7OnE","./ar-sa.js":"7OnE","./ar-tn":"BEem","./ar-tn.js":"BEem","./ar.js":"3MVc","./az":"eHwN","./az.js":"eHwN","./be":"3hfc","./be.js":"3hfc","./bg":"lOED","./bg.js":"lOED","./bm":"hng5","./bm.js":"hng5","./bn":"aM0x","./bn-bd":"1C9R","./bn-bd.js":"1C9R","./bn.js":"aM0x","./bo":"w2Hs","./bo.js":"w2Hs","./br":"OSsP","./br.js":"OSsP","./bs":"aqvp","./bs.js":"aqvp","./ca":"wIgY","./ca.js":"wIgY","./cs":"ssxj","./cs.js":"ssxj","./cv":"N3vo","./cv.js":"N3vo","./cy":"ZFGz","./cy.js":"ZFGz","./da":"YBA/","./da.js":"YBA/","./de":"DOkx","./de-at":"8v14","./de-at.js":"8v14","./de-ch":"Frex","./de-ch.js":"Frex","./de.js":"DOkx","./dv":"rIuo","./dv.js":"rIuo","./el":"CFqe","./el.js":"CFqe","./en-au":"Sjoy","./en-au.js":"Sjoy","./en-ca":"Tqun","./en-ca.js":"Tqun","./en-gb":"hPuz","./en-gb.js":"hPuz","./en-ie":"ALEw","./en-ie.js":"ALEw","./en-il":"QZk1","./en-il.js":"QZk1","./en-in":"yJfC","./en-in.js":"yJfC","./en-nz":"dyB6","./en-nz.js":"dyB6","./en-sg":"NYST","./en-sg.js":"NYST","./eo":"Nd3h","./eo.js":"Nd3h","./es":"LT9G","./es-do":"7MHZ","./es-do.js":"7MHZ","./es-mx":"USNP","./es-mx.js":"USNP","./es-us":"INcR","./es-us.js":"INcR","./es.js":"LT9G","./et":"XlWM","./et.js":"XlWM","./eu":"sqLM","./eu.js":"sqLM","./fa":"2pmY","./fa.js":"2pmY","./fi":"nS2h","./fi.js":"nS2h","./fil":"rMbQ","./fil.js":"rMbQ","./fo":"OVPi","./fo.js":"OVPi","./fr":"tzHd","./fr-ca":"bXQP","./fr-ca.js":"bXQP","./fr-ch":"VK9h","./fr-ch.js":"VK9h","./fr.js":"tzHd","./fy":"g7KF","./fy.js":"g7KF","./ga":"U5Iz","./ga.js":"U5Iz","./gd":"nLOz","./gd.js":"nLOz","./gl":"FuaP","./gl.js":"FuaP","./gom-deva":"VGQH","./gom-deva.js":"VGQH","./gom-latn":"+27R","./gom-latn.js":"+27R","./gu":"rtsW","./gu.js":"rtsW","./he":"Nzt2","./he.js":"Nzt2","./hi":"ETHv","./hi.js":"ETHv","./hr":"V4qH","./hr.js":"V4qH","./hu":"xne+","./hu.js":"xne+","./hy-am":"GrS7","./hy-am.js":"GrS7","./id":"yRTJ","./id.js":"yRTJ","./is":"upln","./is.js":"upln","./it":"FKXc","./it-ch":"/E8D","./it-ch.js":"/E8D","./it.js":"FKXc","./ja":"ORgI","./ja.js":"ORgI","./jv":"JwiF","./jv.js":"JwiF","./ka":"RnJI","./ka.js":"RnJI","./kk":"j+vx","./kk.js":"j+vx","./km":"5j66","./km.js":"5j66","./kn":"gEQe","./kn.js":"gEQe","./ko":"eBB/","./ko.js":"eBB/","./ku":"kI9l","./ku.js":"kI9l","./ky":"6cf8","./ky.js":"6cf8","./lb":"z3hR","./lb.js":"z3hR","./lo":"nE8X","./lo.js":"nE8X","./lt":"/6P1","./lt.js":"/6P1","./lv":"jxEH","./lv.js":"jxEH","./me":"svD2","./me.js":"svD2","./mi":"gEU3","./mi.js":"gEU3","./mk":"Ab7C","./mk.js":"Ab7C","./ml":"oo1B","./ml.js":"oo1B","./mn":"CqHt","./mn.js":"CqHt","./mr":"5vPg","./mr.js":"5vPg","./ms":"ooba","./ms-my":"G++c","./ms-my.js":"G++c","./ms.js":"ooba","./mt":"oCzW","./mt.js":"oCzW","./my":"F+2e","./my.js":"F+2e","./nb":"FlzV","./nb.js":"FlzV","./ne":"/mhn","./ne.js":"/mhn","./nl":"3K28","./nl-be":"Bp2f","./nl-be.js":"Bp2f","./nl.js":"3K28","./nn":"C7av","./nn.js":"C7av","./oc-lnc":"KOFO","./oc-lnc.js":"KOFO","./pa-in":"pfs9","./pa-in.js":"pfs9","./pl":"7LV+","./pl.js":"7LV+","./pt":"ZoSI","./pt-br":"AoDM","./pt-br.js":"AoDM","./pt.js":"ZoSI","./ro":"wT5f","./ro.js":"wT5f","./ru":"ulq9","./ru.js":"ulq9","./sd":"fW1y","./sd.js":"fW1y","./se":"5Omq","./se.js":"5Omq","./si":"Lgqo","./si.js":"Lgqo","./sk":"OUMt","./sk.js":"OUMt","./sl":"2s1U","./sl.js":"2s1U","./sq":"V0td","./sq.js":"V0td","./sr":"f4W3","./sr-cyrl":"c1x4","./sr-cyrl.js":"c1x4","./sr.js":"f4W3","./ss":"7Q8x","./ss.js":"7Q8x","./sv":"Fpqq","./sv.js":"Fpqq","./sw":"DSXN","./sw.js":"DSXN","./ta":"+7/x","./ta.js":"+7/x","./te":"Nlnz","./te.js":"Nlnz","./tet":"gUgh","./tet.js":"gUgh","./tg":"5SNd","./tg.js":"5SNd","./th":"XzD+","./th.js":"XzD+","./tk":"+WRH","./tk.js":"+WRH","./tl-ph":"3LKG","./tl-ph.js":"3LKG","./tlh":"m7yE","./tlh.js":"m7yE","./tr":"k+5o","./tr.js":"k+5o","./tzl":"iNtv","./tzl.js":"iNtv","./tzm":"FRPF","./tzm-latn":"krPU","./tzm-latn.js":"krPU","./tzm.js":"FRPF","./ug-cn":"To0v","./ug-cn.js":"To0v","./uk":"ntHu","./uk.js":"ntHu","./ur":"uSe8","./ur.js":"uSe8","./uz":"XU1s","./uz-latn":"/bsm","./uz-latn.js":"/bsm","./uz.js":"XU1s","./vi":"0X8Q","./vi.js":"0X8Q","./x-pseudo":"e/KL","./x-pseudo.js":"e/KL","./yo":"YXlc","./yo.js":"YXlc","./zh-cn":"Vz2w","./zh-cn.js":"Vz2w","./zh-hk":"ZUyn","./zh-hk.js":"ZUyn","./zh-mo":"+WA1","./zh-mo.js":"+WA1","./zh-tw":"BbgG","./zh-tw.js":"BbgG"};function i(e){return n(a(e))}function a(e){var t=r[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id="uslO"},w2Hs:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},wIgY:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},wPpW:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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 عام"]},i=function(e){return function(t,i,a,o){var s=n(t),u=r[e][n(t)];return 2===s&&(u=u[i?0:1]),u.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{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: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,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})(n("PJh5"))},wSDZ:function(e,t){},wT5f:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},"xne+":function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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 i=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return i+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return i+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return i+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return i+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return i+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return i+(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("PJh5"))},yJfC:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},yRTJ:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
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("PJh5"))},yXOt:function(e,t,n){n("L8UZ")},z3hR:function(e,t,n){(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var i={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?i[n][0]:i[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("PJh5"))}});