var sswLibraries=function(t){!function(t){t.fn.addBack=t.fn.addBack||t.fn.andSelf,t.fn.extend({actual:function(e,n){if(!this[e])throw'$.actual => The jQuery method "'+e+'" you called does not exist';var i,r,a=t.extend({absolute:!1,clone:!1,includeMargin:!1},n),s=this.eq(0);if(!0===a.clone)i=function(){s=s.clone().attr("style","position: absolute !important; top: -1000 !important; ").appendTo("body")},r=function(){s.remove()};else{var o,u=[],l="";i=function(){o=s.parents().addBack().filter(":hidden"),l+="visibility: hidden !important; display: block !important; ",!0===a.absolute&&(l+="position: absolute !important; "),o.each((function(){var e=t(this),n=e.attr("style");u.push(n),e.attr("style",n?n+";"+l:l)}))},r=function(){o.each((function(e){var n=t(this),i=u[e];void 0===i?n.removeAttr("style"):n.attr("style",i)}))}}i();var c=/(outer)/.test(e)?s[e](a.includeMargin):s[e]();return r(),c}})}(t),renderWidget=function(e,n,i,r){var a="",s="html",o=!1;return void 0!==n&&(s=n),void 0!==i&&(o=i),e._sid=t.cookie("hesid"),e.hash_key=t.cookie("hash_key"),t.ajax({type:"GET",url:sswProxyUrl+"/lite2/core/widget/index",data:e,success:void 0!==r?r:function(t){a=t},dataType:s,async:o}),a},window.trackShopStats=function(e,n,i,r){var a={event:e,page:n};i&&(a.prev_page=i),r&&(a.product_id=r,a._sid=t.cookie("hesid")),a.hash_key=t.cookie("hash_key"),t.cookie("mail_id")&&(a.resource_id=t.cookie("mail_id"),a.resource_type="mail"),t.ajax({dataType:"json",method:"post",url:sswProxyUrl+"/lite2/statistics/trackStats",data:a,async:!0})},trackShareStats=function(e,n){var i={page:e,service:n};i.hash_key=t.cookie("hash_key"),i._sid=t.cookie("hesid"),t.ajax({dataType:"json",method:"post",url:sswProxyUrl+"/lite2/statistics/trackShare",data:i,async:!0})},addContent=function(e,n,i){void 0===n&&(n={}),void 0===i&&(i="#page");var r=location.search.substring(1);r&&(e+="?"+r),n._sid=t.cookie("hesid"),t.post(e,n,(function(e){t(i).html(e)}),"html")},function(t){t.fn.MultiFile=function(e){if(0==this.length)return this;if("string"==typeof arguments[0]){if(this.length>1){var n=arguments;return this.each((function(){t.fn.MultiFile.apply(t(this),n)}))}return t.fn.MultiFile[arguments[0]].apply(this,t.makeArray(arguments).slice(1)||[]),this}e=t.extend({},t.fn.MultiFile.options,e||{});t("form").not("MultiFile-intercepted").addClass("MultiFile-intercepted").submit(t.fn.MultiFile.disableEmpty),t.fn.MultiFile.options.autoIntercept&&(t.fn.MultiFile.intercept(t.fn.MultiFile.options.autoIntercept),t.fn.MultiFile.options.autoIntercept=null),this.not(".MultiFile-applied").addClass("MultiFile-applied").each((function(){window.MultiFile=(window.MultiFile||0)+1;var n=window.MultiFile,i={e:this,E:t(this),clone:t(this).clone()};"number"==typeof e&&(e={max:e});var r=t.extend({},t.fn.MultiFile.options,e||{},(t.metadata?i.E.metadata():t.meta?i.E.data():null)||{},{});r.max>0||(r.max=i.E.attr("maxlength")),r.max>0||(r.max=(String(i.e.className.match(/\b(max|limit)\-([0-9]+)\b/gi)||[""]).match(/[0-9]+/gi)||[""])[0],r.max>0?r.max=String(r.max).match(/[0-9]+/gi)[0]:r.max=-1),r.max=new Number(r.max),r.accept=r.accept||i.E.attr("accept")||"",r.accept||(r.accept=i.e.className.match(/\b(accept\-[\w\|]+)\b/gi)||"",r.accept=new String(r.accept).replace(/^(accept|ext)\-/i,"")),t.extend(i,r||{}),i.STRING=t.extend({},t.fn.MultiFile.options.STRING,i.STRING),t.extend(i,{n:0,slaves:[],files:[],instanceKey:i.e.id||"MultiFile"+String(n),generateID:function(t){return i.instanceKey+(t>0?"_F"+String(t):"")},trigger:function(e,n){var r=i[e],a=t(n).attr("value");if(r){var s=r(n,a,i);if(null!=s)return s}return!0}}),String(i.accept).length>1&&(i.accept=i.accept.replace(/\W+/g,"|").replace(/^\W|\W$/g,""),i.rxAccept=new RegExp("\\.("+(i.accept?i.accept:"")+")$","gi")),i.wrapID=i.instanceKey+"_wrap",i.E.wrap('
'),i.wrapper=t("#"+i.wrapID),i.e.name=i.e.name||"file"+n+"[]",i.list||(i.wrapper.append('
'),i.list=t("#"+i.wrapID+"_list")),i.list=t(i.list),i.addSlave=function(e,r){i.n++,e.MultiFile=i,r>0&&(e.id=e.name=""),r>0&&(e.id=i.generateID(r)),e.name=String(i.namePattern.replace(/\$name/gi,t(i.clone).attr("name")).replace(/\$id/gi,t(i.clone).attr("id")).replace(/\$g/gi,n).replace(/\$i/gi,r)),i.max>0&&i.n-1>i.max&&(e.disabled=!0),i.current=i.slaves[r]=e,(e=t(e)).val("").attr("value","")[0].value="",e.addClass("MultiFile-applied"),e.change((function(){if(t(this).blur(),!i.trigger("onFileSelect",this,i))return!1;var n="",a=String(this.value||"");for(var s in i.accept&&a&&!a.match(i.rxAccept)&&(n=i.STRING.denied.replace("$ext",String(a.match(/\.\w{1,4}$/gi)))),i.slaves)i.slaves[s]&&i.slaves[s]!=this&&i.slaves[s].value==a&&(n=i.STRING.duplicate.replace("$file",a.match(/[^\/\\]+$/gi)));var o=t(i.clone).clone();return o.addClass("MultiFile"),""!=n?(i.error(n),i.n--,i.addSlave(o[0],r),e.parent().prepend(o),e.remove(),!1):(t(this).css({position:"absolute",top:"-3000px"}),e.after(o),i.addToList(this,r),i.addSlave(o[0],r+1),!!i.trigger("afterFileSelect",this,i)&&void 0)})),t(e).data("MultiFile",i)},i.addToList=function(e,n){if(!i.trigger("onFileAppend",e,i))return!1;var r=t('
'),a=String(e.value||""),s=t(''+i.STRING.file.replace("$file",a.match(/[^\/\\]+$/gi)[0])+""),o=t(''+i.STRING.remove+"");return i.list.append(r.append(o," ",s)),o.click((function(){return!!i.trigger("onFileRemove",e,i)&&(i.n--,i.current.disabled=!1,i.slaves[n]=null,t(e).remove(),t(this).parent().remove(),t(i.current).css({position:"",top:""}),t(i.current).reset().val("").attr("value","")[0].value="",i.trigger("afterFileRemove",e,i),!1)})),!!i.trigger("afterFileAppend",e,i)&&void 0},i.MultiFile||i.addSlave(i.e,0),i.n++,i.E.data("MultiFile",i)}))},t.extend(t.fn.MultiFile,{reset:function(){var e=t(this).data("MultiFile");return e&&e.list.find("a.MultiFile-remove").click(),t(this)},disableEmpty:function(e){e=("string"==typeof e?e:"")||"mfD";var n=[];return t("input:file.MultiFile").each((function(){""==t(this).val()&&(n[n.length]=this)})),t(n).each((function(){this.disabled=!0})).addClass(e)},reEnableEmpty:function(e){return t("input:file."+(e=("string"==typeof e?e:"")||"mfD")).removeClass(e).each((function(){this.disabled=!1}))},intercepted:{},intercept:function(e,n,i){var r,a;if((i=i||[]).constructor.toString().indexOf("Array")<0&&(i=[i]),"function"==typeof e)return t.fn.MultiFile.disableEmpty(),a=e.apply(n||window,i),setTimeout((function(){t.fn.MultiFile.reEnableEmpty()}),1e3),a;e.constructor.toString().indexOf("Array")<0&&(e=[e]);for(var s=0;s").get(0).files,e.formdata=void 0!==window.FormData,t.fn.ajaxSubmit=function(n){if(!this.length)return r("ajaxSubmit: skipping submit process - no element selected"),this;var i,a,s,o=this;"function"==typeof n&&(n={success:n}),i=this.attr("method"),(s=(s="string"==typeof(a=this.attr("action"))?t.trim(a):"")||window.location.href||"")&&(s=(s.match(/^([^#]+)/)||[])[1]),n=t.extend(!0,{url:s,success:t.ajaxSettings.success,type:i||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},n);var u={};if(this.trigger("form-pre-serialize",[this,n,u]),u.veto)return r("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(n.beforeSerialize&&!1===n.beforeSerialize(this,n))return r("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var l=n.traditional;void 0===l&&(l=t.ajaxSettings.traditional);var c,d=this.formToArray(n.semantic);if(n.data&&(n.extraData=n.data,c=t.param(n.data,l)),n.beforeSubmit&&!1===n.beforeSubmit(d,this,n))return r("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[d,this,n,u]),u.veto)return r("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var f=t.param(d,l);c&&(f=f?f+"&"+c:c),"GET"==n.type.toUpperCase()?(n.url+=(n.url.indexOf("?")>=0?"&":"?")+f,n.data=null):n.data=f;var h=[];if(n.resetForm&&h.push((function(){o.resetForm()})),n.clearForm&&h.push((function(){o.clearForm(n.includeHidden)})),!n.dataType&&n.target){var p=n.success||function(){};h.push((function(e){var i=n.replaceTarget?"replaceWith":"html";t(n.target)[i](e).each(p,arguments)}))}else n.success&&h.push(n.success);n.success=function(t,e,i){for(var r=n.context||n,a=0,s=h.length;a0,g="multipart/form-data",v=o.attr("enctype")==g||o.attr("encoding")==g,y=e.fileapi&&e.formdata;r("fileAPI :"+y);var _=(m||v)&&!y;return!1!==n.iframe&&(n.iframe||_)?n.closeKeepAlive?t.get(n.closeKeepAlive,(function(){w(d)})):w(d):(m||v)&&y?function(e){for(var i=new FormData,r=0;r')).css({position:"absolute",top:"-1000px",left:"-1000px"}),d=c[0],f={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(e){var n="timeout"===e?"timeout":"aborted";r("aborting upload... "+n),this.aborted=1,c.attr("src",s.iframeSrc),f.error=n,s.error&&s.error.call(s.context,f,n,e),u&&t.event.trigger("ajaxError",[f,s,n]),s.complete&&s.complete.call(s.context,f,n)}},(u=s.global)&&0==t.active++&&t.event.trigger("ajaxStart"),u&&t.event.trigger("ajaxSend",[f,s]),s.beforeSend&&!1===s.beforeSend.call(s.context,f,s))s.global&&t.active--;else if(!f.aborted){(h=v.clk)&&(p=h.name)&&!h.disabled&&(s.extraData=s.extraData||{},s.extraData[p]=h.value,"image"==h.type&&(s.extraData[p+".x"]=v.clk_x,s.extraData[p+".y"]=v.clk_y));var _=1,w=2,b=t("meta[name=csrf-token]").attr("content"),x=t("meta[name=csrf-param]").attr("content");x&&b&&(s.extraData=s.extraData||{},s.extraData[x]=b),s.forceSync?I():setTimeout(I,10);var k,S,M,T=50,D=t.parseXML||function(t,e){return window.ActiveXObject?((e=new ActiveXObject("Microsoft.XMLDOM")).async="false",e.loadXML(t)):e=(new DOMParser).parseFromString(t,"text/xml"),e&&e.documentElement&&"parsererror"!=e.documentElement.nodeName?e:null},C=t.parseJSON||function(t){return window.eval("("+t+")")},O=function(e,n,i){var r=e.getResponseHeader("content-type")||"",a="xml"===n||!n&&r.indexOf("xml")>=0,s=a?e.responseXML:e.responseText;return a&&"parsererror"===s.documentElement.nodeName&&t.error&&t.error("parsererror"),i&&i.dataFilter&&(s=i.dataFilter(s,n)),"string"==typeof s&&("json"===n||!n&&r.indexOf("json")>=0?s=C(s):("script"===n||!n&&r.indexOf("javascript")>=0)&&t.globalEval(s)),s}}function F(t){return t.contentWindow?t.contentWindow.document:t.contentDocument?t.contentDocument:t.document}function I(){var e=o.attr("target"),n=o.attr("action");v.setAttribute("target",l),i||v.setAttribute("method","POST"),n!=s.url&&v.setAttribute("action",s.url),s.skipEncodingOverride||i&&!/post/i.test(i)||o.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),s.timeout&&(g=setTimeout((function(){m=!0,Y(_)}),s.timeout));var a=[];try{if(s.extraData)for(var u in s.extraData)s.extraData.hasOwnProperty(u)&&a.push(t('').attr("value",s.extraData[u]).appendTo(v)[0]);s.iframeTarget||(c.appendTo("body"),d.attachEvent?d.attachEvent("onload",Y):d.addEventListener("load",Y,!1)),setTimeout((function t(){try{var e=F(d).readyState;r("state = "+e),e&&"uninitialized"==e.toLowerCase()&&setTimeout(t,50)}catch(t){r("Server abort: ",t," (",t.name,")"),Y(w),g&&clearTimeout(g),g=void 0}}),15),v.submit()}finally{v.setAttribute("action",n),e?v.setAttribute("target",e):o.removeAttr("target"),t(a).remove()}}function Y(e){if(!f.aborted&&!M){try{S=F(d)}catch(t){r("cannot access response document: ",t),e=w}if(e===_&&f)f.abort("timeout");else if(e==w&&f)f.abort("server abort");else if(S&&S.location.href!=s.iframeSrc||m){d.detachEvent?d.detachEvent("onload",Y):d.removeEventListener("load",Y,!1);var n,i="success";try{if(m)throw"timeout";var a="xml"==s.dataType||S.XMLDocument||t.isXMLDoc(S);if(r("isXml="+a),!a&&window.opera&&(null===S.body||!S.body.innerHTML)&&--T)return r("requeing onLoad callback, DOM not available"),void setTimeout(Y,250);var o=S.body?S.body:S.documentElement;f.responseText=o?o.innerHTML:null,f.responseXML=S.XMLDocument?S.XMLDocument:S,a&&(s.dataType="xml"),f.getResponseHeader=function(t){return{"content-type":s.dataType}[t]},o&&(f.status=Number(o.getAttribute("status"))||f.status,f.statusText=o.getAttribute("statusText")||f.statusText);var l=(s.dataType||"").toLowerCase(),h=/(json|script|text)/.test(l);if(h||s.textarea){var p=S.getElementsByTagName("textarea")[0];if(p)f.responseText=p.value,f.status=Number(p.getAttribute("status"))||f.status,f.statusText=p.getAttribute("statusText")||f.statusText;else if(h){var v=S.getElementsByTagName("pre")[0],y=S.getElementsByTagName("body")[0];v?f.responseText=v.textContent?v.textContent:v.innerText:y&&(f.responseText=y.textContent?y.textContent:y.innerText)}}else"xml"==l&&!f.responseXML&&f.responseText&&(f.responseXML=D(f.responseText));try{k=O(f,l,s)}catch(e){i="parsererror",f.error=n=e||i}}catch(e){r("error caught: ",e),i="error",f.error=n=e||i}f.aborted&&(r("upload aborted"),i=null),f.status&&(i=f.status>=200&&f.status<300||304===f.status?"success":"error"),"success"===i?(s.success&&s.success.call(s.context,k,"success",f),u&&t.event.trigger("ajaxSuccess",[f,s])):i&&(void 0===n&&(n=f.statusText),s.error&&s.error.call(s.context,f,i,n),u&&t.event.trigger("ajaxError",[f,s,n])),u&&t.event.trigger("ajaxComplete",[f,s]),u&&!--t.active&&t.event.trigger("ajaxStop"),s.complete&&s.complete.call(s.context,f,i),M=!0,s.timeout&&clearTimeout(g),setTimeout((function(){s.iframeTarget||c.remove(),f.responseXML=null}),100)}}}}},t.fn.ajaxForm=function(e){if((e=e||{}).delegation=e.delegation&&t.isFunction(t.fn.on),!e.delegation&&0===this.length){var a={s:this.selector,c:this.context};return!t.isReady&&a.s?(r("DOM not ready, queuing ajaxForm"),t((function(){t(a.s,a.c).ajaxForm(e)})),this):(r("terminating; zero elements found by selector"+(t.isReady?"":" (DOM not ready)")),this)}return e.delegation?(t(document).off("submit.form-plugin",this.selector,n).off("click.form-plugin",this.selector,i).on("submit.form-plugin",this.selector,e,n).on("click.form-plugin",this.selector,e,i),this):this.ajaxFormUnbind().bind("submit.form-plugin",e,n).bind("click.form-plugin",e,i)},t.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")},t.fn.formToArray=function(n){var i=[];if(0===this.length)return i;var r,a,s,o,u,l,c,d=this[0],f=n?d.getElementsByTagName("*"):d.elements;if(!f)return i;for(r=0,l=f.length;r$1")},o.prototype={killerFn:null,initialize:function(){var e,n=this,i="."+n.classes.suggestion,r=n.classes.selected,a=n.options;n.element.setAttribute("autocomplete","off"),n.killerFn=function(e){0===t(e.target).closest("."+n.options.containerClass).length&&(n.killSuggestions(),n.disableKillerFn())},n.suggestionsContainer=o.utils.createNode(''),(e=t(n.suggestionsContainer)).appendTo(a.appendTo),"auto"!==a.width&&e.width(a.width),e.on("mouseover.autocomplete",i,(function(){n.activate(t(this).data("index"))})),e.on("mouseout.autocomplete",(function(){n.selectedIndex=-1,e.children("."+r).removeClass(r)})),e.on("click.autocomplete",i,(function(){n.select(t(this).data("index"))})),n.fixPosition(),n.fixPositionCapture=function(){n.visible&&n.fixPosition()},t(window).on("resize",n.fixPositionCapture),n.el.on("keydown.autocomplete",(function(t){n.onKeyPress(t)})),n.el.on("keyup.autocomplete",(function(t){n.onKeyUp(t)})),n.el.on("blur.autocomplete",(function(){n.onBlur()})),n.el.on("focus.autocomplete",(function(){n.fixPosition()}))},onBlur:function(){this.enableKillerFn()},setOptions:function(n){var i=this,r=i.options;e.extend(r,n),i.isLocal=t.isArray(r.lookup),i.isLocal&&(r.lookup=i.verifySuggestionsFormat(r.lookup)),t(i.suggestionsContainer).css({"max-height":r.maxHeight+"px","z-index":r.zIndex})},clearCache:function(){this.cachedResponse=[],this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){this.disabled=!0},enable:function(){this.disabled=!1},fixPosition:function(){var e,n=this;"body"===n.options.appendTo&&(e=n.el.offset(),t(n.suggestionsContainer).css({top:e.top+n.el.outerHeight()-1+"px",left:e.left+"px"}))},enableKillerFn:function(){t(document).on("click.autocomplete",this.killerFn)},disableKillerFn:function(){t(document).off("click.autocomplete",this.killerFn)},killSuggestions:function(){var t=this;t.stopKillSuggestions(),t.intervalId=window.setInterval((function(){t.hide(),t.stopKillSuggestions()}),300)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},onKeyPress:function(t){var e=this;if(e.disabled||e.visible||t.keyCode!==s||!e.currentValue){if(!e.disabled&&e.visible){switch(t.which){case n:e.el.html(e.currentValue),e.hide();break;case i:case r:if(-1===e.selectedIndex)return void e.hide();if(e.select(e.selectedIndex),t.keyCode===i&&!1===this.options.tabDisabled)return;break;case a:(e.suggestionsContainer.offsetWidth>0||e.suggestionsContainer.offsetHeight>0)&&e.moveUp();break;case s:(e.suggestionsContainer.offsetWidth>0||e.suggestionsContainer.offsetHeight>0)&&e.moveDown();break;default:return}t.stopImmediatePropagation(),t.preventDefault()}}else e.suggest()},onKeyUp:function(t){var e=this;if(!e.disabled){switch(t.keyCode){case a:case s:return}e.findBestHint(),clearInterval(e.onChangeInterval),e.currentValue!==e.el.html()&&(e.options.deferRequestBy>0?e.onChangeInterval=setInterval((function(){e.onValueChange()}),e.options.deferRequestBy):e.onValueChange())}},onValueChange:function(){var t,e=this;clearInterval(e.onChangeInterval),e.currentValue=e.el.html(),t=e.getQuery(e.currentValue),e.selectedIndex=-1,t.length]+>/gi,"");var n,i=this.options.delimiter;return i?(n=e.split(i),t.trim(n[n.length-1]).toLowerCase()):t.trim(e)},getSuggestionsLocal:function(e){var n=e.toLowerCase(),i=this.options.lookupFilter;return{suggestions:t.grep(this.options.lookup,(function(t){return i(t,e,n)}))}},getSuggestions:function(e){var n,i=this,r=i.options,a=r.serviceUrl;if(i.fixPosition(),(n=i.isLocal?i.getSuggestionsLocal(e):i.cachedResponse[e])&&t.isArray(n.suggestions))i.suggestions=n.suggestions,i.suggest();else if(!i.isBadQuery(e)){if(r.params[r.paramName]=e,!1===r.onSearchStart.call(i.element,r.params))return;t.isFunction(r.serviceUrl)&&(a=r.serviceUrl.call(i.element,e)),t.ajax({url:a,data:r.ignoreParams?null:r.params,type:r.type,dataType:r.dataType}).done((function(t){if("undefined"!=typeof suggest_users)for(var n=0;n"+suggest_users[n].value+"";t.suggestions.push({data:suggest_users[n].id,value:suggest_users[n].value,image:l,f:1}),t.data.push(c)}}i.processResponse(t,e),r.onSearchComplete.call(i.element,e)}))}},isBadQuery:function(t){for(var e=this.badQueries,n=e.length;n--;)if(0===t.indexOf(e[n]))return!0;return!1},hide:function(){var e=this;e.visible=!1,e.selectedIndex=-1,t(e.suggestionsContainer).hide(),e.signalHint(null)},suggest:function(){if(0!==this.suggestions.length){var e,n=this,i=n.options.formatResult,r=n.getQuery(n.currentValue),a=n.classes.suggestion,s=n.classes.selected,o=t(n.suggestionsContainer),u="";t.each(n.suggestions,(function(t,e){u+='
'+i(e,r)+"
"})),"auto"===n.options.width&&(e=n.el.outerWidth()-2,o.width(e>0?e:300)),o.html(u).show(),n.visible=!0,n.options.autoSelectFirst&&(n.selectedIndex=0,o.children().first().addClass(s)),n.findBestHint()}else this.hide()},findBestHint:function(){var e=this,n=e.el.text().toLowerCase(),i=null;t.each(e.suggestions,(function(t,e){var r=0===e.value.toLowerCase().indexOf(n);return r&&(i=e),!r})),e.signalHint(i)},signalHint:function(e){var n="";e&&(n=this.currentValue+e.value.substr(this.currentValue.length)),(this.options.onHint||t.noop)(n)},verifySuggestionsFormat:function(e){return e.length&&"string"==typeof e[0]?t.map(e,(function(t){return{value:t,data:null}})):e},processResponse:function(t,e){var n=this,i=n.options,r=i.transformResult(t,e);r.suggestions=n.verifySuggestionsFormat(r.suggestions),i.noCache||(n.cachedResponse[r[i.paramName]]=r,0===r.suggestions.length&&n.badQueries.push(r[i.paramName])),e===n.getQuery(n.currentValue)&&(n.suggestions=r.suggestions,n.suggest())},activate:function(e){var n,i=this,r=i.classes.selected,a=t(i.suggestionsContainer),s=a.children();return a.children("."+r).removeClass(r),i.selectedIndex=e,-1!==i.selectedIndex&&s.length>i.selectedIndex?(n=s.get(i.selectedIndex),t(n).addClass(r),n):null},select:function(t){this.hide(),this.onSelect(t)},moveUp:function(){var e=this;if(-1!==e.selectedIndex)return 0===e.selectedIndex?(t(e.suggestionsContainer).children().first().removeClass(e.classes.selected),e.selectedIndex=-1,e.el.html(e.currentValue),void e.findBestHint()):void e.adjustScroll(e.selectedIndex-1)},moveDown:function(){var t=this;t.selectedIndex!==t.suggestions.length-1&&t.adjustScroll(t.selectedIndex+1)},adjustScroll:function(e){var n,i,r,a=this,s=a.activate(e);s&&(n=s.offsetTop,r=(i=t(a.suggestionsContainer).scrollTop())+a.options.maxHeight-25,nr&&t(a.suggestionsContainer).scrollTop(n-a.options.maxHeight+25),a.signalHint(null))},onSelect:function(e){var n=this,i=n.options.onSelect,r=n.suggestions[e];n.currentValue=n.getValue(r.value),n.el.html(n.currentValue),n.signalHint(null),n.suggestions=[],t.isFunction(i)&&i.call(n.element,r)},getValue:function(e){var n,i,r=this,a=r.options.delimiter,s=r.options.getValue;return t.isFunction(s)?s.call(r.element,e):(e=""+e+" ",a?1===(i=(n=r.currentValue).split(a)).length?e:n.substr(0,n.length-i[i.length-1].length-1)+(" "==a?" "+e:e):e)},dispose:function(){var e=this;e.el.off(".autocomplete").removeData("autocomplete"),e.disableKillerFn(),t(window).off("resize",e.fixPositionCapture),t(e.suggestionsContainer).remove()}},t.fn.autocomplete=function(e,n){var i="autocomplete";return 0===arguments.length?this.first().data(i):this.each((function(){var r=t(this),a=r.data(i);"string"==typeof e?a&&"function"==typeof a[e]&&a[e](n):(a&&a.dispose&&a.dispose(),a=new o(this,e),r.data(i,a))}))}})),function(t){if(!/1\.(0|1|2)\.(0|1|2)/.test(t.fn.jquery)&&!/^1.1/.test(t.fn.jquery)){t.fn._fadeIn=t.fn.fadeIn,t.blockUI=function(t){r(window,t)},t.unblockUI=function(t){a(window,t)},t.growlUI=function(e,n,i){var r=t('
');e&&r.append("

"+e+"

"),n&&r.append("

"+n+"

"),null==i&&(i=3e3),t.blockUI({message:r,fadeIn:700,fadeOut:1e3,centerY:!1,timeout:i,showOverlay:!1,css:t.blockUI.defaults.growlCSS})},t.fn.block=function(e){return this.each((function(){"static"==t.css(this,"position")&&(this.style.position="relative"),t.support.opacity||t.support.style||(this.style.zoom=1),r(this,e)}))},t.fn.unblock=function(t){return this.each((function(){a(this,t)}))},t.blockUI.version=2.16,t.blockUI.defaults={message:"

Please wait...

",css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},overlayCSS:{backgroundColor:"#000",opacity:"0.6"},growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:"0.6",cursor:null,color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px"},baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,applyPlatformOpacityRules:!0,onUnblock:null,quirksmodeOffsetHack:4};var e=!t.support.opacity&&!t.support.style&&/MSIE 6.0/.test(navigator.userAgent),n=null,i=[]}function r(r,s){var u=r==window,d=s&&void 0!==s.message?s.message:void 0;(s=t.extend({},t.blockUI.defaults,s||{})).overlayCSS=t.extend({},t.blockUI.defaults.overlayCSS,s.overlayCSS||{});var f=t.extend({},t.blockUI.defaults.css,s.css||{});if(d=void 0===d?s.message:d,u&&n&&a(window,{fadeOut:0}),d&&"string"!=typeof d&&(d.parentNode||d.jquery)){var h=d.jquery?d[0]:d,p={};t(r).data("blockUI.history",p),p.el=h,p.parent=h.parentNode,p.display=h.style.display,p.position=h.style.position,p.parent&&p.parent.removeChild(h)}var m=s.baseZ,g=t.support.opacity||t.support.style?t(''):t(''),v=t(''),y=t(u?'':'');d&&y.css(f),s.applyPlatformOpacityRules&&t.browser.mozilla&&/Linux/.test(navigator.platform)||v.css(s.overlayCSS),v.css("position",u?"fixed":"absolute"),t.support.opacity||t.support.style||g.css("opacity","0.0"),t([g[0],v[0],y[0]]).appendTo(u?"body":r);var _=!t.support.opacity&&!t.support.style&&(t.browser.version<8||!t.boxModel)&&(!t.boxModel||t("object,embed",u?null:r).length>0);if(e||_&&y[0].style.setExpression){if(u&&s.allowBodyStretch&&t.boxModel&&t("html,body").css("height","100%"),(e||!t.boxModel)&&!u)var w=c(r,"borderTopWidth"),b=c(r,"borderLeftWidth"),x=w?"(0 - "+w+")":0,k=b?"(0 - "+b+")":0;t.each([g,v,y],(function(t,e){var n=e[0].style;if(n.position="absolute",t<2)u?n.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - ($.boxModel?0:"+s.quirksmodeOffsetHack+') + "px"'):n.setExpression("height",'this.parentNode.offsetHeight + "px"'),u?n.setExpression("width",'$.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):n.setExpression("width",'this.parentNode.offsetWidth + "px"'),k&&n.setExpression("left",k),x&&n.setExpression("top",x);else if(s.centerY)u&&n.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),n.marginTop=0;else if(!s.centerY&&u){var i="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(s.css&&s.css.top?parseInt(s.css.top):0)+') + "px"';n.setExpression("top",i)}}))}if(d&&(y.append(d),(d.jquery||d.nodeType)&&t(d).show()),t.support.opacity||t.support.style||!s.showOverlay||g.show(),s.fadeIn?(s.showOverlay&&v._fadeIn(s.fadeIn),d&&y.fadeIn(s.fadeIn)):(s.showOverlay&&v.show(),d&&y.show()),o(1,r,s),u?(n=y[0],i=t(":input:enabled:visible",n),s.focusInput&&setTimeout(l,20)):function(t,e,n){var i=t.parentNode,r=t.style,a=(i.offsetWidth-t.offsetWidth)/2-c(i,"borderLeftWidth"),s=(i.offsetHeight-t.offsetHeight)/2-c(i,"borderTopWidth");e&&(r.left=a>0?a+"px":"0");n&&(r.top=s>0?s+"px":"0")}(y[0],s.centerX,s.centerY),s.timeout){var S=setTimeout((function(){u?t.unblockUI(s):t(r).unblock(s)}),s.timeout);t(r).data("blockUI.timeout",S)}}function a(e,r){var a=e==window,u=t(e),l=u.data("blockUI.history"),c=u.data("blockUI.timeout");c&&(clearTimeout(c),u.removeData("blockUI.timeout")),r=t.extend({},t.blockUI.defaults,r||{}),o(0,e,r);var d=a?t("body").children().filter(".blockUI"):t(".blockUI",e);a&&(n=i=null),r.fadeOut?(d.fadeOut(r.fadeOut),setTimeout((function(){s(d,l,r,e)}),r.fadeOut)):s(d,l,r,e)}function s(e,n,i,r){e.each((function(t,e){this.parentNode&&this.parentNode.removeChild(this)})),n&&n.el&&(n.el.style.display=n.display,n.el.style.position=n.position,n.parent&&n.parent.appendChild(n.el),t(n.el).removeData("blockUI.history")),"function"==typeof i.onUnblock&&i.onUnblock(r,i)}function o(e,i,r){var a=i==window,s=t(i);if((e||(!a||n)&&(a||s.data("blockUI.isBlocked")))&&(a||s.data("blockUI.isBlocked",e),!e||r.showOverlay)){var o="mousedown mouseup keydown keypress";e?t(document).bind(o,r,u):t(document).unbind(o,u)}}function u(e){if(e.keyCode&&9==e.keyCode&&n&&e.data.constrainTabKey){var r=i,a=!e.shiftKey&&e.target==r[r.length-1],s=e.shiftKey&&e.target==r[0];if(a||s)return setTimeout((function(){l(s)}),10),!1}return t(e.target).parents("div.blockMsg").length>0||0==t(e.target).parents().children().filter("div.blockUI").length}function l(t){if(i){var e=i[!0===t?i.length-1:0];e&&e.focus()}}function c(e,n){return parseInt(t.css(e,n))||0}}(t);var e={version:20120603,$:function(){var t;switch(arguments.length){case 0:return document;case 2:e.$(arguments[0]).innerHTML=arguments[1];break;case 3:e.$(arguments[0]).style[arguments[1]]=arguments[2]}return arguments.length>0&&(t="string"==typeof arguments[0]?e.$().getElementById(arguments[0]):arguments[0]),null!=t&&(t.$$=function(){switch(arguments.length){case 0:this.$$=function(){return e.$.apply(null,arguments)};break;case 1:t.innerHTML=arguments[0];break;case 2:t.style[arguments[0]]=arguments[1]}return t},t.$$after=function(t){var n=this,i=e.$(t);do{i=i.nextSibling}while(i&&1!=i.nodeType);return null!=i?i!=n&&i.parentNode.insertBefore(n,i):t!=n&&t.parentNode.appendChild(n),e.$(n)},t.$$before=function(t){var n=this,i=e.$(t);do{i=i.previousSibling}while(i&&1!=i.nodeType);var r=i;if(null!=r){do{r=r.nextSibling}while(r&&1!=r.nodeType);i!=n&&i.parentNode.insertBefore(n,r)}else t!=n&&t.parentNode.insertBefore(n,t);return e.$(n)},t.$$prev=function(){var t=this;do{t=t.previousSibling}while(t&&1!=t.nodeType);return null!=t?e.$(t):t},t.$$next=function(){var t=this;do{t=t.nextSibling}while(t&&1!=t.nodeType);return null!=t?e.$(t):t},t.$$first=function(){var t=this;return null!=(t=(t=t.firstChild)&&1!=t.nodeType?t.nextSibling:t)?e.$(t):t},t.$$last=function(){var t=this;return null!=(t=(t=t.lastChild)&&1!=t.nodeType?t.previousSibling:t)?e.$(t):t},t.$$parent=function(t){var n=this;t=t||1;for(var i=0;i0)var x=setTimeout((function(){4!=_.readyState&&(_.abort(),d&&f(3))}),g)}else"get"==i||"head"==i?_.send(null):"post"==i&&_.send(v(a)),p(_.status),200==_.status?"get"==i||"post"==i?"text"==s?m(_.responseText):"xml"==s&&m(_.responseXML):"head"==i&&m(y(_.getAllResponseHeaders())):404==_.status?d&&f(2):d&&f(1)}else d&&f(0)},$c:{set:function(t,n,i,r,a,s,o){if(void 0!==t){i=i||0;var u=new Date;u.setTime(u.getTime()+1e3*i),e.$().cookie=t+"="+encodeURIComponent(n)+"; "+(void 0===i?"":"expires="+u.toGMTString()+"; ")+(void 0===r?"path=/;":"path="+r+"; ")+(void 0===a?"":"domain="+a+"; ")+(!0===s?"secure; ":"")+(void 0===o?"":"SameSite="+o+";")}},get:function(t){var n=e.$().cookie,i=n.length;if(i){var r=n.indexOf(t+"=");if(-1!=r){var a=n.indexOf(";",r);return-1==a&&(a=i),r+=t.length+1,decodeURIComponent(n.substring(r,a))}}},erase:function(t){this.set(t,"",-1)},test:function(){this.set("test_cookie","test",10);var t="test"===this.get("test_cookie");return this.erase("test_cookie"),t}},$e:{add:function(t,e,n){if(null==t.event_list&&(t.event_list={}),null==t.event_list[e]){t.event_list[e]=[];var i=function(n){n=n||window.event;var i=t.event_list[e];for(var r in i)i[r](n)};t.addEventListener?t.addEventListener(e,i,!1):t.attachEvent?t.attachEvent("on"+e,i):t["on"+e]=i}var r=t.event_list[e],a=!1;for(var s in r)r[s]==n&&(a=!0);a||t.event_list[e].push(n)},remove:function(t,e,n){if(null==t.event_list)return!1;if(null==t.event_list[e])return!1;var i=t.event_list[e];for(var r in i)if(i[r]==n)return i=i.splice(r,1),!0;return!1}},$f:function(t){t=t||{};var n={formid:"",url:"",onstart:function(){},onsend:function(){}};for(var i in n)void 0===t[i]&&(t[i]=n[i]);var r=t.formid,a=t.url,s=t.onsend,o=t.onstart,u="f"+e.$s.randnum(0,1e6),l=e.$i({create:"div",attribute:{},insert:e.$().body});return l.innerHTML='',l.style.display="none",e.$(u).onsendcomplete=function(){setTimeout((function(){e.$().body.removeChild(l)}),6e4),s()},e.$(r).setAttribute("target",u),e.$(r).setAttribute("action",a),e.$(r).submit(),o(),l},$i:function(t){t=t||{};var n={create:"script",attribute:{type:"text/javascript"},insert:e.$().body,onready:function(){}};for(var i in n)void 0===t[i]&&(t[i]=n[i]);var r=t.create,a=t.attribute,s=t.insert,o=t.onready,u=e.$().createElement(r);for(var l in a)u.setAttribute(l,a[l]);if("script"==r&&void 0!==a.src&&(u.readyState?u.onreadystatechange=function(){"loaded"!=u.readyState&&"complete"!=u.readyState||(u.onreadystatechange=null,o())}:u.onload=function(){o()}),s.appendChild(u),"script"==r&&void 0===a.src)u.$$=function(){u.text=arguments[0]};else{if("style"!=r)return e.$(u);u.$$=function(){u.styleSheet?u.styleSheet.cssText=e.$().createTextNode(arguments[0]).nodeValue:u.appendChild(e.$().createTextNode(arguments[0]))}}return u},$r:{rl:[],or:function(t){e.$r.rl.length||e.$r.br((function(){for(var t=0;t=0?"+":"-")+et(Math.abs(t),6)},gg:function(){return et(this.weekYear()%100,2)},gggg:function(){return et(this.weekYear(),4)},ggggg:function(){return et(this.weekYear(),5)},GG:function(){return et(this.isoWeekYear()%100,2)},GGGG:function(){return et(this.isoWeekYear(),4)},GGGGG:function(){return et(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.lang().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.lang().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return ut(this.milliseconds()/100)},SS:function(){return et(ut(this.milliseconds()/10),2)},SSS:function(){return et(this.milliseconds(),3)},SSSS:function(){return et(this.milliseconds(),3)},Z:function(){var t=-this.zone(),e="+";return t<0&&(t=-t,e="-"),e+et(ut(t/60),2)+":"+et(ut(t)%60,2)},ZZ:function(){var t=-this.zone(),e="+";return t<0&&(t=-t,e="-"),e+et(ut(t/60),2)+et(ut(t)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},B=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];function X(t,e){return function(n){return et(t.call(this,n),e)}}function V(t,e){return function(n){return this.lang().ordinal(t.call(this,n),e)}}for(;G.length;)n=G.pop(),q[n+"o"]=V(q[n],n);for(;R.length;)n=R.pop(),q[n+n]=X(q[n],2);function Z(){}function K(t){ft(t),J(this,t)}function Q(t){var e=st(t),n=e.year||0,i=e.month||0,r=e.week||0,a=e.day||0,s=e.hour||0,o=e.minute||0,u=e.second||0,l=e.millisecond||0;this._milliseconds=+l+1e3*u+6e4*o+36e5*s,this._days=+a+7*r,this._months=+i+12*n,this._data={},this._bubble()}function J(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return e.hasOwnProperty("toString")&&(t.toString=e.toString),e.hasOwnProperty("valueOf")&&(t.valueOf=e.valueOf),t}function tt(t){return t<0?Math.ceil(t):Math.floor(t)}function et(t,e,n){for(var i=""+Math.abs(t),r=t>=0;i.length=0?Math.floor(e):Math.ceil(e)),n}function lt(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function ct(t){return dt(t)?366:365}function dt(t){return t%4==0&&t%100!=0||t%400==0}function ft(t){var e;t._a&&-2===t._pf.overflow&&(e=t._a[s]<0||t._a[s]>11?s:t._a[o]<1||t._a[o]>lt(t._a[a],t._a[s])?o:t._a[u]<0||t._a[u]>23?u:t._a[l]<0||t._a[l]>59?l:t._a[c]<0||t._a[c]>59?c:t._a[d]<0||t._a[d]>999?d:-1,t._pf._overflowDayOfYear&&(eo)&&(e=o),t._pf.overflow=e)}function ht(t){return null==t._isValid&&(t._isValid=!isNaN(t._d.getTime())&&t._pf.overflow<0&&!t._pf.empty&&!t._pf.invalidMonth&&!t._pf.nullInput&&!t._pf.invalidFormat&&!t._pf.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===t._pf.charsLeftOver&&0===t._pf.unusedTokens.length)),t._isValid}function pt(t){return t?t.toLowerCase().replace("_","-"):t}function mt(t,n){return n._isUTC?e(t).zone(n._offset||0):e(t).local()}function gt(t){var n,i,r,a,s=0,o=function(t){if(!f[t]&&p)try{require("./lang/"+t)}catch(t){}return f[t]};if(!t)return e.fn._lang;if(!it(t)){if(i=o(t))return i;t=[t]}for(;s0;){if(i=o(a.slice(0,n).join("-")))return i;if(r&&r.length>=n&&rt(a,r,!0)>=n-1)break;n--}s++}return e.fn._lang}function vt(t,e){return t.isValid()?(e=yt(e,t.lang()),z[e]||(z[e]=function(t){var e,n,i,r=t.match(y);for(e=0,n=r.length;e=0&&_.test(t);)t=t.replace(_,i),_.lastIndex=0,n-=1;return t}function _t(t,e){var n=e._strict;switch(t){case"DDDD":return I;case"YYYY":case"GGGG":case"gggg":return n?Y:x;case"Y":case"G":case"g":return $;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return n?E:k;case"S":if(n)return O;case"SS":if(n)return F;case"SSS":if(n)return I;case"DDD":return b;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return M;case"a":case"A":return gt(e._l)._meridiemParse;case"X":return C;case"Z":case"ZZ":return T;case"T":return D;case"SSSS":return S;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return n?F:w;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return w;default:return new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,i,r){return e||n||i||r}))))}}function wt(t){var e=(t=t||"").match(T)||[],n=((e[e.length-1]||[])+"").match(A)||["-",0,0],i=60*n[1]+ut(n[2]);return"+"===n[0]?-i:i}function bt(t,e,n){var i,r=n._a;switch(t){case"M":case"MM":null!=e&&(r[s]=ut(e)-1);break;case"MMM":case"MMMM":null!=(i=gt(n._l).monthsParse(e))?r[s]=i:n._pf.invalidMonth=e;break;case"D":case"DD":null!=e&&(r[o]=ut(e));break;case"DDD":case"DDDD":null!=e&&(n._dayOfYear=ut(e));break;case"YY":r[a]=ut(e)+(ut(e)>68?1900:2e3);break;case"YYYY":case"YYYYY":case"YYYYYY":r[a]=ut(e);break;case"a":case"A":n._isPm=gt(n._l).isPM(e);break;case"H":case"HH":case"h":case"hh":r[u]=ut(e);break;case"m":case"mm":r[l]=ut(e);break;case"s":case"ss":r[c]=ut(e);break;case"S":case"SS":case"SSS":case"SSSS":r[d]=ut(1e3*("0."+e));break;case"X":n._d=new Date(1e3*parseFloat(e));break;case"Z":case"ZZ":n._useUTC=!0,n._tzm=wt(e);break;case"w":case"ww":case"W":case"WW":case"d":case"dd":case"ddd":case"dddd":case"e":case"E":t=t.substr(0,1);case"gg":case"gggg":case"GG":case"GGGG":case"GGGGG":t=t.substr(0,2),e&&(n._w=n._w||{},n._w[t]=e)}}function xt(t){var n,i,r,c,d,f,h,p,m,g,v=[];if(!t._d){for(r=function(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[o]&&null==t._a[s]&&(d=function(n){var i=parseInt(n,10);return n?n.length<3?i>68?1900+i:2e3+i:i:null==t._a[a]?e().weekYear():t._a[a]},null!=(f=t._w).GG||null!=f.W||null!=f.E?h=Ft(d(f.GG),f.W||1,f.E,4,1):(p=gt(t._l),m=null!=f.d?Dt(f.d,p):null!=f.e?parseInt(f.e,10)+p._week.dow:0,g=parseInt(f.w,10)||1,null!=f.d&&mct(c)&&(t._pf._overflowDayOfYear=!0),i=Tt(c,0,t._dayOfYear),t._a[s]=i.getUTCMonth(),t._a[o]=i.getUTCDate()),n=0;n<3&&null==t._a[n];++n)t._a[n]=v[n]=r[n];for(;n<7;n++)t._a[n]=v[n]=null==t._a[n]?2===n?1:0:t._a[n];v[u]+=ut((t._tzm||0)/60),v[l]+=ut((t._tzm||0)%60),t._d=(t._useUTC?Tt:Mt).apply(null,v)}}function kt(t){t._a=[],t._pf.empty=!0;var e,n,i,r,a,s=gt(t._l),o=""+t._i,l=o.length,c=0;for(i=yt(t._f,s).match(y)||[],e=0;e0&&t._pf.unusedInput.push(a),o=o.slice(o.indexOf(n)+n.length),c+=n.length),q[r]?(n?t._pf.empty=!1:t._pf.unusedTokens.push(r),bt(r,n,t)):t._strict&&!n&&t._pf.unusedTokens.push(r);t._pf.charsLeftOver=l-c,o.length>0&&t._pf.unusedInput.push(o),t._isPm&&t._a[u]<12&&(t._a[u]+=12),!1===t._isPm&&12===t._a[u]&&(t._a[u]=0),xt(t),ft(t)}function St(e){var n=e._i,i=m.exec(n);n===t?e._d=new Date:i?e._d=new Date(+i[1]):"string"==typeof n?function(t){var e,n,i=t._i,r=L.exec(i);if(r){for(t._pf.iso=!0,e=0,n=W.length;ea&&(s-=7),si?7:0)-(s0?t:t-1,dayOfYear:a>0?a:ct(t-1)+a}}function It(t){var n=t._i,i=t._f;return null===n?e.invalid({nullInput:!0}):("string"==typeof n&&(t._i=n=gt().preparse(n)),e.isMoment(n)?(t=function(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&h.hasOwnProperty(e)&&(n[e]=t[e]);return n}(n),t._d=new Date(+n._d)):i?it(i)?function(t){var e,n,i,r,a;if(0===t._f.length)return t._pf.invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r11?n?"pm":"PM":n?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(t,e){var n=this._calendar[t];return"function"==typeof n?n.apply(e):n},_relativeTime:{future:"in_quantity",past:"quantity_ago",s:"a_few_seconds",m:"a_minute",mm:"quantity_minutes",h:"an_hour",hh:"quantity_hours",d:"a_day",dd:"quantity_days",M:"a_month",MM:"quantity_months",y:"a_year",yy:"quantity_years"},relativeTime:function(t,e,n,i){var r=this._relativeTime[n];return"function"==typeof r?r(t,e,n,i):sswLangs.t(r,{number:t})},pastFuture:function(t,e){var n=this._relativeTime[t>0?"future":"past"];return"function"==typeof n?n(e):sswLangs.t(n,{number:e})},ordinal:function(t){return sswLangs.t(this._ordinal,{number:t})},_ordinal:"{{ number }}",preparse:function(t){return t},postformat:function(t){return t},week:function(t){return Ot(t,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),(e=function(e,n,i,r){var a;return"boolean"==typeof i&&(r=i,i=t),(a={})._isAMomentObject=!0,a._i=e,a._f=n,a._l=i,a._strict=r,a._isUTC=!1,a._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1},It(a)}).utc=function(e,n,i,r){var a;return"boolean"==typeof i&&(r=i,i=t),(a={})._isAMomentObject=!0,a._useUTC=!0,a._isUTC=!0,a._l=i,a._i=e,a._f=n,a._strict=r,a._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1},It(a).utc()},e.unix=function(t){return e(1e3*t)},e.duration=function(t,n){var i,r,a,s=t,f=null;return e.isDuration(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(s={},n?s[n]=t:s.milliseconds=t):(f=g.exec(t))?(i="-"===f[1]?-1:1,s={y:0,d:ut(f[o])*i,h:ut(f[u])*i,m:ut(f[l])*i,s:ut(f[c])*i,ms:ut(f[d])*i}):(f=v.exec(t))&&(i="-"===f[1]?-1:1,s={y:(a=function(t){var e=t&&parseFloat(t.replace(",","."));return(isNaN(e)?0:e)*i})(f[2]),M:a(f[3]),d:a(f[4]),h:a(f[5]),m:a(f[6]),s:a(f[7]),w:a(f[8])}),r=new Q(s),e.isDuration(t)&&t.hasOwnProperty("_lang")&&(r._lang=t._lang),r},e.version="2.5.1",e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.updateOffset=function(){},e.lang=function(t,n){return t?(n?function(t,e){e.abbr=t,f[t]||(f[t]=new Z),f[t].set(e),f[t]}(pt(t),n):null===n?(!function(t){delete f[t]}(t),t="en"):f[t]||gt(t),(e.duration.fn._lang=e.fn._lang=gt(t))._abbr):e.fn._lang._abbr},e.langData=function(t){return t&&t._lang&&t._lang._abbr&&(t=t._lang._abbr),gt(t)},e.isMoment=function(t){return t instanceof K||null!=t&&t.hasOwnProperty("_isAMomentObject")},e.isDuration=function(t){return t instanceof Q},n=B.length-1;n>=0;--n)ot(B[n]);function Yt(t,n){e.fn[t]=e.fn[t+"s"]=function(t){var i=this._isUTC?"UTC":"";return null!=t?(this._d["set"+i+n](t),e.updateOffset(this),this):this._d["get"+i+n]()}}for(e.normalizeUnits=function(t){return at(t)},e.invalid=function(t){var n=e.utc(NaN);return null!=t?J(n._pf,t):n._pf.userInvalidated=!0,n},e.parseZone=function(t){return e(t).parseZone()},J(e.fn=K.prototype,{clone:function(){return e(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().lang("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var t=e(this).utc();return 00)},parsingFlags:function(){return J({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(){return this.zone(0)},local:function(){return this.zone(0),this._isUTC=!1,this},format:function(t){var n=vt(this,t||e.defaultFormat);return this.lang().postformat(n)},add:function(t,n){return nt(this,"string"==typeof t?e.duration(+n,t):e.duration(t,n),1),this},subtract:function(t,n){return nt(this,"string"==typeof t?e.duration(+n,t):e.duration(t,n),-1),this},diff:function(t,n,i){var r,a,s=mt(t,this),o=6e4*(this.zone()-s.zone());return"year"===(n=at(n))||"month"===n?(r=432e5*(this.daysInMonth()+s.daysInMonth()),a=12*(this.year()-s.year())+(this.month()-s.month()),a+=(this-e(this).startOf("month")-(s-e(s).startOf("month")))/r,a-=6e4*(this.zone()-e(this).startOf("month").zone()-(s.zone()-e(s).startOf("month").zone()))/r,"year"===n&&(a/=12)):(r=this-s,a="second"===n?r/1e3:"minute"===n?r/6e4:"hour"===n?r/36e5:"day"===n?(r-o)/864e5:"week"===n?(r-o)/6048e5:r),i?a:tt(a)},from:function(t,n){return e.duration(this.diff(t)).lang(this.lang()._abbr).humanize(!n)},fromNow:function(t){return this.from(e(),t)},calendar:function(){var t=mt(e(),this).startOf("day"),n=this.diff(t,"days",!0),i=n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse";return this.format(this.lang().calendar(i,this))},isLeapYear:function(){return dt(this.year())},isDST:function(){return this.zone()+e(t).startOf(n)},isBefore:function(t,n){return n=void 0!==n?n:"millisecond",+this.clone().startOf(n)<+e(t).startOf(n)},isSame:function(t,e){return e=e||"ms",+this.clone().startOf(e)==+mt(t,this).startOf(e)},min:function(t){return(t=e.apply(null,arguments))this?this:t},zone:function(t){var n=this._offset||0;return null==t?this._isUTC?n:this._d.getTimezoneOffset():("string"==typeof t&&(t=wt(t)),Math.abs(t)<16&&(t*=60),this._offset=t,this._isUTC=!0,n!==t&&nt(this,e.duration(n-t,"m"),1,!0),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(t){return t=t?e(t).zone():0,(this.zone()-t)%60==0},daysInMonth:function(){return lt(this.year(),this.month())},dayOfYear:function(t){var n=r((e(this).startOf("day")-e(this).startOf("year"))/864e5)+1;return null==t?n:this.add("d",t-n)},quarter:function(){return Math.ceil((this.month()+1)/3)},weekYear:function(t){var e=Ot(this,this.lang()._week.dow,this.lang()._week.doy).year;return null==t?e:this.add("y",t-e)},isoWeekYear:function(t){var e=Ot(this,1,4).year;return null==t?e:this.add("y",t-e)},week:function(t){var e=this.lang().week(this);return null==t?e:this.add("d",7*(t-e))},isoWeek:function(t){var e=Ot(this,1,4).week;return null==t?e:this.add("d",7*(t-e))},weekday:function(t){var e=(this.day()+7-this.lang()._week.dow)%7;return null==t?e:this.add("d",t-e)},isoWeekday:function(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)},get:function(t){return this[t=at(t)]()},set:function(t,e){return"function"==typeof this[t=at(t)]&&this[t](e),this},lang:function(e){return e===t?this._lang:(this._lang=gt(e),this)}}),n=0;n0,c[4]=i,Ct.apply({},c));return t&&(f=this.lang().pastFuture(d,f)),this.lang().postformat(f)},add:function(t,n){var i=e.duration(t,n);return this._milliseconds+=i._milliseconds,this._days+=i._days,this._months+=i._months,this._bubble(),this},subtract:function(t,n){var i=e.duration(t,n);return this._milliseconds-=i._milliseconds,this._days-=i._days,this._months-=i._months,this._bubble(),this},get:function(t){return this[(t=at(t)).toLowerCase()+"s"]()},as:function(t){return this["as"+(t=at(t)).charAt(0).toUpperCase()+t.slice(1)+"s"]()},lang:e.fn.lang,toIsoString:function(){var t=Math.abs(this.years()),e=Math.abs(this.months()),n=Math.abs(this.days()),i=Math.abs(this.hours()),r=Math.abs(this.minutes()),a=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(t?t+"Y":"")+(e?e+"M":"")+(n?n+"D":"")+(i||r||a?"T":"")+(i?i+"H":"")+(r?r+"M":"")+(a?a+"S":""):"P0D"}}),j)j.hasOwnProperty(n)&&($t(n,j[n]),Et(n.toLowerCase()));function Lt(t){var n=!1,r=e;"undefined"==typeof ender&&(t?(i.sswMoment=function(){return!n&&console&&console.warn&&(n=!0,console.warn("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.")),r.apply(null,arguments)},J(i.sswMoment,local_moment)):i.sswMoment=e)}$t("Weeks",6048e5),e.duration.fn.asMonths=function(){return(+this-31536e6*this.years())/2592e6+12*this.years()},e.lang("en",{ordinal:function(t){var e=t%10;return t+(1===ut(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),p?(module.exports=e,Lt(!0)):Lt()}).call(this),function(t,e){var n=1e3,i=!1,r=t([]),a=function(n,i){var a=n.data("livestampdata");if("number"==typeof i&&(i*=1e3),n.removeAttr("data-ssw-livestamp").removeData("ssw-livestamp"),i=e(i),e.isMoment(i)&&!isNaN(+i)){var s=t.extend({},{original:n.contents()},a);s.sswMoment=e(i),n.data("livestampdata",s).empty(),r.push(n[0])}},s=function(){i||(o.update(),setTimeout(s,n))},o={update:function(){t("[data-ssw-livestamp]").each((function(){var e=t(this);a(e,e.data("ssw-livestamp"))}));var n=[];r.each((function(){var i=t(this),r=i.data("livestampdata");if(void 0===r)n.push(this);else if(e.isMoment(r.sswMoment)){var a=i.html(),s=r.sswMoment.fromNow();if(a!=s){var o=t.Event("change.livestamp");i.trigger(o,[a,s]),o.isDefaultPrevented()||i.html(s)}}})),r=r.not(n)},pause:function(){i=!0},resume:function(){i=!1,s()},interval:function(t){if(void 0===t)return n;n=t}},u={add:function(n,i){return"number"==typeof i&&(i*=1e3),i=e(i),e.isMoment(i)&&!isNaN(+i)&&(n.each((function(){a(t(this),i)})),o.update()),n},destroy:function(e){return r=r.not(e),e.each((function(){var n=t(this),i=n.data("livestampdata");if(void 0===i)return e;n.html(i.original?i.original:"").removeData("livestampdata")})),e},isLivestamp:function(t){return void 0!==t.data("livestampdata")}};t.livestamp=o,t((function(){o.resume()})),t.fn.livestamp=function(t,e){return u[t]||(e=t,t="add"),u[t](this,e)}}(t,sswMoment),function(t){var e={};if(t.ajaxPrefilter)t.ajaxPrefilter((function(t,n,i){var r=t.port;"abort"===t.mode&&(e[r]&&e[r].abort(),e[r]=i)}));else{var n=t.ajax;t.ajax=function(i){var r=("mode"in i?i:t.ajaxSettings).mode,a=("port"in i?i:t.ajaxSettings).port;return"abort"===r?(e[a]&&e[a].abort(),e[a]=n.apply(this,arguments),e[a]):n.apply(this,arguments)}}}(t)};if("undefined"==typeof sswLibraryJsLoaded||!sswLibraryJsLoaded){var loadSswLibs=setInterval((function(){"undefined"!=typeof sswJqLoaded&&sswJqLoaded&&(sswLibraries(ssw),sswLibraryJsLoaded=!0,sswDispatchEvent("sswlibraryload",{detail:{ssw:ssw},bubbles:!0,cancelable:!1}),clearInterval(loadSswLibs))}),10);localStorage.setItem("sswLoadsCntr",0),localStorage.setItem("igIcEvent",0)}!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).ProgressBar=t()}}((function(){return function t(e,n,i){function r(s,o){if(!n[s]){if(!e[s]){var u="function"==typeof require&&require;if(!o&&u)return u(s,!0);if(a)return a(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[s]={exports:{}};e[s][0].call(c.exports,(function(t){var n=e[s][1][t];return r(n||t)}),c,c.exports,t,e,n,i)}return n[s].exports}for(var a="function"==typeof require&&require,s=0;s=a,u=i-(a-s),t.isPlaying()&&(o?(h(c,t._attachment,u),t.stop(!0)):(t._scheduleId=p(t._timeoutHandler,16.666666666666668),y(t,"beforeTween"),s=0?t:0-t}return u=1-(c=3*e)-(l=3*(i-e)-c),d=1-(h=3*n)-(f=3*(r-n)-h),s=t,o=function(t){return 1/(200*t)}(a),function(t){return((d*t+f)*t+h)*t}(function(t,e){var n,i,r,a,s,o;for(r=t,o=0;o<8;o++){if(g(a=p(r)-t)i)return i;for(;na?n=r:i=r,r=.5*(i-n)+n}return r}(s,o))}r.setBezierFunction=function(e,n,i,a,s){var o=function(e,n,i,r){return function(a){return t(a,e,n,i,r,1)}}(n,i,a,s);return o.displayName=e,o.x1=n,o.y1=i,o.x2=a,o.y2=s,r.prototype.formula[e]=o},r.unsetBezierFunction=function(t){delete r.prototype.formula[t]}}(),(t=new r)._filterArgs=[],r.interpolate=function(e,n,i,a,s){var o=r.shallowCopy({},e),u=s||0,l=r.composeEasingObject(e,a||"linear");t.set({});var c=t._filterArgs;c.length=0,c[0]=o,c[1]=e,c[2]=n,c[3]=l,r.applyFilter(t,"tweenCreated"),r.applyFilter(t,"beforeTween");var d=function(t,e,n,i,a,s){return r.tweenProps(i,e,t,n,1,s,a)}(e,o,n,i,l,u);return r.applyFilter(t,"afterTween"),d},function(t){var e=/(\d|\-|\.)/,n=/([^\-0-9\.]+)/g,i=/[0-9.\-]+/g,r=new RegExp("rgb\\("+i.source+/,\s*/.source+i.source+/,\s*/.source+i.source+"\\)","g"),a=/^.*\(/,s=/#([0-9]|[a-f]){3,6}/gi,o="VAL";function u(t,e){var n,i=[],r=t.length;for(n=0;nt.strokeWidth&&(e=t.trailWidth);var n=50-e/2;return r.render(this._pathTemplate,{radius:n,"2radius":2*n})},a.prototype._trailString=function(t){return this._pathString(t)},e.exports=a},{"./shape":7,"./utils":9}],3:[function(t,e,n){var i=t("./shape"),r=t("./utils"),a=function(t,e){this._pathTemplate="M 0,{center} L 100,{center}",i.apply(this,arguments)};(a.prototype=new i).constructor=a,a.prototype._initializeSvg=function(t,e){t.setAttribute("viewBox","0 0 100 "+e.strokeWidth),t.setAttribute("preserveAspectRatio","none")},a.prototype._pathString=function(t){return r.render(this._pathTemplate,{center:t.strokeWidth/2})},a.prototype._trailString=function(t){return this._pathString(t)},e.exports=a},{"./shape":7,"./utils":9}],4:[function(t,e,n){e.exports={Line:t("./line"),Circle:t("./circle"),SemiCircle:t("./semicircle"),Square:t("./square"),Path:t("./path"),Shape:t("./shape"),utils:t("./utils")}},{"./circle":2,"./line":3,"./path":5,"./semicircle":6,"./shape":7,"./square":8,"./utils":9}],5:[function(t,e,n){var i=t("shifty"),r=t("./utils"),a={easeIn:"easeInCubic",easeOut:"easeOutCubic",easeInOut:"easeInOutCubic"},s=function t(e,n){if(!(this instanceof t))throw new Error("Constructor was called without new keyword");var i;n=r.extend({duration:800,easing:"linear",from:{},to:{},step:function(){}},n),i=r.isString(e)?document.querySelector(e):e,this.path=i,this._opts=n,this._tweenable=null;var a=this.path.getTotalLength();this.path.style.strokeDasharray=a+" "+a,this.set(0)};s.prototype.value=function(){var t=this._getComputedDashOffset(),e=this.path.getTotalLength();return parseFloat((1-t/e).toFixed(6),10)},s.prototype.set=function(t){this.stop(),this.path.style.strokeDashoffset=this._progressToOffset(t);var e=this._opts.step;if(r.isFunction(e)){var n=this._easing(this._opts.easing);e(this._calculateTo(t,n),this._opts.shape||this,this._opts.attachment)}},s.prototype.stop=function(){this._stopTween(),this.path.style.strokeDashoffset=this._getComputedDashOffset()},s.prototype.animate=function(t,e,n){e=e||{},r.isFunction(e)&&(n=e,e={});var a=r.extend({},e),s=r.extend({},this._opts);e=r.extend(s,e);var o=this._easing(e.easing),u=this._resolveFromAndTo(t,o,a);this.stop(),this.path.getBoundingClientRect();var l=this._getComputedDashOffset(),c=this._progressToOffset(t),d=this;this._tweenable=new i,this._tweenable.tween({from:r.extend({offset:l},u.from),to:r.extend({offset:c},u.to),duration:e.duration,easing:o,step:function(t){d.path.style.strokeDashoffset=t.offset;var n=e.shape||d;e.step(t,n,e.attachment)},finish:function(t){r.isFunction(n)&&n()}})},s.prototype._getComputedDashOffset=function(){var t=window.getComputedStyle(this.path,null);return parseFloat(t.getPropertyValue("stroke-dashoffset"),10)},s.prototype._progressToOffset=function(t){var e=this.path.getTotalLength();return e-t*e},s.prototype._resolveFromAndTo=function(t,e,n){return n.from&&n.to?{from:n.from,to:n.to}:{from:this._calculateFrom(e),to:this._calculateTo(t,e)}},s.prototype._calculateFrom=function(t){return i.interpolate(this._opts.from,this._opts.to,this.value(),t)},s.prototype._calculateTo=function(t,e){return i.interpolate(this._opts.from,this._opts.to,t,e)},s.prototype._stopTween=function(){null!==this._tweenable&&(this._tweenable.stop(),this._tweenable=null)},s.prototype._easing=function(t){return a.hasOwnProperty(t)?a[t]:t},e.exports=s},{"./utils":9,shifty:1}],6:[function(t,e,n){var i=t("./shape"),r=t("./circle"),a=t("./utils"),s=function(t,e){this._pathTemplate="M 50,50 m -{radius},0 a {radius},{radius} 0 1 1 {2radius},0",this.containerAspectRatio=2,i.apply(this,arguments)};(s.prototype=new i).constructor=s,s.prototype._initializeSvg=function(t,e){t.setAttribute("viewBox","0 0 100 50")},s.prototype._initializeTextContainer=function(t,e,n){t.text.style&&(n.style.top="auto",n.style.bottom="0",t.text.alignToBottom?a.setStyle(n,"transform","translate(-50%, 0)"):a.setStyle(n,"transform","translate(-50%, 50%)"))},s.prototype._pathString=r.prototype._pathString,s.prototype._trailString=r.prototype._trailString,e.exports=s},{"./circle":2,"./shape":7,"./utils":9}],7:[function(t,e,n){var i=t("./path"),r=t("./utils"),a="Object is destroyed",s=function t(e,n){if(!(this instanceof t))throw new Error("Constructor was called without new keyword");if(0!==arguments.length){this._opts=r.extend({color:"#555",strokeWidth:1,trailColor:null,trailWidth:null,fill:null,text:{style:{color:null,position:"absolute",left:"50%",top:"50%",padding:0,margin:0,transform:{prefix:!0,value:"translate(-50%, -50%)"}},autoStyleContainer:!0,alignToBottom:!0,value:null,className:"progressbar-text"},svgStyle:{display:"block",width:"100%"},warnings:!1},n,!0),r.isObject(n)&&void 0!==n.svgStyle&&(this._opts.svgStyle=n.svgStyle),r.isObject(n)&&r.isObject(n.text)&&void 0!==n.text.style&&(this._opts.text.style=n.text.style);var a,s=this._createSvgView(this._opts);if(!(a=r.isString(e)?document.querySelector(e):e))throw new Error("Container does not exist: "+e);this._container=a,this._container.appendChild(s.svg),this._opts.warnings&&this._warnContainerAspectRatio(this._container),this._opts.svgStyle&&r.setStyles(s.svg,this._opts.svgStyle),this.svg=s.svg,this.path=s.path,this.trail=s.trail,this.text=null;var o=r.extend({attachment:void 0,shape:this},this._opts);this._progressPath=new i(s.path,o),r.isObject(this._opts.text)&&null!==this._opts.text.value&&this.setText(this._opts.text.value)}};s.prototype.animate=function(t,e,n){if(null===this._progressPath)throw new Error(a);this._progressPath.animate(t,e,n)},s.prototype.stop=function(){if(null===this._progressPath)throw new Error(a);void 0!==this._progressPath&&this._progressPath.stop()},s.prototype.destroy=function(){if(null===this._progressPath)throw new Error(a);this.stop(),this.svg.parentNode.removeChild(this.svg),this.svg=null,this.path=null,this.trail=null,this._progressPath=null,null!==this.text&&(this.text.parentNode.removeChild(this.text),this.text=null)},s.prototype.set=function(t){if(null===this._progressPath)throw new Error(a);this._progressPath.set(t)},s.prototype.value=function(){if(null===this._progressPath)throw new Error(a);return void 0===this._progressPath?0:this._progressPath.value()},s.prototype.setText=function(t){if(null===this._progressPath)throw new Error(a);null===this.text&&(this.text=this._createTextContainer(this._opts,this._container),this._container.appendChild(this.text)),r.isObject(t)?(r.removeChildren(this.text),this.text.appendChild(t)):this.text.innerHTML=t},s.prototype._createSvgView=function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");this._initializeSvg(e,t);var n=null;(t.trailColor||t.trailWidth)&&(n=this._createTrail(t),e.appendChild(n));var i=this._createPath(t);return e.appendChild(i),{svg:e,path:i,trail:n}},s.prototype._initializeSvg=function(t,e){t.setAttribute("viewBox","0 0 100 100")},s.prototype._createPath=function(t){var e=this._pathString(t);return this._createPathElement(e,t)},s.prototype._createTrail=function(t){var e=this._trailString(t),n=r.extend({},t);return n.trailColor||(n.trailColor="#eee"),n.trailWidth||(n.trailWidth=n.strokeWidth),n.color=n.trailColor,n.strokeWidth=n.trailWidth,n.fill=null,this._createPathElement(e,n)},s.prototype._createPathElement=function(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d",t),n.setAttribute("stroke",e.color),n.setAttribute("stroke-width",e.strokeWidth),e.fill?n.setAttribute("fill",e.fill):n.setAttribute("fill-opacity","0"),n},s.prototype._createTextContainer=function(t,e){var n=document.createElement("div");n.className=t.text.className;var i=t.text.style;return i&&(t.text.autoStyleContainer&&(e.style.position="relative"),r.setStyles(n,i),i.color||(n.style.color=t.color)),this._initializeTextContainer(t,e,n),n},s.prototype._initializeTextContainer=function(t,e,n){},s.prototype._pathString=function(t){throw new Error("Override this function for each progress bar")},s.prototype._trailString=function(t){throw new Error("Override this function for each progress bar")},s.prototype._warnContainerAspectRatio=function(t){if(this.containerAspectRatio){var e=window.getComputedStyle(t,null),n=parseFloat(e.getPropertyValue("width"),10),i=parseFloat(e.getPropertyValue("height"),10);r.floatEquals(this.containerAspectRatio,n/i)||(console.warn("Incorrect aspect ratio of container","#"+t.id,"detected:",e.getPropertyValue("width")+"(width)","/",e.getPropertyValue("height")+"(height)","=",n/i),console.warn("Aspect ratio of should be",this.containerAspectRatio))}},e.exports=s},{"./path":5,"./utils":9}],8:[function(t,e,n){var i=t("./shape"),r=t("./utils"),a=function(t,e){this._pathTemplate="M 0,{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{strokeWidth}",this._trailTemplate="M {startMargin},{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{halfOfStrokeWidth}",i.apply(this,arguments)};(a.prototype=new i).constructor=a,a.prototype._pathString=function(t){var e=100-t.strokeWidth/2;return r.render(this._pathTemplate,{width:e,strokeWidth:t.strokeWidth,halfOfStrokeWidth:t.strokeWidth/2})},a.prototype._trailString=function(t){var e=100-t.strokeWidth/2;return r.render(this._trailTemplate,{width:e,strokeWidth:t.strokeWidth,halfOfStrokeWidth:t.strokeWidth/2,startMargin:t.strokeWidth/2-t.trailWidth/2})},e.exports=a},{"./shape":7,"./utils":9}],9:[function(t,e,n){var i="Webkit Moz O ms".split(" ");function r(t,e,n){for(var r=t.style,s=0;s