1String.prototype.ucFirst=function(toLowerCase=!1){const ret=toLowerCase?this.toLowerCase():this;return ret.charAt(0).toUpperCase()+ret.slice(1)};const websaleStringHelper={randomSource:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",capitalize:function(inputString){const ret=inputString.toLowerCase();const words=ret.split(" ");let capitalizedWords=[];for(let word of words){capitalizedWords.push(this.ucFirst(word))} 2return capitalizedWords.join(" ")},ucFirst:function(inputString){const ret=inputString.toLowerCase();return ret.charAt(0).toUpperCase()+inputString.slice(1)},generateRandomString:function(size=32){let result="";const sourceLength=this.randomSource.length;for(let i=0;i<size;i++){result+=this.randomSource.charAt(Math.floor(Math.random()*sourceLength))} 3return result},dataPickerAssistant:function($element,e){const currentValue=$element.val();const currentLength=currentValue.length;const selectionStart=$element.prop("selectionStart");const selectionEnd=$element.prop("selectionEnd");const charSelected=selectionEnd-selectionStart;const allowedKeys=[8,37,39,46];if(currentLength==10&&charSelected==0&&!allowedKeys.includes(e.keyCode)){e.preventDefault();e.stopPropagation();return!1} 4if(this.isNumber(e.key)||allowedKeys.includes(e.keyCode)){return!0}else if((e.keyCode==111||e.keyCode==55||e.keyCode==173)&&(currentLength==2||currentLength==5)){$element.val(currentValue+"/");e.preventDefault();e.stopPropagation();return!1}else{e.preventDefault();e.stopPropagation();return!1}},insertDateSeparator:function(currentValue){if(!currentValue){return currentValue} 5const indexs=[2,5];let checkValue=currentValue.replaceAll("/","");checkValue=checkValue.replaceAll("-","");checkValue=checkValue.replaceAll(".","");for(let index of indexs){if(checkValue.length>=index){checkValue=checkValue.slice(0,index)+"/"+checkValue.slice(index)}} 6if(checkValue.length==8){const tollerance=2;const yearLimit=new Date().getFullYear().toString().slice(-2);let currentYear=checkValue.slice(-2);currentYear=currentYear<=yearLimit+tollerance?"20"+currentYear:"19"+currentYear;checkValue=checkValue.slice(0,6)+currentYear} 7return checkValue},isNumber:function(num){return!isNaN(parseFloat(num))&&isFinite(num)},convertPriceNumber:function(inputNumber){return inputNumber.toFixed(2).toString().replace(".",",")},slugify:function(str){return str.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")},}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.