@supersoniks/concorde 3.1.78 → 3.1.80

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.
@@ -1,4 +1,4 @@
1
- (function(K){typeof define=="function"&&define.amd?define(K):K()})(function(){"use strict";var Dt,k,L,ko,t,X;let K=class Vt{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,s)=>{const i=s.indexOf("=");return t[s.substring(0,i).trim()]=s.substring(i+1),t},{})}static everyAncestors(t,s){for(;t;){if(!s(t))return;t=t.parentNode||t.host}}static getScrollableAncestor(t){for(;t;){const s=t;if(s.nodeType===1){const i=window.getComputedStyle(s);if((i==null?void 0:i.overflowY)==="auto"||(i==null?void 0:i.overflowY)==="scroll"||(i==null?void 0:i.overflowY)==="hidden"||(i==null?void 0:i.overflowX)==="auto"||(i==null?void 0:i.overflowX)==="scroll"||(i==null?void 0:i.overflowX)==="hidden")return t}t=t.parentNode||t.host}return null}static getAncestorAttributeValue(t,s){if(!t)return null;for(;!("hasAttribute"in t&&t.hasAttribute(s))&&(t.parentNode||t.host);)t=t.parentNode||t.host;return"hasAttribute"in t?t.getAttribute(s):null}static getApiConfiguration(t){const s=Vt.getAncestorAttributeValue(t,"token"),i=Vt.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=Vt.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const a=Vt.getAncestorAttributeValue(t,"tokenProvider"),c=Vt.getAncestorAttributeValue(t,"eventsApiToken");s||(o=Vt.getAncestorAttributeValue(t,"userName"),n=Vt.getAncestorAttributeValue(t,"password"));const h=Vt.getAncestorAttributeValue(t,"credentials")||void 0,d=t.getAttribute("cache"),p=t.hasAttribute("blockUntilDone");return{serviceURL:e,token:s,userName:o,password:n,authToken:c,tokenProvider:a,addHTTPResponse:i,credentials:h,cache:d,blockUntilDone:p}}static getClosestElement(t,s){for(;!(t.nodeName&&t.nodeName.toLowerCase()===s)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return Vt.getClosestElement(t,"form")}static async loadJS(t){return new Promise(async i=>{const e=document.createElement("script");e.src=t,e.onload=()=>i(!0),e.onerror=()=>i(!0),document.head.appendChild(e)})}static async loadCSS(t){return new Promise(async i=>{const e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=t,e.onload=()=>i(!0),e.onerror=()=>i(!0),document.head.appendChild(e)})}};const si=r=>{const t=document.documentElement,s=new MutationObserver(e=>{for(let o of e)o.type==="attributes"&&o.attributeName==="lang"&&r()}),i={attributes:!0,attributeFilter:["lang"]};s.observe(t,i)};let ws=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,s="",i="long"){s||(s=K.getLanguage());const e=(h,d)=>[Math.floor(h/d),h%d];function o(h,d,p){return new Intl.NumberFormat(h,{style:"unit",unit:d,unitDisplay:p}).format}const[n,a]=e(t,60),c=[];return n&&c.push(o(s,"hour",i)(n)),a&&c.push(o(s,"minute",i)(a)),new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}},Mo=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(s=>{setTimeout(s,t)})}},rr="sonic";typeof __SONIC_PREFIX__<"u"&&(rr=__SONIC_PREFIX__);let or=rr.replace(/-([a-z])/g,r=>r[1].toUpperCase());const xs=or.charAt(0).toUpperCase()+or.slice(1);function $s(r){return Object.prototype.hasOwnProperty.call(r,"__value")}function He(r){return typeof r=="object"&&r!=null}let De="sonic";typeof __SONIC_PREFIX__>"u"&&(De="sonic"+Math.floor(Math.random()*1e6));const ii=De=="sonic"?"publisher-proxies-data":De+"-publisher-proxies-data";let ri=(Dt=class{constructor(t,s,i){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=s||null,this._parentKey_=i,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){var t;for(const s in this._proxies_.keys())s!="_parent_"&&((t=this._proxies_.get(s))==null||t.delete());this._invalidateListeners_.clear(),this._formInvalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),Dt.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(s=>s()),this._is_savable_&&!E.changed){E.changed=!0,E.saveId++;const s=E.saveId;setTimeout(()=>E.getInstance().saveToLocalStorage(s),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){if(this._assignmentId_++,this._assignmentId_!==this._assignmentId_)return;const i=this.get();this._assignListeners_.forEach(e=>{e(i)}),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,s){this._fillListeners_.forEach(i=>{i[t]!==s&&(i[t]=s)}),this._publishTemplateFilling_(t,s)}_publishTemplateFilling_(t,s){this._templateFillListeners_.forEach(i=>{const e=Object.getOwnPropertyDescriptor(i,t);e&&!e.set&&!e.writable||(i.propertyMap&&i.propertyMap[t]&&(t=i.propertyMap[t]),typeof i[t]<"u"&&i[t]!==s&&(i[t]=s))})}onAssign(t,s=!0){typeof t=="function"&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),s&&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 s in this._value_){let i=s;const e=this._value_[s];t.propertyMap&&t.propertyMap[s]&&(i=t.propertyMap[s]),typeof t[s]<"u"&&t[s]!==e&&(t[i]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const s in this._value_){const i=this._value_[s];t[s]!==i&&(t[s]=i)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}set(t,s=!1){var e,o,n;if(this._value_===t||this._value_&&t&&$s(this._value_)&&$s(t)&&this._value_.__value===t.__value)return!0;this._value_=He(t)?t:{__value:t},this._cachedGet_=void 0;const i=$s(this._value_);if(this._parentKey_&&this.parent){const a=$s(this._value_)?this._value_.__value:this._value_;if(((e=this.parent)==null?void 0:e.get())==null&&((o=this.parent)==null?void 0:o.get())==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:a});else{const c=[];c[Number(this._parentKey_)]=a,this.parent.set(c)}else this.parent._value_[this._parentKey_]=a}if(i)return this._proxies_.forEach((a,c)=>{c!="_parent_"&&(a.set(null),this._publishDynamicFilling_(c,null))}),this._publishAssignement_(s),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const a in this._value_)this._value_[a]===void 0&&delete this._value_[a];if(this._proxies_.forEach((a,c)=>{const h=this._value_[c];c!="_parent_"&&h===void 0&&h!==null&&isNaN(Number(c))&&(a.set(null),this._publishDynamicFilling_(c,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),He(this._value_))for(const a in this._value_){const c=t[a],d=He(c)?c:{__value:c};if(!this._proxies_.has(a)){this._publishDynamicFilling_(a,c);continue}(n=this._proxies_.get(a))==null||n.set(d,!0),this._publishDynamicFilling_(a,c)}return!0}get(){if(this._cachedGet_!==void 0)return this._cachedGet_;if(E.modifiedCollectore.length>0&&E.modifiedCollectore[0].add(this),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_||(Dt.instancesCounter++,this._instanceCounter_=Dt.instancesCounter),Dt.instances.set(this._instanceCounter_,this),"<"+De+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+De+"-publisher-proxy>"}},Dt.instances=new Map,Dt.instancesCounter=0,Dt),E=(k=class{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],k.instance!=null)throw"Singleton / use getInstance";k.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 i=localStorage.getItem(ii),e=null;if(i&&(e=await this.decompress(i,"gzip")),e)try{this.localStorageData=JSON.parse(e)}catch{this.localStorageData={}}else i=await this.compress("{}","gzip"),localStorage.setItem(ii,i),this.localStorageData={};const o=1e3*60*60*12;for(const n in this.localStorageData){const a=this.localStorageData[n],c=new Date().getTime()-(a.expirationDelayMs||o);a.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 s=k.instances.get(t);return s||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new k)}return k.instance==null?new k:k.instance}static registerInstance(t,s){k.instances.has(t)&&console.warn("PublisherManager instance already registered with id: ",t),k.instances.set(t,s)}static get(t,s){return k.getInstance().get(t,s)}static collectModifiedPublisher(){k.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return k.modifiedCollectore.shift()}static delete(t){return t?k.getInstance().delete(t):!1}async setLocalData(t,s){var i;await this.isLocalStrorageReady,t.set(((i=this.localStorageData[s+"¤lang_"+K.getLanguage()])==null?void 0:i.data)||t.get())}get(t,s){const i=(s==null?void 0:s.localStorageMode)==="enabled",e=(s==null?void 0:s.invalidateOnPageShow)===!0;if(!this.publishers.has(t)){const n={},a=new Be(n);this.set(t,a)}const o=this.publishers.get(t);return i&&this.initialisedData.indexOf(t)===-1&&(s!=null&&s.expirationDelayMs&&(o._expiration_delay_=s.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,s){this.publishers.set(t,s)}delete(t){return this.publishers.has(t)?(this.publishers.delete(t),!0):!1}async saveToLocalStorage(t=0){if(!(t!==k.saveId&&t%10!=0))try{if(!k.changed||k.saving)return;k.saving=!0,k.changed=!1;const s=Array.from(this.publishers.keys());let i=!1;for(const e of s){const o=this.publishers.get(e);if(!(o!=null&&o._is_savable_))continue;const n=o==null?void 0:o.get();n&&(this.localStorageData[e+"¤lang_"+K.getLanguage()]={lastModifiationMS:new Date().getTime(),expirationDelayMs:o._expiration_delay_,data:n},i=!0)}if(i){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(ii,e)}if(k.saving=!1,k.changed){k.saveId++;const e=k.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{k.saving=!1}}async compress(t,s){const i=new TextEncoder().encode(t),e=window,o=new e.CompressionStream(s),n=o.writable.getWriter();n.write(i),n.close();const a=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(a);let h="";for(let d=0;d<c.length;d++)h+=String.fromCharCode(c[d]);return btoa(h)}async decompress(t,s){const i=atob(t),o=Uint8Array.from(i,d=>d.charCodeAt(0)).buffer,n=window,a=new n.DecompressionStream(s),c=a.writable.getWriter();c.write(o),c.close();const h=await new Response(a.readable).arrayBuffer();return new TextDecoder().decode(h)}},k.buildDate="Wed Jun 11 2025 12:25:49 GMT+0200 (Central European Summer Time)",k.changed=!1,k.saving=!1,k.saveId=0,k.instance=null,k.instances=new Map,k.modifiedCollectore=[],k);if(typeof window<"u"){const r=window;r[xs+"PublisherManager"]=r[xs+"PublisherManager"]||E}const Io=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_"]);class Be extends ri{constructor(t,s=null,i){super(t,s,i);const e=new Proxy(this,{get:function(o,n){if(Io.has(n))return o[n];if(n==Symbol.toPrimitive)return()=>e.get();if(!o._proxies_.has(n)){const a=o._value_[n],c=new Be(He(a)?a:{__value:a},o,n);c._proxies_.set("_parent_",e),o._proxies_.set(n,c)}return o._proxies_.get(n)},set:function(o,n,a){var h;if(n=="_value_")return o._value_=a,!0;if(n=="_cachedGet_")return o._cachedGet_=a,!0;if(n=="_assignmentId_")return o._assignmentId_=a,!0;if(n=="_is_savable_")return o._is_savable_=a,!0;if(n=="_expiration_delay_")return o._expiration_delay_=a,!0;if(n=="_invalidate_on_page_show_")return o._invalidate_on_page_show_=a,!0;if(n=="_instanceCounter_")return o._instanceCounter_=a,!0;if(!o._proxies_.has(n)){const d=new Be({},o,n);d._proxies_.set("_parent_",e),o._proxies_.set(n,d)}return o._value_[n]!==a&&(o._value_[n]=a,o._publishDynamicFilling_(n,a),(h=o._proxies_.get(n))==null||h.set(He(a)?a:{__value:a})),!0},deleteProperty:function(o,n){var a;return o._publishDynamicFilling_(n,null),(a=o._proxies_.get(n))==null||a.set(null),delete o._value_[n]},has:function(o,n){return n in o._value_&&n!="_lockInternalMutationPublishing_"},defineProperty:function(o,n,a){return a&&"value"in a&&(o._value_[n]=a.value),!0},getOwnPropertyDescriptor:function(o,n){return{enumerable:!0,configurable:!0}},ownKeys:function(o){return o._value_.__value?Object.keys(o._value_.__value):Object.keys(o._value_)}});return e}getProperty(t,s){return t[s]}}class jo extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){var t;this.publisherId=this.getAttribute("publisher")||"",this.publisher=ri.instances.get(parseInt(this.publisherId)),(t=this.publisher)==null||t.onAssign(this.onAssign)}disconnectedCallback(){var t;(t=this.publisher)==null||t.offAssign(this.onAssign)}}try{customElements.define(De+"-publisher-proxy",jo)}catch{}window.addEventListener("pageshow",r=>{r.persisted&&E.getInstance().invalidateAll()});let Ps=(L=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(L.observedElements.keys()).forEach(t=>L.unObserve(t)))}static observe(t){if(!t||!L.enabled||L.observedElements.has(t))return;const s=new MutationObserver(L.onMutation),i={};i.childList=!0,i.subtree=!0,i.attributes=!0,i.attributeFilter=["data-bind"],s.observe(t,i),t.querySelectorAll("[data-bind]").forEach(e=>L.addPublisherListeners(e)),L.observedElements.set(t,s)}static unObserve(t){if(!t)return;const s=this.observedElements.get(t);s&&(s.disconnect(),t.querySelectorAll("[data-bind]").forEach(i=>L.removePublisherListeners(i)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&L.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>L.addPublisherListeners(s)):t.childNodes.forEach(s=>L.onAdded(s))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&L.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>L.removePublisherListeners(s)):t.childNodes.forEach(s=>L.onRemoved(s))}static onMutation(t){for(const s of t)switch(s.type){case"attributes":L.addPublisherListeners(s.target);break;case"childList":s.addedNodes.forEach(i=>{L.onAdded(i)}),s.removedNodes.forEach(i=>{L.onRemoved(i)});break}}static removePublisherListeners(t){const s=L.publisherListeners.get(t);s&&(L.publisherListeners.delete(t),s.forEach(i=>{var e;(e=i.publisher)==null||e.offAssign(i.onAssign)}))}static getVariablesDescriptor(t){let s=t.match(/(\$(?:\w+\\?\.?)+)/g);return s?s=s.map(i=>i.replace("$","")):s=[t],s=s.filter(i=>i.length>0),{expression:t.replace("\\",""),variables:s.map(i=>i.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(t){return"attributes"in t?Array.from(t.attributes).filter(s=>s.name.indexOf("::")==0).map(s=>({propertyToUpdate:s.name.substring(2).replace(/-((html)|\w)/g,e=>e.substring(1).toUpperCase()),bindedVariablesDescriptor:L.getVariablesDescriptor(s.value)})):[]}static getSubPublisher(t,s){if(!s)return t;for(const i of s)if(i!="_self_"){if(!t)return null;t=t[i]}return t}static addPublisherListeners(t){L.removePublisherListeners(t);const s=K.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!s)return;const i=E.getInstance().get(s),e=L.getDataBindItems(t),o=[];e.forEach(n=>{const a=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of a.variables){const d=h;let p=i;p=L.getSubPublisher(i,d);const g=t,v={publisher:p,onAssign:()=>{const b=a.variables.map(D=>{var f;return(f=L.getSubPublisher(i,D))==null?void 0:f.get()});let y=a.expression,_=!1;if(b.length==1&&a.variables[0].join(".")==y.substring(1)){let D=b[0];D===null&&(D=""),g[c]=D;return}for(let D=0;D<b.length;D++){let f=b[D];const u=a.variables[D];f===null&&(_=!0,f=void 0),y=y.replace("$"+u.join("."),f)}if(y.indexOf("|")!=-1){const D=y.indexOf("|");if(D==0)y=ws.js(y.substring(1));else{const f=y.substring(0,D),u=y.substring(D+1),w=ws[f];y=_?"":w?w(u):y}}else y=_?"":y;g[c]=y}};p==null||p.onAssign(v.onAssign),o.push(v)}}),L.publisherListeners.set(t,o)}},L.observedElements=new Map,L.enabled=!0,L.publisherListeners=new Map,L);Ps.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=Ps);let tt=class Zt{static shallowEqual(t,s,i=!0){const e=Object.keys(t),o=Object.keys(s);if(e.length!==o.length&&i)return!1;for(const n of e){const a=t[n],c=s[n];if(i?a!==c:a!=c)return!1}return!0}static deepEqual(t,s,i=!0){const e=Object.keys(t),o=Object.keys(s);if(e.length!==o.length&&i)return!1;for(const n of e){const a=t[n],c=s[n],h=Zt.isObject(a)&&Zt.isObject(c),d=i?a!==c:a!=c;if(h&&!Zt.deepEqual(a,c)||!h&&d)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return Zt.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,s,i=!1){for(const e of s){const o=t[e];if(o===void 0)return;i&&Zt.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static traverseDotNotation(t,s,i=!1){return Zt.traverse(t,s.split("."),i)}static getURLSearchArray(t,s=""){let i=[];for(let e in t){const o=t[e];s&&(e=s+"["+e+"]"),Zt.isObject(o)?i=[...i,...this.getURLSearchArray(o,e)]:i.push(`${e}=${o}`)}return i}static getURLSearchString(t){return Zt.getURLSearchArray(t,"").join("&")}};const pt=tt.traverseDotNotation;/**
1
+ (function(K){typeof define=="function"&&define.amd?define(K):K()})(function(){"use strict";var Dt,k,E,ko,t,X;let K=class Vt{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,s)=>{const i=s.indexOf("=");return t[s.substring(0,i).trim()]=s.substring(i+1),t},{})}static everyAncestors(t,s){for(;t;){if(!s(t))return;t=t.parentNode||t.host}}static getScrollableAncestor(t){for(;t;){const s=t;if(s.nodeType===1){const i=window.getComputedStyle(s);if((i==null?void 0:i.overflowY)==="auto"||(i==null?void 0:i.overflowY)==="scroll"||(i==null?void 0:i.overflowY)==="hidden"||(i==null?void 0:i.overflowX)==="auto"||(i==null?void 0:i.overflowX)==="scroll"||(i==null?void 0:i.overflowX)==="hidden")return t}t=t.parentNode||t.host}return null}static getAncestorAttributeValue(t,s){if(!t)return null;for(;!("hasAttribute"in t&&t.hasAttribute(s))&&(t.parentNode||t.host);)t=t.parentNode||t.host;return"hasAttribute"in t?t.getAttribute(s):null}static getApiConfiguration(t){const s=Vt.getAncestorAttributeValue(t,"token"),i=Vt.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=Vt.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const a=Vt.getAncestorAttributeValue(t,"tokenProvider"),c=Vt.getAncestorAttributeValue(t,"eventsApiToken");s||(o=Vt.getAncestorAttributeValue(t,"userName"),n=Vt.getAncestorAttributeValue(t,"password"));const h=Vt.getAncestorAttributeValue(t,"credentials")||void 0,d=t.getAttribute("cache"),p=t.hasAttribute("blockUntilDone");return{serviceURL:e,token:s,userName:o,password:n,authToken:c,tokenProvider:a,addHTTPResponse:i,credentials:h,cache:d,blockUntilDone:p}}static getClosestElement(t,s){for(;!(t.nodeName&&t.nodeName.toLowerCase()===s)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return Vt.getClosestElement(t,"form")}static async loadJS(t){return new Promise(async i=>{const e=document.createElement("script");e.src=t,e.onload=()=>i(!0),e.onerror=()=>i(!0),document.head.appendChild(e)})}static async loadCSS(t){return new Promise(async i=>{const e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=t,e.onload=()=>i(!0),e.onerror=()=>i(!0),document.head.appendChild(e)})}};const si=r=>{const t=document.documentElement,s=new MutationObserver(e=>{for(let o of e)o.type==="attributes"&&o.attributeName==="lang"&&r()}),i={attributes:!0,attributeFilter:["lang"]};s.observe(t,i)};let ws=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,s="",i="long"){s||(s=K.getLanguage());const e=(h,d)=>[Math.floor(h/d),h%d];function o(h,d,p){return new Intl.NumberFormat(h,{style:"unit",unit:d,unitDisplay:p}).format}const[n,a]=e(t,60),c=[];return n&&c.push(o(s,"hour",i)(n)),a&&c.push(o(s,"minute",i)(a)),new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}},Mo=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(s=>{setTimeout(s,t)})}},rr="sonic";typeof __SONIC_PREFIX__<"u"&&(rr=__SONIC_PREFIX__);let or=rr.replace(/-([a-z])/g,r=>r[1].toUpperCase());const xs=or.charAt(0).toUpperCase()+or.slice(1);function $s(r){return Object.prototype.hasOwnProperty.call(r,"__value")}function He(r){return typeof r=="object"&&r!=null}let De="sonic";typeof __SONIC_PREFIX__>"u"&&(De="sonic"+Math.floor(Math.random()*1e6));const ii=De=="sonic"?"publisher-proxies-data":De+"-publisher-proxies-data";let ri=(Dt=class{constructor(t,s,i){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=s||null,this._parentKey_=i,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){var t;for(const s in this._proxies_.keys())s!="_parent_"&&((t=this._proxies_.get(s))==null||t.delete());this._invalidateListeners_.clear(),this._formInvalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),Dt.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(s=>s()),this._is_savable_&&!N.changed){N.changed=!0,N.saveId++;const s=N.saveId;setTimeout(()=>N.getInstance().saveToLocalStorage(s),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){if(this._assignmentId_++,this._assignmentId_!==this._assignmentId_)return;const i=this.get();this._assignListeners_.forEach(e=>{e(i)}),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,s){this._fillListeners_.forEach(i=>{i[t]!==s&&(i[t]=s)}),this._publishTemplateFilling_(t,s)}_publishTemplateFilling_(t,s){this._templateFillListeners_.forEach(i=>{const e=Object.getOwnPropertyDescriptor(i,t);e&&!e.set&&!e.writable||(i.propertyMap&&i.propertyMap[t]&&(t=i.propertyMap[t]),typeof i[t]<"u"&&i[t]!==s&&(i[t]=s))})}onAssign(t,s=!0){typeof t=="function"&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),s&&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 s in this._value_){let i=s;const e=this._value_[s];t.propertyMap&&t.propertyMap[s]&&(i=t.propertyMap[s]),typeof t[s]<"u"&&t[s]!==e&&(t[i]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const s in this._value_){const i=this._value_[s];t[s]!==i&&(t[s]=i)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}set(t,s=!1){var e,o,n;if(this._value_===t||this._value_&&t&&$s(this._value_)&&$s(t)&&this._value_.__value===t.__value)return!0;this._value_=He(t)?t:{__value:t},this._cachedGet_=void 0;const i=$s(this._value_);if(this._parentKey_&&this.parent){const a=$s(this._value_)?this._value_.__value:this._value_;if(((e=this.parent)==null?void 0:e.get())==null&&((o=this.parent)==null?void 0:o.get())==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:a});else{const c=[];c[Number(this._parentKey_)]=a,this.parent.set(c)}else this.parent._value_[this._parentKey_]=a}if(i)return this._proxies_.forEach((a,c)=>{c!="_parent_"&&(a.set(null),this._publishDynamicFilling_(c,null))}),this._publishAssignement_(s),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const a in this._value_)this._value_[a]===void 0&&delete this._value_[a];if(this._proxies_.forEach((a,c)=>{const h=this._value_[c];c!="_parent_"&&h===void 0&&h!==null&&isNaN(Number(c))&&(a.set(null),this._publishDynamicFilling_(c,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),He(this._value_))for(const a in this._value_){const c=t[a],d=He(c)?c:{__value:c};if(!this._proxies_.has(a)){this._publishDynamicFilling_(a,c);continue}(n=this._proxies_.get(a))==null||n.set(d,!0),this._publishDynamicFilling_(a,c)}return!0}get(){if(this._cachedGet_!==void 0)return this._cachedGet_;if(N.modifiedCollectore.length>0&&N.modifiedCollectore[0].add(this),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_||(Dt.instancesCounter++,this._instanceCounter_=Dt.instancesCounter),Dt.instances.set(this._instanceCounter_,this),"<"+De+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+De+"-publisher-proxy>"}},Dt.instances=new Map,Dt.instancesCounter=0,Dt),N=(k=class{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],k.instance!=null)throw"Singleton / use getInstance";k.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 i=localStorage.getItem(ii),e=null;if(i&&(e=await this.decompress(i,"gzip")),e)try{this.localStorageData=JSON.parse(e)}catch{this.localStorageData={}}else i=await this.compress("{}","gzip"),localStorage.setItem(ii,i),this.localStorageData={};const o=1e3*60*60*12;for(const n in this.localStorageData){const a=this.localStorageData[n],c=new Date().getTime()-(a.expirationDelayMs||o);a.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 s=k.instances.get(t);return s||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new k)}return k.instance==null?new k:k.instance}static registerInstance(t,s){k.instances.has(t)&&console.warn("PublisherManager instance already registered with id: ",t),k.instances.set(t,s)}static get(t,s){return k.getInstance().get(t,s)}static collectModifiedPublisher(){k.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return k.modifiedCollectore.shift()}static delete(t){return t?k.getInstance().delete(t):!1}async setLocalData(t,s){var i;await this.isLocalStrorageReady,t.set(((i=this.localStorageData[s+"¤lang_"+K.getLanguage()])==null?void 0:i.data)||t.get())}get(t,s){const i=(s==null?void 0:s.localStorageMode)==="enabled",e=(s==null?void 0:s.invalidateOnPageShow)===!0;if(!this.publishers.has(t)){const n={},a=new Be(n);this.set(t,a)}const o=this.publishers.get(t);return i&&this.initialisedData.indexOf(t)===-1&&(s!=null&&s.expirationDelayMs&&(o._expiration_delay_=s.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,s){this.publishers.set(t,s)}delete(t){return this.publishers.has(t)?(this.publishers.delete(t),!0):!1}async saveToLocalStorage(t=0){if(!(t!==k.saveId&&t%10!=0))try{if(!k.changed||k.saving)return;k.saving=!0,k.changed=!1;const s=Array.from(this.publishers.keys());let i=!1;for(const e of s){const o=this.publishers.get(e);if(!(o!=null&&o._is_savable_))continue;const n=o==null?void 0:o.get();n&&(this.localStorageData[e+"¤lang_"+K.getLanguage()]={lastModifiationMS:new Date().getTime(),expirationDelayMs:o._expiration_delay_,data:n},i=!0)}if(i){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(ii,e)}if(k.saving=!1,k.changed){k.saveId++;const e=k.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{k.saving=!1}}async compress(t,s){const i=new TextEncoder().encode(t),e=window,o=new e.CompressionStream(s),n=o.writable.getWriter();n.write(i),n.close();const a=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(a);let h="";for(let d=0;d<c.length;d++)h+=String.fromCharCode(c[d]);return btoa(h)}async decompress(t,s){const i=atob(t),o=Uint8Array.from(i,d=>d.charCodeAt(0)).buffer,n=window,a=new n.DecompressionStream(s),c=a.writable.getWriter();c.write(o),c.close();const h=await new Response(a.readable).arrayBuffer();return new TextDecoder().decode(h)}},k.buildDate="Wed Jun 18 2025 12:52:17 GMT+0200 (Central European Summer Time)",k.changed=!1,k.saving=!1,k.saveId=0,k.instance=null,k.instances=new Map,k.modifiedCollectore=[],k);if(typeof window<"u"){const r=window;r[xs+"PublisherManager"]=r[xs+"PublisherManager"]||N}const Io=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_"]);class Be extends ri{constructor(t,s=null,i){super(t,s,i);const e=new Proxy(this,{get:function(o,n){if(Io.has(n))return o[n];if(n==Symbol.toPrimitive)return()=>e.get();if(!o._proxies_.has(n)){const a=o._value_[n],c=new Be(He(a)?a:{__value:a},o,n);c._proxies_.set("_parent_",e),o._proxies_.set(n,c)}return o._proxies_.get(n)},set:function(o,n,a){var h;if(n=="_value_")return o._value_=a,!0;if(n=="_cachedGet_")return o._cachedGet_=a,!0;if(n=="_assignmentId_")return o._assignmentId_=a,!0;if(n=="_is_savable_")return o._is_savable_=a,!0;if(n=="_expiration_delay_")return o._expiration_delay_=a,!0;if(n=="_invalidate_on_page_show_")return o._invalidate_on_page_show_=a,!0;if(n=="_instanceCounter_")return o._instanceCounter_=a,!0;if(!o._proxies_.has(n)){const d=new Be({},o,n);d._proxies_.set("_parent_",e),o._proxies_.set(n,d)}return o._value_[n]!==a&&(o._value_[n]=a,o._publishDynamicFilling_(n,a),(h=o._proxies_.get(n))==null||h.set(He(a)?a:{__value:a})),!0},deleteProperty:function(o,n){var a;return o._publishDynamicFilling_(n,null),(a=o._proxies_.get(n))==null||a.set(null),delete o._value_[n]},has:function(o,n){return n in o._value_&&n!="_lockInternalMutationPublishing_"},defineProperty:function(o,n,a){return a&&"value"in a&&(o._value_[n]=a.value),!0},getOwnPropertyDescriptor:function(o,n){return{enumerable:!0,configurable:!0}},ownKeys:function(o){return o._value_.__value?Object.keys(o._value_.__value):Object.keys(o._value_)}});return e}getProperty(t,s){return t[s]}}class jo extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){var t;this.publisherId=this.getAttribute("publisher")||"",this.publisher=ri.instances.get(parseInt(this.publisherId)),(t=this.publisher)==null||t.onAssign(this.onAssign)}disconnectedCallback(){var t;(t=this.publisher)==null||t.offAssign(this.onAssign)}}try{customElements.define(De+"-publisher-proxy",jo)}catch{}window.addEventListener("pageshow",r=>{r.persisted&&N.getInstance().invalidateAll()});let Ps=(E=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(E.observedElements.keys()).forEach(t=>E.unObserve(t)))}static observe(t){if(!t||!E.enabled||E.observedElements.has(t))return;const s=new MutationObserver(E.onMutation),i={};i.childList=!0,i.subtree=!0,i.attributes=!0,i.attributeFilter=["data-bind"],s.observe(t,i),t.querySelectorAll("[data-bind]").forEach(e=>E.addPublisherListeners(e)),E.observedElements.set(t,s)}static unObserve(t){if(!t)return;const s=this.observedElements.get(t);s&&(s.disconnect(),t.querySelectorAll("[data-bind]").forEach(i=>E.removePublisherListeners(i)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&E.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>E.addPublisherListeners(s)):t.childNodes.forEach(s=>E.onAdded(s))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&E.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>E.removePublisherListeners(s)):t.childNodes.forEach(s=>E.onRemoved(s))}static onMutation(t){for(const s of t)switch(s.type){case"attributes":E.addPublisherListeners(s.target);break;case"childList":s.addedNodes.forEach(i=>{E.onAdded(i)}),s.removedNodes.forEach(i=>{E.onRemoved(i)});break}}static removePublisherListeners(t){const s=E.publisherListeners.get(t);s&&(E.publisherListeners.delete(t),s.forEach(i=>{var e;(e=i.publisher)==null||e.offAssign(i.onAssign)}))}static getVariablesDescriptor(t){let s=t.match(/(\$(?:\w+\\?\.?)+)/g);return s?s=s.map(i=>i.replace("$","")):s=[t],s=s.filter(i=>i.length>0),{expression:t.replace("\\",""),variables:s.map(i=>i.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(t){return"attributes"in t?Array.from(t.attributes).filter(s=>s.name.indexOf("::")==0).map(s=>({propertyToUpdate:s.name.substring(2).replace(/-((html)|\w)/g,e=>e.substring(1).toUpperCase()),bindedVariablesDescriptor:E.getVariablesDescriptor(s.value)})):[]}static getSubPublisher(t,s){if(!s)return t;for(const i of s)if(i!="_self_"){if(!t)return null;t=t[i]}return t}static addPublisherListeners(t){E.removePublisherListeners(t);const s=K.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!s)return;const i=N.getInstance().get(s),e=E.getDataBindItems(t),o=[];e.forEach(n=>{const a=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of a.variables){const d=h;let p=i;p=E.getSubPublisher(i,d);const g=t,v={publisher:p,onAssign:()=>{const b=a.variables.map(D=>{var f;return(f=E.getSubPublisher(i,D))==null?void 0:f.get()});let y=a.expression,_=!1;if(b.length==1&&a.variables[0].join(".")==y.substring(1)){let D=b[0];D===null&&(D=""),g[c]=D;return}for(let D=0;D<b.length;D++){let f=b[D];const u=a.variables[D];f===null&&(_=!0,f=void 0),y=y.replace("$"+u.join("."),f)}if(y.indexOf("|")!=-1){const D=y.indexOf("|");if(D==0)y=ws.js(y.substring(1));else{const f=y.substring(0,D),u=y.substring(D+1),w=ws[f];y=_?"":w?w(u):y}}else y=_?"":y;g[c]=y}};p==null||p.onAssign(v.onAssign),o.push(v)}}),E.publisherListeners.set(t,o)}},E.observedElements=new Map,E.enabled=!0,E.publisherListeners=new Map,E);Ps.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=Ps);let tt=class Zt{static shallowEqual(t,s,i=!0){const e=Object.keys(t),o=Object.keys(s);if(e.length!==o.length&&i)return!1;for(const n of e){const a=t[n],c=s[n];if(i?a!==c:a!=c)return!1}return!0}static deepEqual(t,s,i=!0){const e=Object.keys(t),o=Object.keys(s);if(e.length!==o.length&&i)return!1;for(const n of e){const a=t[n],c=s[n],h=Zt.isObject(a)&&Zt.isObject(c),d=i?a!==c:a!=c;if(h&&!Zt.deepEqual(a,c)||!h&&d)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return Zt.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,s,i=!1){for(const e of s){const o=t[e];if(o===void 0)return;i&&Zt.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static traverseDotNotation(t,s,i=!1){return Zt.traverse(t,s.split("."),i)}static getURLSearchArray(t,s=""){let i=[];for(let e in t){const o=t[e];s&&(e=s+"["+e+"]"),Zt.isObject(o)?i=[...i,...this.getURLSearchArray(o,e)]:i.push(`${e}=${o}`)}return i}static getURLSearchString(t){return Zt.getURLSearchArray(t,"").join("&")}};const pt=tt.traverseDotNotation;/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -18,7 +18,7 @@
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */function N(r){return l({...r,state:!0,attribute:!1})}/**
21
+ */function L(r){return l({...r,state:!0,attribute:!1})}/**
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
@@ -34,7 +34,7 @@
34
34
  * @license
35
35
  * Copyright 2017 Google LLC
36
36
  * SPDX-License-Identifier: BSD-3-Clause
37
- */function at(r){return(t,s)=>{const{slot:i}=r??{},e="slot"+(i?`[name=${i}]`:":not([name])");return ci(t,s,{get(){var n;const o=(n=this.renderRoot)==null?void 0:n.querySelector(e);return(o==null?void 0:o.assignedNodes(r))??[]}})}}/**
37
+ */function lt(r){return(t,s)=>{const{slot:i}=r??{},e="slot"+(i?`[name=${i}]`:":not([name])");return ci(t,s,{get(){var n;const o=(n=this.renderRoot)==null?void 0:n.querySelector(e);return(o==null?void 0:o.assignedNodes(r))??[]}})}}/**
38
38
  * @license
39
39
  * Copyright 2017 Google LLC
40
40
  * SPDX-License-Identifier: BSD-3-Clause
@@ -56,20 +56,20 @@
56
56
  * @license
57
57
  * Copyright 2017 Google LLC
58
58
  * SPDX-License-Identifier: BSD-3-Clause
59
- */let x=class extends ke{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var s;const t=super.createRenderRoot();return(s=this.renderOptions).renderBefore??(s.renderBefore=t.firstChild),t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Qo(s,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return yt}};x._$litElement$=!0,x.finalized=!0,(ko=globalThis.litElementHydrateSupport)==null||ko.call(globalThis,{LitElement:x});const bi=globalThis.litElementPolyfillSupport;bi==null||bi({LitElement:x}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");function ks(r){if(typeof r=="function"){const t=r;return E.collectModifiedPublisher(),t(),E.getModifiedPublishers()||new Set}if(typeof r=="string"){const t=r.split("."),s=t.shift()||"";let i=E.get(s);i=tt.traverse(i,t);const e=new Set;return e.add(i),e}return new Set([r])}class ln extends Or{constructor(t){var s;super(t),this.observables=new Set,this.onAssign=i=>{this.setValue(i)},this.node=(s=t.options)==null?void 0:s.host}unsubscribe(){this.observables.forEach(t=>t.offAssign(this.onAssign))}render(t){return this.observable!==t&&(this.observable=t,this.isConnected&&this.subscribe(t)),yt}subscribe(t){this.unsubscribe(),typeof t=="function"?this.onAssign=()=>{this.setValue(t())}:this.onAssign=s=>{this.setValue(s)},this.observables=ks(t),this.observables.forEach(s=>{s.onAssign(this.onAssign)})}disconnected(){this.unsubscribe()}reconnected(){this.observable&&this.subscribe(this.observable)}}const Dr=me(ln),cn=Dr,hn=Dr,dn=r=>{var t;return(t=ks(r).values().next().value)==null?void 0:t.get()},kr=(r,t)=>{const s=ks(r).values().next().value;if(t!==void 0&&s){const i=s.get();tt.isEmpty(i)&&s.set(t)}return s},pn=kr,Lr=kr,un=(r,t)=>{var s;(s=ks(r).values().next().value)==null||s.set(t)},V=class V{constructor(t){this.addHTTPResponse=!1,this.cache="default",this.isServiceSimulated=!1,this.blockUntilDone=!1,this.serviceURL=t.serviceURL,this.blockUntilDone=t.blockUntilDone||!1,this.serviceURL=="publisher://"&&(this.isServiceSimulated=!0),this.serviceURL||(this.serviceURL=document.location.origin),this.userName=t.userName,this.password=t.password,t.token&&(this.token=t.token),this.tokenProvider=t.tokenProvider,this.authToken=t.authToken,this.addHTTPResponse=t.addHTTPResponse||!1,this.credentials=t.credentials,this.cache=t.cache||"default"}set token(t){if(this._token=t,!t){V.tokens.delete(this.serviceURL);return}V.invalidTokens.includes(t)||V.tokens.set(this.serviceURL,t)}get token(){return V.invalidTokens.includes(this._token)?V.tokens.get(this.serviceURL):this._token}handleInvalidToken(t){t&&(V.invalidTokens.includes(t)||(V.invalidTokens.push(t),this.token=null))}async handleResult(t,s){var a;V.firstCallDoneFlags.set(this.serviceURL,"done"),this.lastResult=t;const i=(a=t.headers.get("content-type"))==null?void 0:a.toLowerCase(),e=t.status;let o={};if(!i||i.indexOf("text/")==0)o={text:await t.text()};else try{o=await t.json()}catch{o={}}this.addHTTPResponse&&tt.isObject(o)&&(o._sonic_http_response_=t),e===498&&!V.failledTokenUpdates.has(this.serviceURL)&&(this.handleInvalidToken(this.token),s.apiMethod==="get"?o=await this[s.apiMethod](s.path,s.additionalHeaders):o=await this[s.apiMethod](s.path,s.data,s.method,s.additionalHeaders));const n=E.get("sonic-api");return n.lastResponse={http:t,processed:o},o}async auth(){if(this.token)return;if(V.tokens.has(this.serviceURL)){this.token=V.tokens.get(this.serviceURL);return}if(!this.tokenProvider)return;let t={};this.userName&&this.password?t={Authorization:"Basic "+window.btoa(unescape(encodeURIComponent(this.userName+":"+this.password)))}:this.authToken&&(t={Authorization:"Bearer "+this.authToken});const s=new URL(this.serviceURL),i=s.protocol+"//"+s.host,e=await fetch(this.computeURL(this.tokenProvider,{serviceHost:i}),{headers:t,credentials:this.credentials});try{const o=await e.json();o.token?this.token=o.token:V.failledTokenUpdates.set(this.serviceURL,!0)}catch{V.failledTokenUpdates.set(this.serviceURL,!0)}}async localGet(t,s){var p;const i=E.get(t),e=new URLSearchParams(s.split("?")[1]||""),o=i.get();let n=[];Array.isArray(o)?n=o:n=[o];const a=[];let c=Number.POSITIVE_INFINITY,h=0,d=0;if(e.has("limit")&&(c=parseInt(e.get("limit")||"0"),d++),e.has("offset")&&(h=parseInt(e.get("offset")||"0"),d++),d>0&&(e.delete("limit"),e.delete("offset")),e.size===0)return n.slice(h,h+c);for(const[g,v]of e.entries()){const b=v.split(",").map(y=>y.trim());for(const y of b)for(const _ of n)if(typeof _!="object")isNaN(+_)?_.toString().toLowerCase().includes(v.toLowerCase())&&a.push(_):_===v&&a.push(_);else{const D=_;if(!D[g])continue;isNaN(+D[g])?(p=D[g])!=null&&p.toString().toLowerCase().includes(y.toLowerCase())&&a.push(_):D[g]===y&&a.push(_)}}return a.slice(h,h+c)}firstCallDone(){return new Promise(t=>{if(!V.firstCallDoneFlags.has(this.serviceURL))V.firstCallDoneFlags.set(this.serviceURL,"loading"),t(!0);else{const s=()=>{[void 0,"loading"].includes(V.firstCallDoneFlags.get(this.serviceURL))?window.requestAnimationFrame(s):t(!0)};s()}})}async get(t,s){await this.firstCallDone(),this.blockUntilDone&&V.firstCallDoneFlags.set(this.serviceURL,"loading");const i=/dataProvider\((.*?)\)(.*?)$/;if(i.test(t)){const h=t.match(i);if(!h)throw new Error("dataProvider path is not valid");return await this.localGet(h[1],h[2])}const e={apiMethod:"get",path:t,additionalHeaders:s},o=await this.createHeaders(s),n=this.computeURL(t),a=JSON.stringify({url:n,headers:o});if(!V.loadingGetPromises.has(a)){const h=new Promise(async d=>{try{const p=await fetch(n,{headers:o,credentials:this.credentials,cache:this.cache}),g=await this.handleResult(p,e);d(g)}catch{d(null)}});V.loadingGetPromises.set(a,h)}const c=await V.loadingGetPromises.get(a);return V.loadingGetPromises.delete(a),c}async createHeaders(t){await this.auth();const s={};return this.token&&(s.Authorization="Bearer "+this.token),s["Accept-Language"]=K.getLanguage(),t&&Object.assign(s,t),s}computeURL(t,s={}){let i="";t.startsWith("http")?i=t:i=this.serviceURL+"/"+t,i.startsWith("http")||(i=window.location.origin+i);const e=new URL(i);for(const o in s)e.searchParams.set(o,s[o]);return e.toString().replace(/([^(https?:)])\/{2,}/g,"$1/")}async send(t,s,i="POST",e){const o={apiMethod:"send",path:t,additionalHeaders:e,method:i,data:s},n=await this.createHeaders(e);n.Accept="application/json",n["Content-Type"]="application/json";const a=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:i,body:JSON.stringify(s)});return await this.handleResult(a,o)}async submitFormData(t,s,i="POST",e){const o={apiMethod:"submitFormData",path:t,additionalHeaders:e,method:i,data:s},n=await this.createHeaders(e);n.Accept="application/json";const a=new FormData,c=s;for(const d in c)a.set(d,c[d]);const h=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:i,body:a});return await this.handleResult(h,o)}async put(t,s,i){return this.send(t,s,"PUT",i)}async post(t,s,i){return this.send(t,s,"POST",i)}async patch(t,s,i){return this.send(t,s,"PATCH",i)}async delete(t,s,i){return this.send(t,s,"delete",i)}};V.loadingGetPromises=new Map,V.tokens=new Map,V.invalidTokens=[],V.failledTokenUpdates=new Map,V.firstCallDoneFlags=new Map;let Ne=V;K.getApiConfiguration(document.body||document.documentElement);const fn=async(r,t)=>{};/**
59
+ */let x=class extends ke{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var s;const t=super.createRenderRoot();return(s=this.renderOptions).renderBefore??(s.renderBefore=t.firstChild),t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Qo(s,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return yt}};x._$litElement$=!0,x.finalized=!0,(ko=globalThis.litElementHydrateSupport)==null||ko.call(globalThis,{LitElement:x});const bi=globalThis.litElementPolyfillSupport;bi==null||bi({LitElement:x}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");function ks(r){if(typeof r=="function"){const t=r;return N.collectModifiedPublisher(),t(),N.getModifiedPublishers()||new Set}if(typeof r=="string"){const t=r.split("."),s=t.shift()||"";let i=N.get(s);i=tt.traverse(i,t);const e=new Set;return e.add(i),e}return new Set([r])}class ln extends Or{constructor(t){var s;super(t),this.observables=new Set,this.onAssign=i=>{this.setValue(i)},this.node=(s=t.options)==null?void 0:s.host}unsubscribe(){this.observables.forEach(t=>t.offAssign(this.onAssign))}render(t){return this.observable!==t&&(this.observable=t,this.isConnected&&this.subscribe(t)),yt}subscribe(t){this.unsubscribe(),typeof t=="function"?this.onAssign=()=>{this.setValue(t())}:this.onAssign=s=>{this.setValue(s)},this.observables=ks(t),this.observables.forEach(s=>{s.onAssign(this.onAssign)})}disconnected(){this.unsubscribe()}reconnected(){this.observable&&this.subscribe(this.observable)}}const Dr=me(ln),cn=Dr,hn=Dr,dn=r=>{var t;return(t=ks(r).values().next().value)==null?void 0:t.get()},kr=(r,t)=>{const s=ks(r).values().next().value;if(t!==void 0&&s){const i=s.get();tt.isEmpty(i)&&s.set(t)}return s},pn=kr,Lr=kr,un=(r,t)=>{var s;(s=ks(r).values().next().value)==null||s.set(t)},V=class V{constructor(t){this.addHTTPResponse=!1,this.cache="default",this.isServiceSimulated=!1,this.blockUntilDone=!1,this.serviceURL=t.serviceURL,this.blockUntilDone=t.blockUntilDone||!1,this.serviceURL=="publisher://"&&(this.isServiceSimulated=!0),this.serviceURL||(this.serviceURL=document.location.origin),this.userName=t.userName,this.password=t.password,t.token&&(this.token=t.token),this.tokenProvider=t.tokenProvider,this.authToken=t.authToken,this.addHTTPResponse=t.addHTTPResponse||!1,this.credentials=t.credentials,this.cache=t.cache||"default"}set token(t){if(this._token=t,!t){V.tokens.delete(this.serviceURL);return}V.invalidTokens.includes(t)||V.tokens.set(this.serviceURL,t)}get token(){return V.invalidTokens.includes(this._token)?V.tokens.get(this.serviceURL):this._token}handleInvalidToken(t){t&&(V.invalidTokens.includes(t)||(V.invalidTokens.push(t),this.token=null))}async handleResult(t,s){var a;V.firstCallDoneFlags.set(this.serviceURL,"done"),this.lastResult=t;const i=(a=t.headers.get("content-type"))==null?void 0:a.toLowerCase(),e=t.status;let o={};if(!i||i.indexOf("text/")==0)o={text:await t.text()};else try{o=await t.json()}catch{o={}}this.addHTTPResponse&&tt.isObject(o)&&(o._sonic_http_response_=t),e===498&&!V.failledTokenUpdates.has(this.serviceURL)&&(this.handleInvalidToken(this.token),s.apiMethod==="get"?o=await this[s.apiMethod](s.path,s.additionalHeaders):o=await this[s.apiMethod](s.path,s.data,s.method,s.additionalHeaders));const n=N.get("sonic-api");return n.lastResponse={http:t,processed:o},o}async auth(){if(this.token)return;if(V.tokens.has(this.serviceURL)){this.token=V.tokens.get(this.serviceURL);return}if(!this.tokenProvider)return;let t={};this.userName&&this.password?t={Authorization:"Basic "+window.btoa(unescape(encodeURIComponent(this.userName+":"+this.password)))}:this.authToken&&(t={Authorization:"Bearer "+this.authToken});const s=new URL(this.serviceURL),i=s.protocol+"//"+s.host,e=await fetch(this.computeURL(this.tokenProvider,{serviceHost:i}),{headers:t,credentials:this.credentials});try{const o=await e.json();o.token?this.token=o.token:V.failledTokenUpdates.set(this.serviceURL,!0)}catch{V.failledTokenUpdates.set(this.serviceURL,!0)}}async localGet(t,s){var p;const i=N.get(t),e=new URLSearchParams(s.split("?")[1]||""),o=i.get();let n=[];Array.isArray(o)?n=o:n=[o];const a=[];let c=Number.POSITIVE_INFINITY,h=0,d=0;if(e.has("limit")&&(c=parseInt(e.get("limit")||"0"),d++),e.has("offset")&&(h=parseInt(e.get("offset")||"0"),d++),d>0&&(e.delete("limit"),e.delete("offset")),e.size===0)return n.slice(h,h+c);for(const[g,v]of e.entries()){const b=v.split(",").map(y=>y.trim());for(const y of b)for(const _ of n)if(typeof _!="object")isNaN(+_)?_.toString().toLowerCase().includes(v.toLowerCase())&&a.push(_):_===v&&a.push(_);else{const D=_;if(!D[g])continue;isNaN(+D[g])?(p=D[g])!=null&&p.toString().toLowerCase().includes(y.toLowerCase())&&a.push(_):D[g]===y&&a.push(_)}}return a.slice(h,h+c)}firstCallDone(){return new Promise(t=>{if(!V.firstCallDoneFlags.has(this.serviceURL))V.firstCallDoneFlags.set(this.serviceURL,"loading"),t(!0);else{const s=()=>{[void 0,"loading"].includes(V.firstCallDoneFlags.get(this.serviceURL))?window.requestAnimationFrame(s):t(!0)};s()}})}async get(t,s){await this.firstCallDone(),this.blockUntilDone&&V.firstCallDoneFlags.set(this.serviceURL,"loading");const i=/dataProvider\((.*?)\)(.*?)$/;if(i.test(t)){const h=t.match(i);if(!h)throw new Error("dataProvider path is not valid");return await this.localGet(h[1],h[2])}const e={apiMethod:"get",path:t,additionalHeaders:s},o=await this.createHeaders(s),n=this.computeURL(t),a=JSON.stringify({url:n,headers:o});if(!V.loadingGetPromises.has(a)){const h=new Promise(async d=>{try{const p=await fetch(n,{headers:o,credentials:this.credentials,cache:this.cache}),g=await this.handleResult(p,e);d(g)}catch{d(null)}});V.loadingGetPromises.set(a,h)}const c=await V.loadingGetPromises.get(a);return V.loadingGetPromises.delete(a),c}async createHeaders(t){await this.auth();const s={};return this.token&&(s.Authorization="Bearer "+this.token),s["Accept-Language"]=K.getLanguage(),t&&Object.assign(s,t),s}computeURL(t,s={}){let i="";t.startsWith("http")?i=t:i=this.serviceURL+"/"+t,i.startsWith("http")||(i=window.location.origin+i);const e=new URL(i);for(const o in s)e.searchParams.set(o,s[o]);return e.toString().replace(/([^(https?:)])\/{2,}/g,"$1/")}async send(t,s,i="POST",e){const o={apiMethod:"send",path:t,additionalHeaders:e,method:i,data:s},n=await this.createHeaders(e);n.Accept="application/json",n["Content-Type"]="application/json";const a=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:i,body:JSON.stringify(s)});return await this.handleResult(a,o)}async submitFormData(t,s,i="POST",e){const o={apiMethod:"submitFormData",path:t,additionalHeaders:e,method:i,data:s},n=await this.createHeaders(e);n.Accept="application/json";const a=new FormData,c=s;for(const d in c)a.set(d,c[d]);const h=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:i,body:a});return await this.handleResult(h,o)}async put(t,s,i){return this.send(t,s,"PUT",i)}async post(t,s,i){return this.send(t,s,"POST",i)}async patch(t,s,i){return this.send(t,s,"PATCH",i)}async delete(t,s,i){return this.send(t,s,"delete",i)}};V.loadingGetPromises=new Map,V.tokens=new Map,V.invalidTokens=[],V.failledTokenUpdates=new Map,V.firstCallDoneFlags=new Map;let Ne=V;K.getApiConfiguration(document.body||document.documentElement);const fn=async(r,t)=>{};/**
60
60
  * @license
61
61
  * Copyright 2017 Google LLC
62
62
  * SPDX-License-Identifier: BSD-3-Clause
63
- */let vi=class extends Ee{constructor(t){if(super(t),this.it=C,t.type!==Le.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===C||t==null)return this._t=void 0,this.it=t;if(t===yt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const s=[t];return s.raw=s,this._t={_$litType$:this.constructor.resultType,strings:s,values:[]}}};vi.directiveName="unsafeHTML",vi.resultType=1;const z=me(vi),yi=new Map,Er=r=>{if(!r)return null;const t=K.getApiConfiguration(r),s=K.getAncestorAttributeValue(r,"wordingProvider"),i=K.getAncestorAttributeValue(r,"wordingVersionProvider"),e={apiConfiguration:t,wordingProvider:s,wordingVersionProvider:i};let o=null;for(const[n,a]of yi)if(tt.deepEqual(n,e)){o=a;break}return o||(o={api:new Ne(t),keysToTranslate:new Set,translatedKeys:new Set,wordingProvider:s,callIndex:0,wordingVersionProvider:i,apiCallKey:e},yi.set(e,o)),o},Nr="",B=class B extends Or{constructor(t){super(t),this.useUnsafeHTML=!1,this.onAssign=s=>{const i=this.useUnsafeHTML?z(s):s;this.setValue(i)},this.node=t.options.host}unsubscribe(){B.publisher["wording_"+this.key].offAssign(this.onAssign)}render(t,s=!1){return this.useUnsafeHTML=s,this.key!==t&&(this.key=t,this.isConnected&&this.subscribe(t)),yt}static async callApi(t,s,i=!0,e){if(await E.getInstance().isLocalStrorageReady,B.firstCall){B.firstCall=!1,si(B.reloadWordings);const d=Object.keys(B.publisher.get());for(const p of d)B.publisher.get()[p]===Nr&&delete B.publisher[p]}if(t){const d=K.getAncestorAttributeValue(t,"wordingVersionProvider");d&&Lr(d).onAssign(B.handleVersionProvider(t))}let o=B.publisher.get()["wording_"+s]!=null;const n=e||Er(t);if(!n)return;if(o&&s!==""){n.translatedKeys.add(s);return}n.callIndex++;const a=n.callIndex,c=n.wordingProvider??"";if(!c&&i){window.setTimeout(async()=>{B.callApi(null,s,!1,n)},1e3);return}const h=n.api;window.queueMicrotask(async()=>{if(o=B.publisher["wording_"+s].get()!=null,!o&&s!==""&&(n.keysToTranslate.add(s),B.publisher["wording_"+s]=Nr),a!==n.callIndex)return;const d=Array.from(n.keysToTranslate);if(!d.length)return;const p=c.split("?"),g=p.shift(),v=(p.length>0?p.join("?")+"&":"")+"labels[]="+d.join("&labels[]="),b=g+"?"+v;n.translatedKeys=new Set([...n.translatedKeys,...n.keysToTranslate]),n.keysToTranslate.clear();const y=await h.get(b);for(const _ in y)B.publisher["wording_"+_]=y[_]})}static reloadWordings(){for(const t of yi.values())t.keysToTranslate=new Set(t.translatedKeys),t.keysToTranslate.size>0&&B.callApi(null,"",!1,t)}static handleVersionProvider(t){const s=Er(t),i=o=>{};if(!s)return i;if(B.versionProviderHandlers.has(s))return B.versionProviderHandlers.get(s)||i;const e=function(o){if(!s.wordingVersionProvider)return;const a=B.publisher.get().__wording_versions__??[];if(o==null)return;const c=a.find(h=>h.serviceURL===s.api.serviceURL)||{serviceURL:s.api.serviceURL,version:0};a.includes(c)||a.push(c),o!==c.version&&(c.version=o,B.publisher.set({__wording_versions__:a}),B.reloadWordings())};return B.versionProviderHandlers.set(s,e),e}subscribe(t){this.unsubscribe(),B.publisher["wording_"+t].onAssign(this.onAssign),B.callApi(this.node,t)}disconnected(){this.unsubscribe()}reconnected(){this.key&&this.subscribe(this.key)}};B.publisher=E.get("sonic-wording",{localStorageMode:"enabled"}),B.firstCall=!0,B.versionProviderHandlers=new Map;let Te=B;const mn=me(Te);var gn=Object.defineProperty,bn=Object.getOwnPropertyDescriptor,Lt=(r,t,s,i)=>{for(var e=i>1?void 0:i?bn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&gn(t,s,e),e};let Ls=!1,_i=new Set;const G=(r,t)=>{var e;const s=(e=class extends r{constructor(...n){super(),this.collectDependenciesVersion=0,this.displayContents=!1,this.noAutoFill=!1,this.forceAutoFill=!1,this.renderOnPropsInternalChange=!1,this.noShadowDom=null,this.propertyMap=null,this.title="",this.dataProvider=null,this.bindPublisher=null,this._props=null,this.shouldRenderLazy=!0,this.defferedDebug=null,this.debug=null,this.onAssign=a=>{this.props=a}}hasAncestorAttribute(n){return this.getAncestorAttributeValue(n)!=null}getAncestorAttributeValue(n){return K.getAncestorAttributeValue(this,n)}get props(){return this._props!==null||!this.publisher?this._props:this.publisher.get()}set props(n){typeof n=="string"&&["{","["].includes(n.trim().charAt(0))&&(n=JSON.parse(n)),n!=this._props&&(this._props=n,this.publisher&&this.publisher.get()!=n&&this.publisher.set(n),this.requestUpdate())}updated(n){super.updated(n);const c=[...(this.shadowRoot||this).children].filter(d=>d.tagName!="STYLE"),h=this.displayContents?"contents":c.length==0?"none":null;h?this.style.display=h:this.style.removeProperty("display")}connectedCallback(){if(e.instanceCounter++,this.hasAttribute("lazyRendering")){const n={root:null,threshold:.9};let a=!0;const c=new IntersectionObserver(h=>{for(const d of h)if(a&&d.isIntersecting){a=!1,c.disconnect(),this.initWording(),this.shouldRenderLazy=!1,this.startPublisher();break}},n);c.observe(this)}else this.initWording(),this.shouldRenderLazy=!1;this.initPublisher(),this.addDebugger(),super.connectedCallback()}disconnectedCallback(){var n;this.removeDebugger(),super.disconnectedCallback(),this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate)),Te.publisher.stopTemplateFilling(this),this.onAssign&&((n=this.publisher)==null||n.offAssign(this.onAssign))}addDebugger(){var n;if(this.hasAttribute("debug")&&!this.defferedDebug){if(!this.debug){this.debug=document.createElement("div");const a=this.debug.style;a.position="fixed",a.top="0",a.right="0",a.margin="auto",a.borderRadius=".7rem",a.backgroundColor="#0f1729",a.color="#c5d4f9",a.padding="16px 16px",a.margin="16px 16px",a.boxShadow="0 10px 30px -18px rgba(0,0,0,.3)",a.overflowY="auto",a.zIndex="99999999",a.maxHeight="calc(100vh - 32px)",a.fontFamily="Consolas, monospace",a.maxWidth="min(50vw,25rem)",a.fontSize="12px",a.minWidth="300px",a.overflowWrap="break-word",a.resize="vertical"}this.addEventListener("click",a=>{a.ctrlKey&&(a.preventDefault(),Ls=!Ls)}),this.dataProvider&&(window[this.dataProvider]=this.publisher),this.addEventListener("mouseover",()=>{Ls||this.removeDebugger(),document.body.appendChild(this.debug),_i.add(this.debug)}),this.addEventListener("mouseout",()=>{Ls||this.removeDebugger()}),(n=this.publisher)==null||n.onInternalMutation(()=>{var a;this.debug.innerHTML=`🤖 DataProvider : "<b style="font-weight:bold;color:#fff;">${this.dataProvider}</b>"<br>
63
+ */let vi=class extends Ee{constructor(t){if(super(t),this.it=C,t.type!==Le.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===C||t==null)return this._t=void 0,this.it=t;if(t===yt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const s=[t];return s.raw=s,this._t={_$litType$:this.constructor.resultType,strings:s,values:[]}}};vi.directiveName="unsafeHTML",vi.resultType=1;const z=me(vi),yi=new Map,Er=r=>{if(!r)return null;const t=K.getApiConfiguration(r),s=K.getAncestorAttributeValue(r,"wordingProvider"),i=K.getAncestorAttributeValue(r,"wordingVersionProvider"),e={apiConfiguration:t,wordingProvider:s,wordingVersionProvider:i};let o=null;for(const[n,a]of yi)if(tt.deepEqual(n,e)){o=a;break}return o||(o={api:new Ne(t),keysToTranslate:new Set,translatedKeys:new Set,wordingProvider:s,callIndex:0,wordingVersionProvider:i,apiCallKey:e},yi.set(e,o)),o},Nr="",B=class B extends Or{constructor(t){super(t),this.useUnsafeHTML=!1,this.onAssign=s=>{const i=this.useUnsafeHTML?z(s):s;this.setValue(i)},this.node=t.options.host}unsubscribe(){B.publisher["wording_"+this.key].offAssign(this.onAssign)}render(t,s=!1){return this.useUnsafeHTML=s,this.key!==t&&(this.key=t,this.isConnected&&this.subscribe(t)),yt}static async callApi(t,s,i=!0,e){if(await N.getInstance().isLocalStrorageReady,B.firstCall){B.firstCall=!1,si(B.reloadWordings);const d=Object.keys(B.publisher.get());for(const p of d)B.publisher.get()[p]===Nr&&delete B.publisher[p]}if(t){const d=K.getAncestorAttributeValue(t,"wordingVersionProvider");d&&Lr(d).onAssign(B.handleVersionProvider(t))}let o=B.publisher.get()["wording_"+s]!=null;const n=e||Er(t);if(!n)return;if(o&&s!==""){n.translatedKeys.add(s);return}n.callIndex++;const a=n.callIndex,c=n.wordingProvider??"";if(!c&&i){window.setTimeout(async()=>{B.callApi(null,s,!1,n)},1e3);return}const h=n.api;window.queueMicrotask(async()=>{if(o=B.publisher["wording_"+s].get()!=null,!o&&s!==""&&(n.keysToTranslate.add(s),B.publisher["wording_"+s]=Nr),a!==n.callIndex)return;const d=Array.from(n.keysToTranslate);if(!d.length)return;const p=c.split("?"),g=p.shift(),v=(p.length>0?p.join("?")+"&":"")+"labels[]="+d.join("&labels[]="),b=g+"?"+v;n.translatedKeys=new Set([...n.translatedKeys,...n.keysToTranslate]),n.keysToTranslate.clear();const y=await h.get(b);for(const _ in y)B.publisher["wording_"+_]=y[_]})}static reloadWordings(){for(const t of yi.values())t.keysToTranslate=new Set(t.translatedKeys),t.keysToTranslate.size>0&&B.callApi(null,"",!1,t)}static handleVersionProvider(t){const s=Er(t),i=o=>{};if(!s)return i;if(B.versionProviderHandlers.has(s))return B.versionProviderHandlers.get(s)||i;const e=function(o){if(!s.wordingVersionProvider)return;const a=B.publisher.get().__wording_versions__??[];if(o==null)return;const c=a.find(h=>h.serviceURL===s.api.serviceURL)||{serviceURL:s.api.serviceURL,version:0};a.includes(c)||a.push(c),o!==c.version&&(c.version=o,B.publisher.set({__wording_versions__:a}),B.reloadWordings())};return B.versionProviderHandlers.set(s,e),e}subscribe(t){this.unsubscribe(),B.publisher["wording_"+t].onAssign(this.onAssign),B.callApi(this.node,t)}disconnected(){this.unsubscribe()}reconnected(){this.key&&this.subscribe(this.key)}};B.publisher=N.get("sonic-wording",{localStorageMode:"enabled"}),B.firstCall=!0,B.versionProviderHandlers=new Map;let Te=B;const mn=me(Te);var gn=Object.defineProperty,bn=Object.getOwnPropertyDescriptor,Lt=(r,t,s,i)=>{for(var e=i>1?void 0:i?bn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&gn(t,s,e),e};let Ls=!1,_i=new Set;const G=(r,t)=>{var e;const s=(e=class extends r{constructor(...n){super(),this.collectDependenciesVersion=0,this.displayContents=!1,this.noAutoFill=!1,this.forceAutoFill=!1,this.renderOnPropsInternalChange=!1,this.noShadowDom=null,this.propertyMap=null,this.title="",this.dataProvider=null,this.bindPublisher=null,this._props=null,this.shouldRenderLazy=!0,this.defferedDebug=null,this.debug=null,this.onAssign=a=>{this.props=a}}hasAncestorAttribute(n){return this.getAncestorAttributeValue(n)!=null}getAncestorAttributeValue(n){return K.getAncestorAttributeValue(this,n)}get props(){return this._props!==null||!this.publisher?this._props:this.publisher.get()}set props(n){typeof n=="string"&&["{","["].includes(n.trim().charAt(0))&&(n=JSON.parse(n)),n!=this._props&&(this._props=n,this.publisher&&this.publisher.get()!=n&&this.publisher.set(n),this.requestUpdate())}updated(n){super.updated(n);const c=[...(this.shadowRoot||this).children].filter(d=>d.tagName!="STYLE"),h=this.displayContents?"contents":c.length==0?"none":null;h?this.style.display=h:this.style.removeProperty("display")}connectedCallback(){if(e.instanceCounter++,this.hasAttribute("lazyRendering")){const n={root:null,threshold:.9};let a=!0;const c=new IntersectionObserver(h=>{for(const d of h)if(a&&d.isIntersecting){a=!1,c.disconnect(),this.initWording(),this.shouldRenderLazy=!1,this.startPublisher();break}},n);c.observe(this)}else this.initWording(),this.shouldRenderLazy=!1;this.initPublisher(),this.addDebugger(),super.connectedCallback()}disconnectedCallback(){var n;this.removeDebugger(),super.disconnectedCallback(),this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate)),Te.publisher.stopTemplateFilling(this),this.onAssign&&((n=this.publisher)==null||n.offAssign(this.onAssign))}addDebugger(){var n;if(this.hasAttribute("debug")&&!this.defferedDebug){if(!this.debug){this.debug=document.createElement("div");const a=this.debug.style;a.position="fixed",a.top="0",a.right="0",a.margin="auto",a.borderRadius=".7rem",a.backgroundColor="#0f1729",a.color="#c5d4f9",a.padding="16px 16px",a.margin="16px 16px",a.boxShadow="0 10px 30px -18px rgba(0,0,0,.3)",a.overflowY="auto",a.zIndex="99999999",a.maxHeight="calc(100vh - 32px)",a.fontFamily="Consolas, monospace",a.maxWidth="min(50vw,25rem)",a.fontSize="12px",a.minWidth="300px",a.overflowWrap="break-word",a.resize="vertical"}this.addEventListener("click",a=>{a.ctrlKey&&(a.preventDefault(),Ls=!Ls)}),this.dataProvider&&(window[this.dataProvider]=this.publisher),this.addEventListener("mouseover",()=>{Ls||this.removeDebugger(),document.body.appendChild(this.debug),_i.add(this.debug)}),this.addEventListener("mouseout",()=>{Ls||this.removeDebugger()}),(n=this.publisher)==null||n.onInternalMutation(()=>{var a;this.debug.innerHTML=`🤖 DataProvider : "<b style="font-weight:bold;color:#fff;">${this.dataProvider}</b>"<br>
64
64
  <div style="font-size:10px;border-top:1px dashed;margin-top:5px;padding-left:23px;opacity:.6;padding-top:5px;">
65
65
  Variable disponible dans la console<br>
66
66
  ctrl + Clique : épingler / désépingler
67
67
  </div>
68
- <pre style="margin-top:10px;background:transparent;padding:0;font-size:inherit;color:inherit;">${JSON.stringify((a=this.publisher)==null?void 0:a.get(),null," ")}</pre>`})}}removeDebugger(){_i.forEach(n=>{document.body.contains(n)&&document.body.removeChild(n)}),_i=new Set}getApiConfiguration(){return K.getApiConfiguration(this)}async initWording(){const n=Object.getOwnPropertyNames(this.constructor.prototype);for(const a of n)a.indexOf("wording_")==0&&Te.callApi(this,a.substring(8));Te.publisher.startTemplateFilling(this)}createRenderRoot(){if(this.noShadowDom===""||this.getAttribute("noShadowDom")==="")return this;const n=super.createRenderRoot();return Ps.observe(n),n}initPublisher(){if(!document)return;this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate),this.onAssign&&this.publisher.offAssign(this.onAssign));const n=E.getInstance();this.dataProvider||(this.dataProvider=this.getAncestorAttributeValue("dataProvider"));let a=this.dataProvider;if(!a&&this._props&&(this.dataProvider=a="__subscriber__"+e.instanceCounter),a){this.bindPublisher&&n.set(a,this.bindPublisher());let c=n.get(a,{localStorageMode:this.getAttribute("localStorage")||"disabled",invalidateOnPageShow:this.hasAttribute("invalidateOnPageShow")});if(this.dataProvider=a,this.hasAttribute("subDataProvider")){const h=this.getAttribute("subDataProvider");this.dataProvider=a+"/"+h,c=tt.traverse(c,h.split(".")),n.set(this.dataProvider,c),this.publisher=c}this.publisher=c}this.hasAttribute("lazyRendering")||this.startPublisher()}startPublisher(){this.publisher&&(this._props&&this.publisher.set(this._props),this.noAutoFill||this.publisher.startTemplateFilling(this),this.renderOnPropsInternalChange&&this.publisher.onInternalMutation(this.requestUpdate),this.publisher.onAssign(this.onAssign))}},e.instanceCounter=0,e);return Lt([l({type:Number})],s.prototype,"collectDependenciesVersion",2),Lt([l({type:Boolean})],s.prototype,"displayContents",2),Lt([l({type:Boolean})],s.prototype,"noAutoFill",2),Lt([l({type:Boolean})],s.prototype,"forceAutoFill",2),Lt([l({type:Object})],s.prototype,"propertyMap",2),Lt([l({type:String,attribute:"data-title"})],s.prototype,"title",2),Lt([l({reflect:!0})],s.prototype,"dataProvider",2),Lt([l()],s.prototype,"bindPublisher",2),Lt([l()],s.prototype,"props",1),Lt([N()],s.prototype,"shouldRenderLazy",2),s};var vn=Object.defineProperty,yn=(r,t,s,i)=>{for(var e=void 0,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(t,s,e)||e);return e&&vn(t,s,e),e};const Je=r=>{class t extends r{constructor(){super(...arguments),this.templates=null,this.templateValueAttribute="data-value",this.templateList=[],this.templateParts={},this.templatePartsList=[]}connectedCallback(){const i=this.templates||[...this.querySelectorAll("template")];for(const e of i)e.hasAttribute(this.templateValueAttribute)&&(this.templateParts[e.getAttribute(this.templateValueAttribute)]=e,this.templatePartsList.push(e)),e.hasAttribute("skeleton")&&(this.templateParts.skeleton=e),e.hasAttribute("no-result")&&(this.templateParts["no-result"]=e),e.hasAttribute("no-item")&&(this.templateParts["no-item"]=e);this.templateList=i.filter(e=>!e.getAttribute("data-value")),this.templateList.length==0&&(this.templateList=i),super.connectedCallback()}}return yn([l({type:Array})],t.prototype,"templates"),t};var _n=Object.defineProperty,wn=Object.getOwnPropertyDescriptor,Y=(r,t,s,i)=>{for(var e=i>1?void 0:i?wn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&_n(t,s,e),e};const xn="sonic-date";si(()=>R.updateComponentsLanguage());let R=class extends G(Je(x)){constructor(){super(...arguments),this.pageLanguage="fr",this.duAu=[],this._wording_billet_periode_validite="",this.designMode=null,this.time_zone=null,this.date=null,this.date_string=null,this.start_date_string=null,this.end_date_string=null,this.start_date=0,this.computedStartDate=0,this.end_date=0,this.computedEndDate=0,this.hide_hours=!1,this.era="",this.year="numeric",this.month="short",this.day="2-digit",this.weekday="short",this.hour="2-digit",this.hour12=!1,this.minute="2-digit",this.language="",this.renderIf=!0,this.now=!1,this.startDateObject=new Date,this.endDateObject=new Date}static updateComponentsLanguage(){R.dateCompnents.forEach(r=>r.pageLanguage=K.getLanguage())}get wording_billet_periode_validite(){return this._wording_billet_periode_validite}set wording_billet_periode_validite(r){var t;r||(r="Du %s au %s"),this._wording_billet_periode_validite=r,this.duAu=(t=this.wording_billet_periode_validite)==null?void 0:t.split("%s").map(s=>s.trim()),this.duAu.pop(),this.requestUpdate()}connectedCallback(){this.hasAttribute("wording_billet_periode_validite")||(this.wording_billet_periode_validite="Du %s au %s"),this.pageLanguage=K.getLanguage(),R.dateCompnents.add(this),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),R.dateCompnents.delete(this)}getDatesParts(r,t,s){const i=this.startDateObject;i.setTime(r*1e3);let e=[];if(t>0){const o=this.endDateObject;o.setTime(t*1e3);const n=i.toDateString()==o.toDateString();if((!n||this.hide_hours)&&(delete s.hour,delete s.minute),e=new Intl.DateTimeFormat(this.language||this.pageLanguage,s).formatRangeToParts(i,o),!n){const c=e.find(h=>h.type=="literal"&&h.source=="shared"&&h.value.trim().length>0);c&&(c.value=" "+this.duAu[1]+" ",c.type="to"),this.designMode||e.unshift({type:"from",value:this.duAu[0]+" ",source:"shared"})}}else e=new Intl.DateTimeFormat(this.language||this.pageLanguage,s).formatToParts(i);return this.designMode&&e.forEach(o=>o.value=o.value.replace(/,/g," ")),e[0].value=ws.ucFirst(e[0].value),e.filter(o=>o.hidden!==!0)}dateStringToSeconds(r){return new Date(r).getTime()/1e3}willUpdate(r){if(this.computedStartDate=0,this.computedEndDate=0,this.date_string&&(this.date=this.dateStringToSeconds(this.date_string)),this.date&&(this.computedStartDate=this.date),this.start_date_string&&(this.computedStartDate=this.dateStringToSeconds(this.start_date_string)),this.end_date_string&&(this.end_date=this.dateStringToSeconds(this.end_date_string)),this.start_date&&(this.computedStartDate=this.start_date),!(!this.computedStartDate&&!this.now&&!this.end_date)&&(this.computedStartDate||(this.computedStartDate=Date.now()/1e3),this.end_date&&(this.computedEndDate=this.end_date),this.computedEndDate>0&&this.computedEndDate<this.computedStartDate)){const t=this.computedStartDate;this.computedStartDate=this.computedEndDate,this.computedEndDate=t}}render(){if(!this.renderIf||!this.computedStartDate&&!this.now&&!this.computedEndDate)return C;const r={year:this.year||"numeric",month:this.month||"short",day:this.day||"2-digit",hour12:this.hour12||!1};this.weekday!=="hidden"&&(r.weekday=this.weekday||"short"),this.hour!=="hidden"&&(r.hour=this.hour||"2-digit"),this.minute!=="hidden"&&(r.minute=this.minute||"2-digit"),this.era&&(r.era=this.era),this.time_zone&&(r.timeZone=this.time_zone);const t=this.getDatesParts(this.computedStartDate,this.computedEndDate,r);return z(`${t.map(s=>{const i=this.templateParts[s.type];if(i){const n=document.importNode(i.content,!0).children[0];return n.innerText.trim()==""&&(n.innerText=s.value),n.outerHTML}const e=document.createElement("span");return e.innerText=s.value,e.className=s.type,`<span class="${s.type}">${s.value}</span>`}).join("")}`)}};R.dateCompnents=new Set,Y([l()],R.prototype,"wording_billet_periode_validite",1),Y([l({type:Boolean})],R.prototype,"designMode",2),Y([l({type:String})],R.prototype,"time_zone",2),Y([l({type:Number})],R.prototype,"date",2),Y([l({type:String})],R.prototype,"date_string",2),Y([l({type:String})],R.prototype,"start_date_string",2),Y([l({type:String})],R.prototype,"end_date_string",2),Y([l({type:Number})],R.prototype,"start_date",2),Y([l({type:Number})],R.prototype,"end_date",2),Y([l({type:Boolean})],R.prototype,"hide_hours",2),Y([l({type:String})],R.prototype,"era",2),Y([l({type:String})],R.prototype,"year",2),Y([l({type:String})],R.prototype,"month",2),Y([l({type:String})],R.prototype,"day",2),Y([l({type:String})],R.prototype,"weekday",2),Y([l({type:String})],R.prototype,"hour",2),Y([l({type:Boolean})],R.prototype,"hour12",2),Y([l({type:String})],R.prototype,"minute",2),Y([l({type:String})],R.prototype,"language",2),Y([l({type:Boolean})],R.prototype,"renderIf",2),Y([l({type:Boolean})],R.prototype,"now",2),R=Y([$(xn)],R);let lt=(X=class{static listen(){var s;if(!X.listening)return;const t=(s=document.location)==null?void 0:s.href.replace(document.location.origin,"");X.prevURL&&X.prevURL!=t&&(X.prevURL=t,X.listeners.forEach(i=>{i.location=t})),window.requestAnimationFrame(X.listen)}static offChange(t){const s=X.listeners.indexOf(t);s!=-1&&(X.listeners.splice(s,1),X.listeners.length==0&&(X.listening=!1))}static onChange(t){X.listening||(X.listening=!0,X.listen()),X.listeners.push(t),t.location=this.prevURL}static changeFromComponent(t){var h;const s=t.goBack,i=document.referrer;if(s!=null){const d=document.location.origin,p=(s||d).toString(),v=i.indexOf("http")==0?new URL(i).origin!=d:!1,b=i=="",y=history.length<3,_=b&&y,D=p!=document.location.href;if(v&&D||_){const u=history.state||{};u.concorde=u.concorde||{},u.concorde.hasDoneHistoryBack=!0,history.pushState(u,document.title),history.back(),document.location.replace(p)}else history.back();return}let e=t.getAttribute("to")||"";if(e||(e=((h=t.href)==null?void 0:h.toString())||""),!e)return;if(e.indexOf("#")==0){document.location.hash=e.substring(1);return}const o=new URL(e,document.location.href),n=o.pathname.split("/"),a=[];let c="";for(const d of n)d!=c&&a.push(d),c=d;e="/"+a.join("/")+o.search+(o.hash?+o.hash:""),t.hasAttribute("pushState")?history.pushState(null,"",e):t.hasAttribute("replaceState")?history.replaceState(null,"",e):document.location.href=e}static updateComponentActiveState(t){var i;if(t.autoActive=="disabled")return;const s=((i=t.href)==null?void 0:i.toString())||"";if(t.href&&s.indexOf("http")!=0){const e=new URL(s,document.location.href),o=new URL(t.location||"",document.location.origin);let n=!1;t.autoActive=="strict"?n=e.pathname==o.pathname&&e.hash==o.hash&&e.search==o.search:t.autoActive=="strict-path-only"?n=e.pathname==o.pathname&&e.hash==o.hash:n=o.href.indexOf(e.href)==0,n?t.setAttribute("active","true"):t.removeAttribute("active")}}},X.listeners=[],X.listening=!1,X.prevURL=(t=document.location)==null?void 0:t.href.replace(document.location.origin,""),X);/**
68
+ <pre style="margin-top:10px;background:transparent;padding:0;font-size:inherit;color:inherit;">${JSON.stringify((a=this.publisher)==null?void 0:a.get(),null," ")}</pre>`})}}removeDebugger(){_i.forEach(n=>{document.body.contains(n)&&document.body.removeChild(n)}),_i=new Set}getApiConfiguration(){return K.getApiConfiguration(this)}async initWording(){const n=Object.getOwnPropertyNames(this.constructor.prototype);for(const a of n)a.indexOf("wording_")==0&&Te.callApi(this,a.substring(8));Te.publisher.startTemplateFilling(this)}createRenderRoot(){if(this.noShadowDom===""||this.getAttribute("noShadowDom")==="")return this;const n=super.createRenderRoot();return Ps.observe(n),n}initPublisher(){if(!document)return;this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate),this.onAssign&&this.publisher.offAssign(this.onAssign));const n=N.getInstance();this.dataProvider||(this.dataProvider=this.getAncestorAttributeValue("dataProvider"));let a=this.dataProvider;if(!a&&this._props&&(this.dataProvider=a="__subscriber__"+e.instanceCounter),a){this.bindPublisher&&n.set(a,this.bindPublisher());let c=n.get(a,{localStorageMode:this.getAttribute("localStorage")||"disabled",invalidateOnPageShow:this.hasAttribute("invalidateOnPageShow")});if(this.dataProvider=a,this.hasAttribute("subDataProvider")){const h=this.getAttribute("subDataProvider");this.dataProvider=a+"/"+h,c=tt.traverse(c,h.split(".")),n.set(this.dataProvider,c),this.publisher=c}this.publisher=c}this.hasAttribute("lazyRendering")||this.startPublisher()}startPublisher(){this.publisher&&(this._props&&this.publisher.set(this._props),this.noAutoFill||this.publisher.startTemplateFilling(this),this.renderOnPropsInternalChange&&this.publisher.onInternalMutation(this.requestUpdate),this.publisher.onAssign(this.onAssign))}},e.instanceCounter=0,e);return Lt([l({type:Number})],s.prototype,"collectDependenciesVersion",2),Lt([l({type:Boolean})],s.prototype,"displayContents",2),Lt([l({type:Boolean})],s.prototype,"noAutoFill",2),Lt([l({type:Boolean})],s.prototype,"forceAutoFill",2),Lt([l({type:Object})],s.prototype,"propertyMap",2),Lt([l({type:String,attribute:"data-title"})],s.prototype,"title",2),Lt([l({reflect:!0})],s.prototype,"dataProvider",2),Lt([l()],s.prototype,"bindPublisher",2),Lt([l()],s.prototype,"props",1),Lt([L()],s.prototype,"shouldRenderLazy",2),s};var vn=Object.defineProperty,yn=(r,t,s,i)=>{for(var e=void 0,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(t,s,e)||e);return e&&vn(t,s,e),e};const Je=r=>{class t extends r{constructor(){super(...arguments),this.templates=null,this.templateValueAttribute="data-value",this.templateList=[],this.templateParts={},this.templatePartsList=[]}connectedCallback(){const i=this.templates||[...this.querySelectorAll("template")];for(const e of i)e.hasAttribute(this.templateValueAttribute)&&(this.templateParts[e.getAttribute(this.templateValueAttribute)]=e,this.templatePartsList.push(e)),e.hasAttribute("skeleton")&&(this.templateParts.skeleton=e),e.hasAttribute("no-result")&&(this.templateParts["no-result"]=e),e.hasAttribute("no-item")&&(this.templateParts["no-item"]=e);this.templateList=i.filter(e=>!e.getAttribute("data-value")),this.templateList.length==0&&(this.templateList=i),super.connectedCallback()}}return yn([l({type:Array})],t.prototype,"templates"),t};var _n=Object.defineProperty,wn=Object.getOwnPropertyDescriptor,Y=(r,t,s,i)=>{for(var e=i>1?void 0:i?wn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&_n(t,s,e),e};const xn="sonic-date";si(()=>R.updateComponentsLanguage());let R=class extends G(Je(x)){constructor(){super(...arguments),this.pageLanguage="fr",this.duAu=[],this._wording_billet_periode_validite="",this.designMode=null,this.time_zone=null,this.date=null,this.date_string=null,this.start_date_string=null,this.end_date_string=null,this.start_date=0,this.computedStartDate=0,this.end_date=0,this.computedEndDate=0,this.hide_hours=!1,this.era="",this.year="numeric",this.month="short",this.day="2-digit",this.weekday="short",this.hour="2-digit",this.hour12=!1,this.minute="2-digit",this.language="",this.renderIf=!0,this.now=!1,this.startDateObject=new Date,this.endDateObject=new Date}static updateComponentsLanguage(){R.dateCompnents.forEach(r=>r.pageLanguage=K.getLanguage())}get wording_billet_periode_validite(){return this._wording_billet_periode_validite}set wording_billet_periode_validite(r){var t;r||(r="Du %s au %s"),this._wording_billet_periode_validite=r,this.duAu=(t=this.wording_billet_periode_validite)==null?void 0:t.split("%s").map(s=>s.trim()),this.duAu.pop(),this.requestUpdate()}connectedCallback(){this.hasAttribute("wording_billet_periode_validite")||(this.wording_billet_periode_validite="Du %s au %s"),this.pageLanguage=K.getLanguage(),R.dateCompnents.add(this),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),R.dateCompnents.delete(this)}getDatesParts(r,t,s){const i=this.startDateObject;i.setTime(r*1e3);let e=[];if(t>0){const o=this.endDateObject;o.setTime(t*1e3);const n=i.toDateString()==o.toDateString();if((!n||this.hide_hours)&&(delete s.hour,delete s.minute),e=new Intl.DateTimeFormat(this.language||this.pageLanguage,s).formatRangeToParts(i,o),!n){const c=e.find(h=>h.type=="literal"&&h.source=="shared"&&h.value.trim().length>0);c&&(c.value=" "+this.duAu[1]+" ",c.type="to"),this.designMode||e.unshift({type:"from",value:this.duAu[0]+" ",source:"shared"})}}else e=new Intl.DateTimeFormat(this.language||this.pageLanguage,s).formatToParts(i);return this.designMode&&e.forEach(o=>o.value=o.value.replace(/,/g," ")),e[0].value=ws.ucFirst(e[0].value),e.filter(o=>o.hidden!==!0)}dateStringToSeconds(r){return new Date(r).getTime()/1e3}willUpdate(r){if(this.computedStartDate=0,this.computedEndDate=0,this.date_string&&(this.date=this.dateStringToSeconds(this.date_string)),this.date&&(this.computedStartDate=this.date),this.start_date_string&&(this.computedStartDate=this.dateStringToSeconds(this.start_date_string)),this.end_date_string&&(this.end_date=this.dateStringToSeconds(this.end_date_string)),this.start_date&&(this.computedStartDate=this.start_date),!(!this.computedStartDate&&!this.now&&!this.end_date)&&(this.computedStartDate||(this.computedStartDate=Date.now()/1e3),this.end_date&&(this.computedEndDate=this.end_date),this.computedEndDate>0&&this.computedEndDate<this.computedStartDate)){const t=this.computedStartDate;this.computedStartDate=this.computedEndDate,this.computedEndDate=t}}render(){if(!this.renderIf||!this.computedStartDate&&!this.now&&!this.computedEndDate)return C;const r={year:this.year||"numeric",month:this.month||"short",day:this.day||"2-digit",hour12:this.hour12||!1};this.weekday!=="hidden"&&(r.weekday=this.weekday||"short"),this.hour!=="hidden"&&(r.hour=this.hour||"2-digit"),this.minute!=="hidden"&&(r.minute=this.minute||"2-digit"),this.era&&(r.era=this.era),this.time_zone&&(r.timeZone=this.time_zone);const t=this.getDatesParts(this.computedStartDate,this.computedEndDate,r);return z(`${t.map(s=>{const i=this.templateParts[s.type];if(i){const n=document.importNode(i.content,!0).children[0];return n.innerText.trim()==""&&(n.innerText=s.value),n.outerHTML}const e=document.createElement("span");return e.innerText=s.value,e.className=s.type,`<span class="${s.type}">${s.value}</span>`}).join("")}`)}};R.dateCompnents=new Set,Y([l()],R.prototype,"wording_billet_periode_validite",1),Y([l({type:Boolean})],R.prototype,"designMode",2),Y([l({type:String})],R.prototype,"time_zone",2),Y([l({type:Number})],R.prototype,"date",2),Y([l({type:String})],R.prototype,"date_string",2),Y([l({type:String})],R.prototype,"start_date_string",2),Y([l({type:String})],R.prototype,"end_date_string",2),Y([l({type:Number})],R.prototype,"start_date",2),Y([l({type:Number})],R.prototype,"end_date",2),Y([l({type:Boolean})],R.prototype,"hide_hours",2),Y([l({type:String})],R.prototype,"era",2),Y([l({type:String})],R.prototype,"year",2),Y([l({type:String})],R.prototype,"month",2),Y([l({type:String})],R.prototype,"day",2),Y([l({type:String})],R.prototype,"weekday",2),Y([l({type:String})],R.prototype,"hour",2),Y([l({type:Boolean})],R.prototype,"hour12",2),Y([l({type:String})],R.prototype,"minute",2),Y([l({type:String})],R.prototype,"language",2),Y([l({type:Boolean})],R.prototype,"renderIf",2),Y([l({type:Boolean})],R.prototype,"now",2),R=Y([$(xn)],R);let ct=(X=class{static listen(){var s;if(!X.listening)return;const t=(s=document.location)==null?void 0:s.href.replace(document.location.origin,"");X.prevURL&&X.prevURL!=t&&(X.prevURL=t,X.listeners.forEach(i=>{i.location=t})),window.requestAnimationFrame(X.listen)}static offChange(t){const s=X.listeners.indexOf(t);s!=-1&&(X.listeners.splice(s,1),X.listeners.length==0&&(X.listening=!1))}static onChange(t){X.listening||(X.listening=!0,X.listen()),X.listeners.push(t),t.location=this.prevURL}static changeFromComponent(t){var h;const s=t.goBack,i=document.referrer;if(s!=null){const d=document.location.origin,p=(s||d).toString(),v=i.indexOf("http")==0?new URL(i).origin!=d:!1,b=i=="",y=history.length<3,_=b&&y,D=p!=document.location.href;if(v&&D||_){const u=history.state||{};u.concorde=u.concorde||{},u.concorde.hasDoneHistoryBack=!0,history.pushState(u,document.title),history.back(),document.location.replace(p)}else history.back();return}let e=t.getAttribute("to")||"";if(e||(e=((h=t.href)==null?void 0:h.toString())||""),!e)return;if(e.indexOf("#")==0){document.location.hash=e.substring(1);return}const o=new URL(e,document.location.href),n=o.pathname.split("/"),a=[];let c="";for(const d of n)d!=c&&a.push(d),c=d;e="/"+a.join("/")+o.search+(o.hash?+o.hash:""),t.hasAttribute("pushState")?history.pushState(null,"",e):t.hasAttribute("replaceState")?history.replaceState(null,"",e):document.location.href=e}static updateComponentActiveState(t){var i;if(t.autoActive=="disabled")return;const s=((i=t.href)==null?void 0:i.toString())||"";if(t.href&&s.indexOf("http")!=0){const e=new URL(s,document.location.href),o=new URL(t.location||"",document.location.origin);let n=!1;t.autoActive=="strict"?n=e.pathname==o.pathname&&e.hash==o.hash&&e.search==o.search:t.autoActive=="strict-path-only"?n=e.pathname==o.pathname&&e.hash==o.hash:n=o.href.indexOf(e.href)==0,n?t.setAttribute("active","true"):t.removeAttribute("active")}}},X.listeners=[],X.listening=!1,X.prevURL=(t=document.location)==null?void 0:t.href.replace(document.location.origin,""),X);/**
69
69
  * @license
70
70
  * Copyright 2018 Google LLC
71
71
  * SPDX-License-Identifier: BSD-3-Clause
72
- */const Tr="important",$n=" !"+Tr,gt=me(class extends Ee{constructor(r){var t;if(super(r),r.type!==Le.ATTRIBUTE||r.name!=="style"||((t=r.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((t,s)=>{const i=r[s];return i==null?t:t+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(r,[t]){const{style:s}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const i of this.ft)t[i]==null&&(this.ft.delete(i),i.includes("-")?s.removeProperty(i):s[i]=null);for(const i in t){const e=t[i];if(e!=null){this.ft.add(i);const o=typeof e=="string"&&e.endsWith($n);i.includes("-")||o?s.setProperty(i,o?e.slice(0,-11):e,o?Tr:""):s[i]=e}}return yt}});var Pn=Object.defineProperty,An=Object.getOwnPropertyDescriptor,Et=(r,t,s,i)=>{for(var e=i>1?void 0:i?An(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Pn(t,s,e),e};const Es=new Map,Me=r=>{class t extends r{constructor(...i){super(),this.touched=!1,this.error=!1,this.autofocus=!1,this.required=!1,this.forceAutoFill=!1,this.disabled=null,this.formDataProvider="",this._name="",this._value="",this.onValueAssign=e=>{this.setValueFromPublisher(e)},this.onFormValueAssign=async e=>{this.setFormValueFromPublisher(e)},this.onFormDataInValidate=()=>{const e=this.getFormPublisher();e&&e.isFormValid.get()&&this.validateFormElement()}}get name(){return this._name}set name(i){this.hasAttribute("name")&&!this.forceAutoFill&&(i=this.getAttribute("name")),this._name=i,this.requestUpdate()}validateFormElement(){}unsetOnDisconnect(){return this.hasAttribute("unsetOnDisconnect")}updateDataValue(){this.getAttribute("name")&&this.getFormPublisher()&&(this.setFormPublisherValue(this.getValueForFormPublisher()),this.setFormValueFromPublisher(this.getFormPublisherValue()))}getFormPublisher(){return this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?E.get(this.formDataProvider):null}setFormPublisherValue(i){const e=this.getFormPublisher();e&&pt(e,this.name).set(i)}getFormPublisherValue(){const i=this.getFormPublisher();return i?pt(i,this.name).get():null}getValueForFormPublisher(){return this.value}setValueFromPublisher(i){this.value=i}setFormValueFromPublisher(i){this.value=i}get value(){return this._value}set value(i){i==null&&(i=""),tt.isObject(i)&&Object.prototype.hasOwnProperty.call(i,"__value")&&i._value==null&&(i=""),this._value!=i&&(this._value=i,this.updateDataValue(),this.requestUpdate())}initPublisher(){let i=this.getFormPublisher();const e=this.hasAncestorAttribute("initFromPublisher")&&this._name&&this.getFormPublisherValue()?this.getFormPublisherValue():this.getAttribute("value");this._name&&this.publisher&&pt(this.publisher,this._name).offAssign(this.onValueAssign),this._name&&i&&pt(i,this._name).offAssign(this.onFormValueAssign),super.initPublisher(),this.name||(this._name=this.getAttribute("name")),this.value||(this._value=this.getAttribute("value")),this.publisher&&this._name&&pt(this.publisher,this._name).onAssign(this.onValueAssign),i=this.getFormPublisher(),this._name&&i&&(pt(i,this._name).onAssign(this.onFormValueAssign),i.onFormInvalidate(this.onFormDataInValidate)),this.updateDataValue(),e&&(this.value=e)}handleBlur(){this.touched=!0}handleChange(i){this.value=i.target.value;const e=new Event("change");this.dispatchEvent(e)}addKeyboardNavigation(){const i=this.getAncestorAttributeValue("data-keyboard-nav");if(!i)return;const e=i.split(" "),o=e[0];if(!o)return;for(const a of e){Es.has(a)||Es.set(a,[]);const c=Es.get(a);(c==null?void 0:c.indexOf(this))==-1&&c.push(this)}const n=Es.get(o);this.addEventListener("keydown",a=>{var v;const c=a;if(!["ArrowDown","ArrowUp"].includes(c.key))return;const h="input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])",d=n==null?void 0:n.filter(b=>{var D;const y=(D=b.shadowRoot)==null?void 0:D.querySelector(h);if(!y)return!1;const _=window.getComputedStyle(y);return _.display!=="none"&&_.display!==""&&_.pointerEvents!="none"&&_.visibility!=="hidden"&&y.getBoundingClientRect().width>0});let p=null;if(c.key=="ArrowDown"&&d){const b=d.indexOf(this);b==d.length-1?p=d[0]:p=d[b+1]}else if(c.key=="ArrowUp"&&d){const b=d.indexOf(this);b==0?p=d[d.length-1]:p=d[b-1]}const g=(v=p==null?void 0:p.shadowRoot)==null?void 0:v.querySelector(h);g&&g.focus&&(g.focus(),a.preventDefault(),a.stopPropagation())})}focus(){var e;const i=(e=this.shadowRoot)==null?void 0:e.querySelector("[data-form-element], button");i==null||i.focus()}connectedCallback(){this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"),super.connectedCallback(),this.addKeyboardNavigation()}unset(){this.value=null}disconnectedCallback(){this.unsetOnDisconnect()&&this.unset(),super.disconnectedCallback(),this._name&&this.publisher&&pt(this.publisher,this._name).offAssign(this.onValueAssign);const i=this.getFormPublisher();this._name&&i&&(pt(i,this._name).offAssign(this.onFormValueAssign),i.offFormInvalidate(this.onFormDataInValidate))}}return Et([l({type:Boolean,reflect:!0})],t.prototype,"touched",2),Et([l({type:Boolean})],t.prototype,"error",2),Et([l({type:Boolean})],t.prototype,"autofocus",2),Et([l({type:Boolean})],t.prototype,"required",2),Et([l({type:Boolean})],t.prototype,"forceAutoFill",2),Et([l({type:Boolean})],t.prototype,"disabled",2),Et([l({type:String,attribute:"data-aria-label"})],t.prototype,"ariaLabel",2),Et([l({type:String,attribute:"data-aria-labelledby"})],t.prototype,"ariaLabelledby",2),Et([l()],t.prototype,"name",1),Et([l()],t.prototype,"value",1),t};let Cn=class Oe{static areEqual(t,s){return t.length===s.length?t.every((i,e)=>i===s[e]):!1}static from2d(t){return{to1D:()=>{let s=[];return t.forEach(i=>s=s.concat(i)),this.from(s)}}}static from(t){return{get:()=>t||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:s=>{if(t.length<1)return!0;const i=(t[0]||{})[s];return t.every(e=>(e||{})[s]==i)}})})}),value:()=>({forKey:s=>Oe.from(t.map(i=>i[s]))}),copy:()=>({fromKey:s=>({toKey:i=>{t.forEach(e=>{e[i]=Array.isArray(e[s])?[...e[s]]:typeof e[s]=="object"&&e[s]!=null?{...e[s]}:e[s]})}})})}),map:s=>Oe.from(t.map(s)),filter:s=>Oe.from(t.filter(s)),find:s=>t.find(s),some:s=>t.some(s),every:s=>t.every(s),group:()=>({byKey:s=>{const i=[],e=new Map;for(const o of t){const n=o[s];if(!e.has(n)){const a=i.length;e.set(n,a);const c={items:[]};c[s]=n,i.push(c)}i[e.get(n)].items.push(o)}return Oe.from(i)}}),without:()=>({duplicates:()=>({forKey:s=>{const i=[...new Set(t.map(e=>e[s]))];return Oe.from(i.map(e=>t.find(o=>o[s]==e)))}}),itemsIn:s=>({havingSameValue:()=>({forKey:i=>{const e=(o,n)=>a=>o[n]!=a[n];return Oe.from(t.filter(o=>s.every(e(o,i))))}})})})}}};var Sn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function On(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var wi={exports:{}};(function(r,t){var s=[].slice;(function(i,e){return t!==null?r.exports=e():i.UrlPattern=e()})(Sn,function(){var i,e,o,n,a,c,h,d,p,g,v,b,y,_,D;return p=function(f){return f.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},h=function(f,u){var w,S,O;for(O=[],w=-1,S=f.length;++w<S;)O=O.concat(u(f[w]));return O},_=function(f,u){var w,S,O;for(O="",w=-1,S=f.length;++w<S;)O+=u(f[w]);return O},y=function(f){return new RegExp(f.toString()+"|").exec("").length-1},v=function(f,u){var w,S,O,T,q;for(T={},w=-1,O=f.length;++w<O;)S=f[w],q=u[w],q!=null&&(T[S]!=null?(Array.isArray(T[S])||(T[S]=[T[S]]),T[S].push(q)):T[S]=q);return T},i={},i.Result=function(f,u){this.value=f,this.rest=u},i.Tagged=function(f,u){this.tag=f,this.value=u},i.tag=function(f,u){return function(w){var S,O;if(S=u(w),S!=null)return O=new i.Tagged(f,S.value),new i.Result(O,S.rest)}},i.regex=function(f){return function(u){var w,S;if(w=f.exec(u),w!=null)return S=w[0],new i.Result(S,u.slice(S.length))}},i.sequence=function(){var f;return f=1<=arguments.length?s.call(arguments,0):[],function(u){var w,S,O,T,q,W;for(w=-1,S=f.length,W=[],T=u;++w<S;){if(O=f[w],q=O(T),q==null)return;W.push(q.value),T=q.rest}return new i.Result(W,T)}},i.pick=function(){var f,u;return f=arguments[0],u=2<=arguments.length?s.call(arguments,1):[],function(w){var S,O;if(O=i.sequence.apply(i,u)(w),O!=null)return S=O.value,O.value=S[f],O}},i.string=function(f){var u;return u=f.length,function(w){if(w.slice(0,u)===f)return new i.Result(f,w.slice(u))}},i.lazy=function(f){var u;return u=null,function(w){return u==null&&(u=f()),u(w)}},i.baseMany=function(f,u,w,S,O){var T,q,W,kt;for(W=O,kt=w?"":[];!(u!=null&&(T=u(W),T!=null)||(q=f(W),q==null));)w?kt+=q.value:kt.push(q.value),W=q.rest;if(!(S&&kt.length===0))return new i.Result(kt,W)},i.many1=function(f){return function(u){return i.baseMany(f,null,!1,!0,u)}},i.concatMany1Till=function(f,u){return function(w){return i.baseMany(f,u,!0,!0,w)}},i.firstChoice=function(){var f;return f=1<=arguments.length?s.call(arguments,0):[],function(u){var w,S,O,T;for(w=-1,S=f.length;++w<S;)if(O=f[w],T=O(u),T!=null)return T}},b=function(f){var u;return u={},u.wildcard=i.tag("wildcard",i.string(f.wildcardChar)),u.optional=i.tag("optional",i.pick(1,i.string(f.optionalSegmentStartChar),i.lazy(function(){return u.pattern}),i.string(f.optionalSegmentEndChar))),u.name=i.regex(new RegExp("^["+f.segmentNameCharset+"]+")),u.named=i.tag("named",i.pick(1,i.string(f.segmentNameStartChar),i.lazy(function(){return u.name}))),u.escapedChar=i.pick(1,i.string(f.escapeChar),i.regex(/^./)),u.static=i.tag("static",i.concatMany1Till(i.firstChoice(i.lazy(function(){return u.escapedChar}),i.regex(/^./)),i.firstChoice(i.string(f.segmentNameStartChar),i.string(f.optionalSegmentStartChar),i.string(f.optionalSegmentEndChar),u.wildcard))),u.token=i.lazy(function(){return i.firstChoice(u.wildcard,u.optional,u.named,u.static)}),u.pattern=i.many1(i.lazy(function(){return u.token})),u},d={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},c=function(f,u){if(Array.isArray(f))return _(f,function(w){return c(w,u)});switch(f.tag){case"wildcard":return"(.*?)";case"named":return"(["+u+"]+)";case"static":return p(f.value);case"optional":return"(?:"+c(f.value,u)+")?"}},a=function(f,u){return u==null&&(u=d.segmentValueCharset),"^"+c(f,u)+"$"},n=function(f){if(Array.isArray(f))return h(f,n);switch(f.tag){case"wildcard":return["_"];case"named":return[f.value];case"static":return[];case"optional":return n(f.value)}},g=function(f,u,w,S){var O,T,q,W;if(S==null&&(S=!1),W=f[u],W==null){if(S)throw new Error("no values provided for key `"+u+"`");return}if(O=w[u]||0,T=Array.isArray(W)?W.length-1:0,O>T){if(S)throw new Error("too few values provided for key `"+u+"`");return}return q=Array.isArray(W)?W[O]:W,S&&(w[u]=O+1),q},o=function(f,u,w){var S,O;if(Array.isArray(f)){for(S=-1,O=f.length;++S<O;)if(o(f[S],u,w))return!0;return!1}switch(f.tag){case"wildcard":return g(u,"_",w,!1)!=null;case"named":return g(u,f.value,w,!1)!=null;case"static":return!1;case"optional":return o(f.value,u,w)}},D=function(f,u,w){if(Array.isArray(f))return _(f,function(S){return D(S,u,w)});switch(f.tag){case"wildcard":return g(u,"_",w,!0);case"named":return g(u,f.value,w,!0);case"static":return f.value;case"optional":return o(f.value,u,w)?D(f.value,u,w):""}},e=function(f,u){var w,S,O,T,q;if(f instanceof e){this.isRegex=f.isRegex,this.regex=f.regex,this.ast=f.ast,this.names=f.names;return}if(this.isRegex=f instanceof RegExp,!(typeof f=="string"||this.isRegex))throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=f,u!=null){if(!Array.isArray(u))throw new Error("if first argument is a regex the second argument may be an array of group names but you provided something else");if(w=y(this.regex),u.length!==w)throw new Error("regex contains "+w+" groups but array of group names contains "+u.length);this.names=u}return}if(f==="")throw new Error("argument must not be the empty string");if(q=f.replace(/\s+/g,""),q!==f)throw new Error("argument must not contain whitespace");if(S={escapeChar:(u!=null?u.escapeChar:void 0)||d.escapeChar,segmentNameStartChar:(u!=null?u.segmentNameStartChar:void 0)||d.segmentNameStartChar,segmentNameCharset:(u!=null?u.segmentNameCharset:void 0)||d.segmentNameCharset,segmentValueCharset:(u!=null?u.segmentValueCharset:void 0)||d.segmentValueCharset,optionalSegmentStartChar:(u!=null?u.optionalSegmentStartChar:void 0)||d.optionalSegmentStartChar,optionalSegmentEndChar:(u!=null?u.optionalSegmentEndChar:void 0)||d.optionalSegmentEndChar,wildcardChar:(u!=null?u.wildcardChar:void 0)||d.wildcardChar},T=b(S),O=T.pattern(f),O==null)throw new Error("couldn't parse pattern");if(O.rest!=="")throw new Error("could only partially parse pattern");this.ast=O.value,this.regex=new RegExp(a(this.ast,S.segmentValueCharset)),this.names=n(this.ast)},e.prototype.match=function(f){var u,w;return w=this.regex.exec(f),w==null?null:(u=w.slice(1),this.names?v(this.names,u):u)},e.prototype.stringify=function(f){if(f==null&&(f={}),this.isRegex)throw new Error("can't stringify patterns generated from a regex");if(f!==Object(f))throw new Error("argument must be an object or undefined");return D(this.ast,f,{})},e.escapeForRegex=p,e.concatMap=h,e.stringConcatMap=_,e.regexGroupCount=y,e.keysAndValuesToObject=v,e.P=i,e.newParser=b,e.defaultOptions=d,e.astNodeToRegexString=a,e.astNodeToNames=n,e.getParam=g,e.astNodeContainsSegmentsForProvidedParams=o,e.stringify=D,e})})(wi,wi.exports);var Dn=wi.exports;const Bt=On(Dn),kn=Mo,Ln=Cn,En=Ps,Nn=ws,Gt=K,Tn=lt,ts=tt,Mn=Be,it=E,In=Ne,jn=Bt;window["concorde-utils"]=window["concorde-utils"]||{},window["concorde-utils"]={Utils:kn,Arrays:Ln,DataBindObserver:En,Format:Nn,HTML:Gt,LocationHandler:Tn,Objects:ts,PublisherProxy:Mn,PublisherManager:it,api:In,URLPattern:jn};var Fn=Object.defineProperty,zn=Object.getOwnPropertyDescriptor,es=(r,t,s,i)=>{for(var e=i>1?void 0:i?zn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Fn(t,s,e),e};const xi=r=>{class t extends r{constructor(){super(...arguments),this._value="",this.forceAutoFill=!1,this.unique=null,this.radio=null,this._checked=null,this.updateAllChecked=()=>{var n;const i=this.getAttribute("name"),e=this.getCheckAllPublisher(),o=this.getFormPublisher();if(e!=null&&e.hasCheckAll.get()&&!this.checksAll()&&e&&o&&i){if((n=this.getFormPublisherValue())!=null&&n.length)(this.checked===null||e.checkMode.get()=="noneChecked"||e.checkMode.get()==null)&&(e.checkMode="someUnchecked");else{e.checkMode="noneChecked";return}const a=this.getFormPublisherValue(),c=e.values.get();if(c&&c.length){let h=c.length;for(const d of c)a.indexOf(d)==-1&&(h-=1);h==c.length&&(e.checkMode="allChecked"),h==0&&(e.checkMode="noneChecked")}c.indexOf(this.value)==-1&&this.unsetOnDisconnect()&&(this.checked=null)}},this.onChecksAllRequest=i=>{this.removeAttribute("allChecked"),this.removeAttribute("indeterminate"),i=="allChecked"&&(this.checked=!0,this.setAttribute("allChecked","")),i=="noneChecked"&&(this.checked=null),i=="someUnchecked"&&(this.checksAll()&&(this.checked="indeterminate"),this.setAttribute("indeterminate",""))}}get value(){return this._value}set value(i){if(this.value==i||(this.hasAttribute("value")&&!this.forceAutoFill&&(i=this.getAttribute("value")),this._value==i)||i==null||(this._value=i,!this.value))return;if(this.getFormPublisher()&&this.name){let o=this.getFormPublisherValue();(this.radio||this.unique)&&(this.checked=o==i?!0:null),Array.isArray(o)||(o=[]),o.indexOf(i)!=-1&&(this.checked=!0)}this.checked==!0&&this.updateDataValue(),this.requestUpdate()}get checked(){return this._checked}set checked(i){if(this.setCheckedValue(i),this.checksAll()){const e=this.getCheckAllPublisher();e&&(this.checked===!0?e.checkMode="allChecked":this.checked===null&&(e.checkMode="noneChecked",this.getFormPublisher()&&this.setFormPublisherValue([])))}this.requestUpdate()}validateFormElement(){var o;const i=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(!i||i.checkValidity())return;const e=this.getFormPublisher();if(e){const n=this.getFormPublisherValue();if((this.unique||this.radio)&&n!==null&&n!==void 0&&n.toString().length>0)return;e.isFormValid=!1,i.reportValidity()}}checksAll(){return this.hasAttribute("checksAll")}setCheckedValue(i){this._checked!=i&&(this._checked=i,this.updateDataValue(),this.requestUpdate(),setTimeout(()=>this.updateAllChecked(),1))}handleChange(){const i=this.checked===!0?this.radio?!0:null:!0;this.checked=i;const e=new Event("change");this.dispatchEvent(e)}getValueForFormPublisher(){let i=this.getFormPublisherValue();if(this.radio)return this.checked===!0&&this.value!=null?this.value:i;if(this.unique)return this.checked===!0&&this.value!=null?this.value:null;Array.isArray(i)||(i=[]);const e=i.slice(0),o=e.indexOf(this.value);return this.checked===!0&&o===-1&&!this.checksAll()&&e.push(this.value),this.checked===null&&o!==-1&&e.splice(o,1),e}setFormValueFromPublisher(i){if(this.unique||this.radio){this.checked=this.value==i?!0:null;return}Array.isArray(i)||(i=[]),!this.checksAll()&&(this.checked=i.indexOf(this.value)!==-1?!0:null)}getCheckAllPublisher(){this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"));const i=this.formDataProvider,e=this.getAttribute("name");return!i||!e?null:it.get(i+"/"+e+"/_available_values_")}unset(){this.checked=null}disconnectedCallback(){super.disconnectedCallback();const i=this.getCheckAllPublisher();if(i&&(i.checkMode.offAssign(this.onChecksAllRequest),!this.checksAll())){const e=i.values.get().slice(0),o=e.indexOf(this.value);o!=-1&&(e.splice(o,1),i.values=e)}setTimeout(()=>this.updateAllChecked(),1)}connectedCallback(){if(super.connectedCallback(),this.getFormPublisher()&&this.name){const o=this.getFormPublisherValue();o&&Array.isArray(o)&&o.indexOf(this.value)!==-1&&(this.checked=!0)}const e=this.getCheckAllPublisher();e&&(e.checkMode.onAssign(this.onChecksAllRequest),this.checksAll()&&(e.hasCheckAll=!0),e.values.get()||(e.values=[]),this.checksAll()||(e.values=[...e.values.get(),this.value])),this.hasAttribute("checked")&&(!this.publisher||this.publisher.get().checked!==!1)&&setTimeout(()=>this.checked=!0,1)}}return es([l()],t.prototype,"value",1),es([l()],t.prototype,"forceAutoFill",2),es([l({type:Boolean})],t.prototype,"unique",2),es([l({type:Boolean})],t.prototype,"radio",2),es([l()],t.prototype,"checked",1),t};/**
72
+ */const Tr="important",$n=" !"+Tr,bt=me(class extends Ee{constructor(r){var t;if(super(r),r.type!==Le.ATTRIBUTE||r.name!=="style"||((t=r.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((t,s)=>{const i=r[s];return i==null?t:t+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(r,[t]){const{style:s}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const i of this.ft)t[i]==null&&(this.ft.delete(i),i.includes("-")?s.removeProperty(i):s[i]=null);for(const i in t){const e=t[i];if(e!=null){this.ft.add(i);const o=typeof e=="string"&&e.endsWith($n);i.includes("-")||o?s.setProperty(i,o?e.slice(0,-11):e,o?Tr:""):s[i]=e}}return yt}});var Pn=Object.defineProperty,An=Object.getOwnPropertyDescriptor,Et=(r,t,s,i)=>{for(var e=i>1?void 0:i?An(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Pn(t,s,e),e};const Es=new Map,Me=r=>{class t extends r{constructor(...i){super(),this.touched=!1,this.error=!1,this.autofocus=!1,this.required=!1,this.forceAutoFill=!1,this.disabled=null,this.formDataProvider="",this._name="",this._value="",this.onValueAssign=e=>{this.setValueFromPublisher(e)},this.onFormValueAssign=async e=>{this.setFormValueFromPublisher(e)},this.onFormDataInValidate=()=>{const e=this.getFormPublisher();e&&e.isFormValid.get()&&this.validateFormElement()}}get name(){return this._name}set name(i){this.hasAttribute("name")&&!this.forceAutoFill&&(i=this.getAttribute("name")),this._name=i,this.requestUpdate()}validateFormElement(){}unsetOnDisconnect(){return this.hasAttribute("unsetOnDisconnect")}updateDataValue(){this.getAttribute("name")&&this.getFormPublisher()&&(this.setFormPublisherValue(this.getValueForFormPublisher()),this.setFormValueFromPublisher(this.getFormPublisherValue()))}getFormPublisher(){return this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?N.get(this.formDataProvider):null}setFormPublisherValue(i){const e=this.getFormPublisher();e&&pt(e,this.name).set(i)}getFormPublisherValue(){const i=this.getFormPublisher();return i?pt(i,this.name).get():null}getValueForFormPublisher(){return this.value}setValueFromPublisher(i){this.value=i}setFormValueFromPublisher(i){this.value=i}get value(){return this._value}set value(i){i==null&&(i=""),tt.isObject(i)&&Object.prototype.hasOwnProperty.call(i,"__value")&&i._value==null&&(i=""),this._value!=i&&(this._value=i,this.updateDataValue(),this.requestUpdate())}initPublisher(){let i=this.getFormPublisher();const e=this.hasAncestorAttribute("initFromPublisher")&&this._name&&this.getFormPublisherValue()?this.getFormPublisherValue():this.getAttribute("value");this._name&&this.publisher&&pt(this.publisher,this._name).offAssign(this.onValueAssign),this._name&&i&&pt(i,this._name).offAssign(this.onFormValueAssign),super.initPublisher(),this.name||(this._name=this.getAttribute("name")),this.value||(this._value=this.getAttribute("value")),this.publisher&&this._name&&pt(this.publisher,this._name).onAssign(this.onValueAssign),i=this.getFormPublisher(),this._name&&i&&(pt(i,this._name).onAssign(this.onFormValueAssign),i.onFormInvalidate(this.onFormDataInValidate)),this.updateDataValue(),e&&(this.value=e)}handleBlur(){this.touched=!0}handleChange(i){this.value=i.target.value;const e=new Event("change");this.dispatchEvent(e)}addKeyboardNavigation(){const i=this.getAncestorAttributeValue("data-keyboard-nav");if(!i)return;const e=i.split(" "),o=e[0];if(!o)return;for(const a of e){Es.has(a)||Es.set(a,[]);const c=Es.get(a);(c==null?void 0:c.indexOf(this))==-1&&c.push(this)}const n=Es.get(o);this.addEventListener("keydown",a=>{var v;const c=a;if(!["ArrowDown","ArrowUp"].includes(c.key))return;const h="input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])",d=n==null?void 0:n.filter(b=>{var D;const y=(D=b.shadowRoot)==null?void 0:D.querySelector(h);if(!y)return!1;const _=window.getComputedStyle(y);return _.display!=="none"&&_.display!==""&&_.pointerEvents!="none"&&_.visibility!=="hidden"&&y.getBoundingClientRect().width>0});let p=null;if(c.key=="ArrowDown"&&d){const b=d.indexOf(this);b==d.length-1?p=d[0]:p=d[b+1]}else if(c.key=="ArrowUp"&&d){const b=d.indexOf(this);b==0?p=d[d.length-1]:p=d[b-1]}const g=(v=p==null?void 0:p.shadowRoot)==null?void 0:v.querySelector(h);g&&g.focus&&(g.focus(),a.preventDefault(),a.stopPropagation())})}focus(){var e;const i=(e=this.shadowRoot)==null?void 0:e.querySelector("[data-form-element], button");i==null||i.focus()}connectedCallback(){this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"),super.connectedCallback(),this.addKeyboardNavigation()}unset(){this.value=null}disconnectedCallback(){this.unsetOnDisconnect()&&this.unset(),super.disconnectedCallback(),this._name&&this.publisher&&pt(this.publisher,this._name).offAssign(this.onValueAssign);const i=this.getFormPublisher();this._name&&i&&(pt(i,this._name).offAssign(this.onFormValueAssign),i.offFormInvalidate(this.onFormDataInValidate))}}return Et([l({type:Boolean,reflect:!0})],t.prototype,"touched",2),Et([l({type:Boolean})],t.prototype,"error",2),Et([l({type:Boolean})],t.prototype,"autofocus",2),Et([l({type:Boolean})],t.prototype,"required",2),Et([l({type:Boolean})],t.prototype,"forceAutoFill",2),Et([l({type:Boolean})],t.prototype,"disabled",2),Et([l({type:String,attribute:"data-aria-label"})],t.prototype,"ariaLabel",2),Et([l({type:String,attribute:"data-aria-labelledby"})],t.prototype,"ariaLabelledby",2),Et([l()],t.prototype,"name",1),Et([l()],t.prototype,"value",1),t};let Cn=class Oe{static areEqual(t,s){return t.length===s.length?t.every((i,e)=>i===s[e]):!1}static from2d(t){return{to1D:()=>{let s=[];return t.forEach(i=>s=s.concat(i)),this.from(s)}}}static from(t){return{get:()=>t||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:s=>{if(t.length<1)return!0;const i=(t[0]||{})[s];return t.every(e=>(e||{})[s]==i)}})})}),value:()=>({forKey:s=>Oe.from(t.map(i=>i[s]))}),copy:()=>({fromKey:s=>({toKey:i=>{t.forEach(e=>{e[i]=Array.isArray(e[s])?[...e[s]]:typeof e[s]=="object"&&e[s]!=null?{...e[s]}:e[s]})}})})}),map:s=>Oe.from(t.map(s)),filter:s=>Oe.from(t.filter(s)),find:s=>t.find(s),some:s=>t.some(s),every:s=>t.every(s),group:()=>({byKey:s=>{const i=[],e=new Map;for(const o of t){const n=o[s];if(!e.has(n)){const a=i.length;e.set(n,a);const c={items:[]};c[s]=n,i.push(c)}i[e.get(n)].items.push(o)}return Oe.from(i)}}),without:()=>({duplicates:()=>({forKey:s=>{const i=[...new Set(t.map(e=>e[s]))];return Oe.from(i.map(e=>t.find(o=>o[s]==e)))}}),itemsIn:s=>({havingSameValue:()=>({forKey:i=>{const e=(o,n)=>a=>o[n]!=a[n];return Oe.from(t.filter(o=>s.every(e(o,i))))}})})})}}};var Sn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function On(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var wi={exports:{}};(function(r,t){var s=[].slice;(function(i,e){return t!==null?r.exports=e():i.UrlPattern=e()})(Sn,function(){var i,e,o,n,a,c,h,d,p,g,v,b,y,_,D;return p=function(f){return f.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},h=function(f,u){var w,S,O;for(O=[],w=-1,S=f.length;++w<S;)O=O.concat(u(f[w]));return O},_=function(f,u){var w,S,O;for(O="",w=-1,S=f.length;++w<S;)O+=u(f[w]);return O},y=function(f){return new RegExp(f.toString()+"|").exec("").length-1},v=function(f,u){var w,S,O,T,q;for(T={},w=-1,O=f.length;++w<O;)S=f[w],q=u[w],q!=null&&(T[S]!=null?(Array.isArray(T[S])||(T[S]=[T[S]]),T[S].push(q)):T[S]=q);return T},i={},i.Result=function(f,u){this.value=f,this.rest=u},i.Tagged=function(f,u){this.tag=f,this.value=u},i.tag=function(f,u){return function(w){var S,O;if(S=u(w),S!=null)return O=new i.Tagged(f,S.value),new i.Result(O,S.rest)}},i.regex=function(f){return function(u){var w,S;if(w=f.exec(u),w!=null)return S=w[0],new i.Result(S,u.slice(S.length))}},i.sequence=function(){var f;return f=1<=arguments.length?s.call(arguments,0):[],function(u){var w,S,O,T,q,W;for(w=-1,S=f.length,W=[],T=u;++w<S;){if(O=f[w],q=O(T),q==null)return;W.push(q.value),T=q.rest}return new i.Result(W,T)}},i.pick=function(){var f,u;return f=arguments[0],u=2<=arguments.length?s.call(arguments,1):[],function(w){var S,O;if(O=i.sequence.apply(i,u)(w),O!=null)return S=O.value,O.value=S[f],O}},i.string=function(f){var u;return u=f.length,function(w){if(w.slice(0,u)===f)return new i.Result(f,w.slice(u))}},i.lazy=function(f){var u;return u=null,function(w){return u==null&&(u=f()),u(w)}},i.baseMany=function(f,u,w,S,O){var T,q,W,kt;for(W=O,kt=w?"":[];!(u!=null&&(T=u(W),T!=null)||(q=f(W),q==null));)w?kt+=q.value:kt.push(q.value),W=q.rest;if(!(S&&kt.length===0))return new i.Result(kt,W)},i.many1=function(f){return function(u){return i.baseMany(f,null,!1,!0,u)}},i.concatMany1Till=function(f,u){return function(w){return i.baseMany(f,u,!0,!0,w)}},i.firstChoice=function(){var f;return f=1<=arguments.length?s.call(arguments,0):[],function(u){var w,S,O,T;for(w=-1,S=f.length;++w<S;)if(O=f[w],T=O(u),T!=null)return T}},b=function(f){var u;return u={},u.wildcard=i.tag("wildcard",i.string(f.wildcardChar)),u.optional=i.tag("optional",i.pick(1,i.string(f.optionalSegmentStartChar),i.lazy(function(){return u.pattern}),i.string(f.optionalSegmentEndChar))),u.name=i.regex(new RegExp("^["+f.segmentNameCharset+"]+")),u.named=i.tag("named",i.pick(1,i.string(f.segmentNameStartChar),i.lazy(function(){return u.name}))),u.escapedChar=i.pick(1,i.string(f.escapeChar),i.regex(/^./)),u.static=i.tag("static",i.concatMany1Till(i.firstChoice(i.lazy(function(){return u.escapedChar}),i.regex(/^./)),i.firstChoice(i.string(f.segmentNameStartChar),i.string(f.optionalSegmentStartChar),i.string(f.optionalSegmentEndChar),u.wildcard))),u.token=i.lazy(function(){return i.firstChoice(u.wildcard,u.optional,u.named,u.static)}),u.pattern=i.many1(i.lazy(function(){return u.token})),u},d={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},c=function(f,u){if(Array.isArray(f))return _(f,function(w){return c(w,u)});switch(f.tag){case"wildcard":return"(.*?)";case"named":return"(["+u+"]+)";case"static":return p(f.value);case"optional":return"(?:"+c(f.value,u)+")?"}},a=function(f,u){return u==null&&(u=d.segmentValueCharset),"^"+c(f,u)+"$"},n=function(f){if(Array.isArray(f))return h(f,n);switch(f.tag){case"wildcard":return["_"];case"named":return[f.value];case"static":return[];case"optional":return n(f.value)}},g=function(f,u,w,S){var O,T,q,W;if(S==null&&(S=!1),W=f[u],W==null){if(S)throw new Error("no values provided for key `"+u+"`");return}if(O=w[u]||0,T=Array.isArray(W)?W.length-1:0,O>T){if(S)throw new Error("too few values provided for key `"+u+"`");return}return q=Array.isArray(W)?W[O]:W,S&&(w[u]=O+1),q},o=function(f,u,w){var S,O;if(Array.isArray(f)){for(S=-1,O=f.length;++S<O;)if(o(f[S],u,w))return!0;return!1}switch(f.tag){case"wildcard":return g(u,"_",w,!1)!=null;case"named":return g(u,f.value,w,!1)!=null;case"static":return!1;case"optional":return o(f.value,u,w)}},D=function(f,u,w){if(Array.isArray(f))return _(f,function(S){return D(S,u,w)});switch(f.tag){case"wildcard":return g(u,"_",w,!0);case"named":return g(u,f.value,w,!0);case"static":return f.value;case"optional":return o(f.value,u,w)?D(f.value,u,w):""}},e=function(f,u){var w,S,O,T,q;if(f instanceof e){this.isRegex=f.isRegex,this.regex=f.regex,this.ast=f.ast,this.names=f.names;return}if(this.isRegex=f instanceof RegExp,!(typeof f=="string"||this.isRegex))throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=f,u!=null){if(!Array.isArray(u))throw new Error("if first argument is a regex the second argument may be an array of group names but you provided something else");if(w=y(this.regex),u.length!==w)throw new Error("regex contains "+w+" groups but array of group names contains "+u.length);this.names=u}return}if(f==="")throw new Error("argument must not be the empty string");if(q=f.replace(/\s+/g,""),q!==f)throw new Error("argument must not contain whitespace");if(S={escapeChar:(u!=null?u.escapeChar:void 0)||d.escapeChar,segmentNameStartChar:(u!=null?u.segmentNameStartChar:void 0)||d.segmentNameStartChar,segmentNameCharset:(u!=null?u.segmentNameCharset:void 0)||d.segmentNameCharset,segmentValueCharset:(u!=null?u.segmentValueCharset:void 0)||d.segmentValueCharset,optionalSegmentStartChar:(u!=null?u.optionalSegmentStartChar:void 0)||d.optionalSegmentStartChar,optionalSegmentEndChar:(u!=null?u.optionalSegmentEndChar:void 0)||d.optionalSegmentEndChar,wildcardChar:(u!=null?u.wildcardChar:void 0)||d.wildcardChar},T=b(S),O=T.pattern(f),O==null)throw new Error("couldn't parse pattern");if(O.rest!=="")throw new Error("could only partially parse pattern");this.ast=O.value,this.regex=new RegExp(a(this.ast,S.segmentValueCharset)),this.names=n(this.ast)},e.prototype.match=function(f){var u,w;return w=this.regex.exec(f),w==null?null:(u=w.slice(1),this.names?v(this.names,u):u)},e.prototype.stringify=function(f){if(f==null&&(f={}),this.isRegex)throw new Error("can't stringify patterns generated from a regex");if(f!==Object(f))throw new Error("argument must be an object or undefined");return D(this.ast,f,{})},e.escapeForRegex=p,e.concatMap=h,e.stringConcatMap=_,e.regexGroupCount=y,e.keysAndValuesToObject=v,e.P=i,e.newParser=b,e.defaultOptions=d,e.astNodeToRegexString=a,e.astNodeToNames=n,e.getParam=g,e.astNodeContainsSegmentsForProvidedParams=o,e.stringify=D,e})})(wi,wi.exports);var Dn=wi.exports;const Bt=On(Dn),kn=Mo,Ln=Cn,En=Ps,Nn=ws,Gt=K,Tn=ct,ts=tt,Mn=Be,it=N,In=Ne,jn=Bt;window["concorde-utils"]=window["concorde-utils"]||{},window["concorde-utils"]={Utils:kn,Arrays:Ln,DataBindObserver:En,Format:Nn,HTML:Gt,LocationHandler:Tn,Objects:ts,PublisherProxy:Mn,PublisherManager:it,api:In,URLPattern:jn};var Fn=Object.defineProperty,zn=Object.getOwnPropertyDescriptor,es=(r,t,s,i)=>{for(var e=i>1?void 0:i?zn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Fn(t,s,e),e};const xi=r=>{class t extends r{constructor(){super(...arguments),this._value="",this.forceAutoFill=!1,this.unique=null,this.radio=null,this._checked=null,this.updateAllChecked=()=>{var n;const i=this.getAttribute("name"),e=this.getCheckAllPublisher(),o=this.getFormPublisher();if(e!=null&&e.hasCheckAll.get()&&!this.checksAll()&&e&&o&&i){if((n=this.getFormPublisherValue())!=null&&n.length)(this.checked===null||e.checkMode.get()=="noneChecked"||e.checkMode.get()==null)&&(e.checkMode="someUnchecked");else{e.checkMode="noneChecked";return}const a=this.getFormPublisherValue(),c=e.values.get();if(c&&c.length){let h=c.length;for(const d of c)a.indexOf(d)==-1&&(h-=1);h==c.length&&(e.checkMode="allChecked"),h==0&&(e.checkMode="noneChecked")}c.indexOf(this.value)==-1&&this.unsetOnDisconnect()&&(this.checked=null)}},this.onChecksAllRequest=i=>{this.removeAttribute("allChecked"),this.removeAttribute("indeterminate"),i=="allChecked"&&(this.checked=!0,this.setAttribute("allChecked","")),i=="noneChecked"&&(this.checked=null),i=="someUnchecked"&&(this.checksAll()&&(this.checked="indeterminate"),this.setAttribute("indeterminate",""))}}get value(){return this._value}set value(i){if(this.value==i||(this.hasAttribute("value")&&!this.forceAutoFill&&(i=this.getAttribute("value")),this._value==i)||i==null||(this._value=i,!this.value))return;if(this.getFormPublisher()&&this.name){let o=this.getFormPublisherValue();(this.radio||this.unique)&&(this.checked=o==i?!0:null),Array.isArray(o)||(o=[]),o.indexOf(i)!=-1&&(this.checked=!0)}this.checked==!0&&this.updateDataValue(),this.requestUpdate()}get checked(){return this._checked}set checked(i){if(this.setCheckedValue(i),this.checksAll()){const e=this.getCheckAllPublisher();e&&(this.checked===!0?e.checkMode="allChecked":this.checked===null&&(e.checkMode="noneChecked",this.getFormPublisher()&&this.setFormPublisherValue([])))}this.requestUpdate()}validateFormElement(){var o;const i=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(!i||i.checkValidity())return;const e=this.getFormPublisher();if(e){const n=this.getFormPublisherValue();if((this.unique||this.radio)&&n!==null&&n!==void 0&&n.toString().length>0)return;e.isFormValid=!1,i.reportValidity()}}checksAll(){return this.hasAttribute("checksAll")}setCheckedValue(i){this._checked!=i&&(this._checked=i,this.updateDataValue(),this.requestUpdate(),setTimeout(()=>this.updateAllChecked(),1))}handleChange(){const i=this.checked===!0?this.radio?!0:null:!0;this.checked=i;const e=new Event("change");this.dispatchEvent(e)}getValueForFormPublisher(){let i=this.getFormPublisherValue();if(this.radio)return this.checked===!0&&this.value!=null?this.value:i;if(this.unique)return this.checked===!0&&this.value!=null?this.value:null;Array.isArray(i)||(i=[]);const e=i.slice(0),o=e.indexOf(this.value);return this.checked===!0&&o===-1&&!this.checksAll()&&e.push(this.value),this.checked===null&&o!==-1&&e.splice(o,1),e}setFormValueFromPublisher(i){if(this.unique||this.radio){this.checked=this.value==i?!0:null;return}Array.isArray(i)||(i=[]),!this.checksAll()&&(this.checked=i.indexOf(this.value)!==-1?!0:null)}getCheckAllPublisher(){this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"));const i=this.formDataProvider,e=this.getAttribute("name");return!i||!e?null:it.get(i+"/"+e+"/_available_values_")}unset(){this.checked=null}disconnectedCallback(){super.disconnectedCallback();const i=this.getCheckAllPublisher();if(i&&(i.checkMode.offAssign(this.onChecksAllRequest),!this.checksAll())){const e=i.values.get().slice(0),o=e.indexOf(this.value);o!=-1&&(e.splice(o,1),i.values=e)}setTimeout(()=>this.updateAllChecked(),1)}connectedCallback(){if(super.connectedCallback(),this.getFormPublisher()&&this.name){const o=this.getFormPublisherValue();o&&Array.isArray(o)&&o.indexOf(this.value)!==-1&&(this.checked=!0)}const e=this.getCheckAllPublisher();e&&(e.checkMode.onAssign(this.onChecksAllRequest),this.checksAll()&&(e.hasCheckAll=!0),e.values.get()||(e.values=[]),this.checksAll()||(e.values=[...e.values.get(),this.value])),this.hasAttribute("checked")&&(!this.publisher||this.publisher.get().checked!==!1)&&setTimeout(()=>this.checked=!0,1)}}return es([l()],t.prototype,"value",1),es([l()],t.prototype,"forceAutoFill",2),es([l({type:Boolean})],t.prototype,"unique",2),es([l({type:Boolean})],t.prototype,"radio",2),es([l()],t.prototype,"checked",1),t};/**
73
73
  * @license
74
74
  * Copyright 2018 Google LLC
75
75
  * SPDX-License-Identifier: BSD-3-Clause
@@ -106,11 +106,11 @@
106
106
  :host([size="inherit"]) {
107
107
  --sc-_fs: 1em;
108
108
  }
109
- `;var Rn=Object.defineProperty,Un=Object.getOwnPropertyDescriptor,H=(r,t,s,i)=>{for(var e=i>1?void 0:i?Un(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Rn(t,s,e),e};const Vn="sonic-button";let I=class extends xi(Me(G(x))){constructor(){super(...arguments),this.type="default",this.variant="default",this.shape="default",this.direction="row",this.alignItems="center",this.justify="center",this.minWidth="0",this.icon=!1,this.download=null,this.autoActive="partial",this.loading=!1,this.hasPrefix=!1,this.hasSuffix=!1,this._href="",this.goBack=null,this.pushState=!1,this.active=!1,this.autoRepeat=!1,this.pointerDownTime=0,this.lastRepeatTime=0,this.isRepeating=!1,this.handleRepeatend=()=>{window.removeEventListener("pointerup",this.handleRepeatend),window.removeEventListener("blur",this.handleRepeatend),this.autoRepeat&&(this.isRepeating=!1)},this.location=""}set href(r){this._href=r;const t=this._href.toString();t&&t.indexOf("http")!=0?lt.onChange(this):lt.offChange(this),this.requestUpdate()}get href(){return this._href}handleNavigation(r){r.preventDefault(),lt.changeFromComponent(this)}handleChange(r){if(!((r==null?void 0:r.type)=="click"&&this.autoRepeat)&&(super.handleChange(),(this.pushState||this.goBack!==null)&&(r==null||r.preventDefault(),r==null||r.stopPropagation(),lt.changeFromComponent(this)),this.hasAttribute("reset"))){const t=this.getAttribute("reset"),s=t?it.get(t):this.getFormPublisher();s&&s.set({})}}handleRepeatStart(r){this.autoRepeat&&(this.handleChange(r),this.pointerDownTime=Date.now(),this.isRepeating=!0,this.repeat()),window.addEventListener("pointerup",this.handleRepeatend),window.addEventListener("blur",this.handleRepeatend)}repeat(){if(this.isRepeating){if(this.hasAttribute("disabled")){this.isRepeating=!1;return}window.requestAnimationFrame(this.repeat.bind(this)),!(Date.now()-this.pointerDownTime<500)&&(Date.now()-this.lastRepeatTime<100||(this.handleChange(),this.lastRepeatTime=Date.now()))}}connectedCallback(){super.connectedCallback()}setCheckedValue(r){if(this.name){if(r?this.setAttribute("active","true"):this.removeAttribute("active"),r==this._checked)return;super.setCheckedValue(r)}}disconnectedCallback(){lt.offChange(this),super.disconnectedCallback()}willUpdate(r){(r.has("href")||r.has("autoActive"))&&lt.updateComponentActiveState(this),r.has("location")&&lt.updateComponentActiveState(this)}render(){const r={flexDirection:this.direction,alignItems:this.alignItems,justifyContent:this.justify,align:this.align,minWidth:this.minWidth},t=m`
109
+ `;var Rn=Object.defineProperty,Un=Object.getOwnPropertyDescriptor,H=(r,t,s,i)=>{for(var e=i>1?void 0:i?Un(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Rn(t,s,e),e};const Vn="sonic-button";let I=class extends xi(Me(G(x))){constructor(){super(...arguments),this.type="default",this.variant="default",this.shape="default",this.direction="row",this.alignItems="center",this.justify="center",this.minWidth="0",this.icon=!1,this.download=null,this.autoActive="partial",this.loading=!1,this.hasPrefix=!1,this.hasSuffix=!1,this._href="",this.goBack=null,this.pushState=!1,this.active=!1,this.autoRepeat=!1,this.pointerDownTime=0,this.lastRepeatTime=0,this.isRepeating=!1,this.handleRepeatend=()=>{window.removeEventListener("pointerup",this.handleRepeatend),window.removeEventListener("blur",this.handleRepeatend),this.autoRepeat&&(this.isRepeating=!1)},this.location=""}set href(r){this._href=r;const t=this._href.toString();t&&t.indexOf("http")!=0?ct.onChange(this):ct.offChange(this),this.requestUpdate()}get href(){return this._href}handleNavigation(r){r.preventDefault(),ct.changeFromComponent(this)}handleChange(r){if(!((r==null?void 0:r.type)=="click"&&this.autoRepeat)&&(super.handleChange(),(this.pushState||this.goBack!==null)&&(r==null||r.preventDefault(),r==null||r.stopPropagation(),ct.changeFromComponent(this)),this.hasAttribute("reset"))){const t=this.getAttribute("reset"),s=t?it.get(t):this.getFormPublisher();s&&s.set({})}}handleRepeatStart(r){this.autoRepeat&&(this.handleChange(r),this.pointerDownTime=Date.now(),this.isRepeating=!0,this.repeat()),window.addEventListener("pointerup",this.handleRepeatend),window.addEventListener("blur",this.handleRepeatend)}repeat(){if(this.isRepeating){if(this.hasAttribute("disabled")){this.isRepeating=!1;return}window.requestAnimationFrame(this.repeat.bind(this)),!(Date.now()-this.pointerDownTime<500)&&(Date.now()-this.lastRepeatTime<100||(this.handleChange(),this.lastRepeatTime=Date.now()))}}connectedCallback(){super.connectedCallback()}setCheckedValue(r){if(this.name){if(r?this.setAttribute("active","true"):this.removeAttribute("active"),r==this._checked)return;super.setCheckedValue(r)}}disconnectedCallback(){ct.offChange(this),super.disconnectedCallback()}willUpdate(r){(r.has("href")||r.has("autoActive"))&&ct.updateComponentActiveState(this),r.has("location")&&ct.updateComponentActiveState(this)}render(){const r={flexDirection:this.direction,alignItems:this.alignItems,justifyContent:this.justify,align:this.align,minWidth:this.minWidth},t=m`
110
110
  <button
111
111
  part="button"
112
112
  class=${this.hasPrefix||this.hasSuffix?"has-prefix-or-suffix":""}
113
- style=${gt(r)}
113
+ style=${bt(r)}
114
114
  aria-controls=${A(this.ariaControls)}
115
115
  aria-expanded=${A(this.sonicAriaExpanded)}
116
116
  aria-label=${A(this.ariaLabel)}
@@ -505,7 +505,7 @@
505
505
  transform: translate(-50%, -50%) rotate(359deg);
506
506
  }
507
507
  }
508
- `],H([l({type:String,reflect:!0})],I.prototype,"type",2),H([l({type:String,reflect:!0})],I.prototype,"variant",2),H([l({type:String,reflect:!0})],I.prototype,"size",2),H([l({type:String,reflect:!0})],I.prototype,"shape",2),H([l({type:String})],I.prototype,"direction",2),H([l({type:String,reflect:!0})],I.prototype,"alignItems",2),H([l({type:String})],I.prototype,"justify",2),H([l({type:String,reflect:!0})],I.prototype,"align",2),H([l({type:String})],I.prototype,"minWidth",2),H([l({type:Boolean,reflect:!0})],I.prototype,"icon",2),H([l({type:String})],I.prototype,"download",2),H([l({type:String})],I.prototype,"autoActive",2),H([l({type:Boolean,reflect:!0})],I.prototype,"loading",2),H([N()],I.prototype,"hasPrefix",2),H([N()],I.prototype,"hasSuffix",2),H([ce({flatten:!0,slot:"prefix"})],I.prototype,"prefixes",2),H([ce({flatten:!0,slot:"suffix"})],I.prototype,"suffixes",2),H([l({type:String})],I.prototype,"target",2),H([l({type:String})],I.prototype,"href",1),H([l({type:String})],I.prototype,"goBack",2),H([l({type:Boolean})],I.prototype,"pushState",2),H([l({type:Boolean,reflect:!0})],I.prototype,"active",2),H([l({type:Boolean,reflect:!0})],I.prototype,"autoRepeat",2),H([l({type:String,attribute:"data-aria-controls"})],I.prototype,"ariaControls",2),H([l({type:Boolean,attribute:"data-aria-expanded"})],I.prototype,"sonicAriaExpanded",2),H([N()],I.prototype,"location",2),I=H([$(Vn)],I);/**
508
+ `],H([l({type:String,reflect:!0})],I.prototype,"type",2),H([l({type:String,reflect:!0})],I.prototype,"variant",2),H([l({type:String,reflect:!0})],I.prototype,"size",2),H([l({type:String,reflect:!0})],I.prototype,"shape",2),H([l({type:String})],I.prototype,"direction",2),H([l({type:String,reflect:!0})],I.prototype,"alignItems",2),H([l({type:String})],I.prototype,"justify",2),H([l({type:String,reflect:!0})],I.prototype,"align",2),H([l({type:String})],I.prototype,"minWidth",2),H([l({type:Boolean,reflect:!0})],I.prototype,"icon",2),H([l({type:String})],I.prototype,"download",2),H([l({type:String})],I.prototype,"autoActive",2),H([l({type:Boolean,reflect:!0})],I.prototype,"loading",2),H([L()],I.prototype,"hasPrefix",2),H([L()],I.prototype,"hasSuffix",2),H([ce({flatten:!0,slot:"prefix"})],I.prototype,"prefixes",2),H([ce({flatten:!0,slot:"suffix"})],I.prototype,"suffixes",2),H([l({type:String})],I.prototype,"target",2),H([l({type:String})],I.prototype,"href",1),H([l({type:String})],I.prototype,"goBack",2),H([l({type:Boolean})],I.prototype,"pushState",2),H([l({type:Boolean,reflect:!0})],I.prototype,"active",2),H([l({type:Boolean,reflect:!0})],I.prototype,"autoRepeat",2),H([l({type:String,attribute:"data-aria-controls"})],I.prototype,"ariaControls",2),H([l({type:Boolean,attribute:"data-aria-expanded"})],I.prototype,"sonicAriaExpanded",2),H([L()],I.prototype,"location",2),I=H([$(Vn)],I);/**
509
509
  * @license
510
510
  * Copyright 2017 Google LLC
511
511
  * SPDX-License-Identifier: BSD-3-Clause
@@ -612,7 +612,7 @@
612
612
  :host([size="3xl"]) svg {
613
613
  --sc-icon-size: 2.8em;
614
614
  }
615
- `,ls([N()],ye.prototype,"iconText",2),ls([l({type:String})],ye.prototype,"name",2),ls([l({type:String})],ye.prototype,"prefix",2),ls([l({type:String})],ye.prototype,"library",2),ye=ls([$(ua)],ye);const cs=P`
615
+ `,ls([L()],ye.prototype,"iconText",2),ls([l({type:String})],ye.prototype,"name",2),ls([l({type:String})],ye.prototype,"prefix",2),ls([l({type:String})],ye.prototype,"library",2),ye=ls([$(ua)],ye);const cs=P`
616
616
  .custom-scroll {
617
617
  overflow: auto !important;
618
618
  overflow-y: overlay !important;
@@ -842,7 +842,7 @@
842
842
  opacity: 0.85;
843
843
  pointer-events: none;
844
844
  }
845
- `],Tt([l({type:String})],xt.prototype,"title",2),Tt([l({type:String})],xt.prototype,"id",2),Tt([l({type:String})],xt.prototype,"text",2),Tt([l({type:String})],xt.prototype,"status",2),Tt([l({type:Boolean})],xt.prototype,"ghost",2),Tt([l({type:Boolean})],xt.prototype,"preserve",2),Tt([l({type:Boolean})],xt.prototype,"dismissForever",2),Tt([l({type:String})],xt.prototype,"maxHeight",2),Tt([N()],xt.prototype,"visible",2),xt=Tt([$(ba)],xt);const va=P`
845
+ `],Tt([l({type:String})],xt.prototype,"title",2),Tt([l({type:String})],xt.prototype,"id",2),Tt([l({type:String})],xt.prototype,"text",2),Tt([l({type:String})],xt.prototype,"status",2),Tt([l({type:Boolean})],xt.prototype,"ghost",2),Tt([l({type:Boolean})],xt.prototype,"preserve",2),Tt([l({type:Boolean})],xt.prototype,"dismissForever",2),Tt([l({type:String})],xt.prototype,"maxHeight",2),Tt([L()],xt.prototype,"visible",2),xt=Tt([$(ba)],xt);const va=P`
846
846
  :host {
847
847
  /* POLICES */
848
848
  /*
@@ -1009,7 +1009,7 @@
1009
1009
  transition-property: scale, opacity;
1010
1010
  transition-timing-function: cubic-bezier(0.25, 0.25, 0.42, 1.225);
1011
1011
  }
1012
- `],hs([l({type:String,reflect:!0})],_t.prototype,"theme",2),hs([l({type:Boolean,reflect:!0})],_t.prototype,"background",2),hs([l({type:Boolean,reflect:!0})],_t.prototype,"color",2),hs([l({type:Boolean,reflect:!0})],_t.prototype,"font",2),_t=hs([$($a)],_t);var Pa=Object.defineProperty,Aa=Object.getOwnPropertyDescriptor,oo=(r,t,s,i)=>{for(var e=i>1?void 0:i?Aa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Pa(t,s,e),e};const Ca="sonic-toast";let M=class extends x{constructor(){super(...arguments),this.toasts=[]}createRenderRoot(){return this}render(){const t=window.parent!=window;let s={pointerEvents:"none",gap:"1rem",display:"flex",margin:this.toasts.length?"1rem":"0"};return t||(s={...s,margin:"0",width:"calc(100% - 2.5rem)",position:"fixed",bottom:"1.25rem",right:"1.25rem",zIndex:"10000",maxWidth:"64ch",flexDirection:"column-reverse"}),M.handleExistingToastDelegation(),this.toasts?m`<div aria-live="polite" style=${gt(s)}>
1012
+ `],hs([l({type:String,reflect:!0})],_t.prototype,"theme",2),hs([l({type:Boolean,reflect:!0})],_t.prototype,"background",2),hs([l({type:Boolean,reflect:!0})],_t.prototype,"color",2),hs([l({type:Boolean,reflect:!0})],_t.prototype,"font",2),_t=hs([$($a)],_t);var Pa=Object.defineProperty,Aa=Object.getOwnPropertyDescriptor,oo=(r,t,s,i)=>{for(var e=i>1?void 0:i?Aa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Pa(t,s,e),e};const Ca="sonic-toast";let M=class extends x{constructor(){super(...arguments),this.toasts=[]}createRenderRoot(){return this}render(){const t=window.parent!=window;let s={pointerEvents:"none",gap:"1rem",display:"flex",margin:this.toasts.length?"1rem":"0"};return t||(s={...s,margin:"0",width:"calc(100% - 2.5rem)",position:"fixed",bottom:"1.25rem",right:"1.25rem",zIndex:"10000",maxWidth:"64ch",flexDirection:"column-reverse"}),M.handleExistingToastDelegation(),this.toasts?m`<div aria-live="polite" style=${bt(s)}>
1013
1013
  ${Ns(this.toasts,i=>i.id,i=>m`
1014
1014
  <sonic-toast-item
1015
1015
  maxHeight=${t?"none":"10rem"}
@@ -1235,7 +1235,7 @@
1235
1235
  * @license
1236
1236
  * Copyright 2021 Google LLC
1237
1237
  * SPDX-License-Identifier: BSD-3-Clause
1238
- */function*uo(r,t){if(r!==void 0){let s=0;for(const i of r)yield t(i,s++)}}var tl=Object.defineProperty,el=Object.getOwnPropertyDescriptor,rt=(r,t,s,i)=>{for(var e=i>1?void 0:i?el(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&tl(t,s,e),e};const sl="sonic-queue";let Q=class extends G(x){constructor(){super(...arguments),this.templates=null,this.items=null,this.noItems=null,this.skeleton=null,this.lastRequestTime=0,this.key="",this.itemPropertyMap=null,this.cache="default",this.targetRequestDuration=500,this.limit=5,this.lazyBoundsRatio=1,this.offset=0,this.resultCount=0,this.noLazyload=!1,this.loader="inline",this.filteredFields="",this.instanceId=0,this.localStorage="disabled",this.filterPublisher=null,this.filterTimeoutMs=400,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.updateFilteredContent=()=>{var n;const t=this.dataProviderExpression.split("?");t.shift();const s=new URLSearchParams(t.join("?")),i=(n=this.filterPublisher)==null?void 0:n.get(),e=this.filteredFields.split(" ");for(const a in i){let c=i[a];Array.isArray(c)&&(c=c.filter(h=>h!==null)),!(this.filteredFields&&!e.includes(a)||c==null||c.toString()==="")&&s.set(a,i[a].toString())}const o=s.toString();if(!(o==this.searchHash&&!this.isFirstRequest)){this.searchHash=o;for(const a of this.listDataProviders)E.delete(a);this.listDataProviders=[],clearTimeout(this.filterTimeoutId),this.filterTimeoutId=setTimeout(async()=>{const a=this.resultCount;this.props=null,this.requestId++,this.resultCount=a,await E.getInstance().isLocalStrorageReady,window.requestAnimationFrame(()=>this.next())},this.isFirstRequest?0:this.filterTimeoutMs),this.isFirstRequest=!1}},this.dataProviderExpression="",this.invalidateOnPageShow=!1,this.idKey="id",this.listDataProviders=[],this.nextHadEvent=!1,this.storedScrollY=0,this.storedScrollX=0}disconnectedCallback(){var r;for(const t of this.listDataProviders)E.delete(t),this.listDataProviders=[];(r=this.filterPublisher)==null||r.offInternalMutation(this.updateFilteredContent),this.props=null,this.limit=5,this.offset=0,this.resultCount=0,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.nextHadEvent=!1,this.publisher.set({}),super.disconnectedCallback()}async connectedCallback(){this.instanceId=Q.instanceCounter++,this.localStorage=this.getAttribute("localStorage")||this.localStorage,this.filterTimeoutMs=parseInt(this.getAttribute("filterTimeoutMs")||"400"),this.removeAttribute("localStorage"),this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.dataProvider||(this.dataProvider=this.dataProviderExpression||"sonic-queue-"+this.instanceId+"-"+Math.random().toString(36).substring(7)),this.dataProviderExpression||(this.dataProviderExpression=Gt.getAncestorAttributeValue(this.parentElement,"dataProvider")||""),this.storeScrollPosition(),super.connectedCallback(),this.publisher.set({}),this.key=this.getAttribute("key"),await E.getInstance().isLocalStrorageReady,this.templates||(this.templates=Array.from(this.querySelectorAll("template"))),this.lastRequestTime=new Date().getTime(),this.configFilter()}configFilter(){var t;const r=this.getAncestorAttributeValue("dataFilterProvider");if(!r){this.next();return}this.filterPublisher=E.getInstance().get(r),(t=this.filterPublisher)==null||t.onInternalMutation(this.updateFilteredContent)}storeScrollPosition(){this.isSafari()&&(this.storedScrollX=window.scrollX,this.storedScrollY=window.scrollY)}isSafari(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}updated(r){this.isSafari()&&((Math.abs(this.storedScrollX-window.scrollX)>10||Math.abs(this.storedScrollY-window.scrollY)>10)&&window.scrollTo(this.storedScrollX,this.storedScrollY),window.requestAnimationFrame(()=>{(Math.abs(this.storedScrollX-window.scrollX)>10||Math.abs(this.storedScrollY-window.scrollY)>10)&&window.scrollTo(this.storedScrollX,this.storedScrollY)})),super.updated(r)}resetDuration(){this.lastRequestTime=new Date().getTime()}next(r){var p,g,v;let t=this.offset;const i=new Date().getTime()-this.lastRequestTime;if(!this.nextHadEvent&&r&&(this.publisher.resultCount=0,this.resultCount=0),this.nextHadEvent=!!r,r){if(this.publisher.lastFetchedData=r.detail.fetchedData,r.detail.requestId<this.requestId)return;if(this.resultCount+=((p=r.detail.props)==null?void 0:p.length)||0,!r.detail.isFirstLoad||!((g=r.detail.props)!=null&&g.length)||this.dataProviderExpression.indexOf("$offset")==-1){this.publisher.resultCount=this.resultCount;return}}if(Array.isArray(this.props)){const b=this.props,y=b[b.length-1];t=parseInt(y.offset.toString())+parseInt(y.limit.toString())}else{const b=[];b.resultCount=this.resultCount,b.lastFetchedData=(r==null?void 0:r.detail.fetchedData)||{},this.props=b}i>0&&r&&!this.localStorage&&(this.limit=Math.round(this.limit/i*this.targetRequestDuration)),this.limit<1&&(this.limit=1),this.limit>15&&(this.limit=15);let e=this.dataProviderExpression.replace("$offset",t+"").replace("$limit",this.limit+"");const o=e.split("?");let n=o.shift();const a=new URLSearchParams(o.join("?")),c=(v=this.filterPublisher)==null?void 0:v.get(),h=this.filteredFields.split(" ");for(const b in c)this.filteredFields&&h.includes(b)||c[b]==null||c[b]==""||a.set(b,c[b]);this.searchHash||(this.searchHash=a.toString()),n=n+"?"+a.toString(),e=e+"_item_from_queue_"+this.instanceId,this.listDataProviders.push(e);const d=[...this.props,{id:a.toString()+"/"+this.props.length,dataProvider:e,endPoint:n,offset:t,limit:this.limit}];d.resultCount=this.resultCount,d.lastFetchedData=(r==null?void 0:r.detail.fetchedData)||{},this.props=d,this.lastRequestTime=new Date().getTime()}render(){if(this.storeScrollPosition(),!Array.isArray(this.props))return C;let r=!this.noLazyload;return this.props.length==1&&(r=!1),this.style.display="block",m`
1238
+ */function*uo(r,t){if(r!==void 0){let s=0;for(const i of r)yield t(i,s++)}}var tl=Object.defineProperty,el=Object.getOwnPropertyDescriptor,rt=(r,t,s,i)=>{for(var e=i>1?void 0:i?el(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&tl(t,s,e),e};const sl="sonic-queue";let Q=class extends G(x){constructor(){super(...arguments),this.templates=null,this.items=null,this.noItems=null,this.skeleton=null,this.lastRequestTime=0,this.key="",this.itemPropertyMap=null,this.cache="default",this.targetRequestDuration=500,this.limit=5,this.lazyBoundsRatio=1,this.offset=0,this.resultCount=0,this.noLazyload=!1,this.loader="inline",this.filteredFields="",this.instanceId=0,this.localStorage="disabled",this.filterPublisher=null,this.filterTimeoutMs=400,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.updateFilteredContent=()=>{var n;const t=this.dataProviderExpression.split("?");t.shift();const s=new URLSearchParams(t.join("?")),i=(n=this.filterPublisher)==null?void 0:n.get(),e=this.filteredFields.split(" ");for(const a in i){let c=i[a];Array.isArray(c)&&(c=c.filter(h=>h!==null)),!(this.filteredFields&&!e.includes(a)||c==null||c.toString()==="")&&s.set(a,i[a].toString())}const o=s.toString();if(!(o==this.searchHash&&!this.isFirstRequest)){this.searchHash=o;for(const a of this.listDataProviders)N.delete(a);this.listDataProviders=[],clearTimeout(this.filterTimeoutId),this.filterTimeoutId=setTimeout(async()=>{const a=this.resultCount;this.props=null,this.requestId++,this.resultCount=a,await N.getInstance().isLocalStrorageReady,window.requestAnimationFrame(()=>this.next())},this.isFirstRequest?0:this.filterTimeoutMs),this.isFirstRequest=!1}},this.dataProviderExpression="",this.invalidateOnPageShow=!1,this.idKey="id",this.listDataProviders=[],this.nextHadEvent=!1,this.storedScrollY=0,this.storedScrollX=0}disconnectedCallback(){var r;for(const t of this.listDataProviders)N.delete(t),this.listDataProviders=[];(r=this.filterPublisher)==null||r.offInternalMutation(this.updateFilteredContent),this.props=null,this.limit=5,this.offset=0,this.resultCount=0,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.nextHadEvent=!1,this.publisher.set({}),super.disconnectedCallback()}async connectedCallback(){this.instanceId=Q.instanceCounter++,this.localStorage=this.getAttribute("localStorage")||this.localStorage,this.filterTimeoutMs=parseInt(this.getAttribute("filterTimeoutMs")||"400"),this.removeAttribute("localStorage"),this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.dataProvider||(this.dataProvider=this.dataProviderExpression||"sonic-queue-"+this.instanceId+"-"+Math.random().toString(36).substring(7)),this.dataProviderExpression||(this.dataProviderExpression=Gt.getAncestorAttributeValue(this.parentElement,"dataProvider")||""),this.storeScrollPosition(),super.connectedCallback(),this.publisher.set({}),this.key=this.getAttribute("key"),await N.getInstance().isLocalStrorageReady,this.templates||(this.templates=Array.from(this.querySelectorAll("template"))),this.lastRequestTime=new Date().getTime(),this.configFilter()}configFilter(){var t;const r=this.getAncestorAttributeValue("dataFilterProvider");if(!r){this.next();return}this.filterPublisher=N.getInstance().get(r),(t=this.filterPublisher)==null||t.onInternalMutation(this.updateFilteredContent)}storeScrollPosition(){this.isSafari()&&(this.storedScrollX=window.scrollX,this.storedScrollY=window.scrollY)}isSafari(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}updated(r){this.isSafari()&&((Math.abs(this.storedScrollX-window.scrollX)>10||Math.abs(this.storedScrollY-window.scrollY)>10)&&window.scrollTo(this.storedScrollX,this.storedScrollY),window.requestAnimationFrame(()=>{(Math.abs(this.storedScrollX-window.scrollX)>10||Math.abs(this.storedScrollY-window.scrollY)>10)&&window.scrollTo(this.storedScrollX,this.storedScrollY)})),super.updated(r)}resetDuration(){this.lastRequestTime=new Date().getTime()}next(r){var p,g,v;let t=this.offset;const i=new Date().getTime()-this.lastRequestTime;if(!this.nextHadEvent&&r&&(this.publisher.resultCount=0,this.resultCount=0),this.nextHadEvent=!!r,r){if(this.publisher.lastFetchedData=r.detail.fetchedData,r.detail.requestId<this.requestId)return;if(this.resultCount+=((p=r.detail.props)==null?void 0:p.length)||0,!r.detail.isFirstLoad||!((g=r.detail.props)!=null&&g.length)||this.dataProviderExpression.indexOf("$offset")==-1){this.publisher.resultCount=this.resultCount;return}}if(Array.isArray(this.props)){const b=this.props,y=b[b.length-1];t=parseInt(y.offset.toString())+parseInt(y.limit.toString())}else{const b=[];b.resultCount=this.resultCount,b.lastFetchedData=(r==null?void 0:r.detail.fetchedData)||{},this.props=b}i>0&&r&&!this.localStorage&&(this.limit=Math.round(this.limit/i*this.targetRequestDuration)),this.limit<1&&(this.limit=1),this.limit>15&&(this.limit=15);let e=this.dataProviderExpression.replace("$offset",t+"").replace("$limit",this.limit+"");const o=e.split("?");let n=o.shift();const a=new URLSearchParams(o.join("?")),c=(v=this.filterPublisher)==null?void 0:v.get(),h=this.filteredFields.split(" ");for(const b in c)this.filteredFields&&h.includes(b)||c[b]==null||c[b]==""||a.set(b,c[b]);this.searchHash||(this.searchHash=a.toString()),n=n+"?"+a.toString(),e=e+"_item_from_queue_"+this.instanceId,this.listDataProviders.push(e);const d=[...this.props,{id:a.toString()+"/"+this.props.length,dataProvider:e,endPoint:n,offset:t,limit:this.limit}];d.resultCount=this.resultCount,d.lastFetchedData=(r==null?void 0:r.detail.fetchedData)||{},this.props=d,this.lastRequestTime=new Date().getTime()}render(){if(this.storeScrollPosition(),!Array.isArray(this.props))return C;let r=!this.noLazyload;return this.props.length==1&&(r=!1),this.style.display="block",m`
1239
1239
  ${uo(this.props,(t,s)=>{var e;const i=s==0?this.templates:(e=this.templates)==null?void 0:e.filter(o=>o.getAttribute("data-value")!="no-item");return m`
1240
1240
  <sonic-list
1241
1241
  fetch
@@ -1262,18 +1262,18 @@
1262
1262
  >
1263
1263
  </sonic-list>
1264
1264
  `})}
1265
- `}};Q.instanceCounter=0,rt([l({type:Array})],Q.prototype,"templates",2),rt([l({type:Object})],Q.prototype,"items",2),rt([l({type:Object})],Q.prototype,"noItems",2),rt([l({type:Object})],Q.prototype,"skeleton",2),rt([l({type:Object})],Q.prototype,"itemPropertyMap",2),rt([l()],Q.prototype,"cache",2),rt([l()],Q.prototype,"targetRequestDuration",2),rt([l()],Q.prototype,"limit",2),rt([l()],Q.prototype,"lazyBoundsRatio",2),rt([l()],Q.prototype,"offset",2),rt([l()],Q.prototype,"resultCount",2),rt([l({type:Boolean})],Q.prototype,"noLazyload",2),rt([l({type:String})],Q.prototype,"loader",2),rt([l()],Q.prototype,"filteredFields",2),rt([l({type:String})],Q.prototype,"dataProviderExpression",2),rt([l({type:Boolean})],Q.prototype,"invalidateOnPageShow",2),rt([l({type:String})],Q.prototype,"idKey",2),Q=rt([$(sl)],Q);var il=Object.defineProperty,rl=Object.getOwnPropertyDescriptor,je=(r,t,s,i)=>{for(var e=i>1?void 0:i?rl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&il(t,s,e),e};const ol="sonic-submit";let ee=class extends G(x){constructor(){super(...arguments),this.submitResultKey=null,this.disabled=!1,this.endPoint=null,this.name="",this.value="",this.api=null,this.clickTimeStamp=0,this.submit=async r=>{var b;if(this.disabled||r instanceof KeyboardEvent&&r.key!=="Enter")return;r instanceof MouseEvent&&r.stopPropagation();const t=E.getInstance().get(this.getAncestorAttributeValue("formDataProvider"));if(t.isFormValid=!0,t.invalidateForm(),!t.isFormValid.get())return;if(this.disabled=!0,ot.show(),t.isFormValid,this.hasAttribute("native")){this.submitNativeForm();return}const i=((b=this.getAttribute("method"))==null?void 0:b.toLocaleLowerCase())||"post",e=this.hasAttribute("sendAsFormData"),o=t.get();delete o.isFormValid;const n=this.getAncestorAttributeValue("headersDataProvider"),a=n?E.getInstance().get(n):null;let c={};a&&(c=a.get());let h=null;const d=this.getAncestorAttributeValue("dataProvider"),p=this.endPoint||d,g=async()=>{var w,S,O,T,q,W,kt,Lo;const y={...o};if(delete y.needsCaptchaValidation,delete c.needsCaptchaValidation,e)h=await((w=this.api)==null?void 0:w.submitFormData(p,y,i,c));else switch(i){case"put":h=await((S=this.api)==null?void 0:S.put(p,y,c));break;case"patch":h=await((O=this.api)==null?void 0:O.patch(p,y,c));break;case"delete":h=await((T=this.api)==null?void 0:T.delete(p,y,c));break;case"get":const ei=new URLSearchParams;if(y)for(const Eo in y)ei.append(Eo,y[Eo]);const Bd="?"+ei.toString();h=await((q=this.api)==null?void 0:q.get(p+Bd,c));break;default:h=await((W=this.api)==null?void 0:W.post(p,y,c));break}ot.hide(),h?h._sonic_http_response_&&!h._sonic_http_response_.ok&&Object.keys(h).length===1&&(h.messages=[{content:"Network Error",status:"error"}]):h={messages:[{content:"Network Error",status:"error"}]};const _=this.getAncestorAttributeValue("clearedDataOnSuccess");_&&_.split(" ").forEach(ei=>E.get(ei).set({}));const D=this.hasAttribute("usernameKey")?this.getAttribute("usernameKey"):"username",f=this.hasAttribute("passwordKey")?this.getAttribute("passwordKey"):"password";(Lo=(kt=this.api)==null?void 0:kt.lastResult)!=null&&Lo.ok&&y[D]&&y[f]&&this.saveCredentials(y[D],y[f]),this.submitResultKey&&(h=tt.traverse(h,this.submitResultKey.split("."),!0));const u=this.getAncestorAttributeValue("submitResultDataProvider");u&&E.get(u).set(h),this.disabled=!1,this.dispatchEvent(new CustomEvent("submit",{detail:h,bubbles:!0,composed:!0}))},v=a!=null&&a.needsCaptchaValidation.get()?a:t.needsCaptchaValidation.get()?t:null;if(v){v.captchaToken="request_token";const y=_=>{_!="request_token"?(g(),v.captchaToken.offAssign(y)):(ot.hide(),this.disabled=!1)};v.captchaToken.onAssign(y)}else g()}}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",this.submit),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",this.submit),super.connectedCallback(),this.api=new Ne(this.getApiConfiguration())}submitNativeForm(){const r=Gt.getClosestForm(this);if(!r)return;const t=this.getAncestorAttributeValue("formDataProvider"),s={...E.get(t).get()};delete s.needsCaptchaValidation;for(const e in s){if(e=="isFormValid")continue;let o=r.querySelector('input[name="'+e+'"], select[name="'+e+'"], textarea[name="'+e+'"]');o||(o=document.createElement("input"),o.type="hidden",o.name=e,r.appendChild(o));let n=s[e];Array.isArray(n)&&(n=n.join(",")),o.type==="checkbox"||o.type==="radio"?n&&(o.checked=!0):o.value=n}const i=document.createElement("input");i.name=this.name,i.style.display="none",i.value=this.value,i.type="submit",r.appendChild(i),i&&i.click()}async saveCredentials(r,t){if("PasswordCredential"in window){const s=new window.PasswordCredential({id:r,password:t});await navigator.credentials.store(s)}}render(){return m`<div ?data-disabled=${this.disabled}><slot></slot></div>`}};ee.styles=P`
1265
+ `}};Q.instanceCounter=0,rt([l({type:Array})],Q.prototype,"templates",2),rt([l({type:Object})],Q.prototype,"items",2),rt([l({type:Object})],Q.prototype,"noItems",2),rt([l({type:Object})],Q.prototype,"skeleton",2),rt([l({type:Object})],Q.prototype,"itemPropertyMap",2),rt([l()],Q.prototype,"cache",2),rt([l()],Q.prototype,"targetRequestDuration",2),rt([l()],Q.prototype,"limit",2),rt([l()],Q.prototype,"lazyBoundsRatio",2),rt([l()],Q.prototype,"offset",2),rt([l()],Q.prototype,"resultCount",2),rt([l({type:Boolean})],Q.prototype,"noLazyload",2),rt([l({type:String})],Q.prototype,"loader",2),rt([l()],Q.prototype,"filteredFields",2),rt([l({type:String})],Q.prototype,"dataProviderExpression",2),rt([l({type:Boolean})],Q.prototype,"invalidateOnPageShow",2),rt([l({type:String})],Q.prototype,"idKey",2),Q=rt([$(sl)],Q);var il=Object.defineProperty,rl=Object.getOwnPropertyDescriptor,je=(r,t,s,i)=>{for(var e=i>1?void 0:i?rl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&il(t,s,e),e};const ol="sonic-submit";let ee=class extends G(x){constructor(){super(...arguments),this.submitResultKey=null,this.disabled=!1,this.endPoint=null,this.name="",this.value="",this.api=null,this.clickTimeStamp=0,this.submit=async r=>{var b;if(this.disabled||r instanceof KeyboardEvent&&r.key!=="Enter")return;r instanceof MouseEvent&&r.stopPropagation();const t=N.getInstance().get(this.getAncestorAttributeValue("formDataProvider"));if(t.isFormValid=!0,t.invalidateForm(),!t.isFormValid.get())return;if(this.disabled=!0,ot.show(),t.isFormValid,this.hasAttribute("native")){this.submitNativeForm();return}const i=((b=this.getAttribute("method"))==null?void 0:b.toLocaleLowerCase())||"post",e=this.hasAttribute("sendAsFormData"),o=t.get();delete o.isFormValid;const n=this.getAncestorAttributeValue("headersDataProvider"),a=n?N.getInstance().get(n):null;let c={};a&&(c=a.get());let h=null;const d=this.getAncestorAttributeValue("dataProvider"),p=this.endPoint||d,g=async()=>{var w,S,O,T,q,W,kt,Lo;const y={...o};if(delete y.needsCaptchaValidation,delete c.needsCaptchaValidation,e)h=await((w=this.api)==null?void 0:w.submitFormData(p,y,i,c));else switch(i){case"put":h=await((S=this.api)==null?void 0:S.put(p,y,c));break;case"patch":h=await((O=this.api)==null?void 0:O.patch(p,y,c));break;case"delete":h=await((T=this.api)==null?void 0:T.delete(p,y,c));break;case"get":const ei=new URLSearchParams;if(y)for(const Eo in y)ei.append(Eo,y[Eo]);const Bd="?"+ei.toString();h=await((q=this.api)==null?void 0:q.get(p+Bd,c));break;default:h=await((W=this.api)==null?void 0:W.post(p,y,c));break}ot.hide(),h?h._sonic_http_response_&&!h._sonic_http_response_.ok&&Object.keys(h).length===1&&(h.messages=[{content:"Network Error",status:"error"}]):h={messages:[{content:"Network Error",status:"error"}]};const _=this.getAncestorAttributeValue("clearedDataOnSuccess");_&&_.split(" ").forEach(ei=>N.get(ei).set({}));const D=this.hasAttribute("usernameKey")?this.getAttribute("usernameKey"):"username",f=this.hasAttribute("passwordKey")?this.getAttribute("passwordKey"):"password";(Lo=(kt=this.api)==null?void 0:kt.lastResult)!=null&&Lo.ok&&y[D]&&y[f]&&this.saveCredentials(y[D],y[f]),this.submitResultKey&&(h=tt.traverse(h,this.submitResultKey.split("."),!0));const u=this.getAncestorAttributeValue("submitResultDataProvider");u&&N.get(u).set(h),this.disabled=!1,this.dispatchEvent(new CustomEvent("submit",{detail:h,bubbles:!0,composed:!0}))},v=a!=null&&a.needsCaptchaValidation.get()?a:t.needsCaptchaValidation.get()?t:null;if(v){v.captchaToken="request_token";const y=_=>{_!="request_token"?(g(),v.captchaToken.offAssign(y)):(ot.hide(),this.disabled=!1)};v.captchaToken.onAssign(y)}else g()}}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",this.submit),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",this.submit),super.connectedCallback(),this.api=new Ne(this.getApiConfiguration())}submitNativeForm(){const r=Gt.getClosestForm(this);if(!r)return;const t=this.getAncestorAttributeValue("formDataProvider"),s={...N.get(t).get()};delete s.needsCaptchaValidation;for(const e in s){if(e=="isFormValid")continue;let o=r.querySelector('input[name="'+e+'"], select[name="'+e+'"], textarea[name="'+e+'"]');o||(o=document.createElement("input"),o.type="hidden",o.name=e,r.appendChild(o));let n=s[e];Array.isArray(n)&&(n=n.join(",")),o.type==="checkbox"||o.type==="radio"?n&&(o.checked=!0):o.value=n}const i=document.createElement("input");i.name=this.name,i.style.display="none",i.value=this.value,i.type="submit",r.appendChild(i),i&&i.click()}async saveCredentials(r,t){if("PasswordCredential"in window){const s=new window.PasswordCredential({id:r,password:t});await navigator.credentials.store(s)}}render(){return m`<div ?data-disabled=${this.disabled}><slot></slot></div>`}};ee.styles=P`
1266
1266
  [data-disabled] {
1267
1267
  opacity: 0.3;
1268
1268
  pointer-events: none;
1269
1269
  user-select: none;
1270
1270
  }
1271
- `,je([l({type:String})],ee.prototype,"submitResultKey",2),je([l({type:Boolean})],ee.prototype,"disabled",2),je([l({type:String})],ee.prototype,"endPoint",2),je([l()],ee.prototype,"name",2),je([l()],ee.prototype,"value",2),ee=je([$(ol)],ee);var nl=Object.defineProperty,al=Object.getOwnPropertyDescriptor,ps=(r,t,s,i)=>{for(var e=i>1?void 0:i?al(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&nl(t,s,e),e};const ll="sonic-router";let Fe=class extends Je(x){constructor(){super(...arguments),this.templateValueAttribute="data-route",this._location=document.location.href.replace(document.location.origin,"")}createRenderRoot(){return this}connectedCallback(){lt.onChange(this),super.connectedCallback()}disconnectedCallback(){lt.offChange(this),super.disconnectedCallback()}set location(r){this._location=r,this.requestUpdate()}get location(){return this._location}get cleanLocation(){const r=new URL(this.location,document.location.origin);return r.pathname+r.hash}get patternBasePath(){return this.basePath!==void 0?this.basePath:"(/)*"}get regExpBasePath(){return this.basePath!==void 0?"^"+this.basePath:""}handleroutes(){var t;if(!this.routes)return[];const r=[];for(let[s,i]of Object.entries(this.routes)){if(s==="fallback"||!i)continue;const e=new RegExp(this.regExpBasePath+s);if(e.test(this.cleanLocation)){const o=e.exec(this.cleanLocation)||[s];o.shift(),r.push(i([...o]))}else try{const n=new Bt(this.patternBasePath+s).match(this.cleanLocation);if(n){const a=n||{};r.push(i(a))}}catch{this.cleanLocation.indexOf((this.basePath||"")+s.replace(document.location.origin,""))!=-1&&r.push(i({}))}}return r.length==0&&(t=this.routes)!=null&&t.fallback&&this.isConnected&&r.push(this.routes.fallback()),r}render(){const r=this.handleroutes();if(r.length>0)return m`${r}`;const t=[];for(const s of this.templatePartsList){const i=s.getAttribute(this.templateValueAttribute)||"";if(new RegExp(this.regExpBasePath+i).test(this.cleanLocation))t.push(s);else try{new Bt(this.patternBasePath+i+"(/*)").match(this.cleanLocation)&&(s.setAttribute("mode","patternMatching"),t.push(s))}catch{this.cleanLocation.indexOf((this.basePath||"")+i.replace(document.location.origin,""))!=-1&&t.push(s)}}if(t.length==0){this.fallBackRoute&&this.isConnected&&(document.location.href=this.fallBackRoute);const s=this.templateList.find(i=>i.hasAttribute("data-fallback"));s&&t.push(s)}return m`${Ns(t,(s,i)=>i+new Date().getTime(),s=>{var i;if(s.title&&(document.title=s.title),s.hasAttribute("dataProviderExpression")){let e="";const o=s.getAttribute("dataProviderExpression")||"";if(s.getAttribute("mode")=="patternMatching"){const n=new Bt("(/)*"+(s.getAttribute(this.templateValueAttribute)||"")+"*");e=new Bt(o).stringify(n.match(this.cleanLocation))}else{const n=new RegExp(s.getAttribute(this.templateValueAttribute)||""),a=(this.cleanLocation+"").match(n);a&&(e=((i=a.shift())==null?void 0:i.replace(n,o))||"")}return m`<div
1271
+ `,je([l({type:String})],ee.prototype,"submitResultKey",2),je([l({type:Boolean})],ee.prototype,"disabled",2),je([l({type:String})],ee.prototype,"endPoint",2),je([l()],ee.prototype,"name",2),je([l()],ee.prototype,"value",2),ee=je([$(ol)],ee);var nl=Object.defineProperty,al=Object.getOwnPropertyDescriptor,ps=(r,t,s,i)=>{for(var e=i>1?void 0:i?al(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&nl(t,s,e),e};const ll="sonic-router";let Fe=class extends Je(x){constructor(){super(...arguments),this.templateValueAttribute="data-route",this._location=document.location.href.replace(document.location.origin,"")}createRenderRoot(){return this}connectedCallback(){ct.onChange(this),super.connectedCallback()}disconnectedCallback(){ct.offChange(this),super.disconnectedCallback()}set location(r){this._location=r,this.requestUpdate()}get location(){return this._location}get cleanLocation(){const r=new URL(this.location,document.location.origin);return r.pathname+r.hash}get patternBasePath(){return this.basePath!==void 0?this.basePath:"(/)*"}get regExpBasePath(){return this.basePath!==void 0?"^"+this.basePath:""}handleroutes(){var t;if(!this.routes)return[];const r=[];for(let[s,i]of Object.entries(this.routes)){if(s==="fallback"||!i)continue;const e=new RegExp(this.regExpBasePath+s);if(e.test(this.cleanLocation)){const o=e.exec(this.cleanLocation)||[s];o.shift(),r.push(i([...o]))}else try{const n=new Bt(this.patternBasePath+s).match(this.cleanLocation);if(n){const a=n||{};r.push(i(a))}}catch{this.cleanLocation.indexOf((this.basePath||"")+s.replace(document.location.origin,""))!=-1&&r.push(i({}))}}return r.length==0&&(t=this.routes)!=null&&t.fallback&&this.isConnected&&r.push(this.routes.fallback()),r}render(){const r=this.handleroutes();if(r.length>0)return m`${r}`;const t=[];for(const s of this.templatePartsList){const i=s.getAttribute(this.templateValueAttribute)||"";if(new RegExp(this.regExpBasePath+i).test(this.cleanLocation))t.push(s);else try{new Bt(this.patternBasePath+i+"(/*)").match(this.cleanLocation)&&(s.setAttribute("mode","patternMatching"),t.push(s))}catch{this.cleanLocation.indexOf((this.basePath||"")+i.replace(document.location.origin,""))!=-1&&t.push(s)}}if(t.length==0){this.fallBackRoute&&this.isConnected&&(document.location.href=this.fallBackRoute);const s=this.templateList.find(i=>i.hasAttribute("data-fallback"));s&&t.push(s)}return m`${Ns(t,(s,i)=>i+new Date().getTime(),s=>{var i;if(s.title&&(document.title=s.title),s.hasAttribute("dataProviderExpression")){let e="";const o=s.getAttribute("dataProviderExpression")||"";if(s.getAttribute("mode")=="patternMatching"){const n=new Bt("(/)*"+(s.getAttribute(this.templateValueAttribute)||"")+"*");e=new Bt(o).stringify(n.match(this.cleanLocation))}else{const n=new RegExp(s.getAttribute(this.templateValueAttribute)||""),a=(this.cleanLocation+"").match(n);a&&(e=((i=a.shift())==null?void 0:i.replace(n,o))||"")}return m`<div
1272
1272
  style="display:contents"
1273
1273
  dataProvider="${e}"
1274
1274
  >
1275
1275
  ${Mt(s)}
1276
- </div>`}return Mt(s)})}`}};ps([l({type:String})],Fe.prototype,"fallBackRoute",2),ps([l({type:Object})],Fe.prototype,"routes",2),ps([l({type:String})],Fe.prototype,"basePath",2),ps([l()],Fe.prototype,"location",1),Fe=ps([$(ll)],Fe);var cl=Object.defineProperty,hl=Object.getOwnPropertyDescriptor,dl=(r,t,s,i)=>{for(var e=i>1?void 0:i?hl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&cl(t,s,e),e};const pl="sonic-redirect";let fo=class extends G(x){connectedCallback(){this.noShadowDom="",this.style.display="none",super.connectedCallback(),this.udpateCallBack=()=>this.update(),this.publisher&&this.publisher.onInternalMutation(this.udpateCallBack)}disconnectedCallback(){this.publisher&&this.publisher.offInternalMutation(this.udpateCallBack),super.disconnectedCallback()}update(){if(this.hasAttribute("onAdded")){lt.changeFromComponent(this);return}if(!this.props)return;const r=this.getAttribute("onData").split("."),t=tt.traverse(this.props,r);t&&!(tt.isObject(t)&&t)&&lt.changeFromComponent(this)}};fo=dl([$(pl)],fo);var ul=Object.defineProperty,fl=Object.getOwnPropertyDescriptor,qs=(r,t,s,i)=>{for(var e=i>1?void 0:i?fl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ul(t,s,e),e};const ml="sonic-states";let us=class extends G(Je(x)){constructor(){super(...arguments),this.state="",this.inverted=!1,this.statePath="",this.onStateAssign=r=>{this.state=r,this.requestUpdate()}}connectedCallback(){if(this.noShadowDom="",super.connectedCallback(),this.hasAttribute("data-path")&&(this.statePath=this.getAttribute("data-path")),this.statePath){this.statePublisher=this.publisher;const r=this.statePath.split(".");for(const t of r)this.statePublisher=this.statePublisher[t];this.statePublisher.onAssign(this.onStateAssign)}}disconnectedCallback(){var r;this.statePath&&((r=this.statePublisher)==null||r.offAssign(this.onStateAssign)),super.disconnectedCallback()}handleStates(r){var s;if(!this.states)return[];const t=[];for(const[i,e]of Object.entries(this.states)){if(i==="fallback"||!e)continue;const o=new RegExp(i);if(o.test(r)){const n=o.exec(r)||[i];n.shift(),t.push(e([...n]))}else try{const n=new Bt("(/)*"+i+"*");if(n.match(r)){const a=n.match(r)||{};t.push(e(a))}}catch{r.indexOf(i.replace(document.location.origin,""))!=-1&&t.push(e({}))}}return t.length==0&&(s=this.states)!=null&&s.fallback&&this.isConnected&&t.push(this.states.fallback()),t}render(){let r=this.state;(!Array.isArray(r)&&tt.isObject(r)||r===void 0)&&(r="");const t=this.handleStates(r);if(t.length>0)return m`${t}`;const s=[];for(const i of this.templatePartsList){let e=i.getAttribute(this.templateValueAttribute),o=r;if(this.inverted&&(o=e,e=r),e==""&&(e=this.inverted?".*?":"^$"),new RegExp(e).test(o+""))s.push(i),i.removeAttribute("mode");else{const a=new Bt(e);a.names.length>0&&a.match(o)&&(i.setAttribute("mode","patternMatching"),s.push(i))}}return m`${Ns(s,(i,e)=>e+new Date().getTime(),i=>{var e;if(i!=null&&i.hasAttribute("dataProviderExpression")){const o=i.getAttribute("dataProviderExpression");let n="",a=r,c=i.getAttribute(this.templateValueAttribute);if(this.inverted&&(a=c,c=r),c==""&&(c=this.inverted?"*":"^$"),i.getAttribute("mode")=="patternMatching"){const h=new Bt(c);n=new Bt(o).stringify(h.match(a))}else{const h=new RegExp(c),d=(a+"").match(h);d&&(n=(e=d.shift())==null?void 0:e.replace(h,o))}return m`<div
1276
+ </div>`}return Mt(s)})}`}};ps([l({type:String})],Fe.prototype,"fallBackRoute",2),ps([l({type:Object})],Fe.prototype,"routes",2),ps([l({type:String})],Fe.prototype,"basePath",2),ps([l()],Fe.prototype,"location",1),Fe=ps([$(ll)],Fe);var cl=Object.defineProperty,hl=Object.getOwnPropertyDescriptor,dl=(r,t,s,i)=>{for(var e=i>1?void 0:i?hl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&cl(t,s,e),e};const pl="sonic-redirect";let fo=class extends G(x){connectedCallback(){this.noShadowDom="",this.style.display="none",super.connectedCallback(),this.udpateCallBack=()=>this.update(),this.publisher&&this.publisher.onInternalMutation(this.udpateCallBack)}disconnectedCallback(){this.publisher&&this.publisher.offInternalMutation(this.udpateCallBack),super.disconnectedCallback()}update(){if(this.hasAttribute("onAdded")){ct.changeFromComponent(this);return}if(!this.props)return;const r=this.getAttribute("onData").split("."),t=tt.traverse(this.props,r);t&&!(tt.isObject(t)&&t)&&ct.changeFromComponent(this)}};fo=dl([$(pl)],fo);var ul=Object.defineProperty,fl=Object.getOwnPropertyDescriptor,qs=(r,t,s,i)=>{for(var e=i>1?void 0:i?fl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ul(t,s,e),e};const ml="sonic-states";let us=class extends G(Je(x)){constructor(){super(...arguments),this.state="",this.inverted=!1,this.statePath="",this.onStateAssign=r=>{this.state=r,this.requestUpdate()}}connectedCallback(){if(this.noShadowDom="",super.connectedCallback(),this.hasAttribute("data-path")&&(this.statePath=this.getAttribute("data-path")),this.statePath){this.statePublisher=this.publisher;const r=this.statePath.split(".");for(const t of r)this.statePublisher=this.statePublisher[t];this.statePublisher.onAssign(this.onStateAssign)}}disconnectedCallback(){var r;this.statePath&&((r=this.statePublisher)==null||r.offAssign(this.onStateAssign)),super.disconnectedCallback()}handleStates(r){var s;if(!this.states)return[];const t=[];for(const[i,e]of Object.entries(this.states)){if(i==="fallback"||!e)continue;const o=new RegExp(i);if(o.test(r)){const n=o.exec(r)||[i];n.shift(),t.push(e([...n]))}else try{const n=new Bt("(/)*"+i+"*");if(n.match(r)){const a=n.match(r)||{};t.push(e(a))}}catch{r.indexOf(i.replace(document.location.origin,""))!=-1&&t.push(e({}))}}return t.length==0&&(s=this.states)!=null&&s.fallback&&this.isConnected&&t.push(this.states.fallback()),t}render(){let r=this.state;(!Array.isArray(r)&&tt.isObject(r)||r===void 0)&&(r="");const t=this.handleStates(r);if(t.length>0)return m`${t}`;const s=[];for(const i of this.templatePartsList){let e=i.getAttribute(this.templateValueAttribute),o=r;if(this.inverted&&(o=e,e=r),e==""&&(e=this.inverted?".*?":"^$"),new RegExp(e).test(o+""))s.push(i),i.removeAttribute("mode");else{const a=new Bt(e);a.names.length>0&&a.match(o)&&(i.setAttribute("mode","patternMatching"),s.push(i))}}return m`${Ns(s,(i,e)=>e+new Date().getTime(),i=>{var e;if(i!=null&&i.hasAttribute("dataProviderExpression")){const o=i.getAttribute("dataProviderExpression");let n="",a=r,c=i.getAttribute(this.templateValueAttribute);if(this.inverted&&(a=c,c=r),c==""&&(c=this.inverted?"*":"^$"),i.getAttribute("mode")=="patternMatching"){const h=new Bt(c);n=new Bt(o).stringify(h.match(a))}else{const h=new RegExp(c),d=(a+"").match(h);d&&(n=(e=d.shift())==null?void 0:e.replace(h,o))}return m`<div
1277
1277
  style="display:contents"
1278
1278
  dataProvider="${n}"
1279
1279
  >
@@ -1427,7 +1427,7 @@
1427
1427
  slot[name="prefix"] {
1428
1428
  flex-shrink: 0;
1429
1429
  }
1430
- `],fs([l({type:String,reflect:!0})],we.prototype,"type",2),fs([l({type:String,reflect:!0})],we.prototype,"variant",2),fs([l({type:String,reflect:!0})],we.prototype,"size",2),fs([l({type:Boolean,reflect:!0})],we.prototype,"ellipsis",2),we=fs([$(zl)],we);class Rl{static fixBlankLink(t){const i=typeof require>"u"||typeof process!="object"?null:require("electron");t.target=="_blank"&&t.addEventListener("click",()=>{i==null||i.shell.openExternal(t.href)})}}var Ul=Object.defineProperty,Vl=Object.getOwnPropertyDescriptor,ze=(r,t,s,i)=>{for(var e=i>1?void 0:i?Vl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ul(t,s,e),e};const Hl="sonic-link";let se=class extends x{constructor(){super(...arguments),this.href="",this._location="",this.ariaLabel=null,this.autoActive="partial",this._target=null,this.pushState=null}get location(){return this._location}set location(r){this._location=r,lt.updateComponentActiveState(this)}connectedCallback(){this.href&&this.href.indexOf("http")!=0&&(lt.onChange(this),this.location=document.location.href.replace(document.location.origin,"")),this.addEventListener("keypress",r=>{var t,s;r.key==="Enter"&&((s=(t=this.shadowRoot)==null?void 0:t.querySelector("a"))==null||s.click())}),this.setFocusable(),super.connectedCallback()}setFocusable(){this.href?this.setAttribute("tabIndex","0"):this.removeAttribute("tabIndex")}disconnectedCallback(){lt.offChange(this),super.disconnectedCallback()}set target(r){this._target=r,Rl.fixBlankLink(this),this.requestUpdate()}get target(){return this._target}handlePushState(r){r.preventDefault(),lt.changeFromComponent(this)}updated(r){r.has("href")&&this.setFocusable()}render(){return this.href?m`
1430
+ `],fs([l({type:String,reflect:!0})],we.prototype,"type",2),fs([l({type:String,reflect:!0})],we.prototype,"variant",2),fs([l({type:String,reflect:!0})],we.prototype,"size",2),fs([l({type:Boolean,reflect:!0})],we.prototype,"ellipsis",2),we=fs([$(zl)],we);class Rl{static fixBlankLink(t){const i=typeof require>"u"||typeof process!="object"?null:require("electron");t.target=="_blank"&&t.addEventListener("click",()=>{i==null||i.shell.openExternal(t.href)})}}var Ul=Object.defineProperty,Vl=Object.getOwnPropertyDescriptor,ze=(r,t,s,i)=>{for(var e=i>1?void 0:i?Vl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ul(t,s,e),e};const Hl="sonic-link";let se=class extends x{constructor(){super(...arguments),this.href="",this._location="",this.ariaLabel=null,this.autoActive="partial",this._target=null,this.pushState=null}get location(){return this._location}set location(r){this._location=r,ct.updateComponentActiveState(this)}connectedCallback(){this.href&&this.href.indexOf("http")!=0&&(ct.onChange(this),this.location=document.location.href.replace(document.location.origin,"")),this.addEventListener("keypress",r=>{var t,s;r.key==="Enter"&&((s=(t=this.shadowRoot)==null?void 0:t.querySelector("a"))==null||s.click())}),this.setFocusable(),super.connectedCallback()}setFocusable(){this.href?this.setAttribute("tabIndex","0"):this.removeAttribute("tabIndex")}disconnectedCallback(){ct.offChange(this),super.disconnectedCallback()}set target(r){this._target=r,Rl.fixBlankLink(this),this.requestUpdate()}get target(){return this._target}handlePushState(r){r.preventDefault(),ct.changeFromComponent(this)}updated(r){r.has("href")&&this.setFocusable()}render(){return this.href?m`
1431
1431
  <a
1432
1432
  href="${this.href}"
1433
1433
  aria-label=${this.ariaLabel||C}
@@ -2023,7 +2023,7 @@
2023
2023
  :host > .form-control {
2024
2024
  position: relative;
2025
2025
  }
2026
- `],U([l({type:String,reflect:!0})],j.prototype,"size",2),U([l({type:String})],j.prototype,"inputmode",2),U([l({type:String})],j.prototype,"list",2),U([l({type:String})],j.prototype,"placeholder",2),U([l({type:String})],j.prototype,"pattern",2),U([l({type:String})],j.prototype,"min",2),U([l({type:String})],j.prototype,"max",2),U([l({type:Boolean})],j.prototype,"readonly",2),U([l({type:Number})],j.prototype,"step",2),U([l({type:Number})],j.prototype,"minlength",2),U([l({type:Number})],j.prototype,"maxlength",2),U([l({type:String})],j.prototype,"src",2),U([l({type:Boolean,reflect:!0})],j.prototype,"inlineContent",2),U([l({type:Boolean})],j.prototype,"disableInlineContentFocus",2),U([l({type:Boolean})],j.prototype,"showPasswordToggle",2),U([l({type:Boolean})],j.prototype,"autoActive",2),U([l({type:Boolean,reflect:!0})],j.prototype,"active",2),U([at({slot:"label",flatten:!0})],j.prototype,"slotLabelNodes",2),U([at({slot:"description",flatten:!0})],j.prototype,"slotDescriptionNodes",2),U([at({slot:"suffix",flatten:!0})],j.prototype,"slotSuffixNodes",2),U([at({slot:"prefix",flatten:!0})],j.prototype,"slotPrefixNodes",2),U([le("input")],j.prototype,"input",2),U([N()],j.prototype,"hasDescription",2),U([N()],j.prototype,"hasLabel",2),U([N()],j.prototype,"hasSuffix",2),U([N()],j.prototype,"hasPrefix",2),U([N()],j.prototype,"isPassword",2),j=U([$(Xl)],j);const yo=P`
2026
+ `],U([l({type:String,reflect:!0})],j.prototype,"size",2),U([l({type:String})],j.prototype,"inputmode",2),U([l({type:String})],j.prototype,"list",2),U([l({type:String})],j.prototype,"placeholder",2),U([l({type:String})],j.prototype,"pattern",2),U([l({type:String})],j.prototype,"min",2),U([l({type:String})],j.prototype,"max",2),U([l({type:Boolean})],j.prototype,"readonly",2),U([l({type:Number})],j.prototype,"step",2),U([l({type:Number})],j.prototype,"minlength",2),U([l({type:Number})],j.prototype,"maxlength",2),U([l({type:String})],j.prototype,"src",2),U([l({type:Boolean,reflect:!0})],j.prototype,"inlineContent",2),U([l({type:Boolean})],j.prototype,"disableInlineContentFocus",2),U([l({type:Boolean})],j.prototype,"showPasswordToggle",2),U([l({type:Boolean})],j.prototype,"autoActive",2),U([l({type:Boolean,reflect:!0})],j.prototype,"active",2),U([lt({slot:"label",flatten:!0})],j.prototype,"slotLabelNodes",2),U([lt({slot:"description",flatten:!0})],j.prototype,"slotDescriptionNodes",2),U([lt({slot:"suffix",flatten:!0})],j.prototype,"slotSuffixNodes",2),U([lt({slot:"prefix",flatten:!0})],j.prototype,"slotPrefixNodes",2),U([le("input")],j.prototype,"input",2),U([L()],j.prototype,"hasDescription",2),U([L()],j.prototype,"hasLabel",2),U([L()],j.prototype,"hasSuffix",2),U([L()],j.prototype,"hasPrefix",2),U([L()],j.prototype,"isPassword",2),j=U([$(Xl)],j);const yo=P`
2027
2027
  /*OMBRE*/
2028
2028
  :host([shadow]) .shadowable,
2029
2029
  :host([shadow="md"]) .shadowable,
@@ -2088,11 +2088,11 @@
2088
2088
  :host([inline]) {
2089
2089
  vertical-align: baseline;
2090
2090
  }
2091
- `,yo],qt([N()],nt.prototype,"open",2),qt([le("slot:not([name=content])")],nt.prototype,"popBtn",2),qt([le("slot[name=content]")],nt.prototype,"popContent",2),qt([l({type:Boolean})],nt.prototype,"noToggle",2),qt([l({type:Boolean,reflect:!0})],nt.prototype,"inline",2),qt([l({type:String,reflect:!0})],nt.prototype,"shadow",2),qt([l({type:String})],nt.prototype,"placement",2),qt([N()],nt.prototype,"triggerElement",2),nt=qt([$(Jl)],nt);var tc=Object.defineProperty,ec=Object.getOwnPropertyDescriptor,sc=(r,t,s,i)=>{for(var e=i>1?void 0:i?ec(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&tc(t,s,e),e};const ic="sonic-menu-item";let _o=class extends I{constructor(){super()}connectedCallback(){this.hasAttribute("variant")||(this.variant="ghost"),this.hasAttribute("type")||(this.type="default"),this.hasAttribute("shape")||(this.shape="block");const r=this.shape==="square"||this.shape==="circle";!this.hasAttribute("align")&&!r&&(this.align="left"),super.connectedCallback()}};_o=sc([$(ic)],_o);/**
2091
+ `,yo],qt([L()],nt.prototype,"open",2),qt([le("slot:not([name=content])")],nt.prototype,"popBtn",2),qt([le("slot[name=content]")],nt.prototype,"popContent",2),qt([l({type:Boolean})],nt.prototype,"noToggle",2),qt([l({type:Boolean,reflect:!0})],nt.prototype,"inline",2),qt([l({type:String,reflect:!0})],nt.prototype,"shadow",2),qt([l({type:String})],nt.prototype,"placement",2),qt([L()],nt.prototype,"triggerElement",2),nt=qt([$(Jl)],nt);var tc=Object.defineProperty,ec=Object.getOwnPropertyDescriptor,sc=(r,t,s,i)=>{for(var e=i>1?void 0:i?ec(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&tc(t,s,e),e};const ic="sonic-menu-item";let _o=class extends I{constructor(){super()}connectedCallback(){this.hasAttribute("variant")||(this.variant="ghost"),this.hasAttribute("type")||(this.type="default"),this.hasAttribute("shape")||(this.shape="block");const r=this.shape==="square"||this.shape==="circle";!this.hasAttribute("align")&&!r&&(this.align="left"),super.connectedCallback()}};_o=sc([$(ic)],_o);/**
2092
2092
  * @license
2093
2093
  * Copyright 2021 Google LLC
2094
2094
  * SPDX-License-Identifier: BSD-3-Clause
2095
- */class wo{constructor(t,{target:s,config:i,callback:e,skipInitial:o}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,s!==null&&this.t.add(s??t),this.l=i,this.o=o??this.o,this.callback=e,window.ResizeObserver?(this.u=new ResizeObserver(n=>{this.handleChanges(n),this.h.requestUpdate()}),t.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(t){var s;this.value=(s=this.callback)==null?void 0:s.call(this,t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}}var rc=Object.defineProperty,oc=Object.getOwnPropertyDescriptor,bt=(r,t,s,i)=>{for(var e=i>1?void 0:i?oc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&rc(t,s,e),e};let ct=class extends Ei(lo(ao(te(x)))){constructor(){super(...arguments),this.size="md",this.placeholder="",this.filteredFields="",this.readonly=null,this.dataProviderExpression="",this.minSearchLength=0,this.key="",this.searchParameter="",this.propertyName="",this.hasInputPrefix=!1,this._resizeController=new wo(this,{}),this.isPopVisible=!1,this.searchDataProvider="",this.initSearchDataProvider="",this.queueDataProvider="",this.initQueueDataProvider="",this.lastValidSearch="",this.updateSearchParameter=r=>{var s;if(r==""){this.lastValidSearch="";return}this.queryQueueListItem(this.queueDataProvider,this.findSelection,this.setSearchFromSelection)===!1&&(!this.searchParameter||this.searchParameter===this.name)&&(this.lastValidSearch=r,(s=this.searchPublisher)==null||s.set(this.lastValidSearch))},this.updatePopContentVisibility=r=>{this.isPopVisible=((r==null?void 0:r.length)||0)>=this.minSearchLength},this.initSearchParameter=()=>{this.queryQueueListItem(this.initQueueDataProvider,this.findSelection,this.setSearchFromSelection)},this.selectListItem=r=>{var s;const t=this.propertyName==="_self"?r:r[this.propertyName||this.name];(s=this.formValuePublisher)==null||s.set(t)},this.findSearchedItem=r=>{var s;return(this.propertyName==="_self"?r:r[this.propertyName||this.searchParameter||this.name])==((s=this.searchPublisher)==null?void 0:s.get())},this.findSelection=r=>(this.propertyName==="_self"?r:r[this.propertyName||this.name])==this.value,this.setSearchFromSelection=r=>{var t;this.lastValidSearch=this.propertyName==="_self"?r:r[this.searchParameter||this.propertyName||this.name],(t=this.searchPublisher)==null||t.set(this.lastValidSearch)},this.updateActiveSelection=()=>{var r,t,s;this.queryQueueListItem(this.queueDataProvider,this.findSearchedItem,this.selectListItem),!this.select&&this.lastValidSearch&&this.lastValidSearch!=((r=this.searchPublisher)==null?void 0:r.get())&&((t=this.formValuePublisher)!=null&&t.get())&&((s=this.formValuePublisher)==null||s.set(""))}}hasSlotOrProps(){var r;this.hasInputPrefix=!!((r=this.slotInputPrefixNodes)!=null&&r.length)}get value(){return super.value}set value(r){var t;(t=this.searchPublisher)==null||t.set(r),super.value=r}connectedCallback(){var e,o,n,a;super.connectedCallback();const r=this.searchParameter||this.name,t=this.getAncestorAttributeValue("formDataProvider"),s=t+"__"+this.name+"__autocomplete";this.initSearchDataProvider=`${s}_init_search__`,this.initQueueDataProvider=`${s}_init_queue__`,this.searchDataProvider=`${s}_search__`,this.queueDataProvider=`${s}_queue__`;const i=it.get;this.searchPublisher=i(this.searchDataProvider)[r],this.formValuePublisher=pt(i(t),this.name),this.countPublisher=i(this.queueDataProvider).resultCount,this.initCountPublisher=i(this.initQueueDataProvider).resultCount,this.value&&(it.get(this.initSearchDataProvider)[this.name]=this.value),(e=this.initCountPublisher)==null||e.onAssign(this.initSearchParameter),(o=this.formValuePublisher)==null||o.onAssign(this.updateSearchParameter),(n=this.countPublisher)==null||n.onAssign(this.updateActiveSelection),(a=this.searchPublisher)==null||a.onAssign(this.updatePopContentVisibility)}disconnectedCallback(){var t,s,i,e;super.disconnectedCallback(),(t=this.initCountPublisher)==null||t.offAssign(this.initSearchParameter),(s=this.formValuePublisher)==null||s.offAssign(this.updateSearchParameter),(i=this.countPublisher)==null||i.offAssign(this.updateActiveSelection);const r=it.get;r(this.initSearchDataProvider).delete(),r(this.initQueueDataProvider).delete(),r(this.searchDataProvider).delete(),r(this.queueDataProvider).delete(),(e=this.searchPublisher)==null||e.offAssign(this.updatePopContentVisibility)}queryQueueListItem(r,t,s){const i=it.get(r);let e,o=i.get();if(!o||!Array.isArray(o)||!o.length)return!1;for(const n of o){let a=it.get(n.dataProvider).get();if(Array.isArray(a)&&(e=a.find(t),e))break}return e?(s(e),!0):!1}setSelectionRange(r,t){var s;(s=this.querySelector("sonic-input"))==null||s.setSelectionRange(r,t)}handleHide(){var r,t,s;if(this.select){if(((r=this.searchPublisher)==null?void 0:r.get())==""){this.lastValidSearch="",(t=this.formValuePublisher)==null||t.set("");return}(s=this.searchPublisher)==null||s.set(this.lastValidSearch)}}render(){var r;return m`
2095
+ */class wo{constructor(t,{target:s,config:i,callback:e,skipInitial:o}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,s!==null&&this.t.add(s??t),this.l=i,this.o=o??this.o,this.callback=e,window.ResizeObserver?(this.u=new ResizeObserver(n=>{this.handleChanges(n),this.h.requestUpdate()}),t.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(t){var s;this.value=(s=this.callback)==null?void 0:s.call(this,t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}}var rc=Object.defineProperty,oc=Object.getOwnPropertyDescriptor,ut=(r,t,s,i)=>{for(var e=i>1?void 0:i?oc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&rc(t,s,e),e};let at=class extends Ei(lo(ao(te(x)))){constructor(){super(...arguments),this.size="md",this.placeholder="",this.filteredFields="",this.readonly=null,this.dataProviderExpression="",this.minSearchLength=0,this.key="",this.searchParameter="",this.propertyName="",this.hasInputPrefix=!1,this._resizeController=new wo(this,{}),this.isPopVisible=!1,this.searchDataProvider="",this.initSearchDataProvider="",this.queueDataProvider="",this.initQueueDataProvider="",this.lastValidSearch="",this.updateSearchParameter=r=>{var s;if(r==""){this.lastValidSearch="";return}this.queryQueueListItem(this.queueDataProvider,this.findSelection,this.setSearchFromSelection)===!1&&this.isSearchParameter()&&(this.lastValidSearch=r,(s=this.searchPublisher)==null||s.set(this.lastValidSearch))},this.updatePopContentVisibility=r=>{this.isPopVisible=((r==null?void 0:r.length)||0)>=this.minSearchLength},this.initSearchParameter=()=>{this.queryQueueListItem(this.initQueueDataProvider,this.findSelection,this.setSearchFromSelection)},this.selectListItem=r=>{var s;const t=this.propertyName==="_self"?r:r[this.propertyName||this.name];(s=this.formValuePublisher)==null||s.set(t)},this.findSearchedItem=r=>{var s;return(this.propertyName==="_self"?r:r[this.propertyName||this.searchParameter||this.name])==((s=this.searchPublisher)==null?void 0:s.get())},this.findSelection=r=>(this.propertyName==="_self"?r:r[this.propertyName||this.name])==this.value,this.setSearchFromSelection=r=>{var t;this.lastValidSearch=this.propertyName==="_self"?r:r[this.searchParameter||this.propertyName||this.name],this.isSearchParameter()&&((t=this.searchPublisher)==null||t.set(this.lastValidSearch))},this.updateActiveSelection=()=>{var r,t,s;this.queryQueueListItem(this.queueDataProvider,this.findSearchedItem,this.selectListItem),!this.select&&this.lastValidSearch&&this.lastValidSearch!=((r=this.searchPublisher)==null?void 0:r.get())&&((t=this.formValuePublisher)!=null&&t.get())&&((s=this.formValuePublisher)==null||s.set(""))}}hasSlotOrProps(){var r;this.hasInputPrefix=!!((r=this.slotInputPrefixNodes)!=null&&r.length)}isSearchParameter(){return!this.searchParameter||this.searchParameter===this.name}connectedCallback(){var e,o,n,a;super.connectedCallback();const r=this.searchParameter||this.name,t=this.getAncestorAttributeValue("formDataProvider"),s=t+"__"+this.name+"__autocomplete";this.initSearchDataProvider=`${s}_init_search__`,this.initQueueDataProvider=`${s}_init_queue__`,this.searchDataProvider=`${s}_search__`,this.queueDataProvider=`${s}_queue__`;const i=it.get;this.searchPublisher=i(this.searchDataProvider)[r],this.formValuePublisher=pt(i(t),this.name),this.countPublisher=i(this.queueDataProvider).resultCount,this.initCountPublisher=i(this.initQueueDataProvider).resultCount,this.value&&(it.get(this.initSearchDataProvider)[this.name]=this.value),(e=this.initCountPublisher)==null||e.onAssign(this.initSearchParameter),(o=this.formValuePublisher)==null||o.onAssign(this.updateSearchParameter),(n=this.countPublisher)==null||n.onAssign(this.updateActiveSelection),(a=this.searchPublisher)==null||a.onAssign(this.updatePopContentVisibility)}disconnectedCallback(){var t,s,i,e;super.disconnectedCallback(),(t=this.initCountPublisher)==null||t.offAssign(this.initSearchParameter),(s=this.formValuePublisher)==null||s.offAssign(this.updateSearchParameter),(i=this.countPublisher)==null||i.offAssign(this.updateActiveSelection);const r=it.get;r(this.initSearchDataProvider).delete(),r(this.initQueueDataProvider).delete(),r(this.searchDataProvider).delete(),r(this.queueDataProvider).delete(),(e=this.searchPublisher)==null||e.offAssign(this.updatePopContentVisibility)}queryQueueListItem(r,t,s){const i=it.get(r);let e,o=i.get();if(!o||!Array.isArray(o)||!o.length)return!1;for(const n of o){let a=it.get(n.dataProvider).get();if(Array.isArray(a)&&(e=a.find(t),e))break}return e?(s(e),!0):!1}setSelectionRange(r,t){var s;(s=this.querySelector("sonic-input"))==null||s.setSelectionRange(r,t)}handleHide(){var r,t,s;if(this.select){if(((r=this.searchPublisher)==null?void 0:r.get())==""){this.lastValidSearch="",(t=this.formValuePublisher)==null||t.set("");return}(s=this.searchPublisher)==null||s.set(this.lastValidSearch)}}getInputValue(){var r;return this.isSearchParameter()?(r=this.searchPublisher)==null?void 0:r.get():this.lastValidSearch}render(){return m`
2096
2096
  <sonic-pop noToggle style="display:block;" @hide=${this.handleHide}>
2097
2097
  <sonic-input
2098
2098
  dataProvider="${this.initSearchDataProvider+Math.random()}"
@@ -2103,13 +2103,14 @@
2103
2103
  label="${A(this.label)}"
2104
2104
  description="${A(this.description)}"
2105
2105
  name="${A(this.searchParameter||this.name)}"
2106
+ ?required=${this.required}
2106
2107
  placeholder="${A(this.placeholder)}"
2107
2108
  ?readonly="${this.readonly}"
2108
2109
  autocomplete="off"
2109
2110
  clearable
2110
2111
  inlineContent
2111
2112
  size=${this.size}
2112
- value="${A(((r=this.searchPublisher)==null?void 0:r.get())||this.value)}"
2113
+ value=${A(this.getInputValue())}
2113
2114
  >
2114
2115
  <slot
2115
2116
  name="prefix"
@@ -2154,7 +2155,7 @@
2154
2155
  </sonic-queue>
2155
2156
  </sonic-menu>
2156
2157
  </sonic-pop>
2157
- `}};ct.styles=[cs,P`
2158
+ `}};at.styles=[cs,P`
2158
2159
  :host {
2159
2160
  display: block;
2160
2161
  }
@@ -2168,7 +2169,7 @@
2168
2169
  min-width: 14rem;
2169
2170
  width: 100%;
2170
2171
  }
2171
- `],bt([l({type:String})],ct.prototype,"size",2),bt([l({type:String})],ct.prototype,"placeholder",2),bt([l()],ct.prototype,"filteredFields",2),bt([l({type:Boolean})],ct.prototype,"readonly",2),bt([l({type:String})],ct.prototype,"dataProviderExpression",2),bt([l({type:Number})],ct.prototype,"minSearchLength",2),bt([l({type:Boolean})],ct.prototype,"select",2),bt([l({type:String})],ct.prototype,"key",2),bt([l({type:String})],ct.prototype,"searchParameter",2),bt([l({type:String})],ct.prototype,"propertyName",2),bt([at({slot:"prefix",flatten:!0})],ct.prototype,"slotInputPrefixNodes",2),bt([N()],ct.prototype,"hasInputPrefix",2),bt([N()],ct.prototype,"isPopVisible",2),ct=bt([$("sonic-input-autocomplete")],ct);var nc=Object.defineProperty,ac=Object.getOwnPropertyDescriptor,ut=(r,t,s,i)=>{for(var e=i>1?void 0:i?ac(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&nc(t,s,e),e};const lc="sonic-password-helper";let ht=class extends te(x){constructor(){super(...arguments),this.minChars=8,this.hasNoChar=!0,this.hasEnoughChars=!1,this.hasMinuscule=!1,this.hasMajuscule=!1,this.hasNumber=!1,this.hasSpecialChar=!1,this.wording_password_helper_decription="Le mot de passe doit contenir au moins :",this.wording_password_helper_min_length="8 caractères",this.wording_password_helper_lower_case="1 minuscule",this.wording_password_helper_upper_case="1 majuscule",this.wording_password_helper_number="1 chiffre",this.wording_password_helper_special_char="1 caractère spécial"}connectedCallback(){super.connectedCallback(),this.name&&(this.checkValue=t=>{t?(this.hasNoChar=t.length==0,this.hasEnoughChars=t.length>this.minChars):(this.hasNoChar=!0,this.hasEnoughChars=!1),this.hasMinuscule=/[a-z]/.test(t),this.hasMajuscule=/[A-Z]/.test(t),this.hasNumber=/[0-9]/.test(t),this.hasSpecialChar=/[!"#$%&'()*+,\-./:;<=>?@[\]^_`{|}~]/.test(t)},it.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue))}disconnectedCallback(){this.checkValue&&this.name&&it.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue),super.disconnectedCallback()}getIcon(t){return t?m`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>`:m`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`}render(){return this.hasNoChar?C:m`
2172
+ `],ut([l({type:String})],at.prototype,"size",2),ut([l({type:String})],at.prototype,"placeholder",2),ut([l()],at.prototype,"filteredFields",2),ut([l({type:Boolean})],at.prototype,"readonly",2),ut([l({type:String})],at.prototype,"dataProviderExpression",2),ut([l({type:Number})],at.prototype,"minSearchLength",2),ut([l({type:Boolean})],at.prototype,"select",2),ut([l({type:String})],at.prototype,"key",2),ut([l({type:String})],at.prototype,"searchParameter",2),ut([l({type:String})],at.prototype,"propertyName",2),ut([lt({slot:"prefix",flatten:!0})],at.prototype,"slotInputPrefixNodes",2),ut([L()],at.prototype,"hasInputPrefix",2),ut([L()],at.prototype,"isPopVisible",2),ut([L()],at.prototype,"lastValidSearch",2),at=ut([$("sonic-input-autocomplete")],at);var nc=Object.defineProperty,ac=Object.getOwnPropertyDescriptor,ft=(r,t,s,i)=>{for(var e=i>1?void 0:i?ac(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&nc(t,s,e),e};const lc="sonic-password-helper";let ht=class extends te(x){constructor(){super(...arguments),this.minChars=8,this.hasNoChar=!0,this.hasEnoughChars=!1,this.hasMinuscule=!1,this.hasMajuscule=!1,this.hasNumber=!1,this.hasSpecialChar=!1,this.wording_password_helper_decription="Le mot de passe doit contenir au moins :",this.wording_password_helper_min_length="8 caractères",this.wording_password_helper_lower_case="1 minuscule",this.wording_password_helper_upper_case="1 majuscule",this.wording_password_helper_number="1 chiffre",this.wording_password_helper_special_char="1 caractère spécial"}connectedCallback(){super.connectedCallback(),this.name&&(this.checkValue=t=>{t?(this.hasNoChar=t.length==0,this.hasEnoughChars=t.length>this.minChars):(this.hasNoChar=!0,this.hasEnoughChars=!1),this.hasMinuscule=/[a-z]/.test(t),this.hasMajuscule=/[A-Z]/.test(t),this.hasNumber=/[0-9]/.test(t),this.hasSpecialChar=/[!"#$%&'()*+,\-./:;<=>?@[\]^_`{|}~]/.test(t)},it.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue))}disconnectedCallback(){this.checkValue&&this.name&&it.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue),super.disconnectedCallback()}getIcon(t){return t?m`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>`:m`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`}render(){return this.hasNoChar?C:m`
2172
2173
  <div>${this.wording_password_helper_decription}</div>
2173
2174
  <div>
2174
2175
  ${this.getIcon(this.hasEnoughChars)}
@@ -2189,11 +2190,11 @@
2189
2190
  ${this.getIcon(this.hasSpecialChar)}
2190
2191
  ${this.wording_password_helper_special_char}
2191
2192
  </div>
2192
- `}};ut([l()],ht.prototype,"name",2),ut([l()],ht.prototype,"minChars",2),ut([N()],ht.prototype,"hasNoChar",2),ut([N()],ht.prototype,"hasEnoughChars",2),ut([N()],ht.prototype,"hasMinuscule",2),ut([N()],ht.prototype,"hasMajuscule",2),ut([N()],ht.prototype,"hasNumber",2),ut([N()],ht.prototype,"hasSpecialChar",2),ut([l()],ht.prototype,"wording_password_helper_decription",2),ut([l()],ht.prototype,"wording_password_helper_min_length",2),ut([l()],ht.prototype,"wording_password_helper_lower_case",2),ut([l()],ht.prototype,"wording_password_helper_upper_case",2),ut([l()],ht.prototype,"wording_password_helper_number",2),ut([l()],ht.prototype,"wording_password_helper_special_char",2),ht=ut([$(lc)],ht);var cc=Object.defineProperty,hc=Object.getOwnPropertyDescriptor,xe=(r,t,s,i)=>{for(var e=i>1?void 0:i?hc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&cc(t,s,e),e};const dc="sonic-same-value-helper";let re=class extends te(x){constructor(){super(...arguments),this.descriptionWhenEqual="Correspondance : oui",this.descriptionWhenNotEqual="Correspondance : non",this.areEqual=!1,this.hasNoChar=!0}connectedCallback(){super.connectedCallback();const r=it.get(this.getAncestorAttributeValue("formDataProvider"));this.name&&this.sameValueAs&&(this.checkValue=t=>{t?this.hasNoChar=t.length==0:this.hasNoChar=!0,this.name&&this.sameValueAs&&(this.areEqual=pt(r,this.name).get()==pt(r,this.sameValueAs).get())},pt(r,this.name).onAssign(this.checkValue),pt(r,this.sameValueAs).onAssign(this.checkValue))}disconnectedCallback(){if(this.checkValue&&this.name&&this.sameValueAs){const r=it.get(this.getAncestorAttributeValue("formDataProvider"));pt(r,this.name).offAssign(this.checkValue),pt(r,this.sameValueAs).offAssign(this.checkValue)}super.disconnectedCallback()}render(){return this.hasNoChar?C:m`
2193
+ `}};ft([l()],ht.prototype,"name",2),ft([l()],ht.prototype,"minChars",2),ft([L()],ht.prototype,"hasNoChar",2),ft([L()],ht.prototype,"hasEnoughChars",2),ft([L()],ht.prototype,"hasMinuscule",2),ft([L()],ht.prototype,"hasMajuscule",2),ft([L()],ht.prototype,"hasNumber",2),ft([L()],ht.prototype,"hasSpecialChar",2),ft([l()],ht.prototype,"wording_password_helper_decription",2),ft([l()],ht.prototype,"wording_password_helper_min_length",2),ft([l()],ht.prototype,"wording_password_helper_lower_case",2),ft([l()],ht.prototype,"wording_password_helper_upper_case",2),ft([l()],ht.prototype,"wording_password_helper_number",2),ft([l()],ht.prototype,"wording_password_helper_special_char",2),ht=ft([$(lc)],ht);var cc=Object.defineProperty,hc=Object.getOwnPropertyDescriptor,xe=(r,t,s,i)=>{for(var e=i>1?void 0:i?hc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&cc(t,s,e),e};const dc="sonic-same-value-helper";let re=class extends te(x){constructor(){super(...arguments),this.descriptionWhenEqual="Correspondance : oui",this.descriptionWhenNotEqual="Correspondance : non",this.areEqual=!1,this.hasNoChar=!0}connectedCallback(){super.connectedCallback();const r=it.get(this.getAncestorAttributeValue("formDataProvider"));this.name&&this.sameValueAs&&(this.checkValue=t=>{t?this.hasNoChar=t.length==0:this.hasNoChar=!0,this.name&&this.sameValueAs&&(this.areEqual=pt(r,this.name).get()==pt(r,this.sameValueAs).get())},pt(r,this.name).onAssign(this.checkValue),pt(r,this.sameValueAs).onAssign(this.checkValue))}disconnectedCallback(){if(this.checkValue&&this.name&&this.sameValueAs){const r=it.get(this.getAncestorAttributeValue("formDataProvider"));pt(r,this.name).offAssign(this.checkValue),pt(r,this.sameValueAs).offAssign(this.checkValue)}super.disconnectedCallback()}render(){return this.hasNoChar?C:m`
2193
2194
  <span>
2194
2195
  ${this.areEqual?z(this.descriptionWhenEqual):z(this.descriptionWhenNotEqual)}
2195
2196
  </span>
2196
- `}};xe([l()],re.prototype,"name",2),xe([l()],re.prototype,"sameValueAs",2),xe([l()],re.prototype,"descriptionWhenEqual",2),xe([l()],re.prototype,"descriptionWhenNotEqual",2),xe([N()],re.prototype,"areEqual",2),xe([N()],re.prototype,"hasNoChar",2),re=xe([$(dc)],re);var pc=Object.defineProperty,uc=Object.getOwnPropertyDescriptor,Wt=(r,t,s,i)=>{for(var e=i>1?void 0:i?uc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&pc(t,s,e),e};const fc="sonic-checkbox";let ft=class extends xi(Vs(Me(G(x)))){constructor(){super(...arguments),this.touched=!1,this.iconName="check",this.indeterminateIconName="minus-small",this.showAsIndeterminate=!1,this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){this.type="checkbox",this.hasSlotOrProps(),super.connectedCallback()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length)}render(){return m`
2197
+ `}};xe([l()],re.prototype,"name",2),xe([l()],re.prototype,"sameValueAs",2),xe([l()],re.prototype,"descriptionWhenEqual",2),xe([l()],re.prototype,"descriptionWhenNotEqual",2),xe([L()],re.prototype,"areEqual",2),xe([L()],re.prototype,"hasNoChar",2),re=xe([$(dc)],re);var pc=Object.defineProperty,uc=Object.getOwnPropertyDescriptor,Wt=(r,t,s,i)=>{for(var e=i>1?void 0:i?uc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&pc(t,s,e),e};const fc="sonic-checkbox";let mt=class extends xi(Vs(Me(G(x)))){constructor(){super(...arguments),this.touched=!1,this.iconName="check",this.indeterminateIconName="minus-small",this.showAsIndeterminate=!1,this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){this.type="checkbox",this.hasSlotOrProps(),super.connectedCallback()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length)}render(){return m`
2197
2198
  <label class="checkbox-container ${this.disabled?"disabled":""}">
2198
2199
 
2199
2200
  <span class="icon-container">
@@ -2221,7 +2222,7 @@
2221
2222
  </div>
2222
2223
  </label>
2223
2224
  </label>
2224
- `}};ft.styles=[Nt,P`
2225
+ `}};mt.styles=[Nt,P`
2225
2226
  :host {
2226
2227
  --sc-checkbox-border-width: var(--sc-form-border-width);
2227
2228
  --sc-checkbox-border-color: var(
@@ -2343,7 +2344,7 @@
2343
2344
  .hidden {
2344
2345
  display: none;
2345
2346
  }
2346
- `],Wt([l({type:Boolean,reflect:!0})],ft.prototype,"touched",2),Wt([l({type:String})],ft.prototype,"iconName",2),Wt([l({type:String})],ft.prototype,"indeterminateIconName",2),Wt([l({type:Boolean})],ft.prototype,"showAsIndeterminate",2),Wt([l({type:Boolean})],ft.prototype,"hasDescription",2),Wt([l({type:Boolean})],ft.prototype,"hasLabel",2),Wt([at({flatten:!0})],ft.prototype,"slotLabelNodes",2),Wt([at({slot:"description",flatten:!0})],ft.prototype,"slotDescriptionNodes",2),ft=Wt([$(fc)],ft);var mc=Object.defineProperty,gc=Object.getOwnPropertyDescriptor,bc=(r,t,s,i)=>{for(var e=i>1?void 0:i?gc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&mc(t,s,e),e};const vc="sonic-radio";let zi=class extends ft{constructor(){super(),this.radio=!0}connectedCallback(){super.connectedCallback(),this.type="radio"}};zi.styles=[ft.styles,P`
2347
+ `],Wt([l({type:Boolean,reflect:!0})],mt.prototype,"touched",2),Wt([l({type:String})],mt.prototype,"iconName",2),Wt([l({type:String})],mt.prototype,"indeterminateIconName",2),Wt([l({type:Boolean})],mt.prototype,"showAsIndeterminate",2),Wt([l({type:Boolean})],mt.prototype,"hasDescription",2),Wt([l({type:Boolean})],mt.prototype,"hasLabel",2),Wt([lt({flatten:!0})],mt.prototype,"slotLabelNodes",2),Wt([lt({slot:"description",flatten:!0})],mt.prototype,"slotDescriptionNodes",2),mt=Wt([$(fc)],mt);var mc=Object.defineProperty,gc=Object.getOwnPropertyDescriptor,bc=(r,t,s,i)=>{for(var e=i>1?void 0:i?gc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&mc(t,s,e),e};const vc="sonic-radio";let zi=class extends mt{constructor(){super(),this.radio=!0}connectedCallback(){super.connectedCallback(),this.type="radio"}};zi.styles=[mt.styles,P`
2347
2348
  :host input {
2348
2349
  border-radius: 50%;
2349
2350
  }
@@ -2359,7 +2360,7 @@
2359
2360
  width: 0.6em;
2360
2361
  width: round(0.6em, 1px);
2361
2362
  }
2362
- `],zi=bc([$(vc)],zi);var yc=Object.defineProperty,_c=Object.getOwnPropertyDescriptor,wc=(r,t,s,i)=>{for(var e=i>1?void 0:i?_c(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&yc(t,s,e),e};const xc="sonic-switch";let Ri=class extends ft{constructor(){super(),this.unique=!0}};Ri.styles=[ft.styles,P`
2363
+ `],zi=bc([$(vc)],zi);var yc=Object.defineProperty,_c=Object.getOwnPropertyDescriptor,wc=(r,t,s,i)=>{for(var e=i>1?void 0:i?_c(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&yc(t,s,e),e};const xc="sonic-switch";let Ri=class extends mt{constructor(){super(),this.unique=!0}};Ri.styles=[mt.styles,P`
2363
2364
  sonic-icon {
2364
2365
  display: none;
2365
2366
  }
@@ -2528,7 +2529,7 @@
2528
2529
  :host([multiple]) sonic-icon {
2529
2530
  display: none !important;
2530
2531
  }
2531
- `],J([l({type:String})],Z.prototype,"valueKey",2),J([l({type:String})],Z.prototype,"wordingKey",2),J([l({type:Boolean})],Z.prototype,"multiple",2),J([l({type:String,reflect:!0})],Z.prototype,"size",2),J([l({type:Number})],Z.prototype,"selectSize",2),J([l({type:String,reflect:!0})],Z.prototype,"status",2),J([l({type:Array})],Z.prototype,"options",1),J([l({reflect:!0})],Z.prototype,"value",1),J([l({type:Boolean})],Z.prototype,"forceAutoFill",2),J([l()],Z.prototype,"description",1),J([l()],Z.prototype,"label",1),J([at({slot:"label",flatten:!0})],Z.prototype,"slotLabelNodes",2),J([at({slot:"description",flatten:!0})],Z.prototype,"slotDescriptionNodes",2),J([at({slot:"suffix",flatten:!0})],Z.prototype,"slotSuffixNodes",2),J([at({slot:"prefix",flatten:!0})],Z.prototype,"slotPrefixNodes",2),J([N()],Z.prototype,"hasDescription",2),J([N()],Z.prototype,"hasLabel",2),J([N()],Z.prototype,"hasSuffix",2),J([N()],Z.prototype,"hasPrefix",2),Z=J([$(Ac)],Z);var Cc=Object.defineProperty,Sc=Object.getOwnPropertyDescriptor,vt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Sc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Cc(t,s,e),e};const Oc="sonic-textarea";let dt=class extends Vs(Me(G(x))){constructor(){super(...arguments),this.size="md",this.readonly=!1,this.resize="vertical",this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length)}validateFormElement(){var s;const r=(s=this.shadowRoot)==null?void 0:s.querySelector("textarea");if(!r||r.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),r.reportValidity()}render(){const r={resize:this.resize};return m`
2532
+ `],J([l({type:String})],Z.prototype,"valueKey",2),J([l({type:String})],Z.prototype,"wordingKey",2),J([l({type:Boolean})],Z.prototype,"multiple",2),J([l({type:String,reflect:!0})],Z.prototype,"size",2),J([l({type:Number})],Z.prototype,"selectSize",2),J([l({type:String,reflect:!0})],Z.prototype,"status",2),J([l({type:Array})],Z.prototype,"options",1),J([l({reflect:!0})],Z.prototype,"value",1),J([l({type:Boolean})],Z.prototype,"forceAutoFill",2),J([l()],Z.prototype,"description",1),J([l()],Z.prototype,"label",1),J([lt({slot:"label",flatten:!0})],Z.prototype,"slotLabelNodes",2),J([lt({slot:"description",flatten:!0})],Z.prototype,"slotDescriptionNodes",2),J([lt({slot:"suffix",flatten:!0})],Z.prototype,"slotSuffixNodes",2),J([lt({slot:"prefix",flatten:!0})],Z.prototype,"slotPrefixNodes",2),J([L()],Z.prototype,"hasDescription",2),J([L()],Z.prototype,"hasLabel",2),J([L()],Z.prototype,"hasSuffix",2),J([L()],Z.prototype,"hasPrefix",2),Z=J([$(Ac)],Z);var Cc=Object.defineProperty,Sc=Object.getOwnPropertyDescriptor,vt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Sc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Cc(t,s,e),e};const Oc="sonic-textarea";let dt=class extends Vs(Me(G(x))){constructor(){super(...arguments),this.size="md",this.readonly=!1,this.resize="vertical",this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length)}validateFormElement(){var s;const r=(s=this.shadowRoot)==null?void 0:s.querySelector("textarea");if(!r||r.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),r.reportValidity()}render(){const r={resize:this.resize};return m`
2532
2533
  <label
2533
2534
  for="${this.id||"form-element"}"
2534
2535
  class="${this.hasLabel?"form-label":"hidden"}"
@@ -2560,7 +2561,7 @@
2560
2561
  class="form-element textarea custom-scroll"
2561
2562
  aria-label=${A(this.ariaLabel)}
2562
2563
  aria-labelledby=${A(this.ariaLabelledby)}
2563
- style=${gt(r)}
2564
+ style=${bt(r)}
2564
2565
  >
2565
2566
  ${this.value}</textarea
2566
2567
  >
@@ -2577,7 +2578,7 @@ ${this.value}</textarea
2577
2578
  overflow-y: auto !important;
2578
2579
  font-size: inherit;
2579
2580
  }
2580
- `],vt([l({type:String})],dt.prototype,"size",2),vt([l({type:Number})],dt.prototype,"rows",2),vt([l({type:Number})],dt.prototype,"cols",2),vt([l({type:Number})],dt.prototype,"maxlength",2),vt([l({type:Number})],dt.prototype,"minlength",2),vt([l({type:String})],dt.prototype,"wrap",2),vt([l({type:Boolean})],dt.prototype,"readonly",2),vt([l({type:String})],dt.prototype,"placeholder",2),vt([l({type:String})],dt.prototype,"resize",2),vt([at({slot:"label",flatten:!0})],dt.prototype,"slotLabelNodes",2),vt([at({slot:"description",flatten:!0})],dt.prototype,"slotDescriptionNodes",2),vt([N()],dt.prototype,"hasDescription",2),vt([N()],dt.prototype,"hasLabel",2),dt=vt([$(Oc)],dt);var Dc=Object.defineProperty,kc=Object.getOwnPropertyDescriptor,Lc=(r,t,s,i)=>{for(var e=i>1?void 0:i?kc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Dc(t,s,e),e};let Ui=class extends x{render(){return m`<slot></slot>`}};Ui.styles=[P`
2581
+ `],vt([l({type:String})],dt.prototype,"size",2),vt([l({type:Number})],dt.prototype,"rows",2),vt([l({type:Number})],dt.prototype,"cols",2),vt([l({type:Number})],dt.prototype,"maxlength",2),vt([l({type:Number})],dt.prototype,"minlength",2),vt([l({type:String})],dt.prototype,"wrap",2),vt([l({type:Boolean})],dt.prototype,"readonly",2),vt([l({type:String})],dt.prototype,"placeholder",2),vt([l({type:String})],dt.prototype,"resize",2),vt([lt({slot:"label",flatten:!0})],dt.prototype,"slotLabelNodes",2),vt([lt({slot:"description",flatten:!0})],dt.prototype,"slotDescriptionNodes",2),vt([L()],dt.prototype,"hasDescription",2),vt([L()],dt.prototype,"hasLabel",2),dt=vt([$(Oc)],dt);var Dc=Object.defineProperty,kc=Object.getOwnPropertyDescriptor,Lc=(r,t,s,i)=>{for(var e=i>1?void 0:i?kc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Dc(t,s,e),e};let Ui=class extends x{render(){return m`<slot></slot>`}};Ui.styles=[P`
2581
2582
  :host {
2582
2583
  font-size: 1.15rem;
2583
2584
  line-height: 1.2;
@@ -2753,7 +2754,7 @@ ${this.value}</textarea
2753
2754
  ::slotted(sonic-divider) {
2754
2755
  --sc-divider-my: 0;
2755
2756
  }
2756
- `],Vi([ce({flatten:!0})],ms.prototype,"slottedElements",2),Vi([l({type:Boolean})],ms.prototype,"oneFormElement",2),ms=Vi([$(Rc)],ms);var Uc=Object.defineProperty,Vc=Object.getOwnPropertyDescriptor,Hi=(r,t,s,i)=>{for(var e=i>1?void 0:i?Vc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Uc(t,s,e),e};const Hc="sonic-form-actions";let gs=class extends x{constructor(){super(...arguments),this.direction="row",this.justify="flex-start"}render(){const r={flexDirection:this.direction,justifyContent:this.justify};return m`<slot style=${gt(r)}></slot>`}};gs.styles=[P`
2757
+ `],Vi([ce({flatten:!0})],ms.prototype,"slottedElements",2),Vi([l({type:Boolean})],ms.prototype,"oneFormElement",2),ms=Vi([$(Rc)],ms);var Uc=Object.defineProperty,Vc=Object.getOwnPropertyDescriptor,Hi=(r,t,s,i)=>{for(var e=i>1?void 0:i?Vc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Uc(t,s,e),e};const Hc="sonic-form-actions";let gs=class extends x{constructor(){super(...arguments),this.direction="row",this.justify="flex-start"}render(){const r={flexDirection:this.direction,justifyContent:this.justify};return m`<slot style=${bt(r)}></slot>`}};gs.styles=[P`
2757
2758
  :host {
2758
2759
  display: block;
2759
2760
  }
@@ -2768,7 +2769,7 @@ ${this.value}</textarea
2768
2769
  @slotchange=${this.hasSlotOrProps}
2769
2770
  ></slot
2770
2771
  ></span>
2771
- <slot class="main-slot" style=${gt(r)}></slot>
2772
+ <slot class="main-slot" style=${bt(r)}></slot>
2772
2773
  <slot
2773
2774
  name="description"
2774
2775
  @slotchange=${this.hasSlotOrProps}
@@ -2795,14 +2796,14 @@ ${this.value}</textarea
2795
2796
  ::slotted(sonic-select) {
2796
2797
  flex-grow: 1;
2797
2798
  }
2798
- `],oe([l({type:String})],jt.prototype,"alignItems",2),oe([l({type:String})],jt.prototype,"label",2),oe([l({type:String})],jt.prototype,"description",2),oe([at({slot:"label",flatten:!0})],jt.prototype,"slotLabelNodes",2),oe([at({slot:"description",flatten:!0})],jt.prototype,"slotDescriptionNodes",2),oe([N()],jt.prototype,"hasDescription",2),oe([N()],jt.prototype,"hasLabel",2),jt=oe([$(Wc)],jt);var Kc=Object.defineProperty,Yc=Object.getOwnPropertyDescriptor,Ft=(r,t,s,i)=>{for(var e=i>1?void 0:i?Yc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Kc(t,s,e),e};const Zc="sonic-image";let At=class extends x{constructor(){super(...arguments),this.rounded="none",this.src="",this.alt="",this.loading="lazy",this.ratio="auto",this.objectPosition="center center",this.imageRendering="auto",this.cover=!1}firstUpdated(r){var t;if(this.transition){const s=(t=this.shadowRoot)==null?void 0:t.querySelector("img");if(!s)return;s.onload=function(){s.classList.add("loaded")}}super.firstUpdated(r)}render(){const r={aspectRatio:this.cover?"auto":this.ratio,imageRendering:this.imageRendering,objectPosition:this.objectPosition};return m`<div part="image">
2799
+ `],oe([l({type:String})],jt.prototype,"alignItems",2),oe([l({type:String})],jt.prototype,"label",2),oe([l({type:String})],jt.prototype,"description",2),oe([lt({slot:"label",flatten:!0})],jt.prototype,"slotLabelNodes",2),oe([lt({slot:"description",flatten:!0})],jt.prototype,"slotDescriptionNodes",2),oe([L()],jt.prototype,"hasDescription",2),oe([L()],jt.prototype,"hasLabel",2),jt=oe([$(Wc)],jt);var Kc=Object.defineProperty,Yc=Object.getOwnPropertyDescriptor,Ft=(r,t,s,i)=>{for(var e=i>1?void 0:i?Yc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Kc(t,s,e),e};const Zc="sonic-image";let At=class extends x{constructor(){super(...arguments),this.rounded="none",this.src="",this.alt="",this.loading="lazy",this.ratio="auto",this.objectPosition="center center",this.imageRendering="auto",this.cover=!1}firstUpdated(r){var t;if(this.transition){const s=(t=this.shadowRoot)==null?void 0:t.querySelector("img");if(!s)return;s.onload=function(){s.classList.add("loaded")}}super.firstUpdated(r)}render(){const r={aspectRatio:this.cover?"auto":this.ratio,imageRendering:this.imageRendering,objectPosition:this.objectPosition};return m`<div part="image">
2799
2800
  <picture part="picture"
2800
2801
  ><img
2801
2802
  part="img"
2802
2803
  src="${this.src}"
2803
2804
  loading="${this.loading}"
2804
2805
  alt="${this.alt}"
2805
- style=${gt(r)}
2806
+ style=${bt(r)}
2806
2807
  /></picture>
2807
2808
  </div>`}};At.styles=[P`
2808
2809
  :host {
@@ -2878,18 +2879,18 @@ ${this.value}</textarea
2878
2879
  opacity: 1;
2879
2880
  scale: 1;
2880
2881
  }
2881
- `],Ft([l({type:String})],At.prototype,"rounded",2),Ft([l({type:String})],At.prototype,"src",2),Ft([l({type:String})],At.prototype,"alt",2),Ft([l({type:String})],At.prototype,"loading",2),Ft([l({type:String,reflect:!0})],At.prototype,"transition",2),Ft([l({type:String})],At.prototype,"ratio",2),Ft([l({type:String})],At.prototype,"objectPosition",2),Ft([l({type:String})],At.prototype,"imageRendering",2),Ft([l({type:Boolean,reflect:!0})],At.prototype,"cover",2),At=Ft([$(Zc)],At);var Xc=Object.defineProperty,Gc=Object.getOwnPropertyDescriptor,wt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Gc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Xc(t,s,e),e};const Qc="sonic-menu";let mt=class extends x{constructor(){super(...arguments),this.direction="column",this.gap="var(--sc-menu-gap)",this.align="left",this.shadow=null,this.moreShape="circle",this.scrollable=!1,this.observer=null,this.minWidth="0",this.hasMoreElements=!1,this.updateIsScollable=()=>{this.scrollable&&(this.initScrollable(),this.setScrollShadow(this,this.direction))}}checkIfMore(){var r;this.hasMoreElements=!!((r=this.moreElements)!=null&&r.length)}updated(r){const t=this.querySelector(".more-btn");this.size&&t&&t.setAttribute("size",this.size),this.querySelectorAll("sonic-divider").forEach(i=>{i.hasAttribute("size")||i.setAttribute("size","xs")}),super.updated(r)}mainSlotChange(){this.setChildrenSize(this.menuChildren),this.updateIsScollable()}connectedCallback(){this.observer=new ResizeObserver(this.updateIsScollable),this.observer.observe(this),super.connectedCallback()}disconnectedCallback(){var r;(r=this.observer)==null||r.disconnect(),super.disconnectedCallback()}initScrollable(){let r=!1,t,s;this.scrollable&&(this.addEventListener("mousedown",i=>{r=!0,this.classList.add("active"),t=i.pageX-this.offsetLeft,s=this.scrollLeft}),this.addEventListener("mouseleave",()=>{r=!1,this.classList.remove("active")}),this.addEventListener("mouseup",()=>{r=!1,this.classList.remove("active")}),this.addEventListener("mousemove",i=>{if(!r)return;i.preventDefault();const o=(i.pageX-this.offsetLeft-t)*1.5;this.scrollLeft=s-o,this.setScrollShadow(this,this.direction)}),this.addEventListener("scroll",i=>{i.preventDefault(),this.setScrollShadow(this,this.direction)}))}setScrollShadow(r,t){t=="row"?(r.scrollLeft>0?this.classList.add("shadow-left"):this.classList.remove("shadow-left"),r.scrollLeft<r.scrollWidth-r.offsetWidth?this.classList.add("shadow-right"):this.classList.remove("shadow-right")):t=="column"&&(r.scrollTop>0?this.classList.add("shadow-top"):this.classList.remove("shadow-top"),r.scrollTop<r.scrollHeight-(r.offsetHeight+1)?this.classList.add("shadow-bottom"):this.classList.remove("shadow-bottom"))}setChildrenSize(r){r.forEach(t=>{this.size&&t.setAttribute("size",this.size),this.align&&t.getAttribute("shape")!="square"&&t.getAttribute("shape")!="circle"&&t.setAttribute("align",this.align),this.direction=="row"&&t.getAttribute("shape")=="block"&&t.setAttribute("shape","default")})}render(){const r={minWidth:this.minWidth,flexDirection:this.direction,gap:this.gap},t=this.direction=="row",s={display:"block",alignSelf:t?"center":"flex-start",justifySelf:"center",flexDirection:this.direction},i={marginLeft:t?"":".55em"};return m`<menu
2882
+ `],Ft([l({type:String})],At.prototype,"rounded",2),Ft([l({type:String})],At.prototype,"src",2),Ft([l({type:String})],At.prototype,"alt",2),Ft([l({type:String})],At.prototype,"loading",2),Ft([l({type:String,reflect:!0})],At.prototype,"transition",2),Ft([l({type:String})],At.prototype,"ratio",2),Ft([l({type:String})],At.prototype,"objectPosition",2),Ft([l({type:String})],At.prototype,"imageRendering",2),Ft([l({type:Boolean,reflect:!0})],At.prototype,"cover",2),At=Ft([$(Zc)],At);var Xc=Object.defineProperty,Gc=Object.getOwnPropertyDescriptor,wt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Gc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Xc(t,s,e),e};const Qc="sonic-menu";let gt=class extends x{constructor(){super(...arguments),this.direction="column",this.gap="var(--sc-menu-gap)",this.align="left",this.shadow=null,this.moreShape="circle",this.scrollable=!1,this.observer=null,this.minWidth="0",this.hasMoreElements=!1,this.updateIsScollable=()=>{this.scrollable&&(this.initScrollable(),this.setScrollShadow(this,this.direction))}}checkIfMore(){var r;this.hasMoreElements=!!((r=this.moreElements)!=null&&r.length)}updated(r){const t=this.querySelector(".more-btn");this.size&&t&&t.setAttribute("size",this.size),this.querySelectorAll("sonic-divider").forEach(i=>{i.hasAttribute("size")||i.setAttribute("size","xs")}),super.updated(r)}mainSlotChange(){this.setChildrenSize(this.menuChildren),this.updateIsScollable()}connectedCallback(){this.observer=new ResizeObserver(this.updateIsScollable),this.observer.observe(this),super.connectedCallback()}disconnectedCallback(){var r;(r=this.observer)==null||r.disconnect(),super.disconnectedCallback()}initScrollable(){let r=!1,t,s;this.scrollable&&(this.addEventListener("mousedown",i=>{r=!0,this.classList.add("active"),t=i.pageX-this.offsetLeft,s=this.scrollLeft}),this.addEventListener("mouseleave",()=>{r=!1,this.classList.remove("active")}),this.addEventListener("mouseup",()=>{r=!1,this.classList.remove("active")}),this.addEventListener("mousemove",i=>{if(!r)return;i.preventDefault();const o=(i.pageX-this.offsetLeft-t)*1.5;this.scrollLeft=s-o,this.setScrollShadow(this,this.direction)}),this.addEventListener("scroll",i=>{i.preventDefault(),this.setScrollShadow(this,this.direction)}))}setScrollShadow(r,t){t=="row"?(r.scrollLeft>0?this.classList.add("shadow-left"):this.classList.remove("shadow-left"),r.scrollLeft<r.scrollWidth-r.offsetWidth?this.classList.add("shadow-right"):this.classList.remove("shadow-right")):t=="column"&&(r.scrollTop>0?this.classList.add("shadow-top"):this.classList.remove("shadow-top"),r.scrollTop<r.scrollHeight-(r.offsetHeight+1)?this.classList.add("shadow-bottom"):this.classList.remove("shadow-bottom"))}setChildrenSize(r){r.forEach(t=>{this.size&&t.setAttribute("size",this.size),this.align&&t.getAttribute("shape")!="square"&&t.getAttribute("shape")!="circle"&&t.setAttribute("align",this.align),this.direction=="row"&&t.getAttribute("shape")=="block"&&t.setAttribute("shape","default")})}render(){const r={minWidth:this.minWidth,flexDirection:this.direction,gap:this.gap},t=this.direction=="row",s={display:"block",alignSelf:t?"center":"flex-start",justifySelf:"center",flexDirection:this.direction},i={marginLeft:t?"":".55em"};return m`<menu
2882
2883
  part="menu"
2883
2884
  class="shadowable"
2884
- style=${gt(r)}
2885
+ style=${bt(r)}
2885
2886
  >
2886
2887
  <slot @slotchange=${this.mainSlotChange}></slot>
2887
2888
  <sonic-pop
2888
- style=${gt(s)}
2889
+ style=${bt(s)}
2889
2890
  class=${this.hasMoreElements?"":"hidden"}
2890
2891
  >
2891
2892
  <sonic-menu-item
2892
- style=${gt(i)}
2893
+ style=${bt(i)}
2893
2894
  class="more-btn"
2894
2895
  shape=${this.moreShape}
2895
2896
  align="center"
@@ -2901,7 +2902,7 @@ ${this.value}</textarea
2901
2902
  </sonic-menu-item>
2902
2903
  <slot name="more" @slotchange=${this.checkIfMore} slot="content"></slot>
2903
2904
  </sonic-pop>
2904
- </menu>`}};mt.styles=[P`
2905
+ </menu>`}};gt.styles=[P`
2905
2906
  :host {
2906
2907
  display: block;
2907
2908
  --sc-menu-gap: 0.15rem;
@@ -3018,7 +3019,7 @@ ${this.value}</textarea
3018
3019
  rgba(0, 0, 0, 0) 100%
3019
3020
  );
3020
3021
  }
3021
- `,yo],wt([l({type:String,reflect:!0})],mt.prototype,"size",2),wt([l({type:String,reflect:!0})],mt.prototype,"direction",2),wt([l({type:String})],mt.prototype,"gap",2),wt([l({type:String,reflect:!0})],mt.prototype,"align",2),wt([l({type:String,reflect:!0})],mt.prototype,"shadow",2),wt([l({type:String})],mt.prototype,"moreShape",2),wt([l({type:Boolean})],mt.prototype,"scrollable",2),wt([l({type:String})],mt.prototype,"minWidth",2),wt([le("menu")],mt.prototype,"menu",2),wt([ce({selector:"sonic-menu-item"})],mt.prototype,"menuChildren",2),wt([ce({slot:"more",selector:"*"})],mt.prototype,"moreElements",2),wt([N()],mt.prototype,"hasMoreElements",2),mt=wt([$(Qc)],mt);var Jc=Object.defineProperty,th=Object.getOwnPropertyDescriptor,xo=(r,t,s,i)=>{for(var e=i>1?void 0:i?th(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Jc(t,s,e),e};const eh="sonic-modal-actions";let Gs=class extends x{firstUpdated(r){var t;(t=this.buttons)==null||t.forEach(s=>{s.hasAttribute("hideModal")&&s.addEventListener("click",()=>{const i=Gt.getClosestElement(this,"sonic-modal");i==null||i.hide()})}),super.firstUpdated(r)}render(){return m`<slot></slot>`}};Gs.styles=[P`
3022
+ `,yo],wt([l({type:String,reflect:!0})],gt.prototype,"size",2),wt([l({type:String,reflect:!0})],gt.prototype,"direction",2),wt([l({type:String})],gt.prototype,"gap",2),wt([l({type:String,reflect:!0})],gt.prototype,"align",2),wt([l({type:String,reflect:!0})],gt.prototype,"shadow",2),wt([l({type:String})],gt.prototype,"moreShape",2),wt([l({type:Boolean})],gt.prototype,"scrollable",2),wt([l({type:String})],gt.prototype,"minWidth",2),wt([le("menu")],gt.prototype,"menu",2),wt([ce({selector:"sonic-menu-item"})],gt.prototype,"menuChildren",2),wt([ce({slot:"more",selector:"*"})],gt.prototype,"moreElements",2),wt([L()],gt.prototype,"hasMoreElements",2),gt=wt([$(Qc)],gt);var Jc=Object.defineProperty,th=Object.getOwnPropertyDescriptor,xo=(r,t,s,i)=>{for(var e=i>1?void 0:i?th(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Jc(t,s,e),e};const eh="sonic-modal-actions";let Gs=class extends x{firstUpdated(r){var t;(t=this.buttons)==null||t.forEach(s=>{s.hasAttribute("hideModal")&&s.addEventListener("click",()=>{const i=Gt.getClosestElement(this,"sonic-modal");i==null||i.hide()})}),super.firstUpdated(r)}render(){return m`<slot></slot>`}};Gs.styles=[P`
3022
3023
  :host {
3023
3024
  display: flex;
3024
3025
  gap: 0.5rem;
@@ -3077,14 +3078,14 @@ ${this.value}</textarea
3077
3078
  ></div>
3078
3079
  <div
3079
3080
  class="modal-wrapper"
3080
- style=${gt(t)}
3081
+ style=${bt(t)}
3081
3082
  ${zs({out:Gr})}
3082
3083
  tabindex="0"
3083
3084
  >
3084
3085
  <div
3085
3086
  part="modal"
3086
3087
  class="modal custom-scroll"
3087
- style=${gt(r)}
3088
+ style=${bt(r)}
3088
3089
  ${zs(this.animation)}
3089
3090
  >
3090
3091
  <div class="modal-content">
@@ -3590,7 +3591,7 @@ ${this.value}</textarea
3590
3591
  :host([dashed]) {
3591
3592
  --sc-divider-border-style: dashed;
3592
3593
  }
3593
- `],Rt([at({flatten:!0})],St.prototype,"slotNodes",2),Rt([le("div")],St.prototype,"divider",2),Rt([l({type:String})],St.prototype,"label",2),Rt([l({type:String,reflect:!0})],St.prototype,"size",2),Rt([l({type:String,reflect:!0})],St.prototype,"align",2),Rt([l({type:Boolean,reflect:!0})],St.prototype,"vertical",2),Rt([l({type:Boolean,reflect:!0})],St.prototype,"noMargin",2),Rt([l({type:Boolean,reflect:!0})],St.prototype,"dashed",2),Rt([l({type:Boolean,reflect:!0})],St.prototype,"dotted",2),St=Rt([$(Th)],St);var Mh=Object.defineProperty,Ih=Object.getOwnPropertyDescriptor,jh=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ih(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Mh(t,s,e),e};const Fh="sonic-card-header-description";let Yi=class extends x{render(){return m`<slot></slot>`}};Yi.styles=[P`
3594
+ `],Rt([lt({flatten:!0})],St.prototype,"slotNodes",2),Rt([le("div")],St.prototype,"divider",2),Rt([l({type:String})],St.prototype,"label",2),Rt([l({type:String,reflect:!0})],St.prototype,"size",2),Rt([l({type:String,reflect:!0})],St.prototype,"align",2),Rt([l({type:Boolean,reflect:!0})],St.prototype,"vertical",2),Rt([l({type:Boolean,reflect:!0})],St.prototype,"noMargin",2),Rt([l({type:Boolean,reflect:!0})],St.prototype,"dashed",2),Rt([l({type:Boolean,reflect:!0})],St.prototype,"dotted",2),St=Rt([$(Th)],St);var Mh=Object.defineProperty,Ih=Object.getOwnPropertyDescriptor,jh=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ih(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Mh(t,s,e),e};const Fh="sonic-card-header-description";let Yi=class extends x{render(){return m`<slot></slot>`}};Yi.styles=[P`
3594
3595
  :host() {
3595
3596
  display: block;
3596
3597
  font-size: 0.7em;
@@ -3791,7 +3792,7 @@ ${this.value}</textarea
3791
3792
  }
3792
3793
  `],_s([l({type:Object})],Ce.prototype,"_metadata_",2),_s([l({type:Boolean,reflect:!0})],Ce.prototype,"even",2),_s([l({type:Boolean,reflect:!0})],Ce.prototype,"odd",2),_s([l({type:Boolean,reflect:!0})],Ce.prototype,"last",2),Ce=_s([$(sd)],Ce);var id=Object.defineProperty,rd=Object.getOwnPropertyDescriptor,Se=(r,t,s,i)=>{for(var e=i>1?void 0:i?rd(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&id(t,s,e),e};const od="sonic-th";let Yt=class extends x{render(){const r={textAlign:this.align,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return m`<th
3793
3794
  part="th"
3794
- style=${gt(r)}
3795
+ style=${bt(r)}
3795
3796
  colspan=${A(this.colSpan)}
3796
3797
  rowspan=${A(this.rowSpan)}
3797
3798
  >
@@ -3819,7 +3820,7 @@ ${this.value}</textarea
3819
3820
  :host([noBorder]) th {
3820
3821
  border-bottom: none;
3821
3822
  }
3822
- `],Se([l({type:Number})],Yt.prototype,"colSpan",2),Se([l({type:Number})],Yt.prototype,"rowSpan",2),Se([l({type:String})],Yt.prototype,"align",2),Se([l({type:String})],Yt.prototype,"minWidth",2),Se([l({type:String})],Yt.prototype,"maxWidth",2),Se([l({type:String})],Yt.prototype,"width",2),Yt=Se([$(od)],Yt);var nd=Object.defineProperty,ad=Object.getOwnPropertyDescriptor,ne=(r,t,s,i)=>{for(var e=i>1?void 0:i?ad(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&nd(t,s,e),e};const ld="sonic-td";let Ut=class extends x{render(){const r={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return m`<td part="td" style=${gt(r)} colspan=${A(this.colSpan)} rowspan=${A(this.rowSpan)}>
3823
+ `],Se([l({type:Number})],Yt.prototype,"colSpan",2),Se([l({type:Number})],Yt.prototype,"rowSpan",2),Se([l({type:String})],Yt.prototype,"align",2),Se([l({type:String})],Yt.prototype,"minWidth",2),Se([l({type:String})],Yt.prototype,"maxWidth",2),Se([l({type:String})],Yt.prototype,"width",2),Yt=Se([$(od)],Yt);var nd=Object.defineProperty,ad=Object.getOwnPropertyDescriptor,ne=(r,t,s,i)=>{for(var e=i>1?void 0:i?ad(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&nd(t,s,e),e};const ld="sonic-td";let Ut=class extends x{render(){const r={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return m`<td part="td" style=${bt(r)} colspan=${A(this.colSpan)} rowspan=${A(this.rowSpan)}>
3823
3824
  <slot></slot>
3824
3825
  </td>`}};Ut.styles=[Qi,P`
3825
3826
  :host {
@@ -3873,7 +3874,7 @@ ${this.value}</textarea
3873
3874
  `],sr=$d([$(Pd)],sr);var Ad=Object.defineProperty,Cd=Object.getOwnPropertyDescriptor,Ue=(r,t,s,i)=>{for(var e=i>1?void 0:i?Cd(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ad(t,s,e),e};const Sd="sonic-table";let ae=class extends x{render(){const r={maxHeight:this.maxHeight};return m`
3874
3875
  <div
3875
3876
  class="table-container ${this.noCustomScroll?"":"custom-scroll"}"
3876
- style=${gt(r)}
3877
+ style=${bt(r)}
3877
3878
  >
3878
3879
  <div class="table">
3879
3880
  <slot></slot>
@@ -3954,4 +3955,4 @@ ${this.value}</textarea
3954
3955
  --altcha-color-footer-bg: var(--sc-base-100);
3955
3956
  --altcha-max-width: 260px;
3956
3957
  }
3957
- `],ti([l()],Ve.prototype,"key",2),ti([l()],Ve.prototype,"action",2),ti([l({type:Number})],Ve.prototype,"zIndex",2),Ve=ti([$(Id)],Ve),window.queueMicrotask=window.queueMicrotask||function(r){Promise.resolve().then(r).catch(t=>setTimeout(()=>{throw t}))};function jd(r){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(r)}function Fd(r){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(r)}function Do(r){if(r.__is__setSubscribable__)return;r.__is__setSubscribable__=!0,r.__onConnected__=jd,r.__onDisconnected__=Fd;const t=r.connectedCallback;r.connectedCallback=function(){t.call(this),this.__connectedCallbackCalls__&&this.__connectedCallbackCalls__.forEach(i=>i(this))};const s=r.disconnectedCallback;r.disconnectedCallback=function(){s.call(this),this.__disconnectedCallbackCalls__&&this.__disconnectedCallbackCalls__.forEach(i=>i(this))}}function zd(r){const t=r.split(".");if(t.length==0)return function(){};const s=t.shift()||"";let i=E.get(s);return i=ts.traverse(i,t),function(e,o){if(!e)return;let n;Do(e),e.__onConnected__(a=>{n=c=>{a[o]=c},i.onAssign(n)}),e.__onDisconnected__(()=>{i.offAssign(n)})}}function Rd(...r){const t=[],s=[];for(let i=0;i<r.length;i++){const o=r[i].split(".");if(o.length==0)continue;const n=o.shift()||"";let a=E.get(n);a=ts.traverse(a,o);const c=new Set,h=d=>{t[i]=d,t.filter(p=>p!==null).length==r.length&&c.forEach(p=>p(...t))};s.push({publisher:a,onAssign:h,callbacks:c})}return function(i,e,o){Do(i);let n;i.__onConnected__(a=>{for(const c of s)n=o.value.bind(a),c.callbacks.add(n),c.publisher.onAssign(c.onAssign)}),i.__onDisconnected__(()=>{for(const a of s)a.callbacks.delete(n),a.publisher.offAssign(a.onAssign)})}}window["concorde-decorator-subscriber"]=window["concorde-decorator-subscriber"]||{},window["concorde-decorator-subscriber"]={bind:zd,onAssing:Rd},window["concorde-directives-data-provider"]=window["concorde-directives-data-provider"]||{},window["concorde-directives-data-provider"]={dp:Lr,dataProvider:pn,sub:hn,subscribe:cn,get:dn,set:un};const Ud=M,Vd=F;window["concorde-components"]=window["concorde-components"]||{},window["concorde-components"]={SonicToast:Ud,SonicModal:Vd};const Hd=window;Hd.concordeIsLoaded=!0,window.dispatchEvent(new CustomEvent("concorde-loaded"))});
3958
+ `],ti([l()],Ve.prototype,"key",2),ti([l()],Ve.prototype,"action",2),ti([l({type:Number})],Ve.prototype,"zIndex",2),Ve=ti([$(Id)],Ve),window.queueMicrotask=window.queueMicrotask||function(r){Promise.resolve().then(r).catch(t=>setTimeout(()=>{throw t}))};function jd(r){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(r)}function Fd(r){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(r)}function Do(r){if(r.__is__setSubscribable__)return;r.__is__setSubscribable__=!0,r.__onConnected__=jd,r.__onDisconnected__=Fd;const t=r.connectedCallback;r.connectedCallback=function(){t.call(this),this.__connectedCallbackCalls__&&this.__connectedCallbackCalls__.forEach(i=>i(this))};const s=r.disconnectedCallback;r.disconnectedCallback=function(){s.call(this),this.__disconnectedCallbackCalls__&&this.__disconnectedCallbackCalls__.forEach(i=>i(this))}}function zd(r){const t=r.split(".");if(t.length==0)return function(){};const s=t.shift()||"";let i=N.get(s);return i=ts.traverse(i,t),function(e,o){if(!e)return;let n;Do(e),e.__onConnected__(a=>{n=c=>{a[o]=c},i.onAssign(n)}),e.__onDisconnected__(()=>{i.offAssign(n)})}}function Rd(...r){const t=[],s=[];for(let i=0;i<r.length;i++){const o=r[i].split(".");if(o.length==0)continue;const n=o.shift()||"";let a=N.get(n);a=ts.traverse(a,o);const c=new Set,h=d=>{t[i]=d,t.filter(p=>p!==null).length==r.length&&c.forEach(p=>p(...t))};s.push({publisher:a,onAssign:h,callbacks:c})}return function(i,e,o){Do(i);let n;i.__onConnected__(a=>{for(const c of s)n=o.value.bind(a),c.callbacks.add(n),c.publisher.onAssign(c.onAssign)}),i.__onDisconnected__(()=>{for(const a of s)a.callbacks.delete(n),a.publisher.offAssign(a.onAssign)})}}window["concorde-decorator-subscriber"]=window["concorde-decorator-subscriber"]||{},window["concorde-decorator-subscriber"]={bind:zd,onAssing:Rd},window["concorde-directives-data-provider"]=window["concorde-directives-data-provider"]||{},window["concorde-directives-data-provider"]={dp:Lr,dataProvider:pn,sub:hn,subscribe:cn,get:dn,set:un};const Ud=M,Vd=F;window["concorde-components"]=window["concorde-components"]||{},window["concorde-components"]={SonicToast:Ud,SonicModal:Vd};const Hd=window;Hd.concordeIsLoaded=!0,window.dispatchEvent(new CustomEvent("concorde-loaded"))});