O:41:"Symfony\Component\AssetMapper\MappedAsset":12:{s:10:"sourcePath";s:81:"/home/galides-ibrahim/espace/vendor/symfony/stimulus-bundle/assets/dist/loader.js";s:10:"publicPath";s:50:"/assets/@symfony/stimulus-bundle/loader-UWc7qA_.js";s:23:"publicPathWithoutDigest";s:42:"/assets/@symfony/stimulus-bundle/loader.js";s:15:"publicExtension";s:2:"js";s:7:"content";s:2001:"import{Application}from"@hotwired/stimulus";import{eagerControllers,isApplicationDebug,lazyControllers}from"./controllers.js";const controllerAttribute="data-controller",loadControllers=(e,t,n)=>{for(const n in t)registerController(n,t[n],e);const s=new StimulusLazyControllerHandler(e,n);s.start()},startStimulusApp=()=>{const e=Application.start();return e.debug=isApplicationDebug,loadControllers(e,eagerControllers,lazyControllers),e};class StimulusLazyControllerHandler{constructor(e,t){this.application=e,this.lazyControllers=t}start(){this.lazyLoadExistingControllers(document.documentElement),this.lazyLoadNewControllers(document.documentElement)}lazyLoadExistingControllers(e){Array.from(e.querySelectorAll(`[${controllerAttribute}]`)).flatMap(extractControllerNamesFrom).forEach(e=>this.loadLazyController(e))}loadLazyController(e){if(!this.lazyControllers[e])return;const t=this.lazyControllers[e];if(delete this.lazyControllers[e],!canRegisterController(e,this.application))return;this.application.logDebugActivity(e,"lazy:loading"),t().then(t=>{this.application.logDebugActivity(e,"lazy:loaded"),registerController(e,t.default,this.application)}).catch(t=>{console.error(`Error loading controller "${e}":`,t)})}lazyLoadNewControllers(e){if(Object.keys(this.lazyControllers).length===0)return;new MutationObserver(e=>{for(const{attributeName:n,target:t,type:s}of e)switch(s){case"attributes":{n===controllerAttribute&&t.getAttribute(controllerAttribute)&&extractControllerNamesFrom(t).forEach(e=>this.loadLazyController(e));break}case"childList":this.lazyLoadExistingControllers(t)}}).observe(e,{attributeFilter:[controllerAttribute],subtree:!0,childList:!0})}}function registerController(e,t,n){canRegisterController(e,n)&&n.register(e,t)}function extractControllerNamesFrom(e){const t=e.getAttribute(controllerAttribute);return t?t.split(/\s+/).filter(e=>e.length):[]}function canRegisterController(e,t){return!t.router.modulesByIdentifier.has(e)}export{loadControllers,startStimulusApp}";s:6:"digest";s:32:"51673ba80fd3f182df739f294b7930b5";s:13:"isPredigested";b:0;s:11:"logicalPath";s:34:"@symfony/stimulus-bundle/loader.js";s:8:"isVendor";b:0;s:55:"Symfony\Component\AssetMapper\MappedAssetdependencies";a:0:{}s:59:"Symfony\Component\AssetMapper\MappedAssetfileDependencies";a:0:{}s:60:"Symfony\Component\AssetMapper\MappedAssetjavaScriptImports";a:2:{i:0;O:56:"Symfony\Component\AssetMapper\ImportMap\JavaScriptImport":5:{s:10:"importName";s:18:"@hotwired/stimulus";s:16:"assetLogicalPath";s:43:"vendor/@hotwired/stimulus/stimulus.index.js";s:15:"assetSourcePath";s:79:"/home/galides-ibrahim/espace/assets/vendor/@hotwired/stimulus/stimulus.index.js";s:6:"isLazy";b:0;s:24:"addImplicitlyToImportMap";b:0;}i:1;O:56:"Symfony\Component\AssetMapper\ImportMap\JavaScriptImport":5:{s:10:"importName";s:47:"/assets/@symfony/stimulus-bundle/controllers.js";s:16:"assetLogicalPath";s:39:"@symfony/stimulus-bundle/controllers.js";s:15:"assetSourcePath";s:86:"/home/galides-ibrahim/espace/vendor/symfony/stimulus-bundle/assets/dist/controllers.js";s:6:"isLazy";b:0;s:24:"addImplicitlyToImportMap";b:1;}}}