mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-12 01:40:30 +08:00
0c56a3e599
Made-with: Cursor Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
34 lines
1.1 MiB
Plaintext
34 lines
1.1 MiB
Plaintext
(window["webpackJsonp_heat-analysis-portal"]=window["webpackJsonp_heat-analysis-portal"]||[]).push([["chunk-52fc598a"],{"010e":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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}});return e}))},"02fb":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t,e){return 12===t&&(t=0),"രാത്രി"===e&&t>=4||"ഉച്ച കഴിഞ്ഞ്"===e||"വൈകുന്നേരം"===e?t+12:t},meridiem:function(t,e,n){return t<4?"രാത്രി":t<12?"രാവിലെ":t<17?"ഉച്ച കഴിഞ്ഞ്":t<20?"വൈകുന്നേരം":"രാത്രി"}});return e}))},"03ec":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t){var e=/сехет$/i.exec(t)?"рен":/ҫул$/i.exec(t)?"тан":"ран";return t+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}});return e}))},"0558":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";function e(t){return t%100===11||t%10!==1}function n(t,n,i,r){var a=t+" ";switch(i){case"s":return n||r?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return e(t)?a+(n||r?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return e(t)?a+(n||r?"mínútur":"mínútum"):n?a+"mínúta":a+"mínútu";case"hh":return e(t)?a+(n||r?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":r?"dag":"degi";case"dd":return e(t)?n?a+"dagar":a+(r?"daga":"dögum"):n?a+"dagur":a+(r?"dag":"degi");case"M":return n?"mánuður":r?"mánuð":"mánuði";case"MM":return e(t)?n?a+"mánuðir":a+(r?"mánuði":"mánuðum"):n?a+"mánuður":a+(r?"mánuð":"mánuði");case"y":return n||r?"ár":"ári";case"yy":return e(t)?a+(n||r?"ár":"árum"):a+(n||r?"ár":"ári")}}var i=t.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}});return i}))},"0721":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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}});return e}))},"079e":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("ja",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(t){return"午後"===t},meridiem:function(t,e,n){return t<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(t){return t.week()<this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(t){return this.week()<t.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";default:return t}},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年"}});return e}))},"0a3c":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e="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("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,a=t.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,i){return t?/-MMM-/.test(i)?n[t.month()]:e[t.month()]:e},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return a}))},"0a84":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}});return e}))},"0caa":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";function e(t,e,n,i){var r={s:["thodde secondanim","thodde second"],ss:[t+" secondanim",t+" second"],m:["eka mintan","ek minute"],mm:[t+" mintanim",t+" mintam"],h:["eka voran","ek vor"],hh:[t+" voranim",t+" voram"],d:["eka disan","ek dis"],dd:[t+" disanim",t+" dis"],M:["eka mhoinean","ek mhoino"],MM:[t+" mhoineanim",t+" mhoine"],y:["eka vorsan","ek voros"],yy:[t+" vorsanim",t+" vorsam"]};return e?r[n][0]:r[n][1]}var n=t.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(t,e){switch(e){case"D":return t+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return t}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(t,e){return 12===t&&(t=0),"rati"===e?t<4?t:t+12:"sokalli"===e?t:"donparam"===e?t>12?t:t+12:"sanje"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"rati":t<12?"sokalli":t<16?"donparam":t<20?"sanje":"rati"}});return n}))},"0e49":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}});return e}))},"0e6b":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t){var e=t%10,n=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n},week:{dow:1,doy:4}});return e}))},"0e81":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={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ı"},n=t.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(t,n){switch(n){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'ıncı";var i=t%10,r=t%100-i,a=t>=100?100:null;return t+(e[i]||e[r]||e[a])}},week:{dow:1,doy:7}});return n}))},"0f14":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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}});return e}))},"0f38":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t){return t},week:{dow:1,doy:4}});return e}))},"0ff2":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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}});return e}))},"10e8":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t){return"หลังเที่ยง"===t},meridiem:function(t,e,n){return t<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 ปี"}});return e}))},"13e9":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,n,i){var r=e.words[i];return 1===i.length?n?r[0]:r[1]:t+" "+e.correctGrammaticalCase(t,r)}},n=t.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){var t=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return t[this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"дан",dd:e.translate,M:"месец",MM:e.translate,y:"годину",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},"1b45":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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}});return e}))},"1cfd":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%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 عام"]},r=function(t){return function(e,r,a,s){var o=n(e),l=i[t][n(e)];return 2===o&&(l=l[r?0:1]),l.replace(/%d/i,e)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],s=t.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(t){return"م"===t},meridiem:function(t,e,n){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return s}))},"1fb5":function(t,e,n){"use strict";e.byteLength=c,e.toByteArray=d,e.fromByteArray=p;for(var i=[],r=[],a="undefined"!==typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,l=s.length;o<l;++o)i[o]=s[o],r[s.charCodeAt(o)]=o;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var i=n===e?0:4-n%4;return[n,i]}function c(t){var e=u(t),n=e[0],i=e[1];return 3*(n+i)/4-i}function h(t,e,n){return 3*(e+n)/4-n}function d(t){var e,n,i=u(t),s=i[0],o=i[1],l=new a(h(t,s,o)),c=0,d=o>0?s-4:s;for(n=0;n<d;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],l[c++]=e>>16&255,l[c++]=e>>8&255,l[c++]=255&e;return 2===o&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,l[c++]=255&e),1===o&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e),l}function f(t){return i[t>>18&63]+i[t>>12&63]+i[t>>6&63]+i[63&t]}function m(t,e,n){for(var i,r=[],a=e;a<n;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),r.push(f(i));return r.join("")}function p(t){for(var e,n=t.length,r=n%3,a=[],s=16383,o=0,l=n-r;o<l;o+=s)a.push(m(t,o,o+s>l?l:o+s));return 1===r?(e=t[n-1],a.push(i[e>>2]+i[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],a.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"=")),a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},"1fc1":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";function e(t,e){var n=t.split("_");return e%10===1&&e%100!==11?n[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?n[1]:n[2]}function n(t,n,i){var r={ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===i?n?"хвіліна":"хвіліну":"h"===i?n?"гадзіна":"гадзіну":t+" "+e(r[i],+t)}var i=t.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(t){return/^(дня|вечара)$/.test(t)},meridiem:function(t,e,n){return t<4?"ночы":t<12?"раніцы":t<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t%10!==2&&t%10!==3||t%100===12||t%100===13?t+"-ы":t+"-і";case"D":return t+"-га";default:return t}},week:{dow:1,doy:7}});return i}))},"201b":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(t){return/(წამი|წუთი|საათი|წელი)/.test(t)?t.replace(/ი$/,"ში"):t+"ში"},past:function(t){return/(წამი|წუთი|საათი|დღე|თვე)/.test(t)?t.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(t)?t.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(t){return 0===t?t:1===t?t+"-ლი":t<20||t<=100&&t%20===0||t%100===0?"მე-"+t:t+"-ე"},week:{dow:1,doy:7}});return e}))},"22f8":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t,e){switch(e){case"d":case"D":case"DDD":return t+"일";case"M":return t+"월";case"w":case"W":return t+"주";default:return t}},meridiemParse:/오전|오후/,isPM:function(t){return"오후"===t},meridiem:function(t,e,n){return t<12?"오전":"오후"}});return e}))},2421:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},i=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"],r=t.defineLocale("ku",{months:i,monthsShort:i,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(t){return/ئێواره/.test(t)},meridiem:function(t,e,n){return t<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(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(t){return n[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return r}))},2554:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";function e(t,e,n){var i=t+" ";switch(n){case"ss":return i+=1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi",i;case"m":return e?"jedna minuta":"jedne minute";case"mm":return i+=1===t?"minuta":2===t||3===t||4===t?"minute":"minuta",i;case"h":return e?"jedan sat":"jednog sata";case"hh":return i+=1===t?"sat":2===t||3===t||4===t?"sata":"sati",i;case"dd":return i+=1===t?"dan":"dana",i;case"MM":return i+=1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci",i;case"yy":return i+=1===t?"godina":2===t||3===t||4===t?"godine":"godina",i}}var n=t.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:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},"26f9":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={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(t,e,n,i){return e?"kelios sekundės":i?"kelių sekundžių":"kelias sekundes"}function i(t,e,n,i){return e?a(n)[0]:i?a(n)[1]:a(n)[2]}function r(t){return t%10===0||t>10&&t<20}function a(t){return e[t].split("_")}function s(t,e,n,s){var o=t+" ";return 1===t?o+i(t,e,n[0],s):e?o+(r(t)?a(n)[1]:a(n)[0]):s?o+a(n)[1]:o+(r(t)?a(n)[1]:a(n)[2])}var o=t.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:n,ss:s,m:i,mm:s,h:i,hh:s,d:i,dd:s,M:i,MM:s,y:i,yy:s},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(t){return t+"-oji"},week:{dow:1,doy:4}});return o}))},2921:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(t){return/^ch$/i.test(t)},meridiem:function(t,e,n){return t<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 rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}});return e}))},"293c":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={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(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,n,i){var r=e.words[i];return 1===i.length?n?r[0]:r[1]:t+" "+e.correctGrammaticalCase(t,r)}},n=t.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(){var t=["[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"];return t[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mjesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},"2bfb":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t){return/^nm$/i.test(t)},meridiem:function(t,e,n){return t<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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}});return e}))},"2e8c":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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}});return e}))},3886:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t){var e=t%10,n=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}});return e}))},"39a6":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t){var e=t%10,n=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n},week:{dow:1,doy:4}});return e}))},"39bd":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function i(t,e,n,i){var r="";if(e)switch(n){case"s":r="काही सेकंद";break;case"ss":r="%d सेकंद";break;case"m":r="एक मिनिट";break;case"mm":r="%d मिनिटे";break;case"h":r="एक तास";break;case"hh":r="%d तास";break;case"d":r="एक दिवस";break;case"dd":r="%d दिवस";break;case"M":r="एक महिना";break;case"MM":r="%d महिने";break;case"y":r="एक वर्ष";break;case"yy":r="%d वर्षे";break}else switch(n){case"s":r="काही सेकंदां";break;case"ss":r="%d सेकंदां";break;case"m":r="एका मिनिटा";break;case"mm":r="%d मिनिटां";break;case"h":r="एका तासा";break;case"hh":r="%d तासां";break;case"d":r="एका दिवसा";break;case"dd":r="%d दिवसां";break;case"M":r="एका महिन्या";break;case"MM":r="%d महिन्यां";break;case"y":r="एका वर्षा";break;case"yy":r="%d वर्षां";break}return r.replace(/%d/i,t)}var r=t.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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(t,e){return 12===t&&(t=0),"रात्री"===e?t<4?t:t+12:"सकाळी"===e?t:"दुपारी"===e?t>=10?t:t+12:"सायंकाळी"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"रात्री":t<10?"सकाळी":t<17?"दुपारी":t<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}});return r}))},"3a39":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},i=t.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(t){return t.replace(/[१२३४५६७८९०]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(t,e){return 12===t&&(t=0),"राति"===e?t<4?t:t+12:"बिहान"===e?t:"दिउँसो"===e?t>=10?t:t+12:"साँझ"===e?t+12:void 0},meridiem:function(t,e,n){return t<3?"राति":t<12?"बिहान":t<16?"दिउँसो":t<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}});return i}))},"3b1b":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"},n=t.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(t,e){return 12===t&&(t=0),"шаб"===e?t<4?t:t+12:"субҳ"===e?t:"рӯз"===e?t>=11?t:t+12:"бегоҳ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"шаб":t<11?"субҳ":t<16?"рӯз":t<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(t){var n=t%10,i=t>=100?100:null;return t+(e[t]||e[n]||e[i])},week:{dow:1,doy:7}});return n}))},"3c0d":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e="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("_"),i=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],r=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function a(t){return t>1&&t<5&&1!==~~(t/10)}function s(t,e,n,i){var r=t+" ";switch(n){case"s":return e||i?"pár sekund":"pár sekundami";case"ss":return e||i?r+(a(t)?"sekundy":"sekund"):r+"sekundami";case"m":return e?"minuta":i?"minutu":"minutou";case"mm":return e||i?r+(a(t)?"minuty":"minut"):r+"minutami";case"h":return e?"hodina":i?"hodinu":"hodinou";case"hh":return e||i?r+(a(t)?"hodiny":"hodin"):r+"hodinami";case"d":return e||i?"den":"dnem";case"dd":return e||i?r+(a(t)?"dny":"dní"):r+"dny";case"M":return e||i?"měsíc":"měsícem";case"MM":return e||i?r+(a(t)?"měsíce":"měsíců"):r+"měsíci";case"y":return e||i?"rok":"rokem";case"yy":return e||i?r+(a(t)?"roky":"let"):r+"lety"}}var o=t.defineLocale("cs",{months:e,monthsShort:n,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,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:s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return o}))},"3de5":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"},i=t.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(t){return t+"வது"},preparse:function(t){return t.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(t,e,n){return t<2?" யாமம்":t<6?" வைகறை":t<10?" காலை":t<14?" நண்பகல்":t<18?" எற்பாடு":t<22?" மாலை":" யாமம்"},meridiemHour:function(t,e){return 12===t&&(t=0),"யாமம்"===e?t<2?t:t+12:"வைகறை"===e||"காலை"===e?t:"நண்பகல்"===e&&t>=10?t:t+12},week:{dow:0,doy:6}});return i}))},"3e92":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"},i=t.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(t){return t.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(t,e){return 12===t&&(t=0),"ರಾತ್ರಿ"===e?t<4?t:t+12:"ಬೆಳಿಗ್ಗೆ"===e?t:"ಮಧ್ಯಾಹ್ನ"===e?t>=10?t:t+12:"ಸಂಜೆ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"ರಾತ್ರಿ":t<10?"ಬೆಳಿಗ್ಗೆ":t<17?"ಮಧ್ಯಾಹ್ನ":t<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(t){return t+"ನೇ"},week:{dow:0,doy:6}});return i}))},"423e":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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}});return e}))},"440c":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";function e(t,e,n,i){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return e?r[n][0]:r[n][1]}function n(t){var e=t.substr(0,t.indexOf(" "));return r(e)?"a "+t:"an "+t}function i(t){var e=t.substr(0,t.indexOf(" "));return r(e)?"viru "+t:"virun "+t}function r(t){if(t=parseInt(t,10),isNaN(t))return!1;if(t<0)return!0;if(t<10)return 4<=t&&t<=7;if(t<100){var e=t%10,n=t/10;return r(0===e?n:e)}if(t<1e4){while(t>=10)t/=10;return r(t)}return t/=1e3,r(t)}var a=t.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:n,past:i,s:"e puer Sekonnen",ss:"%d Sekonnen",m:e,mm:"%d Minutten",h:e,hh:"%d Stonnen",d:e,dd:"%d Deeg",M:e,MM:"%d Méint",y:e,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a}))},"485c":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={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ı"},n=t.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(t){return/^(gündüz|axşam)$/.test(t)},meridiem:function(t,e,n){return t<4?"gecə":t<12?"səhər":t<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(t){if(0===t)return t+"-ıncı";var n=t%10,i=t%100-n,r=t>=100?100:null;return t+(e[n]||e[i]||e[r])},week:{dow:1,doy:7}});return n}))},"49ab":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,n){var i=100*t+e;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},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 年"}});return e}))},"4ba9":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";function e(t,e,n){var i=t+" ";switch(n){case"ss":return i+=1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi",i;case"m":return e?"jedna minuta":"jedne minute";case"mm":return i+=1===t?"minuta":2===t||3===t||4===t?"minute":"minuta",i;case"h":return e?"jedan sat":"jednog sata";case"hh":return i+=1===t?"sat":2===t||3===t||4===t?"sata":"sati",i;case"dd":return i+=1===t?"dan":"dana",i;case"MM":return i+=1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci",i;case"yy":return i+=1===t?"godina":2===t||3===t||4===t?"godine":"godina",i}}var n=t.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},5038:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t,e){return 12===t&&(t=0),"pagi"===e?t:"siang"===e?t>=11?t:t+12:"sore"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"pagi":t<15?"siang":t<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return e}))},5120:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Méitheamh","Iúil","Lúnasa","Meán Fómhair","Deaireadh Fómhair","Samhain","Nollaig"],n=["Eaná","Feab","Márt","Aibr","Beal","Méit","Iúil","Lúna","Meán","Deai","Samh","Noll"],i=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Satharn"],r=["Dom","Lua","Mái","Céa","Déa","hAo","Sat"],a=["Do","Lu","Má","Ce","Dé","hA","Sa"],s=t.defineLocale("ga",{months:e,monthsShort:n,monthsParseExact:!0,weekdays:i,weekdaysShort:r,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné aig] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d mí",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){var e=1===t?"d":t%10===2?"na":"mh";return t+e},week:{dow:1,doy:4}});return s}))},5294:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"],i=t.defineLocale("ur",{months:e,monthsShort:e,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(t){return"شام"===t},meridiem:function(t,e,n){return t<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(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:4}});return i}))},"52bd":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t,e,n){return t<11?"ekuseni":t<15?"emini":t<19?"entsambama":"ebusuku"},meridiemHour:function(t,e){return 12===t&&(t=0),"ekuseni"===e?t:"emini"===e?t>=11?t:t+12:"entsambama"===e||"ebusuku"===e?0===t?0:t+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}});return e}))},"55c9":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e="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("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,a=t.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,i){return t?/-MMM-/.test(i)?n[t.month()]:e[t.month()]:e},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}});return a}))},"576c":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,n=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n},week:{dow:1,doy:4}});return e}))},"598a":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"],i=t.defineLocale("dv",{months:e,monthsShort:e,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(t){return"މފ"===t},meridiem:function(t,e,n){return t<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(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:7,doy:12}});return i}))},"5b14":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(t,e,n,i){var r=t;switch(n){case"s":return i||e?"néhány másodperc":"néhány másodperce";case"ss":return r+(i||e)?" másodperc":" másodperce";case"m":return"egy"+(i||e?" perc":" perce");case"mm":return r+(i||e?" perc":" perce");case"h":return"egy"+(i||e?" óra":" órája");case"hh":return r+(i||e?" óra":" órája");case"d":return"egy"+(i||e?" nap":" napja");case"dd":return r+(i||e?" nap":" napja");case"M":return"egy"+(i||e?" hónap":" hónapja");case"MM":return r+(i||e?" hónap":" hónapja");case"y":return"egy"+(i||e?" év":" éve");case"yy":return r+(i||e?" év":" éve")}return""}function i(t){return(t?"":"[múlt] ")+"["+e[this.day()]+"] LT[-kor]"}var r=t.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(t){return"u"===t.charAt(1).toLowerCase()},meridiem:function(t,e,n){return t<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return i.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return i.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s: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}});return r}))},"5c3a":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"下午"===e||"晚上"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,n){var i=100*t+e;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"周";default:return t}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});return e}))},"5cbb":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t,e){return 12===t&&(t=0),"రాత్రి"===e?t<4?t:t+12:"ఉదయం"===e?t:"మధ్యాహ్నం"===e?t>=10?t:t+12:"సాయంత్రం"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"రాత్రి":t<10?"ఉదయం":t<17?"మధ్యాహ్నం":t<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}});return e}))},"5fbd":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t){var e=t%10,n=1===~~(t%100/10)?"e":1===e?"a":2===e?"a":"e";return t+n},week:{dow:1,doy:4}});return e}))},6117:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t,e){return 12===t&&(t=0),"يېرىم كېچە"===e||"سەھەر"===e||"چۈشتىن بۇرۇن"===e?t:"چۈشتىن كېيىن"===e||"كەچ"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,n){var i=100*t+e;return i<600?"يېرىم كېچە":i<900?"سەھەر":i<1130?"چۈشتىن بۇرۇن":i<1230?"چۈش":i<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"-كۈنى";case"w":case"W":return t+"-ھەپتە";default:return t}},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:7}});return e}))},"62e4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},6403:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"pagi":t<15?"tengahari":t<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}});return e}))},"65db":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(t){return"p"===t.charAt(0).toLowerCase()},meridiem:function(t,e,n){return t>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 [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}});return e}))},6784:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"],i=t.defineLocale("sd",{months:e,monthsShort:e,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(t){return"شام"===t},meridiem:function(t,e,n){return t<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(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:4}});return i}))},6887:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";function e(t,e,n){var i={mm:"munutenn",MM:"miz",dd:"devezh"};return t+" "+r(i[n],t)}function n(t){switch(i(t)){case 1:case 3:case 4:case 5:case 9:return t+" bloaz";default:return t+" vloaz"}}function i(t){return t>9?i(t%10):t}function r(t,e){return 2===e?a(t):t}function a(t){var e={m:"v",b:"v",d:"z"};return void 0===e[t.charAt(0)]?t:e[t.charAt(0)]+t.substring(1)}var s=t.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:e,h:"un eur",hh:"%d eur",d:"un devezh",dd:e,M:"ur miz",MM:e,y:"ur bloaz",yy:n},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(t){var e=1===t?"añ":"vet";return t+e},week:{dow:1,doy:4}});return s}))},"688b":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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}});return e}))},6909:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t){var e=t%10,n=t%100;return 0===t?t+"-ев":0===n?t+"-ен":n>10&&n<20?t+"-ти":1===e?t+"-ви":2===e?t+"-ри":7===e||8===e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}});return e}))},"6ce3":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return e}))},"6d79":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"},n=t.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(t){var n=t%10,i=t>=100?100:null;return t+(e[t]||e[n]||e[i])},week:{dow:1,doy:7}});return n}))},"6d83":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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}});return e}))},"6e98":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},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}});return e}))},"6f12":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},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}});return e}))},"6f50":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t){var e=t%10,n=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n},week:{dow:1,doy:4}});return e}))},7118:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e="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("_"),i=t.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(t,i){return t?/-MMM-/.test(i)?n[t.month()]:e[t.month()]:e},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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}});return i}))},7333:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,n=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}});return e}))},"74dc":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}});return e}))},"7a94":function(t,e,n){(function(t){
|
||
/*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */
|
||
var i=i||{version:"4.3.1"};if(e.fabric=i,"undefined"!==typeof document&&"undefined"!==typeof window)document instanceof("undefined"!==typeof HTMLDocument?HTMLDocument:Document)?i.document=document:i.document=document.implementation.createHTMLDocument(""),i.window=window;else{var r=n(1),a=new r.JSDOM(decodeURIComponent("%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3E%3C%2Fbody%3E%3C%2Fhtml%3E"),{features:{FetchExternalResources:["img"]},resources:"usable"}).window;i.document=a.document,i.jsdomImplForWrapper=n(2).implForWrapper,i.nodeCanvas=n(3).Canvas,i.window=a,DOMParser=i.window.DOMParser}function s(t){var e=t.targetCanvas,n=e.width,i=e.height,r=t.destinationWidth,a=t.destinationHeight;n===r&&i===a||(e.width=r,e.height=a)}function o(t,e){var n=t.canvas,i=e.targetCanvas,r=i.getContext("2d");r.translate(0,i.height),r.scale(1,-1);var a=n.height-i.height;r.drawImage(n,0,a,i.width,i.height,0,0,i.width,i.height)}function l(t,e){var n=e.targetCanvas,i=n.getContext("2d"),r=e.destinationWidth,a=e.destinationHeight,s=r*a*4,o=new Uint8Array(this.imageBuffer,0,s),l=new Uint8ClampedArray(this.imageBuffer,0,s);t.readPixels(0,0,r,a,t.RGBA,t.UNSIGNED_BYTE,o);var u=new ImageData(l,r,a);i.putImageData(u,0,0)}i.isTouchSupported="ontouchstart"in i.window||"ontouchstart"in i.document||i.window&&i.window.navigator&&i.window.navigator.maxTouchPoints>0,i.isLikelyNode="undefined"!==typeof t&&"undefined"===typeof window,i.SHARED_ATTRIBUTES=["display","transform","fill","fill-opacity","fill-rule","opacity","stroke","stroke-dasharray","stroke-linecap","stroke-dashoffset","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","id","paint-order","vector-effect","instantiated_by_use","clip-path"],i.DPI=96,i.reNum="(?:[-+]?(?:\\d+|\\d*\\.\\d+)(?:[eE][-+]?\\d+)?)",i.commaWsp="(?:\\s+,?\\s*|,\\s*)",i.rePathCommand=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:[eE][-+]?\d+)?)/gi,i.reNonWord=/[ \n\.,;!\?\-]/,i.fontPaths={},i.iMatrix=[1,0,0,1,0,0],i.svgNS="http://www.w3.org/2000/svg",i.perfLimitSizeTotal=2097152,i.maxCacheSideLimit=4096,i.minCacheSideLimit=256,i.charWidthsCache={},i.textureSize=2048,i.disableStyleCopyPaste=!1,i.enableGLFiltering=!0,i.devicePixelRatio=i.window.devicePixelRatio||i.window.webkitDevicePixelRatio||i.window.mozDevicePixelRatio||1,i.browserShadowBlurConstant=1,i.arcToSegmentsCache={},i.boundsOfCurveCache={},i.cachesBoundsOfCurve=!0,i.forceGLPutImageData=!1,i.initFilterBackend=function(){return i.enableGLFiltering&&i.isWebglSupported&&i.isWebglSupported(i.textureSize)?(console.log("max texture size: "+i.maxTextureSize),new i.WebglFilterBackend({tileSize:i.textureSize})):i.Canvas2dFilterBackend?new i.Canvas2dFilterBackend:void 0},"undefined"!==typeof document&&"undefined"!==typeof window&&(window.fabric=i),function(){function t(t,e){if(this.__eventListeners[t]){var n=this.__eventListeners[t];e?n[n.indexOf(e)]=!1:i.util.array.fill(n,!1)}}function e(t,e){if(this.__eventListeners||(this.__eventListeners={}),1===arguments.length)for(var n in t)this.on(n,t[n]);else this.__eventListeners[t]||(this.__eventListeners[t]=[]),this.__eventListeners[t].push(e);return this}function n(e,n){if(!this.__eventListeners)return this;if(0===arguments.length)for(e in this.__eventListeners)t.call(this,e);else if(1===arguments.length&&"object"===typeof arguments[0])for(var i in e)t.call(this,i,e[i]);else t.call(this,e,n);return this}function r(t,e){if(!this.__eventListeners)return this;var n=this.__eventListeners[t];if(!n)return this;for(var i=0,r=n.length;i<r;i++)n[i]&&n[i].call(this,e||{});return this.__eventListeners[t]=n.filter((function(t){return!1!==t})),this}i.Observable={fire:r,on:e,off:n}}(),i.Collection={_objects:[],add:function(){if(this._objects.push.apply(this._objects,arguments),this._onObjectAdded)for(var t=0,e=arguments.length;t<e;t++)this._onObjectAdded(arguments[t]);return this.renderOnAddRemove&&this.requestRenderAll(),this},insertAt:function(t,e,n){var i=this._objects;return n?i[e]=t:i.splice(e,0,t),this._onObjectAdded&&this._onObjectAdded(t),this.renderOnAddRemove&&this.requestRenderAll(),this},remove:function(){for(var t,e=this._objects,n=!1,i=0,r=arguments.length;i<r;i++)t=e.indexOf(arguments[i]),-1!==t&&(n=!0,e.splice(t,1),this._onObjectRemoved&&this._onObjectRemoved(arguments[i]));return this.renderOnAddRemove&&n&&this.requestRenderAll(),this},forEachObject:function(t,e){for(var n=this.getObjects(),i=0,r=n.length;i<r;i++)t.call(e,n[i],i,n);return this},getObjects:function(t){return"undefined"===typeof t?this._objects.concat():this._objects.filter((function(e){return e.type===t}))},item:function(t){return this._objects[t]},isEmpty:function(){return 0===this._objects.length},size:function(){return this._objects.length},contains:function(t){return this._objects.indexOf(t)>-1},complexity:function(){return this._objects.reduce((function(t,e){return t+=e.complexity?e.complexity():0,t}),0)}},i.CommonMethods={_setOptions:function(t){for(var e in t)this.set(e,t[e])},_initGradient:function(t,e){!t||!t.colorStops||t instanceof i.Gradient||this.set(e,new i.Gradient(t))},_initPattern:function(t,e,n){!t||!t.source||t instanceof i.Pattern?n&&n():this.set(e,new i.Pattern(t,n))},_setObject:function(t){for(var e in t)this._set(e,t[e])},set:function(t,e){return"object"===typeof t?this._setObject(t):this._set(t,e),this},_set:function(t,e){this[t]=e},toggle:function(t){var e=this.get(t);return"boolean"===typeof e&&this.set(t,!e),this},get:function(t){return this[t]}},function(t){var e=Math.sqrt,n=Math.atan2,r=Math.pow,a=Math.PI/180,s=Math.PI/2;i.util={cos:function(t){if(0===t)return 1;t<0&&(t=-t);var e=t/s;switch(e){case 1:case 3:return 0;case 2:return-1}return Math.cos(t)},sin:function(t){if(0===t)return 0;var e=t/s,n=1;switch(t<0&&(n=-1),e){case 1:return n;case 2:return 0;case 3:return-n}return Math.sin(t)},removeFromArray:function(t,e){var n=t.indexOf(e);return-1!==n&&t.splice(n,1),t},getRandomInt:function(t,e){return Math.floor(Math.random()*(e-t+1))+t},degreesToRadians:function(t){return t*a},radiansToDegrees:function(t){return t/a},rotatePoint:function(t,e,n){t.subtractEquals(e);var r=i.util.rotateVector(t,n);return new i.Point(r.x,r.y).addEquals(e)},rotateVector:function(t,e){var n=i.util.sin(e),r=i.util.cos(e),a=t.x*r-t.y*n,s=t.x*n+t.y*r;return{x:a,y:s}},transformPoint:function(t,e,n){return n?new i.Point(e[0]*t.x+e[2]*t.y,e[1]*t.x+e[3]*t.y):new i.Point(e[0]*t.x+e[2]*t.y+e[4],e[1]*t.x+e[3]*t.y+e[5])},makeBoundingBoxFromPoints:function(t,e){if(e)for(var n=0;n<t.length;n++)t[n]=i.util.transformPoint(t[n],e);var r=[t[0].x,t[1].x,t[2].x,t[3].x],a=i.util.array.min(r),s=i.util.array.max(r),o=s-a,l=[t[0].y,t[1].y,t[2].y,t[3].y],u=i.util.array.min(l),c=i.util.array.max(l),h=c-u;return{left:a,top:u,width:o,height:h}},invertTransform:function(t){var e=1/(t[0]*t[3]-t[1]*t[2]),n=[e*t[3],-e*t[1],-e*t[2],e*t[0]],r=i.util.transformPoint({x:t[4],y:t[5]},n,!0);return n[4]=-r.x,n[5]=-r.y,n},toFixed:function(t,e){return parseFloat(Number(t).toFixed(e))},parseUnit:function(t,e){var n=/\D{0,2}$/.exec(t),r=parseFloat(t);switch(e||(e=i.Text.DEFAULT_SVG_FONT_SIZE),n[0]){case"mm":return r*i.DPI/25.4;case"cm":return r*i.DPI/2.54;case"in":return r*i.DPI;case"pt":return r*i.DPI/72;case"pc":return r*i.DPI/72*12;case"em":return r*e;default:return r}},falseFunction:function(){return!1},getKlass:function(t,e){return t=i.util.string.camelize(t.charAt(0).toUpperCase()+t.slice(1)),i.util.resolveNamespace(e)[t]},getSvgAttributes:function(t){var e=["instantiated_by_use","style","id","class"];switch(t){case"linearGradient":e=e.concat(["x1","y1","x2","y2","gradientUnits","gradientTransform"]);break;case"radialGradient":e=e.concat(["gradientUnits","gradientTransform","cx","cy","r","fx","fy","fr"]);break;case"stop":e=e.concat(["offset","stop-color","stop-opacity"]);break}return e},resolveNamespace:function(e){if(!e)return i;var n,r=e.split("."),a=r.length,s=t||i.window;for(n=0;n<a;++n)s=s[r[n]];return s},loadImage:function(t,e,n,r){if(t){var a=i.util.createImage(),s=function(){e&&e.call(n,a,!1),a=a.onload=a.onerror=null};a.onload=s,a.onerror=function(){i.log("Error loading "+a.src),e&&e.call(n,null,!0),a=a.onload=a.onerror=null},0!==t.indexOf("data")&&void 0!==r&&null!==r&&(a.crossOrigin=r),"data:image/svg"===t.substring(0,14)&&(a.onload=null,i.util.loadImageInDom(a,s)),a.src=t}else e&&e.call(n,t)},loadImageInDom:function(t,e){var n=i.document.createElement("div");n.style.width=n.style.height="1px",n.style.left=n.style.top="-100%",n.style.position="absolute",n.appendChild(t),i.document.querySelector("body").appendChild(n),t.onload=function(){e(),n.parentNode.removeChild(n),n=null}},enlivenObjects:function(t,e,n,r){t=t||[];var a=[],s=0,o=t.length;function l(){++s===o&&e&&e(a.filter((function(t){return t})))}o?t.forEach((function(t,e){if(t&&t.type){var s=i.util.getKlass(t.type,n);s.fromObject(t,(function(n,i){i||(a[e]=n),r&&r(t,n,i),l()}))}else l()})):e&&e(a)},enlivenPatterns:function(t,e){function n(){++a===s&&e&&e(r)}t=t||[];var r=[],a=0,s=t.length;s?t.forEach((function(t,e){t&&t.source?new i.Pattern(t,(function(t){r[e]=t,n()})):(r[e]=t,n())})):e&&e(r)},groupSVGElements:function(t,e,n){var r;return t&&1===t.length?t[0]:(e&&(e.width&&e.height?e.centerPoint={x:e.width/2,y:e.height/2}:(delete e.width,delete e.height)),r=new i.Group(t,e),"undefined"!==typeof n&&(r.sourcePath=n),r)},populateWithProperties:function(t,e,n){if(n&&"[object Array]"===Object.prototype.toString.call(n))for(var i=0,r=n.length;i<r;i++)n[i]in t&&(e[n[i]]=t[n[i]])},drawDashedLine:function(t,i,r,a,s,o){var l=a-i,u=s-r,c=e(l*l+u*u),h=n(u,l),d=o.length,f=0,m=!0;t.save(),t.translate(i,r),t.moveTo(0,0),t.rotate(h),i=0;while(c>i)i+=o[f++%d],i>c&&(i=c),t[m?"lineTo":"moveTo"](i,0),m=!m;t.restore()},createCanvasElement:function(){return i.document.createElement("canvas")},copyCanvasElement:function(t){var e=i.util.createCanvasElement();return e.width=t.width,e.height=t.height,e.getContext("2d").drawImage(t,0,0),e},toDataURL:function(t,e,n){return t.toDataURL("image/"+e,n)},createImage:function(){return i.document.createElement("img")},multiplyTransformMatrices:function(t,e,n){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],n?0:t[0]*e[4]+t[2]*e[5]+t[4],n?0:t[1]*e[4]+t[3]*e[5]+t[5]]},qrDecompose:function(t){var i=n(t[1],t[0]),s=r(t[0],2)+r(t[1],2),o=e(s),l=(t[0]*t[3]-t[2]*t[1])/o,u=n(t[0]*t[2]+t[1]*t[3],s);return{angle:i/a,scaleX:o,scaleY:l,skewX:u/a,skewY:0,translateX:t[4],translateY:t[5]}},calcRotateMatrix:function(t){if(!t.angle)return i.iMatrix.concat();var e=i.util.degreesToRadians(t.angle),n=i.util.cos(e),r=i.util.sin(e);return[n,r,-r,n,0,0]},calcDimensionsMatrix:function(t){var e="undefined"===typeof t.scaleX?1:t.scaleX,n="undefined"===typeof t.scaleY?1:t.scaleY,r=[t.flipX?-e:e,0,0,t.flipY?-n:n,0,0],a=i.util.multiplyTransformMatrices,s=i.util.degreesToRadians;return t.skewX&&(r=a(r,[1,0,Math.tan(s(t.skewX)),1],!0)),t.skewY&&(r=a(r,[1,Math.tan(s(t.skewY)),0,1],!0)),r},composeMatrix:function(t){var e=[1,0,0,1,t.translateX||0,t.translateY||0],n=i.util.multiplyTransformMatrices;return t.angle&&(e=n(e,i.util.calcRotateMatrix(t))),(1!==t.scaleX||1!==t.scaleY||t.skewX||t.skewY||t.flipX||t.flipY)&&(e=n(e,i.util.calcDimensionsMatrix(t))),e},resetObjectTransform:function(t){t.scaleX=1,t.scaleY=1,t.skewX=0,t.skewY=0,t.flipX=!1,t.flipY=!1,t.rotate(0)},saveObjectTransform:function(t){return{scaleX:t.scaleX,scaleY:t.scaleY,skewX:t.skewX,skewY:t.skewY,angle:t.angle,left:t.left,flipX:t.flipX,flipY:t.flipY,top:t.top}},isTransparent:function(t,e,n,i){i>0&&(e>i?e-=i:e=0,n>i?n-=i:n=0);var r,a,s=!0,o=t.getImageData(e,n,2*i||1,2*i||1),l=o.data.length;for(r=3;r<l;r+=4)if(a=o.data[r],s=a<=0,!1===s)break;return o=null,s},parsePreserveAspectRatioAttribute:function(t){var e,n="meet",i="Mid",r="Mid",a=t.split(" ");return a&&a.length&&(n=a.pop(),"meet"!==n&&"slice"!==n?(e=n,n="meet"):a.length&&(e=a.pop())),i="none"!==e?e.slice(1,4):"none",r="none"!==e?e.slice(5,8):"none",{meetOrSlice:n,alignX:i,alignY:r}},clearFabricFontCache:function(t){t=(t||"").toLowerCase(),t?i.charWidthsCache[t]&&delete i.charWidthsCache[t]:i.charWidthsCache={}},limitDimsByArea:function(t,e){var n=Math.sqrt(e*t),i=Math.floor(e/n);return{x:Math.floor(n),y:i}},capValue:function(t,e,n){return Math.max(t,Math.min(e,n))},findScaleToFit:function(t,e){return Math.min(e.width/t.width,e.height/t.height)},findScaleToCover:function(t,e){return Math.max(e.width/t.width,e.height/t.height)},matrixToSVG:function(t){return"matrix("+t.map((function(t){return i.util.toFixed(t,i.Object.NUM_FRACTION_DIGITS)})).join(" ")+")"},sizeAfterTransform:function(t,e,n){var r=t/2,a=e/2,s=[{x:-r,y:-a},{x:r,y:-a},{x:-r,y:a},{x:r,y:a}],o=i.util.calcDimensionsMatrix(n),l=i.util.makeBoundingBoxFromPoints(s,o);return{x:l.width,y:l.height}}}}(e),function(){var t=Array.prototype.join,e={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},n={m:"l",M:"L"};function r(t,e,n,r,a,s,o,l,u,c,h){var d=i.util.cos(t),f=i.util.sin(t),m=i.util.cos(e),p=i.util.sin(e),_=n*a*m-r*s*p+o,g=r*a*m+n*s*p+l,v=c+u*(-n*a*f-r*s*d),y=h+u*(-r*a*f+n*s*d),b=_+u*(n*a*p+r*s*m),w=g+u*(r*a*p-n*s*m);return["C",v,y,b,w,_,g]}function a(t,e,n,a,o,l,u){var c=Math.PI,h=u*c/180,d=i.util.sin(h),f=i.util.cos(h),m=0,p=0;n=Math.abs(n),a=Math.abs(a);var _=-f*t*.5-d*e*.5,g=-f*e*.5+d*t*.5,v=n*n,y=a*a,b=g*g,w=_*_,x=v*y-v*b-y*w,M=0;if(x<0){var S=Math.sqrt(1-x/(v*y));n*=S,a*=S}else M=(o===l?-1:1)*Math.sqrt(x/(v*b+y*w));var L=M*n*g/a,k=-M*a*_/n,T=f*L-d*k+.5*t,D=d*L+f*k+.5*e,C=s(1,0,(_-L)/n,(g-k)/a),E=s((_-L)/n,(g-k)/a,(-_-L)/n,(-g-k)/a);0===l&&E>0?E-=2*c:1===l&&E<0&&(E+=2*c);for(var O=Math.ceil(Math.abs(E/c*2)),Y=[],A=E/O,P=8/3*Math.sin(A/4)*Math.sin(A/4)/Math.sin(A/2),R=C+A,I=0;I<O;I++)Y[I]=r(C,R,f,d,n,a,T,D,P,m,p),m=Y[I][5],p=Y[I][6],C=R,R+=A;return Y}function s(t,e,n,i){var r=Math.atan2(e,t),a=Math.atan2(i,n);return a>=r?a-r:2*Math.PI-(r-a)}function o(e,n,r,a,s,o,l,u){var c;if(i.cachesBoundsOfCurve&&(c=t.call(arguments),i.boundsOfCurveCache[c]))return i.boundsOfCurveCache[c];var h,d,f,m,p,_,g,v,y=Math.sqrt,b=Math.min,w=Math.max,x=Math.abs,M=[],S=[[],[]];d=6*e-12*r+6*s,h=-3*e+9*r-9*s+3*l,f=3*r-3*e;for(var L=0;L<2;++L)if(L>0&&(d=6*n-12*a+6*o,h=-3*n+9*a-9*o+3*u,f=3*a-3*n),x(h)<1e-12){if(x(d)<1e-12)continue;m=-f/d,0<m&&m<1&&M.push(m)}else g=d*d-4*f*h,g<0||(v=y(g),p=(-d+v)/(2*h),0<p&&p<1&&M.push(p),_=(-d-v)/(2*h),0<_&&_<1&&M.push(_));var k,T,D,C=M.length,E=C;while(C--)m=M[C],D=1-m,k=D*D*D*e+3*D*D*m*r+3*D*m*m*s+m*m*m*l,S[0][C]=k,T=D*D*D*n+3*D*D*m*a+3*D*m*m*o+m*m*m*u,S[1][C]=T;S[0][E]=e,S[1][E]=n,S[0][E+1]=l,S[1][E+1]=u;var O=[{x:b.apply(null,S[0]),y:b.apply(null,S[1])},{x:w.apply(null,S[0]),y:w.apply(null,S[1])}];return i.cachesBoundsOfCurve&&(i.boundsOfCurveCache[c]=O),O}function l(t,e,n){for(var i=n[1],r=n[2],s=n[3],o=n[4],l=n[5],u=n[6],c=n[7],h=a(u-t,c-e,i,r,o,l,s),d=0,f=h.length;d<f;d++)h[d][1]+=t,h[d][2]+=e,h[d][3]+=t,h[d][4]+=e,h[d][5]+=t,h[d][6]+=e;return h}function u(t){var e,n,i,r,a,s,o=0,u=0,c=t.length,h=0,d=0,f=[];for(n=0;n<c;++n){switch(i=!1,e=t[n].slice(0),e[0]){case"l":e[0]="L",e[1]+=o,e[2]+=u;case"L":o=e[1],u=e[2];break;case"h":e[1]+=o;case"H":e[0]="L",e[2]=u,o=e[1];break;case"v":e[1]+=u;case"V":e[0]="L",u=e[1],e[1]=o,e[2]=u;break;case"m":e[0]="M",e[1]+=o,e[2]+=u;case"M":o=e[1],u=e[2],h=e[1],d=e[2];break;case"c":e[0]="C",e[1]+=o,e[2]+=u,e[3]+=o,e[4]+=u,e[5]+=o,e[6]+=u;case"C":a=e[3],s=e[4],o=e[5],u=e[6];break;case"s":e[0]="S",e[1]+=o,e[2]+=u,e[3]+=o,e[4]+=u;case"S":"C"===r?(a=2*o-a,s=2*u-s):(a=o,s=u),o=e[3],u=e[4],e[0]="C",e[5]=e[3],e[6]=e[4],e[3]=e[1],e[4]=e[2],e[1]=a,e[2]=s,a=e[3],s=e[4];break;case"q":e[0]="Q",e[1]+=o,e[2]+=u,e[3]+=o,e[4]+=u;case"Q":a=e[1],s=e[2],o=e[3],u=e[4];break;case"t":e[0]="T",e[1]+=o,e[2]+=u;case"T":"Q"===r?(a=2*o-a,s=2*u-s):(a=o,s=u),e[0]="Q",o=e[1],u=e[2],e[1]=a,e[2]=s,e[3]=o,e[4]=u;break;case"a":e[0]="A",e[6]+=o,e[7]+=u;case"A":i=!0,f=f.concat(l(o,u,e)),o=e[6],u=e[7];break;case"z":case"Z":o=h,u=d;break;default:}i||f.push(e),r=e[0]}return f}function c(t,e,n,i){return Math.sqrt((n-t)*(n-t)+(i-e)*(i-e))}function h(t){return t*t*t}function d(t){return 3*t*t*(1-t)}function f(t){return 3*t*(1-t)*(1-t)}function m(t){return(1-t)*(1-t)*(1-t)}function p(t,e,n,i,r,a,s,o){return function(l){var u=h(l),c=d(l),p=f(l),_=m(l);return{x:s*u+r*c+n*p+t*_,y:o*u+a*c+i*p+e*_}}}function _(t,e,n,i,r,a,s,o){return function(l){var u=1-l,c=3*u*u*(n-t)+6*u*l*(r-n)+3*l*l*(s-r),h=3*u*u*(i-e)+6*u*l*(a-i)+3*l*l*(o-a);return Math.atan2(h,c)}}function g(t){return t*t}function v(t){return 2*t*(1-t)}function y(t){return(1-t)*(1-t)}function b(t,e,n,i,r,a){return function(s){var o=g(s),l=v(s),u=y(s);return{x:r*o+n*l+t*u,y:a*o+i*l+e*u}}}function w(t,e,n,i,r,a){return function(s){var o=1-s,l=2*o*(n-t)+2*s*(r-n),u=2*o*(i-e)+2*s*(a-i);return Math.atan2(u,l)}}function x(t,e,n){var i,r,a={x:e,y:n},s=0;for(r=.01;r<=1;r+=.01)i=t(r),s+=c(a.x,a.y,i.x,i.y),a=i;return s}function M(t,e){var n,i,r,a=0,s=0,o=t.iterator,l={x:t.x,y:t.y},u=.01,h=t.angleFinder;while(s<e&&a<=1&&u>1e-4)n=o(a),r=a,i=c(l.x,l.y,n.x,n.y),i+s>e?(u/=2,a-=u):(l=n,a+=u,s+=i);return n.angle=h(r),n}function S(t){for(var e,n,i,r,a=0,s=t.length,o=0,l=0,u=0,h=0,d=[],f=0;f<s;f++){switch(e=t[f],i={x:o,y:l,command:e[0]},e[0]){case"M":i.length=0,u=o=e[1],h=l=e[2];break;case"L":i.length=c(o,l,e[1],e[2]),o=e[1],l=e[2];break;case"C":n=p(o,l,e[1],e[2],e[3],e[4],e[5],e[6]),r=_(o,l,e[1],e[2],e[3],e[4],e[5],e[6]),i.iterator=n,i.angleFinder=r,i.length=x(n,o,l),o=e[5],l=e[6];break;case"Q":n=b(o,l,e[1],e[2],e[3],e[4]),r=w(o,l,e[1],e[2],e[3],e[4]),i.iterator=n,i.angleFinder=r,i.length=x(n,o,l),o=e[3],l=e[4];break;case"Z":case"z":i.destX=u,i.destY=h,i.length=c(o,l,u,h),o=u,l=h;break}a+=i.length,d.push(i)}return d.push({length:a,x:o,y:l}),d}function L(t,e,n){n||(n=S(t));var r=0;while(e-n[r].length>0&&r<n.length-2)e-=n[r].length,r++;var a,s=n[r],o=e/s.length,l=s.command,u=t[r];switch(l){case"M":return{x:s.x,y:s.y,angle:0};case"Z":case"z":return a=new i.Point(s.x,s.y).lerp(new i.Point(s.destX,s.destY),o),a.angle=Math.atan2(s.destY-s.y,s.destX-s.x),a;case"L":return a=new i.Point(s.x,s.y).lerp(new i.Point(u[1],u[2]),o),a.angle=Math.atan2(u[2]-s.y,u[1]-s.x),a;case"C":return M(s,e);case"Q":return M(s,e)}}function k(t){var r,a,s,o,l,u=[],c=[],h=i.rePathCommand,d="[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?\\s*",f="("+d+")"+i.commaWsp,m="([01])"+i.commaWsp+"?",p=f+"?"+f+"?"+f+m+m+f+"?("+d+")",_=new RegExp(p,"g");if(!t||!t.match)return u;l=t.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi);for(var g,v=0,y=l.length;v<y;v++){r=l[v],o=r.slice(1).trim(),c.length=0;var b=r.charAt(0);if(g=[b],"a"===b.toLowerCase())for(var w;w=_.exec(o);)for(var x=1;x<w.length;x++)c.push(w[x]);else while(s=h.exec(o))c.push(s[0]);x=0;for(var M=c.length;x<M;x++)a=parseFloat(c[x]),isNaN(a)||g.push(a);var S=e[b.toLowerCase()],L=n[b]||b;if(g.length-1>S)for(var k=1,T=g.length;k<T;k+=S)u.push([b].concat(g.slice(k,k+S))),b=L;else u.push(g)}return u}function T(t,e,n,i,r,s,l,u,c){for(var h,d=0,f=0,m=[],p=a(u-t,c-e,n,i,s,l,r),_=0,g=p.length;_<g;_++)h=o(d,f,p[_][1],p[_][2],p[_][3],p[_][4],p[_][5],p[_][6]),m.push({x:h[0].x+t,y:h[0].y+e}),m.push({x:h[1].x+t,y:h[1].y+e}),d=p[_][5],f=p[_][6];return m}function D(t,e,n,i){i=i.slice(0).unshift("X");var r=l(e,n,i);r.forEach((function(e){t.bezierCurveTo.apply(t,e.slice(1))}))}i.util.parsePath=k,i.util.makePathSimpler=u,i.util.getPathSegmentsInfo=S,i.util.fromArcToBeziers=l,i.util.fromArcToBeizers=l,i.util.getBoundsOfCurve=o,i.util.getPointOnPath=L,i.util.getBoundsOfArc=T,i.util.drawArc=D}(),function(){var t=Array.prototype.slice;function e(e,n){for(var i=t.call(arguments,2),r=[],a=0,s=e.length;a<s;a++)r[a]=i.length?e[a][n].apply(e[a],i):e[a][n].call(e[a]);return r}function n(t,e){return s(t,e,(function(t,e){return t>=e}))}function r(t,e){return s(t,e,(function(t,e){return t<e}))}function a(t,e){var n=t.length;while(n--)t[n]=e;return t}function s(t,e,n){if(t&&0!==t.length){var i=t.length-1,r=e?t[i][e]:t[i];if(e)while(i--)n(t[i][e],r)&&(r=t[i][e]);else while(i--)n(t[i],r)&&(r=t[i]);return r}}i.util.array={fill:a,invoke:e,min:r,max:n}}(),function(){function t(e,n,r){if(r)if(!i.isLikelyNode&&n instanceof Element)e=n;else if(n instanceof Array){e=[];for(var a=0,s=n.length;a<s;a++)e[a]=t({},n[a],r)}else if(n&&"object"===typeof n)for(var o in n)"canvas"===o||"group"===o?e[o]=null:n.hasOwnProperty(o)&&(e[o]=t({},n[o],r));else e=n;else for(var o in n)e[o]=n[o];return e}function e(e,n){return t({},e,n)}i.util.object={extend:t,clone:e},i.util.object.extend(i.util,i.Observable)}(),function(){function t(t){return t.replace(/-+(.)?/g,(function(t,e){return e?e.toUpperCase():""}))}function e(t,e){return t.charAt(0).toUpperCase()+(e?t.slice(1):t.slice(1).toLowerCase())}function n(t){return t.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function r(t){var e,n=0,i=[];for(n=0,e;n<t.length;n++)!1!==(e=a(t,n))&&i.push(e);return i}function a(t,e){var n=t.charCodeAt(e);if(isNaN(n))return"";if(n<55296||n>57343)return t.charAt(e);if(55296<=n&&n<=56319){if(t.length<=e+1)throw"High surrogate without following low surrogate";var i=t.charCodeAt(e+1);if(56320>i||i>57343)throw"High surrogate without following low surrogate";return t.charAt(e)+t.charAt(e+1)}if(0===e)throw"Low surrogate without preceding high surrogate";var r=t.charCodeAt(e-1);if(55296>r||r>56319)throw"Low surrogate without preceding high surrogate";return!1}i.util.string={camelize:t,capitalize:e,escapeXml:n,graphemeSplit:r}}(),function(){var t=Array.prototype.slice,e=function(){},n=function(){for(var t in{toString:1})if("toString"===t)return!1;return!0}(),r=function(t,e,i){for(var r in e)r in t.prototype&&"function"===typeof t.prototype[r]&&(e[r]+"").indexOf("callSuper")>-1?t.prototype[r]=function(t){return function(){var n=this.constructor.superclass;this.constructor.superclass=i;var r=e[t].apply(this,arguments);if(this.constructor.superclass=n,"initialize"!==t)return r}}(r):t.prototype[r]=e[r],n&&(e.toString!==Object.prototype.toString&&(t.prototype.toString=e.toString),e.valueOf!==Object.prototype.valueOf&&(t.prototype.valueOf=e.valueOf))};function a(){}function s(e){var n=null,i=this;while(i.constructor.superclass){var r=i.constructor.superclass.prototype[e];if(i[e]!==r){n=r;break}i=i.constructor.superclass.prototype}return n?arguments.length>1?n.apply(this,t.call(arguments,1)):n.call(this):console.log("tried to callSuper "+e+", method not found in prototype chain",this)}function o(){var n=null,i=t.call(arguments,0);function o(){this.initialize.apply(this,arguments)}"function"===typeof i[0]&&(n=i.shift()),o.superclass=n,o.subclasses=[],n&&(a.prototype=n.prototype,o.prototype=new a,n.subclasses.push(o));for(var l=0,u=i.length;l<u;l++)r(o,i[l],n);return o.prototype.initialize||(o.prototype.initialize=e),o.prototype.constructor=o,o.prototype.callSuper=s,o}i.util.createClass=o}(),function(){var t=!!i.document.createElement("div").attachEvent,e=["touchstart","touchmove","touchend"];function n(t){var e=t.changedTouches;return e&&e[0]?e[0]:t}i.util.addListener=function(e,n,i,r){e&&e.addEventListener(n,i,!t&&r)},i.util.removeListener=function(e,n,i,r){e&&e.removeEventListener(n,i,!t&&r)},i.util.getPointer=function(t){var e=t.target,r=i.util.getScrollLeftTop(e),a=n(t);return{x:a.clientX+r.left,y:a.clientY+r.top}},i.util.isTouchEvent=function(t){return e.indexOf(t.type)>-1||"touch"===t.pointerType}}(),function(){function t(t,e){var n=t.style;if(!n)return t;if("string"===typeof e)return t.style.cssText+=";"+e,e.indexOf("opacity")>-1?s(t,e.match(/opacity:\s*(\d?\.?\d*)/)[1]):t;for(var i in e)if("opacity"===i)s(t,e[i]);else{var r="float"===i||"cssFloat"===i?"undefined"===typeof n.styleFloat?"cssFloat":"styleFloat":i;n[r]=e[i]}return t}var e=i.document.createElement("div"),n="string"===typeof e.style.opacity,r="string"===typeof e.style.filter,a=/alpha\s*\(\s*opacity\s*=\s*([^\)]+)\)/,s=function(t){return t};n?s=function(t,e){return t.style.opacity=e,t}:r&&(s=function(t,e){var n=t.style;return t.currentStyle&&!t.currentStyle.hasLayout&&(n.zoom=1),a.test(n.filter)?(e=e>=.9999?"":"alpha(opacity="+100*e+")",n.filter=n.filter.replace(a,e)):n.filter+=" alpha(opacity="+100*e+")",t}),i.util.setStyle=t}(),function(){var t=Array.prototype.slice;function e(t){return"string"===typeof t?i.document.getElementById(t):t}var n,r,a=function(e){return t.call(e,0)};try{n=a(i.document.childNodes)instanceof Array}catch(m){}function s(t,e){var n=i.document.createElement(t);for(var r in e)"class"===r?n.className=e[r]:"for"===r?n.htmlFor=e[r]:n.setAttribute(r,e[r]);return n}function o(t,e){t&&-1===(" "+t.className+" ").indexOf(" "+e+" ")&&(t.className+=(t.className?" ":"")+e)}function l(t,e,n){return"string"===typeof e&&(e=s(e,n)),t.parentNode&&t.parentNode.replaceChild(e,t),e.appendChild(t),e}function u(t){var e=0,n=0,r=i.document.documentElement,a=i.document.body||{scrollLeft:0,scrollTop:0};while(t&&(t.parentNode||t.host))if(t=t.parentNode||t.host,t===i.document?(e=a.scrollLeft||r.scrollLeft||0,n=a.scrollTop||r.scrollTop||0):(e+=t.scrollLeft||0,n+=t.scrollTop||0),1===t.nodeType&&"fixed"===t.style.position)break;return{left:e,top:n}}function c(t){var e,n,i=t&&t.ownerDocument,a={left:0,top:0},s={left:0,top:0},o={borderLeftWidth:"left",borderTopWidth:"top",paddingLeft:"left",paddingTop:"top"};if(!i)return s;for(var l in o)s[o[l]]+=parseInt(r(t,l),10)||0;return e=i.documentElement,"undefined"!==typeof t.getBoundingClientRect&&(a=t.getBoundingClientRect()),n=u(t),{left:a.left+n.left-(e.clientLeft||0)+s.left,top:a.top+n.top-(e.clientTop||0)+s.top}}function h(t){var e=i.jsdomImplForWrapper(t);return e._canvas||e._image}function d(t){if(i.isLikelyNode){var e=i.jsdomImplForWrapper(t);e&&(e._image=null,e._canvas=null,e._currentSrc=null,e._attributes=null,e._classList=null)}}function f(t,e){t.imageSmoothingEnabled=t.imageSmoothingEnabled||t.webkitImageSmoothingEnabled||t.mozImageSmoothingEnabled||t.msImageSmoothingEnabled||t.oImageSmoothingEnabled,t.imageSmoothingEnabled=e}n||(a=function(t){var e=new Array(t.length),n=t.length;while(n--)e[n]=t[n];return e}),r=i.document.defaultView&&i.document.defaultView.getComputedStyle?function(t,e){var n=i.document.defaultView.getComputedStyle(t,null);return n?n[e]:void 0}:function(t,e){var n=t.style[e];return!n&&t.currentStyle&&(n=t.currentStyle[e]),n},function(){var t=i.document.documentElement.style,e="userSelect"in t?"userSelect":"MozUserSelect"in t?"MozUserSelect":"WebkitUserSelect"in t?"WebkitUserSelect":"KhtmlUserSelect"in t?"KhtmlUserSelect":"";function n(t){return"undefined"!==typeof t.onselectstart&&(t.onselectstart=i.util.falseFunction),e?t.style[e]="none":"string"===typeof t.unselectable&&(t.unselectable="on"),t}function r(t){return"undefined"!==typeof t.onselectstart&&(t.onselectstart=null),e?t.style[e]="":"string"===typeof t.unselectable&&(t.unselectable=""),t}i.util.makeElementUnselectable=n,i.util.makeElementSelectable=r}(),i.util.setImageSmoothing=f,i.util.getById=e,i.util.toArray=a,i.util.addClass=o,i.util.makeElement=s,i.util.wrapElement=l,i.util.getScrollLeftTop=u,i.util.getElementOffset=c,i.util.getNodeCanvas=h,i.util.cleanUpJsdomNode=d}(),function(){function t(t,e){return t+(/\?/.test(t)?"&":"?")+e}function e(){}function n(n,r){r||(r={});var a=r.method?r.method.toUpperCase():"GET",s=r.onComplete||function(){},o=new i.window.XMLHttpRequest,l=r.body||r.parameters;return o.onreadystatechange=function(){4===o.readyState&&(s(o),o.onreadystatechange=e)},"GET"===a&&(l=null,"string"===typeof r.parameters&&(n=t(n,r.parameters))),o.open(a,n,!0),"POST"!==a&&"PUT"!==a||o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.send(l),o}i.util.request=n}(),i.log=console.log,i.warn=console.warn,function(){function t(){return!1}function e(t,e,n,i){return-n*Math.cos(t/i*(Math.PI/2))+n+e}function n(n){s((function(i){n||(n={});var r,a=i||+new Date,o=n.duration||500,l=a+o,u=n.onChange||t,c=n.abort||t,h=n.onComplete||t,d=n.easing||e,f="startValue"in n?n.startValue:0,m="endValue"in n?n.endValue:100,p=n.byValue||m-f;n.onStart&&n.onStart(),function t(e){r=e||+new Date;var n=r>l?o:r-a,i=n/o,_=d(n,f,p,o),g=Math.abs((_-f)/p);if(!c())return r>l?(u(m,1,1),void h(m,1,1)):(u(_,g,i),void s(t));h(m,1,1)}(a)}))}var r=i.window.requestAnimationFrame||i.window.webkitRequestAnimationFrame||i.window.mozRequestAnimationFrame||i.window.oRequestAnimationFrame||i.window.msRequestAnimationFrame||function(t){return i.window.setTimeout(t,1e3/60)},a=i.window.cancelAnimationFrame||i.window.clearTimeout;function s(){return r.apply(i.window,arguments)}function o(){return a.apply(i.window,arguments)}i.util.animate=n,i.util.requestAnimFrame=s,i.util.cancelAnimFrame=o}(),function(){function t(t,e,n){var i="rgba("+parseInt(t[0]+n*(e[0]-t[0]),10)+","+parseInt(t[1]+n*(e[1]-t[1]),10)+","+parseInt(t[2]+n*(e[2]-t[2]),10);return i+=","+(t&&e?parseFloat(t[3]+n*(e[3]-t[3])):1),i+=")",i}function e(e,n,r,a){var s=new i.Color(e).getSource(),o=new i.Color(n).getSource(),l=a.onComplete,u=a.onChange;a=a||{},i.util.animate(i.util.object.extend(a,{duration:r||500,startValue:s,endValue:o,byValue:o,easing:function(e,n,i,r){var s=a.colorEasing?a.colorEasing(e,r):1-Math.cos(e/r*(Math.PI/2));return t(n,i,s)},onComplete:function(e,n,i){if(l)return l(t(o,o,0),n,i)},onChange:function(e,n,i){if(u){if(Array.isArray(e))return u(t(e,e,0),n,i);u(e,n,i)}}}))}i.util.animateColor=e}(),function(){function t(t,e,n,i){return t<Math.abs(e)?(t=e,i=n/4):i=0===e&&0===t?n/(2*Math.PI)*Math.asin(1):n/(2*Math.PI)*Math.asin(e/t),{a:t,c:e,p:n,s:i}}function e(t,e,n){return t.a*Math.pow(2,10*(e-=1))*Math.sin((e*n-t.s)*(2*Math.PI)/t.p)}function n(t,e,n,i){return n*((t=t/i-1)*t*t+1)+e}function r(t,e,n,i){return t/=i/2,t<1?n/2*t*t*t+e:n/2*((t-=2)*t*t+2)+e}function a(t,e,n,i){return n*(t/=i)*t*t*t+e}function s(t,e,n,i){return-n*((t=t/i-1)*t*t*t-1)+e}function o(t,e,n,i){return t/=i/2,t<1?n/2*t*t*t*t+e:-n/2*((t-=2)*t*t*t-2)+e}function l(t,e,n,i){return n*(t/=i)*t*t*t*t+e}function u(t,e,n,i){return n*((t=t/i-1)*t*t*t*t+1)+e}function c(t,e,n,i){return t/=i/2,t<1?n/2*t*t*t*t*t+e:n/2*((t-=2)*t*t*t*t+2)+e}function h(t,e,n,i){return-n*Math.cos(t/i*(Math.PI/2))+n+e}function d(t,e,n,i){return n*Math.sin(t/i*(Math.PI/2))+e}function f(t,e,n,i){return-n/2*(Math.cos(Math.PI*t/i)-1)+e}function m(t,e,n,i){return 0===t?e:n*Math.pow(2,10*(t/i-1))+e}function p(t,e,n,i){return t===i?e+n:n*(1-Math.pow(2,-10*t/i))+e}function _(t,e,n,i){return 0===t?e:t===i?e+n:(t/=i/2,t<1?n/2*Math.pow(2,10*(t-1))+e:n/2*(2-Math.pow(2,-10*--t))+e)}function g(t,e,n,i){return-n*(Math.sqrt(1-(t/=i)*t)-1)+e}function v(t,e,n,i){return n*Math.sqrt(1-(t=t/i-1)*t)+e}function y(t,e,n,i){return t/=i/2,t<1?-n/2*(Math.sqrt(1-t*t)-1)+e:n/2*(Math.sqrt(1-(t-=2)*t)+1)+e}function b(n,i,r,a){var s=1.70158,o=0,l=r;if(0===n)return i;if(n/=a,1===n)return i+r;o||(o=.3*a);var u=t(l,r,o,s);return-e(u,n,a)+i}function w(e,n,i,r){var a=1.70158,s=0,o=i;if(0===e)return n;if(e/=r,1===e)return n+i;s||(s=.3*r);var l=t(o,i,s,a);return l.a*Math.pow(2,-10*e)*Math.sin((e*r-l.s)*(2*Math.PI)/l.p)+l.c+n}function x(n,i,r,a){var s=1.70158,o=0,l=r;if(0===n)return i;if(n/=a/2,2===n)return i+r;o||(o=a*(.3*1.5));var u=t(l,r,o,s);return n<1?-.5*e(u,n,a)+i:u.a*Math.pow(2,-10*(n-=1))*Math.sin((n*a-u.s)*(2*Math.PI)/u.p)*.5+u.c+i}function M(t,e,n,i,r){return void 0===r&&(r=1.70158),n*(t/=i)*t*((r+1)*t-r)+e}function S(t,e,n,i,r){return void 0===r&&(r=1.70158),n*((t=t/i-1)*t*((r+1)*t+r)+1)+e}function L(t,e,n,i,r){return void 0===r&&(r=1.70158),t/=i/2,t<1?n/2*(t*t*((1+(r*=1.525))*t-r))+e:n/2*((t-=2)*t*((1+(r*=1.525))*t+r)+2)+e}function k(t,e,n,i){return n-T(i-t,0,n,i)+e}function T(t,e,n,i){return(t/=i)<1/2.75?n*(7.5625*t*t)+e:t<2/2.75?n*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?n*(7.5625*(t-=2.25/2.75)*t+.9375)+e:n*(7.5625*(t-=2.625/2.75)*t+.984375)+e}function D(t,e,n,i){return t<i/2?.5*k(2*t,0,n,i)+e:.5*T(2*t-i,0,n,i)+.5*n+e}i.util.ease={easeInQuad:function(t,e,n,i){return n*(t/=i)*t+e},easeOutQuad:function(t,e,n,i){return-n*(t/=i)*(t-2)+e},easeInOutQuad:function(t,e,n,i){return t/=i/2,t<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e},easeInCubic:function(t,e,n,i){return n*(t/=i)*t*t+e},easeOutCubic:n,easeInOutCubic:r,easeInQuart:a,easeOutQuart:s,easeInOutQuart:o,easeInQuint:l,easeOutQuint:u,easeInOutQuint:c,easeInSine:h,easeOutSine:d,easeInOutSine:f,easeInExpo:m,easeOutExpo:p,easeInOutExpo:_,easeInCirc:g,easeOutCirc:v,easeInOutCirc:y,easeInElastic:b,easeOutElastic:w,easeInOutElastic:x,easeInBack:M,easeOutBack:S,easeInOutBack:L,easeInBounce:k,easeOutBounce:T,easeInOutBounce:D}}(),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=e.util.object.extend,i=e.util.object.clone,r=e.util.toFixed,a=e.util.parseUnit,s=e.util.multiplyTransformMatrices,o=["path","circle","polygon","polyline","ellipse","rect","line","image","text"],l=["symbol","image","marker","pattern","view","svg"],u=["pattern","defs","symbol","metadata","clipPath","mask","desc"],c=["symbol","g","a","svg","clipPath","defs"],h={cx:"left",x:"left",r:"radius",cy:"top",y:"top",display:"visible",visibility:"visible",transform:"transformMatrix","fill-opacity":"fillOpacity","fill-rule":"fillRule","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","letter-spacing":"charSpacing","paint-order":"paintFirst","stroke-dasharray":"strokeDashArray","stroke-dashoffset":"strokeDashOffset","stroke-linecap":"strokeLineCap","stroke-linejoin":"strokeLineJoin","stroke-miterlimit":"strokeMiterLimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","text-decoration":"textDecoration","text-anchor":"textAnchor",opacity:"opacity","clip-path":"clipPath","clip-rule":"clipRule","vector-effect":"strokeUniform","image-rendering":"imageSmoothing"},d={stroke:"strokeOpacity",fill:"fillOpacity"},f="font-size",m="clip-path";function p(t){return t in h?h[t]:t}function _(t,n,i,r){var o,l="[object Array]"===Object.prototype.toString.call(n);if("fill"!==t&&"stroke"!==t||"none"!==n){if("strokeUniform"===t)return"non-scaling-stroke"===n;if("strokeDashArray"===t)n="none"===n?null:n.replace(/,/g," ").split(/\s+/).map(parseFloat);else if("transformMatrix"===t)n=i&&i.transformMatrix?s(i.transformMatrix,e.parseTransformAttribute(n)):e.parseTransformAttribute(n);else if("visible"===t)n="none"!==n&&"hidden"!==n,i&&!1===i.visible&&(n=!1);else if("opacity"===t)n=parseFloat(n),i&&"undefined"!==typeof i.opacity&&(n*=i.opacity);else if("textAnchor"===t)n="start"===n?"left":"end"===n?"right":"center";else if("charSpacing"===t)o=a(n,r)/r*1e3;else if("paintFirst"===t){var u=n.indexOf("fill"),c=n.indexOf("stroke");n="fill";u>-1&&c>-1&&c<u?n="stroke":-1===u&&c>-1&&(n="stroke")}else{if("href"===t||"xlink:href"===t||"font"===t)return n;if("imageSmoothing"===t)return"optimizeQuality"===n;o=l?n.map(a):a(n,r)}}else n="";return!l&&isNaN(o)?n:o}function g(t){return new RegExp("^("+t.join("|")+")\\b","i")}function v(t){for(var n in d)if("undefined"!==typeof t[d[n]]&&""!==t[n]){if("undefined"===typeof t[n]){if(!e.Object.prototype[n])continue;t[n]=e.Object.prototype[n]}if(0!==t[n].indexOf("url(")){var i=new e.Color(t[n]);t[n]=i.setAlpha(r(i.getAlpha()*t[d[n]],2)).toRgba()}}return t}function y(t,e){var n,i,r,a,s=[];for(r=0,a=e.length;r<a;r++)n=e[r],i=t.getElementsByTagName(n),s=s.concat(Array.prototype.slice.call(i));return s}function b(t,e){var n,i;t.replace(/;\s*$/,"").split(";").forEach((function(t){var r=t.split(":");n=r[0].trim().toLowerCase(),i=r[1].trim(),e[n]=i}))}function w(t,e){var n,i;for(var r in t)"undefined"!==typeof t[r]&&(n=r.toLowerCase(),i=t[r],e[n]=i)}function x(t,n){var i={};for(var r in e.cssRules[n])if(M(t,r.split(" ")))for(var a in e.cssRules[n][r])i[a]=e.cssRules[n][r][a];return i}function M(t,e){var n,i=!0;return n=L(t,e.pop()),n&&e.length&&(i=S(t,e)),n&&i&&0===e.length}function S(t,e){var n,i=!0;while(t.parentNode&&1===t.parentNode.nodeType&&e.length)i&&(n=e.pop()),t=t.parentNode,i=L(t,n);return 0===e.length}function L(t,e){var n,i,r=t.nodeName,a=t.getAttribute("class"),s=t.getAttribute("id");if(n=new RegExp("^"+r,"i"),e=e.replace(n,""),s&&e.length&&(n=new RegExp("#"+s+"(?![a-zA-Z\\-]+)","i"),e=e.replace(n,"")),a&&e.length)for(a=a.split(" "),i=a.length;i--;)n=new RegExp("\\."+a[i]+"(?![a-zA-Z\\-]+)","i"),e=e.replace(n,"");return 0===e.length}function k(t,e){var n;if(t.getElementById&&(n=t.getElementById(e)),n)return n;var i,r,a,s=t.getElementsByTagName("*");for(r=0,a=s.length;r<a;r++)if(i=s[r],e===i.getAttribute("id"))return i}function T(t){var n=y(t,["use","svg:use"]),i=0;while(n.length&&i<n.length){var r,a,s,o,l,u=n[i],c=(u.getAttribute("xlink:href")||u.getAttribute("href")).substr(1),h=u.getAttribute("x")||0,d=u.getAttribute("y")||0,f=k(t,c).cloneNode(!0),m=(f.getAttribute("transform")||"")+" translate("+h+", "+d+")",p=n.length,_=e.svgNS;if(C(f),/^svg$/i.test(f.nodeName)){var g=f.ownerDocument.createElementNS(_,"g");for(s=0,o=f.attributes,l=o.length;s<l;s++)a=o.item(s),g.setAttributeNS(_,a.nodeName,a.nodeValue);while(f.firstChild)g.appendChild(f.firstChild);f=g}for(s=0,o=u.attributes,l=o.length;s<l;s++)a=o.item(s),"x"!==a.nodeName&&"y"!==a.nodeName&&"xlink:href"!==a.nodeName&&"href"!==a.nodeName&&("transform"===a.nodeName?m=a.nodeValue+" "+m:f.setAttribute(a.nodeName,a.nodeValue));f.setAttribute("transform",m),f.setAttribute("instantiated_by_use","1"),f.removeAttribute("id"),r=u.parentNode,r.replaceChild(f,u),n.length===p&&i++}}e.svgValidTagNamesRegEx=g(o),e.svgViewBoxElementsRegEx=g(l),e.svgInvalidAncestorsRegEx=g(u),e.svgValidParentsRegEx=g(c),e.cssRules={},e.gradientDefs={},e.clipPaths={},e.parseTransformAttribute=function(){function t(t,n){var i=e.util.cos(n[0]),r=e.util.sin(n[0]),a=0,s=0;3===n.length&&(a=n[1],s=n[2]),t[0]=i,t[1]=r,t[2]=-r,t[3]=i,t[4]=a-(i*a-r*s),t[5]=s-(r*a+i*s)}function n(t,e){var n=e[0],i=2===e.length?e[1]:e[0];t[0]=n,t[3]=i}function i(t,n,i){t[i]=Math.tan(e.util.degreesToRadians(n[0]))}function r(t,e){t[4]=e[0],2===e.length&&(t[5]=e[1])}var a=e.iMatrix,s=e.reNum,o=e.commaWsp,l="(?:(skewX)\\s*\\(\\s*("+s+")\\s*\\))",u="(?:(skewY)\\s*\\(\\s*("+s+")\\s*\\))",c="(?:(rotate)\\s*\\(\\s*("+s+")(?:"+o+"("+s+")"+o+"("+s+"))?\\s*\\))",h="(?:(scale)\\s*\\(\\s*("+s+")(?:"+o+"("+s+"))?\\s*\\))",d="(?:(translate)\\s*\\(\\s*("+s+")(?:"+o+"("+s+"))?\\s*\\))",f="(?:(matrix)\\s*\\(\\s*("+s+")"+o+"("+s+")"+o+"("+s+")"+o+"("+s+")"+o+"("+s+")"+o+"("+s+")\\s*\\))",m="(?:"+f+"|"+d+"|"+h+"|"+c+"|"+l+"|"+u+")",p="(?:"+m+"(?:"+o+"*"+m+")*)",_="^\\s*(?:"+p+"?)\\s*$",g=new RegExp(_),v=new RegExp(m,"g");return function(s){var o=a.concat(),l=[];if(!s||s&&!g.test(s))return o;s.replace(v,(function(s){var u=new RegExp(m).exec(s).filter((function(t){return!!t})),c=u[1],h=u.slice(2).map(parseFloat);switch(c){case"translate":r(o,h);break;case"rotate":h[0]=e.util.degreesToRadians(h[0]),t(o,h);break;case"scale":n(o,h);break;case"skewX":i(o,h,2);break;case"skewY":i(o,h,1);break;case"matrix":o=h;break}l.push(o.concat()),o=a.concat()}));var u=l[0];while(l.length>1)l.shift(),u=e.util.multiplyTransformMatrices(u,l[0]);return u}}();var D=new RegExp("^\\s*("+e.reNum+"+)\\s*,?\\s*("+e.reNum+"+)\\s*,?\\s*("+e.reNum+"+)\\s*,?\\s*("+e.reNum+"+)\\s*$");function C(t){if(e.svgViewBoxElementsRegEx.test(t.nodeName)){var n,i,r,s,o=t.getAttribute("viewBox"),l=1,u=1,c=0,h=0,d=t.getAttribute("width"),f=t.getAttribute("height"),m=t.getAttribute("x")||0,p=t.getAttribute("y")||0,_=t.getAttribute("preserveAspectRatio")||"",g=!o||!(o=o.match(D)),v=!d||!f||"100%"===d||"100%"===f,y=g&&v,b={},w="",x=0,M=0;if(b.width=0,b.height=0,b.toBeParsed=y,g&&(m||p)&&"#document"!==t.parentNode.nodeName&&(w=" translate("+a(m)+" "+a(p)+") ",r=(t.getAttribute("transform")||"")+w,t.setAttribute("transform",r),t.removeAttribute("x"),t.removeAttribute("y")),y)return b;if(g)return b.width=a(d),b.height=a(f),b;if(c=-parseFloat(o[1]),h=-parseFloat(o[2]),n=parseFloat(o[3]),i=parseFloat(o[4]),b.minX=c,b.minY=h,b.viewBoxWidth=n,b.viewBoxHeight=i,v?(b.width=n,b.height=i):(b.width=a(d),b.height=a(f),l=b.width/n,u=b.height/i),_=e.util.parsePreserveAspectRatioAttribute(_),"none"!==_.alignX&&("meet"===_.meetOrSlice&&(u=l=l>u?u:l),"slice"===_.meetOrSlice&&(u=l=l>u?l:u),x=b.width-n*l,M=b.height-i*l,"Mid"===_.alignX&&(x/=2),"Mid"===_.alignY&&(M/=2),"Min"===_.alignX&&(x=0),"Min"===_.alignY&&(M=0)),1===l&&1===u&&0===c&&0===h&&0===m&&0===p)return b;if((m||p)&&"#document"!==t.parentNode.nodeName&&(w=" translate("+a(m)+" "+a(p)+") "),r=w+" matrix("+l+" 0 0 "+u+" "+(c*l+x)+" "+(h*u+M)+") ","svg"===t.nodeName){s=t.ownerDocument.createElementNS(e.svgNS,"g");while(t.firstChild)s.appendChild(t.firstChild);t.appendChild(s)}else s=t,s.removeAttribute("x"),s.removeAttribute("y"),r=s.getAttribute("transform")+r;return s.setAttribute("transform",r),b}}function E(t,e){while(t&&(t=t.parentNode))if(t.nodeName&&e.test(t.nodeName.replace("svg:",""))&&!t.getAttribute("instantiated_by_use"))return!0;return!1}function O(t,e){var n=["gradientTransform","x1","x2","y1","y2","gradientUnits","cx","cy","r","fx","fy"],i="xlink:href",r=e.getAttribute(i).substr(1),a=k(t,r);if(a&&a.getAttribute(i)&&O(t,a),n.forEach((function(t){a&&!e.hasAttribute(t)&&a.hasAttribute(t)&&e.setAttribute(t,a.getAttribute(t))})),!e.children.length){var s=a.cloneNode(!0);while(s.firstChild)e.appendChild(s.firstChild)}e.removeAttribute(i)}e.parseSVGDocument=function(t,n,r,a){if(t){T(t);var s,o,l=e.Object.__uid++,u=C(t),c=e.util.toArray(t.getElementsByTagName("*"));if(u.crossOrigin=a&&a.crossOrigin,u.svgUid=l,0===c.length&&e.isLikelyNode){c=t.selectNodes('//*[name(.)!="svg"]');var h=[];for(s=0,o=c.length;s<o;s++)h[s]=c[s];c=h}var d=c.filter((function(t){return C(t),e.svgValidTagNamesRegEx.test(t.nodeName.replace("svg:",""))&&!E(t,e.svgInvalidAncestorsRegEx)}));if(!d||d&&!d.length)n&&n([],{});else{var f={};c.filter((function(t){return"clipPath"===t.nodeName.replace("svg:","")})).forEach((function(t){var n=t.getAttribute("id");f[n]=e.util.toArray(t.getElementsByTagName("*")).filter((function(t){return e.svgValidTagNamesRegEx.test(t.nodeName.replace("svg:",""))}))})),e.gradientDefs[l]=e.getGradientDefs(t),e.cssRules[l]=e.getCSSRules(t),e.clipPaths[l]=f,e.parseElements(d,(function(t,i){n&&(n(t,u,i,c),delete e.gradientDefs[l],delete e.cssRules[l],delete e.clipPaths[l])}),i(u),r,a)}}};var Y=new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*("+e.reNum+"(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|"+e.reNum+"))?\\s+(.*)");n(e,{parseFontDeclaration:function(t,e){var n=t.match(Y);if(n){var i=n[1],r=n[3],s=n[4],o=n[5],l=n[6];i&&(e.fontStyle=i),r&&(e.fontWeight=isNaN(parseFloat(r))?r:parseFloat(r)),s&&(e.fontSize=a(s)),l&&(e.fontFamily=l),o&&(e.lineHeight="normal"===o?1:o)}},getGradientDefs:function(t){var e,n=["linearGradient","radialGradient","svg:linearGradient","svg:radialGradient"],i=y(t,n),r=0,a={};r=i.length;while(r--)e=i[r],e.getAttribute("xlink:href")&&O(t,e),a[e.getAttribute("id")]=e;return a},parseAttributes:function(t,i,r){if(t){var s,o,l,u={};"undefined"===typeof r&&(r=t.getAttribute("svgUid")),t.parentNode&&e.svgValidParentsRegEx.test(t.parentNode.nodeName)&&(u=e.parseAttributes(t.parentNode,i,r));var c=i.reduce((function(e,n){return s=t.getAttribute(n),s&&(e[n]=s),e}),{}),h=n(x(t,r),e.parseStyleAttribute(t));c=n(c,h),h[m]&&t.setAttribute(m,h[m]),o=l=u.fontSize||e.Text.DEFAULT_SVG_FONT_SIZE,c[f]&&(c[f]=o=a(c[f],l));var d,g,y={};for(var b in c)d=p(b),g=_(d,c[b],u,o),y[d]=g;y&&y.font&&e.parseFontDeclaration(y.font,y);var w=n(u,y);return e.svgValidParentsRegEx.test(t.nodeName)?w:v(w)}},parseElements:function(t,n,i,r,a){new e.ElementsParser(t,n,i,r,a).parse()},parseStyleAttribute:function(t){var e={},n=t.getAttribute("style");return n?("string"===typeof n?b(n,e):w(n,e),e):e},parsePointsAttribute:function(t){if(!t)return null;t=t.replace(/,/g," ").trim(),t=t.split(/\s+/);var e,n,i=[];for(e=0,n=t.length;e<n;e+=2)i.push({x:parseFloat(t[e]),y:parseFloat(t[e+1])});return i},getCSSRules:function(t){var n,i,r,a=t.getElementsByTagName("style"),s={};for(n=0,i=a.length;n<i;n++){var o=a[n].textContent;o=o.replace(/\/\*[\s\S]*?\*\//g,""),""!==o.trim()&&(r=o.match(/[^{]*\{[\s\S]*?\}/g),r=r.map((function(t){return t.trim()})),r.forEach((function(t){var r=t.match(/([\s\S]*?)\s*\{([^}]*)\}/),a={},o=r[2].trim(),l=o.replace(/;$/,"").split(/\s*;\s*/);for(n=0,i=l.length;n<i;n++){var u=l[n].split(/\s*:\s*/),c=u[0],h=u[1];a[c]=h}t=r[1],t.split(",").forEach((function(t){t=t.replace(/^svg/i,"").trim(),""!==t&&(s[t]?e.util.object.extend(s[t],a):s[t]=e.util.object.clone(a))}))})))}return s},loadSVGFromURL:function(t,n,i,r){function a(t){var a=t.responseXML;if(!a||!a.documentElement)return n&&n(null),!1;e.parseSVGDocument(a.documentElement,(function(t,e,i,r){n&&n(t,e,i,r)}),i,r)}t=t.replace(/^\n\s*/,"").trim(),new e.util.request(t,{method:"get",onComplete:a})},loadSVGFromString:function(t,n,i,r){var a=new e.window.DOMParser,s=a.parseFromString(t.trim(),"text/xml");e.parseSVGDocument(s.documentElement,(function(t,e,i,r){n(t,e,i,r)}),i,r)}})}(e),i.ElementsParser=function(t,e,n,i,r,a){this.elements=t,this.callback=e,this.options=n,this.reviver=i,this.svgUid=n&&n.svgUid||0,this.parsingOptions=r,this.regexUrl=/^url\(['"]?#([^'"]+)['"]?\)/g,this.doc=a},function(t){t.parse=function(){this.instances=new Array(this.elements.length),this.numElements=this.elements.length,this.createObjects()},t.createObjects=function(){var t=this;this.elements.forEach((function(e,n){e.setAttribute("svgUid",t.svgUid),t.createObject(e,n)}))},t.findTag=function(t){return i[i.util.string.capitalize(t.tagName.replace("svg:",""))]},t.createObject=function(t,e){var n=this.findTag(t);if(n&&n.fromElement)try{n.fromElement(t,this.createCallback(e,t),this.options)}catch(r){i.log(r)}else this.checkIfDone()},t.createCallback=function(t,e){var n=this;return function(r){var a;n.resolveGradient(r,e,"fill"),n.resolveGradient(r,e,"stroke"),r instanceof i.Image&&r._originalElement&&(a=r.parsePreserveAspectRatioAttribute(e)),r._removeTransformMatrix(a),n.resolveClipPath(r,e),n.reviver&&n.reviver(e,r),n.instances[t]=r,n.checkIfDone()}},t.extractPropertyDefinition=function(t,e,n){var r=t[e],a=this.regexUrl;if(a.test(r)){a.lastIndex=0;var s=a.exec(r)[1];return a.lastIndex=0,i[n][this.svgUid][s]}},t.resolveGradient=function(t,e,n){var r=this.extractPropertyDefinition(t,n,"gradientDefs");if(r){var a=e.getAttribute(n+"-opacity"),s=i.Gradient.fromElement(r,t,a,this.options);t.set(n,s)}},t.createClipPathCallback=function(t,e){return function(t){t._removeTransformMatrix(),t.fillRule=t.clipRule,e.push(t)}},t.resolveClipPath=function(t,e){var n,r,a,s,o,l=this.extractPropertyDefinition(t,"clipPath","clipPaths");if(l){s=[],a=i.util.invertTransform(t.calcTransformMatrix());var u=l[0].parentNode,c=e;while(c.parentNode&&c.getAttribute("clip-path")!==t.clipPath)c=c.parentNode;c.parentNode.appendChild(u);for(var h=0;h<l.length;h++)n=l[h],r=this.findTag(n),r.fromElement(n,this.createClipPathCallback(t,s),this.options);l=1===s.length?s[0]:new i.Group(s),o=i.util.multiplyTransformMatrices(a,l.calcTransformMatrix()),l.clipPath&&this.resolveClipPath(l,c);var d=i.util.qrDecompose(o);l.flipX=!1,l.flipY=!1,l.set("scaleX",d.scaleX),l.set("scaleY",d.scaleY),l.angle=d.angle,l.skewX=d.skewX,l.skewY=0,l.setPositionByOrigin({x:d.translateX,y:d.translateY},"center","center"),t.clipPath=l}else delete t.clipPath},t.checkIfDone=function(){0===--this.numElements&&(this.instances=this.instances.filter((function(t){return null!=t})),this.callback(this.instances,this.elements))}}(i.ElementsParser.prototype),function(t){"use strict";var e=t.fabric||(t.fabric={});function n(t,e){this.x=t,this.y=e}e.Point?e.warn("fabric.Point is already defined"):(e.Point=n,n.prototype={type:"point",constructor:n,add:function(t){return new n(this.x+t.x,this.y+t.y)},addEquals:function(t){return this.x+=t.x,this.y+=t.y,this},scalarAdd:function(t){return new n(this.x+t,this.y+t)},scalarAddEquals:function(t){return this.x+=t,this.y+=t,this},subtract:function(t){return new n(this.x-t.x,this.y-t.y)},subtractEquals:function(t){return this.x-=t.x,this.y-=t.y,this},scalarSubtract:function(t){return new n(this.x-t,this.y-t)},scalarSubtractEquals:function(t){return this.x-=t,this.y-=t,this},multiply:function(t){return new n(this.x*t,this.y*t)},multiplyEquals:function(t){return this.x*=t,this.y*=t,this},divide:function(t){return new n(this.x/t,this.y/t)},divideEquals:function(t){return this.x/=t,this.y/=t,this},eq:function(t){return this.x===t.x&&this.y===t.y},lt:function(t){return this.x<t.x&&this.y<t.y},lte:function(t){return this.x<=t.x&&this.y<=t.y},gt:function(t){return this.x>t.x&&this.y>t.y},gte:function(t){return this.x>=t.x&&this.y>=t.y},lerp:function(t,e){return"undefined"===typeof e&&(e=.5),e=Math.max(Math.min(1,e),0),new n(this.x+(t.x-this.x)*e,this.y+(t.y-this.y)*e)},distanceFrom:function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},midPointFrom:function(t){return this.lerp(t)},min:function(t){return new n(Math.min(this.x,t.x),Math.min(this.y,t.y))},max:function(t){return new n(Math.max(this.x,t.x),Math.max(this.y,t.y))},toString:function(){return this.x+","+this.y},setXY:function(t,e){return this.x=t,this.y=e,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setFromPoint:function(t){return this.x=t.x,this.y=t.y,this},swap:function(t){var e=this.x,n=this.y;this.x=t.x,this.y=t.y,t.x=e,t.y=n},clone:function(){return new n(this.x,this.y)}})}(e),function(t){"use strict";var e=t.fabric||(t.fabric={});function n(t){this.status=t,this.points=[]}e.Intersection?e.warn("fabric.Intersection is already defined"):(e.Intersection=n,e.Intersection.prototype={constructor:n,appendPoint:function(t){return this.points.push(t),this},appendPoints:function(t){return this.points=this.points.concat(t),this}},e.Intersection.intersectLineLine=function(t,i,r,a){var s,o=(a.x-r.x)*(t.y-r.y)-(a.y-r.y)*(t.x-r.x),l=(i.x-t.x)*(t.y-r.y)-(i.y-t.y)*(t.x-r.x),u=(a.y-r.y)*(i.x-t.x)-(a.x-r.x)*(i.y-t.y);if(0!==u){var c=o/u,h=l/u;0<=c&&c<=1&&0<=h&&h<=1?(s=new n("Intersection"),s.appendPoint(new e.Point(t.x+c*(i.x-t.x),t.y+c*(i.y-t.y)))):s=new n}else s=new n(0===o||0===l?"Coincident":"Parallel");return s},e.Intersection.intersectLinePolygon=function(t,e,i){var r,a,s,o,l=new n,u=i.length;for(o=0;o<u;o++)r=i[o],a=i[(o+1)%u],s=n.intersectLineLine(t,e,r,a),l.appendPoints(s.points);return l.points.length>0&&(l.status="Intersection"),l},e.Intersection.intersectPolygonPolygon=function(t,e){var i,r=new n,a=t.length;for(i=0;i<a;i++){var s=t[i],o=t[(i+1)%a],l=n.intersectLinePolygon(s,o,e);r.appendPoints(l.points)}return r.points.length>0&&(r.status="Intersection"),r},e.Intersection.intersectPolygonRectangle=function(t,i,r){var a=i.min(r),s=i.max(r),o=new e.Point(s.x,a.y),l=new e.Point(a.x,s.y),u=n.intersectLinePolygon(a,o,t),c=n.intersectLinePolygon(o,s,t),h=n.intersectLinePolygon(s,l,t),d=n.intersectLinePolygon(l,a,t),f=new n;return f.appendPoints(u.points),f.appendPoints(c.points),f.appendPoints(h.points),f.appendPoints(d.points),f.points.length>0&&(f.status="Intersection"),f})}(e),function(t){"use strict";var e=t.fabric||(t.fabric={});function n(t){t?this._tryParsingColor(t):this.setSource([0,0,0,1])}function i(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}e.Color?e.warn("fabric.Color is already defined."):(e.Color=n,e.Color.prototype={_tryParsingColor:function(t){var e;t in n.colorNameMap&&(t=n.colorNameMap[t]),"transparent"===t&&(e=[255,255,255,0]),e||(e=n.sourceFromHex(t)),e||(e=n.sourceFromRgb(t)),e||(e=n.sourceFromHsl(t)),e||(e=[0,0,0,1]),e&&this.setSource(e)},_rgbToHsl:function(t,n,i){t/=255,n/=255,i/=255;var r,a,s,o=e.util.array.max([t,n,i]),l=e.util.array.min([t,n,i]);if(s=(o+l)/2,o===l)r=a=0;else{var u=o-l;switch(a=s>.5?u/(2-o-l):u/(o+l),o){case t:r=(n-i)/u+(n<i?6:0);break;case n:r=(i-t)/u+2;break;case i:r=(t-n)/u+4;break}r/=6}return[Math.round(360*r),Math.round(100*a),Math.round(100*s)]},getSource:function(){return this._source},setSource:function(t){this._source=t},toRgb:function(){var t=this.getSource();return"rgb("+t[0]+","+t[1]+","+t[2]+")"},toRgba:function(){var t=this.getSource();return"rgba("+t[0]+","+t[1]+","+t[2]+","+t[3]+")"},toHsl:function(){var t=this.getSource(),e=this._rgbToHsl(t[0],t[1],t[2]);return"hsl("+e[0]+","+e[1]+"%,"+e[2]+"%)"},toHsla:function(){var t=this.getSource(),e=this._rgbToHsl(t[0],t[1],t[2]);return"hsla("+e[0]+","+e[1]+"%,"+e[2]+"%,"+t[3]+")"},toHex:function(){var t,e,n,i=this.getSource();return t=i[0].toString(16),t=1===t.length?"0"+t:t,e=i[1].toString(16),e=1===e.length?"0"+e:e,n=i[2].toString(16),n=1===n.length?"0"+n:n,t.toUpperCase()+e.toUpperCase()+n.toUpperCase()},toHexa:function(){var t,e=this.getSource();return t=Math.round(255*e[3]),t=t.toString(16),t=1===t.length?"0"+t:t,this.toHex()+t.toUpperCase()},getAlpha:function(){return this.getSource()[3]},setAlpha:function(t){var e=this.getSource();return e[3]=t,this.setSource(e),this},toGrayscale:function(){var t=this.getSource(),e=parseInt((.3*t[0]+.59*t[1]+.11*t[2]).toFixed(0),10),n=t[3];return this.setSource([e,e,e,n]),this},toBlackWhite:function(t){var e=this.getSource(),n=(.3*e[0]+.59*e[1]+.11*e[2]).toFixed(0),i=e[3];return t=t||127,n=Number(n)<Number(t)?0:255,this.setSource([n,n,n,i]),this},overlayWith:function(t){t instanceof n||(t=new n(t));var e,i=[],r=this.getAlpha(),a=.5,s=this.getSource(),o=t.getSource();for(e=0;e<3;e++)i.push(Math.round(s[e]*(1-a)+o[e]*a));return i[3]=r,this.setSource(i),this}},e.Color.reRGBa=/^rgba?\(\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*(?:\s*,\s*((?:\d*\.?\d+)?)\s*)?\)$/i,e.Color.reHSLa=/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i,e.Color.reHex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,e.Color.colorNameMap={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"},e.Color.fromRgb=function(t){return n.fromSource(n.sourceFromRgb(t))},e.Color.sourceFromRgb=function(t){var e=t.match(n.reRGBa);if(e){var i=parseInt(e[1],10)/(/%$/.test(e[1])?100:1)*(/%$/.test(e[1])?255:1),r=parseInt(e[2],10)/(/%$/.test(e[2])?100:1)*(/%$/.test(e[2])?255:1),a=parseInt(e[3],10)/(/%$/.test(e[3])?100:1)*(/%$/.test(e[3])?255:1);return[parseInt(i,10),parseInt(r,10),parseInt(a,10),e[4]?parseFloat(e[4]):1]}},e.Color.fromRgba=n.fromRgb,e.Color.fromHsl=function(t){return n.fromSource(n.sourceFromHsl(t))},e.Color.sourceFromHsl=function(t){var e=t.match(n.reHSLa);if(e){var r,a,s,o=(parseFloat(e[1])%360+360)%360/360,l=parseFloat(e[2])/(/%$/.test(e[2])?100:1),u=parseFloat(e[3])/(/%$/.test(e[3])?100:1);if(0===l)r=a=s=u;else{var c=u<=.5?u*(l+1):u+l-u*l,h=2*u-c;r=i(h,c,o+1/3),a=i(h,c,o),s=i(h,c,o-1/3)}return[Math.round(255*r),Math.round(255*a),Math.round(255*s),e[4]?parseFloat(e[4]):1]}},e.Color.fromHsla=n.fromHsl,e.Color.fromHex=function(t){return n.fromSource(n.sourceFromHex(t))},e.Color.sourceFromHex=function(t){if(t.match(n.reHex)){var e=t.slice(t.indexOf("#")+1),i=3===e.length||4===e.length,r=8===e.length||4===e.length,a=i?e.charAt(0)+e.charAt(0):e.substring(0,2),s=i?e.charAt(1)+e.charAt(1):e.substring(2,4),o=i?e.charAt(2)+e.charAt(2):e.substring(4,6),l=r?i?e.charAt(3)+e.charAt(3):e.substring(6,8):"FF";return[parseInt(a,16),parseInt(s,16),parseInt(o,16),parseFloat((parseInt(l,16)/255).toFixed(2))]}},e.Color.fromSource=function(t){var e=new n;return e.setSource(t),e})}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=["e","se","s","sw","w","nw","n","ne","e"],i=["ns","nesw","ew","nwse"],r={},a="left",s="top",o="right",l="bottom",u="center",c={top:l,bottom:s,left:o,right:a,center:u},h=e.util.radiansToDegrees,d=Math.sign||function(t){return(t>0)-(t<0)||+t};function f(t,e){var n=t.angle+h(Math.atan2(e.y,e.x))+360;return Math.round(n%360/45)}function m(t,n){var i=n.transform.target,r=i.canvas,a=e.util.object.clone(n);a.target=i,r&&r.fire("object:"+t,a),i.fire(t,n)}function p(t,e){var n=e.canvas,i=n.uniScaleKey,r=t[i];return n.uniformScaling&&!r||!n.uniformScaling&&r}function _(t){return t.originX===u&&t.originY===u}function g(t,e,n){var i=t.lockScalingX,r=t.lockScalingY;return!(!i||!r)||(!(e||!i&&!r||!n)||(!(!i||"x"!==e)||!(!r||"y"!==e)))}function v(t,e,i){var r="not-allowed",a=p(t,i),s="";if(0!==e.x&&0===e.y?s="x":0===e.x&&0!==e.y&&(s="y"),g(i,s,a))return r;var o=f(i,e);return n[o]+"-resize"}function y(t,e,n){var r="not-allowed";if(0!==e.x&&n.lockSkewingY)return r;if(0!==e.y&&n.lockSkewingX)return r;var a=f(n,e)%4;return i[a]+"-resize"}function b(t,e,n){return t[n.canvas.altActionKey]?r.skewCursorStyleHandler(t,e,n):r.scaleCursorStyleHandler(t,e,n)}function w(t,e,n){var i=t[n.canvas.altActionKey];return 0===e.x?i?"skewX":"scaleY":0===e.y?i?"skewY":"scaleX":void 0}function x(t,e,n){return n.lockRotation?"not-allowed":e.cursorStyle}function M(t,e,n,i){return{e:t,transform:e,pointer:{x:n,y:i}}}function S(t){return function(e,n,i,r){var a=n.target,s=a.getCenterPoint(),o=a.translateToOriginPoint(s,n.originX,n.originY),l=t(e,n,i,r);return a.setPositionByOrigin(o,n.originX,n.originY),l}}function L(t,n,i,r,a){var s=t.target,o=s.controls[t.corner],l=s.canvas.getZoom(),u=s.padding/l,c=s.toLocalPoint(new e.Point(r,a),n,i);return c.x>=u&&(c.x-=u),c.x<=-u&&(c.x+=u),c.y>=u&&(c.y-=u),c.y<=u&&(c.y+=u),c.x-=o.offsetX,c.y-=o.offsetY,c}function k(t){return t.flipX!==t.flipY}function T(t,e,n,i,r){if(0!==t[e]){var a=t._getTransformedDimensions()[i],s=r/a*t[n];t.set(n,s)}}function D(t,e,n,i){var r,u=e.target,c=u._getTransformedDimensions(0,u.skewY),d=L(e,e.originX,e.originY,n,i),f=Math.abs(2*d.x)-c.x,p=u.skewX;f<2?r=0:(r=h(Math.atan2(f/u.scaleX,c.y/u.scaleY)),e.originX===a&&e.originY===l&&(r=-r),e.originX===o&&e.originY===s&&(r=-r),k(u)&&(r=-r));var _=p!==r;if(_){var g=u._getTransformedDimensions().y;u.set("skewX",r),T(u,"skewY","scaleY","y",g),m("skewing",M(t,e,n,i))}return _}function C(t,e,n,i){var r,u=e.target,c=u._getTransformedDimensions(u.skewX,0),d=L(e,e.originX,e.originY,n,i),f=Math.abs(2*d.y)-c.y,p=u.skewY;f<2?r=0:(r=h(Math.atan2(f/u.scaleY,c.x/u.scaleX)),e.originX===a&&e.originY===l&&(r=-r),e.originX===o&&e.originY===s&&(r=-r),k(u)&&(r=-r));var _=p!==r;if(_){var g=u._getTransformedDimensions().x;u.set("skewY",r),T(u,"skewX","scaleX","x",g),m("skewing",M(t,e,n,i))}return _}function E(t,e,n,i){var r,l=e.target,c=l.skewX,h=e.originY;if(l.lockSkewingX)return!1;if(0===c){var d=L(e,u,u,n,i);r=d.x>0?a:o}else c>0&&(r=h===s?a:o),c<0&&(r=h===s?o:a),k(l)&&(r=r===a?o:a);e.originX=r;var f=S(D);return f(t,e,n,i)}function O(t,e,n,i){var r,o=e.target,c=o.skewY,h=e.originX;if(o.lockSkewingY)return!1;if(0===c){var d=L(e,u,u,n,i);r=d.y>0?s:l}else c>0&&(r=h===a?s:l),c<0&&(r=h===a?l:s),k(o)&&(r=r===s?l:s);e.originY=r;var f=S(C);return f(t,e,n,i)}function Y(t,e,n,i){var r=e,a=r.target,s=a.translateToOriginPoint(a.getCenterPoint(),r.originX,r.originY);if(a.lockRotation)return!1;var o=Math.atan2(r.ey-s.y,r.ex-s.x),l=Math.atan2(i-s.y,n-s.x),u=h(l-o+r.theta),c=!0;if(a.snapAngle>0){var d=a.snapAngle,f=a.snapThreshold||d,p=Math.ceil(u/d)*d,_=Math.floor(u/d)*d;Math.abs(u-_)<f?u=_:Math.abs(u-p)<f&&(u=p)}return u<0&&(u=360+u),u%=360,c=a.angle!==u,a.angle=u,c&&m("rotating",M(t,e,n,i)),c}function A(t,e,n,i,r){r=r||{};var a,s,o,l,u,h,f=e.target,v=f.lockScalingX,y=f.lockScalingY,b=r.by,w=p(t,f),x=g(f,b,w),S=e.gestureScale;if(x)return!1;if(S)s=e.scaleX*S,o=e.scaleY*S;else{if(a=L(e,e.originX,e.originY,n,i),u="y"!==b?d(a.x):1,h="x"!==b?d(a.y):1,e.signX||(e.signX=u),e.signY||(e.signY=h),f.lockScalingFlip&&(e.signX!==u||e.signY!==h))return!1;if(l=f._getTransformedDimensions(),w&&!b){var k,T=Math.abs(a.x)+Math.abs(a.y),D=e.original,C=Math.abs(l.x*D.scaleX/f.scaleX)+Math.abs(l.y*D.scaleY/f.scaleY),E=T/C;s=D.scaleX*E,o=D.scaleY*E}else s=Math.abs(a.x*f.scaleX/l.x),o=Math.abs(a.y*f.scaleY/l.y);_(e)&&(s*=2,o*=2),e.signX!==u&&"y"!==b&&(e.originX=c[e.originX],s*=-1,e.signX=u),e.signY!==h&&"x"!==b&&(e.originY=c[e.originY],o*=-1,e.signY=h)}var O=f.scaleX,Y=f.scaleY;return b?("x"===b&&f.set("scaleX",s),"y"===b&&f.set("scaleY",o)):(!v&&f.set("scaleX",s),!y&&f.set("scaleY",o)),k=O!==f.scaleX||Y!==f.scaleY,k&&m("scaling",M(t,e,n,i)),k}function P(t,e,n,i){return A(t,e,n,i)}function R(t,e,n,i){return A(t,e,n,i,{by:"x"})}function I(t,e,n,i){return A(t,e,n,i,{by:"y"})}function j(t,e,n,i){return t[e.target.canvas.altActionKey]?r.skewHandlerX(t,e,n,i):r.scalingY(t,e,n,i)}function F(t,e,n,i){return t[e.target.canvas.altActionKey]?r.skewHandlerY(t,e,n,i):r.scalingX(t,e,n,i)}function H(t,e,n,i){var r,a=e.target,s=L(e,e.originX,e.originY,n,i),o=a.strokeWidth/(a.strokeUniform?a.scaleX:1),l=_(e)?2:1,u=a.width,c=Math.abs(s.x*l/a.scaleX)-o;return a.set("width",Math.max(c,0)),r=u!==c,r&&m("resizing",M(t,e,n,i)),r}function N(t,e,n,i){var r=e.target,a=n-e.offsetX,s=i-e.offsetY,o=!r.get("lockMovementX")&&r.left!==a,l=!r.get("lockMovementY")&&r.top!==s;return o&&r.set("left",a),l&&r.set("top",s),(o||l)&&m("moving",M(t,e,n,i)),o||l}r.scaleCursorStyleHandler=v,r.skewCursorStyleHandler=y,r.scaleSkewCursorStyleHandler=b,r.rotationWithSnapping=S(Y),r.scalingEqually=S(P),r.scalingX=S(R),r.scalingY=S(I),r.scalingYOrSkewingX=j,r.scalingXOrSkewingY=F,r.changeWidth=S(H),r.skewHandlerX=E,r.skewHandlerY=O,r.dragHandler=N,r.scaleOrSkewActionName=w,r.rotationStyleHandler=x,r.fireEvent=m,r.wrapWithFixedAnchor=S,r.getLocalPoint=L,e.controlsUtils=r}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=e.util.degreesToRadians,i=e.controlsUtils;function r(t,e,n,i,r){i=i||{};var a,s=this.sizeX||i.cornerSize||r.cornerSize,o=this.sizeY||i.cornerSize||r.cornerSize,l="undefined"!==typeof i.transparentCorners?i.transparentCorners:this.transparentCorners,u=l?"stroke":"fill",c=!l&&(i.cornerStrokeColor||r.cornerStrokeColor),h=e,d=n;t.save(),t.fillStyle=i.cornerColor||r.cornerColor,t.strokeStyle=i.cornerStrokeColor||r.cornerStrokeColor,s>o?(a=s,t.scale(1,o/s),d=n*s/o):o>s?(a=o,t.scale(s/o,1),h=e*o/s):a=s,t.lineWidth=1,t.beginPath(),t.arc(h,d,a/2,0,2*Math.PI,!1),t[u](),c&&t.stroke(),t.restore()}function a(t,e,i,r,a){r=r||{};var s=this.sizeX||r.cornerSize||a.cornerSize,o=this.sizeY||r.cornerSize||a.cornerSize,l="undefined"!==typeof r.transparentCorners?r.transparentCorners:a.transparentCorners,u=l?"stroke":"fill",c=!l&&(r.cornerStrokeColor||a.cornerStrokeColor),h=s/2,d=o/2;t.save(),t.fillStyle=r.cornerColor||a.cornerColor,t.strokeStyle=r.strokeCornerColor||a.strokeCornerColor,t.lineWidth=1,t.translate(e,i),t.rotate(n(a.angle)),t[u+"Rect"](-h,-d,s,o),c&&t.strokeRect(-h,-d,s,o),t.restore()}i.renderCircleControl=r,i.renderSquareControl=a}(e),function(t){"use strict";var e=t.fabric||(t.fabric={});function n(t){for(var e in t)this[e]=t[e]}e.Control=n,e.Control.prototype={visible:!0,actionName:"scale",angle:0,x:0,y:0,offsetX:0,offsetY:0,sizeX:null,sizeY:null,touchSizeX:null,touchSizeY:null,cursorStyle:"crosshair",withConnection:!1,actionHandler:function(){},mouseDownHandler:function(){},mouseUpHandler:function(){},getActionHandler:function(){return this.actionHandler},getMouseDownHandler:function(){return this.mouseDownHandler},getMouseUpHandler:function(){return this.mouseUpHandler},cursorStyleHandler:function(t,e){return e.cursorStyle},getActionName:function(t,e){return e.actionName},getVisibility:function(t,e){var n=t._controlsVisibility;return n&&"undefined"!==typeof n[e]?n[e]:this.visible},setVisibility:function(t){this.visible=t},positionHandler:function(t,n){var i=e.util.transformPoint({x:this.x*t.x+this.offsetX,y:this.y*t.y+this.offsetY},n);return i},calcCornerCoords:function(t,n,i,r,a){var s,o,l,u,c=a?this.touchSizeX:this.sizeX,h=a?this.touchSizeY:this.sizeY;if(c&&h&&c!==h){var d=Math.atan2(h,c),f=Math.sqrt(c*c+h*h)/2,m=d-e.util.degreesToRadians(t),p=Math.PI/2-d-e.util.degreesToRadians(t);s=f*e.util.cos(m),o=f*e.util.sin(m),l=f*e.util.cos(p),u=f*e.util.sin(p)}else{var _=c&&h?c:n;f=.7071067812*_;m=e.util.degreesToRadians(45-t);s=l=f*e.util.cos(m),o=u=f*e.util.sin(m)}return{tl:{x:i-u,y:r-l},tr:{x:i+s,y:r-o},bl:{x:i-s,y:r+o},br:{x:i+u,y:r+l}}},render:function(t,n,i,r,a){switch(r=r||{},r.cornerStyle||a.cornerStyle){case"circle":e.controlsUtils.renderCircleControl.call(this,t,n,i,r,a);break;default:e.controlsUtils.renderSquareControl.call(this,t,n,i,r,a)}}}}(e),function(){function t(t,e){var n,r,a,s,o=t.getAttribute("style"),l=t.getAttribute("offset")||0;if(l=parseFloat(l)/(/%$/.test(l)?100:1),l=l<0?0:l>1?1:l,o){var u=o.split(/\s*;\s*/);for(""===u[u.length-1]&&u.pop(),s=u.length;s--;){var c=u[s].split(/\s*:\s*/),h=c[0].trim(),d=c[1].trim();"stop-color"===h?n=d:"stop-opacity"===h&&(a=d)}}return n||(n=t.getAttribute("stop-color")||"rgb(0,0,0)"),a||(a=t.getAttribute("stop-opacity")),n=new i.Color(n),r=n.getAlpha(),a=isNaN(parseFloat(a))?1:parseFloat(a),a*=r*e,{offset:l,color:n.toRgb(),opacity:a}}function e(t){return{x1:t.getAttribute("x1")||0,y1:t.getAttribute("y1")||0,x2:t.getAttribute("x2")||"100%",y2:t.getAttribute("y2")||0}}function n(t){return{x1:t.getAttribute("fx")||t.getAttribute("cx")||"50%",y1:t.getAttribute("fy")||t.getAttribute("cy")||"50%",r1:0,x2:t.getAttribute("cx")||"50%",y2:t.getAttribute("cy")||"50%",r2:t.getAttribute("r")||"50%"}}var r=i.util.object.clone;function a(t,e,n,i){var r,a;Object.keys(e).forEach((function(t){r=e[t],"Infinity"===r?a=1:"-Infinity"===r?a=0:(a=parseFloat(e[t],10),"string"===typeof r&&/^(\d+\.\d+)%|(\d+)%$/.test(r)&&(a*=.01,"pixels"===i&&("x1"!==t&&"x2"!==t&&"r2"!==t||(a*=n.viewBoxWidth||n.width),"y1"!==t&&"y2"!==t||(a*=n.viewBoxHeight||n.height)))),e[t]=a}))}i.Gradient=i.util.createClass({offsetX:0,offsetY:0,gradientTransform:null,gradientUnits:"pixels",type:"linear",initialize:function(t){t||(t={}),t.coords||(t.coords={});var e,n=this;Object.keys(t).forEach((function(e){n[e]=t[e]})),this.id?this.id+="_"+i.Object.__uid++:this.id=i.Object.__uid++,e={x1:t.coords.x1||0,y1:t.coords.y1||0,x2:t.coords.x2||0,y2:t.coords.y2||0},"radial"===this.type&&(e.r1=t.coords.r1||0,e.r2=t.coords.r2||0),this.coords=e,this.colorStops=t.colorStops.slice()},addColorStop:function(t){for(var e in t){var n=new i.Color(t[e]);this.colorStops.push({offset:parseFloat(e),color:n.toRgb(),opacity:n.getAlpha()})}return this},toObject:function(t){var e={type:this.type,coords:this.coords,colorStops:this.colorStops,offsetX:this.offsetX,offsetY:this.offsetY,gradientUnits:this.gradientUnits,gradientTransform:this.gradientTransform?this.gradientTransform.concat():this.gradientTransform};return i.util.populateWithProperties(this,e,t),e},toSVG:function(t,e){var n,a,s,o,l=r(this.coords,!0),u=(e=e||{},r(this.colorStops,!0)),c=l.r1>l.r2,h=this.gradientTransform?this.gradientTransform.concat():i.iMatrix.concat(),d=-this.offsetX,f=-this.offsetY,m=!!e.additionalTransform,p="pixels"===this.gradientUnits?"userSpaceOnUse":"objectBoundingBox";if(u.sort((function(t,e){return t.offset-e.offset})),"objectBoundingBox"===p?(d/=t.width,f/=t.height):(d+=t.width/2,f+=t.height/2),"path"===t.type&&"percentage"!==this.gradientUnits&&(d-=t.pathOffset.x,f-=t.pathOffset.y),h[4]-=d,h[5]-=f,o='id="SVGID_'+this.id+'" gradientUnits="'+p+'"',o+=' gradientTransform="'+(m?e.additionalTransform+" ":"")+i.util.matrixToSVG(h)+'" ',"linear"===this.type?s=["<linearGradient ",o,' x1="',l.x1,'" y1="',l.y1,'" x2="',l.x2,'" y2="',l.y2,'">\n']:"radial"===this.type&&(s=["<radialGradient ",o,' cx="',c?l.x1:l.x2,'" cy="',c?l.y1:l.y2,'" r="',c?l.r1:l.r2,'" fx="',c?l.x2:l.x1,'" fy="',c?l.y2:l.y1,'">\n']),"radial"===this.type){if(c)for(u=u.concat(),u.reverse(),n=0,a=u.length;n<a;n++)u[n].offset=1-u[n].offset;var _=Math.min(l.r1,l.r2);if(_>0){var g=Math.max(l.r1,l.r2),v=_/g;for(n=0,a=u.length;n<a;n++)u[n].offset+=v*(1-u[n].offset)}}for(n=0,a=u.length;n<a;n++){var y=u[n];s.push("<stop ",'offset="',100*y.offset+"%",'" style="stop-color:',y.color,"undefined"!==typeof y.opacity?";stop-opacity: "+y.opacity:";",'"/>\n')}return s.push("linear"===this.type?"</linearGradient>\n":"</radialGradient>\n"),s.join("")},toLive:function(t){var e,n,r,a=i.util.object.clone(this.coords);if(this.type){for("linear"===this.type?e=t.createLinearGradient(a.x1,a.y1,a.x2,a.y2):"radial"===this.type&&(e=t.createRadialGradient(a.x1,a.y1,a.r1,a.x2,a.y2,a.r2)),n=0,r=this.colorStops.length;n<r;n++){var s=this.colorStops[n].color,o=this.colorStops[n].opacity,l=this.colorStops[n].offset;"undefined"!==typeof o&&(s=new i.Color(s).setAlpha(o).toRgba()),e.addColorStop(l,s)}return e}}}),i.util.object.extend(i.Gradient,{fromElement:function(r,s,o,l){var u=parseFloat(o)/(/%$/.test(o)?100:1);u=u<0?0:u>1?1:u,isNaN(u)&&(u=1);var c,h,d,f,m=r.getElementsByTagName("stop"),p="userSpaceOnUse"===r.getAttribute("gradientUnits")?"pixels":"percentage",_=r.getAttribute("gradientTransform")||"",g=[],v=0,y=0;for("linearGradient"===r.nodeName||"LINEARGRADIENT"===r.nodeName?(c="linear",h=e(r)):(c="radial",h=n(r)),d=m.length;d--;)g.push(t(m[d],u));f=i.parseTransformAttribute(_),a(s,h,l,p),"pixels"===p&&(v=-s.left,y=-s.top);var b=new i.Gradient({id:r.getAttribute("id"),type:c,coords:h,colorStops:g,gradientUnits:p,gradientTransform:f,offsetX:v,offsetY:y});return b}})}(),function(){"use strict";var t=i.util.toFixed;i.Pattern=i.util.createClass({repeat:"repeat",offsetX:0,offsetY:0,crossOrigin:"",patternTransform:null,initialize:function(t,e){if(t||(t={}),this.id=i.Object.__uid++,this.setOptions(t),!t.source||t.source&&"string"!==typeof t.source)e&&e(this);else{var n=this;this.source=i.util.createImage(),i.util.loadImage(t.source,(function(t,i){n.source=t,e&&e(n,i)}),null,this.crossOrigin)}},toObject:function(e){var n,r,a=i.Object.NUM_FRACTION_DIGITS;return"string"===typeof this.source.src?n=this.source.src:"object"===typeof this.source&&this.source.toDataURL&&(n=this.source.toDataURL()),r={type:"pattern",source:n,repeat:this.repeat,crossOrigin:this.crossOrigin,offsetX:t(this.offsetX,a),offsetY:t(this.offsetY,a),patternTransform:this.patternTransform?this.patternTransform.concat():null},i.util.populateWithProperties(this,r,e),r},toSVG:function(t){var e="function"===typeof this.source?this.source():this.source,n=e.width/t.width,i=e.height/t.height,r=this.offsetX/t.width,a=this.offsetY/t.height,s="";return"repeat-x"!==this.repeat&&"no-repeat"!==this.repeat||(i=1,a&&(i+=Math.abs(a))),"repeat-y"!==this.repeat&&"no-repeat"!==this.repeat||(n=1,r&&(n+=Math.abs(r))),e.src?s=e.src:e.toDataURL&&(s=e.toDataURL()),'<pattern id="SVGID_'+this.id+'" x="'+r+'" y="'+a+'" width="'+n+'" height="'+i+'">\n<image x="0" y="0" width="'+e.width+'" height="'+e.height+'" xlink:href="'+s+'"></image>\n</pattern>\n'},setOptions:function(t){for(var e in t)this[e]=t[e]},toLive:function(t){var e=this.source;if(!e)return"";if("undefined"!==typeof e.src){if(!e.complete)return"";if(0===e.naturalWidth||0===e.naturalHeight)return""}return t.createPattern(e,this.repeat)}})}(),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=e.util.toFixed;e.Shadow?e.warn("fabric.Shadow is already defined."):(e.Shadow=e.util.createClass({color:"rgb(0,0,0)",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1,initialize:function(t){for(var n in"string"===typeof t&&(t=this._parseShadow(t)),t)this[n]=t[n];this.id=e.Object.__uid++},_parseShadow:function(t){var n=t.trim(),i=e.Shadow.reOffsetsAndBlur.exec(n)||[],r=n.replace(e.Shadow.reOffsetsAndBlur,"")||"rgb(0,0,0)";return{color:r.trim(),offsetX:parseInt(i[1],10)||0,offsetY:parseInt(i[2],10)||0,blur:parseInt(i[3],10)||0}},toString:function(){return[this.offsetX,this.offsetY,this.blur,this.color].join("px ")},toSVG:function(t){var i=40,r=40,a=e.Object.NUM_FRACTION_DIGITS,s=e.util.rotateVector({x:this.offsetX,y:this.offsetY},e.util.degreesToRadians(-t.angle)),o=20,l=new e.Color(this.color);return t.width&&t.height&&(i=100*n((Math.abs(s.x)+this.blur)/t.width,a)+o,r=100*n((Math.abs(s.y)+this.blur)/t.height,a)+o),t.flipX&&(s.x*=-1),t.flipY&&(s.y*=-1),'<filter id="SVGID_'+this.id+'" y="-'+r+'%" height="'+(100+2*r)+'%" x="-'+i+'%" width="'+(100+2*i)+'%" >\n\t<feGaussianBlur in="SourceAlpha" stdDeviation="'+n(this.blur?this.blur/2:0,a)+'"></feGaussianBlur>\n\t<feOffset dx="'+n(s.x,a)+'" dy="'+n(s.y,a)+'" result="oBlur" ></feOffset>\n\t<feFlood flood-color="'+l.toRgb()+'" flood-opacity="'+l.getAlpha()+'"/>\n\t<feComposite in2="oBlur" operator="in" />\n\t<feMerge>\n\t\t<feMergeNode></feMergeNode>\n\t\t<feMergeNode in="SourceGraphic"></feMergeNode>\n\t</feMerge>\n</filter>\n'},toObject:function(){if(this.includeDefaultValues)return{color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke,nonScaling:this.nonScaling};var t={},n=e.Shadow.prototype;return["color","blur","offsetX","offsetY","affectStroke","nonScaling"].forEach((function(e){this[e]!==n[e]&&(t[e]=this[e])}),this),t}}),e.Shadow.reOffsetsAndBlur=/(?:\s|^)(-?\d+(?:px)?(?:\s?|$))?(-?\d+(?:px)?(?:\s?|$))?(\d+(?:px)?)?(?:\s?|$)(?:$|\s)/)}(e),function(){"use strict";if(i.StaticCanvas)i.warn("fabric.StaticCanvas is already defined.");else{var t=i.util.object.extend,e=i.util.getElementOffset,n=i.util.removeFromArray,r=i.util.toFixed,a=i.util.transformPoint,s=i.util.invertTransform,o=i.util.getNodeCanvas,l=i.util.createCanvasElement,u=new Error("Could not initialize `canvas` element");i.StaticCanvas=i.util.createClass(i.CommonMethods,{initialize:function(t,e){e||(e={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(t,e)},backgroundColor:"",backgroundImage:null,overlayColor:"",overlayImage:null,includeDefaultValues:!0,stateful:!1,renderOnAddRemove:!0,controlsAboveOverlay:!1,allowTouchScrolling:!1,imageSmoothingEnabled:!0,viewportTransform:i.iMatrix.concat(),backgroundVpt:!0,overlayVpt:!0,enableRetinaScaling:!0,vptCoords:{},skipOffscreen:!0,clipPath:void 0,_initStatic:function(t,e){var n=this.requestRenderAllBound;this._objects=[],this._createLowerCanvas(t),this._initOptions(e),this.interactive||this._initRetinaScaling(),e.overlayImage&&this.setOverlayImage(e.overlayImage,n),e.backgroundImage&&this.setBackgroundImage(e.backgroundImage,n),e.backgroundColor&&this.setBackgroundColor(e.backgroundColor,n),e.overlayColor&&this.setOverlayColor(e.overlayColor,n),this.calcOffset()},_isRetinaScaling:function(){return 1!==i.devicePixelRatio&&this.enableRetinaScaling},getRetinaScaling:function(){return this._isRetinaScaling()?i.devicePixelRatio:1},_initRetinaScaling:function(){if(this._isRetinaScaling()){var t=i.devicePixelRatio;this.__initRetinaScaling(t,this.lowerCanvasEl,this.contextContainer),this.upperCanvasEl&&this.__initRetinaScaling(t,this.upperCanvasEl,this.contextTop)}},__initRetinaScaling:function(t,e,n){e.setAttribute("width",this.width*t),e.setAttribute("height",this.height*t),n.scale(t,t)},calcOffset:function(){return this._offset=e(this.lowerCanvasEl),this},setOverlayImage:function(t,e,n){return this.__setBgOverlayImage("overlayImage",t,e,n)},setBackgroundImage:function(t,e,n){return this.__setBgOverlayImage("backgroundImage",t,e,n)},setOverlayColor:function(t,e){return this.__setBgOverlayColor("overlayColor",t,e)},setBackgroundColor:function(t,e){return this.__setBgOverlayColor("backgroundColor",t,e)},__setBgOverlayImage:function(t,e,n,r){return"string"===typeof e?i.util.loadImage(e,(function(e,a){if(e){var s=new i.Image(e,r);this[t]=s,s.canvas=this}n&&n(e,a)}),this,r&&r.crossOrigin):(r&&e.setOptions(r),this[t]=e,e&&(e.canvas=this),n&&n(e,!1)),this},__setBgOverlayColor:function(t,e,n){return this[t]=e,this._initGradient(e,t),this._initPattern(e,t,n),this},_createCanvasElement:function(){var t=l();if(!t)throw u;if(t.style||(t.style={}),"undefined"===typeof t.getContext)throw u;return t},_initOptions:function(t){var e=this.lowerCanvasEl;this._setOptions(t),this.width=this.width||parseInt(e.width,10)||0,this.height=this.height||parseInt(e.height,10)||0,this.lowerCanvasEl.style&&(e.width=this.width,e.height=this.height,e.style.width=this.width+"px",e.style.height=this.height+"px",this.viewportTransform=this.viewportTransform.slice())},_createLowerCanvas:function(t){t&&t.getContext?this.lowerCanvasEl=t:this.lowerCanvasEl=i.util.getById(t)||this._createCanvasElement(),i.util.addClass(this.lowerCanvasEl,"lower-canvas"),this.interactive&&this._applyCanvasStyle(this.lowerCanvasEl),this.contextContainer=this.lowerCanvasEl.getContext("2d")},getWidth:function(){return this.width},getHeight:function(){return this.height},setWidth:function(t,e){return this.setDimensions({width:t},e)},setHeight:function(t,e){return this.setDimensions({height:t},e)},setDimensions:function(t,e){var n;for(var i in e=e||{},t)n=t[i],e.cssOnly||(this._setBackstoreDimension(i,t[i]),n+="px",this.hasLostContext=!0),e.backstoreOnly||this._setCssDimension(i,n);return this._isCurrentlyDrawing&&this.freeDrawingBrush&&this.freeDrawingBrush._setBrushStyles(),this._initRetinaScaling(),this.calcOffset(),e.cssOnly||this.requestRenderAll(),this},_setBackstoreDimension:function(t,e){return this.lowerCanvasEl[t]=e,this.upperCanvasEl&&(this.upperCanvasEl[t]=e),this.cacheCanvasEl&&(this.cacheCanvasEl[t]=e),this[t]=e,this},_setCssDimension:function(t,e){return this.lowerCanvasEl.style[t]=e,this.upperCanvasEl&&(this.upperCanvasEl.style[t]=e),this.wrapperEl&&(this.wrapperEl.style[t]=e),this},getZoom:function(){return this.viewportTransform[0]},setViewportTransform:function(t){var e,n,i,r=this._activeObject,a=this.backgroundImage,s=this.overlayImage;for(this.viewportTransform=t,n=0,i=this._objects.length;n<i;n++)e=this._objects[n],e.group||e.setCoords(!0);return r&&r.setCoords(),a&&a.setCoords(!0),s&&s.setCoords(!0),this.calcViewportBoundaries(),this.renderOnAddRemove&&this.requestRenderAll(),this},zoomToPoint:function(t,e){var n=t,i=this.viewportTransform.slice(0);t=a(t,s(this.viewportTransform)),i[0]=e,i[3]=e;var r=a(t,i);return i[4]+=n.x-r.x,i[5]+=n.y-r.y,this.setViewportTransform(i)},setZoom:function(t){return this.zoomToPoint(new i.Point(0,0),t),this},absolutePan:function(t){var e=this.viewportTransform.slice(0);return e[4]=-t.x,e[5]=-t.y,this.setViewportTransform(e)},relativePan:function(t){return this.absolutePan(new i.Point(-t.x-this.viewportTransform[4],-t.y-this.viewportTransform[5]))},getElement:function(){return this.lowerCanvasEl},_onObjectAdded:function(t){this.stateful&&t.setupState(),t._set("canvas",this),t.setCoords(),this.fire("object:added",{target:t}),t.fire("added")},_onObjectRemoved:function(t){this.fire("object:removed",{target:t}),t.fire("removed"),delete t.canvas},clearContext:function(t){return t.clearRect(0,0,this.width,this.height),this},getContext:function(){return this.contextContainer},clear:function(){return this._objects.length=0,this.backgroundImage=null,this.overlayImage=null,this.backgroundColor="",this.overlayColor="",this._hasITextHandlers&&(this.off("mouse:up",this._mouseUpITextHandler),this._iTextInstances=null,this._hasITextHandlers=!1),this.clearContext(this.contextContainer),this.fire("canvas:cleared"),this.renderOnAddRemove&&this.requestRenderAll(),this},renderAll:function(){var t=this.contextContainer;return this.renderCanvas(t,this._objects),this},renderAndReset:function(){this.isRendering=0,this.renderAll()},requestRenderAll:function(){return this.isRendering||(this.isRendering=i.util.requestAnimFrame(this.renderAndResetBound)),this},calcViewportBoundaries:function(){var t={},e=this.width,n=this.height,r=s(this.viewportTransform);return t.tl=a({x:0,y:0},r),t.br=a({x:e,y:n},r),t.tr=new i.Point(t.br.x,t.tl.y),t.bl=new i.Point(t.tl.x,t.br.y),this.vptCoords=t,t},cancelRequestedRender:function(){this.isRendering&&(i.util.cancelAnimFrame(this.isRendering),this.isRendering=0)},renderCanvas:function(t,e){var n=this.viewportTransform,r=this.clipPath;this.cancelRequestedRender(),this.calcViewportBoundaries(),this.clearContext(t),i.util.setImageSmoothing(t,this.imageSmoothingEnabled),this.fire("before:render",{ctx:t}),this._renderBackground(t),t.save(),t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),this._renderObjects(t,e),t.restore(),!this.controlsAboveOverlay&&this.interactive&&this.drawControls(t),r&&(r.canvas=this,r.shouldCache(),r._transformDone=!0,r.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(t)),this._renderOverlay(t),this.controlsAboveOverlay&&this.interactive&&this.drawControls(t),this.fire("after:render",{ctx:t})},drawClipPathOnCanvas:function(t){var e=this.viewportTransform,n=this.clipPath;t.save(),t.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t.globalCompositeOperation="destination-in",n.transform(t),t.scale(1/n.zoomX,1/n.zoomY),t.drawImage(n._cacheCanvas,-n.cacheTranslationX,-n.cacheTranslationY),t.restore()},_renderObjects:function(t,e){var n,i;for(n=0,i=e.length;n<i;++n)e[n]&&e[n].render(t)},_renderBackgroundOrOverlay:function(t,e){var n=this[e+"Color"],i=this[e+"Image"],r=this.viewportTransform,a=this[e+"Vpt"];if(n||i){if(n){t.save(),t.beginPath(),t.moveTo(0,0),t.lineTo(this.width,0),t.lineTo(this.width,this.height),t.lineTo(0,this.height),t.closePath(),t.fillStyle=n.toLive?n.toLive(t,this):n,a&&t.transform(r[0],r[1],r[2],r[3],r[4],r[5]),t.transform(1,0,0,1,n.offsetX||0,n.offsetY||0);var s=n.gradientTransform||n.patternTransform;s&&t.transform(s[0],s[1],s[2],s[3],s[4],s[5]),t.fill(),t.restore()}i&&(t.save(),a&&t.transform(r[0],r[1],r[2],r[3],r[4],r[5]),i.render(t),t.restore())}},_renderBackground:function(t){this._renderBackgroundOrOverlay(t,"background")},_renderOverlay:function(t){this._renderBackgroundOrOverlay(t,"overlay")},getCenter:function(){return{top:this.height/2,left:this.width/2}},centerObjectH:function(t){return this._centerObject(t,new i.Point(this.getCenter().left,t.getCenterPoint().y))},centerObjectV:function(t){return this._centerObject(t,new i.Point(t.getCenterPoint().x,this.getCenter().top))},centerObject:function(t){var e=this.getCenter();return this._centerObject(t,new i.Point(e.left,e.top))},viewportCenterObject:function(t){var e=this.getVpCenter();return this._centerObject(t,e)},viewportCenterObjectH:function(t){var e=this.getVpCenter();return this._centerObject(t,new i.Point(e.x,t.getCenterPoint().y)),this},viewportCenterObjectV:function(t){var e=this.getVpCenter();return this._centerObject(t,new i.Point(t.getCenterPoint().x,e.y))},getVpCenter:function(){var t=this.getCenter(),e=s(this.viewportTransform);return a({x:t.left,y:t.top},e)},_centerObject:function(t,e){return t.setPositionByOrigin(e,"center","center"),t.setCoords(),this.renderOnAddRemove&&this.requestRenderAll(),this},toDatalessJSON:function(t){return this.toDatalessObject(t)},toObject:function(t){return this._toObjectMethod("toObject",t)},toDatalessObject:function(t){return this._toObjectMethod("toDatalessObject",t)},_toObjectMethod:function(e,n){var r=this.clipPath,a={version:i.version,objects:this._toObjects(e,n)};return r&&(a.clipPath=this._toObject(this.clipPath,e,n)),t(a,this.__serializeBgOverlay(e,n)),i.util.populateWithProperties(this,a,n),a},_toObjects:function(t,e){return this._objects.filter((function(t){return!t.excludeFromExport})).map((function(n){return this._toObject(n,t,e)}),this)},_toObject:function(t,e,n){var i;this.includeDefaultValues||(i=t.includeDefaultValues,t.includeDefaultValues=!1);var r=t[e](n);return this.includeDefaultValues||(t.includeDefaultValues=i),r},__serializeBgOverlay:function(t,e){var n={},i=this.backgroundImage,r=this.overlayImage;return this.backgroundColor&&(n.background=this.backgroundColor.toObject?this.backgroundColor.toObject(e):this.backgroundColor),this.overlayColor&&(n.overlay=this.overlayColor.toObject?this.overlayColor.toObject(e):this.overlayColor),i&&!i.excludeFromExport&&(n.backgroundImage=this._toObject(i,t,e)),r&&!r.excludeFromExport&&(n.overlayImage=this._toObject(r,t,e)),n},svgViewportTransformation:!0,toSVG:function(t,e){t||(t={}),t.reviver=e;var n=[];return this._setSVGPreamble(n,t),this._setSVGHeader(n,t),this.clipPath&&n.push('<g clip-path="url(#'+this.clipPath.clipPathId+')" >\n'),this._setSVGBgOverlayColor(n,"background"),this._setSVGBgOverlayImage(n,"backgroundImage",e),this._setSVGObjects(n,e),this.clipPath&&n.push("</g>\n"),this._setSVGBgOverlayColor(n,"overlay"),this._setSVGBgOverlayImage(n,"overlayImage",e),n.push("</svg>"),n.join("")},_setSVGPreamble:function(t,e){e.suppressPreamble||t.push('<?xml version="1.0" encoding="',e.encoding||"UTF-8",'" standalone="no" ?>\n','<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" ','"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n')},_setSVGHeader:function(t,e){var n,a=e.width||this.width,s=e.height||this.height,o='viewBox="0 0 '+this.width+" "+this.height+'" ',l=i.Object.NUM_FRACTION_DIGITS;e.viewBox?o='viewBox="'+e.viewBox.x+" "+e.viewBox.y+" "+e.viewBox.width+" "+e.viewBox.height+'" ':this.svgViewportTransformation&&(n=this.viewportTransform,o='viewBox="'+r(-n[4]/n[0],l)+" "+r(-n[5]/n[3],l)+" "+r(this.width/n[0],l)+" "+r(this.height/n[3],l)+'" '),t.push("<svg ",'xmlns="http://www.w3.org/2000/svg" ','xmlns:xlink="http://www.w3.org/1999/xlink" ','version="1.1" ','width="',a,'" ','height="',s,'" ',o,'xml:space="preserve">\n',"<desc>Created with Fabric.js ",i.version,"</desc>\n","<defs>\n",this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),this.createSVGClipPathMarkup(e),"</defs>\n")},createSVGClipPathMarkup:function(t){var e=this.clipPath;return e?(e.clipPathId="CLIPPATH_"+i.Object.__uid++,'<clipPath id="'+e.clipPathId+'" >\n'+this.clipPath.toClipPathSVG(t.reviver)+"</clipPath>\n"):""},createSVGRefElementsMarkup:function(){var t=this,e=["background","overlay"].map((function(e){var n=t[e+"Color"];if(n&&n.toLive){var r=t[e+"Vpt"],a=t.viewportTransform,s={width:t.width/(r?a[0]:1),height:t.height/(r?a[3]:1)};return n.toSVG(s,{additionalTransform:r?i.util.matrixToSVG(a):""})}}));return e.join("")},createSVGFontFacesMarkup:function(){var t,e,n,r,a,s,o,l,u,c="",h={},d=i.fontPaths,f=[];for(this._objects.forEach((function t(e){f.push(e),e._objects&&e._objects.forEach(t)})),l=0,u=f.length;l<u;l++)if(t=f[l],e=t.fontFamily,-1!==t.type.indexOf("text")&&!h[e]&&d[e]&&(h[e]=!0,t.styles))for(a in n=t.styles,n)for(o in r=n[a],r)s=r[o],e=s.fontFamily,!h[e]&&d[e]&&(h[e]=!0);for(var m in h)c+=["\t\t@font-face {\n","\t\t\tfont-family: '",m,"';\n","\t\t\tsrc: url('",d[m],"');\n","\t\t}\n"].join("");return c&&(c=['\t<style type="text/css">',"<![CDATA[\n",c,"]]>","</style>\n"].join("")),c},_setSVGObjects:function(t,e){var n,i,r,a=this._objects;for(i=0,r=a.length;i<r;i++)n=a[i],n.excludeFromExport||this._setSVGObject(t,n,e)},_setSVGObject:function(t,e,n){t.push(e.toSVG(n))},_setSVGBgOverlayImage:function(t,e,n){this[e]&&!this[e].excludeFromExport&&this[e].toSVG&&t.push(this[e].toSVG(n))},_setSVGBgOverlayColor:function(t,e){var n=this[e+"Color"],r=this.viewportTransform,a=this.width,s=this.height;if(n)if(n.toLive){var o=n.repeat,l=i.util.invertTransform(r),u=this[e+"Vpt"],c=u?i.util.matrixToSVG(l):"";t.push('<rect transform="'+c+" translate(",a/2,",",s/2,')"',' x="',n.offsetX-a/2,'" y="',n.offsetY-s/2,'" ','width="',"repeat-y"===o||"no-repeat"===o?n.source.width:a,'" height="',"repeat-x"===o||"no-repeat"===o?n.source.height:s,'" fill="url(#SVGID_'+n.id+')"',"></rect>\n")}else t.push('<rect x="0" y="0" width="100%" height="100%" ','fill="',n,'"',"></rect>\n")},sendToBack:function(t){if(!t)return this;var e,i,r,a=this._activeObject;if(t===a&&"activeSelection"===t.type)for(r=a._objects,e=r.length;e--;)i=r[e],n(this._objects,i),this._objects.unshift(i);else n(this._objects,t),this._objects.unshift(t);return this.renderOnAddRemove&&this.requestRenderAll(),this},bringToFront:function(t){if(!t)return this;var e,i,r,a=this._activeObject;if(t===a&&"activeSelection"===t.type)for(r=a._objects,e=0;e<r.length;e++)i=r[e],n(this._objects,i),this._objects.push(i);else n(this._objects,t),this._objects.push(t);return this.renderOnAddRemove&&this.requestRenderAll(),this},sendBackwards:function(t,e){if(!t)return this;var i,r,a,s,o,l=this._activeObject,u=0;if(t===l&&"activeSelection"===t.type)for(o=l._objects,i=0;i<o.length;i++)r=o[i],a=this._objects.indexOf(r),a>0+u&&(s=a-1,n(this._objects,r),this._objects.splice(s,0,r)),u++;else a=this._objects.indexOf(t),0!==a&&(s=this._findNewLowerIndex(t,a,e),n(this._objects,t),this._objects.splice(s,0,t));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewLowerIndex:function(t,e,n){var i,r;if(n)for(i=e,r=e-1;r>=0;--r){var a=t.intersectsWithObject(this._objects[r])||t.isContainedWithinObject(this._objects[r])||this._objects[r].isContainedWithinObject(t);if(a){i=r;break}}else i=e-1;return i},bringForward:function(t,e){if(!t)return this;var i,r,a,s,o,l=this._activeObject,u=0;if(t===l&&"activeSelection"===t.type)for(o=l._objects,i=o.length;i--;)r=o[i],a=this._objects.indexOf(r),a<this._objects.length-1-u&&(s=a+1,n(this._objects,r),this._objects.splice(s,0,r)),u++;else a=this._objects.indexOf(t),a!==this._objects.length-1&&(s=this._findNewUpperIndex(t,a,e),n(this._objects,t),this._objects.splice(s,0,t));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewUpperIndex:function(t,e,n){var i,r,a;if(n)for(i=e,r=e+1,a=this._objects.length;r<a;++r){var s=t.intersectsWithObject(this._objects[r])||t.isContainedWithinObject(this._objects[r])||this._objects[r].isContainedWithinObject(t);if(s){i=r;break}}else i=e+1;return i},moveTo:function(t,e){return n(this._objects,t),this._objects.splice(e,0,t),this.renderOnAddRemove&&this.requestRenderAll()},dispose:function(){return this.isRendering&&(i.util.cancelAnimFrame(this.isRendering),this.isRendering=0),this.forEachObject((function(t){t.dispose&&t.dispose()})),this._objects=[],this.backgroundImage&&this.backgroundImage.dispose&&this.backgroundImage.dispose(),this.backgroundImage=null,this.overlayImage&&this.overlayImage.dispose&&this.overlayImage.dispose(),this.overlayImage=null,this._iTextInstances=null,this.contextContainer=null,i.util.cleanUpJsdomNode(this.lowerCanvasEl),this.lowerCanvasEl=void 0,this},toString:function(){return"#<fabric.Canvas ("+this.complexity()+"): { objects: "+this._objects.length+" }>"}}),t(i.StaticCanvas.prototype,i.Observable),t(i.StaticCanvas.prototype,i.Collection),t(i.StaticCanvas.prototype,i.DataURLExporter),t(i.StaticCanvas,{EMPTY_JSON:'{"objects": [], "background": "white"}',supports:function(t){var e=l();if(!e||!e.getContext)return null;var n=e.getContext("2d");if(!n)return null;switch(t){case"setLineDash":return"undefined"!==typeof n.setLineDash;default:return null}}}),i.StaticCanvas.prototype.toJSON=i.StaticCanvas.prototype.toObject,i.isLikelyNode&&(i.StaticCanvas.prototype.createPNGStream=function(){var t=o(this.lowerCanvasEl);return t&&t.createPNGStream()},i.StaticCanvas.prototype.createJPEGStream=function(t){var e=o(this.lowerCanvasEl);return e&&e.createJPEGStream(t)})}}(),i.BaseBrush=i.util.createClass({color:"rgb(0, 0, 0)",width:1,shadow:null,strokeLineCap:"round",strokeLineJoin:"round",strokeMiterLimit:10,strokeDashArray:null,_setBrushStyles:function(){var t=this.canvas.contextTop;t.strokeStyle=this.color,t.lineWidth=this.width,t.lineCap=this.strokeLineCap,t.miterLimit=this.strokeMiterLimit,t.lineJoin=this.strokeLineJoin,i.StaticCanvas.supports("setLineDash")&&t.setLineDash(this.strokeDashArray||[])},_saveAndTransform:function(t){var e=this.canvas.viewportTransform;t.save(),t.transform(e[0],e[1],e[2],e[3],e[4],e[5])},_setShadow:function(){if(this.shadow){var t=this.canvas,e=this.shadow,n=t.contextTop,r=t.getZoom();t&&t._isRetinaScaling()&&(r*=i.devicePixelRatio),n.shadowColor=e.color,n.shadowBlur=e.blur*r,n.shadowOffsetX=e.offsetX*r,n.shadowOffsetY=e.offsetY*r}},needsFullRender:function(){var t=new i.Color(this.color);return t.getAlpha()<1||!!this.shadow},_resetShadow:function(){var t=this.canvas.contextTop;t.shadowColor="",t.shadowBlur=t.shadowOffsetX=t.shadowOffsetY=0}}),function(){i.PencilBrush=i.util.createClass(i.BaseBrush,{decimate:.4,initialize:function(t){this.canvas=t,this._points=[]},_drawSegment:function(t,e,n){var i=e.midPointFrom(n);return t.quadraticCurveTo(e.x,e.y,i.x,i.y),i},onMouseDown:function(t,e){this.canvas._isMainEvent(e.e)&&(this._prepareForDrawing(t),this._captureDrawingPath(t),this._render())},onMouseMove:function(t,e){if(this.canvas._isMainEvent(e.e)&&this._captureDrawingPath(t)&&this._points.length>1)if(this.needsFullRender())this.canvas.clearContext(this.canvas.contextTop),this._render();else{var n=this._points,i=n.length,r=this.canvas.contextTop;this._saveAndTransform(r),this.oldEnd&&(r.beginPath(),r.moveTo(this.oldEnd.x,this.oldEnd.y)),this.oldEnd=this._drawSegment(r,n[i-2],n[i-1],!0),r.stroke(),r.restore()}},onMouseUp:function(t){return!this.canvas._isMainEvent(t.e)||(this.oldEnd=void 0,this._finalizeAndAddPath(),!1)},_prepareForDrawing:function(t){var e=new i.Point(t.x,t.y);this._reset(),this._addPoint(e),this.canvas.contextTop.moveTo(e.x,e.y)},_addPoint:function(t){return!(this._points.length>1&&t.eq(this._points[this._points.length-1]))&&(this._points.push(t),!0)},_reset:function(){this._points=[],this._setBrushStyles(),this._setShadow()},_captureDrawingPath:function(t){var e=new i.Point(t.x,t.y);return this._addPoint(e)},_render:function(){var t,e,n=this.canvas.contextTop,r=this._points[0],a=this._points[1];if(this._saveAndTransform(n),n.beginPath(),2===this._points.length&&r.x===a.x&&r.y===a.y){var s=this.width/1e3;r=new i.Point(r.x,r.y),a=new i.Point(a.x,a.y),r.x-=s,a.x+=s}for(n.moveTo(r.x,r.y),t=1,e=this._points.length;t<e;t++)this._drawSegment(n,r,a),r=this._points[t],a=this._points[t+1];n.lineTo(r.x,r.y),n.stroke(),n.restore()},convertPointsToSVGPath:function(t){var e,n=[],r=this.width/1e3,a=new i.Point(t[0].x,t[0].y),s=new i.Point(t[1].x,t[1].y),o=t.length,l=1,u=0,c=o>2;for(c&&(l=t[2].x<s.x?-1:t[2].x===s.x?0:1,u=t[2].y<s.y?-1:t[2].y===s.y?0:1),n.push("M ",a.x-l*r," ",a.y-u*r," "),e=1;e<o;e++){if(!a.eq(s)){var h=a.midPointFrom(s);n.push("Q ",a.x," ",a.y," ",h.x," ",h.y," ")}a=t[e],e+1<t.length&&(s=t[e+1])}return c&&(l=a.x>t[e-2].x?1:a.x===t[e-2].x?0:-1,u=a.y>t[e-2].y?1:a.y===t[e-2].y?0:-1),n.push("L ",a.x+l*r," ",a.y+u*r),n},createPath:function(t){var e=new i.Path(t,{fill:null,stroke:this.color,strokeWidth:this.width,strokeLineCap:this.strokeLineCap,strokeMiterLimit:this.strokeMiterLimit,strokeLineJoin:this.strokeLineJoin,strokeDashArray:this.strokeDashArray});return this.shadow&&(this.shadow.affectStroke=!0,e.shadow=new i.Shadow(this.shadow)),e},decimatePoints:function(t,e){if(t.length<=2)return t;var n,r,a=this.canvas.getZoom(),s=Math.pow(e/a,2),o=t.length-1,l=t[0],u=[l];for(n=1;n<o;n++)r=Math.pow(l.x-t[n].x,2)+Math.pow(l.y-t[n].y,2),r>=s&&(l=t[n],u.push(l));return 1===u.length&&u.push(new i.Point(u[0].x,u[0].y)),u},_finalizeAndAddPath:function(){var t=this.canvas.contextTop;t.closePath(),this.decimate&&(this._points=this.decimatePoints(this._points,this.decimate));var e=this.convertPointsToSVGPath(this._points).join("");if("M 0 0 Q 0 0 0 0 L 0 0"!==e){var n=this.createPath(e);this.canvas.clearContext(this.canvas.contextTop),this.canvas.fire("before:path:created",{path:n}),this.canvas.add(n),this.canvas.requestRenderAll(),n.setCoords(),this._resetShadow(),this.canvas.fire("path:created",{path:n})}else this.canvas.requestRenderAll()}})}(),i.CircleBrush=i.util.createClass(i.BaseBrush,{width:10,initialize:function(t){this.canvas=t,this.points=[]},drawDot:function(t){var e=this.addPoint(t),n=this.canvas.contextTop;this._saveAndTransform(n),this.dot(n,e),n.restore()},dot:function(t,e){t.fillStyle=e.fill,t.beginPath(),t.arc(e.x,e.y,e.radius,0,2*Math.PI,!1),t.closePath(),t.fill()},onMouseDown:function(t){this.points.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.drawDot(t)},_render:function(){var t,e,n=this.canvas.contextTop,i=this.points;for(this._saveAndTransform(n),t=0,e=i.length;t<e;t++)this.dot(n,i[t]);n.restore()},onMouseMove:function(t){this.needsFullRender()?(this.canvas.clearContext(this.canvas.contextTop),this.addPoint(t),this._render()):this.drawDot(t)},onMouseUp:function(){var t,e,n=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;var r=[];for(t=0,e=this.points.length;t<e;t++){var a=this.points[t],s=new i.Circle({radius:a.radius,left:a.x,top:a.y,originX:"center",originY:"center",fill:a.fill});this.shadow&&(s.shadow=new i.Shadow(this.shadow)),r.push(s)}var o=new i.Group(r);o.canvas=this.canvas,this.canvas.fire("before:path:created",{path:o}),this.canvas.add(o),this.canvas.fire("path:created",{path:o}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=n,this.canvas.requestRenderAll()},addPoint:function(t){var e=new i.Point(t.x,t.y),n=i.util.getRandomInt(Math.max(0,this.width-20),this.width+20)/2,r=new i.Color(this.color).setAlpha(i.util.getRandomInt(0,100)/100).toRgba();return e.radius=n,e.fill=r,this.points.push(e),e}}),i.SprayBrush=i.util.createClass(i.BaseBrush,{width:10,density:20,dotWidth:1,dotWidthVariance:1,randomOpacity:!1,optimizeOverlapping:!0,initialize:function(t){this.canvas=t,this.sprayChunks=[]},onMouseDown:function(t){this.sprayChunks.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.addSprayChunk(t),this.render(this.sprayChunkPoints)},onMouseMove:function(t){this.addSprayChunk(t),this.render(this.sprayChunkPoints)},onMouseUp:function(){var t=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;for(var e=[],n=0,r=this.sprayChunks.length;n<r;n++)for(var a=this.sprayChunks[n],s=0,o=a.length;s<o;s++){var l=new i.Rect({width:a[s].width,height:a[s].width,left:a[s].x+1,top:a[s].y+1,originX:"center",originY:"center",fill:this.color});e.push(l)}this.optimizeOverlapping&&(e=this._getOptimizedRects(e));var u=new i.Group(e);this.shadow&&u.set("shadow",new i.Shadow(this.shadow)),this.canvas.fire("before:path:created",{path:u}),this.canvas.add(u),this.canvas.fire("path:created",{path:u}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=t,this.canvas.requestRenderAll()},_getOptimizedRects:function(t){var e,n,i,r={};for(n=0,i=t.length;n<i;n++)e=t[n].left+""+t[n].top,r[e]||(r[e]=t[n]);var a=[];for(e in r)a.push(r[e]);return a},render:function(t){var e,n,i=this.canvas.contextTop;for(i.fillStyle=this.color,this._saveAndTransform(i),e=0,n=t.length;e<n;e++){var r=t[e];"undefined"!==typeof r.opacity&&(i.globalAlpha=r.opacity),i.fillRect(r.x,r.y,r.width,r.width)}i.restore()},_render:function(){var t,e,n=this.canvas.contextTop;for(n.fillStyle=this.color,this._saveAndTransform(n),t=0,e=this.sprayChunks.length;t<e;t++)this.render(this.sprayChunks[t]);n.restore()},addSprayChunk:function(t){this.sprayChunkPoints=[];var e,n,r,a,s=this.width/2;for(a=0;a<this.density;a++){e=i.util.getRandomInt(t.x-s,t.x+s),n=i.util.getRandomInt(t.y-s,t.y+s),r=this.dotWidthVariance?i.util.getRandomInt(Math.max(1,this.dotWidth-this.dotWidthVariance),this.dotWidth+this.dotWidthVariance):this.dotWidth;var o=new i.Point(e,n);o.width=r,this.randomOpacity&&(o.opacity=i.util.getRandomInt(0,100)/100),this.sprayChunkPoints.push(o)}this.sprayChunks.push(this.sprayChunkPoints)}}),i.PatternBrush=i.util.createClass(i.PencilBrush,{getPatternSrc:function(){var t=20,e=5,n=i.util.createCanvasElement(),r=n.getContext("2d");return n.width=n.height=t+e,r.fillStyle=this.color,r.beginPath(),r.arc(t/2,t/2,t/2,0,2*Math.PI,!1),r.closePath(),r.fill(),n},getPatternSrcFunction:function(){return String(this.getPatternSrc).replace("this.color",'"'+this.color+'"')},getPattern:function(){return this.canvas.contextTop.createPattern(this.source||this.getPatternSrc(),"repeat")},_setBrushStyles:function(){this.callSuper("_setBrushStyles"),this.canvas.contextTop.strokeStyle=this.getPattern()},createPath:function(t){var e=this.callSuper("createPath",t),n=e._getLeftTopCoords().scalarAdd(e.strokeWidth/2);return e.stroke=new i.Pattern({source:this.source||this.getPatternSrcFunction(),offsetX:-n.x,offsetY:-n.y}),e}}),function(){var t=i.util.getPointer,e=i.util.degreesToRadians,n=Math.abs,r=i.StaticCanvas.supports("setLineDash"),a=i.util.isTouchEvent,s=.5;for(var o in i.Canvas=i.util.createClass(i.StaticCanvas,{initialize:function(t,e){e||(e={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(t,e),this._initInteractive(),this._createCacheCanvas()},uniformScaling:!0,uniScaleKey:"shiftKey",centeredScaling:!1,centeredRotation:!1,centeredKey:"altKey",altActionKey:"shiftKey",interactive:!0,selection:!0,selectionKey:"shiftKey",altSelectionKey:null,selectionColor:"rgba(100, 100, 255, 0.3)",selectionDashArray:[],selectionBorderColor:"rgba(255, 255, 255, 0.3)",selectionLineWidth:1,selectionFullyContained:!1,hoverCursor:"move",moveCursor:"move",defaultCursor:"default",freeDrawingCursor:"crosshair",rotationCursor:"crosshair",notAllowedCursor:"not-allowed",containerClass:"canvas-container",perPixelTargetFind:!1,targetFindTolerance:0,skipTargetFind:!1,isDrawingMode:!1,preserveObjectStacking:!1,snapAngle:0,snapThreshold:null,stopContextMenu:!1,fireRightClick:!1,fireMiddleClick:!1,targets:[],_hoveredTarget:null,_hoveredTargets:[],_initInteractive:function(){this._currentTransform=null,this._groupSelector=null,this._initWrapperElement(),this._createUpperCanvas(),this._initEventListeners(),this._initRetinaScaling(),this.freeDrawingBrush=i.PencilBrush&&new i.PencilBrush(this),this.calcOffset()},_chooseObjectsToRender:function(){var t,e,n,i=this.getActiveObjects();if(i.length>0&&!this.preserveObjectStacking){e=[],n=[];for(var r=0,a=this._objects.length;r<a;r++)t=this._objects[r],-1===i.indexOf(t)?e.push(t):n.push(t);i.length>1&&(this._activeObject._objects=n),e.push.apply(e,n)}else e=this._objects;return e},renderAll:function(){!this.contextTopDirty||this._groupSelector||this.isDrawingMode||(this.clearContext(this.contextTop),this.contextTopDirty=!1),this.hasLostContext&&this.renderTopLayer(this.contextTop);var t=this.contextContainer;return this.renderCanvas(t,this._chooseObjectsToRender()),this},renderTopLayer:function(t){t.save(),this.isDrawingMode&&this._isCurrentlyDrawing&&(this.freeDrawingBrush&&this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection&&this._groupSelector&&(this._drawSelection(t),this.contextTopDirty=!0),t.restore()},renderTop:function(){var t=this.contextTop;return this.clearContext(t),this.renderTopLayer(t),this.fire("after:render"),this},_normalizePointer:function(t,e){var n=t.calcTransformMatrix(),r=i.util.invertTransform(n),a=this.restorePointerVpt(e);return i.util.transformPoint(a,r)},isTargetTransparent:function(t,e,n){if(t.shouldCache()&&t._cacheCanvas&&t!==this._activeObject){var r=this._normalizePointer(t,{x:e,y:n}),a=Math.max(t.cacheTranslationX+r.x*t.zoomX,0),s=Math.max(t.cacheTranslationY+r.y*t.zoomY,0),o=i.util.isTransparent(t._cacheContext,Math.round(a),Math.round(s),this.targetFindTolerance);return o}var l=this.contextCache,u=t.selectionBackgroundColor,c=this.viewportTransform;t.selectionBackgroundColor="",this.clearContext(l),l.save(),l.transform(c[0],c[1],c[2],c[3],c[4],c[5]),t.render(l),l.restore(),t===this._activeObject&&t._renderControls(l,{hasBorders:!1,transparentCorners:!1},{hasBorders:!1}),t.selectionBackgroundColor=u;o=i.util.isTransparent(l,e,n,this.targetFindTolerance);return o},_isSelectionKeyPressed:function(t){var e=!1;return e="[object Array]"===Object.prototype.toString.call(this.selectionKey)?!!this.selectionKey.find((function(e){return!0===t[e]})):t[this.selectionKey],e},_shouldClearSelection:function(t,e){var n=this.getActiveObjects(),i=this._activeObject;return!e||e&&i&&n.length>1&&-1===n.indexOf(e)&&i!==e&&!this._isSelectionKeyPressed(t)||e&&!e.evented||e&&!e.selectable&&i&&i!==e},_shouldCenterTransform:function(t,e,n){var i;if(t)return"scale"===e||"scaleX"===e||"scaleY"===e||"resizing"===e?i=this.centeredScaling||t.centeredScaling:"rotate"===e&&(i=this.centeredRotation||t.centeredRotation),i?!n:n},_getOriginFromCorner:function(t,e){var n={x:t.originX,y:t.originY};return"ml"===e||"tl"===e||"bl"===e?n.x="right":"mr"!==e&&"tr"!==e&&"br"!==e||(n.x="left"),"tl"===e||"mt"===e||"tr"===e?n.y="bottom":"bl"!==e&&"mb"!==e&&"br"!==e||(n.y="top"),n},_getActionFromCorner:function(t,e,n,i){if(!e||!t)return"drag";var r=i.controls[e];return r.getActionName(n,r,i)},_setupCurrentTransform:function(t,n,r){if(n){var a=this.getPointer(t),s=n.__corner,o=n.controls[s],l=r&&s?o.getActionHandler(t,n,o):i.controlsUtils.dragHandler,u=this._getActionFromCorner(r,s,t,n),c=this._getOriginFromCorner(n,s),h=t[this.centeredKey],d={target:n,action:u,actionHandler:l,corner:s,scaleX:n.scaleX,scaleY:n.scaleY,skewX:n.skewX,skewY:n.skewY,offsetX:a.x-n.left,offsetY:a.y-n.top,originX:c.x,originY:c.y,ex:a.x,ey:a.y,lastX:a.x,lastY:a.y,theta:e(n.angle),width:n.width*n.scaleX,shiftKey:t.shiftKey,altKey:h,original:i.util.saveObjectTransform(n)};this._shouldCenterTransform(n,u,h)&&(d.originX="center",d.originY="center"),d.original.originX=c.x,d.original.originY=c.y,this._currentTransform=d,this._beforeTransform(t)}},setCursor:function(t){this.upperCanvasEl.style.cursor=t},_drawSelection:function(t){var e=this._groupSelector,a=e.left,o=e.top,l=n(a),u=n(o);if(this.selectionColor&&(t.fillStyle=this.selectionColor,t.fillRect(e.ex-(a>0?0:-a),e.ey-(o>0?0:-o),l,u)),this.selectionLineWidth&&this.selectionBorderColor)if(t.lineWidth=this.selectionLineWidth,t.strokeStyle=this.selectionBorderColor,this.selectionDashArray.length>1&&!r){var c=e.ex+s-(a>0?0:l),h=e.ey+s-(o>0?0:u);t.beginPath(),i.util.drawDashedLine(t,c,h,c+l,h,this.selectionDashArray),i.util.drawDashedLine(t,c,h+u-1,c+l,h+u-1,this.selectionDashArray),i.util.drawDashedLine(t,c,h,c,h+u,this.selectionDashArray),i.util.drawDashedLine(t,c+l-1,h,c+l-1,h+u,this.selectionDashArray),t.closePath(),t.stroke()}else i.Object.prototype._setLineDash.call(this,t,this.selectionDashArray),t.strokeRect(e.ex+s-(a>0?0:l),e.ey+s-(o>0?0:u),l,u)},findTarget:function(t,e){if(!this.skipTargetFind){var n,i,r=!0,s=this.getPointer(t,r),o=this._activeObject,l=this.getActiveObjects(),u=a(t);if(this.targets=[],l.length>1&&!e&&o===this._searchPossibleTargets([o],s))return o;if(1===l.length&&o._findTargetCorner(s,u))return o;if(1===l.length&&o===this._searchPossibleTargets([o],s)){if(!this.preserveObjectStacking)return o;n=o,i=this.targets,this.targets=[]}var c=this._searchPossibleTargets(this._objects,s);return t[this.altSelectionKey]&&c&&n&&c!==n&&(c=n,this.targets=i),c}},_checkTarget:function(t,e,n){if(e&&e.visible&&e.evented&&(e.containsPoint(t)||e._findTargetCorner(t))){if(!this.perPixelTargetFind&&!e.perPixelTargetFind||e.isEditing)return!0;var i=this.isTargetTransparent(e,n.x,n.y);if(!i)return!0}},_searchPossibleTargets:function(t,e){var n,r,a=t.length;while(a--){var s=t[a],o=s.group?this._normalizePointer(s.group,e):e;if(this._checkTarget(o,s,e)){n=t[a],n.subTargetCheck&&n instanceof i.Group&&(r=this._searchPossibleTargets(n._objects,e),r&&this.targets.push(r));break}}return n},restorePointerVpt:function(t){return i.util.transformPoint(t,i.util.invertTransform(this.viewportTransform))},getPointer:function(e,n){if(this._absolutePointer&&!n)return this._absolutePointer;if(this._pointer&&n)return this._pointer;var i,r=t(e),a=this.upperCanvasEl,s=a.getBoundingClientRect(),o=s.width||0,l=s.height||0;o&&l||("top"in s&&"bottom"in s&&(l=Math.abs(s.top-s.bottom)),"right"in s&&"left"in s&&(o=Math.abs(s.right-s.left))),this.calcOffset(),r.x=r.x-this._offset.left,r.y=r.y-this._offset.top,n||(r=this.restorePointerVpt(r));var u=this.getRetinaScaling();return 1!==u&&(r.x/=u,r.y/=u),i=0===o||0===l?{width:1,height:1}:{width:a.width/o,height:a.height/l},{x:r.x*i.width,y:r.y*i.height}},_createUpperCanvas:function(){var t=this.lowerCanvasEl.className.replace(/\s*lower-canvas\s*/,""),e=this.lowerCanvasEl,n=this.upperCanvasEl;n?n.className="":(n=this._createCanvasElement(),this.upperCanvasEl=n),i.util.addClass(n,"upper-canvas "+t),this.wrapperEl.appendChild(n),this._copyCanvasStyle(e,n),this._applyCanvasStyle(n),this.contextTop=n.getContext("2d")},_createCacheCanvas:function(){this.cacheCanvasEl=this._createCanvasElement(),this.cacheCanvasEl.setAttribute("width",this.width),this.cacheCanvasEl.setAttribute("height",this.height),this.contextCache=this.cacheCanvasEl.getContext("2d")},_initWrapperElement:function(){this.wrapperEl=i.util.wrapElement(this.lowerCanvasEl,"div",{class:this.containerClass}),i.util.setStyle(this.wrapperEl,{width:this.width+"px",height:this.height+"px",position:"relative"}),i.util.makeElementUnselectable(this.wrapperEl)},_applyCanvasStyle:function(t){var e=this.width||t.width,n=this.height||t.height;i.util.setStyle(t,{position:"absolute",width:e+"px",height:n+"px",left:0,top:0,"touch-action":this.allowTouchScrolling?"manipulation":"none","-ms-touch-action":this.allowTouchScrolling?"manipulation":"none"}),t.width=e,t.height=n,i.util.makeElementUnselectable(t)},_copyCanvasStyle:function(t,e){e.style.cssText=t.style.cssText},getSelectionContext:function(){return this.contextTop},getSelectionElement:function(){return this.upperCanvasEl},getActiveObject:function(){return this._activeObject},getActiveObjects:function(){var t=this._activeObject;return t?"activeSelection"===t.type&&t._objects?t._objects.slice(0):[t]:[]},_onObjectRemoved:function(t){t===this._activeObject&&(this.fire("before:selection:cleared",{target:t}),this._discardActiveObject(),this.fire("selection:cleared",{target:t}),t.fire("deselected")),t===this._hoveredTarget&&(this._hoveredTarget=null,this._hoveredTargets=[]),this.callSuper("_onObjectRemoved",t)},_fireSelectionEvents:function(t,e){var n=!1,i=this.getActiveObjects(),r=[],a=[],s={e:e};t.forEach((function(t){-1===i.indexOf(t)&&(n=!0,t.fire("deselected",s),a.push(t))})),i.forEach((function(e){-1===t.indexOf(e)&&(n=!0,e.fire("selected",s),r.push(e))})),t.length>0&&i.length>0?(s.selected=r,s.deselected=a,s.updated=r[0]||a[0],s.target=this._activeObject,n&&this.fire("selection:updated",s)):i.length>0?(s.selected=r,s.target=this._activeObject,this.fire("selection:created",s)):t.length>0&&(s.deselected=a,this.fire("selection:cleared",s))},setActiveObject:function(t,e){var n=this.getActiveObjects();return this._setActiveObject(t,e),this._fireSelectionEvents(n,e),this},_setActiveObject:function(t,e){return this._activeObject!==t&&(!!this._discardActiveObject(e,t)&&(!t.onSelect({e:e})&&(this._activeObject=t,!0)))},_discardActiveObject:function(t,e){var n=this._activeObject;if(n){if(n.onDeselect({e:t,object:e}))return!1;this._activeObject=null}return!0},discardActiveObject:function(t){var e=this.getActiveObjects(),n=this.getActiveObject();return e.length&&this.fire("before:selection:cleared",{target:n,e:t}),this._discardActiveObject(t),this._fireSelectionEvents(e,t),this},dispose:function(){var t=this.wrapperEl;return this.removeListeners(),t.removeChild(this.upperCanvasEl),t.removeChild(this.lowerCanvasEl),this.contextCache=null,this.contextTop=null,["upperCanvasEl","cacheCanvasEl"].forEach(function(t){i.util.cleanUpJsdomNode(this[t]),this[t]=void 0}.bind(this)),t.parentNode&&t.parentNode.replaceChild(this.lowerCanvasEl,this.wrapperEl),delete this.wrapperEl,i.StaticCanvas.prototype.dispose.call(this),this},clear:function(){return this.discardActiveObject(),this.clearContext(this.contextTop),this.callSuper("clear")},drawControls:function(t){var e=this._activeObject;e&&e._renderControls(t)},_toObject:function(t,e,n){var i=this._realizeGroupTransformOnObject(t),r=this.callSuper("_toObject",t,e,n);return this._unwindGroupTransformOnObject(t,i),r},_realizeGroupTransformOnObject:function(t){if(t.group&&"activeSelection"===t.group.type&&this._activeObject===t.group){var e=["angle","flipX","flipY","left","scaleX","scaleY","skewX","skewY","top"],n={};return e.forEach((function(e){n[e]=t[e]})),this._activeObject.realizeTransform(t),n}return null},_unwindGroupTransformOnObject:function(t,e){e&&t.set(e)},_setSVGObject:function(t,e,n){var i=this._realizeGroupTransformOnObject(e);this.callSuper("_setSVGObject",t,e,n),this._unwindGroupTransformOnObject(e,i)},setViewportTransform:function(t){this.renderOnAddRemove&&this._activeObject&&this._activeObject.isEditing&&this._activeObject.clearContextTop(),i.StaticCanvas.prototype.setViewportTransform.call(this,t)}}),i.StaticCanvas)"prototype"!==o&&(i.Canvas[o]=i.StaticCanvas[o])}(),function(){var t=i.util.addListener,e=i.util.removeListener,n=3,r=2,a=1,s={passive:!1};function o(t,e){return t.button&&t.button===e-1}i.util.object.extend(i.Canvas.prototype,{mainTouchId:null,_initEventListeners:function(){this.removeListeners(),this._bindEvents(),this.addOrRemove(t,"add")},_getEventPrefix:function(){return this.enablePointerEvents?"pointer":"mouse"},addOrRemove:function(t,e){var n=this.upperCanvasEl,r=this._getEventPrefix();t(i.window,"resize",this._onResize),t(n,r+"down",this._onMouseDown),t(n,r+"move",this._onMouseMove,s),t(n,r+"out",this._onMouseOut),t(n,r+"enter",this._onMouseEnter),t(n,"wheel",this._onMouseWheel),t(n,"contextmenu",this._onContextMenu),t(n,"dblclick",this._onDoubleClick),t(n,"dragover",this._onDragOver),t(n,"dragenter",this._onDragEnter),t(n,"dragleave",this._onDragLeave),t(n,"drop",this._onDrop),this.enablePointerEvents||t(n,"touchstart",this._onTouchStart,s),"undefined"!==typeof eventjs&&e in eventjs&&(eventjs[e](n,"gesture",this._onGesture),eventjs[e](n,"drag",this._onDrag),eventjs[e](n,"orientation",this._onOrientationChange),eventjs[e](n,"shake",this._onShake),eventjs[e](n,"longpress",this._onLongPress))},removeListeners:function(){this.addOrRemove(e,"remove");var t=this._getEventPrefix();e(i.document,t+"up",this._onMouseUp),e(i.document,"touchend",this._onTouchEnd,s),e(i.document,t+"move",this._onMouseMove,s),e(i.document,"touchmove",this._onMouseMove,s)},_bindEvents:function(){this.eventsBound||(this._onMouseDown=this._onMouseDown.bind(this),this._onTouchStart=this._onTouchStart.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onResize=this._onResize.bind(this),this._onGesture=this._onGesture.bind(this),this._onDrag=this._onDrag.bind(this),this._onShake=this._onShake.bind(this),this._onLongPress=this._onLongPress.bind(this),this._onOrientationChange=this._onOrientationChange.bind(this),this._onMouseWheel=this._onMouseWheel.bind(this),this._onMouseOut=this._onMouseOut.bind(this),this._onMouseEnter=this._onMouseEnter.bind(this),this._onContextMenu=this._onContextMenu.bind(this),this._onDoubleClick=this._onDoubleClick.bind(this),this._onDragOver=this._onDragOver.bind(this),this._onDragEnter=this._simpleEventHandler.bind(this,"dragenter"),this._onDragLeave=this._simpleEventHandler.bind(this,"dragleave"),this._onDrop=this._simpleEventHandler.bind(this,"drop"),this.eventsBound=!0)},_onGesture:function(t,e){this.__onTransformGesture&&this.__onTransformGesture(t,e)},_onDrag:function(t,e){this.__onDrag&&this.__onDrag(t,e)},_onMouseWheel:function(t){this.__onMouseWheel(t)},_onMouseOut:function(t){var e=this._hoveredTarget;this.fire("mouse:out",{target:e,e:t}),this._hoveredTarget=null,e&&e.fire("mouseout",{e:t});var n=this;this._hoveredTargets.forEach((function(i){n.fire("mouse:out",{target:e,e:t}),i&&e.fire("mouseout",{e:t})})),this._hoveredTargets=[],this._iTextInstances&&this._iTextInstances.forEach((function(t){t.isEditing&&t.hiddenTextarea.focus()}))},_onMouseEnter:function(t){this._currentTransform||this.findTarget(t)||(this.fire("mouse:over",{target:null,e:t}),this._hoveredTarget=null,this._hoveredTargets=[])},_onOrientationChange:function(t,e){this.__onOrientationChange&&this.__onOrientationChange(t,e)},_onShake:function(t,e){this.__onShake&&this.__onShake(t,e)},_onLongPress:function(t,e){this.__onLongPress&&this.__onLongPress(t,e)},_onDragOver:function(t){t.preventDefault();var e=this._simpleEventHandler("dragover",t);this._fireEnterLeaveEvents(e,t)},_onContextMenu:function(t){return this.stopContextMenu&&(t.stopPropagation(),t.preventDefault()),!1},_onDoubleClick:function(t){this._cacheTransformEventData(t),this._handleEvent(t,"dblclick"),this._resetTransformEventData(t)},getPointerId:function(t){var e=t.changedTouches;return e?e[0]&&e[0].identifier:this.enablePointerEvents?t.pointerId:-1},_isMainEvent:function(t){return!0===t.isPrimary||!1!==t.isPrimary&&("touchend"===t.type&&0===t.touches.length||(!t.changedTouches||t.changedTouches[0].identifier===this.mainTouchId))},_onTouchStart:function(n){n.preventDefault(),null===this.mainTouchId&&(this.mainTouchId=this.getPointerId(n)),this.__onMouseDown(n),this._resetTransformEventData();var r=this.upperCanvasEl,a=this._getEventPrefix();t(i.document,"touchend",this._onTouchEnd,s),t(i.document,"touchmove",this._onMouseMove,s),e(r,a+"down",this._onMouseDown)},_onMouseDown:function(n){this.__onMouseDown(n),this._resetTransformEventData();var r=this.upperCanvasEl,a=this._getEventPrefix();e(r,a+"move",this._onMouseMove,s),t(i.document,a+"up",this._onMouseUp),t(i.document,a+"move",this._onMouseMove,s)},_onTouchEnd:function(n){if(!(n.touches.length>0)){this.__onMouseUp(n),this._resetTransformEventData(),this.mainTouchId=null;var r=this._getEventPrefix();e(i.document,"touchend",this._onTouchEnd,s),e(i.document,"touchmove",this._onMouseMove,s);var a=this;this._willAddMouseDown&&clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout((function(){t(a.upperCanvasEl,r+"down",a._onMouseDown),a._willAddMouseDown=0}),400)}},_onMouseUp:function(n){this.__onMouseUp(n),this._resetTransformEventData();var r=this.upperCanvasEl,a=this._getEventPrefix();this._isMainEvent(n)&&(e(i.document,a+"up",this._onMouseUp),e(i.document,a+"move",this._onMouseMove,s),t(r,a+"move",this._onMouseMove,s))},_onMouseMove:function(t){!this.allowTouchScrolling&&t.preventDefault&&t.preventDefault(),this.__onMouseMove(t)},_onResize:function(){this.calcOffset()},_shouldRender:function(t){var e=this._activeObject;return!!(!!e!==!!t||e&&t&&e!==t)||(e&&e.isEditing,!1)},__onMouseUp:function(t){var e,s=this._currentTransform,l=this._groupSelector,u=!1,c=!l||0===l.left&&0===l.top;if(this._cacheTransformEventData(t),e=this._target,this._handleEvent(t,"up:before"),o(t,n))this.fireRightClick&&this._handleEvent(t,"up",n,c);else{if(o(t,r))return this.fireMiddleClick&&this._handleEvent(t,"up",r,c),void this._resetTransformEventData();if(this.isDrawingMode&&this._isCurrentlyDrawing)this._onMouseUpInDrawingMode(t);else if(this._isMainEvent(t)){if(s&&(this._finalizeCurrentTransform(t),u=s.actionPerformed),!c){var h=e===this._activeObject;this._maybeGroupObjects(t),u||(u=this._shouldRender(e)||!h&&e===this._activeObject)}if(e){var d=e._findTargetCorner(this.getPointer(t,!0),i.util.isTouchEvent(t)),f=e.controls[d],m=f&&f.getMouseUpHandler(t,e,f);if(m){var p=this.getPointer(t);m(t,s,p.x,p.y)}e.isMoving=!1}this._setCursorFromEvent(t,e),this._handleEvent(t,"up",a,c),this._groupSelector=null,this._currentTransform=null,e&&(e.__corner=0),u?this.requestRenderAll():c||this.renderTop()}}},_simpleEventHandler:function(t,e){var n=this.findTarget(e),i=this.targets,r={e:e,target:n,subTargets:i};if(this.fire(t,r),n&&n.fire(t,r),!i)return n;for(var a=0;a<i.length;a++)i[a].fire(t,r);return n},_handleEvent:function(t,e,n,i){var r=this._target,s=this.targets||[],o={e:t,target:r,subTargets:s,button:n||a,isClick:i||!1,pointer:this._pointer,absolutePointer:this._absolutePointer,transform:this._currentTransform};"up"===e&&(o.currentTarget=this.findTarget(t),o.currentSubTargets=this.targets),this.fire("mouse:"+e,o),r&&r.fire("mouse"+e,o);for(var l=0;l<s.length;l++)s[l].fire("mouse"+e,o)},_finalizeCurrentTransform:function(t){var e,n=this._currentTransform,i=n.target,r={e:t,target:i,transform:n,action:n.action};i._scaling&&(i._scaling=!1),i.setCoords(),(n.actionPerformed||this.stateful&&i.hasStateChanged())&&(n.actionPerformed&&(e=this._addEventOptions(r,n),this._fire(e,r)),this._fire("modified",r))},_addEventOptions:function(t,e){var n,i;switch(e.action){case"scaleX":n="scaled",i="x";break;case"scaleY":n="scaled",i="y";break;case"skewX":n="skewed",i="x";break;case"skewY":n="skewed",i="y";break;case"scale":n="scaled",i="equally";break;case"rotate":n="rotated";break;case"drag":n="moved";break}return t.by=i,n},_onMouseDownInDrawingMode:function(t){this._isCurrentlyDrawing=!0,this.getActiveObject()&&this.discardActiveObject(t).requestRenderAll();var e=this.getPointer(t);this.freeDrawingBrush.onMouseDown(e,{e:t,pointer:e}),this._handleEvent(t,"down")},_onMouseMoveInDrawingMode:function(t){if(this._isCurrentlyDrawing){var e=this.getPointer(t);this.freeDrawingBrush.onMouseMove(e,{e:t,pointer:e})}this.setCursor(this.freeDrawingCursor),this._handleEvent(t,"move")},_onMouseUpInDrawingMode:function(t){var e=this.getPointer(t);this._isCurrentlyDrawing=this.freeDrawingBrush.onMouseUp({e:t,pointer:e}),this._handleEvent(t,"up")},__onMouseDown:function(t){this._cacheTransformEventData(t),this._handleEvent(t,"down:before");var e=this._target;if(o(t,n))this.fireRightClick&&this._handleEvent(t,"down",n);else if(o(t,r))this.fireMiddleClick&&this._handleEvent(t,"down",r);else if(this.isDrawingMode)this._onMouseDownInDrawingMode(t);else if(this._isMainEvent(t)&&!this._currentTransform){var a=this._pointer;this._previousPointer=a;var s=this._shouldRender(e),l=this._shouldGroup(t,e);if(this._shouldClearSelection(t,e)?this.discardActiveObject(t):l&&(this._handleGrouping(t,e),e=this._activeObject),!this.selection||e&&(e.selectable||e.isEditing||e===this._activeObject)||(this._groupSelector={ex:a.x,ey:a.y,top:0,left:0}),e){var u=e===this._activeObject;e.selectable&&this.setActiveObject(e,t);var c=e._findTargetCorner(this.getPointer(t,!0),i.util.isTouchEvent(t));if(e.__corner=c,e===this._activeObject&&(c||!l)){this._setupCurrentTransform(t,e,u);var h=e.controls[c],d=(a=this.getPointer(t),h&&h.getMouseDownHandler(t,e,h));d&&d(t,this._currentTransform,a.x,a.y)}}this._handleEvent(t,"down"),(s||l)&&this.requestRenderAll()}},_resetTransformEventData:function(){this._target=null,this._pointer=null,this._absolutePointer=null},_cacheTransformEventData:function(t){this._resetTransformEventData(),this._pointer=this.getPointer(t,!0),this._absolutePointer=this.restorePointerVpt(this._pointer),this._target=this._currentTransform?this._currentTransform.target:this.findTarget(t)||null},_beforeTransform:function(t){var e=this._currentTransform;this.stateful&&e.target.saveState(),this.fire("before:transform",{e:t,transform:e})},__onMouseMove:function(t){var e,n;if(this._handleEvent(t,"move:before"),this._cacheTransformEventData(t),this.isDrawingMode)this._onMouseMoveInDrawingMode(t);else if(this._isMainEvent(t)){var i=this._groupSelector;i?(n=this._pointer,i.left=n.x-i.ex,i.top=n.y-i.ey,this.renderTop()):this._currentTransform?this._transformObject(t):(e=this.findTarget(t)||null,this._setCursorFromEvent(t,e),this._fireOverOutEvents(e,t)),this._handleEvent(t,"move"),this._resetTransformEventData()}},_fireOverOutEvents:function(t,e){var n=this._hoveredTarget,i=this._hoveredTargets,r=this.targets,a=Math.max(i.length,r.length);this.fireSyntheticInOutEvents(t,e,{oldTarget:n,evtOut:"mouseout",canvasEvtOut:"mouse:out",evtIn:"mouseover",canvasEvtIn:"mouse:over"});for(var s=0;s<a;s++)this.fireSyntheticInOutEvents(r[s],e,{oldTarget:i[s],evtOut:"mouseout",evtIn:"mouseover"});this._hoveredTarget=t,this._hoveredTargets=this.targets.concat()},_fireEnterLeaveEvents:function(t,e){var n=this._draggedoverTarget,i=this._hoveredTargets,r=this.targets,a=Math.max(i.length,r.length);this.fireSyntheticInOutEvents(t,e,{oldTarget:n,evtOut:"dragleave",evtIn:"dragenter"});for(var s=0;s<a;s++)this.fireSyntheticInOutEvents(r[s],e,{oldTarget:i[s],evtOut:"dragleave",evtIn:"dragenter"});this._draggedoverTarget=t},fireSyntheticInOutEvents:function(t,e,n){var i,r,a,s,o=n.oldTarget,l=o!==t,u=n.canvasEvtIn,c=n.canvasEvtOut;l&&(i={e:e,target:t,previousTarget:o},r={e:e,target:o,nextTarget:t}),s=t&&l,a=o&&l,a&&(c&&this.fire(c,r),o.fire(n.evtOut,r)),s&&(u&&this.fire(u,i),t.fire(n.evtIn,i))},__onMouseWheel:function(t){this._cacheTransformEventData(t),this._handleEvent(t,"wheel"),this._resetTransformEventData()},_transformObject:function(t){var e=this.getPointer(t),n=this._currentTransform;n.reset=!1,n.target.isMoving=!0,n.shiftKey=t.shiftKey,n.altKey=t[this.centeredKey],this._performTransformAction(t,n,e),n.actionPerformed&&this.requestRenderAll()},_performTransformAction:function(t,e,n){var i=n.x,r=n.y,a=e.action,s=!1,o=e.actionHandler;o&&(s=o(t,e,i,r)),"drag"===a&&s&&this.setCursor(e.target.moveCursor||this.moveCursor),e.actionPerformed=e.actionPerformed||s},_fire:i.controlsUtils.fireEvent,_setCursorFromEvent:function(t,e){if(!e)return this.setCursor(this.defaultCursor),!1;var n=e.hoverCursor||this.hoverCursor,i=this._activeObject&&"activeSelection"===this._activeObject.type?this._activeObject:null,r=(!i||!i.contains(e))&&e._findTargetCorner(this.getPointer(t,!0));r?this.setCursor(this.getCornerCursor(r,e,t)):(e.subTargetCheck&&this.targets.concat().reverse().map((function(t){n=t.hoverCursor||n})),this.setCursor(n))},getCornerCursor:function(t,e,n){var i=e.controls[t];return i.cursorStyleHandler(n,i,e)}})}(),function(){var t=Math.min,e=Math.max;i.util.object.extend(i.Canvas.prototype,{_shouldGroup:function(t,e){var n=this._activeObject;return n&&this._isSelectionKeyPressed(t)&&e&&e.selectable&&this.selection&&(n!==e||"activeSelection"===n.type)&&!e.onSelect({e:t})},_handleGrouping:function(t,e){var n=this._activeObject;n.__corner||(e!==n||(e=this.findTarget(t,!0),e&&e.selectable))&&(n&&"activeSelection"===n.type?this._updateActiveSelection(e,t):this._createActiveSelection(e,t))},_updateActiveSelection:function(t,e){var n=this._activeObject,i=n._objects.slice(0);n.contains(t)?(n.removeWithUpdate(t),this._hoveredTarget=t,this._hoveredTargets=this.targets.concat(),1===n.size()&&this._setActiveObject(n.item(0),e)):(n.addWithUpdate(t),this._hoveredTarget=n,this._hoveredTargets=this.targets.concat()),this._fireSelectionEvents(i,e)},_createActiveSelection:function(t,e){var n=this.getActiveObjects(),i=this._createGroup(t);this._hoveredTarget=i,this._setActiveObject(i,e),this._fireSelectionEvents(n,e)},_createGroup:function(t){var e=this._objects,n=e.indexOf(this._activeObject)<e.indexOf(t),r=n?[this._activeObject,t]:[t,this._activeObject];return this._activeObject.isEditing&&this._activeObject.exitEditing(),new i.ActiveSelection(r,{canvas:this})},_groupSelectedObjects:function(t){var e,n=this._collectObjects(t);1===n.length?this.setActiveObject(n[0],t):n.length>1&&(e=new i.ActiveSelection(n.reverse(),{canvas:this}),this.setActiveObject(e,t))},_collectObjects:function(n){for(var r,a=[],s=this._groupSelector.ex,o=this._groupSelector.ey,l=s+this._groupSelector.left,u=o+this._groupSelector.top,c=new i.Point(t(s,l),t(o,u)),h=new i.Point(e(s,l),e(o,u)),d=!this.selectionFullyContained,f=s===l&&o===u,m=this._objects.length;m--;)if(r=this._objects[m],r&&r.selectable&&r.visible&&(d&&r.intersectsWithRect(c,h)||r.isContainedWithinRect(c,h)||d&&r.containsPoint(c)||d&&r.containsPoint(h))&&(a.push(r),f))break;return a.length>1&&(a=a.filter((function(t){return!t.onSelect({e:n})}))),a},_maybeGroupObjects:function(t){this.selection&&this._groupSelector&&this._groupSelectedObjects(t),this.setCursor(this.defaultCursor),this._groupSelector=null}})}(),function(){i.util.object.extend(i.StaticCanvas.prototype,{toDataURL:function(t){t||(t={});var e=t.format||"png",n=t.quality||1,r=(t.multiplier||1)*(t.enableRetinaScaling?this.getRetinaScaling():1),a=this.toCanvasElement(r,t);return i.util.toDataURL(a,e,n)},toCanvasElement:function(t,e){t=t||1,e=e||{};var n=(e.width||this.width)*t,r=(e.height||this.height)*t,a=this.getZoom(),s=this.width,o=this.height,l=a*t,u=this.viewportTransform,c=(u[4]-(e.left||0))*t,h=(u[5]-(e.top||0))*t,d=this.interactive,f=[l,0,0,l,c,h],m=this.enableRetinaScaling,p=i.util.createCanvasElement(),_=this.contextTop;return p.width=n,p.height=r,this.contextTop=null,this.enableRetinaScaling=!1,this.interactive=!1,this.viewportTransform=f,this.width=n,this.height=r,this.calcViewportBoundaries(),this.renderCanvas(p.getContext("2d"),this._objects),this.viewportTransform=u,this.width=s,this.height=o,this.calcViewportBoundaries(),this.interactive=d,this.enableRetinaScaling=m,this.contextTop=_,p}})}(),i.util.object.extend(i.StaticCanvas.prototype,{loadFromJSON:function(t,e,n){if(t){var r="string"===typeof t?JSON.parse(t):i.util.object.clone(t),a=this,s=r.clipPath,o=this.renderOnAddRemove;return this.renderOnAddRemove=!1,delete r.clipPath,this._enlivenObjects(r.objects,(function(t){a.clear(),a._setBgOverlay(r,(function(){s?a._enlivenObjects([s],(function(n){a.clipPath=n[0],a.__setupCanvas.call(a,r,t,o,e)})):a.__setupCanvas.call(a,r,t,o,e)}))}),n),this}},__setupCanvas:function(t,e,n,i){var r=this;e.forEach((function(t,e){r.insertAt(t,e)})),this.renderOnAddRemove=n,delete t.objects,delete t.backgroundImage,delete t.overlayImage,delete t.background,delete t.overlay,this._setOptions(t),this.renderAll(),i&&i()},_setBgOverlay:function(t,e){var n={backgroundColor:!1,overlayColor:!1,backgroundImage:!1,overlayImage:!1};if(t.backgroundImage||t.overlayImage||t.background||t.overlay){var i=function(){n.backgroundImage&&n.overlayImage&&n.backgroundColor&&n.overlayColor&&e&&e()};this.__setBgOverlay("backgroundImage",t.backgroundImage,n,i),this.__setBgOverlay("overlayImage",t.overlayImage,n,i),this.__setBgOverlay("backgroundColor",t.background,n,i),this.__setBgOverlay("overlayColor",t.overlay,n,i)}else e&&e()},__setBgOverlay:function(t,e,n,r){var a=this;if(!e)return n[t]=!0,void(r&&r());"backgroundImage"===t||"overlayImage"===t?i.util.enlivenObjects([e],(function(e){a[t]=e[0],n[t]=!0,r&&r()})):this["set"+i.util.string.capitalize(t,!0)](e,(function(){n[t]=!0,r&&r()}))},_enlivenObjects:function(t,e,n){t&&0!==t.length?i.util.enlivenObjects(t,(function(t){e&&e(t)}),null,n):e&&e([])},_toDataURL:function(t,e){this.clone((function(n){e(n.toDataURL(t))}))},_toDataURLWithMultiplier:function(t,e,n){this.clone((function(i){n(i.toDataURLWithMultiplier(t,e))}))},clone:function(t,e){var n=JSON.stringify(this.toJSON(e));this.cloneWithoutData((function(e){e.loadFromJSON(n,(function(){t&&t(e)}))}))},cloneWithoutData:function(t){var e=i.util.createCanvasElement();e.width=this.width,e.height=this.height;var n=new i.Canvas(e);this.backgroundImage?(n.setBackgroundImage(this.backgroundImage.src,(function(){n.renderAll(),t&&t(n)})),n.backgroundImageOpacity=this.backgroundImageOpacity,n.backgroundImageStretch=this.backgroundImageStretch):t&&t(n)}}),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=e.util.object.extend,i=e.util.object.clone,r=e.util.toFixed,a=e.util.string.capitalize,s=e.util.degreesToRadians,o=e.StaticCanvas.supports("setLineDash"),l=!e.isLikelyNode,u=2;e.Object||(e.Object=e.util.createClass(e.CommonMethods,{type:"object",originX:"left",originY:"top",top:0,left:0,width:0,height:0,scaleX:1,scaleY:1,flipX:!1,flipY:!1,opacity:1,angle:0,skewX:0,skewY:0,cornerSize:13,touchCornerSize:24,transparentCorners:!0,hoverCursor:null,moveCursor:null,padding:0,borderColor:"rgb(178,204,255)",borderDashArray:null,cornerColor:"rgb(178,204,255)",cornerStrokeColor:null,cornerStyle:"rect",cornerDashArray:null,centeredScaling:!1,centeredRotation:!0,fill:"rgb(0,0,0)",fillRule:"nonzero",globalCompositeOperation:"source-over",backgroundColor:"",selectionBackgroundColor:"",stroke:null,strokeWidth:1,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:4,shadow:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,minScaleLimit:0,selectable:!0,evented:!0,visible:!0,hasControls:!0,hasBorders:!0,perPixelTargetFind:!1,includeDefaultValues:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,excludeFromExport:!1,objectCaching:l,statefullCache:!1,noScaleCache:!0,strokeUniform:!1,dirty:!0,__corner:0,paintFirst:"fill",stateProperties:"top left width height scaleX scaleY flipX flipY originX originY transformMatrix stroke strokeWidth strokeDashArray strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit angle opacity fill globalCompositeOperation shadow visible backgroundColor skewX skewY fillRule paintFirst clipPath strokeUniform".split(" "),cacheProperties:"fill stroke strokeWidth strokeDashArray width height paintFirst strokeUniform strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit backgroundColor clipPath".split(" "),colorProperties:"fill stroke backgroundColor".split(" "),clipPath:void 0,inverted:!1,absolutePositioned:!1,initialize:function(t){t&&this.setOptions(t)},_createCacheCanvas:function(){this._cacheProperties={},this._cacheCanvas=e.util.createCanvasElement(),this._cacheContext=this._cacheCanvas.getContext("2d"),this._updateCacheCanvas(),this.dirty=!0},_limitCacheSize:function(t){var n=e.perfLimitSizeTotal,i=t.width,r=t.height,a=e.maxCacheSideLimit,s=e.minCacheSideLimit;if(i<=a&&r<=a&&i*r<=n)return i<s&&(t.width=s),r<s&&(t.height=s),t;var o=i/r,l=e.util.limitDimsByArea(o,n),u=e.util.capValue,c=u(s,l.x,a),h=u(s,l.y,a);return i>c&&(t.zoomX/=i/c,t.width=c,t.capped=!0),r>h&&(t.zoomY/=r/h,t.height=h,t.capped=!0),t},_getCacheCanvasDimensions:function(){var t=this.getTotalObjectScaling(),e=this._getTransformedDimensions(0,0),n=e.x*t.scaleX/this.scaleX,i=e.y*t.scaleY/this.scaleY;return{width:n+u,height:i+u,zoomX:t.scaleX,zoomY:t.scaleY,x:n,y:i}},_updateCacheCanvas:function(){var t=this.canvas;if(this.noScaleCache&&t&&t._currentTransform){var n=t._currentTransform.target,i=t._currentTransform.action;if(this===n&&i.slice&&"scale"===i.slice(0,5))return!1}var r,a,s=this._cacheCanvas,o=this._limitCacheSize(this._getCacheCanvasDimensions()),l=e.minCacheSideLimit,u=o.width,c=o.height,h=o.zoomX,d=o.zoomY,f=u!==this.cacheWidth||c!==this.cacheHeight,m=this.zoomX!==h||this.zoomY!==d,p=f||m,_=0,g=0,v=!1;if(f){var y=this._cacheCanvas.width,b=this._cacheCanvas.height,w=u>y||c>b,x=(u<.9*y||c<.9*b)&&y>l&&b>l;v=w||x,w&&!o.capped&&(u>l||c>l)&&(_=.1*u,g=.1*c)}return!!p&&(v?(s.width=Math.ceil(u+_),s.height=Math.ceil(c+g)):(this._cacheContext.setTransform(1,0,0,1,0,0),this._cacheContext.clearRect(0,0,s.width,s.height)),r=o.x/2,a=o.y/2,this.cacheTranslationX=Math.round(s.width/2-r)+r,this.cacheTranslationY=Math.round(s.height/2-a)+a,this.cacheWidth=u,this.cacheHeight=c,this._cacheContext.translate(this.cacheTranslationX,this.cacheTranslationY),this._cacheContext.scale(h,d),this.zoomX=h,this.zoomY=d,!0)},setOptions:function(t){this._setOptions(t),this._initGradient(t.fill,"fill"),this._initGradient(t.stroke,"stroke"),this._initPattern(t.fill,"fill"),this._initPattern(t.stroke,"stroke")},transform:function(t){var e=this.group&&!this.group._transformDone||this.group&&this.canvas&&t===this.canvas.contextTop,n=this.calcTransformMatrix(!e);t.transform(n[0],n[1],n[2],n[3],n[4],n[5])},toObject:function(t){var n=e.Object.NUM_FRACTION_DIGITS,i={type:this.type,version:e.version,originX:this.originX,originY:this.originY,left:r(this.left,n),top:r(this.top,n),width:r(this.width,n),height:r(this.height,n),fill:this.fill&&this.fill.toObject?this.fill.toObject():this.fill,stroke:this.stroke&&this.stroke.toObject?this.stroke.toObject():this.stroke,strokeWidth:r(this.strokeWidth,n),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeDashOffset:this.strokeDashOffset,strokeLineJoin:this.strokeLineJoin,strokeUniform:this.strokeUniform,strokeMiterLimit:r(this.strokeMiterLimit,n),scaleX:r(this.scaleX,n),scaleY:r(this.scaleY,n),angle:r(this.angle,n),flipX:this.flipX,flipY:this.flipY,opacity:r(this.opacity,n),shadow:this.shadow&&this.shadow.toObject?this.shadow.toObject():this.shadow,visible:this.visible,backgroundColor:this.backgroundColor,fillRule:this.fillRule,paintFirst:this.paintFirst,globalCompositeOperation:this.globalCompositeOperation,skewX:r(this.skewX,n),skewY:r(this.skewY,n)};return this.clipPath&&(i.clipPath=this.clipPath.toObject(t),i.clipPath.inverted=this.clipPath.inverted,i.clipPath.absolutePositioned=this.clipPath.absolutePositioned),e.util.populateWithProperties(this,i,t),this.includeDefaultValues||(i=this._removeDefaultValues(i)),i},toDatalessObject:function(t){return this.toObject(t)},_removeDefaultValues:function(t){var n=e.util.getKlass(t.type).prototype,i=n.stateProperties;return i.forEach((function(e){if("left"!==e&&"top"!==e){t[e]===n[e]&&delete t[e];var i="[object Array]"===Object.prototype.toString.call(t[e])&&"[object Array]"===Object.prototype.toString.call(n[e]);i&&0===t[e].length&&0===n[e].length&&delete t[e]}})),t},toString:function(){return"#<fabric."+a(this.type)+">"},getObjectScaling:function(){var t=e.util.qrDecompose(this.calcTransformMatrix());return{scaleX:Math.abs(t.scaleX),scaleY:Math.abs(t.scaleY)}},getTotalObjectScaling:function(){var t=this.getObjectScaling(),e=t.scaleX,n=t.scaleY;if(this.canvas){var i=this.canvas.getZoom(),r=this.canvas.getRetinaScaling();e*=i*r,n*=i*r}return{scaleX:e,scaleY:n}},getObjectOpacity:function(){var t=this.opacity;return this.group&&(t*=this.group.getObjectOpacity()),t},_set:function(t,n){var i="scaleX"===t||"scaleY"===t,r=this[t]!==n,a=!1;return i&&(n=this._constrainScale(n)),"scaleX"===t&&n<0?(this.flipX=!this.flipX,n*=-1):"scaleY"===t&&n<0?(this.flipY=!this.flipY,n*=-1):"shadow"!==t||!n||n instanceof e.Shadow?"dirty"===t&&this.group&&this.group.set("dirty",n):n=new e.Shadow(n),this[t]=n,r&&(a=this.group&&this.group.isOnACache(),this.cacheProperties.indexOf(t)>-1?(this.dirty=!0,a&&this.group.set("dirty",!0)):a&&this.stateProperties.indexOf(t)>-1&&this.group.set("dirty",!0)),this},setOnGroup:function(){},getViewportTransform:function(){return this.canvas&&this.canvas.viewportTransform?this.canvas.viewportTransform:e.iMatrix.concat()},isNotVisible:function(){return 0===this.opacity||!this.width&&!this.height&&0===this.strokeWidth||!this.visible},render:function(t){this.isNotVisible()||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(t.save(),this._setupCompositeOperation(t),this.drawSelectionBackground(t),this.transform(t),this._setOpacity(t),this._setShadow(t,this),this.shouldCache()?(this.renderCache(),this.drawCacheOnCanvas(t)):(this._removeCacheCanvas(),this.dirty=!1,this.drawObject(t),this.objectCaching&&this.statefullCache&&this.saveState({propertySet:"cacheProperties"})),t.restore())},renderCache:function(t){t=t||{},this._cacheCanvas||this._createCacheCanvas(),this.isCacheDirty()&&(this.statefullCache&&this.saveState({propertySet:"cacheProperties"}),this.drawObject(this._cacheContext,t.forClipping),this.dirty=!1)},_removeCacheCanvas:function(){this._cacheCanvas=null,this.cacheWidth=0,this.cacheHeight=0},hasStroke:function(){return this.stroke&&"transparent"!==this.stroke&&0!==this.strokeWidth},hasFill:function(){return this.fill&&"transparent"!==this.fill},needsItsOwnCache:function(){return!("stroke"!==this.paintFirst||!this.hasFill()||!this.hasStroke()||"object"!==typeof this.shadow)||!!this.clipPath},shouldCache:function(){return this.ownCaching=this.needsItsOwnCache()||this.objectCaching&&(!this.group||!this.group.isOnACache()),this.ownCaching},willDrawShadow:function(){return!!this.shadow&&(0!==this.shadow.offsetX||0!==this.shadow.offsetY)},drawClipPathOnCache:function(t){var n=this.clipPath;if(t.save(),n.inverted?t.globalCompositeOperation="destination-out":t.globalCompositeOperation="destination-in",n.absolutePositioned){var i=e.util.invertTransform(this.calcTransformMatrix());t.transform(i[0],i[1],i[2],i[3],i[4],i[5])}n.transform(t),t.scale(1/n.zoomX,1/n.zoomY),t.drawImage(n._cacheCanvas,-n.cacheTranslationX,-n.cacheTranslationY),t.restore()},drawObject:function(t,e){var n=this.fill,i=this.stroke;e?(this.fill="black",this.stroke="",this._setClippingProperties(t)):this._renderBackground(t),this._render(t),this._drawClipPath(t),this.fill=n,this.stroke=i},_drawClipPath:function(t){var e=this.clipPath;e&&(e.canvas=this.canvas,e.shouldCache(),e._transformDone=!0,e.renderCache({forClipping:!0}),this.drawClipPathOnCache(t))},drawCacheOnCanvas:function(t){t.scale(1/this.zoomX,1/this.zoomY),t.drawImage(this._cacheCanvas,-this.cacheTranslationX,-this.cacheTranslationY)},isCacheDirty:function(t){if(this.isNotVisible())return!1;if(this._cacheCanvas&&!t&&this._updateCacheCanvas())return!0;if(this.dirty||this.clipPath&&this.clipPath.absolutePositioned||this.statefullCache&&this.hasStateChanged("cacheProperties")){if(this._cacheCanvas&&!t){var e=this.cacheWidth/this.zoomX,n=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-e/2,-n/2,e,n)}return!0}return!1},_renderBackground:function(t){if(this.backgroundColor){var e=this._getNonTransformedDimensions();t.fillStyle=this.backgroundColor,t.fillRect(-e.x/2,-e.y/2,e.x,e.y),this._removeShadow(t)}},_setOpacity:function(t){this.group&&!this.group._transformDone?t.globalAlpha=this.getObjectOpacity():t.globalAlpha*=this.opacity},_setStrokeStyles:function(t,e){var n=e.stroke;n&&(t.lineWidth=e.strokeWidth,t.lineCap=e.strokeLineCap,t.lineDashOffset=e.strokeDashOffset,t.lineJoin=e.strokeLineJoin,t.miterLimit=e.strokeMiterLimit,n.toLive?"percentage"===n.gradientUnits||n.gradientTrasnform||n.patternTransform?this._applyPatternForTransformedGradient(t,n):(t.strokeStyle=n.toLive(t,this),this._applyPatternGradientTransform(t,n)):t.strokeStyle=e.stroke)},_setFillStyles:function(t,e){var n=e.fill;n&&(n.toLive?(t.fillStyle=n.toLive(t,this),this._applyPatternGradientTransform(t,e.fill)):t.fillStyle=n)},_setClippingProperties:function(t){t.globalAlpha=1,t.strokeStyle="transparent",t.fillStyle="#000000"},_setLineDash:function(t,e,n){e&&0!==e.length&&(1&e.length&&e.push.apply(e,e),o?t.setLineDash(e):n&&n(t))},_renderControls:function(t,n){var i,r,a,o=this.getViewportTransform(),l=this.calcTransformMatrix();n=n||{},r="undefined"!==typeof n.hasBorders?n.hasBorders:this.hasBorders,a="undefined"!==typeof n.hasControls?n.hasControls:this.hasControls,l=e.util.multiplyTransformMatrices(o,l),i=e.util.qrDecompose(l),t.save(),t.translate(i.translateX,i.translateY),t.lineWidth=1*this.borderScaleFactor,this.group||(t.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),n.forActiveSelection?(t.rotate(s(i.angle)),r&&this.drawBordersInGroup(t,i,n)):(t.rotate(s(this.angle)),r&&this.drawBorders(t,n)),a&&this.drawControls(t,n),t.restore()},_setShadow:function(t){if(this.shadow){var n,i=this.shadow,r=this.canvas,a=r&&r.viewportTransform[0]||1,s=r&&r.viewportTransform[3]||1;n=i.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),r&&r._isRetinaScaling()&&(a*=e.devicePixelRatio,s*=e.devicePixelRatio),t.shadowColor=i.color,t.shadowBlur=i.blur*e.browserShadowBlurConstant*(a+s)*(n.scaleX+n.scaleY)/4,t.shadowOffsetX=i.offsetX*a*n.scaleX,t.shadowOffsetY=i.offsetY*s*n.scaleY}},_removeShadow:function(t){this.shadow&&(t.shadowColor="",t.shadowBlur=t.shadowOffsetX=t.shadowOffsetY=0)},_applyPatternGradientTransform:function(t,e){if(!e||!e.toLive)return{offsetX:0,offsetY:0};var n=e.gradientTransform||e.patternTransform,i=-this.width/2+e.offsetX||0,r=-this.height/2+e.offsetY||0;return"percentage"===e.gradientUnits?t.transform(this.width,0,0,this.height,i,r):t.transform(1,0,0,1,i,r),n&&t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),{offsetX:i,offsetY:r}},_renderPaintInOrder:function(t){"stroke"===this.paintFirst?(this._renderStroke(t),this._renderFill(t)):(this._renderFill(t),this._renderStroke(t))},_render:function(){},_renderFill:function(t){this.fill&&(t.save(),this._setFillStyles(t,this),"evenodd"===this.fillRule?t.fill("evenodd"):t.fill(),t.restore())},_renderStroke:function(t){if(this.stroke&&0!==this.strokeWidth){if(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(t),t.save(),this.strokeUniform&&this.group){var e=this.getObjectScaling();t.scale(1/e.scaleX,1/e.scaleY)}else this.strokeUniform&&t.scale(1/this.scaleX,1/this.scaleY);this._setLineDash(t,this.strokeDashArray,this._renderDashedStroke),this._setStrokeStyles(t,this),t.stroke(),t.restore()}},_applyPatternForTransformedGradient:function(t,n){var i,r=this._limitCacheSize(this._getCacheCanvasDimensions()),a=e.util.createCanvasElement(),s=this.canvas.getRetinaScaling(),o=r.x/this.scaleX/s,l=r.y/this.scaleY/s;a.width=o,a.height=l,i=a.getContext("2d"),i.beginPath(),i.moveTo(0,0),i.lineTo(o,0),i.lineTo(o,l),i.lineTo(0,l),i.closePath(),i.translate(o/2,l/2),i.scale(r.zoomX/this.scaleX/s,r.zoomY/this.scaleY/s),this._applyPatternGradientTransform(i,n),i.fillStyle=n.toLive(t),i.fill(),t.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),t.scale(s*this.scaleX/r.zoomX,s*this.scaleY/r.zoomY),t.strokeStyle=i.createPattern(a,"no-repeat")},_findCenterFromElement:function(){return{x:this.left+this.width/2,y:this.top+this.height/2}},_assignTransformMatrixProps:function(){if(this.transformMatrix){var t=e.util.qrDecompose(this.transformMatrix);this.flipX=!1,this.flipY=!1,this.set("scaleX",t.scaleX),this.set("scaleY",t.scaleY),this.angle=t.angle,this.skewX=t.skewX,this.skewY=0}},_removeTransformMatrix:function(t){var n=this._findCenterFromElement();this.transformMatrix&&(this._assignTransformMatrixProps(),n=e.util.transformPoint(n,this.transformMatrix)),this.transformMatrix=null,t&&(this.scaleX*=t.scaleX,this.scaleY*=t.scaleY,this.cropX=t.cropX,this.cropY=t.cropY,n.x+=t.offsetLeft,n.y+=t.offsetTop,this.width=t.width,this.height=t.height),this.setPositionByOrigin(n,"center","center")},clone:function(t,n){var i=this.toObject(n);this.constructor.fromObject?this.constructor.fromObject(i,t):e.Object._fromObject("Object",i,t)},cloneAsImage:function(t,n){var i=this.toCanvasElement(n);return t&&t(new e.Image(i)),this},toCanvasElement:function(t){t||(t={});var n=e.util,i=n.saveObjectTransform(this),r=this.group,a=this.shadow,s=Math.abs,o=(t.multiplier||1)*(t.enableRetinaScaling?e.devicePixelRatio:1);delete this.group,t.withoutTransform&&n.resetObjectTransform(this),t.withoutShadow&&(this.shadow=null);var l,u,c,h,d=e.util.createCanvasElement(),f=this.getBoundingRect(!0,!0),m=this.shadow,p={x:0,y:0};m&&(u=m.blur,l=m.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),p.x=2*Math.round(s(m.offsetX)+u)*s(l.scaleX),p.y=2*Math.round(s(m.offsetY)+u)*s(l.scaleY)),c=f.width+p.x,h=f.height+p.y,d.width=Math.ceil(c),d.height=Math.ceil(h);var _=new e.StaticCanvas(d,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1});"jpeg"===t.format&&(_.backgroundColor="#fff"),this.setPositionByOrigin(new e.Point(_.width/2,_.height/2),"center","center");var g=this.canvas;_.add(this);var v=_.toCanvasElement(o||1,t);return this.shadow=a,this.set("canvas",g),r&&(this.group=r),this.set(i).setCoords(),_._objects=[],_.dispose(),_=null,v},toDataURL:function(t){return t||(t={}),e.util.toDataURL(this.toCanvasElement(t),t.format||"png",t.quality||1)},isType:function(t){return this.type===t},complexity:function(){return 1},toJSON:function(t){return this.toObject(t)},rotate:function(t){var e=("center"!==this.originX||"center"!==this.originY)&&this.centeredRotation;return e&&this._setOriginToCenter(),this.set("angle",t),e&&this._resetOrigin(),this},centerH:function(){return this.canvas&&this.canvas.centerObjectH(this),this},viewportCenterH:function(){return this.canvas&&this.canvas.viewportCenterObjectH(this),this},centerV:function(){return this.canvas&&this.canvas.centerObjectV(this),this},viewportCenterV:function(){return this.canvas&&this.canvas.viewportCenterObjectV(this),this},center:function(){return this.canvas&&this.canvas.centerObject(this),this},viewportCenter:function(){return this.canvas&&this.canvas.viewportCenterObject(this),this},getLocalPointer:function(t,n){n=n||this.canvas.getPointer(t);var i=new e.Point(n.x,n.y),r=this._getLeftTopCoords();return this.angle&&(i=e.util.rotatePoint(i,r,s(-this.angle))),{x:i.x-r.x,y:i.y-r.y}},_setupCompositeOperation:function(t){this.globalCompositeOperation&&(t.globalCompositeOperation=this.globalCompositeOperation)}}),e.util.createAccessors&&e.util.createAccessors(e.Object),n(e.Object.prototype,e.Observable),e.Object.NUM_FRACTION_DIGITS=2,e.Object._fromObject=function(t,n,r,a){var s=e[t];n=i(n,!0),e.util.enlivenPatterns([n.fill,n.stroke],(function(t){"undefined"!==typeof t[0]&&(n.fill=t[0]),"undefined"!==typeof t[1]&&(n.stroke=t[1]),e.util.enlivenObjects([n.clipPath],(function(t){n.clipPath=t[0];var e=a?new s(n[a],n):new s(n);r&&r(e)}))}))},e.Object.__uid=0)}(e),function(){var t=i.util.degreesToRadians,e={left:-.5,center:0,right:.5},n={top:-.5,center:0,bottom:.5};i.util.object.extend(i.Object.prototype,{translateToGivenOrigin:function(t,r,a,s,o){var l,u,c,h=t.x,d=t.y;return"string"===typeof r?r=e[r]:r-=.5,"string"===typeof s?s=e[s]:s-=.5,l=s-r,"string"===typeof a?a=n[a]:a-=.5,"string"===typeof o?o=n[o]:o-=.5,u=o-a,(l||u)&&(c=this._getTransformedDimensions(),h=t.x+l*c.x,d=t.y+u*c.y),new i.Point(h,d)},translateToCenterPoint:function(e,n,r){var a=this.translateToGivenOrigin(e,n,r,"center","center");return this.angle?i.util.rotatePoint(a,e,t(this.angle)):a},translateToOriginPoint:function(e,n,r){var a=this.translateToGivenOrigin(e,"center","center",n,r);return this.angle?i.util.rotatePoint(a,e,t(this.angle)):a},getCenterPoint:function(){var t=new i.Point(this.left,this.top);return this.translateToCenterPoint(t,this.originX,this.originY)},getPointByOrigin:function(t,e){var n=this.getCenterPoint();return this.translateToOriginPoint(n,t,e)},toLocalPoint:function(e,n,r){var a,s,o=this.getCenterPoint();return a="undefined"!==typeof n&&"undefined"!==typeof r?this.translateToGivenOrigin(o,"center","center",n,r):new i.Point(this.left,this.top),s=new i.Point(e.x,e.y),this.angle&&(s=i.util.rotatePoint(s,o,-t(this.angle))),s.subtractEquals(a)},setPositionByOrigin:function(t,e,n){var i=this.translateToCenterPoint(t,e,n),r=this.translateToOriginPoint(i,this.originX,this.originY);this.set("left",r.x),this.set("top",r.y)},adjustPosition:function(n){var r,a,s=t(this.angle),o=this.getScaledWidth(),l=i.util.cos(s)*o,u=i.util.sin(s)*o;r="string"===typeof this.originX?e[this.originX]:this.originX-.5,a="string"===typeof n?e[n]:n-.5,this.left+=l*(a-r),this.top+=u*(a-r),this.setCoords(),this.originX=n},_setOriginToCenter:function(){this._originalOriginX=this.originX,this._originalOriginY=this.originY;var t=this.getCenterPoint();this.originX="center",this.originY="center",this.left=t.x,this.top=t.y},_resetOrigin:function(){var t=this.translateToOriginPoint(this.getCenterPoint(),this._originalOriginX,this._originalOriginY);this.originX=this._originalOriginX,this.originY=this._originalOriginY,this.left=t.x,this.top=t.y,this._originalOriginX=null,this._originalOriginY=null},_getLeftTopCoords:function(){return this.translateToOriginPoint(this.getCenterPoint(),"left","top")}})}(),function(){function t(t){return[new i.Point(t.tl.x,t.tl.y),new i.Point(t.tr.x,t.tr.y),new i.Point(t.br.x,t.br.y),new i.Point(t.bl.x,t.bl.y)]}var e=i.util,n=e.degreesToRadians,r=e.multiplyTransformMatrices,a=e.transformPoint;e.object.extend(i.Object.prototype,{oCoords:null,aCoords:null,lineCoords:null,ownMatrixCache:null,matrixCache:null,controls:{},_getCoords:function(t,e){return e?t?this.calcACoords():this.calcLineCoords():(this.aCoords&&this.lineCoords||this.setCoords(!0),t?this.aCoords:this.lineCoords)},getCoords:function(e,n){return t(this._getCoords(e,n))},intersectsWithRect:function(t,e,n,r){var a=this.getCoords(n,r),s=i.Intersection.intersectPolygonRectangle(a,t,e);return"Intersection"===s.status},intersectsWithObject:function(t,e,n){var r=i.Intersection.intersectPolygonPolygon(this.getCoords(e,n),t.getCoords(e,n));return"Intersection"===r.status||t.isContainedWithinObject(this,e,n)||this.isContainedWithinObject(t,e,n)},isContainedWithinObject:function(t,e,n){for(var i=this.getCoords(e,n),r=e?t.aCoords:t.lineCoords,a=0,s=t._getImageLines(r);a<4;a++)if(!t.containsPoint(i[a],s))return!1;return!0},isContainedWithinRect:function(t,e,n,i){var r=this.getBoundingRect(n,i);return r.left>=t.x&&r.left+r.width<=e.x&&r.top>=t.y&&r.top+r.height<=e.y},containsPoint:function(t,e,n,i){var r=this._getCoords(n,i),a=(e=e||this._getImageLines(r),this._findCrossPoints(t,e));return 0!==a&&a%2===1},isOnScreen:function(t){if(!this.canvas)return!1;var e=this.canvas.vptCoords.tl,n=this.canvas.vptCoords.br,i=this.getCoords(!0,t);return!!i.some((function(t){return t.x<=n.x&&t.x>=e.x&&t.y<=n.y&&t.y>=e.y}))||(!!this.intersectsWithRect(e,n,!0,t)||this._containsCenterOfCanvas(e,n,t))},_containsCenterOfCanvas:function(t,e,n){var i={x:(t.x+e.x)/2,y:(t.y+e.y)/2};return!!this.containsPoint(i,null,!0,n)},isPartiallyOnScreen:function(t){if(!this.canvas)return!1;var e=this.canvas.vptCoords.tl,n=this.canvas.vptCoords.br;if(this.intersectsWithRect(e,n,!0,t))return!0;var i=this.getCoords(!0,t).every((function(t){return(t.x>=n.x||t.x<=e.x)&&(t.y>=n.y||t.y<=e.y)}));return i&&this._containsCenterOfCanvas(e,n,t)},_getImageLines:function(t){var e={topline:{o:t.tl,d:t.tr},rightline:{o:t.tr,d:t.br},bottomline:{o:t.br,d:t.bl},leftline:{o:t.bl,d:t.tl}};return e},_findCrossPoints:function(t,e){var n,i,r,a,s,o,l=0;for(var u in e)if(o=e[u],!(o.o.y<t.y&&o.d.y<t.y)&&!(o.o.y>=t.y&&o.d.y>=t.y)&&(o.o.x===o.d.x&&o.o.x>=t.x?s=o.o.x:(n=0,i=(o.d.y-o.o.y)/(o.d.x-o.o.x),r=t.y-n*t.x,a=o.o.y-i*o.o.x,s=-(r-a)/(n-i)),s>=t.x&&(l+=1),2===l))break;return l},getBoundingRect:function(t,n){var i=this.getCoords(t,n);return e.makeBoundingBoxFromPoints(i)},getScaledWidth:function(){return this._getTransformedDimensions().x},getScaledHeight:function(){return this._getTransformedDimensions().y},_constrainScale:function(t){return Math.abs(t)<this.minScaleLimit?t<0?-this.minScaleLimit:this.minScaleLimit:0===t?1e-4:t},scale:function(t){return this._set("scaleX",t),this._set("scaleY",t),this.setCoords()},scaleToWidth:function(t,e){var n=this.getBoundingRect(e).width/this.getScaledWidth();return this.scale(t/this.width/n)},scaleToHeight:function(t,e){var n=this.getBoundingRect(e).height/this.getScaledHeight();return this.scale(t/this.height/n)},calcCoords:function(t){return t?this.calcACoords():this.calcOCoords()},calcLineCoords:function(){var t=this.getViewportTransform(),i=this.padding,r=n(this.angle),s=e.cos(r),o=e.sin(r),l=s*i,u=o*i,c=l+u,h=l-u,d=this.calcACoords(),f={tl:a(d.tl,t),tr:a(d.tr,t),bl:a(d.bl,t),br:a(d.br,t)};return i&&(f.tl.x-=h,f.tl.y-=c,f.tr.x+=c,f.tr.y-=h,f.bl.x-=c,f.bl.y+=h,f.br.x+=h,f.br.y+=c),f},calcOCoords:function(){var t=this._calcRotateMatrix(),e=this._calcTranslateMatrix(),n=this.getViewportTransform(),i=r(n,e),a=r(i,t),s=(a=r(a,[1/n[0],0,0,1/n[3],0,0]),this._calculateCurrentDimensions()),o={};return this.forEachControl((function(t,e,n){o[e]=t.positionHandler(s,a,n)})),o},calcACoords:function(){var t=this._calcRotateMatrix(),e=this._calcTranslateMatrix(),n=r(e,t),i=this._getTransformedDimensions(),s=i.x/2,o=i.y/2;return{tl:a({x:-s,y:-o},n),tr:a({x:s,y:-o},n),bl:a({x:-s,y:o},n),br:a({x:s,y:o},n)}},setCoords:function(t){return this.aCoords=this.calcACoords(),this.lineCoords=this.group?this.aCoords:this.calcLineCoords(),t?this:(this.oCoords=this.calcOCoords(),this._setCornerCoords&&this._setCornerCoords(),this)},_calcRotateMatrix:function(){return e.calcRotateMatrix(this)},_calcTranslateMatrix:function(){var t=this.getCenterPoint();return[1,0,0,1,t.x,t.y]},transformMatrixKey:function(t){var e="_",n="";return!t&&this.group&&(n=this.group.transformMatrixKey(t)+e),n+this.top+e+this.left+e+this.scaleX+e+this.scaleY+e+this.skewX+e+this.skewY+e+this.angle+e+this.originX+e+this.originY+e+this.width+e+this.height+e+this.strokeWidth+this.flipX+this.flipY},calcTransformMatrix:function(t){var e=this.calcOwnMatrix();if(t||!this.group)return e;var n=this.transformMatrixKey(t),i=this.matrixCache||(this.matrixCache={});return i.key===n?i.value:(this.group&&(e=r(this.group.calcTransformMatrix(!1),e)),i.key=n,i.value=e,e)},calcOwnMatrix:function(){var t=this.transformMatrixKey(!0),n=this.ownMatrixCache||(this.ownMatrixCache={});if(n.key===t)return n.value;var i=this._calcTranslateMatrix(),r={angle:this.angle,translateX:i[4],translateY:i[5],scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY};return n.key=t,n.value=e.composeMatrix(r),n.value},_calcDimensionsTransformMatrix:function(t,n,i){return e.calcDimensionsMatrix({skewX:t,skewY:n,scaleX:this.scaleX*(i&&this.flipX?-1:1),scaleY:this.scaleY*(i&&this.flipY?-1:1)})},_getNonTransformedDimensions:function(){var t=this.strokeWidth,e=this.width+t,n=this.height+t;return{x:e,y:n}},_getTransformedDimensions:function(t,n){"undefined"===typeof t&&(t=this.skewX),"undefined"===typeof n&&(n=this.skewY);var i,r,a=this._getNonTransformedDimensions(),s=0===t&&0===n;if(this.strokeUniform?(i=this.width,r=this.height):(i=a.x,r=a.y),s)return this._finalizeDimensions(i*this.scaleX,r*this.scaleY);var o=e.sizeAfterTransform(i,r,{scaleX:this.scaleX,scaleY:this.scaleY,skewX:t,skewY:n});return this._finalizeDimensions(o.x,o.y)},_finalizeDimensions:function(t,e){return this.strokeUniform?{x:t+this.strokeWidth,y:e+this.strokeWidth}:{x:t,y:e}},_calculateCurrentDimensions:function(){var t=this.getViewportTransform(),e=this._getTransformedDimensions(),n=a(e,t,!0);return n.scalarAdd(2*this.padding)}})}(),i.util.object.extend(i.Object.prototype,{sendToBack:function(){return this.group?i.StaticCanvas.prototype.sendToBack.call(this.group,this):this.canvas&&this.canvas.sendToBack(this),this},bringToFront:function(){return this.group?i.StaticCanvas.prototype.bringToFront.call(this.group,this):this.canvas&&this.canvas.bringToFront(this),this},sendBackwards:function(t){return this.group?i.StaticCanvas.prototype.sendBackwards.call(this.group,this,t):this.canvas&&this.canvas.sendBackwards(this,t),this},bringForward:function(t){return this.group?i.StaticCanvas.prototype.bringForward.call(this.group,this,t):this.canvas&&this.canvas.bringForward(this,t),this},moveTo:function(t){return this.group&&"activeSelection"!==this.group.type?i.StaticCanvas.prototype.moveTo.call(this.group,this,t):this.canvas&&this.canvas.moveTo(this,t),this}}),function(){function t(t,e){if(e){if(e.toLive)return t+": url(#SVGID_"+e.id+"); ";var n=new i.Color(e),r=t+": "+n.toRgb()+"; ",a=n.getAlpha();return 1!==a&&(r+=t+"-opacity: "+a.toString()+"; "),r}return t+": none; "}var e=i.util.toFixed;i.util.object.extend(i.Object.prototype,{getSvgStyles:function(e){var n=this.fillRule?this.fillRule:"nonzero",i=this.strokeWidth?this.strokeWidth:"0",r=this.strokeDashArray?this.strokeDashArray.join(" "):"none",a=this.strokeDashOffset?this.strokeDashOffset:"0",s=this.strokeLineCap?this.strokeLineCap:"butt",o=this.strokeLineJoin?this.strokeLineJoin:"miter",l=this.strokeMiterLimit?this.strokeMiterLimit:"4",u="undefined"!==typeof this.opacity?this.opacity:"1",c=this.visible?"":" visibility: hidden;",h=e?"":this.getSvgFilter(),d=t("fill",this.fill),f=t("stroke",this.stroke);return[f,"stroke-width: ",i,"; ","stroke-dasharray: ",r,"; ","stroke-linecap: ",s,"; ","stroke-dashoffset: ",a,"; ","stroke-linejoin: ",o,"; ","stroke-miterlimit: ",l,"; ",d,"fill-rule: ",n,"; ","opacity: ",u,";",h,c].join("")},getSvgSpanStyles:function(e,n){var i="; ",r=e.fontFamily?"font-family: "+(-1===e.fontFamily.indexOf("'")&&-1===e.fontFamily.indexOf('"')?"'"+e.fontFamily+"'":e.fontFamily)+i:"",a=e.strokeWidth?"stroke-width: "+e.strokeWidth+i:"",s=(r=r,e.fontSize?"font-size: "+e.fontSize+"px"+i:""),o=e.fontStyle?"font-style: "+e.fontStyle+i:"",l=e.fontWeight?"font-weight: "+e.fontWeight+i:"",u=e.fill?t("fill",e.fill):"",c=e.stroke?t("stroke",e.stroke):"",h=this.getSvgTextDecoration(e),d=e.deltaY?"baseline-shift: "+-e.deltaY+"; ":"";return h&&(h="text-decoration: "+h+i),[c,a,r,s,o,l,h,u,d,n?"white-space: pre; ":""].join("")},getSvgTextDecoration:function(t){return["overline","underline","line-through"].filter((function(e){return t[e.replace("-","")]})).join(" ")},getSvgFilter:function(){return this.shadow?"filter: url(#SVGID_"+this.shadow.id+");":""},getSvgCommons:function(){return[this.id?'id="'+this.id+'" ':"",this.clipPath?'clip-path="url(#'+this.clipPath.clipPathId+')" ':""].join("")},getSvgTransform:function(t,e){var n=t?this.calcTransformMatrix():this.calcOwnMatrix(),r='transform="'+i.util.matrixToSVG(n);return r+(e||"")+'" '},_setSVGBg:function(t){if(this.backgroundColor){var n=i.Object.NUM_FRACTION_DIGITS;t.push("\t\t<rect ",this._getFillAttributes(this.backgroundColor),' x="',e(-this.width/2,n),'" y="',e(-this.height/2,n),'" width="',e(this.width,n),'" height="',e(this.height,n),'"></rect>\n')}},toSVG:function(t){return this._createBaseSVGMarkup(this._toSVG(t),{reviver:t})},toClipPathSVG:function(t){return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(t),{reviver:t})},_createBaseClipPathSVGMarkup:function(t,e){e=e||{};var n=e.reviver,i=e.additionalTransform||"",r=[this.getSvgTransform(!0,i),this.getSvgCommons()].join(""),a=t.indexOf("COMMON_PARTS");return t[a]=r,n?n(t.join("")):t.join("")},_createBaseSVGMarkup:function(t,e){e=e||{};var n,r,a=e.noStyle,s=e.reviver,o=a?"":'style="'+this.getSvgStyles()+'" ',l=e.withShadow?'style="'+this.getSvgFilter()+'" ':"",u=this.clipPath,c=this.strokeUniform?'vector-effect="non-scaling-stroke" ':"",h=u&&u.absolutePositioned,d=this.stroke,f=this.fill,m=this.shadow,p=[],_=t.indexOf("COMMON_PARTS"),g=e.additionalTransform;return u&&(u.clipPathId="CLIPPATH_"+i.Object.__uid++,r='<clipPath id="'+u.clipPathId+'" >\n'+u.toClipPathSVG(s)+"</clipPath>\n"),h&&p.push("<g ",l,this.getSvgCommons()," >\n"),p.push("<g ",this.getSvgTransform(!1),h?"":l+this.getSvgCommons()," >\n"),n=[o,c,a?"":this.addPaintOrder()," ",g?'transform="'+g+'" ':""].join(""),t[_]=n,f&&f.toLive&&p.push(f.toSVG(this)),d&&d.toLive&&p.push(d.toSVG(this)),m&&p.push(m.toSVG(this)),u&&p.push(r),p.push(t.join("")),p.push("</g>\n"),h&&p.push("</g>\n"),s?s(p.join("")):p.join("")},addPaintOrder:function(){return"fill"!==this.paintFirst?' paint-order="'+this.paintFirst+'" ':""}})}(),function(){var t=i.util.object.extend,e="stateProperties";function n(e,n,i){var r={},a=!0;i.forEach((function(t){r[t]=e[t]})),t(e[n],r,a)}function r(t,e,n){if(t===e)return!0;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(var i=0,a=t.length;i<a;i++)if(!r(t[i],e[i]))return!1;return!0}if(t&&"object"===typeof t){var s,o=Object.keys(t);if(!e||"object"!==typeof e||!n&&o.length!==Object.keys(e).length)return!1;for(i=0,a=o.length;i<a;i++)if(s=o[i],"canvas"!==s&&"group"!==s&&!r(t[s],e[s]))return!1;return!0}}i.util.object.extend(i.Object.prototype,{hasStateChanged:function(t){t=t||e;var n="_"+t;return Object.keys(this[n]).length<this[t].length||!r(this[n],this,!0)},saveState:function(t){var i=t&&t.propertySet||e,r="_"+i;return this[r]?(n(this,r,this[i]),t&&t.stateProperties&&n(this,r,t.stateProperties),this):this.setupState(t)},setupState:function(t){t=t||{};var n=t.propertySet||e;return t.propertySet=n,this["_"+n]={},this.saveState(t),this}})}(),function(){var t=i.util.degreesToRadians;i.util.object.extend(i.Object.prototype,{_findTargetCorner:function(t,e){if(!this.hasControls||this.group||!this.canvas||this.canvas._activeObject!==this)return!1;var n,i,r,a=t.x,s=t.y,o=Object.keys(this.oCoords),l=o.length-1;for(this.__corner=0;l>=0;l--)if(r=o[l],this.isControlVisible(r)&&(i=this._getImageLines(e?this.oCoords[r].touchCorner:this.oCoords[r].corner),n=this._findCrossPoints({x:a,y:s},i),0!==n&&n%2===1))return this.__corner=r,r;return!1},forEachControl:function(t){for(var e in this.controls)t(this.controls[e],e,this)},_setCornerCoords:function(){var t=this.oCoords;for(var e in t){var n=this.controls[e];t[e].corner=n.calcCornerCoords(this.angle,this.cornerSize,t[e].x,t[e].y,!1),t[e].touchCorner=n.calcCornerCoords(this.angle,this.touchCornerSize,t[e].x,t[e].y,!0)}},drawSelectionBackground:function(e){if(!this.selectionBackgroundColor||this.canvas&&!this.canvas.interactive||this.canvas&&this.canvas._activeObject!==this)return this;e.save();var n=this.getCenterPoint(),i=this._calculateCurrentDimensions(),r=this.canvas.viewportTransform;return e.translate(n.x,n.y),e.scale(1/r[0],1/r[3]),e.rotate(t(this.angle)),e.fillStyle=this.selectionBackgroundColor,e.fillRect(-i.x/2,-i.y/2,i.x,i.y),e.restore(),this},drawBorders:function(t,e){e=e||{};var n=this._calculateCurrentDimensions(),i=this.borderScaleFactor,r=n.x+i,a=n.y+i,s="undefined"!==typeof e.hasControls?e.hasControls:this.hasControls,o=!1;return t.save(),t.strokeStyle=e.borderColor||this.borderColor,this._setLineDash(t,e.borderDashArray||this.borderDashArray,null),t.strokeRect(-r/2,-a/2,r,a),s&&(t.beginPath(),this.forEachControl((function(e,n,i){e.withConnection&&e.getVisibility(i,n)&&(o=!0,t.moveTo(e.x*r,e.y*a),t.lineTo(e.x*r+e.offsetX,e.y*a+e.offsetY))})),o&&t.stroke()),t.restore(),this},drawBordersInGroup:function(t,e,n){n=n||{};var r=i.util.sizeAfterTransform(this.width,this.height,e),a=this.strokeWidth,s=this.strokeUniform,o=this.borderScaleFactor,l=r.x+a*(s?this.canvas.getZoom():e.scaleX)+o,u=r.y+a*(s?this.canvas.getZoom():e.scaleY)+o;return t.save(),this._setLineDash(t,n.borderDashArray||this.borderDashArray,null),t.strokeStyle=n.borderColor||this.borderColor,t.strokeRect(-l/2,-u/2,l,u),t.restore(),this},drawControls:function(t,e){return e=e||{},t.save(),t.setTransform(this.canvas.getRetinaScaling(),0,0,this.canvas.getRetinaScaling(),0,0),t.strokeStyle=t.fillStyle=e.cornerColor||this.cornerColor,this.transparentCorners||(t.strokeStyle=e.cornerStrokeColor||this.cornerStrokeColor),this._setLineDash(t,e.cornerDashArray||this.cornerDashArray,null),this.setCoords(),this.forEachControl((function(n,i,r){n.getVisibility(r,i)&&n.render(t,r.oCoords[i].x,r.oCoords[i].y,e,r)})),t.restore(),this},isControlVisible:function(t){return this.controls[t]&&this.controls[t].getVisibility(this,t)},setControlVisible:function(t,e){return this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[t]=e,this},setControlsVisibility:function(t){for(var e in t||(t={}),t)this.setControlVisible(e,t[e]);return this},onDeselect:function(){},onSelect:function(){}})}(),i.util.object.extend(i.StaticCanvas.prototype,{FX_DURATION:500,fxCenterObjectH:function(t,e){e=e||{};var n=function(){},r=e.onComplete||n,a=e.onChange||n,s=this;return i.util.animate({startValue:t.left,endValue:this.getCenter().left,duration:this.FX_DURATION,onChange:function(e){t.set("left",e),s.requestRenderAll(),a()},onComplete:function(){t.setCoords(),r()}}),this},fxCenterObjectV:function(t,e){e=e||{};var n=function(){},r=e.onComplete||n,a=e.onChange||n,s=this;return i.util.animate({startValue:t.top,endValue:this.getCenter().top,duration:this.FX_DURATION,onChange:function(e){t.set("top",e),s.requestRenderAll(),a()},onComplete:function(){t.setCoords(),r()}}),this},fxRemove:function(t,e){e=e||{};var n=function(){},r=e.onComplete||n,a=e.onChange||n,s=this;return i.util.animate({startValue:t.opacity,endValue:0,duration:this.FX_DURATION,onChange:function(e){t.set("opacity",e),s.requestRenderAll(),a()},onComplete:function(){s.remove(t),r()}}),this}}),i.util.object.extend(i.Object.prototype,{animate:function(){if(arguments[0]&&"object"===typeof arguments[0]){var t,e,n=[];for(t in arguments[0])n.push(t);for(var i=0,r=n.length;i<r;i++)t=n[i],e=i!==r-1,this._animate(t,arguments[0][t],arguments[1],e)}else this._animate.apply(this,arguments);return this},_animate:function(t,e,n,r){var a,s=this;e=e.toString(),n=n?i.util.object.clone(n):{},~t.indexOf(".")&&(a=t.split("."));var o=s.colorProperties.indexOf(t)>-1||a&&s.colorProperties.indexOf(a[1])>-1,l=a?this.get(a[0])[a[1]]:this.get(t);"from"in n||(n.from=l),o||(e=~e.indexOf("=")?l+parseFloat(e.replace("=","")):parseFloat(e));var u={startValue:n.from,endValue:e,byValue:n.by,easing:n.easing,duration:n.duration,abort:n.abort&&function(){return n.abort.call(s)},onChange:function(e,i,o){a?s[a[0]][a[1]]=e:s.set(t,e),r||n.onChange&&n.onChange(e,i,o)},onComplete:function(t,e,i){r||(s.setCoords(),n.onComplete&&n.onComplete(t,e,i))}};o?i.util.animateColor(u.startValue,u.endValue,u.duration,u):i.util.animate(u)}}),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=e.util.object.extend,i=e.util.object.clone,r={x1:1,x2:1,y1:1,y2:1},a=e.StaticCanvas.supports("setLineDash");function s(t,e){var n=t.origin,i=t.axis1,r=t.axis2,a=t.dimension,s=e.nearest,o=e.center,l=e.farthest;return function(){switch(this.get(n)){case s:return Math.min(this.get(i),this.get(r));case o:return Math.min(this.get(i),this.get(r))+.5*this.get(a);case l:return Math.max(this.get(i),this.get(r))}}}e.Line?e.warn("fabric.Line is already defined"):(e.Line=e.util.createClass(e.Object,{type:"line",x1:0,y1:0,x2:0,y2:0,cacheProperties:e.Object.prototype.cacheProperties.concat("x1","x2","y1","y2"),initialize:function(t,e){t||(t=[0,0,0,0]),this.callSuper("initialize",e),this.set("x1",t[0]),this.set("y1",t[1]),this.set("x2",t[2]),this.set("y2",t[3]),this._setWidthHeight(e)},_setWidthHeight:function(t){t||(t={}),this.width=Math.abs(this.x2-this.x1),this.height=Math.abs(this.y2-this.y1),this.left="left"in t?t.left:this._getLeftToOriginX(),this.top="top"in t?t.top:this._getTopToOriginY()},_set:function(t,e){return this.callSuper("_set",t,e),"undefined"!==typeof r[t]&&this._setWidthHeight(),this},_getLeftToOriginX:s({origin:"originX",axis1:"x1",axis2:"x2",dimension:"width"},{nearest:"left",center:"center",farthest:"right"}),_getTopToOriginY:s({origin:"originY",axis1:"y1",axis2:"y2",dimension:"height"},{nearest:"top",center:"center",farthest:"bottom"}),_render:function(t){if(t.beginPath(),!this.strokeDashArray||this.strokeDashArray&&a){var e=this.calcLinePoints();t.moveTo(e.x1,e.y1),t.lineTo(e.x2,e.y2)}t.lineWidth=this.strokeWidth;var n=t.strokeStyle;t.strokeStyle=this.stroke||t.fillStyle,this.stroke&&this._renderStroke(t),t.strokeStyle=n},_renderDashedStroke:function(t){var n=this.calcLinePoints();t.beginPath(),e.util.drawDashedLine(t,n.x1,n.y1,n.x2,n.y2,this.strokeDashArray),t.closePath()},_findCenterFromElement:function(){return{x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2}},toObject:function(t){return n(this.callSuper("toObject",t),this.calcLinePoints())},_getNonTransformedDimensions:function(){var t=this.callSuper("_getNonTransformedDimensions");return"butt"===this.strokeLineCap&&(0===this.width&&(t.y-=this.strokeWidth),0===this.height&&(t.x-=this.strokeWidth)),t},calcLinePoints:function(){var t=this.x1<=this.x2?-1:1,e=this.y1<=this.y2?-1:1,n=t*this.width*.5,i=e*this.height*.5,r=t*this.width*-.5,a=e*this.height*-.5;return{x1:n,x2:r,y1:i,y2:a}},_toSVG:function(){var t=this.calcLinePoints();return["<line ","COMMON_PARTS",'x1="',t.x1,'" y1="',t.y1,'" x2="',t.x2,'" y2="',t.y2,'" />\n']}}),e.Line.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat("x1 y1 x2 y2".split(" ")),e.Line.fromElement=function(t,i,r){r=r||{};var a=e.parseAttributes(t,e.Line.ATTRIBUTE_NAMES),s=[a.x1||0,a.y1||0,a.x2||0,a.y2||0];i(new e.Line(s,n(a,r)))},e.Line.fromObject=function(t,n){function r(t){delete t.points,n&&n(t)}var a=i(t,!0);a.points=[t.x1,t.y1,t.x2,t.y2],e.Object._fromObject("Line",a,r,"points")})}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=Math.PI;function i(t){return"radius"in t&&t.radius>=0}e.Circle?e.warn("fabric.Circle is already defined."):(e.Circle=e.util.createClass(e.Object,{type:"circle",radius:0,startAngle:0,endAngle:2*n,cacheProperties:e.Object.prototype.cacheProperties.concat("radius","startAngle","endAngle"),_set:function(t,e){return this.callSuper("_set",t,e),"radius"===t&&this.setRadius(e),this},toObject:function(t){return this.callSuper("toObject",["radius","startAngle","endAngle"].concat(t))},_toSVG:function(){var t,i=0,r=0,a=(this.endAngle-this.startAngle)%(2*n);if(0===a)t=["<circle ","COMMON_PARTS",'cx="'+i+'" cy="'+r+'" ','r="',this.radius,'" />\n'];else{var s=e.util.cos(this.startAngle)*this.radius,o=e.util.sin(this.startAngle)*this.radius,l=e.util.cos(this.endAngle)*this.radius,u=e.util.sin(this.endAngle)*this.radius,c=a>n?"1":"0";t=['<path d="M '+s+" "+o," A "+this.radius+" "+this.radius," 0 ",+c+" 1"," "+l+" "+u,'" ',"COMMON_PARTS"," />\n"]}return t},_render:function(t){t.beginPath(),t.arc(0,0,this.radius,this.startAngle,this.endAngle,!1),this._renderPaintInOrder(t)},getRadiusX:function(){return this.get("radius")*this.get("scaleX")},getRadiusY:function(){return this.get("radius")*this.get("scaleY")},setRadius:function(t){return this.radius=t,this.set("width",2*t).set("height",2*t)}}),e.Circle.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat("cx cy r".split(" ")),e.Circle.fromElement=function(t,n){var r=e.parseAttributes(t,e.Circle.ATTRIBUTE_NAMES);if(!i(r))throw new Error("value of `r` attribute is required and can not be negative");r.left=(r.left||0)-r.radius,r.top=(r.top||0)-r.radius,n(new e.Circle(r))},e.Circle.fromObject=function(t,n){return e.Object._fromObject("Circle",t,n)})}(e),function(t){"use strict";var e=t.fabric||(t.fabric={});e.Triangle?e.warn("fabric.Triangle is already defined"):(e.Triangle=e.util.createClass(e.Object,{type:"triangle",width:100,height:100,_render:function(t){var e=this.width/2,n=this.height/2;t.beginPath(),t.moveTo(-e,n),t.lineTo(0,-n),t.lineTo(e,n),t.closePath(),this._renderPaintInOrder(t)},_renderDashedStroke:function(t){var n=this.width/2,i=this.height/2;t.beginPath(),e.util.drawDashedLine(t,-n,i,0,-i,this.strokeDashArray),e.util.drawDashedLine(t,0,-i,n,i,this.strokeDashArray),e.util.drawDashedLine(t,n,i,-n,i,this.strokeDashArray),t.closePath()},_toSVG:function(){var t=this.width/2,e=this.height/2,n=[-t+" "+e,"0 "+-e,t+" "+e].join(",");return["<polygon ","COMMON_PARTS",'points="',n,'" />']}}),e.Triangle.fromObject=function(t,n){return e.Object._fromObject("Triangle",t,n)})}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=2*Math.PI;e.Ellipse?e.warn("fabric.Ellipse is already defined."):(e.Ellipse=e.util.createClass(e.Object,{type:"ellipse",rx:0,ry:0,cacheProperties:e.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(t){this.callSuper("initialize",t),this.set("rx",t&&t.rx||0),this.set("ry",t&&t.ry||0)},_set:function(t,e){switch(this.callSuper("_set",t,e),t){case"rx":this.rx=e,this.set("width",2*e);break;case"ry":this.ry=e,this.set("height",2*e);break}return this},getRx:function(){return this.get("rx")*this.get("scaleX")},getRy:function(){return this.get("ry")*this.get("scaleY")},toObject:function(t){return this.callSuper("toObject",["rx","ry"].concat(t))},_toSVG:function(){return["<ellipse ","COMMON_PARTS",'cx="0" cy="0" ','rx="',this.rx,'" ry="',this.ry,'" />\n']},_render:function(t){t.beginPath(),t.save(),t.transform(1,0,0,this.ry/this.rx,0,0),t.arc(0,0,this.rx,0,n,!1),t.restore(),this._renderPaintInOrder(t)}}),e.Ellipse.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat("cx cy rx ry".split(" ")),e.Ellipse.fromElement=function(t,n){var i=e.parseAttributes(t,e.Ellipse.ATTRIBUTE_NAMES);i.left=(i.left||0)-i.rx,i.top=(i.top||0)-i.ry,n(new e.Ellipse(i))},e.Ellipse.fromObject=function(t,n){return e.Object._fromObject("Ellipse",t,n)})}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=e.util.object.extend;e.Rect?e.warn("fabric.Rect is already defined"):(e.Rect=e.util.createClass(e.Object,{stateProperties:e.Object.prototype.stateProperties.concat("rx","ry"),type:"rect",rx:0,ry:0,cacheProperties:e.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(t){this.callSuper("initialize",t),this._initRxRy()},_initRxRy:function(){this.rx&&!this.ry?this.ry=this.rx:this.ry&&!this.rx&&(this.rx=this.ry)},_render:function(t){var e=this.rx?Math.min(this.rx,this.width/2):0,n=this.ry?Math.min(this.ry,this.height/2):0,i=this.width,r=this.height,a=-this.width/2,s=-this.height/2,o=0!==e||0!==n,l=.4477152502;t.beginPath(),t.moveTo(a+e,s),t.lineTo(a+i-e,s),o&&t.bezierCurveTo(a+i-l*e,s,a+i,s+l*n,a+i,s+n),t.lineTo(a+i,s+r-n),o&&t.bezierCurveTo(a+i,s+r-l*n,a+i-l*e,s+r,a+i-e,s+r),t.lineTo(a+e,s+r),o&&t.bezierCurveTo(a+l*e,s+r,a,s+r-l*n,a,s+r-n),t.lineTo(a,s+n),o&&t.bezierCurveTo(a,s+l*n,a+l*e,s,a+e,s),t.closePath(),this._renderPaintInOrder(t)},_renderDashedStroke:function(t){var n=-this.width/2,i=-this.height/2,r=this.width,a=this.height;t.beginPath(),e.util.drawDashedLine(t,n,i,n+r,i,this.strokeDashArray),e.util.drawDashedLine(t,n+r,i,n+r,i+a,this.strokeDashArray),e.util.drawDashedLine(t,n+r,i+a,n,i+a,this.strokeDashArray),e.util.drawDashedLine(t,n,i+a,n,i,this.strokeDashArray),t.closePath()},toObject:function(t){return this.callSuper("toObject",["rx","ry"].concat(t))},_toSVG:function(){var t=-this.width/2,e=-this.height/2;return["<rect ","COMMON_PARTS",'x="',t,'" y="',e,'" rx="',this.rx,'" ry="',this.ry,'" width="',this.width,'" height="',this.height,'" />\n']}}),e.Rect.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat("x y rx ry width height".split(" ")),e.Rect.fromElement=function(t,i,r){if(!t)return i(null);r=r||{};var a=e.parseAttributes(t,e.Rect.ATTRIBUTE_NAMES);a.left=a.left||0,a.top=a.top||0,a.height=a.height||0,a.width=a.width||0;var s=new e.Rect(n(r?e.util.object.clone(r):{},a));s.visible=s.visible&&s.width>0&&s.height>0,i(s)},e.Rect.fromObject=function(t,n){return e.Object._fromObject("Rect",t,n)})}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=e.util.object.extend,i=e.util.array.min,r=e.util.array.max,a=e.util.toFixed;e.Polyline?e.warn("fabric.Polyline is already defined"):(e.Polyline=e.util.createClass(e.Object,{type:"polyline",points:null,cacheProperties:e.Object.prototype.cacheProperties.concat("points"),initialize:function(t,e){e=e||{},this.points=t||[],this.callSuper("initialize",e),this._setPositionDimensions(e)},_setPositionDimensions:function(t){var e,n=this._calcDimensions(t);this.width=n.width,this.height=n.height,t.fromSVG||(e=this.translateToGivenOrigin({x:n.left-this.strokeWidth/2,y:n.top-this.strokeWidth/2},"left","top",this.originX,this.originY)),"undefined"===typeof t.left&&(this.left=t.fromSVG?n.left:e.x),"undefined"===typeof t.top&&(this.top=t.fromSVG?n.top:e.y),this.pathOffset={x:n.left+this.width/2,y:n.top+this.height/2}},_calcDimensions:function(){var t=this.points,e=i(t,"x")||0,n=i(t,"y")||0,a=r(t,"x")||0,s=r(t,"y")||0,o=a-e,l=s-n;return{left:e,top:n,width:o,height:l}},toObject:function(t){return n(this.callSuper("toObject",t),{points:this.points.concat()})},_toSVG:function(){for(var t=[],n=this.pathOffset.x,i=this.pathOffset.y,r=e.Object.NUM_FRACTION_DIGITS,s=0,o=this.points.length;s<o;s++)t.push(a(this.points[s].x-n,r),",",a(this.points[s].y-i,r)," ");return["<"+this.type+" ","COMMON_PARTS",'points="',t.join(""),'" />\n']},commonRender:function(t){var e,n=this.points.length,i=this.pathOffset.x,r=this.pathOffset.y;if(!n||isNaN(this.points[n-1].y))return!1;t.beginPath(),t.moveTo(this.points[0].x-i,this.points[0].y-r);for(var a=0;a<n;a++)e=this.points[a],t.lineTo(e.x-i,e.y-r);return!0},_render:function(t){this.commonRender(t)&&this._renderPaintInOrder(t)},_renderDashedStroke:function(t){var n,i;t.beginPath();for(var r=0,a=this.points.length;r<a;r++)n=this.points[r],i=this.points[r+1]||n,e.util.drawDashedLine(t,n.x,n.y,i.x,i.y,this.strokeDashArray)},complexity:function(){return this.get("points").length}}),e.Polyline.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(),e.Polyline.fromElementGenerator=function(t){return function(i,r,a){if(!i)return r(null);a||(a={});var s=e.parsePointsAttribute(i.getAttribute("points")),o=e.parseAttributes(i,e[t].ATTRIBUTE_NAMES);o.fromSVG=!0,r(new e[t](s,n(o,a)))}},e.Polyline.fromElement=e.Polyline.fromElementGenerator("Polyline"),e.Polyline.fromObject=function(t,n){return e.Object._fromObject("Polyline",t,n,"points")})}(e),function(t){"use strict";var e=t.fabric||(t.fabric={});e.Polygon?e.warn("fabric.Polygon is already defined"):(e.Polygon=e.util.createClass(e.Polyline,{type:"polygon",_render:function(t){this.commonRender(t)&&(t.closePath(),this._renderPaintInOrder(t))},_renderDashedStroke:function(t){this.callSuper("_renderDashedStroke",t),t.closePath()}}),e.Polygon.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(),e.Polygon.fromElement=e.Polyline.fromElementGenerator("Polygon"),e.Polygon.fromObject=function(t,n){return e.Object._fromObject("Polygon",t,n,"points")})}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=e.util.array.min,i=e.util.array.max,r=e.util.object.extend,a=Object.prototype.toString,s=e.util.toFixed;e.Path?e.warn("fabric.Path is already defined"):(e.Path=e.util.createClass(e.Object,{type:"path",path:null,cacheProperties:e.Object.prototype.cacheProperties.concat("path","fillRule"),stateProperties:e.Object.prototype.stateProperties.concat("path"),initialize:function(t,n){n=n||{},this.callSuper("initialize",n),t||(t=[]);var i="[object Array]"===a.call(t);this.path=i?e.util.makePathSimpler(t):e.util.makePathSimpler(e.util.parsePath(t)),this.path&&e.Polyline.prototype._setPositionDimensions.call(this,n)},_renderPathCommands:function(t){var e,n=0,i=0,r=0,a=0,s=0,o=0,l=-this.pathOffset.x,u=-this.pathOffset.y;t.beginPath();for(var c=0,h=this.path.length;c<h;++c)switch(e=this.path[c],e[0]){case"L":r=e[1],a=e[2],t.lineTo(r+l,a+u);break;case"M":r=e[1],a=e[2],n=r,i=a,t.moveTo(r+l,a+u);break;case"C":r=e[5],a=e[6],s=e[3],o=e[4],t.bezierCurveTo(e[1]+l,e[2]+u,s+l,o+u,r+l,a+u);break;case"Q":t.quadraticCurveTo(e[1]+l,e[2]+u,e[3]+l,e[4]+u),r=e[3],a=e[4],s=e[1],o=e[2];break;case"z":case"Z":r=n,a=i,t.closePath();break}},_render:function(t){this._renderPathCommands(t),this._renderPaintInOrder(t)},toString:function(){return"#<fabric.Path ("+this.complexity()+'): { "top": '+this.top+', "left": '+this.left+" }>"},toObject:function(t){return r(this.callSuper("toObject",t),{path:this.path.map((function(t){return t.slice()}))})},toDatalessObject:function(t){var e=this.toObject(["sourcePath"].concat(t));return e.sourcePath&&delete e.path,e},_toSVG:function(){var t=this.path.map((function(t){return t.join(" ")})).join(" ");return["<path ","COMMON_PARTS",'d="',t,'" stroke-linecap="round" ',"/>\n"]},_getOffsetTransform:function(){var t=e.Object.NUM_FRACTION_DIGITS;return" translate("+s(-this.pathOffset.x,t)+", "+s(-this.pathOffset.y,t)+")"},toClipPathSVG:function(t){var e=this._getOffsetTransform();return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:t,additionalTransform:e})},toSVG:function(t){var e=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:t,additionalTransform:e})},complexity:function(){return this.path.length},_calcDimensions:function(){for(var t,r,a=[],s=[],o=0,l=0,u=0,c=0,h=0,d=this.path.length;h<d;++h){switch(t=this.path[h],t[0]){case"L":u=t[1],c=t[2],r=[];break;case"M":u=t[1],c=t[2],o=u,l=c,r=[];break;case"C":r=e.util.getBoundsOfCurve(u,c,t[1],t[2],t[3],t[4],t[5],t[6]),u=t[5],c=t[6];break;case"Q":r=e.util.getBoundsOfCurve(u,c,t[1],t[2],t[1],t[2],t[3],t[4]),u=t[3],c=t[4];break;case"z":case"Z":u=o,c=l;break}r.forEach((function(t){a.push(t.x),s.push(t.y)})),a.push(u),s.push(c)}var f=n(a)||0,m=n(s)||0,p=i(a)||0,_=i(s)||0,g=p-f,v=_-m;return{left:f,top:m,width:g,height:v}}}),e.Path.fromObject=function(t,n){if("string"===typeof t.sourcePath){var i=t.sourcePath;e.loadSVGFromURL(i,(function(e){var i=e[0];i.setOptions(t),n&&n(i)}))}else e.Object._fromObject("Path",t,n,"path")},e.Path.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(["d"]),e.Path.fromElement=function(t,n,i){var a=e.parseAttributes(t,e.Path.ATTRIBUTE_NAMES);a.fromSVG=!0,n(new e.Path(a.d,r(a,i)))})}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=e.util.array.min,i=e.util.array.max;e.Group||(e.Group=e.util.createClass(e.Object,e.Collection,{type:"group",strokeWidth:0,subTargetCheck:!1,cacheProperties:[],useSetOnGroup:!1,initialize:function(t,e,n){e=e||{},this._objects=[],n&&this.callSuper("initialize",e),this._objects=t||[];for(var i=this._objects.length;i--;)this._objects[i].group=this;if(n)this._updateObjectsACoords();else{var r=e&&e.centerPoint;void 0!==e.originX&&(this.originX=e.originX),void 0!==e.originY&&(this.originY=e.originY),r||this._calcBounds(),this._updateObjectsCoords(r),delete e.centerPoint,this.callSuper("initialize",e)}this.setCoords()},_updateObjectsACoords:function(){for(var t=!0,e=this._objects.length;e--;)this._objects[e].setCoords(t)},_updateObjectsCoords:function(t){t=t||this.getCenterPoint();for(var e=this._objects.length;e--;)this._updateObjectCoords(this._objects[e],t)},_updateObjectCoords:function(t,e){var n=t.left,i=t.top,r=!0;t.set({left:n-e.x,top:i-e.y}),t.group=this,t.setCoords(r)},toString:function(){return"#<fabric.Group: ("+this.complexity()+")>"},addWithUpdate:function(t){return this._restoreObjectsState(),e.util.resetObjectTransform(this),t&&(this._objects.push(t),t.group=this,t._set("canvas",this.canvas)),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},removeWithUpdate:function(t){return this._restoreObjectsState(),e.util.resetObjectTransform(this),this.remove(t),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},_onObjectAdded:function(t){this.dirty=!0,t.group=this,t._set("canvas",this.canvas)},_onObjectRemoved:function(t){this.dirty=!0,delete t.group},_set:function(t,n){var i=this._objects.length;if(this.useSetOnGroup)while(i--)this._objects[i].setOnGroup(t,n);if("canvas"===t)while(i--)this._objects[i]._set(t,n);e.Object.prototype._set.call(this,t,n)},toObject:function(t){var n=this.includeDefaultValues,i=this._objects.map((function(e){var i=e.includeDefaultValues;e.includeDefaultValues=n;var r=e.toObject(t);return e.includeDefaultValues=i,r})),r=e.Object.prototype.toObject.call(this,t);return r.objects=i,r},toDatalessObject:function(t){var n,i=this.sourcePath;if(i)n=i;else{var r=this.includeDefaultValues;n=this._objects.map((function(e){var n=e.includeDefaultValues;e.includeDefaultValues=r;var i=e.toDatalessObject(t);return e.includeDefaultValues=n,i}))}var a=e.Object.prototype.toDatalessObject.call(this,t);return a.objects=n,a},render:function(t){this._transformDone=!0,this.callSuper("render",t),this._transformDone=!1},shouldCache:function(){var t=e.Object.prototype.shouldCache.call(this);if(t)for(var n=0,i=this._objects.length;n<i;n++)if(this._objects[n].willDrawShadow())return this.ownCaching=!1,!1;return t},willDrawShadow:function(){if(e.Object.prototype.willDrawShadow.call(this))return!0;for(var t=0,n=this._objects.length;t<n;t++)if(this._objects[t].willDrawShadow())return!0;return!1},isOnACache:function(){return this.ownCaching||this.group&&this.group.isOnACache()},drawObject:function(t){for(var e=0,n=this._objects.length;e<n;e++)this._objects[e].render(t);this._drawClipPath(t)},isCacheDirty:function(t){if(this.callSuper("isCacheDirty",t))return!0;if(!this.statefullCache)return!1;for(var e=0,n=this._objects.length;e<n;e++)if(this._objects[e].isCacheDirty(!0)){if(this._cacheCanvas){var i=this.cacheWidth/this.zoomX,r=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-i/2,-r/2,i,r)}return!0}return!1},_restoreObjectsState:function(){return this._objects.forEach(this._restoreObjectState,this),this},realizeTransform:function(t){var n=t.calcTransformMatrix(),i=e.util.qrDecompose(n),r=new e.Point(i.translateX,i.translateY);return t.flipX=!1,t.flipY=!1,t.set("scaleX",i.scaleX),t.set("scaleY",i.scaleY),t.skewX=i.skewX,t.skewY=i.skewY,t.angle=i.angle,t.setPositionByOrigin(r,"center","center"),t},_restoreObjectState:function(t){return this.realizeTransform(t),delete t.group,t.setCoords(),this},destroy:function(){return this._objects.forEach((function(t){t.set("dirty",!0)})),this._restoreObjectsState()},toActiveSelection:function(){if(this.canvas){var t=this._objects,n=this.canvas;this._objects=[];var i=this.toObject();delete i.objects;var r=new e.ActiveSelection([]);return r.set(i),r.type="activeSelection",n.remove(this),t.forEach((function(t){t.group=r,t.dirty=!0,n.add(t)})),r.canvas=n,r._objects=t,n._activeObject=r,r.setCoords(),r}},ungroupOnCanvas:function(){return this._restoreObjectsState()},setObjectsCoords:function(){var t=!0;return this.forEachObject((function(e){e.setCoords(t)})),this},_calcBounds:function(t){for(var e,n,i,r=[],a=[],s=["tr","br","bl","tl"],o=0,l=this._objects.length,u=s.length;o<l;++o)for(e=this._objects[o],e.aCoords=e.calcACoords(),i=0;i<u;i++)n=s[i],r.push(e.aCoords[n].x),a.push(e.aCoords[n].y);this._getBounds(r,a,t)},_getBounds:function(t,r,a){var s=new e.Point(n(t),n(r)),o=new e.Point(i(t),i(r)),l=s.y||0,u=s.x||0,c=o.x-s.x||0,h=o.y-s.y||0;this.width=c,this.height=h,a||this.setPositionByOrigin({x:u,y:l},"left","top")},_toSVG:function(t){for(var e=["<g ","COMMON_PARTS"," >\n"],n=0,i=this._objects.length;n<i;n++)e.push("\t\t",this._objects[n].toSVG(t));return e.push("</g>\n"),e},getSvgStyles:function(){var t="undefined"!==typeof this.opacity&&1!==this.opacity?"opacity: "+this.opacity+";":"",e=this.visible?"":" visibility: hidden;";return[t,this.getSvgFilter(),e].join("")},toClipPathSVG:function(t){for(var e=[],n=0,i=this._objects.length;n<i;n++)e.push("\t",this._objects[n].toClipPathSVG(t));return this._createBaseClipPathSVGMarkup(e,{reviver:t})}}),e.Group.fromObject=function(t,n){var i=t.objects,r=e.util.object.clone(t,!0);delete r.objects,"string"!==typeof i?e.util.enlivenObjects(i,(function(i){e.util.enlivenObjects([t.clipPath],(function(r){var a=e.util.object.clone(t,!0);a.clipPath=r[0],delete a.objects,n&&n(new e.Group(i,a,!0))}))})):e.loadSVGFromURL(i,(function(a){var s=e.util.groupSVGElements(a,t,i);s.set(r),n&&n(s)}))})}(e),function(t){"use strict";var e=t.fabric||(t.fabric={});e.ActiveSelection||(e.ActiveSelection=e.util.createClass(e.Group,{type:"activeSelection",initialize:function(t,n){n=n||{},this._objects=t||[];for(var i=this._objects.length;i--;)this._objects[i].group=this;n.originX&&(this.originX=n.originX),n.originY&&(this.originY=n.originY),this._calcBounds(),this._updateObjectsCoords(),e.Object.prototype.initialize.call(this,n),this.setCoords()},toGroup:function(){var t=this._objects.concat();this._objects=[];var n=e.Object.prototype.toObject.call(this),i=new e.Group([]);if(delete n.type,i.set(n),t.forEach((function(t){t.canvas.remove(t),t.group=i})),i._objects=t,!this.canvas)return i;var r=this.canvas;return r.add(i),r._activeObject=i,i.setCoords(),i},onDeselect:function(){return this.destroy(),!1},toString:function(){return"#<fabric.ActiveSelection: ("+this.complexity()+")>"},shouldCache:function(){return!1},isOnACache:function(){return!1},_renderControls:function(t,e,n){t.save(),t.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,this.callSuper("_renderControls",t,e),n=n||{},"undefined"===typeof n.hasControls&&(n.hasControls=!1),n.forActiveSelection=!0;for(var i=0,r=this._objects.length;i<r;i++)this._objects[i]._renderControls(t,n);t.restore()}}),e.ActiveSelection.fromObject=function(t,n){e.util.enlivenObjects(t.objects,(function(i){delete t.objects,n&&n(new e.ActiveSelection(i,t,!0))}))})}(e),function(t){"use strict";var e=i.util.object.extend;t.fabric||(t.fabric={}),t.fabric.Image?i.warn("fabric.Image is already defined."):(i.Image=i.util.createClass(i.Object,{type:"image",strokeWidth:0,srcFromAttribute:!1,_lastScaleX:1,_lastScaleY:1,_filterScalingX:1,_filterScalingY:1,minimumScaleTrigger:.5,stateProperties:i.Object.prototype.stateProperties.concat("cropX","cropY"),cacheKey:"",cropX:0,cropY:0,imageSmoothing:!0,initialize:function(t,e){e||(e={}),this.filters=[],this.cacheKey="texture"+i.Object.__uid++,this.callSuper("initialize",e),this._initElement(t,e)},getElement:function(){return this._element||{}},setElement:function(t,e){return this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._element=t,this._originalElement=t,this._initConfig(e),0!==this.filters.length&&this.applyFilters(),this.resizeFilter&&this.applyResizeFilters(),this},removeTexture:function(t){var e=i.filterBackend;e&&e.evictCachesForKey&&e.evictCachesForKey(t)},dispose:function(){this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._cacheContext=void 0,["_originalElement","_element","_filteredEl","_cacheCanvas"].forEach(function(t){i.util.cleanUpJsdomNode(this[t]),this[t]=void 0}.bind(this))},getCrossOrigin:function(){return this._originalElement&&(this._originalElement.crossOrigin||null)},getOriginalSize:function(){var t=this.getElement();return{width:t.naturalWidth||t.width,height:t.naturalHeight||t.height}},_stroke:function(t){if(this.stroke&&0!==this.strokeWidth){var e=this.width/2,n=this.height/2;t.beginPath(),t.moveTo(-e,-n),t.lineTo(e,-n),t.lineTo(e,n),t.lineTo(-e,n),t.lineTo(-e,-n),t.closePath()}},_renderDashedStroke:function(t){var e=-this.width/2,n=-this.height/2,r=this.width,a=this.height;t.save(),this._setStrokeStyles(t,this),t.beginPath(),i.util.drawDashedLine(t,e,n,e+r,n,this.strokeDashArray),i.util.drawDashedLine(t,e+r,n,e+r,n+a,this.strokeDashArray),i.util.drawDashedLine(t,e+r,n+a,e,n+a,this.strokeDashArray),i.util.drawDashedLine(t,e,n+a,e,n,this.strokeDashArray),t.closePath(),t.restore()},toObject:function(t){var n=[];this.filters.forEach((function(t){t&&n.push(t.toObject())}));var i=e(this.callSuper("toObject",["cropX","cropY"].concat(t)),{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:n});return this.resizeFilter&&(i.resizeFilter=this.resizeFilter.toObject()),i},hasCrop:function(){return this.cropX||this.cropY||this.width<this._element.width||this.height<this._element.height},_toSVG:function(){var t,e=[],n=[],r=this._element,a=-this.width/2,s=-this.height/2,o="",l="";if(!r)return[];if(this.hasCrop()){var u=i.Object.__uid++;e.push('<clipPath id="imageCrop_'+u+'">\n','\t<rect x="'+a+'" y="'+s+'" width="'+this.width+'" height="'+this.height+'" />\n',"</clipPath>\n"),o=' clip-path="url(#imageCrop_'+u+')" '}if(this.imageSmoothing||(l='" image-rendering="optimizeSpeed'),n.push("\t<image ","COMMON_PARTS",'xlink:href="',this.getSvgSrc(!0),'" x="',a-this.cropX,'" y="',s-this.cropY,'" width="',r.width||r.naturalWidth,'" height="',r.height||r.height,l,'"',o,"></image>\n"),this.stroke||this.strokeDashArray){var c=this.fill;this.fill=null,t=["\t<rect ",'x="',a,'" y="',s,'" width="',this.width,'" height="',this.height,'" style="',this.getSvgStyles(),'"/>\n'],this.fill=c}return e="fill"!==this.paintFirst?e.concat(t,n):e.concat(n,t),e},getSrc:function(t){var e=t?this._element:this._originalElement;return e?e.toDataURL?e.toDataURL():this.srcFromAttribute?e.getAttribute("src"):e.src:this.src||""},setSrc:function(t,e,n){return i.util.loadImage(t,(function(t,i){this.setElement(t,n),this._setWidthHeight(),e&&e(this,i)}),this,n&&n.crossOrigin),this},toString:function(){return'#<fabric.Image: { src: "'+this.getSrc()+'" }>'},applyResizeFilters:function(){var t=this.resizeFilter,e=this.minimumScaleTrigger,n=this.getTotalObjectScaling(),r=n.scaleX,a=n.scaleY,s=this._filteredEl||this._originalElement;if(this.group&&this.set("dirty",!0),!t||r>e&&a>e)return this._element=s,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=r,void(this._lastScaleY=a);i.filterBackend||(i.filterBackend=i.initFilterBackend());var o=i.util.createCanvasElement(),l=this._filteredEl?this.cacheKey+"_filtered":this.cacheKey,u=s.width,c=s.height;o.width=u,o.height=c,this._element=o,this._lastScaleX=t.scaleX=r,this._lastScaleY=t.scaleY=a,i.filterBackend.applyFilters([t],s,u,c,this._element,l),this._filterScalingX=o.width/this._originalElement.width,this._filterScalingY=o.height/this._originalElement.height},applyFilters:function(t){if(t=t||this.filters||[],t=t.filter((function(t){return t&&!t.isNeutralState()})),this.set("dirty",!0),this.removeTexture(this.cacheKey+"_filtered"),0===t.length)return this._element=this._originalElement,this._filteredEl=null,this._filterScalingX=1,this._filterScalingY=1,this;var e=this._originalElement,n=e.naturalWidth||e.width,r=e.naturalHeight||e.height;if(this._element===this._originalElement){var a=i.util.createCanvasElement();a.width=n,a.height=r,this._element=a,this._filteredEl=a}else this._element=this._filteredEl,this._filteredEl.getContext("2d").clearRect(0,0,n,r),this._lastScaleX=1,this._lastScaleY=1;return i.filterBackend||(i.filterBackend=i.initFilterBackend()),i.filterBackend.applyFilters(t,this._originalElement,n,r,this._element,this.cacheKey),this._originalElement.width===this._element.width&&this._originalElement.height===this._element.height||(this._filterScalingX=this._element.width/this._originalElement.width,this._filterScalingY=this._element.height/this._originalElement.height),this},_render:function(t){i.util.setImageSmoothing(t,this.imageSmoothing),!0!==this.isMoving&&this.resizeFilter&&this._needsResize()&&this.applyResizeFilters(),this._stroke(t),this._renderPaintInOrder(t)},drawCacheOnCanvas:function(t){i.util.setImageSmoothing(t,this.imageSmoothing),i.Object.prototype.drawCacheOnCanvas.call(this,t)},shouldCache:function(){return this.needsItsOwnCache()},_renderFill:function(t){var e=this._element;if(e){var n=this._filterScalingX,i=this._filterScalingY,r=this.width,a=this.height,s=Math.min,o=Math.max,l=o(this.cropX,0),u=o(this.cropY,0),c=e.naturalWidth||e.width,h=e.naturalHeight||e.height,d=l*n,f=u*i,m=s(r*n,c-d),p=s(a*i,h-f),_=-r/2,g=-a/2,v=s(r,c/n-l),y=s(a,h/n-u);e&&t.drawImage(e,d,f,m,p,_,g,v,y)}},_needsResize:function(){var t=this.getTotalObjectScaling();return t.scaleX!==this._lastScaleX||t.scaleY!==this._lastScaleY},_resetWidthHeight:function(){this.set(this.getOriginalSize())},_initElement:function(t,e){this.setElement(i.util.getById(t),e),i.util.addClass(this.getElement(),i.Image.CSS_CANVAS)},_initConfig:function(t){t||(t={}),this.setOptions(t),this._setWidthHeight(t)},_initFilters:function(t,e){t&&t.length?i.util.enlivenObjects(t,(function(t){e&&e(t)}),"fabric.Image.filters"):e&&e()},_setWidthHeight:function(t){t||(t={});var e=this.getElement();this.width=t.width||e.naturalWidth||e.width||0,this.height=t.height||e.naturalHeight||e.height||0},parsePreserveAspectRatioAttribute:function(){var t,e=i.util.parsePreserveAspectRatioAttribute(this.preserveAspectRatio||""),n=this._element.width,r=this._element.height,a=1,s=1,o=0,l=0,u=0,c=0,h=this.width,d=this.height,f={width:h,height:d};return!e||"none"===e.alignX&&"none"===e.alignY?(a=h/n,s=d/r):("meet"===e.meetOrSlice&&(a=s=i.util.findScaleToFit(this._element,f),t=(h-n*a)/2,"Min"===e.alignX&&(o=-t),"Max"===e.alignX&&(o=t),t=(d-r*s)/2,"Min"===e.alignY&&(l=-t),"Max"===e.alignY&&(l=t)),"slice"===e.meetOrSlice&&(a=s=i.util.findScaleToCover(this._element,f),t=n-h/a,"Mid"===e.alignX&&(u=t/2),"Max"===e.alignX&&(u=t),t=r-d/s,"Mid"===e.alignY&&(c=t/2),"Max"===e.alignY&&(c=t),n=h/a,r=d/s)),{width:n,height:r,scaleX:a,scaleY:s,offsetLeft:o,offsetTop:l,cropX:u,cropY:c}}}),i.Image.CSS_CANVAS="canvas-img",i.Image.prototype.getSvgSrc=i.Image.prototype.getSrc,i.Image.fromObject=function(t,e){var n=i.util.object.clone(t);i.util.loadImage(n.src,(function(t,r){r?e&&e(null,!0):i.Image.prototype._initFilters.call(n,n.filters,(function(r){n.filters=r||[],i.Image.prototype._initFilters.call(n,[n.resizeFilter],(function(r){n.resizeFilter=r[0],i.util.enlivenObjects([n.clipPath],(function(r){n.clipPath=r[0];var a=new i.Image(t,n);e(a,!1)}))}))}))}),null,n.crossOrigin)},i.Image.fromURL=function(t,e,n){i.util.loadImage(t,(function(t,r){e&&e(new i.Image(t,n),r)}),null,n&&n.crossOrigin)},i.Image.ATTRIBUTE_NAMES=i.SHARED_ATTRIBUTES.concat("x y width height preserveAspectRatio xlink:href crossOrigin image-rendering".split(" ")),i.Image.fromElement=function(t,n,r){var a=i.parseAttributes(t,i.Image.ATTRIBUTE_NAMES);i.Image.fromURL(a["xlink:href"],n,e(r?i.util.object.clone(r):{},a))})}(e),i.util.object.extend(i.Object.prototype,{_getAngleValueForStraighten:function(){var t=this.angle%360;return t>0?90*Math.round((t-1)/90):90*Math.round(t/90)},straighten:function(){return this.rotate(this._getAngleValueForStraighten()),this},fxStraighten:function(t){t=t||{};var e=function(){},n=t.onComplete||e,r=t.onChange||e,a=this;return i.util.animate({startValue:this.get("angle"),endValue:this._getAngleValueForStraighten(),duration:this.FX_DURATION,onChange:function(t){a.rotate(t),r()},onComplete:function(){a.setCoords(),n()}}),this}}),i.util.object.extend(i.StaticCanvas.prototype,{straightenObject:function(t){return t.straighten(),this.requestRenderAll(),this},fxStraightenObject:function(t){return t.fxStraighten({onChange:this.requestRenderAllBound}),this}}),function(){"use strict";function t(t,e){var n="precision "+e+" float;\nvoid main(){}",i=t.createShader(t.FRAGMENT_SHADER);return t.shaderSource(i,n),t.compileShader(i),!!t.getShaderParameter(i,t.COMPILE_STATUS)}function e(t){t&&t.tileSize&&(this.tileSize=t.tileSize),this.setupGLContext(this.tileSize,this.tileSize),this.captureGPUInfo()}i.isWebglSupported=function(e){if(i.isLikelyNode)return!1;e=e||i.WebglFilterBackend.prototype.tileSize;var n=document.createElement("canvas"),r=n.getContext("webgl")||n.getContext("experimental-webgl"),a=!1;if(r){i.maxTextureSize=r.getParameter(r.MAX_TEXTURE_SIZE),a=i.maxTextureSize>=e;for(var s=["highp","mediump","lowp"],o=0;o<3;o++)if(t(r,s[o])){i.webGlPrecision=s[o];break}}return this.isSupported=a,a},i.WebglFilterBackend=e,e.prototype={tileSize:2048,resources:{},setupGLContext:function(t,e){this.dispose(),this.createWebGLCanvas(t,e),this.aPosition=new Float32Array([0,0,0,1,1,0,1,1]),this.chooseFastestCopyGLTo2DMethod(t,e)},chooseFastestCopyGLTo2DMethod:function(t,e){var n,r="undefined"!==typeof window.performance;try{new ImageData(1,1),n=!0}catch(p){n=!1}var a="undefined"!==typeof ArrayBuffer,s="undefined"!==typeof Uint8ClampedArray;if(r&&n&&a&&s){var u=i.util.createCanvasElement(),c=new ArrayBuffer(t*e*4);if(i.forceGLPutImageData)return this.imageBuffer=c,void(this.copyGLTo2D=l);var h,d,f,m={imageBuffer:c,destinationWidth:t,destinationHeight:e,targetCanvas:u};u.width=t,u.height=e,h=window.performance.now(),o.call(m,this.gl,m),d=window.performance.now()-h,h=window.performance.now(),l.call(m,this.gl,m),f=window.performance.now()-h,d>f?(this.imageBuffer=c,this.copyGLTo2D=l):this.copyGLTo2D=o}},createWebGLCanvas:function(t,e){var n=i.util.createCanvasElement();n.width=t,n.height=e;var r={alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1},a=n.getContext("webgl",r);a||(a=n.getContext("experimental-webgl",r)),a&&(a.clearColor(0,0,0,0),this.canvas=n,this.gl=a)},applyFilters:function(t,e,n,i,r,a){var o,l=this.gl;a&&(o=this.getCachedTexture(a,e));var u={originalWidth:e.width||e.originalWidth,originalHeight:e.height||e.originalHeight,sourceWidth:n,sourceHeight:i,destinationWidth:n,destinationHeight:i,context:l,sourceTexture:this.createTexture(l,n,i,!o&&e),targetTexture:this.createTexture(l,n,i),originalTexture:o||this.createTexture(l,n,i,!o&&e),passes:t.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:r},c=l.createFramebuffer();return l.bindFramebuffer(l.FRAMEBUFFER,c),t.forEach((function(t){t&&t.applyTo(u)})),s(u),this.copyGLTo2D(l,u),l.bindTexture(l.TEXTURE_2D,null),l.deleteTexture(u.sourceTexture),l.deleteTexture(u.targetTexture),l.deleteFramebuffer(c),r.getContext("2d").setTransform(1,0,0,1,0,0),u},dispose:function(){this.canvas&&(this.canvas=null,this.gl=null),this.clearWebGLCaches()},clearWebGLCaches:function(){this.programCache={},this.textureCache={}},createTexture:function(t,e,n,i){var r=t.createTexture();return t.bindTexture(t.TEXTURE_2D,r),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),i?t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,i):t.texImage2D(t.TEXTURE_2D,0,t.RGBA,e,n,0,t.RGBA,t.UNSIGNED_BYTE,null),r},getCachedTexture:function(t,e){if(this.textureCache[t])return this.textureCache[t];var n=this.createTexture(this.gl,e.width,e.height,e);return this.textureCache[t]=n,n},evictCachesForKey:function(t){this.textureCache[t]&&(this.gl.deleteTexture(this.textureCache[t]),delete this.textureCache[t])},copyGLTo2D:o,captureGPUInfo:function(){if(this.gpuInfo)return this.gpuInfo;var t=this.gl,e={renderer:"",vendor:""};if(!t)return e;var n=t.getExtension("WEBGL_debug_renderer_info");if(n){var i=t.getParameter(n.UNMASKED_RENDERER_WEBGL),r=t.getParameter(n.UNMASKED_VENDOR_WEBGL);i&&(e.renderer=i.toLowerCase()),r&&(e.vendor=r.toLowerCase())}return this.gpuInfo=e,e}}}(),function(){"use strict";var t=function(){};function e(){}i.Canvas2dFilterBackend=e,e.prototype={evictCachesForKey:t,dispose:t,clearWebGLCaches:t,resources:{},applyFilters:function(t,e,n,i,r){var a=r.getContext("2d");a.drawImage(e,0,0,n,i);var s=a.getImageData(0,0,n,i),o=a.getImageData(0,0,n,i),l={sourceWidth:n,sourceHeight:i,imageData:s,originalEl:e,originalImageData:o,canvasEl:r,ctx:a,filterBackend:this};return t.forEach((function(t){t.applyTo(l)})),l.imageData.width===n&&l.imageData.height===i||(r.width=l.imageData.width,r.height=l.imageData.height),a.putImageData(l.imageData,0,0),l}}}(),i.Image=i.Image||{},i.Image.filters=i.Image.filters||{},i.Image.filters.BaseFilter=i.util.createClass({type:"BaseFilter",vertexSource:"attribute vec2 aPosition;\nvarying vec2 vTexCoord;\nvoid main() {\nvTexCoord = aPosition;\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n}",fragmentSource:"precision highp float;\nvarying vec2 vTexCoord;\nuniform sampler2D uTexture;\nvoid main() {\ngl_FragColor = texture2D(uTexture, vTexCoord);\n}",initialize:function(t){t&&this.setOptions(t)},setOptions:function(t){for(var e in t)this[e]=t[e]},createProgram:function(t,e,n){e=e||this.fragmentSource,n=n||this.vertexSource,"highp"!==i.webGlPrecision&&(e=e.replace(/precision highp float/g,"precision "+i.webGlPrecision+" float"));var r=t.createShader(t.VERTEX_SHADER);if(t.shaderSource(r,n),t.compileShader(r),!t.getShaderParameter(r,t.COMPILE_STATUS))throw new Error("Vertex shader compile error for "+this.type+": "+t.getShaderInfoLog(r));var a=t.createShader(t.FRAGMENT_SHADER);if(t.shaderSource(a,e),t.compileShader(a),!t.getShaderParameter(a,t.COMPILE_STATUS))throw new Error("Fragment shader compile error for "+this.type+": "+t.getShaderInfoLog(a));var s=t.createProgram();if(t.attachShader(s,r),t.attachShader(s,a),t.linkProgram(s),!t.getProgramParameter(s,t.LINK_STATUS))throw new Error('Shader link error for "${this.type}" '+t.getProgramInfoLog(s));var o=this.getAttributeLocations(t,s),l=this.getUniformLocations(t,s)||{};return l.uStepW=t.getUniformLocation(s,"uStepW"),l.uStepH=t.getUniformLocation(s,"uStepH"),{program:s,attributeLocations:o,uniformLocations:l}},getAttributeLocations:function(t,e){return{aPosition:t.getAttribLocation(e,"aPosition")}},getUniformLocations:function(){return{}},sendAttributeData:function(t,e,n){var i=e.aPosition,r=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,r),t.enableVertexAttribArray(i),t.vertexAttribPointer(i,2,t.FLOAT,!1,0,0),t.bufferData(t.ARRAY_BUFFER,n,t.STATIC_DRAW)},_setupFrameBuffer:function(t){var e,n,i=t.context;t.passes>1?(e=t.destinationWidth,n=t.destinationHeight,t.sourceWidth===e&&t.sourceHeight===n||(i.deleteTexture(t.targetTexture),t.targetTexture=t.filterBackend.createTexture(i,e,n)),i.framebufferTexture2D(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.TEXTURE_2D,t.targetTexture,0)):(i.bindFramebuffer(i.FRAMEBUFFER,null),i.finish())},_swapTextures:function(t){t.passes--,t.pass++;var e=t.targetTexture;t.targetTexture=t.sourceTexture,t.sourceTexture=e},isNeutralState:function(){var t=this.mainParameter,e=i.Image.filters[this.type].prototype;if(t){if(Array.isArray(e[t])){for(var n=e[t].length;n--;)if(this[t][n]!==e[t][n])return!1;return!0}return e[t]===this[t]}return!1},applyTo:function(t){t.webgl?(this._setupFrameBuffer(t),this.applyToWebGL(t),this._swapTextures(t)):this.applyTo2d(t)},retrieveShader:function(t){return t.programCache.hasOwnProperty(this.type)||(t.programCache[this.type]=this.createProgram(t.context)),t.programCache[this.type]},applyToWebGL:function(t){var e=t.context,n=this.retrieveShader(t);0===t.pass&&t.originalTexture?e.bindTexture(e.TEXTURE_2D,t.originalTexture):e.bindTexture(e.TEXTURE_2D,t.sourceTexture),e.useProgram(n.program),this.sendAttributeData(e,n.attributeLocations,t.aPosition),e.uniform1f(n.uniformLocations.uStepW,1/t.sourceWidth),e.uniform1f(n.uniformLocations.uStepH,1/t.sourceHeight),this.sendUniformData(e,n.uniformLocations),e.viewport(0,0,t.destinationWidth,t.destinationHeight),e.drawArrays(e.TRIANGLE_STRIP,0,4)},bindAdditionalTexture:function(t,e,n){t.activeTexture(n),t.bindTexture(t.TEXTURE_2D,e),t.activeTexture(t.TEXTURE0)},unbindAdditionalTexture:function(t,e){t.activeTexture(e),t.bindTexture(t.TEXTURE_2D,null),t.activeTexture(t.TEXTURE0)},getMainParameter:function(){return this[this.mainParameter]},setMainParameter:function(t){this[this.mainParameter]=t},sendUniformData:function(){},createHelpLayer:function(t){if(!t.helpLayer){var e=document.createElement("canvas");e.width=t.sourceWidth,e.height=t.sourceHeight,t.helpLayer=e}},toObject:function(){var t={type:this.type},e=this.mainParameter;return e&&(t[e]=this[e]),t},toJSON:function(){return this.toObject()}}),i.Image.filters.BaseFilter.fromObject=function(t,e){var n=new i.Image.filters[t.type](t);return e&&e(n),n},function(t){"use strict";var e=t.fabric||(t.fabric={}),n=e.Image.filters,i=e.util.createClass;n.ColorMatrix=i(n.BaseFilter,{type:"ColorMatrix",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nuniform mat4 uColorMatrix;\nuniform vec4 uConstants;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor *= uColorMatrix;\ncolor += uConstants;\ngl_FragColor = color;\n}",matrix:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],mainParameter:"matrix",colorsOnly:!0,initialize:function(t){this.callSuper("initialize",t),this.matrix=this.matrix.slice(0)},applyTo2d:function(t){var e,n,i,r,a,s=t.imageData,o=s.data,l=o.length,u=this.matrix,c=this.colorsOnly;for(a=0;a<l;a+=4)e=o[a],n=o[a+1],i=o[a+2],c?(o[a]=e*u[0]+n*u[1]+i*u[2]+255*u[4],o[a+1]=e*u[5]+n*u[6]+i*u[7]+255*u[9],o[a+2]=e*u[10]+n*u[11]+i*u[12]+255*u[14]):(r=o[a+3],o[a]=e*u[0]+n*u[1]+i*u[2]+r*u[3]+255*u[4],o[a+1]=e*u[5]+n*u[6]+i*u[7]+r*u[8]+255*u[9],o[a+2]=e*u[10]+n*u[11]+i*u[12]+r*u[13]+255*u[14],o[a+3]=e*u[15]+n*u[16]+i*u[17]+r*u[18]+255*u[19])},getUniformLocations:function(t,e){return{uColorMatrix:t.getUniformLocation(e,"uColorMatrix"),uConstants:t.getUniformLocation(e,"uConstants")}},sendUniformData:function(t,e){var n=this.matrix,i=[n[0],n[1],n[2],n[3],n[5],n[6],n[7],n[8],n[10],n[11],n[12],n[13],n[15],n[16],n[17],n[18]],r=[n[4],n[9],n[14],n[19]];t.uniformMatrix4fv(e.uColorMatrix,!1,i),t.uniform4fv(e.uConstants,r)}}),e.Image.filters.ColorMatrix.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=e.Image.filters,i=e.util.createClass;n.Brightness=i(n.BaseFilter,{type:"Brightness",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uBrightness;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor.rgb += uBrightness;\ngl_FragColor = color;\n}",brightness:0,mainParameter:"brightness",applyTo2d:function(t){if(0!==this.brightness){var e,n=t.imageData,i=n.data,r=i.length,a=Math.round(255*this.brightness);for(e=0;e<r;e+=4)i[e]=i[e]+a,i[e+1]=i[e+1]+a,i[e+2]=i[e+2]+a}},getUniformLocations:function(t,e){return{uBrightness:t.getUniformLocation(e,"uBrightness")}},sendUniformData:function(t,e){t.uniform1f(e.uBrightness,this.brightness)}}),e.Image.filters.Brightness.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=e.util.object.extend,i=e.Image.filters,r=e.util.createClass;i.Convolute=r(i.BaseFilter,{type:"Convolute",opaque:!1,matrix:[0,0,0,0,1,0,0,0,0],fragmentSource:{Convolute_3_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[9];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 3.0; h+=1.0) {\nfor (float w = 0.0; w < 3.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 1), uStepH * (h - 1));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 3.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_3_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[9];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 3.0; h+=1.0) {\nfor (float w = 0.0; w < 3.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 1.0), uStepH * (h - 1.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 3.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_5_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[25];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 5.0; h+=1.0) {\nfor (float w = 0.0; w < 5.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 5.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_5_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[25];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 5.0; h+=1.0) {\nfor (float w = 0.0; w < 5.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 5.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_7_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[49];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 7.0; h+=1.0) {\nfor (float w = 0.0; w < 7.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 7.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_7_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[49];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 7.0; h+=1.0) {\nfor (float w = 0.0; w < 7.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 7.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_9_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[81];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 9.0; h+=1.0) {\nfor (float w = 0.0; w < 9.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 9.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_9_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[81];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 9.0; h+=1.0) {\nfor (float w = 0.0; w < 9.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 9.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}"},retrieveShader:function(t){var e=Math.sqrt(this.matrix.length),n=this.type+"_"+e+"_"+(this.opaque?1:0),i=this.fragmentSource[n];return t.programCache.hasOwnProperty(n)||(t.programCache[n]=this.createProgram(t.context,i)),t.programCache[n]},applyTo2d:function(t){var e,n,i,r,a,s,o,l,u,c,h,d,f,m=t.imageData,p=m.data,_=this.matrix,g=Math.round(Math.sqrt(_.length)),v=Math.floor(g/2),y=m.width,b=m.height,w=t.ctx.createImageData(y,b),x=w.data,M=this.opaque?1:0;for(h=0;h<b;h++)for(c=0;c<y;c++){for(a=4*(h*y+c),e=0,n=0,i=0,r=0,f=0;f<g;f++)for(d=0;d<g;d++)o=h+f-v,s=c+d-v,o<0||o>=b||s<0||s>=y||(l=4*(o*y+s),u=_[f*g+d],e+=p[l]*u,n+=p[l+1]*u,i+=p[l+2]*u,M||(r+=p[l+3]*u));x[a]=e,x[a+1]=n,x[a+2]=i,x[a+3]=M?p[a+3]:r}t.imageData=w},getUniformLocations:function(t,e){return{uMatrix:t.getUniformLocation(e,"uMatrix"),uOpaque:t.getUniformLocation(e,"uOpaque"),uHalfSize:t.getUniformLocation(e,"uHalfSize"),uSize:t.getUniformLocation(e,"uSize")}},sendUniformData:function(t,e){t.uniform1fv(e.uMatrix,this.matrix)},toObject:function(){return n(this.callSuper("toObject"),{opaque:this.opaque,matrix:this.matrix})}}),e.Image.filters.Convolute.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=e.Image.filters,i=e.util.createClass;n.Grayscale=i(n.BaseFilter,{type:"Grayscale",fragmentSource:{average:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat average = (color.r + color.b + color.g) / 3.0;\ngl_FragColor = vec4(average, average, average, color.a);\n}",lightness:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = (max(max(col.r, col.g),col.b) + min(min(col.r, col.g),col.b)) / 2.0;\ngl_FragColor = vec4(average, average, average, col.a);\n}",luminosity:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = 0.21 * col.r + 0.72 * col.g + 0.07 * col.b;\ngl_FragColor = vec4(average, average, average, col.a);\n}"},mode:"average",mainParameter:"mode",applyTo2d:function(t){var e,n,i=t.imageData,r=i.data,a=r.length,s=this.mode;for(e=0;e<a;e+=4)"average"===s?n=(r[e]+r[e+1]+r[e+2])/3:"lightness"===s?n=(Math.min(r[e],r[e+1],r[e+2])+Math.max(r[e],r[e+1],r[e+2]))/2:"luminosity"===s&&(n=.21*r[e]+.72*r[e+1]+.07*r[e+2]),r[e]=n,r[e+1]=n,r[e+2]=n},retrieveShader:function(t){var e=this.type+"_"+this.mode;if(!t.programCache.hasOwnProperty(e)){var n=this.fragmentSource[this.mode];t.programCache[e]=this.createProgram(t.context,n)}return t.programCache[e]},getUniformLocations:function(t,e){return{uMode:t.getUniformLocation(e,"uMode")}},sendUniformData:function(t,e){var n=1;t.uniform1i(e.uMode,n)},isNeutralState:function(){return!1}}),e.Image.filters.Grayscale.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=e.Image.filters,i=e.util.createClass;n.Invert=i(n.BaseFilter,{type:"Invert",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uInvert;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nif (uInvert == 1) {\ngl_FragColor = vec4(1.0 - color.r,1.0 -color.g,1.0 -color.b,color.a);\n} else {\ngl_FragColor = color;\n}\n}",invert:!0,mainParameter:"invert",applyTo2d:function(t){var e,n=t.imageData,i=n.data,r=i.length;for(e=0;e<r;e+=4)i[e]=255-i[e],i[e+1]=255-i[e+1],i[e+2]=255-i[e+2]},isNeutralState:function(){return!this.invert},getUniformLocations:function(t,e){return{uInvert:t.getUniformLocation(e,"uInvert")}},sendUniformData:function(t,e){t.uniform1i(e.uInvert,this.invert)}}),e.Image.filters.Invert.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=e.util.object.extend,i=e.Image.filters,r=e.util.createClass;i.Noise=r(i.BaseFilter,{type:"Noise",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uStepH;\nuniform float uNoise;\nuniform float uSeed;\nvarying vec2 vTexCoord;\nfloat rand(vec2 co, float seed, float vScale) {\nreturn fract(sin(dot(co.xy * vScale ,vec2(12.9898 , 78.233))) * 43758.5453 * (seed + 0.01) / 2.0);\n}\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor.rgb += (0.5 - rand(vTexCoord, uSeed, 0.1 / uStepH)) * uNoise;\ngl_FragColor = color;\n}",mainParameter:"noise",noise:0,applyTo2d:function(t){if(0!==this.noise){var e,n,i=t.imageData,r=i.data,a=r.length,s=this.noise;for(e=0,a=r.length;e<a;e+=4)n=(.5-Math.random())*s,r[e]+=n,r[e+1]+=n,r[e+2]+=n}},getUniformLocations:function(t,e){return{uNoise:t.getUniformLocation(e,"uNoise"),uSeed:t.getUniformLocation(e,"uSeed")}},sendUniformData:function(t,e){t.uniform1f(e.uNoise,this.noise/255),t.uniform1f(e.uSeed,Math.random())},toObject:function(){return n(this.callSuper("toObject"),{noise:this.noise})}}),e.Image.filters.Noise.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=e.Image.filters,i=e.util.createClass;n.Pixelate=i(n.BaseFilter,{type:"Pixelate",blocksize:4,mainParameter:"blocksize",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uBlocksize;\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nfloat blockW = uBlocksize * uStepW;\nfloat blockH = uBlocksize * uStepW;\nint posX = int(vTexCoord.x / blockW);\nint posY = int(vTexCoord.y / blockH);\nfloat fposX = float(posX);\nfloat fposY = float(posY);\nvec2 squareCoords = vec2(fposX * blockW, fposY * blockH);\nvec4 color = texture2D(uTexture, squareCoords);\ngl_FragColor = color;\n}",applyTo2d:function(t){var e,n,i,r,a,s,o,l,u,c,h,d=t.imageData,f=d.data,m=d.height,p=d.width;for(n=0;n<m;n+=this.blocksize)for(i=0;i<p;i+=this.blocksize)for(e=4*n*p+4*i,r=f[e],a=f[e+1],s=f[e+2],o=f[e+3],c=Math.min(n+this.blocksize,m),h=Math.min(i+this.blocksize,p),l=n;l<c;l++)for(u=i;u<h;u++)e=4*l*p+4*u,f[e]=r,f[e+1]=a,f[e+2]=s,f[e+3]=o},isNeutralState:function(){return 1===this.blocksize},getUniformLocations:function(t,e){return{uBlocksize:t.getUniformLocation(e,"uBlocksize"),uStepW:t.getUniformLocation(e,"uStepW"),uStepH:t.getUniformLocation(e,"uStepH")}},sendUniformData:function(t,e){t.uniform1f(e.uBlocksize,this.blocksize)}}),e.Image.filters.Pixelate.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=e.util.object.extend,i=e.Image.filters,r=e.util.createClass;i.RemoveColor=r(i.BaseFilter,{type:"RemoveColor",color:"#FFFFFF",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec4 uLow;\nuniform vec4 uHigh;\nvarying vec2 vTexCoord;\nvoid main() {\ngl_FragColor = texture2D(uTexture, vTexCoord);\nif(all(greaterThan(gl_FragColor.rgb,uLow.rgb)) && all(greaterThan(uHigh.rgb,gl_FragColor.rgb))) {\ngl_FragColor.a = 0.0;\n}\n}",distance:.02,useAlpha:!1,applyTo2d:function(t){var n,i,r,a,s=t.imageData,o=s.data,l=255*this.distance,u=new e.Color(this.color).getSource(),c=[u[0]-l,u[1]-l,u[2]-l],h=[u[0]+l,u[1]+l,u[2]+l];for(n=0;n<o.length;n+=4)i=o[n],r=o[n+1],a=o[n+2],i>c[0]&&r>c[1]&&a>c[2]&&i<h[0]&&r<h[1]&&a<h[2]&&(o[n+3]=0)},getUniformLocations:function(t,e){return{uLow:t.getUniformLocation(e,"uLow"),uHigh:t.getUniformLocation(e,"uHigh")}},sendUniformData:function(t,n){var i=new e.Color(this.color).getSource(),r=parseFloat(this.distance),a=[0+i[0]/255-r,0+i[1]/255-r,0+i[2]/255-r,1],s=[i[0]/255+r,i[1]/255+r,i[2]/255+r,1];t.uniform4fv(n.uLow,a),t.uniform4fv(n.uHigh,s)},toObject:function(){return n(this.callSuper("toObject"),{color:this.color,distance:this.distance})}}),e.Image.filters.RemoveColor.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=e.Image.filters,i=e.util.createClass,r={Brownie:[.5997,.34553,-.27082,0,.186,-.0377,.86095,.15059,0,-.1449,.24113,-.07441,.44972,0,-.02965,0,0,0,1,0],Vintage:[.62793,.32021,-.03965,0,.03784,.02578,.64411,.03259,0,.02926,.0466,-.08512,.52416,0,.02023,0,0,0,1,0],Kodachrome:[1.12855,-.39673,-.03992,0,.24991,-.16404,1.08352,-.05498,0,.09698,-.16786,-.56034,1.60148,0,.13972,0,0,0,1,0],Technicolor:[1.91252,-.85453,-.09155,0,.04624,-.30878,1.76589,-.10601,0,-.27589,-.2311,-.75018,1.84759,0,.12137,0,0,0,1,0],Polaroid:[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],Sepia:[.393,.769,.189,0,0,.349,.686,.168,0,0,.272,.534,.131,0,0,0,0,0,1,0],BlackWhite:[1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,0,0,0,1,0]};for(var a in r)n[a]=i(n.ColorMatrix,{type:a,matrix:r[a],mainParameter:!1,colorsOnly:!0}),e.Image.filters[a].fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric,n=e.Image.filters,i=e.util.createClass;n.BlendColor=i(n.BaseFilter,{type:"BlendColor",color:"#F95C63",mode:"multiply",alpha:1,fragmentSource:{multiply:"gl_FragColor.rgb *= uColor.rgb;\n",screen:"gl_FragColor.rgb = 1.0 - (1.0 - gl_FragColor.rgb) * (1.0 - uColor.rgb);\n",add:"gl_FragColor.rgb += uColor.rgb;\n",diff:"gl_FragColor.rgb = abs(gl_FragColor.rgb - uColor.rgb);\n",subtract:"gl_FragColor.rgb -= uColor.rgb;\n",lighten:"gl_FragColor.rgb = max(gl_FragColor.rgb, uColor.rgb);\n",darken:"gl_FragColor.rgb = min(gl_FragColor.rgb, uColor.rgb);\n",exclusion:"gl_FragColor.rgb += uColor.rgb - 2.0 * (uColor.rgb * gl_FragColor.rgb);\n",overlay:"if (uColor.r < 0.5) {\ngl_FragColor.r *= 2.0 * uColor.r;\n} else {\ngl_FragColor.r = 1.0 - 2.0 * (1.0 - gl_FragColor.r) * (1.0 - uColor.r);\n}\nif (uColor.g < 0.5) {\ngl_FragColor.g *= 2.0 * uColor.g;\n} else {\ngl_FragColor.g = 1.0 - 2.0 * (1.0 - gl_FragColor.g) * (1.0 - uColor.g);\n}\nif (uColor.b < 0.5) {\ngl_FragColor.b *= 2.0 * uColor.b;\n} else {\ngl_FragColor.b = 1.0 - 2.0 * (1.0 - gl_FragColor.b) * (1.0 - uColor.b);\n}\n",tint:"gl_FragColor.rgb *= (1.0 - uColor.a);\ngl_FragColor.rgb += uColor.rgb;\n"},buildSource:function(t){return"precision highp float;\nuniform sampler2D uTexture;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ngl_FragColor = color;\nif (color.a > 0.0) {\n"+this.fragmentSource[t]+"}\n}"},retrieveShader:function(t){var e,n=this.type+"_"+this.mode;return t.programCache.hasOwnProperty(n)||(e=this.buildSource(this.mode),t.programCache[n]=this.createProgram(t.context,e)),t.programCache[n]},applyTo2d:function(t){var n,i,r,a,s,o,l,u=t.imageData,c=u.data,h=c.length,d=1-this.alpha;l=new e.Color(this.color).getSource(),n=l[0]*this.alpha,i=l[1]*this.alpha,r=l[2]*this.alpha;for(var f=0;f<h;f+=4)switch(a=c[f],s=c[f+1],o=c[f+2],this.mode){case"multiply":c[f]=a*n/255,c[f+1]=s*i/255,c[f+2]=o*r/255;break;case"screen":c[f]=255-(255-a)*(255-n)/255,c[f+1]=255-(255-s)*(255-i)/255,c[f+2]=255-(255-o)*(255-r)/255;break;case"add":c[f]=a+n,c[f+1]=s+i,c[f+2]=o+r;break;case"diff":case"difference":c[f]=Math.abs(a-n),c[f+1]=Math.abs(s-i),c[f+2]=Math.abs(o-r);break;case"subtract":c[f]=a-n,c[f+1]=s-i,c[f+2]=o-r;break;case"darken":c[f]=Math.min(a,n),c[f+1]=Math.min(s,i),c[f+2]=Math.min(o,r);break;case"lighten":c[f]=Math.max(a,n),c[f+1]=Math.max(s,i),c[f+2]=Math.max(o,r);break;case"overlay":c[f]=n<128?2*a*n/255:255-2*(255-a)*(255-n)/255,c[f+1]=i<128?2*s*i/255:255-2*(255-s)*(255-i)/255,c[f+2]=r<128?2*o*r/255:255-2*(255-o)*(255-r)/255;break;case"exclusion":c[f]=n+a-2*n*a/255,c[f+1]=i+s-2*i*s/255,c[f+2]=r+o-2*r*o/255;break;case"tint":c[f]=n+a*d,c[f+1]=i+s*d,c[f+2]=r+o*d}},getUniformLocations:function(t,e){return{uColor:t.getUniformLocation(e,"uColor")}},sendUniformData:function(t,n){var i=new e.Color(this.color).getSource();i[0]=this.alpha*i[0]/255,i[1]=this.alpha*i[1]/255,i[2]=this.alpha*i[2]/255,i[3]=this.alpha,t.uniform4fv(n.uColor,i)},toObject:function(){return{type:this.type,color:this.color,mode:this.mode,alpha:this.alpha}}}),e.Image.filters.BlendColor.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric,n=e.Image.filters,i=e.util.createClass;n.BlendImage=i(n.BaseFilter,{type:"BlendImage",image:null,mode:"multiply",alpha:1,vertexSource:"attribute vec2 aPosition;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nuniform mat3 uTransformMatrix;\nvoid main() {\nvTexCoord = aPosition;\nvTexCoord2 = (uTransformMatrix * vec3(aPosition, 1.0)).xy;\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n}",fragmentSource:{multiply:"precision highp float;\nuniform sampler2D uTexture;\nuniform sampler2D uImage;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec4 color2 = texture2D(uImage, vTexCoord2);\ncolor.rgba *= color2.rgba;\ngl_FragColor = color;\n}",mask:"precision highp float;\nuniform sampler2D uTexture;\nuniform sampler2D uImage;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec4 color2 = texture2D(uImage, vTexCoord2);\ncolor.a = color2.a;\ngl_FragColor = color;\n}"},retrieveShader:function(t){var e=this.type+"_"+this.mode,n=this.fragmentSource[this.mode];return t.programCache.hasOwnProperty(e)||(t.programCache[e]=this.createProgram(t.context,n)),t.programCache[e]},applyToWebGL:function(t){var e=t.context,n=this.createTexture(t.filterBackend,this.image);this.bindAdditionalTexture(e,n,e.TEXTURE1),this.callSuper("applyToWebGL",t),this.unbindAdditionalTexture(e,e.TEXTURE1)},createTexture:function(t,e){return t.getCachedTexture(e.cacheKey,e._element)},calculateMatrix:function(){var t=this.image,e=t._element.width,n=t._element.height;return[1/t.scaleX,0,0,0,1/t.scaleY,0,-t.left/e,-t.top/n,1]},applyTo2d:function(t){var n,i,r,a,s,o,l,u,c,h,d,f=t.imageData,m=t.filterBackend.resources,p=f.data,_=p.length,g=f.width,v=f.height,y=this.image;m.blendImage||(m.blendImage=e.util.createCanvasElement()),c=m.blendImage,h=c.getContext("2d"),c.width!==g||c.height!==v?(c.width=g,c.height=v):h.clearRect(0,0,g,v),h.setTransform(y.scaleX,0,0,y.scaleY,y.left,y.top),h.drawImage(y._element,0,0,g,v),d=h.getImageData(0,0,g,v).data;for(var b=0;b<_;b+=4)switch(s=p[b],o=p[b+1],l=p[b+2],u=p[b+3],n=d[b],i=d[b+1],r=d[b+2],a=d[b+3],this.mode){case"multiply":p[b]=s*n/255,p[b+1]=o*i/255,p[b+2]=l*r/255,p[b+3]=u*a/255;break;case"mask":p[b+3]=a;break}},getUniformLocations:function(t,e){return{uTransformMatrix:t.getUniformLocation(e,"uTransformMatrix"),uImage:t.getUniformLocation(e,"uImage")}},sendUniformData:function(t,e){var n=this.calculateMatrix();t.uniform1i(e.uImage,1),t.uniformMatrix3fv(e.uTransformMatrix,!1,n)},toObject:function(){return{type:this.type,image:this.image&&this.image.toObject(),mode:this.mode,alpha:this.alpha}}}),e.Image.filters.BlendImage.fromObject=function(t,n){e.Image.fromObject(t.image,(function(i){var r=e.util.object.clone(t);r.image=i,n(new e.Image.filters.BlendImage(r))}))}}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=Math.pow,i=Math.floor,r=Math.sqrt,a=Math.abs,s=Math.round,o=Math.sin,l=Math.ceil,u=e.Image.filters,c=e.util.createClass;u.Resize=c(u.BaseFilter,{type:"Resize",resizeType:"hermite",scaleX:1,scaleY:1,lanczosLobes:3,getUniformLocations:function(t,e){return{uDelta:t.getUniformLocation(e,"uDelta"),uTaps:t.getUniformLocation(e,"uTaps")}},sendUniformData:function(t,e){t.uniform2fv(e.uDelta,this.horizontal?[1/this.width,0]:[0,1/this.height]),t.uniform1fv(e.uTaps,this.taps)},retrieveShader:function(t){var e=this.getFilterWindow(),n=this.type+"_"+e;if(!t.programCache.hasOwnProperty(n)){var i=this.generateShader(e);t.programCache[n]=this.createProgram(t.context,i)}return t.programCache[n]},getFilterWindow:function(){var t=this.tempScale;return Math.ceil(this.lanczosLobes/t)},getTaps:function(){for(var t=this.lanczosCreate(this.lanczosLobes),e=this.tempScale,n=this.getFilterWindow(),i=new Array(n),r=1;r<=n;r++)i[r-1]=t(r*e);return i},generateShader:function(t){for(var e=new Array(t),n=this.fragmentSourceTOP,i=1;i<=t;i++)e[i-1]=i+".0 * uDelta";return n+="uniform float uTaps["+t+"];\n",n+="void main() {\n",n+=" vec4 color = texture2D(uTexture, vTexCoord);\n",n+=" float sum = 1.0;\n",e.forEach((function(t,e){n+=" color += texture2D(uTexture, vTexCoord + "+t+") * uTaps["+e+"];\n",n+=" color += texture2D(uTexture, vTexCoord - "+t+") * uTaps["+e+"];\n",n+=" sum += 2.0 * uTaps["+e+"];\n"})),n+=" gl_FragColor = color / sum;\n",n+="}",n},fragmentSourceTOP:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec2 uDelta;\nvarying vec2 vTexCoord;\n",applyTo:function(t){t.webgl?(t.passes++,this.width=t.sourceWidth,this.horizontal=!0,this.dW=Math.round(this.width*this.scaleX),this.dH=t.sourceHeight,this.tempScale=this.dW/this.width,this.taps=this.getTaps(),t.destinationWidth=this.dW,this._setupFrameBuffer(t),this.applyToWebGL(t),this._swapTextures(t),t.sourceWidth=t.destinationWidth,this.height=t.sourceHeight,this.horizontal=!1,this.dH=Math.round(this.height*this.scaleY),this.tempScale=this.dH/this.height,this.taps=this.getTaps(),t.destinationHeight=this.dH,this._setupFrameBuffer(t),this.applyToWebGL(t),this._swapTextures(t),t.sourceHeight=t.destinationHeight):this.applyTo2d(t)},isNeutralState:function(){return 1===this.scaleX&&1===this.scaleY},lanczosCreate:function(t){return function(e){if(e>=t||e<=-t)return 0;if(e<1.1920929e-7&&e>-1.1920929e-7)return 1;e*=Math.PI;var n=e/t;return o(e)/e*o(n)/n}},applyTo2d:function(t){var e=t.imageData,n=this.scaleX,i=this.scaleY;this.rcpScaleX=1/n,this.rcpScaleY=1/i;var r,a=e.width,o=e.height,l=s(a*n),u=s(o*i);"sliceHack"===this.resizeType?r=this.sliceByTwo(t,a,o,l,u):"hermite"===this.resizeType?r=this.hermiteFastResize(t,a,o,l,u):"bilinear"===this.resizeType?r=this.bilinearFiltering(t,a,o,l,u):"lanczos"===this.resizeType&&(r=this.lanczosResize(t,a,o,l,u)),t.imageData=r},sliceByTwo:function(t,n,r,a,s){var o,l,u=t.imageData,c=.5,h=!1,d=!1,f=n*c,m=r*c,p=e.filterBackend.resources,_=0,g=0,v=n,y=0;p.sliceByTwo||(p.sliceByTwo=document.createElement("canvas")),o=p.sliceByTwo,(o.width<1.5*n||o.height<r)&&(o.width=1.5*n,o.height=r),l=o.getContext("2d"),l.clearRect(0,0,1.5*n,r),l.putImageData(u,0,0),a=i(a),s=i(s);while(!h||!d)n=f,r=m,a<i(f*c)?f=i(f*c):(f=a,h=!0),s<i(m*c)?m=i(m*c):(m=s,d=!0),l.drawImage(o,_,g,n,r,v,y,f,m),_=v,g=y,y+=m;return l.getImageData(_,g,a,s)},lanczosResize:function(t,e,s,o,u){function c(t){var l,S,L,k,T,D,C,E,O,Y,A;for(x.x=(t+.5)*p,M.x=i(x.x),l=0;l<u;l++){for(x.y=(l+.5)*_,M.y=i(x.y),T=0,D=0,C=0,E=0,O=0,S=M.x-y;S<=M.x+y;S++)if(!(S<0||S>=e)){Y=i(1e3*a(S-x.x)),w[Y]||(w[Y]={});for(var P=M.y-b;P<=M.y+b;P++)P<0||P>=s||(A=i(1e3*a(P-x.y)),w[Y][A]||(w[Y][A]=m(r(n(Y*g,2)+n(A*v,2))/1e3)),L=w[Y][A],L>0&&(k=4*(P*e+S),T+=L,D+=L*h[k],C+=L*h[k+1],E+=L*h[k+2],O+=L*h[k+3]))}k=4*(l*o+t),f[k]=D/T,f[k+1]=C/T,f[k+2]=E/T,f[k+3]=O/T}return++t<o?c(t):d}var h=t.imageData.data,d=t.ctx.createImageData(o,u),f=d.data,m=this.lanczosCreate(this.lanczosLobes),p=this.rcpScaleX,_=this.rcpScaleY,g=2/this.rcpScaleX,v=2/this.rcpScaleY,y=l(p*this.lanczosLobes/2),b=l(_*this.lanczosLobes/2),w={},x={},M={};return c(0)},bilinearFiltering:function(t,e,n,r,a){var s,o,l,u,c,h,d,f,m,p,_,g,v,y=0,b=this.rcpScaleX,w=this.rcpScaleY,x=4*(e-1),M=t.imageData,S=M.data,L=t.ctx.createImageData(r,a),k=L.data;for(d=0;d<a;d++)for(f=0;f<r;f++)for(c=i(b*f),h=i(w*d),m=b*f-c,p=w*d-h,v=4*(h*e+c),_=0;_<4;_++)s=S[v+_],o=S[v+4+_],l=S[v+x+_],u=S[v+x+4+_],g=s*(1-m)*(1-p)+o*m*(1-p)+l*p*(1-m)+u*m*p,k[y++]=g;return L},hermiteFastResize:function(t,e,n,s,o){for(var u=this.rcpScaleX,c=this.rcpScaleY,h=l(u/2),d=l(c/2),f=t.imageData,m=f.data,p=t.ctx.createImageData(s,o),_=p.data,g=0;g<o;g++)for(var v=0;v<s;v++){for(var y=4*(v+g*s),b=0,w=0,x=0,M=0,S=0,L=0,k=0,T=(g+.5)*c,D=i(g*c);D<(g+1)*c;D++)for(var C=a(T-(D+.5))/d,E=(v+.5)*u,O=C*C,Y=i(v*u);Y<(v+1)*u;Y++){var A=a(E-(Y+.5))/h,P=r(O+A*A);P>1&&P<-1||(b=2*P*P*P-3*P*P+1,b>0&&(A=4*(Y+D*e),k+=b*m[A+3],x+=b,m[A+3]<255&&(b=b*m[A+3]/250),M+=b*m[A],S+=b*m[A+1],L+=b*m[A+2],w+=b))}_[y]=M/w,_[y+1]=S/w,_[y+2]=L/w,_[y+3]=k/x}return p},toObject:function(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}}),e.Image.filters.Resize.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=e.Image.filters,i=e.util.createClass;n.Contrast=i(n.BaseFilter,{type:"Contrast",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uContrast;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat contrastF = 1.015 * (uContrast + 1.0) / (1.0 * (1.015 - uContrast));\ncolor.rgb = contrastF * (color.rgb - 0.5) + 0.5;\ngl_FragColor = color;\n}",contrast:0,mainParameter:"contrast",applyTo2d:function(t){if(0!==this.contrast){var e,n=t.imageData,i=n.data,r=i.length,a=Math.floor(255*this.contrast),s=259*(a+255)/(255*(259-a));for(e=0;e<r;e+=4)i[e]=s*(i[e]-128)+128,i[e+1]=s*(i[e+1]-128)+128,i[e+2]=s*(i[e+2]-128)+128}},getUniformLocations:function(t,e){return{uContrast:t.getUniformLocation(e,"uContrast")}},sendUniformData:function(t,e){t.uniform1f(e.uContrast,this.contrast)}}),e.Image.filters.Contrast.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=e.Image.filters,i=e.util.createClass;n.Saturation=i(n.BaseFilter,{type:"Saturation",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uSaturation;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat rgMax = max(color.r, color.g);\nfloat rgbMax = max(rgMax, color.b);\ncolor.r += rgbMax != color.r ? (rgbMax - color.r) * uSaturation : 0.00;\ncolor.g += rgbMax != color.g ? (rgbMax - color.g) * uSaturation : 0.00;\ncolor.b += rgbMax != color.b ? (rgbMax - color.b) * uSaturation : 0.00;\ngl_FragColor = color;\n}",saturation:0,mainParameter:"saturation",applyTo2d:function(t){if(0!==this.saturation){var e,n,i=t.imageData,r=i.data,a=r.length,s=-this.saturation;for(e=0;e<a;e+=4)n=Math.max(r[e],r[e+1],r[e+2]),r[e]+=n!==r[e]?(n-r[e])*s:0,r[e+1]+=n!==r[e+1]?(n-r[e+1])*s:0,r[e+2]+=n!==r[e+2]?(n-r[e+2])*s:0}},getUniformLocations:function(t,e){return{uSaturation:t.getUniformLocation(e,"uSaturation")}},sendUniformData:function(t,e){t.uniform1f(e.uSaturation,-this.saturation)}}),e.Image.filters.Saturation.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=e.Image.filters,i=e.util.createClass;n.Blur=i(n.BaseFilter,{type:"Blur",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec2 uDelta;\nvarying vec2 vTexCoord;\nconst float nSamples = 15.0;\nvec3 v3offset = vec3(12.9898, 78.233, 151.7182);\nfloat random(vec3 scale) {\nreturn fract(sin(dot(gl_FragCoord.xyz, scale)) * 43758.5453);\n}\nvoid main() {\nvec4 color = vec4(0.0);\nfloat total = 0.0;\nfloat offset = random(v3offset);\nfor (float t = -nSamples; t <= nSamples; t++) {\nfloat percent = (t + offset - 0.5) / nSamples;\nfloat weight = 1.0 - abs(percent);\ncolor += texture2D(uTexture, vTexCoord + uDelta * percent) * weight;\ntotal += weight;\n}\ngl_FragColor = color / total;\n}",blur:0,mainParameter:"blur",applyTo:function(t){t.webgl?(this.aspectRatio=t.sourceWidth/t.sourceHeight,t.passes++,this._setupFrameBuffer(t),this.horizontal=!0,this.applyToWebGL(t),this._swapTextures(t),this._setupFrameBuffer(t),this.horizontal=!1,this.applyToWebGL(t),this._swapTextures(t)):this.applyTo2d(t)},applyTo2d:function(t){t.imageData=this.simpleBlur(t)},simpleBlur:function(t){var n,i,r=t.filterBackend.resources,a=t.imageData.width,s=t.imageData.height;r.blurLayer1||(r.blurLayer1=e.util.createCanvasElement(),r.blurLayer2=e.util.createCanvasElement()),n=r.blurLayer1,i=r.blurLayer2,n.width===a&&n.height===s||(i.width=n.width=a,i.height=n.height=s);var o,l,u,c,h=n.getContext("2d"),d=i.getContext("2d"),f=15,m=.06*this.blur*.5;for(h.putImageData(t.imageData,0,0),d.clearRect(0,0,a,s),c=-f;c<=f;c++)o=(Math.random()-.5)/4,l=c/f,u=m*l*a+o,d.globalAlpha=1-Math.abs(l),d.drawImage(n,u,o),h.drawImage(i,0,0),d.globalAlpha=1,d.clearRect(0,0,i.width,i.height);for(c=-f;c<=f;c++)o=(Math.random()-.5)/4,l=c/f,u=m*l*s+o,d.globalAlpha=1-Math.abs(l),d.drawImage(n,o,u),h.drawImage(i,0,0),d.globalAlpha=1,d.clearRect(0,0,i.width,i.height);t.ctx.drawImage(n,0,0);var p=t.ctx.getImageData(0,0,n.width,n.height);return h.globalAlpha=1,h.clearRect(0,0,n.width,n.height),p},getUniformLocations:function(t,e){return{delta:t.getUniformLocation(e,"uDelta")}},sendUniformData:function(t,e){var n=this.chooseRightDelta();t.uniform2fv(e.delta,n)},chooseRightDelta:function(){var t,e=1,n=[0,0];return this.horizontal?this.aspectRatio>1&&(e=1/this.aspectRatio):this.aspectRatio<1&&(e=this.aspectRatio),t=e*this.blur*.12,this.horizontal?n[0]=t:n[1]=t,n}}),n.Blur.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=e.Image.filters,i=e.util.createClass;n.Gamma=i(n.BaseFilter,{type:"Gamma",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec3 uGamma;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec3 correction = (1.0 / uGamma);\ncolor.r = pow(color.r, correction.r);\ncolor.g = pow(color.g, correction.g);\ncolor.b = pow(color.b, correction.b);\ngl_FragColor = color;\ngl_FragColor.rgb *= color.a;\n}",gamma:[1,1,1],mainParameter:"gamma",initialize:function(t){this.gamma=[1,1,1],n.BaseFilter.prototype.initialize.call(this,t)},applyTo2d:function(t){var e,n=t.imageData,i=n.data,r=this.gamma,a=i.length,s=1/r[0],o=1/r[1],l=1/r[2];for(this.rVals||(this.rVals=new Uint8Array(256),this.gVals=new Uint8Array(256),this.bVals=new Uint8Array(256)),e=0,a=256;e<a;e++)this.rVals[e]=255*Math.pow(e/255,s),this.gVals[e]=255*Math.pow(e/255,o),this.bVals[e]=255*Math.pow(e/255,l);for(e=0,a=i.length;e<a;e+=4)i[e]=this.rVals[i[e]],i[e+1]=this.gVals[i[e+1]],i[e+2]=this.bVals[i[e+2]]},getUniformLocations:function(t,e){return{uGamma:t.getUniformLocation(e,"uGamma")}},sendUniformData:function(t,e){t.uniform3fv(e.uGamma,this.gamma)}}),e.Image.filters.Gamma.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=e.Image.filters,i=e.util.createClass;n.Composed=i(n.BaseFilter,{type:"Composed",subFilters:[],initialize:function(t){this.callSuper("initialize",t),this.subFilters=this.subFilters.slice(0)},applyTo:function(t){t.passes+=this.subFilters.length-1,this.subFilters.forEach((function(e){e.applyTo(t)}))},toObject:function(){return e.util.object.extend(this.callSuper("toObject"),{subFilters:this.subFilters.map((function(t){return t.toObject()}))})},isNeutralState:function(){return!this.subFilters.some((function(t){return!t.isNeutralState()}))}}),e.Image.filters.Composed.fromObject=function(t,n){var i=t.subFilters||[],r=i.map((function(t){return new e.Image.filters[t.type](t)})),a=new e.Image.filters.Composed({subFilters:r});return n&&n(a),a}}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=e.Image.filters,i=e.util.createClass;n.HueRotation=i(n.ColorMatrix,{type:"HueRotation",rotation:0,mainParameter:"rotation",calculateMatrix:function(){var t=this.rotation*Math.PI,n=e.util.cos(t),i=e.util.sin(t),r=1/3,a=Math.sqrt(r)*i,s=1-n;this.matrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],this.matrix[0]=n+s/3,this.matrix[1]=r*s-a,this.matrix[2]=r*s+a,this.matrix[5]=r*s+a,this.matrix[6]=n+r*s,this.matrix[7]=r*s-a,this.matrix[10]=r*s-a,this.matrix[11]=r*s+a,this.matrix[12]=n+r*s},isNeutralState:function(t){return this.calculateMatrix(),n.BaseFilter.prototype.isNeutralState.call(this,t)},applyTo:function(t){this.calculateMatrix(),n.BaseFilter.prototype.applyTo.call(this,t)}}),e.Image.filters.HueRotation.fromObject=e.Image.filters.BaseFilter.fromObject}(e),function(t){"use strict";var e=t.fabric||(t.fabric={}),n=e.util.object.clone;if(e.Text)e.warn("fabric.Text is already defined");else{var i="fontFamily fontWeight fontSize text underline overline linethrough textAlign fontStyle lineHeight textBackgroundColor charSpacing styles path".split(" ");e.Text=e.util.createClass(e.Object,{_dimensionAffectingProps:["fontSize","fontWeight","fontFamily","fontStyle","lineHeight","text","charSpacing","textAlign","styles","path"],_reNewline:/\r?\n/,_reSpacesAndTabs:/[ \t\r]/g,_reSpaceAndTab:/[ \t\r]/,_reWords:/\S+/g,type:"text",fontSize:40,fontWeight:"normal",fontFamily:"Times New Roman",underline:!1,overline:!1,linethrough:!1,textAlign:"left",fontStyle:"normal",lineHeight:1.16,superscript:{size:.6,baseline:-.35},subscript:{size:.6,baseline:.11},textBackgroundColor:"",stateProperties:e.Object.prototype.stateProperties.concat(i),cacheProperties:e.Object.prototype.cacheProperties.concat(i),stroke:null,shadow:null,_fontSizeFraction:.222,offsets:{underline:.1,linethrough:-.315,overline:-.88},_fontSizeMult:1.13,charSpacing:0,styles:null,_measuringContext:null,deltaY:0,_styleProperties:["stroke","strokeWidth","fill","fontFamily","fontSize","fontWeight","fontStyle","underline","overline","linethrough","deltaY","textBackgroundColor"],__charBounds:[],CACHE_FONT_SIZE:400,MIN_TEXT_WIDTH:2,initialize:function(t,e){this.styles=e&&e.styles||{},this.text=t,this.__skipDimension=!0,this.callSuper("initialize",e),this.path&&this.setPathInfo(),this.__skipDimension=!1,this.initDimensions(),this.setCoords(),this.setupState({propertySet:"_dimensionAffectingProps"})},setPathInfo:function(){var t=this.path;t&&(t.segmentsInfo=e.util.getPathSegmentsInfo(t.path))},getMeasuringContext:function(){return e._measuringContext||(e._measuringContext=this.canvas&&this.canvas.contextCache||e.util.createCanvasElement().getContext("2d")),e._measuringContext},_splitText:function(){var t=this._splitTextIntoLines(this.text);return this.textLines=t.lines,this._textLines=t.graphemeLines,this._unwrappedTextLines=t._unwrappedLines,this._text=t.graphemeText,t},initDimensions:function(){this.__skipDimension||(this._splitText(),this._clearCache(),this.path?(this.width=this.path.width,this.height=this.path.height):(this.width=this.calcTextWidth()||this.cursorWidth||this.MIN_TEXT_WIDTH,this.height=this.calcTextHeight()),-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.saveState({propertySet:"_dimensionAffectingProps"}))},enlargeSpaces:function(){for(var t,e,n,i,r,a,s,o=0,l=this._textLines.length;o<l;o++)if(("justify"===this.textAlign||o!==l-1&&!this.isEndOfWrapping(o))&&(i=0,r=this._textLines[o],e=this.getLineWidth(o),e<this.width&&(s=this.textLines[o].match(this._reSpacesAndTabs)))){n=s.length,t=(this.width-e)/n;for(var u=0,c=r.length;u<=c;u++)a=this.__charBounds[o][u],this._reSpaceAndTab.test(r[u])?(a.width+=t,a.kernedWidth+=t,a.left+=i,i+=t):a.left+=i}},isEndOfWrapping:function(t){return t===this._textLines.length-1},missingNewlineOffset:function(){return 1},toString:function(){return"#<fabric.Text ("+this.complexity()+'): { "text": "'+this.text+'", "fontFamily": "'+this.fontFamily+'" }>'},_getCacheCanvasDimensions:function(){var t=this.callSuper("_getCacheCanvasDimensions"),e=this.fontSize;return t.width+=e*t.zoomX,t.height+=e*t.zoomY,t},_render:function(t){this._setTextStyles(t),this._renderTextLinesBackground(t),this._renderTextDecoration(t,"underline"),this._renderText(t),this._renderTextDecoration(t,"overline"),this._renderTextDecoration(t,"linethrough")},_renderText:function(t){"stroke"===this.paintFirst?(this._renderTextStroke(t),this._renderTextFill(t)):(this._renderTextFill(t),this._renderTextStroke(t))},_setTextStyles:function(t,e,n){t.textBaseline="alphabetic",t.font=this._getFontDeclaration(e,n)},calcTextWidth:function(){for(var t=this.getLineWidth(0),e=1,n=this._textLines.length;e<n;e++){var i=this.getLineWidth(e);i>t&&(t=i)}return t},_renderTextLine:function(t,e,n,i,r,a){this._renderChars(t,e,n,i,r,a)},_renderTextLinesBackground:function(t){if(this.textBackgroundColor||this.styleHas("textBackgroundColor")){for(var e,n,i,r,a,s,o=t.fillStyle,l=this._getLeftOffset(),u=this._getTopOffset(),c=0,h=0,d=this.path,f=0,m=this._textLines.length;f<m;f++)if(e=this.getHeightOfLine(f),this.textBackgroundColor||this.styleHas("textBackgroundColor",f)){i=this._textLines[f],n=this._getLineLeftOffset(f),h=0,c=0,r=this.getValueOfPropertyAt(f,0,"textBackgroundColor");for(var p=0,_=i.length;p<_;p++)a=this.__charBounds[f][p],s=this.getValueOfPropertyAt(f,p,"textBackgroundColor"),d?(t.save(),t.translate(a.renderLeft,a.renderTop),t.rotate(a.angle),t.fillStyle=s,s&&t.fillRect(-a.width/2,-e/this.lineHeight*(1-this._fontSizeFraction),a.width,e/this.lineHeight),t.restore()):s!==r?(t.fillStyle=r,r&&t.fillRect(l+n+c,u,h,e/this.lineHeight),c=a.left,h=a.width,r=s):h+=a.kernedWidth;s&&!d&&(t.fillStyle=s,t.fillRect(l+n+c,u,h,e/this.lineHeight)),u+=e}else u+=e;t.fillStyle=o,this._removeShadow(t)}},getFontCache:function(t){var n=t.fontFamily.toLowerCase();e.charWidthsCache[n]||(e.charWidthsCache[n]={});var i=e.charWidthsCache[n],r=t.fontStyle.toLowerCase()+"_"+(t.fontWeight+"").toLowerCase();return i[r]||(i[r]={}),i[r]},_measureChar:function(t,e,n,i){var r,a,s,o,l=this.getFontCache(e),u=this._getFontDeclaration(e),c=this._getFontDeclaration(i),h=n+t,d=u===c,f=e.fontSize/this.CACHE_FONT_SIZE;if(n&&void 0!==l[n]&&(s=l[n]),void 0!==l[t]&&(o=r=l[t]),d&&void 0!==l[h]&&(a=l[h],o=a-s),void 0===r||void 0===s||void 0===a){var m=this.getMeasuringContext();this._setTextStyles(m,e,!0)}return void 0===r&&(o=r=m.measureText(t).width,l[t]=r),void 0===s&&d&&n&&(s=m.measureText(n).width,l[n]=s),d&&void 0===a&&(a=m.measureText(h).width,l[h]=a,o=a-s),{width:r*f,kernedWidth:o*f}},getHeightOfChar:function(t,e){return this.getValueOfPropertyAt(t,e,"fontSize")},measureLine:function(t){var e=this._measureLine(t);return 0!==this.charSpacing&&(e.width-=this._getWidthOfCharSpacing()),e.width<0&&(e.width=0),e},_measureLine:function(t){var n,i,r,a,s,o,l=0,u=this._textLines[t],c=0,h=new Array(u.length),d=0,f=this.path;for(this.__charBounds[t]=h,f&&(s=e.util.getPointOnPath(f.path,0,f.segmentsInfo),o=f.segmentsInfo[f.segmentsInfo.length-1].length,s.x+=f.pathOffset.x,s.y+=f.pathOffset.y),n=0;n<u.length;n++)i=u[n],a=this._getGraphemeBox(i,t,n,r),f&&(d>o&&(d%=o),this._setGraphemeOnPath(d,a,s)),h[n]=a,l+=a.kernedWidth,d+=a.kernedWidth,r=i;return h[n]={left:a?a.left+a.width:0,width:0,kernedWidth:0,height:this.fontSize},{width:l,numOfSpaces:c}},_setGraphemeOnPath:function(t,n,i){var r=t+n.kernedWidth/2,a=this.path,s=e.util.getPointOnPath(a.path,r,a.segmentsInfo);n.renderLeft=s.x-i.x,n.renderTop=s.y-i.y,n.angle=s.angle},_getGraphemeBox:function(t,e,n,i,r){var a,s=this.getCompleteStyleDeclaration(e,n),o=i?this.getCompleteStyleDeclaration(e,n-1):{},l=this._measureChar(t,s,i,o),u=l.kernedWidth,c=l.width;0!==this.charSpacing&&(a=this._getWidthOfCharSpacing(),c+=a,u+=a);var h={width:c,left:0,height:s.fontSize,kernedWidth:u,deltaY:s.deltaY};if(n>0&&!r){var d=this.__charBounds[e][n-1];h.left=d.left+d.width+l.kernedWidth-l.width}return h},getHeightOfLine:function(t){if(this.__lineHeights[t])return this.__lineHeights[t];for(var e=this._textLines[t],n=this.getHeightOfChar(t,0),i=1,r=e.length;i<r;i++)n=Math.max(this.getHeightOfChar(t,i),n);return this.__lineHeights[t]=n*this.lineHeight*this._fontSizeMult},calcTextHeight:function(){for(var t,e=0,n=0,i=this._textLines.length;n<i;n++)t=this.getHeightOfLine(n),e+=n===i-1?t/this.lineHeight:t;return e},_getLeftOffset:function(){return-this.width/2},_getTopOffset:function(){return-this.height/2},_renderTextCommon:function(t,e){t.save();for(var n=0,i=this._getLeftOffset(),r=this._getTopOffset(),a=0,s=this._textLines.length;a<s;a++){var o=this.getHeightOfLine(a),l=o/this.lineHeight,u=this._getLineLeftOffset(a);this._renderTextLine(e,t,this._textLines[a],i+u,r+n+l,a),n+=o}t.restore()},_renderTextFill:function(t){(this.fill||this.styleHas("fill"))&&this._renderTextCommon(t,"fillText")},_renderTextStroke:function(t){(this.stroke&&0!==this.strokeWidth||!this.isEmptyStyles())&&(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(t),t.save(),this._setLineDash(t,this.strokeDashArray),t.beginPath(),this._renderTextCommon(t,"strokeText"),t.closePath(),t.restore())},_renderChars:function(t,e,n,i,r,a){var s,o,l,u,c=this.getHeightOfLine(a),h=-1!==this.textAlign.indexOf("justify"),d="",f=0,m=this.path,p=!h&&0===this.charSpacing&&this.isEmptyStyles(a)&&!m;if(e.save(),r-=c*this._fontSizeFraction/this.lineHeight,p)return this._renderChar(t,e,a,0,n.join(""),i,r,c),void e.restore();for(var _=0,g=n.length-1;_<=g;_++)u=_===g||this.charSpacing||m,d+=n[_],l=this.__charBounds[a][_],0===f?(i+=l.kernedWidth-l.width,f+=l.width):f+=l.kernedWidth,h&&!u&&this._reSpaceAndTab.test(n[_])&&(u=!0),u||(s=s||this.getCompleteStyleDeclaration(a,_),o=this.getCompleteStyleDeclaration(a,_+1),u=this._hasStyleChanged(s,o)),u&&(m?(e.save(),e.translate(l.renderLeft,l.renderTop),e.rotate(l.angle),this._renderChar(t,e,a,_,d,-f/2,0,c),e.restore()):this._renderChar(t,e,a,_,d,i,r,c),d="",s=o,i+=f,f=0);e.restore()},_applyPatternGradientTransformText:function(t){var n,i=e.util.createCanvasElement(),r=this.width+this.strokeWidth,a=this.height+this.strokeWidth;return i.width=r,i.height=a,n=i.getContext("2d"),n.beginPath(),n.moveTo(0,0),n.lineTo(r,0),n.lineTo(r,a),n.lineTo(0,a),n.closePath(),n.translate(r/2,a/2),n.fillStyle=t.toLive(n),this._applyPatternGradientTransform(n,t),n.fill(),n.createPattern(i,"no-repeat")},handleFiller:function(t,e,n){var i,r;return n.toLive?"percentage"===n.gradientUnits||n.gradientTrasnform||n.patternTransform?(i=-this.width/2,r=-this.height/2,t.translate(i,r),t[e]=this._applyPatternGradientTransformText(n),{offsetX:i,offsetY:r}):(t[e]=n.toLive(t,this),this._applyPatternGradientTransform(t,n)):(t[e]=n,{offsetX:0,offsetY:0})},_setStrokeStyles:function(t,e){return t.lineWidth=e.strokeWidth,t.lineCap=this.strokeLineCap,t.lineDashOffset=this.strokeDashOffset,t.lineJoin=this.strokeLineJoin,t.miterLimit=this.strokeMiterLimit,this.handleFiller(t,"strokeStyle",e.stroke)},_setFillStyles:function(t,e){return this.handleFiller(t,"fillStyle",e.fill)},_renderChar:function(t,e,n,i,r,a,s){var o,l,u=this._getStyleDeclaration(n,i),c=this.getCompleteStyleDeclaration(n,i),h="fillText"===t&&c.fill,d="strokeText"===t&&c.stroke&&c.strokeWidth;(d||h)&&(e.save(),h&&(o=this._setFillStyles(e,c)),d&&(l=this._setStrokeStyles(e,c)),e.font=this._getFontDeclaration(c),u&&u.textBackgroundColor&&this._removeShadow(e),u&&u.deltaY&&(s+=u.deltaY),h&&e.fillText(r,a-o.offsetX,s-o.offsetY),d&&e.strokeText(r,a-l.offsetX,s-l.offsetY),e.restore())},setSuperscript:function(t,e){return this._setScript(t,e,this.superscript)},setSubscript:function(t,e){return this._setScript(t,e,this.subscript)},_setScript:function(t,e,n){var i=this.get2DCursorLocation(t,!0),r=this.getValueOfPropertyAt(i.lineIndex,i.charIndex,"fontSize"),a=this.getValueOfPropertyAt(i.lineIndex,i.charIndex,"deltaY"),s={fontSize:r*n.size,deltaY:a+r*n.baseline};return this.setSelectionStyles(s,t,e),this},_hasStyleChanged:function(t,e){return t.fill!==e.fill||t.stroke!==e.stroke||t.strokeWidth!==e.strokeWidth||t.fontSize!==e.fontSize||t.fontFamily!==e.fontFamily||t.fontWeight!==e.fontWeight||t.fontStyle!==e.fontStyle||t.deltaY!==e.deltaY},_hasStyleChangedForSvg:function(t,e){return this._hasStyleChanged(t,e)||t.overline!==e.overline||t.underline!==e.underline||t.linethrough!==e.linethrough},_getLineLeftOffset:function(t){var e=this.getLineWidth(t);return"center"===this.textAlign?(this.width-e)/2:"right"===this.textAlign?this.width-e:"justify-center"===this.textAlign&&this.isEndOfWrapping(t)?(this.width-e)/2:"justify-right"===this.textAlign&&this.isEndOfWrapping(t)?this.width-e:0},_clearCache:function(){this.__lineWidths=[],this.__lineHeights=[],this.__charBounds=[]},_shouldClearDimensionCache:function(){var t=this._forceClearCache;return t||(t=this.hasStateChanged("_dimensionAffectingProps")),t&&(this.dirty=!0,this._forceClearCache=!1),t},getLineWidth:function(t){if(this.__lineWidths[t])return this.__lineWidths[t];var e,n,i=this._textLines[t];return""===i?e=0:(n=this.measureLine(t),e=n.width),this.__lineWidths[t]=e,e},_getWidthOfCharSpacing:function(){return 0!==this.charSpacing?this.fontSize*this.charSpacing/1e3:0},getValueOfPropertyAt:function(t,e,n){var i=this._getStyleDeclaration(t,e);return i&&"undefined"!==typeof i[n]?i[n]:this[n]},_renderTextDecoration:function(t,e){if(this[e]||this.styleHas(e)){for(var n,i,r,a,s,o,l,u,c,h,d,f,m,p,_,g,v=this._getLeftOffset(),y=this._getTopOffset(),b=this.path,w=this._getWidthOfCharSpacing(),x=0,M=this._textLines.length;x<M;x++)if(n=this.getHeightOfLine(x),this[e]||this.styleHas(e,x)){l=this._textLines[x],p=n/this.lineHeight,a=this._getLineLeftOffset(x),h=0,d=0,u=this.getValueOfPropertyAt(x,0,e),g=this.getValueOfPropertyAt(x,0,"fill"),c=y+p*(1-this._fontSizeFraction),i=this.getHeightOfChar(x,0),s=this.getValueOfPropertyAt(x,0,"deltaY");for(var S=0,L=l.length;S<L;S++)f=this.__charBounds[x][S],m=this.getValueOfPropertyAt(x,S,e),_=this.getValueOfPropertyAt(x,S,"fill"),r=this.getHeightOfChar(x,S),o=this.getValueOfPropertyAt(x,S,"deltaY"),b&&m&&_?(t.save(),t.fillStyle=g,t.translate(f.renderLeft,f.renderTop),t.rotate(f.angle),t.fillRect(-f.kernedWidth/2,this.offsets[e]*r+o,f.kernedWidth,this.fontSize/15),t.restore()):(m!==u||_!==g||r!==i||o!==s)&&d>0?(u&&g&&t.fillRect(v+a+h,c+this.offsets[e]*i+s,d,this.fontSize/15),h=f.left,d=f.width,u=m,g=_,i=r,s=o):d+=f.kernedWidth;t.fillStyle=_,m&&_&&t.fillRect(v+a+h,c+this.offsets[e]*i+s,d-w,this.fontSize/15),y+=n}else y+=n;this._removeShadow(t)}},_getFontDeclaration:function(t,n){var i=t||this,r=this.fontFamily,a=e.Text.genericFonts.indexOf(r.toLowerCase())>-1,s=void 0===r||r.indexOf("'")>-1||r.indexOf(",")>-1||r.indexOf('"')>-1||a?i.fontFamily:'"'+i.fontFamily+'"';return[e.isLikelyNode?i.fontWeight:i.fontStyle,e.isLikelyNode?i.fontStyle:i.fontWeight,n?this.CACHE_FONT_SIZE+"px":i.fontSize+"px",s].join(" ")},render:function(t){this.visible&&(this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(this._shouldClearDimensionCache()&&this.initDimensions(),this.callSuper("render",t)))},_splitTextIntoLines:function(t){for(var n=t.split(this._reNewline),i=new Array(n.length),r=["\n"],a=[],s=0;s<n.length;s++)i[s]=e.util.string.graphemeSplit(n[s]),a=a.concat(i[s],r);return a.pop(),{_unwrappedLines:i,lines:n,graphemeText:a,graphemeLines:i}},toObject:function(t){var e=["text","fontSize","fontWeight","fontFamily","fontStyle","lineHeight","underline","overline","linethrough","textAlign","textBackgroundColor","charSpacing"].concat(t),i=this.callSuper("toObject",e);return i.styles=n(this.styles,!0),i},set:function(t,e){this.callSuper("set",t,e);var n=!1,i=!1;if("object"===typeof t)for(var r in t)"path"===r&&this.setPathInfo(),n=n||-1!==this._dimensionAffectingProps.indexOf(r),i=i||"path"===r;else n=-1!==this._dimensionAffectingProps.indexOf(t),i="path"===t;return i&&this.setPathInfo(),n&&(this.initDimensions(),this.setCoords()),this},complexity:function(){return 1}}),e.Text.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat("x y dx dy font-family font-style font-weight font-size letter-spacing text-decoration text-anchor".split(" ")),e.Text.DEFAULT_SVG_FONT_SIZE=16,e.Text.fromElement=function(t,i,r){if(!t)return i(null);var a=e.parseAttributes(t,e.Text.ATTRIBUTE_NAMES),s=a.textAnchor||"left";if(r=e.util.object.extend(r?n(r):{},a),r.top=r.top||0,r.left=r.left||0,a.textDecoration){var o=a.textDecoration;-1!==o.indexOf("underline")&&(r.underline=!0),-1!==o.indexOf("overline")&&(r.overline=!0),-1!==o.indexOf("line-through")&&(r.linethrough=!0),delete r.textDecoration}"dx"in a&&(r.left+=a.dx),"dy"in a&&(r.top+=a.dy),"fontSize"in r||(r.fontSize=e.Text.DEFAULT_SVG_FONT_SIZE);var l="";"textContent"in t?l=t.textContent:"firstChild"in t&&null!==t.firstChild&&"data"in t.firstChild&&null!==t.firstChild.data&&(l=t.firstChild.data),l=l.replace(/^\s+|\s+$|\n+/g,"").replace(/\s+/g," ");var u=r.strokeWidth;r.strokeWidth=0;var c=new e.Text(l,r),h=c.getScaledHeight()/c.height,d=(c.height+c.strokeWidth)*c.lineHeight-c.height,f=d*h,m=c.getScaledHeight()+f,p=0;"center"===s&&(p=c.getScaledWidth()/2),"right"===s&&(p=c.getScaledWidth()),c.set({left:c.left-p,top:c.top-(m-c.fontSize*(.07+c._fontSizeFraction))/c.lineHeight,strokeWidth:"undefined"!==typeof u?u:1}),i(c)},e.Text.fromObject=function(t,n){return e.Object._fromObject("Text",t,n,"text")},e.Text.genericFonts=["sans-serif","serif","cursive","fantasy","monospace"],e.util.createAccessors&&e.util.createAccessors(e.Text)}}(e),function(){i.util.object.extend(i.Text.prototype,{isEmptyStyles:function(t){if(!this.styles)return!0;if("undefined"!==typeof t&&!this.styles[t])return!0;var e="undefined"===typeof t?this.styles:{line:this.styles[t]};for(var n in e)for(var i in e[n])for(var r in e[n][i])return!1;return!0},styleHas:function(t,e){if(!this.styles||!t||""===t)return!1;if("undefined"!==typeof e&&!this.styles[e])return!1;var n="undefined"===typeof e?this.styles:{0:this.styles[e]};for(var i in n)for(var r in n[i])if("undefined"!==typeof n[i][r][t])return!0;return!1},cleanStyle:function(t){if(!this.styles||!t||""===t)return!1;var e,n,i=this.styles,r=0,a=!0,s=0;for(var o in i){for(var l in e=0,i[o]){var u=i[o][l],c=u.hasOwnProperty(t);r++,c?(n?u[t]!==n&&(a=!1):n=u[t],u[t]===this[t]&&delete u[t]):a=!1,0!==Object.keys(u).length?e++:delete i[o][l]}0===e&&delete i[o]}for(var h=0;h<this._textLines.length;h++)s+=this._textLines[h].length;a&&r===s&&(this[t]=n,this.removeStyle(t))},removeStyle:function(t){if(this.styles&&t&&""!==t){var e,n,i,r=this.styles;for(n in r){for(i in e=r[n],e)delete e[i][t],0===Object.keys(e[i]).length&&delete e[i];0===Object.keys(e).length&&delete r[n]}}},_extendStyles:function(t,e){var n=this.get2DCursorLocation(t);this._getLineStyle(n.lineIndex)||this._setLineStyle(n.lineIndex),this._getStyleDeclaration(n.lineIndex,n.charIndex)||this._setStyleDeclaration(n.lineIndex,n.charIndex,{}),i.util.object.extend(this._getStyleDeclaration(n.lineIndex,n.charIndex),e)},get2DCursorLocation:function(t,e){"undefined"===typeof t&&(t=this.selectionStart);for(var n=e?this._unwrappedTextLines:this._textLines,i=n.length,r=0;r<i;r++){if(t<=n[r].length)return{lineIndex:r,charIndex:t};t-=n[r].length+this.missingNewlineOffset(r)}return{lineIndex:r-1,charIndex:n[r-1].length<t?n[r-1].length:t}},getSelectionStyles:function(t,e,n){"undefined"===typeof t&&(t=this.selectionStart||0),"undefined"===typeof e&&(e=this.selectionEnd||t);for(var i=[],r=t;r<e;r++)i.push(this.getStyleAtPosition(r,n));return i},getStyleAtPosition:function(t,e){var n=this.get2DCursorLocation(t),i=e?this.getCompleteStyleDeclaration(n.lineIndex,n.charIndex):this._getStyleDeclaration(n.lineIndex,n.charIndex);return i||{}},setSelectionStyles:function(t,e,n){"undefined"===typeof e&&(e=this.selectionStart||0),"undefined"===typeof n&&(n=this.selectionEnd||e);for(var i=e;i<n;i++)this._extendStyles(i,t);return this._forceClearCache=!0,this},_getStyleDeclaration:function(t,e){var n=this.styles&&this.styles[t];return n?n[e]:null},getCompleteStyleDeclaration:function(t,e){for(var n,i=this._getStyleDeclaration(t,e)||{},r={},a=0;a<this._styleProperties.length;a++)n=this._styleProperties[a],r[n]="undefined"===typeof i[n]?this[n]:i[n];return r},_setStyleDeclaration:function(t,e,n){this.styles[t][e]=n},_deleteStyleDeclaration:function(t,e){delete this.styles[t][e]},_getLineStyle:function(t){return!!this.styles[t]},_setLineStyle:function(t){this.styles[t]={}},_deleteLineStyle:function(t){delete this.styles[t]}})}(),function(){function t(t){t.textDecoration&&(t.textDecoration.indexOf("underline")>-1&&(t.underline=!0),t.textDecoration.indexOf("line-through")>-1&&(t.linethrough=!0),t.textDecoration.indexOf("overline")>-1&&(t.overline=!0),delete t.textDecoration)}i.IText=i.util.createClass(i.Text,i.Observable,{type:"i-text",selectionStart:0,selectionEnd:0,selectionColor:"rgba(17,119,255,0.3)",isEditing:!1,editable:!0,editingBorderColor:"rgba(102,153,255,0.25)",cursorWidth:2,cursorColor:"",cursorDelay:1e3,cursorDuration:600,caching:!0,_reSpace:/\s|\n/,_currentCursorOpacity:0,_selectionDirection:null,_abortCursorAnimation:!1,__widthOfSpace:[],inCompositionMode:!1,initialize:function(t,e){this.callSuper("initialize",t,e),this.initBehavior()},setSelectionStart:function(t){t=Math.max(t,0),this._updateAndFire("selectionStart",t)},setSelectionEnd:function(t){t=Math.min(t,this.text.length),this._updateAndFire("selectionEnd",t)},_updateAndFire:function(t,e){this[t]!==e&&(this._fireSelectionChanged(),this[t]=e),this._updateTextarea()},_fireSelectionChanged:function(){this.fire("selection:changed"),this.canvas&&this.canvas.fire("text:selection:changed",{target:this})},initDimensions:function(){this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this.callSuper("initDimensions")},render:function(t){this.clearContextTop(),this.callSuper("render",t),this.cursorOffsetCache={},this.renderCursorOrSelection()},_render:function(t){this.callSuper("_render",t)},clearContextTop:function(t){if(this.isEditing&&this.canvas&&this.canvas.contextTop){var e=this.canvas.contextTop,n=this.canvas.viewportTransform;e.save(),e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),this.transform(e),this._clearTextArea(e),t||e.restore()}},renderCursorOrSelection:function(){if(this.isEditing&&this.canvas&&this.canvas.contextTop){var t=this._getCursorBoundaries(),e=this.canvas.contextTop;this.clearContextTop(!0),this.selectionStart===this.selectionEnd?this.renderCursor(t,e):this.renderSelection(t,e),e.restore()}},_clearTextArea:function(t){var e=this.width+4,n=this.height+4;t.clearRect(-e/2,-n/2,e,n)},_getCursorBoundaries:function(t){"undefined"===typeof t&&(t=this.selectionStart);var e=this._getLeftOffset(),n=this._getTopOffset(),i=this._getCursorBoundariesOffsets(t);return{left:e,top:n,leftOffset:i.left,topOffset:i.top}},_getCursorBoundariesOffsets:function(t){if(this.cursorOffsetCache&&"top"in this.cursorOffsetCache)return this.cursorOffsetCache;var e,n,i,r,a=0,s=0,o=this.get2DCursorLocation(t);i=o.charIndex,n=o.lineIndex;for(var l=0;l<n;l++)a+=this.getHeightOfLine(l);e=this._getLineLeftOffset(n);var u=this.__charBounds[n][i];return u&&(s=u.left),0!==this.charSpacing&&i===this._textLines[n].length&&(s-=this._getWidthOfCharSpacing()),r={top:a,left:e+(s>0?s:0)},this.cursorOffsetCache=r,this.cursorOffsetCache},renderCursor:function(t,e){var n=this.get2DCursorLocation(),i=n.lineIndex,r=n.charIndex>0?n.charIndex-1:0,a=this.getValueOfPropertyAt(i,r,"fontSize"),s=this.scaleX*this.canvas.getZoom(),o=this.cursorWidth/s,l=t.topOffset,u=this.getValueOfPropertyAt(i,r,"deltaY");l+=(1-this._fontSizeFraction)*this.getHeightOfLine(i)/this.lineHeight-a*(1-this._fontSizeFraction),this.inCompositionMode&&this.renderSelection(t,e),e.fillStyle=this.cursorColor||this.getValueOfPropertyAt(i,r,"fill"),e.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,e.fillRect(t.left+t.leftOffset-o/2,l+t.top+u,o,a)},renderSelection:function(t,e){for(var n=this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,i=this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd,r=-1!==this.textAlign.indexOf("justify"),a=this.get2DCursorLocation(n),s=this.get2DCursorLocation(i),o=a.lineIndex,l=s.lineIndex,u=a.charIndex<0?0:a.charIndex,c=s.charIndex<0?0:s.charIndex,h=o;h<=l;h++){var d=this._getLineLeftOffset(h)||0,f=this.getHeightOfLine(h),m=0,p=0,_=0;if(h===o&&(p=this.__charBounds[o][u].left),h>=o&&h<l)_=r&&!this.isEndOfWrapping(h)?this.width:this.getLineWidth(h)||5;else if(h===l)if(0===c)_=this.__charBounds[l][c].left;else{var g=this._getWidthOfCharSpacing();_=this.__charBounds[l][c-1].left+this.__charBounds[l][c-1].width-g}m=f,(this.lineHeight<1||h===l&&this.lineHeight>1)&&(f/=this.lineHeight),this.inCompositionMode?(e.fillStyle=this.compositionColor||"black",e.fillRect(t.left+d+p,t.top+t.topOffset+f,_-p,1)):(e.fillStyle=this.selectionColor,e.fillRect(t.left+d+p,t.top+t.topOffset,_-p,f)),t.topOffset+=m}},getCurrentCharFontSize:function(){var t=this._getCurrentCharIndex();return this.getValueOfPropertyAt(t.l,t.c,"fontSize")},getCurrentCharColor:function(){var t=this._getCurrentCharIndex();return this.getValueOfPropertyAt(t.l,t.c,"fill")},_getCurrentCharIndex:function(){var t=this.get2DCursorLocation(this.selectionStart,!0),e=t.charIndex>0?t.charIndex-1:0;return{l:t.lineIndex,c:e}}}),i.IText.fromObject=function(e,n){if(t(e),e.styles)for(var r in e.styles)for(var a in e.styles[r])t(e.styles[r][a]);i.Object._fromObject("IText",e,n,"text")}}(),function(){var t=i.util.object.clone;i.util.object.extend(i.IText.prototype,{initBehavior:function(){this.initAddedHandler(),this.initRemovedHandler(),this.initCursorSelectionHandlers(),this.initDoubleClickSimulation(),this.mouseMoveHandler=this.mouseMoveHandler.bind(this)},onDeselect:function(){this.isEditing&&this.exitEditing(),this.selected=!1},initAddedHandler:function(){var t=this;this.on("added",(function(){var e=t.canvas;e&&(e._hasITextHandlers||(e._hasITextHandlers=!0,t._initCanvasHandlers(e)),e._iTextInstances=e._iTextInstances||[],e._iTextInstances.push(t))}))},initRemovedHandler:function(){var t=this;this.on("removed",(function(){var e=t.canvas;e&&(e._iTextInstances=e._iTextInstances||[],i.util.removeFromArray(e._iTextInstances,t),0===e._iTextInstances.length&&(e._hasITextHandlers=!1,t._removeCanvasHandlers(e)))}))},_initCanvasHandlers:function(t){t._mouseUpITextHandler=function(){t._iTextInstances&&t._iTextInstances.forEach((function(t){t.__isMousedown=!1}))},t.on("mouse:up",t._mouseUpITextHandler)},_removeCanvasHandlers:function(t){t.off("mouse:up",t._mouseUpITextHandler)},_tick:function(){this._currentTickState=this._animateCursor(this,1,this.cursorDuration,"_onTickComplete")},_animateCursor:function(t,e,n,i){var r;return r={isAborted:!1,abort:function(){this.isAborted=!0}},t.animate("_currentCursorOpacity",e,{duration:n,onComplete:function(){r.isAborted||t[i]()},onChange:function(){t.canvas&&t.selectionStart===t.selectionEnd&&t.renderCursorOrSelection()},abort:function(){return r.isAborted}}),r},_onTickComplete:function(){var t=this;this._cursorTimeout1&&clearTimeout(this._cursorTimeout1),this._cursorTimeout1=setTimeout((function(){t._currentTickCompleteState=t._animateCursor(t,0,this.cursorDuration/2,"_tick")}),100)},initDelayedCursor:function(t){var e=this,n=t?0:this.cursorDelay;this.abortCursorAnimation(),this._currentCursorOpacity=1,this._cursorTimeout2=setTimeout((function(){e._tick()}),n)},abortCursorAnimation:function(){var t=this._currentTickState||this._currentTickCompleteState,e=this.canvas;this._currentTickState&&this._currentTickState.abort(),this._currentTickCompleteState&&this._currentTickCompleteState.abort(),clearTimeout(this._cursorTimeout1),clearTimeout(this._cursorTimeout2),this._currentCursorOpacity=0,t&&e&&e.clearContext(e.contextTop||e.contextContainer)},selectAll:function(){return this.selectionStart=0,this.selectionEnd=this._text.length,this._fireSelectionChanged(),this._updateTextarea(),this},getSelectedText:function(){return this._text.slice(this.selectionStart,this.selectionEnd).join("")},findWordBoundaryLeft:function(t){var e=0,n=t-1;if(this._reSpace.test(this._text[n]))while(this._reSpace.test(this._text[n]))e++,n--;while(/\S/.test(this._text[n])&&n>-1)e++,n--;return t-e},findWordBoundaryRight:function(t){var e=0,n=t;if(this._reSpace.test(this._text[n]))while(this._reSpace.test(this._text[n]))e++,n++;while(/\S/.test(this._text[n])&&n<this._text.length)e++,n++;return t+e},findLineBoundaryLeft:function(t){var e=0,n=t-1;while(!/\n/.test(this._text[n])&&n>-1)e++,n--;return t-e},findLineBoundaryRight:function(t){var e=0,n=t;while(!/\n/.test(this._text[n])&&n<this._text.length)e++,n++;return t+e},searchWordBoundary:function(t,e){var n=this._text,r=this._reSpace.test(n[t])?t-1:t,a=n[r],s=i.reNonWord;while(!s.test(a)&&r>0&&r<n.length)r+=e,a=n[r];return s.test(a)&&(r+=1===e?0:1),r},selectWord:function(t){t=t||this.selectionStart;var e=this.searchWordBoundary(t,-1),n=this.searchWordBoundary(t,1);this.selectionStart=e,this.selectionEnd=n,this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()},selectLine:function(t){t=t||this.selectionStart;var e=this.findLineBoundaryLeft(t),n=this.findLineBoundaryRight(t);return this.selectionStart=e,this.selectionEnd=n,this._fireSelectionChanged(),this._updateTextarea(),this},enterEditing:function(t){if(!this.isEditing&&this.editable)return this.canvas&&(this.canvas.calcOffset(),this.exitEditingOnOthers(this.canvas)),this.isEditing=!0,this.initHiddenTextarea(t),this.hiddenTextarea.focus(),this.hiddenTextarea.value=this.text,this._updateTextarea(),this._saveEditingProps(),this._setEditingProps(),this._textBeforeEdit=this.text,this._tick(),this.fire("editing:entered"),this._fireSelectionChanged(),this.canvas?(this.canvas.fire("text:editing:entered",{target:this}),this.initMouseMoveHandler(),this.canvas.requestRenderAll(),this):this},exitEditingOnOthers:function(t){t._iTextInstances&&t._iTextInstances.forEach((function(t){t.selected=!1,t.isEditing&&t.exitEditing()}))},initMouseMoveHandler:function(){this.canvas.on("mouse:move",this.mouseMoveHandler)},mouseMoveHandler:function(t){if(this.__isMousedown&&this.isEditing){var e=this.getSelectionStartFromPointer(t.e),n=this.selectionStart,i=this.selectionEnd;(e===this.__selectionStartOnMouseDown&&n!==i||n!==e&&i!==e)&&(e>this.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=e):(this.selectionStart=e,this.selectionEnd=this.__selectionStartOnMouseDown),this.selectionStart===n&&this.selectionEnd===i||(this.restartCursorIfNeeded(),this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}},_setEditingProps:function(){this.hoverCursor="text",this.canvas&&(this.canvas.defaultCursor=this.canvas.moveCursor="text"),this.borderColor=this.editingBorderColor,this.hasControls=this.selectable=!1,this.lockMovementX=this.lockMovementY=!0},fromStringToGraphemeSelection:function(t,e,n){var r=n.slice(0,t),a=i.util.string.graphemeSplit(r).length;if(t===e)return{selectionStart:a,selectionEnd:a};var s=n.slice(t,e),o=i.util.string.graphemeSplit(s).length;return{selectionStart:a,selectionEnd:a+o}},fromGraphemeToStringSelection:function(t,e,n){var i=n.slice(0,t),r=i.join("").length;if(t===e)return{selectionStart:r,selectionEnd:r};var a=n.slice(t,e),s=a.join("").length;return{selectionStart:r,selectionEnd:r+s}},_updateTextarea:function(){if(this.cursorOffsetCache={},this.hiddenTextarea){if(!this.inCompositionMode){var t=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=t.selectionStart,this.hiddenTextarea.selectionEnd=t.selectionEnd}this.updateTextareaPosition()}},updateFromTextArea:function(){if(this.hiddenTextarea){this.cursorOffsetCache={},this.text=this.hiddenTextarea.value,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords());var t=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value);this.selectionEnd=this.selectionStart=t.selectionEnd,this.inCompositionMode||(this.selectionStart=t.selectionStart),this.updateTextareaPosition()}},updateTextareaPosition:function(){if(this.selectionStart===this.selectionEnd){var t=this._calcTextareaPosition();this.hiddenTextarea.style.left=t.left,this.hiddenTextarea.style.top=t.top}},_calcTextareaPosition:function(){if(!this.canvas)return{x:1,y:1};var t=this.inCompositionMode?this.compositionStart:this.selectionStart,e=this._getCursorBoundaries(t),n=this.get2DCursorLocation(t),r=n.lineIndex,a=n.charIndex,s=this.getValueOfPropertyAt(r,a,"fontSize")*this.lineHeight,o=e.leftOffset,l=this.calcTransformMatrix(),u={x:e.left+o,y:e.top+e.topOffset+s},c=this.canvas.getRetinaScaling(),h=this.canvas.upperCanvasEl,d=h.width/c,f=h.height/c,m=d-s,p=f-s,_=h.clientWidth/d,g=h.clientHeight/f;return u=i.util.transformPoint(u,l),u=i.util.transformPoint(u,this.canvas.viewportTransform),u.x*=_,u.y*=g,u.x<0&&(u.x=0),u.x>m&&(u.x=m),u.y<0&&(u.y=0),u.y>p&&(u.y=p),u.x+=this.canvas._offset.left,u.y+=this.canvas._offset.top,{left:u.x+"px",top:u.y+"px",fontSize:s+"px",charHeight:s}},_saveEditingProps:function(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,selectable:this.selectable,defaultCursor:this.canvas&&this.canvas.defaultCursor,moveCursor:this.canvas&&this.canvas.moveCursor}},_restoreEditingProps:function(){this._savedProps&&(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.selectable=this._savedProps.selectable,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas&&(this.canvas.defaultCursor=this._savedProps.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor))},exitEditing:function(){var t=this._textBeforeEdit!==this.text,e=this.hiddenTextarea;return this.selected=!1,this.isEditing=!1,this.selectionEnd=this.selectionStart,e&&(e.blur&&e.blur(),e.parentNode&&e.parentNode.removeChild(e)),this.hiddenTextarea=null,this.abortCursorAnimation(),this._restoreEditingProps(),this._currentCursorOpacity=0,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this.fire("editing:exited"),t&&this.fire("modified"),this.canvas&&(this.canvas.off("mouse:move",this.mouseMoveHandler),this.canvas.fire("text:editing:exited",{target:this}),t&&this.canvas.fire("object:modified",{target:this})),this},_removeExtraneousStyles:function(){for(var t in this.styles)this._textLines[t]||delete this.styles[t]},removeStyleFromTo:function(t,e){var n,i,r=this.get2DCursorLocation(t,!0),a=this.get2DCursorLocation(e,!0),s=r.lineIndex,o=r.charIndex,l=a.lineIndex,u=a.charIndex;if(s!==l){if(this.styles[s])for(n=o;n<this._unwrappedTextLines[s].length;n++)delete this.styles[s][n];if(this.styles[l])for(n=u;n<this._unwrappedTextLines[l].length;n++)i=this.styles[l][n],i&&(this.styles[s]||(this.styles[s]={}),this.styles[s][o+n-u]=i);for(n=s+1;n<=l;n++)delete this.styles[n];this.shiftLineStyles(l,s-l)}else if(this.styles[s]){i=this.styles[s];var c,h,d=u-o;for(n=o;n<u;n++)delete i[n];for(h in this.styles[s])c=parseInt(h,10),c>=u&&(i[c-d]=i[h],delete i[h])}},shiftLineStyles:function(e,n){var i=t(this.styles);for(var r in this.styles){var a=parseInt(r,10);a>e&&(this.styles[a+n]=i[a],i[a-n]||delete this.styles[a])}},restartCursorIfNeeded:function(){this._currentTickState&&!this._currentTickState.isAborted&&this._currentTickCompleteState&&!this._currentTickCompleteState.isAborted||this.initDelayedCursor()},insertNewlineStyleObject:function(e,n,i,r){var a,s={},o=!1,l=this._unwrappedTextLines[e].length===n;for(var u in i||(i=1),this.shiftLineStyles(e,i),this.styles[e]&&(a=this.styles[e][0===n?n:n-1]),this.styles[e]){var c=parseInt(u,10);c>=n&&(o=!0,s[c-n]=this.styles[e][u],l&&0===n||delete this.styles[e][u])}var h=!1;o&&!l&&(this.styles[e+i]=s,h=!0),h&&i--;while(i>0)r&&r[i-1]?this.styles[e+i]={0:t(r[i-1])}:a?this.styles[e+i]={0:t(a)}:delete this.styles[e+i],i--;this._forceClearCache=!0},insertCharStyleObject:function(e,n,i,r){this.styles||(this.styles={});var a=this.styles[e],s=a?t(a):{};for(var o in i||(i=1),s){var l=parseInt(o,10);l>=n&&(a[l+i]=s[l],s[l-i]||delete a[l])}if(this._forceClearCache=!0,r)while(i--)Object.keys(r[i]).length&&(this.styles[e]||(this.styles[e]={}),this.styles[e][n+i]=t(r[i]));else if(a){var u=a[n?n-1:1];while(u&&i--)this.styles[e][n+i]=t(u)}},insertNewStyleBlock:function(t,e,n){for(var i=this.get2DCursorLocation(e,!0),r=[0],a=0,s=0;s<t.length;s++)"\n"===t[s]?(a++,r[a]=0):r[a]++;r[0]>0&&(this.insertCharStyleObject(i.lineIndex,i.charIndex,r[0],n),n=n&&n.slice(r[0]+1)),a&&this.insertNewlineStyleObject(i.lineIndex,i.charIndex+r[0],a);for(s=1;s<a;s++)r[s]>0?this.insertCharStyleObject(i.lineIndex+s,0,r[s],n):n&&(this.styles[i.lineIndex+s][0]=n[0]),n=n&&n.slice(r[s]+1);r[s]>0&&this.insertCharStyleObject(i.lineIndex+s,0,r[s],n)},setSelectionStartEndWithShift:function(t,e,n){n<=t?(e===t?this._selectionDirection="left":"right"===this._selectionDirection&&(this._selectionDirection="left",this.selectionEnd=t),this.selectionStart=n):n>t&&n<e?"right"===this._selectionDirection?this.selectionEnd=n:this.selectionStart=n:(e===t?this._selectionDirection="right":"left"===this._selectionDirection&&(this._selectionDirection="right",this.selectionStart=e),this.selectionEnd=n)},setSelectionInBoundaries:function(){var t=this.text.length;this.selectionStart>t?this.selectionStart=t:this.selectionStart<0&&(this.selectionStart=0),this.selectionEnd>t?this.selectionEnd=t:this.selectionEnd<0&&(this.selectionEnd=0)}})}(),i.util.object.extend(i.IText.prototype,{initDoubleClickSimulation:function(){this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on("mousedown",this.onMouseDown)},onMouseDown:function(t){if(this.canvas){this.__newClickTime=+new Date;var e=t.pointer;this.isTripleClick(e)&&(this.fire("tripleclick",t),this._stopEvent(t.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=e,this.__lastIsEditing=this.isEditing,this.__lastSelected=this.selected}},isTripleClick:function(t){return this.__newClickTime-this.__lastClickTime<500&&this.__lastClickTime-this.__lastLastClickTime<500&&this.__lastPointer.x===t.x&&this.__lastPointer.y===t.y},_stopEvent:function(t){t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation()},initCursorSelectionHandlers:function(){this.initMousedownHandler(),this.initMouseupHandler(),this.initClicks()},doubleClickHandler:function(t){this.isEditing&&this.selectWord(this.getSelectionStartFromPointer(t.e))},tripleClickHandler:function(t){this.isEditing&&this.selectLine(this.getSelectionStartFromPointer(t.e))},initClicks:function(){this.on("mousedblclick",this.doubleClickHandler),this.on("tripleclick",this.tripleClickHandler)},_mouseDownHandler:function(t){!this.canvas||!this.editable||t.e.button&&1!==t.e.button||(this.__isMousedown=!0,this.selected&&(this.inCompositionMode=!1,this.setCursorByClick(t.e)),this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection()))},_mouseDownHandlerBefore:function(t){!this.canvas||!this.editable||t.e.button&&1!==t.e.button||(this.selected=this===this.canvas._activeObject)},initMousedownHandler:function(){this.on("mousedown",this._mouseDownHandler),this.on("mousedown:before",this._mouseDownHandlerBefore)},initMouseupHandler:function(){this.on("mouseup",this.mouseUpHandler)},mouseUpHandler:function(t){if(this.__isMousedown=!1,!(!this.editable||this.group||t.transform&&t.transform.actionPerformed||t.e.button&&1!==t.e.button)){if(this.canvas){var e=this.canvas._activeObject;if(e&&e!==this)return}this.__lastSelected&&!this.__corner?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(t.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0}},setCursorByClick:function(t){var e=this.getSelectionStartFromPointer(t),n=this.selectionStart,i=this.selectionEnd;t.shiftKey?this.setSelectionStartEndWithShift(n,i,e):(this.selectionStart=e,this.selectionEnd=e),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(t){for(var e,n,i=this.getLocalPointer(t),r=0,a=0,s=0,o=0,l=0,u=0,c=this._textLines.length;u<c;u++){if(!(s<=i.y))break;s+=this.getHeightOfLine(u)*this.scaleY,l=u,u>0&&(o+=this._textLines[u-1].length+this.missingNewlineOffset(u-1))}e=this._getLineLeftOffset(l),a=e*this.scaleX,n=this._textLines[l];for(var h=0,d=n.length;h<d;h++){if(r=a,a+=this.__charBounds[l][h].kernedWidth*this.scaleX,!(a<=i.x))break;o++}return this._getNewSelectionStartFromOffset(i,r,a,o,d)},_getNewSelectionStartFromOffset:function(t,e,n,i,r){var a=t.x-e,s=n-t.x,o=s>a||s<0?0:1,l=i+o;return this.flipX&&(l=r-l),l>this._text.length&&(l=this._text.length),l}}),i.util.object.extend(i.IText.prototype,{initHiddenTextarea:function(){this.hiddenTextarea=i.document.createElement("textarea"),this.hiddenTextarea.setAttribute("autocapitalize","off"),this.hiddenTextarea.setAttribute("autocorrect","off"),this.hiddenTextarea.setAttribute("autocomplete","off"),this.hiddenTextarea.setAttribute("spellcheck","false"),this.hiddenTextarea.setAttribute("data-fabric-hiddentextarea",""),this.hiddenTextarea.setAttribute("wrap","off");var t=this._calcTextareaPosition();this.hiddenTextarea.style.cssText="position: absolute; top: "+t.top+"; left: "+t.left+"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; paddingーtop: "+t.fontSize+";",i.document.body.appendChild(this.hiddenTextarea),i.util.addListener(this.hiddenTextarea,"keydown",this.onKeyDown.bind(this)),i.util.addListener(this.hiddenTextarea,"keyup",this.onKeyUp.bind(this)),i.util.addListener(this.hiddenTextarea,"input",this.onInput.bind(this)),i.util.addListener(this.hiddenTextarea,"copy",this.copy.bind(this)),i.util.addListener(this.hiddenTextarea,"cut",this.copy.bind(this)),i.util.addListener(this.hiddenTextarea,"paste",this.paste.bind(this)),i.util.addListener(this.hiddenTextarea,"compositionstart",this.onCompositionStart.bind(this)),i.util.addListener(this.hiddenTextarea,"compositionupdate",this.onCompositionUpdate.bind(this)),i.util.addListener(this.hiddenTextarea,"compositionend",this.onCompositionEnd.bind(this)),!this._clickHandlerInitialized&&this.canvas&&(i.util.addListener(this.canvas.upperCanvasEl,"click",this.onClick.bind(this)),this._clickHandlerInitialized=!0)},keysMap:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorRight",36:"moveCursorLeft",37:"moveCursorLeft",38:"moveCursorUp",39:"moveCursorRight",40:"moveCursorDown"},ctrlKeysMapUp:{67:"copy",88:"cut"},ctrlKeysMapDown:{65:"selectAll"},onClick:function(){this.hiddenTextarea&&this.hiddenTextarea.focus()},onKeyDown:function(t){if(this.isEditing){if(t.keyCode in this.keysMap)this[this.keysMap[t.keyCode]](t);else{if(!(t.keyCode in this.ctrlKeysMapDown&&(t.ctrlKey||t.metaKey)))return;this[this.ctrlKeysMapDown[t.keyCode]](t)}t.stopImmediatePropagation(),t.preventDefault(),t.keyCode>=33&&t.keyCode<=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas&&this.canvas.requestRenderAll()}},onKeyUp:function(t){!this.isEditing||this._copyDone||this.inCompositionMode?this._copyDone=!1:t.keyCode in this.ctrlKeysMapUp&&(t.ctrlKey||t.metaKey)&&(this[this.ctrlKeysMapUp[t.keyCode]](t),t.stopImmediatePropagation(),t.preventDefault(),this.canvas&&this.canvas.requestRenderAll())},onInput:function(t){var e=this.fromPaste;if(this.fromPaste=!1,t&&t.stopPropagation(),this.isEditing){var n,r,a,s,o,l=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,u=this._text.length,c=l.length,h=c-u,d=this.selectionStart,f=this.selectionEnd,m=d!==f;if(""===this.hiddenTextarea.value)return this.styles={},this.updateFromTextArea(),this.fire("changed"),void(this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll()));var p=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),_=d>p.selectionStart;m?(n=this._text.slice(d,f),h+=f-d):c<u&&(n=_?this._text.slice(f+h,f):this._text.slice(d,d-h)),r=l.slice(p.selectionEnd-h,p.selectionEnd),n&&n.length&&(r.length&&(a=this.getSelectionStyles(d,d+1,!1),a=r.map((function(){return a[0]}))),m?(s=d,o=f):_?(s=f-n.length,o=f):(s=f,o=f+n.length),this.removeStyleFromTo(s,o)),r.length&&(e&&r.join("")===i.copiedText&&!i.disableStyleCopyPaste&&(a=i.copiedTextStyle),this.insertNewStyleBlock(r,d,a)),this.updateFromTextArea(),this.fire("changed"),this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll())}},onCompositionStart:function(){this.inCompositionMode=!0},onCompositionEnd:function(){this.inCompositionMode=!1},onCompositionUpdate:function(t){this.compositionStart=t.target.selectionStart,this.compositionEnd=t.target.selectionEnd,this.updateTextareaPosition()},copy:function(){this.selectionStart!==this.selectionEnd&&(i.copiedText=this.getSelectedText(),i.disableStyleCopyPaste?i.copiedTextStyle=null:i.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0)},paste:function(){this.fromPaste=!0},_getClipboardData:function(t){return t&&t.clipboardData||i.window.clipboardData},_getWidthBeforeCursor:function(t,e){var n,i=this._getLineLeftOffset(t);return e>0&&(n=this.__charBounds[t][e-1],i+=n.left+n.width),i},getDownCursorOffset:function(t,e){var n=this._getSelectionForOffset(t,e),i=this.get2DCursorLocation(n),r=i.lineIndex;if(r===this._textLines.length-1||t.metaKey||34===t.keyCode)return this._text.length-n;var a=i.charIndex,s=this._getWidthBeforeCursor(r,a),o=this._getIndexOnLine(r+1,s),l=this._textLines[r].slice(a);return l.length+o+1+this.missingNewlineOffset(r)},_getSelectionForOffset:function(t,e){return t.shiftKey&&this.selectionStart!==this.selectionEnd&&e?this.selectionEnd:this.selectionStart},getUpCursorOffset:function(t,e){var n=this._getSelectionForOffset(t,e),i=this.get2DCursorLocation(n),r=i.lineIndex;if(0===r||t.metaKey||33===t.keyCode)return-n;var a=i.charIndex,s=this._getWidthBeforeCursor(r,a),o=this._getIndexOnLine(r-1,s),l=this._textLines[r].slice(0,a),u=this.missingNewlineOffset(r-1);return-this._textLines[r-1].length+o-l.length+(1-u)},_getIndexOnLine:function(t,e){for(var n,i,r=this._textLines[t],a=this._getLineLeftOffset(t),s=a,o=0,l=0,u=r.length;l<u;l++)if(n=this.__charBounds[t][l].width,s+=n,s>e){i=!0;var c=s-n,h=s,d=Math.abs(c-e),f=Math.abs(h-e);o=f<d?l:l-1;break}return i||(o=r.length-1),o},moveCursorDown:function(t){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorUpOrDown("Down",t)},moveCursorUp:function(t){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorUpOrDown("Up",t)},_moveCursorUpOrDown:function(t,e){var n="get"+t+"CursorOffset",i=this[n](e,"right"===this._selectionDirection);e.shiftKey?this.moveCursorWithShift(i):this.moveCursorWithoutShift(i),0!==i&&(this.setSelectionInBoundaries(),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorWithShift:function(t){var e="left"===this._selectionDirection?this.selectionStart+t:this.selectionEnd+t;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,e),0!==t},moveCursorWithoutShift:function(t){return t<0?(this.selectionStart+=t,this.selectionEnd=this.selectionStart):(this.selectionEnd+=t,this.selectionStart=this.selectionEnd),0!==t},moveCursorLeft:function(t){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorLeftOrRight("Left",t)},_move:function(t,e,n){var i;if(t.altKey)i=this["findWordBoundary"+n](this[e]);else{if(!t.metaKey&&35!==t.keyCode&&36!==t.keyCode)return this[e]+="Left"===n?-1:1,!0;i=this["findLineBoundary"+n](this[e])}if(void 0!==typeof i&&this[e]!==i)return this[e]=i,!0},_moveLeft:function(t,e){return this._move(t,e,"Left")},_moveRight:function(t,e){return this._move(t,e,"Right")},moveCursorLeftWithoutShift:function(t){var e=!0;return this._selectionDirection="left",this.selectionEnd===this.selectionStart&&0!==this.selectionStart&&(e=this._moveLeft(t,"selectionStart")),this.selectionEnd=this.selectionStart,e},moveCursorLeftWithShift:function(t){return"right"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveLeft(t,"selectionEnd"):0!==this.selectionStart?(this._selectionDirection="left",this._moveLeft(t,"selectionStart")):void 0},moveCursorRight:function(t){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorLeftOrRight("Right",t)},_moveCursorLeftOrRight:function(t,e){var n="moveCursor"+t+"With";this._currentCursorOpacity=1,e.shiftKey?n+="Shift":n+="outShift",this[n](e)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(t){return"left"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveRight(t,"selectionStart"):this.selectionEnd!==this._text.length?(this._selectionDirection="right",this._moveRight(t,"selectionEnd")):void 0},moveCursorRightWithoutShift:function(t){var e=!0;return this._selectionDirection="right",this.selectionStart===this.selectionEnd?(e=this._moveRight(t,"selectionStart"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,e},removeChars:function(t,e){"undefined"===typeof e&&(e=t+1),this.removeStyleFromTo(t,e),this._text.splice(t,e-t),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()},insertChars:function(t,e,n,r){"undefined"===typeof r&&(r=n),r>n&&this.removeStyleFromTo(n,r);var a=i.util.string.graphemeSplit(t);this.insertNewStyleBlock(a,n,e),this._text=[].concat(this._text.slice(0,n),a,this._text.slice(r)),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()}}),function(){var t=i.util.toFixed,e=/ +/g;i.util.object.extend(i.Text.prototype,{_toSVG:function(){var t=this._getSVGLeftTopOffsets(),e=this._getSVGTextAndBg(t.textTop,t.textLeft);return this._wrapSVGTextAndBg(e)},toSVG:function(t){return this._createBaseSVGMarkup(this._toSVG(),{reviver:t,noStyle:!0,withShadow:!0})},_getSVGLeftTopOffsets:function(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}},_wrapSVGTextAndBg:function(t){var e=!0,n=this.getSvgTextDecoration(this);return[t.textBgRects.join(""),'\t\t<text xml:space="preserve" ',this.fontFamily?'font-family="'+this.fontFamily.replace(/"/g,"'")+'" ':"",this.fontSize?'font-size="'+this.fontSize+'" ':"",this.fontStyle?'font-style="'+this.fontStyle+'" ':"",this.fontWeight?'font-weight="'+this.fontWeight+'" ':"",n?'text-decoration="'+n+'" ':"",'style="',this.getSvgStyles(e),'"',this.addPaintOrder()," >",t.textSpans.join(""),"</text>\n"]},_getSVGTextAndBg:function(t,e){var n,i=[],r=[],a=t;this._setSVGBg(r);for(var s=0,o=this._textLines.length;s<o;s++)n=this._getLineLeftOffset(s),(this.textBackgroundColor||this.styleHas("textBackgroundColor",s))&&this._setSVGTextLineBg(r,s,e+n,a),this._setSVGTextLineText(i,s,e+n,a),a+=this.getHeightOfLine(s);return{textSpans:i,textBgRects:r}},_createTextCharSpan:function(n,r,a,s){var o=n!==n.trim()||n.match(e),l=this.getSvgSpanStyles(r,o),u=l?'style="'+l+'"':"",c=r.deltaY,h="",d=i.Object.NUM_FRACTION_DIGITS;return c&&(h=' dy="'+t(c,d)+'" '),['<tspan x="',t(a,d),'" y="',t(s,d),'" ',h,u,">",i.util.string.escapeXml(n),"</tspan>"].join("")},_setSVGTextLineText:function(t,e,n,i){var r,a,s,o,l,u=this.getHeightOfLine(e),c=-1!==this.textAlign.indexOf("justify"),h="",d=0,f=this._textLines[e];i+=u*(1-this._fontSizeFraction)/this.lineHeight;for(var m=0,p=f.length-1;m<=p;m++)l=m===p||this.charSpacing,h+=f[m],s=this.__charBounds[e][m],0===d?(n+=s.kernedWidth-s.width,d+=s.width):d+=s.kernedWidth,c&&!l&&this._reSpaceAndTab.test(f[m])&&(l=!0),l||(r=r||this.getCompleteStyleDeclaration(e,m),a=this.getCompleteStyleDeclaration(e,m+1),l=this._hasStyleChangedForSvg(r,a)),l&&(o=this._getStyleDeclaration(e,m)||{},t.push(this._createTextCharSpan(h,o,n,i)),h="",r=a,n+=d,d=0)},_pushTextBgRect:function(e,n,r,a,s,o){var l=i.Object.NUM_FRACTION_DIGITS;e.push("\t\t<rect ",this._getFillAttributes(n),' x="',t(r,l),'" y="',t(a,l),'" width="',t(s,l),'" height="',t(o,l),'"></rect>\n')},_setSVGTextLineBg:function(t,e,n,i){for(var r,a,s=this._textLines[e],o=this.getHeightOfLine(e)/this.lineHeight,l=0,u=0,c=this.getValueOfPropertyAt(e,0,"textBackgroundColor"),h=0,d=s.length;h<d;h++)r=this.__charBounds[e][h],a=this.getValueOfPropertyAt(e,h,"textBackgroundColor"),a!==c?(c&&this._pushTextBgRect(t,c,n+u,i,l,o),u=r.left,l=r.width,c=a):l+=r.kernedWidth;a&&this._pushTextBgRect(t,a,n+u,i,l,o)},_getFillAttributes:function(t){var e=t&&"string"===typeof t?new i.Color(t):"";return e&&e.getSource()&&1!==e.getAlpha()?'opacity="'+e.getAlpha()+'" fill="'+e.setAlpha(1).toRgb()+'"':'fill="'+t+'"'},_getSVGLineTopOffset:function(t){for(var e=0,n=0,i=0;i<t;i++)e+=this.getHeightOfLine(i);return n=this.getHeightOfLine(i),{lineTop:e,offset:(this._fontSizeMult-this._fontSizeFraction)*n/(this.lineHeight*this._fontSizeMult)}},getSvgStyles:function(t){var e=i.Object.prototype.getSvgStyles.call(this,t);return e+" white-space: pre;"}})}(),function(t){"use strict";var e=t.fabric||(t.fabric={});e.Textbox=e.util.createClass(e.IText,e.Observable,{type:"textbox",minWidth:20,dynamicMinWidth:2,__cachedLines:null,lockScalingFlip:!0,noScaleCache:!1,_dimensionAffectingProps:e.Text.prototype._dimensionAffectingProps.concat("width"),_wordJoiners:/[ \t\r]/,splitByGrapheme:!1,initDimensions:function(){this.__skipDimension||(this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this._clearCache(),this.dynamicMinWidth=0,this._styleMap=this._generateStyleMap(this._splitText()),this.dynamicMinWidth>this.width&&this._set("width",this.dynamicMinWidth),-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.height=this.calcTextHeight(),this.saveState({propertySet:"_dimensionAffectingProps"}))},_generateStyleMap:function(t){for(var e=0,n=0,i=0,r={},a=0;a<t.graphemeLines.length;a++)"\n"===t.graphemeText[i]&&a>0?(n=0,i++,e++):!this.splitByGrapheme&&this._reSpaceAndTab.test(t.graphemeText[i])&&a>0&&(n++,i++),r[a]={line:e,offset:n},i+=t.graphemeLines[a].length,n+=t.graphemeLines[a].length;return r},styleHas:function(t,n){if(this._styleMap&&!this.isWrapping){var i=this._styleMap[n];i&&(n=i.line)}return e.Text.prototype.styleHas.call(this,t,n)},isEmptyStyles:function(t){if(!this.styles)return!0;var e,n,i=0,r=t+1,a=!1,s=this._styleMap[t],o=this._styleMap[t+1];for(var l in s&&(t=s.line,i=s.offset),o&&(r=o.line,a=r===t,e=o.offset),n="undefined"===typeof t?this.styles:{line:this.styles[t]},n)for(var u in n[l])if(u>=i&&(!a||u<e))for(var c in n[l][u])return!1;return!0},_getStyleDeclaration:function(t,e){if(this._styleMap&&!this.isWrapping){var n=this._styleMap[t];if(!n)return null;t=n.line,e=n.offset+e}return this.callSuper("_getStyleDeclaration",t,e)},_setStyleDeclaration:function(t,e,n){var i=this._styleMap[t];t=i.line,e=i.offset+e,this.styles[t][e]=n},_deleteStyleDeclaration:function(t,e){var n=this._styleMap[t];t=n.line,e=n.offset+e,delete this.styles[t][e]},_getLineStyle:function(t){var e=this._styleMap[t];return!!this.styles[e.line]},_setLineStyle:function(t){var e=this._styleMap[t];this.styles[e.line]={}},_wrapText:function(t,e){var n,i=[];for(this.isWrapping=!0,n=0;n<t.length;n++)i=i.concat(this._wrapLine(t[n],n,e));return this.isWrapping=!1,i},_measureWord:function(t,e,n){var i,r=0,a=!0;n=n||0;for(var s=0,o=t.length;s<o;s++){var l=this._getGraphemeBox(t[s],e,s+n,i,a);r+=l.kernedWidth,i=t[s]}return r},_wrapLine:function(t,n,i,r){var a=0,s=this.splitByGrapheme,o=[],l=[],u=s?e.util.string.graphemeSplit(t):t.split(this._wordJoiners),c="",h=0,d=s?"":" ",f=0,m=0,p=0,_=!0,g=this._getWidthOfCharSpacing();r=r||0;0===u.length&&u.push([]),i-=r;for(var v=0;v<u.length;v++)c=s?u[v]:e.util.string.graphemeSplit(u[v]),f=this._measureWord(c,n,h),h+=c.length,a+=m+f-g,a>i&&!_?(o.push(l),l=[],a=f,_=!0):a+=g,_||s||l.push(d),l=l.concat(c),m=s?0:this._measureWord([d],n,h),h++,_=!1,f>p&&(p=f);return v&&o.push(l),p+r>this.dynamicMinWidth&&(this.dynamicMinWidth=p-g+r),o},isEndOfWrapping:function(t){return!this._styleMap[t+1]||this._styleMap[t+1].line!==this._styleMap[t].line},missingNewlineOffset:function(t){return this.splitByGrapheme?this.isEndOfWrapping(t)?1:0:1},_splitTextIntoLines:function(t){for(var n=e.Text.prototype._splitTextIntoLines.call(this,t),i=this._wrapText(n.lines,this.width),r=new Array(i.length),a=0;a<i.length;a++)r[a]=i[a].join("");return n.lines=r,n.graphemeLines=i,n},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},_removeExtraneousStyles:function(){var t={};for(var e in this._styleMap)this._textLines[e]&&(t[this._styleMap[e].line]=1);for(var e in this.styles)t[e]||delete this.styles[e]},toObject:function(t){return this.callSuper("toObject",["minWidth","splitByGrapheme"].concat(t))}}),e.Textbox.fromObject=function(t,n){return e.Object._fromObject("Textbox",t,n,"text")}}(e),function(){var t=i.controlsUtils,e=t.scaleSkewCursorStyleHandler,n=t.scaleCursorStyleHandler,r=t.scalingEqually,a=t.scalingYOrSkewingX,s=t.scalingXOrSkewingY,o=t.scaleOrSkewActionName,l=i.Object.prototype.controls;if(l.ml=new i.Control({x:-.5,y:0,cursorStyleHandler:e,actionHandler:s,getActionName:o}),l.mr=new i.Control({x:.5,y:0,cursorStyleHandler:e,actionHandler:s,getActionName:o}),l.mb=new i.Control({x:0,y:.5,cursorStyleHandler:e,actionHandler:a,getActionName:o}),l.mt=new i.Control({x:0,y:-.5,cursorStyleHandler:e,actionHandler:a,getActionName:o}),l.tl=new i.Control({x:-.5,y:-.5,cursorStyleHandler:n,actionHandler:r}),l.tr=new i.Control({x:.5,y:-.5,cursorStyleHandler:n,actionHandler:r}),l.bl=new i.Control({x:-.5,y:.5,cursorStyleHandler:n,actionHandler:r}),l.br=new i.Control({x:.5,y:.5,cursorStyleHandler:n,actionHandler:r}),l.mtr=new i.Control({x:0,y:-.5,actionHandler:t.rotationWithSnapping,cursorStyleHandler:t.rotationStyleHandler,offsetY:-40,withConnection:!0,actionName:"rotate"}),i.Textbox){var u=i.Textbox.prototype.controls={};u.mtr=l.mtr,u.tr=l.tr,u.br=l.br,u.tl=l.tl,u.bl=l.bl,u.mt=l.mt,u.mb=l.mb,u.mr=new i.Control({x:.5,y:0,actionHandler:t.changeWidth,cursorStyleHandler:e,actionName:"resizing"}),u.ml=new i.Control({x:-.5,y:0,actionHandler:t.changeWidth,cursorStyleHandler:e,actionName:"resizing"})}}()}).call(this,n("b639").Buffer)},"7be6":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e="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 i(t){return t>1&&t<5}function r(t,e,n,r){var a=t+" ";switch(n){case"s":return e||r?"pár sekúnd":"pár sekundami";case"ss":return e||r?a+(i(t)?"sekundy":"sekúnd"):a+"sekundami";case"m":return e?"minúta":r?"minútu":"minútou";case"mm":return e||r?a+(i(t)?"minúty":"minút"):a+"minútami";case"h":return e?"hodina":r?"hodinu":"hodinou";case"hh":return e||r?a+(i(t)?"hodiny":"hodín"):a+"hodinami";case"d":return e||r?"deň":"dňom";case"dd":return e||r?a+(i(t)?"dni":"dní"):a+"dňami";case"M":return e||r?"mesiac":"mesiacom";case"MM":return e||r?a+(i(t)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return e||r?"rok":"rokom";case"yy":return e||r?a+(i(t)?"roky":"rokov"):a+"rokmi"}}var a=t.defineLocale("sk",{months:e,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a}))},"7db0":function(t,e,n){"use strict";var i=n("23e7"),r=n("b727").find,a=n("44d2"),s=n("ae40"),o="find",l=!0,u=s(o);o in[]&&Array(1)[o]((function(){l=!1})),i({target:"Array",proto:!0,forced:l||!u},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),a(o)},"7f33":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}});return e}))},8155:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";function e(t,e,n,i){var r=t+" ";switch(n){case"s":return e||i?"nekaj sekund":"nekaj sekundami";case"ss":return r+=1===t?e?"sekundo":"sekundi":2===t?e||i?"sekundi":"sekundah":t<5?e||i?"sekunde":"sekundah":"sekund",r;case"m":return e?"ena minuta":"eno minuto";case"mm":return r+=1===t?e?"minuta":"minuto":2===t?e||i?"minuti":"minutama":t<5?e||i?"minute":"minutami":e||i?"minut":"minutami",r;case"h":return e?"ena ura":"eno uro";case"hh":return r+=1===t?e?"ura":"uro":2===t?e||i?"uri":"urama":t<5?e||i?"ure":"urami":e||i?"ur":"urami",r;case"d":return e||i?"en dan":"enim dnem";case"dd":return r+=1===t?e||i?"dan":"dnem":2===t?e||i?"dni":"dnevoma":e||i?"dni":"dnevi",r;case"M":return e||i?"en mesec":"enim mesecem";case"MM":return r+=1===t?e||i?"mesec":"mesecem":2===t?e||i?"meseca":"mesecema":t<5?e||i?"mesece":"meseci":e||i?"mesecev":"meseci",r;case"y":return e||i?"eno leto":"enim letom";case"yy":return r+=1===t?e||i?"leto":"letom":2===t?e||i?"leti":"letoma":t<5?e||i?"leta":"leti":e||i?"let":"leti",r}}var n=t.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:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},"81e9":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",e[7],e[8],e[9]];function i(t,e,n,i){var a="";switch(n){case"s":return i?"muutaman sekunnin":"muutama sekunti";case"ss":return i?"sekunnin":"sekuntia";case"m":return i?"minuutin":"minuutti";case"mm":a=i?"minuutin":"minuuttia";break;case"h":return i?"tunnin":"tunti";case"hh":a=i?"tunnin":"tuntia";break;case"d":return i?"päivän":"päivä";case"dd":a=i?"päivän":"päivää";break;case"M":return i?"kuukauden":"kuukausi";case"MM":a=i?"kuukauden":"kuukautta";break;case"y":return i?"vuoden":"vuosi";case"yy":a=i?"vuoden":"vuotta";break}return a=r(t,i)+" "+a,a}function r(t,i){return t<10?i?n[t]:e[t]:t}var a=t.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: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}});return a}))},8230:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},i=t.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(t){return"م"===t},meridiem:function(t,e,n){return t<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(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(t){return n[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:0,doy:6}});return i}))},"84aa":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(t){var e=t%10,n=t%100;return 0===t?t+"-ев":0===n?t+"-ен":n>10&&n<20?t+"-ти":1===e?t+"-ви":2===e?t+"-ри":7===e||8===e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}});return e}))},8689:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"},i=t.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(t){return t.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},week:{dow:1,doy:4}});return i}))},8840:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t){return 0===t.indexOf("un")?"n"+t:"en "+t},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}});return e}))},"898b":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e="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("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,a=t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,i){return t?/-MMM-/.test(i)?n[t.month()]:e[t.month()]:e},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return a}))},"8d47":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";function e(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}var n=t.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(t,e){return t?"string"===typeof e&&/D/.test(e.substring(0,e.indexOf("MMMM")))?this._monthsGenitiveEl[t.month()]:this._monthsNominativeEl[t.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(t,e,n){return t>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(t){return"μ"===(t+"").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(t,n){var i=this._calendarEl[t],r=n&&n.hours();return e(i)&&(i=i.apply(n)),i.replace("{}",r%12===1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}});return n}))},"8d57":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e="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("_");function i(t){return t%10<5&&t%10>1&&~~(t/10)%10!==1}function r(t,e,n){var r=t+" ";switch(n){case"ss":return r+(i(t)?"sekundy":"sekund");case"m":return e?"minuta":"minutę";case"mm":return r+(i(t)?"minuty":"minut");case"h":return e?"godzina":"godzinę";case"hh":return r+(i(t)?"godziny":"godzin");case"MM":return r+(i(t)?"miesiące":"miesięcy");case"yy":return r+(i(t)?"lata":"lat")}}var a=t.defineLocale("pl",{months:function(t,i){return t?""===i?"("+n[t.month()]+"|"+e[t.month()]+")":/D MMMM/.test(i)?n[t.month()]:e[t.month()]:e},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:r,m:r,mm:r,h:r,hh:r,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:r,y:"rok",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a}))},"8df48":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"},i=t.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(t){return/بعد از ظهر/.test(t)},meridiem:function(t,e,n){return t<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(t){return t.replace(/[۰-۹]/g,(function(t){return n[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}});return i}))},"8e73":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},i=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(t){return function(e,n,a,s){var o=i(e),l=r[t][i(e)];return 2===o&&(l=l[n?0:1]),l.replace(/%d/i,e)}},s=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],o=t.defineLocale("ar",{months:s,monthsShort:s,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(t){return"م"===t},meridiem:function(t,e,n){return t<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(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(t){return n[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return o}))},9043:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},i=t.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(t){return t.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(t,e){return 12===t&&(t=0),"রাত"===e&&t>=4||"দুপুর"===e&&t<5||"বিকাল"===e?t+12:t},meridiem:function(t,e,n){return t<4?"রাত":t<10?"সকাল":t<17?"দুপুর":t<20?"বিকাল":"রাত"},week:{dow:0,doy:6}});return i}))},"90ea":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,n){var i=100*t+e;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},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 年"}});return e}))},9152:function(t,e){e.read=function(t,e,n,i,r){var a,s,o=8*r-i-1,l=(1<<o)-1,u=l>>1,c=-7,h=n?r-1:0,d=n?-1:1,f=t[e+h];for(h+=d,a=f&(1<<-c)-1,f>>=-c,c+=o;c>0;a=256*a+t[e+h],h+=d,c-=8);for(s=a&(1<<-c)-1,a>>=-c,c+=i;c>0;s=256*s+t[e+h],h+=d,c-=8);if(0===a)a=1-u;else{if(a===l)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,i),a-=u}return(f?-1:1)*s*Math.pow(2,a-i)},e.write=function(t,e,n,i,r,a){var s,o,l,u=8*a-r-1,c=(1<<u)-1,h=c>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:a-1,m=i?1:-1,p=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),e+=s+h>=1?d/l:d*Math.pow(2,1-h),e*l>=2&&(s++,l/=2),s+h>=c?(o=0,s=c):s+h>=1?(o=(e*l-1)*Math.pow(2,r),s+=h):(o=e*Math.pow(2,h-1)*Math.pow(2,r),s=0));r>=8;t[n+f]=255&o,f+=m,o/=256,r-=8);for(s=s<<r|o,u+=r;u>0;t[n+f]=255&s,f+=m,s/=256,u-=8);t[n+f-m]|=128*p}},"957c":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";function e(t,e){var n=t.split("_");return e%10===1&&e%100!==11?n[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?n[1]:n[2]}function n(t,n,i){var r={ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===i?n?"минута":"минуту":t+" "+e(r[i],+t)}var i=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],r=t.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:i,longMonthsParse:i,shortMonthsParse:i,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(t){if(t.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(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:n,m:n,mm:n,h:"час",hh:n,d:"день",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(t){return/^(дня|вечера)$/.test(t)},meridiem:function(t,e,n){return t<4?"ночи":t<12?"утра":t<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-й";case"D":return t+"-го";case"w":case"W":return t+"-я";default:return t}},week:{dow:1,doy:4}});return r}))},"958b":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";function e(t,e,n,i){switch(n){case"s":return e?"хэдхэн секунд":"хэдхэн секундын";case"ss":return t+(e?" секунд":" секундын");case"m":case"mm":return t+(e?" минут":" минутын");case"h":case"hh":return t+(e?" цаг":" цагийн");case"d":case"dd":return t+(e?" өдөр":" өдрийн");case"M":case"MM":return t+(e?" сар":" сарын");case"y":case"yy":return t+(e?" жил":" жилийн");default:return t}}var n=t.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(t){return"ҮХ"===t},meridiem:function(t,e,n){return t<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+" өдөр";default:return t}}});return n}))},9609:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"},n=t.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(t){var n=t%10,i=t>=100?100:null;return t+(e[t]||e[n]||e[i])},week:{dow:1,doy:7}});return n}))},"972c":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";function e(t,e,n){var i={ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"},r=" ";return(t%100>=20||t>=100&&t%100===0)&&(r=" de "),t+r+i[n]}var n=t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:e,m:"un minut",mm:e,h:"o oră",hh:e,d:"o zi",dd:e,M:"o lună",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}});return n}))},9797:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t){var e=t,n="",i=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];return e>20?n=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(n=i[e]),t+n},week:{dow:1,doy:4}});return e}))},"99af":function(t,e,n){"use strict";var i=n("23e7"),r=n("d039"),a=n("e8b5"),s=n("861d"),o=n("7b0b"),l=n("50c4"),u=n("8418"),c=n("65f0"),h=n("1dde"),d=n("b622"),f=n("2d00"),m=d("isConcatSpreadable"),p=9007199254740991,_="Maximum allowed index exceeded",g=f>=51||!r((function(){var t=[];return t[m]=!1,t.concat()[0]!==t})),v=h("concat"),y=function(t){if(!s(t))return!1;var e=t[m];return void 0!==e?!!e:a(t)},b=!g||!v;i({target:"Array",proto:!0,forced:b},{concat:function(t){var e,n,i,r,a,s=o(this),h=c(s,0),d=0;for(e=-1,i=arguments.length;e<i;e++)if(a=-1===e?s:arguments[e],y(a)){if(r=l(a.length),d+r>p)throw TypeError(_);for(n=0;n<r;n++,d++)n in a&&u(h,d,a[n])}else{if(d>=p)throw TypeError(_);u(h,d++,a)}return h.length=d,h}})},"9f26":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(t,e){switch(e){case"D":return t+(1===t?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}});return e}))},a356:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}});return e}))},a7fa:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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}});return e}))},ada2:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";function e(t,e){var n=t.split("_");return e%10===1&&e%100!==11?n[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?n[1]:n[2]}function n(t,n,i){var r={ss:n?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:n?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:n?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===i?n?"хвилина":"хвилину":"h"===i?n?"година":"годину":t+" "+e(r[i],+t)}function i(t,e){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};if(!0===t)return n["nominative"].slice(1,7).concat(n["nominative"].slice(0,1));if(!t)return n["nominative"];var i=/(\[[ВвУу]\]) ?dddd/.test(e)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(e)?"genitive":"nominative";return n[i][t.day()]}function r(t){return function(){return t+"о"+(11===this.hours()?"б":"")+"] LT"}}var a=t.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:i,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:r("[Сьогодні "),nextDay:r("[Завтра "),lastDay:r("[Вчора "),nextWeek:r("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return r("[Минулої] dddd [").call(this);case 1:case 2:case 4:return r("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:n,m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(t){return/^(дня|вечора)$/.test(t)},meridiem:function(t,e,n){return t<4?"ночі":t<12?"ранку":t<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t+"-й";case"D":return t+"-го";default:return t}},week:{dow:1,doy:7}});return a}))},aea8:function(t,e,n){"use strict";(function(t){var i=n("2b0e"),r=n("7a94");function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var h=["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"],d={default:{fill:"rgba(255, 255, 255, 0.7)",borderColor:"rgba(0,120,212,1)",stroke:"#0078d4",labelFill:"rgba(51,51,51,1)"},selection:{fill:"rgba(222, 241, 255, 0.7)",borderColor:"rgba(0,120,212,1)",stroke:"#0078d4",labelFill:"#0078d4"}},f={left:50,top:50,fill:d.default.fill,width:150,height:100,objectCaching:!1,transparentCorners:!1,borderColor:d.default.borderColor,stroke:d.default.stroke,cornerColor:"rgba(0, 120, 212, 1)",cornerStrokeColor:"rgba(0, 120, 212, 1)",cornerSize:8,cornerStyle:"circle",hasBorders:!0,hasRotatingPoint:!1,lockScalingFlip:!0,minScaleLimit:.2},m={left:0,top:0,fill:d.default.fill,width:60,height:60,objectCaching:!1,transparentCorners:!1,borderColor:d.default.borderColor,stroke:d.default.stroke,cornerColor:"rgba(0, 120, 212, 1)",cornerStrokeColor:"rgba(0, 120, 212, 1)",cornerSize:5,cornerStyle:"circle",hasBorders:!1,hasRotatingPoint:!1,lockScalingFlip:!0,minScaleLimit:.2,originX:"left",originY:"top",originLeft:0,originTop:0},p=r["fabric"].util.createClass(r["fabric"].Rect,{type:"rect",initialize:function(t){t||(t={}),this.callSuper("initialize",t),this.set("label",t.label||""),this.set("labelFontFamily",t.labelFontFamily||"Helvetica"),this.set("labelFontSize",t.labelFontSize||14),this.set("labelFill",t.labelFill||""),this.set("custom",t.custom||{})},toObject:function(){return r["fabric"].util.object.extend(this.callSuper("toObject"),{label:this.get("label"),labelFontFamily:this.get("labelFontFamily"),labelFontSize:this.get("labelFontSize"),labelFill:this.get("labelFill"),custom:this.get("custom")})},_render:function(t){this.callSuper("_render",t),t.font="".concat(this.labelFontSize,"px ").concat(this.labelFontFamily),t.fillStyle=this.labelFill;for(var e=this.label,n=0,i=0,r=0,a=0,s=0;s<e.length;s++){if(i+=t.measureText(e[s]).width,i>=a&&(a=i),i>100){var o=e.substring(n,s);t.fillText(o,-i/2,r),r+=20,i=0,n=s}if(r>=40){t.fillText("......",-a/2,r);break}s==e.length-1&&t.fillText(e.substring(n,s+1),-i/2,r)}}}),_=r["fabric"].util.createClass(r["fabric"].Polygon,{type:"polygon",initialize:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;e||(e={}),this.callSuper("initialize",t,e),this.set("label",e.label||""),this.set("labelFontFamily",e.labelFontFamily||"Helvetica"),this.set("labelFontSize",e.labelFontSize||14),this.set("labelFill",e.labelFill||""),this.set("custom",e.custom||{}),this.set("originLeft",e.left||0),this.set("originTop",e.top||0)},toObject:function(){return r["fabric"].util.object.extend(this.callSuper("toObject"),{label:this.get("label"),labelFontFamily:this.get("labelFontFamily"),labelFontSize:this.get("labelFontSize"),labelFill:this.get("labelFill"),custom:this.get("custom"),points:this.get("points"),originLeft:this.get("originLeft"),originTop:this.get("originTop")})},_render:function(t){this.callSuper("_render",t),t.font="".concat(this.labelFontSize,"px ").concat(this.labelFontFamily),t.fillStyle=this.labelFill;for(var e=this.label,n=0,i=0,r=0,a=0,s=0;s<e.length;s++){if(i+=t.measureText(e[s]).width,i>=a&&(a=i),i>100){var o=e.substring(n,s);t.fillText(o,-i/2,r),r+=20,i=0,n=s}if(r>=40){t.fillText("......",-a/2,r);break}s==e.length-1&&t.fillText(e.substring(n,s+1),-i/2,r)}}}),g=function(){function t(e,n){a(this,t),this.imageUrl=e.img;var i=232,r=34;this.viewWidth=e.width-i-r,this.id=e.id,document.getElementById(e.id).style.width=e.width+"PX",this.viewHeight=e.width,this.deviceName=e.deviceName,this.historyData=e.historyData,this.roiName=e.roiName,this.mode=e.mode,this.deviceCode=e.deviceCode,this.scale=1,this.img={width:0,height:0},this.callback=n,this.init()}return o(t,[{key:"init",value:function(){var t=this;this.loadImage().then((function(){console.log("可视区域-".concat(t.viewWidth,",图片:").concat(t.img.width,"-").concat(t.img.height)),t.viewHeight=Number((t.viewWidth*t.img.height/t.img.width).toFixed(2)),t.scale=Number((t.viewWidth/t.img.width).toFixed(2));var e=document.getElementById("".concat(t.id,"_canvas"));e.width=t.viewWidth,e.height=t.viewHeight,t.canvas=new r["fabric"].Canvas("".concat(t.id,"_canvas"),{perPixelTargetFind:!0,selection:!1}),t.historyData.length>0&&t.setData(t.historyData),t.addEventListener(),"[object String]"===Object.prototype.toString.call(t.imageUrl)&&t.setBackgroundImage(t.imageUrl),t.callback("loaded")}))}},{key:"loadImage",value:function(){var t=this;return new Promise((function(e){var n=t;if("[object String]"===Object.prototype.toString.call(n.imageUrl)){var i=new Image;i.src=n.imageUrl,i.setAttribute("crossOrigin","anonymous"),i.onload=function(){var t=this;n.imageUrl.startsWith("data:image"),n.img.width=t.width,n.img.height=t.height,e()},i.onerror=function(){t.img.width=1920,t.img.height=1080,e()}}else{var r=n.imageUrl;r.width&&r.height?(n.img.width=Number(r.width),n.img.height=Number(r.height)):(n.img.width=1920,n.img.height=1080),e()}}))}},{key:"setBackgroundImage",value:function(t){this.canvas.setBackgroundImage(t,this.canvas.renderAll.bind(this.canvas),{originX:"left",originY:"top",scaleX:this.viewWidth/this.img.width,scaleY:this.viewHeight/this.img.height,crossOrigin:"anonymous",opacity:"live"===this.mode?0:1})}},{key:"addEventListener",value:function(){var t=this,e="";this.canvas.off("selection:created").on("selection:created",(function(){t.callback()})),this.canvas.off("object:scaling").on("object:scaling",(function(t){var n=t.target;e||(e=t.target.label),n.set({label:""})})),this.canvas.on("object:scaled",(function(n){var i=n.target,r=i.scaleX,a=i.scaleY;i.set({label:e,width:i.width*r,height:i.height*a,scaleX:1,scaleY:1}),e="",t.canvas.renderAll(),t.callback("select")})),this.canvas.off("object:moving").on("object:moving",(function(e){var n=e.target,i=t.viewHeight-n.height*n.scaleY,r=t.viewWidth-n.width*n.scaleX;null!=n&&(n.top>=i+2?n.top=i:n.top<0&&(n.top=0),n.left>r+2?n.left=r:n.left<0&&(n.left=0))})),this.canvas.off("object:moved").on("object:moved",(function(e){var n=e.target;if("rect"!==n.type){var i={label:n.label,custom:n.custom};t.remove();var r=t.getPointsByCenter(n.points,n.left,n.top,n.originLeft,n.originTop);t.add("polygon",c({points:r},i))}t.callback("select")})),this.canvas.off("mouse:down").on("mouse:down",this.mouseDownUpHandler.bind(this,arguments)),this.canvas.off("mouse:up").on("mouse:up",this.mouseDownUpHandler.bind(this,arguments))}},{key:"mouseDownUpHandler",value:function(t){t.target?("rect"!==t.target.type&&t.target.set({originLeft:t.target.left,originTop:t.target.top}),this.clearSelection(),this.setSelected().renderAll(),this.callback("select")):(this.clearSelection().renderAll(),this.callback())}},{key:"setSelected",value:function(){return this.canvas.getActiveObject().set({fill:d.selection.fill,labelFill:d.selection.labelFill}),this.canvas}},{key:"clearSelection",value:function(){return this.canvas.getObjects().map((function(t){t.set({fill:d.default.fill,labelFill:d.default.labelFill})})),this.canvas}},{key:"calcPosition",value:function(t,e){return Number("y"===e?(t*this.scale).toFixed(2):(t/this.scale).toFixed(2))}},{key:"generateAreaName",value:function(){var t="".concat(this.deviceName,"-围栏区域");this.roiName&&(t=this.roiName);var e=[];this.getOriginData().map((function(n){var i=n.label.replace(t,"");e.push(i)}));for(var n=h[0],i=0,r=h.length;i<r;i++){var a=h[i];if(-1===e.indexOf(a)){n=a;break}}return t+n}},{key:"getPointsByCoord",value:function(t){var e=[];return e.push({x:t.x,y:t.y}),e.push({x:Number((t.x+t.width).toFixed(2)),y:t.y}),e.push({x:Number((t.x+t.width).toFixed(2)),y:Number((t.y+t.height).toFixed(2))}),e.push({x:t.x,y:Number((t.y+t.height).toFixed(2))}),e}},{key:"getCoordByPoint",value:function(t){var e=[],n=[];t.map((function(t){e.push(t.x),n.push(t.y)}));var i=Math.min.apply(Math,e),r=Math.max.apply(Math,e),a=Math.min.apply(Math,n),s=Math.max.apply(Math,n);return{x:i,y:a,width:Number((r-i).toFixed(2)),height:Number((s-a).toFixed(2))}}},{key:"getDataBylLabel",value:function(t){var e=null;return this.getData().map((function(n){n.name==t&&(e=n)})),e}},{key:"add",value:function(t,e){var n=null;if(t=t||"polygon","rect"===t)n=new p(c(c({label:this.generateAreaName(),labelFill:"rgba(51, 51, 51, 1)"},f),e)),n.controls.mtr.visible=!1;else{var i=e&&e.points?e.points:[];if(!i||0===i.length)return;var a=this.getCoordByPoint(i);n=new _(i,c(c(c({label:this.generateAreaName(),labelFill:"rgba(51, 51, 51, 1)"},m),e),{},{left:a.x,top:a.y}));var s=this.viewHeight,o=this.viewWidth;function l(t,e,n){var i=n.points[this.pointIndex].x-n.pathOffset.x,a=n.points[this.pointIndex].y-n.pathOffset.y;return r["fabric"].util.transformPoint({x:i,y:a},r["fabric"].util.multiplyTransformMatrices(n.canvas.viewportTransform,n.calcTransformMatrix()))}function u(t,e,n,i){var a=e.target,l=a.controls[a.__corner],u=a.toLocalPoint(new r["fabric"].Point(n,i),"center","center"),c=a._getNonTransformedDimensions(),h=a._getTransformedDimensions(0,0);n=u.x*c.x/h.x+a.pathOffset.x,i=u.y*c.y/h.y+a.pathOffset.y;n>=o?n=o:n<0&&(n=0),i>=s?i=s:i<0&&(i=0);var d={x:n,y:i};return l&&l.pointIndex>=0&&(a.points[l.pointIndex]=d),!0}function h(t,e){return function(n,i,a,s){var o=i.target,l=r["fabric"].util.transformPoint({x:o.points[t].x-o.pathOffset.x,y:o.points[t].y-o.pathOffset.y},o.calcTransformMatrix()),u=e(n,i,a,s),c=(o._setPositionDimensions({}),o._getNonTransformedDimensions()),h=(o.points[t].x-o.pathOffset.x)/c.x,d=(o.points[t].y-o.pathOffset.y)/c.y;return o.setPositionByOrigin(l,h+.5,d+.5),u}}n.controls=n.points.reduce((function(t,e,i){return t["p"+i]=new r["fabric"].Control({positionHandler:l,actionHandler:h(i>0?i-1:n.points.length-1,u),actionName:"modifyPolygon",pointIndex:i}),t}),{})}this.canvas.add(n),this.canvas.setActiveObject(n),this.clearSelection(),this.setSelected(),this.canvas.renderAll(),this.callback("add")}},{key:"remove",value:function(){var t=this.canvas.getActiveObject(),e=null;return t&&(e=this.getDataBylLabel(t.label),this.canvas.remove(t),this.callback("remove")),e}},{key:"getSelect",value:function(){return this.canvas.getActiveObject()}},{key:"getData",value:function(){var t=this,e=[];return this.getRoi(this.canvas.toJSON().objects,"x").map((function(n){var i={name:n.label,deviceCode:t.deviceCode,custom:n.custom,points:"rect"===n.type?t.getPointsByCoord(n):n.points,type:n.type};e.push(i)})),e}},{key:"getOriginData",value:function(){return this.canvas.toJSON().objects}},{key:"getRoi",value:function(t,e){var n=this,i=[];return t.forEach((function(t){var r={label:t.label,custom:t.custom,width:n.calcPosition(t.width*t.scaleX,e),height:n.calcPosition(t.height*t.scaleY,e),x:n.calcPosition(t.left,e),y:n.calcPosition(t.top,e),type:t.type};"rect"!==t.type&&(r["points"]=t.points.map((function(t){return{x:n.calcPosition(t.x,e),y:n.calcPosition(t.y,e)}}))),i.push(r)})),i}},{key:"getPointsByCenter",value:function(t,e,n,i,r){return t.map((function(t){return{x:t.x+(e-i),y:t.y+(n-r)}}))}},{key:"setData",value:function(t){var e=this;t.forEach((function(t){var n=e.getCoordByPoint(t.points);e.add(t.type,{label:t.name,custom:t.custom,left:e.calcPosition(n.x,"y"),top:e.calcPosition(n.y,"y"),width:e.calcPosition(n.width,"y"),height:e.calcPosition(n.height,"y"),points:t.points.map((function(t){return{x:e.calcPosition(t.x,"y"),y:e.calcPosition(t.y,"y")}}))})})),this.canvas.renderAll(),this.callback()}},{key:"setActiveByLabel",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=n;void 0!==i&&null!==i&&(this.canvas.getObjects().map((function(n){n.label==i&&(n.label=t,e.canvas.setActiveObject(n))})),this.clearSelection(),this.setSelected().renderAll())}},{key:"destroy",value:function(){this.canvas.clear(),this.canvas.dispose();var t=document.getElementById("".concat(this.id,"_canvas"));t&&(t.style="")}},{key:"getImageInfo",value:function(){return this.img}},{key:"clearMap",value:function(){return this.canvas.clear()}}]),t}(),v=function(){function t(e,n){a(this,t);var i="polygonCanvas",r=document.getElementById(i);r&&r.remove();var s=document.getElementById("".concat(e,"_canvas")),o=document.createElement("canvas");o.width=s.clientWidth,o.height=s.clientHeight,o.id=i,o.style.position="absolute",o.style.zIndex="9999",o.style.backgroundColor="rgba(0,0,0,.3)",s.parentNode.appendChild(o),this.canvas=document.getElementById(i),this.ctx=this.canvas.getContext("2d"),this.clientRect=this.canvas.getBoundingClientRect(),this.width=this.canvas.width,this.height=this.canvas.height,this.callback=n,this.flag=!1,this.points=[],this.canvas.addEventListener("mousedown",u,!1);var l=this;function u(t){if(0==t.button&&!l.flag){l.points.push({x:t.pageX-l.clientRect.x,y:t.pageY-l.clientRect.y});var e=l.points[l.points.length-1].x-l.points[0].x,n=l.points[l.points.length-1].y-l.points[0].y;l.points.length>3&&Math.abs(e)<=5&&Math.abs(n)<=5&&(console.log("满足闭合条件"),l.flag=!0,l.destroy(),l.points=l.points.slice(0,l.points.length-1),l.callback(l.points)),l.points.length>=1&&l.canvas.addEventListener("mousemove",c,!1),l.drawPolygon(l.points)}}function c(t){l.flag||l.drawPolygon(l.points.concat({x:t.pageX-l.clientRect.x,y:t.pageY-l.clientRect.y}))}this.beforeDrawInfo()}return o(t,[{key:"beforeDrawInfo",value:function(){var t=200;this.ctx.font="18px Microsoft YaHei",this.ctx.fillStyle="#ffffff",this.ctx.fillText("点击该区域,开始绘制多边形",this.width/2-t/2,this.height/2,t)}},{key:"destroy",value:function(){this.canvas.remove()}},{key:"drawPolygon",value:function(t){this.ctx.clearRect(0,0,this.width,this.height),this.ctx.strokeStyle="rgba(0, 120, 212, 1)",this.ctx.lineWidth=2,this.ctx.beginPath(),this.ctx.moveTo(t[0].x,t[0].y);for(var e=1;e<t.length;e++)this.ctx.lineTo(t[e].x,t[e].y);this.ctx.stroke()}}]),t}(),y=i["default"].extend({data:function(){return{}},methods:{onClick:function(t){this.$emit("click",t)}}});function b(t,e,n,i,r,a,s,o,l,u){"boolean"!==typeof s&&(l=o,o=s,s=!1);const c="function"===typeof n?n.options:n;let h;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),i&&(c._scopeId=i),a?(h=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=h):e&&(h=s?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,o(t))}),h)if(c.functional){const t=c.render;c.render=function(e,n){return h.call(n),t(e,n)}}else{const t=c.beforeCreate;c.beforeCreate=t?[].concat(t,h):[h]}return n}var w=y,x=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{on:{click:t.onClick}},[t._t("default")],2)},M=[],S=void 0,L=void 0,k=void 0,T=!1,D=b({render:x,staticRenderFns:M},S,w,L,T,k,!1,void 0,void 0,void 0),C=i["default"].extend({data:function(){return{}},props:{value:{type:String,default:""},placeholder:{type:String,default:""}},methods:{onInput:function(t){this.$emit("input",t.target.value)}}}),E=C,O=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],attrs:{type:"text",placeholder:t.placeholder},domProps:{value:t.value},on:{input:[function(e){e.target.composing||(t.value=e.target.value)},t.onInput]}})},Y=[],A=void 0,P=void 0,R=void 0,I=!1,j=b({render:O,staticRenderFns:Y},A,E,P,I,R,!1,void 0,void 0,void 0),F=i["default"].extend({name:"qz-roi",data:function(){return{$refs:{},canvas:null,removeButtonDisable:!1,currentLabel:"",inputAreaName:"",id:"",streamEvent:{listen:this.onStreamStatus,target:null},confirmEvent:{disabled:this.removeButtonDisable,confirm:this.handleConfirm,remove:this.handleRemove},interval:null,intervalCount:0,playerCanGet:!1,loadSuccess:!1}},props:{mode:{type:String,default:"live"},value:{type:Array,default:function(){return[]},required:!0},device:{type:Object,default:function(){},required:!0},width:{type:Number,default:800},image:{type:String,default:""},roiName:{type:String,default:"围栏区域"},customizeAreaName:{type:Boolean,default:!1},limit:{type:Number,default:5},formComponent:{required:!0,type:Object,default:function(){}},size:{type:String,default:""},maxListenTime:{type:Number,default:2e3}},watch:{"device.rtspUrl":{handler:function(t,e){var n=this;t&&t!=e&&this.$nextTick((function(){n.destroy()}))},deep:!0},inputAreaName:function(t){this.validateInputAreaName(t)},image:function(t,e){var n=this;t!==e?this.$nextTick((function(){n.produce()})):t||this.$nextTick((function(){n.destroy()}))}},computed:{isDevelop:function(){return!1}},created:function(){this.id="qz_roi_container_".concat(this._uid),this.registerComponent()},mounted:function(){var t=this;this.$nextTick((function(){t.produce()}))},methods:{registerComponent:function(){if(this.formComponent&&Object.keys(this.formComponent).length>0){var t=this.isVueOptions(this.formComponent.button||null);if(!t)return void console.error('[Props warn]please check prop: "formComponent[button]"');if(i["default"].component("roi-button",t?this.formComponent.button:D),t=this.isVueOptions(this.formComponent.input||null),!t)return void console.error('[Props warn]please check prop: "formComponent[input]"');i["default"].component("roi-input",t?this.formComponent.input:j),this.loadSuccess=!0}else console.error('[Props warn]please check prop: "formComponent"')},validateInputAreaName:function(t){var e=this;if(this.customizeAreaName&&t!==this.currentLabel){var n=this.value.filter((function(e){return e.name===t})).length;if(n>=1)this.$message.warning("区域名称不可重复");else{var i=JSON.parse(JSON.stringify(this.value)),r=i.findIndex((function(t){return t.name===e.currentLabel}));-1!==r&&(i[r].name=t,this.$set(i,r,i[r]),this.canvas&&this.canvas.setActiveByLabel(t,this.currentLabel),this.currentLabel=t,this.$emit("input",i),this.$emit("select",i[r]))}}},produce:function(){"image"===this.mode&&this.image&&this.draw(this.image)},onStreamStatus:function(t,e){console.log("onStreamStatus",t,e),this.streamEvent.target=e,2===t.status?"live"===this.mode&&this.getCapture():(this.interval&&clearInterval(this.interval),this.intervalCount=0)},getCapture:function(){var t=this,e=this;this.interval=setInterval((function(){if(e.intervalCount>=t.maxListenTime)return e.intervalCount=0,void clearInterval(e.interval);if(e.intervalCount++,e.streamEvent.target&&e.streamEvent.target.getStreamInfo){var n=e.streamEvent.target.getStreamInfo();Object.keys(n).length>0&&n.width&&n.height&&(e.intervalCount=0,clearInterval(e.interval),e.draw(n))}}),100)},destroy:function(){this.canvas&&(this.canvas.destroy(),this.canvas=null),this.inputAreaName=""},handleRestore:function(){this.canvas&&this.canvas.setData(this.value)},handleRemove:function(){if(this.canvas){var t=this.canvas.remove();this.$emit("remove",t)}},handleAdd:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rect";if(this.canvas){if(this.canvas.getData().length>=this.limit)return void this.$message.error("抱歉,你最多只可以添加".concat(this.limit,"个围栏区域"));"rect"===e?this.canvas.add(e):"polygon"===e&&new v(this.id,(function(e){t.canvas&&t.canvas.add("polygon",{points:e})}))}},handleConfirm:function(){console.log(JSON.stringify(this.value)),this.$emit("confirm",this.value)},handleLableSelect:function(t){this.currentLabel=t.name,this.inputAreaName=t.name,this.canvas&&(this.canvas.setActiveByLabel(t.name,t.name),this.$emit("select",t))},refresh:function(){"image"===this.mode||this.reConnect()},reConnect:function(){this.streamEvent.target&&this.streamEvent.target.reconnect()},draw:function(t){var e=this;this.canvas||(this.canvas=new g({id:this.id,img:t,width:this.width,deviceName:this.device.deviceName,deviceCode:this.device.deviceCode,historyData:this.value,roiName:this.roiName,mode:this.mode},(function(t){if(e.canvas){var n=e.canvas.getSelect();e.currentLabel=n?n.label:"",e.inputAreaName=e.currentLabel,e.removeButtonDisable=!n,e.confirmEvent.removeButtonDisable=!n;var i=e.canvas.getData();e.$emit("input",i),"select"===t||"add"===t?e.$emit("select",e.canvas.getDataBylLabel(e.currentLabel)):"loaded"===t?e.setPlayerSize():e.$emit("canvasClick")}})))},setPlayerSize:function(){var t=this.$refs.roiStream;t&&this.canvas&&(t.style.width="".concat(this.canvas.viewWidth,"px"),t.style.height="".concat(this.canvas.viewHeight,"px"),t.style.opacity=1)},getImage:function(){return this.canvas?this.canvas.getImageInfo():"null"},isVueOptions:function(t){return!!t&&("string"===typeof t.template||"function"===typeof t.render)},clear:function(){if(this.canvas)return this.canvas.clearMap()}}});const H="undefined"!==typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function N(t){return(t,e)=>B(t,e)}let W;const U={};function B(t,e){const n=H?e.media||"default":t,i=U[n]||(U[n]={ids:new Set,styles:[]});if(!i.ids.has(t)){i.ids.add(t);let n=e.source;if(e.map&&(n+="\n/*# sourceURL="+e.map.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),i.element||(i.element=document.createElement("style"),i.element.type="text/css",e.media&&i.element.setAttribute("media",e.media),void 0===W&&(W=document.head||document.getElementsByTagName("head")[0]),W.appendChild(i.element)),"styleSheet"in i.element)i.styles.push(n),i.element.styleSheet.cssText=i.styles.filter(Boolean).join("\n");else{const t=i.ids.size-1,e=document.createTextNode(n),r=i.element.childNodes;r[t]&&i.element.removeChild(r[t]),r.length?i.element.insertBefore(e,r[t]):i.element.appendChild(e)}}}var z=F,V=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loadSuccess?n("div",{staticClass:"qz-roi-layout",attrs:{id:t.id}},[n("div",{staticClass:"roi-main"},[n("div",{staticClass:"roi-opt"},[t._t("button"),t._v(" "),n("div",[n("roi-button",{staticClass:"roi-button",attrs:{type:"primary"},on:{click:function(e){return t.handleAdd("rect")}}},[t._v("新增矩形"+t._s(t.roiName||"围栏区域"))]),t._v(" "),n("roi-button",{staticClass:"roi-button",attrs:{type:"primary"},on:{click:function(e){return t.handleAdd("polygon")}}},[t._v("新增多边形"+t._s(t.roiName||"围栏区域"))])],1)],2),t._v(" "),n("div",{ref:"roiContainer",staticClass:"roi-canvas"},[n("canvas",{staticClass:"canvas-container",attrs:{id:t.id+"_canvas"}}),t._v(" "),"live"===t.mode?n("div",{ref:"roiStream",staticClass:"roi-stream"},[t._t("player",null,{stream:t.streamEvent})],2):t._e()]),t._v(" "),n("div",{staticClass:"roi-confirm"},[t.customizeAreaName?n("div",{staticClass:"roi-name-wrp"},[n("span",[t._v("区域名称")]),t._v(" "),n("roi-input",{staticClass:"roi-name-input",attrs:{size:t.size,placeholder:"请输入围栏名称"},model:{value:t.inputAreaName,callback:function(e){t.inputAreaName=e},expression:"inputAreaName"}})],1):t._e(),t._v(" "),t._t("bottom"),t._v(" "),n("roi-button",{attrs:{size:t.size,type:"primary"},on:{click:t.handleConfirm}},[t._v("确认")]),t._v(" "),n("roi-button",{staticStyle:{"margin-left":"16px"},attrs:{size:t.size,disabled:t.removeButtonDisable},on:{click:t.handleRemove}},[t._v("删除")])],2)]),t._v(" "),n("div",{staticClass:"roi-aside"},[n("div",{staticClass:"roi-aside-title"},[t._v("已配置"+t._s(t.roiName||"围栏区域"))]),t._v(" "),n("div",{staticClass:"roi-aside-areas"},t._l(t.value,(function(e,i){return n("div",{key:i,staticClass:"area",class:{selected:t.currentLabel==e.name},attrs:{title:e.name},on:{click:function(n){return t.handleLableSelect(e)}}},[t._v(t._s(e.name))])})),0)])]):t._e()},G=[],X=function(t){t&&(t("data-v-b5d171a6_0",{source:".qz-roi-layout canvas.canvas-container{z-index:5}",map:void 0,media:void 0}),t("data-v-b5d171a6_1",{source:".qz-roi-layout[data-v-b5d171a6]{display:flex}.roi-main[data-v-b5d171a6]{border:1px solid #e4e7ed}.roi-opt[data-v-b5d171a6]{height:64px;line-height:64px;padding:0 16px;border-bottom:1px solid #e4e7ed;display:flex;align-items:center;justify-content:space-between}.canvas-container[data-v-b5d171a6]{width:544px;height:306px;z-index:5;border:1px solid #e4e7ed}.roi-confirm[data-v-b5d171a6]{display:flex;align-items:center;border-top:1px solid #e4e7ed;height:64px;line-height:64px}.roi-canvas[data-v-b5d171a6]{position:relative;padding:16px}.roi-stream[data-v-b5d171a6]{position:absolute;left:16px;top:16px;width:544px;height:306px;z-index:1}.roi-main .roi-confirm[data-v-b5d171a6]{padding-left:16px}.roi-aside[data-v-b5d171a6]{width:230px}.roi-aside-title[data-v-b5d171a6]{height:64px;line-height:64px;font-size:14px;border:1px solid #e4e7ed;text-align:left;border-left:none;border-bottom:0;font-size:16px;font-weight:500;color:#33332d;padding-left:12px}.roi-aside-areas[data-v-b5d171a6]{height:calc(100% - 65px);overflow-y:auto;border:1px solid #e4e7ed;border-left:none;font-size:14px;padding:6px;box-sizing:border-box}.roi-aside-areas .area[data-v-b5d171a6]{background:#f7f8f9;text-align:left;padding:10px;margin:10px 0;cursor:pointer;box-sizing:border-box;user-select:none;width:206px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.roi-aside-areas .area.selected[data-v-b5d171a6]{color:#fff;background:#0078d4}.roi-name-wrp[data-v-b5d171a6]{display:flex;align-items:center;margin-right:16px}.roi-name-input[data-v-b5d171a6]{width:180px;margin-left:16px}.roi-button+.roi-button[data-v-b5d171a6]{margin-left:16px}",map:void 0,media:void 0}))},K="data-v-b5d171a6",q=void 0,J=!1,$=b({render:V,staticRenderFns:G},X,z,K,J,q,!1,N,void 0,void 0),Z=function(t){Z.installed||(Z.installed=!0,t.component("qz-roi",$))},Q={install:Z},tt=null;"undefined"!==typeof window?tt=window.Vue:"undefined"!==typeof t&&(tt=t.Vue),tt&&tt.use(Q),$.install=Z,e["a"]=$}).call(this,n("c8ba"))},b0c0:function(t,e,n){var i=n("83ab"),r=n("9bf2").f,a=Function.prototype,s=a.toString,o=/^\s*function ([^ (]*)/,l="name";!i||l in a||r(a,l,{configurable:!0,get:function(){try{return s.call(this).match(o)[1]}catch(t){return""}}})},b29d:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t){return"ຕອນແລງ"===t},meridiem:function(t,e,n){return t<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(t){return"ທີ່"+t}});return e}))},b3eb:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";function e(t,e,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?r[n][0]:r[n][1]}var n=t.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:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},b469:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";function e(t,e,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?r[n][0]:r[n][1]}var n=t.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:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},b53d:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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}});return e}))},b540:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t,e){return 12===t&&(t=0),"enjing"===e?t:"siyang"===e?t>=11?t:t+12:"sonten"===e||"ndalu"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"enjing":t<15?"siyang":t<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}});return e}))},b639:function(t,e,n){"use strict";(function(t){
|
||
/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <http://feross.org>
|
||
* @license MIT
|
||
*/
|
||
var i=n("1fb5"),r=n("9152"),a=n("e3db");function s(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function o(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(o()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=u.prototype):(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,n){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(t,e,n);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return c(this,t,e,n)}function c(t,e,n,i){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?_(t,e,n,i):"string"===typeof e?m(t,e,n):g(t,e)}function h(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function d(t,e,n,i){return h(e),e<=0?l(t,e):void 0!==n?"string"===typeof i?l(t,e).fill(n,i):l(t,e).fill(n):l(t,e)}function f(t,e){if(h(e),t=l(t,e<0?0:0|v(e)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function m(t,e,n){if("string"===typeof n&&""!==n||(n="utf8"),!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|b(e,n);t=l(t,i);var r=t.write(e,n);return r!==i&&(t=t.slice(0,r)),t}function p(t,e){var n=e.length<0?0:0|v(e.length);t=l(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function _(t,e,n,i){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i),u.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=u.prototype):t=p(t,e),t}function g(t,e){if(u.isBuffer(e)){var n=0|v(e.length);return t=l(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?l(t,0):p(t,e);if("Buffer"===e.type&&a(e.data))return p(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function v(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function y(t){return+t!=t&&(t=0),u.alloc(+t)}function b(t,e){if(u.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(t).length;default:if(i)return J(t).length;e=(""+e).toLowerCase(),i=!0}}function w(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return j(this,e,n);case"utf8":case"utf-8":return Y(this,e,n);case"ascii":return R(this,e,n);case"latin1":case"binary":return I(this,e,n);case"base64":return O(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function x(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function M(t,e,n,i,r){if(0===t.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof e&&(e=u.from(e,i)),u.isBuffer(e))return 0===e.length?-1:S(t,e,n,i,r);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):S(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function S(t,e,n,i,r){var a,s=1,o=t.length,l=e.length;if(void 0!==i&&(i=String(i).toLowerCase(),"ucs2"===i||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;s=2,o/=2,l/=2,n/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(r){var c=-1;for(a=n;a<o;a++)if(u(t,a)===u(e,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*s}else-1!==c&&(a-=a-c),c=-1}else for(n+l>o&&(n=o-l),a=n;a>=0;a--){for(var h=!0,d=0;d<l;d++)if(u(t,a+d)!==u(e,d)){h=!1;break}if(h)return a}return-1}function L(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i),i>r&&(i=r)):i=r;var a=e.length;if(a%2!==0)throw new TypeError("Invalid hex string");i>a/2&&(i=a/2);for(var s=0;s<i;++s){var o=parseInt(e.substr(2*s,2),16);if(isNaN(o))return s;t[n+s]=o}return s}function k(t,e,n,i){return tt(J(e,t.length-n),t,n,i)}function T(t,e,n,i){return tt($(e),t,n,i)}function D(t,e,n,i){return T(t,e,n,i)}function C(t,e,n,i){return tt(Q(e),t,n,i)}function E(t,e,n,i){return tt(Z(e,t.length-n),t,n,i)}function O(t,e,n){return 0===e&&n===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,n))}function Y(t,e,n){n=Math.min(t.length,n);var i=[],r=e;while(r<n){var a,s,o,l,u=t[r],c=null,h=u>239?4:u>223?3:u>191?2:1;if(r+h<=n)switch(h){case 1:u<128&&(c=u);break;case 2:a=t[r+1],128===(192&a)&&(l=(31&u)<<6|63&a,l>127&&(c=l));break;case 3:a=t[r+1],s=t[r+2],128===(192&a)&&128===(192&s)&&(l=(15&u)<<12|(63&a)<<6|63&s,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:a=t[r+1],s=t[r+2],o=t[r+3],128===(192&a)&&128===(192&s)&&128===(192&o)&&(l=(15&u)<<18|(63&a)<<12|(63&s)<<6|63&o,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,h=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),r+=h}return P(i)}e.Buffer=u,e.SlowBuffer=y,e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:s(),e.kMaxLength=o(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return c(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return d(null,t,e,n)},u.allocUnsafe=function(t){return f(null,t)},u.allocUnsafeSlow=function(t){return f(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,r=0,a=Math.min(n,i);r<a;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0},u.isEncoding=function(t){switch(String(t).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(t,e){if(!a(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=u.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var s=t[n];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,r),r+=s.length}return i},u.byteLength=b,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)x(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)x(this,e,e+3),x(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)x(this,e,e+7),x(this,e+1,e+6),x(this,e+2,e+5),x(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?Y(this,0,t):w.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,n,i,r){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,r>>>=0,this===t)return 0;for(var a=r-i,s=n-e,o=Math.min(a,s),l=this.slice(i,r),c=t.slice(e,n),h=0;h<o;++h)if(l[h]!==c[h]){a=l[h],s=c[h];break}return a<s?-1:s<a?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return M(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return M(this,t,e,n,!1)},u.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return L(this,t,e,n);case"utf8":case"utf-8":return k(this,t,e,n);case"ascii":return T(this,t,e,n);case"latin1":case"binary":return D(this,t,e,n);case"base64":return C(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,e,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function P(t){var e=t.length;if(e<=A)return String.fromCharCode.apply(String,t);var n="",i=0;while(i<e)n+=String.fromCharCode.apply(String,t.slice(i,i+=A));return n}function R(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}function I(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}function j(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var r="",a=e;a<n;++a)r+=q(t[a]);return r}function F(t,e,n){for(var i=t.slice(e,n),r="",a=0;a<i.length;a+=2)r+=String.fromCharCode(i[a]+256*i[a+1]);return r}function H(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function N(t,e,n,i,r,a){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<a)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function W(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,a=Math.min(t.length-n,2);r<a;++r)t[n+r]=(e&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function U(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,a=Math.min(t.length-n,4);r<a;++r)t[n+r]=e>>>8*(i?r:3-r)&255}function B(t,e,n,i,r,a){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function z(t,e,n,i,a){return a||B(t,e,n,4,34028234663852886e22,-34028234663852886e22),r.write(t,e,n,i,23,4),n+4}function V(t,e,n,i,a){return a||B(t,e,n,8,17976931348623157e292,-17976931348623157e292),r.write(t,e,n,i,52,8),n+8}u.prototype.slice=function(t,e){var n,i=this.length;if(t=~~t,e=void 0===e?i:~~e,t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=u.prototype;else{var r=e-t;n=new u(r,void 0);for(var a=0;a<r;++a)n[a]=this[a+t]}return n},u.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||H(t,e,this.length);var i=this[t],r=1,a=0;while(++a<e&&(r*=256))i+=this[t+a]*r;return i},u.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||H(t,e,this.length);var i=this[t+--e],r=1;while(e>0&&(r*=256))i+=this[t+--e]*r;return i},u.prototype.readUInt8=function(t,e){return e||H(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||H(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||H(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||H(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||H(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||H(t,e,this.length);var i=this[t],r=1,a=0;while(++a<e&&(r*=256))i+=this[t+a]*r;return r*=128,i>=r&&(i-=Math.pow(2,8*e)),i},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||H(t,e,this.length);var i=e,r=1,a=this[t+--i];while(i>0&&(r*=256))a+=this[t+--i]*r;return r*=128,a>=r&&(a-=Math.pow(2,8*e)),a},u.prototype.readInt8=function(t,e){return e||H(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||H(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||H(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||H(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||H(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||H(t,4,this.length),r.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||H(t,4,this.length),r.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||H(t,8,this.length),r.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||H(t,8,this.length),r.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;N(this,t,e,n,r,0)}var a=1,s=0;this[e]=255&t;while(++s<n&&(a*=256))this[e+s]=t/a&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;N(this,t,e,n,r,0)}var a=n-1,s=1;this[e+a]=255&t;while(--a>=0&&(s*=256))this[e+a]=t/s&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):W(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):W(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):U(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):U(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);N(this,t,e,n,r-1,-r)}var a=0,s=1,o=0;this[e]=255&t;while(++a<n&&(s*=256))t<0&&0===o&&0!==this[e+a-1]&&(o=1),this[e+a]=(t/s>>0)-o&255;return e+n},u.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);N(this,t,e,n,r-1,-r)}var a=n-1,s=1,o=0;this[e+a]=255&t;while(--a>=0&&(s*=256))t<0&&0===o&&0!==this[e+a+1]&&(o=1),this[e+a]=(t/s>>0)-o&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):W(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):W(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):U(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):U(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return z(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return z(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return V(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return V(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r,a=i-n;if(this===t&&n<e&&e<i)for(r=a-1;r>=0;--r)t[r+e]=this[r+n];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(r=0;r<a;++r)t[r+e]=this[r+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},u.prototype.fill=function(t,e,n,i){if("string"===typeof t){if("string"===typeof e?(i=e,e=0,n=this.length):"string"===typeof n&&(i=n,n=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==i&&"string"!==typeof i)throw new TypeError("encoding must be a string");if("string"===typeof i&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var a;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(a=e;a<n;++a)this[a]=t;else{var s=u.isBuffer(t)?t:J(new u(t,i).toString()),o=s.length;for(a=0;a<n-e;++a)this[a+e]=s[a%o]}return this};var G=/[^+\/0-9A-Za-z-_]/g;function X(t){if(t=K(t).replace(G,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function K(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function q(t){return t<16?"0"+t.toString(16):t.toString(16)}function J(t,e){var n;e=e||1/0;for(var i=t.length,r=null,a=[],s=0;s<i;++s){if(n=t.charCodeAt(s),n>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(s+1===i){(e-=3)>-1&&a.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&a.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&a.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;a.push(n)}else if(n<2048){if((e-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=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((e-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function $(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function Z(t,e){for(var n,i,r,a=[],s=0;s<t.length;++s){if((e-=2)<0)break;n=t.charCodeAt(s),i=n>>8,r=n%256,a.push(r),a.push(i)}return a}function Q(t){return i.toByteArray(X(t))}function tt(t,e,n,i){for(var r=0;r<i;++r){if(r+n>=e.length||r>=t.length)break;e[r+n]=t[r]}return r}function et(t){return t!==t}}).call(this,n("c8ba"))},b84c:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return e}))},b97c:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={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(t,e,n){return n?e%10===1&&e%100!==11?t[2]:t[3]:e%10===1&&e%100!==11?t[0]:t[1]}function i(t,i,r){return t+" "+n(e[r],t,i)}function r(t,i,r){return n(e[r],t,i)}function a(t,e){return e?"dažas sekundes":"dažām sekundēm"}var s=t.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:a,ss:i,m:r,mm:i,h:r,hh:i,d:r,dd:i,M:r,MM:i,y:r,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return s}))},bb71:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";function e(t,e,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?r[n][0]:r[n][1]}var n=t.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:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},c109:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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}});return e}))},c1df:function(t,e,n){(function(t){(function(e,n){t.exports=n()})(0,(function(){"use strict";var e,i;function r(){return e.apply(null,arguments)}function a(t){e=t}function s(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function l(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}function u(t){return void 0===t}function c(t){return"number"===typeof t||"[object Number]"===Object.prototype.toString.call(t)}function h(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function d(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function f(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function m(t,e){for(var n in e)f(e,n)&&(t[n]=e[n]);return f(e,"toString")&&(t.toString=e.toString),f(e,"valueOf")&&(t.valueOf=e.valueOf),t}function p(t,e,n,i){return Kn(t,e,n,i,!0).utc()}function _(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(t){return null==t._pf&&(t._pf=_()),t._pf}function v(t){if(null==t._isValid){var e=g(t),n=i.call(e.parsedDateParts,(function(t){return null!=t})),r=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(r=r&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function y(t){var e=p(NaN);return null!=t?m(g(e),t):g(e).userInvalidated=!0,e}i=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};var b=r.momentProperties=[];function w(t,e){var n,i,r;if(u(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),u(e._i)||(t._i=e._i),u(e._f)||(t._f=e._f),u(e._l)||(t._l=e._l),u(e._strict)||(t._strict=e._strict),u(e._tzm)||(t._tzm=e._tzm),u(e._isUTC)||(t._isUTC=e._isUTC),u(e._offset)||(t._offset=e._offset),u(e._pf)||(t._pf=g(e)),u(e._locale)||(t._locale=e._locale),b.length>0)for(n=0;n<b.length;n++)i=b[n],r=e[i],u(r)||(t[i]=r);return t}var x=!1;function M(t){w(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===x&&(x=!0,r.updateOffset(this),x=!1)}function S(t){return t instanceof M||null!=t&&null!=t._isAMomentObject}function L(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function k(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=L(e)),n}function T(t,e,n){var i,r=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),s=0;for(i=0;i<r;i++)(n&&t[i]!==e[i]||!n&&k(t[i])!==k(e[i]))&&s++;return s+a}function D(t){!1===r.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function C(t,e){var n=!0;return m((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,t),n){for(var i,a=[],s=0;s<arguments.length;s++){if(i="","object"===typeof arguments[s]){for(var o in i+="\n["+s+"] ",arguments[0])i+=o+": "+arguments[0][o]+", ";i=i.slice(0,-2)}else i=arguments[s];a.push(i)}D(t+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var E,O={};function Y(t,e){null!=r.deprecationHandler&&r.deprecationHandler(t,e),O[t]||(D(e),O[t]=!0)}function A(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function P(t){var e,n;for(n in t)e=t[n],A(e)?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function R(t,e){var n,i=m({},t);for(n in e)f(e,n)&&(o(t[n])&&o(e[n])?(i[n]={},m(i[n],t[n]),m(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)f(t,n)&&!f(e,n)&&o(t[n])&&(i[n]=m({},i[n]));return i}function I(t){null!=t&&this.set(t)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,E=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)f(t,e)&&n.push(e);return n};var j={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function F(t,e,n){var i=this._calendar[t]||this._calendar["sameElse"];return A(i)?i.call(e,n):i}var H={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function N(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,(function(t){return t.slice(1)})),this._longDateFormat[t])}var W="Invalid date";function U(){return this._invalidDate}var B="%d",z=/\d{1,2}/;function V(t){return this._ordinal.replace("%d",t)}var G={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"};function X(t,e,n,i){var r=this._relativeTime[n];return A(r)?r(t,e,n,i):r.replace(/%d/i,t)}function K(t,e){var n=this._relativeTime[t>0?"future":"past"];return A(n)?n(e):n.replace(/%s/i,e)}var q={};function J(t,e){var n=t.toLowerCase();q[n]=q[n+"s"]=q[e]=t}function $(t){return"string"===typeof t?q[t]||q[t.toLowerCase()]:void 0}function Z(t){var e,n,i={};for(n in t)f(t,n)&&(e=$(n),e&&(i[e]=t[n]));return i}var Q={};function tt(t,e){Q[t]=e}function et(t){var e=[];for(var n in t)e.push({unit:n,priority:Q[n]});return e.sort((function(t,e){return t.priority-e.priority})),e}function nt(t,e,n){var i=""+Math.abs(t),r=e-i.length,a=t>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var it=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,rt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,at={},st={};function ot(t,e,n,i){var r=i;"string"===typeof i&&(r=function(){return this[i]()}),t&&(st[t]=r),e&&(st[e[0]]=function(){return nt(r.apply(this,arguments),e[1],e[2])}),n&&(st[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function lt(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function ut(t){var e,n,i=t.match(it);for(e=0,n=i.length;e<n;e++)st[i[e]]?i[e]=st[i[e]]:i[e]=lt(i[e]);return function(e){var r,a="";for(r=0;r<n;r++)a+=A(i[r])?i[r].call(e,t):i[r];return a}}function ct(t,e){return t.isValid()?(e=ht(e,t.localeData()),at[e]=at[e]||ut(e),at[e](t)):t.localeData().invalidDate()}function ht(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}rt.lastIndex=0;while(n>=0&&rt.test(t))t=t.replace(rt,i),rt.lastIndex=0,n-=1;return t}var dt=/\d/,ft=/\d\d/,mt=/\d{3}/,pt=/\d{4}/,_t=/[+-]?\d{6}/,gt=/\d\d?/,vt=/\d\d\d\d?/,yt=/\d\d\d\d\d\d?/,bt=/\d{1,3}/,wt=/\d{1,4}/,xt=/[+-]?\d{1,6}/,Mt=/\d+/,St=/[+-]?\d+/,Lt=/Z|[+-]\d\d:?\d\d/gi,kt=/Z|[+-]\d\d(?::?\d\d)?/gi,Tt=/[+-]?\d+(\.\d{1,3})?/,Dt=/[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,Ct={};function Et(t,e,n){Ct[t]=A(e)?e:function(t,i){return t&&n?n:e}}function Ot(t,e){return f(Ct,t)?Ct[t](e._strict,e._locale):new RegExp(Yt(t))}function Yt(t){return At(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,i,r){return e||n||i||r})))}function At(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Pt={};function Rt(t,e){var n,i=e;for("string"===typeof t&&(t=[t]),c(e)&&(i=function(t,n){n[e]=k(t)}),n=0;n<t.length;n++)Pt[t[n]]=i}function It(t,e){Rt(t,(function(t,n,i,r){i._w=i._w||{},e(t,i._w,i,r)}))}function jt(t,e,n){null!=e&&f(Pt,t)&&Pt[t](e,n._a,n,t)}var Ft=0,Ht=1,Nt=2,Wt=3,Ut=4,Bt=5,zt=6,Vt=7,Gt=8;function Xt(t){return Kt(t)?366:365}function Kt(t){return t%4===0&&t%100!==0||t%400===0}ot("Y",0,0,(function(){var t=this.year();return t<=9999?""+t:"+"+t})),ot(0,["YY",2],0,(function(){return this.year()%100})),ot(0,["YYYY",4],0,"year"),ot(0,["YYYYY",5],0,"year"),ot(0,["YYYYYY",6,!0],0,"year"),J("year","y"),tt("year",1),Et("Y",St),Et("YY",gt,ft),Et("YYYY",wt,pt),Et("YYYYY",xt,_t),Et("YYYYYY",xt,_t),Rt(["YYYYY","YYYYYY"],Ft),Rt("YYYY",(function(t,e){e[Ft]=2===t.length?r.parseTwoDigitYear(t):k(t)})),Rt("YY",(function(t,e){e[Ft]=r.parseTwoDigitYear(t)})),Rt("Y",(function(t,e){e[Ft]=parseInt(t,10)})),r.parseTwoDigitYear=function(t){return k(t)+(k(t)>68?1900:2e3)};var qt,Jt=Zt("FullYear",!0);function $t(){return Kt(this.year())}function Zt(t,e){return function(n){return null!=n?(te(this,t,n),r.updateOffset(this,e),this):Qt(this,t)}}function Qt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function te(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&Kt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),re(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function ee(t){return t=$(t),A(this[t])?this[t]():this}function ne(t,e){if("object"===typeof t){t=Z(t);for(var n=et(t),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit])}else if(t=$(t),A(this[t]))return this[t](e);return this}function ie(t,e){return(t%e+e)%e}function re(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=ie(e,12);return t+=(e-n)/12,1===n?Kt(t)?29:28:31-n%7%2}qt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},ot("M",["MM",2],"Mo",(function(){return this.month()+1})),ot("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),ot("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),J("month","M"),tt("month",8),Et("M",gt),Et("MM",gt,ft),Et("MMM",(function(t,e){return e.monthsShortRegex(t)})),Et("MMMM",(function(t,e){return e.monthsRegex(t)})),Rt(["M","MM"],(function(t,e){e[Ht]=k(t)-1})),Rt(["MMM","MMMM"],(function(t,e,n,i){var r=n._locale.monthsParse(t,i,n._strict);null!=r?e[Ht]=r:g(n).invalidMonth=t}));var ae=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,se="January_February_March_April_May_June_July_August_September_October_November_December".split("_");function oe(t,e){return t?s(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||ae).test(e)?"format":"standalone"][t.month()]:s(this._months)?this._months:this._months["standalone"]}var le="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function ue(t,e){return t?s(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[ae.test(e)?"format":"standalone"][t.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort["standalone"]}function ce(t,e,n){var i,r,a,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)a=p([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===e?(r=qt.call(this._shortMonthsParse,s),-1!==r?r:null):(r=qt.call(this._longMonthsParse,s),-1!==r?r:null):"MMM"===e?(r=qt.call(this._shortMonthsParse,s),-1!==r?r:(r=qt.call(this._longMonthsParse,s),-1!==r?r:null)):(r=qt.call(this._longMonthsParse,s),-1!==r?r:(r=qt.call(this._shortMonthsParse,s),-1!==r?r:null))}function he(t,e,n){var i,r,a;if(this._monthsParseExact)return ce.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=p([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}}function de(t,e){var n;if(!t.isValid())return t;if("string"===typeof e)if(/^\d+$/.test(e))e=k(e);else if(e=t.localeData().monthsParse(e),!c(e))return t;return n=Math.min(t.date(),re(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function fe(t){return null!=t?(de(this,t),r.updateOffset(this,!0),this):Qt(this,"Month")}function me(){return re(this.year(),this.month())}var pe=Dt;function _e(t){return this._monthsParseExact?(f(this,"_monthsRegex")||ye.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=pe),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}var ge=Dt;function ve(t){return this._monthsParseExact?(f(this,"_monthsRegex")||ye.call(this),t?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=ge),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function ye(){function t(t,e){return e.length-t.length}var e,n,i=[],r=[],a=[];for(e=0;e<12;e++)n=p([2e3,e]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(i.sort(t),r.sort(t),a.sort(t),e=0;e<12;e++)i[e]=At(i[e]),r[e]=At(r[e]);for(e=0;e<24;e++)a[e]=At(a[e]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function be(t,e,n,i,r,a,s){var o;return t<100&&t>=0?(o=new Date(t+400,e,n,i,r,a,s),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,n,i,r,a,s),o}function we(t){var e;if(t<100&&t>=0){var n=Array.prototype.slice.call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function xe(t,e,n){var i=7+e-n,r=(7+we(t,0,i).getUTCDay()-e)%7;return-r+i-1}function Me(t,e,n,i,r){var a,s,o=(7+n-i)%7,l=xe(t,i,r),u=1+7*(e-1)+o+l;return u<=0?(a=t-1,s=Xt(a)+u):u>Xt(t)?(a=t+1,s=u-Xt(t)):(a=t,s=u),{year:a,dayOfYear:s}}function Se(t,e,n){var i,r,a=xe(t.year(),e,n),s=Math.floor((t.dayOfYear()-a-1)/7)+1;return s<1?(r=t.year()-1,i=s+Le(r,e,n)):s>Le(t.year(),e,n)?(i=s-Le(t.year(),e,n),r=t.year()+1):(r=t.year(),i=s),{week:i,year:r}}function Le(t,e,n){var i=xe(t,e,n),r=xe(t+1,e,n);return(Xt(t)-i+r)/7}function ke(t){return Se(t,this._week.dow,this._week.doy).week}ot("w",["ww",2],"wo","week"),ot("W",["WW",2],"Wo","isoWeek"),J("week","w"),J("isoWeek","W"),tt("week",5),tt("isoWeek",5),Et("w",gt),Et("ww",gt,ft),Et("W",gt),Et("WW",gt,ft),It(["w","ww","W","WW"],(function(t,e,n,i){e[i.substr(0,1)]=k(t)}));var Te={dow:0,doy:6};function De(){return this._week.dow}function Ce(){return this._week.doy}function Ee(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Oe(t){var e=Se(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Ye(t,e){return"string"!==typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"===typeof t?t:null):parseInt(t,10)}function Ae(t,e){return"string"===typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Pe(t,e){return t.slice(e,7).concat(t.slice(0,e))}ot("d",0,"do","day"),ot("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),ot("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),ot("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),ot("e",0,0,"weekday"),ot("E",0,0,"isoWeekday"),J("day","d"),J("weekday","e"),J("isoWeekday","E"),tt("day",11),tt("weekday",11),tt("isoWeekday",11),Et("d",gt),Et("e",gt),Et("E",gt),Et("dd",(function(t,e){return e.weekdaysMinRegex(t)})),Et("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),Et("dddd",(function(t,e){return e.weekdaysRegex(t)})),It(["dd","ddd","dddd"],(function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:g(n).invalidWeekday=t})),It(["d","e","E"],(function(t,e,n,i){e[i]=k(t)}));var Re="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");function Ie(t,e){var n=s(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Pe(n,this._week.dow):t?n[t.day()]:n}var je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function Fe(t){return!0===t?Pe(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}var He="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Ne(t){return!0===t?Pe(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function We(t,e,n){var i,r,a,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)a=p([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===e?(r=qt.call(this._weekdaysParse,s),-1!==r?r:null):"ddd"===e?(r=qt.call(this._shortWeekdaysParse,s),-1!==r?r:null):(r=qt.call(this._minWeekdaysParse,s),-1!==r?r:null):"dddd"===e?(r=qt.call(this._weekdaysParse,s),-1!==r?r:(r=qt.call(this._shortWeekdaysParse,s),-1!==r?r:(r=qt.call(this._minWeekdaysParse,s),-1!==r?r:null))):"ddd"===e?(r=qt.call(this._shortWeekdaysParse,s),-1!==r?r:(r=qt.call(this._weekdaysParse,s),-1!==r?r:(r=qt.call(this._minWeekdaysParse,s),-1!==r?r:null))):(r=qt.call(this._minWeekdaysParse,s),-1!==r?r:(r=qt.call(this._weekdaysParse,s),-1!==r?r:(r=qt.call(this._shortWeekdaysParse,s),-1!==r?r:null)))}function Ue(t,e,n){var i,r,a;if(this._weekdaysParseExact)return We.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=p([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}function Be(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Ye(t,this.localeData()),this.add(t-e,"d")):e}function ze(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Ve(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Ae(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}var Ge=Dt;function Xe(t){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Ze.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=Ge),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}var Ke=Dt;function qe(t){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Ze.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ke),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}var Je=Dt;function $e(t){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Ze.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Je),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ze(){function t(t,e){return e.length-t.length}var e,n,i,r,a,s=[],o=[],l=[],u=[];for(e=0;e<7;e++)n=p([2e3,1]).day(e),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),a=this.weekdays(n,""),s.push(i),o.push(r),l.push(a),u.push(i),u.push(r),u.push(a);for(s.sort(t),o.sort(t),l.sort(t),u.sort(t),e=0;e<7;e++)o[e]=At(o[e]),l[e]=At(l[e]),u[e]=At(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Qe(){return this.hours()%12||12}function tn(){return this.hours()||24}function en(t,e){ot(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function nn(t,e){return e._meridiemParse}function rn(t){return"p"===(t+"").toLowerCase().charAt(0)}ot("H",["HH",2],0,"hour"),ot("h",["hh",2],0,Qe),ot("k",["kk",2],0,tn),ot("hmm",0,0,(function(){return""+Qe.apply(this)+nt(this.minutes(),2)})),ot("hmmss",0,0,(function(){return""+Qe.apply(this)+nt(this.minutes(),2)+nt(this.seconds(),2)})),ot("Hmm",0,0,(function(){return""+this.hours()+nt(this.minutes(),2)})),ot("Hmmss",0,0,(function(){return""+this.hours()+nt(this.minutes(),2)+nt(this.seconds(),2)})),en("a",!0),en("A",!1),J("hour","h"),tt("hour",13),Et("a",nn),Et("A",nn),Et("H",gt),Et("h",gt),Et("k",gt),Et("HH",gt,ft),Et("hh",gt,ft),Et("kk",gt,ft),Et("hmm",vt),Et("hmmss",yt),Et("Hmm",vt),Et("Hmmss",yt),Rt(["H","HH"],Wt),Rt(["k","kk"],(function(t,e,n){var i=k(t);e[Wt]=24===i?0:i})),Rt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),Rt(["h","hh"],(function(t,e,n){e[Wt]=k(t),g(n).bigHour=!0})),Rt("hmm",(function(t,e,n){var i=t.length-2;e[Wt]=k(t.substr(0,i)),e[Ut]=k(t.substr(i)),g(n).bigHour=!0})),Rt("hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[Wt]=k(t.substr(0,i)),e[Ut]=k(t.substr(i,2)),e[Bt]=k(t.substr(r)),g(n).bigHour=!0})),Rt("Hmm",(function(t,e,n){var i=t.length-2;e[Wt]=k(t.substr(0,i)),e[Ut]=k(t.substr(i))})),Rt("Hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[Wt]=k(t.substr(0,i)),e[Ut]=k(t.substr(i,2)),e[Bt]=k(t.substr(r))}));var an=/[ap]\.?m?\.?/i;function sn(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var on,ln=Zt("Hours",!0),un={calendar:j,longDateFormat:H,invalidDate:W,ordinal:B,dayOfMonthOrdinalParse:z,relativeTime:G,months:se,monthsShort:le,week:Te,weekdays:Re,weekdaysMin:He,weekdaysShort:je,meridiemParse:an},cn={},hn={};function dn(t){return t?t.toLowerCase().replace("_","-"):t}function fn(t){var e,n,i,r,a=0;while(a<t.length){r=dn(t[a]).split("-"),e=r.length,n=dn(t[a+1]),n=n?n.split("-"):null;while(e>0){if(i=mn(r.slice(0,e).join("-")),i)return i;if(n&&n.length>=e&&T(r,n,!0)>=e-1)break;e--}a++}return on}function mn(e){var i=null;if(!cn[e]&&"undefined"!==typeof t&&t&&t.exports)try{i=on._abbr;n("4678")("./"+e),pn(i)}catch(r){}return cn[e]}function pn(t,e){var n;return t&&(n=u(e)?vn(t):_n(t,e),n?on=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),on._abbr}function _n(t,e){if(null!==e){var n,i=un;if(e.abbr=t,null!=cn[t])Y("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."),i=cn[t]._config;else if(null!=e.parentLocale)if(null!=cn[e.parentLocale])i=cn[e.parentLocale]._config;else{if(n=mn(e.parentLocale),null==n)return hn[e.parentLocale]||(hn[e.parentLocale]=[]),hn[e.parentLocale].push({name:t,config:e}),null;i=n._config}return cn[t]=new I(R(i,e)),hn[t]&&hn[t].forEach((function(t){_n(t.name,t.config)})),pn(t),cn[t]}return delete cn[t],null}function gn(t,e){if(null!=e){var n,i,r=un;i=mn(t),null!=i&&(r=i._config),e=R(r,e),n=new I(e),n.parentLocale=cn[t],cn[t]=n,pn(t)}else null!=cn[t]&&(null!=cn[t].parentLocale?cn[t]=cn[t].parentLocale:null!=cn[t]&&delete cn[t]);return cn[t]}function vn(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return on;if(!s(t)){if(e=mn(t),e)return e;t=[t]}return fn(t)}function yn(){return E(cn)}function bn(t){var e,n=t._a;return n&&-2===g(t).overflow&&(e=n[Ht]<0||n[Ht]>11?Ht:n[Nt]<1||n[Nt]>re(n[Ft],n[Ht])?Nt:n[Wt]<0||n[Wt]>24||24===n[Wt]&&(0!==n[Ut]||0!==n[Bt]||0!==n[zt])?Wt:n[Ut]<0||n[Ut]>59?Ut:n[Bt]<0||n[Bt]>59?Bt:n[zt]<0||n[zt]>999?zt:-1,g(t)._overflowDayOfYear&&(e<Ft||e>Nt)&&(e=Nt),g(t)._overflowWeeks&&-1===e&&(e=Vt),g(t)._overflowWeekday&&-1===e&&(e=Gt),g(t).overflow=e),t}function wn(t,e,n){return null!=t?t:null!=e?e:n}function xn(t){var e=new Date(r.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Mn(t){var e,n,i,r,a,s=[];if(!t._d){for(i=xn(t),t._w&&null==t._a[Nt]&&null==t._a[Ht]&&Sn(t),null!=t._dayOfYear&&(a=wn(t._a[Ft],i[Ft]),(t._dayOfYear>Xt(a)||0===t._dayOfYear)&&(g(t)._overflowDayOfYear=!0),n=we(a,0,t._dayOfYear),t._a[Ht]=n.getUTCMonth(),t._a[Nt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=i[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Wt]&&0===t._a[Ut]&&0===t._a[Bt]&&0===t._a[zt]&&(t._nextDay=!0,t._a[Wt]=0),t._d=(t._useUTC?we:be).apply(null,s),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Wt]=24),t._w&&"undefined"!==typeof t._w.d&&t._w.d!==r&&(g(t).weekdayMismatch=!0)}}function Sn(t){var e,n,i,r,a,s,o,l;if(e=t._w,null!=e.GG||null!=e.W||null!=e.E)a=1,s=4,n=wn(e.GG,t._a[Ft],Se(qn(),1,4).year),i=wn(e.W,1),r=wn(e.E,1),(r<1||r>7)&&(l=!0);else{a=t._locale._week.dow,s=t._locale._week.doy;var u=Se(qn(),a,s);n=wn(e.gg,t._a[Ft],u.year),i=wn(e.w,u.week),null!=e.d?(r=e.d,(r<0||r>6)&&(l=!0)):null!=e.e?(r=e.e+a,(e.e<0||e.e>6)&&(l=!0)):r=a}i<1||i>Le(n,a,s)?g(t)._overflowWeeks=!0:null!=l?g(t)._overflowWeekday=!0:(o=Me(n,i,r,a,s),t._a[Ft]=o.year,t._dayOfYear=o.dayOfYear)}var Ln=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kn=/^\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)?)?$/,Tn=/Z|[+-]\d\d(?::?\d\d)?/,Dn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Cn=[["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/]],En=/^\/?Date\((\-?\d+)/i;function On(t){var e,n,i,r,a,s,o=t._i,l=Ln.exec(o)||kn.exec(o);if(l){for(g(t).iso=!0,e=0,n=Dn.length;e<n;e++)if(Dn[e][1].exec(l[1])){r=Dn[e][0],i=!1!==Dn[e][2];break}if(null==r)return void(t._isValid=!1);if(l[3]){for(e=0,n=Cn.length;e<n;e++)if(Cn[e][1].exec(l[3])){a=(l[2]||" ")+Cn[e][0];break}if(null==a)return void(t._isValid=!1)}if(!i&&null!=a)return void(t._isValid=!1);if(l[4]){if(!Tn.exec(l[4]))return void(t._isValid=!1);s="Z"}t._f=r+(a||"")+(s||""),Wn(t)}else t._isValid=!1}var Yn=/^(?:(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}))$/;function An(t,e,n,i,r,a){var s=[Pn(t),le.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(r,10)];return a&&s.push(parseInt(a,10)),s}function Pn(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Rn(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function In(t,e,n){if(t){var i=je.indexOf(t),r=new Date(e[0],e[1],e[2]).getDay();if(i!==r)return g(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}var jn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Fn(t,e,n){if(t)return jn[t];if(e)return 0;var i=parseInt(n,10),r=i%100,a=(i-r)/100;return 60*a+r}function Hn(t){var e=Yn.exec(Rn(t._i));if(e){var n=An(e[4],e[3],e[2],e[5],e[6],e[7]);if(!In(e[1],n,t))return;t._a=n,t._tzm=Fn(e[8],e[9],e[10]),t._d=we.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),g(t).rfc2822=!0}else t._isValid=!1}function Nn(t){var e=En.exec(t._i);null===e?(On(t),!1===t._isValid&&(delete t._isValid,Hn(t),!1===t._isValid&&(delete t._isValid,r.createFromInputFallback(t)))):t._d=new Date(+e[1])}function Wn(t){if(t._f!==r.ISO_8601)if(t._f!==r.RFC_2822){t._a=[],g(t).empty=!0;var e,n,i,a,s,o=""+t._i,l=o.length,u=0;for(i=ht(t._f,t._locale).match(it)||[],e=0;e<i.length;e++)a=i[e],n=(o.match(Ot(a,t))||[])[0],n&&(s=o.substr(0,o.indexOf(n)),s.length>0&&g(t).unusedInput.push(s),o=o.slice(o.indexOf(n)+n.length),u+=n.length),st[a]?(n?g(t).empty=!1:g(t).unusedTokens.push(a),jt(a,n,t)):t._strict&&!n&&g(t).unusedTokens.push(a);g(t).charsLeftOver=l-u,o.length>0&&g(t).unusedInput.push(o),t._a[Wt]<=12&&!0===g(t).bigHour&&t._a[Wt]>0&&(g(t).bigHour=void 0),g(t).parsedDateParts=t._a.slice(0),g(t).meridiem=t._meridiem,t._a[Wt]=Un(t._locale,t._a[Wt],t._meridiem),Mn(t),bn(t)}else Hn(t);else On(t)}function Un(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(i=t.isPM(n),i&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function Bn(t){var e,n,i,r,a;if(0===t._f.length)return g(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<t._f.length;r++)a=0,e=w({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],Wn(e),v(e)&&(a+=g(e).charsLeftOver,a+=10*g(e).unusedTokens.length,g(e).score=a,(null==i||a<i)&&(i=a,n=e));m(t,n||e)}function zn(t){if(!t._d){var e=Z(t._i);t._a=d([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),Mn(t)}}function Vn(t){var e=new M(bn(Gn(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Gn(t){var e=t._i,n=t._f;return t._locale=t._locale||vn(t._l),null===e||void 0===n&&""===e?y({nullInput:!0}):("string"===typeof e&&(t._i=e=t._locale.preparse(e)),S(e)?new M(bn(e)):(h(e)?t._d=e:s(n)?Bn(t):n?Wn(t):Xn(t),v(t)||(t._d=null),t))}function Xn(t){var e=t._i;u(e)?t._d=new Date(r.now()):h(e)?t._d=new Date(e.valueOf()):"string"===typeof e?Nn(t):s(e)?(t._a=d(e.slice(0),(function(t){return parseInt(t,10)})),Mn(t)):o(e)?zn(t):c(e)?t._d=new Date(e):r.createFromInputFallback(t)}function Kn(t,e,n,i,r){var a={};return!0!==n&&!1!==n||(i=n,n=void 0),(o(t)&&l(t)||s(t)&&0===t.length)&&(t=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=r,a._l=n,a._i=t,a._f=e,a._strict=i,Vn(a)}function qn(t,e,n,i){return Kn(t,e,n,i,!1)}r.createFromInputFallback=C("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Jn=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=qn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:y()})),$n=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=qn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:y()}));function Zn(t,e){var n,i;if(1===e.length&&s(e[0])&&(e=e[0]),!e.length)return qn();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}function Qn(){var t=[].slice.call(arguments,0);return Zn("isBefore",t)}function ti(){var t=[].slice.call(arguments,0);return Zn("isAfter",t)}var ei=function(){return Date.now?Date.now():+new Date},ni=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ii(t){for(var e in t)if(-1===qt.call(ni,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<ni.length;++i)if(t[ni[i]]){if(n)return!1;parseFloat(t[ni[i]])!==k(t[ni[i]])&&(n=!0)}return!0}function ri(){return this._isValid}function ai(){return Ti(NaN)}function si(t){var e=Z(t),n=e.year||0,i=e.quarter||0,r=e.month||0,a=e.week||e.isoWeek||0,s=e.day||0,o=e.hour||0,l=e.minute||0,u=e.second||0,c=e.millisecond||0;this._isValid=ii(e),this._milliseconds=+c+1e3*u+6e4*l+1e3*o*60*60,this._days=+s+7*a,this._months=+r+3*i+12*n,this._data={},this._locale=vn(),this._bubble()}function oi(t){return t instanceof si}function li(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function ui(t,e){ot(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+nt(~~(t/60),2)+e+nt(~~t%60,2)}))}ui("Z",":"),ui("ZZ",""),Et("Z",kt),Et("ZZ",kt),Rt(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=hi(kt,t)}));var ci=/([\+\-]|\d\d)/gi;function hi(t,e){var n=(e||"").match(t);if(null===n)return null;var i=n[n.length-1]||[],r=(i+"").match(ci)||["-",0,0],a=60*r[1]+k(r[2]);return 0===a?0:"+"===r[0]?a:-a}function di(t,e){var n,i;return e._isUTC?(n=e.clone(),i=(S(t)||h(t)?t.valueOf():qn(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):qn(t).local()}function fi(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function mi(t,e,n){var i,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"===typeof t){if(t=hi(kt,t),null===t)return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=fi(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==t&&(!e||this._changeInProgress?Yi(this,Ti(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:fi(this)}function pi(t,e){return null!=t?("string"!==typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function _i(t){return this.utcOffset(0,t)}function gi(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(fi(this),"m")),this}function vi(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var t=hi(Lt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function yi(t){return!!this.isValid()&&(t=t?qn(t).utcOffset():0,(this.utcOffset()-t)%60===0)}function bi(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function wi(){if(!u(this._isDSTShifted))return this._isDSTShifted;var t={};if(w(t,this),t=Gn(t),t._a){var e=t._isUTC?p(t._a):qn(t._a);this._isDSTShifted=this.isValid()&&T(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function xi(){return!!this.isValid()&&!this._isUTC}function Mi(){return!!this.isValid()&&this._isUTC}function Si(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}r.updateOffset=function(){};var Li=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,ki=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ti(t,e){var n,i,r,a=t,s=null;return oi(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:c(t)?(a={},e?a[e]=t:a.milliseconds=t):(s=Li.exec(t))?(n="-"===s[1]?-1:1,a={y:0,d:k(s[Nt])*n,h:k(s[Wt])*n,m:k(s[Ut])*n,s:k(s[Bt])*n,ms:k(li(1e3*s[zt]))*n}):(s=ki.exec(t))?(n="-"===s[1]?-1:1,a={y:Di(s[2],n),M:Di(s[3],n),w:Di(s[4],n),d:Di(s[5],n),h:Di(s[6],n),m:Di(s[7],n),s:Di(s[8],n)}):null==a?a={}:"object"===typeof a&&("from"in a||"to"in a)&&(r=Ei(qn(a.from),qn(a.to)),a={},a.ms=r.milliseconds,a.M=r.months),i=new si(a),oi(t)&&f(t,"_locale")&&(i._locale=t._locale),i}function Di(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ci(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ei(t,e){var n;return t.isValid()&&e.isValid()?(e=di(e,t),t.isBefore(e)?n=Ci(t,e):(n=Ci(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Oi(t,e){return function(n,i){var r,a;return null===i||isNaN(+i)||(Y(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=i,i=a),n="string"===typeof n?+n:n,r=Ti(n,i),Yi(this,r,t),this}}function Yi(t,e,n,i){var a=e._milliseconds,s=li(e._days),o=li(e._months);t.isValid()&&(i=null==i||i,o&&de(t,Qt(t,"Month")+o*n),s&&te(t,"Date",Qt(t,"Date")+s*n),a&&t._d.setTime(t._d.valueOf()+a*n),i&&r.updateOffset(t,s||o))}Ti.fn=si.prototype,Ti.invalid=ai;var Ai=Oi(1,"add"),Pi=Oi(-1,"subtract");function Ri(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Ii(t,e){var n=t||qn(),i=di(n,this).startOf("day"),a=r.calendarFormat(this,i)||"sameElse",s=e&&(A(e[a])?e[a].call(this,n):e[a]);return this.format(s||this.localeData().calendar(a,this,qn(n)))}function ji(){return new M(this)}function Fi(t,e){var n=S(t)?t:qn(t);return!(!this.isValid()||!n.isValid())&&(e=$(e)||"millisecond","millisecond"===e?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function Hi(t,e){var n=S(t)?t:qn(t);return!(!this.isValid()||!n.isValid())&&(e=$(e)||"millisecond","millisecond"===e?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function Ni(t,e,n,i){var r=S(t)?t:qn(t),a=S(e)?e:qn(e);return!!(this.isValid()&&r.isValid()&&a.isValid())&&(i=i||"()",("("===i[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(a,n):!this.isAfter(a,n)))}function Wi(t,e){var n,i=S(t)?t:qn(t);return!(!this.isValid()||!i.isValid())&&(e=$(e)||"millisecond","millisecond"===e?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function Ui(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function Bi(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function zi(t,e,n){var i,r,a;if(!this.isValid())return NaN;if(i=di(t,this),!i.isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),e=$(e),e){case"year":a=Vi(this,i)/12;break;case"month":a=Vi(this,i);break;case"quarter":a=Vi(this,i)/3;break;case"second":a=(this-i)/1e3;break;case"minute":a=(this-i)/6e4;break;case"hour":a=(this-i)/36e5;break;case"day":a=(this-i-r)/864e5;break;case"week":a=(this-i-r)/6048e5;break;default:a=this-i}return n?a:L(a)}function Vi(t,e){var n,i,r=12*(e.year()-t.year())+(e.month()-t.month()),a=t.clone().add(r,"months");return e-a<0?(n=t.clone().add(r-1,"months"),i=(e-a)/(a-n)):(n=t.clone().add(r+1,"months"),i=(e-a)/(n-a)),-(r+i)||0}function Gi(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Xi(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?ct(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):A(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",ct(n,"Z")):ct(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Ki(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",a=e+'[")]';return this.format(n+i+r+a)}function qi(t){t||(t=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var e=ct(this,t);return this.localeData().postformat(e)}function Ji(t,e){return this.isValid()&&(S(t)&&t.isValid()||qn(t).isValid())?Ti({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function $i(t){return this.from(qn(),t)}function Zi(t,e){return this.isValid()&&(S(t)&&t.isValid()||qn(t).isValid())?Ti({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Qi(t){return this.to(qn(),t)}function tr(t){var e;return void 0===t?this._locale._abbr:(e=vn(t),null!=e&&(this._locale=e),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var er=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function nr(){return this._locale}var ir=1e3,rr=60*ir,ar=60*rr,sr=3506328*ar;function or(t,e){return(t%e+e)%e}function lr(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-sr:new Date(t,e,n).valueOf()}function ur(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-sr:Date.UTC(t,e,n)}function cr(t){var e;if(t=$(t),void 0===t||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?ur:lr;switch(t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=or(e+(this._isUTC?0:this.utcOffset()*rr),ar);break;case"minute":e=this._d.valueOf(),e-=or(e,rr);break;case"second":e=this._d.valueOf(),e-=or(e,ir);break}return this._d.setTime(e),r.updateOffset(this,!0),this}function hr(t){var e;if(t=$(t),void 0===t||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?ur:lr;switch(t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=ar-or(e+(this._isUTC?0:this.utcOffset()*rr),ar)-1;break;case"minute":e=this._d.valueOf(),e+=rr-or(e,rr)-1;break;case"second":e=this._d.valueOf(),e+=ir-or(e,ir)-1;break}return this._d.setTime(e),r.updateOffset(this,!0),this}function dr(){return this._d.valueOf()-6e4*(this._offset||0)}function fr(){return Math.floor(this.valueOf()/1e3)}function mr(){return new Date(this.valueOf())}function pr(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function _r(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function gr(){return this.isValid()?this.toISOString():null}function vr(){return v(this)}function yr(){return m({},g(this))}function br(){return g(this).overflow}function wr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function xr(t,e){ot(0,[t,t.length],0,e)}function Mr(t){return Tr.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Sr(t){return Tr.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Lr(){return Le(this.year(),1,4)}function kr(){var t=this.localeData()._week;return Le(this.year(),t.dow,t.doy)}function Tr(t,e,n,i,r){var a;return null==t?Se(this,i,r).year:(a=Le(t,i,r),e>a&&(e=a),Dr.call(this,t,e,n,i,r))}function Dr(t,e,n,i,r){var a=Me(t,e,n,i,r),s=we(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function Cr(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}ot(0,["gg",2],0,(function(){return this.weekYear()%100})),ot(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),xr("gggg","weekYear"),xr("ggggg","weekYear"),xr("GGGG","isoWeekYear"),xr("GGGGG","isoWeekYear"),J("weekYear","gg"),J("isoWeekYear","GG"),tt("weekYear",1),tt("isoWeekYear",1),Et("G",St),Et("g",St),Et("GG",gt,ft),Et("gg",gt,ft),Et("GGGG",wt,pt),Et("gggg",wt,pt),Et("GGGGG",xt,_t),Et("ggggg",xt,_t),It(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,i){e[i.substr(0,2)]=k(t)})),It(["gg","GG"],(function(t,e,n,i){e[i]=r.parseTwoDigitYear(t)})),ot("Q",0,"Qo","quarter"),J("quarter","Q"),tt("quarter",7),Et("Q",dt),Rt("Q",(function(t,e){e[Ht]=3*(k(t)-1)})),ot("D",["DD",2],"Do","date"),J("date","D"),tt("date",9),Et("D",gt),Et("DD",gt,ft),Et("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Rt(["D","DD"],Nt),Rt("Do",(function(t,e){e[Nt]=k(t.match(gt)[0])}));var Er=Zt("Date",!0);function Or(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}ot("DDD",["DDDD",3],"DDDo","dayOfYear"),J("dayOfYear","DDD"),tt("dayOfYear",4),Et("DDD",bt),Et("DDDD",mt),Rt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=k(t)})),ot("m",["mm",2],0,"minute"),J("minute","m"),tt("minute",14),Et("m",gt),Et("mm",gt,ft),Rt(["m","mm"],Ut);var Yr=Zt("Minutes",!1);ot("s",["ss",2],0,"second"),J("second","s"),tt("second",15),Et("s",gt),Et("ss",gt,ft),Rt(["s","ss"],Bt);var Ar,Pr=Zt("Seconds",!1);for(ot("S",0,0,(function(){return~~(this.millisecond()/100)})),ot(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),ot(0,["SSS",3],0,"millisecond"),ot(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),ot(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),ot(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),ot(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),ot(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),ot(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),J("millisecond","ms"),tt("millisecond",16),Et("S",bt,dt),Et("SS",bt,ft),Et("SSS",bt,mt),Ar="SSSS";Ar.length<=9;Ar+="S")Et(Ar,Mt);function Rr(t,e){e[zt]=k(1e3*("0."+t))}for(Ar="S";Ar.length<=9;Ar+="S")Rt(Ar,Rr);var Ir=Zt("Milliseconds",!1);function jr(){return this._isUTC?"UTC":""}function Fr(){return this._isUTC?"Coordinated Universal Time":""}ot("z",0,0,"zoneAbbr"),ot("zz",0,0,"zoneName");var Hr=M.prototype;function Nr(t){return qn(1e3*t)}function Wr(){return qn.apply(null,arguments).parseZone()}function Ur(t){return t}Hr.add=Ai,Hr.calendar=Ii,Hr.clone=ji,Hr.diff=zi,Hr.endOf=hr,Hr.format=qi,Hr.from=Ji,Hr.fromNow=$i,Hr.to=Zi,Hr.toNow=Qi,Hr.get=ee,Hr.invalidAt=br,Hr.isAfter=Fi,Hr.isBefore=Hi,Hr.isBetween=Ni,Hr.isSame=Wi,Hr.isSameOrAfter=Ui,Hr.isSameOrBefore=Bi,Hr.isValid=vr,Hr.lang=er,Hr.locale=tr,Hr.localeData=nr,Hr.max=$n,Hr.min=Jn,Hr.parsingFlags=yr,Hr.set=ne,Hr.startOf=cr,Hr.subtract=Pi,Hr.toArray=pr,Hr.toObject=_r,Hr.toDate=mr,Hr.toISOString=Xi,Hr.inspect=Ki,Hr.toJSON=gr,Hr.toString=Gi,Hr.unix=fr,Hr.valueOf=dr,Hr.creationData=wr,Hr.year=Jt,Hr.isLeapYear=$t,Hr.weekYear=Mr,Hr.isoWeekYear=Sr,Hr.quarter=Hr.quarters=Cr,Hr.month=fe,Hr.daysInMonth=me,Hr.week=Hr.weeks=Ee,Hr.isoWeek=Hr.isoWeeks=Oe,Hr.weeksInYear=kr,Hr.isoWeeksInYear=Lr,Hr.date=Er,Hr.day=Hr.days=Be,Hr.weekday=ze,Hr.isoWeekday=Ve,Hr.dayOfYear=Or,Hr.hour=Hr.hours=ln,Hr.minute=Hr.minutes=Yr,Hr.second=Hr.seconds=Pr,Hr.millisecond=Hr.milliseconds=Ir,Hr.utcOffset=mi,Hr.utc=_i,Hr.local=gi,Hr.parseZone=vi,Hr.hasAlignedHourOffset=yi,Hr.isDST=bi,Hr.isLocal=xi,Hr.isUtcOffset=Mi,Hr.isUtc=Si,Hr.isUTC=Si,Hr.zoneAbbr=jr,Hr.zoneName=Fr,Hr.dates=C("dates accessor is deprecated. Use date instead.",Er),Hr.months=C("months accessor is deprecated. Use month instead",fe),Hr.years=C("years accessor is deprecated. Use year instead",Jt),Hr.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",pi),Hr.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",wi);var Br=I.prototype;function zr(t,e,n,i){var r=vn(),a=p().set(i,e);return r[n](a,t)}function Vr(t,e,n){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return zr(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=zr(t,i,n,"month");return r}function Gr(t,e,n,i){"boolean"===typeof t?(c(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,c(e)&&(n=e,e=void 0),e=e||"");var r,a=vn(),s=t?a._week.dow:0;if(null!=n)return zr(e,(n+s)%7,i,"day");var o=[];for(r=0;r<7;r++)o[r]=zr(e,(r+s)%7,i,"day");return o}function Xr(t,e){return Vr(t,e,"months")}function Kr(t,e){return Vr(t,e,"monthsShort")}function qr(t,e,n){return Gr(t,e,n,"weekdays")}function Jr(t,e,n){return Gr(t,e,n,"weekdaysShort")}function $r(t,e,n){return Gr(t,e,n,"weekdaysMin")}Br.calendar=F,Br.longDateFormat=N,Br.invalidDate=U,Br.ordinal=V,Br.preparse=Ur,Br.postformat=Ur,Br.relativeTime=X,Br.pastFuture=K,Br.set=P,Br.months=oe,Br.monthsShort=ue,Br.monthsParse=he,Br.monthsRegex=ve,Br.monthsShortRegex=_e,Br.week=ke,Br.firstDayOfYear=Ce,Br.firstDayOfWeek=De,Br.weekdays=Ie,Br.weekdaysMin=Ne,Br.weekdaysShort=Fe,Br.weekdaysParse=Ue,Br.weekdaysRegex=Xe,Br.weekdaysShortRegex=qe,Br.weekdaysMinRegex=$e,Br.isPM=rn,Br.meridiem=sn,pn("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===k(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),r.lang=C("moment.lang is deprecated. Use moment.locale instead.",pn),r.langData=C("moment.langData is deprecated. Use moment.localeData instead.",vn);var Zr=Math.abs;function Qr(){var t=this._data;return this._milliseconds=Zr(this._milliseconds),this._days=Zr(this._days),this._months=Zr(this._months),t.milliseconds=Zr(t.milliseconds),t.seconds=Zr(t.seconds),t.minutes=Zr(t.minutes),t.hours=Zr(t.hours),t.months=Zr(t.months),t.years=Zr(t.years),this}function ta(t,e,n,i){var r=Ti(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function ea(t,e){return ta(this,t,e,1)}function na(t,e){return ta(this,t,e,-1)}function ia(t){return t<0?Math.floor(t):Math.ceil(t)}function ra(){var t,e,n,i,r,a=this._milliseconds,s=this._days,o=this._months,l=this._data;return a>=0&&s>=0&&o>=0||a<=0&&s<=0&&o<=0||(a+=864e5*ia(sa(o)+s),s=0,o=0),l.milliseconds=a%1e3,t=L(a/1e3),l.seconds=t%60,e=L(t/60),l.minutes=e%60,n=L(e/60),l.hours=n%24,s+=L(n/24),r=L(aa(s)),o+=r,s-=ia(sa(r)),i=L(o/12),o%=12,l.days=s,l.months=o,l.years=i,this}function aa(t){return 4800*t/146097}function sa(t){return 146097*t/4800}function oa(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if(t=$(t),"month"===t||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+aa(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(sa(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}}function la(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN}function ua(t){return function(){return this.as(t)}}var ca=ua("ms"),ha=ua("s"),da=ua("m"),fa=ua("h"),ma=ua("d"),pa=ua("w"),_a=ua("M"),ga=ua("Q"),va=ua("y");function ya(){return Ti(this)}function ba(t){return t=$(t),this.isValid()?this[t+"s"]():NaN}function wa(t){return function(){return this.isValid()?this._data[t]:NaN}}var xa=wa("milliseconds"),Ma=wa("seconds"),Sa=wa("minutes"),La=wa("hours"),ka=wa("days"),Ta=wa("months"),Da=wa("years");function Ca(){return L(this.days()/7)}var Ea=Math.round,Oa={ss:44,s:45,m:45,h:22,d:26,M:11};function Ya(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}function Aa(t,e,n){var i=Ti(t).abs(),r=Ea(i.as("s")),a=Ea(i.as("m")),s=Ea(i.as("h")),o=Ea(i.as("d")),l=Ea(i.as("M")),u=Ea(i.as("y")),c=r<=Oa.ss&&["s",r]||r<Oa.s&&["ss",r]||a<=1&&["m"]||a<Oa.m&&["mm",a]||s<=1&&["h"]||s<Oa.h&&["hh",s]||o<=1&&["d"]||o<Oa.d&&["dd",o]||l<=1&&["M"]||l<Oa.M&&["MM",l]||u<=1&&["y"]||["yy",u];return c[2]=e,c[3]=+t>0,c[4]=n,Ya.apply(null,c)}function Pa(t){return void 0===t?Ea:"function"===typeof t&&(Ea=t,!0)}function Ra(t,e){return void 0!==Oa[t]&&(void 0===e?Oa[t]:(Oa[t]=e,"s"===t&&(Oa.ss=e-1),!0))}function Ia(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=Aa(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}var ja=Math.abs;function Fa(t){return(t>0)-(t<0)||+t}function Ha(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i=ja(this._milliseconds)/1e3,r=ja(this._days),a=ja(this._months);t=L(i/60),e=L(t/60),i%=60,t%=60,n=L(a/12),a%=12;var s=n,o=a,l=r,u=e,c=t,h=i?i.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var f=d<0?"-":"",m=Fa(this._months)!==Fa(d)?"-":"",p=Fa(this._days)!==Fa(d)?"-":"",_=Fa(this._milliseconds)!==Fa(d)?"-":"";return f+"P"+(s?m+s+"Y":"")+(o?m+o+"M":"")+(l?p+l+"D":"")+(u||c||h?"T":"")+(u?_+u+"H":"")+(c?_+c+"M":"")+(h?_+h+"S":"")}var Na=si.prototype;return Na.isValid=ri,Na.abs=Qr,Na.add=ea,Na.subtract=na,Na.as=oa,Na.asMilliseconds=ca,Na.asSeconds=ha,Na.asMinutes=da,Na.asHours=fa,Na.asDays=ma,Na.asWeeks=pa,Na.asMonths=_a,Na.asQuarters=ga,Na.asYears=va,Na.valueOf=la,Na._bubble=ra,Na.clone=ya,Na.get=ba,Na.milliseconds=xa,Na.seconds=Ma,Na.minutes=Sa,Na.hours=La,Na.days=ka,Na.weeks=Ca,Na.months=Ta,Na.years=Da,Na.humanize=Ia,Na.toISOString=Ha,Na.toString=Ha,Na.toJSON=Ha,Na.locale=tr,Na.localeData=nr,Na.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ha),Na.lang=er,ot("X",0,0,"unix"),ot("x",0,0,"valueOf"),Et("x",St),Et("X",Tt),Rt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))})),Rt("x",(function(t,e,n){n._d=new Date(k(t))})),r.version="2.24.0",a(qn),r.fn=Hr,r.min=Qn,r.max=ti,r.now=ei,r.utc=p,r.unix=Nr,r.months=Xr,r.isDate=h,r.locale=pn,r.invalid=y,r.duration=Ti,r.isMoment=S,r.weekdays=qr,r.parseZone=Wr,r.localeData=vn,r.isDuration=oi,r.monthsShort=Kr,r.weekdaysMin=$r,r.defineLocale=_n,r.updateLocale=gn,r.locales=yn,r.weekdaysShort=Jr,r.normalizeUnits=$,r.relativeTimeRounding=Pa,r.relativeTimeThreshold=Ra,r.calendarFormat=Ri,r.prototype=Hr,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}))}).call(this,n("62e4")(t))},c740:function(t,e,n){"use strict";var i=n("23e7"),r=n("b727").findIndex,a=n("44d2"),s=n("ae40"),o="findIndex",l=!0,u=s(o);o in[]&&Array(1)[o]((function(){l=!1})),i({target:"Array",proto:!0,forced:l||!u},{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),a(o)},c7aa:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t){return 2===t?"שעתיים":t+" שעות"},d:"יום",dd:function(t){return 2===t?"יומיים":t+" ימים"},M:"חודש",MM:function(t){return 2===t?"חודשיים":t+" חודשים"},y:"שנה",yy:function(t){return 2===t?"שנתיים":t%10===0&&10!==t?t+" שנה":t+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(t){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(t)},meridiem:function(t,e,n){return t<5?"לפנות בוקר":t<10?"בבוקר":t<12?n?'לפנה"צ':"לפני הצהריים":t<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}});return e}))},c8f3:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t){return"M"===t.charAt(0)},meridiem:function(t,e,n){return t<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}});return e}))},cdab:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t){var e=t%10,n=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n},week:{dow:1,doy:4}});return e}))},cf1e:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={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(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,n,i){var r=e.words[i];return 1===i.length?n?r[0]:r[1]:t+" "+e.correctGrammaticalCase(t,r)}},n=t.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var t=["[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"];return t[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},cf51:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t){return"d'o"===t.toLowerCase()},meridiem:function(t,e,n){return t>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: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}});function n(t,e,n,i){var r={s:["viensas secunds","'iensas secunds"],ss:[t+" secunds",t+" secunds"],m:["'n míut","'iens míut"],mm:[t+" míuts",t+" míuts"],h:["'n þora","'iensa þora"],hh:[t+" þoras",t+" þoras"],d:["'n ziua","'iensa ziua"],dd:[t+" ziuas",t+" ziuas"],M:["'n mes","'iens mes"],MM:[t+" mesen",t+" mesen"],y:["'n ar","'iens ar"],yy:[t+" ars",t+" ars"]};return i?r[n][0]:e?r[n][0]:r[n][1]}return e}))},cf75:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(t){var e=t;return e=-1!==t.indexOf("jaj")?e.slice(0,-3)+"leS":-1!==t.indexOf("jar")?e.slice(0,-3)+"waQ":-1!==t.indexOf("DIS")?e.slice(0,-3)+"nem":e+" pIq",e}function i(t){var e=t;return e=-1!==t.indexOf("jaj")?e.slice(0,-3)+"Hu’":-1!==t.indexOf("jar")?e.slice(0,-3)+"wen":-1!==t.indexOf("DIS")?e.slice(0,-3)+"ben":e+" ret",e}function r(t,e,n,i){var r=a(t);switch(n){case"ss":return r+" lup";case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}function a(t){var n=Math.floor(t%1e3/100),i=Math.floor(t%100/10),r=t%10,a="";return n>0&&(a+=e[n]+"vatlh"),i>0&&(a+=(""!==a?" ":"")+e[i]+"maH"),r>0&&(a+=(""!==a?" ":"")+e[r]),""===a?"pagh":a}var s=t.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:n,past:i,s:"puS lup",ss:r,m:"wa’ tup",mm:r,h:"wa’ rep",hh:r,d:"wa’ jaj",dd:r,M:"wa’ jar",MM:r,y:"wa’ DIS",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return s}))},d26a:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"},i=t.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(t){return t.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(t,e){return 12===t&&(t=0),"མཚན་མོ"===e&&t>=4||"ཉིན་གུང"===e&&t<5||"དགོང་དག"===e?t+12:t},meridiem:function(t,e,n){return t<4?"མཚན་མོ":t<10?"ཞོགས་ཀས":t<17?"ཉིན་གུང":t<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}});return i}))},d2d4:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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º"});return e}))},d6b6:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t){return/^(ցերեկվա|երեկոյան)$/.test(t)},meridiem:function(t){return t<4?"գիշերվա":t<12?"առավոտվա":t<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(t,e){switch(e){case"DDD":case"w":case"W":case"DDDo":return 1===t?t+"-ին":t+"-րդ";default:return t}},week:{dow:1,doy:7}});return e}))},d716:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t,e){var n=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"è";return"w"!==e&&"W"!==e||(n="a"),t+n},week:{dow:1,doy:4}});return e}))},d81d:function(t,e,n){"use strict";var i=n("23e7"),r=n("b727").map,a=n("1dde"),s=n("ae40"),o=a("map"),l=s("map");i({target:"Array",proto:!0,forced:!o||!l},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},d9f8:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}}});return e}))},db29:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e="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("_"),i=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,a=t.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,i){return t?/-MMM-/.test(i)?n[t.month()]:e[t.month()]:e},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}});return a}))},dc4d:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},i=t.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(t,e){return 12===t&&(t=0),"रात"===e?t<4?t:t+12:"सुबह"===e?t:"दोपहर"===e?t>=10?t:t+12:"शाम"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"रात":t<10?"सुबह":t<17?"दोपहर":t<20?"शाम":"रात"},week:{dow:0,doy:6}});return i}))},e0c5:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"},i=t.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(t){return t.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(t,e){return 12===t&&(t=0),"રાત"===e?t<4?t:t+12:"સવાર"===e?t:"બપોર"===e?t>=10?t:t+12:"સાંજ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"રાત":t<10?"સવાર":t<17?"બપોર":t<20?"સાંજ":"રાત"},week:{dow:0,doy:6}});return i}))},e1d3:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t){var e=t%10,n=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n},week:{dow:1,doy:4}});return e}))},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},e81d:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"},i=t.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(t){return"ល្ងាច"===t},meridiem:function(t,e,n){return t<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(t){return t.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},week:{dow:1,doy:4}});return i}))},ebe4:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"pagi":t<15?"tengahari":t<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}});return e}))},ec18:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";function e(t,e,n,i){var r={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[t+"sekundi",t+"sekundit"],m:["ühe minuti","üks minut"],mm:[t+" minuti",t+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[t+" tunni",t+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[t+" kuu",t+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[t+" aasta",t+" aastat"]};return e?r[n][2]?r[n][2]:r[n][1]:i?r[n][0]:r[n][1]}var n=t.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:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d päeva",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},eda5:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t){return t+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(t){return"ප.ව."===t||"පස් වරු"===t},meridiem:function(t,e,n){return t>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}});return e}))},f260:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return e}))},f3ff:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"},i=t.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(t){return t.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(t,e){return 12===t&&(t=0),"ਰਾਤ"===e?t<4?t:t+12:"ਸਵੇਰ"===e?t:"ਦੁਪਹਿਰ"===e?t>=10?t:t+12:"ਸ਼ਾਮ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"ਰਾਤ":t<10?"ਸਵੇਰ":t<17?"ਦੁਪਹਿਰ":t<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}});return i}))},f6b46:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],n=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],i=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],r=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],a=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],s=t.defineLocale("gd",{months:e,monthsShort:n,monthsParseExact:!0,weekdays:i,weekdaysShort:r,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm: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(t){var e=1===t?"d":t%10===2?"na":"mh";return t+e},week:{dow:1,doy:4}});return s}))},facd:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e="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("_"),i=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,a=t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,i){return t?/-MMM-/.test(i)?n[t.month()]:e[t.month()]:e},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}});return a}))},fca5:function(t,e,n){!function(e,i){t.exports=i(n("2b0e"),n("c1df"))}(window,(function(t,e){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=43)}([,,function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n,i,r,a=t[1]||"",s=t[3];if(!s)return a;if(e&&"function"==typeof btoa){var o=(n=s,i=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),"/*# ".concat(r," */")),l=s.sources.map((function(t){return"/*# sourceURL=".concat(s.sourceRoot||"").concat(t," */")}));return[a].concat(l).concat([o]).join("\n")}return[a].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var a=0;a<this.length;a++){var s=this[a][0];null!=s&&(r[s]=!0)}for(var o=0;o<t.length;o++){var l=[].concat(t[o]);i&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},function(t,e,n){"use strict";var i,r=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},a=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),s=[];function o(t){for(var e=-1,n=0;n<s.length;n++)if(s[n].identifier===t){e=n;break}return e}function l(t,e){for(var n={},i=[],r=0;r<t.length;r++){var a=t[r],l=e.base?a[0]+e.base:a[0],u=n[l]||0,c="".concat(l," ").concat(u);n[l]=u+1;var h=o(c),d={css:a[1],media:a[2],sourceMap:a[3]};-1!==h?(s[h].references++,s[h].updater(d)):s.push({identifier:c,updater:_(d,e),references:1}),i.push(c)}return i}function u(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var r=n.nc;r&&(i.nonce=r)}if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var s=a(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var c,h=(c=[],function(t,e){return c[t]=e,c.filter(Boolean).join("\n")});function d(t,e,n,i){var r=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=h(e,r);else{var a=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(a,s[e]):t.appendChild(a)}}function f(t,e,n){var i=n.css,r=n.media,a=n.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var m=null,p=0;function _(t,e){var n,i,r;if(e.singleton){var a=p++;n=m||(m=u(e)),i=d.bind(null,n,a,!1),r=d.bind(null,n,a,!0)}else n=u(e),i=f.bind(null,n,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=r());var n=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<n.length;i++){var r=o(n[i]);s[r].references--}for(var a=l(t,e),u=0;u<n.length;u++){var c=o(n[u]);0===s[c].references&&(s[c].updater(),s.splice(c,1))}n=a}}}},function(e,n){e.exports=t},,,,function(t,e,n){var i=n(3),r=n(34);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a),t.exports=r.locals||{}},function(t,e,n){var i=n(3),r=n(36);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a),t.exports=r.locals||{}},function(t,e,n){var i=n(3),r=n(38);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a),t.exports=r.locals||{}},function(t,e,n){var i=n(3),r=n(40);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a),t.exports=r.locals||{}},function(t,e,n){var i=n(3),r=n(42);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a),t.exports=r.locals||{}},function(t,e,n){(function(t){var i,r,a,s;function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}"undefined"!=typeof self&&self,s=function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===o(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"01f9":function(t,e,n){"use strict";var i=n("2d00"),r=n("5ca1"),a=n("2aba"),s=n("32e9"),o=n("84f2"),l=n("41a0"),u=n("7f20"),c=n("38fd"),h=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),f="keys",m="values",p=function(){return this};t.exports=function(t,e,n,_,g,v,y){l(n,e,_);var b,w,x,M=function(t){if(!d&&t in T)return T[t];switch(t){case f:case m:return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",L=g==m,k=!1,T=t.prototype,D=T[h]||T["@@iterator"]||g&&T[g],C=D||M(g),E=g?L?M("entries"):C:void 0,O="Array"==e&&T.entries||D;if(O&&(x=c(O.call(new t)))!==Object.prototype&&x.next&&(u(x,S,!0),i||"function"==typeof x[h]||s(x,h,p)),L&&D&&D.name!==m&&(k=!0,C=function(){return D.call(this)}),i&&!y||!d&&!k&&T[h]||s(T,h,C),o[e]=C,o[S]=p,g)if(b={values:L?C:M(m),keys:v?C:M(f),entries:E},y)for(w in b)w in T||a(T,w,b[w]);else r(r.P+r.F*(d||k),e,b);return b}},"02f4":function(t,e,n){var i=n("4588"),r=n("be13");t.exports=function(t){return function(e,n){var a,s,o=String(r(e)),l=i(n),u=o.length;return l<0||l>=u?t?"":void 0:(a=o.charCodeAt(l))<55296||a>56319||l+1===u||(s=o.charCodeAt(l+1))<56320||s>57343?t?o.charAt(l):a:t?o.slice(l,l+2):s-56320+(a-55296<<10)+65536}}},"0390":function(t,e,n){"use strict";var i=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},"09fa":function(t,e,n){var i=n("4588"),r=n("9def");t.exports=function(t){if(void 0===t)return 0;var e=i(t),n=r(e);if(e!==n)throw RangeError("Wrong length!");return n}},"0a49":function(t,e,n){var i=n("9b43"),r=n("626a"),a=n("4bf8"),s=n("9def"),o=n("cd1c");t.exports=function(t,e){var n=1==t,l=2==t,u=3==t,c=4==t,h=6==t,d=5==t||h,f=e||o;return function(e,o,m){for(var p,_,g=a(e),v=r(g),y=i(o,m,3),b=s(v.length),w=0,x=n?f(e,b):l?f(e,0):void 0;b>w;w++)if((d||w in v)&&(_=y(p=v[w],w,g),t))if(n)x[w]=_;else if(_)switch(t){case 3:return!0;case 5:return p;case 6:return w;case 2:x.push(p)}else if(c)return!1;return h?-1:u||c?c:x}}},"0bfb":function(t,e,n){"use strict";var i=n("cb7c");t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,n){var i=n("ce10"),r=n("e11e");t.exports=Object.keys||function(t){return i(t,r)}},"0f0d":function(t,e,n){var i=n("3e2e");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("13fdd262",i,!0,{sourceMap:!1,shadowMode:!1})},"0f88":function(t,e,n){for(var i,r=n("7726"),a=n("32e9"),s=n("ca5a"),o=s("typed_array"),l=s("view"),u=!(!r.ArrayBuffer||!r.DataView),c=u,h=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");h<9;)(i=r[d[h++]])?(a(i.prototype,o,!0),a(i.prototype,l,!0)):c=!1;t.exports={ABV:u,CONSTR:c,TYPED:o,VIEW:l}},1169:function(t,e,n){var i=n("2d95");t.exports=Array.isArray||function(t){return"Array"==i(t)}},"11e9":function(t,e,n){var i=n("52a7"),r=n("4630"),a=n("6821"),s=n("6a99"),o=n("69a8"),l=n("c69a"),u=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?u:function(t,e){if(t=a(t),e=s(e,!0),l)try{return u(t,e)}catch(t){}if(o(t,e))return r(!i.f.call(t,e),t[e])}},1495:function(t,e,n){var i=n("86cc"),r=n("cb7c"),a=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){r(t);for(var n,s=a(e),o=s.length,l=0;o>l;)i.f(t,n=s[l++],e[n]);return t}},"14e8":function(t,e,n){var i=n("aa8a");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("4708d7cf",i,!0,{sourceMap:!1,shadowMode:!1})},1820:function(t,e,n){"use strict";var i=n("2cd7");n.n(i).a},"18d2":function(t,e,n){"use strict";var i=n("18e9");t.exports=function(t){var e=(t=t||{}).reporter,n=t.batchProcessor,r=t.stateHandler.getState;if(!e)throw new Error("Missing required dependency: reporter.");function a(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function s(t){return r(t).object}return{makeDetectable:function(t,s,o){o||(o=s,s=t,t=null),(t=t||{}).debug,i.isIE(8)?o(s):function(s,o){var l=a(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),u=!1,c=window.getComputedStyle(s),h=s.offsetWidth,d=s.offsetHeight;function f(){function n(){if("static"===c.position){s.style.setProperty("position","relative",t.important?"important":"");var n=function(e,n,i,r){var a=i[r];"auto"!==a&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(a)&&(e.warn("An element that is positioned static has style."+r+"="+a+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",n),n.style.setProperty(r,"0",t.important?"important":""))};n(e,s,c,"top"),n(e,s,c,"right"),n(e,s,c,"bottom"),n(e,s,c,"left")}}""!==c.position&&(n(),u=!0);var a=document.createElement("object");a.style.cssText=l,a.tabIndex=-1,a.type="text/html",a.setAttribute("aria-hidden","true"),a.onload=function(){u||n(),function t(e,n){if(!e.contentDocument){var i=r(e);return i.checkForObjectDocumentTimeoutId&&window.clearTimeout(i.checkForObjectDocumentTimeoutId),void(i.checkForObjectDocumentTimeoutId=setTimeout((function(){i.checkForObjectDocumentTimeoutId=0,t(e,n)}),100))}n(e.contentDocument)}(this,(function(t){o(s)}))},i.isIE()||(a.data="about:blank"),r(s)&&(s.appendChild(a),r(s).object=a,i.isIE()&&(a.data="about:blank"))}r(s).startSize={width:h,height:d},n?n.add(f):f()}(s,o)},addListener:function(t,e){function n(){e(t)}if(i.isIE(8))r(t).object={proxy:n},t.attachEvent("onresize",n);else{var a=s(t);if(!a)throw new Error("Element is not detectable by this strategy.");a.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(t){if(r(t)){var e=s(t);e&&(i.isIE(8)?t.detachEvent("onresize",e.proxy):t.removeChild(e),r(t).checkForObjectDocumentTimeoutId&&window.clearTimeout(r(t).checkForObjectDocumentTimeoutId),delete r(t).object)}}}}},"18e9":function(t,e,n){"use strict";var i=t.exports={};i.isIE=function(t){return!(!function(){var t=navigator.userAgent.toLowerCase();return-1!==t.indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/")}()||t&&t!==function(){var t=3,e=document.createElement("div"),n=e.getElementsByTagName("i");do{e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e"}while(n[0]);return t>4?t:void 0}())},i.isLegacyOpera=function(){return!!window.opera}},1991:function(t,e,n){var i,r,a,s=n("9b43"),o=n("31f4"),l=n("fab2"),u=n("230e"),c=n("7726"),h=c.process,d=c.setImmediate,f=c.clearImmediate,m=c.MessageChannel,p=c.Dispatch,_=0,g={},v="onreadystatechange",y=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){y.call(t.data)};d&&f||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++_]=function(){o("function"==typeof t?t:Function(t),e)},i(_),_},f=function(t){delete g[t]},"process"==n("2d95")(h)?i=function(t){h.nextTick(s(y,t,1))}:p&&p.now?i=function(t){p.now(s(y,t,1))}:m?(a=(r=new m).port2,r.port1.onmessage=b,i=s(a.postMessage,a,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(i=function(t){c.postMessage(t+"","*")},c.addEventListener("message",b,!1)):i=v in u("script")?function(t){l.appendChild(u("script"))[v]=function(){l.removeChild(this),y.call(t)}}:function(t){setTimeout(s(y,t,1),0)}),t.exports={set:d,clear:f}},"1c4c":function(t,e,n){"use strict";var i=n("9b43"),r=n("5ca1"),a=n("4bf8"),s=n("1fa8"),o=n("33a4"),l=n("9def"),u=n("f1ae"),c=n("27ee");r(r.S+r.F*!n("5cc5")((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,r,h,d=a(t),f="function"==typeof this?this:Array,m=arguments.length,p=m>1?arguments[1]:void 0,_=void 0!==p,g=0,v=c(d);if(_&&(p=i(p,m>2?arguments[2]:void 0,2)),null==v||f==Array&&o(v))for(n=new f(e=l(d.length));e>g;g++)u(n,g,_?p(d[g],g):d[g]);else for(h=v.call(d),n=new f;!(r=h.next()).done;g++)u(n,g,_?s(h,p,[r.value,g],!0):r.value);return n.length=g,n}})},"1d01":function(t,e,n){"use strict";var i=n("899a");n.n(i).a},"1d3b":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,'.vue-slider-disabled .vue-slider-process{background-color:#a7a7a7}.vue-slider-disabled .vue-slider-dot-handle{border-color:#a7a7a7}.vue-slider-disabled .vue-slider-mark-step-active{-webkit-box-shadow:0 0 0 2px #a7a7a7;box-shadow:0 0 0 2px #a7a7a7}.vue-slider-rail{background-color:#f5f5f5;border-radius:15px;-webkit-transition:background-color .3s;transition:background-color .3s}.vue-slider:hover .vue-slider-rail{background-color:#e1e1e1}.vue-slider-process{background-color:#9cd5ff;border-radius:15px;-webkit-transition:background-color .3s;transition:background-color .3s}.vue-slider:hover .vue-slider-process{background-color:#69c0ff}.vue-slider-mark-step{width:100%;height:100%;border-radius:50%;-webkit-box-shadow:0 0 0 2px #e8e8e8;box-shadow:0 0 0 2px #e8e8e8;background-color:#fff}.vue-slider-mark-step-active{-webkit-box-shadow:0 0 0 2px #9cd5ff;box-shadow:0 0 0 2px #9cd5ff}.vue-slider:hover .vue-slider-mark-step-active{-webkit-box-shadow:0 0 0 2px #69c0ff;box-shadow:0 0 0 2px #69c0ff}.vue-slider-mark-label{font-size:12px;white-space:nowrap}.vue-slider-dot-handle{cursor:pointer;width:100%;height:100%;border-radius:50%;background-color:#fff;border:2px solid #9cd5ff;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:border-color .3s,-webkit-box-shadow .3s;transition:border-color .3s,-webkit-box-shadow .3s;transition:box-shadow .3s,border-color .3s;transition:box-shadow .3s,border-color .3s,-webkit-box-shadow .3s}.vue-slider:hover .vue-slider-dot-handle{border-color:#69c0ff}.vue-slider-dot-handle-focus{border-color:#36abff;-webkit-box-shadow:0 0 0 5px rgba(54,171,255,.2);box-shadow:0 0 0 5px rgba(54,171,255,.2)}.vue-slider-dot-handle:hover,.vue-slider:hover .vue-slider-dot-handle-focus,.vue-slider:hover .vue-slider-dot-handle:hover{border-color:#36abff}.vue-slider-dot-handle-disabled{cursor:not-allowed;border-color:#ddd!important}.vue-slider-dot-tooltip{opacity:0;visibility:hidden;-webkit-transition:all .3s;transition:all .3s}.vue-slider-dot-tooltip-inner{font-size:14px;white-space:nowrap;padding:6px 8px;color:#fff;border-radius:5px;border-color:rgba(0,0,0,.75);background-color:rgba(0,0,0,.75);-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15);-webkit-transform:scale(.9);transform:scale(.9);-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.vue-slider-dot-tooltip-inner:after{content:"";position:absolute}.vue-slider-dot-tooltip-inner-top:after{top:100%;border-color:transparent;border-style:solid;border-width:5px;border-top-color:inherit}.vue-slider-dot-tooltip-inner-bottom:after,.vue-slider-dot-tooltip-inner-top:after{left:50%;-webkit-transform:translate(-50%);transform:translate(-50%);height:0;width:0}.vue-slider-dot-tooltip-inner-bottom:after{bottom:100%;border-color:transparent;border-style:solid;border-width:5px;border-bottom-color:inherit}.vue-slider-dot-tooltip-inner-left:after{left:100%;border-color:transparent;border-style:solid;border-width:5px;border-left-color:inherit}.vue-slider-dot-tooltip-inner-left:after,.vue-slider-dot-tooltip-inner-right:after{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:0;width:0}.vue-slider-dot-tooltip-inner-right:after{right:100%;border-color:transparent;border-style:solid;border-width:5px;border-right-color:inherit}.vue-slider-dot-tooltip-inner-top{-webkit-transform-origin:50% 100%;transform-origin:50% 100%}.vue-slider-dot-tooltip-inner-bottom{-webkit-transform-origin:50% 0;transform-origin:50% 0}.vue-slider-dot-tooltip-inner-left{-webkit-transform-origin:100% 50%;transform-origin:100% 50%}.vue-slider-dot-tooltip-inner-right{-webkit-transform-origin:0 50%;transform-origin:0 50%}.vue-slider-dot-tooltip-show,.vue-slider-dot:hover .vue-slider-dot-tooltip{opacity:1;visibility:visible}.vue-slider-dot-tooltip-show .vue-slider-dot-tooltip-inner,.vue-slider-dot:hover .vue-slider-dot-tooltip .vue-slider-dot-tooltip-inner{-webkit-transform:scale(1);transform:scale(1)}',""])},"1e97":function(t,e,n){var i=n("b188");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("119712a6",i,!0,{sourceMap:!1,shadowMode:!1})},"1fa8":function(t,e,n){var i=n("cb7c");t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(e){var a=t.return;throw void 0!==a&&i(a.call(t)),e}}},"214f":function(t,e,n){"use strict";n("b0c5");var i=n("2aba"),r=n("32e9"),a=n("79e5"),s=n("be13"),o=n("2b4c"),l=n("520a"),u=o("species"),c=!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),h=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var d=o(t),f=!a((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),m=f?!a((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[u]=function(){return n}),n[d](""),!e})):void 0;if(!f||!m||"replace"===t&&!c||"split"===t&&!h){var p=/./[d],_=n(s,d,""[t],(function(t,e,n,i,r){return e.exec===l?f&&!r?{done:!0,value:p.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}})),g=_[0],v=_[1];i(String.prototype,t,g),r(RegExp.prototype,d,2==e?function(t,e){return v.call(t,this,e)}:function(t){return v.call(t,this)})}}},"215a":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,".no-border,.no-border.selected,.no-border:hover{border:none}@-webkit-keyframes vatblink{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes vatblink{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.vatlive{width:100%;height:100%;background-color:#081b2a;border-color:#000;border-width:2px;padding:0;overflow:hidden}.vatlive,.vatlive *,.vatlive>table{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}.vatlive>table{width:100%;height:100%;border:1px solid #364a63;background-color:#081b2a;table-layout:fixed;word-break:break-all;padding:0;border-collapse:separate}.vatlive>table>tr,.vatlive>table>tr>td{padding:0;vertical-align:top}.vatlive>table>tr>td{border:1px solid #364a63;background-color:#1b1b1b;overflow-x:hidden;overflow-y:hidden;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}.vatlive>table>tr>td[max=true]{border:none}.vatlive>table>tr>td:hover{border:1px solid #4e408f}.vatlive>table>tr>td.selected{border:1px solid #bd1c1c}.vatlive>table>tr>td .vatwin{width:100%;height:100%;border:none;position:relative;vertical-align:middle;text-align:center;padding:0}.vatlive>table>tr>td .vatwin .drag-layer{z-index:100;position:absolute;margin:0;padding:0;left:0;top:0;right:0;bottom:0;background-color:rgba(0,0,0,.001)}.vatlive>table>tr>td .vatwin .drag-hover{border:1px solid #137c1c}.vatlive>table>tr>td .vatwin .vatrender{position:absolute;border:none;z-index:50;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.vatlive>table>tr>td .vatwin .vat-record{z-index:51;border:none;position:absolute;background:url(\"data:image/svg+xml;charset=utf-8,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M704 434.496l131.795-131.789a38.4 38.4 0 0165.549 27.155v388.48a38.4 38.4 0 01-65.549 27.15L704 613.701V729.6a38.4 38.4 0 01-38.4 38.4H166.4a38.4 38.4 0 01-38.4-38.4v-384a38.4 38.4 0 0138.4-38.4h499.2a38.4 38.4 0 0138.4 38.4v88.896zM281.6 524.8c42.413 0 76.8-34.387 76.8-76.8s-34.387-76.8-76.8-76.8-76.8 34.387-76.8 76.8 34.387 76.8 76.8 76.8z' fill='%23d81e06'/%3E%3C/svg%3E\");opacity:.8;width:32px;height:32px;top:12px;right:10px;animation:vatblink 2.2s infinite;-moz-animation:vatblink 2.2s infinite;-webkit-animation:vatblink 2.2s infinite;-o-animation:vatblink 2.2s infinite}.vatlive>table>tr>td .vatwin .vat-tool{position:absolute;display:block;border:1px solid rgba(3,88,109,.1);border-radius:3px;bottom:0;width:100%;height:auto;visibility:hidden;background:rgba(54,74,99,.4);opacity:0;z-index:110;text-align:center;-webkit-transition:visibility 0s linear .33s,opacity .33s linear;transition:visibility 0s linear .33s,opacity .33s linear;overflow:hidden}.vatlive>table>tr>td .vatwin .vat-tool a{width:28px;height:28px;margin-left:5px;margin-right:5px;margin-top:5px;background-size:cover;background-repeat:no-repeat;-webkit-transition:all .3s;transition:all .3s;display:inline-block}.vatlive>table>tr>td .vatwin .vat-tool a:hover{-webkit-transform:scale(1.2);transform:scale(1.2)}.vatlive>table>tr>td .vatwin .vat-tool a:active{-webkit-transform:scale(1);transform:scale(1)}.vatlive>table>tr>td .vatwin .vat-tool svg path{fill:#fefefe}.vatlive>table>tr>td .vatwin .vat-tool svg:hover path{fill:#42b7f7}.vatlive>table>tr>td .vatwin:hover .vat-tool{visibility:visible;opacity:.8;-webkit-transition-delay:0s;transition-delay:0s}.vatlive>table>tr>td .vatwin .vat-title{position:absolute;display:block;top:0;width:100%;height:16px;z-index:55;background:#0a1522;border:1px solid #050524}.vatlive>table>tr>td .vatwin .vat-title .state{position:absolute;left:0;display:inline-block;width:16px;height:16px;background-size:cover;-webkit-background-size:cover;-moz-background-size:cover}.vatlive>table>tr>td .vatwin .vat-title .vat-name{position:absolute;top:-1px;left:32px;height:100%;display:inline-block;color:#39aea6;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vatlive>table>tr>td .vatwin .vat-title .vat-speed{position:absolute;top:-1px;right:5px;height:100%;display:inline-block;color:#28312e;font-size:12px;margin-top:1px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.vatlive>table>tr>td .vatwin .vat-error{z-index:51;display:block;position:absolute;border:none;background:rgba(0,0,0,.4);font-size:18px;width:100%;height:100%}.vatlive>table>tr>td .vatwin .vat-error>table{width:100%;height:100%;background:transparent}.vatlive>table>tr>td .vatwin .vat-error>table td{opacity:.8;color:red;text-align:center}.vatlive>table>tr>td .vatwin .vat-error>table tr{vertical-align:middle;display:contents}.vatlive>table>tr>td .vatwin .vat-roi-draw{z-index:102;position:absolute;margin:0;padding:0;left:0;top:0;right:0;bottom:0;border:none}.vatlive>table>tr>td .vatwin .vat-roi-view{z-index:99;position:absolute;margin:0;padding:0;left:0;top:0;right:0;bottom:0;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.vatlive>table>tr>td .vatwin .vat-roi-menu{z-index:120;position:absolute;background-color:#f0f;border:2px solid #1c4480;cursor:pointer;padding:0}.vatlive>table>tr>td .vatwin .vat-roi-menu li{height:25px;border:1px solid rgba(12,74,110,.877);color:#cccbcb;text-align:center;background:rgba(10,54,95,.877);list-style-type:none;padding:2px 5px 2px 5px;font-size:14px;overflow:hidden;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.vatlive>table>tr>td .vatwin .vat-roi-menu li:hover{border:1px solid rgba(22,105,153,.877);background:rgba(21,101,177,.877)}.vatlive>table>tr>td .vatwin .vat-face{z-index:51;position:absolute;margin:0;padding:0;left:0;top:0;right:0;bottom:0}.vatlive>table>tr>td .vatwin .vat-exrender{z-index:52;position:absolute;margin:0;padding:0;left:0;top:0;right:0;bottom:0}.vatlive>table>tr>td .vatwin .vat-ptz-panel{margin-top:20px;margin-left:5px;height:50%;padding-left:25%;z-index:109;background-color:#10313a;position:absolute;opacity:.5}.vatlive>table>tr>td .vat-down{padding-left:32px;height:32px;display:inline-block;cursor:pointer;background:url(\"data:image/svg+xml;charset=utf-8,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M128 806.4h768V896H128v-89.6zM732.288 528l-176.5 186.138c-10.95 11.206-26.412 18.49-43.788 18.49s-32.832-7.284-43.603-18.606l-176.87-185.888c-9.23-10.022-15.111-22.97-15.111-37.324 0-30.816 26.38-55.802 58.9-55.802.454 0 .895.058 1.343.07v-.352h116.435V297.94c0-30.835 26.388-55.82 58.9-55.82 32.53 0 58.905 24.979 58.905 55.82v136.787h114.285v.448c1.165-.064 2.31-.179 3.5-.179 32.526 0 58.9 24.992 58.9 55.815.006 14.355-5.882 27.296-15.296 37.19zM416 128h192v324.8H416V128z' fill='%231bb90a'/%3E%3C/svg%3E\") no-repeat}.vatlive>table>tr>td .vat-down span{display:table-cell;vertical-align:middle;height:32px}.vatlive .check_error{width:100%;height:100%;text-align:center;vertical-align:middle;font-size:20px;color:red}.vatlive .check_error a:link,.vatlive .check_error a:visited{color:red}.vatlive .check_error a:hover{color:#f0f}.vatlive .check_error a:active{color:#00f}.vatlive-dark>table{border:1px solid #364a63;background-color:#081b2a}.vatlive-dark>table>tr>td{border:1px solid #364a63;background-color:#1b1b1b}.vatlive-dark>table>tr>td:hover{border:1px solid #4e408f}.vatlive-dark>table>tr>td.selected{border:1px solid #bd1c1c}.vatlive-dark>table>tr>td .vatwin .drag-hover{border:1px solid #137c1c}.vatlive-dark>table>tr>td .vatwin .vat-tool{border:1px solid rgba(3,88,109,.1);background:rgba(20,20,20,.5)}.vatlive-dark>table>tr>td .vatwin .vat-tool svg path{fill:#fefefe}.vatlive-dark>table>tr>td .vatwin .vat-tool svg:hover path{fill:#3387ff}.vatlive-dark>table>tr>td .vatwin .vat-title{background:#0a1522;border:1px solid #050524}.vatlive-dark>table>tr>td .vatwin .vat-title .vat-name{color:#39aea6}.vatlive-dark>table>tr>td .vatwin .vat-title .vat-speed{color:#b9bcbb}.vatlive-dark>table>tr>td .vatwin .vat-error{background:rgba(0,0,0,.4)}.vatlive-dark>table>tr>td .vatwin .vat-error>table td{color:red}.vatlive-dark>table>tr>td .vatwin .vat-roi-menu{background-color:#f0f;border:2px solid #1c4480}.vatlive-dark>table>tr>td .vatwin .vat-roi-menu li{border:1px solid rgba(12,74,110,.877);color:#cccbcb;background:rgba(10,54,95,.877)}.vatlive-dark>table>tr>td .vatwin .vat-roi-menu li:hover{border:1px solid rgba(22,105,153,.877);background:rgba(21,101,177,.877)}.vatlive-dark .check_error,.vatlive-dark .check_error a:link,.vatlive-dark .check_error a:visited{color:red}.vatlive-dark .check_error a:hover{color:#f0f}.vatlive-dark .check_error a:active{color:#00f}.vatlive-red>table{border:1px solid #220f0f;background-color:#421602}.vatlive-red>table>tr>td{border:1px solid #ac0358;background-color:#241313}.vatlive-red>table>tr>td:hover{border:1px solid #4e408f}.vatlive-red>table>tr>td.selected{border:1px solid #6003ac}.vatlive-red>table>tr>td .vatwin .drag-hover{border:1px solid #7801bd}.vatlive-red>table>tr>td .vatwin .vat-tool{border:1px solid rgba(241,111,111,.1);background:rgba(20,20,20,.5)}.vatlive-red>table>tr>td .vatwin .vat-tool svg path{fill:#fefefe}.vatlive-red>table>tr>td .vatwin .vat-tool svg:hover path{fill:#f75bd0}.vatlive-red>table>tr>td .vatwin .vat-title{background:#410808;border:1px solid #520606}.vatlive-red>table>tr>td .vatwin .vat-title .vat-name{color:#d4af09}.vatlive-red>table>tr>td .vatwin .vat-title .vat-speed{color:#b9bcbb}.vatlive-red>table>tr>td .vatwin .vat-error{background:rgba(0,0,0,.4)}.vatlive-red>table>tr>td .vatwin .vat-error>table td{color:red}.vatlive-red>table>tr>td .vatwin .vat-roi-menu{background-color:#f0f;border:2px solid #5a041e}.vatlive-red>table>tr>td .vatwin .vat-roi-menu li{border:1px solid rgba(141,15,88,.877);color:#cccbcb;background:rgba(66,4,56,.877)}.vatlive-red>table>tr>td .vatwin .vat-roi-menu li:hover{border:1px solid rgba(153,22,114,.877);background:rgba(141,16,110,.877)}.vatlive-red .check_error,.vatlive-red .check_error a:link,.vatlive-red .check_error a:visited{color:red}.vatlive-red .check_error a:hover{color:#f0f}.vatlive-red .check_error a:active{color:#00f}.vatlive-blue>table{border:1px solid #0f1322;background-color:#34495c}.vatlive-blue>table>tr>td{border:1px solid #141f38;background-color:#081b2a}.vatlive-blue>table>tr>td:hover{border:1px solid #2a1588}.vatlive-blue>table>tr>td.selected{border:1px solid #810707}.vatlive-blue>table>tr>td .vatwin .drag-hover{border:1px solid #01851e}.vatlive-blue>table>tr>td .vatwin .vat-tool{border:1px solid rgba(50,53,235,.1);background:rgba(20,20,20,.5)}.vatlive-blue>table>tr>td .vatwin .vat-tool svg path{fill:#fefefe}.vatlive-blue>table>tr>td .vatwin .vat-tool svg:hover path{fill:#6c86f8}.vatlive-blue>table>tr>td .vatwin .vat-title{background:#02134b;border:1px solid #05133a}.vatlive-blue>table>tr>td .vatwin .vat-title .vat-name{color:#a7a7a7}.vatlive-blue>table>tr>td .vatwin .vat-title .vat-speed{color:#b9bcbb}.vatlive-blue>table>tr>td .vatwin .vat-error{background:#081b2a}.vatlive-blue>table>tr>td .vatwin .vat-error>table td{color:red}.vatlive-blue>table>tr>td .vatwin .vat-roi-menu{background-color:#0f378d;border:2px solid #160479}.vatlive-blue>table>tr>td .vatwin .vat-roi-menu li{border:1px solid rgba(14,25,75,.877);color:#cccbcb;background:rgba(3,39,94,.877)}.vatlive-blue>table>tr>td .vatwin .vat-roi-menu li:hover{border:1px solid rgba(2,105,25,.877);background:rgba(39,133,30,.877)}.vatlive-blue .check_error,.vatlive-blue .check_error a:link,.vatlive-blue .check_error a:visited{color:red}.vatlive-blue .check_error a:hover{color:#f0f}.vatlive-blue .check_error a:active{color:#00f}",""])},"227c":function(t,e,n){"use strict";var i=n("0f0d");n.n(i).a},"230e":function(t,e,n){var i=n("d3f4"),r=n("7726").document,a=i(r)&&i(r.createElement);t.exports=function(t){return a?r.createElement(t):{}}},2350:function(t,e){function n(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(i),a=i.sources.map((function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"}));return[n].concat(a).concat([r]).join("\n")}return[n].join("\n")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=n(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r<this.length;r++){var a=this[r][0];"number"==typeof a&&(i[a]=!0)}for(r=0;r<t.length;r++){var s=t[r];"number"==typeof s[0]&&i[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},2397:function(t,e,n){var i=n("5ca1"),r=n("2aeb"),a=n("d8e8"),s=n("cb7c"),o=n("d3f4"),l=n("79e5"),u=n("f0c1"),c=(n("7726").Reflect||{}).construct,h=l((function(){function t(){}return!(c((function(){}),[],t)instanceof t)})),d=!l((function(){c((function(){}))}));i(i.S+i.F*(h||d),"Reflect",{construct:function(t,e){a(t),s(e);var n=arguments.length<3?t:a(arguments[2]);if(d&&!h)return c(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var i=[null];return i.push.apply(i,e),new(u.apply(t,i))}var l=n.prototype,f=r(o(l)?l:Object.prototype),m=Function.apply.call(t,f,e);return o(m)?m:f}})},"23c6":function(t,e,n){var i=n("2d95"),r=n("2b4c")("toStringTag"),a="Arguments"==i(function(){return arguments}());t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),r))?n:a?i(e):"Object"==(s=i(e))&&"function"==typeof e.callee?"Arguments":s}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"272c":function(t,e,n){"use strict";var i=n("1e97");n.n(i).a},"27ee":function(t,e,n){var i=n("23c6"),r=n("2b4c")("iterator"),a=n("84f2");t.exports=n("8378").getIteratorMethod=function(t){if(null!=t)return t[r]||t["@@iterator"]||a[i(t)]}},"28a5":function(t,e,n){"use strict";var i=n("aae3"),r=n("cb7c"),a=n("ebd6"),s=n("0390"),o=n("9def"),l=n("5f1b"),u=n("520a"),c=n("79e5"),h=Math.min,d=[].push,f="split",m="length",p="lastIndex",_=4294967295,g=!c((function(){RegExp(_,"y")}));n("214f")("split",2,(function(t,e,n,c){var v;return v="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[m]||2!="ab"[f](/(?:ab)*/)[m]||4!="."[f](/(.?)(.?)/)[m]||"."[f](/()()/)[m]>1||""[f](/.?/)[m]?function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!i(t))return n.call(r,t,e);for(var a,s,o,l=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,f=void 0===e?_:e>>>0,g=new RegExp(t.source,c+"g");(a=u.call(g,r))&&!((s=g[p])>h&&(l.push(r.slice(h,a.index)),a[m]>1&&a.index<r[m]&&d.apply(l,a.slice(1)),o=a[0][m],h=s,l[m]>=f));)g[p]===a.index&&g[p]++;return h===r[m]?!o&&g.test("")||l.push(""):l.push(r.slice(h)),l[m]>f?l.slice(0,f):l}:"0"[f](void 0,0)[m]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,i){var r=t(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,r,i):v.call(String(r),n,i)},function(t,e){var i=c(v,t,this,e,v!==n);if(i.done)return i.value;var u=r(t),d=String(this),f=a(u,RegExp),m=u.unicode,p=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(g?"y":"g"),y=new f(g?u:"^(?:"+u.source+")",p),b=void 0===e?_:e>>>0;if(0===b)return[];if(0===d.length)return null===l(y,d)?[d]:[];for(var w=0,x=0,M=[];x<d.length;){y.lastIndex=g?x:0;var S,L=l(y,g?d:d.slice(x));if(null===L||(S=h(o(y.lastIndex+(g?0:x)),d.length))===w)x=s(d,x,m);else{if(M.push(d.slice(w,x)),M.length===b)return M;for(var k=1;k<=L.length-1;k++)if(M.push(L[k]),M.length===b)return M;x=w=S}}return M.push(d.slice(w)),M}]}))},"2aba":function(t,e,n){var i=n("7726"),r=n("32e9"),a=n("69a8"),s=n("ca5a")("src"),o=n("fa5b"),l="toString",u=(""+o).split(l);n("8378").inspectSource=function(t){return o.call(t)},(t.exports=function(t,e,n,o){var l="function"==typeof n;l&&(a(n,"name")||r(n,"name",e)),t[e]!==n&&(l&&(a(n,s)||r(n,s,t[e]?""+t[e]:u.join(String(e)))),t===i?t[e]=n:o?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[s]||o.call(this)}))},"2aeb":function(t,e,n){var i=n("cb7c"),r=n("1495"),a=n("e11e"),s=n("613b")("IE_PROTO"),o=function(){},l="prototype",u=function(){var t,e=n("230e")("iframe"),i=a.length;for(e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;i--;)delete u[l][a[i]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(o[l]=i(t),n=new o,o[l]=null,n[s]=t):n=u(),void 0===e?n:r(n,e)}},"2b4c":function(t,e,n){var i=n("5537")("wks"),r=n("ca5a"),a=n("7726").Symbol,s="function"==typeof a;(t.exports=function(t){return i[t]||(i[t]=s&&a[t]||(s?a:r)("Symbol."+t))}).store=i},"2cd7":function(t,e,n){var i=n("86cb");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("65465726",i,!0,{sourceMap:!1,shadowMode:!1})},"2cef":function(t,e,n){"use strict";t.exports=function(){var t=1;return{generate:function(){return t++}}}},"2d00":function(t,e){t.exports=!1},"2d64":function(t,e,n){var i=n("9ba3");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("5713d8e2",i,!0,{sourceMap:!1,shadowMode:!1})},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2ed9":function(t,e,n){"use strict";var i=n("2d64");n.n(i).a},"31f4":function(t,e){t.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},"32e9":function(t,e,n){var i=n("86cc"),r=n("4630");t.exports=n("9e1e")?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"33a4":function(t,e,n){var i=n("84f2"),r=n("2b4c")("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[r]===t)}},"34ef":function(t,e,n){n("ec30")("Uint8",1,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},"36bd":function(t,e,n){"use strict";var i=n("4bf8"),r=n("77f1"),a=n("9def");t.exports=function(t){for(var e=i(this),n=a(e.length),s=arguments.length,o=r(s>1?arguments[1]:void 0,n),l=s>2?arguments[2]:void 0,u=void 0===l?n:r(l,n);u>o;)e[o++]=t;return e}},"37c8":function(t,e,n){e.f=n("2b4c")},3846:function(t,e,n){n("9e1e")&&"g"!=/./g.flags&&n("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:n("0bfb")})},"38fd":function(t,e,n){var i=n("69a8"),r=n("4bf8"),a=n("613b")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},"3a72":function(t,e,n){var i=n("7726"),r=n("8378"),a=n("2d00"),s=n("37c8"),o=n("86cc").f;t.exports=function(t){var e=r.Symbol||(r.Symbol=a?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||o(e,t,{value:s.f(t)})}},"3e2e":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,"@-webkit-keyframes vatblink{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes vatblink{0%{opacity:1}50%{opacity:.4}to{opacity:1}}div[vat=vod-player]{width:100%;height:100%;border:0;padding:0;margin:0;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}div[vat=win-root]{width:100%;height:100%;overflow:hidden}table[vat=win-tab]{width:100%;height:100%;background-color:#2b2b2b;border:1px solid #364a63;border-collapse:separate}table[vat=win-tab],table[vat=win-tab]>tr>td{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}table[vat=win-tab]>tr>td{border:1px solid #2b2b2b;background-color:#101010;overflow-x:hidden;overflow-y:hidden;padding:0;vertical-align:top}table[vat=win-tab]>tr>td[max=true]{border:none}table[vat=win-tab]>tr>td:hover{border:1px solid #4e4067}table[vat=win-tab]>tr>td.selected{border:1px solid #811c1c}table[vat=vod-layout]{width:100%;height:100%;border:none;overflow:hidden;padding:0;margin:0;border-collapse:collapse;border-spacing:0;display:table;table-layout:fixed}table[vat=vod-layout]>tr{border:none}table[vat=vod-layout]>tr>td{border:none;overflow:hidden;position:relative}table[vat=vod-layout]>tr>td #vod-tool{width:100%;height:50px;background-color:#1c4480;display:block}div[vat=timeline]{height:50px;background-color:#0f1322}div[vat=vod-player]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-ms-flex-line-pack:stretch;align-content:stretch;background-color:#000;position:relative;outline:none}div[vat=vod-player] .vod-wins{-ms-flex-item-align:initial;align-self:auto}.vatrender{position:absolute;border:none;z-index:49;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.vatwin{width:100%;height:100%;border:none;position:relative;vertical-align:middle;text-align:center;padding:0;background-color:#000}",""])},"3e39":function(t,e,n){var i=n("1d3b");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("f8f69916",i,!0,{sourceMap:!1,shadowMode:!1})},"41a0":function(t,e,n){"use strict";var i=n("2aeb"),r=n("4630"),a=n("7f20"),s={};n("32e9")(s,n("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=i(s,{next:r(1,n)}),a(t,e+" Iterator")}},"456d":function(t,e,n){var i=n("4bf8"),r=n("0d58");n("5eda")("keys",(function(){return function(t){return r(i(t))}}))},4588:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4971:function(t,e,n){"undefined"!=typeof self&&self,t.exports=function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===o(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"091b":function(t,e,n){(e=n("24fb")(!1)).push([t.i,".vue-slider-dot{position:absolute;-webkit-transition:all 0s;transition:all 0s;z-index:5}.vue-slider-dot-tooltip{position:absolute;visibility:hidden}.vue-slider-dot-hover:hover .vue-slider-dot-tooltip,.vue-slider-dot-tooltip-show{visibility:visible}.vue-slider-dot-tooltip-top{top:-10px;left:50%;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.vue-slider-dot-tooltip-bottom{bottom:-10px;left:50%;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.vue-slider-dot-tooltip-left{left:-10px;top:50%;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.vue-slider-dot-tooltip-right{right:-10px;top:50%;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}",""]),t.exports=e},"24fb":function(t,e,n){"use strict";function i(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r=function(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(n," */")}(i),a=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(a).concat([r]).join("\n")}return[n].join("\n")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=i(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var a=0;a<this.length;a++){var s=this[a][0];null!=s&&(r[s]=!0)}for(var o=0;o<t.length;o++){var l=[].concat(t[o]);i&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},2638:function(t,e,n){"use strict";function i(){return(i=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}var r=["attrs","props","domProps"],a=["class","style","directives"],s=["on","nativeOn"],o=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=function(t){return t.reduce((function(t,e){for(var n in e)if(t[n])if(-1!==r.indexOf(n))t[n]=i({},t[n],e[n]);else if(-1!==a.indexOf(n)){var l=t[n]instanceof Array?t[n]:[t[n]],u=e[n]instanceof Array?e[n]:[e[n]];t[n]=l.concat(u)}else if(-1!==s.indexOf(n))for(var c in e[n])if(t[n][c]){var h=t[n][c]instanceof Array?t[n][c]:[t[n][c]],d=e[n][c]instanceof Array?e[n][c]:[e[n][c]];t[n][c]=h.concat(d)}else t[n][c]=e[n][c];else if("hook"==n)for(var f in e[n])t[n][f]=t[n][f]?o(t[n][f],e[n][f]):e[n][f];else t[n]=e[n];else t[n]=e[n];return t}),{})}},"499e":function(t,e,n){"use strict";function i(t,e){for(var n=[],i={},r=0;r<e.length;r++){var a=e[r],s=a[0],o={id:t+":"+r,css:a[1],media:a[2],sourceMap:a[3]};i[s]?i[s].parts.push(o):n.push(i[s]={id:s,parts:[o]})}return n}n.r(e),n.d(e,"default",(function(){return m}));var r="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},s=r&&(document.head||document.getElementsByTagName("head")[0]),o=null,l=0,u=!1,c=function(){},h=null,d="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function m(t,e,n,r){u=n,h=r||{};var s=i(t,e);return p(s),function(e){for(var n=[],r=0;r<s.length;r++){var o=s[r],l=a[o.id];l.refs--,n.push(l)}for(e?p(s=i(t,e)):s=[],r=0;r<n.length;r++)if(0===(l=n[r]).refs){for(var u=0;u<l.parts.length;u++)l.parts[u]();delete a[l.id]}}}function p(t){for(var e=0;e<t.length;e++){var n=t[e],i=a[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(g(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var s=[];for(r=0;r<n.parts.length;r++)s.push(g(n.parts[r]));a[n.id]={id:n.id,refs:1,parts:s}}}}function _(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function g(t){var e,n,i=document.querySelector("style["+d+'~="'+t.id+'"]');if(i){if(u)return c;i.parentNode.removeChild(i)}if(f){var r=l++;i=o||(o=_()),e=y.bind(null,i,r,!1),n=y.bind(null,i,r,!0)}else i=_(),e=b.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}var v=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function y(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=v(e,r);else{var a=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(a,s[e]):t.appendChild(a)}}function b(t,e){var n=e.css,i=e.media,r=e.sourceMap;if(i&&t.setAttribute("media",i),h.ssrId&&t.setAttribute(d,e.id),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},"4abb":function(t,e,n){var i=n("7a57");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("b2af7572",i,!0,{sourceMap:!1,shadowMode:!1})},"4ed8":function(t,e,n){var i=n("091b");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("2f6bee1a",i,!0,{sourceMap:!1,shadowMode:!1})},"556c":function(t,e,n){var i=n("eef2");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("1209fd47",i,!0,{sourceMap:!1,shadowMode:!1})},"65d9":function(t,e,n){"use strict";
|
||
/**
|
||
* vue-class-component v7.0.1
|
||
* (c) 2015-present Evan You
|
||
* @license MIT
|
||
*/Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){return t&&"object"===o(t)&&"default"in t?t.default:t}(n("8bbf")),r="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function a(t,e){s(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(n){s(t.prototype,e.prototype,n)})),Object.getOwnPropertyNames(e).forEach((function(n){s(t,e,n)}))}function s(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach((function(i){var r=n?Reflect.getOwnMetadata(i,e,n):Reflect.getOwnMetadata(i,e);n?Reflect.defineMetadata(i,r,t,n):Reflect.defineMetadata(i,r,t)}))}var l={__proto__:[]}instanceof Array,u=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function c(t,e){void 0===e&&(e={}),e.name=e.name||t._componentTag||t.name;var n=t.prototype;Object.getOwnPropertyNames(n).forEach((function(t){if("constructor"!==t)if(u.indexOf(t)>-1)e[t]=n[t];else{var i=Object.getOwnPropertyDescriptor(n,t);void 0!==i.value?"function"==typeof i.value?(e.methods||(e.methods={}))[t]=i.value:(e.mixins||(e.mixins=[])).push({data:function(){var e;return(e={})[t]=i.value,e}}):(i.get||i.set)&&((e.computed||(e.computed={}))[t]={get:i.get,set:i.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return function(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var i in t.$options.props)t.hasOwnProperty(i)||n.push(i);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var i=new e;e.prototype._init=n;var r={};return Object.keys(i).forEach((function(t){void 0!==i[t]&&(r[t]=i[t])})),r}(this,t)}});var s=t.__decorators__;s&&(s.forEach((function(t){return t(e)})),delete t.__decorators__);var o=Object.getPrototypeOf(t.prototype),l=o instanceof i?o.constructor:i,c=l.extend(e);return h(c,t,l),r&&a(c,t),c}function h(t,e,n){Object.getOwnPropertyNames(e).forEach((function(i){if("prototype"!==i){var r=Object.getOwnPropertyDescriptor(t,i);if(!r||r.configurable){var a=Object.getOwnPropertyDescriptor(e,i);if(!l){if("cid"===i)return;var s=Object.getOwnPropertyDescriptor(n,i);if(!function(t){var e=o(t);return null==t||"object"!==e&&"function"!==e}(a.value)&&s&&s.value===a.value)return}Object.defineProperty(t,i,a)}}}))}function d(t){return"function"==typeof t?c(t):function(e){return c(e,t)}}d.registerHooks=function(t){u.push.apply(u,t)},e.default=d,e.createDecorator=function(t){return function(e,n,i){var r="function"==typeof e?e:e.constructor;r.__decorators__||(r.__decorators__=[]),"number"!=typeof i&&(i=void 0),r.__decorators__.push((function(e){return t(e,n,i)}))}},e.mixins=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i.extend({mixins:t})}},"7a57":function(t,e,n){(e=n("24fb")(!1)).push([t.i,".vue-slider{position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.vue-slider-rail{position:relative;width:100%;height:100%;-webkit-transition-property:width,height,left,right,top,bottom;transition-property:width,height,left,right,top,bottom}.vue-slider-process{position:absolute;z-index:1}",""]),t.exports=e},8875:function(t,e,n){var i,r,a;"undefined"!=typeof self&&self,r=[],void 0===(a="function"==typeof(i=function(){return function(){if(document.currentScript)return document.currentScript;try{throw new Error}catch(u){var t,e,n,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(u.stack)||/@([^@]*):(\d+):(\d+)\s*$/gi.exec(u.stack),r=i&&i[1]||!1,a=i&&i[2]||!1,s=document.location.href.replace(document.location.hash,""),o=document.getElementsByTagName("script");r===s&&(t=document.documentElement.outerHTML,e=new RegExp("(?:[^\\n]+?\\n){0,"+(a-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=t.replace(e,"$1").trim());for(var l=0;l<o.length;l++){if("interactive"===o[l].readyState)return o[l];if(o[l].src===r)return o[l];if(r===s&&o[l].innerHTML&&o[l].innerHTML.trim()===n)return o[l]}return null}}})?i.apply(e,r):i)||(t.exports=a)},"8bbf":function(e,n){e.exports=t},eef2:function(t,e,n){(e=n("24fb")(!1)).push([t.i,".vue-slider-marks{position:relative;width:100%;height:100%}.vue-slider-mark{position:absolute;z-index:1}.vue-slider-ltr .vue-slider-mark,.vue-slider-rtl .vue-slider-mark{width:0;height:100%;top:50%}.vue-slider-ltr .vue-slider-mark-step,.vue-slider-rtl .vue-slider-mark-step{top:0}.vue-slider-ltr .vue-slider-mark-label,.vue-slider-rtl .vue-slider-mark-label{top:100%;margin-top:10px}.vue-slider-ltr .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ltr .vue-slider-mark-step{left:0}.vue-slider-ltr .vue-slider-mark-label{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.vue-slider-rtl .vue-slider-mark{-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}.vue-slider-rtl .vue-slider-mark-step{right:0}.vue-slider-rtl .vue-slider-mark-label{right:50%;-webkit-transform:translateX(50%);transform:translateX(50%)}.vue-slider-btt .vue-slider-mark,.vue-slider-ttb .vue-slider-mark{width:100%;height:0;left:50%}.vue-slider-btt .vue-slider-mark-step,.vue-slider-ttb .vue-slider-mark-step{left:0}.vue-slider-btt .vue-slider-mark-label,.vue-slider-ttb .vue-slider-mark-label{left:100%;margin-left:10px}.vue-slider-btt .vue-slider-mark{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.vue-slider-btt .vue-slider-mark-step{top:0}.vue-slider-btt .vue-slider-mark-label{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.vue-slider-ttb .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ttb .vue-slider-mark-step{bottom:0}.vue-slider-ttb .vue-slider-mark-label{bottom:50%;-webkit-transform:translateY(50%);transform:translateY(50%)}.vue-slider-mark-label,.vue-slider-mark-step{position:absolute}",""]),t.exports=e},fb15:function(t,e,n){"use strict";if(n.r(e),n.d(e,"ERROR_TYPE",(function(){return F})),n.d(e,"VueSliderMark",(function(){return A})),n.d(e,"VueSliderDot",(function(){return S})),"undefined"!=typeof window){var i=window.document.currentScript,r=n("8875");i=r(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:r});var a=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(n.p=a[1])}var s=n("2638"),l=n.n(s);function u(t,e,n,i){var r,a=arguments.length,s=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===("undefined"==typeof Reflect?"undefined":o(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(s=(a<3?r(s):a>3?r(e,n,s):r(e,n))||s);return a>3&&s&&Object.defineProperty(e,n,s),s}var c=n("8bbf"),h=n.n(c),d=n("65d9"),f=n.n(d);function m(t,e){return void 0===e&&(e={}),Object(d.createDecorator)((function(n,i){(n.props||(n.props={}))[i]=e,n.model={prop:i,event:t||i}}))}function p(t){return void 0===t&&(t={}),Object(d.createDecorator)((function(e,n){(e.props||(e.props={}))[n]=t}))}function _(t,e){void 0===e&&(e={});var n=e.deep,i=void 0!==n&&n,r=e.immediate,a=void 0!==r&&r;return Object(d.createDecorator)((function(e,n){"object"!==o(e.watch)&&(e.watch=Object.create(null));var r=e.watch;"object"!==o(r[t])||Array.isArray(r[t])?void 0===r[t]&&(r[t]=[]):r[t]=[r[t]],r[t].push({handler:n,deep:i,immediate:a})}))}function g(t){return(g="function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?function(t){return o(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":o(t)})(t)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=M(t);if(e){var r=M(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return x(this,n)}}function x(t,e){return!e||"object"!==g(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function M(t){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n("4ed8");var S=function(){var t=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(n,t);var e=w(n);function n(){return v(this,n),e.apply(this,arguments)}return function(t,e,n){e&&y(t.prototype,e),n&&y(t,n)}(n,[{key:"dragStart",value:function(t){if(this.disabled)return!1;this.$emit("drag-start")}},{key:"render",value:function(){var t=arguments[0];return t("div",{ref:"dot",class:this.dotClasses,on:{mousedown:this.dragStart,touchstart:this.dragStart}},[this.$slots.dot||t("div",{class:this.handleClasses,style:this.dotStyle}),"none"!==this.tooltip?t("div",{class:this.tooltipClasses},[this.$slots.tooltip||t("div",{class:this.tooltipInnerClasses,style:this.tooltipStyle},[t("span",{class:"vue-slider-dot-tooltip-text"},[this.tooltipValue])])]):null])}},{key:"dotClasses",get:function(){return["vue-slider-dot",{"vue-slider-dot-hover":"hover"===this.tooltip||"active"===this.tooltip,"vue-slider-dot-disabled":this.disabled,"vue-slider-dot-focus":this.focus}]}},{key:"handleClasses",get:function(){return["vue-slider-dot-handle",{"vue-slider-dot-handle-disabled":this.disabled,"vue-slider-dot-handle-focus":this.focus}]}},{key:"tooltipClasses",get:function(){return["vue-slider-dot-tooltip",["vue-slider-dot-tooltip-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-show":this.showTooltip}]}},{key:"tooltipInnerClasses",get:function(){return["vue-slider-dot-tooltip-inner",["vue-slider-dot-tooltip-inner-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-inner-disabled":this.disabled,"vue-slider-dot-tooltip-inner-focus":this.focus}]}},{key:"showTooltip",get:function(){switch(this.tooltip){case"always":return!0;case"none":return!1;case"focus":case"active":return!!this.focus;default:return!1}}},{key:"tooltipValue",get:function(){return this.tooltipFormatter?"string"==typeof this.tooltipFormatter?this.tooltipFormatter.replace(/\{value\}/,String(this.value)):this.tooltipFormatter(this.value):this.value}}]),n}(h.a);return u([p({default:0})],t.prototype,"value",void 0),u([p()],t.prototype,"tooltip",void 0),u([p()],t.prototype,"dotStyle",void 0),u([p()],t.prototype,"tooltipStyle",void 0),u([p({type:String,validator:function(t){return["top","right","bottom","left"].indexOf(t)>-1},required:!0})],t.prototype,"tooltipPlacement",void 0),u([p({type:[String,Function]})],t.prototype,"tooltipFormatter",void 0),u([p({type:Boolean,default:!1})],t.prototype,"focus",void 0),u([p({default:!1})],t.prototype,"disabled",void 0),u([f.a],t)}();function L(t){return(L="function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?function(t){return o(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":o(t)})(t)}function k(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function T(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function D(t,e){return(D=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function C(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=O(t);if(e){var r=O(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return E(this,n)}}function E(t,e){return!e||"object"!==L(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function O(t){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n("556c");var Y,A=function(){var t=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&D(t,e)}(n,t);var e=C(n);function n(){return k(this,n),e.apply(this,arguments)}return function(t,e,n){e&&T(t.prototype,e),n&&T(t,n)}(n,[{key:"labelClickHandle",value:function(t){t.stopPropagation(),this.$emit("pressLabel",this.mark.pos)}},{key:"render",value:function(){var t=arguments[0],e=this.mark;return t("div",{class:this.marksClasses},[this.$slots.step||t("div",{class:this.stepClasses,style:[this.stepStyle,e.style,e.active?this.stepActiveStyle:null,e.active?e.activeStyle:null]}),this.hideLabel?null:this.$slots.label||t("div",{class:this.labelClasses,style:[this.labelStyle,e.labelStyle,e.active?this.labelActiveStyle:null,e.active?e.labelActiveStyle:null],on:{click:this.labelClickHandle}},[e.label])])}},{key:"marksClasses",get:function(){return["vue-slider-mark",{"vue-slider-mark-active":this.mark.active}]}},{key:"stepClasses",get:function(){return["vue-slider-mark-step",{"vue-slider-mark-step-active":this.mark.active}]}},{key:"labelClasses",get:function(){return["vue-slider-mark-label",{"vue-slider-mark-label-active":this.mark.active}]}}]),n}(h.a);return u([p({required:!0})],t.prototype,"mark",void 0),u([p(Boolean)],t.prototype,"hideLabel",void 0),u([p()],t.prototype,"stepStyle",void 0),u([p()],t.prototype,"stepActiveStyle",void 0),u([p()],t.prototype,"labelStyle",void 0),u([p()],t.prototype,"labelActiveStyle",void 0),u([f.a],t)}(),P=function(t){return"number"==typeof t?"".concat(t,"px"):t},R=function(t,e,n){var i="targetTouches"in t?t.targetTouches[0]:t,r=function(t){var e=document.documentElement,n=document.body,i=t.getBoundingClientRect();return{y:i.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||n.clientTop||0),x:i.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||n.clientLeft||0)}}(e),a={x:i.pageX-r.x,y:i.pageY-r.y};return{x:n?e.offsetWidth-a.x:a.x,y:n?e.offsetHeight-a.y:a.y}};function I(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}!function(t){t[t.PAGE_UP=33]="PAGE_UP",t[t.PAGE_DOWN=34]="PAGE_DOWN",t[t.END=35]="END",t[t.HOME=36]="HOME",t[t.LEFT=37]="LEFT",t[t.UP=38]="UP",t[t.RIGHT=39]="RIGHT",t[t.DOWN=40]="DOWN"}(Y||(Y={}));var j,F,H=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.num=e}return function(t,e,n){e&&I(t.prototype,e),n&&I(t,n)}(t,[{key:"decimal",value:function(t,e){var n=this.num,i=this.getDecimalLen(n),r=this.getDecimalLen(t),a=0;switch(e){case"+":a=this.getExponent(i,r),this.num=(this.safeRoundUp(n,a)+this.safeRoundUp(t,a))/a;break;case"-":a=this.getExponent(i,r),this.num=(this.safeRoundUp(n,a)-this.safeRoundUp(t,a))/a;break;case"*":this.num=this.safeRoundUp(this.safeRoundUp(n,this.getExponent(i)),this.safeRoundUp(t,this.getExponent(r)))/this.getExponent(i+r);break;case"/":a=this.getExponent(i,r),this.num=this.safeRoundUp(n,a)/this.safeRoundUp(t,a);break;case"%":a=this.getExponent(i,r),this.num=this.safeRoundUp(n,a)%this.safeRoundUp(t,a)/a}return this}},{key:"plus",value:function(t){return this.decimal(t,"+")}},{key:"minus",value:function(t){return this.decimal(t,"-")}},{key:"multiply",value:function(t){return this.decimal(t,"*")}},{key:"divide",value:function(t){return this.decimal(t,"/")}},{key:"remainder",value:function(t){return this.decimal(t,"%")}},{key:"toNumber",value:function(){return this.num}},{key:"getDecimalLen",value:function(t){var e="".concat(t).split("e");return("".concat(e[0]).split(".")[1]||"").length-(e[1]?+e[1]:0)}},{key:"getExponent",value:function(t,e){return Math.pow(10,void 0!==e?Math.max(t,e):t)}},{key:"safeRoundUp",value:function(t,e){return Math.round(t*e)}}]),t}();function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function W(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,r=!1,a=void 0;try{for(var s,o=t[Symbol.iterator]();!(i=(s=o.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){r=!0,a=t}finally{try{i||null==o.return||o.return()}finally{if(r)throw a}}return n}}(t,e)||B(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(t){return function(t){if(Array.isArray(t))return z(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||B(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(t,e){if(t){if("string"==typeof t)return z(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?z(t,e):void 0}}function z(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function V(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function G(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}!function(t){t[t.VALUE=1]="VALUE",t[t.INTERVAL=2]="INTERVAL",t[t.MIN=3]="MIN",t[t.MAX=4]="MAX",t[t.ORDER=5]="ORDER"}(F||(F={}));var X=(G(j={},F.VALUE,'The type of the "value" is illegal'),G(j,F.INTERVAL,'The prop "interval" is invalid, "(max - min)" must be divisible by "interval"'),G(j,F.MIN,'The "value" must be greater than or equal to the "min".'),G(j,F.MAX,'The "value" must be less than or equal to the "max".'),G(j,F.ORDER,'When "order" is false, the parameters "minRange", "maxRange", "fixed", "enabled" are invalid.'),j),K=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.dotsPos=[],this.dotsValue=[],this.cacheRangeDir={},this.data=e.data,this.max=e.max,this.min=e.min,this.interval=e.interval,this.order=e.order,this.marks=e.marks,this.included=e.included,this.process=e.process,this.adsorb=e.adsorb,this.dotOptions=e.dotOptions,this.onError=e.onError,this.order?(this.minRange=e.minRange||0,this.maxRange=e.maxRange||0,this.enableCross=e.enableCross,this.fixed=e.fixed):((e.minRange||e.maxRange||!e.enableCross||e.fixed)&&this.emitError(F.ORDER),this.minRange=0,this.maxRange=0,this.enableCross=!0,this.fixed=!1),this.setValue(e.value)}return function(t,e,n){e&&V(t.prototype,e),n&&V(t,n)}(t,[{key:"setValue",value:function(t){this.setDotsValue(Array.isArray(t)?U(t):[t],!0)}},{key:"setDotsValue",value:function(t,e){this.dotsValue=t,e&&this.syncDotsPos()}},{key:"setDotsPos",value:function(t){var e=this,n=this.order?U(t).sort((function(t,e){return t-e})):t;this.dotsPos=n,this.setDotsValue(n.map((function(t){return e.getValueByPos(t)})),this.adsorb)}},{key:"getValueByPos",value:function(t){var e=this.parsePos(t);if(this.included){var n=100;this.markList.forEach((function(i){var r=Math.abs(i.pos-t);r<n&&(n=r,e=i.value)}))}return e}},{key:"syncDotsPos",value:function(){var t=this;this.dotsPos=this.dotsValue.map((function(e){return t.parseValue(e)}))}},{key:"getRecentDot",value:function(t){var e=this.dotsPos.map((function(e){return Math.abs(e-t)}));return e.indexOf(Math.min.apply(Math,U(e)))}},{key:"getIndexByValue",value:function(t){return this.data?this.data.indexOf(t):new H(+t).minus(this.min).divide(this.interval).toNumber()}},{key:"getValueByIndex",value:function(t){return t<0?t=0:t>this.total&&(t=this.total),this.data?this.data[t]:new H(t).multiply(this.interval).plus(this.min).toNumber()}},{key:"setDotPos",value:function(t,e){var n=(t=this.getValidPos(t,e).pos)-this.dotsPos[e];if(n){var i=new Array(this.dotsPos.length);this.fixed?i=this.getFixedChangePosArr(n,e):this.minRange||this.maxRange?i=this.getLimitRangeChangePosArr(t,n,e):i[e]=n,this.setDotsPos(this.dotsPos.map((function(t,e){return t+(i[e]||0)})))}}},{key:"getFixedChangePosArr",value:function(t,e){var n=this;return this.dotsPos.forEach((function(i,r){if(r!==e){var a=n.getValidPos(i+t,r),s=a.pos;a.inRange||(t=Math.min(Math.abs(s-i),Math.abs(t))*(t<0?-1:1))}})),this.dotsPos.map((function(e){return t}))}},{key:"getLimitRangeChangePosArr",value:function(t,e,n){var i=this,r=[{index:n,changePos:e}],a=e;return[this.minRange,this.maxRange].forEach((function(s,o){if(!s)return!1;for(var l,u=0===o,c=e>0,h=function(t,e){var n=Math.abs(t-e);return u?n<i.minRangeDir:n>i.maxRangeDir},d=n+(l=u?c?1:-1:c?-1:1),f=i.dotsPos[d],m=t;i.isPos(f)&&h(f,m);){var p=i.getValidPos(f+a,d).pos;r.push({index:d,changePos:p-f}),d+=l,m=p,f=i.dotsPos[d]}})),this.dotsPos.map((function(t,e){var n=r.filter((function(t){return t.index===e}));return n.length?n[0].changePos:0}))}},{key:"isPos",value:function(t){return"number"==typeof t}},{key:"getValidPos",value:function(t,e){var n=this.valuePosRange[e],i=!0;return t<n[0]?(t=n[0],i=!1):t>n[1]&&(t=n[1],i=!1),{pos:t,inRange:i}}},{key:"parseValue",value:function(t){if(this.data)t=this.data.indexOf(t);else if("number"==typeof t||"string"==typeof t){if((t=+t)<this.min)return this.emitError(F.MIN),0;if(t>this.max)return this.emitError(F.MAX),0;if("number"!=typeof t||t!=t)return this.emitError(F.VALUE),0;t=new H(t).minus(this.min).divide(this.interval).toNumber()}var e=new H(t).multiply(this.gap).toNumber();return e<0?0:e>100?100:e}},{key:"parsePos",value:function(t){var e=Math.round(t/this.gap);return this.getValueByIndex(e)}},{key:"isActiveByPos",value:function(t){return this.processArray.some((function(e){var n=W(e,2),i=n[0],r=n[1];return t>=i&&t<=r}))}},{key:"getValues",value:function(){if(this.data)return this.data;for(var t=[],e=0;e<=this.total;e++)t.push(new H(e).multiply(this.interval).plus(this.min).toNumber());return t}},{key:"getRangeDir",value:function(t){return t?new H(t).divide(new H(this.data?this.data.length-1:this.max).minus(this.data?0:this.min).toNumber()).multiply(100).toNumber():100}},{key:"emitError",value:function(t){this.onError&&this.onError(t,X[t])}},{key:"getDotRange",value:function(t,e,n){if(!this.dotOptions)return n;var i=Array.isArray(this.dotOptions)?this.dotOptions[t]:this.dotOptions;return i&&void 0!==i[e]?this.parseValue(i[e]):n}},{key:"markList",get:function(){var t=this;if(!this.marks)return[];var e=function(e,n){var i=t.parseValue(e);return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?N(Object(n),!0).forEach((function(e){G(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({pos:i,value:e,label:e,active:t.isActiveByPos(i)},n)};return!0===this.marks?this.getValues().map((function(t){return e(t)})):"[object Object]"===Object.prototype.toString.call(this.marks)?Object.keys(this.marks).sort((function(t,e){return+t-+e})).map((function(n){var i=t.marks[n];return e(n,"string"!=typeof i?i:{label:i})})):Array.isArray(this.marks)?this.marks.map((function(t){return e(t)})):"function"==typeof this.marks?this.getValues().map((function(e){return{value:e,result:t.marks(e)}})).filter((function(t){return!!t.result})).map((function(t){var n=t.value,i=t.result;return e(n,i)})):[]}},{key:"processArray",get:function(){if(this.process){if("function"==typeof this.process)return this.process(this.dotsPos);if(1===this.dotsPos.length)return[[0,this.dotsPos[0]]];if(this.dotsPos.length>1)return[[Math.min.apply(Math,U(this.dotsPos)),Math.max.apply(Math,U(this.dotsPos))]]}return[]}},{key:"total",get:function(){var t;return(t=this.data?this.data.length-1:new H(this.max).minus(this.min).divide(this.interval).toNumber())-Math.floor(t)!=0?(this.emitError(F.INTERVAL),0):t}},{key:"gap",get:function(){return 100/this.total}},{key:"minRangeDir",get:function(){return this.cacheRangeDir[this.minRange]?this.cacheRangeDir[this.minRange]:this.cacheRangeDir[this.minRange]=this.getRangeDir(this.minRange)}},{key:"maxRangeDir",get:function(){return this.cacheRangeDir[this.maxRange]?this.cacheRangeDir[this.maxRange]:this.cacheRangeDir[this.maxRange]=this.getRangeDir(this.maxRange)}},{key:"valuePosRange",get:function(){var t=this,e=this.dotsPos,n=[];return e.forEach((function(i,r){n.push([Math.max(t.minRange?t.minRangeDir*r:0,t.enableCross?0:e[r-1]||0,t.getDotRange(r,"min",0)),Math.min(t.minRange?100-t.minRangeDir*(e.length-1-r):100,t.enableCross?100:e[r+1]||100,t.getDotRange(r,"max",100))])})),n}},{key:"dotsIndex",get:function(){var t=this;return this.dotsValue.map((function(e){return t.getIndexByValue(e)}))}}]),t}();function q(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var J=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.states=0,this.map=e}return function(t,e,n){e&&q(t.prototype,e),n&&q(t,n)}(t,[{key:"add",value:function(t){this.states|=t}},{key:"delete",value:function(t){this.states&=~t}},{key:"toggle",value:function(t){this.has(t)?this.delete(t):this.add(t)}},{key:"has",value:function(t){return!!(this.states&t)}}]),t}();function $(t){return($="function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?function(t){return o(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":o(t)})(t)}function Z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Q(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Z(Object(n),!0).forEach((function(e){et(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function tt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,r=!1,a=void 0;try{for(var s,o=t[Symbol.iterator]();!(i=(s=o.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){r=!0,a=t}finally{try{i||null==o.return||o.return()}finally{if(r)throw a}}return n}}(t,e)||it(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nt(t){return function(t){if(Array.isArray(t))return rt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||it(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function it(t,e){if(t){if("string"==typeof t)return rt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rt(t,e):void 0}}function rt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function at(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function st(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function ot(t,e){return(ot=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function lt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=ct(t);if(e){var r=ct(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return ut(this,n)}}function ut(t,e){return!e||"object"!==$(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ct(t){return(ct=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n("4abb");var ht={None:0,Drag:2,Focus:4},dt=function(){var t=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ot(t,e)}(n,t);var e=lt(n);function n(){var t;return at(this,n),(t=e.apply(this,arguments)).states=new J(ht),t.scale=1,t.focusDotIndex=0,t}return function(t,e,n){e&&st(t.prototype,e),n&&st(t,n)}(n,[{key:"onValueChanged",value:function(){this.control&&!this.states.has(ht.Drag)&&this.isNotSync&&this.control.setValue(this.value)}},{key:"created",value:function(){this.initControl()}},{key:"mounted",value:function(){this.bindEvent()}},{key:"beforeDestroy",value:function(){this.unbindEvent()}},{key:"bindEvent",value:function(){document.addEventListener("touchmove",this.dragMove,{passive:!1}),document.addEventListener("touchend",this.dragEnd,{passive:!1}),document.addEventListener("mousedown",this.blurHandle),document.addEventListener("mousemove",this.dragMove),document.addEventListener("mouseup",this.dragEnd),document.addEventListener("mouseleave",this.dragEnd),document.addEventListener("keydown",this.keydownHandle)}},{key:"unbindEvent",value:function(){document.removeEventListener("touchmove",this.dragMove),document.removeEventListener("touchend",this.dragEnd),document.removeEventListener("mousedown",this.blurHandle),document.removeEventListener("mousemove",this.dragMove),document.removeEventListener("mouseup",this.dragEnd),document.removeEventListener("mouseleave",this.dragEnd),document.removeEventListener("keydown",this.keydownHandle)}},{key:"setScale",value:function(){this.scale=new H(Math.floor(this.isHorizontal?this.$el.offsetWidth:this.$el.offsetHeight)).divide(100).toNumber()}},{key:"initControl",value:function(){var t=this;this.control=new K({value:this.value,data:this.data,enableCross:this.enableCross,fixed:this.fixed,max:this.max,min:this.min,interval:this.interval,minRange:this.minRange,maxRange:this.maxRange,order:this.order,marks:this.marks,included:this.included,process:this.process,adsorb:this.adsorb,dotOptions:this.dotOptions,onError:this.emitError}),["data","enableCross","fixed","max","min","interval","minRange","maxRange","order","marks","process","adsorb","included","dotOptions"].forEach((function(e){t.$watch(e,(function(n){if("data"===e&&Array.isArray(t.control.data)&&Array.isArray(n)&&t.control.data.length===n.length&&n.every((function(e,n){return e===t.control.data[n]})))return!1;t.control[e]=n,["data","max","min","interval"].indexOf(e)>-1&&t.control.syncDotsPos()}))}))}},{key:"syncValueByPos",value:function(){var t=this.control.dotsValue;this.isDiff(t,Array.isArray(this.value)?this.value:[this.value])&&this.$emit("change",1===t.length?t[0]:nt(t),this.focusDotIndex)}},{key:"isDiff",value:function(t,e){return t.length!==e.length||t.some((function(t,n){return t!==e[n]}))}},{key:"emitError",value:function(t,e){this.silent||console.error("[VueSlider error]: ".concat(e)),this.$emit("error",t,e)}},{key:"dragStartOnProcess",value:function(t){if(this.dragOnClick){this.setScale();var e=this.getPosByEvent(t),n=this.control.getRecentDot(e);if(this.dots[n].disabled)return;this.dragStart(n),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos()}}},{key:"dragStart",value:function(t){this.focusDotIndex=t,this.setScale(),this.states.add(ht.Drag),this.states.add(ht.Focus),this.$emit("drag-start",this.focusDotIndex)}},{key:"dragMove",value:function(t){if(!this.states.has(ht.Drag))return!1;t.preventDefault();var e=this.getPosByEvent(t);this.isCrossDot(e),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos();var n=this.control.dotsValue;this.$emit("dragging",1===n.length?n[0]:nt(n),this.focusDotIndex)}},{key:"isCrossDot",value:function(t){if(this.canSort){var e=this.focusDotIndex,n=t;n>this.dragRange[1]?(n=this.dragRange[1],this.focusDotIndex++):n<this.dragRange[0]&&(n=this.dragRange[0],this.focusDotIndex--),e!==this.focusDotIndex&&this.control.setDotPos(n,e)}}},{key:"dragEnd",value:function(){var t=this;if(!this.states.has(ht.Drag))return!1;setTimeout((function(){t.lazy&&t.syncValueByPos(),t.included&&t.isNotSync?t.control.setValue(t.value):t.control.syncDotsPos(),t.states.delete(ht.Drag),t.useKeyboard||t.states.delete(ht.Focus),t.$emit("drag-end",t.focusDotIndex)}))}},{key:"blurHandle",value:function(t){if(!this.states.has(ht.Focus)||!this.$refs.container||this.$refs.container.contains(t.target))return!1;this.states.delete(ht.Focus)}},{key:"clickHandle",value:function(t){if(!this.clickable||this.disabled)return!1;if(!this.states.has(ht.Drag)){this.setScale();var e=this.getPosByEvent(t);this.setValueByPos(e)}}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.states.add(ht.Focus),this.focusDotIndex=t}},{key:"blur",value:function(){this.states.delete(ht.Focus)}},{key:"getValue",value:function(){var t=this.control.dotsValue;return 1===t.length?t[0]:t}},{key:"getIndex",value:function(){var t=this.control.dotsIndex;return 1===t.length?t[0]:t}},{key:"setValue",value:function(t){this.control.setValue(Array.isArray(t)?nt(t):[t]),this.syncValueByPos()}},{key:"setIndex",value:function(t){var e=this,n=Array.isArray(t)?t.map((function(t){return e.control.getValueByIndex(t)})):this.control.getValueByIndex(t);this.setValue(n)}},{key:"setValueByPos",value:function(t){var e=this,n=this.control.getRecentDot(t);if(this.disabled||this.dots[n].disabled)return!1;this.focusDotIndex=n,this.control.setDotPos(t,n),this.syncValueByPos(),this.useKeyboard&&this.states.add(ht.Focus),setTimeout((function(){e.included&&e.isNotSync?e.control.setValue(e.value):e.control.syncDotsPos()}))}},{key:"keydownHandle",value:function(t){var e=this;if(!this.useKeyboard||!this.states.has(ht.Focus))return!1;var n=this.included&&this.marks,i=function(t,e){if(e.hook){var n=e.hook(t);if("function"==typeof n)return n;if(!n)return null}switch(t.keyCode){case Y.UP:return function(t){return"ttb"===e.direction?t-1:t+1};case Y.RIGHT:return function(t){return"rtl"===e.direction?t-1:t+1};case Y.DOWN:return function(t){return"ttb"===e.direction?t+1:t-1};case Y.LEFT:return function(t){return"rtl"===e.direction?t+1:t-1};case Y.END:return function(){return e.max};case Y.HOME:return function(){return e.min};case Y.PAGE_UP:return function(t){return t+10};case Y.PAGE_DOWN:return function(t){return t-10};default:return null}}(t,{direction:this.direction,max:n?this.control.markList.length-1:this.control.total,min:0,hook:this.keydownHook});if(i){t.preventDefault();var r=-1,a=0;n?(this.control.markList.some((function(t,n){return t.value===e.control.dotsValue[e.focusDotIndex]&&(r=i(n),!0)})),r<0?r=0:r>this.control.markList.length-1&&(r=this.control.markList.length-1),a=this.control.markList[r].pos):(r=i(this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex])),a=this.control.parseValue(this.control.getValueByIndex(r))),this.isCrossDot(a),this.control.setDotPos(a,this.focusDotIndex),this.syncValueByPos()}}},{key:"getPosByEvent",value:function(t){return R(t,this.$el,this.isReverse)[this.isHorizontal?"x":"y"]/this.scale}},{key:"renderSlot",value:function(t,e,n,i){var r=this.$createElement,a=this.$scopedSlots[t];return a?i?a(e):r("template",{slot:t},[a(e)]):n}},{key:"render",value:function(){var t=this,e=arguments[0];return e("div",l()([{ref:"container",class:this.containerClasses,style:this.containerStyles,on:{click:this.clickHandle,touchstart:this.dragStartOnProcess,mousedown:this.dragStartOnProcess}},this.$attrs]),[e("div",{class:"vue-slider-rail",style:this.railStyle},[this.processArray.map((function(n,i){return t.renderSlot("process",n,e("div",{class:"vue-slider-process",key:"process-".concat(i),style:n.style}),!0)})),this.marks?e("div",{class:"vue-slider-marks"},[this.control.markList.map((function(n,i){var r;return t.renderSlot("mark",n,e("vue-slider-mark",{key:"mark-".concat(i),attrs:{mark:n,hideLabel:t.hideLabel,stepStyle:t.stepStyle,stepActiveStyle:t.stepActiveStyle,labelStyle:t.labelStyle,labelActiveStyle:t.labelActiveStyle},style:(r={},et(r,t.isHorizontal?"height":"width","100%"),et(r,t.isHorizontal?"width":"height",t.tailSize),et(r,t.mainDirection,"".concat(n.pos,"%")),r),on:{pressLabel:function(e){return t.clickable&&t.setValueByPos(e)}}},[t.renderSlot("step",n,null),t.renderSlot("label",n,null)]),!0)}))]):null,this.dots.map((function(n,i){var r;return e("vue-slider-dot",{ref:"dot-".concat(i),key:"dot-".concat(i),attrs:{value:n.value,disabled:n.disabled,focus:n.focus,"dot-style":[n.style,n.disabled?n.disabledStyle:null,n.focus?n.focusStyle:null],tooltip:n.tooltip||t.tooltip,"tooltip-style":[t.tooltipStyle,n.tooltipStyle,n.disabled?n.tooltipDisabledStyle:null,n.focus?n.tooltipFocusStyle:null],"tooltip-formatter":Array.isArray(t.tooltipFormatter)?t.tooltipFormatter[i]:t.tooltipFormatter,"tooltip-placement":t.tooltipDirections[i]},style:[t.dotBaseStyle,(r={},et(r,t.mainDirection,"".concat(n.pos,"%")),et(r,"transition","".concat(t.mainDirection," ").concat(t.animateTime,"s")),r)],on:{"drag-start":function(){return t.dragStart(i)}}},[t.renderSlot("dot",n,null),t.renderSlot("tooltip",n,null)])})),this.renderSlot("default",{value:this.getValue()},null,!0)])])}},{key:"tailSize",get:function(){return P((this.isHorizontal?this.height:this.width)||4)}},{key:"containerClasses",get:function(){return["vue-slider",["vue-slider-".concat(this.direction)],{"vue-slider-disabled":this.disabled}]}},{key:"containerStyles",get:function(){var t=tt(Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],2),e=t[0],n=t[1],i=this.width?P(this.width):this.isHorizontal?"auto":P(4),r=this.height?P(this.height):this.isHorizontal?P(4):"auto";return{padding:this.contained?"".concat(n/2,"px ").concat(e/2,"px"):this.isHorizontal?"".concat(n/2,"px 0"):"0 ".concat(e/2,"px"),width:i,height:r}}},{key:"processArray",get:function(){var t=this;return this.control.processArray.map((function(e,n){var i,r=tt(e,3),a=r[0],s=r[1],o=r[2];if(a>s){var l=[s,a];a=l[0],s=l[1]}var u=t.isHorizontal?"width":"height";return{start:a,end:s,index:n,style:Q(Q((i={},et(i,t.isHorizontal?"height":"width","100%"),et(i,t.isHorizontal?"top":"left",0),et(i,t.mainDirection,"".concat(a,"%")),et(i,u,"".concat(s-a,"%")),et(i,"transitionProperty","".concat(u,",").concat(t.mainDirection)),et(i,"transitionDuration","".concat(t.animateTime,"s")),i),t.processStyle),o)}}))}},{key:"dotBaseStyle",get:function(){var t,e=tt(Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],2),n=e[0],i=e[1];return t=this.isHorizontal?et({transform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),WebkitTransform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),top:"50%"},"ltr"===this.direction?"left":"right","0"):et({transform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),WebkitTransform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),left:"50%"},"btt"===this.direction?"bottom":"top","0"),Q({width:"".concat(n,"px"),height:"".concat(i,"px")},t)}},{key:"mainDirection",get:function(){switch(this.direction){case"ltr":return"left";case"rtl":return"right";case"btt":return"bottom";case"ttb":return"top"}}},{key:"isHorizontal",get:function(){return"ltr"===this.direction||"rtl"===this.direction}},{key:"isReverse",get:function(){return"rtl"===this.direction||"btt"===this.direction}},{key:"tooltipDirections",get:function(){var t=this.tooltipPlacement||(this.isHorizontal?"top":"left");return Array.isArray(t)?t:this.dots.map((function(){return t}))}},{key:"dots",get:function(){var t=this;return this.control.dotsPos.map((function(e,n){return Q({pos:e,index:n,value:t.control.dotsValue[n],focus:t.states.has(ht.Focus)&&t.focusDotIndex===n,disabled:t.disabled,style:t.dotStyle},(Array.isArray(t.dotOptions)?t.dotOptions[n]:t.dotOptions)||{})}))}},{key:"animateTime",get:function(){return this.states.has(ht.Drag)?0:this.duration}},{key:"canSort",get:function(){return this.order&&!this.minRange&&!this.maxRange&&!this.fixed&&this.enableCross}},{key:"isNotSync",get:function(){var t=this.control.dotsValue;return Array.isArray(this.value)?this.value.length!==t.length||this.value.some((function(e,n){return e!==t[n]})):this.value!==t[0]}},{key:"dragRange",get:function(){var t=this.dots[this.focusDotIndex-1],e=this.dots[this.focusDotIndex+1];return[t?t.pos:-1/0,e?e.pos:1/0]}}]),n}(h.a);return u([m("change",{default:0})],t.prototype,"value",void 0),u([p({type:Boolean,default:!1})],t.prototype,"silent",void 0),u([p({default:"ltr",validator:function(t){return["ltr","rtl","ttb","btt"].indexOf(t)>-1}})],t.prototype,"direction",void 0),u([p({type:[Number,String]})],t.prototype,"width",void 0),u([p({type:[Number,String]})],t.prototype,"height",void 0),u([p({default:14})],t.prototype,"dotSize",void 0),u([p({default:!1})],t.prototype,"contained",void 0),u([p({type:Number,default:0})],t.prototype,"min",void 0),u([p({type:Number,default:100})],t.prototype,"max",void 0),u([p({type:Number,default:1})],t.prototype,"interval",void 0),u([p({type:Boolean,default:!1})],t.prototype,"disabled",void 0),u([p({type:Boolean,default:!0})],t.prototype,"clickable",void 0),u([p({type:Boolean,default:!1})],t.prototype,"dragOnClick",void 0),u([p({type:Number,default:.5})],t.prototype,"duration",void 0),u([p(Array)],t.prototype,"data",void 0),u([p({type:Boolean,default:!1})],t.prototype,"lazy",void 0),u([p({type:String,validator:function(t){return["none","always","focus","hover","active"].indexOf(t)>-1},default:"active"})],t.prototype,"tooltip",void 0),u([p({type:[String,Array],validator:function(t){return(Array.isArray(t)?t:[t]).every((function(t){return["top","right","bottom","left"].indexOf(t)>-1}))}})],t.prototype,"tooltipPlacement",void 0),u([p({type:[String,Array,Function]})],t.prototype,"tooltipFormatter",void 0),u([p({type:Boolean,default:!1})],t.prototype,"useKeyboard",void 0),u([p(Function)],t.prototype,"keydownHook",void 0),u([p({type:Boolean,default:!0})],t.prototype,"enableCross",void 0),u([p({type:Boolean,default:!1})],t.prototype,"fixed",void 0),u([p({type:Boolean,default:!0})],t.prototype,"order",void 0),u([p(Number)],t.prototype,"minRange",void 0),u([p(Number)],t.prototype,"maxRange",void 0),u([p({type:[Boolean,Object,Array,Function],default:!1})],t.prototype,"marks",void 0),u([p({type:[Boolean,Function],default:!0})],t.prototype,"process",void 0),u([p(Boolean)],t.prototype,"included",void 0),u([p(Boolean)],t.prototype,"adsorb",void 0),u([p(Boolean)],t.prototype,"hideLabel",void 0),u([p()],t.prototype,"dotOptions",void 0),u([p()],t.prototype,"railStyle",void 0),u([p()],t.prototype,"processStyle",void 0),u([p()],t.prototype,"dotStyle",void 0),u([p()],t.prototype,"tooltipStyle",void 0),u([p()],t.prototype,"stepStyle",void 0),u([p()],t.prototype,"stepActiveStyle",void 0),u([p()],t.prototype,"labelStyle",void 0),u([p()],t.prototype,"labelActiveStyle",void 0),u([_("value")],t.prototype,"onValueChanged",null),u([f()({data:function(){return{control:null}},components:{VueSliderDot:S,VueSliderMark:A}})],t)}();dt.VueSliderMark=A,dt.VueSliderDot=S;var ft=dt;e.default=ft}}).default}(n("8bbf"))},"499e":function(t,e,n){"use strict";function i(t,e){for(var n=[],i={},r=0;r<e.length;r++){var a=e[r],s=a[0],o={id:t+":"+r,css:a[1],media:a[2],sourceMap:a[3]};i[s]?i[s].parts.push(o):n.push(i[s]={id:s,parts:[o]})}return n}n.r(e),n.d(e,"default",(function(){return m}));var r="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},s=r&&(document.head||document.getElementsByTagName("head")[0]),o=null,l=0,u=!1,c=function(){},h=null,d="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function m(t,e,n,r){u=n,h=r||{};var s=i(t,e);return p(s),function(e){for(var n=[],r=0;r<s.length;r++){var o=s[r],l=a[o.id];l.refs--,n.push(l)}for(e?p(s=i(t,e)):s=[],r=0;r<n.length;r++)if(0===(l=n[r]).refs){for(var u=0;u<l.parts.length;u++)l.parts[u]();delete a[l.id]}}}function p(t){for(var e=0;e<t.length;e++){var n=t[e],i=a[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(g(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var s=[];for(r=0;r<n.parts.length;r++)s.push(g(n.parts[r]));a[n.id]={id:n.id,refs:1,parts:s}}}}function _(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function g(t){var e,n,i=document.querySelector("style["+d+'~="'+t.id+'"]');if(i){if(u)return c;i.parentNode.removeChild(i)}if(f){var r=l++;i=o||(o=_()),e=y.bind(null,i,r,!1),n=y.bind(null,i,r,!0)}else i=_(),e=b.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}var v=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function y(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=v(e,r);else{var a=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(a,s[e]):t.appendChild(a)}}function b(t,e){var n=e.css,i=e.media,r=e.sourceMap;if(i&&t.setAttribute("media",i),h.ssrId&&t.setAttribute(d,e.id),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},"49ad":function(t,e,n){"use strict";t.exports=function(t){var e={};function n(n){var i=t.get(n);return void 0===i?[]:e[i]||[]}return{get:n,add:function(n,i){var r=t.get(n);e[r]||(e[r]=[]),e[r].push(i)},removeListener:function(t,e){for(var i=n(t),r=0,a=i.length;r<a;++r)if(i[r]===e){i.splice(r,1);break}},removeAllListeners:function(t){var e=n(t);e&&(e.length=0)}}}},"4a59":function(t,e,n){var i=n("9b43"),r=n("1fa8"),a=n("33a4"),s=n("cb7c"),o=n("9def"),l=n("27ee"),u={},c={};(e=t.exports=function(t,e,n,h,d){var f,m,p,_,g=d?function(){return t}:l(t),v=i(n,h,e?2:1),y=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(a(g)){for(f=o(t.length);f>y;y++)if((_=e?v(s(m=t[y])[0],m[1]):v(t[y]))===u||_===c)return _}else for(p=g.call(t);!(m=p.next()).done;)if((_=r(p,v,m.value,e))===u||_===c)return _}).BREAK=u,e.RETURN=c},"4b0b":function(t,e,n){"use strict";var i=n("9bfc");n.n(i).a},"4bf8":function(t,e,n){var i=n("be13");t.exports=function(t){return Object(i(t))}},5058:function(t,e,n){"use strict";t.exports=function(t){var e=t.idGenerator,n=t.stateHandler.getState;return{get:function(t){var e=n(t);return e&&void 0!==e.id?e.id:null},set:function(t){var i=n(t);if(!i)throw new Error("setId required the element to have a resize detection state.");var r=e.generate();return i.id=r,r}}}},"50bf":function(t,e,n){"use strict";(t.exports={}).getOption=function(t,e,n){var i=t[e];return null!=i||void 0===n?i:n}},"520a":function(t,e,n){"use strict";var i=n("0bfb"),r=RegExp.prototype.exec,a=String.prototype.replace,s=r,o="lastIndex",l=function(){var t=/a/,e=/b*/g;return r.call(t,"a"),r.call(e,"a"),0!==t[o]||0!==e[o]}(),u=void 0!==/()??/.exec("")[1];(l||u)&&(s=function(t){var e,n,s,c,h=this;return u&&(n=new RegExp("^"+h.source+"$(?!\\s)",i.call(h))),l&&(e=h[o]),s=r.call(h,t),l&&s&&(h[o]=h.global?s.index+s[0].length:e),u&&s&&s.length>1&&a.call(s[0],n,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(s[c]=void 0)})),s}),t.exports=s},"52a7":function(t,e){e.f={}.propertyIsEnumerable},"551c":function(t,e,n){"use strict";var i,r,a,s,o=n("2d00"),l=n("7726"),u=n("9b43"),c=n("23c6"),h=n("5ca1"),d=n("d3f4"),f=n("d8e8"),m=n("f605"),p=n("4a59"),_=n("ebd6"),g=n("1991").set,v=n("8079")(),y=n("a5b8"),b=n("9c80"),w=n("a25f"),x=n("bcaa"),M="Promise",S=l.TypeError,L=l.process,k=L&&L.versions,T=k&&k.v8||"",D=l[M],C="process"==c(L),E=function(){},O=r=y.f,Y=!!function(){try{var t=D.resolve(1),e=(t.constructor={})[n("2b4c")("species")]=function(t){t(E,E)};return(C||"function"==typeof PromiseRejectionEvent)&&t.then(E)instanceof e&&0!==T.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),A=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},P=function(t,e){if(!t._n){t._n=!0;var n=t._c;v((function(){for(var i=t._v,r=1==t._s,a=0,s=function(e){var n,a,s,o=r?e.ok:e.fail,l=e.resolve,u=e.reject,c=e.domain;try{o?(r||(2==t._h&&j(t),t._h=1),!0===o?n=i:(c&&c.enter(),n=o(i),c&&(c.exit(),s=!0)),n===e.promise?u(S("Promise-chain cycle")):(a=A(n))?a.call(n,l,u):l(n)):u(i)}catch(t){c&&!s&&c.exit(),u(t)}};n.length>a;)s(n[a++]);t._c=[],t._n=!1,e&&!t._h&&R(t)}))}},R=function(t){g.call(l,(function(){var e,n,i,r=t._v,a=I(t);if(a&&(e=b((function(){C?L.emit("unhandledRejection",r,t):(n=l.onunhandledrejection)?n({promise:t,reason:r}):(i=l.console)&&i.error&&i.error("Unhandled promise rejection",r)})),t._h=C||I(t)?2:1),t._a=void 0,a&&e.e)throw e.v}))},I=function(t){return 1!==t._h&&0===(t._a||t._c).length},j=function(t){g.call(l,(function(){var e;C?L.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})}))},F=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),P(e,!0))},H=function t(e){var n,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===e)throw S("Promise can't be resolved itself");(n=A(e))?v((function(){var r={_w:i,_d:!1};try{n.call(e,u(t,r,1),u(F,r,1))}catch(t){F.call(r,t)}})):(i._v=e,i._s=1,P(i,!1))}catch(t){F.call({_w:i,_d:!1},t)}}};Y||(D=function(t){m(this,D,M,"_h"),f(t),i.call(this);try{t(u(H,this,1),u(F,this,1))}catch(t){F.call(this,t)}},(i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n("dcbc")(D.prototype,{then:function(t,e){var n=O(_(this,D));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=C?L.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new i;this.promise=t,this.resolve=u(H,t,1),this.reject=u(F,t,1)},y.f=O=function(t){return t===D||t===s?new a(t):r(t)}),h(h.G+h.W+h.F*!Y,{Promise:D}),n("7f20")(D,M),n("7a56")(M),s=n("8378")[M],h(h.S+h.F*!Y,M,{reject:function(t){var e=O(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(o||!Y),M,{resolve:function(t){return x(o&&this===s?D:this,t)}}),h(h.S+h.F*!(Y&&n("5cc5")((function(t){D.all(t).catch(E)}))),M,{all:function(t){var e=this,n=O(e),i=n.resolve,r=n.reject,a=b((function(){var n=[],a=0,s=1;p(t,!1,(function(t){var o=a++,l=!1;n.push(void 0),s++,e.resolve(t).then((function(t){l||(l=!0,n[o]=t,--s||i(n))}),r)})),--s||i(n)}));return a.e&&r(a.v),n.promise},race:function(t){var e=this,n=O(e),i=n.reject,r=b((function(){p(t,!1,(function(t){e.resolve(t).then(n.resolve,i)}))}));return r.e&&i(r.v),n.promise}})},5537:function(t,e,n){var i=n("8378"),r=n("7726"),a="__core-js_shared__",s=r[a]||(r[a]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5577:function(t,e,n){var i=n("716f");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("e84da2fe",i,!0,{sourceMap:!1,shadowMode:!1})},5661:function(t,e,n){var i=n("e6a8");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("d9a8fa16",i,!0,{sourceMap:!1,shadowMode:!1})},"5be5":function(t,e,n){"use strict";t.exports=function(t){var e=t.stateHandler.getState;return{isDetectable:function(t){var n=e(t);return n&&!!n.isDetectable},markAsDetectable:function(t){e(t).isDetectable=!0},isBusy:function(t){return!!e(t).busy},markBusy:function(t,n){e(t).busy=!!n}}}},"5ca1":function(t,e,n){var i=n("7726"),r=n("8378"),a=n("32e9"),s=n("2aba"),o=n("9b43"),l="prototype",u=function t(e,n,u){var c,h,d,f,m=e&t.F,p=e&t.G,_=e&t.P,g=e&t.B,v=p?i:e&t.S?i[n]||(i[n]={}):(i[n]||{})[l],y=p?r:r[n]||(r[n]={}),b=y[l]||(y[l]={});for(c in p&&(u=n),u)d=((h=!m&&v&&void 0!==v[c])?v:u)[c],f=g&&h?o(d,i):_&&"function"==typeof d?o(Function.call,d):d,v&&s(v,c,d,e&t.U),y[c]!=d&&a(y,c,f),_&&b[c]!=d&&(b[c]=d)};i.core=r,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},"5cc5":function(t,e,n){var i=n("2b4c")("iterator"),r=!1;try{var a=[7][i]();a.return=function(){r=!0},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var a=[7],s=a[i]();s.next=function(){return{done:n=!0}},a[i]=function(){return s},t(a)}catch(t){}return n}},"5df3":function(t,e,n){"use strict";var i=n("02f4")(!0);n("01f9")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})}))},"5eda":function(t,e,n){var i=n("5ca1"),r=n("8378"),a=n("79e5");t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],s={};s[t]=e(n),i(i.S+i.F*a((function(){n(1)})),"Object",s)}},"5f1b":function(t,e,n){"use strict";var i=n("23c6"),r=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var a=n.call(t,e);if("object"!==o(a))throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==i(t))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},"613b":function(t,e,n){var i=n("5537")("keys"),r=n("ca5a");t.exports=function(t){return i[t]||(i[t]=r(t))}},"626a":function(t,e,n){var i=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},"63d9":function(t,e,n){n("ec30")("Float32",4,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},"67ab":function(t,e,n){var i=n("ca5a")("meta"),r=n("d3f4"),a=n("69a8"),s=n("86cc").f,l=0,u=Object.isExtensible||function(){return!0},c=!n("79e5")((function(){return u(Object.preventExtensions({}))})),h=function(t){s(t,i,{value:{i:"O"+ ++l,w:{}}})},d=t.exports={KEY:i,NEED:!1,fastKey:function(t,e){if(!r(t))return"symbol"==o(t)?t:("string"==typeof t?"S":"P")+t;if(!a(t,i)){if(!u(t))return"F";if(!e)return"E";h(t)}return t[i].i},getWeak:function(t,e){if(!a(t,i)){if(!u(t))return!0;if(!e)return!1;h(t)}return t[i].w},onFreeze:function(t){return c&&d.NEED&&u(t)&&!a(t,i)&&h(t),t}}},6821:function(t,e,n){var i=n("626a"),r=n("be13");t.exports=function(t){return i(r(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var i=n("d3f4");t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},"6b54":function(t,e,n){"use strict";n("3846");var i=n("cb7c"),r=n("0bfb"),a=n("9e1e"),s="toString",o=/./[s],l=function(t){n("2aba")(RegExp.prototype,s,t,!0)};n("79e5")((function(){return"/a/b"!=o.call({source:"a",flags:"b"})}))?l((function(){var t=i(this);return"/".concat(t.source,"/","flags"in t?t.flags:!a&&t instanceof RegExp?r.call(t):void 0)})):o.name!=s&&l((function(){return o.call(this)}))},"6c7b":function(t,e,n){var i=n("5ca1");i(i.P,"Array",{fill:n("36bd")}),n("9c6c")("fill")},"716f":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,".vod-wins[data-v-7eb6e3ed]{-webkit-box-flex:100;-ms-flex-positive:100;flex-grow:100;display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden}.vod-times[data-v-7eb6e3ed]{display:block;overflow-y:hidden;position:relative}.times-panel[data-v-7eb6e3ed]{position:absolute;width:100%;border:none;margin:0 0;padding:0 0}.vod-time-row[data-v-7eb6e3ed]{-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row;background-color:#121212}.vod-time-left[data-v-7eb6e3ed],.vod-time-row[data-v-7eb6e3ed]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-direction:normal}.vod-time-left[data-v-7eb6e3ed]{width:60px;padding:0 5px;-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column}.calendar-container[data-v-7eb6e3ed]{right:10px;bottom:100px;z-index:20;position:absolute}.err-msg[data-v-7eb6e3ed]{color:red;font:18px Arial;font-weight:bolder}",""])},7514:function(t,e,n){"use strict";var i=n("5ca1"),r=n("0a49")(5),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),i(i.P+i.F*s,"Array",{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(a)},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var i=n("4588"),r=Math.max,a=Math.min;t.exports=function(t,e){return(t=i(t))<0?r(t+e,0):a(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7a56":function(t,e,n){"use strict";var i=n("7726"),r=n("86cc"),a=n("9e1e"),s=n("2b4c")("species");t.exports=function(t){var e=i[t];a&&e&&!e[s]&&r.f(e,s,{configurable:!0,get:function(){return this}})}},"7aa1":function(t,e,n){"use strict";var i=n("14e8");n.n(i).a},"7bbc":function(t,e,n){var i=n("6821"),r=n("9093").f,a={}.toString,s="object"==("undefined"==typeof window?"undefined":o(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"[object Window]"==a.call(t)?function(t){try{return r(t)}catch(t){return s.slice()}}(t):r(i(t))}},"7da8":function(t,e,n){var i=n("852f");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("043b7139",i,!0,{sourceMap:!1,shadowMode:!1})},"7f20":function(t,e,n){var i=n("86cc").f,r=n("69a8"),a=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,a)&&i(t,a,{configurable:!0,value:e})}},"7f7f":function(t,e,n){var i=n("86cc").f,r=Function.prototype,a=/^\s*function ([^ (]*)/,s="name";s in r||n("9e1e")&&i(r,s,{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(t){return""}}})},8079:function(t,e,n){var i=n("7726"),r=n("1991").set,a=i.MutationObserver||i.WebKitMutationObserver,s=i.process,o=i.Promise,l="process"==n("2d95")(s);t.exports=function(){var t,e,n,u=function(){var i,r;for(l&&(i=s.domain)&&i.exit();t;){r=t.fn,t=t.next;try{r()}catch(i){throw t?n():e=void 0,i}}e=void 0,i&&i.enter()};if(l)n=function(){s.nextTick(u)};else if(!a||i.navigator&&i.navigator.standalone)if(o&&o.resolve){var c=o.resolve(void 0);n=function(){c.then(u)}}else n=function(){r.call(i,u)};else{var h=!0,d=document.createTextNode("");new a(u).observe(d,{characterData:!0}),n=function(){d.data=h=!h}}return function(i){var r={fn:i,next:void 0};e&&(e.next=r),t||(t=r,n()),e=r}}},8378:function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"852f":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,".ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{height:15px;bottom:0}.ps__rail-x,.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;position:absolute}.ps__rail-y{width:15px;right:0}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:#eee;opacity:.9}.ps__thumb-x{transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px}.ps__thumb-x,.ps__thumb-y{background-color:#aaa;border-radius:6px;position:absolute}.ps__thumb-y{transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.ps{overflow:auto!important}}",""])},"86cb":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,".play-pb[data-v-44448bc0]{height:20px;position:relative;z-index:100;opacity:.7;margin:0 5px 0 5px}",""])},"86cc":function(t,e,n){var i=n("cb7c"),r=n("c69a"),a=n("6a99"),s=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(i(t),e=a(e,!0),i(n),r)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"899a":function(t,e,n){var i=n("a107");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("66a109b7",i,!0,{sourceMap:!1,shadowMode:!1})},"8a81":function(t,e,n){"use strict";var i=n("7726"),r=n("69a8"),a=n("9e1e"),s=n("5ca1"),l=n("2aba"),u=n("67ab").KEY,c=n("79e5"),h=n("5537"),d=n("7f20"),f=n("ca5a"),m=n("2b4c"),p=n("37c8"),_=n("3a72"),g=n("d4c0"),v=n("1169"),y=n("cb7c"),b=n("d3f4"),w=n("4bf8"),x=n("6821"),M=n("6a99"),S=n("4630"),L=n("2aeb"),k=n("7bbc"),T=n("11e9"),D=n("2621"),C=n("86cc"),E=n("0d58"),O=T.f,Y=C.f,A=k.f,P=i.Symbol,R=i.JSON,I=R&&R.stringify,j="prototype",F=m("_hidden"),H=m("toPrimitive"),N={}.propertyIsEnumerable,W=h("symbol-registry"),U=h("symbols"),B=h("op-symbols"),z=Object[j],V="function"==typeof P&&!!D.f,G=i.QObject,X=!G||!G[j]||!G[j].findChild,K=a&&c((function(){return 7!=L(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(t,e,n){var i=O(z,e);i&&delete z[e],Y(t,e,n),i&&t!==z&&Y(z,e,i)}:Y,q=function(t){var e=U[t]=L(P[j]);return e._k=t,e},J=V&&"symbol"==o(P.iterator)?function(t){return"symbol"==o(t)}:function(t){return t instanceof P},$=function t(e,n,i){return e===z&&t(B,n,i),y(e),n=M(n,!0),y(i),r(U,n)?(i.enumerable?(r(e,F)&&e[F][n]&&(e[F][n]=!1),i=L(i,{enumerable:S(0,!1)})):(r(e,F)||Y(e,F,S(1,{})),e[F][n]=!0),K(e,n,i)):Y(e,n,i)},Z=function(t,e){y(t);for(var n,i=g(e=x(e)),r=0,a=i.length;a>r;)$(t,n=i[r++],e[n]);return t},Q=function(t){var e=N.call(this,t=M(t,!0));return!(this===z&&r(U,t)&&!r(B,t))&&(!(e||!r(this,t)||!r(U,t)||r(this,F)&&this[F][t])||e)},tt=function(t,e){if(t=x(t),e=M(e,!0),t!==z||!r(U,e)||r(B,e)){var n=O(t,e);return!n||!r(U,e)||r(t,F)&&t[F][e]||(n.enumerable=!0),n}},et=function(t){for(var e,n=A(x(t)),i=[],a=0;n.length>a;)r(U,e=n[a++])||e==F||e==u||i.push(e);return i},nt=function(t){for(var e,n=t===z,i=A(n?B:x(t)),a=[],s=0;i.length>s;)!r(U,e=i[s++])||n&&!r(z,e)||a.push(U[e]);return a};V||(l((P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function e(n){this===z&&e.call(B,n),r(this,F)&&r(this[F],t)&&(this[F][t]=!1),K(this,t,S(1,n))};return a&&X&&K(z,t,{configurable:!0,set:e}),q(t)})[j],"toString",(function(){return this._k})),T.f=tt,C.f=$,n("9093").f=k.f=et,n("52a7").f=Q,D.f=nt,a&&!n("2d00")&&l(z,"propertyIsEnumerable",Q,!0),p.f=function(t){return q(m(t))}),s(s.G+s.W+s.F*!V,{Symbol:P});for(var it="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;it.length>rt;)m(it[rt++]);for(var at=E(m.store),st=0;at.length>st;)_(at[st++]);s(s.S+s.F*!V,"Symbol",{for:function(t){return r(W,t+="")?W[t]:W[t]=P(t)},keyFor:function(t){if(!J(t))throw TypeError(t+" is not a symbol!");for(var e in W)if(W[e]===t)return e},useSetter:function(){X=!0},useSimple:function(){X=!1}}),s(s.S+s.F*!V,"Object",{create:function(t,e){return void 0===e?L(t):Z(L(t),e)},defineProperty:$,defineProperties:Z,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:nt});var ot=c((function(){D.f(1)}));s(s.S+s.F*ot,"Object",{getOwnPropertySymbols:function(t){return D.f(w(t))}}),R&&s(s.S+s.F*(!V||c((function(){var t=P();return"[null]"!=I([t])||"{}"!=I({a:t})||"{}"!=I(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=e=i[1],(b(e)||void 0!==t)&&!J(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!J(e))return e}),i[1]=e,I.apply(R,i)}}),P[j][H]||n("32e9")(P[j],H,P[j].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},"8bbf":function(e,n){e.exports=t},"8e6e":function(t,e,n){var i=n("5ca1"),r=n("990b"),a=n("6821"),s=n("11e9"),o=n("f1ae");i(i.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,i=a(t),l=s.f,u=r(i),c={},h=0;u.length>h;)void 0!==(n=l(i,e=u[h++]))&&o(c,e,n);return c}})},9093:function(t,e,n){var i=n("ce10"),r=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},9224:function(t){t.exports=JSON.parse('{"name":"dcs-plugin","version":"1.2.0","vatversion":"1.0.0","description":"DCS H5视频控件","author":"zhouqianlong@cloudwalk.com","homepage":"http://10.135.112.181","private":false,"publishConfig":{"registry":"https://artifact.cloudwalk.work/artifactory/api/npm/all-dept_npm-local/"},"main":"lib/dcs-plugin.umd.min.js","typings":"types/index.d.ts","scripts":{"serve":"vue-cli-service serve","build:demo":"vue-cli-service build","build-player":"vue-cli-service build --target lib --formats umd-min --dest lib ./src/index.ts","build-render":"vue-cli-service build --target lib --formats umd-min --dest lib/renders --name renders ./src/renders.ts","build":"npm run build-player","lint":"vue-cli-service lint","test:unit":"vue-cli-service test:unit","inspect":"vue-cli-service inspect"},"files":["lib","installer","docs","types","README.md"],"dependencies":{"axios":"^0.19.2","compare-versions":"^3.4.0","core-js":"^2.6.5","element-resize-detector":"^1.2.1","perfect-scrollbar":"^1.4.0","vue":"^2.6.6","vue-class-component":"^6.0.0","vue-property-decorator":"^8.0.0","vue-slider-component":"^3.0.43","vuex":"^3.0.1"},"devDependencies":{"@types/jest":"^23.1.4","@vue/cli-plugin-babel":"^3.5.0","@vue/cli-plugin-typescript":"^3.5.0","@vue/cli-plugin-unit-jest":"^3.5.0","@vue/cli-service":"^3.5.0","@vue/test-utils":"1.0.0-beta.29","babel-core":"7.0.0-bridge.0","node-sass":"^4.12.0","sass-loader":"^8.0.0","ts-jest":"^23.0.0","typescript":"^3.2.1","vue-template-compiler":"^2.5.21","zip-webpack-plugin":"^3.0.0"}}')},"990b":function(t,e,n){var i=n("9093"),r=n("2621"),a=n("cb7c"),s=n("7726").Reflect;t.exports=s&&s.ownKeys||function(t){var e=i.f(a(t)),n=r.f;return n?e.concat(n(t)):e}},"9b43":function(t,e,n){var i=n("d8e8");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},"9ba3":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,"@-webkit-keyframes vatblink{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes vatblink{0%{opacity:1}50%{opacity:.4}to{opacity:1}}div[vat=vod-player]{width:100%;height:100%;border:0;padding:0;margin:0;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}div[vat=win-root]{width:100%;height:100%;overflow:hidden}table[vat=win-tab]{width:100%;height:100%;background-color:#2b2b2b;border:1px solid #364a63;border-collapse:separate}table[vat=win-tab],table[vat=win-tab]>tr>td{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}table[vat=win-tab]>tr>td{border:1px solid #2b2b2b;background-color:#101010;overflow-x:hidden;overflow-y:hidden;padding:0;vertical-align:top}table[vat=win-tab]>tr>td[max=true]{border:none}table[vat=win-tab]>tr>td:hover{border:1px solid #4e4067}table[vat=win-tab]>tr>td.selected{border:1px solid #811c1c}table[vat=vod-layout]{width:100%;height:100%;border:none;overflow:hidden;padding:0;margin:0;border-collapse:collapse;border-spacing:0;display:table;table-layout:fixed}table[vat=vod-layout]>tr{border:none}table[vat=vod-layout]>tr>td{border:none;overflow:hidden;position:relative}table[vat=vod-layout]>tr>td #vod-tool{width:100%;height:50px;background-color:#1c4480;display:block}div[vat=timeline]{height:50px;background-color:#0f1322}div[vat=vod-player]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-ms-flex-line-pack:stretch;align-content:stretch;background-color:#000;position:relative;outline:none}div[vat=vod-player] label{color:#b0d0d0;border-left:#d0d0d0;white-space:nowrap;display:inline-block;font:14px Arial;max-width:35px}div[vat=vod-player] .vod-wins{-ms-flex-item-align:initial;align-self:auto}.vatrender{position:absolute;border:none;z-index:49;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.vatwin{width:100%;height:100%;border:none;position:relative;vertical-align:middle;text-align:center;padding:0;background-color:#000}.vatwin .vatwin-extrender-canvas{position:absolute;left:0;top:0;z-index:1000}",""])},"9bfc":function(t,e,n){var i=n("215a");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("a79280b6",i,!0,{sourceMap:!1,shadowMode:!1})},"9c29":function(t,e,n){n("ec30")("Uint32",4,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},"9c6c":function(t,e,n){var i=n("2b4c")("unscopables"),r=Array.prototype;null==r[i]&&n("32e9")(r,i,{}),t.exports=function(t){r[i][t]=!0}},"9c80":function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},"9def":function(t,e,n){var i=n("4588"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a107:function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,"@-webkit-keyframes vatblink-data-v-85562768{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes vatblink-data-v-85562768{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.timeline[data-v-85562768]{display:-webkit-box;display:-ms-flexbox;display:flex;height:60px;background-color:#121212;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-ms-flex-line-pack:stretch;align-content:stretch;position:relative;overflow:hidden;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:100;-ms-flex-positive:100;flex-grow:100;border:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ruler[data-v-85562768]{z-index:10}.records[data-v-85562768],.ruler[data-v-85562768]{-webkit-box-flex:100;-ms-flex-positive:100;flex-grow:100;position:absolute}.records[data-v-85562768]{z-index:11;pointer-events:none}.time[data-v-85562768]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;font:12px Arial;color:#fefefe;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.time[data-v-85562768],.time-p[data-v-85562768]{position:relative;z-index:12;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;pointer-events:none}.time-p[data-v-85562768]{width:1px;height:45px;background-color:#e00}.scale[data-v-85562768]{position:absolute;left:10px;top:0;font:12px Arial;z-index:12;line-height:15px;color:#d0d0d0;pointer-events:none}",""])},a25f:function(t,e,n){var i=n("7726").navigator;t.exports=i&&i.userAgent||""},a481:function(t,e,n){"use strict";var i=n("cb7c"),r=n("4bf8"),a=n("9def"),s=n("4588"),o=n("0390"),l=n("5f1b"),u=Math.max,c=Math.min,h=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,m=function(t){return void 0===t?t:String(t)};n("214f")("replace",2,(function(t,e,n,p){return[function(i,r){var a=t(this),s=null==i?void 0:i[e];return void 0!==s?s.call(i,a,r):n.call(String(a),i,r)},function(t,e){var r=p(n,t,this,e);if(r.done)return r.value;var h=i(t),d=String(this),f="function"==typeof e;f||(e=String(e));var g=h.global;if(g){var v=h.unicode;h.lastIndex=0}for(var y=[];;){var b=l(h,d);if(null===b)break;if(y.push(b),!g)break;""===String(b[0])&&(h.lastIndex=o(d,a(h.lastIndex),v))}for(var w="",x=0,M=0;M<y.length;M++){b=y[M];for(var S=String(b[0]),L=u(c(s(b.index),d.length),0),k=[],T=1;T<b.length;T++)k.push(m(b[T]));var D=b.groups;if(f){var C=[S].concat(k,L,d);void 0!==D&&C.push(D);var E=String(e.apply(void 0,C))}else E=_(S,d,L,k,D,e);L>=x&&(w+=d.slice(x,L)+E,x=L+S.length)}return w+d.slice(x)}];function _(t,e,i,a,s,o){var l=i+t.length,u=a.length,c=f;return void 0!==s&&(s=r(s),c=d),n.call(o,c,(function(n,r){var o;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(l);case"<":o=s[r.slice(1,-1)];break;default:var c=+r;if(0===c)return n;if(c>u){var d=h(c/10);return 0===d?n:d<=u?void 0===a[d-1]?r.charAt(1):a[d-1]+r.charAt(1):n}o=a[c-1]}return void 0===o?"":o}))}}))},a5b8:function(t,e,n){"use strict";var i=n("d8e8");function r(t){var e,n;this.promise=new t((function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i})),this.resolve=i(e),this.reject=i(n)}t.exports.f=function(t){return new r(t)}},aa8a:function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,".vod-wins[data-v-9bb76214]{-webkit-box-flex:100;-ms-flex-positive:100;flex-grow:100;display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden}.err-msg[data-v-9bb76214]{color:red;font:18px Arial;font-weight:bolder}",""])},aae3:function(t,e,n){var i=n("d3f4"),r=n("2d95"),a=n("2b4c")("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==r(t))}},abb4:function(t,e,n){"use strict";t.exports=function(t){function e(){}var n={log:e,warn:e,error:e};if(!t&&window.console){var i=function(t,e){t[e]=function(){var t=console[e];if(t.apply)t.apply(console,arguments);else for(var n=0;n<arguments.length;n++)t(arguments[n])}};i(n,"log"),i(n,"warn"),i(n,"error")}return n}},ac4d:function(t,e,n){n("3a72")("asyncIterator")},ac6a:function(t,e,n){for(var i=n("cadf"),r=n("0d58"),a=n("2aba"),s=n("7726"),o=n("32e9"),l=n("84f2"),u=n("2b4c"),c=u("iterator"),h=u("toStringTag"),d=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},m=r(f),p=0;p<m.length;p++){var _,g=m[p],v=f[g],y=s[g],b=y&&y.prototype;if(b&&(b[c]||o(b,c,d),b[h]||o(b,h,g),l[g]=d,v))for(_ in i)b[_]||a(b,_,i[_],!0)}},af56:function(t,e,n){n("ec30")("Uint16",2,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},b0c5:function(t,e,n){"use strict";var i=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},b188:function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,"#vat-tool[data-v-4bb55d15]{padding:0;width:100%;height:32px;background-color:#111;display:-webkit-box;display:-ms-flexbox;display:flex}svg[data-v-4bb55d15]:hover{cursor:pointer}svg>path[data-v-4bb55d15]:hover{fill:#bbb}svg.icon[data-v-4bb55d15]{margin-left:8px;margin-right:8px}svg.disabled[data-v-4bb55d15]{cursor:default;pointer-events:none}svg.disabled>path[data-v-4bb55d15]{fill:#666}svg.hide[data-v-4bb55d15]{display:none}table[data-v-4bb55d15]{width:100%;height:100%;border-spacing:0}.speed[data-v-4bb55d15]{color:#f0f0f0;line-height:32px;font:700 14px Microsoft YaHei;margin-left:10px;margin-right:30px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:40px}.btns[data-v-4bb55d15],.speed[data-v-4bb55d15]{display:-webkit-box;display:-ms-flexbox;display:flex}.btns[data-v-4bb55d15]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:0 auto;width:368px}.btn-menu[data-v-4bb55d15]{position:absolute;left:0;top:-100px;z-index:1001;opacity:0;-webkit-transition:visibility 0s linear .33s,opacity .33s linear;transition:visibility 0s linear .33s,opacity .33s linear}.btn-menu-icon:hover~.btn-menu[data-v-4bb55d15],.btn-menu[data-v-4bb55d15]:hover{visibility:visible;opacity:.9;-webkit-transition-delay:0s;transition-delay:0s}.scale-btns[data-v-4bb55d15]{width:78px}.scale-btns[data-v-4bb55d15],.speed-menu[data-v-4bb55d15]{display:-webkit-box;display:-ms-flexbox;display:flex}.speed-menu[data-v-4bb55d15]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;background:rgba(29,29,29,.67)}.speed-menu span[data-v-4bb55d15]{list-style:none;height:20px;width:60px;color:#f0f0f0;margin:0;padding:1px;font:14px Microsoft YaHei;cursor:pointer;border:1px solid #2a2a2a}.speed-menu span.active[data-v-4bb55d15]{color:#0f1322;background-color:#f0f0f0}.speed-menu span[data-v-4bb55d15]:hover{background-color:#00adee}",""])},b5f0:function(t,e,n){"use strict";var i=n("5661");n.n(i).a},b697:function(t,e,n){var i,r,a;r=[],i=function(){var t=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function e(t){var e=t.replace(/^v/,"").replace(/\+.*$/,""),n=function(t,e){return-1===t.indexOf(e)?t.length:t.indexOf(e)}(e,"-"),i=e.substring(0,n).split(".");return i.push(e.substring(n+1)),i}function n(t){return isNaN(Number(t))?t:Number(t)}function i(e){if("string"!=typeof e)throw new TypeError("Invalid argument expected string");if(!t.test(e))throw new Error("Invalid argument not valid semver ('"+e+"' received)")}function r(t,r){[t,r].forEach(i);for(var a=e(t),s=e(r),o=0;o<Math.max(a.length-1,s.length-1);o++){var l=parseInt(a[o]||0,10),u=parseInt(s[o]||0,10);if(l>u)return 1;if(u>l)return-1}var c=a[a.length-1],h=s[s.length-1];if(c&&h){var d=c.split(".").map(n),f=h.split(".").map(n);for(o=0;o<Math.max(d.length,f.length);o++){if(void 0===d[o]||"string"==typeof f[o]&&"number"==typeof d[o])return-1;if(void 0===f[o]||"string"==typeof d[o]&&"number"==typeof f[o])return 1;if(d[o]>f[o])return 1;if(f[o]>d[o])return-1}}else if(c||h)return c?-1:1;return 0}var a=[">",">=","=","<","<="],s={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};return r.validate=function(e){return"string"==typeof e&&t.test(e)},r.compare=function(t,e,n){!function(t){if("string"!=typeof t)throw new TypeError("Invalid operator type, expected string but got "+o(t));if(-1===a.indexOf(t))throw new TypeError("Invalid operator, expected one of "+a.join("|"))}(n);var i=r(t,e);return s[n].indexOf(i)>-1},r},void 0===(a="function"==typeof i?i.apply(e,r):i)||(t.exports=a)},b770:function(t,e,n){"use strict";(t.exports={}).forEach=function(t,e){for(var n=0;n<t.length;n++){var i=e(t[n]);if(i)return i}}},ba92:function(t,e,n){"use strict";var i=n("4bf8"),r=n("77f1"),a=n("9def");t.exports=[].copyWithin||function(t,e){var n=i(this),s=a(n.length),o=r(t,s),l=r(e,s),u=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===u?s:r(u,s))-l,s-o),h=1;for(l<o&&o<l+c&&(h=-1,l+=c-1,o+=c-1);c-- >0;)l in n?n[o]=n[l]:delete n[o],o+=h,l+=h;return n}},bcaa:function(t,e,n){var i=n("cb7c"),r=n("d3f4"),a=n("a5b8");t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=a.f(t);return(0,n.resolve)(e),n.promise}},be13:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},c0e8:function(t,e){},c274:function(t,e,n){"use strict";var i=n("50bf");function r(){var t={},e=0,n=0,i=0;return{add:function(r,a){a||(a=r,r=0),r>n?n=r:r<i&&(i=r),t[r]||(t[r]=[]),t[r].push(a),e++},process:function(){for(var e=i;e<=n;e++)for(var r=t[e],a=0;a<r.length;a++)(0,r[a])()},size:function(){return e}}}t.exports=function(t){var e=(t=t||{}).reporter,n=i.getOption(t,"async",!0),a=i.getOption(t,"auto",!0);a&&!n&&(e&&e.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var s,o=r(),l=!1;function u(){for(l=!0;o.size();){var t=o;o=r(),t.process()}l=!1}function c(){s=function(t){return function(t){return setTimeout(t,0)}(t)}(u)}return{add:function(t,e){!l&&a&&n&&0===o.size()&&c(),o.add(t,e)},force:function(t){l||(void 0===t&&(t=n),s&&(function(t){clearTimeout(t)}(s),s=null),t?c():u())}}}},c366:function(t,e,n){var i=n("6821"),r=n("9def"),a=n("77f1");t.exports=function(t){return function(e,n,s){var o,l=i(e),u=r(l.length),c=a(s,u);if(t&&n!=n){for(;u>c;)if((o=l[c++])!=o)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c946:function(t,e,n){"use strict";var i=n("b770").forEach;t.exports=function(t){var e=(t=t||{}).reporter,n=t.batchProcessor,r=t.stateHandler.getState,a=(t.stateHandler.hasState,t.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!e)throw new Error("Missing required dependency: reporter.");var s=function(){var t=500,e=500,n=document.createElement("div");n.style.cssText=u(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var i=document.createElement("div");i.style.cssText=u(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),i.appendChild(n),document.body.insertBefore(i,document.body.firstChild);var r=t-i.clientWidth,a=e-i.clientHeight;return document.body.removeChild(i),{width:r,height:a}}(),o="erd_scroll_detection_container";function l(t){!function(t,e,n){if(!t.getElementById(e)){var i=n+"_animation",r=n+"_animation_active",a="/* Created by the element-resize-detector library. */\n";a+="."+n+" > div::-webkit-scrollbar { "+u(["display: none"])+" }\n\n",a+="."+r+" { "+u(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+i,"animation-name: "+i])+" }\n",a+="@-webkit-keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(n,i){i=i||function(e){t.head.appendChild(e)};var r=t.createElement("style");r.innerHTML=n,r.id=e,i(r)}(a+="@keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(t,"erd_scroll_detection_scrollbar_style",o)}function u(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function c(t,n,i){if(t.addEventListener)t.addEventListener(n,i);else{if(!t.attachEvent)return e.error("[scroll] Don't know how to add event listeners.");t.attachEvent("on"+n,i)}}function h(t,n,i){if(t.removeEventListener)t.removeEventListener(n,i);else{if(!t.detachEvent)return e.error("[scroll] Don't know how to remove event listeners.");t.detachEvent("on"+n,i)}}function d(t){return r(t).container.childNodes[0].childNodes[0].childNodes[0]}function f(t){return r(t).container.childNodes[0].childNodes[0].childNodes[1]}return l(window.document),{makeDetectable:function(t,l,h){function m(){if(t.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(a.get(l),"Scroll: "),e.log.apply)e.log.apply(null,n);else for(var i=0;i<n.length;i++)e.log(n[i])}}function p(t){var e=r(t).container.childNodes[0],n=window.getComputedStyle(e);return!n.width||-1===n.width.indexOf("px")}function _(){var t=window.getComputedStyle(l),e={};return e.position=t.position,e.width=l.offsetWidth,e.height=l.offsetHeight,e.top=t.top,e.right=t.right,e.bottom=t.bottom,e.left=t.left,e.widthCSS=t.width,e.heightCSS=t.height,e}function g(){if(m("storeStyle invoked."),r(l)){var t=_();r(l).style=t}else m("Aborting because element has been uninstalled")}function v(t,e,n){r(t).lastWidth=e,r(t).lastHeight=n}function y(){return 2*s.width+1}function b(){return 2*s.height+1}function w(t){return t+10+y()}function x(t){return t+10+b()}function M(t,e,n){var i=d(t),r=f(t),a=w(e),s=x(n),o=function(t){return 2*t+y()}(e),l=function(t){return 2*t+b()}(n);i.scrollLeft=a,i.scrollTop=s,r.scrollLeft=o,r.scrollTop=l}function S(){var t=r(l).container;if(!t){(t=document.createElement("div")).className=o,t.style.cssText=u(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),r(l).container=t,function(t){t.className+=" "+o+"_animation_active"}(t),l.appendChild(t);var e=function(){r(l).onRendered&&r(l).onRendered()};c(t,"animationstart",e),r(l).onAnimationStart=e}return t}function L(){if(m("Injecting elements"),r(l)){!function(){var n=r(l).style;if("static"===n.position){l.style.setProperty("position","relative",t.important?"important":"");var i=function(t,e,n,i){var r=n[i];"auto"!==r&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(r)&&(t.warn("An element that is positioned static has style."+i+"="+r+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",e),e.style[i]=0)};i(e,l,n,"top"),i(e,l,n,"right"),i(e,l,n,"bottom"),i(e,l,n,"left")}}();var n=r(l).container;n||(n=S());var i=s.width,a=s.height,h=u(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),d=u(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(function(t,e,n,i){return["left: "+(t=t?t+"px":"0"),"top: "+(e=e?e+"px":"0"),"right: "+(i=i?i+"px":"0"),"bottom: "+(n=n?n+"px":"0")]}(-(1+i),-(1+a),-a,-i))),f=u(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),p=u(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),_=u(["position: absolute","left: 0","top: 0"]),g=u(["position: absolute","width: 200%","height: 200%"]),v=document.createElement("div"),y=document.createElement("div"),b=document.createElement("div"),w=document.createElement("div"),x=document.createElement("div"),M=document.createElement("div");v.dir="ltr",v.style.cssText=h,v.className=o,y.className=o,y.style.cssText=d,b.style.cssText=f,w.style.cssText=_,x.style.cssText=p,M.style.cssText=g,b.appendChild(w),x.appendChild(M),y.appendChild(b),y.appendChild(x),v.appendChild(y),n.appendChild(v),c(b,"scroll",L),c(x,"scroll",k),r(l).onExpandScroll=L,r(l).onShrinkScroll=k}else m("Aborting because element has been uninstalled");function L(){r(l).onExpand&&r(l).onExpand()}function k(){r(l).onShrink&&r(l).onShrink()}}function k(){function s(e,n,i){var r=function(t){return d(t).childNodes[0]}(e),a=w(n),s=x(i);r.style.setProperty("width",a+"px",t.important?"important":""),r.style.setProperty("height",s+"px",t.important?"important":"")}function o(i){var o=l.offsetWidth,c=l.offsetHeight,h=o!==r(l).lastWidth||c!==r(l).lastHeight;m("Storing current size",o,c),v(l,o,c),n.add(0,(function(){if(h)if(r(l))if(u()){if(t.debug){var n=l.offsetWidth,i=l.offsetHeight;n===o&&i===c||e.warn(a.get(l),"Scroll: Size changed before updating detector elements.")}s(l,o,c)}else m("Aborting because element container has not been initialized");else m("Aborting because element has been uninstalled")})),n.add(1,(function(){r(l)?u()?M(l,o,c):m("Aborting because element container has not been initialized"):m("Aborting because element has been uninstalled")})),h&&i&&n.add(2,(function(){r(l)?u()?i():m("Aborting because element container has not been initialized"):m("Aborting because element has been uninstalled")}))}function u(){return!!r(l).container}function c(){m("notifyListenersIfNeeded invoked");var t=r(l);return void 0===r(l).lastNotifiedWidth&&t.lastWidth===t.startSize.width&&t.lastHeight===t.startSize.height?m("Not notifying: Size is the same as the start size, and there has been no notification yet."):t.lastWidth===t.lastNotifiedWidth&&t.lastHeight===t.lastNotifiedHeight?m("Not notifying: Size already notified"):(m("Current size not notified, notifying..."),t.lastNotifiedWidth=t.lastWidth,t.lastNotifiedHeight=t.lastHeight,void i(r(l).listeners,(function(t){t(l)})))}function h(){m("Scroll detected."),p(l)?m("Scroll event fired while unrendered. Ignoring..."):o(c)}if(m("registerListenersAndPositionElements invoked."),r(l)){r(l).onRendered=function(){if(m("startanimation triggered."),p(l))m("Ignoring since element is still unrendered...");else{m("Element rendered.");var t=d(l),e=f(l);0!==t.scrollLeft&&0!==t.scrollTop&&0!==e.scrollLeft&&0!==e.scrollTop||(m("Scrollbars out of sync. Updating detector elements..."),o(c))}},r(l).onExpand=h,r(l).onShrink=h;var _=r(l).style;s(l,_.width,_.height)}else m("Aborting because element has been uninstalled")}function T(){if(m("finalizeDomMutation invoked."),r(l)){var t=r(l).style;v(l,t.width,t.height),M(l,t.width,t.height)}else m("Aborting because element has been uninstalled")}function D(){h(l)}function C(){m("Installing..."),r(l).listeners=[],function(){var t=_();r(l).startSize={width:t.width,height:t.height},m("Element start size",r(l).startSize)}(),n.add(0,g),n.add(1,L),n.add(2,k),n.add(3,T),n.add(4,D)}h||(h=l,l=t,t=null),t=t||{},m("Making detectable..."),function(t){return!function(t){return t===t.ownerDocument.body||t.ownerDocument.body.contains(t)}(t)||null===window.getComputedStyle(t)}(l)?(m("Element is detached"),S(),m("Waiting until element is attached..."),r(l).onRendered=function(){m("Element is now attached"),C()}):C()},addListener:function(t,e){if(!r(t).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");r(t).listeners.push(e)},uninstall:function(t){var e=r(t);e&&(e.onExpandScroll&&h(d(t),"scroll",e.onExpandScroll),e.onShrinkScroll&&h(f(t),"scroll",e.onShrinkScroll),e.onAnimationStart&&h(e.container,"animationstart",e.onAnimationStart),e.container&&t.removeChild(e.container))},initDocument:l}}},ca5a:function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},cadf:function(t,e,n){"use strict";var i=n("9c6c"),r=n("d53b"),a=n("84f2"),s=n("6821");t.exports=n("01f9")(Array,"Array",(function(t,e){this._t=s(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},cb7c:function(t,e,n){var i=n("d3f4");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},cd1c:function(t,e,n){var i=n("e853");t.exports=function(t,e){return new(i(t))(e)}},ce10:function(t,e,n){var i=n("69a8"),r=n("6821"),a=n("c366")(!1),s=n("613b")("IE_PROTO");t.exports=function(t,e){var n,o=r(t),l=0,u=[];for(n in o)n!=s&&i(o,n)&&u.push(n);for(;e.length>l;)i(o,n=e[l++])&&(~a(u,n)||u.push(n));return u}},d3b2:function(t,e,n){"use strict";var i=n("5577");n.n(i).a},d3f4:function(t,e){t.exports=function(t){return"object"===o(t)?null!==t:"function"==typeof t}},d4c0:function(t,e,n){var i=n("0d58"),r=n("2621"),a=n("52a7");t.exports=function(t){var e=i(t),n=r.f;if(n)for(var s,o=n(t),l=a.f,u=0;o.length>u;)l.call(t,s=o[u++])&&e.push(s);return e}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d6eb:function(t,e,n){"use strict";var i="_erd";function r(t){return t[i]}t.exports={initState:function(t){return t[i]={},r(t)},getState:r,cleanState:function(t){delete t[i]}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},dcbc:function(t,e,n){var i=n("2aba");t.exports=function(t,e,n){for(var r in e)i(t,r,e[r],n);return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e6a8:function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,'ul[data-v-48879689]{padding:0;margin:0;padding-inline:0}.calendarPanel[data-v-48879689]{width:300px;height:240px;border:3px solid #1f2332;-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column}.calendarPanel[data-v-48879689],.calendarPanel .calendar-header[data-v-48879689]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-direction:normal}.calendarPanel .calendar-header[data-v-48879689]{line-height:30px;color:#d3dfe9;background-color:#1e1b1a;-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.calendarPanel .calendar-header .currentDate[data-v-48879689]{margin:0 10px;font-size:16px;font-family:PingFangSC-Medium,serif}.calendarPanel .calendar-header .icon[data-v-48879689]{width:12px;height:12px;margin:0 5px;cursor:pointer;font-weight:lighter;color:#b0b0b0}.calendarPanel .calendar-header .icon[data-v-48879689]:hover{color:#dedede}.calendarPanel .calendar-main[data-v-48879689]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;background-color:#161311;color:#d0dbd2}.calendarPanel .calendar-main .main-header[data-v-48879689]{display:-webkit-box;display:-ms-flexbox;display:flex;line-height:30px;color:#9ba2af}.calendarPanel .calendar-main .main-header li[data-v-48879689]{-webkit-box-flex:1;-ms-flex:1;flex:1;list-style:none}.calendarPanel .calendar-main ul.main[data-v-48879689]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-bottom:5px;font-size:14px}.calendarPanel .calendar-main ul.main li[data-v-48879689]{position:relative;width:42px;line-height:25px;cursor:pointer;list-style:none}.calendarPanel .calendar-main ul.main .disabled[data-v-48879689]{color:#7b827f;cursor:default}.calendarPanel .calendar-main ul.main .currentDay[data-v-48879689]:before{content:"";position:absolute;display:inline-block;left:8px;width:24px;height:24px;border-radius:50%;border:1px solid #ffe100}',""])},e853:function(t,e,n){var i=n("d3f4"),r=n("1169"),a=n("2b4c")("species");t.exports=function(t){var e;return r(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!r(e.prototype)||(e=void 0),i(e)&&null===(e=e[a])&&(e=void 0)),void 0===e?Array:e}},ebd6:function(t,e,n){var i=n("cb7c"),r=n("d8e8"),a=n("2b4c")("species");t.exports=function(t,e){var n,s=i(t).constructor;return void 0===s||null==(n=i(s)[a])?e:r(n)}},ec30:function(t,e,n){"use strict";if(n("9e1e")){var i=n("2d00"),r=n("7726"),a=n("79e5"),s=n("5ca1"),l=n("0f88"),u=n("ed0b"),c=n("9b43"),h=n("f605"),d=n("4630"),f=n("32e9"),m=n("dcbc"),p=n("4588"),_=n("9def"),g=n("09fa"),v=n("77f1"),y=n("6a99"),b=n("69a8"),w=n("23c6"),x=n("d3f4"),M=n("4bf8"),S=n("33a4"),L=n("2aeb"),k=n("38fd"),T=n("9093").f,D=n("27ee"),C=n("ca5a"),E=n("2b4c"),O=n("0a49"),Y=n("c366"),A=n("ebd6"),P=n("cadf"),R=n("84f2"),I=n("5cc5"),j=n("7a56"),F=n("36bd"),H=n("ba92"),N=n("86cc"),W=n("11e9"),U=N.f,B=W.f,z=r.RangeError,V=r.TypeError,G=r.Uint8Array,X="ArrayBuffer",K="Shared"+X,q="BYTES_PER_ELEMENT",J="prototype",$=Array[J],Z=u.ArrayBuffer,Q=u.DataView,tt=O(0),et=O(2),nt=O(3),it=O(4),rt=O(5),at=O(6),st=Y(!0),ot=Y(!1),lt=P.values,ut=P.keys,ct=P.entries,ht=$.lastIndexOf,dt=$.reduce,ft=$.reduceRight,mt=$.join,pt=$.sort,_t=$.slice,gt=$.toString,vt=$.toLocaleString,yt=E("iterator"),bt=E("toStringTag"),wt=C("typed_constructor"),xt=C("def_constructor"),Mt=l.CONSTR,St=l.TYPED,Lt=l.VIEW,kt="Wrong length!",Tt=O(1,(function(t,e){return Yt(A(t,t[xt]),e)})),Dt=a((function(){return 1===new G(new Uint16Array([1]).buffer)[0]})),Ct=!!G&&!!G[J].set&&a((function(){new G(1).set({})})),Et=function(t,e){var n=p(t);if(n<0||n%e)throw z("Wrong offset!");return n},Ot=function(t){if(x(t)&&St in t)return t;throw V(t+" is not a typed array!")},Yt=function(t,e){if(!x(t)||!(wt in t))throw V("It is not a typed array constructor!");return new t(e)},At=function(t,e){return Pt(A(t,t[xt]),e)},Pt=function(t,e){for(var n=0,i=e.length,r=Yt(t,i);i>n;)r[n]=e[n++];return r},Rt=function(t,e,n){U(t,e,{get:function(){return this._d[n]}})},It=function(t){var e,n,i,r,a,s,o=M(t),l=arguments.length,u=l>1?arguments[1]:void 0,h=void 0!==u,d=D(o);if(null!=d&&!S(d)){for(s=d.call(o),i=[],e=0;!(a=s.next()).done;e++)i.push(a.value);o=i}for(h&&l>2&&(u=c(u,arguments[2],2)),e=0,n=_(o.length),r=Yt(this,n);n>e;e++)r[e]=h?u(o[e],e):o[e];return r},jt=function(){for(var t=0,e=arguments.length,n=Yt(this,e);e>t;)n[t]=arguments[t++];return n},Ft=!!G&&a((function(){vt.call(new G(1))})),Ht=function(){return vt.apply(Ft?_t.call(Ot(this)):Ot(this),arguments)},Nt={copyWithin:function(t,e){return H.call(Ot(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return it(Ot(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return F.apply(Ot(this),arguments)},filter:function(t){return At(this,et(Ot(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return rt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return at(Ot(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){tt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return ot(Ot(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return st(Ot(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return mt.apply(Ot(this),arguments)},lastIndexOf:function(t){return ht.apply(Ot(this),arguments)},map:function(t){return Tt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return dt.apply(Ot(this),arguments)},reduceRight:function(t){return ft.apply(Ot(this),arguments)},reverse:function(){for(var t,e=this,n=Ot(e).length,i=Math.floor(n/2),r=0;r<i;)t=e[r],e[r++]=e[--n],e[n]=t;return e},some:function(t){return nt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return pt.call(Ot(this),t)},subarray:function(t,e){var n=Ot(this),i=n.length,r=v(t,i);return new(A(n,n[xt]))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,_((void 0===e?i:v(e,i))-r))}},Wt=function(t,e){return At(this,_t.call(Ot(this),t,e))},Ut=function(t){Ot(this);var e=Et(arguments[1],1),n=this.length,i=M(t),r=_(i.length),a=0;if(r+e>n)throw z(kt);for(;a<r;)this[e+a]=i[a++]},Bt={entries:function(){return ct.call(Ot(this))},keys:function(){return ut.call(Ot(this))},values:function(){return lt.call(Ot(this))}},zt=function(t,e){return x(t)&&t[St]&&"symbol"!=o(e)&&e in t&&String(+e)==String(e)},Vt=function(t,e){return zt(t,e=y(e,!0))?d(2,t[e]):B(t,e)},Gt=function(t,e,n){return!(zt(t,e=y(e,!0))&&x(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?U(t,e,n):(t[e]=n.value,t)};Mt||(W.f=Vt,N.f=Gt),s(s.S+s.F*!Mt,"Object",{getOwnPropertyDescriptor:Vt,defineProperty:Gt}),a((function(){gt.call({})}))&&(gt=vt=function(){return mt.call(this)});var Xt=m({},Nt);m(Xt,Bt),f(Xt,yt,Bt.values),m(Xt,{slice:Wt,set:Ut,constructor:function(){},toString:gt,toLocaleString:Ht}),Rt(Xt,"buffer","b"),Rt(Xt,"byteOffset","o"),Rt(Xt,"byteLength","l"),Rt(Xt,"length","e"),U(Xt,bt,{get:function(){return this[St]}}),t.exports=function(t,e,n,o){var u=t+((o=!!o)?"Clamped":"")+"Array",c="get"+t,d="set"+t,m=r[u],p=m||{},v=m&&k(m),y=!m||!l.ABV,b={},M=m&&m[J],S=function(t,n){var i=t._d;return i.v[c](n*e+i.o,Dt)},D=function(t,n,i){var r=t._d;o&&(i=(i=Math.round(i))<0?0:i>255?255:255&i),r.v[d](n*e+r.o,i,Dt)},C=function(t,e){U(t,e,{get:function(){return S(this,e)},set:function(t){return D(this,e,t)},enumerable:!0})};y?(m=n((function(t,n,i,r){h(t,m,u,"_d");var a,s,o,l,c=0,d=0;if(x(n)){if(!(n instanceof Z||(l=w(n))==X||l==K))return St in n?Pt(m,n):It.call(m,n);a=n,d=Et(i,e);var p=n.byteLength;if(void 0===r){if(p%e)throw z(kt);if((s=p-d)<0)throw z(kt)}else if((s=_(r)*e)+d>p)throw z(kt);o=s/e}else o=g(n),a=new Z(s=o*e);for(f(t,"_d",{b:a,o:d,l:s,e:o,v:new Q(a)});c<o;)C(t,c++)})),M=m[J]=L(Xt),f(M,"constructor",m)):a((function(){m(1)}))&&a((function(){new m(-1)}))&&I((function(t){new m,new m(null),new m(1.5),new m(t)}),!0)||(m=n((function(t,n,i,r){var a;return h(t,m,u),x(n)?n instanceof Z||(a=w(n))==X||a==K?void 0!==r?new p(n,Et(i,e),r):void 0!==i?new p(n,Et(i,e)):new p(n):St in n?Pt(m,n):It.call(m,n):new p(g(n))})),tt(v!==Function.prototype?T(p).concat(T(v)):T(p),(function(t){t in m||f(m,t,p[t])})),m[J]=M,i||(M.constructor=m));var E=M[yt],O=!!E&&("values"==E.name||null==E.name),Y=Bt.values;f(m,wt,!0),f(M,St,u),f(M,Lt,!0),f(M,xt,m),(o?new m(1)[bt]==u:bt in M)||U(M,bt,{get:function(){return u}}),b[u]=m,s(s.G+s.W+s.F*(m!=p),b),s(s.S,u,{BYTES_PER_ELEMENT:e}),s(s.S+s.F*a((function(){p.of.call(m,1)})),u,{from:It,of:jt}),q in M||f(M,q,e),s(s.P,u,Nt),j(u),s(s.P+s.F*Ct,u,{set:Ut}),s(s.P+s.F*!O,u,Bt),i||M.toString==gt||(M.toString=gt),s(s.P+s.F*a((function(){new m(1).slice()})),u,{slice:Wt}),s(s.P+s.F*(a((function(){return[1,2].toLocaleString()!=new m([1,2]).toLocaleString()}))||!a((function(){M.toLocaleString.call([1,2])}))),u,{toLocaleString:Ht}),R[u]=O?E:Y,i||O||f(M,yt,Y)}}else t.exports=function(){}},ed0b:function(t,e,n){"use strict";var i=n("7726"),r=n("9e1e"),a=n("2d00"),s=n("0f88"),o=n("32e9"),l=n("dcbc"),u=n("79e5"),c=n("f605"),h=n("4588"),d=n("9def"),f=n("09fa"),m=n("9093").f,p=n("86cc").f,_=n("36bd"),g=n("7f20"),v="ArrayBuffer",y="DataView",b="prototype",w="Wrong index!",x=i[v],M=i[y],S=i.Math,L=i.RangeError,k=i.Infinity,T=x,D=S.abs,C=S.pow,E=S.floor,O=S.log,Y=S.LN2,A="buffer",P="byteLength",R="byteOffset",I=r?"_b":A,j=r?"_l":P,F=r?"_o":R;function H(t,e,n){var i,r,a,s=new Array(n),o=8*n-e-1,l=(1<<o)-1,u=l>>1,c=23===e?C(2,-24)-C(2,-77):0,h=0,d=t<0||0===t&&1/t<0?1:0;for((t=D(t))!=t||t===k?(r=t!=t?1:0,i=l):(i=E(O(t)/Y),t*(a=C(2,-i))<1&&(i--,a*=2),(t+=i+u>=1?c/a:c*C(2,1-u))*a>=2&&(i++,a/=2),i+u>=l?(r=0,i=l):i+u>=1?(r=(t*a-1)*C(2,e),i+=u):(r=t*C(2,u-1)*C(2,e),i=0));e>=8;s[h++]=255&r,r/=256,e-=8);for(i=i<<e|r,o+=e;o>0;s[h++]=255&i,i/=256,o-=8);return s[--h]|=128*d,s}function N(t,e,n){var i,r=8*n-e-1,a=(1<<r)-1,s=a>>1,o=r-7,l=n-1,u=t[l--],c=127&u;for(u>>=7;o>0;c=256*c+t[l],l--,o-=8);for(i=c&(1<<-o)-1,c>>=-o,o+=e;o>0;i=256*i+t[l],l--,o-=8);if(0===c)c=1-s;else{if(c===a)return i?NaN:u?-k:k;i+=C(2,e),c-=s}return(u?-1:1)*i*C(2,c-e)}function W(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function U(t){return[255&t]}function B(t){return[255&t,t>>8&255]}function z(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function V(t){return H(t,52,8)}function G(t){return H(t,23,4)}function X(t,e,n){p(t[b],e,{get:function(){return this[n]}})}function K(t,e,n,i){var r=f(+n);if(r+e>t[j])throw L(w);var a=t[I]._b,s=r+t[F],o=a.slice(s,s+e);return i?o:o.reverse()}function q(t,e,n,i,r,a){var s=f(+n);if(s+e>t[j])throw L(w);for(var o=t[I]._b,l=s+t[F],u=i(+r),c=0;c<e;c++)o[l+c]=u[a?c:e-c-1]}if(s.ABV){if(!u((function(){x(1)}))||!u((function(){new x(-1)}))||u((function(){return new x,new x(1.5),new x(NaN),x.name!=v}))){for(var J,$=(x=function(t){return c(this,x),new T(f(t))})[b]=T[b],Z=m(T),Q=0;Z.length>Q;)(J=Z[Q++])in x||o(x,J,T[J]);a||($.constructor=x)}var tt=new M(new x(2)),et=M[b].setInt8;tt.setInt8(0,2147483648),tt.setInt8(1,2147483649),!tt.getInt8(0)&&tt.getInt8(1)||l(M[b],{setInt8:function(t,e){et.call(this,t,e<<24>>24)},setUint8:function(t,e){et.call(this,t,e<<24>>24)}},!0)}else x=function(t){c(this,x,v);var e=f(t);this._b=_.call(new Array(e),0),this[j]=e},M=function(t,e,n){c(this,M,y),c(t,x,y);var i=t[j],r=h(e);if(r<0||r>i)throw L("Wrong offset!");if(r+(n=void 0===n?i-r:d(n))>i)throw L("Wrong length!");this[I]=t,this[F]=r,this[j]=n},r&&(X(x,P,"_l"),X(M,A,"_b"),X(M,P,"_l"),X(M,R,"_o")),l(M[b],{getInt8:function(t){return K(this,1,t)[0]<<24>>24},getUint8:function(t){return K(this,1,t)[0]},getInt16:function(t){var e=K(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=K(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return W(K(this,4,t,arguments[1]))},getUint32:function(t){return W(K(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return N(K(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return N(K(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){q(this,1,t,U,e)},setUint8:function(t,e){q(this,1,t,U,e)},setInt16:function(t,e){q(this,2,t,B,e,arguments[2])},setUint16:function(t,e){q(this,2,t,B,e,arguments[2])},setInt32:function(t,e){q(this,4,t,z,e,arguments[2])},setUint32:function(t,e){q(this,4,t,z,e,arguments[2])},setFloat32:function(t,e){q(this,4,t,G,e,arguments[2])},setFloat64:function(t,e){q(this,8,t,V,e,arguments[2])}});g(x,v),g(M,y),o(M[b],s.VIEW,!0),e[v]=x,e[y]=M},eec4:function(t,e,n){"use strict";var i=n("b770").forEach,r=n("5be5"),a=n("49ad"),s=n("2cef"),o=n("5058"),l=n("abb4"),u=n("18e9"),c=n("c274"),h=n("d6eb"),d=n("18d2"),f=n("c946");function m(t){return Array.isArray(t)||void 0!==t.length}function p(t){if(Array.isArray(t))return t;var e=[];return i(t,(function(t){e.push(t)})),e}function _(t){return t&&1===t.nodeType}function g(t,e,n){var i=t[e];return null!=i||void 0===n?i:n}t.exports=function(t){var e;if((t=t||{}).idHandler)e={get:function(e){return t.idHandler.get(e,!0)},set:t.idHandler.set};else{var n=s(),v=o({idGenerator:n,stateHandler:h});e=v}var y=t.reporter;y||(y=l(!1===y));var b=g(t,"batchProcessor",c({reporter:y})),w={};w.callOnAdd=!!g(t,"callOnAdd",!0),w.debug=!!g(t,"debug",!1);var x,M=a(e),S=r({stateHandler:h}),L=g(t,"strategy","object"),k=g(t,"important",!1),T={reporter:y,batchProcessor:b,stateHandler:h,idHandler:e,important:k};if("scroll"===L&&(u.isLegacyOpera()?(y.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),L="object"):u.isIE(9)&&(y.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),L="object")),"scroll"===L)x=f(T);else{if("object"!==L)throw new Error("Invalid strategy name: "+L);x=d(T)}var D={};return{listenTo:function(t,n,r){function a(t){var e=M.get(t);i(e,(function(e){e(t)}))}function s(t,e,n){M.add(e,n),t&&n(e)}if(r||(r=n,n=t,t={}),!n)throw new Error("At least one element required.");if(!r)throw new Error("Listener required.");if(_(n))n=[n];else{if(!m(n))return y.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=p(n)}var o=0,l=g(t,"callOnAdd",w.callOnAdd),u=g(t,"onReady",(function(){})),c=g(t,"debug",w.debug);i(n,(function(t){h.getState(t)||(h.initState(t),e.set(t));var d=e.get(t);if(c&&y.log("Attaching listener to element",d,t),!S.isDetectable(t))return c&&y.log(d,"Not detectable."),S.isBusy(t)?(c&&y.log(d,"System busy making it detectable"),s(l,t,r),D[d]=D[d]||[],void D[d].push((function(){++o===n.length&&u()}))):(c&&y.log(d,"Making detectable..."),S.markBusy(t,!0),x.makeDetectable({debug:c,important:k},t,(function(t){if(c&&y.log(d,"onElementDetectable"),h.getState(t)){S.markAsDetectable(t),S.markBusy(t,!1),x.addListener(t,a),s(l,t,r);var e=h.getState(t);if(e&&e.startSize){var f=t.offsetWidth,m=t.offsetHeight;e.startSize.width===f&&e.startSize.height===m||a(t)}D[d]&&i(D[d],(function(t){t()}))}else c&&y.log(d,"Element uninstalled before being detectable.");delete D[d],++o===n.length&&u()})));c&&y.log(d,"Already detecable, adding listener."),s(l,t,r),o++})),o===n.length&&u()},removeListener:M.removeListener,removeAllListeners:M.removeAllListeners,uninstall:function(t){if(!t)return y.error("At least one element is required.");if(_(t))t=[t];else{if(!m(t))return y.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");t=p(t)}i(t,(function(t){M.removeAllListeners(t),x.uninstall(t),h.cleanState(t)}))},initDocument:function(t){x.initDocument&&x.initDocument(t)}}}},f0c1:function(t,e,n){"use strict";var i=n("d8e8"),r=n("d3f4"),a=n("31f4"),s=[].slice,o={},l=function(t,e,n){if(!(e in o)){for(var i=[],r=0;r<e;r++)i[r]="a["+r+"]";o[e]=Function("F,a","return new F("+i.join(",")+")")}return o[e](t,n)};t.exports=Function.bind||function(t){var e=i(this),n=s.call(arguments,1),o=function i(){var r=n.concat(s.call(arguments));return this instanceof i?l(e,r.length,r):a(e,r,t)};return r(e.prototype)&&(o.prototype=e.prototype),o}},f1ae:function(t,e,n){"use strict";var i=n("86cc"),r=n("4630");t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},f605:function(t,e){t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},f6fd:function(t,e){!function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(i){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(i.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})}(document)},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var i=n("7726").document;t.exports=i&&i.documentElement},fb15:function(t,e,n){"use strict";var i;function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}function h(t){return(h="function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?function(t){return o(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":o(t)})(t)}function d(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */function m(t,e,n,i){var r,a=arguments.length,s=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===("undefined"==typeof Reflect?"undefined":o(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(s=(a<3?r(s):a>3?r(e,n,s):r(e,n))||s);return a>3&&s&&Object.defineProperty(e,n,s),s}n.r(e),n.d(e,"LivePlayer",(function(){return le})),n.d(e,"RenderHandler",(function(){return fn.RenderHandler})),n.d(e,"VodPlayer",(function(){return sn})),n.d(e,"VodFilePlayer",(function(){return dn})),"undefined"!=typeof window&&(n("f6fd"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1])),n("ac4d"),n("8a81"),n("5df3"),n("1c4c"),n("7f7f"),n("8e6e"),n("ac6a"),n("cadf"),n("456d"),n("6b54"),n("2397");var p=n("8bbf"),_=n.n(p);
|
||
/**
|
||
* vue-class-component v7.2.5
|
||
* (c) 2015-present Evan You
|
||
* @license MIT
|
||
*/function g(t){return(g="function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?function(t){return o(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":o(t)})(t)}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function b(){return"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function w(t,e){x(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(n){x(t.prototype,e.prototype,n)})),Object.getOwnPropertyNames(e).forEach((function(n){x(t,e,n)}))}function x(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach((function(i){var r=n?Reflect.getOwnMetadata(i,e,n):Reflect.getOwnMetadata(i,e);n?Reflect.defineMetadata(i,r,t,n):Reflect.defineMetadata(i,r,t)}))}var M={__proto__:[]}instanceof Array;function S(t){return function(e,n,i){var r="function"==typeof e?e:e.constructor;r.__decorators__||(r.__decorators__=[]),"number"!=typeof i&&(i=void 0),r.__decorators__.push((function(e){return t(e,n,i)}))}}function L(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var i in t.$options.props)t.hasOwnProperty(i)||n.push(i);n.forEach((function(n){Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var i=new e;e.prototype._init=n;var r={};return Object.keys(i).forEach((function(t){void 0!==i[t]&&(r[t]=i[t])})),r}var k=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function T(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.name=e.name||t._componentTag||t.name;var n=t.prototype;Object.getOwnPropertyNames(n).forEach((function(t){if("constructor"!==t)if(k.indexOf(t)>-1)e[t]=n[t];else{var i=Object.getOwnPropertyDescriptor(n,t);void 0!==i.value?"function"==typeof i.value?(e.methods||(e.methods={}))[t]=i.value:(e.mixins||(e.mixins=[])).push({data:function(){return v({},t,i.value)}}):(i.get||i.set)&&((e.computed||(e.computed={}))[t]={get:i.get,set:i.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return L(this,t)}});var i=t.__decorators__;i&&(i.forEach((function(t){return t(e)})),delete t.__decorators__);var r=Object.getPrototypeOf(t.prototype),a=r instanceof _.a?r.constructor:_.a,s=a.extend(e);return C(s,t,a),b()&&w(s,t),s}var D={prototype:!0,arguments:!0,callee:!0,caller:!0};function C(t,e,n){Object.getOwnPropertyNames(e).forEach((function(i){if(!D[i]){var r=Object.getOwnPropertyDescriptor(t,i);if(!r||r.configurable){var a=Object.getOwnPropertyDescriptor(e,i);if(!M){if("cid"===i)return;var s=Object.getOwnPropertyDescriptor(n,i);if(!function(t){var e=g(t);return null==t||"object"!==e&&"function"!==e}(a.value)&&s&&s.value===a.value)return}Object.defineProperty(t,i,a)}}}))}function E(t){return"function"==typeof t?T(t):function(e){return T(e,t)}}E.registerHooks=function(t){k.push.apply(k,y(t))};var O=E,Y="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function A(t){return void 0===t&&(t={}),function(e,n){(function(t,e,n){if(Y&&!Array.isArray(t)&&"function"!=typeof t&&void 0===t.type){var i=Reflect.getMetadata("design:type",e,n);i!==Object&&(t.type=i)}})(t,e,n),S((function(e,n){(e.props||(e.props={}))[n]=t}))(e,n)}}function P(t,e){void 0===e&&(e={});var n=e.deep,i=void 0!==n&&n,r=e.immediate,a=void 0!==r&&r;return S((function(e,n){"object"!==o(e.watch)&&(e.watch=Object.create(null));var r=e.watch;"object"!==o(r[t])||Array.isArray(r[t])?void 0===r[t]&&(r[t]=[]):r[t]=[r[t]],r[t].push({handler:n,deep:i,immediate:a})}))}function R(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return I(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){o=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function I(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n("6c7b");var j=function(){function t(){a(this,t)}return l(t,null,[{key:"getSVG",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.DEFAULT_SIZE;if(!t.ALL_SVGS[e])return document.createElement("svg");var r=document.createElement("svg");r.innerHTML=t.ALL_SVGS[e],null!==n&&n.length>0&&t.setColor(r,n);var a=r.querySelector("svg");return null!==a&&(a.setAttribute("width","".concat(i)),a.setAttribute("height","".concat(i))),r}},{key:"setColor",value:function(t,e){if(e&&e.length>0){var n,i=R(t.getElementsByTagName("path"));try{for(i.s();!(n=i.n()).done;){var r=n.value,a=r.getAttribute("fill");null!==a&&a.length>0&&r.setAttribute("fill",e)}}catch(t){i.e(t)}finally{i.f()}}}}]),t}();j.SNAPSHOT='<svg t="1553688811386" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3995" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M901.12 227.328h-96.256c-12.288 0-23.552-7.168-28.672-19.456l-20.48-50.176c-11.264-27.648-36.864-45.056-66.56-45.056H333.824c-29.696 0-55.296 17.408-66.56 45.056l-20.48 50.176c-5.12 11.264-16.384 19.456-28.672 19.456H122.88c-39.936 0-71.68 31.744-71.68 71.68V839.68c0 39.936 31.744 71.68 71.68 71.68h778.24c39.936 0 71.68-31.744 71.68-71.68V299.008c0-38.912-31.744-71.68-71.68-71.68zM199.68 430.08C174.08 430.08 153.6 409.6 153.6 384s20.48-46.08 46.08-46.08 46.08 20.48 46.08 46.08-20.48 46.08-46.08 46.08zM512 788.48c-123.904 0-225.28-101.376-225.28-225.28s101.376-225.28 225.28-225.28 225.28 101.376 225.28 225.28-101.376 225.28-225.28 225.28z m184.32-225.28c0 101.376-82.944 184.32-184.32 184.32s-184.32-82.944-184.32-184.32 82.944-184.32 184.32-184.32 184.32 82.944 184.32 184.32z" p-id="3996" fill="#1296db"></path></svg>',j.MAXIMIZE='<svg t="1553741182915" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6244" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M874.24 604.49792c22.29248-2.14016 42.97728-11.73504 59.2384-27.56608l0 282.50112c0 48.85504-39.76192 88.59648-88.6272 88.59648l-634.9824 0c-48.87552 0-88.63744-39.74144-88.63744-88.59648L121.23136 225.1264c0-48.85504 39.76192-88.60672 88.63744-88.60672l283.26912 0c-15.24736 15.64672-25.38496 36.29056-27.60704 59.22816L209.85856 195.74784c-16.20992 0-29.39904 13.17888-29.39904 29.37856l0 634.29632c0 16.18944 13.18912 29.36832 29.39904 29.36832l634.9824 0c16.20992 0 29.39904-13.17888 29.39904-29.36832L874.24 604.49792zM890.15296 130.44736 589.2608 130.44736c-24.53504 0-44.42112 19.88608-44.42112 44.43136 0 24.53504 19.88608 44.42112 44.42112 44.42112l191.21152 0c-1.8432 1.34144-3.6864 2.70336-5.34528 4.37248L461.6704 537.10848l0-193.6384c0-24.53504-19.88608-44.42112-44.42112-44.42112-12.26752 0-23.37792 4.95616-31.41632 13.0048-8.0384 8.05888-13.01504 19.13856-13.01504 31.41632l0 300.9024c0 24.5248 19.88608 44.42112 44.42112 44.42112L718.1312 688.7936c24.53504 0 44.42112-19.89632 44.42112-44.4416 0-24.5248-19.88608-44.42112-44.42112-44.42112L526.94016 599.93088c1.8432-1.34144 3.67616-2.70336 5.33504-4.36224l313.43616-313.4464 0 193.64864c0 24.53504 19.88608 44.42112 44.42112 44.42112 12.26752 0 23.37792-4.95616 31.41632-13.0048 8.0384-8.05888 13.01504-19.1488 13.01504-31.41632L934.56384 174.86848C934.57408 150.34368 914.67776 130.44736 890.15296 130.44736z" p-id="6245" fill="#1296db"></path></svg>',j.ROI_RECT='<svg t="1553765768064" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="31493" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M768 910.222222c-17.066667 0-28.444444-11.377778-28.444444-28.444444s11.377778-28.444444 28.444444-28.444445H910.222222v-85.333333c0-17.066667 11.377778-28.444444 28.444445-28.444444s28.444444 11.377778 28.444444 28.444444v113.777778c0 17.066667-11.377778 28.444444-28.444444 28.444444h-170.666667zM910.222222 483.555556c0-17.066667 11.377778-28.444444 28.444445-28.444445s28.444444 11.377778 28.444444 28.444445v113.777777c0 17.066667-11.377778 28.444444-28.444444 28.444445s-28.444444-11.377778-28.444445-28.444445v-113.777777zM910.222222 227.555556h-142.222222c-17.066667 0-28.444444-11.377778-28.444444-28.444445s11.377778-28.444444 28.444444-28.444444h170.666667c17.066667 0 28.444444 11.377778 28.444444 28.444444v113.777778c0 17.066667-11.377778 28.444444-28.444444 28.444444s-28.444444-11.377778-28.444445-28.444444V227.555556zM398.222222 881.777778c0-17.066667 11.377778-28.444444 28.444445-28.444445h170.666666c17.066667 0 28.444444 11.377778 28.444445 28.444445s-11.377778 28.444444-28.444445 28.444444h-170.666666c-17.066667 0-28.444444-11.377778-28.444445-28.444444z m0-682.666667c0-17.066667 11.377778-28.444444 28.444445-28.444444h170.666666c17.066667 0 28.444444 11.377778 28.444445 28.444444s-11.377778 28.444444-28.444445 28.444445h-170.666666c-17.066667 0-28.444444-11.377778-28.444445-28.444445z m-341.333333 568.888889c0-17.066667 11.377778-28.444444 28.444444-28.444444s28.444444 11.377778 28.444445 28.444444V853.333333h142.222222c17.066667 0 28.444444 11.377778 28.444444 28.444445s-11.377778 28.444444-28.444444 28.444444h-170.666667c-17.066667 0-28.444444-11.377778-28.444444-28.444444v-113.777778z m56.888889-455.111111c0 17.066667-11.377778 28.444444-28.444445 28.444444S56.888889 329.955556 56.888889 312.888889v-113.777778c0-17.066667 11.377778-28.444444 28.444444-28.444444h170.666667c17.066667 0 28.444444 11.377778 28.444444 28.444444s-11.377778 28.444444-28.444444 28.444445H113.777778v85.333333z m0 284.444444c0 17.066667-11.377778 28.444444-28.444445 28.444445s-28.444444-11.377778-28.444444-28.444445v-113.777777c0-17.066667 11.377778-28.444444 28.444444-28.444445s28.444444 11.377778 28.444445 28.444445v113.777777z" p-id="31494" fill="#1296db"></path></svg>',j.ROI_POLYGON='<svg t="1553766890352" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="32066" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M85.333333 85.333333 85.333333 341.333333 182.613333 341.333333 237.653333 682.666667 170.666667 682.666667 170.666667 938.666667 426.666667 938.666667 426.666667 855.893333 640 855.466667 640 938.666667 896 938.666667 896 682.666667 817.92 682.666667 853.333333 384 938.666667 384 938.666667 128 682.666667 128 682.666667 278.613333 631.466667 341.333333 409.173333 341.333333 341.333333 248.32 341.333333 85.333333M170.666667 170.666667 256 170.666667 256 256 170.666667 256M768 213.333333 853.333333 213.333333 853.333333 298.666667 768 298.666667M269.226667 341.333333 303.36 341.333333 384 451.84 384 597.333333 640 597.333333 640 465.493333 706.986667 384 768 384 732.16 682.666667 640 682.666667 640 770.56 426.666667 770.56 426.666667 682.666667 324.266667 682.666667M469.333333 426.666667 554.666667 426.666667 554.666667 512 469.333333 512M256 768 341.333333 768 341.333333 853.333333 256 853.333333M725.333333 768 810.666667 768 810.666667 853.333333 725.333333 853.333333" p-id="32067" fill="#1296db"></path></svg>',j.SCALE_VIEW='<svg t="1553753941568" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11856" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M722.8 774.7c9.4 9.4 21.7 14.1 34 14.1s24.6-4.7 34-14.1c18.8-18.8 18.8-49.2 0-68L642.9 558.9c27.3-45 43.1-97.8 43.1-154.2 0-164.2-133.6-297.8-297.8-297.8S90.4 240.5 90.4 404.7 224 702.5 388.2 702.5c73.1 0 140.1-26.5 192-70.4l142.6 142.6zM388.2 606.4c-111.2 0-201.7-90.5-201.7-201.7C186.5 293.5 277 203 388.2 203c111.2 0 201.7 90.5 201.7 201.7 0 111.2-90.5 201.7-201.7 201.7z" p-id="11857" fill="#1296db"></path><path d="M490.8 345.9H447v-43.8c0-32.5-26.3-58.8-58.8-58.8s-58.8 26.3-58.8 58.8v43.8h-43.8c-32.5 0-58.8 26.3-58.8 58.8s26.3 58.8 58.8 58.8h43.8v43.8c0 32.5 26.3 58.8 58.8 58.8s58.8-26.3 58.8-58.8v-43.8h43.8c32.5 0 58.8-26.3 58.8-58.8 0-32.4-26.3-58.8-58.8-58.8zM791.5 133.6H689.8v96.2h101.6c27.6 0 50 22.4 50 50V356h96.2v-76.3c0-80.5-65.5-146.1-146.1-146.1zM841.5 773.3c0 27.6-22.4 50-50 50H689.8v96.2h101.6c80.6 0 146.2-65.6 146.2-146.2V697h-96.2v76.3zM197.2 773.3V697H101v76.3c0 80.6 65.6 146.2 146.2 146.2h101.6v-96.2H247.2c-27.6 0-50-22.4-50-50z" p-id="11858" fill="#1296db"></path></svg>',j.STOP='<svg t="1553752022557" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8879" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M511.968 73.152q119.424 0 220.288 58.848t159.712 159.712 58.848 220.288-58.848 220.288-159.712 159.712-220.288 58.848-220.288-58.848-159.712-159.712-58.848-220.288 58.848-220.288 159.712-159.712 220.288-58.848zM511.968 822.848q84.576 0 156-41.728t113.152-113.152 41.728-156-41.728-156-113.152-113.152-156-41.728-156 41.728-113.152 113.152-41.728 156 41.728 156 113.152 113.152 156 41.728zM347.392 694.848q-8 0-13.152-5.152t-5.152-13.152l0-329.152q0-8 5.152-13.152t13.152-5.152l329.152 0q8 0 13.152 5.152t5.152 13.152l0 329.152q0 8-5.152 13.152t-13.152 5.152l-329.152 0z" p-id="8880" fill="#1296db"></path></svg>',j.STATE_GREEN='<svg t="1553826704425" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="40346" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M512 320a192.064 192.064 0 0 1 0 384 192 192 0 0 1 0-384z" fill="#1bb90a" p-id="40347"></path></svg>',j.STATE_RED='<svg t="1553826704425" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="40346" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M512 320a192.064 192.064 0 0 1 0 384 192 192 0 0 1 0-384z" fill="#d81e06" p-id="40347"></path></svg>',j.STATE_YELLOW='<svg t="1553826937405" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="40561" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M512 320a192.064 192.064 0 0 1 0 384 192 192 0 0 1 0-384z" fill="#dfc801" p-id="40562"></path></svg>',j.VOLUME_ON='<svg t="1555494805635" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7740" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M779.946667 357.12a42.666667 42.666667 0 1 0-66.56 53.76 170.666667 170.666667 0 0 1 0 202.24A42.666667 42.666667 0 0 0 746.666667 682.666667a42.666667 42.666667 0 0 0 33.28-15.786667 256 256 0 0 0 0-309.76z" p-id="7741" fill="#1296db"></path><path d="M837.973333 223.146667a42.666667 42.666667 0 1 0-54.613333 65.706666A290.133333 290.133333 0 0 1 896 512a290.133333 290.133333 0 0 1-112.64 223.146667 42.666667 42.666667 0 0 0-5.546667 60.16A42.666667 42.666667 0 0 0 810.666667 810.666667a42.666667 42.666667 0 0 0 27.306666-9.813334A373.333333 373.333333 0 0 0 981.333333 512a373.333333 373.333333 0 0 0-143.36-288.853333zM617.386667 133.12a42.666667 42.666667 0 0 0-42.666667 0L298.666667 322.986667H85.333333a42.666667 42.666667 0 0 0-42.666666 42.666666v292.693334a42.666667 42.666667 0 0 0 42.666666 42.666666h213.333334l273.493333 187.733334A45.226667 45.226667 0 0 0 597.333333 896a42.666667 42.666667 0 0 0 42.666667-42.666667V170.666667a42.666667 42.666667 0 0 0-22.613333-37.546667z" p-id="7742" fill="#1296db"></path></svg>',j.VOLUME_OFF='<svg t="1555494833118" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1596" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M721.493333 600.746667l61.44 61.44a256 256 0 0 0-2.986666-305.066667 42.666667 42.666667 0 1 0-66.56 53.76 170.666667 170.666667 0 0 1 8.106666 189.866667z" p-id="1597" fill="#1296db"></path><path d="M896 512a277.76 277.76 0 0 1-75.946667 187.306667l60.586667 60.586666A363.946667 363.946667 0 0 0 981.333333 512a373.333333 373.333333 0 0 0-143.36-288.853333 42.666667 42.666667 0 1 0-54.613333 65.706666A290.133333 290.133333 0 0 1 896 512zM640 519.253333V170.666667a42.666667 42.666667 0 0 0-66.986667-35.413334L384 264.533333zM202.24 322.986667H85.333333a42.666667 42.666667 0 0 0-42.666666 42.666666v292.693334a42.666667 42.666667 0 0 0 42.666666 42.666666h213.333334l273.493333 187.733334A45.226667 45.226667 0 0 0 597.333333 896a42.666667 42.666667 0 0 0 42.666667-42.666667v-92.586666zM200.96 140.373333a42.666667 42.666667 0 0 0-60.586667 60.586667l682.666667 682.666667a42.666667 42.666667 0 0 0 60.586667 0 42.666667 42.666667 0 0 0 0-60.586667z" p-id="1598" fill="#1296db"></path></svg>',j.RECORD='<svg t="1561699691315" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1847" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M704 434.496l131.7952-131.7888a38.4 38.4 0 0 1 65.5488 27.1552v388.48a38.4 38.4 0 0 1-65.5488 27.1488L704 613.7024V729.6a38.4 38.4 0 0 1-38.4 38.4H166.4a38.4 38.4 0 0 1-38.4-38.4V345.6a38.4 38.4 0 0 1 38.4-38.4h499.2a38.4 38.4 0 0 1 38.4 38.4v88.896zM281.6 524.8c42.4128 0 76.8-34.3872 76.8-76.8s-34.3872-76.8-76.8-76.8-76.8 34.3872-76.8 76.8 34.3872 76.8 76.8 76.8z" fill="#d81e06" p-id="1848"></path></svg>',j.TALK_ON='<svg class="icon" width="32px" height="32.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path fill="#1296db" d="M512 683.52c130.56 0 235.52-102.4 235.52-232.96V256c0-130.56-104.96-232.96-235.52-232.96s-235.52 102.4-235.52 232.96v194.56c0 130.56 102.4 232.96 235.52 232.96z m368.64-281.6c0-23.04-20.48-43.52-46.08-43.52s-43.52 20.48-43.52 43.52c0 5.12 0 10.24 2.56 12.8v33.28c0 151.04-125.44 276.48-281.6 276.48-153.6 0-281.6-125.44-281.6-276.48V409.6c0-2.56 2.56-5.12 2.56-10.24 0-23.04-20.48-43.52-43.52-43.52-25.6 0-43.52 20.48-43.52 43.52v64c0 186.88 140.8 335.36 320 360.96v87.04h-122.88c-25.6 0-46.08 20.48-46.08 46.08s20.48 43.52 46.08 43.52h332.8c28.16 0 43.52-17.92 43.52-43.52 0-23.04-17.92-46.08-43.52-46.08h-122.88v-87.04c184.32-20.48 327.68-174.08 327.68-360.96v-61.44z m0 0" /></svg>',j.TALK_OFF='<svg class="icon" width="32px" height="32.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path fill="#1296db" d="M840.533333 34.133333c17.066667 17.066667 17.066667 42.666667 0 59.733334l-682.666666 682.666666c-8.533333 8.533333-19.2 12.8-29.866667 12.8s-21.333333-4.266667-29.866667-12.8c-17.066667-17.066667-17.066667-42.666667 0-59.733333L196.266667 618.666667C179.2 578.133333 170.666667 535.466667 170.666667 490.666667c0-23.466667 19.2-42.666667 42.666666-42.666667s42.666667 19.2 42.666667 42.666667c0 21.333333 2.133333 40.533333 6.4 59.733333l36.266667-36.266667c0-8.533333-2.133333-14.933333-2.133334-23.466666V234.666667c0-117.333333 96-213.333333 213.333334-213.333334 57.6 0 110.933333 21.333333 151.466666 61.866667 10.666667 10.666667 21.333333 23.466667 29.866667 38.4l87.466667-87.466667c19.2-17.066667 44.8-17.066667 61.866666 0zM384 430.933333L629.333333 185.6c-6.4-14.933333-14.933333-27.733333-27.733333-40.533333C578.133333 119.466667 546.133333 106.666667 512 106.666667c-70.4 0-128 57.6-128 128v196.266666zM512 704c117.333333 0 213.333333-96 213.333333-213.333333v-128c0-23.466667-19.2-42.666667-42.666666-42.666667s-42.666667 19.2-42.666667 42.666667v128c0 70.4-57.6 128-128 128-25.6 0-51.2-8.533333-72.533333-23.466667-19.2-12.8-46.933333-8.533333-59.733334 10.666667-12.8 19.2-8.533333 46.933333 10.666667 59.733333C426.666667 691.2 467.2 704 512 704" /><path fill="#1296db" d="M853.333333 490.666667c0-23.466667-19.2-42.666667-42.666666-42.666667s-42.666667 19.2-42.666667 42.666667c0 140.8-115.2 256-256 256-57.6 0-115.2-21.333333-162.133333-57.6-19.2-14.933333-44.8-12.8-59.733334 6.4-14.933333 19.2-12.8 44.8 6.4 59.733333 49.066667 40.533333 108.8 66.133333 172.8 74.666667V896h-128c-23.466667 0-42.666667 19.2-42.666666 42.666667s19.2 42.666667 42.666666 42.666666h341.333334c23.466667 0 42.666667-19.2 42.666666-42.666666s-19.2-42.666667-42.666666-42.666667h-128v-66.133333c168.533333-21.333333 298.666667-166.4 298.666666-339.2" /></svg>',j.PTZ_CTL='<svg t="1591624538177" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4797" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M1013.474793 529.83766c-15.388062 9.085203-266.877827 154.732357-285.105015 164.669297a20.384923 20.384923 0 0 1-30.832906-17.659363v-329.338594a20.498488 20.498488 0 0 1 31.457514-17.772928l284.480407 164.669297a20.498488 20.498488 0 0 1 0 35.432291zM676.697689 326.499469H347.018399a20.384923 20.384923 0 0 1-17.659363-30.832907c10.107288-18.227188 155.811225-269.603387 164.669298-284.991449a20.498488 20.498488 0 0 1 35.716202 0c12.378589 21.350226 157.28757 271.817906 164.669298 284.366842a20.498488 20.498488 0 0 1-17.716145 31.400731z m-381.010685 368.177836c-18.227188-10.107288-269.603387-155.754442-284.991449-164.669298a20.498488 20.498488 0 0 1 0-35.716203l284.366841-164.669297a20.498488 20.498488 0 0 1 31.457514 17.772928v329.338594a20.384923 20.384923 0 0 1-30.832906 17.772928z m51.104265 2.839125h329.679289a20.498488 20.498488 0 0 1 17.772928 31.457514c-7.21138 12.548936-152.120361 263.073398-164.669297 284.480407a20.498488 20.498488 0 0 1-35.716203 0c-9.085203-15.388062-154.789139-266.877827-164.669297-285.105014a20.384923 20.384923 0 0 1 17.82971-30.889689z" p-id="4798" fill="#1296db"></path></svg>',j.ALL_SVGS={snapshot:j.SNAPSHOT,maximize:j.MAXIMIZE,"roi-rect":j.ROI_RECT,"roi-polygon":j.ROI_POLYGON,"scale-view":j.SCALE_VIEW,stop:j.STOP,"state-green":j.STATE_GREEN,"state-red":j.STATE_RED,"state-yellow":j.STATE_YELLOW,"volume-on":j.VOLUME_ON,"volume-off":j.VOLUME_OFF,"talk-on":j.TALK_ON,"talk-off":j.TALK_OFF,record:j.RECORD,ptz:j.PTZ_CTL},j.DEFAULT_SIZE=28;var F=function t(){a(this,t)};F.STATE=1,F.NAME=2,F.SPEED=4,F.ALL=65535;var H=function(){function t(e,n){a(this,t),this.box=e,this.stateSpan=null,this.nameSpan=null,this.speedSpan=null,this.isShow=!0,this.titleBar=document.createElement("div"),this.titleBar.classList.add("vat-title"),this.stateSpan=document.createElement("span"),this.stateSpan.classList.add("state"),this.titleBar.appendChild(this.stateSpan),this.nameSpan=document.createElement("span"),this.nameSpan.classList.add("vat-name"),this.nameSpan.innerText="未知设备",this.titleBar.appendChild(this.nameSpan),this.speedSpan=document.createElement("span"),this.speedSpan.classList.add("vat-speed"),this.speedSpan.innerText="20.5KB/s",this.titleBar.appendChild(this.speedSpan),this.box.appendChild(this.titleBar),this.hasTitleBar=0!==n,this.autoShow(),0==(n&F.STATE)&&(this.stateSpan.style.display="none"),0==(n&F.NAME)&&(this.nameSpan.style.display="none"),0==(n&F.SPEED)&&(this.speedSpan.style.display="none")}return l(t,[{key:"adjustWidth",value:function(t){this.nameSpan&&(this.nameSpan.style.maxWidth="".concat(t-120,"px"))}},{key:"show",value:function(){this.isShow=!0,this.titleBar.style.display="block"}},{key:"hide",value:function(){this.isShow=!1,this.titleBar.style.display="none"}},{key:"height",value:function(){return this.isShow?this.titleBar.offsetHeight:0}},{key:"autoShow",value:function(){this.hasTitleBar?this.show():this.hide()}},{key:"clear",value:function(){this.speedSpan&&(this.speedSpan.innerText=""),this.nameSpan&&(this.nameSpan.innerText=""),this.stateSpan&&(this.stateSpan.innerHTML=""),this.titleBar.style.display="none"}},{key:"setState",value:function(t){this.stateSpan&&(this.stateSpan.innerHTML="","red"===t?this.stateSpan.appendChild(j.getSVG("state-red",null,16)):"green"===t?this.stateSpan.appendChild(j.getSVG("state-green",null,16)):"yellow"===t&&this.stateSpan.appendChild(j.getSVG("state-yellow",null,16)))}},{key:"setName",value:function(t){this.nameSpan&&(this.nameSpan.innerText=t,this.nameSpan.title=t)}},{key:"setSpeed",value:function(t){var e;e=t<1024?"".concat(t," B/s"):t<1048576?"".concat(Math.round(t/10.24)/100," KB/s"):"".concat(Math.round(t/10485.76)/100," MB/s"),this.speedSpan&&(this.speedSpan.innerText=e)}}]),t}();function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function W(t){return function(t){if(Array.isArray(t))return N(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return N(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return B(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){o=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}H.STATE_CLOSE="red",H.STATE_WAITTING="yellow",H.STATE_RUNNING="green";var z=function(){function t(e,n,i){var r=this;a(this,t),this.onEscape=null,this.onSave=null,this._width=0,this._height=0,this._left=0,this._top=0,this.box=e,this.drawType=t.DRAW_NONE,this.oldDiagrams=[],this.diagrams=[],this.drawingDiagram=null,this._isDrawing=!1,this.maxRoi=n,this.storeCanvas=document.createElement("canvas"),this.storeCanvas.classList.add("vat-roi-view"),this.box.appendChild(this.storeCanvas),this.canvas=document.createElement("canvas"),this.canvas.classList.add("vat-roi-draw"),this.canvas.tabIndex=0,this.box.appendChild(this.canvas),this.ctx=this.canvas.getContext("2d"),this.menu=null,this.isShowMenu=i,this.lineColor="red";var s=this;this.canvas.onmousedown=function(e){var n=r.transPoint(e);if(2!==e.buttons)if(1!==e.buttons);else if(s.drawType===t.DRAW_RECT){if(s._isDrawing)return void(s._isDrawing=!1);s.drawingDiagram={points:[{x:n.x,y:n.y},{x:n.x,y:n.y}],type:s.drawType,width:r._width,height:r._height,color:r.lineColor},s._isDrawing=!0}else s.drawType===t.DRAW_POLYGON&&(null===s.drawingDiagram?s.drawingDiagram={points:[{x:n.x,y:n.y}],type:s.drawType,width:r._width,height:r._height,color:r.lineColor}:s.drawingDiagram.points.push({x:n.x,y:n.y}),s._isDrawing=!0)},this.canvas.onmouseup=function(e){if(s._isDrawing){var n=r.transPoint(e);if(s.drawType===t.DRAW_RECT)s.drawingDiagram&&(s.drawingDiagram.points[1].x=n.x,s.drawingDiagram.points[1].y=n.y),s._isDrawing=!1;else if(s.drawType===t.DRAW_POLYGON&&null!==s.drawingDiagram&&null!==s.ctx){s.ctx.beginPath();var i=s.drawingDiagram.points[s.drawingDiagram.points.length-1];s.ctx.moveTo(i.x,i.y),s.ctx.lineTo(n.x,n.y),s.ctx.stroke(),s.ctx.closePath()}}},this.canvas.onmousemove=function(e){if(s._isDrawing&&null!==s.drawingDiagram&&null!==s.ctx){var n=r.transPoint(e);if(s.ctx.strokeStyle=r.lineColor,s.ctx.lineWidth=2,s.drawType===t.DRAW_RECT){s.ctx.clearRect(0,0,s._width,s._height);var i=s.drawingDiagram.points[0].x,a=s.drawingDiagram.points[0].y,o=n.x-i,l=n.y-a;s.ctx.strokeRect(i,a,o,l),s.drawingDiagram.points[1].x=n.x,s.drawingDiagram.points[1].y=n.y}else if(s.drawType===t.DRAW_POLYGON){var u=s.drawingDiagram.points;s.ctx.clearRect(0,0,s._width,s._height),s.ctx.beginPath(),s.ctx.moveTo(u[0].x,u[0].y);for(var c=1;c<u.length;c++)s.ctx.lineTo(u[c].x,u[c].y);s.ctx.stroke(),s.ctx.closePath(),s.ctx.beginPath(),s.ctx.strokeStyle="yellow",s.ctx.moveTo(u[0].x,u[0].y),s.ctx.lineTo(n.x,n.y),s.ctx.lineTo(u[u.length-1].x,u[u.length-1].y),s.ctx.stroke(),s.ctx.closePath()}}},this.canvas.oncontextmenu=function(t){t.preventDefault(),r.isShowMenu&&r.showMenu(t)},this.canvas.style.display="none"}return l(t,[{key:"resize",value:function(t,e,n,i){this._left=t,this._top=e,this._width=n,this._height=i,this.canvas.width=n,this.canvas.height=i,this.canvas.style.top="".concat(e,"px"),this.canvas.style.left="".concat(t,"px"),this.storeCanvas.width=n,this.storeCanvas.height=i,this.storeCanvas.style.top="".concat(e,"px"),this.storeCanvas.style.left="".concat(t,"px"),this._width>0&&this._height>0&&(this.dumpDiagrams(),this.updateDrawing())}},{key:"destroy",value:function(){this.box.removeChild(this.storeCanvas),this.box.removeChild(this.canvas)}},{key:"start",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.drawType=e,null!==n&&(this.lineColor=n),this.canvas.style.display="",this.ctx&&(this.ctx.textAlign="center",this.ctx.textBaseline="middle",this.ctx.strokeStyle="red",this.ctx.fillStyle="red",this.ctx.font="16px Arial",this.drawType===t.DRAW_RECT?this.ctx.fillText("开始绘制矩形...",this.canvas.width/2,this.canvas.height/2-20):this.ctx.fillText("开始绘制多边形...",this.canvas.width/2,this.canvas.height/2-20),this.ctx.font="14px Arial",this.ctx.fillStyle="#ee0000",this.isShowMenu&&this.ctx.fillText("鼠标右键更多操作",this.canvas.width/2,this.canvas.height/2+20)),this.storeCanvas.style.background="#00000088",this.oldDiagrams=W(this.diagrams),this.canvas.focus()}},{key:"stop",value:function(){this.drawingDiagram=null,this._isDrawing=!1,this.drawType=t.DRAW_NONE,this.canvas.style.display="none",this.ctx&&this.ctx.clearRect(0,0,this._width,this._height),this.storeCanvas.style.background=""}},{key:"setROI",value:function(t){this.diagrams=t,this.oldDiagrams=W(this.diagrams),this.dumpDiagrams()}},{key:"saveQuit",value:function(){return!!this.checkDrawing()&&(this.diagrams.length+this.drawingCount()>this.maxRoi?(this.showMsg("已达到绘图数量限制!!"),!1):(this.saveDrawing(),this.onSave&&this.onSave(this.diagrams),!0))}},{key:"isUserDrawing",value:function(){return this.drawType!==t.DRAW_NONE}},{key:"showMsg",value:function(t){this.ctx&&(this.ctx.textAlign="center",this.ctx.textBaseline="middle",this.ctx.strokeStyle="red",this.ctx.fillStyle="red",this.ctx.font="16px Arial",this.ctx.fillText(t,this.canvas.width/2,this.canvas.height/2))}},{key:"dumpDiagrams",value:function(){var e=this.diagrams,n=this.storeCanvas.getContext("2d");if(n&&(n.clearRect(0,0,this.storeCanvas.width,this.storeCanvas.height),null!==e&&0!==e.length)){var i=this.storeCanvas.width,r=this.storeCanvas.height;n.strokeStyle=this.lineColor,n.lineWidth=2;var a,s=U(e);try{for(s.s();!(a=s.n()).done;){var o=a.value;o.color?n.strokeStyle=o.color:n.strokeStyle=this.lineColor;var l=i/o.width,u=r/o.height;if(o.type===t.DRAW_RECT){var c=this.scalePoint(o.points[0].x,l,i),h=this.scalePoint(o.points[0].y,u,r),d=this.scalePoint(o.points[1].x,l,i)-c,f=this.scalePoint(o.points[1].y,u,r)-h;n.strokeRect(c,h,d,f)}else if(o.type===t.DRAW_POLYGON){var m=this.scalePoint(o.points[0].x,l,i),p=this.scalePoint(o.points[0].y,u,r);n.beginPath(),n.moveTo(m,p);for(var _=1;_<o.points.length;_++){var g=this.scalePoint(o.points[_].x,l,i),v=this.scalePoint(o.points[_].y,u,r);n.lineTo(g,v)}n.lineTo(m,p),n.stroke(),n.closePath()}}}catch(t){s.e(t)}finally{s.f()}}}},{key:"checkDrawing",value:function(){if(null===this.drawingDiagram)return!0;var e,n=U(this.drawingDiagram.points);try{for(n.s();!(e=n.n()).done;){var i=e.value;i.x<0&&(i.x=0),i.y<0&&(i.y=0),i.x>this.drawingDiagram.width&&(i.x=this.drawingDiagram.width),i.y>this.drawingDiagram.height&&(i.y=this.drawingDiagram.height)}}catch(t){n.e(t)}finally{n.f()}if(this.drawingDiagram.type===t.DRAW_RECT){var r=this.drawingDiagram.points;2===r.length&&r[0].x===r[1].x&&r[0].y===r[1].y&&(this.drawingDiagram=null)}else if(this.drawingDiagram.type===t.DRAW_POLYGON&&this.drawingDiagram.points.length<3)return this.showMsg("至少需要画3个点!!"),!1;return!0}},{key:"saveDrawing",value:function(){null!=this.drawingDiagram&&((this.drawingDiagram.type===t.DRAW_RECT&&2===this.drawingDiagram.points.length||this.drawingDiagram.type===t.DRAW_POLYGON&&this.drawingDiagram.points.length>2)&&this.diagrams.push(this.drawingDiagram),this.drawingDiagram=null,this.dumpDiagrams())}},{key:"updateDrawing",value:function(){if(this.ctx){if(this.ctx.clearRect(0,0,this._width,this._height),null!=this.drawingDiagram){if(this._width!==this.drawingDiagram.width||this._height!==this.drawingDiagram.height){var e,n=this._width/this.drawingDiagram.width,i=this._height/this.drawingDiagram.height,r=U(this.drawingDiagram.points);try{for(r.s();!(e=r.n()).done;){var a=e.value;a.x=a.x*n,a.y=a.y*i}}catch(t){r.e(t)}finally{r.f()}this.drawingDiagram.width=this._width,this.drawingDiagram.height=this._height}if(this.ctx.strokeStyle=this.lineColor,this.drawType===t.DRAW_RECT&&2===this.drawingDiagram.points.length){var s=this.drawingDiagram.points[0].x,o=this.drawingDiagram.points[0].y,l=this.drawingDiagram.points[1].x-s,u=this.drawingDiagram.points[1].y-o;this.ctx.strokeRect(s,o,l,u)}else if(this.drawType===t.DRAW_POLYGON&&this.drawingDiagram.points.length>=2){var c=this.drawingDiagram.points;this.ctx.beginPath(),this.ctx.moveTo(c[0].x,c[0].y);for(var h=1;h<c.length;h++)this.ctx.lineTo(c[h].x,c[h].y);this.ctx.lineTo(c[0].x,c[0].y),this.ctx.stroke(),this.ctx.closePath()}}}else console.warn("updateDrawing ctx is null")}},{key:"showMenu",value:function(t){var e=this,n=this.transPoint(t);if(null===this.menu){this.menu=document.createElement("ul"),this.menu.classList.add("vat-roi-menu"),this.box.appendChild(this.menu);var i=this;this.menu.onmouseleave=function(t){i.menu&&(i.menu.style.display="none")},this.createMenuItem("保存&退出",(function(){i.checkDrawing()&&(i.diagrams.length+i.drawingCount()>i.maxRoi?i.showMsg("已达到绘图数量限制!!"):(i.saveDrawing(),i.onSave&&i.onSave(e.diagrams)))})),this.createMenuItem("取消&退出",(function(){i.diagrams=i.oldDiagrams,i.dumpDiagrams(),i.onEscape&&i.onEscape()})),this.createMenuItem("保存&继续",(function(){i.checkDrawing()&&(e.diagrams.length+i.drawingCount()>e.maxRoi?i.showMsg("已达到绘图数量限制!!"):(e.saveDrawing(),e.updateDrawing()),i._isDrawing=!1)})),this.createMenuItem("擦除一个",(function(){i._isDrawing=!1,null!=i.drawingDiagram?(i.drawingDiagram=null,i.ctx&&i.ctx.clearRect(0,0,i._width,i._height)):i.diagrams.length>0&&(i.diagrams.pop(),i.dumpDiagrams())})),this.createMenuItem("擦除所有",(function(){i._isDrawing=!1,null!=i.drawingDiagram&&(i.drawingDiagram=null,i.ctx&&i.ctx.clearRect(0,0,i._width,i._height)),i.diagrams.length>0&&(i.diagrams=[],i.dumpDiagrams())}))}this.menu.style.display="block",this.menu.style.left="".concat(n.x,"px"),this.menu.style.top="".concat(n.y,"px")}},{key:"createMenuItem",value:function(t,e){if(null!==this.menu){var n=document.createElement("li");n.innerText=t;var i=this;n.onclick=function(t){e(),i.menu&&(i.menu.style.display="none")},this.menu.appendChild(n)}}},{key:"drawingCount",value:function(){return null==this.drawingDiagram?0:this.drawingDiagram.points.length>0?1:0}},{key:"transPoint",value:function(t){var e={x:t.offsetX,y:t.offsetY};return 0===e.x&&0===e.y&&(e.x=t.layerX,e.y=t.layerY),e}},{key:"scalePoint",value:function(t,e,n){return(t*=e)<0?t=0:t>n&&(t=n),t}}]),t}();function V(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return G(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){o=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function G(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}z.DRAW_NONE=0,z.DRAW_RECT=1,z.DRAW_POLYGON=2,n("28a5");var X=function(){function t(){a(this,t)}return l(t,null,[{key:"parseUrl",value:function(e){return void 0===e||0===e.length?e||"":0!==e.indexOf("plive://")&&0!==e.indexOf("psub://")&&0!==e.indexOf("vms://")||e.indexOf("token=")>0||void 0===t.token||0===t.token.length?e:e.indexOf("?")>0?e+"&token="+t.token:e+"?token="+t.token}},{key:"parseVodUrl",value:function(t){var e={id:"",ip:"",port:0,start:"",end:"",type:0};if(0===t.indexOf("vms://")){var n=t.indexOf("/",6);if(n<0)return e;var i=t.indexOf("@",6);i<0&&(i=6);var r=t.substring(i,n).split(":");e.ip=r[0],e.port=parseInt(r[1],10),i=t.indexOf("/",n+1),n=t.indexOf("/",i+1),e.id=t.substring(i+1,n);var a,s={},o=V(t.substring(t.indexOf("?",i)+1).split("&"));try{for(o.s();!(a=o.n()).done;){var l=a.value.split("=",2);s[l[0]]=l[1]}}catch(t){o.e(t)}finally{o.f()}e.start=s.beginTime,e.end=s.endTime,e.type=parseInt(s.type?s.type:1,10)}return e}}]),t}(),K=function(){function t(){a(this,t),this.websocket=null,this.faceRectUrl=void 0,this.faceSnapUrl=void 0,this.extUrl=void 0,this.maxCacheTime=3e4,this.maxCacheCount=750}return l(t,[{key:"setUrl",value:function(t,e,n){this.faceRectUrl=t,this.faceSnapUrl=e,this.extUrl=n,this.websocket&&this.websocket.readyState===WebSocket.OPEN&&this.start(this.websocket)}},{key:"start",value:function(e){this.websocket=e;var n=JSON.stringify({cmd:t.CMD_OPEN_FACE,faceRectUrl:X.parseUrl(this.faceRectUrl),faceSnapUrl:X.parseUrl(this.faceSnapUrl),extUrl:X.parseUrl(this.extUrl)});this.websocket.send(n)}},{key:"stop",value:function(){if(null!==this.websocket&&this.websocket.readyState===WebSocket.OPEN){var e=JSON.stringify({cmd:t.CMD_CLOSE_FACE});this.websocket.send(e)}}}]),t}();K.CMD_OPEN_FACE="open_face",K.CMD_CLOSE_FACE="close_face",n("a481");var q=function(){function t(){a(this,t)}return l(t,null,[{key:"get",value:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(console.log(n,e[n]),t=t.replace("{".concat(n,"}"),e[n]));return t}},{key:"set",value:function(e,n){"plugin-service-disconnected"===e?t.PLUGIN_SERVICE_DISCONNECTED=n:"plugin-service-mismatch"===e?t.PLUGIN_SERVICE_MISMATCH=n:"plugin-service-notfound"===e?t.PLUGIN_SERVICE_NOTFOUND=n:"plugin-service-version-require"===e?t.PLUGIN_SERVICE_VERSION_REQUIRE=n:"plugin-service-error"===e?t.PLUGIN_SERVICE_ERROR=n:"plugin-download"===e?t.PLUGIN_DOWNLOAD=n:"plugin-vod-error"===e?t.PLUGIN_VOD_ERROR=n:"stream-no-data"===e?t.STREAM_NO_DATA=n:"stream-concurrency-limit"===e?t.STREAM_CONCURRENCY_LIMIT=n:"user-concurrency-limit"===e?t.USER_CONCURRENCY_LIMIT=n:"stream-connect-failed"===e?t.STREAM_CONNECT_FAILED=n:"stream-notfound"===e?t.STREAM_NOTFOUND=n:"stream-auth-failed"===e?t.STREAM_AUTH_FAILED=n:"stream-unknown-error"===e?t.STREAM_UNKNOWN_ERROR=n:"stream-protocol-error"===e?t.STREAM_PROTOCOL_ERROR=n:"stream-disconnected"===e?t.STREAM_DISCONNECTED=n:"stream-unsupported"===e?t.STREAM_UNSUPPORTED=n:"stream-open-failed"===e?t.STREAM_OPEN_FAILED=n:"stream-authorize-limit"===e&&(t.STREAM_AUTHORIZE_LIMIT=n)}}]),t}();function J(t,e,n){return(J="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}})(t,e,n||t)}q.PLUGIN_SERVICE_NOTFOUND="插件服务未安装或未启动",q.PLUGIN_SERVICE_DISCONNECTED="插件服务连接断开,请检查服务是否启动并刷新浏览器",q.PLUGIN_SERVICE_MISMATCH="插件版本不兼容",q.PLUGIN_SERVICE_VERSION_REQUIRE="插件服务版本不匹配,当前版本:{installed_version} 要求:{require_version}",q.PLUGIN_SERVICE_ERROR="连接插件服务错误",q.PLUGIN_DOWNLOAD="下载",q.PLUGIN_VOD_ERROR="启动回放进程失败",q.STREAM_NO_DATA="无视频数据",q.STREAM_CONCURRENCY_LIMIT="相机播放路数达到上限",q.USER_CONCURRENCY_LIMIT="用户播放路数达到上限",q.STREAM_CONNECT_FAILED="连接失败",q.STREAM_NOTFOUND="找不到流",q.STREAM_AUTH_FAILED="用户名或密码错误",q.STREAM_UNKNOWN_ERROR="未知异常",q.STREAM_PROTOCOL_ERROR="对方协议错误",q.STREAM_DISCONNECTED="连接断开",q.STREAM_UNSUPPORTED="不支持流类型",q.STREAM_OPEN_FAILED="打开流失败",q.STREAM_AUTHORIZE_LIMIT="授权播放路数达到上限",n("9c29");var $=function(){function t(){a(this,t),this.ctx=null,this.canvas=null,this.x1080pFactor=1,this.y1080pFactor=1,this.filter=null}return l(t,[{key:"setup",value:function(t){return this.canvas=t,this.ctx=t.getContext("2d"),null!==this.ctx}},{key:"clear",value:function(){this.ctx&&this.canvas&&this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height)}},{key:"destroy",value:function(){this.ctx=null,this.canvas=null}},{key:"resize",value:function(t,e){this.x1080pFactor=t/1920,this.y1080pFactor=e/1080}},{key:"setFilter",value:function(t){this.filter=t}}]),t}();function Z(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}var Q=function(t){c(n,t);var e=Z(n);function n(){var t;return a(this,n),(t=e.call(this)).imagePool=[],t.imageCount=0,t.onDraw=null,t.timerId=0,t.imageList=[],t.isShow=!1,t}return l(n,[{key:"setAsync",value:function(t,e){var n=this;this.onDraw=e,0!==t&&(0!==this.timerId&&clearInterval(this.timerId),this.timerId=setInterval((function(){n.onPlayTimer()}),1e3/t))}},{key:"render",value:function(t,e,n){this.isShow=!0;var i=this,r=new Blob([e]);if(i.imagePool.length>0){var a=i.imagePool.shift();a.image.src=URL.createObjectURL(r),a.time=n}else{var s={image:new Image,time:n};s.time=n,s.image.onload=function(t){i.onLoad(s)},s.image.onerror=function(t){s.image.src.length>0&&URL.revokeObjectURL(s.image.src),i.imagePool.push(s)},i.imageCount++,s.image.src=URL.createObjectURL(r)}}},{key:"clear",value:function(){J(f(n.prototype),"clear",this).call(this),this.imageList=[],this.isShow=!1}},{key:"destroy",value:function(){0!==this.timerId&&(clearInterval(this.timerId),this.timerId=0),J(f(n.prototype),"destroy",this).call(this)}},{key:"onLoad",value:function(t){if(!this.isShow)return URL.revokeObjectURL(t.image.src),void this.imagePool.push(t);0!==this.timerId?this.imageList.push(t):(this.ctx&&this.canvas&&this.ctx.drawImage(t.image,0,0,this.canvas.width,this.canvas.height),this.onDraw&&this.onDraw(t.time,t.image.naturalWidth,t.image.naturalHeight),URL.revokeObjectURL(t.image.src),this.imagePool.push(t))}},{key:"onPlayTimer",value:function(){if(this.isShow&&null!==this.ctx&&null!==this.canvas&&0!==this.imageList.length&&!(this.imageList.length<8)){for(;this.imageList.length>11;){var t=this.imageList.shift();void 0!==t&&(URL.revokeObjectURL(t.image.src),this.imagePool.push(t))}var e=this.imageList.shift();void 0!==e&&(this.ctx.drawImage(e.image,0,0,this.canvas.width,this.canvas.height),this.onDraw&&this.onDraw(e.time,e.image.naturalWidth,e.image.naturalHeight),URL.revokeObjectURL(e.image.src),this.imagePool.push(e))}}}]),n}($);Q.MAX_CACHE_IMAGE_COUNT=10,n("34ef"),n("af56"),n("63d9");var tt=function(){function t(e){a(this,t),this.gl=e,this.texture=e.createTexture(),null!==this.texture&&(e.bindTexture(e.TEXTURE_2D,this.texture),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE))}return l(t,[{key:"bind",value:function(t,e,n){this.gl.activeTexture([this.gl.TEXTURE0,this.gl.TEXTURE1,this.gl.TEXTURE2][t]),this.gl.bindTexture(this.gl.TEXTURE_2D,this.texture),this.gl.uniform1i(this.gl.getUniformLocation(e,n),t)}},{key:"fill",value:function(t,e,n){this.gl.bindTexture(this.gl.TEXTURE_2D,this.texture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.LUMINANCE,t,e,0,this.gl.LUMINANCE,this.gl.UNSIGNED_BYTE,n)}}]),t}(),et=function(){function t(e,n){a(this,t),this.gl=e,this.y=new tt(this.gl),this.u=new tt(this.gl),this.v=new tt(this.gl),this.y.bind(0,n,"YTexture"),this.u.bind(1,n,"UTexture"),this.v.bind(2,n,"VTexture")}return l(t,[{key:"render",value:function(t,e,n){var i=e*n,r=i+i/4,a=e>>1,s=n>>1;this.gl.clearColor(0,0,0,0),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.y.fill(e,n,t.subarray(0,i)),this.u.fill(a,s,t.subarray(i,r)),this.v.fill(a,s,t.subarray(r,t.length)),this.gl.drawArrays(this.gl.TRIANGLE_STRIP,0,4)}},{key:"clear",value:function(){this.gl.viewport(0,0,this.gl.canvas.width,this.gl.canvas.height),this.gl.clearColor(0,0,0,0),this.gl.clear(this.gl.COLOR_BUFFER_BIT)}},{key:"getGl",value:function(){return this.gl}}]),t}(),nt=function(){function t(){a(this,t),this.isSetup=!1,this.canvas=null,this.webgl=null,this.onDraw=null,this.timerId=0,this.cacheList=[]}return l(t,[{key:"setAsync",value:function(t,e){var n=this;this.onDraw=e,0!==t&&(0!==this.timerId&&clearInterval(this.timerId),this.timerId=setInterval((function(){if(!(n.cacheList.length<8)){for(;n.cacheList.length>11;)n.cacheList.shift();var t=n.cacheList.shift();void 0!==t&&n.webgl&&n.renderInternal(n.webgl,t.type,t.data,t.time)}}),1e3/t))}},{key:"resize",value:function(t,e){if(null!==this.webgl){var n=this.webgl.getGl();n.viewport(0,0,n.canvas.width,n.canvas.height)}}},{key:"clear",value:function(){this.webgl&&this.webgl.clear(),this.cacheList=[]}},{key:"destroy",value:function(){if(0!==this.timerId&&(clearInterval(this.timerId),this.timerId=0),null!==this.webgl){var t=this.webgl.getGl().getExtension("WEBGL_lose_context");null!==t&&t.loseContext()}this.webgl=null,this.canvas=null,this.isSetup=!1}},{key:"render",value:function(t,e,n){this.isSetup||(this.setupInternal(),this.isSetup=!0),0!==this.timerId?this.cacheList.push({type:t,data:e,time:n}):this.webgl&&this.renderInternal(this.webgl,t,e,n)}},{key:"setup",value:function(t){return this.canvas=t,!0}},{key:"setupInternal",value:function(){if(null===this.canvas)return!1;var t=this.canvas.getContext("webgl")||this.canvas.getContext("experimental-webgl");if(null===t)return!1;var e=t.createProgram();if(null===e)return!1;var n=["attribute lowp vec4 aVertexPosition;","attribute vec2 aTextureCoord;","varying lowp vec2 vTextureCoord;","void main(void) {"," gl_Position = aVertexPosition;"," vTextureCoord = aTextureCoord;","}"].join("\n"),i=t.createShader(t.VERTEX_SHADER);if(null===i)return!1;t.shaderSource(i,n),t.compileShader(i);var r=["precision lowp float;","varying lowp vec2 vTextureCoord;","uniform sampler2D YTexture;","uniform sampler2D UTexture;","uniform sampler2D VTexture;","const mat4 YUV2RGB = mat4","("," 1.1643828125, 0, 1.59602734375, -.87078515625,"," 1.1643828125, -.39176171875, -.81296875, .52959375,"," 1.1643828125, 2.017234375, 0, -1.081390625,"," 0, 0, 0, 1",");","void main(void) {"," gl_FragColor = vec4( texture2D(YTexture, vTextureCoord).x, texture2D(UTexture, vTextureCoord).x, ","texture2D(VTexture, vTextureCoord).x, 1) * YUV2RGB;","}"].join("\n"),a=t.createShader(t.FRAGMENT_SHADER);if(null===a)return!1;t.shaderSource(a,r),t.compileShader(a),t.attachShader(e,i),t.attachShader(e,a),t.linkProgram(e),t.useProgram(e),t.getProgramParameter(e,t.LINK_STATUS)||console.log("Shader link failed.");var s=t.getAttribLocation(e,"aVertexPosition");t.enableVertexAttribArray(s);var o=t.getAttribLocation(e,"aTextureCoord");t.enableVertexAttribArray(o);var l=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,l),t.bufferData(t.ARRAY_BUFFER,new Float32Array([1,1,0,-1,1,0,1,-1,0,-1,-1,0]),t.STATIC_DRAW),t.vertexAttribPointer(s,3,t.FLOAT,!1,0,0);var u=t.createBuffer();return t.bindBuffer(t.ARRAY_BUFFER,u),t.bufferData(t.ARRAY_BUFFER,new Float32Array([1,0,0,0,1,1,0,1]),t.STATIC_DRAW),t.vertexAttribPointer(o,2,t.FLOAT,!1,0,0),this.webgl=new et(t,e),!0}},{key:"setFilter",value:function(t){}},{key:"renderInternal",value:function(t,e,n,i){if(2===e){new DataView(n,0,12);var r=new Uint16Array(n,12,4),a=new Uint8Array(n,20);t.render(a,r[2],r[3]),this.onDraw&&this.onDraw(i,r[0],r[1])}else{var s=new Uint16Array(n,4,2);t.render(new Uint8Array(n,16),s[0],s[1]),this.onDraw&&this.onDraw(i,s[0],s[1])}}}]),t}();ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(t,e){var n=this.byteLength;if(e=void 0===e?n:0|e,(t=0|t||0)<0&&(t=Math.max(t+n,0)),e<0&&(e=Math.max(e+n,0)),0===n||t>=n||t>=e)return new ArrayBuffer(0);var i=Math.min(n-t,e-t),r=new ArrayBuffer(i);return new Uint8Array(r).set(new Uint8Array(this,t,i)),r});var it=function(){function t(){a(this,t),this.queue=[],this.timerId=0}return l(t,[{key:"getUrl",value:function(t){var e=new Blob([t]),n=URL.createObjectURL(e);if(this.queue.push({url:n,time:performance.now()}),0===this.timerId){var i=this;this.timerId=setInterval((function(){i.check()}),1e3)}return n}},{key:"check",value:function(){if(void 0!==this.queue){for(;this.queue.length>0&&performance.now()-this.queue[0].time>t.DEFAULT_CACHE_TIME;)URL.revokeObjectURL(this.queue[0].url),this.queue.shift();0===this.queue.length&&(clearInterval(this.timerId),this.timerId=0)}else clearInterval(this.timerId)}}]),t}();it.DEFAULT_CACHE_TIME=15e3;var rt=function(){function t(e,n){a(this,t),this.box=e,this.canvas=document.createElement("canvas"),this.canvas.classList.add(n),this.box.appendChild(this.canvas),this.render=null,this.isShow=!0,this.lastRenderTime=0}return l(t,[{key:"setupRender",value:function(t){return this.render=t,this.canvas.width>0&&this.canvas.height>0&&this.render.resize(this.canvas.width,this.canvas.height),this.render.setup(this.canvas)}},{key:"stopView",value:function(){this.isShow=!1,this.render&&this.render.clear()}},{key:"destroy",value:function(){this.stopView(),this.render&&(this.render.destroy(),this.render=null),this.box&&this.canvas&&(this.box.removeChild(this.canvas),this.box=null)}},{key:"move",value:function(t,e,n,i){this.canvas.width=n,this.canvas.height=i,this.canvas.style.left="".concat(t,"px"),this.canvas.style.top="".concat(e,"px"),this.render&&this.render.resize(n,i)}},{key:"putData",value:function(t,e,n){this.isShow&&this.render&&(this.render.render(t,e,n),this.lastRenderTime=performance.now())}},{key:"restoreView",value:function(){this.isShow=!0}},{key:"getImage",value:function(t,e){e&&(t.width=this.canvas.width,t.height=this.canvas.height);var n=t.getContext("2d");return n&&n.drawImage(this.canvas,0,0,t.width,t.height),!0}},{key:"getRender",value:function(){return this.render}}]),t}();function at(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}var st=function(t){c(n,t);var e=at(n);function n(t,i){var r,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.DEFAULT_DURATION;return a(this,n),(r=e.call(this,t,i)).tmpCanvas=document.createElement("canvas"),r.syncTime=0,r.isSync=!0,r.queue=[],r.showDuration=s,r.ctx=null,r}return l(n,[{key:"setupRender",value:function(t){return null!==this.canvas&&(this.ctx=this.canvas.getContext("2d"),this.render=t,this.canvas.width>0&&this.canvas.height>0&&this.render.resize(this.canvas.width,this.canvas.height),this.render.setup(this.canvas))}},{key:"stopView",value:function(){J(f(n.prototype),"stopView",this).call(this),this.queue=[],this.syncTime=0,null!==this.ctx&&this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height)}},{key:"move",value:function(t,e,i,r){this.tmpCanvas.width=i,this.tmpCanvas.height=r,J(f(n.prototype),"move",this).call(this,t,e,i,r)}},{key:"putData",value:function(t,e,n){0!==this.syncTime&&this.isShow&&this.render&&this.ctx&&(this.isSync&&this.syncTime>0&&n>this.syncTime?this.queue.push({type:t,data:e,time:n}):this.renderData({type:t,data:e,time:n}))}},{key:"setSync",value:function(t){this.isSync=t,this.queue=[]}},{key:"sync",value:function(t){this.syncTime=t,0===t&&this.queue.length>0&&(this.renderData(this.queue[this.queue.length-1]),this.queue=[]);for(var e=-1,n=0;n<this.queue.length&&this.queue[n].time<=this.syncTime+10;n++)e=n;if(e>=0){if(this.syncTime-this.queue[e].time>this.showDuration){for(;e>=0;)this.queue.shift(),e--;return}for(this.renderData(this.queue[e]);e>0;)this.queue.shift(),e-=1}else this.lastRenderTime>0&&this.render&&performance.now()-this.lastRenderTime>this.showDuration&&(this.ctx&&this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.lastRenderTime=0)}},{key:"getCtx",value:function(){return this.ctx}},{key:"renderData",value:function(t){this.render&&this.ctx&&(this.render.render(t.type,t.data,t.time),this.lastRenderTime=performance.now())}}]),n}(rt);st.DEFAULT_DURATION=42;var ot=function(){function t(){a(this,t)}return l(t,null,[{key:"hollow",value:function(t,e,n,i,r){var a=Math.min(i,r)/3,s=e+i,o=n+r;t.moveTo(e,n+a),t.lineTo(e,n),t.lineTo(e+a,n),t.moveTo(s-a,n),t.lineTo(s,n),t.lineTo(s,n+a),t.moveTo(s,o-a),t.lineTo(s,o),t.lineTo(s-a,o),t.moveTo(e+a,o),t.lineTo(e,o),t.lineTo(e,o-a)}}]),t}();ot.LINE_STYLE_SOLID=0,ot.LINE_STYLE_HOWLLOW=16;var lt=function(){function t(){a(this,t)}return l(t,null,[{key:"render",value:function(e,n,i,r,a){var s=new DataView(n),o=s.getFloat32(0,!0),l=s.getUint32(16,!0),u=(n.byteLength-20)/l,c=0,h="";e.beginPath();for(var d=20;d<n.byteLength;d+=u)if(!(o>=.2&&null!==a)||a.filter(s.getUint32(d+20,!0))){var f=s.getFloat32(d,!0)*i,m=s.getFloat32(d+4,!0)*r,p=s.getFloat32(d+8,!0)*i,_=s.getFloat32(d+12,!0)*r,g="rgba(65,255,244,0.8)",v=2,y=s.getUint32(d+16,!0),b=t.LINE_STYLE_HOWLLOW;if(y>0){var w=s.getUint8(d+16),x=s.getUint8(d+17),M=s.getUint8(d+18);b=(v=s.getUint8(d+19))&t.LINE_STYLE_BYTES,v&=t.WEIGHT_BYTES,c===y?g=h:(h=g="rgba(".concat(w,", ").concat(x,", ").concat(M,", 0.8)"),c=y,e.stroke(),e.closePath(),e.strokeStyle=g,e.lineWidth=v,e.beginPath())}else 20===d&&(e.strokeStyle=g,e.lineWidth=v);t.LINE_STYLE_HOWLLOW===b?ot.hollow(e,f,m,p,_):t.LINE_STYLE_SOLID===b&&e.strokeRect(f,m,p,_)}e.stroke(),e.closePath()}}]),t}();lt.LINE_STYLE_SOLID=0,lt.LINE_STYLE_HOWLLOW=16,lt.LINE_STYLE_BYTES=240,lt.WEIGHT_BYTES=15;var ut=function(){function t(){a(this,t)}return l(t,null,[{key:"render",value:function(e,n,i,r,a){for(var s=new DataView(n),o=s.getFloat32(0,!0),l=s.getUint32(16,!0),u=(n.byteLength-20)/l,c=20;c<n.byteLength;c+=u)if(!(o>=.2&&null!==a)||a.filter(s.getUint32(c+220,!0))){var h=t.parsePoints(s,c,i,r);t.renderBody(e,h)}}},{key:"parsePoints",value:function(t,e,n,i){for(var r=[],a=0;a<18;a++){var s=e+10*a,o=1===t.getUint8(s),l=t.getFloat32(s+2,!0)*n,u=t.getFloat32(s+6,!0)*i;r.push({valid:o,x:l,y:u})}return r}},{key:"drawPoint",value:function(t,e,n){t.beginPath(),t.arc(e,n,4,0,2*Math.PI),t.fill(),t.stroke()}},{key:"drawLine",value:function(t,e,n){e.valid&&n.valid&&(t.moveTo(e.x,e.y),t.lineTo(n.x,n.y))}},{key:"renderBody",value:function(e,n){e.strokeStyle="green",e.lineWidth=2,e.beginPath(),t.drawLine(e,n[16],n[14]),t.drawLine(e,n[17],n[15]),t.drawLine(e,n[14],n[0]),t.drawLine(e,n[15],n[0]),t.drawLine(e,n[0],n[1]),t.drawLine(e,n[1],n[2]),t.drawLine(e,n[2],n[3]),t.drawLine(e,n[3],n[4]),t.drawLine(e,n[1],n[5]),t.drawLine(e,n[5],n[6]),t.drawLine(e,n[6],n[7]),t.drawLine(e,n[1],n[8]),t.drawLine(e,n[8],n[9]),t.drawLine(e,n[9],n[10]),t.drawLine(e,n[1],n[11]),t.drawLine(e,n[11],n[12]),t.drawLine(e,n[12],n[13]),e.stroke(),e.closePath(),e.fillStyle="red";for(var i=0;i<18;i++)n[i].valid&&t.drawPoint(e,n[i].x,n[i].y)}}]),t}(),ct=function(){function t(){a(this,t)}return l(t,null,[{key:"render",value:function(t,e,n,i){var r=new DataView(e),a=r.getFloat32(0,!0),s=r.getUint32(12,!0),o=16;a>=.3&&(o=20);var l=(e.byteLength-o)/s;for(t.strokeStyle="rgba(65,255,244,0.8)",t.lineWidth=2,t.beginPath();o<e.byteLength;o+=l){var u=r.getFloat32(o,!0)*n,c=r.getFloat32(o+4,!0)*i,h=r.getFloat32(o+8,!0)*n,d=r.getFloat32(o+12,!0)*i;ot.hollow(t,u,c,h,d)}t.stroke(),t.closePath()}}]),t}(),ht=function(){function t(){a(this,t)}return l(t,null,[{key:"render",value:function(t,e,n,i){var r=new DataView(e),a=r.getUint32(16,!0),s=(e.byteLength-20)/a;t.save(),t.scale(n,i),t.font="bold 24px Microsoft YaHei",t.textAlign="center",t.strokeStyle="#32CD3288";for(var o=20;o<e.byteLength;o+=s){var l=r.getFloat32(o,!0),u=r.getFloat32(o+4,!0),c=r.getFloat32(o+8,!0),h=r.getFloat32(o+12,!0),d=r.getUint8(o+16),f=r.getUint8(o+17),m=r.getUint8(o+18),p=r.getUint8(o+19);t.strokeRect(l,u,c,h),l+=c+5;var _=u;d>0&&(_+=33,this.drawText(t,this.BAG_TEXTS[d],l,_)),f>0&&(_+=33,this.drawText(t,this.SLEEVE_TEXTS[f],l,_)),m>0&&(_+=33,this.drawText(t,this.RIDE_TEXTS[m],l,_)),p>0&&(_+=33,this.drawText(t,this.HELMET_TEXTS[p],l,_))}t.restore()}},{key:"drawText",value:function(t,e,n,i){t.fillStyle="rgba(50, 205, 50, 0.75)",t.fillRect(n,i,140,30),t.fillStyle="rgb(0, 0, 0)",t.fillText(e,n+70,i+25)}}]),t}();ht.BAG_TEXTS=["未 知","未背单肩包","背单肩包"],ht.SLEEVE_TEXTS=["未 知","长 袖","短 袖","无 袖"],ht.RIDE_TEXTS=["未 知","未 骑 车","骑 车"],ht.HELMET_TEXTS=["未 知","未戴头盔","戴 头 盔"];var dt=function(){function t(){a(this,t)}return l(t,null,[{key:"render",value:function(e,n,i,r){var a=new DataView(n),s=a.getUint32(16,!0),o=(n.byteLength-20)/s;e.save(),e.scale(i,r),e.font="bold 24px Microsoft YaHei",e.textAlign="center",e.strokeStyle="#00CED188";for(var l=20;l<n.byteLength;l+=o){var u=a.getFloat32(l,!0),c=a.getFloat32(l+4,!0),h=a.getFloat32(l+8,!0),d=a.getFloat32(l+12,!0),f=a.getUint8(l+16),m=a.getUint8(l+17),p=a.getUint8(l+18);e.strokeRect(u,c,h,d);var _=c;f>0&&(_-=33,t.drawText(e,this.MASK_TEXTS[f],u,_)),m>0&&(_-=33,t.drawText(e,this.GENDER_TEXTS[m],u,_)),p>0&&(_-=33,t.drawText(e,this.NATION_TEXTS[p],u,_))}e.restore()}},{key:"drawText",value:function(t,e,n,i){t.fillStyle="rgba(0, 206, 209, 0.75)",t.fillRect(n,i,140,30),t.fillStyle="rgb(0, 0, 0)",t.fillText(e,n+70,i+25)}}]),t}();dt.GENDER_TEXTS=["未 知","男","女"],dt.MASK_TEXTS=["未 知","不戴口罩","戴 口 罩"],dt.NATION_TEXTS=["未 知","汉 族","维 族","少数民族"];var ft=function(){function t(){a(this,t)}return l(t,null,[{key:"render",value:function(t,e,n,i){var r=new DataView(e),a=r.getUint32(16,!0),s=(e.byteLength-20)/a;t.save(),t.scale(n,i),t.font="bold 24px Microsoft YaHei",t.textAlign="center",t.strokeStyle="#F0E68C88";for(var o=20;o<e.byteLength;o+=s){var l=r.getFloat32(o,!0),u=r.getFloat32(o+4,!0),c=r.getFloat32(o+8,!0),h=r.getFloat32(o+12,!0),d=r.getUint8(o+16),f=r.getUint8(o+17),m=r.getUint8(o+18);t.strokeRect(l,u,c,h),l+=c+5;var p=u;d>0&&(p+=33,this.drawText(t,this.COLOR_TEXTS[d],l,p)),f>0&&(p+=33,this.drawText(t,this.DIRECT_TEXTS[f],l,p)),m>0&&(p+=33,this.drawText(t,this.TYPE_TEXTS[m],l,p))}t.restore()}},{key:"drawText",value:function(t,e,n,i){t.fillStyle="rgba(240, 230, 140, 0.75)",t.fillRect(n,i,140,30),t.fillStyle="rgb(0, 0, 0)",t.fillText(e,n+70,i+25)}}]),t}();function mt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}ft.COLOR_TEXTS=["黑 色","蓝 色","棕 色","灰 色","绿 色","橘 色","粉 色","紫 色","红 色","白 色","黄 色","银 色"],ft.DIRECT_TEXTS=["后","右 后","右","右 前","前","左 前","左","左 后","未 知"],ft.TYPE_TEXTS=["轿 车","校 车","越 野 车","商 务 车","货 车","皮 卡","大 卡 车","小 卡 车","大 巴 士","小 巴 士","摩 托 车","三 轮 车","电 动 车","其它类型"];var pt=function(){function t(){a(this,t)}return l(t,[{key:"filter",value:function(t,e,n){return!0}},{key:"getDuration",value:function(t){return null}},{key:"render",value:function(t,e,n,i,r){return!1}}]),t}(),_t=function(t){c(n,t);var e=mt(n);function n(){var t;return a(this,n),(t=e.call(this)).handler=n.DEFAULT_HANDLER,t}return l(n,[{key:"render",value:function(t,e,i){null!=this.canvas&&null!==this.ctx&&(this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.handler.render(t,this.ctx,e,this.x1080pFactor,this.y1080pFactor)||(t===n.FACE_TRACK?ct.render(this.ctx,e,this.x1080pFactor,this.y1080pFactor):t===n.FACE_RECT||t===n.BODY_RECT?lt.render(this.ctx,e,this.x1080pFactor,this.y1080pFactor,this.filter):t===n.BODY_POINTS?ut.render(this.ctx,e,this.x1080pFactor,this.y1080pFactor,this.filter):t===n.POC_BODY_ATTR?ht.render(this.ctx,e,this.x1080pFactor,this.y1080pFactor):t===n.POC_FACE_ATTR?dt.render(this.ctx,e,this.x1080pFactor,this.y1080pFactor):t===n.POC_VEHICLE_ATTR&&ft.render(this.ctx,e,this.x1080pFactor,this.y1080pFactor)))}},{key:"setHandler",value:function(t){this.handler=null!==t?t:n.DEFAULT_HANDLER}}]),n}($);_t.FACE_TRACK=200,_t.FACE_RECT=1e4,_t.BODY_RECT=10001,_t.BODY_POINTS=10005,_t.POC_BODY_ATTR=10009,_t.POC_FACE_ATTR=10010,_t.POC_VEHICLE_ATTR=10011,_t.DEFAULT_HANDLER=new pt;var gt,vt,yt,bt,wt=function(){function t(){a(this,t)}return l(t,null,[{key:"closeWebsocket",value:function(t){null!==t&&(t.onopen=null,t.onclose=null,t.onerror=null,t.onmessage=null,t.close())}},{key:"createWebsocket",value:function(e,n){if(n&&n.length>6)return 0===n.indexOf("ws://")||0===n.indexOf("wss://")?new WebSocket(n):new WebSocket("ws://".concat(n,":").concat(e));var i=t.ipSeed%36+1;return t.ipSeed+=1,new WebSocket("ws://127.0.0.".concat(i,":").concat(e))}},{key:"isSupportWebGL",value:function(){if(null===t.hasGL){var e=document.createElement("canvas"),n=e.getContext("webgl")||e.getContext("experimental-webgl");t.hasGL=null!==n}return t.hasGL}},{key:"stringToUnix",value:function(e){return!e||e.length<19?0:Math.floor(new Date(t.stringToDate(e)).getTime()/1e3)}},{key:"stringToDate",value:function(t){return" "===t.charAt(10)&&(t=t.substr(0,10)+"T"+t.substr(11,t.length-10)),new Date(t)}}]),t}();function xt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}wt.hasGL=null,wt.ipSeed=0,function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.YUV=1]="YUV",t[t.YUV420=2]="YUV420",t[t.JPEG=3]="JPEG",t[t.PCM=4]="PCM"}(gt||(gt={})),function(t){t[t.YUV=0]="YUV",t[t.JPEG=1]="JPEG"}(vt||(vt={})),function(t){t[t.AUTO=0]="AUTO",t[t.REALTIME=1]="REALTIME",t[t.SMOOTH=2]="SMOOTH"}(yt||(yt={})),function(t){t[t.DEFAULT_CHANNEL=0]="DEFAULT_CHANNEL",t[t.LIVE_CHANNEL=1]="LIVE_CHANNEL",t[t.VOD_CHANNEL=2]="VOD_CHANNEL",t[t.FILE_CHANNEL=3]="FILE_CHANNEL"}(bt||(bt={}));var Mt,St,Lt,kt=function(){function t(){a(this,t),this.pingBuf=new ArrayBuffer(0),this.onCommand=function(){return 1},this.onFrame=function(){return 1},this.onConnected=function(){return 1},this.onDisconnected=function(){return 1},this.format=null,this.viewport=null,this.enableFilterLoss=null,this.websocket=null,this.proxyIp=null}return l(t,[{key:"getWebsocket",value:function(){return this.websocket}},{key:"init",value:function(t,e,n){this.proxyIp=n,this.close(),this.initChannel(t,e)}},{key:"close",value:function(){wt.closeWebsocket(this.websocket),this.websocket=null}},{key:"hasChannel",value:function(){return null!==this.websocket}},{key:"setFormat",value:function(e){this.format=e,this.sendCommand(t.CMD_SET_FORMAT,{format:this.formatString(e)})}},{key:"setViewport",value:function(e,n){this.viewport={width:e,height:n},this.sendCommand(t.CMD_SET_VIEWPORT,{width:e,height:n})}},{key:"setFilterLoss",value:function(e){this.enableFilterLoss=e,this.sendCommand(t.CMD_SET_FILTER_LOSS,{enable:e})}},{key:"snapshot",value:function(e){return this.sendCommand(t.CMD_REQ_SNAPSHOT,{time:e})}},{key:"setVolume",value:function(e){return this.sendCommand(t.CMD_SET_VOLUME,{volume:e})}},{key:"ping",value:function(){null!==this.websocket&&this.websocket.readyState===WebSocket.OPEN&&this.websocket.send(this.pingBuf)}},{key:"startRecord",value:function(e,n){return this.sendCommand(t.CMD_START_RECORD,{duration:e,path:n})}},{key:"stopRecord",value:function(){return this.sendCommand(t.CMD_STOP_RECORD,{})}},{key:"switchAudio",value:function(e){return this.sendCommand(t.CMD_SWITCH_AUDIO,{on:e,background:!0})}},{key:"switchTalk",value:function(e){return this.sendCommand(t.CMD_SWITCH_TALK,{on:e})}},{key:"setMode",value:function(e){return this.sendCommand(t.CMD_SET_STREAM_MODE,{mode:e})}},{key:"setDelay",value:function(e){return this.sendCommand(t.CMD_SET_STREAM_DELAY,{delay:e})}},{key:"switchUrl",value:function(e,n,i){return void 0===i&&(i=!1),this.sendCommand(t.CMD_SWITCH_URL,{url1:e,url2:n,soft:i})}},{key:"switchIndex",value:function(e){return this.sendCommand(t.CMD_SWITCH_INDEX,{index:e})}},{key:"ptzControl",value:function(e,n){return this.sendCommand(t.CMD_PTZ_CONTROL,{ctl:e,value:n})}},{key:"ptzControl3D",value:function(e,n,i,r,a){return this.sendCommand(t.CMD_PTZ_CONTROL_3D,{direct:e,x:n,y:i,w:r,h:a})}},{key:"playRecord",value:function(e,n,i,r){return this.sendCommand(t.CMD_PLAY_RECORD,{startTime:e,endTime:n,type:i,direction:r})}},{key:"pause",value:function(){return this.sendCommand(t.CMD_PAUSE_STREAM,{})}},{key:"resume",value:function(e){return this.sendCommand(t.CMD_RESUME_STREAM,{direction:e})}},{key:"stop",value:function(){return this.sendCommand(t.CMD_STOP_STREAM,{})}},{key:"setSpeed",value:function(e){return this.sendCommand(t.CMD_SET_SPEED,{speed:e})}},{key:"changeDirection",value:function(e){return this.sendCommand(t.CMD_CHANGE_DIRECTION,{direction:e})}},{key:"queryRecords",value:function(e,n){return this.sendCommand(t.CMD_QUERY_RECORD,{startTime:e,endTime:n})}},{key:"sendCommand",value:function(t,e){if(null!==this.websocket&&this.websocket.readyState===WebSocket.OPEN){var n=JSON.stringify(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xt(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({cmd:t},e));return this.websocket.send(n),!0}return!1}},{key:"sendRaw",value:function(t){return null!==this.websocket&&this.websocket.readyState===WebSocket.OPEN&&(this.websocket.send(t),!0)}},{key:"formatString",value:function(t){var e="";return t===vt.YUV?e="yuv420":t===vt.JPEG&&(e="jpeg"),e}},{key:"initChannel",value:function(e,n){var i=this;this.websocket=wt.createWebsocket(e,this.proxyIp),this.websocket.binaryType="arraybuffer",this.websocket.onopen=function(){var e="";bt.DEFAULT_CHANNEL===n?e="default":bt.LIVE_CHANNEL===n?e="live":bt.VOD_CHANNEL===n?e="vod":bt.FILE_CHANNEL===n&&(e="file"),i.sendCommand(t.CMD_INIT_CHANNEL,{type:e}),null!==i.format&&i.sendCommand(t.CMD_SET_FORMAT,{format:i.formatString(i.format)}),null!==i.viewport&&i.sendCommand(t.CMD_SET_VIEWPORT,i.viewport),null!==i.enableFilterLoss&&i.sendCommand(t.CMD_SET_FILTER_LOSS,{enable:i.enableFilterLoss}),i.onConnected()},this.websocket.onerror=function(){i.onDisconnected()},this.websocket.onclose=function(){i.onDisconnected()},this.websocket.onmessage=function(e){if("string"==typeof e.data)if("{"===e.data[0]){var n=JSON.parse(e.data);i.onCommand(n.cmd,n)}else if(e.data.length>6&&e.data.substr(0,5)===t.SB_CMD_SPEED){var r=parseInt(e.data.substr(t.SB_CMD_SPEED.length+1),10);i.onCommand(t.SB_CMD_SPEED,{speed:r})}else console.log("unknown command",e.data);else i.handleBinary(e.data)}}},{key:"handleBinary",value:function(t){var e=new Uint32Array(t,0,2);if(1129731417===e[0]){var n=new DataView(t,8,8).getFloat64(0,!0);this.onFrame(gt.YUV,t,n)}else if(3774863615===e[0]&&1179258880===e[1]){var i=new DataView(t,t.byteLength-8,8).getFloat64(0,!0);this.onFrame(gt.JPEG,t,i)}else if(1112954201===e[0]){var r=this.getUint64(new DataView(t,8,8),0);this.onFrame(gt.YUV,t,r)}else if(512==(65535&e[0])){var a=new DataView(t,4,8).getFloat64(0,!0);this.onFrame(gt.YUV420,t,a)}else if(1112359760===e[0]||827147088===e[0]){var s=this.getUint64(new DataView(t,4,8),0);this.onFrame(gt.PCM,t,s)}else 827611205===e[0]||844388421===e[0]||console.log("unknown frame type",e[0])}},{key:"getUint64",value:function(t,e){return t.getUint32(e,!0)+4294967296*(16777215&t.getUint32(e+4,!0))}}]),t}();kt.CMD_INIT_CHANNEL="init_channel",kt.CMD_SET_FORMAT="set_format",kt.CMD_SET_VOLUME="set_volume",kt.CMD_SET_FILTER_LOSS="set_filter_loss",kt.CMD_REQ_SNAPSHOT="req_snapshot",kt.CMD_SET_VIEWPORT="set_viewport",kt.CMD_SWITCH_URL="switch_url",kt.CMD_SWITCH_INDEX="switch_index",kt.CMD_START_RECORD="start_record",kt.CMD_STOP_RECORD="stop_record",kt.CMD_SWITCH_AUDIO="switch_audio",kt.CMD_SWITCH_TALK="switch_talk",kt.CMD_SET_STREAM_MODE="set_mode",kt.CMD_SET_STREAM_DELAY="set_delay",kt.CMD_PTZ_CONTROL="req_ptz_ctl",kt.CMD_PTZ_CONTROL_3D="req_ptz_ctl3D",kt.CMD_OPEN_DEVICE="open_device",kt.CMD_QUERY_RECORD="query_record",kt.CMD_PLAY_RECORD="play_record",kt.CMD_STOP_STREAM="stop_stream",kt.CMD_PAUSE_STREAM="pause_stream",kt.CMD_RESUME_STREAM="resume_stream",kt.CMD_SET_SPEED="set_speed",kt.CMD_PLAY_STATE="play_state",kt.CMD_STREAM_STATE="stream_state",kt.CMD_CHANGE_DIRECTION="change_direction",kt.SB_CMD_SPEED="speed",kt.SB_CMD_STREAM_STATUS="stream_status",kt.SB_CMD_INFO="info",kt.SB_CMD_STREAM_SIZE="stream_size",kt.SB_CMD_RECORD_STATE="record_state",kt.SB_CMD_AUDIO_STATE="audio_state",kt.SB_CMD_RES_SNAPSHOT="res_snapshot",kt.SB_CMD_PLAY_STATE="play_state",function(t){t[t.NONE=0]="NONE",t[t.JPEG_VIDEO_LAYER=1]="JPEG_VIDEO_LAYER",t[t.YUV_VIDEO_LAYER=2]="YUV_VIDEO_LAYER",t[t.FACE_TRACK_LAYER=3]="FACE_TRACK_LAYER",t[t.BODY_POINT_LAYER=4]="BODY_POINT_LAYER",t[t.ACTION_IDENT_LAYER=5]="ACTION_IDENT_LAYER",t[t.FACE_ATTR_LAYER=6]="FACE_ATTR_LAYER",t[t.FACE_RECT_LAYER=7]="FACE_RECT_LAYER",t[t.BODY_RECT_LAYER=8]="BODY_RECT_LAYER",t[t.EXT_LAYER=9]="EXT_LAYER"}(Mt||(Mt={})),function(t){t[t.FACE_SNAP=0]="FACE_SNAP",t[t.FACE_RECOGNITION=1]="FACE_RECOGNITION",t[t.BODY_RECOGNITION=2]="BODY_RECOGNITION",t[t.ACTION_RECOGNITION=3]="ACTION_RECOGNITION",t[t.FACE_COMPARE=4]="FACE_COMPARE"}(St||(St={})),function(t){t[t.FACE_RECT=1e4]="FACE_RECT",t[t.BODY_RECT=10001]="BODY_RECT",t[t.FACE_RECT_ATTR=10002]="FACE_RECT_ATTR",t[t.BODY_RECT_ATTR=10003]="BODY_RECT_ATTR",t[t.ACTION_RECOGNIZE=10004]="ACTION_RECOGNIZE",t[t.BODY_POINTS=10005]="BODY_POINTS",t[t.FACE_SNAP_ATTR=10006]="FACE_SNAP_ATTR",t[t.BODY_SNAP_ATTR=10007]="BODY_SNAP_ATTR",t[t.MOVE_RECOGNIZE=10008]="MOVE_RECOGNIZE",t[t.FACE_COMPARE=10012]="FACE_COMPARE"}(Lt||(Lt={}));var Tt,Dt=function(){function t(e,n){a(this,t),this.exRenderCallback=null,this.box=e,this.jpegLayer=null,this.yuvLayer=null,this.layers={},this.errorElement=null,this.errorTD=null,this.left=0,this.top=0,this.width=0,this.height=0,this.subscribeCallback=n,this.faceSnapQueue=[],this.faceRecognitionQueue=[],this.bodyRecognitionQueue=[],this.actionRecognitionQueue=[],this.imageCache=new it,this.syncs=[],this.trackIdFilters={},this.renderHandler=null,this.isShow=!0}return l(t,[{key:"initLayer",value:function(t){var e=this,n=null,i=null;return Mt.JPEG_VIDEO_LAYER===t?((n=new Q).setAsync(25,(function(t,n,i){e.sync(t,n,i)})),i=new rt(this.box,"vatrender"),this.jpegLayer=i):Mt.YUV_VIDEO_LAYER===t&&((n=new nt).setAsync(25,(function(t,n,i){e.sync(t,n,i)})),i=new rt(this.box,"vatrender"),this.yuvLayer=i),!(null===n||null===i||!i.setupRender(n)||(this.layers[t]=i,i.move(this.left,this.top,this.width,this.height),this.trackIdFilters[t]?n.setFilter(this.trackIdFilters[t]):this.trackIdFilters[Mt.NONE]?n.setFilter(this.trackIdFilters[Mt.NONE]):n.setFilter(null),0))}},{key:"isYuv",value:function(){return null!==this.yuvLayer}},{key:"putExtData2",value:function(t,e,n){var i=this.renderHandler;if(null!==i&&!i.filter(t,n,e))return!1;var r=this.layers[t];if(r)r.putData(t,e,n);else if(this.isShow){var a=new _t,s=st.DEFAULT_DURATION;if(null!==this.renderHandler){var o=this.renderHandler.getDuration(t);null!=o&&(s=o)}if(!(r=this.createExtLayer(s)).setupRender(a))return!1;this.layers[t]=r,r.move(this.left,this.top,this.width,this.height),this.trackIdFilters[t]?a.setFilter(this.trackIdFilters[t]):this.trackIdFilters[0]?a.setFilter(this.trackIdFilters[0]):a.setFilter(null),null!==this.renderHandler&&a.setHandler(this.renderHandler),r.putData(t,e,n)}return!0}},{key:"removeLayer",value:function(t){var e=this.layers[t];if(e){this.layers[t]=null,e.destroy();for(var n=0;n<this.syncs.length;n++)if(this.syncs[n]===e){this.syncs[n]=this.syncs[0],this.syncs.shift();break}}}},{key:"putFrame",value:function(t,e,n){gt.YUV420===t?null!==this.yuvLayer&&this.yuvLayer.putData(2,e,n):gt.YUV===t?null!==this.yuvLayer&&this.yuvLayer.putData(1,e,n):gt.JPEG===t&&null!==this.jpegLayer&&this.jpegLayer.putData(0,e,n)}},{key:"putData",value:function(t){var e=new Uint32Array(t,0,2);if(3774863615===e[0]&&1179258880===e[1]){var n=new DataView(t,t.byteLength-8,8).getFloat64(0,!0);null!==this.jpegLayer&&this.jpegLayer.putData(0,t,n)}else if(512==(65535&e[0]))null!==this.yuvLayer&&this.yuvLayer.putData(2,t,0);else if(1112954201===e[0]){var i=this.getUint64(new DataView(t,8,8),0);null!==this.yuvLayer&&this.yuvLayer.putData(1,t.slice(4),i)}else if(827611205===e[0]){var r=this.getUint64(new DataView(t,12,8),0);if(200===e[1])this.putExtData2(e[1],t.slice(8),r);else if(201===e[1]){var a=this.parseSnap(t.slice(8));a&&this.subscribeCallback(St.FACE_SNAP,a)}}else if(844388421===e[0]){var s=this.getUint64(new DataView(t,8,8),0),o=t.slice(16);if(Lt.FACE_SNAP_ATTR===e[1])this.subscribeCallback(St.FACE_RECOGNITION,this.parseFaceRecognition(o));else if(Lt.BODY_SNAP_ATTR===e[1])this.subscribeCallback(St.BODY_RECOGNITION,this.parseBodyRecognition(o));else if(Lt.FACE_COMPARE===e[1])this.subscribeCallback(St.FACE_COMPARE,this.parseFaceComparison(o));else if(!this.putExtData2(e[1],o,s))return;if(Lt.ACTION_RECOGNIZE===e[1]){var l=this.parseActions(o);l.length>0&&this.putNotifyData(this.actionRecognitionQueue,St.ACTION_RECOGNITION,l,s)}}else console.log(e[0])}},{key:"stopView",value:function(){for(var t in this.isShow=!1,this.layers)if(this.layers.hasOwnProperty(t)){var e=this.layers[t];null!==e&&e.stopView()}}},{key:"restoreView",value:function(){for(var t in this.isShow=!0,this.layers)if(this.layers.hasOwnProperty(t)){var e=this.layers[t];null!==e&&e.restoreView()}}},{key:"move",value:function(t,e,n,i){for(var r in this.left=t,this.top=e,this.width=n,this.height=i,this.layers)if(this.layers.hasOwnProperty(r)){var a=this.layers[r];a&&a.move(t,e,n,i)}}},{key:"getImage",value:function(t,e){return null!==this.yuvLayer?this.yuvLayer.getImage(t,e):null!==this.jpegLayer&&this.jpegLayer.getImage(t,e)}},{key:"showError",value:function(t){null!==t&&""!==t?(this.stopView(),null==this.errorElement&&this.createErrorElement(),this.errorTD&&(this.errorTD.innerText=t)):null!=this.errorElement?(this.box.removeChild(this.errorElement),this.errorElement=null,this.errorTD=null,this.restoreView(),this.reload()):this.restoreView()}},{key:"setTrackIdFilter",value:function(t,e){if(this.trackIdFilters[t]=e,Mt.NONE===t){for(var n in this.layers)if(this.layers.hasOwnProperty(n)){var i=this.layers[n],r=null===i?null:i.getRender();null!==r&&r.setFilter(e)}for(var a in this.trackIdFilters)this.trackIdFilters.hasOwnProperty(a)&&(this.trackIdFilters[a]=e)}else if(this.layers[t]&&this.layers.hasOwnProperty(t)){var s=this.layers[t].getRender();null!==s&&s.setFilter(e)}}},{key:"setExtRenderHandler",value:function(e){for(var n in this.renderHandler=e,this.layers)if(parseInt(n,10)>=t.EXT_COMMAND_BEGIN&&this.layers.hasOwnProperty(n)){var i=this.layers[n],r=null===i?null:i.getRender();null!==r&&r.setHandler(e)}}},{key:"setExtRenderCallback",value:function(t){this.exRenderCallback=t;var e=this.layers[3];if(!e){var n=new _t;if(!(e=this.createExtLayer(40)).setupRender(n))return;this.layers[3]=e,e.move(this.left,this.top,this.width,this.height)}}},{key:"createExtLayer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:st.DEFAULT_DURATION,e=new st(this.box,"vat-exrender",t);return this.syncs.push(e),e.setSync(!0),e}},{key:"createErrorElement",value:function(){this.errorElement=document.createElement("div"),this.errorElement.classList.add("vat-error");var t=document.createElement("table"),e=document.createElement("tr"),n=document.createElement("td");e.appendChild(n),t.appendChild(e),this.errorElement.appendChild(t),this.errorTD=n,this.box.appendChild(this.errorElement)}},{key:"reload",value:function(){this.move(this.left,this.top,this.width,this.height)}},{key:"getUint64",value:function(t,e){return t.getUint32(e,!0)+4294967296*(16777215&t.getUint32(e+4,!0))}},{key:"parseSnap",value:function(t){var e=new DataView(t,0,56),n=e.getFloat32(0,!0),i=this.getUint64(e,4),r=this.getUint64(e,12),a=e.getFloat32(28,!0),s=e.getUint32(32,!0),o=e.getUint32(36,!0),l=e.getUint32(40,!0),u=e.getUint32(44,!0),c=0,h=48;n>=.2&&(c=e.getUint32(48,!0),h+=4);var d=0;n>=.3&&(d=e.getUint32(h,!0),h+=4);var f={id:r,time:i,score:a,x:s,y:o,w:l,h:u,trackId:c,image:this.imageCache.getUrl(t.slice(h)),channel:d,alive:!0};return setTimeout((function(){URL.revokeObjectURL(f.image),f.alive=!1}),6e3),f}},{key:"sync",value:function(t,e,n){if(this.exRenderCallback){var i=this.layers[3];if(i){var r=i.getCtx();r&&this.exRenderCallback(t,r,e,n)}}}},{key:"putNotifyData",value:function(t,e,n,i){t.push({type:e,data:n,time:i}),t.length>15&&(this.subscribeCallback(t[0].type,t[0].data),t.shift())}},{key:"syncNotifyData",value:function(t,e){for(;t.length>0&&(t.length>50||t[0].time<e||0===e);)this.subscribeCallback(t[0].type,t[0].data),t.shift()}},{key:"parseActions",value:function(t){var e=[],n=new DataView(t),i=n.getUint32(16,!0),r=(t.byteLength-20)/i;if(0===r)return[];for(var a=20;a<t.byteLength;a+=r){var s=n.getUint32(a+16,!0);e.push(s)}return e}},{key:"parseBodyRecognition",value:function(t){var e=new DataView(t),n=this.getUint64(e,4),i=e.getUint32(12,!0),r=e.getUint32(16,!0),a={sex:e.getUint8(24),age:e.getUint8(25),hairStyle:e.getUint8(26),mask:e.getUint8(27),glass:e.getUint8(28),hat:e.getUint8(29),scarf:e.getUint8(30),direct:e.getUint8(31),upperColor:e.getUint8(32),bottomColor:e.getUint8(33),upperStyle:e.getUint8(34),bottomStyle:e.getUint8(35),phone:e.getUint8(36),umbrella:e.getUint8(37),handbag:e.getUint8(38),backpack:e.getUint8(39)};return{time:n,image:this.imageCache.getUrl(t.slice(t.byteLength-r)),fullImage:"",channel:i,attr:a}}},{key:"parseFaceRecognition",value:function(t){var e=new DataView(t),n=e.getFloat32(0,!0),i=this.getUint64(e,4),r=e.getUint32(12,!0),a=e.getUint32(16,!0),s=e.getUint32(20,!0),o=e.getUint8(24),l=e.getUint8(25),u=e.getUint8(26),c=e.getUint8(27),h=0,d=0;return n>=.3&&(h=e.getUint32(32,!0),d=e.getFloat32(52,!0)),{time:i,image:this.imageCache.getUrl(t.slice(t.byteLength-a-s)),fullImage:"",channel:r,attr:{age:o,sex:l,mask:u,glass:c},imageId:h,score:d}}},{key:"parseFaceComparison",value:function(t){var e=new DataView(t),n=e.getUint32(4,!0),i=this.getUint64(e,8),r=e.getUint32(16,!0);return{channel:n,snapTime:i,attr:{age:e.getUint8(20),sex:e.getUint8(21),mask:e.getUint8(22),glass:e.getUint8(23)},snapScore:e.getFloat32(24,!0),compareScore:e.getFloat32(28,!0),faceGroupId:e.getUint32(32,!0),faceGroupType:e.getUint32(36,!0),faceId:this.getUint64(e,40),compareTime:this.getUint64(e,48),faceSnapId:this.getUint64(e,56),snapImage:this.imageCache.getUrl(t.slice(68,68+r)),faceImage:this.imageCache.getUrl(t.slice(68+r))}}}],[{key:"chooseLayerType",value:function(t){if(!wt.isSupportWebGL())return Mt.JPEG_VIDEO_LAYER;var e=Mt.YUV_VIDEO_LAYER;return navigator.userAgent.indexOf("MSIE")>-1&&navigator.userAgent.indexOf("compatible")>-1&&(e=Mt.JPEG_VIDEO_LAYER),(window.ActiveXObject||"ActiveXObject"in window)&&(e=Mt.JPEG_VIDEO_LAYER),t>=16&&(e=Mt.JPEG_VIDEO_LAYER),e}}]),t}();Dt.EXT_COMMAND_BEGIN=1e4,function(t){t[t.OK=0]="OK",t[t.UNKNOWN_ERROR=-1]="UNKNOWN_ERROR",t[t.INVALID_STATE=-2]="INVALID_STATE",t[t.NOT_LOGIN=-3]="NOT_LOGIN",t[t.INVALID_PARAM=-4]="INVALID_PARAM",t[t.NETWORK_ERROR=-5]="NETWORK_ERROR",t[t.WINDOW_ID_CONFLICT=-6]="WINDOW_ID_CONFLICT",t[t.NO_MORE_FREE_WINDOW=-7]="NO_MORE_FREE_WINDOW",t[t.NO_TASK=-8]="NO_TASK",t[t.UNSUPPORT_OPERATION=-9]="UNSUPPORT_OPERATION",t[t.CWALKSDK_ERR_NOT_SUPPORT=-20001]="CWALKSDK_ERR_NOT_SUPPORT",t[t.CWALKSDK_ERR_NOT_IMPL=-20002]="CWALKSDK_ERR_NOT_IMPL",t[t.CWALKSDK_ERR_NOT_INIT=-20003]="CWALKSDK_ERR_NOT_INIT",t[t.CWALKSDK_ERR_NOT_ENOUGH_MEM=-20005]="CWALKSDK_ERR_NOT_ENOUGH_MEM",t[t.CWALKSDK_ERR_NOT_ENOUGH_ID=-20004]="CWALKSDK_ERR_NOT_ENOUGH_ID",t[t.CWALKSDK_ERR_INVALID_ID=-20006]="CWALKSDK_ERR_INVALID_ID",t[t.CWALKSDK_ERR_INVALID_NAME=-20007]="CWALKSDK_ERR_INVALID_NAME",t[t.CWALKSDK_ERR_INVALID_PARARM=-20008]="CWALKSDK_ERR_INVALID_PARARM",t[t.CWALKSDK_FILE_NOFIND=-20009]="CWALKSDK_FILE_NOFIND",t[t.CWALKSDK_ISFINDING=-20010]="CWALKSDK_ISFINDING",t[t.CWALKSDK_NOMOREFILE=-20011]="CWALKSDK_NOMOREFILE",t[t.CWALKSDK_FILE_EXCEPTION=-20012]="CWALKSDK_FILE_EXCEPTION",t[t.CWALKSDK_ERR_URLPATH=-20013]="CWALKSDK_ERR_URLPATH",t[t.CWALKSDK_ERR_EXISTKEY=-20014]="CWALKSDK_ERR_EXISTKEY",t[t.CWALKSDK_ERR_NO_OBJECT=-20015]="CWALKSDK_ERR_NO_OBJECT",t[t.CWALKSDK_ERR_OSD_SETTEXT=-20016]="CWALKSDK_ERR_OSD_SETTEXT",t[t.CWALKSDK_ERR_OSD_TYPE=-20017]="CWALKSDK_ERR_OSD_TYPE",t[t.CWALKSDK_ERR_OSD_SHOW=-20018]="CWALKSDK_ERR_OSD_SHOW",t[t.CWALKSDK_ERR_DEFAULTPORT=-20019]="CWALKSDK_ERR_DEFAULTPORT",t[t.CWALKSDK_ERROR_LOGIN=-20020]="CWALKSDK_ERROR_LOGIN",t[t.CWALKSDK_NOMOREDATA=-20021]="CWALKSDK_NOMOREDATA",t[t.CWALKSDK_ERR_SET_PASSWORD=-20022]="CWALKSDK_ERR_SET_PASSWORD",t[t.CWALKSDK_ERR_NO_KEY=-20023]="CWALKSDK_ERR_NO_KEY",t[t.CWALKSDK_ERR_NO_VALUE=-20024]="CWALKSDK_ERR_NO_VALUE",t[t.CWALKSDK_ERR_FUNCTION_NOT_IMPLEMENTED=-20025]="CWALKSDK_ERR_FUNCTION_NOT_IMPLEMENTED",t[t.CWALKSDK_ERR_CREATE_HANDLE=-20026]="CWALKSDK_ERR_CREATE_HANDLE",t[t.CWALKSDK_ERR_EVENT_RESUBSCRIBE=-20027]="CWALKSDK_ERR_EVENT_RESUBSCRIBE",t[t.CWALKSDK_ERR_END_OF_FILE=-20028]="CWALKSDK_ERR_END_OF_FILE",t[t.CWALKSDK_ERR_NO_HANDLE=-20029]="CWALKSDK_ERR_NO_HANDLE",t[t.CWALKSDK_ERR_NULL_OBJECT=-20030]="CWALKSDK_ERR_NULL_OBJECT",t[t.CWALKSDK_ERR_FIRST_NOT_IFRAME=-20031]="CWALKSDK_ERR_FIRST_NOT_IFRAME",t[t.CWALKSDK_ERR_UNSUPPORTED_PLATFORM=-20032]="CWALKSDK_ERR_UNSUPPORTED_PLATFORM",t[t.CWALKSDK_ERR_BUFFER_TOO_SMALL=-20033]="CWALKSDK_ERR_BUFFER_TOO_SMALL",t[t.CWALKSDK_ERR_UNKNOWN_SERVICE=-20034]="CWALKSDK_ERR_UNKNOWN_SERVICE",t[t.CWALKSDK_ERR_NO_PRIVILEGE=-20035]="CWALKSDK_ERR_NO_PRIVILEGE",t[t.CWALKSDK_ERR_VIEW_NUM=-20036]="CWALKSDK_ERR_VIEW_NUM",t[t.CWALKSDK_ERR_DISK_FULL=-20037]="CWALKSDK_ERR_DISK_FULL",t[t.CWALKSDK_ERR_INVALID_MEM=-20038]="CWALKSDK_ERR_INVALID_MEM",t[t.CWALKSDK_ERR_ENCODER_OPEN=-20039]="CWALKSDK_ERR_ENCODER_OPEN",t[t.CWALKSDK_ERR_SP_QUERY_SEGMENT=-20040]="CWALKSDK_ERR_SP_QUERY_SEGMENT",t[t.CWALKSDK_ERR_NO_PVM_ADD=-20041]="CWALKSDK_ERR_NO_PVM_ADD",t[t.CWALKSDK_ERR_ES_UNAVAILABLE=-20042]="CWALKSDK_ERR_ES_UNAVAILABLE",t[t.CWALKSDK_ERR_AVCF_ERROR=-20043]="CWALKSDK_ERR_AVCF_ERROR",t[t.CWALKSDK_ERR_PLAY_HD=-201001]="CWALKSDK_ERR_PLAY_HD",t[t.CWALKSDK_ERR_PLAY_NEED_SLICES=-201002]="CWALKSDK_ERR_PLAY_NEED_SLICES",t[t.CWALKSDK_ERR_PLAY_FULL_SILCES=-201003]="CWALKSDK_ERR_PLAY_FULL_SILCES",t[t.CWALKSDK_ERR_PLAY_INPUT_SLICES_CB=-20004]="CWALKSDK_ERR_PLAY_INPUT_SLICES_CB",t[t.CWALKSDK_ERR_PLAY_INVALID_CMD=-201005]="CWALKSDK_ERR_PLAY_INVALID_CMD",t[t.CWALKSDK_ERR_PLAY_INVALID_CMD_MATCH=-20007]="CWALKSDK_ERR_PLAY_INVALID_CMD_MATCH",t[t.CWALKSDK_ERR_PLAY_INVALID_SPEED=-20006]="CWALKSDK_ERR_PLAY_INVALID_SPEED",t[t.CWALKSDK_ERR_PLAY_INVALID_CB_MODE=-20007]="CWALKSDK_ERR_PLAY_INVALID_CB_MODE",t[t.CWALKSDK_ERR_PLAY_IS_RELEASED=-201008]="CWALKSDK_ERR_PLAY_IS_RELEASED",t[t.CWALKSDK_ERR_PLAY_THREAD_STOP=-201009]="CWALKSDK_ERR_PLAY_THREAD_STOP",t[t.CWALKSDK_ERR_PLAY_REOPEN=-201010]="CWALKSDK_ERR_PLAY_REOPEN",t[t.CWALKSDK_ERR_PLAY_OPEN_AUDIO=-201011]="CWALKSDK_ERR_PLAY_OPEN_AUDIO",t[t.CWALKSDK_ERR_PLAY_START_AUDIO=-201012]="CWALKSDK_ERR_PLAY_START_AUDIO",t[t.CWALKSDK_ERR_PLAY_STOP_AUDIO=-201013]="CWALKSDK_ERR_PLAY_STOP_AUDIO",t[t.CWALKSDK_ERR_PLAY_VIDEO_INFO=-201014]="CWALKSDK_ERR_PLAY_VIDEO_INFO",t[t.CWALKSDK_WARNING_PLAY_MAX_LOCALCACH=-20015]="CWALKSDK_WARNING_PLAY_MAX_LOCALCACH",t[t.CWALKSDK_WARNING_PLAY_MIN_LOCALCACH=-20016]="CWALKSDK_WARNING_PLAY_MIN_LOCALCACH",t[t.CWALKSDK_ERR_PLAY_PAUSE_CANNOT_SPEED=-20017]="CWALKSDK_ERR_PLAY_PAUSE_CANNOT_SPEED",t[t.CWALKSDK_ERR_LOG_UNKNOWTYPE=-202001]="CWALKSDK_ERR_LOG_UNKNOWTYPE",t[t.CWALKSDK_ERR_LOG_DATA=-202002]="CWALKSDK_ERR_LOG_DATA",t[t.DCS_ERR_SS_NOT_AVAILABLE=-101001]="DCS_ERR_SS_NOT_AVAILABLE",t[t.DCS_ERR_FS_NOT_AVAILABLE=-101002]="DCS_ERR_FS_NOT_AVAILABLE",t[t.DCS_ERR_PAU_NOT_AVAILABLE=-101003]="DCS_ERR_PAU_NOT_AVAILABLE",t[t.DCS_ERR_DEVICE_NOT_ATTACHE_PAU=-101004]="DCS_ERR_DEVICE_NOT_ATTACHE_PAU",t[t.DCS_ERR_USER_STREAM_OVERRAGE=-101005]="DCS_ERR_USER_STREAM_OVERRAGE",t[t.DCS_ERR_PLAT_STREAM_OVERRAGE=-101006]="DCS_ERR_PLAT_STREAM_OVERRAGE",t[t.DCS_ERR_INVALID_JOSN=-101007]="DCS_ERR_INVALID_JOSN",t[t.DCS_ERR_PAU_SEND_FAILED=-101008]="DCS_ERR_PAU_SEND_FAILED",t[t.DCS_ERR_MONITOR_LOCKED=-101030]="DCS_ERR_MONITOR_LOCKED",t[t.DCS_ERR_MONITOR_CANNOT_CONTROL=-101031]="DCS_ERR_MONITOR_CANNOT_CONTROL",t[t.DCS_ERR_SESSION_NOT_FOUND=-102001]="DCS_ERR_SESSION_NOT_FOUND",t[t.DCS_ERR_FS_STREAM_BROKEN=-102002]="DCS_ERR_FS_STREAM_BROKEN",t[t.DCS_ERR_NOT_LOCAL_MONITOR=-102003]="DCS_ERR_NOT_LOCAL_MONITOR",t[t.DCS_INF_MONITOR_LOCKED=-102004]="DCS_INF_MONITOR_LOCKED",t[t.DCS_ERR_CHANNLE_DISABLED=-103001]="DCS_ERR_CHANNLE_DISABLED",t[t.DCS_ERR_PAU_DISABLED=-103002]="DCS_ERR_PAU_DISABLED",t[t.DCS_ERR_LOG_NOT_AVAILABLE=-103003]="DCS_ERR_LOG_NOT_AVAILABLE",t[t.DCS_ERR_PAU_NOT_OPEN=-103004]="DCS_ERR_PAU_NOT_OPEN",t[t.DCS_ERR_DCS_NOT_OPEN=-103005]="DCS_ERR_DCS_NOT_OPEN",t[t.DCS_ERR_LOCALDB_UNINIT=-103006]="DCS_ERR_LOCALDB_UNINIT",t[t.DCS_ERR_LOCALDB_EXCEPTION=-103007]="DCS_ERR_LOCALDB_EXCEPTION",t[t.DCS_ERR_CHANNEL_RECORD_EXITS=-103008]="DCS_ERR_CHANNEL_RECORD_EXITS",t[t.DCS_ERR_DCS_NOT_AVAILABLE=-103009]="DCS_ERR_DCS_NOT_AVAILABLE",t[t.DCS_ERR_AUDIOTALK_IN_USE=-103010]="DCS_ERR_AUDIOTALK_IN_USE",t[t.DCS_ERR_DEVICE_NOT_EXIST=-103011]="DCS_ERR_DEVICE_NOT_EXIST",t[t.DCS_ERR_REQUEST_PATH_EXISTED=-103012]="DCS_ERR_REQUEST_PATH_EXISTED",t[t.DCS_ERR_ROFS3S_NOT_AVAILABLE=-103013]="DCS_ERR_ROFS3S_NOT_AVAILABLE",t[t.DCS_ERR_PAU_DISCONNECT=-103014]="DCS_ERR_PAU_DISCONNECT",t[t.DCS_ERR_RESOURCESHIELD=-103015]="DCS_ERR_RESOURCESHIELD",t[t.DCS_ERR_SCAN_EXIST=-103016]="DCS_ERR_SCAN_EXIST",t[t.DCS_ERR_MACRO_EXIST=-103017]="DCS_ERR_MACRO_EXIST",t[t.DCS_ERR_ORDER_CALL=-103018]="DCS_ERR_ORDER_CALL",t[t.DCS_ERR_USER_DISABLED=-103019]="DCS_ERR_USER_DISABLED",t[t.DCS_ERR_RECORD_REUSE=-103020]="DCS_ERR_RECORD_REUSE"}(Tt||(Tt={}));var Ct=function(){function t(e){a(this,t),this.box=e,this.isShow=!1,this.websocket=null,this.panel=null,this.hide()}return l(t,[{key:"setWebsocket",value:function(t){this.websocket=t}},{key:"ptzControl",value:function(t,e){if(null===this.websocket)return Tt.INVALID_STATE;var n=JSON.stringify({cmd:"req_ptz_ctl",ctl:t,value:e});return this.websocket&&this.websocket.send(n),Tt.OK}},{key:"ptzControl3D",value:function(t,e,n,i,r){if(null===this.websocket)return Tt.INVALID_STATE;if(t<0||e<0||n<0||i<0||r<0)return Tt.INVALID_PARAM;if(e>1||n>1||i>1||r>1)return Tt.INVALID_PARAM;var a=JSON.stringify({cmd:"req_ptz_ctl3D",direct:t,x:e,y:n,w:i,h:r});return this.websocket&&this.websocket.send(a),Tt.OK}},{key:"toggle",value:function(){this.isShow?this.hide():this.show()}},{key:"show",value:function(){this.isShow=!0,this.panel||this.initElement(),this.panel&&(this.panel.style.display="block")}},{key:"hide",value:function(){this.isShow=!1,this.panel&&(this.panel.style.display="none")}},{key:"initElement",value:function(){this.panel=document.createElement("div"),this.panel.classList.add("vat-ptz-panel"),this.box.appendChild(this.panel)}}]),t}(),Et=function(){function t(){a(this,t),this.audioCtx=null,this.gainNode=null,this.timerId=0,this.startTime=0}return l(t,[{key:"open",value:function(){this.close();var t=window,e=t.AudioContext||t.webkitAudioContext;return!!e&&(this.audioCtx=new e,!!this.audioCtx&&(this.gainNode=this.audioCtx.createGain(),this.gainNode.gain.value=1,this.gainNode.connect(this.audioCtx.destination),this.startTime=this.audioCtx.currentTime,this.audioCtx.resume(),!0))}},{key:"close",value:function(){0!==this.timerId&&(clearInterval(this.timerId),this.timerId=0),null!==this.audioCtx&&this.audioCtx.close(),this.audioCtx=null,this.gainNode=null,this.startTime=0}},{key:"play",value:function(t){if(null!==this.audioCtx&&null!==this.gainNode){for(var e=new DataView(t,12),n=(t.byteLength-12)/2,i=this.audioCtx.createBufferSource(),r=this.audioCtx.createBuffer(1,n,8e3),a=r.getChannelData(0),s=0;s<n;s++)a[s]=e.getInt16(2*s,!0)/32768;i.buffer=r,i.connect(this.gainNode),i.start(0),this.startTime+=r.duration}}},{key:"flush",value:function(){}}]),t}();function Ot(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Yt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){o=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function Yt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var At,Pt=function t(){a(this,t)};Pt.SNAPSHOT=1,Pt.ROI_RECT=2,Pt.ROI_POLYGON=4,Pt.MAXIMIZE=8,Pt.ZOOM=16,Pt.VOLUME=32,Pt.STOP=64,Pt.TALK=128,Pt.RECORD=256,Pt.ALL=65535,Pt.DEFAULT=Pt.SNAPSHOT|Pt.ROI_RECT|Pt.ROI_POLYGON|Pt.MAXIMIZE|Pt.STOP,function(t){t[t.CANVAS=0]="CANVAS",t[t.IMAGE=1]="IMAGE",t[t.YUV=2]="YUV"}(At||(At={}));var Rt=function(){function t(e,n,i){a(this,t),this.wsChannel=new kt,this.pcmPlayer=new Et,this.id="",this.originIndex=e,this.index=e,this.span=1,this.config=i,this.httpPort=0,this.wsPort=0,this.dragLayer=null,this.status=0,this.width=0,this.height=0,this.urls=[],this.name="",this.isShowMain=!1,this.mainUrlIndex=0,this.toolBar=null,this.isDrawingROI=!1,this.drivingClosed=!0,this.roiLayer=null,this.streamWidth=0,this.streamHeight=0,this.recordIcon=null,this.isAudio=!1,this.isTalk=!1,this.toolButtons={},this.hasAudioInput=!1,this.hasAudioOutput=!1,this.delay=0,this.volume=100,this.heartTimer=0,this.streamMode=yt.AUTO,this.extStream=new K,this.element=document.createElement("div"),this.element.setAttribute("class","vatwin"),this.element.setAttribute("windex",""+e),n.appendChild(this.element),this.ptzPanel=new Ct(this.element);var r=Dt.chooseLayerType(e);r===Mt.YUV_VIDEO_LAYER?this.renderType=At.YUV:this.renderType=At.CANVAS,this.config.proxy&&this.config.proxy.length>6&&(r=Mt.JPEG_VIDEO_LAYER,this.renderType=At.CANVAS),this.wsChannel.setFormat(At.YUV===this.renderType?vt.YUV:vt.JPEG);var s=this;this.layerManager=new Dt(this.element,(function(t,e){s.config.onExtData(s.id,t,e)})),this.layerManager.initLayer(r),this.titleBar=new H(this.element,this.config.titleBar),this.titleBar.clear(),this.initToolbar(),this.config.dragWindow&&this.createDragLayer(),this.caculateLayerShow()}return l(t,[{key:"handleChannelOpened",value:function(t,e){this.closeChannel(!1),this.initChannel(t,e)}},{key:"openExtStream",value:function(t,e,n){this.extStream.setUrl(t,e,n)}},{key:"closeExtStream",value:function(){this.extStream.setUrl("","","")}},{key:"ptzControl",value:function(t,e){return this.ptzPanel.ptzControl(t,e)}},{key:"ptzControl3D",value:function(t,e,n,i,r){return this.ptzPanel.ptzControl3D(t,e,n,i,r)}},{key:"openLiveStream",value:function(t){return null!==t.subUrl&&""!==t.subUrl&&void 0!==t.subUrl||(t.subUrl=t.url),this.id=t.id||"",this.name=t.name||"",this.titleBar.setName(this.name),(t.extUrl||t.faceSnapUrl||t.faceRectUrl)&&this.extStream.setUrl(t.faceRectUrl,t.faceSnapUrl,t.extUrl),2===this.urls.length&&this.urls[this.mainUrlIndex]===t.url&&this.urls[0===this.mainUrlIndex?1:0]===t.subUrl&&this.hasChannel()||(this.stopROI(),this.setROI([]),2===this.urls.length&&(this.urls[0]===t.url&&this.urls[1]===t.subUrl||this.urls[1]===t.url&&this.urls[0]===t.subUrl)||!0!==t.soft&&this.layerManager.stopView(),this.isShowMain?(this.mainUrlIndex=0,this.urls=[t.url,t.subUrl||""]):(this.mainUrlIndex=1,this.urls=[t.subUrl||"",t.url]),this.hasChannel()?this.wsChannel.switchUrl(this.urls[0],this.urls[1],t.soft):this.initChannel(this.wsPort,this.httpPort)),Tt.OK}},{key:"restoreStream",value:function(){2===this.urls.length&&(this.isShowMain&&1===this.mainUrlIndex?(this.urls.reverse(),this.mainUrlIndex=0):this.isShowMain||0!==this.mainUrlIndex||(this.urls.reverse(),this.mainUrlIndex=1),this.initChannel(this.wsPort,this.httpPort))}},{key:"closeStream",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!1,n=this.id;this.hasChannel()&&(e=!0,this.drivingClosed=t),t&&(this.delay=0,this.streamMode=yt.AUTO,this.id=""),this.closeChannel(this.drivingClosed),this.extStream.stop(),e&&this.config.onClose(this.index,n)}},{key:"showMain",value:function(t){if(this.hasChannel()&&this.isShowMain!==t&&this.urls.length>1){var e=t?this.mainUrlIndex:0===this.mainUrlIndex?1:0;this.wsChannel.switchIndex(e)}this.isShowMain=t}},{key:"fillWindow",value:function(t){}},{key:"hasChannel",value:function(){return this.wsChannel.hasChannel()}},{key:"isDrivingClosed",value:function(){return this.drivingClosed}},{key:"adjustSize",value:function(t,e,n,i,r){r<=0&&(r=this.span),this.width=t*r,this.height=e*r,r>1&&(this.width+=(r-1)*i,this.height+=(r-1)*n),this.element.style.width="".concat(this.width,"px"),this.element.style.height="".concat(this.height,"px"),this.updateChildSize(),this.changeViewport()}},{key:"setSpan",value:function(t){this.span=t}},{key:"setIndex",value:function(t){this.index=t}},{key:"setROI",value:function(t){null===this.roiLayer&&(this.roiLayer=this.createROILayer()),null!==this.roiLayer&&this.roiLayer.setROI(t)}},{key:"getImage",value:function(){var t=document.createElement("canvas");return this.layerManager.getImage(t,!0),t.toDataURL("image/jpeg")}},{key:"snapshot",value:function(){this.reqSnapshot()}},{key:"startROI",value:function(t,e){return(t===z.DRAW_RECT||t===z.DRAW_POLYGON)&&(null==this.roiLayer?this.createROILayer():this.roiLayer.stop(),this.roiLayer&&this.roiLayer.start(t,e),this.caculateLayerShow(),!0)}},{key:"stopROI",value:function(){null!=this.roiLayer&&this.roiLayer.stop(),this.caculateLayerShow()}},{key:"saveROI",value:function(){return null!=this.roiLayer&&this.roiLayer.saveQuit()}},{key:"getStreamWidth",value:function(){return this.streamWidth}},{key:"getStreamHeight",value:function(){return this.streamHeight}},{key:"startRecord",value:function(t,e){return this.wsChannel.startRecord(t,e)}},{key:"stopRecord",value:function(){return this.wsChannel.stopRecord()}},{key:"switchAudio",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.isAudio=t,this.isAudio?this.pcmPlayer.open():this.pcmPlayer.close(),this.toggleToolButton("volume",t),e&&this.wsChannel.switchAudio(t)}},{key:"switchTalk",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.isTalk=t,this.toggleToolButton("talk",t),e&&this.wsChannel.switchTalk(t)}},{key:"setStreamMode",value:function(t){this.streamMode=t,this.wsChannel.setMode(t)}},{key:"setDelay",value:function(t){this.delay=t,this.wsChannel.setDelay(t)}},{key:"setVolume",value:function(t){this.volume=t,this.wsChannel.setVolume(t)}},{key:"setFormat",value:function(t){var e=vt.JPEG;if("jpeg"===t&&this.renderType!==At.CANVAS)this.layerManager.removeLayer(Mt.YUV_VIDEO_LAYER),this.layerManager.initLayer(Mt.JPEG_VIDEO_LAYER),this.renderType=At.CANVAS,e=vt.JPEG;else{if("yuv"!==t&&"yuv420"!==t||this.renderType===At.YUV)return!0;this.layerManager.removeLayer(Mt.JPEG_VIDEO_LAYER),this.layerManager.initLayer(Mt.YUV_VIDEO_LAYER),this.renderType=At.YUV,e=vt.YUV}return this.layerManager.move(0,this.titleBar.height(),this.width,this.height-this.titleBar.height()),this.wsChannel.setFormat(e),!0}},{key:"setFilterLoss",value:function(t){this.wsChannel.setFilterLoss(t)}},{key:"setTrackIdFilter",value:function(t,e){this.layerManager.setTrackIdFilter(t,e)}},{key:"setExtRenderHandler",value:function(t){this.layerManager.setExtRenderHandler(t)}},{key:"setExtRenderCallback",value:function(t){this.layerManager.setExtRenderCallback(t)}},{key:"closeChannel",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.wsChannel.close(),this.status=-1,this.titleBar.clear(),this.layerManager.showError(""),this.layerManager.stopView(),this.ptzPanel.hide(),this.showRecordIcon(!1),t&&(this.stopROI(),null!=this.roiLayer&&(this.roiLayer.destroy(),this.roiLayer=null)),this.updateChildSize(),this.caculateLayerShow(),this.streamWidth=0,this.streamHeight=0,0!==this.heartTimer&&(clearInterval(this.heartTimer),this.heartTimer=0),this.switchAudio(!1,!1),this.switchTalk(!1,!1)}},{key:"initChannel",value:function(t,e){var n=this,i=this;this.wsPort=t,this.httpPort=e,i.status=0,i.titleBar.setState(H.STATE_CLOSE),i.titleBar.setName(this.name),i.titleBar.autoShow(),i.layerManager.showError(""),this.wsChannel.init(t,bt.LIVE_CHANNEL,this.config.proxy),this.wsChannel.onConnected=function(){i.titleBar.setState(H.STATE_WAITTING),i.isAudio&&i.switchAudio(!0),i.isTalk&&i.switchTalk(!0),i.setDelay(n.delay),i.setStreamMode(i.streamMode),n.changeViewport(),n.wsChannel.switchUrl(n.urls[0],n.urls[1]),n.ptzPanel.setWebsocket(n.wsChannel.getWebsocket()),console.log("channel "+i.index+" connected")},this.wsChannel.onDisconnected=function(){i.titleBar.setState(H.STATE_CLOSE),console.log("channel "+i.index+" disconnected")},this.wsChannel.onFrame=function(t,e,i){t!==gt.PCM?n.layerManager.putFrame(t,e,i):n.pcmPlayer.play(e)},this.wsChannel.onCommand=function(t,e){kt.SB_CMD_SPEED===t?n.titleBar.setSpeed(e.speed):kt.SB_CMD_STREAM_STATUS===t?n.onStreamStatus(e.status,e.errorCode,e.secondErrorCode):kt.SB_CMD_RES_SNAPSHOT===t?null!==i.config.onSnapshot&&i.config.onSnapshot(i.id,e.data):kt.SB_CMD_STREAM_SIZE===t?(i.streamWidth=e.width,i.streamHeight=e.height):kt.SB_CMD_RECORD_STATE===t?-1===e.state?(i.showRecordIcon(!1),i.config.onRecord&&i.config.onRecord(i.id,"failed",""+e.param)):0===e.state?(i.showRecordIcon(!0),i.config.onRecord&&i.config.onRecord(i.id,"start",""+e.param)):1===e.state&&(i.showRecordIcon(!1),i.config.onRecord&&i.config.onRecord(i.id,"stop",""+e.param)):kt.SB_CMD_AUDIO_STATE===t?(i.hasAudioInput=e.ainput,i.hasAudioOutput=e.aoutput,!e.ainputOpen&&i.isTalk&&i.switchTalk(!1,!1),!e.aoutputOpen&&i.isAudio&&i.switchAudio(!1,!1),i.config.onAudioState(i.id,e.ainput,e.aoutput,e.ainputOpen,e.aoutputOpen)):kt.SB_CMD_INFO===t?(i.hasAudioInput=e.ainput,i.hasAudioOutput=e.aoutput,i.isAudio&&i.switchAudio(!1),i.isTalk&&i.switchTalk(!1),i.config.onAudioState(i.id,e.ainput,e.aoutput,!1,!1)):console.log(e)},this.updateChildSize(),this.caculateLayerShow()}},{key:"onStreamStatus",value:function(t,e,n){2===t?(this.titleBar.setState(H.STATE_RUNNING),this.layerManager.showError(""),null!==this.config.onRunning&&this.config.onRunning()):4===t?this.layerManager.showError(q.STREAM_NO_DATA):5===t?8===e&&this.layerManager.showError(q.STREAM_CONCURRENCY_LIMIT):(1===t?this.titleBar.setState(H.STATE_WAITTING):this.titleBar.setState(H.STATE_CLOSE),-1===e?this.layerManager.showError(q.STREAM_CONNECT_FAILED):-2===e?this.layerManager.showError(q.STREAM_NOTFOUND):-3===e?this.layerManager.showError(q.STREAM_AUTH_FAILED):-4===e?this.layerManager.showError(q.STREAM_UNKNOWN_ERROR):-5===e?this.layerManager.showError(q.STREAM_PROTOCOL_ERROR):-6===e?this.layerManager.showError(q.STREAM_DISCONNECTED):8===e?this.layerManager.showError(q.USER_CONCURRENCY_LIMIT):-100===e?this.layerManager.showError(q.STREAM_UNSUPPORTED):-101===e?-101005===n?this.layerManager.showError(q.USER_CONCURRENCY_LIMIT):-351===n||-352===n||-353===n?this.layerManager.showError(q.STREAM_AUTHORIZE_LIMIT):this.layerManager.showError(q.STREAM_OPEN_FAILED):0!==e&&console.log("unhandled stream_status",t,e)),this.config.onStreamStatus(this.id,t,e,n)}},{key:"initToolbar",value:function(){var t=this;if(null!=this.toolBar&&this.element.removeChild(this.toolBar),this.config.toolBar){this.toolBar=document.createElement("div"),this.toolBar.classList.add("vat-tool"),this.element.appendChild(this.toolBar);var e,n=Ot(this.config.toolButtons);try{for(n.s();!(e=n.n()).done;){var i=e.value;if("volume"===i){var r=this.createToolButton("volume-off","打开声音"),a=this.createToolButton("volume-on","关闭声音");a.style.display="none",r.onclick=function(){t.switchAudio(!0)},a.onclick=function(){t.switchAudio(!1)}}else"snap"===i?this.createToolButton("snapshot","抓图").onclick=function(){t.reqSnapshot()}:"roi-rect"===i?this.createToolButton("roi-rect","ROI矩形绘图").onclick=function(){t.startROI(z.DRAW_RECT,null)}:"roi-polygon"===i?this.createToolButton("roi-polygon","ROI多点绘图").onclick=function(){t.startROI(z.DRAW_POLYGON,null)}:"maximize"===i?this.createToolButton("maximize","显示/取消最大化").onclick=function(){t.config.onZoom()}:"stop"===i?this.createToolButton("stop","停止").onclick=function(){t.closeStream()}:"ptz"===i&&(this.createToolButton("ptz","云台控制").onclick=function(){t.ptzPanel.toggle()})}}catch(t){n.e(t)}finally{n.f()}}}},{key:"showToolBar",value:function(t){null!=this.toolBar&&(this.toolBar.style.display=t?"":"none")}},{key:"showDragLayer",value:function(t){null!=this.dragLayer&&(this.dragLayer.style.display=t?"":"none")}},{key:"createDragLayer",value:function(){var e=this;null==e.dragLayer&&(this.dragLayer=document.createElement("div"),this.dragLayer.setAttribute("draggable","true"),this.dragLayer.classList.add("drag-layer"),this.dragLayer.addEventListener("dragstart",(function(n){if(e.hasChannel()&&!e.isDrawingROI){var i=document.createElement("canvas");if(i.width=e.width/e.span*.8,i.height=e.height/e.span*.8,i.style.opacity="1",i.width>300||i.height>300){var r=Math.min(300/i.width,300/i.height);i.width=i.width*r,i.height=i.height*r}e.layerManager.getImage(i,!1);var a=i.width/2,s=i.height/2;"function"!=typeof DataTransfer.prototype.setDragImage&&e.dragLayer?(e.dragLayer.style.left="".concat(n.layerX-a,"px"),e.dragLayer.style.top="".concat(n.layerY-s,"px"),e.dragLayer.style.width="".concat(i.width,"px"),e.dragLayer.style.height="".concat(i.height,"px"),e.dragLayer.appendChild(i),setTimeout((function(){e.dragLayer&&(e.dragLayer.style.left="",e.dragLayer.style.top="",e.dragLayer.style.width="",e.dragLayer.style.height="",e.dragLayer.removeChild(i))}),0)):(i.style.position="absolute",i.style.left="-999px",n.dataTransfer&&n.dataTransfer.setDragImage(i,a,s),document.body.appendChild(i),setTimeout((function(){document.body.removeChild(i)}),100)),n.dataTransfer&&n.dataTransfer.setData(t.DRAG_MIME,"vat:"+e.index)}else n.preventDefault()})),this.dragLayer.addEventListener("dragenter",(function(t){t.target.classList.add("drag-hover")})),this.dragLayer.addEventListener("dragleave",(function(t){t.target.classList.remove("drag-hover")})),this.dragLayer.addEventListener("drop",(function(n){n.preventDefault(),n.stopPropagation();var i=n.dataTransfer&&n.dataTransfer.getData(t.DRAG_MIME);return n.target.classList.remove("drag-hover"),i&&i.length>0&&e.config.onDrop&&e.config.onDrop(i,e.index),!1})),this.dragLayer.addEventListener("dragover",(function(t){t.preventDefault()})),e.element.appendChild(this.dragLayer))}},{key:"createToolButton",value:function(t,e){var n=document.createElement("a");n.title=e;var i=j.getSVG(t);return n.appendChild(i),this.toolBar&&(this.toolBar.appendChild(n),this.element.appendChild(this.toolBar),this.toolButtons[t]=n),n}},{key:"createROILayer",value:function(){var t=this;return null!=this.roiLayer?this.roiLayer:(this.roiLayer=new z(this.element,this.config.maxRoi,this.config.roiMenu),null===this.roiLayer?null:(this.roiLayer.onEscape=function(){t.stopROI()},this.roiLayer.onSave=function(e){t.stopROI(),t.config.onRoi&&t.config.onRoi(t.id,e)},this.updateChildSize(),this.roiLayer))}},{key:"updateChildSize",value:function(){this.layerManager.move(0,this.titleBar.height(),this.width,this.height-this.titleBar.height()),null!==this.roiLayer&&this.roiLayer.resize(0,this.titleBar.height(),this.width,this.height-this.titleBar.height()),this.titleBar.adjustWidth(this.width)}},{key:"caculateLayerShow",value:function(){!this.hasChannel()||null!==this.roiLayer&&this.roiLayer.isUserDrawing()?(this.showToolBar(!1),null!==this.roiLayer&&this.roiLayer.isUserDrawing()?this.showDragLayer(!1):this.showDragLayer(!0)):(this.showToolBar(!0),this.showDragLayer(!0))}},{key:"changeViewport",value:function(){this.wsChannel.setViewport(this.width,this.height-this.titleBar.height())}},{key:"reqSnapshot",value:function(){this.wsChannel.snapshot(0)}},{key:"showRecordIcon",value:function(t){t&&null==this.recordIcon&&(this.recordIcon=document.createElement("span"),this.recordIcon.setAttribute("class","vat-record"),this.recordIcon.style.visibility="hidden",this.element.appendChild(this.recordIcon)),null!=this.recordIcon&&(this.recordIcon.style.visibility=t?"visible":"hidden")}},{key:"toggleToolButton",value:function(t,e){var n=t+"-on",i=t+"-off";e?(this.toolButtons[n]&&(this.toolButtons[n].style.display="inline-block"),this.toolButtons[i]&&(this.toolButtons[i].style.display="none")):(this.toolButtons[n]&&(this.toolButtons[n].style.display="none"),this.toolButtons[i]&&(this.toolButtons[i].style.display="inline-block"))}}]),t}();Rt.DRAG_MIME="text",Rt.TITLE_BAR_HEIGHT=16,Rt.SB_CMD_SPEED="speed",Rt.SB_CMD_STREAM_STATUS="stream_status",Rt.SB_CMD_INFO="info",Rt.SB_CMD_STREAM_SIZE="stream_size",Rt.SB_CMD_RECORD_STATE="record_state",Rt.SB_CMD_AUDIO_STATE="audio_state",Rt.CMD_OPEN_CHANNEL="openchannel",Rt.CMD_CLOSE_CHANNEL="closechannel",Rt.CMD_SET_VIEWPORT="set_viewport",Rt.CMD_REQ_SNAPSHOT="req_snapshot",Rt.CMD_START_RECORD="start_record",Rt.CMD_STOP_RECORD="stop_record",Rt.CMD_SWITCH_AUDIO="switch_audio",Rt.CMD_SWITCH_TALK="switch_talk",Rt.CMD_SET_STREAM_MODE="set_mode",Rt.CMD_SET_STREAM_DELAY="set_delay",Rt.CMD_SET_STREAM_FORMAT="set_format",Rt.CMD_SET_VOLUME="set_volume";var It=n("eec4"),jt=function(){function t(){a(this,t),this.oldWidth=0,this.oldHeight=0,this.element=null,this.erd=null,this.callback=function(){return 1}}return l(t,[{key:"watch",value:function(t,e){var n=this;return null===this.element&&(this.callback=e,this.erd=It(),this.erd.listenTo(t,(function(t){t.clientWidth===n.oldWidth&&t.clientHeight===n.oldHeight||(n.oldWidth=t.clientWidth,n.oldHeight=t.clientHeight,n.callback(n.oldWidth,n.oldHeight))})),!0)}},{key:"destroy",value:function(){null!==this.erd&&null!==this.element&&this.erd.uninstall(this.element),this.element=null}}]),t}();function Ft(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Ht(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ht(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){o=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function Ht(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Nt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Wt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Nt(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Ut={fill:!0,dbClick:!0,dragWindow:!0,toolBar:!0,titleBar:0,onSnapshot:null,onRoi:null,maxRoi:10,border:!0,toolButtons:[],filterLoss:!0,onExtData:function(t,e,n){},onStreamStatus:function(t,e,n){},onAudioState:function(t,e,n,i,r){}},Bt={rows:2,cols:2,combines:[],streams:[]},zt=function(){function t(e,n){var i=this;if(a(this,t),this.resizeWatcher=new jt,this.proxy=null,this.swapWindow=function(e,n){if(e!==n){var r=i.windows[e],a=i.windows[n];r.setSpan(a.span),a.setSpan(r.span),r.setIndex(n),a.setIndex(e),i.windows[e]=a,i.windows[n]=r;var s=a.element.style.width,o=a.element.style.height;a.element.style.width=r.element.style.width,a.element.style.height=r.element.style.height,r.element.style.width=s,r.element.style.height=o,i.updateLayout(i.layout.rows,i.layout.cols,i.layout.combines),i.config.onWinOp&&i.config.onWinOp(e,r.id,t.WIN_OP_SWAP)}},this.showMaxWindow=function(t){var e=i.findTDElement(t);if(null!=e){for(var n=i.getTDIndex(e);i.tableLayout.firstChild;)i.tableLayout.firstChild.nodeName,i.tableLayout.removeChild(i.tableLayout.firstChild);i.maxWindow=i.windows[n],e.removeChild(i.maxWindow.element);var r=document.createElement("td");r.setAttribute("rowSpan","1"),r.setAttribute("colSpan","1"),r.setAttribute("windex",""+n),r.setAttribute("max","true"),r.classList.add("no-border"),r.style.borderWidth="0px",r.appendChild(i.maxWindow.element),i.config.dbClick&&(r.ondblclick=function(t){t.stopPropagation(),t.preventDefault(),i.showNormalWindow()});var a=document.createElement("tr");a.appendChild(r),i.tableLayout.appendChild(a),i.adjustSize(),i.onMaximize(i.maxWindow.id,n)}},this.onTDClick=function(t){null==i.maxWindow&&i.selectWindow(t.target)},this.selectWindow=function(e){var n=i.findTDElement(e);if(null!=n){if(i.selectedIndex>=0&&i.selectedIndex<i.windowCount){var r=i.findTDElement(i.windows[i.selectedIndex].element);null!=r&&r.classList.remove("selected")}i.windowCount>1&&n.classList.add("selected");var a=i.selectedIndex;i.selectedIndex=i.getTDIndex(n),i.config.onWinOp&&a!==i.selectedIndex&&i.config.onWinOp(i.selectedIndex,i.windows[i.selectedIndex].id,t.WIN_OP_SELECT)}},this.dropWindow=function(e,n){if(0===e.indexOf("vat:")){if(i.config.dragWindow){var r=parseInt(e.substr(4),10);i.swapWindow(r,n)}}else{if(0===e.indexOf("rtsp:")){var a={url:e};i.openLiveStream(n,a)}else if(0===e.indexOf("vat-live:")){var s=t.parseLiveStreamParam(e.substr(9));i.openLiveStream(n,s)}i.selectWindow(i.windows[n].element),i.config.onWinOp&&i.config.onWinOp(n,i.windows[n].id,t.WIN_OP_DROP)}},this.windows=[],this.layout=Wt({},Bt),this.config=Wt(Wt({},Ut),n),this.windowCount=0,this.maxWindow=null,this.selectedIndex=0,this.wsPort=0,null==this.config.fill&&(this.config.fill=!0),this.onChannelStatus=function(t,e){console.log("dcs player channel ".concat(t," status=").concat(e))},this.onMaximize=function(t,e){return 0},!e)throw new Error("bad parentElement argument: "+e);var r=e;this.tableLayout=document.createElement("table"),this.tableLayout.setAttribute("cellspacing","1"),this.config.border||(this.tableLayout.style.borderWidth="0"),r.appendChild(this.tableLayout);var s=this;this.tableLayout.oncontextmenu=function(t){return!1},this.resizeWatcher.watch(r,(function(t,e){s.adjustSize(t,e)}))}return l(t,[{key:"getWsPort",value:function(){return this.wsPort}},{key:"setWsPort",value:function(t,e){this.wsPort=t,this.proxy=e;var n,i=Ft(this.windows);try{for(i.s();!(n=i.n()).done;)n.value.wsPort=this.wsPort}catch(t){i.e(t)}finally{i.f()}}},{key:"setLayout",value:function(t){if(0===this.wsPort)return Tt.INVALID_STATE;if("number"!=typeof t.rows||"number"!=typeof t.cols||"object"!==h(t.combines))return Tt.INVALID_PARAM;if(this.layout=Wt(Wt({},Bt),t),this.updateLayout(this.layout.rows,this.layout.cols,this.layout.combines),void 0===this.layout.streams||null===this.layout.streams)this.layout.streams={};else for(var e=0;e<this.windowCount;e++)this.layout.streams[e]&&this.openLiveStream(e,this.layout.streams[e]);return Tt.OK}},{key:"getLayout",value:function(){for(var t={},e=0;e<this.windowCount;e++){var n=this.windows[e];n.hasChannel()&&(t[e]={id:n.id,name:n.name,url:n.urls.length>0?n.urls[0]:"",subUrl:n.urls.length>1?n.urls[1]:"",hasChannel:n.hasChannel()})}var i=Wt({},this.layout);return i.streams=t,i}},{key:"toggleWindow",value:function(){if(null==this.maxWindow){var t=this._check_index(-1,!0);this.showMaxWindow(this.windows[t].element)}else this.showNormalWindow()}},{key:"openExtStream",value:function(t,e,n,i){this._check_state(),t=this._check_index(t,!0),this.windows[t].openExtStream(e,n,i)}},{key:"closeExtStream",value:function(t){this._check_state(),t=this._check_index(t,!0),this.windows[t].closeExtStream()}},{key:"openLiveStream",value:function(t,e){if(null===e.url||""===e.url)return Tt.INVALID_PARAM;if(this._check_state(),-2===t)for(var n=0;n<this.windowCount;n++){var i=(this.selectedIndex+n)%this.windowCount;if(!this.windows[i].hasChannel()){t=i,this.selectWindow(this.windows[i].element);break}}if(-2===t)return Tt.NO_MORE_FREE_WINDOW;if(e.id&&""!==e.id)for(var r=0;r<this.windowCount;r++)if(this.windows[r].id===e.id)return Tt.WINDOW_ID_CONFLICT;return t=this._check_index(t,!0),this.windows[t].openLiveStream(e),!0===e.realtime&&this.windows[t].setStreamMode(yt.REALTIME),"number"==typeof e.delay&&e.delay>0&&this.windows[t].setDelay(e.delay),t}},{key:"ptzControl",value:function(t,e,n){return this._check_state(),t=this._check_index(t,!1),this.windows[t].ptzControl(e,n)}},{key:"ptzControl3D",value:function(t,e,n,i,r,a){return this._check_state(),t=this._check_index(t,!1),this.windows[t].ptzControl3D(e,n,i,r,a)}},{key:"select",value:function(t){this._check_state(),t=this._check_index(t,!1),this.selectWindow(this.windows[t].element)}},{key:"setROI",value:function(t,e){this._check_state(),t=this._check_index(t,!0),null==e&&(e=[]);var n,i=Ft(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.width<=0||r.height<=0)throw new Error("diagrams width and height must be grater that 0");if(r.type===z.DRAW_RECT){if(null===r.points||2!==r.points.length)throw new Error("diagram rect need two points")}else{if(r.type!==z.DRAW_POLYGON)throw new Error("diagram bad type");if(null===r.points||r.points.length<2)throw new Error("diagram polygon least 3 points")}}}catch(t){i.e(t)}finally{i.f()}this.windows[t].setROI(e)}},{key:"startROI",value:function(t,e,n){return this._check_state(),t=this._check_index(t,!0),this.windows[t].startROI(e,n)}},{key:"stopROI",value:function(t){this._check_state(),t=this._check_index(t,!0),this.windows[t].stopROI()}},{key:"saveROI",value:function(t){return this._check_state(),t=this._check_index(t,!0),this.windows[t].saveROI()}},{key:"closeStream",value:function(t){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].closeStream()}},{key:"closeStreams",value:function(t){if(void 0===t){var e,n=Ft(this.windows);try{for(n.s();!(e=n.n()).done;)e.value.closeStream()}catch(t){n.e(t)}finally{n.f()}}else if(t instanceof Array){var i,r=Ft(t);try{for(r.s();!(i=r.n()).done;){var a=i.value;a>=0&&a<this.windowCount&&this.windows[a].closeStream()}}catch(t){r.e(t)}finally{r.f()}}}},{key:"getStreamInfo",value:function(t){var e={width:0,height:0};return t=this._check_index(t,!0),null!==this.windows[t]&&(e.width=this.windows[t].getStreamWidth(),e.height=this.windows[t].getStreamHeight()),e}},{key:"fillWindow",value:function(t,e){this._check_index(t,!0);for(var n=0;n<this.windowCount;n+=1)-1!==t&&t!==n||!this.windows[n]||this.windows[n].fillWindow(e)}},{key:"showFullscreen",value:function(){var t=this.tableLayout.parentElement;if(t.requestFullscreen)t.requestFullscreen().catch((function(){console.log("request fullscreen failed")}));else if(t.mozRequestFullScreen)t.mozRequestFullScreen();else if(t.webkitRequestFullscreen)t.webkitRequestFullscreen();else{if(!t.msRequestFullscreen)return console.log("不存在进入全屏的方法! => undefined"),!1;t.msRequestFullscreen()}return!0}},{key:"exitFullscreen",value:function(){var t=document;if(t.exitFullscreen)t.exitFullscreen();else if(t.mozCancelFullScreen)t.mozCancelFullScreen();else if(t.webkitExitFullscreen)t.webkitExitFullscreen();else{if(!t.msExitFullscreen)return!1;t.msExitFullscreen()}}},{key:"snapshot",value:function(t){t=this._check_index(t,!0),this.windows[t].snapshot()}},{key:"getImage",value:function(t){return t=this._check_index(t,!0),this.windows[t].getImage()}},{key:"stop",value:function(){this.resizeWatcher.destroy();var t,e=Ft(this.windows);try{for(e.s();!(t=e.n()).done;)t.value.closeStream()}catch(t){e.e(t)}finally{e.f()}}},{key:"resize",value:function(){this.adjustSize()}},{key:"indexOf",value:function(t){if(null==t)return-1;for(var e=0;e<this.windowCount;e++)if(this.windows[e].id===t)return e;return-1}},{key:"startRecord",value:function(t,e,n){return t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].startRecord(e,n)}},{key:"stopRecord",value:function(t){return t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].stopRecord()}},{key:"switchAudio",value:function(t,e){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].switchAudio(e)}},{key:"switchTalk",value:function(t,e){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].switchTalk(e)}},{key:"setStreamMode",value:function(t,e){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].setStreamMode(e)}},{key:"setDelay",value:function(t,e){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].setDelay(e)}},{key:"setFormat",value:function(t,e){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].setFormat(e)}},{key:"showBorder",value:function(t){this.tableLayout.style.borderWidth=t?"null":"0"}},{key:"setTrackIdFilter",value:function(t,e,n){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].setTrackIdFilter(e,n)}},{key:"setExtRenderHandler",value:function(t,e){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].setExtRenderHandler(e)}},{key:"setExtRenderCallback",value:function(t,e){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].setExtRenderCallback(e)}},{key:"showCheckError",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.updateLayout(0,0,{});var n=document.createElement("tr"),i=document.createElement("td");i.className="check_error";var r=document.createElement("div");if(r.innerText=t,i.appendChild(r),e){var a=document.createElement("a");a.className="vat-down",a.innerHTML="<span>".concat(q.PLUGIN_DOWNLOAD,"</span>"),a.href=this.config.pluginUrl?this.config.pluginUrl:"#",i.appendChild(a)}n.appendChild(i),this.tableLayout.appendChild(n)}},{key:"_check_state",value:function(){if(0===this.wsPort)throw new Error("invalid state, plugin not initialized")}},{key:"_check_index",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(void 0===t)throw new Error("bad parameter index");if(e&&-1===t)return this.selectedIndex;if(t<0||t>=this.windowCount)throw new Error("index out of range");return t}},{key:"adjustSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(this.tableLayout.parentElement){var i=this.layout.rows,r=this.layout.cols;null!=this.maxWindow&&(i=1,r=1),-1===e&&(e=this.tableLayout.parentElement.clientWidth),-1===n&&(n=this.tableLayout.parentElement.clientHeight),e<t.MIN_WIDTH&&(e=t.MIN_WIDTH),n<t.MIN_HEIGHT&&(n=t.MIN_HEIGHT);var a=parseInt(this.tableLayout.cellSpacing,10),s=this.tableLayout.querySelector("td");if(s){var o=2;e=(e-o-a*(r+1)-t.getBDWx2(s)*r)/r,n=(n-o-a*(i+1)-t.getBDHx2(s)*i)/i,e=Math.max(Math.floor(e),0),n=Math.max(Math.floor(n),0);var l=a+t.getBDHx2(s),u=a+t.getBDWx2(s);if(null!=this.maxWindow)this.maxWindow.adjustSize(e,n,l,u,1),this.maxWindow.showMain(!0);else for(var c=i*r,h=c/4,d=0;d<this.windowCount;d+=1)if(this.windows[d]){this.windows[d].adjustSize(e,n,l,u,-1),Math.pow(this.windows[d].span,2)>=h?this.windows[d].showMain(!0):this.windows[d].showMain(!1);var f=this.findTDElement(this.windows[d].element);f&&(f.style.height="0px")}}}}},{key:"updateLayout",value:function(t,e,n){for(var i=this,r={},a=0,s=0;s<this.windowCount;s++)this.windows[s].element.parentElement&&this.windows[s].element.parentElement.removeChild(this.windows[s].element);for(this.maxWindow=null;this.tableLayout.firstChild;)this.tableLayout.removeChild(this.tableLayout.firstChild);for(var o=0;o<t;o++){for(var l=document.createElement("tr"),u=0;u<e;u++){var c=o*e+u;if(null==r[c]){var h=n[c];if(null==h)h=1;else if(h>1)for(var d=0;d<h;d++)for(var f=0;f<h;f++)r[(o+d)*e+u+f]=1;var m=document.createElement("td");if(m.setAttribute("rowSpan",""+h),m.setAttribute("colSpan",""+h),m.setAttribute("windex",""+a),0===a&&t*e==1&&(m.classList.add("no-border"),m.style.borderWidth="0px"),l.appendChild(m),this.config.dbClick&&(m.ondblclick=function(t){t.stopPropagation(),t.preventDefault(),i.showMaxWindow(t.target)}),m.onclick=this.onTDClick,a<this.windows.length){var p=this.windows[a];p.element.style.width="1px",p.element.style.height="1px",m.appendChild(p.element),this.windows[a]=p,p.setIndex(a),p.setSpan(h)}else this.createWindow(a,m,h);a++}}this.tableLayout.appendChild(l)}for(var _=a;_<this.windowCount;_++)this.windows[_].closeStream(!1);this.windowCount=a,this.adjustSize();for(var g=0;g<a;g++)this.windows[g].isDrivingClosed()||this.windows[g].hasChannel()||this.windows[g].restoreStream();this.windowCount>0&&(this.selectedIndex>=this.windowCount&&(this.selectedIndex=0),this.selectWindow(this.windows[this.selectedIndex].element))}},{key:"createWindow",value:function(e,n,i){var r=this,a={dragWindow:this.config.dragWindow,toolBar:this.config.toolBar,toolButtons:this.config.toolButtons,titleBar:this.config.titleBar,onSnapshot:void 0===this.config.onSnapshot?null:this.config.onSnapshot,onDrop:this.dropWindow,onRoi:void 0===this.config.onRoi?null:this.config.onRoi,maxRoi:this.config.maxRoi,onZoom:function(){null==r.maxWindow?r.showMaxWindow(s.element):r.showNormalWindow()},onRunning:function(){},onClose:function(e,n){r.config.onWinOp&&r.config.onWinOp(e,n,t.WIN_OP_CLOSE)},onExtData:this.config.onExtData,roiMenu:!0===this.config.roiMenu,onRecord:void 0===this.config.onRecord?null:this.config.onRecord,onStreamStatus:this.config.onStreamStatus,onAudioState:this.config.onAudioState,proxy:this.proxy},s=new Rt(e,n,a);s.fillWindow(!0===this.config.fill),s.setSpan(i),void 0!==this.config.filterLoss&&s.setFilterLoss(this.config.filterLoss),s.wsPort=this.wsPort,this.windows.push(s)}},{key:"showNormalWindow",value:function(){if(null!=this.maxWindow&&null!=this.maxWindow.element.parentElement){for(this.maxWindow.element.parentElement.removeChild(this.maxWindow.element);this.tableLayout.firstChild;)this.tableLayout.removeChild(this.tableLayout.firstChild);this.updateLayout(this.layout.rows,this.layout.cols,this.layout.combines),this.maxWindow=null,this.adjustSize(),this.onMaximize(null,-1)}}},{key:"findTDElement",value:function(t){var e=null;do{if("TD"===t.nodeName&&null!=t.getAttribute("windex")){e=t;break}if(!t.parentElement)return null;t=t.parentElement}while("BODY"!==t.nodeName);return e}},{key:"getTDIndex",value:function(t){return null==t?-1:parseInt(t.getAttribute("windex")||"-1",10)}}],[{key:"getBDWx2",value:function(t){return t?t.offsetWidth-t.clientWidth:0}},{key:"getBDHx2",value:function(t){return t?t.offsetHeight-t.clientHeight:0}},{key:"parseLiveStreamParam",value:function(t){var e={};try{e=JSON.parse(t)}catch(e){throw Error("cannot parse param:"+t)}if(!e.url)throw Error("require param 'url'");return e}}]),t}();zt.MAX_CHANNEL_COUNT=9,zt.MIN_WIDTH=10,zt.MIN_HEIGHT=10,zt.WIN_OP_CLOSE="close",zt.WIN_OP_SELECT="select",zt.WIN_OP_SWAP="swap",zt.WIN_OP_DROP="drop";var Vt=function(){function t(e,n){var i=this;a(this,t),this.ip="",this.port=0,this.username="",this.password="",this.isLogin=!1,this.loginCB=function(){return 0},this.listCameraCB=function(){return 0},this.wsPort=e,this.websocket=wt.createWebsocket(e,n);var r=this;this.websocket.onerror=function(){i.isLogin=!1,r.loginCB(!1,Tt.NETWORK_ERROR)},this.websocket.onmessage=function(t){r.onMessage(t)},this.websocket.onopen=function(){r.onOpen()}}return l(t,[{key:"loginByUrl",value:function(t){var e=t.indexOf(":");if(e<0)throw new Error("bad server info");var n=t.lastIndexOf("@");if(n<0)throw new Error("bad server info");var i=t.indexOf(":",n+1);if(i<0)throw new Error("bad server info");var r=t.substring(0,e),a=t.substring(e+1,n),s=t.substring(n+1,i),o=parseInt(t.substring(i+1),10);return this.login(s,o,r,a)}},{key:"login",value:function(t,e,n,i){return this.ip=t,this.port=e,this.username=n,this.password=i,this.websocket.readyState!==WebSocket.OPEN?Tt.INVALID_STATE:(this.sendLoginCmd(),Tt.OK)}},{key:"destroy",value:function(){null!==this.websocket&&(this.websocket.onclose=null,this.websocket.onerror=null,this.websocket.close())}},{key:"listCameras",value:function(){return this.websocket.readyState!==WebSocket.OPEN?Tt.INVALID_STATE:(this.websocket.send(JSON.stringify({cmd:"req_list_camera"})),Tt.OK)}},{key:"onMessage",value:function(t){var e=JSON.parse(t.data);"res_login"===e.cmd?(this.loginCB(e.success,e.code),!0===e.success&&(this.isLogin=!0)):"res_list_camera"===e.cmd&&this.listCameraCB(e.data)}},{key:"onOpen",value:function(){this.ip.length>0&&this.port>0&&this.sendLoginCmd()}},{key:"sendLoginCmd",value:function(){var t={cmd:"req_login",ip:this.ip,port:this.port,username:this.username,password:this.password};this.websocket.send(JSON.stringify(t))}}]),t}(),Gt=function t(){a(this,t)};Gt.WS_PORT=3457,Gt.CMD_INIT="init",Gt.CMD_OPEN_CHANNEL="openchannel",Gt.CMD_CLOSE_CHANNEL="closechannel",Gt.CMD_CHANNEL_STATUS="channel.status",Gt.CMD_ERROR="error",Gt.CMD_OPEN_FOLDER="open_folder";var Xt=n("b697"),Kt=n.n(Xt),qt=n("9224"),Jt=qt.version,$t=qt.vatversion,Zt=function(){function t(e){if(a(this,t),this.serverVersion="",this.timerId=0,this.currentIp="",this.initTime=performance.now(),this.proxy=e,this.onConnectFailed=function(){return 0},this.onDisconnected=function(){return 0},this.onInitError=function(){return 0},this.onInitOk=function(){return 0},this.socketOpened=!1,this.initOk=!1,this.proxyIp=null,this.proxy){var n=this.proxy.indexOf("://"),i=this.proxy.lastIndexOf(":");this.proxyIp=n<0&&i<0?this.proxy:n<0?this.proxy.substring(0,i):i<0||n===i?this.proxy.substring(n+3):this.proxy.substring(n+3,i)}this.websocket=this.initWebSocket("127.0.0.1")}return l(t,[{key:"isProxy",value:function(){return null!==this.proxy&&this.currentIp===this.proxy}},{key:"getConnectedProxyIp",value:function(){return this.isProxy()?this.proxyIp:null}},{key:"close",value:function(){this.clearTimer(),wt.closeWebsocket(this.websocket)}},{key:"openFolder",value:function(t){if(!this.isProxy()){var e=JSON.stringify({cmd:Gt.CMD_OPEN_FOLDER,folder:t});this.websocket.send(e)}}},{key:"onError",value:function(){var t=this;performance.now()-this.initTime<200?window.setTimeout((function(){t.websocket=t.initWebSocket("127.0.0.1")}),200):this.handleDisconnect()}},{key:"initWebSocket",value:function(t){var e=this;this.currentIp=t,this.socketOpened=!1;var n=0===t.indexOf("ws://")||0===t.indexOf("wss://")?t:"ws://".concat(t,":").concat(Gt.WS_PORT),i=new WebSocket(n);return i.onerror=i.onclose=function(){e.onError()},i.onopen=function(){e.clearTimer(),e.socketOpened=!0;var t=JSON.stringify({cmd:Gt.CMD_INIT,version:Jt});e.websocket.send(t)},i.onmessage=function(t){var n=JSON.parse(t.data);if(n.cmd===Gt.CMD_INIT){e.serverVersion=n.version;var i=$t;if(0!==n.code)wt.closeWebsocket(e.websocket),e.onInitError(e.serverVersion,q.PLUGIN_SERVICE_MISMATCH);else if(0===i.indexOf("="))if(0===Kt()(n.version,i.substring(1)))e.initOk=!0,e.onInitOk(e.serverVersion,n.port);else{var r=q.get(q.PLUGIN_SERVICE_VERSION_REQUIRE,{installed_version:n.version,require_version:i.substring(1)});e.onInitError(e.serverVersion,r)}else if(Kt()(n.version,i)>=0)e.initOk=!0,e.onInitOk(e.serverVersion,n.port);else{var a=q.get(q.PLUGIN_SERVICE_VERSION_REQUIRE,{installed_version:n.version,require_version:i});e.onInitError(e.serverVersion,a)}}else n.cmd===Gt.CMD_CHANNEL_STATUS?e.onInitOk(e.serverVersion,n.ws_port):n.cmd===Gt.CMD_ERROR&&console.error(t.data)},this.initTimer(),i}},{key:"initTimer",value:function(){var t=this;this.clearTimer(),this.timerId=window.setTimeout((function(){t.handleDisconnect()}),1e3)}},{key:"clearTimer",value:function(){0!==this.timerId&&(clearTimeout(this.timerId),this.timerId=0)}},{key:"handleDisconnect",value:function(){if(!this.socketOpened&&this.proxy&&this.currentIp!==this.proxy&&this.proxy.length>6)return wt.closeWebsocket(this.websocket),void(this.websocket=this.initWebSocket(this.proxy));this.socketOpened?this.onDisconnected():this.onConnectFailed(),this.socketOpened=!1}}]),t}();function Qt(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return te(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){o=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function te(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function ee(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ne(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ee(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ie(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}var re={},ae=function(t){c(n,t);var e=ie(n);function n(){var t;return a(this,n),(t=e.apply(this,arguments)).api=null,t.dcs=null,t.loaded=!1,t.wsInitChannel=null,t}return l(n,[{key:"login",value:function(t,e,n,i){return null===this.api?Tt.INVALID_STATE:this.getDcs().login(t,e,n,i)}},{key:"setLayout",value:function(t){this.api&&this.api.setLayout(t)}},{key:"getLayout",value:function(){return this.api?this.api.getLayout():null}},{key:"toggleWindow",value:function(){this.api&&this.api.toggleWindow()}},{key:"openStream",value:function(t,e,n,i){return this.api?this.api.openLiveStream(t,{url:e,subUrl:n,name:i}):Tt.INVALID_STATE}},{key:"openStreamEx",value:function(t,e){return this.api?this.api.openLiveStream(t,e):Tt.INVALID_STATE}},{key:"ptzControl",value:function(t,e,n){return null===this.api?Tt.INVALID_STATE:this.api.ptzControl(t,e,n)}},{key:"ptzControl3D",value:function(t,e,n,i,r,a){return null===this.api?Tt.INVALID_STATE:this.api.ptzControl3D(t,e,n,i,r,a)}},{key:"selectWindow",value:function(t){this.api&&this.api.select(t)}},{key:"setROI",value:function(t,e){this.api&&this.api.setROI(t,e)}},{key:"startROI",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return null!==this.api&&this.api.startROI(t,e,n)}},{key:"stopROI",value:function(t){this.api&&this.api.stopROI(t)}},{key:"saveROI",value:function(t){return null!==this.api&&this.api.saveROI(t)}},{key:"closeStream",value:function(t){this.api&&this.api.closeStream(t)}},{key:"closeStreams",value:function(t){this.api&&this.api.closeStreams(t)}},{key:"fillWindow",value:function(t,e){this.api&&this.api.fillWindow(t,e)}},{key:"showFullscreen",value:function(){return this.api&&this.api.showFullscreen()}},{key:"exitFullscreen",value:function(){this.api&&this.api.exitFullscreen()}},{key:"getImage",value:function(t){return this.api?this.api.getImage(t):null}},{key:"snapshot",value:function(t){this.api&&this.api.snapshot(t)}},{key:"indexOf",value:function(t){return this.api?this.api.indexOf(t):Tt.INVALID_STATE}},{key:"getStreamInfo",value:function(t){if(this.api)return this.api.getStreamInfo(t)}},{key:"startRecord",value:function(t,e,n){return!!this.api&&(!this.wsInitChannel||!this.wsInitChannel.isProxy())&&(void 0===n&&(n=""),this.api.startRecord(t,e,n))}},{key:"stopRecord",value:function(t){return!!this.api&&this.api.stopRecord(t)}},{key:"closeExtStream",value:function(t){if(!this.api)return!1;this.api.closeExtStream(t)}},{key:"openExtStream",value:function(t,e){if(!this.api)return!1;this.api.openExtStream(t,"","",e)}},{key:"switchAudio",value:function(t,e){this.api&&this.api.switchAudio(t,e)}},{key:"switchTalk",value:function(t,e){this.api&&this.api.switchTalk(t,e)}},{key:"setStreamMode",value:function(t,e){this.api&&this.api.setStreamMode(t,e)}},{key:"setDelay",value:function(t,e){this.api&&this.api.setDelay(t,e)}},{key:"setTrackIdFilter",value:function(t,e,n){this.api&&this.api.setTrackIdFilter(t,e,n)}},{key:"setExtRenderHandler",value:function(t,e){this.api&&this.api.setExtRenderHandler(t,e)}},{key:"setExtRenderCallback",value:function(t,e){this.api&&this.api.setExtRenderCallback(t,e)}},{key:"setMessage",value:function(t,e){q.set(t,e)}},{key:"swapWindow",value:function(t,e){return null===this.api?Tt.INVALID_STATE:t===e||t<0||e<0||t>=this.api.windowCount||e>=this.api.windowCount?Tt.INVALID_PARAM:(this.api.swapWindow(t,e),Tt.OK)}},{key:"openFolder",value:function(t){null!=this.wsInitChannel&&this.wsInitChannel.openFolder(t)}},{key:"onServerChange",value:function(t,e){void 0!==this.server&&""!==this.server&&this.loaded&&this.tryLogin()}},{key:"onBorderChange",value:function(t,e){if(!this.api)return!1;this.api.showBorder(t)}},{key:"mounted",value:function(){var t=this;X.token=this.$attrs.token;var e={rows:1,cols:1,combines:[],streams:{}};this.config.layout&&(e=ne({},this.config.layout));var n,i={pluginUrl:"#",onSnapshot:this.onSnapshot,onRoi:this.onROI,dbClick:!1!==this.config.dbClick,dragWindow:!1!==this.config.dragWindow,toolBar:!1!==this.config.toolBar,toolButtons:this.config.boolButtons||["volume","roi-rect","roi-polygon","snap","stop"],titleBar:!1===this.config.titleBar?0:F.ALL,maxRoi:this.config.maxRoi?this.config.maxRoi:10,onExtData:this.onExtData,onWinOp:this.onWinOp,roiMenu:!1!==this.config.roiMenu,onRecord:this.onRecord,onStreamStatus:this.onStreamStatus,onAudioState:this.onAudioState,border:!1!==this.config.border,filterLoss:this.config.filterLoss},r=Qt(void 0===this.$slots.default?[]:this.$slots.default);try{for(r.s();!(n=r.n()).done;){var a=n.value;if("download-url"===a.tag){if(void 0!==a.text)i.pluginUrl=a.text;else if(void 0!==a.children&&a.children.length>0){var s,o=Qt(a.children);try{for(o.s();!(s=o.n()).done;)void 0===s.value.tag&&(i.pluginUrl=a.children[0].text)}catch(t){o.e(t)}finally{o.f()}}}else if("msg"===a.tag){if(void 0===a.data||void 0===a.data.key)continue;var l="";if(void 0!==a.text)l=a.text;else if(void 0!==a.children&&a.children.length>0){var u,c=Qt(a.children);try{for(c.s();!(u=c.n()).done;)void 0===u.value.tag&&void 0!==a.children[0].text&&(l=a.children[0].text)}catch(t){c.e(t)}finally{c.f()}}q.set(""+a.data.key,l)}}}catch(t){r.e(t)}finally{r.f()}this.api=new zt(this.$el,i),this.api.onMaximize=function(e,n){t.$emit("onMaximize",e,n)},this.wsInitChannel=new Zt(this.proxy),this.wsInitChannel.onInitOk=function(n,i){t.loaded=!0,null!==t.api&&(t.api.setWsPort(i,null===t.wsInitChannel?null:t.wsInitChannel.getConnectedProxyIp()),t.api.setLayout(e)),t.$emit("onLoad",t,n,t.wsInitChannel&&t.wsInitChannel.isProxy()),t.tryLogin()},this.wsInitChannel.onInitError=function(e,n){null!==t.api&&(t.api.showCheckError(n,void 0!==e&&e.length>0),t.$emit("onLoadFailed",n))},this.wsInitChannel.onConnectFailed=function(){null!==t.api&&(t.api.showCheckError(q.PLUGIN_SERVICE_NOTFOUND,!0),t.$emit("onLoadFailed",q.PLUGIN_SERVICE_NOTFOUND))},this.wsInitChannel.onDisconnected=function(){null!==t.api&&(t.api.showCheckError(q.PLUGIN_SERVICE_DISCONNECTED,!0),t.$emit("onDisconnected",q.PLUGIN_SERVICE_NOTFOUND))}}},{key:"beforeDestroy",value:function(){this.api&&this.api.stop(),null!==this.wsInitChannel&&this.wsInitChannel.close()}},{key:"tryLogin",value:function(){null!==this.api&&this.server.length>0&&this.getDcs().loginByUrl(this.server)}},{key:"getDcs",value:function(){var t=this;if(null===this.dcs){if(null==this.api)throw new Error("api is null");this.dcs=new Vt(this.api.getWsPort(),null==this.wsInitChannel?null:this.wsInitChannel.getConnectedProxyIp()),this.dcs.loginCB=function(e,n){t.$emit("onLogin",e,n)}}return this.dcs}},{key:"onSnapshot",value:function(t,e){this.$emit("onSnapshot",t,e)}},{key:"onROI",value:function(t,e){this.$emit("onRoi",t,e)}},{key:"onExtData",value:function(t,e,n){this.$emit("onExtData",t,e,n),e===St.FACE_SNAP&&this.$emit("onRecg",t,n)}},{key:"onWinOp",value:function(t,e,n){this.$emit("onWinOp",t,e,n)}},{key:"onRecord",value:function(t,e,n){this.$emit("onRecord",t,e,n)}},{key:"onStreamStatus",value:function(t,e,n,i){this.$emit("onStreamStatus",t,e,n,i)}},{key:"onAudioState",value:function(t,e,n,i,r){this.$emit("onAudioState",t,e,n,i,r)}}]),n}(_.a);m([A({default:function(){return re}})],ae.prototype,"config",void 0),m([A({default:"dark"})],ae.prototype,"theme",void 0),m([A({default:""})],ae.prototype,"server",void 0),m([A({default:""})],ae.prototype,"proxy",void 0),m([P("$attrs.server",{immediate:!0})],ae.prototype,"onServerChange",null),m([P("$attrs.border",{immediate:!0})],ae.prototype,"onBorderChange",null);var se=ae=m([O({components:{}})],ae);function oe(t,e,n,i,r,a,s,o){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),s?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=l):r&&(l=o?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n("4b0b");var le=oe(se,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{class:["vatlive","vatlive-"+t.theme]})}),[],!1,null,null,null).exports;function ue(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ce(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return he(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?he(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){o=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function he(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n("551c");var de=function(){function t(e,n){a(this,t),this.windowCount=0,this.windows=[],this.selectedIndex=0,this.maxWindow=null,this.layout={rows:0,cols:0,combines:{}},this.enableDBClick=!1,this.resizeWatcher=new jt,this.getBDWx2=function(t){return t?t.offsetWidth-t.clientWidth:0},this.getBDHx2=function(t){return t?t.offsetHeight-t.clientHeight:0},this.tableLayout=e,this.cbCreateWindow=n,this.fastFrameUpdateId=0,this.fastFrameUpdateCount=0}return l(t,[{key:"setup",value:function(){var t=this,e=this.tableLayout.parentElement;return null!==e&&(this.resizeWatcher.watch(e,(function(){t.update()})),!0)}},{key:"destroy",value:function(){this.resizeWatcher.destroy(),this.updateLayout(0,0,{});var t,e=ce(this.windows);try{for(e.s();!(t=e.n()).done;)t.value.close()}catch(t){e.e(t)}finally{e.f()}this.windows=[]}},{key:"setLayout",value:function(t){this.layout=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ue(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t),this.updateLayout(this.layout.rows,this.layout.cols,this.layout.combines)}},{key:"getWindowCount",value:function(){return this.windowCount}},{key:"getSelectedIndex",value:function(){return this.selectedIndex}},{key:"getSelectedWindow",value:function(){return this.windows.length<=this.selectedIndex?null:this.windows[this.selectedIndex]}},{key:"update",value:function(){this.updateLayout(this.layout.rows,this.layout.cols,this.layout.combines)}},{key:"getWindow",value:function(t){return-1===t&&(t=this.selectedIndex),t<0||t>=this.windowCount?null:this.windows[t]}},{key:"showMaxWindow",value:function(t){var e=this;if(-1===t&&(t=this.selectedIndex),t<0||t>=this.windowCount)return!1;for(;this.tableLayout.firstChild;)this.tableLayout.removeChild(this.tableLayout.firstChild);this.maxWindow=this.windows[t],this.maxWindow.element.parentElement&&this.maxWindow.element.parentElement.removeChild(this.maxWindow.element);var n=document.createElement("td");n.setAttribute("rowSpan","1"),n.setAttribute("colSpan","1"),n.setAttribute("windex",""+t),n.setAttribute("max","true"),n.classList.add("no-border"),n.style.borderWidth="0px",n.appendChild(this.maxWindow.element),this.enableDBClick&&(n.ondblclick=function(t){e.showNormalWindow()});var i=document.createElement("tr");return i.appendChild(n),this.tableLayout.appendChild(i),this.adjustSize(),!0}},{key:"showNormalWindow",value:function(){if(null!=this.maxWindow&&null!=this.maxWindow.element.parentElement){for(this.maxWindow.element.parentElement.removeChild(this.maxWindow.element);this.tableLayout.firstChild;)this.tableLayout.removeChild(this.tableLayout.firstChild);this.updateLayout(this.layout.rows,this.layout.cols,this.layout.combines),this.maxWindow=null,this.adjustSize()}}},{key:"selectWindow",value:function(t){if(this.selectedIndex>=0&&this.selectedIndex<this.windowCount){var e=this.windows[this.selectedIndex].element.parentElement;null!=e&&e.classList.remove("selected")}if(this.windowCount>1){var n=this.windows[t].element.parentElement;null!==n&&n.classList.add("selected")}this.selectedIndex,this.selectedIndex=t,this.selectedIndex}},{key:"adjustSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(this.tableLayout.parentElement){var i=this.layout.rows,r=this.layout.cols;null!=this.maxWindow&&(i=1,r=1),-1===e&&(e=this.tableLayout.parentElement.clientWidth),-1===n&&(n=this.tableLayout.parentElement.clientHeight),e<t.MIN_WIDTH&&(e=t.MIN_WIDTH),n<t.MIN_HEIGHT&&(n=t.MIN_HEIGHT);var a=this.tableLayout.cellSpacing;""===a&&null!==this.tableLayout.style.borderSpacing&&(a=this.tableLayout.style.borderSpacing),""===a&&(a="0");var s=parseInt(a,10),o=this.tableLayout.querySelector("td");if(o){var l=2;e=(e-l-s*(r+1)-this.getBDWx2(o)*r)/r,n=(n-l-s*(i+1)-this.getBDHx2(o)*i)/i,e=Math.max(Math.floor(e),0),n=Math.max(Math.floor(n),0);var u=s+this.getBDHx2(o),c=s+this.getBDWx2(o);if(null!=this.maxWindow)this.maxWindow.adjustSize(e,n,u,c,1),this.maxWindow.showMain(!0);else for(var h=i*r,d=h/4,f=0;f<this.windowCount;f+=1)if(this.windows[f]){this.windows[f].adjustSize(e,n,u,c,-1),Math.pow(this.windows[f].span,2)>=d?this.windows[f].showMain(!0):this.windows[f].showMain(!1);var m=this.findTDElement(this.windows[f].element);m&&(m.style.height="0px")}}}}},{key:"findTDElement",value:function(t){var e=null;do{if("TD"===t.nodeName&&null!=t.getAttribute("windex")){e=t;break}if(!t.parentElement)return null;t=t.parentElement}while("BODY"!==t.nodeName);return e}},{key:"updateLayout",value:function(t,e,n){for(var i=this,r={},a=0,s=0;s<this.windowCount;s++)this.windows[s].element.parentElement&&this.windows[s].element.parentElement.removeChild(this.windows[s].element);for(this.maxWindow=null;this.tableLayout.firstChild;)this.tableLayout.removeChild(this.tableLayout.firstChild);for(var o=0;o<t;o++){for(var l=document.createElement("tr"),u=0;u<e;u++){var c=o*e+u;if(null==r[c]){var h=n[c];if(null==h)h=1;else if(h>1)for(var d=0;d<h;d++)for(var f=0;f<h;f++)r[(o+d)*e+u+f]=1;var m=document.createElement("td");if(m.setAttribute("rowSpan",""+h),m.setAttribute("colSpan",""+h),m.setAttribute("windex",""+a),0===a&&t*e==1&&(m.classList.add("no-border"),m.style.borderWidth="0px"),l.appendChild(m),this.enableDBClick&&(m.ondblclick=function(t){i.showMaxWindow(i.findWinIndex(t.target))}),m.onclick=function(t){null==i.maxWindow&&i.selectWindow(i.findWinIndex(t.target))},a<this.windows.length){var p=this.windows[a];p.element.style.width="1px",p.element.style.height="1px",m.appendChild(p.element),this.windows[a]=p,p.index=a,p.span=h}else{var _=this.cbCreateWindow(a,m);_.span=h,this.windows.push(_)}a++}}this.tableLayout.appendChild(l)}for(var g=a;g<this.windowCount;g++)this.windows[g].pause();this.windowCount=a,this.adjustSize();for(var v=0;v<a;v++)this.windows[v].resume();this.windowCount>0&&(this.selectedIndex>=this.windowCount&&(this.selectedIndex=0),this.selectWindow(this.selectedIndex))}},{key:"findWinIndex",value:function(t){var e=null;do{if("TD"===t.nodeName&&null!=t.getAttribute("windex")){e=t;break}if(!t.parentElement)break;t=t.parentElement}while("BODY"!==t.nodeName);if(null!==e){var n=e.getAttribute("windex");if(null!==n)return parseInt(n,10)}return-1}}]),t}();de.MAX_CHANNEL_COUNT=9,de.MIN_WIDTH=10,de.MIN_HEIGHT=10,de.WIN_OP_CLOSE="close",de.WIN_OP_SELECT="select";var fe,me,pe=function(){function t(e,n){a(this,t),this.id="",this.originIndex=e,this.index=e,this.span=1,this.width=0,this.height=0,this.name="",this.element=document.createElement("div"),this.element.setAttribute("class","vatwin"),this.element.setAttribute("windex",""+e),this.extRenderDom=document.createElement("canvas"),this.extRenderDom.setAttribute("class","vatwin-extrender-canvas"),this.extRender2d=this.extRenderDom.getContext("2d"),this.element.appendChild(this.extRenderDom),n.appendChild(this.element)}return l(t,[{key:"setExtCanvasSize",value:function(t,e,n,i){this.extRenderDom.width=n,this.extRenderDom.height=i,this.extRenderDom.style.left="".concat(t,"px"),this.extRenderDom.style.top="".concat(e,"px")}},{key:"adjustSize",value:function(t,e,n,i,r){r<=0&&(r=this.span),this.width=t*r,this.height=e*r,r>1&&(this.width+=(r-1)*i,this.height+=(r-1)*n),this.element.style.width="".concat(this.width,"px"),this.element.style.height="".concat(this.height,"px"),this.onResize(this.width,this.height)}}]),t}();function _e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}pe.DRAG_MIME="text",pe.TITLE_BAR_HEIGHT=16,pe.SB_CMD_SPEED="speed",pe.SB_CMD_STREAM_STATUS="stream_status",pe.SB_CMD_INFO="info",pe.SB_CMD_STREAM_SIZE="stream_size",pe.SB_CMD_RECORD_STATE="record_state",pe.SB_CMD_AUDIO_STATE="audio_state",pe.CMD_OPEN_CHANNEL="openchannel",pe.CMD_CLOSE_CHANNEL="closechannel",pe.CMD_SET_VIEWPORT="set_viewport",pe.CMD_REQ_SNAPSHOT="req_snapshot",pe.CMD_START_RECORD="start_record",pe.CMD_STOP_RECORD="stop_record",pe.CMD_SWITCH_AUDIO="switch_audio",pe.CMD_SWITCH_TALK="switch_talk",pe.CMD_SET_STREAM_MODE="set_mode",pe.CMD_SET_STREAM_DELAY="set_delay",pe.CMD_SET_STREAM_FORMAT="set_format",function(t){t[t.STOPPED=0]="STOPPED",t[t.WAIT_RESULT=1]="WAIT_RESULT",t[t.RUNNING=2]="RUNNING",t[t.FINISHED=3]="FINISHED"}(fe||(fe={})),function(t){t[t.UNKOWN=0]="UNKOWN",t[t.DONE=1]="DONE",t[t.CONNECT_FAILED=2]="CONNECT_FAILED",t[t.NOT_FOUND=3]="NOT_FOUND"}(me||(me={}));var ge,ve,ye=function(){function t(e,n,i){var r=this;a(this,t),this.cmdCaches=[],this.streamIndex=0,this.streamStatus=fe.STOPPED,this.direction=1,this.backwardCaches=[],this.wsChannel=new kt,this.onRecords=function(t,e,n){return 0},this.onStream=function(t){return 0},this.onLoad=function(){return 0},this.onPlayState=function(t){return 0},this.onOpenFileState=function(t){return 0},this.onStreamFinish=function(t,e){return 0},this.onSnapshot=function(t,e,n){return 0},this.wsChannel.init(e,i,n),this.wsChannel.onConnected=function(){for(;r.cmdCaches.length>0;){var t=r.cmdCaches.shift();r.wsChannel.sendRaw(t)}null!==r.onLoad&&r.onLoad()},this.wsChannel.onCommand=function(e,n){"records"===e?null!==r.onRecords&&r.onRecords(n.startTime,n.endTime,n.records):e===t.CMD_PLAY_STATE?n.index===r.streamIndex&&(n.success?r.streamStatus=fe.RUNNING:r.streamStatus=fe.STOPPED,r.onPlayState(n.success,n.code)):e===t.CMD_STREAM_STATE?(r.dispatchAllCaches(),r.onStreamFinish(n.state,n.time)):e===t.CMD_RES_SNAPSHOT?r.onSnapshot(n.data,n.path,n.time):e===t.CMD_OPEN_FILE_RES?r.onOpenFileState(n.code,n.duration):console.log(n)},this.wsChannel.onFrame=function(t,e,n){r.handleFrame({type:t,data:e,time:n})},this.deviceInfo=null}return l(t,[{key:"setFormat",value:function(t){this.wsChannel.setFormat(t)}},{key:"open",value:function(t){this.deviceInfo=t,this.sendOpenDevice()}},{key:"openFile",value:function(e){var n=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_e(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({cmd:t.CMD_OPEN_FILE_REQ},e);this.queueOrSend(n)}},{key:"channel",value:function(){return this.wsChannel}},{key:"play",value:function(e,n,i){var r=++this.streamIndex;this.streamStatus=fe.WAIT_RESULT,this.direction=n,this.backwardCaches=[],this.queueOrSend({cmd:t.CMD_PLAY,pos:e,direction:n,index:r}),this.setSpeed(i)}},{key:"stop",value:function(){this.streamStatus=fe.STOPPED,this.wsChannel.stop()}},{key:"pause",value:function(){this.wsChannel.pause()}},{key:"resume",value:function(t){this.wsChannel.resume(t)}},{key:"changeDirection",value:function(t){this.wsChannel.changeDirection(t)}},{key:"setSpeed",value:function(e){this.queueOrSend({cmd:t.CMD_SET_SPEED,speed:e})}},{key:"query",value:function(e,n){this.queueOrSend({cmd:t.CMD_QUERY_RECORD,startTime:e,endTime:n})}},{key:"snapshot",value:function(t){return this.wsChannel.snapshot(t)}},{key:"close",value:function(){this.wsChannel.close(),this.cmdCaches=[]}},{key:"queueOrSend",value:function(t){this.wsChannel.sendRaw(JSON.stringify(t))||this.cmdCaches.push(JSON.stringify(t))}},{key:"sendOpenDevice",value:function(){if(null===this.deviceInfo)return!1;var e={cmd:t.CMD_OPEN_DEVICE,id:this.deviceInfo.id,startTime:this.deviceInfo.minTime,endTime:this.deviceInfo.maxTime};return this.queueOrSend(e),!0}},{key:"handleFrame",value:function(t){if(this.direction>0)this.onStream(t);else if(0===this.backwardCaches.length)this.backwardCaches.push(t);else if(t.time<this.backwardCaches[0].time||this.backwardCaches.length>100){for(;this.backwardCaches.length>0;){var e=this.backwardCaches.pop();e&&this.onStream(e)}this.backwardCaches.push(t)}else this.backwardCaches.push(t)}},{key:"dispatchAllCaches",value:function(){for(;this.backwardCaches.length>0;){var t=this.backwardCaches.pop();t&&this.onStream(t)}}}]),t}();function be(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function we(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?be(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}ye.CMD_INIT_CHANNEL="init_channel",ye.CMD_OPEN_DEVICE="open_device",ye.CMD_OPEN_FILE_REQ="req_open_file",ye.CMD_OPEN_FILE_RES="res_open_file",ye.CMD_QUERY_RECORD="query_record",ye.CMD_PLAY="play",ye.CMD_SET_FORMAT="set_format",ye.CMD_STOP_STREAM="stop_stream",ye.CMD_PAUSE_STREAM="pause_stream",ye.CMD_RESUME_STREAM="resume_stream",ye.CMD_SET_SPEED="set_speed",ye.CMD_PLAY_STATE="play_state",ye.CMD_STREAM_STATE="stream_state",ye.CMD_REQ_SNAPSHOT="req_snapshot",ye.CMD_RES_SNAPSHOT="res_snapshot",ye.CMD_CHANGE_DIRECTION="change_direction",function(t){t[t.STOPPED=0]="STOPPED",t[t.FORWARD_PLAYING=1]="FORWARD_PLAYING",t[t.BACKWARD_PLAYING=2]="BACKWARD_PLAYING",t[t.STEP_PLAYING=3]="STEP_PLAYING",t[t.PAUSED=4]="PAUSED"}(ge||(ge={})),function(t){t[t.BACKWARD=-1]="BACKWARD",t[t.FORWARD=1]="FORWARD"}(ve||(ve={}));var Me=function(t){c(n,t);var e=xe(n);function n(t,i,r,s,o){var l;a(this,n),(l=e.call(this,t,i)).direction=ve.FORWARD,l.frames=[],l.framePos=0,l.playTimer=0,l.firstPlayTick=0,l.firstPlayTime=0,l.finishTime=-1,l.onPlayState=function(t){return 0},l.speed=1,l.posSec=0,l.playTime=0,l.record={startTime:0,endTime:0,type:0},l.onStatus=function(t){return 1},l.onPosChange=function(t){return 1},l.onSnapshot=function(t,e){return 1},l.onPlayFinished=function(t){return 1},l.onOpenFileState=function(t,e){return 1},l.extHandler=function(){return 1},l.status=ge.STOPPED,l.deviceInfo=null,s&&s.length>6?l.format=vt.JPEG:l.format=Dt.chooseLayerType(t)===Mt.YUV_VIDEO_LAYER?vt.YUV:vt.JPEG;var u=new Q;l.jpegRender=u,u.setAsync(0,(function(t,e,n){l.extRenderHandel(t,e,n)})),l.jpegLayer=new rt(l.element,"vatrender"),l.jpegLayer.setupRender(u);var c=new nt;return l.yuvRender=c,c.setAsync(0,(function(t,e,n){l.extRenderHandel(t,e,n)})),l.yuvLayer=new rt(l.element,"vatrender"),l.yuvLayer.setupRender(c),l.streamProxy=new ye(r,s,o),l.streamProxy.onLoad=function(){null!==l.deviceInfo&&l.streamProxy.open(l.deviceInfo),l.streamProxy.setFormat(l.format),l.streamProxy.setSpeed(l.speed)},l.streamProxy.onStream=function(t){l.status!==ge.STOPPED&&(l.frames.length>0&&t.time<l.frames[0].time?(l.framePos+=1,l.frames.unshift(t)):l.frames.push(t),(l.frames.length===n.CACHE_SIZE||l.frames.length>n.CACHE_SIZE+50)&&(0===l.playTimer&&l.streamProxy.pause(),l.frames.length>n.CACHE_SIZE+1&&(ve.FORWARD===l.direction?l.frames.shift():l.frames.pop(),l.firstPlayTick=0)))},l.streamProxy.onStreamFinish=function(t,e){l.finishTime=e,l.status===ge.FORWARD_PLAYING&&l.framePos>=l.frames.length?(l.stop(),l.onPlayFinished(l.record,ve.FORWARD)):l.status===ge.BACKWARD_PLAYING&&0===l.framePos&&(l.stop(),l.onPlayFinished(l.record,ve.BACKWARD))},l.streamProxy.onPlayState=function(t,e){t||l.stop(),l.onPlayState(t,e)},l.streamProxy.onSnapshot=function(t,e,n){l.onSnapshot(t,e,n)},l.streamProxy.onOpenFileState=function(t,e){l.onOpenFileState(t,e)},l}return l(n,[{key:"setDevice",value:function(t){this.deviceInfo=we({},t),this.record={startTime:t.minTime,endTime:t.maxTime,type:0},this.streamProxy.open(this.deviceInfo)}},{key:"setFile",value:function(t){this.streamProxy.openFile(t)}},{key:"playOne",value:function(t,e,n,i){this.record.startTime=Math.floor(new Date(t).getTime()/1e3),this.record.endTime=Math.floor(new Date(e).getTime()/1e3),this.record.type=n,this.posSec=i>0?i:this.record.startTime,this.play(ve.FORWARD)}},{key:"playPos",value:function(t,e){this.posSec=t>0?t:this.record.startTime,this.play(e)}},{key:"play",value:function(t){this.direction=t,ve.FORWARD===t?this.forward_play():ve.BACKWARD===t&&this.backward_play()}},{key:"syncPlay",value:function(t){ge.STOPPED!==this.status&&this.stop(),this.moveTo(t),this.status=ge.FORWARD_PLAYING,this.forward_play(!1)}},{key:"syncStep",value:function(){this.framePos>=0&&this.drawFrame(!0)}},{key:"minFrameTime",value:function(){return this.framePos>=this.frames.length?0:this.frames[0].time}},{key:"forward_play",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(ge.STOPPED!==this.status)return this.status=ge.FORWARD_PLAYING,this.checkStream(ve.FORWARD),void this.startPlayTimer(ve.FORWARD);(0===this.posSec||this.record.endTime>0&&this.posSec>=this.record.endTime)&&(this.posSec=this.record.startTime),this.finishTime=-1,this.streamProxy.play(this.posSec,1,this.speed),this.changeStatus(ge.FORWARD_PLAYING),this.jpegLayer.restoreView(),this.yuvLayer.restoreView(),t&&this.startPlayTimer(ve.FORWARD)}},{key:"backward_play",value:function(){if(ge.STOPPED!==this.status)return this.status=ge.BACKWARD_PLAYING,this.checkStream(ve.BACKWARD),void this.startPlayTimer(ve.BACKWARD);this.posSec!==this.record.startTime&&(this.finishTime=-1,this.streamProxy.play(this.posSec,-1,this.speed),this.changeStatus(ge.BACKWARD_PLAYING),this.jpegLayer.restoreView(),this.yuvLayer.restoreView(),this.startPlayTimer(ve.BACKWARD))}},{key:"stop",value:function(){this.streamProxy.stop(),this.changeStatus(ge.STOPPED),this.jpegLayer.stopView(),this.yuvLayer.stopView(),this.speed=1,this.stopPlayTimer(),this.framePos=0,this.frames=[]}},{key:"moveTo",value:function(t){t===this.posSec||t<this.record.startTime||(ge.STOPPED===this.status?(this.posSec=t,this.playTime=1e3*t):(this.streamProxy.stop(),this.jpegLayer.stopView(),this.yuvLayer.stopView(),this.stopPlayTimer(),this.framePos=0,this.frames=[],this.posSec=t,ge.FORWARD_PLAYING===this.status?(this.status=ge.STOPPED,this.forward_play()):ge.BACKWARD_PLAYING===this.status?(this.status=ge.STOPPED,this.backward_play()):ge.PAUSED===this.status&&(this.status=ge.STOPPED,ve.FORWARD===this.direction?this.forward_play():this.backward_play())))}},{key:"getPos",value:function(){return this.posSec}},{key:"stepPrev",value:function(){ge.STEP_PLAYING!==this.status&&(this.stopPlayTimer(),this.status=ge.STEP_PLAYING,this.checkStream(ve.BACKWARD)),this.framePos>=0&&this.drawFrame(!1)}},{key:"stepNext",value:function(){ge.STEP_PLAYING!==this.status&&(this.stopPlayTimer(),this.status=ge.STEP_PLAYING,this.checkStream(ve.FORWARD)),this.framePos<this.frames.length&&this.drawFrame(!0)}},{key:"close",value:function(){this.stop(),this.streamProxy.close()}},{key:"pause",value:function(){this.changeStatus(ge.PAUSED),this.streamProxy.pause(),this.stopPlayTimer()}},{key:"addSpeed",value:function(){this.speed>=8||this.setSpeed(2*this.speed)}},{key:"subSpeed",value:function(){this.speed<=.25||this.setSpeed(this.speed/2)}},{key:"setSpeed",value:function(t){this.speed=Math.floor(100*t)/100,this.streamProxy.setSpeed(t),this.firstPlayTick=0,this.firstPlayTime=0}},{key:"setRecord",value:function(t){null===t?ge.STOPPED!==this.status&&(this.stop(),this.record.startTime=this.record.endTime=0):t.startTime===this.record.startTime&&t.endTime===this.record.endTime||(this.record=we({},t))}},{key:"snapshot",value:function(){return this.framePos>=0&&this.framePos<this.frames.length&&this.streamProxy.snapshot(this.frames[this.framePos].time)?0:Tt.INVALID_STATE}},{key:"resume",value:function(){}},{key:"showMain",value:function(t){}},{key:"setExtRenderCallback",value:function(t){this.extHandler=t}},{key:"getTitleBarHeight",value:function(){return 0}},{key:"onResize",value:function(t,e){this.jpegLayer.move(0,0,t,e),this.yuvLayer.move(0,0,t,e),this.setExtCanvasSize(0,0,t,e),t>=8&&e>=8&&this.streamProxy.channel().setViewport(t,e-this.getTitleBarHeight())}},{key:"extRenderHandel",value:function(t,e,n){this.extRender2d&&this.extHandler(t,this.extRender2d,e,n)}},{key:"changeStatus",value:function(t){var e=t!==this.status;this.status=t,e&&this.onStatus(t)}},{key:"onPlayTimer",value:function(){var t=this;if(this.framePos<this.frames.length){var e=performance.now();if(0===this.firstPlayTick)this.firstPlayTick=e,this.firstPlayTime=this.frames[this.framePos].time,this.drawFrame(!0);else if(this.frames.length>n.MAX_WATER_LINE)this.frames.shift(),this.frames.shift(),this.framePos-=2,this.framePos<0&&(this.framePos=0),this.firstPlayTick=e,this.firstPlayTime=this.frames[this.framePos].time,this.drawFrame(!0);else{var i=(e-this.firstPlayTick)*this.speed-(this.frames[this.framePos].time-this.firstPlayTime);i>1e3?this.frames.length>=n.MAX_WATER_LINE&&(this.frames.shift(),this.framePos-=1,i=(e-this.firstPlayTick)*this.speed-(this.frames[this.framePos].time-this.firstPlayTime)):i<-1e3&&(this.firstPlayTick=e,this.firstPlayTime=this.frames[this.framePos].time),i>=0&&this.drawFrame(!0)}if(this.framePos===this.frames.length&&this.finishTime>=0&&this.frames[this.frames.length-1].time>=this.finishTime)return this.stop(),void this.onPlayFinished(this.record,ve.FORWARD)}this.playTimer=requestAnimationFrame((function(){return t.onPlayTimer()}))}},{key:"onPlayBackwardTimer",value:function(){var t=this;if(this.framePos>0){var e=performance.now();if(0===this.firstPlayTick)this.firstPlayTick=e,this.firstPlayTime=this.frames[this.framePos-1].time,this.drawFrame(!1);else{var n=(e-this.firstPlayTick)*this.speed-(this.firstPlayTime-this.frames[this.framePos-1].time);(n>1e3||n<-1e3)&&(this.firstPlayTick=e,this.firstPlayTime=this.frames[this.framePos-1].time),n>0&&this.drawFrame(!1)}if(0===this.framePos&&this.finishTime>0)return this.stop(),void this.onPlayFinished(this.record,ve.BACKWARD)}this.playTimer=requestAnimationFrame((function(){return t.onPlayBackwardTimer()}))}},{key:"drawFrame",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=null;if(t){if(this.framePos<this.frames.length){e=this.frames[this.framePos],this.framePos>=n.LOW_WATER_LINE?this.frames.shift():this.framePos++;var i=this.frames.length-this.framePos;i!==n.LOW_WATER_LINE&&5!==i||this.streamProxy.resume(1)}}else if(this.framePos>0){e=this.frames[--this.framePos],(this.framePos===n.LOW_WATER_LINE||0===this.framePos&&this.posSec>this.record.startTime)&&this.streamProxy.resume(-1);var r=this.frames.length-this.framePos;if(r>n.LOW_WATER_LINE)for(this.frames.pop(),r--;r>=n.MAX_WATER_LINE;)this.frames.pop(),r--}if(null!==e){e.type===gt.YUV420?this.yuvLayer.putData(2,e.data,e.time):e.type===gt.YUV?this.yuvLayer.putData(1,e.data,e.time):this.jpegLayer.putData(0,e.data,e.time),this.playTime=e.time;var a=Math.floor(this.playTime/1e3);a!==this.posSec&&(this.onPosChange(this.posSec),this.posSec=a)}}},{key:"startPlayTimer",value:function(t){var e=this;this.stopPlayTimer(),this.firstPlayTick=0,this.firstPlayTime=0,ve.BACKWARD===t?this.playTimer=requestAnimationFrame((function(){return e.onPlayBackwardTimer()})):this.playTimer=requestAnimationFrame((function(){return e.onPlayTimer()}))}},{key:"stopPlayTimer",value:function(){0!==this.playTimer&&(cancelAnimationFrame(this.playTimer),this.playTimer=0)}},{key:"checkStream",value:function(t){ve.FORWARD===t?this.frames.length-this.framePos<=n.LOW_WATER_LINE&&(this.streamProxy.changeDirection(1),this.streamProxy.resume(1)):ve.BACKWARD===t&&this.frames.length<=n.LOW_WATER_LINE&&this.posSec>this.record.startTime&&(this.streamProxy.changeDirection(-1),this.streamProxy.resume(-1))}}]),n}(pe);Me.CACHE_SIZE=200,Me.MAX_WATER_LINE=70,Me.LOW_WATER_LINE=25;var Se=n("4971"),Le=n.n(Se);function ke(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}n("3e39");var Te=function(t){c(n,t);var e=ke(n);function n(){var t;return a(this,n),(t=e.apply(this,arguments)).volume=50,t.options={dotSize:14,width:4,height:100,contained:!1,direction:"btt",min:0,max:100,interval:1,disabled:!1,clickable:!0,duration:.5,adsorb:!1,lazy:!1,tooltip:"focus",tooltipPlacement:"top"},t}return l(n,[{key:"onBtnClick",value:function(t,e){this.$emit("onBtnClick",t,e)}},{key:"speedStr",get:function(){return.25===this.speed?"0.25":this.speed>0?"".concat(this.speed.toFixed(1)):"1.0"}},{key:"disablePrevStep",get:function(){return this.syncMode||ve.BACKWARD!==this.playDirection||this.playStatus!==ge.STEP_PLAYING&&this.playStatus!==ge.BACKWARD_PLAYING}},{key:"disableNextStep",get:function(){return this.syncMode||ve.FORWARD!==this.playDirection||this.playStatus!==ge.STEP_PLAYING&&this.playStatus!==ge.FORWARD_PLAYING}},{key:"disableSpeed",get:function(){return this.syncMode||this.playStatus!==ge.FORWARD_PLAYING&&this.playStatus!==ge.BACKWARD_PLAYING}},{key:"showForwardPlay",get:function(){return ge.STOPPED===this.playStatus||ve.FORWARD===this.playDirection&&this.playStatus!==ge.FORWARD_PLAYING}},{key:"showBackwardPlay",get:function(){return ge.STOPPED===this.playStatus||ve.BACKWARD===this.playDirection&&this.playStatus!==ge.BACKWARD_PLAYING}},{key:"showPause",get:function(){return ge.FORWARD_PLAYING===this.playStatus||ge.BACKWARD_PLAYING===this.playStatus}},{key:"showPauseTemp",get:function(){return ge.STEP_PLAYING===this.playStatus&&ve.BACKWARD===this.playDirection}},{key:"disableStop",get:function(){return this.playStatus===ge.STOPPED}}]),n}(_.a);m([A({default:ge.STOPPED})],Te.prototype,"playStatus",void 0),m([A({default:ve.FORWARD})],Te.prototype,"playDirection",void 0),m([A({default:!1})],Te.prototype,"isFullscreen",void 0),m([A({default:!1})],Te.prototype,"isExpand",void 0),m([A({default:!1})],Te.prototype,"isSingle",void 0),m([A({default:1})],Te.prototype,"speed",void 0),m([A({default:!1})],Te.prototype,"syncMode",void 0),m([A({default:!1})],Te.prototype,"noBack",void 0);var De,Ce=Te=m([O({components:{VueSlider:Le.a}})],Te),Ee=(n("272c"),oe(Ce,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"vat-tool"}},[t.isSingle?t._e():n("div",{staticClass:"scale-btns"},[n("svg",{staticClass:"icon",attrs:{width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("scale-up")}}},[n("title",[t._v("放大时间轴")]),n("path",{attrs:{fill:"#ffffff",d:"M911.9 839.2l-161-160.9C871 517.7 838.2 290.1 677.5 170s-388.2-87.3-508.3 73.4C122.3 306.1 97 382.4 97 460.8 97 661.4 259.6 824 460.1 824c78.4 0 154.7-25.4 217.5-72.3l160.8 160.8c20.2 20.3 53.1 20.3 73.4 0.1 20.3-20.3 20.3-53.1 0.1-73.4zM408.2 408.9h-51.9c-28.7 0-51.9 23.2-51.9 51.9s23.2 51.9 51.9 51.9h51.9v51.9c0 28.7 23.2 51.9 51.9 51.9s51.9-23.2 51.9-51.9v-51.9h51.9c28.7 0 51.9-23.2 51.9-51.9s-23.2-51.9-51.9-51.9H512V357c0-28.7-23.2-51.9-51.9-51.9s-51.9 23.2-51.9 51.9v51.9z m51.9 311.3c-143.3 0-259.4-116.1-259.4-259.4s116.1-259.4 259.4-259.4 259.4 116.1 259.4 259.4-116.1 259.4-259.4 259.4z"}})]),n("svg",{staticClass:"icon",attrs:{width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("scale-down")}}},[n("title",[t._v("缩小时间轴")]),n("path",{attrs:{fill:"#ffffff",d:"M911.8 839.7L750.9 678.8c120.1-160.6 87.3-388.2-73.4-508.3s-388.2-87.3-508.3 73.4C122.4 306.7 97 383 97 461.4c0 200.5 162.6 363.1 363.1 363.1 78.4 0 154.7-25.4 217.5-72.3L838.4 913c20.2 20.3 53.1 20.3 73.4 0.1s20.3-53.1 0-73.4z m-451.7-119c-143.2 2-261-112.4-263-255.7s112.4-261 255.7-263h7.3c143.2 0 259.4 116.1 259.4 259.4S603.4 720.7 460.1 720.7zM304.5 461.4c0 28.6 23.2 51.9 51.9 51.9h207.5c28.6 0 51.9-23.2 51.9-51.9 0-28.6-23.2-51.9-51.9-51.9H356.4c-28.7 0-51.9 23.2-51.9 51.9z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false && !isExpand"}],staticClass:"icon",attrs:{width:"32px",height:"31.97px",viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("expand")}}},[n("path",{attrs:{fill:"#ffffff",d:"M421.167248 520.869741 431.487222 531.189716C434.239215 533.941709 436.991208 536.521702 439.743201 538.929696 442.495194 541.33769 445.247187 543.917684 447.99918 546.669677L460.383149 559.053645C474.143115 572.813611 479.647101 584.853581 476.895108 595.173555 474.143115 605.493529 465.543136 617.533499 451.095172 631.293465 444.903188 638.173448 434.755213 648.665421 420.651248 662.769387 406.547283 676.873351 391.411321 692.181313 375.243362 708.693272 359.075403 725.20523 343.423442 741.02919 328.287479 756.165154 313.151516 771.301117 301.455544 783.341087 293.199566 792.285066 280.815596 804.66903 272.215618 815.505006 267.39963 824.792986 262.583643 834.080957 264.647637 843.196936 273.591614 852.140914 279.783599 858.3329 287.695579 866.588877 297.327555 876.908851 306.959532 887.228826 315.215511 895.828803 322.095494 902.708791 333.791465 914.404762 338.091455 924.724736 334.995462 933.668714 331.899468 942.612693 321.751494 947.772676 304.551537 949.148672 286.663582 951.21267 266.711632 953.620661 244.695687 956.372653 222.679742 959.124645 199.975798 961.704637 176.583856 964.112636 153.191915 966.520627 130.315972 969.100619 107.956028 971.852619 85.596084 974.604611 65.128135 977.012602 46.552181 979.0766 28.664225 981.14059 16.280256 978.9046 9.400274 972.368612 2.520291 965.832633-0.231702 954.308655 1.144295 937.796703 2.520291 920.59674 4.412286 901.332787 6.82028 880.004844 9.228274 858.676894 11.808268 836.832949 14.560261 814.473011 17.312254 792.113065 19.892247 769.925118 22.300241 747.909174 24.708235 725.893229 26.944229 705.597279 29.008224 687.021325 31.072219 667.069375 36.748205 654.341407 46.036182 648.837421 55.324159 643.333434 65.816133 646.429427 77.512104 658.125397 84.392086 665.00538 93.336064 673.433359 104.344037 683.409334 115.35201 693.38531 124.639987 702.157288 132.207967 709.725269 139.775949 717.29325 146.999931 719.701243 153.879914 716.94925 160.759897 714.197257 168.671877 708.693271 177.615855 700.437291 186.559832 691.493314 198.771802 679.109344 214.251763 663.285384 229.731725 647.461423 245.899685 631.121464 262.755643 614.265506 279.611601 597.409548 295.95156 580.897589 311.775521 564.729629 327.599482 548.56167 340.32745 535.661701 349.959426 526.029726 354.087415 521.901736 358.731403 517.945746 363.891391 514.161755 369.051378 510.377765 374.727363 507.797772 380.919349 506.421775 387.111333 505.045779 393.475318 505.389778 400.011301 507.453772 406.547285 509.517767 413.599267 513.989756 421.167249 520.869738L421.167248 520.869741ZM943.357944 0.743038C961.245901-1.320957 973.629873 0.915038 980.509854 7.451021 987.389834 13.987005 990.141826 25.510976 988.76583 42.022935 987.389834 59.222892 985.497844 78.486844 983.089845 99.814791 980.681854 121.142738 978.101862 142.986683 975.34987 165.346628 972.59787 187.706572 970.017879 210.066516 967.609888 232.42646 965.201888 254.786404 962.965898 275.254353 960.9019 293.830307 958.83791 313.782257 953.161925 326.338226 943.873946 331.498213 934.585966 336.6582 924.093991 333.390208 912.398021 321.694238 905.518041 314.814255 896.058061 305.870277 884.018097 294.862304 871.978126 283.854331 862.174145 274.566354 854.606171 266.998374 847.038188 259.430393 840.502201 256.162401 834.998217 257.194398 829.494233 258.226396 822.614244 262.870384 814.358268 271.126363 804.726288 280.758339 792.170323 293.486307 776.690361 309.310268 761.2104 325.134229 744.87044 341.818187 727.670483 359.362143 710.470526 376.9061 693.614568 393.934058 677.102609 410.446016L638.918704 448.629921C634.790714 452.75791 630.318726 456.8859 625.502738 461.01389 620.68675 465.14188 615.354763 468.237871 609.506777 470.301866 603.658791 472.365861 597.466807 472.70986 590.930823 471.333864 584.394839 469.957868 577.686856 465.485878 570.806873 457.917898L531.590971 418.701996C517.831005 404.94203 511.81102 392.386061 513.531015 381.03409 515.251011 369.682118 522.990992 357.12615 536.750958 343.366184 542.942942 337.1742 553.262917 326.682225 567.710881 311.890263 582.158845 297.098299 597.638806 281.446338 614.150765 264.934379 630.662723 248.42242 646.658683 232.25446 662.138645 216.4305 677.618608 200.606539 689.830577 188.566569 698.774554 180.310589 711.158523 167.92662 718.898504 157.778645 721.994496 149.866665 725.090488 141.954685 722.166496 133.526707 713.222518 124.582728 707.030534 118.390744 699.634553 110.822763 691.034574 101.878785 682.434595 92.934806 674.694613 85.022826 667.814631 78.142844 656.11866 66.446872 651.818671 56.126898 654.914664 47.182921 658.010656 38.238943 668.158631 32.734957 685.358588 30.670962 702.558544 28.606966 722.338495 26.198972 744.69844 23.44698 767.058385 20.694987 789.934324 18.114994 813.326265 15.706999 836.718206 13.299005 859.594153 10.719011 881.954099 7.967019 904.314045 5.215026 924.781993 2.807033 943.357944 0.743037L943.357944 0.743038Z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false && isExpand"}],staticClass:"icon",attrs:{width:"32px",height:"29.87px",viewBox:"0 0 1097 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("shrink")}}},[n("path",{attrs:{fill:"#ffffff",d:"M440.555466 539.129028C457.859892 537.206314 470.037082 539.769933 477.087033 546.819885 484.136985 553.869837 487.021056 565.726573 485.739246 582.390095 484.457437 599.694521 482.534723 619.242114 479.971104 641.032874 477.407485 662.823633 474.68364 685.09507 471.79957 707.847187 468.915499 730.599304 466.191653 753.191191 463.628035 775.622858 461.064416 798.054524 458.82125 818.883924 456.898536 838.111064 454.975822 858.620016 449.20768 871.598332 439.594109 877.046027 429.980539 882.493714 419.405611 879.128968 407.869326 866.951774 400.819375 859.901828 391.84671 851.249615 380.95133 840.995135 370.055951 830.740663 360.762832 822.088449 353.071976 815.038495 344.740215 806.706737 337.049358 803.822666 329.999407 806.386282 322.949455 808.949906 314.938147 814.718048 305.965481 823.690709 296.351911 833.304279 283.694043 846.122375 267.991878 862.144989 252.289714 878.167611 235.946644 894.831128 218.962669 912.135562 201.978694 929.439988 185.475399 946.263732 169.452782 962.606802 153.430166 978.949871 140.29162 991.928194 130.037144 1001.541764 126.191715 1006.028095 121.545156 1010.193978 116.097467 1014.039406 110.649777 1017.884834 104.881635 1020.608677 98.79304 1022.210937 92.704446 1023.813203 86.295398 1023.652976 79.565899 1021.730262 72.8364 1019.807548 65.626222 1015.000763 57.935366 1007.309907 53.449033 1002.823569 49.763831 999.298596 46.879759 996.734979 43.995688 994.171356 41.271843 991.607739 38.708225 989.044123L30.056012 980.39191 17.55837 967.894269C3.458467 953.794361-2.149449 941.617174 0.734622 931.362695 3.618693 921.108222 12.110681 908.610581 26.210583 893.869771 32.61963 887.460727 43.194557 877.046027 57.935366 862.625672 72.676174 848.205316 88.218112 832.663377 104.561182 815.999852 120.904251 799.336336 136.766642 783.153486 152.148356 767.451327 167.530069 751.74916 179.707258 739.411746 188.679923 730.439078 201.498017 717.620984 210.15023 706.565377 214.636563 697.27226 219.122896 687.979142 216.879729 678.84625 207.907063 669.873584 201.498017 663.464538 193.486709 654.97255 183.873138 644.397623 174.259568 633.822696 165.927807 625.010256 158.877855 617.960304 147.341571 606.42402 143.015463 596.009319 145.899534 586.7162 148.783605 577.423083 159.198306 571.815167 177.143638 569.892453 195.08897 567.969739 215.277467 565.566346 237.709131 562.682275 260.140795 559.798203 283.213364 557.074359 306.926838 554.51074 330.640312 551.947122 354.033333 549.223277 377.105902 546.339206 400.17847 543.455135 421.328325 541.051742 440.555466 539.129028L440.555466 539.129028ZM1013.52426 53.643725C1027.624161 67.743628 1033.872985 80.401496 1032.270718 91.617328 1030.668459 102.833159 1022.496928 115.81148 1007.756118 130.552288 1000.706164 137.602239 989.97101 148.497619 975.550654 163.238427 961.130299 177.979235 945.428139 193.841626 928.44416 210.825601 911.460189 227.809575 895.117119 244.312871 879.414952 260.335487 863.712785 276.358104 851.375371 288.855745 842.402703 297.828412 829.584615 310.646506 821.733531 320.90098 818.84946 328.591836 815.965389 336.282693 819.009687 344.614454 827.982348 353.58712 834.3914 359.996166 841.922029 367.847249 850.574242 377.140367 859.226455 386.433485 867.077538 394.60502 874.127492 401.654971 885.663777 413.191256 889.829652 423.605957 886.625134 432.899075 883.420608 442.192194 873.166135 447.800109 855.861709 449.722823 837.916373 451.645537 817.727876 454.04893 795.296209 456.933001 772.864551 459.817072 749.631755 462.540917 725.597827 465.104535 701.563902 467.668154 678.010654 470.391998 654.938085 473.27607 631.865516 476.160141 611.036114 478.563534 592.449878 480.486248 559.122834 484.331676 543.741122 470.231773 546.304741 438.186538 548.227455 420.882111 550.310395 401.334518 552.553561 379.543759 554.796727 357.753 557.360347 335.321336 560.244418 312.248766 563.128489 289.176198 565.852334 266.424081 568.415952 243.992417 570.979571 221.560753 573.222737 200.73135 575.145451 181.50421 577.068165 160.99526 582.836308 148.016939 592.449878 142.569249 602.063449 137.121559 612.958828 140.486308 625.136017 152.663498 628.340541 156.508926 632.506421 160.835033 637.633659 165.641818 642.760897 170.448603 648.04836 175.415614 653.49605 180.542852 658.943739 185.670089 664.231204 190.6371 669.358441 195.443886 674.485679 200.250671 678.972012 204.576777 682.81744 208.422206 691.1492 216.753967 697.878699 220.439169 703.005937 219.477812 708.133174 218.516455 715.183126 213.549444 724.155792 204.576779 733.76936 194.963208 746.587456 181.984887 762.610071 165.641818 778.632693 149.298748 795.456437 132.314774 813.081318 114.689895 830.706199 97.065016 847.690171 79.920815 864.03324 63.257294 880.376309 46.593772 893.67508 33.134773 903.92956 22.880298 907.774988 19.034869 912.261318 15.029215 917.388558 10.863335 922.515791 6.697455 927.963485 3.653157 933.731628 1.730443 939.49977-0.192272 945.588367-0.512724 951.997411 0.769086 958.406455 2.050896 965.456409 6.537229 973.147265 14.228084 977.633596 18.714417 981.318796 22.239393 984.202875 24.803012 987.086946 27.366631 989.810789 29.93025 992.374406 32.493869L1001.026619 41.146082 1013.52426 53.643725Z"}})])]),n("div",{staticClass:"btns"},[n("svg",{class:{icon:!0,disabled:!t.showBackwardPlay||t.syncMode||t.noBack},attrs:{id:"play-back",width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("play",-1)}}},[n("title",[t._v("倒放")]),n("path",{attrs:{fill:"#ffffff",d:"M160.250617 511.747125L863.749383 0v1024l-703.498766-512.252875z"}})]),n("svg",{class:{icon:!0,disabled:t.disableStop},attrs:{id:"stop",width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("stop")}}},[n("title",[t._v("停止")]),n("path",{attrs:{fill:"#ffffff",d:"M157.538462 157.538462h708.923076v708.923076H157.538462V157.538462z"}})]),n("svg",{class:{icon:!0,disabled:t.disablePrevStep},attrs:{id:"prev",width:"36px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("prev")}}},[n("title",[t._v("上一帧")]),n("path",{attrs:{fill:"#ffffff",d:"M635.74 805.62V218.38c0-59.56-67.95-93.96-115.77-57.89L126.94 454.12c-38.59 28.94-38.59 87.24 0 116.19l393.03 293.62c47.82 35.23 115.77 1.25 115.77-58.31z m226.5-679.52c-35.23 0-63.76 28.52-63.76 63.76v644.28c0 35.23 28.53 63.76 63.76 63.76S926 869.37 926 834.14V189.86c0-35.23-28.52-63.76-63.76-63.76z m0 0"}})]),n("svg",{class:{icon:!0,disabled:t.disableSpeed},attrs:{id:"back",width:"32px",height:"32.01px",viewBox:"0 0 1260 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("back")}}},[n("title",[t._v("慢放")]),n("path",{attrs:{fill:"#ffffff",d:"M1181.831855 12.560526l-536.645044 462.060479a50.329422 50.329422 0 0 0 0 72.76543l536.645044 463.879615a46.084772 46.084772 0 0 0 77.616459-36.382715V48.943241a46.084772 46.084772 0 0 0-77.616459-36.382715zM552.410888 12.560526L15.765843 474.621005A49.723044 49.723044 0 0 0 15.765843 546.173678l536.038666 465.092372a46.084772 46.084772 0 0 0 77.616459-36.382715V48.943241A46.084772 46.084772 0 0 0 552.410888 12.560526z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:t.showForwardPlay,expression:"showForwardPlay"}],staticClass:"icon",attrs:{id:"play",width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("play",1)}}},[n("title",[t._v("播放")]),n("path",{attrs:{fill:"#ffffff",d:"M73.142857 0 910.957714 512 73.142857 1024Z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:t.showPause,expression:"showPause"}],staticClass:"icon",attrs:{id:"pause",width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("pause")}}},[n("title",[t._v("暂停")]),n("path",{attrs:{fill:"#ffffff",d:"M379.337561 118.348432 145.347343 118.348432c-8.113795 0-16.247033 3.097548-22.444175 9.295714-6.197142 6.1777-9.295714 14.309914-9.295714 22.424732l0 729.759559c0 8.094352 3.098571 16.22759 9.295714 22.424732 6.197142 6.176676 14.33038 9.276271 22.444175 9.276271l233.990219 0c8.113795 0 16.247033-3.098571 22.444175-9.276271 6.1777-6.197142 9.275247-14.33038 9.275247-22.424732l0-729.760582c0-8.112772-3.098571-16.247033-9.275247-22.424732C395.584594 121.447003 387.451356 118.348432 379.337561 118.348432L379.337561 118.348432zM897.531634 127.643122c-6.197142-6.197142-14.33038-9.295714-22.444175-9.295714L641.09724 118.347408c-8.113795 0-16.247033 3.098571-22.444175 9.295714-6.196119 6.1777-9.295714 14.31196-9.295714 22.424732l0 729.759559c0 8.094352 3.099594 16.22759 9.295714 22.424732 6.197142 6.176676 14.33038 9.275247 22.444175 9.275247l233.990219 0c8.113795 0 16.247033-3.098571 22.444175-9.275247 6.197142-6.197142 9.275247-14.33038 9.275247-22.424732L906.806881 150.067854C906.806881 141.954059 903.727753 133.821845 897.531634 127.643122L897.531634 127.643122z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:t.showPauseTemp,expression:"showPauseTemp"}],staticClass:"icon disabled",attrs:{id:"pause2",width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[n("title",[t._v("暂停")]),n("path",{attrs:{fill:"#ffffff",d:"M379.337561 118.348432 145.347343 118.348432c-8.113795 0-16.247033 3.097548-22.444175 9.295714-6.197142 6.1777-9.295714 14.309914-9.295714 22.424732l0 729.759559c0 8.094352 3.098571 16.22759 9.295714 22.424732 6.197142 6.176676 14.33038 9.276271 22.444175 9.276271l233.990219 0c8.113795 0 16.247033-3.098571 22.444175-9.276271 6.1777-6.197142 9.275247-14.33038 9.275247-22.424732l0-729.760582c0-8.112772-3.098571-16.247033-9.275247-22.424732C395.584594 121.447003 387.451356 118.348432 379.337561 118.348432L379.337561 118.348432zM897.531634 127.643122c-6.197142-6.197142-14.33038-9.295714-22.444175-9.295714L641.09724 118.347408c-8.113795 0-16.247033 3.098571-22.444175 9.295714-6.196119 6.1777-9.295714 14.31196-9.295714 22.424732l0 729.759559c0 8.094352 3.099594 16.22759 9.295714 22.424732 6.197142 6.176676 14.33038 9.275247 22.444175 9.275247l233.990219 0c8.113795 0 16.247033-3.098571 22.444175-9.275247 6.197142-6.197142 9.275247-14.33038 9.275247-22.424732L906.806881 150.067854C906.806881 141.954059 903.727753 133.821845 897.531634 127.643122L897.531634 127.643122z"}})]),n("svg",{class:{icon:!0,disabled:t.disableSpeed},attrs:{id:"forward",width:"32px",height:"32.01px",viewBox:"0 0 1260 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("forward")}}},[n("title",[t._v("快放")]),n("path",{attrs:{fill:"#ffffff",d:"M77.738464 1011.260664l536.872038-462.255925a50.350711 50.350711 0 0 0 0-72.796208L77.738464 12.739336A46.104265 46.104265 0 0 0 0.089175 48.530806v926.331753a46.104265 46.104265 0 0 0 77.649289 36.398105z m629.687204 0l536.872038-462.255925a49.744076 49.744076 0 0 0 0-72.796208L707.425668 12.739336a46.104265 46.104265 0 0 0-77.649289 36.398105v925.725118a46.104265 46.104265 0 0 0 77.649289 36.398105z"}})]),n("svg",{class:{icon:!0,disabled:t.disableNextStep},attrs:{id:"next",width:"36px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("next")}}},[n("title",[t._v("下一帧")]),n("path",{attrs:{fill:"#ffffff",d:"M388.26 218.38v587.23c0 59.56 67.95 93.96 115.77 57.89l393.03-293.62c38.59-28.94 38.59-87.24 0-116.19L504.03 160.08c-47.82-35.24-115.77-1.26-115.77 58.3zM161.76 897.9c35.23 0 63.76-28.52 63.76-63.76V189.86c0-35.23-28.53-63.76-63.76-63.76S98 154.63 98 189.86v644.28c0 35.23 28.52 63.76 63.76 63.76z m0 0"}})]),n("div",{staticStyle:{position:"relative",display:"flex"},attrs:{title:"倍速"}},[n("span",{staticClass:"speed btn-menu-icon2"},[t._v("x"+t._s(t.speedStr))]),t._e()]),n("div",{staticStyle:{position:"relative",display:"flex"},attrs:{title:"声音"}},[n("svg",{staticClass:"icon btn-menu-icon2 disabled",attrs:{id:"volume",width:"20px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("volume")}}},[n("path",{attrs:{fill:"#ffffff",d:"M475.428571 201.142857v621.714286c0 20.004571-16.566857 36.571429-36.571428 36.571428a36.205714 36.205714 0 0 1-25.709714-10.861714L222.866286 658.285714H73.142857c-20.004571 0-36.571429-16.566857-36.571428-36.571428v-219.428572c0-20.004571 16.566857-36.571429 36.571428-36.571428h149.723429l190.281143-190.281143A36.425143 36.425143 0 0 1 438.857143 164.571429c20.004571 0 36.571429 16.566857 36.571428 36.571428z m219.428572 310.857143c0 57.161143-34.852571 112.566857-88.576 134.290286a31.780571 31.780571 0 0 1-14.299429 2.852571c-20.004571 0-36.571429-16.018286-36.571428-36.571428 0-43.446857 66.304-31.414857 66.304-100.571429s-66.304-57.161143-66.304-100.571429c0-20.553143 16.566857-36.571429 36.571428-36.571428 4.571429 0 9.728 0.585143 14.299429 2.852571C660.004571 398.848 694.857143 454.838857 694.857143 512z m146.285714 0c0 116.004571-69.705143 224-177.152 269.129143a42.349714 42.349714 0 0 1-14.299428 2.852571 36.937143 36.937143 0 0 1-37.156572-36.571428c0-16.018286 9.142857-26.843429 22.272-33.718857 15.433143-8.009143 29.696-14.848 43.446857-25.161143 56.576-41.142857 89.709714-106.861714 89.709715-176.566857s-33.133714-135.424-89.709715-176.566858c-13.714286-10.276571-28.013714-17.152-43.446857-25.161142-13.129143-6.838857-22.272-17.700571-22.272-33.718858 0-20.004571 16.566857-36.571429 36.571429-36.571428 5.156571 0 10.276571 1.133714 14.848 2.852571 107.446857 45.129143 177.152 153.161143 177.152 269.129143z m146.285714 0c0 175.433143-104.557714 334.299429-265.728 403.419429a42.861714 42.861714 0 0 1-14.848 2.852571c-20.004571 0-36.571429-16.566857-36.571428-36.571429 0-16.566857 8.557714-25.709714 22.272-33.718857 8.009143-4.571429 17.152-7.424 25.709714-11.995428 16.018286-8.557714 32-18.285714 46.848-29.147429 93.696-69.156571 149.138286-178.285714 149.138286-294.838857s-55.442286-225.718857-149.138286-294.838857a402.505143 402.505143 0 0 0-46.848-29.147429c-8.557714-4.571429-17.700571-7.424-25.709714-11.995428-13.714286-8.009143-22.272-17.152-22.272-33.718857 0-20.004571 16.566857-36.571429 36.571428-36.571429 5.156571 0 10.276571 1.133714 14.848 2.852571A439.186286 439.186286 0 0 1 987.428571 512z"}})]),t._e()])]),n("div",{staticStyle:{display:"flex","align-items":"center"}},[n("svg",{staticClass:"icon",staticStyle:{visibility:"hidden"},attrs:{width:"24px",height:"25.34px",viewBox:"0 0 1293 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("snap")}}},[n("path",{attrs:{fill:"#ffffff",d:"M646.682947 336.949895a235.304421 235.304421 0 0 0-235.034947 235.627789 235.304421 235.304421 0 0 0 234.981053 235.681684 235.304421 235.304421 0 0 0 235.088842-235.681684A235.304421 235.304421 0 0 0 646.736842 336.949895zM1209.936842 160.282947h-245.65221C951.242105 120.185263 906.725053 0 841.566316 0H451.799579C391.437474 0 342.554947 120.185263 327.68 160.282947H83.536842C37.402947 160.282947 0 199.949474 0 248.993684v686.403369C0 984.225684 37.402947 1024 83.536842 1024h1126.4c46.133895 0 83.536842-39.612632 83.536842-88.656842V248.832c-0.107789-48.882526-37.402947-88.549053-83.536842-88.549053z m-563.469474 707.098948c-162.169263 0-293.726316-131.934316-293.726315-294.534737a294.103579 294.103579 0 0 1 293.726315-294.534737c162.223158 0 293.834105 131.934316 293.834106 294.534737 0 162.708211-131.610947 294.534737-293.834106 294.534737z m421.241264-530.324211a49.044211 49.044211 0 0 1-48.882527-49.098105 48.936421 48.936421 0 1 1 97.765053 0 49.044211 49.044211 0 0 1-48.882526 49.098105zM286.72 83.806316c0 17.623579-14.174316 31.797895-31.690105 31.797895H107.466105a31.690105 31.690105 0 0 1-31.690105-31.797895c0-17.569684 14.174316-31.797895 31.690105-31.797895h147.56379c17.515789 0 31.690105 14.228211 31.690105 31.797895z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:!t.isFullscreen,expression:"!isFullscreen"}],staticClass:"icon",attrs:{id:"fullscreen",width:"20px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("fullscreen")}}},[n("title",[t._v("全屏显示")]),n("path",{attrs:{fill:"#ffffff",d:"M919.920093 725.414549q3.014188 26.122962 7.033105 58.776664t7.53547 66.814498 7.53547 67.819227 7.033105 60.786122q6.028376 47.222277-41.193901 44.208089-25.118232-2.009459-56.767205-5.526011t-64.805039-7.53547-65.809769-8.037834-59.781393-7.033105q-29.137149-3.014188-37.174984-16.578033t9.042564-30.644243q11.052022-10.047293 27.127691-27.630056t27.127691-28.634785q11.052022-12.056752 7.033105-22.104044t-16.075669-23.108774q-28.13242-27.127691-51.241194-49.231735t-51.241194-51.241194q-6.028376-6.028376-12.056752-13.061481t-9.042564-15.573304-1.004729-18.085127 13.061481-20.59695q6.028376-6.028376 10.047293-10.549658t8.037834-8.037834 8.540199-8.037834 11.554387-12.559116q20.094586-20.094586 37.174984-17.080398t37.174984 23.108774 41.193901 40.691536 47.222277 46.719912q19.089857 18.085127 32.653702 25.118232t26.625326-6.028376q9.042564-9.042564 22.606409-21.60168t23.611138-22.606409q17.080398-17.080398 30.644243-13.061481t16.578033 30.141879zM43.79615 383.80659q-3.014188-26.122962-7.033105-58.776664t-7.53547-66.814498-7.53547-67.819227-7.033105-60.786122q-3.014188-26.122962 6.53074-36.170255t33.658431-8.037834q25.118232 2.009459 56.767205 5.526011t64.805039 7.53547 65.809769 8.037834 59.781393 7.033105q30.141879 3.014188 37.677348 16.578033t-9.544928 30.644243q-10.047293 10.047293-24.615868 26.122962t-25.620597 27.127691q-12.056752 12.056752-8.037834 22.104044t17.080398 23.108774q13.061481 14.06621 24.615868 24.615868t22.606409 21.099315 23.108774 22.606409l25.118232 25.118232q6.028376 6.028376 11.554387 14.06621t8.037834 17.080398-0.502365 19.089857-13.061481 20.094586l-11.052022 11.052022q-4.018917 4.018917-7.53547 8.037834t-8.540199 8.037834l-11.052022 12.056752q-20.094586 20.094586-34.663161 15.070939t-34.663161-25.118232-38.179713-37.677348-44.208089-43.705724q-18.085127-18.085127-32.151337-25.118232t-27.127691 6.028376q-9.042564 10.047293-25.118232 24.615868t-26.122962 24.615868q-17.080398 17.080398-30.141879 13.061481t-16.075669-30.141879zM905.853883 84.397261q26.122962-3.014188 36.170255 6.53074t8.037834 34.663161-5.526011 56.767205-7.53547 64.805039-8.037834 65.809769-7.033105 59.781393q-3.014188 29.137149-16.578033 37.174984t-30.644243-10.047293q-10.047293-10.047293-26.122962-24.615868t-27.127691-25.620597q-12.056752-11.052022-22.104044-7.53547t-23.108774 16.578033q-27.127691 27.127691-47.724641 49.231735t-48.729371 50.236465q-6.028376 6.028376-14.06621 11.554387t-17.080398 8.037834-19.089857-0.502365-20.094586-14.06621q-6.028376-6.028376-10.549658-10.047293t-8.540199-8.037834-8.540199-8.037834-11.554387-12.056752q-20.094586-20.094586-16.075669-35.165525t25.118232-35.165525l38.179713-40.189172q19.089857-20.094586 45.212818-46.217547 19.089857-18.085127 26.122962-32.151337t-7.033105-26.122962q-9.042564-9.042564-23.108774-24.615868t-24.113503-25.620597q-17.080398-17.080398-13.061481-30.141879t30.141879-16.075669 58.776664-7.033105 67.316863-7.53547 67.819227-7.53547 60.283758-7.033105zM350.238584 640.012559q6.028376 6.028376 10.549658 10.047293t8.540199 8.037834l8.037834 9.042564 12.056752 11.052022q20.094586 20.094586 17.582763 36.672619t-23.611138 37.677348q-19.089857 19.089857-40.189172 40.691536t-47.222277 47.724641q-18.085127 18.085127-22.606409 29.639514t8.540199 24.615868q10.047293 9.042564 22.606409 22.606409t22.606409 23.611138q17.080398 17.080398 12.559116 30.141879t-30.644243 16.075669-58.274299 7.033105-66.814498 8.037834-68.321592 8.037834-60.786122 7.033105q-25.118232 2.009459-35.66789-7.53547t-8.540199-33.658431q2.009459-25.118232 5.526011-56.767205t7.53547-64.805039 8.037834-65.809769 7.033105-59.781393q3.014188-30.141879 16.578033-37.677348t30.644243 9.544928q10.047293 10.047293 27.630056 26.122962t28.634785 27.127691q12.056752 12.056752 20.094586 10.549658t20.094586-14.568575q13.061481-13.061481 25.118232-25.620597t24.113503-24.615868 24.615868-25.118232 26.625326-27.127691q6.028376-6.028376 13.061481-12.056752t15.573304-9.042564 18.085127-0.502365 20.59695 13.563845z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:t.isFullscreen,expression:"isFullscreen"}],staticClass:"icon",attrs:{width:"20px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("cancel-fullscreen")}}},[n("title",[t._v("取消全屏显示")]),n("path",{attrs:{fill:"#ffffff",d:"M638.272 128.064l82.048 82.112L930.56 0l91.52 91.456-210.176 210.112 81.856 82.048c0 35.328-28.352 63.872-63.808 63.872L638.272 447.488c-35.2 0-63.808-28.544-63.808-63.872L574.464 192C574.464 156.736 603.072 128.064 638.272 128.064L638.272 128.064 638.272 128.064zM128.064 638.336c0-35.136 28.672-63.808 63.872-63.808l191.68 0c35.328 0 63.872 28.672 63.872 63.808l0 191.68c0 35.392-28.544 63.808-63.872 63.808l-82.048-81.792-210.176 210.112L0 930.752l210.176-210.304L128.064 638.336 128.064 638.336 128.064 638.336zM638.272 574.528l191.68 0c35.456 0 63.808 28.672 63.808 63.808l-81.856 82.112 210.176 210.304-91.52 91.392-210.24-210.112-82.048 81.792c-35.2 0-63.808-28.416-63.808-63.808L574.464 638.336C574.464 603.2 603.072 574.528 638.272 574.528L638.272 574.528 638.272 574.528zM91.392 0l210.176 210.24 82.048-82.112c35.328 0 63.872 28.608 63.872 63.872l0 191.68c0 35.328-28.544 63.872-63.872 63.872L191.936 447.552c-35.2 0-63.872-28.544-63.872-63.872l82.112-82.048L0 91.456 91.392 0 91.392 0 91.392 0zM91.392 0"}})])])])}),[],!1,null,"4bb55d15",null)).exports,Oe=(n("7514"),function(){function t(){a(this,t),this.records=[]}return l(t,[{key:"add",value:function(t){if(0===this.records.length)this.records.push(t);else{var e=this.indexRecord(t.startTime);e>=this.records.length?this.records.push(t):this.records[e].startTime>t.startTime?this.records.splice(e,0,t):this.records[e].endTime<=t.startTime?this.records.splice(e+1,0,t):this.records[e].endTime<t.endTime&&(this.records[e].endTime=t.endTime)}}},{key:"merge",value:function(t,e){if(0!==this.records.length){var n=this.indexRecord(t);if(n>=this.records.length)this.records.push({startTime:t,endTime:e,type:0});else if(this.records[n].startTime>e)this.records.splice(n,0,{startTime:t,endTime:e,type:0});else if(this.records[n].startTime=Math.min(this.records[n].startTime,t),this.records[n].endTime<e)for(this.records[n].endTime=e,n+=1;n<this.records.length&&this.records[n].startTime<=e;)this.records[n-1].endTime=Math.max(this.records[n].endTime,e),this.records.splice(n,1)}else this.records.push({startTime:t,endTime:e,type:0})}},{key:"isInclude",value:function(t,e){if(0===this.records.length)return!1;if(e<=this.records[0].startTime)return!1;if(t>=this.records[this.records.length-1].endTime)return!1;for(var n=0,i=this.records.length-1;n<=i;){var r=n+Math.floor((i-n)/2);if(e<this.records[r].startTime)i=r-1;else{if(!(t>this.records[r].endTime))return this.records[r].startTime<=t&&this.records[r].endTime>=e;n=r+1}}return!1}},{key:"clear",value:function(){this.records=[]}},{key:"range",value:function(t,e){if(0===this.records.length)return[];var n=this.indexRecord(t);if(n>=this.records.length)return[];for(var i=n;i<this.records.length;){var r=this.records[i];if(r.endTime<t||r.startTime>e)break;i++}return this.records.slice(n,i)}},{key:"find",value:function(t){var e=this.indexRecord(t);return e>=0&&e<this.records.length&&this.records[e].startTime<=t?this.records[e]:null}},{key:"findNext",value:function(t){if(0===this.records.length)return null;var e=this.indexRecord(t);return e>=this.records.length?null:(this.records[e].endTime===t&&e++,e>=this.records.length?null:this.records[e])}},{key:"indexRecord",value:function(t){if(0===this.records.length)return 0;if(t<=this.records[0].startTime)return 0;if(t>this.records[this.records.length-1].endTime)return this.records.length;for(var e=0,n=this.records.length-1;e<=n;){var i=e+Math.floor((n-e)/2);if(t<this.records[i].startTime)n=i-1;else{if(!(t>this.records[i].endTime))return i;e=i+1}}return e}}]),t}());function Ye(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Ae(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ae(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){o=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function Ae(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Pe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}var Re=De=function(t){c(n,t);var e=Pe(n);function n(){var t;return a(this,n),(t=e.apply(this,arguments)).timerId=0,t.oldWidth=0,t.oldHeight=0,t.curTime=Math.floor(Date.now()/1e3),t.timeCtx=null,t.timeCanvas=null,t.recordCtx=null,t.recordCanvas=null,t.isDragging=!1,t.startDragTime=0,t.xOffset=0,t.tmpDate=new Date,t.timeScale=2,t.startDrawTime=0,t.startDrawOffset=0,t.normalRecords=new Oe,t.alarmRecords=new Oe,t.eventRecords=new Oe,t.queryCache=new Oe,t.streamProxy=null,t.prevMouseX=0,t}return l(n,[{key:"setTime",value:function(t){this.isDragging||(this.curTime=t,this.updateTimeLine(),this.updateRecordLine(),this.$emit("onRecord",this.winIndex,this.getCurrentRecord(),this.curTime))}},{key:"getTime",value:function(){return this.curTime}},{key:"setScale",value:function(t){this.timeScale=t,this.updateTimeLine(),this.updateRecordLine()}},{key:"findRecord",value:function(t){this.curTime=t;var e=this.normalRecords.findNext(this.curTime);return null!==e||(e=this.alarmRecords.findNext(this.curTime)),e}},{key:"setDevice",value:function(t){this.deviceInfo=t,null!==this.streamProxy&&this.streamProxy.open(this.deviceInfo),this.queryCache.clear(),this.normalRecords.clear(),this.alarmRecords.clear(),this.eventRecords.clear(),this.updateTimeLine(),this.updateRecordLine()}},{key:"setWsPort",value:function(t){var e=this;t===this.wsPort&&null!==this.streamProxy||(null===this.streamProxy&&(this.streamProxy=new ye(t,this.proxy,bt.VOD_CHANNEL),this.streamProxy.onRecords=function(t,n,i){e.addRecords(t,n,i)}),void 0!==this.deviceInfo&&this.streamProxy.open(this.deviceInfo))}},{key:"addRecords",value:function(t,e,n){var i,r=Ye(n);try{for(r.s();!(i=r.n()).done;){var a=i.value;1===a.type?this.normalRecords.add(a):2===a.type?this.alarmRecords.add(a):3===a.type&&this.eventRecords.add(a)}}catch(t){r.e(t)}finally{r.f()}this.queryCache.merge(t,e),this.updateRecordLine()}},{key:"mounted",value:function(){var t=this;this.timeCanvas=this.$refs.timeCanvas,this.timeCtx=this.timeCanvas.getContext("2d"),this.recordCanvas=this.$refs.recordCanvas,this.recordCtx=this.recordCanvas.getContext("2d"),this.timerId=setInterval((function(){null!==t.timeCanvas&&(t.oldWidth===t.$el.clientWidth&&t.oldHeight===t.$el.clientHeight||(t.oldWidth=t.$el.clientWidth,t.oldHeight=t.$el.clientHeight,t.onReSize()))}),500),void 0!==this.wsPort&&(this.streamProxy=new ye(this.wsPort,this.proxy,bt.VOD_CHANNEL),this.streamProxy.onRecords=function(e,n,i){t.addRecords(e,n,i)}),0!==this.initTime&&(this.curTime=this.initTime),this.curTime<this.minTime?this.curTime=this.minTime:this.maxTime>0&&this.curTime>this.maxTime&&(this.curTime=Math.floor((this.minTime+this.maxTime)/2)),console.log(this.curTime,this.minTime,this.maxTime),this.$emit("onRecord",this.winIndex,this.getCurrentRecord(),this.curTime)}},{key:"onReSize",value:function(){null!==this.timeCanvas&&(this.timeCanvas.style.top="0px",this.timeCanvas.style.height="60px",this.timeCanvas.width=2*this.oldWidth,this.timeCanvas.height=60,this.timeCanvas.style.left="".concat(-this.oldWidth/2,"px"),this.timeCanvas.style.width="".concat(2*this.oldWidth,"px"),this.updateTimeLine()),null!==this.recordCanvas&&(this.recordCanvas.style.top="18px",this.recordCanvas.style.height="15px",this.recordCanvas.width=2*this.oldWidth,this.recordCanvas.height=15,this.recordCanvas.style.left="".concat(-this.oldWidth/2,"px"),this.recordCanvas.style.width="".concat(2*this.oldWidth,"px"),this.updateRecordLine())}},{key:"destroy",value:function(){this.timeCtx=null,this.recordCtx=null,0!==this.timerId&&(clearInterval(this.timerId),this.timerId=0),null!==this.streamProxy&&this.streamProxy.close()}},{key:"mouseDown",value:function(t){this.isDragging=!0,this.startDragTime=this.curTime,this.prevMouseX=t.screenX}},{key:"mouseMove",value:function(t){if(this.isDragging&&null!==this.timeCanvas){var e=this.curTime%De.TIME_SCALE[this.timeScale];0!==e&&(this.curTime-=e);var n=t.movementX;n||(n=t.screenX-this.prevMouseX),this.prevMouseX=t.screenX;var i=this.curTime-n*De.TIME_SCALE[this.timeScale];i<this.minTime||this.maxTime>0&&i>this.maxTime||(this.xOffset+=n,this.curTime=i,this.xOffset>-10||this.xOffset<-(this.oldWidth-10)?(this.updateTimeLine(),this.updateRecordLine()):(this.timeCanvas.style.left="".concat(this.xOffset,"px"),null!==this.recordCanvas&&(this.recordCanvas.style.left=this.timeCanvas.style.left)),this.$emit("onMove",this.winIndex,this.curTime))}else this.prevMouseX=t.screenX}},{key:"mouseUp",value:function(){this.isDragging&&this.startDragTime!==this.curTime&&this.$emit("onRecord",this.winIndex,this.getCurrentRecord(),this.curTime),this.isDragging=!1}},{key:"mouseLeave",value:function(){this.isDragging&&this.mouseUp(),this.isDragging=!1}},{key:"getCurrentRecord",value:function(){var t=this.normalRecords.find(this.curTime),e=this.alarmRecords.find(this.curTime);return null!==t&&null!==e?t.endTime>e.endTime?t:e:null!==t?t:null!==e?e:null}},{key:"updateTimeLine",value:function(){if(null!==this.timeCtx&&null!==this.timeCanvas&&0!==this.oldWidth){this.xOffset=-this.oldWidth/2,this.timeCanvas.style.left="".concat(this.xOffset,"px"),this.timeCtx.clearRect(0,0,this.timeCanvas.width,this.oldHeight),this.timeCtx.fillStyle="rgb(180, 180, 180)",this.timeCtx.strokeStyle="rgb(180, 180, 180)",this.timeCtx.font="11px Arial",this.timeCtx.lineWidth=1,this.timeCtx.beginPath(),this.timeCtx.moveTo(0,15.5),this.timeCtx.lineTo(this.timeCanvas.width,15.5);var t=this.curTime-this.curTime%De.TIME_SCALE[this.timeScale],e=Math.floor(t-Math.floor(this.oldWidth)*De.TIME_SCALE[this.timeScale]),n=60*De.TIME_SCALE[this.timeScale],i=10*De.TIME_SCALE[this.timeScale],r=e%i;e-=r,this.startDrawTime=e,this.startDrawOffset=-r/De.TIME_SCALE[this.timeScale]+.5;for(var a=new Date,s=this.startDrawOffset;s<=this.timeCanvas.width;s+=10){if(this.timeCtx.moveTo(s,17),e<this.minTime||this.maxTime>0&&e>this.maxTime);else if(e%n==0){this.timeCtx.lineTo(s,40),a.setTime(1e3*e);var o,l=a.getHours(),u=a.getMinutes();o=l>9&&u>9?"".concat(l,":").concat(u):l>9?"".concat(l,":0").concat(u):u>9?"0".concat(l,":").concat(u):"0".concat(l,":0").concat(u),this.timeCtx.fillText(o,s-14,50)}else this.timeCtx.lineTo(s,33);e+=i}this.timeCtx.closePath(),this.timeCtx.stroke();var c=Math.round(this.startDrawTime+De.TIME_SCALE[this.timeScale]*(this.timeCanvas.width-this.startDrawOffset));this.queryCache.isInclude(this.startDrawTime,c)||null!==this.streamProxy&&this.streamProxy.query(this.startDrawTime,c)}}},{key:"updateRecordLine",value:function(){null!==this.recordCtx&&null!==this.recordCanvas&&0!==this.oldWidth&&(this.recordCanvas.style.left="".concat(this.xOffset,"px"),this.recordCtx.clearRect(0,0,this.recordCanvas.width,this.recordCanvas.height),this.recordCtx.lineWidth=3,this.recordCtx.strokeStyle="rgba(220, 0, 0, 0.8)",this.recordCtx.beginPath(),this.drawRecordLine(this.recordCtx,this.alarmRecords,1,this.recordCanvas.width),this.recordCtx.closePath(),this.recordCtx.stroke(),this.recordCtx.strokeStyle="rgba(3,127,220,0.9)",this.recordCtx.beginPath(),this.drawRecordLine(this.recordCtx,this.normalRecords,12,this.recordCanvas.width),this.recordCtx.closePath(),this.recordCtx.stroke())}},{key:"drawRecordLine",value:function(t,e,n,i){var r,a=Ye(e.range(this.startDrawTime,this.startDrawTime+De.TIME_SCALE[this.timeScale]*i));try{for(a.s();!(r=a.n()).done;){var s=r.value,o=Math.floor((s.startTime-this.startDrawTime)/De.TIME_SCALE[this.timeScale]),l=Math.round((s.endTime-this.startDrawTime)/De.TIME_SCALE[this.timeScale]);t.moveTo(o+this.startDrawOffset,n),t.lineTo(l+this.startDrawOffset,n)}}catch(t){a.e(t)}finally{a.f()}}},{key:"curTimeStr",get:function(){return this.tmpDate.setTime(1e3*this.curTime),De.formatTime(this.tmpDate)}},{key:"scaleStr",get:function(){return De.TIME_SCALE_TIP[this.timeScale]}}],[{key:"pad",value:function(t){return t<10?"0".concat(t):"".concat(t)}},{key:"formatTime",value:function(t){var e=De.pad;return"".concat(e(t.getFullYear()),"-").concat(e(t.getMonth()+1),"-").concat(e(t.getDate())," ").concat(e(t.getHours()),":").concat(e(t.getMinutes()),":").concat(e(t.getSeconds()))}}]),n}(_.a);Re.MAX_TIME_SCALE=3,Re.TIME_SCALE=[1,10,30,60],Re.TIME_SCALE_TIP=["缩放比例: 1分钟","缩放比例: 10分钟","缩放比例: 30分钟","缩放比例: 60分钟"],m([A({default:0})],Re.prototype,"initTime",void 0),m([A({default:0})],Re.prototype,"minTime",void 0),m([A({default:0})],Re.prototype,"maxTime",void 0),m([A({default:0})],Re.prototype,"winIndex",void 0),m([A()],Re.prototype,"wsPort",void 0),m([A()],Re.prototype,"proxy",void 0);var Ie=Re=De=m([O({components:{}})],Re),je=(n("1d01"),oe(Ie,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"timeline"},[n("canvas",{ref:"timeCanvas",staticClass:"ruler",attrs:{width:"400",height:"40"},on:{mousedown:t.mouseDown,mousemove:t.mouseMove,mouseleave:t.mouseLeave,mouseup:t.mouseUp}}),n("canvas",{ref:"recordCanvas",staticClass:"records",attrs:{width:"400",height:"40"}}),n("span",{staticClass:"scale"},[t._v(t._s(t.scaleStr))]),n("span",{staticClass:"time"},[t._v(t._s(t.curTimeStr))]),n("div",{staticClass:"time-p"})])}),[],!1,null,"85562768",null)).exports,Fe=(n("7da8"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"calendarPanel"},[n("div",{staticClass:"calendar-header"},[n("span",{staticClass:"icon",on:{click:function(e){return t.changeDate("preYear")}}},[t._v("<<")]),n("span",{staticClass:"icon",on:{click:function(e){return t.changeDate("preMonth")}}},[t._v("<")]),n("span",{staticClass:"currentDate"},[t._v(t._s(t.year+"年"+t.month+"月"))]),n("span",{staticClass:"icon",on:{click:function(e){return t.changeDate("nextMonth")}}},[t._v(">")]),n("span",{staticClass:"icon",on:{click:function(e){return t.changeDate("nextYear")}}},[t._v(">>")])]),n("div",{staticClass:"calendar-main"},[n("ul",{staticClass:"main-header"},t._l(t.week,(function(e,i){return n("li",{key:i},[t._v("\n "+t._s(e)+"\n ")])})),0),n("ul",{staticClass:"main"},[t._l(t.weekDay,(function(e){return n("li",{key:e,staticClass:"disabled"},[t._v("\n "+t._s(t.preMonthSize-t.weekDay+e)+"\n ")])})),t._l(t.monthList[t.month-1],(function(e){return n("li",{key:e},[n("span",{class:{currentDay:e===t.day}},[t._v("\n "+t._s(e)+"\n ")])])})),t._l(t.lastWeekDay,(function(e){return n("li",{key:e,staticClass:"disabled"},[t._v(t._s(e))])}))],2)])])});function He(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}var Ne,We=function(t){c(n,t);var e=He(n);function n(){var t;return a(this,n),(t=e.apply(this,arguments)).year=0,t.month=0,t.day=0,t.week=["日","一","二","三","四","五","六"],t.monthList=[31,28,31,30,31,30,31,31,30,31,30,31],t.weekDay=1,t.lastWeekDay=1,t}return l(n,[{key:"created",value:function(){this.getCurrentDate(),this.initDate()}},{key:"getCurrentDate",value:function(){var t=new Date;this.year=t.getFullYear(),this.month=t.getMonth()+1,this.day=t.getDate()}},{key:"getWeekDay",value:function(t,e,n){return new Date("".concat(t,"/").concat(e,"/").concat(n)).getDay()}},{key:"initDate",value:function(){this.year%4==0&&this.year%100!=0||this.year%400==0?this.monthList[1]=29:this.monthList[1]=28;var t=this.getWeekDay(this.year,this.month,1);this.weekDay=7===t?0:t;var e=this.getWeekDay(this.year,this.month,this.monthList[this.month-1]);this.lastWeekDay=7===e?6:6-e}},{key:"changeDate",value:function(t){switch(t){case"preYear":this.year-=1;break;case"preMonth":1===this.month?(this.month=12,this.year-=1):this.month-=1;break;case"nextYear":this.year+=1;break;case"nextMonth":12===this.month?(this.month=1,this.year+=1):this.month+=1}this.initDate()}},{key:"preMonthSize",get:function(){return this.month-1==0?31:this.monthList[this.month-2]}}]),n}(_.a),Ue=We=m([O],We),Be=(n("b5f0"),oe(Ue,Fe,[],!1,null,"48879689",null)).exports;function ze(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}var Ve=Ne=function(t){c(n,t);var e=ze(n);function n(){var t;return a(this,n),(t=e.apply(this,arguments)).pos=0,t.date=new Date,t.dragging=!1,t}return l(n,[{key:"formatTime",value:function(t){if(0===t)return"";var e=Ne.pad;return this.date.setTime(1e3*t),this.utc?"".concat(e(this.date.getUTCHours()),":").concat(e(this.date.getUTCMinutes()),":").concat(e(this.date.getUTCSeconds())):"".concat(e(this.date.getHours()),":").concat(e(this.date.getMinutes()),":").concat(e(this.date.getSeconds()))}},{key:"onTimeChange",value:function(t,e){this.time>0?!this.dragging&&this.time>=this.record.startTime&&this.time<=this.record.endTime&&(this.pos=this.time):this.pos=this.record.startTime}},{key:"onDragEnd",value:function(){this.dragging=!1;var t=this.$refs.vs;this.$emit("onDrag",t.getValue())}}],[{key:"pad",value:function(t){return t<10?"0".concat(t):"".concat(t)}}]),n}(_.a);m([A({default:{startTime:0,endTime:0,type:0}})],Ve.prototype,"record",void 0),m([A({default:0})],Ve.prototype,"time",void 0),m([A({default:!1})],Ve.prototype,"utc",void 0),m([P("$attrs.time",{immediate:!0,deep:!0})],Ve.prototype,"onTimeChange",null);var Ge,Xe=Ve=Ne=m([O({components:{VueSlider:Le.a}})],Ve),Ke=(n("1820"),oe(Xe,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"play-pb"},[n("vue-slider",{ref:"vs",attrs:{silent:!0,min:t.record.startTime,max:t.record.endTime,"tooltip-formatter":function(e){return t.formatTime(e)},"rail-style":{backgroundColor:"#3d3d3d"},clickable:!1},on:{dragstart:function(e){t.dragging=!0},"drag-end":t.onDragEnd},model:{value:t.pos,callback:function(e){t.pos=e},expression:"pos"}})],1)}),[],!1,null,"44448bc0",null)).exports;!function(t){t[t.STOPPED=0]="STOPPED",t[t.DOWNLOADING=1]="DOWNLOADING",t[t.DOWNLOAD_FAILED=2]="DOWNLOAD_FAILED",t[t.FINISHED=3]="FINISHED"}(Ge||(Ge={}));var qe=function(){function t(e,n,i,r){a(this,t),this.websocket=null,this.downloading=!1,this.onStatus=function(){return 1},this.onProgress=function(){return 1},this.channelId=e,this.deviceId=n,this.record=i,this.targetPath=r||""}return l(t,[{key:"start",value:function(e){var n=this,i=wt.createWebsocket(e,null);this.websocket=i;var r=wt.stringToUnix(this.record.beginTime),a=wt.stringToUnix(this.record.endTime),s=this.targetPath;return this.websocket.onopen=function(){i.send(JSON.stringify({cmd:ye.CMD_INIT_CHANNEL,type:"vod"})),i.send(JSON.stringify({cmd:t.CMD_DOWNLOAD_RECORD,id:n.deviceId,startTime:r,endTime:a,path:s}))},this.websocket.onclose=function(){n.downloading&&n.onStatus(n.channelId,Ge.DOWNLOAD_FAILED,Tt.NETWORK_ERROR,"")},this.websocket.onerror=function(){n.downloading&&n.onStatus(n.channelId,Ge.DOWNLOAD_FAILED,Tt.NETWORK_ERROR,"")},this.websocket.onmessage=function(t){if("string"==typeof t.data){var e=JSON.parse(t.data);"download_status"===e.cmd?n.onStatus(n.channelId,e.status,e.code,e.path):"download_progress"===e.cmd?n.onProgress(n.channelId,Math.min(Math.max(100*e.progress,0),99.99),e.size):console.log(e)}},this.downloading=!0,Tt.OK}},{key:"stop",value:function(){if(this.downloading=!1,null===this.websocket)return null;this.websocket.close()}}]),t}();qe.CMD_DOWNLOAD_RECORD="download_record";var Je,$e,Ze=function(){function t(e){a(this,t),this.idSeed=1,this.channels={},this.onStatus=function(){return 1},this.onProgress=function(){return 1},this.wsPort=e}return l(t,[{key:"create",value:function(t,e,n){var i="".concat(this.idSeed),r=new qe(i,t,e,n);return r.onStatus=this.onStatus,r.onProgress=this.onProgress,this.channels[i]=r,this.idSeed+=1,i}},{key:"start",value:function(t){var e=this.channels[t];return e?e.start(this.wsPort):Tt.NO_TASK}},{key:"stop",value:function(t){var e=this.channels[t];return e?(e.stop(),Tt.OK):Tt.NO_TASK}},{key:"delete",value:function(t){var e=this.channels[t];return e?(e.stop(),this.channels[t]=void 0,Tt.OK):Tt.NO_TASK}},{key:"destroy",value:function(){for(var t=0,e=Object.keys(this.channels);t<e.length;t++){var n=e[t],i=this.channels[n];i&&i.stop()}this.channels={}}}]),t}();function Qe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function tn(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return en(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?en(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){o=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function en(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function nn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}!function(t){t[t.NONE=0]="NONE",t[t.SERVICE_CONNECTING=1]="SERVICE_CONNECTING",t[t.SERVICE_ESTABLISH=2]="SERVICE_ESTABLISH",t[t.CHANNEL_ESTABLISH=3]="CHANNEL_ESTABLISH",t[t.SERVICE_DISCONNECTED=4]="SERVICE_DISCONNECTED",t[t.CHANNEL_DISCONNECTED=5]="CHANNEL_DISCONNECTED",t[t.SERVICE_ERROR=6]="SERVICE_ERROR"}($e||($e={}));var rn=Je=function(t){c(n,t);var e=nn(n);function n(){var t;return a(this,n),(t=e.call(this)).dcs=null,t.timeScaleIndex=2,t.isFullscreen=!1,t.fullScreenCheckTimer=0,t.ps=null,t.expandTimeline=!1,t.errorMsg="",t.wsPort=0,t.heartTimer=0,t.singleMode=!0,t.syncPlayTimer=0,t.syncPlayWindows=[],t.syncFirstTick=0,t.syncFirstTime=0,t.loaded=!1,t.downloader=null,t.lastDeviceId=null,t.wsInitChannel=null,t.windowInfos=[],t.windowLayout=null,new Promise((function(){return 1})),t}return l(n,[{key:"setLayout",value:function(t){void 0===t.combines&&(t.combines={}),null!=this.windowLayout&&this.windowLayout.setLayout(t),this.updateLayoutShow()}},{key:"openDevice",value:function(t,e,n,i){var r=this;if(null===this.windowLayout||0===this.wsPort)return!1;this.lastDeviceId=t,this.windowInfos[0].deviceInfo.id=t,this.windowInfos[0].minTime=this.windowInfos[0].deviceInfo.minTime=wt.stringToUnix(e),this.windowInfos[0].maxTime=this.windowInfos[0].deviceInfo.maxTime=wt.stringToUnix(n);var a={id:t,minTime:this.windowInfos[0].deviceInfo.minTime,maxTime:this.windowInfos[0].deviceInfo.maxTime},s=this.windowLayout.getWindow(0);return s.setDevice(a),this.singleMode=!1,this.$nextTick((function(){r.getTimeLine(0).setDevice(a),e&&n&&r.getTimeLine(0).setTime(a.minTime),i&&s.playPos(a.minTime,ve.FORWARD)})),!0}},{key:"playVodStream",value:function(t,e,n){if(this.singleMode=!0,null!==this.windowLayout){for(var i=this.windowLayout.getWindowCount(),r=0;r<i;r++)this.windowLayout.getWindow(r).stop();0!==this.syncPlayTimer&&(cancelAnimationFrame(this.syncPlayTimer),this.syncPlayTimer=0);var a=this.windowLayout.getWindow(0),s=wt.stringToUnix(e.beginTime),o=wt.stringToUnix(e.endTime),l=wt.stringToUnix(n);a.setDevice({id:t,minTime:s,maxTime:o}),this.lastDeviceId=t,a.playPos(l,ve.FORWARD)}}},{key:"stopPlay",value:function(){this.stop(0)}},{key:"getPos",value:function(){return this.callWinFunc(0,(function(t){return t.getPos()}))}},{key:"snapshot",value:function(){return this.callWinFunc(0,(function(t){return t.snapshot()}))}},{key:"stop",value:function(t){if(null!==this.windowLayout&&!(t<0||t>=this.windowInfos.length)){var e=this.windowLayout.getWindow(t);if(null!==e){if(this.windowInfos[e.index].timeline.sync){cancelAnimationFrame(this.syncPlayTimer);var n,i=tn(this.getSyncIndexes(e.index));try{for(i.s();!(n=i.n()).done;){var r=n.value;this.windowLayout.getWindow(r).stop(),this.syncPlayTimer=0}}catch(t){i.e(t)}finally{i.f()}}else e.stop();this.$emit("onStop",t)}}}},{key:"showFullscreen",value:function(){var t=this,e=this.$el;if(e.requestFullscreen)e.requestFullscreen();else if(e.mozRequestFullScreen)e.mozRequestFullScreen();else if(e.webkitRequestFullscreen)e.webkitRequestFullscreen();else{if(!e.msRequestFullscreen)return console.log("不存在进入全屏的方法! => undefined"),!1;e.msRequestFullscreen()}return this.isFullscreen=!0,0===this.fullScreenCheckTimer&&(this.fullScreenCheckTimer=setInterval((function(){null===document.fullscreenElement&&t.exitFullscreen()}),1e3)),!0}},{key:"exitFullscreen",value:function(){var t=document;if(t.exitFullscreen)t.exitFullscreen();else if(t.mozCancelFullScreen)t.mozCancelFullScreen();else if(t.webkitExitFullscreen)t.webkitExitFullscreen();else{if(!t.msExitFullscreen)return!1;t.msExitFullscreen()}this.isFullscreen=!1,0!==this.fullScreenCheckTimer&&(clearInterval(this.fullScreenCheckTimer),this.fullScreenCheckTimer=0)}},{key:"login",value:function(t,e,n,i){return 0===this.wsPort?Tt.INVALID_STATE:this.getDcs().login(t,e,n,i)}},{key:"createDownloadTask",value:function(t,e,n){return 0===this.wsPort||this.wsInitChannel&&this.wsInitChannel.isProxy()?"":this.getDownloader().create(t,e,n)}},{key:"startDownload",value:function(t){return 0===this.wsPort?Tt.INVALID_STATE:this.getDownloader().start(t)}},{key:"stopDownload",value:function(t){return 0===this.wsPort?Tt.INVALID_STATE:this.getDownloader().stop(t)}},{key:"destroyDownloadTask",value:function(t){return 0===this.wsPort?Tt.INVALID_STATE:this.getDownloader().delete(t)}},{key:"openFolder",value:function(t){null!=this.wsInitChannel&&this.wsInitChannel.openFolder(t)}},{key:"setExtRenderCallback",value:function(t){if(this.windowLayout){var e=this.windowLayout.getWindow(0);e&&e.setExtRenderCallback(t)}}},{key:"onLayoutChange",value:function(t,e){0!==this.wsPort&&this.setLayout(t)}},{key:"onServerChange",value:function(t,e){void 0!==this.server&&"undefined"!==this.server&&this.loaded&&this.tryLogin()}},{key:"onProgressDrag",value:function(t){var e=this.selectedWindow();null!==e&&e.moveTo(t)}},{key:"mounted",value:function(){var t=this,e=this;this.windowLayout=new de(this.$refs.win_table,(function(n,i){var r=new Me(n,i,t.wsPort,null===t.wsInitChannel?null:t.wsInitChannel.getConnectedProxyIp(),bt.VOD_CHANNEL);return r.onStatus=function(t){e.onWindowStatus(n,t)},r.onPosChange=function(t){e.onPlayPos(n,t)},r.onSnapshot=function(t,n,i){e.$emit("onSnapshot",t,n,i)},r.onPlayFinished=function(i,r){if(t.singleMode)e.$emit("onPlayFinished",n,i,r);else if(null!==e.windowLayout){var a=e.windowLayout.getWindow(n);null!==a&&e.playNext(a,r)}},r.onPlayState=function(t,n){e.$emit("onPlayState",t,n)},r})),this.windowLayout.setup(),this.wsInitChannel=new Zt(this.proxy?this.proxy:null),this.wsInitChannel.onInitOk=function(n,i){e.wsPort=i,null!==e.windowLayout&&e.setLayout(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qe(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t.layout)),e.onLoad(n)},this.wsInitChannel.onInitError=function(e,n){t.errorMsg=n,t.wsPort=0,t.$emit("onLoadFailed",n)},this.wsInitChannel.onConnectFailed=function(){t.errorMsg=q.PLUGIN_SERVICE_NOTFOUND,t.wsPort=0,t.$emit("onLoadFailed",q.PLUGIN_SERVICE_NOTFOUND)},this.wsInitChannel.onDisconnected=function(){t.errorMsg=q.PLUGIN_SERVICE_DISCONNECTED,t.wsPort=0,t.$emit("onDisconnected",q.PLUGIN_SERVICE_NOTFOUND)}}},{key:"beforeDestroy",value:function(){0!==this.syncPlayTimer&&(cancelAnimationFrame(this.syncPlayTimer),this.syncPlayTimer=0),0!==this.heartTimer&&window.clearInterval(this.heartTimer),null!==this.windowLayout&&this.windowLayout.destroy(),null!==this.ps&&(this.ps.destroy(),this.ps=null),null!==this.wsInitChannel&&this.wsInitChannel.close(),null!==this.dcs&&(this.dcs.destroy(),this.dcs=null),this.getDownloader().destroy()}},{key:"tryLogin",value:function(){this.server.length>0&&this.getDcs().loginByUrl(this.server)}},{key:"getDcs",value:function(){var t=this;return null===this.dcs&&(this.dcs=new Vt(this.wsPort,null===this.wsInitChannel?null:this.wsInitChannel.getConnectedProxyIp()),this.dcs.loginCB=function(e,n){t.$emit("onLogin",e,n)}),this.dcs}},{key:"getDownloader",value:function(){var t=this;return null===this.downloader&&(this.downloader=new Ze(this.wsPort),this.downloader.onStatus=function(e,n,i,r){t.$emit("onDownloadStatus",e,n,i,r)},this.downloader.onProgress=function(e,n,i){t.$emit("onDownloadProgress",e,n,i)}),this.downloader}},{key:"onWindowStatus",value:function(t,e){this.windowInfos[t].status=e}},{key:"onPlayPos",value:function(t,e){this.singleMode||null===this.windowLayout||this.getTimeLine(t).setTime(e)}},{key:"callWinFunc",value:function(t,e){if(null===this.windowLayout)return Tt.INVALID_STATE;if(t<0||t>=this.windowInfos.length)return Tt.INVALID_PARAM;var n=this.windowLayout.getWindow(0);return null===n?Tt.UNKNOWN_ERROR:e(n)}},{key:"updateLayoutShow",value:function(){if(null!==this.windowLayout){for(var t=this.windowInfos.length;t<this.windowLayout.getWindowCount();t++){var e={timeline:{time:0,scale:2,sync:!1},id:t,time:0,minTime:Math.floor(Date.now()/1e3)-172800,maxTime:Math.floor(Date.now()/1e3)+172800,deviceInfo:{id:"",streamIp:"",streamPort:0,queryIp:"",queryPort:0,name:"",minTime:0,maxTime:0},status:ge.STOPPED,record:{startTime:0,endTime:0,type:0},syncPlayTimer:0};this.windowInfos.push(e)}for(;this.windowInfos.length>this.windowLayout.getWindowCount();)this.windowInfos.pop()}else this.windowInfos=[]}},{key:"onLoad",value:function(t){this.loaded=!0,this.$emit("onLoad",this,t,this.wsInitChannel&&this.wsInitChannel.isProxy()),this.tryLogin()}},{key:"getTimeLine",value:function(t){return this.$refs.timelines[t]}},{key:"onTimeLineMove",value:function(t,e){if(!this.singleMode&&this.windowInfos[t].timeline.sync)for(var n=0;n<this.windowInfos.length;n++)n!==t&&this.windowInfos[n].timeline.sync&&this.getTimeLine(n).setTime(e)}},{key:"onTimeLineRecord",value:function(t,e,n){this.singleMode||null===this.windowLayout||this.windowLayout.getWindow(t).moveTo(n)}},{key:"onToolButton",value:function(t,e){var n=this;if("scale-up"===t){if(this.timeScaleIndex<Je.MAX_TIME_SCALE&&this.timeScaleIndex++,!this.singleMode){var i,r=tn(this.$refs.timelines);try{for(r.s();!(i=r.n()).done;)i.value.setScale(this.timeScaleIndex)}catch(t){r.e(t)}finally{r.f()}}}else if("scale-down"===t){if(this.timeScaleIndex>0&&this.timeScaleIndex--,!this.singleMode){var a,s=tn(this.$refs.timelines);try{for(s.s();!(a=s.n()).done;)a.value.setScale(this.timeScaleIndex)}catch(t){s.e(t)}finally{s.f()}}}else if("fullscreen"===t)this.showFullscreen();else if("cancel-fullscreen"===t)this.exitFullscreen();else if("expand"===t)this.expandTimeline=!0;else if("shrink"===t)this.expandTimeline=!1;else if("snap"===t){var o=this.selectedWindow();null!==o&&o.snapshot()}else if("play"===t){var l=this.selectedWindow(),u=-1===e?ve.BACKWARD:ve.FORWARD,c=this.getSyncIndexes(l.index);if(c.length>1){this.syncPlayWindows=[];var h,d=this.getTimeLine(c[0]).getTime(),f=tn(c);try{for(f.s();!(h=f.n()).done;){var m=h.value;if(null!==this.windowLayout){this.getTimeLine(m).setTime(d);var p=this.windowLayout.getWindow(m);p.syncPlay(d),this.syncPlayWindows.push(p)}}}catch(t){f.e(t)}finally{f.f()}this.syncPlayTimer=requestAnimationFrame((function(){return n.syncPlay()})),this.syncFirstTick=0,this.syncFirstTime=0}else l.play(u)}else if("stop"===t){var _=this.selectedWindow();this.stop(_.index)}else if("pause"===t){var g=this.selectedWindow();null!==g&&g.pause()}else if("back"===t){var v=this.selectedWindow();null!==v&&v.subSpeed()}else if("forward"===t){var y=this.selectedWindow();null!==y&&y.addSpeed()}else if("speed"===t){var b=e;console.log("speed",b);var w=this.selectedWindow();null!==w&&w.setSpeed(b)}else if("prev"===t){var x=this.selectedWindow();null!==x&&x.stepPrev()}else if("next"===t){var M=this.selectedWindow();null!==M&&M.stepNext()}}},{key:"playNext",value:function(t,e){if(ve.FORWARD===e){var n=t.posSec;t.record.endTime>0&&t.posSec<t.record.endTime&&(n=t.record.endTime);var i=this.getTimeLine(t.index).findRecord(n);null!==i&&i.startTime<=n?t.play(e):null!==i&&(t.moveTo(i.startTime),t.play(e))}}},{key:"selectedWindow",value:function(){if(null===this.windowLayout)return null;var t=this.windowLayout.getSelectedWindow();return null===t?null:t}},{key:"getSyncIndexes",value:function(t){var e=[];if(!this.windowInfos[t].timeline.sync)return e;for(var n=0;n<this.windowInfos.length;n++)this.windowInfos[n].timeline.sync&&e.push(n);return e}},{key:"syncPlay",value:function(){var t,e=this,n=72057594037927940,i=null,r=tn(this.syncPlayWindows);try{for(r.s();!(t=r.n()).done;){var a=t.value,s=a.minFrameTime();s>0&&s<n&&(n=s,i=a)}}catch(t){r.e(t)}finally{r.f()}if(null===i)this.syncFirstTick=0;else if(0===this.syncFirstTick)this.syncFirstTick=performance.now()+10,this.syncFirstTime=n,i.syncStep();else{var o=performance.now(),l=o-this.syncFirstTick-(n-this.syncFirstTime);(l>1e3||l<-1e3)&&(this.syncFirstTick=o,this.syncFirstTime=n),l>0&&i.syncStep()}requestAnimationFrame((function(){return e.syncPlay()}))}},{key:"playStatus",get:function(){var t=this.selectedWindow();return null===t?ge.STOPPED:t.status}},{key:"playDirection",get:function(){var t=this.selectedWindow();return null===t?ve.FORWARD:t.direction}},{key:"currentRecord",get:function(){var t=this.selectedWindow();return null===t?{startTime:0,endTime:0,type:0}:t.record}},{key:"currentTime",get:function(){var t=this.selectedWindow();return null===t?0:t.posSec}},{key:"currentSpeed",get:function(){var t=this.selectedWindow();return null===t?1:t.speed}},{key:"syncMode",get:function(){var t=this.selectedWindow();if(null===t)return!1;if(!this.windowInfos[t.index].timeline.sync)return!1;for(var e=0;e<this.windowInfos.length;e++)if(e!==t.index&&this.windowInfos[e].timeline.sync)return!0;return!1}},{key:"showError",get:function(){return 0===this.wsPort}},{key:"timesHeight",get:function(){return this.expandTimeline?"".concat(60*this.windowInfos.length,"px"):"60px"}},{key:"timesTop",get:function(){if(this.expandTimeline||null===this.windowLayout)return"0px";var t=60*this.windowLayout.getSelectedIndex();return"-".concat(t,"px")}},{key:"proxyIp",get:function(){return this.wsInitChannel?this.wsInitChannel.getConnectedProxyIp():null}}]),n}(_.a);rn.MAX_TIME_SCALE=3,m([A({default:function(){return{rows:1,cols:1,combines:{}}}})],rn.prototype,"layout",void 0),m([A({default:"dark"})],rn.prototype,"theme",void 0),m([A({default:!1})],rn.prototype,"dbClick",void 0),m([A({default:!0})],rn.prototype,"timeLine",void 0),m([A({default:""})],rn.prototype,"server",void 0),m([A({default:""})],rn.prototype,"proxy",void 0),m([P("layout",{immediate:!0,deep:!1})],rn.prototype,"onLayoutChange",null),m([P("$attrs.server",{immediate:!0})],rn.prototype,"onServerChange",null);var an=rn=Je=m([O({components:{ProgressBar:Ke,Calendar:Be,VodToolBar:Ee,VodTimeLine:je}})],rn),sn=(n("d3b2"),n("2ed9"),oe(an,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["vatvod","vatvod-"+t.theme],attrs:{vat:"vod-player",tabindex:"0"},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.onToolButton("cancel-fullscreen")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showError,expression:"showError"}],staticStyle:{position:"absolute",left:"0",right:"0",background:"#111111",width:"100%",height:"100%",display:"flex","z-index":"100","align-items":"center","justify-content":"center"}},[n("span",{staticClass:"vat-error err-msg"},[t._v(t._s(t.errorMsg))])]),n("div",{staticClass:"vod-wins"},[n("table",{ref:"win_table",attrs:{vat:"win-tab",cellspacing:"1"}})]),n("progress-bar",{directives:[{name:"show",rawName:"v-show",value:t.singleMode&&t.wsPort>0&&t.lastDeviceId,expression:"singleMode && wsPort > 0 && lastDeviceId"}],ref:"pb",attrs:{record:t.currentRecord,time:t.currentTime},on:{onDrag:t.onProgressDrag}}),n("vod-tool-bar",{directives:[{name:"show",rawName:"v-show",value:t.lastDeviceId,expression:"lastDeviceId"}],attrs:{"is-fullscreen":t.isFullscreen,"is-expand":t.windowInfos.length>1&&t.expandTimeline,"is-single":t.singleMode||!t.timeLine,"play-status":t.playStatus,"play-direction":t.playDirection,speed:t.currentSpeed,"sync-mode":t.syncMode},on:{onBtnClick:t.onToolButton}}),!t.singleMode&&t.timeLine?n("div",{ref:"times",staticClass:"vod-times",style:{height:t.timesHeight,overflow:"hidden"}},[n("div",{staticClass:"times-panel",style:{left:0,top:t.timesTop}},t._l(t.windowInfos,(function(e){return n("div",{key:e.id,staticClass:"vod-time-row"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.windowInfos.length>1&&t.expandTimeline,expression:"windowInfos.length > 1 && expandTimeline"}],staticClass:"vod-time-left"},[n("label",[t._v(t._s(e.deviceInfo.name))]),n("label",[t._v("\n 同步\n "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.timeline.sync,expression:"win.timeline.sync"}],attrs:{type:"checkbox",disabled:t.syncPlayTimer>0||0!==e.status},domProps:{checked:Array.isArray(e.timeline.sync)?t._i(e.timeline.sync,null)>-1:e.timeline.sync},on:{change:function(n){var i=e.timeline.sync,r=n.target,a=!!r.checked;if(Array.isArray(i)){var s=t._i(i,null);r.checked?s<0&&t.$set(e.timeline,"sync",i.concat([null])):s>-1&&t.$set(e.timeline,"sync",i.slice(0,s).concat(i.slice(s+1)))}else t.$set(e.timeline,"sync",a)}}})])]),n("vod-time-line",{key:e.id,ref:"timelines",refInFor:!0,attrs:{"win-index":e.id,"min-time":e.minTime,"max-time":e.maxTime,"ws-port":t.wsPort,proxy:t.proxyIp},on:{onMove:t.onTimeLineMove,onRecord:t.onTimeLineRecord}})],1)})),0)]):t._e()],1)}),[],!1,null,"7eb6e3ed",null)).exports;function on(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return ln(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ln(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){o=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function ln(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function un(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}var cn=function(t){c(n,t);var e=un(n);function n(){var t;return a(this,n),(t=e.call(this)).isFullscreen=!1,t.fullScreenCheckTimer=0,t.errorMsg="",t.wsPort=0,t.loaded=!1,t.fileOpened=!1,t.wsInitChannel=null,t.initPos=0,t.windowLayout=null,new Promise((function(){return 1})),t}return l(n,[{key:"setLayout",value:function(t){void 0===t.combines&&(t.combines={}),null!=this.windowLayout&&this.windowLayout.setLayout(t)}},{key:"playFile",value:function(t,e){if(null===this.windowLayout)return Tt.INVALID_STATE;for(var n=this.windowLayout.getWindowCount(),i=0;i<n;i++)this.windowLayout.getWindow(i).stop();var r,a=this.windowLayout.getWindow(0),s=[],o=on(this.addrs);try{for(o.s();!(r=o.n()).done;){var l=r.value.split(":",2);if(2!==l.length)return console.error("vod-file-player 属性 addrs 不正确 ",this.addrs),Tt.INVALID_PARAM;s.push({addr:l[0],port:parseInt(l[1],10)})}}catch(t){o.e(t)}finally{o.f()}return a.setFile({addrs:s,pool:this.pool,username:this.username,password:this.password,path:t}),this.initPos=e||0,Tt.OK}},{key:"stopPlay",value:function(){return this.stop(0),Tt.OK}},{key:"getPos",value:function(){return this.callWinFunc(0,(function(t){return t.getPos()}))}},{key:"snapshot",value:function(){return this.callWinFunc(0,(function(t){return t.snapshot()}))}},{key:"stop",value:function(t){if(null!==this.windowLayout){var e=this.windowLayout.getWindow(t);null!==e&&(e.stop(),this.$emit("onStop",t))}}},{key:"showFullscreen",value:function(){var t=this,e=this.$el;if(e.requestFullscreen)e.requestFullscreen();else if(e.mozRequestFullScreen)e.mozRequestFullScreen();else if(e.webkitRequestFullscreen)e.webkitRequestFullscreen();else{if(!e.msRequestFullscreen)return console.log("不存在进入全屏的方法! => undefined"),!1;e.msRequestFullscreen()}return this.isFullscreen=!0,0===this.fullScreenCheckTimer&&(this.fullScreenCheckTimer=setInterval((function(){null===document.fullscreenElement&&t.exitFullscreen()}),1e3)),!0}},{key:"exitFullscreen",value:function(){var t=document;if(t.exitFullscreen)t.exitFullscreen();else if(t.mozCancelFullScreen)t.mozCancelFullScreen();else if(t.webkitExitFullscreen)t.webkitExitFullscreen();else{if(!t.msExitFullscreen)return!1;t.msExitFullscreen()}this.isFullscreen=!1,0!==this.fullScreenCheckTimer&&(clearInterval(this.fullScreenCheckTimer),this.fullScreenCheckTimer=0)}},{key:"onProgressDrag",value:function(t){var e=this.selectedWindow();null!==e&&e.moveTo(t)}},{key:"mounted",value:function(){var t=this,e=this;this.windowLayout=new de(this.$refs.win_table,(function(n,i){var r=new Me(n,i,t.wsPort,null===t.wsInitChannel?null:t.wsInitChannel.getConnectedProxyIp(),bt.FILE_CHANNEL);return r.onStatus=function(t){},r.onPosChange=function(t){},r.onSnapshot=function(t,n,i){e.$emit("onSnapshot",t,n,i)},r.onPlayFinished=function(t,i){e.$emit("onPlayFinished",n,t,i)},r.onPlayState=function(t,n){e.$emit("onPlayState",t,n)},r.onOpenFileState=function(n,i){0===n?(r.record.startTime=0,r.record.endTime=Math.floor(i/1e3),t.fileOpened=!0,r.playPos(t.initPos,ve.FORWARD)):(t.errorMsg="打开文件失败 ("+n+")",e.$emit("onPlayState",!1,n))},r})),this.windowLayout.setup(),this.wsInitChannel=new Zt(this.proxy?this.proxy:null),this.wsInitChannel.onInitOk=function(t,n){e.wsPort=n,null!==e.windowLayout&&e.setLayout({rows:1,cols:1,combines:{}}),e.onLoad(t)},this.wsInitChannel.onInitError=function(e,n){t.errorMsg=n,t.wsPort=0,t.$emit("onLoadFailed",n)},this.wsInitChannel.onConnectFailed=function(){t.errorMsg=q.PLUGIN_SERVICE_NOTFOUND,t.wsPort=0,t.$emit("onLoadFailed",q.PLUGIN_SERVICE_NOTFOUND)},this.wsInitChannel.onDisconnected=function(){t.errorMsg=q.PLUGIN_SERVICE_DISCONNECTED,t.wsPort=0,t.$emit("onDisconnected",q.PLUGIN_SERVICE_NOTFOUND)}}},{key:"beforeDestroy",value:function(){null!==this.windowLayout&&this.windowLayout.destroy(),null!==this.wsInitChannel&&this.wsInitChannel.close()}},{key:"callWinFunc",value:function(t,e){if(null===this.windowLayout)return Tt.INVALID_STATE;var n=this.windowLayout.getWindow(0);return null===n?Tt.UNKNOWN_ERROR:e(n)}},{key:"onLoad",value:function(t){this.loaded=!0,this.$emit("onLoad",this,t,this.wsInitChannel&&this.wsInitChannel.isProxy())}},{key:"onToolButton",value:function(t,e){if("fullscreen"===t)this.showFullscreen();else if("cancel-fullscreen"===t)this.exitFullscreen();else if("snap"===t){var n=this.selectedWindow();null!==n&&n.snapshot()}else if("play"===t){var i=this.selectedWindow(),r=-1===e?ve.BACKWARD:ve.FORWARD;i.play(r)}else if("stop"===t){var a=this.selectedWindow();this.stop(a.index)}else if("pause"===t){var s=this.selectedWindow();null!==s&&s.pause()}else if("back"===t){var o=this.selectedWindow();null!==o&&o.subSpeed()}else if("forward"===t){var l=this.selectedWindow();null!==l&&l.addSpeed()}else if("speed"===t){var u=e;console.log("speed",u);var c=this.selectedWindow();null!==c&&c.setSpeed(u)}else if("prev"===t){var h=this.selectedWindow();null!==h&&h.stepPrev()}else if("next"===t){var d=this.selectedWindow();null!==d&&d.stepNext()}}},{key:"selectedWindow",value:function(){if(null===this.windowLayout)return null;var t=this.windowLayout.getSelectedWindow();return null===t?null:t}},{key:"playStatus",get:function(){var t=this.selectedWindow();return null===t?ge.STOPPED:t.status}},{key:"playDirection",get:function(){var t=this.selectedWindow();return null===t?ve.FORWARD:t.direction}},{key:"currentRecord",get:function(){var t=this.selectedWindow();return null===t?{startTime:0,endTime:0,type:0}:t.record}},{key:"currentTime",get:function(){var t=this.selectedWindow();return null===t?0:t.posSec}},{key:"currentSpeed",get:function(){var t=this.selectedWindow();return null===t?1:t.speed}},{key:"showError",get:function(){return 0===this.wsPort||this.errorMsg}},{key:"proxyIp",get:function(){return this.wsInitChannel?this.wsInitChannel.getConnectedProxyIp():null}}]),n}(_.a);cn.MAX_TIME_SCALE=3,m([A({default:"dark"})],cn.prototype,"theme",void 0),m([A({default:""})],cn.prototype,"proxy",void 0),m([A({default:[]})],cn.prototype,"addrs",void 0),m([A({default:""})],cn.prototype,"username",void 0),m([A({default:""})],cn.prototype,"password",void 0),m([A({default:""})],cn.prototype,"pool",void 0);var hn=cn=m([O({components:{ProgressBar:Ke,VodToolBar:Ee}})],cn),dn=(n("7aa1"),n("227c"),oe(hn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["vatvod","vatvod-"+t.theme],attrs:{vat:"vod-player",tabindex:"0"},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.onToolButton("cancel-fullscreen")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showError,expression:"showError"}],staticStyle:{position:"absolute",left:"0",right:"0",background:"#111111",width:"100%",height:"100%",display:"flex","z-index":"100","align-items":"center","justify-content":"center"}},[n("span",{staticClass:"vat-error err-msg"},[t._v(t._s(t.errorMsg))])]),n("div",{staticClass:"vod-wins"},[n("table",{ref:"win_table",attrs:{vat:"win-tab",cellspacing:"1"}})]),n("progress-bar",{directives:[{name:"show",rawName:"v-show",value:t.wsPort>0&&t.fileOpened,expression:" wsPort > 0 && fileOpened"}],ref:"pb",attrs:{utc:!0,record:t.currentRecord,time:t.currentTime},on:{onDrag:t.onProgressDrag}}),n("vod-tool-bar",{directives:[{name:"show",rawName:"v-show",value:t.fileOpened,expression:"fileOpened"}],attrs:{"is-fullscreen":t.isFullscreen,"is-expand":!1,"is-single":!0,"play-status":t.playStatus,"play-direction":t.playDirection,speed:t.currentSpeed,"sync-mode":!1,"no-back":!0},on:{onBtnClick:t.onToolButton}})],1)}),[],!1,null,"9bb76214",null)).exports,fn=n("c0e8"),mn={install:function(t,e){t.component("live-player",le),t.component("vod-player",sn),t.component("vod-file-player",dn)}};e.default=mn}})},"object"===o(e)&&"object"===o(t)?t.exports=s(n(4)):(r=[],void 0===(a="function"==typeof(i=s)?i.apply(e,r):i)||(t.exports=a))}).call(this,n(32)(t))},,,,,,function(t,e,n){(e=n(2)(!1)).push([t.i,'@font-face {\n font-family: "qz-player";\n src: url(data:application/x-font-woff;base64,d09GRgABAAAAAASwAAsAAAAAB1QAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPgAAAFYz/UCgY21hcAAAAYQAAABgAAABqOs5EjVnbHlmAAAB5AAAANIAAAEkmlTsGmhlYWQAAAK4AAAALwAAADYXuckiaGhlYQAAAugAAAAXAAAAJACeAFZobXR4AAADAAAAABAAAAAYAU8AAGxvY2EAAAMQAAAADgAAAA4BVgDobWF4cAAAAyAAAAAfAAAAIAETAENuYW1lAAADQAAAAS8AAAIieIN8EHBvc3QAAARwAAAAPgAAAFWUfn3KeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGSwYJzAwMrAwGDEYAYkuaC0KgMzgwgDAxMDKzMDVhCQ5prC4PCK8RUrgx+Qyw4kGYE0CDMAAOeaBg4AAHic7ZGxDcRACAQHHzh4fSUvl+LYkfsProkzC1+GkWYRK0SwAAGM5Egc7MZQXela+YNP+c6vdlz+jLVSTZqzl26567poO299S8//FEqrqfy2BvXR6A/TGyU6oyEeULURXXicbY9La8MwEIR3JFmvNpaT2NalheCUKFc/sMCQ1Kce1f//a1I59NYOLCzMt8MscaLHg74pEac3moni2Jzj1MnGt3WJLkTVO/jYjsMdUxi8iv0ngrp0JWrft8N8w2W6Ayl9MQZuSieZBgSXylb2wyhhASb0cW8KMBTapRSRJSunmRJgVnGzP3ghGfAiC1vVZvP1oTREjDYttOZN5nbKh3MzLiGE3W49nW4L/WVyx/yE/IeZM8NJ/X6Zxzr37tyalV08memZs6W8Xq/5nH4Al/cY5AAAeJxjYGRgYADi8M/XbsTz23xl4GbwA4ow3FE9ehRB///P4A8W52BgAokCAHPFDK4AeJxjYGRgYPBjAAF/KMnIgArYABdkAPUAeJxjYAACfyB2QMUADvUBUAAAAAAAUABiAHQAhgCSAAB4nGNgZGBgYGMwZ2BmAAEmIOYCQgaG/2A+AwAOkAFXAHicbZBLbsIwFEVvIFAVpAq1UqXOrA46qQifAQMWAHMGzAM4fJTEwRgkWEBX0DV0DV1Bh11Dl8KN+8SgxZaezju+fpEDoIUvBChXgFtfy1XBDbtfrpJawiH5SbiGJp6F6/Rt4QZeMRBu4gExJwRhOe0eTriCO7wJV+nfhUPyh3ANj/gUrtN/CzcwxY9wEy/BYHtqF2l81Hail/s0tpf+AlNtd2uTq17UvbixzrWNnV6o2VHtDsu+c4lKrMnUyOROp6lRhTUbPXfRyrli2Okk4qO5ybDFiS8ukPJ9R2hYTFiX2Htjr5z/N1Nfd1jDIIdCDxG6V3Jj1txTzD+osWB2xjPFuwd+s0/rkLBPmDHISCM/s0yn3Iam8Gcbmjl9hJW/VWCIDnfyJx8xxUlnKiFhMgB4nGNgYsAP2BiZGJkZWRhZGdkY2RnYEovyS/NSOJISk7PLE4tS2NPyi0A0a0FiaXEqa3FJYlEJAwMAD5oNUgAA) format(\'woff\');\n}\n\n.qz-player-icon {\n font-family: "qz-player" !important;\n font-size: 16px;\n font-style: normal;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.around::before {\n content: "\\ea01";\n}\n\n.backward::before {\n content: "\\ea02";\n}\n\n.forward::before {\n content: "\\ea03";\n}\n\n.pause::before {\n content: "\\ea04";\n}\n\n.start::before {\n content: "\\ea05";\n}\n',""]),t.exports=e},function(t,n){t.exports=e},,,,,,,,,,,,function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";var i=n(8);n.n(i).a},function(t,e,n){(e=n(2)(!1)).push([t.i,".rtsp-player-component{position:relative}.rtsp-player-component .new-version-tip{position:absolute;left:0;top:0;width:100%;height:100%;text-align:center;vertical-align:middle;font-size:20px;color:red;display:flex;flex-flow:column;align-items:center;justify-content:center;background-color:#080808}.rtsp-player-component .new-version-tip .vat-down{color:red;padding-left:32px;height:32px;display:inline-block;cursor:pointer;background:url(\"data:image/svg+xml;charset=utf-8,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M128 806.4h768V896H128v-89.6zM732.288 528l-176.5 186.138c-10.95 11.206-26.412 18.49-43.788 18.49s-32.832-7.284-43.603-18.606l-176.87-185.888c-9.23-10.022-15.111-22.97-15.111-37.324 0-30.816 26.38-55.802 58.9-55.802.454 0 .895.058 1.343.07v-.352h116.435V297.94c0-30.835 26.388-55.82 58.9-55.82 32.53 0 58.905 24.979 58.905 55.82v136.787h114.285v.448c1.165-.064 2.31-.179 3.5-.179 32.526 0 58.9 24.992 58.9 55.815.006 14.355-5.882 27.296-15.296 37.19zM416 128h192v324.8H416V128z' fill='%231bb90a'/%3E%3C/svg%3E\");background-repeat:no-repeat}.rtsp-player-component .new-version-tip .vat-down span{display:table-cell;vertical-align:middle;height:32px}.rtsp-player-component .img,.rtsp-player-component .player,.rtsp-player-component .error-message{position:absolute;height:100%;width:100%;top:0;left:0}.rtsp-player-component .img{z-index:100;background-repeat:no-repeat;background-size:100% 100%;border:2px solid #fff0;box-sizing:border-box}.rtsp-player-component .error-message{z-index:100;color:#f56c6c;display:flex;justify-content:center;align-items:center}.rtsp-player-component .error-message .reconnect{cursor:pointer;color:#409eff}.fc-player .rtsp-player .el-loading-mask{background-color:#101010}",""]),t.exports=e},function(t,e,n){"use strict";var i=n(9);n.n(i).a},function(t,e,n){var i=n(2),r=n(19);(e=i(!1)).i(r),e.push([t.i,".player-control-bar{position:absolute;z-index:3;display:flex;justify-content:center;width:100%;height:60px;bottom:135px}.player-control-bar .center{display:flex;align-items:center;justify-content:center;width:180px}.player-control-bar .center .qz-player-control-icon{font-size:18px;margin:0 16px;cursor:pointer;transition:all .3s}.player-control-bar .center .qz-player-control-icon.start,.player-control-bar .center .qz-player-control-icon.pause{font-size:30px}",""]),t.exports=e},function(t,e,n){"use strict";var i=n(10);n.n(i).a},function(t,e,n){(e=n(2)(!1)).push([t.i,".player-time-select-bar{position:relative;z-index:2;display:flex;padding:0 10px;height:60px;border-top:1px solid}.player-time-select-bar .calendar{flex:1;display:flex;align-items:center}.player-time-select-bar .calendar .title{margin-left:20px;margin-right:20px;font-size:14px;color:#fff}.player-time-select-bar .calendar .el-date-editor{width:160px}.player-time-select-bar .calendar .el-date-editor .el-input__inner{border-radius:2px}",""]),t.exports=e},function(t,e,n){"use strict";var i=n(11);n.n(i).a},function(t,e,n){(e=n(2)(!1)).push([t.i,".player-progress-bar{position:relative;z-index:2;height:75px}.player-progress-bar .progress-outer{height:100%;background:#505f67}.player-progress-bar .progress-outer .time-title{font-size:14px;font-weight:bold}.player-progress-bar .progress-outer .time-rect{width:160px;height:30px}.player-progress-bar .progress-outer .ticks-container{background-color:#000}.player-progress-bar .progress-outer .ticks-container .enter{font-size:12px;font-weight:normal;user-select:none}.player-progress-bar .progress-outer .ticks-container .update{fill:#333}",""]),t.exports=e},function(t,e,n){"use strict";var i=n(12);n.n(i).a},function(t,e,n){var i=n(2),r=n(19);(e=i(!1)).i(r),e.push([t.i,'.qz-player{position:relative;z-index:1;height:100%;width:100%}.qz-player .el-loading-mask{background-color:#10101080}.qz-player .el-loading-mask .el-loading-spinner{margin-top:0;transform:translateY(-50%)}.qz-player .el-loading-mask .el-loading-spinner .circular{background-color:#2f4c5c;border-radius:100%;padding:9px}.qz-player .el-loading-mask .el-loading-spinner .circular .path{stroke-width:3px}.qz-player .load-fail-mask{background-color:#72849b;width:100%;height:100%;display:flex;flex-flow:column;align-items:center;justify-content:center}.qz-player .load-fail-mask .fail-icon{width:39px;height:39px}.qz-player .load-fail-mask .error-text{margin-top:20px;margin-bottom:20px;font-size:16px;color:#e1e9ee}.qz-player .load-fail-mask .download-button{min-width:80px}.qz-player .rtsp-player{position:relative;z-index:2;height:100%}.qz-player .rtsp-player.playback-player-rtsp{height:calc(100% - 135px)}.qz-player .start-player-icon{position:absolute;z-index:998;width:60px;height:60px;left:50%;top:50%;transform:translate(calc(-50% + 2px), -50%);background-repeat:no-repeat;background-size:100%;background-position:center;cursor:pointer;opacity:.9;border-radius:100%;font-size:20px}.qz-player .start-player-icon::before{position:absolute;left:50%;top:50%;transform:translate(calc(-50% + 2px), -50%)}.qz-player .player-control-bar{opacity:0;transition:all .3s}.qz-player .player-control-bar:hover,.qz-player .playback-player:hover+.player-control-bar{opacity:1}.qz-player.light-theme .start-player-icon{color:#0091ff;background-color:#fff;box-shadow:0px 0px 30px 0px rgba(255,255,255,.5),0px 5px 15px 0px rgba(255,255,255,.3)}.qz-player.light-theme .el-loading-mask .el-loading-spinner .circular{background-color:#fff}.qz-player.light-theme .el-loading-mask .el-loading-spinner .circular .path{stroke:#0091ff}.qz-player.light-theme .player-control-bar{background-color:rgba(255,255,255,.9);color:#7b858f}.qz-player.light-theme .player-control-bar .qz-player-control-icon:hover{color:#0091ff}.qz-player.light-theme .player-progress-bar .progress-outer{background:#fff}.qz-player.light-theme .player-progress-bar .times-tick{fill:#666}.qz-player.light-theme .player-progress-bar .tick-path{stroke:#dde0e7}.qz-player.light-theme .player-progress-bar .time-title{fill:#fff}.qz-player.light-theme .player-progress-bar .time-rect{fill:#0091ff}.qz-player.light-theme .player-progress-bar .available-path,.qz-player.light-theme .player-progress-bar .domain{stroke:#0091ff}.qz-player.light-theme .player-time-select-bar{border-top-color:#f1f2f5;background-color:#fff}.qz-player.light-theme .player-time-select-bar .title{color:#333}.qz-player.light-theme .player-time-select-bar .el-date-editor .el-input__inner{color:#333;border-color:#e3e6ec;background-color:#fff}.qz-player.dark-theme .start-player-icon{color:#ffc124;background-color:#2f4c5c;box-shadow:0px 0px 30px 0px rgba(0,0,0,.5),0px 5px 15px 0px rgba(0,0,0,.3)}.qz-player.dark-theme .el-loading-mask .el-loading-spinner .circular{background-color:#2f4c5c}.qz-player.dark-theme .el-loading-mask .el-loading-spinner .circular .path{stroke:#fff}.qz-player.dark-theme .player-control-bar{background:linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #18272f 100%)}.qz-player.dark-theme .player-control-bar .qz-player-control-icon:hover{color:#ffc124}.qz-player.dark-theme .player-progress-bar .progress-outer{background:#505f67}.qz-player.dark-theme .player-progress-bar .times-tick{fill:#fff}.qz-player.dark-theme .player-progress-bar .tick-path{stroke:#868f94}.qz-player.dark-theme .player-progress-bar .time-title{fill:#38474f}.qz-player.dark-theme .player-progress-bar .time-rect{fill:#ffc124}.qz-player.dark-theme .player-progress-bar .available-path,.qz-player.dark-theme .player-progress-bar .domain{stroke:#ffc124}.qz-player.dark-theme .player-time-select-bar{border-top-color:#6e7f88;background-color:#6e7f88}.qz-player.dark-theme .player-time-select-bar .title{color:#fff}.qz-player.dark-theme .player-time-select-bar .el-date-editor .el-input__inner{color:#fff;border-color:#586870;background-color:#586870}.el-picker-panel.qz-player-date-picker.dark-theme{border-radius:2px;background-color:#3c4852;border-color:#3c4852}.el-picker-panel.qz-player-date-picker.dark-theme .el-date-picker__header .el-picker-panel__icon-btn{color:#ffc124}.el-picker-panel.qz-player-date-picker.dark-theme .el-date-picker__header .el-date-picker__header-label{color:#e1e9ee}.el-picker-panel.qz-player-date-picker.dark-theme .el-picker-panel__content .el-date-table th{color:#e1e9ee;border-bottom:1px solid;border-color:#56646e}.el-picker-panel.qz-player-date-picker.dark-theme .el-picker-panel__content .el-date-table td.available span{color:#e1e9ee}.el-picker-panel.qz-player-date-picker.dark-theme .el-picker-panel__content .el-date-table td.current:not(.disabled) span{background-color:#ffc124;border-radius:2px;color:#38474f}.el-picker-panel.qz-player-date-picker.dark-theme .el-picker-panel__content .el-date-table td.prev-month span{color:#8e989e}.el-picker-panel.qz-player-date-picker.dark-theme .el-picker-panel__content .el-date-table td.next-month span{color:#8e989e}.el-picker-panel.qz-player-date-picker.dark-theme .el-picker-panel__content .el-date-table td.today span{background-color:#2e3a40;border-radius:2px}.el-picker-panel.qz-player-date-picker.dark-theme td.available.has-video div{position:relative}.el-picker-panel.qz-player-date-picker.dark-theme td.available.has-video div::after{content:"";position:absolute;height:4px;width:4px;border-radius:100%;background-color:#d8d8d8;bottom:-2px;left:50%;transform:translate(-50%, 0px)}.qz-player-date-picker.dark-theme.el-popper[x-placement^=top] .popper__arrow{border-top-color:#3c4852}.qz-player-date-picker.dark-theme.el-popper[x-placement^=top] .popper__arrow::after{border-top-color:#3c4852}',""]),t.exports=e},function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"renderPlayer",class:"qz-player "+(t.basicConfig&&t.basicConfig.theme||"light-theme"),style:{height:t.playerHeight?t.playerHeight+"px":""}},[t.pluginLoadSuccess?[n("rtsp-player",{ref:"player",staticClass:"rtsp-player",class:"playback"===t.type&&""===t.playerServer&&t.showControlBar?"playback-player-rtsp":"",attrs:{type:t.type,urls:t.urls,config:t.basicConfig,pluginUrl:t.pluginUrl,playerServer:t.playerServer,fileServer:t.fileServer,vodTime:t.vodTime,errorCode:t.errorCode},on:{pluginOnload:t.pluginOnload,pluginStatus:t.pluginStatusChange,pluginOnLogin:t.playerOnLogin,onStreamStatus:t.onStreamStatus,onPlayFinished:t.onPlayFinished,reconnect:t.reconnect,onWinSwap:t.onWinSwap,onWinOp:t.onWinOp,onWinDrop:t.onWinDrop,onDownloadStatus:t.onDownloadStatus,onDownloadProgress:t.onDownloadProgress,onAudioState:t.onAudioState,onRecord:t.onRecord}}),t._v(" "),"live"===t.type&&!this.isPlaying&&t.pluginLoadSuccess&&!t.basicConfig.autoPlay&&t.showPlayBtn?n("div",{staticClass:"start-player-icon start qz-player-icon",on:{click:t.controlIconClick}}):t._e(),t._v(" "),"playback"===t.type&&""===t.playerServer&&t.showControlBar?[n("player-control-bar",{attrs:{type:t.type,paused:t.paused,date:t.date},on:{"update:paused":function(e){t.paused=e},play:t.play,pause:t.pause,backward:t.backward,forward:t.forward}}),t._v(" "),n("player-progress-bar",{ref:"playerProgressBar",attrs:{theme:t.basicConfig&&t.basicConfig.theme||"light-theme",currentTimeProp:t.date},on:{"update:currentTimeProp":function(e){t.date=e},"update:current-time-prop":function(e){t.date=e},updateBackwordList:t.onUpdateBackwordList,updateForwardList:t.onUpdateForwardList,updateCurrentPlay:t.onUpdateCurrentPlay,updatePlayState:t.onUpdatePlayState}}),t._v(" "),n("player-time-select-bar",{attrs:{date:t.date,config:t.basicConfig,theme:t.basicConfig&&t.basicConfig.theme||"light-theme",monthRecord:t.monthRecord},on:{"update:date":t.dateChange,focus:t.dateFocus},scopedSlots:t._u([{key:"datePicker",fn:function(e){return[t._t("datePicker",null,{datePicker:e})]}}],null,!0)})]:t._e()]:[n("div",{staticClass:"load-fail-mask"},[n("img",{staticClass:"fail-icon",attrs:{src:t.imgAround,alt:""}}),t._v(" "),n("p",{staticClass:"error-text"},[t._v(t._s(t.loadFailedMsg))]),t._v(" "),n("player-button",{attrs:{type:"primary",size:t.basicConfig.buttonSize},on:{click:t.downloadPlugin}},[t._v("下载")])],1)]],2)};i._withStripped=!0;var r=n(4),a=n.n(r),s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"rtsp-player-component"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.img,expression:"img"}],staticClass:"img",style:{backgroundImage:t.img?"url("+t.img+")":""}}),t._v(" "),"file"===t.type?[n("vod-file-player",{ref:"player",attrs:{addrs:t.fileServer.addrs,username:t.fileServer.username,password:t.fileServer.password,pool:t.fileServer.pool,proxy:t.fileServer.proxy},on:{onLoad:t.pluginOnload,onPlayState:t.onPlayState,onPlayFinished:t.onPlayFinished}})]:t.isDcsPlayback?[n("vod-player",{ref:"player",attrs:{theme:"dark",server:t.playerServer},on:{onLoad:t.pluginOnload,onLoadFailed:t.pluginOnloadFailed,onDisconnected:t.pluginOnDisconnected,onLogin:t.onLogin,onPlayState:t.onPlayState,onPlayFinished:t.onPlayFinished,onDownloadStatus:t.onDownloadStatus,onDownloadProgress:t.onDownloadProgress}})]:[t.isNewPlayer?n("live-player",{ref:"player",attrs:{theme:"dark",config:t.playerConfig,server:t.playerServer},on:{onLoad:t.pluginOnload,onLoadFailed:t.pluginOnloadFailed,onDisconnected:t.pluginOnDisconnected,onLogin:t.onLogin,onStreamStatus:t.onStreamStatus,onAudioState:t.onAudioState,onSnapshot:t.onSnapshot,onWinOp:t.onWinOp,onRecord:t.onRecord}}):t._e()],t._v(" "),t.isNewPlayer?t._e():n("div",{staticClass:"new-version-tip vatrender"},[n("div",[t._v("请下载最新的插件")]),t._v(" "),n("a",{staticClass:"vat-down",attrs:{href:t.pluginDownloadUrl}},[n("span",[t._v("下载")])])]),t._v(" "),t.singleScreen&&3===t.statusCode?n("div",{staticClass:"error-message"},[n("span",[t._v("连接失败!")]),t._v(" "),n("span",{staticClass:"reconnect",on:{click:function(e){return t.$emit("reconnect")}}},[t._v("重新连接")]),t._v(" "),-1===t.errorCode?n("div",[t._v("获取失败,请检查设备状态是否正常!")]):t._e()]):t._e(),t._v(" "),t.singleScreen&&-1===t.statusCode?n("div",{staticClass:"error-message"},[t._v("\n 获取失败,请检查设备状态是否正常!\n ")]):t._e()],2)};s._withStripped=!0;var o,l=n(13);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d={name:"RtspPlayer",props:{type:{type:String,required:!1},urls:{type:Array,required:!1},errorCode:{type:Number,required:!1},config:{type:Object,required:!1,default:function(){}},playerServer:{type:String,default:""},fileServer:{type:Object,default:function(){}},pluginUrl:{type:String,default:""},vodTime:{type:Object,default:function(){}}},components:{LivePlayer:l.LivePlayer,VodPlayer:l.VodPlayer,VodFilePlayer:l.VodFilePlayer},computed:{pluginDownloadUrl:function(){var t="./player/DCSPlugin-".concat(this.require_version,".exe");return this.pluginUrl||t},isDcsPlayback:function(){return"playback"===this.type&&this.urls.length>0&&this.urls[0].dcs}},data:function(){return{img:"",isPluginLoaded:!1,isLogin:!1,loading:!1,playerConfig:{titleBar:!0,toolBar:!0,roiMenu:!1,dragWindow:!0,dbClick:!0},singleScreen:!0,isNewPlayer:!0,installed_version:"",statusCode:2,require_version:"",dcs:null,currentRenderId:null,dragLayerList:[]}},methods:(o={pluginOnload:function(t,e,n){if(this.installed_version=e,this.require_version!==this.installed_version)return this.isNewPlayer=!1,void console.log("安装版本".concat(this.installed_version,",传入插件版本").concat(this.require_version));if(this.isPluginLoaded=!0,!this.isDcsPlayback){var i=this.playerConfig.layout.rows||1,r=this.playerConfig.layout.cols||1,a=this.playerConfig.layout.combines||{};this.$refs.player.setLayout({rows:i,cols:r,combines:a}),this.singleScreen=1===i&&1===r,console.log("singleScreen",this.singleScreen)}this.bindDrop(),this.$emit("pluginOnload",this.isPluginLoaded,n),this.urls&&0!==this.urls.length&&this.config.autoPlay&&this.play()},pluginOnloadFailed:function(t){this.$emit("pluginStatus","pluginOnloadFailed",t,this.pluginDownloadUrl)},pluginOnDisconnected:function(t){this.$emit("pluginStatus","pluginOnDisconnected",t,this.pluginDownloadUrl)},onLogin:function(t,e){console.log("登录状态:",t,"code:",e),this.isLogin=t,this.dcs=this.$refs.player&&this.$refs.player.dcs,this.$emit("pluginOnLogin",this.isLogin)},onStreamStatus:function(t,e,n){if(this.statusCode=e,2===e&&(this.$parent.loading=!1,this.img=""),3===e)try{var i=this.getLayout().streams,r=-1;for(var a in i)if(t+""==i[a].id+""){r=Number(a);break}this.stop(r)}catch(t){}var s=-1;try{s=Number(this.getStreamItem(t,"id").index)}catch(t){}this.$emit("onStreamStatus",{id:t,status:e,code:n,errorText:this.getErrorText(n),index:s})},onAudioState:function(t,e,n,i,r){this.$emit("onAudioState",t,e,n,i,r)},onPlayState:function(t,e){t?(this.hideLoading(),this.img=""):this.stop,this.$emit("onStreamStatus",{index:0,status:t?2:-1,code:e,errorText:this.getErrorText(e)})},onPlayFinished:function(t,e,n){this.$emit("onPlayFinished",t,e,n)},onSnapshot:function(t,e){this.$emit("snapshot",t,e)},onDownloadStatus:function(t,e,n,i){this.$emit("onDownloadStatus",t,e,n,i)},onDownloadProgress:function(t,e,n){this.$emit("onDownloadProgress",t,e,n)},onRecord:function(t,e,n){this.$emit("onRecord",t,e,n)},onWinOp:function(t,e,n){var i={},r=0,a=this.getLayout().streams;for(var s in a)if(e===a[s].id){r=Number(s),i=a[s];break}"swap"===n?this.$emit("onWinSwap",{index:t,swapTargetIndex:r,streamItem:i,state:n}):this.$emit("onWinOp",{index:t,streamItem:i,state:n})},streamPlay:function(t){1===this.playerConfig.layout.rows&&1===this.playerConfig.layout.cols?this.urls.length>0&&(this.showLoading(),this.openStreamInServer(0,this.urls[0])):void 0!==t?(this.showLoading(),this.openStreamInServer(t,this.urls[t])):(this.showLoading(),this.multiplePlayStream())},streamClose:function(t){this.isPluginLoaded&&(void 0!==t?this.$refs.player.closeStream(t):this.$refs.player.closeStream(-1))},capture:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.isPluginLoaded)return this.$refs.player.snapshot(e),new Promise((function(e){t.$on("snapshot",(function(t,n){e({id:t,data:n})}))}))},play:function(t){this.isPluginLoaded&&(this.playerServer&&!this.isLogin||this.streamPlay(t))},pause:function(){var t=this;if(this.isPluginLoaded)return new Promise((function(e,n){t.capture().then((function(n){var i=n.data;t.img=i,t.streamClose(),e()}))}))},stop:function(t){this.hideLoading(),this.isPluginLoaded&&this.closeStreamInServer(t)},openStreamInServer:function(t,e,n){if(e){var i="".concat(e.dcs?"dcs://":"").concat(e.rtspUrl),r=c({id:+new Date,url:i},n||{});this.currentRenderId=r.id,"live"===this.type?(this.$refs.player.openStreamEx(t,r),this.$emit("onStreamStatus",{id:r.id,status:1,code:0,errorText:this.getErrorText(0),index:t})):"playback"===this.type?e.dcs?(this.hideLoading(),this.vodTime&&Object.keys(this.vodTime).length>0&&this.vodTime.beginTime&&this.vodTime.endTime?this.$refs.player.playVodStream&&this.$refs.player.playVodStream(i,{beginTime:this.vodTime.beginTime,endTime:this.vodTime.endTime}):this.$refs.player.openDevice&&this.$refs.player.openDevice(i)):(this.$refs.player.openStreamEx(t,r),this.$emit("onStreamStatus",{id:r.id,status:1,code:0,errorText:this.getErrorText(0),index:t})):"file"===this.type&&this.$refs.player.playFile(e.rtspUrl,e.pos||0)}},closeStreamInServer:function(t){this.$refs.player&&(this.isDcsPlayback?this.$refs.player.stopPlay():"file"!==this.type?void 0===t||"[object Array]"===Object.prototype.toString.call(t)?this.$refs.player.closeStreams(t):this.$refs.player.closeStream(t):this.$refs.player.stopPlay())},showLoading:function(){this.$parent.loading=!0},hideLoading:function(){this.$parent.loading=!1},multiplePlayStream:function(){var t=this;this.urls.map((function(e,n){t.openStreamInServer(n,e)}))},streamCloses:function(t){this.closeStreamInServer(t)},getStreamInfo:function(t){return 2===this.statusCode&&this.$refs.player&&this.$refs.player.getStreamInfo?this.$refs.player.getStreamInfo(t):null},getLayout:function(){return this.$refs.player&&this.$refs.player.getLayout()},setLayout:function(t){var e=this;this.$refs.player&&this.$refs.player.setLayout(t),this.$nextTick((function(){e.bindDrop()}))},bindDrop:function(){var t=this;this.dragLayerList=this.$refs.player.$el.querySelectorAll("div.drag-layer"),this.dragLayerList.forEach((function(e){e.addEventListener("drop",t.dropEvent)}))},dropEvent:function(t){var e=-1,n=this.$refs.player.getLayout().streams,i={};try{i=JSON.parse(t.dataTransfer.getData("text").split("vat-live:").join(""))}catch(e){console.warn("dataTransfer get error",t.dataTransfer.getData("text"))}for(var r in n)if(i.id===n[r].id){e=r;break}this.$emit("onWinDrop",e)},getErrorText:function(t){try{t=Number(t)}catch(e){t=99999999999}var e="";switch(t){case 99999999999:e="未知错误,code:".concat(t);break;case 0:e="正常";break;case-1:e="连接失败";break;case-2:e="找不到流";break;case-3:e="用户名或密码错误";break;case-5:e="对方协议错误";break;case-100:e="不支持流类型";break;case-101:e="打开流失败";break;case 8:e="路数达到限制";break;case-20040:e="录像段不存在"}return 0!==t&&console.warn("播放错误:".concat(e)),e},showFullscreen:function(){return this.$refs.player&&this.$refs.player.showFullscreen()},ptzControl:function(t,e,n){return this.$refs.player&&this.$refs.player.ptzControl(t,e,n)},swapWindow:function(t,e){return this.$refs.player&&this.$refs.player.swapWindow(t,e)},selectWindow:function(t){return this.$refs.player&&this.$refs.player.selectWindow(t)},getStreamItem:function(t,e){var n=0,i={},r=this.$refs.player.getLayout().streams;for(var a in r)if(r[a][e]===t){i=r[a],n=a;break}return c(c({},i),{},{index:n})}},h(o,"showFullscreen",(function(){return this.$refs.player&&this.$refs.player.showFullscreen()})),h(o,"toggleWindow",(function(){return this.$refs.player&&this.$refs.player.toggleWindow()})),h(o,"downloadRecord",(function(t,e,n){if(this.isDcsPlayback){var i=this.$refs.player.createDownloadTask(t,e);this.$refs.player.startDownload(i),this.$emit("downloadRecord",i)}})),h(o,"stopDownload",(function(t){t&&this.$refs.player.stopDownload&&this.$refs.player.stopDownload(t)})),h(o,"destroyDownloadTask",(function(t){this.$refs.player.destroyDownloadTask(t)})),h(o,"startRecord",(function(t,e,n){return this.$refs.player.startRecord(t,e,n)})),h(o,"stopRecord",(function(t){return this.$refs.player.stopRecord(t)})),o),created:function(){if(this.pluginUrl?this.require_version=this.pluginUrl.split("DCSPlugin-")[1].split(".exe")[0]:(console.warn("暂无传入版本号,启用默认版本:1.1.12"),this.require_version="1.1.12"),this.config&&this.config.defaultSetting){var t=this.playerConfig;for(var e in t=Object.assign(t,this.config.defaultSetting))this.$set(this.playerConfig,e,t[e])}if(this.config){var n=this.config;void 0===n.rows&&(n.rows=1),void 0===n.cols&&(n.cols=1),void 0===n.combines&&(n.combines={}),this.$set(this.playerConfig,"layout",c({},n))}else this.$set(this.playerConfig,"layout",{rows:1,cols:1,combines:{}})}};function f(t,e,n,i,r,a,s,o){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),s?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=l):r&&(l=o?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n(33);var m=f(d,s,[],!1,null,null,null);m.options.__file="src/components/rtsp-player.vue";var p=m.exports,_=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"player-control-bar"},[n("div",{staticClass:"center"},["live"!==t.type?n("div",{staticClass:"qz-player-control-icon qz-player-icon backward",on:{click:t.backward}}):t._e(),t._v(" "),[t.paused?n("div",{staticClass:"qz-player-control-icon qz-player-icon start",on:{click:t.play}}):n("div",{staticClass:"qz-player-control-icon qz-player-icon pause",on:{click:t.pause}})],t._v(" "),"live"!==t.type?n("div",{staticClass:"qz-player-control-icon qz-player-icon forward",on:{click:t.forward}}):t._e()],2)])};_._withStripped=!0;var g={name:"PlayerControlBar",props:{type:{type:String,default:"live"},paused:{type:Boolean,default:!1}},methods:{play:function(){this.$emit("play"),this.updatePaused(!1)},pause:function(){this.$emit("pause"),this.updatePaused(!0)},backward:function(){this.$emit("backward")},forward:function(){this.$emit("forward")},updatePaused:function(t){this.$emit("update:paused",t)}}},v=(n(35),f(g,_,[],!1,null,null,null));v.options.__file="src/components/player-control-bar.vue";var y=v.exports,b=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"player-time-select-bar"},[e("div",{staticClass:"calendar"},[e("span",{staticClass:"title"},[this._v("选择日期")]),this._v(" "),this._t("datePicker",null,null,this.datePickerBind)],2)])};b._withStripped=!0;var w=n(20),x=n.n(w),M={name:"PlayerControlBar",props:{date:{type:Number,required:!0},monthRecord:{type:Array,default:function(){return[]}},config:{type:Object,required:!1,default:function(){}},theme:{type:String,default:"light-theme"}},data:function(){return{datePicker:"",datePickerBind:{defaultValue:x()(),listen:this.handleDateChange}}},computed:{pickerOptions:function(){var t=this;return{cellClassName:function(e){return e.getMonth()===new Date(t.date).getMonth()&&e.getFullYear()===new Date(t.date).getFullYear()&&1===t.monthRecord[e.getDate()-1]?"has-video":""}}}},methods:{handleDateChange:function(t){var e=Object.prototype.toString.call(t);if(t._isAMomentObject)this.$emit("update:date",+new Date(t.format("YYYY-MM-DD 00:00:00")));else if("[object Date]"===e)this.$emit("update:date",+t);else if("[object Number]"===e)this.$emit("update:date",t);else if("[object String]"===e){var n=new Date(t).getTime();isNaN(n)?console.log("错误的时间:",t):this.$emit("update:date",n)}else console.log("未知时间类型:",t)},handleFocus:function(){this.$emit("focus")}},created:function(){},mounted:function(){}},S=(n(37),f(M,b,[],!1,null,null,null));S.options.__file="src/components/player-time-select-bar.vue";var L=S.exports,k=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"progressCtnr",staticClass:"player-progress-bar"},[n("svg",{staticClass:"progress-outer",attrs:{width:"100%",viewBox:t.viewBox}},[n("g",{staticClass:"progress-inner",attrs:{fill:"none","font-size":"10","font-family":"sans-serif","text-anchor":"middle",transform:"translate(0,0)"}},[n("g",{staticClass:"ticks-container"}),t._v(" "),n("g",{staticClass:"available-container"})]),t._v(" "),n("g",[n("line",{staticClass:"domain",attrs:{"stroke-width":"2",x1:t.middle,x2:t.middle,y1:"0",y2:"50"}})]),t._v(" "),n("g",[n("rect",{staticClass:"time-rect",attrs:{rx:"light-theme"===t.theme?15:0,ry:"light-theme"===t.theme?15:0,x:t.curTimeX,y:"35"}}),t._v(" "),n("text",{staticClass:"time-title",attrs:{x:t.curTimeX+10,y:"55"}},[t._v("\n "+t._s(t.dateFormat(new Date(t.currentTime)))+"\n ")])])])])};k._withStripped=!0;var T=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},D=function(t){var e;return 1===t.length&&(e=t,t=function(t,n){return T(e(t),n)}),{left:function(e,n,i,r){for(null==i&&(i=0),null==r&&(r=e.length);i<r;){var a=i+r>>>1;t(e[a],n)<0?i=a+1:r=a}return i},right:function(e,n,i,r){for(null==i&&(i=0),null==r&&(r=e.length);i<r;){var a=i+r>>>1;t(e[a],n)>0?r=a:i=a+1}return i}}},C=D(T);C.right,C.left;var E=Array.prototype;E.slice,E.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2),Array.prototype.slice;var O={value:function(){}};function Y(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t);i[t]=[]}return new A(i)}function A(t){this._=t}function P(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",i=t.indexOf(".");if(i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function R(t,e){for(var n,i=0,r=t.length;i<r;++i)if((n=t[i]).name===e)return n.value}function I(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=O,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}A.prototype=Y.prototype={constructor:A,on:function(t,e){var n,i=this._,r=P(t+"",i),a=-1,s=r.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<s;)if(n=(t=r[a]).type)i[n]=I(i[n],t.name,e);else if(null==e)for(n in i)i[n]=I(i[n],t.name,null);return this}for(;++a<s;)if((n=(t=r[a]).type)&&(n=R(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new A(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,r=new Array(n),a=0;a<n;++a)r[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,n=(i=this._[t]).length;a<n;++a)i[a].value.apply(e,r)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,a=i.length;r<a;++r)i[r].value.apply(e,n)}};var j=Y;function F(){}var H=function(t){return null==t?F:function(){return this.querySelector(t)}};function N(){return[]}var W=function(t){return null==t?N:function(){return this.querySelectorAll(t)}},U=function(t){return function(){return this.matches(t)}},B=function(t){return new Array(t.length)};function z(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function V(t,e,n,i,r,a){for(var s,o=0,l=e.length,u=a.length;o<u;++o)(s=e[o])?(s.__data__=a[o],i[o]=s):n[o]=new z(t,a[o]);for(;o<l;++o)(s=e[o])&&(r[o]=s)}function G(t,e,n,i,r,a,s){var o,l,u,c={},h=e.length,d=a.length,f=new Array(h);for(o=0;o<h;++o)(l=e[o])&&(f[o]=u="$"+s.call(l,l.__data__,o,e),u in c?r[o]=l:c[u]=l);for(o=0;o<d;++o)(l=c[u="$"+s.call(t,a[o],o,a)])?(i[o]=l,l.__data__=a[o],c[u]=null):n[o]=new z(t,a[o]);for(o=0;o<h;++o)(l=e[o])&&c[f[o]]===l&&(r[o]=l)}function X(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}z.prototype={constructor:z,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var K="http://www.w3.org/1999/xhtml",q={svg:"http://www.w3.org/2000/svg",xhtml:K,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},J=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),q.hasOwnProperty(e)?{space:q[e],local:t}:t};function $(t){return function(){this.removeAttribute(t)}}function Z(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Q(t,e){return function(){this.setAttribute(t,e)}}function tt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function et(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function nt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var it=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function rt(t){return function(){this.style.removeProperty(t)}}function at(t,e,n){return function(){this.style.setProperty(t,e,n)}}function st(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function ot(t,e){return t.style.getPropertyValue(e)||it(t).getComputedStyle(t,null).getPropertyValue(e)}function lt(t){return function(){delete this[t]}}function ut(t,e){return function(){this[t]=e}}function ct(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function ht(t){return t.trim().split(/^|\s+/)}function dt(t){return t.classList||new ft(t)}function ft(t){this._node=t,this._names=ht(t.getAttribute("class")||"")}function mt(t,e){for(var n=dt(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function pt(t,e){for(var n=dt(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function _t(t){return function(){mt(this,t)}}function gt(t){return function(){pt(this,t)}}function vt(t,e){return function(){(e.apply(this,arguments)?mt:pt)(this,t)}}function yt(){this.textContent=""}function bt(t){return function(){this.textContent=t}}function wt(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function xt(){this.innerHTML=""}function Mt(t){return function(){this.innerHTML=t}}function St(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Lt(){this.nextSibling&&this.parentNode.appendChild(this)}function kt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Tt(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===K&&e.documentElement.namespaceURI===K?e.createElement(t):e.createElementNS(n,t)}}function Dt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}ft.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Ct=function(t){var e=J(t);return(e.local?Dt:Tt)(e)};function Et(){return null}function Ot(){var t=this.parentNode;t&&t.removeChild(this)}function Yt(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function At(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var Pt={},Rt=null;function It(t,e,n){return t=jt(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function jt(t,e,n){return function(i){var r=Rt;Rt=i;try{t.call(this,this.__data__,e,n)}finally{Rt=r}}}function Ft(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function Ht(t){return function(){var e=this.__on;if(e){for(var n,i=0,r=-1,a=e.length;i<a;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++r]=n:this.removeEventListener(n.type,n.listener,n.capture);++r?e.length=r:delete this.__on}}}function Nt(t,e,n){var i=Pt.hasOwnProperty(t.type)?It:jt;return function(r,a,s){var o,l=this.__on,u=i(e,a,s);if(l)for(var c=0,h=l.length;c<h;++c)if((o=l[c]).type===t.type&&o.name===t.name)return this.removeEventListener(o.type,o.listener,o.capture),this.addEventListener(o.type,o.listener=u,o.capture=n),void(o.value=e);this.addEventListener(t.type,u,n),o={type:t.type,name:t.name,value:e,listener:u,capture:n},l?l.push(o):this.__on=[o]}}function Wt(t,e,n,i){var r=Rt;t.sourceEvent=Rt,Rt=t;try{return e.apply(n,i)}finally{Rt=r}}function Ut(t,e,n){var i=it(t),r=i.CustomEvent;"function"==typeof r?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function Bt(t,e){return function(){return Ut(this,t,e)}}function zt(t,e){return function(){return Ut(this,t,e.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Pt={mouseenter:"mouseover",mouseleave:"mouseout"}));var Vt=[null];function Gt(t,e){this._groups=t,this._parents=e}function Xt(){return new Gt([[document.documentElement]],Vt)}Gt.prototype=Xt.prototype={constructor:Gt,select:function(t){"function"!=typeof t&&(t=H(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var a,s,o=e[r],l=o.length,u=i[r]=new Array(l),c=0;c<l;++c)(a=o[c])&&(s=t.call(a,a.__data__,c,o))&&("__data__"in a&&(s.__data__=a.__data__),u[c]=s);return new Gt(i,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=W(t));for(var e=this._groups,n=e.length,i=[],r=[],a=0;a<n;++a)for(var s,o=e[a],l=o.length,u=0;u<l;++u)(s=o[u])&&(i.push(t.call(s,s.__data__,u,o)),r.push(s));return new Gt(i,r)},filter:function(t){"function"!=typeof t&&(t=U(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var a,s=e[r],o=s.length,l=i[r]=[],u=0;u<o;++u)(a=s[u])&&t.call(a,a.__data__,u,s)&&l.push(a);return new Gt(i,this._parents)},data:function(t,e){if(!t)return m=new Array(this.size()),c=-1,this.each((function(t){m[++c]=t})),m;var n,i=e?G:V,r=this._parents,a=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var s=a.length,o=new Array(s),l=new Array(s),u=new Array(s),c=0;c<s;++c){var h=r[c],d=a[c],f=d.length,m=t.call(h,h&&h.__data__,c,r),p=m.length,_=l[c]=new Array(p),g=o[c]=new Array(p);i(h,d,_,g,u[c]=new Array(f),m,e);for(var v,y,b=0,w=0;b<p;++b)if(v=_[b]){for(b>=w&&(w=b+1);!(y=g[w])&&++w<p;);v._next=y||null}}return(o=new Gt(o,r))._enter=l,o._exit=u,o},enter:function(){return new Gt(this._enter||this._groups.map(B),this._parents)},exit:function(){return new Gt(this._exit||this._groups.map(B),this._parents)},join:function(t,e,n){var i=this.enter(),r=this,a=this.exit();return i="function"==typeof t?t(i):i.append(t+""),null!=e&&(r=e(r)),null==n?a.remove():n(a),i&&r?i.merge(r).order():r},merge:function(t){for(var e=this._groups,n=t._groups,i=e.length,r=n.length,a=Math.min(i,r),s=new Array(i),o=0;o<a;++o)for(var l,u=e[o],c=n[o],h=u.length,d=s[o]=new Array(h),f=0;f<h;++f)(l=u[f]||c[f])&&(d[f]=l);for(;o<i;++o)s[o]=e[o];return new Gt(s,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,r=t[e],a=r.length-1,s=r[a];--a>=0;)(i=r[a])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=X);for(var n=this._groups,i=n.length,r=new Array(i),a=0;a<i;++a){for(var s,o=n[a],l=o.length,u=r[a]=new Array(l),c=0;c<l;++c)(s=o[c])&&(u[c]=s);u.sort(e)}return new Gt(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,a=i.length;r<a;++r){var s=i[r];if(s)return s}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r,a=e[n],s=0,o=a.length;s<o;++s)(r=a[s])&&t.call(r,r.__data__,s,a);return this},attr:function(t,e){var n=J(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?Z:$:"function"==typeof e?n.local?nt:et:n.local?tt:Q)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?rt:"function"==typeof e?st:at)(t,e,null==n?"":n)):ot(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?lt:"function"==typeof e?ct:ut)(t,e)):this.node()[t]},classed:function(t,e){var n=ht(t+"");if(arguments.length<2){for(var i=dt(this.node()),r=-1,a=n.length;++r<a;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"==typeof e?vt:e?_t:gt)(n,e))},text:function(t){return arguments.length?this.each(null==t?yt:("function"==typeof t?wt:bt)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?xt:("function"==typeof t?St:Mt)(t)):this.node().innerHTML},raise:function(){return this.each(Lt)},lower:function(){return this.each(kt)},append:function(t){var e="function"==typeof t?t:Ct(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:Ct(t),i=null==e?Et:"function"==typeof e?e:H(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(Ot)},clone:function(t){return this.select(t?At:Yt)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,r,a=Ft(t+""),s=a.length;if(!(arguments.length<2)){for(o=e?Nt:Ht,null==n&&(n=!1),i=0;i<s;++i)this.each(o(a[i],e,n));return this}var o=this.node().__on;if(o)for(var l,u=0,c=o.length;u<c;++u)for(i=0,l=o[u];i<s;++i)if((r=a[i]).type===l.type&&r.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?zt:Bt)(t,e))}};var Kt=Xt,qt=function(t){return"string"==typeof t?new Gt([[document.querySelector(t)]],[document.documentElement]):new Gt([[t]],Vt)};function Jt(){Rt.stopImmediatePropagation()}var $t=function(){Rt.preventDefault(),Rt.stopImmediatePropagation()},Zt=function(t){var e=t.document.documentElement,n=qt(t).on("dragstart.drag",$t,!0);"onselectstart"in e?n.on("selectstart.drag",$t,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")};function Qt(t,e){var n=t.document.documentElement,i=qt(t).on("dragstart.drag",null);e&&(i.on("click.drag",$t,!0),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var te=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function ee(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function ne(){}var ie="\\s*([+-]?\\d+)\\s*",re="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ae="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",se=/^#([0-9a-f]{3,8})$/,oe=new RegExp("^rgb\\("+[ie,ie,ie]+"\\)$"),le=new RegExp("^rgb\\("+[ae,ae,ae]+"\\)$"),ue=new RegExp("^rgba\\("+[ie,ie,ie,re]+"\\)$"),ce=new RegExp("^rgba\\("+[ae,ae,ae,re]+"\\)$"),he=new RegExp("^hsl\\("+[re,ae,ae]+"\\)$"),de=new RegExp("^hsla\\("+[re,ae,ae,re]+"\\)$"),fe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function me(){return this.rgb().formatHex()}function pe(){return this.rgb().formatRgb()}function _e(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=se.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?ge(e):3===n?new we(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?ve(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?ve(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=oe.exec(t))?new we(e[1],e[2],e[3],1):(e=le.exec(t))?new we(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ue.exec(t))?ve(e[1],e[2],e[3],e[4]):(e=ce.exec(t))?ve(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=he.exec(t))?Le(e[1],e[2]/100,e[3]/100,1):(e=de.exec(t))?Le(e[1],e[2]/100,e[3]/100,e[4]):fe.hasOwnProperty(t)?ge(fe[t]):"transparent"===t?new we(NaN,NaN,NaN,0):null}function ge(t){return new we(t>>16&255,t>>8&255,255&t,1)}function ve(t,e,n,i){return i<=0&&(t=e=n=NaN),new we(t,e,n,i)}function ye(t){return t instanceof ne||(t=_e(t)),t?new we((t=t.rgb()).r,t.g,t.b,t.opacity):new we}function be(t,e,n,i){return 1===arguments.length?ye(t):new we(t,e,n,null==i?1:i)}function we(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function xe(){return"#"+Se(this.r)+Se(this.g)+Se(this.b)}function Me(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Se(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Le(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Te(t,e,n,i)}function ke(t){if(t instanceof Te)return new Te(t.h,t.s,t.l,t.opacity);if(t instanceof ne||(t=_e(t)),!t)return new Te;if(t instanceof Te)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),a=Math.max(e,n,i),s=NaN,o=a-r,l=(a+r)/2;return o?(s=e===a?(n-i)/o+6*(n<i):n===a?(i-e)/o+2:(e-n)/o+4,o/=l<.5?a+r:2-a-r,s*=60):o=l>0&&l<1?0:s,new Te(s,o,l,t.opacity)}function Te(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function De(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Ce(t,e,n,i,r){var a=t*t,s=a*t;return((1-3*t+3*a-s)*e+(4-6*a+3*s)*n+(1+3*t+3*a-3*s)*i+s*r)/6}te(ne,_e,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:me,formatHex:me,formatHsl:function(){return ke(this).formatHsl()},formatRgb:pe,toString:pe}),te(we,be,ee(ne,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new we(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new we(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:xe,formatHex:xe,formatRgb:Me,toString:Me})),te(Te,(function(t,e,n,i){return 1===arguments.length?ke(t):new Te(t,e,n,null==i?1:i)}),ee(ne,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Te(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Te(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new we(De(t>=240?t-240:t+120,r,i),De(t,r,i),De(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Ee=function(t){return function(){return t}};function Oe(t,e){return function(n){return t+n*e}}function Ye(t){return 1==(t=+t)?Ae:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):Ee(isNaN(e)?n:e)}}function Ae(t,e){var n=e-t;return n?Oe(t,n):Ee(isNaN(t)?e:t)}var Pe=function t(e){var n=Ye(e);function i(t,e){var i=n((t=be(t)).r,(e=be(e)).r),r=n(t.g,e.g),a=n(t.b,e.b),s=Ae(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=a(e),t.opacity=s(e),t+""}}return i.gamma=t,i}(1);function Re(t){return function(e){var n,i,r=e.length,a=new Array(r),s=new Array(r),o=new Array(r);for(n=0;n<r;++n)i=be(e[n]),a[n]=i.r||0,s[n]=i.g||0,o[n]=i.b||0;return a=t(a),s=t(s),o=t(o),i.opacity=1,function(t){return i.r=a(t),i.g=s(t),i.b=o(t),i+""}}}Re((function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),r=t[i],a=t[i+1],s=i>0?t[i-1]:2*r-a,o=i<e-1?t[i+2]:2*a-r;return Ce((n-i/e)*e,s,r,a,o)}})),Re((function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),r=t[(i+e-1)%e],a=t[i%e],s=t[(i+1)%e],o=t[(i+2)%e];return Ce((n-i/e)*e,r,a,s,o)}}));var Ie=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},je=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Fe=new RegExp(je.source,"g"),He=function(t,e){var n,i,r,a=je.lastIndex=Fe.lastIndex=0,s=-1,o=[],l=[];for(t+="",e+="";(n=je.exec(t))&&(i=Fe.exec(e));)(r=i.index)>a&&(r=e.slice(a,r),o[s]?o[s]+=r:o[++s]=r),(n=n[0])===(i=i[0])?o[s]?o[s]+=i:o[++s]=i:(o[++s]=null,l.push({i:s,x:Ie(n,i)})),a=Fe.lastIndex;return a<e.length&&(r=e.slice(a),o[s]?o[s]+=r:o[++s]=r),o.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,i=0;i<e;++i)o[(n=l[i]).i]=n.x(t);return o.join("")})},Ne=function(){for(var t,e=Rt;t=e.sourceEvent;)e=t;return e},We=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}var r=t.getBoundingClientRect();return[e.clientX-r.left-t.clientLeft,e.clientY-r.top-t.clientTop]},Ue=function(t,e,n){arguments.length<3&&(n=e,e=Ne().changedTouches);for(var i,r=0,a=e?e.length:0;r<a;++r)if((i=e[r]).identifier===n)return We(t,i);return null},Be=function(t){var e=Ne();return e.changedTouches&&(e=e.changedTouches[0]),We(t,e)};function ze(t){return(ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Ve,Ge,Xe=0,Ke=0,qe=0,Je=0,$e=0,Ze=0,Qe="object"===("undefined"==typeof performance?"undefined":ze(performance))&&performance.now?performance:Date,tn="object"===("undefined"==typeof window?"undefined":ze(window))&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function en(){return $e||(tn(nn),$e=Qe.now()+Ze)}function nn(){$e=0}function rn(){this._call=this._time=this._next=null}function an(t,e,n){var i=new rn;return i.restart(t,e,n),i}function sn(){$e=(Je=Qe.now())+Ze,Xe=Ke=0;try{!function(){en(),++Xe;for(var t,e=Ve;e;)(t=$e-e._time)>=0&&e._call.call(null,t),e=e._next;--Xe}()}finally{Xe=0,function(){for(var t,e,n=Ve,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Ve=e);Ge=t,ln(i)}(),$e=0}}function on(){var t=Qe.now(),e=t-Je;e>1e3&&(Ze-=e,Je=t)}function ln(t){Xe||(Ke&&(Ke=clearTimeout(Ke)),t-$e>24?(t<1/0&&(Ke=setTimeout(sn,t-Qe.now()-Ze)),qe&&(qe=clearInterval(qe))):(qe||(Je=Qe.now(),qe=setInterval(on,1e3)),Xe=1,tn(sn)))}rn.prototype=an.prototype={constructor:rn,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?en():+n)+(null==e?0:+e),this._next||Ge===this||(Ge?Ge._next=this:Ve=this,Ge=this),this._call=t,this._time=n,ln()},stop:function(){this._call&&(this._call=null,this._time=1/0,ln())}};var un=function(t,e,n){var i=new rn;return e=null==e?0:+e,i.restart((function(n){i.stop(),t(n+e)}),e,n),i},cn=j("start","end","cancel","interrupt"),hn=[],dn=function(t,e,n,i,r,a){var s=t.__transition;if(s){if(n in s)return}else t.__transition={};!function(t,e,n){var i,r=t.__transition;function a(l){var u,c,h,d;if(1!==n.state)return o();for(u in r)if((d=r[u]).name===n.name){if(3===d.state)return un(a);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[u]):+u<e&&(d.state=6,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete r[u])}if(un((function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(l))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,i=new Array(h=n.tween.length),u=0,c=-1;u<h;++u)(d=n.tween[u].value.call(t,t.__data__,n.index,n.group))&&(i[++c]=d);i.length=c+1}}function s(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(o),n.state=5,1),a=-1,s=i.length;++a<s;)i[a].call(t,r);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),o())}function o(){for(var i in n.state=6,n.timer.stop(),delete r[e],r)return;delete t.__transition}r[e]=n,n.timer=an((function(t){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}),0,n.time)}(t,n,{name:e,index:i,group:r,on:cn,tween:hn,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})};function fn(t,e){var n=pn(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function mn(t,e){var n=pn(t,e);if(n.state>3)throw new Error("too late; already running");return n}function pn(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var _n,gn,vn,yn,bn=function(t,e){var n,i,r,a=t.__transition,s=!0;if(a){for(r in e=null==e?null:e+"",a)(n=a[r]).name===e?(i=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[r]):s=!1;s&&delete t.__transition}},wn=180/Math.PI,xn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Mn=function(t,e,n,i,r,a){var s,o,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(o=Math.sqrt(n*n+i*i))&&(n/=o,i/=o,l/=o),t*i<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:r,translateY:a,rotate:Math.atan2(e,t)*wn,skewX:Math.atan(l)*wn,scaleX:s,scaleY:o}};function Sn(t,e,n,i){function r(t){return t.length?t.pop()+" ":""}return function(a,s){var o=[],l=[];return a=t(a),s=t(s),function(t,i,r,a,s,o){if(t!==r||i!==a){var l=s.push("translate(",null,e,null,n);o.push({i:l-4,x:Ie(t,r)},{i:l-2,x:Ie(i,a)})}else(r||a)&&s.push("translate("+r+e+a+n)}(a.translateX,a.translateY,s.translateX,s.translateY,o,l),function(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(r(n)+"rotate(",null,i)-2,x:Ie(t,e)})):e&&n.push(r(n)+"rotate("+e+i)}(a.rotate,s.rotate,o,l),function(t,e,n,a){t!==e?a.push({i:n.push(r(n)+"skewX(",null,i)-2,x:Ie(t,e)}):e&&n.push(r(n)+"skewX("+e+i)}(a.skewX,s.skewX,o,l),function(t,e,n,i,a,s){if(t!==n||e!==i){var o=a.push(r(a)+"scale(",null,",",null,")");s.push({i:o-4,x:Ie(t,n)},{i:o-2,x:Ie(e,i)})}else 1===n&&1===i||a.push(r(a)+"scale("+n+","+i+")")}(a.scaleX,a.scaleY,s.scaleX,s.scaleY,o,l),a=s=null,function(t){for(var e,n=-1,i=l.length;++n<i;)o[(e=l[n]).i]=e.x(t);return o.join("")}}}var Ln=Sn((function(t){return"none"===t?xn:(_n||(_n=document.createElement("DIV"),gn=document.documentElement,vn=document.defaultView),_n.style.transform=t,t=vn.getComputedStyle(gn.appendChild(_n),null).getPropertyValue("transform"),gn.removeChild(_n),t=t.slice(7,-1).split(","),Mn(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),kn=Sn((function(t){return null==t?xn:(yn||(yn=document.createElementNS("http://www.w3.org/2000/svg","g")),yn.setAttribute("transform",t),(t=yn.transform.baseVal.consolidate())?(t=t.matrix,Mn(t.a,t.b,t.c,t.d,t.e,t.f)):xn)}),", ",")",")");function Tn(t,e){var n,i;return function(){var r=mn(this,t),a=r.tween;if(a!==n)for(var s=0,o=(i=n=a).length;s<o;++s)if(i[s].name===e){(i=i.slice()).splice(s,1);break}r.tween=i}}function Dn(t,e,n){var i,r;if("function"!=typeof n)throw new Error;return function(){var a=mn(this,t),s=a.tween;if(s!==i){r=(i=s).slice();for(var o={name:e,value:n},l=0,u=r.length;l<u;++l)if(r[l].name===e){r[l]=o;break}l===u&&r.push(o)}a.tween=r}}function Cn(t,e,n){var i=t._id;return t.each((function(){var t=mn(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return pn(t,i).value[e]}}var En=function(t,e){var n;return("number"==typeof e?Ie:e instanceof _e?Pe:(n=_e(e))?(e=n,Pe):He)(t,e)};function On(t){return function(){this.removeAttribute(t)}}function Yn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function An(t,e,n){var i,r,a=n+"";return function(){var s=this.getAttribute(t);return s===a?null:s===i?r:r=e(i=s,n)}}function Pn(t,e,n){var i,r,a=n+"";return function(){var s=this.getAttributeNS(t.space,t.local);return s===a?null:s===i?r:r=e(i=s,n)}}function Rn(t,e,n){var i,r,a;return function(){var s,o,l=n(this);if(null!=l)return(s=this.getAttribute(t))===(o=l+"")?null:s===i&&o===r?a:(r=o,a=e(i=s,l));this.removeAttribute(t)}}function In(t,e,n){var i,r,a;return function(){var s,o,l=n(this);if(null!=l)return(s=this.getAttributeNS(t.space,t.local))===(o=l+"")?null:s===i&&o===r?a:(r=o,a=e(i=s,l));this.removeAttributeNS(t.space,t.local)}}function jn(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Fn(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Hn(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&Fn(t,r)),n}return r._value=e,r}function Nn(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&jn(t,r)),n}return r._value=e,r}function Wn(t,e){return function(){fn(this,t).delay=+e.apply(this,arguments)}}function Un(t,e){return e=+e,function(){fn(this,t).delay=e}}function Bn(t,e){return function(){mn(this,t).duration=+e.apply(this,arguments)}}function zn(t,e){return e=+e,function(){mn(this,t).duration=e}}function Vn(t,e){if("function"!=typeof e)throw new Error;return function(){mn(this,t).ease=e}}function Gn(t,e,n){var i,r,a=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?fn:mn;return function(){var s=a(this,t),o=s.on;o!==i&&(r=(i=o).copy()).on(e,n),s.on=r}}var Xn=Kt.prototype.constructor;function Kn(t){return function(){this.style.removeProperty(t)}}function qn(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function Jn(t,e,n){var i,r;function a(){var a=e.apply(this,arguments);return a!==r&&(i=(r=a)&&qn(t,a,n)),i}return a._value=e,a}function $n(t){return function(e){this.textContent=t.call(this,e)}}function Zn(t){var e,n;function i(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&$n(i)),e}return i._value=t,i}var Qn=0;function ti(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function ei(){return++Qn}var ni=Kt.prototype;ti.prototype=function(t){return Kt().transition(t)}.prototype={constructor:ti,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=H(t));for(var i=this._groups,r=i.length,a=new Array(r),s=0;s<r;++s)for(var o,l,u=i[s],c=u.length,h=a[s]=new Array(c),d=0;d<c;++d)(o=u[d])&&(l=t.call(o,o.__data__,d,u))&&("__data__"in o&&(l.__data__=o.__data__),h[d]=l,dn(h[d],e,n,d,h,pn(o,n)));return new ti(a,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=W(t));for(var i=this._groups,r=i.length,a=[],s=[],o=0;o<r;++o)for(var l,u=i[o],c=u.length,h=0;h<c;++h)if(l=u[h]){for(var d,f=t.call(l,l.__data__,h,u),m=pn(l,n),p=0,_=f.length;p<_;++p)(d=f[p])&&dn(d,e,n,p,f,m);a.push(f),s.push(l)}return new ti(a,s,e,n)},filter:function(t){"function"!=typeof t&&(t=U(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var a,s=e[r],o=s.length,l=i[r]=[],u=0;u<o;++u)(a=s[u])&&t.call(a,a.__data__,u,s)&&l.push(a);return new ti(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=n.length,a=Math.min(i,r),s=new Array(i),o=0;o<a;++o)for(var l,u=e[o],c=n[o],h=u.length,d=s[o]=new Array(h),f=0;f<h;++f)(l=u[f]||c[f])&&(d[f]=l);for(;o<i;++o)s[o]=e[o];return new ti(s,this._parents,this._name,this._id)},selection:function(){return new Xn(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=ei(),i=this._groups,r=i.length,a=0;a<r;++a)for(var s,o=i[a],l=o.length,u=0;u<l;++u)if(s=o[u]){var c=pn(s,e);dn(s,t,n,u,o,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new ti(i,this._parents,t,n)},call:ni.call,nodes:ni.nodes,node:ni.node,size:ni.size,empty:ni.empty,each:ni.each,on:function(t,e){var n=this._id;return arguments.length<2?pn(this.node(),n).on.on(t):this.each(Gn(n,t,e))},attr:function(t,e){var n=J(t),i="transform"===n?kn:En;return this.attrTween(t,"function"==typeof e?(n.local?In:Rn)(n,i,Cn(this,"attr."+t,e)):null==e?(n.local?Yn:On)(n):(n.local?Pn:An)(n,i,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var i=J(t);return this.tween(n,(i.local?Hn:Nn)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?Ln:En;return null==e?this.styleTween(t,function(t,e){var n,i,r;return function(){var a=ot(this,t),s=(this.style.removeProperty(t),ot(this,t));return a===s?null:a===n&&s===i?r:r=e(n=a,i=s)}}(t,i)).on("end.style."+t,Kn(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,r,a;return function(){var s=ot(this,t),o=n(this),l=o+"";return null==o&&(this.style.removeProperty(t),l=o=ot(this,t)),s===l?null:s===i&&l===r?a:(r=l,a=e(i=s,o))}}(t,i,Cn(this,"style."+t,e))).each(function(t,e){var n,i,r,a,s="style."+e,o="end."+s;return function(){var l=mn(this,t),u=l.on,c=null==l.value[s]?a||(a=Kn(e)):void 0;u===n&&r===c||(i=(n=u).copy()).on(o,r=c),l.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,r,a=n+"";return function(){var s=ot(this,t);return s===a?null:s===i?r:r=e(i=s,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,Jn(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Cn(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,Zn(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i,r=pn(this.node(),n).tween,a=0,s=r.length;a<s;++a)if((i=r[a]).name===t)return i.value;return null}return this.each((null==e?Tn:Dn)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Wn:Un)(e,t)):pn(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Bn:zn)(e,t)):pn(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Vn(e,t)):pn(this.node(),e).ease},end:function(){var t,e,n=this,i=n._id,r=n.size();return new Promise((function(a,s){var o={value:s},l={value:function(){0==--r&&a()}};n.each((function(){var n=mn(this,i),r=n.on;r!==t&&((e=(t=r).copy())._.cancel.push(o),e._.interrupt.push(o),e._.end.push(l)),n.on=e}))}))}};var ii={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function ri(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return ii.time=en(),ii;return n}function ai(t){return{type:t}}Kt.prototype.interrupt=function(t){return this.each((function(){bn(this,t)}))},Kt.prototype.transition=function(t){var e,n;t instanceof ti?(e=t._id,t=t._name):(e=ei(),(n=ii).time=en(),t=null==t?null:t+"");for(var i=this._groups,r=i.length,a=0;a<r;++a)for(var s,o=i[a],l=o.length,u=0;u<l;++u)(s=o[u])&&dn(s,t,e,u,o,n||ri(s,e));return new ti(i,this._parents,t,e)},["w","e"].map(ai),["n","s"].map(ai),["n","w","e","s","nw","ne","sw","se"].map(ai),Math.cos,Math.sin,Math.PI,Math.max,Array.prototype.slice;var si=Math.PI,oi=2*si,li=oi-1e-6;function ui(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ci(){return new ui}function hi(){}function di(t,e){var n=new hi;if(t instanceof hi)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var i,r=-1,a=t.length;if(null==e)for(;++r<a;)n.set(r,t[r]);else for(;++r<a;)n.set(e(i=t[r],r,t),i)}else if(t)for(var s in t)n.set(s,t[s]);return n}ui.prototype=ci.prototype={constructor:ui,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+a)},arcTo:function(t,e,n,i,r){t=+t,e=+e,n=+n,i=+i,r=+r;var a=this._x1,s=this._y1,o=n-t,l=i-e,u=a-t,c=s-e,h=u*u+c*c;if(r<0)throw new Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>1e-6)if(Math.abs(c*o-l*u)>1e-6&&r){var d=n-a,f=i-s,m=o*o+l*l,p=d*d+f*f,_=Math.sqrt(m),g=Math.sqrt(h),v=r*Math.tan((si-Math.acos((m+h-p)/(2*_*g)))/2),y=v/g,b=v/_;Math.abs(y-1)>1e-6&&(this._+="L"+(t+y*u)+","+(e+y*c)),this._+="A"+r+","+r+",0,0,"+ +(c*d>u*f)+","+(this._x1=t+b*o)+","+(this._y1=e+b*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,i,r,a){t=+t,e=+e,a=!!a;var s=(n=+n)*Math.cos(i),o=n*Math.sin(i),l=t+s,u=e+o,c=1^a,h=a?i-r:r-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+u:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-u)>1e-6)&&(this._+="L"+l+","+u),n&&(h<0&&(h=h%oi+oi),h>li?this._+="A"+n+","+n+",0,1,"+c+","+(t-s)+","+(e-o)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):h>1e-6&&(this._+="A"+n+","+n+",0,"+ +(h>=si)+","+c+","+(this._x1=t+n*Math.cos(r))+","+(this._y1=e+n*Math.sin(r))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}},hi.prototype=di.prototype={constructor:hi,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,e){return this["$"+t]=e,this},remove:function(t){var e="$"+t;return e in this&&delete this[e]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)"$"===e[0]&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)"$"===e[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var e in this)"$"===e[0]&&t(this[e],e.slice(1),this)}};var fi=di;function mi(){}var pi=fi.prototype;function _i(t,e){var n=new mi;if(t instanceof mi)t.each((function(t){n.add(t)}));else if(t){var i=-1,r=t.length;if(null==e)for(;++i<r;)n.add(t[i]);else for(;++i<r;)n.add(e(t[i],i,t))}return n}mi.prototype=_i.prototype={constructor:mi,has:pi.has,add:function(t){return this["$"+(t+="")]=t,this},remove:pi.remove,clear:pi.clear,values:pi.keys,size:pi.size,empty:pi.empty,each:pi.each},Array.prototype.slice;var gi=function(t){return function(){return t}};function vi(t,e,n,i,r,a,s,o,l,u){this.target=t,this.type=e,this.subject=n,this.identifier=i,this.active=r,this.x=a,this.y=s,this.dx=o,this.dy=l,this._=u}function yi(){return!Rt.ctrlKey&&!Rt.button}function bi(){return this.parentNode}function wi(t){return null==t?{x:Rt.x,y:Rt.y}:t}function xi(){return navigator.maxTouchPoints||"ontouchstart"in this}function Mi(t,e,n,i){if(isNaN(e)||isNaN(n))return t;var r,a,s,o,l,u,c,h,d,f=t._root,m={data:i},p=t._x0,_=t._y0,g=t._x1,v=t._y1;if(!f)return t._root=m,t;for(;f.length;)if((u=e>=(a=(p+g)/2))?p=a:g=a,(c=n>=(s=(_+v)/2))?_=s:v=s,r=f,!(f=f[h=c<<1|u]))return r[h]=m,t;if(o=+t._x.call(null,f.data),l=+t._y.call(null,f.data),e===o&&n===l)return m.next=f,r?r[h]=m:t._root=m,t;do{r=r?r[h]=new Array(4):t._root=new Array(4),(u=e>=(a=(p+g)/2))?p=a:g=a,(c=n>=(s=(_+v)/2))?_=s:v=s}while((h=c<<1|u)==(d=(l>=s)<<1|o>=a));return r[d]=f,r[h]=m,t}vi.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var Si=function(t,e,n,i,r){this.node=t,this.x0=e,this.y0=n,this.x1=i,this.y1=r};function Li(t){return t[0]}function ki(t){return t[1]}function Ti(t,e,n){var i=new Di(null==e?Li:e,null==n?ki:n,NaN,NaN,NaN,NaN);return null==t?i:i.addAll(t)}function Di(t,e,n,i,r,a){this._x=t,this._y=e,this._x0=n,this._y0=i,this._x1=r,this._y1=a,this._root=void 0}function Ci(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Ei=Ti.prototype=Di.prototype;Ei.copy=function(){var t,e,n=new Di(this._x,this._y,this._x0,this._y0,this._x1,this._y1),i=this._root;if(!i)return n;if(!i.length)return n._root=Ci(i),n;for(t=[{source:i,target:n._root=new Array(4)}];i=t.pop();)for(var r=0;r<4;++r)(e=i.source[r])&&(e.length?t.push({source:e,target:i.target[r]=new Array(4)}):i.target[r]=Ci(e));return n},Ei.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return Mi(this.cover(e,n),e,n,t)},Ei.addAll=function(t){var e,n,i,r,a=t.length,s=new Array(a),o=new Array(a),l=1/0,u=1/0,c=-1/0,h=-1/0;for(n=0;n<a;++n)isNaN(i=+this._x.call(null,e=t[n]))||isNaN(r=+this._y.call(null,e))||(s[n]=i,o[n]=r,i<l&&(l=i),i>c&&(c=i),r<u&&(u=r),r>h&&(h=r));if(l>c||u>h)return this;for(this.cover(l,u).cover(c,h),n=0;n<a;++n)Mi(this,s[n],o[n],t[n]);return this},Ei.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,i=this._y0,r=this._x1,a=this._y1;if(isNaN(n))r=(n=Math.floor(t))+1,a=(i=Math.floor(e))+1;else{for(var s,o,l=r-n,u=this._root;n>t||t>=r||i>e||e>=a;)switch(o=(e<i)<<1|t<n,(s=new Array(4))[o]=u,u=s,l*=2,o){case 0:r=n+l,a=i+l;break;case 1:n=r-l,a=i+l;break;case 2:r=n+l,i=a-l;break;case 3:n=r-l,i=a-l}this._root&&this._root.length&&(this._root=u)}return this._x0=n,this._y0=i,this._x1=r,this._y1=a,this},Ei.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},Ei.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Ei.find=function(t,e,n){var i,r,a,s,o,l,u,c=this._x0,h=this._y0,d=this._x1,f=this._y1,m=[],p=this._root;for(p&&m.push(new Si(p,c,h,d,f)),null==n?n=1/0:(c=t-n,h=e-n,d=t+n,f=e+n,n*=n);l=m.pop();)if(!(!(p=l.node)||(r=l.x0)>d||(a=l.y0)>f||(s=l.x1)<c||(o=l.y1)<h))if(p.length){var _=(r+s)/2,g=(a+o)/2;m.push(new Si(p[3],_,g,s,o),new Si(p[2],r,g,_,o),new Si(p[1],_,a,s,g),new Si(p[0],r,a,_,g)),(u=(e>=g)<<1|t>=_)&&(l=m[m.length-1],m[m.length-1]=m[m.length-1-u],m[m.length-1-u]=l)}else{var v=t-+this._x.call(null,p.data),y=e-+this._y.call(null,p.data),b=v*v+y*y;if(b<n){var w=Math.sqrt(n=b);c=t-w,h=e-w,d=t+w,f=e+w,i=p.data}}return i},Ei.remove=function(t){if(isNaN(a=+this._x.call(null,t))||isNaN(s=+this._y.call(null,t)))return this;var e,n,i,r,a,s,o,l,u,c,h,d,f=this._root,m=this._x0,p=this._y0,_=this._x1,g=this._y1;if(!f)return this;if(f.length)for(;;){if((u=a>=(o=(m+_)/2))?m=o:_=o,(c=s>=(l=(p+g)/2))?p=l:g=l,e=f,!(f=f[h=c<<1|u]))return this;if(!f.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,d=h)}for(;f.data!==t;)if(i=f,!(f=f.next))return this;return(r=f.next)&&delete f.next,i?(r?i.next=r:delete i.next,this):e?(r?e[h]=r:delete e[h],(f=e[0]||e[1]||e[2]||e[3])&&f===(e[3]||e[2]||e[1]||e[0])&&!f.length&&(n?n[d]=f:this._root=f),this):(this._root=r,this)},Ei.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},Ei.root=function(){return this._root},Ei.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},Ei.visit=function(t){var e,n,i,r,a,s,o=[],l=this._root;for(l&&o.push(new Si(l,this._x0,this._y0,this._x1,this._y1));e=o.pop();)if(!t(l=e.node,i=e.x0,r=e.y0,a=e.x1,s=e.y1)&&l.length){var u=(i+a)/2,c=(r+s)/2;(n=l[3])&&o.push(new Si(n,u,c,a,s)),(n=l[2])&&o.push(new Si(n,i,c,u,s)),(n=l[1])&&o.push(new Si(n,u,r,a,c)),(n=l[0])&&o.push(new Si(n,i,r,u,c))}return this},Ei.visitAfter=function(t){var e,n=[],i=[];for(this._root&&n.push(new Si(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var r=e.node;if(r.length){var a,s=e.x0,o=e.y0,l=e.x1,u=e.y1,c=(s+l)/2,h=(o+u)/2;(a=r[0])&&n.push(new Si(a,s,o,c,h)),(a=r[1])&&n.push(new Si(a,c,o,l,h)),(a=r[2])&&n.push(new Si(a,s,h,c,u)),(a=r[3])&&n.push(new Si(a,c,h,l,u))}i.push(e)}for(;e=i.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},Ei.x=function(t){return arguments.length?(this._x=t,this):this._x},Ei.y=function(t){return arguments.length?(this._y=t,this):this._y},Math.PI,Math.sqrt(5);var Oi=function(){return Math.random()},Yi=(function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,1===arguments.length?(n=t,t=0):n-=t,function(){return e()*n+t}}return n.source=t,n}(Oi),function t(e){function n(t,n){var i,r;return t=null==t?0:+t,n=null==n?1:+n,function(){var a;if(null!=i)a=i,i=null;else do{i=2*e()-1,a=2*e()-1,r=i*i+a*a}while(!r||r>1);return t+n*a*Math.sqrt(-2*Math.log(r)/r)}}return n.source=t,n}(Oi)),Ai=(function t(e){function n(){var t=Yi.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(Oi),function t(e){function n(t){return function(){for(var n=0,i=0;i<t;++i)n+=e();return n}}return n.source=t,n}(Oi));(function t(e){function n(t){var n=Ai.source(e)(t);return function(){return n()/t}}return n.source=t,n})(Oi),function t(e){function n(t){return function(){return-Math.log(1-e())/t}}return n.source=t,n}(Oi);var Pi=Array.prototype;Pi.map,Pi.slice;var Ri=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ii(t){if(!(e=Ri.exec(t)))throw new Error("invalid format: "+t);var e;return new ji({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function ji(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Fi(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}Ii.prototype=ji.prototype,ji.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Hi,Ni,Wi=function(t){return(t=Fi(Math.abs(t)))?t[1]:NaN},Ui=function(t,e){var n=Fi(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")},Bi={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Ui(100*t,e)},r:Ui,s:function(t,e){var n=Fi(t,e);if(!n)return t+"";var i=n[0],r=n[1],a=r-(Hi=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,s=i.length;return a===s?i:a>s?i+new Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+Fi(t,Math.max(0,e+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},zi=function(t){return t},Vi=Array.prototype.map,Gi=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];Ni=function(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?zi:(e=Vi.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var r=t.length,a=[],s=0,o=e[0],l=0;r>0&&o>0&&(l+o+1>i&&(o=Math.max(1,i-l)),a.push(t.substring(r-=o,r+o)),!((l+=o+1)>i));)o=e[s=(s+1)%e.length];return a.reverse().join(n)}),r=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?zi:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Vi.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",u=void 0===t.minus?"-":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=Ii(t)).fill,n=t.align,h=t.sign,d=t.symbol,f=t.zero,m=t.width,p=t.comma,_=t.precision,g=t.trim,v=t.type;"n"===v?(p=!0,v="g"):Bi[v]||(void 0===_&&(_=12),g=!0,v="g"),(f||"0"===e&&"="===n)&&(f=!0,e="0",n="=");var y="$"===d?r:"#"===d&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",b="$"===d?a:/[%p]/.test(v)?l:"",w=Bi[v],x=/[defgprs%]/.test(v);function M(t){var r,a,l,d=y,M=b;if("c"===v)M=w(t)+M,t="";else{var S=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:w(Math.abs(t),_),g&&(t=function(t){t:for(var e,n=t.length,i=1,r=-1;i<n;++i)switch(t[i]){case".":r=e=i;break;case"0":0===r&&(r=i),e=i;break;default:if(!+t[i])break t;r>0&&(r=0)}return r>0?t.slice(0,r)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==h&&(S=!1),d=(S?"("===h?h:u:"-"===h||"("===h?"":h)+d,M=("s"===v?Gi[8+Hi/3]:"")+M+(S&&"("===h?")":""),x)for(r=-1,a=t.length;++r<a;)if(48>(l=t.charCodeAt(r))||l>57){M=(46===l?s+t.slice(r+1):t.slice(r))+M,t=t.slice(0,r);break}}p&&!f&&(t=i(t,1/0));var L=d.length+t.length+M.length,k=L<m?new Array(m-L+1).join(e):"";switch(p&&f&&(t=i(k+t,k.length?m-M.length:1/0),k=""),n){case"<":t=d+t+M+k;break;case"=":t=d+k+t+M;break;case"^":t=k.slice(0,L=k.length>>1)+d+t+M+k.slice(L);break;default:t=k+d+t+M}return o(t)}return _=void 0===_?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),M.toString=function(){return t+""},M}return{format:h,formatPrefix:function(t,e){var n=h(((t=Ii(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(Wi(e)/3))),r=Math.pow(10,-i),a=Gi[8+i/3];return function(t){return n(r*t)+a}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Ni.format,Ni.formatPrefix;var Xi=new Date,Ki=new Date;function qi(t,e,n,i){function r(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return r.floor=function(e){return t(e=new Date(+e)),e},r.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},r.round=function(t){var e=r(t),n=r.ceil(t);return t-e<n-t?e:n},r.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},r.range=function(n,i,a){var s,o=[];if(n=r.ceil(n),a=null==a?1:Math.floor(a),!(n<i&&a>0))return o;do{o.push(s=new Date(+n)),e(n,a),t(n)}while(s<n&&n<i);return o},r.filter=function(n){return qi((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,i){if(t>=t)if(i<0)for(;++i<=0;)for(;e(t,-1),!n(t););else for(;--i>=0;)for(;e(t,1),!n(t););}))},n&&(r.count=function(e,i){return Xi.setTime(+e),Ki.setTime(+i),t(Xi),t(Ki),Math.floor(n(Xi,Ki))},r.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(i?function(e){return i(e)%t==0}:function(e){return r.count(0,e)%t==0}):r:null}),r}var Ji=qi((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Ji.every=function(t){return isFinite(t=Math.floor(t))&&t>0?qi((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var $i=Ji,Zi=(Ji.range,qi((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})));function Qi(t){return qi((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}Zi.range;var tr=Qi(0),er=Qi(1),nr=Qi(2),ir=Qi(3),rr=Qi(4),ar=Qi(5),sr=Qi(6),or=(tr.range,er.range,nr.range,ir.range,rr.range,ar.range,sr.range,qi((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1}))),lr=or,ur=(or.range,qi((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getHours()}))),cr=(ur.range,qi((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getMinutes()}))),hr=(cr.range,qi((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()}))),dr=(hr.range,qi((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t})));function fr(t){return qi((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/6048e5}))}dr.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?qi((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):dr:null},dr.range;var mr=fr(0),pr=fr(1),_r=fr(2),gr=fr(3),vr=fr(4),yr=fr(5),br=fr(6),wr=(mr.range,pr.range,_r.range,gr.range,vr.range,yr.range,br.range,qi((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1}))),xr=wr,Mr=(wr.range,qi((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));Mr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?qi((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var Sr=Mr;function Lr(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function kr(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Tr(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}Mr.range;var Dr,Cr={"-":"",_:" ",0:"0"},Er=/^\s*\d+/,Or=/^%/,Yr=/[\\^$*+?|[\]().{}]/g;function Ar(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",a=r.length;return i+(a<n?new Array(n-a+1).join(e)+r:r)}function Pr(t){return t.replace(Yr,"\\$&")}function Rr(t){return new RegExp("^(?:"+t.map(Pr).join("|")+")","i")}function Ir(t){for(var e={},n=-1,i=t.length;++n<i;)e[t[n].toLowerCase()]=n;return e}function jr(t,e,n){var i=Er.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function Fr(t,e,n){var i=Er.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function Hr(t,e,n){var i=Er.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function Nr(t,e,n){var i=Er.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function Wr(t,e,n){var i=Er.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function Ur(t,e,n){var i=Er.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function Br(t,e,n){var i=Er.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function zr(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Vr(t,e,n){var i=Er.exec(e.slice(n,n+1));return i?(t.q=3*i[0]-3,n+i[0].length):-1}function Gr(t,e,n){var i=Er.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function Xr(t,e,n){var i=Er.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function Kr(t,e,n){var i=Er.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function qr(t,e,n){var i=Er.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function Jr(t,e,n){var i=Er.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function $r(t,e,n){var i=Er.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function Zr(t,e,n){var i=Er.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function Qr(t,e,n){var i=Er.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function ta(t,e,n){var i=Or.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function ea(t,e,n){var i=Er.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function na(t,e,n){var i=Er.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function ia(t,e){return Ar(t.getDate(),e,2)}function ra(t,e){return Ar(t.getHours(),e,2)}function aa(t,e){return Ar(t.getHours()%12||12,e,2)}function sa(t,e){return Ar(1+lr.count($i(t),t),e,3)}function oa(t,e){return Ar(t.getMilliseconds(),e,3)}function la(t,e){return oa(t,e)+"000"}function ua(t,e){return Ar(t.getMonth()+1,e,2)}function ca(t,e){return Ar(t.getMinutes(),e,2)}function ha(t,e){return Ar(t.getSeconds(),e,2)}function da(t){var e=t.getDay();return 0===e?7:e}function fa(t,e){return Ar(tr.count($i(t)-1,t),e,2)}function ma(t){var e=t.getDay();return e>=4||0===e?rr(t):rr.ceil(t)}function pa(t,e){return t=ma(t),Ar(rr.count($i(t),t)+(4===$i(t).getDay()),e,2)}function _a(t){return t.getDay()}function ga(t,e){return Ar(er.count($i(t)-1,t),e,2)}function va(t,e){return Ar(t.getFullYear()%100,e,2)}function ya(t,e){return Ar((t=ma(t)).getFullYear()%100,e,2)}function ba(t,e){return Ar(t.getFullYear()%1e4,e,4)}function wa(t,e){var n=t.getDay();return Ar((t=n>=4||0===n?rr(t):rr.ceil(t)).getFullYear()%1e4,e,4)}function xa(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Ar(e/60|0,"0",2)+Ar(e%60,"0",2)}function Ma(t,e){return Ar(t.getUTCDate(),e,2)}function Sa(t,e){return Ar(t.getUTCHours(),e,2)}function La(t,e){return Ar(t.getUTCHours()%12||12,e,2)}function ka(t,e){return Ar(1+xr.count(Sr(t),t),e,3)}function Ta(t,e){return Ar(t.getUTCMilliseconds(),e,3)}function Da(t,e){return Ta(t,e)+"000"}function Ca(t,e){return Ar(t.getUTCMonth()+1,e,2)}function Ea(t,e){return Ar(t.getUTCMinutes(),e,2)}function Oa(t,e){return Ar(t.getUTCSeconds(),e,2)}function Ya(t){var e=t.getUTCDay();return 0===e?7:e}function Aa(t,e){return Ar(mr.count(Sr(t)-1,t),e,2)}function Pa(t){var e=t.getUTCDay();return e>=4||0===e?vr(t):vr.ceil(t)}function Ra(t,e){return t=Pa(t),Ar(vr.count(Sr(t),t)+(4===Sr(t).getUTCDay()),e,2)}function Ia(t){return t.getUTCDay()}function ja(t,e){return Ar(pr.count(Sr(t)-1,t),e,2)}function Fa(t,e){return Ar(t.getUTCFullYear()%100,e,2)}function Ha(t,e){return Ar((t=Pa(t)).getUTCFullYear()%100,e,2)}function Na(t,e){return Ar(t.getUTCFullYear()%1e4,e,4)}function Wa(t,e){var n=t.getUTCDay();return Ar((t=n>=4||0===n?vr(t):vr.ceil(t)).getUTCFullYear()%1e4,e,4)}function Ua(){return"+0000"}function Ba(){return"%"}function za(t){return+t}function Va(t){return Math.floor(+t/1e3)}!function(t){Dr=function(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,a=t.days,s=t.shortDays,o=t.months,l=t.shortMonths,u=Rr(r),c=Ir(r),h=Rr(a),d=Ir(a),f=Rr(s),m=Ir(s),p=Rr(o),_=Ir(o),g=Rr(l),v=Ir(l),y={a:function(t){return s[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return o[t.getMonth()]},c:null,d:ia,e:ia,f:la,g:ya,G:wa,H:ra,I:aa,j:sa,L:oa,m:ua,M:ca,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:za,s:Va,S:ha,u:da,U:fa,V:pa,w:_a,W:ga,x:null,X:null,y:va,Y:ba,Z:xa,"%":Ba},b={a:function(t){return s[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return o[t.getUTCMonth()]},c:null,d:Ma,e:Ma,f:Da,g:Ha,G:Wa,H:Sa,I:La,j:ka,L:Ta,m:Ca,M:Ea,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:za,s:Va,S:Oa,u:Ya,U:Aa,V:Ra,w:Ia,W:ja,x:null,X:null,y:Fa,Y:Na,Z:Ua,"%":Ba},w={a:function(t,e,n){var i=f.exec(e.slice(n));return i?(t.w=m[i[0].toLowerCase()],n+i[0].length):-1},A:function(t,e,n){var i=h.exec(e.slice(n));return i?(t.w=d[i[0].toLowerCase()],n+i[0].length):-1},b:function(t,e,n){var i=g.exec(e.slice(n));return i?(t.m=v[i[0].toLowerCase()],n+i[0].length):-1},B:function(t,e,n){var i=p.exec(e.slice(n));return i?(t.m=_[i[0].toLowerCase()],n+i[0].length):-1},c:function(t,n,i){return S(t,e,n,i)},d:Xr,e:Xr,f:Qr,g:Br,G:Ur,H:qr,I:qr,j:Kr,L:Zr,m:Gr,M:Jr,p:function(t,e,n){var i=u.exec(e.slice(n));return i?(t.p=c[i[0].toLowerCase()],n+i[0].length):-1},q:Vr,Q:ea,s:na,S:$r,u:Fr,U:Hr,V:Nr,w:jr,W:Wr,x:function(t,e,i){return S(t,n,e,i)},X:function(t,e,n){return S(t,i,e,n)},y:Br,Y:Ur,Z:zr,"%":ta};function x(t,e){return function(n){var i,r,a,s=[],o=-1,l=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++o<u;)37===t.charCodeAt(o)&&(s.push(t.slice(l,o)),null!=(r=Cr[i=t.charAt(++o)])?i=t.charAt(++o):r="e"===i?" ":"0",(a=e[i])&&(i=a(n,r)),s.push(i),l=o+1);return s.push(t.slice(l,o)),s.join("")}}function M(t,e){return function(n){var i,r,a=Tr(1900,void 0,1);if(S(a,t,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(e&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(r=(i=kr(Tr(a.y,0,1))).getUTCDay(),i=r>4||0===r?pr.ceil(i):pr(i),i=xr.offset(i,7*(a.V-1)),a.y=i.getUTCFullYear(),a.m=i.getUTCMonth(),a.d=i.getUTCDate()+(a.w+6)%7):(r=(i=Lr(Tr(a.y,0,1))).getDay(),i=r>4||0===r?er.ceil(i):er(i),i=lr.offset(i,7*(a.V-1)),a.y=i.getFullYear(),a.m=i.getMonth(),a.d=i.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),r="Z"in a?kr(Tr(a.y,0,1)).getUTCDay():Lr(Tr(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(r+5)%7:a.w+7*a.U-(r+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,kr(a)):Lr(a)}}function S(t,e,n,i){for(var r,a,s=0,o=e.length,l=n.length;s<o;){if(i>=l)return-1;if(37===(r=e.charCodeAt(s++))){if(r=e.charAt(s++),!(a=w[r in Cr?e.charAt(s++):r])||(i=a(t,n,i))<0)return-1}else if(r!=n.charCodeAt(i++))return-1}return i}return y.x=x(n,y),y.X=x(i,y),y.c=x(e,y),b.x=x(n,b),b.X=x(i,b),b.c=x(e,b),{format:function(t){var e=x(t+="",y);return e.toString=function(){return t},e},parse:function(t){var e=M(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=M(t+="",!0);return e.toString=function(){return t},e}}}(t),Dr.format,Dr.parse,Dr.utcFormat,Dr.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Ga=qi((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),Xa=(Ga.range,qi((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getUTCHours()}))),Ka=(Xa.range,qi((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getUTCMinutes()})));function qa(){this._=null}function Ja(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function $a(t,e){var n=e,i=e.R,r=n.U;r?r.L===n?r.L=i:r.R=i:t._=i,i.U=r,n.U=i,n.R=i.L,n.R&&(n.R.U=n),i.L=n}function Za(t,e){var n=e,i=e.L,r=n.U;r?r.L===n?r.L=i:r.R=i:t._=i,i.U=r,n.U=i,n.L=i.R,n.L&&(n.L.U=n),i.R=n}function Qa(t){for(;t.L;)t=t.L;return t}Ka.range,qa.prototype={constructor:qa,insert:function(t,e){var n,i,r;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=Qa(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(i=n.U).L?(r=i.R)&&r.C?(n.C=r.C=!1,i.C=!0,t=i):(t===n.R&&($a(this,n),n=(t=n).U),n.C=!1,i.C=!0,Za(this,i)):(r=i.L)&&r.C?(n.C=r.C=!1,i.C=!0,t=i):(t===n.L&&(Za(this,n),n=(t=n).U),n.C=!1,i.C=!0,$a(this,i)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,i,r=t.U,a=t.L,s=t.R;if(n=a?s?Qa(s):a:s,r?r.L===t?r.L=n:r.R=n:this._=n,a&&s?(i=n.C,n.C=t.C,n.L=a,a.U=n,n!==s?(r=n.U,n.U=t.U,t=n.R,r.L=t,n.R=s,s.U=n):(n.U=r,r=n,t=n.R)):(i=t.C,t=n),t&&(t.U=r),!i)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===r.L){if((e=r.R).C&&(e.C=!1,r.C=!0,$a(this,r),e=r.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,Za(this,e),e=r.R),e.C=r.C,r.C=e.R.C=!1,$a(this,r),t=this._;break}}else if((e=r.L).C&&(e.C=!1,r.C=!0,Za(this,r),e=r.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,$a(this,e),e=r.L),e.C=r.C,r.C=e.L.C=!1,Za(this,r),t=this._;break}e.C=!0,t=r,r=r.U}while(!t.C);t&&(t.C=!1)}}};var ts=qa;function es(t,e,n,i){var r=[null,null],a=Ls.push(r)-1;return r.left=t,r.right=e,n&&is(r,t,e,n),i&&is(r,e,t,i),Ms[t.index].halfedges.push(a),Ms[e.index].halfedges.push(a),r}function ns(t,e,n){var i=[e,n];return i.left=t,i}function is(t,e,n,i){t[0]||t[1]?t.left===n?t[1]=i:t[0]=i:(t[0]=i,t.left=e,t.right=n)}function rs(t,e,n,i,r){var a,s=t[0],o=t[1],l=s[0],u=s[1],c=0,h=1,d=o[0]-l,f=o[1]-u;if(a=e-l,d||!(a>0)){if(a/=d,d<0){if(a<c)return;a<h&&(h=a)}else if(d>0){if(a>h)return;a>c&&(c=a)}if(a=i-l,d||!(a<0)){if(a/=d,d<0){if(a>h)return;a>c&&(c=a)}else if(d>0){if(a<c)return;a<h&&(h=a)}if(a=n-u,f||!(a>0)){if(a/=f,f<0){if(a<c)return;a<h&&(h=a)}else if(f>0){if(a>h)return;a>c&&(c=a)}if(a=r-u,f||!(a<0)){if(a/=f,f<0){if(a>h)return;a>c&&(c=a)}else if(f>0){if(a<c)return;a<h&&(h=a)}return!(c>0||h<1)||(c>0&&(t[0]=[l+c*d,u+c*f]),h<1&&(t[1]=[l+h*d,u+h*f]),!0)}}}}}function as(t,e,n,i,r){var a=t[1];if(a)return!0;var s,o,l=t[0],u=t.left,c=t.right,h=u[0],d=u[1],f=c[0],m=c[1],p=(h+f)/2,_=(d+m)/2;if(m===d){if(p<e||p>=i)return;if(h>f){if(l){if(l[1]>=r)return}else l=[p,n];a=[p,r]}else{if(l){if(l[1]<n)return}else l=[p,r];a=[p,n]}}else if(o=_-(s=(h-f)/(m-d))*p,s<-1||s>1)if(h>f){if(l){if(l[1]>=r)return}else l=[(n-o)/s,n];a=[(r-o)/s,r]}else{if(l){if(l[1]<n)return}else l=[(r-o)/s,r];a=[(n-o)/s,n]}else if(d<m){if(l){if(l[0]>=i)return}else l=[e,s*e+o];a=[i,s*i+o]}else{if(l){if(l[0]<e)return}else l=[i,s*i+o];a=[e,s*e+o]}return t[0]=l,t[1]=a,!0}function ss(t,e){var n=t.site,i=e.left,r=e.right;return n===r&&(r=i,i=n),r?Math.atan2(r[1]-i[1],r[0]-i[0]):(n===i?(i=e[1],r=e[0]):(i=e[0],r=e[1]),Math.atan2(i[0]-r[0],r[1]-i[1]))}function os(t,e){return e[+(e.left!==t.site)]}function ls(t,e){return e[+(e.left===t.site)]}var us,cs=[];function hs(){Ja(this),this.x=this.y=this.arc=this.site=this.cy=null}function ds(t){var e=t.P,n=t.N;if(e&&n){var i=e.site,r=t.site,a=n.site;if(i!==a){var s=r[0],o=r[1],l=i[0]-s,u=i[1]-o,c=a[0]-s,h=a[1]-o,d=2*(l*h-u*c);if(!(d>=-Ts)){var f=l*l+u*u,m=c*c+h*h,p=(h*f-u*m)/d,_=(l*m-c*f)/d,g=cs.pop()||new hs;g.arc=t,g.site=r,g.x=p+s,g.y=(g.cy=_+o)+Math.sqrt(p*p+_*_),t.circle=g;for(var v=null,y=Ss._;y;)if(g.y<y.y||g.y===y.y&&g.x<=y.x){if(!y.L){v=y.P;break}y=y.L}else{if(!y.R){v=y;break}y=y.R}Ss.insert(v,g),v||(us=g)}}}}function fs(t){var e=t.circle;e&&(e.P||(us=e.N),Ss.remove(e),cs.push(e),Ja(e),t.circle=null)}var ms=[];function ps(){Ja(this),this.edge=this.site=this.circle=null}function _s(t){var e=ms.pop()||new ps;return e.site=t,e}function gs(t){fs(t),xs.remove(t),ms.push(t),Ja(t)}function vs(t){var e=t.circle,n=e.x,i=e.cy,r=[n,i],a=t.P,s=t.N,o=[t];gs(t);for(var l=a;l.circle&&Math.abs(n-l.circle.x)<ks&&Math.abs(i-l.circle.cy)<ks;)a=l.P,o.unshift(l),gs(l),l=a;o.unshift(l),fs(l);for(var u=s;u.circle&&Math.abs(n-u.circle.x)<ks&&Math.abs(i-u.circle.cy)<ks;)s=u.N,o.push(u),gs(u),u=s;o.push(u),fs(u);var c,h=o.length;for(c=1;c<h;++c)u=o[c],l=o[c-1],is(u.edge,l.site,u.site,r);l=o[0],(u=o[h-1]).edge=es(l.site,u.site,null,r),ds(l),ds(u)}function ys(t){for(var e,n,i,r,a=t[0],s=t[1],o=xs._;o;)if((i=bs(o,s)-a)>ks)o=o.L;else{if(!((r=a-ws(o,s))>ks)){i>-ks?(e=o.P,n=o):r>-ks?(e=o,n=o.N):e=n=o;break}if(!o.R){e=o;break}o=o.R}!function(t){Ms[t.index]={site:t,halfedges:[]}}(t);var l=_s(t);if(xs.insert(e,l),e||n){if(e===n)return fs(e),n=_s(e.site),xs.insert(l,n),l.edge=n.edge=es(e.site,l.site),ds(e),void ds(n);if(n){fs(e),fs(n);var u=e.site,c=u[0],h=u[1],d=t[0]-c,f=t[1]-h,m=n.site,p=m[0]-c,_=m[1]-h,g=2*(d*_-f*p),v=d*d+f*f,y=p*p+_*_,b=[(_*v-f*y)/g+c,(d*y-p*v)/g+h];is(n.edge,u,m,b),l.edge=es(u,t,null,b),n.edge=es(t,m,null,b),ds(e),ds(n)}else l.edge=es(e.site,l.site)}}function bs(t,e){var n=t.site,i=n[0],r=n[1],a=r-e;if(!a)return i;var s=t.P;if(!s)return-1/0;var o=(n=s.site)[0],l=n[1],u=l-e;if(!u)return o;var c=o-i,h=1/a-1/u,d=c/u;return h?(-d+Math.sqrt(d*d-2*h*(c*c/(-2*u)-l+u/2+r-a/2)))/h+i:(i+o)/2}function ws(t,e){var n=t.N;if(n)return bs(n,e);var i=t.site;return i[1]===e?i[0]:1/0}var xs,Ms,Ss,Ls,ks=1e-6,Ts=1e-12;function Ds(t,e){return e[1]-t[1]||e[0]-t[0]}function Cs(t,e){var n,i,r,a=t.sort(Ds).pop();for(Ls=[],Ms=new Array(t.length),xs=new ts,Ss=new ts;;)if(r=us,a&&(!r||a[1]<r.y||a[1]===r.y&&a[0]<r.x))a[0]===n&&a[1]===i||(ys(a),n=a[0],i=a[1]),a=t.pop();else{if(!r)break;vs(r.arc)}if(function(){for(var t,e,n,i,r=0,a=Ms.length;r<a;++r)if((t=Ms[r])&&(i=(e=t.halfedges).length)){var s=new Array(i),o=new Array(i);for(n=0;n<i;++n)s[n]=n,o[n]=ss(t,Ls[e[n]]);for(s.sort((function(t,e){return o[e]-o[t]})),n=0;n<i;++n)o[n]=e[s[n]];for(n=0;n<i;++n)e[n]=o[n]}}(),e){var s=+e[0][0],o=+e[0][1],l=+e[1][0],u=+e[1][1];!function(t,e,n,i){for(var r,a=Ls.length;a--;)as(r=Ls[a],t,e,n,i)&&rs(r,t,e,n,i)&&(Math.abs(r[0][0]-r[1][0])>ks||Math.abs(r[0][1]-r[1][1])>ks)||delete Ls[a]}(s,o,l,u),function(t,e,n,i){var r,a,s,o,l,u,c,h,d,f,m,p,_=Ms.length,g=!0;for(r=0;r<_;++r)if(a=Ms[r]){for(s=a.site,o=(l=a.halfedges).length;o--;)Ls[l[o]]||l.splice(o,1);for(o=0,u=l.length;o<u;)m=(f=ls(a,Ls[l[o]]))[0],p=f[1],h=(c=os(a,Ls[l[++o%u]]))[0],d=c[1],(Math.abs(m-h)>ks||Math.abs(p-d)>ks)&&(l.splice(o,0,Ls.push(ns(s,f,Math.abs(m-t)<ks&&i-p>ks?[t,Math.abs(h-t)<ks?d:i]:Math.abs(p-i)<ks&&n-m>ks?[Math.abs(d-i)<ks?h:n,i]:Math.abs(m-n)<ks&&p-e>ks?[n,Math.abs(h-n)<ks?d:e]:Math.abs(p-e)<ks&&m-t>ks?[Math.abs(d-e)<ks?h:t,e]:null))-1),++u);u&&(g=!1)}if(g){var v,y,b,w=1/0;for(r=0,g=null;r<_;++r)(a=Ms[r])&&(b=(v=(s=a.site)[0]-t)*v+(y=s[1]-e)*y)<w&&(w=b,g=a);if(g){var x=[t,e],M=[t,i],S=[n,i],L=[n,e];g.halfedges.push(Ls.push(ns(s=g.site,x,M))-1,Ls.push(ns(s,M,S))-1,Ls.push(ns(s,S,L))-1,Ls.push(ns(s,L,x))-1)}}for(r=0;r<_;++r)(a=Ms[r])&&(a.halfedges.length||delete Ms[r])}(s,o,l,u)}this.edges=Ls,this.cells=Ms,xs=Ss=Ls=Ms=null}function Es(t,e,n){this.k=t,this.x=e,this.y=n}function Os(t,e){for(var n=t.toString();n.length<e;)n="0"+n;return n}function Ys(t){return Os(t,2)}Cs.prototype={constructor:Cs,polygons:function(){var t=this.edges;return this.cells.map((function(e){var n=e.halfedges.map((function(n){return os(e,t[n])}));return n.data=e.site.data,n}))},triangles:function(){var t=[],e=this.edges;return this.cells.forEach((function(n,i){if(a=(r=n.halfedges).length)for(var r,a,s,o,l,u,c=n.site,h=-1,d=e[r[a-1]],f=d.left===c?d.right:d.left;++h<a;)s=f,f=(d=e[r[h]]).left===c?d.right:d.left,s&&f&&i<s.index&&i<f.index&&(l=s,u=f,((o=c)[0]-u[0])*(l[1]-o[1])-(o[0]-l[0])*(u[1]-o[1])<0)&&t.push([c.data,s.data,f.data])})),t},links:function(){return this.edges.filter((function(t){return t.right})).map((function(t){return{source:t.left.data,target:t.right.data}}))},find:function(t,e,n){for(var i,r,a=this,s=a._found||0,o=a.cells.length;!(r=a.cells[s]);)if(++s>=o)return null;var l=t-r.site[0],u=e-r.site[1],c=l*l+u*u;do{r=a.cells[i=s],s=null,r.halfedges.forEach((function(n){var i=a.edges[n],o=i.left;if(o!==r.site&&o||(o=i.right)){var l=t-o[0],u=e-o[1],h=l*l+u*u;h<c&&(c=h,s=o.index)}}))}while(null!==s);return a._found=i,null==n||c<=n*n?r.site:null}},Math.SQRT2,Es.prototype={constructor:Es,scale:function(t){return 1===t?this:new Es(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new Es(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},new Es(1,0,0),Es.prototype;var As=function(t,e){void 0===e&&(e="yyyy-MM-dd hh:mm:ss");var n,i,r,a,s=Ys(t.getDate()),o=Ys(t.getMonth()+1),l=Ys(t.getFullYear()),u=Ys(l.substring(2,4)),c=e.indexOf("yyyy")>-1?l:u,h=Ys(t.getHours()),d=Ys(t.getMinutes()),f=Ys(t.getSeconds()),m=Os(t.getMilliseconds(),3),p=(n=t.getTimezoneOffset(),i=Math.abs(n),r=String(Math.floor(i/60)),a=String(i%60),1===r.length&&(r="0"+r),1===a.length&&(a="0"+a),n<0?"+"+r+a:"-"+r+a);return e.replace(/dd/g,s).replace(/MM/g,o).replace(/y{1,4}/g,c).replace(/hh/g,h).replace(/mm/g,d).replace(/ss/g,f).replace(/SSS/g,m).replace(/O/g,p)};function Ps(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Rs(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rs(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){o=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function Rs(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var Is={name:"PlaybackProgressBar",props:{currentTimeProp:{type:Number,required:!0},theme:{type:String}},data:function(){return{width:850,curTimeX:0,dateFormat:As,updateMoveLen:null,availableArray:[]}},computed:{middle:function(){return this.width/2},viewBox:function(){return"0 0 ".concat(this.width," 75")},currentTime:function(){return this.checkIfTimeAvailable(this.availableArray,this.currentTimeProp)||this.$emit("updatePlayState",!1),this.updateMoveLen&&this.updateMoveLen(this.currentTimeProp),this.currentTimeProp}},mounted:function(){this.curTimeX=(this.width-150)/2,this.renderBar()},methods:{checkIfTimeAvailable:function(t,e){var n,i=Ps(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.startTime<=e&&r.endTime>e)return!0}}catch(t){i.e(t)}finally{i.f()}return!1},rerenderBar:function(t,e){this.clearBar(),this.renderBar(t,e)},clearBar:function(){var t=qt("g.progress-inner");t.selectAll("g.ticks-container > *").remove(),t.selectAll("g.available-container > *").remove()},formatHourMinute:function(t){return As(new Date(t),"hh:mm")},renderBar:function(t,e){var n=this,i=t||n.currentTimeProp,r=36e5,a=[{time:i-5*r,label:n.formatHourMinute(i-5*r)},{time:i-4*r,label:n.formatHourMinute(i-4*r)},{time:i-3*r,label:n.formatHourMinute(i-3*r)},{time:i-2*r,label:n.formatHourMinute(i-2*r)},{time:i-1*r,label:n.formatHourMinute(i-1*r)},{time:i,label:n.formatHourMinute(i)},{time:i+1*r,label:n.formatHourMinute(i+1*r)},{time:i+2*r,label:n.formatHourMinute(i+2*r)},{time:i+3*r,label:n.formatHourMinute(i+3*r)},{time:i+4*r,label:n.formatHourMinute(i+4*r)},{time:i+5*r,label:n.formatHourMinute(i+5*r)}];e||(e=[]),n.availableArray=e;var s=n.width/6,o=i,l=o-3*r;n.updateCurrentTime(o);var u=qt("g.progress-inner"),c=0,h=0;function d(){var t=u.select("g.ticks-container").selectAll("g").data(a,(function(t,e){return t.time})).enter().append("g").attr("class","tick-item"),e=function(t){return(t.time-l)/r*s};t.append("text").attr("x",e).attr("class","enter times-tick").attr("dy",20).text((function(t){return t.label})),t.append("line").attr("x1",(function(t,n){return e(t)})).attr("x2",(function(t,n){return e(t)})).attr("class","tick-path").attr("y1",30).attr("y2",75).attr("stroke-width",1),t.append("line").attr("x1",(function(t,n){return e(t)-s/2})).attr("x2",(function(t,n){return e(t)+s/2})).attr("y1",40).attr("y2",38).attr("stroke","rgba(255,255,255,0)").attr("stroke-width",74),t.append("line").attr("x1",(function(t,n){return e(t)-s/2})).attr("x2",(function(t,n){return e(t)+s/2})).attr("class","tick-path").attr("y1",30).attr("y2",30).attr("stroke-width",3),u.select("g.available-container").selectAll("g").data(n.availableArray,(function(t){return t.startTime})).enter().append("g").attr("class","available-item").append("line").attr("x1",(function(t,e){return(t.startTime-l)/r*s})).attr("x2",(function(t,e){return(t.endTime-l)/r*s})).attr("y1",30).attr("y2",30).attr("stroke-width",3).attr("class","available-path")}n.updateMoveLen=function(t){var e=-(t-o)/r*s;qt(".progress-inner").attr("transform",(function(){return"translate(".concat(e,",0)")}))},d();var f=i+6*r,m=0,p=i-6*r,_=0,g=n.debounceFunc((function(){n.$emit("updateCurrentPlay",n.currentTime)}),1e3),v=function(){var t,e,n,i,r=yi,a=bi,s=wi,o=xi,l={},u=j("start","drag","end"),c=0,h=0;function d(t){t.on("mousedown.drag",f).filter(o).on("touchstart.drag",_).on("touchmove.drag",g).on("touchend.drag touchcancel.drag",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(){if(!i&&r.apply(this,arguments)){var s=y("mouse",a.apply(this,arguments),Be,this,arguments);s&&(qt(Rt.view).on("mousemove.drag",m,!0).on("mouseup.drag",p,!0),Zt(Rt.view),Jt(),n=!1,t=Rt.clientX,e=Rt.clientY,s("start"))}}function m(){if($t(),!n){var i=Rt.clientX-t,r=Rt.clientY-e;n=i*i+r*r>h}l.mouse("drag")}function p(){qt(Rt.view).on("mousemove.drag mouseup.drag",null),Qt(Rt.view,n),$t(),l.mouse("end")}function _(){if(r.apply(this,arguments)){var t,e,n=Rt.changedTouches,i=a.apply(this,arguments),s=n.length;for(t=0;t<s;++t)(e=y(n[t].identifier,i,Ue,this,arguments))&&(Jt(),e("start"))}}function g(){var t,e,n=Rt.changedTouches,i=n.length;for(t=0;t<i;++t)(e=l[n[t].identifier])&&($t(),e("drag"))}function v(){var t,e,n=Rt.changedTouches,r=n.length;for(i&&clearTimeout(i),i=setTimeout((function(){i=null}),500),t=0;t<r;++t)(e=l[n[t].identifier])&&(Jt(),e("end"))}function y(t,e,n,i,r){var a,o,h,f=n(e,t),m=u.copy();if(Wt(new vi(d,"beforestart",a,t,c,f[0],f[1],0,0,m),(function(){return null!=(Rt.subject=a=s.apply(i,r))&&(o=a.x-f[0]||0,h=a.y-f[1]||0,!0)})))return function s(u){var p,_=f;switch(u){case"start":l[t]=s,p=c++;break;case"end":delete l[t],--c;case"drag":f=n(e,t),p=c}Wt(new vi(d,u,a,t,p,f[0]+o,f[1]+h,f[0]-_[0],f[1]-_[1],m),m.apply,m,[u,i,r])}}return d.filter=function(t){return arguments.length?(r="function"==typeof t?t:gi(!!t),d):r},d.container=function(t){return arguments.length?(a="function"==typeof t?t:gi(t),d):a},d.subject=function(t){return arguments.length?(s="function"==typeof t?t:gi(t),d):s},d.touchable=function(t){return arguments.length?(o="function"==typeof t?t:gi(!!t),d):o},d.on=function(){var t=u.on.apply(u,arguments);return t===u?d:t},d.clickDistance=function(t){return arguments.length?(h=(t=+t)*t,d):Math.sqrt(h)},d}().subject((function(){return u})).on("start",(function(){c=Rt.sourceEvent.screenX})).on("drag",(function(t){var e=Rt.sourceEvent.screenX-c+h;n.updateCurrentTime(parseInt(o+-1*e/s*r)),e<=-m*s?(function(){for(var t=0;t<3;t++){var e=new Date(f);a.push({time:f,label:n.dateFormat(e,"hh:mm")}),f+=36e5,m++}var i=f;n.$emit("updateForwardList",(function(t){n.availableArray=n.availableArray.concat(t),d()}),i-4*r,i-r)}(),d()):e>=_*s&&(function(){for(var t=0;t<3;t++){var e=new Date(p);a.unshift({time:p,label:n.dateFormat(e,"hh:mm")}),p-=r,_++}var i=p;n.$emit("updateBackwordList",(function(t){n.availableArray=t.concat(n.availableArray),d()}),i+r,i+4*r)}(),d()),qt(".progress-inner").attr("transform",(function(){return"translate(".concat(e,",0)")}))})).on("end",(function(){h=h+Rt.sourceEvent.screenX-c,g()}));qt(".progress-inner").call(v)},debounceFunc:function(t,e){var n=null;return function(){for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];clearTimeout(n),n=setTimeout((function(){t.apply(void 0,r)}),e)}},updateCurrentTime:function(t){this.$emit("update:currentTimeProp",t)}}},js=(n(39),f(Is,k,[],!1,null,null,null));js.options.__file="src/components/player-progress-bar.vue";var Fs=js.exports,Hs=function(){var t=this.$createElement;return(this._self._c||t)("button",{on:{click:this.onClick}},[this._t("default")],2)};Hs._withStripped=!0;var Ns=f(a.a.extend({data:function(){return{}},methods:{onClick:function(t){this.$emit("click",t)}}}),Hs,[],!1,null,null,null);Ns.options.__file="src/components/button.vue";var Ws,Us=Ns.exports;function Bs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var zs={name:"QzPlayer",props:{devices:{type:Array,default:function(){return[]}},type:{type:String,default:"live"},basicConfig:{type:Object,default:function(){return{rows:1,cols:1,combines:{},autoPlay:!0,autoFitView:!0,theme:"light-theme",delay:3e3}}},pluginUrl:{type:String,default:""},playerServer:{type:String,default:""},fileServer:{type:Object,default:function(){}},vodTime:{type:Object,default:function(){}},message:{type:Object,default:function(){}}},components:{RtspPlayer:p,PlayerControlBar:y,PlayerProgressBar:Fs,PlayerTimeSelectBar:L},data:function(){var t=new Date;return{imgAround:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJ4AAACcCAYAAACOTRJwAAAU90lEQVR4Xu1dCdS1VVndu1KMHJhSFAgN+RHBVEQsExBCCUQQA8IUDBAVcgAECSE1VBQUwXCRA6GiGJoMgpCBMouUiANlkpCkpBlhJoVD1m7t3/MvP76+95zzDvfedzjPWnd9a333vGfY775neM4zEEUKAgtAgAtoszRZEEAhXiHBQhAoxFsI7KXRQryJcEDSxiTv7MtwC/H68iZm2A9J2wA4luTvzrCZWlUX4q0AlyTjsgmAzQCsA+CBAB607OP//QTADwH8IHzuBfAdAN8C8M/+S/I/ar2RjgtLuh+Az3kcJB/ZcfWNq5s08ST9PIDHA9gSwBZLPqsA/GJjVO/74D0A/i58/haAPzeT/G5H9UerkXQCgDeEQhuQvHse7abamBTxwkxmou0MYCcAOwB4cAqkGXyvQMRrAaz+kPx21+1IeiyALwC4f6h7V5KXd91Ok/pGTzxJ6wLYF8AzATwdwPpNgJrDMzcDuBDARSQ9K7YSST8H4AYAT1lS0XEk39Kq4o4eHiXxwr5mdwAHAthjyS++I9hmXs1tAD4K4GyStzdpTdJRAE5d9uzHSPpHuHAZFfEkbRfItn+PZ7Y6L91L8tUA/gzA+SR9kEmKJB+Kbllhn/p1kr+arGAOBUZBPEme1byJXrqszAG+uTbhw8g7AZxB8t+qWg772CvDtmKlYuuR/Pe59nyFxgZLvLCH2QfAa8LJdNFYzqt9q2w8A55K8p+WNyrppQD+NNKZXUh+el6drWpncMST9AsAng/guKD+mBWGnlVuBXAHgO8DsFrEn/9c8tfqGKtdHhD++iDziCWfTYPubxZ9/G8A7wZwIsm73IAk6x6turHOsUqsSD5lFh2qU+egiCfJ6o8zAWxVZ5CJslb+fgbATYFoJtutXenZAhm2Dn22Kmd7ACZkV+IfxckATgfwMQC7JSr+aB9uMAZBPEkPBfDWcHBo+8J+DOCvAXgfdBWAz5L0/+YmgYwmoNU7zwawYQeNe9/mGTclt5N8dKrQrL/vNfHCPs57ljeFq6umeHhZugzAOQA+SdL7pF5IOAz4ULQXgN8BsPmMO+aT8rqLvsrrLfEkeTn9AIAntXgRfxPIdl5fropSY5H0NAAHA9gPwC+lyjf8fieSVtMsTHpJPEkG/gwAazdA5kcA3g/gNJLerw1SJNkI4SAAfxgOK12O41Uk395lhXXr6hXxJPkXblXAAXUHAsDL53u8FyRp65BRiCSfmA/tmIDnknzBIgHqDfEkPS5cEz2mJiA+1VmxevoatULN5wdRvGMC/j1JGxAsTHpBPEkvDDNdXVMkHxaOIfmvC0Nwzg0HAr4YwPEAfNpvIv9rqxyS/9Xk4S6eWTjxJPnmwafWOmLrjcNJXlfnobGUlWRTLiuKN24xpieS/GKL51s9ujDiBTWClZ6vqDEC3xq8HsA7SNr6d5IiyTcWnvXayM4krcdciCyEeMFsycukrUhy5UaXX+l+MreCMZSTZANW37W2fXdbkPyHRWHStvO1+x3UBBcAeEbmw1Z4+uhvI0YrgicrkqxesrlTW9Omr5Ds8tqx9juZK/Ek+fDwKQBPzeypTYFeSPITmeVHXUzSaQCO6GCQh5I8q4N6GlcxN+IFq5KLADwrs7e+T92X5Dczy4+6mKTfAHA9AJu0t5EPk7R1z0JlLsQLB4n3efbKHK1nuP1I2nJk8iJpreC0Y2+4puJtir3NTiL5P00r6eq5eRHPZjuvzuy0r7u8FEz21LocJ0lWN1ntVFe+YeubcBi5oE/31TMnXoXTSRWAJ5P03WSRgICkJwKwsYMNYGPi1cE2hT79+2Nzr85dJrt6MTMlniSb+thlL6edo0h681zkZ6Qz2RwF4AkrgPKPYTZbTTIAXxrSKpFDiEZEkGQrWzsT5xgnvobkmxs1NOKHJPla7I0AfLVlAppgq2e0oV8TzoR4QUHs66wcry/fQnShIhgVBYMWwFY6/vHe0ocDQZcAz4p4diS2Q3FK/tyOOyStJC4yIQQ6J54k+xBcnIGhY3jsMfXbiAycRlmkU+I5+J83uQDWS6D1FS/DJH3pX2SCCHRNvPMBPDeBoy2FtyNps54iE0WgM+JJsj+nPblScjBJ32IUmTACnRAvWMXaONPBYmLyQZKO4FRk4gh0RTwbZ74ugeVXAWy7SHPrib/rXg2/NfFCSCzPdvaGqhLb+Psw4SudIgWBrKusKEySLgnBD2PlziT5BwXvYSIgyZ5/jhzvQOJXdmE11GrGk2Qv/9QsZg8wm1l/b5iwT7fXwc/Z/h1L7ff8Pp9H0rFnGktb4tmEfe9E67Ygtn9FkYEhIMnO9Y5ds1ysf926jf9LY+KF2Ca2/4/VcR1JhxYrMjAEgm+Ml9Yqi+d3kTys6bDaEO9Dy6bg5X3w/es2i/TdbApKeW51kMfUNsoWMxs1jTrViHjhJOuAOI6IWSWXkNyzvMRhIhBmPMfcixmgNrahbEo8B8dxIJmY/DpJO+wUGSgCkq4JSWiqRuBUCKtIWl1WS2oTL5x0nK8rFrvtUyRz/WZrdbgUnh8Ckpx077xEi7YwurRur5oQz8aJqVPqwgP/1QWilP//CARjVEeWd0DxKrmc5K518WtCvCsA7BJp6AaSv1m3I6V8PxFYloRvpU76ELll3SCYtYgnaSMAdpmLORUfSPKD/YSx9KouAiHwud+5fXur5BSSx9apuy7x7BtrH9kq8RH7YcUQoM4r6H9ZSY5FHbMq+irJWs7mdYlnY4BYsJdi9tR/HtXuoaRtg5db7NlH10n4l028kPs0ZTX8DJIOylNkZAhIckizWCqEI0i+I3fYdYj3shCJvapup0L/lSY6ndzOlnKLQ0CSQ8UdGelBLRVaHeKlDALeRvKYxUFTWp4lAiEgZMwixUGBnHrewdCTkkW8kGHHSeViUQHKMpuEe7gFgk7PHHhIZBQOK+d8aknJJZ6NAD8fqc25wNbpwkAw2eNSYGEISPpIyDhU1YcPkPz9nA7mEu9VAN4WqfAakk4IV2TECEhyUpaYjvY2klm52HKJ57u43SOYvp7kH48Y8zK0n+bDXR+ALZCrLhCy82fkEs+JeDeIoL/DVHNOTI2Rkr4GIJZ21E5djucXlSTxJDkcxd2RWn7oDee8c76mBla+nw0CklLRIl5E0qnrWxPPQZ9viNTigIArBQ5MtV2+HyACklI+1Flh53JmPJ9SYiEnepFqfIDvcJBdluRkzjGVid0ffys1uBziOVJnLC7xG0i+NtVQ+X4cCEhaBSCWB/guksnkfjnES91YvIDkueOAtYwihUC4TLB7YyzT5oYkbaVeKTnEs2FALLfpk0toitTrGtf3khyP2RYrVfJUko7X3Ip4vnt7UKQO5z29Z1zQltHEEJDkSP7PiZTZm6SzODUjXsjI4ywwVTPjvSRjTj/lDY4QAUlOghPL0vQSkvZEbEy8BwKIzWbfIbnhCLEtQ4ogIMl2d7E8w68l6fRVjYn3cADfijyffTdX3uR4EJBkUp0QGdFpJKNR/6OHi4yj8xdI2nKlyIQQkHQ0gLdGhpwMS5ciXip+xrUkd5wQ5mWoPzUWcBSJ2B7ubJKHtFlqTaqrIxVcSnKP8jamhYCk/QDYNq9KziVpE6rGe7zfBvCXkefPJ7nPtGAvo81IonMeyee1IZ6NO68qM14h21IEJO0PwOnAquQsktGgTqk93nYAYhGfriK5c3kt00IgY4/X+lT7OABfjsDq9JU2myoyIQQykl8nDUdSM54tTW1xWiXFFm9ChFszVEnOaWK7vCp5NcmYuiWebkBSSoF8J8lNJoj9pIcsyY5fdgCrksNIvqvN4cKhZn8UCTnre9y1xpbEd9Ksyhi8JKcgeHGkaNJULscs6k4HWY40sjFJh68oMhEEJH0SQCwY47NJfqLxjOcHJd2YSPFeYh1PhHBL9nhfB/DIyLC3IumcxJWSM+PZvt529lWyH8m/mBj2kx1uyNTpOIhVvrXefq2d8jrMId5pAI6IIH0iyVTmxsm+qLENXFJKxXY7yZjf7WpIcoiXuhD+OMmYNerYsJ/0eCT5ijS2wl1G8lkpkHKIl7q9uIPko1INle/HgUBGMO63k4ypWrJnvLWDFXIs4LYjRTnvVZGRI5Dhb5E0e89aasPJ1tm1t4hguivJy0eO+eSHlxkncUeS16bASi61gXjO7uIsL1VyMsmY03eqH+X7ASAgKRUn0ZcN6+bEScwlXir+8U0knzwA7EoXWyCQYfKeHScxl3jOYRBTCDou2volC3eLtzqARyVdBmC3SFdfR/LEnKFkES8st/Y2s9FAlexD0iGsiowQgRAD2WlE7fJaJduTvD5n+HWIl0qM/BGStkwtMkIEJDkbZ+wAeW+Ig+3o70mpQ7yDAJwdqdHXKA8l6Q4UGRkCkhz7OObAUyuLYx3iOf7tvyQyNpd725ERLmyzvLz63cfClRxN8tTc4WcTL3QgZQ5zAcmYQUFuv0q5HiEgyQn0nEivSny4dFanbPO4usQ7GEAsvq3X901JfrtHuJWutERAkvPTxaJ8XkHymXWaqUs8Z/ZxwL37RRopqQfqvIGel5W0MQBn6Y5dmR5A0ofPbKlFvLDcfhzAnpEWrHbxrPeT7F6Ugr1FQJLzEztPcZU4OqgjgPpwmS1NiJeKLuDG9ycZC3GQ3cFScHEIhFQTnu1iurtzSMZi5a04gCbE8zPOXRoz9rMv7hNIOl99kYEikJFawCPbheSn6w6xNvHCcuvYZ6mjc3Ymv7qdLuVnj4Akhx/2bBfL2Olr1K2bTDBNibcOAB+dbatXJU4j/2tNOjV7WEsLKQQkHQvgLYlySTfGqucbES/MeqlwpGWvl3q7Pf1e0oNDBIlYvorbbaPZ1Ke6DfFsMODGY/kOvgFgy3KN1lOGVXQrI8axnzyU5FlNR9aYeGHWS3mgudgbSf5R0w6W5+aLgCTnpbspEj3CHbKT/2YpF8ZYz9sS72EA7Nwbm/VslWoHX8+ORXqMQEgv8RkAqQhgryT5J22G0op4YdZLKRhd7GKSe7XpaHl29ghIehGA9yZauiNsn5wutrF0QTwfu51ULWYk6g76hHtL456WB2eKgCQfJKwesRVSTPYkeUnbzrQmXpj1ng8gdVd3EElnhCnSMwTCEvtXAGzsGZPOVq5OiBfIdw2AHSK93o2kzaqK9AwBScf7EJjo1g+cTJGkl9rW0iXxHFPDuegfsEKv7gKweXH6bv2+Oq9AkieLKxOnWLd7PMmTuupAZ8QLs54NCJy1b60lHbQpvC2TL+2q06WebhCQ9MsAvgjgEYkavYf3Hv3H3bScEbSnbkOSnA3I0SIdzNG5bt9L8ra69ZTys0VAkm0q7a64S6IlG/faeywW/b92Zzud8Wq3Xh5YCALhMHFOwnlnTd9q+VLkDqgQLxepEZWTZMuiaHbFMFyHk7X6pHPztkK8EREqZyiSbE1spX9KvhlsKr+bKtjk+0K8JqgN9BlJthTO0aXabWEHkp+d1VAnQTxJvkt+GskrZgVk3+uV9BIAZyacdtYM40iSp89yTKMmniRbzx4e0pg7UmXOEjNLvBdStyRbB2UF0wGQFdGz7UBGSTxJzjZ0pG3GgqOKI5FvMjV/3xBI8Yzw48vhiq89D5zFYWJ546MinqStgiuec6Uu9f3NCgid82aGUkbS/cP9+b6ZfXZeYp9g5+KWOgriSdo+EM7Rxlca06QcjyQ5+YndSx04PUesHN55npbigyVeUILasdxOKTHDRasDHt7ldU/Om1xUGUl7h6hedsjKEbuimnR35xTuqszgiBeWEIfLOgbAYzKAeCfJl2eUG3SRgMspAF5ZYyDXheX1ezWe6aToYIgX/DytEvChIXWpvRScJ5G8uRO0elqJJEfk98Fg2xpddCgSR3xoZUlco737FO098cIv+eiwh3tIzYF+meTjaz4zmOKS7NdsWzrj48NErtg77KVNXRNzG4mV6zXxJG0A4Cp7qzcc7MwVoQ371foxSd7f2uFm05qVnUTSZF2o9JZ4kpyk+YYaJ7PlQNqcZyOSNkIdjUhyzBq7le5Rc1C2izycZCzAYs0qmxfvM/F+D8C5zYeGC0k+t8XzvXpU0mMBHAfAOkr/KOuI7SJtjBvNIVunwrZl+0w836umjBRj49+L5MVtAVr08yGbjpdGq0mavK/3AXjZPHV0OZg1GUhOva3LSEqlpE+14Zf1fpIOFDkoCQeq3QH4FG93gibiQImHkXS09t5Jn4lnheZ6LRFzUGjH7/W+5qK+/eqXj03SU3xXGvLGpfxbY9A4Xp33c45j2EvpM/FuBOAX0ZXcA8Bp7m1VezXJmRg41ulsyJZj3ZsDV9s3eVWd51co66DnR5F00sNeS5+J55sJa+JnIZ4J7V1ltz5/riPpWL4zlXDN56A4O/maKvghOxJDW7H1ja1QnEvs+20rm8fzfSaedXg2v17JT7drbGyR4WXJeXntyrfm761NEgMGD67NQo5f3yr44+s9n0xz71Bzx+hrr5eT/FLuA30o11viGRxJ1rAfsmCgPIP446V66cczpP2HPWMt/ThQtfemdVUedYfpmdoh4KxgH5z0nXiOTmDriSI/Q8B71DeR9B54sNJr4oVZzyc074dyxFYWXS9lOe3Ouow9+C8E8OahLalVwAyBeL6TtCVFSlZHqQwkPQDAcxLBwVP19eF7G2ja8dopWedqLzfrwQ+BeE5l5I2/SRWT+1x+BzMqX5lZL/b0TO+qWeOdU79D/NvEyYlLequHyxlIrEzviReW21cAcJT5mKwi+bWVCkhyHBfHfvOSbVWG83P1RRz+y1mtfUjwtuJz83C2WfTgh0I8nxq9lDoM/kpyPUn7XWSJpM2X6NL8XB3D0qw2IoVsJfL5JTrEG6dilr8Uk0EQL8x6sXgfh5CMZQ+PkkWSDUzX6NuW/vXyHksiU1WvFbpOQGOd4JrPGt3gnVOY0VK/ziERz55TDne2XD/my3A781jH1rkEZbB1cyvp6xzRfrl+7x6SXj6LRBAYDPHCrHc+gOU2do2yBxZWLBaBoRHP+7Frl0G2E8mrFwtjab0uAoMiXpj1vDHfJgzUyV2cYabz+G11gSzl6yEwROLZp3aNcaOtMXKD0dRDppSeKQJDJJ7d+BzyfkMAjyJphWuRgSEwOOKF5fYE30aQbOOTMbBXNa7uDpV4ttXbkaRPuUUGiMD/Ac2GRvfg+v/gAAAAAElFTkSuQmCC",urls:[],date:new Date("".concat(As(t,"yyyy-MM-dd")," 00:00:00")).getTime(),isPlaying:!1,isCanPlay:!1,pluginLoadSuccess:!0,loadFailedMsg:"",playerHeight:0,loading:!1,vodRecord:{beginTime:"",endTime:""},monthRecord:[],fileList:[],paused:!0,interval:null,request:null,playingId:"",errorCode:0,showControlBar:!0,pluginDownloadUrl:"",dcs:null,showPlayBtn:!0}},created:function(){this.loading=!1;var t=this.isVueOptions(this.basicConfig.button||null);this.isVueOptions(this.basicConfig.button||null)||console.error('[Props warn]please check prop: "basicConfig[button]"'),console.log("this.basicConfig",this.basicConfig),a.a.component("player-button",t?this.basicConfig.button:Us)},watch:{pluginLoadSuccess:{handler:function(t,e){var n=this;if(t&&t!==e)if("playback"===this.type)this.devices.length>0&&void 0!==this.devices[0].id&&!this.playerServer&&setTimeout((function(){n.getPlaybackUrl()}),300);else if(this.urls=[],this.devices&&0!==this.devices.length&&(this.urls=this.devices.map((function(t){return t})),0===this.urls.length))return void this.message.warning("暂无可播放的".concat("file"===this.type?"文件":"流地址","!"))}},devices:{handler:function(t,e){var n=this;if(!(this.isPlaying&&t&&1===t.length&&e&&1===e.length&&t[0].rtspUrl===e[0].rtspUrl)){this.stop(),this.basicConfig.rows,this.basicConfig.cols;var i=t.filter((function(t){return""!==t.rtspUrl}));0!==i.length?(this.urls=i,0!==this.urls.length?this.$nextTick((function(){n.basicConfig.autoPlay&&n.play()})):console.warn("暂无流地址!")):this.urls=[]}},deep:!0,immediate:!0},loading:{handler:function(t){this.$emit("loading")},deep:!0},basicConfig:{handler:function(t){t.rows&&t.cols&&t.rows>1&&t.cols>1?this.showPlayBtn=!1:this.showPlayBtn=!0},immediate:!0,deep:!0}},beforeDestroy:function(){this.$refs.player&&this.$refs.player.streamCloses(),window.onbeforeunload=null},computed:{playerProgressBar:function(){return"playback"===this.type?this.$refs.playerProgressBar:null},deviceTimeOffsetHour:function(){return this.devices&&this.devices.length>0&&this.devices[0].timeOffsetHour||0},isDcsPlayback:function(){return"playback"===this.type&&""!==this.playerServer}},methods:(Ws={pluginOnload:function(t,e){this.$emit("onLoad",t,e)},pluginStatusChange:function(t,e,n){this.pluginLoadSuccess=!1,this.loadFailedMsg=e,this.pluginDownloadUrl=n,this.$emit(t,e,n)},playerOnLogin:function(){this.isCanPlay=!0,this.dcs=this.$refs.player&&this.$refs.player.dcs,this.play(),this.$emit("onLogin")},onStreamStatus:function(t){var e=this,n=t.id,i=t.status,r=t.code,a=t.errorText,s=t.index;this.loading=!1,2===i?(this.isPlaying=!this.isPlaying,this.basicConfig.autoFitView&&setTimeout((function(){e.autoFitView()}),this.basicConfig.delay||3e3),"playback"===this.type&&this.updateTime()):this.pauseTime(),this.$emit("onStreamStatus",{id:n,status:i,code:r,errorText:a,index:s})},onPlayFinished:function(t){this.$emit("onPlayFinished",t)},onWinOp:function(t){var e=t.index,n=t.streamItem,i=t.state;this.$emit("onWinOp",{index:e,streamItem:n,state:i})},onWinSwap:function(t){var e=t.index,n=t.swapTargetIndex,i=t.streamItem,r=t.state;this.$emit("onWinSwap",{index:e,swapTargetIndex:n,streamItem:i,state:r})},onWinDrop:function(t){this.$emit("onWinDrop",t)},onDownloadStatus:function(t,e,n,i){this.$emit("onDownloadStatus",t,e,n,i)},onDownloadProgress:function(t,e,n){this.$emit("onDownloadProgress",t,e,n)},onAudioState:function(t,e,n,i,r){this.$emit("onAudioState",t,e,n,i,r)},onRecord:function(t,e,n){this.$emit("onRecord",t,e,n)},play:function(){var t=this;"live"===this.type||"file"===this.type?1===this.urls.length?this.$refs.player&&this.$refs.player.play():this.urls.map((function(e,n){t.$refs.player&&t.$refs.player.play(n)})):"playback"===this.type&&(this.isDcsPlayback?this.$refs.player&&this.$refs.player.play():(this.updateTime(),this.getPlaybackUrl()))},pause:function(){var t=this;this.isPlaying=!this.isPlaying,this.$refs.player&&this.$refs.player.pause().then((function(){"playback"===t.type&&t.stop()}))},stop:function(t){this.isPlaying=!1,this.$refs.player&&this.$refs.player.stop(t),this.pauseTime()},reconnect:function(){var t=this;this.$refs.player&&this.$refs.player.stop(),this.errorCode=0,this.urls=[],this.devices.map((function(e){t.urls.push(e)})),this.$refs.player&&this.$refs.player.play()},getStreamInfo:function(t){return this.$refs.player&&this.$refs.player.getStreamInfo(t||-1)},capture:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((function(n){t.$refs.player&&t.$refs.player.capture(e).then((function(t){n(t)}))}))},autoFitView:function(){if(!this.getStreamInfo()){var t=this.getStreamInfo();if(!t)return;var e=t.width,n=t.height;if(e&&n){var i=e/n,r=this.$refs.renderPlayer.getBoundingClientRect();this.playerHeight=r.width/i}}},getLayout:function(){return this.$refs.player&&this.$refs.player.getLayout()},setLayout:function(t){return this.$refs.player&&this.$refs.player.setLayout(t)},setControlBar:function(t){this.showControlBar=t},getPlaybackUrl:function(){var t=this;if(this.devices&&this.devices.length>0&&!this.playerServer){this.setControlBar(!0);var e=As(new Date(this.date),"yyyyMMddhhmmss"),n=As(new Date,"yyyyMMddhhmmss"),i="".concat(this.devices[0].dcs?"dcs://":"").concat(this.devices[0].rtspUrl,"?begin=").concat(e,"&end=").concat(n);this.devices[0].rtspUrl.includes("begin")&&this.devices[0].rtspUrl.includes("end")&&(i=this.devices[0].rtspUrl,console.log("playback use devices rtspUrl"),this.setControlBar(!1)),this.urls=[{rtspUrl:i}],this.$forceUpdate(),this.$nextTick((function(){t.$refs.player&&t.$refs.player.play()}))}},backward:function(){var t=this;this.date-=15e3,this.pauseTime(),this.stop(),setTimeout((function(){t.getPlaybackUrl()}),300)},forward:function(){var t=this;this.date+=15e3,this.pauseTime(),this.stop(),setTimeout((function(){t.getPlaybackUrl()}),300)},onUpdateBackwordList:function(t,e,n){},onUpdateForwardList:function(t,e,n){},onUpdateCurrentPlay:function(t){var e=this;t>(new Date).getTime()?this.date=(new Date).getTime():this.date=t,this.$refs.player&&this.$refs.player.streamCloses(),setTimeout((function(){e.getPlaybackUrl()}),300)},onUpdatePlayState:function(t){t&&this.getPlaybackUrl()},updateTime:function(t,e){var n=this;if("playback"===this.type){if(this.interval)return;this.paused=!1,this.interval=window.setInterval((function(){n.date+=1e3}),1e3)}},pauseTime:function(){"playback"===this.type&&(clearInterval(this.interval),this.interval=null)},dateChange:function(t){this.judgeSelectData(t),this.getPlaybackUrl(),this.playerProgressBar.rerenderBar(this.date)},dateFocus:function(){},judgeSelectData:function(t){this.date=t},controlIconClick:function(){"playback"!==this.type&&(0!==this.devices.map((function(t){return t.rtspUrl})).length?this.isPlaying?this.pause():this.play():this.message.warning("暂无可播放的".concat("file"===this.type?"文件":"流地址","!")))},downloadPlugin:function(){window.open(this.pluginDownloadUrl)},showFullscreen:function(){return this.$refs.player&&this.$refs.player.showFullscreen()},ptzControl:function(t,e,n){return this.$refs.player&&this.$refs.player.ptzControl(t,e,n)},swapWindow:function(t,e){return this.$refs.player&&this.$refs.player.swapWindow(t,e)},playIndex:function(t,e,n){return this.$refs.player&&this.$refs.player.openStreamInServer(t,e,n||{})},selectWindow:function(t){return this.$refs.player&&this.$refs.player.selectWindow(t)},getStreamItem:function(t,e){return this.$refs.player&&this.$refs.player.getStreamItem(t,e)}},Bs(Ws,"showFullscreen",(function(){return this.$refs.player&&this.$refs.player.showFullscreen()})),Bs(Ws,"toggleWindow",(function(){return this.$refs.player&&this.$refs.player.toggleWindow()})),Bs(Ws,"startRecord",(function(t,e,n){return"live"===this.type&&this.$refs.player&&this.$refs.player.startRecord(t,e,n)})),Bs(Ws,"stopRecord",(function(t){return"live"===this.type&&this.$refs.player&&this.$refs.player.stopRecord(t)})),Bs(Ws,"isVueOptions",(function(t){return!!t&&("string"==typeof t.template||"function"==typeof t.render)})),Ws)},Vs=(n(41),f(zs,i,[],!1,null,null,null));Vs.options.__file="src/components/player.vue";var Gs=Vs.exports;e.default=Gs}]).default}))},fd7e:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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(t){var e=t%10,n=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n},week:{dow:1,doy:4}});return e}))},ffff:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.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}});return e}))}}]); |