@supersoniks/concorde 1.1.31 → 1.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/concorde-core.bundle.js +102 -115
- package/concorde-core.es.js +7586 -55
- package/core/components/functional/queue/queue.d.ts +4 -1
- package/core/components/functional/queue/queue.js +16 -3
- package/core/components/functional/submit/submit.js +34 -21
- package/core/components/ui/button/button.d.ts +3 -2
- package/core/components/ui/captcha/captcha.d.ts +1 -0
- package/core/components/ui/captcha/captcha.js +12 -2
- package/core/components/ui/form/checkbox/checkbox.d.ts +11 -44
- package/core/components/ui/form/checkbox/checkbox.js +28 -35
- package/core/components/ui/form/fieldset/legend.d.ts +7 -2
- package/core/components/ui/form/fieldset/legend.js +34 -8
- package/core/components/ui/form/input/input.d.ts +6 -2
- package/core/components/ui/form/input/input.js +4 -13
- package/core/components/ui/form/select/select.d.ts +7 -2
- package/core/components/ui/form/select/select.js +32 -7
- package/core/components/ui/form/textarea/textarea.d.ts +6 -2
- package/core/components/ui/form/textarea/textarea.js +2 -7
- package/core/mixins/FormCheckable.d.ts +3 -5
- package/core/mixins/FormCheckable.js +4 -15
- package/core/mixins/FormElement.js +7 -0
- package/core/mixins/FormInput.d.ts +8 -5
- package/core/mixins/FormInput.js +39 -2
- package/core/mixins/Subscriber.js +4 -0
- package/core/utils/api.d.ts +4 -0
- package/core/utils/api.js +25 -1
- package/mixins.d.ts +9 -2
- package/package.json +1 -1
package/concorde-core.bundle.js
CHANGED
|
@@ -1,115 +1,102 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* @
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
*/function st(o,t,s){let e,r=o;return typeof o=="object"?(r=o.slot,e=o):e={flatten:t},s?Nt({slot:r,flatten:t,selector:s}):_r({descriptor:i=>({get(){var n,l;const c="slot"+(r?`[name=${r}]`:":not([name])"),h=(n=this.renderRoot)===null||n===void 0?void 0:n.querySelector(c);return(l=h==null?void 0:h.assignedNodes(e))!==null&&l!==void 0?l:[]},enumerable:!0,configurable:!0})})}function Re(o){return typeof o=="object"&&o!=null}class si{constructor(t,s=null){for(this._proxies_=new Map,this._value_=t,this._invalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this.parent=s,this.root=this;this.root.parent;)this.root=this.root.parent}delete(){for(let t of this._proxies_.values())t.delete();this._invalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear()}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(t=!1){this._mutationListeners_.forEach(s=>s()),!t&&this.parent&&this.parent._publishInternalMutation_()}_publishAssignement_(t=!1){this._assignListeners_.forEach(s=>s(this.get())),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,s){this._fillListeners_.forEach(e=>{e[t]!==s&&(e[t]=s)}),this._publishTemplateFilling_(t,s)}_publishTemplateFilling_(t,s){this._templateFillListeners_.forEach(e=>{let r=Object.getOwnPropertyDescriptor(e,t);r&&!r.set||(e.propertyMap&&e.propertyMap[t]&&(t=e.propertyMap[t]),typeof e[t]!="undefined"&&e[t]!==s&&(e[t]=s))})}onAssign(t){typeof t=="function"&&(this._assignListeners_.add(t),t(this.get()))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){typeof t=="function"&&this._invalidateListeners_.add(t)}offInvalidate(t){this._invalidateListeners_.delete(t)}invalidate(t){this._publishInvalidation_()}onInternalMutation(t){typeof t=="function"&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){this._mutationListeners_.delete(t)}startTemplateFilling(t){this._templateFillListeners_.add(t);for(var s in this._value_){const e=this._value_[s];t.propertyMap&&t.propertyMap[s]&&(s=t.propertyMap[s]),typeof t[s]!="undefined"&&t[s]!==e&&(t[s]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(var s in this._value_){const e=this._value_[s];t[s]!==e&&(t[s]=e)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}set(t,s=!1){if(this._value_===t||this._value_.hasOwnProperty("__value")&&t.hasOwnProperty("__value")&&this._value_.__value===t.__value)return!0;if(this._value_=t,this._value_.hasOwnProperty("__value"))return this._publishAssignement_(s),!0;if(Array.from(this._proxies_.keys()).forEach(r=>{!this._value_[r]&&this._proxies_.has(r)&&!this._proxies_.get(r).hasListener()&&this._proxies_.delete(r)}),Re(this._value_))for(let r in this._value_){let i=t[r],l=Re(i)?i:{__value:i};if(!this._proxies_.has(r)){let c=new It({},this);this._proxies_.set(r,c,!0),c._proxies_.set("_parent_",this)}this._proxies_.get(r).set(l,!0),this._publishDynamicFilling_(r,i)}return this._publishAssignement_(),!0}get(){if(this._value_.hasOwnProperty("__value")){let t=this._value_.__value;return t!=null?t:null}return this._value_}}const Pt=class{constructor(){if(Pt.instance!=null)throw"Singleton / use getInstance";Pt.instance=this,this.publishers=new Map}static getInstance(){return Pt.instance==null?new Pt:Pt.instance}static get(t){return Pt.getInstance().get(t)}static delete(t){return Pt.getInstance().delete(t)}get(t){return this.publishers.has(t)||this.publishers.set(t,new It({})),this.publishers.get(t)}set(t,s){this.publishers.set(t,s)}delete(t){if(!this.publishers.has(t))return!1;this.publishers.get(t),this.publishers.delete(t)}};let Z=Pt;Zo(Z,"instance",null);class It extends si{constructor(t,s=null){super(t,s);let e=this,r=new Proxy(this,{get:function(i,n){if(["invalidate","onInvalidate","offInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_value_","_lockInternalMutationPublishing_"].includes(n))return e[n];if(!e._proxies_.has(n)){let l=e._value_[n],c=new It(Re(l)?l:{__value:l},e);c._proxies_.set("_parent_",r),e._proxies_.set(n,c)}return e._proxies_.get(n)},set:function(i,n,l){if(n=="_value_")return i._value_=l,i._value_;if(!e._proxies_.has(n)){let h=new It({},e);h._proxies_.set("_parent_",r),e._proxies_.set(n,h)}return e._value_[n]!==l&&(e._value_[n]=l,e._publishDynamicFilling_(n,l),e._proxies_.get(n).set(Re(l)?l:{__value:l})),e._proxies_.get(n)},deleteProperty:function(i,n){return e._publishDynamicFilling_(n,null),e._proxies_.delete(n),delete e._value_[n]},enumerate:function(i,n){return e._value_.keys()},has:function(i,n){return n in e._value_&&n!="_lockInternalMutationPublishing_"},defineProperty:function(i,n,l){return l&&"value"in l&&(e._value_[n]=l.value),e._value_},getOwnPropertyDescriptor:function(i,n){return e._value_[n],{enumerable:!0,configurable:!0}},ownKeys:function(i){return e._value_.__value?Object.keys(this._value_.__value):Object.keys(e._value_)}});return r}}typeof module!="undefined"&&(module.exports={Publisher:It,PublisherManager:Z});class se{static getLanguage(){return document.getElementsByTagName("html")[0].getAttribute("lang")}static getCookies(){return document.cookie.split(";").reduce((t,s)=>{const e=s.indexOf("=");return t[s.substring(0,e).trim()]=s.substring(e+1),t},{})}static getAncestorAttributeValue(t,s){for(;!(t.hasAttribute&&t.hasAttribute(s))&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.hasAttribute?t.getAttribute(s):null}}const St=class{constructor(o){this.serviceURL=o.serviceURL,this.serviceURL||(this.serviceURL=document.location.origin),this.userName=o.userName,this.password=o.password,this.token=o.token,this.tokenProvider=o.tokenProvider}async auth(){if(this.token)return;if(St.tokens.has(this.serviceURL)){this.token=St.tokens.get(this.serviceURL);return}if(!this.userName||!this.password||!this.tokenProvider)return;let o={Authorization:"Basic "+window.btoa(unescape(encodeURIComponent(this.userName+":"+this.password)))},t=await fetch(this.computeURL(this.tokenProvider),{headers:o});try{let s=await t.json();this.token=s.token,St.tokens.set(this.serviceURL,this.token)}catch{}}async get(o,t){let s=await this.createHeaders(t);const e=this.computeURL(o);if(!St.loadingGetPromises.has(e)){let i=new Promise(async n=>{let l=await fetch(e,{headers:s});try{let c=await l.json();c._sonic_http_response_=l,n(c)}catch{n({_sonic_http_response_:l})}});St.loadingGetPromises.set(e,i)}let r=await St.loadingGetPromises.get(e);return St.loadingGetPromises.delete(e),r}async createHeaders(o){await this.auth();let t={};return this.token&&(t.Authorization="Bearer "+this.token),t.credentials="include",t["Accept-Language"]=se.getLanguage(),o&&Object.assign(t,o),t}computeURL(o){return(this.serviceURL+"/"+o).replace(/([^(https?\:)])\/{2,}/g,"$1/")}async send(o,t,s="POST",e){await this.auth();let r=await this.createHeaders(e);r.Accept="application/json",r["Content-Type"]="application/json";let i=await fetch(this.computeURL(o),{headers:r,method:s,body:JSON.stringify(t)});try{let n=await i.json();return n._sonic_http_response_=i,n}catch{return{_sonic_http_response_:i}}}async put(o,t,s){return this.send(o,t,"PUT",s)}async post(o,t,s){return this.send(o,t,"POST",s)}async delete(o,t,s){return this.send(o,t,"delete",s)}};let oe=St;oe.loadingGetPromises=new Map,oe.tokens=new Map;class Fe{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static js(t){try{return Function("return "+t)()}catch{return""}}}const O=class{static disable(){!this.enabled||(this.enabled=!1,Array.from(O.observedElements.keys()).forEach(o=>O.unObserve(o)))}static observe(o){if(!o||!O.enabled||O.observedElements.has(o))return;let t=new MutationObserver(O.onMutation),s={};s.childList=!0,s.subtree=!0,s.attributes=!0,s.attributeFilter=["data-bind"],t.observe(o,s),o.querySelectorAll("[data-bind]").forEach(e=>O.addPublisherListeners(e)),O.observedElements.set(o,t)}static unObserve(o){if(!o)return;let t=this.observedElements.get(o);!t||(t.disconnect(),o.querySelectorAll("[data-bind]").forEach(s=>O.removePublisherListeners(s)))}static onAdded(o){o.hasAttribute&&o.hasAttribute("data-bind")&&O.addPublisherListeners(o),o.querySelectorAll?o.querySelectorAll("[data-bind]").forEach(t=>O.addPublisherListeners(t)):o.childNodes.forEach(t=>O.onAdded(t))}static onRemoved(o){o.hasAttribute&&o.hasAttribute("data-bind")&&O.removePublisherListeners(o),o.querySelectorAll?o.querySelectorAll("[data-bind]").forEach(t=>O.removePublisherListeners(t)):o.childNodes.forEach(t=>O.onRemoved(t))}static onMutation(o){for(let e of o)switch(e.type){case"attributes":O.addPublisherListeners(e.target);break;case"childList":var t=e.addedNodes,s=e.removedNodes;t.forEach(r=>{O.onAdded(r)}),s.forEach(r=>{O.onRemoved(r)});break}}static removePublisherListeners(o){let t=O.publisherListeners.get(o);!t||(O.publisherListeners.delete(o),t.forEach(s=>{s.publisher.offAssign(s.onAssign)}))}static getVariablesDescriptor(o){let t=o.match(/(\$(?:\w+\\?\.?)+)/g);return t?t=t.map(s=>s.replace("$","")):t=[o],t=t.filter(s=>s.length>0),{expression:o.replace("\\",""),variables:t.map(s=>s.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(o){return Array.from(o.attributes).filter(t=>t.name.indexOf("::")==0).map(t=>({propertyToUpdate:t.name.substring(2).replace(/\-((html)|\w)/g,s=>s.substring(1).toUpperCase()),bindedVariablesDescriptor:O.getVariablesDescriptor(t.value)}))}static getSubPublisher(o,t){for(let s of t)s!="_self_"&&(o=o[s]);return o}static addPublisherListeners(o){O.removePublisherListeners(o);let t=o,s=se.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!s)return;let e=Z.getInstance().get(s),r=O.getDataBindItems(o),i=[];r.forEach(n=>{let l=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(let h of l.variables){let y=h,g=e;g=O.getSubPublisher(e,y);let m=o,x={publisher:g,onAssign:()=>{let _=l.variables.map(D=>O.getSubPublisher(e,D).get()),A=l.expression,N=!1;if(_.length==1&&l.variables[0].join(".")==A.substring(1)){let D=_[0];D===null&&(D=""),m[c]=D;return}for(let D=0;D<_.length;D++){let d=_[D],p=l.variables[D];d===null&&(N=!0,d=void 0),A=A.replace("$"+p.join("."),d)}if(A.indexOf("|")!=-1){let D=A.indexOf("|");if(D==0)A=Fe.js(A.substring(1));else{let d=A.substring(0,D),p=A.substring(D+1),b=Fe;A=N?"":b[d]?b[d](p):A}}else A=N?"":A;m[c]=A}};g.onAssign(x.onAssign),i.push(x)}}),O.publisherListeners.set(o,i)}};let Ct=O;Ct.observedElements=new Map,Ct.enabled=!0,Ct.publisherListeners=new Map,Ct.observe(document.documentElement);let ks=window;ks.SonicDataBindObserver||(ks.SonicDataBindObserver=Ct);class et{static shallowEqual(t,s){const e=Object.keys(t),r=Object.keys(s);if(e.length!==r.length)return!1;for(let i of e)if(t[i]!==s[i])return!1;return!0}static deepEqual(t,s){const e=Object.keys(t),r=Object.keys(s);if(e.length!==r.length)return!1;for(const i of e){const n=t[i],l=s[i],c=et.isObject(n)&&et.isObject(l);if(c&&!et.deepEqual(n,l)||!c&&n!==l)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static traverse(t,s,e=!1){for(let r of s){let i=t[r];if(i===void 0)return;e&&et.isObject(i)?t=Object.assign(Array.isArray(i)?[]:{},t,i):t=t[r]}return t}}var oi=Object.defineProperty,ii=Object.getOwnPropertyDescriptor,ie=(o,t,s,e)=>{for(var r=e>1?void 0:e?ii(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&oi(t,s,r),r};let Ue=!1,Pr=new Set;const F=o=>{const t=class extends o{constructor(...e){super(),this.noAutoFill=!1,this.renderOnPropsInternalChange=!1,this.noShadowDom=null,this.propertyMap=null,this.title="",this.dataProvider=null,this.bindPublisher=null,this._props=null,this.defferedDebug=null,this.debug=null,this.onAssign=null,this.args=e}hasAncestorAttribute(e){return this.getAncestorAttributeValue(e)!=null}getAncestorAttributeValue(e){let r=this;return se.getAncestorAttributeValue(r,e)}get props(){return this.publisher?this.publisher.get():this._props}set props(e){typeof e=="string"&&["{","["].includes(e.trim().charAt(0))&&(e=JSON.parse(e)),(e==null||e==="")&&(e={}),this.publisher||this.initPublisher(),this._props=e,this.publisher&&this.publisher.set(e),this.requestUpdate()}updated(e){super.updated(e),this.shadowRoot?this.shadowRoot.children.length==0?this.style.display="none":this.style.removeProperty("display"):this.children.length==0?this.style.display="none":this.style.removeProperty("display")}connectedCallback(){if(this.hasAttribute("lazyRendering")){let e={root:null,rootMargin:Math.max(window.innerWidth*.1,window.innerHeight*.1)+"px"},r=!0;new IntersectionObserver(i=>{for(const n of i)r&&n.isIntersecting&&(r=!1,this.initWording(),this.initPublisher())},e).observe(this)}else this.initWording(),this.initPublisher();this.addDebugger(),super.connectedCallback(),t.instanceCounter++}disconnectedCallback(){this.removeDebugger(),super.disconnectedCallback(),this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate())),this.wordingPublisher&&this.wordingPublisher.stopTemplateFilling(this),this.onAssign&&this.publisher.offAssign(this.onAssign)}addDebugger(){if(this.hasAttribute("debug")&&!this.defferedDebug){if(!this.debug){this.debug=document.createElement("div");let e=this.debug.style;e.position="fixed",e.top="0",e.right="0",e.margin="auto",e.borderRadius=".7rem",e.backgroundColor="#0f1729",e.color="#c5d4f9",e.padding="16px 16px",e.margin="16px 16px",e.boxShadow="0 10px 30px -18px rgba(0,0,0,.3)",e.overflowY="auto",e.zIndex="99999999",e.maxHeight="calc(100vh - 32px)",e.fontFamily="Consolas, monospace",e.maxWidth="50vw",e.fontSize="12px",e.minWidth="300px",e.overflowWrap="break-word"}if(this.addEventListener("click",e=>{!e.ctrlKey||(e.preventDefault(),Ue=!Ue)}),this.dataProvider){let e=window;e[this.dataProvider]=this.publisher}this.addEventListener("mouseover",()=>{Ue||this.removeDebugger(),document.body.appendChild(this.debug),Pr.add(this.debug)}),this.addEventListener("mouseout",()=>{Ue||this.removeDebugger()}),this.publisher.onInternalMutation(()=>{this.debug.innerHTML=`\u{1F916} DataProvider : "<b style="font-weight:700;color:#fff">${this.dataProvider}</b>"<br><div style="font-size:10px;border-top:1px dashed;margin-top:5px;padding-left:23px;opacity:.6;padding-top:5px">Variable disponible dans la console<br>ctrl + Clique : \xE9pingler / d\xE9s\xE9pingler</div><pre style="margin-top:10px;background:0 0;padding:0;font-size:inherit;color:inherit">${JSON.stringify(this.publisher.get(),null," ")}</pre>`})}}removeDebugger(){Pr.forEach(e=>{document.body.contains(e)&&document.body.removeChild(e)}),Pr=new Set}getApiConfiguration(){const e=this.getAncestorAttributeValue("token");let r=this.getAncestorAttributeValue("serviceURL"),i=null,n=null,l=null;return e||(i=this.getAncestorAttributeValue("userName"),n=this.getAncestorAttributeValue("password"),l=this.getAncestorAttributeValue("tokenProvider")),{serviceURL:r,token:e,userName:i,password:n,tokenProvider:l}}async initWording(){let e=!1;const r=Object.getOwnPropertyNames(this.constructor.prototype);for(let c of r)if(c.indexOf("wording_")==0){e=!0;break}if(!e)return;let i=Z.getInstance().get("sonic-wording"),n=this.getAncestorAttributeValue("wordingProvider");const l=new oe(this.getApiConfiguration());if(n){let c=[];for(let h of r)if(h.indexOf("wording_")==0){let y=h.substring(8);i.get()[h]||(i[h]="...",c.push(y))}if(c.length>0){let h=await l.post(n,{labels:c});for(let y in h)i["wording_"+y]=h[y]}i.startTemplateFilling(this),this.wordingPublisher=i}}createRenderRoot(){if(this.noShadowDom===""||this.getAttribute("noShadowDom")==="")return this;let e=super.createRenderRoot();return Ct.observe(e),e}initPublisher(){if(!document)return;this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate),this.onAssign&&this.publisher.offAssign(this.onAssign));const e=Z.getInstance();this.dataProvider||(this.dataProvider=this.getAncestorAttributeValue("dataProvider"));let r=this.dataProvider;if(!r&&this._props&&(this.dataProvider=r="__subscriber__"+t.instanceCounter),r){this.bindPublisher&&e.set(r,this.bindPublisher());let i=e.get(r);if(this.dataProvider=r,this.hasAttribute("subDataProvider")){let n=this.getAttribute("subDataProvider");this.dataProvider=r+"/"+n,i=et.traverse(i,n.split(".")),e.set(this.dataProvider,i),this.publisher=i}this.publisher=i}this.publisher&&(this.onAssign=()=>{this.requestUpdate()},this.publisher.onAssign(this.onAssign),this.noAutoFill||this.publisher.startTemplateFilling(this),this.renderOnPropsInternalChange&&this.publisher.onInternalMutation(this.requestUpdate),this._props&&this.publisher.set(this._props))}};let s=t;return s.instanceCounter=0,ie([a({type:Boolean})],s.prototype,"noAutoFill",2),ie([a({type:Object})],s.prototype,"propertyMap",2),ie([a({type:String,attribute:"data-title"})],s.prototype,"title",2),ie([a({reflect:!0})],s.prototype,"dataProvider",2),ie([a()],s.prototype,"bindPublisher",2),ie([a()],s.prototype,"props",1),s};let _s=window;_s.SonicPublisherManager||(_s.SonicPublisherManager=Z);var ni=Object.defineProperty,ai=Object.getOwnPropertyDescriptor,li=(o,t,s,e)=>{for(var r=e>1?void 0:e?ai(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&ni(t,s,r),r};const Pe=o=>{class t extends o{constructor(){super(...arguments),this.templates=null,this.templateValueAttribute="data-value",this.templateList=[],this.templateParts={},this.templatePartsList=[]}connectedCallback(){let e=this.templates||[...this.querySelectorAll("template")];for(let r of e)r.hasAttribute(this.templateValueAttribute)&&(this.templateParts[r.getAttribute(this.templateValueAttribute)]=r,this.templatePartsList.push(r));this.templateList=e.filter(r=>!r.getAttribute("data-value")),this.templateList.length==0&&(this.templateList=e),super.connectedCallback()}}return li([a({type:Array})],t.prototype,"templates",2),t};var ci=Object.defineProperty,hi=Object.getOwnPropertyDescriptor,V=(o,t,s,e)=>{for(var r=e>1?void 0:e?hi(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&ci(t,s,r),r};const di="sonic-date";let U=class extends F(Pe(f)){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=new Date().getTime()/1e3,this.end_date=0,this.era="",this.year="numeric",this.month="short",this.day="2-digit",this.weekday="short",this.hour="2-digit",this.minute="2-digit",this.language="",this.renderIf=!0,this.startDateObject=new Date,this.endDateObject=new Date}get wording_billet_periode_validite(){return this._wording_billet_periode_validite}set wording_billet_periode_validite(o){this._wording_billet_periode_validite=o,this.duAu=this.wording_billet_periode_validite.split("%s").map(t=>t.trim()),this.duAu.pop(),this.requestUpdate()}connectedCallback(){this.wording_billet_periode_validite="Du %s au %s",this.pageLanguage=se.getLanguage(),super.connectedCallback()}getDatesParts(o,t,s){let e=this.startDateObject;e.setTime(o*1e3);let r=null;if(t>0){let i=this.endDateObject;if(i.setTime(t*1e3),e.toJSON().substring(0,10)!=i.toJSON().substring(0,10)&&(delete s.hour,delete s.minute),r=new Intl.DateTimeFormat(this.language||this.pageLanguage,s).formatRangeToParts(e,i),this.designMode)for(let l of r)l.type=="literal"&&this.designMode&&l.value.trim()==","&&(l.hidden=!0);const n=e.getFullYear()==i.getFullYear()&&e.getMonth()==i.getMonth()&&e.getDate()==i.getDate();if(r.some(l=>l.source=="endRange")&&!n){for(let l of r)if(l.type=="literal"&&l.source=="shared"&&l.value.trim().length>0&&!n){l.value=" "+this.duAu[1]+" ",l.type="to";break}this.designMode||r.unshift({type:"from",value:this.duAu[0]+" ",source:"shared"})}}else r=new Intl.DateTimeFormat(this.language||this.pageLanguage,s).formatToParts(e);return r[0].value=Fe.ucFirst(r[0].value),r=r.filter(i=>i.hidden!==!0),r}render(){if(!this.renderIf)return S;if(this.date_string&&(this.date=new Date(this.date_string).getTime()/1e3),this.date&&(this.start_date=this.date),this.start_date_string&&(this.start_date=new Date(this.start_date_string).getTime()/1e3),this.end_date_string&&(this.end_date=new Date(this.end_date_string).getTime()/1e3),this.end_date>0&&this.end_date<this.start_date){const s=this.start_date;this.start_date=this.end_date,this.end_date=s}let o={weekday:this.weekday,year:this.year,month:this.month,day:this.day};this.hour&&(o.hour=this.hour),this.minute&&(o.minute=this.minute),this.era&&(o.era=this.era),this.time_zone&&(o.timeZone=this.time_zone);let t=this.getDatesParts(this.start_date,this.end_date,o);return u`${t.map(s=>{let e=this.templateParts[s.type];if(e){var r=document.importNode(e.content,!0);let i=r.children[0];return i.innerText.trim()==""&&(i.innerText=s.value),r}return u`<span class="${s.type}">${s.value}</span>`})}`}};V([a()],U.prototype,"wording_billet_periode_validite",1),V([a({type:Boolean})],U.prototype,"designMode",2),V([a({type:String})],U.prototype,"time_zone",2),V([a({type:Number})],U.prototype,"date",2),V([a({type:String})],U.prototype,"date_string",2),V([a({type:String})],U.prototype,"start_date_string",2),V([a({type:String})],U.prototype,"end_date_string",2),V([a({type:Number})],U.prototype,"start_date",2),V([a({type:Number})],U.prototype,"end_date",2),V([a({type:String})],U.prototype,"era",2),V([a({type:String})],U.prototype,"year",2),V([a({type:String})],U.prototype,"month",2),V([a({type:String})],U.prototype,"day",2),V([a({type:String})],U.prototype,"weekday",2),V([a({type:String})],U.prototype,"hour",2),V([a({type:String})],U.prototype,"minute",2),V([a({type:String})],U.prototype,"language",2),V([a({type:Boolean})],U.prototype,"renderIf",2),U=V([v(di)],U);const pi=w`:host([align="left"]) .sonic-loader--inline { margin-left:0; } :host([align="right"]) .sonic-loader--inline { margin-left:auto; margin-right:0; } .sonic-loader--inline { display:block; position: relative; width: 80px; height: 80px; margin:auto; z-index:20; } .sonic-loader--inline div { position: absolute; top: 33px; width: 13px; height: 13px; border-radius: 50%; background:var(--sc-loader-bg); animation-timing-function: cubic-bezier(0, 1, 1, 0); } .sonic-loader--inline div:nth-child(1) { left: 8px; animation: lds-ellipsis1 0.6s infinite; } .sonic-loader--inline div:nth-child(2) { left: 8px; animation: lds-ellipsis2 0.6s infinite; } .sonic-loader--inline div:nth-child(3) { left: 32px; animation: lds-ellipsis2 0.6s infinite; } .sonic-loader--inline div:nth-child(4) { left: 56px; animation: lds-ellipsis3 0.6s infinite; } @keyframes lds-ellipsis1 { 0% { transform: scale(0); } 100% { transform: scale(1); } } @keyframes lds-ellipsis3 { 0% { transform: scale(1); } 100% { transform: scale(0); } } @keyframes lds-ellipsis2 { 0% { transform: translate(0, 0); } 100% { transform: translate(24px, 0); } }`,ui=w`@keyframes sonic-loader--fixed { 0% { transform: scale(0); opacity: 0; } 5% { opacity: 1; } 70% { opacity:90%; } 100% { transform: scale(1); opacity: 0; } } .sonic-loader--fixed { position: fixed; top:50%; left:50%; transform:transateY(-50%) translateX(-50%); z-index:999; } .sonic-loader--fixed > div:nth-child(2) { animation-delay: -0.5s; } .sonic-loader--fixed > div:nth-child(3) { animation-delay: -0.2s; } .sonic-loader--fixed > div:nth-child(4) { display:none !important; } .sonic-loader--fixed > div { background-color: var(--sc-loader-bg); width: 5rem; height: 5rem; border-radius: 100%; margin: 2px; animation-fill-mode: both; position: absolute; top: 0px; opacity: 0; margin: 0; top: -2.5rem; left: -2.5rem; width: 5rem; height: 5rem; animation: sonic-loader--fixed 1s 0s linear infinite; }`;var mi=Object.defineProperty,gi=Object.getOwnPropertyDescriptor,As=(o,t,s,e)=>{for(var r=e>1?void 0:e?gi(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&mi(t,s,r),r};const Ps="sonic-loader";let q=class extends f{constructor(){super(...arguments),this.mode="fixed"}static show(o){q.loader||(q.loader=document.createElement("sonic-loader"));let t=q.loader;o||(o={});let s=o;for(let e in s)t.setAttribute(e,s[e]);o.container||(o.container=document.querySelector("sonic-theme")||document.body,o.mode="fixed"),o.container.appendChild(t),q.callCounter++}static hide(){q.callCounter--,!(q.callCounter>0)&&q.loader&&q.loader.remove()}render(){return u`<div class="sonic-loader sonic-loader--${this.mode}"><div></div><div></div><div></div><div></div></div>`}};q.styles=[pi,ui,w`:host { --sc-loader-bg: var(--sc-primary, currentColor); pointer-events: none; } .sonic-loader { opacity: 0; animation: showLoader 0.5s 0.5s forwards; } .sonic-loader--inline { animation-delay: 0s; } @keyframes showLoader { 0% { opacity: 0; } 100% { opacity: 1; } }`],q.callCounter=0,As([a({type:String})],q.prototype,"mode",2),q=As([v(Ps)],q);try{customElements.define(Ps,q)}catch{}/**
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
`,"nav-arrow-down":`<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
<path d="M12 17.01L12.01 16.9989" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
|
|
96
|
-
<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"/>
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
102
|
-
*/const k=o=>o!=null?o:S;/**
|
|
103
|
-
* @license
|
|
104
|
-
* Copyright 2018 Google LLC
|
|
105
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
106
|
-
*/const dt=ne(class extends ae{constructor(o){var t;if(super(o),o.type!==Rt.ATTRIBUTE||o.name!=="style"||((t=o.strings)===null||t===void 0?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(o){return Object.keys(o).reduce((t,s)=>{const e=o[s];return e==null?t:t+`${s=s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${e};`},"")}update(o,[t]){const{style:s}=o.element;if(this.ct===void 0){this.ct=new Set;for(const e in t)this.ct.add(e);return this.render(t)}this.ct.forEach(e=>{t[e]==null&&(this.ct.delete(e),e.includes("-")?s.removeProperty(e):s[e]="")});for(const e in t){const r=t[e];r!=null&&(this.ct.add(e),e.includes("-")?s.setProperty(e,r):s[e]=r)}return ht}}),We=w`.custom-scroll { overflow:auto !important; } .custom-scroll::-webkit-scrollbar { width: 0.5rem; height: 0.5rem; border: solid .15rem transparent; border-radius: var(--sc-rounded); background:transparent; } .custom-scroll::-webkit-scrollbar-thumb { box-shadow: inset 0 0 2rem 2rem var(--sc-scrollbar-bg); border-radius: var(--sc-rounded); border: solid .15rem transparent; }`;var Li=Object.defineProperty,Mi=Object.getOwnPropertyDescriptor,gt=(o,t,s,e)=>{for(var r=e>1?void 0:e?Mi(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&Li(t,s,r),r};const Ti={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty"},Ni="sonic-toast-item";let at=class extends f{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 o=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(o)[this.id])return S}return this.visible?u`<div class="sonic-toast ${this.status} ${this.ghost?"ghost":""}"><button aria-label="Close" class="sonic-toast-close" @click="${()=>this.hide()}"><sonic-icon name="cancel" size="lg"></sonic-icon></button><div class="sonic-toast-content custom-scroll" style="max-height:${this.maxHeight}">${this.status&&u`<sonic-icon name="${Ti[this.status]}" class="sonic-toast-icon" size="2xl"></sonic-icon>`}<div class="sonic-toast-text">${this.title?u`<div class="sonic-toast-title">${this.title}</div>`:""} ${this.text?Bt(this.text):""}<slot></slot></div>${this.preserve?"":this.autoHide()}</div></div>`:S}hide(){if(this.closest("sonic-toast")||(this.visible=!1),this.dismissForever){const o=localStorage.getItem("sonic-toast-dismissed")||"{}",t=JSON.parse(o);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()},4200)}};at.styles=[We,w`* { box-sizing: border-box; } :host { display: block; pointer-events: auto; position: relative; --sc-toast-status-color: transparent; --sc-toast-color: var(--sc-base-content); --sc-toast-bg: var(--sc-base); --sc-toast-rounded: var(--sc-rounded-md); --sc-toast-shadow: var(--sc-shadow-lg); } .fixed-area { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 999; display: flex; flex-direction: column-reverse; } .sonic-toast { position: relative; pointer-events: auto; overflow:hidden; line-height: 1.25; color: var(--sc-toast-color); box-shadow: var(--sc-toast-shadow); border-radius: var(--sc-toast-rounded); background: var(--sc-toast-bg); } .sonic-toast-content { padding: 1em 2.5rem 1em 1em; display: flex; gap: 0.5rem; overflow: auto; position:relative; } .sonic-toast-text { align-self: center; margin-top: auto; margin-bottom: auto; max-width:70ch; line-height: 1.2; } ::slotted(a:not(.btn)), .sonic-toast-text a { color: inherit !important; text-decoration: underline !important; text-underline-offset: 0.15rem; } ::slotted(:is(p, ul, ol, hr, h1, h2, h3, h4, h5, h6)), .sonic-toast-text :is(p, ul, ol, hr, h1, h2, h3, h4, h5, h6) { margin: 0 0 0.3em !important; } ::slotted(li), .sonic-toast-text li { margin-bottom: .15em !important; } ::slotted( :is(p, ul, ol, hr, h1, h2, h3, h4, h5, h6):last-child), .sonic-toast-text > :is(p, ul, ol, hr, h1, h2, h3, h4, h5, h6):last-child { margin-bottom: 0 !important; } /*BUTTON CLOSE*/ .sonic-toast-close { all: unset; position: absolute; z-index:4; pointer-events: initial; right: 0.5em; top: 0.5em; width: 1.5rem; height: 1.5rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; text-align: center; opacity: 0.5; background: rgba(0, 0, 0, 0); } .sonic-toast-close:focus, .sonic-toast-close:hover { opacity: 1; background: rgba(0, 0, 0, 0.075); } .sonic-toast-close svg { width: 1rem; height: 1rem; object-fit: contain; object-position: center center; } /*Title*/ .sonic-toast-title { font-weight: bold; font-size: 1.15rem; margin: 0.15em 0 0.25em; line-height: 1.2; } /*STATUS*/ .success { --sc-toast-status-color: var(--sc-success); --sc-toast-title-color: var(--sc-toast-status-color); } .error { --sc-toast-status-color: var(--sc-danger); --sc-toast-title-color: var(--sc-toast-status-color); } .warning { --sc-toast-status-color: var(--sc-warning); --sc-toast-title-color: var(--sc-toast-status-color); } .info { --sc-toast-status-color: var(--sc-info); --sc-toast-title-color: var(--sc-toast-status-color); } .success, .error, .info, .warning { border-top: 3px solid var(--sc-toast-status-color, currentColor); } .sonic-toast:before { content: ""; display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; opacity: 0.05; pointer-events: none; transition: 0.2s; border-radius: var(--sc-toast-rounded); background-color: var(--sc-toast-status-color); } .sonic-toast:hover:before { opacity: 0.025; } .info .sonic-toast-icon, .error .sonic-toast-icon, .success .sonic-toast-icon, .warning .sonic-toast-icon { color: var(--sc-toast-status-color, currentColor); } .sonic-toast-icon { position:sticky; top:0; } .ghost { opacity: 0.85; pointer-events: none; }`],gt([a({type:String})],at.prototype,"title",2),gt([a({type:String})],at.prototype,"id",2),gt([a({type:String})],at.prototype,"text",2),gt([a({type:String})],at.prototype,"status",2),gt([a({type:Boolean})],at.prototype,"ghost",2),gt([a({type:Boolean})],at.prototype,"preserve",2),gt([a({type:Boolean})],at.prototype,"dismissForever",2),gt([a({type:String})],at.prototype,"maxHeight",2),gt([Y()],at.prototype,"visible",2),at=gt([v(Ni)],at);var Ii=Object.defineProperty,Ri=Object.getOwnPropertyDescriptor,Fs=(o,t,s,e)=>{for(var r=e>1?void 0:e?Ri(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&Ii(t,s,r),r};const Fi="sonic-toast";let pt=class extends f{constructor(){super(...arguments),this.toasts=[]}createRenderRoot(){return this}render(){const o=window.parent!=window;let t={pointerEvents:"none",gap:"1rem",display:"flex",margin:"1rem"};return o||(t=Ie(X({},t),{margin:"0",width:"calc(100% - 2.5rem)",position:"fixed",bottom:"1.25rem",right:"1.25rem",zIndex:"999",maxWidth:"64ch",flexDirection:"column-reverse"})),this.toasts?u`<div aria-live="polite" style="${dt(t)}">${Ut(this.toasts,s=>s.id,s=>u`<sonic-toast-item maxHeight="${o?"none":"10rem"}" status="${k(s.status)}" title="${k(s.title)}" ?ghost="${s.ghost}" ?dismissForever="${s.dismissForever}" ?preserve="${s.preserve}" id="${k(s.id)}" @hide="${()=>this.removeItem(s)}" ${Ve({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})}>${s.text?Bt(s.text):""}</sonic-toast-item>`)}</div>`:S}static removeAll(){let o=document.querySelector("sonic-toast");!o||(o.toasts=o.toasts.filter(t=>t.ghost))}static add(o){var i;if(!document.querySelector("sonic-toast")){let n=document.createElement("sonic-toast");(document.querySelector("sonic-theme")||document.body).prepend(n)}let t=document.querySelector("sonic-toast");const s=(i=o.id)!=null?i:new Date().valueOf(),e=new RegExp("</a>|</button>").test(o.text),r={id:s,text:o.text,title:o.title,status:o.status,preserve:e?!0:o.preserve,ghost:o.ghost,dismissForever:o.dismissForever};if(o.dismissForever&&o.id){const n=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(n)[o.id])return null}if(t.toasts.length>0){let n=X({},r),l=X({},t.toasts[t.toasts.length-1]);if(n.id=l.id=0,!r.preserve&&et.shallowEqual(n,l))return null}return t.toasts=[...t.toasts,r],r}removeItem(o){this.toasts=this.toasts.filter(t=>t!=o)}};if(Fs([a({type:Array})],pt.prototype,"toasts",2),pt=Fs([v(Fi)],pt),typeof window<"u"){let o=window;o.SonicToast=pt}const rt=class{static listen(){var t;if(!rt.listening)return;let o=(t=document.location)==null?void 0:t.href.replace(document.location.origin,"");rt.prevURL&&rt.prevURL!=o&&(rt.prevURL=o,rt.listeners.forEach(s=>{s.location=o})),window.requestAnimationFrame(rt.listen)}static offChange(o){let t=rt.listeners.indexOf(o);t!=-1&&(rt.listeners.splice(t,1),rt.listeners.length==0&&(rt.listening=!1))}static onChange(o){rt.listening||(rt.listening=!0,rt.listen()),rt.listeners.push(o)}static changeFromComponent(o){if(o.goBack!==null){const n=document.location.origin;let l=o.goBack||n;if((document.referrer.indexOf("http")!=0||new URL(document.referrer).origin!=n)&&l!=document.location.href){let c=history.state||{};c.concorde=c.concorde||{},c.concorde.hasDoneHistoryBack=!0,history.pushState(c,document.title),history.back(),document.location.replace(l)}else history.back();return}let t=o.getAttribute("to");if(t||(t=o.href),!t)return;if(t.indexOf("#")==0){document.location.hash=t.substring(1);return}let s=new URL(t,document.location.href),e=s.pathname.split("/"),r=[],i="";for(let n of e)n!=i&&r.push(n),i=n;t="/"+r.join("/")+s.search+(s.hash?+s.hash:""),o.hasAttribute("pushState")?history.pushState(null,"",t):o.hasAttribute("replaceState")?history.replaceState(null,"",t):document.location.href=t}static updateComponentActiveState(o){if(o.autoActive!="disabled"&&o.href&&o.href.indexOf("http")!=0){let t=new URL(o.href,document.location.href),s=new URL(o.location,document.location.origin),e=!1;o.autoActive=="strict"?e=t.pathname==s.pathname&&t.hash==s.hash&&t.search==s.search:e=s.href.indexOf(t.href)==0,e?o.setAttribute("active","true"):o.removeAttribute("active")}}};let G=rt;G.listeners=[],G.listening=!1,G.prevURL=(Ho=document.location)==null?void 0:Ho.href.replace(document.location.origin,"");var Ui=Object.defineProperty,Bi=Object.getOwnPropertyDescriptor,qt=(o,t,s,e)=>{for(var r=e>1?void 0:e?Bi(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&Ui(t,s,r),r};const Ze=new Map,le=o=>{class t extends o{constructor(...e){super(),this.touched=!1,this.error=!1,this.autofocus=!1,this.required=!1,this.disabled=null,this.onValueAssign=null,this.onFormValueAssign=null,this.onFormDataInValidate=null,this.formDataProvider="",this._name="",this._value="",this.onValueAssign=r=>{this.setValueFromPublisher(r)},this.onFormValueAssign=r=>{this.setFormValueFromPublisher(r)},this.onFormDataInValidate=()=>{!this.getFormPublisher().isFormValid.get()||this.validateFormElement()}}get name(){return this._name}set name(e){this._name=e}validateFormElement(){}updateDataValue(){if(this._name){let e=this.getFormPublisher();e&&(e[this._name]=this.getValueForFormPublisher(),this.setFormValueFromPublisher(e[this.name].get()))}}getFormPublisher(){return this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?Z.get(this.formDataProvider):this.publisher}getValueForFormPublisher(){return this.value}setValueFromPublisher(e){this.value=e}setFormValueFromPublisher(e){this.value=e}get value(){return this._value}set value(e){et.isObject(e)&&e.hasOwnProperty("__value")&&e.value==null||e!=null&&this._value!=e&&(this._value=e,this.updateDataValue(),this.requestUpdate())}initPublisher(){this._name&&this.publisher&&this.publisher[this._name].offAssign(this.onValueAssign);let e=this.getFormPublisher();this._name&&e&&e[this._name].offAssign(this.onFormValueAssign),super.initPublisher(),this.name||(this._name=this.getAttribute("name")),this.value||(this._value=this.getAttribute("value")),this.updateDataValue(),this.publisher&&this._name&&this.publisher[this._name].onAssign(this.onValueAssign),e=this.getFormPublisher(),this._name&&e&&(e[this._name].onAssign(this.onFormValueAssign),e.onInvalidate(this.onFormDataInValidate))}handleBlur(){this.touched=!0}handleChange(e){this.value=e.target.value;const r=new Event("change");this.dispatchEvent(r)}addKeyboardNavigation(){let e=this.getAncestorAttributeValue("data-keyboard-nav");if(!e)return;let r=e.split(" "),i=r[0];if(!i)return;for(let l of r){Ze.has(l)||Ze.set(l,[]);let c=Ze.get(l);c.indexOf(this)==-1&&c.push(this)}let n=Ze.get(i);this.addEventListener("keydown",l=>{if(!["ArrowDown","ArrowUp"].includes(l.key))return;let c="input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])",h=n.filter(m=>{let x=m.shadowRoot.querySelector(c);if(!x)return!1;let _=window.getComputedStyle(x);return _.display!=="none"&&_.display!==""&&_.pointerEvents!="none"&&_.visibility!=="hidden"&&x.getBoundingClientRect().width>0}),y=null;if(l.key=="ArrowDown"){let m=h.indexOf(this);m==h.length-1?y=h[0]:y=h[m+1]}else if(l.key=="ArrowUp"){let m=h.indexOf(this);m==0?y=h[h.length-1]:y=h[m-1]}let g=y.shadowRoot.querySelector(c);g&&(g.focus(),l.preventDefault())})}connectedCallback(){super.connectedCallback(),this.addKeyboardNavigation()}disconnectedCallback(){super.disconnectedCallback(),this._name&&this.publisher&&this.publisher[this._name].offAssign(this.onValueAssign);let e=this.getFormPublisher();this._name&&e&&(e[this._name].offAssign(this.onFormValueAssign),e.offInvalidate(this.onFormDataInValidate))}}return qt([a({type:Boolean,reflect:!0})],t.prototype,"touched",2),qt([a({type:Boolean})],t.prototype,"error",2),qt([a({type:Boolean})],t.prototype,"autofocus",2),qt([a({type:Boolean})],t.prototype,"required",2),qt([a({type:Boolean})],t.prototype,"disabled",2),qt([a()],t.prototype,"name",1),qt([a()],t.prototype,"value",1),t};var Vi=Object.defineProperty,qi=Object.getOwnPropertyDescriptor,Ee=(o,t,s,e)=>{for(var r=e>1?void 0:e?qi(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&Vi(t,s,r),r};const zr=o=>{class t extends o{constructor(){super(...arguments),this._value="",this._name="",this.unique=null,this.radio=null,this._checked=null}get value(){return this._value}set value(e){this.hasAttribute("value")&&(e=this.getAttribute("value")),this._value!=e&&(this._value=e,this.updateDataValue(),this.requestUpdate())}get name(){return this._name}set name(e){this.hasAttribute("name")&&(e=this.getAttribute("name")),this._name=e}get checked(){return this._checked}set checked(e){this.setCheckedValue(e)}validateFormElement(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("input");if(!e||e.checkValidity())return;let r=this.getFormPublisher()[this.name].get();(this.unique||this.radio)&&r!==null&&r.toString().length>0||(this.getFormPublisher().isFormValid=!1,e.reportValidity())}setCheckedValue(e){this._checked!=e&&(this._checked=e,this.updateDataValue(),this.requestUpdate(),this.publisher&&!this.radio&&!this.unique&&(this.publisher.checked=this._checked))}handleChange(){this.checked=this.checked?this.radio?!0:null:!0;const e=new Event("change");this.dispatchEvent(e)}getValueForFormPublisher(){let e=this.getFormPublisher()[this.name].get();if(this.radio)return this.checked&&this.value!=null?this.value:e;if(this.unique)return this.checked&&this.value!=null?this.value:null;Array.isArray(e)||(e=[]),e=e.slice(0);let r=e.indexOf(this.value);return this.checked===!0&&r===-1&&e.push(this.value),this.checked===null&&r!==-1&&e.splice(r,1),e}setFormValueFromPublisher(e){if(this.unique||this.radio){this.checked=this.value==e?!0:null;return}Array.isArray(e)||(e=[]),this.checked=e.indexOf(this.value)!==-1?!0:null}initPublisher(){super.initPublisher(),!!this.hasAttribute("checked")&&(!this.publisher||this.publisher.get().checked!==!1)&&(this.checked=!0)}}return Ee([a()],t.prototype,"value",1),Ee([a()],t.prototype,"name",1),Ee([a({type:Boolean})],t.prototype,"unique",2),Ee([a({type:Boolean})],t.prototype,"radio",2),Ee([a()],t.prototype,"checked",1),t},ce=w`/*SIZES*/ :host { --sc-fs: 1rem; font-size: var(--sc-fs); } :host([size="2xs"]) { --sc-fs: 0.68rem; } :host([size="xs"]) { --sc-fs: 0.75rem; } :host([size="sm"]) { --sc-fs: 0.875rem; } :host([size="lg"]) { --sc-fs: 1.125rem; } :host([size="xl"]) { --sc-fs: 1.25rem; } :host([size="2xl"]) { --sc-fs: 1.5rem; }`;var Hi=Object.defineProperty,Wi=Object.getOwnPropertyDescriptor,M=(o,t,s,e)=>{for(var r=e>1?void 0:e?Wi(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&Hi(t,s,r),r};const Us="sonic-button";let E=class extends zr(le(F(f))){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.autoActive="partial",this.loading=!1,this.hasPrefix=!1,this.hasSuffix=!1,this._href="",this.goBack=null,this.pushState=!1,this.active=!1,this._location=""}set href(o){this._href=o,this.href&&this.href.indexOf("http")!=0?(G.onChange(this),this.location=document.location.href.replace(document.location.origin,"")):G.offChange(this),this.requestUpdate()}get href(){return this._href}handleNavigation(o){o.preventDefault(),G.changeFromComponent(this)}handleChange(o){super.handleChange(o),(this.pushState||this.goBack!==null)&&(o.preventDefault(),o.stopPropagation(),G.changeFromComponent(this))}connectedCallback(){super.connectedCallback()}setCheckedValue(o){if(this.name){if(o==this._checked)return;super.setCheckedValue(o),this._checked?this.setAttribute("active","true"):this.removeAttribute("active")}}disconnectedCallback(){G.offChange(this),super.disconnectedCallback()}get location(){return this._location}set location(o){this._location=o,G.updateComponentActiveState(this)}render(){const o={flexDirection:this.direction,alignItems:this.alignItems,justifyContent:this.justify,textAlign:this.align,minWidth:this.minWidth},t=u`<button part="button" class="${this.hasPrefix||this.hasSuffix?"has-prefix-or-suffix":""}" style="${dt(o)}" @click="${this.handleChange}"><slot @slotchange="${this.onSlotChange}" part="prefix" name="prefix"></slot><slot part="main" class="main-slot"></slot><slot @slotchange="${this.onSlotChange}" part="suffix" name="suffix"></slot>${this.loading==!0?u`<sonic-icon name="loader" class="loader"></sonic-icon>`:""}</button>`;return this.href?u`<a href="${this.href}" target="${k(this.target)}" @click="${this.pushState||this.goBack!==null?this.handleNavigation:null}">${t}</a>`:u`${t}`}onSlotChange(){var o,t;this.hasPrefix=!!((o=this.prefixes)!=null&&o.length),this.hasSuffix=!!((t=this.suffixes)!=null&&t.length)}};E.styles=[ce,w`* { box-sizing: border-box; } :host { --sc-btn-gap: 0.35em; --sc-btn-py: 0.25em; --sc-btn-px: 1.1em; --sc-btn-fs: var(--sc-fs, 1rem); --sc-btn-fw: var(--sc-btn-font-weight); --sc-btn-ff: var(--sc-btn-font-family); --sc-btn-height: var(--sc-form-height); --sc-btn-color: var(--sc-base-content); --sc-btn-bg: var(--sc-base-100); --sc-btn-border-style: solid; --sc-btn-border-with: var(--sc-form-border-width); --sc-btn-border-color: transparent; --sc-btn-outline-bg-hover: var(--sc-base-100); --sc-btn-ghost-bg-hover: var(--sc-base-100); --sc-btn-active-color: var(--sc-base); --sc-btn-hover-filter: brightness(0.98); --sc-btn-active-filter: brightness(0.97); --sc-btn-active-bg: var(--sc-base-content); --sc-item-rounded-tr: var(--sc-btn-rounded); --sc-item-rounded-tl: var(--sc-btn-rounded); --sc-item-rounded-bl: var(--sc-btn-rounded); --sc-item-rounded-br: var(--sc-btn-rounded); display: inline-flex; vertical-align: middle; box-sizing: border-box; } :host a { display: contents; color:unset; } :host button { display: flex; flex: 1; box-sizing: border-box; align-items: center; justify-content: center; font-family: var(--sc-btn-ff); font-weight: var(--sc-btn-fw); font-size: var(--sc-btn-fs); cursor: pointer; text-align: center; line-height: 1.1; border-radius: var(--sc-item-rounded-tl) var(--sc-item-rounded-tr) var(--sc-item-rounded-br) var(--sc-item-rounded-bl); background: var(--sc-btn-bg); color: var(--sc-btn-color); padding-top: var(--sc-btn-py); padding-bottom: var(--sc-btn-py); padding-left: var(--sc-btn-px); padding-right: var(--sc-btn-px); border: var(--sc-btn-border-with) var(--sc-btn-border-style) var(--sc-btn-border-color); min-height: var(--sc-btn-height); } :host button.has-prefix-or-suffix { gap: var(--sc-btn-gap); } :host button:focus, :host button:hover { filter: var(--sc-btn-hover-filter); } :host button:active { filter: var(--sc-btn-active-filter); } /*TYPES*/ :host([type="default"]) button { --sc-btn-color: var(--sc-base-content); --sc-btn-bg: var(--sc-base-100); } :host([type="primary"]) button { --sc-btn-color: var(--sc-primary-content); --sc-btn-bg: var(--sc-primary); } :host([type="warning"]) button { --sc-btn-color: var(--sc-warning-content); --sc-btn-bg: var(--sc-warning); } :host([type="danger"]) button { --sc-btn-color: var(--sc-danger-content); --sc-btn-bg: var(--sc-danger); } :host([type="info"]) button { --sc-btn-color: var(--sc-info-content); --sc-btn-bg: var(--sc-info); } :host([type="success"]) button { --sc-btn-color: var(--sc-success-content); --sc-btn-bg: var(--sc-success); } :host([type="neutral"]) button { --sc-btn-color: var(--sc-base); --sc-btn-bg: var(--sc-base-600); } /*UNSTYLED*/ :host([variant="unstyled"]), :host([variant="unstyled"]) button { all: unset; display: contents; transition: 0.1s; cursor: pointer; --sc-btn-height: auto; --sc-btn-width: auto; } /*GESTION DU FOCUS*/ :host(:not([disabled])) button:focus { box-shadow: 0 0 0 0.18rem var(--sc-base-300); border-color: var(--sc-base-300) !important; outline: none; } /*GHOST*/ :host([variant="ghost"][type]) button { color: var(--sc-btn-bg); background: transparent; } :host([variant="ghost"][type="default"]) button { color: var(--sc-btn-color); background: transparent; } /*:host([variant="ghost"]) button:focus,*/ :host([variant="ghost"]) button:hover { background: var(--sc-btn-ghost-bg-hover); filter: none; } :host([active][variant="ghost"]) button { background: var(--sc-btn-ghost-bg-hover); filter: none; } :host([active][variant="ghost"]) button:hover { filter: var(--sc-btn-hover-filter); } /*OUTLINE*/ :host([variant="outline"][type]) button { border-color: var(--sc-btn-bg); color: var(--sc-btn-bg); background: transparent; } :host([variant="outline"][type="default"]) button { border-color: var(--sc-base-400); color: var(--sc-base-500); background: transparent; } /*:host([variant="outline"]) button:focus,*/ :host([variant="outline"]) button:hover { background: var(--sc-btn-outline-bg-hover); } /*OUTLINE*/ :host([variant="link"]:not([size])) { vertical-align: baseline; margin-left:.25em; margin-right:.25em; } :host([variant="link"]:not([size])) { font-size: inherit; } :host([variant="link"]) button { text-decoration: underline; padding: 0; background: none; border: none; font-size: inherit; min-height: 0; color: inherit; } :host([variant="link"][type]) button { color: var(--sc-btn-bg); } :host([variant="link"][type="default"]) button { color: inherit; } :host([variant="link"]) button:focus, :host([variant="link"]) button:hover { text-decoration: none; } /*SHAPE*/ :host([shape="circle"]) button { border-radius: 50%; } :host([shape="circle"]) button, :host([shape="square"]) button { width: var(--sc-btn-height); height: var(--sc-btn-height); overflow: hidden; padding: 0; align-items: center; justify-content: 0; text-align:center !important; } :host([shape="block"]), :host([shape="block"]) button { width: 100%; } :host([disabled]) { opacity: 0.3; pointer-events: none; user-select: none; } /*ACTIVE*/ :host([active]:not([variant="ghost"])) button { background: var(--sc-btn-active-bg); color: var(--sc-btn-active-color); border-color: var(--sc-btn-active-bg); } :host([textAlign="left"]) button { text-align: left; } :host([textAlign="right"]) button { text-align: right; } .main-slot { flex-grow: 1; display: block; /*align-items: center; justify-content: center;*/ } :host([minWidth]) .main-slot { flex-grow:0; } slot[name="suffix"], slot[name="prefix"] { flex-shrink: 0; } /*ALIGNEMENT DES ICONES permet de tous les avoir alignés dans un menu */ ::slotted(sonic-icon) { min-width: 1.28em; text-align: center; } /*BOUTON Avec icone seulement*/ :host([icon]) ::slotted(sonic-icon) { font-size: 1.35em; } /*Tooltip ne joue pas sur le layout*/ sonic-tooltip { display: contents; } /*OUTLINE*/ :host(:not([active])) ::slotted([swap="on"]) { display: none; } :host([active]) ::slotted([swap="off"]) { display: none; } /*Loading*/ :host([loading]) { pointer-events: none; position: relative; } :host([loading]) slot { opacity: 0 !important; pointer-events: none; } /*Loading*/ :host([loading]) .loader { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; line-height: 0; height: var(--sc-btn-ff); width: var(--sc-btn-ff); animation: rotation 2s infinite linear; } @keyframes rotation { from { transform-origin: 50% 50%; transform: translate(-50%, -50%) rotate(0deg); } to { transform-origin: 50% 50%; transform: translate(-50%, -50%) rotate(359deg); } }`],M([a({type:String,reflect:!0})],E.prototype,"type",2),M([a({type:String,reflect:!0})],E.prototype,"variant",2),M([a({type:String,reflect:!0})],E.prototype,"size",2),M([a({type:String,reflect:!0})],E.prototype,"shape",2),M([a({type:String})],E.prototype,"direction",2),M([a({type:String,reflect:!0})],E.prototype,"alignItems",2),M([a({type:String})],E.prototype,"justify",2),M([a({type:String,reflect:!0})],E.prototype,"align",2),M([a({type:String})],E.prototype,"minWidth",2),M([a({type:Boolean,reflect:!0})],E.prototype,"icon",2),M([a({type:String})],E.prototype,"autoActive",2),M([a({type:Boolean,reflect:!0})],E.prototype,"loading",2),M([Y()],E.prototype,"hasPrefix",2),M([Y()],E.prototype,"hasSuffix",2),M([Nt({flatten:!0,slot:"prefix"})],E.prototype,"prefixes",2),M([Nt({flatten:!0,slot:"suffix"})],E.prototype,"suffixes",2),M([a({type:String})],E.prototype,"target",2),M([a({type:String})],E.prototype,"href",1),M([a({type:String})],E.prototype,"goBack",2),M([a({type:Boolean})],E.prototype,"pushState",2),M([a({type:Boolean,reflect:!0})],E.prototype,"active",2),E=M([v(Us)],E);try{customElements.define(Us,E)}catch{}class Ot{static areEqual(t,s){return t.length===s.length?t.every((e,r)=>e===s[r]):!1}static from2d(t){return{to1D:()=>{let s=[];return t.forEach(e=>s=s.concat(e)),this.from(s)}}}static from(t){return{get:()=>t||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:s=>{if(t.length<1)return!0;let e=(t[0]||{})[s];return t.every(r=>(r||{})[s]==e)}})})}),value:()=>({forKey:s=>Ot.from(t.map(e=>e[s]))}),copy:()=>({fromKey:s=>({toKey:e=>{t.forEach(r=>{r[e]=Array.isArray(r[s])?[...r[s]]:typeof r[s]=="object"&&r[s]!=null?X({},r[s]):r[s]})}})})}),map:s=>Ot.from(t.map(s)),filter:s=>Ot.from(t.filter(s)),find:s=>t.find(s),some:s=>t.some(s),every:s=>t.every(s),group:()=>({byKey:s=>{let e=[],r=new Map;for(let i of t){let n=i[s];if(!r.has(n)){let l=e.length;r.set(n,l);let c={items:[]};c[s]=n,e.push(c)}e[r.get(n)].items.push(i)}return Ot.from(e)}}),without:()=>({duplicates:()=>({forKey:s=>{let e=[...new Set(t.map(r=>r[s]))];return Ot.from(e.map(r=>t.find(i=>i[s]==r)))}}),itemsIn:s=>({havingSameValue:()=>({forKey:e=>{let r=(i,n)=>l=>i[n]!=l[n];return Ot.from(t.filter(i=>s.every(r(i,e))))}})})})}}}const Zi=Ot,Ki=Ct,Yi=Fe,Gi=se,Qi=G,Ji=et,Xi=It,Dr=Z,tn=oe;let Lr=window;Lr["concorde-utils"]=Lr["concorde-utils"]||{},Lr["concorde-utils"]={Arrays:Zi,DataBindObserver:Ki,Format:Yi,HTML:Gi,LocationHandler:Qi,Objects:Ji,PublisherProxy:Xi,PublisherManager:Dr,api:tn};var en=Object.defineProperty,rn=Object.getOwnPropertyDescriptor,sn=(o,t,s,e)=>{for(var r=e>1?void 0:e?rn(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&en(t,s,r),r};const Mr=o=>{class t extends o{constructor(...e){super(),this.api=null,this.key="",this.isFirstLoad=!0,this.isLoading=!1,this.iObserver=null,this.isDefaultLoaderEnabled=!0,this.isFetchEnabled=!0,this._endPoint="",this.dataProvider=""}set endPoint(e){this._endPoint=e,this.isConnected&&this._fetchData()}get endPoint(){return this._endPoint}async _fetchData(){if(!this.isFetchEnabled||(this.api=new oe(this.getApiConfiguration()),!this.api))return;this.dispatchEvent(new CustomEvent("loading",{detail:this})),this.isLoading=!0,this.requestUpdate();let e,r=this.isDefaultLoaderEnabled&&!this.hasAttribute("noLoader");r&&q.show();let i=Dr.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();if(e=await this.api.get(this.endPoint||this.dataProvider||"",i),!e){pt.add({text:"Network Error",status:"error"}),this.isLoading=!1,r&&q.hide();return}if(r&&q.hide(),this.key){let n=e._sonic_http_response_;e=et.traverse(e,this.key.split("."),!1),e&&(e._sonic_http_response_=n)}this.props=e,this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.publisher)==null||e.offInvalidate(this.onInvalidate),this.isFirstLoad=!1}connectedCallback(){var e;if(this.noShadowDom="",!this.isFetchEnabled){super.connectedCallback();return}super.connectedCallback(),this.key=this.getAncestorAttributeValue("key"),this.props&&this.publisher.set(this.props),this.onInvalidate=()=>this._fetchData(),(e=this.publisher)==null||e.onInvalidate(this.onInvalidate),this.getAncestorAttributeValue("lazyload")===null&&this._fetchData()}firstUpdated(){if(this.getAncestorAttributeValue("lazyload")===null)return;let e={root:null,rootMargin:Math.max(window.innerWidth,window.innerHeight)+"px"};this.iObserver=new IntersectionObserver(n=>this.onIntersection(n),e);let r=this,i=r.shadowRoot?r.shadowRoot.children[0]:r.children[0];i&&i.nodeName.toLocaleLowerCase()=="slot"&&(i=i.children[0]),(!i||i.nodeName.toLocaleLowerCase()=="template")&&(i=document.createElement("span"),r.appendChild(i)),i?this.iObserver.observe(i):this.isFirstLoad&&this._fetchData()}onIntersection(e){for(const r of e)r.isIntersecting&&this.isFirstLoad&&this._fetchData()}}return sn([a({type:String})],t.prototype,"endPoint",1),t};var on=Object.defineProperty,nn=Object.getOwnPropertyDescriptor,an=(o,t,s,e)=>{for(var r=e>1?void 0:e?nn(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&on(t,s,r),r};const Bs="sonic-fetch";let Ke=class extends Mr(F(f)){render(){return u`<slot></slot>`}};Ke.styles=[w`:host { display: contents; }`],Ke=an([v(Bs)],Ke);try{customElements.define(Bs,Ke)}catch{}var ln=Object.defineProperty,cn=Object.getOwnPropertyDescriptor,Vs=(o,t,s,e)=>{for(var r=e>1?void 0:e?cn(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&ln(t,s,r),r};const qs="sonic-if";let je=class extends f{constructor(){super(...arguments),this.condition=!1}render(){return this.condition?u`<slot></slot>`:S}};je.styles=w`:host{ display:contents; }`,Vs([a({type:Boolean})],je.prototype,"condition",2),je=Vs([v(qs)],je);try{customElements.define(qs,je)}catch{}/**
|
|
107
|
-
* @license
|
|
108
|
-
* Copyright 2020 Google LLC
|
|
109
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
110
|
-
*/const Et=ne(class extends ae{constructor(o){if(super(o),o.type!==Rt.CHILD)throw Error("templateContent can only be used in child bindings")}render(o){return this.vt===o?ht:(this.vt=o,document.importNode(o.content,!0))}});var hn=Object.defineProperty,dn=Object.getOwnPropertyDescriptor,pn=(o,t,s,e)=>{for(var r=e>1?void 0:e?dn(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&hn(t,s,r),r};const Hs="sonic-subscriber";let Tr=class extends F(f){constructor(){super(...arguments),this.noAutofill=!0}connectedCallback(){this.noShadowDom="",super.connectedCallback()}updated(o){super.updated(o),this.children.length==0?this.style.display="none":this.style.display="contents"}render(){return u`<slot></slot>`}};Tr=pn([v(Hs)],Tr);try{customElements.define(Hs,Tr)}catch{}var un=Object.defineProperty,mn=Object.getOwnPropertyDescriptor,Ye=(o,t,s,e)=>{for(var r=e>1?void 0:e?mn(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&un(t,s,r),r};const Ws="sonic-list";let Ht=class extends Mr(F(Pe(f))){constructor(){super(...arguments),this.itemPropertyMap=null,this.templateKey="template",this.idKey="id"}connectedCallback(){this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.isDefaultLoaderEnabled=!1,this.isFetchEnabled=this.hasAttribute("fetch"),this.isFetchEnabled&&(this.isLoading=!0),super.connectedCallback()}renderLoadingState(){return this.templateParts.skeleton?Et(this.templateParts.skeleton):u`<sonic-loader mode="inline"></sonic-loader>`}renderNoResultState(){return u`<div class="sonic-no-result-container"><sonic-icon name="emoji-puzzled" size="lg"></sonic-icon><span class="sonic-no-result-text">${this.props}</span></div>`}formatProps(){let o=this.props,t=o._sonic_http_response_,s=this.hasAttribute("extractValues");return Array.isArray(o)||(s?o=Object.entries(o).map(([e,r])=>({key:e,value:r})):!t||t.ok?o=[o]:o=[]),o._sonic_http_response_=t,o}render(){if(this.isLoading&&!Array.isArray(this.props))return this.renderLoadingState();if(typeof this.props=="string")return this.renderNoResultState();if(!et.isObject(this.props))return u`<div></div>`;let o=this.formatProps();if(o.length==0&&this.templateParts["no-item"])return Et(this.templateParts["no-item"]);let t=this.templateList.length,s=-1,e=this.hasAttribute("extractValues");return u`${Ut(o,(r,i)=>r[this.idKey]||i,(r,i)=>{let n=r[this.templateKey],l=n&&this.templateParts[n],c=e?r.key:i;if(c=="_sonic_http_response_")return S;let h=this.publisher[c];return h._key_=c+"",s++,l&&(s=-1),r&&u`<sonic-subscriber debug="${k(this.defferedDebug)}" .bindPublisher="${function(){return h}}" .propertyMap="${k(this.itemPropertyMap)}" dataProvider="${this.dataProvider}/list-item/${i}">${Et(l?this.templateParts[n]:this.templateList[s%t])}</sonic-subscriber>`})}`}};Ht.styles=[w`.sonic-no-result-container { color: var(--sc-base-400); font-size: 1.65rem; } sonic-icon { margin-right: 0.25em; } span { vertical-align: middle; }`],Ye([a({type:Object})],Ht.prototype,"itemPropertyMap",2),Ye([a({type:String})],Ht.prototype,"templateKey",2),Ye([a({type:String})],Ht.prototype,"idKey",2),Ht=Ye([v(Ws)],Ht);try{customElements.define(Ws,Ht)}catch{}var gn=Object.defineProperty,bn=Object.getOwnPropertyDescriptor,vt=(o,t,s,e)=>{for(var r=e>1?void 0:e?bn(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&gn(t,s,r),r};const Zs="sonic-queue";let nt=class extends F(f){constructor(){super(...arguments),this.templates=null,this.lastRequestTime=0,this.key="",this.itemPropertyMap=null,this.targetRequestDuration=500,this.limit=5,this.offset=0,this.filteredFields="",this.filterPublisher=null,this.filterTimeoutId=void 0,this.dataProviderExpression="",this.idKey="id",this.currentScrollPosition=void 0,this.listDataProviders=[]}connectedCallback(){this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.dataProvider||(this.dataProvider="sonic-queue-"+nt.instanceCounter++),this.configFilter(),super.connectedCallback(),this.key=this.getAttribute("key"),this.templates||(this.templates=Array.from(this.querySelectorAll("template"))),this.lastRequestTime=new Date().getTime(),this.next()}configFilter(){var t;let o=this.getAncestorAttributeValue("dataFilterProvider");!o||(this.filterPublisher=Z.getInstance().get(o),(t=this.filterPublisher)==null||t.onInternalMutation(()=>{var s;Object.keys((s=this.filterPublisher)==null?void 0:s.get()).length!=0&&this.updateFilteredContent()}))}updateFilteredContent(){for(let o of this.listDataProviders)Z.delete(o);this.listDataProviders=[],clearTimeout(this.filterTimeoutId),this.filterTimeoutId=setTimeout(()=>{this.props=null,this.next()},250)}resetDuration(){this.lastRequestTime=new Date().getTime()}next(o){var h,y;let t=this.offset;const s=new Date().getTime()-this.lastRequestTime;if(o&&(!o.detail.isFirstLoad||!o.detail.props.length||this.dataProviderExpression.indexOf("$offset")==-1))return;if(!Array.isArray(this.props))this.props=[];else{const g=this.props,m=g[g.length-1];t=parseInt(m.offset.toString())+parseInt(m.limit.toString())}s>0&&o&&(this.limit=Math.round(this.limit/s*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+""),r=e.split("?"),i=r.shift(),n=new URLSearchParams(r.join("?")),l=(h=this.filterPublisher)==null?void 0:h.get(),c=this.filteredFields.split(" ");for(let g in l)this.filteredFields&&!c.includes(g)||n.set(g,l[g]);e=i+"?"+n.toString(),this.listDataProviders.push(e),this.currentScrollPosition=(y=document.scrollingElement)==null?void 0:y.scrollTop,this.props=[...this.props,{id:n.toString()+"/"+this.props.length,dataProvider:e,offset:t,limit:this.limit}],this.lastRequestTime=new Date().getTime()}render(){return this.currentScrollPosition&&window.requestAnimationFrame(()=>{document.scrollingElement&&(document.scrollingElement.scrollTop=this.currentScrollPosition),this.currentScrollPosition=void 0}),Array.isArray(this.props)?u`${Ut(this.props,o=>o.id,(o,t)=>{var e;let s=t==0?this.templates:(e=this.templates)==null?void 0:e.filter(r=>r.getAttribute("data-value")!="no-item");return u`<sonic-list fetch .itemPropertyMap="${this.itemPropertyMap}" debug="${k(this.defferedDebug)}" @load="${this.next}" key="${this.key}" @loading="${this.resetDuration}" dataProvider="${o.dataProvider}" idKey="${this.idKey}" .templates="${s}"></sonic-list>`})}`:S}};nt.instanceCounter=0,vt([a({type:Array})],nt.prototype,"templates",2),vt([a({type:Object})],nt.prototype,"itemPropertyMap",2),vt([a()],nt.prototype,"targetRequestDuration",2),vt([a()],nt.prototype,"limit",2),vt([a()],nt.prototype,"offset",2),vt([a()],nt.prototype,"filteredFields",2),vt([a({type:String})],nt.prototype,"dataProviderExpression",2),vt([a({type:String})],nt.prototype,"idKey",2),nt=vt([v(Zs)],nt);try{customElements.define(Zs,nt)}catch{}var fn=Object.defineProperty,vn=Object.getOwnPropertyDescriptor,Ge=(o,t,s,e)=>{for(var r=e>1?void 0:e?vn(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&fn(t,s,r),r};const Ks="sonic-submit";let Wt=class extends F(f){constructor(){super(...arguments),this.submitResultKey=null,this.disabled=!1,this.endPoint=null,this.api=null}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",()=>this.submit()),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",o=>{o.key==="Enter"&&this.submit()}),super.connectedCallback(),this.api=new oe(this.getApiConfiguration())}async submit(){var c;const o=Z.getInstance().get(this.getAncestorAttributeValue("formDataProvider"));if(o.isFormValid=!0,o.invalidate(),!o.isFormValid.get())return;this.publisher&&(this.publisher.disabled=!0),o.isFormValid;let t=((c=this.getAttribute("method"))==null?void 0:c.toLocaleLowerCase())||"post",s=o.get();delete s.isFormValid;let e=Z.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get(),r=null,i=this.getAncestorAttributeValue("dataProvider"),n=this.endPoint||i;q.show();let l=async()=>{var y,g,m,x;switch(t){case"put":r=await((y=this.api)==null?void 0:y.put(n,s,e));break;case"delete":r=await((g=this.api)==null?void 0:g.delete(n,s,e));break;case"get":r=await((m=this.api)==null?void 0:m.get(n,e));break;default:r=await((x=this.api)==null?void 0:x.post(n,s,e));break}q.hide(),r||(r={messages:[{content:"Network Error",status:"error"}]});let h=this.getAncestorAttributeValue("clearedDataOnSuccess");h&&h.split(" ").forEach(_=>Z.get(_).set({})),this.submitResultKey&&(r=et.traverse(r,this.submitResultKey.split("."),!0)),Z.getInstance().get(this.getAncestorAttributeValue("submitResultDataProvider")).set(r),this.publisher&&(this.publisher.disabled=!1)};o.needsCaptchaValidation.get()?(o.captchaToken="request_token",o.captchaToken.onAssign(h=>{h!="request_token"&&l()})):l()}render(){return u`<div ?data-disabled="${this.disabled}"><slot></slot></div>`}};Wt.styles=w`[data-disabled] { opacity: 0.3; pointer-events: none; user-select: none; }`,Ge([a({type:String})],Wt.prototype,"submitResultKey",2),Ge([a({type:Boolean})],Wt.prototype,"disabled",2),Ge([a({type:String})],Wt.prototype,"endPoint",2),Wt=Ge([v(Ks)],Wt);try{customElements.define(Ks,Wt)}catch{}var yn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Nr={exports:{}};(function(o,t){var s=[].slice;(function(e,r){return t!==null?o.exports=r():e.UrlPattern=r()})(yn,function(){var e,r,i,n,l,c,h,y,g,m,x,_,A,N,D;return g=function(d){return d.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},h=function(d,p){var b,$,P;for(P=[],b=-1,$=d.length;++b<$;)P=P.concat(p(d[b]));return P},N=function(d,p){var b,$,P;for(P="",b=-1,$=d.length;++b<$;)P+=p(d[b]);return P},A=function(d){return new RegExp(d.toString()+"|").exec("").length-1},x=function(d,p){var b,$,P,j,I;for(j={},b=-1,P=d.length;++b<P;)$=d[b],I=p[b],I!=null&&(j[$]!=null?(Array.isArray(j[$])||(j[$]=[j[$]]),j[$].push(I)):j[$]=I);return j},e={},e.Result=function(d,p){this.value=d,this.rest=p},e.Tagged=function(d,p){this.tag=d,this.value=p},e.tag=function(d,p){return function(b){var $,P;if($=p(b),$!=null)return P=new e.Tagged(d,$.value),new e.Result(P,$.rest)}},e.regex=function(d){return function(p){var b,$;if(b=d.exec(p),b!=null)return $=b[0],new e.Result($,p.slice($.length))}},e.sequence=function(){var d;return d=1<=arguments.length?s.call(arguments,0):[],function(p){var b,$,P,j,I,J;for(b=-1,$=d.length,J=[],j=p;++b<$;){if(P=d[b],I=P(j),I==null)return;J.push(I.value),j=I.rest}return new e.Result(J,j)}},e.pick=function(){var d,p;return d=arguments[0],p=2<=arguments.length?s.call(arguments,1):[],function(b){var $,P;if(P=e.sequence.apply(e,p)(b),P!=null)return $=P.value,P.value=$[d],P}},e.string=function(d){var p;return p=d.length,function(b){if(b.slice(0,p)===d)return new e.Result(d,b.slice(p))}},e.lazy=function(d){var p;return p=null,function(b){return p==null&&(p=d()),p(b)}},e.baseMany=function(d,p,b,$,P){var j,I,J,Ne;for(J=P,Ne=b?"":[];!(p!=null&&(j=p(J),j!=null)||(I=d(J),I==null));)b?Ne+=I.value:Ne.push(I.value),J=I.rest;if(!($&&Ne.length===0))return new e.Result(Ne,J)},e.many1=function(d){return function(p){return e.baseMany(d,null,!1,!0,p)}},e.concatMany1Till=function(d,p){return function(b){return e.baseMany(d,p,!0,!0,b)}},e.firstChoice=function(){var d;return d=1<=arguments.length?s.call(arguments,0):[],function(p){var b,$,P,j;for(b=-1,$=d.length;++b<$;)if(P=d[b],j=P(p),j!=null)return j}},_=function(d){var p;return p={},p.wildcard=e.tag("wildcard",e.string(d.wildcardChar)),p.optional=e.tag("optional",e.pick(1,e.string(d.optionalSegmentStartChar),e.lazy(function(){return p.pattern}),e.string(d.optionalSegmentEndChar))),p.name=e.regex(new RegExp("^["+d.segmentNameCharset+"]+")),p.named=e.tag("named",e.pick(1,e.string(d.segmentNameStartChar),e.lazy(function(){return p.name}))),p.escapedChar=e.pick(1,e.string(d.escapeChar),e.regex(/^./)),p.static=e.tag("static",e.concatMany1Till(e.firstChoice(e.lazy(function(){return p.escapedChar}),e.regex(/^./)),e.firstChoice(e.string(d.segmentNameStartChar),e.string(d.optionalSegmentStartChar),e.string(d.optionalSegmentEndChar),p.wildcard))),p.token=e.lazy(function(){return e.firstChoice(p.wildcard,p.optional,p.named,p.static)}),p.pattern=e.many1(e.lazy(function(){return p.token})),p},y={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},c=function(d,p){if(Array.isArray(d))return N(d,function(b){return c(b,p)});switch(d.tag){case"wildcard":return"(.*?)";case"named":return"(["+p+"]+)";case"static":return g(d.value);case"optional":return"(?:"+c(d.value,p)+")?"}},l=function(d,p){return p==null&&(p=y.segmentValueCharset),"^"+c(d,p)+"$"},n=function(d){if(Array.isArray(d))return h(d,n);switch(d.tag){case"wildcard":return["_"];case"named":return[d.value];case"static":return[];case"optional":return n(d.value)}},m=function(d,p,b,$){var P,j,I,J;if($==null&&($=!1),J=d[p],J==null){if($)throw new Error("no values provided for key `"+p+"`");return}if(P=b[p]||0,j=Array.isArray(J)?J.length-1:0,P>j){if($)throw new Error("too few values provided for key `"+p+"`");return}return I=Array.isArray(J)?J[P]:J,$&&(b[p]=P+1),I},i=function(d,p,b){var $,P;if(Array.isArray(d)){for($=-1,P=d.length;++$<P;)if(i(d[$],p,b))return!0;return!1}switch(d.tag){case"wildcard":return m(p,"_",b,!1)!=null;case"named":return m(p,d.value,b,!1)!=null;case"static":return!1;case"optional":return i(d.value,p,b)}},D=function(d,p,b){if(Array.isArray(d))return N(d,function($){return D($,p,b)});switch(d.tag){case"wildcard":return m(p,"_",b,!0);case"named":return m(p,d.value,b,!0);case"static":return d.value;case"optional":return i(d.value,p,b)?D(d.value,p,b):""}},r=function(d,p){var b,$,P,j,I;if(d instanceof r){this.isRegex=d.isRegex,this.regex=d.regex,this.ast=d.ast,this.names=d.names;return}if(this.isRegex=d instanceof RegExp,!(typeof d=="string"||this.isRegex))throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=d,p!=null){if(!Array.isArray(p))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(b=A(this.regex),p.length!==b)throw new Error("regex contains "+b+" groups but array of group names contains "+p.length);this.names=p}return}if(d==="")throw new Error("argument must not be the empty string");if(I=d.replace(/\s+/g,""),I!==d)throw new Error("argument must not contain whitespace");if($={escapeChar:(p!=null?p.escapeChar:void 0)||y.escapeChar,segmentNameStartChar:(p!=null?p.segmentNameStartChar:void 0)||y.segmentNameStartChar,segmentNameCharset:(p!=null?p.segmentNameCharset:void 0)||y.segmentNameCharset,segmentValueCharset:(p!=null?p.segmentValueCharset:void 0)||y.segmentValueCharset,optionalSegmentStartChar:(p!=null?p.optionalSegmentStartChar:void 0)||y.optionalSegmentStartChar,optionalSegmentEndChar:(p!=null?p.optionalSegmentEndChar:void 0)||y.optionalSegmentEndChar,wildcardChar:(p!=null?p.wildcardChar:void 0)||y.wildcardChar},j=_($),P=j.pattern(d),P==null)throw new Error("couldn't parse pattern");if(P.rest!=="")throw new Error("could only partially parse pattern");this.ast=P.value,this.regex=new RegExp(l(this.ast,$.segmentValueCharset)),this.names=n(this.ast)},r.prototype.match=function(d){var p,b;return b=this.regex.exec(d),b==null?null:(p=b.slice(1),this.names?x(this.names,p):p)},r.prototype.stringify=function(d){if(d==null&&(d={}),this.isRegex)throw new Error("can't stringify patterns generated from a regex");if(d!==Object(d))throw new Error("argument must be an object or undefined");return D(this.ast,d,{})},r.escapeForRegex=g,r.concatMap=h,r.stringConcatMap=N,r.regexGroupCount=A,r.keysAndValuesToObject=x,r.P=e,r.newParser=_,r.defaultOptions=y,r.astNodeToRegexString=l,r.astNodeToNames=n,r.getParam=m,r.astNodeContainsSegmentsForProvidedParams=i,r.stringify=D,r})})(Nr,Nr.exports);var he=Nr.exports,wn=Object.defineProperty,xn=Object.getOwnPropertyDescriptor,Ys=(o,t,s,e)=>{for(var r=e>1?void 0:e?xn(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&wn(t,s,r),r};const Gs="sonic-router";let Qe=class extends F(Pe(f)){constructor(){super(...arguments),this.templateValueAttribute="data-route",this._location=document.location.href.replace(document.location.origin,"")}connectedCallback(){this.noShadowDom="",G.onChange(this),super.connectedCallback()}disconnectedCallback(){G.offChange(this),super.disconnectedCallback()}set location(o){this._location=o,this.requestUpdate()}get location(){return this._location}render(){let o=[];for(let t of this.templatePartsList){let s=t.getAttribute(this.templateValueAttribute),e=new RegExp(s),r=new he(s);e.test(this.location)?o.push(t):r.match(this.location)&&(t.setAttribute("mode","patternMatching"),o.push(t))}return u`${Ut(o,(t,s)=>s+new Date().getTime(),t=>{var s;if(t.title&&(document.title=t.title),t.hasAttribute("dataProviderExpression")){let e="",r=t.getAttribute("dataProviderExpression");if(t.getAttribute("mode")=="patternMatching"){const i=new he(t.getAttribute(this.templateValueAttribute));e=new he(r).stringify(i.match(this.location))}else{const i=new RegExp(t.getAttribute(this.templateValueAttribute));let n=(this.location+"").match(i);n&&(e=(s=n.shift())==null?void 0:s.replace(i,r))}return u`<div style="display:contents" dataProvider="${e}">${Et(t)}</div>`}return Et(t)})}`}};Ys([a()],Qe.prototype,"location",1),Qe=Ys([v(Gs)],Qe);try{customElements.define(Gs,Qe)}catch{}var $n=Object.defineProperty,kn=Object.getOwnPropertyDescriptor,_n=(o,t,s,e)=>{for(var r=e>1?void 0:e?kn(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&$n(t,s,r),r};const Qs="sonic-redirect";let Ir=class extends F(f){constructor(){super(...arguments),this.udpateCallBack=()=>{}}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.props)return;let o=this.getAttribute("onData").split("."),t=et.traverse(this.props,o);t&&!(et.isObject(t)&&t)&&G.changeFromComponent(this)}};Ir=_n([v(Qs)],Ir);try{customElements.define(Qs,Ir)}catch{}var An=Object.defineProperty,Pn=Object.getOwnPropertyDescriptor,Rr=(o,t,s,e)=>{for(var r=e>1?void 0:e?Pn(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&An(t,s,r),r};const Js="sonic-states";let ze=class extends F(Pe(f)){constructor(){super(...arguments),this.state="",this.inverted=!1,this.statePath="",this.onAssign=null}connectedCallback(){if(super.connectedCallback(),this.hasAttribute("data-path")&&(this.statePath=this.getAttribute("data-path")),this.statePath){this.statePublisher=this.publisher;let o=this.statePath.split(".");for(let t of o)this.statePublisher=this.statePublisher[t];this.onAssign=t=>{this.state=t,this.requestUpdate()},this.statePublisher.onAssign(this.onAssign)}}disconnectedCallback(){this.statePath&&this.statePublisher.offAssign(this.onAssign),super.disconnectedCallback()}render(){let o=[],t=this.state;(!Array.isArray(t)&&et.isObject(t)||t===void 0)&&(t="");for(let s of this.templatePartsList){let e=s.getAttribute(this.templateValueAttribute),r=t;if(this.inverted&&(r=e,e=t),e==""&&(e=this.inverted?".*?":"^$"),new RegExp(e).test(r))o.push(s),s.removeAttribute("mode");else{let i=new he(e);i.names.length>0&&i.match(r)&&(s.setAttribute("mode","patternMatching"),o.push(s))}}return u`${Ut(o,(s,e)=>e+new Date().getTime(),s=>{var e;if(s.title&&(document.title=s.title),s.hasAttribute("dataProviderExpression")){let r=s.getAttribute("dataProviderExpression"),i="",n=t,l=s.getAttribute(this.templateValueAttribute);if(this.inverted&&(n=l,l=t),l==""&&(l=this.inverted?"*":"^$"),s.getAttribute("mode")=="patternMatching"){const c=new he(l);i=new he(r).stringify(c.match(n))}else{const c=new RegExp(l);let h=(n+"").match(c);h&&(i=(e=h.shift())==null?void 0:e.replace(c,r))}return u`<div style="display:contents" dataProvider="${i}">${Et(s)}</div>`}return Et(s)})}`}};Rr([a()],ze.prototype,"state",2),Rr([a({type:Boolean,reflect:!0})],ze.prototype,"inverted",2),ze=Rr([v(Js)],ze);try{customElements.define(Js,ze)}catch{}var Sn=Object.defineProperty,Cn=Object.getOwnPropertyDescriptor,On=(o,t,s,e)=>{for(var r=e>1?void 0:e?Cn(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&Sn(t,s,r),r};const En="sonic-scope";let Xs=class extends f{createRenderRoot(){return this}render(){return u`<slot></slot>`}};Xs=On([v(En)],Xs);var jn=Object.defineProperty,zn=Object.getOwnPropertyDescriptor,to=(o,t,s,e)=>{for(var r=e>1?void 0:e?zn(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&jn(t,s,r),r};const Dn="sonic-example";let Fr=class extends F(f){constructor(){super(...arguments),this.text="Example"}render(){return u`${this.text}`}};to([a()],Fr.prototype,"text",2),Fr=to([v(Dn)],Fr);const Ln=w`:host { /* polices*/ --sc-font-family-base: "Inter var", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --sc-font-weight-base: 400; --sc-font-style-base: normal; --sc-headings-font-family: var(--sc-font-family-base); --sc-headings-font-style: var(--sc-font-style-base); --sc-headings-line-height: 1.1; --sc-headings-font-weight: 700; --sc-headings-text-transform: none; /* Button*/ --sc-btn-font-weight: var(--sc-font-weight-base); --sc-btn-font-family: var(--sc-font-family-base); --sc-btn-font-style: var(--sc-font-style-base); /* ROUNDED*/ --sc-rounded-sm: calc(var(--sc-rounded) * 0.5); --sc-rounded: 0.375rem; --sc-rounded-md: calc(var(--sc-rounded) * 1.8); --sc-rounded-lg: calc(var(--sc-rounded) * 3.5); --sc-rounded-xl: calc(var(--sc-rounded) * 7); --sc-rounded-size-intensity: calc((1em - 1rem) * .4); /* 4 for rounded full*/ --sc-btn-rounded-intensity : 1.4; --sc-btn-font-weight: 500; --sc-btn-rounded: calc((var(--sc-rounded) + var(--sc-rounded-size-intensity)) * var(--sc-btn-rounded-intensity) ); /* Placeholder */ --sc-placeholder-bg: rgba(17, 24, 39, 0.05); /* OMBRES */ --sc-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); --sc-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --sc-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); --sc-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); --sc-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25); /* Forms */ --sc-border-width: max(1px, 0.12rem); --sc-form-height : 2.5em; --sc-form-border-width: var(--sc-border-width); --sc-input-bg: var(--sc-base-100); --sc-input-border-color: var(--sc-input-bg); --sc-input-rounded-intensity : 1.4; --sc-input-rounded: calc((var(--sc-rounded) + var(--sc-rounded-size-intensity)) * var(--sc-input-rounded-intensity) ); --sc-label-font-weight: 500; /* Contrast -- ex : Text on images */ --sc-contrast-content: #fff; --sc-contrast: #11151f; /*Scrollbar*/ --sc-scrollbar-bg : var(--sc-base-400); /*Body*/ --sc-body-bg: var(--sc-base); }`,Mn=w`:host { /*Boutons*/ --sc-primary: var(--sc-base-800); --sc-info: #2563eb; --sc-danger: #f43f5e; --sc-warning: #f97316; --sc-success: #14b8a6; --sc-primary-content: var(--sc-base); --sc-info-content: var(--sc-base); --sc-danger-content: var(--sc-base); --sc-warning-content: var(--sc-base); --sc-success-content: var(--sc-base); /*Bases*/ --sc-base: #fff; --sc-base-50: #f8fafc; --sc-base-100: #f1f5f9; --sc-base-200: #e2e8f0; --sc-base-300: #cbd5e1; --sc-base-400: #94a3b8; --sc-base-500: #64748b; --sc-base-600: #475569; --sc-base-700: #334155; --sc-base-800: #1e293b; --sc-base-900: #0f172a; --sc-base-content: var(--sc-base-700); /*formulaires*/ --sc-input-bg: var(--sc-base-100); --sc-input-color: var(--sc-base-content); }`,eo=w`--sc-primary: var(--sc-dark-primary, var(--sc-base-700)); --sc-info: var(--sc-dark-info, #3abff8); --sc-danger: var(--sc-dark-danger, #f87272); --sc-warning: var(--sc-dark-warning, #fbbd23); --sc-success: var(--sc-dark-success, #36d399); --sc-primary-content: var(--sc-dark-primary-content, #002b3d); --sc-info-content: var(--sc-dark-info-content, #002b3d); --sc-danger-content: var(--sc-dark-danger-content, #382800); --sc-warning-content: var(--sc-dark-warning-content, #382800); --sc-success-content: var(--sc-dark-success-content, #003320); --sc-base: var(--sc-dark-base, #1d2634); --sc-base-50: var(--sc-dark-base-50, #1f2937); --sc-base-100: var(--sc-dark-base-100, #252C36); --sc-base-200: var(--sc-dark-base-200, #2c3543); --sc-base-300: var(--sc-dark-base-300, #38414e); --sc-base-400: var(--sc-dark-base-400, #515964); --sc-base-500: var(--sc-dark-base-500, #828891); --sc-base-600: var(--sc-dark-base-600, #b4b8be); --sc-base-700: var(--sc-dark-base-700, #cdd0d5); --sc-base-800: var(--sc-dark-base-800, #d9dce0); --sc-base-900: var(--sc-dark-base-900, #e5e7eb); --sc-base-content: var(--sc-dark-base-content, #e5e7eb);`,Tn=w`:host([theme="dark"]) { ${eo} } @media (prefers-color-scheme: dark) { :host([theme="auto"]) { ${eo} } }`;var Nn=w`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input:-ms-input-placeholder,textarea:-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where([class~="lead"]):not(:where([class~="not-prose"] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~="not-prose"] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~="not-prose"] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(thead th strong):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(ol):not(:where([class~="not-prose"] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol[type="A"]):not(:where([class~="not-prose"] *)){list-style-type:upper-alpha}.prose :where(ol[type="a"]):not(:where([class~="not-prose"] *)){list-style-type:lower-alpha}.prose :where(ol[type="A" s]):not(:where([class~="not-prose"] *)){list-style-type:upper-alpha}.prose :where(ol[type="a" s]):not(:where([class~="not-prose"] *)){list-style-type:lower-alpha}.prose :where(ol[type="I"]):not(:where([class~="not-prose"] *)){list-style-type:upper-roman}.prose :where(ol[type="i"]):not(:where([class~="not-prose"] *)){list-style-type:lower-roman}.prose :where(ol[type="I" s]):not(:where([class~="not-prose"] *)){list-style-type:upper-roman}.prose :where(ol[type="i" s]):not(:where([class~="not-prose"] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~="not-prose"] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~="not-prose"] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol > li):not(:where([class~="not-prose"] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul > li):not(:where([class~="not-prose"] *))::marker{color:var(--tw-prose-bullets)}.prose :where(hr):not(:where([class~="not-prose"] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~="not-prose"] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-left-width:.25rem;border-left-color:var(--tw-prose-quote-borders);quotes:"\\201c""\\201d""\\2018""\\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.prose :where(blockquote p:first-of-type):not(:where([class~="not-prose"] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~="not-prose"] *)):after{content:close-quote}.prose :where(h1):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~="not-prose"] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~="not-prose"] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~="not-prose"] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~="not-prose"] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~="not-prose"] *)){margin-top:2em;margin-bottom:2em}.prose :where(figure > *):not(:where([class~="not-prose"] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~="not-prose"] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose :where(code):not(:where([class~="not-prose"] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~="not-prose"] *)):before{content:"\`"}.prose :where(code):not(:where([class~="not-prose"] *)):after{content:"\`"}.prose :where(a code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(h1 code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(h2 code):not(:where([class~="not-prose"] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~="not-prose"] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(blockquote code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(thead th code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(pre):not(:where([class~="not-prose"] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.prose :where(pre code):not(:where([class~="not-prose"] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~="not-prose"] *)):before{content:none}.prose :where(pre code):not(:where([class~="not-prose"] *)):after{content:none}.prose :where(table):not(:where([class~="not-prose"] *)){width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~="not-prose"] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.prose :where(tbody tr):not(:where([class~="not-prose"] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~="not-prose"] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~="not-prose"] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~="not-prose"] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~="not-prose"] *)){vertical-align:top}.prose{--tw-prose-body: var(--sc-base-content);--tw-prose-headings: var(--sc-base-900);--tw-prose-lead: var(--sc-base-600);--tw-prose-links: var(--sc-base-900);--tw-prose-bold: var(--sc-base-900);--tw-prose-counters: var(--sc-base-500);--tw-prose-bullets: var(--sc-base-300);--tw-prose-hr: var(--sc-base-200);--tw-prose-quotes: var(--sc-base-900);--tw-prose-quote-borders: var(--sc-base-200);--tw-prose-captions: var(--sc-base-500);--tw-prose-code: var(--sc-base-900);--tw-prose-pre-code: var(--sc-base-200);--tw-prose-pre-bg: var(--sc-base-800);--tw-prose-th-borders: var(--sc-base-300);--tw-prose-td-borders: var(--sc-base-200);--tw-prose-invert-body: var(--sc-base-300);--tw-prose-invert-headings: var(--sc-base);--tw-prose-invert-lead: var(--sc-base-400);--tw-prose-invert-links: var(--sc-base);--tw-prose-invert-bold: var(--sc-base);--tw-prose-invert-counters: var(--sc-base-400);--tw-prose-invert-bullets: var(--sc-base-600);--tw-prose-invert-hr: var(--sc-base-700);--tw-prose-invert-quotes: var(--sc-base-100);--tw-prose-invert-quote-borders: var(--sc-base-700);--tw-prose-invert-captions: var(--sc-base-400);--tw-prose-invert-code: var(--sc-base);--tw-prose-invert-pre-code: var(--sc-base-300);--tw-prose-invert-pre-bg: var(--sc-base-900);--tw-prose-invert-th-borders: var(--sc-base-600);--tw-prose-invert-td-borders: var(--sc-base-700);font-size:1rem;line-height:1.75}.prose :where(p):not(:where([class~="not-prose"] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(video):not(:where([class~="not-prose"] *)){margin-top:2em;margin-bottom:2em}.prose :where(figure):not(:where([class~="not-prose"] *)){margin-top:2em;margin-bottom:2em}.prose :where(li):not(:where([class~="not-prose"] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol > li):not(:where([class~="not-prose"] *)){padding-left:.375em}.prose :where(ul > li):not(:where([class~="not-prose"] *)){padding-left:.375em}.prose :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.prose :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.prose :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.prose :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~="not-prose"] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(hr + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(h2 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(h3 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(h4 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.prose :where(thead th:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.prose :where(tbody td,tfoot td):not(:where([class~="not-prose"] *)){padding:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.prose :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~="not-prose"] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~="lead"]):not(:where([class~="not-prose"] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~="not-prose"] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.1111111em}.prose-sm :where(h1):not(:where([class~="not-prose"] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~="not-prose"] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~="not-prose"] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~="not-prose"] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~="not-prose"] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(video):not(:where([class~="not-prose"] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure):not(:where([class~="not-prose"] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure > *):not(:where([class~="not-prose"] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~="not-prose"] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(code):not(:where([class~="not-prose"] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~="not-prose"] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~="not-prose"] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~="not-prose"] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding:.6666667em 1em}.prose-sm :where(ol):not(:where([class~="not-prose"] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-left:1.5714286em}.prose-sm :where(ul):not(:where([class~="not-prose"] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-left:1.5714286em}.prose-sm :where(li):not(:where([class~="not-prose"] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol > li):not(:where([class~="not-prose"] *)){padding-left:.4285714em}.prose-sm :where(ul > li):not(:where([class~="not-prose"] *)){padding-left:.4285714em}.prose-sm :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.1428571em}.prose-sm :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.1428571em}.prose-sm :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~="not-prose"] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(hr):not(:where([class~="not-prose"] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(h2 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(h3 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(h4 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(table):not(:where([class~="not-prose"] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~="not-prose"] *)){padding-right:1em;padding-bottom:.6666667em;padding-left:1em}.prose-sm :where(thead th:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.prose-sm :where(thead th:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~="not-prose"] *)){padding:.6666667em 1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.prose-sm :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-base :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.75em;margin-bottom:.75em}.prose-base :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.prose-base :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.prose-base :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.prose-base :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.prose-base :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-base :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-lg :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.8888889em;margin-bottom:.8888889em}.prose-lg :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.prose-lg :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.prose-lg :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.prose-lg :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.prose-lg :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-lg :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-xl :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.8em;margin-bottom:.8em}.prose-xl :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.2em}.prose-xl :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.2em}.prose-xl :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.2em}.prose-xl :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.2em}.prose-xl :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-xl :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-2xl :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.8333333em;margin-bottom:.8333333em}.prose-2xl :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.prose-2xl :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.prose-2xl :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.prose-2xl :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.prose-2xl :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-2xl :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-tight :where(p,ul,ol,pre):not(:where([class~="not-prose"] *)){line-height:1.25;margin:0 0 .5em}.prose-tight :where(li):not(:where([class~="not-prose"] *)){margin-bottom:.5em}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:-webkit-sticky;position:sticky}.top-0{top:0px}.left-0{left:0px}.right-1{right:.25rem}.bottom-1{bottom:.25rem}.bottom-4{bottom:1rem}.left-4{left:1rem}.right-4{right:1rem}.top-\\[-1px\\]{top:-1px}.right-5{right:1.25rem}.top-1\\/2{top:50%}.bottom-0{bottom:0px}.-right-1{right:-.25rem}.-bottom-1{bottom:-.25rem}.z-10{z-index:10}.z-20{z-index:20}.z-0{z-index:0}.col-span-full{grid-column:1 / -1}.col-span-3{grid-column:span 3 / span 3}.col-span-2{grid-column:span 2 / span 2}.mx-auto{margin-left:auto;margin-right:auto}.my-8{margin-top:2rem;margin-bottom:2rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-auto{margin-top:auto;margin-bottom:auto}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-\\[-3vw\\]{margin-left:-3vw;margin-right:-3vw}.my-4{margin-top:1rem;margin-bottom:1rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.mb-4{margin-bottom:1rem}.mt-5{margin-top:1.25rem}.mb-1{margin-bottom:.25rem}.mb-6{margin-bottom:1.5rem}.mr-4{margin-right:1rem}.mb-2{margin-bottom:.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.mb-5{margin-bottom:1.25rem}.mt-8{margin-top:2rem}.mr-3{margin-right:.75rem}.mt-\\[\\.15em\\]{margin-top:.15em}.mb-10{margin-bottom:2.5rem}.mb-7{margin-bottom:1.75rem}.mb-12{margin-bottom:3rem}.mb-3{margin-bottom:.75rem}.mt-2{margin-top:.5rem}.ml-\\[\\.10em\\]{margin-left:.1em}.ml-3{margin-left:.75rem}.mt-4{margin-top:1rem}.mt-1{margin-top:.25rem}.mr-2{margin-right:.5rem}.mt-3{margin-top:.75rem}.ml-auto{margin-left:auto}.mb-\\[2em\\]{margin-bottom:2em}.mr-1{margin-right:.25rem}.mb-20{margin-bottom:5rem}.ml-2{margin-left:.5rem}.mr-\\[\\.25em\\]{margin-right:.25em}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-12{height:3rem}.h-20{height:5rem}.h-2{height:.5rem}.h-5{height:1.25rem}.h-1\\/2{height:50%}.h-96{height:24rem}.max-h-\\[10rem\\]{max-height:10rem}.w-full{width:100%}.w-72{width:18rem}.w-12{width:3rem}.w-20{width:5rem}.w-2{width:.5rem}.w-5{width:1.25rem}.w-10\\/12{width:83.333333%}.w-24{width:6rem}.w-\\[1\\.2em\\]{width:1.2em}.min-w-full{min-width:100%}.min-w-max{min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content}.min-w-\\[11rem\\]{min-width:11rem}.min-w-\\[5rem\\]{min-width:5rem}.max-w-lg{max-width:32rem}.max-w-xs{max-width:20rem}.max-w-\\[80ch\\]{max-width:80ch}.max-w-\\[32rem\\]{max-width:32rem}.max-w-\\[20rem\\]{max-width:20rem}.max-w-none{max-width:none}.flex-shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\\/2{--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\\/2{--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.grid-cols-\\[minmax\\(0\\,1fr\\)\\,minmax\\(0\\,4fr\\)\\]{grid-template-columns:minmax(0,1fr) minmax(0,4fr)}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-\\[1fr\\,_2fr\\]{grid-template-columns:1fr 2fr}.grid-cols-\\[minmax\\(0\\,_3fr\\)_minmax\\(0\\,_2fr\\)\\]{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\\[minmax\\(6rem\\,_min\\(20\\%\\,_10rem\\)\\)\\,_1fr\\]{grid-template-columns:minmax(6rem,min(20%,10rem)) 1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-around{justify-content:space-around}.gap-5{gap:1.25rem}.gap-8{gap:2rem}.gap-3{gap:.75rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-10{gap:2.5rem}.gap-1{gap:.25rem}.gap-6{gap:1.5rem}.gap-\\[1\\.5em\\]{gap:1.5em}.gap-\\[\\.2rem_\\.7rem\\]{gap:.2rem .7rem}.gap-\\[\\.25em\\]{gap:.25em}.gap-x-10{-moz-column-gap:2.5rem;column-gap:2.5rem}.gap-x-\\[\\.75em\\]{-moz-column-gap:.75em;column-gap:.75em}.self-start{align-self:flex-start}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-lg{border-radius:var(--sc-rounded-lg)}.rounded-md{border-radius:var(--sc-rounded-md)}.rounded{border-radius:var(--sc-rounded)}.rounded-full{border-radius:9999px}.rounded-t-md{border-top-left-radius:var(--sc-rounded-md);border-top-right-radius:var(--sc-rounded-md)}.border{border-width:var(--sc-border-width)}.border-b-\\[1px\\]{border-bottom-width:1px}.border-solid{border-style:solid}.border-dotted{border-style:dotted}.border-success{border-color:var(--sc-success)}.border-t-neutral-200{border-top-color:var(--sc-base-200)}.border-b-neutral-100{border-bottom-color:var(--sc-base-100)}.border-b-neutral-300{border-bottom-color:var(--sc-base-300)}.bg-danger{background-color:var(--sc-danger)}.bg-neutral-0{background-color:var(--sc-base)}.bg-neutral-200{background-color:var(--sc-base-200)}.bg-contrast{background-color:var(--sc-contrast)}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-\\[rgba\\(0\\,0\\,10\\,\\.2\\)\\]{--tw-gradient-from: rgba(0,0,10,.2);--tw-gradient-to: rgb(0 0 10 / 0);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.object-contain{-o-object-fit:contain;object-fit:contain}.p-7{padding:1.75rem}.p-4{padding:1rem}.p-3{padding:.75rem}.p-5{padding:1.25rem}.p-8{padding:2rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-7{padding-top:1.75rem;padding-bottom:1.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.px-\\[3vw\\]{padding-left:3vw;padding-right:3vw}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.pt-20{padding-top:5rem}.pr-3{padding-right:.75rem}.pt-\\[\\.06em\\]{padding-top:.06em}.text-center{text-align:center}.font-headings{font-family:var(--sc-headings-font-family)}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-xs{font-size:.75rem;line-height:1rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.font-black{font-weight:900}.font-medium{font-weight:500}.font-extrabold{font-weight:800}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.leading-none{line-height:1}.leading-tight{line-height:1.25}.text-neutral-0{color:var(--sc-base)}.text-neutral-300{color:var(--sc-base-300)}.text-primary{color:var(--sc-primary)}.text-neutral-500{color:var(--sc-base-500)}.text-contrast-content{color:var(--sc-contrast-content)}.text-neutral-400{color:var(--sc-base-400)}.text-info{color:var(--sc-info)}.underline{-webkit-text-decoration-line:underline;text-decoration-line:underline}.no-underline{-webkit-text-decoration-line:none;text-decoration-line:none}.opacity-60{opacity:.6}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0_0_2rem_rgba\\(0\\,0\\,0\\,0\\.2\\)\\]{--tw-shadow: 0 0 2rem rgba(0,0,0,.2);--tw-shadow-colored: 0 0 2rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-danger{--tw-shadow-color: var(--sc-danger);--tw-shadow: var(--tw-shadow-colored)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.\\[display\\:none\\]{display:none}.hover\\:text-neutral-400:hover{color:var(--sc-base-400)}.group:hover .group-hover\\:underline{-webkit-text-decoration-line:underline;text-decoration-line:underline}.prose-img\\:rounded-lg :is(:where(img):not(:where([class~="not-prose"] *))){border-radius:var(--sc-rounded-lg)}@media (min-width: 640px){.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width: 768px){.md\\:block{display:block}.md\\:hidden{display:none}.md\\:grid-cols-\\[minmax\\(0\\,2fr\\)\\,minmax\\(0\\,5fr\\)\\]{grid-template-columns:minmax(0,2fr) minmax(0,5fr)}.md\\:py-4{padding-top:1rem;padding-bottom:1rem}.md\\:text-base{font-size:1rem;line-height:1.5rem}}@media (min-width: 1024px){.lg\\:prose-lg{font-size:1.125rem;line-height:1.7777778}.lg\\:prose-lg :where(p):not(:where([class~="not-prose"] *)){margin-top:1.3333333em;margin-bottom:1.3333333em}.lg\\:prose-lg :where([class~="lead"]):not(:where([class~="not-prose"] *)){font-size:1.2222222em;line-height:1.4545455;margin-top:1.0909091em;margin-bottom:1.0909091em}.lg\\:prose-lg :where(blockquote):not(:where([class~="not-prose"] *)){margin-top:1.6666667em;margin-bottom:1.6666667em;padding-left:1em}.lg\\:prose-lg :where(h1):not(:where([class~="not-prose"] *)){font-size:2.6666667em;margin-top:0;margin-bottom:.8333333em;line-height:1}.lg\\:prose-lg :where(h2):not(:where([class~="not-prose"] *)){font-size:1.6666667em;margin-top:1.8666667em;margin-bottom:1.0666667em;line-height:1.3333333}.lg\\:prose-lg :where(h3):not(:where([class~="not-prose"] *)){font-size:1.3333333em;margin-top:1.6666667em;margin-bottom:.6666667em;line-height:1.5}.lg\\:prose-lg :where(h4):not(:where([class~="not-prose"] *)){margin-top:1.7777778em;margin-bottom:.4444444em;line-height:1.5555556}.lg\\:prose-lg :where(img):not(:where([class~="not-prose"] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.lg\\:prose-lg :where(video):not(:where([class~="not-prose"] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.lg\\:prose-lg :where(figure):not(:where([class~="not-prose"] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.lg\\:prose-lg :where(figure > *):not(:where([class~="not-prose"] *)){margin-top:0;margin-bottom:0}.lg\\:prose-lg :where(figcaption):not(:where([class~="not-prose"] *)){font-size:.8888889em;line-height:1.5;margin-top:1em}.lg\\:prose-lg :where(code):not(:where([class~="not-prose"] *)){font-size:.8888889em}.lg\\:prose-lg :where(h2 code):not(:where([class~="not-prose"] *)){font-size:.8666667em}.lg\\:prose-lg :where(h3 code):not(:where([class~="not-prose"] *)){font-size:.875em}.lg\\:prose-lg :where(pre):not(:where([class~="not-prose"] *)){font-size:.8888889em;line-height:1.75;margin-top:2em;margin-bottom:2em;border-radius:.375rem;padding:1em 1.5em}.lg\\:prose-lg :where(ol):not(:where([class~="not-prose"] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.5555556em}.lg\\:prose-lg :where(ul):not(:where([class~="not-prose"] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.5555556em}.lg\\:prose-lg :where(li):not(:where([class~="not-prose"] *)){margin-top:.6666667em;margin-bottom:.6666667em}.lg\\:prose-lg :where(ol > li):not(:where([class~="not-prose"] *)){padding-left:.4444444em}.lg\\:prose-lg :where(ul > li):not(:where([class~="not-prose"] *)){padding-left:.4444444em}.lg\\:prose-lg :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.8888889em;margin-bottom:.8888889em}.lg\\:prose-lg :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.lg\\:prose-lg :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.lg\\:prose-lg :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.lg\\:prose-lg :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.lg\\:prose-lg :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~="not-prose"] *)){margin-top:.8888889em;margin-bottom:.8888889em}.lg\\:prose-lg :where(hr):not(:where([class~="not-prose"] *)){margin-top:3.1111111em;margin-bottom:3.1111111em}.lg\\:prose-lg :where(hr + *):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(h2 + *):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(h3 + *):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(h4 + *):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(table):not(:where([class~="not-prose"] *)){font-size:.8888889em;line-height:1.5}.lg\\:prose-lg :where(thead th):not(:where([class~="not-prose"] *)){padding-right:.75em;padding-bottom:.75em;padding-left:.75em}.lg\\:prose-lg :where(thead th:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.lg\\:prose-lg :where(thead th:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.lg\\:prose-lg :where(tbody td,tfoot td):not(:where([class~="not-prose"] *)){padding:.75em}.lg\\:prose-lg :where(tbody td:first-child,tfoot td:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.lg\\:prose-lg :where(tbody td:last-child,tfoot td:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.lg\\:prose-lg :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.lg\\:block{display:block}.lg\\:flex{display:flex}.lg\\:hidden{display:none}.lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\\:text-base{font-size:1rem;line-height:1.5rem}.lg\\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 1280px){.xl\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.xl\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.xl\\:text-lg{font-size:1.125rem;line-height:1.75rem}.xl\\:text-2xl{font-size:1.5rem;line-height:2rem}}
|
|
111
|
-
`,In=Object.defineProperty,Rn=Object.getOwnPropertyDescriptor,de=(o,t,s,e)=>{for(var r=e>1?void 0:e?Rn(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&In(t,s,r),r};w`${es(Nn)}`;const Fn="sonic-theme";let yt=class extends f{constructor(){super(...arguments),this.theme="light",this.background=!1,this.color=!1,this.font=!1,this.contrastDarkMode=!1}connectedCallback(){super.connectedCallback(),window.addEventListener("message",o=>this.receiveMessage(o),!1),this.postCSSVars()}updated(){this.contrastBg()}postCSSVars(){const o=document.styleSheets,t=o.length;let s=[];for(let e=0;e<t;e++){let r=o[e];r.href&&(r.href.includes("googleapis")||r.href.includes("typekit.net"))&&s.push(r.href)}document.querySelectorAll("iframe").forEach(e=>{var r;return(r=e.contentWindow)==null?void 0:r.postMessage({type:"SonicTheme",variables:this.getCssVariables(),fonts:s},"*")})}receiveMessage(o){let t=o.data;!t.type||t.type!="GetSonicTheme"||this.postCSSVars()}getCssVariables(){let o=[],t=[...yt.styles.map(r=>r.styleSheet),...Array.from(document.styleSheets)];for(let r of t)try{let i=r==null?void 0:r.cssRules;for(let n of i)if(n.style)for(let l of n.style)o.includes(l)||l.indexOf("--sc")!==0||o.push(l)}catch{}let s=window.getComputedStyle(this),e={};return o.forEach(r=>e[r]=s.getPropertyValue(r)),e}contrast(o,t){let s=parseInt(o.replace("#",""),16),e=Math.round(2.55*t),r=(s>>16)+e,i=(s>>8&255)+e,n=(s&255)+e;return"#"+(16777216+(r<255?r<1?0:r:255)*65536+(i<255?i<1?0:i:255)*256+(n<255?n<1?0:n:255)).toString(16).slice(1)}contrastBg(){if(this.theme==="dark"&&this.contrastDarkMode&&this.background){let o=window.getComputedStyle(this).getPropertyValue("--sc-base");this.style.setProperty("--sc-body-bg",this.contrast(o,-2.5))}}render(){return u`<slot></slot>`}};yt.styles=[Mn,Tn,Ln,w`:host([background]) { display: block !important; background: var(--sc-body-bg) !important; min-height: 100vh; } :host([contrastDarkMode]) { transition: background-color 2.5s ease; } :host([color]) { color: var(--sc-base-content); } :host([font]) { font-family: var(--sc-font-family-base); font-weight: var(--sc-font-weight-base); font-style: var(--sc-font-style-base); }`],de([a({type:String,reflect:!0})],yt.prototype,"theme",2),de([a({type:Boolean,reflect:!0})],yt.prototype,"background",2),de([a({type:Boolean,reflect:!0})],yt.prototype,"color",2),de([a({type:Boolean,reflect:!0})],yt.prototype,"font",2),de([a({type:Boolean,reflect:!0})],yt.prototype,"contrastDarkMode",2),yt=de([v(Fn)],yt);var Un=Object.defineProperty,Bn=Object.getOwnPropertyDescriptor,Je=(o,t,s,e)=>{for(var r=e>1?void 0:e?Bn(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&Un(t,s,r),r};const ro="sonic-badge";let Zt=class extends f{constructor(){super(...arguments),this.type="default",this.variant="default"}render(){return u`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`}};Zt.styles=[w`:host { --sc-badge-gap: 0.3em; --sc-badge-py: 0.16em; --sc-badge-px: 0.66em; --sc-badge-fs: 1rem; --sc-badge-color: var(--sc-base-content, #1f2937); --sc-badge-bg: var(--sc-base-200, #e5e7eb); --sc-badge-border-with: var(--sc-form-border-width, 0.1rem); --sc-badge-border-color: transparent; --sc-badge-border: var(--sc-badge-border-with) solid var(--sc-badge-border-color); --sc-badge-rounded: calc(var(--sc-rounded) * 1000); --sc-badge-line-height: 1.15; --sc-badge-fw: var(--sc-font-weight-base); display: inline-flex; align-items:center; box-sizing: border-box; line-height: var(--sc-badge-line-height); border-radius: var(--sc-badge-rounded); background: var(--sc-badge-bg); color: var(--sc-badge-color); font-family: var(--sc-badge-ff, var(--sc-font-family-base, inherit)); font-weight: var(--sc-badge-fw); padding-top: var(--sc-badge-py); padding-bottom: var(--sc-badge-py); padding-left: var(--sc-badge-px); padding-right: var(--sc-badge-px); min-height: calc(var(--sc-badge-px) * 2); border: var(--sc-badge-border); } /*TYPES*/ :host([type="primary"]) { --sc-badge-color: var(--sc-primary-content); --sc-badge-bg: var(--sc-primary); } :host([type="warning"]) { --sc-badge-color: var(--sc-warning-content); --sc-badge-bg: var(--sc-warning); } :host([type="danger"]) { --sc-badge-color: var(--sc-danger-content); --sc-badge-bg: var(--sc-danger); } :host([type="info"]) { --sc-badge-color: var(--sc-info-content); --sc-badge-bg: var(--sc-info); } :host([type="success"]) { --sc-badge-color: var(--sc-success-content); --sc-badge-bg: var(--sc-success); } :host([type="neutral"]) { --sc-badge-color: var(--sc-base); --sc-badge-bg: var(--sc-base-content); } /*SIZE*/ :host { font-size: var(--sc-badge-fs); gap: var(--sc-badge-gap); } :host([size="2xs"]) { --sc-badge-fs: 0.58rem; --sc-badge-gap: 0.3em; } :host([size="xs"]) { --sc-badge-fs: 0.68rem; --sc-badge-gap: 0.35em; } :host([size="sm"]) { --sc-badge-fs: 0.85rem; --sc-badge-gap: 0.35em; } :host([size="lg"]) { --sc-badge-line-height: 1.2; --sc-badge-fs: 1.25rem; --sc-badge-gap: 0.5em; } :host([size="xl"]) { --sc-badge-line-height: 1.2; --sc-badge-fs: 1.5rem; --sc-badge-gap: 0.5em; } /*OUTLINE*/ :host([variant="outline"][type]) { border-width: var(--sc-badge-border-with) !important; border-color: var(--sc-badge-bg); color: var(--sc-badge-bg); background: transparent; } :host([variant="outline"][type="default"]) { border-color: var(--sc-base-400); color: var(--sc-base-500); background: transparent; } /*GHOST*/ :host([variant="ghost"][type]) { color: var(--sc-badge-bg); background: transparent; padding: 0; } :host([variant="ghost"][type="default"]) { color: var(--sc-badge-color); background: transparent; }`],Je([a({type:String,reflect:!0})],Zt.prototype,"type",2),Je([a({type:String,reflect:!0})],Zt.prototype,"variant",2),Je([a({type:String,reflect:!0})],Zt.prototype,"size",2),Zt=Je([v(ro)],Zt);try{customElements.define(ro,Zt)}catch{}class Vn{static fixBlankLink(t){const s="electron",e=typeof require>"u"?null:require(s);typeof e&&t.target=="_blank"&&t.addEventListener("click",()=>{e==null||e.shell.openExternal(t.href)})}}var qn=Object.defineProperty,Hn=Object.getOwnPropertyDescriptor,De=(o,t,s,e)=>{for(var r=e>1?void 0:e?Hn(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&qn(t,s,r),r};const so="sonic-link";let jt=class extends f{constructor(){super(...arguments),this.href="",this._location="",this.autoActive="partial",this._target=null,this.pushState=null}get location(){return this._location}set location(o){this._location=o,G.updateComponentActiveState(this)}connectedCallback(){this.href&&this.href.indexOf("http")!=0&&(G.onChange(this),this.location=document.location.href.replace(document.location.origin,"")),super.connectedCallback()}disconnectedCallback(){G.offChange(this),super.disconnectedCallback()}set target(o){this._target=o,Vn.fixBlankLink(this),this.requestUpdate()}get target(){return this._target}handlePushState(o){o.preventDefault(),G.changeFromComponent(this)}render(){return this.href?u`<a href="${this.href}" target="${k(this.target)}" @click="${this.pushState?this.handlePushState:null}"><slot></slot></a>`:u`<slot></slot>`}};jt.styles=[w`a { color: inherit; text-decoration: none; display:contents; }`],De([a({type:String})],jt.prototype,"href",2),De([a({type:String})],jt.prototype,"autoActive",2),De([a({type:String})],jt.prototype,"target",1),De([a({type:Boolean})],jt.prototype,"pushState",2),jt=De([v(so)],jt);try{customElements.define(so,jt)}catch{}var Wn=Object.defineProperty,Zn=Object.getOwnPropertyDescriptor,pe=(o,t,s,e)=>{for(var r=e>1?void 0:e?Zn(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&Wn(t,s,r),r};const oo="sonic-progress";let wt=class extends f{constructor(){super(...arguments),this.max=100,this.invert=!1,this.type="default",this.size="md"}render(){return u`<progress value="${k(this.value)}" max="${this.max}"></progress><div class="slot-container"><slot></slot><slot name="remaining"></slot></div>`}};wt.styles=[ce,w`:host { --sc-progress-bg: var(--sc-input-bg, var(--sc-base-100, #f5f5f5)); --sc-progress-color: var(--sc-base-content, #1f2937); --sc-progress-height: .6em; --sc-progress-fs: var(--sc-fs, 1rem); --sc-progress-fw: 500; --sc-progress-rounded: var(--sc-rounded-lg); display: block; line-height: 1.2; font-weight:var(--sc-progress-fw); font-size:var(--sc-progress-fs); color:var(--sc-progress-color); } progress { position: relative; width: 100%; -webkit-appearance: none; appearance: none; overflow: hidden; border:none; height: var(--sc-progress-height); border-radius: var(--sc-progress-rounded); background-color: var(--sc-progress-bg); color: var(--sc-progress-color); } progress::-moz-progress-bar { background-color: var(--sc-progress-color); border-radius: var(--sc-progress-rounded); } progress:not([value])::-moz-progress-bar { background-color: var(--sc-progress-bg); } progress::-webkit-progress-bar { background-color: var(--sc-progress-bg); } progress::-webkit-progress-value { background-color: var(--sc-progress-color); border-radius: var(--sc-progress-rounded); } /* Indeterminate */ progress:indeterminate:after { background-color: var(--sc-progress-color); content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 33.333333%; border-radius: var(--sc-progress-rounded); animation: progress-loading 3s infinite ease-in-out; } @keyframes progress-loading { 50% { left: 107%; } } /* COLOR TYPES */ :host([type="warning"]) { --sc-progress-color: var(--sc-warning); } :host([type="danger"]) { --sc-progress-color: var(--sc-danger); } :host([type="info"]) { --sc-progress-color: var(--sc-info); } :host([type="success"]) { --sc-progress-color: var(--sc-success); } :host([invert]) { --sc-progress-bg: var(--sc-base-700); } :host([type="default"][invert]) { --sc-progress-color: var(--sc-base); } slot[name="remaining"] { font-weight:var(--sc-font-weight-base); color:var(--sc-base-400); font-size:.85em; margin-top:.5em; } .slot-container { display:flex; justify-content: space-between; gap:.5em; margin-top:.15em; }`],pe([a({type:Number})],wt.prototype,"value",2),pe([a({type:Number})],wt.prototype,"max",2),pe([a({type:Boolean})],wt.prototype,"invert",2),pe([a({type:String,reflect:!0})],wt.prototype,"type",2),pe([a({type:String,reflect:!0})],wt.prototype,"size",2),wt=pe([v(oo)],wt);try{customElements.define(oo,wt)}catch{}const Ur=w`* { box-sizing: border-box; } :host { --sc-input-height: var(--sc-form-height); --sc-input-border-width: var(--sc-form-border-width); --sc-input-color: var(--sc-base-content); --sc-item-rounded-tr: var(--sc-input-rounded); --sc-item-rounded-tl: var(--sc-input-rounded); --sc-item-rounded-bl: var(--sc-input-rounded); --sc-item-rounded-br: var(--sc-input-rounded); --sc-input-fs: var(--sc-fs, 1rem) ; --sc-input-ff: inherit; --sc-input-py: 0.6em; --sc-input-px: 1.15em; --sc-input-prefix-color: var(--sc-input-color); --sc-input-prefix-bg: var(--sc-input-bg); --sc-input-prefix-border-color: var(--sc-input-border-color); --sc-input-suffix-color: var(--sc-input-color); --sc-input-suffix-bg: var(--sc-input-bg); --sc-input-suffix-border-color: var(--sc-input-border-color); --sc-label-fs: var(--sc-fs, 1rem); --sc-label-fw: var(--sc-label-font-weight); } .form-element { display: block; flex-grow: 1; width: 100%; line-height: 1.1; color: var(--sc-input-color); border-radius: var(--sc-item-rounded-tl) var(--sc-item-rounded-tr) var(--sc-item-rounded-br) var(--sc-item-rounded-bl); font-family: var(--sc-input-ff); background-color: var(--sc-input-bg, var(--sc-base, #fff)); border: var(--sc-input-border-width) solid var(--sc-input-border-color, var(--sc-base-300, #aaa)); width: 100%; font-size: var(--sc-input-fs); padding-top: var(--sc-input-py); padding-bottom: var(--sc-input-py); padding-left: var(--sc-input-px); padding-right: var(--sc-input-px); min-height: var(--sc-input-height); } label { font-size: var(--sc-label-fs); font-weight: var(--sc-label-fw); line-height: 1.2; } .form-control { display: flex; width: 100%; } /*Suffix*/ :host(:not([inlineContent])) .has-suffix slot[name="suffix"], :host(:not([inlineContent])) .has-prefix slot[name="prefix"] { min-width: var(--sc-input-height); box-sizing: border-box; display: flex; align-items: center; justify-content: center; line-height: 1.1; flex-shrink: 0; padding-left: calc(-1 * var(--sc-input-px)); padding-right: calc(-1 * var(--sc-input-px)); } :host(:not([inlineContent])) slot[name="prefix"] { border-radius: var(--sc-item-rounded-tl) 0 0 var(--sc-item-rounded-bl); background-color: var(--sc-input-prefix-bg); color: var(--sc-input-prefix-color); border: var(--sc-input-border-width) solid var(--sc-input-prefix-border-color); margin-right: calc(-1 * var(--sc-input-border-width)); } :host(:not([inlineContent])) slot[name="suffix"] { border-radius: 0 var(--sc-item-rounded-tr) var(--sc-item-rounded-br) 0; background-color: var(--sc-input-suffix-bg); color: var(--sc-input-suffix-color); border: var(--sc-input-border-width) solid var(--sc-input-suffix-border-color); margin-left: calc(-1 * var(--sc-input-border-width)); } :host(:not([inlineContent])) .has-prefix .form-element { border-top-left-radius: 0; border-bottom-left-radius: 0; } :host(:not([inlineContent])) .has-suffix .form-element { border-top-right-radius: 0; border-bottom-right-radius: 0; } /*InlineCONTENT */ :host([inlineContent]) { --sc-input-py: 0; } :host([inlineContent]) .form-element { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35em; min-height: var(--sc-form-height); } /*Disabled */ :host([disabled]) .form-element-container { cursor: not-allowed; } :host([variant="ghost"]) .form-element { --sc-input-bg: transparent; } /*Disbaled*/ :host([disabled]) .form-element { pointer-events: none; background-color: var(--sc-base-100); border-color: transparent; color: var(--sc-base-400); } /*PLACEHOLDER*/ ::placeholder { color: inherit; opacity: 0.45; } :focus::placeholder { opacity: 0; } /*HOVER*/ :host(:not([disabled])) .form-element:hover, .form-element:focus-visible, .form-element:focus { filter: brightness(0.97); outline: none; } .form-label { margin-bottom: 0.22em; display: block; } .form-description { color: var(--sc-base-400); font-size: 0.85em; margin-top: 0.2em; display: block; } .form-element > slot, .form-element .form-element { all: unset !important; } /*Utilitaires*/ .hidden { display: none; } .contents { display: contents; } /*ERROR*/ :host([error]) { --sc-input-border-color: var(--sc-danger); } :host input:visited{ display:none; } :host([touched][required]) :not(:focus):invalid { --sc-input-border-color: var(--sc-danger); --sc-input-color: var(--sc-danger); } :host([touched][required]) :not(:focus):invalid + .select-chevron{ --sc-input-color: var(--sc-danger); } /*VALID*/ :host([touched][required]) :not([value=""]):not(:focus):valid { --sc-input-border-color: var(--sc-success); --sc-input-color: var(--sc-success); } :host([touched][required]) :not(:focus):valid + .select-chevron{ --sc-input-color: var(--sc-success); } /*Input COLOR*/ :host([type="color"]) .form-element { padding: 0; border: 0; min-width: var(--sc-input-height); } input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; } input[type="color"]::-webkit-color-swatch { border: none; border-radius: var(--sc-item-rounded-tl) var(--sc-item-rounded-tr) var(--sc-item-rounded-br) var(--sc-item-rounded-bl); } /*Input Image*/ :host([type="image"]) .form-element { padding: 0; border:none; } /*Input reset & image*/ input[type="reset"], input[type="submit"] { cursor: pointer; } /*Input search*/ input[type="search"]::-webkit-search-cancel-button { appearance:none; cursor:pointer; height: .65em; width: .65em; background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE2LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgd2lkdGg9IjEyMy4wNXB4IiBoZWlnaHQ9IjEyMy4wNXB4IiB2aWV3Qm94PSIwIDAgMTIzLjA1IDEyMy4wNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTIzLjA1IDEyMy4wNTsiDQoJIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPGc+DQoJPHBhdGggZD0iTTEyMS4zMjUsMTAuOTI1bC04LjUtOC4zOTljLTIuMy0yLjMtNi4xLTIuMy04LjUsMGwtNDIuNCw0Mi4zOTlMMTguNzI2LDEuNzI2Yy0yLjMwMS0yLjMwMS02LjEwMS0yLjMwMS04LjUsMGwtOC41LDguNQ0KCQljLTIuMzAxLDIuMy0yLjMwMSw2LjEsMCw4LjVsNDMuMSw0My4xbC00Mi4zLDQyLjVjLTIuMywyLjMtMi4zLDYuMSwwLDguNWw4LjUsOC41YzIuMywyLjMsNi4xLDIuMyw4LjUsMGw0Mi4zOTktNDIuNGw0Mi40LDQyLjQNCgkJYzIuMywyLjMsNi4xLDIuMyw4LjUsMGw4LjUtOC41YzIuMy0yLjMsMi4zLTYuMSwwLTguNWwtNDIuNS00Mi40bDQyLjQtNDIuMzk5QzEyMy42MjUsMTcuMTI1LDEyMy42MjUsMTMuMzI1LDEyMS4zMjUsMTAuOTI1eiIvPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPC9zdmc+DQo=); background-size: contain; background-repeat: no-repeat; }`;var Kn=Object.defineProperty,Yn=Object.getOwnPropertyDescriptor,Br=(o,t,s,e)=>{for(var r=e>1?void 0:e?Yn(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&Kn(t,s,r),r};const Xe=o=>{class t extends o{constructor(...e){super(),this.type="text"}validateFormElement(){var r;const e=(r=this.shadowRoot)==null?void 0:r.querySelector("input");!e||e.checkValidity()||(this.getFormPublisher().isFormValid=!1,e.reportValidity())}}return Br([a({type:String})],t.prototype,"type",2),Br([a({type:Number})],t.prototype,"tabindex",2),Br([a({type:String})],t.prototype,"autocomplete",2),t};/**
|
|
112
|
-
* @license
|
|
113
|
-
* Copyright 2018 Google LLC
|
|
114
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
115
|
-
*/const io=ne(class extends ae{constructor(o){var t;if(super(o),o.type!==Rt.ATTRIBUTE||o.name!=="class"||((t=o.strings)===null||t===void 0?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(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){var s,e;if(this.et===void 0){this.et=new Set,o.strings!==void 0&&(this.st=new Set(o.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(const i in t)t[i]&&!(!((s=this.st)===null||s===void 0)&&s.has(i))&&this.et.add(i);return this.render(t)}const r=o.element.classList;this.et.forEach(i=>{i in t||(r.remove(i),this.et.delete(i))});for(const i in t){const n=!!t[i];n===this.et.has(i)||((e=this.st)===null||e===void 0?void 0:e.has(i))||(n?(r.add(i),this.et.add(i)):(r.remove(i),this.et.delete(i)))}return ht}});var Gn=Object.defineProperty,Qn=Object.getOwnPropertyDescriptor,z=(o,t,s,e)=>{for(var r=e>1?void 0:e?Qn(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&Gn(t,s,r),r};const no="sonic-input";let C=class extends Xe(le(F(f))){constructor(){super(...arguments),this.readonly=!1,this.inlineContent=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1}updated(){var o,t,s,e;this.hasLabel=!!(this.label||((o=this.slotLabelNodes)==null?void 0:o.length)),this.hasDescription=!!(this.description||((t=this.slotDescriptionNodes)==null?void 0:t.length)),this.hasSuffix=!!((s=this.slotSuffixNodes)!=null&&s.length),this.hasPrefix=!!((e=this.slotPrefixNodes)!=null&&e.length)}onSlotChange(){this.requestUpdate()}inlineContentFocus(){var o;!this.inlineContent||(console.log("oypouaze"),(o=this.input)==null||o.focus())}render(){const o={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix};return u`<label for="form-element" class="${this.hasLabel?"form-label":"hidden"}">${this.label?this.label:""}<slot name="label" @slotchange="${this.onSlotChange}"></slot></label><div @click="${this.inlineContentFocus}" class="form-control ${io(o)}"><div class="${this.inlineContent?"form-element form-element-wrapper":"contents"}"><slot name="prefix" @slotchange="${this.onSlotChange}"></slot><input id="form-element" part="input" class="form-element input" @input="${this.handleChange}" @blur="${this.handleBlur}" type="${this.type}" disabled="${k(this.disabled)}" ?readonly="${this.readonly}" ?autofocus="${this.autofocus}" list="${k(this.list)}" tabindex="${k(this.tabindex)}" pattern="${k(this.pattern)}" min="${k(this.min)}" max="${k(this.max)}" step="${k(this.step)}" src="${k(this.src)}" minlength="${k(this.minlength)}" maxlength="${k(this.maxlength)}" placeholder="${k(this.placeholder)}" required="${k(this.required)}" autocomplete="${k(this.autocomplete)}" .name="${this.name}" .value="${this.value}"><slot name="suffix" @slotchange="${this.onSlotChange}"></slot></div></div><slot name="description" class="${this.hasDescription?"form-description":"hidden"}">${this.description?u`${this.description}`:""}</slot>`}};C.styles=[ce,Ur],z([a({type:String,reflect:!0})],C.prototype,"size",2),z([a({type:String})],C.prototype,"list",2),z([a({type:String})],C.prototype,"placeholder",2),z([a({type:String})],C.prototype,"pattern",2),z([a({type:String})],C.prototype,"min",2),z([a({type:String})],C.prototype,"max",2),z([a({type:Boolean})],C.prototype,"readonly",2),z([a({type:Number})],C.prototype,"step",2),z([a({type:Number})],C.prototype,"minlength",2),z([a({type:Number})],C.prototype,"maxlength",2),z([a({type:String})],C.prototype,"src",2),z([a({type:String})],C.prototype,"label",2),z([a({type:String})],C.prototype,"description",2),z([a({type:Boolean,reflect:!0})],C.prototype,"inlineContent",2),z([st({slot:"label"})],C.prototype,"slotLabelNodes",2),z([st({slot:"description"})],C.prototype,"slotDescriptionNodes",2),z([st({slot:"suffix"})],C.prototype,"slotSuffixNodes",2),z([st({slot:"prefix"})],C.prototype,"slotPrefixNodes",2),z([re("input")],C.prototype,"input",2),z([Y()],C.prototype,"hasDescription",2),z([Y()],C.prototype,"hasLabel",2),z([Y()],C.prototype,"hasSuffix",2),z([Y()],C.prototype,"hasPrefix",2),C=z([v(no)],C);try{customElements.define(no,C)}catch{}var Jn=Object.defineProperty,Xn=Object.getOwnPropertyDescriptor,Kt=(o,t,s,e)=>{for(var r=e>1?void 0:e?Xn(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&Jn(t,s,r),r};const ao="sonic-checkbox";let lt=class extends zr(Xe(le(F(f)))){constructor(){super(...arguments),this.touched=!1,this.iconName="check",this.hasDescription=!1}updated(){var o;this.hasDescription=!!(this.description||((o=this.slotDescriptionNodes)==null?void 0:o.length))}connectedCallback(){this.type="checkbox",super.connectedCallback()}render(){return u`<label class="checkbox-container ${this.disabled?"disabled":""}"><span class="icon-container"><input type="${this.type}" @change="${this.handleChange}" @blur="${this.handleBlur}" ?required="${this.required}" .disabled="${k(this.disabled)}" .checked="${k(this.checked)}" .name="${this.name}" .value="${this.value}" ?autofocus="${this.autofocus}"><sonic-icon name="${this.iconName}" class="sc-input-icon"></sonic-icon></span><div class="checkbox-text">${this.label?this.label:""}<slot></slot><slot name="description" class="${this.hasDescription?"description":"hidden"}">${this.description?u`${this.description}`:""}</slot></div></label>`}};lt.styles=[ce,w`:host{ --sc-checkbox-border-width: var(--sc-form-border-width); --sc-checkbox-border-color: transparent; } * { box-sizing: border-box; } .checkbox-container { min-height: 1.4em; display: flex; gap: 0.5em; line-height: 1.2; align-items: flex-start; font-size: var(--sc-fs); } .icon-container { position: relative; display: flex; flex-shrink: 0; } input { box-sizing: border-box; appearance: none; flex-shrink: 0; height: calc(var(--sc-fs) * 1.25); width: calc(var(--sc-fs) * 1.25); display: block; cursor: pointer; border-radius: 0.25em; transition: 0.2s; outline: none; margin: 0; background-color: var(--sc-base-200); border:var(--sc-checkbox-border-width) solid var(--sc-checkbox-border-color); } input:focus, :host(:not([disabled])) input:active { box-shadow: 0 0 0 2px var(--sc-primary); } :host(:not([disabled])) label { cursor: pointer; } sonic-icon { line-height: 0; position: absolute; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%) scale(0); transition: transform 0.2s ease-in-out; color: var(--sc-primary-content); } /* .checkbox-text { align-self: center; } */ .description { color: var(--sc-base-400); font-size: 0.85em; margin-top: 0.2em; display: block; } /*Active */ input:checked, input[checked="true"] { background: var(--sc-primary); } input:checked + sonic-icon, input[checked="true"] + sonic-icon { transform: translateX(-50%) translateY(-50%) scale(1); } /*DISABLED */ .disabled { cursor: not-allowed; } .disabled input { opacity: 0.4; } .disabled .checkbox-text { opacity: 0.6; } ::slotted(a) { color: inherit; text-decoration: underline !important; } ::slotted(a:hover) { text-decoration: none !important; } /*Utils */ .hidden { display: none; } /*ERROR*/ :host([touched]) .checkbox-container:has(input:not(:focus):invalid) { --sc-checkbox-border-color:var(--sc-danger); } :host([touched]) .checkbox-container:has(input:not(:focus):invalid) .checkbox-text{ color:var(--sc-danger); }`],Kt([a({type:Boolean,reflect:!0})],lt.prototype,"touched",2),Kt([a({type:String})],lt.prototype,"iconName",2),Kt([a({type:String})],lt.prototype,"description",2),Kt([a({type:String})],lt.prototype,"label",2),Kt([st({slot:"description"})],lt.prototype,"slotDescriptionNodes",2),Kt([a({type:Boolean})],lt.prototype,"hasDescription",2),lt=Kt([v(ao)],lt);try{customElements.define(ao,lt)}catch{}var ta=Object.defineProperty,ea=Object.getOwnPropertyDescriptor,ra=(o,t,s,e)=>{for(var r=e>1?void 0:e?ea(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&ta(t,s,r),r};const lo="sonic-radio";let tr=class extends lt{constructor(){super(),this.radio=!0}connectedCallback(){super.connectedCallback(),this.type="radio"}};tr.styles=[lt.styles,w`:host input { border-radius: 50%; } :host sonic-icon { border-radius: 50%; overflow: hidden; background-color:var(--sc-primary-content); line-height:0; display:block; font-size:0; height:10px; width:10px; }`],tr=ra([v(lo)],tr);try{customElements.define(lo,tr)}catch{}var sa=Object.defineProperty,oa=Object.getOwnPropertyDescriptor,K=(o,t,s,e)=>{for(var r=e>1?void 0:e?oa(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&sa(t,s,r),r};const co="sonic-select";let T=class extends le(F(f)){constructor(){super(...arguments),this.valueKey="value",this.wordingKey="wording",this.multiple=!1,this._options=[],this._value="",this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1}set options(o){this._options=o,!this.value&&this._options.length>0&&(this.value=this._options[0][this.valueKey]),this.requestUpdate()}get options(){return this._options}get value(){return this._value}set value(o){!o||this._value!=o&&(this._value=o,this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?Z.getInstance().get(this.formDataProvider)[this._name]=o:this.publisher&&(this.publisher[this._name]=o),this.requestUpdate())}connectedCallback(){super.connectedCallback();let o=this.querySelectorAll("option");o.length>0&&(this.options=Array.from(o).map(t=>({value:t.value,wording:t.text})))}updated(){var o,t,s,e;this.hasLabel=!!(this.label||((o=this.slotLabelNodes)==null?void 0:o.length)),this.hasDescription=!!(this.description||((t=this.slotDescriptionNodes)==null?void 0:t.length)),this.hasSuffix=!!((s=this.slotSuffixNodes)!=null&&s.length),this.hasPrefix=!!((e=this.slotPrefixNodes)!=null&&e.length)}onSlotChange(){this.requestUpdate()}validateFormElement(){var t;const o=(t=this.shadowRoot)==null?void 0:t.querySelector("select");!o||o.checkValidity()||(this.getFormPublisher().isFormValid=!1,o.reportValidity())}render(){const o={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix};return u`<label for="form-element" class="${this.hasLabel?"form-label":"hidden"}">${this.label?this.label:""}<slot name="label" @slotchange="${this.onSlotChange}"></slot></label><div class="form-control ${io(o)}"><slot name="prefix" @slotchange="${this.onSlotChange}"></slot><div class="form-select-wrapper"><select @change="${this.handleChange}" @blur="${this.handleBlur}" disabled="${k(this.disabled)}" ?required="${this.required}" ?multiple="${this.multiple}" size="${k(this.selectSize)}" ?autofocus="${this.autofocus}" .value="${this.value}" class="form-element">${Ut(this.options,t=>t[this.valueKey],t=>{const s=this.value==t[this.valueKey]?"selected":null;return u`<option selected="${k(s)}" value="${t[this.valueKey]}">${t[this.wordingKey]}</option>`})}<slot></slot></select><sonic-icon class="select-chevron" name="nav-arrow-down" size="${this.size}"></sonic-icon></div><slot name="suffix" @slotchange="${this.onSlotChange}"></slot></div><slot name="description" class="${this.hasDescription?"form-description":"hidden"}">${this.description?u`${this.description}`:""}</slot>`}};T.styles=[Ur,w`.form-element { appearance: none; padding-right: 2.5em; } .form-select-wrapper { position: relative; width: 100%; } sonic-icon { position: absolute; right: 1em; top: 50%; pointer-events: none; transform: translateY(-50%); color:var(--sc-input-color); } option { padding: 0.1rem 5rem; color: var(--sc-base-content); background: var(--sc-base); }`],K([a({type:String})],T.prototype,"valueKey",2),K([a({type:String})],T.prototype,"wordingKey",2),K([a({type:Boolean})],T.prototype,"multiple",2),K([a({type:String,reflect:!0})],T.prototype,"size",2),K([a({type:Number})],T.prototype,"selectSize",2),K([a({type:Array})],T.prototype,"options",1),K([a()],T.prototype,"value",1),K([a({type:String})],T.prototype,"label",2),K([a({type:String})],T.prototype,"description",2),K([st({slot:"label"})],T.prototype,"slotLabelNodes",2),K([st({slot:"description"})],T.prototype,"slotDescriptionNodes",2),K([st({slot:"suffix"})],T.prototype,"slotSuffixNodes",2),K([st({slot:"prefix"})],T.prototype,"slotPrefixNodes",2),K([Y()],T.prototype,"hasDescription",2),K([Y()],T.prototype,"hasLabel",2),K([Y()],T.prototype,"hasSuffix",2),K([Y()],T.prototype,"hasPrefix",2),T=K([v(co)],T);try{customElements.define(co,T)}catch{}var ia=Object.defineProperty,na=Object.getOwnPropertyDescriptor,B=(o,t,s,e)=>{for(var r=e>1?void 0:e?na(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&ia(t,s,r),r};const ho="sonic-textarea";let L=class extends Xe(le(F(f))){constructor(){super(...arguments),this.size="",this.readonly=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1,this.slotClasses={}}updated(){var o,t,s,e;this.hasLabel=!!(this.label||((o=this.slotLabelNodes)==null?void 0:o.length)),this.hasDescription=!!(this.description||((t=this.slotDescriptionNodes)==null?void 0:t.length)),this.hasSuffix=!!((s=this.slotSuffixNodes)!=null&&s.length),this.hasPrefix=!!((e=this.slotPrefixNodes)!=null&&e.length)}onSlotChange(){this.requestUpdate()}validateFormElement(){var t;const o=(t=this.shadowRoot)==null?void 0:t.querySelector("textarea");!o||o.checkValidity()||(this.getFormPublisher().isFormValid=!1,o.reportValidity())}render(){return u`<label for="form-element" class="${this.hasLabel?"form-label":"hidden"}">${this.label?this.label:""}<slot name="label" @slotchange="${this.onSlotChange}"></slot></label><div class="form-control"><textarea @input="${this.handleChange}" @blur="${this.handleBlur}" disabled="${k(this.disabled)}" ?required="${this.required}" ?autofocus="${this.autofocus}" rows="${k(this.rows)}" cols="${k(this.cols)}" maxlength="${k(this.maxlength)}" minlength="${k(this.minlength)}" ?readonly="${this.readonly}" spellcheck="${k(this.spellcheck)}" autocomplete="${k(this.autocomplete)}" tabindex="${k(this.tabindex)}" wrap="${k(this.wrap)}" placeholder="${this.placeholder}" class="form-element textarea custom-scroll">${this.value}</textarea></div><slot name="description" class="${this.hasDescription?"form-description":"hidden"}">${this.description?u`${this.description}`:""}</slot>`}};L.styles=[Ur,We,w`textarea { font-size: inherit; }`],B([a({type:String})],L.prototype,"size",2),B([a({type:Number})],L.prototype,"rows",2),B([a({type:Number})],L.prototype,"cols",2),B([a({type:Number})],L.prototype,"maxlength",2),B([a({type:Number})],L.prototype,"minlength",2),B([a({type:String})],L.prototype,"wrap",2),B([a({type:Boolean})],L.prototype,"readonly",2),B([a({type:String})],L.prototype,"placeholder",2),B([a({type:String})],L.prototype,"label",2),B([a({type:String})],L.prototype,"description",2),B([st({slot:"label"})],L.prototype,"slotLabelNodes",2),B([st({slot:"description"})],L.prototype,"slotDescriptionNodes",2),B([st({slot:"suffix"})],L.prototype,"slotSuffixNodes",2),B([st({slot:"prefix"})],L.prototype,"slotPrefixNodes",2),B([Y()],L.prototype,"hasDescription",2),B([Y()],L.prototype,"hasLabel",2),B([Y()],L.prototype,"hasSuffix",2),B([Y()],L.prototype,"hasPrefix",2),B([a()],L.prototype,"slotClasses",2),L=B([v(ho)],L);try{customElements.define(ho,L)}catch{}var aa=Object.defineProperty,la=Object.getOwnPropertyDescriptor,Vr=(o,t,s,e)=>{for(var r=e>1?void 0:e?la(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&aa(t,s,r),r};const po="sonic-fieldset";let ue=class extends F(f){constructor(){super(...arguments),this.disabled=!1}render(){return u`<fieldset form="${k(this.form)}" ?disabled="${this.disabled}"><slot></slot></fieldset>`}};ue.styles=[w`:host { --sc-fieldset-mt: 0; --sc-fieldset-mb: 1rem; --sc-fieldset-border-color: var(--sc-base-200); --sc-fieldset-border-width: var(--sc-form-border-width); margin-top: var(--sc-fieldset-mt); margin-bottom: var(--sc-fieldset-mb); display: block; border: var(--sc-fieldset-border-width) solid var(--sc-fieldset-border-color) !important; padding: 1.8rem 1.25rem; border-radius: var(--sc-rounded-lg); } fieldset { all: unset; display: contents; } ::slotted(sonic-legend) { margin-bottom: 1.5rem; display: block; }`],Vr([a({type:Boolean,reflect:!0})],ue.prototype,"disabled",2),Vr([a({type:String})],ue.prototype,"form",2),ue=Vr([v(po)],ue);try{customElements.define(po,ue)}catch{}var ca=Object.defineProperty,ha=Object.getOwnPropertyDescriptor,da=(o,t,s,e)=>{for(var r=e>1?void 0:e?ha(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&ca(t,s,r),r};let er=class extends f{render(){return u`<slot></slot>`}};er.styles=[w`:host { color: var(--sc-neutral-500); font-size: 1.25rem; line-height: 1.2; display: block; font-weight: var(--sc-font-weight-base); font-style: var(--sc-font-style-base); margin-top: 0.25em; }`],er=da([v("sonic-legend-description")],er);try{customElements.define("sonic-legend-description",er)}catch{}var pa=Object.defineProperty,ua=Object.getOwnPropertyDescriptor,me=(o,t,s,e)=>{for(var r=e>1?void 0:e?ua(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&pa(t,s,r),r};const uo="sonic-legend";let xt=class extends f{render(){return u`<legend part="legend">${this.iconName?u`<div class="icon"><sonic-icon name="${this.iconName}" prefix="${k(this.iconPrefix)}" library="${k(this.iconLibrary)}"></sonic-icon></div>`:""}<div class="legend-content">${this.label} ${this.description?u`<sonic-legend-description>${this.description}</sonic-legend-description>`:""}<slot></slot></div><slot name="suffix"></slot></legend>`}};xt.styles=[w`:host { --sc-legend-font-size: 1.75rem; --sc-legend-font-weight: var(--sc-font-weight-base); --sc-legend-font-style: var(--sc-headings-font-style); --sc-legend-family: var(--sc-headings-font-family); --sc-legend-line-height: var(--sc-headings-line-height); display: flex; width: 100%; } legend { font-size: var(--sc-legend-font-size); font-weight: var(--sc-legend-font-weight); font-style: var(--sc-legend-font-style); font-family: var(--sc-legend-font-family); line-height: var(--sc-legend-line-height); padding: 0; display: flex; width: 100%; align-items: flex-start; gap: 0.5em; } slot[name="suffix"] { display: block; margin-left: auto; flex-shrink: 0; } .legend-content { flex-grow: 1; }`],me([a({type:String})],xt.prototype,"description",2),me([a({type:String})],xt.prototype,"label",2),me([a({type:String})],xt.prototype,"iconName",2),me([a({type:String})],xt.prototype,"iconLibrary",2),me([a({type:String})],xt.prototype,"iconPrefix",2),xt=me([v(uo)],xt);try{customElements.define(uo,xt)}catch{}class ma{constructor(t,{target:s,config:e,callback:r,skipInitial:i}){this.t=!1,this.i=!1,this.callback=()=>!0,(this.h=t).addController(this),this.o=s===null||s!=null?s:this.h,this.l=e,this.t=i!=null?i:this.t,this.callback=r!=null?r:this.callback,window.ResizeObserver?this.u=new ResizeObserver(n=>{this.handleChanges(n),this.h.requestUpdate()}):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(t){this.value=this.callback(t,this.u)}hostConnected(){this.o&&this.observe(this.o)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.t&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}disconnect(){this.u.disconnect()}}var ga=Object.defineProperty,ba=Object.getOwnPropertyDescriptor,fa=(o,t,s,e)=>{for(var r=e>1?void 0:e?ba(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&ga(t,s,r),r};const mo="sonic-form-layout";let rr=class extends F(f){constructor(){super(...arguments),this._resizeController=new ma(this,{})}render(){return u`<div class="${this.offsetWidth>440?"cq--md":""}"><slot></slot></div>`}};rr.styles=[w`:host { display: block; } div { display: grid; grid-gap: 1.5rem; align-items: flex-start; } .cq--md { grid-gap: 1.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); } ::slotted(sonic-radio), ::slotted(sonic-checkbox), ::slotted(sonic-form-actions), ::slotted(sonic-divider), ::slotted(sonic-textarea) { grid-column: 1 / -1; } ::slotted(sonic-divider) { --sc-divider-my: 0; }`],rr=fa([v(mo)],rr);try{customElements.define(mo,rr)}catch{}var va=Object.defineProperty,ya=Object.getOwnPropertyDescriptor,wa=(o,t,s,e)=>{for(var r=e>1?void 0:e?ya(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&va(t,s,r),r};const go="sonic-form-actions";let sr=class extends f{render(){return u`<slot></slot>`}};sr.styles=[w`:host{ display:flex; gap:.3rem; }`],sr=wa([v(go)],sr);try{customElements.define(go,sr)}catch{}var xa=Object.defineProperty,$a=Object.getOwnPropertyDescriptor,ka=(o,t,s,e)=>{for(var r=e>1?void 0:e?$a(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&xa(t,s,r),r};const bo="sonic-group";let or=class extends f{updated(){const o=this.querySelectorAll("sonic-input, sonic-button"),t=o.length;t>1&&o.forEach((s,e)=>{e===0?(s.style.setProperty("--sc-item-rounded-tr","0"),s.style.setProperty("--sc-item-rounded-br","0")):e===t-1?(s.style.setProperty("--sc-item-rounded-tl","0"),s.style.setProperty("--sc-item-rounded-bl","0")):(s.style.setProperty("--sc-item-rounded-tr","0"),s.style.setProperty("--sc-item-rounded-br","0"),s.style.setProperty("--sc-item-rounded-tl","0"),s.style.setProperty("--sc-item-rounded-bl","0"))})}render(){return u`<slot></slot>`}};or.styles=[w`:host { display: inline-flex; vertical-align: middle; } slot { width: 100%; display: flex; align-items: flex-end; }`],or=ka([v(bo)],or);try{customElements.define(bo,or)}catch{}var _a=Object.defineProperty,Aa=Object.getOwnPropertyDescriptor,$t=(o,t,s,e)=>{for(var r=e>1?void 0:e?Aa(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&_a(t,s,r),r};const fo="sonic-image";let ct=class extends f{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}render(){const o={aspectRatio:this.cover?"auto":this.ratio,imageRendering:this.imageRendering,objectPosition:this.objectPosition};return u`<div part="image"><picture part="picture"><img part="img" src="${this.src}" loading="${this.loading}" alt="${this.alt}" style="${dt(o)}"></picture></div>`}};ct.styles=[w`:host { --sc-img-radius: 0; --sc-img-bg: var(--sc-placeholder-bg); border-radius: var(--sc-img-radius); display: block; width: 100%; background: var(--sc-img-bg); } img { width: 100%; vertical-align: middle; object-fit: cover; } img[src=""] { visibility: hidden; } /*Rounded*/ :host([rounded]) { --sc-img-radius: var(--sc-rounded); overflow: hidden; } :host([rounded="sm"]) { --sc-img-radius: var(--sc-rounded-sm); } :host([rounded="md"]) { --sc-img-radius: var(--sc-rounded-md); } :host([rounded="lg"]) { --sc-img-radius: var(--sc-rounded-lg); } :host([rounded="xl"]) { --sc-img-radius: var(--sc-rounded-xl); } /*Cercle*/ :host([rounded="full"]) { --sc-img-radius: 50% !important; } :host([rounded="none"]) { --sc-img-radius: 0 !important; } :host([cover]), :host([cover]) > div, :host([cover]) img { position: absolute !important; left: 0 !important; top: 0 !important; right: 0 !important; bottom: 0 !important; height: 100% !important; width: 100% !important; }`],$t([a({type:String})],ct.prototype,"rounded",2),$t([a({type:String})],ct.prototype,"src",2),$t([a({type:String})],ct.prototype,"alt",2),$t([a({type:String})],ct.prototype,"loading",2),$t([a({type:String})],ct.prototype,"ratio",2),$t([a({type:String})],ct.prototype,"objectPosition",2),$t([a({type:String})],ct.prototype,"imageRendering",2),$t([a({type:Boolean,reflect:!0})],ct.prototype,"cover",2),ct=$t([v(fo)],ct);try{customElements.define(fo,ct)}catch{}var Pa=Object.defineProperty,Sa=Object.getOwnPropertyDescriptor,zt=(o,t,s,e)=>{for(var r=e>1?void 0:e?Sa(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&Pa(t,s,r),r};const Ca="sonic-taxonomy";let ut=class extends f{constructor(){super(...arguments),this.icon={},this.taxonomy=[],this.separator=", ",this.key="",this.type="default",this.variant="default",this.size="md"}render(){if(!this.taxonomy)return S;let o=this.key+"_display",t=this.taxonomy.filter(s=>s!=null&&(s[o]===!0||s[o]=="1"||!s.hasOwnProperty(o)));return t.length===0?(this.style.display="none",S):(this.style.removeProperty("display"),u`<sonic-badge type="${this.type}" variant="${this.variant}" size="${this.size}"><sonic-icon slot="prefix" library="${k(this.icon.library)}" prefix="${k(this.icon.prefix)}" name="${k(this.icon.name)}"></sonic-icon><span class="taxonomy-list">${Ut(t,s=>s[this.key+"_id"],s=>u`<span>${s[this.key+"_name"]}</span><span class="sonic-taxonomy-separator">${Bt(this.separator)}</span>`)}</span></sonic-badge>`)}};ut.styles=w`:host .sonic-taxonomy-separator:last-child { display: none; } .taxonomy-list { display: flex; flex-wrap: wrap; }`,zt([a({type:Object})],ut.prototype,"icon",2),zt([a({type:Array})],ut.prototype,"taxonomy",2),zt([a({type:String})],ut.prototype,"separator",2),zt([a({type:String})],ut.prototype,"key",2),zt([a({type:String,reflect:!0})],ut.prototype,"type",2),zt([a({type:String,reflect:!0})],ut.prototype,"variant",2),zt([a({type:String,reflect:!0})],ut.prototype,"size",2),ut=zt([v(Ca)],ut);try{customElements.define("sonic-taxonomy",ut)}catch{}var Oa=Object.defineProperty,Ea=Object.getOwnPropertyDescriptor,ja=(o,t,s,e)=>{for(var r=e>1?void 0:e?Ea(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&Oa(t,s,r),r};const vo="sonic-menu-item";let qr=class extends E{constructor(){super()}connectedCallback(){this.hasAttribute("variant")||(this.variant="ghost"),this.hasAttribute("type")||(this.type="primary"),this.hasAttribute("shape")||(this.shape="block"),this.hasAttribute("align")||(this.align="left"),super.connectedCallback()}};qr=ja([v(vo)],qr);try{customElements.define(vo,qr)}catch{}var za=Object.defineProperty,Da=Object.getOwnPropertyDescriptor,mt=(o,t,s,e)=>{for(var r=e>1?void 0:e?Da(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&za(t,s,r),r};const yo="sonic-menu";let ot=class extends f{constructor(){super(...arguments),this.size="",this.direction="column",this.gap="var(--sc-menu-gap)",this.align="left",this.shadow=null,this.moreShape="circle",this.minWidth="0",this.hasMoreElements=!1}checkIfMore(){var o;this.hasMoreElements=!!((o=this.moreElements)!=null&&o.length)}updated(o){const t=this.querySelector(".more-btn");this.size&&t&&t.setAttribute("size",this.size),this.querySelectorAll("sonic-divider").forEach(s=>{s.hasAttribute("size")||s.setAttribute("size","xs")}),super.updated(o)}mainSlotChange(){this.setChildrenSize(this.menuChildren)}setChildrenSize(o){o.forEach(t=>{this.size&&t.setAttribute("size",this.size),this.align&&t.setAttribute("align",this.align),this.direction=="row"&&t.getAttribute("shape")=="block"&&t.setAttribute("shape","default")})}render(){const o={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},e={marginLeft:t?"":".55em"};return u`<menu part="menu" class="shadowable" style="${dt(o)}"><slot @slotchange="${this.mainSlotChange}"></slot><sonic-pop style="${dt(s)}" class="${this.hasMoreElements?"":"hidden"}"><sonic-menu-item style="${dt(e)}" class="more-btn" shape="${this.moreShape}" align="center"><sonic-icon size="xl" name="${t?"more-vert":"more-horiz"}"></sonic-icon></sonic-menu-item><slot name="more" @slotchange="${this.checkIfMore}" slot="content"></slot></sonic-pop></menu>`}};ot.styles=[w`:host { display: block; --sc-menu-gap:.15rem; } :host > menu { display: flex; border-radius: min(calc(var(--sc-btn-rounded) * 2), 0.4em); margin: 0; padding: 0.35em; } .hidden { display:none !important; } /*OMBRE*/ :host([shadow]) .shadowable, :host([shadow="md"]) .shadowable, :host([shadow="true"]) .shadowable { box-shadow: var(--sc-shadow); } :host([shadow="sm"]) .shadowable { box-shadow: var(--sc-shadow-sm); } :host([shadow="lg"]) .shadowable { box-shadow: var(--sc-shadow-lg); } :host([shadow="none"]) .shadowable { box-shadow: none; }`],mt([a({type:String,reflect:!0})],ot.prototype,"size",2),mt([a({type:String,reflect:!0})],ot.prototype,"direction",2),mt([a({type:String})],ot.prototype,"gap",2),mt([a({type:String,reflect:!0})],ot.prototype,"align",2),mt([a({type:String,reflect:!0})],ot.prototype,"shadow",2),mt([a({type:String})],ot.prototype,"moreShape",2),mt([a({type:String})],ot.prototype,"minWidth",2),mt([Nt({selector:"sonic-menu-item"})],ot.prototype,"menuChildren",2),mt([Nt({slot:"more",selector:"*"})],ot.prototype,"moreElements",2),mt([Y()],ot.prototype,"hasMoreElements",2),ot=mt([v(yo)],ot);try{customElements.define(yo,ot)}catch{}var La=Object.defineProperty,Ma=Object.getOwnPropertyDescriptor,wo=(o,t,s,e)=>{for(var r=e>1?void 0:e?Ma(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&La(t,s,r),r};const xo="sonic-modal-actions";let Le=class extends f{firstUpdated(){var o;(o=this.buttons)==null||o.forEach(t=>{t.addEventListener("click",()=>{var s;t.getAttribute("hideModal")!="false"&&((s=this.closest("sonic-modal"))==null||s.hide())})})}render(){return u`<slot></slot>`}};Le.styles=[w`:host { display: flex; gap: 0.5rem; margin-top: auto; padding-top: 1rem; }`],wo([Nt({selector:"sonic-button"})],Le.prototype,"buttons",2),Le=wo([v(xo)],Le);try{customElements.define(xo,Le)}catch{}var Ta=Object.defineProperty,Na=Object.getOwnPropertyDescriptor,Ia=(o,t,s,e)=>{for(var r=e>1?void 0:e?Na(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&Ta(t,s,r),r};const $o="sonic-modal-title";let ir=class extends f{render(){return u`<slot></slot>`}};ir.styles=[w`:host { font-weight: bold; font-size: 1.5rem; display: block; line-height: var(--sc-headings-line-height); font-family: var(--sc-headings-font-family); }`],ir=Ia([v($o)],ir);try{customElements.define($o,ir)}catch{}var Ra=Object.defineProperty,Fa=Object.getOwnPropertyDescriptor,Ua=(o,t,s,e)=>{for(var r=e>1?void 0:e?Fa(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&Ra(t,s,r),r};const ko="sonic-modal-subtitle";let nr=class extends f{render(){return u`<slot></slot>`}};nr.styles=[w`:host { font-size: 1.1rem; display: block; text-transform: uppercase; line-height: var(--sc-headings-line-height); font-family: var(--sc-headings-font-family); }`],nr=Ua([v(ko)],nr);try{customElements.define(ko,nr)}catch{}var Ba=Object.defineProperty,Va=Object.getOwnPropertyDescriptor,qa=(o,t,s,e)=>{for(var r=e>1?void 0:e?Va(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&Ba(t,s,r),r};const _o="sonic-modal-content";let ar=class extends f{render(){return u`<slot></slot>`}};ar.styles=[w`:host { display: block; }`],ar=qa([v(_o)],ar);try{customElements.define(_o,ar)}catch{}var Ha=Object.defineProperty,Wa=Object.getOwnPropertyDescriptor,Za=(o,t,s,e)=>{for(var r=e>1?void 0:e?Wa(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&Ha(t,s,r),r};const Ao="sonic-modal-close";let lr=class extends f{render(){return u`<sonic-button shape="circle" variant="ghost" @click="${this.handleClick}"><sonic-icon name="cancel" size="lg"></sonic-icon></sonic-button>`}handleClick(){this.closest("sonic-modal").hide()}};lr.styles=[w`:host { position: absolute; right: 0.6rem; top: 0.6rem; z-index: 20; }`],lr=Za([v(Ao)],lr);try{customElements.define(Ao,lr)}catch{}var Ka=Object.defineProperty,Ya=Object.getOwnPropertyDescriptor,it=(o,t,s,e)=>{for(var r=e>1?void 0:e?Ya(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&Ka(t,s,r),r};const cr="sonic-modal";let H=class extends F(f){constructor(){super(...arguments),this.hideOnOverlayClick=!0,this.hideOnEscape=!0,this.align="center",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.fullScreen=!1,this.visible=!1}static create(o){const t=document.createElement(cr);return t.innerHTML=`<sonic-modal-close></sonic-modal-close><sonic-modal-content>${o.content}</sonic-modal-content>`||"",(document.querySelector("sonic-theme")||document.body).appendChild(t),t.show(),t}connectedCallback(){super.connectedCallback()}updated(){const o=this;document.addEventListener("keydown",this.handleEscape),o.closeBtn.forEach(t=>{t.addEventListener("click",function(){o.hide()},{once:!0})})}render(){if(this.visible==!1)return S;this.handleFullsceen();const o={padding:this.padding,maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,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 u`<div class="modal-wrapper" style="${dt(t)}" ${Ve({out:Pi})} tabindex="0"><div part="modal" class="modal custom-scroll" style="${dt(o)}" ${Ve({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}]})}><div class="modal-content"><slot></slot></div></div></div><div class="overlay" @click="${this.hideOnOverlayClick?this.hide:""}" ${Ve({keyframeOptions:{duration:500},in:Si,out:[{opacity:0,pointerEvents:"none"}]})}></div>`}show(){var o,t;this.visible=!0,(o=this.modalElement)==null||o.setAttribute("tabindex","0"),(t=this.modalElement)==null||t.focus(),this.dispatchEvent(new CustomEvent("show"))}hide(){var o;this.visible=!1,(o=this.modalElement)==null||o.setAttribute("tabindex","-1"),this.dispatchEvent(new CustomEvent("hide"))}dispose(){this.hide(),this.remove()}handleEscape(o){o.key==="Escape"&&[...document.querySelectorAll(cr)].forEach(t=>{this.hideOnEscape==!0&&t.hide()})}handleFullsceen(){this.fullScreen&&(this.width="100%",this.height="100%",this.maxWidth="none",this.maxHeight="none")}};if(H.styles=[We,w`:host { --sc-modal-py: 2.5rem; --sc-modal-px: 1.5rem; --sc-modal-content: var(--sc-base-content); --sc-modal-bg: var(--sc-base); --sc-modal-max-w: min(100vw, 64ch); --sc-modal-max-h: 80vh; --sc-modal-scrollbar-bg: var(--sc-base-300); --sc-modal-rounded: var(--sc-rounded-lg); } * { box-sizing: border-box; } .modal-wrapper { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 990; text-align: center; align-items: center; justify-content: center; flex-direction: column; display: flex; pointer-events: none; } .modal-content { overflow-y: auto; display: flex; flex-direction: column; text-align: center; align-items: center; min-height: 10rem; } .modal { background: var(--sc-base); width: 100%; box-shadow: var(--sc-shadow-lg); border-radius: var(--sc-modal-rounded) var(--sc-modal-rounded) 0 0; pointer-events: auto; /*overflow: hidden;*/ transform: translateZ(0); } .overlay { background: var(--sc-base-200); left: 0; top: 0; right: 0; bottom: 0; z-index: 900; opacity: 0.8; position: fixed; } ::slotted(sonic-modal-title) { margin-bottom: 1rem; } ::slotted(sonic-modal-subtitle) { margin-top: -0.45rem; margin-bottom: 1rem; } @media (max-width: 767.5px) { .modal-wrapper, .modal { max-width: none !important; width: 100% !important; } } @media (min-width: 768px) { .modal-wrapper { top: 50%; left: 50%; bottom: auto; right: auto; transform: translateX(-50%) translateY(-50%); } .modal { top: 50%; bottom: auto; right: auto; border-radius: var(--sc-modal-rounded); } } :host([align="left"]) .modal-content { text-align: left; align-items: flex-start; } :host([align="right"]) .modal-content { text-align: right; align-items: flex-end; } /* Border radius */ :host([rounded="none"]) modal { --sc-img-radius: 0 !important; }`],it([a({type:Boolean,reflect:!0})],H.prototype,"hideOnOverlayClick",2),it([a({type:Boolean,reflect:!0})],H.prototype,"hideOnEscape",2),it([a({type:String,reflect:!0})],H.prototype,"align",2),it([a({type:String})],H.prototype,"padding",2),it([a({type:String})],H.prototype,"maxWidth",2),it([a({type:String})],H.prototype,"maxHeight",2),it([a({type:String})],H.prototype,"width",2),it([a({type:String})],H.prototype,"height",2),it([a({type:Boolean,reflect:!0})],H.prototype,"fullScreen",2),it([a({type:Boolean,reflect:!0})],H.prototype,"visible",2),it([re(".modal-wrapper")],H.prototype,"modalWrapper",2),it([re(".modal")],H.prototype,"modalElement",2),it([Nt({selector:"sonic-modal-close"})],H.prototype,"closeBtn",2),H=it([v(cr)],H),typeof window<"u"){let o=window;o.SonicModal=H}try{customElements.define(cr,H)}catch{}var Ga=Object.defineProperty,Qa=Object.getOwnPropertyDescriptor,ge=(o,t,s,e)=>{for(var r=e>1?void 0:e?Qa(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&Ga(t,s,r),r};const Ja={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty",default:"info-empty"},Po="sonic-alert";let kt=class extends f{constructor(){super(...arguments),this.label="",this.text="",this.background=!1,this.status="default"}render(){return u`<div part="alert" class="alert"><div>${this.status&&u`<sonic-icon name="${Ja[this.status]}"></sonic-icon>`}</div><div>${this.label?u`<span class="label">${this.label}</span>`:S}<slot>${this.text}</slot></div></div>`}};kt.styles=[ce,w`:host { --sc-alert-color: inherit; --sc-alert-rounded: var(--sc-rounded); --sc-alert-fw: var(--sc-font-weight-base); --sc-alert-fst: var(--sc-font-style-base); --sc-alert-label-fw: bold; display: block; font-weight: var(--sc-alert-fw); font-style: var(--sc-alert-fst); } .alert { color: var(--sc-alert-color); position: relative; display: flex; gap: 0.4em; line-height: 1.2; border-radius: var(--sc-alert-rounded); } z .label { font-weight: var(--sc-alert-label-fw); } :host([status="warning"]) { --sc-alert-color: var(--sc-warning); } :host([status="error"]) { --sc-alert-color: var(--sc-danger); } :host([status="info"]) { --sc-alert-color: var(--sc-info); } :host([status="success"]) { --sc-alert-color: var(--sc-success); } /*background*/ :host([background]) .alert { background: var(--sc-base); padding: 0.8em 1.15em; } :host([background]) .alert:before { background-color: currentColor; content: ""; display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; opacity: 0.08; border-radius: var(--sc-alert-rounded); pointer-events: none; } :host([background]) > div { z-index: 2; position: relative; } slot { display: block; } /*Rounded*/ :host([size="xs"]) .alert { --sc-alert-rounded: var(--sc-rounded-sm); } :host([size="sm"]) .alert { --sc-alert-rounded: var(--sc-rounded-sm); }`],ge([a({type:String})],kt.prototype,"label",2),ge([a({type:String})],kt.prototype,"text",2),ge([a({type:String,reflect:!0})],kt.prototype,"size",2),ge([a({type:Boolean,reflect:!0})],kt.prototype,"background",2),ge([a({type:String,reflect:!0})],kt.prototype,"status",2),kt=ge([v(Po)],kt);try{customElements.define(Po,kt)}catch{}var Xa=Object.defineProperty,tl=Object.getOwnPropertyDescriptor,be=(o,t,s,e)=>{for(var r=e>1?void 0:e?tl(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&Xa(t,s,r),r};const el="sonic-toast-message-subscriber";let Yt=class extends F(f){constructor(){super(...arguments),this._messages=[],this.success=null,this.status=null,this._message="",this._data=""}get messages(){return this._messages}set messages(o){this._messages=o,this.messages&&o.forEach(t=>{t.type=="public"&&pt.add({text:t.content,status:t.status})})}get message(){return this._message}set message(o){this._message=o,!!this.message&&this.props.success===!1&&(this.props.public_message||pt.add({text:this.message,status:"error"}))}get data(){return this._data}set data(o){this._data=o;const t={text:"Votre produit a bien \xE9t\xE9 ajout\xE9",status:"success"};Array.isArray(this.data)&&this.props.success===!0&&pt.add(t),this.data==""&&this.props.status===!0&&pt.add(t),this.props.success===!1&&(this.props.public_message||pt.add({text:this.data,status:"error"}))}render(){return S}};be([a({type:Boolean})],Yt.prototype,"success",2),be([a({type:Boolean})],Yt.prototype,"status",2),be([a({type:Array})],Yt.prototype,"messages",1),be([a({type:String})],Yt.prototype,"message",1),be([a()],Yt.prototype,"data",1),Yt=be([v(el)],Yt);var rl=Object.defineProperty,sl=Object.getOwnPropertyDescriptor,Hr=(o,t,s,e)=>{for(var r=e>1?void 0:e?sl(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&rl(t,s,r),r};const So="sonic-tooltip";let fe=class extends f{constructor(){super(...arguments),this.label="",this.disabled=!1}render(){let o=this.disabled||this.label==""?"disabled":"";return u`<div data-tooltip-text="${this.label.trim().replace(" "," ")}" class="tooltip ${o}"><slot></slot></div>`}};fe.styles=[w`.tooltip { position: relative; display: flex; align-items: center; text-align: center; } .tooltip:before { position: absolute; content: attr(data-tooltip-text); font-size: 0.85rem; display: block; opacity: 0; pointer-events: none; bottom: calc(100% + 0.25rem); left: 50%; transform: translateX(-50%); background: var(--sc-base-content, #111827); padding: 0.25rem; border-radius: 0.25rem; color: var(--sc-base, #fff); z-index: 999; display: none; line-height: 1.1; width: max-content; max-width: 20rem; } .tooltip:not(.disabled):hover:before { opacity: 1; display: block; }`],Hr([a({type:String})],fe.prototype,"label",2),Hr([a({type:Boolean})],fe.prototype,"disabled",2),fe=Hr([v(So)],fe);try{customElements.define(So,fe)}catch{}var ol=Object.defineProperty,il=Object.getOwnPropertyDescriptor,Dt=(o,t,s,e)=>{for(var r=e>1?void 0:e?il(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&ol(t,s,r),r};const Co="sonic-pop";let Q=class extends f{constructor(){super(...arguments),this.open=!1,this.toggle="true",this.inline=!1,this.shadow="lg",this.placement="bottom",this.positioningRuns=!1,this.lastContentX=Number.NaN,this.lastContentY=Number.NaN}runPositioning(){!this.positioningRuns||(this.positioningRuns=!0,this._setUpMenu(this.placement),window.requestAnimationFrame(()=>this.runPositioning()))}_toggle(o){this.open&&this.toggle=="false"||o.type=="keydown"&&(o.key!="ArrowDown"||this.open)||(this.open=!this.open,this.open?this._show():this._hide())}_show(){this.open=!0,this.popContent.setAttribute("tabindex","0"),this.popBtn&&this.popContent&&!this.positioningRuns&&(this.positioningRuns=!0,this.lastContentX=Number.NaN,this.lastContentY=Number.NaN,this.runPositioning())}_hide(){this.open=!1,this.popContent.setAttribute("tabindex","-1"),this.positioningRuns=!1}_handleClosePop(o){let t=o.composedPath(),s=t[0];Q.pops.forEach(e=>{const r=t.includes(e),i=t.includes(e.querySelector('[slot="content"]')),n=se.getAncestorAttributeValue(s,"data-on-select")==="keep";o.type=="pointerdown"&&r||o.type=="click"&&(r&&n||!i)||e._hide()})}connectedCallback(){super.connectedCallback(),Q.pops.size==0&&(document.addEventListener("pointerdown",this._handleClosePop),document.addEventListener("click",this._handleClosePop)),Q.pops.add(this)}disconnectedCallback(){super.disconnectedCallback(),Q.pops.delete(this),Q.pops.size==0&&(document.removeEventListener("pointerdown",this._handleClosePop),document.removeEventListener("click",this._handleClosePop))}_setUpMenu(o){var N;const t=(N=this.popContent)==null?void 0:N.getBoundingClientRect(),s=8,e=20,r=this.getBoundingClientRect();if(!this.offsetParent)return;let i=this.offsetParent.getBoundingClientRect(),n=r.left-i.left,l=r.top-i.top,c=n,h=l,y=l-t.height-s,g=n-t.width-2*s,m=n+r.width+2*s,x=l+r.height+s;switch(o){case"bottom":h=x;break;case"top":h=y;break;case"left":c=g;break;case"right":c=m;break}let _=window.innerWidth-m-i.left-t.width-e;_<0&&o==="right"&&(c=g),_<0&&["top","bottom"].includes(o)&&(c=Math.max(c+_,g+r.width)),-i.left-g>e&&o==="left"&&(c=m);let A=window.innerHeight-x-i.top-t.height-e;A<0&&o==="bottom"&&(h=y),A<0&&["left","right"].includes(o)&&(h=Math.max(h+A,y+r.height)),-i.top-y>-e&&o==="top"&&(h=x),this.lastContentX=c,this.lastContentY=h,Object.assign(this.popContent.style,{left:`${c}px`,top:`${h}px`})}render(){return u`<slot @click="${this._toggle}" @keydown="${this._toggle}" class="contents"></slot><slot name="content" tabindex="-1" part="content" class="${this.open?"is-open":""}"></slot>`}};Q.pops=new Set,Q.styles=[w`:host { display: inline-block; vertical-align: middle; } slot[name="content"] { background-color: var(--sc-base); position: absolute; z-index: 50; display: block; transform: translateY(1rem) scale(0.95); opacity: 0; pointer-events: none; transition-duration: 0.15s ; transition-timing-function: ease; transition-property:all; border-radius: min(calc(var(--sc-btn-rounded) * 2), 0.4em); } slot[name="content"].is-open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; transition-property:scale, opacity; transition-timing-function: cubic-bezier(0.25, 0.25, 0.42, 1.225); } /*OMBRE*/ :host([shadow]) slot[name="content"], :host([shadow="md"]) slot[name="content"], :host([shadow="true"]) slot[name="content"] { box-shadow: var(--sc-shadow); } :host([shadow="sm"]) slot[name="content"] { box-shadow: var(--sc-shadow-sm); } :host([shadow="none"]) slot[name="content"] { box-shadow: none; } :host([shadow="lg"]) slot[name="content"] { box-shadow: var(--sc-shadow-lg); } :host([inline]) { vertical-align: baseline; }`],Dt([Y()],Q.prototype,"open",2),Dt([re("slot:not([name=content])")],Q.prototype,"popBtn",2),Dt([re("slot[name=content]")],Q.prototype,"popContent",2),Dt([a({type:String})],Q.prototype,"toggle",2),Dt([a({type:Boolean,reflect:!0})],Q.prototype,"inline",2),Dt([a({type:String,reflect:!0})],Q.prototype,"shadow",2),Dt([a({type:String})],Q.prototype,"placement",2),Q=Dt([v(Co)],Q);try{customElements.define(Co,Q)}catch{}var nl=Object.defineProperty,al=Object.getOwnPropertyDescriptor,ve=(o,t,s,e)=>{for(var r=e>1?void 0:e?al(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&nl(t,s,r),r};const ll="sonic-divider";let _t=class extends f{constructor(){super(...arguments),this.label="",this.align="center"}firstUpdated(){var o,t;(this.label||((o=this.slotNodes)==null?void 0:o.length))&&((t=this.divider)==null||t.classList.add("has-text"))}render(){return u`<div part="divider"><span class="text">${this.label}<slot></slot></span></div>`}};_t.styles=[w`:host { --sc-divider-my: 0.5rem; --sc-divider-mx: 0; --sc-divider-border-width: min(2px, 0.15rem); --sc-divider-border-color: var(--sc-base-200); --sc-divider-border-style: solid; --sc-divider-color: var(--sc-base-500); --sc-divider-ff: var(--sc-font-family-base); --sc-divider-fs: 1rem; --sc-divider-fw: var(--sc-font-weight-base); --sc-divider-fst: var(--sc-font-style-base); margin: var(--sc-divider-my) var(--sc-divider-mx); font-size: var(--sc-divider-fs); font-style: var(--sc-divider-fst); font-family: var(--sc-divider-ff); font-weight: var(--sc-divider-fw); color: var(--sc-divider-color); display: block; } /*SIZE*/ :host([size="2xs"]) { --sc-divider-my: 0.35rem; --sc-divider-fs: 0.68rem; } :host([size="xs"]) { --sc-divider-my: 0.5rem; --sc-divider-fs: 0.75rem; } :host([size="sm"]) { --sc-divider-my: 0.75rem; --sc-divider-fs: 0.875rem; } :host([size="md"]) { --sc-divider-my: 1.25rem; } :host([size="lg"]) { --sc-divider-my: 1.85rem; } :host([size="xl"]) { --sc-divider-my: 2.25rem; } :host([size="2xl"]) { --sc-divider-my: 3.35rem; } div { display: flex; align-items: center; width: 100%; } div:before { content: ""; flex-grow: 1; border-top: var(--sc-divider-border-width) var(--sc-divider-border-style) var(--sc-divider-border-color); width: 100%; } div:after { content: ""; flex-grow: 1; border-top: var(--sc-divider-border-width) var(--sc-divider-border-style) var(--sc-divider-border-color); width: 100%; } /*ALIGNEMENT*/ :host([align="left"]) div:before { display: none; } :host([align="right"]) div:after { display: none; } /*TEXT*/ .text { flex-shrink: 0; max-width: 80%; } .no-text .text { display: none; } .has-text { gap: 0.5rem; }`],ve([st()],_t.prototype,"slotNodes",2),ve([re("div")],_t.prototype,"divider",2),ve([a({type:String})],_t.prototype,"label",2),ve([a({type:String,reflect:!0})],_t.prototype,"size",2),ve([a({type:String,reflect:!0})],_t.prototype,"align",2),_t=ve([v("sonic-divider")],_t);try{customElements.define(ll,_t)}catch{}var cl=Object.defineProperty,hl=Object.getOwnPropertyDescriptor,dl=(o,t,s,e)=>{for(var r=e>1?void 0:e?hl(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&cl(t,s,r),r};const Oo="sonic-card-header-description";let hr=class extends f{render(){return u`<div><slot></slot></div>`}};hr.styles=[w`div { margin-top: .1em; font-family: var(--sc-font-family-base); font-size: .7em; font-weight: var(--sc-font-style-base); }`],hr=dl([v(Oo)],hr);try{customElements.define(Oo,hr)}catch{}var pl=Object.defineProperty,ul=Object.getOwnPropertyDescriptor,Wr=(o,t,s,e)=>{for(var r=e>1?void 0:e?ul(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&pl(t,s,r),r};const Eo="sonic-card-header";let ye=class extends f{render(){return u`<div class="header"><div class="header-content">${this.label} ${this.description?u`<sonic-card-header-description>${this.description}</sonic-card-header-description>`:""}<slot></slot></div><slot name="suffix"></slot></div>`}};ye.styles=[w`:host { --sc-card-header-mb: 1.25rem; --sc-card-header-font-size: 1.875rem; --sc-card-header-font-weight: var(--sc-headings-font-weight); --sc-card-header-font-style: var(--sc-headings-font-style); --sc-card-header-family: var(--sc-headings-font-family); --sc-card-header-line-height: var(--sc-headings-line-height); } .header { display: flex; align-items: flex-start; gap: .5em 1em; margin-bottom: var(--sc-card-header-mb); line-height: var(--sc-card-header-line-height); font-family: var(--sc-card-header-font-family); font-size: var(--sc-card-header-font-size); font-style: var(--sc-card-header-font-style); font-weight: var(--sc-card-header-font-weight); } .header-content { flex-grow: 1; } slot[name="suffix"] { flex-shrink: 0; }`],Wr([a()],ye.prototype,"label",2),Wr([a()],ye.prototype,"description",2),ye=Wr([v(Eo)],ye);try{customElements.define(Eo,ye)}catch{}var ml=Object.defineProperty,gl=Object.getOwnPropertyDescriptor,bl=(o,t,s,e)=>{for(var r=e>1?void 0:e?gl(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&ml(t,s,r),r};const jo="sonic-card-main";let Zr=class extends f{render(){return u`<div><slot></slot></div>`}};Zr=bl([v(jo)],Zr);try{customElements.define(jo,Zr)}catch{}var fl=Object.defineProperty,vl=Object.getOwnPropertyDescriptor,yl=(o,t,s,e)=>{for(var r=e>1?void 0:e?vl(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&fl(t,s,r),r};const zo="sonic-card-footer";let Kr=class extends f{render(){return u`<slot></slot>`}};Kr=yl([v(zo)],Kr);try{customElements.define(zo,Kr)}catch{}var wl=Object.defineProperty,xl=Object.getOwnPropertyDescriptor,Do=(o,t,s,e)=>{for(var r=e>1?void 0:e?xl(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&wl(t,s,r),r};const Lo="sonic-card";let Me=class extends f{constructor(){super(...arguments),this.type="default"}render(){return u`<div part="card" class="card"><slot></slot></div>`}};Me.styles=[w`:host { --sc-card-padding: 1.5rem; --sc-card-color: var(--sc-base-content); --sc-card-bg: var(--sc-base); --sc-card-rounded: var(--sc-rounded-lg); --sc-card-shadow: var(--sc-shadow-lg); } .card { padding: var(--sc-card-padding); background-color: var(--sc-card-bg); border-radius: var(--sc-card-rounded); box-shadow: var(--sc-card-shadow); color: var(--sc-card-color); } /*TYPES*/ :host([type="primary"]) { --sc-card-color: var(--sc-primary-content); --sc-badge-bg: var(--sc-primary); } :host([type="warning"]) { --sc-card-color: var(--sc-warning-content); --sc-card-bg: var(--sc-warning); } :host([type="danger"]) { --sc-card-color: var(--sc-danger-content); --sc-card-bg: var(--sc-danger); } :host([type="info"]) { --sc-card-color: var(--sc-info-content); --sc-card-bg: var(--sc-info); } :host([type="success"]) { --sc-card-color: var(--sc-success-content); --sc-card-bg: var(--sc-success); } :host([type="light"]) { --sc-card-color: var(--sc-base-content); --sc-card-bg: var(--sc-base-100); } :host([type="neutral"]) { --sc-card-color: var(--sc-base); --sc-card-bg: var(--sc-base-content); } :host([type="invert"]) { --sc-card-color: var(--sc-base); --sc-card-bg: var(--sc-base-900); }`],Do([a({type:String,reflect:!0})],Me.prototype,"type",2),Me=Do([v(Lo)],Me);try{customElements.define(Lo,Me)}catch{}const Yr=w`:host{ --sc-color:inherit; color:var(--sc-color); } :host([type="primary"]) { --sc-color: var(--sc-primary); } :host([type="warning"]) { --sc-color: var(--sc-warning); } :host([type="danger"]) { --sc-color: var(--sc-danger); } :host([type="info"]) { --sc-color: var(--sc-info); } :host([type="success"]) { --sc-color: var(--sc-success); } .inherit-color{ color:var(--sc-color); }`;w`:host{ --sc-color:inherit; --sc-bg:inherit; color:var(--sc-color); background:var(--sc-bg); } :host([type="primary"]) { --sc-color: var(--sc-primary-content); --sc-bg: var(--sc-primary); } :host([type="warning"]) { --sc-color: var(--sc-warning-content); --sc-bg: var(--sc-warning); } :host([type="danger"]) { --sc-color: var(--sc-danger-content); --sc-bg: var(--sc-danger); } :host([type="info"]) { --sc-color: var(--sc-info-content); --sc-bg: var(--sc-info); } :host([type="success"]) { --sc-color: var(--sc-success-content); --sc-bg: var(--sc-success); } .inherit-bg{ color:inherit; }`;var $l=Object.defineProperty,kl=Object.getOwnPropertyDescriptor,_l=(o,t,s,e)=>{for(var r=e>1?void 0:e?kl(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&$l(t,s,r),r};const Mo="sonic-tr";let dr=class extends f{render(){return u`<slot></slot>`}};dr.styles=[Yr,w`:host { display: table-row; }`],dr=_l([v(Mo)],dr);try{customElements.define(Mo,dr)}catch{}var Al=Object.defineProperty,Pl=Object.getOwnPropertyDescriptor,Te=(o,t,s,e)=>{for(var r=e>1?void 0:e?Pl(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&Al(t,s,r),r};const To="sonic-th";let Lt=class extends f{render(){const o={textAlign:this.align,minWidth:this.minWidth};return u`<th part="th" style="${dt(o)}" colspan="${k(this.colSpan)}" rowspan="${k(this.rowSpan)}"><slot></slot></th>`}};Lt.styles=[Yr,w`:host { display: contents; background:var(--sc-table-bg); position:sticky; top:0; z-index:20; } th { all: inherit; display: table-cell; border-bottom: calc(var(--sc-border-width) * 1.5) solid var(--sc-table-border-color); text-transform: var(--sc-table-th-tt); font-weight: var(--sc-table-th-fw); font-size: var(--sc-table-th-fs); padding: var(--sc-table-th-py) var(--sc-table-th-px); }`],Te([a({type:Number})],Lt.prototype,"colSpan",2),Te([a({type:Number})],Lt.prototype,"rowSpan",2),Te([a({type:String})],Lt.prototype,"align",2),Te([a({type:String})],Lt.prototype,"minWidth",2),Lt=Te([v(To)],Lt);try{customElements.define(To,Lt)}catch{}var Sl=Object.defineProperty,Cl=Object.getOwnPropertyDescriptor,we=(o,t,s,e)=>{for(var r=e>1?void 0:e?Cl(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&Sl(t,s,r),r};const No="sonic-td";let At=class extends f{render(){const o={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth};return u`<td part="td" style="${dt(o)}" colspan="${k(this.colSpan)}" rowspan="${k(this.rowSpan)}"><slot></slot></td>`}};At.styles=[Yr,w`:host { display: contents; } td { all: inherit; display: table-cell; padding: var(--sc-table-td-py) var(--sc-table-td-px); }`],we([a({type:Number})],At.prototype,"colSpan",2),we([a({type:Number})],At.prototype,"rowSpan",2),we([a({type:String})],At.prototype,"align",2),we([a({type:String})],At.prototype,"vAlign",2),we([a({type:String})],At.prototype,"minWidth",2),At=we([v(No)],At);try{customElements.define(No,At)}catch{}var Ol=Object.defineProperty,El=Object.getOwnPropertyDescriptor,jl=(o,t,s,e)=>{for(var r=e>1?void 0:e?El(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&Ol(t,s,r),r};const Io="sonic-thead";let pr=class extends f{render(){return u`<slot></slot>`}};pr.styles=[w`:host { display: table-header-group; }`],pr=jl([v(Io)],pr);try{customElements.define(Io,pr)}catch{}var zl=Object.defineProperty,Dl=Object.getOwnPropertyDescriptor,Ll=(o,t,s,e)=>{for(var r=e>1?void 0:e?Dl(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&zl(t,s,r),r};const Ro="sonic-tbody";let ur=class extends f{render(){return u`<tbody><slot></slot></tbody>`}};ur.styles=[w`:host { display: table-row-group; } ::slotted(sonic-tr:nth-child(odd)){ background:var(--sc-base-50); } ::slotted(sonic-tr:hover) { background:var(--sc-base-100); } ::slotted(sonic-tr:not(:last-child)){ border-bottom:var(--sc-form-border-width) solid var(--sc-base-200) !important; }`],ur=Ll([v(Ro)],ur);try{customElements.define(Ro,ur)}catch{}var Ml=Object.defineProperty,Tl=Object.getOwnPropertyDescriptor,Nl=(o,t,s,e)=>{for(var r=e>1?void 0:e?Tl(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&Ml(t,s,r),r};const Fo="sonic-tfoot";let mr=class extends f{render(){return u`<tfoot><slot></slot></tfoot>`}};mr.styles=[w`:host { display: contents; }`],mr=Nl([v(Fo)],mr);try{customElements.define(Fo,mr)}catch{}var Il=Object.defineProperty,Rl=Object.getOwnPropertyDescriptor,Fl=(o,t,s,e)=>{for(var r=e>1?void 0:e?Rl(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&Il(t,s,r),r};const Uo="sonic-caption";let gr=class extends f{render(){return u`<slot></slot>`}};gr.styles=[w`:host { display:table-caption; font-size:.75rem; color:var(--sc-table-caption-color); padding: var(--sc-table-td-py) var(--sc-table-td-px) calc(2 * var(--sc-table-td-py) ); }`],gr=Fl([v(Uo)],gr);try{customElements.define(Uo,gr)}catch{}var Ul=Object.defineProperty,Bl=Object.getOwnPropertyDescriptor,Gt=(o,t,s,e)=>{for(var r=e>1?void 0:e?Bl(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&Ul(t,s,r),r};const Bo="sonic-table";let bt=class extends f{constructor(){super(...arguments),this.striped=!1,this.sticky=!1,this.bordered=!1,this.hover=!1}render(){const o={maxHeight:this.maxHeight};return u`<div class="table-container custom-scroll" style="${dt(o)}"><div class="table" ?striped="${this.striped}" ?hover="${this.hover}" ?sticky="${this.sticky}"><slot></slot></div></div>`}};bt.styles=[We,ce,w`:host { --sc-table-fw: var(--sc-font-weight-base); --sc-table-fst: var(--sc-font-style-base); --sc-table-fs: 1rem; --sc-table-border-color: var(--sc-base-200); --sc-table-caption-color: var(--sc-base-400); --sc-table-bg: var(--sc-base); --sc-table-th-fs: .85em; --sc-table-th-fw: bold; --sc-table-th-tt: uppercase; --sc-table-th-px: var(--sc-table-td-px); --sc-table-th-py: calc(1.8 * var(--sc-table-td-py) ); --sc-table-td-px: .5em; --sc-table-td-py: .5em; display:block; } :host([maxHeight]) .table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; } .table { width: 100%; display: table; box-sizing:border-box; } :host([bordered]) .table-container { border:var(--sc-border-width) solid var(--sc-table-border-color) !important; }`],Gt([a({type:String,reflect:!0})],bt.prototype,"size",2),Gt([a({type:Boolean,reflect:!0})],bt.prototype,"striped",2),Gt([a({type:Boolean,reflect:!0})],bt.prototype,"sticky",2),Gt([a({type:Boolean,reflect:!0})],bt.prototype,"bordered",2),Gt([a({type:Boolean,reflect:!0})],bt.prototype,"hover",2),Gt([a({type:String})],bt.prototype,"maxHeight",2),bt=Gt([v(Bo)],bt);try{customElements.define(Bo,bt)}catch{}const Vl=Mr,ql=zr,Hl=le,Wl=Xe,Vo=F,Zl=Pe;let Gr=window;Gr["concorde-mixins"]=Gr["concorde-mixins"]||{},Gr["concorde-mixins"]={Fetcher:Vl,FormCheckable:ql,FormElement:Hl,FormInput:Wl,Subscriber:Vo,TemplatesContainer:Zl};var Kl=Object.defineProperty,Yl=Object.getOwnPropertyDescriptor,qo=(o,t,s,e)=>{for(var r=e>1?void 0:e?Yl(t,s):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(e?n(t,s,r):n(r))||r);return e&&r&&Kl(t,s,r),r};const Gl="sonic-captcha";let Qr=class extends Vo(f){constructor(){super(...arguments),this.key=""}connectedCallback(){const o=document.createElement("script");o.src="https://www.google.com/recaptcha/api.js?render="+this.key,document.head.appendChild(o),super.connectedCallback(),this.formPublisher=Dr.get(this.getAncestorAttributeValue("formDataProvider")),this.formPublisher.needsCaptchaValidation=!0,this.formPublisher.captchaToken.onAssign(t=>{t=="request_token"&&this.requestToken()})}requestToken(){const o=window;o.grecaptcha.ready(()=>{o.grecaptcha.execute(this.key,{action:"submit"}).then(t=>{this.formPublisher.captchaToken=t})})}render(){return u`<slot></slot>`}};qo([a()],Qr.prototype,"key",2),Qr=qo([v(Gl)],Qr);let br=window;br.SonicPublisherManager||(br.SonicPublisherManager=Z),br.SonicDataBindObserver||(br.SonicDataBindObserver=Ct);const Ql=pt,Jl=H;let Jr=window;Jr["concorde-components"]=Jr["concorde-components"]||{},Jr["concorde-components"]={SonicToast:Ql,SonicModal:Jl}});
|
|
1
|
+
var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(t,e,r)=>e in t?__defProp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,__spreadValues=(t,e)=>{for(var r in e||(e={}))__hasOwnProp.call(e,r)&&__defNormalProp(t,r,e[r]);if(__getOwnPropSymbols)for(var r of __getOwnPropSymbols(e))__propIsEnum.call(e,r)&&__defNormalProp(t,r,e[r]);return t},__spreadProps=(t,e)=>__defProps(t,__getOwnPropDescs(e)),__publicField=(t,e,r)=>(__defNormalProp(t,"symbol"!=typeof e?e+"":e,r),r);!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){var t;
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2019 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
+
*/
|
|
7
|
+
const e=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),s=new Map;class o{constructor(t,e){if(this._$cssResult$=!0,e!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=s.get(this.cssText);return e&&void 0===t&&(s.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const i=t=>new o("string"==typeof t?t:t+"",r),n=(t,...e)=>{const s=1===t.length?t[0]:e.reduce(((e,r,s)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[s+1]),t[0]);return new o(s,r)},a=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return i(e)})(t):t
|
|
8
|
+
/**
|
|
9
|
+
* @license
|
|
10
|
+
* Copyright 2017 Google LLC
|
|
11
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
+
*/;var l;const c=window.trustedTypes,h=c?c.emptyScript:"",d=window.reactiveElementPolyfillSupport,p={toAttribute(t,e){switch(e){case Boolean:t=t?h:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(s){r=null}}return r}},u=(t,e)=>e!==t&&(e==e||t==t),m={attribute:!0,type:String,converter:p,reflect:!1,hasChanged:u};class g extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,r)=>{const s=this._$Eh(r,e);void 0!==s&&(this._$Eu.set(s,r),t.push(s))})),t}static createProperty(t,e=m){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const r="symbol"==typeof t?Symbol():"__"+t,s=this.getPropertyDescriptor(t,r,e);void 0!==s&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,r){return{get(){return this[e]},set(s){const o=this[t];this[e]=s,this.requestUpdate(t,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||m}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const r of e)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(a(t))}else void 0!==t&&e.push(a(t));return e}static _$Eh(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,r;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(r=t.hostConnected)||void 0===r||r.call(t))}removeController(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const r=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return s=r,o=this.constructor.elementStyles,e?s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((t=>{const e=document.createElement("style"),r=window.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=t.cssText,s.appendChild(e)})),r;var s,o}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$ES(t,e,r=m){var s,o;const i=this.constructor._$Eh(t,r);if(void 0!==i&&!0===r.reflect){const n=(null!==(o=null===(s=r.converter)||void 0===s?void 0:s.toAttribute)&&void 0!==o?o:p.toAttribute)(e,r.type);this._$Ei=t,null==n?this.removeAttribute(i):this.setAttribute(i,n),this._$Ei=null}}_$AK(t,e){var r,s,o;const i=this.constructor,n=i._$Eu.get(t);if(void 0!==n&&this._$Ei!==n){const t=i.getPropertyOptions(n),a=t.converter,l=null!==(o=null!==(s=null===(r=a)||void 0===r?void 0:r.fromAttribute)&&void 0!==s?s:"function"==typeof a?a:null)&&void 0!==o?o:p.fromAttribute;this._$Ei=n,this[n]=l(e,t.type),this._$Ei=null}}requestUpdate(t,e,r){let s=!0;void 0!==t&&(((r=r||this.constructor.getPropertyOptions(t)).hasChanged||u)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===r.reflect&&this._$Ei!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,r))):s=!1),!this.isUpdatePending&&s&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(r)):this._$EU()}catch(s){throw e=!1,this._$EU(),s}e&&this._$AE(r)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),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._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$EC=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
|
|
13
|
+
/**
|
|
14
|
+
* @license
|
|
15
|
+
* Copyright 2017 Google LLC
|
|
16
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
+
*/
|
|
18
|
+
var b;g.finalized=!0,g.elementProperties=new Map,g.elementStyles=[],g.shadowRootOptions={mode:"open"},null==d||d({ReactiveElement:g}),(null!==(l=globalThis.reactiveElementVersions)&&void 0!==l?l:globalThis.reactiveElementVersions=[]).push("1.3.2");const f=globalThis.trustedTypes,v=f?f.createPolicy("lit-html",{createHTML:t=>t}):void 0,y=`lit$${(Math.random()+"").slice(9)}$`,w="?"+y,x=`<${w}>`,_=document,k=(t="")=>_.createComment(t),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,$=t=>{var e;return P(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])},C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,S=/-->/g,O=/>/g,E=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,z=/'/g,j=/"/g,D=/^(?:script|style|textarea|title)$/i,L=(T=1,(t,...e)=>({_$litType$:T,strings:t,values:e})),M=Symbol.for("lit-noChange"),N=Symbol.for("lit-nothing"),F=new WeakMap,I=_.createTreeWalker(_,129,null,!1),R=(t,e)=>{const r=t.length-1,s=[];let o,i=2===e?"<svg>":"",n=C;for(let l=0;l<r;l++){const e=t[l];let r,a,c=-1,h=0;for(;h<e.length&&(n.lastIndex=h,a=n.exec(e),null!==a);)h=n.lastIndex,n===C?"!--"===a[1]?n=S:void 0!==a[1]?n=O:void 0!==a[2]?(D.test(a[2])&&(o=RegExp("</"+a[2],"g")),n=E):void 0!==a[3]&&(n=E):n===E?">"===a[0]?(n=null!=o?o:C,c=-1):void 0===a[1]?c=-2:(c=n.lastIndex-a[2].length,r=a[1],n=void 0===a[3]?E:'"'===a[3]?j:z):n===j||n===z?n=E:n===S||n===O?n=C:(n=E,o=void 0);const d=n===E&&t[l+1].startsWith("/>")?" ":"";i+=n===C?e+x:c>=0?(s.push(r),e.slice(0,c)+"$lit$"+e.slice(c)+y+d):e+y+(-2===c?(s.push(void 0),l):d)}const a=i+(t[r]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==v?v.createHTML(a):a,s]};var T;class V{constructor({strings:t,_$litType$:e},r){let s;this.parts=[];let o=0,i=0;const n=t.length-1,a=this.parts,[l,c]=R(t,e);if(this.el=V.createElement(l,r),I.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(s=I.nextNode())&&a.length<n;){if(1===s.nodeType){if(s.hasAttributes()){const t=[];for(const e of s.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(y)){const r=c[i++];if(t.push(e),void 0!==r){const t=s.getAttribute(r.toLowerCase()+"$lit$").split(y),e=/([.?@])?(.*)/.exec(r);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?K:"?"===e[1]?Z:"@"===e[1]?Y:H})}else a.push({type:6,index:o})}for(const e of t)s.removeAttribute(e)}if(D.test(s.tagName)){const t=s.textContent.split(y),e=t.length-1;if(e>0){s.textContent=f?f.emptyScript:"";for(let r=0;r<e;r++)s.append(t[r],k()),I.nextNode(),a.push({type:2,index:++o});s.append(t[e],k())}}}else if(8===s.nodeType)if(s.data===w)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(y,t+1));)a.push({type:7,index:o}),t+=y.length-1}o++}}static createElement(t,e){const r=_.createElement("template");return r.innerHTML=t,r}}function U(t,e,r=t,s){var o,i,n,a;if(e===M)return e;let l=void 0!==s?null===(o=r._$Cl)||void 0===o?void 0:o[s]:r._$Cu;const c=A(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(i=null==l?void 0:l._$AO)||void 0===i||i.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,r,s)),void 0!==s?(null!==(n=(a=r)._$Cl)&&void 0!==n?n:a._$Cl=[])[s]=l:r._$Cu=l),void 0!==l&&(e=U(t,l._$AS(t,e.values),l,s)),e}class B{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:r},parts:s}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:_).importNode(r,!0);I.currentNode=o;let i=I.nextNode(),n=0,a=0,l=s[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new q(i,i.nextSibling,this,t):1===l.type?e=new l.ctor(i,l.name,l.strings,this,t):6===l.type&&(e=new Q(i,this,t)),this.v.push(e),l=s[++a]}n!==(null==l?void 0:l.index)&&(i=I.nextNode(),n++)}return o}m(t){let e=0;for(const r of this.v)void 0!==r&&(void 0!==r.strings?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class q{constructor(t,e,r,s){var o;this.type=2,this._$AH=N,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=s,this._$Cg=null===(o=null==s?void 0:s.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=U(this,t,e),A(t)?t===N||null==t||""===t?(this._$AH!==N&&this._$AR(),this._$AH=N):t!==this._$AH&&t!==M&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):$(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==N&&A(this._$AH)?this._$AA.nextSibling.data=t:this.k(_.createTextNode(t)),this._$AH=t}T(t){var e;const{values:r,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=V.createElement(s.h,this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.m(r);else{const t=new B(o,this),e=t.p(this.options);t.m(r),this.k(e),this._$AH=t}}_$AC(t){let e=F.get(t.strings);return void 0===e&&F.set(t.strings,e=new V(t)),e}S(t){P(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,s=0;for(const o of t)s===e.length?e.push(r=new q(this.M(k()),this.M(k()),this,this.options)):r=e[s],r._$AI(o),s++;s<e.length&&(this._$AR(r&&r._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var r;for(null===(r=this._$AP)||void 0===r||r.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class H{constructor(t,e,r,s,o){this.type=1,this._$AH=N,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=N}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,r,s){const o=this.strings;let i=!1;if(void 0===o)t=U(this,t,e,0),i=!A(t)||t!==this._$AH&&t!==M,i&&(this._$AH=t);else{const s=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=U(this,s[r+n],e,n),a===M&&(a=this._$AH[n]),i||(i=!A(a)||a!==this._$AH[n]),a===N?t=N:t!==N&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}i&&!s&&this.C(t)}C(t){t===N?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class K extends H{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===N?void 0:t}}const W=f?f.emptyScript:"";class Z extends H{constructor(){super(...arguments),this.type=4}C(t){t&&t!==N?this.element.setAttribute(this.name,W):this.element.removeAttribute(this.name)}}class Y extends H{constructor(t,e,r,s,o){super(t,e,r,s,o),this.type=5}_$AI(t,e=this){var r;if((t=null!==(r=U(this,t,e,0))&&void 0!==r?r:N)===M)return;const s=this._$AH,o=t===N&&s!==N||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==N&&(s===N||o);o&&this.element.removeEventListener(this.name,this,s),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,r;"function"==typeof this._$AH?this._$AH.call(null!==(r=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==r?r:this.element,t):this._$AH.handleEvent(t)}}class Q{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}}const G={L:"$lit$",P:y,V:w,I:1,N:R,R:B,j:$,D:U,H:q,F:H,O:Z,W:Y,B:K,Z:Q},J=window.litHtmlPolyfillSupport;
|
|
19
|
+
/**
|
|
20
|
+
* @license
|
|
21
|
+
* Copyright 2017 Google LLC
|
|
22
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
+
*/
|
|
24
|
+
var X,tt;null==J||J(V,q),(null!==(b=globalThis.litHtmlVersions)&&void 0!==b?b:globalThis.litHtmlVersions=[]).push("2.2.3");class et extends g{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const r=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=r.firstChild),r}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,r)=>{var s,o;const i=null!==(s=null==r?void 0:r.renderBefore)&&void 0!==s?s:e;let n=i._$litPart$;if(void 0===n){const t=null!==(o=null==r?void 0:r.renderBefore)&&void 0!==o?o:null;i._$litPart$=n=new q(e.insertBefore(k(),t),t,void 0,null!=r?r:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return M}}et.finalized=!0,et._$litElement$=!0,null===(X=globalThis.litElementHydrateSupport)||void 0===X||X.call(globalThis,{LitElement:et});const rt=globalThis.litElementPolyfillSupport;null==rt||rt({LitElement:et}),(null!==(tt=globalThis.litElementVersions)&&void 0!==tt?tt:globalThis.litElementVersions=[]).push("3.2.0");
|
|
25
|
+
/**
|
|
26
|
+
* @license
|
|
27
|
+
* Copyright 2017 Google LLC
|
|
28
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
|
+
*/
|
|
30
|
+
const st=t=>e=>{return"function"==typeof e?(r=t,s=e,window.customElements.define(r,s),s):((t,e)=>{const{kind:r,elements:s}=e;return{kind:r,elements:s,finisher(e){window.customElements.define(t,e)}}})(t,e);
|
|
31
|
+
/**
|
|
32
|
+
* @license
|
|
33
|
+
* Copyright 2017 Google LLC
|
|
34
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
35
|
+
*/var r,s},ot=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?__spreadProps(__spreadValues({},e),{finisher(r){r.createProperty(e.key,t)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}};function it(t){return(e,r)=>{return void 0!==r?(s=t,o=r,void e.constructor.createProperty(o,s)):ot(t,e);var s,o}}
|
|
36
|
+
/**
|
|
37
|
+
* @license
|
|
38
|
+
* Copyright 2017 Google LLC
|
|
39
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
40
|
+
*/function nt(t){return it(__spreadProps(__spreadValues({},t),{state:!0}))}
|
|
41
|
+
/**
|
|
42
|
+
* @license
|
|
43
|
+
* Copyright 2017 Google LLC
|
|
44
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
45
|
+
*/const at=({finisher:t,descriptor:e})=>(r,s)=>{var o;if(void 0===s){const s=null!==(o=r.originalKey)&&void 0!==o?o:r.key,i=null!=e?{kind:"method",placement:"prototype",key:s,descriptor:e(r.key)}:__spreadProps(__spreadValues({},r),{key:s});return null!=t&&(i.finisher=function(e){t(e,s)}),i}{const o=r.constructor;void 0!==e&&Object.defineProperty(r,s,e(s)),null==t||t(o,s)}}
|
|
46
|
+
/**
|
|
47
|
+
* @license
|
|
48
|
+
* Copyright 2017 Google LLC
|
|
49
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
50
|
+
*/;function lt(t,e){return at({descriptor:r=>{const s={get(){var e,r;return null!==(r=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==r?r:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof r?Symbol():"__"+r;s.get=function(){var r,s;return void 0===this[e]&&(this[e]=null!==(s=null===(r=this.renderRoot)||void 0===r?void 0:r.querySelector(t))&&void 0!==s?s:null),this[e]}}return s}})}
|
|
51
|
+
/**
|
|
52
|
+
* @license
|
|
53
|
+
* Copyright 2021 Google LLC
|
|
54
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
55
|
+
*/var ct;const ht=null!=(null===(ct=window.HTMLSlotElement)||void 0===ct?void 0:ct.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function dt(t){const{slot:e,selector:r}=null!=t?t:{};return at({descriptor:s=>({get(){var s;const o="slot"+(e?`[name=${e}]`:":not([name])"),i=null===(s=this.renderRoot)||void 0===s?void 0:s.querySelector(o),n=null!=i?ht(i,t):[];return r?n.filter((t=>t.matches(r))):n},enumerable:!0,configurable:!0})})}
|
|
56
|
+
/**
|
|
57
|
+
* @license
|
|
58
|
+
* Copyright 2017 Google LLC
|
|
59
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
60
|
+
*/function pt(t,e,r){let s,o=t;return"object"==typeof t?(o=t.slot,s=t):s={flatten:e},r?dt({slot:o,flatten:e,selector:r}):at({descriptor:t=>({get(){var t,e;const r="slot"+(o?`[name=${o}]`:":not([name])"),i=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(r);return null!==(e=null==i?void 0:i.assignedNodes(s))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}function ut(t){return"object"==typeof t&&null!=t}const mt=class{constructor(){if(null!=mt.instance)throw"Singleton / use getInstance";mt.instance=this,this.publishers=new Map}static getInstance(){return null==mt.instance?new mt:mt.instance}static get(t){return mt.getInstance().get(t)}static delete(t){return mt.getInstance().delete(t)}get(t){return this.publishers.has(t)||this.publishers.set(t,new bt({})),this.publishers.get(t)}set(t,e){this.publishers.set(t,e)}delete(t){if(!this.publishers.has(t))return!1;this.publishers.get(t),this.publishers.delete(t)}};let gt=mt;__publicField(gt,"instance",null);class bt extends class{constructor(t,e=null){for(this._proxies_=new Map,this._value_=t,this._invalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this.parent=e,this.root=this;this.root.parent;)this.root=this.root.parent}delete(){for(let t of this._proxies_.values())t.delete();this._invalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear()}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(t=!1){this._mutationListeners_.forEach((t=>t())),t||this.parent&&this.parent._publishInternalMutation_()}_publishAssignement_(t=!1){this._assignListeners_.forEach((t=>t(this.get()))),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach((t=>t()))}_publishDynamicFilling_(t,e){this._fillListeners_.forEach((r=>{r[t]!==e&&(r[t]=e)})),this._publishTemplateFilling_(t,e)}_publishTemplateFilling_(t,e){this._templateFillListeners_.forEach((r=>{let s=Object.getOwnPropertyDescriptor(r,t);s&&!s.set||(r.propertyMap&&r.propertyMap[t]&&(t=r.propertyMap[t]),void 0!==r[t]&&r[t]!==e&&(r[t]=e))}))}onAssign(t){"function"==typeof t&&(this._assignListeners_.add(t),t(this.get()))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){"function"==typeof t&&this._invalidateListeners_.add(t)}offInvalidate(t){this._invalidateListeners_.delete(t)}invalidate(t){this._publishInvalidation_()}onInternalMutation(t){"function"==typeof t&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){this._mutationListeners_.delete(t)}startTemplateFilling(t){for(var e in this._templateFillListeners_.add(t),this._value_){const r=this._value_[e];t.propertyMap&&t.propertyMap[e]&&(e=t.propertyMap[e]),void 0!==t[e]&&t[e]!==r&&(t[e]=r)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){for(var e in this._fillListeners_.add(t),this._value_){const r=this._value_[e];t[e]!==r&&(t[e]=r)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}set(t,e=!1){if(this._value_===t)return!0;if(this._value_.hasOwnProperty("__value")&&t.hasOwnProperty("__value")&&this._value_.__value===t.__value)return!0;this._value_=t;if(this._value_.hasOwnProperty("__value"))return this._publishAssignement_(e),!0;if(Array.from(this._proxies_.keys()).forEach((t=>{this._value_[t]||!this._proxies_.has(t)||this._proxies_.get(t).hasListener()||this._proxies_.delete(t)})),ut(this._value_))for(let r in this._value_){let e=t[r],s=ut(e)?e:{__value:e};if(!this._proxies_.has(r)){let t=new bt({},this);this._proxies_.set(r,t,!0),t._proxies_.set("_parent_",this)}this._proxies_.get(r).set(s,!0),this._publishDynamicFilling_(r,e)}return this._publishAssignement_(),!0}get(){if(this._value_.hasOwnProperty("__value")){let t=this._value_.__value;return null!=t?t:null}return this._value_}}{constructor(t,e=null){super(t,e);let r=this,s=new Proxy(this,{get:function(t,e){if(["invalidate","onInvalidate","offInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_value_","_lockInternalMutationPublishing_"].includes(e))return r[e];if(!r._proxies_.has(e)){let t=r._value_[e],o=new bt(ut(t)?t:{__value:t},r);o._proxies_.set("_parent_",s),r._proxies_.set(e,o)}return r._proxies_.get(e)},set:function(t,e,o){if("_value_"==e)return t._value_=o,t._value_;if(!r._proxies_.has(e)){let t=new bt({},r);t._proxies_.set("_parent_",s),r._proxies_.set(e,t)}return r._value_[e]!==o&&(r._value_[e]=o,r._publishDynamicFilling_(e,o),r._proxies_.get(e).set(ut(o)?o:{__value:o})),r._proxies_.get(e)},deleteProperty:function(t,e){return r._publishDynamicFilling_(e,null),r._proxies_.delete(e),delete r._value_[e]},enumerate:function(t,e){return r._value_.keys()},has:function(t,e){return e in r._value_&&"_lockInternalMutationPublishing_"!=e},defineProperty:function(t,e,s){return s&&"value"in s&&(r._value_[e]=s.value),r._value_},getOwnPropertyDescriptor:function(t,e){return r._value_[e],{enumerable:!0,configurable:!0}},ownKeys:function(t){return r._value_.__value?Object.keys(this._value_.__value):Object.keys(r._value_)}});return s}}"undefined"!=typeof module&&(module.exports={Publisher:bt,PublisherManager:gt});class ft{static getLanguage(){return document.getElementsByTagName("html")[0].getAttribute("lang")}static getCookies(){return document.cookie.split(";").reduce(((t,e)=>{const r=e.indexOf("=");return t[e.substring(0,r).trim()]=e.substring(r+1),t}),{})}static getAncestorAttributeValue(t,e){for(;!t.hasAttribute||!t.hasAttribute(e);){if(!(t.parentNode||t.host))break;t=t.parentNode||t.host}return t.hasAttribute?t.getAttribute(e):null}}const vt=class{constructor(t){this.serviceURL=t.serviceURL,this.serviceURL||(this.serviceURL=document.location.origin),this.userName=t.userName,this.password=t.password,this.token=t.token,this.tokenProvider=t.tokenProvider}async auth(){if(this.token)return;if(vt.tokens.has(this.serviceURL))return void(this.token=vt.tokens.get(this.serviceURL));if(!this.userName||!this.password||!this.tokenProvider)return;let t={Authorization:"Basic "+window.btoa(unescape(encodeURIComponent(this.userName+":"+this.password)))},e=await fetch(this.computeURL(this.tokenProvider),{headers:t});try{let t=await e.json();this.token=t.token,vt.tokens.set(this.serviceURL,this.token)}catch(r){}}async get(t,e){let r=await this.createHeaders(e);const s=this.computeURL(t);if(!vt.loadingGetPromises.has(s)){let t=new Promise((async t=>{let e=await fetch(s,{headers:r});try{let r=await e.json();r._sonic_http_response_=e,t(r)}catch(o){t({_sonic_http_response_:e})}}));vt.loadingGetPromises.set(s,t)}let o=await vt.loadingGetPromises.get(s);return vt.loadingGetPromises.delete(s),o}async createHeaders(t){await this.auth();let e={};return this.token&&(e.Authorization="Bearer "+this.token),e.credentials="include",e["Accept-Language"]=ft.getLanguage(),t&&Object.assign(e,t),e}computeURL(t){return(this.serviceURL+"/"+t).replace(/([^(https?\:)])\/{2,}/g,"$1/")}async send(t,e,r="POST",s){let o=await this.createHeaders(s);o.Accept="application/json",o["Content-Type"]="application/json";let i=await fetch(this.computeURL(t),{headers:o,method:r,body:JSON.stringify(e)});try{let t=await i.json();return t._sonic_http_response_=i,t}catch(n){return{_sonic_http_response_:i}}}async submitFormData(t,e,r="POST",s){let o=await this.createHeaders(s);o.Accept="application/json";let i=new FormData;for(let l in e)i.set(l,e[l]);let n=await fetch(this.computeURL(t),{headers:o,method:r,body:i});try{let t=await n.json();return t._sonic_http_response_=n,t}catch(a){return{_sonic_http_response_:n}}}async put(t,e,r){return this.send(t,e,"PUT",r)}async post(t,e,r){return this.send(t,e,"POST",r)}async delete(t,e,r){return this.send(t,e,"delete",r)}};let yt=vt;yt.loadingGetPromises=new Map,yt.tokens=new Map;class wt{static ucFirst(t){return"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.substring(1)}static js(t){try{return Function("return "+t)()}catch(e){return""}}}const xt=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(xt.observedElements.keys()).forEach((t=>xt.unObserve(t))))}static observe(t){if(!t)return;if(!xt.enabled)return;if(xt.observedElements.has(t))return;let e=new MutationObserver(xt.onMutation),r={childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-bind"]};e.observe(t,r),t.querySelectorAll("[data-bind]").forEach((t=>xt.addPublisherListeners(t))),xt.observedElements.set(t,e)}static unObserve(t){if(!t)return;let e=this.observedElements.get(t);e&&(e.disconnect(),t.querySelectorAll("[data-bind]").forEach((t=>xt.removePublisherListeners(t))))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&xt.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach((t=>xt.addPublisherListeners(t))):t.childNodes.forEach((t=>xt.onAdded(t)))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&xt.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach((t=>xt.removePublisherListeners(t))):t.childNodes.forEach((t=>xt.onRemoved(t)))}static onMutation(t){for(let s of t)switch(s.type){case"attributes":xt.addPublisherListeners(s.target);break;case"childList":var e=s.addedNodes,r=s.removedNodes;e.forEach((t=>{xt.onAdded(t)})),r.forEach((t=>{xt.onRemoved(t)}))}}static removePublisherListeners(t){let e=xt.publisherListeners.get(t);e&&(xt.publisherListeners.delete(t),e.forEach((t=>{t.publisher.offAssign(t.onAssign)})))}static getVariablesDescriptor(t){let e=t.match(/(\$(?:\w+\\?\.?)+)/g);return e=e?e.map((t=>t.replace("$",""))):[t],e=e.filter((t=>t.length>0)),{expression:t.replace("\\",""),variables:e.map((t=>t.split(/\b\.\b/).map((t=>t.replace("\\","")))))}}static getDataBindItems(t){return Array.from(t.attributes).filter((t=>0==t.name.indexOf("::"))).map((t=>({propertyToUpdate:t.name.substring(2).replace(/\-((html)|\w)/g,(t=>t.substring(1).toUpperCase())),bindedVariablesDescriptor:xt.getVariablesDescriptor(t.value)})))}static getSubPublisher(t,e){for(let r of e)"_self_"!=r&&(t=t[r]);return t}static addPublisherListeners(t){xt.removePublisherListeners(t);let e=t,r=ft.getAncestorAttributeValue(e.parentNode||e.host||e,"dataProvider");if(!r)return;let s=gt.getInstance().get(r),o=xt.getDataBindItems(t),i=[];o.forEach((e=>{let r=e.bindedVariablesDescriptor,o=e.propertyToUpdate;for(let n of r.variables){let e=n,a=s;a=xt.getSubPublisher(s,e);let l=t,c={publisher:a,onAssign:()=>{let t=r.variables.map((t=>xt.getSubPublisher(s,t).get())),e=r.expression,i=!1;if(1==t.length&&r.variables[0].join(".")==e.substring(1)){let e=t[0];return null===e&&(e=""),void(l[o]=e)}for(let s=0;s<t.length;s++){let o=t[s],n=r.variables[s];null===o&&(i=!0,o=void 0),e=e.replace("$"+n.join("."),o)}if(-1!=e.indexOf("|")){let t=e.indexOf("|");if(0==t)e=wt.js(e.substring(1));else{let r=e.substring(0,t),s=e.substring(t+1),o=wt;e=i?"":o[r]?o[r](s):e}}else e=i?"":e;l[o]=e}};a.onAssign(c.onAssign),i.push(c)}})),xt.publisherListeners.set(t,i)}};let _t=xt;_t.observedElements=new Map,_t.enabled=!0,_t.publisherListeners=new Map,_t.observe(document.documentElement);let kt=window;kt.SonicDataBindObserver||(kt.SonicDataBindObserver=_t);class At{static shallowEqual(t,e){const r=Object.keys(t),s=Object.keys(e);if(r.length!==s.length)return!1;for(let o of r)if(t[o]!==e[o])return!1;return!0}static deepEqual(t,e){const r=Object.keys(t),s=Object.keys(e);if(r.length!==s.length)return!1;for(const o of r){const r=t[o],s=e[o],i=At.isObject(r)&&At.isObject(s);if(i&&!At.deepEqual(r,s)||!i&&r!==s)return!1}return!0}static isObject(t){return null!=t&&"object"==typeof t}static isUndefindOrNull(t){return null==t}static traverse(t,e,r=!1){for(let s of e){let e=t[s];if(void 0===e)return;t=r&&At.isObject(e)?Object.assign(Array.isArray(e)?[]:{},t,e):t[s]}return t}}var Pt=Object.defineProperty,$t=Object.getOwnPropertyDescriptor,Ct=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?$t(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Pt(e,r,i),i};let St=!1,Ot=new Set;const Et=t=>{const e=class extends t{constructor(...t){super(),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.defferedDebug=null,this.debug=null,this.onAssign=null,this.args=t}hasAncestorAttribute(t){return null!=this.getAncestorAttributeValue(t)}getAncestorAttributeValue(t){return ft.getAncestorAttributeValue(this,t)}get props(){return this.publisher?this.publisher.get():this._props}set props(t){"string"==typeof t&&["{","["].includes(t.trim().charAt(0))&&(t=JSON.parse(t)),null!=t&&""!==t||(t={}),this.publisher||this.initPublisher(),this._props=t,this.publisher&&this.publisher.set(t),this.requestUpdate()}updated(t){super.updated(t),this.shadowRoot?0==this.shadowRoot.children.length?this.style.display="none":this.style.removeProperty("display"):0==this.children.length?this.style.display="none":this.style.removeProperty("display")}connectedCallback(){if(this.hasAttribute("lazyRendering")){let t={root:null,rootMargin:Math.max(.1*window.innerWidth,.1*window.innerHeight)+"px"},e=!0;new IntersectionObserver((t=>{for(const r of t)e&&r.isIntersecting&&(e=!1,this.initWording(),this.initPublisher())}),t).observe(this)}else this.initWording(),this.initPublisher();this.addDebugger(),super.connectedCallback(),e.instanceCounter++}disconnectedCallback(){this.removeDebugger(),super.disconnectedCallback(),this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate())),this.wordingPublisher&&this.wordingPublisher.stopTemplateFilling(this),this.onAssign&&this.publisher.offAssign(this.onAssign)}addDebugger(){if(this.hasAttribute("debug")&&!this.defferedDebug){if(!this.debug){this.debug=document.createElement("div");let t=this.debug.style;t.position="fixed",t.top="0",t.right="0",t.margin="auto",t.borderRadius=".7rem",t.backgroundColor="#0f1729",t.color="#c5d4f9",t.padding="16px 16px",t.margin="16px 16px",t.boxShadow="0 10px 30px -18px rgba(0,0,0,.3)",t.overflowY="auto",t.zIndex="99999999",t.maxHeight="calc(100vh - 32px)",t.fontFamily="Consolas, monospace",t.maxWidth="50vw",t.fontSize="12px",t.minWidth="300px",t.overflowWrap="break-word"}if(this.addEventListener("click",(t=>{t.ctrlKey&&(t.preventDefault(),St=!St)})),this.dataProvider){window[this.dataProvider]=this.publisher}this.addEventListener("mouseover",(()=>{St||this.removeDebugger(),document.body.appendChild(this.debug),Ot.add(this.debug)})),this.addEventListener("mouseout",(()=>{St||this.removeDebugger()})),this.publisher.onInternalMutation((()=>{this.debug.innerHTML=`🤖 DataProvider : "<b style="font-weight:700;color:#fff">${this.dataProvider}</b>"<br><div style="font-size:10px;border-top:1px dashed;margin-top:5px;padding-left:23px;opacity:.6;padding-top:5px">Variable disponible dans la console<br>ctrl + Clique : épingler / désépingler</div><pre style="margin-top:10px;background:0 0;padding:0;font-size:inherit;color:inherit">${JSON.stringify(this.publisher.get(),null," ")}</pre>`}))}}removeDebugger(){Ot.forEach((t=>{document.body.contains(t)&&document.body.removeChild(t)})),Ot=new Set}getApiConfiguration(){const t=this.getAncestorAttributeValue("token");let e=this.getAncestorAttributeValue("serviceURL"),r=null,s=null,o=null;return t||(r=this.getAncestorAttributeValue("userName"),s=this.getAncestorAttributeValue("password"),o=this.getAncestorAttributeValue("tokenProvider")),{serviceURL:e,token:t,userName:r,password:s,tokenProvider:o}}async initWording(){let t=!1;const e=Object.getOwnPropertyNames(this.constructor.prototype);for(let i of e)if(0==i.indexOf("wording_")){t=!0;break}if(!t)return;let r=gt.getInstance().get("sonic-wording"),s=this.getAncestorAttributeValue("wordingProvider");const o=new yt(this.getApiConfiguration());if(s){let t=[];for(let s of e)if(0==s.indexOf("wording_")){let e=s.substring(8);r.get()[s]||(r[s]="...",t.push(e))}if(t.length>0){let e=await o.post(s,{labels:t});for(let t in e)r["wording_"+t]=e[t]}r.startTemplateFilling(this),this.wordingPublisher=r}}createRenderRoot(){if(""===this.noShadowDom||""===this.getAttribute("noShadowDom"))return this;let t=super.createRenderRoot();return _t.observe(t),t}initPublisher(){if(!document)return;this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate),this.onAssign&&this.publisher.offAssign(this.onAssign));const t=gt.getInstance();this.dataProvider||(this.dataProvider=this.getAncestorAttributeValue("dataProvider"));let r=this.dataProvider;if(!r&&this._props&&(this.dataProvider=r="__subscriber__"+e.instanceCounter),r){this.bindPublisher&&t.set(r,this.bindPublisher());let e=t.get(r);if(this.dataProvider=r,this.hasAttribute("subDataProvider")){let s=this.getAttribute("subDataProvider");this.dataProvider=r+"/"+s,e=At.traverse(e,s.split(".")),t.set(this.dataProvider,e),this.publisher=e}this.publisher=e}this.publisher&&(this.onAssign=()=>{this.requestUpdate()},this.publisher.onAssign(this.onAssign),this.noAutoFill||this.publisher.startTemplateFilling(this),this.renderOnPropsInternalChange&&this.publisher.onInternalMutation(this.requestUpdate),this._props&&this.publisher.set(this._props))}};let r=e;return r.instanceCounter=0,Ct([it({type:Boolean})],r.prototype,"noAutoFill",2),Ct([it({type:Boolean})],r.prototype,"forceAutoFill",2),Ct([it({type:Object})],r.prototype,"propertyMap",2),Ct([it({type:String,attribute:"data-title"})],r.prototype,"title",2),Ct([it({reflect:!0})],r.prototype,"dataProvider",2),Ct([it()],r.prototype,"bindPublisher",2),Ct([it()],r.prototype,"props",1),r};let zt=window;zt.SonicPublisherManager||(zt.SonicPublisherManager=gt);var jt=Object.defineProperty,Dt=Object.getOwnPropertyDescriptor;const Lt=t=>{class e extends t{constructor(){super(...arguments),this.templates=null,this.templateValueAttribute="data-value",this.templateList=[],this.templateParts={},this.templatePartsList=[]}connectedCallback(){let t=this.templates||[...this.querySelectorAll("template")];for(let e of t)e.hasAttribute(this.templateValueAttribute)&&(this.templateParts[e.getAttribute(this.templateValueAttribute)]=e,this.templatePartsList.push(e));this.templateList=t.filter((t=>!t.getAttribute("data-value"))),0==this.templateList.length&&(this.templateList=t),super.connectedCallback()}}return((t,e,r,s)=>{for(var o,i=s>1?void 0:s?Dt(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);s&&i&&jt(e,r,i)})([it({type:Array})],e.prototype,"templates",2),e};var Mt=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,Ft=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Nt(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Mt(e,r,i),i};let It=class extends(Et(Lt(et))){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=(new Date).getTime()/1e3,this.end_date=0,this.era="",this.year="numeric",this.month="short",this.day="2-digit",this.weekday="short",this.hour="2-digit",this.minute="2-digit",this.language="",this.renderIf=!0,this.startDateObject=new Date,this.endDateObject=new Date}get wording_billet_periode_validite(){return this._wording_billet_periode_validite}set wording_billet_periode_validite(t){this._wording_billet_periode_validite=t,this.duAu=this.wording_billet_periode_validite.split("%s").map((t=>t.trim())),this.duAu.pop(),this.requestUpdate()}connectedCallback(){this.wording_billet_periode_validite="Du %s au %s",this.pageLanguage=ft.getLanguage(),super.connectedCallback()}getDatesParts(t,e,r){let s=this.startDateObject;s.setTime(1e3*t);let o=null;if(e>0){let t=this.endDateObject;if(t.setTime(1e3*e),s.toJSON().substring(0,10)!=t.toJSON().substring(0,10)&&(delete r.hour,delete r.minute),o=new Intl.DateTimeFormat(this.language||this.pageLanguage,r).formatRangeToParts(s,t),this.designMode)for(let e of o)"literal"==e.type&&this.designMode&&","==e.value.trim()&&(e.hidden=!0);const i=s.getFullYear()==t.getFullYear()&&s.getMonth()==t.getMonth()&&s.getDate()==t.getDate();if(o.some((t=>"endRange"==t.source))&&!i){for(let t of o)if("literal"==t.type&&"shared"==t.source&&t.value.trim().length>0&&!i){t.value=" "+this.duAu[1]+" ",t.type="to";break}this.designMode||o.unshift({type:"from",value:this.duAu[0]+" ",source:"shared"})}}else{o=new Intl.DateTimeFormat(this.language||this.pageLanguage,r).formatToParts(s)}return o[0].value=wt.ucFirst(o[0].value),o=o.filter((t=>!0!==t.hidden)),o}render(){if(!this.renderIf)return N;if(this.date_string&&(this.date=new Date(this.date_string).getTime()/1e3),this.date&&(this.start_date=this.date),this.start_date_string&&(this.start_date=new Date(this.start_date_string).getTime()/1e3),this.end_date_string&&(this.end_date=new Date(this.end_date_string).getTime()/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}let t={weekday:this.weekday,year:this.year,month:this.month,day:this.day};this.hour&&(t.hour=this.hour),this.minute&&(t.minute=this.minute),this.era&&(t.era=this.era),this.time_zone&&(t.timeZone=this.time_zone);let e=this.getDatesParts(this.start_date,this.end_date,t);return L`${e.map((t=>{let e=this.templateParts[t.type];if(e){var r=document.importNode(e.content,!0);let s=r.children[0];return""==s.innerText.trim()&&(s.innerText=t.value),r}return L`<span class="${t.type}">${t.value}</span>`}))}`}};Ft([it()],It.prototype,"wording_billet_periode_validite",1),Ft([it({type:Boolean})],It.prototype,"designMode",2),Ft([it({type:String})],It.prototype,"time_zone",2),Ft([it({type:Number})],It.prototype,"date",2),Ft([it({type:String})],It.prototype,"date_string",2),Ft([it({type:String})],It.prototype,"start_date_string",2),Ft([it({type:String})],It.prototype,"end_date_string",2),Ft([it({type:Number})],It.prototype,"start_date",2),Ft([it({type:Number})],It.prototype,"end_date",2),Ft([it({type:String})],It.prototype,"era",2),Ft([it({type:String})],It.prototype,"year",2),Ft([it({type:String})],It.prototype,"month",2),Ft([it({type:String})],It.prototype,"day",2),Ft([it({type:String})],It.prototype,"weekday",2),Ft([it({type:String})],It.prototype,"hour",2),Ft([it({type:String})],It.prototype,"minute",2),Ft([it({type:String})],It.prototype,"language",2),Ft([it({type:Boolean})],It.prototype,"renderIf",2),It=Ft([st("sonic-date")],It);const Rt=n`:host([align=left]) .sonic-loader--inline{margin-left:0}:host([align=right]) .sonic-loader--inline{margin-left:auto;margin-right:0}.sonic-loader--inline{display:block;position:relative;width:80px;height:80px;margin:auto;z-index:20}.sonic-loader--inline div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:var(--sc-loader-bg);animation-timing-function:cubic-bezier(0,1,1,0)}.sonic-loader--inline div:nth-child(1){left:8px;animation:lds-ellipsis1 .6s infinite}.sonic-loader--inline div:nth-child(2){left:8px;animation:lds-ellipsis2 .6s infinite}.sonic-loader--inline div:nth-child(3){left:32px;animation:lds-ellipsis2 .6s infinite}.sonic-loader--inline div:nth-child(4){left:56px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0,0)}100%{transform:translate(24px,0)}}`,Tt=n`@keyframes sonic-loader--fixed{0%{transform:scale(0);opacity:0}5%{opacity:1}70%{opacity:90%}100%{transform:scale(1);opacity:0}}.sonic-loader--fixed{position:fixed;top:50%;left:50%;transform:transateY(-50%) translateX(-50%);z-index:999}.sonic-loader--fixed>div:nth-child(2){animation-delay:-.5s}.sonic-loader--fixed>div:nth-child(3){animation-delay:-.2s}.sonic-loader--fixed>div:nth-child(4){display:none!important}.sonic-loader--fixed>div{background-color:var(--sc-loader-bg);width:5rem;height:5rem;border-radius:100%;margin:2px;animation-fill-mode:both;position:absolute;top:0;opacity:0;margin:0;top:-2.5rem;left:-2.5rem;width:5rem;height:5rem;animation:sonic-loader--fixed 1s 0s linear infinite}`;var Vt=Object.defineProperty,Ut=Object.getOwnPropertyDescriptor,Bt=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Ut(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Vt(e,r,i),i};const qt="sonic-loader";let Ht=class extends et{constructor(){super(...arguments),this.mode="fixed"}static show(t){Ht.loader||(Ht.loader=document.createElement("sonic-loader"));let e=Ht.loader;t||(t={});let r=t;for(let s in r)e.setAttribute(s,r[s]);t.container||(t.container=document.querySelector("sonic-theme")||document.body,t.mode="fixed"),t.container.appendChild(e),Ht.callCounter++}static hide(){Ht.callCounter--,Ht.callCounter>0||Ht.loader&&Ht.loader.remove()}render(){return L`<div class="sonic-loader sonic-loader--${this.mode}"><div></div><div></div><div></div><div></div></div>`}};Ht.styles=[Rt,Tt,n`:host{--sc-loader-bg:var(--sc-primary, currentColor);pointer-events:none}.sonic-loader{opacity:0;animation:showLoader .5s .5s forwards}.sonic-loader--inline{animation-delay:0s}@keyframes showLoader{0%{opacity:0}100%{opacity:1}}`],Ht.callCounter=0,Bt([it({type:String})],Ht.prototype,"mode",2),Ht=Bt([st(qt)],Ht);try{customElements.define(qt,Ht)}catch(Fa){}
|
|
61
|
+
/**
|
|
62
|
+
* @license
|
|
63
|
+
* Copyright 2017 Google LLC
|
|
64
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
|
+
*/const Kt=1,Wt=2,Zt=t=>(...e)=>({_$litDirective$:t,values:e});class Yt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
66
|
+
/**
|
|
67
|
+
* @license
|
|
68
|
+
* Copyright 2020 Google LLC
|
|
69
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
70
|
+
*/const{H:Qt}=G,Gt=()=>document.createComment(""),Jt=(t,e,r)=>{var s;const o=t._$AA.parentNode,i=void 0===e?t._$AB:e._$AA;if(void 0===r){const e=o.insertBefore(Gt(),i),s=o.insertBefore(Gt(),i);r=new Qt(e,s,t,t.options)}else{const e=r._$AB.nextSibling,n=r._$AM,a=n!==t;if(a){let e;null===(s=r._$AQ)||void 0===s||s.call(r,t),r._$AM=t,void 0!==r._$AP&&(e=t._$AU)!==n._$AU&&r._$AP(e)}if(e!==i||a){let t=r._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,i),t=e}}}return r},Xt=(t,e,r=t)=>(t._$AI(e,r),t),te={},ee=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let r=t._$AA;const s=t._$AB.nextSibling;for(;r!==s;){const t=r.nextSibling;r.remove(),r=t}},re=(t,e,r)=>{const s=new Map;for(let o=e;o<=r;o++)s.set(t[o],o);return s},se=Zt(class extends Yt{constructor(t){if(super(t),t.type!==Wt)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let s;void 0===r?r=e:void 0!==e&&(s=e);const o=[],i=[];let n=0;for(const a of t)o[n]=s?s(a,n):n,i[n]=r(a,n),n++;return{values:i,keys:o}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,s]){var o;const i=t._$AH,{values:n,keys:a}=this.dt(e,r,s);if(!Array.isArray(i))return this.ut=a,n;const l=null!==(o=this.ut)&&void 0!==o?o:this.ut=[],c=[];let h,d,p=0,u=i.length-1,m=0,g=n.length-1;for(;p<=u&&m<=g;)if(null===i[p])p++;else if(null===i[u])u--;else if(l[p]===a[m])c[m]=Xt(i[p],n[m]),p++,m++;else if(l[u]===a[g])c[g]=Xt(i[u],n[g]),u--,g--;else if(l[p]===a[g])c[g]=Xt(i[p],n[g]),Jt(t,c[g+1],i[p]),p++,g--;else if(l[u]===a[m])c[m]=Xt(i[u],n[m]),Jt(t,i[p],i[u]),u--,m++;else if(void 0===h&&(h=re(a,m,g),d=re(l,p,u)),h.has(l[p]))if(h.has(l[u])){const e=d.get(a[m]),r=void 0!==e?i[e]:null;if(null===r){const e=Jt(t,i[p]);Xt(e,n[m]),c[m]=e}else c[m]=Xt(r,n[m]),Jt(t,i[p],r),i[e]=null;m++}else ee(i[u]),u--;else ee(i[p]),p++;for(;m<=g;){const e=Jt(t,c[g+1]);Xt(e,n[m]),c[m++]=e}for(;p<=u;){const t=i[p++];null!==t&&ee(t)}return this.ut=a,((t,e=te)=>{t._$AH=e})(t,c),M}}),oe=(t,e)=>{var r,s;const o=t._$AN;if(void 0===o)return!1;for(const i of o)null===(s=(r=i)._$AO)||void 0===s||s.call(r,e,!1),oe(i,e);return!0},ie=t=>{let e,r;do{if(void 0===(e=t._$AM))break;r=e._$AN,r.delete(t),t=e}while(0===(null==r?void 0:r.size))},ne=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(void 0===r)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),ce(e)}};
|
|
71
|
+
/**
|
|
72
|
+
* @license
|
|
73
|
+
* Copyright 2017 Google LLC
|
|
74
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
75
|
+
*/function ae(t){void 0!==this._$AN?(ie(this),this._$AM=t,ne(this)):this._$AM=t}function le(t,e=!1,r=0){const s=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(e)if(Array.isArray(s))for(let i=r;i<s.length;i++)oe(s[i],!1),ie(s[i]);else null!=s&&(oe(s,!1),ie(s));else oe(this,t)}const ce=t=>{var e,r,s,o;t.type==Wt&&(null!==(e=(s=t)._$AP)&&void 0!==e||(s._$AP=le),null!==(r=(o=t)._$AQ)&&void 0!==r||(o._$AQ=ae))};class he extends Yt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),ne(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,s;t!==this.isConnected&&(this.isConnected=t,t?null===(r=this.reconnected)||void 0===r||r.call(this):null===(s=this.disconnected)||void 0===s||s.call(this)),e&&(oe(this,t),ie(this))}setValue(t){if(void 0===this._$Ct.strings)this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const de=new WeakMap;let pe=0;const ue=new Map,me=new WeakSet,ge=()=>new Promise((t=>requestAnimationFrame(t))),be=[{opacity:0}],fe=[{opacity:0},{opacity:1}],ve=(t,e)=>{const r=t-e;return 0===r?void 0:r},ye=(t,e)=>{const r=t/e;return 1===r?void 0:r},we={left:(t,e)=>{const r=ve(t,e);return{value:r,transform:r&&`translateX(${r}px)`}},top:(t,e)=>{const r=ve(t,e);return{value:r,transform:r&&`translateY(${r}px)`}},width:(t,e)=>{const r=ye(t,e);return{value:r,transform:r&&`scaleX(${r})`}},height:(t,e)=>{const r=ye(t,e);return{value:r,transform:r&&`scaleY(${r})`}}},xe={duration:333,easing:"ease-in-out"},_e=["left","top","width","height","opacity","color","background"],ke=new WeakMap;const Ae=Zt(class extends he{constructor(t){if(super(t),this.t=null,this.i=null,this.o=!0,this.shouldLog=!1,t.type===Wt)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;null===(t=this.resolveFinished)||void 0===t||t.call(this),this.finished=new Promise((t=>{this.h=t}))}async resolveFinished(){var t;null===(t=this.h)||void 0===t||t.call(this),this.h=void 0}render(t){return N}getController(){return de.get(this.l)}isDisabled(){var t;return this.options.disabled||(null===(t=this.getController())||void 0===t?void 0:t.disabled)}update(t,[e]){var r;const s=void 0===this.l;return s&&(this.l=null===(r=t.options)||void 0===r?void 0:r.host,this.l.addController(this),this.element=t.element,ke.set(this.element,this)),this.optionsOrCallback=e,(s||"function"!=typeof e)&&this.u(e),this.render(e)}u(t){var e,r;t=null!=t?t:{};const s=this.getController();void 0!==s&&((t=__spreadValues(__spreadValues({},s.defaultOptions),t)).keyframeOptions=__spreadValues(__spreadValues({},s.defaultOptions.keyframeOptions),t.keyframeOptions)),null!==(e=(r=t).properties)&&void 0!==e||(r.properties=_e),this.options=t}v(){const t={},e=this.element.getBoundingClientRect(),r=getComputedStyle(this.element);return this.options.properties.forEach((s=>{var o;const i=null!==(o=e[s])&&void 0!==o?o:we[s]?void 0:r[s],n=Number(i);t[s]=isNaN(n)?i+"":n})),t}p(){let t,e=!0;return this.options.guard&&(t=this.options.guard(),e=((t,e)=>{if(Array.isArray(t)){if(Array.isArray(e)&&e.length===t.length&&t.every(((t,r)=>t===e[r])))return!1}else if(e===t)return!1;return!0})(t,this.m)),this.o=this.l.hasUpdated&&!this.isDisabled()&&!this.isAnimating()&&e&&this.element.isConnected,this.o&&(this.m=Array.isArray(t)?Array.from(t):t),this.o}hostUpdate(){var t;"function"==typeof this.optionsOrCallback&&this.u(this.optionsOrCallback()),this.p()&&(this.g=this.v(),this.t=null!==(t=this.t)&&void 0!==t?t:this.element.parentNode,this.i=this.element.nextSibling)}async hostUpdated(){if(!this.o||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await ge;const e=this.A(),r=this._(this.options.keyframeOptions,e),s=this.v();if(void 0!==this.g){const{from:r,to:o}=this.j(this.g,s,e);this.log("measured",[this.g,s,r,o]),t=this.calculateKeyframes(r,o)}else{const r=ue.get(this.options.inId);if(r){ue.delete(this.options.inId);const{from:o,to:i}=this.j(r,s,e);t=this.calculateKeyframes(o,i),t=this.options.in?[__spreadValues(__spreadValues({},this.options.in[0]),t[0]),...this.options.in.slice(1),t[1]]:t,pe++,t.forEach((t=>t.zIndex=pe))}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,r)}resetStyles(){var t;void 0!==this.S&&(this.element.setAttribute("style",null!==(t=this.S)&&void 0!==t?t:""),this.S=void 0)}commitStyles(){var t,e;this.S=this.element.getAttribute("style"),null===(t=this.webAnimation)||void 0===t||t.commitStyles(),null===(e=this.webAnimation)||void 0===e||e.cancel()}reconnected(){}async disconnected(){var t;if(!this.o)return;if(void 0!==this.options.id&&ue.set(this.options.id,this.g),void 0===this.options.out)return;if(this.prepare(),await ge(),null===(t=this.t)||void 0===t?void 0:t.isConnected){const t=this.i&&this.i.parentNode===this.t?this.i:null;if(this.t.insertBefore(this.element,t),this.options.stabilizeOut){const t=this.v();this.log("stabilizing out");const e=this.g.left-t.left,r=this.g.top-t.top;!("static"===getComputedStyle(this.element).position)||0===e&&0===r||(this.element.style.position="relative"),0!==e&&(this.element.style.left=e+"px"),0!==r&&(this.element.style.top=r+"px")}}const e=this._(this.options.keyframeOptions);await this.animate(this.options.out,e),this.element.remove()}prepare(){this.createFinished()}start(){var t,e;null===(e=(t=this.options).onStart)||void 0===e||e.call(t,this)}didFinish(t){var e,r;t&&(null===(r=(e=this.options).onComplete)||void 0===r||r.call(e,this)),this.g=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}A(){const t=[];for(let e=this.element.parentNode;e;e=null==e?void 0:e.parentNode){const r=ke.get(e);r&&!r.isDisabled()&&r&&t.push(r)}return t}get isHostRendered(){const t=me.has(this.l);return t||this.l.updateComplete.then((()=>{me.add(this.l)})),t}_(t,e=this.A()){const r=__spreadValues({},xe);return e.forEach((t=>Object.assign(r,t.options.keyframeOptions))),Object.assign(r,t),r}j(t,e,r){t=__spreadValues({},t),e=__spreadValues({},e);const s=r.map((t=>t.animatingProperties)).filter((t=>void 0!==t));let o=1,i=1;return void 0!==s&&(s.forEach((t=>{t.width&&(o/=t.width),t.height&&(i/=t.height)})),void 0!==t.left&&void 0!==e.left&&(t.left=o*t.left,e.left=o*e.left),void 0!==t.top&&void 0!==e.top&&(t.top=i*t.top,e.top=i*e.top)),{from:t,to:e}}calculateKeyframes(t,e,r=!1){var s;const o={},i={};let n=!1;const a={};for(const l in e){const r=t[l],c=e[l];if(l in we){const t=we[l];if(void 0===r||void 0===c)continue;const e=t(r,c);void 0!==e.transform&&(a[l]=e.value,n=!0,o.transform=`${null!==(s=o.transform)&&void 0!==s?s:""} ${e.transform}`)}else r!==c&&void 0!==r&&void 0!==c&&(n=!0,o[l]=r,i[l]=c)}return o.transformOrigin=i.transformOrigin=r?"center center":"top left",this.animatingProperties=a,n?[o,i]:void 0}async animate(t,e=this.options.keyframeOptions){this.start(),this.frames=t;let r=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),void 0!==t)){this.log("animate",[t,e]),r=!0,this.webAnimation=this.element.animate(t,e);const o=this.getController();null==o||o.add(this);try{await this.webAnimation.finished}catch(s){}null==o||o.remove(this)}return this.didFinish(r),r}isAnimating(){var t,e;return"running"===(null===(t=this.webAnimation)||void 0===t?void 0:t.playState)||(null===(e=this.webAnimation)||void 0===e?void 0:e.pending)}log(t,e){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,e)}});
|
|
76
|
+
/**
|
|
77
|
+
* @license
|
|
78
|
+
* Copyright 2017 Google LLC
|
|
79
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
80
|
+
*/class Pe extends Yt{constructor(t){if(super(t),this.it=N,t.type!==Wt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===N||null==t)return this.ft=void 0,this.it=t;if(t===M)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.ft;this.it=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Pe.directiveName="unsafeHTML",Pe.resultType=1;const $e=Zt(Pe);var Ce={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">\n<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"/>\n</svg>\n',"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">\n<path d="M7 12.5L10 15.5L17 8.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<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"/>\n</svg>\n',check:'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M5 13L9 17L19 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',"emoji-puzzled":'<?xml version="1.0" encoding="UTF-8"?><svg width="24px" height="24px" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="#000000"><path d="M2 12c0 5.523 4.477 10 10 10s10-4.477 10-10S17.523 2 12 2" stroke="#000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M11.5 15.5s1.5-2 4.5-2 4.5 2 4.5 2M3 4c0-2.754 4-2.754 4 0 0 1.967-2 1.64-2 4M5 11.01l.01-.011" stroke="#000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17.5 9a.5.5 0 110-1 .5.5 0 010 1zM10.5 9a.5.5 0 110-1 .5.5 0 010 1z" fill="#000" stroke="#000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>',"info-empty":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M12 11.5V16.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 7.51L12.01 7.49889" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<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"/>\n</svg>\n',loader:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-loader"><line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line></svg>',"more-horiz":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M18 12.5C18.2761 12.5 18.5 12.2761 18.5 12C18.5 11.7239 18.2761 11.5 18 11.5C17.7239 11.5 17.5 11.7239 17.5 12C17.5 12.2761 17.7239 12.5 18 12.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 12.5C12.2761 12.5 12.5 12.2761 12.5 12C12.5 11.7239 12.2761 11.5 12 11.5C11.7239 11.5 11.5 11.7239 11.5 12C11.5 12.2761 11.7239 12.5 12 12.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M6 12.5C6.27614 12.5 6.5 12.2761 6.5 12C6.5 11.7239 6.27614 11.5 6 11.5C5.72386 11.5 5.5 11.7239 5.5 12C5.5 12.2761 5.72386 12.5 6 12.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',"more-vert":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M12 12.5C12.2761 12.5 12.5 12.2761 12.5 12C12.5 11.7239 12.2761 11.5 12 11.5C11.7239 11.5 11.5 11.7239 11.5 12C11.5 12.2761 11.7239 12.5 12 12.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 18.5C12.2761 18.5 12.5 18.2761 12.5 18C12.5 17.7239 12.2761 17.5 12 17.5C11.7239 17.5 11.5 17.7239 11.5 18C11.5 18.2761 11.7239 18.5 12 18.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 6.5C12.2761 6.5 12.5 6.27614 12.5 6C12.5 5.72386 12.2761 5.5 12 5.5C11.7239 5.5 11.5 5.72386 11.5 6C11.5 6.27614 11.7239 6.5 12 6.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',"nav-arrow-down":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M6 9L12 15L18 9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',"warning-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">\n<path d="M12 7L12 13" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 17.01L12.01 16.9989" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<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"/>\n</svg>\n'}};const Se=new Map,Oe={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"},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"}};let Ee=!1;const ze=class{static registerIcons(t){const e=Ce;for(let r in t){const s=t[r],o=e[r]||{};for(let t in s)o[t]=s[t];e[r]=o}}};let je=ze;je.fontAwesomeNext={get:async t=>{let e=t.library,r=t.name||"";const s=Ce;var o,i;if("custom"==e&&(Ee||(Ee=!0,Oe.custom={},Oe.custom.url=null==(o=document.querySelector("[customIconLibraryPath]"))?void 0:o.getAttribute("customIconLibraryPath"),Oe.custom.defaultPrefix=null==(i=document.querySelector("[customIconDefaultPrefix]"))?void 0:i.getAttribute("customIconDefaultPrefix"))),e&&Oe[e]){let o=Oe[e],i=t.prefix||o.defaultPrefix,n=s[e]||{},a=i+"-"+r;if(n[a])return $e(n[a]);let l=o.url.replace("$prefix",i).replace("$name",r);if(n[a])return $e(n[a]);if(!Se.has(l)){let t=new Promise((async t=>{let e=await fetch(l);if(e.ok)try{t(await e.text())}catch(Fa){t(null)}else t(`<b title="Erreur ${e.status}">😶</b>`)}));Se.set(l,t)}let c=await Se.get(l);return Se.delete(l),n[a]=c,$e(c)}return $e(s.core[t.name]||"")}},je.default=ze.fontAwesomeNext;var De=Object.defineProperty,Le=Object.getOwnPropertyDescriptor,Me=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Le(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&De(e,r,i),i};const Ne="sonic-icon";let Fe=class extends et{constructor(){super(...arguments),this.iconText="",this._name="",this._prefix="",this._library=""}async updateIcon(){this.name&&(this.iconText=await je.default.get({name:this.name,prefix:this.prefix,library:this.library}),this.requestUpdate())}get name(){return this._name}set name(t){this._name=t,this.updateIcon()}get prefix(){return this._prefix}set prefix(t){this._prefix=t,this.updateIcon()}get library(){return this._library}set library(t){this._library=t,this.updateIcon()}render(){return this.name?(this.style.removeProperty("display"),this.iconText):(this.style.display="none",N)}};Fe.styles=n`:host{line-height:0;width:fit-content;height:fit-content;vertical-align:-.125em}svg{height:var(--sc-icon-size,1em);width:var(--sc-icon-size,1em)}svg:not([fill=none]){fill:currentColor}svg[fill=none]{stroke-width:2}:host([size="2xs"]) svg{--sc-icon-size:0.625em}:host([size=xs]) svg{--sc-icon-size:0.75em}:host([size=sm]) svg{--sc-icon-size:0.875em}:host([size=lg]) svg{--sc-icon-size:1.25em}:host([size=xl]) svg{--sc-icon-size:1.5em}:host([size="2xl"]) svg{--sc-icon-size:2em}:host([size="3xl"]) svg{--sc-icon-size:2.8em}`,Me([it({type:String})],Fe.prototype,"name",1),Me([it({type:String})],Fe.prototype,"prefix",1),Me([it({type:String})],Fe.prototype,"library",1),Fe=Me([st(Ne)],Fe);try{customElements.define(Ne,Fe)}catch(Fa){}
|
|
81
|
+
/**
|
|
82
|
+
* @license
|
|
83
|
+
* Copyright 2018 Google LLC
|
|
84
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
85
|
+
*/const Ie=t=>null!=t?t:N
|
|
86
|
+
/**
|
|
87
|
+
* @license
|
|
88
|
+
* Copyright 2018 Google LLC
|
|
89
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
90
|
+
*/,Re=Zt(class extends Yt{constructor(t){var e;if(super(t),t.type!==Kt||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,r)=>{const s=t[r];return null==s?e:e+`${r=r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(t,[e]){const{style:r}=t.element;if(void 0===this.ct){this.ct=new Set;for(const t in e)this.ct.add(t);return this.render(e)}this.ct.forEach((t=>{null==e[t]&&(this.ct.delete(t),t.includes("-")?r.removeProperty(t):r[t]="")}));for(const s in e){const t=e[s];null!=t&&(this.ct.add(s),s.includes("-")?r.setProperty(s,t):r[s]=t)}return M}}),Te=n`.custom-scroll{overflow:auto!important}.custom-scroll::-webkit-scrollbar{width:.5rem;height:.5rem;border:solid .15rem transparent;border-radius:var(--sc-rounded);background:0 0}.custom-scroll::-webkit-scrollbar-thumb{box-shadow:inset 0 0 2rem 2rem var(--sc-scrollbar-bg);border-radius:var(--sc-rounded);border:solid .15rem transparent}`;var Ve=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,Be=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Ue(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Ve(e,r,i),i};const qe={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty"};let He=class extends et{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 t=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(t)[this.id])return N}return this.visible?L`<div class="sonic-toast ${this.status} ${this.ghost?"ghost":""}"><button aria-label="Close" class="sonic-toast-close" @click="${()=>this.hide()}"><sonic-icon name="cancel" size="lg"></sonic-icon></button><div class="sonic-toast-content custom-scroll" style="max-height:${this.maxHeight}">${this.status&&L`<sonic-icon name="${qe[this.status]}" class="sonic-toast-icon" size="2xl"></sonic-icon>`}<div class="sonic-toast-text">${this.title?L`<div class="sonic-toast-title">${this.title}</div>`:""} ${this.text?$e(this.text):""}<slot></slot></div>${this.preserve?"":this.autoHide()}</div></div>`:N}hide(){if(this.closest("sonic-toast")||(this.visible=!1),this.dismissForever){const t=localStorage.getItem("sonic-toast-dismissed")||"{}",e=JSON.parse(t);e[this.id]=!0,localStorage.setItem("sonic-toast-dismissed",JSON.stringify(e))}this.dispatchEvent(new CustomEvent("hide",{bubbles:!0}))}show(){this.visible=!0}autoHide(){setTimeout((()=>{this.hide()}),4200)}};He.styles=[Te,n`*{box-sizing:border-box}:host{display:block;pointer-events:auto;position:relative;--sc-toast-status-color:transparent;--sc-toast-color:var(--sc-base-content);--sc-toast-bg:var(--sc-base);--sc-toast-rounded:var(--sc-rounded-md);--sc-toast-shadow:var(--sc-shadow-lg)}.fixed-area{position:fixed;bottom:1.25rem;right:1.25rem;z-index:999;display:flex;flex-direction:column-reverse}.sonic-toast{position:relative;pointer-events:auto;overflow:hidden;line-height:1.25;color:var(--sc-toast-color);box-shadow:var(--sc-toast-shadow);border-radius:var(--sc-toast-rounded);background:var(--sc-toast-bg)}.sonic-toast-content{padding:1em 2.5rem 1em 1em;display:flex;gap:.5rem;overflow:auto;position:relative}.sonic-toast-text{align-self:center;margin-top:auto;margin-bottom:auto;max-width:70ch;line-height:1.2}.sonic-toast-text a,::slotted(a:not(.btn)){color:inherit!important;text-decoration:underline!important;text-underline-offset:.15rem}.sonic-toast-text :is(p, ul, ol, hr, h1, h2, h3, h4, h5, h6),::slotted(:is(p,ul,ol,hr,h1,h2,h3,h4,h5,h6)){margin:0 0 .3em!important}.sonic-toast-text li,::slotted(li){margin-bottom:.15em!important}.sonic-toast-text>:is(p,ul,ol,hr,h1,h2,h3,h4,h5,h6):last-child,::slotted(:is(p,ul,ol,hr,h1,h2,h3,h4,h5,h6):last-child){margin-bottom:0!important}.sonic-toast-close{all:unset;position:absolute;z-index:4;pointer-events:initial;right:.5em;top:.5em;width:1.5rem;height:1.5rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;text-align:center;opacity:.5;background:rgba(0,0,0,0)}.sonic-toast-close:focus,.sonic-toast-close:hover{opacity:1;background:rgba(0,0,0,.075)}.sonic-toast-close svg{width:1rem;height:1rem;object-fit:contain;object-position:center center}.sonic-toast-title{font-weight:700;font-size:1.15rem;margin:.15em 0 .25em;line-height:1.2}.success{--sc-toast-status-color:var(--sc-success);--sc-toast-title-color:var(--sc-toast-status-color)}.error{--sc-toast-status-color:var(--sc-danger);--sc-toast-title-color:var(--sc-toast-status-color)}.warning{--sc-toast-status-color:var(--sc-warning);--sc-toast-title-color:var(--sc-toast-status-color)}.info{--sc-toast-status-color:var(--sc-info);--sc-toast-title-color:var(--sc-toast-status-color)}.error,.info,.success,.warning{border-top:3px solid var(--sc-toast-status-color,currentColor)}.sonic-toast:before{content:"";display:block;position:absolute;left:0;top:0;right:0;bottom:0;opacity:.05;pointer-events:none;transition:.2s;border-radius:var(--sc-toast-rounded);background-color:var(--sc-toast-status-color)}.sonic-toast:hover:before{opacity:.025}.error .sonic-toast-icon,.info .sonic-toast-icon,.success .sonic-toast-icon,.warning .sonic-toast-icon{color:var(--sc-toast-status-color,currentColor)}.sonic-toast-icon{position:sticky;top:0}.ghost{opacity:.85;pointer-events:none}`],Be([it({type:String})],He.prototype,"title",2),Be([it({type:String})],He.prototype,"id",2),Be([it({type:String})],He.prototype,"text",2),Be([it({type:String})],He.prototype,"status",2),Be([it({type:Boolean})],He.prototype,"ghost",2),Be([it({type:Boolean})],He.prototype,"preserve",2),Be([it({type:Boolean})],He.prototype,"dismissForever",2),Be([it({type:String})],He.prototype,"maxHeight",2),Be([nt()],He.prototype,"visible",2),He=Be([st("sonic-toast-item")],He);var Ke=Object.defineProperty,We=Object.getOwnPropertyDescriptor,Ze=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?We(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Ke(e,r,i),i};let Ye=class extends et{constructor(){super(...arguments),this.toasts=[]}createRenderRoot(){return this}render(){const t=!(window.parent==window);let e={pointerEvents:"none",gap:"1rem",display:"flex",margin:"1rem"};return t||(e=__spreadProps(__spreadValues({},e),{margin:"0",width:"calc(100% - 2.5rem)",position:"fixed",bottom:"1.25rem",right:"1.25rem",zIndex:"999",maxWidth:"64ch",flexDirection:"column-reverse"})),this.toasts?L`<div aria-live="polite" style="${Re(e)}">${se(this.toasts,(t=>t.id),(e=>L`<sonic-toast-item maxHeight="${t?"none":"10rem"}" status="${Ie(e.status)}" title="${Ie(e.title)}" ?ghost="${e.ghost}" ?dismissForever="${e.dismissForever}" ?preserve="${e.preserve}" id="${Ie(e.id)}" @hide="${()=>this.removeItem(e)}" ${Ae({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})}>${e.text?$e(e.text):""}</sonic-toast-item>`))}</div>`:N}static removeAll(){let t=document.querySelector("sonic-toast");t&&(t.toasts=t.toasts.filter((t=>t.ghost)))}static add(t){var e;if(!document.querySelector("sonic-toast")){let t=document.createElement("sonic-toast");(document.querySelector("sonic-theme")||document.body).prepend(t)}let r=document.querySelector("sonic-toast");const s=null!=(e=t.id)?e:(new Date).valueOf(),o=new RegExp("</a>|</button>").test(t.text),i={id:s,text:t.text,title:t.title,status:t.status,preserve:!!o||t.preserve,ghost:t.ghost,dismissForever:t.dismissForever};if(t.dismissForever&&t.id){const e=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(e)[t.id])return null}if(r.toasts.length>0){let t=__spreadValues({},i),e=__spreadValues({},r.toasts[r.toasts.length-1]);if(t.id=e.id=0,!i.preserve&&At.shallowEqual(t,e))return null}return r.toasts=[...r.toasts,i],i}removeItem(t){this.toasts=this.toasts.filter((e=>e!=t))}};if(Ze([it({type:Array})],Ye.prototype,"toasts",2),Ye=Ze([st("sonic-toast")],Ye),"undefined"!=typeof window){window.SonicToast=Ye}const Qe=class{static listen(){var t;if(!Qe.listening)return;let e=null==(t=document.location)?void 0:t.href.replace(document.location.origin,"");Qe.prevURL&&Qe.prevURL!=e&&(Qe.prevURL=e,Qe.listeners.forEach((t=>{t.location=e}))),window.requestAnimationFrame(Qe.listen)}static offChange(t){let e=Qe.listeners.indexOf(t);-1!=e&&(Qe.listeners.splice(e,1),0==Qe.listeners.length&&(Qe.listening=!1))}static onChange(t){Qe.listening||(Qe.listening=!0,Qe.listen()),Qe.listeners.push(t)}static changeFromComponent(t){if(null!==t.goBack){const e=document.location.origin;let r=t.goBack||e;if(0==document.referrer.indexOf("http")&&new URL(document.referrer).origin==e||r==document.location.href)history.back();else{let t=history.state||{};t.concorde=t.concorde||{},t.concorde.hasDoneHistoryBack=!0,history.pushState(t,document.title),history.back(),document.location.replace(r)}return}let e=t.getAttribute("to");if(e||(e=t.href),!e)return;if(0==e.indexOf("#"))return void(document.location.hash=e.substring(1));let r=new URL(e,document.location.href),s=r.pathname.split("/"),o=[],i="";for(let n of s)n!=i&&o.push(n),i=n;e="/"+o.join("/")+r.search+(r.hash?+r.hash:""),t.hasAttribute("pushState")?history.pushState(null,"",e):t.hasAttribute("replaceState")?history.replaceState(null,"",e):document.location.href=e}static updateComponentActiveState(t){if("disabled"!=t.autoActive&&t.href&&0!=t.href.indexOf("http")){let e=new URL(t.href,document.location.href),r=new URL(t.location,document.location.origin),s=!1;s="strict"==t.autoActive?e.pathname==r.pathname&&e.hash==r.hash&&e.search==r.search:0==r.href.indexOf(e.href),s?t.setAttribute("active","true"):t.removeAttribute("active")}}};let Ge=Qe;Ge.listeners=[],Ge.listening=!1,Ge.prevURL=null==(t=document.location)?void 0:t.href.replace(document.location.origin,"");var Je=Object.defineProperty,Xe=Object.getOwnPropertyDescriptor,tr=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Xe(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Je(e,r,i),i};const er=new Map,rr=t=>{class e extends t{constructor(...t){super(),this.touched=!1,this.error=!1,this.autofocus=!1,this.required=!1,this.forceAutoFill=!1,this.disabled=null,this.onValueAssign=null,this.onFormValueAssign=null,this.onFormDataInValidate=null,this.formDataProvider="",this._name="",this._value="",this.onValueAssign=t=>{this.setValueFromPublisher(t)},this.onFormValueAssign=t=>{this.setFormValueFromPublisher(t)},this.onFormDataInValidate=()=>{this.getFormPublisher().isFormValid.get()&&this.validateFormElement()}}get name(){return this._name}set name(t){this.hasAttribute("name")&&!this.forceAutoFill&&(t=this.getAttribute("name")),this._name=t,this.requestUpdate()}validateFormElement(){}updateDataValue(){if(this._name){let t=this.getFormPublisher();t&&(t[this._name]=this.getValueForFormPublisher(),this.setFormValueFromPublisher(t[this.name].get()))}}getFormPublisher(){return this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?gt.get(this.formDataProvider):this.publisher}getValueForFormPublisher(){return this.value}setValueFromPublisher(t){this.value=t}setFormValueFromPublisher(t){this.value=t}get value(){return this._value}set value(t){At.isObject(t)&&t.hasOwnProperty("__value")&&null==t.value||null!=t&&this._value!=t&&(this._value=t,this.updateDataValue(),this.requestUpdate())}initPublisher(){this._name&&this.publisher&&this.publisher[this._name].offAssign(this.onValueAssign);let t=this.getFormPublisher();this._name&&t&&t[this._name].offAssign(this.onFormValueAssign),super.initPublisher(),this.name||(this._name=this.getAttribute("name")),this.value||(this._value=this.getAttribute("value")),this.updateDataValue(),this.publisher&&this._name&&this.publisher[this._name].onAssign(this.onValueAssign),t=this.getFormPublisher(),this._name&&t&&(t[this._name].onAssign(this.onFormValueAssign),t.onInvalidate(this.onFormDataInValidate))}handleBlur(){this.touched=!0}handleChange(t){this.value=t.target.value;const e=new Event("change");this.dispatchEvent(e)}addKeyboardNavigation(){let t=this.getAncestorAttributeValue("data-keyboard-nav");if(!t)return;let e=t.split(" "),r=e[0];if(!r)return;for(let o of e){er.has(o)||er.set(o,[]);let t=er.get(o);-1==t.indexOf(this)&&t.push(this)}let s=er.get(r);this.addEventListener("keydown",(t=>{if(!["ArrowDown","ArrowUp"].includes(t.key))return;let e="input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])",r=s.filter((t=>{let r=t.shadowRoot.querySelector(e);if(!r)return!1;let s=window.getComputedStyle(r);return"none"!==s.display&&""!==s.display&&"none"!=s.pointerEvents&&"hidden"!==s.visibility&&r.getBoundingClientRect().width>0})),o=null;if("ArrowDown"==t.key){let t=r.indexOf(this);o=t==r.length-1?r[0]:r[t+1]}else if("ArrowUp"==t.key){let t=r.indexOf(this);o=0==t?r[r.length-1]:r[t-1]}let i=o.shadowRoot.querySelector(e);i&&(i.focus(),t.preventDefault())}))}connectedCallback(){super.connectedCallback(),this.addKeyboardNavigation()}disconnectedCallback(){super.disconnectedCallback(),this._name&&this.publisher&&this.publisher[this._name].offAssign(this.onValueAssign);let t=this.getFormPublisher();this._name&&t&&(t[this._name].offAssign(this.onFormValueAssign),t.offInvalidate(this.onFormDataInValidate))}}return tr([it({type:Boolean,reflect:!0})],e.prototype,"touched",2),tr([it({type:Boolean})],e.prototype,"error",2),tr([it({type:Boolean})],e.prototype,"autofocus",2),tr([it({type:Boolean})],e.prototype,"required",2),tr([it()],e.prototype,"forceAutoFill",2),tr([it({type:Boolean})],e.prototype,"disabled",2),tr([it()],e.prototype,"name",1),tr([it()],e.prototype,"value",1),e};var sr=Object.defineProperty,or=Object.getOwnPropertyDescriptor,ir=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?or(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&sr(e,r,i),i};const nr=t=>{class e extends t{constructor(){super(...arguments),this._value="",this.forceAutoFill=!1,this.unique=null,this.radio=null,this._checked=null}get value(){return this._value}set value(t){this.hasAttribute("value")&&!this.forceAutoFill&&(t=this.getAttribute("value")),this._value!=t&&(this._value=t,this.updateDataValue(),this.requestUpdate())}get checked(){return this._checked}set checked(t){this.setCheckedValue(t)}validateFormElement(){var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("input");if(!e||e.checkValidity())return;let r=this.getFormPublisher()[this.name].get();(this.unique||this.radio)&&null!==r&&r.toString().length>0||(this.getFormPublisher().isFormValid=!1,e.reportValidity())}setCheckedValue(t){this._checked!=t&&(this._checked=t,this.updateDataValue(),this.requestUpdate(),!this.publisher||this.radio||this.unique||(this.publisher.checked=this._checked))}handleChange(){this.checked=!this.checked||(!!this.radio||null);const t=new Event("change");this.dispatchEvent(t)}getValueForFormPublisher(){let t=this.getFormPublisher()[this.name].get();if(this.radio)return this.checked&&null!=this.value?this.value:t;if(this.unique)return this.checked&&null!=this.value?this.value:null;Array.isArray(t)||(t=[]),t=t.slice(0);let e=t.indexOf(this.value);return!0===this.checked&&-1===e&&t.push(this.value),null===this.checked&&-1!==e&&t.splice(e,1),t}setFormValueFromPublisher(t){this.unique||this.radio?this.checked=this.value==t||null:(Array.isArray(t)||(t=[]),this.checked=-1!==t.indexOf(this.value)||null)}initPublisher(){super.initPublisher(),this.hasAttribute("checked")&&(this.publisher&&!1===this.publisher.get().checked||(this.checked=!0))}}return ir([it()],e.prototype,"value",1),ir([it()],e.prototype,"forceAutoFill",2),ir([it({type:Boolean})],e.prototype,"unique",2),ir([it({type:Boolean})],e.prototype,"radio",2),ir([it()],e.prototype,"checked",1),e},ar=n`:host{--sc-fs:1rem;font-size:var(--sc-fs)}:host([size="2xs"]){--sc-fs:0.68rem}:host([size=xs]){--sc-fs:0.75rem}:host([size=sm]){--sc-fs:0.875rem}:host([size=lg]){--sc-fs:1.125rem}:host([size=xl]){--sc-fs:1.25rem}:host([size="2xl"]){--sc-fs:1.5rem}`;var lr=Object.defineProperty,cr=Object.getOwnPropertyDescriptor,hr=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?cr(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&lr(e,r,i),i};const dr="sonic-button";let pr=class extends(nr(rr(Et(et)))){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.autoActive="partial",this.loading=!1,this.hasPrefix=!1,this.hasSuffix=!1,this._href="",this.goBack=null,this.pushState=!1,this.active=!1,this._location=""}set href(t){this._href=t,this.href&&0!=this.href.indexOf("http")?(Ge.onChange(this),this.location=document.location.href.replace(document.location.origin,"")):Ge.offChange(this),this.requestUpdate()}get href(){return this._href}handleNavigation(t){t.preventDefault(),Ge.changeFromComponent(this)}handleChange(t){super.handleChange(t),(this.pushState||null!==this.goBack)&&(t.preventDefault(),t.stopPropagation(),Ge.changeFromComponent(this))}connectedCallback(){super.connectedCallback()}setCheckedValue(t){if(this.name){if(t==this._checked)return;super.setCheckedValue(t),this._checked?this.setAttribute("active","true"):this.removeAttribute("active")}}disconnectedCallback(){Ge.offChange(this),super.disconnectedCallback()}get location(){return this._location}set location(t){this._location=t,Ge.updateComponentActiveState(this)}render(){const t={flexDirection:this.direction,alignItems:this.alignItems,justifyContent:this.justify,textAlign:this.align,minWidth:this.minWidth},e=L`<button part="button" class="${this.hasPrefix||this.hasSuffix?"has-prefix-or-suffix":""}" style="${Re(t)}" @click="${this.handleChange}"><slot @slotchange="${this.onSlotChange}" part="prefix" name="prefix"></slot><slot part="main" class="main-slot"></slot><slot @slotchange="${this.onSlotChange}" part="suffix" name="suffix"></slot>${1==this.loading?L`<sonic-icon name="loader" class="loader"></sonic-icon>`:""}</button>`;return this.href?L`<a href="${this.href}" target="${Ie(this.target)}" @click="${this.pushState||null!==this.goBack?this.handleNavigation:null}">${e}</a>`:L`${e}`}onSlotChange(){var t,e;this.hasPrefix=!!(null==(t=this.prefixes)?void 0:t.length),this.hasSuffix=!!(null==(e=this.suffixes)?void 0:e.length)}};pr.styles=[ar,n`*{box-sizing:border-box}:host{--sc-btn-gap:0.35em;--sc-btn-py:0.25em;--sc-btn-px:1.1em;--sc-btn-fs:var(--sc-fs, 1rem);--sc-btn-fw:var(--sc-btn-font-weight);--sc-btn-ff:var(--sc-btn-font-family);--sc-btn-height:var(--sc-form-height);--sc-btn-color:var(--sc-base-content);--sc-btn-bg:var(--sc-base-100);--sc-btn-border-style:solid;--sc-btn-border-with:var(--sc-form-border-width);--sc-btn-border-color:transparent;--sc-btn-outline-bg-hover:var(--sc-base-100);--sc-btn-ghost-bg-hover:var(--sc-base-100);--sc-btn-active-color:var(--sc-base);--sc-btn-hover-filter:brightness(0.98);--sc-btn-active-filter:brightness(0.97);--sc-btn-active-bg:var(--sc-base-content);--sc-item-rounded-tr:var(--sc-btn-rounded);--sc-item-rounded-tl:var(--sc-btn-rounded);--sc-item-rounded-bl:var(--sc-btn-rounded);--sc-item-rounded-br:var(--sc-btn-rounded);display:inline-flex;vertical-align:middle;box-sizing:border-box}:host a{display:contents;color:unset}:host button{display:flex;flex:1;box-sizing:border-box;align-items:center;justify-content:center;font-family:var(--sc-btn-ff);font-weight:var(--sc-btn-fw);font-size:var(--sc-btn-fs);cursor:pointer;text-align:center;line-height:1.1;border-radius:var(--sc-item-rounded-tl) var(--sc-item-rounded-tr) var(--sc-item-rounded-br) var(--sc-item-rounded-bl);background:var(--sc-btn-bg);color:var(--sc-btn-color);padding-top:var(--sc-btn-py);padding-bottom:var(--sc-btn-py);padding-left:var(--sc-btn-px);padding-right:var(--sc-btn-px);border:var(--sc-btn-border-with) var(--sc-btn-border-style) var(--sc-btn-border-color);min-height:var(--sc-btn-height)}:host button.has-prefix-or-suffix{gap:var(--sc-btn-gap)}:host button:focus,:host button:hover{filter:var(--sc-btn-hover-filter)}:host button:active{filter:var(--sc-btn-active-filter)}:host([type=default]) button{--sc-btn-color:var(--sc-base-content);--sc-btn-bg:var(--sc-base-100)}:host([type=primary]) button{--sc-btn-color:var(--sc-primary-content);--sc-btn-bg:var(--sc-primary)}:host([type=warning]) button{--sc-btn-color:var(--sc-warning-content);--sc-btn-bg:var(--sc-warning)}:host([type=danger]) button{--sc-btn-color:var(--sc-danger-content);--sc-btn-bg:var(--sc-danger)}:host([type=info]) button{--sc-btn-color:var(--sc-info-content);--sc-btn-bg:var(--sc-info)}:host([type=success]) button{--sc-btn-color:var(--sc-success-content);--sc-btn-bg:var(--sc-success)}:host([type=neutral]) button{--sc-btn-color:var(--sc-base);--sc-btn-bg:var(--sc-base-600)}:host([variant=unstyled]),:host([variant=unstyled]) button{all:unset;display:contents;transition:.1s;cursor:pointer;--sc-btn-height:auto;--sc-btn-width:auto}:host(:not([disabled])) button:focus{box-shadow:0 0 0 .18rem var(--sc-base-300);border-color:var(--sc-base-300)!important;outline:0}:host([variant=ghost][type]) button{color:var(--sc-btn-bg);background:0 0}:host([variant=ghost][type=default]) button{color:var(--sc-btn-color);background:0 0}:host([variant=ghost]) button:hover{background:var(--sc-btn-ghost-bg-hover);filter:none}:host([active][variant=ghost]) button{background:var(--sc-btn-ghost-bg-hover);filter:none}:host([active][variant=ghost]) button:hover{filter:var(--sc-btn-hover-filter)}:host([variant=outline][type]) button{border-color:var(--sc-btn-bg);color:var(--sc-btn-bg);background:0 0}:host([variant=outline][type=default]) button{border-color:var(--sc-base-400);color:var(--sc-base-500);background:0 0}:host([variant=outline]) button:hover{background:var(--sc-btn-outline-bg-hover)}:host([variant=link]:not([size])){vertical-align:baseline;margin-left:.25em;margin-right:.25em}:host([variant=link]:not([size])){font-size:inherit}:host([variant=link]) button{text-decoration:underline;padding:0;background:0 0;border:none;font-size:inherit;min-height:0;color:inherit}:host([variant=link][type]) button{color:var(--sc-btn-bg)}:host([variant=link][type=default]) button{color:inherit}:host([variant=link]) button:focus,:host([variant=link]) button:hover{text-decoration:none}:host([shape=circle]) button{border-radius:50%}:host([shape=circle]) button,:host([shape=square]) button{width:var(--sc-btn-height);height:var(--sc-btn-height);overflow:hidden;padding:0;align-items:center;justify-content:0;text-align:center!important}:host([shape=block]),:host([shape=block]) button{width:100%}:host([disabled]){opacity:.3;pointer-events:none;user-select:none}:host([active]:not([variant=ghost])) button{background:var(--sc-btn-active-bg);color:var(--sc-btn-active-color);border-color:var(--sc-btn-active-bg)}:host([textAlign=left]) button{text-align:left}:host([textAlign=right]) button{text-align:right}.main-slot{flex-grow:1;display:block}:host([minWidth]) .main-slot{flex-grow:0}slot[name=prefix],slot[name=suffix]{flex-shrink:0}::slotted(sonic-icon){min-width:1.28em;text-align:center}:host([icon]) ::slotted(sonic-icon){font-size:1.35em}sonic-tooltip{display:contents}:host(:not([active])) ::slotted([swap=on]){display:none}:host([active]) ::slotted([swap=off]){display:none}:host([loading]){pointer-events:none;position:relative}:host([loading]) slot{opacity:0!important;pointer-events:none}:host([loading]) .loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;line-height:0;height:var(--sc-btn-ff);width:var(--sc-btn-ff);animation:rotation 2s infinite linear}@keyframes rotation{from{transform-origin:50% 50%;transform:translate(-50%,-50%) rotate(0)}to{transform-origin:50% 50%;transform:translate(-50%,-50%) rotate(359deg)}}`],hr([it({type:String,reflect:!0})],pr.prototype,"type",2),hr([it({type:String,reflect:!0})],pr.prototype,"variant",2),hr([it({type:String,reflect:!0})],pr.prototype,"size",2),hr([it({type:String,reflect:!0})],pr.prototype,"shape",2),hr([it({type:String})],pr.prototype,"direction",2),hr([it({type:String,reflect:!0})],pr.prototype,"alignItems",2),hr([it({type:String})],pr.prototype,"justify",2),hr([it({type:String,reflect:!0})],pr.prototype,"align",2),hr([it({type:String})],pr.prototype,"minWidth",2),hr([it({type:Boolean,reflect:!0})],pr.prototype,"icon",2),hr([it({type:String})],pr.prototype,"autoActive",2),hr([it({type:Boolean,reflect:!0})],pr.prototype,"loading",2),hr([nt()],pr.prototype,"hasPrefix",2),hr([nt()],pr.prototype,"hasSuffix",2),hr([dt({flatten:!0,slot:"prefix"})],pr.prototype,"prefixes",2),hr([dt({flatten:!0,slot:"suffix"})],pr.prototype,"suffixes",2),hr([it({type:String})],pr.prototype,"target",2),hr([it({type:String})],pr.prototype,"href",1),hr([it({type:String})],pr.prototype,"goBack",2),hr([it({type:Boolean})],pr.prototype,"pushState",2),hr([it({type:Boolean,reflect:!0})],pr.prototype,"active",2),pr=hr([st(dr)],pr);try{customElements.define(dr,pr)}catch(Fa){}class ur{static areEqual(t,e){return t.length===e.length&&t.every(((t,r)=>t===e[r]))}static from2d(t){return{to1D:()=>{let e=[];return t.forEach((t=>e=e.concat(t))),this.from(e)}}}static from(t){return{get:()=>t||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:e=>{if(t.length<1)return!0;let r=(t[0]||{})[e];return t.every((t=>(t||{})[e]==r))}})})}),value:()=>({forKey:e=>ur.from(t.map((t=>t[e])))}),copy:()=>({fromKey:e=>({toKey:r=>{t.forEach((t=>{t[r]=Array.isArray(t[e])?[...t[e]]:"object"==typeof t[e]&&null!=t[e]?__spreadValues({},t[e]):t[e]}))}})})}),map:e=>ur.from(t.map(e)),filter:e=>ur.from(t.filter(e)),find:e=>t.find(e),some:e=>t.some(e),every:e=>t.every(e),group:()=>({byKey:e=>{let r=[],s=new Map;for(let o of t){let t=o[e];if(!s.has(t)){let o=r.length;s.set(t,o);let i={items:[]};i[e]=t,r.push(i)}r[s.get(t)].items.push(o)}return ur.from(r)}}),without:()=>({duplicates:()=>({forKey:e=>{let r=[...new Set(t.map((t=>t[e])))];return ur.from(r.map((r=>t.find((t=>t[e]==r)))))}}),itemsIn:e=>({havingSameValue:()=>({forKey:r=>ur.from(t.filter((t=>{return e.every((s=t,o=r,t=>s[o]!=t[o]));var s,o})))})})})}}}const mr=ur,gr=_t,br=wt,fr=ft,vr=Ge,yr=At,wr=bt,xr=gt,_r=yt;let kr=window;kr["concorde-utils"]=kr["concorde-utils"]||{},kr["concorde-utils"]={Arrays:mr,DataBindObserver:gr,Format:br,HTML:fr,LocationHandler:vr,Objects:yr,PublisherProxy:wr,PublisherManager:xr,api:_r};var Ar=Object.defineProperty,Pr=Object.getOwnPropertyDescriptor;const $r=t=>{class e extends t{constructor(...t){super(),this.api=null,this.key="",this.isFirstLoad=!0,this.isLoading=!1,this.iObserver=null,this.isDefaultLoaderEnabled=!0,this.isFetchEnabled=!0,this._endPoint="",this.dataProvider=""}set endPoint(t){this._endPoint=t,this.isConnected&&this._fetchData()}get endPoint(){return this._endPoint}async _fetchData(){if(!this.isFetchEnabled)return;if(this.api=new yt(this.getApiConfiguration()),!this.api)return;let t;this.dispatchEvent(new CustomEvent("loading",{detail:this})),this.isLoading=!0,this.requestUpdate();let e=this.isDefaultLoaderEnabled&&!this.hasAttribute("noLoader");e&&Ht.show();let r=xr.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();if(t=await this.api.get(this.endPoint||this.dataProvider||"",r),!t)return Ye.add({text:"Network Error",status:"error"}),this.isLoading=!1,void(e&&Ht.hide());if(e&&Ht.hide(),this.key){let e=t._sonic_http_response_;t=At.traverse(t,this.key.split("."),!1),t&&(t._sonic_http_response_=e)}this.props=t,this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1}disconnectedCallback(){var t;super.disconnectedCallback(),null==(t=this.publisher)||t.offInvalidate(this.onInvalidate),this.isFirstLoad=!1}connectedCallback(){var t;if(this.noShadowDom="",!this.isFetchEnabled)return void super.connectedCallback();super.connectedCallback(),this.key=this.getAncestorAttributeValue("key"),this.props&&this.publisher.set(this.props),this.onInvalidate=()=>this._fetchData(),null==(t=this.publisher)||t.onInvalidate(this.onInvalidate);null===this.getAncestorAttributeValue("lazyload")&&this._fetchData()}firstUpdated(){if(null===this.getAncestorAttributeValue("lazyload"))return;let t={root:null,rootMargin:Math.max(window.innerWidth,window.innerHeight)+"px"};this.iObserver=new IntersectionObserver((t=>this.onIntersection(t)),t);let e=this,r=e.shadowRoot?e.shadowRoot.children[0]:e.children[0];r&&"slot"==r.nodeName.toLocaleLowerCase()&&(r=r.children[0]),r&&"template"!=r.nodeName.toLocaleLowerCase()||(r=document.createElement("span"),e.appendChild(r)),r?this.iObserver.observe(r):this.isFirstLoad&&this._fetchData()}onIntersection(t){for(const e of t)e.isIntersecting&&this.isFirstLoad&&this._fetchData()}}return((t,e,r,s)=>{for(var o,i=s>1?void 0:s?Pr(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);s&&i&&Ar(e,r,i)})([it({type:String})],e.prototype,"endPoint",1),e};var Cr=Object.defineProperty,Sr=Object.getOwnPropertyDescriptor;const Or="sonic-fetch";let Er=class extends($r(Et(et))){render(){return L`<slot></slot>`}};Er.styles=[n`:host{display:contents}`],Er=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?Sr(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Cr(e,r,i),i})([st(Or)],Er);try{customElements.define(Or,Er)}catch(Fa){}var zr=Object.defineProperty,jr=Object.getOwnPropertyDescriptor,Dr=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?jr(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&zr(e,r,i),i};const Lr="sonic-if";let Mr=class extends et{constructor(){super(...arguments),this.condition=!1}render(){return this.condition?L`<slot></slot>`:N}};Mr.styles=n`:host{display:contents}`,Dr([it({type:Boolean})],Mr.prototype,"condition",2),Mr=Dr([st(Lr)],Mr);try{customElements.define(Lr,Mr)}catch(Fa){}
|
|
91
|
+
/**
|
|
92
|
+
* @license
|
|
93
|
+
* Copyright 2020 Google LLC
|
|
94
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
95
|
+
*/const Nr=Zt(class extends Yt{constructor(t){if(super(t),t.type!==Wt)throw Error("templateContent can only be used in child bindings")}render(t){return this.vt===t?M:(this.vt=t,document.importNode(t.content,!0))}});var Fr=Object.defineProperty,Ir=Object.getOwnPropertyDescriptor;const Rr="sonic-subscriber";let Tr=class extends(Et(et)){constructor(){super(...arguments),this.noAutofill=!0}connectedCallback(){this.noShadowDom="",super.connectedCallback()}updated(t){super.updated(t),0==this.children.length?this.style.display="none":this.style.display="contents"}render(){return L`<slot></slot>`}};Tr=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?Ir(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Fr(e,r,i),i})([st(Rr)],Tr);try{customElements.define(Rr,Tr)}catch(Fa){}var Vr=Object.defineProperty,Ur=Object.getOwnPropertyDescriptor,Br=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Ur(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Vr(e,r,i),i};const qr="sonic-list";let Hr=class extends($r(Et(Lt(et)))){constructor(){super(...arguments),this.itemPropertyMap=null,this.templateKey="template",this.idKey="id"}connectedCallback(){this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.isDefaultLoaderEnabled=!1,this.isFetchEnabled=this.hasAttribute("fetch"),this.isFetchEnabled&&(this.isLoading=!0),super.connectedCallback()}renderLoadingState(){return this.templateParts.skeleton?Nr(this.templateParts.skeleton):L`<sonic-loader mode="inline"></sonic-loader>`}renderNoResultState(){return L`<div class="sonic-no-result-container"><sonic-icon name="emoji-puzzled" size="lg"></sonic-icon><span class="sonic-no-result-text">${this.props}</span></div>`}formatProps(){let t=this.props,e=t._sonic_http_response_,r=this.hasAttribute("extractValues");return Array.isArray(t)||(t=r?Object.entries(t).map((([t,e])=>({key:t,value:e}))):!e||e.ok?[t]:[]),t._sonic_http_response_=e,t}render(){if(this.isLoading&&!Array.isArray(this.props))return this.renderLoadingState();if("string"==typeof this.props)return this.renderNoResultState();if(!At.isObject(this.props))return L`<div></div>`;let t=this.formatProps();if(0==t.length&&this.templateParts["no-item"])return Nr(this.templateParts["no-item"]);let e=this.templateList.length,r=-1,s=this.hasAttribute("extractValues");return L`${se(t,((t,e)=>t[this.idKey]||e),((t,o)=>{let i=t[this.templateKey],n=i&&this.templateParts[i],a=s?t.key:o;if("_sonic_http_response_"==a)return N;let l=this.publisher[a];return l._key_=a+"",r++,n&&(r=-1),t&&L`<sonic-subscriber debug="${Ie(this.defferedDebug)}" .bindPublisher="${function(){return l}}" .propertyMap="${Ie(this.itemPropertyMap)}" dataProvider="${this.dataProvider}/list-item/${o}">${Nr(n?this.templateParts[i]:this.templateList[r%e])}</sonic-subscriber>`}))}`}};Hr.styles=[n`.sonic-no-result-container{color:var(--sc-base-400);font-size:1.65rem}sonic-icon{margin-right:.25em}span{vertical-align:middle}`],Br([it({type:Object})],Hr.prototype,"itemPropertyMap",2),Br([it({type:String})],Hr.prototype,"templateKey",2),Br([it({type:String})],Hr.prototype,"idKey",2),Hr=Br([st(qr)],Hr);try{customElements.define(qr,Hr)}catch(Fa){}var Kr=Object.defineProperty,Wr=Object.getOwnPropertyDescriptor,Zr=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Wr(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Kr(e,r,i),i};const Yr="sonic-queue";let Qr=class extends(Et(et)){constructor(){super(...arguments),this.templates=null,this.lastRequestTime=0,this.key="",this.itemPropertyMap=null,this.targetRequestDuration=500,this.limit=5,this.offset=0,this.filteredFields="",this._displayContents=!1,this.filterPublisher=null,this.filterTimeoutId=void 0,this.dataProviderExpression="",this.idKey="id",this.currentScrollPosition=void 0,this.listDataProviders=[]}set displayContents(t){this._displayContents=t}get displayContents(){return this._displayContents}connectedCallback(){this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.dataProvider||(this.dataProvider="sonic-queue-"+Qr.instanceCounter++),this.configFilter(),super.connectedCallback(),this.key=this.getAttribute("key"),this.templates||(this.templates=Array.from(this.querySelectorAll("template"))),this.lastRequestTime=(new Date).getTime(),this.next()}configFilter(){var t;let e=this.getAncestorAttributeValue("dataFilterProvider");e&&(this.filterPublisher=gt.getInstance().get(e),null==(t=this.filterPublisher)||t.onInternalMutation((()=>{var t;0!=Object.keys(null==(t=this.filterPublisher)?void 0:t.get()).length&&this.updateFilteredContent()})))}updateFilteredContent(){for(let t of this.listDataProviders)gt.delete(t);this.listDataProviders=[],clearTimeout(this.filterTimeoutId),this.filterTimeoutId=setTimeout((()=>{this.props=null,this.next()}),250)}resetDuration(){this.lastRequestTime=(new Date).getTime()}next(t){var e,r;let s=this.offset;const o=(new Date).getTime()-this.lastRequestTime;if(t&&(!t.detail.isFirstLoad||!t.detail.props.length||-1==this.dataProviderExpression.indexOf("$offset")))return;if(Array.isArray(this.props)){const t=this.props,e=t[t.length-1];s=parseInt(e.offset.toString())+parseInt(e.limit.toString())}else this.props=[];o>0&&t&&(this.limit=Math.round(this.limit/o*this.targetRequestDuration)),this.limit<1&&(this.limit=1),this.limit>15&&(this.limit=15);let i=this.dataProviderExpression.replace("$offset",s+"").replace("$limit",this.limit+""),n=i.split("?"),a=n.shift(),l=new URLSearchParams(n.join("?")),c=null==(e=this.filterPublisher)?void 0:e.get(),h=this.filteredFields.split(" ");for(let d in c)this.filteredFields&&!h.includes(d)||l.set(d,c[d]);i=a+"?"+l.toString(),this.listDataProviders.push(i),this.currentScrollPosition=null==(r=document.scrollingElement)?void 0:r.scrollTop,this.props=[...this.props,{id:l.toString()+"/"+this.props.length,dataProvider:i,offset:s,limit:this.limit}],this.lastRequestTime=(new Date).getTime()}render(){let t=this.displayContents?"contents":"inline";return this.style.display=t,this.currentScrollPosition&&window.requestAnimationFrame((()=>{document.scrollingElement&&(document.scrollingElement.scrollTop=this.currentScrollPosition),this.currentScrollPosition=void 0})),Array.isArray(this.props)?L`${se(this.props,(t=>t.id),((e,r)=>{var s;let o=0==r?this.templates:null==(s=this.templates)?void 0:s.filter((t=>"no-item"!=t.getAttribute("data-value")));return L`<sonic-list fetch style="${t}" .itemPropertyMap="${this.itemPropertyMap}" debug="${Ie(this.defferedDebug)}" @load="${this.next}" key="${this.key}" @loading="${this.resetDuration}" dataProvider="${e.dataProvider}" idKey="${this.idKey}" .templates="${o}"></sonic-list>`}))}`:N}};Qr.instanceCounter=0,Zr([it({type:Array})],Qr.prototype,"templates",2),Zr([it({type:Object})],Qr.prototype,"itemPropertyMap",2),Zr([it()],Qr.prototype,"targetRequestDuration",2),Zr([it()],Qr.prototype,"limit",2),Zr([it()],Qr.prototype,"offset",2),Zr([it()],Qr.prototype,"filteredFields",2),Zr([it()],Qr.prototype,"displayContents",1),Zr([it({type:String})],Qr.prototype,"dataProviderExpression",2),Zr([it({type:String})],Qr.prototype,"idKey",2),Qr=Zr([st(Yr)],Qr);try{customElements.define(Yr,Qr)}catch(Fa){}var Gr=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor,Xr=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Jr(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Gr(e,r,i),i};const ts="sonic-submit";let es=class extends(Et(et)){constructor(){super(...arguments),this.submitResultKey=null,this.disabled=!1,this.endPoint=null,this.api=null}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",(()=>this.submit())),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",(t=>{"Enter"===t.key&&this.submit()})),super.connectedCallback(),this.api=new yt(this.getApiConfiguration())}async submit(){var t,e,r;const s=gt.getInstance().get(this.getAncestorAttributeValue("formDataProvider"));if(s.isFormValid=!0,s.invalidate(),!s.isFormValid.get())return;this.publisher&&(this.publisher.disabled=!0),s.isFormValid;let o=(null==(t=this.getAttribute("method"))?void 0:t.toLocaleLowerCase())||"post",i=this.hasAttribute("sendAsFormData"),n=s.get();delete n.isFormValid;const a=gt.getInstance().get(this.getAncestorAttributeValue("headersDataProvider"));let l=a.get(),c=null,h=this.getAncestorAttributeValue("dataProvider"),d=this.endPoint||h;Ht.show();let p=async()=>{var t,e,r,s,a;if(i)c=await(null==(t=this.api)?void 0:t.submitFormData(d,n,l));else switch(o){case"put":c=await(null==(e=this.api)?void 0:e.put(d,n,l));break;case"delete":c=await(null==(r=this.api)?void 0:r.delete(d,n,l));break;case"get":c=await(null==(s=this.api)?void 0:s.get(d,l));break;default:c=await(null==(a=this.api)?void 0:a.post(d,n,l))}Ht.hide(),c||(c={messages:[{content:"Network Error",status:"error"}]});let h=this.getAncestorAttributeValue("clearedDataOnSuccess");h&&h.split(" ").forEach((t=>gt.get(t).set({}))),this.submitResultKey&&(c=At.traverse(c,this.submitResultKey.split("."),!0)),gt.getInstance().get(this.getAncestorAttributeValue("submitResultDataProvider")).set(c),this.publisher&&(this.publisher.disabled=!1)},u=a.needsCaptchaValidation.get()?a:s.needsCaptchaValidation.get()?s:null;u?(u.action=o+"//"+(null!=(r=null!=(e=null==h?void 0:h.split("?")[0])?e:this.getAncestorAttributeValue("formDataProvider"))?r:"submit"),u.captchaToken="request_token",u.captchaToken.onAssign((t=>{"request_token"!=t&&p()}))):p()}render(){return L`<div ?data-disabled="${this.disabled}"><slot></slot></div>`}};es.styles=n`[data-disabled]{opacity:.3;pointer-events:none;user-select:none}`,Xr([it({type:String})],es.prototype,"submitResultKey",2),Xr([it({type:Boolean})],es.prototype,"disabled",2),Xr([it({type:String})],es.prototype,"endPoint",2),es=Xr([st(ts)],es);try{customElements.define(ts,es)}catch(Fa){}var rs,ss,os,is,ns="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},as={exports:{}};rs=as,is=[].slice,ss=ns,os=function(){var t,e,r,s,o,i,n,a,l,c,h,d,p,u,m;return l=function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},n=function(t,e){var r,s,o;for(o=[],r=-1,s=t.length;++r<s;)o=o.concat(e(t[r]));return o},u=function(t,e){var r,s,o;for(o="",r=-1,s=t.length;++r<s;)o+=e(t[r]);return o},p=function(t){return new RegExp(t.toString()+"|").exec("").length-1},h=function(t,e){var r,s,o,i,n;for(i={},r=-1,o=t.length;++r<o;)s=t[r],null!=(n=e[r])&&(null!=i[s]?(Array.isArray(i[s])||(i[s]=[i[s]]),i[s].push(n)):i[s]=n);return i},(t={}).Result=function(t,e){this.value=t,this.rest=e},t.Tagged=function(t,e){this.tag=t,this.value=e},t.tag=function(e,r){return function(s){var o,i;if(null!=(o=r(s)))return i=new t.Tagged(e,o.value),new t.Result(i,o.rest)}},t.regex=function(e){return function(r){var s,o;if(null!=(s=e.exec(r)))return o=s[0],new t.Result(o,r.slice(o.length))}},t.sequence=function(){var e;return e=1<=arguments.length?is.call(arguments,0):[],function(r){var s,o,i,n,a;for(s=-1,o=e.length,a=[],i=r;++s<o;){if(null==(n=(0,e[s])(i)))return;a.push(n.value),i=n.rest}return new t.Result(a,i)}},t.pick=function(){var e,r;return e=arguments[0],r=2<=arguments.length?is.call(arguments,1):[],function(s){var o,i;if(null!=(i=t.sequence.apply(t,r)(s)))return o=i.value,i.value=o[e],i}},t.string=function(e){var r;return r=e.length,function(s){if(s.slice(0,r)===e)return new t.Result(e,s.slice(r))}},t.lazy=function(t){var e;return e=null,function(r){return null==e&&(e=t()),e(r)}},t.baseMany=function(e,r,s,o,i){var n,a,l;for(a=i,l=s?"":[];(null==r||null==r(a))&&null!=(n=e(a));)s?l+=n.value:l.push(n.value),a=n.rest;if(!o||0!==l.length)return new t.Result(l,a)},t.many1=function(e){return function(r){return t.baseMany(e,null,!1,!0,r)}},t.concatMany1Till=function(e,r){return function(s){return t.baseMany(e,r,!0,!0,s)}},t.firstChoice=function(){var t;return t=1<=arguments.length?is.call(arguments,0):[],function(e){var r,s,o;for(r=-1,s=t.length;++r<s;)if(null!=(o=(0,t[r])(e)))return o}},d=function(e){var r;return(r={}).wildcard=t.tag("wildcard",t.string(e.wildcardChar)),r.optional=t.tag("optional",t.pick(1,t.string(e.optionalSegmentStartChar),t.lazy((function(){return r.pattern})),t.string(e.optionalSegmentEndChar))),r.name=t.regex(new RegExp("^["+e.segmentNameCharset+"]+")),r.named=t.tag("named",t.pick(1,t.string(e.segmentNameStartChar),t.lazy((function(){return r.name})))),r.escapedChar=t.pick(1,t.string(e.escapeChar),t.regex(/^./)),r.static=t.tag("static",t.concatMany1Till(t.firstChoice(t.lazy((function(){return r.escapedChar})),t.regex(/^./)),t.firstChoice(t.string(e.segmentNameStartChar),t.string(e.optionalSegmentStartChar),t.string(e.optionalSegmentEndChar),r.wildcard))),r.token=t.lazy((function(){return t.firstChoice(r.wildcard,r.optional,r.named,r.static)})),r.pattern=t.many1(t.lazy((function(){return r.token}))),r},a={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},i=function(t,e){if(Array.isArray(t))return u(t,(function(t){return i(t,e)}));switch(t.tag){case"wildcard":return"(.*?)";case"named":return"(["+e+"]+)";case"static":return l(t.value);case"optional":return"(?:"+i(t.value,e)+")?"}},o=function(t,e){return null==e&&(e=a.segmentValueCharset),"^"+i(t,e)+"$"},s=function(t){if(Array.isArray(t))return n(t,s);switch(t.tag){case"wildcard":return["_"];case"named":return[t.value];case"static":return[];case"optional":return s(t.value)}},c=function(t,e,r,s){var o,i,n;if(null==s&&(s=!1),null!=(n=t[e])){if(!((o=r[e]||0)>(Array.isArray(n)?n.length-1:0)))return i=Array.isArray(n)?n[o]:n,s&&(r[e]=o+1),i;if(s)throw new Error("too few values provided for key `"+e+"`")}else if(s)throw new Error("no values provided for key `"+e+"`")},r=function(t,e,s){var o,i;if(Array.isArray(t)){for(o=-1,i=t.length;++o<i;)if(r(t[o],e,s))return!0;return!1}switch(t.tag){case"wildcard":return null!=c(e,"_",s,!1);case"named":return null!=c(e,t.value,s,!1);case"static":return!1;case"optional":return r(t.value,e,s)}},m=function(t,e,s){if(Array.isArray(t))return u(t,(function(t){return m(t,e,s)}));switch(t.tag){case"wildcard":return c(e,"_",s,!0);case"named":return c(e,t.value,s,!0);case"static":return t.value;case"optional":return r(t.value,e,s)?m(t.value,e,s):""}},(e=function(t,r){var i,n,l;if(t instanceof e)return this.isRegex=t.isRegex,this.regex=t.regex,this.ast=t.ast,void(this.names=t.names);if(this.isRegex=t instanceof RegExp,"string"!=typeof t&&!this.isRegex)throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=t,null!=r){if(!Array.isArray(r))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(i=p(this.regex),r.length!==i)throw new Error("regex contains "+i+" groups but array of group names contains "+r.length);this.names=r}}else{if(""===t)throw new Error("argument must not be the empty string");if(t.replace(/\s+/g,"")!==t)throw new Error("argument must not contain whitespace");if(n={escapeChar:(null!=r?r.escapeChar:void 0)||a.escapeChar,segmentNameStartChar:(null!=r?r.segmentNameStartChar:void 0)||a.segmentNameStartChar,segmentNameCharset:(null!=r?r.segmentNameCharset:void 0)||a.segmentNameCharset,segmentValueCharset:(null!=r?r.segmentValueCharset:void 0)||a.segmentValueCharset,optionalSegmentStartChar:(null!=r?r.optionalSegmentStartChar:void 0)||a.optionalSegmentStartChar,optionalSegmentEndChar:(null!=r?r.optionalSegmentEndChar:void 0)||a.optionalSegmentEndChar,wildcardChar:(null!=r?r.wildcardChar:void 0)||a.wildcardChar},null==(l=d(n).pattern(t)))throw new Error("couldn't parse pattern");if(""!==l.rest)throw new Error("could only partially parse pattern");this.ast=l.value,this.regex=new RegExp(o(this.ast,n.segmentValueCharset)),this.names=s(this.ast)}}).prototype.match=function(t){var e,r;return null==(r=this.regex.exec(t))?null:(e=r.slice(1),this.names?h(this.names,e):e)},e.prototype.stringify=function(t){if(null==t&&(t={}),this.isRegex)throw new Error("can't stringify patterns generated from a regex");if(t!==Object(t))throw new Error("argument must be an object or undefined");return m(this.ast,t,{})},e.escapeForRegex=l,e.concatMap=n,e.stringConcatMap=u,e.regexGroupCount=p,e.keysAndValuesToObject=h,e.P=t,e.newParser=d,e.defaultOptions=a,e.astNodeToRegexString=o,e.astNodeToNames=s,e.getParam=c,e.astNodeContainsSegmentsForProvidedParams=r,e.stringify=m,e},null!==as.exports?rs.exports=os():ss.UrlPattern=os();var ls=as.exports,cs=Object.defineProperty,hs=Object.getOwnPropertyDescriptor,ds=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?hs(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&cs(e,r,i),i};const ps="sonic-router";let us=class extends(Et(Lt(et))){constructor(){super(...arguments),this.templateValueAttribute="data-route",this._location=document.location.href.replace(document.location.origin,"")}connectedCallback(){this.noShadowDom="",Ge.onChange(this),super.connectedCallback()}disconnectedCallback(){Ge.offChange(this),super.disconnectedCallback()}set location(t){this._location=t,this.requestUpdate()}get location(){return this._location}render(){let t=[];for(let e of this.templatePartsList){let r=e.getAttribute(this.templateValueAttribute),s=new RegExp(r),o=new ls(r);s.test(this.location)?t.push(e):o.match(this.location)&&(e.setAttribute("mode","patternMatching"),t.push(e))}return L`${se(t,((t,e)=>e+(new Date).getTime()),(t=>{var e;if(t.title&&(document.title=t.title),t.hasAttribute("dataProviderExpression")){let r="",s=t.getAttribute("dataProviderExpression");if("patternMatching"==t.getAttribute("mode")){const e=new ls(t.getAttribute(this.templateValueAttribute));r=new ls(s).stringify(e.match(this.location))}else{const o=new RegExp(t.getAttribute(this.templateValueAttribute));let i=(this.location+"").match(o);i&&(r=null==(e=i.shift())?void 0:e.replace(o,s))}return L`<div style="display:contents" dataProvider="${r}">${Nr(t)}</div>`}return Nr(t)}))}`}};ds([it()],us.prototype,"location",1),us=ds([st(ps)],us);try{customElements.define(ps,us)}catch(Fa){}var ms=Object.defineProperty,gs=Object.getOwnPropertyDescriptor;const bs="sonic-redirect";let fs=class extends(Et(et)){constructor(){super(...arguments),this.udpateCallBack=()=>{}}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.props)return;let t=this.getAttribute("onData").split("."),e=At.traverse(this.props,t);!e||At.isObject(e)&&e||Ge.changeFromComponent(this)}};fs=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?gs(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&ms(e,r,i),i})([st(bs)],fs);try{customElements.define(bs,fs)}catch(Fa){}var vs=Object.defineProperty,ys=Object.getOwnPropertyDescriptor,ws=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?ys(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&vs(e,r,i),i};const xs="sonic-states";let _s=class extends(Et(Lt(et))){constructor(){super(...arguments),this.state="",this.inverted=!1,this.statePath="",this.onAssign=null}connectedCallback(){if(super.connectedCallback(),this.hasAttribute("data-path")&&(this.statePath=this.getAttribute("data-path")),this.statePath){this.statePublisher=this.publisher;let t=this.statePath.split(".");for(let e of t)this.statePublisher=this.statePublisher[e];this.onAssign=t=>{this.state=t,this.requestUpdate()},this.statePublisher.onAssign(this.onAssign)}}disconnectedCallback(){this.statePath&&this.statePublisher.offAssign(this.onAssign),super.disconnectedCallback()}render(){let t=[],e=this.state;(!Array.isArray(e)&&At.isObject(e)||void 0===e)&&(e="");for(let r of this.templatePartsList){let s=r.getAttribute(this.templateValueAttribute),o=e;if(this.inverted&&(o=s,s=e),""==s&&(s=this.inverted?".*?":"^$"),new RegExp(s).test(o))t.push(r),r.removeAttribute("mode");else{let e=new ls(s);e.names.length>0&&e.match(o)&&(r.setAttribute("mode","patternMatching"),t.push(r))}}return L`${se(t,((t,e)=>e+(new Date).getTime()),(t=>{var r;if(t.title&&(document.title=t.title),t.hasAttribute("dataProviderExpression")){let s=t.getAttribute("dataProviderExpression"),o="",i=e,n=t.getAttribute(this.templateValueAttribute);if(this.inverted&&(i=n,n=e),""==n&&(n=this.inverted?"*":"^$"),"patternMatching"==t.getAttribute("mode")){const t=new ls(n);o=new ls(s).stringify(t.match(i))}else{const t=new RegExp(n);let e=(i+"").match(t);e&&(o=null==(r=e.shift())?void 0:r.replace(t,s))}return L`<div style="display:contents" dataProvider="${o}">${Nr(t)}</div>`}return Nr(t)}))}`}};ws([it()],_s.prototype,"state",2),ws([it({type:Boolean,reflect:!0})],_s.prototype,"inverted",2),_s=ws([st(xs)],_s);try{customElements.define(xs,_s)}catch(Fa){}var ks=Object.defineProperty,As=Object.getOwnPropertyDescriptor;let Ps=class extends et{createRenderRoot(){return this}render(){return L`<slot></slot>`}};Ps=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?As(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&ks(e,r,i),i})([st("sonic-scope")],Ps);var $s=Object.defineProperty,Cs=Object.getOwnPropertyDescriptor,Ss=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Cs(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&$s(e,r,i),i};let Os=class extends(Et(et)){constructor(){super(...arguments),this.text="Example"}render(){return L`${this.text}`}};Ss([it()],Os.prototype,"text",2),Os=Ss([st("sonic-example")],Os);const Es=n`:host{--sc-font-family-base:"Inter var",-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--sc-font-weight-base:400;--sc-font-style-base:normal;--sc-headings-font-family:var(--sc-font-family-base);--sc-headings-font-style:var(--sc-font-style-base);--sc-headings-line-height:1.1;--sc-headings-font-weight:700;--sc-headings-text-transform:none;--sc-btn-font-weight:var(--sc-font-weight-base);--sc-btn-font-family:var(--sc-font-family-base);--sc-btn-font-style:var(--sc-font-style-base);--sc-rounded-sm:calc(var(--sc-rounded) * 0.5);--sc-rounded:0.375rem;--sc-rounded-md:calc(var(--sc-rounded) * 1.8);--sc-rounded-lg:calc(var(--sc-rounded) * 3.5);--sc-rounded-xl:calc(var(--sc-rounded) * 7);--sc-rounded-size-intensity:calc((1em - 1rem) * .4);--sc-btn-rounded-intensity:1.4;--sc-btn-font-weight:500;--sc-btn-rounded:calc((var(--sc-rounded) + var(--sc-rounded-size-intensity)) * var(--sc-btn-rounded-intensity) );--sc-placeholder-bg:rgba(17, 24, 39, 0.05);--sc-shadow-sm:0 1px 3px 0 rgb(0 0 0 / 0.1),0 1px 2px -1px rgb(0 0 0 / 0.1);--sc-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1),0 2px 4px -2px rgb(0 0 0 / 0.1);--sc-shadow-lg:0 10px 15px -3px rgb(0 0 0 / 0.1),0 4px 6px -4px rgb(0 0 0 / 0.1);--sc-shadow-xl:0 20px 25px -5px rgb(0 0 0 / 0.1),0 8px 10px -6px rgb(0 0 0 / 0.1);--sc-shadow-2xl:0 25px 50px -12px rgb(0 0 0 / 0.25);--sc-border-width:max(1px, 0.12rem);--sc-form-height:2.5em;--sc-form-border-width:var(--sc-border-width);--sc-input-bg:var(--sc-base-100);--sc-input-border-color:var(--sc-input-bg);--sc-input-rounded-intensity:1.4;--sc-input-rounded:calc((var(--sc-rounded) + var(--sc-rounded-size-intensity)) * var(--sc-input-rounded-intensity) );--sc-label-font-weight:500;--sc-contrast-content:#fff;--sc-contrast:#11151f;--sc-scrollbar-bg:var(--sc-base-400);--sc-body-bg:var(--sc-base)}`,zs=n`:host{--sc-primary:var(--sc-base-800);--sc-info:#2563eb;--sc-danger:#f43f5e;--sc-warning:#f97316;--sc-success:#14b8a6;--sc-primary-content:var(--sc-base);--sc-info-content:var(--sc-base);--sc-danger-content:var(--sc-base);--sc-warning-content:var(--sc-base);--sc-success-content:var(--sc-base);--sc-base:#fff;--sc-base-50:#f8fafc;--sc-base-100:#f1f5f9;--sc-base-200:#e2e8f0;--sc-base-300:#cbd5e1;--sc-base-400:#94a3b8;--sc-base-500:#64748b;--sc-base-600:#475569;--sc-base-700:#334155;--sc-base-800:#1e293b;--sc-base-900:#0f172a;--sc-base-content:var(--sc-base-700);--sc-input-bg:var(--sc-base-100);--sc-input-color:var(--sc-base-content)}`,js=n``,Ds=n`:host([theme=dark]){${js}}@media (prefers-color-scheme:dark){:host([theme=auto]){${js}}}`;var Ls=n`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input:-ms-input-placeholder,textarea:-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where([class~="lead"]):not(:where([class~="not-prose"] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~="not-prose"] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~="not-prose"] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(thead th strong):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(ol):not(:where([class~="not-prose"] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol[type="A"]):not(:where([class~="not-prose"] *)){list-style-type:upper-alpha}.prose :where(ol[type="a"]):not(:where([class~="not-prose"] *)){list-style-type:lower-alpha}.prose :where(ol[type="A" s]):not(:where([class~="not-prose"] *)){list-style-type:upper-alpha}.prose :where(ol[type="a" s]):not(:where([class~="not-prose"] *)){list-style-type:lower-alpha}.prose :where(ol[type="I"]):not(:where([class~="not-prose"] *)){list-style-type:upper-roman}.prose :where(ol[type="i"]):not(:where([class~="not-prose"] *)){list-style-type:lower-roman}.prose :where(ol[type="I" s]):not(:where([class~="not-prose"] *)){list-style-type:upper-roman}.prose :where(ol[type="i" s]):not(:where([class~="not-prose"] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~="not-prose"] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~="not-prose"] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol > li):not(:where([class~="not-prose"] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul > li):not(:where([class~="not-prose"] *))::marker{color:var(--tw-prose-bullets)}.prose :where(hr):not(:where([class~="not-prose"] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~="not-prose"] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-left-width:.25rem;border-left-color:var(--tw-prose-quote-borders);quotes:"\\201c""\\201d""\\2018""\\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.prose :where(blockquote p:first-of-type):not(:where([class~="not-prose"] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~="not-prose"] *)):after{content:close-quote}.prose :where(h1):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~="not-prose"] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~="not-prose"] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~="not-prose"] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~="not-prose"] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~="not-prose"] *)){margin-top:2em;margin-bottom:2em}.prose :where(figure > *):not(:where([class~="not-prose"] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~="not-prose"] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose :where(code):not(:where([class~="not-prose"] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~="not-prose"] *)):before{content:"\`"}.prose :where(code):not(:where([class~="not-prose"] *)):after{content:"\`"}.prose :where(a code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(h1 code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(h2 code):not(:where([class~="not-prose"] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~="not-prose"] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(blockquote code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(thead th code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(pre):not(:where([class~="not-prose"] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.prose :where(pre code):not(:where([class~="not-prose"] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~="not-prose"] *)):before{content:none}.prose :where(pre code):not(:where([class~="not-prose"] *)):after{content:none}.prose :where(table):not(:where([class~="not-prose"] *)){width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~="not-prose"] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.prose :where(tbody tr):not(:where([class~="not-prose"] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~="not-prose"] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~="not-prose"] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~="not-prose"] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~="not-prose"] *)){vertical-align:top}.prose{--tw-prose-body: var(--sc-base-content);--tw-prose-headings: var(--sc-base-900);--tw-prose-lead: var(--sc-base-600);--tw-prose-links: var(--sc-base-900);--tw-prose-bold: var(--sc-base-900);--tw-prose-counters: var(--sc-base-500);--tw-prose-bullets: var(--sc-base-300);--tw-prose-hr: var(--sc-base-200);--tw-prose-quotes: var(--sc-base-900);--tw-prose-quote-borders: var(--sc-base-200);--tw-prose-captions: var(--sc-base-500);--tw-prose-code: var(--sc-base-900);--tw-prose-pre-code: var(--sc-base-200);--tw-prose-pre-bg: var(--sc-base-800);--tw-prose-th-borders: var(--sc-base-300);--tw-prose-td-borders: var(--sc-base-200);--tw-prose-invert-body: var(--sc-base-300);--tw-prose-invert-headings: var(--sc-base);--tw-prose-invert-lead: var(--sc-base-400);--tw-prose-invert-links: var(--sc-base);--tw-prose-invert-bold: var(--sc-base);--tw-prose-invert-counters: var(--sc-base-400);--tw-prose-invert-bullets: var(--sc-base-600);--tw-prose-invert-hr: var(--sc-base-700);--tw-prose-invert-quotes: var(--sc-base-100);--tw-prose-invert-quote-borders: var(--sc-base-700);--tw-prose-invert-captions: var(--sc-base-400);--tw-prose-invert-code: var(--sc-base);--tw-prose-invert-pre-code: var(--sc-base-300);--tw-prose-invert-pre-bg: var(--sc-base-900);--tw-prose-invert-th-borders: var(--sc-base-600);--tw-prose-invert-td-borders: var(--sc-base-700);font-size:1rem;line-height:1.75}.prose :where(p):not(:where([class~="not-prose"] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(video):not(:where([class~="not-prose"] *)){margin-top:2em;margin-bottom:2em}.prose :where(figure):not(:where([class~="not-prose"] *)){margin-top:2em;margin-bottom:2em}.prose :where(li):not(:where([class~="not-prose"] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol > li):not(:where([class~="not-prose"] *)){padding-left:.375em}.prose :where(ul > li):not(:where([class~="not-prose"] *)){padding-left:.375em}.prose :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.prose :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.prose :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.prose :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~="not-prose"] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(hr + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(h2 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(h3 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(h4 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.prose :where(thead th:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.prose :where(tbody td,tfoot td):not(:where([class~="not-prose"] *)){padding:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.prose :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~="not-prose"] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~="lead"]):not(:where([class~="not-prose"] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~="not-prose"] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.1111111em}.prose-sm :where(h1):not(:where([class~="not-prose"] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~="not-prose"] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~="not-prose"] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~="not-prose"] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~="not-prose"] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(video):not(:where([class~="not-prose"] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure):not(:where([class~="not-prose"] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure > *):not(:where([class~="not-prose"] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~="not-prose"] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(code):not(:where([class~="not-prose"] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~="not-prose"] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~="not-prose"] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~="not-prose"] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding:.6666667em 1em}.prose-sm :where(ol):not(:where([class~="not-prose"] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-left:1.5714286em}.prose-sm :where(ul):not(:where([class~="not-prose"] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-left:1.5714286em}.prose-sm :where(li):not(:where([class~="not-prose"] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol > li):not(:where([class~="not-prose"] *)){padding-left:.4285714em}.prose-sm :where(ul > li):not(:where([class~="not-prose"] *)){padding-left:.4285714em}.prose-sm :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.1428571em}.prose-sm :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.1428571em}.prose-sm :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~="not-prose"] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(hr):not(:where([class~="not-prose"] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(h2 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(h3 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(h4 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(table):not(:where([class~="not-prose"] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~="not-prose"] *)){padding-right:1em;padding-bottom:.6666667em;padding-left:1em}.prose-sm :where(thead th:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.prose-sm :where(thead th:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~="not-prose"] *)){padding:.6666667em 1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.prose-sm :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-base :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.75em;margin-bottom:.75em}.prose-base :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.prose-base :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.prose-base :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.prose-base :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.prose-base :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-base :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-lg :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.8888889em;margin-bottom:.8888889em}.prose-lg :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.prose-lg :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.prose-lg :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.prose-lg :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.prose-lg :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-lg :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-xl :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.8em;margin-bottom:.8em}.prose-xl :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.2em}.prose-xl :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.2em}.prose-xl :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.2em}.prose-xl :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.2em}.prose-xl :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-xl :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-2xl :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.8333333em;margin-bottom:.8333333em}.prose-2xl :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.prose-2xl :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.prose-2xl :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.prose-2xl :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.prose-2xl :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-2xl :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-tight :where(p,ul,ol,pre):not(:where([class~="not-prose"] *)){line-height:1.25;margin:0 0 .5em}.prose-tight :where(li):not(:where([class~="not-prose"] *)){margin-bottom:.5em}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:-webkit-sticky;position:sticky}.top-0{top:0px}.left-0{left:0px}.right-1{right:.25rem}.bottom-1{bottom:.25rem}.bottom-4{bottom:1rem}.left-4{left:1rem}.right-4{right:1rem}.top-\\[-1px\\]{top:-1px}.right-5{right:1.25rem}.top-1\\/2{top:50%}.bottom-0{bottom:0px}.-right-1{right:-.25rem}.-bottom-1{bottom:-.25rem}.z-10{z-index:10}.z-20{z-index:20}.z-0{z-index:0}.col-span-full{grid-column:1 / -1}.col-span-3{grid-column:span 3 / span 3}.col-span-2{grid-column:span 2 / span 2}.mx-auto{margin-left:auto;margin-right:auto}.my-8{margin-top:2rem;margin-bottom:2rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-auto{margin-top:auto;margin-bottom:auto}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-\\[-3vw\\]{margin-left:-3vw;margin-right:-3vw}.my-4{margin-top:1rem;margin-bottom:1rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.mb-4{margin-bottom:1rem}.mt-5{margin-top:1.25rem}.mb-1{margin-bottom:.25rem}.mb-6{margin-bottom:1.5rem}.mr-4{margin-right:1rem}.mb-2{margin-bottom:.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.mb-5{margin-bottom:1.25rem}.mt-8{margin-top:2rem}.mr-3{margin-right:.75rem}.mt-\\[\\.15em\\]{margin-top:.15em}.mb-10{margin-bottom:2.5rem}.mb-7{margin-bottom:1.75rem}.mb-12{margin-bottom:3rem}.mb-3{margin-bottom:.75rem}.mt-2{margin-top:.5rem}.ml-\\[\\.10em\\]{margin-left:.1em}.ml-3{margin-left:.75rem}.mt-4{margin-top:1rem}.mt-1{margin-top:.25rem}.mr-2{margin-right:.5rem}.mt-3{margin-top:.75rem}.ml-auto{margin-left:auto}.mb-\\[2em\\]{margin-bottom:2em}.mr-1{margin-right:.25rem}.mb-20{margin-bottom:5rem}.ml-2{margin-left:.5rem}.mr-\\[\\.25em\\]{margin-right:.25em}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-12{height:3rem}.h-20{height:5rem}.h-2{height:.5rem}.h-5{height:1.25rem}.h-1\\/2{height:50%}.h-96{height:24rem}.max-h-\\[10rem\\]{max-height:10rem}.w-full{width:100%}.w-72{width:18rem}.w-12{width:3rem}.w-20{width:5rem}.w-2{width:.5rem}.w-5{width:1.25rem}.w-10\\/12{width:83.333333%}.w-24{width:6rem}.w-\\[1\\.2em\\]{width:1.2em}.min-w-full{min-width:100%}.min-w-max{min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content}.min-w-\\[11rem\\]{min-width:11rem}.min-w-\\[5rem\\]{min-width:5rem}.max-w-lg{max-width:32rem}.max-w-xs{max-width:20rem}.max-w-\\[80ch\\]{max-width:80ch}.max-w-\\[32rem\\]{max-width:32rem}.max-w-\\[20rem\\]{max-width:20rem}.max-w-none{max-width:none}.flex-shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\\/2{--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\\/2{--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.grid-cols-\\[minmax\\(0\\,1fr\\)\\,minmax\\(0\\,4fr\\)\\]{grid-template-columns:minmax(0,1fr) minmax(0,4fr)}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-\\[1fr\\,_2fr\\]{grid-template-columns:1fr 2fr}.grid-cols-\\[minmax\\(0\\,_3fr\\)_minmax\\(0\\,_2fr\\)\\]{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\\[minmax\\(6rem\\,_min\\(20\\%\\,_10rem\\)\\)\\,_1fr\\]{grid-template-columns:minmax(6rem,min(20%,10rem)) 1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-around{justify-content:space-around}.gap-5{gap:1.25rem}.gap-8{gap:2rem}.gap-3{gap:.75rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-10{gap:2.5rem}.gap-1{gap:.25rem}.gap-6{gap:1.5rem}.gap-\\[1\\.5em\\]{gap:1.5em}.gap-\\[\\.2rem_\\.7rem\\]{gap:.2rem .7rem}.gap-\\[\\.25em\\]{gap:.25em}.gap-x-10{-moz-column-gap:2.5rem;column-gap:2.5rem}.gap-x-\\[\\.75em\\]{-moz-column-gap:.75em;column-gap:.75em}.self-start{align-self:flex-start}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-lg{border-radius:var(--sc-rounded-lg)}.rounded-md{border-radius:var(--sc-rounded-md)}.rounded{border-radius:var(--sc-rounded)}.rounded-full{border-radius:9999px}.rounded-t-md{border-top-left-radius:var(--sc-rounded-md);border-top-right-radius:var(--sc-rounded-md)}.border{border-width:var(--sc-border-width)}.border-b-\\[1px\\]{border-bottom-width:1px}.border-solid{border-style:solid}.border-dotted{border-style:dotted}.border-success{border-color:var(--sc-success)}.border-t-neutral-200{border-top-color:var(--sc-base-200)}.border-b-neutral-100{border-bottom-color:var(--sc-base-100)}.border-b-neutral-300{border-bottom-color:var(--sc-base-300)}.bg-danger{background-color:var(--sc-danger)}.bg-neutral-0{background-color:var(--sc-base)}.bg-neutral-200{background-color:var(--sc-base-200)}.bg-contrast{background-color:var(--sc-contrast)}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-\\[rgba\\(0\\,0\\,10\\,\\.2\\)\\]{--tw-gradient-from: rgba(0,0,10,.2);--tw-gradient-to: rgb(0 0 10 / 0);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.object-contain{-o-object-fit:contain;object-fit:contain}.p-7{padding:1.75rem}.p-4{padding:1rem}.p-3{padding:.75rem}.p-5{padding:1.25rem}.p-8{padding:2rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-7{padding-top:1.75rem;padding-bottom:1.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.px-\\[3vw\\]{padding-left:3vw;padding-right:3vw}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.pt-20{padding-top:5rem}.pr-3{padding-right:.75rem}.pt-\\[\\.06em\\]{padding-top:.06em}.text-center{text-align:center}.font-headings{font-family:var(--sc-headings-font-family)}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-xs{font-size:.75rem;line-height:1rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.font-black{font-weight:900}.font-medium{font-weight:500}.font-extrabold{font-weight:800}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.leading-none{line-height:1}.leading-tight{line-height:1.25}.text-neutral-0{color:var(--sc-base)}.text-neutral-300{color:var(--sc-base-300)}.text-primary{color:var(--sc-primary)}.text-neutral-500{color:var(--sc-base-500)}.text-contrast-content{color:var(--sc-contrast-content)}.text-neutral-400{color:var(--sc-base-400)}.text-info{color:var(--sc-info)}.underline{-webkit-text-decoration-line:underline;text-decoration-line:underline}.no-underline{-webkit-text-decoration-line:none;text-decoration-line:none}.opacity-60{opacity:.6}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0_0_2rem_rgba\\(0\\,0\\,0\\,0\\.2\\)\\]{--tw-shadow: 0 0 2rem rgba(0,0,0,.2);--tw-shadow-colored: 0 0 2rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-danger{--tw-shadow-color: var(--sc-danger);--tw-shadow: var(--tw-shadow-colored)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.\\[display\\:none\\]{display:none}.hover\\:text-neutral-400:hover{color:var(--sc-base-400)}.group:hover .group-hover\\:underline{-webkit-text-decoration-line:underline;text-decoration-line:underline}.prose-img\\:rounded-lg :is(:where(img):not(:where([class~="not-prose"] *))){border-radius:var(--sc-rounded-lg)}@media (min-width: 640px){.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width: 768px){.md\\:block{display:block}.md\\:hidden{display:none}.md\\:grid-cols-\\[minmax\\(0\\,2fr\\)\\,minmax\\(0\\,5fr\\)\\]{grid-template-columns:minmax(0,2fr) minmax(0,5fr)}.md\\:py-4{padding-top:1rem;padding-bottom:1rem}.md\\:text-base{font-size:1rem;line-height:1.5rem}}@media (min-width: 1024px){.lg\\:prose-lg{font-size:1.125rem;line-height:1.7777778}.lg\\:prose-lg :where(p):not(:where([class~="not-prose"] *)){margin-top:1.3333333em;margin-bottom:1.3333333em}.lg\\:prose-lg :where([class~="lead"]):not(:where([class~="not-prose"] *)){font-size:1.2222222em;line-height:1.4545455;margin-top:1.0909091em;margin-bottom:1.0909091em}.lg\\:prose-lg :where(blockquote):not(:where([class~="not-prose"] *)){margin-top:1.6666667em;margin-bottom:1.6666667em;padding-left:1em}.lg\\:prose-lg :where(h1):not(:where([class~="not-prose"] *)){font-size:2.6666667em;margin-top:0;margin-bottom:.8333333em;line-height:1}.lg\\:prose-lg :where(h2):not(:where([class~="not-prose"] *)){font-size:1.6666667em;margin-top:1.8666667em;margin-bottom:1.0666667em;line-height:1.3333333}.lg\\:prose-lg :where(h3):not(:where([class~="not-prose"] *)){font-size:1.3333333em;margin-top:1.6666667em;margin-bottom:.6666667em;line-height:1.5}.lg\\:prose-lg :where(h4):not(:where([class~="not-prose"] *)){margin-top:1.7777778em;margin-bottom:.4444444em;line-height:1.5555556}.lg\\:prose-lg :where(img):not(:where([class~="not-prose"] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.lg\\:prose-lg :where(video):not(:where([class~="not-prose"] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.lg\\:prose-lg :where(figure):not(:where([class~="not-prose"] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.lg\\:prose-lg :where(figure > *):not(:where([class~="not-prose"] *)){margin-top:0;margin-bottom:0}.lg\\:prose-lg :where(figcaption):not(:where([class~="not-prose"] *)){font-size:.8888889em;line-height:1.5;margin-top:1em}.lg\\:prose-lg :where(code):not(:where([class~="not-prose"] *)){font-size:.8888889em}.lg\\:prose-lg :where(h2 code):not(:where([class~="not-prose"] *)){font-size:.8666667em}.lg\\:prose-lg :where(h3 code):not(:where([class~="not-prose"] *)){font-size:.875em}.lg\\:prose-lg :where(pre):not(:where([class~="not-prose"] *)){font-size:.8888889em;line-height:1.75;margin-top:2em;margin-bottom:2em;border-radius:.375rem;padding:1em 1.5em}.lg\\:prose-lg :where(ol):not(:where([class~="not-prose"] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.5555556em}.lg\\:prose-lg :where(ul):not(:where([class~="not-prose"] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.5555556em}.lg\\:prose-lg :where(li):not(:where([class~="not-prose"] *)){margin-top:.6666667em;margin-bottom:.6666667em}.lg\\:prose-lg :where(ol > li):not(:where([class~="not-prose"] *)){padding-left:.4444444em}.lg\\:prose-lg :where(ul > li):not(:where([class~="not-prose"] *)){padding-left:.4444444em}.lg\\:prose-lg :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.8888889em;margin-bottom:.8888889em}.lg\\:prose-lg :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.lg\\:prose-lg :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.lg\\:prose-lg :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.lg\\:prose-lg :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.lg\\:prose-lg :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~="not-prose"] *)){margin-top:.8888889em;margin-bottom:.8888889em}.lg\\:prose-lg :where(hr):not(:where([class~="not-prose"] *)){margin-top:3.1111111em;margin-bottom:3.1111111em}.lg\\:prose-lg :where(hr + *):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(h2 + *):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(h3 + *):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(h4 + *):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(table):not(:where([class~="not-prose"] *)){font-size:.8888889em;line-height:1.5}.lg\\:prose-lg :where(thead th):not(:where([class~="not-prose"] *)){padding-right:.75em;padding-bottom:.75em;padding-left:.75em}.lg\\:prose-lg :where(thead th:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.lg\\:prose-lg :where(thead th:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.lg\\:prose-lg :where(tbody td,tfoot td):not(:where([class~="not-prose"] *)){padding:.75em}.lg\\:prose-lg :where(tbody td:first-child,tfoot td:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.lg\\:prose-lg :where(tbody td:last-child,tfoot td:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.lg\\:prose-lg :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.lg\\:block{display:block}.lg\\:flex{display:flex}.lg\\:hidden{display:none}.lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\\:text-base{font-size:1rem;line-height:1.5rem}.lg\\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 1280px){.xl\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.xl\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.xl\\:text-lg{font-size:1.125rem;line-height:1.75rem}.xl\\:text-2xl{font-size:1.5rem;line-height:2rem}}
|
|
96
|
+
`,Ms=Object.defineProperty,Ns=Object.getOwnPropertyDescriptor,Fs=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Ns(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Ms(e,r,i),i};n`${i(Ls)}`;let Is=class extends et{constructor(){super(...arguments),this.theme="light",this.background=!1,this.color=!1,this.font=!1,this.contrastDarkMode=!1}connectedCallback(){super.connectedCallback(),window.addEventListener("message",(t=>this.receiveMessage(t)),!1),this.postCSSVars()}updated(){this.contrastBg()}postCSSVars(){const t=document.styleSheets,e=t.length;let r=[];for(let s=0;s<e;s++){let e=t[s];e.href&&(e.href.includes("googleapis")||e.href.includes("typekit.net"))&&r.push(e.href)}document.querySelectorAll("iframe").forEach((t=>{var e;return null==(e=t.contentWindow)?void 0:e.postMessage({type:"SonicTheme",variables:this.getCssVariables(),fonts:r},"*")}))}receiveMessage(t){let e=t.data;e.type&&"GetSonicTheme"==e.type&&this.postCSSVars()}getCssVariables(){let t=[],e=[...Is.styles.map((t=>t.styleSheet)),...Array.from(document.styleSheets)];for(let o of e)try{let e=null==o?void 0:o.cssRules;for(let r of e)if(r.style)for(let e of r.style)t.includes(e)||0!==e.indexOf("--sc")||t.push(e)}catch(Fa){}let r=window.getComputedStyle(this),s={};return t.forEach((t=>s[t]=r.getPropertyValue(t))),s}contrast(t,e){let r=parseInt(t.replace("#",""),16),s=Math.round(2.55*e),o=(r>>16)+s,i=(r>>8&255)+s,n=(255&r)+s;return"#"+(16777216+65536*(o<255?o<1?0:o:255)+256*(i<255?i<1?0:i:255)+(n<255?n<1?0:n:255)).toString(16).slice(1)}contrastBg(){if("dark"===this.theme&&this.contrastDarkMode&&this.background){let t=window.getComputedStyle(this).getPropertyValue("--sc-base");this.style.setProperty("--sc-body-bg",this.contrast(t,-2.5))}}render(){return L`<slot></slot>`}};Is.styles=[zs,Ds,Es,n`:host([background]){display:block!important;background:var(--sc-body-bg)!important;min-height:100vh}:host([contrastDarkMode]){transition:background-color 2.5s ease}:host([color]){color:var(--sc-base-content)}:host([font]){font-family:var(--sc-font-family-base);font-weight:var(--sc-font-weight-base);font-style:var(--sc-font-style-base)}`],Fs([it({type:String,reflect:!0})],Is.prototype,"theme",2),Fs([it({type:Boolean,reflect:!0})],Is.prototype,"background",2),Fs([it({type:Boolean,reflect:!0})],Is.prototype,"color",2),Fs([it({type:Boolean,reflect:!0})],Is.prototype,"font",2),Fs([it({type:Boolean,reflect:!0})],Is.prototype,"contrastDarkMode",2),Is=Fs([st("sonic-theme")],Is);var Rs=Object.defineProperty,Ts=Object.getOwnPropertyDescriptor,Vs=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Ts(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Rs(e,r,i),i};const Us="sonic-badge";let Bs=class extends et{constructor(){super(...arguments),this.type="default",this.variant="default"}render(){return L`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`}};Bs.styles=[n`:host{--sc-badge-gap:0.3em;--sc-badge-py:0.16em;--sc-badge-px:0.66em;--sc-badge-fs:1rem;--sc-badge-color:var(--sc-base-content, #1f2937);--sc-badge-bg:var(--sc-base-200, #e5e7eb);--sc-badge-border-with:var(--sc-form-border-width, 0.1rem);--sc-badge-border-color:transparent;--sc-badge-border:var(--sc-badge-border-with) solid var(--sc-badge-border-color);--sc-badge-rounded:calc(var(--sc-rounded) * 1000);--sc-badge-line-height:1.15;--sc-badge-fw:var(--sc-font-weight-base);display:inline-flex;align-items:center;box-sizing:border-box;line-height:var(--sc-badge-line-height);border-radius:var(--sc-badge-rounded);background:var(--sc-badge-bg);color:var(--sc-badge-color);font-family:var(--sc-badge-ff,var(--sc-font-family-base,inherit));font-weight:var(--sc-badge-fw);padding-top:var(--sc-badge-py);padding-bottom:var(--sc-badge-py);padding-left:var(--sc-badge-px);padding-right:var(--sc-badge-px);min-height:calc(var(--sc-badge-px) * 2);border:var(--sc-badge-border)}:host([type=primary]){--sc-badge-color:var(--sc-primary-content);--sc-badge-bg:var(--sc-primary)}:host([type=warning]){--sc-badge-color:var(--sc-warning-content);--sc-badge-bg:var(--sc-warning)}:host([type=danger]){--sc-badge-color:var(--sc-danger-content);--sc-badge-bg:var(--sc-danger)}:host([type=info]){--sc-badge-color:var(--sc-info-content);--sc-badge-bg:var(--sc-info)}:host([type=success]){--sc-badge-color:var(--sc-success-content);--sc-badge-bg:var(--sc-success)}:host([type=neutral]){--sc-badge-color:var(--sc-base);--sc-badge-bg:var(--sc-base-content)}:host{font-size:var(--sc-badge-fs);gap:var(--sc-badge-gap)}:host([size="2xs"]){--sc-badge-fs:0.58rem;--sc-badge-gap:0.3em}:host([size=xs]){--sc-badge-fs:0.68rem;--sc-badge-gap:0.35em}:host([size=sm]){--sc-badge-fs:0.85rem;--sc-badge-gap:0.35em}:host([size=lg]){--sc-badge-line-height:1.2;--sc-badge-fs:1.25rem;--sc-badge-gap:0.5em}:host([size=xl]){--sc-badge-line-height:1.2;--sc-badge-fs:1.5rem;--sc-badge-gap:0.5em}:host([variant=outline][type]){border-width:var(--sc-badge-border-with)!important;border-color:var(--sc-badge-bg);color:var(--sc-badge-bg);background:0 0}:host([variant=outline][type=default]){border-color:var(--sc-base-400);color:var(--sc-base-500);background:0 0}:host([variant=ghost][type]){color:var(--sc-badge-bg);background:0 0;padding:0}:host([variant=ghost][type=default]){color:var(--sc-badge-color);background:0 0}`],Vs([it({type:String,reflect:!0})],Bs.prototype,"type",2),Vs([it({type:String,reflect:!0})],Bs.prototype,"variant",2),Vs([it({type:String,reflect:!0})],Bs.prototype,"size",2),Bs=Vs([st(Us)],Bs);try{customElements.define(Us,Bs)}catch(Fa){}var qs=Object.defineProperty,Hs=Object.getOwnPropertyDescriptor,Ks=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Hs(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&qs(e,r,i),i};const Ws="sonic-link";let Zs=class extends et{constructor(){super(...arguments),this.href="",this._location="",this.autoActive="partial",this._target=null,this.pushState=null}get location(){return this._location}set location(t){this._location=t,Ge.updateComponentActiveState(this)}connectedCallback(){this.href&&0!=this.href.indexOf("http")&&(Ge.onChange(this),this.location=document.location.href.replace(document.location.origin,"")),super.connectedCallback()}disconnectedCallback(){Ge.offChange(this),super.disconnectedCallback()}set target(t){this._target=t,class{static fixBlankLink(t){const e="undefined"==typeof require?null:require("electron");"_blank"==t.target&&t.addEventListener("click",(()=>{null==e||e.shell.openExternal(t.href)}))}}.fixBlankLink(this),this.requestUpdate()}get target(){return this._target}handlePushState(t){t.preventDefault(),Ge.changeFromComponent(this)}render(){return this.href?L`<a href="${this.href}" target="${Ie(this.target)}" @click="${this.pushState?this.handlePushState:null}"><slot></slot></a>`:L`<slot></slot>`}};Zs.styles=[n`a{color:inherit;text-decoration:none;display:contents}`],Ks([it({type:String})],Zs.prototype,"href",2),Ks([it({type:String})],Zs.prototype,"autoActive",2),Ks([it({type:String})],Zs.prototype,"target",1),Ks([it({type:Boolean})],Zs.prototype,"pushState",2),Zs=Ks([st(Ws)],Zs);try{customElements.define(Ws,Zs)}catch(Fa){}var Ys=Object.defineProperty,Qs=Object.getOwnPropertyDescriptor,Gs=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Qs(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Ys(e,r,i),i};const Js="sonic-progress";let Xs=class extends et{constructor(){super(...arguments),this.max=100,this.invert=!1,this.type="default",this.size="md"}render(){return L`<progress value="${Ie(this.value)}" max="${this.max}"></progress><div class="slot-container"><slot></slot><slot name="remaining"></slot></div>`}};Xs.styles=[ar,n`:host{--sc-progress-bg:var(--sc-input-bg, var(--sc-base-100, #f5f5f5));--sc-progress-color:var(--sc-base-content, #1f2937);--sc-progress-height:.6em;--sc-progress-fs:var(--sc-fs, 1rem);--sc-progress-fw:500;--sc-progress-rounded:var(--sc-rounded-lg);display:block;line-height:1.2;font-weight:var(--sc-progress-fw);font-size:var(--sc-progress-fs);color:var(--sc-progress-color)}progress{position:relative;width:100%;-webkit-appearance:none;appearance:none;overflow:hidden;border:none;height:var(--sc-progress-height);border-radius:var(--sc-progress-rounded);background-color:var(--sc-progress-bg);color:var(--sc-progress-color)}progress::-moz-progress-bar{background-color:var(--sc-progress-color);border-radius:var(--sc-progress-rounded)}progress:not([value])::-moz-progress-bar{background-color:var(--sc-progress-bg)}progress::-webkit-progress-bar{background-color:var(--sc-progress-bg)}progress::-webkit-progress-value{background-color:var(--sc-progress-color);border-radius:var(--sc-progress-rounded)}progress:indeterminate:after{background-color:var(--sc-progress-color);content:"";position:absolute;top:0;bottom:0;left:-40%;width:33.333333%;border-radius:var(--sc-progress-rounded);animation:progress-loading 3s infinite ease-in-out}@keyframes progress-loading{50%{left:107%}}:host([type=warning]){--sc-progress-color:var(--sc-warning)}:host([type=danger]){--sc-progress-color:var(--sc-danger)}:host([type=info]){--sc-progress-color:var(--sc-info)}:host([type=success]){--sc-progress-color:var(--sc-success)}:host([invert]){--sc-progress-bg:var(--sc-base-700)}:host([type=default][invert]){--sc-progress-color:var(--sc-base)}slot[name=remaining]{font-weight:var(--sc-font-weight-base);color:var(--sc-base-400);font-size:.85em;margin-top:.5em}.slot-container{display:flex;justify-content:space-between;gap:.5em;margin-top:.15em}`],Gs([it({type:Number})],Xs.prototype,"value",2),Gs([it({type:Number})],Xs.prototype,"max",2),Gs([it({type:Boolean})],Xs.prototype,"invert",2),Gs([it({type:String,reflect:!0})],Xs.prototype,"type",2),Gs([it({type:String,reflect:!0})],Xs.prototype,"size",2),Xs=Gs([st(Js)],Xs);try{customElements.define(Js,Xs)}catch(Fa){}const to=n`*{box-sizing:border-box}:host{--sc-input-height:var(--sc-form-height);--sc-input-border-width:var(--sc-form-border-width);--sc-input-color:var(--sc-base-content);--sc-item-rounded-tr:var(--sc-input-rounded);--sc-item-rounded-tl:var(--sc-input-rounded);--sc-item-rounded-bl:var(--sc-input-rounded);--sc-item-rounded-br:var(--sc-input-rounded);--sc-input-fs:var(--sc-fs, 1rem);--sc-input-ff:inherit;--sc-input-py:0.6em;--sc-input-px:1.15em;--sc-input-prefix-color:var(--sc-input-color);--sc-input-prefix-bg:var(--sc-input-bg);--sc-input-prefix-border-color:var(--sc-input-border-color);--sc-input-suffix-color:var(--sc-input-color);--sc-input-suffix-bg:var(--sc-input-bg);--sc-input-suffix-border-color:var(--sc-input-border-color);--sc-label-fs:var(--sc-fs, 1rem);--sc-label-fw:var(--sc-label-font-weight)}.form-element{display:block;flex-grow:1;width:100%;line-height:1.1;color:var(--sc-input-color);border-radius:var(--sc-item-rounded-tl) var(--sc-item-rounded-tr) var(--sc-item-rounded-br) var(--sc-item-rounded-bl);font-family:var(--sc-input-ff);background-color:var(--sc-input-bg,var(--sc-base,#fff));border:var(--sc-input-border-width) solid var(--sc-input-border-color,var(--sc-base-300,#aaa));width:100%;font-size:var(--sc-input-fs);padding-top:var(--sc-input-py);padding-bottom:var(--sc-input-py);padding-left:var(--sc-input-px);padding-right:var(--sc-input-px);min-height:var(--sc-input-height)}label{font-size:var(--sc-label-fs);font-weight:var(--sc-label-fw);line-height:1.2}.form-control{display:flex;width:100%}:host(:not([inlineContent])) .has-prefix slot[name=prefix],:host(:not([inlineContent])) .has-suffix slot[name=suffix]{min-width:var(--sc-input-height);box-sizing:border-box;display:flex;align-items:center;justify-content:center;line-height:1.1;flex-shrink:0;padding-left:calc(-1 * var(--sc-input-px));padding-right:calc(-1 * var(--sc-input-px))}:host(:not([inlineContent])) slot[name=prefix]{border-radius:var(--sc-item-rounded-tl) 0 0 var(--sc-item-rounded-bl);background-color:var(--sc-input-prefix-bg);color:var(--sc-input-prefix-color);border:var(--sc-input-border-width) solid var(--sc-input-prefix-border-color);margin-right:calc(-1 * var(--sc-input-border-width))}:host(:not([inlineContent])) slot[name=suffix]{border-radius:0 var(--sc-item-rounded-tr) var(--sc-item-rounded-br) 0;background-color:var(--sc-input-suffix-bg);color:var(--sc-input-suffix-color);border:var(--sc-input-border-width) solid var(--sc-input-suffix-border-color);margin-left:calc(-1 * var(--sc-input-border-width))}:host(:not([inlineContent])) .has-prefix .form-element{border-top-left-radius:0;border-bottom-left-radius:0}:host(:not([inlineContent])) .has-suffix .form-element{border-top-right-radius:0;border-bottom-right-radius:0}:host([inlineContent]){--sc-input-py:0}:host([inlineContent]) .form-element{display:flex;flex-wrap:wrap;align-items:center;gap:.35em;min-height:var(--sc-form-height)}:host([disabled]) .form-element-container{cursor:not-allowed}:host([variant=ghost]) .form-element{--sc-input-bg:transparent}:host([disabled]) .form-element{pointer-events:none;background-color:var(--sc-base-100);border-color:transparent;color:var(--sc-base-400)}::placeholder{color:inherit;opacity:.45}:focus::placeholder{opacity:0}.form-element:focus,.form-element:focus-visible,:host(:not([disabled])) .form-element:hover{filter:brightness(.97);outline:0}.form-label{margin-bottom:.22em;display:block}.form-description{color:var(--sc-base-400);font-size:.85em;margin-top:.2em;display:block}.form-element .form-element,.form-element>slot{all:unset!important}.hidden{display:none}.contents{display:contents}:host([error]){--sc-input-border-color:var(--sc-danger)}:host input:visited{display:none}:host([touched][required]) :not(:focus):invalid{--sc-input-border-color:var(--sc-danger);--sc-input-color:var(--sc-danger)}:host([touched][required]) :not(:focus):invalid+.select-chevron{--sc-input-color:var(--sc-danger)}:host([touched][required]) :not([value=""]):not(:focus):valid{--sc-input-border-color:var(--sc-success);--sc-input-color:var(--sc-success)}:host([touched][required]) :not(:focus):valid+.select-chevron{--sc-input-color:var(--sc-success)}:host([type=color]) .form-element{padding:0;border:0;min-width:var(--sc-input-height)}input[type=color]::-webkit-color-swatch-wrapper{padding:0}input[type=color]::-webkit-color-swatch{border:none;border-radius:var(--sc-item-rounded-tl) var(--sc-item-rounded-tr) var(--sc-item-rounded-br) var(--sc-item-rounded-bl)}:host([type=image]) .form-element{padding:0;border:none}input[type=reset],input[type=submit]{cursor:pointer}input[type=search]::-webkit-search-cancel-button{appearance:none;cursor:pointer;height:.65em;width:.65em;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE2LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgd2lkdGg9IjEyMy4wNXB4IiBoZWlnaHQ9IjEyMy4wNXB4IiB2aWV3Qm94PSIwIDAgMTIzLjA1IDEyMy4wNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTIzLjA1IDEyMy4wNTsiDQoJIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPGc+DQoJPHBhdGggZD0iTTEyMS4zMjUsMTAuOTI1bC04LjUtOC4zOTljLTIuMy0yLjMtNi4xLTIuMy04LjUsMGwtNDIuNCw0Mi4zOTlMMTguNzI2LDEuNzI2Yy0yLjMwMS0yLjMwMS02LjEwMS0yLjMwMS04LjUsMGwtOC41LDguNQ0KCQljLTIuMzAxLDIuMy0yLjMwMSw2LjEsMCw4LjVsNDMuMSw0My4xbC00Mi4zLDQyLjVjLTIuMywyLjMtMi4zLDYuMSwwLDguNWw4LjUsOC41YzIuMywyLjMsNi4xLDIuMyw4LjUsMGw0Mi4zOTktNDIuNGw0Mi40LDQyLjQNCgkJYzIuMywyLjMsNi4xLDIuMyw4LjUsMGw4LjUtOC41YzIuMy0yLjMsMi4zLTYuMSwwLTguNWwtNDIuNS00Mi40bDQyLjQtNDIuMzk5QzEyMy42MjUsMTcuMTI1LDEyMy42MjUsMTMuMzI1LDEyMS4zMjUsMTAuOTI1eiIvPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPC9zdmc+DQo=);background-size:contain;background-repeat:no-repeat}`;var eo=Object.defineProperty,ro=Object.getOwnPropertyDescriptor,so=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?ro(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&eo(e,r,i),i};const oo=t=>{class e extends t{constructor(...t){super(),this.forceAutoFill=!1,this._type="text"}validateFormElement(){var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("input");e&&!e.checkValidity()&&(this.getFormPublisher().isFormValid=!1,e.reportValidity())}set type(t){this.hasAttribute("type")&&!this.forceAutoFill&&(t=this.getAttribute("type")),this._type=t,this.requestUpdate()}get type(){return this._type}get description(){return this._description}set description(t){this.hasAttribute("description")&&!this.forceAutoFill&&(t=this.getAttribute("description")),this._description=t,this.requestUpdate()}get label(){return this._label}set label(t){this.hasAttribute("label")&&!this.forceAutoFill&&(t=this.getAttribute("label")),this._label=t,this.requestUpdate()}}return so([it()],e.prototype,"forceAutoFill",2),so([it({type:String})],e.prototype,"type",1),so([it()],e.prototype,"description",1),so([it()],e.prototype,"label",1),so([it({type:Number})],e.prototype,"tabindex",2),so([it({type:String})],e.prototype,"autocomplete",2),e},io=Zt(class extends Yt{constructor(t){var e;if(super(t),t.type!==Kt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var r,s;if(void 0===this.et){this.et=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(r=this.st)||void 0===r?void 0:r.has(t))&&this.et.add(t);return this.render(e)}const o=t.element.classList;this.et.forEach((t=>{t in e||(o.remove(t),this.et.delete(t))}));for(const i in e){const t=!!e[i];t===this.et.has(i)||(null===(s=this.st)||void 0===s?void 0:s.has(i))||(t?(o.add(i),this.et.add(i)):(o.remove(i),this.et.delete(i)))}return M}});
|
|
97
|
+
/**
|
|
98
|
+
* @license
|
|
99
|
+
* Copyright 2018 Google LLC
|
|
100
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
101
|
+
*/var no=Object.defineProperty,ao=Object.getOwnPropertyDescriptor,lo=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?ao(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&no(e,r,i),i};const co="sonic-input";let ho=class extends(oo(rr(Et(et)))){constructor(){super(...arguments),this.readonly=!1,this.inlineContent=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1}updated(){var t,e,r,s;this.hasLabel=!(!this.label&&!(null==(t=this.slotLabelNodes)?void 0:t.length)),this.hasDescription=!(!this.description&&!(null==(e=this.slotDescriptionNodes)?void 0:e.length)),this.hasSuffix=!!(null==(r=this.slotSuffixNodes)?void 0:r.length),this.hasPrefix=!!(null==(s=this.slotPrefixNodes)?void 0:s.length)}onSlotChange(){this.requestUpdate()}inlineContentFocus(){var t;this.inlineContent&&(console.log("oypouaze"),null==(t=this.input)||t.focus())}render(){const t={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix};return L`<label for="form-element" class="${this.hasLabel?"form-label":"hidden"}">${this.label?this.label:""}<slot name="label" @slotchange="${this.onSlotChange}"></slot></label><div @click="${this.inlineContentFocus}" class="form-control ${io(t)}"><div class="${this.inlineContent?"form-element form-element-wrapper":"contents"}"><slot name="prefix" @slotchange="${this.onSlotChange}"></slot><input id="form-element" part="input" class="form-element input" @input="${this.handleChange}" @blur="${this.handleBlur}" type="${this.type}" disabled="${Ie(this.disabled)}" ?readonly="${this.readonly}" ?autofocus="${this.autofocus}" list="${Ie(this.list)}" tabindex="${Ie(this.tabindex)}" pattern="${Ie(this.pattern)}" min="${Ie(this.min)}" max="${Ie(this.max)}" step="${Ie(this.step)}" src="${Ie(this.src)}" minlength="${Ie(this.minlength)}" maxlength="${Ie(this.maxlength)}" placeholder="${Ie(this.placeholder)}" required="${Ie(this.required)}" autocomplete="${Ie(this.autocomplete)}" .name="${this.name}" .value="${this.value}"><slot name="suffix" @slotchange="${this.onSlotChange}"></slot></div></div><slot name="description" class="${this.hasDescription?"form-description":"hidden"}">${this.description?L`${this.description}`:""}</slot>`}};ho.styles=[ar,to],lo([it({type:String,reflect:!0})],ho.prototype,"size",2),lo([it({type:String})],ho.prototype,"list",2),lo([it({type:String})],ho.prototype,"placeholder",2),lo([it({type:String})],ho.prototype,"pattern",2),lo([it({type:String})],ho.prototype,"min",2),lo([it({type:String})],ho.prototype,"max",2),lo([it({type:Boolean})],ho.prototype,"readonly",2),lo([it({type:Number})],ho.prototype,"step",2),lo([it({type:Number})],ho.prototype,"minlength",2),lo([it({type:Number})],ho.prototype,"maxlength",2),lo([it({type:String})],ho.prototype,"src",2),lo([it({type:Boolean,reflect:!0})],ho.prototype,"inlineContent",2),lo([pt({slot:"label"})],ho.prototype,"slotLabelNodes",2),lo([pt({slot:"description"})],ho.prototype,"slotDescriptionNodes",2),lo([pt({slot:"suffix"})],ho.prototype,"slotSuffixNodes",2),lo([pt({slot:"prefix"})],ho.prototype,"slotPrefixNodes",2),lo([lt("input")],ho.prototype,"input",2),lo([nt()],ho.prototype,"hasDescription",2),lo([nt()],ho.prototype,"hasLabel",2),lo([nt()],ho.prototype,"hasSuffix",2),lo([nt()],ho.prototype,"hasPrefix",2),ho=lo([st(co)],ho);try{customElements.define(co,ho)}catch(Fa){}var po=Object.defineProperty,uo=Object.getOwnPropertyDescriptor,mo=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?uo(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&po(e,r,i),i};const go="sonic-checkbox";let bo=class extends(nr(oo(rr(Et(et))))){constructor(){super(...arguments),this.touched=!1,this.iconName="check",this.hasDescription=!1}updated(){var t;this.hasDescription=!(!this.description&&!(null==(t=this.slotDescriptionNodes)?void 0:t.length))}connectedCallback(){this.type="checkbox",super.connectedCallback()}render(){return L`<label class="checkbox-container ${this.disabled?"disabled":""}"><span class="icon-container"><input type="${this.type}" @change="${this.handleChange}" @blur="${this.handleBlur}" ?required="${this.required}" .disabled="${Ie(this.disabled)}" .checked="${Ie(this.checked)}" .name="${this.name}" .value="${this.value}" ?autofocus="${this.autofocus}"><sonic-icon name="${this.iconName}" class="sc-input-icon"></sonic-icon></span><div class="checkbox-text">${this.label?this.label:""}<slot></slot><slot name="description" class="${this.hasDescription?"description":"hidden"}">${this.description?L`${this.description}`:""}</slot></div></label>`}};bo.styles=[ar,n`:host{--sc-checkbox-border-width:var(--sc-form-border-width);--sc-checkbox-border-color:transparent}*{box-sizing:border-box}.checkbox-container{min-height:1.4em;display:flex;gap:.5em;line-height:1.2;align-items:flex-start;font-size:var(--sc-fs)}.icon-container{position:relative;display:flex;flex-shrink:0}input{box-sizing:border-box;appearance:none;flex-shrink:0;height:calc(var(--sc-fs) * 1.25);width:calc(var(--sc-fs) * 1.25);display:block;cursor:pointer;border-radius:.25em;transition:.2s;outline:0;margin:0;background-color:var(--sc-base-200);border:var(--sc-checkbox-border-width) solid var(--sc-checkbox-border-color)}:host(:not([disabled])) input:active,input:focus{box-shadow:0 0 0 2px var(--sc-primary)}:host(:not([disabled])) label{cursor:pointer}sonic-icon{line-height:0;position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%) scale(0);transition:transform .2s ease-in-out;color:var(--sc-primary-content)}.description{color:var(--sc-base-400);font-size:.85em;margin-top:.2em;display:block}input:checked,input[checked=true]{background:var(--sc-primary)}input:checked+sonic-icon,input[checked=true]+sonic-icon{transform:translateX(-50%) translateY(-50%) scale(1)}.disabled{cursor:not-allowed}.disabled input{opacity:.4}.disabled .checkbox-text{opacity:.6}::slotted(a){color:inherit;text-decoration:underline!important}::slotted(a:hover){text-decoration:none!important}.hidden{display:none}`],mo([it({type:Boolean,reflect:!0})],bo.prototype,"touched",2),mo([it({type:String})],bo.prototype,"iconName",2),mo([pt({slot:"description"})],bo.prototype,"slotDescriptionNodes",2),mo([it({type:Boolean})],bo.prototype,"hasDescription",2),bo=mo([st(go)],bo);try{customElements.define(go,bo)}catch(Fa){}var fo=Object.defineProperty,vo=Object.getOwnPropertyDescriptor;const yo="sonic-radio";let wo=class extends bo{constructor(){super(),this.radio=!0}connectedCallback(){super.connectedCallback(),this.type="radio"}};wo.styles=[bo.styles,n`:host input{border-radius:50%}:host sonic-icon{border-radius:50%;overflow:hidden;background-color:var(--sc-primary-content);line-height:0;display:block;font-size:0;height:10px;width:10px}`],wo=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?vo(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&fo(e,r,i),i})([st(yo)],wo);try{customElements.define(yo,wo)}catch(Fa){}var xo=Object.defineProperty,_o=Object.getOwnPropertyDescriptor,ko=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?_o(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&xo(e,r,i),i};const Ao="sonic-select";let Po=class extends(rr(Et(et))){constructor(){super(...arguments),this.valueKey="value",this.wordingKey="wording",this.multiple=!1,this._options=[],this._value="",this.forceAutoFill=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1}set options(t){this._options=t,!this.value&&this._options.length>0&&(this.value=this._options[0][this.valueKey]),this.requestUpdate()}get options(){return this._options}get value(){return this._value}set value(t){t&&this._value!=t&&(this._value=t,this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?gt.getInstance().get(this.formDataProvider)[this._name]=t:this.publisher&&(this.publisher[this._name]=t),this.requestUpdate())}connectedCallback(){super.connectedCallback();let t=this.querySelectorAll("option");t.length>0&&(this.options=Array.from(t).map((t=>({value:t.value,wording:t.text}))))}get description(){return this._description}set description(t){this.hasAttribute("description")&&!this.forceAutoFill&&(t=this.getAttribute("description")),this._description=t,this.requestUpdate()}get label(){return this._label}set label(t){this.hasAttribute("label")&&!this.forceAutoFill&&(t=this.getAttribute("label")),this._label=t,this.requestUpdate()}updated(){var t,e,r,s;this.hasLabel=!(!this.label&&!(null==(t=this.slotLabelNodes)?void 0:t.length)),this.hasDescription=!(!this.description&&!(null==(e=this.slotDescriptionNodes)?void 0:e.length)),this.hasSuffix=!!(null==(r=this.slotSuffixNodes)?void 0:r.length),this.hasPrefix=!!(null==(s=this.slotPrefixNodes)?void 0:s.length)}onSlotChange(){this.requestUpdate()}validateFormElement(){var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("select");e&&!e.checkValidity()&&(this.getFormPublisher().isFormValid=!1,e.reportValidity())}render(){const t={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix};return L`<label for="form-element" class="${this.hasLabel?"form-label":"hidden"}">${this.label?this.label:""}<slot name="label" @slotchange="${this.onSlotChange}"></slot></label><div class="form-control ${io(t)}"><slot name="prefix" @slotchange="${this.onSlotChange}"></slot><div class="form-select-wrapper"><select @change="${this.handleChange}" @blur="${this.handleBlur}" disabled="${Ie(this.disabled)}" ?required="${this.required}" ?multiple="${this.multiple}" size="${Ie(this.selectSize)}" ?autofocus="${this.autofocus}" .value="${this.value}" class="form-element">${se(this.options,(t=>t[this.valueKey]),(t=>{const e=this.value==t[this.valueKey]?"selected":null;return L`<option selected="${Ie(e)}" value="${t[this.valueKey]}">${t[this.wordingKey]}</option>`}))}<slot></slot></select><sonic-icon class="select-chevron" name="nav-arrow-down" size="${this.size}"></sonic-icon></div><slot name="suffix" @slotchange="${this.onSlotChange}"></slot></div><slot name="description" class="${this.hasDescription?"form-description":"hidden"}">${this.description?L`${this.description}`:""}</slot>`}};Po.styles=[to,n`.form-element{appearance:none;padding-right:2.5em}.form-select-wrapper{position:relative;width:100%}sonic-icon{position:absolute;right:1em;top:50%;pointer-events:none;transform:translateY(-50%);color:var(--sc-input-color)}option{padding:.1rem 5rem;color:var(--sc-base-content);background:var(--sc-base)}`],ko([it({type:String})],Po.prototype,"valueKey",2),ko([it({type:String})],Po.prototype,"wordingKey",2),ko([it({type:Boolean})],Po.prototype,"multiple",2),ko([it({type:String,reflect:!0})],Po.prototype,"size",2),ko([it({type:Number})],Po.prototype,"selectSize",2),ko([it({type:Array})],Po.prototype,"options",1),ko([it()],Po.prototype,"value",1),ko([it({type:Boolean})],Po.prototype,"forceAutoFill",2),ko([it()],Po.prototype,"description",1),ko([it()],Po.prototype,"label",1),ko([pt({slot:"label"})],Po.prototype,"slotLabelNodes",2),ko([pt({slot:"description"})],Po.prototype,"slotDescriptionNodes",2),ko([pt({slot:"suffix"})],Po.prototype,"slotSuffixNodes",2),ko([pt({slot:"prefix"})],Po.prototype,"slotPrefixNodes",2),ko([nt()],Po.prototype,"hasDescription",2),ko([nt()],Po.prototype,"hasLabel",2),ko([nt()],Po.prototype,"hasSuffix",2),ko([nt()],Po.prototype,"hasPrefix",2),Po=ko([st(Ao)],Po);try{customElements.define(Ao,Po)}catch(Fa){}var $o=Object.defineProperty,Co=Object.getOwnPropertyDescriptor,So=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Co(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&$o(e,r,i),i};const Oo="sonic-textarea";let Eo=class extends(oo(rr(Et(et)))){constructor(){super(...arguments),this.size="",this.readonly=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1,this.slotClasses={}}updated(){var t,e,r,s;this.hasLabel=!(!this.label&&!(null==(t=this.slotLabelNodes)?void 0:t.length)),this.hasDescription=!(!this.description&&!(null==(e=this.slotDescriptionNodes)?void 0:e.length)),this.hasSuffix=!!(null==(r=this.slotSuffixNodes)?void 0:r.length),this.hasPrefix=!!(null==(s=this.slotPrefixNodes)?void 0:s.length)}onSlotChange(){this.requestUpdate()}validateFormElement(){var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("textarea");e&&!e.checkValidity()&&(this.getFormPublisher().isFormValid=!1,e.reportValidity())}render(){return L`<label for="form-element" class="${this.hasLabel?"form-label":"hidden"}">${this.label?this.label:""}<slot name="label" @slotchange="${this.onSlotChange}"></slot></label><div class="form-control"><textarea @input="${this.handleChange}" @blur="${this.handleBlur}" disabled="${Ie(this.disabled)}" ?required="${this.required}" ?autofocus="${this.autofocus}" rows="${Ie(this.rows)}" cols="${Ie(this.cols)}" maxlength="${Ie(this.maxlength)}" minlength="${Ie(this.minlength)}" ?readonly="${this.readonly}" spellcheck="${Ie(this.spellcheck)}" autocomplete="${Ie(this.autocomplete)}" tabindex="${Ie(this.tabindex)}" wrap="${Ie(this.wrap)}" placeholder="${this.placeholder}" class="form-element textarea custom-scroll">
|
|
102
|
+
${this.value}</textarea></div><slot name="description" class="${this.hasDescription?"form-description":"hidden"}">${this.description?L`${this.description}`:""}</slot>`}};Eo.styles=[to,Te,n`textarea{font-size:inherit}`],So([it({type:String})],Eo.prototype,"size",2),So([it({type:Number})],Eo.prototype,"rows",2),So([it({type:Number})],Eo.prototype,"cols",2),So([it({type:Number})],Eo.prototype,"maxlength",2),So([it({type:Number})],Eo.prototype,"minlength",2),So([it({type:String})],Eo.prototype,"wrap",2),So([it({type:Boolean})],Eo.prototype,"readonly",2),So([it({type:String})],Eo.prototype,"placeholder",2),So([pt({slot:"label"})],Eo.prototype,"slotLabelNodes",2),So([pt({slot:"description"})],Eo.prototype,"slotDescriptionNodes",2),So([pt({slot:"suffix"})],Eo.prototype,"slotSuffixNodes",2),So([pt({slot:"prefix"})],Eo.prototype,"slotPrefixNodes",2),So([nt()],Eo.prototype,"hasDescription",2),So([nt()],Eo.prototype,"hasLabel",2),So([nt()],Eo.prototype,"hasSuffix",2),So([nt()],Eo.prototype,"hasPrefix",2),So([it()],Eo.prototype,"slotClasses",2),Eo=So([st(Oo)],Eo);try{customElements.define(Oo,Eo)}catch(Fa){}var zo=Object.defineProperty,jo=Object.getOwnPropertyDescriptor,Do=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?jo(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&zo(e,r,i),i};const Lo="sonic-fieldset";let Mo=class extends(Et(et)){constructor(){super(...arguments),this.disabled=!1}render(){return L`<fieldset form="${Ie(this.form)}" ?disabled="${this.disabled}"><slot></slot></fieldset>`}};Mo.styles=[n`:host{--sc-fieldset-mt:0;--sc-fieldset-mb:1rem;--sc-fieldset-border-color:var(--sc-base-200);--sc-fieldset-border-width:var(--sc-form-border-width);margin-top:var(--sc-fieldset-mt);margin-bottom:var(--sc-fieldset-mb);display:block;border:var(--sc-fieldset-border-width) solid var(--sc-fieldset-border-color)!important;padding:1.8rem 1.25rem;border-radius:var(--sc-rounded-lg)}fieldset{all:unset;display:contents}::slotted(sonic-legend){margin-bottom:1.5rem;display:block}`],Do([it({type:Boolean,reflect:!0})],Mo.prototype,"disabled",2),Do([it({type:String})],Mo.prototype,"form",2),Mo=Do([st(Lo)],Mo);try{customElements.define(Lo,Mo)}catch(Fa){}var No=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor;let Io=class extends et{render(){return L`<slot></slot>`}};Io.styles=[n`:host{color:var(--sc-neutral-500);font-size:1.25rem;line-height:1.2;display:block;font-weight:var(--sc-font-weight-base);font-style:var(--sc-font-style-base);margin-top:.25em}`],Io=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?Fo(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&No(e,r,i),i})([st("sonic-legend-description")],Io);try{customElements.define("sonic-legend-description",Io)}catch(Fa){}var Ro=Object.defineProperty,To=Object.getOwnPropertyDescriptor,Vo=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?To(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Ro(e,r,i),i};const Uo="sonic-legend";let Bo=class extends et{constructor(){super(...arguments),this.forceAutoFill=!1}get description(){return this._description}set description(t){this.hasAttribute("description")&&!this.forceAutoFill&&(t=this.getAttribute("description")),this._description=t,this.requestUpdate()}get label(){return this._label}set label(t){this.hasAttribute("label")&&!this.forceAutoFill&&(t=this.getAttribute("label")),this._label=t,this.requestUpdate()}render(){return L`<legend part="legend">${this.iconName?L`<div class="icon"><sonic-icon name="${this.iconName}" prefix="${Ie(this.iconPrefix)}" library="${Ie(this.iconLibrary)}"></sonic-icon></div>`:""}<div class="legend-content">${this.label} ${this.description?L`<sonic-legend-description>${this.description}</sonic-legend-description>`:""}<slot></slot></div><slot name="suffix"></slot></legend>`}};Bo.styles=[n`:host{--sc-legend-font-size:1.75rem;--sc-legend-font-weight:var(--sc-font-weight-base);--sc-legend-font-style:var(--sc-headings-font-style);--sc-legend-family:var(--sc-headings-font-family);--sc-legend-line-height:var(--sc-headings-line-height);display:flex;width:100%}legend{font-size:var(--sc-legend-font-size);font-weight:var(--sc-legend-font-weight);font-style:var(--sc-legend-font-style);font-family:var(--sc-legend-font-family);line-height:var(--sc-legend-line-height);padding:0;display:flex;width:100%;align-items:flex-start;gap:.5em}slot[name=suffix]{display:block;margin-left:auto;flex-shrink:0}.legend-content{flex-grow:1}`],Vo([it({type:Boolean})],Bo.prototype,"forceAutoFill",2),Vo([it()],Bo.prototype,"description",1),Vo([it()],Bo.prototype,"label",1),Vo([it({type:String})],Bo.prototype,"iconName",2),Vo([it({type:String})],Bo.prototype,"iconLibrary",2),Vo([it({type:String})],Bo.prototype,"iconPrefix",2),Bo=Vo([st(Uo)],Bo);try{customElements.define(Uo,Bo)}catch(Fa){}class qo{constructor(t,{target:e,config:r,callback:s,skipInitial:o}){this.t=!1,this.i=!1,this.callback=()=>!0,(this.h=t).addController(this),this.o=null===e||null!=e?e:this.h,this.l=r,this.t=null!=o?o:this.t,this.callback=null!=s?s:this.callback,window.ResizeObserver?this.u=new ResizeObserver((t=>{this.handleChanges(t),this.h.requestUpdate()})):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(t){this.value=this.callback(t,this.u)}hostConnected(){this.o&&this.observe(this.o)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.t&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}disconnect(){this.u.disconnect()}}var Ho=Object.defineProperty,Ko=Object.getOwnPropertyDescriptor;const Wo="sonic-form-layout";let Zo=class extends(Et(et)){constructor(){super(...arguments),this._resizeController=new qo(this,{})}render(){return L`<div class="${this.offsetWidth>440?"cq--md":""}"><slot></slot></div>`}};Zo.styles=[n`:host{display:block}div{display:grid;grid-gap:1.5rem;align-items:flex-start}.cq--md{grid-gap:1.75rem;grid-template-columns:repeat(2,minmax(0,1fr))}::slotted(sonic-checkbox),::slotted(sonic-divider),::slotted(sonic-form-actions),::slotted(sonic-radio),::slotted(sonic-textarea){grid-column:1/-1}::slotted(sonic-divider){--sc-divider-my:0}`],Zo=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?Ko(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Ho(e,r,i),i})([st(Wo)],Zo);try{customElements.define(Wo,Zo)}catch(Fa){}var Yo=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor;const Go="sonic-form-actions";let Jo=class extends et{render(){return L`<slot></slot>`}};Jo.styles=[n`:host{display:flex;gap:.3rem}`],Jo=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?Qo(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Yo(e,r,i),i})([st(Go)],Jo);try{customElements.define(Go,Jo)}catch(Fa){}var Xo=Object.defineProperty,ti=Object.getOwnPropertyDescriptor;const ei="sonic-group";let ri=class extends et{updated(){const t=this.querySelectorAll("sonic-input, sonic-button"),e=t.length;e>1&&t.forEach(((t,r)=>{0===r?(t.style.setProperty("--sc-item-rounded-tr","0"),t.style.setProperty("--sc-item-rounded-br","0")):r===e-1?(t.style.setProperty("--sc-item-rounded-tl","0"),t.style.setProperty("--sc-item-rounded-bl","0")):(t.style.setProperty("--sc-item-rounded-tr","0"),t.style.setProperty("--sc-item-rounded-br","0"),t.style.setProperty("--sc-item-rounded-tl","0"),t.style.setProperty("--sc-item-rounded-bl","0"))}))}render(){return L`<slot></slot>`}};ri.styles=[n`:host{display:inline-flex;vertical-align:middle}slot{width:100%;display:flex;align-items:flex-end}`],ri=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?ti(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Xo(e,r,i),i})([st(ei)],ri);try{customElements.define(ei,ri)}catch(Fa){}var si=Object.defineProperty,oi=Object.getOwnPropertyDescriptor,ii=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?oi(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&si(e,r,i),i};const ni="sonic-image";let ai=class extends et{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}render(){const t={aspectRatio:this.cover?"auto":this.ratio,imageRendering:this.imageRendering,objectPosition:this.objectPosition};return L`<div part="image"><picture part="picture"><img part="img" src="${this.src}" loading="${this.loading}" alt="${this.alt}" style="${Re(t)}"></picture></div>`}};ai.styles=[n`:host{--sc-img-radius:0;--sc-img-bg:var(--sc-placeholder-bg);border-radius:var(--sc-img-radius);display:block;width:100%;background:var(--sc-img-bg)}img{width:100%;vertical-align:middle;object-fit:cover}img[src=""]{visibility:hidden}:host([rounded]){--sc-img-radius:var(--sc-rounded);overflow:hidden}:host([rounded=sm]){--sc-img-radius:var(--sc-rounded-sm)}:host([rounded=md]){--sc-img-radius:var(--sc-rounded-md)}:host([rounded=lg]){--sc-img-radius:var(--sc-rounded-lg)}:host([rounded=xl]){--sc-img-radius:var(--sc-rounded-xl)}:host([rounded=full]){--sc-img-radius:50%!important}:host([rounded=none]){--sc-img-radius:0!important}:host([cover]),:host([cover]) img,:host([cover])>div{position:absolute!important;left:0!important;top:0!important;right:0!important;bottom:0!important;height:100%!important;width:100%!important}`],ii([it({type:String})],ai.prototype,"rounded",2),ii([it({type:String})],ai.prototype,"src",2),ii([it({type:String})],ai.prototype,"alt",2),ii([it({type:String})],ai.prototype,"loading",2),ii([it({type:String})],ai.prototype,"ratio",2),ii([it({type:String})],ai.prototype,"objectPosition",2),ii([it({type:String})],ai.prototype,"imageRendering",2),ii([it({type:Boolean,reflect:!0})],ai.prototype,"cover",2),ai=ii([st(ni)],ai);try{customElements.define(ni,ai)}catch(Fa){}var li=Object.defineProperty,ci=Object.getOwnPropertyDescriptor,hi=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?ci(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&li(e,r,i),i};let di=class extends et{constructor(){super(...arguments),this.icon={},this.taxonomy=[],this.separator=", ",this.key="",this.type="default",this.variant="default",this.size="md"}render(){if(!this.taxonomy)return N;let t=this.key+"_display",e=this.taxonomy.filter((e=>null!=e&&(!0===e[t]||"1"==e[t]||!e.hasOwnProperty(t))));return 0===e.length?(this.style.display="none",N):(this.style.removeProperty("display"),L`<sonic-badge type="${this.type}" variant="${this.variant}" size="${this.size}"><sonic-icon slot="prefix" library="${Ie(this.icon.library)}" prefix="${Ie(this.icon.prefix)}" name="${Ie(this.icon.name)}"></sonic-icon><span class="taxonomy-list">${se(e,(t=>t[this.key+"_id"]),(t=>L`<span>${t[this.key+"_name"]}</span><span class="sonic-taxonomy-separator">${$e(this.separator)}</span>`))}</span></sonic-badge>`)}};di.styles=n`:host .sonic-taxonomy-separator:last-child{display:none}.taxonomy-list{display:flex;flex-wrap:wrap}`,hi([it({type:Object})],di.prototype,"icon",2),hi([it({type:Array})],di.prototype,"taxonomy",2),hi([it({type:String})],di.prototype,"separator",2),hi([it({type:String})],di.prototype,"key",2),hi([it({type:String,reflect:!0})],di.prototype,"type",2),hi([it({type:String,reflect:!0})],di.prototype,"variant",2),hi([it({type:String,reflect:!0})],di.prototype,"size",2),di=hi([st("sonic-taxonomy")],di);try{customElements.define("sonic-taxonomy",di)}catch(Fa){}var pi=Object.defineProperty,ui=Object.getOwnPropertyDescriptor;const mi="sonic-menu-item";let gi=class extends pr{constructor(){super()}connectedCallback(){this.hasAttribute("variant")||(this.variant="ghost"),this.hasAttribute("type")||(this.type="primary"),this.hasAttribute("shape")||(this.shape="block"),this.hasAttribute("align")||(this.align="left"),super.connectedCallback()}};gi=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?ui(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&pi(e,r,i),i})([st(mi)],gi);try{customElements.define(mi,gi)}catch(Fa){}var bi=Object.defineProperty,fi=Object.getOwnPropertyDescriptor,vi=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?fi(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&bi(e,r,i),i};const yi="sonic-menu";let wi=class extends et{constructor(){super(...arguments),this.size="",this.direction="column",this.gap="var(--sc-menu-gap)",this.align="left",this.shadow=null,this.moreShape="circle",this.minWidth="0",this.hasMoreElements=!1}checkIfMore(){var t;this.hasMoreElements=!!(null==(t=this.moreElements)?void 0:t.length)}updated(t){const e=this.querySelector(".more-btn");this.size&&e&&e.setAttribute("size",this.size);this.querySelectorAll("sonic-divider").forEach((t=>{t.hasAttribute("size")||t.setAttribute("size","xs")})),super.updated(t)}mainSlotChange(){this.setChildrenSize(this.menuChildren)}setChildrenSize(t){t.forEach((t=>{this.size&&t.setAttribute("size",this.size),this.align&&t.setAttribute("align",this.align),"row"==this.direction&&"block"==t.getAttribute("shape")&&t.setAttribute("shape","default")}))}render(){const t={minWidth:this.minWidth,flexDirection:this.direction,gap:this.gap},e="row"==this.direction,r={display:"block",alignSelf:e?"center":"flex-start",justifySelf:"center",flexDirection:this.direction},s={marginLeft:e?"":".55em"};return L`<menu part="menu" class="shadowable" style="${Re(t)}"><slot @slotchange="${this.mainSlotChange}"></slot><sonic-pop style="${Re(r)}" class="${this.hasMoreElements?"":"hidden"}"><sonic-menu-item style="${Re(s)}" class="more-btn" shape="${this.moreShape}" align="center"><sonic-icon size="xl" name="${e?"more-vert":"more-horiz"}"></sonic-icon></sonic-menu-item><slot name="more" @slotchange="${this.checkIfMore}" slot="content"></slot></sonic-pop></menu>`}};wi.styles=[n`:host{display:block;--sc-menu-gap:.15rem}:host>menu{display:flex;border-radius:min(calc(var(--sc-btn-rounded) * 2),.4em);margin:0;padding:.35em}.hidden{display:none!important}:host([shadow=md]) .shadowable,:host([shadow=true]) .shadowable,:host([shadow]) .shadowable{box-shadow:var(--sc-shadow)}:host([shadow=sm]) .shadowable{box-shadow:var(--sc-shadow-sm)}:host([shadow=lg]) .shadowable{box-shadow:var(--sc-shadow-lg)}:host([shadow=none]) .shadowable{box-shadow:none}`],vi([it({type:String,reflect:!0})],wi.prototype,"size",2),vi([it({type:String,reflect:!0})],wi.prototype,"direction",2),vi([it({type:String})],wi.prototype,"gap",2),vi([it({type:String,reflect:!0})],wi.prototype,"align",2),vi([it({type:String,reflect:!0})],wi.prototype,"shadow",2),vi([it({type:String})],wi.prototype,"moreShape",2),vi([it({type:String})],wi.prototype,"minWidth",2),vi([dt({selector:"sonic-menu-item"})],wi.prototype,"menuChildren",2),vi([dt({slot:"more",selector:"*"})],wi.prototype,"moreElements",2),vi([nt()],wi.prototype,"hasMoreElements",2),wi=vi([st(yi)],wi);try{customElements.define(yi,wi)}catch(Fa){}var xi=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,ki=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?_i(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&xi(e,r,i),i};const Ai="sonic-modal-actions";let Pi=class extends et{firstUpdated(){var t;null==(t=this.buttons)||t.forEach((t=>{t.addEventListener("click",(()=>{if("false"!=t.getAttribute("hideModal")){const t=this.closest("sonic-modal");null==t||t.hide()}}))}))}render(){return L`<slot></slot>`}};Pi.styles=[n`:host{display:flex;gap:.5rem;margin-top:auto;padding-top:1rem}`],ki([dt({selector:"sonic-button"})],Pi.prototype,"buttons",2),Pi=ki([st(Ai)],Pi);try{customElements.define(Ai,Pi)}catch(Fa){}var $i=Object.defineProperty,Ci=Object.getOwnPropertyDescriptor;const Si="sonic-modal-title";let Oi=class extends et{render(){return L`<slot></slot>`}};Oi.styles=[n`:host{font-weight:700;font-size:1.5rem;display:block;line-height:var(--sc-headings-line-height);font-family:var(--sc-headings-font-family)}`],Oi=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?Ci(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&$i(e,r,i),i})([st(Si)],Oi);try{customElements.define(Si,Oi)}catch(Fa){}var Ei=Object.defineProperty,zi=Object.getOwnPropertyDescriptor;const ji="sonic-modal-subtitle";let Di=class extends et{render(){return L`<slot></slot>`}};Di.styles=[n`:host{font-size:1.1rem;display:block;text-transform:uppercase;line-height:var(--sc-headings-line-height);font-family:var(--sc-headings-font-family)}`],Di=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?zi(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Ei(e,r,i),i})([st(ji)],Di);try{customElements.define(ji,Di)}catch(Fa){}var Li=Object.defineProperty,Mi=Object.getOwnPropertyDescriptor;const Ni="sonic-modal-content";let Fi=class extends et{render(){return L`<slot></slot>`}};Fi.styles=[n`:host{display:block}`],Fi=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?Mi(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Li(e,r,i),i})([st(Ni)],Fi);try{customElements.define(Ni,Fi)}catch(Fa){}var Ii=Object.defineProperty,Ri=Object.getOwnPropertyDescriptor;const Ti="sonic-modal-close";let Vi=class extends et{render(){return L`<sonic-button shape="circle" variant="ghost" @click="${this.handleClick}"><sonic-icon name="cancel" size="lg"></sonic-icon></sonic-button>`}handleClick(){this.closest("sonic-modal").hide()}};Vi.styles=[n`:host{position:absolute;right:.6rem;top:.6rem;z-index:20}`],Vi=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?Ri(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Ii(e,r,i),i})([st(Ti)],Vi);try{customElements.define(Ti,Vi)}catch(Fa){}var Ui=Object.defineProperty,Bi=Object.getOwnPropertyDescriptor,qi=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Bi(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Ui(e,r,i),i};const Hi="sonic-modal";let Ki=class extends(Et(et)){constructor(){super(...arguments),this.hideOnOverlayClick=!0,this.hideOnEscape=!0,this.align="center",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.fullScreen=!1,this.visible=!1}static create(t){const e=document.createElement(Hi);return e.innerHTML=`<sonic-modal-close></sonic-modal-close><sonic-modal-content>${t.content}</sonic-modal-content>`||"",(document.querySelector("sonic-theme")||document.body).appendChild(e),e.show(),e}connectedCallback(){super.connectedCallback()}updated(){const t=this;document.addEventListener("keydown",this.handleEscape),t.closeBtn.forEach((e=>{e.addEventListener("click",(function(){t.hide()}),{once:!0})}))}render(){if(0==this.visible)return N;this.handleFullsceen();const t={padding:this.padding,maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,borderRadius:this.fullScreen?"0":"var(--sc-modal-rounded)"},e={maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,borderRadius:this.fullScreen?"0":"var(--sc-modal-rounded)"};return L`<div class="modal-wrapper" style="${Re(e)}" ${Ae({out:be})} tabindex="0"><div part="modal" class="modal custom-scroll" style="${Re(t)}" ${Ae({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}]})}><div class="modal-content"><slot></slot></div></div></div><div class="overlay" @click="${this.hideOnOverlayClick?this.hide:""}" ${Ae({keyframeOptions:{duration:500},in:fe,out:[{opacity:0,pointerEvents:"none"}]})}></div>`}show(){var t,e;this.visible=!0,null==(t=this.modalElement)||t.setAttribute("tabindex","0"),null==(e=this.modalElement)||e.focus(),this.dispatchEvent(new CustomEvent("show"))}hide(){var t;this.visible=!1,null==(t=this.modalElement)||t.setAttribute("tabindex","-1"),this.dispatchEvent(new CustomEvent("hide"))}dispose(){this.hide(),this.remove()}handleEscape(t){if("Escape"===t.key){[...document.querySelectorAll(Hi)].forEach((t=>{1==this.hideOnEscape&&t.hide()}))}}handleFullsceen(){this.fullScreen&&(this.width="100%",this.height="100%",this.maxWidth="none",this.maxHeight="none")}};if(Ki.styles=[Te,n`:host{--sc-modal-py:2.5rem;--sc-modal-px:1.5rem;--sc-modal-content:var(--sc-base-content);--sc-modal-bg:var(--sc-base);--sc-modal-max-w:min(100vw, 64ch);--sc-modal-max-h:80vh;--sc-modal-scrollbar-bg:var(--sc-base-300);--sc-modal-rounded:var(--sc-rounded-lg)}*{box-sizing:border-box}.modal-wrapper{position:fixed;bottom:0;left:0;width:100%;z-index:990;text-align:center;align-items:center;justify-content:center;flex-direction:column;display:flex;pointer-events:none}.modal-content{overflow-y:auto;display:flex;flex-direction:column;text-align:center;align-items:center;min-height:10rem}.modal{background:var(--sc-base);width:100%;box-shadow:var(--sc-shadow-lg);border-radius:var(--sc-modal-rounded) var(--sc-modal-rounded) 0 0;pointer-events:auto;transform:translateZ(0)}.overlay{background:var(--sc-base-200);left:0;top:0;right:0;bottom:0;z-index:900;opacity:.8;position:fixed}::slotted(sonic-modal-title){margin-bottom:1rem}::slotted(sonic-modal-subtitle){margin-top:-.45rem;margin-bottom:1rem}@media (max-width:767.5px){.modal,.modal-wrapper{max-width:none!important;width:100%!important}}@media (min-width:768px){.modal-wrapper{top:50%;left:50%;bottom:auto;right:auto;transform:translateX(-50%) translateY(-50%)}.modal{top:50%;bottom:auto;right:auto;border-radius:var(--sc-modal-rounded)}}:host([align=left]) .modal-content{text-align:left;align-items:flex-start}:host([align=right]) .modal-content{text-align:right;align-items:flex-end}:host([rounded=none]) modal{--sc-img-radius:0!important}`],qi([it({type:Boolean,reflect:!0})],Ki.prototype,"hideOnOverlayClick",2),qi([it({type:Boolean,reflect:!0})],Ki.prototype,"hideOnEscape",2),qi([it({type:String,reflect:!0})],Ki.prototype,"align",2),qi([it({type:String})],Ki.prototype,"padding",2),qi([it({type:String})],Ki.prototype,"maxWidth",2),qi([it({type:String})],Ki.prototype,"maxHeight",2),qi([it({type:String})],Ki.prototype,"width",2),qi([it({type:String})],Ki.prototype,"height",2),qi([it({type:Boolean,reflect:!0})],Ki.prototype,"fullScreen",2),qi([it({type:Boolean,reflect:!0})],Ki.prototype,"visible",2),qi([lt(".modal-wrapper")],Ki.prototype,"modalWrapper",2),qi([lt(".modal")],Ki.prototype,"modalElement",2),qi([dt({selector:"sonic-modal-close"})],Ki.prototype,"closeBtn",2),Ki=qi([st(Hi)],Ki),"undefined"!=typeof window){window.SonicModal=Ki}try{customElements.define(Hi,Ki)}catch(Fa){}var Wi=Object.defineProperty,Zi=Object.getOwnPropertyDescriptor,Yi=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Zi(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Wi(e,r,i),i};const Qi={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty",default:"info-empty"},Gi="sonic-alert";let Ji=class extends et{constructor(){super(...arguments),this.label="",this.text="",this.background=!1,this.status="default"}render(){return L`<div part="alert" class="alert"><div>${this.status&&L`<sonic-icon name="${Qi[this.status]}"></sonic-icon>`}</div><div>${this.label?L`<span class="label">${this.label}</span>`:N}<slot>${this.text}</slot></div></div>`}};Ji.styles=[ar,n`:host{--sc-alert-color:inherit;--sc-alert-rounded:var(--sc-rounded);--sc-alert-fw:var(--sc-font-weight-base);--sc-alert-fst:var(--sc-font-style-base);--sc-alert-label-fw:bold;display:block;font-weight:var(--sc-alert-fw);font-style:var(--sc-alert-fst)}.alert{color:var(--sc-alert-color);position:relative;display:flex;gap:.4em;line-height:1.2;border-radius:var(--sc-alert-rounded)}z .label{font-weight:var(--sc-alert-label-fw)}:host([status=warning]){--sc-alert-color:var(--sc-warning)}:host([status=error]){--sc-alert-color:var(--sc-danger)}:host([status=info]){--sc-alert-color:var(--sc-info)}:host([status=success]){--sc-alert-color:var(--sc-success)}:host([background]) .alert{background:var(--sc-base);padding:.8em 1.15em}:host([background]) .alert:before{background-color:currentColor;content:"";display:block;position:absolute;left:0;top:0;right:0;bottom:0;opacity:.08;border-radius:var(--sc-alert-rounded);pointer-events:none}:host([background])>div{z-index:2;position:relative}slot{display:block}:host([size=xs]) .alert{--sc-alert-rounded:var(--sc-rounded-sm)}:host([size=sm]) .alert{--sc-alert-rounded:var(--sc-rounded-sm)}`],Yi([it({type:String})],Ji.prototype,"label",2),Yi([it({type:String})],Ji.prototype,"text",2),Yi([it({type:String,reflect:!0})],Ji.prototype,"size",2),Yi([it({type:Boolean,reflect:!0})],Ji.prototype,"background",2),Yi([it({type:String,reflect:!0})],Ji.prototype,"status",2),Ji=Yi([st(Gi)],Ji);try{customElements.define(Gi,Ji)}catch(Fa){}var Xi=Object.defineProperty,tn=Object.getOwnPropertyDescriptor,en=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?tn(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Xi(e,r,i),i};let rn=class extends(Et(et)){constructor(){super(...arguments),this._messages=[],this.success=null,this.status=null,this._message="",this._data=""}get messages(){return this._messages}set messages(t){this._messages=t,this.messages&&t.forEach((t=>{"public"==t.type&&Ye.add({text:t.content,status:t.status})}))}get message(){return this._message}set message(t){this._message=t,this.message&&!1===this.props.success&&(this.props.public_message||Ye.add({text:this.message,status:"error"}))}get data(){return this._data}set data(t){this._data=t;const e={text:"Votre produit a bien été ajouté",status:"success"};Array.isArray(this.data)&&!0===this.props.success&&Ye.add(e),""==this.data&&!0===this.props.status&&Ye.add(e),!1===this.props.success&&(this.props.public_message||Ye.add({text:this.data,status:"error"}))}render(){return N}};en([it({type:Boolean})],rn.prototype,"success",2),en([it({type:Boolean})],rn.prototype,"status",2),en([it({type:Array})],rn.prototype,"messages",1),en([it({type:String})],rn.prototype,"message",1),en([it()],rn.prototype,"data",1),rn=en([st("sonic-toast-message-subscriber")],rn);var sn=Object.defineProperty,on=Object.getOwnPropertyDescriptor,nn=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?on(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&sn(e,r,i),i};const an="sonic-tooltip";let ln=class extends et{constructor(){super(...arguments),this.label="",this.disabled=!1}render(){let t=this.disabled||""==this.label?"disabled":"";return L`<div data-tooltip-text="${this.label.trim().replace(" "," ")}" class="tooltip ${t}"><slot></slot></div>`}};ln.styles=[n`.tooltip{position:relative;display:flex;align-items:center;text-align:center}.tooltip:before{position:absolute;content:attr(data-tooltip-text);font-size:.85rem;display:block;opacity:0;pointer-events:none;bottom:calc(100% + .25rem);left:50%;transform:translateX(-50%);background:var(--sc-base-content,#111827);padding:.25rem;border-radius:.25rem;color:var(--sc-base,#fff);z-index:999;display:none;line-height:1.1;width:max-content;max-width:20rem}.tooltip:not(.disabled):hover:before{opacity:1;display:block}`],nn([it({type:String})],ln.prototype,"label",2),nn([it({type:Boolean})],ln.prototype,"disabled",2),ln=nn([st(an)],ln);try{customElements.define(an,ln)}catch(Fa){}var cn=Object.defineProperty,hn=Object.getOwnPropertyDescriptor,dn=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?hn(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&cn(e,r,i),i};const pn="sonic-pop";let un=class extends et{constructor(){super(...arguments),this.open=!1,this.toggle="true",this.inline=!1,this.shadow="lg",this.placement="bottom",this.positioningRuns=!1,this.lastContentX=Number.NaN,this.lastContentY=Number.NaN}runPositioning(){this.positioningRuns&&(this.positioningRuns=!0,this._setUpMenu(this.placement),window.requestAnimationFrame((()=>this.runPositioning())))}_toggle(t){this.open&&"false"==this.toggle||("keydown"!=t.type||"ArrowDown"==t.key&&!this.open)&&(this.open=!this.open,this.open?this._show():this._hide())}_show(){this.open=!0,this.popContent.setAttribute("tabindex","0"),this.popBtn&&this.popContent&&!this.positioningRuns&&(this.positioningRuns=!0,this.lastContentX=Number.NaN,this.lastContentY=Number.NaN,this.runPositioning())}_hide(){this.open=!1,this.popContent.setAttribute("tabindex","-1"),this.positioningRuns=!1}_handleClosePop(t){let e=t.composedPath(),r=e[0];un.pops.forEach((s=>{const o=e.includes(s),i=e.includes(s.querySelector('[slot="content"]')),n="keep"===ft.getAncestorAttributeValue(r,"data-on-select");"pointerdown"==t.type&&o||"click"==t.type&&(o&&n||!i)||s._hide()}))}connectedCallback(){super.connectedCallback(),0==un.pops.size&&(document.addEventListener("pointerdown",this._handleClosePop),document.addEventListener("click",this._handleClosePop)),un.pops.add(this)}disconnectedCallback(){super.disconnectedCallback(),un.pops.delete(this),0==un.pops.size&&(document.removeEventListener("pointerdown",this._handleClosePop),document.removeEventListener("click",this._handleClosePop))}_setUpMenu(t){var e;const r=null==(e=this.popContent)?void 0:e.getBoundingClientRect(),s=this.getBoundingClientRect();if(!this.offsetParent)return;let o=this.offsetParent.getBoundingClientRect(),i=s.left-o.left,n=s.top-o.top,a=i,l=n,c=n-r.height-8,h=i-r.width-16,d=i+s.width+16,p=n+s.height+8;switch(t){case"bottom":l=p;break;case"top":l=c;break;case"left":a=h;break;case"right":a=d}let u=window.innerWidth-d-o.left-r.width-20;u<0&&"right"===t&&(a=h),u<0&&["top","bottom"].includes(t)&&(a=Math.max(a+u,h+s.width)),-o.left-h>20&&"left"===t&&(a=d);let m=window.innerHeight-p-o.top-r.height-20;m<0&&"bottom"===t&&(l=c),m<0&&["left","right"].includes(t)&&(l=Math.max(l+m,c+s.height)),-o.top-c>-20&&"top"===t&&(l=p),this.lastContentX=a,this.lastContentY=l,Object.assign(this.popContent.style,{left:`${a}px`,top:`${l}px`})}render(){return L`<slot @click="${this._toggle}" @keydown="${this._toggle}" class="contents"></slot><slot name="content" tabindex="-1" part="content" class="${this.open?"is-open":""}"></slot>`}};un.pops=new Set,un.styles=[n`:host{display:inline-block;vertical-align:middle}slot[name=content]{background-color:var(--sc-base);position:absolute;z-index:50;display:block;transform:translateY(1rem) scale(.95);opacity:0;pointer-events:none;transition-duration:.15s;transition-timing-function:ease;transition-property:all;border-radius:min(calc(var(--sc-btn-rounded) * 2),.4em)}slot[name=content].is-open{transform:translateY(0) scale(1);opacity:1;pointer-events:auto;transition-property:scale,opacity;transition-timing-function:cubic-bezier(.25,.25,.42,1.225)}:host([shadow=md]) slot[name=content],:host([shadow=true]) slot[name=content],:host([shadow]) slot[name=content]{box-shadow:var(--sc-shadow)}:host([shadow=sm]) slot[name=content]{box-shadow:var(--sc-shadow-sm)}:host([shadow=none]) slot[name=content]{box-shadow:none}:host([shadow=lg]) slot[name=content]{box-shadow:var(--sc-shadow-lg)}:host([inline]){vertical-align:baseline}`],dn([nt()],un.prototype,"open",2),dn([lt("slot:not([name=content])")],un.prototype,"popBtn",2),dn([lt("slot[name=content]")],un.prototype,"popContent",2),dn([it({type:String})],un.prototype,"toggle",2),dn([it({type:Boolean,reflect:!0})],un.prototype,"inline",2),dn([it({type:String,reflect:!0})],un.prototype,"shadow",2),dn([it({type:String})],un.prototype,"placement",2),un=dn([st(pn)],un);try{customElements.define(pn,un)}catch(Fa){}var mn=Object.defineProperty,gn=Object.getOwnPropertyDescriptor,bn=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?gn(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&mn(e,r,i),i};let fn=class extends et{constructor(){super(...arguments),this.label="",this.align="center"}firstUpdated(){var t,e;(this.label||(null==(t=this.slotNodes)?void 0:t.length))&&(null==(e=this.divider)||e.classList.add("has-text"))}render(){return L`<div part="divider"><span class="text">${this.label}<slot></slot></span></div>`}};fn.styles=[n`:host{--sc-divider-my:0.5rem;--sc-divider-mx:0;--sc-divider-border-width:min(2px, 0.15rem);--sc-divider-border-color:var(--sc-base-200);--sc-divider-border-style:solid;--sc-divider-color:var(--sc-base-500);--sc-divider-ff:var(--sc-font-family-base);--sc-divider-fs:1rem;--sc-divider-fw:var(--sc-font-weight-base);--sc-divider-fst:var(--sc-font-style-base);margin:var(--sc-divider-my) var(--sc-divider-mx);font-size:var(--sc-divider-fs);font-style:var(--sc-divider-fst);font-family:var(--sc-divider-ff);font-weight:var(--sc-divider-fw);color:var(--sc-divider-color);display:block}:host([size="2xs"]){--sc-divider-my:0.35rem;--sc-divider-fs:0.68rem}:host([size=xs]){--sc-divider-my:0.5rem;--sc-divider-fs:0.75rem}:host([size=sm]){--sc-divider-my:0.75rem;--sc-divider-fs:0.875rem}:host([size=md]){--sc-divider-my:1.25rem}:host([size=lg]){--sc-divider-my:1.85rem}:host([size=xl]){--sc-divider-my:2.25rem}:host([size="2xl"]){--sc-divider-my:3.35rem}div{display:flex;align-items:center;width:100%}div:before{content:"";flex-grow:1;border-top:var(--sc-divider-border-width) var(--sc-divider-border-style) var(--sc-divider-border-color);width:100%}div:after{content:"";flex-grow:1;border-top:var(--sc-divider-border-width) var(--sc-divider-border-style) var(--sc-divider-border-color);width:100%}:host([align=left]) div:before{display:none}:host([align=right]) div:after{display:none}.text{flex-shrink:0;max-width:80%}.no-text .text{display:none}.has-text{gap:.5rem}`],bn([pt()],fn.prototype,"slotNodes",2),bn([lt("div")],fn.prototype,"divider",2),bn([it({type:String})],fn.prototype,"label",2),bn([it({type:String,reflect:!0})],fn.prototype,"size",2),bn([it({type:String,reflect:!0})],fn.prototype,"align",2),fn=bn([st("sonic-divider")],fn);try{customElements.define("sonic-divider",fn)}catch(Fa){}var vn=Object.defineProperty,yn=Object.getOwnPropertyDescriptor;const wn="sonic-card-header-description";let xn=class extends et{render(){return L`<div><slot></slot></div>`}};xn.styles=[n`div{margin-top:.1em;font-family:var(--sc-font-family-base);font-size:.7em;font-weight:var(--sc-font-style-base)}`],xn=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?yn(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&vn(e,r,i),i})([st(wn)],xn);try{customElements.define(wn,xn)}catch(Fa){}var _n=Object.defineProperty,kn=Object.getOwnPropertyDescriptor,An=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?kn(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&_n(e,r,i),i};const Pn="sonic-card-header";let $n=class extends et{render(){return L`<div class="header"><div class="header-content">${this.label} ${this.description?L`<sonic-card-header-description>${this.description}</sonic-card-header-description>`:""}<slot></slot></div><slot name="suffix"></slot></div>`}};$n.styles=[n`:host{--sc-card-header-mb:1.25rem;--sc-card-header-font-size:1.875rem;--sc-card-header-font-weight:var(--sc-headings-font-weight);--sc-card-header-font-style:var(--sc-headings-font-style);--sc-card-header-family:var(--sc-headings-font-family);--sc-card-header-line-height:var(--sc-headings-line-height)}.header{display:flex;align-items:flex-start;gap:.5em 1em;margin-bottom:var(--sc-card-header-mb);line-height:var(--sc-card-header-line-height);font-family:var(--sc-card-header-font-family);font-size:var(--sc-card-header-font-size);font-style:var(--sc-card-header-font-style);font-weight:var(--sc-card-header-font-weight)}.header-content{flex-grow:1}slot[name=suffix]{flex-shrink:0}`],An([it()],$n.prototype,"label",2),An([it()],$n.prototype,"description",2),$n=An([st(Pn)],$n);try{customElements.define(Pn,$n)}catch(Fa){}var Cn=Object.defineProperty,Sn=Object.getOwnPropertyDescriptor;const On="sonic-card-main";let En=class extends et{render(){return L`<div><slot></slot></div>`}};En=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?Sn(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Cn(e,r,i),i})([st(On)],En);try{customElements.define(On,En)}catch(Fa){}var zn=Object.defineProperty,jn=Object.getOwnPropertyDescriptor;const Dn="sonic-card-footer";let Ln=class extends et{render(){return L`<slot></slot>`}};Ln=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?jn(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&zn(e,r,i),i})([st(Dn)],Ln);try{customElements.define(Dn,Ln)}catch(Fa){}var Mn=Object.defineProperty,Nn=Object.getOwnPropertyDescriptor,Fn=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Nn(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Mn(e,r,i),i};const In="sonic-card";let Rn=class extends et{constructor(){super(...arguments),this.type="default"}render(){return L`<div part="card" class="card"><slot></slot></div>`}};Rn.styles=[n`:host{--sc-card-padding:1.5rem;--sc-card-color:var(--sc-base-content);--sc-card-bg:var(--sc-base);--sc-card-rounded:var(--sc-rounded-lg);--sc-card-shadow:var(--sc-shadow-lg)}.card{padding:var(--sc-card-padding);background-color:var(--sc-card-bg);border-radius:var(--sc-card-rounded);box-shadow:var(--sc-card-shadow);color:var(--sc-card-color)}:host([type=primary]){--sc-card-color:var(--sc-primary-content);--sc-badge-bg:var(--sc-primary)}:host([type=warning]){--sc-card-color:var(--sc-warning-content);--sc-card-bg:var(--sc-warning)}:host([type=danger]){--sc-card-color:var(--sc-danger-content);--sc-card-bg:var(--sc-danger)}:host([type=info]){--sc-card-color:var(--sc-info-content);--sc-card-bg:var(--sc-info)}:host([type=success]){--sc-card-color:var(--sc-success-content);--sc-card-bg:var(--sc-success)}:host([type=light]){--sc-card-color:var(--sc-base-content);--sc-card-bg:var(--sc-base-100)}:host([type=neutral]){--sc-card-color:var(--sc-base);--sc-card-bg:var(--sc-base-content)}:host([type=invert]){--sc-card-color:var(--sc-base);--sc-card-bg:var(--sc-base-900)}`],Fn([it({type:String,reflect:!0})],Rn.prototype,"type",2),Rn=Fn([st(In)],Rn);try{customElements.define(In,Rn)}catch(Fa){}const Tn=n`:host{--sc-color:inherit;color:var(--sc-color)}:host([type=primary]){--sc-color:var(--sc-primary)}:host([type=warning]){--sc-color:var(--sc-warning)}:host([type=danger]){--sc-color:var(--sc-danger)}:host([type=info]){--sc-color:var(--sc-info)}:host([type=success]){--sc-color:var(--sc-success)}.inherit-color{color:var(--sc-color)}`;n`:host{--sc-color:inherit;--sc-bg:inherit;color:var(--sc-color);background:var(--sc-bg)}:host([type=primary]){--sc-color:var(--sc-primary-content);--sc-bg:var(--sc-primary)}:host([type=warning]){--sc-color:var(--sc-warning-content);--sc-bg:var(--sc-warning)}:host([type=danger]){--sc-color:var(--sc-danger-content);--sc-bg:var(--sc-danger)}:host([type=info]){--sc-color:var(--sc-info-content);--sc-bg:var(--sc-info)}:host([type=success]){--sc-color:var(--sc-success-content);--sc-bg:var(--sc-success)}.inherit-bg{color:inherit}`;var Vn=Object.defineProperty,Un=Object.getOwnPropertyDescriptor;const Bn="sonic-tr";let qn=class extends et{render(){return L`<slot></slot>`}};qn.styles=[Tn,n`:host{display:table-row}`],qn=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?Un(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Vn(e,r,i),i})([st(Bn)],qn);try{customElements.define(Bn,qn)}catch(Fa){}var Hn=Object.defineProperty,Kn=Object.getOwnPropertyDescriptor,Wn=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Kn(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Hn(e,r,i),i};const Zn="sonic-th";let Yn=class extends et{render(){const t={textAlign:this.align,minWidth:this.minWidth};return L`<th part="th" style="${Re(t)}" colspan="${Ie(this.colSpan)}" rowspan="${Ie(this.rowSpan)}"><slot></slot></th>`}};Yn.styles=[Tn,n`:host{display:contents;background:var(--sc-table-bg);position:sticky;top:0;z-index:20}th{all:inherit;display:table-cell;border-bottom:calc(var(--sc-border-width) * 1.5) solid var(--sc-table-border-color);text-transform:var(--sc-table-th-tt);font-weight:var(--sc-table-th-fw);font-size:var(--sc-table-th-fs);padding:var(--sc-table-th-py) var(--sc-table-th-px)}`],Wn([it({type:Number})],Yn.prototype,"colSpan",2),Wn([it({type:Number})],Yn.prototype,"rowSpan",2),Wn([it({type:String})],Yn.prototype,"align",2),Wn([it({type:String})],Yn.prototype,"minWidth",2),Yn=Wn([st(Zn)],Yn);try{customElements.define(Zn,Yn)}catch(Fa){}var Qn=Object.defineProperty,Gn=Object.getOwnPropertyDescriptor,Jn=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Gn(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Qn(e,r,i),i};const Xn="sonic-td";let ta=class extends et{render(){const t={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth};return L`<td part="td" style="${Re(t)}" colspan="${Ie(this.colSpan)}" rowspan="${Ie(this.rowSpan)}"><slot></slot></td>`}};ta.styles=[Tn,n`:host{display:contents}td{all:inherit;display:table-cell;padding:var(--sc-table-td-py) var(--sc-table-td-px)}`],Jn([it({type:Number})],ta.prototype,"colSpan",2),Jn([it({type:Number})],ta.prototype,"rowSpan",2),Jn([it({type:String})],ta.prototype,"align",2),Jn([it({type:String})],ta.prototype,"vAlign",2),Jn([it({type:String})],ta.prototype,"minWidth",2),ta=Jn([st(Xn)],ta);try{customElements.define(Xn,ta)}catch(Fa){}var ea=Object.defineProperty,ra=Object.getOwnPropertyDescriptor;const sa="sonic-thead";let oa=class extends et{render(){return L`<slot></slot>`}};oa.styles=[n`:host{display:table-header-group}`],oa=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?ra(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&ea(e,r,i),i})([st(sa)],oa);try{customElements.define(sa,oa)}catch(Fa){}var ia=Object.defineProperty,na=Object.getOwnPropertyDescriptor;const aa="sonic-tbody";let la=class extends et{render(){return L`<tbody><slot></slot></tbody>`}};la.styles=[n`:host{display:table-row-group}::slotted(sonic-tr:nth-child(odd)){background:var(--sc-base-50)}::slotted(sonic-tr:hover){background:var(--sc-base-100)}::slotted(sonic-tr:not(:last-child)){border-bottom:var(--sc-form-border-width) solid var(--sc-base-200)!important}`],la=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?na(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&ia(e,r,i),i})([st(aa)],la);try{customElements.define(aa,la)}catch(Fa){}var ca=Object.defineProperty,ha=Object.getOwnPropertyDescriptor;const da="sonic-tfoot";let pa=class extends et{render(){return L`<tfoot><slot></slot></tfoot>`}};pa.styles=[n`:host{display:contents}`],pa=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?ha(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&ca(e,r,i),i})([st(da)],pa);try{customElements.define(da,pa)}catch(Fa){}var ua=Object.defineProperty,ma=Object.getOwnPropertyDescriptor;const ga="sonic-caption";let ba=class extends et{render(){return L`<slot></slot>`}};ba.styles=[n`:host{display:table-caption;font-size:.75rem;color:var(--sc-table-caption-color);padding:var(--sc-table-td-py) var(--sc-table-td-px) calc(2 * var(--sc-table-td-py))}`],ba=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?ma(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&ua(e,r,i),i})([st(ga)],ba);try{customElements.define(ga,ba)}catch(Fa){}var fa=Object.defineProperty,va=Object.getOwnPropertyDescriptor,ya=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?va(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&fa(e,r,i),i};const wa="sonic-table";let xa=class extends et{constructor(){super(...arguments),this.striped=!1,this.sticky=!1,this.bordered=!1,this.hover=!1}render(){const t={maxHeight:this.maxHeight};return L`<div class="table-container custom-scroll" style="${Re(t)}"><div class="table" ?striped="${this.striped}" ?hover="${this.hover}" ?sticky="${this.sticky}"><slot></slot></div></div>`}};xa.styles=[Te,ar,n`:host{--sc-table-fw:var(--sc-font-weight-base);--sc-table-fst:var(--sc-font-style-base);--sc-table-fs:1rem;--sc-table-border-color:var(--sc-base-200);--sc-table-caption-color:var(--sc-base-400);--sc-table-bg:var(--sc-base);--sc-table-th-fs:.85em;--sc-table-th-fw:bold;--sc-table-th-tt:uppercase;--sc-table-th-px:var(--sc-table-td-px);--sc-table-th-py:calc(1.8 * var(--sc-table-td-py) );--sc-table-td-px:.5em;--sc-table-td-py:.5em;display:block}:host([maxHeight]) .table-container{overflow-x:auto;-webkit-overflow-scrolling:touch}.table{width:100%;display:table;box-sizing:border-box}:host([bordered]) .table-container{border:var(--sc-border-width) solid var(--sc-table-border-color)!important}`],ya([it({type:String,reflect:!0})],xa.prototype,"size",2),ya([it({type:Boolean,reflect:!0})],xa.prototype,"striped",2),ya([it({type:Boolean,reflect:!0})],xa.prototype,"sticky",2),ya([it({type:Boolean,reflect:!0})],xa.prototype,"bordered",2),ya([it({type:Boolean,reflect:!0})],xa.prototype,"hover",2),ya([it({type:String})],xa.prototype,"maxHeight",2),xa=ya([st(wa)],xa);try{customElements.define(wa,xa)}catch(Fa){}const _a=$r,ka=nr,Aa=rr,Pa=oo,$a=Et,Ca=Lt;let Sa=window;Sa["concorde-mixins"]=Sa["concorde-mixins"]||{},Sa["concorde-mixins"]={Fetcher:_a,FormCheckable:ka,FormElement:Aa,FormInput:Pa,Subscriber:$a,TemplatesContainer:Ca};var Oa=Object.defineProperty,Ea=Object.getOwnPropertyDescriptor,za=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Ea(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Oa(e,r,i),i};let ja=class extends($a(et)){constructor(){super(...arguments),this.key="",this.action=null}connectedCallback(){var t;const e=document.createElement("script");e.src="https://www.google.com/recaptcha/api.js?render="+this.key,document.head.appendChild(e),super.connectedCallback(),this.formPublisher=xr.get(null!=(t=this.getAncestorAttributeValue("headersDataProvider"))?t:this.getAncestorAttributeValue("formDataProvider")),this.formPublisher.needsCaptchaValidation=!0,this.formPublisher.captchaToken.onAssign((t=>{"request_token"==t&&this.requestToken()}))}requestToken(){var t,e,r;const s=window;let o=(null!=(r=null!=(e=this.action)?e:null==(t=this.formPublisher.action)?void 0:t.get())?r:"submit").replace(/[^\w_\/]/g,"_");delete this.formPublisher.action,s.grecaptcha.ready((()=>{s.grecaptcha.execute(this.key,{action:o}).then((t=>{this.formPublisher.captchaToken=t}))}))}render(){return L`<slot></slot>`}};za([it()],ja.prototype,"key",2),za([it()],ja.prototype,"action",2),ja=za([st("sonic-captcha")],ja);let Da=window;Da.SonicPublisherManager||(Da.SonicPublisherManager=gt),Da.SonicDataBindObserver||(Da.SonicDataBindObserver=_t);const La=Ye,Ma=Ki;let Na=window;Na["concorde-components"]=Na["concorde-components"]||{},Na["concorde-components"]={SonicToast:La,SonicModal:Ma}}));
|