@ganpatiinfo/gids-core-web 8.2.0 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/css/index.css +475 -0
  2. package/dist/css/index.css.map +1 -1
  3. package/dist/custom-elements.json +332 -0
  4. package/dist/gids-field.js +1 -1
  5. package/dist/gids-icon.js +1 -1
  6. package/dist/gids-input.js +1 -1
  7. package/dist/gids-overflow-container.js +1 -1
  8. package/dist/gids-overlay-provider.js +1 -1
  9. package/dist/gids-password-field.js +1 -1
  10. package/dist/gids-popover.d.ts +11 -0
  11. package/dist/gids-popover.js +1 -0
  12. package/dist/gids-scrim.js +1 -1
  13. package/dist/gids-text-field.js +1 -1
  14. package/dist/gids-toggle-button.js +1 -1
  15. package/dist/gids-tooltip.d.ts +11 -0
  16. package/dist/gids-tooltip.js +1 -0
  17. package/dist/index.js +1 -1
  18. package/dist/p-B8kX8Vqv.js +1 -0
  19. package/dist/p-CFw4_-5A.js +1 -0
  20. package/dist/{p-Bg3lw2Ae.js → p-DvoHLz_5.js} +1 -1
  21. package/dist/p-a3JfEYJp.js +1 -0
  22. package/dist/{p-DjvDBWCb.js → p-iCAclJND.js} +1 -1
  23. package/dist/types/components/html/GidsButton/GidsButton.d.ts +1 -1
  24. package/dist/types/components/html/GidsDropdownItem/GidsDropdownItem.d.ts +9 -0
  25. package/dist/types/components/html/GidsDropdownMenu/GidsDropdownMenu.d.ts +6 -0
  26. package/dist/types/components/html/GidsDropdownMenuGroup/GidsDropdownMenuGroup.d.ts +5 -0
  27. package/dist/types/components/html/GidsEditButton/GidsEditButton.d.ts +7 -0
  28. package/dist/types/components/html/GidsListItem/GidsListItem.d.ts +11 -0
  29. package/dist/types/components/html/GidsMenu/GidsMenu.d.ts +6 -0
  30. package/dist/types/components/html/GidsMenuGroup/GidsMenuGroup.d.ts +5 -0
  31. package/dist/types/components/shared/GidsFloatingElementManager.d.ts +57 -0
  32. package/dist/types/components/shared/GidsFloatingElementTypes.d.ts +4 -0
  33. package/dist/types/components/webComponents/GidsPopover/GidsPopover.d.ts +24 -0
  34. package/dist/types/components/webComponents/GidsTooltip/GidsTooltip.d.ts +23 -0
  35. package/dist/types/components.d.ts +77 -2
  36. package/dist/types/index.d.ts +2 -0
  37. package/dist/types/utils/childrenValidityUtils.d.ts +8 -0
  38. package/dist-bundled/es/gids-field.js +1 -1
  39. package/dist-bundled/es/gids-icon.js +9 -9
  40. package/dist-bundled/es/gids-input.js +4 -4
  41. package/dist-bundled/es/gids-overflow-container.js +4 -4
  42. package/dist-bundled/es/gids-overlay-provider.js +3 -3
  43. package/dist-bundled/es/gids-password-field.js +19 -19
  44. package/dist-bundled/es/gids-popover.js +110 -0
  45. package/dist-bundled/es/gids-scrim.js +3 -3
  46. package/dist-bundled/es/gids-text-field.js +7 -7
  47. package/dist-bundled/es/gids-toggle-button.js +5 -5
  48. package/dist-bundled/es/gids-tooltip.js +66 -0
  49. package/dist-bundled/es/index.js +33 -19
  50. package/dist-bundled/es/p-B8kX8Vqv-trBz4jdS.js +7 -0
  51. package/dist-bundled/es/p-CFw4_-5A-Dzvju3VE.js +25 -0
  52. package/dist-bundled/es/{p-DijVkS9b-CtFkEtlE.js → p-DijVkS9b-CeV1i4T-.js} +1 -1
  53. package/dist-bundled/es/{p-Bg3lw2Ae-CkC8nUqv.js → p-DvoHLz_5-C5EvA91N.js} +7 -7
  54. package/dist-bundled/es/p-a3JfEYJp-DyhDK6VZ.js +1128 -0
  55. package/dist-bundled/es/{p-DjvDBWCb-C9js0PPL.js → p-iCAclJND-Bmsvd-W1.js} +10 -10
  56. package/dist-bundled/es/{p-veoOgDXg-DElc87c0.js → p-veoOgDXg-fRinub-C.js} +12 -5
  57. package/dist-bundled/umd/gids-field.umd.js +1 -1
  58. package/dist-bundled/umd/gids-icon.umd.js +2 -2
  59. package/dist-bundled/umd/gids-input.umd.js +1 -1
  60. package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
  61. package/dist-bundled/umd/gids-overlay-provider.umd.js +2 -2
  62. package/dist-bundled/umd/gids-password-field.umd.js +1 -1
  63. package/dist-bundled/umd/gids-popover.umd.js +5 -0
  64. package/dist-bundled/umd/gids-scrim.umd.js +1 -1
  65. package/dist-bundled/umd/gids-text-field.umd.js +1 -1
  66. package/dist-bundled/umd/gids-toggle-button.umd.js +2 -2
  67. package/dist-bundled/umd/gids-tooltip.umd.js +5 -0
  68. package/dist-bundled/umd/index.umd.js +2 -2
  69. package/dist-bundled/umd-complete/gids-core-web.umd.js +3 -3
  70. package/package.json +278 -262
  71. package/dist/p-CWdkmFbc.js +0 -1
  72. package/dist-bundled/es/p-CWdkmFbc-D89ZE8Mi.js +0 -24
@@ -2,4 +2,4 @@
2
2
  Flattening is not supported for Stencil non-shadow slots.
