@supersoniks/concorde 4.7.3 → 4.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ai/AGENTS.md CHANGED
@@ -47,6 +47,10 @@ Skill **`concorde-imports`** : section « Dans le dépôt Concorde ».
47
47
 
48
48
  Skill **`concorde-get-set-dp`** : chemins sans placeholder **`${…}`** / **`{$…}`** pour `get` / `set` / `dp` ; chemins JS évalués OK ; clés dynamiques → décorateurs, `dp(idRésolu)`, ou **`sub(clé)`** dans les templates Lit.
49
49
 
50
+ ## Migration Subscriber / sonic-fetch
51
+
52
+ Skill **`concorde`** — section **« Piège migration Subscriber → LitElement »** : ne pas laisser des `@property` orphelines après retrait du mixin ; `@get` + `@subscribe` feuille ; `apiConfigKey` en modale ; sync des noms de props pour les `Endpoint` dynamiques.
53
+
50
54
  ## Documentation
51
55
 
52
56
  Fichiers `.md` dans le package : `node_modules/@supersoniks/concorde/src/` (composants, décorateurs, getting-started).
@@ -47,3 +47,13 @@ Placeholder `${prop}` = chaîne normale, résolu depuis le composant hôte.
47
47
 
48
48
  - **Scope** : `<sonic-scope serviceURL="…">` · `@get(endpoint)` ou `@get(endpoint, apiConfigKey)` — skills `concorde-scope`
49
49
  - **Theme** : `<sonic-theme background color font>` · `--sc-*` — skill `concorde-theme`
50
+
51
+ ## Migration Subscriber / sonic-fetch (piège fréquent)
52
+
53
+ - Retirer `extends Subscriber` **sans** `@subscribe` sur chaque champ affiché → UI vide (props orphelines).
54
+ - Remplacer `sonic-fetch` : `@get` + alimenter le DP ; UI en `@subscribe` feuille ou hôte `Subscriber` + `dataProvider`/`subDataProvider`.
55
+ - `@get` + placeholders `${prop}` : propriétés homonymes sur l'hôte (ou sync dans `willUpdate`).
56
+ - Modale / portal : `@get(endpoint, apiConfigKey)` si pas de `serviceURL` ascendant.
57
+ - `@subscribe` → préférer `@state()`, pas `@property`.
58
+
59
+ Détail : skill `concorde` — section « Piège migration Subscriber → LitElement ».
@@ -31,6 +31,14 @@ Placeholder `${prop}` dans une chaîne normale : `"users.${userIndex}"`.
31
31
  - **Scope** (`sonic-scope`) : `serviceURL`, `formDataProvider`, icônes — skill `concorde-scope`
32
32
  - **Theme** (`sonic-theme`) : `--sc-*` tokens, dark mode — skill `concorde-theme`
33
33
  - `@get(endpoint)` sans clé config → hérite scope ; `@get(endpoint, apiConfigKey)` → DataProvider
34
+ - Modale / portal : préférer `apiConfigKey` si pas de scope DOM fiable
35
+
36
+ ## Migration Subscriber / sonic-fetch
37
+
38
+ - Ne pas retirer `Subscriber` sans `@subscribe` feuille par feuille sur chaque champ du `render()`.
39
+ - `sonic-fetch` → `@get` + DP ; `@subscribe` ou hôte `Subscriber` avec `dataProvider`/`subDataProvider`.
40
+ - Placeholders Endpoint = propriétés homonymes sur l'hôte (`checkCode` → copier vers `code` si besoin).
41
+ - `@subscribe` + `@state()`, pas `@property` pour la lecture DP.
34
42
 
35
43
  ## Navigation
36
44
 
