(()=>{"use strict";var e={n:t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},d:(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=jQuery;var r=e.n(t);function n(e){for(var t,r=[],n=/{([^}]+)}/gi;null!=(t=n.exec(e));){var a={eqName:t[1],fieldName:t[1],reactive:!0};"!"===a.fieldName[0]&&(a.reactive=!1,a.fieldName=a.fieldName.substr(1)),r.push(a)}return r}function a(e){return/^[a-zA-Z].*/.test(e)?':input[name="'+e+'"]':e}function o(e,t,n){for(var a=e+"",o=t.decimalOpts.concat(t.thousandOpts),c=["0","1","2","3","4","5","6","7","8","9","-"],s="",i="",u="",f=-1,l="",g="",d=-1,p=0,h=a.length-1;h>=0;h--)i=a.charAt(h),-1!=r().inArray(i,c)?s=i+s:""==u&&-1!=r().inArray(i,t.decimalOpts)?(f=h,u=i,s="."+s):""==l&&-1!=r().inArray(i,t.thousandOpts)?l=i:""!=g||-1!=r().inArray(i,o)||0!=h&&h!=a.length-1||(g=i,d=h);return""!=u&&(p=a.length-f-1,d>f&&p--),-1!=t.decimalPlaces&&(p=t.decimalPlaces),3===arguments.length&&(""==n.dec&&""!=u&&(n.dec=u),(-1==n.decPlaces&&-1!=p||-1!=n.decPlaces&&-1!=p&&p=0&&e.offset=0&&e.offsetn)return parseFloat(e.string.substr(n,e.offset-n));if("+"==e.string.substr(e.offset,1))return e.offset++,i(e);if("-"==e.string.substr(e.offset,1))return e.offset++,function(e){return-e}(i(e));if("("==e.string.substr(e.offset,1)){if(e.offset++,t=f(e),")"==e.string.substr(e.offset,1))return e.offset++,t;throw e.error="Parsing error: ')' expected",new Error("parseError")}if(null!=(r=/^[a-z_][a-z0-9_]*/i.exec(e.string.substr(e.offset)))){var a=r[0];if(e.offset+=a.length,a in s)return s[a];throw e.error="Semantic error: unknown variable '"+a+"'",new Error("unknownVar")}throw e.string.length==e.offset?(e.error="Parsing error at end of string: value expected",new Error("valueMissing")):(e.error="Parsing error: unrecognized value",new Error("valueNotParsed"))}function u(e){return"**"==e.string.substr(e.offset,2)?(e.offset+=2,c["**"]):"+-*/".indexOf(e.string.substr(e.offset,1))>=0?c[e.string.substr(e.offset++,1)]:null}function f(e){for(var t=[{precedence:0,assoc:"L"}],r=i(e);;){for(var n=u(e)||{precedence:0,assoc:"L"};n.precedence").concat(r.string.substr(r.offset))),null}}function g(e,t,r,n,c,s,i){var u="",f={dec:"",decPlaces:-1,thou:"",sym:"",symLoc:-1};$.each($.extend({},i),(function(t,r){for(var a,o=new RegExp(r.rgx,"gi");null!=(a=o.exec(e));){var s=r.exec(a[1],n,c,f);e=e.replace(new RegExp(r.rgx,"gi"),s)}}));for(var g=0;g1?"."+r[1]:"",a=/(\d+)(\d{3})/,o=r[0];a.test(o);)o=o.replace(a,"$1,$2");return o+n}(h,f.decPlaces)).replace(/\./g,"")).replace(/\,/g,"")).replace(//g,f.dec)).replace(//g,f.thou),f.symLoc>-1&&(0==f.symLoc?u=f.sym+u:u+=f.sym),c.smartIntegers&&(u=u.replace(/[\,\.]0+$/,"")),"function"==typeof c.onShowResult&&(u=c.onShowResult.call(r,u)),r.val(u),c.chainFire){var v=r.data("current");void 0!==v&&v===u||(r.data("current",u),r.trigger("change"))}}var d="_jautocalc",p="focus change blur";function h(e,t,r,o){return e.each((function(){var e=$(this);$("["+t.attribute+"]:not(["+d+"])",e).each((function(){var c=$(this),s=c.attr(t.attribute),i=n(s);if(0!=i.length){for(var u=0;u0})).length}}};function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}r().fn.jAutoCalc=Object.assign((function(){for(var e="init",t=r().extend({},r().fn.jAutoCalc.defaults),n={init:h,destroy:v},a=arguments.length,o=new Array(a),c=0;c