function geturi(n){return n==undefined&&(n=""),window.location.href.indexOf("localhost")!=-1?"https://localhost:44353/api/"+n:window.location.href.indexOf("192.168.168.7")!=-1?"http://192.168.168.7:8085/api/"+n:window.location.href.indexOf("192.168.168.2")!=-1?"http://192.168.168.2:8085/api/"+n:"https://data.renaissancecapital.com/api/"+n}function publicsitedomainname(){return"https://www.renaissancecapital.com"}function formatdate(n,t,i){var s=Date.parse(n),f=new Date(s),o=f.getUTCFullYear(),r=f.getUTCMonth()+1,u=f.getUTCDate(),e;return t&&(r<10&&(r="0"+r),u<10&&(u="0"+u)),e="",e=i?o:o.toString().substr(2,2),r+"/"+u+"/"+e}function dateComparator(n,t){var i=utcdateparse(n),r=utcdateparse(t);return i===null&&r===null?0:i===null?-1:r===null?1:i>r?1:i<r?-1:0}function textComparator(n,t){var i=n.toLowerCase(),r=t.toLowerCase();return i===null&&r===null?0:i===null?-1:r===null?1:i>r?1:i<r?-1:0}function pctChangeComparator(n,t){if(n===null&&t===null)return 0;if(n===null)return-1;if(t===null)return 1;var i=n.indexOf("("),e=n.substring(i+1,n.length-2),r=parseFloat(n.substring(i+1,n.length-2)),f=t.indexOf("("),u=parseFloat(t.substring(f+1,t.length-2));return r>u?1:r<u?-1:0}function dealSizeComparator(n,t){if(n===null&&t===null)return 0;if(n===null)return-1;if(t===null)return 1;var i=parseFloat(n.replace("$","").replace("mil","").replace(",","")),r=parseFloat(t.replace("$","").replace("mil","").replace(",",""));return i>r?1:i<r?-1:0}function ttlReturnComparator(n,t){if(n===null&&t===null)return 0;if(n===null)return-1;if(t===null)return 1;var i=parseFloat(n.replace("%","")),r=parseFloat(t.replace("%",""));return i>r?1:i<r?-1:0}function sharesComparator(n,t){if(n===null&&t===null)return 0;if(n===null)return-1;if(t===null)return 1;var i=parseFloat(n.replace("mil","")),r=parseFloat(t.replace("mil",""));return i>r?1:i<r?-1:0}function utcdateparse(n){return n===undefined||n===null?null:Date.parse(n)}function thisweekmonday(){var t=new Date,n=new Date,i=t.getDay(),r=i-1;return i===6?n.setDate(t.getDate()-r+7):n.setDate(t.getDate()-r),n.setHours(0,0,0,0),n}function apppath(){var n=window.location.protocol,t=document.domain,i=window.location.port;return n+"//"+t+":"+i+"/"}function getPriceRange(n,t){return n===null||t===null?"":"$"+n+" - $"+t}function getSharesToOffer(n){return n===null?"n/a":(n/1e6).toFixed(1)}function inMillions(n,t,i,r){var u;return n===null||n===0||n==="n/a"?u="n/a":(n=n/1e6,i?t?(n=n.toFixed(1),u="$"+n):(n=n.toFixed(0),u="$"+n):t?(n=n.toFixed(1),u=n):(n=n.toFixed(0),u=n),r&&(u+=" mm")),u}function formatdateyyyy(n,t,i){var s=Date.parse(n),f=new Date(s),o=f.getUTCFullYear(),r=f.getUTCMonth()+1,u=f.getUTCDate(),e;return t&&(r<10&&(r="0"+r),u<10&&(u="0"+u)),e="",e=i?o:o.toString().substr(2,2),e+"-"+r+"-"+u}function formatmmddyyyy(n){var t=n.substring(0,4),i=n.substring(5,7),r=n.substring(8,10);return new Date(i+"/"+r+"/"+t)}function numberWithCommas(n){return n.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function addAgGridBorder(n){var t=$("."+n+" .ag-body-container").outerWidth()+$(".ag-pinned-left-cols-viewport").outerWidth(),i=$("."+n+" .ag-body").outerWidth();t<i?($("."+n+" .ag-body-container").removeClass("gvBorder"),$("."+n+" .ag-body").addClass("gvBorder"),$("."+n+" .ag-body-container .ag-row:last-child").removeClass("bottom-scroll-border"),$("."+n+" .ag-pinned-left-cols-container .ag-row:last-child").removeClass("bottom-scroll-border")):($("."+n+" .ag-body-container").removeClass("gvBorder"),$("."+n+" .ag-body").addClass("gvBorder"),$("."+n+" .ag-body-container .ag-row:last-child").addClass("bottom-scroll-border"),$("."+n+" .ag-pinned-left-cols-container .ag-row:last-child").addClass("bottom-scroll-border"))}const DATATABLES_ERROR_MSG='<div class="alert alert-danger dt-error-msg">There was an error loading the data.<\/div>',FORMAT_NUMBER_TWO_DECIMALS=new Intl.NumberFormat("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}),FORMAT_NUMBER_NO_DECIMALS=new Intl.NumberFormat("en-US",{minimumFractionDigits:0,maximumFractionDigits:0}),FORMAT_CURRENCY_NO_DECIMALS=new Intl.NumberFormat("en-US",{minimumFractionDigits:0,maximumFractionDigits:0,style:"currency",currency:"USD"}),FORMAT_CURRENCY_TWO_DECIMALS=new Intl.NumberFormat("en-US",{minimumFractionDigits:2,maximumFractionDigits:2,style:"currency",currency:"USD"}),FORMAT_PERCENT_TWO_DECIMALS=new Intl.NumberFormat("en-US",{minimumFractionDigits:2,maximumFractionDigits:2,style:"percent"})