@@ -195,6 +195,32 @@ Après `initPublisher`, refléter le chemin résolu sur l’attribut (ex. `app/c
195
195
 
196
196
  **Liste / queue** : chaque ligne a son publisher — l’hôte **hérite** de l’ancêtre ; ne pas forcer `app.currentSession` sur un item de liste.
197
197
 
198
+ ### Piège migration `Subscriber` → `LitElement` (checklist)
199
+
200
+ Lors du remplacement de `sonic-fetch` ou du retrait du mixin `Subscriber` sur un composant **métier** :
201
+
202
+ | Étape | Vérification |
203
+ |-------|----------------|
204
+ | Champs affichés dans `render()` | Chaque `@property` autrefois remplie par template filling → **`@subscribe(dpKey.feuille)` + `@state()`** (pas laisser des `@property` orphelins) |
205
+ | Enfant d’un `@get` | `@get` + `@publish`/`@handle` vers le DataProvider cible ; l’UI lit ce DP via `@subscribe`, pas via des props vides |
206
+ | Placeholders `Endpoint` | Les noms `${prop}` doivent exister sur l’hôte (`@property` ou copie dans `willUpdate` si le scan utilise un autre nom, ex. `checkCode` → `code`) |
207
+ | Modale / portal | `@get(endpoint, apiConfigKey)` si pas de `serviceURL` ascendant fiable (`Modal` → `Theme.getPopContainer()`) |
208
+ | Remplacement `sonic-fetch` | Expliciter `dataProvider` + `subDataProvider` sur les hôtes `Subscriber` enfants (ex. `app` + `currentScanTicket`) |
209
+
210
+ ```typescript
211
+ // ❌ — Subscriber retiré, props jamais alimentées
212
+ export class TicketInfos extends LitElement {
213
+ @property({ type: Object }) owner = {};
214
+ render() { return html`${this.owner?.firstName}`; }
215
+ }
216
+
217
+ // ✅ — une souscription par champ affiché
218
+ @subscribe(dpKeys.currentScanTicket.owner)
219
+ @state() owner: Contact = {};
220
+ ```
221
+
222
+ **`@subscribe` + décorateur Lit** : préférer **`@state()`** (pas `@property`) pour les champs purement lus depuis le DataProvider.
223
+
198
224
  ## formDataProvider
199
225
 
200
226
  ```html
@@ -254,9 +280,10 @@ Propriétés Lit (recommandé) :
254
280
  | `PublisherManager.get(…)` | `get(…)` ou `set(…)` |
255
281
  | « publisher » | DataProvider |
256
282
  | `sonic-input` + `@input` | `formDataProvider` + `name` |
257
- | `sonic-fetch` | `sonic-queue` + filtre, ou `@get` |
258
- | `extends Subscriber(LitElement)` (métier seul) | `LitElement` + `@subscribe` feuille par feuille / `sub()` |
283
+ | `sonic-fetch` | `sonic-queue` + filtre, ou `@get` + `@publish`/`@handle` + `@subscribe` / hôte `Subscriber` |
284
+ | `extends Subscriber(LitElement)` (métier seul) | `LitElement` + `@subscribe` feuille par feuille / `sub()` — **ne pas oublier** les champs template-filled |
259
285
  | `extends Subscriber` (hôte d’enfants sonic) | Conserver `Subscriber` + `dataProvider` / `subDataProvider` corrects |
286
+ | `@get` dans modale | `@get(endpoint, apiConfigKey)` si config API hors scope DOM |
260
287
  | `data-bind` HTML | `@subscribe` / `sub()` |
261
288
  | `@bind` décorateur | `@subscribe` + `DataProviderKey` (lecture) ou `@publish` (écriture) |
262
289
  | `@onAssign` | `@handle` + `DataProviderKey` |
package/build-infos.json CHANGED
@@ -1 +1 @@
1
- {"date":1780507582}
1
+ {"date":1780585258}
@@ -1,4 +1,4 @@
1
- (function(q){typeof define=="function"&&define.amd?define(q):q()})((function(){"use strict";var N,Z;let q=class St{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,i)=>{const s=i.indexOf("=");return t[i.substring(0,s).trim()]=i.substring(s+1),t},{})}static everyAncestors(t,i){for(;t;){if(!i(t))return;t=t.parentNode||t.host}}static getScrollableAncestor(t){for(;t;){const i=t;if(i.nodeType===1){const s=window.getComputedStyle(i);if(s?.overflowY==="auto"||s?.overflowY==="scroll"||s?.overflowY==="hidden"||s?.overflowX==="auto"||s?.overflowX==="scroll"||s?.overflowX==="hidden")return t}t=t.parentNode||t.host}return null}static scopeAttributeNames(t){const i=t.toLowerCase();return i===t?[t]:[t,i]}static readScopeValueOnElement(t,i){const s=t[i];if(typeof s=="string"&&s.length>0)return s;for(const e of St.scopeAttributeNames(i))if(t.hasAttribute(e)){const o=t.getAttribute(e);if(o!=null&&o.length>0)return o}return null}static getAncestorAttributeValue(t,i){if(!t)return null;let s=t;for(;s;){if(s instanceof HTMLElement){const o=St.readScopeValueOnElement(s,i);if(o!=null&&o.length>0)return o}const e=s.parentNode||s.host;if(!e)break;s=e}return null}static getApiConfiguration(t){const i=St.getAncestorAttributeValue(t,"token"),s=St.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=St.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const l=St.getAncestorAttributeValue(t,"tokenProvider"),c=St.getAncestorAttributeValue(t,"eventsApiToken");i||(o=St.getAncestorAttributeValue(t,"userName"),n=St.getAncestorAttributeValue(t,"password"));const h=St.getAncestorAttributeValue(t,"credentials")||void 0,u=t.getAttribute("cache"),d=t.hasAttribute("blockUntilDone"),m=t.hasAttribute("keepAlive");return{serviceURL:e,token:i,userName:o,password:n,authToken:c,tokenProvider:l,addHTTPResponse:s,credentials:h,cache:u,blockUntilDone:d,keepAlive:m}}static getClosestElement(t,i){for(;!(t.nodeName&&t.nodeName.toLowerCase()===i)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return St.getClosestElement(t,"form")}static getAncestorsByTagNames(t,i){const s=new Set(i.map(n=>n.toLowerCase())),e=[];let o=t.parentNode||t.host;for(;o;)o instanceof Element&&s.has(o.tagName.toLowerCase())&&e.push(o),o=o.parentNode||o.host;return e}static getAncestorsBySelectors(t,i){const s=[];let e=t.parentNode||t.host;for(;e;){if(e instanceof Element)for(const o of i)try{if(e.matches(o)){s.push(e);break}}catch{}e=e.parentNode||e.host}return s}static async loadJS(t){return new Promise(async s=>{const e=document.createElement("script");e.src=t,e.onload=()=>s(!0),e.onerror=()=>s(!0),document.head.appendChild(e)})}static async loadCSS(t){return new Promise(async s=>{const e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=t,e.onload=()=>s(!0),e.onerror=()=>s(!0),document.head.appendChild(e)})}};const Qs=r=>{const t=document.documentElement,i=new MutationObserver(e=>{for(let o of e)o.type==="attributes"&&o.attributeName==="lang"&&r()}),s={attributes:!0,attributeFilter:["lang"]};i.observe(t,s)};let ys=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,i="",s="long"){i||(i=q.getLanguage());const e=(h,u)=>[Math.floor(h/u),h%u];function o(h,u,d){return new Intl.NumberFormat(h,{style:"unit",unit:u,unitDisplay:d}).format}const[n,l]=e(t,60),c=[];return n&&c.push(o(i,"hour",s)(n)),l&&c.push(o(i,"minute",s)(l)),new Intl.ListFormat(i,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}};class Gi{constructor(t){this.path=t}toString(){return this.path}}function Xi(r){return new Proxy(r,{get(t,i){if(i==="path")return t.path;if(i==="toString")return t.toString.bind(t);if(i===Symbol.toStringTag)return"DataProviderKey";if(typeof i=="symbol")return t[i];const s=t.path?`${t.path}.${String(i)}`:String(i);return Xi(new Gi(s))}})}const vo=/\$\{|\{\$/;function yo(r){return vo.test(r)}function Js(r){const t=typeof r=="string"?r:r.path;if(yo(t))throw new Error("Static publisher path required for get/set/dp. Use @subscribe, @publish, or @handle for dynamic DataProviderKey paths.");return t}const Ue=function(r){return this instanceof Ue?Xi(new Gi(r)):new Ue(r)};let tt=class qt{static shallowEqual(t,i,s=!0){const e=Object.keys(t),o=Object.keys(i);if(e.length!==o.length&&s)return!1;for(const n of e){const l=t[n],c=i[n];if(s?l!==c:l!=c)return!1}return!0}static deepEqual(t,i,s=!0){const e=Object.keys(t),o=Object.keys(i);if(e.length!==o.length&&s)return!1;for(const n of e){const l=t[n],c=i[n],h=qt.isObject(l)&&qt.isObject(c),u=s?l!==c:l!=c;if(h&&!qt.deepEqual(l,c)||!h&&u)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return qt.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,i,s=!1){for(const e of i){const o=t[e];if(o===void 0)return;s&&qt.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static traverseDotNotation(t,i,s=!1){return qt.traverse(t,i.split("."),s)}static getURLSearchArray(t,i=""){let s=[];for(let e in t){const o=t[e];i&&(e=i+"["+e+"]"),qt.isObject(o)?s=[...s,...this.getURLSearchArray(o,e)]:s.push(`${e}=${o}`)}return s}static getURLSearchString(t){return qt.getURLSearchArray(t,"").join("&")}};const ut=tt.traverseDotNotation;let _o=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(i=>{setTimeout(i,t)})}},Qi="sonic";typeof __SONIC_PREFIX__<"u"&&(Qi=__SONIC_PREFIX__);let Ji=Qi.replace(/-([a-z])/g,r=>r[1].toUpperCase());const _s=Ji.charAt(0).toUpperCase()+Ji.slice(1);function ws(r){return Object.prototype.hasOwnProperty.call(r,"__value")}function Wt(r){return typeof r=="object"&&r!==null}let Ce="sonic";typeof __SONIC_PREFIX__>"u"&&(Ce="sonic");const ti=Ce=="sonic"?"publisher-proxies-data":Ce+"-publisher-proxies-data",oe=class oe{constructor(t,i,s){for(this._proxies_=new Map,this._is_savable_=!1,this._expiration_delay_=1e3*60*60*12,this._invalidate_on_page_show_=!1,this._invalidateListeners_=new Set,this._formInvalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this._instanceCounter_=0,this._assignmentId_=0,this._value_=t,this.parent=i||null,this._parentKey_=s,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){for(const t in this._proxies_.keys())t!="_parent_"&&this._proxies_.get(t)?.delete();this._invalidateListeners_.clear(),this._formInvalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),oe.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._formInvalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(t=!1){if(this._mutationListeners_.forEach(i=>i()),this._is_savable_&&!k.changed){k.changed=!0,k.saveId++;const i=k.saveId;setTimeout(()=>k.getInstance().saveToLocalStorage(i),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){if(this._assignmentId_++,this._assignmentId_!==this._assignmentId_)return;const s=this.get();this._assignListeners_.forEach(e=>{e(s)}),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,i){this._fillListeners_.forEach(s=>{s[t]!==i&&(s[t]=i)}),this._publishTemplateFilling_(t,i)}_publishTemplateFilling_(t,i){this._templateFillListeners_.forEach(s=>{const e=Object.getOwnPropertyDescriptor(s,t);e&&!e.set&&!e.writable||(s.propertyMap&&s.propertyMap[t]&&(t=s.propertyMap[t]),typeof s[t]<"u"&&s[t]!==i&&(s[t]=i))})}onAssign(t,i=!0){typeof t=="function"&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),i&&t(this.get())))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){typeof t=="function"&&this._invalidateListeners_.add(t)}offInvalidate(t){typeof t=="function"&&this._invalidateListeners_.delete(t)}invalidate(){this._publishInvalidation_()}onFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.add(t)}offFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.delete(t)}invalidateForm(){this._publishFormInvalidation_()}onInternalMutation(t){typeof t=="function"&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){typeof t=="function"&&this._mutationListeners_.delete(t)}startTemplateFilling(t){if(this._templateFillListeners_.add(t),typeof this._value_=="object")for(const i in this._value_){let s=i;const e=this._value_[i];t.propertyMap&&t.propertyMap[i]&&(s=t.propertyMap[i]),typeof t[i]<"u"&&t[i]!==e&&(t[s]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const i in this._value_){const s=this._value_[i];t[i]!==s&&(t[i]=s)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}set(t,i=!1){if(this._value_===t||Wt(this._value_)&&Wt(t)&&t&&ws(this._value_)&&ws(t)&&this._value_.__value===t.__value||!Wt(t)&&t===this._value_.__value)return!0;this._value_=Wt(t)?t:{__value:t},this._cachedGet_=void 0;const s=ws(this._value_);if(this._parentKey_&&this.parent){const e=ws(this._value_)?this._value_.__value:this._value_;if(this.parent?.get()==null&&this.parent?.get()==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:e});else{const o=[];o[Number(this._parentKey_)]=e,this.parent.set(o)}else this.parent._value_[this._parentKey_]=e}if(s)return this._proxies_.forEach((e,o)=>{o!="_parent_"&&(e.set(null),this._publishDynamicFilling_(o,null))}),this._publishAssignement_(i),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const e in this._value_)this._value_[e]===void 0&&delete this._value_[e];if(this._proxies_.forEach((e,o)=>{const n=this._value_[o];o!="_parent_"&&n===void 0&&n!==null&&isNaN(Number(o))&&(e.set(null),this._publishDynamicFilling_(o,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),Wt(this._value_))for(const e in this._value_){const o=t[e],l=Wt(o)?o:{__value:o};if(!this._proxies_.has(e)){this._publishDynamicFilling_(e,o);continue}this._proxies_.get(e)?.set(l,!0),this._publishDynamicFilling_(e,o)}return!0}get(){if(k.modifiedCollectore.length>0&&k.modifiedCollectore[0].add(this),this._cachedGet_!==void 0)return this._cachedGet_;if(Object.prototype.hasOwnProperty.call(this._value_,"__value")){const t=this._value_.__value;return this._cachedGet_=t??null}return this._cachedGet_=this._value_!=null?this._value_:null}get $tag(){return this._instanceCounter_||(oe.instancesCounter++,this._instanceCounter_=oe.instancesCounter),oe.instances.set(this._instanceCounter_,this),"<"+Ce+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+Ce+"-publisher-proxy>"}};oe.instances=new Map,oe.instancesCounter=0;let Ve=oe;const I=class I{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],I.instance!=null)throw"Singleton / use getInstance";I.instance=this,this.isLocalStrorageReady=this.cleanStorageData()}invalidateAll(){this.publishers.forEach(t=>{t._invalidate_on_page_show_&&t.invalidate()})}async cleanStorageData(){return new Promise(t=>{(async()=>{try{let s=localStorage.getItem(ti),e=null;if(s&&(e=await this.decompress(s,"gzip")),e)try{this.localStorageData=JSON.parse(e)}catch{this.localStorageData={}}else s=await this.compress("{}","gzip"),localStorage.setItem(ti,s),this.localStorageData={};const o=1e3*60*60*12;for(const n in this.localStorageData){const l=this.localStorageData[n],c=new Date().getTime()-(l.expirationDelayMs||o);l.lastModifiationMS<c&&delete this.localStorageData[n]}t(!0)}catch{window.requestAnimationFrame(()=>{t(!1)}),console.warn("no publisher cache in this browser")}})()})}static getInstance(t){if(t){const i=I.instances.get(t);return i||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new I)}return I.instance==null?new I:I.instance}static registerInstance(t,i){I.instances.has(t)&&console.warn("PublisherManager instance already registered with id: ",t),I.instances.set(t,i)}static get(t,i){return I.getInstance().get(t,i)}static collectModifiedPublisher(){I.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return I.modifiedCollectore.shift()}static delete(t){return t?I.getInstance().delete(t):!1}async setLocalData(t,i){await this.isLocalStrorageReady,t.set(this.localStorageData[i+"¤lang_"+q.getLanguage()]?.data||t.get())}get(t,i){const s=i?.localStorageMode==="enabled",e=i?.invalidateOnPageShow===!0;if(!this.publishers.has(t)){const l=ei({});this.set(t,l)}const o=this.publishers.get(t);return s&&this.initialisedData.indexOf(t)===-1&&(i?.expirationDelayMs&&(o._expiration_delay_=i.expirationDelayMs),o._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(o,t)),e&&(o._invalidate_on_page_show_=e),this.publishers.get(t)}set(t,i){this.publishers.set(t,i)}delete(t){return this.publishers.has(t)?(this.publishers.delete(t),!0):!1}async saveToLocalStorage(t=0){if(!(t!==I.saveId&&t%10!=0))try{if(!I.changed||I.saving)return;I.saving=!0,I.changed=!1;const i=Array.from(this.publishers.keys());let s=!1;for(const e of i){const o=this.publishers.get(e);if(!o?._is_savable_)continue;const n=o?.get();n&&(this.localStorageData[e+"¤lang_"+q.getLanguage()]={lastModifiationMS:new Date().getTime(),expirationDelayMs:o._expiration_delay_,data:n},s=!0)}if(s){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(ti,e)}if(I.saving=!1,I.changed){I.saveId++;const e=I.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{I.saving=!1}}async compress(t,i){const s=new TextEncoder().encode(t),e=window,o=new e.CompressionStream(i),n=o.writable.getWriter();n.write(s),n.close();const l=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(l);let h="";for(let u=0;u<c.length;u++)h+=String.fromCharCode(c[u]);return btoa(h)}async decompress(t,i){const s=atob(t),o=Uint8Array.from(s,u=>u.charCodeAt(0)).buffer,n=window,l=new n.DecompressionStream(i),c=l.writable.getWriter();c.write(o),c.close();const h=await new Response(l.readable).arrayBuffer();return new TextDecoder().decode(h)}};I.buildDate="Wed Jun 03 2026 19:26:21 GMT+0200 (Central European Summer Time)",I.changed=!1,I.saving=!1,I.saveId=0,I.instance=null,I.instances=new Map,I.modifiedCollectore=[];let k=I;if(typeof window<"u"){const r=window;r[_s+"PublisherManager"]=r[_s+"PublisherManager"]||k}const wo=new Set(["invalidate","onInvalidate","offInvalidate","invalidateForm","onFormInvalidate","offFormInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","$tag","_cachedGet_","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_formInvalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishFormInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_parentKey_","_value_","_is_savable_","_expiration_delay_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_","_invalidate_on_page_show_"]);function xo(r,t){return{get:function(i,s){if(typeof s=="string"&&wo.has(s))return r[s];if(s==Symbol.toPrimitive)return()=>t().get();if(!r._proxies_.has(s)){const e=r._value_[s],o=ei(Wt(e)?e:{__value:e},r,s);o._proxies_.set("_parent_",t()),r._proxies_.set(s,o)}return r._proxies_.get(s)},set:function(i,s,e){if(s=="_value_")return r._value_=e,!0;if(s=="_cachedGet_")return r._cachedGet_=e,!0;if(s=="_assignmentId_")return r._assignmentId_=e,!0;if(s=="_is_savable_")return r._is_savable_=e,!0;if(s=="_expiration_delay_")return r._expiration_delay_=e,!0;if(s=="_invalidate_on_page_show_")return r._invalidate_on_page_show_=e,!0;if(s=="_instanceCounter_")return r._instanceCounter_=e,!0;if(!r._proxies_.has(s)){const n=ei({},r,s);n._proxies_.set("_parent_",t()),r._proxies_.set(s,n)}return r._value_[s]!==e&&(r._value_[s]=e,r._publishDynamicFilling_(s,e),r._proxies_.get(s)?.set(Wt(e)?e:{__value:e})),!0},deleteProperty:function(i,s){return r._publishDynamicFilling_(s,null),r._proxies_.get(s)?.set(null),delete r._value_[s]},has:function(i,s){return s in r._value_&&s!="_lockInternalMutationPublishing_"},defineProperty:function(i,s,e){return e&&"value"in e&&(r._value_[s]=e.value),!0},getOwnPropertyDescriptor:function(i,s){return{enumerable:!0,configurable:!0}},ownKeys:function(i){return r._value_.__value?Object.keys(r._value_.__value):Object.keys(r._value_)}}}function ei(r,t=null,i){const s=new Ve(r,t,i);let e=null;const o=xo(s,()=>e);return e=new Proxy(s,o),e}class Po extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){this.publisherId=this.getAttribute("publisher")||"",this.publisher=Ve.instances.get(parseInt(this.publisherId)),this.publisher?.onAssign(this.onAssign)}disconnectedCallback(){this.publisher?.offAssign(this.onAssign)}}try{customElements.define(Ce+"-publisher-proxy",Po)}catch{}const xs=r=>{if(typeof r=="function"){const t=r;return k.collectModifiedPublisher(),t(),k.getModifiedPublishers()}if(typeof r=="string"){const t=r.split("."),i=t.shift()||"";let s=k.get(i);s=tt.traverse(s,t);const e=new Set;return e.add(s),e}return new Set([r])};function Co(r){const t=Js(r);return xs(t).values().next().value?.get()}function tr(r,t){const i=Js(r);return xs(i).values().next().value}function $o(r,t){return tr(r)}function Ps(r,t){return tr(r)}function So(r,t){const i=Js(r);xs(i).values().next().value?.set(t)}window.addEventListener("pageshow",r=>{r.persisted&&k.getInstance().invalidateAll()});let Cs=(N=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(N.observedElements.keys()).forEach(t=>N.unObserve(t)))}static observe(t){if(!t||!N.enabled||N.observedElements.has(t))return;const i=new MutationObserver(N.onMutation),s={};s.childList=!0,s.subtree=!0,s.attributes=!0,s.attributeFilter=["data-bind"],i.observe(t,s),t.querySelectorAll("[data-bind]").forEach(e=>N.addPublisherListeners(e)),N.observedElements.set(t,i)}static unObserve(t){if(!t)return;const i=this.observedElements.get(t);i&&(i.disconnect(),t.querySelectorAll("[data-bind]").forEach(s=>N.removePublisherListeners(s)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&N.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>N.addPublisherListeners(i)):t.childNodes.forEach(i=>N.onAdded(i))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&N.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>N.removePublisherListeners(i)):t.childNodes.forEach(i=>N.onRemoved(i))}static onMutation(t){for(const i of t)switch(i.type){case"attributes":N.addPublisherListeners(i.target);break;case"childList":i.addedNodes.forEach(s=>{N.onAdded(s)}),i.removedNodes.forEach(s=>{N.onRemoved(s)});break}}static removePublisherListeners(t){const i=N.publisherListeners.get(t);i&&(N.publisherListeners.delete(t),i.forEach(s=>{s.publisher?.offAssign(s.onAssign)}))}static getVariablesDescriptor(t){let i=t.match(/(\$(?:\w+\\?\.?)+)/g);return i?i=i.map(s=>s.replace("$","")):i=[t],i=i.filter(s=>s.length>0),{expression:t.replace("\\",""),variables:i.map(s=>s.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(t){return"attributes"in t?Array.from(t.attributes).filter(i=>i.name.indexOf("::")==0).map(i=>({propertyToUpdate:i.name.substring(2).replace(/-((html)|\w)/g,e=>e.substring(1).toUpperCase()),bindedVariablesDescriptor:N.getVariablesDescriptor(i.value)})):[]}static getSubPublisher(t,i){if(!i)return t;for(const s of i)if(s!="_self_"){if(!t)return null;t=t[s]}return t}static addPublisherListeners(t){N.removePublisherListeners(t);const i=q.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!i)return;const s=k.getInstance().get(i),e=N.getDataBindItems(t),o=[];e.forEach(n=>{const l=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of l.variables){const u=h;let d=s;d=N.getSubPublisher(s,u);const m=t,y={publisher:d,onAssign:()=>{const p=l.variables.map(D=>N.getSubPublisher(s,D)?.get());let v=l.expression,_=!1;if(p.length==1&&l.variables[0].join(".")==v.substring(1)){let D=p[0];D===null&&(D=""),m[c]=D;return}for(let D=0;D<p.length;D++){let f=p[D];const b=l.variables[D];f===null&&(_=!0,f=void 0),v=v.replace("$"+b.join("."),f)}if(v.indexOf("|")!=-1){const D=v.indexOf("|");if(D==0)v=ys.js(v.substring(1));else{const f=v.substring(0,D),b=v.substring(D+1),w=ys[f];v=_?"":w?w(b):v}}else v=_?"":v;m[c]=v}};d?.onAssign(y.onAssign),o.push(y)}}),N.publisherListeners.set(t,o)}},N.observedElements=new Map,N.enabled=!0,N.publisherListeners=new Map,N);Cs.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=Cs);/**
1
+ (function(q){typeof define=="function"&&define.amd?define(q):q()})((function(){"use strict";var N,Z;let q=class St{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,i)=>{const s=i.indexOf("=");return t[i.substring(0,s).trim()]=i.substring(s+1),t},{})}static everyAncestors(t,i){for(;t;){if(!i(t))return;t=t.parentNode||t.host}}static getScrollableAncestor(t){for(;t;){const i=t;if(i.nodeType===1){const s=window.getComputedStyle(i);if(s?.overflowY==="auto"||s?.overflowY==="scroll"||s?.overflowY==="hidden"||s?.overflowX==="auto"||s?.overflowX==="scroll"||s?.overflowX==="hidden")return t}t=t.parentNode||t.host}return null}static scopeAttributeNames(t){const i=t.toLowerCase();return i===t?[t]:[t,i]}static readScopeValueOnElement(t,i){const s=t[i];if(typeof s=="string"&&s.length>0)return s;for(const e of St.scopeAttributeNames(i))if(t.hasAttribute(e)){const o=t.getAttribute(e);if(o!=null&&o.length>0)return o}return null}static getAncestorAttributeValue(t,i){if(!t)return null;let s=t;for(;s;){if(s instanceof HTMLElement){const o=St.readScopeValueOnElement(s,i);if(o!=null&&o.length>0)return o}const e=s.parentNode||s.host;if(!e)break;s=e}return null}static getApiConfiguration(t){const i=St.getAncestorAttributeValue(t,"token"),s=St.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=St.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const l=St.getAncestorAttributeValue(t,"tokenProvider"),c=St.getAncestorAttributeValue(t,"eventsApiToken");i||(o=St.getAncestorAttributeValue(t,"userName"),n=St.getAncestorAttributeValue(t,"password"));const h=St.getAncestorAttributeValue(t,"credentials")||void 0,u=t.getAttribute("cache"),d=t.hasAttribute("blockUntilDone"),m=t.hasAttribute("keepAlive");return{serviceURL:e,token:i,userName:o,password:n,authToken:c,tokenProvider:l,addHTTPResponse:s,credentials:h,cache:u,blockUntilDone:d,keepAlive:m}}static getClosestElement(t,i){for(;!(t.nodeName&&t.nodeName.toLowerCase()===i)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return St.getClosestElement(t,"form")}static getAncestorsByTagNames(t,i){const s=new Set(i.map(n=>n.toLowerCase())),e=[];let o=t.parentNode||t.host;for(;o;)o instanceof Element&&s.has(o.tagName.toLowerCase())&&e.push(o),o=o.parentNode||o.host;return e}static getAncestorsBySelectors(t,i){const s=[];let e=t.parentNode||t.host;for(;e;){if(e instanceof Element)for(const o of i)try{if(e.matches(o)){s.push(e);break}}catch{}e=e.parentNode||e.host}return s}static async loadJS(t){return new Promise(async s=>{const e=document.createElement("script");e.src=t,e.onload=()=>s(!0),e.onerror=()=>s(!0),document.head.appendChild(e)})}static async loadCSS(t){return new Promise(async s=>{const e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=t,e.onload=()=>s(!0),e.onerror=()=>s(!0),document.head.appendChild(e)})}};const Qs=r=>{const t=document.documentElement,i=new MutationObserver(e=>{for(let o of e)o.type==="attributes"&&o.attributeName==="lang"&&r()}),s={attributes:!0,attributeFilter:["lang"]};i.observe(t,s)};let ys=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,i="",s="long"){i||(i=q.getLanguage());const e=(h,u)=>[Math.floor(h/u),h%u];function o(h,u,d){return new Intl.NumberFormat(h,{style:"unit",unit:u,unitDisplay:d}).format}const[n,l]=e(t,60),c=[];return n&&c.push(o(i,"hour",s)(n)),l&&c.push(o(i,"minute",s)(l)),new Intl.ListFormat(i,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}};class Gi{constructor(t){this.path=t}toString(){return this.path}}function Xi(r){return new Proxy(r,{get(t,i){if(i==="path")return t.path;if(i==="toString")return t.toString.bind(t);if(i===Symbol.toStringTag)return"DataProviderKey";if(typeof i=="symbol")return t[i];const s=t.path?`${t.path}.${String(i)}`:String(i);return Xi(new Gi(s))}})}const vo=/\$\{|\{\$/;function yo(r){return vo.test(r)}function Js(r){const t=typeof r=="string"?r:r.path;if(yo(t))throw new Error("Static publisher path required for get/set/dp. Use @subscribe, @publish, or @handle for dynamic DataProviderKey paths.");return t}const Ue=function(r){return this instanceof Ue?Xi(new Gi(r)):new Ue(r)};let tt=class qt{static shallowEqual(t,i,s=!0){const e=Object.keys(t),o=Object.keys(i);if(e.length!==o.length&&s)return!1;for(const n of e){const l=t[n],c=i[n];if(s?l!==c:l!=c)return!1}return!0}static deepEqual(t,i,s=!0){const e=Object.keys(t),o=Object.keys(i);if(e.length!==o.length&&s)return!1;for(const n of e){const l=t[n],c=i[n],h=qt.isObject(l)&&qt.isObject(c),u=s?l!==c:l!=c;if(h&&!qt.deepEqual(l,c)||!h&&u)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return qt.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,i,s=!1){for(const e of i){const o=t[e];if(o===void 0)return;s&&qt.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static traverseDotNotation(t,i,s=!1){return qt.traverse(t,i.split("."),s)}static getURLSearchArray(t,i=""){let s=[];for(let e in t){const o=t[e];i&&(e=i+"["+e+"]"),qt.isObject(o)?s=[...s,...this.getURLSearchArray(o,e)]:s.push(`${e}=${o}`)}return s}static getURLSearchString(t){return qt.getURLSearchArray(t,"").join("&")}};const ut=tt.traverseDotNotation;let _o=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(i=>{setTimeout(i,t)})}},Qi="sonic";typeof __SONIC_PREFIX__<"u"&&(Qi=__SONIC_PREFIX__);let Ji=Qi.replace(/-([a-z])/g,r=>r[1].toUpperCase());const _s=Ji.charAt(0).toUpperCase()+Ji.slice(1);function ws(r){return Object.prototype.hasOwnProperty.call(r,"__value")}function Wt(r){return typeof r=="object"&&r!==null}let Ce="sonic";typeof __SONIC_PREFIX__>"u"&&(Ce="sonic");const ti=Ce=="sonic"?"publisher-proxies-data":Ce+"-publisher-proxies-data",oe=class oe{constructor(t,i,s){for(this._proxies_=new Map,this._is_savable_=!1,this._expiration_delay_=1e3*60*60*12,this._invalidate_on_page_show_=!1,this._invalidateListeners_=new Set,this._formInvalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this._instanceCounter_=0,this._assignmentId_=0,this._value_=t,this.parent=i||null,this._parentKey_=s,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){for(const t in this._proxies_.keys())t!="_parent_"&&this._proxies_.get(t)?.delete();this._invalidateListeners_.clear(),this._formInvalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),oe.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._formInvalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(t=!1){if(this._mutationListeners_.forEach(i=>i()),this._is_savable_&&!k.changed){k.changed=!0,k.saveId++;const i=k.saveId;setTimeout(()=>k.getInstance().saveToLocalStorage(i),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){if(this._assignmentId_++,this._assignmentId_!==this._assignmentId_)return;const s=this.get();this._assignListeners_.forEach(e=>{e(s)}),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,i){this._fillListeners_.forEach(s=>{s[t]!==i&&(s[t]=i)}),this._publishTemplateFilling_(t,i)}_publishTemplateFilling_(t,i){this._templateFillListeners_.forEach(s=>{const e=Object.getOwnPropertyDescriptor(s,t);e&&!e.set&&!e.writable||(s.propertyMap&&s.propertyMap[t]&&(t=s.propertyMap[t]),typeof s[t]<"u"&&s[t]!==i&&(s[t]=i))})}onAssign(t,i=!0){typeof t=="function"&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),i&&t(this.get())))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){typeof t=="function"&&this._invalidateListeners_.add(t)}offInvalidate(t){typeof t=="function"&&this._invalidateListeners_.delete(t)}invalidate(){this._publishInvalidation_()}onFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.add(t)}offFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.delete(t)}invalidateForm(){this._publishFormInvalidation_()}onInternalMutation(t){typeof t=="function"&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){typeof t=="function"&&this._mutationListeners_.delete(t)}startTemplateFilling(t){if(this._templateFillListeners_.add(t),typeof this._value_=="object")for(const i in this._value_){let s=i;const e=this._value_[i];t.propertyMap&&t.propertyMap[i]&&(s=t.propertyMap[i]),typeof t[i]<"u"&&t[i]!==e&&(t[s]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const i in this._value_){const s=this._value_[i];t[i]!==s&&(t[i]=s)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}set(t,i=!1){if(this._value_===t||Wt(this._value_)&&Wt(t)&&t&&ws(this._value_)&&ws(t)&&this._value_.__value===t.__value||!Wt(t)&&t===this._value_.__value)return!0;this._value_=Wt(t)?t:{__value:t},this._cachedGet_=void 0;const s=ws(this._value_);if(this._parentKey_&&this.parent){const e=ws(this._value_)?this._value_.__value:this._value_;if(this.parent?.get()==null&&this.parent?.get()==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:e});else{const o=[];o[Number(this._parentKey_)]=e,this.parent.set(o)}else this.parent._value_[this._parentKey_]=e}if(s)return this._proxies_.forEach((e,o)=>{o!="_parent_"&&(e.set(null),this._publishDynamicFilling_(o,null))}),this._publishAssignement_(i),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const e in this._value_)this._value_[e]===void 0&&delete this._value_[e];if(this._proxies_.forEach((e,o)=>{const n=this._value_[o];o!="_parent_"&&n===void 0&&n!==null&&isNaN(Number(o))&&(e.set(null),this._publishDynamicFilling_(o,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),Wt(this._value_))for(const e in this._value_){const o=t[e],l=Wt(o)?o:{__value:o};if(!this._proxies_.has(e)){this._publishDynamicFilling_(e,o);continue}this._proxies_.get(e)?.set(l,!0),this._publishDynamicFilling_(e,o)}return!0}get(){if(k.modifiedCollectore.length>0&&k.modifiedCollectore[0].add(this),this._cachedGet_!==void 0)return this._cachedGet_;if(Object.prototype.hasOwnProperty.call(this._value_,"__value")){const t=this._value_.__value;return this._cachedGet_=t??null}return this._cachedGet_=this._value_!=null?this._value_:null}get $tag(){return this._instanceCounter_||(oe.instancesCounter++,this._instanceCounter_=oe.instancesCounter),oe.instances.set(this._instanceCounter_,this),"<"+Ce+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+Ce+"-publisher-proxy>"}};oe.instances=new Map,oe.instancesCounter=0;let Ve=oe;const I=class I{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],I.instance!=null)throw"Singleton / use getInstance";I.instance=this,this.isLocalStrorageReady=this.cleanStorageData()}invalidateAll(){this.publishers.forEach(t=>{t._invalidate_on_page_show_&&t.invalidate()})}async cleanStorageData(){return new Promise(t=>{(async()=>{try{let s=localStorage.getItem(ti),e=null;if(s&&(e=await this.decompress(s,"gzip")),e)try{this.localStorageData=JSON.parse(e)}catch{this.localStorageData={}}else s=await this.compress("{}","gzip"),localStorage.setItem(ti,s),this.localStorageData={};const o=1e3*60*60*12;for(const n in this.localStorageData){const l=this.localStorageData[n],c=new Date().getTime()-(l.expirationDelayMs||o);l.lastModifiationMS<c&&delete this.localStorageData[n]}t(!0)}catch{window.requestAnimationFrame(()=>{t(!1)}),console.warn("no publisher cache in this browser")}})()})}static getInstance(t){if(t){const i=I.instances.get(t);return i||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new I)}return I.instance==null?new I:I.instance}static registerInstance(t,i){I.instances.has(t)&&console.warn("PublisherManager instance already registered with id: ",t),I.instances.set(t,i)}static get(t,i){return I.getInstance().get(t,i)}static collectModifiedPublisher(){I.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return I.modifiedCollectore.shift()}static delete(t){return t?I.getInstance().delete(t):!1}async setLocalData(t,i){await this.isLocalStrorageReady,t.set(this.localStorageData[i+"¤lang_"+q.getLanguage()]?.data||t.get())}get(t,i){const s=i?.localStorageMode==="enabled",e=i?.invalidateOnPageShow===!0;if(!this.publishers.has(t)){const l=ei({});this.set(t,l)}const o=this.publishers.get(t);return s&&this.initialisedData.indexOf(t)===-1&&(i?.expirationDelayMs&&(o._expiration_delay_=i.expirationDelayMs),o._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(o,t)),e&&(o._invalidate_on_page_show_=e),this.publishers.get(t)}set(t,i){this.publishers.set(t,i)}delete(t){return this.publishers.has(t)?(this.publishers.delete(t),!0):!1}async saveToLocalStorage(t=0){if(!(t!==I.saveId&&t%10!=0))try{if(!I.changed||I.saving)return;I.saving=!0,I.changed=!1;const i=Array.from(this.publishers.keys());let s=!1;for(const e of i){const o=this.publishers.get(e);if(!o?._is_savable_)continue;const n=o?.get();n&&(this.localStorageData[e+"¤lang_"+q.getLanguage()]={lastModifiationMS:new Date().getTime(),expirationDelayMs:o._expiration_delay_,data:n},s=!0)}if(s){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(ti,e)}if(I.saving=!1,I.changed){I.saveId++;const e=I.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{I.saving=!1}}async compress(t,i){const s=new TextEncoder().encode(t),e=window,o=new e.CompressionStream(i),n=o.writable.getWriter();n.write(s),n.close();const l=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(l);let h="";for(let u=0;u<c.length;u++)h+=String.fromCharCode(c[u]);return btoa(h)}async decompress(t,i){const s=atob(t),o=Uint8Array.from(s,u=>u.charCodeAt(0)).buffer,n=window,l=new n.DecompressionStream(i),c=l.writable.getWriter();c.write(o),c.close();const h=await new Response(l.readable).arrayBuffer();return new TextDecoder().decode(h)}};I.buildDate="Thu Jun 04 2026 17:00:58 GMT+0200 (Central European Summer Time)",I.changed=!1,I.saving=!1,I.saveId=0,I.instance=null,I.instances=new Map,I.modifiedCollectore=[];let k=I;if(typeof window<"u"){const r=window;r[_s+"PublisherManager"]=r[_s+"PublisherManager"]||k}const wo=new Set(["invalidate","onInvalidate","offInvalidate","invalidateForm","onFormInvalidate","offFormInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","$tag","_cachedGet_","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_formInvalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishFormInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_parentKey_","_value_","_is_savable_","_expiration_delay_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_","_invalidate_on_page_show_"]);function xo(r,t){return{get:function(i,s){if(typeof s=="string"&&wo.has(s))return r[s];if(s==Symbol.toPrimitive)return()=>t().get();if(!r._proxies_.has(s)){const e=r._value_[s],o=ei(Wt(e)?e:{__value:e},r,s);o._proxies_.set("_parent_",t()),r._proxies_.set(s,o)}return r._proxies_.get(s)},set:function(i,s,e){if(s=="_value_")return r._value_=e,!0;if(s=="_cachedGet_")return r._cachedGet_=e,!0;if(s=="_assignmentId_")return r._assignmentId_=e,!0;if(s=="_is_savable_")return r._is_savable_=e,!0;if(s=="_expiration_delay_")return r._expiration_delay_=e,!0;if(s=="_invalidate_on_page_show_")return r._invalidate_on_page_show_=e,!0;if(s=="_instanceCounter_")return r._instanceCounter_=e,!0;if(!r._proxies_.has(s)){const n=ei({},r,s);n._proxies_.set("_parent_",t()),r._proxies_.set(s,n)}return r._value_[s]!==e&&(r._value_[s]=e,r._publishDynamicFilling_(s,e),r._proxies_.get(s)?.set(Wt(e)?e:{__value:e})),!0},deleteProperty:function(i,s){return r._publishDynamicFilling_(s,null),r._proxies_.get(s)?.set(null),delete r._value_[s]},has:function(i,s){return s in r._value_&&s!="_lockInternalMutationPublishing_"},defineProperty:function(i,s,e){return e&&"value"in e&&(r._value_[s]=e.value),!0},getOwnPropertyDescriptor:function(i,s){return{enumerable:!0,configurable:!0}},ownKeys:function(i){return r._value_.__value?Object.keys(r._value_.__value):Object.keys(r._value_)}}}function ei(r,t=null,i){const s=new Ve(r,t,i);let e=null;const o=xo(s,()=>e);return e=new Proxy(s,o),e}class Po extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){this.publisherId=this.getAttribute("publisher")||"",this.publisher=Ve.instances.get(parseInt(this.publisherId)),this.publisher?.onAssign(this.onAssign)}disconnectedCallback(){this.publisher?.offAssign(this.onAssign)}}try{customElements.define(Ce+"-publisher-proxy",Po)}catch{}const xs=r=>{if(typeof r=="function"){const t=r;return k.collectModifiedPublisher(),t(),k.getModifiedPublishers()}if(typeof r=="string"){const t=r.split("."),i=t.shift()||"";let s=k.get(i);s=tt.traverse(s,t);const e=new Set;return e.add(s),e}return new Set([r])};function Co(r){const t=Js(r);return xs(t).values().next().value?.get()}function tr(r,t){const i=Js(r);return xs(i).values().next().value}function $o(r,t){return tr(r)}function Ps(r,t){return tr(r)}function So(r,t){const i=Js(r);xs(i).values().next().value?.set(t)}window.addEventListener("pageshow",r=>{r.persisted&&k.getInstance().invalidateAll()});let Cs=(N=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(N.observedElements.keys()).forEach(t=>N.unObserve(t)))}static observe(t){if(!t||!N.enabled||N.observedElements.has(t))return;const i=new MutationObserver(N.onMutation),s={};s.childList=!0,s.subtree=!0,s.attributes=!0,s.attributeFilter=["data-bind"],i.observe(t,s),t.querySelectorAll("[data-bind]").forEach(e=>N.addPublisherListeners(e)),N.observedElements.set(t,i)}static unObserve(t){if(!t)return;const i=this.observedElements.get(t);i&&(i.disconnect(),t.querySelectorAll("[data-bind]").forEach(s=>N.removePublisherListeners(s)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&N.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>N.addPublisherListeners(i)):t.childNodes.forEach(i=>N.onAdded(i))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&N.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>N.removePublisherListeners(i)):t.childNodes.forEach(i=>N.onRemoved(i))}static onMutation(t){for(const i of t)switch(i.type){case"attributes":N.addPublisherListeners(i.target);break;case"childList":i.addedNodes.forEach(s=>{N.onAdded(s)}),i.removedNodes.forEach(s=>{N.onRemoved(s)});break}}static removePublisherListeners(t){const i=N.publisherListeners.get(t);i&&(N.publisherListeners.delete(t),i.forEach(s=>{s.publisher?.offAssign(s.onAssign)}))}static getVariablesDescriptor(t){let i=t.match(/(\$(?:\w+\\?\.?)+)/g);return i?i=i.map(s=>s.replace("$","")):i=[t],i=i.filter(s=>s.length>0),{expression:t.replace("\\",""),variables:i.map(s=>s.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(t){return"attributes"in t?Array.from(t.attributes).filter(i=>i.name.indexOf("::")==0).map(i=>({propertyToUpdate:i.name.substring(2).replace(/-((html)|\w)/g,e=>e.substring(1).toUpperCase()),bindedVariablesDescriptor:N.getVariablesDescriptor(i.value)})):[]}static getSubPublisher(t,i){if(!i)return t;for(const s of i)if(s!="_self_"){if(!t)return null;t=t[s]}return t}static addPublisherListeners(t){N.removePublisherListeners(t);const i=q.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!i)return;const s=k.getInstance().get(i),e=N.getDataBindItems(t),o=[];e.forEach(n=>{const l=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of l.variables){const u=h;let d=s;d=N.getSubPublisher(s,u);const m=t,y={publisher:d,onAssign:()=>{const p=l.variables.map(D=>N.getSubPublisher(s,D)?.get());let v=l.expression,_=!1;if(p.length==1&&l.variables[0].join(".")==v.substring(1)){let D=p[0];D===null&&(D=""),m[c]=D;return}for(let D=0;D<p.length;D++){let f=p[D];const b=l.variables[D];f===null&&(_=!0,f=void 0),v=v.replace("$"+b.join("."),f)}if(v.indexOf("|")!=-1){const D=v.indexOf("|");if(D==0)v=ys.js(v.substring(1));else{const f=v.substring(0,D),b=v.substring(D+1),w=ys[f];v=_?"":w?w(b):v}}else v=_?"":v;m[c]=v}};d?.onAssign(y.onAssign),o.push(y)}}),N.publisherListeners.set(t,o)}},N.observedElements=new Map,N.enabled=!0,N.publisherListeners=new Map,N);Cs.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=Cs);/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -1269,7 +1269,7 @@
1269
1269
  dataProvider="${o}"
1270
1270
  >
1271
1271
  ${Et(s)}
1272
- </div>`}return Et(s)})}`}};Rs([a()],os.prototype,"state",2),Rs([a({type:Boolean,reflect:!0})],os.prototype,"inverted",2),Rs([a({type:Object})],os.prototype,"states",2),os=Rs([P(Ka)],os);var Ya=Object.getOwnPropertyDescriptor,Za=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ya(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Ga="sonic-scope";let zr=class extends x{createRenderRoot(){return this}render(){return g`<slot></slot>`}};zr=Za([P(Ga)],zr);function Xa(r){this.__beforeConnectedCallbackCalls__||(this.__beforeConnectedCallbackCalls__=new Set),this.__beforeConnectedCallbackCalls__.add(r)}function Qa(r){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(r)}function Ja(r){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(r)}function Ne(r){if(r.__is__setSubscribable__)return;r.__is__setSubscribable__=!0,r.__onBeforeConnected__=Xa,r.__onConnected__=Qa,r.__onDisconnected__=Ja;const t=r.connectedCallback;r.connectedCallback=function(){this.__beforeConnectedCallbackCalls__&&this.__beforeConnectedCallbackCalls__.forEach(s=>s(this)),t?.call(this),this.__connectedCallbackCalls__&&this.__connectedCallbackCalls__.forEach(s=>s(this))};const i=r.disconnectedCallback;r.disconnectedCallback=function(){i?.call(this),this.__disconnectedCallbackCalls__&&this.__disconnectedCallbackCalls__.forEach(s=>s(this))}}function tl(r){return r.trim().replace(/^this\./,"")}function Si(r,t){if(!t)return;const i=t.split(".").filter(Boolean);if(i.length===0)return;let s=r;for(const e of i){if(s==null||typeof s!="object")return;s=s[e]}return s}function fe(r,t){let i=!1;const s=(n,l)=>{const c=tl(l),h=Si(r,c);return h==null?(i=!0,""):`${h}`},e=t.replace(/\$\{([^}]+)\}/g,s).replace(/\{\$([^}]+)\}/g,s).trim();if(i||!e.length)return{ready:!1,path:null};const o=e.split(".").filter(Boolean);return o.length===0||!o[0]?{ready:!1,path:null}:{ready:!0,path:e}}function be(r){const t=[/\$\{([^}]+)\}/g,/\{\$([^}]+)\}/g],i=new Set;for(const s of t){let e;for(;(e=s.exec(r))!==null;){const o=(e[1]||"").trim().replace(/^this\./,"");if(!o)continue;const[n]=o.split(".");n&&i.add(n)}}return Array.from(i)}function Ur(r){return typeof r=="object"&&r!==null&&"path"in r&&typeof r.path=="string"}const ns=new WeakMap,as=new Set;let Ie=null;const el=8;function sl(r){let t=ns.get(r);return t||(t=new Map,ns.set(r,t)),t}function il(r,t){const i=new Set;for(const[s,e]of t){const o=Si(r,s);Object.is(e.lastValue,o)||(e.lastValue=o,e.onChangeHandlers.forEach(n=>i.add(n)))}return i}function rl(){Ie=null;let r=0,t=!0;for(;t&&r<el;){t=!1,r+=1;for(const i of as){const s=ns.get(i);if(!s||s.size===0)continue;const e=il(i,s);e.size!==0&&(t=!0,e.forEach(o=>o()))}}t&&console.warn("[concorde] dynamic property watch: limite de passes atteinte, boucle infinie probable"),as.size>0&&Vr()}function Vr(){Ie===null&&(Ie=requestAnimationFrame(rl))}function ol(){as.size===0&&Ie!==null&&(cancelAnimationFrame(Ie),Ie=null)}function Me(r,t,i,s,e){const o=String(s),n=sl(i);let l=n.get(o);return l||(l={lastValue:Si(i,o),onChangeHandlers:new Set},n.set(o,l)),l.onChangeHandlers.add(e),as.add(i),Vr(),()=>{const c=ns.get(i);if(!c)return;const h=c.get(o);h&&(h.onChangeHandlers.delete(e),h.onChangeHandlers.size===0&&c.delete(o),c.size===0&&(ns.delete(i),as.delete(i),ol()))}}const zs={watcherStore:Symbol("__bindDynamicWatcherStore__"),hooked:Symbol("__bindDynamicWillUpdateHooked__")},Br={watcherStore:"__publishDynamicWatcherStore__",hooked:"__publishDynamicWillUpdateHooked__"},Us={watcherStore:"__getDynamicWatcherStore__",hooked:"__getDynamicWillUpdateHooked__"},Hr={watcherStore:Symbol("__onAssignDynamicWatcherStore__"),hooked:Symbol("__onAssignDynamicWillUpdateHooked__")};function ls(r){const t=r.split(".").filter(e=>e.length>0);if(t.length===0)return null;const i=t.shift()||"";if(!i)return null;let s=k.get(i);return s?(s=Xe.traverse(s,t),s):null}function nl(r,t){const i=t?.reflect??!1,s=be(r),e=s.length>0;return function(o,n){if(!o)return;Ne(o);const l=`__bind_state_${n}`,c=`__bind_${n}_publisher__`,h=i?`__bind_${n}_updating_from_publisher__`:null;if(i){const u=Object.getOwnPropertyDescriptor(o,n),d=`__bind_${n}_value__`,m=`__bind_${n}_updating_from_publisher__`,y=u&&!u.get&&!u.set?u.value:void 0;Object.defineProperty(o,n,{get(){return u?.get?u.get.call(this):(!Object.prototype.hasOwnProperty.call(this,d)&&y!==void 0&&(this[d]=y),this[d])},set(p){u?.set?u.set.call(this,p):this[d]=p,!this[m]&&this[c]&&this[c].set(p)},enumerable:u?.enumerable??!0,configurable:u?.configurable??!0})}o.__onConnected__(u=>{const d=u[l]||(u[l]={cleanupWatchers:[],unsubscribePublisher:null,currentPath:null});d.unsubscribePublisher&&(d.unsubscribePublisher(),d.unsubscribePublisher=null),d.cleanupWatchers.forEach(p=>p()),d.cleanupWatchers=[],d.currentPath=null;const m=p=>{if(!p){d.unsubscribePublisher&&(d.unsubscribePublisher(),d.unsubscribePublisher=null),d.currentPath=null,u[c]=null;return}if(p===d.currentPath)return;d.unsubscribePublisher&&(d.unsubscribePublisher(),d.unsubscribePublisher=null);const v=ls(p);if(!v){d.currentPath=null,u[c]=null;return}const _=D=>{i&&h&&(u[h]=!0),u[n]=D,i&&h&&(u[h]=!1)};v.onAssign(_),d.unsubscribePublisher=()=>{v.offAssign(_),u[c]===v&&(u[c]=null)},d.currentPath=p,u[c]=v},y=()=>{if(e){const p=fe(u,r);if(!p.ready){m(null);return}m(p.path);return}m(r)};if(e)for(const p of s){const v=Me(zs.watcherStore,zs.hooked,u,p,()=>y());d.cleanupWatchers.push(v)}y()}),o.__onDisconnected__(u=>{const d=u[l];d&&(d.unsubscribePublisher&&(d.unsubscribePublisher(),d.unsubscribePublisher=null),d.cleanupWatchers.forEach(m=>m()),d.cleanupWatchers=[],d.currentPath=null,u[c]=null)})}}function qr(r,t){const i=Ur(r)?r.path:r;return nl(i,t)}function Wr(r){const t=r.path,i=be(t);return function(s,e){Ne(s);const o=`__publish_${e}_publisher__`,n=`__publish_${e}_value__`,l=Object.getOwnPropertyDescriptor(s,e),c=l&&!l.get&&!l.set?l.value:void 0;Object.defineProperty(s,e,{get(){return l?.get?l.get.call(this):(!Object.prototype.hasOwnProperty.call(this,n)&&c!==void 0&&(this[n]=c),this[n])},set(h){l?.set?l.set.call(this,h):this[n]=h;const u=this[o];u&&u.set(h)},enumerable:l?.enumerable??!0,configurable:l?.configurable??!0}),s.__onConnected__(h=>{const u=h,d=`__publish_state_${e}`,m=u[d]||(u[d]={cleanupWatchers:[]}),y=()=>{let p;if(i.length){const _=fe(h,t);p=_.ready?_.path:null}else p=t;const v=p?ls(p):void 0;if(u[o]=v??null,v&&e in h){const _=u[e];_!==void 0&&v.set(_)}};if(m.cleanupWatchers.forEach(p=>p()),m.cleanupWatchers=[],i.length)for(const p of i)m.cleanupWatchers.push(Me(Br.watcherStore,Br.hooked,u,p,y));y()}),s.__onDisconnected__(h=>{const u=h,d=`__publish_state_${e}`,m=u[d];m?.cleanupWatchers&&m.cleanupWatchers.forEach(y=>y()),u[o]=void 0})}}function Kr(r){return qr(r)}const al={nullish:r=>r==null,emptyString:r=>r==="",emptyObject:r=>typeof r=="object"&&r!==null&&!Array.isArray(r)&&Object.keys(r).length===0,emptyArray:r=>Array.isArray(r)&&r.length===0};function ll(r,t){return t.some(i=>al[i](r))}function cl(r,t,i){if(!i.dispatchWhenUndefined&&r.slice(0,t).filter(e=>e!=null).length!==t)return!1;if(i.skip&&i.skip.length>0){for(let s=0;s<t;s++)if(ll(r[s],i.skip))return!1}return!0}function hl(...r){return Yr({},r)}function Yr(r,t){const i=t.map(s=>{const e=be(s);return{originalPath:s,dynamicDependencies:e,isDynamic:e.length>0}});return function(s,e,o){Ne(s);const n=`__onAssign_state_${e}__`;let l;s.__onConnected__(c=>{const h=c[n]||(c[n]={cleanupWatchers:[],configurations:[]});h.cleanupWatchers.forEach(p=>p()),h.cleanupWatchers=[],h.configurations.forEach(p=>{p.unsubscribePublisher&&p.unsubscribePublisher()}),h.configurations=[];const u=[],d=[];for(let p=0;p<t.length;p++){const v=i[p],_=new Set,D=f=>{u[p]=f,cl(u,t.length,r)&&_.forEach(b=>b(...u))};d.push({publisher:null,onAssign:D,callbacks:_,unsubscribePublisher:null,pathConfig:v,index:p})}const m=(p,v)=>{if(p.unsubscribePublisher&&(p.unsubscribePublisher(),p.unsubscribePublisher=null),u[p.index]=null,p.publisher=null,!v)return;const _=ls(v);_&&(_.onAssign(p.onAssign),p.unsubscribePublisher=()=>{_.offAssign(p.onAssign),p.publisher===_&&(p.publisher=null)},p.publisher=_)},y=()=>{for(const p of d)if(p.pathConfig.isDynamic){const v=fe(c,p.pathConfig.originalPath);if(!v.ready){m(p,null);continue}m(p,v.path)}else m(p,p.pathConfig.originalPath)};for(const p of d)if(p.pathConfig.isDynamic)for(const v of p.pathConfig.dynamicDependencies){const _=Me(Hr.watcherStore,Hr.hooked,c,v,()=>y());h.cleanupWatchers.push(_)}l=o.value.bind(c);for(const p of d)p.callbacks.add(l);y(),h.configurations=d}),s.__onDisconnected__(c=>{const h=c[n];h&&(h.cleanupWatchers.forEach(u=>u()),h.cleanupWatchers=[],h.configurations.forEach(u=>{u.unsubscribePublisher&&u.unsubscribePublisher(),u.callbacks.delete(l)}),h.configurations=[])})}}function dl(r){return Object.prototype.toString.call(r)==="[object DataProviderKey]"}function ul(...r){const t=r[r.length-1],i=t!==void 0&&!dl(t),s=i?t:{},o=(i?r.slice(0,-1):r).map(n=>n.path);return Yr({dispatchWhenUndefined:!s.waitForAllDefined,skip:s.skip},o)}function pl(){return function(r,t,i){let s=0;const e=i.value,o=r.constructor.prototype.disconnectedCallback;r.constructor.prototype.disconnectedCallback=function(){o?.apply(this),this.__removeAutoSubscribe__()};const n=r.connectedCallback;r.connectedCallback=function(){n?.call(this),this[t]()},i.value=function(...l){let c=new Set;const h=()=>{s++;const d=s;window.queueMicrotask(()=>{d===s&&this[t]()})};c.forEach(d=>{d.offAssign(h)}),k.collectModifiedPublisher();const u=e.apply(this,l);return c=k.getModifiedPublishers()||new Set,c.forEach(d=>{d.onAssign(h,!1)}),this.__removeAutoSubscribe__=()=>{c.forEach(d=>{d.offAssign(h)})},u}}}function fl(r){return function(t){Ne(t);for(const i of r){const s=i.split(".");if(s.length===0)continue;const e=s.shift()||"";let o=k.get(e);o=Xe.traverse(o,s),t.__onConnected__(n=>{o.startTemplateFilling(n)}),t.__onDisconnected__(()=>{})}}}function bl(r){return function(t,i){t&&(Ne(t),t.__onBeforeConnected__(s=>{const e=q.getAncestorAttributeValue(s,r);e!==null&&(s[i]=e)}))}}function Zr(r){return r instanceof HTMLElement||r instanceof ShadowRoot?r:null}function ml(r){if(!r||typeof r.get!="function")return null;const t=r.get();return!t||typeof t!="object"||!("serviceURL"in t)?null:t}function Gr(r){const t=Zr(r);return t?q.getApiConfiguration(t):null}function Xr(r){return typeof r?.serviceURL=="string"&&r.serviceURL.length>0}const gl=["serviceURL","serviceurl","token","credentials","tokenProvider","tokenprovider","userName","username","password","eventsApiToken","eventsapitoken"];function vl(r){return r instanceof HTMLElement&&typeof r.updateComplete<"u"}function yl(r,t){if(vl(r)){let s=!1;return r.updateComplete.then(()=>{s||t()}),()=>{s=!0}}const i=requestAnimationFrame(()=>t());return()=>cancelAnimationFrame(i)}function _l(r,t){const i=Zr(r);if(!i)return()=>{};let s=!1;const e=()=>{s||Xr(Gr(r))&&(s=!0,t())};if(e(),s)return()=>{};const o=[],n=requestAnimationFrame(()=>e());o.push(()=>cancelAnimationFrame(n)),queueMicrotask(()=>e());const l=new MutationObserver(()=>e());let c=i;for(;c;)c instanceof Element&&l.observe(c,{attributes:!0,attributeFilter:[...gl]}),c=c.parentNode||c.host;return o.push(()=>l.disconnect()),()=>{s=!0,o.forEach(h=>h())}}function Qr(r){r.configPublisher&&r.configMutationHandler&&r.configPublisher.offInternalMutation(r.configMutationHandler),r.configPublisher=null,r.configMutationHandler=null}function Jr(r,t){const i=r.path,s=t?.path,e=be(i),o=s?be(s):[],n=[...new Set([...e,...o])],l=e.length>0,c=!!s;return function(h,u){if(!h)return;Ne(h);const d=`__get_state_${u}`;h.__onConnected__(m=>{const y=m;let p=y[d];p||(p={cleanupWatchers:[],requestGeneration:0,configPublisher:null,configMutationHandler:null,scopeWatchCleanup:null},y[d]=p),p.cleanupWatchers.forEach(D=>D()),p.cleanupWatchers=[],p.requestGeneration++;const v=()=>{const D=l?fe(m,i):{ready:!0,path:i};if(!D.ready||!D.path){y[u]=void 0;return}let f=null;if(c&&s){const S=fe(m,s);if(!S.ready||!S.path){y[u]=void 0;return}const O=ls(S.path);f=ml(O)}else f=Gr(m);if(!Xr(f)){if(!c&&!p.scopeWatchCleanup){const S=_l(m,v);p.scopeWatchCleanup=S,p.cleanupWatchers.push(()=>{S(),p.scopeWatchCleanup=null})}return}const b=++p.requestGeneration;new de(f).getDetailed(D.path).then(S=>{b===p.requestGeneration&&(y[u]=S)})},_=()=>{if(!c||!s)return;Qr(p);const D=fe(m,s);if(!D.ready||!D.path){y[u]=void 0;return}const f=ls(D.path);if(!f){y[u]=void 0;return}const b=()=>{v()};f.onInternalMutation(b),p.configPublisher=f,p.configMutationHandler=b};if(c){for(const D of n){const f=Me(Us.watcherStore,Us.hooked,m,D,()=>_());p.cleanupWatchers.push(f)}_()}else{const D=()=>{if(l)for(const f of e){const b=Me(Us.watcherStore,Us.hooked,m,f,()=>v());p.cleanupWatchers.push(b)}v()};p.cleanupWatchers.push(yl(m,D))}}),h.__onDisconnected__(m=>{const y=m,p=y[d];p&&(Qr(p),p.cleanupWatchers.forEach(v=>v()),p.cleanupWatchers=[],p.requestGeneration++,y[u]=void 0)})}}const wl=Wr,xl=Kr,Pl=Jr;window["concorde-decorator-subscriber"]=window["concorde-decorator-subscriber"]||{},window["concorde-decorator-subscriber"]={bind:qr,publish:Wr,subscribe:Kr,onAssing:hl,handle:ul,ancestorAttribute:bl,autoSubscribe:pl,autoFill:fl,get:Jr};var Cl=Object.defineProperty,$l=Object.getOwnPropertyDescriptor,Vs=(r,t,i,s)=>{for(var e=s>1?void 0:s?$l(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Cl(t,i,e),e};const to=new Ts("communes?limit=$limit&fields=nom,code"),eo=new Ue(to.path),Sl="sonic-example";let cs=class extends x{constructor(){super(...arguments),this.limit=5}render(){return g` <span part="api-get-demo">
1272
+ </div>`}return Et(s)})}`}};Rs([a()],os.prototype,"state",2),Rs([a({type:Boolean,reflect:!0})],os.prototype,"inverted",2),Rs([a({type:Object})],os.prototype,"states",2),os=Rs([P(Ka)],os);var Ya=Object.getOwnPropertyDescriptor,Za=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ya(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Ga="sonic-scope";let zr=class extends x{createRenderRoot(){return this}render(){return g`<slot></slot>`}};zr=Za([P(Ga)],zr);function Xa(r){this.__beforeConnectedCallbackCalls__||(this.__beforeConnectedCallbackCalls__=new Set),this.__beforeConnectedCallbackCalls__.add(r)}function Qa(r){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(r)}function Ja(r){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(r)}function Ne(r){if(r.__is__setSubscribable__)return;r.__is__setSubscribable__=!0,r.__onBeforeConnected__=Xa,r.__onConnected__=Qa,r.__onDisconnected__=Ja;const t=r.connectedCallback;r.connectedCallback=function(){this.__beforeConnectedCallbackCalls__&&this.__beforeConnectedCallbackCalls__.forEach(s=>s(this)),t?.call(this),this.__connectedCallbackCalls__&&this.__connectedCallbackCalls__.forEach(s=>s(this))};const i=r.disconnectedCallback;r.disconnectedCallback=function(){i?.call(this),this.__disconnectedCallbackCalls__&&this.__disconnectedCallbackCalls__.forEach(s=>s(this))}}function tl(r){return r.trim().replace(/^this\./,"")}function Si(r,t){if(!t)return;const i=t.split(".").filter(Boolean);if(i.length===0)return;let s=r;for(const e of i){if(s==null||typeof s!="object")return;s=s[e]}return s}function fe(r,t){let i=!1;const s=(n,l)=>{const c=tl(l),h=Si(r,c);return h==null?(i=!0,""):`${h}`},e=t.replace(/\$\{([^}]+)\}/g,s).replace(/\{\$([^}]+)\}/g,s).trim();if(i||!e.length)return{ready:!1,path:null};const o=e.split(".").filter(Boolean);return o.length===0||!o[0]?{ready:!1,path:null}:{ready:!0,path:e}}function be(r){const t=[/\$\{([^}]+)\}/g,/\{\$([^}]+)\}/g],i=new Set;for(const s of t){let e;for(;(e=s.exec(r))!==null;){const o=(e[1]||"").trim().replace(/^this\./,"");if(!o)continue;const[n]=o.split(".");n&&i.add(n)}}return Array.from(i)}function Ur(r){return typeof r=="object"&&r!==null&&"path"in r&&typeof r.path=="string"}const ns=new WeakMap,as=new Set;let Ie=null;const el=8;function sl(r){let t=ns.get(r);return t||(t=new Map,ns.set(r,t)),t}function il(r,t){const i=new Set;for(const[s,e]of t){const o=Si(r,s);Object.is(e.lastValue,o)||(e.lastValue=o,e.onChangeHandlers.forEach(n=>i.add(n)))}return i}function rl(){Ie=null;let r=0,t=!0;for(;t&&r<el;){t=!1,r+=1;for(const i of as){const s=ns.get(i);if(!s||s.size===0)continue;const e=il(i,s);e.size!==0&&(t=!0,e.forEach(o=>o()))}}t&&console.warn("[concorde] dynamic property watch: limite de passes atteinte, boucle infinie probable"),as.size>0&&Vr()}function Vr(){Ie===null&&(Ie=requestAnimationFrame(rl))}function ol(){as.size===0&&Ie!==null&&(cancelAnimationFrame(Ie),Ie=null)}function Me(r,t,i,s,e){const o=String(s),n=sl(i);let l=n.get(o);return l||(l={lastValue:Si(i,o),onChangeHandlers:new Set},n.set(o,l)),l.onChangeHandlers.add(e),as.add(i),Vr(),()=>{const c=ns.get(i);if(!c)return;const h=c.get(o);h&&(h.onChangeHandlers.delete(e),h.onChangeHandlers.size===0&&c.delete(o),c.size===0&&(ns.delete(i),as.delete(i),ol()))}}const zs={watcherStore:Symbol("__bindDynamicWatcherStore__"),hooked:Symbol("__bindDynamicWillUpdateHooked__")},Br={watcherStore:"__publishDynamicWatcherStore__",hooked:"__publishDynamicWillUpdateHooked__"},Us={watcherStore:"__getDynamicWatcherStore__",hooked:"__getDynamicWillUpdateHooked__"},Hr={watcherStore:Symbol("__onAssignDynamicWatcherStore__"),hooked:Symbol("__onAssignDynamicWillUpdateHooked__")};function ls(r){const t=r.split(".").filter(e=>e.length>0);if(t.length===0)return null;const i=t.shift()||"";if(!i)return null;let s=k.get(i);return s?(s=Xe.traverse(s,t),s):null}function nl(r,t){const i=t?.reflect??!1,s=be(r),e=s.length>0;return function(o,n){if(!o)return;Ne(o);const l=`__bind_state_${n}`,c=`__bind_${n}_publisher__`,h=i?`__bind_${n}_updating_from_publisher__`:null;if(i){const u=Object.getOwnPropertyDescriptor(o,n),d=`__bind_${n}_value__`,m=`__bind_${n}_updating_from_publisher__`,y=u&&!u.get&&!u.set?u.value:void 0;Object.defineProperty(o,n,{get(){return u?.get?u.get.call(this):(!Object.prototype.hasOwnProperty.call(this,d)&&y!==void 0&&(this[d]=y),this[d])},set(p){u?.set?u.set.call(this,p):this[d]=p,!this[m]&&this[c]&&this[c].set(p)},enumerable:u?.enumerable??!0,configurable:u?.configurable??!0})}o.__onConnected__(u=>{const d=u[l]||(u[l]={cleanupWatchers:[],unsubscribePublisher:null,currentPath:null});d.unsubscribePublisher&&(d.unsubscribePublisher(),d.unsubscribePublisher=null),d.cleanupWatchers.forEach(p=>p()),d.cleanupWatchers=[],d.currentPath=null;const m=p=>{if(!p){d.unsubscribePublisher&&(d.unsubscribePublisher(),d.unsubscribePublisher=null),d.currentPath=null,u[c]=null;return}if(p===d.currentPath)return;d.unsubscribePublisher&&(d.unsubscribePublisher(),d.unsubscribePublisher=null);const v=ls(p);if(!v){d.currentPath=null,u[c]=null;return}const _=D=>{i&&h&&(u[h]=!0),u[n]=D,i&&h&&(u[h]=!1)};v.onAssign(_),d.unsubscribePublisher=()=>{v.offAssign(_),u[c]===v&&(u[c]=null)},d.currentPath=p,u[c]=v},y=()=>{if(e){const p=fe(u,r);if(!p.ready){m(null);return}m(p.path);return}m(r)};if(e)for(const p of s){const v=Me(zs.watcherStore,zs.hooked,u,p,()=>y());d.cleanupWatchers.push(v)}y()}),o.__onDisconnected__(u=>{const d=u[l];d&&(d.unsubscribePublisher&&(d.unsubscribePublisher(),d.unsubscribePublisher=null),d.cleanupWatchers.forEach(m=>m()),d.cleanupWatchers=[],d.currentPath=null,u[c]=null)})}}function qr(r,t){const i=Ur(r)?r.path:r;return nl(i,t)}function Wr(r){const t=r.path,i=be(t);return function(s,e){Ne(s);const o=`__publish_${e}_publisher__`,n=`__publish_${e}_value__`,l=Object.getOwnPropertyDescriptor(s,e),c=l&&!l.get&&!l.set?l.value:void 0;Object.defineProperty(s,e,{get(){return l?.get?l.get.call(this):(!Object.prototype.hasOwnProperty.call(this,n)&&c!==void 0&&(this[n]=c),this[n])},set(h){l?.set?l.set.call(this,h):this[n]=h;const u=this[o];u&&u.set(h)},enumerable:l?.enumerable??!0,configurable:l?.configurable??!0}),s.__onConnected__(h=>{const u=h,d=`__publish_state_${e}`,m=u[d]||(u[d]={cleanupWatchers:[]}),y=()=>{let p;if(i.length){const _=fe(h,t);p=_.ready?_.path:null}else p=t;const v=p?ls(p):void 0;if(u[o]=v??null,v&&e in h){const _=u[e];_!==void 0&&v.set(_)}};if(m.cleanupWatchers.forEach(p=>p()),m.cleanupWatchers=[],i.length)for(const p of i)m.cleanupWatchers.push(Me(Br.watcherStore,Br.hooked,u,p,y));y()}),s.__onDisconnected__(h=>{const u=h,d=`__publish_state_${e}`,m=u[d];m?.cleanupWatchers&&m.cleanupWatchers.forEach(y=>y()),u[o]=void 0})}}function Kr(r){return qr(r)}const al={nullish:r=>r==null,emptyString:r=>r==="",emptyObject:r=>typeof r=="object"&&r!==null&&!Array.isArray(r)&&Object.keys(r).length===0,emptyArray:r=>Array.isArray(r)&&r.length===0};function ll(r,t){return t.some(i=>al[i](r))}function cl(r,t,i){if(!i.dispatchWhenUndefined&&r.slice(0,t).filter(e=>e!=null).length!==t)return!1;if(i.skip&&i.skip.length>0){for(let s=0;s<t;s++)if(ll(r[s],i.skip))return!1}return!0}function hl(...r){return Yr({},r)}function Yr(r,t){const i=t.map(s=>{const e=be(s);return{originalPath:s,dynamicDependencies:e,isDynamic:e.length>0}});return function(s,e,o){Ne(s);const n=`__onAssign_state_${e}__`;let l;s.__onConnected__(c=>{const h=c[n]||(c[n]={cleanupWatchers:[],configurations:[]});h.cleanupWatchers.forEach(p=>p()),h.cleanupWatchers=[],h.configurations.forEach(p=>{p.unsubscribePublisher&&p.unsubscribePublisher()}),h.configurations=[];const u=[],d=[];for(let p=0;p<t.length;p++){const v=i[p],_=new Set,D=f=>{u[p]=f,cl(u,t.length,r)&&_.forEach(b=>b(...u))};d.push({publisher:null,onAssign:D,callbacks:_,unsubscribePublisher:null,pathConfig:v,index:p})}const m=(p,v)=>{if(p.unsubscribePublisher&&(p.unsubscribePublisher(),p.unsubscribePublisher=null),u[p.index]=null,p.publisher=null,!v)return;const _=ls(v);_&&(_.onAssign(p.onAssign),p.unsubscribePublisher=()=>{_.offAssign(p.onAssign),p.publisher===_&&(p.publisher=null)},p.publisher=_)},y=()=>{for(const p of d)if(p.pathConfig.isDynamic){const v=fe(c,p.pathConfig.originalPath);if(!v.ready){m(p,null);continue}m(p,v.path)}else m(p,p.pathConfig.originalPath)};for(const p of d)if(p.pathConfig.isDynamic)for(const v of p.pathConfig.dynamicDependencies){const _=Me(Hr.watcherStore,Hr.hooked,c,v,()=>y());h.cleanupWatchers.push(_)}l=o.value.bind(c);for(const p of d)p.callbacks.add(l);y(),h.configurations=d}),s.__onDisconnected__(c=>{const h=c[n];h&&(h.cleanupWatchers.forEach(u=>u()),h.cleanupWatchers=[],h.configurations.forEach(u=>{u.unsubscribePublisher&&u.unsubscribePublisher(),u.callbacks.delete(l)}),h.configurations=[])})}}function dl(r){return Object.prototype.toString.call(r)==="[object DataProviderKey]"}function ul(...r){const t=r[r.length-1],i=t!==void 0&&!dl(t),s=i?t:{},o=(i?r.slice(0,-1):r).map(n=>n.path);return Yr({dispatchWhenUndefined:!s.waitForAllDefined,skip:s.skip},o)}function pl(){return function(r,t,i){let s=0;const e=i.value,o=r.constructor.prototype.disconnectedCallback;r.constructor.prototype.disconnectedCallback=function(){o?.apply(this),this.__removeAutoSubscribe__()};const n=r.connectedCallback;r.connectedCallback=function(){n?.call(this),this[t]()},i.value=function(...l){let c=new Set;const h=()=>{s++;const d=s;window.queueMicrotask(()=>{d===s&&this[t]()})};c.forEach(d=>{d.offAssign(h)}),k.collectModifiedPublisher();const u=e.apply(this,l);return c=k.getModifiedPublishers()||new Set,c.forEach(d=>{d.onAssign(h,!1)}),this.__removeAutoSubscribe__=()=>{c.forEach(d=>{d.offAssign(h)})},u}}}function fl(r){return function(t){Ne(t);for(const i of r){const s=i.split(".");if(s.length===0)continue;const e=s.shift()||"";let o=k.get(e);o=Xe.traverse(o,s),t.__onConnected__(n=>{o.startTemplateFilling(n)}),t.__onDisconnected__(()=>{})}}}function bl(r){return function(t,i){t&&(Ne(t),t.__onBeforeConnected__(s=>{const e=q.getAncestorAttributeValue(s,r);e!==null&&(s[i]=e)}))}}function Zr(r){return r instanceof HTMLElement||r instanceof ShadowRoot?r:null}function ml(r){if(!r||typeof r.get!="function")return null;const t=r.get();return!t||typeof t!="object"||!("serviceURL"in t)?null:t}function Gr(r){const t=Zr(r);return t?q.getApiConfiguration(t):null}function Xr(r){return typeof r?.serviceURL=="string"&&r.serviceURL.length>0}const gl=["serviceURL","serviceurl","token","credentials","tokenProvider","tokenprovider","userName","username","password","eventsApiToken","eventsapitoken"];function vl(r){return r instanceof HTMLElement&&typeof r.updateComplete<"u"}function yl(r,t){if(vl(r)){let i=!1;return r.updateComplete.then(()=>{i||t()}),()=>{i=!0}}return t(),()=>{}}function _l(r,t){const i=Zr(r);if(!i)return()=>{};let s=!1;const e=()=>{s||Xr(Gr(r))&&(s=!0,t())};if(e(),s)return()=>{};const o=[],n=requestAnimationFrame(()=>e());o.push(()=>cancelAnimationFrame(n)),queueMicrotask(()=>e());const l=new MutationObserver(()=>e());let c=i;for(;c;)c instanceof Element&&l.observe(c,{attributes:!0,attributeFilter:[...gl]}),c=c.parentNode||c.host;return o.push(()=>l.disconnect()),()=>{s=!0,o.forEach(h=>h())}}function Qr(r){r.configPublisher&&r.configMutationHandler&&r.configPublisher.offInternalMutation(r.configMutationHandler),r.configPublisher=null,r.configMutationHandler=null}function Jr(r,t){const i=r.path,s=t?.path,e=be(i),o=s?be(s):[],n=[...new Set([...e,...o])],l=e.length>0,c=!!s;return function(h,u){if(!h)return;Ne(h);const d=`__get_state_${u}`;h.__onConnected__(m=>{const y=m;let p=y[d];p||(p={cleanupWatchers:[],requestGeneration:0,configPublisher:null,configMutationHandler:null,scopeWatchCleanup:null},y[d]=p),p.cleanupWatchers.forEach(D=>D()),p.cleanupWatchers=[],p.requestGeneration++;const v=()=>{const D=l?fe(m,i):{ready:!0,path:i};if(!D.ready||!D.path){y[u]=void 0;return}let f=null;if(c&&s){const S=fe(m,s);if(!S.ready||!S.path){y[u]=void 0;return}const O=ls(S.path);f=ml(O)}else f=Gr(m);if(!Xr(f)){if(!c&&!p.scopeWatchCleanup){const S=_l(m,v);p.scopeWatchCleanup=S,p.cleanupWatchers.push(()=>{S(),p.scopeWatchCleanup=null})}return}const b=++p.requestGeneration;new de(f).getDetailed(D.path).then(S=>{b===p.requestGeneration&&(y[u]=S)})},_=()=>{if(!c||!s)return;Qr(p);const D=fe(m,s);if(!D.ready||!D.path){y[u]=void 0;return}const f=ls(D.path);if(!f){y[u]=void 0;return}const b=()=>{v()};f.onInternalMutation(b),p.configPublisher=f,p.configMutationHandler=b};if(c){for(const D of n){const f=Me(Us.watcherStore,Us.hooked,m,D,()=>_());p.cleanupWatchers.push(f)}_()}else{const D=()=>{if(l)for(const f of e){const b=Me(Us.watcherStore,Us.hooked,m,f,()=>v());p.cleanupWatchers.push(b)}v()};p.cleanupWatchers.push(yl(m,D))}}),h.__onDisconnected__(m=>{const y=m,p=y[d];p&&(Qr(p),p.cleanupWatchers.forEach(v=>v()),p.cleanupWatchers=[],p.requestGeneration++,y[u]=void 0)})}}const wl=Wr,xl=Kr,Pl=Jr;window["concorde-decorator-subscriber"]=window["concorde-decorator-subscriber"]||{},window["concorde-decorator-subscriber"]={bind:qr,publish:Wr,subscribe:Kr,onAssing:hl,handle:ul,ancestorAttribute:bl,autoSubscribe:pl,autoFill:fl,get:Jr};var Cl=Object.defineProperty,$l=Object.getOwnPropertyDescriptor,Vs=(r,t,i,s)=>{for(var e=s>1?void 0:s?$l(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Cl(t,i,e),e};const to=new Ts("communes?limit=$limit&fields=nom,code"),eo=new Ue(to.path),Sl="sonic-example";let cs=class extends x{constructor(){super(...arguments),this.limit=5}render(){return g` <span part="api-get-demo">
1273
1273
  · get: ${JSON.stringify(this.geoCommunesPayload?.result??null)} · HTTP
1274
1274
  ${this.geoCommunesPayload?.response?.status??"—"} · subscribe:
1275
1275
  ${JSON.stringify(this.geoCommunesResult??null)}</span
@@ -744,7 +744,7 @@ const I = class I {
744
744
  return new TextDecoder().decode(h);
745
745
  }
746
746
  };
747
- I.buildDate = "Wed Jun 03 2026 19:26:21 GMT+0200 (Central European Summer Time)", I.changed = !1, I.saving = !1, I.saveId = 0, I.instance = null, I.instances = /* @__PURE__ */ new Map(), I.modifiedCollectore = [];
747
+ I.buildDate = "Thu Jun 04 2026 17:00:58 GMT+0200 (Central European Summer Time)", I.changed = !1, I.saving = !1, I.saveId = 0, I.instance = null, I.instances = /* @__PURE__ */ new Map(), I.modifiedCollectore = [];
748
748
  let D = I;