3
3
  You can use \`.childNodes\` to nested slot fallback content.
4
4
  If you have a particular use case, please open an issue on the Stencil repo.
5
- `);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(y=>{const v=[];for(let m=0;m<y.length;m++){const p=y[m]["s-nr"]||void 0;p&&p.isConnected&&v.push(p)}return v})(S.childNodes)).forEach((y=>{h===B(y)&&g.push(y)})),d?g.filter((y=>y.nodeType===1)):g}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(o),a=e&&e.m&&e.m[i],a&&a.O===n.O&&e.S&&Be(e.S)),o},Be=e=>{T.i|=1;const t=e.closest(j.toLowerCase());if(t!=null){const i=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of i?s.reverse():s)n["s-sh"]!=null&&($(t,n,i??null),n["s-sh"]=void 0,Y=!0)}T.i&=-2},X=(e,t)=>{T.i|=1;const i=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===j&&i.push(s)}for(let s=i.length-1;s>=0;s--){const n=i[s];n["s-hn"]!==j&&n["s-ol"]&&($(q(n).parentNode,n,q(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&X(n,t)}T.i&=-2},De=(e,t,i,s,n,o)=>{let l,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===j&&(a=a.shadowRoot),i.O==="template"&&(a=a.content);n<=o;++n)s[n]&&(l=J(null,i,n),l&&(s[n].S=l,$(a,l,q(t))))},qe=(e,t,i)=>{for(let s=t;s<=i;++s){const n=e[s];if(n){const o=n.S;ze(n),o&&(K=!0,o["s-ol"]?o["s-ol"].remove():X(o,!0),o.remove())}}},Z=(e,t,i=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:i?(i&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),q=e=>e&&e["s-ol"]||e,V=(e,t,i=!1)=>{const s=t.S=e.S,n=e.m,o=t.m,l=t.O,a=t.h;let r;a==null?(E=l==="svg"||l!=="foreignObject"&&E,l!=="slot"||D||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Be(t.S.parentElement)),fe(e,t,E),n!==null&&o!==null?((c,u,d,f,g=!1)=>{let h,S,y=0,v=0,m=0,p=0,w=u.length-1,b=u[0],C=u[w],L=f.length-1,N=f[0],k=f[L];const mt=d.O==="template"?c.content:c;for(;y<=w&&v<=L;)if(b==null)b=u[++y];else if(C==null)C=u[--w];else if(N==null)N=f[++v];else if(k==null)k=f[--L];else if(Z(b,N,g))V(b,N,g),b=u[++y],N=f[++v];else if(Z(C,k,g))V(C,k,g),C=u[--w],k=f[--L];else if(Z(b,k,g))b.O!=="slot"&&k.O!=="slot"||X(b.S.parentNode,!1),V(b,k,g),$(mt,b.S,C.S.nextSibling),b=u[++y],k=f[--L];else if(Z(C,N,g))b.O!=="slot"&&k.O!=="slot"||X(C.S.parentNode,!1),V(C,N,g),$(mt,C.S,b.S),C=u[--w],N=f[++v];else{for(m=-1,p=y;p<=w;++p)if(u[p]&&u[p].$!==null&&u[p].$===N.$){m=p;break}m>=0?(S=u[m],S.O!==N.O?h=J(u&&u[v],d,m):(V(S,N,g),u[m]=void 0,h=S.S),N=f[++v]):(h=J(u&&u[v],d,v),N=f[++v]),h&&$(q(b.S).parentNode,h,q(b.S))}y>w?De(c,f[L+1]==null?null:f[L+1].S,d,f,v,L):v>L&&qe(u,y,w)})(s,n,t,o,i):o!==null?(e.h!==null&&(s.textContent=""),De(s,null,t,o,0,o.length-1)):!i&&n!==null&&qe(n,0,n.length-1),E&&l==="svg"&&(E=!1)):(r=s["s-cr"])?r.parentNode.textContent=a:e.h!==a&&(s.data=a)},A=[],He=e=>{let t,i,s;const n=e.__childNodes||e.childNodes;for(const o of n){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){i=t.parentNode.__childNodes||t.parentNode.childNodes;const l=o["s-sn"];for(s=i.length-1;s>=0;s--)if(t=i[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(ke(t,l)){let a=A.find((r=>r.k===t));K=!0,t["s-sn"]=t["s-sn"]||l,a?(a.k["s-sh"]=o["s-hn"],a.N=o):(t["s-sh"]=o["s-hn"],A.push({N:o,k:t})),t["s-sr"]&&A.map((r=>{ke(r.k,t["s-sn"])&&(a=A.find((c=>c.k===t)),a&&!r.N&&(r.N=a.N))}))}else A.some((a=>a.k===t))||A.push({k:t})}o.nodeType===1&&He(o)}},ze=e=>{e.v&&e.v.ref&&pe.push((()=>e.v.ref(null))),e.m&&e.m.map(ze)},Nt=(e,t)=>{ge.push((()=>e(t)))},$=(e,t,i,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:n}=(function(o,l){var a;if(!(l=l||((a=o["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const r=o["s-sn"]=B(o)||"";return{slotNode:de(ce(l,"childNodes"),l.tagName,r)[0],slotName:r}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,i):e?.insertBefore(t,i)},Lt=(e,t,i=!1)=>{var s,n,o,l,a;const r=e.$hostElement$,c=e.o,u=e.M||U(null,null);var d;const f=(d=t)&&d.O===Ae?t:_(null,null,t);if(j=r.tagName,c._&&(f.v=f.v||{},c._.forEach((([g,h])=>{f.v[h]=r[g]}))),i&&f.v)for(const g of Object.keys(f.v))r.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(f.v[g]=r[g]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=r.shadowRoot||r,D=!(!(1&c.i)||128&c.i),ue=r["s-cr"],K=!1,V(u,f,i),T.i|=1,Y){He(f.S);for(const g of A){const h=g.k;if(!h["s-ol"]&&x.document){const S=x.document.createTextNode("");S["s-nr"]=h,$(h.parentNode,h["s-ol"]=S,h,i)}}for(const g of A){const h=g.k,S=g.N;if(h.nodeType===1&&i&&(h["s-ih"]=(s=h.hidden)!=null&&s),S){const y=S.parentNode;let v=S.nextSibling;if(v&&v.nodeType===1){let m=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;m;){let p=(o=m["s-nr"])!=null?o:null;if(p&&p["s-sn"]===h["s-sn"]&&y===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===h||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){v=p;break}}m=m.previousSibling}}if((!v&&y!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==v)&&h!==v){if($(y,h,v,i),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const m=x.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=h["s-hn"],m["s-sn"]=h["s-sn"],m["s-sh"]=h["s-sh"],m["s-sr"]=h["s-sr"],m["s-ol"]=h["s-ol"],m["s-ol"]["s-nr"]=m,$(h.parentNode,m,h,i),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(l=h["s-ih"])!=null&&l)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(K&&$e(f.S),T.i&=-2,A.length=0,!D&&!(1&c.i)&&r["s-cr"]){const g=f.S.__childNodes||f.S.childNodes;for(const h of g)if(h["s-hn"]!==j&&!h["s-sh"]){if(i&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=x.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],$(h.parentNode,S,h,i),h.parentNode.removeChild(h)}}}ue=void 0,pe.forEach((g=>g())),pe.length=0,ge.forEach((g=>g())),ge.length=0},We=(e,t)=>{if(t&&!e.A&&t["s-p"]){const i=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(i-1,1),s()})))}},Q=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);We(e,e.C);const i=()=>$t(e,t);if(!t)return bt(i);queueMicrotask((()=>{i()}))},$t=(e,t)=>{const i=e.$hostElement$,s=i;if(!s)throw new Error(`Can't render component <${i.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=H(s,t?"componentWillLoad":"componentWillUpdate",void 0,i),n=Ue(n,(()=>H(s,"componentWillRender",void 0,i))),Ue(n,(()=>Ot(e,s,t)))},Ue=(e,t)=>kt(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),kt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ot=async(e,t,i)=>{var s;const n=e.$hostElement$,o=n["s-rc"];i&&(l=>{const a=l.o,r=l.$hostElement$,c=a.i,u=((d,f)=>{var g,h,S;const y=Oe(f),v=W.get(y);if(!x.document)return y;if(d=d.nodeType===11?d:x.document,v)if(typeof v=="string"){let m,p=I.get(d=d.head||d);if(p||I.set(d,p=new Set),!p.has(y)){m=x.document.createElement("style"),m.textContent=v;const w=(g=T.L)!=null?g:(function(){var b,C,L;return(L=(C=(b=x.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:C.getAttribute("content"))!=null?L:void 0})();if(w!=null&&m.setAttribute("nonce",w),!(1&f.i))if(d.nodeName==="HEAD"){const b=d.querySelectorAll("link[rel=preconnect]"),C=b.length>0?b[b.length-1].nextSibling:d.querySelector("style");d.insertBefore(m,C?.parentNode===d?C:null)}else if("host"in d)if(ne){const b=new((h=d.defaultView)!=null?h:d.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(v),oe?d.adoptedStyleSheets.unshift(b):d.adoptedStyleSheets=[b,...d.adoptedStyleSheets]}else{const b=d.querySelector("style");b?b.textContent=v+b.textContent:d.prepend(m)}else d.append(m);1&f.i&&d.insertBefore(m,null),4&f.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(y)}}else{let m=I.get(d);if(m||I.set(d,m=new Set),!m.has(y)){const p=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let w;if(v.constructor===p.CSSStyleSheet)w=v;else{w=new p.CSSStyleSheet;for(let b=0;b<v.cssRules.length;b++)w.insertRule(v.cssRules[b].cssText,b)}oe?d.adoptedStyleSheets.push(w):d.adoptedStyleSheets=[...d.adoptedStyleSheets,w],m.add(y)}}return y})(r.shadowRoot?r.shadowRoot:r.getRootNode(),a);10&c&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),At(e,t,n,i),o&&(o.map((l=>l())),n["s-rc"]=void 0);{const l=(s=n["s-p"])!=null?s:[],a=()=>It(e);l.length===0?a():(Promise.all(l).then(a).catch(a),e.i|=4,l.length=0)}},At=(e,t,i,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Lt(e,t,s)}catch(n){F(n,e.$hostElement$)}return null},It=e=>{const t=e.$hostElement$,i=t,s=e.C;H(i,"componentDidRender",void 0,t),64&e.i?H(i,"componentDidUpdate",void 0,t):(e.i|=64,Pt(t),H(i,"componentDidLoad",void 0,t),e.F(t),s||jt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ae((()=>Q(e,!1))),e.i&=-517},Mt=e=>{var t;{const i=O(e),s=(t=i?.$hostElement$)==null?void 0:t.isConnected;return s&&(18&i.i)==2&&Q(i,!1),s}},jt=()=>{ae((()=>Pe(x,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,i,s)=>{if(e&&e[t])try{return e[t](i)}catch(n){F(n,s)}},Pt=e=>e.classList.add("hydrated"),Ke=(e,t,i,s)=>{const n=O(e);if(!n)return;const o=e,l=n.l.get(t),a=n.i,r=o;i=je(i,s.t[t][0]);const c=Number.isNaN(l)&&Number.isNaN(i);if(i!==l&&!c){if(n.l.set(t,i),s.R){const u=s.R[t];u&&u.map((d=>{try{const[[f,g]]=Object.entries(d);(128&a||1&g)&&(r?r[f](i,l,t):n.T.push((()=>{n.D[f](i,l,t)})))}catch(f){F(f,o)}}))}if(2&a){if(r.componentShouldUpdate&&r.componentShouldUpdate(i,l,t)===!1&&!(16&a))return;16&a||Q(n,!1)}}},Ft=(e,t)=>{var i,s;const n=e.prototype;{e.watchers&&!t.R&&(t.R=Me(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const o=Object.entries((i=t.t)!=null?i:{});o.map((([l,[a]])=>{if(31&a||32&a){const{get:r,set:c}=P(n,l)||{};r&&(t.t[l][0]|=2048),c&&(t.t[l][0]|=4096),Object.defineProperty(n,l,{get(){return r?r.apply(this):(u=l,O(this).l.get(u));var u},configurable:!0,enumerable:!0}),Object.defineProperty(n,l,{set(u){const d=O(this);if(d){if(c)return(32&a?this[l]:d.$hostElement$[l])===void 0&&d.l.get(l)&&(u=d.l.get(l)),c.apply(this,[je(u,a)]),void Ke(this,l,u=32&a?this[l]:d.$hostElement$[l],t);Ke(this,l,u,t)}}})}}));{const l=new Map;n.attributeChangedCallback=function(a,r,c){T.jmp((()=>{var u;const d=l.get(a),f=O(this);if(this.hasOwnProperty(d),n.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==c)return;if(d==null){const v=f?.i;if(f&&v&&!(8&v)&&c!==r){const m=this,p=(u=t.R)==null?void 0:u[a];p?.forEach((w=>{const[[b,C]]=Object.entries(w);m[b]!=null&&(128&v||1&C)&&m[b].call(m,c,r,a)}))}return}const g=o.find((([v])=>v===d)),h=g&&4&g[1][0],S=h&&c===null&&this[d]===void 0;h&&(c=c!==null&&c!=="false");const y=Object.getOwnPropertyDescriptor(n,d);S||c==this[d]||y.get&&!y.set||(this[d]=c)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...o.filter((([a,r])=>31&r[0])).map((([a,r])=>{var c;const u=r[1]||a;return l.set(u,a),512&r[0]&&((c=t._)==null||c.push([a,u])),u}))]))}}return e},me=(e,t)=>{const i={i:t[0],p:t[1]};try{i.t=t[2],i.R=Me(e.R),i.H=e.H,i.P=e.P,i._=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,l)=>{const a={i:0,$hostElement$:o,o:l,l:new Map,U:new Map};a.W=new Promise((c=>a.F=c)),o["s-p"]=[],o["s-rc"]=[];const r=a;o.__stencil__getHostRef=()=>r,512&l.i&&_t(o,a)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!O(this))return;this.__hasHostListenerAttached=!0}(o=>{if(!(1&T.i)){const l=O(o);if(!l)return;const a=l.o;if(1&l.i)l?.D||l?.W&&l.W.then((()=>{}));else{l.i|=1,12&a.i&&(r=>{if(!x.document)return;const c=r["s-cr"]=x.document.createComment("");c["s-cn"]=!0,$(r,c,r.firstChild)})(o);{let r=o;for(;r=r.parentNode||r.host;)if(r["s-p"]){We(l,l.C=r);break}}a.t&&Object.entries(a.t).map((([r,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,r)){const u=o[r];delete o[r],o[r]=u}})),(async(r,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=r.constructor,customElements.whenDefined(r.localName).then((()=>c.i|=128)),d&&d.style)){let h;typeof d.style=="string"&&(h=d.style);const S=Oe(u);W.has(S)||((y,v,m)=>{let p=W.get(y);ne&&m?(p=p||new CSSStyleSheet,typeof p=="string"?p=v:p.replaceSync(v)):p=v,W.set(y,p)})(S,h,!!(1&u.i))}const f=c.C,g=()=>Q(c,!0);f&&f["s-rc"]?f["s-rc"].push(g):g()}catch(f){F(f,r),c.A&&(c.A(),c.A=void 0),c.F&&c.F(r)}})(o,l,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async o=>{1&T.i||O(o),I.has(o)&&I.delete(o),o.shadowRoot&&I.has(o.shadowRoot)&&I.delete(o.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${i.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else yt.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),Ft(e,i)}catch(s){return F(s),e}},Vt=(e,t)=>t;function ws(e){return e}const Ye=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},Rt=/\w/,Gt=e=>e.replace(Rt,t=>t.toLocaleUpperCase()),Je=(e,t)=>typeof e=="function"?e(t):t?Gt(e):e,Bt=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:n})=>{const o=n?n(e):Ye(e);if(t==="required")return Je(s&&s.length>0?s:"(required)",o);if(t==="optional")return Je(i&&i.length>0?i:"(optional)",o)},isSentence:Ye},Symbol.toStringTag,{value:"Module"})),ee=64,Xe=10,Ze=ee/2-Xe/2,Dt=ee/2,_e=2*Math.PI*Ze,qt=`0 0 ${ee} ${ee}`,Ht=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const i=typeof t=="number"&&t>0?t:1,n=Math.max(0,Math.min(i,e))/i*100,o=(_e*n/100).toFixed(2),l=(_e-parseFloat(o)).toFixed(2);return`${o} ${l}`},centerPosition:Dt,circumference:_e,radius:Ze,thickness:Xe,viewBox:qt},Symbol.toStringTag,{value:"Module"})),Qe=Object.freeze(Object.defineProperty({__proto__:null,formatCharCount:(e,t)=>{if(!(e===void 0||t===void 0))return`${e} / ${Math.max(t,0)}`},inputToGidsFieldStatus:e=>{switch(e){case"error":return"error";case"success":return"success";default:return"default"}}},Symbol.toStringTag,{value:"Module"}));function et(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(i=et(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function z(){for(var e,t,i=0,s="",n=arguments.length;i<n;i++)(e=arguments[i])&&(t=et(e))&&(s&&(s+=" "),s+=t);return s}const zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>z("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),Wt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:i},s)=>z("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},i,s)},Symbol.toStringTag,{value:"Module"})),Ut=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>z("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Kt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDismissButtonClassNames:({appearance:e,size:t},i)=>z("gids-dismiss-button",{"gids-dismiss-button--sm":t==="sm","gids-dismiss-button--lg":t==="lg","gids-dismiss-button--bold":e==="bold"},i)},Symbol.toStringTag,{value:"Module"})),Yt=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>z("gids-field",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatus:Jt}=Qe,Xt=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatus:e=>e==="implicit"||e===void 0?"implicit":Jt(e)},Symbol.toStringTag,{value:"Module"})),ve=Symbol("defaultPath"),tt=Symbol("pathSet"),be="gids-asset-paths-set";class Zt extends EventTarget{#t=new Map;constructor(){super()}#e(t,i){this.#t.set(t,i)}#s(t){return this.#t.get(t)??null}#i=()=>{this.dispatchEvent(new Event(be))};haveAssetPathsBeenSet(){return this.#s(tt)!==null}setAssetPaths(t,i){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(ve,t);else{for(const s in t)this.#e(s,t[s]);i&&this.#e(ve,i)}this.#e(tt,"true"),setTimeout(this.#i,0)}}getAssetFilePath(t){const i=this.#s(t);if(i===null){const s=this.#s(ve);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return i}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(be,t,{once:!0}),()=>{this.removeEventListener(be,t)}}}const ye=Symbol.for("GIDS"),Qt=()=>(globalThis[ye]===void 0&&(globalThis[ye]={assetPaths:{}}),globalThis[ye]),es=e=>{const t=Qt().assetPaths;return t[e]===void 0&&(t[e]=new Zt),t[e]};function Se(){return es("@ganpatiinfo/gids-web-shared")}function ts(){return Se().haveAssetPathsBeenSet()}function st(e){return Se().getAssetFilePath(e)}function ss(e){return Se().onAssetPathsSet(e)}let is=0;const it=(e,t="gids")=>e||`${t}-${is++}`,ns=e=>e.type==="hidden",os=e=>{if(!(e instanceof HTMLElement))return!1;const{nodeName:t}=e;return!!(["BUTTON","DETAILS","EMBED","IFRAME","KEYGEN","LABEL","SELECT","TEXTAREA"].includes(t)||t==="A"&&e.hasAttribute("href")||e instanceof HTMLInputElement&&!ns(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},R=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let nt=!1;R&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(R):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let xe=null;const Ce=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{ot()})):void 0,ot=()=>{if(R===void 0)return!1;const e=(()=>{if(R===void 0)return;const t=[];for(let i=0;i<document.styleSheets.length;i++){const s=document.styleSheets.item(i);if(s)try{let n=-1,o=0;for(let l=0;l<s.cssRules.length;l++){const a=s.cssRules.item(l);if(a?.cssText.startsWith("gids-global-styles-start"))n=l;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){o=l-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:o,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return Ce!==void 0&&t!==xe&&(xe&&Ce.disconnect(),t instanceof Element&&Ce.observe(t,{childList:!0,characterData:!0,subtree:!0}),xe=t),R.replaceSync((i=>i.rules.map((s=>s.cssText)).join(""))(e)),(i=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:o}=i;for(let l=0;l<n;l++)o.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},lt=()=>(nt||(nt=ot()),R),rt={"icons-other.svg":["accessibility","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","new","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},at=new Map;for(const e in rt)for(const t of rt[e])at.set(t,e);function ls(e){return at.get(e)}function dt(e,t="regular",i){const s=ls(e);let n=s??"";return i&&s&&(n=i(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:rs}=Ut,te=({name:e,size:t,appearance:i,alt:s,class:n,titleId:o,src:l,...a})=>{const r=it(o);let c=l;return c===void 0&&ts()&&(c=dt(e,i,st)),_("svg",{ref:u=>{c===void 0&&ss((()=>{(function(d,f,g){if(!d)return;const h=document.createElementNS("http://www.w3.org/2000/svg","use");h.setAttribute("href",dt(f,g,st)),d.appendChild(h)})(u,e,i)}))},width:"16",height:"16",class:rs({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:r,...a},s!==""&&_("title",{id:r},s||e),c!==void 0?_("use",{href:c}):null)},{getIndicatorText:as}=Bt,{getGidsLabelClassNames:ds}=zt,cs=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,info:n,htmlFor:o,labelId:l,class:a,isLabelSentence:r,...c},u)=>{const d=as({children:u,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:r});return _("div",{class:ds({disabled:e},a),...c},_("label",{htmlFor:o,id:l},u,d&&_("span",{class:"gids-label__field-requirement"},d)),n)},{getGidsDismissButtonClassNames:us}=Kt,hs=({appearance:e="subtle",size:t="md",disabled:i=!1,class:s,onPressDismiss:n,label:o,...l})=>_("button",{class:us({appearance:e,size:t},s),onClick:n,disabled:i,"aria-label":o,...l},_(te,{name:"cross",appearance:"regular"})),{getGidsFieldClassNames:fs}=Yt,ps=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],i=this._findTextControl(t);this._attachControlElement(i)},this._handleControlValueInput=t=>{if(!this._controlTouched){const i=t.target;i instanceof HTMLInputElement&&(i.type==="checkbox"||i.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=lt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,i=this._getCurrentStatus(),s=["gids-field__status-text"];if(e){const n=this._getStatusModifierClass(i,"gids-field__status-text");n!=null&&s.push(n)}return _(Ae,{key:"a8e81000bf235a842ddf98ef3be3ff5a82201b5d"},_("div",{key:"1c940955fd104dd85a5701f553d2ac5a7ddc14c8",class:fs()},_("div",{key:"62e2a77c0661fc5507fe86d5343f85351895b3e7",class:"gids-field__header",hidden:!this._hasLabelContent()},_("slot",{key:"c94c3346cd083969831905e0d0a7091013d32f3d",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),_("div",{key:"ef4ba969b9ac7be32c9c88260e357661eff68d54",class:"gids-field__count","aria-live":"polite"},this.count)),_("div",{key:"cc2ea221e9c9725193238625f571848879e5c656",class:"gids-field__control"},_("slot",{key:"8530e0748d181e0c3b90e7602545cc67b404ef02",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),_("p",{key:"654ce845b3a9b5bfe3833a8122a05f3158a43fe4",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?_("p",{class:s.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(i),t!==void 0?_("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const i=["gids-field__status-icon"],s=this._getStatusModifierClass(e,"gids-field__status-icon");s!=null&&i.push(s);let n=e;return e==="error"&&(n="danger"),e==="success"&&(n="positive"),_(te,{appearance:"filled",size:"sm",alt:"",name:t,class:i.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${n})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((i=>{i.addEventListener("input",this._handleControlValueInput),i.addEventListener("change",this._handleControlValueInput),i.addEventListener("blur",this._handleControlBlur,!0),i.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const i=t.elements.namedItem(e.name);if(i instanceof RadioNodeList){const s=Array.from(i).filter((n=>n instanceof HTMLInputElement&&n.type==="radio"&&this._el.contains(n)));if(s.length>0)return s}}if(e.name!=null){const i=`input[type="radio"][name="${CSS.escape(e.name)}"]`,s=Array.from(this._el.querySelectorAll(i));if(s.length>0)return s}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const i=t,s=this._asTextControl(i);if(s!==null)return s;const n=i.querySelector("input, textarea");if(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return n}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function ct(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,ps))}))}ct();const{getGidsSpinnerControlClassNames:gs}=Wt,{calculateStrokeDasharray:ms,thickness:ut,radius:ht,centerPosition:se,viewBox:_s}=Ht,vs=({size:e,indeterminate:t,value:i,max:s,...n})=>{let o;return t||(o={strokeDashArray:ms(i,s||0),strokeDashoffset:"0"}),_("svg",{class:gs({size:e,indeterminate:t,value:i}),viewBox:_s,...n},_("circle",{class:"gids-spinner-control__track",cx:se,cy:se,r:ht,"stroke-width":ut}),_("circle",{style:o,class:"gids-spinner-control__progress",cx:se,cy:se,r:ht,"stroke-width":ut}))},bs=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const i=t.target;i===this.#t||this._isWithinInteractiveElement(i)||this.#t?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#t?.defaultValue??this.#e.defaultValue??""}set defaultValue(e){this.#t?this.#t.defaultValue=e:this.#e.defaultValue=e}get value(){return this.#t?.value??this.#e.value??this.#e.defaultValue??""}set value(e){this.#t?this.#t.value=e:this.#e.value=e}#t;#e;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(os(e))return!0;{const t=e.parentElement;if(t)return this._isWithinInteractiveElement(t)}return!1}connectedCallback(){this._el.addEventListener("click",this._focusInput)}disconnectedCallback(){this._el.removeEventListener("click",this._focusInput)}render(){return _(Vt,{key:"5d4e79f168da55c3c8dcb9b005919af697faa2e4"},_("slot",{key:"a7c23b37ceaf94f06e53256b431e98e7a3a32602",name:"leadingIcon"}),this.leadingLabel&&_("span",{key:"0ad81289035ada60d67b1df06fb60f703dc27eed",class:"gids-input__label"},this.leadingLabel),_("slot",{key:"f5870caed190d279a95c688243607dfae8f79d60",name:"leadingAccessory"}),_("input",{key:"38ead647fc9069ed8de93293150134048fd6b4f1",...this.inputProps,ref:e=>{this.#t=e,this.#e.value!==void 0&&(this.#t.value=this.#e.value,delete this.#e.value),this.#e.defaultValue!==void 0&&(this.#t.defaultValue=this.#e.defaultValue,delete this.#e.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),_("slot",{key:"58ff0f57706d2c9b1e9b41549649c324c60a8f07",name:"trailingAccessory"}),this.trailingLabel&&_("span",{key:"6d400670f8c64f64fbe732e726da4d7569c2c6f3",class:"gids-input__label"},this.trailingLabel),_("slot",{key:"8b20ed8fb9169fd7c0e1415f7bcdf0df03b61534",name:"trailingIcon"}),this.status==="incomplete"&&_(te,{key:"f7d4261f5c8faa51601d3fd6c400f4891847f62c",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&_(te,{key:"6cbdc56ebc1854d0b4f6db30df670f665a9aff3f",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&_(vs,{key:"a369d7c3f7e2ac4d631926aefc1a15bf9cbba362",size:"md",indeterminate:!0}))}get _el(){return this}},[260,"gids-input",{appearance:[513],defaultValue:[6657,"default-value"],disabled:[516],inputProps:[16],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],name:[513],readOnly:[516,"readonly"],required:[516],status:[513],value:[6145]}]);function ft(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,bs))}))}ft();const{formatCharCount:ys}=Qe,{inputToGidsFieldStatus:Ss}=Xt,pt=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsTextFieldClear=wt(this,"gidsTextFieldClear"),this.#t=it(),this._handleDismiss=()=>{const t=this.#e?.querySelector("input.gids-input__control");t&&(t.value="",t.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsTextFieldClear.emit()},this._handleInput=t=>{this.value=t.target?.value},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{Mt(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}connectedCallback(){const e=lt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#t;#e;render(){const{id:e,...t}=this.inputProps??{},i=e??this.#t,s=this.showClearButton&&this.value!==void 0&&this.value.length>0;return _("gids-field",{key:"79a6f89effd87741d2b07df6aeb47c7dca810738",disabled:this.disabled,count:ys(this.value?.length,this.maxLength),helperText:this.helperText,statusText:this.statusText,status:Ss(this.status)},_(cs,{key:"04c15dd04008777bd1eff8b3e94fd26076fd0a6c",slot:"label",disabled:this.disabled,info:_("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:i},this.label),_("gids-input",{key:"ae41600eca7cc769e3a4e271bc7d4718c5cb9069",ref:n=>this.#e=n,appearance:this.appearance,status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:this.leadingLabel,trailingLabel:this.trailingLabel,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...t,type:this.type,id:i,maxLength:this.maxLength}},_("slot",{key:"0a1851ba9e1cb1deed77f88327e5411c0577c5d0",name:"leadingIcon"}),_("slot",{key:"140610e53fb52e6b24e0d91361c688e996de3849",name:"leadingAccessory"}),s&&_(hs,{key:"48b5b8d8adaa5693e57d6aca9eff32ca72a2c051",label:"clear text",slot:"trailingAccessory",size:"lg",onPressDismiss:this._handleDismiss}),_("slot",{key:"679c26844c467e15e144c393df13652dbe498421",name:"trailingIcon"})))}get _el(){return this}},[260,"gids-text-field",{label:[513],showClearButton:[516,"show-clear-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],appearance:[513],status:[513],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],type:[513],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16]}]);function gt(){typeof customElements<"u"&&["gids-text-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-text-field":customElements.get(e)||customElements.define(e,pt);break;case"gids-field":customElements.get(e)||ct();break;case"gids-input":customElements.get(e)||ft()}}))}gt();const xs=pt,Cs=gt;M.GidsTextField=xs,M.defineCustomElement=Cs,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
5
+ `);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(y=>{const v=[];for(let m=0;m<y.length;m++){const p=y[m]["s-nr"]||void 0;p&&p.isConnected&&v.push(p)}return v})(S.childNodes)).forEach((y=>{h===B(y)&&g.push(y)})),d?g.filter((y=>y.nodeType===1)):g}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(o),a=e&&e.m&&e.m[i],a&&a.O===n.O&&e.S&&Be(e.S)),o},Be=e=>{T.i|=1;const t=e.closest(j.toLowerCase());if(t!=null){const i=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of i?s.reverse():s)n["s-sh"]!=null&&($(t,n,i??null),n["s-sh"]=void 0,Y=!0)}T.i&=-2},X=(e,t)=>{T.i|=1;const i=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===j&&i.push(s)}for(let s=i.length-1;s>=0;s--){const n=i[s];n["s-hn"]!==j&&n["s-ol"]&&($(q(n).parentNode,n,q(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&X(n,t)}T.i&=-2},De=(e,t,i,s,n,o)=>{let l,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===j&&(a=a.shadowRoot),i.O==="template"&&(a=a.content);n<=o;++n)s[n]&&(l=J(null,i,n),l&&(s[n].S=l,$(a,l,q(t))))},qe=(e,t,i)=>{for(let s=t;s<=i;++s){const n=e[s];if(n){const o=n.S;ze(n),o&&(K=!0,o["s-ol"]?o["s-ol"].remove():X(o,!0),o.remove())}}},Z=(e,t,i=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:i?(i&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),q=e=>e&&e["s-ol"]||e,V=(e,t,i=!1)=>{const s=t.S=e.S,n=e.m,o=t.m,l=t.O,a=t.h;let r;a==null?(E=l==="svg"||l!=="foreignObject"&&E,l!=="slot"||D||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Be(t.S.parentElement)),fe(e,t,E),n!==null&&o!==null?((c,u,d,f,g=!1)=>{let h,S,y=0,v=0,m=0,p=0,w=u.length-1,b=u[0],C=u[w],L=f.length-1,N=f[0],k=f[L];const mt=d.O==="template"?c.content:c;for(;y<=w&&v<=L;)if(b==null)b=u[++y];else if(C==null)C=u[--w];else if(N==null)N=f[++v];else if(k==null)k=f[--L];else if(Z(b,N,g))V(b,N,g),b=u[++y],N=f[++v];else if(Z(C,k,g))V(C,k,g),C=u[--w],k=f[--L];else if(Z(b,k,g))b.O!=="slot"&&k.O!=="slot"||X(b.S.parentNode,!1),V(b,k,g),$(mt,b.S,C.S.nextSibling),b=u[++y],k=f[--L];else if(Z(C,N,g))b.O!=="slot"&&k.O!=="slot"||X(C.S.parentNode,!1),V(C,N,g),$(mt,C.S,b.S),C=u[--w],N=f[++v];else{for(m=-1,p=y;p<=w;++p)if(u[p]&&u[p].$!==null&&u[p].$===N.$){m=p;break}m>=0?(S=u[m],S.O!==N.O?h=J(u&&u[v],d,m):(V(S,N,g),u[m]=void 0,h=S.S),N=f[++v]):(h=J(u&&u[v],d,v),N=f[++v]),h&&$(q(b.S).parentNode,h,q(b.S))}y>w?De(c,f[L+1]==null?null:f[L+1].S,d,f,v,L):v>L&&qe(u,y,w)})(s,n,t,o,i):o!==null?(e.h!==null&&(s.textContent=""),De(s,null,t,o,0,o.length-1)):!i&&n!==null&&qe(n,0,n.length-1),E&&l==="svg"&&(E=!1)):(r=s["s-cr"])?r.parentNode.textContent=a:e.h!==a&&(s.data=a)},A=[],He=e=>{let t,i,s;const n=e.__childNodes||e.childNodes;for(const o of n){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){i=t.parentNode.__childNodes||t.parentNode.childNodes;const l=o["s-sn"];for(s=i.length-1;s>=0;s--)if(t=i[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(ke(t,l)){let a=A.find((r=>r.k===t));K=!0,t["s-sn"]=t["s-sn"]||l,a?(a.k["s-sh"]=o["s-hn"],a.N=o):(t["s-sh"]=o["s-hn"],A.push({N:o,k:t})),t["s-sr"]&&A.map((r=>{ke(r.k,t["s-sn"])&&(a=A.find((c=>c.k===t)),a&&!r.N&&(r.N=a.N))}))}else A.some((a=>a.k===t))||A.push({k:t})}o.nodeType===1&&He(o)}},ze=e=>{e.v&&e.v.ref&&pe.push((()=>e.v.ref(null))),e.m&&e.m.map(ze)},Nt=(e,t)=>{ge.push((()=>e(t)))},$=(e,t,i,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:n}=(function(o,l){var a;if(!(l=l||((a=o["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const r=o["s-sn"]=B(o)||"";return{slotNode:de(ce(l,"childNodes"),l.tagName,r)[0],slotName:r}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,i):e?.insertBefore(t,i)},Lt=(e,t,i=!1)=>{var s,n,o,l,a;const r=e.$hostElement$,c=e.o,u=e.M||U(null,null);var d;const f=(d=t)&&d.O===Ae?t:_(null,null,t);if(j=r.tagName,c._&&(f.v=f.v||{},c._.forEach((([g,h])=>{f.v[h]=r[g]}))),i&&f.v)for(const g of Object.keys(f.v))r.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(f.v[g]=r[g]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=r.shadowRoot||r,D=!(!(1&c.i)||128&c.i),ue=r["s-cr"],K=!1,V(u,f,i),T.i|=1,Y){He(f.S);for(const g of A){const h=g.k;if(!h["s-ol"]&&x.document){const S=x.document.createTextNode("");S["s-nr"]=h,$(h.parentNode,h["s-ol"]=S,h,i)}}for(const g of A){const h=g.k,S=g.N;if(h.nodeType===1&&i&&(h["s-ih"]=(s=h.hidden)!=null&&s),S){const y=S.parentNode;let v=S.nextSibling;if(v&&v.nodeType===1){let m=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;m;){let p=(o=m["s-nr"])!=null?o:null;if(p&&p["s-sn"]===h["s-sn"]&&y===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===h||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){v=p;break}}m=m.previousSibling}}if((!v&&y!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==v)&&h!==v){if($(y,h,v,i),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const m=x.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=h["s-hn"],m["s-sn"]=h["s-sn"],m["s-sh"]=h["s-sh"],m["s-sr"]=h["s-sr"],m["s-ol"]=h["s-ol"],m["s-ol"]["s-nr"]=m,$(h.parentNode,m,h,i),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(l=h["s-ih"])!=null&&l)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(K&&$e(f.S),T.i&=-2,A.length=0,!D&&!(1&c.i)&&r["s-cr"]){const g=f.S.__childNodes||f.S.childNodes;for(const h of g)if(h["s-hn"]!==j&&!h["s-sh"]){if(i&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=x.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],$(h.parentNode,S,h,i),h.parentNode.removeChild(h)}}}ue=void 0,pe.forEach((g=>g())),pe.length=0,ge.forEach((g=>g())),ge.length=0},We=(e,t)=>{if(t&&!e.A&&t["s-p"]){const i=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(i-1,1),s()})))}},Q=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);We(e,e.C);const i=()=>$t(e,t);if(!t)return bt(i);queueMicrotask((()=>{i()}))},$t=(e,t)=>{const i=e.$hostElement$,s=i;if(!s)throw new Error(`Can't render component <${i.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=H(s,t?"componentWillLoad":"componentWillUpdate",void 0,i),n=Ue(n,(()=>H(s,"componentWillRender",void 0,i))),Ue(n,(()=>Ot(e,s,t)))},Ue=(e,t)=>kt(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),kt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ot=async(e,t,i)=>{var s;const n=e.$hostElement$,o=n["s-rc"];i&&(l=>{const a=l.o,r=l.$hostElement$,c=a.i,u=((d,f)=>{var g,h,S;const y=Oe(f),v=W.get(y);if(!x.document)return y;if(d=d.nodeType===11?d:x.document,v)if(typeof v=="string"){let m,p=I.get(d=d.head||d);if(p||I.set(d,p=new Set),!p.has(y)){m=x.document.createElement("style"),m.textContent=v;const w=(g=T.L)!=null?g:(function(){var b,C,L;return(L=(C=(b=x.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:C.getAttribute("content"))!=null?L:void 0})();if(w!=null&&m.setAttribute("nonce",w),!(1&f.i))if(d.nodeName==="HEAD"){const b=d.querySelectorAll("link[rel=preconnect]"),C=b.length>0?b[b.length-1].nextSibling:d.querySelector("style");d.insertBefore(m,C?.parentNode===d?C:null)}else if("host"in d)if(ne){const b=new((h=d.defaultView)!=null?h:d.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(v),oe?d.adoptedStyleSheets.unshift(b):d.adoptedStyleSheets=[b,...d.adoptedStyleSheets]}else{const b=d.querySelector("style");b?b.textContent=v+b.textContent:d.prepend(m)}else d.append(m);1&f.i&&d.insertBefore(m,null),4&f.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(y)}}else{let m=I.get(d);if(m||I.set(d,m=new Set),!m.has(y)){const p=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let w;if(v.constructor===p.CSSStyleSheet)w=v;else{w=new p.CSSStyleSheet;for(let b=0;b<v.cssRules.length;b++)w.insertRule(v.cssRules[b].cssText,b)}oe?d.adoptedStyleSheets.push(w):d.adoptedStyleSheets=[...d.adoptedStyleSheets,w],m.add(y)}}return y})(r.shadowRoot?r.shadowRoot:r.getRootNode(),a);10&c&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),At(e,t,n,i),o&&(o.map((l=>l())),n["s-rc"]=void 0);{const l=(s=n["s-p"])!=null?s:[],a=()=>It(e);l.length===0?a():(Promise.all(l).then(a).catch(a),e.i|=4,l.length=0)}},At=(e,t,i,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Lt(e,t,s)}catch(n){F(n,e.$hostElement$)}return null},It=e=>{const t=e.$hostElement$,i=t,s=e.C;H(i,"componentDidRender",void 0,t),64&e.i?H(i,"componentDidUpdate",void 0,t):(e.i|=64,Pt(t),H(i,"componentDidLoad",void 0,t),e.F(t),s||jt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ae((()=>Q(e,!1))),e.i&=-517},Mt=e=>{var t;{const i=O(e),s=(t=i?.$hostElement$)==null?void 0:t.isConnected;return s&&(18&i.i)==2&&Q(i,!1),s}},jt=()=>{ae((()=>Pe(x,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,i,s)=>{if(e&&e[t])try{return e[t](i)}catch(n){F(n,s)}},Pt=e=>e.classList.add("hydrated"),Ke=(e,t,i,s)=>{const n=O(e);if(!n)return;const o=e,l=n.l.get(t),a=n.i,r=o;i=je(i,s.t[t][0]);const c=Number.isNaN(l)&&Number.isNaN(i);if(i!==l&&!c){if(n.l.set(t,i),s.R){const u=s.R[t];u&&u.map((d=>{try{const[[f,g]]=Object.entries(d);(128&a||1&g)&&(r?r[f](i,l,t):n.T.push((()=>{n.D[f](i,l,t)})))}catch(f){F(f,o)}}))}if(2&a){if(r.componentShouldUpdate&&r.componentShouldUpdate(i,l,t)===!1&&!(16&a))return;16&a||Q(n,!1)}}},Ft=(e,t)=>{var i,s;const n=e.prototype;{e.watchers&&!t.R&&(t.R=Me(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const o=Object.entries((i=t.t)!=null?i:{});o.map((([l,[a]])=>{if(31&a||32&a){const{get:r,set:c}=P(n,l)||{};r&&(t.t[l][0]|=2048),c&&(t.t[l][0]|=4096),Object.defineProperty(n,l,{get(){return r?r.apply(this):(u=l,O(this).l.get(u));var u},configurable:!0,enumerable:!0}),Object.defineProperty(n,l,{set(u){const d=O(this);if(d){if(c)return(32&a?this[l]:d.$hostElement$[l])===void 0&&d.l.get(l)&&(u=d.l.get(l)),c.apply(this,[je(u,a)]),void Ke(this,l,u=32&a?this[l]:d.$hostElement$[l],t);Ke(this,l,u,t)}}})}}));{const l=new Map;n.attributeChangedCallback=function(a,r,c){T.jmp((()=>{var u;const d=l.get(a),f=O(this);if(this.hasOwnProperty(d),n.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==c)return;if(d==null){const v=f?.i;if(f&&v&&!(8&v)&&c!==r){const m=this,p=(u=t.R)==null?void 0:u[a];p?.forEach((w=>{const[[b,C]]=Object.entries(w);m[b]!=null&&(128&v||1&C)&&m[b].call(m,c,r,a)}))}return}const g=o.find((([v])=>v===d)),h=g&&4&g[1][0],S=h&&c===null&&this[d]===void 0;h&&(c=c!==null&&c!=="false");const y=Object.getOwnPropertyDescriptor(n,d);S||c==this[d]||y.get&&!y.set||(this[d]=c)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...o.filter((([a,r])=>31&r[0])).map((([a,r])=>{var c;const u=r[1]||a;return l.set(u,a),512&r[0]&&((c=t._)==null||c.push([a,u])),u}))]))}}return e},me=(e,t)=>{const i={i:t[0],p:t[1]};try{i.t=t[2],i.R=Me(e.R),i.H=e.H,i.P=e.P,i._=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,l)=>{const a={i:0,$hostElement$:o,o:l,l:new Map,U:new Map};a.W=new Promise((c=>a.F=c)),o["s-p"]=[],o["s-rc"]=[];const r=a;o.__stencil__getHostRef=()=>r,512&l.i&&_t(o,a)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!O(this))return;this.__hasHostListenerAttached=!0}(o=>{if(!(1&T.i)){const l=O(o);if(!l)return;const a=l.o;if(1&l.i)l?.D||l?.W&&l.W.then((()=>{}));else{l.i|=1,12&a.i&&(r=>{if(!x.document)return;const c=r["s-cr"]=x.document.createComment("");c["s-cn"]=!0,$(r,c,r.firstChild)})(o);{let r=o;for(;r=r.parentNode||r.host;)if(r["s-p"]){We(l,l.C=r);break}}a.t&&Object.entries(a.t).map((([r,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,r)){const u=o[r];delete o[r],o[r]=u}})),(async(r,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=r.constructor,customElements.whenDefined(r.localName).then((()=>c.i|=128)),d&&d.style)){let h;typeof d.style=="string"&&(h=d.style);const S=Oe(u);W.has(S)||((y,v,m)=>{let p=W.get(y);ne&&m?(p=p||new CSSStyleSheet,typeof p=="string"?p=v:p.replaceSync(v)):p=v,W.set(y,p)})(S,h,!!(1&u.i))}const f=c.C,g=()=>Q(c,!0);f&&f["s-rc"]?f["s-rc"].push(g):g()}catch(f){F(f,r),c.A&&(c.A(),c.A=void 0),c.F&&c.F(r)}})(o,l,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async o=>{1&T.i||O(o),I.has(o)&&I.delete(o),o.shadowRoot&&I.has(o.shadowRoot)&&I.delete(o.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${i.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else yt.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),Ft(e,i)}catch(s){return F(s),e}},Vt=(e,t)=>t;function ws(e){return e}const Ye=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},Rt=/\w/,Gt=e=>e.replace(Rt,t=>t.toLocaleUpperCase()),Je=(e,t)=>typeof e=="function"?e(t):t?Gt(e):e,Bt=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:n})=>{const o=n?n(e):Ye(e);if(t==="required")return Je(s&&s.length>0?s:"(required)",o);if(t==="optional")return Je(i&&i.length>0?i:"(optional)",o)},isSentence:Ye},Symbol.toStringTag,{value:"Module"})),ee=64,Xe=10,Ze=ee/2-Xe/2,Dt=ee/2,_e=2*Math.PI*Ze,qt=`0 0 ${ee} ${ee}`,Ht=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const i=typeof t=="number"&&t>0?t:1,n=Math.max(0,Math.min(i,e))/i*100,o=(_e*n/100).toFixed(2),l=(_e-parseFloat(o)).toFixed(2);return`${o} ${l}`},centerPosition:Dt,circumference:_e,radius:Ze,thickness:Xe,viewBox:qt},Symbol.toStringTag,{value:"Module"})),Qe=Object.freeze(Object.defineProperty({__proto__:null,formatCharCount:(e,t)=>{if(!(e===void 0||t===void 0))return`${e} / ${Math.max(t,0)}`},inputToGidsFieldStatus:e=>{switch(e){case"error":return"error";case"success":return"success";default:return"default"}}},Symbol.toStringTag,{value:"Module"}));function et(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(i=et(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function z(){for(var e,t,i=0,s="",n=arguments.length;i<n;i++)(e=arguments[i])&&(t=et(e))&&(s&&(s+=" "),s+=t);return s}const zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>z("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),Wt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:i},s)=>z("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},i,s)},Symbol.toStringTag,{value:"Module"})),Ut=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>z("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Kt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDismissButtonClassNames:({appearance:e,size:t},i)=>z("gids-dismiss-button",{"gids-dismiss-button--sm":t==="sm","gids-dismiss-button--lg":t==="lg","gids-dismiss-button--bold":e==="bold"},i)},Symbol.toStringTag,{value:"Module"})),Yt=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>z("gids-field",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatus:Jt}=Qe,Xt=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatus:e=>e==="implicit"||e===void 0?"implicit":Jt(e)},Symbol.toStringTag,{value:"Module"})),ve=Symbol("defaultPath"),tt=Symbol("pathSet"),be="gids-asset-paths-set";class Zt extends EventTarget{#t=new Map;constructor(){super()}#e(t,i){this.#t.set(t,i)}#s(t){return this.#t.get(t)??null}#i=()=>{this.dispatchEvent(new Event(be))};haveAssetPathsBeenSet(){return this.#s(tt)!==null}setAssetPaths(t,i){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(ve,t);else{for(const s in t)this.#e(s,t[s]);i&&this.#e(ve,i)}this.#e(tt,"true"),setTimeout(this.#i,0)}}getAssetFilePath(t){const i=this.#s(t);if(i===null){const s=this.#s(ve);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return i}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(be,t,{once:!0}),()=>{this.removeEventListener(be,t)}}}const ye=Symbol.for("GIDS"),Qt=()=>(globalThis[ye]===void 0&&(globalThis[ye]={assetPaths:{}}),globalThis[ye]),es=e=>{const t=Qt().assetPaths;return t[e]===void 0&&(t[e]=new Zt),t[e]};function Se(){return es("@ganpatiinfo/gids-web-shared")}function ts(){return Se().haveAssetPathsBeenSet()}function st(e){return Se().getAssetFilePath(e)}function ss(e){return Se().onAssetPathsSet(e)}let is=0;const it=(e,t="gids")=>e||`${t}-${is++}`,ns=e=>e.type==="hidden",os=e=>{if(!(e instanceof HTMLElement))return!1;const{nodeName:t}=e;return!!(["BUTTON","DETAILS","EMBED","IFRAME","KEYGEN","LABEL","SELECT","TEXTAREA"].includes(t)||t==="A"&&e.hasAttribute("href")||e instanceof HTMLInputElement&&!ns(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},R=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let nt=!1;R&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(R):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let xe=null;const Ce=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{ot()})):void 0,ot=()=>{if(R===void 0)return!1;const e=(()=>{if(R===void 0)return;const t=[];for(let i=0;i<document.styleSheets.length;i++){const s=document.styleSheets.item(i);if(s)try{let n=-1,o=0;for(let l=0;l<s.cssRules.length;l++){const a=s.cssRules.item(l);if(a?.cssText.startsWith("gids-global-styles-start"))n=l;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){o=l-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:o,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return Ce!==void 0&&t!==xe&&(xe&&Ce.disconnect(),t instanceof Element&&Ce.observe(t,{childList:!0,characterData:!0,subtree:!0}),xe=t),R.replaceSync((i=>i.rules.map((s=>s.cssText)).join(""))(e)),(i=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:o}=i;for(let l=0;l<n;l++)o.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},lt=()=>(nt||(nt=ot()),R),rt={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","syncing","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},at=new Map;for(const e in rt)for(const t of rt[e])at.set(t,e);function ls(e){return at.get(e)}function dt(e,t="regular",i){const s=ls(e);let n=s??"";return i&&s&&(n=i(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:rs}=Ut,te=({name:e,size:t,appearance:i,alt:s,class:n,titleId:o,src:l,...a})=>{const r=it(o);let c=l;return c===void 0&&ts()&&(c=dt(e,i,st)),_("svg",{ref:u=>{c===void 0&&ss((()=>{(function(d,f,g){if(!d)return;const h=document.createElementNS("http://www.w3.org/2000/svg","use");h.setAttribute("href",dt(f,g,st)),d.appendChild(h)})(u,e,i)}))},width:"16",height:"16",class:rs({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:r,...a},s!==""&&_("title",{id:r},s||e),c!==void 0?_("use",{href:c}):null)},{getIndicatorText:as}=Bt,{getGidsLabelClassNames:ds}=zt,cs=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,info:n,htmlFor:o,labelId:l,class:a,isLabelSentence:r,...c},u)=>{const d=as({children:u,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:r});return _("div",{class:ds({disabled:e},a),...c},_("label",{htmlFor:o,id:l},u,d&&_("span",{class:"gids-label__field-requirement"},d)),n)},{getGidsDismissButtonClassNames:us}=Kt,hs=({appearance:e="subtle",size:t="md",disabled:i=!1,class:s,onPressDismiss:n,label:o,...l})=>_("button",{class:us({appearance:e,size:t},s),onClick:n,disabled:i,"aria-label":o,...l},_(te,{name:"cross",appearance:"regular"})),{getGidsFieldClassNames:fs}=Yt,ps=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],i=this._findTextControl(t);this._attachControlElement(i)},this._handleControlValueInput=t=>{if(!this._controlTouched){const i=t.target;i instanceof HTMLInputElement&&(i.type==="checkbox"||i.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=lt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,i=this._getCurrentStatus(),s=["gids-field__status-text"];if(e){const n=this._getStatusModifierClass(i,"gids-field__status-text");n!=null&&s.push(n)}return _(Ae,{key:"f1c189d4ab013c55a6c4c28421a43ebb33878fed"},_("div",{key:"473d4ee6ff5c4799eb390dace343c04cdddfc959",class:fs()},_("div",{key:"2c9360422392ee547c88d68251e2c2818d12df9a",class:"gids-field__header",hidden:!this._hasLabelContent()},_("slot",{key:"9aeddb378b273fb98297f4d08bf63506ad12edc2",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),_("div",{key:"6408089c512c2f3a5182f26c396f21e0cd1d55e1",class:"gids-field__count","aria-live":"polite"},this.count)),_("div",{key:"46f8ba80d3bb1b501361121a1ccf6e7aa46b6466",class:"gids-field__control"},_("slot",{key:"472a3796360ffe099e8baef78b7483da66da2f3e",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),_("p",{key:"adc16a67e0e48ac97e593ea65690db81ca1614c9",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?_("p",{class:s.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(i),t!==void 0?_("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const i=["gids-field__status-icon"],s=this._getStatusModifierClass(e,"gids-field__status-icon");s!=null&&i.push(s);let n=e;return e==="error"&&(n="danger"),e==="success"&&(n="positive"),_(te,{appearance:"filled",size:"sm",alt:"",name:t,class:i.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${n})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((i=>{i.addEventListener("input",this._handleControlValueInput),i.addEventListener("change",this._handleControlValueInput),i.addEventListener("blur",this._handleControlBlur,!0),i.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const i=t.elements.namedItem(e.name);if(i instanceof RadioNodeList){const s=Array.from(i).filter((n=>n instanceof HTMLInputElement&&n.type==="radio"&&this._el.contains(n)));if(s.length>0)return s}}if(e.name!=null){const i=`input[type="radio"][name="${CSS.escape(e.name)}"]`,s=Array.from(this._el.querySelectorAll(i));if(s.length>0)return s}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const i=t,s=this._asTextControl(i);if(s!==null)return s;const n=i.querySelector("input, textarea");if(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return n}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function ct(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,ps))}))}ct();const{getGidsSpinnerControlClassNames:gs}=Wt,{calculateStrokeDasharray:ms,thickness:ut,radius:ht,centerPosition:se,viewBox:_s}=Ht,vs=({size:e,indeterminate:t,value:i,max:s,...n})=>{let o;return t||(o={strokeDashArray:ms(i,s||0),strokeDashoffset:"0"}),_("svg",{class:gs({size:e,indeterminate:t,value:i}),viewBox:_s,...n},_("circle",{class:"gids-spinner-control__track",cx:se,cy:se,r:ht,"stroke-width":ut}),_("circle",{style:o,class:"gids-spinner-control__progress",cx:se,cy:se,r:ht,"stroke-width":ut}))},bs=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const i=t.target;i===this.#t||this._isWithinInteractiveElement(i)||this.#t?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#t?.defaultValue??this.#e.defaultValue??""}set defaultValue(e){this.#t?this.#t.defaultValue=e:this.#e.defaultValue=e}get value(){return this.#t?.value??this.#e.value??this.#e.defaultValue??""}set value(e){this.#t?this.#t.value=e:this.#e.value=e}#t;#e;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(os(e))return!0;{const t=e.parentElement;if(t)return this._isWithinInteractiveElement(t)}return!1}connectedCallback(){this._el.addEventListener("click",this._focusInput)}disconnectedCallback(){this._el.removeEventListener("click",this._focusInput)}render(){return _(Vt,{key:"c1e035111a8a80ef0b442bc0298785f0c7445113"},_("slot",{key:"49bd52d5bbc7c9b962b27f6404ca9817de699b31",name:"leadingIcon"}),this.leadingLabel&&_("span",{key:"2863a61da1f009b7287af508d9809d66787ddaf7",class:"gids-input__label"},this.leadingLabel),_("slot",{key:"f74e8993fb8b1dd186a53c4557ceffac681f2881",name:"leadingAccessory"}),_("input",{key:"2bc7f84858a8533f33c66834ad212c38ad698075",...this.inputProps,ref:e=>{this.#t=e,this.#e.value!==void 0&&(this.#t.value=this.#e.value,delete this.#e.value),this.#e.defaultValue!==void 0&&(this.#t.defaultValue=this.#e.defaultValue,delete this.#e.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),_("slot",{key:"2116db712ac02853ae4974b4ad618b5eee372b3f",name:"trailingAccessory"}),this.trailingLabel&&_("span",{key:"35dc9b1c2bd2ef493b0ce1a602688f41854c922d",class:"gids-input__label"},this.trailingLabel),_("slot",{key:"6cc1b37e9a0b979f04de753d8527aaae2970762c",name:"trailingIcon"}),this.status==="incomplete"&&_(te,{key:"8c963877cee9bc941b1236a6b647fc1790a41cdc",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&_(te,{key:"a2c401261ff8defa2802b5bbc336a6b4cc177ff4",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&_(vs,{key:"4dd22cd62d87ff444794fc8f1c4f0cc78e14738a",size:"md",indeterminate:!0}))}get _el(){return this}},[260,"gids-input",{appearance:[513],defaultValue:[6657,"default-value"],disabled:[516],inputProps:[16],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],name:[513],readOnly:[516,"readonly"],required:[516],status:[513],value:[6145]}]);function ft(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,bs))}))}ft();const{formatCharCount:ys}=Qe,{inputToGidsFieldStatus:Ss}=Xt,pt=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsTextFieldClear=wt(this,"gidsTextFieldClear"),this.#t=it(),this._handleDismiss=()=>{const t=this.#e?.querySelector("input.gids-input__control");t&&(t.value="",t.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsTextFieldClear.emit()},this._handleInput=t=>{this.value=t.target?.value},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{Mt(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}connectedCallback(){const e=lt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#t;#e;render(){const{id:e,...t}=this.inputProps??{},i=e??this.#t,s=this.showClearButton&&this.value!==void 0&&this.value.length>0;return _("gids-field",{key:"80f1981d584f417e010322b2c5ec07a60dc1f388",disabled:this.disabled,count:ys(this.value?.length,this.maxLength),helperText:this.helperText,statusText:this.statusText,status:Ss(this.status)},_(cs,{key:"f222a99181809cf9ccdc1ad9ceed98c985681553",slot:"label",disabled:this.disabled,info:_("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:i},this.label),_("gids-input",{key:"7ff6cf33f16be119ecc705af8a7fb8965b01b74c",ref:n=>this.#e=n,appearance:this.appearance,status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:this.leadingLabel,trailingLabel:this.trailingLabel,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...t,type:this.type,id:i,maxLength:this.maxLength}},_("slot",{key:"d3e260125c8d8f56870e6f484894bd1a1aa8e03b",name:"leadingIcon"}),_("slot",{key:"0445885d41f43d6a76f48ed482673a266b6a0182",name:"leadingAccessory"}),s&&_(hs,{key:"be16083a8e414be66ceb37e076f9ebc01cc4fc8f",label:"clear text",slot:"trailingAccessory",size:"lg",onPressDismiss:this._handleDismiss}),_("slot",{key:"0dc7436a9ca21e57409cc18340747295915d2d5f",name:"trailingIcon"})))}get _el(){return this}},[260,"gids-text-field",{label:[513],showClearButton:[516,"show-clear-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],appearance:[513],status:[513],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],type:[513],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16]}]);function gt(){typeof customElements<"u"&&["gids-text-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-text-field":customElements.get(e)||customElements.define(e,pt);break;case"gids-field":customElements.get(e)||ct();break;case"gids-input":customElements.get(e)||ft()}}))}gt();const xs=pt,Cs=gt;M.GidsTextField=xs,M.defineCustomElement=Cs,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
@@ -2,6 +2,6 @@
2
2
  Flattening is not supported for Stencil non-shadow slots.
3
3
  You can use \`.childNodes\` to nested slot fallback content.
4
4
  If you have a particular use case, please open an issue on the Stencil repo.
5
- `);const v=this["s-cr"].parentElement;return(v.__childNodes?v.childNodes:(b=>{const y=[];for(let m=0;m<b.length;m++){const p=b[m]["s-nr"]||void 0;p&&p.isConnected&&y.push(p)}return y})(v.childNodes)).forEach((b=>{u===F(b)&&g.push(b)})),a?g.filter((b=>b.nodeType===1)):g}).bind(d);d.assignedElements=f(!0),d.assignedNodes=f(!1)})(l),c=e&&e.m&&e.m[o],c&&c.O===n.O&&e.S&&Re(e.S)),l},Re=e=>{O.i|=1;const t=e.closest(L.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&(j(t,n,o??null),n["s-sh"]=void 0,Y=!0)}O.i&=-2},J=(e,t)=>{O.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===L&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==L&&n["s-ol"]&&(j(V(n).parentNode,n,V(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&J(n,t)}O.i&=-2},Pe=(e,t,o,s,n,l)=>{let r,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===L&&(c=c.shadowRoot),o.O==="template"&&(c=c.content);n<=l;++n)s[n]&&(r=Z(null,o,n),r&&(s[n].S=r,j(c,r,V(t))))},Le=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const l=n.S;De(n),l&&(U=!0,l["s-ol"]?l["s-ol"].remove():J(l,!0),l.remove())}}},K=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),V=e=>e&&e["s-ol"]||e,H=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,l=t.m,r=t.O,c=t.h;let i;c==null?(k=r==="svg"||r!=="foreignObject"&&k,r!=="slot"||W||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Re(t.S.parentElement)),ae(e,t,k),n!==null&&l!==null?((d,f,a,h,g=!1)=>{let u,v,b=0,y=0,m=0,p=0,N=f.length-1,S=f[0],_=f[N],x=h.length-1,C=h[0],E=h[x];const Qe=a.O==="template"?d.content:d;for(;b<=N&&y<=x;)if(S==null)S=f[++b];else if(_==null)_=f[--N];else if(C==null)C=h[++y];else if(E==null)E=h[--x];else if(K(S,C,g))H(S,C,g),S=f[++b],C=h[++y];else if(K(_,E,g))H(_,E,g),_=f[--N],E=h[--x];else if(K(S,E,g))S.O!=="slot"&&E.O!=="slot"||J(S.S.parentNode,!1),H(S,E,g),j(Qe,S.S,_.S.nextSibling),S=f[++b],E=h[--x];else if(K(_,C,g))S.O!=="slot"&&E.O!=="slot"||J(_.S.parentNode,!1),H(_,C,g),j(Qe,_.S,S.S),_=f[--N],C=h[++y];else{for(m=-1,p=b;p<=N;++p)if(f[p]&&f[p].$!==null&&f[p].$===C.$){m=p;break}m>=0?(v=f[m],v.O!==C.O?u=Z(f&&f[y],a,m):(H(v,C,g),f[m]=void 0,u=v.S),C=h[++y]):(u=Z(f&&f[y],a,y),C=h[++y]),u&&j(V(S.S).parentNode,u,V(S.S))}b>N?Pe(d,h[x+1]==null?null:h[x+1].S,a,h,y,x):y>x&&Le(f,b,N)})(s,n,t,l,o):l!==null?(e.h!==null&&(s.textContent=""),Pe(s,null,t,l,0,l.length-1)):!o&&n!==null&&Le(n,0,n.length-1),k&&r==="svg"&&(k=!1)):(i=s["s-cr"])?i.parentNode.textContent=c:e.h!==c&&(s.data=c)},A=[],Me=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const l of n){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const r=l["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(_e(t,r)){let c=A.find((i=>i.k===t));U=!0,t["s-sn"]=t["s-sn"]||r,c?(c.k["s-sh"]=l["s-hn"],c.N=l):(t["s-sh"]=l["s-hn"],A.push({N:l,k:t})),t["s-sr"]&&A.map((i=>{_e(i.k,t["s-sn"])&&(c=A.find((d=>d.k===t)),c&&!i.N&&(i.N=c.N))}))}else A.some((c=>c.k===t))||A.push({k:t})}l.nodeType===1&&Me(l)}},De=e=>{e.v&&e.v.ref&&de.push((()=>e.v.ref(null))),e.m&&e.m.map(De)},dt=(e,t)=>{ue.push((()=>e(t)))},j=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(l,r){var c;if(!(r=r||((c=l["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const i=l["s-sn"]=F(l)||"";return{slotNode:le(re(r,"childNodes"),r.tagName,i)[0],slotName:i}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},ut=(e,t,o=!1)=>{var s,n,l,r,c;const i=e.$hostElement$,d=e.o,f=e.M||q(null,null);var a;const h=(a=t)&&a.O===Oe?t:$(null,null,t);if(L=i.tagName,d._&&(h.v=h.v||{},d._.forEach((([g,u])=>{h.v[u]=i[g]}))),o&&h.v)for(const g of Object.keys(h.v))i.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(h.v[g]=i[g]);if(h.O=null,h.i|=4,e.M=h,h.S=f.S=i.shadowRoot||i,W=!(!(1&d.i)||128&d.i),ie=i["s-cr"],U=!1,H(f,h,o),O.i|=1,Y){Me(h.S);for(const g of A){const u=g.k;if(!u["s-ol"]&&w.document){const v=w.document.createTextNode("");v["s-nr"]=u,j(u.parentNode,u["s-ol"]=v,u,o)}}for(const g of A){const u=g.k,v=g.N;if(u.nodeType===1&&o&&(u["s-ih"]=(s=u.hidden)!=null&&s),v){const b=v.parentNode;let y=v.nextSibling;if(y&&y.nodeType===1){let m=(n=u["s-ol"])==null?void 0:n.previousSibling;for(;m;){let p=(l=m["s-nr"])!=null?l:null;if(p&&p["s-sn"]===u["s-sn"]&&b===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===u||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){y=p;break}}m=m.previousSibling}}if((!y&&b!==(u.__parentNode||u.parentNode)||(u.__nextSibling||u.nextSibling)!==y)&&u!==y){if(j(b,u,y,o),u.nodeType===8&&u.nodeValue.startsWith("s-nt-")){const m=w.document.createTextNode(u.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=u["s-hn"],m["s-sn"]=u["s-sn"],m["s-sh"]=u["s-sh"],m["s-sr"]=u["s-sr"],m["s-ol"]=u["s-ol"],m["s-ol"]["s-nr"]=m,j(u.parentNode,m,u,o),u.parentNode.removeChild(u)}u.nodeType===1&&u.tagName!=="SLOT-FB"&&(u.hidden=(r=u["s-ih"])!=null&&r)}u&&typeof v["s-rf"]=="function"&&v["s-rf"](v)}else u.nodeType===1&&(u.hidden=!0)}}if(U&&we(h.S),O.i&=-2,A.length=0,!W&&!(1&d.i)&&i["s-cr"]){const g=h.S.__childNodes||h.S.childNodes;for(const u of g)if(u["s-hn"]!==L&&!u["s-sh"]){if(o&&u["s-ih"]==null&&(u["s-ih"]=(c=u.hidden)!=null&&c),u.nodeType===1)u.hidden=!0;else if(u.nodeType===3&&u.nodeValue.trim()){const v=w.document.createComment("s-nt-"+u.nodeValue);v["s-sn"]=u["s-sn"],j(u.parentNode,v,u,o),u.parentNode.removeChild(u)}}}ie=void 0,de.forEach((g=>g())),de.length=0,ue.forEach((g=>g())),ue.length=0},He=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},fe=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);He(e,e.C);const o=()=>ft(e,t);if(!t)return st(o);queueMicrotask((()=>{o()}))},ft=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=z(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Be(n,(()=>z(s,"componentWillRender",void 0,o))),Be(n,(()=>pt(e,s,t)))},Be=(e,t)=>ht(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),ht=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",pt=async(e,t,o)=>{var s;const n=e.$hostElement$,l=n["s-rc"];o&&(r=>{const c=r.o,i=r.$hostElement$,d=c.i,f=((a,h)=>{var g,u,v;const b=Ne(h),y=G.get(b);if(!w.document)return b;if(a=a.nodeType===11?a:w.document,y)if(typeof y=="string"){let m,p=R.get(a=a.head||a);if(p||R.set(a,p=new Set),!p.has(b)){m=w.document.createElement("style"),m.textContent=y;const N=(g=O.L)!=null?g:(function(){var S,_,x;return(x=(_=(S=w.document.head)==null?void 0:S.querySelector('meta[name="csp-nonce"]'))==null?void 0:_.getAttribute("content"))!=null?x:void 0})();if(N!=null&&m.setAttribute("nonce",N),!(1&h.i))if(a.nodeName==="HEAD"){const S=a.querySelectorAll("link[rel=preconnect]"),_=S.length>0?S[S.length-1].nextSibling:a.querySelector("style");a.insertBefore(m,_?.parentNode===a?_:null)}else if("host"in a)if(ee){const S=new((u=a.defaultView)!=null?u:a.ownerDocument.defaultView).CSSStyleSheet;S.replaceSync(y),te?a.adoptedStyleSheets.unshift(S):a.adoptedStyleSheets=[S,...a.adoptedStyleSheets]}else{const S=a.querySelector("style");S?S.textContent=y+S.textContent:a.prepend(m)}else a.append(m);1&h.i&&a.insertBefore(m,null),4&h.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(b)}}else{let m=R.get(a);if(m||R.set(a,m=new Set),!m.has(b)){const p=(v=a.defaultView)!=null?v:a.ownerDocument.defaultView;let N;if(y.constructor===p.CSSStyleSheet)N=y;else{N=new p.CSSStyleSheet;for(let S=0;S<y.cssRules.length;S++)N.insertRule(y.cssRules[S].cssText,S)}te?a.adoptedStyleSheets.push(N):a.adoptedStyleSheets=[...a.adoptedStyleSheets,N],m.add(b)}}return b})(i.shadowRoot?i.shadowRoot:i.getRootNode(),c);10&d&&(i["s-sc"]=f,i.classList.add(f+"-h"))})(e),gt(e,t,n,o),l&&(l.map((r=>r())),n["s-rc"]=void 0);{const r=(s=n["s-p"])!=null?s:[],c=()=>mt(e);r.length===0?c():(Promise.all(r).then(c).catch(c),e.i|=4,r.length=0)}},gt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,ut(e,t,s)}catch(n){D(n,e.$hostElement$)}return null},mt=e=>{const t=e.$hostElement$,o=t,s=e.C;z(o,"componentDidRender",void 0,t),64&e.i?z(o,"componentDidUpdate",void 0,t):(e.i|=64,St(t),z(o,"componentDidLoad",void 0,t),e.F(t),s||yt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ne((()=>fe(e,!1))),e.i&=-517},yt=()=>{ne((()=>xe(w,"appload",{detail:{namespace:"gids-core-web"}})))},z=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){D(n,s)}},St=e=>e.classList.add("hydrated"),Ie=(e,t,o,s)=>{const n=T(e);if(!n)return;const l=e,r=n.l.get(t),c=n.i,i=l;o=Ce(o,s.t[t][0]);const d=Number.isNaN(r)&&Number.isNaN(o);if(o!==r&&!d){if(n.l.set(t,o),s.R){const f=s.R[t];f&&f.map((a=>{try{const[[h,g]]=Object.entries(a);(128&c||1&g)&&(i?i[h](o,r,t):n.T.push((()=>{n.D[h](o,r,t)})))}catch(h){D(h,l)}}))}if(2&c){if(i.componentShouldUpdate&&i.componentShouldUpdate(o,r,t)===!1&&!(16&c))return;16&c||fe(n,!1)}}},bt=(e,t)=>{var o,s;const n=e.prototype;{e.watchers&&!t.R&&(t.R=ke(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const l=Object.entries((o=t.t)!=null?o:{});l.map((([r,[c]])=>{if(31&c||32&c){const{get:i,set:d}=M(n,r)||{};i&&(t.t[r][0]|=2048),d&&(t.t[r][0]|=4096),Object.defineProperty(n,r,{get(){return i?i.apply(this):(f=r,T(this).l.get(f));var f},configurable:!0,enumerable:!0}),Object.defineProperty(n,r,{set(f){const a=T(this);if(a){if(d)return(32&c?this[r]:a.$hostElement$[r])===void 0&&a.l.get(r)&&(f=a.l.get(r)),d.apply(this,[Ce(f,c)]),void Ie(this,r,f=32&c?this[r]:a.$hostElement$[r],t);Ie(this,r,f,t)}}})}}));{const r=new Map;n.attributeChangedCallback=function(c,i,d){O.jmp((()=>{var f;const a=r.get(c),h=T(this);if(this.hasOwnProperty(a),n.hasOwnProperty(a)&&typeof this[a]=="number"&&this[a]==d)return;if(a==null){const y=h?.i;if(h&&y&&!(8&y)&&d!==i){const m=this,p=(f=t.R)==null?void 0:f[c];p?.forEach((N=>{const[[S,_]]=Object.entries(N);m[S]!=null&&(128&y||1&_)&&m[S].call(m,d,i,c)}))}return}const g=l.find((([y])=>y===a)),u=g&&4&g[1][0],v=u&&d===null&&this[a]===void 0;u&&(d=d!==null&&d!=="false");const b=Object.getOwnPropertyDescriptor(n,a);v||d==this[a]||b.get&&!b.set||(this[a]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...l.filter((([c,i])=>31&i[0])).map((([c,i])=>{var d;const f=i[1]||c;return r.set(f,c),512&i[0]&&((d=t._)==null||d.push([c,f])),f}))]))}}return e},vt=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.R=ke(e.R),o.H=e.H,o.P=e.P,o._=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((l,r)=>{const c={i:0,$hostElement$:l,o:r,l:new Map,U:new Map};c.W=new Promise((d=>c.F=d)),l["s-p"]=[],l["s-rc"]=[];const i=c;l.__stencil__getHostRef=()=>i,512&r.i&&Xe(l,c)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!T(this))return;this.__hasHostListenerAttached=!0}(l=>{if(!(1&O.i)){const r=T(l);if(!r)return;const c=r.o;if(1&r.i)r?.D||r?.W&&r.W.then((()=>{}));else{r.i|=1,12&c.i&&(i=>{if(!w.document)return;const d=i["s-cr"]=w.document.createComment("");d["s-cn"]=!0,j(i,d,i.firstChild)})(l);{let i=l;for(;i=i.parentNode||i.host;)if(i["s-p"]){He(r,r.C=i);break}}c.t&&Object.entries(c.t).map((([i,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(l,i)){const f=l[i];delete l[i],l[i]=f}})),(async(i,d,f)=>{let a;try{if(!(32&d.i)&&(d.i|=32,a=i.constructor,customElements.whenDefined(i.localName).then((()=>d.i|=128)),a&&a.style)){let u;typeof a.style=="string"&&(u=a.style);const v=Ne(f);G.has(v)||((b,y,m)=>{let p=G.get(b);ee&&m?(p=p||new CSSStyleSheet,typeof p=="string"?p=y:p.replaceSync(y)):p=y,G.set(b,p)})(v,u,!!(1&f.i))}const h=d.C,g=()=>fe(d,!0);h&&h["s-rc"]?h["s-rc"].push(g):g()}catch(h){D(h,i),d.A&&(d.A(),d.A=void 0),d.F&&d.F(i)}})(l,r,c)}}})(this),s&&s.call(this)},disconnectedCallback(){(async l=>{1&O.i||T(l),R.has(l)&&R.delete(l),l.shadowRoot&&R.has(l.shadowRoot)&&R.delete(l.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ot.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),bt(e,o)}catch(s){return D(s),e}};function Lt(e){return e}function Fe(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Fe(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function We(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Fe(e))&&(s&&(s+=" "),s+=t);return s}const wt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:o},s)=>We("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},o,s)},Symbol.toStringTag,{value:"Module"})),_t=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:o,destructive:s,loading:n},l,r)=>We("gids-button",{"gids-button--primary":e==="primary","gids-button--subtle":e==="subtle","gids-button--xs":t==="xs","gids-button--sm":t==="sm","gids-button--lg":t==="lg","gids-button--full-width":o==="full","gids-button--destructive":s,"gids-button--icon-only":l,"gids-button--loading":n},r)},Symbol.toStringTag,{value:"Module"})),Q=64,Ve=10,ze=Q/2-Ve/2,Nt=Q/2,he=2*Math.PI*ze,Ot=`0 0 ${Q} ${Q}`,$t=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const o=typeof t=="number"&&t>0?t:1,n=Math.max(0,Math.min(o,e))/o*100,l=(he*n/100).toFixed(2),r=(he-parseFloat(l)).toFixed(2);return`${l} ${r}`},centerPosition:Nt,circumference:he,radius:ze,thickness:Ve,viewBox:Ot},Symbol.toStringTag,{value:"Module"})),Ge=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getGidsSpinnerControlClassNames:kt}=wt,{calculateStrokeDasharray:Ct,thickness:qe,radius:Ue,centerPosition:X,viewBox:xt}=$t,jt=({size:e,indeterminate:t,value:o,max:s,...n})=>{let l;return t||(l={strokeDashArray:Ct(o,s||0),strokeDashoffset:"0"}),$("svg",{class:kt({size:e,indeterminate:t,value:o}),viewBox:xt,...n},$("circle",{class:"gids-spinner-control__track",cx:X,cy:X,r:Ue,"stroke-width":qe}),$("circle",{style:l,class:"gids-spinner-control__progress",cx:X,cy:X,r:Ue,"stroke-width":qe}))},{getGidsButtonClassNames:Et}=_t,At=({appearance:e,size:t,destructive:o,loading:s,width:n,leadingIcon:l,trailingIcon:r,as:c,disabled:i,class:d,forceIconOnly:f=!1,...a},h)=>{const g=c||"button",u=t==="lg"||t===void 0?"md":t;return g!=="button"||"type"in a||(a.type="button"),$(g,{class:Et({appearance:e,size:t,destructive:o,loading:s,width:n},f||h.length===0&&Ge(l)&&!Ge(r),d),disabled:g==="button"?i:void 0,...a},$("span",{class:"gids-button__content"},l,h),s&&$(jt,{size:u,indeterminate:!0}),r)},B=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Ye=!1;B&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(B):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let pe=null;const ge=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Ze()})):void 0,Ze=()=>{if(B===void 0)return!1;const e=(()=>{if(B===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const s=document.styleSheets.item(o);if(s)try{let n=-1,l=0;for(let r=0;r<s.cssRules.length;r++){const c=s.cssRules.item(r);if(c?.cssText.startsWith("gids-global-styles-start"))n=r;else if(n>-1){if(c?.cssText.startsWith("gids-global-styles-end")){l=r-n+1;break}t.push(c)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:l,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return ge!==void 0&&t!==pe&&(pe&&ge.disconnect(),t instanceof Element&&ge.observe(t,{childList:!0,characterData:!0,subtree:!0}),pe=t),B.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:l}=o;for(let r=0;r<n;r++)l.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Tt=()=>(Ye||(Ye=Ze()),B),Je=vt(class extends et{get selected(){return this.#e??this.defaultSelected}set selected(e){this.#e=e===void 0?void 0:!!e}constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.select=it(this,"select"),this._toggle=this._toggle.bind(this)}#e;connectedCallback(){const e=Tt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=e,this.select?.emit(e)}render(){return $(Oe,{key:"87505762161da81762e873e7c6318c03d9c17ef5"},$("style",{key:"4e4c082b5435ca88e816310035c2989847d4f3de"},`:host {
5
+ `);const v=this["s-cr"].parentElement;return(v.__childNodes?v.childNodes:(b=>{const y=[];for(let m=0;m<b.length;m++){const p=b[m]["s-nr"]||void 0;p&&p.isConnected&&y.push(p)}return y})(v.childNodes)).forEach((b=>{u===F(b)&&g.push(b)})),a?g.filter((b=>b.nodeType===1)):g}).bind(d);d.assignedElements=f(!0),d.assignedNodes=f(!1)})(l),c=e&&e.m&&e.m[o],c&&c.O===n.O&&e.S&&Re(e.S)),l},Re=e=>{O.i|=1;const t=e.closest(L.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&(j(t,n,o??null),n["s-sh"]=void 0,Y=!0)}O.i&=-2},J=(e,t)=>{O.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===L&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==L&&n["s-ol"]&&(j(V(n).parentNode,n,V(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&J(n,t)}O.i&=-2},Pe=(e,t,o,s,n,l)=>{let r,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===L&&(c=c.shadowRoot),o.O==="template"&&(c=c.content);n<=l;++n)s[n]&&(r=Z(null,o,n),r&&(s[n].S=r,j(c,r,V(t))))},Le=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const l=n.S;De(n),l&&(U=!0,l["s-ol"]?l["s-ol"].remove():J(l,!0),l.remove())}}},K=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),V=e=>e&&e["s-ol"]||e,H=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,l=t.m,r=t.O,c=t.h;let i;c==null?(k=r==="svg"||r!=="foreignObject"&&k,r!=="slot"||W||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Re(t.S.parentElement)),ae(e,t,k),n!==null&&l!==null?((d,f,a,h,g=!1)=>{let u,v,b=0,y=0,m=0,p=0,N=f.length-1,S=f[0],_=f[N],x=h.length-1,C=h[0],E=h[x];const Qe=a.O==="template"?d.content:d;for(;b<=N&&y<=x;)if(S==null)S=f[++b];else if(_==null)_=f[--N];else if(C==null)C=h[++y];else if(E==null)E=h[--x];else if(K(S,C,g))H(S,C,g),S=f[++b],C=h[++y];else if(K(_,E,g))H(_,E,g),_=f[--N],E=h[--x];else if(K(S,E,g))S.O!=="slot"&&E.O!=="slot"||J(S.S.parentNode,!1),H(S,E,g),j(Qe,S.S,_.S.nextSibling),S=f[++b],E=h[--x];else if(K(_,C,g))S.O!=="slot"&&E.O!=="slot"||J(_.S.parentNode,!1),H(_,C,g),j(Qe,_.S,S.S),_=f[--N],C=h[++y];else{for(m=-1,p=b;p<=N;++p)if(f[p]&&f[p].$!==null&&f[p].$===C.$){m=p;break}m>=0?(v=f[m],v.O!==C.O?u=Z(f&&f[y],a,m):(H(v,C,g),f[m]=void 0,u=v.S),C=h[++y]):(u=Z(f&&f[y],a,y),C=h[++y]),u&&j(V(S.S).parentNode,u,V(S.S))}b>N?Pe(d,h[x+1]==null?null:h[x+1].S,a,h,y,x):y>x&&Le(f,b,N)})(s,n,t,l,o):l!==null?(e.h!==null&&(s.textContent=""),Pe(s,null,t,l,0,l.length-1)):!o&&n!==null&&Le(n,0,n.length-1),k&&r==="svg"&&(k=!1)):(i=s["s-cr"])?i.parentNode.textContent=c:e.h!==c&&(s.data=c)},A=[],Me=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const l of n){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const r=l["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(_e(t,r)){let c=A.find((i=>i.k===t));U=!0,t["s-sn"]=t["s-sn"]||r,c?(c.k["s-sh"]=l["s-hn"],c.N=l):(t["s-sh"]=l["s-hn"],A.push({N:l,k:t})),t["s-sr"]&&A.map((i=>{_e(i.k,t["s-sn"])&&(c=A.find((d=>d.k===t)),c&&!i.N&&(i.N=c.N))}))}else A.some((c=>c.k===t))||A.push({k:t})}l.nodeType===1&&Me(l)}},De=e=>{e.v&&e.v.ref&&de.push((()=>e.v.ref(null))),e.m&&e.m.map(De)},dt=(e,t)=>{ue.push((()=>e(t)))},j=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(l,r){var c;if(!(r=r||((c=l["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const i=l["s-sn"]=F(l)||"";return{slotNode:le(re(r,"childNodes"),r.tagName,i)[0],slotName:i}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},ut=(e,t,o=!1)=>{var s,n,l,r,c;const i=e.$hostElement$,d=e.o,f=e.M||q(null,null);var a;const h=(a=t)&&a.O===Oe?t:$(null,null,t);if(L=i.tagName,d._&&(h.v=h.v||{},d._.forEach((([g,u])=>{h.v[u]=i[g]}))),o&&h.v)for(const g of Object.keys(h.v))i.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(h.v[g]=i[g]);if(h.O=null,h.i|=4,e.M=h,h.S=f.S=i.shadowRoot||i,W=!(!(1&d.i)||128&d.i),ie=i["s-cr"],U=!1,H(f,h,o),O.i|=1,Y){Me(h.S);for(const g of A){const u=g.k;if(!u["s-ol"]&&w.document){const v=w.document.createTextNode("");v["s-nr"]=u,j(u.parentNode,u["s-ol"]=v,u,o)}}for(const g of A){const u=g.k,v=g.N;if(u.nodeType===1&&o&&(u["s-ih"]=(s=u.hidden)!=null&&s),v){const b=v.parentNode;let y=v.nextSibling;if(y&&y.nodeType===1){let m=(n=u["s-ol"])==null?void 0:n.previousSibling;for(;m;){let p=(l=m["s-nr"])!=null?l:null;if(p&&p["s-sn"]===u["s-sn"]&&b===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===u||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){y=p;break}}m=m.previousSibling}}if((!y&&b!==(u.__parentNode||u.parentNode)||(u.__nextSibling||u.nextSibling)!==y)&&u!==y){if(j(b,u,y,o),u.nodeType===8&&u.nodeValue.startsWith("s-nt-")){const m=w.document.createTextNode(u.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=u["s-hn"],m["s-sn"]=u["s-sn"],m["s-sh"]=u["s-sh"],m["s-sr"]=u["s-sr"],m["s-ol"]=u["s-ol"],m["s-ol"]["s-nr"]=m,j(u.parentNode,m,u,o),u.parentNode.removeChild(u)}u.nodeType===1&&u.tagName!=="SLOT-FB"&&(u.hidden=(r=u["s-ih"])!=null&&r)}u&&typeof v["s-rf"]=="function"&&v["s-rf"](v)}else u.nodeType===1&&(u.hidden=!0)}}if(U&&we(h.S),O.i&=-2,A.length=0,!W&&!(1&d.i)&&i["s-cr"]){const g=h.S.__childNodes||h.S.childNodes;for(const u of g)if(u["s-hn"]!==L&&!u["s-sh"]){if(o&&u["s-ih"]==null&&(u["s-ih"]=(c=u.hidden)!=null&&c),u.nodeType===1)u.hidden=!0;else if(u.nodeType===3&&u.nodeValue.trim()){const v=w.document.createComment("s-nt-"+u.nodeValue);v["s-sn"]=u["s-sn"],j(u.parentNode,v,u,o),u.parentNode.removeChild(u)}}}ie=void 0,de.forEach((g=>g())),de.length=0,ue.forEach((g=>g())),ue.length=0},He=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},fe=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);He(e,e.C);const o=()=>ft(e,t);if(!t)return st(o);queueMicrotask((()=>{o()}))},ft=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=z(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Be(n,(()=>z(s,"componentWillRender",void 0,o))),Be(n,(()=>pt(e,s,t)))},Be=(e,t)=>ht(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),ht=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",pt=async(e,t,o)=>{var s;const n=e.$hostElement$,l=n["s-rc"];o&&(r=>{const c=r.o,i=r.$hostElement$,d=c.i,f=((a,h)=>{var g,u,v;const b=Ne(h),y=G.get(b);if(!w.document)return b;if(a=a.nodeType===11?a:w.document,y)if(typeof y=="string"){let m,p=R.get(a=a.head||a);if(p||R.set(a,p=new Set),!p.has(b)){m=w.document.createElement("style"),m.textContent=y;const N=(g=O.L)!=null?g:(function(){var S,_,x;return(x=(_=(S=w.document.head)==null?void 0:S.querySelector('meta[name="csp-nonce"]'))==null?void 0:_.getAttribute("content"))!=null?x:void 0})();if(N!=null&&m.setAttribute("nonce",N),!(1&h.i))if(a.nodeName==="HEAD"){const S=a.querySelectorAll("link[rel=preconnect]"),_=S.length>0?S[S.length-1].nextSibling:a.querySelector("style");a.insertBefore(m,_?.parentNode===a?_:null)}else if("host"in a)if(ee){const S=new((u=a.defaultView)!=null?u:a.ownerDocument.defaultView).CSSStyleSheet;S.replaceSync(y),te?a.adoptedStyleSheets.unshift(S):a.adoptedStyleSheets=[S,...a.adoptedStyleSheets]}else{const S=a.querySelector("style");S?S.textContent=y+S.textContent:a.prepend(m)}else a.append(m);1&h.i&&a.insertBefore(m,null),4&h.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(b)}}else{let m=R.get(a);if(m||R.set(a,m=new Set),!m.has(b)){const p=(v=a.defaultView)!=null?v:a.ownerDocument.defaultView;let N;if(y.constructor===p.CSSStyleSheet)N=y;else{N=new p.CSSStyleSheet;for(let S=0;S<y.cssRules.length;S++)N.insertRule(y.cssRules[S].cssText,S)}te?a.adoptedStyleSheets.push(N):a.adoptedStyleSheets=[...a.adoptedStyleSheets,N],m.add(b)}}return b})(i.shadowRoot?i.shadowRoot:i.getRootNode(),c);10&d&&(i["s-sc"]=f,i.classList.add(f+"-h"))})(e),gt(e,t,n,o),l&&(l.map((r=>r())),n["s-rc"]=void 0);{const r=(s=n["s-p"])!=null?s:[],c=()=>mt(e);r.length===0?c():(Promise.all(r).then(c).catch(c),e.i|=4,r.length=0)}},gt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,ut(e,t,s)}catch(n){D(n,e.$hostElement$)}return null},mt=e=>{const t=e.$hostElement$,o=t,s=e.C;z(o,"componentDidRender",void 0,t),64&e.i?z(o,"componentDidUpdate",void 0,t):(e.i|=64,St(t),z(o,"componentDidLoad",void 0,t),e.F(t),s||yt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ne((()=>fe(e,!1))),e.i&=-517},yt=()=>{ne((()=>xe(w,"appload",{detail:{namespace:"gids-core-web"}})))},z=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){D(n,s)}},St=e=>e.classList.add("hydrated"),Ie=(e,t,o,s)=>{const n=T(e);if(!n)return;const l=e,r=n.l.get(t),c=n.i,i=l;o=Ce(o,s.t[t][0]);const d=Number.isNaN(r)&&Number.isNaN(o);if(o!==r&&!d){if(n.l.set(t,o),s.R){const f=s.R[t];f&&f.map((a=>{try{const[[h,g]]=Object.entries(a);(128&c||1&g)&&(i?i[h](o,r,t):n.T.push((()=>{n.D[h](o,r,t)})))}catch(h){D(h,l)}}))}if(2&c){if(i.componentShouldUpdate&&i.componentShouldUpdate(o,r,t)===!1&&!(16&c))return;16&c||fe(n,!1)}}},bt=(e,t)=>{var o,s;const n=e.prototype;{e.watchers&&!t.R&&(t.R=ke(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const l=Object.entries((o=t.t)!=null?o:{});l.map((([r,[c]])=>{if(31&c||32&c){const{get:i,set:d}=M(n,r)||{};i&&(t.t[r][0]|=2048),d&&(t.t[r][0]|=4096),Object.defineProperty(n,r,{get(){return i?i.apply(this):(f=r,T(this).l.get(f));var f},configurable:!0,enumerable:!0}),Object.defineProperty(n,r,{set(f){const a=T(this);if(a){if(d)return(32&c?this[r]:a.$hostElement$[r])===void 0&&a.l.get(r)&&(f=a.l.get(r)),d.apply(this,[Ce(f,c)]),void Ie(this,r,f=32&c?this[r]:a.$hostElement$[r],t);Ie(this,r,f,t)}}})}}));{const r=new Map;n.attributeChangedCallback=function(c,i,d){O.jmp((()=>{var f;const a=r.get(c),h=T(this);if(this.hasOwnProperty(a),n.hasOwnProperty(a)&&typeof this[a]=="number"&&this[a]==d)return;if(a==null){const y=h?.i;if(h&&y&&!(8&y)&&d!==i){const m=this,p=(f=t.R)==null?void 0:f[c];p?.forEach((N=>{const[[S,_]]=Object.entries(N);m[S]!=null&&(128&y||1&_)&&m[S].call(m,d,i,c)}))}return}const g=l.find((([y])=>y===a)),u=g&&4&g[1][0],v=u&&d===null&&this[a]===void 0;u&&(d=d!==null&&d!=="false");const b=Object.getOwnPropertyDescriptor(n,a);v||d==this[a]||b.get&&!b.set||(this[a]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...l.filter((([c,i])=>31&i[0])).map((([c,i])=>{var d;const f=i[1]||c;return r.set(f,c),512&i[0]&&((d=t._)==null||d.push([c,f])),f}))]))}}return e},vt=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.R=ke(e.R),o.H=e.H,o.P=e.P,o._=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((l,r)=>{const c={i:0,$hostElement$:l,o:r,l:new Map,U:new Map};c.W=new Promise((d=>c.F=d)),l["s-p"]=[],l["s-rc"]=[];const i=c;l.__stencil__getHostRef=()=>i,512&r.i&&Xe(l,c)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!T(this))return;this.__hasHostListenerAttached=!0}(l=>{if(!(1&O.i)){const r=T(l);if(!r)return;const c=r.o;if(1&r.i)r?.D||r?.W&&r.W.then((()=>{}));else{r.i|=1,12&c.i&&(i=>{if(!w.document)return;const d=i["s-cr"]=w.document.createComment("");d["s-cn"]=!0,j(i,d,i.firstChild)})(l);{let i=l;for(;i=i.parentNode||i.host;)if(i["s-p"]){He(r,r.C=i);break}}c.t&&Object.entries(c.t).map((([i,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(l,i)){const f=l[i];delete l[i],l[i]=f}})),(async(i,d,f)=>{let a;try{if(!(32&d.i)&&(d.i|=32,a=i.constructor,customElements.whenDefined(i.localName).then((()=>d.i|=128)),a&&a.style)){let u;typeof a.style=="string"&&(u=a.style);const v=Ne(f);G.has(v)||((b,y,m)=>{let p=G.get(b);ee&&m?(p=p||new CSSStyleSheet,typeof p=="string"?p=y:p.replaceSync(y)):p=y,G.set(b,p)})(v,u,!!(1&f.i))}const h=d.C,g=()=>fe(d,!0);h&&h["s-rc"]?h["s-rc"].push(g):g()}catch(h){D(h,i),d.A&&(d.A(),d.A=void 0),d.F&&d.F(i)}})(l,r,c)}}})(this),s&&s.call(this)},disconnectedCallback(){(async l=>{1&O.i||T(l),R.has(l)&&R.delete(l),l.shadowRoot&&R.has(l.shadowRoot)&&R.delete(l.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ot.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),bt(e,o)}catch(s){return D(s),e}};function Lt(e){return e}function Fe(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Fe(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function We(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Fe(e))&&(s&&(s+=" "),s+=t);return s}const wt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:o},s)=>We("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},o,s)},Symbol.toStringTag,{value:"Module"})),_t=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:o,destructive:s,positive:n,loading:l},r,c)=>We("gids-button",{"gids-button--primary":e==="primary","gids-button--subtle":e==="subtle","gids-button--xs":t==="xs","gids-button--sm":t==="sm","gids-button--lg":t==="lg","gids-button--full-width":o==="full","gids-button--destructive":s&&!n,"gids-button--positive":n&&!s,"gids-button--icon-only":r,"gids-button--loading":l},c)},Symbol.toStringTag,{value:"Module"})),Q=64,Ve=10,ze=Q/2-Ve/2,Nt=Q/2,he=2*Math.PI*ze,Ot=`0 0 ${Q} ${Q}`,$t=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const o=typeof t=="number"&&t>0?t:1,n=Math.max(0,Math.min(o,e))/o*100,l=(he*n/100).toFixed(2),r=(he-parseFloat(l)).toFixed(2);return`${l} ${r}`},centerPosition:Nt,circumference:he,radius:ze,thickness:Ve,viewBox:Ot},Symbol.toStringTag,{value:"Module"})),Ge=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getGidsSpinnerControlClassNames:kt}=wt,{calculateStrokeDasharray:Ct,thickness:qe,radius:Ue,centerPosition:X,viewBox:xt}=$t,jt=({size:e,indeterminate:t,value:o,max:s,...n})=>{let l;return t||(l={strokeDashArray:Ct(o,s||0),strokeDashoffset:"0"}),$("svg",{class:kt({size:e,indeterminate:t,value:o}),viewBox:xt,...n},$("circle",{class:"gids-spinner-control__track",cx:X,cy:X,r:Ue,"stroke-width":qe}),$("circle",{style:l,class:"gids-spinner-control__progress",cx:X,cy:X,r:Ue,"stroke-width":qe}))},{getGidsButtonClassNames:Et}=_t,At=({appearance:e,size:t,destructive:o,positive:s,loading:n,width:l,leadingIcon:r,trailingIcon:c,as:i,disabled:d,class:f,forceIconOnly:a=!1,...h},g)=>{const u=i||"button",v=t==="lg"||t===void 0?"md":t;return u!=="button"||"type"in h||(h.type="button"),$(u,{class:Et({appearance:e,size:t,destructive:o,loading:n,width:l,positive:s},a||g.length===0&&Ge(r)&&!Ge(c),f),disabled:u==="button"?d:void 0,...h},$("span",{class:"gids-button__content"},r,g),n&&$(jt,{size:v,indeterminate:!0}),c)},B=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Ye=!1;B&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(B):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let pe=null;const ge=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Ze()})):void 0,Ze=()=>{if(B===void 0)return!1;const e=(()=>{if(B===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const s=document.styleSheets.item(o);if(s)try{let n=-1,l=0;for(let r=0;r<s.cssRules.length;r++){const c=s.cssRules.item(r);if(c?.cssText.startsWith("gids-global-styles-start"))n=r;else if(n>-1){if(c?.cssText.startsWith("gids-global-styles-end")){l=r-n+1;break}t.push(c)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:l,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return ge!==void 0&&t!==pe&&(pe&&ge.disconnect(),t instanceof Element&&ge.observe(t,{childList:!0,characterData:!0,subtree:!0}),pe=t),B.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:l}=o;for(let r=0;r<n;r++)l.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Tt=()=>(Ye||(Ye=Ze()),B),Je=vt(class extends et{get selected(){return this.#e??this.defaultSelected}set selected(e){this.#e=e===void 0?void 0:!!e}constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.select=it(this,"select"),this._toggle=this._toggle.bind(this)}#e;connectedCallback(){const e=Tt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=e,this.select?.emit(e)}render(){return $(Oe,{key:"56bc99780f392c4d5064eaa47819ee1ff0897c79"},$("style",{key:"e330f982d625eeb7f72ede3f382231fb5791ec47"},`:host {
6
6
  display: ${this.width==="full"?"block":"inline-block"}
7
- }`),$(At,{key:"cc1ba98c103b2650fac9373764174b9d692a3887",appearance:this.appearance,size:this.size,width:this.width,disabled:this.disabled,onClick:this._toggle,"aria-pressed":this.selected?"true":"false",leadingIcon:$("slot",{name:"leadingIcon"}),trailingIcon:$("slot",{name:"trailingIcon"}),forceIconOnly:this._onlyHasLeadingIcon()},$("slot",{key:"009d3abc1604b5c387c1c29fad97d42e24ae70e9"})))}_onlyHasLeadingIcon(){const e=this._el.childNodes;return e.length===1&&e[0]instanceof window.Element&&e[0].slot==="leadingIcon"}get _el(){return this}},[257,"gids-toggle-button",{disabled:[516],appearance:[513],size:[513],width:[513],defaultSelected:[516,"default-selected"],selected:[6660]}]);function Ke(){typeof customElements<"u"&&["gids-toggle-button"].forEach((e=>{e==="gids-toggle-button"&&(customElements.get(e)||customElements.define(e,Je))}))}Ke();const Rt=Je,Pt=Ke;P.GidsToggleButton=Rt,P.defineCustomElement=Pt,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}));
7
+ }`),$(At,{key:"ccef97603f645ba92fd4180263d2cbeff0a54a07",appearance:this.appearance,size:this.size,width:this.width,disabled:this.disabled,onClick:this._toggle,"aria-pressed":this.selected?"true":"false",leadingIcon:$("slot",{name:"leadingIcon"}),trailingIcon:$("slot",{name:"trailingIcon"}),forceIconOnly:this._onlyHasLeadingIcon()},$("slot",{key:"7094015cf47ef8d045955419aa43f03174145928"})))}_onlyHasLeadingIcon(){const e=this._el.childNodes;return e.length===1&&e[0]instanceof window.Element&&e[0].slot==="leadingIcon"}get _el(){return this}},[257,"gids-toggle-button",{disabled:[516],appearance:[513],size:[513],width:[513],defaultSelected:[516,"default-selected"],selected:[6660]}]);function Ke(){typeof customElements<"u"&&["gids-toggle-button"].forEach((e=>{e==="gids-toggle-button"&&(customElements.get(e)||customElements.define(e,Je))}))}Ke();const Rt=Je,Pt=Ke;P.GidsToggleButton=Rt,P.defineCustomElement=Pt,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}));
@@ -0,0 +1,5 @@
1
+ (function(X,ne){typeof exports=="object"&&typeof module<"u"?ne(exports):typeof define=="function"&&define.amd?define(["exports"],ne):(X=typeof globalThis<"u"?globalThis:X||self,ne(X.gidsCoreWebGidsTooltip={}))})(this,(function(X){"use strict";function ne(e,t,o){const n=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==n;){const i=Object.getOwnPropertyDescriptor(e,t);if(i&&(!o||i.get))return i;e=Object.getPrototypeOf(e)}}var de,ln=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([n,[i]])=>{if(31&i||32&i){const s=e[n],l=ne(Object.getPrototypeOf(e),n,!0)||Object.getOwnPropertyDescriptor(e,n);l&&Object.defineProperty(e,n,{get(){return l.get.call(this)},set(c){l.set.call(this,c)},configurable:!0,enumerable:!0}),t.l.has(n)?e[n]=t.l.get(n):s!==void 0&&(e[n]=s)}}))},z=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},pt=(e,t)=>t in e,oe=(e,t)=>(0,console.error)(e,t),Oe=new Map,mt="http://www.w3.org/1999/xlink",O=typeof window<"u"?window:{},rn=O.HTMLElement||class{},T={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,n)=>e.addEventListener(t,o,n),rel:(e,t,o,n)=>e.removeEventListener(t,o,n),ce:(e,t)=>new CustomEvent(e,t)},je=(()=>{try{return!!O.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),He=!!je&&!!O.document&&Object.getOwnPropertyDescriptor(O.document.adoptedStyleSheets,"length").writable,Ve=!1,gt=[],yt=[],cn=(e,t)=>o=>{e.push(o),Ve||(Ve=!0,4&T.i?Be(ze):T.raf(ze))},wt=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){oe(o)}e.length=0},ze=()=>{wt(gt),wt(yt),(Ve=gt.length>0)&&T.raf(ze)},Be=e=>Promise.resolve(void 0).then(e),an=cn(yt);function fn(){const e=this.attachShadow({mode:"open"});de===void 0&&(de=null),de&&(He?e.adoptedStyleSheets.push(de):e.adoptedStyleSheets=[...e.adoptedStyleSheets,de])}var vt=e=>{const t=Ue(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&Ie(t,e.tagName).forEach((n=>{n.nodeType===1&&n.tagName==="SLOT-FB"&&(n.hidden=!!un(n,he(n),!1).length)}));let o=0;for(o=0;o<t.length;o++){const n=t[o];n.nodeType===1&&Ue(n,"childNodes").length&&vt(n)}};function Ie(e,t,o){let n,i=0,s=[];for(;i<e.length;i++){if(n=e[i],n["s-sr"]&&(!t||n["s-hn"]===t)&&(o===void 0||he(n)===o)&&(s.push(n),o!==void 0))return s;s=[...s,...Ie(n.childNodes,t,o)]}return s}var un=(e,t,o=!0)=>{const n=[];(o&&e["s-sr"]||!e["s-sr"])&&n.push(e);let i=e;for(;i=i.nextSibling;)he(i)!==t||!o&&i["s-sr"]||n.push(i);return n},bt=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",he=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function Ue(e,t){if("__"+t in e){const o=e["__"+t];return typeof o!="function"?o:o.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var qe,Y,B=new WeakMap,xt=e=>"sc-"+e.p,Xe=e=>(e=typeof e)=="object"||e==="function",ie=(e,t,...o)=>{let n=null,i=null,s=null,l=!1,c=!1;const r=[],a=f=>{for(let h=0;h<f.length;h++)n=f[h],Array.isArray(n)?a(n):n!=null&&typeof n!="boolean"&&((l=typeof e!="function"&&!Xe(n))&&(n=String(n)),l&&c?r[r.length-1].h+=n:r.push(l?Ae(null,n):n),c=l)};if(a(o),t){t.key&&(i=t.key),t.name&&(s=t.name);{const f=t.className||t.class;f&&(t.class=typeof f!="object"?f:Object.keys(f).filter((h=>f[h])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,r,hn);const u=Ae(e,null);return u.v=t,r.length>0&&(u.m=r),u.$=i,u.j=s,u},Ae=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),dn={},hn={forEach:(e,t)=>e.map(St).forEach(t),map:(e,t)=>e.map(St).map(t).map(pn)},St=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),pn=e=>{if(typeof e.vtag=="function"){const o={...e.vattrs};return e.vkey&&(o.key=e.vkey),e.vname&&(o.name=e.vname),ie(e.vtag,o,...e.vchildren||[])}const t=Ae(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Et=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let o=!1;for(const i of t){if(o)break;for(const s of e[i])if(typeof s=="string"){o=!0;break}}if(!o)return e;const n={};for(const i of t)n[i]=e[i].map((s=>typeof s=="string"?{[s]:0}:s));return n},Ot=(e,t)=>e==null||Xe(e)?e:4&t?e!=="false"&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,mn=(e,t,o)=>{const n=T.ce(t,o);return e.dispatchEvent(n),n},At=(e,t,o,n,i,s)=>{if(o===n)return;let l=pt(e,t),c=t.toLowerCase();if(t==="class"){const r=e.classList,a=Ct(o);let u=Ct(n);r.remove(...a.filter((f=>f&&!u.includes(f)))),r.add(...u.filter((f=>f&&!a.includes(f))))}else if(t==="style"){for(const r in o)n&&n[r]!=null||(r.includes("-")?e.style.removeProperty(r):e.style[r]="");for(const r in n)o&&n[r]===o[r]||(r.includes("-")?e.style.setProperty(r,n[r]):e.style[r]=n[r])}else if(t!=="key"){if(t==="ref")n&&wn(n,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const r=t.slice(5);let a;{const u=z(e);if(u&&u.o&&u.o.t){const f=u.o.t[r];f&&f[1]&&(a=f[1])}}return a||(a=r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(n==null||n===!1?n===!1&&e.getAttribute(a)!==""||e.removeAttribute(a):e.setAttribute(a,n===!0?"":n))}if(t[0]==="p"&&t.startsWith("prop:")){const r=t.slice(5);try{e[r]=n}catch{}return}{const r=Xe(n);if((l||r&&n!==null)&&!i)try{if(e.tagName.includes("-"))e[t]!==n&&(e[t]=n);else{const u=n??"";t==="list"?l=!1:o!=null&&e[t]===u||(typeof e.__lookupSetter__(t)=="function"?e[t]=u:e.setAttribute(t,u))}}catch{}let a=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,a=!0),n==null||n===!1?n===!1&&e.getAttribute(t)!==""||(a?e.removeAttributeNS(mt,t):e.removeAttribute(t)):(!l||4&s||i)&&!r&&e.nodeType===1&&(n=n===!0?"":n,a?e.setAttributeNS(mt,t,n):e.setAttribute(t,n))}}else if(t=t[2]==="-"?t.slice(3):pt(O,c)?c.slice(2):c[2]+t.slice(3),o||n){const r=t.endsWith(Tt);t=t.replace(yn,""),o&&T.rel(e,t,o,r),n&&T.ael(e,t,n,r)}}},gn=/\s/,Ct=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(gn):[]),Tt="Capture",yn=new RegExp(Tt+"$"),Ye=(e,t,o)=>{const n=t.S.nodeType===11&&t.S.host?t.S.host:t.S,i=e&&e.v||{},s=t.v||{};for(const l of Nt(Object.keys(i)))l in s||At(n,l,i[l],void 0,o,t.i);for(const l of Nt(Object.keys(s)))At(n,l,i[l],s[l],o,t.i)};function Nt(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var pe=!1,Ce=!1,Te=!1,R=!1,Ge=[],Ze=[],Ne=(e,t,o)=>{var n;const i=t.m[o];let s,l,c,r=0;if(pe||(Te=!0,i.O==="slot"&&(i.i|=i.m?2:1)),i.h!=null)s=i.S=O.document.createTextNode(i.h);else if(1&i.i)s=i.S=O.document.createTextNode(""),Ye(null,i,R);else{if(R||(R=i.O==="svg"),!O.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(s=i.S=O.document.createElementNS(R?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!pe&&2&i.i?"slot-fb":i.O),R&&i.O==="foreignObject"&&(R=!1),Ye(null,i,R),i.m){const a=i.O==="template"?s.content:s;for(r=0;r<i.m.length;++r)l=Ne(e,i,r),l&&a.appendChild(l)}i.O==="svg"?R=!1:s.tagName==="foreignObject"&&(R=!0)}return s["s-hn"]=Y,3&i.i&&(s["s-sr"]=!0,s["s-cr"]=qe,s["s-sn"]=i.j||"",s["s-rf"]=(n=i.v)==null?void 0:n.ref,(function(a){if(a.assignedElements||a.assignedNodes||!a["s-sr"])return;const u=f=>(function(h){const p=[],d=this["s-sn"];h?.flatten&&console.error(`
2
+ Flattening is not supported for Stencil non-shadow slots.
3
+ You can use \`.childNodes\` to nested slot fallback content.
4
+ If you have a particular use case, please open an issue on the Stencil repo.
5
+ `);const w=this["s-cr"].parentElement;return(w.__childNodes?w.childNodes:(v=>{const m=[];for(let y=0;y<v.length;y++){const g=v[y]["s-nr"]||void 0;g&&g.isConnected&&m.push(g)}return m})(w.childNodes)).forEach((v=>{d===he(v)&&p.push(v)})),f?p.filter((v=>v.nodeType===1)):p}).bind(a);a.assignedElements=u(!0),a.assignedNodes=u(!1)})(s),c=e&&e.m&&e.m[o],c&&c.O===i.O&&e.S&&Rt(e.S)),s},Rt=e=>{T.i|=1;const t=e.closest(Y.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),n=Array.from(e.__childNodes||e.childNodes);for(const i of o?n.reverse():n)i["s-sh"]!=null&&(L(t,i,o??null),i["s-sh"]=void 0,Te=!0)}T.i&=-2},Re=(e,t)=>{T.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let n=e;for(;n=n.nextSibling;)n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===Y&&o.push(n)}for(let n=o.length-1;n>=0;n--){const i=o[n];i["s-hn"]!==Y&&i["s-ol"]&&(L(me(i).parentNode,i,me(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,Te=!0),t&&Re(i,t)}T.i&=-2},kt=(e,t,o,n,i,s)=>{let l,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===Y&&(c=c.shadowRoot),o.O==="template"&&(c=c.content);i<=s;++i)n[i]&&(l=Ne(null,o,i),l&&(n[i].S=l,L(c,l,me(t))))},_t=(e,t,o)=>{for(let n=t;n<=o;++n){const i=e[n];if(i){const s=i.S;$t(i),s&&(Ce=!0,s["s-ol"]?s["s-ol"].remove():Re(s,!0),s.remove())}}},ke=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),me=e=>e&&e["s-ol"]||e,se=(e,t,o=!1)=>{const n=t.S=e.S,i=e.m,s=t.m,l=t.O,c=t.h;let r;c==null?(R=l==="svg"||l!=="foreignObject"&&R,l!=="slot"||pe||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Rt(t.S.parentElement)),Ye(e,t,R),i!==null&&s!==null?((a,u,f,h,p=!1)=>{let d,w,v=0,m=0,y=0,g=0,x=u.length-1,b=u[0],S=u[x],E=h.length-1,A=h[0],C=h[E];const _=f.O==="template"?a.content:a;for(;v<=x&&m<=E;)if(b==null)b=u[++v];else if(S==null)S=u[--x];else if(A==null)A=h[++m];else if(C==null)C=h[--E];else if(ke(b,A,p))se(b,A,p),b=u[++v],A=h[++m];else if(ke(S,C,p))se(S,C,p),S=u[--x],C=h[--E];else if(ke(b,C,p))b.O!=="slot"&&C.O!=="slot"||Re(b.S.parentNode,!1),se(b,C,p),L(_,b.S,S.S.nextSibling),b=u[++v],C=h[--E];else if(ke(S,A,p))b.O!=="slot"&&C.O!=="slot"||Re(S.S.parentNode,!1),se(S,A,p),L(_,S.S,b.S),S=u[--x],A=h[++m];else{for(y=-1,g=v;g<=x;++g)if(u[g]&&u[g].$!==null&&u[g].$===A.$){y=g;break}y>=0?(w=u[y],w.O!==A.O?d=Ne(u&&u[m],f,y):(se(w,A,p),u[y]=void 0,d=w.S),A=h[++m]):(d=Ne(u&&u[m],f,m),A=h[++m]),d&&L(me(b.S).parentNode,d,me(b.S))}v>x?kt(a,h[E+1]==null?null:h[E+1].S,f,h,m,E):m>E&&_t(u,v,x)})(n,i,t,s,o):s!==null?(e.h!==null&&(n.textContent=""),kt(n,null,t,s,0,s.length-1)):!o&&i!==null&&_t(i,0,i.length-1),R&&l==="svg"&&(R=!1)):(r=n["s-cr"])?r.parentNode.textContent=c:e.h!==c&&(n.data=c)},j=[],Lt=e=>{let t,o,n;const i=e.__childNodes||e.childNodes;for(const s of i){if(s["s-sr"]&&(t=s["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const l=s["s-sn"];for(n=o.length-1;n>=0;n--)if(t=o[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===s["s-hn"]||t["s-sh"]&&t["s-sh"]===s["s-hn"]))if(bt(t,l)){let c=j.find((r=>r.k===t));Ce=!0,t["s-sn"]=t["s-sn"]||l,c?(c.k["s-sh"]=s["s-hn"],c.N=s):(t["s-sh"]=s["s-hn"],j.push({N:s,k:t})),t["s-sr"]&&j.map((r=>{bt(r.k,t["s-sn"])&&(c=j.find((a=>a.k===t)),c&&!r.N&&(r.N=c.N))}))}else j.some((c=>c.k===t))||j.push({k:t})}s.nodeType===1&&Lt(s)}},$t=e=>{e.v&&e.v.ref&&Ge.push((()=>e.v.ref(null))),e.m&&e.m.map($t)},wn=(e,t)=>{Ze.push((()=>e(t)))},L=(e,t,o,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:i}=(function(s,l){var c;if(!(l=l||((c=s["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const r=s["s-sn"]=he(s)||"";return{slotNode:Ie(Ue(l,"childNodes"),l.tagName,r)[0],slotName:r}})(t);return i&&!n&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},vn=(e,t,o=!1)=>{var n,i,s,l,c;const r=e.$hostElement$,a=e.o,u=e.M||Ae(null,null);var f;const h=(f=t)&&f.O===dn?t:ie(null,null,t);if(Y=r.tagName,a._&&(h.v=h.v||{},a._.forEach((([p,d])=>{h.v[d]=r[p]}))),o&&h.v)for(const p of Object.keys(h.v))r.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(h.v[p]=r[p]);if(h.O=null,h.i|=4,e.M=h,h.S=u.S=r.shadowRoot||r,pe=!(!(1&a.i)||128&a.i),qe=r["s-cr"],Ce=!1,se(u,h,o),T.i|=1,Te){Lt(h.S);for(const p of j){const d=p.k;if(!d["s-ol"]&&O.document){const w=O.document.createTextNode("");w["s-nr"]=d,L(d.parentNode,d["s-ol"]=w,d,o)}}for(const p of j){const d=p.k,w=p.N;if(d.nodeType===1&&o&&(d["s-ih"]=(n=d.hidden)!=null&&n),w){const v=w.parentNode;let m=w.nextSibling;if(m&&m.nodeType===1){let y=(i=d["s-ol"])==null?void 0:i.previousSibling;for(;y;){let g=(s=y["s-nr"])!=null?s:null;if(g&&g["s-sn"]===d["s-sn"]&&v===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===d||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){m=g;break}}y=y.previousSibling}}if((!m&&v!==(d.__parentNode||d.parentNode)||(d.__nextSibling||d.nextSibling)!==m)&&d!==m){if(L(v,d,m,o),d.nodeType===8&&d.nodeValue.startsWith("s-nt-")){const y=O.document.createTextNode(d.nodeValue.replace(/^s-nt-/,""));y["s-hn"]=d["s-hn"],y["s-sn"]=d["s-sn"],y["s-sh"]=d["s-sh"],y["s-sr"]=d["s-sr"],y["s-ol"]=d["s-ol"],y["s-ol"]["s-nr"]=y,L(d.parentNode,y,d,o),d.parentNode.removeChild(d)}d.nodeType===1&&d.tagName!=="SLOT-FB"&&(d.hidden=(l=d["s-ih"])!=null&&l)}d&&typeof w["s-rf"]=="function"&&w["s-rf"](w)}else d.nodeType===1&&(d.hidden=!0)}}if(Ce&&vt(h.S),T.i&=-2,j.length=0,!pe&&!(1&a.i)&&r["s-cr"]){const p=h.S.__childNodes||h.S.childNodes;for(const d of p)if(d["s-hn"]!==Y&&!d["s-sh"]){if(o&&d["s-ih"]==null&&(d["s-ih"]=(c=d.hidden)!=null&&c),d.nodeType===1)d.hidden=!0;else if(d.nodeType===3&&d.nodeValue.trim()){const w=O.document.createComment("s-nt-"+d.nodeValue);w["s-sn"]=d["s-sn"],L(d.parentNode,w,d,o),d.parentNode.removeChild(d)}}}qe=void 0,Ge.forEach((p=>p())),Ge.length=0,Ze.forEach((p=>p())),Ze.length=0},Pt=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((n=>e.A=()=>{t["s-p"].splice(o-1,1),n()})))}},Ke=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Pt(e,e.C);const o=()=>bn(e,t);if(!t)return an(o);queueMicrotask((()=>{o()}))},bn=(e,t)=>{const o=e.$hostElement$,n=o;if(!n)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return i=ge(n,t?"componentWillLoad":"componentWillUpdate",void 0,o),i=Dt(i,(()=>ge(n,"componentWillRender",void 0,o))),Dt(i,(()=>Sn(e,n,t)))},Dt=(e,t)=>xn(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),xn=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Sn=async(e,t,o)=>{var n;const i=e.$hostElement$,s=i["s-rc"];o&&(l=>{const c=l.o,r=l.$hostElement$,a=c.i,u=((f,h)=>{var p,d,w;const v=xt(h),m=Oe.get(v);if(!O.document)return v;if(f=f.nodeType===11?f:O.document,m)if(typeof m=="string"){let y,g=B.get(f=f.head||f);if(g||B.set(f,g=new Set),!g.has(v)){y=O.document.createElement("style"),y.textContent=m;const x=(p=T.L)!=null?p:(function(){var b,S,E;return(E=(S=(b=O.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:S.getAttribute("content"))!=null?E:void 0})();if(x!=null&&y.setAttribute("nonce",x),!(1&h.i))if(f.nodeName==="HEAD"){const b=f.querySelectorAll("link[rel=preconnect]"),S=b.length>0?b[b.length-1].nextSibling:f.querySelector("style");f.insertBefore(y,S?.parentNode===f?S:null)}else if("host"in f)if(je){const b=new((d=f.defaultView)!=null?d:f.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(m),He?f.adoptedStyleSheets.unshift(b):f.adoptedStyleSheets=[b,...f.adoptedStyleSheets]}else{const b=f.querySelector("style");b?b.textContent=m+b.textContent:f.prepend(y)}else f.append(y);1&h.i&&f.insertBefore(y,null),4&h.i&&(y.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(v)}}else{let y=B.get(f);if(y||B.set(f,y=new Set),!y.has(v)){const g=(w=f.defaultView)!=null?w:f.ownerDocument.defaultView;let x;if(m.constructor===g.CSSStyleSheet)x=m;else{x=new g.CSSStyleSheet;for(let b=0;b<m.cssRules.length;b++)x.insertRule(m.cssRules[b].cssText,b)}He?f.adoptedStyleSheets.push(x):f.adoptedStyleSheets=[...f.adoptedStyleSheets,x],y.add(v)}}return v})(r.shadowRoot?r.shadowRoot:r.getRootNode(),c);10&a&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),En(e,t,i,o),s&&(s.map((l=>l())),i["s-rc"]=void 0);{const l=(n=i["s-p"])!=null?n:[],c=()=>On(e);l.length===0?c():(Promise.all(l).then(c).catch(c),e.i|=4,l.length=0)}},En=(e,t,o,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,vn(e,t,n)}catch(i){oe(i,e.$hostElement$)}return null},On=e=>{const t=e.$hostElement$,o=t,n=e.C;ge(o,"componentDidRender",void 0,t),64&e.i?ge(o,"componentDidUpdate",void 0,t):(e.i|=64,Cn(t),ge(o,"componentDidLoad",void 0,t),e.F(t),n||An()),e.A&&(e.A(),e.A=void 0),512&e.i&&Be((()=>Ke(e,!1))),e.i&=-517},An=()=>{Be((()=>mn(O,"appload",{detail:{namespace:"gids-core-web"}})))},ge=(e,t,o,n)=>{if(e&&e[t])try{return e[t](o)}catch(i){oe(i,n)}},Cn=e=>e.classList.add("hydrated"),Mt=(e,t,o,n)=>{const i=z(e);if(!i)return;const s=e,l=i.l.get(t),c=i.i,r=s;o=Ot(o,n.t[t][0]);const a=Number.isNaN(l)&&Number.isNaN(o);if(o!==l&&!a){if(i.l.set(t,o),n.R){const u=n.R[t];u&&u.map((f=>{try{const[[h,p]]=Object.entries(f);(128&c||1&p)&&(r?r[h](o,l,t):i.T.push((()=>{i.D[h](o,l,t)})))}catch(h){oe(h,s)}}))}if(2&c){if(r.componentShouldUpdate&&r.componentShouldUpdate(o,l,t)===!1&&!(16&c))return;16&c||Ke(i,!1)}}},Tn=(e,t)=>{var o,n;const i=e.prototype;{e.watchers&&!t.R&&(t.R=Et(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const s=Object.entries((o=t.t)!=null?o:{});s.map((([l,[c]])=>{if(31&c||32&c){const{get:r,set:a}=ne(i,l)||{};r&&(t.t[l][0]|=2048),a&&(t.t[l][0]|=4096),Object.defineProperty(i,l,{get(){return r?r.apply(this):(u=l,z(this).l.get(u));var u},configurable:!0,enumerable:!0}),Object.defineProperty(i,l,{set(u){const f=z(this);if(f){if(a)return(32&c?this[l]:f.$hostElement$[l])===void 0&&f.l.get(l)&&(u=f.l.get(l)),a.apply(this,[Ot(u,c)]),void Mt(this,l,u=32&c?this[l]:f.$hostElement$[l],t);Mt(this,l,u,t)}}})}}));{const l=new Map;i.attributeChangedCallback=function(c,r,a){T.jmp((()=>{var u;const f=l.get(c),h=z(this);if(this.hasOwnProperty(f),i.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==a)return;if(f==null){const m=h?.i;if(h&&m&&!(8&m)&&a!==r){const y=this,g=(u=t.R)==null?void 0:u[c];g?.forEach((x=>{const[[b,S]]=Object.entries(x);y[b]!=null&&(128&m||1&S)&&y[b].call(y,a,r,c)}))}return}const p=s.find((([m])=>m===f)),d=p&&4&p[1][0],w=d&&a===null&&this[f]===void 0;d&&(a=a!==null&&a!=="false");const v=Object.getOwnPropertyDescriptor(i,f);w||a==this[f]||v.get&&!v.set||(this[f]=a)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.R)!=null?n:{}),...s.filter((([c,r])=>31&r[0])).map((([c,r])=>{var a;const u=r[1]||c;return l.set(u,c),512&r[0]&&((a=t._)==null||a.push([c,u])),u}))]))}}return e},Nn=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.R=Et(e.R),o.H=e.H,o.P=e.P,o._=[];const n=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((s,l)=>{const c={i:0,$hostElement$:s,o:l,l:new Map,U:new Map};c.W=new Promise((a=>c.F=a)),s["s-p"]=[],s["s-rc"]=[];const r=c;s.__stencil__getHostRef=()=>r,512&l.i&&ln(s,c)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!z(this))return;this.__hasHostListenerAttached=!0}(s=>{if(!(1&T.i)){const l=z(s);if(!l)return;const c=l.o;if(1&l.i)l?.D||l?.W&&l.W.then((()=>{}));else{l.i|=1,12&c.i&&(r=>{if(!O.document)return;const a=r["s-cr"]=O.document.createComment("");a["s-cn"]=!0,L(r,a,r.firstChild)})(s);{let r=s;for(;r=r.parentNode||r.host;)if(r["s-p"]){Pt(l,l.C=r);break}}c.t&&Object.entries(c.t).map((([r,[a]])=>{if(31&a&&Object.prototype.hasOwnProperty.call(s,r)){const u=s[r];delete s[r],s[r]=u}})),(async(r,a,u)=>{let f;try{if(!(32&a.i)&&(a.i|=32,f=r.constructor,customElements.whenDefined(r.localName).then((()=>a.i|=128)),f&&f.style)){let d;typeof f.style=="string"&&(d=f.style);const w=xt(u);Oe.has(w)||((v,m,y)=>{let g=Oe.get(v);je&&y?(g=g||new CSSStyleSheet,typeof g=="string"?g=m:g.replaceSync(m)):g=m,Oe.set(v,g)})(w,d,!!(1&u.i))}const h=a.C,p=()=>Ke(a,!0);h&&h["s-rc"]?h["s-rc"].push(p):p()}catch(h){oe(h,r),a.A&&(a.A(),a.A=void 0),a.F&&a.F(r)}})(s,l,c)}}})(this),n&&n.call(this)},disconnectedCallback(){(async s=>{1&T.i||z(s),B.has(s)&&B.delete(s),s.shadowRoot&&B.has(s.shadowRoot)&&B.delete(s.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else fn.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),Tn(e,o)}catch(n){return oe(n),e}},Rn=(e,t)=>t;function Co(e){return e}const le=Math.min,G=Math.max,_e=Math.round,Le=Math.floor,F=e=>({x:e,y:e}),kn={left:"right",right:"left",bottom:"top",top:"bottom"};function Je(e,t,o){return G(e,le(t,o))}function ye(e,t){return typeof e=="function"?e(t):e}function Z(e){return e.split("-")[0]}function we(e){return e.split("-")[1]}function Ft(e){return e==="x"?"y":"x"}function Qe(e){return e==="y"?"height":"width"}function I(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function et(e){return Ft(I(e))}function _n(e,t,o){o===void 0&&(o=!1);const n=we(e),i=et(e),s=Qe(i);let l=i==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=$e(l)),[l,$e(l)]}function Ln(e){const t=$e(e);return[tt(e),t,tt(t)]}function tt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Wt=["left","right"],jt=["right","left"],$n=["top","bottom"],Pn=["bottom","top"];function Dn(e,t,o){switch(e){case"top":case"bottom":return o?t?jt:Wt:t?Wt:jt;case"left":case"right":return t?$n:Pn;default:return[]}}function Mn(e,t,o,n){const i=we(e);let s=Dn(Z(e),o==="start",n);return i&&(s=s.map(l=>l+"-"+i),t&&(s=s.concat(s.map(tt)))),s}function $e(e){const t=Z(e);return kn[t]+e.slice(t.length)}function Fn(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ht(e){return typeof e!="number"?Fn(e):{top:e,right:e,bottom:e,left:e}}function Pe(e){const{x:t,y:o,width:n,height:i}=e;return{width:n,height:i,top:o,left:t,right:t+n,bottom:o+i,x:t,y:o}}function Vt(e,t,o){let{reference:n,floating:i}=e;const s=I(t),l=et(t),c=Qe(l),r=Z(t),a=s==="y",u=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,h=n[c]/2-i[c]/2;let p;switch(r){case"top":p={x:u,y:n.y-i.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:f};break;case"left":p={x:n.x-i.width,y:f};break;default:p={x:n.x,y:n.y}}switch(we(t)){case"start":p[l]-=h*(o&&a?-1:1);break;case"end":p[l]+=h*(o&&a?-1:1);break}return p}async function Wn(e,t){var o;t===void 0&&(t={});const{x:n,y:i,platform:s,rects:l,elements:c,strategy:r}=e,{boundary:a="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=ye(t,e),d=Ht(p),v=c[h?f==="floating"?"reference":"floating":f],m=Pe(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(v)))==null||o?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:a,rootBoundary:u,strategy:r})),y=f==="floating"?{x:n,y:i,width:l.floating.width,height:l.floating.height}:l.reference,g=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),x=await(s.isElement==null?void 0:s.isElement(g))?await(s.getScale==null?void 0:s.getScale(g))||{x:1,y:1}:{x:1,y:1},b=Pe(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:g,strategy:r}):y);return{top:(m.top-b.top+d.top)/x.y,bottom:(b.bottom-m.bottom+d.bottom)/x.y,left:(m.left-b.left+d.left)/x.x,right:(b.right-m.right+d.right)/x.x}}const jn=50,Hn=async(e,t,o)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:l}=o,c=l.detectOverflow?l:{...l,detectOverflow:Wn},r=await(l.isRTL==null?void 0:l.isRTL(t));let a=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:f}=Vt(a,n,r),h=n,p=0;const d={};for(let w=0;w<s.length;w++){const v=s[w];if(!v)continue;const{name:m,fn:y}=v,{x:g,y:x,data:b,reset:S}=await y({x:u,y:f,initialPlacement:n,placement:h,strategy:i,middlewareData:d,rects:a,platform:c,elements:{reference:e,floating:t}});u=g??u,f=x??f,d[m]={...d[m],...b},S&&p<jn&&(p++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(a=S.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):S.rects),{x:u,y:f}=Vt(a,h,r)),w=-1)}return{x:u,y:f,placement:h,strategy:i,middlewareData:d}},Vn=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:n,placement:i,rects:s,platform:l,elements:c,middlewareData:r}=t,{element:a,padding:u=0}=ye(e,t)||{};if(a==null)return{};const f=Ht(u),h={x:o,y:n},p=et(i),d=Qe(p),w=await l.getDimensions(a),v=p==="y",m=v?"top":"left",y=v?"bottom":"right",g=v?"clientHeight":"clientWidth",x=s.reference[d]+s.reference[p]-h[p]-s.floating[d],b=h[p]-s.reference[p],S=await(l.getOffsetParent==null?void 0:l.getOffsetParent(a));let E=S?S[g]:0;(!E||!await(l.isElement==null?void 0:l.isElement(S)))&&(E=c.floating[g]||s.floating[d]);const A=x/2-b/2,C=E/2-w[d]/2-1,_=le(f[m],C),Se=le(f[y],C),ee=_,Ee=E-w[d]-Se,N=E/2-w[d]/2+A,te=Je(ee,N,Ee),V=!r.arrow&&we(i)!=null&&N!==te&&s.reference[d]/2-(N<ee?_:Se)-w[d]/2<0,D=V?N<ee?N-ee:N-Ee:0;return{[p]:h[p]+D,data:{[p]:te,centerOffset:N-te-D,...V&&{alignmentOffset:D}},reset:V}}}),zn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:i,middlewareData:s,rects:l,initialPlacement:c,platform:r,elements:a}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:w=!0,...v}=ye(e,t);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const m=Z(i),y=I(c),g=Z(c)===c,x=await(r.isRTL==null?void 0:r.isRTL(a.floating)),b=h||(g||!w?[$e(c)]:Ln(c)),S=d!=="none";!h&&S&&b.push(...Mn(c,w,d,x));const E=[c,...b],A=await r.detectOverflow(t,v),C=[];let _=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&C.push(A[m]),f){const N=_n(i,l,x);C.push(A[N[0]],A[N[1]])}if(_=[..._,{placement:i,overflows:C}],!C.every(N=>N<=0)){var Se,ee;const N=(((Se=s.flip)==null?void 0:Se.index)||0)+1,te=E[N];if(te&&(!(f==="alignment"?y!==I(te):!1)||_.every(M=>I(M.placement)===y?M.overflows[0]>0:!0)))return{data:{index:N,overflows:_},reset:{placement:te}};let V=(ee=_.filter(D=>D.overflows[0]<=0).sort((D,M)=>D.overflows[1]-M.overflows[1])[0])==null?void 0:ee.placement;if(!V)switch(p){case"bestFit":{var Ee;const D=(Ee=_.filter(M=>{if(S){const q=I(M.placement);return q===y||q==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(q=>q>0).reduce((q,Ao)=>q+Ao,0)]).sort((M,q)=>M[1]-q[1])[0])==null?void 0:Ee[0];D&&(V=D);break}case"initialPlacement":V=c;break}if(i!==V)return{reset:{placement:V}}}return{}}}},Bn=new Set(["left","top"]);async function In(e,t){const{placement:o,platform:n,elements:i}=e,s=await(n.isRTL==null?void 0:n.isRTL(i.floating)),l=Z(o),c=we(o),r=I(o)==="y",a=Bn.has(l)?-1:1,u=s&&r?-1:1,f=ye(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:d}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&typeof d=="number"&&(p=c==="end"?d*-1:d),r?{x:p*u,y:h*a}:{x:h*a,y:p*u}}const Un=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:i,y:s,placement:l,middlewareData:c}=t,r=await In(t,e);return l===((o=c.offset)==null?void 0:o.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:i+r.x,y:s+r.y,data:{...r,placement:l}}}}},qn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:i,platform:s}=t,{mainAxis:l=!0,crossAxis:c=!1,limiter:r={fn:m=>{let{x:y,y:g}=m;return{x:y,y:g}}},...a}=ye(e,t),u={x:o,y:n},f=await s.detectOverflow(t,a),h=I(Z(i)),p=Ft(h);let d=u[p],w=u[h];if(l){const m=p==="y"?"top":"left",y=p==="y"?"bottom":"right",g=d+f[m],x=d-f[y];d=Je(g,d,x)}if(c){const m=h==="y"?"top":"left",y=h==="y"?"bottom":"right",g=w+f[m],x=w-f[y];w=Je(g,w,x)}const v=r.fn({...t,[p]:d,[h]:w});return{...v,data:{x:v.x-o,y:v.y-n,enabled:{[p]:l,[h]:c}}}}}};function De(){return typeof window<"u"}function re(e){return zt(e)?(e.nodeName||"").toLowerCase():"#document"}function k(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function W(e){var t;return(t=(zt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function zt(e){return De()?e instanceof Node||e instanceof k(e).Node:!1}function $(e){return De()?e instanceof Element||e instanceof k(e).Element:!1}function H(e){return De()?e instanceof HTMLElement||e instanceof k(e).HTMLElement:!1}function Bt(e){return!De()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof k(e).ShadowRoot}function ve(e){const{overflow:t,overflowX:o,overflowY:n,display:i}=P(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&i!=="inline"&&i!=="contents"}function Xn(e){return/^(table|td|th)$/.test(re(e))}function Me(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Yn=/transform|translate|scale|rotate|perspective|filter/,Gn=/paint|layout|strict|content/,K=e=>!!e&&e!=="none";let nt;function ot(e){const t=$(e)?P(e):e;return K(t.transform)||K(t.translate)||K(t.scale)||K(t.rotate)||K(t.perspective)||!it()&&(K(t.backdropFilter)||K(t.filter))||Yn.test(t.willChange||"")||Gn.test(t.contain||"")}function Zn(e){let t=U(e);for(;H(t)&&!ce(t);){if(ot(t))return t;if(Me(t))return null;t=U(t)}return null}function it(){return nt==null&&(nt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),nt}function ce(e){return/^(html|body|#document)$/.test(re(e))}function P(e){return k(e).getComputedStyle(e)}function Fe(e){return $(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function U(e){if(re(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Bt(e)&&e.host||W(e);return Bt(t)?t.host:t}function It(e){const t=U(e);return ce(t)?e.ownerDocument?e.ownerDocument.body:e.body:H(t)&&ve(t)?t:It(t)}function be(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const i=It(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),l=k(i);if(s){const c=st(l);return t.concat(l,l.visualViewport||[],ve(i)?i:[],c&&o?be(c):[])}else return t.concat(i,be(i,[],o))}function st(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ut(e){const t=P(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=H(e),s=i?e.offsetWidth:o,l=i?e.offsetHeight:n,c=_e(o)!==s||_e(n)!==l;return c&&(o=s,n=l),{width:o,height:n,$:c}}function lt(e){return $(e)?e:e.contextElement}function ae(e){const t=lt(e);if(!H(t))return F(1);const o=t.getBoundingClientRect(),{width:n,height:i,$:s}=Ut(t);let l=(s?_e(o.width):o.width)/n,c=(s?_e(o.height):o.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const Kn=F(0);function qt(e){const t=k(e);return!it()||!t.visualViewport?Kn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Jn(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==k(e)?!1:t}function J(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const i=e.getBoundingClientRect(),s=lt(e);let l=F(1);t&&(n?$(n)&&(l=ae(n)):l=ae(e));const c=Jn(s,o,n)?qt(s):F(0);let r=(i.left+c.x)/l.x,a=(i.top+c.y)/l.y,u=i.width/l.x,f=i.height/l.y;if(s){const h=k(s),p=n&&$(n)?k(n):n;let d=h,w=st(d);for(;w&&n&&p!==d;){const v=ae(w),m=w.getBoundingClientRect(),y=P(w),g=m.left+(w.clientLeft+parseFloat(y.paddingLeft))*v.x,x=m.top+(w.clientTop+parseFloat(y.paddingTop))*v.y;r*=v.x,a*=v.y,u*=v.x,f*=v.y,r+=g,a+=x,d=k(w),w=st(d)}}return Pe({width:u,height:f,x:r,y:a})}function We(e,t){const o=Fe(e).scrollLeft;return t?t.left+o:J(W(e)).left+o}function Xt(e,t){const o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-We(e,o),i=o.top+t.scrollTop;return{x:n,y:i}}function Qn(e){let{elements:t,rect:o,offsetParent:n,strategy:i}=e;const s=i==="fixed",l=W(n),c=t?Me(t.floating):!1;if(n===l||c&&s)return o;let r={scrollLeft:0,scrollTop:0},a=F(1);const u=F(0),f=H(n);if((f||!f&&!s)&&((re(n)!=="body"||ve(l))&&(r=Fe(n)),f)){const p=J(n);a=ae(n),u.x=p.x+n.clientLeft,u.y=p.y+n.clientTop}const h=l&&!f&&!s?Xt(l,r):F(0);return{width:o.width*a.x,height:o.height*a.y,x:o.x*a.x-r.scrollLeft*a.x+u.x+h.x,y:o.y*a.y-r.scrollTop*a.y+u.y+h.y}}function eo(e){return Array.from(e.getClientRects())}function to(e){const t=W(e),o=Fe(e),n=e.ownerDocument.body,i=G(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=G(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let l=-o.scrollLeft+We(e);const c=-o.scrollTop;return P(n).direction==="rtl"&&(l+=G(t.clientWidth,n.clientWidth)-i),{width:i,height:s,x:l,y:c}}const Yt=25;function no(e,t){const o=k(e),n=W(e),i=o.visualViewport;let s=n.clientWidth,l=n.clientHeight,c=0,r=0;if(i){s=i.width,l=i.height;const u=it();(!u||u&&t==="fixed")&&(c=i.offsetLeft,r=i.offsetTop)}const a=We(n);if(a<=0){const u=n.ownerDocument,f=u.body,h=getComputedStyle(f),p=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,d=Math.abs(n.clientWidth-f.clientWidth-p);d<=Yt&&(s-=d)}else a<=Yt&&(s+=a);return{width:s,height:l,x:c,y:r}}function oo(e,t){const o=J(e,!0,t==="fixed"),n=o.top+e.clientTop,i=o.left+e.clientLeft,s=H(e)?ae(e):F(1),l=e.clientWidth*s.x,c=e.clientHeight*s.y,r=i*s.x,a=n*s.y;return{width:l,height:c,x:r,y:a}}function Gt(e,t,o){let n;if(t==="viewport")n=no(e,o);else if(t==="document")n=to(W(e));else if($(t))n=oo(t,o);else{const i=qt(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Pe(n)}function Zt(e,t){const o=U(e);return o===t||!$(o)||ce(o)?!1:P(o).position==="fixed"||Zt(o,t)}function io(e,t){const o=t.get(e);if(o)return o;let n=be(e,[],!1).filter(c=>$(c)&&re(c)!=="body"),i=null;const s=P(e).position==="fixed";let l=s?U(e):e;for(;$(l)&&!ce(l);){const c=P(l),r=ot(l);!r&&c.position==="fixed"&&(i=null),(s?!r&&!i:!r&&c.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||ve(l)&&!r&&Zt(e,l))?n=n.filter(u=>u!==l):i=c,l=U(l)}return t.set(e,n),n}function so(e){let{element:t,boundary:o,rootBoundary:n,strategy:i}=e;const l=[...o==="clippingAncestors"?Me(t)?[]:io(t,this._c):[].concat(o),n],c=Gt(t,l[0],i);let r=c.top,a=c.right,u=c.bottom,f=c.left;for(let h=1;h<l.length;h++){const p=Gt(t,l[h],i);r=G(p.top,r),a=le(p.right,a),u=le(p.bottom,u),f=G(p.left,f)}return{width:a-f,height:u-r,x:f,y:r}}function lo(e){const{width:t,height:o}=Ut(e);return{width:t,height:o}}function ro(e,t,o){const n=H(t),i=W(t),s=o==="fixed",l=J(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const r=F(0);function a(){r.x=We(i)}if(n||!n&&!s)if((re(t)!=="body"||ve(i))&&(c=Fe(t)),n){const p=J(t,!0,s,t);r.x=p.x+t.clientLeft,r.y=p.y+t.clientTop}else i&&a();s&&!n&&i&&a();const u=i&&!n&&!s?Xt(i,c):F(0),f=l.left+c.scrollLeft-r.x-u.x,h=l.top+c.scrollTop-r.y-u.y;return{x:f,y:h,width:l.width,height:l.height}}function rt(e){return P(e).position==="static"}function Kt(e,t){if(!H(e)||P(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return W(e)===o&&(o=o.ownerDocument.body),o}function Jt(e,t){const o=k(e);if(Me(e))return o;if(!H(e)){let i=U(e);for(;i&&!ce(i);){if($(i)&&!rt(i))return i;i=U(i)}return o}let n=Kt(e,t);for(;n&&Xn(n)&&rt(n);)n=Kt(n,t);return n&&ce(n)&&rt(n)&&!ot(n)?o:n||Zn(e)||o}const co=async function(e){const t=this.getOffsetParent||Jt,o=this.getDimensions,n=await o(e.floating);return{reference:ro(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function ao(e){return P(e).direction==="rtl"}const ct={convertOffsetParentRelativeRectToViewportRelativeRect:Qn,getDocumentElement:W,getClippingRect:so,getOffsetParent:Jt,getElementRects:co,getClientRects:eo,getDimensions:lo,getScale:ae,isElement:$,isRTL:ao};function Qt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function fo(e,t){let o=null,n;const i=W(e);function s(){var c;clearTimeout(n),(c=o)==null||c.disconnect(),o=null}function l(c,r){c===void 0&&(c=!1),r===void 0&&(r=1),s();const a=e.getBoundingClientRect(),{left:u,top:f,width:h,height:p}=a;if(c||t(),!h||!p)return;const d=Le(f),w=Le(i.clientWidth-(u+h)),v=Le(i.clientHeight-(f+p)),m=Le(u),g={rootMargin:-d+"px "+-w+"px "+-v+"px "+-m+"px",threshold:G(0,le(1,r))||1};let x=!0;function b(S){const E=S[0].intersectionRatio;if(E!==r){if(!x)return l();E?l(!1,E):n=setTimeout(()=>{l(!1,1e-7)},1e3)}E===1&&!Qt(a,e.getBoundingClientRect())&&l(),x=!1}try{o=new IntersectionObserver(b,{...g,root:i.ownerDocument})}catch{o=new IntersectionObserver(b,g)}o.observe(e)}return l(!0),s}function uo(e,t,o,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:r=!1}=n,a=lt(e),u=i||s?[...a?be(a):[],...t?be(t):[]]:[];u.forEach(m=>{i&&m.addEventListener("scroll",o,{passive:!0}),s&&m.addEventListener("resize",o)});const f=a&&c?fo(a,o):null;let h=-1,p=null;l&&(p=new ResizeObserver(m=>{let[y]=m;y&&y.target===a&&p&&t&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var g;(g=p)==null||g.observe(t)})),o()}),a&&!r&&p.observe(a),t&&p.observe(t));let d,w=r?J(e):null;r&&v();function v(){const m=J(e);w&&!Qt(w,m)&&o(),w=m,d=requestAnimationFrame(v)}return o(),()=>{var m;u.forEach(y=>{i&&y.removeEventListener("scroll",o),s&&y.removeEventListener("resize",o)}),f?.(),(m=p)==null||m.disconnect(),p=null,r&&cancelAnimationFrame(d)}}const ho=Un,po=qn,mo=zn,go=Vn,yo=(e,t,o)=>{const n=new Map,i={platform:ct,...o},s={...i.platform,_c:n};return Hn(e,t,{...i,platform:s})};var xe;(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover"})(xe||(xe={}));function en(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const wo=/transform|translate|scale|rotate|perspective|filter/,vo=/paint|layout|strict|content/,Q=e=>!!e&&e!=="none";let at;function bo(e){const t=(o=e,typeof window<"u"&&(o instanceof Element||o instanceof en(o).Element)?en(n=e).getComputedStyle(n):e);var o,n;return Q(t.transform)||Q(t.translate)||Q(t.scale)||Q(t.rotate)||Q(t.perspective)||(at==null&&(at=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!at&&(Q(t.backdropFilter)||Q(t.filter)))||wo.test(t.willChange||"")||vo.test(t.contain||"")}function xo(e){return(function(t){for(let o=t;o;o=ft(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=ft(t);o;o=ft(o)){if(!(o instanceof Element))continue;const n=getComputedStyle(o);if(n.display!=="contents"&&(n.position!=="static"||bo(n)||o.tagName==="BODY"))return o}return null})(e)}function ft(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}const ue=class ue{constructor(t,o){this.el=t,this.config=o,this.offset=10,this.timeDelayBeforeFadingOut=50,this.popoverMainAxisEnabled=!0,this.currentPlacement=o.placement,this.cleanup=null}setCommonTimingConfig(){this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250}initialize(){this.setCommonTimingConfig(),this.floatingElement=this.el.shadowRoot?.querySelector(this.config.floatingElementSelector),this.floatingElement&&this.applyViewportMaxWidth(),this.arrowEl=this.config.showArrow!==!1&&this.config.arrowElementSelector?this.el.shadowRoot?.querySelector(this.config.arrowElementSelector):null,this.anchorElement=this.config.htmlFor?.length>0?document.getElementById(this.config.htmlFor):this.config.getAnchorElementFromSlot(this.el.shadowRoot),this.anchorElement?this.setupPositioning():console.warn("Could not determine the element associated with this floating element."+(this.config.htmlFor?.length>0?`Element with id=${this.config.htmlFor} could not be found on the DOM.`:""))}getAnchorElement(){return this.anchorElement}updateConfig(t){this.config={...this.config,...t},"showWithoutDelay"in t&&this.setCommonTimingConfig(),this.forceUpdate()}getConfig(){return this.config}getCurrentPlacement(){return this.currentPlacement||this.config.placement}reposition(){this.forceUpdate()}forceUpdate(){this.anchorElement&&this.floatingElement&&this.updatePosition()}setupPositioning(){this.anchorElement&&this.updatePosition()}setupAutoUpdate(){!this.cleanup&&this.anchorElement&&(this.cleanup=uo(this.anchorElement,this.floatingElement,(()=>{this.updatePosition()}),{ancestorScroll:!0,ancestorResize:!1,elementResize:!0,layoutShift:!0,animationFrame:!1}))}cleanupAutoUpdate(){this.cleanup&&(this.cleanup(),this.cleanup=null)}updatePosition(){if(!this.anchorElement)return;const t=[ho(this.offset)],o=mo({mainAxis:!0,crossAxis:!this.config.lockToMainAxis&&"alignment",fallbackAxisSideDirection:"end",padding:this.offset}),n=this.config.elementType===xe.POPOVER,i=po({padding:this.offset,mainAxis:this.config.elementType===xe.TOOLTIP||n&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.placement.includes("-")?t.push(o,i):t.push(i,o),this.config.showArrow!==!1&&this.arrowEl&&t.push(go({element:this.arrowEl,padding:this.offset})),yo(this.anchorElement,this.floatingElement,{placement:this.config.placement,strategy:"fixed",middleware:t,platform:{...ct,getOffsetParent:s=>ct.getOffsetParent(s,xo)}}).then((({x:s,y:l,middlewareData:c,placement:r})=>{if(n){const h=r.startsWith("left")||r.startsWith("right"),p=r.startsWith("top")||r.startsWith("bottom"),d=this.isAnchorInViewport(),w=!!p||(h?d:this.popoverMainAxisEnabled);if(w!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=w,void this.updatePosition()}this.currentPlacement=r,Object.assign(this.floatingElement.style,{left:`${s}px`,top:`${l}px`,position:"fixed",transition:`opacity ${this.timeOfAnimation}ms ease`});const a=r.split("-")[0]??"bottom",u={top:"bottom",right:"left",bottom:"top",left:"right"}[a],{arrowZIndex:f}=this.normalizeFloatingElementStacking();if(c.arrow&&this.arrowEl){const h=this.arrowEl.offsetWidth,{x:p,y:d}=c.arrow;this.arrowEl.style.borderRadius=`${["left","right"].includes(a)?"0 ":""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top","bottom"].includes(a)?" 0":""}`,Object.assign(this.arrowEl.style,{left:p!==null?`${p}px`:"",top:d!==null?`${d}px`:"",right:"",bottom:"",[u]:-h/2+"px",transform:"rotate(45deg)",zIndex:`${f}`,background:"var(--gidsFloatingElement-background)"})}}))}applyViewportMaxWidth(){const t=`calc(100vw - ${2*this.offset}px)`;this.floatingElement?.style.maxWidth!==t&&(this.floatingElement.style.maxWidth=t)}normalizeFloatingElementStacking(){const t=this.floatingElement.style.zIndex||(window.getComputedStyle?.(this.floatingElement).zIndex??""),o=Number.parseInt(t,10),n=Number.isNaN(o)?-1:o-1,i=Number.isNaN(o)?n+1:o;return Number.isNaN(i)||(this.floatingElement.style.zIndex=`${i}`),Array.from(this.floatingElement.children).forEach((s=>{if(!(s instanceof HTMLElement)||s===this.arrowEl)return;const l=s.style.zIndex||(window.getComputedStyle?.(s).zIndex??""),c=Number.parseInt(l,10),r=window.getComputedStyle?.(s).position??"";(l===""||l==="auto"||Number.isNaN(c)||c<i)&&(s.style.zIndex=`${i}`,r!==""&&r!=="static"||(s.style.position="relative"))})),{contentZIndex:i,arrowZIndex:n}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),ue.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const t=ue.currentFloatingElements.get(this.config.elementType);t&&t.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),ue.currentFloatingElements.set(this.config.elementType,this)}isVisible(){return this.floatingElement.classList.contains(this.config.visibilityClass)}show(){this.setupAutoUpdate(),this.showFloatingElement()}hide(){this.cleanupAutoUpdate(),this.hideFloatingElement()}toggle(){this.isVisible()?this.hide():this.show()}showAfterDelay(){clearTimeout(this.hoverOutTimeout),this.hoverTimeout=setTimeout((()=>{this.show()}),this.timeBeforeElementShows)}hideAfterDelay(){clearTimeout(this.hoverTimeout),this.hoverOutTimeout=setTimeout((()=>{this.hide()}),this.timeDelayBeforeFadingOut)}cancelDelayedActions(){clearTimeout(this.hoverTimeout),clearTimeout(this.hoverOutTimeout)}destroy(){this.cleanupAutoUpdate(),this.cancelDelayedActions()}isAnchorInViewport(){if(!(this.anchorElement&&this.anchorElement instanceof Element))return!1;const t=this.anchorElement.getBoundingClientRect(),o=window.innerHeight||document.documentElement?.clientHeight||0,n=window.innerWidth||document.documentElement?.clientWidth||0,i=t.height/2+2*this.offset;return t.bottom>=i&&t.top<=o-i&&t.right>=0&&t.left<=n}};ue.currentFloatingElements=new Map;let ut=ue;const fe=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let tn=!1;fe&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(fe):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let dt=null;const ht=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{nn()})):void 0,nn=()=>{if(fe===void 0)return!1;const e=(()=>{if(fe===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const n=document.styleSheets.item(o);if(n)try{let i=-1,s=0;for(let l=0;l<n.cssRules.length;l++){const c=n.cssRules.item(l);if(c?.cssText.startsWith("gids-global-styles-start"))i=l;else if(i>-1){if(c?.cssText.startsWith("gids-global-styles-end")){s=l-i+1;break}t.push(c)}}if(i>-1)return{rulesStartIndex:i,originalRulesCount:s,rules:t,styleSheet:n}}catch(i){if(!(i instanceof DOMException))throw i}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return ht!==void 0&&t!==dt&&(dt&&ht.disconnect(),t instanceof Element&&ht.observe(t,{childList:!0,characterData:!0,subtree:!0}),dt=t),fe.replaceSync((o=>o.rules.map((n=>n.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:n,originalRulesCount:i,styleSheet:s}=o;for(let l=0;l<i;l++)s.deleteRule(n)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},So=()=>(tn||(tn=nn()),fe),on=Nn(class extends rn{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.showWithoutDelay=!1,this.lockToMainAxis=!1,this.handleShowEvent=()=>{this.floatingElementManager.showAfterDelay()},this.handleHideEvent=()=>{this.floatingElementManager.hideAfterDelay()}}connectedCallback(){const e=So();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this.floatingElementManager=new ut(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:this.showWithoutDelay,lockToMainAxis:this.lockToMainAxis,floatingElementSelector:"#tooltip",arrowElementSelector:"#arrow",visibilityClass:"gids-tooltip--visible",elementType:xe.TOOLTIP,getAnchorElementFromSlot:e=>e.querySelector("slot")?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("mouseenter",this.handleShowEvent),e.addEventListener("focus",this.handleShowEvent),e.addEventListener("mouseleave",this.handleHideEvent),e.addEventListener("blur",this.handleHideEvent))}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}showWithoutDelayChanged(e){this.floatingElementManager?.updateConfig({showWithoutDelay:e})}lockToMainAxisChanged(e){this.floatingElementManager?.updateConfig({lockToMainAxis:e})}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&(e.removeEventListener("mouseenter",this.handleShowEvent),e.removeEventListener("focus",this.handleShowEvent),e.removeEventListener("mouseleave",this.handleHideEvent),e.removeEventListener("blur",this.handleHideEvent))}render(){return ie(Rn,{key:"49747828eaa09ead2d1e2f6d9d28b66c2db76103"},ie("slot",{key:"9ad53320553f1377f01f026a95f7cb894d91c98a"}),ie("span",{key:"6116e418faa09d82975a3830f7e0bedcbdd8e87f",id:"tooltip",part:"tooltip",role:"tooltip"},ie("span",{key:"677d275b2e161441d76315c50a60a941d6dd010a",id:"arrow"}),this.tooltipText))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],showWithoutDelay:[{showWithoutDelayChanged:0}],lockToMainAxis:[{lockToMainAxisChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-tooltip{--gidsTooltip-background:var(--gids-color-background-neutral-bold-default);--gidsTooltip-text-color:var(--gids-color-text-inverse);--gidsTooltip-padding:var(--gids-padding-vertical-edge-to-element-100) var(--gids-padding-horizontal-edge-to-element-200);--gidsTooltip-border-radius:var(--gids-border-radius-sm);--gidsTooltip-tip-border-radius:2px;--gidsTooltip-tip-size:12px;--gidsFloatingElement-background:var(--gidsTooltip-background);--gidsFloatingElement-tip-border-radius:var(--gidsTooltip-tip-border-radius)}[part=tooltip]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;hyphens:auto;background-color:var(--gidsTooltip-background);color:var(--gidsTooltip-text-color);padding:var(--gidsTooltip-padding);border-radius:var(--gidsTooltip-border-radius);z-index:1000;opacity:0;pointer-events:none}[part=tooltip].gids-tooltip--visible{pointer-events:initial;opacity:1}[part=tooltip] span#arrow{position:absolute;height:var(--gidsTooltip-tip-size);width:var(--gidsTooltip-tip-size)}"}},[257,"gids-tooltip",{htmlFor:[513,"for"],tooltipText:[513,"tooltip-text"],placement:[513],showWithoutDelay:[516,"show-without-delay"],lockToMainAxis:[4,"lock-to-main-axis"]},void 0,{placement:[{placementChanged:0}],showWithoutDelay:[{showWithoutDelayChanged:0}],lockToMainAxis:[{lockToMainAxisChanged:0}],htmlFor:[{htmlForChanged:0}]}]);function sn(){typeof customElements<"u"&&["gids-tooltip"].forEach((e=>{e==="gids-tooltip"&&(customElements.get(e)||customElements.define(e,on))}))}sn();const Eo=on,Oo=sn;X.GidsTooltip=Eo,X.defineCustomElement=Oo,Object.defineProperty(X,Symbol.toStringTag,{value:"Module"})}));
@@ -1,5 +1,5 @@
1
- (function(b,L){typeof exports=="object"&&typeof module<"u"?L(exports):typeof define=="function"&&define.amd?define(["exports"],L):(b=typeof globalThis<"u"?globalThis:b||self,L(b.gidsCoreWebIndex={}))})(this,(function(b){"use strict";var L=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},oe=(e,t)=>t in e,le="http://www.w3.org/1999/xlink",O=typeof window<"u"?window:{},A={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)};(()=>{try{return!!O.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})();var _e=e=>{const t=new URL(e,A.u);return t.origin!==O.location.origin?t.href:t.pathname},we=e=>A.u=e,ie=e=>{const t=Y(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&K(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!Ae(s,R(s),!1).length)}));let n=0;for(n=0;n<t.length;n++){const s=t[n];s.nodeType===1&&Y(s,"childNodes").length&&ie(s)}};function K(e,t,n){let s,o=0,l=[];for(;o<e.length;o++){if(s=e[o],s["s-sr"]&&(!t||s["s-hn"]===t)&&(n===void 0||R(s)===n)&&(l.push(s),n!==void 0))return l;l=[...l,...K(s.childNodes,t,n)]}return l}var Ae=(e,t,n=!0)=>{const s=[];(n&&e["s-sr"]||!e["s-sr"])&&s.push(e);let o=e;for(;o=o.nextSibling;)R(o)!==t||!n&&o["s-sr"]||s.push(o);return s},re=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",R=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function Y(e,t){if("__"+t in e){const n=e["__"+t];return typeof n!="function"?n:n.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var z,k,ae=e=>(e=typeof e)=="object"||e==="function",Oe=(e,t,...n)=>{let s=null,o=null,l=null,a=!1,u=!1;const r=[],c=g=>{for(let f=0;f<g.length;f++)s=g[f],Array.isArray(s)?c(s):s!=null&&typeof s!="boolean"&&((a=!ae(s))&&(s=String(s)),a&&u?r[r.length-1].h+=s:r.push(a?H(null,s):s),u=a)};c(n);const d=H(e,null);return d.v=t,r.length>0&&(d.m=r),d.$=o,d.j=l,d},H=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),Te={},ue=(e,t,n,s,o,l)=>{if(n===s)return;let a=oe(e,t),u=t.toLowerCase();if(t==="class"){const r=e.classList,c=de(n);let d=de(s);r.remove(...c.filter((g=>g&&!d.includes(g)))),r.add(...d.filter((g=>g&&!c.includes(g))))}else if(t==="style"){for(const r in n)s&&s[r]!=null||(r.includes("-")?e.style.removeProperty(r):e.style[r]="");for(const r in s)n&&s[r]===n[r]||(r.includes("-")?e.style.setProperty(r,s[r]):e.style[r]=s[r])}else if(t!=="key"){if(t==="ref")s&&$e(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const r=t.slice(5);let c;{const d=L(e);if(d&&d.o&&d.o.t){const g=d.o.t[r];g&&g[1]&&(c=g[1])}}return c||(c=r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const r=t.slice(5);try{e[r]=s}catch{}return}{const r=ae(s);if((a||r&&s!==null)&&!o)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const d=s??"";t==="list"?a=!1:n!=null&&e[t]===d||(typeof e.__lookupSetter__(t)=="function"?e[t]=d:e.setAttribute(t,d))}}catch{}let c=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(t=u,c=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(le,t):e.removeAttribute(t)):(!a||4&l||o)&&!r&&e.nodeType===1&&(s=s===!0?"":s,c?e.setAttributeNS(le,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):oe(O,u)?u.slice(2):u[2]+t.slice(3),n||s){const r=t.endsWith(ce);t=t.replace(Pe,""),n&&A.rel(e,t,n,r),s&&A.ael(e,t,s,r)}}},Ee=/\s/,de=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(Ee):[]),ce="Capture",Pe=new RegExp(ce+"$"),Z=(e,t,n)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,o=e&&e.v||{},l=t.v||{};for(const a of fe(Object.keys(o)))a in l||ue(s,a,o[a],void 0,n,t.i);for(const a of fe(Object.keys(l)))ue(s,a,o[a],l[a],n,t.i)};function fe(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var B=!1,W=!1,D=!1,_=!1,q=[],J=[],I=(e,t,n)=>{var s;const o=t.m[n];let l,a,u,r=0;if(B||(D=!0,o.O==="slot"&&(o.i|=o.m?2:1)),o.h!=null)l=o.S=O.document.createTextNode(o.h);else if(1&o.i)l=o.S=O.document.createTextNode(""),Z(null,o,_);else{if(_||(_=o.O==="svg"),!O.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=o.S=O.document.createElementNS(_?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!B&&2&o.i?"slot-fb":o.O),_&&o.O==="foreignObject"&&(_=!1),Z(null,o,_),o.m){const c=o.O==="template"?l.content:l;for(r=0;r<o.m.length;++r)a=I(e,o,r),a&&c.appendChild(a)}o.O==="svg"?_=!1:l.tagName==="foreignObject"&&(_=!0)}return l["s-hn"]=k,3&o.i&&(l["s-sr"]=!0,l["s-cr"]=z,l["s-sn"]=o.j||"",l["s-rf"]=(s=o.v)==null?void 0:s.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const d=g=>(function(f){const h=[],i=this["s-sn"];f?.flatten&&console.error(`
1
+ (function(y,x){typeof exports=="object"&&typeof module<"u"?x(exports):typeof define=="function"&&define.amd?define(["exports"],x):(y=typeof globalThis<"u"?globalThis:y||self,x(y.gidsCoreWebIndex={}))})(this,(function(y){"use strict";var x=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},oe=(e,t)=>t in e,le="http://www.w3.org/1999/xlink",A=typeof window<"u"?window:{},w={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)};(()=>{try{return!!A.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})();var _e=e=>{const t=new URL(e,w.u);return t.origin!==A.location.origin?t.href:t.pathname},Te=e=>w.u=e,ie=e=>{const t=K(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&H(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!we(s,L(s),!1).length)}));let n=0;for(n=0;n<t.length;n++){const s=t[n];s.nodeType===1&&K(s,"childNodes").length&&ie(s)}};function H(e,t,n){let s,o=0,l=[];for(;o<e.length;o++){if(s=e[o],s["s-sr"]&&(!t||s["s-hn"]===t)&&(n===void 0||L(s)===n)&&(l.push(s),n!==void 0))return l;l=[...l,...H(s.childNodes,t,n)]}return l}var we=(e,t,n=!0)=>{const s=[];(n&&e["s-sr"]||!e["s-sr"])&&s.push(e);let o=e;for(;o=o.nextSibling;)L(o)!==t||!n&&o["s-sr"]||s.push(o);return s},re=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",L=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function K(e,t){if("__"+t in e){const n=e["__"+t];return typeof n!="function"?n:n.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var J,k,ae=e=>(e=typeof e)=="object"||e==="function",Ae=(e,t,...n)=>{let s=null,o=null,l=null,a=!1,d=!1;const r=[],u=S=>{for(let f=0;f<S.length;f++)s=S[f],Array.isArray(s)?u(s):s!=null&&typeof s!="boolean"&&((a=!ae(s))&&(s=String(s)),a&&d?r[r.length-1].h+=s:r.push(a?X(null,s):s),d=a)};u(n);const c=X(e,null);return c.v=t,r.length>0&&(c.m=r),c.$=o,c.j=l,c},X=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),Oe={},de=(e,t,n,s,o,l)=>{if(n===s)return;let a=oe(e,t),d=t.toLowerCase();if(t==="class"){const r=e.classList,u=ce(n);let c=ce(s);r.remove(...u.filter((S=>S&&!c.includes(S)))),r.add(...c.filter((S=>S&&!u.includes(S))))}else if(t==="style"){for(const r in n)s&&s[r]!=null||(r.includes("-")?e.style.removeProperty(r):e.style[r]="");for(const r in s)n&&s[r]===n[r]||(r.includes("-")?e.style.setProperty(r,s[r]):e.style[r]=s[r])}else if(t!=="key"){if(t==="ref")s&&Pe(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const r=t.slice(5);let u;{const c=x(e);if(c&&c.o&&c.o.t){const S=c.o.t[r];S&&S[1]&&(u=S[1])}}return u||(u=r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(u)!==""||e.removeAttribute(u):e.setAttribute(u,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const r=t.slice(5);try{e[r]=s}catch{}return}{const r=ae(s);if((a||r&&s!==null)&&!o)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const c=s??"";t==="list"?a=!1:n!=null&&e[t]===c||(typeof e.__lookupSetter__(t)=="function"?e[t]=c:e.setAttribute(t,c))}}catch{}let u=!1;d!==(d=d.replace(/^xlink\:?/,""))&&(t=d,u=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(u?e.removeAttributeNS(le,t):e.removeAttribute(t)):(!a||4&l||o)&&!r&&e.nodeType===1&&(s=s===!0?"":s,u?e.setAttributeNS(le,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):oe(A,d)?d.slice(2):d[2]+t.slice(3),n||s){const r=t.endsWith(ue);t=t.replace($e,""),n&&w.rel(e,t,n,r),s&&w.ael(e,t,s,r)}}},Ee=/\s/,ce=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(Ee):[]),ue="Capture",$e=new RegExp(ue+"$"),Y=(e,t,n)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,o=e&&e.v||{},l=t.v||{};for(const a of fe(Object.keys(o)))a in l||de(s,a,o[a],void 0,n,t.i);for(const a of fe(Object.keys(l)))de(s,a,o[a],l[a],n,t.i)};function fe(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var B=!1,I=!1,V=!1,_=!1,z=[],Z=[],W=(e,t,n)=>{var s;const o=t.m[n];let l,a,d,r=0;if(B||(V=!0,o.O==="slot"&&(o.i|=o.m?2:1)),o.h!=null)l=o.S=A.document.createTextNode(o.h);else if(1&o.i)l=o.S=A.document.createTextNode(""),Y(null,o,_);else{if(_||(_=o.O==="svg"),!A.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=o.S=A.document.createElementNS(_?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!B&&2&o.i?"slot-fb":o.O),_&&o.O==="foreignObject"&&(_=!1),Y(null,o,_),o.m){const u=o.O==="template"?l.content:l;for(r=0;r<o.m.length;++r)a=W(e,o,r),a&&u.appendChild(a)}o.O==="svg"?_=!1:l.tagName==="foreignObject"&&(_=!0)}return l["s-hn"]=k,3&o.i&&(l["s-sr"]=!0,l["s-cr"]=J,l["s-sn"]=o.j||"",l["s-rf"]=(s=o.v)==null?void 0:s.ref,(function(u){if(u.assignedElements||u.assignedNodes||!u["s-sr"])return;const c=S=>(function(f){const h=[],i=this["s-sn"];f?.flatten&&console.error(`
2
2
  Flattening is not supported for Stencil non-shadow slots.
3
3
  You can use \`.childNodes\` to nested slot fallback content.
4
4
  If you have a particular use case, please open an issue on the Stencil repo.
5
- `);const v=this["s-cr"].parentElement;return(v.__childNodes?v.childNodes:(y=>{const m=[];for(let S=0;S<y.length;S++){const p=y[S]["s-nr"]||void 0;p&&p.isConnected&&m.push(p)}return m})(v.childNodes)).forEach((y=>{i===R(y)&&h.push(y)})),g?h.filter((y=>y.nodeType===1)):h}).bind(c);c.assignedElements=d(!0),c.assignedNodes=d(!1)})(l),u=e&&e.m&&e.m[n],u&&u.O===o.O&&e.S&&he(e.S)),l},he=e=>{A.i|=1;const t=e.closest(k.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((o=>o["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const o of n?s.reverse():s)o["s-sh"]!=null&&(E(t,o,n??null),o["s-sh"]=void 0,D=!0)}A.i&=-2},F=(e,t)=>{A.i|=1;const n=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===k&&n.push(s)}for(let s=n.length-1;s>=0;s--){const o=n[s];o["s-hn"]!==k&&o["s-ol"]&&(E(M(o).parentNode,o,M(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,D=!0),t&&F(o,t)}A.i&=-2},pe=(e,t,n,s,o,l)=>{let a,u=e["s-cr"]&&e["s-cr"].parentNode||e;for(u.shadowRoot&&u.tagName===k&&(u=u.shadowRoot),n.O==="template"&&(u=u.content);o<=l;++o)s[o]&&(a=I(null,n,o),a&&(s[o].S=a,E(u,a,M(t))))},Se=(e,t,n)=>{for(let s=t;s<=n;++s){const o=e[s];if(o){const l=o.S;me(o),l&&(W=!0,l["s-ol"]?l["s-ol"].remove():F(l,!0),l.remove())}}},V=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),M=e=>e&&e["s-ol"]||e,x=(e,t,n=!1)=>{const s=t.S=e.S,o=e.m,l=t.m,a=t.O,u=t.h;let r;u==null?(_=a==="svg"||a!=="foreignObject"&&_,a!=="slot"||B||e.j!==t.j&&(t.S["s-sn"]=t.j||"",he(t.S.parentElement)),Z(e,t,_),o!==null&&l!==null?((c,d,g,f,h=!1)=>{let i,v,y=0,m=0,S=0,p=0,j=d.length-1,N=d[0],T=d[j],C=f.length-1,w=f[0],P=f[C];const Ne=g.O==="template"?c.content:c;for(;y<=j&&m<=C;)if(N==null)N=d[++y];else if(T==null)T=d[--j];else if(w==null)w=f[++m];else if(P==null)P=f[--C];else if(V(N,w,h))x(N,w,h),N=d[++y],w=f[++m];else if(V(T,P,h))x(T,P,h),T=d[--j],P=f[--C];else if(V(N,P,h))N.O!=="slot"&&P.O!=="slot"||F(N.S.parentNode,!1),x(N,P,h),E(Ne,N.S,T.S.nextSibling),N=d[++y],P=f[--C];else if(V(T,w,h))N.O!=="slot"&&P.O!=="slot"||F(T.S.parentNode,!1),x(T,w,h),E(Ne,T.S,N.S),T=d[--j],w=f[++m];else{for(S=-1,p=y;p<=j;++p)if(d[p]&&d[p].$!==null&&d[p].$===w.$){S=p;break}S>=0?(v=d[S],v.O!==w.O?i=I(d&&d[m],g,S):(x(v,w,h),d[S]=void 0,i=v.S),w=f[++m]):(i=I(d&&d[m],g,m),w=f[++m]),i&&E(M(N.S).parentNode,i,M(N.S))}y>j?pe(c,f[C+1]==null?null:f[C+1].S,g,f,m,C):m>C&&Se(d,y,j)})(s,o,t,l,n):l!==null?(e.h!==null&&(s.textContent=""),pe(s,null,t,l,0,l.length-1)):!n&&o!==null&&Se(o,0,o.length-1),_&&a==="svg"&&(_=!1)):(r=s["s-cr"])?r.parentNode.textContent=u:e.h!==u&&(s.data=u)},$=[],ge=e=>{let t,n,s;const o=e.__childNodes||e.childNodes;for(const l of o){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const a=l["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(re(t,a)){let u=$.find((r=>r.k===t));W=!0,t["s-sn"]=t["s-sn"]||a,u?(u.k["s-sh"]=l["s-hn"],u.N=l):(t["s-sh"]=l["s-hn"],$.push({N:l,k:t})),t["s-sr"]&&$.map((r=>{re(r.k,t["s-sn"])&&(u=$.find((c=>c.k===t)),u&&!r.N&&(r.N=u.N))}))}else $.some((u=>u.k===t))||$.push({k:t})}l.nodeType===1&&ge(l)}},me=e=>{e.v&&e.v.ref&&q.push((()=>e.v.ref(null))),e.m&&e.m.map(me)},$e=(e,t)=>{J.push((()=>e(t)))},E=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:o}=(function(l,a){var u;if(!(a=a||((u=l["s-ol"])==null?void 0:u.parentElement)))return{slotNode:null,slotName:""};const r=l["s-sn"]=R(l)||"";return{slotNode:K(Y(a,"childNodes"),a.tagName,r)[0],slotName:r}})(t);return o&&!s&&o.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},Ce=(e,t,n=!1)=>{var s,o,l,a,u;const r=e.$hostElement$,c=e.o,d=e.M||H(null,null);var g;const f=(g=t)&&g.O===Te?t:Oe(null,null,t);if(k=r.tagName,c._&&(f.v=f.v||{},c._.forEach((([h,i])=>{f.v[i]=r[h]}))),n&&f.v)for(const h of Object.keys(f.v))r.hasAttribute(h)&&!["key","ref","style","class"].includes(h)&&(f.v[h]=r[h]);if(f.O=null,f.i|=4,e.M=f,f.S=d.S=r.shadowRoot||r,B=!(!(1&c.i)||128&c.i),z=r["s-cr"],W=!1,x(d,f,n),A.i|=1,D){ge(f.S);for(const h of $){const i=h.k;if(!i["s-ol"]&&O.document){const v=O.document.createTextNode("");v["s-nr"]=i,E(i.parentNode,i["s-ol"]=v,i,n)}}for(const h of $){const i=h.k,v=h.N;if(i.nodeType===1&&n&&(i["s-ih"]=(s=i.hidden)!=null&&s),v){const y=v.parentNode;let m=v.nextSibling;if(m&&m.nodeType===1){let S=(o=i["s-ol"])==null?void 0:o.previousSibling;for(;S;){let p=(l=S["s-nr"])!=null?l:null;if(p&&p["s-sn"]===i["s-sn"]&&y===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===i||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){m=p;break}}S=S.previousSibling}}if((!m&&y!==(i.__parentNode||i.parentNode)||(i.__nextSibling||i.nextSibling)!==m)&&i!==m){if(E(y,i,m,n),i.nodeType===8&&i.nodeValue.startsWith("s-nt-")){const S=O.document.createTextNode(i.nodeValue.replace(/^s-nt-/,""));S["s-hn"]=i["s-hn"],S["s-sn"]=i["s-sn"],S["s-sh"]=i["s-sh"],S["s-sr"]=i["s-sr"],S["s-ol"]=i["s-ol"],S["s-ol"]["s-nr"]=S,E(i.parentNode,S,i,n),i.parentNode.removeChild(i)}i.nodeType===1&&i.tagName!=="SLOT-FB"&&(i.hidden=(a=i["s-ih"])!=null&&a)}i&&typeof v["s-rf"]=="function"&&v["s-rf"](v)}else i.nodeType===1&&(i.hidden=!0)}}if(W&&ie(f.S),A.i&=-2,$.length=0,!B&&!(1&c.i)&&r["s-cr"]){const h=f.S.__childNodes||f.S.childNodes;for(const i of h)if(i["s-hn"]!==k&&!i["s-sh"]){if(n&&i["s-ih"]==null&&(i["s-ih"]=(u=i.hidden)!=null&&u),i.nodeType===1)i.hidden=!0;else if(i.nodeType===3&&i.nodeValue.trim()){const v=O.document.createComment("s-nt-"+i.nodeValue);v["s-sn"]=i["s-sn"],E(i.parentNode,v,i,n),i.parentNode.removeChild(i)}}}z=void 0,q.forEach((h=>h())),q.length=0,J.forEach((h=>h())),J.length=0},je=e=>A.L=e,ke=e=>Object.assign(A,e),ve=new WeakMap;function xe(e,t){let n=ve.get(t);n||(n={i:0,o:{i:0,p:t.tagName},$hostElement$:t},ve.set(t,n)),Ce(n,e)}const G=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let ye=!1;G&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(G):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let Q=null;const U=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{X()})):void 0,X=()=>{if(G===void 0)return!1;const e=(()=>{if(G===void 0)return;const t=[];for(let n=0;n<document.styleSheets.length;n++){const s=document.styleSheets.item(n);if(s)try{let o=-1,l=0;for(let a=0;a<s.cssRules.length;a++){const u=s.cssRules.item(a);if(u?.cssText.startsWith("gids-global-styles-start"))o=a;else if(o>-1){if(u?.cssText.startsWith("gids-global-styles-end")){l=a-o+1;break}t.push(u)}}if(o>-1)return{rulesStartIndex:o,originalRulesCount:l,rules:t,styleSheet:s}}catch(o){if(!(o instanceof DOMException))throw o}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return U!==void 0&&t!==Q&&(Q&&U.disconnect(),t instanceof Element&&U.observe(t,{childList:!0,characterData:!0,subtree:!0}),Q=t),G.replaceSync((n=>n.rules.map((s=>s.cssText)).join(""))(e)),(n=>{const{rulesStartIndex:s,originalRulesCount:o,styleSheet:l}=n;for(let a=0;a<o;a++)l.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Ge=()=>(ye||(ye=X()),G),ee=Symbol("defaultPath"),be=Symbol("pathSet"),te="gids-asset-paths-set";class Le extends EventTarget{#s=new Map;constructor(){super()}#e(t,n){this.#s.set(t,n)}#t(t){return this.#s.get(t)??null}#n=()=>{this.dispatchEvent(new Event(te))};haveAssetPathsBeenSet(){return this.#t(be)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(ee,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(ee,n)}this.#e(be,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const n=this.#t(t);if(n===null){const s=this.#t(ee);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(te,t,{once:!0}),()=>{this.removeEventListener(te,t)}}}const se=Symbol.for("GIDS"),Re=()=>(globalThis[se]===void 0&&(globalThis[se]={assetPaths:{}}),globalThis[se]),Be=e=>{const t=Re().assetPaths;return t[e]===void 0&&(t[e]=new Le),t[e]};function Me(){return Be("@ganpatiinfo/gids-web-shared")}function We(e,t){Me().setAssetPaths(e,t)}function ne(e,t){We(e,t)}const De=e=>{ne(e)},Ie=e=>{ne(e)};b.getAssetPath=_e,b.getConstructedGidsStylesheet=Ge,b.refreshConstructedGidsStylesheet=X,b.render=xe,b.setAssetPath=we,b.setGidsAssetFilePaths=De,b.setGidsAssetPaths=ne,b.setGidsDefaultAssetDirPath=Ie,b.setNonce=je,b.setPlatformOptions=ke,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})}));
5
+ `);const v=this["s-cr"].parentElement;return(v.__childNodes?v.childNodes:(b=>{const m=[];for(let g=0;g<b.length;g++){const p=b[g]["s-nr"]||void 0;p&&p.isConnected&&m.push(p)}return m})(v.childNodes)).forEach((b=>{i===L(b)&&h.push(b)})),S?h.filter((b=>b.nodeType===1)):h}).bind(u);u.assignedElements=c(!0),u.assignedNodes=c(!1)})(l),d=e&&e.m&&e.m[n],d&&d.O===o.O&&e.S&&he(e.S)),l},he=e=>{w.i|=1;const t=e.closest(k.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((o=>o["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const o of n?s.reverse():s)o["s-sh"]!=null&&(E(t,o,n??null),o["s-sh"]=void 0,V=!0)}w.i&=-2},F=(e,t)=>{w.i|=1;const n=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===k&&n.push(s)}for(let s=n.length-1;s>=0;s--){const o=n[s];o["s-hn"]!==k&&o["s-ol"]&&(E(M(o).parentNode,o,M(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,V=!0),t&&F(o,t)}w.i&=-2},pe=(e,t,n,s,o,l)=>{let a,d=e["s-cr"]&&e["s-cr"].parentNode||e;for(d.shadowRoot&&d.tagName===k&&(d=d.shadowRoot),n.O==="template"&&(d=d.content);o<=l;++o)s[o]&&(a=W(null,n,o),a&&(s[o].S=a,E(d,a,M(t))))},ge=(e,t,n)=>{for(let s=t;s<=n;++s){const o=e[s];if(o){const l=o.S;me(o),l&&(I=!0,l["s-ol"]?l["s-ol"].remove():F(l,!0),l.remove())}}},D=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),M=e=>e&&e["s-ol"]||e,G=(e,t,n=!1)=>{const s=t.S=e.S,o=e.m,l=t.m,a=t.O,d=t.h;let r;d==null?(_=a==="svg"||a!=="foreignObject"&&_,a!=="slot"||B||e.j!==t.j&&(t.S["s-sn"]=t.j||"",he(t.S.parentElement)),Y(e,t,_),o!==null&&l!==null?((u,c,S,f,h=!1)=>{let i,v,b=0,m=0,g=0,p=0,j=c.length-1,N=c[0],O=c[j],C=f.length-1,T=f[0],$=f[C];const Ne=S.O==="template"?u.content:u;for(;b<=j&&m<=C;)if(N==null)N=c[++b];else if(O==null)O=c[--j];else if(T==null)T=f[++m];else if($==null)$=f[--C];else if(D(N,T,h))G(N,T,h),N=c[++b],T=f[++m];else if(D(O,$,h))G(O,$,h),O=c[--j],$=f[--C];else if(D(N,$,h))N.O!=="slot"&&$.O!=="slot"||F(N.S.parentNode,!1),G(N,$,h),E(Ne,N.S,O.S.nextSibling),N=c[++b],$=f[--C];else if(D(O,T,h))N.O!=="slot"&&$.O!=="slot"||F(O.S.parentNode,!1),G(O,T,h),E(Ne,O.S,N.S),O=c[--j],T=f[++m];else{for(g=-1,p=b;p<=j;++p)if(c[p]&&c[p].$!==null&&c[p].$===T.$){g=p;break}g>=0?(v=c[g],v.O!==T.O?i=W(c&&c[m],S,g):(G(v,T,h),c[g]=void 0,i=v.S),T=f[++m]):(i=W(c&&c[m],S,m),T=f[++m]),i&&E(M(N.S).parentNode,i,M(N.S))}b>j?pe(u,f[C+1]==null?null:f[C+1].S,S,f,m,C):m>C&&ge(c,b,j)})(s,o,t,l,n):l!==null?(e.h!==null&&(s.textContent=""),pe(s,null,t,l,0,l.length-1)):!n&&o!==null&&ge(o,0,o.length-1),_&&a==="svg"&&(_=!1)):(r=s["s-cr"])?r.parentNode.textContent=d:e.h!==d&&(s.data=d)},P=[],Se=e=>{let t,n,s;const o=e.__childNodes||e.childNodes;for(const l of o){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const a=l["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(re(t,a)){let d=P.find((r=>r.k===t));I=!0,t["s-sn"]=t["s-sn"]||a,d?(d.k["s-sh"]=l["s-hn"],d.N=l):(t["s-sh"]=l["s-hn"],P.push({N:l,k:t})),t["s-sr"]&&P.map((r=>{re(r.k,t["s-sn"])&&(d=P.find((u=>u.k===t)),d&&!r.N&&(r.N=d.N))}))}else P.some((d=>d.k===t))||P.push({k:t})}l.nodeType===1&&Se(l)}},me=e=>{e.v&&e.v.ref&&z.push((()=>e.v.ref(null))),e.m&&e.m.map(me)},Pe=(e,t)=>{Z.push((()=>e(t)))},E=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:o}=(function(l,a){var d;if(!(a=a||((d=l["s-ol"])==null?void 0:d.parentElement)))return{slotNode:null,slotName:""};const r=l["s-sn"]=L(l)||"";return{slotNode:H(K(a,"childNodes"),a.tagName,r)[0],slotName:r}})(t);return o&&!s&&o.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},Ce=(e,t,n=!1)=>{var s,o,l,a,d;const r=e.$hostElement$,u=e.o,c=e.M||X(null,null);var S;const f=(S=t)&&S.O===Oe?t:Ae(null,null,t);if(k=r.tagName,u._&&(f.v=f.v||{},u._.forEach((([h,i])=>{f.v[i]=r[h]}))),n&&f.v)for(const h of Object.keys(f.v))r.hasAttribute(h)&&!["key","ref","style","class"].includes(h)&&(f.v[h]=r[h]);if(f.O=null,f.i|=4,e.M=f,f.S=c.S=r.shadowRoot||r,B=!(!(1&u.i)||128&u.i),J=r["s-cr"],I=!1,G(c,f,n),w.i|=1,V){Se(f.S);for(const h of P){const i=h.k;if(!i["s-ol"]&&A.document){const v=A.document.createTextNode("");v["s-nr"]=i,E(i.parentNode,i["s-ol"]=v,i,n)}}for(const h of P){const i=h.k,v=h.N;if(i.nodeType===1&&n&&(i["s-ih"]=(s=i.hidden)!=null&&s),v){const b=v.parentNode;let m=v.nextSibling;if(m&&m.nodeType===1){let g=(o=i["s-ol"])==null?void 0:o.previousSibling;for(;g;){let p=(l=g["s-nr"])!=null?l:null;if(p&&p["s-sn"]===i["s-sn"]&&b===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===i||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){m=p;break}}g=g.previousSibling}}if((!m&&b!==(i.__parentNode||i.parentNode)||(i.__nextSibling||i.nextSibling)!==m)&&i!==m){if(E(b,i,m,n),i.nodeType===8&&i.nodeValue.startsWith("s-nt-")){const g=A.document.createTextNode(i.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=i["s-hn"],g["s-sn"]=i["s-sn"],g["s-sh"]=i["s-sh"],g["s-sr"]=i["s-sr"],g["s-ol"]=i["s-ol"],g["s-ol"]["s-nr"]=g,E(i.parentNode,g,i,n),i.parentNode.removeChild(i)}i.nodeType===1&&i.tagName!=="SLOT-FB"&&(i.hidden=(a=i["s-ih"])!=null&&a)}i&&typeof v["s-rf"]=="function"&&v["s-rf"](v)}else i.nodeType===1&&(i.hidden=!0)}}if(I&&ie(f.S),w.i&=-2,P.length=0,!B&&!(1&u.i)&&r["s-cr"]){const h=f.S.__childNodes||f.S.childNodes;for(const i of h)if(i["s-hn"]!==k&&!i["s-sh"]){if(n&&i["s-ih"]==null&&(i["s-ih"]=(d=i.hidden)!=null&&d),i.nodeType===1)i.hidden=!0;else if(i.nodeType===3&&i.nodeValue.trim()){const v=A.document.createComment("s-nt-"+i.nodeValue);v["s-sn"]=i["s-sn"],E(i.parentNode,v,i,n),i.parentNode.removeChild(i)}}}J=void 0,z.forEach((h=>h())),z.length=0,Z.forEach((h=>h())),Z.length=0},je=e=>w.L=e,ke=e=>Object.assign(w,e),ve=new WeakMap;function Ge(e,t){let n=ve.get(t);n||(n={i:0,o:{i:0,p:t.tagName},$hostElement$:t},ve.set(t,n)),Ce(n,e)}const R=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let ye=!1;R&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(R):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let q=null;const Q=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{U()})):void 0,U=()=>{if(R===void 0)return!1;const e=(()=>{if(R===void 0)return;const t=[];for(let n=0;n<document.styleSheets.length;n++){const s=document.styleSheets.item(n);if(s)try{let o=-1,l=0;for(let a=0;a<s.cssRules.length;a++){const d=s.cssRules.item(a);if(d?.cssText.startsWith("gids-global-styles-start"))o=a;else if(o>-1){if(d?.cssText.startsWith("gids-global-styles-end")){l=a-o+1;break}t.push(d)}}if(o>-1)return{rulesStartIndex:o,originalRulesCount:l,rules:t,styleSheet:s}}catch(o){if(!(o instanceof DOMException))throw o}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return Q!==void 0&&t!==q&&(q&&Q.disconnect(),t instanceof Element&&Q.observe(t,{childList:!0,characterData:!0,subtree:!0}),q=t),R.replaceSync((n=>n.rules.map((s=>s.cssText)).join(""))(e)),(n=>{const{rulesStartIndex:s,originalRulesCount:o,styleSheet:l}=n;for(let a=0;a<o;a++)l.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Re=()=>(ye||(ye=U()),R),ee=Symbol("defaultPath"),be=Symbol("pathSet"),te="gids-asset-paths-set";class xe extends EventTarget{#s=new Map;constructor(){super()}#e(t,n){this.#s.set(t,n)}#t(t){return this.#s.get(t)??null}#n=()=>{this.dispatchEvent(new Event(te))};haveAssetPathsBeenSet(){return this.#t(be)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(ee,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(ee,n)}this.#e(be,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const n=this.#t(t);if(n===null){const s=this.#t(ee);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(te,t,{once:!0}),()=>{this.removeEventListener(te,t)}}}const se=Symbol.for("GIDS"),Le=()=>(globalThis[se]===void 0&&(globalThis[se]={assetPaths:{}}),globalThis[se]),Be=e=>{const t=Le().assetPaths;return t[e]===void 0&&(t[e]=new xe),t[e]};function Me(){return Be("@ganpatiinfo/gids-web-shared")}function Ie(e,t){Me().setAssetPaths(e,t)}y.GidsFloatingElementType=void 0,(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover"})(y.GidsFloatingElementType||(y.GidsFloatingElementType={}));function ne(e,t){Ie(e,t)}const Ve=e=>{ne(e)},We=e=>{ne(e)},Fe=({children:e,classNameToBeValidated:t,childrenToBeValidated:n,currentComponentName:s})=>{if(e!=null){const o=Array.isArray(e)?e:[e];for(const l of o){if(!l||typeof l!="object"||!("vtag"in l))throw Error(`HTML/JSX Render Error: Invalid child type passed to ${s}. Expected ${n}.`);{const a=l.vtag;if(a!==t&&a!==n)throw Error(`HTML/JSX Render Error: <${s}> only accepts <${n}> as direct children. Received element tag: "${typeof a=="function"?a.name:a}".`)}}}};y.getAssetPath=_e,y.getConstructedGidsStylesheet=Re,y.refreshConstructedGidsStylesheet=U,y.render=Ge,y.setAssetPath=Te,y.setGidsAssetFilePaths=Ve,y.setGidsAssetPaths=ne,y.setGidsDefaultAssetDirPath=We,y.setNonce=je,y.setPlatformOptions=ke,y.testHtmlChildrenValidity=Fe,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})}));