PageSourceSearch

https://www.charentelibre.fr/build/cl/721.d2f3474d.js

js charentelibre.fr collected 2026-09-24 08:49:57 UTC 11,788 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[721],{4943:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(1029);class r extends Error{constructor(e,t=o.i.Error,n={}){super(e),this.logLevel=t,this.context=n,this.name="LoggedError"}static fromError(e,t=o.i.Error,n={}){const i=new r(e.message,t,n);return i.stack=e.stack,i.name="LoggedError",n.previous=e,i}}},3243:(e,t,n)=>{n.d(t,{Z:()=>r,l:()=>o.l});var o=n(4788);class r{static get(e,t=!1){return{name:e,state:this.isEnabled(e,t)}}static exists(e){return void 0!==window.gsoiFeatures&&void 0!==window.gsoiFeatures[e]&&void 0!==window.gsoiFeatures[e].state}static isEnabled(e,t=!1){return r.exists(e)?window.gsoiFeatures[e].state:t}}},4788:(e,t,n)=>{n.d(t,{l:()=>o});let o=function(e){return e.DRAWER_MAIN_MENU="drawer_main_menu",e.FIRST_ID="first_id",e.GRAFANA_FARO="grafana_faro",e.HIDE_PREMIUM_PICTO="hide_premium_picto",e.PAGE_DURATION_TRACKING="page_duration_tracking",e.POOOL_ACCESS="poool_access",e.POOOL_ENGAGE="poool_engage",e.PUBSTACK="pubstack",e.UTIQ="utiq",e}({})},1029:(e,t,n)=>{n.d(t,{i:()=>l,Z:()=>d});var o=n(6765);const r={Z:{a:!1}};var i=n(4943);const s="console.config",a="console.enable";let l=function(e){return e[e.Verbose=0]="Verbose",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error",e}({});var c=function(e){return e.Disabled="0",e.Enabled="1",e}(c||{});class u{static useColor=!0;static logLevel=l.Info;constructor(e,t){this.label=e,this.color=t,void 0!==e&&void 0===t&&(this.color=(e=>{let t=0;for(const n of e)t=n.charCodeAt(0)+((t<<5)-t);let n="#";for(let e=0;e<3;e++)n+=(t>>8*e&255).toString(16).padStart(2,"0");return(0,o.Vi)(n)})(e))}static disable(){window.sessionStorage.setItem(a,c.Disabled),console.log("Console disabled.")}static enable(){window.sessionStorage.setItem(a,c.Enabled),console.log("Console enabled.")}static isEnabled(){return window.sessionStorage.getItem(a)===c.Enabled}static loadConfig(){const e=u.getConfig();u.logLevel=e.logLevel,u.useColor=e.useColor}static getLogLevel(){return u.logLevel.valueOf()}static setLogLevel(e){u.logLevel=e,u.saveConfigValue("logLevel",e)}static setUseColor(e){u.useColor=e,u.saveConfigValue("useColor",e)}static getConfig(){const e=JSON.parse(window.sessionStorage.getItem(s));return{logLevel:u.logLevel,useColor:u.useColor,...e??{}}}static saveConfigValue(e,t){const n=u.getConfig();window.sessionStorage.setItem(s,JSON.stringify({...n,[e]:t}))}debug(...e){this.output(l.Verbose,...e)}log(...e){this.output(l.Info,...e)}warn(...e){this.output(l.Warning,...e)}error(...e){this.output(l.Error,...e)}handleError(e,...t){let n=this,o=[e,...t],r=l.Error;if(e instanceof i.Z){r=e.logLevel,o[0]=e.message;const{console:t,...i}=e.context;void 0!==e.context?.console&&(n=e.context.console),0<Object.getOwnPropertyNames(i).length&&o.push({context:i})}n.output(r,...o)}resolveLoggingMethod(e){switch(e){case l.Verbose:return this.debug;case l.Info:return this.log;case l.Warning:return this.warn;case l.Error:return this.error}}resolveNativeLoggingMethod(e){switch(e){case l.Verbose:return console.debug;case l.Info:return console.log;case l.Warning:return console.warn;case l.Error:return console.error}}output(e,...t){if(!u.isEnabled())return;if(e<u.logLevel)return;const n=[...this.formatLabel(),...t];this.resolveNativeLoggingMethod(e)(...n)}formatLabel(){if(void 0===this.label)return[];if(!u.useColor)return[`[${this.label}]`];const e=this.color.isLight()?this.color.darken(.4).toRgbString():this.color.lighten(.4).toRgbString(),t={"background-color":this.color.toRgbString(),border:"solid 1px "+e,"border-radius":"3px",color:e,"font-size":"85%",margin:"1px 0",padding:"2px 5px"};return[`%c${this.label}`,Object.entries(t).map((e=>e[0]+": "+e[1]+";")).join(" ")]}}window.gsoiconsole=new u("Global",(0,o.Vi)("#808080")),window.Console=u,null===window.sessionStorage.getItem(a)&&r.Z.a&&(u.enable(),u.setLogLevel(r.Z.logLevel??u.getLogLevel())),u.loadConfig();const d=u},9647:(e,t,n)=>{n.d(t,{$3:()=>u,EJ:()=>h,MX:()=>g,cw:()=>c,jo:()=>b,m7:()=>f,oM:()=>r,pn:()=>s,qQ:()=>i,sb:()=>l,x8:()=>d,yG:()=>a});const o=new(n(1029).Z)("Dom");function r(e,t,n,o=!0){n||(n={subtree:!0,childList:!0,characterData:!0,attributes:!0});const r=o=>{o.disconnect(),"function"==typeof t&&(t=t()),"string"==typeof t?e.innerHTML=t:e.replaceChildren(t),o.observe(e,n)},i=new MutationObserver(((e,t)=>{r(t)}));o&&r(i)}async function i(){return new Promise(((e,t)=>{"loading"===document.readyState?window.addEventListener("DOMContentLoaded",(t=>{e(t)}),{once:!0}):e(new Event("DOMContentLoaded"))}))}function s(e){return e&&!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function a(e,t){e.innerHTML=t;for(const t of e.querySelectorAll("script")){const e=document.createElement("script");for(const n of t.attributes)e.setAttribute(n.name,n?.value);e.appendChild(document.createTextNode(t.innerHTML)),t.parentNode.replaceChild(e,t)}}function l(e){const t=document.getElementById(e);return null===t?(o.debug(`Element not found: ${e}`),null):t}function c(e,t=document){const n=t.querySelector(e);return n||(o.debug(`Element not found for "${e}".`),null)}function u(e,t=document){const n=t.querySelectorAll(e);return n.length?Object.values(n):(o.debug(`Elements not found for "${e}".`),[])}function d(e,t){return e instanceof HTMLElement&&""!==e.style.getPropertyValue("--"+t)}function g(e,t,n=null){return d(e,t)&&e instanceof HTMLElement?e.style.getPropertyValue("--"+t):n}function f(e,t=!0,n="all"){const o=[];let r=e;switch(n){case"before":for(t||o.push(e);r.previousElementSibling;)r=r.previousElementSibling,o.push(r);break;case"after":for(t||o.push(e);r.nextElementSibling;)r=r.nextElementSibling,o.push(r);break;default:for(const n of e.parentElement?.children??[])t&&n===e||o.push(n)}return o}function b(e,t=document,n,r=(()=>{}),i=(()=>{}),s=!1){let a=[];if("string"==typeof e){if(a=[...t.querySelectorAll(e)],!a.length)return o.warn(`Elements "${e}" not found.`),null}else a=e instanceof Element?[e]:e;if(!a.length)return o.warn("No elements to observe."),null;const l=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting?(r(e.target),s&&(o.debug("Intersection observer disconnected (once).",l),l.disconnect())):i(e.target)}))}),{root:t,rootMargin:"0px",threshold:n});for(const e of a)l.observe(e);return l}function h(e,t){const n=new ResizeObserver((n=>{for(const o of n)if(o.target===e&&o.contentBoxSize){t.call(t,o.contentBoxSize[0]);break}}
1));return n.observe(e),n}},1146:(e,t,n)=>{n.d(t,{$v:()=>I,Lm:()=>p,QM:()=>h,XU:()=>E,r9:()=>m,s8:()=>v,sy:()=>w,wc:()=>b});var o=n(1029),r=n(9407),i=n(4943),s=n(1488),a=n(9647),l=n(3243);const c=new o.Z("Service"),u={},d={};var g=function(e){return e[e.UNINITIALIZED=0]="UNINITIALIZED",e[e.INITIALIZING=1]="INITIALIZING",e[e.FAILED=2]="FAILED",e[e.INITIALIZED=3]="INITIALIZED",e}(g||{});const f=Object.seal({ExcludeFromPreview:Symbol("ExcludeFromPreview"),FeatureFlagged:Symbol("FeatureFlagged")});class b{initStatus=g.UNINITIALIZED;initialized=!1;isInitialized(){return this.initialized||this.initStatus===g.INITIALIZED}hasBeenInitialized(){return this.initStatus>g.UNINITIALIZED}getInitStatus(){return this.initStatus}}function h(e){return t=>(t[Symbol.toStringTag]=`${e}`,t)}function w(e){return e??=c,(t,n,s)=>{const a=s.value;return s.value=async function(){if(this.hasBeenInitialized())return void e.warn("Already initializing...");e.debug("Initializing..."),this.initStatus=g.INITIALIZING;const t=this.constructor[f.ExcludeFromPreview]??!1,n=this.constructor[f.FeatureFlagged];try{if(!0===t&&(0,r.TV)())throw new i.Z("Cue preview detected: aborting initialization.",o.i.Warning,{console:e});if(void 0!==n){if(!1===n.state)throw new i.Z(`Feature flag "${n.name}" is disabled: aborting initialization.`,o.i.Warning,{console:e});e.log(`Feature flag "${n.name}" is enabled: initialization...`)}const s=await a.apply(this);return e.debug("Initialized."),this.initStatus=g.INITIALIZED,s}catch(e){this.initStatus=g.FAILED,c.handleError(e)}},s}}function I(e){return e[f.ExcludeFromPreview]=!0,e}function p(e,t=!1){return n=>{const o={name:e,state:l.Z.isEnabled(e,t)};return n[f.FeatureFlagged]=o,n}}async function m(e,...t){const n=e[Symbol.toStringTag]??(0,s.O1)(10),o=Symbol.for(n);return void 0===u[o]&&(c.debug("Creating new instance...",o),u[o]=new e(...t)),void 0===d[o]&&(d[o]=u[o].initialize()),g.INITIALIZING===u[o].getInitStatus()&&d[o]&&await d[o],c.debug("Return initialized instance.",o,u[o]),u[o]}async function v(e,...t){const n=e[Symbol.toStringTag]??(0,s.O1)(10);c.debug("Creating new instance...",n);const o=new e(...t);return await o.initialize(),c.debug("Return initialized instance.",n,o),o}async function E(e,t,n=!1){if(await(0,a.qQ)(),c.debug("Initializing instances per block...",e),c.debug("Async instance enabled",n),n){const n=e=>{c.log("Async block loaded, try to load instance",e),t(e).initialize()};window.addEventListener("block-async-loaded",(t=>{for(const o of t.detail?.nodes??[]){o.matches(e)&&n(o);for(const t of o.querySelectorAll(e)??[])n(t)}}))}const o=[],r=[];for(const n of(0,a.$3)(e)){const e=t(n);r.push(e),o.push(e.initialize())}return await Promise.allSettled(o),r}},1488:(e,t,n)=>{function o(e){const t=/[\\^$.*+?()[\]{}|]/g;return e&&t.test(e)?e.replace(t,"\\$&"):e}function r(e){const t=e.match(/^\/([^\/]+)\//);return t?t[1]:""}function i(e,t=!1){let n="";const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=new Uint32Array(e);return(window.crypto||window.msCrypto).getRandomValues(r),r.forEach((e=>{t&&0===n.length?n+=o.charAt(e%52):n+=o.charAt(e%62)})),n}function s(e){return Array.isArray(e)?JSON.stringify(e):"boolean"==typeof e?e?"true":"false":"number"==typeof e?e.toString():null==e?"":"object"==typeof e?e.hasOwnProperty("toString")?e.toString():JSON.stringify(e):e}n.d(t,{Ew:()=>r,O1:()=>i,Pz:()=>s,_U:()=>o})},9407:(e,t,n)=>{n.d(t,{Ds:()=>u,Po:()=>a,ZM:()=>l,OW:()=>d,eY:()=>c,TV:()=>g,s2:()=>s,SH:()=>i});const o=n.p+"editor/cl/images/logo.fad94409.svg",r=n.p+"editor/cl/images/logo-inline.fad94409.svg";async function i(e,t=!1){return new Promise(((n,o)=>{let r=document.querySelector(`script[src="${e}"]`);r&&void 0!==r.dataset.state&&t?"loaded"===r.dataset.state?(console.log("Script already loaded.",e,r),n({script:e,scriptTag:r,loaded:!0})):"loading"===r.dataset.state&&(console.log("Script already added, waiting to load...",e,r),r.addEventListener("load",(()=>{n({script:e,scriptTag:r,loaded:!0})}),{once:!0})):(r=document.createElement("script"),r.async=!0,r.src=e,r.dataset.state="loading",r.onload=()=>{r.dataset.state="loaded",n({script:e,scriptTag:r,loaded:!0})},r.onerror=t=>{r.dataset.state="error",o({script:e,scriptTag:r,loaded:!1,error:t})},document.head.appendChild(r))}))}const s=()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator?.userAgent);navigator.vendor&&navigator.vendor.indexOf("Apple")>-1&&navigator.userAgent&&-1==navigator.userAgent.indexOf("CriOS")&&-1==navigator.userAgent.indexOf("FxiOS")&&navigator.userAgent.indexOf("OPT");function a(e){const t=e instanceof Date?e:new Date(1e3*e);return t.toLocaleDateString("fr-FR",{day:"2-digit",month:"2-digit"})+" à "+t.toLocaleTimeString("fr-FR",{hour:"2-digit",minute:"2-digit"})}function l(){const e=document.querySelector('meta[name="gsoi:article-id"]');return e?.getAttribute("content")}function c(e,t){const n=function(e){e??=new URL(window.location.href);const t=new Map,n=e instanceof URL?e:new URL(e);
1return new URLSearchParams(n.search).forEach(((e,n)=>{t.set(n,e)})),t}(t);return 0===n.size?null:n.get(e)}function u(e,t,n){let o;return(...r)=>{void 0!==o&&void 0!==n&&n.call(null),clearTimeout(o),o=setTimeout(e,t,...r)}}function d(e=!1,t=!1){const n=e?r:o;return t?`${window.location.protocol}//${window.location.host}${n}`:n}function g(){return"cue-preview-window"===window?.top?.name}}}]);

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.