var StringUtil={startsWith:function(a,b){return a.substr(0,b.length)==b},endsWith:function(a,b){return a.substring(a.length-b.length)==b},concat:function(a,b){return new String(a.toString()+b)},toCharArray:function(a){for(var b=Array(a.length),c=0;c",">");a=a.replace("'","'");a.replace('"',""")},replaceAll:function(a,b,c){for(var d=a.indexOf(b);-1!=d;)a=a.replace(b,c),d=a.indexOf(b);return a},isOnlyNumberAndColon:function(a){return/^[\d:]+$/.test(a)?!0:!1},ucfirst:function(a){a=a.toLowerCase();return a=a.replace(/\b\w+\b/g,function(b){return b.substring(0,1).toUpperCase()+b.substring(1)})},commaSeparateNumber:function(a){return a.toString().replace(/\D/g,"").replace(/\B(?=(\d{3})+(?!\d))/g, "")},isEmpty:function(a){a&&(a=StringUtil.trim(a));return!a}},ArrayUtil={max:function(a){var b,c=a[0];for(b=1;b"undefined"!==typeof a&&null!==a,isNotObject:a=> !ObjectUtil.isObject(a),clone:function(a){var b={};for(elements in a)b[elements]=a[elements];return b},cloneAll:function(a){function b(){}b.prototype=a;a=new b;for(var c in a)"object"==typeof a[c]&&(a[c]=a[c].cloneAll());return a},isEmpty:function(a){for(var b in a)if(a.hasOwnProperty(b))return!1;return!0},toJSON:function(a){var b="";for(e in a)"function"!==typeof a[e]&&(b=b+'"'+e+'":',b="string"===typeof a[e]?b+'"'+a[e]+'",':b+a[e]+",");return"{"+b.substring(0,b.length-1)+"}"}},IFrameUtil={calcHeight:function(a){var b= document.getElementById(a);b.contentWindow.scrollTo(0,0);var c=b.contentWindow.document.documentElement.scrollHeight;b=b.contentWindow.document.body.scrollHeight;b>c&&(c=b);document.getElementById(a).height=c},SetCwinHeight:function(a,b){a=document.getElementById(a);if(document.getElementById&&a&&!window.opera)if("number"==typeof window.innerWidth){var c=a.contentDocument.body.offsetHeight;a.height=c+(b?b:0)}else c=a.contentWindow.document.body.scrollHeight+"px",a.style.height=c+(b?b:0)},reinitIframe:function(a){try{a.height= Math.max(a.contentWindow.document.body.scrollHeight+20,a.contentWindow.document.documentElement.scrollHeight+20)}catch(b){}}}; function TreeMap(){this.elements=[];this.size=function(){return this.elements.length};this.put=function(a,b){for(var c=0;cc.length)b=c.length;b-=a.length;a=c.lastIndexOf(a,b);return-1!==a&&a===b});"undefined"==typeof PositionUtils&&(PositionUtils={}); (function(){PositionUtils.getPosition=function(a){for(var b=0,c=0,d=0;dnew Promise(async(c,d)=>{for(;0