function UjicResetTime(t){if(!t)return!1;var n=new Date,t=t.split(":");return t instanceof Array&&(n.setHours(n.getHours()+parseInt(t[0])),n.setMinutes(n.getMinutes()+parseInt(t[1])),n.setSeconds(n.getSeconds()+parseInt(t[2]))),n}!function(n){"use strict";var t,e,o=window.ujiCount1,i=o.uji_style,s=(o.uji_plugin,o.ujic_id),u=o.expire,r=o.timer,a=(o.exp_days,o.Years),c=o.Months,l=o.Weeks,p=o.Days,d=o.Hours,_=o.Minutes,j=o.Seconds,w=o.Year,g=o.Month,f=o.Week,h=o.Day,m=o.Hour,y=o.Minute,x=o.Second,b=o.ujic_txt_size,T=o.ujic_col_dw,C=o.ujic_col_up,M=o.ujic_col_txt,S=o.ujic_col_sw,D=o.ujic_col_lab,v=o.ujic_lab_sz,U=o.ujic_y,L=o.ujic_o,k=o.ujic_w,O=o.ujic_d,H=o.ujic_h,R=o.ujic_m,W=o.ujic_s,I=(o.ujic_thick,"true"==o.ujic_txt),Y=(o.ujic_ani,o.ujic_url?"http://"!==o.ujic_url.substr(0,7)&&"https://"!==o.ujic_url.substr(0,8)?"http://"+o.ujic_url:o.ujic_url:""),z=""!=Y,A=o.ujic_goof,E=(o.uji_center,o.uji_time),F=(o.uji_hide,o.ujic_resp),G="true"==o.ujic_rtl,N=new Date(""+u),u=UjicResetTime(r),r="";function Q(){var t=null,t=new Date(E);return t=new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds())}function X(t){n("<div />",{html:"<style>"+t+"</style>"}).appendTo("body")}r+="true"==U?"Y":"",r+="true"==L?"O":"",r+="true"==k?"W":"",r+="true"==O?"D":"",r+="true"==H?"H":"",r+="true"==R?"M":"",r+="true"==W?"S":"",n.countdown.regionalOptions.uji={labels:[""+a,""+c,""+l,""+p,""+d,""+_,""+j],labels1:[""+w,""+g,""+f,""+h,""+m,""+y,""+x],compactLabels:["A","L","S","Z"],format:r,layout:function(t,n){var e=t.split("");if("[object Array]"===!Object.prototype.toString.call(e))return!1;if("classic"!==n){n="ujiGetTemplate"+n;return"function"==typeof window[n]&&window[n](e)}for(var o='<span class="ujiCountdown"><span class="countdown_row">',i=0;i<e.length;i++){var s,u,r;e[i]&&(s=e[i].toString().toLowerCase()+"10",u=e[i].toString().toLowerCase()+"1",r=e[i].toString().toLowerCase()+"l",o+='<span class="countdown_section">                                    <span class="countdown_amount">{'+s+'}</span>                                    <span class="countdown_amount">{'+u+'}</span>                                    <span class="countdown_txt">{'+r+"}</span>                                </span>")}return o+="</span></span>"}(r,i),whichLabels:null,timeSeparator:":",isRTL:G},n.countdown.setDefaults(n.countdown.regionalOptions.uji),A&&"none"!==A&&(x=A.replace(/\s+/g,"+"),n("head").append('<link href="https://fonts.googleapis.com/css?family='+x+'" rel="stylesheet" type="text/css">')),void 0!==u&&u?(t=u,Q=!1):t=N,"classic"==i&&(n("#"+s).countdown({until:t,ujic_id:""+s,serverSync:Q,responsive:F,isRTL:G,alwaysExpire:z,expiryUrl:Y}),Y="#"+s+" .countdown_row > span:last-child {                                                        margin: 0;                                              }",X("#"+s+" .countdown_amount {                                                        background : -moz-linear-gradient(top,  "+C+" 50%, "+T+" 50%);                                                        background : linear-gradient(to bottom,  "+C+" 50%, "+T+" 50%);                                                        background : -ms-linear-gradient(top,  "+C+" 50%, "+T+' 50%);                                                        filter:      progid:DXImageTransform.Microsoft.gradient( startColorstr="'+C+'", endColorstr="'+T+'",GradientType=0 );                                                        font:  '+b+'px/1.5 "'+A+'",sans-serif;                                                        text-shadow: 1px 1px 1px '+S+";                                                        color: "+M+"; }"),e=n("#"+s+" .countdown_amount").outerWidth(),n("#"+s+" .countdown_amount").each(function(){n(this).outerWidth()>e&&(e=n(this).outerWidth())}),X("#"+s+" .countdown_amount {                                                    padding: 5px 0;                                                    width: "+(e=40<e?e+b/2:e)+"px;                                                   }"+(I?"#"+s+" .countdown_txt {                                                        font: "+v+'px "Open Sans", sans-serif;                                                        color: '+D+";                                                }":"#"+s+" .countdown_txt {                                                        display: none;                                                }")+Y)),"modern"==i&&(console.log("MODERN"),"function"==typeof ujiModern&&(console.log("MODERN-FCT"),ujiModern(t,o,Q,r)))}(jQuery);