{"version":3,"file":"commonTemplate.420f79189fff93e7452d.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACtPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;AC/VA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACxbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC9sBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACnqBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;AC/HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;ACpjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;ACrPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AC/1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AC3NA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AChEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;ACzKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;ACtFA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AClKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;ACrDA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACNA;AACA;AACA;AACA;;;;;;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;AC3IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC9GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;AC/JA;AACA;AACA;AACA;;;;;;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AClEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;AClLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;ACzIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;ACtUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;ACjFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACXA;AACA;AACA;AACA;;;;;;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AClDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACvHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;AC/GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACzFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;ACvDA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;ACvFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;ACrHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;AC/DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;AC9JA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;AClIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC1EA;AACA;;;;;;;;;;;;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACvEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;AClEA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACpTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;ACvKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACrGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;AC5FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;AChEA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AC3FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACjNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;AClGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;ACxHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACnGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACzDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACtFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AC9BA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;AClEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;ACxEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;AC3LA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;ACxBA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACvNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;ACxKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;AChTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;AC37BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;ACt7CA;AACA;AACA;;;;;;;;;;;;;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;AC7/DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;ACvEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;AClFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;AC9IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;ACrDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;ACrIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACrBA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;AC1EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACrOA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACpyCA;AACA;;;;;;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACRA;AACA;AACA;AACA;AACA;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;ACJA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACNA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACvFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://advantshop/./Templates/Atom_Promo/scripts/_partials/cart/cart.module.js","webpack://advantshop/./Templates/Atom_Promo/scripts/_partials/cart/services/cartService.js","webpack://advantshop/./Templates/Atom_Promo/scripts/_partials/product-view/controllers/productViewItemController.js","webpack://advantshop/./Templates/Atom_Promo/scripts/_partials/product-view/productView.module.js","webpack://advantshop/./Templates/Atom_Promo/scripts/checkout/checkout.module.js","webpack://advantshop/./Templates/Atom_Promo/scripts/checkout/controllers/checkoutController.js","webpack://advantshop/./Templates/Atom_Promo/scripts/productCustom/controllers/productController.js","webpack://advantshop/./Templates/Atom_Promo/scripts/productCustom/product.module.js","webpack://advantshop/./Templates/Atom_Promo/scripts/product/controllers/productController.js","webpack://advantshop/./Templates/Atom_Promo/scripts/product/product.module.js","webpack://advantshop/./Templates/Atom_Promo/vendors/new.js","webpack://advantshop/./Templates/Atom_Promo/vendors/owl.carousel.min.js","webpack://advantshop/./Templates/Atom_Promo/vendors/pushy.min.js","webpack://advantshop/./scripts/_common/carousel/carousel.module.js","webpack://advantshop/./scripts/_common/carousel/carouselNative.js","webpack://advantshop/./scripts/_common/carousel/controllers/carouselController.js","webpack://advantshop/./scripts/_common/carousel/directives/carouselDirectives.js","webpack://advantshop/./scripts/_common/carousel/services/carouselService.js","webpack://advantshop/./scripts/_common/iframe-responsive/controllers/iframeResponsiveController.js","webpack://advantshop/./scripts/_common/iframe-responsive/directives/iframeResponsiveDirective.js","webpack://advantshop/./scripts/_common/iframe-responsive/iframeResponsive.module.js","webpack://advantshop/./scripts/_common/iframe-responsive/services/iframeResponsiveService.js","webpack://advantshop/./scripts/_common/rating/controllers/ratingController.js","webpack://advantshop/./scripts/_common/rating/directives/ratingDirectives.js","webpack://advantshop/./scripts/_common/rating/rating.module.js","webpack://advantshop/./scripts/_common/rotate/controllers/rotateController.js","webpack://advantshop/./scripts/_common/rotate/directives/rotateDirectives.js","webpack://advantshop/./scripts/_common/rotate/rotate.module.js","webpack://advantshop/./scripts/_common/tabs/controllers/tabContentController.js","webpack://advantshop/./scripts/_common/tabs/controllers/tabHeaderController.js","webpack://advantshop/./scripts/_common/tabs/controllers/tabsController.js","webpack://advantshop/./scripts/_common/tabs/directives/tabsDirectives.js","webpack://advantshop/./scripts/_common/tabs/services/tabsService.js","webpack://advantshop/./scripts/_common/tabs/tabs.module.js","webpack://advantshop/./scripts/_common/urlHelper/urlHelperService.js","webpack://advantshop/./scripts/_common/yandexMaps/yandexMaps.module.js","webpack://advantshop/./scripts/_common/yandexMaps/yandexMapsService.js","webpack://advantshop/./scripts/_common/zoomer/controllers/zoomerController.js","webpack://advantshop/./scripts/_common/zoomer/directives/zoomerDirectives.js","webpack://advantshop/./scripts/_common/zoomer/zoomer.module.js","webpack://advantshop/./scripts/_partials/address/address.module.js","webpack://advantshop/./scripts/_partials/address/controllers/addressListController.js","webpack://advantshop/./scripts/_partials/address/directives/addressDirectives.js","webpack://advantshop/./scripts/_partials/address/services/addressService.js","webpack://advantshop/./scripts/_partials/bonus/bonus.module.js","webpack://advantshop/./scripts/_partials/bonus/controllers/bonusApplyController.js","webpack://advantshop/./scripts/_partials/bonus/controllers/bonusAuthController.js","webpack://advantshop/./scripts/_partials/bonus/controllers/bonusCodeController.js","webpack://advantshop/./scripts/_partials/bonus/controllers/bonusInfoController.js","webpack://advantshop/./scripts/_partials/bonus/controllers/bonusRegController.js","webpack://advantshop/./scripts/_partials/bonus/controllers/bonusWhatToDoController.js","webpack://advantshop/./scripts/_partials/bonus/directives/bonusDirectives.js","webpack://advantshop/./scripts/_partials/bonus/services/bonusService.js","webpack://advantshop/./scripts/_partials/buy-one-click/buyOneClick.module.js","webpack://advantshop/./scripts/_partials/buy-one-click/controllers/buyOneClickFormController.js","webpack://advantshop/./scripts/_partials/buy-one-click/controllers/buyOneClickTriggerController.js","webpack://advantshop/./scripts/_partials/buy-one-click/directives/buyOneClickDirectives.js","webpack://advantshop/./scripts/_partials/buy-one-click/services/buyOneClickService.js","webpack://advantshop/./scripts/_partials/cards/cards.module.js","webpack://advantshop/./scripts/_partials/cards/controllers/cardsFormController.js","webpack://advantshop/./scripts/_partials/cards/controllers/cardsRemoveController.js","webpack://advantshop/./scripts/_partials/cards/directives/cardsDirectives.js","webpack://advantshop/./scripts/_partials/cards/services/cardsService.js","webpack://advantshop/./scripts/_partials/cart/cart.js","webpack://advantshop/./scripts/_partials/cart/controllers/cartAddController.js","webpack://advantshop/./scripts/_partials/cart/controllers/cartConfirmController.js","webpack://advantshop/./scripts/_partials/cart/controllers/cartCountController.js","webpack://advantshop/./scripts/_partials/cart/controllers/cartFullController.js","webpack://advantshop/./scripts/_partials/cart/controllers/cartMiniController.js","webpack://advantshop/./scripts/_partials/cart/controllers/cartMiniListController.js","webpack://advantshop/./scripts/_partials/cart/controllers/cartMobileFullController.js","webpack://advantshop/./scripts/_partials/cart/controllers/cartPreorderController.js","webpack://advantshop/./scripts/_partials/cart/directives/cartDirectives.js","webpack://advantshop/./scripts/_partials/colors-viewer/colorsViewer.module.js","webpack://advantshop/./scripts/_partials/colors-viewer/controllers/colorsViewerController.js","webpack://advantshop/./scripts/_partials/colors-viewer/directives/colorsViewerDirectives.js","webpack://advantshop/./scripts/_partials/compare/compare.module.js","webpack://advantshop/./scripts/_partials/compare/controllers/compareController.js","webpack://advantshop/./scripts/_partials/compare/controllers/compareCountController.js","webpack://advantshop/./scripts/_partials/compare/directives/compareDirectives.js","webpack://advantshop/./scripts/_partials/compare/services/compareService.js","webpack://advantshop/./scripts/_partials/custom-options/controllers/customOptionsController.js","webpack://advantshop/./scripts/_partials/custom-options/customOptions.module.js","webpack://advantshop/./scripts/_partials/custom-options/directives/customOptionsDirectives.js","webpack://advantshop/./scripts/_partials/custom-options/services/customOptionsService.js","webpack://advantshop/./scripts/_partials/login-open-id/loginOpenId.module.js","webpack://advantshop/./scripts/_partials/payment/controllers/paymentListController.js","webpack://advantshop/./scripts/_partials/payment/controllers/paymentTemplateController.js","webpack://advantshop/./scripts/_partials/payment/directives/paymentDirectives.js","webpack://advantshop/./scripts/_partials/payment/payment.module.js","webpack://advantshop/./scripts/_partials/photo-view-list/photo-view-list.ctrl.js","webpack://advantshop/./scripts/_partials/photo-view-list/photo-view-list.directive.js","webpack://advantshop/./scripts/_partials/photo-view-list/photoViewList.module.js","webpack://advantshop/./scripts/_partials/product-view/controllers/productViewCarouselPhotosController.js","webpack://advantshop/./scripts/_partials/product-view/controllers/productViewChangeModeController.js","webpack://advantshop/./scripts/_partials/product-view/controllers/productViewItemController.js","webpack://advantshop/./scripts/_partials/product-view/controllers/productViewModeController.js","webpack://advantshop/./scripts/_partials/product-view/directives/productViewDirectives.js","webpack://advantshop/./scripts/_partials/product-view/productView.module.js","webpack://advantshop/./scripts/_partials/product-view/services/productViewService.js","webpack://advantshop/./scripts/_partials/products-carousel/controllers/productsCarouselController.js","webpack://advantshop/./scripts/_partials/products-carousel/directives/productsCarouselDirectives.js","webpack://advantshop/./scripts/_partials/products-carousel/productsCarousel.module.js","webpack://advantshop/./scripts/_partials/products-carousel/services/productsCarouselService.js","webpack://advantshop/./scripts/_partials/quickview/controllers/quickviewController.js","webpack://advantshop/./scripts/_partials/quickview/directives/quickviewDirectives.js","webpack://advantshop/./scripts/_partials/quickview/quickview.module.js","webpack://advantshop/./scripts/_partials/quickview/services/quickviewService.js","webpack://advantshop/./scripts/_partials/reviews/controllers/reviewItemRatingController.js","webpack://advantshop/./scripts/_partials/reviews/controllers/reviewsController.js","webpack://advantshop/./scripts/_partials/reviews/controllers/reviewsFormController.js","webpack://advantshop/./scripts/_partials/reviews/directives/reviewsDirectives.js","webpack://advantshop/./scripts/_partials/reviews/reviews.module.js","webpack://advantshop/./scripts/_partials/shipping/controllers/shippingListController.js","webpack://advantshop/./scripts/_partials/shipping/controllers/shippingTemplateController.js","webpack://advantshop/./scripts/_partials/shipping/controllers/shippingVariantsController.js","webpack://advantshop/./scripts/_partials/shipping/directives/shippingDirectives.js","webpack://advantshop/./scripts/_partials/shipping/services/shipping.service.js","webpack://advantshop/./scripts/_partials/shipping/shipping.module.js","webpack://advantshop/./scripts/_partials/sizes-viewer/controllers/sizesViewerController.js","webpack://advantshop/./scripts/_partials/sizes-viewer/directives/sizesViewerDirectives.js","webpack://advantshop/./scripts/_partials/sizes-viewer/sizesViewer.module.js","webpack://advantshop/./scripts/_partials/subscribe/controllers/subscribeController.js","webpack://advantshop/./scripts/_partials/subscribe/subscribe.module.js","webpack://advantshop/./scripts/_partials/videos/controllers/videosController.js","webpack://advantshop/./scripts/_partials/videos/directives/videosDirective.js","webpack://advantshop/./scripts/_partials/videos/videos.module.js","webpack://advantshop/./scripts/_partials/zone/controllers/zoneController.js","webpack://advantshop/./scripts/_partials/zone/controllers/zonePopoverController.js","webpack://advantshop/./scripts/_partials/zone/directives/zoneDirectives.js","webpack://advantshop/./scripts/_partials/zone/services/zoneService.js","webpack://advantshop/./scripts/_partials/zone/zone.js","webpack://advantshop/./scripts/_partials/zone/zone.module.js","webpack://advantshop/./scripts/appDependency.js","webpack://advantshop/./scripts/auth/auth.module.js","webpack://advantshop/./scripts/auth/controllers/authController.js","webpack://advantshop/./scripts/auth/services/authService.js","webpack://advantshop/./scripts/checkout/services/checkoutService.js","webpack://advantshop/./scripts/product/services/productService.js","webpack://advantshop/./vendors/flatpickr/flatpickr.module.js","webpack://advantshop/./vendors/flatpickr/ng-flatpickr.js","webpack://advantshop/./vendors/threesixty/threesixty.js","webpack://advantshop/./vendors/ui-bootstrap-custom/ui-bootstrap-custom-tpls-2.5.0.js","webpack://advantshop/./vendors/ui-bootstrap-custom/ui-bootstrap.module.js","webpack://advantshop/./node_modules/flatpickr/dist/esm/index.js","webpack://advantshop/./node_modules/flatpickr/dist/esm/l10n/default.js","webpack://advantshop/./node_modules/flatpickr/dist/esm/types/options.js","webpack://advantshop/./node_modules/flatpickr/dist/esm/utils/dates.js","webpack://advantshop/./node_modules/flatpickr/dist/esm/utils/dom.js","webpack://advantshop/./node_modules/flatpickr/dist/esm/utils/formatting.js","webpack://advantshop/./node_modules/flatpickr/dist/esm/utils/index.js","webpack://advantshop/./node_modules/flatpickr/dist/esm/utils/polyfills.js","webpack://advantshop/./node_modules/flatpickr/dist/l10n/ru.js","webpack://advantshop/./Templates/Atom_Promo/vendors/wow.min.js","webpack://advantshop/./Templates/Atom_Promo/scripts/_common/harmonica/styles/harmonica.scss","webpack://advantshop/./Templates/Atom_Promo/scripts/_common/modal/styles/modal.scss","webpack://advantshop/./Templates/Atom_Promo/scripts/_partials/cart/styles/cart.scss","webpack://advantshop/./Templates/Atom_Promo/scripts/_partials/colors-viewer/styles/colors-viewer.scss","webpack://advantshop/./Templates/Atom_Promo/scripts/_partials/product-view/styles/product-view.scss","webpack://advantshop/./Templates/Atom_Promo/styles/animate.css","webpack://advantshop/./Templates/Atom_Promo/styles/common/links.scss","webpack://advantshop/./Templates/Atom_Promo/styles/common/social.scss","webpack://advantshop/./Templates/Atom_Promo/styles/font-awesome.css","webpack://advantshop/./Templates/Atom_Promo/styles/font-electro.css","webpack://advantshop/./Templates/Atom_Promo/styles/general.scss","webpack://advantshop/./Templates/Atom_Promo/styles/owl.carousel.css","webpack://advantshop/./Templates/Atom_Promo/styles/partials/brands-carousel.scss","webpack://advantshop/./Templates/Atom_Promo/styles/partials/footer.scss","webpack://advantshop/./Templates/Atom_Promo/styles/partials/gallery.scss","webpack://advantshop/./Templates/Atom_Promo/styles/partials/header.scss","webpack://advantshop/./Templates/Atom_Promo/styles/partials/menu-dropdown.scss","webpack://advantshop/./Templates/Atom_Promo/styles/partials/products-specials.scss","webpack://advantshop/./Templates/Atom_Promo/styles/partials/toolbar-top.scss","webpack://advantshop/./Templates/Atom_Promo/styles/pushy.css","webpack://advantshop/./Templates/Atom_Promo/styles/views/product.scss","webpack://advantshop/./node_modules/flatpickr/dist/flatpickr.min.css","webpack://advantshop/./scripts/_common/carousel/styles/carousel.scss","webpack://advantshop/./scripts/_common/iframe-responsive/styles/iframe-responsive.css","webpack://advantshop/./scripts/_common/rating/styles/rating.scss","webpack://advantshop/./scripts/_common/tabs/styles/tabs.scss","webpack://advantshop/./scripts/_common/zoomer/styles/zoomer.scss","webpack://advantshop/./scripts/_partials/address/styles/address.scss","webpack://advantshop/./scripts/_partials/bonus/styles/bonus.scss","webpack://advantshop/./scripts/_partials/buy-one-click/styles/buyOneClick.scss","webpack://advantshop/./scripts/_partials/cart/styles/cart.scss","webpack://advantshop/./scripts/_partials/colors-viewer/styles/colors-viewer.scss","webpack://advantshop/./scripts/_partials/compare/styles/compare.scss","webpack://advantshop/./scripts/_partials/custom-options/styles/customOptions.scss","webpack://advantshop/./scripts/_partials/login-open-id/styles/loginOpenId.scss","webpack://advantshop/./scripts/_partials/payment/styles/payment.scss","webpack://advantshop/./scripts/_partials/photo-view-list/photo-view-list.scss","webpack://advantshop/./scripts/_partials/product-view/styles/product-view.scss","webpack://advantshop/./scripts/_partials/quickview/styles/quickview.scss","webpack://advantshop/./scripts/_partials/reviews/styles/reviews.scss","webpack://advantshop/./scripts/_partials/shipping/styles/shipping.scss","webpack://advantshop/./scripts/_partials/sizes-viewer/styles/sizes-viewer.scss","webpack://advantshop/./scripts/_partials/subscribe/styles/subscribe.scss","webpack://advantshop/./scripts/_partials/zone/styles/zones.scss","webpack://advantshop/./styles/partials/bonus-card.scss","webpack://advantshop/./styles/partials/gallery.scss","webpack://advantshop/./styles/partials/order-history-products.scss","webpack://advantshop/./styles/partials/product-color.scss","webpack://advantshop/./styles/partials/properties.scss","webpack://advantshop/./styles/partials/social-share42.scss","webpack://advantshop/./styles/views/checkout.scss","webpack://advantshop/./styles/views/product.scss","webpack://advantshop/./vendors/flatpickr/flatpickr.custom.css","webpack://advantshop/./vendors/threesixty/styles/threesixty.css","webpack://advantshop/./vendors/ui-bootstrap-custom/styles/ui-popover.css","webpack://advantshop/./node_modules/ng-file-upload/dist/ng-file-upload-all.js","webpack://advantshop/./node_modules/ng-file-upload/index.js","webpack://advantshop/webpack/bootstrap","webpack://advantshop/webpack/runtime/compat get default export","webpack://advantshop/webpack/runtime/define property getters","webpack://advantshop/webpack/runtime/ensure chunk","webpack://advantshop/webpack/runtime/get javascript chunk filename","webpack://advantshop/webpack/runtime/get mini-css chunk filename","webpack://advantshop/webpack/runtime/hasOwnProperty shorthand","webpack://advantshop/webpack/runtime/load script","webpack://advantshop/webpack/runtime/make namespace object","webpack://advantshop/webpack/runtime/publicPath","webpack://advantshop/webpack/runtime/jsonp chunk loading","webpack://advantshop/./Templates/Atom_Promo/bundle_config/common.js"],"sourcesContent":["import '../../../../../scripts/_partials/cart/styles/cart.scss';\nimport '../../../../../scripts/_partials/cart/cart.js';\nimport './services/cartService.js';\nimport '../../../../../scripts/_partials/cart/directives/cartDirectives.js';\nimport '../../../../../scripts/_partials/cart/controllers/cartAddController.js';\nimport '../../../../../scripts/_partials/cart/controllers/cartConfirmController.js';\nimport '../../../../../scripts/_partials/cart/controllers/cartCountController.js';\nimport '../../../../../scripts/_partials/cart/controllers/cartFullController.js';\nimport '../../../../../scripts/_partials/cart/controllers/cartMiniController.js';\nimport '../../../../../scripts/_partials/cart/controllers/cartMiniListController.js';\nimport '../../../../../scripts/_partials/cart/controllers/cartMobileFullController.js';\nimport '../../../../../scripts/_partials/cart/controllers/cartPreorderController.js';\nexport default 'cart';",";\n\n(function (ng) {\n 'use strict';\n\n var cartService = function ($document, $q, $http, $translate, $window, cartConfig, domService, SweetAlert) {\n var service = this,\n isRequestProcess = false,\n isInitilaze = false,\n deferes = [],\n cart = {},\n callbacks = {},\n needInfoShow = false;\n\n service.getData = function (cache, queryParams) {\n var defer = $q.defer();\n\n if (cache == null) {\n cache = true;\n }\n\n if (isInitilaze === true && cache === true) {\n defer.resolve(cart);\n } else {\n if (isRequestProcess === true) {\n deferes.push(defer);\n } else {\n isRequestProcess = true;\n deferes.push(defer);\n $http.post('/cart/getCart', angular.extend({\n rnd: Math.random()\n }, queryParams || {})).then(function (response) {\n angular.extend(cart, response.data);\n isInitilaze = true;\n isRequestProcess = false;\n\n for (var i = deferes.length - 1; i >= 0; i--) {\n deferes[i].resolve(cart);\n }\n\n deferes.length = 0;\n });\n }\n }\n\n return defer.promise.then(function (result) {\n service.processCallback('get', result);\n return result;\n });\n };\n\n service.updateAmount = function (items, queryParams) {\n return $http.post('/cart/updateCart', angular.extend({\n items: items,\n rnd: Math.random()\n }, queryParams || {})).then(function (response) {\n service.processCallback('update', response.data);\n return service.getData(false, queryParams);\n });\n };\n\n service.removeItem = function (shoppingCartItemId, queryParams) {\n let ShoppingCartItem = cart.CartProducts.filter(item => {\n return item.ShoppingCartItemId == shoppingCartItemId;\n });\n $(document).trigger(\"cart.remove.preDelete\", ShoppingCartItem);\n return $http.post('/cart/removeFromCart', angular.extend({\n itemId: shoppingCartItemId\n }, queryParams || {})).then(function (response) {\n service.processCallback('remove', response.data);\n service.getData(false, queryParams);\n return response.data;\n });\n };\n\n service.addItem = function (offerId, productId, amount, attributesXml, payment, mode, lpId, lpEntityId, lpEntityType, lpBlockId, queryParams) {\n var params = angular.extend({\n offerId: offerId,\n productId: productId,\n amount: amount,\n attributesXml: attributesXml,\n payment: payment,\n mode: mode,\n lpId: lpId,\n lpEntityId: lpEntityId,\n lpEntityType: lpEntityType,\n lpBlockId: lpBlockId\n }, queryParams || {});\n if (params.offerId == null && params.offerIds == null) return;\n return $http.post('/cart/addToCart', params).then(function (response) {\n var result = response.data,\n defer,\n promise;\n\n if (response.data.status !== 'redirect') {\n return service.getData(false, params).then(function () {\n service.processCallback('add', [result]);\n return [result];\n });\n } else {\n defer = $q.defer();\n promise = defer.promise;\n defer.resolve([result]);\n return promise;\n }\n });\n };\n\n service.addItems = function (items, queryParams) {\n if (items == null || items.length == 0) return;\n return $http.post('/cart/addCartItems', angular.extend({\n items: items\n }, queryParams || {})).then(function (response) {\n var result = response.data;\n result.addedCount = items.length;\n\n if (result.status === 'success') {\n return service.getData(false, queryParams).then(function () {\n service.processCallback('add', result);\n return [result];\n });\n }\n });\n };\n\n service.clear = function (queryParams) {\n return $http.post('/Cart/ClearCart', queryParams || {}).then(function () {\n service.processCallback('clear');\n return service.getData(false, queryParams);\n });\n };\n\n service.addCallback = function (name, func, targetName) {\n callbacks[name] = callbacks[name] || [];\n\n if (func == null) {\n throw Error('Callback for cart equal null');\n }\n\n ;\n callbacks[name].push({\n callback: func,\n targetName: targetName || null\n });\n };\n\n service.processCallback = function (name, params, targetName) {\n if (callbacks[name] == null) {\n return;\n }\n\n ;\n\n for (var i = callbacks[name].length - 1; i >= 0; i--) {\n if (targetName != null && callbacks[name][i].targetName === targetName) {\n callbacks[name][i].callback(cart, params);\n } else {\n callbacks[name][i].callback(cart, params);\n }\n }\n\n ;\n };\n\n service.removeCallback = function (name, targetName) {\n var arrayCallbacksByName = callbacks[name],\n index;\n\n if (arrayCallbacksByName == null) {\n return;\n }\n\n if (targetName != null) {\n for (var i = 0; i < arrayCallbacksByName.length; i++) {\n if (arrayCallbacksByName[i].targetName === targetName) {\n arrayCallbacksByName.splice(i, 1);\n i--;\n }\n }\n } else {\n index = callbacks.indexOf(callbacks[name]);\n\n if (index !== -1) {\n callbacks.splice(index, 1);\n }\n }\n };\n\n service.setStateInfo = function (needShow) {\n needInfoShow = needShow;\n };\n\n let timerShowSuccess;\n\n service.showInfoWithDebounce = function (data) {\n if (needInfoShow === true) {\n if (timerShowSuccess != null) {\n clearTimeout(timerShowSuccess);\n }\n\n timerShowSuccess = setTimeout(function () {\n service.showInfo(data);\n }, 700);\n }\n };\n\n service.showInfo = function () {\n $document[0].addEventListener('click', clickout);\n var html = 'В корзине ' + cart.Count + ' на сумму ' + cart.TotalPrice + '
' + '
' + $translate.instant('Js.Cart.Cart') + '
' + (cart.ShowConfirmButtons ? '
' + $translate.instant('Js.Cart.Checkout') + '
' : '') + '
';\n SweetAlert.info(null, {\n title: null,\n html: html,\n position: 'top',\n grow: 'row',\n icon: null,\n padding: '8px 0',\n customClass: {\n container: 'mobile-cart-popover-container',\n popup: 'mobile-cart-popover cs-br-1'\n },\n buttonsStyling: false,\n showCloseButton: false,\n showCancelButton: false,\n showConfirmButton: false,\n timer: 5000,\n toast: true\n }).then(function (result) {\n $document[0].removeEventListener('click', clickout);\n\n if (result.value === true) {\n $window.location.assign('./cart');\n }\n }).catch(function (error) {\n throw new Error(error);\n });\n };\n\n function clickout(e) {\n if (domService.closest(e.target, '.swal2-popup') == null) {\n Sweetalert2.close();\n }\n }\n };\n\n angular.module('cart').service('cartService', cartService);\n cartService.$inject = ['$document', '$q', '$http', '$translate', '$window', 'cartConfig', 'domService', 'SweetAlert'];\n})(angular);","ProductViewItemCtrl.$inject = [\"$document\", \"$q\", \"$timeout\", \"productViewService\", \"$translate\", \"$scope\", \"$parse\", \"urlHelper\"];\n\n/*@ngInject*/\nfunction ProductViewItemCtrl($document, $q, $timeout, productViewService, $translate, $scope, $parse, urlHelper) {\n var ctrl = this,\n controls = {},\n needCarouselUpdate = false,\n requestGetPhotosInPending = false,\n isPhotosStorageMutation = false,\n photosStorage;\n var isMobile = $document[0].documentElement.classList.contains('mobile-version');\n\n ctrl.$onInit = function () {\n ctrl.photosVisible = false;\n ctrl.photos = [];\n ctrl.picture = {};\n ctrl.promisesGetPhotos = [];\n ctrl.colorSelected = null;\n };\n\n ctrl.SetDataLayer = function (products) {\n if (location.pathname.indexOf(\"productlist\") != -1) {\n ctrl.SetDataLayerMainPage(products.map(x => {\n return {\n id: x.ArtNo,\n name: x.Name,\n creative: ctrl.GetNamePage()\n };\n }));\n } else {\n $(document).trigger(\"product.impression\", JSON.stringify(products));\n }\n };\n\n ctrl.SetDataLayerItem = function (ArtNo, Name, BasePrice, CategoryName) {\n if (location.pathname.indexOf(\"productlist\") != -1) {\n ctrl.SetDataLayerItemPromotion({\n id: ArtNo,\n name: Name,\n creative: ctrl.GetNamePage()\n });\n } else {\n $(document).trigger(\"product.click\", {\n id: ArtNo,\n Name,\n BasePrice,\n CategoryName\n });\n }\n };\n\n ctrl.SetDataLayerMainPage = function (items) {\n $(document).trigger(\"promotion_impressions\", JSON.stringify(items));\n };\n\n ctrl.SetDataLayerItemPromotion = function (item) {\n $(document).trigger(\"promotion_сlicks\", item);\n };\n\n ctrl.GetNamePage = () => {\n return location.pathname.indexOf(\"productlist/new\") != -1 ? 'Новинки' : location.pathname.indexOf(\"productlist/best\") != -1 ? 'Хиты продаж' : \"\";\n };\n\n ctrl.getOffersProduct = function (productId) {\n return productViewService.getOfferId(productId).then(function (result) {\n if (result != null) {\n return result.Offers;\n }\n });\n };\n\n ctrl.getPhotos = function (productId) {\n var defer = $q.defer(),\n promise;\n\n if (requestGetPhotosInPending === false && (photosStorage == null || needCarouselUpdate === true)) {\n requestGetPhotosInPending = true;\n promise = productViewService.getPhotos(ctrl.productId || productId).then(function (photos) {\n isPhotosStorageMutation = true;\n\n for (var i = 0, len = ctrl.promisesGetPhotos.length; i < len; i++) {\n ctrl.promisesGetPhotos[i].resolve(photos);\n }\n\n ctrl.promisesGetPhotos.length = 0;\n requestGetPhotosInPending = false;\n return photosStorage = photos;\n });\n } else if (requestGetPhotosInPending === true) {\n promise = defer.promise;\n ctrl.promisesGetPhotos.push(defer);\n } else {\n promise = defer.promise;\n defer.resolve(photosStorage);\n }\n\n ctrl.gotPhotos = true;\n return promise;\n };\n\n ctrl.numberals = function (num) {\n if (num <= 0) return ctrl.textNumberals = num + ' ' + $translate.instant('Js.ProductView.Photos0');\n num = num % 100;\n var nums = num % 10;\n if (num > 10 && num < 20) return ctrl.textNumberals = num + ' ' + $translate.instant('Js.ProductView.Photos5');\n if (nums > 1 && nums < 5) return ctrl.textNumberals = num + ' ' + $translate.instant('Js.ProductView.Photos2');\n return nums === 1 ? ctrl.textNumberals = num + ' ' + $translate.instant('Js.ProductView.Photos1') : ctrl.textNumberals = num + ' ' + $translate.instant('Js.ProductView.Photos5');\n };\n\n ctrl.fill = function (photos) {\n if (ctrl.getControl('colorsViewer') != null) {\n ctrl.photos = ctrl.filterPhotos(photosStorage == null && isPhotosStorageMutation === false ? ctrl.getPhotos() : photos, ctrl.getControl('colorsViewer').colorSelected.ColorId, ctrl.onlyPhotoWithColor);\n } else {\n ctrl.photos = photos;\n }\n\n if (ctrl.photos.length === 0) {\n ctrl.photos.length = 0;\n ctrl.photos.push.apply(ctrl.photos, ctrl.getMainPhoto(photos));\n }\n\n if (ctrl.maxPhotoView != null) {\n ctrl.photos = ctrl.photos.slice(0, ctrl.maxPhotoView);\n }\n\n ctrl.numberals(ctrl.photos.length);\n return photos;\n };\n\n ctrl.process = function (productId) {\n return ctrl.getPhotos(productId).then(function (photos) {\n ctrl.fill(photos);\n $timeout(function () {\n ctrl.carouselInit = true;\n\n if (needCarouselUpdate === true && ctrl.getControl('photosCarousel') != null && ctrl.getControl('photosCarousel').carousel != null) {\n ctrl.getControl('photosCarousel').carousel.update();\n needCarouselUpdate = false;\n }\n\n ctrl.scrollToStartImages();\n }, 0);\n return photos;\n });\n };\n\n ctrl.clearPhotos = function () {\n photosStorage = null;\n needCarouselUpdate = true;\n };\n\n ctrl.enter = function () {\n if (ctrl.photosVisible === true) {\n return;\n }\n\n ctrl.photosVisible = true;\n ctrl.process();\n };\n\n ctrl.leave = function () {\n ctrl.photosVisible = false;\n ctrl.carouselInit = false;\n };\n\n ctrl.changePhoto = function (photo) {\n ctrl.picture = photo;\n };\n\n ctrl.initColors = function (colorsViewer) {\n ctrl.addControl('colorsViewer', colorsViewer);\n\n if (colorsViewer.changeStartSelectedColor != null) {\n setTimeout(function () {\n colorsViewer.selectColorById(colorsViewer.changeStartSelectedColor);\n }, 500);\n }\n };\n\n ctrl.getSelectedColorId = function () {\n var colorsViewer = ctrl.getControl('colorsViewer'),\n colorId;\n\n if (colorsViewer != null && colorsViewer.colorSelected != null && colorsViewer.getDirtyState() === true) {\n colorId = colorsViewer.colorSelected.ColorId;\n }\n\n return colorId;\n };\n\n ctrl.scrollToStartImages = function () {\n let photosScrollContent = ctrl.getControl('productViewScrollPhotos');\n\n if (photosScrollContent != null) {\n $timeout(() => photosScrollContent.scrollToStart(), 100);\n }\n };\n\n ctrl.initColorsCarousel = function (carousel) {\n ctrl.addControl('colorsViewerCarousel', carousel);\n };\n\n ctrl.changeColor = function (color) {\n ctrl.getOffersProduct(ctrl.productId).then(function (result) {\n ctrl.productOffers = result;\n\n if (ctrl.productOffers != null && ctrl.productOffers.length > 0) {\n ctrl.selectedProductOffer = ctrl.productOffers.filter(function (offer) {\n return offer.Color.ColorId === color.ColorId;\n });\n\n if (ctrl.selectedProductOffer != null && ctrl.selectedProductOffer.length > 0) {\n var o = null;\n\n for (var i = 0; i < ctrl.selectedProductOffer.length; i++) {\n if (ctrl.selectedProductOffer[i].Amount > 0) {\n o = ctrl.selectedProductOffer[i];\n break;\n }\n }\n\n ctrl.offer = o == null ? ctrl.selectedProductOffer[0] : o;\n }\n }\n\n var defaultPhoto;\n\n if (photosStorage == null && isPhotosStorageMutation === false) {\n ctrl.getPhotos().then(function (result) {\n ctrl.photos = ctrl.filterPhotos(result, color.ColorId, ctrl.getControl('colorsViewer') != null ? ctrl.onlyPhotoWithColor : false);\n defaultPhoto = ctrl.getMainPhoto(ctrl.photos); //if (ctrl.photos.length === 0) {\n // ctrl.photos = defaultPhoto;\n //}\n //if (ctrl.maxPhotoView != null) {\n // ctrl.photos = ctrl.photos.slice(0, ctrl.maxPhotoView);\n //}\n\n ctrl.setColor(defaultPhoto);\n });\n } else {\n defaultPhoto = ctrl.getMainPhoto(photosStorage != null && photosStorage.length !== 0 ? photosStorage : ctrl.photos);\n ctrl.photos = ctrl.filterPhotos(photosStorage, color.ColorId, ctrl.getControl('colorsViewer') != null ? ctrl.onlyPhotoWithColor : false);\n ctrl.setColor(defaultPhoto);\n }\n\n if (ctrl.onChangeColor != null) {\n $parse(ctrl.onChangeColor)($scope);\n }\n\n if (ctrl.photos.length === 0) {\n ctrl.photos.length = 0;\n ctrl.photos.push.apply(ctrl.photos, defaultPhoto); //ctrl.photos = ctrl.photos.concat(defaultPhoto);\n }\n\n if (ctrl.maxPhotoView != null) {\n ctrl.photos = ctrl.photos.slice(0, ctrl.maxPhotoView);\n }\n\n ctrl.scrollToStartImages();\n }).catch(function (error) {\n console.error(error);\n });\n };\n\n ctrl.setColor = function (defaultPhoto) {\n ctrl.picture = ctrl.photos.length === 0 && defaultPhoto != null ? defaultPhoto[0] : ctrl.photos[0];\n ctrl.numberals(ctrl.photos.length);\n var photosCarousel = ctrl.getControl('photosCarousel');\n\n if (photosCarousel != null && photosCarousel.carousel != null) {\n $timeout(function () {\n photosCarousel.carousel.options.indexActive = 0;\n photosCarousel.carousel.update();\n });\n }\n\n if (ctrl.photoViewer != null) {\n ctrl.photoViewer.reinit();\n }\n };\n\n ctrl.addControl = function (name, scope) {\n controls[name] = scope;\n };\n\n ctrl.getControl = function (name) {\n return controls[name];\n };\n\n ctrl.filterPhotos = function (photos, colorId, onlyColorPhoto) {\n return photos.filter(function (item) {\n if (onlyColorPhoto) {\n return item.ColorID === colorId;\n }\n\n return item.ColorID === colorId || item.ColorID == null;\n });\n };\n\n ctrl.getUrl = function (url) {\n var result = url,\n colorId = ctrl.getSelectedColorId();\n\n if (colorId != null) {\n result = urlHelper.updateQueryStringParameter(result, 'color', colorId);\n }\n\n return result;\n };\n\n ctrl.addPhotoViewer = function (photoViewer) {\n ctrl.photoViewer = photoViewer;\n };\n\n ctrl.getPictureByViewMode = function (photosItem, lazyLoadMode, sourceOnlyParameters) {\n if (lazyLoadMode === 'Carousel' && ctrl.isCarouselImgVisible !== true || lazyLoadMode === 'Default' && ctrl.isImgVisible !== true) {\n return null;\n }\n\n const picture = sourceOnlyParameters !== true && ctrl.picture != null && Object.keys(ctrl.picture).length > 0 ? ctrl.picture : photosItem[0];\n let size;\n\n if (ctrl.productViewMode != null) {\n size = ['single'].includes(ctrl.productViewMode.viewName) ? 'PathBig' : ctrl.productViewMode.isMobile ? 'PathMiddle' : 'PathSmall';\n } else {\n size = isMobile ? 'PathMiddle' : 'PathSmall';\n }\n\n return ctrl.getPictureBySize(size, picture);\n };\n\n ctrl.lazyLoadImgInCarousel = function () {\n ctrl.isCarouselImgVisible = true;\n };\n\n ctrl.lazyLoadImg = function () {\n ctrl.isImgVisible = true;\n };\n\n ctrl.getPictureBySize = function (size, photos) {\n return photos[size];\n };\n\n ctrl.getMainPhoto = function (photos) {\n return photos.filter(function (photo) {\n return photo.Main === true;\n });\n };\n}\n\n;\nexport default ProductViewItemCtrl;","import carouselModule from '../../../../../scripts/_common/carousel/carousel.module.js';\nimport ratingModule from '../../../../../scripts/_common/rating/rating.module.js';\nimport quickviewModule from '../../../../../scripts/_partials/quickview/quickview.module.js';\nimport colorsViewerModule from '../../../../../scripts/_partials/colors-viewer/colorsViewer.module.js';\nimport productsCarouselModule from '../../../../../scripts/_partials/products-carousel/productsCarousel.module.js';\nimport photoViewListModule from '../../../../../scripts/_partials/photo-view-list/photoViewList.module.js';\nimport '../../../../../scripts/_partials/product-view/styles/product-view.scss';\nimport productViewService from '../../../../../scripts/_partials/product-view/services/productViewService.js';\nimport { productViewItemDirective, productViewCarouselPhotosDirective, productViewChangeModeDirective, productViewModeDirective } from '../../../../../scripts/_partials/product-view/directives/productViewDirectives.js';\nimport ProductViewCarouselPhotosCtrl from '../../../../../scripts/_partials/product-view/controllers/productViewCarouselPhotosController.js';\nimport ProductViewChangeModeCtrl from '../../../../../scripts/_partials/product-view/controllers/productViewChangeModeController.js';\nimport ProductViewItemCtrl from './controllers/productViewItemController.js';\nimport ProductViewModeCtrl from '../../../../../scripts/_partials/product-view/controllers/productViewModeController.js';\nconst moduleName = 'productView';\nangular.module(moduleName, [ratingModule, quickviewModule, colorsViewerModule, productsCarouselModule, photoViewListModule, carouselModule]).constant('viewPrefix', {\n desktop: '',\n mobile: 'mobile-',\n mobileModern: 'mobile-modern-'\n}).constant('viewList', {\n desktop: ['tile', 'list', 'table'],\n mobile: ['tile', 'list', 'single'],\n mobileModern: ['tile', 'list', 'single']\n}).service('productViewService', productViewService).directive('productViewItem', productViewItemDirective).directive('productViewCarouselPhotos', productViewCarouselPhotosDirective).directive('productViewChangeMode', productViewChangeModeDirective).directive('productViewMode', productViewModeDirective).controller('ProductViewCarouselPhotosCtrl', ProductViewCarouselPhotosCtrl).controller('ProductViewChangeModeCtrl', ProductViewChangeModeCtrl).controller('ProductViewItemCtrl', ProductViewItemCtrl).controller('ProductViewModeCtrl', ProductViewModeCtrl);\nexport default moduleName;","import flatpickrModule from '../../../../vendors/flatpickr/flatpickr.module.js';\nimport '../../../../styles/partials/bonus-card.scss';\nimport '../../../../styles/partials/order-history-products.scss';\nimport '../../../../styles/views/checkout.scss';\nimport bonusModule from '../../../../scripts/_partials/bonus/bonus.module.js';\nimport addressModule from '../../../../scripts/_partials/address/address.module.js';\nimport buyOneClickModule from '../../../../scripts/_partials/buy-one-click/buyOneClick.module.js';\nimport paymentModule from '../../../../scripts/_partials/payment/payment.module.js';\nimport shippingModule from '../../../../scripts/_partials/shipping/shipping.module.js';\nimport cardsModule from '../../../../scripts/_partials/cards/cards.module.js';\nimport yandexMaps from '../../../../scripts/_common/yandexMaps/yandexMaps.module.js';\nimport authModule from '../../../../scripts/auth/auth.module.js';\nimport loginOpenIdModule from '../../../../scripts/_partials/login-open-id/loginOpenId.module.js';\nimport CheckOutCtrl from './controllers/checkoutController.js';\nimport checkoutService from '../../../../scripts/checkout/services/checkoutService.js';\nconst moduleName = 'checkout';\nangular.module(moduleName, [flatpickrModule, bonusModule, addressModule, buyOneClickModule, paymentModule, shippingModule, cardsModule, yandexMaps, authModule]).service('checkoutService', checkoutService).controller('CheckOutCtrl', CheckOutCtrl);\nexport default moduleName;","CheckOutCtrl.$inject = [\"$http\", \"$q\", \"$sce\", \"$rootScope\", \"$timeout\", \"$window\", \"zoneService\", \"checkoutService\"];\n\n/* @ngInject */\nfunction CheckOutCtrl($http, $q, $sce, $rootScope, $timeout, $window, zoneService, checkoutService) {\n var ctrl = this,\n relationship,\n saveContactTimer,\n saveContactHttpTimer,\n processContactTimer,\n saveCustomerTimer;\n\n ctrl.$onInit = function () {\n //ctrl.address = {};\n ctrl.Payment = {};\n ctrl.Shipping = {};\n ctrl.Cart = {};\n ctrl.isShowCouponInput = false;\n ctrl.newCustomer = {};\n ctrl.contact = {};\n ctrl.shippingLoading = true;\n ctrl.paymentLoading = true;\n ctrl.SetDataLayerOrder(1);\n };\n\n relationship = {\n 'address': function () {\n return ctrl.fetchShipping().then(ctrl.fetchPayment).then(ctrl.fetchCart).then(function (data) {\n checkoutService.processCallbacks('address');\n return data;\n });\n },\n 'shipping': function () {\n return ctrl.fetchPayment().then(ctrl.fetchCart).then(function (data) {\n checkoutService.processCallbacks('shipping');\n return data;\n });\n },\n 'payment': function () {\n return ctrl.fetchShipping().then(ctrl.fetchCart).then(function (data) {\n checkoutService.processCallbacks('payment');\n return data;\n });\n },\n 'bonus': function () {\n return ctrl.fetchShipping().then(ctrl.fetchPayment).then(ctrl.fetchCart).then(function (data) {\n checkoutService.processCallbacks('bonus');\n return data;\n });\n },\n 'coupon': function () {\n return ctrl.fetchShipping().then(ctrl.fetchPayment).then(ctrl.fetchCart).then(function (data) {\n checkoutService.processCallbacks('coupon');\n return data;\n });\n }\n };\n\n ctrl.startShippingProgress = function () {\n ctrl.shippingLoading = true;\n };\n\n ctrl.stopShippingProgress = function () {\n ctrl.shippingLoading = false;\n };\n\n ctrl.startPaymentProgress = function () {\n ctrl.paymentLoading = true;\n };\n\n ctrl.stopPaymentProgress = function () {\n ctrl.paymentLoading = false;\n };\n\n ctrl.getAddress = function (contactsExits, useZone) {\n if (contactsExits === true) {\n ctrl.changeListAddress = function (address) {\n ctrl.SetDataLayerOrder(2);\n ctrl.contact = address;\n ctrl.startShippingProgress();\n ctrl.startPaymentProgress();\n ctrl.saveContact().then(function () {\n ctrl.stopShippingProgress();\n ctrl.stopPaymentProgress();\n });\n };\n } else {\n zoneService.addCallback('set', function (data) {\n ctrl.contact.Country = data.CountryName;\n ctrl.contact.City = data.City;\n ctrl.contact.Region = data.Region;\n ctrl.contact.Zip = data.Zip;\n ctrl.startShippingProgress();\n ctrl.startPaymentProgress();\n ctrl.processCity(data, 0).then(function () {\n ctrl.stopShippingProgress();\n ctrl.stopPaymentProgress();\n });\n });\n\n if (useZone) {\n zoneService.getCurrentZone().then(function (data) {\n ctrl.contact.Country = data.CountryName;\n ctrl.contact.City = data.City;\n ctrl.contact.Region = data.Region;\n ctrl.contact.Zip = data.Zip;\n ctrl.processCity(data, 0).then(function () {\n ctrl.stopShippingProgress();\n ctrl.stopPaymentProgress();\n });\n });\n } else {\n ctrl.startShippingProgress();\n ctrl.startPaymentProgress();\n ctrl.callRelationship('address').finally(function () {\n ctrl.stopShippingProgress();\n ctrl.stopPaymentProgress();\n });\n }\n }\n };\n\n ctrl.changeShipping = function (shipping) {\n ctrl.SetDataLayerOrder(3, shipping.Name);\n ctrl.startShippingProgress();\n ctrl.startPaymentProgress();\n\n if (ctrl.ngSelectShipping !== shipping) {\n ctrl.ngSelectShipping = shipping;\n }\n\n checkoutService.saveShipping(shipping).then(function (response) {\n ctrl.stopShippingProgress();\n ctrl.stopPaymentProgress();\n return ctrl.ngSelectShipping = angular.extend(ctrl.ngSelectShipping, response.selectShipping);\n }).then(ctrl.callRelationship.bind(ctrl, 'shipping'));\n };\n\n ctrl.changePayment = function (payment) {\n ctrl.SetDataLayerOrder(4, payment.Name);\n ctrl.startPaymentProgress();\n\n if (ctrl.ngSelectPayment !== payment) {\n ctrl.ngSelectPayment = payment;\n }\n\n checkoutService.savePayment(payment).then(ctrl.callRelationship.bind(ctrl, 'payment')).then(function () {\n ctrl.stopPaymentProgress();\n });\n };\n\n ctrl.fetchShipping = function () {\n return checkoutService.getShipping().then(function (response) {\n ctrl.ngSelectShipping = ctrl.getSelectedItem(response.option, response.selectShipping);\n\n for (var i = 0, len = response.option.length; i < len; i++) {\n if (response.option[i].ShippingPoints != null) {\n response.option[i].SelectedPoint = response.option[i].SelectedPoint || response.option[i].ShippingPoints[0];\n }\n }\n\n if (ctrl.ngSelectShipping == null) {\n return ctrl.Shipping = null;\n }\n\n return ctrl.Shipping = response;\n });\n };\n\n ctrl.fetchPayment = function () {\n return checkoutService.getPayment().then(function (response) {\n ctrl.ngSelectPayment = ctrl.getSelectedItem(response.option, response.selectPayment);\n return ctrl.Payment = response;\n });\n };\n\n ctrl.fetchCart = function () {\n return checkoutService.getCheckoutCart().then(function (response) {\n ctrl.showCart = true;\n ctrl.isShowCouponInput = response.Certificate == null && response.Coupon == null;\n\n if (ctrl.Cart.Discount != null) {\n ctrl.Cart.Discount.Key = $sce.trustAsHtml(ctrl.Cart.Discount.Key);\n }\n\n if (ctrl.Cart.Coupon != null) {\n ctrl.Cart.Coupon.Key = $sce.trustAsHtml(ctrl.Cart.Coupon.Key);\n }\n\n return ctrl.Cart = response;\n });\n };\n\n ctrl.getSelectedItem = function (array, selectedItem) {\n var item;\n\n for (var i = array.length - 1; i >= 0; i--) {\n if (array[i].Id === selectedItem.Id) {\n //selectedItem имеет заполненные поля какие опции выбраны, поэтому объединяем\n array[i] = angular.extend(array[i], selectedItem);\n item = array[i];\n break;\n }\n }\n\n return item;\n };\n\n ctrl.autorizeBonus = function (cardNumber) {\n return checkoutService.autorizeBonus(cardNumber).then(function () {\n return ctrl.callRelationship('bonus');\n });\n };\n\n ctrl.changeBonus = function (isApply) {\n return checkoutService.toggleBonus(isApply).then(ctrl.callRelationship.bind(ctrl, 'bonus'));\n };\n\n ctrl.applyCoupon = function () {\n ctrl.isShowCoupon = false;\n return checkoutService.couponApplied().then(ctrl.callRelationship.bind(ctrl, 'coupon'));\n };\n\n ctrl.deleteCard = function () {\n ctrl.isShowCoupon = true;\n return checkoutService.couponApplied().then(ctrl.callRelationship.bind(ctrl, 'coupon'));\n };\n\n ctrl.commentSave = function (message) {\n checkoutService.commentSave(message);\n };\n\n ctrl.saveNewCustomer = function (field, timeout) {\n ctrl.SetDataLayerOrder(2, field);\n\n if (saveCustomerTimer != null) {\n $timeout.cancel(saveCustomerTimer);\n }\n\n return saveCustomerTimer = $timeout(function () {\n if (field === 'email') {\n $(document).trigger('customer.email', ctrl.newCustomer);\n }\n\n checkoutService.saveNewCustomer(ctrl.newCustomer).then(ctrl.fetchCart);\n }, timeout != null ? timeout : 700);\n };\n\n ctrl.saveWantBonusCard = function () {\n checkoutService.saveWantBonusCard(ctrl.wantBonusCard).then(ctrl.fetchCart);\n ;\n };\n\n ctrl.saveContact = function (stopUpdateShipping, timeout) {\n if (saveContactTimer != null) {\n $timeout.cancel(saveContactTimer);\n }\n\n return saveContactTimer = $timeout(function () {\n var currentContact = ctrl.contact.length > 1 ? ctrl.contact[0] : ctrl.contact;\n\n if (saveContactHttpTimer != null) {\n saveContactHttpTimer.resolve();\n }\n\n saveContactHttpTimer = $q.defer();\n return checkoutService.saveContact(currentContact, {\n timeout: saveContactHttpTimer.promise\n }).then(function (data) {\n saveContactHttpTimer = null;\n\n if (stopUpdateShipping == null || stopUpdateShipping === false) {\n ctrl.startShippingProgress();\n ctrl.startPaymentProgress();\n return ctrl.callRelationship('address', data).finally(function () {\n ctrl.stopShippingProgress();\n ctrl.stopPaymentProgress();\n });\n } else {\n return $q.resolve(data);\n }\n });\n }, timeout != null ? timeout : 700);\n };\n\n ctrl.processCity = function (zone, timeout) {\n if (processContactTimer != null) {\n $timeout.cancel(processContactTimer);\n }\n\n return processContactTimer = $timeout(function () {\n var currentContact = ctrl.contact.length > 1 ? ctrl.contact[0] : ctrl.contact;\n\n if (zone != null) {\n currentContact.District = zone.District;\n currentContact.Region = zone.Region;\n currentContact.Country = zone.CountryName || zone.Country;\n currentContact.Zip = zone.Zip;\n }\n\n ;\n currentContact.byCity = zone == null;\n checkoutService.processContact(currentContact).then(function (data) {\n if (data.result === true) {\n currentContact.District = data.obj.District;\n currentContact.Region = data.obj.Region;\n currentContact.Country = data.obj.Country;\n currentContact.Zip = data.obj.Zip;\n }\n\n ctrl.saveContact(null, 0);\n });\n }, timeout != null ? timeout : 700);\n };\n\n ctrl.processAddress = function (data, timeout) {\n if (processContactTimer != null) {\n $timeout.cancel(processContactTimer);\n }\n\n return processContactTimer = $timeout(function () {\n var currentContact = ctrl.contact.length > 1 ? ctrl.contact[0] : ctrl.contact;\n currentContact.byCity = false;\n\n if (data != null && data.Zip) {\n currentContact.Zip = data.Zip;\n ctrl.saveContact(null, 0);\n } else {\n checkoutService.processContact(currentContact).then(function (data) {\n if (data.result === true && data.obj.Zip) {\n currentContact.Zip = data.obj.Zip;\n }\n\n ctrl.saveContact(null, 0);\n });\n }\n }, timeout != null ? timeout : 700);\n };\n\n ctrl.submitOrder = function (event) {\n event.preventDefault();\n ctrl.confirmInProgress = true;\n checkoutService.saveContact(ctrl.contact).then(function () {\n if (ctrl.checkoutNewCustomerForm != null) {\n checkoutService.saveNewCustomer(ctrl.newCustomer);\n }\n\n return checkoutService.saveShipping(ctrl.ngSelectShipping);\n }).then(function () {\n return checkoutService.savePayment(ctrl.ngSelectPayment);\n }).then(function () {\n return checkoutService.commentSave(ctrl.comment);\n }).then(function () {\n //todo: remove this code\n document.querySelector('.js-checkout-form').submit();\n }).catch(function () {\n ctrl.confirmInProgress = false;\n });\n };\n\n ctrl.submitMobile = function () {\n if (ctrl.process) {\n return;\n }\n\n ctrl.process = true;\n $http.post('mobile/checkoutmobile/confirm', {\n name: ctrl.name,\n phone: ctrl.phone,\n email: ctrl.email,\n message: ctrl.message,\n rnd: Math.random()\n }).then(function (response) {\n var data = response.data;\n ctrl.responseOrderNo = data.orderNumber;\n\n if (data.error == null || data.error == \"\") {\n $(document).trigger(\"order_from_mobile\");\n setTimeout(function () {\n if (data.redirectToUrl) {\n window.location = data.url;\n } else if (data.code == null || data.orderNumber == null) {\n window.location = data.url;\n } else {\n window.location = window.location.pathname.replace('/index', '') + '/success?code=' + (data.code != null ? data.code : \"\");\n }\n\n ctrl.process = false;\n $rootScope.$apply();\n }, 2000);\n } else {\n ctrl.process = false;\n console.log(\"Error \" + data.error);\n\n if (data.error == 'redirectToCart') {\n window.location = data.url;\n } else {\n alert(data.error);\n }\n }\n }, function () {\n console.log(\"Error\");\n ctrl.process = false;\n });\n };\n\n ctrl.changeTempEmail = function (email) {\n $http.post(\"myaccount/updatecustomeremail\", {\n email: email\n }).then(function (response) {\n if (response.data === true) {\n ctrl.modalWrongNewEmail = false;\n window.location.reload(true);\n } else {\n ctrl.modalWrongNewEmail = true;\n }\n });\n };\n\n ctrl.callRelationship = function (name, data) {\n return relationship[name](data).then(function (data) {\n checkoutService.processCallbacks('relationshipEnd');\n return data;\n });\n };\n\n ctrl.buyOneClickSuccessFn = function (result) {\n if (result.doGo === true && result.url != null) {\n $window.location.assign(result.url);\n }\n };\n\n ctrl.SetDataLayerOrder = (numStep, text) => {\n $(document).trigger(\"checkout.step\", {\n numStep,\n text\n });\n };\n}\n\n;\nexport default CheckOutCtrl;","/*@ngInject*/\nvar ProductCustomCtrl = function ($q, $scope, $sce, $timeout, productService, modalService, toaster, $translate, $window, urlHelper) {\n var ctrl = this;\n\n ctrl.$onInit = function () {\n productService.addToStorage(ctrl);\n };\n\n ctrl.productView = \"photo\";\n ctrl.Price = {};\n ctrl.picture = {};\n ctrl.dirty === false;\n ctrl.offerSelected = {};\n ctrl.carouselHidden = true;\n\n ctrl.$onDestroy = function () {\n modalService.destroy('modalProductVideo');\n };\n\n ctrl.getPrice = function (offerId, customOptions) {\n return productService.getPrice(ctrl.offerSelected.OfferId, ctrl.customOptions != null ? ctrl.customOptions.xml : null, ctrl.lpBlockId, ctrl.offerSelected.AmountBuy).then(function (price) {\n ctrl.Price = price;\n ctrl.Price.PriceString = $sce.trustAsHtml(ctrl.Price.PriceString);\n ctrl.Price.Bonuses = $sce.trustAsHtml(ctrl.Price.Bonuses);\n return ctrl.Price;\n });\n };\n\n ctrl.getFirstPaymentPrice = function (price, discount, discountAmount) {\n if (price == null || discount == null || discountAmount == null) {\n return null;\n }\n\n return productService.getFirstPaymentPrice(price, discount, discountAmount).then(function (firstPaymentPrice) {\n ctrl.FirstPaymentPrice = $sce.trustAsHtml(firstPaymentPrice);\n ctrl.visibilityFirstPaymentButton = firstPaymentPrice != null && firstPaymentPrice.length > 0;\n });\n };\n\n ctrl.refreshPrice = function () {\n var defer = $q.defer();\n ctrl.getPrice(ctrl.offerSelected.OfferId, ctrl.customOptions != null ? ctrl.customOptions.xml : null, ctrl.offerSelected.AmountBuy).then(function (price) {\n return ctrl.getFirstPaymentPrice(price.PriceOldNumber != null && price.PriceOldNumber != 0 ? price.PriceOldNumber : price.PriceNumber, ctrl.discount, ctrl.discountAmount);\n }).then(function () {\n if (ctrl.shippingVariants != null) {\n ctrl.shippingVariants.update().then(function (data) {\n defer.resolve(data);\n return data;\n });\n } else {\n defer.resolve();\n }\n\n productService.processCallback('refreshPrice');\n });\n return defer.promise;\n };\n\n ctrl.prepareOffers = function (data) {\n for (var i = 0, len = data.Offers.length; i < len; i++) {\n if (data.Offers[i].Available != null && angular.isString(data.Offers[i].Available) === true) {\n data.Offers[i].Available = $sce.trustAsHtml(data.Offers[i].Available);\n }\n }\n\n return data;\n };\n\n ctrl.loadDataCustom = productId => {\n $(document).trigger(\"load.product\", productId);\n };\n\n ctrl.SetDataLayer = function (products) {\n if (location.pathname.indexOf(\"productlist\") != -1) {\n ctrl.SetDataLayerMainPage(products.map(x => {\n return {\n id: x.ArtNo,\n name: x.Name,\n creative: ctrl.GetNamePage()\n };\n }));\n } else {\n $(document).trigger(\"product.impression\", JSON.stringify(products));\n }\n };\n\n ctrl.SetDataLayerItem = function (ArtNo, Name, BasePrice, CategoryName) {\n if (location.pathname.indexOf(\"productlist\") != -1) {\n ctrl.SetDataLayerItemPromotion({\n id: ArtNo,\n name: Name,\n creative: ctrl.GetNamePage()\n });\n } else {\n $(document).trigger(\"product.click\", {\n id: ArtNo,\n Name,\n BasePrice,\n CategoryName\n });\n }\n };\n\n ctrl.SetDataLayerMainPage = function (items) {\n $(document).trigger(\"promotion_impressions\", JSON.stringify(items));\n };\n\n ctrl.SetDataLayerItemPromotion = function (item) {\n $(document).trigger(\"promotion_сlicks\", item);\n };\n\n ctrl.GetNamePage = () => {\n return location.pathname.indexOf(\"productlist/new\") != -1 ? 'Новинки' : location.pathname.indexOf(\"productlist/best\") != -1 ? 'Хиты продаж' : \"\";\n };\n\n ctrl.loadData = function (productId, colorId, sizeId, hiddenPrice, filterPhotosEnable, preventChangeLocation) {\n $(document).trigger(\"load.product\", productId);\n ctrl.productId = productId;\n ctrl.hiddenPrice = hiddenPrice;\n ctrl.filterPhotosEnable = filterPhotosEnable != null ? filterPhotosEnable : true;\n ctrl.preventChangeLocation = preventChangeLocation === true;\n return productService.getOffers(productId, colorId, sizeId).then(function (data) {\n if (data == null) {\n if (colorId == null) {\n ctrl.carouselHidden = false;\n }\n\n return null;\n }\n\n ctrl.data = ctrl.prepareOffers(data);\n ctrl.offerSelected = productService.findOfferSelected(data.Offers, data.StartOfferIdSelected);\n ctrl.dirty = true;\n ctrl.getColorsViewer().then(function () {\n if (ctrl.colorsViewer != null && ctrl.offerSelected.Color != null) {\n ctrl.setColorSelected(ctrl.colorsViewer, ctrl.offerSelected.Color != null ? ctrl.offerSelected.Color.ColorId : null);\n }\n\n return ctrl.data;\n }).then(ctrl.getSizesViewer).then(function () {\n if (ctrl.sizesViewer != null && ctrl.offerSelected.Size != null) {\n ctrl.setSizeSelected(ctrl.sizesViewer, ctrl.offerSelected.Size.SizeId);\n }\n\n return ctrl.data;\n }).then(ctrl.getCarousel).then(function () {\n if (ctrl.filterPhotosEnable === true && ctrl.carousel != null) {\n ctrl.filterPhotos(ctrl.offerSelected.Color != null ? ctrl.offerSelected.Color.ColorId : null, ctrl.carousel);\n }\n\n ctrl.carouselHidden = false;\n });\n return ctrl.data;\n });\n };\n\n ctrl.validate = function () {\n var result = true;\n\n if (ctrl.customOptions != null && ctrl.customOptions.customOptionsForm.$invalid === true) {\n ctrl.customOptions.customOptionsForm.$setSubmitted();\n ctrl.customOptions.customOptionsForm.$setDirty();\n toaster.pop('error', $translate.instant('Js.Product.InvalidCustomOptions'));\n result = false;\n }\n\n return result;\n }; //#region compare and wishlist\n\n\n ctrl.compareInit = function (compare) {\n ctrl.compare = compare;\n };\n\n ctrl.wishlistControlInit = function (wishlistControl) {\n ctrl.wishlistControl = wishlistControl;\n }; //#endregion\n //#region customOptions\n\n\n ctrl.customOptionsInitFn = function (customOptions) {\n ctrl.customOptions = customOptions;\n };\n\n ctrl.customOptionsChange = function () {\n if (!ctrl.hiddenPrice) {\n ctrl.refreshPrice();\n }\n }; //#endregion\n //#region colors\n\n\n ctrl.initColors = function (colorsViewer) {\n ctrl.colorsViewer = colorsViewer;\n\n if (ctrl.colorsViewerDefer != null) {\n ctrl.colorsViewerDefer.resolve();\n delete ctrl.colorsViewerDefer;\n }\n };\n\n ctrl.getColorsViewer = function () {\n var defer = $q.defer();\n\n if (ctrl.colorsExist === true && ctrl.colorsViewer == null) {\n ctrl.colorsViewerDefer = defer;\n } else {\n defer.resolve(ctrl.colorsViewer);\n }\n\n return defer.promise;\n };\n\n ctrl.changeColor = function (color) {\n ctrl.colorSelected = color;\n\n if (ctrl.changeSizeAndColorCallback != null) {\n ctrl.changeSizeAndColorCallback(ctrl.colorSelected);\n }\n\n if (ctrl.sizesViewer != null) {\n ctrl.sizeSelected = ctrl.getSizeAvalable(ctrl.data.Offers, ctrl.colorSelected.ColorId, ctrl.sizesViewer.sizes, ctrl.data.AllowPreOrder);\n\n if (ctrl.changeSizeAndColorCallback != null) {\n ctrl.changeSizeAndColorCallback(ctrl.sizeSelected);\n }\n\n if (ctrl.preventChangeLocation !== true) {\n urlHelper.setLocationQueryParams('size', ctrl.sizeSelected.SizeId, true);\n }\n }\n\n ctrl.offerSelected = productService.getOffer(ctrl.data.Offers, ctrl.colorSelected.ColorId, ctrl.sizeSelected != null && ctrl.sizeSelected.isDisabled === false ? ctrl.sizeSelected.SizeId : null, ctrl.data.AllowPreOrder);\n\n if (!ctrl.hiddenPrice) {\n ctrl.refreshPrice();\n }\n\n if (ctrl.compare != null) {\n ctrl.compare.checkStatus(ctrl.offerSelected.OfferId);\n }\n\n if (ctrl.wishlistControl != null) {\n ctrl.wishlistControl.checkStatus(ctrl.offerSelected.OfferId);\n }\n\n ctrl.setPreviewByColorId(ctrl.colorSelected.ColorId, ctrl.filterPhotosEnable, ctrl.carousel);\n\n if (ctrl.preventChangeLocation !== true) {\n urlHelper.setLocationQueryParams('color', ctrl.colorSelected.ColorId, true);\n }\n };\n\n ctrl.setColorSelected = function (colorsViewer, colorId) {\n for (var i = colorsViewer.colors.length - 1; i >= 0; i--) {\n if (colorsViewer.colors[i].ColorId === colorId) {\n ctrl.colorSelected = colorsViewer.colors[i];\n break;\n }\n }\n\n if (ctrl.changeSizeAndColorCallback != null) {\n ctrl.changeSizeAndColorCallback(ctrl.colorSelected);\n }\n }; //#endregion\n //#region sizes\n\n\n ctrl.initSizes = function (sizesViewer) {\n ctrl.sizesViewer = sizesViewer;\n\n if (ctrl.sizesViewerDefer != null) {\n ctrl.sizesViewerDefer.resolve();\n delete ctrl.sizesViewerDefer;\n }\n };\n\n ctrl.getSizesViewer = function () {\n var defer = $q.defer();\n\n if (ctrl.sizesExist === true && ctrl.sizesViewer == null) {\n ctrl.sizesViewerDefer = defer;\n } else {\n defer.resolve(ctrl.sizesViewer);\n }\n\n return defer.promise;\n };\n\n ctrl.changeSize = function (size) {\n ctrl.sizeSelected = size;\n\n if (ctrl.changeSizeAndColorCallback != null) {\n ctrl.changeSizeAndColorCallback(ctrl.sizeSelected);\n }\n\n ctrl.offerSelected = productService.getOffer(ctrl.data.Offers, ctrl.colorSelected != null ? ctrl.colorSelected.ColorId : 0, ctrl.sizeSelected.isDisabled ? null : ctrl.sizeSelected.SizeId, ctrl.data.AllowPreOrder);\n\n if (!ctrl.hiddenPrice) {\n ctrl.refreshPrice();\n }\n\n if (ctrl.compare != null) {\n ctrl.compare.checkStatus(ctrl.offerSelected.OfferId);\n }\n\n if (ctrl.wishlistControl != null) {\n ctrl.wishlistControl.checkStatus(ctrl.offerSelected.OfferId);\n }\n\n if (ctrl.preventChangeLocation !== true) {\n urlHelper.setLocationQueryParams('size', ctrl.sizeSelected.SizeId, true);\n }\n };\n\n ctrl.setSizeSelected = function (sizesViewer, sizeId) {\n for (var i = sizesViewer.sizes.length - 1; i >= 0; i--) {\n if (sizesViewer.sizes[i].SizeId === sizeId) {\n ctrl.sizeSelected = sizesViewer.sizes[i];\n break;\n }\n }\n\n ctrl.sizeSelected = ctrl.getSizeAvalable(ctrl.data.Offers, ctrl.colorSelected != null ? ctrl.colorSelected.ColorId : 0, ctrl.sizesViewer.sizes, ctrl.data.AllowPreOrder);\n\n if (ctrl.changeSizeAndColorCallback != null) {\n ctrl.changeSizeAndColorCallback(ctrl.sizeSelected);\n }\n };\n\n ctrl.getSizeAvalable = function (offers, colorId, sizes, allowPreorder) {\n var offerItem, sizeItem, sizeSelected, loopCheckStart;\n sizes.forEach(function (item) {\n item.isDisabled = true;\n });\n\n for (var i = offers.length - 1; i >= 0; i--) {\n offerItem = offers[i];\n\n if (colorId == null || offerItem.Color == null) {\n loopCheckStart = true;\n } else {\n loopCheckStart = offerItem.Color != null && offerItem.Color.ColorId === colorId;\n }\n\n ;\n\n if (loopCheckStart === true) {\n for (var s = sizes.length - 1; s >= 0; s--) {\n if (offerItem.Size.SizeId == sizes[s].SizeId && (allowPreorder === true || offerItem.Amount > 0)) {\n sizes[s].isDisabled = false;\n break;\n }\n }\n\n ;\n }\n }\n\n if (ctrl.sizeSelected == null || ctrl.sizeSelected.isDisabled === true) {\n for (var j = 0, l = sizes.length; j < l; j++) {\n if (sizes[j].isDisabled == null || sizes[j].isDisabled == false) {\n sizeSelected = sizes[j];\n break;\n }\n }\n } else {\n sizeSelected = ctrl.sizeSelected;\n }\n\n return sizeSelected;\n }; //#endregion\n //#region carousels\n\n\n ctrl.addCarousel = function (carousel) {\n ctrl.carousel = carousel;\n\n if (ctrl.carouselDefer != null) {\n if (ctrl.carousel.options.asNavFor != null) {\n ctrl.carousel.whenAsNavForReady(ctrl.carousel.options.asNavFor, function () {\n ctrl.carouselDefer.resolve();\n delete ctrl.carouselDefer;\n });\n } else {\n ctrl.carouselDefer.resolve();\n delete ctrl.carouselDefer;\n }\n }\n };\n\n ctrl.getCarousel = function () {\n var defer = $q.defer();\n\n if (ctrl.carouselExist === true && ctrl.carousel == null) {\n ctrl.carouselDefer = defer;\n } else {\n defer.resolve();\n }\n\n return defer.promise;\n };\n\n ctrl.carouselItemSelect = function (carousel, item, index) {\n ctrl.setPreview(item.parameters);\n ctrl.updateModalPreview(item.parameters.originalPath);\n\n if (carousel != null && ctrl.carousel != null && carousel != ctrl.carousel) {\n ctrl.carousel.setItemSelect(index);\n } else if (ctrl.carouselPreview != null && carousel != ctrl.carouselPreview) {\n ctrl.carouselPreview.setItemSelect(index);\n }\n }; //#endregion\n //#region modal preview\n\n\n ctrl.carouselPreviewNext = function () {\n var items = ctrl.carouselPreview.getItems(),\n itemSelected,\n itemSelectedNew,\n newIndex;\n itemSelected = ctrl.carouselPreview.getSelectedItem() || (items != null ? items[0] : null);\n\n if (ctrl.carouselPreview.getSelectedItem() === items[items.length - 1]) {\n ctrl.carouselPreview.goto(0, false);\n newIndex = 0;\n } else {\n ctrl.carouselPreview.next();\n newIndex = itemSelected.carouselItemData.index + 1;\n }\n\n if (itemSelected != null) {\n itemSelectedNew = items[newIndex];\n\n if (itemSelectedNew) {\n ctrl.carouselPreview.setItemSelect(itemSelectedNew);\n ctrl.setPreview(itemSelectedNew.carouselItemData.parameters);\n ctrl.updateModalPreview(itemSelectedNew.carouselItemData.parameters.originalPath);\n }\n }\n };\n\n ctrl.carouselPreviewPrev = function () {\n var items = ctrl.carouselPreview.getItems(),\n itemSelected,\n itemSelectedNew,\n newIndex;\n itemSelected = ctrl.carouselPreview.getSelectedItem() || (items != null ? items[0] : null);\n\n if (ctrl.carouselPreview.getSelectedItem() === items[0]) {\n ctrl.carouselPreview.goto(items.length - 1, false);\n newIndex = items.length - 1;\n } else {\n ctrl.carouselPreview.prev();\n newIndex = itemSelected.carouselItemData.index - 1;\n }\n\n if (itemSelected != null) {\n itemSelectedNew = items[newIndex];\n\n if (itemSelectedNew) {\n ctrl.carouselPreview.setItemSelect(itemSelectedNew);\n ctrl.setPreview(itemSelectedNew.carouselItemData.parameters);\n ctrl.updateModalPreview(itemSelectedNew.carouselItemData.parameters.originalPath);\n }\n }\n };\n\n ctrl.addModalPictureCarousel = function (carouselPreview) {\n ctrl.carouselPreview = carouselPreview;\n };\n\n ctrl.carouselPreviewUpdate = function () {\n if (ctrl.carouselPreview != null) {\n ctrl.getDialog().then(function (modal) {\n if (modal.modalScope.isOpen === true) {\n ctrl.carouselPreview.update();\n }\n });\n }\n };\n\n ctrl.updateModalPreview = function (imgSrc) {\n productService.getPhoto(imgSrc).then(function (img) {\n $timeout(function () {\n ctrl.maxHeightModalPreview = ctrl.getMaxHeightModalPreview();\n ctrl.modalPreviewHeight = img.naturalHeight > ctrl.maxHeightModalPreview ? ctrl.maxHeightModalPreview : img.naturalHeight;\n }, 0);\n });\n };\n\n ctrl.modalPreviewCallbackOpen = function (modal) {\n ctrl.setPreviewByColorId(ctrl.offerSelected.Color != null ? ctrl.offerSelected.Color.ColorId : null, ctrl.filterPhotosEnable, ctrl.carouselPreview);\n $timeout(function () {\n ctrl.carouselPreviewUpdate();\n }, 100);\n };\n\n ctrl.modalPreviewCallbackClose = function (modal) {\n if (!('ontouchstart' in window)) {\n $window.removeEventListener(\"keydown\", ctrl.onKeydownBackForward);\n }\n };\n\n ctrl.modalPreviewOpen = function (event, picture) {\n event.preventDefault();\n event.stopPropagation();\n ctrl.modalPreviewState = 'load';\n ctrl.dialogOpen().then(function () {\n productService.getPhoto(picture == null ? ctrl.picture.originalPath : picture.originalPath).then(function (img) {\n $timeout(function () {\n ctrl.maxHeightModalPreview = ctrl.getMaxHeightModalPreview();\n ctrl.modalPreviewHeight = img.naturalHeight > ctrl.maxHeightModalPreview ? ctrl.maxHeightModalPreview : img.naturalHeight; //ctrl.carouselPreviewUpdate();\n\n ctrl.modalPreviewState = 'complete';\n\n if (ctrl.filterPhotosEnable === true && ctrl.carousel != null && picture != null) {\n ctrl.filterPhotos(ctrl.offerSelected.Color != null ? ctrl.offerSelected.Color.ColorId : null, ctrl.carousel, picture.PhotoId);\n }\n\n if (ctrl.carouselPreview != null) {\n var items = ctrl.carouselPreview.getItems();\n\n for (var i = 0; i < items.length; i++) {\n if (items[i].carouselItemData.parameters.PhotoId == picture.PhotoId) {\n ctrl.carouselPreview.setItemSelect(items[i]);\n ctrl.setPreview(items[i].carouselItemData.parameters);\n ctrl.updateModalPreview(items[i].carouselItemData.parameters.originalPath);\n break;\n }\n }\n }\n }, 0);\n });\n });\n };\n\n ctrl.getMaxHeightModalPreview = function () {\n var result = 0,\n height,\n modalElement,\n modaPreview = document.getElementById('modalPreview_' + ctrl.productId);\n\n if (modaPreview != null) {\n modalElement = modaPreview.querySelector('.modal-content');\n }\n\n if (modalElement != null) {\n height = parseFloat(getComputedStyle(modalElement).height);\n result = isNaN(height) === false ? height : 0;\n }\n\n return result;\n };\n\n ctrl.dialogOpen = function () {\n return ctrl.getDialog().then(function (modal) {\n if (!('ontouchstart' in window)) {\n $window.addEventListener(\"keydown\", ctrl.onKeydownBackForward);\n }\n\n modal.modalScope.open();\n return modal;\n });\n };\n\n ctrl.getDialog = function () {\n return modalService.getModal('modalPreview_' + ctrl.productId);\n };\n\n ctrl.resizeModalPreview = function () {\n $scope.$apply(function () {\n ctrl.updateModalPreview(ctrl.picture.originalPath);\n ctrl.carouselPreviewUpdate();\n });\n }; //#endregion\n //#region productViewChange\n\n\n ctrl.showVideo = function (visible) {\n ctrl.visibleVideo = visible;\n\n if (visible === false) {\n ctrl.videosInModalReceived = false;\n ctrl.carouselVideosInModalInit = false;\n }\n };\n\n ctrl.onReceiveVideosInModal = function () {\n ctrl.videosInModalReceived = true;\n };\n\n ctrl.onInitCarouselVideosInModal = function () {\n ctrl.carouselVideosInModalInit = true;\n };\n\n ctrl.showRotate = function (visible) {\n ctrl.visibleRotate = visible;\n }; //#endregion\n //#region shippingVariants\n\n\n ctrl.addShippingVariants = function (shippingVariants) {\n ctrl.shippingVariants = shippingVariants;\n }; //#endregion\n //#region spinbox amount\n\n\n ctrl.updateAmount = function (value, proxy) {\n //if (ctrl.shippingVariants != null) {\n // ctrl.shippingVariants.update();\n //}\n ctrl.refreshPrice();\n }; //#endregion\n\n\n ctrl.filterPhotosFunction = function (item, index) {\n return item != null && (item.carouselItemData.parameters.colorId == null || ctrl.offerSelected.Color == null || item.carouselItemData.parameters.colorId == ctrl.offerSelected.Color.ColorId);\n };\n\n ctrl.setPreviewByColorId = function (colorId, filterEnabled, carousel) {\n var findArray;\n\n if (ctrl.carousel) {\n if (filterEnabled === true) {\n ctrl.filterPhotos(colorId, carousel, ctrl.picture.PhotoId);\n } else {\n findArray = ctrl.carousel.items.filter(ctrl.filterPhotosFunction);\n\n if (findArray != null && findArray.length > 0) {\n ctrl.setPreview(findArray[0].carouselItemData.parameters);\n }\n }\n }\n };\n\n ctrl.filterPhotos = function (colorId, carousel, selectedPhotoId) {\n var selectedItem, items, oldItem;\n\n if (carousel) {\n oldItem = carousel.getActiveItem();\n items = carousel.filterItems(ctrl.filterPhotosFunction, colorId);\n /*if (selectedPhotoId != null) {\n items = carousel.getItems();\n for (var i = 0, len = items.length; i < len; i++) {\n if (items[i].carouselItemData.parameters.colorId === colorId) {\n carousel.setItemSelect(items[i]);\n findedSelected = true;\n break;\n }\n }\n }*/\n\n if (items == null || items.length === 0) {\n carousel.addItem(oldItem);\n }\n\n selectedItem = carousel.getActiveItem();\n\n if (selectedItem != null) {\n carousel.setItemSelect(selectedItem);\n ctrl.setPreview(selectedItem.carouselItemData.parameters);\n }\n }\n };\n\n ctrl.setView = function (viewName) {\n ctrl.productView = viewName;\n ctrl.stopVideo();\n };\n\n ctrl.setPreview = function (picture) {\n ctrl.picture = picture;\n };\n\n ctrl.getUrl = function (url) {\n var result = url,\n params = [];\n\n if (ctrl.colorsViewer != null && ctrl.colorsViewer.colorSelected != null) {\n params.push(\"color=\" + ctrl.colorsViewer.colorSelected.ColorId);\n }\n\n if (ctrl.sizesViewer != null && ctrl.sizesViewer.sizeSelected != null) {\n params.push(\"size=\" + ctrl.sizesViewer.sizeSelected.SizeId);\n }\n\n if (params.length > 0) {\n result = result + '?' + params.join('&');\n }\n\n return result;\n };\n\n ctrl.getCommentsCount = function () {\n productService.getReviewsCount(ctrl.productId).then(function (result) {\n if (result != null) {\n ctrl.reviewsCount = result.reviewsCount;\n }\n });\n };\n\n ctrl.addChangeSizeAndColorCallback = function (callback) {\n ctrl.changeSizeAndColorCallback = callback;\n };\n\n ctrl.onKeydownBackForward = e => {\n if (e.code === \"ArrowRight\") {\n ctrl.carouselPreviewNext();\n }\n\n if (e.code === \"ArrowLeft\") {\n ctrl.carouselPreviewPrev();\n }\n };\n};\n\nProductCustomCtrl.$inject = [\"$q\", \"$scope\", \"$sce\", \"$timeout\", \"productService\", \"modalService\", \"toaster\", \"$translate\", \"$window\", \"urlHelper\"];\nexport default ProductCustomCtrl;","import uiBootstrapModule from '../../../../vendors/ui-bootstrap-custom/ui-bootstrap.module.js';\nimport carouselModule from '../../../../scripts/_common/carousel/carousel.module.js';\nimport ratingModule from '../../../../scripts/_common/rating/rating.module.js';\nimport rotateModule from '../../../../scripts/_common/rotate/rotate.module.js';\nimport videosModule from '../../../../scripts/_partials/videos/videos.module.js';\nimport zoomerModule from '../../../../scripts/_common/zoomer/zoomer.module.js';\nimport productViewModule from '../../../../scripts/_partials/product-view/productView.module.js';\nimport customOptionsModule from '../../../../scripts/_partials/custom-options/customOptions.module.js';\nimport colorsViewerModule from '../../../../scripts/_partials/colors-viewer/colorsViewer.module.js';\nimport sizesViewerModule from '../../../../scripts/_partials/sizes-viewer/sizesViewer.module.js';\nimport buyOneClickModule from '../../../../scripts/_partials/buy-one-click/buyOneClick.module.js';\nimport tabsModule from '../../../../scripts/_common/tabs/tabs.module.js';\nimport compareModule from '../../../../scripts/_partials/compare/compare.module.js';\nimport reviewsModule from '../../../../scripts/_partials/reviews/reviews.module.js';\nimport shippingModule from '../../../../scripts/_partials/shipping/shipping.module.js';\nimport '../../../../styles/partials/gallery.scss';\nimport '../../../../styles/partials/product-color.scss';\nimport '../../../../styles/partials/properties.scss';\nimport '../../../../styles/partials/social-share42.scss';\nimport '../../../../styles/views/product.scss';\nimport ProductCustomCtrl from './controllers/productController.js';\nimport productService from '../../../../scripts/product/services/productService.js';\nimport '../../../../scripts/_common/urlHelper/urlHelperService.module.js';\nconst moduleName = 'productCustom';\nconst deps = [uiBootstrapModule, tabsModule, ratingModule, carouselModule, productViewModule, rotateModule, compareModule, customOptionsModule, colorsViewerModule, sizesViewerModule, zoomerModule, reviewsModule, shippingModule, buyOneClickModule, videosModule, 'urlHelper'];\nangular.module(moduleName, deps).controller('ProductCustomCtrl', ProductCustomCtrl).service('productService', productService);\nexport default moduleName;","/*@ngInject*/\nvar ProductCtrl = function ($q, $scope, $sce, $timeout, productService, modalService, toaster, $translate, $window, urlHelper) {\n var ctrl = this;\n\n ctrl.$onInit = function () {\n productService.addToStorage(ctrl);\n };\n\n ctrl.productView = \"photo\";\n ctrl.Price = {};\n ctrl.picture = {};\n ctrl.dirty === false;\n ctrl.offerSelected = {};\n ctrl.carouselHidden = true;\n\n ctrl.$onDestroy = function () {\n modalService.destroy('modalProductVideo');\n };\n\n ctrl.getPrice = function (offerId, customOptions) {\n return productService.getPrice(ctrl.offerSelected.OfferId, ctrl.customOptions != null ? ctrl.customOptions.xml : null, ctrl.lpBlockId, ctrl.offerSelected.AmountBuy).then(function (price) {\n ctrl.Price = price;\n ctrl.Price.PriceString = $sce.trustAsHtml(ctrl.Price.PriceString);\n ctrl.Price.Bonuses = $sce.trustAsHtml(ctrl.Price.Bonuses);\n return ctrl.Price;\n });\n };\n\n ctrl.getFirstPaymentPrice = function (price, discount, discountAmount) {\n if (price == null || discount == null || discountAmount == null) {\n return null;\n }\n\n return productService.getFirstPaymentPrice(price, discount, discountAmount).then(function (firstPaymentPrice) {\n ctrl.FirstPaymentPrice = $sce.trustAsHtml(firstPaymentPrice);\n ctrl.visibilityFirstPaymentButton = firstPaymentPrice != null && firstPaymentPrice.length > 0;\n });\n };\n\n ctrl.refreshPrice = function () {\n var defer = $q.defer();\n ctrl.getPrice(ctrl.offerSelected.OfferId, ctrl.customOptions != null ? ctrl.customOptions.xml : null, ctrl.offerSelected.AmountBuy).then(function (price) {\n return ctrl.getFirstPaymentPrice(price.PriceOldNumber != null && price.PriceOldNumber != 0 ? price.PriceOldNumber : price.PriceNumber, ctrl.discount, ctrl.discountAmount);\n }).then(function () {\n if (ctrl.shippingVariants != null) {\n ctrl.shippingVariants.update().then(function (data) {\n defer.resolve(data);\n return data;\n });\n } else {\n defer.resolve();\n }\n\n productService.processCallback('refreshPrice');\n });\n return defer.promise;\n };\n\n ctrl.prepareOffers = function (data) {\n for (var i = 0, len = data.Offers.length; i < len; i++) {\n if (data.Offers[i].Available != null && angular.isString(data.Offers[i].Available) === true) {\n data.Offers[i].Available = $sce.trustAsHtml(data.Offers[i].Available);\n }\n }\n\n return data;\n };\n\n ctrl.loadDataCustom = productId => {\n $(document).trigger(\"load.product\", productId);\n };\n\n ctrl.loadData = function (productId, colorId, sizeId, hiddenPrice, filterPhotosEnable, preventChangeLocation) {\n $(document).trigger(\"load.product\", productId);\n ctrl.productId = productId;\n ctrl.hiddenPrice = hiddenPrice;\n ctrl.filterPhotosEnable = filterPhotosEnable != null ? filterPhotosEnable : true;\n ctrl.preventChangeLocation = preventChangeLocation === true;\n return productService.getOffers(productId, colorId, sizeId).then(function (data) {\n if (data == null) {\n if (colorId == null) {\n ctrl.carouselHidden = false;\n }\n\n return null;\n }\n\n ctrl.data = ctrl.prepareOffers(data);\n ctrl.offerSelected = productService.findOfferSelected(data.Offers, data.StartOfferIdSelected);\n ctrl.dirty = true;\n ctrl.getColorsViewer().then(function () {\n if (ctrl.colorsViewer != null && ctrl.offerSelected.Color != null) {\n ctrl.setColorSelected(ctrl.colorsViewer, ctrl.offerSelected.Color != null ? ctrl.offerSelected.Color.ColorId : null);\n }\n\n return ctrl.data;\n }).then(ctrl.getSizesViewer).then(function () {\n if (ctrl.sizesViewer != null && ctrl.offerSelected.Size != null) {\n ctrl.setSizeSelected(ctrl.sizesViewer, ctrl.offerSelected.Size.SizeId);\n }\n\n return ctrl.data;\n }).then(ctrl.getCarousel).then(function () {\n if (ctrl.filterPhotosEnable === true && ctrl.carousel != null) {\n ctrl.filterPhotos(ctrl.offerSelected.Color != null ? ctrl.offerSelected.Color.ColorId : null, ctrl.carousel);\n }\n\n ctrl.carouselHidden = false;\n });\n return ctrl.data;\n });\n };\n\n ctrl.validate = function () {\n var result = true;\n\n if (ctrl.customOptions != null && ctrl.customOptions.customOptionsForm.$invalid === true) {\n ctrl.customOptions.customOptionsForm.$setSubmitted();\n ctrl.customOptions.customOptionsForm.$setDirty();\n toaster.pop('error', $translate.instant('Js.Product.InvalidCustomOptions'));\n result = false;\n }\n\n return result;\n }; //#region compare and wishlist\n\n\n ctrl.compareInit = function (compare) {\n ctrl.compare = compare;\n };\n\n ctrl.wishlistControlInit = function (wishlistControl) {\n ctrl.wishlistControl = wishlistControl;\n }; //#endregion\n //#region customOptions\n\n\n ctrl.customOptionsInitFn = function (customOptions) {\n ctrl.customOptions = customOptions;\n };\n\n ctrl.customOptionsChange = function () {\n if (!ctrl.hiddenPrice) {\n ctrl.refreshPrice();\n }\n }; //#endregion\n //#region colors\n\n\n ctrl.initColors = function (colorsViewer) {\n ctrl.colorsViewer = colorsViewer;\n\n if (ctrl.colorsViewerDefer != null) {\n ctrl.colorsViewerDefer.resolve();\n delete ctrl.colorsViewerDefer;\n }\n };\n\n ctrl.getColorsViewer = function () {\n var defer = $q.defer();\n\n if (ctrl.colorsExist === true && ctrl.colorsViewer == null) {\n ctrl.colorsViewerDefer = defer;\n } else {\n defer.resolve(ctrl.colorsViewer);\n }\n\n return defer.promise;\n };\n\n ctrl.changeColor = function (color) {\n ctrl.colorSelected = color;\n\n if (ctrl.changeSizeAndColorCallback != null) {\n ctrl.changeSizeAndColorCallback(ctrl.colorSelected);\n }\n\n if (ctrl.sizesViewer != null) {\n ctrl.sizeSelected = ctrl.getSizeAvalable(ctrl.data.Offers, ctrl.colorSelected.ColorId, ctrl.sizesViewer.sizes, ctrl.data.AllowPreOrder);\n\n if (ctrl.changeSizeAndColorCallback != null) {\n ctrl.changeSizeAndColorCallback(ctrl.sizeSelected);\n }\n\n if (ctrl.preventChangeLocation !== true) {\n urlHelper.setLocationQueryParams('size', ctrl.sizeSelected.SizeId, true);\n }\n }\n\n ctrl.offerSelected = productService.getOffer(ctrl.data.Offers, ctrl.colorSelected.ColorId, ctrl.sizeSelected != null && ctrl.sizeSelected.isDisabled === false ? ctrl.sizeSelected.SizeId : null, ctrl.data.AllowPreOrder);\n\n if (!ctrl.hiddenPrice) {\n ctrl.refreshPrice();\n }\n\n if (ctrl.compare != null) {\n ctrl.compare.checkStatus(ctrl.offerSelected.OfferId);\n }\n\n if (ctrl.wishlistControl != null) {\n ctrl.wishlistControl.checkStatus(ctrl.offerSelected.OfferId);\n }\n\n ctrl.setPreviewByColorId(ctrl.colorSelected.ColorId, ctrl.filterPhotosEnable, ctrl.carousel);\n\n if (ctrl.preventChangeLocation !== true) {\n urlHelper.setLocationQueryParams('color', ctrl.colorSelected.ColorId, true);\n }\n };\n\n ctrl.setColorSelected = function (colorsViewer, colorId) {\n for (var i = colorsViewer.colors.length - 1; i >= 0; i--) {\n if (colorsViewer.colors[i].ColorId === colorId) {\n ctrl.colorSelected = colorsViewer.colors[i];\n break;\n }\n }\n\n if (ctrl.changeSizeAndColorCallback != null) {\n ctrl.changeSizeAndColorCallback(ctrl.colorSelected);\n }\n }; //#endregion\n //#region sizes\n\n\n ctrl.initSizes = function (sizesViewer) {\n ctrl.sizesViewer = sizesViewer;\n\n if (ctrl.sizesViewerDefer != null) {\n ctrl.sizesViewerDefer.resolve();\n delete ctrl.sizesViewerDefer;\n }\n };\n\n ctrl.getSizesViewer = function () {\n var defer = $q.defer();\n\n if (ctrl.sizesExist === true && ctrl.sizesViewer == null) {\n ctrl.sizesViewerDefer = defer;\n } else {\n defer.resolve(ctrl.sizesViewer);\n }\n\n return defer.promise;\n };\n\n ctrl.changeSize = function (size) {\n ctrl.sizeSelected = size;\n\n if (ctrl.changeSizeAndColorCallback != null) {\n ctrl.changeSizeAndColorCallback(ctrl.sizeSelected);\n }\n\n ctrl.offerSelected = productService.getOffer(ctrl.data.Offers, ctrl.colorSelected != null ? ctrl.colorSelected.ColorId : 0, ctrl.sizeSelected.isDisabled ? null : ctrl.sizeSelected.SizeId, ctrl.data.AllowPreOrder);\n\n if (!ctrl.hiddenPrice) {\n ctrl.refreshPrice();\n }\n\n if (ctrl.compare != null) {\n ctrl.compare.checkStatus(ctrl.offerSelected.OfferId);\n }\n\n if (ctrl.wishlistControl != null) {\n ctrl.wishlistControl.checkStatus(ctrl.offerSelected.OfferId);\n }\n\n if (ctrl.preventChangeLocation !== true) {\n urlHelper.setLocationQueryParams('size', ctrl.sizeSelected.SizeId, true);\n }\n };\n\n ctrl.setSizeSelected = function (sizesViewer, sizeId) {\n for (var i = sizesViewer.sizes.length - 1; i >= 0; i--) {\n if (sizesViewer.sizes[i].SizeId === sizeId) {\n ctrl.sizeSelected = sizesViewer.sizes[i];\n break;\n }\n }\n\n ctrl.sizeSelected = ctrl.getSizeAvalable(ctrl.data.Offers, ctrl.colorSelected != null ? ctrl.colorSelected.ColorId : 0, ctrl.sizesViewer.sizes, ctrl.data.AllowPreOrder);\n\n if (ctrl.changeSizeAndColorCallback != null) {\n ctrl.changeSizeAndColorCallback(ctrl.sizeSelected);\n }\n };\n\n ctrl.getSizeAvalable = function (offers, colorId, sizes, allowPreorder) {\n var offerItem, sizeItem, sizeSelected, loopCheckStart;\n sizes.forEach(function (item) {\n item.isDisabled = true;\n });\n\n for (var i = offers.length - 1; i >= 0; i--) {\n offerItem = offers[i];\n\n if (colorId == null || offerItem.Color == null) {\n loopCheckStart = true;\n } else {\n loopCheckStart = offerItem.Color != null && offerItem.Color.ColorId === colorId;\n }\n\n ;\n\n if (loopCheckStart === true) {\n for (var s = sizes.length - 1; s >= 0; s--) {\n if (offerItem.Size.SizeId == sizes[s].SizeId && (allowPreorder === true || offerItem.Amount > 0)) {\n sizes[s].isDisabled = false;\n break;\n }\n }\n\n ;\n }\n }\n\n if (ctrl.sizeSelected == null || ctrl.sizeSelected.isDisabled === true) {\n for (var j = 0, l = sizes.length; j < l; j++) {\n if (sizes[j].isDisabled == null || sizes[j].isDisabled == false) {\n sizeSelected = sizes[j];\n break;\n }\n }\n } else {\n sizeSelected = ctrl.sizeSelected;\n }\n\n return sizeSelected;\n }; //#endregion\n //#region carousels\n\n\n ctrl.addCarousel = function (carousel) {\n ctrl.carousel = carousel;\n\n if (ctrl.carouselDefer != null) {\n if (ctrl.carousel.options.asNavFor != null) {\n ctrl.carousel.whenAsNavForReady(ctrl.carousel.options.asNavFor, function () {\n ctrl.carouselDefer.resolve();\n delete ctrl.carouselDefer;\n });\n } else {\n ctrl.carouselDefer.resolve();\n delete ctrl.carouselDefer;\n }\n }\n };\n\n ctrl.getCarousel = function () {\n var defer = $q.defer();\n\n if (ctrl.carouselExist === true && ctrl.carousel == null) {\n ctrl.carouselDefer = defer;\n } else {\n defer.resolve();\n }\n\n return defer.promise;\n };\n\n ctrl.carouselItemSelect = function (carousel, item, index) {\n ctrl.setPreview(item.parameters);\n ctrl.updateModalPreview(item.parameters.originalPath);\n\n if (carousel != null && ctrl.carousel != null && carousel != ctrl.carousel) {\n ctrl.carousel.setItemSelect(index);\n } else if (ctrl.carouselPreview != null && carousel != ctrl.carouselPreview) {\n ctrl.carouselPreview.setItemSelect(index);\n }\n }; //#endregion\n //#region modal preview\n\n\n ctrl.carouselPreviewNext = function () {\n var items = ctrl.carouselPreview.getItems(),\n itemSelected,\n itemSelectedNew,\n newIndex;\n itemSelected = ctrl.carouselPreview.getSelectedItem() || (items != null ? items[0] : null);\n\n if (ctrl.carouselPreview.getSelectedItem() === items[items.length - 1]) {\n ctrl.carouselPreview.goto(0, false);\n newIndex = 0;\n } else {\n ctrl.carouselPreview.next();\n newIndex = itemSelected.carouselItemData.index + 1;\n }\n\n if (itemSelected != null) {\n itemSelectedNew = items[newIndex];\n\n if (itemSelectedNew) {\n ctrl.carouselPreview.setItemSelect(itemSelectedNew);\n ctrl.setPreview(itemSelectedNew.carouselItemData.parameters);\n ctrl.updateModalPreview(itemSelectedNew.carouselItemData.parameters.originalPath);\n }\n }\n };\n\n ctrl.carouselPreviewPrev = function () {\n var items = ctrl.carouselPreview.getItems(),\n itemSelected,\n itemSelectedNew,\n newIndex;\n itemSelected = ctrl.carouselPreview.getSelectedItem() || (items != null ? items[0] : null);\n\n if (ctrl.carouselPreview.getSelectedItem() === items[0]) {\n ctrl.carouselPreview.goto(items.length - 1, false);\n newIndex = items.length - 1;\n } else {\n ctrl.carouselPreview.prev();\n newIndex = itemSelected.carouselItemData.index - 1;\n }\n\n if (itemSelected != null) {\n itemSelectedNew = items[newIndex];\n\n if (itemSelectedNew) {\n ctrl.carouselPreview.setItemSelect(itemSelectedNew);\n ctrl.setPreview(itemSelectedNew.carouselItemData.parameters);\n ctrl.updateModalPreview(itemSelectedNew.carouselItemData.parameters.originalPath);\n }\n }\n };\n\n ctrl.addModalPictureCarousel = function (carouselPreview) {\n ctrl.carouselPreview = carouselPreview;\n };\n\n ctrl.carouselPreviewUpdate = function () {\n if (ctrl.carouselPreview != null) {\n ctrl.getDialog().then(function (modal) {\n if (modal.modalScope.isOpen === true) {\n ctrl.carouselPreview.update();\n }\n });\n }\n };\n\n ctrl.updateModalPreview = function (imgSrc) {\n productService.getPhoto(imgSrc).then(function (img) {\n $timeout(function () {\n ctrl.maxHeightModalPreview = ctrl.getMaxHeightModalPreview();\n ctrl.modalPreviewHeight = img.naturalHeight > ctrl.maxHeightModalPreview ? ctrl.maxHeightModalPreview : img.naturalHeight;\n }, 0);\n });\n };\n\n ctrl.modalPreviewCallbackOpen = function (modal) {\n ctrl.setPreviewByColorId(ctrl.offerSelected.Color != null ? ctrl.offerSelected.Color.ColorId : null, ctrl.filterPhotosEnable, ctrl.carouselPreview);\n $timeout(function () {\n ctrl.carouselPreviewUpdate();\n }, 100);\n };\n\n ctrl.modalPreviewCallbackClose = function (modal) {\n if (!('ontouchstart' in window)) {\n $window.removeEventListener(\"keydown\", ctrl.onKeydownBackForward);\n }\n };\n\n ctrl.modalPreviewOpen = function (event, picture) {\n event.preventDefault();\n event.stopPropagation();\n ctrl.modalPreviewState = 'load';\n ctrl.dialogOpen().then(function () {\n productService.getPhoto(picture == null ? ctrl.picture.originalPath : picture.originalPath).then(function (img) {\n $timeout(function () {\n ctrl.maxHeightModalPreview = ctrl.getMaxHeightModalPreview();\n ctrl.modalPreviewHeight = img.naturalHeight > ctrl.maxHeightModalPreview ? ctrl.maxHeightModalPreview : img.naturalHeight; //ctrl.carouselPreviewUpdate();\n\n ctrl.modalPreviewState = 'complete';\n\n if (ctrl.filterPhotosEnable === true && ctrl.carousel != null && picture != null) {\n ctrl.filterPhotos(ctrl.offerSelected.Color != null ? ctrl.offerSelected.Color.ColorId : null, ctrl.carousel, picture.PhotoId);\n }\n\n if (ctrl.carouselPreview != null) {\n var items = ctrl.carouselPreview.getItems();\n\n for (var i = 0; i < items.length; i++) {\n if (items[i].carouselItemData.parameters.PhotoId == picture.PhotoId) {\n ctrl.carouselPreview.setItemSelect(items[i]);\n ctrl.setPreview(items[i].carouselItemData.parameters);\n ctrl.updateModalPreview(items[i].carouselItemData.parameters.originalPath);\n break;\n }\n }\n }\n }, 0);\n });\n });\n };\n\n ctrl.getMaxHeightModalPreview = function () {\n var result = 0,\n height,\n modalElement,\n modaPreview = document.getElementById('modalPreview_' + ctrl.productId);\n\n if (modaPreview != null) {\n modalElement = modaPreview.querySelector('.modal-content');\n }\n\n if (modalElement != null) {\n height = parseFloat(getComputedStyle(modalElement).height);\n result = isNaN(height) === false ? height : 0;\n }\n\n return result;\n };\n\n ctrl.dialogOpen = function () {\n return ctrl.getDialog().then(function (modal) {\n if (!('ontouchstart' in window)) {\n $window.addEventListener(\"keydown\", ctrl.onKeydownBackForward);\n }\n\n modal.modalScope.open();\n return modal;\n });\n };\n\n ctrl.getDialog = function () {\n return modalService.getModal('modalPreview_' + ctrl.productId);\n };\n\n ctrl.resizeModalPreview = function () {\n $scope.$apply(function () {\n ctrl.updateModalPreview(ctrl.picture.originalPath);\n ctrl.carouselPreviewUpdate();\n });\n }; //#endregion\n //#region productViewChange\n\n\n ctrl.showVideo = function (visible) {\n ctrl.visibleVideo = visible;\n\n if (visible === false) {\n ctrl.videosInModalReceived = false;\n ctrl.carouselVideosInModalInit = false;\n }\n };\n\n ctrl.onReceiveVideosInModal = function () {\n ctrl.videosInModalReceived = true;\n };\n\n ctrl.onInitCarouselVideosInModal = function () {\n ctrl.carouselVideosInModalInit = true;\n };\n\n ctrl.showRotate = function (visible) {\n ctrl.visibleRotate = visible;\n }; //#endregion\n //#region shippingVariants\n\n\n ctrl.addShippingVariants = function (shippingVariants) {\n ctrl.shippingVariants = shippingVariants;\n }; //#endregion\n //#region spinbox amount\n\n\n ctrl.updateAmount = function (value, proxy) {\n //if (ctrl.shippingVariants != null) {\n // ctrl.shippingVariants.update();\n //}\n ctrl.refreshPrice();\n }; //#endregion\n\n\n ctrl.filterPhotosFunction = function (item, index) {\n return item != null && (item.carouselItemData.parameters.colorId == null || ctrl.offerSelected.Color == null || item.carouselItemData.parameters.colorId == ctrl.offerSelected.Color.ColorId);\n };\n\n ctrl.setPreviewByColorId = function (colorId, filterEnabled, carousel) {\n var findArray;\n\n if (ctrl.carousel) {\n if (filterEnabled === true) {\n ctrl.filterPhotos(colorId, carousel, ctrl.picture.PhotoId);\n } else {\n findArray = ctrl.carousel.items.filter(ctrl.filterPhotosFunction);\n\n if (findArray != null && findArray.length > 0) {\n ctrl.setPreview(findArray[0].carouselItemData.parameters);\n }\n }\n }\n };\n\n ctrl.filterPhotos = function (colorId, carousel, selectedPhotoId) {\n var selectedItem, items, oldItem;\n\n if (carousel) {\n oldItem = carousel.getActiveItem();\n items = carousel.filterItems(ctrl.filterPhotosFunction, colorId);\n /*if (selectedPhotoId != null) {\n items = carousel.getItems();\n for (var i = 0, len = items.length; i < len; i++) {\n if (items[i].carouselItemData.parameters.colorId === colorId) {\n carousel.setItemSelect(items[i]);\n findedSelected = true;\n break;\n }\n }\n }*/\n\n if (items == null || items.length === 0) {\n carousel.addItem(oldItem);\n }\n\n selectedItem = carousel.getActiveItem();\n\n if (selectedItem != null) {\n carousel.setItemSelect(selectedItem);\n ctrl.setPreview(selectedItem.carouselItemData.parameters);\n }\n }\n };\n\n ctrl.setView = function (viewName) {\n ctrl.productView = viewName;\n ctrl.stopVideo();\n };\n\n ctrl.setPreview = function (picture) {\n ctrl.picture = picture;\n };\n\n ctrl.getUrl = function (url) {\n var result = url,\n params = [];\n\n if (ctrl.colorsViewer != null && ctrl.colorsViewer.colorSelected != null) {\n params.push(\"color=\" + ctrl.colorsViewer.colorSelected.ColorId);\n }\n\n if (ctrl.sizesViewer != null && ctrl.sizesViewer.sizeSelected != null) {\n params.push(\"size=\" + ctrl.sizesViewer.sizeSelected.SizeId);\n }\n\n if (params.length > 0) {\n result = result + '?' + params.join('&');\n }\n\n return result;\n };\n\n ctrl.getCommentsCount = function () {\n productService.getReviewsCount(ctrl.productId).then(function (result) {\n if (result != null) {\n ctrl.reviewsCount = result.reviewsCount;\n }\n });\n };\n\n ctrl.addChangeSizeAndColorCallback = function (callback) {\n ctrl.changeSizeAndColorCallback = callback;\n };\n\n ctrl.onKeydownBackForward = e => {\n if (e.code === \"ArrowRight\") {\n ctrl.carouselPreviewNext();\n }\n\n if (e.code === \"ArrowLeft\") {\n ctrl.carouselPreviewPrev();\n }\n };\n};\n\nProductCtrl.$inject = [\"$q\", \"$scope\", \"$sce\", \"$timeout\", \"productService\", \"modalService\", \"toaster\", \"$translate\", \"$window\", \"urlHelper\"];\nexport default ProductCtrl;","import uiBootstrapModule from '../../../../vendors/ui-bootstrap-custom/ui-bootstrap.module.js';\nimport carouselModule from '../../../../scripts/_common/carousel/carousel.module.js';\nimport ratingModule from '../../../../scripts/_common/rating/rating.module.js';\nimport rotateModule from '../../../../scripts/_common/rotate/rotate.module.js';\nimport videosModule from '../../../../scripts/_partials/videos/videos.module.js';\nimport zoomerModule from '../../../../scripts/_common/zoomer/zoomer.module.js';\nimport productViewModule from '../../../../scripts/_partials/product-view/productView.module.js';\nimport customOptionsModule from '../../../../scripts/_partials/custom-options/customOptions.module.js';\nimport colorsViewerModule from '../../../../scripts/_partials/colors-viewer/colorsViewer.module.js';\nimport sizesViewerModule from '../../../../scripts/_partials/sizes-viewer/sizesViewer.module.js';\nimport buyOneClickModule from '../../../../scripts/_partials/buy-one-click/buyOneClick.module.js';\nimport tabsModule from '../../../../scripts/_common/tabs/tabs.module.js';\nimport compareModule from '../../../../scripts/_partials/compare/compare.module.js';\nimport reviewsModule from '../../../../scripts/_partials/reviews/reviews.module.js';\nimport shippingModule from '../../../../scripts/_partials/shipping/shipping.module.js';\nimport '../../../../styles/partials/gallery.scss';\nimport '../../../../styles/partials/product-color.scss';\nimport '../../../../styles/partials/properties.scss';\nimport '../../../../styles/partials/social-share42.scss';\nimport '../../../../styles/views/product.scss';\nimport ProductCtrl from './controllers/productController.js';\nimport productService from '../../../../scripts/product/services/productService.js';\nimport '../../../../scripts/_common/urlHelper/urlHelperService.module.js';\nconst moduleName = 'product';\nconst deps = [uiBootstrapModule, tabsModule, ratingModule, carouselModule, productViewModule, rotateModule, compareModule, customOptionsModule, colorsViewerModule, sizesViewerModule, zoomerModule, reviewsModule, shippingModule, buyOneClickModule, videosModule, 'urlHelper'];\nangular.module(moduleName, deps).controller('ProductCtrl', ProductCtrl).service('productService', productService);\nexport default moduleName;","import 'imports-loader?type=commonjs&wrapper=window!../vendors/wow.min.js';\nimport '../vendors/owl.carousel.min.js';\nimport '../vendors/pushy.min.js';\nwindow.addEventListener('load', () => {\n $('.owl-carousel').on('initialized.owl.carousel', function (event) {\n $(this).find('.owl-item').each(function () {\n $(this).removeClass('first-active');\n });\n $(this).find('.owl-item.active').addClass('first-active');\n $(this).find('.owl-item.active').last().removeClass('first-active');\n });\n $('ul.products-tabs-specials-container-header').each(function (i) {\n var storage = localStorage.getItem('tab' + i);\n\n if (storage) {\n $(this).find('li').removeClass('products-tabs-specials-container-header-item-active').eq(storage).addClass('products-tabs-specials-container-header-item-active').closest('div.products-tabs-specials-container').find('div.tab-content').removeClass('active').eq(storage).addClass('active');\n }\n });\n $('ul.products-tabs-specials-container-header').on('click', 'li:not(.active)', function () {\n $(this).addClass('products-tabs-specials-container-header-item-active').siblings().removeClass('products-tabs-specials-container-header-item-active').closest('div.products-tabs-specials-container').find('div.tab-content').removeClass('active').eq($(this).index()).addClass('active');\n var ulIndex = $('ul.products-tabs-specials-container-header').index($(this).parents('ul.products-tabs-specials-container-header'));\n localStorage.removeItem('tab' + ulIndex);\n localStorage.setItem('tab' + ulIndex, $(this).index());\n });\n const wowObj = new WOW();\n wowObj.init();\n $('.owl-carousel-home-general').owlCarousel({\n items: 3,\n nav: true,\n slideSpeed: 300,\n dots: true,\n rtl: false,\n margin: 0,\n touchDrag: true,\n paginationSpeed: 400\n });\n $('.owl-carousel-productList').owlCarousel({\n items: 4,\n nav: true,\n slideSpeed: 300,\n dots: true,\n rtl: false,\n margin: 0,\n touchDrag: true,\n paginationSpeed: 400\n });\n $('.owl-carousel').on('changed.owl.carousel', function (event) {\n $(this).find('.owl-item').each(function () {\n $(this).removeClass('first-active');\n });\n $(this).find('.owl-item.active').addClass('first-active');\n $(this).find('.owl-item.active').last().removeClass('first-active');\n });\n $('.owl-carousel').each(function () {\n var $this = $(this);\n $(this).find('.owl-item.active').last().addClass('last-active');\n $(\".owl-carousel\").on('initialized.owl.carousel translated.owl.carousel', function () {\n var $this = $(this);\n $this.find('.owl-item.last-active').each(function () {\n $(this).removeClass('last-active');\n });\n $(this).find('.owl-item.active').last().addClass('last-active');\n });\n });\n $('.show-all-cat-dropdown').each(function () {\n if ($(this).siblings('.product-menu-categories-hidden').length > 0) {\n var $childIndicator = $('');\n $(this).siblings('.product-menu-categories-hidden').hide();\n\n if ($(this).siblings('.product-menu-categories-hidden').is(':visible')) {\n $childIndicator.addClass('open');\n $childIndicator.html('');\n }\n\n $(this).on('click', function () {\n $(this).siblings('.product-menu-categories-hidden').toggle('fast', function () {\n if ($(this).is(':visible')) {\n $childIndicator.addClass('open');\n $childIndicator.html('');\n } else {\n $childIndicator.removeClass('open');\n $childIndicator.html('');\n }\n });\n return false;\n });\n $(this).append($childIndicator);\n }\n });\n $('.site-menu-row .menu_fast_toggle .menu-dropdown-list .menu-dropdown-item .menu-dropdown-sub').hide();\n var menuItemAnimationSub;\n $('.site-menu-row .menu-dropdown-list .menu-dropdown-item').hover(function () {\n if (menuItemAnimationSub != null) {\n menuItemAnimationSub.stop(true, true);\n }\n\n menuItemAnimationSub = $(this).children('.menu-dropdown-sub');\n menuItemAnimationSub.toggle('fast', function () {\n menuItemAnimationSub = null;\n });\n });\n $('.site-menu-row .product-menu-categories .menu-dropdown .menu-dropdown-item .categoryidbymenuhidden').each(function () {\n var currentmenucategoryid = $(this).text();\n var currentproductcategoryid = $(\".categoryidbyproducthidden\").text();\n var currentcategoryidcatalog = $(\".categoryidcataloghidden\").text();\n\n if (currentmenucategoryid == currentproductcategoryid) {\n $(this).parent('.menu-dropdown-link-text').css(\"font-family\", \"OpenSansBold\");\n }\n\n if (currentmenucategoryid == currentcategoryidcatalog) {\n $(this).parent('.menu-dropdown-link-text').css(\"font-family\", \"OpenSansBold\");\n }\n });\n $('.scroll-to-top a').click(function () {\n var scroll_el = $(this).attr('href');\n\n if ($(scroll_el).length != 0) {\n $('html, body').animate({\n scrollTop: $(scroll_el).offset().top\n }, 500); // анимируем скроолинг к элементу scroll_el\n }\n\n return false; // выключаем стандартное действие\n });\n $('.site-body').append($('.site-head-cart .pushy-right'));\n $('.site-body').append($('.site-head-cart .site-overlay'));\n});","/**\r\n * Owl Carousel v2.3.3\r\n * Copyright 2013-2018 David Deutsch\r\n * Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE\r\n */\n!function (a, b, c, d) {\n function e(b, c) {\n this.settings = null, this.options = a.extend({}, e.Defaults, c), this.$element = a(b), this._handlers = {}, this._plugins = {}, this._supress = {}, this._current = null, this._speed = null, this._coordinates = [], this._breakpoint = null, this._width = null, this._items = [], this._clones = [], this._mergers = [], this._widths = [], this._invalidated = {}, this._pipe = [], this._drag = {\n time: null,\n target: null,\n pointer: null,\n stage: {\n start: null,\n current: null\n },\n direction: null\n }, this._states = {\n current: {},\n tags: {\n initializing: [\"busy\"],\n animating: [\"busy\"],\n dragging: [\"interacting\"]\n }\n }, a.each([\"onResize\", \"onThrottledResize\"], a.proxy(function (b, c) {\n this._handlers[c] = a.proxy(this[c], this);\n }, this)), a.each(e.Plugins, a.proxy(function (a, b) {\n this._plugins[a.charAt(0).toLowerCase() + a.slice(1)] = new b(this);\n }, this)), a.each(e.Workers, a.proxy(function (b, c) {\n this._pipe.push({\n filter: c.filter,\n run: a.proxy(c.run, this)\n });\n }, this)), this.setup(), this.initialize();\n }\n\n e.Defaults = {\n items: 3,\n loop: !1,\n center: !1,\n rewind: !1,\n checkVisibility: !0,\n mouseDrag: !0,\n touchDrag: !0,\n pullDrag: !0,\n freeDrag: !1,\n margin: 0,\n stagePadding: 0,\n merge: !1,\n mergeFit: !0,\n autoWidth: !1,\n startPosition: 0,\n rtl: !1,\n smartSpeed: 250,\n fluidSpeed: !1,\n dragEndSpeed: !1,\n responsive: {},\n responsiveRefreshRate: 200,\n responsiveBaseElement: b,\n fallbackEasing: \"swing\",\n info: !1,\n nestedItemSelector: !1,\n itemElement: \"div\",\n stageElement: \"div\",\n refreshClass: \"owl-refresh\",\n loadedClass: \"owl-loaded\",\n loadingClass: \"owl-loading\",\n rtlClass: \"owl-rtl\",\n responsiveClass: \"owl-responsive\",\n dragClass: \"owl-drag\",\n itemClass: \"owl-item\",\n stageClass: \"owl-stage\",\n stageOuterClass: \"owl-stage-outer\",\n grabClass: \"owl-grab\"\n }, e.Width = {\n Default: \"default\",\n Inner: \"inner\",\n Outer: \"outer\"\n }, e.Type = {\n Event: \"event\",\n State: \"state\"\n }, e.Plugins = {}, e.Workers = [{\n filter: [\"width\", \"settings\"],\n run: function () {\n this._width = this.$element.width();\n }\n }, {\n filter: [\"width\", \"items\", \"settings\"],\n run: function (a) {\n a.current = this._items && this._items[this.relative(this._current)];\n }\n }, {\n filter: [\"items\", \"settings\"],\n run: function () {\n this.$stage.children(\".cloned\").remove();\n }\n }, {\n filter: [\"width\", \"items\", \"settings\"],\n run: function (a) {\n var b = this.settings.margin || \"\",\n c = !this.settings.autoWidth,\n d = this.settings.rtl,\n e = {\n width: \"auto\",\n \"margin-left\": d ? b : \"\",\n \"margin-right\": d ? \"\" : b\n };\n !c && this.$stage.children().css(e), a.css = e;\n }\n }, {\n filter: [\"width\", \"items\", \"settings\"],\n run: function (a) {\n var b = (this.width() / this.settings.items).toFixed(3) - this.settings.margin,\n c = null,\n d = this._items.length,\n e = !this.settings.autoWidth,\n f = [];\n\n for (a.items = {\n merge: !1,\n width: b\n }; d--;) c = this._mergers[d], c = this.settings.mergeFit && Math.min(c, this.settings.items) || c, a.items.merge = c > 1 || a.items.merge, f[d] = e ? b * c : this._items[d].width();\n\n this._widths = f;\n }\n }, {\n filter: [\"items\", \"settings\"],\n run: function () {\n var b = [],\n c = this._items,\n d = this.settings,\n e = Math.max(2 * d.items, 4),\n f = 2 * Math.ceil(c.length / 2),\n g = d.loop && c.length ? d.rewind ? e : Math.max(e, f) : 0,\n h = \"\",\n i = \"\";\n\n for (g /= 2; g > 0;) b.push(this.normalize(b.length / 2, !0)), h += c[b[b.length - 1]][0].outerHTML, b.push(this.normalize(c.length - 1 - (b.length - 1) / 2, !0)), i = c[b[b.length - 1]][0].outerHTML + i, g -= 1;\n\n this._clones = b, a(h).addClass(\"cloned\").appendTo(this.$stage), a(i).addClass(\"cloned\").prependTo(this.$stage);\n }\n }, {\n filter: [\"width\", \"items\", \"settings\"],\n run: function () {\n for (var a = this.settings.rtl ? 1 : -1, b = this._clones.length + this._items.length, c = -1, d = 0, e = 0, f = []; ++c < b;) d = f[c - 1] || 0, e = this._widths[this.relative(c)] + this.settings.margin, f.push(d + e * a);\n\n this._coordinates = f;\n }\n }, {\n filter: [\"width\", \"items\", \"settings\"],\n run: function () {\n var a = this.settings.stagePadding,\n b = this._coordinates,\n c = {\n width: Math.ceil(Math.abs(b[b.length - 1])) + 2 * a,\n \"padding-left\": a || \"\",\n \"padding-right\": a || \"\"\n };\n this.$stage.css(c);\n }\n }, {\n filter: [\"width\", \"items\", \"settings\"],\n run: function (a) {\n var b = this._coordinates.length,\n c = !this.settings.autoWidth,\n d = this.$stage.children();\n if (c && a.items.merge) for (; b--;) a.css.width = this._widths[this.relative(b)], d.eq(b).css(a.css);else c && (a.css.width = a.items.width, d.css(a.css));\n }\n }, {\n filter: [\"items\"],\n run: function () {\n this._coordinates.length < 1 && this.$stage.removeAttr(\"style\");\n }\n }, {\n filter: [\"width\", \"items\", \"settings\"],\n run: function (a) {\n a.current = a.current ? this.$stage.children().index(a.current) : 0, a.current = Math.max(this.minimum(), Math.min(this.maximum(), a.current)), this.reset(a.current);\n }\n }, {\n filter: [\"position\"],\n run: function () {\n this.animate(this.coordinates(this._current));\n }\n }, {\n filter: [\"width\", \"position\", \"items\", \"settings\"],\n run: function () {\n var a,\n b,\n c,\n d,\n e = this.settings.rtl ? 1 : -1,\n f = 2 * this.settings.stagePadding,\n g = this.coordinates(this.current()) + f,\n h = g + this.width() * e,\n i = [];\n\n for (c = 0, d = this._coordinates.length; c < d; c++) a = this._coordinates[c - 1] || 0, b = Math.abs(this._coordinates[c]) + f * e, (this.op(a, \"<=\", g) && this.op(a, \">\", h) || this.op(b, \"<\", g) && this.op(b, \">\", h)) && i.push(c);\n\n this.$stage.children(\".active\").removeClass(\"active\"), this.$stage.children(\":eq(\" + i.join(\"), :eq(\") + \")\").addClass(\"active\"), this.$stage.children(\".center\").removeClass(\"center\"), this.settings.center && this.$stage.children().eq(this.current()).addClass(\"center\");\n }\n }], e.prototype.initializeStage = function () {\n this.$stage = this.$element.find(\".\" + this.settings.stageClass), this.$stage.length || (this.$element.addClass(this.options.loadingClass), this.$stage = a(\"<\" + this.settings.stageElement + ' class=\"' + this.settings.stageClass + '\"/>').wrap('
'), this.$element.append(this.$stage.parent()));\n }, e.prototype.initializeItems = function () {\n var b = this.$element.find(\".owl-item\");\n if (b.length) return this._items = b.get().map(function (b) {\n return a(b);\n }), this._mergers = this._items.map(function () {\n return 1;\n }), void this.refresh();\n this.replace(this.$element.children().not(this.$stage.parent())), this.isVisible() ? this.refresh() : this.invalidate(\"width\"), this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass);\n }, e.prototype.initialize = function () {\n if (this.enter(\"initializing\"), this.trigger(\"initialize\"), this.$element.toggleClass(this.settings.rtlClass, this.settings.rtl), this.settings.autoWidth && !this.is(\"pre-loading\")) {\n var a, b, c;\n a = this.$element.find(\"img\"), b = this.settings.nestedItemSelector ? \".\" + this.settings.nestedItemSelector : d, c = this.$element.children(b).width(), a.length && c <= 0 && this.preloadAutoWidthImages(a);\n }\n\n this.initializeStage(), this.initializeItems(), this.registerEventHandlers(), this.leave(\"initializing\"), this.trigger(\"initialized\");\n }, e.prototype.isVisible = function () {\n return !this.settings.checkVisibility || this.$element.is(\":visible\");\n }, e.prototype.setup = function () {\n var b = this.viewport(),\n c = this.options.responsive,\n d = -1,\n e = null;\n c ? (a.each(c, function (a) {\n a <= b && a > d && (d = Number(a));\n }), e = a.extend({}, this.options, c[d]), \"function\" == typeof e.stagePadding && (e.stagePadding = e.stagePadding()), delete e.responsive, e.responsiveClass && this.$element.attr(\"class\", this.$element.attr(\"class\").replace(new RegExp(\"(\" + this.options.responsiveClass + \"-)\\\\S+\\\\s\", \"g\"), \"$1\" + d))) : e = a.extend({}, this.options), this.trigger(\"change\", {\n property: {\n name: \"settings\",\n value: e\n }\n }), this._breakpoint = d, this.settings = e, this.invalidate(\"settings\"), this.trigger(\"changed\", {\n property: {\n name: \"settings\",\n value: this.settings\n }\n });\n }, e.prototype.optionsLogic = function () {\n this.settings.autoWidth && (this.settings.stagePadding = !1, this.settings.merge = !1);\n }, e.prototype.prepare = function (b) {\n var c = this.trigger(\"prepare\", {\n content: b\n });\n return c.data || (c.data = a(\"<\" + this.settings.itemElement + \"/>\").addClass(this.options.itemClass).append(b)), this.trigger(\"prepared\", {\n content: c.data\n }), c.data;\n }, e.prototype.update = function () {\n for (var b = 0, c = this._pipe.length, d = a.proxy(function (a) {\n return this[a];\n }, this._invalidated), e = {}; b < c;) (this._invalidated.all || a.grep(this._pipe[b].filter, d).length > 0) && this._pipe[b].run(e), b++;\n\n this._invalidated = {}, !this.is(\"valid\") && this.enter(\"valid\");\n }, e.prototype.width = function (a) {\n switch (a = a || e.Width.Default) {\n case e.Width.Inner:\n case e.Width.Outer:\n return this._width;\n\n default:\n return this._width - 2 * this.settings.stagePadding + this.settings.margin;\n }\n }, e.prototype.refresh = function () {\n this.enter(\"refreshing\"), this.trigger(\"refresh\"), this.setup(), this.optionsLogic(), this.$element.addClass(this.options.refreshClass), this.update(), this.$element.removeClass(this.options.refreshClass), this.leave(\"refreshing\"), this.trigger(\"refreshed\");\n }, e.prototype.onThrottledResize = function () {\n b.clearTimeout(this.resizeTimer), this.resizeTimer = b.setTimeout(this._handlers.onResize, this.settings.responsiveRefreshRate);\n }, e.prototype.onResize = function () {\n return !!this._items.length && this._width !== this.$element.width() && !!this.isVisible() && (this.enter(\"resizing\"), this.trigger(\"resize\").isDefaultPrevented() ? (this.leave(\"resizing\"), !1) : (this.invalidate(\"width\"), this.refresh(), this.leave(\"resizing\"), void this.trigger(\"resized\")));\n }, e.prototype.registerEventHandlers = function () {\n a.support.transition && this.$stage.on(a.support.transition.end + \".owl.core\", a.proxy(this.onTransitionEnd, this)), !1 !== this.settings.responsive && this.on(b, \"resize\", this._handlers.onThrottledResize), this.settings.mouseDrag && (this.$element.addClass(this.options.dragClass), this.$stage.on(\"mousedown.owl.core\", a.proxy(this.onDragStart, this)), this.$stage.on(\"dragstart.owl.core selectstart.owl.core\", function () {\n return !1;\n })), this.settings.touchDrag && (this.$stage.on(\"touchstart.owl.core\", a.proxy(this.onDragStart, this)), this.$stage.on(\"touchcancel.owl.core\", a.proxy(this.onDragEnd, this)));\n }, e.prototype.onDragStart = function (b) {\n var d = null;\n 3 !== b.which && (a.support.transform ? (d = this.$stage.css(\"transform\").replace(/.*\\(|\\)| /g, \"\").split(\",\"), d = {\n x: d[16 === d.length ? 12 : 4],\n y: d[16 === d.length ? 13 : 5]\n }) : (d = this.$stage.position(), d = {\n x: this.settings.rtl ? d.left + this.$stage.width() - this.width() + this.settings.margin : d.left,\n y: d.top\n }), this.is(\"animating\") && (a.support.transform ? this.animate(d.x) : this.$stage.stop(), this.invalidate(\"position\")), this.$element.toggleClass(this.options.grabClass, \"mousedown\" === b.type), this.speed(0), this._drag.time = new Date().getTime(), this._drag.target = a(b.target), this._drag.stage.start = d, this._drag.stage.current = d, this._drag.pointer = this.pointer(b), a(c).on(\"mouseup.owl.core touchend.owl.core\", a.proxy(this.onDragEnd, this)), a(c).one(\"mousemove.owl.core touchmove.owl.core\", a.proxy(function (b) {\n var d = this.difference(this._drag.pointer, this.pointer(b));\n a(c).on(\"mousemove.owl.core touchmove.owl.core\", a.proxy(this.onDragMove, this)), Math.abs(d.x) < Math.abs(d.y) && this.is(\"valid\") || (b.preventDefault(), this.enter(\"dragging\"), this.trigger(\"drag\"));\n }, this)));\n }, e.prototype.onDragMove = function (a) {\n var b = null,\n c = null,\n d = null,\n e = this.difference(this._drag.pointer, this.pointer(a)),\n f = this.difference(this._drag.stage.start, e);\n this.is(\"dragging\") && (a.preventDefault(), this.settings.loop ? (b = this.coordinates(this.minimum()), c = this.coordinates(this.maximum() + 1) - b, f.x = ((f.x - b) % c + c) % c + b) : (b = this.settings.rtl ? this.coordinates(this.maximum()) : this.coordinates(this.minimum()), c = this.settings.rtl ? this.coordinates(this.minimum()) : this.coordinates(this.maximum()), d = this.settings.pullDrag ? -1 * e.x / 5 : 0, f.x = Math.max(Math.min(f.x, b + d), c + d)), this._drag.stage.current = f, this.animate(f.x));\n }, e.prototype.onDragEnd = function (b) {\n var d = this.difference(this._drag.pointer, this.pointer(b)),\n e = this._drag.stage.current,\n f = d.x > 0 ^ this.settings.rtl ? \"left\" : \"right\";\n a(c).off(\".owl.core\"), this.$element.removeClass(this.options.grabClass), (0 !== d.x && this.is(\"dragging\") || !this.is(\"valid\")) && (this.speed(this.settings.dragEndSpeed || this.settings.smartSpeed), this.current(this.closest(e.x, 0 !== d.x ? f : this._drag.direction)), this.invalidate(\"position\"), this.update(), this._drag.direction = f, (Math.abs(d.x) > 3 || new Date().getTime() - this._drag.time > 300) && this._drag.target.one(\"click.owl.core\", function () {\n return !1;\n })), this.is(\"dragging\") && (this.leave(\"dragging\"), this.trigger(\"dragged\"));\n }, e.prototype.closest = function (b, c) {\n var e = -1,\n f = 30,\n g = this.width(),\n h = this.coordinates();\n return this.settings.freeDrag || a.each(h, a.proxy(function (a, i) {\n return \"left\" === c && b > i - f && b < i + f ? e = a : \"right\" === c && b > i - g - f && b < i - g + f ? e = a + 1 : this.op(b, \"<\", i) && this.op(b, \">\", h[a + 1] !== d ? h[a + 1] : i - g) && (e = \"left\" === c ? a + 1 : a), -1 === e;\n }, this)), this.settings.loop || (this.op(b, \">\", h[this.minimum()]) ? e = b = this.minimum() : this.op(b, \"<\", h[this.maximum()]) && (e = b = this.maximum())), e;\n }, e.prototype.animate = function (b) {\n var c = this.speed() > 0;\n this.is(\"animating\") && this.onTransitionEnd(), c && (this.enter(\"animating\"), this.trigger(\"translate\")), a.support.transform3d && a.support.transition ? this.$stage.css({\n transform: \"translate3d(\" + b + \"px,0px,0px)\",\n transition: this.speed() / 1e3 + \"s\"\n }) : c ? this.$stage.animate({\n left: b + \"px\"\n }, this.speed(), this.settings.fallbackEasing, a.proxy(this.onTransitionEnd, this)) : this.$stage.css({\n left: b + \"px\"\n });\n }, e.prototype.is = function (a) {\n return this._states.current[a] && this._states.current[a] > 0;\n }, e.prototype.current = function (a) {\n if (a === d) return this._current;\n if (0 === this._items.length) return d;\n\n if (a = this.normalize(a), this._current !== a) {\n var b = this.trigger(\"change\", {\n property: {\n name: \"position\",\n value: a\n }\n });\n b.data !== d && (a = this.normalize(b.data)), this._current = a, this.invalidate(\"position\"), this.trigger(\"changed\", {\n property: {\n name: \"position\",\n value: this._current\n }\n });\n }\n\n return this._current;\n }, e.prototype.invalidate = function (b) {\n return \"string\" === a.type(b) && (this._invalidated[b] = !0, this.is(\"valid\") && this.leave(\"valid\")), a.map(this._invalidated, function (a, b) {\n return b;\n });\n }, e.prototype.reset = function (a) {\n (a = this.normalize(a)) !== d && (this._speed = 0, this._current = a, this.suppress([\"translate\", \"translated\"]), this.animate(this.coordinates(a)), this.release([\"translate\", \"translated\"]));\n }, e.prototype.normalize = function (a, b) {\n var c = this._items.length,\n e = b ? 0 : this._clones.length;\n return !this.isNumeric(a) || c < 1 ? a = d : (a < 0 || a >= c + e) && (a = ((a - e / 2) % c + c) % c + e / 2), a;\n }, e.prototype.relative = function (a) {\n return a -= this._clones.length / 2, this.normalize(a, !0);\n }, e.prototype.maximum = function (a) {\n var b,\n c,\n d,\n e = this.settings,\n f = this._coordinates.length;\n if (e.loop) f = this._clones.length / 2 + this._items.length - 1;else if (e.autoWidth || e.merge) {\n if (b = this._items.length) for (c = this._items[--b].width(), d = this.$element.width(); b-- && !((c += this._items[b].width() + this.settings.margin) > d););\n f = b + 1;\n } else f = e.center ? this._items.length - 1 : this._items.length - e.items;\n return a && (f -= this._clones.length / 2), Math.max(f, 0);\n }, e.prototype.minimum = function (a) {\n return a ? 0 : this._clones.length / 2;\n }, e.prototype.items = function (a) {\n return a === d ? this._items.slice() : (a = this.normalize(a, !0), this._items[a]);\n }, e.prototype.mergers = function (a) {\n return a === d ? this._mergers.slice() : (a = this.normalize(a, !0), this._mergers[a]);\n }, e.prototype.clones = function (b) {\n var c = this._clones.length / 2,\n e = c + this._items.length,\n f = function (a) {\n return a % 2 == 0 ? e + a / 2 : c - (a + 1) / 2;\n };\n\n return b === d ? a.map(this._clones, function (a, b) {\n return f(b);\n }) : a.map(this._clones, function (a, c) {\n return a === b ? f(c) : null;\n });\n }, e.prototype.speed = function (a) {\n return a !== d && (this._speed = a), this._speed;\n }, e.prototype.coordinates = function (b) {\n var c,\n e = 1,\n f = b - 1;\n return b === d ? a.map(this._coordinates, a.proxy(function (a, b) {\n return this.coordinates(b);\n }, this)) : (this.settings.center ? (this.settings.rtl && (e = -1, f = b + 1), c = this._coordinates[b], c += (this.width() - c + (this._coordinates[f] || 0)) / 2 * e) : c = this._coordinates[f] || 0, c = Math.ceil(c));\n }, e.prototype.duration = function (a, b, c) {\n return 0 === c ? 0 : Math.min(Math.max(Math.abs(b - a), 1), 6) * Math.abs(c || this.settings.smartSpeed);\n }, e.prototype.to = function (a, b) {\n var c = this.current(),\n d = null,\n e = a - this.relative(c),\n f = (e > 0) - (e < 0),\n g = this._items.length,\n h = this.minimum(),\n i = this.maximum();\n this.settings.loop ? (!this.settings.rewind && Math.abs(e) > g / 2 && (e += -1 * f * g), a = c + e, (d = ((a - h) % g + g) % g + h) !== a && d - e <= i && d - e > 0 && (c = d - e, a = d, this.reset(c))) : this.settings.rewind ? (i += 1, a = (a % i + i) % i) : a = Math.max(h, Math.min(i, a)), this.speed(this.duration(c, a, b)), this.current(a), this.isVisible() && this.update();\n }, e.prototype.next = function (a) {\n a = a || !1, this.to(this.relative(this.current()) + 1, a);\n }, e.prototype.prev = function (a) {\n a = a || !1, this.to(this.relative(this.current()) - 1, a);\n }, e.prototype.onTransitionEnd = function (a) {\n if (a !== d && (a.stopPropagation(), (a.target || a.srcElement || a.originalTarget) !== this.$stage.get(0))) return !1;\n this.leave(\"animating\"), this.trigger(\"translated\");\n }, e.prototype.viewport = function () {\n var d;\n return this.options.responsiveBaseElement !== b ? d = a(this.options.responsiveBaseElement).width() : b.innerWidth ? d = b.innerWidth : c.documentElement && c.documentElement.clientWidth ? d = c.documentElement.clientWidth : console.warn(\"Can not detect viewport width.\"), d;\n }, e.prototype.replace = function (b) {\n this.$stage.empty(), this._items = [], b && (b = b instanceof jQuery ? b : a(b)), this.settings.nestedItemSelector && (b = b.find(\".\" + this.settings.nestedItemSelector)), b.filter(function () {\n return 1 === this.nodeType;\n }).each(a.proxy(function (a, b) {\n b = this.prepare(b), this.$stage.append(b), this._items.push(b), this._mergers.push(1 * b.find(\"[data-merge]\").addBack(\"[data-merge]\").attr(\"data-merge\") || 1);\n }, this)), this.reset(this.isNumeric(this.settings.startPosition) ? this.settings.startPosition : 0), this.invalidate(\"items\");\n }, e.prototype.add = function (b, c) {\n var e = this.relative(this._current);\n c = c === d ? this._items.length : this.normalize(c, !0), b = b instanceof jQuery ? b : a(b), this.trigger(\"add\", {\n content: b,\n position: c\n }), b = this.prepare(b), 0 === this._items.length || c === this._items.length ? (0 === this._items.length && this.$stage.append(b), 0 !== this._items.length && this._items[c - 1].after(b), this._items.push(b), this._mergers.push(1 * b.find(\"[data-merge]\").addBack(\"[data-merge]\").attr(\"data-merge\") || 1)) : (this._items[c].before(b), this._items.splice(c, 0, b), this._mergers.splice(c, 0, 1 * b.find(\"[data-merge]\").addBack(\"[data-merge]\").attr(\"data-merge\") || 1)), this._items[e] && this.reset(this._items[e].index()), this.invalidate(\"items\"), this.trigger(\"added\", {\n content: b,\n position: c\n });\n }, e.prototype.remove = function (a) {\n (a = this.normalize(a, !0)) !== d && (this.trigger(\"remove\", {\n content: this._items[a],\n position: a\n }), this._items[a].remove(), this._items.splice(a, 1), this._mergers.splice(a, 1), this.invalidate(\"items\"), this.trigger(\"removed\", {\n content: null,\n position: a\n }));\n }, e.prototype.preloadAutoWidthImages = function (b) {\n b.each(a.proxy(function (b, c) {\n this.enter(\"pre-loading\"), c = a(c), a(new Image()).one(\"load\", a.proxy(function (a) {\n c.attr(\"src\", a.target.src), c.css(\"opacity\", 1), this.leave(\"pre-loading\"), !this.is(\"pre-loading\") && !this.is(\"initializing\") && this.refresh();\n }, this)).attr(\"src\", c.attr(\"src\") || c.attr(\"data-src\") || c.attr(\"data-src-retina\"));\n }, this));\n }, e.prototype.destroy = function () {\n this.$element.off(\".owl.core\"), this.$stage.off(\".owl.core\"), a(c).off(\".owl.core\"), !1 !== this.settings.responsive && (b.clearTimeout(this.resizeTimer), this.off(b, \"resize\", this._handlers.onThrottledResize));\n\n for (var d in this._plugins) this._plugins[d].destroy();\n\n this.$stage.children(\".cloned\").remove(), this.$stage.unwrap(), this.$stage.children().contents().unwrap(), this.$stage.children().unwrap(), this.$stage.remove(), this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr(\"class\", this.$element.attr(\"class\").replace(new RegExp(this.options.responsiveClass + \"-\\\\S+\\\\s\", \"g\"), \"\")).removeData(\"owl.carousel\");\n }, e.prototype.op = function (a, b, c) {\n var d = this.settings.rtl;\n\n switch (b) {\n case \"<\":\n return d ? a > c : a < c;\n\n case \">\":\n return d ? a < c : a > c;\n\n case \">=\":\n return d ? a <= c : a >= c;\n\n case \"<=\":\n return d ? a >= c : a <= c;\n }\n }, e.prototype.on = function (a, b, c, d) {\n a.addEventListener ? a.addEventListener(b, c, d) : a.attachEvent && a.attachEvent(\"on\" + b, c);\n }, e.prototype.off = function (a, b, c, d) {\n a.removeEventListener ? a.removeEventListener(b, c, d) : a.detachEvent && a.detachEvent(\"on\" + b, c);\n }, e.prototype.trigger = function (b, c, d, f, g) {\n var h = {\n item: {\n count: this._items.length,\n index: this.current()\n }\n },\n i = a.camelCase(a.grep([\"on\", b, d], function (a) {\n return a;\n }).join(\"-\").toLowerCase()),\n j = a.Event([b, \"owl\", d || \"carousel\"].join(\".\").toLowerCase(), a.extend({\n relatedTarget: this\n }, h, c));\n return this._supress[b] || (a.each(this._plugins, function (a, b) {\n b.onTrigger && b.onTrigger(j);\n }), this.register({\n type: e.Type.Event,\n name: b\n }), this.$element.trigger(j), this.settings && \"function\" == typeof this.settings[i] && this.settings[i].call(this, j)), j;\n }, e.prototype.enter = function (b) {\n a.each([b].concat(this._states.tags[b] || []), a.proxy(function (a, b) {\n this._states.current[b] === d && (this._states.current[b] = 0), this._states.current[b]++;\n }, this));\n }, e.prototype.leave = function (b) {\n a.each([b].concat(this._states.tags[b] || []), a.proxy(function (a, b) {\n this._states.current[b]--;\n }, this));\n }, e.prototype.register = function (b) {\n if (b.type === e.Type.Event) {\n if (a.event.special[b.name] || (a.event.special[b.name] = {}), !a.event.special[b.name].owl) {\n var c = a.event.special[b.name]._default;\n a.event.special[b.name]._default = function (a) {\n return !c || !c.apply || a.namespace && -1 !== a.namespace.indexOf(\"owl\") ? a.namespace && a.namespace.indexOf(\"owl\") > -1 : c.apply(this, arguments);\n }, a.event.special[b.name].owl = !0;\n }\n } else b.type === e.Type.State && (this._states.tags[b.name] ? this._states.tags[b.name] = this._states.tags[b.name].concat(b.tags) : this._states.tags[b.name] = b.tags, this._states.tags[b.name] = a.grep(this._states.tags[b.name], a.proxy(function (c, d) {\n return a.inArray(c, this._states.tags[b.name]) === d;\n }, this)));\n }, e.prototype.suppress = function (b) {\n a.each(b, a.proxy(function (a, b) {\n this._supress[b] = !0;\n }, this));\n }, e.prototype.release = function (b) {\n a.each(b, a.proxy(function (a, b) {\n delete this._supress[b];\n }, this));\n }, e.prototype.pointer = function (a) {\n var c = {\n x: null,\n y: null\n };\n return a = a.originalEvent || a || b.event, a = a.touches && a.touches.length ? a.touches[0] : a.changedTouches && a.changedTouches.length ? a.changedTouches[0] : a, a.pageX ? (c.x = a.pageX, c.y = a.pageY) : (c.x = a.clientX, c.y = a.clientY), c;\n }, e.prototype.isNumeric = function (a) {\n return !isNaN(parseFloat(a));\n }, e.prototype.difference = function (a, b) {\n return {\n x: a.x - b.x,\n y: a.y - b.y\n };\n }, a.fn.owlCarousel = function (b) {\n var c = Array.prototype.slice.call(arguments, 1);\n return this.each(function () {\n var d = a(this),\n f = d.data(\"owl.carousel\");\n f || (f = new e(this, \"object\" == typeof b && b), d.data(\"owl.carousel\", f), a.each([\"next\", \"prev\", \"to\", \"destroy\", \"refresh\", \"replace\", \"add\", \"remove\"], function (b, c) {\n f.register({\n type: e.Type.Event,\n name: c\n }), f.$element.on(c + \".owl.carousel.core\", a.proxy(function (a) {\n a.namespace && a.relatedTarget !== this && (this.suppress([c]), f[c].apply(this, [].slice.call(arguments, 1)), this.release([c]));\n }, f));\n })), \"string\" == typeof b && \"_\" !== b.charAt(0) && f[b].apply(f, c);\n });\n }, a.fn.owlCarousel.Constructor = e;\n}(window.Zepto || window.jQuery, window, document), function (a, b, c, d) {\n var e = function (b) {\n this._core = b, this._interval = null, this._visible = null, this._handlers = {\n \"initialized.owl.carousel\": a.proxy(function (a) {\n a.namespace && this._core.settings.autoRefresh && this.watch();\n }, this)\n }, this._core.options = a.extend({}, e.Defaults, this._core.options), this._core.$element.on(this._handlers);\n };\n\n e.Defaults = {\n autoRefresh: !0,\n autoRefreshInterval: 500\n }, e.prototype.watch = function () {\n this._interval || (this._visible = this._core.isVisible(), this._interval = b.setInterval(a.proxy(this.refresh, this), this._core.settings.autoRefreshInterval));\n }, e.prototype.refresh = function () {\n this._core.isVisible() !== this._visible && (this._visible = !this._visible, this._core.$element.toggleClass(\"owl-hidden\", !this._visible), this._visible && this._core.invalidate(\"width\") && this._core.refresh());\n }, e.prototype.destroy = function () {\n var a, c;\n b.clearInterval(this._interval);\n\n for (a in this._handlers) this._core.$element.off(a, this._handlers[a]);\n\n for (c in Object.getOwnPropertyNames(this)) \"function\" != typeof this[c] && (this[c] = null);\n }, a.fn.owlCarousel.Constructor.Plugins.AutoRefresh = e;\n}(window.Zepto || window.jQuery, window, document), function (a, b, c, d) {\n var e = function (b) {\n this._core = b, this._loaded = [], this._handlers = {\n \"initialized.owl.carousel change.owl.carousel resized.owl.carousel\": a.proxy(function (b) {\n if (b.namespace && this._core.settings && this._core.settings.lazyLoad && (b.property && \"position\" == b.property.name || \"initialized\" == b.type)) for (var c = this._core.settings, e = c.center && Math.ceil(c.items / 2) || c.items, f = c.center && -1 * e || 0, g = (b.property && b.property.value !== d ? b.property.value : this._core.current()) + f, h = this._core.clones().length, i = a.proxy(function (a, b) {\n this.load(b);\n }, this); f++ < e;) this.load(h / 2 + this._core.relative(g)), h && a.each(this._core.clones(this._core.relative(g)), i), g++;\n }, this)\n }, this._core.options = a.extend({}, e.Defaults, this._core.options), this._core.$element.on(this._handlers);\n };\n\n e.Defaults = {\n lazyLoad: !1\n }, e.prototype.load = function (c) {\n var d = this._core.$stage.children().eq(c),\n e = d && d.find(\".owl-lazy\");\n\n !e || a.inArray(d.get(0), this._loaded) > -1 || (e.each(a.proxy(function (c, d) {\n var e,\n f = a(d),\n g = b.devicePixelRatio > 1 && f.attr(\"data-src-retina\") || f.attr(\"data-src\") || f.attr(\"data-srcset\");\n this._core.trigger(\"load\", {\n element: f,\n url: g\n }, \"lazy\"), f.is(\"img\") ? f.one(\"load.owl.lazy\", a.proxy(function () {\n f.css(\"opacity\", 1), this._core.trigger(\"loaded\", {\n element: f,\n url: g\n }, \"lazy\");\n }, this)).attr(\"src\", g) : f.is(\"source\") ? f.one(\"load.owl.lazy\", a.proxy(function () {\n this._core.trigger(\"loaded\", {\n element: f,\n url: g\n }, \"lazy\");\n }, this)).attr(\"srcset\", g) : (e = new Image(), e.onload = a.proxy(function () {\n f.css({\n \"background-image\": 'url(\"' + g + '\")',\n opacity: \"1\"\n }), this._core.trigger(\"loaded\", {\n element: f,\n url: g\n }, \"lazy\");\n }, this), e.src = g);\n }, this)), this._loaded.push(d.get(0)));\n }, e.prototype.destroy = function () {\n var a, b;\n\n for (a in this.handlers) this._core.$element.off(a, this.handlers[a]);\n\n for (b in Object.getOwnPropertyNames(this)) \"function\" != typeof this[b] && (this[b] = null);\n }, a.fn.owlCarousel.Constructor.Plugins.Lazy = e;\n}(window.Zepto || window.jQuery, window, document), function (a, b, c, d) {\n var e = function (c) {\n this._core = c, this._handlers = {\n \"initialized.owl.carousel refreshed.owl.carousel\": a.proxy(function (a) {\n a.namespace && this._core.settings.autoHeight && this.update();\n }, this),\n \"changed.owl.carousel\": a.proxy(function (a) {\n a.namespace && this._core.settings.autoHeight && \"position\" === a.property.name && (console.log(\"update called\"), this.update());\n }, this),\n \"loaded.owl.lazy\": a.proxy(function (a) {\n a.namespace && this._core.settings.autoHeight && a.element.closest(\".\" + this._core.settings.itemClass).index() === this._core.current() && this.update();\n }, this)\n }, this._core.options = a.extend({}, e.Defaults, this._core.options), this._core.$element.on(this._handlers), this._intervalId = null;\n var d = this;\n a(b).on(\"load\", function () {\n d._core.settings.autoHeight && d.update();\n }), a(b).resize(function () {\n d._core.settings.autoHeight && (null != d._intervalId && clearTimeout(d._intervalId), d._intervalId = setTimeout(function () {\n d.update();\n }, 250));\n });\n };\n\n e.Defaults = {\n autoHeight: !1,\n autoHeightClass: \"owl-height\"\n }, e.prototype.update = function () {\n var b = this._core._current,\n c = b + this._core.settings.items,\n d = this._core.$stage.children().toArray().slice(b, c),\n e = [],\n f = 0;\n\n a.each(d, function (b, c) {\n e.push(a(c).height());\n }), f = Math.max.apply(null, e), this._core.$stage.parent().height(f).addClass(this._core.settings.autoHeightClass);\n }, e.prototype.destroy = function () {\n var a, b;\n\n for (a in this._handlers) this._core.$element.off(a, this._handlers[a]);\n\n for (b in Object.getOwnPropertyNames(this)) \"function\" != typeof this[b] && (this[b] = null);\n }, a.fn.owlCarousel.Constructor.Plugins.AutoHeight = e;\n}(window.Zepto || window.jQuery, window, document), function (a, b, c, d) {\n var e = function (b) {\n this._core = b, this._videos = {}, this._playing = null, this._handlers = {\n \"initialized.owl.carousel\": a.proxy(function (a) {\n a.namespace && this._core.register({\n type: \"state\",\n name: \"playing\",\n tags: [\"interacting\"]\n });\n }, this),\n \"resize.owl.carousel\": a.proxy(function (a) {\n a.namespace && this._core.settings.video && this.isInFullScreen() && a.preventDefault();\n }, this),\n \"refreshed.owl.carousel\": a.proxy(function (a) {\n a.namespace && this._core.is(\"resizing\") && this._core.$stage.find(\".cloned .owl-video-frame\").remove();\n }, this),\n \"changed.owl.carousel\": a.proxy(function (a) {\n a.namespace && \"position\" === a.property.name && this._playing && this.stop();\n }, this),\n \"prepared.owl.carousel\": a.proxy(function (b) {\n if (b.namespace) {\n var c = a(b.content).find(\".owl-video\");\n c.length && (c.css(\"display\", \"none\"), this.fetch(c, a(b.content)));\n }\n }, this)\n }, this._core.options = a.extend({}, e.Defaults, this._core.options), this._core.$element.on(this._handlers), this._core.$element.on(\"click.owl.video\", \".owl-video-play-icon\", a.proxy(function (a) {\n this.play(a);\n }, this));\n };\n\n e.Defaults = {\n video: !1,\n videoHeight: !1,\n videoWidth: !1\n }, e.prototype.fetch = function (a, b) {\n var c = function () {\n return a.attr(\"data-vimeo-id\") ? \"vimeo\" : a.attr(\"data-vzaar-id\") ? \"vzaar\" : \"youtube\";\n }(),\n d = a.attr(\"data-vimeo-id\") || a.attr(\"data-youtube-id\") || a.attr(\"data-vzaar-id\"),\n e = a.attr(\"data-width\") || this._core.settings.videoWidth,\n f = a.attr(\"data-height\") || this._core.settings.videoHeight,\n g = a.attr(\"href\");\n\n if (!g) throw new Error(\"Missing video URL.\");\n if (d = g.match(/(http:|https:|)\\/\\/(player.|www.|app.)?(vimeo\\.com|youtu(be\\.com|\\.be|be\\.googleapis\\.com)|vzaar\\.com)\\/(video\\/|videos\\/|embed\\/|channels\\/.+\\/|groups\\/.+\\/|watch\\?v=|v\\/)?([A-Za-z0-9._%-]*)(\\&\\S+)?/), d[3].indexOf(\"youtu\") > -1) c = \"youtube\";else if (d[3].indexOf(\"vimeo\") > -1) c = \"vimeo\";else {\n if (!(d[3].indexOf(\"vzaar\") > -1)) throw new Error(\"Video URL not supported.\");\n c = \"vzaar\";\n }\n d = d[6], this._videos[g] = {\n type: c,\n id: d,\n width: e,\n height: f\n }, b.attr(\"data-video\", g), this.thumbnail(a, this._videos[g]);\n }, e.prototype.thumbnail = function (b, c) {\n var d,\n e,\n f,\n g = c.width && c.height ? 'style=\"width:' + c.width + \"px;height:\" + c.height + 'px;\"' : \"\",\n h = b.find(\"img\"),\n i = \"src\",\n j = \"\",\n k = this._core.settings,\n l = function (a) {\n e = '
', d = k.lazyLoad ? '
' : '
', b.after(d), b.after(e);\n };\n\n if (b.wrap('
\"), this._core.settings.lazyLoad && (i = \"data-src\", j = \"owl-lazy\"), h.length) return l(h.attr(i)), h.remove(), !1;\n \"youtube\" === c.type ? (f = \"//img.youtube.com/vi/\" + c.id + \"/hqdefault.jpg\", l(f)) : \"vimeo\" === c.type ? a.ajax({\n type: \"GET\",\n url: \"//vimeo.com/api/v2/video/\" + c.id + \".json\",\n jsonp: \"callback\",\n dataType: \"jsonp\",\n success: function (a) {\n f = a[0].thumbnail_large, l(f);\n }\n }) : \"vzaar\" === c.type && a.ajax({\n type: \"GET\",\n url: \"//vzaar.com/api/videos/\" + c.id + \".json\",\n jsonp: \"callback\",\n dataType: \"jsonp\",\n success: function (a) {\n f = a.framegrab_url, l(f);\n }\n });\n }, e.prototype.stop = function () {\n this._core.trigger(\"stop\", null, \"video\"), this._playing.find(\".owl-video-frame\").remove(), this._playing.removeClass(\"owl-video-playing\"), this._playing = null, this._core.leave(\"playing\"), this._core.trigger(\"stopped\", null, \"video\");\n }, e.prototype.play = function (b) {\n var c,\n d = a(b.target),\n e = d.closest(\".\" + this._core.settings.itemClass),\n f = this._videos[e.attr(\"data-video\")],\n g = f.width || \"100%\",\n h = f.height || this._core.$stage.height();\n\n this._playing || (this._core.enter(\"playing\"), this._core.trigger(\"play\", null, \"video\"), e = this._core.items(this._core.relative(e.index())), this._core.reset(e.index()), \"youtube\" === f.type ? c = '' : \"vimeo\" === f.type ? c = '' : \"vzaar\" === f.type && (c = ''), a('
' + c + \"
\").insertAfter(e.find(\".owl-video\")), this._playing = e.addClass(\"owl-video-playing\"));\n }, e.prototype.isInFullScreen = function () {\n var b = c.fullscreenElement || c.mozFullScreenElement || c.webkitFullscreenElement;\n return b && a(b).parent().hasClass(\"owl-video-frame\");\n }, e.prototype.destroy = function () {\n var a, b;\n\n this._core.$element.off(\"click.owl.video\");\n\n for (a in this._handlers) this._core.$element.off(a, this._handlers[a]);\n\n for (b in Object.getOwnPropertyNames(this)) \"function\" != typeof this[b] && (this[b] = null);\n }, a.fn.owlCarousel.Constructor.Plugins.Video = e;\n}(window.Zepto || window.jQuery, window, document), function (a, b, c, d) {\n var e = function (b) {\n this.core = b, this.core.options = a.extend({}, e.Defaults, this.core.options), this.swapping = !0, this.previous = d, this.next = d, this.handlers = {\n \"change.owl.carousel\": a.proxy(function (a) {\n a.namespace && \"position\" == a.property.name && (this.previous = this.core.current(), this.next = a.property.value);\n }, this),\n \"drag.owl.carousel dragged.owl.carousel translated.owl.carousel\": a.proxy(function (a) {\n a.namespace && (this.swapping = \"translated\" == a.type);\n }, this),\n \"translate.owl.carousel\": a.proxy(function (a) {\n a.namespace && this.swapping && (this.core.options.animateOut || this.core.options.animateIn) && this.swap();\n }, this)\n }, this.core.$element.on(this.handlers);\n };\n\n e.Defaults = {\n animateOut: !1,\n animateIn: !1\n }, e.prototype.swap = function () {\n if (1 === this.core.settings.items && a.support.animation && a.support.transition) {\n this.core.speed(0);\n var b,\n c = a.proxy(this.clear, this),\n d = this.core.$stage.children().eq(this.previous),\n e = this.core.$stage.children().eq(this.next),\n f = this.core.settings.animateIn,\n g = this.core.settings.animateOut;\n this.core.current() !== this.previous && (g && (b = this.core.coordinates(this.previous) - this.core.coordinates(this.next), d.one(a.support.animation.end, c).css({\n left: b + \"px\"\n }).addClass(\"animated owl-animated-out\").addClass(g)), f && e.one(a.support.animation.end, c).addClass(\"animated owl-animated-in\").addClass(f));\n }\n }, e.prototype.clear = function (b) {\n a(b.target).css({\n left: \"\"\n }).removeClass(\"animated owl-animated-out owl-animated-in\").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut), this.core.onTransitionEnd();\n }, e.prototype.destroy = function () {\n var a, b;\n\n for (a in this.handlers) this.core.$element.off(a, this.handlers[a]);\n\n for (b in Object.getOwnPropertyNames(this)) \"function\" != typeof this[b] && (this[b] = null);\n }, a.fn.owlCarousel.Constructor.Plugins.Animate = e;\n}(window.Zepto || window.jQuery, window, document), function (a, b, c, d) {\n var e = function (b) {\n this._core = b, this._call = null, this._time = 0, this._timeout = 0, this._paused = !0, this._handlers = {\n \"changed.owl.carousel\": a.proxy(function (a) {\n a.namespace && \"settings\" === a.property.name ? this._core.settings.autoplay ? this.play() : this.stop() : a.namespace && \"position\" === a.property.name && this._paused && (this._time = 0);\n }, this),\n \"initialized.owl.carousel\": a.proxy(function (a) {\n a.namespace && this._core.settings.autoplay && this.play();\n }, this),\n \"play.owl.autoplay\": a.proxy(function (a, b, c) {\n a.namespace && this.play(b, c);\n }, this),\n \"stop.owl.autoplay\": a.proxy(function (a) {\n a.namespace && this.stop();\n }, this),\n \"mouseover.owl.autoplay\": a.proxy(function () {\n this._core.settings.autoplayHoverPause && this._core.is(\"rotating\") && this.pause();\n }, this),\n \"mouseleave.owl.autoplay\": a.proxy(function () {\n this._core.settings.autoplayHoverPause && this._core.is(\"rotating\") && this.play();\n }, this),\n \"touchstart.owl.core\": a.proxy(function () {\n this._core.settings.autoplayHoverPause && this._core.is(\"rotating\") && this.pause();\n }, this),\n \"touchend.owl.core\": a.proxy(function () {\n this._core.settings.autoplayHoverPause && this.play();\n }, this)\n }, this._core.$element.on(this._handlers), this._core.options = a.extend({}, e.Defaults, this._core.options);\n };\n\n e.Defaults = {\n autoplay: !1,\n autoplayTimeout: 5e3,\n autoplayHoverPause: !1,\n autoplaySpeed: !1\n }, e.prototype._next = function (d) {\n this._call = b.setTimeout(a.proxy(this._next, this, d), this._timeout * (Math.round(this.read() / this._timeout) + 1) - this.read()), this._core.is(\"interacting\") || c.hidden || this._core.next(d || this._core.settings.autoplaySpeed);\n }, e.prototype.read = function () {\n return new Date().getTime() - this._time;\n }, e.prototype.play = function (c, d) {\n var e;\n this._core.is(\"rotating\") || this._core.enter(\"rotating\"), c = c || this._core.settings.autoplayTimeout, e = Math.min(this._time % (this._timeout || c), c), this._paused ? (this._time = this.read(), this._paused = !1) : b.clearTimeout(this._call), this._time += this.read() % c - e, this._timeout = c, this._call = b.setTimeout(a.proxy(this._next, this, d), c - e);\n }, e.prototype.stop = function () {\n this._core.is(\"rotating\") && (this._time = 0, this._paused = !0, b.clearTimeout(this._call), this._core.leave(\"rotating\"));\n }, e.prototype.pause = function () {\n this._core.is(\"rotating\") && !this._paused && (this._time = this.read(), this._paused = !0, b.clearTimeout(this._call));\n }, e.prototype.destroy = function () {\n var a, b;\n this.stop();\n\n for (a in this._handlers) this._core.$element.off(a, this._handlers[a]);\n\n for (b in Object.getOwnPropertyNames(this)) \"function\" != typeof this[b] && (this[b] = null);\n }, a.fn.owlCarousel.Constructor.Plugins.autoplay = e;\n}(window.Zepto || window.jQuery, window, document), function (a, b, c, d) {\n \"use strict\";\n\n var e = function (b) {\n this._core = b, this._initialized = !1, this._pages = [], this._controls = {}, this._templates = [], this.$element = this._core.$element, this._overrides = {\n next: this._core.next,\n prev: this._core.prev,\n to: this._core.to\n }, this._handlers = {\n \"prepared.owl.carousel\": a.proxy(function (b) {\n b.namespace && this._core.settings.dotsData && this._templates.push('
' + a(b.content).find(\"[data-dot]\").addBack(\"[data-dot]\").attr(\"data-dot\") + \"
\");\n }, this),\n \"added.owl.carousel\": a.proxy(function (a) {\n a.namespace && this._core.settings.dotsData && this._templates.splice(a.position, 0, this._templates.pop());\n }, this),\n \"remove.owl.carousel\": a.proxy(function (a) {\n a.namespace && this._core.settings.dotsData && this._templates.splice(a.position, 1);\n }, this),\n \"changed.owl.carousel\": a.proxy(function (a) {\n a.namespace && \"position\" == a.property.name && this.draw();\n }, this),\n \"initialized.owl.carousel\": a.proxy(function (a) {\n a.namespace && !this._initialized && (this._core.trigger(\"initialize\", null, \"navigation\"), this.initialize(), this.update(), this.draw(), this._initialized = !0, this._core.trigger(\"initialized\", null, \"navigation\"));\n }, this),\n \"refreshed.owl.carousel\": a.proxy(function (a) {\n a.namespace && this._initialized && (this._core.trigger(\"refresh\", null, \"navigation\"), this.update(), this.draw(), this._core.trigger(\"refreshed\", null, \"navigation\"));\n }, this)\n }, this._core.options = a.extend({}, e.Defaults, this._core.options), this.$element.on(this._handlers);\n };\n\n e.Defaults = {\n nav: !1,\n navText: ['', ''],\n navSpeed: !1,\n navElement: 'button type=\"button\" role=\"presentation\"',\n navContainer: !1,\n navContainerClass: \"owl-nav\",\n navClass: [\"owl-prev\", \"owl-next\"],\n slideBy: 1,\n dotClass: \"owl-dot\",\n dotsClass: \"owl-dots\",\n dots: !0,\n dotsEach: !1,\n dotsData: !1,\n dotsSpeed: !1,\n dotsContainer: !1\n }, e.prototype.initialize = function () {\n var b,\n c = this._core.settings;\n this._controls.$relative = (c.navContainer ? a(c.navContainer) : a(\"
\").addClass(c.navContainerClass).appendTo(this.$element)).addClass(\"disabled\"), this._controls.$previous = a(\"<\" + c.navElement + \">\").addClass(c.navClass[0]).html(c.navText[0]).prependTo(this._controls.$relative).on(\"click\", a.proxy(function (a) {\n this.prev(c.navSpeed);\n }, this)), this._controls.$next = a(\"<\" + c.navElement + \">\").addClass(c.navClass[1]).html(c.navText[1]).appendTo(this._controls.$relative).on(\"click\", a.proxy(function (a) {\n this.next(c.navSpeed);\n }, this)), c.dotsData || (this._templates = [a('
', '
', options, {\n addressList: parentScope\n });\n };\n\n service.dialogOpen = function () {\n modalService.open('modalAddress');\n };\n\n service.dialogClose = function () {\n modalService.close('modalAddress');\n };\n\n service.getDialogScope = function () {\n return modalService.getModal('modalAddress').then(function (dialog) {\n return dialog.modalScope;\n });\n };\n\n service.removeAddress = function (contactId) {\n return $http.post('MyAccount/DeleteCustomerContact', {\n contactId: contactId,\n rnd: Math.random()\n }).then(function (response) {\n return response.data;\n });\n };\n\n service.getAddresses = function () {\n return $http.get('MyAccount/GetCustomerContacts', {\n params: {\n rnd: Math.random()\n }\n }).then(function (response) {\n return response.data;\n });\n };\n\n service.getFields = function (isShowName) {\n return fields != null ? $q.when(fields) : $http.get('MyAccount/GetFieldsForCustomerContacts', {\n params: {\n isShowName: isShowName\n }\n }).then(function (response) {\n return fields = response.data;\n });\n };\n\n service.processAddress = function (address) {\n return $http.post('MyAccount/processAddress', {\n address: address\n }).then(function (response) {\n return response.data;\n });\n };\n\n service.addUpdateCustomerContact = function (account) {\n return $http.post('MyAccount/AddUpdateCustomerContact', {\n account: account,\n rnd: Math.random()\n }).then(function (response) {\n return response.data;\n });\n };\n}\n\n;\nexport default addressService;","import './styles/bonus.scss';\nimport bonusService from './services/bonusService.js';\nimport BonusApplyCtrl from './controllers/bonusApplyController.js';\nimport BonusAuthCtrl from './controllers/bonusAuthController.js';\nimport BonusCodeCtrl from './controllers/bonusCodeController.js';\nimport BonusInfoCtrl from './controllers/bonusInfoController.js';\nimport BonusRegCtrl from './controllers/bonusRegController.js';\nimport BonusWhatToDoCtrl from './controllers/bonusWhatToDoController.js';\nimport { bonusWhatToDoDirective, bonusAuthDirective, bonusRegDirective, bonusApplyDirective, bonusInfoDirective, bonusCodeDirective } from './directives/bonusDirectives.js';\nconst moduleName = 'bonus';\nangular.module(moduleName, []).service('bonusService', bonusService).controller('BonusApplyCtrl', BonusApplyCtrl).controller('BonusAuthCtrl', BonusAuthCtrl).controller('BonusCodeCtrl', BonusCodeCtrl).controller('BonusInfoCtrl', BonusInfoCtrl).controller('BonusRegCtrl', BonusRegCtrl).controller('BonusWhatToDoCtrl', BonusWhatToDoCtrl).directive('bonusWhatToDo', bonusWhatToDoDirective).directive('bonusAuth', bonusAuthDirective).directive('bonusReg', bonusRegDirective).directive('bonusApply', bonusApplyDirective).directive('bonusInfo', bonusInfoDirective).directive('bonusCode', bonusCodeDirective);\nexport default moduleName;","function BonusApplyCtrl() {}\n\n;\nexport default BonusApplyCtrl;","BonusAuthCtrl.$inject = [\"toaster\", \"bonusService\", \"$translate\"];\n\n/* @ngInject */\nfunction BonusAuthCtrl(toaster, bonusService, $translate) {\n var ctrl = this;\n ctrl.isCheckout = ctrl.page === 'checkout';\n\n ctrl.autorize = function () {\n if (ctrl.inProgress === true) {\n return;\n }\n\n ctrl.inProgress = true;\n bonusService.autorize(ctrl.numberCard, ctrl.phone).then(function (response) {\n if (response.error != null && response.error.length > 0) {\n toaster.pop('error', $translate.instant('Js.Bonus.AuthCartError'), response.error);\n } else {\n bonusService.showModalCode(ctrl.check);\n }\n\n ctrl.inProgress = false;\n });\n };\n\n ctrl.check = function (code) {\n bonusService.checkCode(code, ctrl.isCheckout).then(function (bonus) {\n if (bonus.error != null && bonus.error.length > 0) {\n toaster.pop('error', $translate.instant('Js.Bonus.SmsConfirmError'), bonus.error);\n } else {\n bonusService.successModal();\n ctrl.callbackSuccess({\n bonus: bonus\n });\n }\n });\n };\n}\n\n;\nexport default BonusAuthCtrl;","BonusCodeCtrl.$inject = [\"bonusService\"];\n\n/* @ngInject */\nfunction BonusCodeCtrl(bonusService) {\n var ctrl = this,\n callback;\n ctrl.state = 'form';\n\n ctrl.modalInit = function (modal) {\n ctrl.modal = modal;\n };\n\n ctrl.showModal = function () {\n ctrl.modal.open();\n };\n\n ctrl.successModal = function () {\n ctrl.state = 'success';\n };\n\n ctrl.closeModal = function () {\n ctrl.modal.close();\n ctrl.state = 'form';\n };\n\n ctrl.setCallback = function (fn) {\n callback = fn;\n };\n\n ctrl.confirm = function (code) {\n if (callback != null) {\n callback(code);\n }\n };\n\n bonusService.addModalCode(ctrl);\n}\n\n;\nexport default BonusCodeCtrl;","BonusInfoCtrl.$inject = [\"toaster\", \"bonusService\", \"modalService\", \"$translate\"];\n\n/* @ngInject */\nfunction BonusInfoCtrl(toaster, bonusService, modalService, $translate) {\n var ctrl = this,\n isRenderModal = false;\n ctrl.bonusDataMaster = {};\n\n ctrl.save = function () {\n bonusService.updateCard(ctrl.bonusData).then(function (response) {\n if (response.error != null && response.error.length > 0) {\n toaster.pop('error', $translate.instant('Js.Bonus.BonusCartTitle'), response.error);\n } else {\n ctrl.modalDataSave = true;\n ctrl.dialogClose();\n toaster.pop('success', $translate.instant('Js.Bonus.BonusCartTitle'), $translate.instant('Js.Bonus.ChangesSaved'));\n }\n });\n };\n\n ctrl.dialogOpen = function () {\n ctrl.modalDataSave = false;\n angular.copy(ctrl.bonusData, ctrl.bonusDataMaster);\n\n if (isRenderModal === false) {\n modalService.renderModal('modalBonusInfo', $translate.instant('Js.Bonus.BonusCartTitle'), '
', '', {\n isOpen: true,\n modalClass: 'modal-bonus-info',\n callbackClose: 'bonusInfo.dialogReset'\n }, {\n bonusInfo: ctrl\n });\n isRenderModal = true;\n } else {\n modalService.open('modalBonusInfo');\n }\n };\n\n ctrl.dialogClose = function () {\n modalService.close('modalBonusInfo');\n };\n\n ctrl.dialogReset = function () {\n if (ctrl.modalDataSave === false) {\n angular.copy(ctrl.bonusDataMaster, ctrl.bonusData);\n }\n };\n}\n\n;\nexport default BonusInfoCtrl;","BonusRegCtrl.$inject = [\"toaster\", \"bonusService\", \"$translate\"];\n\n/* @ngInject */\nfunction BonusRegCtrl(toaster, bonusService, $translate) {\n var ctrl = this;\n ctrl.cardAdded = false;\n ctrl.isCheckout = ctrl.page === 'checkout';\n bonusService.getDataAgreement().then(function (response) {\n ctrl.isShowUserAgreementText = response.IsShowUserAgreementText;\n ctrl.userAgreementText = response.UserAgreementText;\n });\n\n ctrl.register = function () {\n if (ctrl.inProgress === true) {\n return;\n }\n\n ctrl.inProgress = true;\n bonusService.register(ctrl.phone).then(function (response) {\n if (response.error != null && response.error.length > 0) {\n ctrl.error = response.error;\n } else {\n ctrl.error = null;\n bonusService.showModalCode(ctrl.check);\n }\n\n ctrl.inProgress = false;\n });\n };\n\n ctrl.validate = function () {\n var result = true;\n\n if (typeof ctrl.agreement != \"undefined\" && !ctrl.agreement) {\n toaster.pop('error', $translate.instant('Js.Subscribe.ErrorAgreement'));\n result = false;\n }\n\n return result;\n };\n\n ctrl.check = function (code) {\n //bonusService.newCard(code, ctrl.isCheckout, ctrl.name, ctrl.surname, ctrl.patronymic || '', ctrl.sex || 0, ctrl.birthday, ctrl.phone, ctrl.email || '', ctrl.city || '')\n bonusService.newCard(code, ctrl.isCheckout).then(function (bonus) {\n if (bonus.error != null && bonus.error.length > 0) {\n toaster.pop('error', $translate.instant('Js.Bonus.SmsConfirmError'), bonus.error);\n } else {\n bonusService.successModal();\n ctrl.cardAdded = true;\n ctrl.callbackSuccess({\n bonus: bonus\n });\n }\n });\n };\n}\n\n;\nexport default BonusRegCtrl;","BonusWhatToDoCtrl.$inject = [\"bonusService\", \"toaster\", \"$translate\"];\n\n/* @ngInject */\nfunction BonusWhatToDoCtrl(bonusService, toaster, $translate) {\n var ctrl = this;\n\n ctrl.$onInit = function () {\n ctrl.bonusAvalable = 'not';\n ctrl.activeView = 'none';\n ctrl.isShowPatronymic = ctrl.isShowPatronymic();\n ctrl.isApply = ctrl.isApply();\n ctrl.init();\n };\n\n ctrl.init = function () {\n bonusService.getBonus().then(function (bonus) {\n ctrl.bonusData = bonus;\n\n if (ctrl.bonusData == null) {\n ctrl.activeView = ctrl.page === 'myaccount' ? 'myaccount_newcart' : 'form';\n } else if (ctrl.bonusData != null && ctrl.bonusData.bonus != null && ctrl.bonusData.bonus.Blocked === true) {\n ctrl.activeView = 'blocked';\n } else {\n ctrl.activeView = ctrl.page === 'checkout' ? 'apply' : 'info';\n }\n });\n };\n\n ctrl.signIn = function (bonusData) {\n ctrl.bonusData = bonusData;\n ctrl.activeView = ctrl.page === 'checkout' ? 'apply' : 'info';\n ctrl.autorizeBonus({\n cardNumber: bonusData.bonus.CardNumber\n });\n };\n\n ctrl.changeBonusInterface = function (isApply) {\n ctrl.changeBonus({\n isApply: isApply\n });\n };\n\n ctrl.createBonusCard = function () {\n bonusService.createBonusCard().then(function (data) {\n if (data.result === true) {\n toaster.pop('success', '', $translate.instant('Js.Bonus.BonusCartCreated'));\n } else {\n toaster.pop('error', '', data.error);\n }\n\n ctrl.init();\n });\n };\n}\n\n;\nexport default BonusWhatToDoCtrl;","function bonusWhatToDoDirective() {\n return {\n restrict: 'A',\n scope: {\n page: '@',\n autorizeBonus: '&',\n changeBonus: '&',\n email: '=',\n city: '=',\n outsideName: '=?',\n outsideSurname: '=?',\n outsidePhone: '=?',\n outsidePatronymic: '=?',\n isShowPatronymic: '&',\n isApply: '&',\n bonusPlus: '@'\n },\n controller: 'BonusWhatToDoCtrl',\n controllerAs: 'bonusWhatToDo',\n bindToController: true,\n replace: true,\n templateUrl: '/scripts/_partials/bonus/templates/whatToDo.html'\n };\n}\n\n;\n\nfunction bonusAuthDirective() {\n return {\n restrict: 'A',\n scope: {\n page: '=',\n callbackSuccess: '&',\n outsidePhone: '=?',\n enablePhoneMask: '
');\n document.body.appendChild(bonusCodeEl[0]);\n $compile(bonusCodeEl)($rootScope.$new());\n\n service.addModalCode = function (bonusCode) {\n _bonusCode = bonusCode;\n };\n\n service.showModalCode = function (fn) {\n _bonusCode.setCallback(fn);\n\n _bonusCode.showModal();\n };\n\n service.successModal = function () {\n _bonusCode.successModal();\n };\n\n service.getBonus = function () {\n return $http.get('bonuses/bonusjson', {\n params: {\n rnd: Math.random()\n }\n }).then(function (response) {\n return response.data;\n });\n };\n\n service.createBonusCard = function () {\n return $http.post('bonuses/createbonuscard', {\n params: {\n rnd: Math.random()\n }\n }).then(function (response) {\n return response.data;\n });\n };\n\n service.autorize = function (cardnumber, phone) {\n phone = phone || '';\n return $http.post('bonuses/confirmcard', {\n cardnumber: cardnumber,\n phone: phone.replace(/\\D+/g, ''),\n rnd: Math.random()\n }).then(function (response) {\n return response.data;\n });\n };\n\n service.register = function (phone) {\n return $http.post('bonuses/confirmnewcard', {\n phone: phone.replace(/\\D+/g, ''),\n rnd: Math.random()\n }).then(function (response) {\n return response.data;\n });\n };\n\n service.checkCode = function (code, isCheckout) {\n return $http.post('bonuses/confirmcode', {\n code: code,\n isCheckout: isCheckout,\n rnd: Math.random()\n }).then(function (response) {\n return response.data;\n });\n }; //service.newCard = function (code, isCheckout, firstName, lastName, secondName, gender, birthDay, phone, email, city) {\n\n\n service.newCard = function (code, isCheckout) {\n return $http.post('bonuses/confirmcodefornewcard', {\n code: code,\n isCheckout: isCheckout,\n //firstName: firstName,\n //lastName: lastName,\n //secondName: secondName,\n ///gender: gender,\n //birthDay: birthDay,\n //phone: phone.replace(/\\D+/g, ''),\n //email: email,\n //city: city,\n rnd: Math.random()\n }).then(function (response) {\n return response.data;\n });\n };\n\n service.getDataAgreement = function () {\n return $http.post('Checkout/CheckoutBuyInOneClickFields', {\n rnd: Math.random()\n }).then(function (response) {\n return response.data;\n });\n }; //service.updateCard = function (bonus) {\n // return $http.post('bonuses/updatecard', bonus)\n // .then(function (response) {\n // return response.data;\n // });\n //};\n\n}\n\n;\nexport default bonusService;","import './styles/buyOneClick.scss';\nimport BuyOneClickTriggerCtrl from './controllers/buyOneClickTriggerController.js';\nimport BuyOneClickFormCtrl from './controllers/buyOneClickFormController.js';\nimport { buyOneClickFormDirective, buyOneClickTriggerDirective } from './directives/buyOneClickDirectives.js';\nimport buyOneClickService from './services/buyOneClickService.js';\nconst moduleName = 'buyOneClick';\nangular.module(moduleName, []).service('buyOneClickService', buyOneClickService).directive('buyOneClickForm', buyOneClickFormDirective).directive('buyOneClickTrigger', buyOneClickTriggerDirective).controller('BuyOneClickTriggerCtrl', BuyOneClickTriggerCtrl).controller('BuyOneClickFormCtrl', BuyOneClickFormCtrl);\nexport default moduleName;","BuyOneClickFormCtrl.$inject = [\"$sce\", \"$timeout\", \"$window\", \"buyOneClickService\", \"toaster\", \"$scope\", \"$http\"];\n\n/* @ngInject */\nfunction BuyOneClickFormCtrl($sce, $timeout, $window, buyOneClickService, toaster, $scope, $http) {\n var ctrl = this;\n\n ctrl.$onInit = function () {\n ctrl.success = false;\n ctrl.process = false;\n ctrl.showRedirectButton = false; //ctrl.compactMode = ctrl.compactMode === 'True' ? true : false;\n\n buyOneClickService.getFieldsOptions().then(function (fields) {\n ctrl.fields = angular.extend(fields, ctrl.fieldsOptions);\n ctrl.fields.BuyInOneClickFirstText = $sce.trustAsHtml(ctrl.fields.BuyInOneClickFirstText);\n ctrl.fields.BuyInOneClickFinalText = $sce.trustAsHtml(ctrl.fields.BuyInOneClickFinalText);\n ctrl.fullNameListMaxHeight = 50 + (50 * (ctrl.fields.IsShowBuyInOneClickEmail + ctrl.fields.IsShowBuyInOneClickPhone + ctrl.fields.IsShowBuyInOneClickComment * 2 + ctrl.fields.IsShowUserAgreementText) || 50);\n\n if (ctrl.fields.EnableCaptchaInBuyInOneClick) {\n ctrl.initCaptcha(\"buyOneClickForm.captchaCode\").then(function (data) {\n ctrl.captchaHtml = data;\n });\n }\n });\n buyOneClickService.getCustomerInfo().then(function (data) {\n ctrl.name = data.name;\n ctrl.email = data.email;\n ctrl.phone = data.phone;\n });\n\n if (ctrl.formInit != null) {\n ctrl.formInit({\n form: ctrl\n });\n }\n };\n\n ctrl.reset = function () {\n ctrl.name = '';\n ctrl.email = '';\n ctrl.phone = '';\n ctrl.comment = '';\n ctrl.success = false;\n ctrl.showRedirectButton = false;\n ctrl.result = null;\n ctrl.form.$setPristine();\n };\n\n ctrl.send = function () {\n var isValid = ctrl.buyOneClickValid();\n\n if (isValid === true || isValid == null) {\n ctrl.process = true;\n var captchaExist = typeof CaptchaSourceBuyInOneClick != \"undefined\" && CaptchaSourceBuyInOneClick != null;\n var captchaInstanceId = captchaExist ? CaptchaSourceBuyInOneClick.InstanceId : null;\n buyOneClickService.checkout(ctrl.page, ctrl.orderType, ctrl.offerId, ctrl.productId, ctrl.amount, ctrl.attributesXml, ctrl.name, ctrl.email, ctrl.phone, ctrl.comment, ctrl.captchaCode, captchaInstanceId).then(function (result) {\n if (result.error != null && result.error.length > 0) {\n toaster.pop('error', null, result.error);\n\n if (captchaExist) {\n CaptchaSourceBuyInOneClick.ReloadImage();\n }\n } else {\n ctrl.result = result;\n ctrl.success = true;\n ctrl.successFn({\n result: result\n });\n\n if (ctrl.autoReset != null) {\n $timeout(ctrl.reset, ctrl.autoReset);\n }\n }\n\n ctrl.process = false;\n });\n }\n };\n\n ctrl.initCaptcha = function (ngModel) {\n return $http.post('/commonExt/getCaptchaHtml', {\n ngModel: ngModel,\n captchaId: 'CaptchaSourceBuyInOneClick'\n }).then(function (response) {\n return $sce.trustAsHtml(response.data);\n });\n };\n}\n\n;\nexport default BuyOneClickFormCtrl;","BuyOneClickTriggerCtrl.$inject = [\"$window\", \"toaster\", \"buyOneClickService\"];\n\n/* @ngInject */\nfunction BuyOneClickTriggerCtrl($window, toaster, buyOneClickService) {\n var ctrl = this;\n\n ctrl.formInit = function (form) {\n ctrl.form = form;\n };\n\n ctrl.modalCallbackClose = function (modalScope) {\n if (ctrl.form.result != null && ctrl.form.showRedirectButton === true) {\n window.location = ctrl.form.result.url;\n }\n\n if (ctrl.form.success === true) {\n ctrl.form.reset();\n }\n };\n\n ctrl.successFn = function (result) {\n if (result.url != null && result.doGo === true) {\n ctrl.form.success = false;\n window.location = result.url;\n } else {\n if (result.url != null) {\n ctrl.form.showRedirectButton = true;\n } else {\n buyOneClickService.modalFooterShow(ctrl.modalId, false);\n }\n }\n };\n}\n\n;\nexport default BuyOneClickTriggerCtrl;","buyOneClickTriggerDirective.$inject = [\"buyOneClickService\"];\n\n/* @ngInject */\nfunction buyOneClickTriggerDirective(buyOneClickService) {\n return {\n restrict: 'A',\n scope: true,\n controller: 'BuyOneClickTriggerCtrl',\n controllerAs: 'buyOneClickTrigger',\n bindToController: true,\n link: function (scope, element, attrs, ctrl) {\n element.on('click', function (event) {\n event.preventDefault();\n var modalId = element[0].getAttribute('data-buy-one-click-modal');\n ctrl.modalId = modalId != null ? modalId : 'modalBuyOneClick';\n scope.$apply(function () {\n buyOneClickService.showDialog(ctrl.modalId);\n });\n });\n }\n };\n}\n\nfunction buyOneClickFormDirective() {\n return {\n restrict: 'A',\n scope: {\n buttonText: '@',\n page: '@',\n orderType: '@',\n offerId: '=?',\n productId: '=?',\n amount: '=?',\n attributesXml: '=?',\n formInit: '&',\n successFn: '&',\n fieldsOptions: '=?',\n autoReset: '=?',\n buyOneClickValid: '&',\n compactMode: '@',\n agreementDefaultChecked: ' 0) {\n cardsService.apply(code).then(function (data) {\n if (data.result === true && data.msg == null) {\n ctrl.applyFn();\n } else {\n ctrl.applyFn();\n toaster.pop('error', $translate.instant('Js.Cards.CantApplyCoupon'), data.msg);\n }\n });\n }\n };\n}\n\n;\nexport default CardsFormCtrl;","CardsRemoveCtrl.$inject = [\"cardsService\", \"$translate\"];\n\n/* @ngInject */\nfunction CardsRemoveCtrl(cardsService, $translate) {\n var ctrl = this;\n\n ctrl.remove = function (type) {\n var request;\n\n switch (type) {\n case 'coupon':\n request = cardsService.deleteCoupon();\n break;\n\n case 'certificate':\n request = cardsService.deleteCertificate();\n break;\n\n default:\n throw Error($translate.instant('Js.Cards.NotFoundTypeToRemove'));\n }\n\n request.then(function () {\n ctrl.applyFn();\n });\n };\n}\n\n;\nexport default CardsRemoveCtrl;","function cardsFormDirective() {\n return {\n restrict: 'A',\n scope: {\n applyFn: '&',\n btnClasses: ''\n };\n}\n\n;\nexport { cardsFormDirective, cardsRemoveDirective };","cardsService.$inject = [\"$http\"];\n\n/* @ngInject */\nfunction cardsService($http) {\n var service = this;\n\n service.apply = function (code) {\n return $http.post('coupon/couponpost', {\n code: code,\n rnd: Math.random()\n }).then(function (response) {\n return response.data;\n });\n };\n\n service.deleteCoupon = function () {\n return $http.post('coupon/deletecoupon', {\n params: {\n rnd: Math.random()\n }\n }).then(function (response) {\n return response.data;\n });\n };\n\n service.deleteCertificate = function () {\n return $http.post('coupon/deletecertificate', {\n params: {\n rnd: Math.random()\n }\n }).then(function (response) {\n return response.data;\n });\n };\n}\n\n;\nexport default cardsService;",";\n\n(function (ng) {\n 'use strict';\n\n angular.module('cart', []).constant('cartConfig', {\n callbackNames: {\n get: 'get',\n update: 'update',\n remove: 'remove',\n add: 'add',\n clear: 'clear',\n open: 'open'\n },\n cartMini: {\n delayHide: 3000\n }\n });\n})(window.angular);",";\n\n(function (ng) {\n 'use strict';\n\n var cartToolbar, timerPopoverHide;\n\n var CartAddCtrl = function ($document, $q, $timeout, $window, cartConfig, cartService, moduleService, popoverService, SweetAlert, $translate, domService) {\n var ctrl = this;\n\n ctrl.$onInit = function () {\n if (ctrl.source != null && ctrl.source === 'mobile') {\n cartService.setStateInfo(true);\n }\n };\n\n ctrl.addItem = function (event, offerId, productId, amount, attributesXml, payment, href, mode, lpId, lpUpId, lpEntityId, lpEntityType, lpBlockId, hideShipping, offerIds, modeFrom, lpButtonName) {\n event.preventDefault();\n var isValid = ctrl.cartAddValid(),\n deferNoop = $q.defer();\n\n if (isValid === true || isValid == null) {\n if (ctrl.isLoading == true) {\n deferNoop.resolve(null);\n return deferNoop.promise;\n }\n\n ctrl.isLoading = true;\n return cartService.addItem(offerId, productId, amount, attributesXml, payment, mode, lpId, lpEntityId, lpEntityType, lpBlockId, {\n lpUpId: lpUpId,\n hideShipping: hideShipping,\n offerIds: offerIds,\n modeFrom: modeFrom,\n lpButtonName: lpButtonName\n }).then(function (result) {\n if (result[0].status == 'redirect') {\n if (result[0].url != null && result[0].url.length > 0) {\n $window.location.assign(result[0].url);\n } else {\n $window.location.assign(href);\n }\n } else {\n $(document).trigger(\"add_to_cart\", href);\n $(document).trigger(\"cart.add\", [offerId, productId, amount, attributesXml, result['0'].cartId, event.target]);\n $(document).trigger(\"cart.addv2\", [productId, result['0'].cartId, result['0'].CartItem, event.target]);\n moduleService.update(['minicartmessage', 'fullcartmessage']).then(ctrl.popoverModule);\n }\n\n return result;\n }).then(function (result) {\n if (ctrl.source != null && ctrl.source === 'mobile' && result[0].status !== 'redirect') {\n cartService.showInfoWithDebounce();\n }\n\n return result;\n }).finally(function () {\n ctrl.isLoading = false;\n });\n } else {\n deferNoop.resolve(null);\n return deferNoop.promise;\n }\n };\n\n ctrl.popoverModule = function (content) {\n if (moduleService.getModule('minicartmessage') != null && content[0].trim().length > 0) {\n $timeout(function () {\n popoverService.getPopoverScope('popoverCartToolbar').then(function (popoverScope) {\n cartToolbar = cartToolbar || document.getElementById('cartToolbar');\n popoverScope.active(cartToolbar);\n popoverScope.updatePosition(cartToolbar);\n\n if (timerPopoverHide != null) {\n $timeout.cancel(timerPopoverHide);\n }\n\n timerPopoverHide = $timeout(function () {\n popoverScope.deactive();\n }, 5000);\n });\n }, 0);\n }\n };\n };\n\n angular.module('cart').controller('CartAddCtrl', CartAddCtrl);\n CartAddCtrl.$inject = ['$document', '$q', '$timeout', '$window', 'cartConfig', 'cartService', 'moduleService', 'popoverService', 'SweetAlert', '$translate', 'domService'];\n})(window.angular);",";\n\n(function (ng) {\n 'use strict';\n\n var CartConfirmCtrl = function (cartService) {\n var ctrl = this;\n\n ctrl.$onInit = function () {\n ctrl.cartData = {};\n cartService.getData().then(function (data) {\n ctrl.cartData = data;\n });\n };\n };\n\n angular.module('cart').controller('CartConfirmCtrl', CartConfirmCtrl);\n CartConfirmCtrl.$inject = ['cartService'];\n})(angular);",";\n\n(function (ng) {\n 'use strict';\n\n var CartCountCtrl = function ($filter, cartService) {\n var ctrl = this;\n\n ctrl.$onInit = function () {\n cartService.getData().then(function (data) {\n ctrl.cartData = data;\n });\n };\n\n ctrl.getValue = function () {\n var result;\n\n if (ctrl.cartData == null) {\n result = ctrl.startValue;\n } else {\n switch (ctrl.type) {\n case 'count':\n result = ctrl.cartData.Count;\n break;\n\n default:\n result = $filter('number')(ctrl.cartData.TotalItems);\n }\n }\n\n return result;\n };\n };\n\n angular.module('cart').controller('CartCountCtrl', CartCountCtrl);\n CartCountCtrl.$inject = ['$filter', 'cartService'];\n})(angular);",";\n\n(function (ng) {\n 'use strict';\n\n var CartFullCtrl = function ($rootScope, cartService, moduleService) {\n var ctrl = this;\n\n ctrl.$onInit = function () {\n cartService.getData().then(function (data) {\n ctrl.cartData = data;\n });\n };\n\n ctrl.updateAmount = function (value, itemId) {\n var item = {\n Key: itemId,\n Value: value\n };\n cartService.updateAmount([item]).then(function () {\n moduleService.update('fullcartmessage');\n });\n };\n\n ctrl.remove = function (shoppingCartItemId) {\n cartService.removeItem(shoppingCartItemId).then(function (result) {\n moduleService.update('fullcartmessage');\n $(document).trigger(\"cart.remove\", result.offerId);\n });\n };\n\n ctrl.clear = function () {\n cartService.clear().then(function () {\n moduleService.update('fullcartmessage');\n $(document).trigger(\"cart.clear\");\n });\n };\n\n ctrl.refresh = function () {\n return cartService.getData(false).then(function (data) {\n moduleService.update('fullcartmessage');\n ctrl.cartData = data;\n });\n };\n };\n\n angular.module('cart').controller('CartFullCtrl', CartFullCtrl);\n CartFullCtrl.$inject = ['$rootScope', 'cartService', 'moduleService'];\n})(window.angular);",";\n\n(function (ng) {\n 'use strict';\n\n var CartMiniCtrl = function (cartService, cartConfig) {\n var ctrl = this;\n\n ctrl.$onInit = function () {\n ctrl.cartData = {};\n cartService.getData().then(function (data) {\n ctrl.cartData = data;\n });\n };\n\n ctrl.addMinicartList = function (miniCartList) {\n ctrl.list = miniCartList;\n };\n\n ctrl.triggerClick = function (event) {\n if (event != null) {\n event.preventDefault();\n }\n\n if (ctrl.cartData.TotalItems > 0 && ctrl.list != null) {\n ctrl.list.cartToggle(true);\n }\n\n cartService.processCallback(cartConfig.callbackNames.open);\n };\n };\n\n angular.module('cart').controller('CartMiniCtrl', CartMiniCtrl);\n CartMiniCtrl.$inject = ['cartService', 'cartConfig'];\n})(angular);",";\n\n(function (ng) {\n 'use strict';\n\n var CartMiniListCtrl = function ($element, $timeout, $window, $scope, cartService, cartConfig, domService) {\n var ctrl = this,\n timer;\n\n ctrl.$onInit = function () {\n ctrl.isPopup = ctrl.isPopup != null ? ctrl.isPopup() : true;\n ctrl.showEmptyCart = ctrl.showEmptyCart != null ? ctrl.showEmptyCart() : true;\n ctrl.isVisibleCart = ctrl.isPopup !== true || ctrl.isMobile;\n ctrl.isCartMiniFixed = false;\n };\n\n ctrl.cartOpen = function (startTime) {\n if (startTime == null) {\n startTime = true;\n }\n\n ctrl.isVisibleCart = true;\n ctrl.saveStartPosition();\n\n if (startTime === true) {\n ctrl.startTimerClose();\n }\n };\n\n ctrl.saveStartPosition = function () {\n $timeout(function () {\n var offset = $element[0].children[0].getBoundingClientRect();\n ctrl.staticPosition = {\n top: offset.top,\n left: offset.left,\n width: offset.width\n }; //if (ctrl.staticPosition.top < 0) {\n\n ctrl.staticPosition.top += $window.pageYOffset; //}\n\n ctrl.checkFixed();\n }, 100);\n };\n\n ctrl.cartClose = function () {\n ctrl.isCartMiniFixed = false;\n ctrl.isVisibleCart = false;\n ctrl.clearTimerClose();\n };\n\n ctrl.cartToggle = function (startTime) {\n ctrl.isVisibleCart === true ? ctrl.cartClose() : ctrl.cartOpen(startTime);\n };\n\n ctrl.cartMouseEnter = function () {\n ctrl.clearTimerClose();\n };\n\n ctrl.cartMouseLeave = function (event) {\n ctrl.startTimerClose();\n };\n\n ctrl.checkVisibleCart = function () {\n return ctrl.isVisibleCart === true && (ctrl.showEmptyCart === false ? ctrl.cartData.TotalItems > 0 : true);\n };\n\n ctrl.windowScroll = function (event) {\n if (ctrl.checkVisibleCart() === true) {\n $scope.$apply(ctrl.checkFixed);\n }\n };\n\n ctrl.startTimerClose = function () {\n timer = $timeout(function () {\n ctrl.cartClose();\n }, cartConfig.cartMini.delayHide);\n };\n\n ctrl.clearTimerClose = function () {\n if (timer != null) {\n $timeout.cancel(timer);\n }\n };\n\n ctrl.checkFixed = function () {\n ctrl.isCartMiniFixed = $window.pageYOffset > ctrl.staticPosition.top;\n };\n\n ctrl.clickOut = function (event) {\n var parentCart = domService.closest(event.target, '[data-cart-mini]');\n\n if (parentCart == null && ctrl.checkVisibleCart() === true) {\n $scope.$apply(function () {\n ctrl.cartClose();\n });\n }\n };\n\n ctrl.updateAmount = function (value, itemId) {\n var item = {\n Key: itemId,\n Value: value\n };\n cartService.updateAmount([item]);\n };\n\n ctrl.remove = function (shoppingCartItemId) {\n cartService.removeItem(shoppingCartItemId).then(function (result) {\n $(document).trigger(\"cart.remove\", result.offerId);\n });\n };\n\n cartService.addCallback(cartConfig.callbackNames.add, ctrl.cartOpen, 'cartMiniList');\n };\n\n angular.module('cart').controller('CartMiniListCtrl', CartMiniListCtrl);\n CartMiniListCtrl.$inject = ['$element', '$timeout', '$window', '$scope', 'cartService', 'cartConfig', 'domService'];\n})(angular);",";\n\n(function (ng) {\n 'use strict';\n\n var CartMobileFullCtrl = function ($rootScope, cartService, moduleService) {\n var ctrl = this;\n\n ctrl.$onInit = function () {\n cartService.getData().then(function (data) {\n ctrl.cartData = data;\n });\n };\n\n ctrl.updateAmount = function (value, itemId) {\n var item = {\n Key: itemId,\n Value: value\n };\n cartService.updateAmount([item]).then(function () {\n moduleService.update('fullcartmessage');\n });\n };\n\n ctrl.remove = function (shoppingCartItemId) {\n cartService.removeItem(shoppingCartItemId).then(function () {\n moduleService.update('fullcartmessage');\n });\n };\n\n ctrl.clear = function () {\n cartService.clear().then(function () {\n moduleService.update('fullcartmessage');\n });\n };\n\n ctrl.getOptions = function (min, step, amount, max) {\n var tempArr = [];\n var start = Math.ceil(min / step) * step;\n\n if (amount > max) {\n //if you need limit options number by availability\n for (var i = start; i <= amount; i = +(i + step).toFixed(4)) {\n tempArr.push(i);\n }\n } else {\n for (var i = start; i <= max; i = +(i + step).toFixed(4)) {\n tempArr.push(i);\n }\n }\n\n return tempArr;\n };\n\n ctrl.refresh = function () {\n return cartService.getData(false).then(function (data) {\n ctrl.cartData = data;\n });\n };\n };\n\n angular.module('cart').controller('CartMobileFullCtrl', CartMobileFullCtrl);\n CartMobileFullCtrl.$inject = ['$rootScope', 'cartService', 'moduleService'];\n})(window.angular);",";\n\n(function (ng) {\n 'use strict';\n\n var CartPreorderCtrl = function ($window) {\n var ctrl = this;\n\n ctrl.getPreOrderUrl = function () {\n var params = [];\n\n if (ctrl.amount != null && ctrl.amount != '') {\n params.push(\"amount=\" + ctrl.amount);\n }\n\n if (ctrl.attributesHash != null && ctrl.attributesHash != '') {\n params.push(\"optionsHash=\" + ctrl.attributesHash);\n }\n\n return \"preorder\" + (ctrl.lp || '') + '/' + ctrl.offerId + (params.length ? \"?\" + params.join('&') : '');\n };\n };\n\n CartPreorderCtrl.$inject = ['$window'];\n angular.module('cart').controller('CartPreorderCtrl', CartPreorderCtrl);\n})(window.angular);",";\n\n(function (ng) {\n 'use strict';\n\n angular.module('cart').directive('cartMini', ['cartService', function (cartService) {\n return {\n restrict: 'A',\n scope: true,\n controller: 'CartMiniCtrl',\n controllerAs: 'cartMini',\n bindToController: true\n };\n }]);\n angular.module('cart').directive('cartMiniTrigger', function () {\n return {\n require: '^cartMini',\n restrict: 'A',\n scope: {},\n link: function (scope, element, attrs, ctrl) {\n element.on('click', function (event) {\n ctrl.triggerClick(event);\n scope.$apply();\n });\n }\n };\n });\n angular.module('cart').directive('cartMiniList', ['$window', function ($window) {\n return {\n require: ['cartMiniList', '^cartMini'],\n restrict: 'EA',\n scope: {\n cartData: '=',\n isMobile: '',\n controller: 'CartPreorderCtrl',\n controllerAs: 'cartPreorder',\n bindToController: true\n };\n });\n angular.module('cart').directive('cartCount', ['$sce', function ($sce) {\n return {\n restrict: 'A',\n scope: true,\n controller: 'CartCountCtrl',\n controllerAs: 'cartCount',\n bindToController: true,\n link: function (scope, element, attrs, ctrl, transclude) {\n ctrl.type = attrs.type;\n var startValue = element.html();\n ctrl.startValue = $sce.trustAsHtml(startValue);\n }\n };\n }]);\n angular.module('cart').directive('cartConfirm', function () {\n return {\n restrict: 'A',\n scope: true,\n controller: 'CartConfirmCtrl',\n controllerAs: 'cartConfirm',\n bindToController: true\n };\n });\n})(angular);","import './styles/colors-viewer.scss';\nimport ColorsViewerCtrl from './controllers/colorsViewerController.js';\nimport { colorsViewerDirective } from './directives/colorsViewerDirectives.js';\nconst moduleName = 'colorsViewer';\nangular.module(moduleName, []).controller('ColorsViewerCtrl', ColorsViewerCtrl).directive('colorsViewer', colorsViewerDirective);\nexport default moduleName;","/* @ngInject */\nfunction ColorsViewerCtrl() {\n var ctrl = this,\n stopLoop = false,\n isFindedByStart = false,\n findedStartColorById,\n findedStartColorByIdAndMain;\n\n ctrl.$onInit = function () {\n ctrl.dirty = false;\n ctrl.multiselect = ctrl.multiselect === true;\n\n if (ctrl.multiselect === true) {\n ctrl.colorSelected = [];\n\n if (ctrl.colors != null && ctrl.colors.length > 0) {\n for (var i = 0, len = ctrl.colors.length; i < len; i++) {\n if (ctrl.colors[i].Selected === true) {\n ctrl.colorSelected.push(ctrl.colors[i]);\n }\n }\n }\n\n ctrl.colorSelectedNamesList = ctrl.colorSelected.join(',');\n } else {\n if (ctrl.startSelectedColors != null && ctrl.startSelectedColors.length > 0) {\n for (var s = 0, lenS = ctrl.startSelectedColors.length; s < lenS; s++) {\n for (var c = 0, lenC = ctrl.colors.length; c < lenC; c++) {\n if (ctrl.colors[c].ColorId === ctrl.startSelectedColors[s]) {\n if (ctrl.colors[c].Main === 1) {\n findedStartColorByIdAndMain = ctrl.colors[c];\n stopLoop = true;\n } else if (findedStartColorById == null) {\n findedStartColorById = ctrl.colors[c];\n }\n\n isFindedByStart = true;\n }\n }\n\n if (stopLoop === true) {\n stopLoop = false;\n break;\n }\n }\n }\n\n if (isFindedByStart === false) {\n for (var m = 0, l = ctrl.colors.length; m < l; m++) {\n if (ctrl.colors[m].Main == true) {\n ctrl.colorSelected = ctrl.colors[m];\n break;\n }\n }\n\n if (ctrl.colorSelected == null) {\n ctrl.colorSelected = ctrl.colors[0];\n }\n } else {\n ctrl.colorSelected = findedStartColorByIdAndMain || findedStartColorById;\n }\n }\n\n if (ctrl.initColors != null) {\n ctrl.initColors({\n colorsViewer: ctrl\n });\n }\n };\n\n ctrl.$postLink = function () {\n if (ctrl.carousel != null) {\n var colorSelectedFirst = ctrl.multiselect ? ctrl.colorSelected[0] : ctrl.colorSelected;\n var colorSelectedFirstIndex = ctrl.colors.indexOf(colorSelectedFirst);\n ctrl.carousel.load = true;\n ctrl.carousel.whenCarouselInit().then(function (carousel) {\n carousel.carouselNative.setItemSelect(colorSelectedFirstIndex);\n carousel.carouselNative.goto(colorSelectedFirstIndex, false);\n });\n }\n };\n\n ctrl.getImagePath = function (photoName) {\n return photoName.indexOf('://') != -1 ? photoName : 'pictures/color/' + ctrl.imageType.toLowerCase() + '/' + photoName;\n };\n\n ctrl.selectColor = function (event, color) {\n var indexInSelectedArray;\n\n if (ctrl.multiselect === true) {\n indexInSelectedArray = ctrl.colorSelected.indexOf(color);\n\n if (indexInSelectedArray > -1) {\n ctrl.colorSelected.splice(indexInSelectedArray, 1); //свойство используется в фильтрах\n\n color.Selected = false;\n } else {\n ctrl.colorSelected.push(color); //свойство используется в фильтрах\n\n color.Selected = true;\n }\n\n ctrl.colorSelectedNamesList = ctrl.colorSelected.join(',');\n } else {\n ctrl.colorSelected = color;\n }\n\n ctrl.dirty = true;\n ctrl.changeColor({\n event: event,\n color: color\n });\n };\n\n ctrl.selectColorById = function (colorId) {\n var color = ctrl.colors.filter(function (x) {\n return x.ColorId == colorId;\n });\n\n if (color != null && color.length > 0) {\n ctrl.selectColor(null, color[0]);\n }\n };\n\n ctrl.getDirtyState = function () {\n return ctrl.dirty;\n };\n}\n\n;\nexport default ColorsViewerCtrl;","function colorsViewerDirective() {\n return {\n require: {\n carousel: '?^carousel'\n },\n restrict: 'A',\n replace: true,\n templateUrl: '/scripts/_partials/colors-viewer/templates/colors.html',\n controller: 'ColorsViewerCtrl',\n controllerAs: 'colorsViewer',\n bindToController: true,\n scope: {\n colors: '=',\n colorSelected: '=?',\n startSelectedColors: '= 0; i--) {\n val = null;\n item = customOptions[i];\n\n if (item.SelectedOptions != null) {\n //DropDownList = 0,\n //RadioButton = 1,\n //CheckBox = 2,\n //TextBoxSingleLine = 3,\n //TextBoxMultiLine = 4\n switch (item.InputType) {\n case 0:\n case 1:\n val = item.SelectedOptions.ID;\n break;\n\n case 2:\n val = !item.SelectedOptions ? '0' : '1'; //item.SelectedOptions может содержать объект или true\n\n break;\n\n case 3:\n case 4:\n val = item.SelectedOptions.OptionText;\n break;\n\n default:\n throw Error('Not found InputType for custom options: ' + item.InputType);\n break;\n }\n\n if (val != null) {\n arrayTemp.push(i + '_' + val);\n }\n }\n }\n\n return arrayTemp.join(';');\n };\n}\n\n;\nexport default customOptionsService;","import './styles/loginOpenId.scss';\nexport default 'loginOpenId';","PaymentListCtrl.$inject = [\"$anchorScroll\", \"$location\"];\n\n/* @ngInject */\nfunction PaymentListCtrl($anchorScroll, $location) {\n var ctrl = this;\n ctrl.isProgress = null;\n $anchorScroll.yOffset = 50; //ctrl.selectedItemIndex = 0;\n //ctrl.collapsed = true;\n\n ctrl.visibleItems = Number.POSITIVE_INFINITY;\n\n ctrl.changePayment = function (payment, index) {\n if (index != null) {\n ctrl.selectedItemIndex = index;\n }\n\n ctrl.change({\n payment: payment\n });\n };\n\n ctrl.changePaymentControl = function (payment) {\n for (var i = ctrl.items.length - 1; i >= 0; i--) {\n if (ctrl.items[i] == payment) {\n ctrl.selectedItemIndex = i;\n break;\n }\n }\n\n ctrl.change({\n payment: payment\n });\n };\n\n ctrl.calc = function (index) {\n var selectItemPos = index + 1;\n ctrl.selectedItemIndex = index;\n ctrl.visibleItems = selectItemPos > ctrl.countVisibleItems ? selectItemPos : ctrl.countVisibleItems;\n return selectItemPos;\n };\n\n ctrl.toggleVisible = function () {\n var selectItemPos = ctrl.calc(ctrl.selectedItemIndex);\n\n if (ctrl.collapsed === true) {\n ctrl.visibleItems = ctrl.items.length;\n ctrl.collapsed = false;\n } else {\n if (selectItemPos === ctrl.items.length) {\n return;\n }\n\n ctrl.visibleItems = selectItemPos > ctrl.countVisibleItems ? selectItemPos : ctrl.countVisibleItems;\n ctrl.collapsed = true;\n $location.hash(ctrl.anchor);\n $anchorScroll();\n }\n };\n\n ctrl.setSelectedIndex = function (index) {\n var selectItemPos = ctrl.calc(index);\n\n if (selectItemPos === ctrl.items.length) {\n ctrl.collapsed = false;\n } else {\n ctrl.collapsed = true;\n }\n };\n}\n\n;\nexport default PaymentListCtrl;","PaymentTemplateCtrl.$inject = [\"$timeout\"];\n\n/* @ngInject */\nfunction PaymentTemplateCtrl($timeout) {\n var ctrl = this,\n timer;\n\n ctrl.changePrepare = function (event, field) {\n if (field == null) {\n return;\n }\n\n if (event != null && event.type == 'keyup') {\n if (timer != null) {\n $timeout.cancel(timer);\n }\n\n timer = $timeout(function () {\n ctrl.changeControl({\n payment: ctrl.payment\n });\n }, 500);\n } else {\n ctrl.changeControl({\n payment: ctrl.payment\n });\n }\n };\n\n ctrl.changeSpinbox = function (value, proxy) {\n ctrl.changeControl({\n payment: ctrl.payment\n });\n };\n}\n\n;\nexport default PaymentTemplateCtrl;","paymentListDirective.$inject = [\"urlHelper\"];\n\n/* @ngInject */\nfunction paymentListDirective(urlHelper) {\n return {\n restrict: 'A',\n scope: {\n items: '=',\n selectPayment: '=',\n countVisibleItems: '=',\n change: '&',\n anchor: '@',\n isProgress: '=?',\n iconWidth: '@',\n iconHeight: '@',\n enablePhoneMask: ''\n };\n}\n\n;\nexport { paymentListDirective, paymentTemplateDirective };","import './styles/payment.scss';\nimport PaymentListCtrl from './controllers/paymentListController.js';\nimport PaymentTemplateCtrl from './controllers/paymentTemplateController.js';\nimport { paymentListDirective, paymentTemplateDirective } from './directives/paymentDirectives.js';\nconst moduleName = 'payment';\nangular.module(moduleName, []).controller('PaymentListCtrl', PaymentListCtrl).controller('PaymentTemplateCtrl', PaymentTemplateCtrl).directive('paymentList', paymentListDirective).directive('paymentTemplate', paymentTemplateDirective);\nexport default moduleName;","export default function PhotoViewListCtrl() {\n const ctrl = this;\n\n ctrl.updateActiveElements = function () {\n ctrl.activeNavIndex = 0;\n ctrl.activeItemIndex = 0;\n };\n}","PhotoViewList.$inject = [\"$parse\"];\n\n/* @ngInject */\nfunction PhotoViewList($parse) {\n return {\n scope: true,\n controller: 'PhotoViewListCtrl',\n controllerAs: 'photoViewList',\n bindToController: true,\n link: function (scope, element, attrs, ctrl) {\n element[0].classList.add('photo-view-list');\n let onHoverNavItem;\n\n if (attrs.photoViewListOnHoverNavItem != null) {\n onHoverNavItem = $parse(attrs.photoViewListOnHoverNavItem);\n }\n\n ctrl.onHoverNavItem = function () {\n if (onHoverNavItem != null) {\n onHoverNavItem(scope);\n }\n };\n }\n };\n}\n\nfunction PhotoViewListItem() {\n return {\n scope: true,\n require: ['^photoViewList'],\n bindToController: true,\n link: function (scope, element, attrs, ctrls) {\n var photoViewListCtrl = ctrls[0];\n element[0].classList.add('photo-view-list__item');\n\n if (element[0].parentNode != null && !element[0].parentNode.classList.contains('photo-view-list__item-wrap')) {\n element[0].parentNode.classList.add('photo-view-list__item-wrap');\n }\n\n photoViewListCtrl.activeItemIndex = 0;\n photoViewListCtrl.isActiveElement = true;\n }\n };\n}\n\nfunction PhotoViewListNav() {\n return {\n scope: true,\n require: ['^photoViewList'],\n bindToController: true,\n link: function (scope, element, attrs, ctrls) {\n var photoViewListCtrl = ctrls[0];\n element[0].classList.add('photo-view-list__nav');\n photoViewListCtrl.activeNavIndex = 0;\n photoViewListCtrl.isActiveElementNav = true;\n element[0].addEventListener('mouseenter', function (e) {\n var target = e.target;\n var indexActiveNav = target.getAttribute('data-nav-index');\n photoViewListCtrl.activeNavIndex = parseFloat(indexActiveNav);\n photoViewListCtrl.activeItemIndex = parseFloat(indexActiveNav);\n photoViewListCtrl.onHoverNavItem();\n scope.$apply();\n }, true);\n }\n };\n}\n\nexport { PhotoViewList, PhotoViewListItem, PhotoViewListNav };","import PhotoViewListCtrl from './photo-view-list.ctrl.js';\nimport { PhotoViewList, PhotoViewListItem, PhotoViewListNav } from './photo-view-list.directive.js';\nimport './photo-view-list.scss';\nconst moduleName = \"photoViewList\";\nangular.module(moduleName, []).directive(\"photoViewList\", PhotoViewList).directive(\"photoViewListItem\", PhotoViewListItem).directive(\"photoViewListNav\", PhotoViewListNav).controller(\"PhotoViewListCtrl\", PhotoViewListCtrl);\nexport default moduleName;","function ProductViewCarouselPhotosCtrl() {\n var ctrl = this;\n\n ctrl.carouselInit = function (carousel) {\n ctrl.carousel = carousel;\n };\n}\n\n;\nexport default ProductViewCarouselPhotosCtrl;","ProductViewChangeModeCtrl.$inject = [\"productViewService\", \"viewList\"];\n\n/* @ngInject */\nfunction ProductViewChangeModeCtrl(productViewService, viewList) {\n var ctrl = this;\n\n ctrl.setView = function (name, view, isMobile) {\n ctrl.current = view;\n productViewService.setView(name, view, ctrl.currentViewList, isMobile);\n };\n\n ctrl.toggle = function (name) {\n var index = ctrl.currentViewList.indexOf(ctrl.current);\n var nextViewIndex = index !== -1 ? index + 1 : 0;\n ctrl.setView(name, ctrl.currentViewList[nextViewIndex < ctrl.currentViewList.length ? nextViewIndex : 0], ctrl.currentViewList, ctrl.isMobile);\n };\n}\n\n;\nexport default ProductViewChangeModeCtrl;","ProductViewItemCtrl.$inject = [\"$document\", \"$q\", \"$timeout\", \"productViewService\", \"$translate\", \"$scope\", \"$parse\", \"urlHelper\"];\n\n/*@ngInject*/\nfunction ProductViewItemCtrl($document, $q, $timeout, productViewService, $translate, $scope, $parse, urlHelper) {\n var ctrl = this,\n controls = {},\n needCarouselUpdate = false,\n requestGetPhotosInPending = false,\n isPhotosStorageMutation = false,\n photosStorage;\n var isMobile = $document[0].documentElement.classList.contains('mobile-version');\n\n ctrl.$onInit = function () {\n ctrl.photosVisible = false;\n ctrl.photos = [];\n ctrl.picture = {};\n ctrl.promisesGetPhotos = [];\n ctrl.colorSelected = null;\n };\n\n ctrl.getOffersProduct = function (productId) {\n return productViewService.getOfferId(productId).then(function (result) {\n if (result != null) {\n return result.Offers;\n }\n });\n };\n\n ctrl.getPhotos = function (productId) {\n var defer = $q.defer(),\n promise;\n\n if (requestGetPhotosInPending === false && (photosStorage == null || needCarouselUpdate === true)) {\n requestGetPhotosInPending = true;\n promise = productViewService.getPhotos(ctrl.productId || productId).then(function (photos) {\n isPhotosStorageMutation = true;\n\n for (var i = 0, len = ctrl.promisesGetPhotos.length; i < len; i++) {\n ctrl.promisesGetPhotos[i].resolve(photos);\n }\n\n ctrl.promisesGetPhotos.length = 0;\n requestGetPhotosInPending = false;\n return photosStorage = photos;\n });\n } else if (requestGetPhotosInPending === true) {\n promise = defer.promise;\n ctrl.promisesGetPhotos.push(defer);\n } else {\n promise = defer.promise;\n defer.resolve(photosStorage);\n }\n\n ctrl.gotPhotos = true;\n return promise;\n };\n\n ctrl.numberals = function (num) {\n if (num <= 0) return ctrl.textNumberals = num + ' ' + $translate.instant('Js.ProductView.Photos0');\n num = num % 100;\n var nums = num % 10;\n if (num > 10 && num < 20) return ctrl.textNumberals = num + ' ' + $translate.instant('Js.ProductView.Photos5');\n if (nums > 1 && nums < 5) return ctrl.textNumberals = num + ' ' + $translate.instant('Js.ProductView.Photos2');\n return nums === 1 ? ctrl.textNumberals = num + ' ' + $translate.instant('Js.ProductView.Photos1') : ctrl.textNumberals = num + ' ' + $translate.instant('Js.ProductView.Photos5');\n };\n\n ctrl.fill = function (photos) {\n if (ctrl.getControl('colorsViewer') != null) {\n ctrl.photos = ctrl.filterPhotos(photosStorage == null && isPhotosStorageMutation === false ? ctrl.getPhotos() : photos, ctrl.getControl('colorsViewer').colorSelected.ColorId, ctrl.onlyPhotoWithColor);\n } else {\n ctrl.photos = photos;\n }\n\n if (ctrl.photos.length === 0) {\n ctrl.photos.length = 0;\n ctrl.photos.push.apply(ctrl.photos, ctrl.getMainPhoto(photos));\n }\n\n if (ctrl.maxPhotoView != null) {\n ctrl.photos = ctrl.photos.slice(0, ctrl.maxPhotoView);\n }\n\n ctrl.numberals(ctrl.photos.length);\n return photos;\n };\n\n ctrl.process = function (productId) {\n return ctrl.getPhotos(productId).then(function (photos) {\n ctrl.fill(photos);\n $timeout(function () {\n ctrl.carouselInit = true;\n\n if (needCarouselUpdate === true && ctrl.getControl('photosCarousel') != null && ctrl.getControl('photosCarousel').carousel != null) {\n ctrl.getControl('photosCarousel').carousel.update();\n needCarouselUpdate = false;\n }\n\n ctrl.scrollToStartImages();\n }, 0);\n return photos;\n });\n };\n\n ctrl.clearPhotos = function () {\n photosStorage = null;\n needCarouselUpdate = true;\n };\n\n ctrl.enter = function () {\n if (ctrl.photosVisible === true) {\n return;\n }\n\n ctrl.photosVisible = true;\n ctrl.process();\n };\n\n ctrl.leave = function () {\n ctrl.photosVisible = false;\n ctrl.carouselInit = false;\n };\n\n ctrl.changePhoto = function (photo) {\n ctrl.picture = photo;\n };\n\n ctrl.initColors = function (colorsViewer) {\n ctrl.addControl('colorsViewer', colorsViewer);\n\n if (colorsViewer.changeStartSelectedColor != null) {\n setTimeout(function () {\n colorsViewer.selectColorById(colorsViewer.changeStartSelectedColor);\n }, 500);\n }\n };\n\n ctrl.getSelectedColorId = function () {\n var colorsViewer = ctrl.getControl('colorsViewer'),\n colorId;\n\n if (colorsViewer != null && colorsViewer.colorSelected != null && colorsViewer.getDirtyState() === true) {\n colorId = colorsViewer.colorSelected.ColorId;\n }\n\n return colorId;\n };\n\n ctrl.scrollToStartImages = function () {\n let photosScrollContent = ctrl.getControl('productViewScrollPhotos');\n\n if (photosScrollContent != null) {\n $timeout(() => photosScrollContent.scrollToStart(), 100);\n }\n };\n\n ctrl.initColorsCarousel = function (carousel) {\n ctrl.addControl('colorsViewerCarousel', carousel);\n };\n\n ctrl.changeColor = function (color) {\n ctrl.getOffersProduct(ctrl.productId).then(function (result) {\n ctrl.productOffers = result;\n\n if (ctrl.productOffers != null && ctrl.productOffers.length > 0) {\n ctrl.selectedProductOffer = ctrl.productOffers.filter(function (offer) {\n return offer.Color.ColorId === color.ColorId;\n });\n\n if (ctrl.selectedProductOffer != null && ctrl.selectedProductOffer.length > 0) {\n var o = null;\n\n for (var i = 0; i < ctrl.selectedProductOffer.length; i++) {\n if (ctrl.selectedProductOffer[i].Amount > 0) {\n o = ctrl.selectedProductOffer[i];\n break;\n }\n }\n\n ctrl.offer = o == null ? ctrl.selectedProductOffer[0] : o;\n }\n }\n\n var defaultPhoto;\n\n if (photosStorage == null && isPhotosStorageMutation === false) {\n ctrl.getPhotos().then(function (result) {\n ctrl.photos = ctrl.filterPhotos(result, color.ColorId, ctrl.getControl('colorsViewer') != null ? ctrl.onlyPhotoWithColor : false);\n defaultPhoto = ctrl.getMainPhoto(ctrl.photos); //if (ctrl.photos.length === 0) {\n // ctrl.photos = defaultPhoto;\n //}\n //if (ctrl.maxPhotoView != null) {\n // ctrl.photos = ctrl.photos.slice(0, ctrl.maxPhotoView);\n //}\n\n ctrl.setColor(defaultPhoto);\n });\n } else {\n defaultPhoto = ctrl.getMainPhoto(photosStorage != null && photosStorage.length !== 0 ? photosStorage : ctrl.photos);\n ctrl.photos = ctrl.filterPhotos(photosStorage, color.ColorId, ctrl.getControl('colorsViewer') != null ? ctrl.onlyPhotoWithColor : false);\n ctrl.setColor(defaultPhoto);\n }\n\n if (ctrl.onChangeColor != null) {\n $parse(ctrl.onChangeColor)($scope);\n }\n\n if (ctrl.photos.length === 0) {\n ctrl.photos.length = 0;\n ctrl.photos.push.apply(ctrl.photos, defaultPhoto); //ctrl.photos = ctrl.photos.concat(defaultPhoto);\n }\n\n if (ctrl.maxPhotoView != null) {\n ctrl.photos = ctrl.photos.slice(0, ctrl.maxPhotoView);\n }\n\n ctrl.scrollToStartImages();\n }).catch(function (error) {\n console.error(error);\n });\n };\n\n ctrl.setColor = function (defaultPhoto) {\n ctrl.picture = ctrl.photos.length === 0 && defaultPhoto != null ? defaultPhoto[0] : ctrl.photos[0];\n ctrl.numberals(ctrl.photos.length);\n var photosCarousel = ctrl.getControl('photosCarousel');\n\n if (photosCarousel != null && photosCarousel.carousel != null) {\n $timeout(function () {\n photosCarousel.carousel.options.indexActive = 0;\n photosCarousel.carousel.update();\n });\n }\n\n if (ctrl.photoViewer != null) {\n ctrl.photoViewer.reinit();\n }\n };\n\n ctrl.addControl = function (name, scope) {\n controls[name] = scope;\n };\n\n ctrl.getControl = function (name) {\n return controls[name];\n };\n\n ctrl.filterPhotos = function (photos, colorId, onlyColorPhoto) {\n return photos.filter(function (item) {\n if (onlyColorPhoto) {\n return item.ColorID === colorId;\n }\n\n return item.ColorID === colorId || item.ColorID == null;\n });\n };\n\n ctrl.getUrl = function (url) {\n var result = url,\n colorId = ctrl.getSelectedColorId();\n\n if (colorId != null) {\n result = urlHelper.updateQueryStringParameter(result, 'color', colorId);\n }\n\n return result;\n };\n\n ctrl.addPhotoViewer = function (photoViewer) {\n ctrl.photoViewer = photoViewer;\n };\n\n ctrl.getPictureByViewMode = function (photosItem, lazyLoadMode, sourceOnlyParameters) {\n if (lazyLoadMode === 'Carousel' && ctrl.isCarouselImgVisible !== true || lazyLoadMode === 'Default' && ctrl.isImgVisible !== true) {\n return null;\n }\n\n const picture = sourceOnlyParameters !== true && ctrl.picture != null && Object.keys(ctrl.picture).length > 0 ? ctrl.picture : photosItem[0];\n let size;\n\n if (ctrl.productViewMode != null) {\n size = ['single'].includes(ctrl.productViewMode.viewName) ? 'PathBig' : ctrl.productViewMode.isMobile ? 'PathMiddle' : 'PathSmall';\n } else {\n size = isMobile ? 'PathMiddle' : 'PathSmall';\n }\n\n return ctrl.getPictureBySize(size, picture);\n };\n\n ctrl.lazyLoadImgInCarousel = function () {\n ctrl.isCarouselImgVisible = true;\n };\n\n ctrl.lazyLoadImg = function () {\n ctrl.isImgVisible = true;\n };\n\n ctrl.getPictureBySize = function (size, photos) {\n return photos[size];\n };\n\n ctrl.getMainPhoto = function (photos) {\n return photos.filter(function (photo) {\n return photo.Main === true;\n });\n };\n}\n\n;\nexport default ProductViewItemCtrl;","ProductViewModeCtrl.$inject = [\"$attrs\", \"$element\", \"productViewService\", \"viewList\", \"viewPrefix\"];\n\n/* @ngInject */\nfunction ProductViewModeCtrl($attrs, $element, productViewService, viewList, viewPrefix) {\n const ctrl = this;\n\n ctrl.$onInit = function () {\n ctrl.isMobile = $attrs.isMobile === 'true';\n ctrl.currentViewList = viewList[$attrs.viewListName || 'desktop'];\n ctrl.currentViewPrefix = viewPrefix[$attrs.viewListName || 'desktop'];\n ctrl.defaultViewMode = $attrs.defaultViewMode;\n\n if (ctrl.isMobile === true) {\n ctrl.viewName = productViewService.getViewFromCookie('mobile_viewmode', ctrl.currentViewList, ctrl.defaultViewMode);\n $element[0].classList.add('products-view-' + ctrl.currentViewPrefix + ctrl.viewName);\n } else {\n ctrl.viewName = $attrs.current;\n }\n\n productViewService.addCallback('setView', onChangeMode);\n\n function onChangeMode(view) {\n view.viewList.forEach(function (item) {\n $element[0].classList.remove('products-view-' + ctrl.currentViewPrefix + item);\n });\n $element[0].classList.add('products-view-' + ctrl.currentViewPrefix + view.viewName);\n ctrl.viewName = view.viewName;\n }\n };\n}\n\n;\nexport default ProductViewModeCtrl;","productViewChangeModeDirective.$inject = [\"productViewService\", \"viewList\"];\nproductViewItemDirective.$inject = [\"productViewService\", \"domService\", \"windowService\", \"$parse\"];\n\n/* @ngInject */\nfunction productViewItemDirective(productViewService, domService, windowService, $parse) {\n return {\n restrict: 'A',\n require: {\n productViewMode: '?^productViewMode',\n productViewItem: 'productViewItem'\n },\n controller: 'ProductViewItemCtrl',\n controllerAs: 'productViewItem',\n bindToController: true,\n scope: true,\n link: function (scope, element, attrs, ctrls) {\n var productViewItemCtrl = ctrls.productViewItem,\n timerHover;\n productViewItemCtrl.productId = parseInt(attrs.productId);\n\n if (attrs.offer != null) {\n productViewItemCtrl.offer = $parse(attrs.offer)(scope);\n }\n\n if (attrs.onChangeColor != null) {\n productViewItemCtrl.onChangeColor = attrs.onChangeColor;\n }\n\n if (attrs.maxPhotoView != null) {\n productViewItemCtrl.maxPhotoView = parseFloat(attrs.maxPhotoView);\n }\n\n if (attrs.onlyPhotoWithColor != null) {\n productViewItemCtrl.onlyPhotoWithColor = attrs.onlyPhotoWithColor === 'true';\n }\n\n productViewItemCtrl.offerId = parseInt(attrs.offerId); //productViewItemCtrl.getOffersProduct(productViewItemCtrl.productId);\n\n productViewService.addCallback('setView', function (viewMode) {\n productViewItemCtrl.viewName = viewMode.viewName;\n setTimeout(function () {\n var colorsViewerCarousel = productViewItemCtrl.getControl('colorsViewerCarousel');\n\n if (colorsViewerCarousel != null) {\n colorsViewerCarousel.update();\n }\n\n scope.$digest();\n }, 50);\n });\n element[0].addEventListener('mouseenter', function () {\n if (timerHover != null) {\n clearTimeout(timerHover);\n }\n\n timerHover = setTimeout(function () {\n productViewItemCtrl.enter();\n scope.$digest();\n }, 100);\n });\n element[0].addEventListener('mouseleave', function () {\n clearTimeout(timerHover);\n productViewItemCtrl.leave();\n scope.$digest();\n });\n element[0].addEventListener('touchstart', function () {\n productViewItemCtrl.enter();\n productViewItemCtrl.isLoad = true;\n scope.$digest();\n }, {\n passive: true\n }); //windowService.addCallback('touchstart', function (eventObj) {\n // var isClickedMe = domService.closest(eventObj.event.target, element[0]) != null;\n // if (isClickedMe === false) {\n // productViewItemCtrl.leave();\n // scope.$digest();\n // }\n //});\n }\n };\n}\n\nfunction productViewCarouselPhotosDirective() {\n return {\n require: ['^productViewCarouselPhotos', '^productViewItem'],\n restrict: 'A',\n scope: {\n photoHeight: '@',\n photoWidth: '@',\n changePhoto: '&'\n },\n replace: true,\n templateUrl: '/scripts/_partials/product-view/templates/photos.html',\n controller: 'ProductViewCarouselPhotosCtrl',\n controllerAs: 'photosCarousel',\n bindToController: true,\n link: function (scope, element, attrs, ctrl) {\n var carouselPhotosCtrl = ctrl[0],\n productViewItemCtrl = ctrl[1];\n carouselPhotosCtrl.parentScope = productViewItemCtrl;\n productViewItemCtrl.addControl('photosCarousel', carouselPhotosCtrl);\n }\n };\n}\n\n;\n/* @ngInject */\n\nfunction productViewChangeModeDirective(productViewService, viewList) {\n return {\n restrict: 'A',\n scope: true,\n controller: 'ProductViewChangeModeCtrl',\n controllerAs: 'changeMode',\n bindToController: true,\n link: function (scope, element, attrs, ctrl) {\n ctrl.name = attrs.name;\n ctrl.currentViewList = viewList[attrs.viewListName || 'desktop'];\n ctrl.isMobile = attrs.isMobile === 'true';\n ctrl.isReadyViewMode = false;\n ctrl.defaultViewMode = attrs.defaultViewMode;\n\n if (ctrl.isMobile === true) {\n ctrl.current = productViewService.getViewFromCookie('mobile_viewmode', ctrl.currentViewList, ctrl.defaultViewMode);\n } else {\n ctrl.current = attrs.viewMode;\n }\n\n ctrl.isReadyViewMode = true;\n }\n };\n}\n/* @ngInject */\n\n\nfunction productViewModeDirective() {\n return {\n restrict: 'A',\n scope: true,\n controller: 'ProductViewModeCtrl',\n controllerAs: 'productViewMode',\n bindToController: true\n };\n}\n\nfunction productViewScrollPhotosDirective() {\n return {\n restrict: 'A',\n scope: true,\n require: {\n productViewItem: '^productViewItem'\n },\n controller: ['$element', function ($element) {\n const ctrl = this;\n\n ctrl.$onInit = function () {\n ctrl.productViewItem.addControl('productViewScrollPhotos', ctrl);\n };\n\n ctrl.scrollToStart = function () {\n $element[0].scrollTo(0, 0);\n };\n }],\n controllerAs: 'productViewScrollPhotos',\n bindToController: true\n };\n}\n\nexport { productViewItemDirective, productViewCarouselPhotosDirective, productViewChangeModeDirective, productViewModeDirective, productViewScrollPhotosDirective };","import carouselModule from '../../_common/carousel/carousel.module.js';\nimport ratingModule from '../../_common/rating/rating.module.js';\nimport quickviewModule from '../quickview/quickview.module.js';\nimport colorsViewerModule from '../colors-viewer/colorsViewer.module.js';\nimport productsCarouselModule from '../products-carousel/productsCarousel.module.js';\nimport photoViewListModule from '../../../scripts/_partials/photo-view-list/photoViewList.module.js';\nimport './styles/product-view.scss';\nimport productViewService from './services/productViewService.js';\nimport { productViewItemDirective, productViewCarouselPhotosDirective, productViewChangeModeDirective, productViewModeDirective } from './directives/productViewDirectives.js';\nimport ProductViewCarouselPhotosCtrl from './controllers/productViewCarouselPhotosController.js';\nimport ProductViewChangeModeCtrl from './controllers/productViewChangeModeController.js';\nimport ProductViewItemCtrl from './controllers/productViewItemController.js';\nimport ProductViewModeCtrl from './controllers/productViewModeController.js';\nconst moduleName = 'productView';\nangular.module(moduleName, [ratingModule, quickviewModule, colorsViewerModule, productsCarouselModule, photoViewListModule, carouselModule]).constant('viewPrefix', {\n desktop: '',\n mobile: 'mobile-',\n mobileModern: 'mobile-modern-'\n}).constant('viewList', {\n desktop: ['tile', 'list', 'table'],\n mobile: ['tile', 'list', 'single'],\n mobileModern: ['tile', 'list', 'single']\n}).service('productViewService', productViewService).directive('productViewItem', productViewItemDirective).directive('productViewCarouselPhotos', productViewCarouselPhotosDirective).directive('productViewChangeMode', productViewChangeModeDirective).directive('productViewMode', productViewModeDirective).controller('ProductViewCarouselPhotosCtrl', ProductViewCarouselPhotosCtrl).controller('ProductViewChangeModeCtrl', ProductViewChangeModeCtrl).controller('ProductViewItemCtrl', ProductViewItemCtrl).controller('ProductViewModeCtrl', ProductViewModeCtrl);\nexport default moduleName;","productViewService.$inject = [\"$http\", \"$q\", \"$cookies\", \"$window\"];\n\n/* @ngInject */\nfunction productViewService($http, $q, $cookies, $window) {\n var service = this,\n productViewTransformers = {},\n queue = {},\n callbacks = {};\n\n service.getPhotos = function (productId) {\n return $http.get('productExt/getphotos', {\n params: {\n productId: productId,\n rnd: Math.random()\n }\n }).then(function (response) {\n return response.data;\n });\n };\n\n service.getView = function (name) {\n var defer = $q.defer();\n\n if (productViewTransformers[name] == null) {\n queue[name] = defer;\n } else {\n defer.resolve(productViewTransformers[name]);\n }\n\n return defer.promise.finally(function () {\n delete queue[name];\n });\n };\n\n service.addCallback = function (name, func) {\n callbacks[name] = callbacks[name] || [];\n callbacks[name].push(func);\n };\n\n service.pricessCallback = function (name, data) {\n if (callbacks[name] != null) {\n for (var i = 0, len = callbacks[name].length - 1; i <= len; i++) {\n callbacks[name][i](data);\n }\n }\n };\n\n service.setView = function (name, view, viewList, isMobile) {\n if (isMobile) {\n $cookies.put('mobile_viewmode', view);\n } else {\n if ($window.location.pathname.indexOf('/search') !== -1) {\n $cookies.put('search_viewmode', view);\n } else {\n $cookies.put('viewmode', view);\n }\n }\n\n productViewTransformers[name] = productViewTransformers[name] || {};\n productViewTransformers[name].viewName = view;\n productViewTransformers[name].viewList = viewList;\n\n if (queue[name] != null) {\n queue[name].resolve(productViewTransformers[name]);\n }\n\n service.pricessCallback('setView', productViewTransformers[name]);\n return productViewTransformers[name];\n };\n\n service.getViewFromCookie = function (cookieName, viewList, defaultViewMode) {\n var value = $cookies.get(cookieName);\n var item;\n\n if (value != null) {\n for (var i = 0; i < viewList.length; i++) {\n if (viewList[i].indexOf(value) !== -1) {\n item = viewList[i];\n break;\n }\n }\n }\n\n return item != null ? item : defaultViewMode || viewList[0];\n };\n\n service.getOfferId = function (productId, colorId, sizeId) {\n return $http.get('productExt/GetOffers', {\n params: {\n productId: productId,\n colorId: colorId,\n sizeId: sizeId,\n rnd: Math.random()\n }\n }).then(function (response) {\n return response.data;\n });\n };\n}\n\n;\nexport default productViewService;","ProductsCarouselCtrl.$inject = [\"$scope\", \"$compile\", \"$element\", \"productsCarouselService\"];\n\n/* @ngInject */\nfunction ProductsCarouselCtrl($scope, $compile, $element, productsCarouselService) {\n var ctrl = this;\n\n ctrl.$onInit = function () {\n ctrl.update();\n };\n\n ctrl.generate = function (ids, title, type, visibleItems, carouselResponsive) {\n productsCarouselService.getData(ids, title, type, visibleItems, carouselResponsive).then(function (result) {\n $element.empty();\n $element.append(result);\n $compile($element.contents())($scope);\n });\n };\n\n ctrl.update = function () {\n ctrl.generate(ctrl.ids, ctrl.title, ctrl.type, ctrl.visibleItems, ctrl.carouselResponsive);\n };\n}\n\n;\nexport default ProductsCarouselCtrl;","function productsCarouselDirective() {\n return {\n restrict: 'A',\n scope: {\n ids: '@',\n title: '@',\n type: '@',\n visibleItems: '@',\n carouselResponsive: ' {\n // quickviewService.dialogOpen(ctrl, productId, colorId, typeView, modalClass, landingId, hideShipping, showLeadButton, blockId, showVideo, modalId, openFromHash, sizeId, onOpenModalCallback, spyAddress, descriptionMode);\n // ctrl.cartAddTriggerName = 'quckview_' + Date.now();\n // cartService.addCallback(cartConfig.callbackNames.add, ctrl.hideModal, ctrl.cartAddTriggerName);\n // });\n\n /*ВЫЗЫВАЕТ АНГУЛЯР НЕСКОЛЬКОР РАЗ!!!!!!!!! Fly runtime*/\n import(\n /* webpackChunkName: \"productQuickview\" */\n\n /* webpackMode: \"lazy\" */\n '../../../product/productQuickview.module.js').then(module => {\n $ocLazyLoad.inject(module.default);\n }).then(() => {\n quickviewService.dialogOpen(ctrl, productId, colorId, typeView, modalClass, landingId, hideShipping, showLeadButton, blockId, showVideo, modalId, openFromHash, sizeId, onOpenModalCallback, spyAddress, descriptionMode);\n ctrl.cartAddTriggerName = 'quckview_' + Date.now();\n cartService.addCallback(cartConfig.callbackNames.add, ctrl.hideModal, ctrl.cartAddTriggerName);\n });\n };\n\n ctrl.hideModal = function () {\n quickviewService.dialogClose();\n cartService.removeCallback(cartConfig.callbackNames.add, ctrl.cartAddTriggerName);\n };\n\n ctrl.setSiblings = function (element) {\n var items, sibling, id, modalId;\n ctrl.siblings = [];\n ctrl.modalIds = {};\n items = domService.closest(element, '.js-products-view-block').parentNode.children;\n\n for (var i = 0, len = items.length - 1; i <= len; i++) {\n sibling = items[i].querySelector('.js-products-view-item');\n\n if (sibling != null) {\n id = parseInt(sibling.getAttribute('data-product-id'));\n modalId = sibling.getAttribute('data-modal-id');\n\n if (angular.isNumber(id)) {\n ctrl.siblings.push(id);\n ctrl.modalIds[id] = modalId;\n }\n }\n }\n };\n\n ctrl.onChangeSizeAndColor = function (data) {\n if (ctrl.isSpyAddress && data != null) {\n var hash = $location.hash();\n var urlParams = hash.split('?');\n var originalHash = urlParams.shift();\n var urlParamsFromHash = urlHelper.getUrlParamsAsObject(urlParams.join('&'));\n\n if (data.ColorId != null) {\n colorsAndSize.colorId = data.ColorId;\n }\n\n if (data.SizeId != null) {\n colorsAndSize.sizeId = data.SizeId;\n }\n\n $location.hash((originalHash || ctrl.modalId) + '?' + urlHelper.paramsToString(Object.assign({}, colorsAndSize, urlParamsFromHash)));\n }\n };\n\n ctrl.onOpenModal = function () {\n if (ctrl.productCtrl != null) {\n ctrl.onChangeSizeAndColor(ctrl.productCtrl.colorSelected);\n ctrl.onChangeSizeAndColor(ctrl.productCtrl.sizeSelected);\n }\n };\n\n ctrl.addProductCtrl = function (productCtrl) {\n ctrl.productCtrl = productCtrl;\n };\n}\n\nexport default QuickviewCtrl;","quickviewTriggerDirective.$inject = [\"$location\", \"urlHelper\", \"$window\", \"modalService\"];\n\n/* @ngInject */\nfunction quickviewTriggerDirective($location, urlHelper, $window, modalService) {\n return {\n require: ['quickviewTrigger', '^productViewItem'],\n restrict: 'A',\n scope: true,\n controller: 'QuickviewCtrl',\n controllerAs: 'quickview',\n bindToController: true,\n link: function (scope, element, attrs, ctrls) {\n var hash = $location.hash();\n var quickviewCtrl = ctrls[0],\n productViewItemCtrl = ctrls[1];\n\n if (hash != null) {\n var splitedHash = hash.split('?');\n hash = splitedHash != null ? splitedHash[0] : hash;\n }\n\n var colorId, sizeId; //var originalHash = splitedHash[0];\n\n if (splitedHash != null && splitedHash.length > 1) {\n var addParams = urlHelper.getUrlParamsAsObject(splitedHash[1]);\n colorId = addParams.colorId;\n sizeId = addParams.sizeId;\n }\n\n quickviewCtrl.modalId = attrs.modalId != null ? attrs.modalId : null;\n quickviewCtrl.isSpyAddress = attrs.spyAddress === 'true';\n\n if (hash === attrs.modalId) {\n quickviewCtrl.openFromHash = true;\n\n if (attrs.categoryId != null) {\n quickviewCtrl.modalId = attrs.modalId + '?categoryId=' + attrs.categoryId;\n }\n\n if (quickviewCtrl.siblings == null) {\n quickviewCtrl.setSiblings(element[0]);\n }\n\n quickviewCtrl.showModal(productViewItemCtrl.productId || parseInt(attrs.productId), colorId || productViewItemCtrl.getSelectedColorId(), attrs.quickviewTypeView, element[0].getAttribute('data-modal-class'), attrs.landingId, attrs.hideShipping, attrs.showLeadButton, attrs.blockId, attrs.showVideo != null ? attrs.showVideo : null, quickviewCtrl.modalId, quickviewCtrl.openFromHash, sizeId, quickviewCtrl.onOpenModal, quickviewCtrl.isSpyAddress, attrs.descriptionMode); //scope.$digest();\n }\n\n element[0].addEventListener('click', function (event) {\n event.preventDefault();\n event.stopPropagation();\n\n if (quickviewCtrl.siblings == null) {\n quickviewCtrl.setSiblings(element[0]);\n }\n\n if (attrs.modalId != null && attrs.categoryId != null) {\n quickviewCtrl.modalId = attrs.modalId + '?categoryId=' + attrs.categoryId;\n }\n\n quickviewCtrl.showModal(productViewItemCtrl.productId || parseInt(attrs.productId), productViewItemCtrl.getSelectedColorId(), attrs.quickviewTypeView, element[0].getAttribute('data-modal-class'), attrs.landingId, attrs.hideShipping, attrs.showLeadButton, attrs.blockId, attrs.showVideo != null ? attrs.showVideo : null, quickviewCtrl.modalId, quickviewCtrl.openFromHash, sizeId, quickviewCtrl.onOpenModal, quickviewCtrl.isSpyAddress, attrs.descriptionMode);\n scope.$apply();\n });\n }\n };\n}\n\nexport { quickviewTriggerDirective };","import './styles/quickview.scss';\nimport QuickviewCtrl from './controllers/quickviewController.js';\nimport { quickviewTriggerDirective } from './directives/quickviewDirectives.js';\nimport quickviewService from './services/quickviewService.js';\nconst moduleName = 'quickview';\nangular.module(moduleName, []).controller('QuickviewCtrl', QuickviewCtrl).directive('quickviewTrigger', quickviewTriggerDirective).service('quickviewService', quickviewService);\nexport default moduleName;","quickviewService.$inject = [\"modalService\", \"$location\", \"urlHelper\"];\n\n/* @ngInject */\nfunction quickviewService(modalService, $location, urlHelper) {\n var service = this,\n isRender = false,\n modalQuickViewId = null,\n modalsStorage = {},\n data = {};\n\n service.dialogRender = function (parentScope) {\n modalService.renderModal(modalQuickViewId || 'modalQuickView', null, '
', null, {\n 'isOpen': false,\n 'modalClass': 'modal-quickview' + ' ' + (parentScope.modalClass || ''),\n 'backgroundEnable': true,\n spyAddress: parentScope.spyAddress,\n anchor: modalQuickViewId || 'modalQuickView',\n callbackOpen: parentScope.spyAddress ? 'quickview.onOpenModalCallback()' : ''\n }, {\n quickview: parentScope\n });\n modalService.getModal(modalQuickViewId || 'modalQuickView').then(function (modal) {\n modal.modalScope.open();\n });\n };\n\n service.getUrl = function (productId, colorId, typeView, landingId, hideShipping, showLeadButton, blockId, showVideo, sizeId, descriptionMode) {\n return 'product/productquickview' + '?productId=' + productId + (colorId != null ? '&color=' + colorId : '') + (sizeId != null ? '&size=' + sizeId : '') + '&from=' + typeView + (landingId != null ? '&landingId=' + landingId : '') + (hideShipping != null ? '&hideShipping=' + hideShipping : '') + (showLeadButton != null ? '&showLeadButton=' + showLeadButton : '') + (blockId != null ? '&blockId=' + blockId : '') + (showVideo != null ? '&showVideo=' + showVideo : '') + (descriptionMode != null ? '&descriptionMode=' + descriptionMode : '');\n };\n\n service.dialogOpen = function (itemData, productId, colorId, typeView, modalClass, landingId, hideShipping, showLeadButton, blockId, showVideo, modalId, openFromHash, sizeId, onOpenModalCallback, spyAddress, descriptionMode) {\n data.url = service.getUrl(productId, colorId, typeView, landingId, hideShipping, showLeadButton, blockId, showVideo, sizeId, descriptionMode);\n data.itemData = itemData;\n data.productId = productId;\n data.next = service.next;\n data.prev = service.prev;\n data.modalClass = modalClass;\n data.typeView = typeView;\n data.landingId = landingId;\n data.hideShipping = hideShipping;\n data.showLeadButton = showLeadButton;\n data.blockId = blockId;\n data.showVideo = showVideo;\n data.modalId = modalId;\n data.onOpenModalCallback = onOpenModalCallback;\n data.spyAddress = spyAddress;\n data.descriptionMode = descriptionMode;\n modalQuickViewId = modalId;\n var hash = $location.hash();\n var splitedHash = hash.split('?');\n var originalHash = splitedHash[0];\n\n if (!modalsStorage[modalId]) {\n service.dialogRender(data);\n } else {\n modalService.open(modalId);\n }\n\n modalsStorage[modalId] = modalId;\n };\n\n service.dialogClose = function () {\n modalService.close(modalQuickViewId || 'modalQuickView');\n };\n\n service.prev = function () {\n var index, indexPrev;\n index = data.itemData.siblings.indexOf(data.productId);\n indexPrev = index - 1;\n\n if (data.itemData.siblings[indexPrev] != null) {\n data.productId = data.itemData.siblings[indexPrev];\n $location.hash(data.itemData.modalIds[data.productId]);\n data.url = service.getUrl(data.productId, null, data.typeView, data.landingId, data.hideShipping, data.showLeadButton, data.blockId, data.showVideo, null, data.descriptionMode);\n }\n };\n\n service.next = function () {\n var index, indexNext;\n index = data.itemData.siblings.indexOf(data.productId);\n indexNext = index + 1;\n\n if (data.itemData.siblings[indexNext] != null) {\n data.productId = data.itemData.siblings[indexNext];\n $location.hash(data.itemData.modalIds[data.productId]);\n data.url = service.getUrl(data.productId, null, data.typeView, data.landingId, data.hideShipping, data.showLeadButton, data.blockId, data.showVideo, null, data.descriptionMode);\n }\n };\n}\n\n;\nexport default quickviewService;","ReviewItemRatingCtrl.$inject = [\"$attrs\", \"$http\", \"$parse\", \"$scope\", \"toaster\"];\n\n/* @ngInject */\nfunction ReviewItemRatingCtrl($attrs, $http, $parse, $scope, toaster) {\n var ctrl = this;\n\n ctrl.$onInit = function () {\n ctrl.actionUrl = $parse($attrs.actionUrl)($scope);\n ctrl.reviewId = $parse($attrs.reviewId)($scope);\n ctrl.likeData = {\n Dislikes: $parse($attrs.countDislikes)($scope),\n Likes: $parse($attrs.countLikes)($scope)\n };\n };\n\n ctrl.like = function () {\n ctrl.voteReview(ctrl.reviewId, true, ctrl.actionUrl);\n };\n\n ctrl.dislike = function () {\n ctrl.voteReview(ctrl.reviewId, false, ctrl.actionUrl);\n };\n\n ctrl.voteReview = function (reviewId, like, actionUrl) {\n return $http.post(actionUrl, {\n reviewId: reviewId,\n vote: like\n }).then(function (response) {\n if (response.data.error) {\n toaster.pop('error', response.data.errors);\n } else {\n angular.extend(ctrl.likeData, response.data.likeData);\n }\n\n return response.data;\n });\n };\n}\n\n;\nexport default ReviewItemRatingCtrl;","ReviewsCtrl.$inject = [\"$element\", \"$compile\", \"$scope\", \"$http\", \"$filter\", \"$templateCache\", \"$timeout\", \"toaster\", \"Upload\", \"$translate\"];\n\n/* @ngInject */\nfunction ReviewsCtrl($element, $compile, $scope, $http, $filter, $templateCache, $timeout, toaster, Upload, $translate) {\n var ctrl = this,\n listRoot,\n items = {},\n form,\n formScope;\n ctrl.visibleFormCancelButton = false;\n ctrl.reviewIdActive = 0;\n\n ctrl.addItemInStorage = function (id, element) {\n items[id] = element;\n };\n\n ctrl.addForm = function (scope, element) {\n form = element;\n formScope = scope;\n };\n\n ctrl.getForm = function () {\n return form;\n };\n\n ctrl.reply = function (parentId) {\n items[parentId].append(ctrl.getForm());\n ctrl.moveFormInside(parentId);\n ctrl.formVisible = true;\n ctrl.focusInput();\n };\n\n ctrl.moveFormInside = function (parentId) {\n ctrl.reviewIdActive = parentId;\n ctrl.visibleFormCancelButton = true;\n };\n\n ctrl.formReset = function () {\n formScope.reset();\n };\n\n ctrl.moveFormDefault = function () {\n $element.append(form);\n };\n\n ctrl.formInStart = function () {\n ctrl.moveFormDefault();\n ctrl.formReset();\n ctrl.reviewIdActive = 0;\n ctrl.visibleFormCancelButton = false;\n };\n\n ctrl.addReview = function (actionUrl, name, email, text, parentId, files, agreement, captchaCode, captchaSource) {\n $(document).trigger(\"add_response\");\n return Upload.upload({\n url: actionUrl,\n data: {\n entityId: ctrl.entityId,\n entityType: ctrl.entityType,\n name: name,\n email: email,\n text: text,\n parentId: parentId,\n agreement: agreement,\n captchaCode: captchaCode,\n captchaSource: captchaSource\n },\n file: files // or list of files (files) for html5 only\n\n });\n };\n\n ctrl.submit = function (form, actionUrl) {\n //if (form.form.captchaCode != undefined) {\n ctrl.addReview(actionUrl, form.name, form.email, form.text, form.reviewId, form.images, form.agreement, form.captchaCode, form.captchaSource).then(function (response) {\n if (response.data.error) {\n toaster.pop('error', response.data.errors);\n return;\n }\n\n var newReview = response.data.review;\n\n if (ctrl.moderate == false) {\n ctrl.renderReviewItem(newReview.ParentId, newReview.ReviewId, newReview.Name, $filter('date')(Date.now(), 'dd MMMM yyyy'), newReview.Text, newReview.Photos, newReview.Likes, newReview.Dislikes, newReview.RatioByLikes);\n\n if (ctrl.onAddComment != null) {\n ctrl.onAddComment($scope);\n }\n } else {\n toaster.pop('info', $translate.instant('Js.Reviews.ThxForReviewTitle'), $translate.instant('Js.Reviews.ThxForReviewMsg'));\n }\n }); //}\n\n if (ctrl.showFormAfterDo === true) {\n ctrl.formInStart();\n } else {\n ctrl.formReset();\n ctrl.reviewIdActive = 0;\n ctrl.visibleFormCancelButton = false;\n ctrl.formVisible = false;\n }\n };\n\n ctrl.renderReviewItem = function (parentId, reviewId, name, date, text, photos, likes, dislikes, ratioByLikes) {\n var parentContainer, list, needContainer, reviewNew, htmlItem, before;\n\n if (items[parentId] != null) {\n list = items[parentId].children('ul');\n\n if (list.length > 0) {\n parentContainer = list;\n needContainer = false;\n } else {\n parentContainer = items[parentId];\n needContainer = true;\n }\n } else {\n if (listRoot) {\n parentContainer = listRoot;\n }\n\n if (parentContainer == null) {\n var reviewslist = $element[0].querySelector('.reviews-list');\n\n if (reviewslist != null) {\n parentContainer = angular.element(reviewslist);\n }\n }\n\n if (parentContainer == null) {\n parentContainer = angular.element($element[0].querySelector('.js-reviews-list-root'));\n }\n\n needContainer = true;\n before = true;\n }\n\n ctrl.getHtmlReviewItem(needContainer).then(function (htmlItem) {\n reviewNew = angular.element(htmlItem);\n\n if (before) {\n parentContainer.before(reviewNew);\n } else {\n parentContainer.append(reviewNew);\n }\n\n var scopeItem = $scope.$new();\n scopeItem.parentId = parentId;\n scopeItem.reviewId = reviewId;\n scopeItem.name = name;\n scopeItem.date = $translate.instant(date);\n scopeItem.text = text;\n scopeItem.photos = photos;\n scopeItem.likes = likes;\n scopeItem.dislikes = dislikes;\n scopeItem.ratioByLikes = ratioByLikes;\n $compile(reviewNew)(scopeItem);\n });\n };\n\n ctrl.getHtmlReviewItem = function (needContainer) {\n return $http.get('reviewItemTemplate.html', {\n cache: $templateCache\n }).then(function (response) {\n var result = response.data;\n\n if (needContainer === true) {\n result = '';\n }\n\n return result;\n });\n };\n\n ctrl.cancel = function (form) {\n if (ctrl.showFormAfterDo === true) {\n ctrl.formInStart();\n } else {\n ctrl.formReset();\n ctrl.reviewIdActive = 0;\n ctrl.visibleFormCancelButton = false;\n ctrl.formVisible = false;\n }\n };\n\n ctrl.deleteReviewFromDB = function (reviewId, actionUrl) {\n return $http.post(actionUrl, {\n reviewId: reviewId\n });\n };\n\n ctrl.delete = function (reviewId, actionUrl) {\n if (items[reviewId] != null) {\n ctrl.deleteReviewFromDB(reviewId, actionUrl).then(function (response) {\n items[reviewId].remove();\n\n if (ctrl.onDeleteComment != null) {\n ctrl.onDeleteComment($scope);\n }\n });\n }\n };\n\n ctrl.focusInput = function () {\n formScope.setAutofocus();\n };\n}\n\n;\nexport default ReviewsCtrl;","ReviewsFormCtrl.$inject = [\"$timeout\", \"toaster\", \"$translate\", \"$http\"];\n\n/* @ngInject */\nfunction ReviewsFormCtrl($timeout, toaster, $translate, $http) {\n var ctrl = this;\n ctrl.nameFocus = ctrl.emailFocus = ctrl.textFocus = false;\n ctrl.images = [];\n\n ctrl.selectedImage = function (files) {\n if (files && files.length) {\n for (var i = 0; i < files.length; i++) {\n ctrl.pushImages(files[i]);\n }\n }\n };\n\n ctrl.pushImages = function (image) {\n ctrl.images.push(image || {});\n };\n\n ctrl.deleteImage = function (index) {\n ctrl.images.splice(index, 1);\n };\n\n ctrl.submit = function () {\n if (ctrl.isShowUserAgreementText && !ctrl.agreement) {\n toaster.pop('error', $translate.instant('Js.Subscribe.ErrorAgreement'));\n return;\n }\n\n ctrl.images = ctrl.images.filter(function (image) {\n return image.name;\n });\n var sendResult = false;\n\n if (typeof CaptchaSource != \"undefined\") {\n CaptchaSource.InputId = \"CaptchaCode\";\n ctrl.captchaCode = CaptchaSource.GetInputElement().value;\n ctrl.captchaSource = CaptchaSource.InstanceId;\n $http.get(CaptchaSource.ValidationUrl + '&i=' + CaptchaSource.GetInputElement().value).then(function (result) {\n if (result.data === true) {\n ctrl.submitFn({\n form: ctrl\n });\n sendResult = true;\n } else {\n toaster.pop('error', $translate.instant('Js.Captcha.Wrong'));\n }\n }).then(function () {\n $timeout(function () {\n CaptchaSource.ReloadImage();\n }, 1000);\n CaptchaSource.GetInputElement().value = '';\n\n if ((ctrl.moderate == null || ctrl.moderate == false) && sendResult === true) {\n $translate(['Js.Reviews.SuccessTitle', 'Js.Reviews.SuccessMessage']).then(function (translations) {\n toaster.success(translations['Js.Reviews.SuccessTitle'], translations['Js.Reviews.SuccessMessage']);\n });\n }\n });\n } else {\n ctrl.submitFn({\n form: ctrl\n });\n sendResult = true;\n\n if ((ctrl.moderate == null || ctrl.moderate == false) && sendResult === true) {\n $translate(['Js.Reviews.SuccessTitle', 'Js.Reviews.SuccessMessage']).then(function (translations) {\n toaster.success(translations['Js.Reviews.SuccessTitle'], translations['Js.Reviews.SuccessMessage']);\n });\n }\n }\n };\n\n ctrl.reset = function () {\n //formScope.name = '';\n //formScope.email = '';\n ctrl.text = '';\n ctrl.images = [];\n ctrl.agreement = false;\n ctrl.form.$setPristine();\n };\n\n ctrl.setAutofocus = function () {\n ctrl.nameFocus = ctrl.emailFocus = ctrl.textFocus = false;\n $timeout(function () {\n if (ctrl.name == null || ctrl.name.length === 0) {\n ctrl.nameFocus = true;\n } else if (ctrl.email == null || ctrl.email.length === 0) {\n ctrl.emailFocus = true;\n } else if (ctrl.text == null || ctrl.text.length === 0) {\n ctrl.textFocus = true;\n }\n }, 0);\n };\n}\n\n;\nexport default ReviewsFormCtrl;","reviewsDirective.$inject = [\"$parse\"];\n\n/* @ngInject */\nfunction reviewsDirective($parse) {\n return {\n restrict: 'A',\n scope: true,\n controller: 'ReviewsCtrl',\n controllerAs: 'reviews',\n bindToController: true,\n link: function (scope, element, attrs, ctrl) {\n ctrl.moderate = attrs.moderate === 'true';\n ctrl.isAdmin = attrs.isAdmin === 'true';\n ctrl.entityId = attrs.entityId;\n ctrl.entityType = attrs.entityType;\n ctrl.name = attrs.name;\n ctrl.email = attrs.email;\n ctrl.actionUrl = attrs.actionUrl;\n ctrl.formVisible = attrs.formVisible !== 'false';\n ctrl.allowImageUpload = attrs.allowImageUpload === 'true';\n ctrl.readonly = attrs.readonly === 'true';\n ctrl.onAddComment = attrs.onAddComment != null ? $parse(attrs.onAddComment) : null;\n ctrl.onDeleteComment = attrs.onDeleteComment != null ? $parse(attrs.onDeleteComment) : null;\n ctrl.showFormAfterDo = attrs.showFormAfterDo != null ? $parse(attrs.showFormAfterDo) : true;\n }\n };\n}\n\n;\n\nfunction reviewItemDirective() {\n return {\n require: '^reviews',\n restrict: 'A',\n scope: true,\n link: function (scope, element, attrs, ctrl) {\n ctrl.addItemInStorage(attrs.reviewId, element);\n }\n };\n}\n\n;\n\nfunction reviewsFormDirective() {\n return {\n require: ['^reviewsForm', '^reviews'],\n restrict: 'A',\n scope: {\n visibleFormCancelButton: '=',\n reviewId: '=',\n name: '=',\n email: '=',\n submitFn: '&',\n cancelFn: '&',\n formVisible: '=',\n allowImageUpload: '=',\n isShowUserAgreementText: '=',\n agreementDefaultChecked: '',\n link: function (scope, element, attrs, ctrl) {\n scope.parentScope = ctrl;\n }\n };\n}\n\n;\n\nfunction reviewDeleteDirective() {\n return {\n require: '^reviews',\n restrict: 'A',\n replace: true,\n transclude: true,\n scope: {\n reviewId: '@',\n actionUrl: '@'\n },\n template: '',\n link: function (scope, element, attrs, ctrl) {\n scope.parentScope = ctrl;\n }\n };\n}\n\n;\n\nfunction reviewItemRatingDirective() {\n return {\n scope: true,\n controller: 'ReviewItemRatingCtrl',\n controllerAs: 'reviewItemRating'\n };\n}\n\n;\nexport { reviewsDirective, reviewItemDirective, reviewsFormDirective, reviewReplyDirective, reviewDeleteDirective, reviewItemRatingDirective };","import ngFileUploadModule from '../../../node_modules/ng-file-upload/index.js';\nimport './styles/reviews.scss';\nimport ReviewsCtrl from './controllers/reviewsController.js';\nimport ReviewsFormCtrl from './controllers/reviewsFormController.js';\nimport ReviewItemRatingCtrl from './controllers/reviewItemRatingController.js';\nimport { reviewsDirective, reviewItemDirective, reviewsFormDirective, reviewReplyDirective, reviewDeleteDirective, reviewItemRatingDirective } from './directives/reviewsDirectives.js';\nconst moduleName = 'reviews';\nangular.module(moduleName, [ngFileUploadModule]).controller('ReviewsCtrl', ReviewsCtrl).controller('ReviewItemRatingCtrl', ReviewItemRatingCtrl).controller('ReviewsFormCtrl', ReviewsFormCtrl).directive('reviews', reviewsDirective).directive('reviewItem', reviewItemDirective).directive('reviewsForm', reviewsFormDirective).directive('reviewReply', reviewReplyDirective).directive('reviewDelete', reviewDeleteDirective).directive('reviewItemRating', reviewItemRatingDirective);\nexport default moduleName;","ShippingListCtrl.$inject = [\"$anchorScroll\", \"$location\", \"shippingService\"];\n\n/* @ngInject */\nfunction ShippingListCtrl($anchorScroll, $location, shippingService) {\n var ctrl = this;\n var watchersFn = []; //ctrl.isProgress = null;\n\n $anchorScroll.yOffset = 50; //ctrl.selectedItemIndex = 0;\n //ctrl.collapsed = true;\n\n ctrl.visibleItems = Number.POSITIVE_INFINITY;\n\n ctrl.changeShipping = function (shipping, index) {\n if (index != null) {\n ctrl.selectedItemIndex = index;\n }\n\n ctrl.change({\n shipping: shipping,\n newShipping: ctrl.newShipping\n });\n };\n\n ctrl.changeShippingControl = function (shipping) {\n for (var i = ctrl.items.length - 1; i >= 0; i--) {\n if (ctrl.items[i] === shipping) {\n ctrl.selectShipping = shipping;\n ctrl.selectedItemIndex = i;\n break;\n }\n }\n\n ctrl.change({\n shipping: shipping,\n customShipping: ctrl.customShipping\n });\n };\n\n ctrl.focusEditPrice = function (shipping, index) {\n ctrl.selectShipping = shipping;\n ctrl.selectedItemIndex = index;\n ctrl.focus({\n shipping: shipping,\n customShipping: ctrl.customShipping\n });\n };\n\n ctrl.calc = function (index) {\n var selectItemPos = index + 1;\n ctrl.selectedItemIndex = index;\n ctrl.visibleItems = selectItemPos > ctrl.countVisibleItems ? selectItemPos : ctrl.countVisibleItems;\n return selectItemPos;\n };\n\n ctrl.toggleVisible = function () {\n var selectItemPos = ctrl.calc(ctrl.selectedItemIndex);\n\n if (ctrl.collapsed === true) {\n ctrl.visibleItems = ctrl.items.length;\n ctrl.collapsed = false;\n } else {\n if (selectItemPos === ctrl.items.length) {\n return;\n }\n\n ctrl.visibleItems = selectItemPos > ctrl.countVisibleItems ? selectItemPos : ctrl.countVisibleItems;\n ctrl.collapsed = true;\n $location.hash(ctrl.anchor);\n $anchorScroll();\n }\n };\n\n ctrl.setSelectedIndex = function (index) {\n var selectItemPos = ctrl.calc(index);\n\n if (selectItemPos === ctrl.items.length) {\n ctrl.collapsed = false;\n } else {\n ctrl.collapsed = true;\n }\n };\n\n ctrl.addCallbackOnLoad = function (fn) {\n watchersFn.push(fn);\n };\n\n ctrl.processCallbacks = function () {\n var params = arguments;\n watchersFn.forEach(function (fn) {\n fn(params);\n });\n };\n\n ctrl.isTemplateReady = function (item) {\n return ctrl.isProgress !== true && item.Template && shippingService.isTemplateReady(item.Template) !== true;\n };\n}\n\n;\nexport default ShippingListCtrl;","ShippingTemplateCtrl.$inject = [\"$scope\", \"$timeout\", \"$ocLazyLoad\", \"urlHelper\", \"shippingService\"];\n\n/* @ngInject */\nfunction ShippingTemplateCtrl($scope, $timeout, $ocLazyLoad, urlHelper, shippingService) {\n var ctrl = this,\n timer;\n\n ctrl.$onInit = function () {\n shippingService.whenTemplateReady($scope, event => {\n shippingService.saveTemplateState(ctrl.templateUrl);\n });\n };\n\n ctrl.fireTemplateReady = function () {\n shippingService.fireTemplateReady($scope);\n };\n\n ctrl.prepereLazyLoadUrl = function (params) {\n for (var i = 0, len = params.length; i < len; i++) {\n params[i] = urlHelper.getAbsUrl(params[i], true);\n }\n\n return params;\n };\n\n ctrl.changePrepare = function (event, field, shipping) {\n if (field == null) {\n return;\n }\n\n angular.extend(ctrl.shipping, shipping);\n\n if (event != null && event.type === 'keyup') {\n if (timer != null) {\n $timeout.cancel(timer);\n }\n\n timer = $timeout(function () {\n ctrl.changeControl({\n shipping: ctrl.shipping\n });\n }, 500);\n } else {\n ctrl.changeControl({\n shipping: ctrl.shipping\n });\n }\n };\n\n ctrl.changeSpinbox = function (value, proxy) {\n ctrl.changeControl({\n shipping: ctrl.shipping\n });\n };\n}\n\n;\nexport default ShippingTemplateCtrl;","ShippingVariantsCtrl.$inject = [\"$http\", \"zoneService\"];\n\n/* @ngInject */\nfunction ShippingVariantsCtrl($http, zoneService) {\n var ctrl = this;\n\n ctrl.$postLink = function () {\n if (ctrl.type === \"display\") {\n ctrl.getData(ctrl.startOfferId, ctrl.startAmount, ctrl.startSvCustomOptions, ctrl.zip);\n }\n\n if (ctrl.type === \"none\") {\n ctrl.getData(ctrl.startOfferId, ctrl.startAmount, ctrl.startSvCustomOptions, ctrl.zip);\n }\n\n if (ctrl.type === \"Always\") {\n ctrl.getData(ctrl.startOfferId, ctrl.startAmount, ctrl.startSvCustomOptions, ctrl.zip);\n }\n\n zoneService.addCallback('set', function (data) {\n ctrl.zip = data.Zip;\n ctrl.getData(ctrl.offerId, ctrl.amount != null ? ctrl.amount : ctrl.startAmount, ctrl.svCustomOptions, ctrl.zip);\n });\n ctrl.initFn({\n shippingVariants: ctrl\n });\n };\n\n ctrl.getData = function (offerId, amount, customOptions, zip) {\n if (offerId == null || amount == null) {\n return null;\n }\n\n ctrl.isProgress = true;\n return $http.post('productExt/getshippings', {\n offerId: offerId,\n amount: amount,\n customOptions: customOptions,\n zip: zip,\n rnd: Math.random()\n }).then(function (response) {\n if (response.data != null) {\n ctrl.items = response.data.Shippings;\n\n if (response.data.AdvancedObj) {\n ctrl.showZip = response.data.AdvancedObj.ShowZip;\n }\n } else {\n ctrl.items = [];\n }\n\n ctrl.isProgress = false;\n return response.data;\n });\n };\n\n ctrl.update = function () {\n return ctrl.getData(ctrl.offerId, ctrl.amount, ctrl.svCustomOptions, ctrl.zip).then(function (data) {\n return data;\n });\n };\n\n ctrl.calcShippings = function () {\n ctrl.type = \"Always\";\n ctrl.getData(ctrl.startOfferId, ctrl.startAmount, ctrl.startSvCustomOptions, ctrl.zip);\n };\n}\n\n;\nexport default ShippingVariantsCtrl;","shippingListDirective.$inject = [\"urlHelper\", \"$timeout\"];\n\n/* @ngInject */\nfunction shippingListDirective(urlHelper, $timeout) {\n return {\n restrict: 'A',\n scope: {\n items: '=',\n selectShipping: '=',\n countVisibleItems: '=',\n change: '&',\n focus: '&',\n anchor: '@',\n isProgress: '=?',\n contact: ''\n };\n}\n\n;\n\nfunction shippingVariantsDirective() {\n return {\n restrict: 'A',\n scope: {\n type: '@',\n offerId: '=',\n amount: '=',\n svCustomOptions: '=',\n startOfferId: '@',\n startAmount: '@',\n startSvCustomOptions: '@',\n zip: '@',\n initFn: '&'\n },\n controller: 'ShippingVariantsCtrl',\n controllerAs: 'shippingVariants',\n bindToController: true,\n replace: true,\n templateUrl: '/scripts/_partials/shipping/templates/shippingVariants.html'\n };\n}\n\n;\nexport { shippingListDirective, shippingTemplateDirective, shippingVariantsDirective };","const eventReady = \"shippingTemplateReady\";\nconst dataSet = new Set();\n\nclass ShippingService {\n whenTemplateReady(scope, fn) {\n scope.$on(eventReady, event => {\n fn(event);\n });\n }\n\n fireTemplateReady(scope, value) {\n scope.$emit(eventReady, value);\n }\n\n saveTemplateState(templateUrl) {\n dataSet.add(templateUrl);\n }\n\n isTemplateReady(templateUrl) {\n return dataSet.has(templateUrl);\n }\n\n}\n\nexport default ShippingService;","import './styles/shipping.scss';\nimport ShippingService from './services/shipping.service.js';\nimport ShippingListCtrl from './controllers/shippingListController.js';\nimport ShippingVariantsCtrl from './controllers/shippingVariantsController.js';\nimport ShippingTemplateCtrl from './controllers/shippingTemplateController.js';\nimport { shippingListDirective, shippingTemplateDirective, shippingVariantsDirective } from './directives/shippingDirectives.js';\nconst moduleName = 'shipping';\nangular.module(moduleName, []).service('shippingService', ShippingService).controller('ShippingListCtrl', ShippingListCtrl).controller('ShippingTemplateCtrl', ShippingTemplateCtrl).controller('ShippingVariantsCtrl', ShippingVariantsCtrl).directive('shippingList', shippingListDirective).directive('shippingTemplate', shippingTemplateDirective).directive('shippingVariants', shippingVariantsDirective);\nexport default moduleName;","function SizesViewerCtrl() {\n var ctrl = this;\n\n ctrl.$onInit = function () {\n if (ctrl.startSelectedSizes != null && ctrl.startSelectedSizes.length > 0) {\n for (var s = 0, lenS = ctrl.startSelectedSizes.length; s < lenS; s++) {\n for (var c = 0, lenC = ctrl.sizes.length; c < lenC; c++) {\n if (ctrl.sizes[c].SizeId === ctrl.startSelectedSizes[s]) {\n ctrl.sizeSelected = ctrl.sizes[c];\n break;\n }\n }\n }\n }\n\n ctrl.initSizes({\n sizesViewer: ctrl\n });\n };\n}\n\n;\nexport default SizesViewerCtrl;","function sizesViewerDirective() {\n return {\n restrict: 'A',\n replace: true,\n templateUrl: '/scripts/_partials/sizes-viewer/templates/sizes.html',\n controller: 'SizesViewerCtrl',\n controllerAs: 'sizesViewer',\n bindToController: true,\n scope: {\n sizes: '= 0; i--) {\n ctrl.data[i].Columns = zoneService.sliceCitiesForDialog(ctrl.data[i].Cities);\n }\n\n return data;\n }).finally(function () {\n ctrl.isProgress = false;\n });\n };\n\n ctrl.changeCity = function (city, obj, countryId, region, event) {\n if (!city.length || event != null && event.type === 'blur') return;\n if (!region && obj != null) region = obj.Region;\n var zip = obj != null ? obj.Zip : null;\n var country = obj != null ? obj.Country : null;\n var district = obj != null ? obj.District : null;\n zoneService.setCurrentZone(city, obj, countryId, region, country, zip, district).then(function (data) {\n if (!data.Region) {\n ctrl.showRegion = true;\n ctrl.autocompleter.toggleVisible(false);\n } else {\n zoneService.zoneDialogClose();\n ctrl.zoneCity = ctrl.zoneRegion = \"\";\n ctrl.showRegion = false;\n }\n\n $timeout(function () {\n zoneService.processCallback('changeCity');\n }, 0);\n });\n };\n\n ctrl.keyup = function ($event, val) {\n $event.stopPropagation();\n var keyCode = $event.keyCode;\n\n switch (keyCode) {\n case 13:\n //enter\n ctrl.changeCity(ctrl.zoneCity, null, ctrl.countrySelected.CountryId, ctrl.zoneRegion);\n break;\n }\n };\n\n ctrl.autocompleterOnInit = function (autocompleter) {\n ctrl.autocompleter = autocompleter;\n };\n };\n\n angular.module('zone').controller('ZoneCtrl', ZoneCtrl);\n ZoneCtrl.$inject = ['zoneService', '$timeout'];\n})(window.angular);",";\n\n(function (ng) {\n 'use strict';\n\n var ZonePopoverCtrl = function ($cookies, zoneService, popoverService, modalService) {\n var ctrl = this;\n\n ctrl.$onInit = function () {\n zoneService.zonePopoverShown();\n };\n\n ctrl.modalsStartWorking = function () {\n modalService.startWorking();\n };\n\n ctrl.zoneOk = function () {\n popoverService.getPopoverScope('zonePopover').then(function (popoverScope) {\n popoverScope.deactive();\n ctrl.modalsStartWorking();\n });\n zoneService.approveZone();\n };\n\n ctrl.zoneNo = function () {\n popoverService.getPopoverScope('zonePopover').then(function (popoverScope) {\n popoverScope.deactive();\n zoneService.zoneDialogOpen();\n });\n };\n };\n\n angular.module('zone').controller('ZonePopoverCtrl', ZonePopoverCtrl);\n ZonePopoverCtrl.$inject = ['$cookies', 'zoneService', 'popoverService', 'modalService'];\n})(window.angular);",";\n\n(function (ng) {\n 'use strict';\n\n angular.module('zone').directive('zoneDialogTrigger', ['zoneService', function (zoneService) {\n return {\n restrict: 'A',\n scope: {},\n link: function (scope, element, attrs, ctrl) {\n element.on('click', function (e) {\n e.stopPropagation();\n scope.$apply(zoneService.zoneDialogOpen);\n });\n }\n };\n }]);\n angular.module('zone').directive('zoneDialog', function () {\n return {\n restrict: 'A',\n scope: {},\n replace: true,\n templateUrl: '/scripts/_partials/zone/templates/dialog.html',\n controller: 'ZoneCtrl',\n controllerAs: 'zone',\n bindToController: true\n };\n });\n angular.module('zone').directive('zoneCurrent', ['zoneService', function (zoneService) {\n return {\n restrict: 'A',\n scope: true,\n link: function (scope, element, attrs, ctrl) {\n var startVal = new Function('return ' + attrs.startVal)();\n scope.zone = {}; //if (attrs.startCity != null) {\n // scope.zone.City = attrs.startCity;\n //}\n\n if (startVal != null) {\n angular.extend(scope.zone, zoneService.trustZone(startVal));\n }\n\n zoneService.addUpdateList(scope);\n zoneService.getCurrentZone().then(function (data) {\n scope.zone = zoneService.trustZone(data);\n });\n }\n };\n }]);\n angular.module('zone').directive('zonePopover', function () {\n return {\n restrict: 'A',\n scope: true,\n controller: 'ZonePopoverCtrl',\n controllerAs: 'zonePopover'\n };\n });\n angular.module('zone').directive('zoneAddCallback', ['zoneService', '$parse', function (zoneService, $parse) {\n return {\n restrict: 'A',\n scope: true,\n controller: 'ZonePopoverCtrl',\n controllerAs: 'zonePopover',\n link: function (scope, element, attrs, ctrl) {\n const objCallback = $parse(attrs.zoneAddCallback)(scope);\n\n if (objCallback != null && objCallback.callback != null && objCallback.callbackName != null) {\n zoneService.addCallback(objCallback.callbackName, objCallback.callback);\n }\n }\n };\n }]);\n})(window.angular);",";\n\n(function (ng) {\n 'use strict';\n\n var zoneService = function ($http, $cacheFactory, $q, $sce, $timeout, modalService) {\n var service = this,\n isRenderDialog = false,\n updateList = [],\n queryList = [],\n callbacks = {},\n cache = $cacheFactory('zonesCache');\n\n service.getDataForPopup = function () {\n return $http.get('location/getdataforpopup').then(function (response) {\n return response.data;\n });\n };\n\n service.getZones = function (countryId) {\n return service.getZonesFromCache(countryId).then(function (response) {\n if (response == null) {\n return service.getZonesFromDB(countryId);\n } else {\n return response;\n }\n });\n };\n\n service.getZonesFromCache = function (countryId) {\n var zones = cache.get('zones'),\n zone = angular.isDefined(zones) ? zones[countryId] : null;\n return $q.when(zone);\n };\n\n service.getZonesFromDB = function (countryId) {\n return $http.get('/location/getcities', {\n params: {\n countryId: countryId || 0\n }\n }).then(function (response) {\n var zones = cache.get('zones') || {};\n zones[countryId || 0] = response.data;\n cache.put('zones', zones);\n return response.data;\n });\n };\n\n service.setCurrentZone = function (city, obj, countryId, region, country, zip, district) {\n var params = {\n city: city,\n countryId: countryId,\n regionName: region,\n countryName: country,\n zip: zip,\n district: district\n };\n if (obj != null) params.cityId = obj.CityId;\n return $http.post('/location/setzone', params).then(function (response) {\n var currentFromCache = cache.get('currentZone'),\n obj = angular.isDefined(currentFromCache) ? angular.extend(currentFromCache, response.data) : response.data;\n\n if (obj.Phone != null) {\n obj.Phone = $sce.trustAsHtml(obj.Phone);\n }\n\n service.processUpdateList(obj);\n service.processCallback('set', obj);\n return cache.put('currentZone', obj);\n });\n };\n\n service.getCurrentZone = function () {\n var currentFromCache = cache.get('currentZone');\n\n if (currentFromCache != null) {\n return $q.when(currentFromCache);\n }\n\n if (queryList.length > 0) {\n var defer = $q.defer();\n queryList.push(defer);\n return defer.promise;\n }\n\n queryList.push($q.defer());\n return $http.post('/location/getcurrentzone').then(function (response) {\n response.data.Phone = $sce.trustAsHtml(response.data.Phone);\n cache.put('currentZone', response.data.current);\n\n for (var i = queryList.length - 1; i >= 0; i--) {\n queryList[i].resolve(cache.get('currentZone'));\n }\n\n queryList.length = 0;\n return $q.when(cache.get('currentZone'));\n });\n };\n\n service.approveZone = function () {\n return $http.post('/location/approveZone');\n };\n\n service.zonePopoverShown = function () {\n return $http.post('/common/resetLastModified');\n };\n\n service.zoneDialogOpen = function () {\n if (isRenderDialog === false) {\n modalService.renderModal('zoneDialog', undefined, '
', undefined, {\n 'isOpen': true,\n 'modalClass': 'zone-dialog'\n });\n isRenderDialog = true;\n } else {\n modalService.open('zoneDialog');\n }\n };\n\n service.zoneDialogClose = function () {\n if (isRenderDialog === true) {\n modalService.close('zoneDialog');\n modalService.startWorking();\n }\n };\n\n service.sliceCitiesForDialog = function (cities) {\n var columnsSize = 4,\n citiesLength = cities.length;\n var itemsSize = Math.ceil(citiesLength / columnsSize),\n newArray = [];\n\n for (var i = 0; i < columnsSize; i++) {\n newArray.push(cities.slice(i * itemsSize, (i + 1) * itemsSize));\n }\n\n return newArray;\n };\n\n service.getCitiesForAutocomplete = function (cityName) {\n return $http.get('/location/getcitiesautocomplete', {\n params: {\n q: cityName\n }\n }).then(function (response) {\n return response.data;\n });\n };\n\n service.addUpdateList = function (scope) {\n updateList.push(scope);\n };\n\n service.addCallback = function (eventName, func) {\n callbacks[eventName] = callbacks[eventName] || [];\n callbacks[eventName].push(func);\n };\n\n service.processCallback = function (eventName, data) {\n if (callbacks[eventName] != null) {\n for (var i = 0, l = callbacks[eventName].length; i < l; i++) {\n callbacks[eventName][i](data);\n }\n }\n };\n\n service.processUpdateList = function (data) {\n var dataTrusted = service.trustZone(data),\n zoneCurrentItem;\n\n for (var i = updateList.length - 1; i >= 0; i--) {\n zoneCurrentItem = updateList[i].zone;\n zoneCurrentItem = angular.isDefined(zoneCurrentItem) ? angular.extend(zoneCurrentItem, dataTrusted) : dataTrusted;\n }\n };\n\n service.trustZone = function (zone) {\n if (zone.Phone != null && typeof zone.Phone === 'string') {\n zone.Phone = $sce.trustAsHtml(zone.Phone);\n }\n\n return zone;\n };\n };\n\n angular.module('zone').service('zoneService', zoneService);\n zoneService.$inject = ['$http', '$cacheFactory', '$q', '$sce', '$timeout', 'modalService'];\n})(window.angular);",";\n\n(function (ng) {\n 'use strict';\n\n angular.module('zone', []);\n})(window.angular);","import './styles/zones.scss';\nimport './zone.js';\nimport './controllers/zoneController.js';\nimport './controllers/zonePopoverController.js';\nimport './directives/zoneDirectives.js';\nimport './services/zoneService.js';\nexport default 'zone';","class AppDependency {\n constructor() {\n if (!window.___appDependency) {\n window.___appDependency = this;\n window.___appDependencyList = [];\n }\n\n return window.___appDependency;\n }\n\n addItem(moduleName) {\n window.___appDependencyList.push(moduleName);\n }\n\n addList(moduleNameList) {\n window.___appDependencyList = window.___appDependencyList.concat(moduleNameList);\n }\n\n get() {\n return window.___appDependencyList;\n }\n\n}\n\nexport default new AppDependency();","import AuthCtrl from './controllers/authController.js';\nimport authService from './services/authService.js';\nimport loginOpenId from '../../scripts/_partials/login-open-id/loginOpenId.module.js';\nconst moduleName = 'auth';\nangular.module(moduleName, []).controller('AuthCtrl', AuthCtrl).service('authService', authService);\nexport default moduleName;","AuthCtrl.$inject = [\"$window\", \"toaster\", \"authService\", \"$sce\"];\n\n/* @ngInject */\nfunction AuthCtrl($window, toaster, authService, $sce) {\n var ctrl = this;\n\n ctrl.login = function (email, password, redirect, forceRedirect) {\n var captchaExist = typeof CaptchaSource != \"undefined\" && CaptchaSource != null;\n var captchaInstanceId = captchaExist ? CaptchaSource.InstanceId : null;\n authService.login(email, password, ctrl.captchaCode, captchaInstanceId).then(function (result) {\n if (result.error != null && result.error.length > 0) {\n toaster.pop('error', result.error);\n\n if (result.requestCaptcha == true && ctrl.showCaptcha != result.requestCaptcha) {\n ctrl.showCaptcha = result.requestCaptcha;\n ctrl.initCaptcha();\n }\n\n if (captchaExist) {\n CaptchaSource.ReloadImage();\n }\n } else {\n if (redirect != null && redirect.length > 0) {\n if (!forceRedirect && result.redirectTo != null && redirect.indexOf('checkout') == -1) {\n redirect = result.redirectTo;\n }\n\n $window.location = redirect;\n } else {\n $window.location.reload();\n }\n }\n });\n };\n\n ctrl.initCaptcha = function () {\n authService.getCaptchaHtml(\"auth.captchaCode\").then(function (result) {\n ctrl.captchaHtml = $sce.trustAsHtml(result);\n });\n };\n}\n\n;\nexport default AuthCtrl;","authService.$inject = [\"$http\"];\n\n/* @ngInject */\nfunction authService($http) {\n var service = this;\n\n service.login = function (email, password, captchaCode, captchaSource) {\n return $http.post('/user/loginjson', {\n email: email,\n password: password,\n captchaCode: captchaCode,\n captchaSource: captchaSource\n }).then(function (response) {\n return response.data;\n });\n };\n\n service.getCaptchaHtml = function (ngModel) {\n return $http.post('/commonExt/getCaptchaHtml', {\n ngModel: ngModel\n }).then(function (response) {\n return response.data;\n });\n };\n}\n\n;\nexport default authService;","checkoutService.$inject = [\"$http\", \"toaster\"];\n\n/* @ngInject */\nfunction checkoutService($http, toaster) {\n var service = this,\n callbackStorage = {},\n contact;\n\n service.getContactFromCache = function () {\n return contact;\n };\n\n service.processContact = function (address) {\n return $http.post('/checkout/CheckoutProcessContactPost', {\n address: address,\n rnd: Math.random()\n }).then(function (response) {\n return response.data;\n });\n };\n\n service.saveContact = function (address, $httpOptions) {\n return $http.post('/checkout/CheckoutContactPost', {\n address: address,\n rnd: Math.random()\n }, $httpOptions).then(function (response) {\n contact = address;\n return response.data;\n });\n };\n\n service.getShipping = function (preorderList) {\n var params = {\n rnd: Math.random()\n };\n\n if (preorderList != null) {\n params.preorderList = preorderList;\n }\n\n return $http.post('/checkout/CheckoutShippingJson', params).then(function (response) {\n return response.data;\n });\n };\n\n service.saveShipping = function (shipping, preorderList) {\n var params = {\n shipping: shipping,\n rnd: Math.random()\n };\n\n if (preorderList != null) {\n params.preorderList = preorderList;\n }\n\n return $http.post('/checkout/CheckoutShippingPost', params).then(function (response) {\n return response.data;\n });\n };\n\n service.getPayment = function (preorderList) {\n var params = {\n rnd: Math.random()\n };\n\n if (preorderList != null) {\n params.preorderList = preorderList;\n }\n\n return $http.post('/checkout/CheckoutPaymentJson', params).then(function (response) {\n return response.data;\n });\n };\n\n service.savePayment = function (payment, preorderList) {\n var params = {\n payment: payment,\n rnd: Math.random()\n };\n\n if (preorderList != null) {\n params.preorderList = preorderList;\n }\n\n return $http.post('/checkout/CheckoutPaymentPost', params).then(function (response) {\n return response.data;\n });\n };\n\n service.getCheckoutCart = function () {\n return $http.get('/checkout/CheckoutCartJson', {\n params: {\n rnd: Math.random()\n }\n }).then(function (response) {\n return response.data;\n });\n };\n\n service.autorizeBonus = function (cardNumber) {\n return $http.post('/checkout/CheckoutBonusAutorizePost', {\n cardNumber: cardNumber,\n rnd: Math.random()\n }).then(function (response) {\n return response.data;\n });\n };\n\n service.toggleBonus = function (isApply) {\n return $http.post('/checkout/CheckoutBonusApplyPost', {\n isApply: isApply,\n rnd: Math.random()\n }).then(function (response) {\n if (!response.data) {\n toaster.pop('error', '', response.data.msg);\n }\n\n return response.data;\n });\n };\n\n service.couponApplied = function () {\n return $http.post('/checkout/CheckoutCouponApplied', {\n irnd: Math.random()\n }).then(function (response) {\n return response.data;\n });\n };\n\n service.commentSave = function (message) {\n return $http.post('/checkout/CommentPost', {\n message: message,\n rnd: Math.random()\n }).then(function (response) {\n return response.data;\n });\n };\n\n service.saveNewCustomer = function (customer) {\n return $http.post('/checkout/CheckoutUserPost', {\n customer: customer,\n rnd: Math.random()\n }).then(function (response) {\n return response.data;\n });\n };\n\n service.saveWantBonusCard = function (wantBonusCard) {\n return $http.post('/checkout/saveWantBonusCard', {\n wantBonusCard: wantBonusCard,\n rnd: Math.random()\n }).then(function (response) {\n return response.data;\n });\n }; // billing\n\n\n service.getBillingPayment = function (orderId) {\n return $http.post('/checkout/BillingPaymentJson', {\n rnd: Math.random(),\n orderId: orderId\n }).then(function (response) {\n return response.data;\n });\n };\n\n service.getBillingCart = function (orderId) {\n return $http.get('/checkout/BillingCartJson', {\n params: {\n orderId: orderId,\n rnd: Math.random()\n }\n }).then(function (response) {\n return response.data;\n });\n };\n\n service.saveBillingPayment = function (payment, orderId) {\n return $http.post('/checkout/BillingPaymentPost', {\n payment: payment,\n orderId: orderId,\n rnd: Math.random()\n }).then(function (response) {\n return response.data;\n });\n }; //events: address, shipping, payment, bonus, coupon, relationshipEnd\n\n\n service.addCallback = function (eventName, callback) {\n callbackStorage[eventName] = callbackStorage[eventName] || [];\n callbackStorage[eventName].push(callback);\n };\n\n service.removeCallback = function (eventName, callback) {\n var index;\n\n if (callbackStorage[eventName] != null && callbackStorage[eventName].length > 0) {\n index = callbackStorage[eventName].indexOf(callback);\n\n if (index !== -1) {\n callbackStorage[eventName].splice(index, 1);\n }\n }\n };\n\n service.processCallbacks = function (eventName, data) {\n if (callbackStorage[eventName] != null) {\n callbackStorage[eventName].forEach(function (fn) {\n fn(data);\n });\n }\n };\n}\n\n;\nexport default checkoutService;","productService.$inject = [\"$http\", \"$q\", \"modalService\"];\n\n/* @ngInject */\nfunction productService($http, $q, modalService) {\n var service = this,\n _product,\n callbacks = {};\n\n service.getOffers = function (productId, colorId, sizeId) {\n return $http.get('productExt/getoffers', {\n params: {\n productId: productId,\n colorId: colorId,\n sizeId: sizeId\n }\n }).then(function (response) {\n return response.data;\n });\n };\n\n service.findOfferSelected = function (offers, offerIdSelected) {\n var offer;\n\n for (var i = offers.length - 1; i >= 0; i--) {\n if (offers[i].OfferId === offerIdSelected) {\n offer = offers[i];\n break;\n }\n }\n\n return offer;\n };\n\n service.findOffersByColorId = function (offers, colorId) {\n return offers.filter(function (item) {\n return colorId != null && item.Color != null && item.Color.ColorId === colorId;\n });\n };\n\n service.findOffersBySizeId = function (offers, sizeId) {\n return offers.filter(function (item) {\n return sizeId != null && item.Size != null && item.Size.SizeId === sizeId;\n });\n };\n\n service.getOffer = function (offers, colorId, sizeId, allowPreOrder) {\n var arrayOffers = offers.slice(),\n arrayOffersByColor = [],\n arrayOffersBySize = [],\n stopLoop = false,\n offer;\n arrayOffersByColor = service.findOffersByColorId(arrayOffers, colorId);\n arrayOffersBySize = service.findOffersBySizeId(arrayOffers, sizeId);\n\n if (arrayOffersByColor.length > 0 && arrayOffersBySize.length > 0) {\n for (var i = 0, lenC = arrayOffersByColor.length; i < lenC; i++) {\n for (var j = 0, lenS = arrayOffersBySize.length; j < lenS; j++) {\n if (arrayOffersByColor[i].OfferId === arrayOffersBySize[j].OfferId) {\n offer = arrayOffersByColor[i];\n stopLoop = true;\n break;\n }\n }\n\n if (stopLoop === true) {\n break;\n }\n }\n }\n\n if (offer == null && arrayOffersByColor.length > 0) {\n offer = arrayOffersByColor[0];\n }\n\n if (offer == null && arrayOffersBySize.length > 0) {\n offer = arrayOffersBySize[0];\n }\n\n return offer;\n };\n\n service.getPrice = function (offerId, attributesXml, lpBlockId) {\n return $http.post('productExt/getofferprice', {\n offerId: offerId,\n attributesXml: attributesXml,\n lpBlockId: lpBlockId\n }).then(function (response) {\n return response.data;\n });\n };\n\n service.getFirstPaymentPrice = function (price, discount, discountAmount) {\n return $http.get('productExt/getfirstpaymentprice', {\n params: {\n price: price,\n discount: discount,\n discountAmount: discountAmount\n }\n }).then(function (response) {\n return response.data;\n });\n };\n\n service.getShippings = function (offerId) {\n return $http.get('productExt/getshippings', {\n params: {\n offerId: offerId\n }\n }).then(function (response) {\n return response.data;\n });\n };\n\n service.addCallback = function (name, func) {\n callbacks[name] = callbacks[name] || [];\n callbacks[name].push(func);\n };\n\n service.processCallback = function (name, data) {\n var arrFunc = callbacks[name];\n\n if (arrFunc != null && arrFunc.length > 0) {\n for (var i = 0, len = arrFunc.length; i < len; i++) {\n arrFunc[i](data);\n }\n }\n\n ;\n };\n\n service.getPhoto = function (url) {\n var defered = $q.defer(),\n img = new Image();\n img.src = url;\n\n if (img.complete == true || typeof img.naturalWidth !== \"undefined\" && img.naturalWidth > 0) {\n defered.resolve(img);\n } else {\n img.onload = function (e) {\n defered.resolve(img);\n };\n }\n\n return defered.promise.then(function (response) {\n return response;\n });\n };\n\n service.addToStorage = function (product) {\n _product = product;\n };\n\n service.getProduct = function () {\n return _product;\n };\n\n service.getReviewsCount = function (productId) {\n return $http.get('productExt/getReviewsCount', {\n params: {\n productId: productId\n }\n }).then(function (response) {\n return response.data;\n });\n };\n}\n\n;\nexport default productService;","import flatpickr from 'flatpickr';\nimport 'flatpickr/dist/flatpickr.min.css';\nimport { Russian } from \"flatpickr/dist/l10n/ru.js\";\nflatpickr.localize(Russian); // default locale is now Russian\n\nimport './flatpickr.custom.css';\nimport './ng-flatpickr.js';\nconst moduleName = 'angular-flatpickr';\nangular.module(moduleName).config(['$localeProvider', 'ngFlatpickrDefaultOptions', function ($localeProvider, ngFlatpickrDefaultOptions) {\n ngFlatpickrDefaultOptions.locale = $localeProvider.$get().id.split('-')[0];\n ngFlatpickrDefaultOptions.disableMobile = true;\n}]);\nexport default moduleName;","const tokenRegexCalendar = {\n D: \"(\\\\w+)\",\n F: \"(\\\\w+)\",\n G: \"(\\\\d\\\\d|\\\\d)\",\n H: \"(\\\\d\\\\d|\\\\d)\",\n J: \"(\\\\d\\\\d|\\\\d)\\\\w+\",\n K: \"\",\n M: \"(\\\\w+)\",\n S: \"(\\\\d\\\\d|\\\\d)\",\n U: \"(.+)\",\n W: \"(\\\\d\\\\d|\\\\d)\",\n Y: \"(\\\\d{4})\",\n Z: \"(.+)\",\n d: \"(\\\\d\\\\d|\\\\d)\",\n h: \"(\\\\d\\\\d|\\\\d)\",\n i: \"(\\\\d\\\\d|\\\\d)\",\n j: \"(\\\\d\\\\d|\\\\d)\",\n l: \"(\\\\w+)\",\n m: \"(\\\\d\\\\d|\\\\d)\",\n n: \"(\\\\d\\\\d|\\\\d)\",\n s: \"(\\\\d\\\\d|\\\\d)\",\n u: \"(.+)\",\n w: \"(\\\\d\\\\d|\\\\d)\",\n y: \"(\\\\d{2})\"\n};\n\nfunction checkNeedFormat(date, format) {\n if (typeof date !== 'string') {\n return false;\n }\n\n var str = '';\n var symbolList = format.split('');\n symbolList.forEach(symbol => str += tokenRegexCalendar[symbol] != null ? tokenRegexCalendar[symbol] : symbol);\n var regexp = new RegExp(str);\n return !regexp.test(date);\n}\n\nvar maskIsCompleteOptional = function (maskControl) {\n return maskControl == null || maskControl.maskOriginal.masked.isComplete;\n};\n\nvar ngModelFormatFn = function (flatpickr, ngFlatpickrFilter, maskControl) {\n return function (value) {\n var result;\n\n if (value == null || value === '' || maskControl != null && maskControl.maskOriginal.masked.isComplete === false) {\n result = value;\n } else {\n if (angular.isString(value) === true && flatpickr.config.startDateFormat == null) {\n console.warn('Option \"startDateFormat\" required');\n }\n\n result = ngFlatpickrFilter(value, flatpickr.config.dateFormat, flatpickr.config.startDateFormat);\n }\n\n return result;\n };\n};\n\nvar ngModelParseFn = function (flatpickr, ngFlatpickrFilter, maskControl) {\n return function (value) {\n return value == null || value.length === 0 || maskControl != null && maskControl.maskOriginal.masked.isComplete === false ? value : ngFlatpickrFilter(value, flatpickr.config.startDateFormat, flatpickr.config.dateFormat);\n };\n};\n\nvar ngFlatpickr = angular.module('angular-flatpickr', []);\nngFlatpickr.constant('ngFlatpickrDefaultOptions', {\n time_24hr: true,\n allowInput: true\n});\nngFlatpickr.directive('ngFlatpickr', ['$q', '$filter', '$parse', '$timeout', 'ngFlatpickrDefaultOptions', function ($q, $filter, $parse, $timeout, ngFlatpickrDefaultOptions) {\n return {\n require: {\n ngModel: '?ngModel',\n maskControl: '?maskControl'\n },\n restrict: 'A',\n scope: {\n fpOpts: ' 0 && maskIsCompleteOptional(maskControl)) {\n flatpickr.setDate($filter('ngFlatpickr')(ngModel.$viewValue, flatpickr.config.dateFormat, flatpickr.config.startDateFormat), false);\n }\n\n return function () {\n var indexFormatFn;\n var indexParseFn;\n\n if (ngModelFormatFnCurrent) {\n indexFormatFn = ngModel.$formatters.indexOf(ngModelFormatFnCurrent);\n\n if (indexFormatFn !== -1) {\n ngModel.$formatters.splice(indexFormatFn, 1);\n }\n }\n\n if (ngModelParseFnCurrent) {\n indexParseFn = ngModel.$parsers.indexOf(ngModelParseFnCurrent);\n\n if (indexParseFn !== -1) {\n ngModel.$parsers.splice(indexParseFn, 1);\n }\n }\n };\n };\n\n ctrl.bindElementEvents = function (inputElement, maskControl) {\n if (inputElement != null) {\n inputElement.on('keyup', function () {\n ctrl.needUpdate = true;\n });\n inputElement.on('blur', function (event) {\n var el = this;\n\n if (ctrl.needUpdate === true && maskIsCompleteOptional(maskControl)) {\n $timeout(function () {\n ctrl.flatpickr.setDate(el.value, true);\n }, 10);\n } else {\n //�������� ����� ������� ������ ������ � flatpickr, ��� ��� �� ������� ��-�� ������������ �����\n event.stopImmediatePropagation();\n }\n });\n return function () {\n inputElement.off();\n };\n } else {\n return function () {};\n }\n };\n\n function removeMaskPlaceholder(input, ngModel, maskControl, options) {\n var startVal;\n\n if ((isNaN(ngModel.$modelValue) || ngModel.$modelValue == null) && input != null && maskControl != null) {\n const valueScope = $parse(input.attr('ng-model') || input.attr('data-ng-model'))($scope.$parent);\n let valueScopeParsed;\n\n if (valueScope != null) {\n valueScopeParsed = valueScope.replace(/[\\.:]*/g, '');\n }\n\n startVal = valueScopeParsed != null && valueScopeParsed.length > 0 ? $filter('ngFlatpickr')(valueScope, options.dateFormat, options.startDateFormat) : input.val();\n input.val('');\n return function () {\n setTimeout(() => {\n input.val(startVal);\n }, 0);\n };\n } else {\n return function () {};\n }\n }\n\n ctrl.$postLink = function () {\n var input = ctrl.ngFlatpickrInput != null ? ctrl.ngFlatpickrInput.$element : $element[0].tagName.toLowerCase() === 'input' ? $element : null;\n var maskControl = ctrl.ngFlatpickrInput != null && ctrl.ngFlatpickrInput.maskControl != null ? ctrl.ngFlatpickrInput.maskControl : ctrl.maskControl;\n var ngModel = ctrl.ngFlatpickrInput != null ? ctrl.ngFlatpickrInput.ngModel : ctrl.ngModel;\n var options = angular.extend({}, ngFlatpickrDefaultOptions, ctrl.fpOpts || {});\n\n if (typeof options.appendTo === 'string') {\n options.appendTo = document.querySelector(options.appendTo);\n }\n\n options.onChange = function (selectedDates, dateStr, instance) {\n ctrl.needUpdate = false;\n\n if (ctrl.fpOnChange != null) {\n $timeout(function () {\n ctrl.fpOnChange({\n selectedDates: selectedDates,\n dateStr: dateStr,\n instance: instance\n });\n });\n }\n };\n\n options.onValueUpdate = function (selectedDates, dateStr, instance) {\n //����� ����� ������ � �������� �� ���� ������ ���, �� ����������� ����\n if (ngModel != null && ngModel.modelValue == null) {\n if (maskControl != null) {\n maskControl.maskOriginal.value = dateStr;\n }\n\n ngModel.$setViewValue(dateStr);\n } //if (maskControl != null) {\n // maskControl.maskOriginal.updateValue();\n //}\n\n };\n\n options.onOpen = function (selectedDates, dateStr, instance) {\n ctrl.needUpdate = false;\n\n if (ctrl.fpOnOpen != null) {\n $timeout(function () {\n ctrl.fpOnOpen({\n selectedDates: selectedDates,\n dateStr: dateStr,\n instance: instance\n });\n });\n }\n }; //������� ����������� �� ����� �� ����� ����� ��������� ����� ��� ��� �������� � ������\n\n\n var revertMaskPlaceholder = removeMaskPlaceholder(input, ngModel, maskControl, options);\n ctrl.flatpickr = new flatpickr($element[0], options);\n var destroyNgModel = ctrl.processNgModel(ctrl.flatpickr, ngModel, maskControl);\n var destroyElementEvents = ctrl.bindElementEvents(input, maskControl); //���������� �����������\n\n revertMaskPlaceholder(); // destroy the flatpickr instance when the dom element is removed\n\n $element.on('$destroy', function () {\n ctrl.flatpickr.destroy();\n destroyNgModel();\n destroyElementEvents();\n });\n\n if (ctrl.fpOnSetup) {\n ctrl.fpOnSetup({\n fpItem: ctrl.flatpickr\n });\n }\n };\n }]\n };\n}]);\nngFlatpickr.directive('ngFlatpickrInput', ['$filter', '$timeout', function ($filter, $timeout) {\n return {\n require: {\n ngModel: 'ngModel',\n ngFlatpickr: '^ngFlatpickr',\n maskControl: '?maskControl'\n },\n restrict: 'A',\n bindToController: true,\n controllerAs: 'ngFlatpickrInput',\n controller: ['$element', function ($element) {\n var ctrl = this;\n\n ctrl.$onInit = function () {\n ctrl.$element = $element;\n ctrl.ngFlatpickr.addNgFlatpickrInput(ctrl);\n };\n\n ctrl.$postLink = function () {\n $element.attr('data-input', '');\n };\n }]\n };\n}]);\nngFlatpickr.filter('ngFlatpickr', function () {\n return function (value, format, formatParse) {\n var valueParsed;\n\n if (value == null || checkNeedFormat(value, format) === false) {\n return value;\n }\n\n if (angular.isString(value) === true) {\n if (formatParse == null || formatParse.length === 0) {\n console.warn('Missing required filter parameter \"formatParse\" for parse date string');\n } else {\n valueParsed = flatpickr.parseDate(value, formatParse);\n }\n } else if (angular.isDate(value) === true) {\n valueParsed = value;\n } else {\n console.warn('Unsupport variable type for filter ngFlatpickr');\n return value;\n }\n\n return flatpickr.formatDate(valueParsed || value, format);\n };\n});\nexport default 'ngFlatpickr';","/*!\n * 360 degree Image Slider v2.0.4\n * http://gaurav.jassal.me\n *\n * Copyright 2015, gaurav@jassal.me\n * Dual licensed under the MIT or GPL Version 3 licenses.\n *\n */\n(function ($) {\n 'use strict';\n /**\n * @class ThreeSixty\n * **The ThreeSixty slider class**.\n *\n * This as jQuery plugin to create 360 degree product image slider.\n * The plugin is full customizable with number of options provided. The plugin\n * have the power to display images in any angle 360 degrees. This feature can be\n * used successfully in many use cases e.g. on an e-commerce site to help customers\n * look products in detail, from any angle they desire.\n *\n * **Features**\n *\n * - Smooth Animation\n * - Plenty of option parameters for customization\n * - Api interaction\n * - Simple mouse interaction\n * - Custom behavior tweaking\n * - Support for touch devices\n * - Easy to integrate\n * - No flash\n *\n * Example code:\n * var product1 = $('.product1').ThreeSixty({\n * totalFrames: 72,\n * endFrame: 72,\n * currentFrame: 1,\n * imgList: '.threesixty_images',\n * progress: '.spinner',\n * imagePath:'/assets/product1/',\n * filePrefix: 'ipod-',\n * ext: '.jpg',\n * height: 265,\n * width: 400,\n * navigation: true\n * });\n * **Note:** There are loads other options that you can override to customize\n * this plugin.\n * @extends jQuery\n * @singleton\n * @param {String} [el] jQuery selector string for the parent container\n * @param {Object} [options] An optional config object\n *\n * @return this\n */\n\n $.ThreeSixty = function (el, options) {\n // To avoid scope issues, use 'base' instead of 'this'\n // to reference this class from internal events and functions.\n var base = this,\n AppConfig,\n frames = [],\n VERSION = '2.0.5'; // Access to jQuery and DOM versions of element\n\n /**\n * @property {$el}\n * jQuery Dom node attached to the slider inherits all jQuery public functions.\n */\n\n base.$el = $(el);\n base.el = el; // Add a reverse reference to the DOM object\n\n base.$el.data('ThreeSixty', base);\n /**\n * @method init\n * The function extends the user options with default settings for the\n * slider and initilize the slider.\n * **Style Override example**\n *\n * var product1 = $('.product1').ThreeSixty({\n * totalFrames: 72,\n * endFrame: 72,\n * currentFrame: 1,\n * imgList: '.threesixty_images',\n * progress: '.spinner',\n * imagePath:'/assets/product1/',\n * filePrefix: 'ipod-',\n * ext: '.jpg',\n * height: 265,\n * width: 400,\n * navigation: true,\n * styles: {\n * border: 2px solide #b4b4b4,\n * background: url(http://example.com/images/loader.gif) no-repeat\n * }\n * });\n */\n\n base.init = function () {\n AppConfig = $.extend({}, $.ThreeSixty.defaultOptions, options);\n\n if (AppConfig.disableSpin) {\n AppConfig.currentFrame = 1;\n AppConfig.endFrame = 1;\n }\n\n base.initProgress();\n base.loadImages();\n };\n /*\n * Function to resize the height of responsive slider.\n */\n\n\n base.resize = function () {// calculate height\n };\n /**\n * @method initProgress\n * The function sets initial styles and start the progress indicator\n * to show loading of images.\n *\n * @private\n */\n\n\n base.initProgress = function () {\n base.$el.css({\n width: AppConfig.width + 'px',\n height: AppConfig.height + 'px',\n 'background-image': 'none !important'\n });\n\n if (AppConfig.styles) {\n base.$el.css(AppConfig.styles);\n }\n\n base.responsive();\n base.$el.find(AppConfig.progress).css({\n marginTop: AppConfig.height / 2 - 15 + 'px'\n });\n base.$el.find(AppConfig.progress).fadeIn('slow');\n base.$el.find(AppConfig.imgList).hide();\n };\n /**\n * @method loadImages\n * @private\n * The function asynchronously loads images and inject into the slider.\n */\n\n\n base.loadImages = function () {\n var li, imageName, image, host, baseIndex;\n li = document.createElement('li');\n baseIndex = AppConfig.zeroBased ? 0 : 1;\n imageName = !AppConfig.imgArray ? AppConfig.domain + AppConfig.imagePath + AppConfig.filePrefix + base.zeroPad(AppConfig.loadedImages + baseIndex) + AppConfig.ext + (base.browser.isIE() ? '?' + new Date().getTime() : '') : AppConfig.imgArray[AppConfig.loadedImages];\n image = $('').attr('src', imageName).addClass('previous-image').appendTo(li);\n frames.push(image);\n base.$el.find(AppConfig.imgList).append(li);\n $(image).on(\"load\", function () {\n base.imageLoaded();\n });\n };\n /**\n * @method loadImages\n * @private\n * The function gets triggers once the image is loaded. We also update\n * the progress percentage in this function.\n */\n\n\n base.imageLoaded = function () {\n AppConfig.loadedImages += 1;\n $(AppConfig.progress + ' span').text(Math.floor(AppConfig.loadedImages / AppConfig.totalFrames * 100) + '%');\n\n if (AppConfig.loadedImages >= AppConfig.totalFrames) {\n if (AppConfig.disableSpin) {\n frames[0].removeClass('previous-image').addClass('current-image');\n }\n\n $(AppConfig.progress).fadeOut('slow', function () {\n $(this).hide();\n base.showImages();\n base.showNavigation();\n });\n } else {\n base.loadImages();\n }\n };\n /**\n * @method loadImages\n * @private\n * This function is called when all the images are loaded.\n * **The function does following operations**\n * - Removes background image placeholder\n * - Displays the 360 images\n * - Initilizes mouse intraction events\n */\n\n\n base.showImages = function () {\n base.$el.find('.txtC').fadeIn();\n base.$el.find(AppConfig.imgList).fadeIn();\n base.ready = true;\n AppConfig.ready = true;\n\n if (AppConfig.drag) {\n base.initEvents();\n }\n\n base.refresh();\n base.initPlugins();\n AppConfig.onReady();\n setTimeout(function () {\n base.responsive();\n }, 50);\n };\n /**\n * The function to initilize external plugin\n */\n\n\n base.initPlugins = function () {\n $.each(AppConfig.plugins, function (i, plugin) {\n if (typeof $[plugin] === 'function') {\n $[plugin].call(base, base.$el, AppConfig);\n } else {\n throw new Error(plugin + ' not available.');\n }\n });\n };\n /**\n * @method showNavigation\n * Creates a navigation panel if navigation is set to true in the\n * settings.\n */\n\n\n base.showNavigation = function () {\n if (AppConfig.navigation && !AppConfig.navigation_init) {\n var nav_bar, next, previous, play_stop;\n nav_bar = $('
').attr('class', 'nav_bar');\n next = $('').attr({\n 'href': '#',\n 'class': 'nav_bar_next'\n }).html('next');\n previous = $('').attr({\n 'href': '#',\n 'class': 'nav_bar_previous'\n }).html('previous');\n play_stop = $('').attr({\n 'href': '#',\n 'class': 'nav_bar_play'\n }).html('play');\n nav_bar.append(previous);\n nav_bar.append(play_stop);\n nav_bar.append(next);\n base.$el.prepend(nav_bar);\n next.bind('mousedown touchstart', base.next);\n previous.bind('mousedown touchstart', base.previous);\n play_stop.bind('mousedown touchstart', base.play_stop);\n AppConfig.navigation_init = true;\n }\n };\n /**\n * @method play_stop\n * @private\n * Function toggles the autoplay rotation of 360 slider\n * @param {Object} [event] jQuery events object.\n *\n */\n\n\n base.play_stop = function (event) {\n event.preventDefault();\n\n if (!AppConfig.autoplay) {\n AppConfig.autoplay = true;\n AppConfig.play = setInterval(base.moveToNextFrame, AppConfig.playSpeed);\n $(event.currentTarget).removeClass('nav_bar_play').addClass('nav_bar_stop');\n } else {\n AppConfig.autoplay = false;\n $(event.currentTarget).removeClass('nav_bar_stop').addClass('nav_bar_play');\n clearInterval(AppConfig.play);\n AppConfig.play = null;\n }\n };\n /**\n * @method next\n * Using this function you can rotate 360 to next 5 frames.\n * @param {Object} [event] jQuery events object.\n *\n */\n\n\n base.next = function (event) {\n if (event) {\n event.preventDefault();\n }\n\n AppConfig.endFrame -= 5;\n base.refresh();\n };\n /**\n * @method previous\n * Using this function you can rotate 360 to previous 5 frames.\n * @param {Object} [event] jQuery events object.\n *\n */\n\n\n base.previous = function (event) {\n if (event) {\n event.preventDefault();\n }\n\n AppConfig.endFrame += 5;\n base.refresh();\n };\n /**\n * @method play\n * You are start the auto rotaion for the slider with this function.\n *\n */\n\n\n base.play = function (speed) {\n var _speed = speed || AppConfig.playSpeed;\n\n if (!AppConfig.autoplay) {\n AppConfig.autoplay = true;\n AppConfig.play = setInterval(base.moveToNextFrame, _speed);\n }\n };\n /**\n * @method stop\n * You can stop the auto rotation of the 360 slider with this function.\n *\n */\n\n\n base.stop = function () {\n if (AppConfig.autoplay) {\n AppConfig.autoplay = false;\n clearInterval(AppConfig.play);\n AppConfig.play = null;\n }\n };\n /**\n * @method endFrame\n * @private\n * Function animates to previous frame\n *\n */\n\n\n base.moveToNextFrame = function () {\n if (AppConfig.autoplayDirection === 1) {\n AppConfig.endFrame -= 1;\n } else {\n AppConfig.endFrame += 1;\n }\n\n base.refresh();\n };\n /**\n * @method gotoAndPlay\n * @public\n * Function animates to previous frame\n *\n */\n\n\n base.gotoAndPlay = function (n) {\n if (AppConfig.disableWrap) {\n AppConfig.endFrame = n;\n base.refresh();\n } else {\n // Since we could be looped around grab the multiplier\n var multiplier = Math.ceil(AppConfig.endFrame / AppConfig.totalFrames);\n\n if (multiplier === 0) {\n multiplier = 1;\n } // Figure out the quickest path to the requested frame\n\n\n var realEndFrame = multiplier > 1 ? AppConfig.endFrame - (multiplier - 1) * AppConfig.totalFrames : AppConfig.endFrame;\n var currentFromEnd = AppConfig.totalFrames - realEndFrame; // Jump past end if it's faster\n\n var newEndFrame = 0;\n\n if (n - realEndFrame > 0) {\n // Faster to move the difference ahead?\n if (n - realEndFrame < realEndFrame + (AppConfig.totalFrames - n)) {\n newEndFrame = AppConfig.endFrame + (n - realEndFrame);\n } else {\n newEndFrame = AppConfig.endFrame - (realEndFrame + (AppConfig.totalFrames - n));\n }\n } else {\n // Faster to move the distance back?\n if (realEndFrame - n < currentFromEnd + n) {\n newEndFrame = AppConfig.endFrame - (realEndFrame - n);\n } else {\n newEndFrame = AppConfig.endFrame + (currentFromEnd + n);\n }\n } // Now set the end frame\n\n\n if (realEndFrame !== n) {\n AppConfig.endFrame = newEndFrame;\n base.refresh();\n }\n }\n };\n /**\n * @method initEvents\n * @private\n * Function initilizes all the mouse and touch events for 360 slider movement.\n *\n */\n\n\n base.initEvents = function () {\n addListenerMulti(base.$el[0], 'touchstart touchmove touchend', function (event) {\n recognizeTypeEvent(event);\n }, {\n passive: true\n });\n base.$el.bind('mousedown mousemove click', function (event) {\n event.preventDefault();\n recognizeTypeEvent(event);\n });\n\n function addListenerMulti(element, eventNames, listener) {\n var events = eventNames.split(' ');\n\n for (var i = 0, iLen = events.length; i < iLen; i++) {\n element.addEventListener(events[i], listener, false);\n }\n }\n\n function recognizeTypeEvent(event) {\n if (event.type === 'mousedown' && event.which === 1 || event.type === 'touchstart') {\n AppConfig.pointerStartPosX = base.getPointerEvent(event).pageX;\n AppConfig.dragging = true;\n } else if (event.type === 'touchmove') {\n base.trackPointer(event);\n } else if (event.type === 'touchend') {\n AppConfig.dragging = false;\n }\n }\n\n ;\n $(document).bind('mouseup', function (event) {\n //event.preventDefault();\n AppConfig.dragging = false;\n $(this).css('cursor', 'none');\n });\n $(window).bind('resize', function (event) {\n base.responsive();\n });\n $(document).bind('mousemove', function (event) {\n if (AppConfig.dragging) {\n event.preventDefault();\n\n if (!base.browser.isIE && AppConfig.showCursor) {\n base.$el.css('cursor', 'url(assets/images/hand_closed.png), auto');\n }\n } else {\n if (!base.browser.isIE && AppConfig.showCursor) {\n base.$el.css('cursor', 'url(assets/images/hand_open.png), auto');\n }\n }\n\n base.trackPointer(event);\n });\n $(window).resize(function () {\n base.resize();\n });\n };\n /**\n * @method getPointerEvent\n * @private\n * Function returns touch pointer events\n *\n * @params {Object} [event]\n */\n\n\n base.getPointerEvent = function (event) {\n var targetTouches = event.originalEvent ? event.originalEvent.targetTouches : event.targetTouches;\n return targetTouches ? targetTouches[0] : event;\n };\n /**\n * @method trackPointer\n * @private\n * Function calculates the distance between the start pointer and end pointer/\n *\n * @params {Object} [event]\n */\n\n\n base.trackPointer = function (event) {\n if (AppConfig.ready && AppConfig.dragging) {\n AppConfig.pointerEndPosX = base.getPointerEvent(event).pageX;\n\n if (AppConfig.monitorStartTime < new Date().getTime() - AppConfig.monitorInt) {\n AppConfig.pointerDistance = AppConfig.pointerEndPosX - AppConfig.pointerStartPosX;\n\n if (AppConfig.pointerDistance > 0) {\n AppConfig.endFrame = AppConfig.currentFrame + Math.ceil((AppConfig.totalFrames - 1) * AppConfig.speedMultiplier * (AppConfig.pointerDistance / base.$el.width()));\n } else {\n AppConfig.endFrame = AppConfig.currentFrame + Math.floor((AppConfig.totalFrames - 1) * AppConfig.speedMultiplier * (AppConfig.pointerDistance / base.$el.width()));\n }\n\n if (AppConfig.disableWrap) {\n AppConfig.endFrame = Math.min(AppConfig.totalFrames - (AppConfig.zeroBased ? 1 : 0), AppConfig.endFrame);\n AppConfig.endFrame = Math.max(AppConfig.zeroBased ? 0 : 1, AppConfig.endFrame);\n }\n\n base.refresh();\n AppConfig.monitorStartTime = new Date().getTime();\n AppConfig.pointerStartPosX = base.getPointerEvent(event).pageX;\n }\n }\n };\n /**\n * @method refresh\n * @public\n * Function refeshes the timer and set interval for render cycle.\n *\n */\n\n\n base.refresh = function () {\n if (AppConfig.ticker === 0) {\n AppConfig.ticker = setInterval(base.render, Math.round(1000 / AppConfig.framerate));\n }\n };\n /**\n * @method refresh\n * @private\n * Function render the animation frames on the screen with easing effect.\n */\n\n\n base.render = function () {\n var frameEasing;\n\n if (AppConfig.currentFrame !== AppConfig.endFrame) {\n frameEasing = AppConfig.endFrame < AppConfig.currentFrame ? Math.floor((AppConfig.endFrame - AppConfig.currentFrame) * 0.1) : Math.ceil((AppConfig.endFrame - AppConfig.currentFrame) * 0.1);\n base.hidePreviousFrame();\n AppConfig.currentFrame += frameEasing;\n base.showCurrentFrame();\n base.$el.trigger('frameIndexChanged', [base.getNormalizedCurrentFrame(), AppConfig.totalFrames]);\n } else {\n window.clearInterval(AppConfig.ticker);\n AppConfig.ticker = 0;\n }\n };\n /**\n * @method hidePreviousFrame\n * @private\n * Function hide the previous frame in the animation loop.\n */\n\n\n base.hidePreviousFrame = function () {\n frames[base.getNormalizedCurrentFrame()].removeClass('current-image').addClass('previous-image');\n };\n /**\n * @method showCurrentFrame\n * @private\n * Function shows the current frame in the animation loop.\n */\n\n\n base.showCurrentFrame = function () {\n frames[base.getNormalizedCurrentFrame()].removeClass('previous-image').addClass('current-image');\n };\n /**\n * @method getNormalizedCurrentFrame\n * @private\n * Function normalize and calculate the current frame once the user release the mouse and release touch event.\n */\n\n\n base.getNormalizedCurrentFrame = function () {\n var c, e;\n\n if (!AppConfig.disableWrap) {\n c = Math.ceil(AppConfig.currentFrame % AppConfig.totalFrames);\n\n if (c < 0) {\n c += AppConfig.totalFrames - (AppConfig.zeroBased ? 1 : 0);\n }\n } else {\n c = Math.min(AppConfig.currentFrame, AppConfig.totalFrames - (AppConfig.zeroBased ? 1 : 0));\n e = Math.min(AppConfig.endFrame, AppConfig.totalFrames - (AppConfig.zeroBased ? 1 : 0));\n c = Math.max(c, AppConfig.zeroBased ? 0 : 1);\n e = Math.max(e, AppConfig.zeroBased ? 0 : 1);\n AppConfig.currentFrame = c;\n AppConfig.endFrame = e;\n }\n\n return c;\n };\n /*\n * @method getCurrentFrame\n * Function returns the current active frame.\n *\n * @return Number\n */\n\n\n base.getCurrentFrame = function () {\n return AppConfig.currentFrame;\n };\n /*\n * @method responsive\n * Function calculates and set responsive height and width\n *\n */\n\n\n base.responsive = function () {\n if (AppConfig.responsive) {\n base.$el.css({\n height: base.$el.find('.current-image').first().css('height'),\n width: '100%'\n });\n }\n };\n /**\n * Function to return with zero padding.\n */\n\n\n base.zeroPad = function (num) {\n function pad(number, length) {\n var str = number.toString();\n\n if (AppConfig.zeroPadding) {\n while (str.length < length) {\n str = '0' + str;\n }\n }\n\n return str;\n }\n\n var approximateLog = Math.log(AppConfig.totalFrames) / Math.LN10;\n var roundTo = 1e3;\n var roundedLog = Math.round(approximateLog * roundTo) / roundTo;\n var numChars = Math.floor(roundedLog) + 1;\n return pad(num, numChars);\n };\n\n base.browser = {};\n /**\n * Function to detect if the brower is IE\n * @return {boolean}\n *\n * http://msdn.microsoft.com/en-gb/library/ms537509(v=vs.85).aspx\n */\n\n base.browser.isIE = function () {\n var rv = -1;\n\n if (navigator.appName === 'Microsoft Internet Explorer') {\n var ua = navigator.userAgent;\n var re = new RegExp('MSIE ([0-9]{1,}[\\\\.0-9]{0,})');\n\n if (re.exec(ua) !== null) {\n rv = parseFloat(RegExp.$1);\n }\n }\n\n return rv !== -1;\n };\n /**\n * @method getConfig\n * The function returns the extended version of config object the plugin is going to\n * user.\n *\n * @public\n *\n * @return Object\n */\n\n\n base.getConfig = function () {\n return AppConfig;\n };\n\n $.ThreeSixty.defaultOptions = {\n /**\n * @cfg {Boolean} dragging [dragging=false]\n * @private\n * Private propery contains a flags if users is in dragging mode.\n */\n dragging: false,\n\n /**\n * @cfg {Boolean} ready [ready=false]\n * @private\n * Private propery is set to true is all assets are loading and application is\n * ready to render 360 slider.\n */\n ready: false,\n\n /**\n * @cfg {Number} pointerStartPosX\n * @private\n * private property mouse pointer start x position when user starts dragging slider.\n */\n pointerStartPosX: 0,\n\n /**\n * @cfg {Number} pointerEndPosX\n * @private\n * private property mouse pointer start x position when user end dragging slider.\n */\n pointerEndPosX: 0,\n\n /**\n * @cfg {Number} pointerDistance\n * @private\n * private property contains the distance between the pointerStartPosX and pointerEndPosX\n */\n pointerDistance: 0,\n\n /**\n * @cfg {Number} monitorStartTime\n * @private\n * private property contains time user took in dragging mouse from pointerStartPosX and pointerEndPosX\n */\n monitorStartTime: 0,\n monitorInt: 10,\n\n /**\n * @cfg {Number} ticker\n * @private\n * Timer event that renders the 360\n */\n ticker: 0,\n\n /**\n * @cfg {Number} speedMultiplier\n * This property controls the sensitivity for the 360 slider\n */\n speedMultiplier: 7,\n\n /**\n * @cfg {Number} totalFrames\n * Set total number for frames used in the 360 rotation\n */\n totalFrames: 180,\n\n /**\n * @cfg {Number} currentFrame\n * Current frame of the slider.\n */\n currentFrame: 0,\n\n /**\n * @cfg {Array} endFrame\n * Private perperty contains information about the end frame when user slides the slider.\n */\n endFrame: 0,\n\n /**\n * @cfg {Number} loadedImages\n * Private property contains count of loaded images.\n */\n loadedImages: 0,\n\n /**\n * @cfg {Array} framerate\n * Set framerate for the slider animation\n */\n framerate: 60,\n\n /**\n * @cfg {String} domains\n * Set comma seprated list of all parallel domain from where 360 assets needs to be loaded.\n */\n domains: null,\n\n /**\n * @cfg {String} domain\n * Domain from where assets needs to be loaded. Use this propery is you want to load all assets from\n * single domain.\n */\n domain: '',\n\n /**\n * @cfg {Boolean} parallel\n * Set to true if you want to load assets from parallel domain. Default false\n */\n parallel: false,\n\n /**\n * @cfg {Number} queueAmount\n * Set number of calls to be made on parallel domains.\n */\n queueAmount: 8,\n\n /**\n * @cfg {Number} idle\n * Mouse Inactivite idle time in seconds. If set more than 0 will auto spine the slider\n */\n idle: 0,\n\n /**\n * @cfg {String} filePrefix\n * Prefix for the image file name before the numeric value.\n */\n filePrefix: '',\n\n /**\n * @cfg {String} ext [ext=.png]\n * Slider image extension.\n */\n ext: 'png',\n\n /**\n * @cfg {Object} height [300]\n * Height of the slider\n */\n height: 300,\n\n /**\n * @cfg {Number} width [300]\n * Width of the slider\n */\n width: 300,\n\n /**\n * @cfg {Object} styles\n * CSS Styles for the 360 slider\n */\n styles: {},\n\n /**\n * @cfg {Boolean} navigation[false]\n * State if navigation controls are visible or not.\n */\n navigation: false,\n\n /**\n * @cfg {Boolean} autoplay[false]\n * Autoplay the 360 animation\n */\n autoplay: false,\n\n /**\n * @cfg {number} autoplayDirection [1]\n * Direction for autoplay the 360 animation. 1 for right spin, and -1 for left spin.\n */\n autoplayDirection: 1,\n\n /**\n * Property to disable auto spin\n * @type {Boolean}\n */\n disableSpin: false,\n\n /**\n * Property to disable infinite wrap\n * @type {Boolean}\n */\n disableWrap: false,\n\n /**\n * Responsive width\n * @type {Boolean}\n */\n responsive: false,\n\n /**\n * Zero Padding for filenames\n * @type {Boolean}\n */\n zeroPadding: false,\n\n /**\n * Zero based for image filenames starting at 0\n * @type {Boolean}\n */\n zeroBased: false,\n\n /**\n * @type {Array}\n * List of plugins\n */\n plugins: [],\n\n /**\n * @type {Boolean}\n * Show hand cursor on drag\n */\n showCursor: false,\n\n /**\n * @cfg {Boolean} drag\n * Set it to false if you want to disable mousedrag or touch events\n */\n drag: true,\n\n /**\n * @cfg {Function} onReady\n * Callback triggers once all images are loaded and ready to render on the screen\n */\n onReady: function () {},\n\n /**\n * @cfg {String} imgList\n * Set ul element where image will be loaded\n */\n imgList: '.threesixty_images',\n\n /**\n * @cfg {Array} imgArray\n * Use set of images in array to load images\n */\n imgArray: null,\n\n /**\n * @cfg {Number} playSpeed\n * Value to control the speed of play button rotation\n */\n playSpeed: 100\n };\n base.init();\n };\n\n $.fn.ThreeSixty = function (options) {\n return Object.create(new $.ThreeSixty(this, options));\n };\n})(jQuery);\n/**\n *\n * Object.create method for perform as a fallback if method not available.\n * The syntax just takes away the illusion that JavaScript uses Classical Inheritance.\n */\n\n\nif (typeof Object.create !== 'function') {\n Object.create = function (o) {\n 'use strict';\n\n function F() {}\n\n F.prototype = o;\n return new F();\n };\n}","/*\n * angular-ui-bootstrap\n * http://angular-ui.github.io/bootstrap/\n\n * Version: 2.5.0 - 2017-01-28\n * License: MIT\n */\nangular.module(\"ui.bootstrap\", [\"ui.bootstrap.tpls\", \"ui.bootstrap.tooltip\", \"ui.bootstrap.position\", \"ui.bootstrap.stackedMap\", \"ui.bootstrap.popover\"]);\nangular.module(\"ui.bootstrap.tpls\", [\"uib/template/tooltip/tooltip-html-popup.html\", \"uib/template/tooltip/tooltip-popup.html\", \"uib/template/tooltip/tooltip-template-popup.html\", \"uib/template/popover/popover-html.html\", \"uib/template/popover/popover-template.html\", \"uib/template/popover/popover.html\"]);\n/**\n * The following features are still outstanding: animation as a\n * function, placement as a function, inside, support for more triggers than\n * just mouse enter/leave, html tooltips, and selector delegation.\n */\n\nangular.module('ui.bootstrap.tooltip', ['ui.bootstrap.position', 'ui.bootstrap.stackedMap'])\n/**\n * The $tooltip service creates tooltip- and popover-like directives as well as\n * houses global options for them.\n */\n.provider('$uibTooltip', function () {\n // The default options tooltip and popover.\n var defaultOptions = {\n placement: 'top',\n placementClassPrefix: '',\n animation: true,\n popupDelay: 0,\n popupCloseDelay: 0,\n useContentExp: false\n }; // Default hide triggers for each show trigger\n\n var triggerMap = {\n 'mouseenter': 'mouseleave',\n 'click': 'click',\n 'outsideClick': 'outsideClick',\n 'focus': 'blur',\n 'none': ''\n }; // The options specified to the provider globally.\n\n var globalOptions = {};\n /**\n * `options({})` allows global configuration of all tooltips in the\n * application.\n *\n * var app = angular.module( 'App', ['ui.bootstrap.tooltip'], function( $tooltipProvider ) {\n * // place tooltips left instead of top by default\n * $tooltipProvider.options( { placement: 'left' } );\n * });\n */\n\n this.options = function (value) {\n angular.extend(globalOptions, value);\n };\n /**\n * This allows you to extend the set of trigger mappings available. E.g.:\n *\n * $tooltipProvider.setTriggers( { 'openTrigger': 'closeTrigger' } );\n */\n\n\n this.setTriggers = function setTriggers(triggers) {\n angular.extend(triggerMap, triggers);\n };\n /**\n * This is a helper function for translating camel-case to snake_case.\n */\n\n\n function snake_case(name) {\n var regexp = /[A-Z]/g;\n var separator = '-';\n return name.replace(regexp, function (letter, pos) {\n return (pos ? separator : '') + letter.toLowerCase();\n });\n }\n /**\n * Returns the actual instance of the $tooltip service.\n * TODO support multiple triggers\n */\n\n\n this.$get = ['$window', '$compile', '$timeout', '$document', '$uibPosition', '$interpolate', '$rootScope', '$parse', '$$stackedMap', function ($window, $compile, $timeout, $document, $position, $interpolate, $rootScope, $parse, $$stackedMap) {\n var openedTooltips = $$stackedMap.createNew();\n $document.on('keyup', keypressListener);\n $rootScope.$on('$destroy', function () {\n $document.off('keyup', keypressListener);\n });\n\n function keypressListener(e) {\n if (e.which === 27) {\n var last = openedTooltips.top();\n\n if (last) {\n last.value.close();\n last = null;\n }\n }\n }\n\n return function $tooltip(ttType, prefix, defaultTriggerShow, options) {\n options = angular.extend({}, defaultOptions, globalOptions, options);\n /**\n * Returns an object of show and hide triggers.\n *\n * If a trigger is supplied,\n * it is used to show the tooltip; otherwise, it will use the `trigger`\n * option passed to the `$tooltipProvider.options` method; else it will\n * default to the trigger supplied to this directive factory.\n *\n * The hide trigger is based on the show trigger. If the `trigger` option\n * was passed to the `$tooltipProvider.options` method, it will use the\n * mapped trigger from `triggerMap` or the passed trigger if the map is\n * undefined; otherwise, it uses the `triggerMap` value of the show\n * trigger; else it will just use the show trigger.\n */\n\n function getTriggers(trigger) {\n var show = (trigger || options.trigger || defaultTriggerShow).split(' ');\n var hide = show.map(function (trigger) {\n return triggerMap[trigger] || trigger;\n });\n return {\n show: show,\n hide: hide\n };\n }\n\n var directiveName = snake_case(ttType);\n var startSym = $interpolate.startSymbol();\n var endSym = $interpolate.endSymbol();\n var template = '
' + '
';\n return {\n compile: function (tElem, tAttrs) {\n var tooltipLinker = $compile(template);\n return function link(scope, element, attrs, tooltipCtrl) {\n var tooltip;\n var tooltipLinkedScope;\n var transitionTimeout;\n var showTimeout;\n var hideTimeout;\n var positionTimeout;\n var adjustmentTimeout;\n var appendToBody = angular.isDefined(options.appendToBody) ? options.appendToBody : false;\n var triggers = getTriggers(undefined);\n var hasEnableExp = angular.isDefined(attrs[prefix + 'Enable']);\n var ttScope = scope.$new(true);\n var repositionScheduled = false;\n var isOpenParse = angular.isDefined(attrs[prefix + 'IsOpen']) ? $parse(attrs[prefix + 'IsOpen']) : false;\n var contentParse = options.useContentExp ? $parse(attrs[ttType]) : false;\n var observers = [];\n var lastPlacement;\n\n var positionTooltip = function () {\n // check if tooltip exists and is not empty\n if (!tooltip || !tooltip.html()) {\n return;\n }\n\n if (!positionTimeout) {\n positionTimeout = $timeout(function () {\n var ttPosition = $position.positionElements(element, tooltip, ttScope.placement, appendToBody);\n var initialHeight = angular.isDefined(tooltip.offsetHeight) ? tooltip.offsetHeight : tooltip.prop('offsetHeight');\n var elementPos = appendToBody ? $position.offset(element) : $position.position(element);\n tooltip.css({\n top: ttPosition.top + 'px',\n left: ttPosition.left + 'px'\n });\n var placementClasses = ttPosition.placement.split('-');\n\n if (!tooltip.hasClass(placementClasses[0])) {\n tooltip.removeClass(lastPlacement.split('-')[0]);\n tooltip.addClass(placementClasses[0]);\n }\n\n if (!tooltip.hasClass(options.placementClassPrefix + ttPosition.placement)) {\n tooltip.removeClass(options.placementClassPrefix + lastPlacement);\n tooltip.addClass(options.placementClassPrefix + ttPosition.placement);\n }\n\n adjustmentTimeout = $timeout(function () {\n var currentHeight = angular.isDefined(tooltip.offsetHeight) ? tooltip.offsetHeight : tooltip.prop('offsetHeight');\n var adjustment = $position.adjustTop(placementClasses, elementPos, initialHeight, currentHeight);\n\n if (adjustment) {\n tooltip.css(adjustment);\n }\n\n adjustmentTimeout = null;\n }, 0, false); // first time through tt element will have the\n // uib-position-measure class or if the placement\n // has changed we need to position the arrow.\n\n if (tooltip.hasClass('uib-position-measure')) {\n $position.positionArrow(tooltip, ttPosition.placement);\n tooltip.removeClass('uib-position-measure');\n } else if (lastPlacement !== ttPosition.placement) {\n $position.positionArrow(tooltip, ttPosition.placement);\n }\n\n lastPlacement = ttPosition.placement;\n positionTimeout = null;\n }, 0, false);\n }\n }; // Set up the correct scope to allow transclusion later\n\n\n ttScope.origScope = scope; // By default, the tooltip is not open.\n // TODO add ability to start tooltip opened\n\n ttScope.isOpen = false;\n\n function toggleTooltipBind() {\n if (!ttScope.isOpen) {\n showTooltipBind();\n } else {\n hideTooltipBind();\n }\n } // Show the tooltip with delay if specified, otherwise show it immediately\n\n\n function showTooltipBind() {\n if (hasEnableExp && !scope.$eval(attrs[prefix + 'Enable'])) {\n return;\n }\n\n cancelHide();\n prepareTooltip();\n\n if (ttScope.popupDelay) {\n // Do nothing if the tooltip was already scheduled to pop-up.\n // This happens if show is triggered multiple times before any hide is triggered.\n if (!showTimeout) {\n showTimeout = $timeout(show, ttScope.popupDelay, false);\n }\n } else {\n show();\n }\n }\n\n function hideTooltipBind() {\n cancelShow();\n\n if (ttScope.popupCloseDelay) {\n if (!hideTimeout) {\n hideTimeout = $timeout(hide, ttScope.popupCloseDelay, false);\n }\n } else {\n hide();\n }\n } // Show the tooltip popup element.\n\n\n function show() {\n cancelShow();\n cancelHide(); // Don't show empty tooltips.\n\n if (!ttScope.content) {\n return angular.noop;\n }\n\n createTooltip(); // And show the tooltip.\n\n ttScope.$evalAsync(function () {\n ttScope.isOpen = true;\n assignIsOpen(true);\n positionTooltip();\n });\n }\n\n function cancelShow() {\n if (showTimeout) {\n $timeout.cancel(showTimeout);\n showTimeout = null;\n }\n\n if (positionTimeout) {\n $timeout.cancel(positionTimeout);\n positionTimeout = null;\n }\n } // Hide the tooltip popup element.\n\n\n function hide() {\n if (!ttScope) {\n return;\n } // First things first: we don't show it anymore.\n\n\n ttScope.$evalAsync(function () {\n if (ttScope) {\n ttScope.isOpen = false;\n assignIsOpen(false); // And now we remove it from the DOM. However, if we have animation, we\n // need to wait for it to expire beforehand.\n // FIXME: this is a placeholder for a port of the transitions library.\n // The fade transition in TWBS is 150ms.\n\n if (ttScope.animation) {\n if (!transitionTimeout) {\n transitionTimeout = $timeout(removeTooltip, 150, false);\n }\n } else {\n removeTooltip();\n }\n }\n });\n }\n\n function cancelHide() {\n if (hideTimeout) {\n $timeout.cancel(hideTimeout);\n hideTimeout = null;\n }\n\n if (transitionTimeout) {\n $timeout.cancel(transitionTimeout);\n transitionTimeout = null;\n }\n }\n\n function createTooltip() {\n // There can only be one tooltip element per directive shown at once.\n if (tooltip) {\n return;\n }\n\n tooltipLinkedScope = ttScope.$new();\n tooltip = tooltipLinker(tooltipLinkedScope, function (tooltip) {\n if (appendToBody) {\n $document.find('body').append(tooltip);\n } else {\n element.after(tooltip);\n }\n });\n openedTooltips.add(ttScope, {\n close: hide\n });\n prepObservers();\n }\n\n function removeTooltip() {\n cancelShow();\n cancelHide();\n unregisterObservers();\n\n if (tooltip) {\n tooltip.remove();\n tooltip = null;\n\n if (adjustmentTimeout) {\n $timeout.cancel(adjustmentTimeout);\n }\n }\n\n openedTooltips.remove(ttScope);\n\n if (tooltipLinkedScope) {\n tooltipLinkedScope.$destroy();\n tooltipLinkedScope = null;\n }\n }\n /**\n * Set the initial scope values. Once\n * the tooltip is created, the observers\n * will be added to keep things in sync.\n */\n\n\n function prepareTooltip() {\n ttScope.title = attrs[prefix + 'Title'];\n\n if (contentParse) {\n ttScope.content = contentParse(scope);\n } else {\n ttScope.content = attrs[ttType];\n }\n\n ttScope.popupClass = attrs[prefix + 'Class'];\n ttScope.placement = angular.isDefined(attrs[prefix + 'Placement']) ? attrs[prefix + 'Placement'] : options.placement;\n var placement = $position.parsePlacement(ttScope.placement);\n lastPlacement = placement[1] ? placement[0] + '-' + placement[1] : placement[0];\n var delay = parseInt(attrs[prefix + 'PopupDelay'], 10);\n var closeDelay = parseInt(attrs[prefix + 'PopupCloseDelay'], 10);\n ttScope.popupDelay = !isNaN(delay) ? delay : options.popupDelay;\n ttScope.popupCloseDelay = !isNaN(closeDelay) ? closeDelay : options.popupCloseDelay;\n }\n\n function assignIsOpen(isOpen) {\n if (isOpenParse && angular.isFunction(isOpenParse.assign)) {\n isOpenParse.assign(scope, isOpen);\n }\n }\n\n ttScope.contentExp = function () {\n return ttScope.content;\n };\n /**\n * Observe the relevant attributes.\n */\n\n\n attrs.$observe('disabled', function (val) {\n if (val) {\n cancelShow();\n }\n\n if (val && ttScope.isOpen) {\n hide();\n }\n });\n\n if (isOpenParse) {\n scope.$watch(isOpenParse, function (val) {\n if (ttScope && !val === ttScope.isOpen) {\n toggleTooltipBind();\n }\n });\n }\n\n function prepObservers() {\n observers.length = 0;\n\n if (contentParse) {\n observers.push(scope.$watch(contentParse, function (val) {\n ttScope.content = val;\n\n if (!val && ttScope.isOpen) {\n hide();\n }\n }));\n observers.push(tooltipLinkedScope.$watch(function () {\n if (!repositionScheduled) {\n repositionScheduled = true;\n tooltipLinkedScope.$$postDigest(function () {\n repositionScheduled = false;\n\n if (ttScope && ttScope.isOpen) {\n positionTooltip();\n }\n });\n }\n }));\n } else {\n observers.push(attrs.$observe(ttType, function (val) {\n ttScope.content = val;\n\n if (!val && ttScope.isOpen) {\n hide();\n } else {\n positionTooltip();\n }\n }));\n }\n\n observers.push(attrs.$observe(prefix + 'Title', function (val) {\n ttScope.title = val;\n\n if (ttScope.isOpen) {\n positionTooltip();\n }\n }));\n observers.push(attrs.$observe(prefix + 'Placement', function (val) {\n ttScope.placement = val ? val : options.placement;\n\n if (ttScope.isOpen) {\n positionTooltip();\n }\n }));\n }\n\n function unregisterObservers() {\n if (observers.length) {\n angular.forEach(observers, function (observer) {\n observer();\n });\n observers.length = 0;\n }\n } // hide tooltips/popovers for outsideClick trigger\n\n\n function bodyHideTooltipBind(e) {\n if (!ttScope || !ttScope.isOpen || !tooltip) {\n return;\n } // make sure the tooltip/popover link or tool tooltip/popover itself were not clicked\n\n\n if (!element[0].contains(e.target) && !tooltip[0].contains(e.target)) {\n hideTooltipBind();\n }\n } // KeyboardEvent handler to hide the tooltip on Escape key press\n\n\n function hideOnEscapeKey(e) {\n if (e.which === 27) {\n hideTooltipBind();\n }\n }\n\n var unregisterTriggers = function () {\n triggers.show.forEach(function (trigger) {\n if (trigger === 'outsideClick') {\n element.off('click', toggleTooltipBind);\n } else {\n element.off(trigger, showTooltipBind);\n element.off(trigger, toggleTooltipBind);\n }\n\n element.off('keypress', hideOnEscapeKey);\n });\n triggers.hide.forEach(function (trigger) {\n if (trigger === 'outsideClick') {\n $document.off('click', bodyHideTooltipBind);\n } else {\n element.off(trigger, hideTooltipBind);\n }\n });\n };\n\n function prepTriggers() {\n var showTriggers = [],\n hideTriggers = [];\n var val = scope.$eval(attrs[prefix + 'Trigger']);\n unregisterTriggers();\n\n if (angular.isObject(val)) {\n Object.keys(val).forEach(function (key) {\n showTriggers.push(key);\n hideTriggers.push(val[key]);\n });\n triggers = {\n show: showTriggers,\n hide: hideTriggers\n };\n } else {\n triggers = getTriggers(val);\n }\n\n if (triggers.show !== 'none') {\n triggers.show.forEach(function (trigger, idx) {\n if (trigger === 'outsideClick') {\n element.on('click', toggleTooltipBind);\n $document.on('click', bodyHideTooltipBind);\n } else if (trigger === triggers.hide[idx]) {\n element.on(trigger, toggleTooltipBind);\n } else if (trigger) {\n element.on(trigger, showTooltipBind);\n element.on(triggers.hide[idx], hideTooltipBind);\n }\n\n element.on('keypress', hideOnEscapeKey);\n });\n }\n }\n\n prepTriggers();\n var animation = scope.$eval(attrs[prefix + 'Animation']);\n ttScope.animation = angular.isDefined(animation) ? !!animation : options.animation;\n var appendToBodyVal;\n var appendKey = prefix + 'AppendToBody';\n\n if (appendKey in attrs && attrs[appendKey] === undefined) {\n appendToBodyVal = true;\n } else {\n appendToBodyVal = scope.$eval(attrs[appendKey]);\n }\n\n appendToBody = angular.isDefined(appendToBodyVal) ? appendToBodyVal : appendToBody; // Make sure tooltip is destroyed and removed.\n\n scope.$on('$destroy', function onDestroyTooltip() {\n unregisterTriggers();\n removeTooltip();\n ttScope = null;\n });\n };\n }\n };\n };\n }];\n}) // This is mostly ngInclude code but with a custom scope\n.directive('uibTooltipTemplateTransclude', ['$animate', '$sce', '$compile', '$templateRequest', function ($animate, $sce, $compile, $templateRequest) {\n return {\n link: function (scope, elem, attrs) {\n var origScope = scope.$eval(attrs.tooltipTemplateTranscludeScope);\n var changeCounter = 0,\n currentScope,\n previousElement,\n currentElement;\n\n var cleanupLastIncludeContent = function () {\n if (previousElement) {\n previousElement.remove();\n previousElement = null;\n }\n\n if (currentScope) {\n currentScope.$destroy();\n currentScope = null;\n }\n\n if (currentElement) {\n $animate.leave(currentElement).then(function () {\n previousElement = null;\n });\n previousElement = currentElement;\n currentElement = null;\n }\n };\n\n scope.$watch($sce.parseAsResourceUrl(attrs.uibTooltipTemplateTransclude), function (src) {\n var thisChangeId = ++changeCounter;\n\n if (src) {\n //set the 2nd param to true to ignore the template request error so that the inner\n //contents and scope can be cleaned up.\n $templateRequest(src, true).then(function (response) {\n if (thisChangeId !== changeCounter) {\n return;\n }\n\n var newScope = origScope.$new();\n var template = response;\n var clone = $compile(template)(newScope, function (clone) {\n cleanupLastIncludeContent();\n $animate.enter(clone, elem);\n });\n currentScope = newScope;\n currentElement = clone;\n currentScope.$emit('$includeContentLoaded', src);\n }, function () {\n if (thisChangeId === changeCounter) {\n cleanupLastIncludeContent();\n scope.$emit('$includeContentError', src);\n }\n });\n scope.$emit('$includeContentRequested', src);\n } else {\n cleanupLastIncludeContent();\n }\n });\n scope.$on('$destroy', cleanupLastIncludeContent);\n }\n };\n}])\n/**\n * Note that it's intentional that these classes are *not* applied through $animate.\n * They must not be animated as they're expected to be present on the tooltip on\n * initialization.\n */\n.directive('uibTooltipClasses', ['$uibPosition', function ($uibPosition) {\n return {\n restrict: 'A',\n link: function (scope, element, attrs) {\n // need to set the primary position so the\n // arrow has space during position measure.\n // tooltip.positionTooltip()\n if (scope.placement) {\n // // There are no top-left etc... classes\n // // in TWBS, so we need the primary position.\n var position = $uibPosition.parsePlacement(scope.placement);\n element.addClass(position[0]);\n }\n\n if (scope.popupClass) {\n element.addClass(scope.popupClass);\n }\n\n if (scope.animation) {\n element.addClass(attrs.tooltipAnimationClass);\n }\n }\n };\n}]).directive('uibTooltipPopup', function () {\n return {\n restrict: 'A',\n scope: {\n content: '@'\n },\n templateUrl: 'uib/template/tooltip/tooltip-popup.html'\n };\n}).directive('uibTooltip', ['$uibTooltip', function ($uibTooltip) {\n return $uibTooltip('uibTooltip', 'tooltip', 'mouseenter');\n}]).directive('uibTooltipTemplatePopup', function () {\n return {\n restrict: 'A',\n scope: {\n contentExp: '&',\n originScope: '&'\n },\n templateUrl: 'uib/template/tooltip/tooltip-template-popup.html'\n };\n}).directive('uibTooltipTemplate', ['$uibTooltip', function ($uibTooltip) {\n return $uibTooltip('uibTooltipTemplate', 'tooltip', 'mouseenter', {\n useContentExp: true\n });\n}]).directive('uibTooltipHtmlPopup', function () {\n return {\n restrict: 'A',\n scope: {\n contentExp: '&'\n },\n templateUrl: 'uib/template/tooltip/tooltip-html-popup.html'\n };\n}).directive('uibTooltipHtml', ['$uibTooltip', function ($uibTooltip) {\n return $uibTooltip('uibTooltipHtml', 'tooltip', 'mouseenter', {\n useContentExp: true\n });\n}]);\nangular.module('ui.bootstrap.position', [])\n/**\n * A set of utility methods for working with the DOM.\n * It is meant to be used where we need to absolute-position elements in\n * relation to another element (this is the case for tooltips, popovers,\n * typeahead suggestions etc.).\n */\n.factory('$uibPosition', ['$document', '$window', function ($document, $window) {\n /**\n * Used by scrollbarWidth() function to cache scrollbar's width.\n * Do not access this variable directly, use scrollbarWidth() instead.\n */\n var SCROLLBAR_WIDTH;\n /**\n * scrollbar on body and html element in IE and Edge overlay\n * content and should be considered 0 width.\n */\n\n var BODY_SCROLLBAR_WIDTH;\n var OVERFLOW_REGEX = {\n normal: /(auto|scroll)/,\n hidden: /(auto|scroll|hidden)/\n };\n var PLACEMENT_REGEX = {\n auto: /\\s?auto?\\s?/i,\n primary: /^(top|bottom|left|right)$/,\n secondary: /^(top|bottom|left|right|center)$/,\n vertical: /^(top|bottom)$/\n };\n var BODY_REGEX = /(HTML|BODY)/;\n return {\n /**\n * Provides a raw DOM element from a jQuery/jQLite element.\n *\n * @param {element} elem - The element to convert.\n *\n * @returns {element} A HTML element.\n */\n getRawNode: function (elem) {\n return elem.nodeName ? elem : elem[0] || elem;\n },\n\n /**\n * Provides a parsed number for a style property. Strips\n * units and casts invalid numbers to 0.\n *\n * @param {string} value - The style value to parse.\n *\n * @returns {number} A valid number.\n */\n parseStyle: function (value) {\n value = parseFloat(value);\n return isFinite(value) ? value : 0;\n },\n\n /**\n * Provides the closest positioned ancestor.\n *\n * @param {element} element - The element to get the offest parent for.\n *\n * @returns {element} The closest positioned ancestor.\n */\n offsetParent: function (elem) {\n elem = this.getRawNode(elem);\n var offsetParent = elem.offsetParent || $document[0].documentElement;\n\n function isStaticPositioned(el) {\n return ($window.getComputedStyle(el).position || 'static') === 'static';\n }\n\n while (offsetParent && offsetParent !== $document[0].documentElement && isStaticPositioned(offsetParent)) {\n offsetParent = offsetParent.offsetParent;\n }\n\n return offsetParent || $document[0].documentElement;\n },\n\n /**\n * Provides the scrollbar width, concept from TWBS measureScrollbar()\n * function in https://github.com/twbs/bootstrap/blob/master/js/modal.js\n * In IE and Edge, scollbar on body and html element overlay and should\n * return a width of 0.\n *\n * @returns {number} The width of the browser scollbar.\n */\n scrollbarWidth: function (isBody) {\n if (isBody) {\n if (angular.isUndefined(BODY_SCROLLBAR_WIDTH)) {\n var bodyElem = $document.find('body');\n bodyElem.addClass('uib-position-body-scrollbar-measure');\n BODY_SCROLLBAR_WIDTH = $window.innerWidth - bodyElem[0].clientWidth;\n BODY_SCROLLBAR_WIDTH = isFinite(BODY_SCROLLBAR_WIDTH) ? BODY_SCROLLBAR_WIDTH : 0;\n bodyElem.removeClass('uib-position-body-scrollbar-measure');\n }\n\n return BODY_SCROLLBAR_WIDTH;\n }\n\n if (angular.isUndefined(SCROLLBAR_WIDTH)) {\n var scrollElem = angular.element('
');\n $document.find('body').append(scrollElem);\n SCROLLBAR_WIDTH = scrollElem[0].offsetWidth - scrollElem[0].clientWidth;\n SCROLLBAR_WIDTH = isFinite(SCROLLBAR_WIDTH) ? SCROLLBAR_WIDTH : 0;\n scrollElem.remove();\n }\n\n return SCROLLBAR_WIDTH;\n },\n\n /**\n * Provides the padding required on an element to replace the scrollbar.\n *\n * @returns {object} An object with the following properties:\n *
    \n *
  • **scrollbarWidth**: the width of the scrollbar
  • \n *
  • **widthOverflow**: whether the the width is overflowing
  • \n *
  • **right**: the amount of right padding on the element needed to replace the scrollbar
  • \n *
  • **rightOriginal**: the amount of right padding currently on the element
  • \n *
  • **heightOverflow**: whether the the height is overflowing
  • \n *
  • **bottom**: the amount of bottom padding on the element needed to replace the scrollbar
  • \n *
  • **bottomOriginal**: the amount of bottom padding currently on the element
  • \n *
\n */\n scrollbarPadding: function (elem) {\n elem = this.getRawNode(elem);\n var elemStyle = $window.getComputedStyle(elem);\n var paddingRight = this.parseStyle(elemStyle.paddingRight);\n var paddingBottom = this.parseStyle(elemStyle.paddingBottom);\n var scrollParent = this.scrollParent(elem, false, true);\n var scrollbarWidth = this.scrollbarWidth(BODY_REGEX.test(scrollParent.tagName));\n return {\n scrollbarWidth: scrollbarWidth,\n widthOverflow: scrollParent.scrollWidth > scrollParent.clientWidth,\n right: paddingRight + scrollbarWidth,\n originalRight: paddingRight,\n heightOverflow: scrollParent.scrollHeight > scrollParent.clientHeight,\n bottom: paddingBottom + scrollbarWidth,\n originalBottom: paddingBottom\n };\n },\n\n /**\n * Checks to see if the element is scrollable.\n *\n * @param {element} elem - The element to check.\n * @param {boolean=} [includeHidden=false] - Should scroll style of 'hidden' be considered,\n * default is false.\n *\n * @returns {boolean} Whether the element is scrollable.\n */\n isScrollable: function (elem, includeHidden) {\n elem = this.getRawNode(elem);\n var overflowRegex = includeHidden ? OVERFLOW_REGEX.hidden : OVERFLOW_REGEX.normal;\n var elemStyle = $window.getComputedStyle(elem);\n return overflowRegex.test(elemStyle.overflow + elemStyle.overflowY + elemStyle.overflowX);\n },\n\n /**\n * Provides the closest scrollable ancestor.\n * A port of the jQuery UI scrollParent method:\n * https://github.com/jquery/jquery-ui/blob/master/ui/scroll-parent.js\n *\n * @param {element} elem - The element to find the scroll parent of.\n * @param {boolean=} [includeHidden=false] - Should scroll style of 'hidden' be considered,\n * default is false.\n * @param {boolean=} [includeSelf=false] - Should the element being passed be\n * included in the scrollable llokup.\n *\n * @returns {element} A HTML element.\n */\n scrollParent: function (elem, includeHidden, includeSelf) {\n elem = this.getRawNode(elem);\n var overflowRegex = includeHidden ? OVERFLOW_REGEX.hidden : OVERFLOW_REGEX.normal;\n var documentEl = $document[0].documentElement;\n var elemStyle = $window.getComputedStyle(elem);\n\n if (includeSelf && overflowRegex.test(elemStyle.overflow + elemStyle.overflowY + elemStyle.overflowX)) {\n return elem;\n }\n\n var excludeStatic = elemStyle.position === 'absolute';\n var scrollParent = elem.parentElement || documentEl;\n\n if (scrollParent === documentEl || elemStyle.position === 'fixed') {\n return documentEl;\n }\n\n while (scrollParent.parentElement && scrollParent !== documentEl) {\n var spStyle = $window.getComputedStyle(scrollParent);\n\n if (excludeStatic && spStyle.position !== 'static') {\n excludeStatic = false;\n }\n\n if (!excludeStatic && overflowRegex.test(spStyle.overflow + spStyle.overflowY + spStyle.overflowX)) {\n break;\n }\n\n scrollParent = scrollParent.parentElement;\n }\n\n return scrollParent;\n },\n\n /**\n * Provides read-only equivalent of jQuery's position function:\n * http://api.jquery.com/position/ - distance to closest positioned\n * ancestor. Does not account for margins by default like jQuery position.\n *\n * @param {element} elem - The element to caclulate the position on.\n * @param {boolean=} [includeMargins=false] - Should margins be accounted\n * for, default is false.\n *\n * @returns {object} An object with the following properties:\n *
    \n *
  • **width**: the width of the element
  • \n *
  • **height**: the height of the element
  • \n *
  • **top**: distance to top edge of offset parent
  • \n *
  • **left**: distance to left edge of offset parent
  • \n *
\n */\n position: function (elem, includeMagins) {\n elem = this.getRawNode(elem);\n var elemOffset = this.offset(elem);\n\n if (includeMagins) {\n var elemStyle = $window.getComputedStyle(elem);\n elemOffset.top -= this.parseStyle(elemStyle.marginTop);\n elemOffset.left -= this.parseStyle(elemStyle.marginLeft);\n }\n\n var parent = this.offsetParent(elem);\n var parentOffset = {\n top: 0,\n left: 0\n };\n\n if (parent !== $document[0].documentElement) {\n parentOffset = this.offset(parent);\n parentOffset.top += parent.clientTop - parent.scrollTop;\n parentOffset.left += parent.clientLeft - parent.scrollLeft;\n }\n\n return {\n width: Math.round(angular.isNumber(elemOffset.width) ? elemOffset.width : elem.offsetWidth),\n height: Math.round(angular.isNumber(elemOffset.height) ? elemOffset.height : elem.offsetHeight),\n top: Math.round(elemOffset.top - parentOffset.top),\n left: Math.round(elemOffset.left - parentOffset.left)\n };\n },\n\n /**\n * Provides read-only equivalent of jQuery's offset function:\n * http://api.jquery.com/offset/ - distance to viewport. Does\n * not account for borders, margins, or padding on the body\n * element.\n *\n * @param {element} elem - The element to calculate the offset on.\n *\n * @returns {object} An object with the following properties:\n *
    \n *
  • **width**: the width of the element
  • \n *
  • **height**: the height of the element
  • \n *
  • **top**: distance to top edge of viewport
  • \n *
  • **right**: distance to bottom edge of viewport
  • \n *
\n */\n offset: function (elem) {\n elem = this.getRawNode(elem);\n var elemBCR = elem.getBoundingClientRect();\n return {\n width: Math.round(angular.isNumber(elemBCR.width) ? elemBCR.width : elem.offsetWidth),\n height: Math.round(angular.isNumber(elemBCR.height) ? elemBCR.height : elem.offsetHeight),\n top: Math.round(elemBCR.top + ($window.pageYOffset || $document[0].documentElement.scrollTop)),\n left: Math.round(elemBCR.left + ($window.pageXOffset || $document[0].documentElement.scrollLeft))\n };\n },\n\n /**\n * Provides offset distance to the closest scrollable ancestor\n * or viewport. Accounts for border and scrollbar width.\n *\n * Right and bottom dimensions represent the distance to the\n * respective edge of the viewport element. If the element\n * edge extends beyond the viewport, a negative value will be\n * reported.\n *\n * @param {element} elem - The element to get the viewport offset for.\n * @param {boolean=} [useDocument=false] - Should the viewport be the document element instead\n * of the first scrollable element, default is false.\n * @param {boolean=} [includePadding=true] - Should the padding on the offset parent element\n * be accounted for, default is true.\n *\n * @returns {object} An object with the following properties:\n *
    \n *
  • **top**: distance to the top content edge of viewport element
  • \n *
  • **bottom**: distance to the bottom content edge of viewport element
  • \n *
  • **left**: distance to the left content edge of viewport element
  • \n *
  • **right**: distance to the right content edge of viewport element
  • \n *
\n */\n viewportOffset: function (elem, useDocument, includePadding) {\n elem = this.getRawNode(elem);\n includePadding = includePadding !== false ? true : false;\n var elemBCR = elem.getBoundingClientRect();\n var offsetBCR = {\n top: 0,\n left: 0,\n bottom: 0,\n right: 0\n };\n var offsetParent = useDocument ? $document[0].documentElement : this.scrollParent(elem);\n var offsetParentBCR = offsetParent.getBoundingClientRect();\n offsetBCR.top = offsetParentBCR.top + offsetParent.clientTop;\n offsetBCR.left = offsetParentBCR.left + offsetParent.clientLeft;\n\n if (offsetParent === $document[0].documentElement) {\n offsetBCR.top += $window.pageYOffset;\n offsetBCR.left += $window.pageXOffset;\n }\n\n offsetBCR.bottom = offsetBCR.top + offsetParent.clientHeight;\n offsetBCR.right = offsetBCR.left + offsetParent.clientWidth;\n\n if (includePadding) {\n var offsetParentStyle = $window.getComputedStyle(offsetParent);\n offsetBCR.top += this.parseStyle(offsetParentStyle.paddingTop);\n offsetBCR.bottom -= this.parseStyle(offsetParentStyle.paddingBottom);\n offsetBCR.left += this.parseStyle(offsetParentStyle.paddingLeft);\n offsetBCR.right -= this.parseStyle(offsetParentStyle.paddingRight);\n }\n\n return {\n top: Math.round(elemBCR.top - offsetBCR.top),\n bottom: Math.round(offsetBCR.bottom - elemBCR.bottom),\n left: Math.round(elemBCR.left - offsetBCR.left),\n right: Math.round(offsetBCR.right - elemBCR.right)\n };\n },\n\n /**\n * Provides an array of placement values parsed from a placement string.\n * Along with the 'auto' indicator, supported placement strings are:\n *
    \n *
  • top: element on top, horizontally centered on host element.
  • \n *
  • top-left: element on top, left edge aligned with host element left edge.
  • \n *
  • top-right: element on top, lerightft edge aligned with host element right edge.
  • \n *
  • bottom: element on bottom, horizontally centered on host element.
  • \n *
  • bottom-left: element on bottom, left edge aligned with host element left edge.
  • \n *
  • bottom-right: element on bottom, right edge aligned with host element right edge.
  • \n *
  • left: element on left, vertically centered on host element.
  • \n *
  • left-top: element on left, top edge aligned with host element top edge.
  • \n *
  • left-bottom: element on left, bottom edge aligned with host element bottom edge.
  • \n *
  • right: element on right, vertically centered on host element.
  • \n *
  • right-top: element on right, top edge aligned with host element top edge.
  • \n *
  • right-bottom: element on right, bottom edge aligned with host element bottom edge.
  • \n *
\n * A placement string with an 'auto' indicator is expected to be\n * space separated from the placement, i.e: 'auto bottom-left' If\n * the primary and secondary placement values do not match 'top,\n * bottom, left, right' then 'top' will be the primary placement and\n * 'center' will be the secondary placement. If 'auto' is passed, true\n * will be returned as the 3rd value of the array.\n *\n * @param {string} placement - The placement string to parse.\n *\n * @returns {array} An array with the following values\n *
    \n *
  • **[0]**: The primary placement.
  • \n *
  • **[1]**: The secondary placement.
  • \n *
  • **[2]**: If auto is passed: true, else undefined.
  • \n *
\n */\n parsePlacement: function (placement) {\n var autoPlace = PLACEMENT_REGEX.auto.test(placement);\n\n if (autoPlace) {\n placement = placement.replace(PLACEMENT_REGEX.auto, '');\n }\n\n placement = placement.split('-');\n placement[0] = placement[0] || 'top';\n\n if (!PLACEMENT_REGEX.primary.test(placement[0])) {\n placement[0] = 'top';\n }\n\n placement[1] = placement[1] || 'center';\n\n if (!PLACEMENT_REGEX.secondary.test(placement[1])) {\n placement[1] = 'center';\n }\n\n if (autoPlace) {\n placement[2] = true;\n } else {\n placement[2] = false;\n }\n\n return placement;\n },\n\n /**\n * Provides coordinates for an element to be positioned relative to\n * another element. Passing 'auto' as part of the placement parameter\n * will enable smart placement - where the element fits. i.e:\n * 'auto left-top' will check to see if there is enough space to the left\n * of the hostElem to fit the targetElem, if not place right (same for secondary\n * top placement). Available space is calculated using the viewportOffset\n * function.\n *\n * @param {element} hostElem - The element to position against.\n * @param {element} targetElem - The element to position.\n * @param {string=} [placement=top] - The placement for the targetElem,\n * default is 'top'. 'center' is assumed as secondary placement for\n * 'top', 'left', 'right', and 'bottom' placements. Available placements are:\n *
    \n *
  • top
  • \n *
  • top-right
  • \n *
  • top-left
  • \n *
  • bottom
  • \n *
  • bottom-left
  • \n *
  • bottom-right
  • \n *
  • left
  • \n *
  • left-top
  • \n *
  • left-bottom
  • \n *
  • right
  • \n *
  • right-top
  • \n *
  • right-bottom
  • \n *
\n * @param {boolean=} [appendToBody=false] - Should the top and left values returned\n * be calculated from the body element, default is false.\n *\n * @returns {object} An object with the following properties:\n *
    \n *
  • **top**: Value for targetElem top.
  • \n *
  • **left**: Value for targetElem left.
  • \n *
  • **placement**: The resolved placement.
  • \n *
\n */\n positionElements: function (hostElem, targetElem, placement, appendToBody) {\n hostElem = this.getRawNode(hostElem);\n targetElem = this.getRawNode(targetElem); // need to read from prop to support tests.\n\n var targetWidth = angular.isDefined(targetElem.offsetWidth) ? targetElem.offsetWidth : targetElem.prop('offsetWidth');\n var targetHeight = angular.isDefined(targetElem.offsetHeight) ? targetElem.offsetHeight : targetElem.prop('offsetHeight');\n placement = this.parsePlacement(placement);\n var hostElemPos = appendToBody ? this.offset(hostElem) : this.position(hostElem);\n var targetElemPos = {\n top: 0,\n left: 0,\n placement: ''\n };\n\n if (placement[2]) {\n var viewportOffset = this.viewportOffset(hostElem, appendToBody);\n var targetElemStyle = $window.getComputedStyle(targetElem);\n var adjustedSize = {\n width: targetWidth + Math.round(Math.abs(this.parseStyle(targetElemStyle.marginLeft) + this.parseStyle(targetElemStyle.marginRight))),\n height: targetHeight + Math.round(Math.abs(this.parseStyle(targetElemStyle.marginTop) + this.parseStyle(targetElemStyle.marginBottom)))\n };\n placement[0] = placement[0] === 'top' && adjustedSize.height > viewportOffset.top && adjustedSize.height <= viewportOffset.bottom ? 'bottom' : placement[0] === 'bottom' && adjustedSize.height > viewportOffset.bottom && adjustedSize.height <= viewportOffset.top ? 'top' : placement[0] === 'left' && adjustedSize.width > viewportOffset.left && adjustedSize.width <= viewportOffset.right ? 'right' : placement[0] === 'right' && adjustedSize.width > viewportOffset.right && adjustedSize.width <= viewportOffset.left ? 'left' : placement[0];\n placement[1] = placement[1] === 'top' && adjustedSize.height - hostElemPos.height > viewportOffset.bottom && adjustedSize.height - hostElemPos.height <= viewportOffset.top ? 'bottom' : placement[1] === 'bottom' && adjustedSize.height - hostElemPos.height > viewportOffset.top && adjustedSize.height - hostElemPos.height <= viewportOffset.bottom ? 'top' : placement[1] === 'left' && adjustedSize.width - hostElemPos.width > viewportOffset.right && adjustedSize.width - hostElemPos.width <= viewportOffset.left ? 'right' : placement[1] === 'right' && adjustedSize.width - hostElemPos.width > viewportOffset.left && adjustedSize.width - hostElemPos.width <= viewportOffset.right ? 'left' : placement[1];\n\n if (placement[1] === 'center') {\n if (PLACEMENT_REGEX.vertical.test(placement[0])) {\n var xOverflow = hostElemPos.width / 2 - targetWidth / 2;\n\n if (viewportOffset.left + xOverflow < 0 && adjustedSize.width - hostElemPos.width <= viewportOffset.right) {\n placement[1] = 'left';\n } else if (viewportOffset.right + xOverflow < 0 && adjustedSize.width - hostElemPos.width <= viewportOffset.left) {\n placement[1] = 'right';\n }\n } else {\n var yOverflow = hostElemPos.height / 2 - adjustedSize.height / 2;\n\n if (viewportOffset.top + yOverflow < 0 && adjustedSize.height - hostElemPos.height <= viewportOffset.bottom) {\n placement[1] = 'top';\n } else if (viewportOffset.bottom + yOverflow < 0 && adjustedSize.height - hostElemPos.height <= viewportOffset.top) {\n placement[1] = 'bottom';\n }\n }\n }\n }\n\n switch (placement[0]) {\n case 'top':\n targetElemPos.top = hostElemPos.top - targetHeight;\n break;\n\n case 'bottom':\n targetElemPos.top = hostElemPos.top + hostElemPos.height;\n break;\n\n case 'left':\n targetElemPos.left = hostElemPos.left - targetWidth;\n break;\n\n case 'right':\n targetElemPos.left = hostElemPos.left + hostElemPos.width;\n break;\n }\n\n switch (placement[1]) {\n case 'top':\n targetElemPos.top = hostElemPos.top;\n break;\n\n case 'bottom':\n targetElemPos.top = hostElemPos.top + hostElemPos.height - targetHeight;\n break;\n\n case 'left':\n targetElemPos.left = hostElemPos.left;\n break;\n\n case 'right':\n targetElemPos.left = hostElemPos.left + hostElemPos.width - targetWidth;\n break;\n\n case 'center':\n if (PLACEMENT_REGEX.vertical.test(placement[0])) {\n targetElemPos.left = hostElemPos.left + hostElemPos.width / 2 - targetWidth / 2;\n } else {\n targetElemPos.top = hostElemPos.top + hostElemPos.height / 2 - targetHeight / 2;\n }\n\n break;\n }\n\n targetElemPos.top = Math.round(targetElemPos.top);\n targetElemPos.left = Math.round(targetElemPos.left);\n targetElemPos.placement = placement[1] === 'center' ? placement[0] : placement[0] + '-' + placement[1];\n return targetElemPos;\n },\n\n /**\n * Provides a way to adjust the top positioning after first\n * render to correctly align element to top after content\n * rendering causes resized element height\n *\n * @param {array} placementClasses - The array of strings of classes\n * element should have.\n * @param {object} containerPosition - The object with container\n * position information\n * @param {number} initialHeight - The initial height for the elem.\n * @param {number} currentHeight - The current height for the elem.\n */\n adjustTop: function (placementClasses, containerPosition, initialHeight, currentHeight) {\n if (placementClasses.indexOf('top') !== -1 && initialHeight !== currentHeight) {\n return {\n top: containerPosition.top - currentHeight + 'px'\n };\n }\n },\n\n /**\n * Provides a way for positioning tooltip & dropdown\n * arrows when using placement options beyond the standard\n * left, right, top, or bottom.\n *\n * @param {element} elem - The tooltip/dropdown element.\n * @param {string} placement - The placement for the elem.\n */\n positionArrow: function (elem, placement) {\n elem = this.getRawNode(elem);\n var innerElem = elem.querySelector('.tooltip-inner, .popover-inner');\n\n if (!innerElem) {\n return;\n }\n\n var isTooltip = angular.element(innerElem).hasClass('tooltip-inner');\n var arrowElem = isTooltip ? elem.querySelector('.tooltip-arrow') : elem.querySelector('.arrow');\n\n if (!arrowElem) {\n return;\n }\n\n var arrowCss = {\n top: '',\n bottom: '',\n left: '',\n right: ''\n };\n placement = this.parsePlacement(placement);\n\n if (placement[1] === 'center') {\n // no adjustment necessary - just reset styles\n angular.element(arrowElem).css(arrowCss);\n return;\n }\n\n var borderProp = 'border-' + placement[0] + '-width';\n var borderWidth = $window.getComputedStyle(arrowElem)[borderProp];\n var borderRadiusProp = 'border-';\n\n if (PLACEMENT_REGEX.vertical.test(placement[0])) {\n borderRadiusProp += placement[0] + '-' + placement[1];\n } else {\n borderRadiusProp += placement[1] + '-' + placement[0];\n }\n\n borderRadiusProp += '-radius';\n var borderRadius = $window.getComputedStyle(isTooltip ? innerElem : elem)[borderRadiusProp];\n\n switch (placement[0]) {\n case 'top':\n arrowCss.bottom = isTooltip ? '0' : '-' + borderWidth;\n break;\n\n case 'bottom':\n arrowCss.top = isTooltip ? '0' : '-' + borderWidth;\n break;\n\n case 'left':\n arrowCss.right = isTooltip ? '0' : '-' + borderWidth;\n break;\n\n case 'right':\n arrowCss.left = isTooltip ? '0' : '-' + borderWidth;\n break;\n }\n\n arrowCss[placement[1]] = borderRadius;\n angular.element(arrowElem).css(arrowCss);\n }\n };\n}]);\nangular.module('ui.bootstrap.stackedMap', [])\n/**\n * A helper, internal data structure that acts as a map but also allows getting / removing\n * elements in the LIFO order\n */\n.factory('$$stackedMap', function () {\n return {\n createNew: function () {\n var stack = [];\n return {\n add: function (key, value) {\n stack.push({\n key: key,\n value: value\n });\n },\n get: function (key) {\n for (var i = 0; i < stack.length; i++) {\n if (key === stack[i].key) {\n return stack[i];\n }\n }\n },\n keys: function () {\n var keys = [];\n\n for (var i = 0; i < stack.length; i++) {\n keys.push(stack[i].key);\n }\n\n return keys;\n },\n top: function () {\n return stack[stack.length - 1];\n },\n remove: function (key) {\n var idx = -1;\n\n for (var i = 0; i < stack.length; i++) {\n if (key === stack[i].key) {\n idx = i;\n break;\n }\n }\n\n return stack.splice(idx, 1)[0];\n },\n removeTop: function () {\n return stack.pop();\n },\n length: function () {\n return stack.length;\n }\n };\n }\n };\n});\n/**\n * The following features are still outstanding: popup delay, animation as a\n * function, placement as a function, inside, support for more triggers than\n * just mouse enter/leave, and selector delegatation.\n */\n\nangular.module('ui.bootstrap.popover', ['ui.bootstrap.tooltip']).directive('uibPopoverTemplatePopup', function () {\n return {\n restrict: 'A',\n scope: {\n uibTitle: '@',\n contentExp: '&',\n originScope: '&'\n },\n templateUrl: 'uib/template/popover/popover-template.html'\n };\n}).directive('uibPopoverTemplate', ['$uibTooltip', function ($uibTooltip) {\n return $uibTooltip('uibPopoverTemplate', 'popover', 'click', {\n useContentExp: true\n });\n}]).directive('uibPopoverHtmlPopup', function () {\n return {\n restrict: 'A',\n scope: {\n contentExp: '&',\n uibTitle: '@'\n },\n templateUrl: 'uib/template/popover/popover-html.html'\n };\n}).directive('uibPopoverHtml', ['$uibTooltip', function ($uibTooltip) {\n return $uibTooltip('uibPopoverHtml', 'popover', 'click', {\n useContentExp: true\n });\n}]).directive('uibPopoverPopup', function () {\n return {\n restrict: 'A',\n scope: {\n uibTitle: '@',\n content: '@'\n },\n templateUrl: 'uib/template/popover/popover.html'\n };\n}).directive('uibPopover', ['$uibTooltip', function ($uibTooltip) {\n return $uibTooltip('uibPopover', 'popover', 'click');\n}]);\nangular.module(\"uib/template/tooltip/tooltip-html-popup.html\", []).run([\"$templateCache\", function ($templateCache) {\n $templateCache.put(\"uib/template/tooltip/tooltip-html-popup.html\", \"
\\n\" + \"
\\n\" + \"\");\n}]);\nangular.module(\"uib/template/tooltip/tooltip-popup.html\", []).run([\"$templateCache\", function ($templateCache) {\n $templateCache.put(\"uib/template/tooltip/tooltip-popup.html\", \"
\\n\" + \"
\\n\" + \"\");\n}]);\nangular.module(\"uib/template/tooltip/tooltip-template-popup.html\", []).run([\"$templateCache\", function ($templateCache) {\n $templateCache.put(\"uib/template/tooltip/tooltip-template-popup.html\", \"
\\n\" + \"
\\n\" + \"\");\n}]);\nangular.module(\"uib/template/popover/popover-html.html\", []).run([\"$templateCache\", function ($templateCache) {\n $templateCache.put(\"uib/template/popover/popover-html.html\", \"
\\n\" + \"\\n\" + \"
\\n\" + \"

\\n\" + \"
\\n\" + \"
\\n\" + \"\");\n}]);\nangular.module(\"uib/template/popover/popover-template.html\", []).run([\"$templateCache\", function ($templateCache) {\n $templateCache.put(\"uib/template/popover/popover-template.html\", \"
\\n\" + \"\\n\" + \"
\\n\" + \"

\\n\" + \"
\\n\" + \"
\\n\" + \"\");\n}]);\nangular.module(\"uib/template/popover/popover.html\", []).run([\"$templateCache\", function ($templateCache) {\n $templateCache.put(\"uib/template/popover/popover.html\", \"
\\n\" + \"\\n\" + \"
\\n\" + \"

\\n\" + \"
\\n\" + \"
\\n\" + \"\");\n}]);\nangular.module('ui.bootstrap.tooltip').run(function () {\n !angular.$$csp().noInlineStyle && !angular.$$uibTooltipCss && angular.element(document).find('head').prepend('');\n angular.$$uibTooltipCss = true;\n});\nangular.module('ui.bootstrap.position').run(function () {\n !angular.$$csp().noInlineStyle && !angular.$$uibPositionCss && angular.element(document).find('head').prepend('');\n angular.$$uibPositionCss = true;\n});","import './styles/ui-popover.css';\nimport './ui-bootstrap-custom-tpls-2.5.0.js';\nexport default 'ui.bootstrap';","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n};\nimport { defaults as defaultOptions, HOOKS, } from \"./types/options\";\nimport English from \"./l10n/default\";\nimport { arrayify, debounce, int, pad } from \"./utils\";\nimport { clearNode, createElement, createNumberInput, findParent, toggleClass, getEventTarget, } from \"./utils/dom\";\nimport { compareDates, createDateParser, createDateFormatter, duration, isBetween, getDefaultHours, calculateSecondsSinceMidnight, parseSeconds, } from \"./utils/dates\";\nimport { tokenRegex, monthToStr } from \"./utils/formatting\";\nimport \"./utils/polyfills\";\nvar DEBOUNCED_CHANGE_MS = 300;\nfunction FlatpickrInstance(element, instanceConfig) {\n var self = {\n config: __assign(__assign({}, defaultOptions), flatpickr.defaultConfig),\n l10n: English,\n };\n self.parseDate = createDateParser({ config: self.config, l10n: self.l10n });\n self._handlers = [];\n self.pluginElements = [];\n self.loadedPlugins = [];\n self._bind = bind;\n self._setHoursFromDate = setHoursFromDate;\n self._positionCalendar = positionCalendar;\n self.changeMonth = changeMonth;\n self.changeYear = changeYear;\n self.clear = clear;\n self.close = close;\n self.onMouseOver = onMouseOver;\n self._createElement = createElement;\n self.createDay = createDay;\n self.destroy = destroy;\n self.isEnabled = isEnabled;\n self.jumpToDate = jumpToDate;\n self.updateValue = updateValue;\n self.open = open;\n self.redraw = redraw;\n self.set = set;\n self.setDate = setDate;\n self.toggle = toggle;\n function setupHelperFunctions() {\n self.utils = {\n getDaysInMonth: function (month, yr) {\n if (month === void 0) { month = self.currentMonth; }\n if (yr === void 0) { yr = self.currentYear; }\n if (month === 1 && ((yr % 4 === 0 && yr % 100 !== 0) || yr % 400 === 0))\n return 29;\n return self.l10n.daysInMonth[month];\n },\n };\n }\n function init() {\n self.element = self.input = element;\n self.isOpen = false;\n parseConfig();\n setupLocale();\n setupInputs();\n setupDates();\n setupHelperFunctions();\n if (!self.isMobile)\n build();\n bindEvents();\n if (self.selectedDates.length || self.config.noCalendar) {\n if (self.config.enableTime) {\n setHoursFromDate(self.config.noCalendar ? self.latestSelectedDateObj : undefined);\n }\n updateValue(false);\n }\n setCalendarWidth();\n var isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);\n if (!self.isMobile && isSafari) {\n positionCalendar();\n }\n triggerEvent(\"onReady\");\n }\n function getClosestActiveElement() {\n var _a;\n return (((_a = self.calendarContainer) === null || _a === void 0 ? void 0 : _a.getRootNode())\n .activeElement || document.activeElement);\n }\n function bindToInstance(fn) {\n return fn.bind(self);\n }\n function setCalendarWidth() {\n var config = self.config;\n if (config.weekNumbers === false && config.showMonths === 1) {\n return;\n }\n else if (config.noCalendar !== true) {\n window.requestAnimationFrame(function () {\n if (self.calendarContainer !== undefined) {\n self.calendarContainer.style.visibility = \"hidden\";\n self.calendarContainer.style.display = \"block\";\n }\n if (self.daysContainer !== undefined) {\n var daysWidth = (self.days.offsetWidth + 1) * config.showMonths;\n self.daysContainer.style.width = daysWidth + \"px\";\n self.calendarContainer.style.width =\n daysWidth +\n (self.weekWrapper !== undefined\n ? self.weekWrapper.offsetWidth\n : 0) +\n \"px\";\n self.calendarContainer.style.removeProperty(\"visibility\");\n self.calendarContainer.style.removeProperty(\"display\");\n }\n });\n }\n }\n function updateTime(e) {\n if (self.selectedDates.length === 0) {\n var defaultDate = self.config.minDate === undefined ||\n compareDates(new Date(), self.config.minDate) >= 0\n ? new Date()\n : new Date(self.config.minDate.getTime());\n var defaults = getDefaultHours(self.config);\n defaultDate.setHours(defaults.hours, defaults.minutes, defaults.seconds, defaultDate.getMilliseconds());\n self.selectedDates = [defaultDate];\n self.latestSelectedDateObj = defaultDate;\n }\n if (e !== undefined && e.type !== \"blur\") {\n timeWrapper(e);\n }\n var prevValue = self._input.value;\n setHoursFromInputs();\n updateValue();\n if (self._input.value !== prevValue) {\n self._debouncedChange();\n }\n }\n function ampm2military(hour, amPM) {\n return (hour % 12) + 12 * int(amPM === self.l10n.amPM[1]);\n }\n function military2ampm(hour) {\n switch (hour % 24) {\n case 0:\n case 12:\n return 12;\n default:\n return hour % 12;\n }\n }\n function setHoursFromInputs() {\n if (self.hourElement === undefined || self.minuteElement === undefined)\n return;\n var hours = (parseInt(self.hourElement.value.slice(-2), 10) || 0) % 24, minutes = (parseInt(self.minuteElement.value, 10) || 0) % 60, seconds = self.secondElement !== undefined\n ? (parseInt(self.secondElement.value, 10) || 0) % 60\n : 0;\n if (self.amPM !== undefined) {\n hours = ampm2military(hours, self.amPM.textContent);\n }\n var limitMinHours = self.config.minTime !== undefined ||\n (self.config.minDate &&\n self.minDateHasTime &&\n self.latestSelectedDateObj &&\n compareDates(self.latestSelectedDateObj, self.config.minDate, true) ===\n 0);\n var limitMaxHours = self.config.maxTime !== undefined ||\n (self.config.maxDate &&\n self.maxDateHasTime &&\n self.latestSelectedDateObj &&\n compareDates(self.latestSelectedDateObj, self.config.maxDate, true) ===\n 0);\n if (self.config.maxTime !== undefined &&\n self.config.minTime !== undefined &&\n self.config.minTime > self.config.maxTime) {\n var minBound = calculateSecondsSinceMidnight(self.config.minTime.getHours(), self.config.minTime.getMinutes(), self.config.minTime.getSeconds());\n var maxBound = calculateSecondsSinceMidnight(self.config.maxTime.getHours(), self.config.maxTime.getMinutes(), self.config.maxTime.getSeconds());\n var currentTime = calculateSecondsSinceMidnight(hours, minutes, seconds);\n if (currentTime > maxBound && currentTime < minBound) {\n var result = parseSeconds(minBound);\n hours = result[0];\n minutes = result[1];\n seconds = result[2];\n }\n }\n else {\n if (limitMaxHours) {\n var maxTime = self.config.maxTime !== undefined\n ? self.config.maxTime\n : self.config.maxDate;\n hours = Math.min(hours, maxTime.getHours());\n if (hours === maxTime.getHours())\n minutes = Math.min(minutes, maxTime.getMinutes());\n if (minutes === maxTime.getMinutes())\n seconds = Math.min(seconds, maxTime.getSeconds());\n }\n if (limitMinHours) {\n var minTime = self.config.minTime !== undefined\n ? self.config.minTime\n : self.config.minDate;\n hours = Math.max(hours, minTime.getHours());\n if (hours === minTime.getHours() && minutes < minTime.getMinutes())\n minutes = minTime.getMinutes();\n if (minutes === minTime.getMinutes())\n seconds = Math.max(seconds, minTime.getSeconds());\n }\n }\n setHours(hours, minutes, seconds);\n }\n function setHoursFromDate(dateObj) {\n var date = dateObj || self.latestSelectedDateObj;\n if (date && date instanceof Date) {\n setHours(date.getHours(), date.getMinutes(), date.getSeconds());\n }\n }\n function setHours(hours, minutes, seconds) {\n if (self.latestSelectedDateObj !== undefined) {\n self.latestSelectedDateObj.setHours(hours % 24, minutes, seconds || 0, 0);\n }\n if (!self.hourElement || !self.minuteElement || self.isMobile)\n return;\n self.hourElement.value = pad(!self.config.time_24hr\n ? ((12 + hours) % 12) + 12 * int(hours % 12 === 0)\n : hours);\n self.minuteElement.value = pad(minutes);\n if (self.amPM !== undefined)\n self.amPM.textContent = self.l10n.amPM[int(hours >= 12)];\n if (self.secondElement !== undefined)\n self.secondElement.value = pad(seconds);\n }\n function onYearInput(event) {\n var eventTarget = getEventTarget(event);\n var year = parseInt(eventTarget.value) + (event.delta || 0);\n if (year / 1000 > 1 ||\n (event.key === \"Enter\" && !/[^\\d]/.test(year.toString()))) {\n changeYear(year);\n }\n }\n function bind(element, event, handler, options) {\n if (event instanceof Array)\n return event.forEach(function (ev) { return bind(element, ev, handler, options); });\n if (element instanceof Array)\n return element.forEach(function (el) { return bind(el, event, handler, options); });\n element.addEventListener(event, handler, options);\n self._handlers.push({\n remove: function () { return element.removeEventListener(event, handler, options); },\n });\n }\n function triggerChange() {\n triggerEvent(\"onChange\");\n }\n function bindEvents() {\n if (self.config.wrap) {\n [\"open\", \"close\", \"toggle\", \"clear\"].forEach(function (evt) {\n Array.prototype.forEach.call(self.element.querySelectorAll(\"[data-\" + evt + \"]\"), function (el) {\n return bind(el, \"click\", self[evt]);\n });\n });\n }\n if (self.isMobile) {\n setupMobile();\n return;\n }\n var debouncedResize = debounce(onResize, 50);\n self._debouncedChange = debounce(triggerChange, DEBOUNCED_CHANGE_MS);\n if (self.daysContainer && !/iPhone|iPad|iPod/i.test(navigator.userAgent))\n bind(self.daysContainer, \"mouseover\", function (e) {\n if (self.config.mode === \"range\")\n onMouseOver(getEventTarget(e));\n });\n bind(self._input, \"keydown\", onKeyDown);\n if (self.calendarContainer !== undefined) {\n bind(self.calendarContainer, \"keydown\", onKeyDown);\n }\n if (!self.config.inline && !self.config.static)\n bind(window, \"resize\", debouncedResize);\n if (window.ontouchstart !== undefined)\n bind(window.document, \"touchstart\", documentClick);\n else\n bind(window.document, \"mousedown\", documentClick);\n bind(window.document, \"focus\", documentClick, { capture: true });\n if (self.config.clickOpens === true) {\n bind(self._input, \"focus\", self.open);\n bind(self._input, \"click\", self.open);\n }\n if (self.daysContainer !== undefined) {\n bind(self.monthNav, \"click\", onMonthNavClick);\n bind(self.monthNav, [\"keyup\", \"increment\"], onYearInput);\n bind(self.daysContainer, \"click\", selectDate);\n }\n if (self.timeContainer !== undefined &&\n self.minuteElement !== undefined &&\n self.hourElement !== undefined) {\n var selText = function (e) {\n return getEventTarget(e).select();\n };\n bind(self.timeContainer, [\"increment\"], updateTime);\n bind(self.timeContainer, \"blur\", updateTime, { capture: true });\n bind(self.timeContainer, \"click\", timeIncrement);\n bind([self.hourElement, self.minuteElement], [\"focus\", \"click\"], selText);\n if (self.secondElement !== undefined)\n bind(self.secondElement, \"focus\", function () { return self.secondElement && self.secondElement.select(); });\n if (self.amPM !== undefined) {\n bind(self.amPM, \"click\", function (e) {\n updateTime(e);\n });\n }\n }\n if (self.config.allowInput) {\n bind(self._input, \"blur\", onBlur);\n }\n }\n function jumpToDate(jumpDate, triggerChange) {\n var jumpTo = jumpDate !== undefined\n ? self.parseDate(jumpDate)\n : self.latestSelectedDateObj ||\n (self.config.minDate && self.config.minDate > self.now\n ? self.config.minDate\n : self.config.maxDate && self.config.maxDate < self.now\n ? self.config.maxDate\n : self.now);\n var oldYear = self.currentYear;\n var oldMonth = self.currentMonth;\n try {\n if (jumpTo !== undefined) {\n self.currentYear = jumpTo.getFullYear();\n self.currentMonth = jumpTo.getMonth();\n }\n }\n catch (e) {\n e.message = \"Invalid date supplied: \" + jumpTo;\n self.config.errorHandler(e);\n }\n if (triggerChange && self.currentYear !== oldYear) {\n triggerEvent(\"onYearChange\");\n buildMonthSwitch();\n }\n if (triggerChange &&\n (self.currentYear !== oldYear || self.currentMonth !== oldMonth)) {\n triggerEvent(\"onMonthChange\");\n }\n self.redraw();\n }\n function timeIncrement(e) {\n var eventTarget = getEventTarget(e);\n if (~eventTarget.className.indexOf(\"arrow\"))\n incrementNumInput(e, eventTarget.classList.contains(\"arrowUp\") ? 1 : -1);\n }\n function incrementNumInput(e, delta, inputElem) {\n var target = e && getEventTarget(e);\n var input = inputElem ||\n (target && target.parentNode && target.parentNode.firstChild);\n var event = createEvent(\"increment\");\n event.delta = delta;\n input && input.dispatchEvent(event);\n }\n function build() {\n var fragment = window.document.createDocumentFragment();\n self.calendarContainer = createElement(\"div\", \"flatpickr-calendar\");\n self.calendarContainer.tabIndex = -1;\n if (!self.config.noCalendar) {\n fragment.appendChild(buildMonthNav());\n self.innerContainer = createElement(\"div\", \"flatpickr-innerContainer\");\n if (self.config.weekNumbers) {\n var _a = buildWeeks(), weekWrapper = _a.weekWrapper, weekNumbers = _a.weekNumbers;\n self.innerContainer.appendChild(weekWrapper);\n self.weekNumbers = weekNumbers;\n self.weekWrapper = weekWrapper;\n }\n self.rContainer = createElement(\"div\", \"flatpickr-rContainer\");\n self.rContainer.appendChild(buildWeekdays());\n if (!self.daysContainer) {\n self.daysContainer = createElement(\"div\", \"flatpickr-days\");\n self.daysContainer.tabIndex = -1;\n }\n buildDays();\n self.rContainer.appendChild(self.daysContainer);\n self.innerContainer.appendChild(self.rContainer);\n fragment.appendChild(self.innerContainer);\n }\n if (self.config.enableTime) {\n fragment.appendChild(buildTime());\n }\n toggleClass(self.calendarContainer, \"rangeMode\", self.config.mode === \"range\");\n toggleClass(self.calendarContainer, \"animate\", self.config.animate === true);\n toggleClass(self.calendarContainer, \"multiMonth\", self.config.showMonths > 1);\n self.calendarContainer.appendChild(fragment);\n var customAppend = self.config.appendTo !== undefined &&\n self.config.appendTo.nodeType !== undefined;\n if (self.config.inline || self.config.static) {\n self.calendarContainer.classList.add(self.config.inline ? \"inline\" : \"static\");\n if (self.config.inline) {\n if (!customAppend && self.element.parentNode)\n self.element.parentNode.insertBefore(self.calendarContainer, self._input.nextSibling);\n else if (self.config.appendTo !== undefined)\n self.config.appendTo.appendChild(self.calendarContainer);\n }\n if (self.config.static) {\n var wrapper = createElement(\"div\", \"flatpickr-wrapper\");\n if (self.element.parentNode)\n self.element.parentNode.insertBefore(wrapper, self.element);\n wrapper.appendChild(self.element);\n if (self.altInput)\n wrapper.appendChild(self.altInput);\n wrapper.appendChild(self.calendarContainer);\n }\n }\n if (!self.config.static && !self.config.inline)\n (self.config.appendTo !== undefined\n ? self.config.appendTo\n : window.document.body).appendChild(self.calendarContainer);\n }\n function createDay(className, date, _dayNumber, i) {\n var dateIsEnabled = isEnabled(date, true), dayElement = createElement(\"span\", className, date.getDate().toString());\n dayElement.dateObj = date;\n dayElement.$i = i;\n dayElement.setAttribute(\"aria-label\", self.formatDate(date, self.config.ariaDateFormat));\n if (className.indexOf(\"hidden\") === -1 &&\n compareDates(date, self.now) === 0) {\n self.todayDateElem = dayElement;\n dayElement.classList.add(\"today\");\n dayElement.setAttribute(\"aria-current\", \"date\");\n }\n if (dateIsEnabled) {\n dayElement.tabIndex = -1;\n if (isDateSelected(date)) {\n dayElement.classList.add(\"selected\");\n self.selectedDateElem = dayElement;\n if (self.config.mode === \"range\") {\n toggleClass(dayElement, \"startRange\", self.selectedDates[0] &&\n compareDates(date, self.selectedDates[0], true) === 0);\n toggleClass(dayElement, \"endRange\", self.selectedDates[1] &&\n compareDates(date, self.selectedDates[1], true) === 0);\n if (className === \"nextMonthDay\")\n dayElement.classList.add(\"inRange\");\n }\n }\n }\n else {\n dayElement.classList.add(\"flatpickr-disabled\");\n }\n if (self.config.mode === \"range\") {\n if (isDateInRange(date) && !isDateSelected(date))\n dayElement.classList.add(\"inRange\");\n }\n if (self.weekNumbers &&\n self.config.showMonths === 1 &&\n className !== \"prevMonthDay\" &&\n i % 7 === 6) {\n self.weekNumbers.insertAdjacentHTML(\"beforeend\", \"\" + self.config.getWeek(date) + \"\");\n }\n triggerEvent(\"onDayCreate\", dayElement);\n return dayElement;\n }\n function focusOnDayElem(targetNode) {\n targetNode.focus();\n if (self.config.mode === \"range\")\n onMouseOver(targetNode);\n }\n function getFirstAvailableDay(delta) {\n var startMonth = delta > 0 ? 0 : self.config.showMonths - 1;\n var endMonth = delta > 0 ? self.config.showMonths : -1;\n for (var m = startMonth; m != endMonth; m += delta) {\n var month = self.daysContainer.children[m];\n var startIndex = delta > 0 ? 0 : month.children.length - 1;\n var endIndex = delta > 0 ? month.children.length : -1;\n for (var i = startIndex; i != endIndex; i += delta) {\n var c = month.children[i];\n if (c.className.indexOf(\"hidden\") === -1 && isEnabled(c.dateObj))\n return c;\n }\n }\n return undefined;\n }\n function getNextAvailableDay(current, delta) {\n var givenMonth = current.className.indexOf(\"Month\") === -1\n ? current.dateObj.getMonth()\n : self.currentMonth;\n var endMonth = delta > 0 ? self.config.showMonths : -1;\n var loopDelta = delta > 0 ? 1 : -1;\n for (var m = givenMonth - self.currentMonth; m != endMonth; m += loopDelta) {\n var month = self.daysContainer.children[m];\n var startIndex = givenMonth - self.currentMonth === m\n ? current.$i + delta\n : delta < 0\n ? month.children.length - 1\n : 0;\n var numMonthDays = month.children.length;\n for (var i = startIndex; i >= 0 && i < numMonthDays && i != (delta > 0 ? numMonthDays : -1); i += loopDelta) {\n var c = month.children[i];\n if (c.className.indexOf(\"hidden\") === -1 &&\n isEnabled(c.dateObj) &&\n Math.abs(current.$i - i) >= Math.abs(delta))\n return focusOnDayElem(c);\n }\n }\n self.changeMonth(loopDelta);\n focusOnDay(getFirstAvailableDay(loopDelta), 0);\n return undefined;\n }\n function focusOnDay(current, offset) {\n var activeElement = getClosestActiveElement();\n var dayFocused = isInView(activeElement || document.body);\n var startElem = current !== undefined\n ? current\n : dayFocused\n ? activeElement\n : self.selectedDateElem !== undefined && isInView(self.selectedDateElem)\n ? self.selectedDateElem\n : self.todayDateElem !== undefined && isInView(self.todayDateElem)\n ? self.todayDateElem\n : getFirstAvailableDay(offset > 0 ? 1 : -1);\n if (startElem === undefined) {\n self._input.focus();\n }\n else if (!dayFocused) {\n focusOnDayElem(startElem);\n }\n else {\n getNextAvailableDay(startElem, offset);\n }\n }\n function buildMonthDays(year, month) {\n var firstOfMonth = (new Date(year, month, 1).getDay() - self.l10n.firstDayOfWeek + 7) % 7;\n var prevMonthDays = self.utils.getDaysInMonth((month - 1 + 12) % 12, year);\n var daysInMonth = self.utils.getDaysInMonth(month, year), days = window.document.createDocumentFragment(), isMultiMonth = self.config.showMonths > 1, prevMonthDayClass = isMultiMonth ? \"prevMonthDay hidden\" : \"prevMonthDay\", nextMonthDayClass = isMultiMonth ? \"nextMonthDay hidden\" : \"nextMonthDay\";\n var dayNumber = prevMonthDays + 1 - firstOfMonth, dayIndex = 0;\n for (; dayNumber <= prevMonthDays; dayNumber++, dayIndex++) {\n days.appendChild(createDay(\"flatpickr-day \" + prevMonthDayClass, new Date(year, month - 1, dayNumber), dayNumber, dayIndex));\n }\n for (dayNumber = 1; dayNumber <= daysInMonth; dayNumber++, dayIndex++) {\n days.appendChild(createDay(\"flatpickr-day\", new Date(year, month, dayNumber), dayNumber, dayIndex));\n }\n for (var dayNum = daysInMonth + 1; dayNum <= 42 - firstOfMonth &&\n (self.config.showMonths === 1 || dayIndex % 7 !== 0); dayNum++, dayIndex++) {\n days.appendChild(createDay(\"flatpickr-day \" + nextMonthDayClass, new Date(year, month + 1, dayNum % daysInMonth), dayNum, dayIndex));\n }\n var dayContainer = createElement(\"div\", \"dayContainer\");\n dayContainer.appendChild(days);\n return dayContainer;\n }\n function buildDays() {\n if (self.daysContainer === undefined) {\n return;\n }\n clearNode(self.daysContainer);\n if (self.weekNumbers)\n clearNode(self.weekNumbers);\n var frag = document.createDocumentFragment();\n for (var i = 0; i < self.config.showMonths; i++) {\n var d = new Date(self.currentYear, self.currentMonth, 1);\n d.setMonth(self.currentMonth + i);\n frag.appendChild(buildMonthDays(d.getFullYear(), d.getMonth()));\n }\n self.daysContainer.appendChild(frag);\n self.days = self.daysContainer.firstChild;\n if (self.config.mode === \"range\" && self.selectedDates.length === 1) {\n onMouseOver();\n }\n }\n function buildMonthSwitch() {\n if (self.config.showMonths > 1 ||\n self.config.monthSelectorType !== \"dropdown\")\n return;\n var shouldBuildMonth = function (month) {\n if (self.config.minDate !== undefined &&\n self.currentYear === self.config.minDate.getFullYear() &&\n month < self.config.minDate.getMonth()) {\n return false;\n }\n return !(self.config.maxDate !== undefined &&\n self.currentYear === self.config.maxDate.getFullYear() &&\n month > self.config.maxDate.getMonth());\n };\n self.monthsDropdownContainer.tabIndex = -1;\n self.monthsDropdownContainer.innerHTML = \"\";\n for (var i = 0; i < 12; i++) {\n if (!shouldBuildMonth(i))\n continue;\n var month = createElement(\"option\", \"flatpickr-monthDropdown-month\");\n month.value = new Date(self.currentYear, i).getMonth().toString();\n month.textContent = monthToStr(i, self.config.shorthandCurrentMonth, self.l10n);\n month.tabIndex = -1;\n if (self.currentMonth === i) {\n month.selected = true;\n }\n self.monthsDropdownContainer.appendChild(month);\n }\n }\n function buildMonth() {\n var container = createElement(\"div\", \"flatpickr-month\");\n var monthNavFragment = window.document.createDocumentFragment();\n var monthElement;\n if (self.config.showMonths > 1 ||\n self.config.monthSelectorType === \"static\") {\n monthElement = createElement(\"span\", \"cur-month\");\n }\n else {\n self.monthsDropdownContainer = createElement(\"select\", \"flatpickr-monthDropdown-months\");\n self.monthsDropdownContainer.setAttribute(\"aria-label\", self.l10n.monthAriaLabel);\n bind(self.monthsDropdownContainer, \"change\", function (e) {\n var target = getEventTarget(e);\n var selectedMonth = parseInt(target.value, 10);\n self.changeMonth(selectedMonth - self.currentMonth);\n triggerEvent(\"onMonthChange\");\n });\n buildMonthSwitch();\n monthElement = self.monthsDropdownContainer;\n }\n var yearInput = createNumberInput(\"cur-year\", { tabindex: \"-1\" });\n var yearElement = yearInput.getElementsByTagName(\"input\")[0];\n yearElement.setAttribute(\"aria-label\", self.l10n.yearAriaLabel);\n if (self.config.minDate) {\n yearElement.setAttribute(\"min\", self.config.minDate.getFullYear().toString());\n }\n if (self.config.maxDate) {\n yearElement.setAttribute(\"max\", self.config.maxDate.getFullYear().toString());\n yearElement.disabled =\n !!self.config.minDate &&\n self.config.minDate.getFullYear() === self.config.maxDate.getFullYear();\n }\n var currentMonth = createElement(\"div\", \"flatpickr-current-month\");\n currentMonth.appendChild(monthElement);\n currentMonth.appendChild(yearInput);\n monthNavFragment.appendChild(currentMonth);\n container.appendChild(monthNavFragment);\n return {\n container: container,\n yearElement: yearElement,\n monthElement: monthElement,\n };\n }\n function buildMonths() {\n clearNode(self.monthNav);\n self.monthNav.appendChild(self.prevMonthNav);\n if (self.config.showMonths) {\n self.yearElements = [];\n self.monthElements = [];\n }\n for (var m = self.config.showMonths; m--;) {\n var month = buildMonth();\n self.yearElements.push(month.yearElement);\n self.monthElements.push(month.monthElement);\n self.monthNav.appendChild(month.container);\n }\n self.monthNav.appendChild(self.nextMonthNav);\n }\n function buildMonthNav() {\n self.monthNav = createElement(\"div\", \"flatpickr-months\");\n self.yearElements = [];\n self.monthElements = [];\n self.prevMonthNav = createElement(\"span\", \"flatpickr-prev-month\");\n self.prevMonthNav.innerHTML = self.config.prevArrow;\n self.nextMonthNav = createElement(\"span\", \"flatpickr-next-month\");\n self.nextMonthNav.innerHTML = self.config.nextArrow;\n buildMonths();\n Object.defineProperty(self, \"_hidePrevMonthArrow\", {\n get: function () { return self.__hidePrevMonthArrow; },\n set: function (bool) {\n if (self.__hidePrevMonthArrow !== bool) {\n toggleClass(self.prevMonthNav, \"flatpickr-disabled\", bool);\n self.__hidePrevMonthArrow = bool;\n }\n },\n });\n Object.defineProperty(self, \"_hideNextMonthArrow\", {\n get: function () { return self.__hideNextMonthArrow; },\n set: function (bool) {\n if (self.__hideNextMonthArrow !== bool) {\n toggleClass(self.nextMonthNav, \"flatpickr-disabled\", bool);\n self.__hideNextMonthArrow = bool;\n }\n },\n });\n self.currentYearElement = self.yearElements[0];\n updateNavigationCurrentMonth();\n return self.monthNav;\n }\n function buildTime() {\n self.calendarContainer.classList.add(\"hasTime\");\n if (self.config.noCalendar)\n self.calendarContainer.classList.add(\"noCalendar\");\n var defaults = getDefaultHours(self.config);\n self.timeContainer = createElement(\"div\", \"flatpickr-time\");\n self.timeContainer.tabIndex = -1;\n var separator = createElement(\"span\", \"flatpickr-time-separator\", \":\");\n var hourInput = createNumberInput(\"flatpickr-hour\", {\n \"aria-label\": self.l10n.hourAriaLabel,\n });\n self.hourElement = hourInput.getElementsByTagName(\"input\")[0];\n var minuteInput = createNumberInput(\"flatpickr-minute\", {\n \"aria-label\": self.l10n.minuteAriaLabel,\n });\n self.minuteElement = minuteInput.getElementsByTagName(\"input\")[0];\n self.hourElement.tabIndex = self.minuteElement.tabIndex = -1;\n self.hourElement.value = pad(self.latestSelectedDateObj\n ? self.latestSelectedDateObj.getHours()\n : self.config.time_24hr\n ? defaults.hours\n : military2ampm(defaults.hours));\n self.minuteElement.value = pad(self.latestSelectedDateObj\n ? self.latestSelectedDateObj.getMinutes()\n : defaults.minutes);\n self.hourElement.setAttribute(\"step\", self.config.hourIncrement.toString());\n self.minuteElement.setAttribute(\"step\", self.config.minuteIncrement.toString());\n self.hourElement.setAttribute(\"min\", self.config.time_24hr ? \"0\" : \"1\");\n self.hourElement.setAttribute(\"max\", self.config.time_24hr ? \"23\" : \"12\");\n self.hourElement.setAttribute(\"maxlength\", \"2\");\n self.minuteElement.setAttribute(\"min\", \"0\");\n self.minuteElement.setAttribute(\"max\", \"59\");\n self.minuteElement.setAttribute(\"maxlength\", \"2\");\n self.timeContainer.appendChild(hourInput);\n self.timeContainer.appendChild(separator);\n self.timeContainer.appendChild(minuteInput);\n if (self.config.time_24hr)\n self.timeContainer.classList.add(\"time24hr\");\n if (self.config.enableSeconds) {\n self.timeContainer.classList.add(\"hasSeconds\");\n var secondInput = createNumberInput(\"flatpickr-second\");\n self.secondElement = secondInput.getElementsByTagName(\"input\")[0];\n self.secondElement.value = pad(self.latestSelectedDateObj\n ? self.latestSelectedDateObj.getSeconds()\n : defaults.seconds);\n self.secondElement.setAttribute(\"step\", self.minuteElement.getAttribute(\"step\"));\n self.secondElement.setAttribute(\"min\", \"0\");\n self.secondElement.setAttribute(\"max\", \"59\");\n self.secondElement.setAttribute(\"maxlength\", \"2\");\n self.timeContainer.appendChild(createElement(\"span\", \"flatpickr-time-separator\", \":\"));\n self.timeContainer.appendChild(secondInput);\n }\n if (!self.config.time_24hr) {\n self.amPM = createElement(\"span\", \"flatpickr-am-pm\", self.l10n.amPM[int((self.latestSelectedDateObj\n ? self.hourElement.value\n : self.config.defaultHour) > 11)]);\n self.amPM.title = self.l10n.toggleTitle;\n self.amPM.tabIndex = -1;\n self.timeContainer.appendChild(self.amPM);\n }\n return self.timeContainer;\n }\n function buildWeekdays() {\n if (!self.weekdayContainer)\n self.weekdayContainer = createElement(\"div\", \"flatpickr-weekdays\");\n else\n clearNode(self.weekdayContainer);\n for (var i = self.config.showMonths; i--;) {\n var container = createElement(\"div\", \"flatpickr-weekdaycontainer\");\n self.weekdayContainer.appendChild(container);\n }\n updateWeekdays();\n return self.weekdayContainer;\n }\n function updateWeekdays() {\n if (!self.weekdayContainer) {\n return;\n }\n var firstDayOfWeek = self.l10n.firstDayOfWeek;\n var weekdays = __spreadArrays(self.l10n.weekdays.shorthand);\n if (firstDayOfWeek > 0 && firstDayOfWeek < weekdays.length) {\n weekdays = __spreadArrays(weekdays.splice(firstDayOfWeek, weekdays.length), weekdays.splice(0, firstDayOfWeek));\n }\n for (var i = self.config.showMonths; i--;) {\n self.weekdayContainer.children[i].innerHTML = \"\\n \\n \" + weekdays.join(\"\") + \"\\n \\n \";\n }\n }\n function buildWeeks() {\n self.calendarContainer.classList.add(\"hasWeeks\");\n var weekWrapper = createElement(\"div\", \"flatpickr-weekwrapper\");\n weekWrapper.appendChild(createElement(\"span\", \"flatpickr-weekday\", self.l10n.weekAbbreviation));\n var weekNumbers = createElement(\"div\", \"flatpickr-weeks\");\n weekWrapper.appendChild(weekNumbers);\n return {\n weekWrapper: weekWrapper,\n weekNumbers: weekNumbers,\n };\n }\n function changeMonth(value, isOffset) {\n if (isOffset === void 0) { isOffset = true; }\n var delta = isOffset ? value : value - self.currentMonth;\n if ((delta < 0 && self._hidePrevMonthArrow === true) ||\n (delta > 0 && self._hideNextMonthArrow === true))\n return;\n self.currentMonth += delta;\n if (self.currentMonth < 0 || self.currentMonth > 11) {\n self.currentYear += self.currentMonth > 11 ? 1 : -1;\n self.currentMonth = (self.currentMonth + 12) % 12;\n triggerEvent(\"onYearChange\");\n buildMonthSwitch();\n }\n buildDays();\n triggerEvent(\"onMonthChange\");\n updateNavigationCurrentMonth();\n }\n function clear(triggerChangeEvent, toInitial) {\n if (triggerChangeEvent === void 0) { triggerChangeEvent = true; }\n if (toInitial === void 0) { toInitial = true; }\n self.input.value = \"\";\n if (self.altInput !== undefined)\n self.altInput.value = \"\";\n if (self.mobileInput !== undefined)\n self.mobileInput.value = \"\";\n self.selectedDates = [];\n self.latestSelectedDateObj = undefined;\n if (toInitial === true) {\n self.currentYear = self._initialDate.getFullYear();\n self.currentMonth = self._initialDate.getMonth();\n }\n if (self.config.enableTime === true) {\n var _a = getDefaultHours(self.config), hours = _a.hours, minutes = _a.minutes, seconds = _a.seconds;\n setHours(hours, minutes, seconds);\n }\n self.redraw();\n if (triggerChangeEvent)\n triggerEvent(\"onChange\");\n }\n function close() {\n self.isOpen = false;\n if (!self.isMobile) {\n if (self.calendarContainer !== undefined) {\n self.calendarContainer.classList.remove(\"open\");\n }\n if (self._input !== undefined) {\n self._input.classList.remove(\"active\");\n }\n }\n triggerEvent(\"onClose\");\n }\n function destroy() {\n if (self.config !== undefined)\n triggerEvent(\"onDestroy\");\n for (var i = self._handlers.length; i--;) {\n self._handlers[i].remove();\n }\n self._handlers = [];\n if (self.mobileInput) {\n if (self.mobileInput.parentNode)\n self.mobileInput.parentNode.removeChild(self.mobileInput);\n self.mobileInput = undefined;\n }\n else if (self.calendarContainer && self.calendarContainer.parentNode) {\n if (self.config.static && self.calendarContainer.parentNode) {\n var wrapper = self.calendarContainer.parentNode;\n wrapper.lastChild && wrapper.removeChild(wrapper.lastChild);\n if (wrapper.parentNode) {\n while (wrapper.firstChild)\n wrapper.parentNode.insertBefore(wrapper.firstChild, wrapper);\n wrapper.parentNode.removeChild(wrapper);\n }\n }\n else\n self.calendarContainer.parentNode.removeChild(self.calendarContainer);\n }\n if (self.altInput) {\n self.input.type = \"text\";\n if (self.altInput.parentNode)\n self.altInput.parentNode.removeChild(self.altInput);\n delete self.altInput;\n }\n if (self.input) {\n self.input.type = self.input._type;\n self.input.classList.remove(\"flatpickr-input\");\n self.input.removeAttribute(\"readonly\");\n }\n [\n \"_showTimeInput\",\n \"latestSelectedDateObj\",\n \"_hideNextMonthArrow\",\n \"_hidePrevMonthArrow\",\n \"__hideNextMonthArrow\",\n \"__hidePrevMonthArrow\",\n \"isMobile\",\n \"isOpen\",\n \"selectedDateElem\",\n \"minDateHasTime\",\n \"maxDateHasTime\",\n \"days\",\n \"daysContainer\",\n \"_input\",\n \"_positionElement\",\n \"innerContainer\",\n \"rContainer\",\n \"monthNav\",\n \"todayDateElem\",\n \"calendarContainer\",\n \"weekdayContainer\",\n \"prevMonthNav\",\n \"nextMonthNav\",\n \"monthsDropdownContainer\",\n \"currentMonthElement\",\n \"currentYearElement\",\n \"navigationCurrentMonth\",\n \"selectedDateElem\",\n \"config\",\n ].forEach(function (k) {\n try {\n delete self[k];\n }\n catch (_) { }\n });\n }\n function isCalendarElem(elem) {\n return self.calendarContainer.contains(elem);\n }\n function documentClick(e) {\n if (self.isOpen && !self.config.inline) {\n var eventTarget_1 = getEventTarget(e);\n var isCalendarElement = isCalendarElem(eventTarget_1);\n var isInput = eventTarget_1 === self.input ||\n eventTarget_1 === self.altInput ||\n self.element.contains(eventTarget_1) ||\n (e.path &&\n e.path.indexOf &&\n (~e.path.indexOf(self.input) ||\n ~e.path.indexOf(self.altInput)));\n var lostFocus = !isInput &&\n !isCalendarElement &&\n !isCalendarElem(e.relatedTarget);\n var isIgnored = !self.config.ignoredFocusElements.some(function (elem) {\n return elem.contains(eventTarget_1);\n });\n if (lostFocus && isIgnored) {\n if (self.config.allowInput) {\n self.setDate(self._input.value, false, self.config.altInput\n ? self.config.altFormat\n : self.config.dateFormat);\n }\n if (self.timeContainer !== undefined &&\n self.minuteElement !== undefined &&\n self.hourElement !== undefined &&\n self.input.value !== \"\" &&\n self.input.value !== undefined) {\n updateTime();\n }\n self.close();\n if (self.config &&\n self.config.mode === \"range\" &&\n self.selectedDates.length === 1)\n self.clear(false);\n }\n }\n }\n function changeYear(newYear) {\n if (!newYear ||\n (self.config.minDate && newYear < self.config.minDate.getFullYear()) ||\n (self.config.maxDate && newYear > self.config.maxDate.getFullYear()))\n return;\n var newYearNum = newYear, isNewYear = self.currentYear !== newYearNum;\n self.currentYear = newYearNum || self.currentYear;\n if (self.config.maxDate &&\n self.currentYear === self.config.maxDate.getFullYear()) {\n self.currentMonth = Math.min(self.config.maxDate.getMonth(), self.currentMonth);\n }\n else if (self.config.minDate &&\n self.currentYear === self.config.minDate.getFullYear()) {\n self.currentMonth = Math.max(self.config.minDate.getMonth(), self.currentMonth);\n }\n if (isNewYear) {\n self.redraw();\n triggerEvent(\"onYearChange\");\n buildMonthSwitch();\n }\n }\n function isEnabled(date, timeless) {\n var _a;\n if (timeless === void 0) { timeless = true; }\n var dateToCheck = self.parseDate(date, undefined, timeless);\n if ((self.config.minDate &&\n dateToCheck &&\n compareDates(dateToCheck, self.config.minDate, timeless !== undefined ? timeless : !self.minDateHasTime) < 0) ||\n (self.config.maxDate &&\n dateToCheck &&\n compareDates(dateToCheck, self.config.maxDate, timeless !== undefined ? timeless : !self.maxDateHasTime) > 0))\n return false;\n if (!self.config.enable && self.config.disable.length === 0)\n return true;\n if (dateToCheck === undefined)\n return false;\n var bool = !!self.config.enable, array = (_a = self.config.enable) !== null && _a !== void 0 ? _a : self.config.disable;\n for (var i = 0, d = void 0; i < array.length; i++) {\n d = array[i];\n if (typeof d === \"function\" &&\n d(dateToCheck))\n return bool;\n else if (d instanceof Date &&\n dateToCheck !== undefined &&\n d.getTime() === dateToCheck.getTime())\n return bool;\n else if (typeof d === \"string\") {\n var parsed = self.parseDate(d, undefined, true);\n return parsed && parsed.getTime() === dateToCheck.getTime()\n ? bool\n : !bool;\n }\n else if (typeof d === \"object\" &&\n dateToCheck !== undefined &&\n d.from &&\n d.to &&\n dateToCheck.getTime() >= d.from.getTime() &&\n dateToCheck.getTime() <= d.to.getTime())\n return bool;\n }\n return !bool;\n }\n function isInView(elem) {\n if (self.daysContainer !== undefined)\n return (elem.className.indexOf(\"hidden\") === -1 &&\n elem.className.indexOf(\"flatpickr-disabled\") === -1 &&\n self.daysContainer.contains(elem));\n return false;\n }\n function onBlur(e) {\n var isInput = e.target === self._input;\n var valueChanged = self._input.value.trimEnd() !== getDateStr();\n if (isInput &&\n valueChanged &&\n !(e.relatedTarget && isCalendarElem(e.relatedTarget))) {\n self.setDate(self._input.value, true, e.target === self.altInput\n ? self.config.altFormat\n : self.config.dateFormat);\n }\n }\n function onKeyDown(e) {\n var eventTarget = getEventTarget(e);\n var isInput = self.config.wrap\n ? element.contains(eventTarget)\n : eventTarget === self._input;\n var allowInput = self.config.allowInput;\n var allowKeydown = self.isOpen && (!allowInput || !isInput);\n var allowInlineKeydown = self.config.inline && isInput && !allowInput;\n if (e.keyCode === 13 && isInput) {\n if (allowInput) {\n self.setDate(self._input.value, true, eventTarget === self.altInput\n ? self.config.altFormat\n : self.config.dateFormat);\n self.close();\n return eventTarget.blur();\n }\n else {\n self.open();\n }\n }\n else if (isCalendarElem(eventTarget) ||\n allowKeydown ||\n allowInlineKeydown) {\n var isTimeObj = !!self.timeContainer &&\n self.timeContainer.contains(eventTarget);\n switch (e.keyCode) {\n case 13:\n if (isTimeObj) {\n e.preventDefault();\n updateTime();\n focusAndClose();\n }\n else\n selectDate(e);\n break;\n case 27:\n e.preventDefault();\n focusAndClose();\n break;\n case 8:\n case 46:\n if (isInput && !self.config.allowInput) {\n e.preventDefault();\n self.clear();\n }\n break;\n case 37:\n case 39:\n if (!isTimeObj && !isInput) {\n e.preventDefault();\n var activeElement = getClosestActiveElement();\n if (self.daysContainer !== undefined &&\n (allowInput === false ||\n (activeElement && isInView(activeElement)))) {\n var delta_1 = e.keyCode === 39 ? 1 : -1;\n if (!e.ctrlKey)\n focusOnDay(undefined, delta_1);\n else {\n e.stopPropagation();\n changeMonth(delta_1);\n focusOnDay(getFirstAvailableDay(1), 0);\n }\n }\n }\n else if (self.hourElement)\n self.hourElement.focus();\n break;\n case 38:\n case 40:\n e.preventDefault();\n var delta = e.keyCode === 40 ? 1 : -1;\n if ((self.daysContainer &&\n eventTarget.$i !== undefined) ||\n eventTarget === self.input ||\n eventTarget === self.altInput) {\n if (e.ctrlKey) {\n e.stopPropagation();\n changeYear(self.currentYear - delta);\n focusOnDay(getFirstAvailableDay(1), 0);\n }\n else if (!isTimeObj)\n focusOnDay(undefined, delta * 7);\n }\n else if (eventTarget === self.currentYearElement) {\n changeYear(self.currentYear - delta);\n }\n else if (self.config.enableTime) {\n if (!isTimeObj && self.hourElement)\n self.hourElement.focus();\n updateTime(e);\n self._debouncedChange();\n }\n break;\n case 9:\n if (isTimeObj) {\n var elems = [\n self.hourElement,\n self.minuteElement,\n self.secondElement,\n self.amPM,\n ]\n .concat(self.pluginElements)\n .filter(function (x) { return x; });\n var i = elems.indexOf(eventTarget);\n if (i !== -1) {\n var target = elems[i + (e.shiftKey ? -1 : 1)];\n e.preventDefault();\n (target || self._input).focus();\n }\n }\n else if (!self.config.noCalendar &&\n self.daysContainer &&\n self.daysContainer.contains(eventTarget) &&\n e.shiftKey) {\n e.preventDefault();\n self._input.focus();\n }\n break;\n default:\n break;\n }\n }\n if (self.amPM !== undefined && eventTarget === self.amPM) {\n switch (e.key) {\n case self.l10n.amPM[0].charAt(0):\n case self.l10n.amPM[0].charAt(0).toLowerCase():\n self.amPM.textContent = self.l10n.amPM[0];\n setHoursFromInputs();\n updateValue();\n break;\n case self.l10n.amPM[1].charAt(0):\n case self.l10n.amPM[1].charAt(0).toLowerCase():\n self.amPM.textContent = self.l10n.amPM[1];\n setHoursFromInputs();\n updateValue();\n break;\n }\n }\n if (isInput || isCalendarElem(eventTarget)) {\n triggerEvent(\"onKeyDown\", e);\n }\n }\n function onMouseOver(elem, cellClass) {\n if (cellClass === void 0) { cellClass = \"flatpickr-day\"; }\n if (self.selectedDates.length !== 1 ||\n (elem &&\n (!elem.classList.contains(cellClass) ||\n elem.classList.contains(\"flatpickr-disabled\"))))\n return;\n var hoverDate = elem\n ? elem.dateObj.getTime()\n : self.days.firstElementChild.dateObj.getTime(), initialDate = self.parseDate(self.selectedDates[0], undefined, true).getTime(), rangeStartDate = Math.min(hoverDate, self.selectedDates[0].getTime()), rangeEndDate = Math.max(hoverDate, self.selectedDates[0].getTime());\n var containsDisabled = false;\n var minRange = 0, maxRange = 0;\n for (var t = rangeStartDate; t < rangeEndDate; t += duration.DAY) {\n if (!isEnabled(new Date(t), true)) {\n containsDisabled =\n containsDisabled || (t > rangeStartDate && t < rangeEndDate);\n if (t < initialDate && (!minRange || t > minRange))\n minRange = t;\n else if (t > initialDate && (!maxRange || t < maxRange))\n maxRange = t;\n }\n }\n var hoverableCells = Array.from(self.rContainer.querySelectorAll(\"*:nth-child(-n+\" + self.config.showMonths + \") > .\" + cellClass));\n hoverableCells.forEach(function (dayElem) {\n var date = dayElem.dateObj;\n var timestamp = date.getTime();\n var outOfRange = (minRange > 0 && timestamp < minRange) ||\n (maxRange > 0 && timestamp > maxRange);\n if (outOfRange) {\n dayElem.classList.add(\"notAllowed\");\n [\"inRange\", \"startRange\", \"endRange\"].forEach(function (c) {\n dayElem.classList.remove(c);\n });\n return;\n }\n else if (containsDisabled && !outOfRange)\n return;\n [\"startRange\", \"inRange\", \"endRange\", \"notAllowed\"].forEach(function (c) {\n dayElem.classList.remove(c);\n });\n if (elem !== undefined) {\n elem.classList.add(hoverDate <= self.selectedDates[0].getTime()\n ? \"startRange\"\n : \"endRange\");\n if (initialDate < hoverDate && timestamp === initialDate)\n dayElem.classList.add(\"startRange\");\n else if (initialDate > hoverDate && timestamp === initialDate)\n dayElem.classList.add(\"endRange\");\n if (timestamp >= minRange &&\n (maxRange === 0 || timestamp <= maxRange) &&\n isBetween(timestamp, initialDate, hoverDate))\n dayElem.classList.add(\"inRange\");\n }\n });\n }\n function onResize() {\n if (self.isOpen && !self.config.static && !self.config.inline)\n positionCalendar();\n }\n function open(e, positionElement) {\n if (positionElement === void 0) { positionElement = self._positionElement; }\n if (self.isMobile === true) {\n if (e) {\n e.preventDefault();\n var eventTarget = getEventTarget(e);\n if (eventTarget) {\n eventTarget.blur();\n }\n }\n if (self.mobileInput !== undefined) {\n self.mobileInput.focus();\n self.mobileInput.click();\n }\n triggerEvent(\"onOpen\");\n return;\n }\n else if (self._input.disabled || self.config.inline) {\n return;\n }\n var wasOpen = self.isOpen;\n self.isOpen = true;\n if (!wasOpen) {\n self.calendarContainer.classList.add(\"open\");\n self._input.classList.add(\"active\");\n triggerEvent(\"onOpen\");\n positionCalendar(positionElement);\n }\n if (self.config.enableTime === true && self.config.noCalendar === true) {\n if (self.config.allowInput === false &&\n (e === undefined ||\n !self.timeContainer.contains(e.relatedTarget))) {\n setTimeout(function () { return self.hourElement.select(); }, 50);\n }\n }\n }\n function minMaxDateSetter(type) {\n return function (date) {\n var dateObj = (self.config[\"_\" + type + \"Date\"] = self.parseDate(date, self.config.dateFormat));\n var inverseDateObj = self.config[\"_\" + (type === \"min\" ? \"max\" : \"min\") + \"Date\"];\n if (dateObj !== undefined) {\n self[type === \"min\" ? \"minDateHasTime\" : \"maxDateHasTime\"] =\n dateObj.getHours() > 0 ||\n dateObj.getMinutes() > 0 ||\n dateObj.getSeconds() > 0;\n }\n if (self.selectedDates) {\n self.selectedDates = self.selectedDates.filter(function (d) { return isEnabled(d); });\n if (!self.selectedDates.length && type === \"min\")\n setHoursFromDate(dateObj);\n updateValue();\n }\n if (self.daysContainer) {\n redraw();\n if (dateObj !== undefined)\n self.currentYearElement[type] = dateObj.getFullYear().toString();\n else\n self.currentYearElement.removeAttribute(type);\n self.currentYearElement.disabled =\n !!inverseDateObj &&\n dateObj !== undefined &&\n inverseDateObj.getFullYear() === dateObj.getFullYear();\n }\n };\n }\n function parseConfig() {\n var boolOpts = [\n \"wrap\",\n \"weekNumbers\",\n \"allowInput\",\n \"allowInvalidPreload\",\n \"clickOpens\",\n \"time_24hr\",\n \"enableTime\",\n \"noCalendar\",\n \"altInput\",\n \"shorthandCurrentMonth\",\n \"inline\",\n \"static\",\n \"enableSeconds\",\n \"disableMobile\",\n ];\n var userConfig = __assign(__assign({}, JSON.parse(JSON.stringify(element.dataset || {}))), instanceConfig);\n var formats = {};\n self.config.parseDate = userConfig.parseDate;\n self.config.formatDate = userConfig.formatDate;\n Object.defineProperty(self.config, \"enable\", {\n get: function () { return self.config._enable; },\n set: function (dates) {\n self.config._enable = parseDateRules(dates);\n },\n });\n Object.defineProperty(self.config, \"disable\", {\n get: function () { return self.config._disable; },\n set: function (dates) {\n self.config._disable = parseDateRules(dates);\n },\n });\n var timeMode = userConfig.mode === \"time\";\n if (!userConfig.dateFormat && (userConfig.enableTime || timeMode)) {\n var defaultDateFormat = flatpickr.defaultConfig.dateFormat || defaultOptions.dateFormat;\n formats.dateFormat =\n userConfig.noCalendar || timeMode\n ? \"H:i\" + (userConfig.enableSeconds ? \":S\" : \"\")\n : defaultDateFormat + \" H:i\" + (userConfig.enableSeconds ? \":S\" : \"\");\n }\n if (userConfig.altInput &&\n (userConfig.enableTime || timeMode) &&\n !userConfig.altFormat) {\n var defaultAltFormat = flatpickr.defaultConfig.altFormat || defaultOptions.altFormat;\n formats.altFormat =\n userConfig.noCalendar || timeMode\n ? \"h:i\" + (userConfig.enableSeconds ? \":S K\" : \" K\")\n : defaultAltFormat + (\" h:i\" + (userConfig.enableSeconds ? \":S\" : \"\") + \" K\");\n }\n Object.defineProperty(self.config, \"minDate\", {\n get: function () { return self.config._minDate; },\n set: minMaxDateSetter(\"min\"),\n });\n Object.defineProperty(self.config, \"maxDate\", {\n get: function () { return self.config._maxDate; },\n set: minMaxDateSetter(\"max\"),\n });\n var minMaxTimeSetter = function (type) { return function (val) {\n self.config[type === \"min\" ? \"_minTime\" : \"_maxTime\"] = self.parseDate(val, \"H:i:S\");\n }; };\n Object.defineProperty(self.config, \"minTime\", {\n get: function () { return self.config._minTime; },\n set: minMaxTimeSetter(\"min\"),\n });\n Object.defineProperty(self.config, \"maxTime\", {\n get: function () { return self.config._maxTime; },\n set: minMaxTimeSetter(\"max\"),\n });\n if (userConfig.mode === \"time\") {\n self.config.noCalendar = true;\n self.config.enableTime = true;\n }\n Object.assign(self.config, formats, userConfig);\n for (var i = 0; i < boolOpts.length; i++)\n self.config[boolOpts[i]] =\n self.config[boolOpts[i]] === true ||\n self.config[boolOpts[i]] === \"true\";\n HOOKS.filter(function (hook) { return self.config[hook] !== undefined; }).forEach(function (hook) {\n self.config[hook] = arrayify(self.config[hook] || []).map(bindToInstance);\n });\n self.isMobile =\n !self.config.disableMobile &&\n !self.config.inline &&\n self.config.mode === \"single\" &&\n !self.config.disable.length &&\n !self.config.enable &&\n !self.config.weekNumbers &&\n /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);\n for (var i = 0; i < self.config.plugins.length; i++) {\n var pluginConf = self.config.plugins[i](self) || {};\n for (var key in pluginConf) {\n if (HOOKS.indexOf(key) > -1) {\n self.config[key] = arrayify(pluginConf[key])\n .map(bindToInstance)\n .concat(self.config[key]);\n }\n else if (typeof userConfig[key] === \"undefined\")\n self.config[key] = pluginConf[key];\n }\n }\n if (!userConfig.altInputClass) {\n self.config.altInputClass =\n getInputElem().className + \" \" + self.config.altInputClass;\n }\n triggerEvent(\"onParseConfig\");\n }\n function getInputElem() {\n return self.config.wrap\n ? element.querySelector(\"[data-input]\")\n : element;\n }\n function setupLocale() {\n if (typeof self.config.locale !== \"object\" &&\n typeof flatpickr.l10ns[self.config.locale] === \"undefined\")\n self.config.errorHandler(new Error(\"flatpickr: invalid locale \" + self.config.locale));\n self.l10n = __assign(__assign({}, flatpickr.l10ns.default), (typeof self.config.locale === \"object\"\n ? self.config.locale\n : self.config.locale !== \"default\"\n ? flatpickr.l10ns[self.config.locale]\n : undefined));\n tokenRegex.D = \"(\" + self.l10n.weekdays.shorthand.join(\"|\") + \")\";\n tokenRegex.l = \"(\" + self.l10n.weekdays.longhand.join(\"|\") + \")\";\n tokenRegex.M = \"(\" + self.l10n.months.shorthand.join(\"|\") + \")\";\n tokenRegex.F = \"(\" + self.l10n.months.longhand.join(\"|\") + \")\";\n tokenRegex.K = \"(\" + self.l10n.amPM[0] + \"|\" + self.l10n.amPM[1] + \"|\" + self.l10n.amPM[0].toLowerCase() + \"|\" + self.l10n.amPM[1].toLowerCase() + \")\";\n var userConfig = __assign(__assign({}, instanceConfig), JSON.parse(JSON.stringify(element.dataset || {})));\n if (userConfig.time_24hr === undefined &&\n flatpickr.defaultConfig.time_24hr === undefined) {\n self.config.time_24hr = self.l10n.time_24hr;\n }\n self.formatDate = createDateFormatter(self);\n self.parseDate = createDateParser({ config: self.config, l10n: self.l10n });\n }\n function positionCalendar(customPositionElement) {\n if (typeof self.config.position === \"function\") {\n return void self.config.position(self, customPositionElement);\n }\n if (self.calendarContainer === undefined)\n return;\n triggerEvent(\"onPreCalendarPosition\");\n var positionElement = customPositionElement || self._positionElement;\n var calendarHeight = Array.prototype.reduce.call(self.calendarContainer.children, (function (acc, child) { return acc + child.offsetHeight; }), 0), calendarWidth = self.calendarContainer.offsetWidth, configPos = self.config.position.split(\" \"), configPosVertical = configPos[0], configPosHorizontal = configPos.length > 1 ? configPos[1] : null, inputBounds = positionElement.getBoundingClientRect(), distanceFromBottom = window.innerHeight - inputBounds.bottom, showOnTop = configPosVertical === \"above\" ||\n (configPosVertical !== \"below\" &&\n distanceFromBottom < calendarHeight &&\n inputBounds.top > calendarHeight);\n var top = window.pageYOffset +\n inputBounds.top +\n (!showOnTop ? positionElement.offsetHeight + 2 : -calendarHeight - 2);\n toggleClass(self.calendarContainer, \"arrowTop\", !showOnTop);\n toggleClass(self.calendarContainer, \"arrowBottom\", showOnTop);\n if (self.config.inline)\n return;\n var left = window.pageXOffset + inputBounds.left;\n var isCenter = false;\n var isRight = false;\n if (configPosHorizontal === \"center\") {\n left -= (calendarWidth - inputBounds.width) / 2;\n isCenter = true;\n }\n else if (configPosHorizontal === \"right\") {\n left -= calendarWidth - inputBounds.width;\n isRight = true;\n }\n toggleClass(self.calendarContainer, \"arrowLeft\", !isCenter && !isRight);\n toggleClass(self.calendarContainer, \"arrowCenter\", isCenter);\n toggleClass(self.calendarContainer, \"arrowRight\", isRight);\n var right = window.document.body.offsetWidth -\n (window.pageXOffset + inputBounds.right);\n var rightMost = left + calendarWidth > window.document.body.offsetWidth;\n var centerMost = right + calendarWidth > window.document.body.offsetWidth;\n toggleClass(self.calendarContainer, \"rightMost\", rightMost);\n if (self.config.static)\n return;\n self.calendarContainer.style.top = top + \"px\";\n if (!rightMost) {\n self.calendarContainer.style.left = left + \"px\";\n self.calendarContainer.style.right = \"auto\";\n }\n else if (!centerMost) {\n self.calendarContainer.style.left = \"auto\";\n self.calendarContainer.style.right = right + \"px\";\n }\n else {\n var doc = getDocumentStyleSheet();\n if (doc === undefined)\n return;\n var bodyWidth = window.document.body.offsetWidth;\n var centerLeft = Math.max(0, bodyWidth / 2 - calendarWidth / 2);\n var centerBefore = \".flatpickr-calendar.centerMost:before\";\n var centerAfter = \".flatpickr-calendar.centerMost:after\";\n var centerIndex = doc.cssRules.length;\n var centerStyle = \"{left:\" + inputBounds.left + \"px;right:auto;}\";\n toggleClass(self.calendarContainer, \"rightMost\", false);\n toggleClass(self.calendarContainer, \"centerMost\", true);\n doc.insertRule(centerBefore + \",\" + centerAfter + centerStyle, centerIndex);\n self.calendarContainer.style.left = centerLeft + \"px\";\n self.calendarContainer.style.right = \"auto\";\n }\n }\n function getDocumentStyleSheet() {\n var editableSheet = null;\n for (var i = 0; i < document.styleSheets.length; i++) {\n var sheet = document.styleSheets[i];\n if (!sheet.cssRules)\n continue;\n try {\n sheet.cssRules;\n }\n catch (err) {\n continue;\n }\n editableSheet = sheet;\n break;\n }\n return editableSheet != null ? editableSheet : createStyleSheet();\n }\n function createStyleSheet() {\n var style = document.createElement(\"style\");\n document.head.appendChild(style);\n return style.sheet;\n }\n function redraw() {\n if (self.config.noCalendar || self.isMobile)\n return;\n buildMonthSwitch();\n updateNavigationCurrentMonth();\n buildDays();\n }\n function focusAndClose() {\n self._input.focus();\n if (window.navigator.userAgent.indexOf(\"MSIE\") !== -1 ||\n navigator.msMaxTouchPoints !== undefined) {\n setTimeout(self.close, 0);\n }\n else {\n self.close();\n }\n }\n function selectDate(e) {\n e.preventDefault();\n e.stopPropagation();\n var isSelectable = function (day) {\n return day.classList &&\n day.classList.contains(\"flatpickr-day\") &&\n !day.classList.contains(\"flatpickr-disabled\") &&\n !day.classList.contains(\"notAllowed\");\n };\n var t = findParent(getEventTarget(e), isSelectable);\n if (t === undefined)\n return;\n var target = t;\n var selectedDate = (self.latestSelectedDateObj = new Date(target.dateObj.getTime()));\n var shouldChangeMonth = (selectedDate.getMonth() < self.currentMonth ||\n selectedDate.getMonth() >\n self.currentMonth + self.config.showMonths - 1) &&\n self.config.mode !== \"range\";\n self.selectedDateElem = target;\n if (self.config.mode === \"single\")\n self.selectedDates = [selectedDate];\n else if (self.config.mode === \"multiple\") {\n var selectedIndex = isDateSelected(selectedDate);\n if (selectedIndex)\n self.selectedDates.splice(parseInt(selectedIndex), 1);\n else\n self.selectedDates.push(selectedDate);\n }\n else if (self.config.mode === \"range\") {\n if (self.selectedDates.length === 2) {\n self.clear(false, false);\n }\n self.latestSelectedDateObj = selectedDate;\n self.selectedDates.push(selectedDate);\n if (compareDates(selectedDate, self.selectedDates[0], true) !== 0)\n self.selectedDates.sort(function (a, b) { return a.getTime() - b.getTime(); });\n }\n setHoursFromInputs();\n if (shouldChangeMonth) {\n var isNewYear = self.currentYear !== selectedDate.getFullYear();\n self.currentYear = selectedDate.getFullYear();\n self.currentMonth = selectedDate.getMonth();\n if (isNewYear) {\n triggerEvent(\"onYearChange\");\n buildMonthSwitch();\n }\n triggerEvent(\"onMonthChange\");\n }\n updateNavigationCurrentMonth();\n buildDays();\n updateValue();\n if (!shouldChangeMonth &&\n self.config.mode !== \"range\" &&\n self.config.showMonths === 1)\n focusOnDayElem(target);\n else if (self.selectedDateElem !== undefined &&\n self.hourElement === undefined) {\n self.selectedDateElem && self.selectedDateElem.focus();\n }\n if (self.hourElement !== undefined)\n self.hourElement !== undefined && self.hourElement.focus();\n if (self.config.closeOnSelect) {\n var single = self.config.mode === \"single\" && !self.config.enableTime;\n var range = self.config.mode === \"range\" &&\n self.selectedDates.length === 2 &&\n !self.config.enableTime;\n if (single || range) {\n focusAndClose();\n }\n }\n triggerChange();\n }\n var CALLBACKS = {\n locale: [setupLocale, updateWeekdays],\n showMonths: [buildMonths, setCalendarWidth, buildWeekdays],\n minDate: [jumpToDate],\n maxDate: [jumpToDate],\n positionElement: [updatePositionElement],\n clickOpens: [\n function () {\n if (self.config.clickOpens === true) {\n bind(self._input, \"focus\", self.open);\n bind(self._input, \"click\", self.open);\n }\n else {\n self._input.removeEventListener(\"focus\", self.open);\n self._input.removeEventListener(\"click\", self.open);\n }\n },\n ],\n };\n function set(option, value) {\n if (option !== null && typeof option === \"object\") {\n Object.assign(self.config, option);\n for (var key in option) {\n if (CALLBACKS[key] !== undefined)\n CALLBACKS[key].forEach(function (x) { return x(); });\n }\n }\n else {\n self.config[option] = value;\n if (CALLBACKS[option] !== undefined)\n CALLBACKS[option].forEach(function (x) { return x(); });\n else if (HOOKS.indexOf(option) > -1)\n self.config[option] = arrayify(value);\n }\n self.redraw();\n updateValue(true);\n }\n function setSelectedDate(inputDate, format) {\n var dates = [];\n if (inputDate instanceof Array)\n dates = inputDate.map(function (d) { return self.parseDate(d, format); });\n else if (inputDate instanceof Date || typeof inputDate === \"number\")\n dates = [self.parseDate(inputDate, format)];\n else if (typeof inputDate === \"string\") {\n switch (self.config.mode) {\n case \"single\":\n case \"time\":\n dates = [self.parseDate(inputDate, format)];\n break;\n case \"multiple\":\n dates = inputDate\n .split(self.config.conjunction)\n .map(function (date) { return self.parseDate(date, format); });\n break;\n case \"range\":\n dates = inputDate\n .split(self.l10n.rangeSeparator)\n .map(function (date) { return self.parseDate(date, format); });\n break;\n default:\n break;\n }\n }\n else\n self.config.errorHandler(new Error(\"Invalid date supplied: \" + JSON.stringify(inputDate)));\n self.selectedDates = (self.config.allowInvalidPreload\n ? dates\n : dates.filter(function (d) { return d instanceof Date && isEnabled(d, false); }));\n if (self.config.mode === \"range\")\n self.selectedDates.sort(function (a, b) { return a.getTime() - b.getTime(); });\n }\n function setDate(date, triggerChange, format) {\n if (triggerChange === void 0) { triggerChange = false; }\n if (format === void 0) { format = self.config.dateFormat; }\n if ((date !== 0 && !date) || (date instanceof Array && date.length === 0))\n return self.clear(triggerChange);\n setSelectedDate(date, format);\n self.latestSelectedDateObj =\n self.selectedDates[self.selectedDates.length - 1];\n self.redraw();\n jumpToDate(undefined, triggerChange);\n setHoursFromDate();\n if (self.selectedDates.length === 0) {\n self.clear(false);\n }\n updateValue(triggerChange);\n if (triggerChange)\n triggerEvent(\"onChange\");\n }\n function parseDateRules(arr) {\n return arr\n .slice()\n .map(function (rule) {\n if (typeof rule === \"string\" ||\n typeof rule === \"number\" ||\n rule instanceof Date) {\n return self.parseDate(rule, undefined, true);\n }\n else if (rule &&\n typeof rule === \"object\" &&\n rule.from &&\n rule.to)\n return {\n from: self.parseDate(rule.from, undefined),\n to: self.parseDate(rule.to, undefined),\n };\n return rule;\n })\n .filter(function (x) { return x; });\n }\n function setupDates() {\n self.selectedDates = [];\n self.now = self.parseDate(self.config.now) || new Date();\n var preloadedDate = self.config.defaultDate ||\n ((self.input.nodeName === \"INPUT\" ||\n self.input.nodeName === \"TEXTAREA\") &&\n self.input.placeholder &&\n self.input.value === self.input.placeholder\n ? null\n : self.input.value);\n if (preloadedDate)\n setSelectedDate(preloadedDate, self.config.dateFormat);\n self._initialDate =\n self.selectedDates.length > 0\n ? self.selectedDates[0]\n : self.config.minDate &&\n self.config.minDate.getTime() > self.now.getTime()\n ? self.config.minDate\n : self.config.maxDate &&\n self.config.maxDate.getTime() < self.now.getTime()\n ? self.config.maxDate\n : self.now;\n self.currentYear = self._initialDate.getFullYear();\n self.currentMonth = self._initialDate.getMonth();\n if (self.selectedDates.length > 0)\n self.latestSelectedDateObj = self.selectedDates[0];\n if (self.config.minTime !== undefined)\n self.config.minTime = self.parseDate(self.config.minTime, \"H:i\");\n if (self.config.maxTime !== undefined)\n self.config.maxTime = self.parseDate(self.config.maxTime, \"H:i\");\n self.minDateHasTime =\n !!self.config.minDate &&\n (self.config.minDate.getHours() > 0 ||\n self.config.minDate.getMinutes() > 0 ||\n self.config.minDate.getSeconds() > 0);\n self.maxDateHasTime =\n !!self.config.maxDate &&\n (self.config.maxDate.getHours() > 0 ||\n self.config.maxDate.getMinutes() > 0 ||\n self.config.maxDate.getSeconds() > 0);\n }\n function setupInputs() {\n self.input = getInputElem();\n if (!self.input) {\n self.config.errorHandler(new Error(\"Invalid input element specified\"));\n return;\n }\n self.input._type = self.input.type;\n self.input.type = \"text\";\n self.input.classList.add(\"flatpickr-input\");\n self._input = self.input;\n if (self.config.altInput) {\n self.altInput = createElement(self.input.nodeName, self.config.altInputClass);\n self._input = self.altInput;\n self.altInput.placeholder = self.input.placeholder;\n self.altInput.disabled = self.input.disabled;\n self.altInput.required = self.input.required;\n self.altInput.tabIndex = self.input.tabIndex;\n self.altInput.type = \"text\";\n self.input.setAttribute(\"type\", \"hidden\");\n if (!self.config.static && self.input.parentNode)\n self.input.parentNode.insertBefore(self.altInput, self.input.nextSibling);\n }\n if (!self.config.allowInput)\n self._input.setAttribute(\"readonly\", \"readonly\");\n updatePositionElement();\n }\n function updatePositionElement() {\n self._positionElement = self.config.positionElement || self._input;\n }\n function setupMobile() {\n var inputType = self.config.enableTime\n ? self.config.noCalendar\n ? \"time\"\n : \"datetime-local\"\n : \"date\";\n self.mobileInput = createElement(\"input\", self.input.className + \" flatpickr-mobile\");\n self.mobileInput.tabIndex = 1;\n self.mobileInput.type = inputType;\n self.mobileInput.disabled = self.input.disabled;\n self.mobileInput.required = self.input.required;\n self.mobileInput.placeholder = self.input.placeholder;\n self.mobileFormatStr =\n inputType === \"datetime-local\"\n ? \"Y-m-d\\\\TH:i:S\"\n : inputType === \"date\"\n ? \"Y-m-d\"\n : \"H:i:S\";\n if (self.selectedDates.length > 0) {\n self.mobileInput.defaultValue = self.mobileInput.value = self.formatDate(self.selectedDates[0], self.mobileFormatStr);\n }\n if (self.config.minDate)\n self.mobileInput.min = self.formatDate(self.config.minDate, \"Y-m-d\");\n if (self.config.maxDate)\n self.mobileInput.max = self.formatDate(self.config.maxDate, \"Y-m-d\");\n if (self.input.getAttribute(\"step\"))\n self.mobileInput.step = String(self.input.getAttribute(\"step\"));\n self.input.type = \"hidden\";\n if (self.altInput !== undefined)\n self.altInput.type = \"hidden\";\n try {\n if (self.input.parentNode)\n self.input.parentNode.insertBefore(self.mobileInput, self.input.nextSibling);\n }\n catch (_a) { }\n bind(self.mobileInput, \"change\", function (e) {\n self.setDate(getEventTarget(e).value, false, self.mobileFormatStr);\n triggerEvent(\"onChange\");\n triggerEvent(\"onClose\");\n });\n }\n function toggle(e) {\n if (self.isOpen === true)\n return self.close();\n self.open(e);\n }\n function triggerEvent(event, data) {\n if (self.config === undefined)\n return;\n var hooks = self.config[event];\n if (hooks !== undefined && hooks.length > 0) {\n for (var i = 0; hooks[i] && i < hooks.length; i++)\n hooks[i](self.selectedDates, self.input.value, self, data);\n }\n if (event === \"onChange\") {\n self.input.dispatchEvent(createEvent(\"change\"));\n self.input.dispatchEvent(createEvent(\"input\"));\n }\n }\n function createEvent(name) {\n var e = document.createEvent(\"Event\");\n e.initEvent(name, true, true);\n return e;\n }\n function isDateSelected(date) {\n for (var i = 0; i < self.selectedDates.length; i++) {\n var selectedDate = self.selectedDates[i];\n if (selectedDate instanceof Date &&\n compareDates(selectedDate, date) === 0)\n return \"\" + i;\n }\n return false;\n }\n function isDateInRange(date) {\n if (self.config.mode !== \"range\" || self.selectedDates.length < 2)\n return false;\n return (compareDates(date, self.selectedDates[0]) >= 0 &&\n compareDates(date, self.selectedDates[1]) <= 0);\n }\n function updateNavigationCurrentMonth() {\n if (self.config.noCalendar || self.isMobile || !self.monthNav)\n return;\n self.yearElements.forEach(function (yearElement, i) {\n var d = new Date(self.currentYear, self.currentMonth, 1);\n d.setMonth(self.currentMonth + i);\n if (self.config.showMonths > 1 ||\n self.config.monthSelectorType === \"static\") {\n self.monthElements[i].textContent =\n monthToStr(d.getMonth(), self.config.shorthandCurrentMonth, self.l10n) + \" \";\n }\n else {\n self.monthsDropdownContainer.value = d.getMonth().toString();\n }\n yearElement.value = d.getFullYear().toString();\n });\n self._hidePrevMonthArrow =\n self.config.minDate !== undefined &&\n (self.currentYear === self.config.minDate.getFullYear()\n ? self.currentMonth <= self.config.minDate.getMonth()\n : self.currentYear < self.config.minDate.getFullYear());\n self._hideNextMonthArrow =\n self.config.maxDate !== undefined &&\n (self.currentYear === self.config.maxDate.getFullYear()\n ? self.currentMonth + 1 > self.config.maxDate.getMonth()\n : self.currentYear > self.config.maxDate.getFullYear());\n }\n function getDateStr(specificFormat) {\n var format = specificFormat ||\n (self.config.altInput ? self.config.altFormat : self.config.dateFormat);\n return self.selectedDates\n .map(function (dObj) { return self.formatDate(dObj, format); })\n .filter(function (d, i, arr) {\n return self.config.mode !== \"range\" ||\n self.config.enableTime ||\n arr.indexOf(d) === i;\n })\n .join(self.config.mode !== \"range\"\n ? self.config.conjunction\n : self.l10n.rangeSeparator);\n }\n function updateValue(triggerChange) {\n if (triggerChange === void 0) { triggerChange = true; }\n if (self.mobileInput !== undefined && self.mobileFormatStr) {\n self.mobileInput.value =\n self.latestSelectedDateObj !== undefined\n ? self.formatDate(self.latestSelectedDateObj, self.mobileFormatStr)\n : \"\";\n }\n self.input.value = getDateStr(self.config.dateFormat);\n if (self.altInput !== undefined) {\n self.altInput.value = getDateStr(self.config.altFormat);\n }\n if (triggerChange !== false)\n triggerEvent(\"onValueUpdate\");\n }\n function onMonthNavClick(e) {\n var eventTarget = getEventTarget(e);\n var isPrevMonth = self.prevMonthNav.contains(eventTarget);\n var isNextMonth = self.nextMonthNav.contains(eventTarget);\n if (isPrevMonth || isNextMonth) {\n changeMonth(isPrevMonth ? -1 : 1);\n }\n else if (self.yearElements.indexOf(eventTarget) >= 0) {\n eventTarget.select();\n }\n else if (eventTarget.classList.contains(\"arrowUp\")) {\n self.changeYear(self.currentYear + 1);\n }\n else if (eventTarget.classList.contains(\"arrowDown\")) {\n self.changeYear(self.currentYear - 1);\n }\n }\n function timeWrapper(e) {\n e.preventDefault();\n var isKeyDown = e.type === \"keydown\", eventTarget = getEventTarget(e), input = eventTarget;\n if (self.amPM !== undefined && eventTarget === self.amPM) {\n self.amPM.textContent =\n self.l10n.amPM[int(self.amPM.textContent === self.l10n.amPM[0])];\n }\n var min = parseFloat(input.getAttribute(\"min\")), max = parseFloat(input.getAttribute(\"max\")), step = parseFloat(input.getAttribute(\"step\")), curValue = parseInt(input.value, 10), delta = e.delta ||\n (isKeyDown ? (e.which === 38 ? 1 : -1) : 0);\n var newValue = curValue + step * delta;\n if (typeof input.value !== \"undefined\" && input.value.length === 2) {\n var isHourElem = input === self.hourElement, isMinuteElem = input === self.minuteElement;\n if (newValue < min) {\n newValue =\n max +\n newValue +\n int(!isHourElem) +\n (int(isHourElem) && int(!self.amPM));\n if (isMinuteElem)\n incrementNumInput(undefined, -1, self.hourElement);\n }\n else if (newValue > max) {\n newValue =\n input === self.hourElement ? newValue - max - int(!self.amPM) : min;\n if (isMinuteElem)\n incrementNumInput(undefined, 1, self.hourElement);\n }\n if (self.amPM &&\n isHourElem &&\n (step === 1\n ? newValue + curValue === 23\n : Math.abs(newValue - curValue) > step)) {\n self.amPM.textContent =\n self.l10n.amPM[int(self.amPM.textContent === self.l10n.amPM[0])];\n }\n input.value = pad(newValue);\n }\n }\n init();\n return self;\n}\nfunction _flatpickr(nodeList, config) {\n var nodes = Array.prototype.slice\n .call(nodeList)\n .filter(function (x) { return x instanceof HTMLElement; });\n var instances = [];\n for (var i = 0; i < nodes.length; i++) {\n var node = nodes[i];\n try {\n if (node.getAttribute(\"data-fp-omit\") !== null)\n continue;\n if (node._flatpickr !== undefined) {\n node._flatpickr.destroy();\n node._flatpickr = undefined;\n }\n node._flatpickr = FlatpickrInstance(node, config || {});\n instances.push(node._flatpickr);\n }\n catch (e) {\n console.error(e);\n }\n }\n return instances.length === 1 ? instances[0] : instances;\n}\nif (typeof HTMLElement !== \"undefined\" &&\n typeof HTMLCollection !== \"undefined\" &&\n typeof NodeList !== \"undefined\") {\n HTMLCollection.prototype.flatpickr = NodeList.prototype.flatpickr = function (config) {\n return _flatpickr(this, config);\n };\n HTMLElement.prototype.flatpickr = function (config) {\n return _flatpickr([this], config);\n };\n}\nvar flatpickr = function (selector, config) {\n if (typeof selector === \"string\") {\n return _flatpickr(window.document.querySelectorAll(selector), config);\n }\n else if (selector instanceof Node) {\n return _flatpickr([selector], config);\n }\n else {\n return _flatpickr(selector, config);\n }\n};\nflatpickr.defaultConfig = {};\nflatpickr.l10ns = {\n en: __assign({}, English),\n default: __assign({}, English),\n};\nflatpickr.localize = function (l10n) {\n flatpickr.l10ns.default = __assign(__assign({}, flatpickr.l10ns.default), l10n);\n};\nflatpickr.setDefaults = function (config) {\n flatpickr.defaultConfig = __assign(__assign({}, flatpickr.defaultConfig), config);\n};\nflatpickr.parseDate = createDateParser({});\nflatpickr.formatDate = createDateFormatter({});\nflatpickr.compareDates = compareDates;\nif (typeof jQuery !== \"undefined\" && typeof jQuery.fn !== \"undefined\") {\n jQuery.fn.flatpickr = function (config) {\n return _flatpickr(this, config);\n };\n}\nDate.prototype.fp_incr = function (days) {\n return new Date(this.getFullYear(), this.getMonth(), this.getDate() + (typeof days === \"string\" ? parseInt(days, 10) : days));\n};\nif (typeof window !== \"undefined\") {\n window.flatpickr = flatpickr;\n}\nexport default flatpickr;\n","export var english = {\n weekdays: {\n shorthand: [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"],\n longhand: [\n \"Sunday\",\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\",\n \"Thursday\",\n \"Friday\",\n \"Saturday\",\n ],\n },\n months: {\n shorthand: [\n \"Jan\",\n \"Feb\",\n \"Mar\",\n \"Apr\",\n \"May\",\n \"Jun\",\n \"Jul\",\n \"Aug\",\n \"Sep\",\n \"Oct\",\n \"Nov\",\n \"Dec\",\n ],\n longhand: [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\",\n ],\n },\n daysInMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],\n firstDayOfWeek: 0,\n ordinal: function (nth) {\n var s = nth % 100;\n if (s > 3 && s < 21)\n return \"th\";\n switch (s % 10) {\n case 1:\n return \"st\";\n case 2:\n return \"nd\";\n case 3:\n return \"rd\";\n default:\n return \"th\";\n }\n },\n rangeSeparator: \" to \",\n weekAbbreviation: \"Wk\",\n scrollTitle: \"Scroll to increment\",\n toggleTitle: \"Click to toggle\",\n amPM: [\"AM\", \"PM\"],\n yearAriaLabel: \"Year\",\n monthAriaLabel: \"Month\",\n hourAriaLabel: \"Hour\",\n minuteAriaLabel: \"Minute\",\n time_24hr: false,\n};\nexport default english;\n","export var HOOKS = [\n \"onChange\",\n \"onClose\",\n \"onDayCreate\",\n \"onDestroy\",\n \"onKeyDown\",\n \"onMonthChange\",\n \"onOpen\",\n \"onParseConfig\",\n \"onReady\",\n \"onValueUpdate\",\n \"onYearChange\",\n \"onPreCalendarPosition\",\n];\nexport var defaults = {\n _disable: [],\n allowInput: false,\n allowInvalidPreload: false,\n altFormat: \"F j, Y\",\n altInput: false,\n altInputClass: \"form-control input\",\n animate: typeof window === \"object\" &&\n window.navigator.userAgent.indexOf(\"MSIE\") === -1,\n ariaDateFormat: \"F j, Y\",\n autoFillDefaultTime: true,\n clickOpens: true,\n closeOnSelect: true,\n conjunction: \", \",\n dateFormat: \"Y-m-d\",\n defaultHour: 12,\n defaultMinute: 0,\n defaultSeconds: 0,\n disable: [],\n disableMobile: false,\n enableSeconds: false,\n enableTime: false,\n errorHandler: function (err) {\n return typeof console !== \"undefined\" && console.warn(err);\n },\n getWeek: function (givenDate) {\n var date = new Date(givenDate.getTime());\n date.setHours(0, 0, 0, 0);\n date.setDate(date.getDate() + 3 - ((date.getDay() + 6) % 7));\n var week1 = new Date(date.getFullYear(), 0, 4);\n return (1 +\n Math.round(((date.getTime() - week1.getTime()) / 86400000 -\n 3 +\n ((week1.getDay() + 6) % 7)) /\n 7));\n },\n hourIncrement: 1,\n ignoredFocusElements: [],\n inline: false,\n locale: \"default\",\n minuteIncrement: 5,\n mode: \"single\",\n monthSelectorType: \"dropdown\",\n nextArrow: \"\",\n noCalendar: false,\n now: new Date(),\n onChange: [],\n onClose: [],\n onDayCreate: [],\n onDestroy: [],\n onKeyDown: [],\n onMonthChange: [],\n onOpen: [],\n onParseConfig: [],\n onReady: [],\n onValueUpdate: [],\n onYearChange: [],\n onPreCalendarPosition: [],\n plugins: [],\n position: \"auto\",\n positionElement: undefined,\n prevArrow: \"\",\n shorthandCurrentMonth: false,\n showMonths: 1,\n static: false,\n time_24hr: false,\n weekNumbers: false,\n wrap: false,\n};\n","import { tokenRegex, revFormat, formats, } from \"./formatting\";\nimport { defaults } from \"../types/options\";\nimport { english } from \"../l10n/default\";\nexport var createDateFormatter = function (_a) {\n var _b = _a.config, config = _b === void 0 ? defaults : _b, _c = _a.l10n, l10n = _c === void 0 ? english : _c, _d = _a.isMobile, isMobile = _d === void 0 ? false : _d;\n return function (dateObj, frmt, overrideLocale) {\n var locale = overrideLocale || l10n;\n if (config.formatDate !== undefined && !isMobile) {\n return config.formatDate(dateObj, frmt, locale);\n }\n return frmt\n .split(\"\")\n .map(function (c, i, arr) {\n return formats[c] && arr[i - 1] !== \"\\\\\"\n ? formats[c](dateObj, locale, config)\n : c !== \"\\\\\"\n ? c\n : \"\";\n })\n .join(\"\");\n };\n};\nexport var createDateParser = function (_a) {\n var _b = _a.config, config = _b === void 0 ? defaults : _b, _c = _a.l10n, l10n = _c === void 0 ? english : _c;\n return function (date, givenFormat, timeless, customLocale) {\n if (date !== 0 && !date)\n return undefined;\n var locale = customLocale || l10n;\n var parsedDate;\n var dateOrig = date;\n if (date instanceof Date)\n parsedDate = new Date(date.getTime());\n else if (typeof date !== \"string\" &&\n date.toFixed !== undefined)\n parsedDate = new Date(date);\n else if (typeof date === \"string\") {\n var format = givenFormat || (config || defaults).dateFormat;\n var datestr = String(date).trim();\n if (datestr === \"today\") {\n parsedDate = new Date();\n timeless = true;\n }\n else if (config && config.parseDate) {\n parsedDate = config.parseDate(date, format);\n }\n else if (/Z$/.test(datestr) ||\n /GMT$/.test(datestr)) {\n parsedDate = new Date(date);\n }\n else {\n var matched = void 0, ops = [];\n for (var i = 0, matchIndex = 0, regexStr = \"\"; i < format.length; i++) {\n var token = format[i];\n var isBackSlash = token === \"\\\\\";\n var escaped = format[i - 1] === \"\\\\\" || isBackSlash;\n if (tokenRegex[token] && !escaped) {\n regexStr += tokenRegex[token];\n var match = new RegExp(regexStr).exec(date);\n if (match && (matched = true)) {\n ops[token !== \"Y\" ? \"push\" : \"unshift\"]({\n fn: revFormat[token],\n val: match[++matchIndex],\n });\n }\n }\n else if (!isBackSlash)\n regexStr += \".\";\n }\n parsedDate =\n !config || !config.noCalendar\n ? new Date(new Date().getFullYear(), 0, 1, 0, 0, 0, 0)\n : new Date(new Date().setHours(0, 0, 0, 0));\n ops.forEach(function (_a) {\n var fn = _a.fn, val = _a.val;\n return (parsedDate = fn(parsedDate, val, locale) || parsedDate);\n });\n parsedDate = matched ? parsedDate : undefined;\n }\n }\n if (!(parsedDate instanceof Date && !isNaN(parsedDate.getTime()))) {\n config.errorHandler(new Error(\"Invalid date provided: \" + dateOrig));\n return undefined;\n }\n if (timeless === true)\n parsedDate.setHours(0, 0, 0, 0);\n return parsedDate;\n };\n};\nexport function compareDates(date1, date2, timeless) {\n if (timeless === void 0) { timeless = true; }\n if (timeless !== false) {\n return (new Date(date1.getTime()).setHours(0, 0, 0, 0) -\n new Date(date2.getTime()).setHours(0, 0, 0, 0));\n }\n return date1.getTime() - date2.getTime();\n}\nexport function compareTimes(date1, date2) {\n return (3600 * (date1.getHours() - date2.getHours()) +\n 60 * (date1.getMinutes() - date2.getMinutes()) +\n date1.getSeconds() -\n date2.getSeconds());\n}\nexport var isBetween = function (ts, ts1, ts2) {\n return ts > Math.min(ts1, ts2) && ts < Math.max(ts1, ts2);\n};\nexport var calculateSecondsSinceMidnight = function (hours, minutes, seconds) {\n return hours * 3600 + minutes * 60 + seconds;\n};\nexport var parseSeconds = function (secondsSinceMidnight) {\n var hours = Math.floor(secondsSinceMidnight / 3600), minutes = (secondsSinceMidnight - hours * 3600) / 60;\n return [hours, minutes, secondsSinceMidnight - hours * 3600 - minutes * 60];\n};\nexport var duration = {\n DAY: 86400000,\n};\nexport function getDefaultHours(config) {\n var hours = config.defaultHour;\n var minutes = config.defaultMinute;\n var seconds = config.defaultSeconds;\n if (config.minDate !== undefined) {\n var minHour = config.minDate.getHours();\n var minMinutes = config.minDate.getMinutes();\n var minSeconds = config.minDate.getSeconds();\n if (hours < minHour) {\n hours = minHour;\n }\n if (hours === minHour && minutes < minMinutes) {\n minutes = minMinutes;\n }\n if (hours === minHour && minutes === minMinutes && seconds < minSeconds)\n seconds = config.minDate.getSeconds();\n }\n if (config.maxDate !== undefined) {\n var maxHr = config.maxDate.getHours();\n var maxMinutes = config.maxDate.getMinutes();\n hours = Math.min(hours, maxHr);\n if (hours === maxHr)\n minutes = Math.min(maxMinutes, minutes);\n if (hours === maxHr && minutes === maxMinutes)\n seconds = config.maxDate.getSeconds();\n }\n return { hours: hours, minutes: minutes, seconds: seconds };\n}\n","export function toggleClass(elem, className, bool) {\n if (bool === true)\n return elem.classList.add(className);\n elem.classList.remove(className);\n}\nexport function createElement(tag, className, content) {\n var e = window.document.createElement(tag);\n className = className || \"\";\n content = content || \"\";\n e.className = className;\n if (content !== undefined)\n e.textContent = content;\n return e;\n}\nexport function clearNode(node) {\n while (node.firstChild)\n node.removeChild(node.firstChild);\n}\nexport function findParent(node, condition) {\n if (condition(node))\n return node;\n else if (node.parentNode)\n return findParent(node.parentNode, condition);\n return undefined;\n}\nexport function createNumberInput(inputClassName, opts) {\n var wrapper = createElement(\"div\", \"numInputWrapper\"), numInput = createElement(\"input\", \"numInput \" + inputClassName), arrowUp = createElement(\"span\", \"arrowUp\"), arrowDown = createElement(\"span\", \"arrowDown\");\n if (navigator.userAgent.indexOf(\"MSIE 9.0\") === -1) {\n numInput.type = \"number\";\n }\n else {\n numInput.type = \"text\";\n numInput.pattern = \"\\\\d*\";\n }\n if (opts !== undefined)\n for (var key in opts)\n numInput.setAttribute(key, opts[key]);\n wrapper.appendChild(numInput);\n wrapper.appendChild(arrowUp);\n wrapper.appendChild(arrowDown);\n return wrapper;\n}\nexport function getEventTarget(event) {\n try {\n if (typeof event.composedPath === \"function\") {\n var path = event.composedPath();\n return path[0];\n }\n return event.target;\n }\n catch (error) {\n return event.target;\n }\n}\n","import { int, pad } from \"../utils\";\nvar doNothing = function () { return undefined; };\nexport var monthToStr = function (monthNumber, shorthand, locale) { return locale.months[shorthand ? \"shorthand\" : \"longhand\"][monthNumber]; };\nexport var revFormat = {\n D: doNothing,\n F: function (dateObj, monthName, locale) {\n dateObj.setMonth(locale.months.longhand.indexOf(monthName));\n },\n G: function (dateObj, hour) {\n dateObj.setHours((dateObj.getHours() >= 12 ? 12 : 0) + parseFloat(hour));\n },\n H: function (dateObj, hour) {\n dateObj.setHours(parseFloat(hour));\n },\n J: function (dateObj, day) {\n dateObj.setDate(parseFloat(day));\n },\n K: function (dateObj, amPM, locale) {\n dateObj.setHours((dateObj.getHours() % 12) +\n 12 * int(new RegExp(locale.amPM[1], \"i\").test(amPM)));\n },\n M: function (dateObj, shortMonth, locale) {\n dateObj.setMonth(locale.months.shorthand.indexOf(shortMonth));\n },\n S: function (dateObj, seconds) {\n dateObj.setSeconds(parseFloat(seconds));\n },\n U: function (_, unixSeconds) { return new Date(parseFloat(unixSeconds) * 1000); },\n W: function (dateObj, weekNum, locale) {\n var weekNumber = parseInt(weekNum);\n var date = new Date(dateObj.getFullYear(), 0, 2 + (weekNumber - 1) * 7, 0, 0, 0, 0);\n date.setDate(date.getDate() - date.getDay() + locale.firstDayOfWeek);\n return date;\n },\n Y: function (dateObj, year) {\n dateObj.setFullYear(parseFloat(year));\n },\n Z: function (_, ISODate) { return new Date(ISODate); },\n d: function (dateObj, day) {\n dateObj.setDate(parseFloat(day));\n },\n h: function (dateObj, hour) {\n dateObj.setHours((dateObj.getHours() >= 12 ? 12 : 0) + parseFloat(hour));\n },\n i: function (dateObj, minutes) {\n dateObj.setMinutes(parseFloat(minutes));\n },\n j: function (dateObj, day) {\n dateObj.setDate(parseFloat(day));\n },\n l: doNothing,\n m: function (dateObj, month) {\n dateObj.setMonth(parseFloat(month) - 1);\n },\n n: function (dateObj, month) {\n dateObj.setMonth(parseFloat(month) - 1);\n },\n s: function (dateObj, seconds) {\n dateObj.setSeconds(parseFloat(seconds));\n },\n u: function (_, unixMillSeconds) {\n return new Date(parseFloat(unixMillSeconds));\n },\n w: doNothing,\n y: function (dateObj, year) {\n dateObj.setFullYear(2000 + parseFloat(year));\n },\n};\nexport var tokenRegex = {\n D: \"\",\n F: \"\",\n G: \"(\\\\d\\\\d|\\\\d)\",\n H: \"(\\\\d\\\\d|\\\\d)\",\n J: \"(\\\\d\\\\d|\\\\d)\\\\w+\",\n K: \"\",\n M: \"\",\n S: \"(\\\\d\\\\d|\\\\d)\",\n U: \"(.+)\",\n W: \"(\\\\d\\\\d|\\\\d)\",\n Y: \"(\\\\d{4})\",\n Z: \"(.+)\",\n d: \"(\\\\d\\\\d|\\\\d)\",\n h: \"(\\\\d\\\\d|\\\\d)\",\n i: \"(\\\\d\\\\d|\\\\d)\",\n j: \"(\\\\d\\\\d|\\\\d)\",\n l: \"\",\n m: \"(\\\\d\\\\d|\\\\d)\",\n n: \"(\\\\d\\\\d|\\\\d)\",\n s: \"(\\\\d\\\\d|\\\\d)\",\n u: \"(.+)\",\n w: \"(\\\\d\\\\d|\\\\d)\",\n y: \"(\\\\d{2})\",\n};\nexport var formats = {\n Z: function (date) { return date.toISOString(); },\n D: function (date, locale, options) {\n return locale.weekdays.shorthand[formats.w(date, locale, options)];\n },\n F: function (date, locale, options) {\n return monthToStr(formats.n(date, locale, options) - 1, false, locale);\n },\n G: function (date, locale, options) {\n return pad(formats.h(date, locale, options));\n },\n H: function (date) { return pad(date.getHours()); },\n J: function (date, locale) {\n return locale.ordinal !== undefined\n ? date.getDate() + locale.ordinal(date.getDate())\n : date.getDate();\n },\n K: function (date, locale) { return locale.amPM[int(date.getHours() > 11)]; },\n M: function (date, locale) {\n return monthToStr(date.getMonth(), true, locale);\n },\n S: function (date) { return pad(date.getSeconds()); },\n U: function (date) { return date.getTime() / 1000; },\n W: function (date, _, options) {\n return options.getWeek(date);\n },\n Y: function (date) { return pad(date.getFullYear(), 4); },\n d: function (date) { return pad(date.getDate()); },\n h: function (date) { return (date.getHours() % 12 ? date.getHours() % 12 : 12); },\n i: function (date) { return pad(date.getMinutes()); },\n j: function (date) { return date.getDate(); },\n l: function (date, locale) {\n return locale.weekdays.longhand[date.getDay()];\n },\n m: function (date) { return pad(date.getMonth() + 1); },\n n: function (date) { return date.getMonth() + 1; },\n s: function (date) { return date.getSeconds(); },\n u: function (date) { return date.getTime(); },\n w: function (date) { return date.getDay(); },\n y: function (date) { return String(date.getFullYear()).substring(2); },\n};\n","export var pad = function (number, length) {\n if (length === void 0) { length = 2; }\n return (\"000\" + number).slice(length * -1);\n};\nexport var int = function (bool) { return (bool === true ? 1 : 0); };\nexport function debounce(fn, wait) {\n var t;\n return function () {\n var _this = this;\n var args = arguments;\n clearTimeout(t);\n t = setTimeout(function () { return fn.apply(_this, args); }, wait);\n };\n}\nexport var arrayify = function (obj) {\n return obj instanceof Array ? obj : [obj];\n};\n","\"use strict\";\nif (typeof Object.assign !== \"function\") {\n Object.assign = function (target) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n if (!target) {\n throw TypeError(\"Cannot convert undefined or null to object\");\n }\n var _loop_1 = function (source) {\n if (source) {\n Object.keys(source).forEach(function (key) { return (target[key] = source[key]); });\n }\n };\n for (var _a = 0, args_1 = args; _a < args_1.length; _a++) {\n var source = args_1[_a];\n _loop_1(source);\n }\n return target;\n };\n}\n","(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\n typeof define === 'function' && define.amd ? define(['exports'], factory) :\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ru = {}));\n}(this, (function (exports) { 'use strict';\n\n var fp = typeof window !== \"undefined\" && window.flatpickr !== undefined\n ? window.flatpickr\n : {\n l10ns: {},\n };\n var Russian = {\n weekdays: {\n shorthand: [\"Вс\", \"Пн\", \"Вт\", \"Ср\", \"Чт\", \"Пт\", \"Сб\"],\n longhand: [\n \"Воскресенье\",\n \"Понедельник\",\n \"Вторник\",\n \"Среда\",\n \"Четверг\",\n \"Пятница\",\n \"Суббота\",\n ],\n },\n months: {\n shorthand: [\n \"Янв\",\n \"Фев\",\n \"Март\",\n \"Апр\",\n \"Май\",\n \"Июнь\",\n \"Июль\",\n \"Авг\",\n \"Сен\",\n \"Окт\",\n \"Ноя\",\n \"Дек\",\n ],\n longhand: [\n \"Январь\",\n \"Февраль\",\n \"Март\",\n \"Апрель\",\n \"Май\",\n \"Июнь\",\n \"Июль\",\n \"Август\",\n \"Сентябрь\",\n \"Октябрь\",\n \"Ноябрь\",\n \"Декабрь\",\n ],\n },\n firstDayOfWeek: 1,\n ordinal: function () {\n return \"\";\n },\n rangeSeparator: \" — \",\n weekAbbreviation: \"Нед.\",\n scrollTitle: \"Прокрутите для увеличения\",\n toggleTitle: \"Нажмите для переключения\",\n amPM: [\"ДП\", \"ПП\"],\n yearAriaLabel: \"Год\",\n time_24hr: true,\n };\n fp.l10ns.ru = Russian;\n var ru = fp.l10ns;\n\n exports.Russian = Russian;\n exports.default = ru;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n})));\n","/*** IMPORTS FROM imports-loader ***/\n\n(function() {\n/*! WOW - v1.1.3 - 2016-05-06\r\n* Copyright (c) 2016 Matthieu Aussaguel;*/\n(function () {\n var a,\n b,\n c,\n d,\n e,\n f = function (a, b) {\n return function () {\n return a.apply(b, arguments);\n };\n },\n g = [].indexOf || function (a) {\n for (var b = 0, c = this.length; c > b; b++) if (b in this && this[b] === a) return b;\n\n return -1;\n };\n\n b = function () {\n function a() {}\n\n return a.prototype.extend = function (a, b) {\n var c, d;\n\n for (c in b) d = b[c], null == a[c] && (a[c] = d);\n\n return a;\n }, a.prototype.isMobile = function (a) {\n return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a);\n }, a.prototype.createEvent = function (a, b, c, d) {\n var e;\n return null == b && (b = !1), null == c && (c = !1), null == d && (d = null), null != document.createEvent ? (e = document.createEvent(\"CustomEvent\"), e.initCustomEvent(a, b, c, d)) : null != document.createEventObject ? (e = document.createEventObject(), e.eventType = a) : e.eventName = a, e;\n }, a.prototype.emitEvent = function (a, b) {\n return null != a.dispatchEvent ? a.dispatchEvent(b) : b in (null != a) ? a[b]() : \"on\" + b in (null != a) ? a[\"on\" + b]() : void 0;\n }, a.prototype.addEvent = function (a, b, c) {\n return null != a.addEventListener ? a.addEventListener(b, c, !1) : null != a.attachEvent ? a.attachEvent(\"on\" + b, c) : a[b] = c;\n }, a.prototype.removeEvent = function (a, b, c) {\n return null != a.removeEventListener ? a.removeEventListener(b, c, !1) : null != a.detachEvent ? a.detachEvent(\"on\" + b, c) : delete a[b];\n }, a.prototype.innerHeight = function () {\n return \"innerHeight\" in window ? window.innerHeight : document.documentElement.clientHeight;\n }, a;\n }(), c = this.WeakMap || this.MozWeakMap || (c = function () {\n function a() {\n this.keys = [], this.values = [];\n }\n\n return a.prototype.get = function (a) {\n var b, c, d, e, f;\n\n for (f = this.keys, b = d = 0, e = f.length; e > d; b = ++d) if (c = f[b], c === a) return this.values[b];\n }, a.prototype.set = function (a, b) {\n var c, d, e, f, g;\n\n for (g = this.keys, c = e = 0, f = g.length; f > e; c = ++e) if (d = g[c], d === a) return void (this.values[c] = b);\n\n return this.keys.push(a), this.values.push(b);\n }, a;\n }()), a = this.MutationObserver || this.WebkitMutationObserver || this.MozMutationObserver || (a = function () {\n function a() {\n \"undefined\" != typeof console && null !== console && console.warn(\"MutationObserver is not supported by your browser.\"), \"undefined\" != typeof console && null !== console && console.warn(\"WOW.js cannot detect dom mutations, please call .sync() after loading new content.\");\n }\n\n return a.notSupported = !0, a.prototype.observe = function () {}, a;\n }()), d = this.getComputedStyle || function (a, b) {\n return this.getPropertyValue = function (b) {\n var c;\n return \"float\" === b && (b = \"styleFloat\"), e.test(b) && b.replace(e, function (a, b) {\n return b.toUpperCase();\n }), (null != (c = a.currentStyle) ? c[b] : void 0) || null;\n }, this;\n }, e = /(\\-([a-z]){1})/g, this.WOW = function () {\n function e(a) {\n null == a && (a = {}), this.scrollCallback = f(this.scrollCallback, this), this.scrollHandler = f(this.scrollHandler, this), this.resetAnimation = f(this.resetAnimation, this), this.start = f(this.start, this), this.scrolled = !0, this.config = this.util().extend(a, this.defaults), null != a.scrollContainer && (this.config.scrollContainer = document.querySelector(a.scrollContainer)), this.animationNameCache = new c(), this.wowEvent = this.util().createEvent(this.config.boxClass);\n }\n\n return e.prototype.defaults = {\n boxClass: \"wow\",\n animateClass: \"animated\",\n offset: 0,\n mobile: !0,\n live: !0,\n callback: null,\n scrollContainer: null\n }, e.prototype.init = function () {\n var a;\n return this.element = window.document.documentElement, \"interactive\" === (a = document.readyState) || \"complete\" === a ? this.start() : this.util().addEvent(document, \"DOMContentLoaded\", this.start), this.finished = [];\n }, e.prototype.start = function () {\n var b, c, d, e;\n if (this.stopped = !1, this.boxes = function () {\n var a, c, d, e;\n\n for (d = this.element.querySelectorAll(\".\" + this.config.boxClass), e = [], a = 0, c = d.length; c > a; a++) b = d[a], e.push(b);\n\n return e;\n }.call(this), this.all = function () {\n var a, c, d, e;\n\n for (d = this.boxes, e = [], a = 0, c = d.length; c > a; a++) b = d[a], e.push(b);\n\n return e;\n }.call(this), this.boxes.length) if (this.disabled()) this.resetStyle();else for (e = this.boxes, c = 0, d = e.length; d > c; c++) b = e[c], this.applyStyle(b, !0);\n return this.disabled() || (this.util().addEvent(this.config.scrollContainer || window, \"scroll\", this.scrollHandler), this.util().addEvent(window, \"resize\", this.scrollHandler), this.interval = setInterval(this.scrollCallback, 50)), this.config.live ? new a(function (a) {\n return function (b) {\n var c, d, e, f, g;\n\n for (g = [], c = 0, d = b.length; d > c; c++) f = b[c], g.push(function () {\n var a, b, c, d;\n\n for (c = f.addedNodes || [], d = [], a = 0, b = c.length; b > a; a++) e = c[a], d.push(this.doSync(e));\n\n return d;\n }.call(a));\n\n return g;\n };\n }(this)).observe(document.body, {\n childList: !0,\n subtree: !0\n }) : void 0;\n }, e.prototype.stop = function () {\n return this.stopped = !0, this.util().removeEvent(this.config.scrollContainer || window, \"scroll\", this.scrollHandler), this.util().removeEvent(window, \"resize\", this.scrollHandler), null != this.interval ? clearInterval(this.interval) : void 0;\n }, e.prototype.sync = function (b) {\n return a.notSupported ? this.doSync(this.element) : void 0;\n }, e.prototype.doSync = function (a) {\n var b, c, d, e, f;\n\n if (null == a && (a = this.element), 1 === a.nodeType) {\n for (a = a.parentNode || a, e = a.querySelectorAll(\".\" + this.config.boxClass), f = [], c = 0, d = e.length; d > c; c++) b = e[c], g.call(this.all, b) < 0 ? (this.boxes.push(b), this.all.push(b), this.stopped || this.disabled() ? this.resetStyle() : this.applyStyle(b, !0), f.push(this.scrolled = !0)) : f.push(void 0);\n\n return f;\n }\n }, e.prototype.show = function (a) {\n return this.applyStyle(a), a.className = a.className + \" \" + this.config.animateClass, null != this.config.callback && this.config.callback(a), this.util().emitEvent(a, this.wowEvent), this.util().addEvent(a, \"animationend\", this.resetAnimation), this.util().addEvent(a, \"oanimationend\", this.resetAnimation), this.util().addEvent(a, \"webkitAnimationEnd\", this.resetAnimation), this.util().addEvent(a, \"MSAnimationEnd\", this.resetAnimation), a;\n }, e.prototype.applyStyle = function (a, b) {\n var c, d, e;\n return d = a.getAttribute(\"data-wow-duration\"), c = a.getAttribute(\"data-wow-delay\"), e = a.getAttribute(\"data-wow-iteration\"), this.animate(function (f) {\n return function () {\n return f.customStyle(a, b, d, c, e);\n };\n }(this));\n }, e.prototype.animate = function () {\n return \"requestAnimationFrame\" in window ? function (a) {\n return window.requestAnimationFrame(a);\n } : function (a) {\n return a();\n };\n }(), e.prototype.resetStyle = function () {\n var a, b, c, d, e;\n\n for (d = this.boxes, e = [], b = 0, c = d.length; c > b; b++) a = d[b], e.push(a.style.visibility = \"visible\");\n\n return e;\n }, e.prototype.resetAnimation = function (a) {\n var b;\n return a.type.toLowerCase().indexOf(\"animationend\") >= 0 ? (b = a.target || a.srcElement, b.className = b.className.replace(this.config.animateClass, \"\").trim()) : void 0;\n }, e.prototype.customStyle = function (a, b, c, d, e) {\n return b && this.cacheAnimationName(a), a.style.visibility = b ? \"hidden\" : \"visible\", c && this.vendorSet(a.style, {\n animationDuration: c\n }), d && this.vendorSet(a.style, {\n animationDelay: d\n }), e && this.vendorSet(a.style, {\n animationIterationCount: e\n }), this.vendorSet(a.style, {\n animationName: b ? \"none\" : this.cachedAnimationName(a)\n }), a;\n }, e.prototype.vendors = [\"moz\", \"webkit\"], e.prototype.vendorSet = function (a, b) {\n var c, d, e, f;\n d = [];\n\n for (c in b) e = b[c], a[\"\" + c] = e, d.push(function () {\n var b, d, g, h;\n\n for (g = this.vendors, h = [], b = 0, d = g.length; d > b; b++) f = g[b], h.push(a[\"\" + f + c.charAt(0).toUpperCase() + c.substr(1)] = e);\n\n return h;\n }.call(this));\n\n return d;\n }, e.prototype.vendorCSS = function (a, b) {\n var c, e, f, g, h, i;\n\n for (h = d(a), g = h.getPropertyCSSValue(b), f = this.vendors, c = 0, e = f.length; e > c; c++) i = f[c], g = g || h.getPropertyCSSValue(\"-\" + i + \"-\" + b);\n\n return g;\n }, e.prototype.animationName = function (a) {\n var b;\n\n try {\n b = this.vendorCSS(a, \"animation-name\").cssText;\n } catch (c) {\n b = d(a).getPropertyValue(\"animation-name\");\n }\n\n return \"none\" === b ? \"\" : b;\n }, e.prototype.cacheAnimationName = function (a) {\n return this.animationNameCache.set(a, this.animationName(a));\n }, e.prototype.cachedAnimationName = function (a) {\n return this.animationNameCache.get(a);\n }, e.prototype.scrollHandler = function () {\n return this.scrolled = !0;\n }, e.prototype.scrollCallback = function () {\n var a;\n return !this.scrolled || (this.scrolled = !1, this.boxes = function () {\n var b, c, d, e;\n\n for (d = this.boxes, e = [], b = 0, c = d.length; c > b; b++) a = d[b], a && (this.isVisible(a) ? this.show(a) : e.push(a));\n\n return e;\n }.call(this), this.boxes.length || this.config.live) ? void 0 : this.stop();\n }, e.prototype.offsetTop = function (a) {\n for (var b; void 0 === a.offsetTop;) a = a.parentNode;\n\n for (b = a.offsetTop; a = a.offsetParent;) b += a.offsetTop;\n\n return b;\n }, e.prototype.isVisible = function (a) {\n var b, c, d, e, f;\n return c = a.getAttribute(\"data-wow-offset\") || this.config.offset, f = this.config.scrollContainer && this.config.scrollContainer.scrollTop || window.pageYOffset, e = f + Math.min(this.element.clientHeight, this.util().innerHeight()) - c, d = this.offsetTop(a), b = d + a.clientHeight, e >= d && b >= f;\n }, e.prototype.util = function () {\n return null != this._util ? this._util : this._util = new b();\n }, e.prototype.disabled = function () {\n return !this.config.mobile && this.util().isMobile(navigator.userAgent);\n }, e;\n }();\n}).call(this);\n}.call(window));\n","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","/**!\n * AngularJS file upload/drop directive and service with progress and abort\n * FileAPI Flash shim for old browsers not supporting FormData\n * @author Danial \n * @version 6.1.0\n */\n\n(function () {\n /** @namespace FileAPI.noContentTimeout */\n\n function patchXHR(fnName, newFn) {\n window.XMLHttpRequest.prototype[fnName] = newFn(window.XMLHttpRequest.prototype[fnName]);\n }\n\n function redefineProp(xhr, prop, fn) {\n try {\n Object.defineProperty(xhr, prop, {get: fn});\n } catch (e) {/*ignore*/\n }\n }\n\n if (!window.FileAPI) {\n window.FileAPI = {};\n }\n\n FileAPI.shouldLoad = (window.XMLHttpRequest && !window.FormData) || FileAPI.forceLoad;\n if (FileAPI.shouldLoad) {\n var initializeUploadListener = function (xhr) {\n if (!xhr.__listeners) {\n if (!xhr.upload) xhr.upload = {};\n xhr.__listeners = [];\n var origAddEventListener = xhr.upload.addEventListener;\n xhr.upload.addEventListener = function (t, fn) {\n xhr.__listeners[t] = fn;\n if (origAddEventListener) origAddEventListener.apply(this, arguments);\n };\n }\n };\n\n patchXHR('open', function (orig) {\n return function (m, url, b) {\n initializeUploadListener(this);\n this.__url = url;\n try {\n orig.apply(this, [m, url, b]);\n } catch (e) {\n if (e.message.indexOf('Access is denied') > -1) {\n this.__origError = e;\n orig.apply(this, [m, '_fix_for_ie_crossdomain__', b]);\n }\n }\n };\n });\n\n patchXHR('getResponseHeader', function (orig) {\n return function (h) {\n return this.__fileApiXHR && this.__fileApiXHR.getResponseHeader ? this.__fileApiXHR.getResponseHeader(h) : (orig == null ? null : orig.apply(this, [h]));\n };\n });\n\n patchXHR('getAllResponseHeaders', function (orig) {\n return function () {\n return this.__fileApiXHR && this.__fileApiXHR.getAllResponseHeaders ? this.__fileApiXHR.getAllResponseHeaders() : (orig == null ? null : orig.apply(this));\n };\n });\n\n patchXHR('abort', function (orig) {\n return function () {\n return this.__fileApiXHR && this.__fileApiXHR.abort ? this.__fileApiXHR.abort() : (orig == null ? null : orig.apply(this));\n };\n });\n\n patchXHR('setRequestHeader', function (orig) {\n return function (header, value) {\n if (header === '__setXHR_') {\n initializeUploadListener(this);\n var val = value(this);\n // fix for angular < 1.2.0\n if (val instanceof Function) {\n val(this);\n }\n } else {\n this.__requestHeaders = this.__requestHeaders || {};\n this.__requestHeaders[header] = value;\n orig.apply(this, arguments);\n }\n };\n });\n\n patchXHR('send', function (orig) {\n return function () {\n var xhr = this;\n if (arguments[0] && arguments[0].__isFileAPIShim) {\n var formData = arguments[0];\n var config = {\n url: xhr.__url,\n jsonp: false, //removes the callback form param\n cache: true, //removes the ?fileapiXXX in the url\n complete: function (err, fileApiXHR) {\n xhr.__completed = true;\n if (!err && xhr.__listeners.load)\n xhr.__listeners.load({\n type: 'load',\n loaded: xhr.__loaded,\n total: xhr.__total,\n target: xhr,\n lengthComputable: true\n });\n if (!err && xhr.__listeners.loadend)\n xhr.__listeners.loadend({\n type: 'loadend',\n loaded: xhr.__loaded,\n total: xhr.__total,\n target: xhr,\n lengthComputable: true\n });\n if (err === 'abort' && xhr.__listeners.abort)\n xhr.__listeners.abort({\n type: 'abort',\n loaded: xhr.__loaded,\n total: xhr.__total,\n target: xhr,\n lengthComputable: true\n });\n if (fileApiXHR.status !== undefined) redefineProp(xhr, 'status', function () {\n return (fileApiXHR.status === 0 && err && err !== 'abort') ? 500 : fileApiXHR.status;\n });\n if (fileApiXHR.statusText !== undefined) redefineProp(xhr, 'statusText', function () {\n return fileApiXHR.statusText;\n });\n redefineProp(xhr, 'readyState', function () {\n return 4;\n });\n if (fileApiXHR.response !== undefined) redefineProp(xhr, 'response', function () {\n return fileApiXHR.response;\n });\n var resp = fileApiXHR.responseText || (err && fileApiXHR.status === 0 && err !== 'abort' ? err : undefined);\n redefineProp(xhr, 'responseText', function () {\n return resp;\n });\n redefineProp(xhr, 'response', function () {\n return resp;\n });\n if (err) redefineProp(xhr, 'err', function () {\n return err;\n });\n xhr.__fileApiXHR = fileApiXHR;\n if (xhr.onreadystatechange) xhr.onreadystatechange();\n if (xhr.onload) xhr.onload();\n },\n progress: function (e) {\n e.target = xhr;\n if (xhr.__listeners.progress) xhr.__listeners.progress(e);\n xhr.__total = e.total;\n xhr.__loaded = e.loaded;\n if (e.total === e.loaded) {\n // fix flash issue that doesn't call complete if there is no response text from the server\n var _this = this;\n setTimeout(function () {\n if (!xhr.__completed) {\n xhr.getAllResponseHeaders = function () {\n };\n _this.complete(null, {status: 204, statusText: 'No Content'});\n }\n }, FileAPI.noContentTimeout || 10000);\n }\n },\n headers: xhr.__requestHeaders\n };\n config.data = {};\n config.files = {};\n for (var i = 0; i < formData.data.length; i++) {\n var item = formData.data[i];\n if (item.val != null && item.val.name != null && item.val.size != null && item.val.type != null) {\n config.files[item.key] = item.val;\n } else {\n config.data[item.key] = item.val;\n }\n }\n\n setTimeout(function () {\n if (!FileAPI.hasFlash) {\n throw 'Adode Flash Player need to be installed. To check ahead use \"FileAPI.hasFlash\"';\n }\n xhr.__fileApiXHR = FileAPI.upload(config);\n }, 1);\n } else {\n if (this.__origError) {\n throw this.__origError;\n }\n orig.apply(xhr, arguments);\n }\n };\n });\n window.XMLHttpRequest.__isFileAPIShim = true;\n window.FormData = FormData = function () {\n return {\n append: function (key, val, name) {\n if (val.__isFileAPIBlobShim) {\n val = val.data[0];\n }\n this.data.push({\n key: key,\n val: val,\n name: name\n });\n },\n data: [],\n __isFileAPIShim: true\n };\n };\n\n window.Blob = Blob = function (b) {\n return {\n data: b,\n __isFileAPIBlobShim: true\n };\n };\n }\n\n})();\n\n(function () {\n /** @namespace FileAPI.forceLoad */\n /** @namespace window.FileAPI.jsUrl */\n /** @namespace window.FileAPI.jsPath */\n\n function isInputTypeFile(elem) {\n return elem[0].tagName.toLowerCase() === 'input' && elem.attr('type') && elem.attr('type').toLowerCase() === 'file';\n }\n\n function hasFlash() {\n try {\n var fo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');\n if (fo) return true;\n } catch (e) {\n if (navigator.mimeTypes['application/x-shockwave-flash'] !== undefined) return true;\n }\n return false;\n }\n\n function getOffset(obj) {\n var left = 0, top = 0;\n\n if (window.jQuery) {\n return jQuery(obj).offset();\n }\n\n if (obj.offsetParent) {\n do {\n left += (obj.offsetLeft - obj.scrollLeft);\n top += (obj.offsetTop - obj.scrollTop);\n obj = obj.offsetParent;\n } while (obj);\n }\n return {\n left: left,\n top: top\n };\n }\n\n if (FileAPI.shouldLoad) {\n\n //load FileAPI\n if (FileAPI.forceLoad) {\n FileAPI.html5 = false;\n }\n\n if (!FileAPI.upload) {\n var jsUrl, basePath, script = document.createElement('script'), allScripts = document.getElementsByTagName('script'), i, index, src;\n if (window.FileAPI.jsUrl) {\n jsUrl = window.FileAPI.jsUrl;\n } else if (window.FileAPI.jsPath) {\n basePath = window.FileAPI.jsPath;\n } else {\n for (i = 0; i < allScripts.length; i++) {\n src = allScripts[i].src;\n index = src.search(/\\/ng\\-file\\-upload[\\-a-zA-z0-9\\.]*\\.js/);\n if (index > -1) {\n basePath = src.substring(0, index + 1);\n break;\n }\n }\n }\n\n if (FileAPI.staticPath == null) FileAPI.staticPath = basePath;\n script.setAttribute('src', jsUrl || basePath + 'FileAPI.min.js');\n document.getElementsByTagName('head')[0].appendChild(script);\n\n FileAPI.hasFlash = hasFlash();\n }\n\n FileAPI.ngfFixIE = function (elem, createFileElemFn, bindAttr, changeFn) {\n if (!hasFlash()) {\n throw 'Adode Flash Player need to be installed. To check ahead use \"FileAPI.hasFlash\"';\n }\n var makeFlashInput = function () {\n if (elem.attr('disabled')) {\n elem.$$ngfRefElem.removeClass('js-fileapi-wrapper');\n } else {\n var fileElem = elem.$$ngfRefElem;\n if (!fileElem) {\n fileElem = elem.$$ngfRefElem = createFileElemFn();\n fileElem.addClass('js-fileapi-wrapper');\n if (!isInputTypeFile(elem)) {\n//\t\t\t\t\t\tif (fileElem.parent().css('position') === '' || fileElem.parent().css('position') === 'static') {\n//\t\t\t\t\t\t\tfileElem.parent().css('position', 'relative');\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telem.parent()[0].insertBefore(fileElem[0], elem[0]);\n//\t\t\t\t\t\telem.css('overflow', 'hidden');\n }\n setTimeout(function () {\n fileElem.bind('mouseenter', makeFlashInput);\n }, 10);\n fileElem.bind('change', function (evt) {\n fileApiChangeFn.apply(this, [evt]);\n changeFn.apply(this, [evt]);\n//\t\t\t\t\t\talert('change' + evt);\n });\n } else {\n bindAttr(elem.$$ngfRefElem);\n }\n if (!isInputTypeFile(elem)) {\n fileElem.css('position', 'absolute')\n .css('top', getOffset(elem[0]).top + 'px').css('left', getOffset(elem[0]).left + 'px')\n .css('width', elem[0].offsetWidth + 'px').css('height', elem[0].offsetHeight + 'px')\n .css('filter', 'alpha(opacity=0)').css('display', elem.css('display'))\n .css('overflow', 'hidden').css('z-index', '900000')\n .css('visibility', 'visible');\n }\n }\n };\n\n elem.bind('mouseenter', makeFlashInput);\n\n var fileApiChangeFn = function (evt) {\n var files = FileAPI.getFiles(evt);\n //just a double check for #233\n for (var i = 0; i < files.length; i++) {\n if (files[i].size === undefined) files[i].size = 0;\n if (files[i].name === undefined) files[i].name = 'file';\n if (files[i].type === undefined) files[i].type = 'undefined';\n }\n if (!evt.target) {\n evt.target = {};\n }\n evt.target.files = files;\n // if evt.target.files is not writable use helper field\n if (evt.target.files !== files) {\n evt.__files_ = files;\n }\n (evt.__files_ || evt.target.files).item = function (i) {\n return (evt.__files_ || evt.target.files)[i] || null;\n };\n };\n };\n\n FileAPI.disableFileInput = function (elem, disable) {\n if (disable) {\n elem.removeClass('js-fileapi-wrapper');\n } else {\n elem.addClass('js-fileapi-wrapper');\n }\n };\n }\n})();\n\nif (!window.FileReader) {\n window.FileReader = function () {\n var _this = this, loadStarted = false;\n this.listeners = {};\n this.addEventListener = function (type, fn) {\n _this.listeners[type] = _this.listeners[type] || [];\n _this.listeners[type].push(fn);\n };\n this.removeEventListener = function (type, fn) {\n if (_this.listeners[type]) _this.listeners[type].splice(_this.listeners[type].indexOf(fn), 1);\n };\n this.dispatchEvent = function (evt) {\n var list = _this.listeners[evt.type];\n if (list) {\n for (var i = 0; i < list.length; i++) {\n list[i].call(_this, evt);\n }\n }\n };\n this.onabort = this.onerror = this.onload = this.onloadstart = this.onloadend = this.onprogress = null;\n\n var constructEvent = function (type, evt) {\n var e = {type: type, target: _this, loaded: evt.loaded, total: evt.total, error: evt.error};\n if (evt.result != null) e.target.result = evt.result;\n return e;\n };\n var listener = function (evt) {\n if (!loadStarted) {\n loadStarted = true;\n if (_this.onloadstart) _this.onloadstart(constructEvent('loadstart', evt));\n }\n var e;\n if (evt.type === 'load') {\n if (_this.onloadend) _this.onloadend(constructEvent('loadend', evt));\n e = constructEvent('load', evt);\n if (_this.onload) _this.onload(e);\n _this.dispatchEvent(e);\n } else if (evt.type === 'progress') {\n e = constructEvent('progress', evt);\n if (_this.onprogress) _this.onprogress(e);\n _this.dispatchEvent(e);\n } else {\n e = constructEvent('error', evt);\n if (_this.onerror) _this.onerror(e);\n _this.dispatchEvent(e);\n }\n };\n this.readAsArrayBuffer = function (file) {\n FileAPI.readAsBinaryString(file, listener);\n };\n this.readAsBinaryString = function (file) {\n FileAPI.readAsBinaryString(file, listener);\n };\n this.readAsDataURL = function (file) {\n FileAPI.readAsDataURL(file, listener);\n };\n this.readAsText = function (file) {\n FileAPI.readAsText(file, listener);\n };\n };\n}\n\n/**!\n * AngularJS file upload/drop directive and service with progress and abort\n * @author Danial \n * @version 6.1.0\n */\n\nif (window.XMLHttpRequest && !(window.FileAPI && FileAPI.shouldLoad)) {\n window.XMLHttpRequest.prototype.setRequestHeader = (function (orig) {\n return function (header, value) {\n if (header === '__setXHR_') {\n var val = value(this);\n // fix for angular < 1.2.0\n if (val instanceof Function) {\n val(this);\n }\n } else {\n orig.apply(this, arguments);\n }\n };\n })(window.XMLHttpRequest.prototype.setRequestHeader);\n}\n\nvar ngFileUpload = angular.module('ngFileUpload', []);\n\nngFileUpload.version = '6.1.0';\nngFileUpload.defaults = {};\n\nngFileUpload.service('Upload', ['$http', '$q', '$timeout', function ($http, $q, $timeout) {\n function sendHttp(config) {\n config.method = config.method || 'POST';\n config.headers = config.headers || {};\n\n var deferred = $q.defer();\n var promise = deferred.promise;\n\n config.headers.__setXHR_ = function () {\n return function (xhr) {\n if (!xhr) return;\n config.__XHR = xhr;\n if (config.xhrFn) config.xhrFn(xhr);\n xhr.upload.addEventListener('progress', function (e) {\n e.config = config;\n if (deferred.notify) {\n deferred.notify(e);\n } else if (promise.progressFunc) {\n $timeout(function () {\n promise.progressFunc(e);\n });\n }\n }, false);\n //fix for firefox not firing upload progress end, also IE8-9\n xhr.upload.addEventListener('load', function (e) {\n if (e.lengthComputable) {\n e.config = config;\n if (deferred.notify) {\n deferred.notify(e);\n } else if (promise.progressFunc) {\n $timeout(function () {\n promise.progressFunc(e);\n });\n }\n }\n }, false);\n };\n };\n\n $http(config).then(function (r) {\n deferred.resolve(r);\n }, function (e) {\n deferred.reject(e);\n }, function (n) {\n deferred.notify(n);\n });\n\n promise.success = function (fn) {\n promise.then(function (response) {\n fn(response.data, response.status, response.headers, config);\n });\n return promise;\n };\n\n promise.error = function (fn) {\n promise.then(null, function (response) {\n fn(response.data, response.status, response.headers, config);\n });\n return promise;\n };\n\n promise.progress = function (fn) {\n promise.progressFunc = fn;\n promise.then(null, null, function (update) {\n fn(update);\n });\n return promise;\n };\n promise.abort = function () {\n if (config.__XHR) {\n $timeout(function () {\n config.__XHR.abort();\n });\n }\n return promise;\n };\n promise.xhr = function (fn) {\n config.xhrFn = (function (origXhrFn) {\n return function () {\n if (origXhrFn) origXhrFn.apply(promise, arguments);\n fn.apply(promise, arguments);\n };\n })(config.xhrFn);\n return promise;\n };\n\n return promise;\n }\n\n this.upload = function (config) {\n function addFieldToFormData(formData, val, key) {\n if (val !== undefined) {\n if (angular.isDate(val)) {\n val = val.toISOString();\n }\n if (angular.isString(val)) {\n formData.append(key, val);\n } else if (config.sendFieldsAs === 'form') {\n if (angular.isObject(val)) {\n for (var k in val) {\n if (val.hasOwnProperty(k)) {\n addFieldToFormData(formData, val[k], key + '[' + k + ']');\n }\n }\n } else {\n formData.append(key, val);\n }\n } else {\n val = angular.isString(val) ? val : JSON.stringify(val);\n if (config.sendFieldsAs === 'json-blob') {\n formData.append(key, new Blob([val], {type: 'application/json'}));\n } else {\n formData.append(key, val);\n }\n }\n }\n }\n\n config.headers = config.headers || {};\n config.headers['Content-Type'] = undefined;\n config.transformRequest = config.transformRequest ?\n (angular.isArray(config.transformRequest) ?\n config.transformRequest : [config.transformRequest]) : [];\n config.transformRequest.push(function (data) {\n var formData = new FormData();\n var allFields = {};\n var key;\n for (key in config.fields) {\n if (config.fields.hasOwnProperty(key)) {\n allFields[key] = config.fields[key];\n }\n }\n if (data) allFields.data = data;\n for (key in allFields) {\n if (allFields.hasOwnProperty(key)) {\n var val = allFields[key];\n if (config.formDataAppender) {\n config.formDataAppender(formData, key, val);\n } else {\n addFieldToFormData(formData, val, key);\n }\n }\n }\n\n if (config.file != null) {\n var fileFormName = config.fileFormDataName || 'file';\n\n if (angular.isArray(config.file)) {\n var isFileFormNameString = angular.isString(fileFormName);\n for (var i = 0; i < config.file.length; i++) {\n formData.append(isFileFormNameString ? fileFormName : fileFormName[i], config.file[i],\n (config.fileName && config.fileName[i]) || config.file[i].name);\n }\n } else {\n formData.append(fileFormName, config.file, config.fileName || config.file.name);\n }\n }\n return formData;\n });\n\n return sendHttp(config);\n };\n\n this.http = function (config) {\n config.transformRequest = config.transformRequest || function (data) {\n if ((window.ArrayBuffer && data instanceof window.ArrayBuffer) || data instanceof Blob) {\n return data;\n }\n return $http.defaults.transformRequest[0](arguments);\n };\n return sendHttp(config);\n };\n\n this.dataUrl = function (file, callback, disallowObjectUrl) {\n if (window.FileReader && file &&\n (!window.FileAPI || navigator.userAgent.indexOf('MSIE 8') === -1 || file.size < 20000) &&\n (!window.FileAPI || navigator.userAgent.indexOf('MSIE 9') === -1 || file.size < 4000000)) {\n $timeout(function () {\n //prefer URL.createObjectURL for handling refrences to files of all sizes\n //since it doesn´t build a large string in memory\n var URL = window.URL || window.webkitURL;\n if (URL && URL.createObjectURL && !disallowObjectUrl) {\n callback(URL.createObjectURL(file));\n } else {\n var fileReader = new FileReader();\n fileReader.readAsDataURL(file);\n fileReader.onload = function (e) {\n $timeout(function () {\n callback(e.target.result);\n });\n };\n }\n });\n } else {\n callback(null);\n }\n };\n\n this.setDefaults = function(defaults) {\n ngFileUpload.defaults = defaults || {};\n };\n}\n\n]);\n\n(function () {\n ngFileUpload.getAttrWithDefaults = function(attr, name) {\n return attr[name] != null ? attr[name] :\n (ngFileUpload.defaults[name] == null ?\n ngFileUpload.defaults[name] : ngFileUpload.defaults[name].toString());\n };\n\n var getAttr = ngFileUpload.getAttrWithDefaults;\n\n ngFileUpload.directive('ngfSelect', ['$parse', '$timeout', '$compile',\n function ($parse, $timeout, $compile) {\n return {\n restrict: 'AEC',\n require: '?ngModel',\n link: function (scope, elem, attr, ngModel) {\n linkFileSelect(scope, elem, attr, ngModel, $parse, $timeout, $compile);\n }\n };\n }]);\n\n function linkFileSelect(scope, elem, attr, ngModel, $parse, $timeout, $compile) {\n /** @namespace attr.ngfSelect */\n /** @namespace attr.ngfChange */\n /** @namespace attr.ngModel */\n /** @namespace attr.ngModelRejected */\n /** @namespace attr.ngfModel */\n /** @namespace attr.ngfMultiple */\n /** @namespace attr.ngfCapture */\n /** @namespace attr.ngfAccept */\n /** @namespace attr.ngfValidate */\n /** @namespace attr.ngfMaxSize */\n /** @namespace attr.ngfMinSize */\n /** @namespace attr.ngfResetOnClick */\n /** @namespace attr.ngfResetModelOnClick */\n /** @namespace attr.ngfKeep */\n /** @namespace attr.ngfKeepDistinct */\n\n if (elem.attr('__ngf_gen__')) {\n return;\n }\n\n scope.$on('$destroy', function () {\n if (elem.$$ngfRefElem) elem.$$ngfRefElem.remove();\n });\n\n var disabled = false;\n if (getAttr(attr, 'ngfSelect').search(/\\W+\\$files\\W+/) === -1) {\n scope.$watch(getAttr(attr, 'ngfSelect'), function (val) {\n disabled = val === false;\n });\n }\n function isInputTypeFile() {\n return elem[0].tagName.toLowerCase() === 'input' && attr.type && attr.type.toLowerCase() === 'file';\n }\n\n var isUpdating = false;\n\n function changeFn(evt) {\n if (!isUpdating) {\n isUpdating = true;\n try {\n var fileList = evt.__files_ || (evt.target && evt.target.files);\n var files = [], rejFiles = [];\n\n for (var i = 0; i < fileList.length; i++) {\n var file = fileList.item(i);\n if (validate(scope, $parse, attr, file, evt)) {\n files.push(file);\n } else {\n rejFiles.push(file);\n }\n }\n updateModel($parse, $timeout, scope, ngModel, attr,\n getAttr(attr, 'ngfChange') || getAttr(attr, 'ngfSelect'), files, rejFiles, evt);\n if (files.length === 0) evt.target.value = files;\n// if (evt.target && evt.target.getAttribute('__ngf_gen__')) {\n// angular.element(evt.target).remove();\n// }\n } finally {\n isUpdating = false;\n }\n }\n }\n\n function bindAttrToFileInput(fileElem) {\n if (getAttr(attr, 'ngfMultiple')) fileElem.attr('multiple', $parse(getAttr(attr, 'ngfMultiple'))(scope));\n if (getAttr(attr, 'ngfCapture')) fileElem.attr('capture', $parse(getAttr(attr, 'ngfCapture'))(scope));\n if (getAttr(attr, 'accept')) fileElem.attr('accept', getAttr(attr, 'accept'));\n for (var i = 0; i < elem[0].attributes.length; i++) {\n var attribute = elem[0].attributes[i];\n if ((isInputTypeFile() && attribute.name !== 'type') ||\n (attribute.name !== 'type' && attribute.name !== 'class' &&\n attribute.name !== 'id' && attribute.name !== 'style')) {\n if (attribute.value == null || attribute.value === '') {\n if (attribute.name === 'required') attribute.value = 'required';\n if (attribute.name === 'multiple') attribute.value = 'multiple';\n }\n fileElem.attr(attribute.name, attribute.value);\n }\n }\n }\n\n function createFileInput(evt, resetOnClick) {\n if (!resetOnClick && (evt || isInputTypeFile())) return elem.$$ngfRefElem || elem;\n if (elem.$$ngfProgramClick) return elem;\n\n var fileElem = angular.element('');\n bindAttrToFileInput(fileElem);\n\n if (isInputTypeFile()) {\n elem.replaceWith(fileElem);\n elem = fileElem;\n fileElem.attr('__ngf_gen__', true);\n $compile(elem)(scope);\n } else {\n fileElem.css('visibility', 'hidden').css('position', 'absolute').css('overflow', 'hidden')\n .css('width', '0px').css('height', '0px').css('border', 'none')\n .css('margin', '0px').css('padding', '0px').attr('tabindex', '-1');\n if (elem.$$ngfRefElem) {\n elem.$$ngfRefElem.remove();\n }\n elem.$$ngfRefElem = fileElem;\n document.body.appendChild(fileElem[0]);\n }\n\n return fileElem;\n }\n\n function resetModel(evt) {\n updateModel($parse, $timeout, scope, ngModel, attr,\n getAttr(attr, 'ngfChange') || getAttr(attr, 'ngfSelect'), [], [], evt, true);\n }\n\n var initialTouchStartY = 0;\n function clickHandler(evt) {\n if (elem.attr('disabled') || disabled) return false;\n\n if (evt != null) {\n var touches = evt.changedTouches || (evt.originalEvent && evt.originalEvent.changedTouches);\n if (evt.type === 'touchstart') {\n initialTouchStartY = touches ? touches[0].clientY : 0;\n return true; // don't block event default\n } else {\n evt.stopPropagation();\n evt.preventDefault();\n\n // prevent scroll from triggering event\n if (evt.type === 'touchend') {\n var currentLocation = touches ? touches[0].clientY : 0;\n if (Math.abs(currentLocation - initialTouchStartY) > 20) return false;\n }\n }\n }\n\n var resetOnClick = $parse(getAttr(attr, 'ngfResetOnClick'))(scope) !== false;\n var fileElem = createFileInput(evt, resetOnClick);\n\n function clickAndAssign(evt) {\n if (evt && !elem.$$ngfProgramClick) {\n elem.$$ngfProgramClick = true;\n fileElem[0].click();\n $timeout(function() {\n delete elem.$$ngfProgramClick;\n }, 500);\n }\n if ((isInputTypeFile() || !evt) && resetOnClick) {\n elem.bind('click touchstart touchend', clickHandler);\n }\n }\n\n if (fileElem) {\n if (!evt || resetOnClick) fileElem.bind('change', changeFn);\n if (evt && resetOnClick && $parse(getAttr(attr, 'ngfResetModelOnClick'))(scope) !== false) {\n resetModel(evt);\n }\n\n // fix for android native browser < 4.4\n if (shouldClickLater(navigator.userAgent)) {\n setTimeout(function () {\n clickAndAssign(evt);\n }, 0);\n } else {\n clickAndAssign(evt);\n }\n }\n\n return false;\n }\n\n if (window.FileAPI && window.FileAPI.ngfFixIE) {\n window.FileAPI.ngfFixIE(elem, createFileInput, bindAttrToFileInput, changeFn);\n } else {\n clickHandler();\n //if (!isInputTypeFile()) {\n // elem.bind('click touchend', clickHandler);\n //}\n }\n }\n\n function shouldClickLater(ua) {\n // android below 4.4\n var m = ua.match(/Android[^\\d]*(\\d+)\\.(\\d+)/);\n if (m && m.length > 2) {\n var v = ngFileUpload.defaults.androidFixMinorVersion || 4;\n return parseInt(m[1]) < 4 || (parseInt(m[1]) === v && parseInt(m[2]) < v);\n }\n\n // safari on windows\n return ua.indexOf('Chrome') === -1 && /.*Windows.*Safari.*/.test(ua);\n }\n\n ngFileUpload.validate = function (scope, $parse, attr, file, evt) {\n if (file == null) {\n return false;\n }\n function globStringToRegex(str) {\n if (str.length > 2 && str[0] === '/' && str[str.length - 1] === '/') {\n return str.substring(1, str.length - 1);\n }\n var split = str.split(','), result = '';\n if (split.length > 1) {\n for (var i = 0; i < split.length; i++) {\n result += '(' + globStringToRegex(split[i]) + ')';\n if (i < split.length - 1) {\n result += '|';\n }\n }\n } else {\n if (str.indexOf('.') === 0) {\n str = '*' + str;\n }\n result = '^' + str.replace(new RegExp('[.\\\\\\\\+*?\\\\[\\\\^\\\\]$(){}=!<>|:\\\\' + '-]', 'g'), '\\\\$&') + '$';\n result = result.replace(/\\\\\\*/g, '.*').replace(/\\\\\\?/g, '.');\n }\n return result;\n }\n\n var custom = $parse(getAttr(attr, 'ngfValidate'))(scope, {$file: file, $event: evt});\n if (custom != null && (custom === false || custom.length > 0)) {\n file.$error = custom ? custom : 'validate';\n return false;\n }\n var accept = $parse(getAttr(attr, 'ngfAccept'))(scope, {$file: file, $event: evt});\n var fileSizeMax = $parse(getAttr(attr, 'ngfMaxSize'))(scope, {$file: file, $event: evt}) || 9007199254740991;\n var fileSizeMin = $parse(getAttr(attr, 'ngfMinSize'))(scope, {$file: file, $event: evt}) || -1;\n if (accept != null && angular.isString(accept)) {\n var regexp = new RegExp(globStringToRegex(accept), 'gi');\n accept = (file.type != null && regexp.test(file.type.toLowerCase())) ||\n (file.name != null && regexp.test(file.name.toLowerCase()));\n if (!accept) {\n file.$error = 'accept';\n return false;\n }\n } else {\n if (accept === false) {\n file.$error = 'accept';\n return false;\n }\n }\n if (file.size == null) return true;\n if (file.size > fileSizeMax) {\n file.$error = 'maxSize';\n return false;\n }\n if (file.size < fileSizeMin) {\n file.$error = 'minSize';\n return false;\n }\n return true;\n };\n\n ngFileUpload.updateModel = function ($parse, $timeout, scope, ngModel, attr, fileChange,\n files, rejFiles, evt, noDelay) {\n function update() {\n var keep = $parse(getAttr(attr, 'ngfKeep'))(scope);\n if (keep === true) {\n var prevFiles = (ngModel.$modelValue || []).slice(0);\n if (!files || !files.length) {\n files = prevFiles;\n } else if ($parse(getAttr(attr, 'ngfKeepDistinct'))(scope) === true) {\n var len = prevFiles.length;\n for (var i = 0; i < files.length; i++) {\n for (var j = 0; j < len; j++) {\n if (files[i].name === prevFiles[j].name) break;\n }\n if (j === len) {\n prevFiles.push(files[i]);\n }\n }\n files = prevFiles;\n } else {\n files = prevFiles.concat(files);\n }\n }\n var file = files && files.length ? files[0] : null;\n if (ngModel) {\n var singleModel = !$parse(getAttr(attr, 'ngfMultiple'))(scope) && ! getAttr(attr, 'multiple') && !keep;\n $parse(getAttr(attr, 'ngModel')).assign(scope, singleModel ? file : files);\n $timeout(function () {\n if (ngModel) {\n ngModel.$setViewValue(singleModel ? file : (files != null && files.length === 0 ? null : files));\n }\n });\n }\n var ngfModel = getAttr(attr, 'ngfModel');\n if (ngfModel) {\n $parse(ngfModel).assign(scope, files);\n }\n\n if (getAttr(attr, 'ngModelRejected')) {\n $parse(getAttr(attr, 'ngModelRejected')).assign(scope, rejFiles);\n }\n if (fileChange) {\n $parse(fileChange)(scope, {\n $files: files,\n $file: file,\n $rejectedFiles: rejFiles,\n $event: evt\n });\n }\n }\n\n if (noDelay) {\n update();\n } else {\n $timeout(function () {\n update();\n });\n }\n };\n\n var validate = ngFileUpload.validate;\n var updateModel = ngFileUpload.updateModel;\n\n})();\n\n(function () {\n var validate = ngFileUpload.validate;\n var updateModel = ngFileUpload.updateModel;\n var getAttr = ngFileUpload.getAttrWithDefaults;\n\n ngFileUpload.directive('ngfDrop', ['$parse', '$timeout', '$location', function ($parse, $timeout, $location) {\n return {\n restrict: 'AEC',\n require: '?ngModel',\n link: function (scope, elem, attr, ngModel) {\n linkDrop(scope, elem, attr, ngModel, $parse, $timeout, $location);\n }\n };\n }]);\n\n ngFileUpload.directive('ngfNoFileDrop', function () {\n return function (scope, elem) {\n if (dropAvailable()) elem.css('display', 'none');\n };\n });\n\n ngFileUpload.directive('ngfDropAvailable', ['$parse', '$timeout', function ($parse, $timeout) {\n return function (scope, elem, attr) {\n if (dropAvailable()) {\n var fn = $parse(getAttr(attr, 'ngfDropAvailable'));\n $timeout(function () {\n fn(scope);\n if (fn.assign) {\n fn.assign(scope, true);\n }\n });\n }\n };\n }]);\n\n function linkDrop(scope, elem, attr, ngModel, $parse, $timeout, $location) {\n var available = dropAvailable();\n if (getAttr(attr, 'dropAvailable')) {\n $timeout(function () {\n if (scope[getAttr(attr, 'dropAvailable')]) {\n scope[getAttr(attr, 'dropAvailable')].value = available;\n } else {\n scope[getAttr(attr, 'dropAvailable')] = available;\n }\n });\n }\n if (!available) {\n if ($parse(getAttr(attr, 'ngfHideOnDropNotAvailable'))(scope) === true) {\n elem.css('display', 'none');\n }\n return;\n }\n\n var disabled = false;\n if (getAttr(attr, 'ngfDrop').search(/\\W+\\$files\\W+/) === -1) {\n scope.$watch(getAttr(attr, 'ngfDrop'), function(val) {\n disabled = val === false;\n });\n }\n\n var leaveTimeout = null;\n var stopPropagation = $parse(getAttr(attr, 'ngfStopPropagation'));\n var dragOverDelay = 1;\n var actualDragOverClass;\n\n elem[0].addEventListener('dragover', function (evt) {\n if (elem.attr('disabled') || disabled) return;\n evt.preventDefault();\n if (stopPropagation(scope)) evt.stopPropagation();\n // handling dragover events from the Chrome download bar\n if (navigator.userAgent.indexOf('Chrome') > -1) {\n var b = evt.dataTransfer.effectAllowed;\n evt.dataTransfer.dropEffect = ('move' === b || 'linkMove' === b) ? 'move' : 'copy';\n }\n $timeout.cancel(leaveTimeout);\n if (!scope.actualDragOverClass) {\n actualDragOverClass = calculateDragOverClass(scope, attr, evt);\n }\n elem.addClass(actualDragOverClass);\n }, false);\n elem[0].addEventListener('dragenter', function (evt) {\n if (elem.attr('disabled') || disabled) return;\n evt.preventDefault();\n if (stopPropagation(scope)) evt.stopPropagation();\n }, false);\n elem[0].addEventListener('dragleave', function () {\n if (elem.attr('disabled') || disabled) return;\n leaveTimeout = $timeout(function () {\n elem.removeClass(actualDragOverClass);\n actualDragOverClass = null;\n }, dragOverDelay || 1);\n }, false);\n elem[0].addEventListener('drop', function (evt) {\n if (elem.attr('disabled') || disabled) return;\n evt.preventDefault();\n if (stopPropagation(scope)) evt.stopPropagation();\n elem.removeClass(actualDragOverClass);\n actualDragOverClass = null;\n extractFiles(evt, function (files, rejFiles) {\n updateModel($parse, $timeout, scope, ngModel, attr,\n getAttr(attr, 'ngfChange') || getAttr(attr, 'ngfDrop'), files, rejFiles, evt);\n }, $parse(getAttr(attr, 'ngfAllowDir'))(scope) !== false,\n getAttr(attr, 'multiple') || $parse(getAttr(attr, 'ngfMultiple'))(scope));\n }, false);\n elem[0].addEventListener('paste', function (evt) {\n if (elem.attr('disabled') || disabled) return;\n extractFiles(evt, function (files, rejFiles) {\n updateModel($parse, $timeout, scope, ngModel, attr,\n getAttr(attr, 'ngfChange') || getAttr(attr, 'ngfDrop'), files, rejFiles, evt);\n }, false, getAttr(attr, 'multiple') || $parse(getAttr(attr, 'ngfMultiple'))(scope));\n }, false);\n\n function calculateDragOverClass(scope, attr, evt) {\n var accepted = true;\n var items = evt.dataTransfer.items;\n if (items != null) {\n for (var i = 0; i < items.length && accepted; i++) {\n accepted = accepted &&\n (items[i].kind === 'file' || items[i].kind === '') &&\n validate(scope, $parse, attr, items[i], evt);\n }\n }\n var clazz = $parse(getAttr(attr, 'ngfDragOverClass'))(scope, {$event: evt});\n if (clazz) {\n if (clazz.delay) dragOverDelay = clazz.delay;\n if (clazz.accept) clazz = accepted ? clazz.accept : clazz.reject;\n }\n return clazz || getAttr(attr, 'ngfDragOverClass') || 'dragover';\n }\n\n function extractFiles(evt, callback, allowDir, multiple) {\n var files = [], rejFiles = [], processing = 0;\n\n function addFile(file) {\n if (validate(scope, $parse, attr, file, evt)) {\n files.push(file);\n } else {\n rejFiles.push(file);\n }\n }\n\n function traverseFileTree(files, entry, path) {\n if (entry != null) {\n if (entry.isDirectory) {\n var filePath = (path || '') + entry.name;\n addFile({name: entry.name, type: 'directory', path: filePath});\n var dirReader = entry.createReader();\n var entries = [];\n processing++;\n var readEntries = function () {\n dirReader.readEntries(function (results) {\n try {\n if (!results.length) {\n for (var i = 0; i < entries.length; i++) {\n traverseFileTree(files, entries[i], (path ? path : '') + entry.name + '/');\n }\n processing--;\n } else {\n entries = entries.concat(Array.prototype.slice.call(results || [], 0));\n readEntries();\n }\n } catch (e) {\n processing--;\n console.error(e);\n }\n }, function () {\n processing--;\n });\n };\n readEntries();\n } else {\n processing++;\n entry.file(function (file) {\n try {\n processing--;\n file.path = (path ? path : '') + file.name;\n addFile(file);\n } catch (e) {\n processing--;\n console.error(e);\n }\n }, function () {\n processing--;\n });\n }\n }\n }\n\n if (evt.type === 'paste') {\n var clipboard = evt.clipboardData || evt.originalEvent.clipboardData;\n if (clipboard && clipboard.items) {\n for (var k = 0; k < clipboard.items.length; k++) {\n if (clipboard.items[k].type.indexOf('image') !== -1) {\n addFile(clipboard.items[k].getAsFile());\n }\n }\n callback(files, rejFiles);\n }\n } else {\n var items = evt.dataTransfer.items;\n\n if (items && items.length > 0 && $location.protocol() !== 'file') {\n for (var i = 0; i < items.length; i++) {\n if (items[i].webkitGetAsEntry && items[i].webkitGetAsEntry() && items[i].webkitGetAsEntry().isDirectory) {\n var entry = items[i].webkitGetAsEntry();\n if (entry.isDirectory && !allowDir) {\n continue;\n }\n if (entry != null) {\n traverseFileTree(files, entry);\n }\n } else {\n var f = items[i].getAsFile();\n if (f != null) addFile(f);\n }\n if (!multiple && files.length > 0) break;\n }\n } else {\n var fileList = evt.dataTransfer.files;\n if (fileList != null) {\n for (var j = 0; j < fileList.length; j++) {\n addFile(fileList.item(j));\n if (!multiple && files.length > 0) {\n break;\n }\n }\n }\n }\n var delays = 0;\n (function waitForProcess(delay) {\n $timeout(function () {\n if (!processing) {\n if (!multiple && files.length > 1) {\n i = 0;\n while (files[i].type === 'directory') i++;\n files = [files[i]];\n }\n callback(files, rejFiles);\n } else {\n if (delays++ * 10 < 20 * 1000) {\n waitForProcess(10);\n }\n }\n }, delay || 0);\n })();\n }\n }\n }\n\n function dropAvailable() {\n var div = document.createElement('div');\n return ('draggable' in div) && ('ondrop' in div);\n }\n\n})();\n\n(function () {\n\n function fileToSrc(Upload, scope, $parse, attr, name, defaultName, callback) {\n if (defaultName) {\n callback($parse(defaultName)(scope));\n }\n scope.$watch(name, function (file) {\n if (!angular.isString(file)) {\n if (window.FileReader && ngFileUpload.validate(scope, $parse, attr, file, null)) {\n Upload.dataUrl(file, function (url) {\n if (callback) {\n callback(url);\n } else {\n file.dataUrl = url || $parse(defaultName)(scope);\n }\n }, $parse(attr.ngfNoObjectUrl)(scope));\n }\n } else {\n callback(file);\n }\n });\n }\n\n /** @namespace attr.ngfSrc */\n /** @namespace attr.ngfDefaultSrc */\n /** @namespace attr.ngfNoObjectUrl */\n ngFileUpload.directive('ngfSrc', ['$parse', 'Upload', function ($parse, Upload) {\n return {\n restrict: 'AE',\n link: function (scope, elem, attr) {\n fileToSrc(Upload, scope, $parse, attr, attr.ngfSrc, attr.ngfDefaultSrc, function (url) {\n elem.attr('src', url);\n });\n }\n };\n }]);\n\n /** @namespace attr.ngfBackground */\n /** @namespace attr.ngfDefaultBackground */\n /** @namespace attr.ngfNoObjectUrl */\n ngFileUpload.directive('ngfBackground', ['$parse', 'Upload', function ($parse, Upload) {\n return {\n restrict: 'AE',\n link: function (scope, elem, attr) {\n fileToSrc(Upload, scope, $parse, attr, attr.ngfBackground, attr.ngfDefaultBackground, function (url) {\n elem.css('background-image', 'url(' + url + ')');\n });\n }\n };\n }]);\n\n /** @namespace attr.ngfDataUrl */\n /** @namespace attr.ngfDefaultDataUrl */\n /** @namespace attr.ngfNoObjectUrl */\n ngFileUpload.directive('ngfDataUrl', ['$parse', 'Upload', function ($parse, Upload) {\n return {\n restrict: 'AE',\n link: function (scope, elem, attr) {\n\n fileToSrc(Upload, scope, $parse, attr, attr.ngfDataUrl, attr.ngfDefaultDataUrl);\n }\n };\n }]);\n})();\n","require('./dist/ng-file-upload-all');\nmodule.exports = 'ngFileUpload';","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \".\" + \"491079f8bc0bf3157d97\" + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"advantshop:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\t;\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"./Templates/Atom_Promo/dist/\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"commonTemplate\": 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n// no on chunks loaded\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\n}\n\nvar chunkLoadingGlobal = self[\"Atom_Promo_webpackChunkwebpack\"] = self[\"Atom_Promo_webpackChunkwebpack\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","import AppDependency from '../../../scripts/appDependency.js';\nimport '../styles/general.scss';\nimport '../styles/partials/toolbar-top.scss';\nimport '../styles/partials/menu-dropdown.scss';\nimport '../styles/partials/header.scss';\nimport '../styles/font-electro.css';\nimport '../styles/font-awesome.css';\nimport '../styles/owl.carousel.css';\nimport '../styles/partials/gallery.scss';\nimport '../styles/views/product.scss';\nimport '../scripts/_partials/product-view/styles/product-view.scss';\nimport '../styles/pushy.css';\nimport '../styles/animate.css';\nimport '../styles/partials/footer.scss';\nimport '../styles/partials/brands-carousel.scss';\nimport '../styles/common/links.scss';\nimport '../styles/common/social.scss';\nimport '../scripts/_partials/cart/styles/cart.scss';\nimport '../scripts/_common/modal/styles/modal.scss';\nimport '../scripts/_common/harmonica/styles/harmonica.scss';\nimport '../scripts/_partials/colors-viewer/styles/colors-viewer.scss';\nimport '../styles/partials/products-specials.scss';\nimport '../vendors/new.js';\nimport '../scripts/_partials/cart/cart.module.js';\nimport '../scripts/_partials/product-view/productView.module.js';\nimport '../scripts/checkout/checkout.module.js'; //import '../scripts/product/productQuickview.module.js';\n\nimport ProductCustom from '../scripts/productCustom/product.module.js';\nAppDependency.addItem(ProductCustom);\nimport '../scripts/product/product.module.js';\nimport subscribeModule from '../../../scripts/_partials/subscribe/subscribe.module.js';\nAppDependency.addItem(subscribeModule);"],"names":[],"sourceRoot":""}