Файл: templates/backend/default/assets/plugins/jquery-autonumeric/autoNumeric.min.js
Строк: 833
<?php
!function(e){"use strict";function t(e){var t={};if(void 0===e.selectionStart){e.focus();var n=document.selection.createRange();t.length=n.text.length,n.moveStart("character",-e.value.length),t.end=n.text.length,t.start=t.end-t.length}else t.start=e.selectionStart,t.end=e.selectionEnd,t.length=t.end-t.start;return t}function n(e,t,n){if(void 0===e.selectionStart){e.focus();var i=e.createTextRange();i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",t),i.select()}else e.selectionStart=t,e.selectionEnd=n}function i(t,n){e.each(n,function(e,i){"function"==typeof i?n[e]=i(t,n,e):"function"==typeof t.autoNumeric[i]&&(n[e]=t.autoNumeric[i](t,n,e))})}function o(e,t){"string"==typeof e[t]&&(e[t]*=1)}function a(e,t){i(e,t),t.oEvent=null,t.tagList=["B","CAPTION","CITE","CODE","DD","DEL","DIV","DFN","DT","EM","H1","H2","H3","H4","H5","H6","INS","KDB","LABEL","LI","OUTPUT","P","Q","S","SAMPLE","SPAN","STRONG","TD","TH","U","VAR"];var n=t.vMax.toString().split("."),a=t.vMin||0===t.vMin?t.vMin.toString().split("."):[];if(o(t,"vMax"),o(t,"vMin"),o(t,"mDec"),t.allowLeading=!0,t.aNeg=t.vMin<0?"-":"",n[0]=n[0].replace("-",""),a[0]=a[0].replace("-",""),t.mInt=Math.max(n[0].length,a[0].length,1),null===t.mDec){var r=0,s=0;n[1]&&(r=n[1].length),a[1]&&(s=a[1].length),t.mDec=Math.max(r,s)}null===t.altDec&&t.mDec>0&&("."===t.aDec&&","!==t.aSep?t.altDec=",":","===t.aDec&&"."!==t.aSep&&(t.altDec="."));var l=t.aNeg?"([-\"+t.aNeg+"]?)":"(-?)";t.aNegRegAutoStrip=l,t.skipFirstAutoStrip=new RegExp(l+"[^-"+(t.aNeg?"\"+t.aNeg:"")+"\"+t.aDec+"\d]"+".*?(\d|\"+t.aDec+"\d)"),t.skipLastAutoStrip=new RegExp("(\d\"+t.aDec+"?)[^\"+t.aDec+"\d]\D*$");var c="-"+t.aNum+"\"+t.aDec;return t.allowedAutoStrip=new RegExp("[^"+c+"]","gi"),t.numRegAutoStrip=new RegExp(l+"(?:\"+t.aDec+"?(\d+\"+t.aDec+"\d+)|(\d*(?:\"+t.aDec+"\d*)?))"),t}function r(e,t,n){if(t.aSign)for(;e.indexOf(t.aSign)>-1;)e=e.replace(t.aSign,"");e=e.replace(t.skipFirstAutoStrip,"$1$2"),e=e.replace(t.skipLastAutoStrip,"$1"),e=e.replace(t.allowedAutoStrip,""),t.altDec&&(e=e.replace(t.altDec,t.aDec));var i=e.match(t.numRegAutoStrip);if(e=i?[i[1],i[2],i[3]].join(""):"",("allow"===t.lZero||"keep"===t.lZero)&&"strip"!==n){var o=[],a="";o=e.split(t.aDec),-1!==o[0].indexOf("-")&&(a="-",o[0]=o[0].replace("-","")),o[0].length>t.mInt&&"0"===o[0].charAt(0)&&(o[0]=o[0].slice(1)),e=a+o.join(t.aDec)}if(n&&"deny"===t.lZero||n&&"allow"===t.lZero&&t.allowLeading===!1){var r="^"+t.aNegRegAutoStrip+"0*(\d"+("leading"===n?")":"|$)");r=new RegExp(r),e=e.replace(r,"$1$2")}return e}function s(e,t,n){return t=t.split(","),"set"===n||"focusout"===n?(e=e.replace("-",""),e=t[0]+e+t[1]):"get"!==n&&"focusin"!==n&&"pageLoad"!==n||e.charAt(0)!==t[0]||(e=e.replace(t[0],"-"),e=e.replace(t[1],"")),e}function l(e,t,n){if(t&&n){var i=e.split(t);i[1]&&i[1].length>n&&(n>0?(i[1]=i[1].substring(0,n),e=i.join(t)):e=i[0])}return e}function c(e,t,n){return t&&"."!==t&&(e=e.replace(t,".")),n&&"-"!==n&&(e=e.replace(n,"-")),e.match(/d/)||(e+="0"),e}function u(e,t){var n=e.indexOf("."),i=+e;if(-1!==n)if(1e-6>i&&i>-1)e=+e,1e-6>e&&e>0&&(e=(e+10).toString(),e=e.substring(1)),0>e&&e>-1&&(e=(e-10).toString(),e="-"+e.substring(2)),e=e.toString();else{var o=e.split(".");void 0!==o[1]&&(0===+o[1]?e=o[0]:(o[1]=o[1].replace(/0*$/,""),e=o.join(".")))}return"keep"===t.lZero?e:e.replace(/^0*(d)/,"$1")}function d(e,t,n){return n&&"-"!==n&&(e=e.replace("-",n)),t&&"."!==t&&(e=e.replace(".",t)),e}function h(t,n){t=r(t,n),t=l(t,n.aDec,n.mDec),t=c(t,n.aDec,n.aNeg);var i=+t;return"set"===n.oEvent&&(i<n.vMin||i>n.vMax)&&e.error("The value ("+i+") from the 'set' method falls outside of the vMin / vMax range"),i>=n.vMin&&i<=n.vMax}function f(e,t,n){return""===e||e===t.aNeg?"zero"===t.wEmpty?e+"0":"sign"===t.wEmpty||n?e+t.aSign:e:null}function p(e,t){e=r(e,t);var n=e.replace(",","."),i=f(e,t,!0);if(null!==i)return i;var o="";o=2===t.dGroup?/(d)((d)(d{2}?)+)$/:4===t.dGroup?/(d)((d{4}?)+)$/:/(d)((d{3}?)+)$/;var a=e.split(t.aDec);t.altDec&&1===a.length&&(a=e.split(t.altDec));var l=a[0];if(t.aSep)for(;o.test(l);)l=l.replace(o,"$1"+t.aSep+"$2");if(0!==t.mDec&&a.length>1?(a[1].length>t.mDec&&(a[1]=a[1].substring(0,t.mDec)),e=l+t.aDec+a[1]):e=l,t.aSign){var c=-1!==e.indexOf(t.aNeg);e=e.replace(t.aNeg,""),e="p"===t.pSign?t.aSign+e:e+t.aSign,c&&(e=t.aNeg+e)}return"set"===t.oEvent&&0>n&&null!==t.nBracket&&(e=s(e,t.nBracket,t.oEvent)),e}function m(e,t){e=""===e?"0":e.toString(),o(t,"mDec");var n="",i=0,a="",r="boolean"==typeof t.aPad||null===t.aPad?t.aPad?t.mDec:0:+t.aPad,s=function(e){var t=0===r?/(.[1-9]*)0*$/:1===r?/(.d[1-9]*)0*$/:new RegExp("(\.\d{"+r+"}[1-9]*)0*$");return e=e.replace(t,"$1"),0===r&&(e=e.replace(/.$/,"")),e};"-"===e.charAt(0)&&(a="-",e=e.replace("-","")),e.match(/^d/)||(e="0"+e),"-"===a&&0===+e&&(a=""),(+e>0&&"keep"!==t.lZero||e.length>0&&"allow"===t.lZero)&&(e=e.replace(/^0*(d)/,"$1"));var l=e.lastIndexOf("."),c=-1===l?e.length-1:l,u=e.length-1-c;if(u<=t.mDec){if(n=e,r>u)for(-1===l&&(n+=".");r>u;){var d="000000".substring(0,r-u);n+=d,u+=d.length}else u>r?n=s(n):0===u&&0===r&&(n=n.replace(/.$/,""));return a+n}var h=l+t.mDec,f=+e.charAt(h+1),p=e.substring(0,h+1).split(""),m="."===e.charAt(h)?e.charAt(h-1)%2:e.charAt(h)%2;if(f>4&&"S"===t.mRound||f>4&&"A"===t.mRound&&""===a||f>5&&"A"===t.mRound&&"-"===a||f>5&&"s"===t.mRound||f>5&&"a"===t.mRound&&""===a||f>4&&"a"===t.mRound&&"-"===a||f>5&&"B"===t.mRound||5===f&&"B"===t.mRound&&1===m||f>0&&"C"===t.mRound&&""===a||f>0&&"F"===t.mRound&&"-"===a||f>0&&"U"===t.mRound)for(i=p.length-1;i>=0;i-=1)if("."!==p[i]){if(p[i]=+p[i]+1,p[i]<10)break;i>0&&(p[i]="0")}return p=p.slice(0,h+1),n=s(p.join("")),0===+n?n:a+n}function g(t,n){this.settings=n,this.that=t,this.$that=e(t),this.formatted=!1,this.settingsClone=a(this.$that,this.settings),this.value=t.value}function v(t){return"string"==typeof t&&(t=t.replace(/[/g,"\[").replace(/]/g,"\]"),t="#"+t.replace(/(:|.)/g,"\$1")),e(t)}function T(e,t,n){var i=e.data("autoNumeric");i||(i={},e.data("autoNumeric",i));var o=i.holder;return(void 0===o&&t||n)&&(o=new g(e.get(0),t),i.holder=o),o}g.prototype={init:function(e){this.value=this.that.value,this.settingsClone=a(this.$that,this.settings),this.ctrlKey=e.ctrlKey,this.cmdKey=e.metaKey,this.shiftKey=e.shiftKey,this.selection=t(this.that),("keydown"===e.type||"keyup"===e.type)&&(this.kdCode=e.keyCode),this.which=e.which,this.processed=!1,this.formatted=!1},setSelection:function(e,t,i){e=Math.max(e,0),t=Math.min(t,this.that.value.length),this.selection={start:e,end:t,length:t-e},(void 0===i||i)&&n(this.that,e,t)},setPosition:function(e,t){this.setSelection(e,e,t)},getBeforeAfter:function(){var e=this.value,t=e.substring(0,this.selection.start),n=e.substring(this.selection.end,e.length);return[t,n]},getBeforeAfterStriped:function(){var e=this.getBeforeAfter();return e[0]=r(e[0],this.settingsClone),e[1]=r(e[1],this.settingsClone),e},normalizeParts:function(e,t){var n=this.settingsClone;t=r(t,n);var i=t.match(/^d/)?!0:"leading";e=r(e,n,i),""!==e&&e!==n.aNeg||"deny"!==n.lZero||t>""&&(t=t.replace(/^0*(d)/,"$1"));var o=e+t;if(n.aDec){var a=o.match(new RegExp("^"+n.aNegRegAutoStrip+"\"+n.aDec));a&&(e=e.replace(a[1],a[1]+"0"),o=e+t)}return"zero"!==n.wEmpty||o!==n.aNeg&&""!==o||(e+="0"),[e,t]},setValueParts:function(e,t){var n=this.settingsClone,i=this.normalizeParts(e,t),o=i.join(""),a=i[0].length;return h(o,n)?(o=l(o,n.aDec,n.mDec),a>o.length&&(a=o.length),this.value=o,this.setPosition(a,!1),!0):!1},signPosition:function(){var e=this.settingsClone,t=e.aSign,n=this.that;if(t){var i=t.length;if("p"===e.pSign){var o=e.aNeg&&n.value&&n.value.charAt(0)===e.aNeg;return o?[1,i+1]:[0,i]}var a=n.value.length;return[a-i,a]}return[1e3,-1]},expandSelectionOnSign:function(e){var t=this.signPosition(),n=this.selection;n.start<t[1]&&n.end>t[0]&&((n.start<t[0]||n.end>t[1])&&this.value.substring(Math.max(n.start,t[0]),Math.min(n.end,t[1])).match(/^s*$/)?n.start<t[0]?this.setSelection(n.start,t[0],e):this.setSelection(t[1],n.end,e):this.setSelection(Math.min(n.start,t[0]),Math.max(n.end,t[1]),e))},checkPaste:function(){if(void 0!==this.valuePartsBeforePaste){var e=this.getBeforeAfter(),t=this.valuePartsBeforePaste;delete this.valuePartsBeforePaste,e[0]=e[0].substr(0,t[0].length)+r(e[0].substr(t[0].length),this.settingsClone),this.setValueParts(e[0],e[1])||(this.value=t.join(""),this.setPosition(t[0].length,!1))}},skipAllways:function(e){var t=this.kdCode,n=this.which,i=this.ctrlKey,o=this.cmdKey,a=this.shiftKey;if((i||o)&&"keyup"===e.type&&void 0!==this.valuePartsBeforePaste||a&&45===t)return this.checkPaste(),!1;if(t>=112&&123>=t||t>=91&&93>=t||t>=9&&31>=t||8>t&&(0===n||n===t)||144===t||145===t||45===t)return!0;if((i||o)&&65===t)return!0;if((i||o)&&(67===t||86===t||88===t))return"keydown"===e.type&&this.expandSelectionOnSign(),(86===t||45===t)&&("keydown"===e.type||"keypress"===e.type?void 0===this.valuePartsBeforePaste&&(this.valuePartsBeforePaste=this.getBeforeAfter()):this.checkPaste()),"keydown"===e.type||"keypress"===e.type||67===t;if(i||o)return!0;if(37===t||39===t){var r=this.settingsClone.aSep,s=this.selection.start,l=this.that.value;return"keydown"===e.type&&r&&!this.shiftKey&&(37===t&&l.charAt(s-2)===r?this.setPosition(s-1):39===t&&l.charAt(s+1)===r&&this.setPosition(s+1)),!0}return t>=34&&40>=t?!0:!1},processAllways:function(){var e;return 8===this.kdCode||46===this.kdCode?(this.selection.length?(this.expandSelectionOnSign(!1),e=this.getBeforeAfterStriped(),this.setValueParts(e[0],e[1])):(e=this.getBeforeAfterStriped(),8===this.kdCode?e[0]=e[0].substring(0,e[0].length-1):e[1]=e[1].substring(1,e[1].length),this.setValueParts(e[0],e[1])),!0):!1},processKeypress:function(){var e=this.settingsClone,t=String.fromCharCode(this.which),n=this.getBeforeAfterStriped(),i=n[0],o=n[1];return t===e.aDec||e.altDec&&t===e.altDec||("."===t||","===t)&&110===this.kdCode?e.mDec&&e.aDec?e.aNeg&&o.indexOf(e.aNeg)>-1?!0:i.indexOf(e.aDec)>-1?!0:o.indexOf(e.aDec)>0?!0:(0===o.indexOf(e.aDec)&&(o=o.substr(1)),this.setValueParts(i+e.aDec,o),!0):!0:"-"===t||"+"===t?e.aNeg?(""===i&&o.indexOf(e.aNeg)>-1&&(i=e.aNeg,o=o.substring(1,o.length)),i=i.charAt(0)===e.aNeg?i.substring(1,i.length):"-"===t?e.aNeg+i:i,this.setValueParts(i,o),!0):!0:t>="0"&&"9">=t?(e.aNeg&&""===i&&o.indexOf(e.aNeg)>-1&&(i=e.aNeg,o=o.substring(1,o.length)),e.vMax<=0&&e.vMin<e.vMax&&-1===this.value.indexOf(e.aNeg)&&"0"!==t&&(i=e.aNeg+i),this.setValueParts(i+t,o),!0):!0},formatQuick:function(){var e=this.settingsClone,t=this.getBeforeAfterStriped(),n=this.value;if((""===e.aSep||""!==e.aSep&&-1===n.indexOf(e.aSep))&&(""===e.aSign||""!==e.aSign&&-1===n.indexOf(e.aSign))){var i=[],o="";i=n.split(e.aDec),i[0].indexOf("-")>-1&&(o="-",i[0]=i[0].replace("-",""),t[0]=t[0].replace("-","")),i[0].length>e.mInt&&"0"===t[0].charAt(0)&&(t[0]=t[0].slice(1)),t[0]=o+t[0]}var a=p(this.value,this.settingsClone),r=a.length;if(a){var s=t[0].split(""),l=0;for(l;l<s.length;l+=1)s[l].match("\d")||(s[l]="\"+s[l]);var c=new RegExp("^.*?"+s.join(".*?")),u=a.match(c);u?(r=u[0].length,(0===r&&a.charAt(0)!==e.aNeg||1===r&&a.charAt(0)===e.aNeg)&&e.aSign&&"p"===e.pSign&&(r=this.settingsClone.aSign.length+("-"===a.charAt(0)?1:0))):e.aSign&&"s"===e.pSign&&(r-=e.aSign.length)}this.that.value=a,this.setPosition(r),this.formatted=!0}};var C={init:function(t){return this.each(function(){var i=e(this),o=i.data("autoNumeric"),a=i.data();if("object"==typeof o)return this;var l={aNum:"0123456789",aSep:",",dGroup:"3",aDec:".",altDec:null,aSign:"",pSign:"p",vMax:"999999999.99",vMin:"0.00",mDec:null,mRound:"S",aPad:!0,nBracket:null,wEmpty:"empty",lZero:"allow",aForm:!0,onSomeEvent:function(){}};if(o=e.extend({},l,a,t),o.aDec===o.aSep)return e.error("autoNumeric will not function properly when the decimal character aDec: '"+o.aDec+"' and thousand separator aSep: '"+o.aSep+"' are the same character"),this;i.data("autoNumeric",o),o.lastSetValue="",o.runOnce=!1;var u=T(i,o);if(-1===e.inArray(i.prop("tagName"),o.tagList)&&"INPUT"!==i.prop("tagName"))return e.error("The <"+i.prop("tagName")+"> is not supported by autoNumeric()"),this;if(o.runOnce===!1&&o.aForm){if(i.is("input[type=text], input[type=hidden], input:not([type])")){var g=!0;""===i[0].value&&"empty"===o.wEmpty&&(i[0].value="",g=!1),""===i[0].value&&"sign"===o.wEmpty&&(i[0].value=o.aSign,g=!1),g&&i.autoNumeric("set",i.val())}-1!==e.inArray(i.prop("tagName"),o.tagList)&&""!==i.text()&&i.autoNumeric("set",i.text())}o.runOnce=!0,i.is("input[type=text], input[type=hidden], input:not([type])")&&(i.on("keydown.autoNumeric",function(t){return u=T(i),u.settings.aDec===u.settings.aSep?(e.error("autoNumeric will not function properly when the decimal character aDec: '"+u.settings.aDec+"' and thousand separator aSep: '"+u.settings.aSep+"' are the same character"),this):u.that.readOnly?(u.processed=!0,!0):(u.init(t),u.settings.oEvent="keydown",u.skipAllways(t)?(u.processed=!0,!0):u.processAllways()?(u.processed=!0,u.formatQuick(),t.preventDefault(),!1):(u.formatted=!1,!0))}),i.on("keypress.autoNumeric",function(e){var t=T(i),n=t.processed;return t.init(e),t.settings.oEvent="keypress",t.skipAllways(e)?!0:n?(e.preventDefault(),!1):t.processAllways()||t.processKeypress()?(t.formatQuick(),e.preventDefault(),!1):(t.formatted=!1,void 0)}),i.on("keyup.autoNumeric",function(e){var t=T(i);t.init(e),t.settings.oEvent="keyup";var o=t.skipAllways(e);return t.kdCode=0,delete t.valuePartsBeforePaste,i[0].value===t.settings.aSign&&("s"===t.settings.pSign?n(this,0,0):n(this,t.settings.aSign.length,t.settings.aSign.length)),o?!0:""===this.value?!0:(t.formatted||t.formatQuick(),void 0)}),i.on("focusin.autoNumeric",function(){var e=T(i);if(e.settingsClone.oEvent="focusin",null!==e.settingsClone.nBracket){var t=i.val();i.val(s(t,e.settingsClone.nBracket,e.settingsClone.oEvent))}e.inVal=i.val();var o=f(e.inVal,e.settingsClone,!0);null!==o&&(i.val(o),"s"===e.settings.pSign?n(this,0,0):n(this,e.settings.aSign.length,e.settings.aSign.length))}),i.on("focusout.autoNumeric",function(){var e=T(i),t=e.settingsClone,n=i.val(),o=n;e.settingsClone.oEvent="focusout";var a="";"allow"===t.lZero&&(t.allowLeading=!1,a="leading"),""!==n&&(n=r(n,t,a),null===f(n,t)&&h(n,t,i[0])?(n=c(n,t.aDec,t.aNeg),n=m(n,t),n=d(n,t.aDec,t.aNeg)):n="");var l=f(n,t,!1);null===l&&(l=p(n,t)),l!==o&&i.val(l),l!==e.inVal&&(i.change(),delete e.inVal),null!==t.nBracket&&i.autoNumeric("get")<0&&(e.settingsClone.oEvent="focusout",i.val(s(i.val(),t.nBracket,t.oEvent)))}))})},destroy:function(){return e(this).each(function(){var t=e(this);t.off(".autoNumeric"),t.removeData("autoNumeric")})},update:function(t){return e(this).each(function(){var n=v(e(this)),i=n.data("autoNumeric");if("object"!=typeof i)return e.error("You must initialize autoNumeric('init', {options}) prior to calling the 'update' method"),this;var o=n.autoNumeric("get");return i=e.extend(i,t),T(n,i,!0),i.aDec===i.aSep?(e.error("autoNumeric will not function properly when the decimal character aDec: '"+i.aDec+"' and thousand separator aSep: '"+i.aSep+"' are the same character"),this):(n.data("autoNumeric",i),""!==n.val()||""!==n.text()?n.autoNumeric("set",o):void 0)})},set:function(t){return e(this).each(function(){var n=v(e(this)),i=n.data("autoNumeric"),o=t.toString(),a=t.toString();return"object"!=typeof i?(e.error("You must initialize autoNumeric('init', {options}) prior to calling the 'set' method"),this):(a===n.attr("value")&&(o=o.replace(",",".")),a!==n.attr("value")&&i.runOnce===!1&&(o=r(o,i)),e.isNumeric(+o)?(o=u(o,i),i.oEvent="set",i.lastSetValue=o,o.toString(),""!==o&&(o=m(o,i)),o=d(o,i.aDec,i.aNeg),h(o,i)||(o=m("",i)),o=p(o,i),n.is("input[type=text], input[type=hidden], input:not([type])")?n.val(o):-1!==e.inArray(n.prop("tagName"),i.tagList)?n.text(o):(e.error("The <"+n.prop("tagName")+"> is not supported by autoNumeric()"),!1)):"")})},get:function(){var t=v(e(this)),n=t.data("autoNumeric");if("object"!=typeof n)return e.error("You must initialize autoNumeric('init', {options}) prior to calling the 'get' method"),this;n.oEvent="get";var i="";if(t.is("input[type=text], input[type=hidden], input:not([type])"))i=t.eq(0).val();else{if(-1===e.inArray(t.prop("tagName"),n.tagList))return e.error("The <"+t.prop("tagName")+"> is not supported by autoNumeric()"),!1;i=t.eq(0).text()}return""===i&&"empty"===n.wEmpty||i===n.aSign&&("sign"===n.wEmpty||"empty"===n.wEmpty)?"":(null!==n.nBracket&&""!==i&&(i=s(i,n.nBracket,n.oEvent)),(n.runOnce||n.aForm===!1)&&(i=r(i,n)),i=c(i,n.aDec,n.aNeg),0===+i&&"keep"!==n.lZero&&(i="0"),"keep"===n.lZero?i:i=u(i,n))},getString:function(){var t=!1,n=v(e(this)),i=n.serialize(),o=i.split("&"),a=0;for(a;a<o.length;a+=1){var r=o[a].split("="),s=e('*[name="'+decodeURIComponent(r[0])+'"]').data("autoNumeric");"object"==typeof s&&null!==r[1]&&void 0!==e('*[name="'+decodeURIComponent(r[0])+'"]').data("autoNumeric")&&(r[1]=e('input[name="'+decodeURIComponent(r[0])+'"]').autoNumeric("get"),o[a]=r.join("="),t=!0)}return t===!0?o.join("&"):(e.error("You must initialize autoNumeric('init', {options}) prior to calling the 'getString' method"),this)},getArray:function(){var t=!1,n=v(e(this)),i=n.serializeArray();return e.each(i,function(n,i){var o=e('*[name="'+decodeURIComponent(i.name)+'"]').data("autoNumeric");"object"==typeof o&&(""!==i.value&&void 0!==e('*[name="'+decodeURIComponent(i.name)+'"]').data("autoNumeric")&&(i.value=e('input[name="'+decodeURIComponent(i.name)+'"]').autoNumeric("get").toString()),t=!0)}),t===!0?i:(e.error("You must initialize autoNumeric('init', {options}) prior to calling the 'getArray' method"),this)},getSettings:function(){var t=v(e(this));return t.eq(0).data("autoNumeric")}};e.fn.autoNumeric=function(t){return C[t]?C[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?(e.error('Method "'+t+'" is not supported by autoNumeric()'),void 0):C.init.apply(this,arguments)}}(jQuery);
?>