window.bpmMakePhoneLink=(o,t=49)=>{let e="";return e=(e=o.replace(/(\(0\)|[^0-9+])/g,""))[0]&&("+"!==e[0]||"+"!==e[0]&&0==+e[0])?"+"+t+e.slice(1):e},window.bpmSvgIcon=o=>'
',window.bpmStripHtml=o=>(new DOMParser).parseFromString(o,"text/html").body.textContent||"",window.bpmGuidGenerator=()=>{function o(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return o()+o()+"-"+o()+"-"+o()+"-"+o()+"-"+o()+o()+o()},window.bpmUniqueId=()=>String.fromCharCode(65+Math.floor(26*Math.random()))+Date.now();let isObject=o=>null!==o&&!Array.isArray(o)&&"Object"===typeOf(o).split(" ")[1].slice(0,-1),isPrimitive=o=>{switch(typeof o){case"object":case"function":return!1;default:return!0}};window.bpmGetChanges=(t,e)=>{if(isPrimitive(t)&&isPrimitive(e))return t===e?"":e;if(isObject(t)&&isObject(e))return window.bpmGetChanges(Object.entries(t),Object.entries(e)).reduce((o,[t,e])=>({...o,[t]:e}),{});var r=[];if(JSON.stringify(t)!==JSON.stringify(e))for(let o=0;oo.children,window.rgb2hex=o=>{function t(o){return("0"+parseInt(o).toString(16)).slice(-2)}return"#"+t((o=o.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/))[1])+t(o[2])+t(o[3])},window.slugify=(t,o)=>{if(!t||!t.length)return"";t=t.toString().toLowerCase().trim();return[{to:"a",from:"[ÀÁÂÃÄÅÆĀĂĄẠẢẤẦẨẪẬẮẰẲẴẶ]"},{to:"c",from:"[ÇĆĈČ]"},{to:"d",from:"[ÐĎĐÞ]"},{to:"e",from:"[ÈÉÊËĒĔĖĘĚẸẺẼẾỀỂỄỆ]"},{to:"g",from:"[ĜĞĢǴ]"},{to:"h",from:"[ĤḦ]"},{to:"i",from:"[ÌÍÎÏĨĪĮİỈỊ]"},{to:"j",from:"[Ĵ]"},{to:"ij",from:"[IJ]"},{to:"k",from:"[Ķ]"},{to:"l",from:"[ĹĻĽŁ]"},{to:"m",from:"[Ḿ]"},{to:"n",from:"[ÑŃŅŇ]"},{to:"o",from:"[ÒÓÔÕÖØŌŎŐỌỎỐỒỔỖỘỚỜỞỠỢǪǬƠ]"},{to:"oe",from:"[Œ]"},{to:"p",from:"[ṕ]"},{to:"r",from:"[ŔŖŘ]"},{to:"s",from:"[ߌŜŞŠ]"},{to:"t",from:"[ŢŤ]"},{to:"u",from:"[ÙÚÛÜŨŪŬŮŰŲỤỦỨỪỬỮỰƯ]"},{to:"w",from:"[ẂŴẀẄ]"},{to:"x",from:"[ẍ]"},{to:"y",from:"[ÝŶŸỲỴỶỸ]"},{to:"z",from:"[ŹŻŽ]"},{to:"-",from:"[·/_,:;']"}].forEach(o=>{t=t.replace(new RegExp(o.from,"gi"),o.to)}),t=t.toString().toLowerCase().replace(/\s+/g,"-").replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),t=void 0!==o&&"-"!==o?t.replace(/-/g,o):t},window.fallbackCopyTextToClipboard=o=>{var t=document.createElement("textarea");t.value=o,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{var e=document.execCommand("copy")?"successful":"unsuccessful";console.log("Fallback: Copying text command was "+e)}catch(o){console.error("Fallback: Oops, unable to copy",o)}document.body.removeChild(t)},window.copyTextToClipboard=o=>{navigator.clipboard?navigator.clipboard.writeText(o).then(function(){console.log("Async: Copying to clipboard was successful!")},function(o){console.error("Async: Could not copy text: ",o)}):fallbackCopyTextToClipboard(o)};