749
749
  if (typeof window < "u") {
750
750
  const r = window;
@@ -7149,15 +7149,15 @@ function _l(r) {
7149
7149
  }
7150
7150
  function wl(r, t) {
7151
7151
  if (_l(r)) {
7152
- let s = !1;
7152
+ let i = !1;
7153
7153
  return r.updateComplete.then(() => {
7154
- s || t();
7154
+ i || t();
7155
7155
  }), () => {
7156
- s = !0;
7156
+ i = !0;
7157
7157
  };
7158
7158
  }
7159
- const i = requestAnimationFrame(() => t());
7160
- return () => cancelAnimationFrame(i);
7159
+ return t(), () => {
7160
+ };
7161
7161
  }
7162
7162
  function xl(r, t) {
7163
7163
  const i = eo(r);
@@ -1,4 +1,4 @@
1
- (function(q){typeof define=="function"&&define.amd?define(q):q()})((function(){"use strict";var N,Z;let q=class St{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,i)=>{const s=i.indexOf("=");return t[i.substring(0,s).trim()]=i.substring(s+1),t},{})}static everyAncestors(t,i){for(;t;){if(!i(t))return;t=t.parentNode||t.host}}static getScrollableAncestor(t){for(;t;){const i=t;if(i.nodeType===1){const s=window.getComputedStyle(i);if(s?.overflowY==="auto"||s?.overflowY==="scroll"||s?.overflowY==="hidden"||s?.overflowX==="auto"||s?.overflowX==="scroll"||s?.overflowX==="hidden")return t}t=t.parentNode||t.host}return null}static scopeAttributeNames(t){const i=t.toLowerCase();return i===t?[t]:[t,i]}static readScopeValueOnElement(t,i){const s=t[i];if(typeof s=="string"&&s.length>0)return s;for(const e of St.scopeAttributeNames(i))if(t.hasAttribute(e)){const o=t.getAttribute(e);if(o!=null&&o.length>0)return o}return null}static getAncestorAttributeValue(t,i){if(!t)return null;let s=t;for(;s;){if(s instanceof HTMLElement){const o=St.readScopeValueOnElement(s,i);if(o!=null&&o.length>0)return o}const e=s.parentNode||s.host;if(!e)break;s=e}return null}static getApiConfiguration(t){const i=St.getAncestorAttributeValue(t,"token"),s=St.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=St.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const l=St.getAncestorAttributeValue(t,"tokenProvider"),c=St.getAncestorAttributeValue(t,"eventsApiToken");i||(o=St.getAncestorAttributeValue(t,"userName"),n=St.getAncestorAttributeValue(t,"password"));const h=St.getAncestorAttributeValue(t,"credentials")||void 0,u=t.getAttribute("cache"),d=t.hasAttribute("blockUntilDone"),m=t.hasAttribute("keepAlive");return{serviceURL:e,token:i,userName:o,password:n,authToken:c,tokenProvider:l,addHTTPResponse:s,credentials:h,cache:u,blockUntilDone:d,keepAlive:m}}static getClosestElement(t,i){for(;!(t.nodeName&&t.nodeName.toLowerCase()===i)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return St.getClosestElement(t,"form")}static getAncestorsByTagNames(t,i){const s=new Set(i.map(n=>n.toLowerCase())),e=[];let o=t.parentNode||t.host;for(;o;)o instanceof Element&&s.has(o.tagName.toLowerCase())&&e.push(o),o=o.parentNode||o.host;return e}static getAncestorsBySelectors(t,i){const s=[];let e=t.parentNode||t.host;for(;e;){if(e instanceof Element)for(const o of i)try{if(e.matches(o)){s.push(e);break}}catch{}e=e.parentNode||e.host}return s}static async loadJS(t){return new Promise(async s=>{const e=document.createElement("script");e.src=t,e.onload=()=>s(!0),e.onerror=()=>s(!0),document.head.appendChild(e)})}static async loadCSS(t){return new Promise(async s=>{const e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=t,e.onload=()=>s(!0),e.onerror=()=>s(!0),document.head.appendChild(e)})}};const Qs=r=>{const t=document.documentElement,i=new MutationObserver(e=>{for(let o of e)o.type==="attributes"&&o.attributeName==="lang"&&r()}),s={attributes:!0,attributeFilter:["lang"]};i.observe(t,s)};let ys=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,i="",s="long"){i||(i=q.getLanguage());const e=(h,u)=>[Math.floor(h/u),h%u];function o(h,u,d){return new Intl.NumberFormat(h,{style:"unit",unit:u,unitDisplay:d}).format}const[n,l]=e(t,60),c=[];return n&&c.push(o(i,"hour",s)(n)),l&&c.push(o(i,"minute",s)(l)),new Intl.ListFormat(i,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}};class Gi{constructor(t){this.path=t}toString(){return this.path}}function Xi(r){return new Proxy(r,{get(t,i){if(i==="path")return t.path;if(i==="toString")return t.toString.bind(t);if(i===Symbol.toStringTag)return"DataProviderKey";if(typeof i=="symbol")return t[i];const s=t.path?`${t.path}.${String(i)}`:String(i);return Xi(new Gi(s))}})}const vo=/\$\{|\{\$/;function yo(r){return vo.test(r)}function Js(r){const t=typeof r=="string"?r:r.path;if(yo(t))throw new Error("Static publisher path required for get/set/dp. Use @subscribe, @publish, or @handle for dynamic DataProviderKey paths.");return t}const Ue=function(r){return this instanceof Ue?Xi(new Gi(r)):new Ue(r)};let tt=class qt{static shallowEqual(t,i,s=!0){const e=Object.keys(t),o=Object.keys(i);if(e.length!==o.length&&s)return!1;for(const n of e){const l=t[n],c=i[n];if(s?l!==c:l!=c)return!1}return!0}static deepEqual(t,i,s=!0){const e=Object.keys(t),o=Object.keys(i);if(e.length!==o.length&&s)return!1;for(const n of e){const l=t[n],c=i[n],h=qt.isObject(l)&&qt.isObject(c),u=s?l!==c:l!=c;if(h&&!qt.deepEqual(l,c)||!h&&u)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return qt.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,i,s=!1){for(const e of i){const o=t[e];if(o===void 0)return;s&&qt.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static traverseDotNotation(t,i,s=!1){return qt.traverse(t,i.split("."),s)}static getURLSearchArray(t,i=""){let s=[];for(let e in t){const o=t[e];i&&(e=i+"["+e+"]"),qt.isObject(o)?s=[...s,...this.getURLSearchArray(o,e)]:s.push(`${e}=${o}`)}return s}static getURLSearchString(t){return qt.getURLSearchArray(t,"").join("&")}};const ut=tt.traverseDotNotation;let _o=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(i=>{setTimeout(i,t)})}},Qi="sonic";typeof __SONIC_PREFIX__<"u"&&(Qi=__SONIC_PREFIX__);let Ji=Qi.replace(/-([a-z])/g,r=>r[1].toUpperCase());const _s=Ji.charAt(0).toUpperCase()+Ji.slice(1);function ws(r){return Object.prototype.hasOwnProperty.call(r,"__value")}function Wt(r){return typeof r=="object"&&r!==null}let Ce="sonic";typeof __SONIC_PREFIX__>"u"&&(Ce="sonic");const ti=Ce=="sonic"?"publisher-proxies-data":Ce+"-publisher-proxies-data",oe=class oe{constructor(t,i,s){for(this._proxies_=new Map,this._is_savable_=!1,this._expiration_delay_=1e3*60*60*12,this._invalidate_on_page_show_=!1,this._invalidateListeners_=new Set,this._formInvalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this._instanceCounter_=0,this._assignmentId_=0,this._value_=t,this.parent=i||null,this._parentKey_=s,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){for(const t in this._proxies_.keys())t!="_parent_"&&this._proxies_.get(t)?.delete();this._invalidateListeners_.clear(),this._formInvalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),oe.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._formInvalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(t=!1){if(this._mutationListeners_.forEach(i=>i()),this._is_savable_&&!k.changed){k.changed=!0,k.saveId++;const i=k.saveId;setTimeout(()=>k.getInstance().saveToLocalStorage(i),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){if(this._assignmentId_++,this._assignmentId_!==this._assignmentId_)return;const s=this.get();this._assignListeners_.forEach(e=>{e(s)}),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,i){this._fillListeners_.forEach(s=>{s[t]!==i&&(s[t]=i)}),this._publishTemplateFilling_(t,i)}_publishTemplateFilling_(t,i){this._templateFillListeners_.forEach(s=>{const e=Object.getOwnPropertyDescriptor(s,t);e&&!e.set&&!e.writable||(s.propertyMap&&s.propertyMap[t]&&(t=s.propertyMap[t]),typeof s[t]<"u"&&s[t]!==i&&(s[t]=i))})}onAssign(t,i=!0){typeof t=="function"&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),i&&t(this.get())))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){typeof t=="function"&&this._invalidateListeners_.add(t)}offInvalidate(t){typeof t=="function"&&this._invalidateListeners_.delete(t)}invalidate(){this._publishInvalidation_()}onFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.add(t)}offFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.delete(t)}invalidateForm(){this._publishFormInvalidation_()}onInternalMutation(t){typeof t=="function"&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){typeof t=="function"&&this._mutationListeners_.delete(t)}startTemplateFilling(t){if(this._templateFillListeners_.add(t),typeof this._value_=="object")for(const i in this._value_){let s=i;const e=this._value_[i];t.propertyMap&&t.propertyMap[i]&&(s=t.propertyMap[i]),typeof t[i]<"u"&&t[i]!==e&&(t[s]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const i in this._value_){const s=this._value_[i];t[i]!==s&&(t[i]=s)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}set(t,i=!1){if(this._value_===t||Wt(this._value_)&&Wt(t)&&t&&ws(this._value_)&&ws(t)&&this._value_.__value===t.__value||!Wt(t)&&t===this._value_.__value)return!0;this._value_=Wt(t)?t:{__value:t},this._cachedGet_=void 0;const s=ws(this._value_);if(this._parentKey_&&this.parent){const e=ws(this._value_)?this._value_.__value:this._value_;if(this.parent?.get()==null&&this.parent?.get()==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:e});else{const o=[];o[Number(this._parentKey_)]=e,this.parent.set(o)}else this.parent._value_[this._parentKey_]=e}if(s)return this._proxies_.forEach((e,o)=>{o!="_parent_"&&(e.set(null),this._publishDynamicFilling_(o,null))}),this._publishAssignement_(i),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const e in this._value_)this._value_[e]===void 0&&delete this._value_[e];if(this._proxies_.forEach((e,o)=>{const n=this._value_[o];o!="_parent_"&&n===void 0&&n!==null&&isNaN(Number(o))&&(e.set(null),this._publishDynamicFilling_(o,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),Wt(this._value_))for(const e in this._value_){const o=t[e],l=Wt(o)?o:{__value:o};if(!this._proxies_.has(e)){this._publishDynamicFilling_(e,o);continue}this._proxies_.get(e)?.set(l,!0),this._publishDynamicFilling_(e,o)}return!0}get(){if(k.modifiedCollectore.length>0&&k.modifiedCollectore[0].add(this),this._cachedGet_!==void 0)return this._cachedGet_;if(Object.prototype.hasOwnProperty.call(this._value_,"__value")){const t=this._value_.__value;return this._cachedGet_=t??null}return this._cachedGet_=this._value_!=null?this._value_:null}get $tag(){return this._instanceCounter_||(oe.instancesCounter++,this._instanceCounter_=oe.instancesCounter),oe.instances.set(this._instanceCounter_,this),"<"+Ce+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+Ce+"-publisher-proxy>"}};oe.instances=new Map,oe.instancesCounter=0;let Ve=oe;const I=class I{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],I.instance!=null)throw"Singleton / use getInstance";I.instance=this,this.isLocalStrorageReady=this.cleanStorageData()}invalidateAll(){this.publishers.forEach(t=>{t._invalidate_on_page_show_&&t.invalidate()})}async cleanStorageData(){return new Promise(t=>{(async()=>{try{let s=localStorage.getItem(ti),e=null;if(s&&(e=await this.decompress(s,"gzip")),e)try{this.localStorageData=JSON.parse(e)}catch{this.localStorageData={}}else s=await this.compress("{}","gzip"),localStorage.setItem(ti,s),this.localStorageData={};const o=1e3*60*60*12;for(const n in this.localStorageData){const l=this.localStorageData[n],c=new Date().getTime()-(l.expirationDelayMs||o);l.lastModifiationMS<c&&delete this.localStorageData[n]}t(!0)}catch{window.requestAnimationFrame(()=>{t(!1)}),console.warn("no publisher cache in this browser")}})()})}static getInstance(t){if(t){const i=I.instances.get(t);return i||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new I)}return I.instance==null?new I:I.instance}static registerInstance(t,i){I.instances.has(t)&&console.warn("PublisherManager instance already registered with id: ",t),I.instances.set(t,i)}static get(t,i){return I.getInstance().get(t,i)}static collectModifiedPublisher(){I.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return I.modifiedCollectore.shift()}static delete(t){return t?I.getInstance().delete(t):!1}async setLocalData(t,i){await this.isLocalStrorageReady,t.set(this.localStorageData[i+"¤lang_"+q.getLanguage()]?.data||t.get())}get(t,i){const s=i?.localStorageMode==="enabled",e=i?.invalidateOnPageShow===!0;if(!this.publishers.has(t)){const l=ei({});this.set(t,l)}const o=this.publishers.get(t);return s&&this.initialisedData.indexOf(t)===-1&&(i?.expirationDelayMs&&(o._expiration_delay_=i.expirationDelayMs),o._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(o,t)),e&&(o._invalidate_on_page_show_=e),this.publishers.get(t)}set(t,i){this.publishers.set(t,i)}delete(t){return this.publishers.has(t)?(this.publishers.delete(t),!0):!1}async saveToLocalStorage(t=0){if(!(t!==I.saveId&&t%10!=0))try{if(!I.changed||I.saving)return;I.saving=!0,I.changed=!1;const i=Array.from(this.publishers.keys());let s=!1;for(const e of i){const o=this.publishers.get(e);if(!o?._is_savable_)continue;const n=o?.get();n&&(this.localStorageData[e+"¤lang_"+q.getLanguage()]={lastModifiationMS:new Date().getTime(),expirationDelayMs:o._expiration_delay_,data:n},s=!0)}if(s){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(ti,e)}if(I.saving=!1,I.changed){I.saveId++;const e=I.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{I.saving=!1}}async compress(t,i){const s=new TextEncoder().encode(t),e=window,o=new e.CompressionStream(i),n=o.writable.getWriter();n.write(s),n.close();const l=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(l);let h="";for(let u=0;u<c.length;u++)h+=String.fromCharCode(c[u]);return btoa(h)}async decompress(t,i){const s=atob(t),o=Uint8Array.from(s,u=>u.charCodeAt(0)).buffer,n=window,l=new n.DecompressionStream(i),c=l.writable.getWriter();c.write(o),c.close();const h=await new Response(l.readable).arrayBuffer();return new TextDecoder().decode(h)}};I.buildDate="Wed Jun 03 2026 19:26:21 GMT+0200 (Central European Summer Time)",I.changed=!1,I.saving=!1,I.saveId=0,I.instance=null,I.instances=new Map,I.modifiedCollectore=[];let k=I;if(typeof window<"u"){const r=window;r[_s+"PublisherManager"]=r[_s+"PublisherManager"]||k}const wo=new Set(["invalidate","onInvalidate","offInvalidate","invalidateForm","onFormInvalidate","offFormInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","$tag","_cachedGet_","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_formInvalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishFormInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_parentKey_","_value_","_is_savable_","_expiration_delay_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_","_invalidate_on_page_show_"]);function xo(r,t){return{get:function(i,s){if(typeof s=="string"&&wo.has(s))return r[s];if(s==Symbol.toPrimitive)return()=>t().get();if(!r._proxies_.has(s)){const e=r._value_[s],o=ei(Wt(e)?e:{__value:e},r,s);o._proxies_.set("_parent_",t()),r._proxies_.set(s,o)}return r._proxies_.get(s)},set:function(i,s,e){if(s=="_value_")return r._value_=e,!0;if(s=="_cachedGet_")return r._cachedGet_=e,!0;if(s=="_assignmentId_")return r._assignmentId_=e,!0;if(s=="_is_savable_")return r._is_savable_=e,!0;if(s=="_expiration_delay_")return r._expiration_delay_=e,!0;if(s=="_invalidate_on_page_show_")return r._invalidate_on_page_show_=e,!0;if(s=="_instanceCounter_")return r._instanceCounter_=e,!0;if(!r._proxies_.has(s)){const n=ei({},r,s);n._proxies_.set("_parent_",t()),r._proxies_.set(s,n)}return r._value_[s]!==e&&(r._value_[s]=e,r._publishDynamicFilling_(s,e),r._proxies_.get(s)?.set(Wt(e)?e:{__value:e})),!0},deleteProperty:function(i,s){return r._publishDynamicFilling_(s,null),r._proxies_.get(s)?.set(null),delete r._value_[s]},has:function(i,s){return s in r._value_&&s!="_lockInternalMutationPublishing_"},defineProperty:function(i,s,e){return e&&"value"in e&&(r._value_[s]=e.value),!0},getOwnPropertyDescriptor:function(i,s){return{enumerable:!0,configurable:!0}},ownKeys:function(i){return r._value_.__value?Object.keys(r._value_.__value):Object.keys(r._value_)}}}function ei(r,t=null,i){const s=new Ve(r,t,i);let e=null;const o=xo(s,()=>e);return e=new Proxy(s,o),e}class Po extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){this.publisherId=this.getAttribute("publisher")||"",this.publisher=Ve.instances.get(parseInt(this.publisherId)),this.publisher?.onAssign(this.onAssign)}disconnectedCallback(){this.publisher?.offAssign(this.onAssign)}}try{customElements.define(Ce+"-publisher-proxy",Po)}catch{}const xs=r=>{if(typeof r=="function"){const t=r;return k.collectModifiedPublisher(),t(),k.getModifiedPublishers()}if(typeof r=="string"){const t=r.split("."),i=t.shift()||"";let s=k.get(i);s=tt.traverse(s,t);const e=new Set;return e.add(s),e}return new Set([r])};function Co(r){const t=Js(r);return xs(t).values().next().value?.get()}function tr(r,t){const i=Js(r);return xs(i).values().next().value}function $o(r,t){return tr(r)}function Ps(r,t){return tr(r)}function So(r,t){const i=Js(r);xs(i).values().next().value?.set(t)}window.addEventListener("pageshow",r=>{r.persisted&&k.getInstance().invalidateAll()});let Cs=(N=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(N.observedElements.keys()).forEach(t=>N.unObserve(t)))}static observe(t){if(!t||!N.enabled||N.observedElements.has(t))return;const i=new MutationObserver(N.onMutation),s={};s.childList=!0,s.subtree=!0,s.attributes=!0,s.attributeFilter=["data-bind"],i.observe(t,s),t.querySelectorAll("[data-bind]").forEach(e=>N.addPublisherListeners(e)),N.observedElements.set(t,i)}static unObserve(t){if(!t)return;const i=this.observedElements.get(t);i&&(i.disconnect(),t.querySelectorAll("[data-bind]").forEach(s=>N.removePublisherListeners(s)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&N.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>N.addPublisherListeners(i)):t.childNodes.forEach(i=>N.onAdded(i))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&N.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>N.removePublisherListeners(i)):t.childNodes.forEach(i=>N.onRemoved(i))}static onMutation(t){for(const i of t)switch(i.type){case"attributes":N.addPublisherListeners(i.target);break;case"childList":i.addedNodes.forEach(s=>{N.onAdded(s)}),i.removedNodes.forEach(s=>{N.onRemoved(s)});break}}static removePublisherListeners(t){const i=N.publisherListeners.get(t);i&&(N.publisherListeners.delete(t),i.forEach(s=>{s.publisher?.offAssign(s.onAssign)}))}static getVariablesDescriptor(t){let i=t.match(/(\$(?:\w+\\?\.?)+)/g);return i?i=i.map(s=>s.replace("$","")):i=[t],i=i.filter(s=>s.length>0),{expression:t.replace("\\",""),variables:i.map(s=>s.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(t){return"attributes"in t?Array.from(t.attributes).filter(i=>i.name.indexOf("::")==0).map(i=>({propertyToUpdate:i.name.substring(2).replace(/-((html)|\w)/g,e=>e.substring(1).toUpperCase()),bindedVariablesDescriptor:N.getVariablesDescriptor(i.value)})):[]}static getSubPublisher(t,i){if(!i)return t;for(const s of i)if(s!="_self_"){if(!t)return null;t=t[s]}return t}static addPublisherListeners(t){N.removePublisherListeners(t);const i=q.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!i)return;const s=k.getInstance().get(i),e=N.getDataBindItems(t),o=[];e.forEach(n=>{const l=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of l.variables){const u=h;let d=s;d=N.getSubPublisher(s,u);const m=t,y={publisher:d,onAssign:()=>{const p=l.variables.map(D=>N.getSubPublisher(s,D)?.get());let v=l.expression,_=!1;if(p.length==1&&l.variables[0].join(".")==v.substring(1)){let D=p[0];D===null&&(D=""),m[c]=D;return}for(let D=0;D<p.length;D++){let f=p[D];const b=l.variables[D];f===null&&(_=!0,f=void 0),v=v.replace("$"+b.join("."),f)}if(v.indexOf("|")!=-1){const D=v.indexOf("|");if(D==0)v=ys.js(v.substring(1));else{const f=v.substring(0,D),b=v.substring(D+1),w=ys[f];v=_?"":w?w(b):v}}else v=_?"":v;m[c]=v}};d?.onAssign(y.onAssign),o.push(y)}}),N.publisherListeners.set(t,o)}},N.observedElements=new Map,N.enabled=!0,N.publisherListeners=new Map,N);Cs.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=Cs);/**
1
+ (function(q){typeof define=="function"&&define.amd?define(q):q()})((function(){"use strict";var N,Z;let q=class St{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,i)=>{const s=i.indexOf("=");return t[i.substring(0,s).trim()]=i.substring(s+1),t},{})}static everyAncestors(t,i){for(;t;){if(!i(t))return;t=t.parentNode||t.host}}static getScrollableAncestor(t){for(;t;){const i=t;if(i.nodeType===1){const s=window.getComputedStyle(i);if(s?.overflowY==="auto"||s?.overflowY==="scroll"||s?.overflowY==="hidden"||s?.overflowX==="auto"||s?.overflowX==="scroll"||s?.overflowX==="hidden")return t}t=t.parentNode||t.host}return null}static scopeAttributeNames(t){const i=t.toLowerCase();return i===t?[t]:[t,i]}static readScopeValueOnElement(t,i){const s=t[i];if(typeof s=="string"&&s.length>0)return s;for(const e of St.scopeAttributeNames(i))if(t.hasAttribute(e)){const o=t.getAttribute(e);if(o!=null&&o.length>0)return o}return null}static getAncestorAttributeValue(t,i){if(!t)return null;let s=t;for(;s;){if(s instanceof HTMLElement){const o=St.readScopeValueOnElement(s,i);if(o!=null&&o.length>0)return o}const e=s.parentNode||s.host;if(!e)break;s=e}return null}static getApiConfiguration(t){const i=St.getAncestorAttributeValue(t,"token"),s=St.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=St.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const l=St.getAncestorAttributeValue(t,"tokenProvider"),c=St.getAncestorAttributeValue(t,"eventsApiToken");i||(o=St.getAncestorAttributeValue(t,"userName"),n=St.getAncestorAttributeValue(t,"password"));const h=St.getAncestorAttributeValue(t,"credentials")||void 0,u=t.getAttribute("cache"),d=t.hasAttribute("blockUntilDone"),m=t.hasAttribute("keepAlive");return{serviceURL:e,token:i,userName:o,password:n,authToken:c,tokenProvider:l,addHTTPResponse:s,credentials:h,cache:u,blockUntilDone:d,keepAlive:m}}static getClosestElement(t,i){for(;!(t.nodeName&&t.nodeName.toLowerCase()===i)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return St.getClosestElement(t,"form")}static getAncestorsByTagNames(t,i){const s=new Set(i.map(n=>n.toLowerCase())),e=[];let o=t.parentNode||t.host;for(;o;)o instanceof Element&&s.has(o.tagName.toLowerCase())&&e.push(o),o=o.parentNode||o.host;return e}static getAncestorsBySelectors(t,i){const s=[];let e=t.parentNode||t.host;for(;e;){if(e instanceof Element)for(const o of i)try{if(e.matches(o)){s.push(e);break}}catch{}e=e.parentNode||e.host}return s}static async loadJS(t){return new Promise(async s=>{const e=document.createElement("script");e.src=t,e.onload=()=>s(!0),e.onerror=()=>s(!0),document.head.appendChild(e)})}static async loadCSS(t){return new Promise(async s=>{const e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=t,e.onload=()=>s(!0),e.onerror=()=>s(!0),document.head.appendChild(e)})}};const Qs=r=>{const t=document.documentElement,i=new MutationObserver(e=>{for(let o of e)o.type==="attributes"&&o.attributeName==="lang"&&r()}),s={attributes:!0,attributeFilter:["lang"]};i.observe(t,s)};let ys=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,i="",s="long"){i||(i=q.getLanguage());const e=(h,u)=>[Math.floor(h/u),h%u];function o(h,u,d){return new Intl.NumberFormat(h,{style:"unit",unit:u,unitDisplay:d}).format}const[n,l]=e(t,60),c=[];return n&&c.push(o(i,"hour",s)(n)),l&&c.push(o(i,"minute",s)(l)),new Intl.ListFormat(i,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}};class Gi{constructor(t){this.path=t}toString(){return this.path}}function Xi(r){return new Proxy(r,{get(t,i){if(i==="path")return t.path;if(i==="toString")return t.toString.bind(t);if(i===Symbol.toStringTag)return"DataProviderKey";if(typeof i=="symbol")return t[i];const s=t.path?`${t.path}.${String(i)}`:String(i);return Xi(new Gi(s))}})}const vo=/\$\{|\{\$/;function yo(r){return vo.test(r)}function Js(r){const t=typeof r=="string"?r:r.path;if(yo(t))throw new Error("Static publisher path required for get/set/dp. Use @subscribe, @publish, or @handle for dynamic DataProviderKey paths.");return t}const Ue=function(r){return this instanceof Ue?Xi(new Gi(r)):new Ue(r)};let tt=class qt{static shallowEqual(t,i,s=!0){const e=Object.keys(t),o=Object.keys(i);if(e.length!==o.length&&s)return!1;for(const n of e){const l=t[n],c=i[n];if(s?l!==c:l!=c)return!1}return!0}static deepEqual(t,i,s=!0){const e=Object.keys(t),o=Object.keys(i);if(e.length!==o.length&&s)return!1;for(const n of e){const l=t[n],c=i[n],h=qt.isObject(l)&&qt.isObject(c),u=s?l!==c:l!=c;if(h&&!qt.deepEqual(l,c)||!h&&u)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return qt.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,i,s=!1){for(const e of i){const o=t[e];if(o===void 0)return;s&&qt.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static traverseDotNotation(t,i,s=!1){return qt.traverse(t,i.split("."),s)}static getURLSearchArray(t,i=""){let s=[];for(let e in t){const o=t[e];i&&(e=i+"["+e+"]"),qt.isObject(o)?s=[...s,...this.getURLSearchArray(o,e)]:s.push(`${e}=${o}`)}return s}static getURLSearchString(t){return qt.getURLSearchArray(t,"").join("&")}};const ut=tt.traverseDotNotation;let _o=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(i=>{setTimeout(i,t)})}},Qi="sonic";typeof __SONIC_PREFIX__<"u"&&(Qi=__SONIC_PREFIX__);let Ji=Qi.replace(/-([a-z])/g,r=>r[1].toUpperCase());const _s=Ji.charAt(0).toUpperCase()+Ji.slice(1);function ws(r){return Object.prototype.hasOwnProperty.call(r,"__value")}function Wt(r){return typeof r=="object"&&r!==null}let Ce="sonic";typeof __SONIC_PREFIX__>"u"&&(Ce="sonic");const ti=Ce=="sonic"?"publisher-proxies-data":Ce+"-publisher-proxies-data",oe=class oe{constructor(t,i,s){for(this._proxies_=new Map,this._is_savable_=!1,this._expiration_delay_=1e3*60*60*12,this._invalidate_on_page_show_=!1,this._invalidateListeners_=new Set,this._formInvalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this._instanceCounter_=0,this._assignmentId_=0,this._value_=t,this.parent=i||null,this._parentKey_=s,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){for(const t in this._proxies_.keys())t!="_parent_"&&this._proxies_.get(t)?.delete();this._invalidateListeners_.clear(),this._formInvalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),oe.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._formInvalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(t=!1){if(this._mutationListeners_.forEach(i=>i()),this._is_savable_&&!k.changed){k.changed=!0,k.saveId++;const i=k.saveId;setTimeout(()=>k.getInstance().saveToLocalStorage(i),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){if(this._assignmentId_++,this._assignmentId_!==this._assignmentId_)return;const s=this.get();this._assignListeners_.forEach(e=>{e(s)}),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,i){this._fillListeners_.forEach(s=>{s[t]!==i&&(s[t]=i)}),this._publishTemplateFilling_(t,i)}_publishTemplateFilling_(t,i){this._templateFillListeners_.forEach(s=>{const e=Object.getOwnPropertyDescriptor(s,t);e&&!e.set&&!e.writable||(s.propertyMap&&s.propertyMap[t]&&(t=s.propertyMap[t]),typeof s[t]<"u"&&s[t]!==i&&(s[t]=i))})}onAssign(t,i=!0){typeof t=="function"&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),i&&t(this.get())))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){typeof t=="function"&&this._invalidateListeners_.add(t)}offInvalidate(t){typeof t=="function"&&this._invalidateListeners_.delete(t)}invalidate(){this._publishInvalidation_()}onFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.add(t)}offFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.delete(t)}invalidateForm(){this._publishFormInvalidation_()}onInternalMutation(t){typeof t=="function"&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){typeof t=="function"&&this._mutationListeners_.delete(t)}startTemplateFilling(t){if(this._templateFillListeners_.add(t),typeof this._value_=="object")for(const i in this._value_){let s=i;const e=this._value_[i];t.propertyMap&&t.propertyMap[i]&&(s=t.propertyMap[i]),typeof t[i]<"u"&&t[i]!==e&&(t[s]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const i in this._value_){const s=this._value_[i];t[i]!==s&&(t[i]=s)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}set(t,i=!1){if(this._value_===t||Wt(this._value_)&&Wt(t)&&t&&ws(this._value_)&&ws(t)&&this._value_.__value===t.__value||!Wt(t)&&t===this._value_.__value)return!0;this._value_=Wt(t)?t:{__value:t},this._cachedGet_=void 0;const s=ws(this._value_);if(this._parentKey_&&this.parent){const e=ws(this._value_)?this._value_.__value:this._value_;if(this.parent?.get()==null&&this.parent?.get()==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:e});else{const o=[];o[Number(this._parentKey_)]=e,this.parent.set(o)}else this.parent._value_[this._parentKey_]=e}if(s)return this._proxies_.forEach((e,o)=>{o!="_parent_"&&(e.set(null),this._publishDynamicFilling_(o,null))}),this._publishAssignement_(i),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const e in this._value_)this._value_[e]===void 0&&delete this._value_[e];if(this._proxies_.forEach((e,o)=>{const n=this._value_[o];o!="_parent_"&&n===void 0&&n!==null&&isNaN(Number(o))&&(e.set(null),this._publishDynamicFilling_(o,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),Wt(this._value_))for(const e in this._value_){const o=t[e],l=Wt(o)?o:{__value:o};if(!this._proxies_.has(e)){this._publishDynamicFilling_(e,o);continue}this._proxies_.get(e)?.set(l,!0),this._publishDynamicFilling_(e,o)}return!0}get(){if(k.modifiedCollectore.length>0&&k.modifiedCollectore[0].add(this),this._cachedGet_!==void 0)return this._cachedGet_;if(Object.prototype.hasOwnProperty.call(this._value_,"__value")){const t=this._value_.__value;return this._cachedGet_=t??null}return this._cachedGet_=this._value_!=null?this._value_:null}get $tag(){return this._instanceCounter_||(oe.instancesCounter++,this._instanceCounter_=oe.instancesCounter),oe.instances.set(this._instanceCounter_,this),"<"+Ce+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+Ce+"-publisher-proxy>"}};oe.instances=new Map,oe.instancesCounter=0;let Ve=oe;const I=class I{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],I.instance!=null)throw"Singleton / use getInstance";I.instance=this,this.isLocalStrorageReady=this.cleanStorageData()}invalidateAll(){this.publishers.forEach(t=>{t._invalidate_on_page_show_&&t.invalidate()})}async cleanStorageData(){return new Promise(t=>{(async()=>{try{let s=localStorage.getItem(ti),e=null;if(s&&(e=await this.decompress(s,"gzip")),e)try{this.localStorageData=JSON.parse(e)}catch{this.localStorageData={}}else s=await this.compress("{}","gzip"),localStorage.setItem(ti,s),this.localStorageData={};const o=1e3*60*60*12;for(const n in this.localStorageData){const l=this.localStorageData[n],c=new Date().getTime()-(l.expirationDelayMs||o);l.lastModifiationMS<c&&delete this.localStorageData[n]}t(!0)}catch{window.requestAnimationFrame(()=>{t(!1)}),console.warn("no publisher cache in this browser")}})()})}static getInstance(t){if(t){const i=I.instances.get(t);return i||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new I)}return I.instance==null?new I:I.instance}static registerInstance(t,i){I.instances.has(t)&&console.warn("PublisherManager instance already registered with id: ",t),I.instances.set(t,i)}static get(t,i){return I.getInstance().get(t,i)}static collectModifiedPublisher(){I.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return I.modifiedCollectore.shift()}static delete(t){return t?I.getInstance().delete(t):!1}async setLocalData(t,i){await this.isLocalStrorageReady,t.set(this.localStorageData[i+"¤lang_"+q.getLanguage()]?.data||t.get())}get(t,i){const s=i?.localStorageMode==="enabled",e=i?.invalidateOnPageShow===!0;if(!this.publishers.has(t)){const l=ei({});this.set(t,l)}const o=this.publishers.get(t);return s&&this.initialisedData.indexOf(t)===-1&&(i?.expirationDelayMs&&(o._expiration_delay_=i.expirationDelayMs),o._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(o,t)),e&&(o._invalidate_on_page_show_=e),this.publishers.get(t)}set(t,i){this.publishers.set(t,i)}delete(t){return this.publishers.has(t)?(this.publishers.delete(t),!0):!1}async saveToLocalStorage(t=0){if(!(t!==I.saveId&&t%10!=0))try{if(!I.changed||I.saving)return;I.saving=!0,I.changed=!1;const i=Array.from(this.publishers.keys());let s=!1;for(const e of i){const o=this.publishers.get(e);if(!o?._is_savable_)continue;const n=o?.get();n&&(this.localStorageData[e+"¤lang_"+q.getLanguage()]={lastModifiationMS:new Date().getTime(),expirationDelayMs:o._expiration_delay_,data:n},s=!0)}if(s){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(ti,e)}if(I.saving=!1,I.changed){I.saveId++;const e=I.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{I.saving=!1}}async compress(t,i){const s=new TextEncoder().encode(t),e=window,o=new e.CompressionStream(i),n=o.writable.getWriter();n.write(s),n.close();const l=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(l);let h="";for(let u=0;u<c.length;u++)h+=String.fromCharCode(c[u]);return btoa(h)}async decompress(t,i){const s=atob(t),o=Uint8Array.from(s,u=>u.charCodeAt(0)).buffer,n=window,l=new n.DecompressionStream(i),c=l.writable.getWriter();c.write(o),c.close();const h=await new Response(l.readable).arrayBuffer();return new TextDecoder().decode(h)}};I.buildDate="Thu Jun 04 2026 17:00:58 GMT+0200 (Central European Summer Time)",I.changed=!1,I.saving=!1,I.saveId=0,I.instance=null,I.instances=new Map,I.modifiedCollectore=[];let k=I;if(typeof window<"u"){const r=window;r[_s+"PublisherManager"]=r[_s+"PublisherManager"]||k}const wo=new Set(["invalidate","onInvalidate","offInvalidate","invalidateForm","onFormInvalidate","offFormInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","$tag","_cachedGet_","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_formInvalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishFormInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_parentKey_","_value_","_is_savable_","_expiration_delay_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_","_invalidate_on_page_show_"]);function xo(r,t){return{get:function(i,s){if(typeof s=="string"&&wo.has(s))return r[s];if(s==Symbol.toPrimitive)return()=>t().get();if(!r._proxies_.has(s)){const e=r._value_[s],o=ei(Wt(e)?e:{__value:e},r,s);o._proxies_.set("_parent_",t()),r._proxies_.set(s,o)}return r._proxies_.get(s)},set:function(i,s,e){if(s=="_value_")return r._value_=e,!0;if(s=="_cachedGet_")return r._cachedGet_=e,!0;if(s=="_assignmentId_")return r._assignmentId_=e,!0;if(s=="_is_savable_")return r._is_savable_=e,!0;if(s=="_expiration_delay_")return r._expiration_delay_=e,!0;if(s=="_invalidate_on_page_show_")return r._invalidate_on_page_show_=e,!0;if(s=="_instanceCounter_")return r._instanceCounter_=e,!0;if(!r._proxies_.has(s)){const n=ei({},r,s);n._proxies_.set("_parent_",t()),r._proxies_.set(s,n)}return r._value_[s]!==e&&(r._value_[s]=e,r._publishDynamicFilling_(s,e),r._proxies_.get(s)?.set(Wt(e)?e:{__value:e})),!0},deleteProperty:function(i,s){return r._publishDynamicFilling_(s,null),r._proxies_.get(s)?.set(null),delete r._value_[s]},has:function(i,s){return s in r._value_&&s!="_lockInternalMutationPublishing_"},defineProperty:function(i,s,e){return e&&"value"in e&&(r._value_[s]=e.value),!0},getOwnPropertyDescriptor:function(i,s){return{enumerable:!0,configurable:!0}},ownKeys:function(i){return r._value_.__value?Object.keys(r._value_.__value):Object.keys(r._value_)}}}function ei(r,t=null,i){const s=new Ve(r,t,i);let e=null;const o=xo(s,()=>e);return e=new Proxy(s,o),e}class Po extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){this.publisherId=this.getAttribute("publisher")||"",this.publisher=Ve.instances.get(parseInt(this.publisherId)),this.publisher?.onAssign(this.onAssign)}disconnectedCallback(){this.publisher?.offAssign(this.onAssign)}}try{customElements.define(Ce+"-publisher-proxy",Po)}catch{}const xs=r=>{if(typeof r=="function"){const t=r;return k.collectModifiedPublisher(),t(),k.getModifiedPublishers()}if(typeof r=="string"){const t=r.split("."),i=t.shift()||"";let s=k.get(i);s=tt.traverse(s,t);const e=new Set;return e.add(s),e}return new Set([r])};function Co(r){const t=Js(r);return xs(t).values().next().value?.get()}function tr(r,t){const i=Js(r);return xs(i).values().next().value}function $o(r,t){return tr(r)}function Ps(r,t){return tr(r)}function So(r,t){const i=Js(r);xs(i).values().next().value?.set(t)}window.addEventListener("pageshow",r=>{r.persisted&&k.getInstance().invalidateAll()});let Cs=(N=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(N.observedElements.keys()).forEach(t=>N.unObserve(t)))}static observe(t){if(!t||!N.enabled||N.observedElements.has(t))return;const i=new MutationObserver(N.onMutation),s={};s.childList=!0,s.subtree=!0,s.attributes=!0,s.attributeFilter=["data-bind"],i.observe(t,s),t.querySelectorAll("[data-bind]").forEach(e=>N.addPublisherListeners(e)),N.observedElements.set(t,i)}static unObserve(t){if(!t)return;const i=this.observedElements.get(t);i&&(i.disconnect(),t.querySelectorAll("[data-bind]").forEach(s=>N.removePublisherListeners(s)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&N.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>N.addPublisherListeners(i)):t.childNodes.forEach(i=>N.onAdded(i))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&N.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>N.removePublisherListeners(i)):t.childNodes.forEach(i=>N.onRemoved(i))}static onMutation(t){for(const i of t)switch(i.type){case"attributes":N.addPublisherListeners(i.target);break;case"childList":i.addedNodes.forEach(s=>{N.onAdded(s)}),i.removedNodes.forEach(s=>{N.onRemoved(s)});break}}static removePublisherListeners(t){const i=N.publisherListeners.get(t);i&&(N.publisherListeners.delete(t),i.forEach(s=>{s.publisher?.offAssign(s.onAssign)}))}static getVariablesDescriptor(t){let i=t.match(/(\$(?:\w+\\?\.?)+)/g);return i?i=i.map(s=>s.replace("$","")):i=[t],i=i.filter(s=>s.length>0),{expression:t.replace("\\",""),variables:i.map(s=>s.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(t){return"attributes"in t?Array.from(t.attributes).filter(i=>i.name.indexOf("::")==0).map(i=>({propertyToUpdate:i.name.substring(2).replace(/-((html)|\w)/g,e=>e.substring(1).toUpperCase()),bindedVariablesDescriptor:N.getVariablesDescriptor(i.value)})):[]}static getSubPublisher(t,i){if(!i)return t;for(const s of i)if(s!="_self_"){if(!t)return null;t=t[s]}return t}static addPublisherListeners(t){N.removePublisherListeners(t);const i=q.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!i)return;const s=k.getInstance().get(i),e=N.getDataBindItems(t),o=[];e.forEach(n=>{const l=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of l.variables){const u=h;let d=s;d=N.getSubPublisher(s,u);const m=t,y={publisher:d,onAssign:()=>{const p=l.variables.map(D=>N.getSubPublisher(s,D)?.get());let v=l.expression,_=!1;if(p.length==1&&l.variables[0].join(".")==v.substring(1)){let D=p[0];D===null&&(D=""),m[c]=D;return}for(let D=0;D<p.length;D++){let f=p[D];const b=l.variables[D];f===null&&(_=!0,f=void 0),v=v.replace("$"+b.join("."),f)}if(v.indexOf("|")!=-1){const D=v.indexOf("|");if(D==0)v=ys.js(v.substring(1));else{const f=v.substring(0,D),b=v.substring(D+1),w=ys[f];v=_?"":w?w(b):v}}else v=_?"":v;m[c]=v}};d?.onAssign(y.onAssign),o.push(y)}}),N.publisherListeners.set(t,o)}},N.observedElements=new Map,N.enabled=!0,N.publisherListeners=new Map,N);Cs.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=Cs);/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -1269,7 +1269,7 @@
1269
1269
  dataProvider="${o}"
1270
1270
  >
1271
1271
  ${Et(s)}
1272
- </div>`}return Et(s)})}`}};Rs([a()],os.prototype,"state",2),Rs([a({type:Boolean,reflect:!0})],os.prototype,"inverted",2),Rs([a({type:Object})],os.prototype,"states",2),os=Rs([P(Ka)],os);var Ya=Object.getOwnPropertyDescriptor,Za=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ya(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Ga="sonic-scope";let zr=class extends x{createRenderRoot(){return this}render(){return g`<slot></slot>`}};zr=Za([P(Ga)],zr);function Xa(r){this.__beforeConnectedCallbackCalls__||(this.__beforeConnectedCallbackCalls__=new Set),this.__beforeConnectedCallbackCalls__.add(r)}function Qa(r){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(r)}function Ja(r){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(r)}function Ne(r){if(r.__is__setSubscribable__)return;r.__is__setSubscribable__=!0,r.__onBeforeConnected__=Xa,r.__onConnected__=Qa,r.__onDisconnected__=Ja;const t=r.connectedCallback;r.connectedCallback=function(){this.__beforeConnectedCallbackCalls__&&this.__beforeConnectedCallbackCalls__.forEach(s=>s(this)),t?.call(this),this.__connectedCallbackCalls__&&this.__connectedCallbackCalls__.forEach(s=>s(this))};const i=r.disconnectedCallback;r.disconnectedCallback=function(){i?.call(this),this.__disconnectedCallbackCalls__&&this.__disconnectedCallbackCalls__.forEach(s=>s(this))}}function tl(r){return r.trim().replace(/^this\./,"")}function Si(r,t){if(!t)return;const i=t.split(".").filter(Boolean);if(i.length===0)return;let s=r;for(const e of i){if(s==null||typeof s!="object")return;s=s[e]}return s}function fe(r,t){let i=!1;const s=(n,l)=>{const c=tl(l),h=Si(r,c);return h==null?(i=!0,""):`${h}`},e=t.replace(/\$\{([^}]+)\}/g,s).replace(/\{\$([^}]+)\}/g,s).trim();if(i||!e.length)return{ready:!1,path:null};const o=e.split(".").filter(Boolean);return o.length===0||!o[0]?{ready:!1,path:null}:{ready:!0,path:e}}function be(r){const t=[/\$\{([^}]+)\}/g,/\{\$([^}]+)\}/g],i=new Set;for(const s of t){let e;for(;(e=s.exec(r))!==null;){const o=(e[1]||"").trim().replace(/^this\./,"");if(!o)continue;const[n]=o.split(".");n&&i.add(n)}}return Array.from(i)}function Ur(r){return typeof r=="object"&&r!==null&&"path"in r&&typeof r.path=="string"}const ns=new WeakMap,as=new Set;let Ie=null;const el=8;function sl(r){let t=ns.get(r);return t||(t=new Map,ns.set(r,t)),t}function il(r,t){const i=new Set;for(const[s,e]of t){const o=Si(r,s);Object.is(e.lastValue,o)||(e.lastValue=o,e.onChangeHandlers.forEach(n=>i.add(n)))}return i}function rl(){Ie=null;let r=0,t=!0;for(;t&&r<el;){t=!1,r+=1;for(const i of as){const s=ns.get(i);if(!s||s.size===0)continue;const e=il(i,s);e.size!==0&&(t=!0,e.forEach(o=>o()))}}t&&console.warn("[concorde] dynamic property watch: limite de passes atteinte, boucle infinie probable"),as.size>0&&Vr()}function Vr(){Ie===null&&(Ie=requestAnimationFrame(rl))}function ol(){as.size===0&&Ie!==null&&(cancelAnimationFrame(Ie),Ie=null)}function Me(r,t,i,s,e){const o=String(s),n=sl(i);let l=n.get(o);return l||(l={lastValue:Si(i,o),onChangeHandlers:new Set},n.set(o,l)),l.onChangeHandlers.add(e),as.add(i),Vr(),()=>{const c=ns.get(i);if(!c)return;const h=c.get(o);h&&(h.onChangeHandlers.delete(e),h.onChangeHandlers.size===0&&c.delete(o),c.size===0&&(ns.delete(i),as.delete(i),ol()))}}const zs={watcherStore:Symbol("__bindDynamicWatcherStore__"),hooked:Symbol("__bindDynamicWillUpdateHooked__")},Br={watcherStore:"__publishDynamicWatcherStore__",hooked:"__publishDynamicWillUpdateHooked__"},Us={watcherStore:"__getDynamicWatcherStore__",hooked:"__getDynamicWillUpdateHooked__"},Hr={watcherStore:Symbol("__onAssignDynamicWatcherStore__"),hooked:Symbol("__onAssignDynamicWillUpdateHooked__")};function ls(r){const t=r.split(".").filter(e=>e.length>0);if(t.length===0)return null;const i=t.shift()||"";if(!i)return null;let s=k.get(i);return s?(s=Xe.traverse(s,t),s):null}function nl(r,t){const i=t?.reflect??!1,s=be(r),e=s.length>0;return function(o,n){if(!o)return;Ne(o);const l=`__bind_state_${n}`,c=`__bind_${n}_publisher__`,h=i?`__bind_${n}_updating_from_publisher__`:null;if(i){const u=Object.getOwnPropertyDescriptor(o,n),d=`__bind_${n}_value__`,m=`__bind_${n}_updating_from_publisher__`,y=u&&!u.get&&!u.set?u.value:void 0;Object.defineProperty(o,n,{get(){return u?.get?u.get.call(this):(!Object.prototype.hasOwnProperty.call(this,d)&&y!==void 0&&(this[d]=y),this[d])},set(p){u?.set?u.set.call(this,p):this[d]=p,!this[m]&&this[c]&&this[c].set(p)},enumerable:u?.enumerable??!0,configurable:u?.configurable??!0})}o.__onConnected__(u=>{const d=u[l]||(u[l]={cleanupWatchers:[],unsubscribePublisher:null,currentPath:null});d.unsubscribePublisher&&(d.unsubscribePublisher(),d.unsubscribePublisher=null),d.cleanupWatchers.forEach(p=>p()),d.cleanupWatchers=[],d.currentPath=null;const m=p=>{if(!p){d.unsubscribePublisher&&(d.unsubscribePublisher(),d.unsubscribePublisher=null),d.currentPath=null,u[c]=null;return}if(p===d.currentPath)return;d.unsubscribePublisher&&(d.unsubscribePublisher(),d.unsubscribePublisher=null);const v=ls(p);if(!v){d.currentPath=null,u[c]=null;return}const _=D=>{i&&h&&(u[h]=!0),u[n]=D,i&&h&&(u[h]=!1)};v.onAssign(_),d.unsubscribePublisher=()=>{v.offAssign(_),u[c]===v&&(u[c]=null)},d.currentPath=p,u[c]=v},y=()=>{if(e){const p=fe(u,r);if(!p.ready){m(null);return}m(p.path);return}m(r)};if(e)for(const p of s){const v=Me(zs.watcherStore,zs.hooked,u,p,()=>y());d.cleanupWatchers.push(v)}y()}),o.__onDisconnected__(u=>{const d=u[l];d&&(d.unsubscribePublisher&&(d.unsubscribePublisher(),d.unsubscribePublisher=null),d.cleanupWatchers.forEach(m=>m()),d.cleanupWatchers=[],d.currentPath=null,u[c]=null)})}}function qr(r,t){const i=Ur(r)?r.path:r;return nl(i,t)}function Wr(r){const t=r.path,i=be(t);return function(s,e){Ne(s);const o=`__publish_${e}_publisher__`,n=`__publish_${e}_value__`,l=Object.getOwnPropertyDescriptor(s,e),c=l&&!l.get&&!l.set?l.value:void 0;Object.defineProperty(s,e,{get(){return l?.get?l.get.call(this):(!Object.prototype.hasOwnProperty.call(this,n)&&c!==void 0&&(this[n]=c),this[n])},set(h){l?.set?l.set.call(this,h):this[n]=h;const u=this[o];u&&u.set(h)},enumerable:l?.enumerable??!0,configurable:l?.configurable??!0}),s.__onConnected__(h=>{const u=h,d=`__publish_state_${e}`,m=u[d]||(u[d]={cleanupWatchers:[]}),y=()=>{let p;if(i.length){const _=fe(h,t);p=_.ready?_.path:null}else p=t;const v=p?ls(p):void 0;if(u[o]=v??null,v&&e in h){const _=u[e];_!==void 0&&v.set(_)}};if(m.cleanupWatchers.forEach(p=>p()),m.cleanupWatchers=[],i.length)for(const p of i)m.cleanupWatchers.push(Me(Br.watcherStore,Br.hooked,u,p,y));y()}),s.__onDisconnected__(h=>{const u=h,d=`__publish_state_${e}`,m=u[d];m?.cleanupWatchers&&m.cleanupWatchers.forEach(y=>y()),u[o]=void 0})}}function Kr(r){return qr(r)}const al={nullish:r=>r==null,emptyString:r=>r==="",emptyObject:r=>typeof r=="object"&&r!==null&&!Array.isArray(r)&&Object.keys(r).length===0,emptyArray:r=>Array.isArray(r)&&r.length===0};function ll(r,t){return t.some(i=>al[i](r))}function cl(r,t,i){if(!i.dispatchWhenUndefined&&r.slice(0,t).filter(e=>e!=null).length!==t)return!1;if(i.skip&&i.skip.length>0){for(let s=0;s<t;s++)if(ll(r[s],i.skip))return!1}return!0}function hl(...r){return Yr({},r)}function Yr(r,t){const i=t.map(s=>{const e=be(s);return{originalPath:s,dynamicDependencies:e,isDynamic:e.length>0}});return function(s,e,o){Ne(s);const n=`__onAssign_state_${e}__`;let l;s.__onConnected__(c=>{const h=c[n]||(c[n]={cleanupWatchers:[],configurations:[]});h.cleanupWatchers.forEach(p=>p()),h.cleanupWatchers=[],h.configurations.forEach(p=>{p.unsubscribePublisher&&p.unsubscribePublisher()}),h.configurations=[];const u=[],d=[];for(let p=0;p<t.length;p++){const v=i[p],_=new Set,D=f=>{u[p]=f,cl(u,t.length,r)&&_.forEach(b=>b(...u))};d.push({publisher:null,onAssign:D,callbacks:_,unsubscribePublisher:null,pathConfig:v,index:p})}const m=(p,v)=>{if(p.unsubscribePublisher&&(p.unsubscribePublisher(),p.unsubscribePublisher=null),u[p.index]=null,p.publisher=null,!v)return;const _=ls(v);_&&(_.onAssign(p.onAssign),p.unsubscribePublisher=()=>{_.offAssign(p.onAssign),p.publisher===_&&(p.publisher=null)},p.publisher=_)},y=()=>{for(const p of d)if(p.pathConfig.isDynamic){const v=fe(c,p.pathConfig.originalPath);if(!v.ready){m(p,null);continue}m(p,v.path)}else m(p,p.pathConfig.originalPath)};for(const p of d)if(p.pathConfig.isDynamic)for(const v of p.pathConfig.dynamicDependencies){const _=Me(Hr.watcherStore,Hr.hooked,c,v,()=>y());h.cleanupWatchers.push(_)}l=o.value.bind(c);for(const p of d)p.callbacks.add(l);y(),h.configurations=d}),s.__onDisconnected__(c=>{const h=c[n];h&&(h.cleanupWatchers.forEach(u=>u()),h.cleanupWatchers=[],h.configurations.forEach(u=>{u.unsubscribePublisher&&u.unsubscribePublisher(),u.callbacks.delete(l)}),h.configurations=[])})}}function dl(r){return Object.prototype.toString.call(r)==="[object DataProviderKey]"}function ul(...r){const t=r[r.length-1],i=t!==void 0&&!dl(t),s=i?t:{},o=(i?r.slice(0,-1):r).map(n=>n.path);return Yr({dispatchWhenUndefined:!s.waitForAllDefined,skip:s.skip},o)}function pl(){return function(r,t,i){let s=0;const e=i.value,o=r.constructor.prototype.disconnectedCallback;r.constructor.prototype.disconnectedCallback=function(){o?.apply(this),this.__removeAutoSubscribe__()};const n=r.connectedCallback;r.connectedCallback=function(){n?.call(this),this[t]()},i.value=function(...l){let c=new Set;const h=()=>{s++;const d=s;window.queueMicrotask(()=>{d===s&&this[t]()})};c.forEach(d=>{d.offAssign(h)}),k.collectModifiedPublisher();const u=e.apply(this,l);return c=k.getModifiedPublishers()||new Set,c.forEach(d=>{d.onAssign(h,!1)}),this.__removeAutoSubscribe__=()=>{c.forEach(d=>{d.offAssign(h)})},u}}}function fl(r){return function(t){Ne(t);for(const i of r){const s=i.split(".");if(s.length===0)continue;const e=s.shift()||"";let o=k.get(e);o=Xe.traverse(o,s),t.__onConnected__(n=>{o.startTemplateFilling(n)}),t.__onDisconnected__(()=>{})}}}function bl(r){return function(t,i){t&&(Ne(t),t.__onBeforeConnected__(s=>{const e=q.getAncestorAttributeValue(s,r);e!==null&&(s[i]=e)}))}}function Zr(r){return r instanceof HTMLElement||r instanceof ShadowRoot?r:null}function ml(r){if(!r||typeof r.get!="function")return null;const t=r.get();return!t||typeof t!="object"||!("serviceURL"in t)?null:t}function Gr(r){const t=Zr(r);return t?q.getApiConfiguration(t):null}function Xr(r){return typeof r?.serviceURL=="string"&&r.serviceURL.length>0}const gl=["serviceURL","serviceurl","token","credentials","tokenProvider","tokenprovider","userName","username","password","eventsApiToken","eventsapitoken"];function vl(r){return r instanceof HTMLElement&&typeof r.updateComplete<"u"}function yl(r,t){if(vl(r)){let s=!1;return r.updateComplete.then(()=>{s||t()}),()=>{s=!0}}const i=requestAnimationFrame(()=>t());return()=>cancelAnimationFrame(i)}function _l(r,t){const i=Zr(r);if(!i)return()=>{};let s=!1;const e=()=>{s||Xr(Gr(r))&&(s=!0,t())};if(e(),s)return()=>{};const o=[],n=requestAnimationFrame(()=>e());o.push(()=>cancelAnimationFrame(n)),queueMicrotask(()=>e());const l=new MutationObserver(()=>e());let c=i;for(;c;)c instanceof Element&&l.observe(c,{attributes:!0,attributeFilter:[...gl]}),c=c.parentNode||c.host;return o.push(()=>l.disconnect()),()=>{s=!0,o.forEach(h=>h())}}function Qr(r){r.configPublisher&&r.configMutationHandler&&r.configPublisher.offInternalMutation(r.configMutationHandler),r.configPublisher=null,r.configMutationHandler=null}function Jr(r,t){const i=r.path,s=t?.path,e=be(i),o=s?be(s):[],n=[...new Set([...e,...o])],l=e.length>0,c=!!s;return function(h,u){if(!h)return;Ne(h);const d=`__get_state_${u}`;h.__onConnected__(m=>{const y=m;let p=y[d];p||(p={cleanupWatchers:[],requestGeneration:0,configPublisher:null,configMutationHandler:null,scopeWatchCleanup:null},y[d]=p),p.cleanupWatchers.forEach(D=>D()),p.cleanupWatchers=[],p.requestGeneration++;const v=()=>{const D=l?fe(m,i):{ready:!0,path:i};if(!D.ready||!D.path){y[u]=void 0;return}let f=null;if(c&&s){const S=fe(m,s);if(!S.ready||!S.path){y[u]=void 0;return}const O=ls(S.path);f=ml(O)}else f=Gr(m);if(!Xr(f)){if(!c&&!p.scopeWatchCleanup){const S=_l(m,v);p.scopeWatchCleanup=S,p.cleanupWatchers.push(()=>{S(),p.scopeWatchCleanup=null})}return}const b=++p.requestGeneration;new de(f).getDetailed(D.path).then(S=>{b===p.requestGeneration&&(y[u]=S)})},_=()=>{if(!c||!s)return;Qr(p);const D=fe(m,s);if(!D.ready||!D.path){y[u]=void 0;return}const f=ls(D.path);if(!f){y[u]=void 0;return}const b=()=>{v()};f.onInternalMutation(b),p.configPublisher=f,p.configMutationHandler=b};if(c){for(const D of n){const f=Me(Us.watcherStore,Us.hooked,m,D,()=>_());p.cleanupWatchers.push(f)}_()}else{const D=()=>{if(l)for(const f of e){const b=Me(Us.watcherStore,Us.hooked,m,f,()=>v());p.cleanupWatchers.push(b)}v()};p.cleanupWatchers.push(yl(m,D))}}),h.__onDisconnected__(m=>{const y=m,p=y[d];p&&(Qr(p),p.cleanupWatchers.forEach(v=>v()),p.cleanupWatchers=[],p.requestGeneration++,y[u]=void 0)})}}const wl=Wr,xl=Kr,Pl=Jr;window["concorde-decorator-subscriber"]=window["concorde-decorator-subscriber"]||{},window["concorde-decorator-subscriber"]={bind:qr,publish:Wr,subscribe:Kr,onAssing:hl,handle:ul,ancestorAttribute:bl,autoSubscribe:pl,autoFill:fl,get:Jr};var Cl=Object.defineProperty,$l=Object.getOwnPropertyDescriptor,Vs=(r,t,i,s)=>{for(var e=s>1?void 0:s?$l(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Cl(t,i,e),e};const to=new Ts("communes?limit=$limit&fields=nom,code"),eo=new Ue(to.path),Sl="sonic-example";let cs=class extends x{constructor(){super(...arguments),this.limit=5}render(){return g` <span part="api-get-demo">
1272
+ </div>`}return Et(s)})}`}};Rs([a()],os.prototype,"state",2),Rs([a({type:Boolean,reflect:!0})],os.prototype,"inverted",2),Rs([a({type:Object})],os.prototype,"states",2),os=Rs([P(Ka)],os);var Ya=Object.getOwnPropertyDescriptor,Za=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ya(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Ga="sonic-scope";let zr=class extends x{createRenderRoot(){return this}render(){return g`<slot></slot>`}};zr=Za([P(Ga)],zr);function Xa(r){this.__beforeConnectedCallbackCalls__||(this.__beforeConnectedCallbackCalls__=new Set),this.__beforeConnectedCallbackCalls__.add(r)}function Qa(r){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(r)}function Ja(r){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(r)}function Ne(r){if(r.__is__setSubscribable__)return;r.__is__setSubscribable__=!0,r.__onBeforeConnected__=Xa,r.__onConnected__=Qa,r.__onDisconnected__=Ja;const t=r.connectedCallback;r.connectedCallback=function(){this.__beforeConnectedCallbackCalls__&&this.__beforeConnectedCallbackCalls__.forEach(s=>s(this)),t?.call(this),this.__connectedCallbackCalls__&&this.__connectedCallbackCalls__.forEach(s=>s(this))};const i=r.disconnectedCallback;r.disconnectedCallback=function(){i?.call(this),this.__disconnectedCallbackCalls__&&this.__disconnectedCallbackCalls__.forEach(s=>s(this))}}function tl(r){return r.trim().replace(/^this\./,"")}function Si(r,t){if(!t)return;const i=t.split(".").filter(Boolean);if(i.length===0)return;let s=r;for(const e of i){if(s==null||typeof s!="object")return;s=s[e]}return s}function fe(r,t){let i=!1;const s=(n,l)=>{const c=tl(l),h=Si(r,c);return h==null?(i=!0,""):`${h}`},e=t.replace(/\$\{([^}]+)\}/g,s).replace(/\{\$([^}]+)\}/g,s).trim();if(i||!e.length)return{ready:!1,path:null};const o=e.split(".").filter(Boolean);return o.length===0||!o[0]?{ready:!1,path:null}:{ready:!0,path:e}}function be(r){const t=[/\$\{([^}]+)\}/g,/\{\$([^}]+)\}/g],i=new Set;for(const s of t){let e;for(;(e=s.exec(r))!==null;){const o=(e[1]||"").trim().replace(/^this\./,"");if(!o)continue;const[n]=o.split(".");n&&i.add(n)}}return Array.from(i)}function Ur(r){return typeof r=="object"&&r!==null&&"path"in r&&typeof r.path=="string"}const ns=new WeakMap,as=new Set;let Ie=null;const el=8;function sl(r){let t=ns.get(r);return t||(t=new Map,ns.set(r,t)),t}function il(r,t){const i=new Set;for(const[s,e]of t){const o=Si(r,s);Object.is(e.lastValue,o)||(e.lastValue=o,e.onChangeHandlers.forEach(n=>i.add(n)))}return i}function rl(){Ie=null;let r=0,t=!0;for(;t&&r<el;){t=!1,r+=1;for(const i of as){const s=ns.get(i);if(!s||s.size===0)continue;const e=il(i,s);e.size!==0&&(t=!0,e.forEach(o=>o()))}}t&&console.warn("[concorde] dynamic property watch: limite de passes atteinte, boucle infinie probable"),as.size>0&&Vr()}function Vr(){Ie===null&&(Ie=requestAnimationFrame(rl))}function ol(){as.size===0&&Ie!==null&&(cancelAnimationFrame(Ie),Ie=null)}function Me(r,t,i,s,e){const o=String(s),n=sl(i);let l=n.get(o);return l||(l={lastValue:Si(i,o),onChangeHandlers:new Set},n.set(o,l)),l.onChangeHandlers.add(e),as.add(i),Vr(),()=>{const c=ns.get(i);if(!c)return;const h=c.get(o);h&&(h.onChangeHandlers.delete(e),h.onChangeHandlers.size===0&&c.delete(o),c.size===0&&(ns.delete(i),as.delete(i),ol()))}}const zs={watcherStore:Symbol("__bindDynamicWatcherStore__"),hooked:Symbol("__bindDynamicWillUpdateHooked__")},Br={watcherStore:"__publishDynamicWatcherStore__",hooked:"__publishDynamicWillUpdateHooked__"},Us={watcherStore:"__getDynamicWatcherStore__",hooked:"__getDynamicWillUpdateHooked__"},Hr={watcherStore:Symbol("__onAssignDynamicWatcherStore__"),hooked:Symbol("__onAssignDynamicWillUpdateHooked__")};function ls(r){const t=r.split(".").filter(e=>e.length>0);if(t.length===0)return null;const i=t.shift()||"";if(!i)return null;let s=k.get(i);return s?(s=Xe.traverse(s,t),s):null}function nl(r,t){const i=t?.reflect??!1,s=be(r),e=s.length>0;return function(o,n){if(!o)return;Ne(o);const l=`__bind_state_${n}`,c=`__bind_${n}_publisher__`,h=i?`__bind_${n}_updating_from_publisher__`:null;if(i){const u=Object.getOwnPropertyDescriptor(o,n),d=`__bind_${n}_value__`,m=`__bind_${n}_updating_from_publisher__`,y=u&&!u.get&&!u.set?u.value:void 0;Object.defineProperty(o,n,{get(){return u?.get?u.get.call(this):(!Object.prototype.hasOwnProperty.call(this,d)&&y!==void 0&&(this[d]=y),this[d])},set(p){u?.set?u.set.call(this,p):this[d]=p,!this[m]&&this[c]&&this[c].set(p)},enumerable:u?.enumerable??!0,configurable:u?.configurable??!0})}o.__onConnected__(u=>{const d=u[l]||(u[l]={cleanupWatchers:[],unsubscribePublisher:null,currentPath:null});d.unsubscribePublisher&&(d.unsubscribePublisher(),d.unsubscribePublisher=null),d.cleanupWatchers.forEach(p=>p()),d.cleanupWatchers=[],d.currentPath=null;const m=p=>{if(!p){d.unsubscribePublisher&&(d.unsubscribePublisher(),d.unsubscribePublisher=null),d.currentPath=null,u[c]=null;return}if(p===d.currentPath)return;d.unsubscribePublisher&&(d.unsubscribePublisher(),d.unsubscribePublisher=null);const v=ls(p);if(!v){d.currentPath=null,u[c]=null;return}const _=D=>{i&&h&&(u[h]=!0),u[n]=D,i&&h&&(u[h]=!1)};v.onAssign(_),d.unsubscribePublisher=()=>{v.offAssign(_),u[c]===v&&(u[c]=null)},d.currentPath=p,u[c]=v},y=()=>{if(e){const p=fe(u,r);if(!p.ready){m(null);return}m(p.path);return}m(r)};if(e)for(const p of s){const v=Me(zs.watcherStore,zs.hooked,u,p,()=>y());d.cleanupWatchers.push(v)}y()}),o.__onDisconnected__(u=>{const d=u[l];d&&(d.unsubscribePublisher&&(d.unsubscribePublisher(),d.unsubscribePublisher=null),d.cleanupWatchers.forEach(m=>m()),d.cleanupWatchers=[],d.currentPath=null,u[c]=null)})}}function qr(r,t){const i=Ur(r)?r.path:r;return nl(i,t)}function Wr(r){const t=r.path,i=be(t);return function(s,e){Ne(s);const o=`__publish_${e}_publisher__`,n=`__publish_${e}_value__`,l=Object.getOwnPropertyDescriptor(s,e),c=l&&!l.get&&!l.set?l.value:void 0;Object.defineProperty(s,e,{get(){return l?.get?l.get.call(this):(!Object.prototype.hasOwnProperty.call(this,n)&&c!==void 0&&(this[n]=c),this[n])},set(h){l?.set?l.set.call(this,h):this[n]=h;const u=this[o];u&&u.set(h)},enumerable:l?.enumerable??!0,configurable:l?.configurable??!0}),s.__onConnected__(h=>{const u=h,d=`__publish_state_${e}`,m=u[d]||(u[d]={cleanupWatchers:[]}),y=()=>{let p;if(i.length){const _=fe(h,t);p=_.ready?_.path:null}else p=t;const v=p?ls(p):void 0;if(u[o]=v??null,v&&e in h){const _=u[e];_!==void 0&&v.set(_)}};if(m.cleanupWatchers.forEach(p=>p()),m.cleanupWatchers=[],i.length)for(const p of i)m.cleanupWatchers.push(Me(Br.watcherStore,Br.hooked,u,p,y));y()}),s.__onDisconnected__(h=>{const u=h,d=`__publish_state_${e}`,m=u[d];m?.cleanupWatchers&&m.cleanupWatchers.forEach(y=>y()),u[o]=void 0})}}function Kr(r){return qr(r)}const al={nullish:r=>r==null,emptyString:r=>r==="",emptyObject:r=>typeof r=="object"&&r!==null&&!Array.isArray(r)&&Object.keys(r).length===0,emptyArray:r=>Array.isArray(r)&&r.length===0};function ll(r,t){return t.some(i=>al[i](r))}function cl(r,t,i){if(!i.dispatchWhenUndefined&&r.slice(0,t).filter(e=>e!=null).length!==t)return!1;if(i.skip&&i.skip.length>0){for(let s=0;s<t;s++)if(ll(r[s],i.skip))return!1}return!0}function hl(...r){return Yr({},r)}function Yr(r,t){const i=t.map(s=>{const e=be(s);return{originalPath:s,dynamicDependencies:e,isDynamic:e.length>0}});return function(s,e,o){Ne(s);const n=`__onAssign_state_${e}__`;let l;s.__onConnected__(c=>{const h=c[n]||(c[n]={cleanupWatchers:[],configurations:[]});h.cleanupWatchers.forEach(p=>p()),h.cleanupWatchers=[],h.configurations.forEach(p=>{p.unsubscribePublisher&&p.unsubscribePublisher()}),h.configurations=[];const u=[],d=[];for(let p=0;p<t.length;p++){const v=i[p],_=new Set,D=f=>{u[p]=f,cl(u,t.length,r)&&_.forEach(b=>b(...u))};d.push({publisher:null,onAssign:D,callbacks:_,unsubscribePublisher:null,pathConfig:v,index:p})}const m=(p,v)=>{if(p.unsubscribePublisher&&(p.unsubscribePublisher(),p.unsubscribePublisher=null),u[p.index]=null,p.publisher=null,!v)return;const _=ls(v);_&&(_.onAssign(p.onAssign),p.unsubscribePublisher=()=>{_.offAssign(p.onAssign),p.publisher===_&&(p.publisher=null)},p.publisher=_)},y=()=>{for(const p of d)if(p.pathConfig.isDynamic){const v=fe(c,p.pathConfig.originalPath);if(!v.ready){m(p,null);continue}m(p,v.path)}else m(p,p.pathConfig.originalPath)};for(const p of d)if(p.pathConfig.isDynamic)for(const v of p.pathConfig.dynamicDependencies){const _=Me(Hr.watcherStore,Hr.hooked,c,v,()=>y());h.cleanupWatchers.push(_)}l=o.value.bind(c);for(const p of d)p.callbacks.add(l);y(),h.configurations=d}),s.__onDisconnected__(c=>{const h=c[n];h&&(h.cleanupWatchers.forEach(u=>u()),h.cleanupWatchers=[],h.configurations.forEach(u=>{u.unsubscribePublisher&&u.unsubscribePublisher(),u.callbacks.delete(l)}),h.configurations=[])})}}function dl(r){return Object.prototype.toString.call(r)==="[object DataProviderKey]"}function ul(...r){const t=r[r.length-1],i=t!==void 0&&!dl(t),s=i?t:{},o=(i?r.slice(0,-1):r).map(n=>n.path);return Yr({dispatchWhenUndefined:!s.waitForAllDefined,skip:s.skip},o)}function pl(){return function(r,t,i){let s=0;const e=i.value,o=r.constructor.prototype.disconnectedCallback;r.constructor.prototype.disconnectedCallback=function(){o?.apply(this),this.__removeAutoSubscribe__()};const n=r.connectedCallback;r.connectedCallback=function(){n?.call(this),this[t]()},i.value=function(...l){let c=new Set;const h=()=>{s++;const d=s;window.queueMicrotask(()=>{d===s&&this[t]()})};c.forEach(d=>{d.offAssign(h)}),k.collectModifiedPublisher();const u=e.apply(this,l);return c=k.getModifiedPublishers()||new Set,c.forEach(d=>{d.onAssign(h,!1)}),this.__removeAutoSubscribe__=()=>{c.forEach(d=>{d.offAssign(h)})},u}}}function fl(r){return function(t){Ne(t);for(const i of r){const s=i.split(".");if(s.length===0)continue;const e=s.shift()||"";let o=k.get(e);o=Xe.traverse(o,s),t.__onConnected__(n=>{o.startTemplateFilling(n)}),t.__onDisconnected__(()=>{})}}}function bl(r){return function(t,i){t&&(Ne(t),t.__onBeforeConnected__(s=>{const e=q.getAncestorAttributeValue(s,r);e!==null&&(s[i]=e)}))}}function Zr(r){return r instanceof HTMLElement||r instanceof ShadowRoot?r:null}function ml(r){if(!r||typeof r.get!="function")return null;const t=r.get();return!t||typeof t!="object"||!("serviceURL"in t)?null:t}function Gr(r){const t=Zr(r);return t?q.getApiConfiguration(t):null}function Xr(r){return typeof r?.serviceURL=="string"&&r.serviceURL.length>0}const gl=["serviceURL","serviceurl","token","credentials","tokenProvider","tokenprovider","userName","username","password","eventsApiToken","eventsapitoken"];function vl(r){return r instanceof HTMLElement&&typeof r.updateComplete<"u"}function yl(r,t){if(vl(r)){let i=!1;return r.updateComplete.then(()=>{i||t()}),()=>{i=!0}}return t(),()=>{}}function _l(r,t){const i=Zr(r);if(!i)return()=>{};let s=!1;const e=()=>{s||Xr(Gr(r))&&(s=!0,t())};if(e(),s)return()=>{};const o=[],n=requestAnimationFrame(()=>e());o.push(()=>cancelAnimationFrame(n)),queueMicrotask(()=>e());const l=new MutationObserver(()=>e());let c=i;for(;c;)c instanceof Element&&l.observe(c,{attributes:!0,attributeFilter:[...gl]}),c=c.parentNode||c.host;return o.push(()=>l.disconnect()),()=>{s=!0,o.forEach(h=>h())}}function Qr(r){r.configPublisher&&r.configMutationHandler&&r.configPublisher.offInternalMutation(r.configMutationHandler),r.configPublisher=null,r.configMutationHandler=null}function Jr(r,t){const i=r.path,s=t?.path,e=be(i),o=s?be(s):[],n=[...new Set([...e,...o])],l=e.length>0,c=!!s;return function(h,u){if(!h)return;Ne(h);const d=`__get_state_${u}`;h.__onConnected__(m=>{const y=m;let p=y[d];p||(p={cleanupWatchers:[],requestGeneration:0,configPublisher:null,configMutationHandler:null,scopeWatchCleanup:null},y[d]=p),p.cleanupWatchers.forEach(D=>D()),p.cleanupWatchers=[],p.requestGeneration++;const v=()=>{const D=l?fe(m,i):{ready:!0,path:i};if(!D.ready||!D.path){y[u]=void 0;return}let f=null;if(c&&s){const S=fe(m,s);if(!S.ready||!S.path){y[u]=void 0;return}const O=ls(S.path);f=ml(O)}else f=Gr(m);if(!Xr(f)){if(!c&&!p.scopeWatchCleanup){const S=_l(m,v);p.scopeWatchCleanup=S,p.cleanupWatchers.push(()=>{S(),p.scopeWatchCleanup=null})}return}const b=++p.requestGeneration;new de(f).getDetailed(D.path).then(S=>{b===p.requestGeneration&&(y[u]=S)})},_=()=>{if(!c||!s)return;Qr(p);const D=fe(m,s);if(!D.ready||!D.path){y[u]=void 0;return}const f=ls(D.path);if(!f){y[u]=void 0;return}const b=()=>{v()};f.onInternalMutation(b),p.configPublisher=f,p.configMutationHandler=b};if(c){for(const D of n){const f=Me(Us.watcherStore,Us.hooked,m,D,()=>_());p.cleanupWatchers.push(f)}_()}else{const D=()=>{if(l)for(const f of e){const b=Me(Us.watcherStore,Us.hooked,m,f,()=>v());p.cleanupWatchers.push(b)}v()};p.cleanupWatchers.push(yl(m,D))}}),h.__onDisconnected__(m=>{const y=m,p=y[d];p&&(Qr(p),p.cleanupWatchers.forEach(v=>v()),p.cleanupWatchers=[],p.requestGeneration++,y[u]=void 0)})}}const wl=Wr,xl=Kr,Pl=Jr;window["concorde-decorator-subscriber"]=window["concorde-decorator-subscriber"]||{},window["concorde-decorator-subscriber"]={bind:qr,publish:Wr,subscribe:Kr,onAssing:hl,handle:ul,ancestorAttribute:bl,autoSubscribe:pl,autoFill:fl,get:Jr};var Cl=Object.defineProperty,$l=Object.getOwnPropertyDescriptor,Vs=(r,t,i,s)=>{for(var e=s>1?void 0:s?$l(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Cl(t,i,e),e};const to=new Ts("communes?limit=$limit&fields=nom,code"),eo=new Ue(to.path),Sl="sonic-example";let cs=class extends x{constructor(){super(...arguments),this.limit=5}render(){return g` <span part="api-get-demo">
1273
1273
  · get: ${JSON.stringify(this.geoCommunesPayload?.result??null)} · HTTP
1274
1274
  ${this.geoCommunesPayload?.response?.status??"—"} · subscribe:
1275
1275
  ${JSON.stringify(this.geoCommunesResult??null)}</span
@@ -744,7 +744,7 @@ const I = class I {
744
744
  return new TextDecoder().decode(h);
745
745
  }
746
746
  };
747
- I.buildDate = "Wed Jun 03 2026 19:26:21 GMT+0200 (Central European Summer Time)", I.changed = !1, I.saving = !1, I.saveId = 0, I.instance = null, I.instances = /* @__PURE__ */ new Map(), I.modifiedCollectore = [];
747
+ I.buildDate = "Thu Jun 04 2026 17:00:58 GMT+0200 (Central European Summer Time)", I.changed = !1, I.saving = !1, I.saveId = 0, I.instance = null, I.instances = /* @__PURE__ */ new Map(), I.modifiedCollectore = [];
748
748
  let D = I;
749
749
  if (typeof window < "u") {
750
750
  const r = window;
@@ -7149,15 +7149,15 @@ function _l(r) {
7149
7149
  }
7150
7150
  function wl(r, t) {
7151
7151
  if (_l(r)) {
7152
- let s = !1;
7152
+ let i = !1;
7153
7153
  return r.updateComplete.then(() => {
7154
- s || t();
7154
+ i || t();
7155
7155
  }), () => {
7156
- s = !0;
7156
+ i = !0;
7157
7157
  };
7158
7158
  }
7159
- const i = requestAnimationFrame(() => t());
7160
- return () => cancelAnimationFrame(i);
7159
+ return t(), () => {
7160
+ };
7161
7161
  }
7162
7162
  function xl(r, t) {
7163
7163
  const i = eo(r);
@@ -0,0 +1,2 @@
1
+ User-agent: *
2
+ Disallow: /