(()=>{(function(){"use strict";const m="fleekdash-wpds-provider-override",g=':root:has([data-wpds-root-provider="true"]),[data-wpds-root-provider="true"],[data-wpds-theme-provider-id]';function e(t){const r=document.documentElement;return r&&getComputedStyle(r).getPropertyValue(t).trim()||""}function w(){const t=e("--primary");if(!t)return"";const r=e("--primary-rgb"),o=e("--primary-foreground")||"#ffffff",n=e("--primary-darker-10")||t,i=e("--primary-darker-20")||t,d=e("--background")||"#f8f8f8",u=e("--card")||"#ffffff",p=e("--foreground")||"#1e1e1e",s=e("--border")||"#d8d8d8",a=e("--muted-foreground")||"#6d6d6d",f=e("--destructive")||"#cc1818";return`${g}{--wp-admin-theme-color:${t}!important;`+(r?`--wp-admin-theme-color--rgb:${r}!important;`:"")+`--wp-admin-theme-color-darker-10:${n}!important;--wp-admin-theme-color-darker-20:${i}!important;--wp-components-color-accent:${t}!important;--wp-components-color-accent-darker-10:${n}!important;--wp-components-color-accent-darker-20:${i}!important;--wp-components-color-accent-inverted:${o}!important;--wp-components-color-background:${u}!important;--wp-components-color-foreground:${p}!important;--wp-components-color-foreground-inverted:${d}!important;--wp-components-color-gray-100:${d}!important;--wp-components-color-gray-200:${s}!important;--wp-components-color-gray-300:${s}!important;--wp-components-color-gray-400:${a}!important;--wp-components-color-gray-600:${a}!important;--wp-components-color-gray-700:${a}!important;--wp-components-color-gray-800:${p}!important;--wpds-color-bg-interactive-brand-strong:${t}!important;--wpds-color-bg-interactive-brand-strong-active:${n}!important;--wpds-color-fg-interactive-brand:${t}!important;--wpds-color-fg-interactive-brand-active:${t}!important;--wpds-color-fg-interactive-brand-strong:${o}!important;--wpds-color-fg-interactive-brand-strong-active:${o}!important;--wpds-color-bg-thumb-brand:${t}!important;--wpds-color-bg-thumb-brand-active:${t}!important;--wpds-color-stroke-focus-brand:${t}!important;--wpds-color-stroke-interactive-brand:${t}!important;--wpds-color-stroke-interactive-brand-active:${n}!important;--wpds-color-stroke-surface-brand-strong:${t}!important;--wpds-color-bg-surface-neutral:${d}!important;--wpds-color-bg-surface-neutral-strong:${u}!important;--wpds-color-fg-content-neutral:${p}!important;--wpds-color-fg-content-neutral-weak:${a}!important;--wpds-color-stroke-surface-neutral:${s}!important;--wpds-color-stroke-interactive-neutral:${a}!important;--wpds-color-bg-interactive-error-strong:${f}!important;--wpds-color-fg-interactive-error:${f}!important;}`}function l(){globalThis.FleekDashIframeWpwrapPin?.apply()}function c(){const t=w();if(!t){l();return}let r=document.getElementById(m);r||(r=document.createElement("style"),r.id=m,r.setAttribute("data-fleekdash-wpds-provider-sync","true"),document.head.appendChild(r)),r.textContent!==t&&(r.textContent=t),l()}function b(t){if(t.nodeType!==Node.ELEMENT_NODE)return!1;const r=t;if(r.tagName!=="STYLE")return!1;const o=r.textContent||"";return o.includes("--wpds-color-bg-interactive-brand-strong")||o.includes("--wpds-color-fg-content-neutral")||o.includes("data-wpds-theme-provider-id")||r.hasAttribute("data-wpds-theme-provider-id")}function v(){if(!document.head)return;new MutationObserver(r=>{let o=!1;for(const n of r){for(const i of n.addedNodes)if(b(i)){o=!0;break}if(o)break}o&&c()}).observe(document.head,{childList:!0,subtree:!0})}function $(){c(),v()}$(),document.readyState==="loading"&&document.addEventListener("DOMContentLoaded",c,{once:!0}),globalThis.addEventListener("load",c,{once:!0})})();})();
