1"use strict";RegExp.escape=function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},String.prototype.toHMS=function(){var t=parseInt(this,10),e=Math.floor(t/3600),o=Math.floor((t-3600*e)/60);return(e?e+"h ":"")+(e||o?o+"m ":"")+(t-3600*e-60*o)+"s"},String.prototype.toHHMMSS=function(){var t=parseInt(this,10),e=Math.floor(t/3600),o=Math.floor((t-3600*e)/60),r=t-3600*e-60*o;return("00"!==(e=e<10?"0"+e:e)?e+":":"")+("00"!==(o=o<10?"0"+o:o)?o+":":"")+(r=r<10?"0"+r:r)},String.prototype.ucwords=function(){return(this+"").replace(/^([a-z\u00E0-\u00FC])|\s+([a-z\u00E0-\u00FC])/g,function(t){return t.toUpperCase()})};class Store{constructor(t){this.options=t}it(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=(t||"").toUpperCase(),r=e||{},n={},l="",c=this.options.production?"":"{"+o+"}";const s=/={2}([^=]+)={2}/gim;if(this.options.messages[o]){n=(c=this.options.messages[o]).match(s);for(let t in n)if(Object.prototype.hasOwnProperty.call(n,t)){n[t]=n[t]+"",n[t]=n[t].replace(/={2}/gim,""),l=r[n[t]]?r[n[t]]:"";let e=new RegExp("=="+(n[t]+"==").replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),"mig");c=c.replace(e,l)}}return c}format_date(t){let e=t.split(/[- :]/),o=new Date(e[0],e[1]-1,e[2],e[3],e[4],e[5]),r=o.getFullYear(),n=o.getMonth()+1,l=o.getDate();return l=l<10?"0"+l:l,"".concat(n=n<10?"0"+n:n,"/").concat(l,"/").concat(r)}format_time(t){let e=t.split(/[- :]/),o=new Date(e[0],e[1]-1,e[2],e[3],e[4],e[5]),r=o.getHours(),n=o.getMinutes(),l=o.getSeconds();return n=n<10?"0"+n:n,l=l<10?"0"+l:l,"".concat(r=r<10?"0"+r:r,":").concat(n,":").concat(l)}format_datetime(t){let e=this.format_date(t),o=this.format_time(t);return"".concat(e," ").concat(o)}format_phone(t){let e=t.replace(/[^0-9]/gi,"",t),o=e.match(/^\+?1([2-9][0-8][0-9])([2-9][0-9][0-9])([0-9][0-9][0-9][0-9])$/),r=e.match(/^\+?(2[07]|2[1-69][0-9]|3[0-469]|3[578][0-9]|4[013-9]|42[0-9]|5[09][0-9]|5[1-8]|6[0-6]|6[7-9][0-9]|7|8[1-46]|8[0578][0-9]|9[0-58]|9[679][0-9])(.*)$/);return o&&o.length>2?e="+1 ("+o[1]+") "+o[2]+" "+o[3]:r&&r.length>1&&(e="+"+r[1]+" "+r[2]),e}format_money(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return this.format_money_str(t,":symbol:integer:point:decimals:minor_symbol:code",e,o,r)}format_money_str(t){let e,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:":symbol:integer:point:decimals:minor_symbol:code",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;e=void 0!==this.options.currency?c||this.options.currency:c||{code:"USD",symbol:"$",minor_symbol:"¢",exponent:2},o=null==l?e.exponent?e.exponent:2:l,n||(n=!1);const s=((t=Math.round(parseFloat(t)*Math.pow(10,o))/Math.pow(10,o))+"").split(".");let i={code:"",symbol:"",minor_symbol:"",integer:s[0],point:s[1]?".":"",decimals:s[1]?s[1]:""};if(n){if(!e.minor_symbol||this.options.hide_currency_symbol)return this.format_money_str(t/100,r,!1,o,e);i.minor_symbol=e.minor_symbol}else e.symbol&&!this.options.hide_currency_symbol?"-"===i.integer[0]&&e.symbol.length>=1&&e.symbol.length<=2?(i.symbol="-"+e.symbol,i.integer=i.integer.substr(1)):i.symbol=e.symbol+(e.symbol.length>2?" ":""):i.code=" "+e.code;return r.replace(/:(\w+)/g,function(t,e){return void 0!==i[e]?i[e]:""})}url(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.options.is_ssl,n="",l="",c=this.options.root_url||"",s=this.options.http_host||"";
1if(o&&s&&(n+="".concat(r?"https":"http","://").concat(s)),c&&(n+="/".concat(encodeURIComponent(this.trim(decodeURIComponent(c),"/")))),n+="/"+this.trim(t,"/"),e){let t="";for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t+="&".concat(encodeURIComponent(o),"=").concat(encodeURIComponent(e[o])));t&&(l="?".concat(this.ltrim(t,"&")))}return n+l}h(t){t=String(t);const e={"&":"&","<":"<",">":">","'":"'",'"':"""};return t.replace(/[&<>'"]/g,function(t){return e[t]})}trim(t,e){return this.ltrim(this.rtrim(t,e),e)}ltrim(t,e){return e=e||"\\s",(t=t||"").replace(new RegExp("^["+e+"]+","g"),"")}rtrim(t,e){return e=e||"\\s",(t=t||"").replace(new RegExp("["+e+"]+$","g"),"")}validate_credit_card(t){const e=[["2[2-7]",16],["5[1-5]",16],["3[47]",15],["6011|64[4-9]|65",16],["6011|64[4-9]|65",19],["62",16],["62",17],["62",18],["62",19],["2131|1800|35",16],["4",13],["4",16],["4",19]];t=t.replace(/[^0-9]/g,"");let o=!1;for(let r=0;r<e.length;r++)t.length===e[r][1]&&t.match(new RegExp("^("+e[r][0]+")"))&&(o=!0);if(!o)return!1;let r=t.length%2,n=0;for(let e=0;e<t.length;e++){let o=parseInt(t.charAt(e));e%2===r&&(o*=2)>9&&(o-=9),n+=o}return n%10==0}validate_phone_number(t){let e=!1;return(t=(t=t.replace(/[^0-9]/g,"")).replace(/^(011|0+)/,"")).length>=7&&t.length<=15&&(e=!0),[e,t]}svg(t,e,o,r,n,l,c){let s="<svg";if(e&&(s+=' viewBox="'.concat(e,'" ')),r&&(s+=' style="',Object.keys(r).forEach(t=>{s+=" ".concat(t,":").concat(r[t],"; ")}),s+=' " '),n&&Object.keys(n).forEach(t=>{s+=" ".concat(t,'="').concat(n[t],'" ')}),Array.isArray(o)){s+=' class="';for(let t=0,e=o.length;t<e;t++)s+=" ".concat(o[t]," ");s+=' " '}else s+=' class="'.concat(o,'"');return Array.isArray(t)?(s+=">",t.forEach(function(t,e){s+=' <use xlink:href="#'.concat(t,'" '),l&&Array.isArray(l)&&l[e]&&(s+=' fill="url(#'.concat(l[e],')" ')),c&&Array.isArray(c)&&c[e]&&(s+=' class="url(#'.concat(c[e],')" ')),s+="></use>"})):(s+=">",s+=' <use xlink:href="#'.concat(t,'" '),l&&(Array.isArray(l)||(s+=' fill="url(#'.concat(l,')" '))),c&&(Array.isArray(c)||(s+=' fill="url(#'.concat(c,')" '))),s+=" ></use>"),s+="</svg>"}loadScript(t,e){const o=document.createElement("script");return o.src=t,e&&Object.keys(e).forEach(t=>{o.setAttribute(t,e[t])}),document.body.appendChild(o),new Promise((t,e)=>{o.onload=t,o.onerror=e})}} 2//# sourceMappingURL=store.min.js.map
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.