(()=>{function c(){var t,s,i,e=document.getElementById("rd-product-search"),n=document.getElementById("rd-product-grid");if(!e||!n)return;i=[].slice.call(n.querySelectorAll(".rd-pcard")),t=document.getElementById("rd-product-empty"),s=[].slice.call(document.querySelectorAll(".rd-chip[data-q]"));function o(){var n=e.value.trim().toLowerCase(),o=0;i.forEach(function(e){var t=!n||e.getAttribute("data-name").indexOf(n)!==-1;e.hidden=!t,t&&o++}),s.forEach(function(e){e.classList.toggle("is-active",e.getAttribute("data-q").toLowerCase()===n)}),t&&(t.hidden=o>0,t.querySelector("[data-q-echo]").textContent=e.value.trim())}e.addEventListener("input",o),s.forEach(function(t){t.addEventListener("click",function(){e.value=t.getAttribute("data-q"),o()})}),t&&t.querySelector("[data-clear]").addEventListener("click",function(t){t.preventDefault(),e.value="",o(),e.focus()}),n.addEventListener("change",function(e){e.target.classList.contains("rd-pcard__platform")&&e.target.value&&(window.location.href=e.target.value)}),document.addEventListener("keydown",function(t){var n=document.activeElement&&document.activeElement.tagName||"";t.key==="/"&&!/INPUT|TEXTAREA|SELECT/.test(n)&&(t.preventDefault(),e.focus())})}function s(){var e,t,n,s,i,o=document.getElementById("rd-kb-list");if(!o)return;e=document.getElementById("rd-kb-search"),n=document.getElementById("rd-kb-empty"),i=[].slice.call(o.querySelectorAll(".rd-kb-card")),s=[].slice.call(document.querySelectorAll(".rd-pill[data-cat]")),t="all";function a(){var o=e?e.value.trim().toLowerCase():"",s=null;i.forEach(function(e){var n=(t==="all"||e.getAttribute("data-cat")===t)&&(!o||e.getAttribute("data-search").indexOf(o)!==-1);e.hidden=!n,e.classList.remove("is-featured"),n&&!s&&(s=e)}),s&&s.classList.add("is-featured"),n&&(n.hidden=!!s)}s.forEach(function(e){e.addEventListener("click",function(){t=e.getAttribute("data-cat"),s.forEach(function(t){t.classList.toggle("is-active",t===e)}),a()})}),e&&e.addEventListener("input",a)}function r(e){return/^\s*note\s*:/i.test(e.textContent)}function e(e){if(!e)return!1;var t=e.textContent.trim();return/^ready\b/i.test(t)&&/purchase\.(aspose|groupdocs)\.com|contact/i.test(e.innerHTML)}function o(e){[].slice.call(e.querySelectorAll(":scope > p, :scope > blockquote")).forEach(function(e){r(e)&&e.classList.add("rd-note")})}function l(e){[].slice.call(e.querySelectorAll(":scope > table")).forEach(function(e){var t=document.createElement("div");t.className="rd-table-wrap",e.parentNode.insertBefore(t,e),t.appendChild(e)})}function a(e){[].slice.call(e.querySelectorAll(":scope > ol")).forEach(function(e){var n,t=[].slice.call(e.children);if(t.length<2||t.length>6)return;if(n=t.every(function(e){var t=e.firstElementChild;return t&&t.tagName==="STRONG"&&e.textContent.trim().indexOf(t.textContent.trim())===0&&e.textContent.length<280&&!e.querySelector("ul, ol")}),!n)return;e.classList.add("rd-keycards"),t.forEach(function(e,t){var n,s,o=e.firstElementChild,i=o.textContent.replace(/[:\s]+$/,"");e.removeChild(o),n=e.innerHTML.replace(/^\s*(?:[-–—:]\s*)?/,""),s=n.charAt(0),s&&(n=s.toUpperCase()+n.slice(1)),e.innerHTML='<div class="rd-keycards__no">'+String(t+1).padStart(2,"0")+'</div><div class="rd-keycards__title"></div><div>'+n+"</div>",e.querySelector(".rd-keycards__title").textContent=i})})}function n(t){var n,s,o,i,a,r,c,l,d,u,h,m,f,p,g=[].slice.call(t.querySelectorAll(":scope > h2")).filter(function(e){return/faq|frequently asked/i.test(e.textContent)})[0];if(!g)return;for(l=[],a=null,n=g.nextElementSibling,s=[];n&&n.tagName!=="H2"&&n.tagName!=="HR"&&n.tagName!=="BLOCKQUOTE";){if(o=n.firstElementChild,d=n.tagName==="P"&&o&&o.tagName==="STRONG"&&n.textContent.trim().indexOf(o.textContent.trim())===0,u=n.tagName==="H3",d||u)p=(u?n:o).textContent.replace(/^\s*Q\s*[:.]\s*/i,"").trim(),h=document.createElement("div"),d&&(c=n.cloneNode(!0),c.removeChild(c.firstElementChild),m=c.innerHTML.replace(/^\s*(<br\s*\/?>\s*)*/i,"").replace(/^\s*A\s*[:.]\s*/i,"").trim(),m&&(h.innerHTML="<p>"+m+"</p>")),a={q:p,a:h},l.push(a),s.push(n);else if(a&&!e(n)&&!/^\s*(#\w+\s*)+$/.test(n.textContent))r=n.cloneNode(!0),n.tagName==="P"&&(r.innerHTML=r.innerHTML.replace(/^\s*A\s*[:.]\s*/i,"")),a.a.appendChild(r),s.push(n);else break;n=n.nextElementSibling}if(l.length<2)return;i=document.createElement("div"),i.className="rd-faq",l.forEach(function(e,t){var n,o="rd-faq-a-"+t,s=document.createElement("div");s.className="rd-faq__item",n=document.createElement("button"),n.type="button",n.className="rd-faq__q",n.setAttribute("aria-controls",o),n.innerHTML='<span></span><span class="rd-faq__icon" aria-hidden="true"></span>',n.firstChild.textContent=e.q,e.a.className="rd-faq__a",e.a.id=o,s.appendChild(n),s.appendChild(e.a),i.appendChild(s)}),s[0].parentNode.insertBefore(i,s[0]),s.forEach(function(e){e.parentNode.removeChild(e)}),f=[].slice.call(i.children);function v(e){f.forEach(function(t,n){var s=n===e;t.querySelector(".rd-faq__a").hidden=!s,t.querySelector(".rd-faq__q").setAttribute("aria-expanded",String(s)),t.querySelector(".rd-faq__icon").textContent=s?"−":"+"})}f.forEach(function(e,t){e.querySelector(".rd-faq__q").addEventListener("click",function(){v(this.getAttribute("aria-expanded")==="true"?-1:t)})}),v(0)}function t(e){var n=null,t=e.lastElementChild;t&&t.tagName==="P"&&/^\s*written by\b/i.test(t.textContent)&&(n=t,e.removeChild(t),n.className="rd-author"),i(e),n&&e.appendChild(n)}function i(t){for(var n,s,o,a,r,c=[].slice.call(t.children),i=c.length-1;i>=0;i--){if(n=c[i],s=n.textContent.trim(),n.tagName==="HR"||/^(#[A-Za-z]\w*\s*)+$/.test(s)||!s){t.removeChild(n);continue}e(n)&&(a=n.querySelector("strong"),r=document.querySelector("[data-cta-title]"),o=a?a.textContent.trim():s.split(/(?<=\?)\s/)[0],r&&o&&o.length<120&&(r.textContent=o),t.removeChild(n));break}}function d(e){var t,n,o,i,s=document.getElementById("rd-toc");if(!s)return;if(t=[].slice.call(e.querySelectorAll(":scope > h2[id]")),!t.length)return;o=s.querySelector(".rd-toc__nav"),i=t.map(function(e){var t=document.createElement("a");return t.href="#"+e.id,t.textContent=e.textContent.replace(/\s*[-–—:]\s*Frequently Asked Questions.*$/i,"").trim(),o.appendChild(t),t}),s.hidden=!1,n=!1;function a(){n=!1;var e=-1;t.forEach(function(t,n){t.getBoundingClientRect().top<window.innerHeight*.35&&(e=n)}),i.forEach(function(t,n){t.classList.toggle("is-active",n===e)})}window.addEventListener("scroll",function(){n||(n=!0,window.requestAnimationFrame(a))},{passive:!0}),a()}function u(){var e=document.getElementById("rd-prose");if(!e)return;t(e),o(e),l(e),a(e),n(e),d(e)}function h(e){return Math.round(e).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function m(){var e=[].slice.call(document.querySelectorAll(".rd-tab[data-tab]")),t=[].slice.call(document.querySelectorAll(".rd-lic-panel[data-panel]"));function n(n,s){if(!t.some(function(e){return e.getAttribute("data-panel")===n}))return;t.forEach(function(e){e.hidden=e.getAttribute("data-panel")!==n}),e.forEach(function(e){var t=e.getAttribute("data-tab")===n;e.classList.toggle("is-active",t),e.setAttribute("aria-selected",String(t))}),s&&history.replaceState(null,"","#"+n)}e.forEach(function(e){e.addEventListener("click",function(){n(e.getAttribute("data-tab"),!0)})}),window.location.hash&&n(window.location.hash.slice(1),!1),[].slice.call(document.querySelectorAll("[data-license]")).forEach(function(e){var i=parseFloat(e.getAttribute("data-base"))||0,a=parseFloat(e.getAttribute("data-support"))||0,r=parseFloat(e.getAttribute("data-consulting"))||0,t=e.querySelector('[data-addon="support"]'),n=e.querySelector('[data-addon="consulting"]'),c=e.querySelector("[data-total]"),o=e.querySelector("[data-cart]"),l=o.getAttribute("href");function s(){var e=l,s=i;t.checked&&(e+="&paidSupport=true",s+=a),n.checked&&(e+="&paidConsulting=true",s+=r),o.href=e,c.textContent=h(s),t.closest(".rd-addon").classList.toggle("is-checked",t.checked),n.closest(".rd-addon").classList.toggle("is-checked",n.checked)}t.addEventListener("change",s),n.addEventListener("change",s),s()}),document.addEventListener("click",function(e){e.target.closest&&e.target.closest(".rd-tip")&&e.preventDefault()})}document.addEventListener("DOMContentLoaded",function(){m(),c(),s(),u()}),document.addEventListener("DOMContentLoaded",function(){var e=[].slice.call(document.querySelectorAll("#myTab a"));e.forEach(function(e){var t=new bootstrap.Tab(e);e.addEventListener("click",function(e){e.preventDefault(),t.show()})})});var f=document.querySelectorAll('[data-bs-toggle="tooltip"]'),p=[...f].map(e=>new bootstrap.Tooltip(e)),g=document.getElementsByClassName("card");document.addEventListener("DOMContentLoaded",function(){var t=document.querySelectorAll("[id^='checkSupport_']"),n=document.querySelectorAll("[id^='checkConsulting_']");function e(e){var t=document.getElementById("checkSupport_"+e),o=document.getElementById("checkConsulting_"+e),i=parseFloat(t.getAttribute("data-base-price")),a=parseFloat(t.getAttribute("data-support-price")),r=document.getElementById("myLink_"+e),c=document.getElementById("totalPrice_"+e),n="https://purchase.groupdocs.com/buy/cart?ppId="+e,s=i;t.checked&&(n+="&paidSupport=true",s+=a),o.checked&&(n+="&paidConsulting=true",s+=5999),r.href=n,c.innerText=s.toFixed(0)}t.forEach(function(t){t.addEventListener("change",function(){e(t.getAttribute("data-pp-id"))}),e(t.getAttribute("data-pp-id"))}),n.forEach(function(t){t.addEventListener("change",function(){e(t.getAttribute("data-pp-id"))}),e(t.getAttribute("data-pp-id"))})}),document.addEventListener("DOMContentLoaded",function(){var e,t,n=document.querySelectorAll(".nav-link");n.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault();var n,t=this.getAttribute("href");document.querySelector(t).classList.add("show","active"),n=document.querySelectorAll(".tab-pane"),n.forEach(function(e){"#"+e.getAttribute("id")!==t&&e.classList.remove("show","active")}),history.pushState(null,null,t)})}),e=window.location.hash,e&&(t=document.querySelector('.nav-link[href="'+e+'"]'),t&&t.click())})})()