HEX
Server: LiteSpeed
System: Linux premium283.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User: citaqlmd (746)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/citaqlmd/nt.lmskreators.com/wp-content/plugins/widgetkit-for-elementor/dist/js/countdown.js
!function(){var t=!1;window.JQClass=function(){},JQClass.classes={},JQClass.extend=function e(n){var i=this.prototype;t=!0;var a=new this;for(var s in t=!1,n)a[s]="function"==typeof n[s]&&"function"==typeof i[s]?function(t,e){return function(){var n=this._super;this._super=function(e){return i[t].apply(this,e)};var a=e.apply(this,arguments);return this._super=n,a}}(s,n[s]):n[s];function o(){!t&&this._init&&this._init.apply(this,arguments)}return o.prototype=a,o.prototype.constructor=o,o.extend=e,o}}(),function($){function camelCase(t){return t.replace(/-([a-z])/g,function(t,e){return e.toUpperCase()})}JQClass.classes.JQPlugin=JQClass.extend({name:"plugin",defaultOptions:{},regionalOptions:{},_getters:[],_getMarker:function(){return"is-"+this.name},_init:function(){$.extend(this.defaultOptions,this.regionalOptions&&this.regionalOptions[""]||{});var t=camelCase(this.name);$[t]=this,$.fn[t]=function(e){var n=Array.prototype.slice.call(arguments,1);return $[t]._isNotChained(e,n)?$[t][e].apply($[t],[this[0]].concat(n)):this.each(function(){if("string"==typeof e){if("_"===e[0]||!$[t][e])throw"Unknown method: "+e;$[t][e].apply($[t],[this].concat(n))}else $[t]._attach(this,e)})}},setDefaults:function(t){$.extend(this.defaultOptions,t||{})},_isNotChained:function(t,e){return"option"===t&&(0===e.length||1===e.length&&"string"==typeof e[0])||$.inArray(t,this._getters)>-1},_attach:function(t,e){if(!(t=$(t)).hasClass(this._getMarker())){t.addClass(this._getMarker()),e=$.extend({},this.defaultOptions,this._getMetadata(t),e||{});var n=$.extend({name:this.name,elem:t,options:e},this._instSettings(t,e));t.data(this.name,n),this._postAttach(t,n),this.option(t,e)}},_instSettings:function(t,e){return{}},_postAttach:function(t,e){},_getMetadata:function(d){try{var f=d.data(this.name.toLowerCase())||"";for(var g in f=f.replace(/'/g,'"'),f=f.replace(/([a-zA-Z0-9]+):/g,function(t,e,n){var i=f.substring(0,n).match(/"/g);return i&&i.length%2!=0?e+":":'"'+e+'":'}),f=$.parseJSON("{"+f+"}"),f){var h=f[g];"string"==typeof h&&h.match(/^new Date\((.*)\)$/)&&(f[g]=eval(h))}return f}catch(t){return{}}},_getInst:function(t){return $(t).data(this.name)||{}},option:function(t,e,n){var i=(t=$(t)).data(this.name);if(!e||"string"==typeof e&&null==n)return(a=(i||{}).options)&&e?a[e]:a;if(t.hasClass(this._getMarker())){var a=e||{};"string"==typeof e&&((a={})[e]=n),this._optionsChanged(t,i,a),$.extend(i.options,a)}},_optionsChanged:function(t,e,n){},destroy:function(t){(t=$(t)).hasClass(this._getMarker())&&(this._preDestroy(t,this._getInst(t)),t.removeData(this.name).removeClass(this._getMarker()))},_preDestroy:function(t,e){}}),$.JQPlugin={createPlugin:function(t,e){"object"==typeof t&&(e=t,t="JQPlugin"),t=camelCase(t);var n=camelCase(e.name);JQClass.classes[n]=JQClass.classes[t].extend(e),new JQClass.classes[n]}}}(jQuery),function(t){var e,n,i="widgetkit_countdown";t.JQPlugin.createPlugin({name:i,defaultOptions:{until:null,since:null,timezone:null,serverSync:null,format:"dHMS",layout:"",compact:!1,padZeroes:!1,significant:0,description:"",expiryUrl:"",expiryText:"",alwaysExpire:!1,onExpiry:null,onTick:null,tickInterval:1},regionalOptions:{"":{labels:["Years","Months","Weeks","Days","Hours","Minutes","Seconds"],labels1:["Year","Month","Week","Day","Hour","Minute","Second"],compactLabels:["y","m","w","d"],whichLabels:null,digits:["0","1","2","3","4","5","6","7","8","9"],timeSeparator:":",isRTL:!1}},_getters:["getTimes"],_rtlClass:i+"-rtl",_sectionClass:i+"-section",_amountClass:i+"-amount",_periodClass:i+"-period",_rowClass:i+"-row",_holdingClass:i+"-holding",_showClass:i+"-show",_descrClass:i+"-descr",_timerElems:[],_init:function(){var e=this;this._super(),this._serverSyncs=[];var n="function"==typeof Date.now?Date.now:function(){return(new Date).getTime()},i=window.performance&&"function"==typeof window.performance.now;var a=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||null,s=0;!a||t.noRequestAnimationFrame?(t.noRequestAnimationFrame=null,setInterval(function(){e._updateElems()},980)):(s=window.animationStartTime||window.webkitAnimationStartTime||window.mozAnimationStartTime||window.oAnimationStartTime||window.msAnimationStartTime||n(),a(function t(o){var r=o<1e12?i?performance.now()+performance.timing.navigationStart:n():o||n();r-s>=1e3&&(e._updateElems(),s=r),a(t)}))},UTCDate:function(t,e,n,i,a,s,o,r){"object"==typeof e&&e.constructor==Date&&(r=e.getMilliseconds(),o=e.getSeconds(),s=e.getMinutes(),a=e.getHours(),i=e.getDate(),n=e.getMonth(),e=e.getFullYear());var l=new Date;return l.setUTCFullYear(e),l.setUTCDate(1),l.setUTCMonth(n||0),l.setUTCDate(i||1),l.setUTCHours(a||0),l.setUTCMinutes((s||0)-(Math.abs(t)<30?60*t:t)),l.setUTCSeconds(o||0),l.setUTCMilliseconds(r||0),l},periodsToSeconds:function(t){return 31557600*t[0]+2629800*t[1]+604800*t[2]+86400*t[3]+3600*t[4]+60*t[5]+t[6]},_instSettings:function(t,e){return{_periods:[0,0,0,0,0,0,0]}},_addElem:function(t){this._hasElem(t)||this._timerElems.push(t)},_hasElem:function(e){return t.inArray(e,this._timerElems)>-1},_removeElem:function(e){this._timerElems=t.map(this._timerElems,function(t){return t==e?null:t})},_updateElems:function(){for(var t=this._timerElems.length-1;t>=0;t--)this._updateCountdown(this._timerElems[t])},_optionsChanged:function(e,n,i){i.layout&&(i.layout=i.layout.replace(/&lt;/g,"<").replace(/&gt;/g,">")),this._resetExtraLabels(n.options,i);var a=n.options.timezone!=i.timezone;t.extend(n.options,i),this._adjustSettings(e,n,null!=i.until||null!=i.since||a);var s=new Date;(n._since&&n._since<s||n._until&&n._until>s)&&this._addElem(e[0]),this._updateCountdown(e,n)},_updateCountdown:function(e,n){if(e=e.jquery?e:t(e),n=n||e.data(this.name)){if(e.html(this._generateHTML(n)).toggleClass(this._rtlClass,n.options.isRTL),t.isFunction(n.options.onTick)){var i="lap"!=n._hold?n._periods:this._calculatePeriods(n,n._show,n.options.significant,new Date);1!=n.options.tickInterval&&this.periodsToSeconds(i)%n.options.tickInterval!=0||n.options.onTick.apply(e[0],[i])}if("pause"!=n._hold&&(n._since?n._now.getTime()<n._since.getTime():n._now.getTime()>=n._until.getTime())&&!n._expiring){if(n._expiring=!0,this._hasElem(e[0])||n.options.alwaysExpire){if(this._removeElem(e[0]),t.isFunction(n.options.onExpiry)&&n.options.onExpiry.apply(e[0],[]),n.options.expiryText){var a=n.options.layout;n.options.layout=n.options.expiryText,this._updateCountdown(e[0],n),n.options.layout=a}n.options.expiryUrl&&(window.location=n.options.expiryUrl)}n._expiring=!1}else"pause"==n._hold&&this._removeElem(e[0])}},_resetExtraLabels:function(t,e){var n=!1;for(var i in e)if("whichLabels"!=i&&i.match(/[Ll]abels/)){n=!0;break}if(n)for(var i in t)i.match(/[Ll]abels[02-9]|compactLabels1/)&&(t[i]=null)},_adjustSettings:function(e,n,i){for(var a,s=0,o=null,r=0;r<this._serverSyncs.length;r++)if(this._serverSyncs[r][0]==n.options.serverSync){o=this._serverSyncs[r][1];break}if(null!=o)s=n.options.serverSync?o:0,a=new Date;else{var l=t.isFunction(n.options.serverSync)?n.options.serverSync.apply(e[0],[]):null;a=new Date,s=l?a.getTime()-l.getTime():0,this._serverSyncs.push([n.options.serverSync,s])}var u=n.options.timezone;u=null==u?-a.getTimezoneOffset():u,(i||!i&&null==n._until&&null==n._since)&&(n._since=n.options.since,null!=n._since&&(n._since=this.UTCDate(u,this._determineTime(n._since,null)),n._since&&s&&n._since.setMilliseconds(n._since.getMilliseconds()+s)),n._until=this.UTCDate(u,this._determineTime(n.options.until,a)),s&&n._until.setMilliseconds(n._until.getMilliseconds()+s)),n._show=this._determineShow(n)},_preDestroy:function(t,e){this._removeElem(t[0]),t.empty()},pause:function(t){this._hold(t,"pause")},lap:function(t){this._hold(t,"lap")},resume:function(t){this._hold(t,null)},toggle:function(e){this[(t.data(e,this.name)||{})._hold?"resume":"pause"](e)},toggleLap:function(e){this[(t.data(e,this.name)||{})._hold?"resume":"lap"](e)},_hold:function(e,n){var i=t.data(e,this.name);if(i){if("pause"==i._hold&&!n){i._periods=i._savePeriods;var a=i._since?"-":"+";i[i._since?"_since":"_until"]=this._determineTime(a+i._periods[0]+"y"+a+i._periods[1]+"o"+a+i._periods[2]+"w"+a+i._periods[3]+"d"+a+i._periods[4]+"h"+a+i._periods[5]+"m"+a+i._periods[6]+"s"),this._addElem(e)}i._hold=n,i._savePeriods="pause"==n?i._periods:null,t.data(e,this.name,i),this._updateCountdown(e,i)}},getTimes:function(e){var n=t.data(e,this.name);return n?"pause"==n._hold?n._savePeriods:n._hold?this._calculatePeriods(n,n._show,n.options.significant,new Date):n._periods:null},_determineTime:function(t,e){var n=this,i=null==t?e:"string"==typeof t?function(t){t=t.toLowerCase();for(var e=new Date,i=e.getFullYear(),a=e.getMonth(),s=e.getDate(),o=e.getHours(),r=e.getMinutes(),l=e.getSeconds(),u=/([+-]?[0-9]+)\s*(s|m|h|d|w|o|y)?/g,p=u.exec(t);p;){switch(p[2]||"s"){case"s":l+=parseInt(p[1],10);break;case"m":r+=parseInt(p[1],10);break;case"h":o+=parseInt(p[1],10);break;case"d":s+=parseInt(p[1],10);break;case"w":s+=7*parseInt(p[1],10);break;case"o":a+=parseInt(p[1],10),s=Math.min(s,n._getDaysInMonth(i,a));break;case"y":i+=parseInt(p[1],10),s=Math.min(s,n._getDaysInMonth(i,a))}p=u.exec(t)}return new Date(i,a,s,o,r,l,0)}(t):"number"==typeof t?function(t){var e=new Date;return e.setTime(e.getTime()+1e3*t),e}(t):t;return i&&i.setMilliseconds(0),i},_getDaysInMonth:function(t,e){return 32-new Date(t,e,32).getDate()},_normalLabels:function(t){return t},_generateHTML:function(e){var n=this;e._periods=e._hold?e._periods:this._calculatePeriods(e,e._show,e.options.significant,new Date);for(var i=!1,a=0,s=e.options.significant,o=t.extend({},e._show),r=0;r<=6;r++)i|="?"==e._show[r]&&e._periods[r]>0,o[r]="?"!=e._show[r]||i?e._show[r]:null,a+=o[r]?1:0,s-=e._periods[r]>0?1:0;var l=[!1,!1,!1,!1,!1,!1,!1];for(r=6;r>=0;r--)e._show[r]&&(e._periods[r]?l[r]=!0:(l[r]=s>0,s--));var u=e.options.compact?e.options.compactLabels:e.options.labels,p=e.options.whichLabels||this._normalLabels,m=function(t){var i=e.options["compactLabels"+p(e._periods[t])];return o[t]?n._translateDigits(e,e._periods[t])+(i?i[t]:u[t])+" ":""},c=e.options.padZeroes?2:1,d=function(t){var i=e.options["labels"+p(e._periods[t])];return!e.options.significant&&o[t]||e.options.significant&&l[t]?'<span class="'+n._sectionClass+'"><span class="pre_time-mid"><span class="'+n._amountClass+'">'+n._minDigits(e,e._periods[t],c)+'</span><span class="'+n._periodClass+'">'+(i?i[t]:u[t])+"</span></span></span>":""};return e.options.layout?this._buildLayout(e,o,e.options.layout,e.options.compact,e.options.significant,l):(e.options.compact?'<span class="'+this._rowClass+" "+this._amountClass+(e._hold?" "+this._holdingClass:"")+'">'+m(0)+m(1)+m(2)+m(3)+(o[4]?this._minDigits(e,e._periods[4],2):"")+(o[5]?(o[4]?e.options.timeSeparator:"")+this._minDigits(e,e._periods[5],2):"")+(o[6]?(o[4]||o[5]?e.options.timeSeparator:"")+this._minDigits(e,e._periods[6],2):""):'<span class="'+this._rowClass+" "+this._showClass+(e.options.significant||a)+(e._hold?" "+this._holdingClass:"")+'">'+d(0)+d(1)+d(2)+d(3)+d(4)+d(5)+d(6))+"</span>"+(e.options.description?'<span class="'+this._rowClass+" "+this._descrClass+'">'+e.options.description+"</span>":"")},_buildLayout:function(e,n,i,a,s,o){for(var r=e.options[a?"compactLabels":"labels"],l=e.options.whichLabels||this._normalLabels,u=function(t){return(e.options[(a?"compactLabels":"labels")+l(e._periods[t])]||r)[t]},p=function(t,n){return e.options.digits[Math.floor(t/n)%10]},m={desc:e.options.description,sep:e.options.timeSeparator,yl:u(0),yn:this._minDigits(e,e._periods[0],1),ynn:this._minDigits(e,e._periods[0],2),ynnn:this._minDigits(e,e._periods[0],3),y1:p(e._periods[0],1),y10:p(e._periods[0],10),y100:p(e._periods[0],100),y1000:p(e._periods[0],1e3),ol:u(1),on:this._minDigits(e,e._periods[1],1),onn:this._minDigits(e,e._periods[1],2),onnn:this._minDigits(e,e._periods[1],3),o1:p(e._periods[1],1),o10:p(e._periods[1],10),o100:p(e._periods[1],100),o1000:p(e._periods[1],1e3),wl:u(2),wn:this._minDigits(e,e._periods[2],1),wnn:this._minDigits(e,e._periods[2],2),wnnn:this._minDigits(e,e._periods[2],3),w1:p(e._periods[2],1),w10:p(e._periods[2],10),w100:p(e._periods[2],100),w1000:p(e._periods[2],1e3),dl:u(3),dn:this._minDigits(e,e._periods[3],1),dnn:this._minDigits(e,e._periods[3],2),dnnn:this._minDigits(e,e._periods[3],3),d1:p(e._periods[3],1),d10:p(e._periods[3],10),d100:p(e._periods[3],100),d1000:p(e._periods[3],1e3),hl:u(4),hn:this._minDigits(e,e._periods[4],1),hnn:this._minDigits(e,e._periods[4],2),hnnn:this._minDigits(e,e._periods[4],3),h1:p(e._periods[4],1),h10:p(e._periods[4],10),h100:p(e._periods[4],100),h1000:p(e._periods[4],1e3),ml:u(5),mn:this._minDigits(e,e._periods[5],1),mnn:this._minDigits(e,e._periods[5],2),mnnn:this._minDigits(e,e._periods[5],3),m1:p(e._periods[5],1),m10:p(e._periods[5],10),m100:p(e._periods[5],100),m1000:p(e._periods[5],1e3),sl:u(6),sn:this._minDigits(e,e._periods[6],1),snn:this._minDigits(e,e._periods[6],2),snnn:this._minDigits(e,e._periods[6],3),s1:p(e._periods[6],1),s10:p(e._periods[6],10),s100:p(e._periods[6],100),s1000:p(e._periods[6],1e3)},c=i,d=0;d<=6;d++){var h="yowdhms".charAt(d),_=new RegExp("\\{"+h+"<\\}([\\s\\S]*)\\{"+h+">\\}","g");c=c.replace(_,!s&&n[d]||s&&o[d]?"$1":"")}return t.each(m,function(t,e){var n=new RegExp("\\{"+t+"\\}","g");c=c.replace(n,e)}),c},_minDigits:function(t,e,n){return(e=""+e).length>=n?this._translateDigits(t,e):(e="0000000000"+e,this._translateDigits(t,e.substr(e.length-n)))},_translateDigits:function(t,e){return(""+e).replace(/[0-9]/g,function(e){return t.options.digits[e]})},_determineShow:function(t){var e=t.options.format,n=[];return n[0]=e.match("y")?"?":e.match("Y")?"!":null,n[1]=e.match("o")?"?":e.match("O")?"!":null,n[2]=e.match("w")?"?":e.match("W")?"!":null,n[3]=e.match("d")?"?":e.match("D")?"!":null,n[4]=e.match("h")?"?":e.match("H")?"!":null,n[5]=e.match("m")?"?":e.match("M")?"!":null,n[6]=e.match("s")?"?":e.match("S")?"!":null,n},_calculatePeriods:function(t,e,n,i){t._now=i,t._now.setMilliseconds(0);var a=new Date(t._now.getTime());t._since?i.getTime()<t._since.getTime()?t._now=i=a:i=t._since:(a.setTime(t._until.getTime()),i.getTime()>t._until.getTime()&&(t._now=i=a));var s=[0,0,0,0,0,0,0];if(e[0]||e[1]){var o=this._getDaysInMonth(i.getFullYear(),i.getMonth()),r=this._getDaysInMonth(a.getFullYear(),a.getMonth()),l=a.getDate()==i.getDate()||a.getDate()>=Math.min(o,r)&&i.getDate()>=Math.min(o,r),u=function(t){return 60*(60*t.getHours()+t.getMinutes())+t.getSeconds()},p=Math.max(0,12*(a.getFullYear()-i.getFullYear())+a.getMonth()-i.getMonth()+(a.getDate()<i.getDate()&&!l||l&&u(a)<u(i)?-1:0));s[0]=e[0]?Math.floor(p/12):0,s[1]=e[1]?p-12*s[0]:0;var m=(i=new Date(i.getTime())).getDate()==o,c=this._getDaysInMonth(i.getFullYear()+s[0],i.getMonth()+s[1]);i.getDate()>c&&i.setDate(c),i.setFullYear(i.getFullYear()+s[0]),i.setMonth(i.getMonth()+s[1]),m&&i.setDate(c)}var d=Math.floor((a.getTime()-i.getTime())/1e3),h=function(t,n){s[t]=e[t]?Math.floor(d/n):0,d-=s[t]*n};if(h(2,604800),h(3,86400),h(4,3600),h(5,60),h(6,1),d>0&&!t._since)for(var _=[1,12,4.3482,7,24,60,60],f=6,g=1,w=6;w>=0;w--)e[w]&&(s[f]>=g&&(s[f]=0,d=1),d>0&&(s[w]++,d=0,f=w,g=1)),g*=_[w];if(n)for(w=0;w<=6;w++)n&&s[w]?n--:n||(s[w]=0);return s}}),e=this,n=function(t,e,n){return function(t,e,n,i,a,s){function o(t){return"number"==typeof t&&!isNaN(t)}var r=this;if(r.version=function(){return"1.9.1"},r.options={useEasing:!0,useGrouping:!0,separator:",",decimal:".",easingFn:function(t,e,n,i){return n*(1-Math.pow(2,-10*t/i))*1024/1023+e},formattingFn:function(t){var e,n,i,a;if(t=t.toFixed(r.decimals),n=(e=(t+="").split("."))[0],i=e.length>1?r.options.decimal+e[1]:"",a=/(\d+)(\d{3})/,r.options.useGrouping)for(;a.test(n);)n=n.replace(a,"$1"+r.options.separator+"$2");return r.options.numerals.length&&(n=n.replace(/[0-9]/g,function(t){return r.options.numerals[+t]}),i=i.replace(/[0-9]/g,function(t){return r.options.numerals[+t]})),r.options.prefix+n+i+r.options.suffix},prefix:"",suffix:"",numerals:[]},s&&"object"==typeof s)for(var l in r.options)s.hasOwnProperty(l)&&null!==s[l]&&(r.options[l]=s[l]);""===r.options.separator&&(r.options.useGrouping=!1);for(var u=0,p=["webkit","moz","ms","o"],m=0;m<p.length&&!window.requestAnimationFrame;++m)window.requestAnimationFrame=window[p[m]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[p[m]+"CancelAnimationFrame"]||window[p[m]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,e){var n=(new Date).getTime(),i=Math.max(0,16-(n-u)),a=window.setTimeout(function(){t(n+i)},i);return u=n+i,a}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)}),r.initialize=function(){return!(!r.initialized&&(r.error="",r.d="string"==typeof t?document.getElementById(t):t,r.d?(r.startVal=Number(e),r.endVal=Number(n),o(r.startVal)&&o(r.endVal)?(r.decimals=Math.max(0,i||0),r.dec=Math.pow(10,r.decimals),r.duration=1e3*Number(a)||2e3,r.countDown=r.startVal>r.endVal,r.frameVal=r.startVal,r.initialized=!0,0):(r.error="[CountUp] startVal ("+e+") or endVal ("+n+") is not a number",1)):(r.error="[CountUp] target is null or undefined",1)))},r.printValue=function(t){var e=r.options.formattingFn(t);"INPUT"===r.d.tagName?this.d.value=e:"text"===r.d.tagName||"tspan"===r.d.tagName?this.d.textContent=e:this.d.innerHTML=e},r.count=function(t){r.startTime||(r.startTime=t),r.timestamp=t;var e=t-r.startTime;r.remaining=r.duration-e,r.options.useEasing?r.countDown?r.frameVal=r.startVal-r.options.easingFn(e,0,r.startVal-r.endVal,r.duration):r.frameVal=r.options.easingFn(e,r.startVal,r.endVal-r.startVal,r.duration):r.countDown?r.frameVal=r.startVal-(r.startVal-r.endVal)*(e/r.duration):r.frameVal=r.startVal+(r.endVal-r.startVal)*(e/r.duration),r.countDown?r.frameVal=r.frameVal<r.endVal?r.endVal:r.frameVal:r.frameVal=r.frameVal>r.endVal?r.endVal:r.frameVal,r.frameVal=Math.round(r.frameVal*r.dec)/r.dec,r.printValue(r.frameVal),e<r.duration?r.rAF=requestAnimationFrame(r.count):r.callback&&r.callback()},r.start=function(t){r.initialize()&&(r.callback=t,r.rAF=requestAnimationFrame(r.count))},r.pauseResume=function(){r.paused?(r.paused=!1,delete r.startTime,r.duration=r.remaining,r.startVal=r.frameVal,requestAnimationFrame(r.count)):(r.paused=!0,cancelAnimationFrame(r.rAF))},r.reset=function(){r.paused=!1,delete r.startTime,r.initialized=!1,r.initialize()&&(cancelAnimationFrame(r.rAF),r.printValue(r.startVal))},r.update=function(t){if(r.initialize()){if(!o(t=Number(t)))return void(r.error="[CountUp] update() - new endVal is not a number: "+t);r.error="",t!==r.frameVal&&(cancelAnimationFrame(r.rAF),r.paused=!1,delete r.startTime,r.startVal=r.frameVal,r.endVal=t,r.countDown=r.startVal>r.endVal,r.rAF=requestAnimationFrame(r.count))}},r.initialize()&&r.printValue(r.startVal)}},"function"==typeof define&&define.amd?define(n):"object"==typeof exports?module.exports=n(require,exports,module):e.CountUp=n()}(jQuery),function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e(require,exports,module):t.CountUp=e()}(this,function(t,e,n){return function(t,e,n,i,a,s){function o(t){return"number"==typeof t&&!isNaN(t)}var r=this;if(r.version=function(){return"1.9.1"},r.options={useEasing:!0,useGrouping:!0,separator:",",decimal:".",easingFn:function(t,e,n,i){return n*(1-Math.pow(2,-10*t/i))*1024/1023+e},formattingFn:function(t){var e,n,i,a;if(t=t.toFixed(r.decimals),n=(e=(t+="").split("."))[0],i=e.length>1?r.options.decimal+e[1]:"",a=/(\d+)(\d{3})/,r.options.useGrouping)for(;a.test(n);)n=n.replace(a,"$1"+r.options.separator+"$2");return r.options.numerals.length&&(n=n.replace(/[0-9]/g,function(t){return r.options.numerals[+t]}),i=i.replace(/[0-9]/g,function(t){return r.options.numerals[+t]})),r.options.prefix+n+i+r.options.suffix},prefix:"",suffix:"",numerals:[]},s&&"object"==typeof s)for(var l in r.options)s.hasOwnProperty(l)&&null!==s[l]&&(r.options[l]=s[l]);""===r.options.separator&&(r.options.useGrouping=!1);for(var u=0,p=["webkit","moz","ms","o"],m=0;m<p.length&&!window.requestAnimationFrame;++m)window.requestAnimationFrame=window[p[m]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[p[m]+"CancelAnimationFrame"]||window[p[m]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,e){var n=(new Date).getTime(),i=Math.max(0,16-(n-u)),a=window.setTimeout(function(){t(n+i)},i);return u=n+i,a}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)}),r.initialize=function(){return!(!r.initialized&&(r.error="",r.d="string"==typeof t?document.getElementById(t):t,r.d?(r.startVal=Number(e),r.endVal=Number(n),o(r.startVal)&&o(r.endVal)?(r.decimals=Math.max(0,i||0),r.dec=Math.pow(10,r.decimals),r.duration=1e3*Number(a)||2e3,r.countDown=r.startVal>r.endVal,r.frameVal=r.startVal,r.initialized=!0,0):(r.error="[CountUp] startVal ("+e+") or endVal ("+n+") is not a number",1)):(r.error="[CountUp] target is null or undefined",1)))},r.printValue=function(t){var e=r.options.formattingFn(t);"INPUT"===r.d.tagName?this.d.value=e:"text"===r.d.tagName||"tspan"===r.d.tagName?this.d.textContent=e:this.d.innerHTML=e},r.count=function(t){r.startTime||(r.startTime=t),r.timestamp=t;var e=t-r.startTime;r.remaining=r.duration-e,r.options.useEasing?r.countDown?r.frameVal=r.startVal-r.options.easingFn(e,0,r.startVal-r.endVal,r.duration):r.frameVal=r.options.easingFn(e,r.startVal,r.endVal-r.startVal,r.duration):r.countDown?r.frameVal=r.startVal-(r.startVal-r.endVal)*(e/r.duration):r.frameVal=r.startVal+(r.endVal-r.startVal)*(e/r.duration),r.countDown?r.frameVal=r.frameVal<r.endVal?r.endVal:r.frameVal:r.frameVal=r.frameVal>r.endVal?r.endVal:r.frameVal,r.frameVal=Math.round(r.frameVal*r.dec)/r.dec,r.printValue(r.frameVal),e<r.duration?r.rAF=requestAnimationFrame(r.count):r.callback&&r.callback()},r.start=function(t){r.initialize()&&(r.callback=t,r.rAF=requestAnimationFrame(r.count))},r.pauseResume=function(){r.paused?(r.paused=!1,delete r.startTime,r.duration=r.remaining,r.startVal=r.frameVal,requestAnimationFrame(r.count)):(r.paused=!0,cancelAnimationFrame(r.rAF))},r.reset=function(){r.paused=!1,delete r.startTime,r.initialized=!1,r.initialize()&&(cancelAnimationFrame(r.rAF),r.printValue(r.startVal))},r.update=function(t){if(r.initialize()){if(!o(t=Number(t)))return void(r.error="[CountUp] update() - new endVal is not a number: "+t);r.error="",t!==r.frameVal&&(cancelAnimationFrame(r.rAF),r.paused=!1,delete r.startTime,r.startVal=r.frameVal,r.endVal=t,r.countDown=r.startVal>r.endVal,r.rAF=requestAnimationFrame(r.count))}},r.initialize()&&r.printValue(r.startVal)}});