text: /*
  * Kendo UI v#= version # (http://www.telerik.com/kendo-ui)
  * Copyright #= year # Telerik AD. All rights reserved.
  *
  * Kendo UI commercial licenses may be obtained at
  * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
  * If you do not own a commercial license, this file shall be governed by the trial license terms.
  */
  
  !function(e,define){define(["./kendo.core.min","./kendo.userevents.min"],e)}(function(){return function(){!function(e,t){function n(e,t){return'<span unselectable="on" class="k-link"><span unselectable="on" class="k-icon k-i-arrow-'+e+'" title="'+t+'">'+t+"</span></span>"}var i=window.kendo,o=i.caret,r=i.keys,s=i.ui,a=s.Widget,l=i._activeElement,c=i._extractFormat,u=i.parseFloat,d=i.support.placeholder,h=i.getCulture,f=i._round,p="change",g="disabled",m="readonly",v="k-input",_="spin",w=".kendoNumericTextBox",b="touchend",y="mouseleave"+w,x="mouseenter"+w+" "+y,k="k-state-default",C="k-state-focused",S="k-state-hover",T="focus",D=".",A="k-state-selected",E="k-state-disabled",M="aria-disabled",P="aria-readonly",I=/^(-)?(\d*)$/,R=null,B=e.proxy,z=e.extend,L=a.extend({init:function(n,o){var r,s,l,u,d,h=this,f=o&&o.step!==t;a.fn.init.call(h,n,o),o=h.options,n=h.element.on("focusout"+w,B(h._focusout,h)).attr("role","spinbutton"),o.placeholder=o.placeholder||n.attr("placeholder"),h._initialOptions=z({},o),h._reset(),h._wrapper(),h._arrows(),h._input(),i.support.mobileOS?h._text.on(b+w+" "+T+w,function(){h._toggleText(!1),n.focus()}):h._text.on(T+w,B(h._click,h)),r=h.min(n.attr("min")),s=h.max(n.attr("max")),l=h._parse(n.attr("step")),o.min===R&&r!==R&&(o.min=r),o.max===R&&s!==R&&(o.max=s),f||l===R||(o.step=l),n.attr("aria-valuemin",o.min).attr("aria-valuemax",o.max),o.format=c(o.format),u=o.value,h.value(u!==R?u:n.val()),d=n.is("[disabled]")||e(h.element).parents("fieldset").is(":disabled"),d?h.enable(!1):h.readonly(n.is("[readonly]")),i.notify(h)},options:{name:"NumericTextBox",decimals:R,min:R,max:R,value:R,step:1,culture:"",format:"n",spinners:!0,placeholder:"",upArrowText:"Increase value",downArrowText:"Decrease value"},events:[p,_],_editable:function(e){var t=this,n=t.element,i=e.disable,o=e.readonly,r=t._text.add(n),s=t._inputWrapper.off(x);t._toggleText(!0),t._upArrowEventHandler.unbind("press"),t._downArrowEventHandler.unbind("press"),n.off("keydown"+w).off("keypress"+w).off("paste"+w),o||i?(s.addClass(i?E:k).removeClass(i?k:E),r.attr(g,i).attr(m,o).attr(M,i).attr(P,o)):(s.addClass(k).removeClass(E).on(x,t._toggleHover),r.removeAttr(g).removeAttr(m).attr(M,!1).attr(P,!1),t._upArrowEventHandler.bind("press",function(e){e.preventDefault(),t._spin(1),t._upArrow.addClass(A)}),t._downArrowEventHandler.bind("press",function(e){e.preventDefault(),t._spin(-1),t._downArrow.addClass(A)}),t.element.on("keydown"+w,B(t._keydown,t)).on("keypress"+w,B(t._keypress,t)).on("paste"+w,B(t._paste,t)))},readonly:function(e){this._editable({readonly:e===t?!0:e,disable:!1})},enable:function(e){this._editable({readonly:!1,disable:!(e=e===t?!0:e)})},destroy:function(){var e=this;e.element.add(e._text).add(e._upArrow).add(e._downArrow).add(e._inputWrapper).off(w),e._upArrowEventHandler.destroy(),e._downArrowEventHandler.destroy(),e._form&&e._form.off("reset",e._resetHandler),a.fn.destroy.call(e)},min:function(e){return this._option("min",e)},max:function(e){return this._option("max",e)},step:function(e){return this._option("step",e)},value:function(e){var n,i=this;return e===t?i._value:(e=i._parse(e),n=i._adjust(e),e===n&&(i._update(e),i._old=i._value),t)},focus:function(){this._focusin()},_adjust:function(e){var t=this,n=t.options,i=n.min,o=n.max;return e===R?e:(i!==R&&i>e?e=i:o!==R&&e>o&&(e=o),e)},_arrows:function(){var t,o=this,r=function(){clearTimeout(o._spinning),t.removeClass(A)},s=o.options,a=s.spinners,l=o.element;t=l.siblings(".k-icon"),t[0]||(t=e(n("n",s.upArrowText)+n("s",s.downArrowText)).insertAfter(l),t.wrapAll('<span class="k-select"/>')),a||(t.parent().toggle(a),o._inputWrapper.addClass("k-expand-padding")),o._upArrow=t.eq(0),o._upArrowEventHandler=new i.UserEvents(o._upArrow,{release:r}),o._downArrow=t.eq(1),o._downArrowEventHandler=new i.UserEvents(o._downArrow,{release:r})},_blur:function(){var e=this;e._toggleText(!0),e._change(e.element.val())},_click:function(e){var t=this;clearTimeout(t._focusing),t._focusing=setTimeout(function(){var n,i,r,s=e.target,a=o(s)[0],l=s.value.substring(0,a),c=t._format(t.options.format),u=c[","],d=0;u&&(i=RegExp("\\"+u,"g"),r=RegExp("([\\d\\"+u+"]+)(\\"+c[D]+")?(\\d+)?")),r&&(n=r.exec(l)),n&&(d=n[0].replace(i,"").length,-1!=l.indexOf("(")&&0>t._value&&d++),t._focusin(),o(t.element[0],d)})},_change:function(e){var t=this;t._update(e),e=t._value,t._old!=e&&(t._old=e,t._typing||t.element.trigger(p),t.trigger(p)),t._typing=!1},_culture:function(e){return e||h(this.options.culture)},_focusin:function(){var e=this;e._inputWrapper.addClass(C),e._toggleText(!1),e.element[0].focus()},_focusout:function(){var e=this;clearTimeout(e._focusing),e._inputWrapper.removeClass(C).removeClass(S),e._blur()},_format:function(e,t){var n=this._culture(t).numberFormat;return e=e.toLowerCase(),e.indexOf("c")>-1?n=n.currency:e.indexOf("p")>-1&&(n=n.percent),n},_input:function(){var t,n=this,i="k-formatted-value",o=n.element.addClass(v).show()[0],r=o.accessKey,s=n.wrapper;t=s.find(D+i),t[0]||(t=e('<input type="text"/>').insertBefore(o).addClass(i));try{o.setAttribute("type","text")}catch(a){o.type="text"}t[0].tabIndex=o.tabIndex,t[0].style.cssText=o.style.cssText,t[0].title=o.title,t.prop("placeholder",n.options.placeholder),r&&(t.attr("accesskey",r),o.accessKey=""),n._text=t.addClass(o.className)},_keydown:function(e){var t=this,n=e.keyCode;t._key=n,n==r.DOWN?t._step(-1):n==r.UP?t._step(1):n==r.ENTER?t._change(t.element.val()):t._typing=!0},_keypress:function(e){var t,n,i,s,a,l,c,u,d,h,f;0===e.which||e.metaKey||e.ctrlKey||e.keyCode===r.BACKSPACE||e.keyCode===r.ENTER||(t=this,n=t.options.min,i=t.element,s=o(i),a=s[0],l=s[1],c=String.fromCharCode(e.which),u=t._format(t.options.format),d=t._key===r.NUMPAD_DOT,h=i.val(),d&&(c=u[D]),h=h.substring(0,a)+c+h.substring(l),f=t._numericRegex(u).test(h),f&&d?(i.val(h),o(i,a+c.length),e.preventDefault()):(null!==n&&n>=0&&"-"===h.charAt(0)||!f)&&e.preventDefault(),t._key=0)},_numericRegex:function(e){var t=this,n=e[D],i=t.options.decimals;return n===D&&(n="\\"+n),i===R&&(i=e.decimals),0===i?I:(t._separator!==n&&(t._separator=n,t._floatRegExp=RegExp("^(-)?(((\\d+("+n+"\\d*)?)|("+n+"\\d*)))?$")),t._floatRegExp)},_paste:function(e){var t=this,n=e.target,i=n.value;setTimeout(function(){t._parse(n.value)===R&&t._update(i)})},_option:function(e,n){var i=this,o=i.options;return n===t?o[e]:(n=i._parse(n),(n||"step"!==e)&&(o[e]=n,i.element.attr("aria-value"+e,n).attr(e,n)),t)},_spin:function(e,t){var n=this;t=t||500,clearTimeout(n._spinning),n._spinning=setTimeout(function(){n._spin(e,50)},t),n._step(e)},_step:function(e){var t=this,n=t.element,i=t._parse(n.val())||0;l()!=n[0]&&t._focusin(),i+=t.options.step*e,t._update(t._adjust(i)),t._typing=!1,t.trigger(_)},_toggleHover:function(t){e(t.currentTarget).toggleClass(S,"mouseenter"===t.type)},_toggleText:function(e){var t=this;t._text.toggle(e),t.element.toggle(!e)},_parse:function(e,t){return u(e,this._culture(t),this.options.format)},_update:function(e){var t,n=this,o=n.options,r=o.format,s=o.decimals,a=n._culture(),l=n._format(r,a);s===R&&(s=l.decimals),e=n._parse(e,a),t=e!==R,t&&(e=parseFloat(f(e,s))),n._value=e=n._adjust(e),n._placeholder(i.toString(e,r,a)),t?(e=""+e,-1!==e.indexOf("e")&&(e=f(+e,s)),e=e.replace(D,l[D])):e="",n.element.val(e).attr("aria-valuenow",e)},_placeholder:function(e){this._text.val(e),d||e||this._text.val(this.options.placeholder)},_wrapper:function(){var t,n=this,i=n.element,o=i[0];t=i.parents(".k-numerictextbox"),t.is("span.k-numerictextbox")||(t=i.hide().wrap('<span class="k-numeric-wrap k-state-default" />').parent(),t=t.wrap("<span/>").parent()),t[0].style.cssText=o.style.cssText,o.style.width="",n.wrapper=t.addClass("k-widget k-numerictextbox").addClass(o.className).css("display",""),n._inputWrapper=e(t[0].firstChild)},_reset:function(){var t=this,n=t.element,i=n.attr("form"),o=i?e("#"+i):n.closest("form");o[0]&&(t._resetHandler=function(){setTimeout(function(){t.value(n[0].value),t.max(t._initialOptions.max),t.min(t._initialOptions.min)})},t._form=o.on("reset",t._resetHandler))}});s.plugin(L)}(window.kendo.jQuery)}(),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()});