@supersoniks/concorde 3.1.41 → 3.1.42

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.
Files changed (192) hide show
  1. package/build-infos.json +1 -1
  2. package/concorde-core.bundle.js +578 -534
  3. package/concorde-core.es.js +3280 -3088
  4. package/dist/concorde-core.bundle.js +578 -534
  5. package/dist/concorde-core.es.js +3280 -3088
  6. package/index.html +0 -0
  7. package/package.json +3 -1
  8. package/scripts/pre-build.mjs +0 -0
  9. package/scripts/pre-publish.mjs +0 -0
  10. package/src/core/_types/types.ts +0 -0
  11. package/src/core/components/functional/functional.ts +1 -0
  12. package/src/core/components/functional/queue/queue.ts +0 -0
  13. package/src/core/components/functional/router/router.md +0 -0
  14. package/src/core/components/functional/router/router.ts +0 -0
  15. package/src/core/components/functional/sonic-scope/sonic-scope.ts +0 -0
  16. package/src/core/components/functional/states/states.md +0 -0
  17. package/src/core/components/functional/states/states.ts +0 -0
  18. package/src/core/components/functional/submit/submit.md +0 -0
  19. package/src/core/components/functional/submit/submit.ts +0 -0
  20. package/src/core/components/functional/translation/translation.ts +12 -0
  21. package/src/core/components/ui/_css/scroll.ts +1 -1
  22. package/src/core/components/ui/_css/size.ts +12 -12
  23. package/src/core/components/ui/_css/type.ts +54 -23
  24. package/src/core/components/ui/alert/alert.md +0 -0
  25. package/src/core/components/ui/alert/alert.ts +71 -58
  26. package/src/core/components/ui/alert-messages/alert-messages.ts +0 -0
  27. package/src/core/components/ui/badge/badge.md +0 -0
  28. package/src/core/components/ui/badge/badge.ts +25 -26
  29. package/src/core/components/ui/button/button.ts +2 -1
  30. package/src/core/components/ui/card/card-footer.ts +9 -10
  31. package/src/core/components/ui/card/card-header-descripton.ts +3 -3
  32. package/src/core/components/ui/card/card-header.ts +18 -19
  33. package/src/core/components/ui/card/card-main.ts +10 -15
  34. package/src/core/components/ui/card/card.md +2 -1
  35. package/src/core/components/ui/card/card.ts +19 -67
  36. package/src/core/components/ui/divider/divider.ts +41 -19
  37. package/src/core/components/ui/form/checkbox/checkbox.md +0 -0
  38. package/src/core/components/ui/form/checkbox/checkbox.ts +15 -19
  39. package/src/core/components/ui/form/css/form-control.ts +38 -35
  40. package/src/core/components/ui/form/fieldset/fieldset.ts +0 -0
  41. package/src/core/components/ui/form/fieldset/legend-description.ts +5 -5
  42. package/src/core/components/ui/form/fieldset/legend.ts +6 -3
  43. package/src/core/components/ui/form/input/input.md +2 -1
  44. package/src/core/components/ui/form/input/password-helper.ts +0 -0
  45. package/src/core/components/ui/form/input/same-value-helper.ts +0 -0
  46. package/src/core/components/ui/form/radio/radio.md +0 -0
  47. package/src/core/components/ui/form/radio/radio.ts +6 -4
  48. package/src/core/components/ui/form/select/select.md +0 -0
  49. package/src/core/components/ui/form/select/select.ts +2 -2
  50. package/src/core/components/ui/form/textarea/textarea.ts +2 -2
  51. package/src/core/components/ui/group/group.ts +0 -0
  52. package/src/core/components/ui/image/image.ts +0 -0
  53. package/src/core/components/ui/loader/loader.md +8 -0
  54. package/src/core/components/ui/loader/loader.ts +20 -11
  55. package/src/core/components/ui/loader/styles/fixed.ts +8 -10
  56. package/src/core/components/ui/loader/styles/inline.ts +2 -2
  57. package/src/core/components/ui/menu/menu.ts +0 -0
  58. package/src/core/components/ui/modal/modal-subtitle.ts +4 -1
  59. package/src/core/components/ui/modal/modal-title.ts +4 -1
  60. package/src/core/components/ui/modal/modal.md +0 -0
  61. package/src/core/components/ui/modal/modal.ts +6 -3
  62. package/src/core/components/ui/pop/pop.ts +1 -1
  63. package/src/core/components/ui/progress/progress.ts +13 -10
  64. package/src/core/components/ui/table/table-tbody.ts +4 -3
  65. package/src/core/components/ui/table/table-th.ts +19 -13
  66. package/src/core/components/ui/table/table.ts +12 -8
  67. package/src/core/components/ui/theme/theme-collection/core-variables.ts +34 -30
  68. package/src/core/components/ui/theme/theme-collection/dark.ts +0 -0
  69. package/src/core/components/ui/theme/theme-collection/light.ts +7 -11
  70. package/src/core/components/ui/theme/theme.ts +6 -6
  71. package/src/core/components/ui/toast/message-subscriber.ts +0 -0
  72. package/src/core/components/ui/toast/toast-item.ts +12 -10
  73. package/src/core/components/ui/toast/toast.ts +0 -0
  74. package/src/core/components/ui/tooltip/tooltip.ts +2 -2
  75. package/src/core/components/ui/ui.ts +0 -0
  76. package/src/core/core.ts +0 -0
  77. package/src/core/directives/DataProvider.ts +5 -4
  78. package/src/core/directives/Wording.ts +8 -6
  79. package/src/core/mixins/FormCheckable.ts +0 -0
  80. package/src/core/mixins/FormElement.ts +0 -0
  81. package/src/core/mixins/Subscriber.ts +0 -0
  82. package/src/core/utils/HTML.ts +0 -0
  83. package/src/core/utils/LocationHandler.ts +0 -0
  84. package/src/core/utils/Objects.ts +0 -0
  85. package/src/core/utils/PublisherProxy.ts +0 -0
  86. package/src/core/utils/route.ts +0 -0
  87. package/src/docs/docs.ts +0 -0
  88. package/src/docs/header/header.ts +2 -5
  89. package/src/docs/search/docs-search.json +0 -0
  90. package/src/docs/search/page.ts +0 -0
  91. package/src/docs/tailwind/css/tailwind.css +42 -33
  92. package/src/index.ts +0 -2
  93. package/src/tsconfig-model.json +0 -0
  94. package/src/tsconfig.json +6 -0
  95. package/src/tsconfig.tsbuildinfo +1 -0
  96. package/tailwind.config.js +1 -1
  97. package/vite/config.js +0 -0
  98. package/docs/assets/index-CnxgssIs.js +0 -4433
  99. package/docs/assets/index-DCqvoAAf.css +0 -1
  100. package/docs/css/docs.css +0 -0
  101. package/docs/fonts/ClashGrotesk-Bold.eot +0 -0
  102. package/docs/fonts/ClashGrotesk-Bold.ttf +0 -0
  103. package/docs/fonts/ClashGrotesk-Bold.woff +0 -0
  104. package/docs/fonts/ClashGrotesk-Bold.woff2 +0 -0
  105. package/docs/fonts/ClashGrotesk-Extralight.eot +0 -0
  106. package/docs/fonts/ClashGrotesk-Extralight.ttf +0 -0
  107. package/docs/fonts/ClashGrotesk-Extralight.woff +0 -0
  108. package/docs/fonts/ClashGrotesk-Extralight.woff2 +0 -0
  109. package/docs/fonts/ClashGrotesk-Light.eot +0 -0
  110. package/docs/fonts/ClashGrotesk-Light.ttf +0 -0
  111. package/docs/fonts/ClashGrotesk-Light.woff +0 -0
  112. package/docs/fonts/ClashGrotesk-Light.woff2 +0 -0
  113. package/docs/fonts/ClashGrotesk-Medium.eot +0 -0
  114. package/docs/fonts/ClashGrotesk-Medium.ttf +0 -0
  115. package/docs/fonts/ClashGrotesk-Medium.woff +0 -0
  116. package/docs/fonts/ClashGrotesk-Medium.woff2 +0 -0
  117. package/docs/fonts/ClashGrotesk-Regular.eot +0 -0
  118. package/docs/fonts/ClashGrotesk-Regular.ttf +0 -0
  119. package/docs/fonts/ClashGrotesk-Regular.woff +0 -0
  120. package/docs/fonts/ClashGrotesk-Regular.woff2 +0 -0
  121. package/docs/fonts/ClashGrotesk-Semibold.eot +0 -0
  122. package/docs/fonts/ClashGrotesk-Semibold.ttf +0 -0
  123. package/docs/fonts/ClashGrotesk-Semibold.woff +0 -0
  124. package/docs/fonts/ClashGrotesk-Semibold.woff2 +0 -0
  125. package/docs/fonts/ClashGrotesk-Variable.eot +0 -0
  126. package/docs/fonts/ClashGrotesk-Variable.ttf +0 -0
  127. package/docs/fonts/ClashGrotesk-Variable.woff +0 -0
  128. package/docs/fonts/ClashGrotesk-Variable.woff2 +0 -0
  129. package/docs/img/concorde-icon.svg +0 -5
  130. package/docs/img/concorde-logo.svg +0 -1
  131. package/docs/img/concorde.png +0 -0
  132. package/docs/img/concorde_def.png +0 -0
  133. package/docs/img/concorde_seuil.png.webp +0 -0
  134. package/docs/img/concorde_seuil_invert.png +0 -0
  135. package/docs/img/paul_metrand.jpg +0 -0
  136. package/docs/img/paul_metrand_xs.jpg +0 -0
  137. package/docs/index.html +0 -93
  138. package/docs/src/core/components/functional/date/date.md +0 -290
  139. package/docs/src/core/components/functional/fetch/fetch.md +0 -117
  140. package/docs/src/core/components/functional/if/if.md +0 -16
  141. package/docs/src/core/components/functional/list/list.md +0 -199
  142. package/docs/src/core/components/functional/mix/mix.md +0 -41
  143. package/docs/src/core/components/functional/queue/queue.md +0 -87
  144. package/docs/src/core/components/functional/router/router.md +0 -112
  145. package/docs/src/core/components/functional/sdui/default-library.json +0 -108
  146. package/docs/src/core/components/functional/sdui/example.json +0 -99
  147. package/docs/src/core/components/functional/sdui/sdui.md +0 -356
  148. package/docs/src/core/components/functional/states/states.md +0 -87
  149. package/docs/src/core/components/functional/submit/submit.md +0 -83
  150. package/docs/src/core/components/functional/subscriber/subscriber.md +0 -91
  151. package/docs/src/core/components/functional/value/value.md +0 -35
  152. package/docs/src/core/components/ui/alert/alert.md +0 -121
  153. package/docs/src/core/components/ui/badge/badge.md +0 -102
  154. package/docs/src/core/components/ui/button/button.md +0 -184
  155. package/docs/src/core/components/ui/captcha/captcha.md +0 -12
  156. package/docs/src/core/components/ui/card/card.md +0 -96
  157. package/docs/src/core/components/ui/divider/divider.md +0 -35
  158. package/docs/src/core/components/ui/form/checkbox/checkbox.md +0 -96
  159. package/docs/src/core/components/ui/form/fieldset/fieldset.md +0 -129
  160. package/docs/src/core/components/ui/form/form-actions/form-actions.md +0 -77
  161. package/docs/src/core/components/ui/form/form-layout/form-layout.md +0 -43
  162. package/docs/src/core/components/ui/form/input/input.md +0 -168
  163. package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +0 -130
  164. package/docs/src/core/components/ui/form/radio/radio.md +0 -86
  165. package/docs/src/core/components/ui/form/select/select.md +0 -99
  166. package/docs/src/core/components/ui/form/textarea/textarea.md +0 -65
  167. package/docs/src/core/components/ui/group/group.md +0 -75
  168. package/docs/src/core/components/ui/icon/icon.md +0 -125
  169. package/docs/src/core/components/ui/icon/icons.json +0 -1
  170. package/docs/src/core/components/ui/image/image.md +0 -107
  171. package/docs/src/core/components/ui/link/link.md +0 -43
  172. package/docs/src/core/components/ui/loader/loader.md +0 -37
  173. package/docs/src/core/components/ui/menu/menu.md +0 -288
  174. package/docs/src/core/components/ui/modal/modal.md +0 -123
  175. package/docs/src/core/components/ui/pop/pop.md +0 -79
  176. package/docs/src/core/components/ui/progress/progress.md +0 -63
  177. package/docs/src/core/components/ui/table/table.md +0 -455
  178. package/docs/src/core/components/ui/tooltip/tooltip.md +0 -82
  179. package/docs/src/docs/_core-concept/overview.md +0 -57
  180. package/docs/src/docs/_core-concept/subscriber.md +0 -76
  181. package/docs/src/docs/_getting-started/concorde-outside.md +0 -143
  182. package/docs/src/docs/_getting-started/create-a-component.md +0 -137
  183. package/docs/src/docs/_getting-started/my-first-subscriber.md +0 -174
  184. package/docs/src/docs/_getting-started/pubsub.md +0 -150
  185. package/docs/src/docs/_getting-started/start.md +0 -39
  186. package/docs/src/docs/_getting-started/theming.md +0 -91
  187. package/docs/src/docs/search/docs-search.json +0 -3887
  188. package/docs/src/tag-list.json +0 -1
  189. package/docs/src/tsconfig-model.json +0 -23
  190. package/docs/src/tsconfig.json +0 -808
  191. package/docs/svg/regular/plane.svg +0 -1
  192. package/docs/svg/solid/plane.svg +0 -1
@@ -1,20 +1,20 @@
1
- (function(Z){typeof define=="function"&&define.amd?define(Z):Z()})(function(){"use strict";var Ft,k,L,Wr,t,Q;let Z=class zt{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)==="hidden"||(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=zt.getAncestorAttributeValue(t,"token"),i=zt.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=zt.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const a=zt.getAncestorAttributeValue(t,"tokenProvider"),c=zt.getAncestorAttributeValue(t,"eventsApiToken");s||(o=zt.getAncestorAttributeValue(t,"userName"),n=zt.getAncestorAttributeValue(t,"password"));const h=zt.getAncestorAttributeValue(t,"credentials")||void 0,d=t.getAttribute("cache"),f=t.hasAttribute("blockUntilDone");return{serviceURL:e,token:s,userName:o,password:n,authToken:c,tokenProvider:a,addHTTPResponse:i,credentials:h,cache:d,blockUntilDone:f}}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 zt.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 js=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 as=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,s="",i="long"){s||(s=Z.getLanguage());const e=(h,d)=>[Math.floor(h/d),h%d];function o(h,d,f){return new Intl.NumberFormat(h,{style:"unit",unit:d,unitDisplay:f}).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""}}},Zr=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(s=>{setTimeout(s,t)})}},Ti="sonic";typeof __SONIC_PREFIX__<"u"&&(Ti=__SONIC_PREFIX__);let Mi=Ti.replace(/-([a-z])/g,r=>r[1].toUpperCase());const ls=Mi.charAt(0).toUpperCase()+Mi.slice(1);function cs(r){return Object.prototype.hasOwnProperty.call(r,"__value")}function Me(r){return typeof r=="object"&&r!=null}let Ce="sonic";typeof __SONIC_PREFIX__>"u"&&(Ce="sonic"+Math.floor(Math.random()*1e6));const Fs=Ce=="sonic"?"publisher-proxies-data":Ce+"-publisher-proxies-data";let zs=(Ft=class{constructor(t,s,i){for(this._proxies_=new Map,this._is_savable_=!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(),Ft.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&&cs(this._value_)&&cs(t)&&this._value_.__value===t.__value)return!0;this._value_=Me(t)?t:{__value:t},this._cachedGet_=void 0;const i=cs(this._value_);if(this._parentKey_&&this.parent){const a=cs(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._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_),Me(this._value_))for(const a in this._value_){const c=t[a],d=Me(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_||(Ft.instancesCounter++,this._instanceCounter_=Ft.instancesCounter),Ft.instances.set(this._instanceCounter_,this),"<"+Ce+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+Ce+"-publisher-proxy>"}},Ft.instances=new Map,Ft.instancesCounter=0,Ft),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()}async cleanStorageData(){return new Promise(t=>{(async()=>{try{let i=localStorage.getItem(Fs),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(Fs,i),this.localStorageData={};const o=new Date().getTime()-1e3*60*60*12;for(const n in this.localStorageData)this.localStorageData[n].lastModifiationMS<o&&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_"+Z.getLanguage()])==null?void 0:i.data)||t.get())}get(t,s){const i=(s==null?void 0:s.localStorageMode)==="enabled";if(!this.publishers.has(t)){const o={},n=new Ie(o);this.set(t,n)}const e=this.publishers.get(t);return i&&this.initialisedData.indexOf(t)===-1&&(e._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(e,t)),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_"+Z.getLanguage()]={lastModifiationMS:new Date().getTime(),data:n},i=!0)}if(i){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(Fs,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="Thu Nov 14 2024 08:47:57 GMT+0100 (Central European Standard 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[ls+"PublisherManager"]=r[ls+"PublisherManager"]||N}const Gr=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_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_"]);class Ie extends zs{constructor(t,s=null,i){super(t,s,i);const e=new Proxy(this,{get:function(o,n){if(Gr.has(n))return o[n];if(n==Symbol.toPrimitive)return()=>e.get();if(!o._proxies_.has(n)){const a=o._value_[n],c=new Ie(Me(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=="_instanceCounter_")return o._instanceCounter_=a,!0;if(!o._proxies_.has(n)){const d=new Ie({},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(Me(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 Qr extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){var t;this.publisherId=this.getAttribute("publisher")||"",this.publisher=zs.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(Ce+"-publisher-proxy",Qr)}catch{}let hs=(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=Z.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!s)return;const i=N.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 f=i;f=L.getSubPublisher(i,d);const m=t,b={publisher:f,onAssign:()=>{const v=a.variables.map(D=>{var p;return(p=L.getSubPublisher(i,D))==null?void 0:p.get()});let $=a.expression,S=!1;if(v.length==1&&a.variables[0].join(".")==$.substring(1)){let D=v[0];D===null&&(D=""),m[c]=D;return}for(let D=0;D<v.length;D++){let p=v[D];const u=a.variables[D];p===null&&(S=!0,p=void 0),$=$.replace("$"+u.join("."),p)}if($.indexOf("|")!=-1){const D=$.indexOf("|");if(D==0)$=as.js($.substring(1));else{const p=$.substring(0,D),u=$.substring(D+1),y=as[p];$=S?"":y?y(u):$}}else $=S?"":$;m[c]=$}};f==null||f.onAssign(b.onAssign),o.push(b)}}),L.publisherListeners.set(t,o)}},L.observedElements=new Map,L.enabled=!0,L.publisherListeners=new Map,L);hs.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=hs);let J=class Ht{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=Ht.isObject(a)&&Ht.isObject(c),d=i?a!==c:a!=c;if(h&&!Ht.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 Ht.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&&Ht.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static traverseDotNotation(t,s,i=!1){return Ht.traverse(t,s.split("."),i)}static getURLSearchArray(t,s=""){let i=[];for(let e in t){const o=t[e];s&&(e=s+"["+e+"]"),Ht.isObject(o)?i=[...i,...this.getURLSearchArray(o,e)]:i.push(`${e}=${o}`)}return i}static getURLSearchString(t){return Ht.getURLSearchArray(t,"").join("&")}};const ht=J.traverseDotNotation;/**
1
+ (function(G){typeof define=="function"&&define.amd?define(G):G()})(function(){"use strict";var St,k,L,So,t,Z;let G=class Rt{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)==="hidden"||(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=Rt.getAncestorAttributeValue(t,"token"),i=Rt.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=Rt.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const a=Rt.getAncestorAttributeValue(t,"tokenProvider"),c=Rt.getAncestorAttributeValue(t,"eventsApiToken");s||(o=Rt.getAncestorAttributeValue(t,"userName"),n=Rt.getAncestorAttributeValue(t,"password"));const h=Rt.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 Rt.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 Js=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 vs=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,s="",i="long"){s||(s=G.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""}}},Lo=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(s=>{setTimeout(s,t)})}},sr="sonic";typeof __SONIC_PREFIX__<"u"&&(sr=__SONIC_PREFIX__);let ir=sr.replace(/-([a-z])/g,r=>r[1].toUpperCase());const ys=ir.charAt(0).toUpperCase()+ir.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 ti=De=="sonic"?"publisher-proxies-data":De+"-publisher-proxies-data";let ei=(St=class{constructor(t,s,i){for(this._proxies_=new Map,this._is_savable_=!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(),St.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._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_||(St.instancesCounter++,this._instanceCounter_=St.instancesCounter),St.instances.set(this._instanceCounter_,this),"<"+De+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+De+"-publisher-proxy>"}},St.instances=new Map,St.instancesCounter=0,St),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()}async cleanStorageData(){return new Promise(t=>{(async()=>{try{let i=localStorage.getItem(ti),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(ti,i),this.localStorageData={};const o=new Date().getTime()-1e3*60*60*12;for(const n in this.localStorageData)this.localStorageData[n].lastModifiationMS<o&&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_"+G.getLanguage()])==null?void 0:i.data)||t.get())}get(t,s){const i=(s==null?void 0:s.localStorageMode)==="enabled";if(!this.publishers.has(t)){const o={},n=new ke(o);this.set(t,n)}const e=this.publishers.get(t);return i&&this.initialisedData.indexOf(t)===-1&&(e._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(e,t)),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_"+G.getLanguage()]={lastModifiationMS:new Date().getTime(),data:n},i=!0)}if(i){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(ti,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="Fri Nov 15 2024 10:48:45 GMT+0100 (Central European Standard 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[ys+"PublisherManager"]=r[ys+"PublisherManager"]||N}const Eo=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_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_"]);class ke extends ei{constructor(t,s=null,i){super(t,s,i);const e=new Proxy(this,{get:function(o,n){if(Eo.has(n))return o[n];if(n==Symbol.toPrimitive)return()=>e.get();if(!o._proxies_.has(n)){const a=o._value_[n],c=new ke(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=="_instanceCounter_")return o._instanceCounter_=a,!0;if(!o._proxies_.has(n)){const d=new ke({},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 No extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){var t;this.publisherId=this.getAttribute("publisher")||"",this.publisher=ei.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",No)}catch{}let ws=(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=G.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!s)return;const i=N.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 m=t,b={publisher:p,onAssign:()=>{const v=a.variables.map(D=>{var u;return(u=L.getSubPublisher(i,D))==null?void 0:u.get()});let P=a.expression,S=!1;if(v.length==1&&a.variables[0].join(".")==P.substring(1)){let D=v[0];D===null&&(D=""),m[c]=D;return}for(let D=0;D<v.length;D++){let u=v[D];const f=a.variables[D];u===null&&(S=!0,u=void 0),P=P.replace("$"+f.join("."),u)}if(P.indexOf("|")!=-1){const D=P.indexOf("|");if(D==0)P=vs.js(P.substring(1));else{const u=P.substring(0,D),f=P.substring(D+1),y=vs[u];P=S?"":y?y(f):P}}else P=S?"":P;m[c]=P}};p==null||p.onAssign(b.onAssign),o.push(b)}}),L.publisherListeners.set(t,o)}},L.observedElements=new Map,L.enabled=!0,L.publisherListeners=new Map,L);ws.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=ws);let J=class qt{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=qt.isObject(a)&&qt.isObject(c),d=i?a!==c:a!=c;if(h&&!qt.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 qt.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&&qt.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static traverseDotNotation(t,s,i=!1){return qt.traverse(t,s.split("."),i)}static getURLSearchArray(t,s=""){let i=[];for(let e in t){const o=t[e];s&&(e=s+"["+e+"]"),qt.isObject(o)?i=[...i,...this.getURLSearchArray(o,e)]:i.push(`${e}=${o}`)}return i}static getURLSearchString(t){return qt.getURLSearchArray(t,"").join("&")}};const dt=J.traverseDotNotation;/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const _=r=>(t,s)=>{s!==void 0?s.addInitializer(()=>{customElements.define(r,t)}):customElements.define(r,t)};/**
5
+ */const w=r=>(t,s)=>{s!==void 0?s.addInitializer(()=>{customElements.define(r,t)}):customElements.define(r,t)};/**
6
6
  * @license
7
7
  * Copyright 2019 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const ds=globalThis,Rs=ds.ShadowRoot&&(ds.ShadyCSS===void 0||ds.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Us=Symbol(),Ii=new WeakMap;let ji=class{constructor(t,s,i){if(this._$cssResult$=!0,i!==Us)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=s}get styleSheet(){let t=this.o;const s=this.t;if(Rs&&t===void 0){const i=s!==void 0&&s.length===1;i&&(t=Ii.get(s)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Ii.set(s,t))}return t}toString(){return this.cssText}};const Xr=r=>new ji(typeof r=="string"?r:r+"",void 0,Us),P=(r,...t)=>{const s=r.length===1?r[0]:t.reduce((i,e,o)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+r[o+1],r[0]);return new ji(s,r,Us)},Jr=(r,t)=>{if(Rs)r.adoptedStyleSheets=t.map(s=>s instanceof CSSStyleSheet?s:s.styleSheet);else for(const s of t){const i=document.createElement("style"),e=ds.litNonce;e!==void 0&&i.setAttribute("nonce",e),i.textContent=s.cssText,r.appendChild(i)}},Fi=Rs?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let s="";for(const i of t.cssRules)s+=i.cssText;return Xr(s)})(r):r;/**
9
+ */const $s=globalThis,si=$s.ShadowRoot&&($s.ShadyCSS===void 0||$s.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ii=Symbol(),rr=new WeakMap;let or=class{constructor(t,s,i){if(this._$cssResult$=!0,i!==ii)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=s}get styleSheet(){let t=this.o;const s=this.t;if(si&&t===void 0){const i=s!==void 0&&s.length===1;i&&(t=rr.get(s)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&rr.set(s,t))}return t}toString(){return this.cssText}};const To=r=>new or(typeof r=="string"?r:r+"",void 0,ii),$=(r,...t)=>{const s=r.length===1?r[0]:t.reduce((i,e,o)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+r[o+1],r[0]);return new or(s,r,ii)},Mo=(r,t)=>{if(si)r.adoptedStyleSheets=t.map(s=>s instanceof CSSStyleSheet?s:s.styleSheet);else for(const s of t){const i=document.createElement("style"),e=$s.litNonce;e!==void 0&&i.setAttribute("nonce",e),i.textContent=s.cssText,r.appendChild(i)}},nr=si?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let s="";for(const i of t.cssRules)s+=i.cssText;return To(s)})(r):r;/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const{is:to,defineProperty:eo,getOwnPropertyDescriptor:so,getOwnPropertyNames:io,getOwnPropertySymbols:ro,getPrototypeOf:oo}=Object,qt=globalThis,zi=qt.trustedTypes,no=zi?zi.emptyScript:"",Vs=qt.reactiveElementPolyfillSupport,je=(r,t)=>r,ps={toAttribute(r,t){switch(t){case Boolean:r=r?no:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let s=r;switch(t){case Boolean:s=r!==null;break;case Number:s=r===null?null:Number(r);break;case Object:case Array:try{s=JSON.parse(r)}catch{s=null}}return s}},Bs=(r,t)=>!to(r,t),Ri={attribute:!0,type:String,converter:ps,reflect:!1,hasChanged:Bs};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),qt.litPropertyMetadata??(qt.litPropertyMetadata=new WeakMap);let Ae=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=Ri){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),e=this.getPropertyDescriptor(t,i,s);e!==void 0&&eo(this.prototype,t,e)}}static getPropertyDescriptor(t,s,i){const{get:e,set:o}=so(this.prototype,t)??{get(){return this[s]},set(n){this[s]=n}};return{get(){return e==null?void 0:e.call(this)},set(n){const a=e==null?void 0:e.call(this);o.call(this,n),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ri}static _$Ei(){if(this.hasOwnProperty(je("elementProperties")))return;const t=oo(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(je("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(je("properties"))){const s=this.properties,i=[...io(s),...ro(s)];for(const e of i)this.createProperty(e,s[e])}const t=this[Symbol.metadata];if(t!==null){const s=litPropertyMetadata.get(t);if(s!==void 0)for(const[i,e]of s)this.elementProperties.set(i,e)}this._$Eh=new Map;for(const[s,i]of this.elementProperties){const e=this._$Eu(s,i);e!==void 0&&this._$Eh.set(e,s)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const s=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const e of i)s.unshift(Fi(e))}else t!==void 0&&s.push(Fi(t));return s}static _$Eu(t,s){const i=s.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(s=>this.enableUpdating=s),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(s=>s(this))}addController(t){var s;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)==null||s.call(t))}removeController(t){var s;(s=this._$EO)==null||s.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Jr(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(s=>{var i;return(i=s.hostConnected)==null?void 0:i.call(s)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(s=>{var i;return(i=s.hostDisconnected)==null?void 0:i.call(s)})}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$EC(t,s){var o;const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(e!==void 0&&i.reflect===!0){const n=(((o=i.converter)==null?void 0:o.toAttribute)!==void 0?i.converter:ps).toAttribute(s,i.type);this._$Em=t,n==null?this.removeAttribute(e):this.setAttribute(e,n),this._$Em=null}}_$AK(t,s){var o;const i=this.constructor,e=i._$Eh.get(t);if(e!==void 0&&this._$Em!==e){const n=i.getPropertyOptions(e),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)==null?void 0:o.fromAttribute)!==void 0?n.converter:ps;this._$Em=e,this[e]=a.fromAttribute(s,n.type),this._$Em=null}}requestUpdate(t,s,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??Bs)(this[t],s))return;this.P(t,s,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(s){Promise.reject(s)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[o,n]of e)n.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],n)}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),(i=this._$EO)==null||i.forEach(e=>{var o;return(o=e.hostUpdate)==null?void 0:o.call(e)}),this.update(s)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(s)}willUpdate(t){}_$AE(t){var s;(s=this._$EO)==null||s.forEach(i=>{var e;return(e=i.hostUpdated)==null?void 0:e.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(s=>this._$EC(s,this[s]))),this._$EU()}updated(t){}firstUpdated(t){}};Ae.elementStyles=[],Ae.shadowRootOptions={mode:"open"},Ae[je("elementProperties")]=new Map,Ae[je("finalized")]=new Map,Vs==null||Vs({ReactiveElement:Ae}),(qt.reactiveElementVersions??(qt.reactiveElementVersions=[])).push("2.0.4");/**
13
+ */const{is:Io,defineProperty:jo,getOwnPropertyDescriptor:Fo,getOwnPropertyNames:zo,getOwnPropertySymbols:Ro,getPrototypeOf:Uo}=Object,Wt=globalThis,ar=Wt.trustedTypes,Vo=ar?ar.emptyScript:"",ri=Wt.reactiveElementPolyfillSupport,Be=(r,t)=>r,xs={toAttribute(r,t){switch(t){case Boolean:r=r?Vo:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let s=r;switch(t){case Boolean:s=r!==null;break;case Number:s=r===null?null:Number(r);break;case Object:case Array:try{s=JSON.parse(r)}catch{s=null}}return s}},oi=(r,t)=>!Io(r,t),lr={attribute:!0,type:String,converter:xs,reflect:!1,hasChanged:oi};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Wt.litPropertyMetadata??(Wt.litPropertyMetadata=new WeakMap);let Le=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=lr){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),e=this.getPropertyDescriptor(t,i,s);e!==void 0&&jo(this.prototype,t,e)}}static getPropertyDescriptor(t,s,i){const{get:e,set:o}=Fo(this.prototype,t)??{get(){return this[s]},set(n){this[s]=n}};return{get(){return e==null?void 0:e.call(this)},set(n){const a=e==null?void 0:e.call(this);o.call(this,n),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??lr}static _$Ei(){if(this.hasOwnProperty(Be("elementProperties")))return;const t=Uo(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Be("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Be("properties"))){const s=this.properties,i=[...zo(s),...Ro(s)];for(const e of i)this.createProperty(e,s[e])}const t=this[Symbol.metadata];if(t!==null){const s=litPropertyMetadata.get(t);if(s!==void 0)for(const[i,e]of s)this.elementProperties.set(i,e)}this._$Eh=new Map;for(const[s,i]of this.elementProperties){const e=this._$Eu(s,i);e!==void 0&&this._$Eh.set(e,s)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const s=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const e of i)s.unshift(nr(e))}else t!==void 0&&s.push(nr(t));return s}static _$Eu(t,s){const i=s.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(s=>this.enableUpdating=s),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(s=>s(this))}addController(t){var s;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)==null||s.call(t))}removeController(t){var s;(s=this._$EO)==null||s.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Mo(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(s=>{var i;return(i=s.hostConnected)==null?void 0:i.call(s)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(s=>{var i;return(i=s.hostDisconnected)==null?void 0:i.call(s)})}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$EC(t,s){var o;const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(e!==void 0&&i.reflect===!0){const n=(((o=i.converter)==null?void 0:o.toAttribute)!==void 0?i.converter:xs).toAttribute(s,i.type);this._$Em=t,n==null?this.removeAttribute(e):this.setAttribute(e,n),this._$Em=null}}_$AK(t,s){var o;const i=this.constructor,e=i._$Eh.get(t);if(e!==void 0&&this._$Em!==e){const n=i.getPropertyOptions(e),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)==null?void 0:o.fromAttribute)!==void 0?n.converter:xs;this._$Em=e,this[e]=a.fromAttribute(s,n.type),this._$Em=null}}requestUpdate(t,s,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??oi)(this[t],s))return;this.P(t,s,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(s){Promise.reject(s)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[o,n]of e)n.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],n)}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),(i=this._$EO)==null||i.forEach(e=>{var o;return(o=e.hostUpdate)==null?void 0:o.call(e)}),this.update(s)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(s)}willUpdate(t){}_$AE(t){var s;(s=this._$EO)==null||s.forEach(i=>{var e;return(e=i.hostUpdated)==null?void 0:e.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(s=>this._$EC(s,this[s]))),this._$EU()}updated(t){}firstUpdated(t){}};Le.elementStyles=[],Le.shadowRootOptions={mode:"open"},Le[Be("elementProperties")]=new Map,Le[Be("finalized")]=new Map,ri==null||ri({ReactiveElement:Le}),(Wt.reactiveElementVersions??(Wt.reactiveElementVersions=[])).push("2.0.4");/**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
- */const ao={attribute:!0,type:String,converter:ps,reflect:!1,hasChanged:Bs},lo=(r=ao,t,s)=>{const{kind:i,metadata:e}=s;let o=globalThis.litPropertyMetadata.get(e);if(o===void 0&&globalThis.litPropertyMetadata.set(e,o=new Map),o.set(s.name,r),i==="accessor"){const{name:n}=s;return{set(a){const c=t.get.call(this);t.set.call(this,a),this.requestUpdate(n,c,r)},init(a){return a!==void 0&&this.P(n,void 0,r),a}}}if(i==="setter"){const{name:n}=s;return function(a){const c=this[n];t.call(this,a),this.requestUpdate(n,c,r)}}throw Error("Unsupported decorator location: "+i)};function l(r){return(t,s)=>typeof s=="object"?lo(r,t,s):((i,e,o)=>{const n=e.hasOwnProperty(o);return e.constructor.createProperty(o,n?{...i,wrapped:!0}:i),n?Object.getOwnPropertyDescriptor(e,o):void 0})(r,t,s)}/**
17
+ */const Ho={attribute:!0,type:String,converter:xs,reflect:!1,hasChanged:oi},Bo=(r=Ho,t,s)=>{const{kind:i,metadata:e}=s;let o=globalThis.litPropertyMetadata.get(e);if(o===void 0&&globalThis.litPropertyMetadata.set(e,o=new Map),o.set(s.name,r),i==="accessor"){const{name:n}=s;return{set(a){const c=t.get.call(this);t.set.call(this,a),this.requestUpdate(n,c,r)},init(a){return a!==void 0&&this.P(n,void 0,r),a}}}if(i==="setter"){const{name:n}=s;return function(a){const c=this[n];t.call(this,a),this.requestUpdate(n,c,r)}}throw Error("Unsupported decorator location: "+i)};function l(r){return(t,s)=>typeof s=="object"?Bo(r,t,s):((i,e,o)=>{const n=e.hasOwnProperty(o);return e.constructor.createProperty(o,n?{...i,wrapped:!0}:i),n?Object.getOwnPropertyDescriptor(e,o):void 0})(r,t,s)}/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
@@ -22,95 +22,95 @@
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */const Hs=(r,t,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,s),s);/**
25
+ */const ni=(r,t,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,s),s);/**
26
26
  * @license
27
27
  * Copyright 2017 Google LLC
28
28
  * SPDX-License-Identifier: BSD-3-Clause
29
- */function ie(r,t){return(s,i,e)=>{const o=n=>{var a;return((a=n.renderRoot)==null?void 0:a.querySelector(r))??null};return Hs(s,i,{get(){return o(this)}})}}/**
29
+ */function oe(r,t){return(s,i,e)=>{const o=n=>{var a;return((a=n.renderRoot)==null?void 0:a.querySelector(r))??null};return ni(s,i,{get(){return o(this)}})}}/**
30
30
  * @license
31
31
  * Copyright 2021 Google LLC
32
32
  * SPDX-License-Identifier: BSD-3-Clause
33
- */function re(r){return(t,s)=>{const{slot:i,selector:e}=r??{},o="slot"+(i?`[name=${i}]`:":not([name])");return Hs(t,s,{get(){var c;const n=(c=this.renderRoot)==null?void 0:c.querySelector(o),a=(n==null?void 0:n.assignedElements(r))??[];return e===void 0?a:a.filter(h=>h.matches(e))}})}}/**
33
+ */function ne(r){return(t,s)=>{const{slot:i,selector:e}=r??{},o="slot"+(i?`[name=${i}]`:":not([name])");return ni(t,s,{get(){var c;const n=(c=this.renderRoot)==null?void 0:c.querySelector(o),a=(n==null?void 0:n.assignedElements(r))??[];return e===void 0?a:a.filter(h=>h.matches(e))}})}}/**
34
34
  * @license
35
35
  * Copyright 2017 Google LLC
36
36
  * SPDX-License-Identifier: BSD-3-Clause
37
- */function it(r){return(t,s)=>{const{slot:i}=r??{},e="slot"+(i?`[name=${i}]`:":not([name])");return Hs(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 rt(r){return(t,s)=>{const{slot:i}=r??{},e="slot"+(i?`[name=${i}]`:":not([name])");return ni(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
41
- */const Fe=globalThis,us=Fe.trustedTypes,Ui=us?us.createPolicy("lit-html",{createHTML:r=>r}):void 0,qs="$lit$",Rt=`lit$${Math.random().toFixed(9).slice(2)}$`,Ws="?"+Rt,co=`<${Ws}>`,oe=document,ze=()=>oe.createComment(""),Re=r=>r===null||typeof r!="object"&&typeof r!="function",Ks=Array.isArray,Vi=r=>Ks(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",Ys=`[
42
- \f\r]`,Ue=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bi=/-->/g,Hi=/>/g,ne=RegExp(`>|${Ys}(?:([^\\s"'>=/]+)(${Ys}*=${Ys}*(?:[^
43
- \f\r"'\`<>=]|("|')|))|$)`,"g"),qi=/'/g,Wi=/"/g,Ki=/^(?:script|style|textarea|title)$/i,ho=r=>(t,...s)=>({_$litType$:r,strings:t,values:s}),g=ho(1),bt=Symbol.for("lit-noChange"),C=Symbol.for("lit-nothing"),Yi=new WeakMap,ae=oe.createTreeWalker(oe,129);function Zi(r,t){if(!Ks(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ui!==void 0?Ui.createHTML(t):t}const Gi=(r,t)=>{const s=r.length-1,i=[];let e,o=t===2?"<svg>":t===3?"<math>":"",n=Ue;for(let a=0;a<s;a++){const c=r[a];let h,d,f=-1,m=0;for(;m<c.length&&(n.lastIndex=m,d=n.exec(c),d!==null);)m=n.lastIndex,n===Ue?d[1]==="!--"?n=Bi:d[1]!==void 0?n=Hi:d[2]!==void 0?(Ki.test(d[2])&&(e=RegExp("</"+d[2],"g")),n=ne):d[3]!==void 0&&(n=ne):n===ne?d[0]===">"?(n=e??Ue,f=-1):d[1]===void 0?f=-2:(f=n.lastIndex-d[2].length,h=d[1],n=d[3]===void 0?ne:d[3]==='"'?Wi:qi):n===Wi||n===qi?n=ne:n===Bi||n===Hi?n=Ue:(n=ne,e=void 0);const b=n===ne&&r[a+1].startsWith("/>")?" ":"";o+=n===Ue?c+co:f>=0?(i.push(h),c.slice(0,f)+qs+c.slice(f)+Rt+b):c+Rt+(f===-2?a:b)}return[Zi(r,o+(r[s]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class Ve{constructor({strings:t,_$litType$:s},i){let e;this.parts=[];let o=0,n=0;const a=t.length-1,c=this.parts,[h,d]=Gi(t,s);if(this.el=Ve.createElement(h,i),ae.currentNode=this.el.content,s===2||s===3){const f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(e=ae.nextNode())!==null&&c.length<a;){if(e.nodeType===1){if(e.hasAttributes())for(const f of e.getAttributeNames())if(f.endsWith(qs)){const m=d[n++],b=e.getAttribute(f).split(Rt),v=/([.?@])?(.*)/.exec(m);c.push({type:1,index:o,name:v[2],strings:b,ctor:v[1]==="."?Xi:v[1]==="?"?Ji:v[1]==="@"?tr:Be}),e.removeAttribute(f)}else f.startsWith(Rt)&&(c.push({type:6,index:o}),e.removeAttribute(f));if(Ki.test(e.tagName)){const f=e.textContent.split(Rt),m=f.length-1;if(m>0){e.textContent=us?us.emptyScript:"";for(let b=0;b<m;b++)e.append(f[b],ze()),ae.nextNode(),c.push({type:2,index:++o});e.append(f[m],ze())}}}else if(e.nodeType===8)if(e.data===Ws)c.push({type:2,index:o});else{let f=-1;for(;(f=e.data.indexOf(Rt,f+1))!==-1;)c.push({type:7,index:o}),f+=Rt.length-1}o++}}static createElement(t,s){const i=oe.createElement("template");return i.innerHTML=t,i}}function le(r,t,s=r,i){var n,a;if(t===bt)return t;let e=i!==void 0?(n=s.o)==null?void 0:n[i]:s.l;const o=Re(t)?void 0:t._$litDirective$;return(e==null?void 0:e.constructor)!==o&&((a=e==null?void 0:e._$AO)==null||a.call(e,!1),o===void 0?e=void 0:(e=new o(r),e._$AT(r,s,i)),i!==void 0?(s.o??(s.o=[]))[i]=e:s.l=e),e!==void 0&&(t=le(r,e._$AS(r,t.values),e,i)),t}let Qi=class{constructor(t,s){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=s}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:s},parts:i}=this._$AD,e=((t==null?void 0:t.creationScope)??oe).importNode(s,!0);ae.currentNode=e;let o=ae.nextNode(),n=0,a=0,c=i[0];for(;c!==void 0;){if(n===c.index){let h;c.type===2?h=new fs(o,o.nextSibling,this,t):c.type===1?h=new c.ctor(o,c.name,c.strings,this,t):c.type===6&&(h=new er(o,this,t)),this._$AV.push(h),c=i[++a]}n!==(c==null?void 0:c.index)&&(o=ae.nextNode(),n++)}return ae.currentNode=oe,e}p(t){let s=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,s),s+=i.strings.length-2):i._$AI(t[s])),s++}},fs=class Yr{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this.v}constructor(t,s,i,e){this.type=2,this._$AH=C,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=i,this.options=e,this.v=(e==null?void 0:e.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const s=this._$AM;return s!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=s.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=le(this,t,s),Re(t)?t===C||t==null||t===""?(this._$AH!==C&&this._$AR(),this._$AH=C):t!==this._$AH&&t!==bt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Vi(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==C&&Re(this._$AH)?this._$AA.nextSibling.data=t:this.T(oe.createTextNode(t)),this._$AH=t}$(t){var o;const{values:s,_$litType$:i}=t,e=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Ve.createElement(Zi(i.h,i.h[0]),this.options)),i);if(((o=this._$AH)==null?void 0:o._$AD)===e)this._$AH.p(s);else{const n=new Qi(e,this),a=n.u(this.options);n.p(s),this.T(a),this._$AH=n}}_$AC(t){let s=Yi.get(t.strings);return s===void 0&&Yi.set(t.strings,s=new Ve(t)),s}k(t){Ks(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let i,e=0;for(const o of t)e===s.length?s.push(i=new Yr(this.O(ze()),this.O(ze()),this,this.options)):i=s[e],i._$AI(o),e++;e<s.length&&(this._$AR(i&&i._$AB.nextSibling,e),s.length=e)}_$AR(t=this._$AA.nextSibling,s){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,s);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var s;this._$AM===void 0&&(this.v=t,(s=this._$AP)==null||s.call(this,t))}};class Be{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,i,e,o){this.type=1,this._$AH=C,this._$AN=void 0,this.element=t,this.name=s,this._$AM=e,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=C}_$AI(t,s=this,i,e){const o=this.strings;let n=!1;if(o===void 0)t=le(this,t,s,0),n=!Re(t)||t!==this._$AH&&t!==bt,n&&(this._$AH=t);else{const a=t;let c,h;for(t=o[0],c=0;c<o.length-1;c++)h=le(this,a[i+c],s,c),h===bt&&(h=this._$AH[c]),n||(n=!Re(h)||h!==this._$AH[c]),h===C?t=C:t!==C&&(t+=(h??"")+o[c+1]),this._$AH[c]=h}n&&!e&&this.j(t)}j(t){t===C?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Xi extends Be{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===C?void 0:t}}class Ji extends Be{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==C)}}class tr extends Be{constructor(t,s,i,e,o){super(t,s,i,e,o),this.type=5}_$AI(t,s=this){if((t=le(this,t,s,0)??C)===bt)return;const i=this._$AH,e=t===C&&i!==C||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==C&&(i===C||e);e&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var s;typeof this._$AH=="function"?this._$AH.call(((s=this.options)==null?void 0:s.host)??this.element,t):this._$AH.handleEvent(t)}}class er{constructor(t,s,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){le(this,t)}}const po={M:qs,P:Rt,A:Ws,C:1,L:Gi,R:Qi,D:Vi,V:le,I:fs,H:Be,N:Ji,U:tr,B:Xi,F:er},Zs=Fe.litHtmlPolyfillSupport;Zs==null||Zs(Ve,fs),(Fe.litHtmlVersions??(Fe.litHtmlVersions=[])).push("3.2.0");const uo=(r,t,s)=>{const i=(s==null?void 0:s.renderBefore)??t;let e=i._$litPart$;if(e===void 0){const o=(s==null?void 0:s.renderBefore)??null;i._$litPart$=e=new fs(t.insertBefore(ze(),o),o,void 0,s??{})}return e._$AI(r),e};/**
41
+ */const qe=globalThis,Ps=qe.trustedTypes,cr=Ps?Ps.createPolicy("lit-html",{createHTML:r=>r}):void 0,ai="$lit$",Ut=`lit$${Math.random().toFixed(9).slice(2)}$`,li="?"+Ut,qo=`<${li}>`,ae=document,We=()=>ae.createComment(""),Ke=r=>r===null||typeof r!="object"&&typeof r!="function",ci=Array.isArray,hr=r=>ci(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",hi=`[
42
+ \f\r]`,Ye=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,dr=/-->/g,pr=/>/g,le=RegExp(`>|${hi}(?:([^\\s"'>=/]+)(${hi}*=${hi}*(?:[^
43
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ur=/'/g,fr=/"/g,gr=/^(?:script|style|textarea|title)$/i,Wo=r=>(t,...s)=>({_$litType$:r,strings:t,values:s}),g=Wo(1),vt=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),mr=new WeakMap,ce=ae.createTreeWalker(ae,129);function br(r,t){if(!ci(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return cr!==void 0?cr.createHTML(t):t}const vr=(r,t)=>{const s=r.length-1,i=[];let e,o=t===2?"<svg>":t===3?"<math>":"",n=Ye;for(let a=0;a<s;a++){const c=r[a];let h,d,p=-1,m=0;for(;m<c.length&&(n.lastIndex=m,d=n.exec(c),d!==null);)m=n.lastIndex,n===Ye?d[1]==="!--"?n=dr:d[1]!==void 0?n=pr:d[2]!==void 0?(gr.test(d[2])&&(e=RegExp("</"+d[2],"g")),n=le):d[3]!==void 0&&(n=le):n===le?d[0]===">"?(n=e??Ye,p=-1):d[1]===void 0?p=-2:(p=n.lastIndex-d[2].length,h=d[1],n=d[3]===void 0?le:d[3]==='"'?fr:ur):n===fr||n===ur?n=le:n===dr||n===pr?n=Ye:(n=le,e=void 0);const b=n===le&&r[a+1].startsWith("/>")?" ":"";o+=n===Ye?c+qo:p>=0?(i.push(h),c.slice(0,p)+ai+c.slice(p)+Ut+b):c+Ut+(p===-2?a:b)}return[br(r,o+(r[s]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};let di=class Do{constructor({strings:t,_$litType$:s},i){let e;this.parts=[];let o=0,n=0;const a=t.length-1,c=this.parts,[h,d]=vr(t,s);if(this.el=Do.createElement(h,i),ce.currentNode=this.el.content,s===2||s===3){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(e=ce.nextNode())!==null&&c.length<a;){if(e.nodeType===1){if(e.hasAttributes())for(const p of e.getAttributeNames())if(p.endsWith(ai)){const m=d[n++],b=e.getAttribute(p).split(Ut),v=/([.?@])?(.*)/.exec(m);c.push({type:1,index:o,name:v[2],strings:b,ctor:v[1]==="."?_r:v[1]==="?"?wr:v[1]==="@"?$r:Ze}),e.removeAttribute(p)}else p.startsWith(Ut)&&(c.push({type:6,index:o}),e.removeAttribute(p));if(gr.test(e.tagName)){const p=e.textContent.split(Ut),m=p.length-1;if(m>0){e.textContent=Ps?Ps.emptyScript:"";for(let b=0;b<m;b++)e.append(p[b],We()),ce.nextNode(),c.push({type:2,index:++o});e.append(p[m],We())}}}else if(e.nodeType===8)if(e.data===li)c.push({type:2,index:o});else{let p=-1;for(;(p=e.data.indexOf(Ut,p+1))!==-1;)c.push({type:7,index:o}),p+=Ut.length-1}o++}}static createElement(t,s){const i=ae.createElement("template");return i.innerHTML=t,i}};function he(r,t,s=r,i){var n,a;if(t===vt)return t;let e=i!==void 0?(n=s._$Co)==null?void 0:n[i]:s._$Cl;const o=Ke(t)?void 0:t._$litDirective$;return(e==null?void 0:e.constructor)!==o&&((a=e==null?void 0:e._$AO)==null||a.call(e,!1),o===void 0?e=void 0:(e=new o(r),e._$AT(r,s,i)),i!==void 0?(s._$Co??(s._$Co=[]))[i]=e:s._$Cl=e),e!==void 0&&(t=he(r,e._$AS(r,t.values),e,i)),t}let yr=class{constructor(t,s){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=s}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:s},parts:i}=this._$AD,e=((t==null?void 0:t.creationScope)??ae).importNode(s,!0);ce.currentNode=e;let o=ce.nextNode(),n=0,a=0,c=i[0];for(;c!==void 0;){if(n===c.index){let h;c.type===2?h=new As(o,o.nextSibling,this,t):c.type===1?h=new c.ctor(o,c.name,c.strings,this,t):c.type===6&&(h=new xr(o,this,t)),this._$AV.push(h),c=i[++a]}n!==(c==null?void 0:c.index)&&(o=ce.nextNode(),n++)}return ce.currentNode=ae,e}p(t){let s=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,s),s+=i.strings.length-2):i._$AI(t[s])),s++}},As=class ko{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,s,i,e){this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=i,this.options=e,this._$Cv=(e==null?void 0:e.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const s=this._$AM;return s!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=s.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=he(this,t,s),Ke(t)?t===A||t==null||t===""?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==vt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):hr(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==A&&Ke(this._$AH)?this._$AA.nextSibling.data=t:this.T(ae.createTextNode(t)),this._$AH=t}$(t){var o;const{values:s,_$litType$:i}=t,e=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=di.createElement(br(i.h,i.h[0]),this.options)),i);if(((o=this._$AH)==null?void 0:o._$AD)===e)this._$AH.p(s);else{const n=new yr(e,this),a=n.u(this.options);n.p(s),this.T(a),this._$AH=n}}_$AC(t){let s=mr.get(t.strings);return s===void 0&&mr.set(t.strings,s=new di(t)),s}k(t){ci(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let i,e=0;for(const o of t)e===s.length?s.push(i=new ko(this.O(We()),this.O(We()),this,this.options)):i=s[e],i._$AI(o),e++;e<s.length&&(this._$AR(i&&i._$AB.nextSibling,e),s.length=e)}_$AR(t=this._$AA.nextSibling,s){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,s);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var s;this._$AM===void 0&&(this._$Cv=t,(s=this._$AP)==null||s.call(this,t))}},Ze=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,i,e,o){this.type=1,this._$AH=A,this._$AN=void 0,this.element=t,this.name=s,this._$AM=e,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=A}_$AI(t,s=this,i,e){const o=this.strings;let n=!1;if(o===void 0)t=he(this,t,s,0),n=!Ke(t)||t!==this._$AH&&t!==vt,n&&(this._$AH=t);else{const a=t;let c,h;for(t=o[0],c=0;c<o.length-1;c++)h=he(this,a[i+c],s,c),h===vt&&(h=this._$AH[c]),n||(n=!Ke(h)||h!==this._$AH[c]),h===A?t=A:t!==A&&(t+=(h??"")+o[c+1]),this._$AH[c]=h}n&&!e&&this.j(t)}j(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}};class _r extends Ze{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===A?void 0:t}}let wr=class extends Ze{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==A)}};class $r extends Ze{constructor(t,s,i,e,o){super(t,s,i,e,o),this.type=5}_$AI(t,s=this){if((t=he(this,t,s,0)??A)===vt)return;const i=this._$AH,e=t===A&&i!==A||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==A&&(i===A||e);e&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var s;typeof this._$AH=="function"?this._$AH.call(((s=this.options)==null?void 0:s.host)??this.element,t):this._$AH.handleEvent(t)}}let xr=class{constructor(t,s,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){he(this,t)}};const Ko={M:ai,P:Ut,A:li,C:1,L:vr,R:yr,D:hr,V:he,I:As,H:Ze,N:wr,U:$r,B:_r,F:xr},pi=qe.litHtmlPolyfillSupport;pi==null||pi(di,As),(qe.litHtmlVersions??(qe.litHtmlVersions=[])).push("3.2.1");const Yo=(r,t,s)=>{const i=(s==null?void 0:s.renderBefore)??t;let e=i._$litPart$;if(e===void 0){const o=(s==null?void 0:s.renderBefore)??null;i._$litPart$=e=new As(t.insertBefore(We(),o),o,void 0,s??{})}return e._$AI(r),e};/**
44
44
  * @license
45
45
  * Copyright 2020 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
- */const{I:fo}=po,go=r=>r.strings===void 0,sr=()=>document.createComment(""),He=(r,t,s)=>{var o;const i=r._$AA.parentNode,e=t===void 0?r._$AB:t._$AA;if(s===void 0){const n=i.insertBefore(sr(),e),a=i.insertBefore(sr(),e);s=new fo(n,a,r,r.options)}else{const n=s._$AB.nextSibling,a=s._$AM,c=a!==r;if(c){let h;(o=s._$AQ)==null||o.call(s,r),s._$AM=r,s._$AP!==void 0&&(h=r._$AU)!==a._$AU&&s._$AP(h)}if(n!==e||c){let h=s._$AA;for(;h!==n;){const d=h.nextSibling;i.insertBefore(h,e),h=d}}}return s},ce=(r,t,s=r)=>(r._$AI(t,s),r),mo={},bo=(r,t=mo)=>r._$AH=t,vo=r=>r._$AH,Gs=r=>{var i;(i=r._$AP)==null||i.call(r,!1,!0);let t=r._$AA;const s=r._$AB.nextSibling;for(;t!==s;){const e=t.nextSibling;t.remove(),t=e}};/**
47
+ */const{I:Zo}=Ko,Go=r=>r.strings===void 0,Pr=()=>document.createComment(""),Ge=(r,t,s)=>{var o;const i=r._$AA.parentNode,e=t===void 0?r._$AB:t._$AA;if(s===void 0){const n=i.insertBefore(Pr(),e),a=i.insertBefore(Pr(),e);s=new Zo(n,a,r,r.options)}else{const n=s._$AB.nextSibling,a=s._$AM,c=a!==r;if(c){let h;(o=s._$AQ)==null||o.call(s,r),s._$AM=r,s._$AP!==void 0&&(h=r._$AU)!==a._$AU&&s._$AP(h)}if(n!==e||c){let h=s._$AA;for(;h!==n;){const d=h.nextSibling;i.insertBefore(h,e),h=d}}}return s},de=(r,t,s=r)=>(r._$AI(t,s),r),Qo={},Xo=(r,t=Qo)=>r._$AH=t,Jo=r=>r._$AH,ui=r=>{var i;(i=r._$AP)==null||i.call(r,!1,!0);let t=r._$AA;const s=r._$AB.nextSibling;for(;t!==s;){const e=t.nextSibling;t.remove(),t=e}};/**
48
48
  * @license
49
49
  * Copyright 2017 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
51
- */const he={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},de=r=>(...t)=>({_$litDirective$:r,values:t});let Se=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,s,i){this.t=t,this._$AM=s,this.i=i}_$AS(t,s){return this.update(t,s)}update(t,s){return this.render(...s)}};/**
51
+ */const Ee={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},pe=r=>(...t)=>({_$litDirective$:r,values:t});let Ne=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,s,i){this._$Ct=t,this._$AM=s,this._$Ci=i}_$AS(t,s){return this.update(t,s)}update(t,s){return this.render(...s)}};/**
52
52
  * @license
53
53
  * Copyright 2017 Google LLC
54
54
  * SPDX-License-Identifier: BSD-3-Clause
55
- */const qe=(r,t)=>{var i;const s=r._$AN;if(s===void 0)return!1;for(const e of s)(i=e._$AO)==null||i.call(e,t,!1),qe(e,t);return!0},gs=r=>{let t,s;do{if((t=r._$AM)===void 0)break;s=t._$AN,s.delete(r),r=t}while((s==null?void 0:s.size)===0)},ir=r=>{for(let t;t=r._$AM;r=t){let s=t._$AN;if(s===void 0)t._$AN=s=new Set;else if(s.has(r))break;s.add(r),_o(t)}};function yo(r){this._$AN!==void 0?(gs(this),this._$AM=r,ir(this)):this._$AM=r}function wo(r,t=!1,s=0){const i=this._$AH,e=this._$AN;if(e!==void 0&&e.size!==0)if(t)if(Array.isArray(i))for(let o=s;o<i.length;o++)qe(i[o],!1),gs(i[o]);else i!=null&&(qe(i,!1),gs(i));else qe(this,r)}const _o=r=>{r.type==he.CHILD&&(r._$AP??(r._$AP=wo),r._$AQ??(r._$AQ=yo))};class Qs extends Se{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,s,i){super._$AT(t,s,i),ir(this),this.isConnected=t._$AU}_$AO(t,s=!0){var i,e;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(e=this.disconnected)==null||e.call(this)),s&&(qe(this,t),gs(this))}setValue(t){if(go(this.t))this.t._$AI(t,this);else{const s=[...this.t._$AH];s[this.i]=t,this.t._$AI(s,this,0)}}disconnected(){}reconnected(){}}/**
55
+ */const Qe=(r,t)=>{var i;const s=r._$AN;if(s===void 0)return!1;for(const e of s)(i=e._$AO)==null||i.call(e,t,!1),Qe(e,t);return!0},Cs=r=>{let t,s;do{if((t=r._$AM)===void 0)break;s=t._$AN,s.delete(r),r=t}while((s==null?void 0:s.size)===0)},Ar=r=>{for(let t;t=r._$AM;r=t){let s=t._$AN;if(s===void 0)t._$AN=s=new Set;else if(s.has(r))break;s.add(r),sn(t)}};function tn(r){this._$AN!==void 0?(Cs(this),this._$AM=r,Ar(this)):this._$AM=r}function en(r,t=!1,s=0){const i=this._$AH,e=this._$AN;if(e!==void 0&&e.size!==0)if(t)if(Array.isArray(i))for(let o=s;o<i.length;o++)Qe(i[o],!1),Cs(i[o]);else i!=null&&(Qe(i,!1),Cs(i));else Qe(this,r)}const sn=r=>{r.type==Ee.CHILD&&(r._$AP??(r._$AP=en),r._$AQ??(r._$AQ=tn))};let Cr=class extends Ne{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,s,i){super._$AT(t,s,i),Ar(this),this.isConnected=t._$AU}_$AO(t,s=!0){var i,e;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(e=this.disconnected)==null||e.call(this)),s&&(Qe(this,t),Cs(this))}setValue(t){if(Go(this._$Ct))this._$Ct._$AI(t,this);else{const s=[...this._$Ct._$AH];s[this._$Ci]=t,this._$Ct._$AI(s,this,0)}}disconnected(){}reconnected(){}};/**
56
56
  * @license
57
57
  * Copyright 2017 Google LLC
58
58
  * SPDX-License-Identifier: BSD-3-Clause
59
- */class w extends Ae{constructor(){super(...arguments),this.renderOptions={host:this},this.o=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.o=uo(s,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this.o)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.o)==null||t.setConnected(!1)}render(){return bt}}w._$litElement$=!0,w.finalized=!0,(Wr=globalThis.litElementHydrateSupport)==null||Wr.call(globalThis,{LitElement:w});const Xs=globalThis.litElementPolyfillSupport;Xs==null||Xs({LitElement:w}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.0");function ms(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=J.traverse(i,t);const e=new Set;return e.add(i),e}return new Set([r])}class xo extends Qs{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)),bt}subscribe(t){this.unsubscribe(),typeof t=="function"?this.onAssign=()=>{this.setValue(t())}:this.onAssign=s=>{this.setValue(s)},this.observables=ms(t),this.observables.forEach(s=>{s.onAssign(this.onAssign)})}disconnected(){this.unsubscribe()}reconnected(){this.observable&&this.subscribe(this.observable)}}const rr=de(xo),Po=rr,$o=rr,Co=r=>ms(r).values().next().value.get(),or=(r,t)=>{const s=ms(r).values().next().value;if(t!==void 0){const i=s.get();J.isEmpty(i)&&s.set(t)}return s},Ao=or,nr=or,So=(r,t)=>{ms(r).values().next().value.set(t)},R=class R{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){R.tokens.delete(this.serviceURL);return}R.invalidTokens.includes(t)||R.tokens.set(this.serviceURL,t)}get token(){return R.invalidTokens.includes(this._token)?R.tokens.get(this.serviceURL):this._token}handleInvalidToken(t){t&&(R.invalidTokens.includes(t)||(R.invalidTokens.push(t),this.token=null))}async handleResult(t,s){var a;R.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&&J.isObject(o)&&(o._sonic_http_response_=t),e===498&&!R.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(R.tokens.has(this.serviceURL)){this.token=R.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:R.failledTokenUpdates.set(this.serviceURL,!0)}catch{R.failledTokenUpdates.set(this.serviceURL,!0)}}async localGet(t,s){var f;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[m,b]of e.entries()){const v=b.split(",").map($=>$.trim());for(const $ of v)for(const S of n)if(typeof S!="object")isNaN(+S)?S.toString().toLowerCase().includes(b.toLowerCase())&&a.push(S):S===b&&a.push(S);else{const D=S;if(!D[m])continue;isNaN(+D[m])?(f=D[m])!=null&&f.toString().toLowerCase().includes($.toLowerCase())&&a.push(S):D[m]===$&&a.push(S)}}return a.slice(h,h+c)}firstCallDone(){return new Promise(t=>{if(!R.firstCallDoneFlags.has(this.serviceURL))R.firstCallDoneFlags.set(this.serviceURL,"loading"),t(!0);else{const s=()=>{[void 0,"loading"].includes(R.firstCallDoneFlags.get(this.serviceURL))?window.requestAnimationFrame(s):t(!0)};s()}})}async get(t,s){await this.firstCallDone(),this.blockUntilDone&&R.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(!R.loadingGetPromises.has(a)){const h=new Promise(async d=>{try{const f=await fetch(n,{headers:o,credentials:this.credentials,cache:this.cache}),m=await this.handleResult(f,e);d(m)}catch{d(null)}});R.loadingGetPromises.set(a,h)}const c=await R.loadingGetPromises.get(a);return R.loadingGetPromises.delete(a),c}async createHeaders(t){await this.auth();const s={};return this.token&&(s.Authorization="Bearer "+this.token),s["Accept-Language"]=Z.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)}};R.loadingGetPromises=new Map,R.tokens=new Map,R.invalidTokens=[],R.failledTokenUpdates=new Map,R.firstCallDoneFlags=new Map;let Oe=R;/**
59
+ */let _=class extends Le{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=Yo(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 vt}};_._$litElement$=!0,_.finalized=!0,(So=globalThis.litElementHydrateSupport)==null||So.call(globalThis,{LitElement:_});const fi=globalThis.litElementPolyfillSupport;fi==null||fi({LitElement:_}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");function Ss(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=J.traverse(i,t);const e=new Set;return e.add(i),e}return new Set([r])}class rn extends Cr{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)),vt}subscribe(t){this.unsubscribe(),typeof t=="function"?this.onAssign=()=>{this.setValue(t())}:this.onAssign=s=>{this.setValue(s)},this.observables=Ss(t),this.observables.forEach(s=>{s.onAssign(this.onAssign)})}disconnected(){this.unsubscribe()}reconnected(){this.observable&&this.subscribe(this.observable)}}const Sr=pe(rn),on=Sr,nn=Sr,an=r=>{var t;return(t=Ss(r).values().next().value)==null?void 0:t.get()},Or=(r,t)=>{const s=Ss(r).values().next().value;if(t!==void 0&&s){const i=s.get();J.isEmpty(i)&&s.set(t)}return s||new ke({})},ln=Or,Dr=Or,cn=(r,t)=>{var s;(s=Ss(r).values().next().value)==null||s.set(t)},R=class R{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){R.tokens.delete(this.serviceURL);return}R.invalidTokens.includes(t)||R.tokens.set(this.serviceURL,t)}get token(){return R.invalidTokens.includes(this._token)?R.tokens.get(this.serviceURL):this._token}handleInvalidToken(t){t&&(R.invalidTokens.includes(t)||(R.invalidTokens.push(t),this.token=null))}async handleResult(t,s){var a;R.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&&J.isObject(o)&&(o._sonic_http_response_=t),e===498&&!R.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(R.tokens.has(this.serviceURL)){this.token=R.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:R.failledTokenUpdates.set(this.serviceURL,!0)}catch{R.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[m,b]of e.entries()){const v=b.split(",").map(P=>P.trim());for(const P of v)for(const S of n)if(typeof S!="object")isNaN(+S)?S.toString().toLowerCase().includes(b.toLowerCase())&&a.push(S):S===b&&a.push(S);else{const D=S;if(!D[m])continue;isNaN(+D[m])?(p=D[m])!=null&&p.toString().toLowerCase().includes(P.toLowerCase())&&a.push(S):D[m]===P&&a.push(S)}}return a.slice(h,h+c)}firstCallDone(){return new Promise(t=>{if(!R.firstCallDoneFlags.has(this.serviceURL))R.firstCallDoneFlags.set(this.serviceURL,"loading"),t(!0);else{const s=()=>{[void 0,"loading"].includes(R.firstCallDoneFlags.get(this.serviceURL))?window.requestAnimationFrame(s):t(!0)};s()}})}async get(t,s){await this.firstCallDone(),this.blockUntilDone&&R.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(!R.loadingGetPromises.has(a)){const h=new Promise(async d=>{try{const p=await fetch(n,{headers:o,credentials:this.credentials,cache:this.cache}),m=await this.handleResult(p,e);d(m)}catch{d(null)}});R.loadingGetPromises.set(a,h)}const c=await R.loadingGetPromises.get(a);return R.loadingGetPromises.delete(a),c}async createHeaders(t){await this.auth();const s={};return this.token&&(s.Authorization="Bearer "+this.token),s["Accept-Language"]=G.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)}};R.loadingGetPromises=new Map,R.tokens=new Map,R.invalidTokens=[],R.failledTokenUpdates=new Map,R.firstCallDoneFlags=new Map;let Te=R;/**
60
60
  * @license
61
61
  * Copyright 2017 Google LLC
62
62
  * SPDX-License-Identifier: BSD-3-Clause
63
- */class Js extends Se{constructor(t){if(super(t),this.it=C,t.type!==he.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===bt)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:[]}}}Js.directiveName="unsafeHTML",Js.resultType=1;const F=de(Js),ti=new Map,ar=r=>{if(!r)return null;const t=Z.getApiConfiguration(r),s=Z.getAncestorAttributeValue(r,"wordingProvider"),i=Z.getAncestorAttributeValue(r,"wordingVersionProvider"),e={apiConfiguration:t,wordingProvider:s,wordingVersionProvider:i};let o=null;for(const[n,a]of ti)if(J.deepEqual(n,e)){o=a;break}return o||(o={api:new Oe(t),keysToTranslate:new Set,translatedKeys:new Set,wordingProvider:s,callIndex:0,wordingVersionProvider:i,apiCallKey:e},ti.set(e,o)),o},lr="",B=class B extends Qs{constructor(t){super(t),this.useUnsafeHTML=!1,this.onAssign=s=>{const i=this.useUnsafeHTML?F(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)),bt}static async callApi(t,s,i=!0,e){if(await N.getInstance().isLocalStrorageReady,B.firstCall){B.firstCall=!1,js(B.reloadWordings);const d=Object.keys(B.publisher.get());for(const f of d)B.publisher.get()[f]===lr&&delete B.publisher[f]}if(t){const d=Z.getAncestorAttributeValue(t,"wordingVersionProvider");d&&nr(d).onAssign(B.handleVersionProvider(t))}let o=B.publisher.get()["wording_"+s]!=null;const n=e||ar(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]=lr),a!==n.callIndex)return;const d=Array.from(n.keysToTranslate);if(!d.length)return;const f=c.split("?"),m=f.shift(),b=(f.length>0?f.join("?")+"&":"")+"labels[]="+d.join("&labels[]="),v=m+"?"+b;n.translatedKeys=new Set([...n.translatedKeys,...n.keysToTranslate]),n.keysToTranslate.clear();const $=await h.get(v);for(const S in $)B.publisher["wording_"+S]=$[S]})}static reloadWordings(){for(const t of ti.values())t.keysToTranslate=new Set(t.translatedKeys),t.keysToTranslate.size>0&&B.callApi(null,"",!1,t)}static handleVersionProvider(t){const s=ar(t);if(!s)return;if(B.versionProviderHandlers.has(s))return B.versionProviderHandlers.get(s);const i=function(e){if(!s.wordingVersionProvider)return;const n=B.publisher.get().__wording_versions__??[];if(e==null)return;const a=n.find(c=>c.serviceURL===s.api.serviceURL)||{serviceURL:s.api.serviceURL,version:0};n.includes(a)||n.push(a),e!==a.version&&(a.version=e,B.publisher.set({__wording_versions__:n}),B.reloadWordings())};return B.versionProviderHandlers.set(s,i),i}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 We=B;var Oo=Object.defineProperty,Do=Object.getOwnPropertyDescriptor,St=(r,t,s,i)=>{for(var e=i>1?void 0:i?Do(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&&Oo(t,s,e),e};let bs=!1,ei=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 Z.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)),We.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(),bs=!bs)}),this.dataProvider&&(window[this.dataProvider]=this.publisher),this.addEventListener("mouseover",()=>{bs||this.removeDebugger(),document.body.appendChild(this.debug),ei.add(this.debug)}),this.addEventListener("mouseout",()=>{bs||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 gi=class extends Ne{constructor(t){if(super(t),this.it=A,t.type!==Ee.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===A||t==null)return this._t=void 0,this.it=t;if(t===vt)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:[]}}};gi.directiveName="unsafeHTML",gi.resultType=1;const F=pe(gi),mi=new Map,kr=r=>{if(!r)return null;const t=G.getApiConfiguration(r),s=G.getAncestorAttributeValue(r,"wordingProvider"),i=G.getAncestorAttributeValue(r,"wordingVersionProvider"),e={apiConfiguration:t,wordingProvider:s,wordingVersionProvider:i};let o=null;for(const[n,a]of mi)if(J.deepEqual(n,e)){o=a;break}return o||(o={api:new Te(t),keysToTranslate:new Set,translatedKeys:new Set,wordingProvider:s,callIndex:0,wordingVersionProvider:i,apiCallKey:e},mi.set(e,o)),o},Lr="",H=class H extends Cr{constructor(t){super(t),this.useUnsafeHTML=!1,this.onAssign=s=>{const i=this.useUnsafeHTML?F(s):s;this.setValue(i)},this.node=t.options.host}unsubscribe(){H.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)),vt}static async callApi(t,s,i=!0,e){if(await N.getInstance().isLocalStrorageReady,H.firstCall){H.firstCall=!1,Js(H.reloadWordings);const d=Object.keys(H.publisher.get());for(const p of d)H.publisher.get()[p]===Lr&&delete H.publisher[p]}if(t){const d=G.getAncestorAttributeValue(t,"wordingVersionProvider");d&&Dr(d).onAssign(H.handleVersionProvider(t))}let o=H.publisher.get()["wording_"+s]!=null;const n=e||kr(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()=>{H.callApi(null,s,!1,n)},1e3);return}const h=n.api;window.queueMicrotask(async()=>{if(o=H.publisher["wording_"+s].get()!=null,!o&&s!==""&&(n.keysToTranslate.add(s),H.publisher["wording_"+s]=Lr),a!==n.callIndex)return;const d=Array.from(n.keysToTranslate);if(!d.length)return;const p=c.split("?"),m=p.shift(),b=(p.length>0?p.join("?")+"&":"")+"labels[]="+d.join("&labels[]="),v=m+"?"+b;n.translatedKeys=new Set([...n.translatedKeys,...n.keysToTranslate]),n.keysToTranslate.clear();const P=await h.get(v);for(const S in P)H.publisher["wording_"+S]=P[S]})}static reloadWordings(){for(const t of mi.values())t.keysToTranslate=new Set(t.translatedKeys),t.keysToTranslate.size>0&&H.callApi(null,"",!1,t)}static handleVersionProvider(t){const s=kr(t),i=o=>{};if(!s)return i;if(H.versionProviderHandlers.has(s))return H.versionProviderHandlers.get(s)||i;const e=function(o){if(!s.wordingVersionProvider)return;const a=H.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,H.publisher.set({__wording_versions__:a}),H.reloadWordings())};return H.versionProviderHandlers.set(s,e),e}subscribe(t){this.unsubscribe(),H.publisher["wording_"+t].onAssign(this.onAssign),H.callApi(this.node,t)}disconnected(){this.unsubscribe()}reconnected(){this.key&&this.subscribe(this.key)}};H.publisher=N.get("sonic-wording",{localStorageMode:"enabled"}),H.firstCall=!0,H.versionProviderHandlers=new Map;let Me=H;const hn=pe(Me);var dn=Object.defineProperty,pn=Object.getOwnPropertyDescriptor,Dt=(r,t,s,i)=>{for(var e=i>1?void 0:i?pn(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&&dn(t,s,e),e};let Os=!1,bi=new Set;const Q=(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 G.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)),Me.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(),Os=!Os)}),this.dataProvider&&(window[this.dataProvider]=this.publisher),this.addEventListener("mouseover",()=>{Os||this.removeDebugger(),document.body.appendChild(this.debug),bi.add(this.debug)}),this.addEventListener("mouseout",()=>{Os||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(){ei.forEach(n=>{document.body.contains(n)&&document.body.removeChild(n)}),ei=new Set}getApiConfiguration(){return Z.getApiConfiguration(this)}async initWording(){const n=Object.getOwnPropertyNames(this.constructor.prototype);for(const a of n)a.indexOf("wording_")==0&&We.callApi(this,a.substring(8));We.publisher.startTemplateFilling(this)}createRenderRoot(){if(this.noShadowDom===""||this.getAttribute("noShadowDom")==="")return this;const n=super.createRenderRoot();return hs.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"});if(this.dataProvider=a,this.hasAttribute("subDataProvider")){const h=this.getAttribute("subDataProvider");this.dataProvider=a+"/"+h,c=J.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 St([l({type:Number})],s.prototype,"collectDependenciesVersion",2),St([l({type:Boolean})],s.prototype,"displayContents",2),St([l({type:Boolean})],s.prototype,"noAutoFill",2),St([l({type:Boolean})],s.prototype,"forceAutoFill",2),St([l({type:Object})],s.prototype,"propertyMap",2),St([l({type:String,attribute:"data-title"})],s.prototype,"title",2),St([l({reflect:!0})],s.prototype,"dataProvider",2),St([l()],s.prototype,"bindPublisher",2),St([l()],s.prototype,"props",1),St([T()],s.prototype,"shouldRenderLazy",2),s};var ko=Object.defineProperty,Lo=(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&&ko(t,s,e),e};const Ke=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 Lo([l({type:Array})],t.prototype,"templates"),t};var Eo=Object.defineProperty,No=Object.getOwnPropertyDescriptor,K=(r,t,s,i)=>{for(var e=i>1?void 0:i?No(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&&Eo(t,s,e),e};const To="sonic-date";js(()=>z.updateComponentsLanguage());let z=class extends G(Ke(w)){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.hide_hours=!1,this.end_date=0,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(){z.dateCompnents.forEach(r=>r.pageLanguage=Z.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=Z.getLanguage(),z.dateCompnents.add(this),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),z.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=as.ucFirst(e[0].value),e.filter(o=>o.hidden!==!0)}dateStringToSeconds(r){return new Date(r).getTime()/1e3}willUpdate(r){if(this.date_string&&(this.date=this.dateStringToSeconds(this.date_string)),this.date&&(this.start_date=this.date),this.start_date_string&&(this.start_date=this.dateStringToSeconds(this.start_date_string)),this.end_date_string&&(this.end_date=this.dateStringToSeconds(this.end_date_string)),!(!this.start_date&&!this.now&&!this.end_date)&&(this.start_date||(this.start_date=Date.now()/1e3),this.end_date>0&&this.end_date<this.start_date)){const t=this.start_date;this.start_date=this.end_date,this.end_date=t}}render(){if(!this.renderIf||!this.start_date&&!this.now&&!this.end_date)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.start_date,this.end_date,r);return F(`${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("")}`)}};z.dateCompnents=new Set,K([l()],z.prototype,"wording_billet_periode_validite",1),K([l({type:Boolean})],z.prototype,"designMode",2),K([l({type:String})],z.prototype,"time_zone",2),K([l({type:Number})],z.prototype,"date",2),K([l({type:String})],z.prototype,"date_string",2),K([l({type:String})],z.prototype,"start_date_string",2),K([l({type:String})],z.prototype,"end_date_string",2),K([l({type:Number})],z.prototype,"start_date",2),K([l({type:Boolean})],z.prototype,"hide_hours",2),K([l({type:Number})],z.prototype,"end_date",2),K([l({type:String})],z.prototype,"era",2),K([l({type:String})],z.prototype,"year",2),K([l({type:String})],z.prototype,"month",2),K([l({type:String})],z.prototype,"day",2),K([l({type:String})],z.prototype,"weekday",2),K([l({type:String})],z.prototype,"hour",2),K([l({type:Boolean})],z.prototype,"hour12",2),K([l({type:String})],z.prototype,"minute",2),K([l({type:String})],z.prototype,"language",2),K([l({type:Boolean})],z.prototype,"renderIf",2),K([l({type:Boolean})],z.prototype,"now",2),z=K([_(To)],z);let rt=(Q=class{static listen(){var s;if(!Q.listening)return;const t=(s=document.location)==null?void 0:s.href.replace(document.location.origin,"");Q.prevURL&&Q.prevURL!=t&&(Q.prevURL=t,Q.listeners.forEach(i=>{i.location=t})),window.requestAnimationFrame(Q.listen)}static offChange(t){const s=Q.listeners.indexOf(t);s!=-1&&(Q.listeners.splice(s,1),Q.listeners.length==0&&(Q.listening=!1))}static onChange(t){Q.listening||(Q.listening=!0,Q.listen()),Q.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,f=(s||d).toString(),b=i.indexOf("http")==0?new URL(i).origin!=d:!1,v=i=="",$=history.length<3,S=v&&$,D=f!=document.location.href;if(b&&D||S){const u=history.state||{};u.concorde=u.concorde||{},u.concorde.hasDoneHistoryBack=!0,history.pushState(u,document.title),history.back(),document.location.replace(f)}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:n=o.href.indexOf(e.href)==0,n?t.setAttribute("active","true"):t.removeAttribute("active")}}},Q.listeners=[],Q.listening=!1,Q.prevURL=(t=document.location)==null?void 0:t.href.replace(document.location.origin,""),Q);/**
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(){bi.forEach(n=>{document.body.contains(n)&&document.body.removeChild(n)}),bi=new Set}getApiConfiguration(){return G.getApiConfiguration(this)}async initWording(){const n=Object.getOwnPropertyNames(this.constructor.prototype);for(const a of n)a.indexOf("wording_")==0&&Me.callApi(this,a.substring(8));Me.publisher.startTemplateFilling(this)}createRenderRoot(){if(this.noShadowDom===""||this.getAttribute("noShadowDom")==="")return this;const n=super.createRenderRoot();return ws.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"});if(this.dataProvider=a,this.hasAttribute("subDataProvider")){const h=this.getAttribute("subDataProvider");this.dataProvider=a+"/"+h,c=J.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 Dt([l({type:Number})],s.prototype,"collectDependenciesVersion",2),Dt([l({type:Boolean})],s.prototype,"displayContents",2),Dt([l({type:Boolean})],s.prototype,"noAutoFill",2),Dt([l({type:Boolean})],s.prototype,"forceAutoFill",2),Dt([l({type:Object})],s.prototype,"propertyMap",2),Dt([l({type:String,attribute:"data-title"})],s.prototype,"title",2),Dt([l({reflect:!0})],s.prototype,"dataProvider",2),Dt([l()],s.prototype,"bindPublisher",2),Dt([l()],s.prototype,"props",1),Dt([T()],s.prototype,"shouldRenderLazy",2),s};var un=Object.defineProperty,fn=(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&&un(t,s,e),e};const Xe=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 fn([l({type:Array})],t.prototype,"templates"),t};var gn=Object.defineProperty,mn=Object.getOwnPropertyDescriptor,K=(r,t,s,i)=>{for(var e=i>1?void 0:i?mn(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};const bn="sonic-date";Js(()=>z.updateComponentsLanguage());let z=class extends Q(Xe(_)){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.hide_hours=!1,this.end_date=0,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(){z.dateCompnents.forEach(r=>r.pageLanguage=G.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=G.getLanguage(),z.dateCompnents.add(this),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),z.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=vs.ucFirst(e[0].value),e.filter(o=>o.hidden!==!0)}dateStringToSeconds(r){return new Date(r).getTime()/1e3}willUpdate(r){if(this.date_string&&(this.date=this.dateStringToSeconds(this.date_string)),this.date&&(this.start_date=this.date),this.start_date_string&&(this.start_date=this.dateStringToSeconds(this.start_date_string)),this.end_date_string&&(this.end_date=this.dateStringToSeconds(this.end_date_string)),!(!this.start_date&&!this.now&&!this.end_date)&&(this.start_date||(this.start_date=Date.now()/1e3),this.end_date>0&&this.end_date<this.start_date)){const t=this.start_date;this.start_date=this.end_date,this.end_date=t}}render(){if(!this.renderIf||!this.start_date&&!this.now&&!this.end_date)return A;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.start_date,this.end_date,r);return F(`${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("")}`)}};z.dateCompnents=new Set,K([l()],z.prototype,"wording_billet_periode_validite",1),K([l({type:Boolean})],z.prototype,"designMode",2),K([l({type:String})],z.prototype,"time_zone",2),K([l({type:Number})],z.prototype,"date",2),K([l({type:String})],z.prototype,"date_string",2),K([l({type:String})],z.prototype,"start_date_string",2),K([l({type:String})],z.prototype,"end_date_string",2),K([l({type:Number})],z.prototype,"start_date",2),K([l({type:Boolean})],z.prototype,"hide_hours",2),K([l({type:Number})],z.prototype,"end_date",2),K([l({type:String})],z.prototype,"era",2),K([l({type:String})],z.prototype,"year",2),K([l({type:String})],z.prototype,"month",2),K([l({type:String})],z.prototype,"day",2),K([l({type:String})],z.prototype,"weekday",2),K([l({type:String})],z.prototype,"hour",2),K([l({type:Boolean})],z.prototype,"hour12",2),K([l({type:String})],z.prototype,"minute",2),K([l({type:String})],z.prototype,"language",2),K([l({type:Boolean})],z.prototype,"renderIf",2),K([l({type:Boolean})],z.prototype,"now",2),z=K([w(bn)],z);let ot=(Z=class{static listen(){var s;if(!Z.listening)return;const t=(s=document.location)==null?void 0:s.href.replace(document.location.origin,"");Z.prevURL&&Z.prevURL!=t&&(Z.prevURL=t,Z.listeners.forEach(i=>{i.location=t})),window.requestAnimationFrame(Z.listen)}static offChange(t){const s=Z.listeners.indexOf(t);s!=-1&&(Z.listeners.splice(s,1),Z.listeners.length==0&&(Z.listening=!1))}static onChange(t){Z.listening||(Z.listening=!0,Z.listen()),Z.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(),b=i.indexOf("http")==0?new URL(i).origin!=d:!1,v=i=="",P=history.length<3,S=v&&P,D=p!=document.location.href;if(b&&D||S){const f=history.state||{};f.concorde=f.concorde||{},f.concorde.hasDoneHistoryBack=!0,history.pushState(f,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:n=o.href.indexOf(e.href)==0,n?t.setAttribute("active","true"):t.removeAttribute("active")}}},Z.listeners=[],Z.listening=!1,Z.prevURL=(t=document.location)==null?void 0:t.href.replace(document.location.origin,""),Z);/**
69
69
  * @license
70
70
  * Copyright 2018 Google LLC
71
71
  * SPDX-License-Identifier: BSD-3-Clause
72
- */const cr="important",Mo=" !"+cr,ut=de(class extends Se{constructor(r){var t;if(super(r),r.type!==he.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(Mo);i.includes("-")||o?s.setProperty(i,o?e.slice(0,-11):e,o?cr:""):s[i]=e}}return bt}});var Io=Object.defineProperty,jo=Object.getOwnPropertyDescriptor,Ot=(r,t,s,i)=>{for(var e=i>1?void 0:i?jo(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&&Io(t,s,e),e};const vs=new Map,De=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(){}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&&ht(e,this.name).set(i)}getFormPublisherValue(){const i=this.getFormPublisher();return i?ht(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=""),J.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&&ht(this.publisher,this._name).offAssign(this.onValueAssign),this._name&&i&&ht(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&&ht(this.publisher,this._name).onAssign(this.onValueAssign),i=this.getFormPublisher(),this._name&&i&&(ht(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){vs.has(a)||vs.set(a,[]);const c=vs.get(a);(c==null?void 0:c.indexOf(this))==-1&&c.push(this)}const n=vs.get(o);this.addEventListener("keydown",a=>{var b;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(v=>{var D;const $=(D=v.shadowRoot)==null?void 0:D.querySelector(h);if(!$)return!1;const S=window.getComputedStyle($);return S.display!=="none"&&S.display!==""&&S.pointerEvents!="none"&&S.visibility!=="hidden"&&$.getBoundingClientRect().width>0});let f=null;if(c.key=="ArrowDown"&&d){const v=d.indexOf(this);v==d.length-1?f=d[0]:f=d[v+1]}else if(c.key=="ArrowUp"&&d){const v=d.indexOf(this);v==0?f=d[d.length-1]:f=d[v-1]}const m=(b=f==null?void 0:f.shadowRoot)==null?void 0:b.querySelector(h);m&&m.focus&&(m.focus(),a.preventDefault(),a.stopPropagation())})}focus(){var e;const i=(e=this.shadowRoot)==null?void 0:e.querySelector("[data-form-element]");i==null||i.focus()}connectedCallback(){this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"),super.connectedCallback(),this.addKeyboardNavigation()}disconnectedCallback(){super.disconnectedCallback(),this._name&&this.publisher&&ht(this.publisher,this._name).offAssign(this.onValueAssign);const i=this.getFormPublisher();this._name&&i&&(ht(i,this._name).offAssign(this.onFormValueAssign),i.offFormInvalidate(this.onFormDataInValidate))}}return Ot([l({type:Boolean,reflect:!0})],t.prototype,"touched",2),Ot([l({type:Boolean})],t.prototype,"error",2),Ot([l({type:Boolean})],t.prototype,"autofocus",2),Ot([l({type:Boolean})],t.prototype,"required",2),Ot([l({type:Boolean})],t.prototype,"forceAutoFill",2),Ot([l({type:Boolean})],t.prototype,"disabled",2),Ot([l({type:String,attribute:"data-aria-label"})],t.prototype,"ariaLabel",2),Ot([l({type:String,attribute:"data-aria-labelledby"})],t.prototype,"ariaLabelledby",2),Ot([l()],t.prototype,"name",1),Ot([l()],t.prototype,"value",1),t};let Fo=class $e{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=>$e.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=>$e.from(t.map(s)),filter:s=>$e.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 $e.from(i)}}),without:()=>({duplicates:()=>({forKey:s=>{const i=[...new Set(t.map(e=>e[s]))];return $e.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 $e.from(t.filter(o=>s.every(e(o,i))))}})})})}}};var zo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ro(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var si={exports:{}};(function(r,t){var s=[].slice;(function(i,e){return t!==null?r.exports=e():i.UrlPattern=e()})(zo,function(){var i,e,o,n,a,c,h,d,f,m,b,v,$,S,D;return f=function(p){return p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},h=function(p,u){var y,A,O;for(O=[],y=-1,A=p.length;++y<A;)O=O.concat(u(p[y]));return O},S=function(p,u){var y,A,O;for(O="",y=-1,A=p.length;++y<A;)O+=u(p[y]);return O},$=function(p){return new RegExp(p.toString()+"|").exec("").length-1},b=function(p,u){var y,A,O,E,H;for(E={},y=-1,O=p.length;++y<O;)A=p[y],H=u[y],H!=null&&(E[A]!=null?(Array.isArray(E[A])||(E[A]=[E[A]]),E[A].push(H)):E[A]=H);return E},i={},i.Result=function(p,u){this.value=p,this.rest=u},i.Tagged=function(p,u){this.tag=p,this.value=u},i.tag=function(p,u){return function(y){var A,O;if(A=u(y),A!=null)return O=new i.Tagged(p,A.value),new i.Result(O,A.rest)}},i.regex=function(p){return function(u){var y,A;if(y=p.exec(u),y!=null)return A=y[0],new i.Result(A,u.slice(A.length))}},i.sequence=function(){var p;return p=1<=arguments.length?s.call(arguments,0):[],function(u){var y,A,O,E,H,W;for(y=-1,A=p.length,W=[],E=u;++y<A;){if(O=p[y],H=O(E),H==null)return;W.push(H.value),E=H.rest}return new i.Result(W,E)}},i.pick=function(){var p,u;return p=arguments[0],u=2<=arguments.length?s.call(arguments,1):[],function(y){var A,O;if(O=i.sequence.apply(i,u)(y),O!=null)return A=O.value,O.value=A[p],O}},i.string=function(p){var u;return u=p.length,function(y){if(y.slice(0,u)===p)return new i.Result(p,y.slice(u))}},i.lazy=function(p){var u;return u=null,function(y){return u==null&&(u=p()),u(y)}},i.baseMany=function(p,u,y,A,O){var E,H,W,At;for(W=O,At=y?"":[];!(u!=null&&(E=u(W),E!=null)||(H=p(W),H==null));)y?At+=H.value:At.push(H.value),W=H.rest;if(!(A&&At.length===0))return new i.Result(At,W)},i.many1=function(p){return function(u){return i.baseMany(p,null,!1,!0,u)}},i.concatMany1Till=function(p,u){return function(y){return i.baseMany(p,u,!0,!0,y)}},i.firstChoice=function(){var p;return p=1<=arguments.length?s.call(arguments,0):[],function(u){var y,A,O,E;for(y=-1,A=p.length;++y<A;)if(O=p[y],E=O(u),E!=null)return E}},v=function(p){var u;return u={},u.wildcard=i.tag("wildcard",i.string(p.wildcardChar)),u.optional=i.tag("optional",i.pick(1,i.string(p.optionalSegmentStartChar),i.lazy(function(){return u.pattern}),i.string(p.optionalSegmentEndChar))),u.name=i.regex(new RegExp("^["+p.segmentNameCharset+"]+")),u.named=i.tag("named",i.pick(1,i.string(p.segmentNameStartChar),i.lazy(function(){return u.name}))),u.escapedChar=i.pick(1,i.string(p.escapeChar),i.regex(/^./)),u.static=i.tag("static",i.concatMany1Till(i.firstChoice(i.lazy(function(){return u.escapedChar}),i.regex(/^./)),i.firstChoice(i.string(p.segmentNameStartChar),i.string(p.optionalSegmentStartChar),i.string(p.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(p,u){if(Array.isArray(p))return S(p,function(y){return c(y,u)});switch(p.tag){case"wildcard":return"(.*?)";case"named":return"(["+u+"]+)";case"static":return f(p.value);case"optional":return"(?:"+c(p.value,u)+")?"}},a=function(p,u){return u==null&&(u=d.segmentValueCharset),"^"+c(p,u)+"$"},n=function(p){if(Array.isArray(p))return h(p,n);switch(p.tag){case"wildcard":return["_"];case"named":return[p.value];case"static":return[];case"optional":return n(p.value)}},m=function(p,u,y,A){var O,E,H,W;if(A==null&&(A=!1),W=p[u],W==null){if(A)throw new Error("no values provided for key `"+u+"`");return}if(O=y[u]||0,E=Array.isArray(W)?W.length-1:0,O>E){if(A)throw new Error("too few values provided for key `"+u+"`");return}return H=Array.isArray(W)?W[O]:W,A&&(y[u]=O+1),H},o=function(p,u,y){var A,O;if(Array.isArray(p)){for(A=-1,O=p.length;++A<O;)if(o(p[A],u,y))return!0;return!1}switch(p.tag){case"wildcard":return m(u,"_",y,!1)!=null;case"named":return m(u,p.value,y,!1)!=null;case"static":return!1;case"optional":return o(p.value,u,y)}},D=function(p,u,y){if(Array.isArray(p))return S(p,function(A){return D(A,u,y)});switch(p.tag){case"wildcard":return m(u,"_",y,!0);case"named":return m(u,p.value,y,!0);case"static":return p.value;case"optional":return o(p.value,u,y)?D(p.value,u,y):""}},e=function(p,u){var y,A,O,E,H;if(p instanceof e){this.isRegex=p.isRegex,this.regex=p.regex,this.ast=p.ast,this.names=p.names;return}if(this.isRegex=p instanceof RegExp,!(typeof p=="string"||this.isRegex))throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=p,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(y=$(this.regex),u.length!==y)throw new Error("regex contains "+y+" groups but array of group names contains "+u.length);this.names=u}return}if(p==="")throw new Error("argument must not be the empty string");if(H=p.replace(/\s+/g,""),H!==p)throw new Error("argument must not contain whitespace");if(A={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},E=v(A),O=E.pattern(p),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,A.segmentValueCharset)),this.names=n(this.ast)},e.prototype.match=function(p){var u,y;return y=this.regex.exec(p),y==null?null:(u=y.slice(1),this.names?b(this.names,u):u)},e.prototype.stringify=function(p){if(p==null&&(p={}),this.isRegex)throw new Error("can't stringify patterns generated from a regex");if(p!==Object(p))throw new Error("argument must be an object or undefined");return D(this.ast,p,{})},e.escapeForRegex=f,e.concatMap=h,e.stringConcatMap=S,e.regexGroupCount=$,e.keysAndValuesToObject=b,e.P=i,e.newParser=v,e.defaultOptions=d,e.astNodeToRegexString=a,e.astNodeToNames=n,e.getParam=m,e.astNodeContainsSegmentsForProvidedParams=o,e.stringify=D,e})})(si,si.exports);var Uo=si.exports;const pe=Ro(Uo),Vo=Zr,Bo=Fo,Ho=hs,qo=as,ue=Z,Wo=rt,Ye=J,Ko=Ie,et=N,Yo=Oe,Zo=pe;window["concorde-utils"]=window["concorde-utils"]||{},window["concorde-utils"]={Utils:Vo,Arrays:Bo,DataBindObserver:Ho,Format:qo,HTML:ue,LocationHandler:Wo,Objects:Ye,PublisherProxy:Ko,PublisherManager:et,api:Yo,URLPattern:Zo};var Go=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor,ke=(r,t,s,i)=>{for(var e=i>1?void 0:i?Qo(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&&Go(t,s,e),e};const ii=r=>{class t extends r{constructor(){super(...arguments),this._value="",this.forceAutoFill=!1,this.unique=null,this.radio=null,this.unCheckOnDisconnect=!1,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.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:et.get(i+"/"+e+"/_available_values_")}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 ke([l()],t.prototype,"value",1),ke([l()],t.prototype,"forceAutoFill",2),ke([l({type:Boolean})],t.prototype,"unique",2),ke([l({type:Boolean})],t.prototype,"radio",2),ke([l({type:Boolean})],t.prototype,"unCheckOnDisconnect",2),ke([l()],t.prototype,"checked",1),t};/**
72
+ */const Er="important",vn=" !"+Er,ft=pe(class extends Ne{constructor(r){var t;if(super(r),r.type!==Ee.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(vn);i.includes("-")||o?s.setProperty(i,o?e.slice(0,-11):e,o?Er:""):s[i]=e}}return vt}});var yn=Object.defineProperty,_n=Object.getOwnPropertyDescriptor,kt=(r,t,s,i)=>{for(var e=i>1?void 0:i?_n(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&&yn(t,s,e),e};const Ds=new Map,Ie=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(){}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&&dt(e,this.name).set(i)}getFormPublisherValue(){const i=this.getFormPublisher();return i?dt(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=""),J.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&&dt(this.publisher,this._name).offAssign(this.onValueAssign),this._name&&i&&dt(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&&dt(this.publisher,this._name).onAssign(this.onValueAssign),i=this.getFormPublisher(),this._name&&i&&(dt(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){Ds.has(a)||Ds.set(a,[]);const c=Ds.get(a);(c==null?void 0:c.indexOf(this))==-1&&c.push(this)}const n=Ds.get(o);this.addEventListener("keydown",a=>{var b;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(v=>{var D;const P=(D=v.shadowRoot)==null?void 0:D.querySelector(h);if(!P)return!1;const S=window.getComputedStyle(P);return S.display!=="none"&&S.display!==""&&S.pointerEvents!="none"&&S.visibility!=="hidden"&&P.getBoundingClientRect().width>0});let p=null;if(c.key=="ArrowDown"&&d){const v=d.indexOf(this);v==d.length-1?p=d[0]:p=d[v+1]}else if(c.key=="ArrowUp"&&d){const v=d.indexOf(this);v==0?p=d[d.length-1]:p=d[v-1]}const m=(b=p==null?void 0:p.shadowRoot)==null?void 0:b.querySelector(h);m&&m.focus&&(m.focus(),a.preventDefault(),a.stopPropagation())})}focus(){var e;const i=(e=this.shadowRoot)==null?void 0:e.querySelector("[data-form-element]");i==null||i.focus()}connectedCallback(){this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"),super.connectedCallback(),this.addKeyboardNavigation()}disconnectedCallback(){super.disconnectedCallback(),this._name&&this.publisher&&dt(this.publisher,this._name).offAssign(this.onValueAssign);const i=this.getFormPublisher();this._name&&i&&(dt(i,this._name).offAssign(this.onFormValueAssign),i.offFormInvalidate(this.onFormDataInValidate))}}return kt([l({type:Boolean,reflect:!0})],t.prototype,"touched",2),kt([l({type:Boolean})],t.prototype,"error",2),kt([l({type:Boolean})],t.prototype,"autofocus",2),kt([l({type:Boolean})],t.prototype,"required",2),kt([l({type:Boolean})],t.prototype,"forceAutoFill",2),kt([l({type:Boolean})],t.prototype,"disabled",2),kt([l({type:String,attribute:"data-aria-label"})],t.prototype,"ariaLabel",2),kt([l({type:String,attribute:"data-aria-labelledby"})],t.prototype,"ariaLabelledby",2),kt([l()],t.prototype,"name",1),kt([l()],t.prototype,"value",1),t};let wn=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 $n=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var vi={exports:{}};(function(r,t){var s=[].slice;(function(i,e){return t!==null?r.exports=e():i.UrlPattern=e()})($n,function(){var i,e,o,n,a,c,h,d,p,m,b,v,P,S,D;return p=function(u){return u.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},h=function(u,f){var y,C,O;for(O=[],y=-1,C=u.length;++y<C;)O=O.concat(f(u[y]));return O},S=function(u,f){var y,C,O;for(O="",y=-1,C=u.length;++y<C;)O+=f(u[y]);return O},P=function(u){return new RegExp(u.toString()+"|").exec("").length-1},b=function(u,f){var y,C,O,E,B;for(E={},y=-1,O=u.length;++y<O;)C=u[y],B=f[y],B!=null&&(E[C]!=null?(Array.isArray(E[C])||(E[C]=[E[C]]),E[C].push(B)):E[C]=B);return E},i={},i.Result=function(u,f){this.value=u,this.rest=f},i.Tagged=function(u,f){this.tag=u,this.value=f},i.tag=function(u,f){return function(y){var C,O;if(C=f(y),C!=null)return O=new i.Tagged(u,C.value),new i.Result(O,C.rest)}},i.regex=function(u){return function(f){var y,C;if(y=u.exec(f),y!=null)return C=y[0],new i.Result(C,f.slice(C.length))}},i.sequence=function(){var u;return u=1<=arguments.length?s.call(arguments,0):[],function(f){var y,C,O,E,B,W;for(y=-1,C=u.length,W=[],E=f;++y<C;){if(O=u[y],B=O(E),B==null)return;W.push(B.value),E=B.rest}return new i.Result(W,E)}},i.pick=function(){var u,f;return u=arguments[0],f=2<=arguments.length?s.call(arguments,1):[],function(y){var C,O;if(O=i.sequence.apply(i,f)(y),O!=null)return C=O.value,O.value=C[u],O}},i.string=function(u){var f;return f=u.length,function(y){if(y.slice(0,f)===u)return new i.Result(u,y.slice(f))}},i.lazy=function(u){var f;return f=null,function(y){return f==null&&(f=u()),f(y)}},i.baseMany=function(u,f,y,C,O){var E,B,W,Ot;for(W=O,Ot=y?"":[];!(f!=null&&(E=f(W),E!=null)||(B=u(W),B==null));)y?Ot+=B.value:Ot.push(B.value),W=B.rest;if(!(C&&Ot.length===0))return new i.Result(Ot,W)},i.many1=function(u){return function(f){return i.baseMany(u,null,!1,!0,f)}},i.concatMany1Till=function(u,f){return function(y){return i.baseMany(u,f,!0,!0,y)}},i.firstChoice=function(){var u;return u=1<=arguments.length?s.call(arguments,0):[],function(f){var y,C,O,E;for(y=-1,C=u.length;++y<C;)if(O=u[y],E=O(f),E!=null)return E}},v=function(u){var f;return f={},f.wildcard=i.tag("wildcard",i.string(u.wildcardChar)),f.optional=i.tag("optional",i.pick(1,i.string(u.optionalSegmentStartChar),i.lazy(function(){return f.pattern}),i.string(u.optionalSegmentEndChar))),f.name=i.regex(new RegExp("^["+u.segmentNameCharset+"]+")),f.named=i.tag("named",i.pick(1,i.string(u.segmentNameStartChar),i.lazy(function(){return f.name}))),f.escapedChar=i.pick(1,i.string(u.escapeChar),i.regex(/^./)),f.static=i.tag("static",i.concatMany1Till(i.firstChoice(i.lazy(function(){return f.escapedChar}),i.regex(/^./)),i.firstChoice(i.string(u.segmentNameStartChar),i.string(u.optionalSegmentStartChar),i.string(u.optionalSegmentEndChar),f.wildcard))),f.token=i.lazy(function(){return i.firstChoice(f.wildcard,f.optional,f.named,f.static)}),f.pattern=i.many1(i.lazy(function(){return f.token})),f},d={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},c=function(u,f){if(Array.isArray(u))return S(u,function(y){return c(y,f)});switch(u.tag){case"wildcard":return"(.*?)";case"named":return"(["+f+"]+)";case"static":return p(u.value);case"optional":return"(?:"+c(u.value,f)+")?"}},a=function(u,f){return f==null&&(f=d.segmentValueCharset),"^"+c(u,f)+"$"},n=function(u){if(Array.isArray(u))return h(u,n);switch(u.tag){case"wildcard":return["_"];case"named":return[u.value];case"static":return[];case"optional":return n(u.value)}},m=function(u,f,y,C){var O,E,B,W;if(C==null&&(C=!1),W=u[f],W==null){if(C)throw new Error("no values provided for key `"+f+"`");return}if(O=y[f]||0,E=Array.isArray(W)?W.length-1:0,O>E){if(C)throw new Error("too few values provided for key `"+f+"`");return}return B=Array.isArray(W)?W[O]:W,C&&(y[f]=O+1),B},o=function(u,f,y){var C,O;if(Array.isArray(u)){for(C=-1,O=u.length;++C<O;)if(o(u[C],f,y))return!0;return!1}switch(u.tag){case"wildcard":return m(f,"_",y,!1)!=null;case"named":return m(f,u.value,y,!1)!=null;case"static":return!1;case"optional":return o(u.value,f,y)}},D=function(u,f,y){if(Array.isArray(u))return S(u,function(C){return D(C,f,y)});switch(u.tag){case"wildcard":return m(f,"_",y,!0);case"named":return m(f,u.value,y,!0);case"static":return u.value;case"optional":return o(u.value,f,y)?D(u.value,f,y):""}},e=function(u,f){var y,C,O,E,B;if(u instanceof e){this.isRegex=u.isRegex,this.regex=u.regex,this.ast=u.ast,this.names=u.names;return}if(this.isRegex=u instanceof RegExp,!(typeof u=="string"||this.isRegex))throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=u,f!=null){if(!Array.isArray(f))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(y=P(this.regex),f.length!==y)throw new Error("regex contains "+y+" groups but array of group names contains "+f.length);this.names=f}return}if(u==="")throw new Error("argument must not be the empty string");if(B=u.replace(/\s+/g,""),B!==u)throw new Error("argument must not contain whitespace");if(C={escapeChar:(f!=null?f.escapeChar:void 0)||d.escapeChar,segmentNameStartChar:(f!=null?f.segmentNameStartChar:void 0)||d.segmentNameStartChar,segmentNameCharset:(f!=null?f.segmentNameCharset:void 0)||d.segmentNameCharset,segmentValueCharset:(f!=null?f.segmentValueCharset:void 0)||d.segmentValueCharset,optionalSegmentStartChar:(f!=null?f.optionalSegmentStartChar:void 0)||d.optionalSegmentStartChar,optionalSegmentEndChar:(f!=null?f.optionalSegmentEndChar:void 0)||d.optionalSegmentEndChar,wildcardChar:(f!=null?f.wildcardChar:void 0)||d.wildcardChar},E=v(C),O=E.pattern(u),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,C.segmentValueCharset)),this.names=n(this.ast)},e.prototype.match=function(u){var f,y;return y=this.regex.exec(u),y==null?null:(f=y.slice(1),this.names?b(this.names,f):f)},e.prototype.stringify=function(u){if(u==null&&(u={}),this.isRegex)throw new Error("can't stringify patterns generated from a regex");if(u!==Object(u))throw new Error("argument must be an object or undefined");return D(this.ast,u,{})},e.escapeForRegex=p,e.concatMap=h,e.stringConcatMap=S,e.regexGroupCount=P,e.keysAndValuesToObject=b,e.P=i,e.newParser=v,e.defaultOptions=d,e.astNodeToRegexString=a,e.astNodeToNames=n,e.getParam=m,e.astNodeContainsSegmentsForProvidedParams=o,e.stringify=D,e})})(vi,vi.exports);var Pn=vi.exports;const ue=xn(Pn),An=Lo,Cn=wn,Sn=ws,On=vs,fe=G,Dn=ot,Je=J,kn=ke,st=N,Ln=Te,En=ue;window["concorde-utils"]=window["concorde-utils"]||{},window["concorde-utils"]={Utils:An,Arrays:Cn,DataBindObserver:Sn,Format:On,HTML:fe,LocationHandler:Dn,Objects:Je,PublisherProxy:kn,PublisherManager:st,api:Ln,URLPattern:En};var Nn=Object.defineProperty,Tn=Object.getOwnPropertyDescriptor,je=(r,t,s,i)=>{for(var e=i>1?void 0:i?Tn(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&&Nn(t,s,e),e};const yi=r=>{class t extends r{constructor(){super(...arguments),this._value="",this.forceAutoFill=!1,this.unique=null,this.radio=null,this.unCheckOnDisconnect=!1,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.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:st.get(i+"/"+e+"/_available_values_")}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 je([l()],t.prototype,"value",1),je([l()],t.prototype,"forceAutoFill",2),je([l({type:Boolean})],t.prototype,"unique",2),je([l({type:Boolean})],t.prototype,"radio",2),je([l({type:Boolean})],t.prototype,"unCheckOnDisconnect",2),je([l()],t.prototype,"checked",1),t};/**
73
73
  * @license
74
74
  * Copyright 2018 Google LLC
75
75
  * SPDX-License-Identifier: BSD-3-Clause
76
- */const x=r=>r??C,Dt=P`
76
+ */const x=r=>r??A,Lt=$`
77
77
  /*SIZES*/
78
78
  :host {
79
- --sc-fs: 1rem;
80
- --sc-lh: 1.15;
81
- font-size: var(--sc-fs);
82
- line-height: var(--sc-lh);
79
+ --sc-_fs: 1rem;
80
+ --sc-_lh: 1.15;
81
+ font-size: var(--sc-_fs);
82
+ line-height: var(--sc-_lh);
83
83
  }
84
84
 
85
85
  :host([size="2xs"]) {
86
- --sc-fs: 0.625rem;
86
+ --sc-_fs: 0.625rem;
87
87
  }
88
88
  :host([size="xs"]) {
89
- --sc-fs: 0.75rem;
89
+ --sc-_fs: 0.75rem;
90
90
  }
91
91
  :host([size="sm"]) {
92
- --sc-fs: 0.875rem;
92
+ --sc-_fs: 0.875rem;
93
93
  }
94
94
  :host([size="md"]) {
95
- --sc-fs: 1rem;
95
+ --sc-_fs: 1rem;
96
96
  }
97
97
  :host([size="lg"]) {
98
- --sc-fs: 1.125rem;
98
+ --sc-_fs: 1.125rem;
99
99
  }
100
100
  :host([size="xl"]) {
101
- --sc-fs: 1.25rem;
101
+ --sc-_fs: 1.25rem;
102
102
  }
103
103
  :host([size="2xl"]) {
104
- --sc-fs: 1.5rem;
104
+ --sc-_fs: 1.5rem;
105
105
  }
106
106
  :host([size="inherit"]) {
107
- --sc-fs: 1em;
107
+ --sc-_fs: 1em;
108
108
  }
109
- `;var Xo=Object.defineProperty,Jo=Object.getOwnPropertyDescriptor,U=(r,t,s,i)=>{for(var e=i>1?void 0:i?Jo(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&&Xo(t,s,e),e};const tn="sonic-button";let I=class extends ii(De(G(w))){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?rt.onChange(this):rt.offChange(this),this.requestUpdate()}get href(){return this._href}handleNavigation(r){r.preventDefault(),rt.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(),rt.changeFromComponent(this)),this.hasAttribute("reset"))){const t=this.getAttribute("reset"),s=t?et.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(){rt.offChange(this),super.disconnectedCallback()}willUpdate(r){(r.has("href")||r.has("autoActive"))&&rt.updateComponentActiveState(this),r.has("location")&&rt.updateComponentActiveState(this)}render(){const r={flexDirection:this.direction,alignItems:this.alignItems,justifyContent:this.justify,align:this.align,minWidth:this.minWidth},t=g`
109
+ `;var Mn=Object.defineProperty,In=Object.getOwnPropertyDescriptor,U=(r,t,s,i)=>{for(var e=i>1?void 0:i?In(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&&Mn(t,s,e),e};const jn="sonic-button";let I=class extends yi(Ie(Q(_))){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?ot.onChange(this):ot.offChange(this),this.requestUpdate()}get href(){return this._href}handleNavigation(r){r.preventDefault(),ot.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(),ot.changeFromComponent(this)),this.hasAttribute("reset"))){const t=this.getAttribute("reset"),s=t?st.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(){ot.offChange(this),super.disconnectedCallback()}willUpdate(r){(r.has("href")||r.has("autoActive"))&&ot.updateComponentActiveState(this),r.has("location")&&ot.updateComponentActiveState(this)}render(){const r={flexDirection:this.direction,alignItems:this.alignItems,justifyContent:this.justify,align:this.align,minWidth:this.minWidth},t=g`
110
110
  <button
111
111
  part="button"
112
112
  class=${this.hasPrefix||this.hasSuffix?"has-prefix-or-suffix":""}
113
- style=${ut(r)}
113
+ style=${ft(r)}
114
114
  aria-controls=${x(this.ariaControls)}
115
115
  aria-expanded=${x(this.sonicAriaExpanded)}
116
116
  aria-label=${x(this.ariaLabel)}
@@ -139,7 +139,7 @@
139
139
  aria-labelledby=${x(this.ariaLabelledby)}
140
140
  @click=${this.pushState||this.goBack!==null?this.handleNavigation:null}
141
141
  >${t}</a
142
- >`:g`${t}`}onSlotChange(){var r,t;this.hasPrefix=!!((r=this.prefixes)!=null&&r.length),this.hasSuffix=!!((t=this.suffixes)!=null&&t.length)}};I.styles=[Dt,P`
142
+ >`:g`${t}`}onSlotChange(){var r,t;this.hasPrefix=!!((r=this.prefixes)!=null&&r.length),this.hasSuffix=!!((t=this.suffixes)!=null&&t.length)}};I.styles=[Lt,$`
143
143
  * {
144
144
  box-sizing: border-box;
145
145
  }
@@ -147,7 +147,7 @@
147
147
  --sc-btn-gap: 0.35em;
148
148
  --sc-btn-py: 0.25em;
149
149
  --sc-btn-px: 1.1em;
150
- --sc-btn-fs: var(--sc-fs, 1rem);
150
+ --sc-btn-fs: var(--sc-_fs, 1rem);
151
151
  --sc-btn-ff: var(--sc-btn-font-family, sans-serif);
152
152
  --sc-btn-fw: var(--sc-btn-font-weight, 500);
153
153
 
@@ -170,6 +170,7 @@
170
170
  --sc-btn-active-filter: brightness(0.97);
171
171
  --sc-btn-active-bg: var(--sc-base-content, #000);
172
172
 
173
+ /* min permet une sécurité si btn-rounded 999px par exemple */
173
174
  --sc-item-rounded-tr: min(
174
175
  calc(var(--sc-form-height, 2.5em) / 2),
175
176
  var(--sc-btn-rounded)
@@ -501,11 +502,29 @@
501
502
  transform: translate(-50%, -50%) rotate(359deg);
502
503
  }
503
504
  }
504
- `],U([l({type:String,reflect:!0})],I.prototype,"type",2),U([l({type:String,reflect:!0})],I.prototype,"variant",2),U([l({type:String,reflect:!0})],I.prototype,"size",2),U([l({type:String,reflect:!0})],I.prototype,"shape",2),U([l({type:String})],I.prototype,"direction",2),U([l({type:String,reflect:!0})],I.prototype,"alignItems",2),U([l({type:String})],I.prototype,"justify",2),U([l({type:String,reflect:!0})],I.prototype,"align",2),U([l({type:String})],I.prototype,"minWidth",2),U([l({type:Boolean,reflect:!0})],I.prototype,"icon",2),U([l({type:String})],I.prototype,"download",2),U([l({type:String})],I.prototype,"autoActive",2),U([l({type:Boolean,reflect:!0})],I.prototype,"loading",2),U([T()],I.prototype,"hasPrefix",2),U([T()],I.prototype,"hasSuffix",2),U([re({flatten:!0,slot:"prefix"})],I.prototype,"prefixes",2),U([re({flatten:!0,slot:"suffix"})],I.prototype,"suffixes",2),U([l({type:String})],I.prototype,"target",2),U([l({type:String})],I.prototype,"href",1),U([l({type:String})],I.prototype,"goBack",2),U([l({type:Boolean})],I.prototype,"pushState",2),U([l({type:Boolean,reflect:!0})],I.prototype,"active",2),U([l({type:Boolean,reflect:!0})],I.prototype,"autoRepeat",2),U([l({type:String,attribute:"data-aria-controls"})],I.prototype,"ariaControls",2),U([l({type:Boolean,attribute:"data-aria-expanded"})],I.prototype,"sonicAriaExpanded",2),U([T()],I.prototype,"location",2),I=U([_(tn)],I);/**
505
+ `],U([l({type:String,reflect:!0})],I.prototype,"type",2),U([l({type:String,reflect:!0})],I.prototype,"variant",2),U([l({type:String,reflect:!0})],I.prototype,"size",2),U([l({type:String,reflect:!0})],I.prototype,"shape",2),U([l({type:String})],I.prototype,"direction",2),U([l({type:String,reflect:!0})],I.prototype,"alignItems",2),U([l({type:String})],I.prototype,"justify",2),U([l({type:String,reflect:!0})],I.prototype,"align",2),U([l({type:String})],I.prototype,"minWidth",2),U([l({type:Boolean,reflect:!0})],I.prototype,"icon",2),U([l({type:String})],I.prototype,"download",2),U([l({type:String})],I.prototype,"autoActive",2),U([l({type:Boolean,reflect:!0})],I.prototype,"loading",2),U([T()],I.prototype,"hasPrefix",2),U([T()],I.prototype,"hasSuffix",2),U([ne({flatten:!0,slot:"prefix"})],I.prototype,"prefixes",2),U([ne({flatten:!0,slot:"suffix"})],I.prototype,"suffixes",2),U([l({type:String})],I.prototype,"target",2),U([l({type:String})],I.prototype,"href",1),U([l({type:String})],I.prototype,"goBack",2),U([l({type:Boolean})],I.prototype,"pushState",2),U([l({type:Boolean,reflect:!0})],I.prototype,"active",2),U([l({type:Boolean,reflect:!0})],I.prototype,"autoRepeat",2),U([l({type:String,attribute:"data-aria-controls"})],I.prototype,"ariaControls",2),U([l({type:Boolean,attribute:"data-aria-expanded"})],I.prototype,"sonicAriaExpanded",2),U([T()],I.prototype,"location",2),I=U([w(jn)],I);/**
505
506
  * @license
506
507
  * Copyright 2017 Google LLC
507
508
  * SPDX-License-Identifier: BSD-3-Clause
508
- */const hr=(r,t,s)=>{const i=new Map;for(let e=t;e<=s;e++)i.set(r[e],e);return i},ys=de(class extends Se{constructor(r){if(super(r),r.type!==he.CHILD)throw Error("repeat() can only be used in text expressions")}dt(r,t,s){let i;s===void 0?s=t:t!==void 0&&(i=t);const e=[],o=[];let n=0;for(const a of r)e[n]=i?i(a,n):n,o[n]=s(a,n),n++;return{values:o,keys:e}}render(r,t,s){return this.dt(r,t,s).values}update(r,[t,s,i]){const e=vo(r),{values:o,keys:n}=this.dt(t,s,i);if(!Array.isArray(e))return this.ut=n,o;const a=this.ut??(this.ut=[]),c=[];let h,d,f=0,m=e.length-1,b=0,v=o.length-1;for(;f<=m&&b<=v;)if(e[f]===null)f++;else if(e[m]===null)m--;else if(a[f]===n[b])c[b]=ce(e[f],o[b]),f++,b++;else if(a[m]===n[v])c[v]=ce(e[m],o[v]),m--,v--;else if(a[f]===n[v])c[v]=ce(e[f],o[v]),He(r,c[v+1],e[f]),f++,v--;else if(a[m]===n[b])c[b]=ce(e[m],o[b]),He(r,e[f],e[m]),m--,b++;else if(h===void 0&&(h=hr(n,b,v),d=hr(a,f,m)),h.has(a[f]))if(h.has(a[m])){const $=d.get(n[b]),S=$!==void 0?e[$]:null;if(S===null){const D=He(r,e[f]);ce(D,o[b]),c[b]=D}else c[b]=ce(S,o[b]),He(r,e[f],S),e[$]=null;b++}else Gs(e[m]),m--;else Gs(e[f]),f++;for(;b<=v;){const $=He(r,c[v+1]);ce($,o[b]),c[b++]=$}for(;f<=m;){const $=e[f++];$!==null&&Gs($)}return this.ut=n,bo(r,c),bt}}),en=new WeakMap;let dr=0;const ri=new Map,pr=new WeakSet,ur=()=>new Promise(r=>requestAnimationFrame(r)),fr=[{opacity:0}],gr=[{opacity:0},{opacity:1}],mr=(r,t)=>{const s=r-t;return s===0?void 0:s},br=(r,t)=>{const s=r/t;return s===1?void 0:s},oi={left:(r,t)=>{const s=mr(r,t);return{value:s,transform:s==null||isNaN(s)?void 0:`translateX(${s}px)`}},top:(r,t)=>{const s=mr(r,t);return{value:s,transform:s==null||isNaN(s)?void 0:`translateY(${s}px)`}},width:(r,t)=>{let s;t===0&&(t=1,s={width:"1px"});const i=br(r,t);return{value:i,overrideFrom:s,transform:i==null||isNaN(i)?void 0:`scaleX(${i})`}},height:(r,t)=>{let s;t===0&&(t=1,s={height:"1px"});const i=br(r,t);return{value:i,overrideFrom:s,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},sn={duration:333,easing:"ease-in-out"},rn=["left","top","width","height","opacity","color","background"],vr=new WeakMap;class on extends Qs{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===he.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(s=>{this.l=s})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return C}getController(){return en.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[s]){var e;const i=this.u===void 0;return i&&(this.u=(e=t.options)==null?void 0:e.host,this.u.addController(this),this.u.updateComplete.then(o=>this.t=!0),this.element=t.element,vr.set(this.element,this)),this.optionsOrCallback=s,(i||typeof s!="function")&&this.p(s),this.render(s)}p(t){t=t??{};const s=this.getController();s!==void 0&&((t={...s.defaultOptions,...t}).keyframeOptions={...s.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=rn),this.options=t}m(){const t={},s=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach(e=>{const o=s[e]??(oi[e]?void 0:i[e]),n=Number(o);t[e]=isNaN(n)?o+"":n}),t}v(){let t,s=!0;return this.options.guard&&(t=this.options.guard(),s=((i,e)=>{if(Array.isArray(i)){if(Array.isArray(e)&&e.length===i.length&&i.every((o,n)=>o===e[n]))return!1}else if(e===i)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&s&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await ur;const s=this.O(),i=this.j(this.options.keyframeOptions,s),e=this.m();if(this.A!==void 0){const{from:o,to:n}=this.N(this.A,e,s);this.log("measured",[this.A,e,o,n]),t=this.calculateKeyframes(o,n)}else{const o=ri.get(this.options.inId);if(o){ri.delete(this.options.inId);const{from:n,to:a}=this.N(o,e,s);t=this.calculateKeyframes(n,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,dr++,t.forEach(c=>c.zIndex=dr)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,i)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){var t,s;this.P=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(s=this.webAnimation)==null||s.cancel()}reconnected(){}async disconnected(){var s;if(!this.h||(this.options.id!==void 0&&ri.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await ur(),(s=this.i)==null?void 0:s.isConnected){const i=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,i),this.options.stabilizeOut){const e=this.m();this.log("stabilizing out");const o=this.A.left-e.left,n=this.A.top-e.top;getComputedStyle(this.element).position!=="static"||o===0&&n===0||(this.element.style.position="relative"),o!==0&&(this.element.style.left=o+"px"),n!==0&&(this.element.style.top=n+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,s;(s=(t=this.options).onStart)==null||s.call(t,this)}didFinish(t){var s,i;t&&((i=(s=this.options).onComplete)==null||i.call(s,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let s=this.element.parentNode;s;s=s==null?void 0:s.parentNode){const i=vr.get(s);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=pr.has(this.u);return t||this.u.updateComplete.then(()=>{pr.add(this.u)}),t}j(t,s=this.O()){const i={...sn};return s.forEach(e=>Object.assign(i,e.options.keyframeOptions)),Object.assign(i,t),i}N(t,s,i){t={...t},s={...s};const e=i.map(a=>a.animatingProperties).filter(a=>a!==void 0);let o=1,n=1;return e.length>0&&(e.forEach(a=>{a.width&&(o/=a.width),a.height&&(n/=a.height)}),t.left!==void 0&&s.left!==void 0&&(t.left=o*t.left,s.left=o*s.left),t.top!==void 0&&s.top!==void 0&&(t.top=n*t.top,s.top=n*s.top)),{from:t,to:s}}calculateKeyframes(t,s,i=!1){const e={},o={};let n=!1;const a={};for(const c in s){const h=t[c],d=s[c];if(c in oi){const f=oi[c];if(h===void 0||d===void 0)continue;const m=f(h,d);m.transform!==void 0&&(a[c]=m.value,n=!0,e.transform=`${e.transform??""} ${m.transform}`,m.overrideFrom!==void 0&&Object.assign(e,m.overrideFrom))}else h!==d&&h!==void 0&&d!==void 0&&(n=!0,e[c]=h,o[c]=d)}return e.transformOrigin=o.transformOrigin=i?"center center":"top left",this.animatingProperties=a,n?[e,o]:void 0}async animate(t,s=this.options.keyframeOptions){this.start(),this.frames=t;let i=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,s]),i=!0,this.webAnimation=this.element.animate(t,s);const e=this.getController();e==null||e.add(this);try{await this.webAnimation.finished}catch{}e==null||e.remove(this)}return this.didFinish(i),i}isAnimating(){var t,s;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((s=this.webAnimation)==null?void 0:s.pending)}log(t,s){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,s)}}const ws=de(on),nn={core:{cancel:`<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
509
+ */const Nr=(r,t,s)=>{const i=new Map;for(let e=t;e<=s;e++)i.set(r[e],e);return i},ks=pe(class extends Ne{constructor(r){if(super(r),r.type!==Ee.CHILD)throw Error("repeat() can only be used in text expressions")}dt(r,t,s){let i;s===void 0?s=t:t!==void 0&&(i=t);const e=[],o=[];let n=0;for(const a of r)e[n]=i?i(a,n):n,o[n]=s(a,n),n++;return{values:o,keys:e}}render(r,t,s){return this.dt(r,t,s).values}update(r,[t,s,i]){const e=Jo(r),{values:o,keys:n}=this.dt(t,s,i);if(!Array.isArray(e))return this.ut=n,o;const a=this.ut??(this.ut=[]),c=[];let h,d,p=0,m=e.length-1,b=0,v=o.length-1;for(;p<=m&&b<=v;)if(e[p]===null)p++;else if(e[m]===null)m--;else if(a[p]===n[b])c[b]=de(e[p],o[b]),p++,b++;else if(a[m]===n[v])c[v]=de(e[m],o[v]),m--,v--;else if(a[p]===n[v])c[v]=de(e[p],o[v]),Ge(r,c[v+1],e[p]),p++,v--;else if(a[m]===n[b])c[b]=de(e[m],o[b]),Ge(r,e[p],e[m]),m--,b++;else if(h===void 0&&(h=Nr(n,b,v),d=Nr(a,p,m)),h.has(a[p]))if(h.has(a[m])){const P=d.get(n[b]),S=P!==void 0?e[P]:null;if(S===null){const D=Ge(r,e[p]);de(D,o[b]),c[b]=D}else c[b]=de(S,o[b]),Ge(r,e[p],S),e[P]=null;b++}else ui(e[m]),m--;else ui(e[p]),p++;for(;b<=v;){const P=Ge(r,c[v+1]);de(P,o[b]),c[b++]=P}for(;p<=m;){const P=e[p++];P!==null&&ui(P)}return this.ut=n,Xo(r,c),vt}});/**
510
+ * @license
511
+ * Copyright 2017 Google LLC
512
+ * SPDX-License-Identifier: BSD-3-Clause
513
+ */const ts=globalThis,Ls=ts.trustedTypes,Tr=Ls?Ls.createPolicy("lit-html",{createHTML:r=>r}):void 0,Mr="$lit$",Kt=`lit$${Math.random().toFixed(9).slice(2)}$`,Ir="?"+Kt,Fn=`<${Ir}>`,ge=document,Es=()=>ge.createComment(""),es=r=>r===null||typeof r!="object"&&typeof r!="function",_i=Array.isArray,zn=r=>_i(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",wi=`[
514
+ \f\r]`,ss=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,jr=/-->/g,Fr=/>/g,me=RegExp(`>|${wi}(?:([^\\s"'>=/]+)(${wi}*=${wi}*(?:[^
515
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),zr=/'/g,Rr=/"/g,Ur=/^(?:script|style|textarea|title)$/i,is=Symbol.for("lit-noChange"),tt=Symbol.for("lit-nothing"),Vr=new WeakMap,be=ge.createTreeWalker(ge,129);function Hr(r,t){if(!_i(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Tr!==void 0?Tr.createHTML(t):t}const Rn=(r,t)=>{const s=r.length-1,i=[];let e,o=t===2?"<svg>":t===3?"<math>":"",n=ss;for(let a=0;a<s;a++){const c=r[a];let h,d,p=-1,m=0;for(;m<c.length&&(n.lastIndex=m,d=n.exec(c),d!==null);)m=n.lastIndex,n===ss?d[1]==="!--"?n=jr:d[1]!==void 0?n=Fr:d[2]!==void 0?(Ur.test(d[2])&&(e=RegExp("</"+d[2],"g")),n=me):d[3]!==void 0&&(n=me):n===me?d[0]===">"?(n=e??ss,p=-1):d[1]===void 0?p=-2:(p=n.lastIndex-d[2].length,h=d[1],n=d[3]===void 0?me:d[3]==='"'?Rr:zr):n===Rr||n===zr?n=me:n===jr||n===Fr?n=ss:(n=me,e=void 0);const b=n===me&&r[a+1].startsWith("/>")?" ":"";o+=n===ss?c+Fn:p>=0?(i.push(h),c.slice(0,p)+Mr+c.slice(p)+Kt+b):c+Kt+(p===-2?a:b)}return[Hr(r,o+(r[s]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class rs{constructor({strings:t,_$litType$:s},i){let e;this.parts=[];let o=0,n=0;const a=t.length-1,c=this.parts,[h,d]=Rn(t,s);if(this.el=rs.createElement(h,i),be.currentNode=this.el.content,s===2||s===3){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(e=be.nextNode())!==null&&c.length<a;){if(e.nodeType===1){if(e.hasAttributes())for(const p of e.getAttributeNames())if(p.endsWith(Mr)){const m=d[n++],b=e.getAttribute(p).split(Kt),v=/([.?@])?(.*)/.exec(m);c.push({type:1,index:o,name:v[2],strings:b,ctor:v[1]==="."?Vn:v[1]==="?"?Hn:v[1]==="@"?Bn:Ts}),e.removeAttribute(p)}else p.startsWith(Kt)&&(c.push({type:6,index:o}),e.removeAttribute(p));if(Ur.test(e.tagName)){const p=e.textContent.split(Kt),m=p.length-1;if(m>0){e.textContent=Ls?Ls.emptyScript:"";for(let b=0;b<m;b++)e.append(p[b],Es()),be.nextNode(),c.push({type:2,index:++o});e.append(p[m],Es())}}}else if(e.nodeType===8)if(e.data===Ir)c.push({type:2,index:o});else{let p=-1;for(;(p=e.data.indexOf(Kt,p+1))!==-1;)c.push({type:7,index:o}),p+=Kt.length-1}o++}}static createElement(t,s){const i=ge.createElement("template");return i.innerHTML=t,i}}function Fe(r,t,s=r,i){var n,a;if(t===is)return t;let e=i!==void 0?(n=s.o)==null?void 0:n[i]:s.l;const o=es(t)?void 0:t._$litDirective$;return(e==null?void 0:e.constructor)!==o&&((a=e==null?void 0:e._$AO)==null||a.call(e,!1),o===void 0?e=void 0:(e=new o(r),e._$AT(r,s,i)),i!==void 0?(s.o??(s.o=[]))[i]=e:s.l=e),e!==void 0&&(t=Fe(r,e._$AS(r,t.values),e,i)),t}let Un=class{constructor(t,s){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=s}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:s},parts:i}=this._$AD,e=((t==null?void 0:t.creationScope)??ge).importNode(s,!0);be.currentNode=e;let o=be.nextNode(),n=0,a=0,c=i[0];for(;c!==void 0;){if(n===c.index){let h;c.type===2?h=new Ns(o,o.nextSibling,this,t):c.type===1?h=new c.ctor(o,c.name,c.strings,this,t):c.type===6&&(h=new qn(o,this,t)),this._$AV.push(h),c=i[++a]}n!==(c==null?void 0:c.index)&&(o=be.nextNode(),n++)}return be.currentNode=ge,e}p(t){let s=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,s),s+=i.strings.length-2):i._$AI(t[s])),s++}};class Ns{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this.v}constructor(t,s,i,e){this.type=2,this._$AH=tt,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=i,this.options=e,this.v=(e==null?void 0:e.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const s=this._$AM;return s!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=s.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=Fe(this,t,s),es(t)?t===tt||t==null||t===""?(this._$AH!==tt&&this._$AR(),this._$AH=tt):t!==this._$AH&&t!==is&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):zn(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==tt&&es(this._$AH)?this._$AA.nextSibling.data=t:this.T(ge.createTextNode(t)),this._$AH=t}$(t){var o;const{values:s,_$litType$:i}=t,e=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=rs.createElement(Hr(i.h,i.h[0]),this.options)),i);if(((o=this._$AH)==null?void 0:o._$AD)===e)this._$AH.p(s);else{const n=new Un(e,this),a=n.u(this.options);n.p(s),this.T(a),this._$AH=n}}_$AC(t){let s=Vr.get(t.strings);return s===void 0&&Vr.set(t.strings,s=new rs(t)),s}k(t){_i(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let i,e=0;for(const o of t)e===s.length?s.push(i=new Ns(this.O(Es()),this.O(Es()),this,this.options)):i=s[e],i._$AI(o),e++;e<s.length&&(this._$AR(i&&i._$AB.nextSibling,e),s.length=e)}_$AR(t=this._$AA.nextSibling,s){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,s);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var s;this._$AM===void 0&&(this.v=t,(s=this._$AP)==null||s.call(this,t))}}class Ts{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,i,e,o){this.type=1,this._$AH=tt,this._$AN=void 0,this.element=t,this.name=s,this._$AM=e,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=tt}_$AI(t,s=this,i,e){const o=this.strings;let n=!1;if(o===void 0)t=Fe(this,t,s,0),n=!es(t)||t!==this._$AH&&t!==is,n&&(this._$AH=t);else{const a=t;let c,h;for(t=o[0],c=0;c<o.length-1;c++)h=Fe(this,a[i+c],s,c),h===is&&(h=this._$AH[c]),n||(n=!es(h)||h!==this._$AH[c]),h===tt?t=tt:t!==tt&&(t+=(h??"")+o[c+1]),this._$AH[c]=h}n&&!e&&this.j(t)}j(t){t===tt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Vn extends Ts{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===tt?void 0:t}}class Hn extends Ts{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==tt)}}class Bn extends Ts{constructor(t,s,i,e,o){super(t,s,i,e,o),this.type=5}_$AI(t,s=this){if((t=Fe(this,t,s,0)??tt)===is)return;const i=this._$AH,e=t===tt&&i!==tt||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==tt&&(i===tt||e);e&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var s;typeof this._$AH=="function"?this._$AH.call(((s=this.options)==null?void 0:s.host)??this.element,t):this._$AH.handleEvent(t)}}class qn{constructor(t,s,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Fe(this,t)}}const $i=ts.litHtmlPolyfillSupport;$i==null||$i(rs,Ns),(ts.litHtmlVersions??(ts.litHtmlVersions=[])).push("3.2.0");/**
516
+ * @license
517
+ * Copyright 2017 Google LLC
518
+ * SPDX-License-Identifier: BSD-3-Clause
519
+ */const Br={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Wn=r=>(...t)=>({_$litDirective$:r,values:t});let Kn=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,s,i){this.t=t,this._$AM=s,this.i=i}_$AS(t,s){return this.update(t,s)}update(t,s){return this.render(...s)}};/**
520
+ * @license
521
+ * Copyright 2020 Google LLC
522
+ * SPDX-License-Identifier: BSD-3-Clause
523
+ */const Yn=r=>r.strings===void 0;/**
524
+ * @license
525
+ * Copyright 2017 Google LLC
526
+ * SPDX-License-Identifier: BSD-3-Clause
527
+ */const os=(r,t)=>{var i;const s=r._$AN;if(s===void 0)return!1;for(const e of s)(i=e._$AO)==null||i.call(e,t,!1),os(e,t);return!0},Ms=r=>{let t,s;do{if((t=r._$AM)===void 0)break;s=t._$AN,s.delete(r),r=t}while((s==null?void 0:s.size)===0)},qr=r=>{for(let t;t=r._$AM;r=t){let s=t._$AN;if(s===void 0)t._$AN=s=new Set;else if(s.has(r))break;s.add(r),Qn(t)}};function Zn(r){this._$AN!==void 0?(Ms(this),this._$AM=r,qr(this)):this._$AM=r}function Gn(r,t=!1,s=0){const i=this._$AH,e=this._$AN;if(e!==void 0&&e.size!==0)if(t)if(Array.isArray(i))for(let o=s;o<i.length;o++)os(i[o],!1),Ms(i[o]);else i!=null&&(os(i,!1),Ms(i));else os(this,r)}const Qn=r=>{r.type==Br.CHILD&&(r._$AP??(r._$AP=Gn),r._$AQ??(r._$AQ=Zn))};class Xn extends Kn{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,s,i){super._$AT(t,s,i),qr(this),this.isConnected=t._$AU}_$AO(t,s=!0){var i,e;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(e=this.disconnected)==null||e.call(this)),s&&(os(this,t),Ms(this))}setValue(t){if(Yn(this.t))this.t._$AI(t,this);else{const s=[...this.t._$AH];s[this.i]=t,this.t._$AI(s,this,0)}}disconnected(){}reconnected(){}}const Jn=new WeakMap;let Wr=0;const xi=new Map,Kr=new WeakSet,Yr=()=>new Promise(r=>requestAnimationFrame(r)),Zr=[{opacity:0}],Gr=[{opacity:0},{opacity:1}],Qr=(r,t)=>{const s=r-t;return s===0?void 0:s},Xr=(r,t)=>{const s=r/t;return s===1?void 0:s},Pi={left:(r,t)=>{const s=Qr(r,t);return{value:s,transform:s==null||isNaN(s)?void 0:`translateX(${s}px)`}},top:(r,t)=>{const s=Qr(r,t);return{value:s,transform:s==null||isNaN(s)?void 0:`translateY(${s}px)`}},width:(r,t)=>{let s;t===0&&(t=1,s={width:"1px"});const i=Xr(r,t);return{value:i,overrideFrom:s,transform:i==null||isNaN(i)?void 0:`scaleX(${i})`}},height:(r,t)=>{let s;t===0&&(t=1,s={height:"1px"});const i=Xr(r,t);return{value:i,overrideFrom:s,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},ta={duration:333,easing:"ease-in-out"},ea=["left","top","width","height","opacity","color","background"],Jr=new WeakMap;class sa extends Xn{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===Br.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(s=>{this.l=s})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return tt}getController(){return Jn.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[s]){var e;const i=this.u===void 0;return i&&(this.u=(e=t.options)==null?void 0:e.host,this.u.addController(this),this.u.updateComplete.then(o=>this.t=!0),this.element=t.element,Jr.set(this.element,this)),this.optionsOrCallback=s,(i||typeof s!="function")&&this.p(s),this.render(s)}p(t){t=t??{};const s=this.getController();s!==void 0&&((t={...s.defaultOptions,...t}).keyframeOptions={...s.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=ea),this.options=t}m(){const t={},s=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach(e=>{const o=s[e]??(Pi[e]?void 0:i[e]),n=Number(o);t[e]=isNaN(n)?o+"":n}),t}v(){let t,s=!0;return this.options.guard&&(t=this.options.guard(),s=((i,e)=>{if(Array.isArray(i)){if(Array.isArray(e)&&e.length===i.length&&i.every((o,n)=>o===e[n]))return!1}else if(e===i)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&s&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await Yr;const s=this.O(),i=this.j(this.options.keyframeOptions,s),e=this.m();if(this.A!==void 0){const{from:o,to:n}=this.N(this.A,e,s);this.log("measured",[this.A,e,o,n]),t=this.calculateKeyframes(o,n)}else{const o=xi.get(this.options.inId);if(o){xi.delete(this.options.inId);const{from:n,to:a}=this.N(o,e,s);t=this.calculateKeyframes(n,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Wr++,t.forEach(c=>c.zIndex=Wr)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,i)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){var t,s;this.P=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(s=this.webAnimation)==null||s.cancel()}reconnected(){}async disconnected(){var s;if(!this.h||(this.options.id!==void 0&&xi.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await Yr(),(s=this.i)==null?void 0:s.isConnected){const i=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,i),this.options.stabilizeOut){const e=this.m();this.log("stabilizing out");const o=this.A.left-e.left,n=this.A.top-e.top;getComputedStyle(this.element).position!=="static"||o===0&&n===0||(this.element.style.position="relative"),o!==0&&(this.element.style.left=o+"px"),n!==0&&(this.element.style.top=n+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,s;(s=(t=this.options).onStart)==null||s.call(t,this)}didFinish(t){var s,i;t&&((i=(s=this.options).onComplete)==null||i.call(s,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let s=this.element.parentNode;s;s=s==null?void 0:s.parentNode){const i=Jr.get(s);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=Kr.has(this.u);return t||this.u.updateComplete.then(()=>{Kr.add(this.u)}),t}j(t,s=this.O()){const i={...ta};return s.forEach(e=>Object.assign(i,e.options.keyframeOptions)),Object.assign(i,t),i}N(t,s,i){t={...t},s={...s};const e=i.map(a=>a.animatingProperties).filter(a=>a!==void 0);let o=1,n=1;return e.length>0&&(e.forEach(a=>{a.width&&(o/=a.width),a.height&&(n/=a.height)}),t.left!==void 0&&s.left!==void 0&&(t.left=o*t.left,s.left=o*s.left),t.top!==void 0&&s.top!==void 0&&(t.top=n*t.top,s.top=n*s.top)),{from:t,to:s}}calculateKeyframes(t,s,i=!1){const e={},o={};let n=!1;const a={};for(const c in s){const h=t[c],d=s[c];if(c in Pi){const p=Pi[c];if(h===void 0||d===void 0)continue;const m=p(h,d);m.transform!==void 0&&(a[c]=m.value,n=!0,e.transform=`${e.transform??""} ${m.transform}`,m.overrideFrom!==void 0&&Object.assign(e,m.overrideFrom))}else h!==d&&h!==void 0&&d!==void 0&&(n=!0,e[c]=h,o[c]=d)}return e.transformOrigin=o.transformOrigin=i?"center center":"top left",this.animatingProperties=a,n?[e,o]:void 0}async animate(t,s=this.options.keyframeOptions){this.start(),this.frames=t;let i=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,s]),i=!0,this.webAnimation=this.element.animate(t,s);const e=this.getController();e==null||e.add(this);try{await this.webAnimation.finished}catch{}e==null||e.remove(this)}return this.didFinish(i),i}isAnimating(){var t,s;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((s=this.webAnimation)==null?void 0:s.pending)}log(t,s){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,s)}}const Is=Wn(sa),ia={core:{cancel:`<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
509
528
  <path d="M6.75827 17.2426L12.0009 12M17.2435 6.75736L12.0009 12M12.0009 12L6.75827 6.75736M12.0009 12L17.2435 17.2426" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
510
529
  </svg>
511
530
  `,"check-circled-outline":`<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -541,7 +560,7 @@
541
560
  <path d="M12 17.01L12.01 16.9989" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
542
561
  <path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
543
562
  </svg>
544
- `}},_s=new Map,xs={heroicons:{url:"https://cdn.jsdelivr.net/npm/heroicons@2.0.4/24/$prefix/$name.svg",defaultPrefix:"outline"},iconoir:{url:"https://cdnjs.cloudflare.com/ajax/libs/iconoir/5.1.4/icons/$name.svg"},feathers:{url:"https://cdn.jsdelivr.net/npm/feather-icons@4.29.0/dist/icons/$name.svg"},lucide:{url:"https://cdn.jsdelivr.net/npm/lucide-static@0.16.29/icons/$name.svg"},material:{url:"https://cdn.jsdelivr.net/npm/@material-icons/svg@1.0.5/svg/$name/$prefix.svg",defaultPrefix:"regular"},fontAwesome:{url:"https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.1/svgs/$prefix/$name.svg",defaultPrefix:"regular"},custom:{url:"",defaultPrefix:""}};let yr=!1;function an(){var r,t;yr||(yr=!0,xs.custom.url=((r=document.querySelector("[customIconLibraryPath]"))==null?void 0:r.getAttribute("customIconLibraryPath"))||"",xs.custom.defaultPrefix=((t=document.querySelector("[customIconDefaultPrefix]"))==null?void 0:t.getAttribute("customIconDefaultPrefix"))||"")}const wr=sessionStorage.getItem("sonicIconsCache"),Wt=wr?JSON.parse(wr):{icons:{},names:[]},ln=100,Ni=class Ni{};Ni.default={get:async t=>{const s=t.library;if(!t.name)return"";const i=t.name,e=nn;if(s=="custom"&&an(),s&&s in xs){const o=xs[s],n=t.prefix||o.defaultPrefix||"",a=e[s]||{};e[s]=a;const c=n+"-"+i;if(a[c])return F(a[c]);const h=(o.url||"").replace("$prefix",n).replace("$name",i);if(Wt.icons[h])return a[c]=Wt.icons[h],F(Wt.icons[h]);if(!_s.has(h)){const f=new Promise(async m=>{const b=await fetch(h);if(!b.ok){m(`<b title="Erreur ${b.status}">😶</b>`);return}try{const v=await b.text();m(v)}catch{m(null)}});_s.set(h,f)}const d=await _s.get(h);if(_s.delete(h),a[c]=d||"",Wt.icons[h]=d||"",Wt.names.length>ln){const f=Wt.names.shift();delete Wt.icons[f]}return sessionStorage.setItem("sonicIconsCache",JSON.stringify(Wt)),F(d)}return F(e.core[t.name]||"")}};let ni=Ni;var cn=Object.defineProperty,hn=Object.getOwnPropertyDescriptor,Ze=(r,t,s,i)=>{for(var e=i>1?void 0:i?hn(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&&cn(t,s,e),e};const dn="sonic-icon";let fe=class extends w{constructor(){super(...arguments),this.iconText="",this.name="",this.prefix="",this.library=""}async updateIcon(){this.iconText=await ni.default.get({name:this.name,prefix:this.prefix,library:this.library})}willUpdate(r){(r.has("name")||r.has("prefix")||r.has("library"))&&this.updateIcon(),super.willUpdate(r)}render(){return this.iconText?this.iconText:C}};fe.styles=P`
563
+ `}},js=new Map,Fs={heroicons:{url:"https://cdn.jsdelivr.net/npm/heroicons@2.0.4/24/$prefix/$name.svg",defaultPrefix:"outline"},iconoir:{url:"https://cdnjs.cloudflare.com/ajax/libs/iconoir/5.1.4/icons/$name.svg"},feathers:{url:"https://cdn.jsdelivr.net/npm/feather-icons@4.29.0/dist/icons/$name.svg"},lucide:{url:"https://cdn.jsdelivr.net/npm/lucide-static@0.16.29/icons/$name.svg"},material:{url:"https://cdn.jsdelivr.net/npm/@material-icons/svg@1.0.5/svg/$name/$prefix.svg",defaultPrefix:"regular"},fontAwesome:{url:"https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.1/svgs/$prefix/$name.svg",defaultPrefix:"regular"},custom:{url:"",defaultPrefix:""}};let to=!1;function ra(){var r,t;to||(to=!0,Fs.custom.url=((r=document.querySelector("[customIconLibraryPath]"))==null?void 0:r.getAttribute("customIconLibraryPath"))||"",Fs.custom.defaultPrefix=((t=document.querySelector("[customIconDefaultPrefix]"))==null?void 0:t.getAttribute("customIconDefaultPrefix"))||"")}const eo=sessionStorage.getItem("sonicIconsCache"),Yt=eo?JSON.parse(eo):{icons:{},names:[]},oa=100,er=class er{};er.default={get:async t=>{const s=t.library;if(!t.name)return"";const i=t.name,e=ia;if(s=="custom"&&ra(),s&&s in Fs){const o=Fs[s],n=t.prefix||o.defaultPrefix||"",a=e[s]||{};e[s]=a;const c=n+"-"+i;if(a[c])return F(a[c]);const h=(o.url||"").replace("$prefix",n).replace("$name",i);if(Yt.icons[h])return a[c]=Yt.icons[h],F(Yt.icons[h]);if(!js.has(h)){const p=new Promise(async m=>{const b=await fetch(h);if(!b.ok){m(`<b title="Erreur ${b.status}">😶</b>`);return}try{const v=await b.text();m(v)}catch{m(null)}});js.set(h,p)}const d=await js.get(h);if(js.delete(h),a[c]=d||"",Yt.icons[h]=d||"",Yt.names.length>oa){const p=Yt.names.shift();delete Yt.icons[p]}return sessionStorage.setItem("sonicIconsCache",JSON.stringify(Yt)),F(d)}return F(e.core[t.name]||"")}};let Ai=er;var na=Object.defineProperty,aa=Object.getOwnPropertyDescriptor,ns=(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&&na(t,s,e),e};const la="sonic-icon";let ve=class extends _{constructor(){super(...arguments),this.iconText="",this.name="",this.prefix="",this.library=""}async updateIcon(){this.iconText=await Ai.default.get({name:this.name,prefix:this.prefix,library:this.library})}willUpdate(r){(r.has("name")||r.has("prefix")||r.has("library"))&&this.updateIcon(),super.willUpdate(r)}render(){return this.iconText?this.iconText:A}};ve.styles=$`
545
564
  :host {
546
565
  line-height: 0.1em;
547
566
  width: fit-content;
@@ -590,7 +609,7 @@
590
609
  :host([size="3xl"]) svg {
591
610
  --sc-icon-size: 2.8em;
592
611
  }
593
- `,Ze([T()],fe.prototype,"iconText",2),Ze([l({type:String})],fe.prototype,"name",2),Ze([l({type:String})],fe.prototype,"prefix",2),Ze([l({type:String})],fe.prototype,"library",2),fe=Ze([_(dn)],fe);const Ge=P`
612
+ `,ns([T()],ve.prototype,"iconText",2),ns([l({type:String})],ve.prototype,"name",2),ns([l({type:String})],ve.prototype,"prefix",2),ns([l({type:String})],ve.prototype,"library",2),ve=ns([w(la)],ve);const as=$`
594
613
  .custom-scroll {
595
614
  overflow: auto !important;
596
615
  overflow-y: overlay !important;
@@ -607,12 +626,12 @@
607
626
 
608
627
  .custom-scroll::-webkit-scrollbar-thumb {
609
628
  box-shadow: inset 0 0 2rem 2rem
610
- var(--sc-scrollbar-bg, var(--sc-base-400, #222));
629
+ var(--sc-scrollbar-bg, var(--sc-base-400, var(--sc-base-content, #000)));
611
630
  border-radius: var(--sc-rounded);
612
631
  border: solid 0.15rem transparent;
613
632
  }
614
633
  }
615
- `;var pn=Object.defineProperty,un=Object.getOwnPropertyDescriptor,kt=(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&&pn(t,s,e),e};const fn={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty"},gn="sonic-toast-item";let _t=class extends w{constructor(){super(...arguments),this.title="",this.id="",this.text="",this.status="",this.ghost=!1,this.preserve=!1,this.dismissForever=!1,this.maxHeight="10rem",this.visible=!0}render(){if(this.dismissForever){const r=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(r)[this.id])return C}return this.visible?g`<div
634
+ `;var ca=Object.defineProperty,ha=Object.getOwnPropertyDescriptor,Et=(r,t,s,i)=>{for(var e=i>1?void 0:i?ha(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&&ca(t,s,e),e};const da={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty"},pa="sonic-toast-item";let $t=class extends _{constructor(){super(...arguments),this.title="",this.id="",this.text="",this.status="",this.ghost=!1,this.preserve=!1,this.dismissForever=!1,this.maxHeight="10rem",this.visible=!0}render(){if(this.dismissForever){const r=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(r)[this.id])return A}return this.visible?g`<div
616
635
  class="sonic-toast ${this.status} ${this.ghost?"ghost":""}"
617
636
  >
618
637
  <button
@@ -627,7 +646,7 @@
627
646
  style="max-height: ${this.maxHeight} ;"
628
647
  >
629
648
  ${this.status&&g`<sonic-icon
630
- name=${fn[this.status]}
649
+ name=${da[this.status]}
631
650
  class="sonic-toast-icon"
632
651
  size="2xl"
633
652
  ></sonic-icon>`}
@@ -640,7 +659,7 @@
640
659
 
641
660
  ${this.preserve?"":this.autoHide()}
642
661
  </div>
643
- </div>`:C}hide(){if(ue.getClosestElement(this,"sonic-toast")||(this.visible=!1),this.dismissForever){const r=localStorage.getItem("sonic-toast-dismissed")||"{}",t=JSON.parse(r);t[this.id]=!0,localStorage.setItem("sonic-toast-dismissed",JSON.stringify(t))}this.dispatchEvent(new CustomEvent("hide",{bubbles:!0}))}show(){this.visible=!0}autoHide(){setTimeout(()=>{this.hide()},6e3)}};_t.styles=[Ge,P`
662
+ </div>`:A}hide(){if(fe.getClosestElement(this,"sonic-toast")||(this.visible=!1),this.dismissForever){const r=localStorage.getItem("sonic-toast-dismissed")||"{}",t=JSON.parse(r);t[this.id]=!0,localStorage.setItem("sonic-toast-dismissed",JSON.stringify(t))}this.dispatchEvent(new CustomEvent("hide",{bubbles:!0}))}show(){this.visible=!0}autoHide(){setTimeout(()=>{this.hide()},6e3)}};$t.styles=[as,$`
644
663
  * {
645
664
  box-sizing: border-box;
646
665
  }
@@ -649,8 +668,8 @@
649
668
  pointer-events: auto;
650
669
  position: relative;
651
670
  --sc-toast-status-color: transparent;
652
- --sc-toast-color: var(--sc-base-content);
653
- --sc-toast-bg: var(--sc-base);
671
+ --sc-toast-color: var(--sc-base-content, #000);
672
+ --sc-toast-bg: var(--sc-base, #fff);
654
673
  --sc-toast-rounded: var(--sc-rounded-md);
655
674
  --sc-toast-shadow: var(--sc-shadow-lg);
656
675
  }
@@ -757,23 +776,25 @@
757
776
 
758
777
  /*STATUS*/
759
778
  .success {
760
- --sc-toast-status-color: var(--sc-success);
761
- --sc-toast-title-color: var(--sc-toast-status-color);
779
+ --sc-toast-status-color: var(
780
+ --sc-success,
781
+ var(--sc-base-content, #000)
782
+ );
762
783
  }
763
784
 
764
785
  .error {
765
- --sc-toast-status-color: var(--sc-danger);
766
- --sc-toast-title-color: var(--sc-toast-status-color);
786
+ --sc-toast-status-color: var(--sc-danger, var(--sc-base-content, #000));
767
787
  }
768
788
 
769
789
  .warning {
770
- --sc-toast-status-color: var(--sc-warning);
771
- --sc-toast-title-color: var(--sc-toast-status-color);
790
+ --sc-toast-status-color: var(
791
+ --sc-warning,
792
+ var(--sc-base-content, #000)
793
+ );
772
794
  }
773
795
 
774
796
  .info {
775
- --sc-toast-status-color: var(--sc-info);
776
- --sc-toast-title-color: var(--sc-toast-status-color);
797
+ --sc-toast-status-color: var(--sc-info, var(--sc-base-content, #000));
777
798
  }
778
799
 
779
800
  .success,
@@ -818,44 +839,46 @@
818
839
  opacity: 0.85;
819
840
  pointer-events: none;
820
841
  }
821
- `],kt([l({type:String})],_t.prototype,"title",2),kt([l({type:String})],_t.prototype,"id",2),kt([l({type:String})],_t.prototype,"text",2),kt([l({type:String})],_t.prototype,"status",2),kt([l({type:Boolean})],_t.prototype,"ghost",2),kt([l({type:Boolean})],_t.prototype,"preserve",2),kt([l({type:Boolean})],_t.prototype,"dismissForever",2),kt([l({type:String})],_t.prototype,"maxHeight",2),kt([T()],_t.prototype,"visible",2),_t=kt([_(gn)],_t);const mn=P`
842
+ `],Et([l({type:String})],$t.prototype,"title",2),Et([l({type:String})],$t.prototype,"id",2),Et([l({type:String})],$t.prototype,"text",2),Et([l({type:String})],$t.prototype,"status",2),Et([l({type:Boolean})],$t.prototype,"ghost",2),Et([l({type:Boolean})],$t.prototype,"preserve",2),Et([l({type:Boolean})],$t.prototype,"dismissForever",2),Et([l({type:String})],$t.prototype,"maxHeight",2),Et([T()],$t.prototype,"visible",2),$t=Et([w(pa)],$t);const ua=$`
822
843
  :host {
823
- /* polices*/
844
+ /* POLICES */
845
+ /*
824
846
  --sc-font-family-base: "Inter var", "Inter", -apple-system, system-ui,
825
847
  BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
826
- sans-serif;
827
- --sc-font-weight-base: 400;
828
- --sc-font-style-base: normal;
829
-
830
- --sc-headings-font-family: var(--sc-font-family-base), sans-serif; /*ok*/
831
- --sc-headings-font-style: var(--sc-font-style-base);
832
- --sc-headings-line-height: 1.1;
833
- --sc-headings-font-weight: 700;
834
- --sc-headings-text-transform: none;
848
+ sans-serif;
849
+ --sc-font-weight-base: 400;
850
+ --sc-font-style-base: normal;
835
851
 
836
- /* Button*/
837
- --sc-btn-font-weight: var(--sc-font-weight-base); /*ok*/
838
- --sc-btn-font-family: var(--sc-font-family-base); /*ok*/
852
+ --sc-headings-font-family: var(--sc-font-family-base, sans-serif);
853
+ --sc-headings-font-style: var(--sc-font-style-base, normal);
854
+ --sc-headings-line-height: 1.1;
855
+ --sc-headings-font-weight: 700;
856
+ */
839
857
 
840
858
  /* ROUNDED*/
841
- --sc-rounded-sm: calc(var(--sc-rounded) * 0.5);
859
+ --sc-rounded-sm: calc(var(--sc-rounded, 0px) * 0.5);
842
860
  --sc-rounded: 0.375rem;
843
- --sc-rounded-md: calc(var(--sc-rounded) * 1.8);
844
- --sc-rounded-lg: calc(var(--sc-rounded) * 3);
845
- --sc-rounded-xl: calc(var(--sc-rounded) * 7);
846
- --sc-rounded-size-intensity: calc((1em - 1rem) * 0.4);
861
+ --sc-rounded-md: calc(var(--sc-rounded, 0px) * 1.8);
862
+ --sc-rounded-lg: calc(var(--sc-rounded, 0px) * 3);
863
+ --sc-rounded-xl: calc(var(--sc-rounded, 0px) * 7);
864
+
865
+ /* BOUTONS */
866
+ /*
867
+ --sc-btn-font-family: var(--sc-font-family-base, sans-serif); *
868
+ --sc-btn-font-weight: 500;
869
+ */
870
+
871
+ /* Placeholder */
872
+ /*--sc-placeholder-bg: rgba(17, 24, 39, 0.05); */
847
873
 
848
874
  /* 4 for rounded full*/
849
875
  --sc-btn-rounded-intensity: 1.4;
850
- --sc-btn-font-weight: 500;
876
+ --sc-rounded-size-intensity: calc((1em - 1rem) * 0.4);
851
877
  --sc-btn-rounded: calc(
852
- (var(--sc-rounded) + var(--sc-rounded-size-intensity)) *
878
+ (var(--sc-rounded, 0px) + var(--sc-rounded-size-intensity)) *
853
879
  var(--sc-btn-rounded-intensity)
854
880
  );
855
881
 
856
- /* Placeholder */
857
- /*--sc-placeholder-bg: rgba(17, 24, 39, 0.05); */ /*ok*/
858
-
859
882
  /* OMBRES */
860
883
  --sc-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1),
861
884
  0 1px 2px -1px rgb(0 0 0 / 0.1);
@@ -869,24 +892,26 @@
869
892
 
870
893
  /* Forms */
871
894
  --sc-border-width: max(1px, 0.12rem);
872
- --sc-border-color: var(--sc-base-100);
873
- --sc-form-height: 2.5em;
895
+ --sc-border-color: var(--sc-base-100, var(--sc-base-content, #000));
896
+ /*--sc-form-height: 2.5em; */ /*ok*/
874
897
  --sc-form-border-width: var(--sc-border-width);
875
- --sc-input-bg: var(--sc-base-100);
876
- --sc-input-border-color: var(--sc-input-bg);
898
+ /*--sc-input-bg: var(--sc-base-100, rgba(0, 0, 0, 0.07));*/
899
+ /*--sc-input-border-color: var(--sc-input-bg);*/
877
900
  --sc-input-rounded-intensity: 1.4;
878
901
  --sc-input-rounded: calc(
879
- (var(--sc-rounded) + var(--sc-rounded-size-intensity)) *
902
+ (var(--sc-rounded, 0px) + var(--sc-rounded-size-intensity)) *
880
903
  var(--sc-input-rounded-intensity)
881
904
  );
882
- /*--sc-label-font-weight: 500; /*ok*/
905
+ /*formulaires*/
906
+ --sc-input-color: var(--sc-base-content, #000);
883
907
 
884
- /* Contrast -- ex : Text on images */
908
+ /* CONTRAST */
909
+ /* -- ex : Text on images */
885
910
  --sc-contrast-content: #fff;
886
911
  --sc-contrast: #000000;
887
912
  }
888
- `,bn=P`
889
- :host {
913
+ `,fa=$`
914
+ :host([theme="light"]) {
890
915
  /*Boutons*/
891
916
  --sc-primary: var(--sc-base-800);
892
917
  --sc-info: #2563eb;
@@ -894,11 +919,11 @@
894
919
  --sc-warning: #f97316;
895
920
  --sc-success: #14b8a6;
896
921
 
897
- --sc-primary-content: var(--sc-base);
898
- --sc-info-content: var(--sc-base);
899
- --sc-danger-content: var(--sc-base);
900
- --sc-warning-content: var(--sc-base);
901
- --sc-success-content: var(--sc-base);
922
+ --sc-primary-content: var(--sc-base, #fff);
923
+ --sc-info-content: var(--sc-base, #fff);
924
+ --sc-danger-content: var(--sc-base, #fff);
925
+ --sc-warning-content: var(--sc-base, #fff);
926
+ --sc-success-content: var(--sc-base, #fff);
902
927
 
903
928
  /*Bases*/
904
929
  --sc-base: #fff;
@@ -913,12 +938,8 @@
913
938
  --sc-base-800: #1e293b;
914
939
  --sc-base-900: #0f172a;
915
940
  --sc-base-content: var(--sc-base-700);
916
-
917
- /*formulaires*/
918
- --sc-input-bg: var(--sc-base-100);
919
- --sc-input-color: var(--sc-base-content);
920
941
  }
921
- `,_r=P`
942
+ `,so=$`
922
943
  --sc-primary: var(--sc-dark-primary, var(--sc-base-700));
923
944
  --sc-info: var(--sc-dark-info, #3abff8);
924
945
  --sc-danger: var(--sc-dark-danger, #f87272);
@@ -943,29 +964,29 @@
943
964
  --sc-base-800: var(--sc-dark-base-800, #d9dce0);
944
965
  --sc-base-900: var(--sc-dark-base-900, #e5e7eb);
945
966
  --sc-base-content: var(--sc-dark-base-content, #e5e7eb);
946
- `,vn=P`
967
+ `,ga=$`
947
968
  :host([theme="dark"]) {
948
- ${_r}
969
+ ${so}
949
970
  }
950
971
 
951
972
  @media (prefers-color-scheme: dark) {
952
973
  :host([theme="auto"]) {
953
- ${_r}
974
+ ${so}
954
975
  }
955
976
  }
956
- `;var yn=Object.defineProperty,wn=Object.getOwnPropertyDescriptor,Qe=(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&&yn(t,s,e),e};const _n="sonic-theme";let vt=class extends w{constructor(){super(),this.theme="light",this.background=!1,this.color=!1,this.font=!1,vt.instance=this}static getPopContainer(){return vt.instance||document.body}connectedCallback(){super.connectedCallback(),window.addEventListener("message",r=>this.receiveMessage(r),!1),window.dispatchEvent(new CustomEvent("SonicThemeReady")),this.postCSSVars()}postCSSVars(){var e;const r=document.styleSheets,t=r.length,s=[];for(let o=0;o<t;o++){const n=r[o];n.href&&(n.href.includes("googleapis")||n.href.includes("typekit.net"))&&s.push(n.href)}const i={variables:this.getCssVariables(),fonts:s};(e=et.get("sonic-theme"))==null||e.set(i),document.querySelectorAll("iframe").forEach(o=>{var n;return(n=o.contentWindow)==null?void 0:n.postMessage({type:"SonicTheme",...i},"*")})}receiveMessage(r){const t=r.data;!t.type||t.type!="GetSonicTheme"||this.postCSSVars()}getCssVariables(){const r=[],t=[...vt.styles.map(e=>e.styleSheet),...Array.from(document.styleSheets)];for(const e of t)try{if(!e)continue;const o=e.cssRules;for(const n of o){if(!("style"in n))continue;const a=n.style;for(const c of a)r.includes(c)||c.indexOf("--sc")!==0||r.push(c)}}catch{console.warn("Erreur lors de la récupération des variables CSS")}const s=window.getComputedStyle(this),i={};return r.forEach(e=>i[e]=s.getPropertyValue(e)),i}render(){return g`<slot></slot>`}};vt.styles=[bn,vn,mn,P`
977
+ `;var ma=Object.defineProperty,ba=Object.getOwnPropertyDescriptor,ls=(r,t,s,i)=>{for(var e=i>1?void 0:i?ba(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&&ma(t,s,e),e};const va="sonic-theme";let yt=class extends _{constructor(){super(),this.background=!1,this.color=!1,this.font=!1,yt.instance=this}static getPopContainer(){return yt.instance||document.body}connectedCallback(){super.connectedCallback(),window.addEventListener("message",r=>this.receiveMessage(r),!1),window.dispatchEvent(new CustomEvent("SonicThemeReady")),this.postCSSVars()}postCSSVars(){var e;const r=document.styleSheets,t=r.length,s=[];for(let o=0;o<t;o++){const n=r[o];n.href&&(n.href.includes("googleapis")||n.href.includes("typekit.net"))&&s.push(n.href)}const i={variables:this.getCssVariables(),fonts:s};(e=st.get("sonic-theme"))==null||e.set(i),document.querySelectorAll("iframe").forEach(o=>{var n;return(n=o.contentWindow)==null?void 0:n.postMessage({type:"SonicTheme",...i},"*")})}receiveMessage(r){const t=r.data;!t.type||t.type!="GetSonicTheme"||this.postCSSVars()}getCssVariables(){const r=[],t=[...yt.styles.map(e=>e.styleSheet),...Array.from(document.styleSheets)];for(const e of t)try{if(!e)continue;const o=e.cssRules;for(const n of o){if(!("style"in n))continue;const a=n.style;for(const c of a)r.includes(c)||c.indexOf("--sc")!==0||r.push(c)}}catch{console.warn("Erreur lors de la récupération des variables CSS")}const s=window.getComputedStyle(this),i={};return r.forEach(e=>i[e]=s.getPropertyValue(e)),i}render(){return g`<slot></slot>`}};yt.styles=[fa,ga,ua,$`
957
978
  :host([color]) {
958
- color: var(--sc-base-content);
979
+ color: var(--sc-base-content, #000);
959
980
  }
960
981
 
961
982
  :host([font]) {
962
- font-family: var(--sc-font-family-base), sans-serif;
963
- font-weight: var(--sc-font-weight-base);
964
- font-style: var(--sc-font-style-base);
983
+ font-family: var(--sc-font-family-base, sans-serif);
984
+ font-weight: var(--sc-font-weight-base, 400);
985
+ font-style: var(--sc-font-style-base, normal);
965
986
  }
966
987
  ::slotted(.sonic-pop-content) {
967
988
  max-width: 80vw;
968
- background-color: var(--sc-base);
989
+ background-color: var(--sc-base, #fff);
969
990
  position: fixed;
970
991
  z-index: 99999;
971
992
  display: block;
@@ -985,8 +1006,8 @@
985
1006
  transition-property: scale, opacity;
986
1007
  transition-timing-function: cubic-bezier(0.25, 0.25, 0.42, 1.225);
987
1008
  }
988
- `],Qe([l({type:String,reflect:!0})],vt.prototype,"theme",2),Qe([l({type:Boolean,reflect:!0})],vt.prototype,"background",2),Qe([l({type:Boolean,reflect:!0})],vt.prototype,"color",2),Qe([l({type:Boolean,reflect:!0})],vt.prototype,"font",2),vt=Qe([_(_n)],vt);var xn=Object.defineProperty,Pn=Object.getOwnPropertyDescriptor,xr=(r,t,s,i)=>{for(var e=i>1?void 0:i?Pn(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&&xn(t,s,e),e};const $n="sonic-toast";let M=class extends w{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?g`<div aria-live="polite" style=${ut(s)}>
989
- ${ys(this.toasts,i=>i.id,i=>g`
1009
+ `],ls([l({type:String,reflect:!0})],yt.prototype,"theme",2),ls([l({type:Boolean,reflect:!0})],yt.prototype,"background",2),ls([l({type:Boolean,reflect:!0})],yt.prototype,"color",2),ls([l({type:Boolean,reflect:!0})],yt.prototype,"font",2),yt=ls([w(va)],yt);var ya=Object.defineProperty,_a=Object.getOwnPropertyDescriptor,io=(r,t,s,i)=>{for(var e=i>1?void 0:i?_a(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&&ya(t,s,e),e};const wa="sonic-toast";let M=class extends _{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?g`<div aria-live="polite" style=${ft(s)}>
1010
+ ${ks(this.toasts,i=>i.id,i=>g`
990
1011
  <sonic-toast-item
991
1012
  maxHeight=${t?"none":"10rem"}
992
1013
  status=${x(i.status)}
@@ -996,28 +1017,28 @@
996
1017
  ?preserve=${i.preserve}
997
1018
  id=${x(i.id)}
998
1019
  @hide=${()=>this.removeItem(i)}
999
- ${ws({keyframeOptions:{duration:250,easing:"cubic-bezier(0.250, 0.250, 0.420, 1.225)"},in:[{transform:"translateY(0) scale(1.25)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}],out:[{transform:"scale(.90) ",opacity:0,duration:3e3,easing:"ease-in-out"}],stabilizeOut:!0})}
1020
+ ${Is({keyframeOptions:{duration:250,easing:"cubic-bezier(0.250, 0.250, 0.420, 1.225)"},in:[{transform:"translateY(0) scale(1.25)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}],out:[{transform:"scale(.90) ",opacity:0,duration:3e3,easing:"ease-in-out"}],stabilizeOut:!0})}
1000
1021
  >
1001
1022
  <!-- Le texte est passé dans le slot et non pas en propriété pour contrer des problèmatiques de shadow-dom et d'appel exterieur (exemple: fancybox) -->
1002
1023
  ${i.text?F(i.text):""}
1003
1024
  </sonic-toast-item>
1004
1025
  `)}
1005
- </div>`:C}static removeAll(){if(M.delegateToasts){M.handleExistingToastDelegation(),window.parent.postMessage({type:"removeAllToasts"},"*");return}const t=M.getInstance();t&&(t.toasts=t.toasts.filter(s=>s.ghost))}static getInstance(){return M.instance||(M.instance=document.createElement("sonic-toast"),vt.getPopContainer().prepend(M.instance)),M.instance}static add(t){if(M.delegateToasts){M.handleExistingToastDelegation(),window.parent.postMessage({type:"addToast",toast:t},"*");return}const s=M.getInstance(),i=t.id??new Date().valueOf(),o=new RegExp("</a>|</.*?button>|</.*?input>|</.*?textarea>|</.*?select>").test(t.text),n={id:i,text:t.text,title:t.title,status:t.status,preserve:o?!0:t.preserve,ghost:t.ghost,dismissForever:t.dismissForever};if(t.dismissForever&&t.id){const a=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(a)[t.id])return null}if(s!=null&&s.toasts.length){const a={...n};for(const c of s.toasts){const h={...c};if(a.id=h.id=0,J.shallowEqual(a,h))return null}}return s&&(s.toasts=[...s.toasts,n]),n}static handleExistingToastDelegation(){if(!this.delegateToasts)return;const t=M.getInstance();window.parent.postMessage({type:"addToasts",toasts:t.toasts},"*"),t.toasts=[]}static removeItem(t){if(M.delegateToasts){M.handleExistingToastDelegation(),window.parent.postMessage({type:"removeToast",toast:t},"*");return}const s=M.getInstance();s&&s.removeItem(t)}removeItem(t){t&&(this.toasts=this.toasts.filter(s=>(s={...s},delete s.id,!J.shallowEqual(s,t,!1))))}};M.delegateToasts=!1,xr([l({type:Array})],M.prototype,"toasts",2),M=xr([_($n)],M),typeof window<"u"&&(window[ls+"Toast"]=window[ls+"Toast"]||M);function Cn(){var s;const r=i=>{i.data.type=="querySonicToastAvailability"&&i.source.postMessage({type:"sonicToastAvailable"},"*"),i.data.type=="sonicToastAvailable"&&(M.delegateToasts=!0,M.handleExistingToastDelegation()),i.data.type=="addToasts"&&(M.getInstance().toasts=[...M.getInstance().toasts,...i.data.toasts]),i.data.type=="removeAllToasts"&&M.removeAll(),i.data.type=="removeToast"&&M.removeItem(i.data.toast),i.data.type=="addToast"&&M.add(i.data.toast)},t=window.parent!=window;if(window.addEventListener("message",r,!1),t&&window.parent.postMessage({type:"querySonicToastAvailability"},"*"),!t)for(const i of document.querySelectorAll("iframe"))(s=i.contentWindow)==null||s.postMessage({type:"sonicToastAvailable"},"*")}Cn();var An=Object.defineProperty,Sn=Object.getOwnPropertyDescriptor,Xe=(r,t,s,i)=>{for(var e=i>1?void 0:i?Sn(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&&An(t,s,e),e};const On=new Set,Dn=new Set,kn=r=>{for(const t of Dn)t(r)},ai=new Set;let li=0;js(async()=>{li++;const r=li,t=Array.from(ai);for(;t.length>0;){if(r!=li)return;const s=t.splice(0,4);await Promise.all(s.map(i=>i._fetchData()))}});const ci=(r,t)=>{class s extends r{constructor(...e){super(),this.api=null,this.key="",this.isFirstLoad=!0,this.isLoading=!1,this.iObserver=null,this.isFetchEnabled=!0,this.fetchedData=null,this._endPoint="",this.noErrorsRecordings=!1,this.requestId=0,this.refetchEveryMs=0,this.dataProvider=""}get props(){return super.props}set props(e){super.props=e}set endPoint(e){this._endPoint=e,this.isConnected&&this._fetchData()}get endPoint(){return this._endPoint}async _fetchData(){if(this.requestUpdate(),!this.isFetchEnabled||(this.api=new Oe(this.getApiConfiguration()),!this.api)||(this.dispatchEvent(new CustomEvent("loading",{detail:this})),this.getAttribute("localStorage")==="enabled"&&await et.getInstance().isLocalStrorageReady,!this.isConnected))return;const e=et.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();this.isLoading=!0,J.isObject(this.props)&&Object.keys(this.props||{}).length>0&&this.isFirstLoad&&window.requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1});let o=await this.api.get(this.endPoint||this.dataProvider||"",e);if(this.fetchedData=o,this.api.lastResult&&!this.api.lastResult.ok&&(this.noErrorsRecordings||On.add(this),kn(this.api.lastResult)),!!this.isConnected){if(o)o._sonic_http_response_&&!o._sonic_http_response_.ok&&Object.keys(o).length===1&&M.add({text:"Network Error",status:"error"});else{this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout(()=>this._fetchData(),this.refetchEveryMs));return}if(this.key){const n=o._sonic_http_response_,a=this.key.split(".");o=J.traverse(o,a,this.hasAttribute("preserveOtherKeys")),o&&J.isObject(o)&&n&&(o._sonic_http_response_=n)}this.props=o,this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout(()=>this._fetchData(),this.refetchEveryMs))}}disconnectedCallback(){var e;super.disconnectedCallback(),ai.delete(this),(e=this.publisher)==null||e.offInvalidate(this.onInvalidate),clearTimeout(this.refetchTimeOutId),this.isFirstLoad=!1}connectedCallback(){var e;this.lazyLoad=this.lazyLoad!==void 0?this.lazyLoad:this.hasAttribute("lazyload"),ai.add(this),super.connectedCallback(),this.isFetchEnabled&&(this.key=this.key!=""?this.key:this.getAttribute("key"),this.props&&this.publisher.set(this.props),this.onInvalidate=()=>this._fetchData(),(e=this.publisher)==null||e.onInvalidate(this.onInvalidate),this.lazyLoad?this.handleLazyLoad():this._fetchData())}handleLazyLoad(){if(!this.lazyLoad)return;const e=this.getBoundingClientRect();if(e.x<window.innerWidth&&e.right>0&&e.y<window.innerHeight&&e.right>0){this._fetchData();return}const o=parseFloat(this.getAttribute("lazyBoundsRatio")||"1"),n={root:null,rootMargin:Math.max(window.innerWidth*o,window.innerHeight*o)+"px",threshold:.9};this.iObserver=new IntersectionObserver(h=>this.onIntersection(h),n);let c=[...(this.shadowRoot?this.shadowRoot:this).children].filter(h=>h.nodeName.toLowerCase()!="style")[0];if((c==null?void 0:c.nodeName.toLocaleLowerCase())=="slot"&&(c=[...c.children].filter(h=>h.nodeName.toLowerCase()!="style")[0]),!c||c.nodeName.toLocaleLowerCase()=="template"){c=document.createElement("span");const h=c.style;h.pointerEvents="none",this.lazyLoadSpan=c,this.appendChild(c)}c?this.iObserver.observe(c):this.isFirstLoad&&this._fetchData()}onIntersection(e){var o,n;for(const a of e)if(a.isIntersecting&&this.isFirstLoad){this._fetchData(),(o=this.lazyLoadSpan)==null||o.remove(),this.lazyLoadSpan=void 0,(n=this.iObserver)==null||n.disconnect();break}}}return Xe([l()],s.prototype,"noErrorsRecordings",2),Xe([l()],s.prototype,"props",1),Xe([l({type:String})],s.prototype,"endPoint",1),Xe([l()],s.prototype,"requestId",2),Xe([l({type:Number})],s.prototype,"refetchEveryMs",2),s};var Ln=Object.defineProperty,En=Object.getOwnPropertyDescriptor,ge=(r,t,s,i)=>{for(var e=i>1?void 0:i?En(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&&Ln(t,s,e),e};const Ps=r=>{class t extends r{constructor(...i){super(),this.forceAutoFill=!1,this._type="text",this.status="default"}validateFormElement(){var o;const i=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(!i||i.checkValidity())return;const e=this.getFormPublisher();e&&(e.isFormValid=!1),i.reportValidity()}set type(i){this.hasAttribute("type")&&!this.forceAutoFill&&(i=this.getAttribute("type")),this._type=i,this.requestUpdate()}get type(){return this._type}get description(){return this._description}set description(i){this.hasAttribute("description")&&!this.forceAutoFill&&(i=this.getAttribute("description")),this._description=i,this.requestUpdate()}get label(){return this._label}set label(i){this.hasAttribute("label")&&!this.forceAutoFill&&(i=this.getAttribute("label")),this._label=i,this.requestUpdate()}}return ge([l()],t.prototype,"forceAutoFill",2),ge([l({type:String})],t.prototype,"type",1),ge([l()],t.prototype,"description",1),ge([l()],t.prototype,"label",1),ge([l({type:String,reflect:!0})],t.prototype,"status",2),ge([l({type:Number})],t.prototype,"tabindex",2),ge([l({type:String})],t.prototype,"autocomplete",2),t},Pr=ci,Nn=ii,$r=De,Cr=Ps,Kt=G,hi=Ke;window["concorde-mixins"]=window["concorde-mixins"]||{},window["concorde-mixins"]={Fetcher:Pr,FormCheckable:Nn,FormElement:$r,FormInput:Cr,Subscriber:Kt,TemplatesContainer:hi};/**
1026
+ </div>`:A}static removeAll(){if(M.delegateToasts){M.handleExistingToastDelegation(),window.parent.postMessage({type:"removeAllToasts"},"*");return}const t=M.getInstance();t&&(t.toasts=t.toasts.filter(s=>s.ghost))}static getInstance(){return M.instance||(M.instance=document.createElement("sonic-toast"),yt.getPopContainer().prepend(M.instance)),M.instance}static add(t){if(M.delegateToasts){M.handleExistingToastDelegation(),window.parent.postMessage({type:"addToast",toast:t},"*");return}const s=M.getInstance(),i=t.id??new Date().valueOf(),o=new RegExp("</a>|</.*?button>|</.*?input>|</.*?textarea>|</.*?select>").test(t.text),n={id:i,text:t.text,title:t.title,status:t.status,preserve:o?!0:t.preserve,ghost:t.ghost,dismissForever:t.dismissForever};if(t.dismissForever&&t.id){const a=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(a)[t.id])return null}if(s!=null&&s.toasts.length){const a={...n};for(const c of s.toasts){const h={...c};if(a.id=h.id=0,J.shallowEqual(a,h))return null}}return s&&(s.toasts=[...s.toasts,n]),n}static handleExistingToastDelegation(){if(!this.delegateToasts)return;const t=M.getInstance();window.parent.postMessage({type:"addToasts",toasts:t.toasts},"*"),t.toasts=[]}static removeItem(t){if(M.delegateToasts){M.handleExistingToastDelegation(),window.parent.postMessage({type:"removeToast",toast:t},"*");return}const s=M.getInstance();s&&s.removeItem(t)}removeItem(t){t&&(this.toasts=this.toasts.filter(s=>(s={...s},delete s.id,!J.shallowEqual(s,t,!1))))}};M.delegateToasts=!1,io([l({type:Array})],M.prototype,"toasts",2),M=io([w(wa)],M),typeof window<"u"&&(window[ys+"Toast"]=window[ys+"Toast"]||M);function $a(){var s;const r=i=>{i.data.type=="querySonicToastAvailability"&&i.source.postMessage({type:"sonicToastAvailable"},"*"),i.data.type=="sonicToastAvailable"&&(M.delegateToasts=!0,M.handleExistingToastDelegation()),i.data.type=="addToasts"&&(M.getInstance().toasts=[...M.getInstance().toasts,...i.data.toasts]),i.data.type=="removeAllToasts"&&M.removeAll(),i.data.type=="removeToast"&&M.removeItem(i.data.toast),i.data.type=="addToast"&&M.add(i.data.toast)},t=window.parent!=window;if(window.addEventListener("message",r,!1),t&&window.parent.postMessage({type:"querySonicToastAvailability"},"*"),!t)for(const i of document.querySelectorAll("iframe"))(s=i.contentWindow)==null||s.postMessage({type:"sonicToastAvailable"},"*")}$a();var xa=Object.defineProperty,Pa=Object.getOwnPropertyDescriptor,cs=(r,t,s,i)=>{for(var e=i>1?void 0:i?Pa(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&&xa(t,s,e),e};const Aa=new Set,Ca=new Set,Sa=r=>{for(const t of Ca)t(r)},Ci=new Set;let Si=0;Js(async()=>{Si++;const r=Si,t=Array.from(Ci);for(;t.length>0;){if(r!=Si)return;const s=t.splice(0,4);await Promise.all(s.map(i=>i._fetchData()))}});const Oi=(r,t)=>{class s extends r{constructor(...e){super(),this.api=null,this.key="",this.isFirstLoad=!0,this.isLoading=!1,this.iObserver=null,this.isFetchEnabled=!0,this.fetchedData=null,this._endPoint="",this.noErrorsRecordings=!1,this.requestId=0,this.refetchEveryMs=0,this.dataProvider=""}get props(){return super.props}set props(e){super.props=e}set endPoint(e){this._endPoint=e,this.isConnected&&this._fetchData()}get endPoint(){return this._endPoint}async _fetchData(){if(this.requestUpdate(),!this.isFetchEnabled||(this.api=new Te(this.getApiConfiguration()),!this.api)||(this.dispatchEvent(new CustomEvent("loading",{detail:this})),this.getAttribute("localStorage")==="enabled"&&await st.getInstance().isLocalStrorageReady,!this.isConnected))return;const e=st.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();this.isLoading=!0,J.isObject(this.props)&&Object.keys(this.props||{}).length>0&&this.isFirstLoad&&window.requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1});let o=await this.api.get(this.endPoint||this.dataProvider||"",e);if(this.fetchedData=o,this.api.lastResult&&!this.api.lastResult.ok&&(this.noErrorsRecordings||Aa.add(this),Sa(this.api.lastResult)),!!this.isConnected){if(o)o._sonic_http_response_&&!o._sonic_http_response_.ok&&Object.keys(o).length===1&&M.add({text:"Network Error",status:"error"});else{this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout(()=>this._fetchData(),this.refetchEveryMs));return}if(this.key){const n=o._sonic_http_response_,a=this.key.split(".");o=J.traverse(o,a,this.hasAttribute("preserveOtherKeys")),o&&J.isObject(o)&&n&&(o._sonic_http_response_=n)}this.props=o,this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout(()=>this._fetchData(),this.refetchEveryMs))}}disconnectedCallback(){var e;super.disconnectedCallback(),Ci.delete(this),(e=this.publisher)==null||e.offInvalidate(this.onInvalidate),clearTimeout(this.refetchTimeOutId),this.isFirstLoad=!1}connectedCallback(){var e;this.lazyLoad=this.lazyLoad!==void 0?this.lazyLoad:this.hasAttribute("lazyload"),Ci.add(this),super.connectedCallback(),this.isFetchEnabled&&(this.key=this.key!=""?this.key:this.getAttribute("key"),this.props&&this.publisher.set(this.props),this.onInvalidate=()=>this._fetchData(),(e=this.publisher)==null||e.onInvalidate(this.onInvalidate),this.lazyLoad?this.handleLazyLoad():this._fetchData())}handleLazyLoad(){if(!this.lazyLoad)return;const e=this.getBoundingClientRect();if(e.x<window.innerWidth&&e.right>0&&e.y<window.innerHeight&&e.right>0){this._fetchData();return}const o=parseFloat(this.getAttribute("lazyBoundsRatio")||"1"),n={root:null,rootMargin:Math.max(window.innerWidth*o,window.innerHeight*o)+"px",threshold:.9};this.iObserver=new IntersectionObserver(h=>this.onIntersection(h),n);let c=[...(this.shadowRoot?this.shadowRoot:this).children].filter(h=>h.nodeName.toLowerCase()!="style")[0];if((c==null?void 0:c.nodeName.toLocaleLowerCase())=="slot"&&(c=[...c.children].filter(h=>h.nodeName.toLowerCase()!="style")[0]),!c||c.nodeName.toLocaleLowerCase()=="template"){c=document.createElement("span");const h=c.style;h.pointerEvents="none",this.lazyLoadSpan=c,this.appendChild(c)}c?this.iObserver.observe(c):this.isFirstLoad&&this._fetchData()}onIntersection(e){var o,n;for(const a of e)if(a.isIntersecting&&this.isFirstLoad){this._fetchData(),(o=this.lazyLoadSpan)==null||o.remove(),this.lazyLoadSpan=void 0,(n=this.iObserver)==null||n.disconnect();break}}}return cs([l()],s.prototype,"noErrorsRecordings",2),cs([l()],s.prototype,"props",1),cs([l({type:String})],s.prototype,"endPoint",1),cs([l()],s.prototype,"requestId",2),cs([l({type:Number})],s.prototype,"refetchEveryMs",2),s};var Oa=Object.defineProperty,Da=Object.getOwnPropertyDescriptor,ye=(r,t,s,i)=>{for(var e=i>1?void 0:i?Da(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&&Oa(t,s,e),e};const zs=r=>{class t extends r{constructor(...i){super(),this.forceAutoFill=!1,this._type="text",this.status="default"}validateFormElement(){var o;const i=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(!i||i.checkValidity())return;const e=this.getFormPublisher();e&&(e.isFormValid=!1),i.reportValidity()}set type(i){this.hasAttribute("type")&&!this.forceAutoFill&&(i=this.getAttribute("type")),this._type=i,this.requestUpdate()}get type(){return this._type}get description(){return this._description}set description(i){this.hasAttribute("description")&&!this.forceAutoFill&&(i=this.getAttribute("description")),this._description=i,this.requestUpdate()}get label(){return this._label}set label(i){this.hasAttribute("label")&&!this.forceAutoFill&&(i=this.getAttribute("label")),this._label=i,this.requestUpdate()}}return ye([l()],t.prototype,"forceAutoFill",2),ye([l({type:String})],t.prototype,"type",1),ye([l()],t.prototype,"description",1),ye([l()],t.prototype,"label",1),ye([l({type:String,reflect:!0})],t.prototype,"status",2),ye([l({type:Number})],t.prototype,"tabindex",2),ye([l({type:String})],t.prototype,"autocomplete",2),t},ro=Oi,ka=yi,oo=Ie,no=zs,Zt=Q,Di=Xe;window["concorde-mixins"]=window["concorde-mixins"]||{},window["concorde-mixins"]={Fetcher:ro,FormCheckable:ka,FormElement:oo,FormInput:no,Subscriber:Zt,TemplatesContainer:Di};/**
1006
1027
  * @license
1007
1028
  * Copyright 2020 Google LLC
1008
1029
  * SPDX-License-Identifier: BSD-3-Clause
1009
- */const Lt=de(class extends Se{constructor(r){if(super(r),r.type!==he.CHILD)throw Error("templateContent can only be used in child bindings")}render(r){return this.vt===r?bt:(this.vt=r,document.importNode(r.content,!0))}});var Tn=Object.defineProperty,Mn=Object.getOwnPropertyDescriptor,Ar=(r,t,s,i)=>{for(var e=i>1?void 0:i?Mn(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&&Tn(t,s,e),e};const In="sonic-fetch";let $s=class extends ci(G(hi(w))){renderLoader(){if(!(this.isLoading&&this.loader!==void 0))return C;const r=this.loader===!0||this.loader===""?"fixed":this.loader;return g`<sonic-loader mode=${r}></sonic-loader>`}renderSkeleton(){const r=this.templateParts.skeleton;return this.isLoading&&r?Lt(r):C}render(){return g`
1030
+ */const Nt=pe(class extends Ne{constructor(r){if(super(r),r.type!==Ee.CHILD)throw Error("templateContent can only be used in child bindings")}render(r){return this.vt===r?vt:(this.vt=r,document.importNode(r.content,!0))}});var La=Object.defineProperty,Ea=Object.getOwnPropertyDescriptor,ao=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ea(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&&La(t,s,e),e};const Na="sonic-fetch";let Rs=class extends Oi(Q(Di(_))){renderLoader(){if(!(this.isLoading&&this.loader!==void 0))return A;const r=this.loader===!0||this.loader===""?"fixed":this.loader;return g`<sonic-loader mode=${r}></sonic-loader>`}renderSkeleton(){const r=this.templateParts.skeleton;return this.isLoading&&r?Nt(r):A}render(){return g`
1010
1031
  ${this.renderSkeleton()} ${this.renderLoader()}
1011
- ${this.isLoading?C:g`<slot></slot>`}
1012
- `}};$s.styles=[P`
1032
+ ${this.isLoading?A:g`<slot></slot>`}
1033
+ `}};Rs.styles=[$`
1013
1034
  :host {
1014
1035
  display: contents;
1015
1036
  }
1016
- `],Ar([l()],$s.prototype,"loader",2),$s=Ar([_(In)],$s);var jn=Object.defineProperty,Fn=Object.getOwnPropertyDescriptor,Sr=(r,t,s,i)=>{for(var e=i>1?void 0:i?Fn(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&&jn(t,s,e),e};const zn="sonic-if";let Cs=class extends w{constructor(){super(...arguments),this.condition=!1}render(){return this.condition?g` <slot></slot> `:C}};Cs.styles=P`
1037
+ `],ao([l()],Rs.prototype,"loader",2),Rs=ao([w(Na)],Rs);var Ta=Object.defineProperty,Ma=Object.getOwnPropertyDescriptor,lo=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ma(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&&Ta(t,s,e),e};const Ia="sonic-if";let Us=class extends _{constructor(){super(...arguments),this.condition=!1}render(){return this.condition?g` <slot></slot> `:A}};Us.styles=$`
1017
1038
  :host {
1018
1039
  display: contents;
1019
1040
  }
1020
- `,Sr([l({type:Boolean})],Cs.prototype,"condition",2),Cs=Sr([_(zn)],Cs);const Rn=P`
1041
+ `,lo([l({type:Boolean})],Us.prototype,"condition",2),Us=lo([w(Ia)],Us);const ja=$`
1021
1042
  :host([align="left"]) .sonic-loader--inline {
1022
1043
  margin-left: 0;
1023
1044
  }
@@ -1040,7 +1061,7 @@
1040
1061
  width: 13px;
1041
1062
  height: 13px;
1042
1063
  border-radius: 50%;
1043
- background: var(--sc-loader-bg);
1064
+ background: var(--sc-_loader-bg);
1044
1065
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
1045
1066
  }
1046
1067
  .sonic-loader--inline div:nth-child(1) {
@@ -1084,8 +1105,7 @@
1084
1105
  transform: translate(24px, 0);
1085
1106
  }
1086
1107
  }
1087
- `,Un=P`
1088
-
1108
+ `,Fa=$`
1089
1109
  @keyframes sonic-loader--fixed {
1090
1110
  0% {
1091
1111
  transform: scale(0);
@@ -1095,7 +1115,7 @@
1095
1115
  opacity: 1;
1096
1116
  }
1097
1117
  70% {
1098
- opacity:90%;
1118
+ opacity: 90%;
1099
1119
  }
1100
1120
  100% {
1101
1121
  transform: scale(1);
@@ -1105,12 +1125,12 @@
1105
1125
 
1106
1126
  .sonic-loader--fixed {
1107
1127
  position: fixed;
1108
- top:50%;
1109
- left:50%;
1110
- transform:transateY(-50%) translateX(-50%);
1111
- z-index:999;
1128
+ top: 50%;
1129
+ left: 50%;
1130
+ transform: transateY(-50%) translateX(-50%);
1131
+ z-index: 999;
1112
1132
  }
1113
-
1133
+
1114
1134
  .sonic-loader--fixed > div:nth-child(2) {
1115
1135
  animation-delay: -0.5s;
1116
1136
  }
@@ -1119,10 +1139,10 @@
1119
1139
  }
1120
1140
 
1121
1141
  .sonic-loader--fixed > div:nth-child(4) {
1122
- display:none !important;
1142
+ display: none !important;
1123
1143
  }
1124
1144
  .sonic-loader--fixed > div {
1125
- background-color: var(--sc-loader-bg);
1145
+ background-color: var(--sc-_loader-bg);
1126
1146
  width: 5rem;
1127
1147
  height: 5rem;
1128
1148
  border-radius: 100%;
@@ -1138,18 +1158,23 @@
1138
1158
  height: 5rem;
1139
1159
  animation: sonic-loader--fixed 1s 0s linear infinite;
1140
1160
  }
1141
-
1142
- `;var Vn=Object.defineProperty,Bn=Object.getOwnPropertyDescriptor,di=(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&&Vn(t,s,e),e};const Hn="sonic-loader";let ot=class extends w{constructor(){super(...arguments),this.mode="fixed",this.noDelay=!1}static show(r){ot.loader||(ot.loader=document.createElement("sonic-loader"));const t=ot.loader;r||(r={}),r.mode&&t.setAttribute("mode",r.mode),r.noDelay&&t.setAttribute("noDelay",""),r.container||(r.container=vt.getPopContainer(),r.mode="fixed"),r.container.appendChild(t),ot.callCounter++}static hide(){ot.callCounter--,!(ot.callCounter>0)&&ot.loader&&ot.loader.remove()}render(){return g`<div class="sonic-loader sonic-loader--${this.mode} ${this.noDelay?"sonic-loader--nodelay":""} ">
1161
+ `;var za=Object.defineProperty,Ra=Object.getOwnPropertyDescriptor,ki=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ra(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&&za(t,s,e),e};const Ua="sonic-loader";let nt=class extends _{constructor(){super(...arguments),this.mode="fixed",this.noDelay=!1}static show(r){nt.loader||(nt.loader=document.createElement("sonic-loader"));const t=nt.loader;r||(r={}),r.mode&&t.setAttribute("mode",r.mode),r.noDelay&&t.setAttribute("noDelay",""),r.container||(r.container=yt.getPopContainer(),r.mode="fixed"),r.container.appendChild(t),nt.callCounter++}static hide(){nt.callCounter--,!(nt.callCounter>0)&&nt.loader&&nt.loader.remove()}render(){return g`<div
1162
+ class="sonic-loader sonic-loader--${this.mode} ${this.noDelay?"sonic-loader--nodelay":""} "
1163
+ >
1143
1164
  <div></div>
1144
1165
  <div></div>
1145
1166
  <div></div>
1146
1167
  <div></div>
1147
- </div>`}};ot.styles=[Rn,Un,P`
1168
+ </div>`}};nt.styles=[ja,Fa,$`
1148
1169
  :host {
1149
- --sc-loader-bg: var(--sc-primary, currentColor);
1170
+ --sc-_loader-bg: var(--sc-primary, currentColor);
1150
1171
  pointer-events: none;
1151
1172
  }
1152
1173
 
1174
+ :host([currentColor]) {
1175
+ --sc-_loader-bg: currentColor;
1176
+ }
1177
+
1153
1178
  .sonic-loader {
1154
1179
  opacity: 0;
1155
1180
  animation: showLoader 0.5s 0.5s forwards;
@@ -1168,7 +1193,7 @@
1168
1193
  opacity: 1;
1169
1194
  }
1170
1195
  }
1171
- `],ot.callCounter=0,di([l({type:String})],ot.prototype,"mode",2),di([l({type:Boolean})],ot.prototype,"noDelay",2),ot=di([_(Hn)],ot);var qn=Object.defineProperty,Wn=Object.getOwnPropertyDescriptor,Kn=(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&&qn(t,s,e),e};const Yn="sonic-subscriber";let Or=class extends G(w){constructor(){super(...arguments),this.noAutofill=!0}connectedCallback(){this.noShadowDom="",super.connectedCallback()}updated(r){super.updated(r),this.children.length==0?this.style.display="none":this.style.display="contents"}render(){return g`<slot></slot> `}};Or=Kn([_(Yn)],Or);var Zn=Object.defineProperty,Gn=Object.getOwnPropertyDescriptor,me=(r,t,s,i)=>{for(var e=i>1?void 0:i?Gn(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&&Zn(t,s,e),e};const Qn="sonic-list";let Yt=class extends ci(G(Ke(w))){constructor(){super(...arguments),this.templateKey="template",this.idKey="id",this.limit=Number.POSITIVE_INFINITY,this.offset=0}connectedCallback(){this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.isFetchEnabled=this.hasAttribute("fetch"),this.isFetchEnabled&&(this.isLoading=!0),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}renderLoader(){if(!(this.isLoading&&this.loader!==void 0)||this.templateParts.skeleton)return C;const t=this.loader===!0||this.loader===""?"fixed":this.loader;return g`<sonic-loader mode=${t}></sonic-loader>`}renderSkeleton(){const r=this.templateParts.skeleton;return this.isLoading&&r?Lt(r):C}renderLoadingState(){return g`${this.renderSkeleton()} ${this.renderLoader()}`}renderNoResultState(){return g` <div
1196
+ `],nt.callCounter=0,ki([l({type:String})],nt.prototype,"mode",2),ki([l({type:Boolean})],nt.prototype,"noDelay",2),nt=ki([w(Ua)],nt);var Va=Object.defineProperty,Ha=Object.getOwnPropertyDescriptor,Ba=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ha(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&&Va(t,s,e),e};const qa="sonic-subscriber";let co=class extends Q(_){constructor(){super(...arguments),this.noAutofill=!0}connectedCallback(){this.noShadowDom="",super.connectedCallback()}updated(r){super.updated(r),this.children.length==0?this.style.display="none":this.style.display="contents"}render(){return g`<slot></slot> `}};co=Ba([w(qa)],co);var Wa=Object.defineProperty,Ka=Object.getOwnPropertyDescriptor,_e=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ka(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&&Wa(t,s,e),e};const Ya="sonic-list";let Gt=class extends Oi(Q(Xe(_))){constructor(){super(...arguments),this.templateKey="template",this.idKey="id",this.limit=Number.POSITIVE_INFINITY,this.offset=0}connectedCallback(){this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.isFetchEnabled=this.hasAttribute("fetch"),this.isFetchEnabled&&(this.isLoading=!0),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}renderLoader(){if(!(this.isLoading&&this.loader!==void 0)||this.templateParts.skeleton)return A;const t=this.loader===!0||this.loader===""?"fixed":this.loader;return g`<sonic-loader mode=${t}></sonic-loader>`}renderSkeleton(){const r=this.templateParts.skeleton;return this.isLoading&&r?Nt(r):A}renderLoadingState(){return g`${this.renderSkeleton()} ${this.renderLoader()}`}renderNoResultState(){return g` <div
1172
1197
  style="color: var(--sc-base-400);
1173
1198
  font-size: 1.5em;
1174
1199
  margin: 4rem 0;
@@ -1179,24 +1204,24 @@
1179
1204
  ><span class="sonic-no-result-text"
1180
1205
  >${typeof this.props=="string"&&this.props==""?"Aucun résultat":this.props}</span
1181
1206
  >
1182
- </div>`}formatProps(){let r=this.props;if(r==null)return null;const t=r._sonic_http_response_,s=this.hasAttribute("extractValues");return Array.isArray(r)||(s?r=Object.entries(r).map(([i,e])=>({key:i,value:e})):J.isObject(r)&&Object.keys(r).length>0&&(!t||t.ok)?r=[r]:r=[]),r=r.filter(i=>i!=null),t&&(r._sonic_http_response_=t),r}render(){if(this.isLoading&&!Array.isArray(this.props))return this.renderLoadingState();if(typeof this.props=="string")return this.renderNoResultState();if(!J.isObject(this.props))return g`<div></div>`;const i=this.formatProps();if(((i==null?void 0:i.length)||0)==0&&this.templateParts["no-item"])return Lt(this.templateParts["no-item"]);const e=this.templateList.length;let o=-1;const n=this.hasAttribute("extractValues"),a=this.templateParts.separator,c=(i==null?void 0:i.length)||0,h=i==null?void 0:i.slice(this.offset,this.offset+this.limit);return g`
1183
- ${h==null?void 0:h.map((d,f)=>{if(d==null)return C;let m=null,b=f;if(typeof d=="object"&&!Array.isArray(d)){const D=d[this.templateKey];D&&typeof D=="string"&&(m=this.templateParts[D]),n&&(b=d==null?void 0:d.key)}if(b=="_sonic_http_response_"||typeof b!="string"&&typeof b!="number")return C;const v=f>=c-1,$=f%2,S=this.publisher[b];return S._key_=b+"",S._metadata_={...S._metadata_.get(),key:b,even:$==0,odd:$==1,onlyChild:c==1,firstChild:f==0,lastChild:v},o++,m&&(o=-1),d&&g`
1207
+ </div>`}formatProps(){let r=this.props;if(r==null)return null;const t=r._sonic_http_response_,s=this.hasAttribute("extractValues");return Array.isArray(r)||(s?r=Object.entries(r).map(([i,e])=>({key:i,value:e})):J.isObject(r)&&Object.keys(r).length>0&&(!t||t.ok)?r=[r]:r=[]),r=r.filter(i=>i!=null),t&&(r._sonic_http_response_=t),r}render(){if(this.isLoading&&!Array.isArray(this.props))return this.renderLoadingState();if(typeof this.props=="string")return this.renderNoResultState();if(!J.isObject(this.props))return g`<div></div>`;const i=this.formatProps();if(((i==null?void 0:i.length)||0)==0&&this.templateParts["no-item"])return Nt(this.templateParts["no-item"]);const e=this.templateList.length;let o=-1;const n=this.hasAttribute("extractValues"),a=this.templateParts.separator,c=(i==null?void 0:i.length)||0,h=i==null?void 0:i.slice(this.offset,this.offset+this.limit);return g`
1208
+ ${h==null?void 0:h.map((d,p)=>{if(d==null)return A;let m=null,b=p;if(typeof d=="object"&&!Array.isArray(d)){const D=d[this.templateKey];D&&typeof D=="string"&&(m=this.templateParts[D]),n&&(b=d==null?void 0:d.key)}if(b=="_sonic_http_response_"||typeof b!="string"&&typeof b!="number")return A;const v=p>=c-1,P=p%2,S=this.publisher[b];return S._key_=b+"",S._metadata_={...S._metadata_.get(),key:b,even:P==0,odd:P==1,onlyChild:c==1,firstChild:p==0,lastChild:v},o++,m&&(o=-1),d&&g`
1184
1209
  <sonic-subscriber
1185
1210
  ?debug=${this.defferedDebug===!0}
1186
1211
  .bindPublisher=${function(){return S}}
1187
1212
  .propertyMap?=${this.itemPropertyMap}
1188
1213
  dataProvider="${this.dataProvider}/list-item/${b}"
1189
1214
  >
1190
- ${Lt(m||this.templateList[o%e])}
1215
+ ${Nt(m||this.templateList[o%e])}
1191
1216
  </sonic-subscriber>
1192
- ${a&&!v?Lt(a):C}
1217
+ ${a&&!v?Nt(a):A}
1193
1218
  `})}
1194
- `}};me([l({type:Object})],Yt.prototype,"itemPropertyMap",2),me([l({type:String})],Yt.prototype,"templateKey",2),me([l({type:String})],Yt.prototype,"idKey",2),me([l()],Yt.prototype,"loader",2),me([l()],Yt.prototype,"limit",2),me([l()],Yt.prototype,"offset",2),Yt=me([_(Qn)],Yt);/**
1219
+ `}};_e([l({type:Object})],Gt.prototype,"itemPropertyMap",2),_e([l({type:String})],Gt.prototype,"templateKey",2),_e([l({type:String})],Gt.prototype,"idKey",2),_e([l()],Gt.prototype,"loader",2),_e([l()],Gt.prototype,"limit",2),_e([l()],Gt.prototype,"offset",2),Gt=_e([w(Ya)],Gt);/**
1195
1220
  * @license
1196
1221
  * Copyright 2021 Google LLC
1197
1222
  * SPDX-License-Identifier: BSD-3-Clause
1198
- */function*Dr(r,t){if(r!==void 0){let s=0;for(const i of r)yield t(i,s++)}}var Xn=Object.defineProperty,Jn=Object.getOwnPropertyDescriptor,ft=(r,t,s,i)=>{for(var e=i>1?void 0:i?Jn(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&&Xn(t,s,e),e};const ta="sonic-queue";let st=class extends G(w){constructor(){super(...arguments),this.templates=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.idKey="id",this.listDataProviders=[],this.nextHadEvent=!1,this.scrollY=0,this.scrollX=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=st.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=ue.getAncestorAttributeValue(this.parentElement,"dataProvider")||""),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)}updated(r){(Math.abs(this.scrollX-window.scrollX)>10||Math.abs(this.scrollY-window.scrollY)>10)&&window.scrollTo(this.scrollX,this.scrollY),window.requestAnimationFrame(()=>{(Math.abs(this.scrollX-window.scrollX)>10||Math.abs(this.scrollY-window.scrollY)>10)&&window.scrollTo(this.scrollX,this.scrollY)}),super.updated(r)}resetDuration(){this.lastRequestTime=new Date().getTime()}next(r){var f,m,b;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+=((f=r.detail.props)==null?void 0:f.length)||0,!r.detail.isFirstLoad||!((m=r.detail.props)!=null&&m.length)||this.dataProviderExpression.indexOf("$offset")==-1){this.publisher.resultCount=this.resultCount;return}}if(Array.isArray(this.props)){const v=this.props,$=v[v.length-1];t=parseInt($.offset.toString())+parseInt($.limit.toString())}else{const v=[];v.resultCount=this.resultCount,v.lastFetchedData=(r==null?void 0:r.detail.fetchedData)||{},this.props=v}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=(b=this.filterPublisher)==null?void 0:b.get(),h=this.filteredFields.split(" ");for(const v in c)this.filteredFields&&h.includes(v)||c[v]==null||c[v]==""||a.set(v,c[v]);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(!Array.isArray(this.props))return C;this.scrollX=window.scrollX,this.scrollY=window.scrollY;let r=!this.noLazyload;return this.props.length==1&&(r=!1),this.style.display="block",g`
1199
- ${Dr(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 g`
1223
+ */function*ho(r,t){if(r!==void 0){let s=0;for(const i of r)yield t(i,s++)}}var Za=Object.defineProperty,Ga=Object.getOwnPropertyDescriptor,gt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ga(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&&Za(t,s,e),e};const Qa="sonic-queue";let it=class extends Q(_){constructor(){super(...arguments),this.templates=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.idKey="id",this.listDataProviders=[],this.nextHadEvent=!1,this.scrollY=0,this.scrollX=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=it.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=fe.getAncestorAttributeValue(this.parentElement,"dataProvider")||""),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)}updated(r){(Math.abs(this.scrollX-window.scrollX)>10||Math.abs(this.scrollY-window.scrollY)>10)&&window.scrollTo(this.scrollX,this.scrollY),window.requestAnimationFrame(()=>{(Math.abs(this.scrollX-window.scrollX)>10||Math.abs(this.scrollY-window.scrollY)>10)&&window.scrollTo(this.scrollX,this.scrollY)}),super.updated(r)}resetDuration(){this.lastRequestTime=new Date().getTime()}next(r){var p,m,b;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||!((m=r.detail.props)!=null&&m.length)||this.dataProviderExpression.indexOf("$offset")==-1){this.publisher.resultCount=this.resultCount;return}}if(Array.isArray(this.props)){const v=this.props,P=v[v.length-1];t=parseInt(P.offset.toString())+parseInt(P.limit.toString())}else{const v=[];v.resultCount=this.resultCount,v.lastFetchedData=(r==null?void 0:r.detail.fetchedData)||{},this.props=v}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=(b=this.filterPublisher)==null?void 0:b.get(),h=this.filteredFields.split(" ");for(const v in c)this.filteredFields&&h.includes(v)||c[v]==null||c[v]==""||a.set(v,c[v]);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(!Array.isArray(this.props))return A;this.scrollX=window.scrollX,this.scrollY=window.scrollY;let r=!this.noLazyload;return this.props.length==1&&(r=!1),this.style.display="block",g`
1224
+ ${ho(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 g`
1200
1225
  <sonic-list
1201
1226
  fetch
1202
1227
  loader="${this.loader}"
@@ -1218,40 +1243,39 @@
1218
1243
  >
1219
1244
  </sonic-list>
1220
1245
  `})}
1221
- `}};st.instanceCounter=0,ft([l({type:Array})],st.prototype,"templates",2),ft([l({type:Object})],st.prototype,"itemPropertyMap",2),ft([l()],st.prototype,"cache",2),ft([l()],st.prototype,"targetRequestDuration",2),ft([l()],st.prototype,"limit",2),ft([l()],st.prototype,"lazyBoundsRatio",2),ft([l()],st.prototype,"offset",2),ft([l()],st.prototype,"resultCount",2),ft([l({type:Boolean})],st.prototype,"noLazyload",2),ft([l({type:String})],st.prototype,"loader",2),ft([l()],st.prototype,"filteredFields",2),ft([l({type:String})],st.prototype,"dataProviderExpression",2),ft([l({type:String})],st.prototype,"idKey",2),st=ft([_(ta)],st);var ea=Object.defineProperty,sa=Object.getOwnPropertyDescriptor,Le=(r,t,s,i)=>{for(var e=i>1?void 0:i?sa(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&&ea(t,s,e),e};const ia="sonic-submit";let Zt=class extends G(w){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 v;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,t.isFormValid,this.hasAttribute("native")){this.submitNativeForm();return}const i=((v=this.getAttribute("method"))==null?void 0:v.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"),f=this.endPoint||d;ot.show();const m=async()=>{var u,y,A,O,E,H,W,At;if(e)h=await((u=this.api)==null?void 0:u.submitFormData(f,o,i,c));else switch(i){case"put":h=await((y=this.api)==null?void 0:y.put(f,o,c));break;case"patch":h=await((A=this.api)==null?void 0:A.patch(f,o,c));break;case"delete":h=await((O=this.api)==null?void 0:O.delete(f,o,c));break;case"get":const Is=new URLSearchParams;if(o)for(const Kr in o)Is.append(Kr,o[Kr]);const Oh="?"+Is.toString();h=await((E=this.api)==null?void 0:E.get(f+Oh,c));break;default:h=await((H=this.api)==null?void 0:H.post(f,o,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(Is=>N.get(Is).set({}));const S=this.hasAttribute("usernameKey")?this.getAttribute("usernameKey"):"username",D=this.hasAttribute("passwordKey")?this.getAttribute("passwordKey"):"password";(At=(W=this.api)==null?void 0:W.lastResult)!=null&&At.ok&&o[S]&&o[D]&&this.saveCredentials(o[S],o[D]),this.submitResultKey&&(h=J.traverse(h,this.submitResultKey.split("."),!0));const p=this.getAncestorAttributeValue("submitResultDataProvider");p&&N.get(p).set(h),this.disabled=!1,this.dispatchEvent(new CustomEvent("submit",{detail:h,bubbles:!0,composed:!0}))},b=a!=null&&a.needsCaptchaValidation.get()?a:t.needsCaptchaValidation.get()?t:null;if(b){b.captchaMethod=i,b.captchaAction=(d==null?void 0:d.split("?")[0])??this.getAncestorAttributeValue("formDataProvider")??"submit",b.captchaToken="request_token";const $=S=>{S&&S!="request_token"&&(m(),b.captchaToken.offAssign($))};b.captchaToken.onAssign($)}else m()}}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",this.submit),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",this.submit),super.connectedCallback(),this.api=new Oe(this.getApiConfiguration())}submitNativeForm(){const r=ue.getClosestForm(this);if(!r)return;const t=this.getAncestorAttributeValue("formDataProvider"),s=N.get(t).get();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 g`<div ?data-disabled=${this.disabled}><slot></slot></div>`}};Zt.styles=P`
1246
+ `}};it.instanceCounter=0,gt([l({type:Array})],it.prototype,"templates",2),gt([l({type:Object})],it.prototype,"itemPropertyMap",2),gt([l()],it.prototype,"cache",2),gt([l()],it.prototype,"targetRequestDuration",2),gt([l()],it.prototype,"limit",2),gt([l()],it.prototype,"lazyBoundsRatio",2),gt([l()],it.prototype,"offset",2),gt([l()],it.prototype,"resultCount",2),gt([l({type:Boolean})],it.prototype,"noLazyload",2),gt([l({type:String})],it.prototype,"loader",2),gt([l()],it.prototype,"filteredFields",2),gt([l({type:String})],it.prototype,"dataProviderExpression",2),gt([l({type:String})],it.prototype,"idKey",2),it=gt([w(Qa)],it);var Xa=Object.defineProperty,Ja=Object.getOwnPropertyDescriptor,ze=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ja(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&&Xa(t,s,e),e};const tl="sonic-submit";let Qt=class extends Q(_){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 v;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,t.isFormValid,this.hasAttribute("native")){this.submitNativeForm();return}const i=((v=this.getAttribute("method"))==null?void 0:v.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;nt.show();const m=async()=>{var f,y,C,O,E,B,W,Ot;if(e)h=await((f=this.api)==null?void 0:f.submitFormData(p,o,i,c));else switch(i){case"put":h=await((y=this.api)==null?void 0:y.put(p,o,c));break;case"patch":h=await((C=this.api)==null?void 0:C.patch(p,o,c));break;case"delete":h=await((O=this.api)==null?void 0:O.delete(p,o,c));break;case"get":const Xs=new URLSearchParams;if(o)for(const Oo in o)Xs.append(Oo,o[Oo]);const Dd="?"+Xs.toString();h=await((E=this.api)==null?void 0:E.get(p+Dd,c));break;default:h=await((B=this.api)==null?void 0:B.post(p,o,c));break}nt.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 P=this.getAncestorAttributeValue("clearedDataOnSuccess");P&&P.split(" ").forEach(Xs=>N.get(Xs).set({}));const S=this.hasAttribute("usernameKey")?this.getAttribute("usernameKey"):"username",D=this.hasAttribute("passwordKey")?this.getAttribute("passwordKey"):"password";(Ot=(W=this.api)==null?void 0:W.lastResult)!=null&&Ot.ok&&o[S]&&o[D]&&this.saveCredentials(o[S],o[D]),this.submitResultKey&&(h=J.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}))},b=a!=null&&a.needsCaptchaValidation.get()?a:t.needsCaptchaValidation.get()?t:null;if(b){b.captchaMethod=i,b.captchaAction=(d==null?void 0:d.split("?")[0])??this.getAncestorAttributeValue("formDataProvider")??"submit",b.captchaToken="request_token";const P=S=>{S&&S!="request_token"&&(m(),b.captchaToken.offAssign(P))};b.captchaToken.onAssign(P)}else m()}}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",this.submit),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",this.submit),super.connectedCallback(),this.api=new Te(this.getApiConfiguration())}submitNativeForm(){const r=fe.getClosestForm(this);if(!r)return;const t=this.getAncestorAttributeValue("formDataProvider"),s=N.get(t).get();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 g`<div ?data-disabled=${this.disabled}><slot></slot></div>`}};Qt.styles=$`
1222
1247
  [data-disabled] {
1223
1248
  opacity: 0.3;
1224
1249
  pointer-events: none;
1225
1250
  user-select: none;
1226
1251
  }
1227
- `,Le([l({type:String})],Zt.prototype,"submitResultKey",2),Le([l({type:Boolean})],Zt.prototype,"disabled",2),Le([l({type:String})],Zt.prototype,"endPoint",2),Le([l()],Zt.prototype,"name",2),Le([l()],Zt.prototype,"value",2),Zt=Le([_(ia)],Zt);var ra=Object.defineProperty,oa=Object.getOwnPropertyDescriptor,pi=(r,t,s,i)=>{for(var e=i>1?void 0:i?oa(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&&ra(t,s,e),e};const na="sonic-router";let As=class extends Ke(w){constructor(){super(...arguments),this.templateValueAttribute="data-route",this._location=document.location.href.replace(document.location.origin,"")}createRenderRoot(){return this}connectedCallback(){rt.onChange(this),super.connectedCallback()}disconnectedCallback(){rt.offChange(this),super.disconnectedCallback()}set location(r){this._location=r,this.requestUpdate()}get location(){return this._location}render(){const r=[];for(const t of this.templatePartsList){const s=t.getAttribute(this.templateValueAttribute)||"";if(new RegExp(s).test(this.location))r.push(t);else try{new pe("(/)*"+s+"*").match(this.location)&&(t.setAttribute("mode","patternMatching"),r.push(t))}catch{this.location.indexOf(s.replace(document.location.origin,""))!=-1&&r.push(t)}}if(r.length==0){this.fallBackRoute&&this.isConnected&&(document.location.href=this.fallBackRoute);const t=this.templatePartsList.find(s=>s.hasAttribute("data-fallback"));t&&r.push(t)}return g`${ys(r,(t,s)=>s+new Date().getTime(),t=>{var s;if(t.title&&(document.title=t.title),t.hasAttribute("dataProviderExpression")){let i="";const e=t.getAttribute("dataProviderExpression")||"";if(t.getAttribute("mode")=="patternMatching"){const o=new pe("(/)*"+(t.getAttribute(this.templateValueAttribute)||"")+"*");i=new pe(e).stringify(o.match(this.location))}else{const o=new RegExp(t.getAttribute(this.templateValueAttribute)||""),n=(this.location+"").match(o);n&&(i=((s=n.shift())==null?void 0:s.replace(o,e))||"")}return g`<div
1252
+ `,ze([l({type:String})],Qt.prototype,"submitResultKey",2),ze([l({type:Boolean})],Qt.prototype,"disabled",2),ze([l({type:String})],Qt.prototype,"endPoint",2),ze([l()],Qt.prototype,"name",2),ze([l()],Qt.prototype,"value",2),Qt=ze([w(tl)],Qt);var el=Object.defineProperty,sl=Object.getOwnPropertyDescriptor,Li=(r,t,s,i)=>{for(var e=i>1?void 0:i?sl(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&&el(t,s,e),e};const il="sonic-router";let Vs=class extends Xe(_){constructor(){super(...arguments),this.templateValueAttribute="data-route",this._location=document.location.href.replace(document.location.origin,"")}createRenderRoot(){return this}connectedCallback(){ot.onChange(this),super.connectedCallback()}disconnectedCallback(){ot.offChange(this),super.disconnectedCallback()}set location(r){this._location=r,this.requestUpdate()}get location(){return this._location}render(){const r=[];for(const t of this.templatePartsList){const s=t.getAttribute(this.templateValueAttribute)||"";if(new RegExp(s).test(this.location))r.push(t);else try{new ue("(/)*"+s+"*").match(this.location)&&(t.setAttribute("mode","patternMatching"),r.push(t))}catch{this.location.indexOf(s.replace(document.location.origin,""))!=-1&&r.push(t)}}if(r.length==0){this.fallBackRoute&&this.isConnected&&(document.location.href=this.fallBackRoute);const t=this.templatePartsList.find(s=>s.hasAttribute("data-fallback"));t&&r.push(t)}return g`${ks(r,(t,s)=>s+new Date().getTime(),t=>{var s;if(t.title&&(document.title=t.title),t.hasAttribute("dataProviderExpression")){let i="";const e=t.getAttribute("dataProviderExpression")||"";if(t.getAttribute("mode")=="patternMatching"){const o=new ue("(/)*"+(t.getAttribute(this.templateValueAttribute)||"")+"*");i=new ue(e).stringify(o.match(this.location))}else{const o=new RegExp(t.getAttribute(this.templateValueAttribute)||""),n=(this.location+"").match(o);n&&(i=((s=n.shift())==null?void 0:s.replace(o,e))||"")}return g`<div
1228
1253
  style="display:contents"
1229
1254
  dataProvider="${i}"
1230
1255
  >
1231
- ${Lt(t)}
1232
- </div>`}return Lt(t)})}`}};pi([l({type:String})],As.prototype,"fallBackRoute",2),pi([l()],As.prototype,"location",1),As=pi([_(na)],As);var aa=Object.defineProperty,la=Object.getOwnPropertyDescriptor,ca=(r,t,s,i)=>{for(var e=i>1?void 0:i?la(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&&aa(t,s,e),e};const ha="sonic-redirect";let kr=class extends G(w){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")){rt.changeFromComponent(this);return}if(!this.props)return;const r=this.getAttribute("onData").split("."),t=J.traverse(this.props,r);t&&!(J.isObject(t)&&t)&&rt.changeFromComponent(this)}};kr=ca([_(ha)],kr);var da=Object.defineProperty,pa=Object.getOwnPropertyDescriptor,ui=(r,t,s,i)=>{for(var e=i>1?void 0:i?pa(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&&da(t,s,e),e};const ua="sonic-states";let Ss=class extends G(Ke(w)){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()}render(){const r=[];let t=this.state;(!Array.isArray(t)&&J.isObject(t)||t===void 0)&&(t="");for(const s of this.templatePartsList){let i=s.getAttribute(this.templateValueAttribute),e=t;if(this.inverted&&(e=i,i=t),i==""&&(i=this.inverted?".*?":"^$"),new RegExp(i).test(e+""))r.push(s),s.removeAttribute("mode");else{const n=new pe(i);n.names.length>0&&n.match(e)&&(s.setAttribute("mode","patternMatching"),r.push(s))}}return g`${ys(r,(s,i)=>i+new Date().getTime(),s=>{var i;if(s.title&&(document.title=s.title),s.hasAttribute("dataProviderExpression")){const e=s.getAttribute("dataProviderExpression");let o="",n=t,a=s.getAttribute(this.templateValueAttribute);if(this.inverted&&(n=a,a=t),a==""&&(a=this.inverted?"*":"^$"),s.getAttribute("mode")=="patternMatching"){const c=new pe(a);o=new pe(e).stringify(c.match(n))}else{const c=new RegExp(a),h=(n+"").match(c);h&&(o=(i=h.shift())==null?void 0:i.replace(c,e))}return g`<div
1256
+ ${Nt(t)}
1257
+ </div>`}return Nt(t)})}`}};Li([l({type:String})],Vs.prototype,"fallBackRoute",2),Li([l()],Vs.prototype,"location",1),Vs=Li([w(il)],Vs);var rl=Object.defineProperty,ol=Object.getOwnPropertyDescriptor,nl=(r,t,s,i)=>{for(var e=i>1?void 0:i?ol(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&&rl(t,s,e),e};const al="sonic-redirect";let po=class extends Q(_){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")){ot.changeFromComponent(this);return}if(!this.props)return;const r=this.getAttribute("onData").split("."),t=J.traverse(this.props,r);t&&!(J.isObject(t)&&t)&&ot.changeFromComponent(this)}};po=nl([w(al)],po);var ll=Object.defineProperty,cl=Object.getOwnPropertyDescriptor,Ei=(r,t,s,i)=>{for(var e=i>1?void 0:i?cl(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&&ll(t,s,e),e};const hl="sonic-states";let Hs=class extends Q(Xe(_)){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()}render(){const r=[];let t=this.state;(!Array.isArray(t)&&J.isObject(t)||t===void 0)&&(t="");for(const s of this.templatePartsList){let i=s.getAttribute(this.templateValueAttribute),e=t;if(this.inverted&&(e=i,i=t),i==""&&(i=this.inverted?".*?":"^$"),new RegExp(i).test(e+""))r.push(s),s.removeAttribute("mode");else{const n=new ue(i);n.names.length>0&&n.match(e)&&(s.setAttribute("mode","patternMatching"),r.push(s))}}return g`${ks(r,(s,i)=>i+new Date().getTime(),s=>{var i;if(s.title&&(document.title=s.title),s.hasAttribute("dataProviderExpression")){const e=s.getAttribute("dataProviderExpression");let o="",n=t,a=s.getAttribute(this.templateValueAttribute);if(this.inverted&&(n=a,a=t),a==""&&(a=this.inverted?"*":"^$"),s.getAttribute("mode")=="patternMatching"){const c=new ue(a);o=new ue(e).stringify(c.match(n))}else{const c=new RegExp(a),h=(n+"").match(c);h&&(o=(i=h.shift())==null?void 0:i.replace(c,e))}return g`<div
1233
1258
  style="display:contents"
1234
1259
  dataProvider="${o}"
1235
1260
  >
1236
- ${Lt(s)}
1237
- </div>`}return Lt(s)})}`}};ui([l()],Ss.prototype,"state",2),ui([l({type:Boolean,reflect:!0})],Ss.prototype,"inverted",2),Ss=ui([_(ua)],Ss);var fa=Object.defineProperty,ga=Object.getOwnPropertyDescriptor,ma=(r,t,s,i)=>{for(var e=i>1?void 0:i?ga(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&&fa(t,s,e),e};const ba="sonic-scope";let Lr=class extends w{createRenderRoot(){return this}render(){return g`<slot></slot>`}};Lr=ma([_(ba)],Lr);var va=Object.defineProperty,ya=Object.getOwnPropertyDescriptor,Er=(r,t,s,i)=>{for(var e=i>1?void 0:i?ya(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&&va(t,s,e),e};const wa="sonic-example";let fi=class extends G(w){constructor(){super(...arguments),this.text="Example"}render(){return g`<div>${this.text}</div>`}};Er([l()],fi.prototype,"text",2),fi=Er([_(wa)],fi);const _a={checkbox:{tagName:"sonic-checkbox"},date:{tagName:"sonic-input",attributes:{type:"date"}},fieldset:{tagName:"sonic-fieldset",nodes:[{libraryKey:"formLayout"}],contentElementSelector:"sonic-form-layout"},managed_file:{tagName:"sonic-input",attributes:{variant:"ghost",type:"file"}},password:{tagName:"sonic-input",attributes:{type:"password"}},radio:{tagName:"sonic-radio"},select:{tagName:"sonic-select"},textarea:{tagName:"sonic-textarea"},textfield:{tagName:"sonic-input",attributes:{type:"text"}},hidden:{tagName:"sonic-input",attributes:{type:"hidden"}},button:{tagName:"sonic-button"},form:{tagName:"sonic-submit",attributes:{onEnterKey:!0}},submit:{tagName:"sonic-submit",attributes:{onClick:!0},contentElementSelector:"sonic-button",nodes:[{libraryKey:"button",attributes:{type:"success"},nodes:[{tagName:"sonic-icon",attributes:{name:"check",slot:"prefix"}}]}]},email:{tagName:"sonic-input",attributes:{type:"email"}},formItemContainer:{tagName:"div",attributes:{class:"form-item-container"}},formLayout:{tagName:"sonic-form-layout"},formActions:{tagName:"sonic-form-actions"},passwordHelper:{tagName:"sonic-password-helper"},sameValueHelper:{tagName:"sonic-same-value-helper"},divider:{tagName:"sonic-divider"}};class xa{async transform(t,s){if(this.sduiDescriptor=t,this.sduiDescriptor.library)for(const i in s.library)this.sduiDescriptor.library[i]=s.library[i];for(const i of s.transforms)this.transformAction(i)}transformAction(t){const s=this.getNodesMatchingPatterns(t.patterns,this.sduiDescriptor);this[t.action](t,s)}getNodesMatchingPatterns(t,s){if(!t)return[];if(!s)return[];const i=s.nodes;if(!i)return[];let e=[],o=0;for(const n of t)for(const a of i)this.nodeMatchesPattern(n,a)&&e.push({parent:s,child:a,index:o}),e=e.concat(this.getNodesMatchingPatterns([n],a)),o++;return e}stringMatchesExpression(t,s){return!s||t&&t.match(s)}nodeMatchesPattern(t,s){const i=t,e=s,o=["libraryKey","innerHTML","prefix","suffix","markup"];for(const c of o)if(!this.stringMatchesExpression(e[c],i[c]))return!1;const n=t.attributes,a=s.attributes;if(n&&!a)return!1;if(n){for(const c in n)if(!a||!this.stringMatchesExpression(a[c],n[c]))return!1}return!0}unwrap(t,s){var i,e;for(const o of s)(i=o.parent.nodes)==null||i.splice(o.parent.nodes.indexOf(o.child),1),o.child.nodes&&((e=o.parent.nodes)==null||e.splice(o.parent.nodes.indexOf(o.child),0,...o.child.nodes))}wrap(t,s){var n,a,c,h,d,f;const i={...t.ui};i.nodes||(i.nodes=[]);let e=0;for(const m of s)(n=i.nodes)==null||n.push(m.child),e>0&&((a=m.parent.nodes)==null||a.splice(m.parent.nodes.indexOf(m.child),1)),e++;const o=(h=(c=s[0])==null?void 0:c.parent.nodes)==null?void 0:h.indexOf(s[0].child);o&&((d=s[0].parent.nodes)==null||d.splice(o,1),(f=s[0].parent.nodes)==null||f.splice(o,0,i))}move(t,s){var i,e;for(const o of s){(i=o.parent.nodes)==null||i.splice(o.parent.nodes.indexOf(o.child),1);let n=[];t.after&&(n=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor)),t.before&&(n=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor));const a=n[0];a&&((e=a.parent.nodes)==null||e.splice(a.parent.nodes.indexOf(a.child)+(t.after?1:0),0,o.child))}}remap(t,s){var i,e,o;for(const n of s){const a={...t.ui};a.attributes||(a.attributes={});const c=n.child.attributes;if(c)for(const v in c)Object.prototype.hasOwnProperty.call(a.attributes,"key")||(a.attributes[v]=c[v]);const h=["libraryKey","innerHTML","prefix","suffix","markup"],d=n.child,f=a;for(const v of h)!Object.prototype.hasOwnProperty.call(a,v)&&d[v]&&(f[v]=d[v]);a.nodes||(a.nodes=[]);const m=n.child.nodes;if(m)for(const v of m)a.nodes.push(v);const b=((i=n.parent.nodes)==null?void 0:i.indexOf(n.child))||-1;b!=-1&&((e=n.parent.nodes)==null||e.splice(b,1),(o=n.parent.nodes)==null||o.splice(b,0,a))}}delete(t,s){var i;for(const e of s)(i=e.parent.nodes)==null||i.splice(e.parent.nodes.indexOf(e.child),1)}insert(t,s){var o;const i=t.after?"after":t.before?"before":"in";s=[],t.after?s=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor):t.before?s=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor):t.in&&(s=this.getNodesMatchingPatterns([t.in],this.sduiDescriptor));const e=s[0];e&&(i=="in"?(e.child.nodes||(e.child.nodes=[]),e.child.nodes.push({...t.ui})):(o=e.parent.nodes)==null||o.splice(e.parent.nodes.indexOf(e.child)+(i=="after"?1:0),0,{...t.ui}))}}var Pa=Object.defineProperty,$a=Object.getOwnPropertyDescriptor,gi=(r,t,s,i)=>{for(var e=i>1?void 0:i?$a(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-sdui";let Os=class extends Pr(Kt(w)){constructor(){super(...arguments),this.sduiDescriptor={}}connectedCallback(){this.noShadowDom="",this.displayContents=!0,this.isFetchEnabled=this.hasAttribute("fetch"),super.connectedCallback()}willUpdate(r){this.props==null&&(this.sduiDescriptor={});{const t=this.sduiKey?this.props[this.sduiKey]:this.props;if(this.sduiDescriptor==t)return;this.sduiDescriptor=t,this.updateContents()}super.willUpdate(r)}async updateContents(){if(!this.sduiDescriptor)return;const r={};Object.assign(r,_a,this.sduiDescriptor.library),this.sduiDescriptor.library=r,this.loadAssets(),await this.loadLibrary(),await this.transformSDUIDescriptor(),this.parseRootNodes()}removeChildren(){for(;[...this.children].filter(r=>r.nodeName!="SLOT").length>0;)this.removeChild(this.children[0])}loadAssets(){if(this.sduiDescriptor){if(this.sduiDescriptor.js)for(const r of this.sduiDescriptor.js)ue.loadJS(r);if(this.sduiDescriptor.css)for(const r of this.sduiDescriptor.css)ue.loadCSS(r)}}async transformSDUIDescriptor(){if(!this.hasAttribute("transformation"))return;const t=await(await fetch(this.getAttribute("transformation"))).json();await new xa().transform(this.sduiDescriptor,t)}async loadLibrary(){if(!this.hasAttribute("library"))return;const t=await(await fetch(this.getAttribute("library"))).json();this.sduiDescriptor.library=t}parseRootNodes(){if(this.removeChildren(),!this.sduiDescriptor)return;let r=this.sduiDescriptor.nodes;r||(r=[]);const t={tagName:"sonic-toast-message-subscriber",attributes:{}};this.messagesKey&&(t.attributes={subDataProvider:this.messagesKey}),r.push(t),r.forEach(s=>this.appendChild(this.parseChild(s)))}parseChild(r){const t=r.tagName||"div";let{element:s,contentElement:i}=this.handleLibrary(r,t);return this.handleAttributes(r,s),s=this.handleMarkup(r,s),i||(i=s),this.handleChildNodes(r,i,s),this.handleInnerHTML(r,i),r.prefix||r.suffix?this.handlePrefixSuffix(r,s):s}handlePrefixSuffix(r,t){const s=document.createElement("div");return s.innerHTML=(r.prefix||"")+t.outerHTML+(r.suffix||""),s.style.display="contents",s}handleChildNodes(r,t,s){if(r.nodes){const i=r.nodes;for(const e of i){const o=this.parseChild(e);let n=t;e.parentElementSelector&&(n=s.querySelector(e.parentElementSelector)||t),n.shadowRoot?n.shadowRoot.appendChild(o):n.tagName.toLocaleLowerCase()=="template"?n.content.appendChild(o):n.appendChild(o)}}}handleLibrary(r,t){let s,i;if(r.libraryKey&&this.sduiDescriptor.library){s=this.parseChild(this.sduiDescriptor.library[r.libraryKey]||{tagName:"div"});const e=(this.sduiDescriptor.library[r.libraryKey]||{}).contentElementSelector;e&&(i=s.querySelector(e))}else s=document.createElement(t);return{element:s,contentElement:i}}handleAttributes(r,t){const s=r.attributes;for(const i in s){const e=s[i],o=Ye.isObject(e)?JSON.stringify(e):e;t.setAttribute(i,o)}}handleMarkup(r,t){return r.markup&&(t=document.createElement("div"),t.style.display="contents",t.innerHTML=r.markup),t}handleInnerHTML(r,t){var s;if(r.innerHTML)if(r.innerHTML.indexOf("wording_")!=-1){const i=this.getAncestorAttributeValue("wordingProvider");(s=this.api)==null||s.post(i,{labels:[r.innerHTML.substring(8)]}).then(e=>{t&&(t.innerHTML+=e)})}else t&&(t.innerHTML+=r.innerHTML)}};gi([l()],Os.prototype,"sduiKey",2),gi([l()],Os.prototype,"messagesKey",2),Os=gi([_(Ca)],Os);var Aa=Object.defineProperty,Sa=Object.getOwnPropertyDescriptor,Nr=(r,t,s,i)=>{for(var e=i>1?void 0:i?Sa(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&&Aa(t,s,e),e};let Ds=class extends Kt(w){constructor(){super(...arguments),this._composition={},this.listeners=[]}get composition(){return this._composition}set composition(r){this._composition=r,this.updateComposition()}connectedCallback(){super.connectedCallback(),this.updateComposition()}disconnectedCallback(){this.removePublisherListeners(),super.disconnectedCallback()}updateComposition(){this.removePublisherListeners(),this.publisher&&(this.publisher.set({}),this.parseComposition(this.composition,this.publisher))}removePublisherListeners(){const r=this.listeners;this.listeners=[],r.forEach(t=>{this.publisher.offAssign(t.subscriber)})}parseComposition(r,t){if(r)for(const s in r){const i=r[s];if(typeof i=="string"){const e=i.split("."),o=e.shift();if(!o)continue;let n=et.get(o);n=Ye.traverse(n,e);const a={publisher:n,subscriber:c=>{t[s]=c}};this.listeners.push(a),n.onAssign(a.subscriber),t._proxies_.set(s,n)}else{this.publisher[s]={};const e=new zs({},t);t._proxies_.set(s,e);const o={publisher:e,subscriber:n=>{t[s]=n}};this.listeners.push(o),e.onAssign(o.subscriber),this.parseComposition(i,e)}}}render(){return g`<slot></slot>`}};Ds.styles=[P`
1261
+ ${Nt(s)}
1262
+ </div>`}return Nt(s)})}`}};Ei([l()],Hs.prototype,"state",2),Ei([l({type:Boolean,reflect:!0})],Hs.prototype,"inverted",2),Hs=Ei([w(hl)],Hs);var dl=Object.defineProperty,pl=Object.getOwnPropertyDescriptor,ul=(r,t,s,i)=>{for(var e=i>1?void 0:i?pl(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&&dl(t,s,e),e};const fl="sonic-scope";let uo=class extends _{createRenderRoot(){return this}render(){return g`<slot></slot>`}};uo=ul([w(fl)],uo);var gl=Object.defineProperty,ml=Object.getOwnPropertyDescriptor,fo=(r,t,s,i)=>{for(var e=i>1?void 0:i?ml(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&&gl(t,s,e),e};const bl="sonic-example";let Ni=class extends Q(_){constructor(){super(...arguments),this.text="Example"}render(){return g`<div>${this.text}</div>`}};fo([l()],Ni.prototype,"text",2),Ni=fo([w(bl)],Ni);const vl={checkbox:{tagName:"sonic-checkbox"},date:{tagName:"sonic-input",attributes:{type:"date"}},fieldset:{tagName:"sonic-fieldset",nodes:[{libraryKey:"formLayout"}],contentElementSelector:"sonic-form-layout"},managed_file:{tagName:"sonic-input",attributes:{variant:"ghost",type:"file"}},password:{tagName:"sonic-input",attributes:{type:"password"}},radio:{tagName:"sonic-radio"},select:{tagName:"sonic-select"},textarea:{tagName:"sonic-textarea"},textfield:{tagName:"sonic-input",attributes:{type:"text"}},hidden:{tagName:"sonic-input",attributes:{type:"hidden"}},button:{tagName:"sonic-button"},form:{tagName:"sonic-submit",attributes:{onEnterKey:!0}},submit:{tagName:"sonic-submit",attributes:{onClick:!0},contentElementSelector:"sonic-button",nodes:[{libraryKey:"button",attributes:{type:"success"},nodes:[{tagName:"sonic-icon",attributes:{name:"check",slot:"prefix"}}]}]},email:{tagName:"sonic-input",attributes:{type:"email"}},formItemContainer:{tagName:"div",attributes:{class:"form-item-container"}},formLayout:{tagName:"sonic-form-layout"},formActions:{tagName:"sonic-form-actions"},passwordHelper:{tagName:"sonic-password-helper"},sameValueHelper:{tagName:"sonic-same-value-helper"},divider:{tagName:"sonic-divider"}};class yl{async transform(t,s){if(this.sduiDescriptor=t,this.sduiDescriptor.library)for(const i in s.library)this.sduiDescriptor.library[i]=s.library[i];for(const i of s.transforms)this.transformAction(i)}transformAction(t){const s=this.getNodesMatchingPatterns(t.patterns,this.sduiDescriptor);this[t.action](t,s)}getNodesMatchingPatterns(t,s){if(!t)return[];if(!s)return[];const i=s.nodes;if(!i)return[];let e=[],o=0;for(const n of t)for(const a of i)this.nodeMatchesPattern(n,a)&&e.push({parent:s,child:a,index:o}),e=e.concat(this.getNodesMatchingPatterns([n],a)),o++;return e}stringMatchesExpression(t,s){return!s||t&&t.match(s)}nodeMatchesPattern(t,s){const i=t,e=s,o=["libraryKey","innerHTML","prefix","suffix","markup"];for(const c of o)if(!this.stringMatchesExpression(e[c],i[c]))return!1;const n=t.attributes,a=s.attributes;if(n&&!a)return!1;if(n){for(const c in n)if(!a||!this.stringMatchesExpression(a[c],n[c]))return!1}return!0}unwrap(t,s){var i,e;for(const o of s)(i=o.parent.nodes)==null||i.splice(o.parent.nodes.indexOf(o.child),1),o.child.nodes&&((e=o.parent.nodes)==null||e.splice(o.parent.nodes.indexOf(o.child),0,...o.child.nodes))}wrap(t,s){var n,a,c,h,d,p;const i={...t.ui};i.nodes||(i.nodes=[]);let e=0;for(const m of s)(n=i.nodes)==null||n.push(m.child),e>0&&((a=m.parent.nodes)==null||a.splice(m.parent.nodes.indexOf(m.child),1)),e++;const o=(h=(c=s[0])==null?void 0:c.parent.nodes)==null?void 0:h.indexOf(s[0].child);o&&((d=s[0].parent.nodes)==null||d.splice(o,1),(p=s[0].parent.nodes)==null||p.splice(o,0,i))}move(t,s){var i,e;for(const o of s){(i=o.parent.nodes)==null||i.splice(o.parent.nodes.indexOf(o.child),1);let n=[];t.after&&(n=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor)),t.before&&(n=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor));const a=n[0];a&&((e=a.parent.nodes)==null||e.splice(a.parent.nodes.indexOf(a.child)+(t.after?1:0),0,o.child))}}remap(t,s){var i,e,o;for(const n of s){const a={...t.ui};a.attributes||(a.attributes={});const c=n.child.attributes;if(c)for(const v in c)Object.prototype.hasOwnProperty.call(a.attributes,"key")||(a.attributes[v]=c[v]);const h=["libraryKey","innerHTML","prefix","suffix","markup"],d=n.child,p=a;for(const v of h)!Object.prototype.hasOwnProperty.call(a,v)&&d[v]&&(p[v]=d[v]);a.nodes||(a.nodes=[]);const m=n.child.nodes;if(m)for(const v of m)a.nodes.push(v);const b=((i=n.parent.nodes)==null?void 0:i.indexOf(n.child))||-1;b!=-1&&((e=n.parent.nodes)==null||e.splice(b,1),(o=n.parent.nodes)==null||o.splice(b,0,a))}}delete(t,s){var i;for(const e of s)(i=e.parent.nodes)==null||i.splice(e.parent.nodes.indexOf(e.child),1)}insert(t,s){var o;const i=t.after?"after":t.before?"before":"in";s=[],t.after?s=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor):t.before?s=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor):t.in&&(s=this.getNodesMatchingPatterns([t.in],this.sduiDescriptor));const e=s[0];e&&(i=="in"?(e.child.nodes||(e.child.nodes=[]),e.child.nodes.push({...t.ui})):(o=e.parent.nodes)==null||o.splice(e.parent.nodes.indexOf(e.child)+(i=="after"?1:0),0,{...t.ui}))}}var _l=Object.defineProperty,wl=Object.getOwnPropertyDescriptor,Ti=(r,t,s,i)=>{for(var e=i>1?void 0:i?wl(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&&_l(t,s,e),e};const $l="sonic-sdui";let Bs=class extends ro(Zt(_)){constructor(){super(...arguments),this.sduiDescriptor={}}connectedCallback(){this.noShadowDom="",this.displayContents=!0,this.isFetchEnabled=this.hasAttribute("fetch"),super.connectedCallback()}willUpdate(r){this.props==null&&(this.sduiDescriptor={});{const t=this.sduiKey?this.props[this.sduiKey]:this.props;if(this.sduiDescriptor==t)return;this.sduiDescriptor=t,this.updateContents()}super.willUpdate(r)}async updateContents(){if(!this.sduiDescriptor)return;const r={};Object.assign(r,vl,this.sduiDescriptor.library),this.sduiDescriptor.library=r,this.loadAssets(),await this.loadLibrary(),await this.transformSDUIDescriptor(),this.parseRootNodes()}removeChildren(){for(;[...this.children].filter(r=>r.nodeName!="SLOT").length>0;)this.removeChild(this.children[0])}loadAssets(){if(this.sduiDescriptor){if(this.sduiDescriptor.js)for(const r of this.sduiDescriptor.js)fe.loadJS(r);if(this.sduiDescriptor.css)for(const r of this.sduiDescriptor.css)fe.loadCSS(r)}}async transformSDUIDescriptor(){if(!this.hasAttribute("transformation"))return;const t=await(await fetch(this.getAttribute("transformation"))).json();await new yl().transform(this.sduiDescriptor,t)}async loadLibrary(){if(!this.hasAttribute("library"))return;const t=await(await fetch(this.getAttribute("library"))).json();this.sduiDescriptor.library=t}parseRootNodes(){if(this.removeChildren(),!this.sduiDescriptor)return;let r=this.sduiDescriptor.nodes;r||(r=[]);const t={tagName:"sonic-toast-message-subscriber",attributes:{}};this.messagesKey&&(t.attributes={subDataProvider:this.messagesKey}),r.push(t),r.forEach(s=>this.appendChild(this.parseChild(s)))}parseChild(r){const t=r.tagName||"div";let{element:s,contentElement:i}=this.handleLibrary(r,t);return this.handleAttributes(r,s),s=this.handleMarkup(r,s),i||(i=s),this.handleChildNodes(r,i,s),this.handleInnerHTML(r,i),r.prefix||r.suffix?this.handlePrefixSuffix(r,s):s}handlePrefixSuffix(r,t){const s=document.createElement("div");return s.innerHTML=(r.prefix||"")+t.outerHTML+(r.suffix||""),s.style.display="contents",s}handleChildNodes(r,t,s){if(r.nodes){const i=r.nodes;for(const e of i){const o=this.parseChild(e);let n=t;e.parentElementSelector&&(n=s.querySelector(e.parentElementSelector)||t),n.shadowRoot?n.shadowRoot.appendChild(o):n.tagName.toLocaleLowerCase()=="template"?n.content.appendChild(o):n.appendChild(o)}}}handleLibrary(r,t){let s,i;if(r.libraryKey&&this.sduiDescriptor.library){s=this.parseChild(this.sduiDescriptor.library[r.libraryKey]||{tagName:"div"});const e=(this.sduiDescriptor.library[r.libraryKey]||{}).contentElementSelector;e&&(i=s.querySelector(e))}else s=document.createElement(t);return{element:s,contentElement:i}}handleAttributes(r,t){const s=r.attributes;for(const i in s){const e=s[i],o=Je.isObject(e)?JSON.stringify(e):e;t.setAttribute(i,o)}}handleMarkup(r,t){return r.markup&&(t=document.createElement("div"),t.style.display="contents",t.innerHTML=r.markup),t}handleInnerHTML(r,t){var s;if(r.innerHTML)if(r.innerHTML.indexOf("wording_")!=-1){const i=this.getAncestorAttributeValue("wordingProvider");(s=this.api)==null||s.post(i,{labels:[r.innerHTML.substring(8)]}).then(e=>{t&&(t.innerHTML+=e)})}else t&&(t.innerHTML+=r.innerHTML)}};Ti([l()],Bs.prototype,"sduiKey",2),Ti([l()],Bs.prototype,"messagesKey",2),Bs=Ti([w($l)],Bs);var xl=Object.defineProperty,Pl=Object.getOwnPropertyDescriptor,go=(r,t,s,i)=>{for(var e=i>1?void 0:i?Pl(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&&xl(t,s,e),e};let qs=class extends Zt(_){constructor(){super(...arguments),this._composition={},this.listeners=[]}get composition(){return this._composition}set composition(r){this._composition=r,this.updateComposition()}connectedCallback(){super.connectedCallback(),this.updateComposition()}disconnectedCallback(){this.removePublisherListeners(),super.disconnectedCallback()}updateComposition(){this.removePublisherListeners(),this.publisher&&(this.publisher.set({}),this.parseComposition(this.composition,this.publisher))}removePublisherListeners(){const r=this.listeners;this.listeners=[],r.forEach(t=>{this.publisher.offAssign(t.subscriber)})}parseComposition(r,t){if(r)for(const s in r){const i=r[s];if(typeof i=="string"){const e=i.split("."),o=e.shift();if(!o)continue;let n=st.get(o);n=Je.traverse(n,e);const a={publisher:n,subscriber:c=>{t[s]=c}};this.listeners.push(a),n.onAssign(a.subscriber),t._proxies_.set(s,n)}else{this.publisher[s]={};const e=new ei({},t);t._proxies_.set(s,e);const o={publisher:e,subscriber:n=>{t[s]=n}};this.listeners.push(o),e.onAssign(o.subscriber),this.parseComposition(i,e)}}}render(){return g`<slot></slot>`}};qs.styles=[$`
1238
1263
  :host {
1239
1264
  display: contents;
1240
1265
  }
1241
- `],Nr([l({type:Object})],Ds.prototype,"composition",1),Ds=Nr([_("sonic-mix")],Ds);var Oa=Object.defineProperty,Da=Object.getOwnPropertyDescriptor,ka=(r,t,s,i)=>{for(var e=i>1?void 0:i?Da(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&&Oa(t,s,e),e};const La="sonic-value";let Tr=class extends Kt(w){connectedCallback(){this.setAttribute("subDataProvider",this.getAttribute("key")),super.connectedCallback()}render(){return typeof this.props=="object"||this.props===void 0?g`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`:g`${F(this.props.toString())}<slot name="prefix"></slot><slot></slot
1242
- ><slot name="suffix"></slot>`}};Tr=ka([_(La)],Tr);var Ea=Object.defineProperty,Na=Object.getOwnPropertyDescriptor,Je=(r,t,s,i)=>{for(var e=i>1?void 0:i?Na(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&&Ea(t,s,e),e};const Ta="sonic-badge";let be=class extends w{constructor(){super(...arguments),this.type="default",this.variant="default",this.ellipsis=!1}render(){return g`
1266
+ `],go([l({type:Object})],qs.prototype,"composition",1),qs=go([w("sonic-mix")],qs);var Al=Object.defineProperty,Cl=Object.getOwnPropertyDescriptor,Sl=(r,t,s,i)=>{for(var e=i>1?void 0:i?Cl(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&&Al(t,s,e),e};const Ol="sonic-value";let mo=class extends Zt(_){connectedCallback(){this.setAttribute("subDataProvider",this.getAttribute("key")),super.connectedCallback()}render(){return typeof this.props=="object"||this.props===void 0?g`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`:g`${F(this.props.toString())}<slot name="prefix"></slot><slot></slot
1267
+ ><slot name="suffix"></slot>`}};mo=Sl([w(Ol)],mo);var Dl=Object.defineProperty,kl=Object.getOwnPropertyDescriptor,bo=(r,t,s,i)=>{for(var e=i>1?void 0:i?kl(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&&Dl(t,s,e),e};const Ll="sonic-t";let Mi=class extends _{render(){return this.key?g`${hn(this.key)}`:A}};bo([l({type:String})],Mi.prototype,"key",2),Mi=bo([w(Ll)],Mi);var El=Object.defineProperty,Nl=Object.getOwnPropertyDescriptor,hs=(r,t,s,i)=>{for(var e=i>1?void 0:i?Nl(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&&El(t,s,e),e};const Tl="sonic-badge";let we=class extends _{constructor(){super(...arguments),this.type="default",this.variant="default",this.ellipsis=!1}render(){return g`
1243
1268
  <slot name="prefix"></slot>
1244
1269
  <slot></slot>
1245
1270
  <slot name="suffix"></slot>
1246
- `}};be.styles=[Dt,P`
1271
+ `}};we.styles=[Lt,$`
1247
1272
  :host {
1248
1273
  --sc-badge-gap: 0.3em;
1249
1274
  --sc-badge-py: 0.35em;
1250
1275
  --sc-badge-px: 0.67em;
1251
- --sc-fs: 1rem;
1252
1276
 
1253
- --sc-badge-color: var(--sc-base-content, #1f2937);
1254
- --sc-badge-bg: var(--sc-base-100, #e5e7eb);
1277
+ --sc-badge-color: var(--sc-base-content, #000);
1278
+ --sc-badge-bg: var(--sc-base-100, rgba(0, 0, 0, 0.07));
1255
1279
 
1256
1280
  /*--sc-badge-border-width: var(--sc-form-border-width, 0.1rem);*/
1257
1281
  --sc-badge-border-width: 1px;
@@ -1260,18 +1284,17 @@
1260
1284
  var(--sc-badge-border-color);
1261
1285
 
1262
1286
  --sc-badge-rounded: 0.85em;
1263
- --sc-badge-fw: var(--sc-font-weight-base);
1287
+ --sc-badge-fw: var(--sc-font-weight-base, 400);
1264
1288
 
1265
1289
  display: inline-flex;
1266
1290
  align-items: center;
1267
1291
  box-sizing: border-box;
1268
- line-height: var(--sc-lh);
1292
+ line-height: var(--sc-_lh);
1269
1293
  border-radius: var(--sc-badge-rounded);
1270
1294
 
1271
1295
  background: var(--sc-badge-bg);
1272
1296
  color: var(--sc-badge-color);
1273
-
1274
- font-family: var(--sc-badge-ff, var(--sc-font-family-base, inherit));
1297
+ font-family: var(--sc-badge-ff, var(--sc-font-family-base, sans-serif));
1275
1298
  font-weight: var(--sc-badge-fw);
1276
1299
  line-height: 1;
1277
1300
 
@@ -1279,46 +1302,47 @@
1279
1302
  padding-bottom: var(--sc-badge-py);
1280
1303
  padding-left: var(--sc-badge-px);
1281
1304
  padding-right: var(--sc-badge-px);
1282
- min-height: calc(var(--sc-badge-px) * 2);
1305
+ /**Round pour lissage px */
1306
+ min-height: round(calc(var(--sc-badge-px) * 2), 1px);
1307
+ min-width: round(calc(var(--sc-badge-px) * 2), 1px);
1283
1308
  border: var(--sc-badge-border);
1284
1309
  -webkit-print-color-adjust: exact;
1285
1310
  }
1286
1311
 
1287
1312
  /*TYPES*/
1288
1313
  :host([type="primary"]) {
1289
- --sc-badge-color: var(--sc-primary-content);
1290
- --sc-badge-bg: var(--sc-primary);
1314
+ --sc-badge-color: var(--sc-primary-content, var(--sc-base, #fff));
1315
+ --sc-badge-bg: var(--sc-primary, var(--sc-base-content, #000));
1291
1316
  }
1292
1317
  :host([type="warning"]) {
1293
- --sc-badge-color: var(--sc-warning-content);
1294
- --sc-badge-bg: var(--sc-warning);
1318
+ --sc-badge-color: var(--sc-warning-content, var(--sc-base, #fff));
1319
+ --sc-badge-bg: var(--sc-warning, var(--sc-base-content, #000));
1295
1320
  }
1296
1321
  :host([type="danger"]) {
1297
- --sc-badge-color: var(--sc-danger-content);
1298
- --sc-badge-bg: var(--sc-danger);
1322
+ --sc-badge-color: var(--sc-danger-content, var(--sc-base, #fff));
1323
+ --sc-badge-bg: var(--sc-danger, var(--sc-base-content, #000));
1299
1324
  }
1300
1325
  :host([type="info"]) {
1301
- --sc-badge-color: var(--sc-info-content);
1302
- --sc-badge-bg: var(--sc-info);
1326
+ --sc-badge-color: var(--sc-info-content, var(--sc-base, #fff));
1327
+ --sc-badge-bg: var(--sc-info, var(--sc-base-content, #000));
1303
1328
  }
1304
1329
  :host([type="success"]) {
1305
- --sc-badge-color: var(--sc-success-content);
1306
- --sc-badge-bg: var(--sc-success);
1330
+ --sc-badge-color: var(--sc-success-content, var(--sc-base, #fff));
1331
+ --sc-badge-bg: var(--sc-success, var(--sc-base-content, #000));
1307
1332
  }
1308
1333
  :host([type="neutral"]) {
1309
- --sc-badge-color: var(--sc-base);
1310
- --sc-badge-bg: var(--sc-base-content);
1334
+ --sc-badge-color: var(--sc-base, #fff);
1335
+ --sc-badge-bg: var(--sc-base-content, #000);
1311
1336
  }
1312
1337
 
1313
1338
  :host([contrast]),
1314
1339
  :host([type="contrast"]) {
1315
- --sc-badge-color: var(--sc-contrast-content);
1316
- --sc-badge-bg: var(--sc-contrast);
1340
+ --sc-badge-color: var(--sc-contrast-content, #fff);
1341
+ --sc-badge-bg: var(--sc-contrast, #000);
1317
1342
  }
1318
1343
 
1319
1344
  /*SIZE*/
1320
1345
  :host {
1321
- font-size: var(--sc-fs);
1322
1346
  gap: var(--sc-badge-gap);
1323
1347
  }
1324
1348
 
@@ -1330,7 +1354,7 @@
1330
1354
 
1331
1355
  :host([size="lg"]),
1332
1356
  :host([size="xl"]) {
1333
- --sc-lh: 1.2;
1357
+ --sc-_lh: 1.2;
1334
1358
  --sc-badge-gap: 0.5em;
1335
1359
  }
1336
1360
 
@@ -1343,8 +1367,8 @@
1343
1367
  }
1344
1368
 
1345
1369
  :host([variant="outline"][type="default"]) {
1346
- border-color: var(--sc-base-400);
1347
- color: var(--sc-base-500);
1370
+ border-color: var(--sc-base-content, #000);
1371
+ color: var(--sc-base-content, #000);
1348
1372
  background: transparent;
1349
1373
  }
1350
1374
 
@@ -1384,33 +1408,36 @@
1384
1408
  slot[name="prefix"] {
1385
1409
  flex-shrink: 0;
1386
1410
  }
1387
- `],Je([l({type:String,reflect:!0})],be.prototype,"type",2),Je([l({type:String,reflect:!0})],be.prototype,"variant",2),Je([l({type:String,reflect:!0})],be.prototype,"size",2),Je([l({type:Boolean,reflect:!0})],be.prototype,"ellipsis",2),be=Je([_(Ta)],be);class Ma{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 Ia=Object.defineProperty,ja=Object.getOwnPropertyDescriptor,Ee=(r,t,s,i)=>{for(var e=i>1?void 0:i?ja(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&&Ia(t,s,e),e};const Fa="sonic-link";let Gt=class extends w{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,rt.updateComponentActiveState(this)}connectedCallback(){this.href&&this.href.indexOf("http")!=0&&(rt.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(){rt.offChange(this),super.disconnectedCallback()}set target(r){this._target=r,Ma.fixBlankLink(this),this.requestUpdate()}get target(){return this._target}handlePushState(r){r.preventDefault(),rt.changeFromComponent(this)}updated(r){r.has("href")&&this.setFocusable()}render(){return this.href?g`
1411
+ `],hs([l({type:String,reflect:!0})],we.prototype,"type",2),hs([l({type:String,reflect:!0})],we.prototype,"variant",2),hs([l({type:String,reflect:!0})],we.prototype,"size",2),hs([l({type:Boolean,reflect:!0})],we.prototype,"ellipsis",2),we=hs([w(Tl)],we);class Ml{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 Il=Object.defineProperty,jl=Object.getOwnPropertyDescriptor,Re=(r,t,s,i)=>{for(var e=i>1?void 0:i?jl(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 Fl="sonic-link";let Xt=class extends _{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,ot.updateComponentActiveState(this)}connectedCallback(){this.href&&this.href.indexOf("http")!=0&&(ot.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(){ot.offChange(this),super.disconnectedCallback()}set target(r){this._target=r,Ml.fixBlankLink(this),this.requestUpdate()}get target(){return this._target}handlePushState(r){r.preventDefault(),ot.changeFromComponent(this)}updated(r){r.has("href")&&this.setFocusable()}render(){return this.href?g`
1388
1412
  <a
1389
1413
  href="${this.href}"
1390
- aria-label=${this.ariaLabel||C}
1414
+ aria-label=${this.ariaLabel||A}
1391
1415
  target=${x(this.target)}
1392
1416
  @click=${this.pushState?this.handlePushState:null}
1393
1417
  >
1394
1418
  <slot></slot>
1395
1419
  </a>
1396
- `:g`<slot></slot>`}};Gt.styles=[P`
1420
+ `:g`<slot></slot>`}};Xt.styles=[$`
1397
1421
  a {
1398
1422
  color: inherit;
1399
1423
  text-decoration: none;
1400
1424
  display: contents;
1401
1425
  }
1402
- `],Ee([l({type:String})],Gt.prototype,"href",2),Ee([l({type:String,attribute:"data-aria-label"})],Gt.prototype,"ariaLabel",2),Ee([l({type:String})],Gt.prototype,"autoActive",2),Ee([l({type:String})],Gt.prototype,"target",1),Ee([l({type:Boolean})],Gt.prototype,"pushState",2),Gt=Ee([_(Fa)],Gt);var za=Object.defineProperty,Ra=Object.getOwnPropertyDescriptor,Ne=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ra(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&&za(t,s,e),e};const Ua="sonic-progress";let Qt=class extends w{constructor(){super(...arguments),this.max=100,this.invert=!1,this.type="default"}render(){return g`
1426
+ `],Re([l({type:String})],Xt.prototype,"href",2),Re([l({type:String,attribute:"data-aria-label"})],Xt.prototype,"ariaLabel",2),Re([l({type:String})],Xt.prototype,"autoActive",2),Re([l({type:String})],Xt.prototype,"target",1),Re([l({type:Boolean})],Xt.prototype,"pushState",2),Xt=Re([w(Fl)],Xt);var zl=Object.defineProperty,Rl=Object.getOwnPropertyDescriptor,Ue=(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&&zl(t,s,e),e};const Ul="sonic-progress";let Jt=class extends _{constructor(){super(...arguments),this.max=100,this.invert=!1,this.type="default"}render(){return g`
1403
1427
  <progress value=${x(this.value)} max=${this.max}></progress>
1404
1428
  <div class="slot-container">
1405
1429
  <slot></slot>
1406
1430
  <slot name="remaining"></slot>
1407
1431
  </div>
1408
- `}};Qt.styles=[Dt,P`
1432
+ `}};Jt.styles=[Lt,$`
1409
1433
  :host {
1410
- --sc-progress-bg: var(--sc-input-bg, var(--sc-base-100, #f5f5f5));
1411
- --sc-progress-color: var(--sc-base-content, #1f2937);
1434
+ --sc-progress-bg: var(
1435
+ --sc-input-bg,
1436
+ var(--sc-base-100, rgba(0, 0, 0, 0.07))
1437
+ );
1438
+ --sc-progress-color: var(--sc-base-content, #000);
1412
1439
  --sc-progress-height: 0.6em;
1413
- --sc-progress-fs: var(--sc-fs, 1rem);
1440
+ --sc-progress-fs: var(--sc-_fs, 1rem);
1414
1441
  --sc-progress-fw: 500;
1415
1442
  --sc-progress-rounded: var(--sc-rounded-lg);
1416
1443
  display: block;
@@ -1469,21 +1496,21 @@
1469
1496
 
1470
1497
  /* COLOR TYPES */
1471
1498
  :host([type="warning"]) {
1472
- --sc-progress-color: var(--sc-warning);
1499
+ --sc-progress-color: var(--sc-warning, var(--sc-base-content, #000));
1473
1500
  }
1474
1501
  :host([type="danger"]) {
1475
- --sc-progress-color: var(--sc-danger);
1502
+ --sc-progress-color: var(--sc-danger, var(--sc-base-content, #000));
1476
1503
  }
1477
1504
  :host([type="info"]) {
1478
- --sc-progress-color: var(--sc-info);
1505
+ --sc-progress-color: var(--sc-info, var(--sc-base-content, #000));
1479
1506
  }
1480
1507
  :host([type="success"]) {
1481
- --sc-progress-color: var(--sc-success);
1508
+ --sc-progress-color: var(--sc-success, var(--sc-base-content, #000));
1482
1509
  }
1483
1510
 
1484
1511
  :host([type="invert"]) {
1485
1512
  --sc-progress-bg: rgba(190, 190, 190, 0.125);
1486
- --sc-progress-color: var(--sc-base);
1513
+ --sc-progress-color: var(--sc-base, #fff);
1487
1514
  }
1488
1515
 
1489
1516
  :host([invert]) {
@@ -1491,11 +1518,11 @@
1491
1518
  }
1492
1519
 
1493
1520
  :host([type="default"][invert]) {
1494
- --sc-progress-color: var(--sc-base);
1521
+ --sc-progress-color: var(--sc-base, #fff);
1495
1522
  }
1496
1523
 
1497
1524
  slot[name="remaining"] {
1498
- font-weight: var(--sc-font-weight-base);
1525
+ font-weight: var(--sc-font-weight-base, 400);
1499
1526
  font-size: 0.85em;
1500
1527
  margin-top: 0.5em;
1501
1528
  }
@@ -1513,7 +1540,7 @@
1513
1540
  gap: 0.5em;
1514
1541
  margin-top: 0.15em;
1515
1542
  }
1516
- `],Ne([l({type:Number})],Qt.prototype,"value",2),Ne([l({type:Number})],Qt.prototype,"max",2),Ne([l({type:Boolean})],Qt.prototype,"invert",2),Ne([l({type:String,reflect:!0})],Qt.prototype,"type",2),Ne([l({type:String,reflect:!0})],Qt.prototype,"size",2),Qt=Ne([_(Ua)],Qt);const Va=P`
1543
+ `],Ue([l({type:Number})],Jt.prototype,"value",2),Ue([l({type:Number})],Jt.prototype,"max",2),Ue([l({type:Boolean})],Jt.prototype,"invert",2),Ue([l({type:String,reflect:!0})],Jt.prototype,"type",2),Ue([l({type:String,reflect:!0})],Jt.prototype,"size",2),Jt=Ue([w(Ul)],Jt);const Vl=$`
1517
1544
  .password-toggle {
1518
1545
  color: var(--sc-input-c);
1519
1546
  font-size: var(--sc-input-fs);
@@ -1524,9 +1551,9 @@
1524
1551
  :host([inlineContent]) .has-suffix .password-toggle {
1525
1552
  margin-right: 0;
1526
1553
  }
1527
- `,ks=P`
1554
+ `,Ws=$`
1528
1555
  :host {
1529
- --sc-label-fs: var(--sc-fs, 1rem);
1556
+ --sc-label-fs: var(--sc-_fs, 1rem);
1530
1557
  --sc-label-fw: var(--sc-label-font-weight, 500);
1531
1558
  }
1532
1559
  label {
@@ -1538,36 +1565,39 @@
1538
1565
  margin-bottom: 0.22em;
1539
1566
  display: block;
1540
1567
  }
1541
- `,Ls=P`
1568
+ `,Ks=$`
1542
1569
  .form-description {
1543
- color: var(--sc-base-400);
1570
+ color: var(--sc-base-400, var(--sc-base-content, #000));
1544
1571
  font-size: 0.85em;
1545
1572
  margin-top: 0.2em;
1546
1573
  display: block;
1547
1574
  }
1548
- `,mi=P`
1575
+ `,Ii=$`
1549
1576
  * {
1550
1577
  box-sizing: border-box;
1551
1578
  }
1552
1579
 
1553
1580
  :host {
1554
- --sc-input-height: var(--sc-form-height);
1555
- --sc-input-c: var(--sc-input-color, var(--sc-base-content));
1581
+ --sc-input-height: var(--sc-form-height, 2.5em);
1582
+ --sc-input-c: var(--sc-input-color, var(--sc-base-content, #000));
1556
1583
  --sc-input-b-width: var(--sc-form-border-width);
1557
- --sc-input-b-color: var(--sc-input-border-color);
1584
+ --sc-input-b-color: var(
1585
+ --sc-input-border-color,
1586
+ var(--sc-base-content, #000)
1587
+ );
1558
1588
 
1559
1589
  --sc-item-rounded-tr: var(--sc-input-rounded);
1560
1590
  --sc-item-rounded-tl: var(--sc-input-rounded);
1561
1591
  --sc-item-rounded-bl: var(--sc-input-rounded);
1562
1592
  --sc-item-rounded-br: var(--sc-input-rounded);
1563
1593
 
1564
- --sc-input-fs: var(--sc-fs, 1rem);
1594
+ --sc-input-fs: var(--sc-_fs, 1rem);
1565
1595
  --sc-input-ff: inherit;
1566
1596
  --sc-input-py: 0.55em;
1567
1597
  --sc-input-px: clamp(0.3em, 8%, 1.1em);
1568
1598
 
1569
1599
  --sc-input-background: var(--sc-input-bg);
1570
- --sc-input-addon-c: var(--sc-input-addon-color, var(--sc-base));
1600
+ --sc-input-addon-c: var(--sc-input-addon-color, var(--sc-base, #fff));
1571
1601
  --sc-input-addon-bg: var(--sc-input-c);
1572
1602
  }
1573
1603
 
@@ -1665,7 +1695,7 @@
1665
1695
  display: flex;
1666
1696
  align-items: center;
1667
1697
  gap: 0.35em;
1668
- min-height: var(--sc-form-height);
1698
+ min-height: var(--sc-form-height, 2.5em);
1669
1699
  }
1670
1700
 
1671
1701
  :host([inlineContent]) .form-element .form-element {
@@ -1732,7 +1762,7 @@
1732
1762
  /*PLACEHOLDER*/
1733
1763
  ::placeholder {
1734
1764
  color: inherit;
1735
- opacity: 0.45;
1765
+ opacity: 0.6;
1736
1766
  }
1737
1767
 
1738
1768
  :host([placehoderAsLabel]) ::placeholder {
@@ -1766,7 +1796,7 @@
1766
1796
 
1767
1797
  /*ERROR*/
1768
1798
  :host([error]) {
1769
- --sc-input-b-color: var(--sc-danger);
1799
+ --sc-input-b-color: var(--sc-danger, var(--sc-base-content, #000));
1770
1800
  }
1771
1801
 
1772
1802
  :host input:visited {
@@ -1774,22 +1804,22 @@
1774
1804
  }
1775
1805
 
1776
1806
  :host([touched][required]) :not(:focus):invalid {
1777
- --sc-input-b-color: var(--sc-danger);
1778
- --sc-input-c: var(--sc-danger);
1807
+ --sc-input-b-color: var(--sc-danger, var(--sc-base-content, #000));
1808
+ --sc-input-c: var(--sc-danger, var(--sc-base-content, #000));
1779
1809
  }
1780
1810
 
1781
1811
  :host([touched][required]) :not(:focus):invalid + .select-chevron {
1782
- --sc-input-c: var(--sc-danger);
1812
+ --sc-input-c: var(--sc-danger, var(--sc-base-content, #000));
1783
1813
  }
1784
1814
 
1785
1815
  /*VALID*/
1786
1816
  :host([touched][required]) :not([value=""]):not(:focus):valid {
1787
- --sc-input-b-color: var(--sc-success);
1788
- --sc-input-c: var(--sc-success);
1817
+ --sc-input-b-color: var(--sc-success, var(--sc-base-content, #000));
1818
+ --sc-input-c: var(--sc-success, var(--sc-base-content, #000));
1789
1819
  }
1790
1820
 
1791
1821
  :host([touched][required]) :not(:focus):valid + .select-chevron {
1792
- --sc-input-c: var(--sc-success);
1822
+ --sc-input-c: var(--sc-success, var(--sc-base-content, #000));
1793
1823
  }
1794
1824
 
1795
1825
  /*Input COLOR*/
@@ -1858,40 +1888,40 @@
1858
1888
 
1859
1889
  /*type color "default" | "success" | "error" | "warning" | "info" */
1860
1890
  :host([status="success"]) {
1861
- --sc-input-b-color: var(--sc-success);
1862
- --sc-input-c: var(--sc-success);
1863
- --sc-input-addon-bg: var(--sc-success);
1864
- --sc-input-addon-color: var(--sc-success-content);
1891
+ --sc-input-b-color: var(--sc-success, var(--sc-base-content, #000));
1892
+ --sc-input-c: var(--sc-success, var(--sc-base-content, #000));
1893
+ --sc-input-addon-bg: var(--sc-success, var(--sc-base-content, #000));
1894
+ --sc-input-addon-color: var(--sc-success-content, var(--sc-base, #fff));
1865
1895
  }
1866
1896
  :host([status="error"]) {
1867
- --sc-input-b-color: var(--sc-danger);
1868
- --sc-input-c: var(--sc-danger);
1869
- --sc-input-addon-bg: var(--sc-danger);
1870
- --sc-input-addon-color: var(--sc-danger-content);
1897
+ --sc-input-b-color: var(--sc-danger, var(--sc-base-content, #000));
1898
+ --sc-input-c: var(--sc-danger, var(--sc-base-content, #000));
1899
+ --sc-input-addon-bg: var(--sc-danger, var(--sc-base-content, #000));
1900
+ --sc-input-addon-color: var(--sc-danger-content, var(--sc-base, #fff));
1871
1901
  }
1872
1902
  :host([status="warning"]) {
1873
1903
  --sc-input-b-color: var(--sc-warning);
1874
- --sc-input-c: var(--sc-warning);
1875
- --sc-input-addon-bg: var(--sc-warning);
1876
- --sc-input-addon-color: var(--sc-warning-content);
1904
+ --sc-input-c: var(--sc-warning, var(--sc-base-content, #000));
1905
+ --sc-input-addon-bg: var(--sc-warning, var(--sc-base-content, #000));
1906
+ --sc-input-addon-color: var(--sc-warning-content, var(--sc-base, #fff));
1877
1907
  }
1878
1908
  :host([status="info"]) {
1879
- --sc-input-b-color: var(--sc-info);
1880
- --sc-input-c: var(--sc-info);
1881
- --sc-input-addon-bg: var(--sc-info);
1882
- --sc-input-addon-color: var(--sc-info-content);
1909
+ --sc-input-b-color: var(--sc-info, var(--sc-base-content, #000));
1910
+ --sc-input-c: var(--sc-info, var(--sc-base-content, #000));
1911
+ --sc-input-addon-bg: var(--sc-info, var(--sc-base-content, #000));
1912
+ --sc-input-addon-color: var(--sc-info-content, var(--sc-base, #fff));
1883
1913
  }
1884
1914
  :host([status="primary"]) {
1885
- --sc-input-b-color: var(--sc-primary);
1886
- --sc-input-c: var(--sc-primary);
1887
- --sc-input-addon-bg: var(--sc-primary);
1888
- --sc-input-addon-color: var(--sc-primary-content);
1915
+ --sc-input-b-color: var(--sc-primary, var(--sc-base-content, #000));
1916
+ --sc-input-c: var(--sc-primary, var(--sc-base-content, #000));
1917
+ --sc-input-addon-bg: var(--sc-primary, var(--sc-base-content, #000));
1918
+ --sc-input-addon-color: var(--sc-primary-content, var(--sc-base, #fff));
1889
1919
  }
1890
1920
  `;/**
1891
1921
  * @license
1892
1922
  * Copyright 2018 Google LLC
1893
1923
  * SPDX-License-Identifier: BSD-3-Clause
1894
- */const bi=de(class extends Se{constructor(r){var t;if(super(r),r.type!==he.ATTRIBUTE||r.name!=="class"||((t=r.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){var i,e;if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in t)t[o]&&!((i=this.nt)!=null&&i.has(o))&&this.st.add(o);return this.render(t)}const s=r.element.classList;for(const o of this.st)o in t||(s.remove(o),this.st.delete(o));for(const o in t){const n=!!t[o];n===this.st.has(o)||(e=this.nt)!=null&&e.has(o)||(n?(s.add(o),this.st.add(o)):(s.remove(o),this.st.delete(o)))}return bt}});var Ba=Object.defineProperty,Ha=Object.getOwnPropertyDescriptor,q=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ha(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&&Ba(t,s,e),e};const qa="sonic-input";let V=class extends Ps(De(G(w))){constructor(){super(...arguments),this.readonly=!1,this.inlineContent=!1,this.disableInlineContentFocus=!1,this.showPasswordToggle=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1,this.isPassword=!1}connectedCallback(){if(super.connectedCallback(),this.hasSlotOrProps(),this.hasAttribute("sameValueAs")){this.sameValueAsName=this.getAttribute("sameValueAs"),this.sameValueAsHandle=t=>this.pattern=this.escapeRegExp(t);const r=this.getFormPublisher();if(!r)return;r[this.sameValueAsName].onAssign(this.sameValueAsHandle)}this.type=="password"&&(this.isPassword=!0,this.showPasswordToggle=!0,this.inlineContent=!0)}disconnectedCallback(){if(super.disconnectedCallback(),this.hasAttribute("sameValueAs")&&this.sameValueAsName){const r=this.getFormPublisher();if(!r)return;r[this.sameValueAsName].offAssign(this.sameValueAsHandle)}}escapeRegExp(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}setSelectionRange(r,t){this.input.setSelectionRange(r,t)}hasSlotOrProps(){var r,t,s,i;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length),this.hasSuffix=!!((s=this.slotSuffixNodes)!=null&&s.length),this.hasPrefix=!!((i=this.slotPrefixNodes)!=null&&i.length)}inlineContentFocus(){var r;!this.inlineContent||this.disableInlineContentFocus||(r=this.input)==null||r.focus()}handleChange(r){if(!this.hasAttribute("inputDelayMs")){super.handleChange(r);return}this.changeTimeoutId&&clearTimeout(this.changeTimeoutId),this.changeTimeoutId=setTimeout(()=>super.handleChange(r),parseInt(this.getAttribute("inputDelayMs")))}togglePasswordVisibility(r){r.preventDefault(),r.stopPropagation(),this.isPassword=!this.isPassword,this._type=this.isPassword?"password":"text"}render(){const r={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix,"no-suffix":!this.hasSuffix,"no-prefix":!this.hasPrefix};return g`
1924
+ */const ji=pe(class extends Ne{constructor(r){var t;if(super(r),r.type!==Ee.ATTRIBUTE||r.name!=="class"||((t=r.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){var i,e;if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in t)t[o]&&!((i=this.nt)!=null&&i.has(o))&&this.st.add(o);return this.render(t)}const s=r.element.classList;for(const o of this.st)o in t||(s.remove(o),this.st.delete(o));for(const o in t){const n=!!t[o];n===this.st.has(o)||(e=this.nt)!=null&&e.has(o)||(n?(s.add(o),this.st.add(o)):(s.remove(o),this.st.delete(o)))}return vt}});var Hl=Object.defineProperty,Bl=Object.getOwnPropertyDescriptor,q=(r,t,s,i)=>{for(var e=i>1?void 0:i?Bl(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&&Hl(t,s,e),e};const ql="sonic-input";let V=class extends zs(Ie(Q(_))){constructor(){super(...arguments),this.readonly=!1,this.inlineContent=!1,this.disableInlineContentFocus=!1,this.showPasswordToggle=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1,this.isPassword=!1}connectedCallback(){if(super.connectedCallback(),this.hasSlotOrProps(),this.hasAttribute("sameValueAs")){this.sameValueAsName=this.getAttribute("sameValueAs"),this.sameValueAsHandle=t=>this.pattern=this.escapeRegExp(t);const r=this.getFormPublisher();if(!r)return;r[this.sameValueAsName].onAssign(this.sameValueAsHandle)}this.type=="password"&&(this.isPassword=!0,this.showPasswordToggle=!0,this.inlineContent=!0)}disconnectedCallback(){if(super.disconnectedCallback(),this.hasAttribute("sameValueAs")&&this.sameValueAsName){const r=this.getFormPublisher();if(!r)return;r[this.sameValueAsName].offAssign(this.sameValueAsHandle)}}escapeRegExp(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}setSelectionRange(r,t){this.input.setSelectionRange(r,t)}hasSlotOrProps(){var r,t,s,i;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length),this.hasSuffix=!!((s=this.slotSuffixNodes)!=null&&s.length),this.hasPrefix=!!((i=this.slotPrefixNodes)!=null&&i.length)}inlineContentFocus(){var r;!this.inlineContent||this.disableInlineContentFocus||(r=this.input)==null||r.focus()}handleChange(r){if(!this.hasAttribute("inputDelayMs")){super.handleChange(r);return}this.changeTimeoutId&&clearTimeout(this.changeTimeoutId),this.changeTimeoutId=setTimeout(()=>super.handleChange(r),parseInt(this.getAttribute("inputDelayMs")))}togglePasswordVisibility(r){r.preventDefault(),r.stopPropagation(),this.isPassword=!this.isPassword,this._type=this.isPassword?"password":"text"}render(){const r={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix,"no-suffix":!this.hasSuffix,"no-prefix":!this.hasPrefix};return g`
1895
1925
  <label for="${this.id||"form-element"}" class="${this.hasLabel?"form-label":"hidden"}"
1896
1926
  >${this.label?F(this.label):""}<slot
1897
1927
  name="label"
@@ -1899,7 +1929,7 @@
1899
1929
  ></slot
1900
1930
  ></label>
1901
1931
 
1902
- <div @click=${this.inlineContentFocus} class="form-control ${bi(r)}">
1932
+ <div @click=${this.inlineContentFocus} class="form-control ${ji(r)}">
1903
1933
  <div part="content" class="${this.inlineContent?"form-element form-element-wrapper":"contents"}">
1904
1934
  <slot name="prefix" @slotchange=${this.hasSlotOrProps}></slot>
1905
1935
  <input
@@ -1952,10 +1982,10 @@
1952
1982
  name="description"
1953
1983
  @slotchange=${this.hasSlotOrProps}
1954
1984
  class="${this.hasDescription?"form-description":"hidden"}"
1955
- >${this.description?g`${F(this.description)}`:C}</slot>
1985
+ >${this.description?g`${F(this.description)}`:A}</slot>
1956
1986
  <slot name="list"></slot>
1957
1987
  </div>
1958
- `}};V.styles=[Dt,mi,ks,Ls,Va,P`
1988
+ `}};V.styles=[Lt,Ii,Ws,Ks,Vl,$`
1959
1989
  :host([type="hidden"]) {
1960
1990
  appearance: none !important;
1961
1991
  display: none !important;
@@ -1963,7 +1993,7 @@
1963
1993
  :host > .form-control {
1964
1994
  position: relative;
1965
1995
  }
1966
- `],q([l({type:String,reflect:!0})],V.prototype,"size",2),q([l({type:String})],V.prototype,"list",2),q([l({type:String})],V.prototype,"placeholder",2),q([l({type:String})],V.prototype,"pattern",2),q([l({type:String})],V.prototype,"min",2),q([l({type:String})],V.prototype,"max",2),q([l({type:Boolean})],V.prototype,"readonly",2),q([l({type:Number})],V.prototype,"step",2),q([l({type:Number})],V.prototype,"minlength",2),q([l({type:Number})],V.prototype,"maxlength",2),q([l({type:String})],V.prototype,"src",2),q([l({type:Boolean,reflect:!0})],V.prototype,"inlineContent",2),q([l({type:Boolean})],V.prototype,"disableInlineContentFocus",2),q([l({type:Boolean})],V.prototype,"showPasswordToggle",2),q([it({slot:"label",flatten:!0})],V.prototype,"slotLabelNodes",2),q([it({slot:"description",flatten:!0})],V.prototype,"slotDescriptionNodes",2),q([it({slot:"suffix",flatten:!0})],V.prototype,"slotSuffixNodes",2),q([it({slot:"prefix",flatten:!0})],V.prototype,"slotPrefixNodes",2),q([ie("input")],V.prototype,"input",2),q([T()],V.prototype,"hasDescription",2),q([T()],V.prototype,"hasLabel",2),q([T()],V.prototype,"hasSuffix",2),q([T()],V.prototype,"hasPrefix",2),q([T()],V.prototype,"isPassword",2),V=q([_(qa)],V);const Mr=P`
1996
+ `],q([l({type:String,reflect:!0})],V.prototype,"size",2),q([l({type:String})],V.prototype,"list",2),q([l({type:String})],V.prototype,"placeholder",2),q([l({type:String})],V.prototype,"pattern",2),q([l({type:String})],V.prototype,"min",2),q([l({type:String})],V.prototype,"max",2),q([l({type:Boolean})],V.prototype,"readonly",2),q([l({type:Number})],V.prototype,"step",2),q([l({type:Number})],V.prototype,"minlength",2),q([l({type:Number})],V.prototype,"maxlength",2),q([l({type:String})],V.prototype,"src",2),q([l({type:Boolean,reflect:!0})],V.prototype,"inlineContent",2),q([l({type:Boolean})],V.prototype,"disableInlineContentFocus",2),q([l({type:Boolean})],V.prototype,"showPasswordToggle",2),q([rt({slot:"label",flatten:!0})],V.prototype,"slotLabelNodes",2),q([rt({slot:"description",flatten:!0})],V.prototype,"slotDescriptionNodes",2),q([rt({slot:"suffix",flatten:!0})],V.prototype,"slotSuffixNodes",2),q([rt({slot:"prefix",flatten:!0})],V.prototype,"slotPrefixNodes",2),q([oe("input")],V.prototype,"input",2),q([T()],V.prototype,"hasDescription",2),q([T()],V.prototype,"hasLabel",2),q([T()],V.prototype,"hasSuffix",2),q([T()],V.prototype,"hasPrefix",2),q([T()],V.prototype,"isPassword",2),V=q([w(ql)],V);const vo=$`
1967
1997
  /*OMBRE*/
1968
1998
  :host([shadow]) .shadowable,
1969
1999
  :host([shadow="md"]) .shadowable,
@@ -1982,7 +2012,7 @@
1982
2012
  :host([shadow="none"]) .shadowable {
1983
2013
  box-shadow: none;
1984
2014
  }
1985
- `;var Wa=Object.defineProperty,Ka=Object.getOwnPropertyDescriptor,Xt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ka(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&&Wa(t,s,e),e};const Ya="sonic-pop";let nt=class extends w{constructor(){super(...arguments),this.open=!1,this.noToggle=!1,this.inline=!1,this.shadow="lg",this.placement="bottom",this.positioningRuns=!1,this.lastContentX=0,this.lastContentY=0,this.resizeObserver=new ResizeObserver(()=>this.computePosition(this.placement)),this.ancestorsHavingZIndex=new Set}runPositioningLoop(){this.positioningRuns&&(this.positioningRuns=!0,this.computePosition(this.placement),window.requestAnimationFrame(()=>this.runPositioningLoop()))}toggle(r){if(this.open&&this.noToggle)return;const t=r;r.type=="keydown"&&(t.key!="ArrowDown"||this.open)||(this.open=!this.open,this.open?this.show():this.hide())}show(){this.setMaxZindex(),this.popContent.style.removeProperty("display"),this.open=!0,this.popContent.setAttribute("tabindex","0"),this.popBtn&&this.popContent&&!this.positioningRuns&&(this.positioningRuns=!0,this.lastContentX=0,this.lastContentY=0,this.runPositioningLoop()),this.dispatchEvent(new CustomEvent("show"))}hide(){this.resetZindexes(),this.open=!1,this.popContent.setAttribute("tabindex","-1"),this.positioningRuns=!1,this.dispatchEvent(new CustomEvent("hide"))}setMaxZindex(){Z.everyAncestors(this,r=>{const t=r;if(!t.className)return!0;if([...t.classList].includes("@container")){const s=t.style;s.zIndex="999999999";const i=getComputedStyle(t);return i.position!=="relative"&&i.position!=="absolute"&&(s.position="relative"),this.ancestorsHavingZIndex.add(r),!1}return!0})}resetZindexes(){this.ancestorsHavingZIndex.forEach(r=>{r.style.removeProperty("position"),r.style.removeProperty("z-index")}),this.ancestorsHavingZIndex.clear()}_handleClosePop(r){const t=r.composedPath(),s=t[0];nt.pops.forEach(i=>{const e=t.includes(i),o=t.includes(i.querySelector('[slot="content"]')),n=Z.getAncestorAttributeValue(s,"data-on-select")==="keep";r.type=="pointerdown"&&e||r.type=="click"&&(e&&n||!o)||i.hide()})}connectedCallback(){super.connectedCallback(),nt.pops.size==0&&(document.addEventListener("pointerdown",this._handleClosePop),document.addEventListener("click",this._handleClosePop)),nt.pops.add(this)}firstUpdated(r){super.firstUpdated(r),this.resizeObserver.observe(this.popContent)}disconnectedCallback(){this.popContent&&this.resizeObserver.unobserve(this.popContent),super.disconnectedCallback(),nt.pops.delete(this),nt.pops.size==0&&(document.removeEventListener("pointerdown",this._handleClosePop),document.removeEventListener("click",this._handleClosePop))}computePosition(r){var E,H,W,At;const t=r.split(" "),s=t[0];let i=t[1],e=(E=this.popContent)==null?void 0:E.getBoundingClientRect();const o=5,n=this.getBoundingClientRect(),a=Z.getScrollableAncestor(this.popContent),c=a==null?void 0:a.getBoundingClientRect(),h=Math.max(0,(c==null?void 0:c.left)||0)+o,d=Math.max(0,(c==null?void 0:c.top)||0)+o,f=Math.min(window.innerWidth,(c==null?void 0:c.right)||window.innerWidth)-o,m=Math.min(window.innerHeight,(c==null?void 0:c.bottom)||window.innerHeight)-o,b=n.left,v=n.top;let $=b,S=v;const D=v-e.height,p=b-e.width,u=b+n.width,y=v+n.height,A=b+(n.width-e.width)*.5,O=v+(n.height-e.height)*.5;switch(s){case"bottom":S=y,i=="center"&&($=A);break;case"top":S=D,i=="center"&&($=A);break;case"left":$=p,i=="center"&&(S=O);break;case"right":$=u,i=="center"&&(S=O);break}this.lastContentX+=$-e.x,this.lastContentY+=S-e.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),e=(H=this.popContent)==null?void 0:H.getBoundingClientRect(),e.x<h&&s=="left"&&($=u),e.y<d&&s=="top"&&(S=y),e.x+e.width>f&&s=="right"&&($=p),e.y+e.height>m&&s=="bottom"&&(S=D),this.lastContentX+=$-e.x,this.lastContentY+=S-e.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),e=(W=this.popContent)==null?void 0:W.getBoundingClientRect(),e.x<h&&(this.lastContentX+=h-e.x),e.y<d&&(this.lastContentY+=d-e.y),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),e=(At=this.popContent)==null?void 0:At.getBoundingClientRect(),e.x+e.width>f&&(this.lastContentX+=f-(e.x+e.width)),e.y+e.height>m&&(this.lastContentY+=m-(e.y+e.height)),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`})}render(){return g`
2015
+ `;var Wl=Object.defineProperty,Kl=Object.getOwnPropertyDescriptor,te=(r,t,s,i)=>{for(var e=i>1?void 0:i?Kl(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&&Wl(t,s,e),e};const Yl="sonic-pop";let at=class extends _{constructor(){super(...arguments),this.open=!1,this.noToggle=!1,this.inline=!1,this.shadow="lg",this.placement="bottom",this.positioningRuns=!1,this.lastContentX=0,this.lastContentY=0,this.resizeObserver=new ResizeObserver(()=>this.computePosition(this.placement)),this.ancestorsHavingZIndex=new Set}runPositioningLoop(){this.positioningRuns&&(this.positioningRuns=!0,this.computePosition(this.placement),window.requestAnimationFrame(()=>this.runPositioningLoop()))}toggle(r){if(this.open&&this.noToggle)return;const t=r;r.type=="keydown"&&(t.key!="ArrowDown"||this.open)||(this.open=!this.open,this.open?this.show():this.hide())}show(){this.setMaxZindex(),this.popContent.style.removeProperty("display"),this.open=!0,this.popContent.setAttribute("tabindex","0"),this.popBtn&&this.popContent&&!this.positioningRuns&&(this.positioningRuns=!0,this.lastContentX=0,this.lastContentY=0,this.runPositioningLoop()),this.dispatchEvent(new CustomEvent("show"))}hide(){this.resetZindexes(),this.open=!1,this.popContent.setAttribute("tabindex","-1"),this.positioningRuns=!1,this.dispatchEvent(new CustomEvent("hide"))}setMaxZindex(){G.everyAncestors(this,r=>{const t=r;if(!t.className)return!0;if([...t.classList].includes("@container")){const s=t.style;s.zIndex="999999999";const i=getComputedStyle(t);return i.position!=="relative"&&i.position!=="absolute"&&(s.position="relative"),this.ancestorsHavingZIndex.add(r),!1}return!0})}resetZindexes(){this.ancestorsHavingZIndex.forEach(r=>{r.style.removeProperty("position"),r.style.removeProperty("z-index")}),this.ancestorsHavingZIndex.clear()}_handleClosePop(r){const t=r.composedPath(),s=t[0];at.pops.forEach(i=>{const e=t.includes(i),o=t.includes(i.querySelector('[slot="content"]')),n=G.getAncestorAttributeValue(s,"data-on-select")==="keep";r.type=="pointerdown"&&e||r.type=="click"&&(e&&n||!o)||i.hide()})}connectedCallback(){super.connectedCallback(),at.pops.size==0&&(document.addEventListener("pointerdown",this._handleClosePop),document.addEventListener("click",this._handleClosePop)),at.pops.add(this)}firstUpdated(r){super.firstUpdated(r),this.resizeObserver.observe(this.popContent)}disconnectedCallback(){this.popContent&&this.resizeObserver.unobserve(this.popContent),super.disconnectedCallback(),at.pops.delete(this),at.pops.size==0&&(document.removeEventListener("pointerdown",this._handleClosePop),document.removeEventListener("click",this._handleClosePop))}computePosition(r){var E,B,W,Ot;const t=r.split(" "),s=t[0];let i=t[1],e=(E=this.popContent)==null?void 0:E.getBoundingClientRect();const o=5,n=this.getBoundingClientRect(),a=G.getScrollableAncestor(this.popContent),c=a==null?void 0:a.getBoundingClientRect(),h=Math.max(0,(c==null?void 0:c.left)||0)+o,d=Math.max(0,(c==null?void 0:c.top)||0)+o,p=Math.min(window.innerWidth,(c==null?void 0:c.right)||window.innerWidth)-o,m=Math.min(window.innerHeight,(c==null?void 0:c.bottom)||window.innerHeight)-o,b=n.left,v=n.top;let P=b,S=v;const D=v-e.height,u=b-e.width,f=b+n.width,y=v+n.height,C=b+(n.width-e.width)*.5,O=v+(n.height-e.height)*.5;switch(s){case"bottom":S=y,i=="center"&&(P=C);break;case"top":S=D,i=="center"&&(P=C);break;case"left":P=u,i=="center"&&(S=O);break;case"right":P=f,i=="center"&&(S=O);break}this.lastContentX+=P-e.x,this.lastContentY+=S-e.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),e=(B=this.popContent)==null?void 0:B.getBoundingClientRect(),e.x<h&&s=="left"&&(P=f),e.y<d&&s=="top"&&(S=y),e.x+e.width>p&&s=="right"&&(P=u),e.y+e.height>m&&s=="bottom"&&(S=D),this.lastContentX+=P-e.x,this.lastContentY+=S-e.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),e=(W=this.popContent)==null?void 0:W.getBoundingClientRect(),e.x<h&&(this.lastContentX+=h-e.x),e.y<d&&(this.lastContentY+=d-e.y),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),e=(Ot=this.popContent)==null?void 0:Ot.getBoundingClientRect(),e.x+e.width>p&&(this.lastContentX+=p-(e.x+e.width)),e.y+e.height>m&&(this.lastContentY+=m-(e.y+e.height)),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`})}render(){return g`
1986
2016
  <slot
1987
2017
  @click=${this.toggle}
1988
2018
  @keydown=${this.toggle}
@@ -1996,7 +2026,7 @@
1996
2026
  class="shadowable
1997
2027
  ${this.open?"is-open":""}"
1998
2028
  ></slot>
1999
- `}};nt.pops=new Set,nt.styles=[P`
2029
+ `}};at.pops=new Set,at.styles=[$`
2000
2030
  :host {
2001
2031
  display: inline-block;
2002
2032
  vertical-align: middle;
@@ -2004,7 +2034,7 @@
2004
2034
 
2005
2035
  slot[name="content"] {
2006
2036
  max-width: 80vw;
2007
- background-color: var(--sc-base);
2037
+ background-color: var(--sc-base, #fff);
2008
2038
  position: fixed;
2009
2039
  z-index: 99999;
2010
2040
  display: block;
@@ -2028,11 +2058,11 @@
2028
2058
  :host([inline]) {
2029
2059
  vertical-align: baseline;
2030
2060
  }
2031
- `,Mr],Xt([T()],nt.prototype,"open",2),Xt([ie("slot:not([name=content])")],nt.prototype,"popBtn",2),Xt([ie("slot[name=content]")],nt.prototype,"popContent",2),Xt([l({type:Boolean})],nt.prototype,"noToggle",2),Xt([l({type:Boolean,reflect:!0})],nt.prototype,"inline",2),Xt([l({type:String,reflect:!0})],nt.prototype,"shadow",2),Xt([l({type:String})],nt.prototype,"placement",2),nt=Xt([_(Ya)],nt);var Za=Object.defineProperty,Ga=Object.getOwnPropertyDescriptor,Qa=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ga(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&&Za(t,s,e),e};const Xa="sonic-menu-item";let Ir=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()}};Ir=Qa([_(Xa)],Ir);/**
2061
+ `,vo],te([T()],at.prototype,"open",2),te([oe("slot:not([name=content])")],at.prototype,"popBtn",2),te([oe("slot[name=content]")],at.prototype,"popContent",2),te([l({type:Boolean})],at.prototype,"noToggle",2),te([l({type:Boolean,reflect:!0})],at.prototype,"inline",2),te([l({type:String,reflect:!0})],at.prototype,"shadow",2),te([l({type:String})],at.prototype,"placement",2),at=te([w(Yl)],at);var Zl=Object.defineProperty,Gl=Object.getOwnPropertyDescriptor,Ql=(r,t,s,i)=>{for(var e=i>1?void 0:i?Gl(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&&Zl(t,s,e),e};const Xl="sonic-menu-item";let yo=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()}};yo=Ql([w(Xl)],yo);/**
2032
2062
  * @license
2033
2063
  * Copyright 2021 Google LLC
2034
2064
  * SPDX-License-Identifier: BSD-3-Clause
2035
- */class jr{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 Ja=Object.defineProperty,tl=Object.getOwnPropertyDescriptor,gt=(r,t,s,i)=>{for(var e=i>1?void 0:i?tl(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&&Ja(t,s,e),e};let at=class extends hi(Cr($r(Kt(w)))){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 jr(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)}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=et.get;this.searchPublisher=i(this.searchDataProvider)[r],this.formValuePublisher=ht(i(t),this.name),this.countPublisher=i(this.queueDataProvider).resultCount,this.initCountPublisher=i(this.initQueueDataProvider).resultCount,this.value&&(et.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=et.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=et.get(r);let e,o=i.get();if(!o||!Array.isArray(o)||!o.length)return!1;for(const n of o){let a=et.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 g`
2065
+ */class _o{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 Jl=Object.defineProperty,tc=Object.getOwnPropertyDescriptor,mt=(r,t,s,i)=>{for(var e=i>1?void 0:i?tc(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&&Jl(t,s,e),e};let lt=class extends Di(no(oo(Zt(_)))){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 _o(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)}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=st.get;this.searchPublisher=i(this.searchDataProvider)[r],this.formValuePublisher=dt(i(t),this.name),this.countPublisher=i(this.queueDataProvider).resultCount,this.initCountPublisher=i(this.initQueueDataProvider).resultCount,this.value&&(st.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=st.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=st.get(r);let e,o=i.get();if(!o||!Array.isArray(o)||!o.length)return!1;for(const n of o){let a=st.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 g`
2036
2066
  <sonic-pop noToggle style="display:block;" @hide=${this.handleHide}>
2037
2067
  <sonic-input
2038
2068
  dataProvider="${this.initSearchDataProvider+Math.random()}"
@@ -2064,7 +2094,7 @@
2064
2094
  name="nav-arrow-down"
2065
2095
  .size=${this.size}
2066
2096
  ></sonic-icon>
2067
- `:C}
2097
+ `:A}
2068
2098
  </sonic-input>
2069
2099
  <sonic-menu
2070
2100
  slot="content"
@@ -2094,7 +2124,7 @@
2094
2124
  </sonic-queue>
2095
2125
  </sonic-menu>
2096
2126
  </sonic-pop>
2097
- `}};at.styles=[Ge,P`
2127
+ `}};lt.styles=[as,$`
2098
2128
  :host {
2099
2129
  display: block;
2100
2130
  }
@@ -2105,7 +2135,7 @@
2105
2135
  min-width: 14rem;
2106
2136
  width: 100%;
2107
2137
  }
2108
- `],gt([l({type:String})],at.prototype,"size",2),gt([l({type:String})],at.prototype,"placeholder",2),gt([l()],at.prototype,"filteredFields",2),gt([l({type:Boolean})],at.prototype,"readonly",2),gt([l({type:String})],at.prototype,"dataProviderExpression",2),gt([l({type:Number})],at.prototype,"minSearchLength",2),gt([l({type:Boolean})],at.prototype,"select",2),gt([l({type:String})],at.prototype,"key",2),gt([l({type:String})],at.prototype,"searchParameter",2),gt([l({type:String})],at.prototype,"propertyName",2),gt([it({slot:"prefix",flatten:!0})],at.prototype,"slotInputPrefixNodes",2),gt([T()],at.prototype,"hasInputPrefix",2),gt([T()],at.prototype,"isPopVisible",2),at=gt([_("sonic-input-autocomplete")],at);var el=Object.defineProperty,sl=Object.getOwnPropertyDescriptor,dt=(r,t,s,i)=>{for(var e=i>1?void 0:i?sl(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&&el(t,s,e),e};const il="sonic-password-helper";let lt=class extends Kt(w){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)},et.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue))}disconnectedCallback(){this.checkValue&&this.name&&et.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue),super.disconnectedCallback()}getIcon(t){return t?g`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>`:g`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`}render(){return this.hasNoChar?C:g`
2138
+ `],mt([l({type:String})],lt.prototype,"size",2),mt([l({type:String})],lt.prototype,"placeholder",2),mt([l()],lt.prototype,"filteredFields",2),mt([l({type:Boolean})],lt.prototype,"readonly",2),mt([l({type:String})],lt.prototype,"dataProviderExpression",2),mt([l({type:Number})],lt.prototype,"minSearchLength",2),mt([l({type:Boolean})],lt.prototype,"select",2),mt([l({type:String})],lt.prototype,"key",2),mt([l({type:String})],lt.prototype,"searchParameter",2),mt([l({type:String})],lt.prototype,"propertyName",2),mt([rt({slot:"prefix",flatten:!0})],lt.prototype,"slotInputPrefixNodes",2),mt([T()],lt.prototype,"hasInputPrefix",2),mt([T()],lt.prototype,"isPopVisible",2),lt=mt([w("sonic-input-autocomplete")],lt);var ec=Object.defineProperty,sc=Object.getOwnPropertyDescriptor,pt=(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&&ec(t,s,e),e};const ic="sonic-password-helper";let ct=class extends Zt(_){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)},st.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue))}disconnectedCallback(){this.checkValue&&this.name&&st.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue),super.disconnectedCallback()}getIcon(t){return t?g`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>`:g`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`}render(){return this.hasNoChar?A:g`
2109
2139
  <div>${this.wording_password_helper_decription}</div>
2110
2140
  <div>
2111
2141
  ${this.getIcon(this.hasEnoughChars)}
@@ -2126,11 +2156,11 @@
2126
2156
  ${this.getIcon(this.hasSpecialChar)}
2127
2157
  ${this.wording_password_helper_special_char}
2128
2158
  </div>
2129
- `}};dt([l()],lt.prototype,"name",2),dt([l()],lt.prototype,"minChars",2),dt([T()],lt.prototype,"hasNoChar",2),dt([T()],lt.prototype,"hasEnoughChars",2),dt([T()],lt.prototype,"hasMinuscule",2),dt([T()],lt.prototype,"hasMajuscule",2),dt([T()],lt.prototype,"hasNumber",2),dt([T()],lt.prototype,"hasSpecialChar",2),dt([l()],lt.prototype,"wording_password_helper_decription",2),dt([l()],lt.prototype,"wording_password_helper_min_length",2),dt([l()],lt.prototype,"wording_password_helper_lower_case",2),dt([l()],lt.prototype,"wording_password_helper_upper_case",2),dt([l()],lt.prototype,"wording_password_helper_number",2),dt([l()],lt.prototype,"wording_password_helper_special_char",2),lt=dt([_(il)],lt);var rl=Object.defineProperty,ol=Object.getOwnPropertyDescriptor,ve=(r,t,s,i)=>{for(var e=i>1?void 0:i?ol(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&&rl(t,s,e),e};const nl="sonic-same-value-helper";let Jt=class extends Kt(w){constructor(){super(...arguments),this.descriptionWhenEqual="Correspondance : oui",this.descriptionWhenNotEqual="Correspondance : non",this.areEqual=!1,this.hasNoChar=!0}connectedCallback(){super.connectedCallback();const r=et.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=ht(r,this.name).get()==ht(r,this.sameValueAs).get())},ht(r,this.name).onAssign(this.checkValue),ht(r,this.sameValueAs).onAssign(this.checkValue))}disconnectedCallback(){if(this.checkValue&&this.name&&this.sameValueAs){const r=et.get(this.getAncestorAttributeValue("formDataProvider"));ht(r,this.name).offAssign(this.checkValue),ht(r,this.sameValueAs).offAssign(this.checkValue)}super.disconnectedCallback()}render(){return this.hasNoChar?C:g`
2159
+ `}};pt([l()],ct.prototype,"name",2),pt([l()],ct.prototype,"minChars",2),pt([T()],ct.prototype,"hasNoChar",2),pt([T()],ct.prototype,"hasEnoughChars",2),pt([T()],ct.prototype,"hasMinuscule",2),pt([T()],ct.prototype,"hasMajuscule",2),pt([T()],ct.prototype,"hasNumber",2),pt([T()],ct.prototype,"hasSpecialChar",2),pt([l()],ct.prototype,"wording_password_helper_decription",2),pt([l()],ct.prototype,"wording_password_helper_min_length",2),pt([l()],ct.prototype,"wording_password_helper_lower_case",2),pt([l()],ct.prototype,"wording_password_helper_upper_case",2),pt([l()],ct.prototype,"wording_password_helper_number",2),pt([l()],ct.prototype,"wording_password_helper_special_char",2),ct=pt([w(ic)],ct);var rc=Object.defineProperty,oc=Object.getOwnPropertyDescriptor,$e=(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};const nc="sonic-same-value-helper";let ee=class extends Zt(_){constructor(){super(...arguments),this.descriptionWhenEqual="Correspondance : oui",this.descriptionWhenNotEqual="Correspondance : non",this.areEqual=!1,this.hasNoChar=!0}connectedCallback(){super.connectedCallback();const r=st.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=dt(r,this.name).get()==dt(r,this.sameValueAs).get())},dt(r,this.name).onAssign(this.checkValue),dt(r,this.sameValueAs).onAssign(this.checkValue))}disconnectedCallback(){if(this.checkValue&&this.name&&this.sameValueAs){const r=st.get(this.getAncestorAttributeValue("formDataProvider"));dt(r,this.name).offAssign(this.checkValue),dt(r,this.sameValueAs).offAssign(this.checkValue)}super.disconnectedCallback()}render(){return this.hasNoChar?A:g`
2130
2160
  <span>
2131
2161
  ${this.areEqual?F(this.descriptionWhenEqual):F(this.descriptionWhenNotEqual)}
2132
2162
  </span>
2133
- `}};ve([l()],Jt.prototype,"name",2),ve([l()],Jt.prototype,"sameValueAs",2),ve([l()],Jt.prototype,"descriptionWhenEqual",2),ve([l()],Jt.prototype,"descriptionWhenNotEqual",2),ve([T()],Jt.prototype,"areEqual",2),ve([T()],Jt.prototype,"hasNoChar",2),Jt=ve([_(nl)],Jt);var al=Object.defineProperty,ll=Object.getOwnPropertyDescriptor,Ut=(r,t,s,i)=>{for(var e=i>1?void 0:i?ll(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&&al(t,s,e),e};const cl="sonic-checkbox";let yt=class extends ii(Ps(De(G(w)))){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 g`
2163
+ `}};$e([l()],ee.prototype,"name",2),$e([l()],ee.prototype,"sameValueAs",2),$e([l()],ee.prototype,"descriptionWhenEqual",2),$e([l()],ee.prototype,"descriptionWhenNotEqual",2),$e([T()],ee.prototype,"areEqual",2),$e([T()],ee.prototype,"hasNoChar",2),ee=$e([w(nc)],ee);var ac=Object.defineProperty,lc=Object.getOwnPropertyDescriptor,Vt=(r,t,s,i)=>{for(var e=i>1?void 0:i?lc(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&&ac(t,s,e),e};const cc="sonic-checkbox";let _t=class extends yi(zs(Ie(Q(_)))){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 g`
2134
2164
  <label class="checkbox-container ${this.disabled?"disabled":""}">
2135
2165
 
2136
2166
  <span class="icon-container">
@@ -2158,10 +2188,13 @@
2158
2188
  </div>
2159
2189
  </label>
2160
2190
  </label>
2161
- `}};yt.styles=[Dt,P`
2191
+ `}};_t.styles=[Lt,$`
2162
2192
  :host {
2163
2193
  --sc-checkbox-border-width: var(--sc-form-border-width);
2164
- --sc-checkbox-border-color: var(--sc-input-border-color);
2194
+ --sc-checkbox-border-color: var(
2195
+ --sc-input-border-color,
2196
+ var(--sc-base-content, #000)
2197
+ );
2165
2198
  --sc-checkbox-bg: var(--sc-input-bg);
2166
2199
  --sc-checkbox-color: transparent;
2167
2200
  }
@@ -2176,7 +2209,7 @@
2176
2209
  gap: 0.5em;
2177
2210
  line-height: 1.2;
2178
2211
  align-items: flex-start;
2179
- font-size: var(--sc-fs);
2212
+ font-size: var(--sc-_fs);
2180
2213
  }
2181
2214
 
2182
2215
  .icon-container {
@@ -2189,8 +2222,8 @@
2189
2222
  box-sizing: border-box;
2190
2223
  appearance: none;
2191
2224
  flex-shrink: 0;
2192
- height: calc(var(--sc-fs) * 1.25);
2193
- width: calc(var(--sc-fs) * 1.25);
2225
+ height: calc(var(--sc-_fs) * 1.25);
2226
+ width: calc(var(--sc-_fs) * 1.25);
2194
2227
  display: block;
2195
2228
  cursor: pointer;
2196
2229
  border-radius: 0.25em;
@@ -2204,7 +2237,7 @@
2204
2237
 
2205
2238
  input:focus,
2206
2239
  :host(:not([disabled])) input:active {
2207
- box-shadow: 0 0 0 2px var(--sc-primary);
2240
+ box-shadow: 0 0 0 2px var(--sc-primary, var(--sc-base-content, #000));
2208
2241
  }
2209
2242
 
2210
2243
  :host(:not([disabled])) label {
@@ -2226,7 +2259,7 @@
2226
2259
  } */
2227
2260
 
2228
2261
  .description {
2229
- color: var(--sc-base-400);
2262
+ color: var(--sc-base-400, var(--sc-base-content, #000));
2230
2263
  font-size: 0.85em;
2231
2264
  margin-top: 0.2em;
2232
2265
  display: block;
@@ -2236,13 +2269,16 @@
2236
2269
  input:checked,
2237
2270
  input[data-indeterminate],
2238
2271
  input[checked] {
2239
- --sc-checkbox-border-color: var(--sc-primary);
2240
- --sc-checkbox-bg: var(--sc-primary);
2272
+ --sc-checkbox-border-color: var(
2273
+ --sc-primary,
2274
+ var(--sc-base-content, #000)
2275
+ );
2276
+ --sc-checkbox-bg: var(--sc-primary, var(--sc-base-content, #000));
2241
2277
  }
2242
2278
  input:checked + sonic-icon,
2243
2279
  input[data-indeterminate] + sonic-icon,
2244
2280
  input[checked] + sonic-icon {
2245
- --sc-checkbox-color: var(--sc-primary-content);
2281
+ --sc-checkbox-color: var(--sc-primary-content, var(--sc-base, #fff));
2246
2282
  transform: translateX(-50%) translateY(-50%) scale(1);
2247
2283
  }
2248
2284
  /*DISABLED */
@@ -2274,31 +2310,23 @@
2274
2310
  .hidden {
2275
2311
  display: none;
2276
2312
  }
2277
-
2278
- /*ERROR*/
2279
- /*
2280
- :host([touched]) .checkbox-container:has(input:not(:focus):invalid) {
2281
- --sc-checkbox-border-color:var(--sc-danger);
2282
- }
2283
- :host([touched]) .checkbox-container:has(input:not(:focus):invalid) .checkbox-text{
2284
- color:var(--sc-danger);
2285
- }
2286
- */
2287
- `],Ut([l({type:Boolean,reflect:!0})],yt.prototype,"touched",2),Ut([l({type:String})],yt.prototype,"iconName",2),Ut([l({type:String})],yt.prototype,"indeterminateIconName",2),Ut([l({type:Boolean})],yt.prototype,"showAsIndeterminate",2),Ut([l({type:Boolean})],yt.prototype,"hasDescription",2),Ut([l({type:Boolean})],yt.prototype,"hasLabel",2),Ut([it({flatten:!0})],yt.prototype,"slotLabelNodes",2),Ut([it({slot:"description",flatten:!0})],yt.prototype,"slotDescriptionNodes",2),yt=Ut([_(cl)],yt);var hl=Object.defineProperty,dl=Object.getOwnPropertyDescriptor,pl=(r,t,s,i)=>{for(var e=i>1?void 0:i?dl(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&&hl(t,s,e),e};const ul="sonic-radio";let vi=class extends yt{constructor(){super(),this.radio=!0}connectedCallback(){super.connectedCallback(),this.type="radio"}};vi.styles=[yt.styles,P`
2313
+ `],Vt([l({type:Boolean,reflect:!0})],_t.prototype,"touched",2),Vt([l({type:String})],_t.prototype,"iconName",2),Vt([l({type:String})],_t.prototype,"indeterminateIconName",2),Vt([l({type:Boolean})],_t.prototype,"showAsIndeterminate",2),Vt([l({type:Boolean})],_t.prototype,"hasDescription",2),Vt([l({type:Boolean})],_t.prototype,"hasLabel",2),Vt([rt({flatten:!0})],_t.prototype,"slotLabelNodes",2),Vt([rt({slot:"description",flatten:!0})],_t.prototype,"slotDescriptionNodes",2),_t=Vt([w(cc)],_t);var hc=Object.defineProperty,dc=Object.getOwnPropertyDescriptor,pc=(r,t,s,i)=>{for(var e=i>1?void 0:i?dc(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&&hc(t,s,e),e};const uc="sonic-radio";let Fi=class extends _t{constructor(){super(),this.radio=!0}connectedCallback(){super.connectedCallback(),this.type="radio"}};Fi.styles=[_t.styles,$`
2288
2314
  :host input {
2289
2315
  border-radius: 50%;
2290
2316
  }
2291
2317
  :host sonic-icon {
2292
2318
  border-radius: 50%;
2293
2319
  overflow: hidden;
2294
- background-color: var(--sc-primary-content);
2320
+ background-color: var(--sc-primary-content, var(--sc-base, #fff));
2295
2321
  line-height: 0;
2296
2322
  display: block;
2297
2323
  font-size: 1em;
2298
2324
  height: 0.6em;
2325
+ height: round(0.6em, 1px);
2299
2326
  width: 0.6em;
2327
+ width: round(0.6em, 1px);
2300
2328
  }
2301
- `],vi=pl([_(ul)],vi);var fl=Object.defineProperty,gl=Object.getOwnPropertyDescriptor,X=(r,t,s,i)=>{for(var e=i>1?void 0:i?gl(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&&fl(t,s,e),e};const ml="sonic-select";let Y=class extends De(G(w)){constructor(){super(...arguments),this.valueKey="value",this.wordingKey="wording",this.multiple=!1,this.status="default",this._options=[],this.hasDoneFirstUpdate=!1,this._value="",this.updateOptions=()=>{const r=this.querySelectorAll("option");r.length>0&&(this.options=Array.from(r).map(t=>({value:t.value,wording:t.text,selected:t.hasAttribute("selected")})))},this.forceAutoFill=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1}set options(r){this._options=r;for(const s of r)s.selected&&(this.value=s.value||"");!(this.value||this.getAttribute("value"))&&this._options.length>0&&(this.value=this._options[0][this.valueKey]),this.requestUpdate()}get options(){return this._options}firstUpdated(r){this.hasDoneFirstUpdate=!0,super.firstUpdated(r)}set value(r){r==null&&!this.hasDoneFirstUpdate||(r||(r=""),this._value!=r&&(this._value=r,this.updateFormPublisherValue(),this.requestUpdate()))}get value(){return this._value}updateFormPublisherValue(){this.setFormPublisherValue(this.value)}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps(),this.updateOptions()}get description(){return this._description}set description(r){this.hasAttribute("description")&&!this.forceAutoFill&&(r=this.getAttribute("description")),this._description=r,this.requestUpdate()}get label(){return this._label}set label(r){this.hasAttribute("label")&&!this.forceAutoFill&&(r=this.getAttribute("label")),this._label=r,this.requestUpdate()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t,s,i;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length),this.hasSuffix=!!((s=this.slotSuffixNodes)!=null&&s.length),this.hasPrefix=!!((i=this.slotPrefixNodes)!=null&&i.length)}validateFormElement(){var s;const r=(s=this.shadowRoot)==null?void 0:s.querySelector("select");if(!r||r.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),r.reportValidity()}render(){const r={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix};return g`
2329
+ `],Fi=pc([w(uc)],Fi);var fc=Object.defineProperty,gc=Object.getOwnPropertyDescriptor,X=(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&&fc(t,s,e),e};const mc="sonic-select";let Y=class extends Ie(Q(_)){constructor(){super(...arguments),this.valueKey="value",this.wordingKey="wording",this.multiple=!1,this.status="default",this._options=[],this.hasDoneFirstUpdate=!1,this._value="",this.updateOptions=()=>{const r=this.querySelectorAll("option");r.length>0&&(this.options=Array.from(r).map(t=>({value:t.value,wording:t.text,selected:t.hasAttribute("selected")})))},this.forceAutoFill=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1}set options(r){this._options=r;for(const s of r)s.selected&&(this.value=s.value||"");!(this.value||this.getAttribute("value"))&&this._options.length>0&&(this.value=this._options[0][this.valueKey]),this.requestUpdate()}get options(){return this._options}firstUpdated(r){this.hasDoneFirstUpdate=!0,super.firstUpdated(r)}set value(r){r==null&&!this.hasDoneFirstUpdate||(r||(r=""),this._value!=r&&(this._value=r,this.updateFormPublisherValue(),this.requestUpdate()))}get value(){return this._value}updateFormPublisherValue(){this.setFormPublisherValue(this.value)}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps(),this.updateOptions()}get description(){return this._description}set description(r){this.hasAttribute("description")&&!this.forceAutoFill&&(r=this.getAttribute("description")),this._description=r,this.requestUpdate()}get label(){return this._label}set label(r){this.hasAttribute("label")&&!this.forceAutoFill&&(r=this.getAttribute("label")),this._label=r,this.requestUpdate()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t,s,i;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length),this.hasSuffix=!!((s=this.slotSuffixNodes)!=null&&s.length),this.hasPrefix=!!((i=this.slotPrefixNodes)!=null&&i.length)}validateFormElement(){var s;const r=(s=this.shadowRoot)==null?void 0:s.querySelector("select");if(!r||r.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),r.reportValidity()}render(){const r={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix};return g`
2302
2330
  <label
2303
2331
  for="form-element"
2304
2332
  class="${this.hasLabel?"form-label":"hidden"}"
@@ -2308,7 +2336,7 @@
2308
2336
  ></slot
2309
2337
  ></label>
2310
2338
 
2311
- <div class="form-control ${bi(r)}">
2339
+ <div class="form-control ${ji(r)}">
2312
2340
  <slot name="prefix" @slotchange=${this.hasSlotOrProps}></slot>
2313
2341
  <div class="form-select-wrapper">
2314
2342
  <select
@@ -2326,7 +2354,7 @@
2326
2354
  aria-label=${x(this.ariaLabel)}
2327
2355
  aria-labelledby=${x(this.ariaLabelledby)}
2328
2356
  >
2329
- ${ys(this.options,t=>t[this.valueKey],t=>{const s=this.value==t[this.valueKey];return g`<option
2357
+ ${ks(this.options,t=>t[this.valueKey],t=>{const s=this.value==t[this.valueKey];return g`<option
2330
2358
  ?selected=${s}
2331
2359
  value="${t[this.valueKey]}"
2332
2360
  >
@@ -2349,7 +2377,7 @@
2349
2377
  class="${this.hasDescription?"form-description":"hidden"}"
2350
2378
  >${this.description?g`${F(this.description)}`:""}</slot
2351
2379
  >
2352
- `}};Y.styles=[Dt,mi,ks,Ls,P`
2380
+ `}};Y.styles=[Lt,Ii,Ws,Ks,$`
2353
2381
  .form-element {
2354
2382
  appearance: none;
2355
2383
  }
@@ -2386,15 +2414,15 @@
2386
2414
 
2387
2415
  option {
2388
2416
  padding: 0.1rem var(--sc-input-px);
2389
- color: var(--sc-base-content);
2390
- background: var(--sc-base);
2417
+ color: var(--sc-base-content, #000);
2418
+ background: var(--sc-base, #fff);
2391
2419
  }
2392
2420
 
2393
2421
  select[multiple] option {
2394
2422
  background: transparent;
2395
2423
  padding: 0;
2396
2424
  }
2397
- `],X([l({type:String})],Y.prototype,"valueKey",2),X([l({type:String})],Y.prototype,"wordingKey",2),X([l({type:Boolean})],Y.prototype,"multiple",2),X([l({type:String,reflect:!0})],Y.prototype,"size",2),X([l({type:Number})],Y.prototype,"selectSize",2),X([l({type:String,reflect:!0})],Y.prototype,"status",2),X([l({type:Array})],Y.prototype,"options",1),X([l({reflect:!0})],Y.prototype,"value",1),X([l({type:Boolean})],Y.prototype,"forceAutoFill",2),X([l()],Y.prototype,"description",1),X([l()],Y.prototype,"label",1),X([it({slot:"label",flatten:!0})],Y.prototype,"slotLabelNodes",2),X([it({slot:"description",flatten:!0})],Y.prototype,"slotDescriptionNodes",2),X([it({slot:"suffix",flatten:!0})],Y.prototype,"slotSuffixNodes",2),X([it({slot:"prefix",flatten:!0})],Y.prototype,"slotPrefixNodes",2),X([T()],Y.prototype,"hasDescription",2),X([T()],Y.prototype,"hasLabel",2),X([T()],Y.prototype,"hasSuffix",2),X([T()],Y.prototype,"hasPrefix",2),Y=X([_(ml)],Y);var bl=Object.defineProperty,vl=Object.getOwnPropertyDescriptor,mt=(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&&bl(t,s,e),e};const yl="sonic-textarea";let ct=class extends Ps(De(G(w))){constructor(){super(...arguments),this.size="md",this.readonly=!1,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 g`
2425
+ `],X([l({type:String})],Y.prototype,"valueKey",2),X([l({type:String})],Y.prototype,"wordingKey",2),X([l({type:Boolean})],Y.prototype,"multiple",2),X([l({type:String,reflect:!0})],Y.prototype,"size",2),X([l({type:Number})],Y.prototype,"selectSize",2),X([l({type:String,reflect:!0})],Y.prototype,"status",2),X([l({type:Array})],Y.prototype,"options",1),X([l({reflect:!0})],Y.prototype,"value",1),X([l({type:Boolean})],Y.prototype,"forceAutoFill",2),X([l()],Y.prototype,"description",1),X([l()],Y.prototype,"label",1),X([rt({slot:"label",flatten:!0})],Y.prototype,"slotLabelNodes",2),X([rt({slot:"description",flatten:!0})],Y.prototype,"slotDescriptionNodes",2),X([rt({slot:"suffix",flatten:!0})],Y.prototype,"slotSuffixNodes",2),X([rt({slot:"prefix",flatten:!0})],Y.prototype,"slotPrefixNodes",2),X([T()],Y.prototype,"hasDescription",2),X([T()],Y.prototype,"hasLabel",2),X([T()],Y.prototype,"hasSuffix",2),X([T()],Y.prototype,"hasPrefix",2),Y=X([w(mc)],Y);var bc=Object.defineProperty,vc=Object.getOwnPropertyDescriptor,bt=(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&&bc(t,s,e),e};const yc="sonic-textarea";let ht=class extends zs(Ie(Q(_))){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 g`
2398
2426
  <label
2399
2427
  for="${this.id||"form-element"}"
2400
2428
  class="${this.hasLabel?"form-label":"hidden"}"
@@ -2426,7 +2454,7 @@
2426
2454
  class="form-element textarea custom-scroll"
2427
2455
  aria-label=${x(this.ariaLabel)}
2428
2456
  aria-labelledby=${x(this.ariaLabelledby)}
2429
- style=${ut(r)}
2457
+ style=${ft(r)}
2430
2458
  >
2431
2459
  ${this.value}</textarea
2432
2460
  >
@@ -2438,22 +2466,22 @@ ${this.value}</textarea
2438
2466
  class="${this.hasDescription?"form-description":"hidden"}"
2439
2467
  >${this.description?g`${F(this.description)}`:""}</slot
2440
2468
  >
2441
- `}};ct.styles=[Dt,mi,ks,Ls,Ge,P`
2469
+ `}};ht.styles=[Lt,Ii,Ws,Ks,as,$`
2442
2470
  textarea {
2443
2471
  overflow-y: auto !important;
2444
2472
  font-size: inherit;
2445
2473
  }
2446
- `],mt([l({type:String})],ct.prototype,"size",2),mt([l({type:Number})],ct.prototype,"rows",2),mt([l({type:Number})],ct.prototype,"cols",2),mt([l({type:Number})],ct.prototype,"maxlength",2),mt([l({type:Number})],ct.prototype,"minlength",2),mt([l({type:String})],ct.prototype,"wrap",2),mt([l({type:Boolean})],ct.prototype,"readonly",2),mt([l({type:String})],ct.prototype,"placeholder",2),mt([l({type:String})],ct.prototype,"resize",2),mt([it({slot:"label",flatten:!0})],ct.prototype,"slotLabelNodes",2),mt([it({slot:"description",flatten:!0})],ct.prototype,"slotDescriptionNodes",2),mt([T()],ct.prototype,"hasDescription",2),mt([T()],ct.prototype,"hasLabel",2),ct=mt([_(yl)],ct);var wl=Object.defineProperty,_l=Object.getOwnPropertyDescriptor,xl=(r,t,s,i)=>{for(var e=i>1?void 0:i?_l(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&&wl(t,s,e),e};let yi=class extends w{render(){return g`<slot></slot>`}};yi.styles=[P`
2474
+ `],bt([l({type:String})],ht.prototype,"size",2),bt([l({type:Number})],ht.prototype,"rows",2),bt([l({type:Number})],ht.prototype,"cols",2),bt([l({type:Number})],ht.prototype,"maxlength",2),bt([l({type:Number})],ht.prototype,"minlength",2),bt([l({type:String})],ht.prototype,"wrap",2),bt([l({type:Boolean})],ht.prototype,"readonly",2),bt([l({type:String})],ht.prototype,"placeholder",2),bt([l({type:String})],ht.prototype,"resize",2),bt([rt({slot:"label",flatten:!0})],ht.prototype,"slotLabelNodes",2),bt([rt({slot:"description",flatten:!0})],ht.prototype,"slotDescriptionNodes",2),bt([T()],ht.prototype,"hasDescription",2),bt([T()],ht.prototype,"hasLabel",2),ht=bt([w(yc)],ht);var _c=Object.defineProperty,wc=Object.getOwnPropertyDescriptor,$c=(r,t,s,i)=>{for(var e=i>1?void 0:i?wc(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&&_c(t,s,e),e};let zi=class extends _{render(){return g`<slot></slot>`}};zi.styles=[$`
2447
2475
  :host {
2448
2476
  font-size: 1.15rem;
2449
2477
  line-height: 1.2;
2450
2478
  display: block;
2451
- color: var(--sc-base-500);
2452
- font-weight: var(--sc-font-weight-base);
2453
- font-style: var(--sc-font-style-base);
2479
+ color: var(--sc-base-500, var(--sc-base-content, #000));
2480
+ font-weight: var(--sc-font-weight-base, 400);
2481
+ font-style: var(--sc-font-style-base, normal);
2454
2482
  margin-top: 0.2em;
2455
2483
  }
2456
- `],yi=xl([_("sonic-legend-description")],yi);var Pl=Object.defineProperty,$l=Object.getOwnPropertyDescriptor,ye=(r,t,s,i)=>{for(var e=i>1?void 0:i?$l(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&&Pl(t,s,e),e};const Cl="sonic-legend";let Vt=class extends w{constructor(){super(...arguments),this.forceAutoFill=!1}get description(){return this._description}set description(r){this.hasAttribute("description")&&!this.forceAutoFill&&(r=this.getAttribute("description")),this._description=r,this.requestUpdate()}get label(){return this._label}set label(r){this.hasAttribute("label")&&!this.forceAutoFill&&(r=this.getAttribute("label")),this._label=r,this.requestUpdate()}render(){return g`<legend part="legend">
2484
+ `],zi=$c([w("sonic-legend-description")],zi);var xc=Object.defineProperty,Pc=Object.getOwnPropertyDescriptor,xe=(r,t,s,i)=>{for(var e=i>1?void 0:i?Pc(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 Ac="sonic-legend";let Ht=class extends _{constructor(){super(...arguments),this.forceAutoFill=!1}get description(){return this._description}set description(r){this.hasAttribute("description")&&!this.forceAutoFill&&(r=this.getAttribute("description")),this._description=r,this.requestUpdate()}get label(){return this._label}set label(r){this.hasAttribute("label")&&!this.forceAutoFill&&(r=this.getAttribute("label")),this._label=r,this.requestUpdate()}render(){return g`<legend part="legend">
2457
2485
  ${this.iconName?g`<div class="icon">
2458
2486
  <sonic-icon
2459
2487
  name=${this.iconName}
@@ -2470,14 +2498,17 @@ ${this.value}</textarea
2470
2498
  <slot></slot>
2471
2499
  </div>
2472
2500
  <slot name="suffix"></slot>
2473
- </legend>`}};Vt.styles=[P`
2501
+ </legend>`}};Ht.styles=[$`
2474
2502
  :host {
2475
2503
  --sc-legend-font-size: 1.5rem;
2476
- --sc-legend-font-weight: var(--sc-font-weight-base);
2504
+ --sc-legend-font-weight: var(--sc-font-weight-base, 400);
2477
2505
  --sc-legend-font-style: var(--sc-headings-font-style, normal);
2478
- --sc-legend-family: var(--sc-headings-font-family);
2506
+ --sc-legend-family: var(
2507
+ --sc-headings-font-family,
2508
+ var(--sc-font-family-base, sans-serif)
2509
+ );
2479
2510
  --sc-legend-line-height: var(--sc-headings-line-height, 1.1);
2480
- --sc-legend-color: var(--sc-base-content);
2511
+ --sc-legend-color: var(--sc-base-content, #000);
2481
2512
  display: flex;
2482
2513
  width: 100%;
2483
2514
  }
@@ -2505,7 +2536,7 @@ ${this.value}</textarea
2505
2536
  .legend-content {
2506
2537
  flex-grow: 1;
2507
2538
  }
2508
- `],ye([l({type:Boolean})],Vt.prototype,"forceAutoFill",2),ye([l()],Vt.prototype,"description",1),ye([l()],Vt.prototype,"label",1),ye([l({type:String})],Vt.prototype,"iconName",2),ye([l({type:String})],Vt.prototype,"iconLibrary",2),ye([l({type:String})],Vt.prototype,"iconPrefix",2),Vt=ye([_(Cl)],Vt);var Al=Object.defineProperty,Sl=Object.getOwnPropertyDescriptor,Et=(r,t,s,i)=>{for(var e=i>1?void 0:i?Sl(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&&Al(t,s,e),e};const Ol="sonic-fieldset";let xt=class extends G(w){constructor(){super(...arguments),this.disabled=!1,this.variant="default"}render(){return g`<fieldset
2539
+ `],xe([l({type:Boolean})],Ht.prototype,"forceAutoFill",2),xe([l()],Ht.prototype,"description",1),xe([l()],Ht.prototype,"label",1),xe([l({type:String})],Ht.prototype,"iconName",2),xe([l({type:String})],Ht.prototype,"iconLibrary",2),xe([l({type:String})],Ht.prototype,"iconPrefix",2),Ht=xe([w(Ac)],Ht);var Cc=Object.defineProperty,Sc=Object.getOwnPropertyDescriptor,Tt=(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-fieldset";let xt=class extends Q(_){constructor(){super(...arguments),this.disabled=!1,this.variant="default"}render(){return g`<fieldset
2509
2540
  form="${x(this.form)}"
2510
2541
  ?disabled="${this.disabled}"
2511
2542
  >
@@ -2515,9 +2546,9 @@ ${this.value}</textarea
2515
2546
  iconName=${x(this.iconName)}
2516
2547
  iconPrefix=${x(this.iconPrefix)}
2517
2548
  iconLibrary=${x(this.iconLibrary)}
2518
- ></sonic-legend>`:C}
2549
+ ></sonic-legend>`:A}
2519
2550
  <slot></slot>
2520
- </fieldset>`}};xt.styles=[P`
2551
+ </fieldset>`}};xt.styles=[$`
2521
2552
  :host {
2522
2553
  --sc-fieldset-mt: 0;
2523
2554
  --sc-fieldset-mb: 1rem;
@@ -2566,9 +2597,9 @@ ${this.value}</textarea
2566
2597
  ::slotted(sonic-legend:last-child) {
2567
2598
  margin-bottom: 0;
2568
2599
  }
2569
- `],Et([l({type:Boolean,reflect:!0})],xt.prototype,"disabled",2),Et([l({type:String})],xt.prototype,"form",2),Et([l({type:String})],xt.prototype,"label",2),Et([l({type:String})],xt.prototype,"description",2),Et([l({type:String})],xt.prototype,"iconName",2),Et([l({type:String})],xt.prototype,"iconLibrary",2),Et([l({type:String})],xt.prototype,"iconPrefix",2),Et([l({type:Boolean,reflect:!0})],xt.prototype,"tight",2),Et([l({type:String,reflect:!0})],xt.prototype,"variant",2),xt=Et([_(Ol)],xt);var Dl=Object.defineProperty,kl=Object.getOwnPropertyDescriptor,wi=(r,t,s,i)=>{for(var e=i>1?void 0:i?kl(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&&Dl(t,s,e),e};const Ll="sonic-form-layout";let ts=class extends G(w){constructor(){super(...arguments),this._resizeController=new jr(this,{}),this.oneFormElement=!1}onSlotChange(){let r=this.slottedElements;const t=["sonic-input","sonic-select","sonic-input-autocomplete",".form-item-container"];r=r.filter(s=>t.includes(s.nodeName.toLowerCase())),this.oneFormElement=r.length==1}render(){const r={"cq--md":this.offsetWidth>440,"one-form-element":this.oneFormElement};return g`<div class=${bi(r)}>
2600
+ `],Tt([l({type:Boolean,reflect:!0})],xt.prototype,"disabled",2),Tt([l({type:String})],xt.prototype,"form",2),Tt([l({type:String})],xt.prototype,"label",2),Tt([l({type:String})],xt.prototype,"description",2),Tt([l({type:String})],xt.prototype,"iconName",2),Tt([l({type:String})],xt.prototype,"iconLibrary",2),Tt([l({type:String})],xt.prototype,"iconPrefix",2),Tt([l({type:Boolean,reflect:!0})],xt.prototype,"tight",2),Tt([l({type:String,reflect:!0})],xt.prototype,"variant",2),xt=Tt([w(Oc)],xt);var Dc=Object.defineProperty,kc=Object.getOwnPropertyDescriptor,Ri=(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};const Lc="sonic-form-layout";let ds=class extends Q(_){constructor(){super(...arguments),this._resizeController=new _o(this,{}),this.oneFormElement=!1}onSlotChange(){let r=this.slottedElements;const t=["sonic-input","sonic-select","sonic-input-autocomplete",".form-item-container"];r=r.filter(s=>t.includes(s.nodeName.toLowerCase())),this.oneFormElement=r.length==1}render(){const r={"cq--md":this.offsetWidth>440,"one-form-element":this.oneFormElement};return g`<div class=${ji(r)}>
2570
2601
  <slot @slotchange=${this.onSlotChange}></slot>
2571
- </div>`}};ts.styles=[P`
2602
+ </div>`}};ds.styles=[$`
2572
2603
  :host {
2573
2604
  display: block;
2574
2605
  }
@@ -2603,7 +2634,7 @@ ${this.value}</textarea
2603
2634
  ::slotted(sonic-divider) {
2604
2635
  --sc-divider-my: 0;
2605
2636
  }
2606
- `],wi([re({flatten:!0})],ts.prototype,"slottedElements",2),wi([l({type:Boolean})],ts.prototype,"oneFormElement",2),ts=wi([_(Ll)],ts);var El=Object.defineProperty,Nl=Object.getOwnPropertyDescriptor,_i=(r,t,s,i)=>{for(var e=i>1?void 0:i?Nl(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&&El(t,s,e),e};const Tl="sonic-form-actions";let es=class extends w{constructor(){super(...arguments),this.direction="row",this.justify="flex-start"}render(){const r={flexDirection:this.direction,justifyContent:this.justify};return g`<slot style=${ut(r)}></slot>`}};es.styles=[P`
2637
+ `],Ri([ne({flatten:!0})],ds.prototype,"slottedElements",2),Ri([l({type:Boolean})],ds.prototype,"oneFormElement",2),ds=Ri([w(Lc)],ds);var Ec=Object.defineProperty,Nc=Object.getOwnPropertyDescriptor,Ui=(r,t,s,i)=>{for(var e=i>1?void 0:i?Nc(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&&Ec(t,s,e),e};const Tc="sonic-form-actions";let ps=class extends _{constructor(){super(...arguments),this.direction="row",this.justify="flex-start"}render(){const r={flexDirection:this.direction,justifyContent:this.justify};return g`<slot style=${ft(r)}></slot>`}};ps.styles=[$`
2607
2638
  :host {
2608
2639
  display: block;
2609
2640
  }
@@ -2612,20 +2643,20 @@ ${this.value}</textarea
2612
2643
  flex-wrap: wrap;
2613
2644
  gap: 0.3rem;
2614
2645
  }
2615
- `],_i([l({type:String})],es.prototype,"direction",2),_i([l({type:String})],es.prototype,"justify",2),es=_i([_(Tl)],es);var Ml=Object.defineProperty,Il=Object.getOwnPropertyDescriptor,te=(r,t,s,i)=>{for(var e=i>1?void 0:i?Il(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&&Ml(t,s,e),e};const jl="sonic-group";let Nt=class extends w{constructor(){super(...arguments),this.alignItems="center",this.hasDescription=!1,this.hasLabel=!1}updated(){const r=this.querySelectorAll("sonic-input, sonic-button, sonic-select"),t=r.length;t>1&&r.forEach((s,i)=>{const e=s;i===0?(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0")):i===t-1?(e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0")):(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0"),e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0"))})}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)}render(){const r={alignItems:this.alignItems};return g`<span class="${this.hasLabel?"form-label":"hidden"}"
2646
+ `],Ui([l({type:String})],ps.prototype,"direction",2),Ui([l({type:String})],ps.prototype,"justify",2),ps=Ui([w(Tc)],ps);var Mc=Object.defineProperty,Ic=Object.getOwnPropertyDescriptor,se=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ic(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 jc="sonic-group";let Mt=class extends _{constructor(){super(...arguments),this.alignItems="center",this.hasDescription=!1,this.hasLabel=!1}updated(){const r=this.querySelectorAll("sonic-input, sonic-button, sonic-select"),t=r.length;t>1&&r.forEach((s,i)=>{const e=s;i===0?(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0")):i===t-1?(e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0")):(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0"),e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0"))})}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)}render(){const r={alignItems:this.alignItems};return g`<span class="${this.hasLabel?"form-label":"hidden"}"
2616
2647
  >${this.label?F(this.label):""}<slot
2617
2648
  name="label"
2618
2649
  @slotchange=${this.hasSlotOrProps}
2619
2650
  ></slot
2620
2651
  ></span>
2621
- <slot class="main-slot" style=${ut(r)}></slot>
2652
+ <slot class="main-slot" style=${ft(r)}></slot>
2622
2653
  <slot
2623
2654
  name="description"
2624
2655
  @slotchange=${this.hasSlotOrProps}
2625
2656
  class="${this.hasDescription?"form-description":"hidden"}"
2626
2657
  >
2627
2658
  ${this.description?g`${F(this.description)}`:""}
2628
- </slot>`}};Nt.styles=[Dt,ks,Ls,P`
2659
+ </slot>`}};Mt.styles=[Lt,Ws,Ks,$`
2629
2660
  :host {
2630
2661
  display: inline-block;
2631
2662
  vertical-align: middle;
@@ -2645,16 +2676,16 @@ ${this.value}</textarea
2645
2676
  ::slotted(sonic-select) {
2646
2677
  flex-grow: 1;
2647
2678
  }
2648
- `],te([l({type:String})],Nt.prototype,"alignItems",2),te([l({type:String})],Nt.prototype,"label",2),te([l({type:String})],Nt.prototype,"description",2),te([it({slot:"label",flatten:!0})],Nt.prototype,"slotLabelNodes",2),te([it({slot:"description",flatten:!0})],Nt.prototype,"slotDescriptionNodes",2),te([T()],Nt.prototype,"hasDescription",2),te([T()],Nt.prototype,"hasLabel",2),Nt=te([_(jl)],Nt);var Fl=Object.defineProperty,zl=Object.getOwnPropertyDescriptor,Tt=(r,t,s,i)=>{for(var e=i>1?void 0:i?zl(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&&Fl(t,s,e),e};const Rl="sonic-image";let Pt=class extends w{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 g`<div part="image">
2679
+ `],se([l({type:String})],Mt.prototype,"alignItems",2),se([l({type:String})],Mt.prototype,"label",2),se([l({type:String})],Mt.prototype,"description",2),se([rt({slot:"label",flatten:!0})],Mt.prototype,"slotLabelNodes",2),se([rt({slot:"description",flatten:!0})],Mt.prototype,"slotDescriptionNodes",2),se([T()],Mt.prototype,"hasDescription",2),se([T()],Mt.prototype,"hasLabel",2),Mt=se([w(jc)],Mt);var Fc=Object.defineProperty,zc=Object.getOwnPropertyDescriptor,It=(r,t,s,i)=>{for(var e=i>1?void 0:i?zc(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&&Fc(t,s,e),e};const Rc="sonic-image";let Pt=class extends _{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 g`<div part="image">
2649
2680
  <picture part="picture"
2650
2681
  ><img
2651
2682
  part="img"
2652
2683
  src="${this.src}"
2653
2684
  loading="${this.loading}"
2654
2685
  alt="${this.alt}"
2655
- style=${ut(r)}
2686
+ style=${ft(r)}
2656
2687
  /></picture>
2657
- </div>`}};Pt.styles=[P`
2688
+ </div>`}};Pt.styles=[$`
2658
2689
  :host {
2659
2690
  --sc-img-radius: 0;
2660
2691
  --sc-img-bg: var(--sc-placeholder-bg, rgba(12, 12, 12, 0.05));
@@ -2728,18 +2759,18 @@ ${this.value}</textarea
2728
2759
  opacity: 1;
2729
2760
  scale: 1;
2730
2761
  }
2731
- `],Tt([l({type:String})],Pt.prototype,"rounded",2),Tt([l({type:String})],Pt.prototype,"src",2),Tt([l({type:String})],Pt.prototype,"alt",2),Tt([l({type:String})],Pt.prototype,"loading",2),Tt([l({type:String,reflect:!0})],Pt.prototype,"transition",2),Tt([l({type:String})],Pt.prototype,"ratio",2),Tt([l({type:String})],Pt.prototype,"objectPosition",2),Tt([l({type:String})],Pt.prototype,"imageRendering",2),Tt([l({type:Boolean,reflect:!0})],Pt.prototype,"cover",2),Pt=Tt([_(Rl)],Pt);var Ul=Object.defineProperty,Vl=Object.getOwnPropertyDescriptor,wt=(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 Bl="sonic-menu";let pt=class extends w{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 g`<menu
2762
+ `],It([l({type:String})],Pt.prototype,"rounded",2),It([l({type:String})],Pt.prototype,"src",2),It([l({type:String})],Pt.prototype,"alt",2),It([l({type:String})],Pt.prototype,"loading",2),It([l({type:String,reflect:!0})],Pt.prototype,"transition",2),It([l({type:String})],Pt.prototype,"ratio",2),It([l({type:String})],Pt.prototype,"objectPosition",2),It([l({type:String})],Pt.prototype,"imageRendering",2),It([l({type:Boolean,reflect:!0})],Pt.prototype,"cover",2),Pt=It([w(Rc)],Pt);var Uc=Object.defineProperty,Vc=Object.getOwnPropertyDescriptor,wt=(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-menu";let ut=class extends _{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 g`<menu
2732
2763
  part="menu"
2733
2764
  class="shadowable"
2734
- style=${ut(r)}
2765
+ style=${ft(r)}
2735
2766
  >
2736
2767
  <slot @slotchange=${this.mainSlotChange}></slot>
2737
2768
  <sonic-pop
2738
- style=${ut(s)}
2769
+ style=${ft(s)}
2739
2770
  class=${this.hasMoreElements?"":"hidden"}
2740
2771
  >
2741
2772
  <sonic-menu-item
2742
- style=${ut(i)}
2773
+ style=${ft(i)}
2743
2774
  class="more-btn"
2744
2775
  shape=${this.moreShape}
2745
2776
  align="center"
@@ -2751,7 +2782,7 @@ ${this.value}</textarea
2751
2782
  </sonic-menu-item>
2752
2783
  <slot name="more" @slotchange=${this.checkIfMore} slot="content"></slot>
2753
2784
  </sonic-pop>
2754
- </menu>`}};pt.styles=[P`
2785
+ </menu>`}};ut.styles=[$`
2755
2786
  :host {
2756
2787
  display: block;
2757
2788
  --sc-menu-gap: 0.15rem;
@@ -2868,16 +2899,16 @@ ${this.value}</textarea
2868
2899
  rgba(0, 0, 0, 0) 100%
2869
2900
  );
2870
2901
  }
2871
- `,Mr],wt([l({type:String,reflect:!0})],pt.prototype,"size",2),wt([l({type:String,reflect:!0})],pt.prototype,"direction",2),wt([l({type:String})],pt.prototype,"gap",2),wt([l({type:String,reflect:!0})],pt.prototype,"align",2),wt([l({type:String,reflect:!0})],pt.prototype,"shadow",2),wt([l({type:String})],pt.prototype,"moreShape",2),wt([l({type:Boolean})],pt.prototype,"scrollable",2),wt([l({type:String})],pt.prototype,"minWidth",2),wt([ie("menu")],pt.prototype,"menu",2),wt([re({selector:"sonic-menu-item"})],pt.prototype,"menuChildren",2),wt([re({slot:"more",selector:"*"})],pt.prototype,"moreElements",2),wt([T()],pt.prototype,"hasMoreElements",2),pt=wt([_(Bl)],pt);var Hl=Object.defineProperty,ql=Object.getOwnPropertyDescriptor,Fr=(r,t,s,i)=>{for(var e=i>1?void 0:i?ql(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&&Hl(t,s,e),e};const Wl="sonic-modal-actions";let Es=class extends w{firstUpdated(r){var t;(t=this.buttons)==null||t.forEach(s=>{s.addEventListener("click",()=>{if(s.getAttribute("hideModal")!="false"){const i=ue.getClosestElement(this,"sonic-modal");i==null||i.hide()}})}),super.firstUpdated(r)}render(){return g`<slot></slot>`}};Es.styles=[P`
2902
+ `,vo],wt([l({type:String,reflect:!0})],ut.prototype,"size",2),wt([l({type:String,reflect:!0})],ut.prototype,"direction",2),wt([l({type:String})],ut.prototype,"gap",2),wt([l({type:String,reflect:!0})],ut.prototype,"align",2),wt([l({type:String,reflect:!0})],ut.prototype,"shadow",2),wt([l({type:String})],ut.prototype,"moreShape",2),wt([l({type:Boolean})],ut.prototype,"scrollable",2),wt([l({type:String})],ut.prototype,"minWidth",2),wt([oe("menu")],ut.prototype,"menu",2),wt([ne({selector:"sonic-menu-item"})],ut.prototype,"menuChildren",2),wt([ne({slot:"more",selector:"*"})],ut.prototype,"moreElements",2),wt([T()],ut.prototype,"hasMoreElements",2),ut=wt([w(Hc)],ut);var Bc=Object.defineProperty,qc=Object.getOwnPropertyDescriptor,wo=(r,t,s,i)=>{for(var e=i>1?void 0:i?qc(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&&Bc(t,s,e),e};const Wc="sonic-modal-actions";let Ys=class extends _{firstUpdated(r){var t;(t=this.buttons)==null||t.forEach(s=>{s.addEventListener("click",()=>{if(s.getAttribute("hideModal")!="false"){const i=fe.getClosestElement(this,"sonic-modal");i==null||i.hide()}})}),super.firstUpdated(r)}render(){return g`<slot></slot>`}};Ys.styles=[$`
2872
2903
  :host {
2873
2904
  display: flex;
2874
2905
  gap: 0.5rem;
2875
2906
  margin-top: auto;
2876
2907
  padding-top: 1.5rem;
2877
2908
  }
2878
- `],Fr([re({selector:"sonic-button"})],Es.prototype,"buttons",2),Es=Fr([_(Wl)],Es);var Kl=Object.defineProperty,Yl=Object.getOwnPropertyDescriptor,zr=(r,t,s,i)=>{for(var e=i>1?void 0:i?Yl(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&&Kl(t,s,e),e};const Zl="sonic-modal-close";let Ns=class extends w{render(){return g`<sonic-button reset=${x(this.reset)} shape="circle" @click=${this.handleClick}
2909
+ `],wo([ne({selector:"sonic-button"})],Ys.prototype,"buttons",2),Ys=wo([w(Wc)],Ys);var Kc=Object.defineProperty,Yc=Object.getOwnPropertyDescriptor,$o=(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-modal-close";let Zs=class extends _{render(){return g`<sonic-button reset=${x(this.reset)} shape="circle" @click=${this.handleClick}
2879
2910
  ><sonic-icon name="cancel" size="lg"></sonic-icon
2880
- ></sonic-button>`}handleClick(){Z.getClosestElement(this,"sonic-modal").hide()}};Ns.styles=[P`
2911
+ ></sonic-button>`}handleClick(){G.getClosestElement(this,"sonic-modal").hide()}};Zs.styles=[$`
2881
2912
  :host {
2882
2913
  position: sticky;
2883
2914
  display: block;
@@ -2888,45 +2919,51 @@ ${this.value}</textarea
2888
2919
  transform: translate3d(calc(var(--sc-modal-px)), calc(-1 * var(--sc-modal-py)), 0);
2889
2920
  z-index: 20;
2890
2921
  }
2891
- `],zr([l()],Ns.prototype,"reset",2),Ns=zr([_(Zl)],Ns);var Gl=Object.defineProperty,Ql=Object.getOwnPropertyDescriptor,Xl=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ql(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&&Gl(t,s,e),e};const Jl="sonic-modal-content";let xi=class extends w{render(){return g`<slot></slot>`}};xi.styles=[P`
2922
+ `],$o([l()],Zs.prototype,"reset",2),Zs=$o([w(Zc)],Zs);var Gc=Object.defineProperty,Qc=Object.getOwnPropertyDescriptor,Xc=(r,t,s,i)=>{for(var e=i>1?void 0:i?Qc(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&&Gc(t,s,e),e};const Jc="sonic-modal-content";let Vi=class extends _{render(){return g`<slot></slot>`}};Vi.styles=[$`
2892
2923
  :host {
2893
2924
  display: block;
2894
2925
  width: 100%;
2895
2926
  }
2896
- `],xi=Xl([_(Jl)],xi);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-modal-subtitle";let Pi=class extends w{render(){return g`<slot></slot>`}};Pi.styles=[P`
2927
+ `],Vi=Xc([w(Jc)],Vi);var th=Object.defineProperty,eh=Object.getOwnPropertyDescriptor,sh=(r,t,s,i)=>{for(var e=i>1?void 0:i?eh(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&&th(t,s,e),e};const ih="sonic-modal-subtitle";let Hi=class extends _{render(){return g`<slot></slot>`}};Hi.styles=[$`
2897
2928
  :host {
2898
2929
  font-size: 1.1rem;
2899
2930
  display: block;
2900
2931
  line-height: 1.1rem;
2901
2932
  line-height: var(--sc-headings-line-height, 1.1);
2902
- font-family: var(--sc-headings-font-family);
2933
+ font-family: var(
2934
+ --sc-headings-font-family,
2935
+ var(--sc-font-family-base, sans-serif)
2936
+ );
2903
2937
  font-weight: var(--sc-headings-font-weight, 700);
2904
2938
  font-style: var(--sc-headings-font-style, normal);
2905
2939
  }
2906
- `],Pi=sc([_(ic)],Pi);var rc=Object.defineProperty,oc=Object.getOwnPropertyDescriptor,nc=(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};const ac="sonic-modal-title";let $i=class extends w{render(){return g`<slot></slot>`}};$i.styles=[P`
2940
+ `],Hi=sh([w(ih)],Hi);var rh=Object.defineProperty,oh=Object.getOwnPropertyDescriptor,nh=(r,t,s,i)=>{for(var e=i>1?void 0:i?oh(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&&rh(t,s,e),e};const ah="sonic-modal-title";let Bi=class extends _{render(){return g`<slot></slot>`}};Bi.styles=[$`
2907
2941
  :host {
2908
2942
  font-weight: bold;
2909
2943
  font-size: 1.5rem;
2910
2944
  display: block;
2911
2945
  line-height: var(--sc-headings-line-height, 1.1);
2912
- font-family: var(--sc-headings-font-family);
2946
+ font-family: var(
2947
+ --sc-headings-font-family,
2948
+ var(--sc-font-family-base, sans-serif)
2949
+ );
2913
2950
  font-weight: var(--sc-headings-font-weight, 700);
2914
2951
  font-style: var(--sc-headings-font-style, normal);
2915
2952
  }
2916
- `],$i=nc([_(ac)],$i);var lc=Object.defineProperty,cc=Object.getOwnPropertyDescriptor,tt=(r,t,s,i)=>{for(var e=i>1?void 0:i?cc(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&&lc(t,s,e),e};const Rr="sonic-modal";let j=class extends G(w){constructor(){super(...arguments),this.forceAction=!1,this.removeOnHide=!1,this.removeHashOnHide=!1,this.align="left",this.padding="var(--sc-modal-py) var(--sc-modal-px)",this.maxWidth="var(--sc-modal-max-w) ",this.maxHeight="var(--sc-modal-max-h) ",this.width="100%",this.height="auto",this.zIndex="var(--sc-modal-z-index)",this.fullScreen=!1,this.visible=!1}static create(r){const t=document.createElement(Rr);return t.options=r,r.removeHashOnHide===!0&&t.setAttribute("removeHashOnHide","true"),r.removeOnHide===!0&&t.setAttribute("removeOnHide","true"),r.maxWidth&&(t.maxWidth=r==null?void 0:r.maxWidth),r.width&&(t.width=r==null?void 0:r.width),r.maxHeight&&(t.maxHeight=r==null?void 0:r.maxHeight),r.height&&(t.height=r==null?void 0:r.height),r.forceAction&&(t.forceAction=!0),r.fullScreen&&(t.fullScreen=r==null?void 0:r.fullScreen),r.effect&&(t.effect=r==null?void 0:r.effect),r.paddingX&&t.style.setProperty("--sc-modal-px",r==null?void 0:r.paddingX),r.paddingY&&t.style.setProperty("--sc-modal-py",r==null?void 0:r.paddingY),r.zIndex&&t.style.setProperty("--sc-modal-z-index",r==null?void 0:r.zIndex),vt.getPopContainer().appendChild(t),t.show(),t}connectedCallback(){j.modals.push(this),super.connectedCallback(),this.handleFullsceen()}disconnectedCallback(){j.modals.splice(j.modals.indexOf(this),1),super.disconnectedCallback()}updated(){const r=this;document.addEventListener("keydown",this.handleEscape),r.closeBtn.forEach(t=>{t.addEventListener("click",function(){r.hide()},{once:!0})})}willUpdate(r){r.has("fullScreen")&&this.handleFullsceen(),r.has("effect")&&(this.effect=="fade"?this.animation={keyframeOptions:{duration:400},in:gr,out:fr}:this.effect=="none"?this.animation=void 0:this.animation={keyframeOptions:{duration:400,easing:"cubic-bezier(0.250, 0.250, 0.420, 1.225)"},in:[{transform:"translateY(25%) scale(1)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}],out:[{transform:"translateY(20%) scale(1)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}]}),super.willUpdate(r)}render(){if(this.visible==!1)return C;const r={padding:this.padding,maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,zIndex:this.zIndex,borderRadius:this.fullScreen?"0":"var(--sc-modal-rounded)"},t={maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,borderRadius:this.fullScreen?"0":"var(--sc-modal-rounded)"};return g`<div
2953
+ `],Bi=nh([w(ah)],Bi);var lh=Object.defineProperty,ch=Object.getOwnPropertyDescriptor,et=(r,t,s,i)=>{for(var e=i>1?void 0:i?ch(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&&lh(t,s,e),e};const xo="sonic-modal";let j=class extends Q(_){constructor(){super(...arguments),this.forceAction=!1,this.removeOnHide=!1,this.removeHashOnHide=!1,this.align="left",this.padding="var(--sc-modal-py) var(--sc-modal-px)",this.maxWidth="var(--sc-modal-max-w) ",this.maxHeight="var(--sc-modal-max-h) ",this.width="100%",this.height="auto",this.zIndex="var(--sc-modal-z-index)",this.fullScreen=!1,this.visible=!1}static create(r){const t=document.createElement(xo);return t.options=r,r.removeHashOnHide===!0&&t.setAttribute("removeHashOnHide","true"),r.removeOnHide===!0&&t.setAttribute("removeOnHide","true"),r.maxWidth&&(t.maxWidth=r==null?void 0:r.maxWidth),r.width&&(t.width=r==null?void 0:r.width),r.maxHeight&&(t.maxHeight=r==null?void 0:r.maxHeight),r.height&&(t.height=r==null?void 0:r.height),r.forceAction&&(t.forceAction=!0),r.fullScreen&&(t.fullScreen=r==null?void 0:r.fullScreen),r.effect&&(t.effect=r==null?void 0:r.effect),r.paddingX&&t.style.setProperty("--sc-modal-px",r==null?void 0:r.paddingX),r.paddingY&&t.style.setProperty("--sc-modal-py",r==null?void 0:r.paddingY),r.zIndex&&t.style.setProperty("--sc-modal-z-index",r==null?void 0:r.zIndex),yt.getPopContainer().appendChild(t),t.show(),t}connectedCallback(){j.modals.push(this),super.connectedCallback(),this.handleFullsceen()}disconnectedCallback(){j.modals.splice(j.modals.indexOf(this),1),super.disconnectedCallback()}updated(){const r=this;document.addEventListener("keydown",this.handleEscape),r.closeBtn.forEach(t=>{t.addEventListener("click",function(){r.hide()},{once:!0})})}willUpdate(r){r.has("fullScreen")&&this.handleFullsceen(),r.has("effect")&&(this.effect=="fade"?this.animation={keyframeOptions:{duration:400},in:Gr,out:Zr}:this.effect=="none"?this.animation=void 0:this.animation={keyframeOptions:{duration:400,easing:"cubic-bezier(0.250, 0.250, 0.420, 1.225)"},in:[{transform:"translateY(25%) scale(1)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}],out:[{transform:"translateY(20%) scale(1)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}]}),super.willUpdate(r)}render(){if(this.visible==!1)return A;const r={padding:this.padding,maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,zIndex:this.zIndex,borderRadius:this.fullScreen?"0":"var(--sc-modal-rounded)"},t={maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,borderRadius:this.fullScreen?"0":"var(--sc-modal-rounded)"};return g`<div
2917
2954
  class="modal-wrapper"
2918
- style=${ut(t)}
2919
- ${ws({out:fr})}
2955
+ style=${ft(t)}
2956
+ ${Is({out:Zr})}
2920
2957
  tabindex="0"
2921
2958
  >
2922
2959
  <div
2923
2960
  part="modal"
2924
2961
  class="modal custom-scroll"
2925
- style=${ut(r)}
2926
- ${ws(this.animation)}
2962
+ style=${ft(r)}
2963
+ ${Is(this.animation)}
2927
2964
  >
2928
2965
  <div class="modal-content">
2929
- ${this.forceAction?C:g`<sonic-modal-close></sonic-modal-close>`}
2966
+ ${this.forceAction?A:g`<sonic-modal-close></sonic-modal-close>`}
2930
2967
  ${this.modalFragment("title")} ${this.modalFragment("subtitle")}
2931
2968
  ${this.modalFragment("content")} ${this.modalFragment("actions")}
2932
2969
 
@@ -2937,8 +2974,8 @@ ${this.value}</textarea
2937
2974
  <div
2938
2975
  class="overlay"
2939
2976
  @click="${this.forceAction?null:this.hide}"
2940
- ${ws({keyframeOptions:{duration:500},in:gr,out:[{opacity:0,pointerEvents:"none"}]})}
2941
- ></div>`}modalFragment(r){var i;const t=(i=this.options)==null?void 0:i[r];if(!t)return C;let s;switch(t instanceof Object?s=t:s=F(t),r){case"title":return g`<sonic-modal-title>${s}</sonic-modal-title>`;case"subtitle":return g`<sonic-modal-subtitle>${s}</sonic-modal-subtitle>`;case"content":return g`<sonic-modal-content>${s}</sonic-modal-content>`;case"actions":return g`<sonic-modal-actions>${s}</sonic-modal-actions>`;default:return C}}show(){var r,t;this.visible=!0,(r=this.modalElement)==null||r.setAttribute("tabindex","0"),(t=this.modalElement)==null||t.focus(),this.dispatchEvent(new CustomEvent("show"))}hide(){var r;this.visible=!1,(r=this.modalElement)==null||r.setAttribute("tabindex","-1"),this.dispatchEvent(new CustomEvent("hide")),this.hasAttribute("resetDataProviderOnHide")&&et.get(this.getAttribute("resetDataProviderOnHide")).set({}),setTimeout(()=>{this.removeHashOnHide&&window.history.replaceState({},"",window.location.pathname),this.removeOnHide&&this.remove(),this.dispatchEvent(new CustomEvent("hidden"))},480)}dispose(){this.hide(),this.remove()}static disposeAll(){j.modals.forEach(r=>{r.dispose()})}handleEscape(r){r.key==="Escape"&&j.modals.forEach(t=>{t.forceAction||t.hide()})}handleFullsceen(){this.fullScreen&&(this.width="100%",this.height="100%",this.maxWidth="none",this.maxHeight="none")}};j.styles=[Ge,P`
2977
+ ${Is({keyframeOptions:{duration:500},in:Gr,out:[{opacity:0,pointerEvents:"none"}]})}
2978
+ ></div>`}modalFragment(r){var i;const t=(i=this.options)==null?void 0:i[r];if(!t)return A;let s;switch(t instanceof Object?s=t:s=F(t),r){case"title":return g`<sonic-modal-title>${s}</sonic-modal-title>`;case"subtitle":return g`<sonic-modal-subtitle>${s}</sonic-modal-subtitle>`;case"content":return g`<sonic-modal-content>${s}</sonic-modal-content>`;case"actions":return g`<sonic-modal-actions>${s}</sonic-modal-actions>`;default:return A}}show(){var r,t;this.visible=!0,(r=this.modalElement)==null||r.setAttribute("tabindex","0"),(t=this.modalElement)==null||t.focus(),this.dispatchEvent(new CustomEvent("show"))}hide(){var r;this.visible=!1,(r=this.modalElement)==null||r.setAttribute("tabindex","-1"),this.dispatchEvent(new CustomEvent("hide")),this.hasAttribute("resetDataProviderOnHide")&&st.get(this.getAttribute("resetDataProviderOnHide")).set({}),setTimeout(()=>{this.removeHashOnHide&&window.history.replaceState({},"",window.location.pathname),this.removeOnHide&&this.remove(),this.dispatchEvent(new CustomEvent("hidden"))},480)}dispose(){this.hide(),this.remove()}static disposeAll(){j.modals.forEach(r=>{r.dispose()})}handleEscape(r){r.key==="Escape"&&j.modals.forEach(t=>{t.forceAction||t.hide()})}handleFullsceen(){this.fullScreen&&(this.width="100%",this.height="100%",this.maxWidth="none",this.maxHeight="none")}};j.styles=[as,$`
2942
2979
  :host {
2943
2980
  --sc-modal-py: 2.5rem;
2944
2981
  --sc-modal-px: 1.5rem;
@@ -2973,8 +3010,8 @@ ${this.value}</textarea
2973
3010
  }
2974
3011
 
2975
3012
  .modal {
2976
- background: var(--sc-base);
2977
- color: var(--sc-base-content);
3013
+ background: var(--sc-base, #fff);
3014
+ color: var(--sc-base-content, #000);
2978
3015
  width: 100%;
2979
3016
  box-shadow: var(--sc-shadow-lg);
2980
3017
  border-radius: var(--sc-modal-rounded) var(--sc-modal-rounded) 0 0;
@@ -2984,7 +3021,10 @@ ${this.value}</textarea
2984
3021
  }
2985
3022
 
2986
3023
  .overlay {
2987
- background: var(--sc-modal-overlay-bg, var(--sc-base-200));
3024
+ background: var(
3025
+ --sc-modal-overlay-bg,
3026
+ var(--sc-base-200, rgba(0, 0, 0, 0.12))
3027
+ );
2988
3028
  left: 0;
2989
3029
  top: 0;
2990
3030
  right: 0;
@@ -3054,65 +3094,69 @@ ${this.value}</textarea
3054
3094
  :host([rounded="none"]) modal {
3055
3095
  --sc-img-radius: 0 !important;
3056
3096
  }
3057
- `],j.modals=[],tt([l({type:Boolean})],j.prototype,"forceAction",2),tt([l({type:Boolean})],j.prototype,"removeOnHide",2),tt([l({type:Boolean})],j.prototype,"removeHashOnHide",2),tt([l({type:String,reflect:!0})],j.prototype,"align",2),tt([l({type:String})],j.prototype,"padding",2),tt([l({type:String})],j.prototype,"maxWidth",2),tt([l({type:String})],j.prototype,"maxHeight",2),tt([l({type:String})],j.prototype,"width",2),tt([l({type:String})],j.prototype,"height",2),tt([l({type:String})],j.prototype,"zIndex",2),tt([l({type:String})],j.prototype,"effect",2),tt([l({type:Object})],j.prototype,"options",2),tt([l({type:Boolean,reflect:!0})],j.prototype,"fullScreen",2),tt([l({type:Boolean,reflect:!0})],j.prototype,"visible",2),tt([l({type:Object})],j.prototype,"animation",2),tt([ie(".modal-wrapper")],j.prototype,"modalWrapper",2),tt([ie(".modal")],j.prototype,"modalElement",2),tt([re({selector:"sonic-modal-close"})],j.prototype,"closeBtn",2),j=tt([_(Rr)],j),typeof window<"u"&&(window.SonicModal=j);var hc=Object.defineProperty,dc=Object.getOwnPropertyDescriptor,Mt=(r,t,s,i)=>{for(var e=i>1?void 0:i?dc(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&&hc(t,s,e),e};const pc={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty",default:"info-empty"},uc="sonic-alert";let $t=class extends w{constructor(){super(...arguments),this.label="",this.noIcon=!1,this.text="",this.id=new Date().getTime().toString(),this.dismissible=!1,this.background=!1,this.status="default",this.dismissForever=!1}render(){if(this.dismissForever){const r=localStorage.getItem("sonic-alert-dismissed")||"{}";if(JSON.parse(r)[this.id])return C}return g`<div part="alert" class="alert">
3058
- <slot name="icon" class="${this.noIcon?"hidden":C}"
3059
- >${this.noIcon?C:g`<div>${this.status&&g`<sonic-icon name=${pc[this.status]}></sonic-icon>`}</div>`}</slot
3097
+ `],j.modals=[],et([l({type:Boolean})],j.prototype,"forceAction",2),et([l({type:Boolean})],j.prototype,"removeOnHide",2),et([l({type:Boolean})],j.prototype,"removeHashOnHide",2),et([l({type:String,reflect:!0})],j.prototype,"align",2),et([l({type:String})],j.prototype,"padding",2),et([l({type:String})],j.prototype,"maxWidth",2),et([l({type:String})],j.prototype,"maxHeight",2),et([l({type:String})],j.prototype,"width",2),et([l({type:String})],j.prototype,"height",2),et([l({type:String})],j.prototype,"zIndex",2),et([l({type:String})],j.prototype,"effect",2),et([l({type:Object})],j.prototype,"options",2),et([l({type:Boolean,reflect:!0})],j.prototype,"fullScreen",2),et([l({type:Boolean,reflect:!0})],j.prototype,"visible",2),et([l({type:Object})],j.prototype,"animation",2),et([oe(".modal-wrapper")],j.prototype,"modalWrapper",2),et([oe(".modal")],j.prototype,"modalElement",2),et([ne({selector:"sonic-modal-close"})],j.prototype,"closeBtn",2),j=et([w(xo)],j),typeof window<"u"&&(window.SonicModal=j);var hh=Object.defineProperty,dh=Object.getOwnPropertyDescriptor,jt=(r,t,s,i)=>{for(var e=i>1?void 0:i?dh(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&&hh(t,s,e),e};const ph={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty",default:"info-empty"},uh="sonic-alert";let At=class extends _{constructor(){super(...arguments),this.label="",this.noIcon=!1,this.text="",this.id=new Date().getTime().toString(),this.dismissible=!1,this.background=!1,this.status="default",this.dismissForever=!1}render(){if(this.dismissForever){const r=localStorage.getItem("sonic-alert-dismissed")||"{}";if(JSON.parse(r)[this.id])return A}return g`
3098
+ <slot name="icon" class="${this.noIcon?"hidden":""}"
3099
+ >${this.noIcon?A:g`<div>
3100
+ ${this.status&&g`<sonic-icon name=${ph[this.status]}></sonic-icon>`}
3101
+ </div>`}</slot
3060
3102
  >
3061
- <div>
3062
- ${this.label?g`<span class="label">${F(this.label)}</span>`:C}
3103
+ <div class="content">
3104
+ ${this.label?g`<span class="label">${F(this.label)}</span>`:A}
3063
3105
  <div>${this.text}<slot></slot></div>
3064
3106
  </div>
3065
- ${this.dismissible?g`<sonic-button @click=${this.close} class="close-btn" variant="unstyled" shape="circle">
3066
- <sonic-icon name="cancel" size="lg"></sonic-icon>
3067
- </sonic-button>`:C}
3068
- </div>`}close(){if(this.remove(),this.dismissForever){const r=localStorage.getItem("sonic-alert-dismissed")||"{}",t=JSON.parse(r);t[this.id]=!0,localStorage.setItem("sonic-alert-dismissed",JSON.stringify(t))}}};$t.styles=[Dt,P`
3107
+ ${this.dismissible?g`<sonic-button
3108
+ @click=${this.close}
3109
+ class="close-btn"
3110
+ variant="unstyled"
3111
+ shape="circle"
3112
+ icon
3113
+ >
3114
+ <sonic-icon name="cancel"></sonic-icon>
3115
+ </sonic-button>`:A}
3116
+ `}close(){if(this.remove(),this.dismissForever){const r=localStorage.getItem("sonic-alert-dismissed")||"{}",t=JSON.parse(r);t[this.id]=!0,localStorage.setItem("sonic-alert-dismissed",JSON.stringify(t))}}};At.styles=[Lt,$`
3069
3117
  :host {
3070
- --sc-alert-color: var(--sc-base-content);
3071
- --sc-alert-rounded: var(--sc-rounded);
3072
- --sc-alert-fw: var(--sc-font-weight-base);
3073
- --sc-alert-fst: var(--sc-font-style-base);
3074
- --sc-alert-label-fw: bold;
3075
- display: block;
3076
- font-weight: var(--sc-alert-fw);
3077
- font-style: var(--sc-alert-fst);
3078
- }
3079
-
3080
- .alert {
3081
- color: var(--sc-alert-color);
3118
+ --sc_color: var(--sc-base-content, #000);
3119
+ --sc_rounded: var(--sc-rounded);
3120
+ --sc_fw: var(--sc-font-weight-base, 400);
3121
+ --sc_fst: var(--sc-font-style-base, normal);
3122
+ --sc_label-fw: bold;
3123
+
3124
+ font-weight: var(--sc_fw);
3125
+ font-style: var(--sc_fst);
3126
+ color: var(--sc_color);
3082
3127
  position: relative;
3083
3128
  display: flex;
3084
3129
  gap: 0.4em;
3085
- border-radius: var(--sc-alert-rounded);
3086
- overflow: hidden;
3130
+ border-radius: var(--sc_rounded);
3087
3131
  }
3088
3132
 
3089
3133
  .label {
3090
- font-weight: var(--sc-alert-label-fw);
3134
+ font-weight: var(--sc_label-fw);
3091
3135
  margin-bottom: 0.15em;
3092
3136
  display: block;
3093
3137
  }
3094
3138
 
3095
3139
  :host([status="warning"]) {
3096
- --sc-alert-color: var(--sc-warning);
3140
+ --sc_color: var(--sc-warning, var(--sc-base-content, #000));
3097
3141
  }
3098
3142
  :host([status="error"]) {
3099
- --sc-alert-color: var(--sc-danger);
3143
+ --sc_color: var(--sc-danger, var(--sc-base-content, #000));
3100
3144
  }
3101
3145
  :host([status="info"]) {
3102
- --sc-alert-color: var(--sc-info);
3146
+ --sc_color: var(--sc-info, var(--sc-base-content, #000));
3103
3147
  }
3104
3148
  :host([status="success"]) {
3105
- --sc-alert-color: var(--sc-success);
3149
+ --sc_color: var(--sc-success, var(--sc-base-content, #000));
3106
3150
  }
3107
3151
 
3108
3152
  /*background*/
3109
- :host([dismissible]) .alert,
3110
- :host([background]) .alert {
3111
- background: var(--sc-base);
3153
+ :host([dismissible]),
3154
+ :host([background]) {
3155
+ background: var(--sc-base, #fff);
3112
3156
  padding: 0.8em 1.15em;
3113
3157
  }
3114
- :host([dismissible]) .alert:before,
3115
- :host([background]) .alert:before {
3158
+ :host([dismissible]):before,
3159
+ :host([background]):before {
3116
3160
  background-color: currentColor;
3117
3161
  content: "";
3118
3162
  display: block;
@@ -3122,11 +3166,11 @@ ${this.value}</textarea
3122
3166
  right: 0;
3123
3167
  bottom: 0;
3124
3168
  opacity: 0.08;
3125
- border-radius: var(--sc-alert-rounded);
3169
+ border-radius: var(--sc_rounded);
3126
3170
  pointer-events: none;
3127
3171
  }
3128
- :host([dismissible]) > div,
3129
- :host([background]) > div {
3172
+
3173
+ .content {
3130
3174
  z-index: 2;
3131
3175
  position: relative;
3132
3176
  }
@@ -3140,50 +3184,48 @@ ${this.value}</textarea
3140
3184
  }
3141
3185
 
3142
3186
  /*Rounded*/
3143
- :host([size="xs"]) .alert {
3144
- --sc-alert-rounded: var(--sc-rounded-sm);
3145
- }
3146
- :host([size="sm"]) .alert {
3147
- --sc-alert-rounded: var(--sc-rounded-sm);
3187
+ :host([size="2xs"]),
3188
+ :host([size="xs"]),
3189
+ :host([size="sm"]) {
3190
+ --sc_rounded: var(--sc-rounded-sm);
3148
3191
  }
3149
3192
 
3150
3193
  /*Dismissible*/
3151
- :host([dismissible]) .alert {
3194
+ :host([dismissible]) {
3152
3195
  padding-right: 3rem;
3153
3196
  }
3154
3197
  :host([dismissible]) .close-btn {
3155
- padding: 0.5em;
3156
3198
  position: absolute;
3157
- top: 0.25rem;
3158
- right: 0.25rem;
3199
+ top: 0.4rem;
3200
+ right: 0.3rem;
3159
3201
  }
3160
- `],Mt([l({type:String})],$t.prototype,"label",2),Mt([l({type:Boolean,reflect:!0})],$t.prototype,"noIcon",2),Mt([l({type:String})],$t.prototype,"text",2),Mt([l({type:String})],$t.prototype,"id",2),Mt([l({type:String,reflect:!0})],$t.prototype,"size",2),Mt([l({type:Boolean,reflect:!0})],$t.prototype,"dismissible",2),Mt([l({type:Boolean,reflect:!0})],$t.prototype,"background",2),Mt([l({type:String,reflect:!0})],$t.prototype,"status",2),Mt([l({type:Boolean,reflect:!0})],$t.prototype,"dismissForever",2),$t=Mt([_(uc)],$t);var fc=Object.defineProperty,gc=Object.getOwnPropertyDescriptor,ss=(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&&fc(t,s,e),e};const mc="sonic-alert-messages";let we=class extends G(w){constructor(){super(...arguments),this.size="md",this.background=!1,this.noIcon=!1,this.messages=[]}render(){var r;return(r=this.messages)!=null&&r.length?g`<div class="container">
3161
- ${Dr(this.messages,t=>t.type=="public"?g`<sonic-alert
3202
+ `],jt([l({type:String})],At.prototype,"label",2),jt([l({type:Boolean,reflect:!0})],At.prototype,"noIcon",2),jt([l({type:String})],At.prototype,"text",2),jt([l({type:String})],At.prototype,"id",2),jt([l({type:String,reflect:!0})],At.prototype,"size",2),jt([l({type:Boolean,reflect:!0})],At.prototype,"dismissible",2),jt([l({type:Boolean,reflect:!0})],At.prototype,"background",2),jt([l({type:String,reflect:!0})],At.prototype,"status",2),jt([l({type:Boolean,reflect:!0})],At.prototype,"dismissForever",2),At=jt([w(uh)],At);var fh=Object.defineProperty,gh=Object.getOwnPropertyDescriptor,us=(r,t,s,i)=>{for(var e=i>1?void 0:i?gh(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&&fh(t,s,e),e};const mh="sonic-alert-messages";let Pe=class extends Q(_){constructor(){super(...arguments),this.size="md",this.background=!1,this.noIcon=!1,this.messages=[]}render(){var r;return(r=this.messages)!=null&&r.length?g`<div class="container">
3203
+ ${ho(this.messages,t=>t.type=="public"?g`<sonic-alert
3162
3204
  status=${t.status||"default"}
3163
3205
  text=${x(t.content)}
3164
3206
  size=${this.size}
3165
3207
  ?noIcon=${this.noIcon}
3166
3208
  ?background=${this.background}
3167
- ></sonic-alert>`:C)}
3168
- </div>`:C}};we.styles=[P`
3209
+ ></sonic-alert>`:A)}
3210
+ </div>`:A}};Pe.styles=[$`
3169
3211
  .container {
3170
3212
  display: grid;
3171
3213
  gap: 0.5em;
3172
3214
  grid-template-columns: minmax(0, 1fr);
3173
3215
  width: 100%;
3174
3216
  }
3175
- `],ss([l({type:String})],we.prototype,"size",2),ss([l({type:Boolean})],we.prototype,"background",2),ss([l({type:Boolean})],we.prototype,"noIcon",2),ss([l({type:Array})],we.prototype,"messages",2),we=ss([_(mc)],we);var bc=Object.defineProperty,vc=Object.getOwnPropertyDescriptor,Ur=(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&&bc(t,s,e),e};const yc="sonic-toast-message-subscriber";let Ci=class extends G(w){constructor(){super(...arguments),this._messages=[]}get messages(){return this._messages}set messages(r){this._messages=r,this.messages&&r.forEach(t=>{t.type=="public"&&M.add({text:t.content||"",status:t.status})})}render(){return C}};Ur([l({type:Array})],Ci.prototype,"messages",1),Ci=Ur([_(yc)],Ci);var wc=Object.defineProperty,_c=Object.getOwnPropertyDescriptor,is=(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&&wc(t,s,e),e};const xc="sonic-tooltip";let _e=class extends w{constructor(){super(...arguments),this.label="",this.disabled=!1,this.focusable=!1}connectedCallback(){this.focusable&&this.setAttribute("tabindex","0"),super.connectedCallback()}render(){const r=this.disabled||this.label==""?"disabled":"";return g`<div
3217
+ `],us([l({type:String})],Pe.prototype,"size",2),us([l({type:Boolean})],Pe.prototype,"background",2),us([l({type:Boolean})],Pe.prototype,"noIcon",2),us([l({type:Array})],Pe.prototype,"messages",2),Pe=us([w(mh)],Pe);var bh=Object.defineProperty,vh=Object.getOwnPropertyDescriptor,Po=(r,t,s,i)=>{for(var e=i>1?void 0:i?vh(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&&bh(t,s,e),e};const yh="sonic-toast-message-subscriber";let qi=class extends Q(_){constructor(){super(...arguments),this._messages=[]}get messages(){return this._messages}set messages(r){this._messages=r,this.messages&&r.forEach(t=>{t.type=="public"&&M.add({text:t.content||"",status:t.status})})}render(){return A}};Po([l({type:Array})],qi.prototype,"messages",1),qi=Po([w(yh)],qi);var _h=Object.defineProperty,wh=Object.getOwnPropertyDescriptor,fs=(r,t,s,i)=>{for(var e=i>1?void 0:i?wh(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&&_h(t,s,e),e};const $h="sonic-tooltip";let Ae=class extends _{constructor(){super(...arguments),this.label="",this.disabled=!1,this.focusable=!1}connectedCallback(){this.focusable&&this.setAttribute("tabindex","0"),super.connectedCallback()}render(){const r=this.disabled||this.label==""?"disabled":"";return g`<div
3176
3218
  data-tooltip-text="${this.label.trim().replace("&nbsp;"," ")}"
3177
3219
  class="tooltip ${r}"
3178
3220
  >
3179
3221
  <slot></slot>
3180
- </div>`}};_e.styles=[P`
3222
+ </div>`}};Ae.styles=[$`
3181
3223
  :host {
3182
3224
  position: relative;
3183
3225
  display: inline-flex;
3184
3226
  align-items: center;
3185
3227
  text-align: center;
3186
- --sc-tooltip-fw: var(--sc-font-weight-base);
3228
+ --sc-tooltip-fw: var(--sc-font-weight-base, 400);
3187
3229
  --sc-tooltip-position: calc(100% + 0.25rem);
3188
3230
  }
3189
3231
 
@@ -3194,7 +3236,7 @@ ${this.value}</textarea
3194
3236
  display: block;
3195
3237
  opacity: 0;
3196
3238
  pointer-events: none;
3197
- background: var(--sc-base-content, #111827);
3239
+ background: var(--sc-base-content, #000);
3198
3240
  padding: 0.32rem 0.55rem;
3199
3241
  border-radius: var(--sc-rounded);
3200
3242
  color: var(--sc-base, #fff);
@@ -3276,20 +3318,25 @@ ${this.value}</textarea
3276
3318
  bottom: 0;
3277
3319
  left: var(--sc-tooltip-position);
3278
3320
  }
3279
- `],is([l({type:String})],_e.prototype,"label",2),is([l({type:String,reflect:!0})],_e.prototype,"placement",2),is([l({type:Boolean})],_e.prototype,"disabled",2),is([l({type:Boolean})],_e.prototype,"focusable",2),_e=is([_(xc)],_e);var Pc=Object.defineProperty,$c=Object.getOwnPropertyDescriptor,It=(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&&Pc(t,s,e),e};const Cc="sonic-divider";let Ct=class extends w{constructor(){super(...arguments),this.label="",this.align="center",this.vertical=!1,this.noMargin=!1,this.dashed=!1,this.dotted=!1}firstUpdated(r){var t,s;super.firstUpdated(r),(this.label||(t=this.slotNodes)!=null&&t.length)&&((s=this.divider)==null||s.classList.add("has-text"))}render(){return g`<div part="divider">
3280
- <span class="text">${F(this.label?this.label:"")}<slot></slot></span>
3281
- </div>`}};Ct.styles=[P`
3321
+ `],fs([l({type:String})],Ae.prototype,"label",2),fs([l({type:String,reflect:!0})],Ae.prototype,"placement",2),fs([l({type:Boolean})],Ae.prototype,"disabled",2),fs([l({type:Boolean})],Ae.prototype,"focusable",2),Ae=fs([w($h)],Ae);var xh=Object.defineProperty,Ph=Object.getOwnPropertyDescriptor,Ft=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ph(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&&xh(t,s,e),e};const Ah="sonic-divider";let Ct=class extends _{constructor(){super(...arguments),this.label="",this.align="center",this.vertical=!1,this.noMargin=!1,this.dashed=!1,this.dotted=!1}firstUpdated(r){var t,s;super.firstUpdated(r),(this.label||(t=this.slotNodes)!=null&&t.length)&&((s=this.divider)==null||s.classList.add("has-text"))}render(){return g`<div part="divider">
3322
+ <span class="text"
3323
+ >${F(this.label?this.label:"")}<slot></slot
3324
+ ></span>
3325
+ </div>`}};Ct.styles=[$`
3282
3326
  :host {
3283
3327
  --sc-divider-my: 0.5rem;
3284
3328
  --sc-divider-mx: 0;
3285
- --sc-divider-border-width: max(1px, var(--sc-border-width));
3329
+ --sc-divider-border-width: max(
3330
+ 1px,
3331
+ var(--sc-border-width, max(1px, 0.12rem))
3332
+ );
3286
3333
  --sc-divider-border-color: var(--sc-border-color);
3287
3334
  --sc-divider-border-style: solid;
3288
3335
  --sc-divider-color: currentColor;
3289
- --sc-divider-ff: var(--sc-font-family-base);
3336
+ --sc-divider-ff: var(--sc-font-family-base, sans-serif);
3290
3337
  --sc-divider-fs: 1rem;
3291
- --sc-divider-fw: var(--sc-font-weight-base);
3292
- --sc-divider-fst: var(--sc-font-style-base);
3338
+ --sc-divider-fw: var(--sc-font-weight-base, 400);
3339
+ --sc-divider-fst: var(--sc-font-style-base, normal);
3293
3340
 
3294
3341
  margin: var(--sc-divider-my) var(--sc-divider-mx);
3295
3342
  font-size: var(--sc-divider-fs);
@@ -3342,7 +3389,8 @@ ${this.value}</textarea
3342
3389
  div::after {
3343
3390
  content: "";
3344
3391
  flex-grow: 1;
3345
- border-top: var(--sc-divider-border-width) var(--sc-divider-border-style) var(--sc-divider-border-color);
3392
+ border-top: var(--sc-divider-border-width)
3393
+ var(--sc-divider-border-style) var(--sc-divider-border-color);
3346
3394
  width: 100%;
3347
3395
  opacity: var(--sc-divider-opacity, 1);
3348
3396
  }
@@ -3363,7 +3411,7 @@ ${this.value}</textarea
3363
3411
  :host([vertical]) div {
3364
3412
  flex-direction: column;
3365
3413
  height: 100%;
3366
- min-height: var(--sc-form-height);
3414
+ min-height: var(--sc-form-height, 2.5em);
3367
3415
  }
3368
3416
 
3369
3417
  :host([vertical]) .has-text {
@@ -3373,7 +3421,8 @@ ${this.value}</textarea
3373
3421
  :host([vertical]) div::before,
3374
3422
  :host([vertical]) div::after {
3375
3423
  border-top: none;
3376
- border-left: var(--sc-divider-border-width) var(--sc-divider-border-style) var(--sc-divider-border-color);
3424
+ border-left: var(--sc-divider-border-width)
3425
+ var(--sc-divider-border-style) var(--sc-divider-border-color);
3377
3426
  width: auto;
3378
3427
  height: 100%;
3379
3428
  opacity: var(--sc-divider-opacity, 1);
@@ -3404,40 +3453,34 @@ ${this.value}</textarea
3404
3453
  :host([dashed]) {
3405
3454
  --sc-divider-border-style: dashed;
3406
3455
  }
3407
- `],It([it({flatten:!0})],Ct.prototype,"slotNodes",2),It([ie("div")],Ct.prototype,"divider",2),It([l({type:String})],Ct.prototype,"label",2),It([l({type:String,reflect:!0})],Ct.prototype,"size",2),It([l({type:String,reflect:!0})],Ct.prototype,"align",2),It([l({type:Boolean,reflect:!0})],Ct.prototype,"vertical",2),It([l({type:Boolean,reflect:!0})],Ct.prototype,"noMargin",2),It([l({type:Boolean,reflect:!0})],Ct.prototype,"dashed",2),It([l({type:Boolean,reflect:!0})],Ct.prototype,"dotted",2),Ct=It([_(Cc)],Ct);var Ac=Object.defineProperty,Sc=Object.getOwnPropertyDescriptor,Oc=(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&&Ac(t,s,e),e};const Dc="sonic-card-header-description";let Ai=class extends w{render(){return g` <slot></slot> `}};Ai.styles=[P`
3456
+ `],Ft([rt({flatten:!0})],Ct.prototype,"slotNodes",2),Ft([oe("div")],Ct.prototype,"divider",2),Ft([l({type:String})],Ct.prototype,"label",2),Ft([l({type:String,reflect:!0})],Ct.prototype,"size",2),Ft([l({type:String,reflect:!0})],Ct.prototype,"align",2),Ft([l({type:Boolean,reflect:!0})],Ct.prototype,"vertical",2),Ft([l({type:Boolean,reflect:!0})],Ct.prototype,"noMargin",2),Ft([l({type:Boolean,reflect:!0})],Ct.prototype,"dashed",2),Ft([l({type:Boolean,reflect:!0})],Ct.prototype,"dotted",2),Ct=Ft([w(Ah)],Ct);var Ch=Object.defineProperty,Sh=Object.getOwnPropertyDescriptor,Oh=(r,t,s,i)=>{for(var e=i>1?void 0:i?Sh(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&&Ch(t,s,e),e};const Dh="sonic-card-header-description";let Wi=class extends _{render(){return g`<slot></slot>`}};Wi.styles=[$`
3408
3457
  :host() {
3409
3458
  display: block;
3410
3459
  font-size: 0.7em;
3411
3460
  line-height: 1.1;
3412
- font-family: var(--sc-font-family-base);
3413
- font-weight: var(--sc-font-style-base);
3414
- }
3415
- `],Ai=Oc([_(Dc)],Ai);var kc=Object.defineProperty,Lc=Object.getOwnPropertyDescriptor,Si=(r,t,s,i)=>{for(var e=i>1?void 0:i?Lc(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 Ec="sonic-card-header";let rs=class extends w{render(){return g`
3416
- <div class="header">
3417
- <div class="header-content">
3418
- ${F(this.label)}
3419
- ${this.description?g`<sonic-card-header-description
3420
- >${F(this.description)}</sonic-card-header-description
3421
- >`:C}
3422
- <slot></slot>
3423
- </div>
3424
- <slot name="suffix"></slot>
3461
+ font-family: var(--sc-font-family-base, sans-serif);
3462
+ font-weight: var(--sc-font-style-base, normal);
3463
+ }
3464
+ `],Wi=Oh([w(Dh)],Wi);var kh=Object.defineProperty,Lh=Object.getOwnPropertyDescriptor,Ki=(r,t,s,i)=>{for(var e=i>1?void 0:i?Lh(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&&kh(t,s,e),e};const Eh="sonic-card-header";let gs=class extends _{render(){return g`
3465
+ <div class="header-content">
3466
+ ${F(this.label)}
3467
+ ${this.description?g`<sonic-card-header-description
3468
+ >${F(this.description)}</sonic-card-header-description
3469
+ >`:A}
3470
+ <slot></slot>
3425
3471
  </div>
3426
- `}};rs.styles=[P`
3472
+ <slot name="suffix"></slot>
3473
+ `}};gs.styles=[$`
3427
3474
  :host {
3428
3475
  --sc-card-header-mb: 1.35rem;
3429
3476
  --sc-card-header-font-size: 1.875rem;
3430
3477
  --sc-card-header-font-weight: var(--sc-headings-font-weight, 700);
3431
3478
  --sc-card-header-font-style: var(--sc-headings-font-style, normal);
3432
- --sc-card-header-family: var(--sc-headings-font-family);
3479
+ --sc-card-header-family: var(
3480
+ --sc-headings-font-family,
3481
+ var(--sc-font-family-base, sans-serif)
3482
+ );
3433
3483
  --sc-card-header-line-height: var(--sc-headings-line-height, 1.1);
3434
- }
3435
- @media print {
3436
- :host {
3437
- --sc-card-header-font-size: 1.45rem;
3438
- }
3439
- }
3440
- .header {
3441
3484
  display: flex;
3442
3485
  align-items: flex-start;
3443
3486
  gap: 0.5em 1em;
@@ -3448,6 +3491,11 @@ ${this.value}</textarea
3448
3491
  font-style: var(--sc-card-header-font-style);
3449
3492
  font-weight: var(--sc-card-header-font-weight);
3450
3493
  }
3494
+ @media print {
3495
+ :host {
3496
+ --sc-card-header-font-size: 1.45rem;
3497
+ }
3498
+ }
3451
3499
 
3452
3500
  .header-content {
3453
3501
  flex-grow: 1;
@@ -3460,148 +3508,133 @@ ${this.value}</textarea
3460
3508
  ::slotted(sonic-card-header-description) {
3461
3509
  margin-top: 0.1em;
3462
3510
  }
3463
- `],Si([l()],rs.prototype,"label",2),Si([l()],rs.prototype,"description",2),rs=Si([_(Ec)],rs);var Nc=Object.defineProperty,Tc=Object.getOwnPropertyDescriptor,Mc=(r,t,s,i)=>{for(var e=i>1?void 0:i?Tc(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 Ic="sonic-card-main";let Vr=class extends w{render(){return g`
3464
- <div>
3465
- <slot></slot>
3466
- </div>
3467
- `}};Vr=Mc([_(Ic)],Vr);var jc=Object.defineProperty,Fc=Object.getOwnPropertyDescriptor,zc=(r,t,s,i)=>{for(var e=i>1?void 0:i?Fc(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 Rc="sonic-card-footer";let Br=class extends w{render(){return g` <slot></slot> `}};Br=zc([_(Rc)],Br);var Uc=Object.defineProperty,Vc=Object.getOwnPropertyDescriptor,Hr=(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 Bc="sonic-card";let Ts=class extends w{constructor(){super(...arguments),this.type="default"}render(){return g`
3468
- <div part="card" class="card">
3469
- <slot></slot>
3470
- </div>
3471
- `}};Ts.styles=[P`
3472
- * {
3473
- box-sizing: border-box;
3474
- }
3511
+ `],Ki([l()],gs.prototype,"label",2),Ki([l()],gs.prototype,"description",2),gs=Ki([w(Eh)],gs);var Nh=Object.defineProperty,Th=Object.getOwnPropertyDescriptor,Mh=(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&&Nh(t,s,e),e};const Ih="sonic-card-main";let Yi=class extends _{render(){return g`<slot></slot>`}};Yi.styles=[$`
3475
3512
  :host {
3476
- --sc-card-padding: 1.5rem;
3477
- --sc-card-color: var(--sc-base-content);
3478
- --sc-card-bg: var(--sc-base);
3479
- --sc-card-rounded: var(--sc-rounded-lg);
3480
- --sc-card-shadow: var(--sc-shadow-lg);
3481
- -webkit-print-color-adjust: exact;
3482
- }
3483
-
3484
- @media print {
3485
- .card {
3486
- page-break-inside: avoid;
3487
- break-inside: avoid;
3488
- box-shadow: none !important;
3489
- border: 1px solid var(--sc-base-200);
3490
- }
3491
- }
3492
-
3493
- .card {
3494
- padding: var(--sc-card-padding);
3495
- background-color: var(--sc-card-bg);
3496
- border-radius: var(--sc-card-rounded);
3497
- box-shadow: var(--sc-card-shadow);
3498
- color: var(--sc-card-color);
3499
- }
3500
-
3501
- /*TYPES*/
3502
- :host([type="primary"]) {
3503
- --sc-card-bg: var(--sc-primary);
3504
- --sc-card-color: var(--sc-primary-content);
3505
- --sc-border-color: var(--sc-primary-content);
3506
- --sc-divider-opacity: 0.2;
3507
- }
3508
- :host([type="warning"]) {
3509
- --sc-card-bg: var(--sc-warning);
3510
- --sc-card-color: var(--sc-warning-content);
3511
- --sc-border-color: var(--sc-primary-content);
3512
- --sc-divider-opacity: 0.2;
3513
- }
3514
- :host([type="danger"]) {
3515
- --sc-card-bg: var(--sc-danger);
3516
- --sc-card-color: var(--sc-danger-content);
3517
- --sc-border-color: var(--sc-primary-content);
3518
- --sc-divider-opacity: 0.2;
3519
- }
3520
- :host([type="info"]) {
3521
- --sc-card-bg: var(--sc-info);
3522
- --sc-card-color: var(--sc-info-content);
3523
- --sc-border-color: var(--sc-primary-content);
3524
- --sc-divider-opacity: 0.2;
3525
- }
3526
- :host([type="success"]) {
3527
- --sc-card-bg: var(--sc-success);
3528
- --sc-card-color: var(--sc-success-content);
3529
- --sc-border-color: var(--sc-primary-content);
3530
- --sc-divider-opacity: 0.2;
3531
- }
3532
-
3533
- :host([type="light"]) {
3534
- --sc-card-bg: var(--sc-base-100);
3535
- --sc-card-color: var(--sc-base-content);
3536
- }
3537
-
3538
- :host([type="neutral"]) {
3539
- --sc-card-bg: var(--sc-base-content);
3540
- --sc-card-color: var(--sc-base);
3513
+ display: block;
3541
3514
  }
3542
-
3543
- :host([type="invert"]) {
3544
- --sc-card-color: var(--sc-base);
3545
- --sc-card-bg: var(--sc-base-900);
3515
+ `],Yi=Mh([w(Ih)],Yi);var jh=Object.defineProperty,Fh=Object.getOwnPropertyDescriptor,zh=(r,t,s,i)=>{for(var e=i>1?void 0:i?Fh(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&&jh(t,s,e),e};const Rh="sonic-card-footer";let Zi=class extends _{render(){return g` <slot></slot> `}};Zi.styles=[$`
3516
+ :host {
3517
+ display: block;
3546
3518
  }
3547
- `],Hr([l({type:String,reflect:!0})],Ts.prototype,"type",2),Ts=Hr([_(Bc)],Ts);const Oi=P`
3519
+ `],Zi=zh([w(Rh)],Zi);const Gi=$`
3548
3520
  :host {
3549
- --sc-color: inherit;
3550
- color: var(--sc-color);
3521
+ --sc-_color: inherit;
3522
+ color: var(--sc-_color);
3551
3523
  }
3552
3524
 
3553
3525
  :host([type="primary"]) {
3554
- --sc-color: var(--sc-primary);
3526
+ --sc-_color: var(--sc-primary, var(--sc-base-content, #000));
3555
3527
  }
3556
3528
  :host([type="warning"]) {
3557
- --sc-color: var(--sc-warning);
3529
+ --sc-_color: var(--sc-warning, var(--sc-base-content, #000));
3558
3530
  }
3559
3531
  :host([type="danger"]) {
3560
- --sc-color: var(--sc-danger);
3532
+ --sc-_color: var(--sc-danger, var(--sc-base-content, #000));
3561
3533
  }
3562
3534
  :host([type="info"]) {
3563
- --sc-color: var(--sc-info);
3535
+ --sc-_color: var(--sc-info, var(--sc-base-content, #000));
3564
3536
  }
3565
3537
  :host([type="success"]) {
3566
- --sc-color: var(--sc-success);
3538
+ --sc-_color: var(--sc-success, var(--sc-base-content, #000));
3567
3539
  }
3568
3540
 
3569
3541
  .inherit-color {
3570
- color: var(--sc-color);
3542
+ color: var(--sc-_color);
3571
3543
  }
3572
- `;P`
3544
+ `,Uh=$`
3573
3545
  :host {
3574
- --sc-color: inherit;
3575
- --sc-bg: inherit;
3576
- color: var(--sc-color);
3577
- background: var(--sc-bg);
3546
+ --sc-_color: inherit;
3547
+ --sc-_bg: inherit;
3548
+ color: var(--sc-_color);
3549
+ background: var(--sc-_bg);
3578
3550
  }
3579
3551
 
3552
+ /*TYPES*/
3580
3553
  :host([type="primary"]) {
3581
- --sc-color: var(--sc-primary-content);
3582
- --sc-bg: var(--sc-primary);
3554
+ --sc-_bg: var(--sc-primary, var(--sc-base-content, #000));
3555
+ --sc-_color: var(--sc-primary-content, var(--sc-base, #fff));
3583
3556
  }
3584
3557
  :host([type="warning"]) {
3585
- --sc-color: var(--sc-warning-content);
3586
- --sc-bg: var(--sc-warning);
3558
+ --sc-_bg: var(--sc-warning, var(--sc-base-content, #000));
3559
+ --sc-_color: var(--sc-warning-content, var(--sc-base, #fff));
3587
3560
  }
3588
3561
  :host([type="danger"]) {
3589
- --sc-color: var(--sc-danger-content);
3590
- --sc-bg: var(--sc-danger);
3562
+ --sc-_bg: var(--sc-danger, var(--sc-base-content, #000));
3563
+ --sc-_color: var(--sc-danger-content, var(--sc-base, #fff));
3591
3564
  }
3592
3565
  :host([type="info"]) {
3593
- --sc-color: var(--sc-info-content);
3594
- --sc-bg: var(--sc-info);
3566
+ --sc-_bg: var(--sc-info, var(--sc-base-content, #000));
3567
+ --sc-_color: var(--sc-info-content, var(--sc-base, #fff));
3595
3568
  }
3596
3569
  :host([type="success"]) {
3597
- --sc-color: var(--sc-success-content);
3598
- --sc-bg: var(--sc-success);
3570
+ --sc-_bg: var(--sc-success, var(--sc-base-content, #000));
3571
+ --sc-_color: var(--sc-success-content, var(--sc-base, #fff));
3572
+ }
3573
+
3574
+ /* dans un contexte de couleur - divider color*/
3575
+ :host([type="primary"]),
3576
+ :host([type="warning"]),
3577
+ :host([type="danger"]),
3578
+ :host([type="info"]),
3579
+ :host([type="success"]) {
3580
+ --sc-border-color: currentColor;
3581
+ --sc-divider-opacity: 0.2;
3582
+ }
3583
+
3584
+ :host([type="base"]) {
3585
+ --sc-_bg: var(--sc-base, #fff);
3586
+ --sc-_color: var(--sc-base-content, #000);
3587
+ }
3588
+ :host([type="default"]),
3589
+ :host([type="light"]) {
3590
+ --sc-_bg: var(--sc-base-100, rgba(0, 0, 0, 0.07));
3591
+ --sc-_color: var(--sc-base-content, #000);
3592
+ }
3593
+
3594
+ :host([type="neutral"]) {
3595
+ --sc-_bg: var(--sc-base-content, #000);
3596
+ --sc-_color: var(--sc-base, #fff);
3597
+ }
3598
+
3599
+ :host([type="invert"]) {
3600
+ --sc-_bg: var(--sc-base-900, var(--sc-base-content, #000));
3601
+ --sc-_color: var(--sc-base, #fff);
3599
3602
  }
3600
3603
 
3601
3604
  .inherit-bg {
3602
3605
  color: inherit;
3603
3606
  }
3604
- `;var Hc=Object.defineProperty,qc=Object.getOwnPropertyDescriptor,os=(r,t,s,i)=>{for(var e=i>1?void 0:i?qc(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&&Hc(t,s,e),e};const Wc="sonic-tr";let xe=class extends G(w){constructor(){super(...arguments),this._metadata_={}}willUpdate(r){r.has("_metadata_")&&(this.even=!!this._metadata_.even,this.odd=!!this._metadata_.odd,this.last=!!this._metadata_.lastChild),super.willUpdate(r)}render(){return g`<slot></slot>`}};xe.styles=[Oi,P`
3607
+ `;var Vh=Object.defineProperty,Hh=Object.getOwnPropertyDescriptor,Ao=(r,t,s,i)=>{for(var e=i>1?void 0:i?Hh(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&&Vh(t,s,e),e};const Bh="sonic-card";let Gs=class extends _{constructor(){super(...arguments),this.type="base"}render(){return g`<slot></slot> `}};Gs.styles=[Uh,$`
3608
+ * {
3609
+ box-sizing: border-box;
3610
+ }
3611
+ :host {
3612
+ --sc-_padding: 1.5rem;
3613
+ --sc-_color: var(--sc-base-content, #000);
3614
+ --sc-_bg: var(--sc-base, #fff);
3615
+ --sc-_rounded: var(--sc-rounded-lg);
3616
+ --sc-_shadow: var(--sc-shadow-lg);
3617
+ -webkit-print-color-adjust: exact;
3618
+ }
3619
+
3620
+ @media print {
3621
+ :host {
3622
+ page-break-inside: avoid;
3623
+ break-inside: avoid;
3624
+ box-shadow: none !important;
3625
+ border: 1px solid var(--sc-base-200, rgba(0, 0, 0, 0.12));
3626
+ }
3627
+ }
3628
+
3629
+ :host {
3630
+ display: block;
3631
+ padding: var(--sc-_padding);
3632
+ background-color: var(--sc-_bg);
3633
+ border-radius: var(--sc-_rounded);
3634
+ box-shadow: var(--sc-_shadow);
3635
+ color: var(--sc-_color);
3636
+ }
3637
+ `],Ao([l({type:String,reflect:!0})],Gs.prototype,"type",2),Gs=Ao([w(Bh)],Gs);var qh=Object.defineProperty,Wh=Object.getOwnPropertyDescriptor,ms=(r,t,s,i)=>{for(var e=i>1?void 0:i?Wh(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&&qh(t,s,e),e};const Kh="sonic-tr";let Ce=class extends Q(_){constructor(){super(...arguments),this._metadata_={}}willUpdate(r){r.has("_metadata_")&&(this.even=!!this._metadata_.even,this.odd=!!this._metadata_.odd,this.last=!!this._metadata_.lastChild),super.willUpdate(r)}render(){return g`<slot></slot>`}};Ce.styles=[Gi,$`
3605
3638
  :host {
3606
3639
  display: table-row;
3607
3640
  }
@@ -3619,9 +3652,14 @@ ${this.value}</textarea
3619
3652
  :host(:hover) {
3620
3653
  background: var(--sc-table-hover-bg) !important;
3621
3654
  }
3622
- `],os([l({type:Object})],xe.prototype,"_metadata_",2),os([l({type:Boolean,reflect:!0})],xe.prototype,"even",2),os([l({type:Boolean,reflect:!0})],xe.prototype,"odd",2),os([l({type:Boolean,reflect:!0})],xe.prototype,"last",2),xe=os([_(Wc)],xe);var Kc=Object.defineProperty,Yc=Object.getOwnPropertyDescriptor,Pe=(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-th";let Bt=class extends w{render(){const r={textAlign:this.align,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return g`<th part="th" style=${ut(r)} colspan=${x(this.colSpan)} rowspan=${x(this.rowSpan)}>
3655
+ `],ms([l({type:Object})],Ce.prototype,"_metadata_",2),ms([l({type:Boolean,reflect:!0})],Ce.prototype,"even",2),ms([l({type:Boolean,reflect:!0})],Ce.prototype,"odd",2),ms([l({type:Boolean,reflect:!0})],Ce.prototype,"last",2),Ce=ms([w(Kh)],Ce);var Yh=Object.defineProperty,Zh=Object.getOwnPropertyDescriptor,Se=(r,t,s,i)=>{for(var e=i>1?void 0:i?Zh(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&&Yh(t,s,e),e};const Gh="sonic-th";let Bt=class extends _{render(){const r={textAlign:this.align,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return g`<th
3656
+ part="th"
3657
+ style=${ft(r)}
3658
+ colspan=${x(this.colSpan)}
3659
+ rowspan=${x(this.rowSpan)}
3660
+ >
3623
3661
  <slot></slot>
3624
- </th> `}};Bt.styles=[Oi,P`
3662
+ </th> `}};Bt.styles=[Gi,$`
3625
3663
  :host {
3626
3664
  display: contents;
3627
3665
  background: var(--sc-table-bg);
@@ -3633,7 +3671,8 @@ ${this.value}</textarea
3633
3671
  th {
3634
3672
  all: inherit;
3635
3673
  display: table-cell;
3636
- border-bottom: calc(var(--sc-border-width) * 1.5) solid var(--sc-table-border-color);
3674
+ border-bottom: calc(var(--sc-border-width, max(1px, 0.12rem)) * 1.5)
3675
+ solid var(--sc-table-border-color);
3637
3676
  text-transform: var(--sc-table-th-tt);
3638
3677
  font-weight: var(--sc-table-th-fw);
3639
3678
  font-size: var(--sc-table-th-fs);
@@ -3643,9 +3682,9 @@ ${this.value}</textarea
3643
3682
  :host([noBorder]) th {
3644
3683
  border-bottom: none;
3645
3684
  }
3646
- `],Pe([l({type:Number})],Bt.prototype,"colSpan",2),Pe([l({type:Number})],Bt.prototype,"rowSpan",2),Pe([l({type:String})],Bt.prototype,"align",2),Pe([l({type:String})],Bt.prototype,"minWidth",2),Pe([l({type:String})],Bt.prototype,"maxWidth",2),Pe([l({type:String})],Bt.prototype,"width",2),Bt=Pe([_(Zc)],Bt);var Gc=Object.defineProperty,Qc=Object.getOwnPropertyDescriptor,ee=(r,t,s,i)=>{for(var e=i>1?void 0:i?Qc(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&&Gc(t,s,e),e};const Xc="sonic-td";let jt=class extends w{render(){const r={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return g`<td part="td" style=${ut(r)} colspan=${x(this.colSpan)} rowspan=${x(this.rowSpan)}>
3685
+ `],Se([l({type:Number})],Bt.prototype,"colSpan",2),Se([l({type:Number})],Bt.prototype,"rowSpan",2),Se([l({type:String})],Bt.prototype,"align",2),Se([l({type:String})],Bt.prototype,"minWidth",2),Se([l({type:String})],Bt.prototype,"maxWidth",2),Se([l({type:String})],Bt.prototype,"width",2),Bt=Se([w(Gh)],Bt);var Qh=Object.defineProperty,Xh=Object.getOwnPropertyDescriptor,ie=(r,t,s,i)=>{for(var e=i>1?void 0:i?Xh(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&&Qh(t,s,e),e};const Jh="sonic-td";let zt=class extends _{render(){const r={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return g`<td part="td" style=${ft(r)} colspan=${x(this.colSpan)} rowspan=${x(this.rowSpan)}>
3647
3686
  <slot></slot>
3648
- </td>`}};jt.styles=[Oi,P`
3687
+ </td>`}};zt.styles=[Gi,$`
3649
3688
  :host {
3650
3689
  display: contents;
3651
3690
  }
@@ -3658,13 +3697,13 @@ ${this.value}</textarea
3658
3697
  border-right: var(--sc-table-td-border-r, none);
3659
3698
  border-left: var(--sc-table-td-border-l, none);
3660
3699
  }
3661
- `],ee([l({type:Number})],jt.prototype,"colSpan",2),ee([l({type:Number})],jt.prototype,"rowSpan",2),ee([l({type:String})],jt.prototype,"align",2),ee([l({type:String})],jt.prototype,"vAlign",2),ee([l({type:String})],jt.prototype,"minWidth",2),ee([l({type:String})],jt.prototype,"maxWidth",2),ee([l({type:String})],jt.prototype,"width",2),jt=ee([_(Xc)],jt);var Jc=Object.defineProperty,th=Object.getOwnPropertyDescriptor,eh=(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 sh="sonic-thead";let Di=class extends w{render(){return g`<slot></slot>`}};Di.styles=[P`
3700
+ `],ie([l({type:Number})],zt.prototype,"colSpan",2),ie([l({type:Number})],zt.prototype,"rowSpan",2),ie([l({type:String})],zt.prototype,"align",2),ie([l({type:String})],zt.prototype,"vAlign",2),ie([l({type:String})],zt.prototype,"minWidth",2),ie([l({type:String})],zt.prototype,"maxWidth",2),ie([l({type:String})],zt.prototype,"width",2),zt=ie([w(Jh)],zt);var td=Object.defineProperty,ed=Object.getOwnPropertyDescriptor,sd=(r,t,s,i)=>{for(var e=i>1?void 0:i?ed(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&&td(t,s,e),e};const id="sonic-thead";let Qi=class extends _{render(){return g`<slot></slot>`}};Qi.styles=[$`
3662
3701
  :host {
3663
3702
  display: table-header-group;
3664
3703
  }
3665
- `],Di=eh([_(sh)],Di);var ih=Object.defineProperty,rh=Object.getOwnPropertyDescriptor,oh=(r,t,s,i)=>{for(var e=i>1?void 0:i?rh(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&&ih(t,s,e),e};const nh="sonic-tbody";let ki=class extends w{render(){return g`<tbody part="tbody">
3704
+ `],Qi=sd([w(id)],Qi);var rd=Object.defineProperty,od=Object.getOwnPropertyDescriptor,nd=(r,t,s,i)=>{for(var e=i>1?void 0:i?od(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&&rd(t,s,e),e};const ad="sonic-tbody";let Xi=class extends _{render(){return g`<tbody part="tbody">
3666
3705
  <slot></slot>
3667
- </tbody>`}};ki.styles=[P`
3706
+ </tbody>`}};Xi.styles=[$`
3668
3707
  :host {
3669
3708
  display: table-row-group;
3670
3709
  }
@@ -3678,40 +3717,44 @@ ${this.value}</textarea
3678
3717
  }
3679
3718
 
3680
3719
  ::slotted(sonic-tr:not(:last-child)) {
3681
- border-bottom: var(--sc-form-border-width) solid var(--sc-base-200) !important;
3720
+ border-bottom: var(--sc-form-border-width) solid
3721
+ var(--sc-base-200, rgba(0, 0, 0, 0.12)) !important;
3682
3722
  }
3683
- `],ki=oh([_(nh)],ki);var ah=Object.defineProperty,lh=Object.getOwnPropertyDescriptor,ch=(r,t,s,i)=>{for(var e=i>1?void 0:i?lh(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&&ah(t,s,e),e};const hh="sonic-tfoot";let Li=class extends w{render(){return g`<tfoot>
3723
+ `],Xi=nd([w(ad)],Xi);var ld=Object.defineProperty,cd=Object.getOwnPropertyDescriptor,hd=(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&&ld(t,s,e),e};const dd="sonic-tfoot";let Ji=class extends _{render(){return g`<tfoot>
3684
3724
  <slot></slot>
3685
- </tfoot>`}};Li.styles=[P`
3725
+ </tfoot>`}};Ji.styles=[$`
3686
3726
  :host {
3687
3727
  display: contents;
3688
3728
  }
3689
- `],Li=ch([_(hh)],Li);var dh=Object.defineProperty,ph=Object.getOwnPropertyDescriptor,uh=(r,t,s,i)=>{for(var e=i>1?void 0:i?ph(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&&dh(t,s,e),e};const fh="sonic-caption";let Ei=class extends w{render(){return g`<slot></slot>`}};Ei.styles=[P`
3729
+ `],Ji=hd([w(dd)],Ji);var pd=Object.defineProperty,ud=Object.getOwnPropertyDescriptor,fd=(r,t,s,i)=>{for(var e=i>1?void 0:i?ud(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&&pd(t,s,e),e};const gd="sonic-caption";let tr=class extends _{render(){return g`<slot></slot>`}};tr.styles=[$`
3690
3730
  :host {
3691
3731
  display: table-caption;
3692
3732
  font-size: 0.75rem;
3693
3733
  color: var(--sc-table-caption-color);
3694
3734
  padding: var(--sc-table-td-py) var(--sc-table-td-px) calc(2 * var(--sc-table-td-py));
3695
3735
  }
3696
- `],Ei=uh([_(fh)],Ei);var gh=Object.defineProperty,mh=Object.getOwnPropertyDescriptor,Te=(r,t,s,i)=>{for(var e=i>1?void 0:i?mh(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&&gh(t,s,e),e};const bh="sonic-table";let se=class extends w{render(){const r={maxHeight:this.maxHeight};return g`
3736
+ `],tr=fd([w(gd)],tr);var md=Object.defineProperty,bd=Object.getOwnPropertyDescriptor,Ve=(r,t,s,i)=>{for(var e=i>1?void 0:i?bd(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&&md(t,s,e),e};const vd="sonic-table";let re=class extends _{render(){const r={maxHeight:this.maxHeight};return g`
3697
3737
  <div
3698
3738
  class="table-container ${this.noCustomScroll?"":"custom-scroll"}"
3699
- style=${ut(r)}
3739
+ style=${ft(r)}
3700
3740
  >
3701
3741
  <div class="table">
3702
3742
  <slot></slot>
3703
3743
  </div>
3704
3744
  </div>
3705
- `}};se.styles=[Ge,Dt,P`
3745
+ `}};re.styles=[as,Lt,$`
3706
3746
  :host {
3707
- --sc-table-fw: var(--sc-font-weight-base);
3708
- --sc-table-fst: var(--sc-font-style-base);
3747
+ --sc-table-fw: var(--sc-font-weight-base, 400);
3748
+ --sc-table-fst: var(--sc-font-style-base, normal);
3709
3749
  --sc-table-fs: 1rem;
3710
3750
  --sc-table-border-color: var(--sc-border-color);
3711
- --sc-table-caption-color: var(--sc-base-500);
3712
- --sc-table-bg: var(--sc-base);
3713
- --sc-table-accent-bg: var(--sc-base-50);
3714
- --sc-table-hover-bg: var(--sc-base-100);
3751
+ --sc-table-caption-color: var(
3752
+ --sc-base-500,
3753
+ var(--sc-base-content, #000)
3754
+ );
3755
+ --sc-table-bg: var(--sc-base, #fff);
3756
+ --sc-table-accent-bg: var(--sc-base-50, rgba(0, 0, 0, 0.04));
3757
+ --sc-table-hover-bg: var(--sc-base-100, rgba(0, 0, 0, 0.07));
3715
3758
  --sc-table-th-fs: 0.85em;
3716
3759
  --sc-table-th-fw: bold;
3717
3760
  --sc-table-th-tt: uppercase;
@@ -3719,6 +3762,7 @@ ${this.value}</textarea
3719
3762
  --sc-table-th-py: calc(1.8 * var(--sc-table-td-py));
3720
3763
  --sc-table-td-px: 0.5em;
3721
3764
  --sc-table-td-py: 0.5em;
3765
+ --sc-table-bw: var(--sc-border-width, max(1px, 0.12rem));
3722
3766
  display: block;
3723
3767
  }
3724
3768
 
@@ -3738,9 +3782,9 @@ ${this.value}</textarea
3738
3782
  }
3739
3783
 
3740
3784
  :host([bordered]) .table-container {
3741
- border: var(--sc-border-width) solid var(--sc-table-border-color);
3785
+ border: var(--sc-table-bw) solid var(--sc-table-border-color);
3742
3786
  border-radius: var(--sc-rounded);
3743
- --sc-table-td-border-b: var(--sc-border-width) solid
3787
+ --sc-table-td-border-b: var(--sc-table-bw) solid
3744
3788
  var(--sc-table-border-color);
3745
3789
  }
3746
- `],Te([l({type:String,reflect:!0})],se.prototype,"size",2),Te([l({type:Boolean,reflect:!0})],se.prototype,"bordered",2),Te([l({type:Boolean,reflect:!0})],se.prototype,"rounded",2),Te([l({type:Boolean,reflect:!0})],se.prototype,"noCustomScroll",2),Te([l({type:String})],se.prototype,"maxHeight",2),se=Te([_(bh)],se);var vh=Object.defineProperty,yh=Object.getOwnPropertyDescriptor,Ms=(r,t,s,i)=>{for(var e=i>1?void 0:i?yh(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&&vh(t,s,e),e};const wh="sonic-captcha";let ns=class extends Kt(w){constructor(){super(...arguments),this.key="",this.action=null,this.zIndex=9999,this.onCaptchaTokenChanged=r=>{r=="request_token"&&(this.formPublisher&&(this.formPublisher.captchaToken=""),this.requestToken())}}connectedCallback(){if(!document.getElementById("captcha-"+this.key)){const r=document.createElement("script");r.src="https://www.google.com/recaptcha/api.js?render="+this.key,r.id="captcha-"+this.key,document.head.appendChild(r)}if(super.connectedCallback(),this.formPublisher=et.get(this.getAncestorAttributeValue("headersDataProvider")??this.getAncestorAttributeValue("formDataProvider")),!document.getElementById("concorde-recaptcha-css")){const r=document.createElement("style");r.innerHTML=".grecaptcha-badge {z-index: 9999;}",r.id="concorde-recaptcha-css",document.head.appendChild(r)}this.formPublisher&&!this.formPublisher.captchaToken.get()&&(this.formPublisher.needsCaptchaValidation=!0,this.formPublisher.captchaToken.onAssign(this.onCaptchaTokenChanged))}disconnectedCallback(){this.formPublisher&&(this.formPublisher.captchaToken.offAssign(this.onCaptchaTokenChanged),this.formPublisher.captchaToken=""),super.disconnectedCallback()}requestToken(){var s,i;if(!this.formPublisher)return;const r=(this.action??((s=this.formPublisher.captchaAction)==null?void 0:s.get())??"submit").replace(/[^\w_/]/g,"_"),t=(((i=this.formPublisher.captchaMethod)==null?void 0:i.get())??"POST").toUpperCase();delete this.formPublisher.captchaAction,delete this.formPublisher.captchaMethod,window.grecaptcha.ready(()=>{window.grecaptcha.execute(this.key,{action:t+"//"+r}).then(e=>{this.formPublisher&&(this.formPublisher.captchaToken=e)})})}render(){return g` <slot></slot> `}};Ms([l()],ns.prototype,"key",2),Ms([l()],ns.prototype,"action",2),Ms([l({type:Number})],ns.prototype,"zIndex",2),ns=Ms([_(wh)],ns),window.queueMicrotask=window.queueMicrotask||function(r){Promise.resolve().then(r).catch(t=>setTimeout(()=>{throw t}))};function _h(r){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(r)}function xh(r){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(r)}function qr(r){if(r.__is__setSubscribable__)return;r.__is__setSubscribable__=!0,r.__onConnected__=_h,r.__onDisconnected__=xh;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 Ph(r){const t=r.split(".");if(t.length==0)return function(){};const s=t.shift()||"";let i=N.get(s);return i=Ye.traverse(i,t),function(e,o){if(!e)return;let n;qr(e),e.__onConnected__(a=>{n=c=>{a[o]=c},i.onAssign(n)}),e.__onDisconnected__(()=>{i.offAssign(n)})}}function $h(...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=Ye.traverse(a,o);const c=new Set,h=d=>{t[i]=d,t.filter(f=>f!==null).length==r.length&&c.forEach(f=>f(...t))};s.push({publisher:a,onAssign:h,callbacks:c})}return function(i,e,o){qr(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:Ph,onAssing:$h},window["concorde-directives-data-provider"]=window["concorde-directives-data-provider"]||{},window["concorde-directives-data-provider"]={dp:nr,dataProvider:Ao,sub:$o,subscribe:Po,get:Co,set:So};const Ch=M,Ah=j;window["concorde-components"]=window["concorde-components"]||{},window["concorde-components"]={SonicToast:Ch,SonicModal:Ah};const Sh=window;Sh.concordeIsLoaded=!0,window.dispatchEvent(new CustomEvent("concorde-loaded"))});
3790
+ `],Ve([l({type:String,reflect:!0})],re.prototype,"size",2),Ve([l({type:Boolean,reflect:!0})],re.prototype,"bordered",2),Ve([l({type:Boolean,reflect:!0})],re.prototype,"rounded",2),Ve([l({type:Boolean,reflect:!0})],re.prototype,"noCustomScroll",2),Ve([l({type:String})],re.prototype,"maxHeight",2),re=Ve([w(vd)],re);var yd=Object.defineProperty,_d=Object.getOwnPropertyDescriptor,Qs=(r,t,s,i)=>{for(var e=i>1?void 0:i?_d(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&&yd(t,s,e),e};const wd="sonic-captcha";let bs=class extends Zt(_){constructor(){super(...arguments),this.key="",this.action=null,this.zIndex=9999,this.onCaptchaTokenChanged=r=>{r=="request_token"&&(this.formPublisher&&(this.formPublisher.captchaToken=""),this.requestToken())}}connectedCallback(){if(!document.getElementById("captcha-"+this.key)){const r=document.createElement("script");r.src="https://www.google.com/recaptcha/api.js?render="+this.key,r.id="captcha-"+this.key,document.head.appendChild(r)}if(super.connectedCallback(),this.formPublisher=st.get(this.getAncestorAttributeValue("headersDataProvider")??this.getAncestorAttributeValue("formDataProvider")),!document.getElementById("concorde-recaptcha-css")){const r=document.createElement("style");r.innerHTML=".grecaptcha-badge {z-index: 9999;}",r.id="concorde-recaptcha-css",document.head.appendChild(r)}this.formPublisher&&!this.formPublisher.captchaToken.get()&&(this.formPublisher.needsCaptchaValidation=!0,this.formPublisher.captchaToken.onAssign(this.onCaptchaTokenChanged))}disconnectedCallback(){this.formPublisher&&(this.formPublisher.captchaToken.offAssign(this.onCaptchaTokenChanged),this.formPublisher.captchaToken=""),super.disconnectedCallback()}requestToken(){var s,i;if(!this.formPublisher)return;const r=(this.action??((s=this.formPublisher.captchaAction)==null?void 0:s.get())??"submit").replace(/[^\w_/]/g,"_"),t=(((i=this.formPublisher.captchaMethod)==null?void 0:i.get())??"POST").toUpperCase();delete this.formPublisher.captchaAction,delete this.formPublisher.captchaMethod,window.grecaptcha.ready(()=>{window.grecaptcha.execute(this.key,{action:t+"//"+r}).then(e=>{this.formPublisher&&(this.formPublisher.captchaToken=e)})})}render(){return g` <slot></slot> `}};Qs([l()],bs.prototype,"key",2),Qs([l()],bs.prototype,"action",2),Qs([l({type:Number})],bs.prototype,"zIndex",2),bs=Qs([w(wd)],bs),window.queueMicrotask=window.queueMicrotask||function(r){Promise.resolve().then(r).catch(t=>setTimeout(()=>{throw t}))};function $d(r){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(r)}function xd(r){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(r)}function Co(r){if(r.__is__setSubscribable__)return;r.__is__setSubscribable__=!0,r.__onConnected__=$d,r.__onDisconnected__=xd;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 Pd(r){const t=r.split(".");if(t.length==0)return function(){};const s=t.shift()||"";let i=N.get(s);return i=Je.traverse(i,t),function(e,o){if(!e)return;let n;Co(e),e.__onConnected__(a=>{n=c=>{a[o]=c},i.onAssign(n)}),e.__onDisconnected__(()=>{i.offAssign(n)})}}function Ad(...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=Je.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){Co(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:Pd,onAssing:Ad},window["concorde-directives-data-provider"]=window["concorde-directives-data-provider"]||{},window["concorde-directives-data-provider"]={dp:Dr,dataProvider:ln,sub:nn,subscribe:on,get:an,set:cn};const Cd=M,Sd=j;window["concorde-components"]=window["concorde-components"]||{},window["concorde-components"]={SonicToast:Cd,SonicModal:Sd};const Od=window;Od.concordeIsLoaded=!0,window.dispatchEvent(new CustomEvent("concorde-loaded"))});