!function(){"use strict";var e={d:function(t,o){for(var r in o)e.o(o,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:o[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{register:function(){return a}});const o=e=>{if(!e)return"";try{return new URL(e,window.location.href).href}catch{return e}},r=(e,t="")=>{if(!t)return Promise.resolve(!0);return document.getElementById(e)||(e=>{const t=o(e);return Array.from(document.getElementsByTagName("link")).some((e=>"stylesheet"===e.rel&&o(e.href)===t))})(t)?Promise.resolve(!0):new Promise((o=>{const r=document.createElement("link");r.id=e,r.rel="stylesheet",r.href=t,r.onload=()=>o(!0),r.onerror=()=>o(!1),document.head.appendChild(r)}))},i=(e,t="")=>{if(!t)return Promise.resolve(!0);return document.getElementById(e)||(e=>{const t=o(e);return Array.from(document.getElementsByTagName("script")).some((e=>o(e.src)===t))})(t)?Promise.resolve(!0):((()=>{const e=window.wp?.hooks,t=window.vendor?.wp;e&&t&&(t.hooks||(t.hooks=e))})(),new Promise((o=>{const r=document.createElement("script");r.id=e,r.src=t,r.async=!0,r.onload=()=>{window.dispatchEvent(new CustomEvent("divi:lazy-asset-loader:script-loaded",{detail:{id:e,src:t}})),o(!0)},r.onerror=()=>o(!1),document.body.appendChild(r)})))},n=(e,t)=>{e&&Reflect.set(window,e,t)},a=e=>{if(!e?.id)return;const t=(o=e.id,window.__diviLazyAssetLoaderState||(window.__diviLazyAssetLoaderState={}),window.__diviLazyAssetLoaderState[o]||(window.__diviLazyAssetLoaderState[o]={initialized:!1,loading:!1,loaded:!1,failed:!1}),window.__diviLazyAssetLoaderState[o]);var o;if(t.initialized&&!t.failed)return;t.initialized=!0,t.failed=!1;const a=e.assets??{},d=e.options??{};let s=null;const l=async()=>{if(t.loaded||t.loading)return;t.loading=!0,a.globals?.et_cloud_data&&n("et_cloud_data",a.globals.et_cloud_data),a.globals?.EtAiAppData&&n("EtAiAppData",a.globals.EtAiAppData);const e=Object.keys(a.styles??{}).map((e=>r(e,a.styles?.[e]))),o=Object.keys(a.scripts??{}).map((e=>i(e,a.scripts?.[e]))),d=(await Promise.all([...e,...o])).every(Boolean);t.loading=!1,t.loaded=d,t.failed=!d,d&&s&&(s.disconnect(),s=null)},c=()=>{d.wait_for_preloader&&(()=>{const e=document.getElementById("et-fb-app"),t=document.getElementById("et-fb-app-body-root"),o=e&&e.classList.contains("et-fb-page-preloading"),r=t&&t.classList.contains("et-fb-page-preloading");return Boolean(o||r)})()||l().catch((()=>null))};d.trigger_event&&window.addEventListener(d.trigger_event,c,{once:!0}),d.trigger_message_type&&window.addEventListener("message",(e=>{e?.data&&d.trigger_message_type===e.data.type&&c()})),d.wait_for_preloader&&document.documentElement&&(s=new MutationObserver(c),s.observe(document.documentElement,{subtree:!0,attributes:!0,attributeFilter:["class"]})),d.trigger_window_flag&&Boolean(Reflect.get(window,d.trigger_window_flag))&&c(),!1!==d.auto_attempt&&c()};window.DiviLazyAssetLoader||(window.DiviLazyAssetLoader={register:a}),((window.divi=window.divi||{}).scriptLibrary=window.divi.scriptLibrary||{}).scriptLibraryLazyAssetLoader=t}();