1import{f as E}from"./product-detail-cache.DDHE9wXa.js";function B(t){if(!t)return"";const e=t.replace(/"/g,'"'),l=e.match(/<font[^>]*\bcolor\s*=\s*["']?([^"'>\s]+)["']?/i);if(l?.[1])return l[1].trim();const s=e.match(/\bcolor\s*:\s*([^;"']+)/i);return s?.[1]?s[1].trim():""}function I(t){const e=document.createElement("template");e.innerHTML=t;const l=new Set(["A","B","BR","DIV","EM","FONT","I","LINK","P","SPAN","STRONG","U"]),s=new Set(["class","style","href","target","rel","color","aria-label"]),u=c=>{if(!c)return!1;try{const o=new URL(c);return o.protocol==="https:"&&o.origin==="https://www.cyberlink.com"}catch{return!1}},i=c=>{if(c.nodeType===Node.TEXT_NODE)return document.createTextNode(c.textContent||"");if(c.nodeType!==Node.ELEMENT_NODE)return null;const o=c;if(!l.has(o.tagName)){const a=document.createDocumentFragment();for(const n of Array.from(o.childNodes)){const r=i(n);r&&a.appendChild(r)}return a}if(o.tagName==="LINK"){const a=(o.getAttribute("rel")||"").trim().toLowerCase(),n=(o.getAttribute("href")||"").trim(),r=(o.getAttribute("type")||"").trim().toLowerCase();if(a!=="stylesheet"||!u(n)||r&&r!=="text/css")return null;const m=document.createElement("link");return m.setAttribute("rel","stylesheet"),m.setAttribute("href",n),r&&m.setAttribute("type",r),m}const f=document.createElement(o.tagName.toLowerCase());for(const a of Array.from(o.attributes)){const n=a.name.toLowerCase(),r=a.value;!s.has(n)||/^on/i.test(n)||n==="href"&&!/^(https?:|mailto:|tel:|\/|#)/i.test(r.trim())||n==="target"&&r!=="_blank"&&r!=="_self"||f.setAttribute(n,r)}if(f.tagName==="A"&&f.getAttribute("target")==="_blank"){const n=(f.getAttribute("rel")||"").toLowerCase(),r=new Set(n.split(/\s+/).filter(Boolean));r.add("noopener"),r.add("noreferrer"),f.setAttribute("rel",Array.from(r).join(" "))}for(const a of Array.from(o.childNodes)){const n=i(a);n&&f.appendChild(n)}return f},p=document.createDocumentFragment();for(const c of Array.from(e.content.childNodes)){const o=i(c);o&&p.appendChild(o)}return p}function q(t){if(!t)return"";const e=document.createElement("template");e.innerHTML=t;const s=e.content.querySelector("img")?.getAttribute("src")?.trim()||"";return s&&/^(https?:\/\/|\/)/i.test(s)?s:""}function H(t){if(!t.trim())return"";const e=document.createElement("template");return e.innerHTML=t,(e.content.textContent||"").replace(/\s+/g," ").trim()}function O(t){const e=t.trim();return/^(https?:|mailto:|tel:|\/|#)/i.test(e)?e:""}function M(t){return typeof t=="string"&&t.trim().toLowerCase()==="link"}function P(t){return typeof t=="boolean"?t:typeof t=="string"?t.trim().toLowerCase()!=="false":!0}function R(t){return typeof t=="boolean"?t:typeof t=="string"?t.trim().toLowerCase()==="true":!1}function k(t,e){if(!(!e&&t.getAttribute("data-dismissed")==="true")){if(t.classList.toggle("close",e),e){t.setAttribute("inert",""),t.setAttribute("aria-hidden","true");return}t.removeAttribute("inert"),t.removeAttribute("aria-hidden")}}function U(t){requestAnimationFrame(()=>{requestAnimationFrame(()=>{k(t,!1)})})}function z(t){if(!("IntersectionObserver"in window))return!1;const e=document.querySelector("section.main-hero");if(!e)return!1;const l=60,s=new IntersectionObserver(([u])=>{if(!u||t.hasAttribute("hidden"))return;if(t.getAttribute("data-dismissed")==="true"){s.disconnect();return}const i=!u.isIntersecting&&u.boundingClientRect.bottom<=l;k(t,!i)},{rootMargin:`-${l}px 0px 0px 0px`});return s.observe(e),!0}async function D(){const t=document.getElementById("promo-sticky-footer");if(!t)return;const e=t.getAttribute("data-product-id"),l=t.getAttribute("data-lang"),s=t.getAttribute("data-locale");if(!(!e||!l||!s))try{const u=await E(e,l,s),{data:i}=u;if(!P(i?.stickyFooter?.show)){t.setAttribute("hidden","");return}const p=R(i?.stickyFooter?.scrollAndShow),c=i?.stickyFooter?.text||"",o=c.trim().length>0,a=(i?.stickyFooter?.backgroundColor||"").replace(/background-color\s*:\s*/i,"").replace(/background\s*:\s*/i,"").replace(/;$/,"").trim(),n=(i?.stickyFooter?.buttonBackgroundColor||"").trim(),r=(i?.stickyFooter?.buttonTextColor||"#ffffff").trim(),m=H(i?.stickyFooter?.buttonText||""),C=O(i?.stickyFooter?.buttonLink||""),h=M(i?.stickyFooter?.buttonAction)&&!!C,x=B(c),L=(i?.stickyFooter?.image||"").trim(),T=q(c),v=!L&&!!T,F=L||T;if(!o){t.setAttribute("hidden","");return}a&&t.style.setProperty("--promo-sticky-bg-color",a),n&&t.style.setProperty("--promo-btn-color",n),r&&t.style.setProperty("--promo-txt-color",r),x&&t.style.setProperty("--promo-main-txt-color",x);const g=t.querySelector(".inner-content"),d=g?.querySelector("img"),A=g?.querySelector(".sticky-footer-text"),y=g?.querySelector(".promo-buy-now-button"),b=g?.querySelector(".promo-link-button");if(d&&(F?(d.src=F,d.classList.remove("is-hidden"),v?d.classList.add("from-text"):d.classList.remove("from-text")):(d.classList.add("is-hidden"),d.classList.remove("from-text"),d.removeAttribute("src"))),g&&A){const w=y?.textContent?.replace(/\s+/g," ").trim()||b?.textContent?.replace(/\s+/g," ").trim()||"",S=m||w;if(y&&(m&&(y.textContent=m),y.classList.toggle("is-hidden",h)),b&&(h&&(b.setAttribute("href",C),S&&(b.textContent=S)),b.classList.toggle("is-hidden",!h)),A.replaceChildren(),o){const N=I(c);A.appendChild(N)}}t.removeAttribute("hidden"),p&&z(t)||U(t)}
1catch(u){console.error("Error updating sticky footer:",u)}}function _(){const t=document.getElementById("promo-sticky-footer"),e=t?.querySelector("[data-close-sticky-footer]");!t||!e||e.addEventListener("click",()=>{t.setAttribute("data-dismissed","true"),k(t,!0)})}_();D();
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.