!function(){"use strict";var e={d:function(t,o){for(var i in o)e.o(o,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:o[i]})},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 d}});const o="divi:lazy-asset-loader:asset-failed",i=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=i(e);return Array.from(document.getElementsByTagName("link")).some((e=>"stylesheet"===e.rel&&i(e.href)===t))})(t)?Promise.resolve(!0):new Promise((i=>{const r=document.createElement("link");r.id=e,r.rel="stylesheet",r.href=t,r.onload=()=>i(!0),r.onerror=()=>{window.dispatchEvent(new CustomEvent(o,{detail:{id:e,src:t,assetType:"style"}})),r.remove(),i(!1)},document.head.appendChild(r)}))},n=(e,t="")=>{if(!t)return Promise.resolve(!0);return document.getElementById(e)||(e=>{const t=i(e);return Array.from(document.getElementsByTagName("script")).some((e=>i(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((i=>{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}})),i(!0)},r.onerror=()=>{window.dispatchEvent(new CustomEvent(o,{detail:{id:e,src:t,assetType:"script"}})),r.remove(),i(!1)},document.body.appendChild(r)})))},a=(e,t)=>{e&&Reflect.set(window,e,t)},d=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 i=e.assets??{},d=e.options??{};let s=null;const l=async()=>{if(t.loaded||t.loading)return;t.loading=!0,i.globals?.et_cloud_data&&a("et_cloud_data",i.globals.et_cloud_data),i.globals?.EtAiAppData&&a("EtAiAppData",i.globals.EtAiAppData);const e=Object.keys(i.styles??{}).map((e=>r(e,i.styles?.[e]))),o=Object.keys(i.scripts??{}).map((e=>n(e,i.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"),i=t&&t.classList.contains("et-fb-page-preloading");return Boolean(o||i)})()||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:d}),((window.divi=window.divi||{}).scriptLibrary=window.divi.scriptLibrary||{}).scriptLibraryLazyAssetLoader=t}();