((i,e,s,n,t)=>{"use strict";s.Prism??={},s.Prism.manual=!0;const o="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/",m=i.is_builder_active?600:1e3,r=(e,s,t)=>{const m=[];return s&&m.push(i.loadCss(o+"plugins/line-numbers/prism-line-numbers.min.css","prism-line-numbers",!1)),t&&m.push(i.loadCss(o+"plugins/line-highlight/prism-line-highlight.min.css","prism-line-highlight",!1)),e&&m.push(i.loadCss(ThemifyBuilderModuleJs.cssUrl+"prism-themes/"+e+".min",e)),n.all(m)},l=async i=>{const s=i.currentTarget,n=s.closest(".module").tfTag("code")[0].textContent,o=()=>{s.classList.add("tb_copy_done"),t((()=>{s.classList.remove("tb_copy_done")}),3e3)},m=()=>{t((()=>{alert("Can`t copy Press Ctrl+C to copy")}),6)};if(!s.dataset.working){s.dataset.working=1;try{if(!navigator.clipboard)throw"";await navigator.clipboard.writeText(n),o()}catch(i){const s=e.createElement("textarea");s.value=n,s.style.top=s.style.left="0",s.style.position="fixed",e.body.appendChild(s),s.focus(),s.select();try{const i=e.execCommand("copy");t((()=>{i?o():m()}),1)}catch(i){m()}s.remove()}s.dataset.working=""}},a=async e=>{const a=[],c=e.tfTag("code")[0],p=c.classList.contains("line-numbers"),u=c.parentNode.dataset.line;await n.all([i.loadJs(o+"components/prism-core.min.js",!!s.Prism.languages,!1),r(e.dataset.theme,p,u)]),await import(o+"plugins/autoloader/prism-autoloader.min.js"),Prism.plugins.autoloader.languages_path=o+"components/",a.push(import(o+"plugins/normalize-whitespace/prism-normalize-whitespace.min.js")),p&&a.push(import(o+"plugins/line-numbers/prism-line-numbers.min.js")),u&&a.push(import(o+"plugins/line-highlight/prism-line-highlight.min.js")),await n.all(a),t((()=>{requestAnimationFrame((()=>{Prism.highlightElement(c),e.tfClass("tb_code_copy")[0]?.tfOn(i.click,l,{passive:!0})}))}),m)};i.on("builder_load_module_partial",((e,s)=>{if(!0!==s||e.classList.contains("module-code"))for(let s=i.selectWithParent("module-code",e),n=s.length-1;n>-1;--n)a(s[n])}))})(Themify,document,window,Promise,setTimeout);