@nordhealth/components 1.0.0-beta.19 → 1.0.0-beta.21

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 (85) hide show
  1. package/custom-elements.json +2816 -2676
  2. package/lib/Avatar.js +1 -1
  3. package/lib/Badge.js +1 -1
  4. package/lib/Banner.js +1 -1
  5. package/lib/Button.js +1 -1
  6. package/lib/Button.js.map +1 -1
  7. package/lib/{Calendar-0fdddc93.js → Calendar-600fd148.js} +2 -2
  8. package/lib/{Calendar-0fdddc93.js.map → Calendar-600fd148.js.map} +1 -1
  9. package/lib/Calendar.js +1 -1
  10. package/lib/Card.js +1 -1
  11. package/lib/Checkbox.js +1 -1
  12. package/lib/CommandMenu.js +1 -1
  13. package/lib/CommandMenuAction.js +1 -1
  14. package/lib/{Component-6762b5eb.js → Component-9d373ef3.js} +2 -2
  15. package/lib/Component-9d373ef3.js.map +1 -0
  16. package/lib/DatePicker.js +1 -1
  17. package/lib/EmptyState.js +1 -1
  18. package/lib/Fieldset.js +1 -1
  19. package/lib/FocusableMixin-ebb67709.js +2 -0
  20. package/lib/{FocusableMixin-ca9d30fa.js.map → FocusableMixin-ebb67709.js.map} +1 -1
  21. package/lib/{FormAssociatedMixin-bfbbe389.js → FormAssociatedMixin-ccae91fd.js} +2 -2
  22. package/lib/{FormAssociatedMixin-bfbbe389.js.map → FormAssociatedMixin-ccae91fd.js.map} +1 -1
  23. package/lib/{FormField-e021be01.js → FormField-50bd73d5.js} +2 -2
  24. package/lib/FormField-50bd73d5.js.map +1 -0
  25. package/lib/Header.js +1 -1
  26. package/lib/Icon.js +1 -1
  27. package/lib/Icon.js.map +1 -1
  28. package/lib/Input.js +1 -1
  29. package/lib/Input.js.map +1 -1
  30. package/lib/Layout.js +1 -1
  31. package/lib/{LightDomController-f56fa1a4.js → LightDomController-011334da.js} +2 -2
  32. package/lib/{LightDomController-f56fa1a4.js.map → LightDomController-011334da.js.map} +1 -1
  33. package/lib/NavGroup.js +1 -1
  34. package/lib/NavItem.js +1 -1
  35. package/lib/Navigation.js +1 -1
  36. package/lib/ProgressBar.js +2 -0
  37. package/lib/ProgressBar.js.map +1 -0
  38. package/lib/Radio.js +1 -1
  39. package/lib/Radio.js.map +1 -1
  40. package/lib/Select.js +1 -1
  41. package/lib/Select.js.map +1 -1
  42. package/lib/Spinner.js +1 -1
  43. package/lib/Spinner.js.map +1 -1
  44. package/lib/Stack.js +1 -1
  45. package/lib/Table.js +1 -1
  46. package/lib/{TextField-d799db1a.js → TextField-ece1c786.js} +2 -2
  47. package/lib/TextField-ece1c786.js.map +1 -0
  48. package/lib/Textarea.js +1 -1
  49. package/lib/Tooltip.js +1 -1
  50. package/lib/VisuallyHidden.js +1 -1
  51. package/lib/bundle.js +9 -9
  52. package/lib/bundle.js.map +1 -1
  53. package/lib/{class-map-61e9e8c1.js → class-map-87423405.js} +2 -2
  54. package/lib/{class-map-61e9e8c1.js.map → class-map-87423405.js.map} +1 -1
  55. package/lib/if-defined-fe657a02.js +7 -0
  56. package/lib/{if-defined-2a4c6dbc.js.map → if-defined-fe657a02.js.map} +1 -1
  57. package/lib/index.js +1 -1
  58. package/lib/{lit-element-9646ab7e.js → lit-element-74b6bb4b.js} +3 -3
  59. package/lib/{lit-element-9646ab7e.js.map → lit-element-74b6bb4b.js.map} +1 -1
  60. package/lib/month-view.js +1 -1
  61. package/lib/number-3a8ef88a.js +7 -0
  62. package/lib/{number-02c91604.js.map → number-3a8ef88a.js.map} +1 -1
  63. package/lib/{ref-82d2502a.js → ref-7d028e3a.js} +3 -3
  64. package/lib/{ref-82d2502a.js.map → ref-7d028e3a.js.map} +1 -1
  65. package/lib/src/avatar/Avatar.test.d.ts +1 -1
  66. package/lib/src/banner/Banner.test.d.ts +3 -0
  67. package/lib/src/button/Button.d.ts +2 -2
  68. package/lib/src/header/Header.test.d.ts +1 -0
  69. package/lib/src/index.d.ts +1 -0
  70. package/lib/src/input/Input.d.ts +2 -2
  71. package/lib/src/layout/Layout.test.d.ts +2 -0
  72. package/lib/src/progress-bar/ProgressBar.d.ts +38 -0
  73. package/lib/src/progress-bar/ProgressBar.test.d.ts +3 -0
  74. package/lib/src/spinner/Spinner.d.ts +2 -4
  75. package/lib/src/stack/Stack.test.d.ts +2 -0
  76. package/lib/unsafe-html-989a642b.js +7 -0
  77. package/lib/{unsafe-html-4da54dd2.js.map → unsafe-html-989a642b.js.map} +1 -1
  78. package/package.json +3 -3
  79. package/lib/Component-6762b5eb.js.map +0 -1
  80. package/lib/FocusableMixin-ca9d30fa.js +0 -2
  81. package/lib/FormField-e021be01.js.map +0 -1
  82. package/lib/TextField-d799db1a.js.map +0 -1
  83. package/lib/if-defined-2a4c6dbc.js +0 -7
  84. package/lib/number-02c91604.js +0 -7
  85. package/lib/unsafe-html-4da54dd2.js +0 -7
package/lib/bundle.js CHANGED
@@ -28,13 +28,13 @@ function t(t,e,n,o){var i,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPro
28
28
  * Copyright 2017 Google LLC
29
29
  * SPDX-License-Identifier: BSD-3-Clause
30
30
  */
31
- var f;v.finalized=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},null==c||c({ReactiveElement:v}),(null!==(a=globalThis.reactiveElementVersions)&&void 0!==a?a:globalThis.reactiveElementVersions=[]).push("1.3.0");const b=globalThis.trustedTypes,g=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,m=`lit$${(Math.random()+"").slice(9)}$`,y="?"+m,x=`<${y}>`,w=document,$=(t="")=>w.createComment(t),k=t=>null===t||"object"!=typeof t&&"function"!=typeof t,z=Array.isArray,C=t=>{var e;return z(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])},_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,A=/-->/g,E=/>/g,D=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,S=/'/g,L=/"/g,M=/^(?:script|style|textarea|title)$/i,T=(t=>(e,...n)=>({_$litType$:t,strings:e,values:n}))(1),O=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),N=new WeakMap,R=(t,e,n)=>{var o,i;const r=null!==(o=null==n?void 0:n.renderBefore)&&void 0!==o?o:e;let s=r._$litPart$;if(void 0===s){const t=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:null;r._$litPart$=s=new j(e.insertBefore($(),t),t,void 0,null!=n?n:{})}return s._$AI(t),s},B=w.createTreeWalker(w,129,null,!1),P=(t,e)=>{const n=t.length-1,o=[];let i,r=2===e?"<svg>":"",s=_;for(let e=0;e<n;e++){const n=t[e];let a,l,d=-1,c=0;for(;c<n.length&&(s.lastIndex=c,l=s.exec(n),null!==l);)c=s.lastIndex,s===_?"!--"===l[1]?s=A:void 0!==l[1]?s=E:void 0!==l[2]?(M.test(l[2])&&(i=RegExp("</"+l[2],"g")),s=D):void 0!==l[3]&&(s=D):s===D?">"===l[0]?(s=null!=i?i:_,d=-1):void 0===l[1]?d=-2:(d=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?D:'"'===l[3]?L:S):s===L||s===S?s=D:s===A||s===E?s=_:(s=D,i=void 0);const h=s===D&&t[e+1].startsWith("/>")?" ":"";r+=s===_?n+x:d>=0?(o.push(a),n.slice(0,d)+"$lit$"+n.slice(d)+m+h):n+m+(-2===d?(o.push(void 0),e):h)}const a=r+(t[n]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==g?g.createHTML(a):a,o]};class U{constructor({strings:t,_$litType$:e},n){let o;this.parts=[];let i=0,r=0;const s=t.length-1,a=this.parts,[l,d]=P(t,e);if(this.el=U.createElement(l,n),B.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=B.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(m)){const n=d[r++];if(t.push(e),void 0!==n){const t=o.getAttribute(n.toLowerCase()+"$lit$").split(m),e=/([.?@])?(.*)/.exec(n);a.push({type:1,index:i,name:e[2],strings:t,ctor:"."===e[1]?W:"?"===e[1]?V:"@"===e[1]?Z:Y})}else a.push({type:6,index:i})}for(const e of t)o.removeAttribute(e)}if(M.test(o.tagName)){const t=o.textContent.split(m),e=t.length-1;if(e>0){o.textContent=b?b.emptyScript:"";for(let n=0;n<e;n++)o.append(t[n],$()),B.nextNode(),a.push({type:2,index:++i});o.append(t[e],$())}}}else if(8===o.nodeType)if(o.data===y)a.push({type:2,index:i});else{let t=-1;for(;-1!==(t=o.data.indexOf(m,t+1));)a.push({type:7,index:i}),t+=m.length-1}i++}}static createElement(t,e){const n=w.createElement("template");return n.innerHTML=t,n}}function H(t,e,n=t,o){var i,r,s,a;if(e===O)return e;let l=void 0!==o?null===(i=n._$Cl)||void 0===i?void 0:i[o]:n._$Cu;const d=k(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===d?l=void 0:(l=new d(t),l._$AT(t,n,o)),void 0!==o?(null!==(s=(a=n)._$Cl)&&void 0!==s?s:a._$Cl=[])[o]=l:n._$Cu=l),void 0!==l&&(e=H(t,l._$AS(t,e.values),l,o)),e}class F{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:n},parts:o}=this._$AD,i=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:w).importNode(n,!0);B.currentNode=i;let r=B.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new j(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new X(r,this,t)),this.v.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=B.nextNode(),s++)}return i}m(t){let e=0;for(const n of this.v)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class j{constructor(t,e,n,o){var i;this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=o,this._$Cg=null===(i=null==o?void 0:o.isConnected)||void 0===i||i}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=H(this,t,e),k(t)?t===I||null==t||""===t?(this._$AH!==I&&this._$AR(),this._$AH=I):t!==this._$AH&&t!==O&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):C(t)?this.S(t):this.$(t)}A(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.A(t))}$(t){this._$AH!==I&&k(this._$AH)?this._$AA.nextSibling.data=t:this.k(w.createTextNode(t)),this._$AH=t}T(t){var e;const{values:n,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=U.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===i)this._$AH.m(n);else{const t=new F(i,this),e=t.p(this.options);t.m(n),this.k(e),this._$AH=t}}_$AC(t){let e=N.get(t.strings);return void 0===e&&N.set(t.strings,e=new U(t)),e}S(t){z(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,o=0;for(const i of t)o===e.length?e.push(n=new j(this.A($()),this.A($()),this,this.options)):n=e[o],n._$AI(i),o++;o<e.length&&(this._$AR(n&&n._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var n;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Y{constructor(t,e,n,o,i){this.type=1,this._$AH=I,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=i,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=I}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,n,o){const i=this.strings;let r=!1;if(void 0===i)t=H(this,t,e,0),r=!k(t)||t!==this._$AH&&t!==O,r&&(this._$AH=t);else{const o=t;let s,a;for(t=i[0],s=0;s<i.length-1;s++)a=H(this,o[n+s],e,s),a===O&&(a=this._$AH[s]),r||(r=!k(a)||a!==this._$AH[s]),a===I?t=I:t!==I&&(t+=(null!=a?a:"")+i[s+1]),this._$AH[s]=a}r&&!o&&this.C(t)}C(t){t===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class W extends Y{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===I?void 0:t}}const q=b?b.emptyScript:"";class V extends Y{constructor(){super(...arguments),this.type=4}C(t){t&&t!==I?this.element.setAttribute(this.name,q):this.element.removeAttribute(this.name)}}class Z extends Y{constructor(t,e,n,o,i){super(t,e,n,o,i),this.type=5}_$AI(t,e=this){var n;if((t=null!==(n=H(this,t,e,0))&&void 0!==n?n:I)===O)return;const o=this._$AH,i=t===I&&o!==I||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==I&&(o===I||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==n?n:this.element,t):this._$AH.handleEvent(t)}}class X{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){H(this,t)}}const K={P:"$lit$",L:m,V:y,I:1,N:P,R:F,D:C,j:H,H:j,O:Y,F:V,B:Z,W,Z:X},J=window.litHtmlPolyfillSupport;
31
+ var b;v.finalized=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},null==c||c({ReactiveElement:v}),(null!==(a=globalThis.reactiveElementVersions)&&void 0!==a?a:globalThis.reactiveElementVersions=[]).push("1.3.1");const f=globalThis.trustedTypes,g=f?f.createPolicy("lit-html",{createHTML:t=>t}):void 0,m=`lit$${(Math.random()+"").slice(9)}$`,y="?"+m,x=`<${y}>`,w=document,$=(t="")=>w.createComment(t),k=t=>null===t||"object"!=typeof t&&"function"!=typeof t,z=Array.isArray,C=t=>{var e;return z(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])},_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,A=/-->/g,E=/>/g,S=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,D=/'/g,L=/"/g,M=/^(?:script|style|textarea|title)$/i,T=(t=>(e,...n)=>({_$litType$:t,strings:e,values:n}))(1),N=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),I=new WeakMap,R=(t,e,n)=>{var o,i;const r=null!==(o=null==n?void 0:n.renderBefore)&&void 0!==o?o:e;let s=r._$litPart$;if(void 0===s){const t=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:null;r._$litPart$=s=new j(e.insertBefore($(),t),t,void 0,null!=n?n:{})}return s._$AI(t),s},B=w.createTreeWalker(w,129,null,!1),P=(t,e)=>{const n=t.length-1,o=[];let i,r=2===e?"<svg>":"",s=_;for(let e=0;e<n;e++){const n=t[e];let a,l,d=-1,c=0;for(;c<n.length&&(s.lastIndex=c,l=s.exec(n),null!==l);)c=s.lastIndex,s===_?"!--"===l[1]?s=A:void 0!==l[1]?s=E:void 0!==l[2]?(M.test(l[2])&&(i=RegExp("</"+l[2],"g")),s=S):void 0!==l[3]&&(s=S):s===S?">"===l[0]?(s=null!=i?i:_,d=-1):void 0===l[1]?d=-2:(d=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?S:'"'===l[3]?L:D):s===L||s===D?s=S:s===A||s===E?s=_:(s=S,i=void 0);const h=s===S&&t[e+1].startsWith("/>")?" ":"";r+=s===_?n+x:d>=0?(o.push(a),n.slice(0,d)+"$lit$"+n.slice(d)+m+h):n+m+(-2===d?(o.push(void 0),e):h)}const a=r+(t[n]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==g?g.createHTML(a):a,o]};class U{constructor({strings:t,_$litType$:e},n){let o;this.parts=[];let i=0,r=0;const s=t.length-1,a=this.parts,[l,d]=P(t,e);if(this.el=U.createElement(l,n),B.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=B.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(m)){const n=d[r++];if(t.push(e),void 0!==n){const t=o.getAttribute(n.toLowerCase()+"$lit$").split(m),e=/([.?@])?(.*)/.exec(n);a.push({type:1,index:i,name:e[2],strings:t,ctor:"."===e[1]?W:"?"===e[1]?V:"@"===e[1]?Z:Y})}else a.push({type:6,index:i})}for(const e of t)o.removeAttribute(e)}if(M.test(o.tagName)){const t=o.textContent.split(m),e=t.length-1;if(e>0){o.textContent=f?f.emptyScript:"";for(let n=0;n<e;n++)o.append(t[n],$()),B.nextNode(),a.push({type:2,index:++i});o.append(t[e],$())}}}else if(8===o.nodeType)if(o.data===y)a.push({type:2,index:i});else{let t=-1;for(;-1!==(t=o.data.indexOf(m,t+1));)a.push({type:7,index:i}),t+=m.length-1}i++}}static createElement(t,e){const n=w.createElement("template");return n.innerHTML=t,n}}function H(t,e,n=t,o){var i,r,s,a;if(e===N)return e;let l=void 0!==o?null===(i=n._$Cl)||void 0===i?void 0:i[o]:n._$Cu;const d=k(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===d?l=void 0:(l=new d(t),l._$AT(t,n,o)),void 0!==o?(null!==(s=(a=n)._$Cl)&&void 0!==s?s:a._$Cl=[])[o]=l:n._$Cu=l),void 0!==l&&(e=H(t,l._$AS(t,e.values),l,o)),e}class F{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:n},parts:o}=this._$AD,i=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:w).importNode(n,!0);B.currentNode=i;let r=B.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new j(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new X(r,this,t)),this.v.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=B.nextNode(),s++)}return i}m(t){let e=0;for(const n of this.v)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class j{constructor(t,e,n,o){var i;this.type=2,this._$AH=O,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=o,this._$Cg=null===(i=null==o?void 0:o.isConnected)||void 0===i||i}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=H(this,t,e),k(t)?t===O||null==t||""===t?(this._$AH!==O&&this._$AR(),this._$AH=O):t!==this._$AH&&t!==N&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):C(t)?this.S(t):this.$(t)}A(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.A(t))}$(t){this._$AH!==O&&k(this._$AH)?this._$AA.nextSibling.data=t:this.k(w.createTextNode(t)),this._$AH=t}T(t){var e;const{values:n,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=U.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===i)this._$AH.m(n);else{const t=new F(i,this),e=t.p(this.options);t.m(n),this.k(e),this._$AH=t}}_$AC(t){let e=I.get(t.strings);return void 0===e&&I.set(t.strings,e=new U(t)),e}S(t){z(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,o=0;for(const i of t)o===e.length?e.push(n=new j(this.A($()),this.A($()),this,this.options)):n=e[o],n._$AI(i),o++;o<e.length&&(this._$AR(n&&n._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var n;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Y{constructor(t,e,n,o,i){this.type=1,this._$AH=O,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=i,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=O}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,n,o){const i=this.strings;let r=!1;if(void 0===i)t=H(this,t,e,0),r=!k(t)||t!==this._$AH&&t!==N,r&&(this._$AH=t);else{const o=t;let s,a;for(t=i[0],s=0;s<i.length-1;s++)a=H(this,o[n+s],e,s),a===N&&(a=this._$AH[s]),r||(r=!k(a)||a!==this._$AH[s]),a===O?t=O:t!==O&&(t+=(null!=a?a:"")+i[s+1]),this._$AH[s]=a}r&&!o&&this.C(t)}C(t){t===O?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class W extends Y{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===O?void 0:t}}const q=f?f.emptyScript:"";class V extends Y{constructor(){super(...arguments),this.type=4}C(t){t&&t!==O?this.element.setAttribute(this.name,q):this.element.removeAttribute(this.name)}}class Z extends Y{constructor(t,e,n,o,i){super(t,e,n,o,i),this.type=5}_$AI(t,e=this){var n;if((t=null!==(n=H(this,t,e,0))&&void 0!==n?n:O)===N)return;const o=this._$AH,i=t===O&&o!==O||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==O&&(o===O||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==n?n:this.element,t):this._$AH.handleEvent(t)}}class X{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){H(this,t)}}const K={P:"$lit$",L:m,V:y,I:1,N:P,R:F,D:C,j:H,H:j,O:Y,F:V,B:Z,W,Z:X},J=window.litHtmlPolyfillSupport;
32
32
  /**
33
33
  * @license
34
34
  * Copyright 2017 Google LLC
35
35
  * SPDX-License-Identifier: BSD-3-Clause
36
36
  */
37
- var G,Q;null==J||J(U,j),(null!==(f=globalThis.litHtmlVersions)&&void 0!==f?f:globalThis.litHtmlVersions=[]).push("2.2.0");class tt extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const n=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=n.firstChild),n}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=R(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return O}}tt.finalized=!0,tt._$litElement$=!0,null===(G=globalThis.litElementHydrateSupport)||void 0===G||G.call(globalThis,{LitElement:tt});const et=globalThis.litElementPolyfillSupport;null==et||et({LitElement:tt}),(null!==(Q=globalThis.litElementVersions)&&void 0!==Q?Q:globalThis.litElementVersions=[]).push("3.2.0");
37
+ var G,Q;null==J||J(U,j),(null!==(b=globalThis.litHtmlVersions)&&void 0!==b?b:globalThis.litHtmlVersions=[]).push("2.2.1");class tt extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const n=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=n.firstChild),n}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=R(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return N}}tt.finalized=!0,tt._$litElement$=!0,null===(G=globalThis.litElementHydrateSupport)||void 0===G||G.call(globalThis,{LitElement:tt});const et=globalThis.litElementPolyfillSupport;null==et||et({LitElement:tt}),(null!==(Q=globalThis.litElementVersions)&&void 0!==Q?Q:globalThis.litElementVersions=[]).push("3.2.0");
38
38
  /**
39
39
  * @license
40
40
  * Copyright 2017 Google LLC
@@ -71,35 +71,35 @@ function st(t,e){return(({finisher:t,descriptor:e})=>(n,o)=>{var i;if(void 0===o
71
71
  * @license
72
72
  * Copyright 2018 Google LLC
73
73
  * SPDX-License-Identifier: BSD-3-Clause
74
- */const ut=t=>null!=t?t:I
74
+ */const ut=t=>null!=t?t:O
75
75
  /**
76
76
  * @license
77
77
  * Copyright 2020 Google LLC
78
78
  * SPDX-License-Identifier: BSD-3-Clause
79
- */,{H:pt}=K,vt=()=>document.createComment(""),ft=(t,e,n)=>{var o;const i=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===n){const e=i.insertBefore(vt(),r),o=i.insertBefore(vt(),r);n=new pt(e,o,t,t.options)}else{const e=n._$AB.nextSibling,s=n._$AM,a=s!==t;if(a){let e;null===(o=n._$AQ)||void 0===o||o.call(n,t),n._$AM=t,void 0!==n._$AP&&(e=t._$AU)!==s._$AU&&n._$AP(e)}if(e!==r||a){let t=n._$AA;for(;t!==e;){const e=t.nextSibling;i.insertBefore(t,r),t=e}}}return n},bt=(t,e,n=t)=>(t._$AI(e,n),t),gt={},mt=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let n=t._$AA;const o=t._$AB.nextSibling;for(;n!==o;){const t=n.nextSibling;n.remove(),n=t}},yt=1,xt=2,wt=t=>(...e)=>({_$litDirective$:t,values:e});class $t{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
79
+ */,{H:pt}=K,vt=()=>document.createComment(""),bt=(t,e,n)=>{var o;const i=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===n){const e=i.insertBefore(vt(),r),o=i.insertBefore(vt(),r);n=new pt(e,o,t,t.options)}else{const e=n._$AB.nextSibling,s=n._$AM,a=s!==t;if(a){let e;null===(o=n._$AQ)||void 0===o||o.call(n,t),n._$AM=t,void 0!==n._$AP&&(e=t._$AU)!==s._$AU&&n._$AP(e)}if(e!==r||a){let t=n._$AA;for(;t!==e;){const e=t.nextSibling;i.insertBefore(t,r),t=e}}}return n},ft=(t,e,n=t)=>(t._$AI(e,n),t),gt={},mt=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let n=t._$AA;const o=t._$AB.nextSibling;for(;n!==o;){const t=n.nextSibling;n.remove(),n=t}},yt=1,xt=2,wt=t=>(...e)=>({_$litDirective$:t,values:e});class $t{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
80
80
  /**
81
81
  * @license
82
82
  * Copyright 2017 Google LLC
83
83
  * SPDX-License-Identifier: BSD-3-Clause
84
- */const kt=(t,e)=>{var n,o;const i=t._$AN;if(void 0===i)return!1;for(const t of i)null===(o=(n=t)._$AO)||void 0===o||o.call(n,e,!1),kt(t,e);return!0},zt=t=>{let e,n;do{if(void 0===(e=t._$AM))break;n=e._$AN,n.delete(t),t=e}while(0===(null==n?void 0:n.size))},Ct=t=>{for(let e;e=t._$AM;t=e){let n=e._$AN;if(void 0===n)e._$AN=n=new Set;else if(n.has(t))break;n.add(t),Et(e)}};function _t(t){void 0!==this._$AN?(zt(this),this._$AM=t,Ct(this)):this._$AM=t}function At(t,e=!1,n=0){const o=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size)if(e)if(Array.isArray(o))for(let t=n;t<o.length;t++)kt(o[t],!1),zt(o[t]);else null!=o&&(kt(o,!1),zt(o));else kt(this,t)}const Et=t=>{var e,n,o,i;t.type==xt&&(null!==(e=(o=t)._$AP)&&void 0!==e||(o._$AP=At),null!==(n=(i=t)._$AQ)&&void 0!==n||(i._$AQ=_t))};class Dt extends $t{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),Ct(this),this.isConnected=t._$AU}_$AO(t,e=!0){var n,o;t!==this.isConnected&&(this.isConnected=t,t?null===(n=this.reconnected)||void 0===n||n.call(this):null===(o=this.disconnected)||void 0===o||o.call(this)),e&&(kt(this,t),zt(this))}setValue(t){if((t=>void 0===t.strings)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}
84
+ */const kt=(t,e)=>{var n,o;const i=t._$AN;if(void 0===i)return!1;for(const t of i)null===(o=(n=t)._$AO)||void 0===o||o.call(n,e,!1),kt(t,e);return!0},zt=t=>{let e,n;do{if(void 0===(e=t._$AM))break;n=e._$AN,n.delete(t),t=e}while(0===(null==n?void 0:n.size))},Ct=t=>{for(let e;e=t._$AM;t=e){let n=e._$AN;if(void 0===n)e._$AN=n=new Set;else if(n.has(t))break;n.add(t),Et(e)}};function _t(t){void 0!==this._$AN?(zt(this),this._$AM=t,Ct(this)):this._$AM=t}function At(t,e=!1,n=0){const o=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size)if(e)if(Array.isArray(o))for(let t=n;t<o.length;t++)kt(o[t],!1),zt(o[t]);else null!=o&&(kt(o,!1),zt(o));else kt(this,t)}const Et=t=>{var e,n,o,i;t.type==xt&&(null!==(e=(o=t)._$AP)&&void 0!==e||(o._$AP=At),null!==(n=(i=t)._$AQ)&&void 0!==n||(i._$AQ=_t))};class St extends $t{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),Ct(this),this.isConnected=t._$AU}_$AO(t,e=!0){var n,o;t!==this.isConnected&&(this.isConnected=t,t?null===(n=this.reconnected)||void 0===n||n.call(this):null===(o=this.disconnected)||void 0===o||o.call(this)),e&&(kt(this,t),zt(this))}setValue(t){if((t=>void 0===t.strings)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}
85
85
  /**
86
86
  * @license
87
87
  * Copyright 2020 Google LLC
88
88
  * SPDX-License-Identifier: BSD-3-Clause
89
- */const St=()=>new Lt;class Lt{}const Mt=new WeakMap,Tt=wt(class extends Dt{render(t){return I}update(t,[e]){var n;const o=e!==this.U;return o&&void 0!==this.U&&this.ot(void 0),(o||this.rt!==this.lt)&&(this.U=e,this.ht=null===(n=t.options)||void 0===n?void 0:n.host,this.ot(this.lt=t.element)),I}ot(t){"function"==typeof this.U?(void 0!==Mt.get(this.U)&&this.U.call(this.ht,void 0),Mt.set(this.U,t),void 0!==t&&this.U.call(this.ht,t)):this.U.value=t}get rt(){var t;return"function"==typeof this.U?Mt.get(this.U):null===(t=this.U)||void 0===t?void 0:t.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});class Ot{constructor(t,e){this.host=t,this.options=e,this.host=t,this.options=e,t.addController(this)}get container(){return this.options.container||this.host}hostUpdated(){this.render()}hostDisconnected(){R(I,this.container,this.options.renderOptions)}render(){R(this.options.render(),this.container,this.options.renderOptions)}}function It(t){return class extends t{constructor(){super(...arguments),this.focusableRef=St()}focus(t){var e;null===(e=this.focusableRef.value)||void 0===e||e.focus(t)}blur(){var t;null===(t=this.focusableRef.value)||void 0===t||t.blur()}click(){var t;null===(t=this.focusableRef.value)||void 0===t||t.click()}}}function Nt(e){class n extends e{constructor(){super(...arguments),this.disabled=!1,this.value=""}get form(){return this.closest("form")||void 0}}return t([it({type:Boolean,reflect:!0})],n.prototype,"disabled",void 0),t([it()],n.prototype,"name",void 0),t([it()],n.prototype,"value",void 0),n}const Rt=r`:host{display:inline-block}.n-button{-webkit-appearance:none;align-items:center;appearance:none;background:var(--n-button-background-color,var(--n-color-button));border-radius:var(--n-button-border-radius,var(--n-border-radius-s));border:1px var(--n-button-border-style,solid) var(--n-button-border-color,var(--n-color-border-strong));box-shadow:var(--n-button-box-shadow,var(--n-box-shadow));color:var(--n-button-color,var(--n-color-text));cursor:pointer;display:flex;gap:var(--n-button-gap,var(--n-space-s));font-family:var(--n-font-family);font-feature-settings:var(--n-font-features);font-size:var(--n-button-font-size,var(--n-font-size-m));font-weight:var(--n-button-font-weight,var(--n-font-weight));line-height:var(--n-line-height-form);margin:0;min-block-size:var(--n-button-min-height,var(--n-space-xl));padding:var(--n-button-padding-y,calc(var(--n-space-s)/ 1.6)) var(--n-button-padding-x,calc(var(--n-space-m)/ 1.2));text-align:var(--n-button-text-align,center);text-decoration:none;transition:all .1s ease;-webkit-user-select:none;user-select:none;position:relative;inline-size:var(--n-button-width,fit-content)}.n-button::after{content:"";position:absolute;background:0 0;background-image:var(--n-button-gradient,linear-gradient(to bottom,rgba(0,0,0,0) 50%,rgba(0,0,0,.013) 100%));background-repeat:repeat-x;inline-size:100%;inset-inline:0;block-size:100%;inset-block-start:0}:host([expand]){--n-button-width:100%;display:block}.n-content{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:relative}.n-button:hover{--n-button-background-color:var(--n-color-button-hover);--n-button-border-color:var(--n-color-border-hover)}.n-button:focus{--n-button-border-color:var(--n-color-accent);--n-button-border-style:solid;--n-button-box-shadow:0 0 0 1px var(--n-button-border-color);outline:0}.n-button:active{opacity:.8;transform:translateY(1px);transition:none}:host([variant=primary]){--n-button-background-color:var(--n-color-accent);--n-button-border-color:transparent;--n-button-box-shadow:none;--n-button-color:var(--n-color-text-on-accent);--n-button-font-weight:var(--n-font-weight-active)}:host([variant=primary]) .n-button:focus{--n-button-box-shadow:0 0 0 1px var(--n-color-surface),0 0 0 3px var(--n-button-border-color)}:host([variant=primary]) .n-button:hover{--n-button-border-color:transparent;--n-button-background-color:var(--n-color-accent);filter:brightness(93%)}:host([variant=dashed]){--n-button-color:var(--n-color-text-weaker);--n-button-border-color:var(--n-color-border-hover);--n-button-border-style:dashed;--n-button-box-shadow:none}:host([variant=dashed]) .n-button:hover{--n-button-color:var(--n-color-text)}:host([variant=dashed]) .n-button::after{display:none}:host([variant=plain]){--n-button-border-color:transparent;--n-button-box-shadow:none}:host([variant=plain]) .n-button:hover{--n-button-border-color:transparent}:host([variant=plain]) .n-button:focus{--n-button-box-shadow:0 0 0 1px var(--n-button-border-color)}:host([variant=plain]) .n-button::after{display:none}:host([variant=danger]){--n-button-border-color:var(--n-color-status-danger);--n-button-color:var(--n-color-text-error);--n-button-font-weight:var(--n-font-weight-active)}:host([variant=danger]) .n-button:hover{--n-button-border-color:var(--n-color-status-danger)}:host([disabled]){--n-button-background-color:var(--n-color-border);--n-button-box-shadow:none;--n-button-border-color:var(--n-button-background-color);--n-button-color:var(--n-color-text-weaker);opacity:.5;pointer-events:none}:host([disabled]) .n-button::after{display:none}:host([size="s"]){--n-button-font-size:var(--n-font-size-s);--n-button-min-height:var(--n-space-l);--n-button-padding-y:calc(var(--n-space-s) / 1.5);--n-button-padding-x:var(--n-space-s);--n-button-gap:calc(var(--n-space-s) / 2)}:host([size="s"]) .n-button{line-height:var(--n-line-height-tight)}:host([size="l"]){--n-button-border-radius:var(--n-border-radius);--n-button-font-size:var(--n-font-size-l);--n-button-min-height:calc(var(--n-space-xxl) - var(--n-space-l));--n-button-padding-x:calc(var(--n-space-l) / 1.3);--n-button-font-weight:var(--n-font-weight-active)}::slotted(*){color:inherit;pointer-events:none}::slotted(svg){color:var(--n-color-icon)}::slotted(button[slot=proxy]){display:none}`;let Bt=class extends(Nt(It(tt))){constructor(){super(...arguments),this.buttonRef=St(),this.lightDom=new Ot(this,{render:()=>this.renderLightDom()}),this.variant="default",this.type="submit",this.size="m",this.download=!1,this.target="_self",this.expand=!1,this.handleOuterClick=t=>{t.composedPath().some((t=>t===this.focusableRef.value||t===this.buttonRef.value))||t.stopPropagation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleOuterClick,!0)}disconnectedCallback(){this.removeEventListener("click",this.handleOuterClick,!0)}render(){const t=T`<slot name="before"></slot><div class="n-content"><slot></slot></div><slot name="after"></slot>`;return this.href?this.renderLink(t):this.renderButton(t)}renderLink(t){return T`<a ${Tt(this.focusableRef)} class="n-button" target="${this.target}" ?download="${this.download}" href="${ut(this.disabled?void 0:this.href)}" tabindex="${ut(this.disabled?"-1":void 0)}" aria-disabled="${ut(this.disabled?"true":void 0)}" role="${ut(this.disabled?"link":void 0)}">${t}</a>`}renderButton(t){return T`<slot name="proxy"></slot><button ${Tt(this.focusableRef)} class="n-button" ?disabled="${this.disabled}" name="${ut(this.name||void 0)}" value="${ut(this.value||void 0)}" @click="${this.handleClick}">${t}</button>`}renderLightDom(){return this.href||!this.form?I:T`<button ${Tt(this.buttonRef)} slot="proxy" name="${ut(this.name||void 0)}" value="${ut(this.value||void 0)}" ?disabled="${this.disabled}" type="${this.type}"></button>`}handleClick(t){this.buttonRef.value&&(t.stopPropagation(),this.buttonRef.value.click())}};Bt.styles=[lt,Rt],t([it({reflect:!0})],Bt.prototype,"variant",void 0),t([it({reflect:!0})],Bt.prototype,"type",void 0),t([it({reflect:!0})],Bt.prototype,"size",void 0),t([it({reflect:!0})],Bt.prototype,"href",void 0),t([it({type:Boolean})],Bt.prototype,"download",void 0),t([it({reflect:!0})],Bt.prototype,"target",void 0),t([it({reflect:!0,type:Boolean})],Bt.prototype,"expand",void 0),Bt=t([nt("nord-button")],Bt);var Pt=Bt;class Ut{constructor(t,e=""){this.host=t,this.slotName=e,this.handleSlotChange=t=>{t.target.name===this.slotName&&this.onChange(t)},this.host=t,t.addController(this),this.slotName=e}hostConnected(){var t;null===(t=this.host.shadowRoot)||void 0===t||t.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){var t;null===(t=this.host.shadowRoot)||void 0===t||t.removeEventListener("slotchange",this.handleSlotChange)}get hasContent(){return null!=this.content}get isEmpty(){return!this.hasContent}get content(){const t=this.slotName?`[slot="${this.slotName}"]`:":not([slot])";return this.host.querySelector(t)}onChange(t){this.host.requestUpdate()}}const Ht=r`:host{--n-card-padding:var(--n-space-m);--n-card-slot-padding:var(--n-space-m);--n-banner-box-shadow:none;font-size:var(--n-font-size-m);color:var(--n-color-text)}.n-card{background:var(--n-color-surface);border-radius:var(--n-border-radius);box-shadow:var(--n-box-shadow-card)}@media (max-width:1000px){slot:not([name]){overflow-x:auto}}:host([padding="l"]){--n-card-padding:var(--n-space-l);--n-card-slot-padding:var(--n-space-l)}:host([padding=none]){--n-card-padding:0;--n-card-slot-padding:var(--n-space-m)}slot{display:block}slot[hidden]{display:none}slot:not([name]){padding:var(--n-card-padding)}slot[name=header]{border-block-end:1px solid var(--n-color-border);padding:var(--n-space-m) var(--n-card-slot-padding)}slot[name=footer]{padding:var(--n-card-slot-padding);padding-block-start:0;white-space:nowrap}::slotted([slot=header]){font-size:var(--n-font-size-m);font-weight:var(--n-font-weight-heading);margin:0}::slotted(a){color:var(--n-color-text-link);text-decoration:underline}::slotted(a:hover){text-decoration:none}`;let Ft=class extends tt{constructor(){super(...arguments),this.headerSlot=new Ut(this,"header"),this.footerSlot=new Ut(this,"footer"),this.padding="m"}render(){return T`<div class="n-card"><slot name="header" ?hidden="${this.headerSlot.isEmpty}"></slot><slot></slot><slot name="footer" ?hidden="${this.footerSlot.isEmpty}"></slot></div>`}};Ft.styles=[lt,Ht],t([it({reflect:!0})],Ft.prototype,"padding",void 0),Ft=t([nt("nord-card")],Ft);var jt=Ft;
89
+ */const Dt=()=>new Lt;class Lt{}const Mt=new WeakMap,Tt=wt(class extends St{render(t){return O}update(t,[e]){var n;const o=e!==this.U;return o&&void 0!==this.U&&this.ot(void 0),(o||this.rt!==this.lt)&&(this.U=e,this.ht=null===(n=t.options)||void 0===n?void 0:n.host,this.ot(this.lt=t.element)),O}ot(t){"function"==typeof this.U?(void 0!==Mt.get(this.U)&&this.U.call(this.ht,void 0),Mt.set(this.U,t),void 0!==t&&this.U.call(this.ht,t)):this.U.value=t}get rt(){var t;return"function"==typeof this.U?Mt.get(this.U):null===(t=this.U)||void 0===t?void 0:t.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});class Nt{constructor(t,e){this.host=t,this.options=e,this.host=t,this.options=e,t.addController(this)}get container(){return this.options.container||this.host}hostUpdated(){this.render()}hostDisconnected(){R(O,this.container,this.options.renderOptions)}render(){R(this.options.render(),this.container,this.options.renderOptions)}}function Ot(t){return class extends t{constructor(){super(...arguments),this.focusableRef=Dt()}focus(t){var e;null===(e=this.focusableRef.value)||void 0===e||e.focus(t)}blur(){var t;null===(t=this.focusableRef.value)||void 0===t||t.blur()}click(){var t;null===(t=this.focusableRef.value)||void 0===t||t.click()}}}function It(e){class n extends e{constructor(){super(...arguments),this.disabled=!1,this.value=""}get form(){return this.closest("form")||void 0}}return t([it({type:Boolean,reflect:!0})],n.prototype,"disabled",void 0),t([it()],n.prototype,"name",void 0),t([it()],n.prototype,"value",void 0),n}const Rt=r`:host{display:inline-block}.n-button{-webkit-appearance:none;align-items:center;appearance:none;background:var(--n-button-background-color,var(--n-color-button));border-radius:var(--n-button-border-radius,var(--n-border-radius-s));border:1px var(--n-button-border-style,solid) var(--n-button-border-color,var(--n-color-border-strong));box-shadow:var(--n-button-box-shadow,var(--n-box-shadow));color:var(--n-button-color,var(--n-color-text));cursor:pointer;display:flex;gap:var(--n-button-gap,var(--n-space-s));font-family:var(--n-font-family);font-feature-settings:var(--n-font-features);font-size:var(--n-button-font-size,var(--n-font-size-m));font-weight:var(--n-button-font-weight,var(--n-font-weight));line-height:var(--n-line-height-form);margin:0;min-block-size:var(--n-button-min-height,var(--n-space-xl));padding:var(--n-button-padding-y,calc(var(--n-space-s)/ 1.6)) var(--n-button-padding-x,calc(var(--n-space-m)/ 1.2));text-align:var(--n-button-text-align,center);text-decoration:none;transition:all .1s ease;-webkit-user-select:none;user-select:none;position:relative;inline-size:var(--n-button-width,fit-content)}.n-button::after{content:"";position:absolute;background:0 0;background-image:var(--n-button-gradient,linear-gradient(to bottom,rgba(0,0,0,0) 50%,rgba(0,0,0,.013) 100%));background-repeat:repeat-x;inline-size:100%;inset-inline:0;block-size:100%;inset-block-start:0}:host([expand]){--n-button-width:100%;display:block}.n-content{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:relative}.n-button:hover{--n-button-background-color:var(--n-color-button-hover);--n-button-border-color:var(--n-color-border-hover)}.n-button:focus{--n-button-border-color:var(--n-color-accent);--n-button-border-style:solid;--n-button-box-shadow:0 0 0 1px var(--n-button-border-color);outline:0}.n-button:active{opacity:.8;transform:translateY(1px);transition:none}:host([variant=primary]){--n-button-background-color:var(--n-color-accent);--n-button-border-color:transparent;--n-button-box-shadow:none;--n-button-color:var(--n-color-text-on-accent);--n-button-font-weight:var(--n-font-weight-active)}:host([variant=primary]) .n-button:focus{--n-button-box-shadow:0 0 0 1px var(--n-color-surface),0 0 0 3px var(--n-button-border-color)}:host([variant=primary]) .n-button:hover{--n-button-border-color:transparent;--n-button-background-color:var(--n-color-accent);filter:brightness(93%)}:host([variant=dashed]){--n-button-color:var(--n-color-text-weaker);--n-button-border-color:var(--n-color-border-hover);--n-button-border-style:dashed;--n-button-box-shadow:none}:host([variant=dashed]) .n-button:hover{--n-button-color:var(--n-color-text)}:host([variant=dashed]) .n-button::after{display:none}:host([variant=plain]){--n-button-border-color:transparent;--n-button-box-shadow:none}:host([variant=plain]) .n-button:hover{--n-button-border-color:transparent}:host([variant=plain]) .n-button:focus{--n-button-box-shadow:0 0 0 1px var(--n-button-border-color)}:host([variant=plain]) .n-button::after{display:none}:host([variant=danger]){--n-button-border-color:var(--n-color-status-danger);--n-button-color:var(--n-color-text-error);--n-button-font-weight:var(--n-font-weight-active)}:host([variant=danger]) .n-button:hover{--n-button-border-color:var(--n-color-status-danger)}:host([disabled]){--n-button-background-color:var(--n-color-border);--n-button-box-shadow:none;--n-button-border-color:var(--n-button-background-color);--n-button-color:var(--n-color-text-weaker);opacity:.5;pointer-events:none}:host([disabled]) .n-button::after{display:none}:host([size="s"]){--n-button-font-size:var(--n-font-size-s);--n-button-min-height:var(--n-space-l);--n-button-padding-y:calc(var(--n-space-s) / 1.5);--n-button-padding-x:var(--n-space-s);--n-button-gap:calc(var(--n-space-s) / 2)}:host([size="s"]) .n-button{line-height:var(--n-line-height-tight)}:host([size="l"]){--n-button-border-radius:var(--n-border-radius);--n-button-font-size:var(--n-font-size-l);--n-button-min-height:calc(var(--n-space-xxl) - var(--n-space-l));--n-button-padding-x:calc(var(--n-space-l) / 1.3);--n-button-font-weight:var(--n-font-weight-active)}::slotted(*){color:inherit;pointer-events:none}::slotted(svg){color:var(--n-color-icon)}::slotted(button[slot=proxy]){display:none}`;let Bt=class extends(It(Ot(tt))){constructor(){super(...arguments),this.buttonRef=Dt(),this.lightDom=new Nt(this,{render:()=>this.renderLightDom()}),this.variant="default",this.type="submit",this.size="m",this.download=!1,this.target="_self",this.expand=!1,this.handleOuterClick=t=>{t.composedPath().some((t=>t===this.focusableRef.value||t===this.buttonRef.value))||t.stopPropagation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleOuterClick,!0)}disconnectedCallback(){this.removeEventListener("click",this.handleOuterClick,!0)}render(){const t=T`<slot name="start"></slot><div class="n-content"><slot></slot></div><slot name="end"></slot>`;return this.href?this.renderLink(t):this.renderButton(t)}renderLink(t){return T`<a ${Tt(this.focusableRef)} class="n-button" target="${this.target}" ?download="${this.download}" href="${ut(this.disabled?void 0:this.href)}" tabindex="${ut(this.disabled?"-1":void 0)}" aria-disabled="${ut(this.disabled?"true":void 0)}" role="${ut(this.disabled?"link":void 0)}">${t}</a>`}renderButton(t){return T`<slot name="proxy"></slot><button ${Tt(this.focusableRef)} class="n-button" ?disabled="${this.disabled}" name="${ut(this.name||void 0)}" value="${ut(this.value||void 0)}" @click="${this.handleClick}">${t}</button>`}renderLightDom(){return this.href||!this.form?O:T`<button ${Tt(this.buttonRef)} slot="proxy" name="${ut(this.name||void 0)}" value="${ut(this.value||void 0)}" ?disabled="${this.disabled}" type="${this.type}"></button>`}handleClick(t){this.buttonRef.value&&(t.stopPropagation(),this.buttonRef.value.click())}};Bt.styles=[lt,Rt],t([it({reflect:!0})],Bt.prototype,"variant",void 0),t([it({reflect:!0})],Bt.prototype,"type",void 0),t([it({reflect:!0})],Bt.prototype,"size",void 0),t([it({reflect:!0})],Bt.prototype,"href",void 0),t([it({type:Boolean})],Bt.prototype,"download",void 0),t([it({reflect:!0})],Bt.prototype,"target",void 0),t([it({reflect:!0,type:Boolean})],Bt.prototype,"expand",void 0),Bt=t([nt("nord-button")],Bt);var Pt=Bt;class Ut{constructor(t,e=""){this.host=t,this.slotName=e,this.handleSlotChange=t=>{t.target.name===this.slotName&&this.onChange(t)},this.host=t,t.addController(this),this.slotName=e}hostConnected(){var t;null===(t=this.host.shadowRoot)||void 0===t||t.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){var t;null===(t=this.host.shadowRoot)||void 0===t||t.removeEventListener("slotchange",this.handleSlotChange)}get hasContent(){return null!=this.content}get isEmpty(){return!this.hasContent}get content(){const t=this.slotName?`[slot="${this.slotName}"]`:":not([slot])";return this.host.querySelector(t)}onChange(t){this.host.requestUpdate()}}const Ht=r`:host{--n-card-padding:var(--n-space-m);--n-card-slot-padding:var(--n-space-m);--n-banner-box-shadow:none;font-size:var(--n-font-size-m);color:var(--n-color-text)}.n-card{background:var(--n-color-surface);border-radius:var(--n-border-radius);box-shadow:var(--n-box-shadow-card)}@media (max-width:1000px){slot:not([name]){overflow-x:auto}}:host([padding="l"]){--n-card-padding:var(--n-space-l);--n-card-slot-padding:var(--n-space-l)}:host([padding=none]){--n-card-padding:0;--n-card-slot-padding:var(--n-space-m)}slot{display:block}slot[hidden]{display:none}slot:not([name]){padding:var(--n-card-padding)}slot[name=header]{border-block-end:1px solid var(--n-color-border);padding:var(--n-space-m) var(--n-card-slot-padding)}slot[name=footer]{padding:var(--n-card-slot-padding);padding-block-start:0;white-space:nowrap}::slotted([slot=header]){font-size:var(--n-font-size-m);font-weight:var(--n-font-weight-heading);margin:0}::slotted(a){color:var(--n-color-text-link);text-decoration:underline}::slotted(a:hover){text-decoration:none}`;let Ft=class extends tt{constructor(){super(...arguments),this.headerSlot=new Ut(this,"header"),this.footerSlot=new Ut(this,"footer"),this.padding="m"}render(){return T`<div class="n-card"><slot name="header" ?hidden="${this.headerSlot.isEmpty}"></slot><slot></slot><slot name="footer" ?hidden="${this.footerSlot.isEmpty}"></slot></div>`}};Ft.styles=[lt,Ht],t([it({reflect:!0})],Ft.prototype,"padding",void 0),Ft=t([nt("nord-card")],Ft);var jt=Ft;
90
90
  /**
91
91
  * @license
92
92
  * Copyright 2017 Google LLC
93
93
  * SPDX-License-Identifier: BSD-3-Clause
94
- */class Yt extends $t{constructor(t){if(super(t),this.it=I,t.type!==xt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===I||null==t)return this.ft=void 0,this.it=t;if(t===O)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.ft;this.it=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Yt.directiveName="unsafeHTML",Yt.resultType=1;const Wt=wt(Yt);class qt{constructor(t,e){this.host=t,this.options=e,this.handleFormData=t=>{const{disabled:e,name:n}=this.host;if(e)return;const o=this.options.value();n&&null!=o&&t.formData.append(n,o)},this.host=t,t.addController(this),this.options=e}hostConnected(){var t;null===(t=this.host.form)||void 0===t||t.addEventListener("formdata",this.handleFormData)}hostDisconnected(){var t;null===(t=this.host.form)||void 0===t||t.removeEventListener("formdata",this.handleFormData)}}class Vt extends Event{constructor(t,e){super(t,{bubbles:!0,composed:!0,...e})}}const Zt=r`:host{all:initial;border:0!important;clip:rect(1px,1px,1px,1px)!important;block-size:1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;inset-block-start:0;inline-size:1px!important}`;let Xt=class extends tt{render(){return T`<slot></slot>`}};Xt.styles=Zt,Xt=t([nt("nord-visually-hidden")],Xt);var Kt=Xt;function Jt(e){class n extends e{constructor(){super(...arguments),this.labelSlot=new Ut(this,"label"),this.errorSlot=new Ut(this,"error"),this.hintSlot=new Ut(this,"hint"),this.formData=new qt(this,{value:()=>this.formValue}),this.inputId="input",this.errorId="error",this.hintId="hint",this.label="",this.hideLabel=!1,this.required=!1,this.expand=!1}get formValue(){return this.value}handleInput(t){t.stopPropagation();const e=t.target;this.value=e.value,this.dispatchEvent(new Vt("input"))}handleChange(t){t.stopPropagation(),this.dispatchEvent(new Vt("change"))}renderLabel(){const t=T`<label for="${this.inputId}"><slot name="label">${this.label}</slot></label><div class="n-caption n-hint" id="${this.hintId}" ?hidden="${!this.hasHint}"><slot name="hint">${this.hint}</slot></div>`;return this.hideLabel?T`<nord-visually-hidden>${t}</nord-visually-hidden>`:T`<div class="n-label-container">${t}</div>`}renderError(){return T`<div class="n-caption n-error" id="${this.errorId}" role="alert" ?hidden="${!this.hasError}"><slot name="error">${this.error}</slot></div>`}getDescribedBy(){const{hasHint:t,hasError:e}=this;return t&&e?`${this.hintId} ${this.errorId}`:t?this.hintId:e?this.errorId:void 0}getInvalid(){return this.hasError?"true":void 0}get hasHint(){return Boolean(this.hint)||this.hintSlot.hasContent}get hasError(){return Boolean(this.error)||this.errorSlot.hasContent}}return t([it()],n.prototype,"label",void 0),t([it()],n.prototype,"hint",void 0),t([it({type:Boolean,attribute:"hide-label"})],n.prototype,"hideLabel",void 0),t([it()],n.prototype,"placeholder",void 0),t([it()],n.prototype,"error",void 0),t([it({type:Boolean})],n.prototype,"required",void 0),t([it({reflect:!0,type:Boolean})],n.prototype,"expand",void 0),n}const Gt=r`.n-caption,::slotted(.n-caption){font-size:var(--n-font-size-s);line-height:var(--n-line-height-caption)}.n-label-container{padding-block-end:var(--n-space-s);display:inline-block}.n-label,::slotted(label),label{display:block!important;color:var(--n-color-text);font-family:var(--n-font-family);font-size:var(--n-font-size-m);font-weight:var(--n-font-weight-heading)!important;line-height:var(--n-line-height-heading);margin:0!important}.n-hint{padding-block-start:calc(var(--n-space-s)/ 2);color:var(--n-color-text-weaker)}.n-error{margin-block-start:var(--n-space-s);color:var(--n-color-text-error)}`,Qt=r`.n-input-container{position:relative}.n-input{background:var(--n-color-active);color:var(--n-color-text);padding-block-start:calc(var(--n-space-s) - 1px);padding-block-end:calc(var(--n-space-s) - 1px);padding-inline-start:calc(var(--n-space-s) * 1.6);padding-inline-end:calc(var(--n-space-s) * 1.6);border-radius:var(--n-border-radius-s);border:1px solid var(--n-input-border-color,var(--n-color-border-strong));font-family:var(--n-font-family);font-size:var(--n-font-size-m);line-height:var(--n-line-height-form);min-inline-size:240px;transition:border var(--n-transition-slowly),box-shadow var(--n-transition-slowly),background var(--n-transition-slowly)}@media (max-width:480px){.n-input{font-size:var(--n-font-size-l)}}:host([expand]){inline-size:100%}:host([expand]) .n-input{display:block;min-inline-size:0;inline-size:100%}.n-input:hover,.n-label-container:hover+.n-input-container .n-input{--n-input-border-color:var(--n-color-border-hover)}.n-input:focus{--n-input-border-color:var(--n-color-accent);background:var(--n-color-surface);outline:0;box-shadow:0 0 0 1px var(--n-input-border-color)}.n-input::placeholder{color:var(--n-color-text-weakest)}.n-input:disabled{--n-input-border-color:var(--n-color-active);color:var(--n-color-text-weakest)}.n-input[aria-invalid=true]{--n-input-border-color:var(--n-color-status-danger)!important}`,te=r`.n-input::-webkit-search-cancel-button,.n-input::-webkit-search-decoration{-webkit-appearance:none;appearance:none}slot[name=before]{display:flex;align-items:center;position:absolute;margin-inline-start:var(--n-space-m);block-size:100%;pointer-events:none;color:var(--n-color-icon)}slot[name=before]:not([hidden])+.n-input{padding-inline-start:var(--n-space-xl)}::slotted(svg),svg{block-size:var(--n-size-icon-s);inline-size:var(--n-size-icon-s)}`;let ee=class extends(Jt(Nt(It(tt)))){constructor(){super(...arguments),this.beforeSlot=new Ut(this,"before"),this.type="text"}render(){var t;const e="search"===this.type||this.beforeSlot.hasContent,n="number"===this.type,o="search"===this.type?Wt('<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><path d="M7 59.5a52.5 52.5 0 1 0 105 0 52.5 52.5 0 1 0-105 0zM133 133 96.628 96.628" stroke-width="14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></svg>'):I;return T`${this.renderLabel()}<div class="n-input-container"><slot name="before" ?hidden="${!e}">${o}</slot><input ${Tt(this.focusableRef)} id="${this.inputId}" class="n-input" type="${n?"text":this.type}" inputmode="${ut(n?"numeric":void 0)}" pattern="${ut(n?"[0-9]*":void 0)}" ?disabled="${this.disabled}" ?required="${this.required}" name="${ut(this.name)}" .value="${null!==(t=this.value)&&void 0!==t?t:""}" placeholder="${ut(this.placeholder)}" @input="${this.handleInput}" @change="${this.handleChange}" @keydown="${this.handleKeydown}" aria-describedby="${ut(this.getDescribedBy())}" aria-invalid="${ut(this.getInvalid())}" spellcheck="false"></div>${this.renderError()}`}handleKeydown(t){var e;"Enter"===t.key&&this.form&&(null===(e=this.form.querySelector('button[type="submit"]'))||void 0===e||e.click())}};ee.styles=[lt,Gt,Qt,te],t([it()],ee.prototype,"type",void 0),ee=t([nt("nord-input")],ee);var ne=ee;const oe=r`:host{--n-icon-size:var(--n-size-icon-m);display:inline-block;block-size:var(--n-icon-size);inline-size:var(--n-icon-size)}:host([size=xs]){--n-icon-size:var(--n-size-icon-xs)}:host([size="s"]){--n-icon-size:var(--n-size-icon-s)}:host([size="l"]){--n-icon-size:var(--n-size-icon-l)}:host([size=xl]){--n-icon-size:var(--n-size-icon-xl)}:host([size=xxl]){--n-icon-size:var(--n-size-icon-xxl)}.n-icon{display:block}svg{display:block}`;var ie;let re=ie=class extends tt{constructor(){super(...arguments),this.name="",this.size="m",this.svg=""}static registerResolver(t){ie.resolver=t}static registerIcon(t,e){let n,o;if("string"==typeof t?(n=t,o=e):(n=t.title,o=t.default),!n)throw new Error("name is required when registering an icon");if(!o)throw new Error("icon must not be empty");ie.registeredIcons.has(n)||ie.registeredIcons.set(n,o)}willUpdate(t){if(!t.has("name"))return;const e=this.resolve();"string"==typeof e?this.svg=e:e.then((t=>{this.svg=t})).catch((()=>{this.svg=""}))}render(){return T`<div role="${ut(this.label?"img":void 0)}" aria-label="${ut(this.label)}"><slot style="${ut(this.color?`color:${this.color}`:void 0)}" aria-hidden="true">${Wt(this.svg)}</slot></div>`}resolve(){return this.name?ie.registeredIcons.has(this.name)?ie.registeredIcons.get(this.name):ie.resolver(this.name):""}};re.styles=[lt,oe],re.resolver=t=>fetch(`https://nordcdn.net/ds/icons/1.3.7/assets/${t}.svg`).then((t=>t.text())),re.registeredIcons=new Map,t([it({reflect:!0})],re.prototype,"name",void 0),t([it({reflect:!0})],re.prototype,"size",void 0),t([it({reflect:!0})],re.prototype,"color",void 0),t([it({reflect:!0})],re.prototype,"label",void 0),t([rt()],re.prototype,"svg",void 0),re=ie=t([nt("nord-icon")],re);var se=re;
94
+ */class Yt extends $t{constructor(t){if(super(t),this.it=O,t.type!==xt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===O||null==t)return this.ft=void 0,this.it=t;if(t===N)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.ft;this.it=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Yt.directiveName="unsafeHTML",Yt.resultType=1;const Wt=wt(Yt);class qt{constructor(t,e){this.host=t,this.options=e,this.handleFormData=t=>{const{disabled:e,name:n}=this.host;if(e)return;const o=this.options.value();n&&null!=o&&t.formData.append(n,o)},this.host=t,t.addController(this),this.options=e}hostConnected(){var t;null===(t=this.host.form)||void 0===t||t.addEventListener("formdata",this.handleFormData)}hostDisconnected(){var t;null===(t=this.host.form)||void 0===t||t.removeEventListener("formdata",this.handleFormData)}}class Vt extends Event{constructor(t,e){super(t,{bubbles:!0,composed:!0,...e})}}const Zt=r`:host{all:initial;border:0!important;clip:rect(1px,1px,1px,1px)!important;block-size:1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;inset-block-start:0;inline-size:1px!important}`;let Xt=class extends tt{render(){return T`<slot></slot>`}};Xt.styles=Zt,Xt=t([nt("nord-visually-hidden")],Xt);var Kt=Xt;function Jt(e){class n extends e{constructor(){super(...arguments),this.labelSlot=new Ut(this,"label"),this.errorSlot=new Ut(this,"error"),this.hintSlot=new Ut(this,"hint"),this.formData=new qt(this,{value:()=>this.formValue}),this.inputId="input",this.errorId="error",this.hintId="hint",this.label="",this.hideLabel=!1,this.required=!1,this.expand=!1}get formValue(){return this.value}handleInput(t){t.stopPropagation();const e=t.target;this.value=e.value,this.dispatchEvent(new Vt("input"))}handleChange(t){t.stopPropagation(),this.dispatchEvent(new Vt("change"))}renderLabel(){const t=T`<label for="${this.inputId}"><slot name="label">${this.label}</slot></label><div class="n-caption n-hint" id="${this.hintId}" ?hidden="${!this.hasHint}"><slot name="hint">${this.hint}</slot></div>`;return this.hideLabel?T`<nord-visually-hidden>${t}</nord-visually-hidden>`:T`<div class="n-label-container">${t}</div>`}renderError(){return T`<div class="n-caption n-error" id="${this.errorId}" role="alert" ?hidden="${!this.hasError}"><slot name="error">${this.error}</slot></div>`}getDescribedBy(){const{hasHint:t,hasError:e}=this;return t&&e?`${this.hintId} ${this.errorId}`:t?this.hintId:e?this.errorId:void 0}getInvalid(){return this.hasError?"true":void 0}get hasHint(){return Boolean(this.hint)||this.hintSlot.hasContent}get hasError(){return Boolean(this.error)||this.errorSlot.hasContent}}return t([it()],n.prototype,"label",void 0),t([it()],n.prototype,"hint",void 0),t([it({type:Boolean,attribute:"hide-label"})],n.prototype,"hideLabel",void 0),t([it()],n.prototype,"placeholder",void 0),t([it()],n.prototype,"error",void 0),t([it({type:Boolean})],n.prototype,"required",void 0),t([it({reflect:!0,type:Boolean})],n.prototype,"expand",void 0),n}const Gt=r`.n-caption,::slotted(.n-caption){font-size:var(--n-font-size-s);line-height:var(--n-line-height-caption)}.n-label-container{padding-block-end:var(--n-space-s);display:inline-block}.n-label,::slotted(label),label{display:block!important;color:var(--n-color-text);font-family:var(--n-font-family);font-size:var(--n-font-size-m);font-weight:var(--n-font-weight-heading)!important;line-height:var(--n-line-height-heading);margin:0!important}.n-hint{padding-block-start:calc(var(--n-space-s)/ 2);color:var(--n-color-text-weaker)}.n-error{margin-block-start:var(--n-space-s);color:var(--n-color-text-error)}`,Qt=r`.n-input-container{position:relative}.n-input{background:var(--n-color-active);color:var(--n-color-text);padding-block-start:calc(var(--n-space-s) - 1px);padding-block-end:calc(var(--n-space-s) - 1px);padding-inline-start:calc(var(--n-space-s) * 1.6);padding-inline-end:calc(var(--n-space-s) * 1.6);border-radius:var(--n-border-radius-s);border:1px solid var(--n-input-border-color,var(--n-color-border-strong));font-family:var(--n-font-family);font-size:var(--n-font-size-m);line-height:var(--n-line-height-form);min-inline-size:240px;transition:border var(--n-transition-slowly),box-shadow var(--n-transition-slowly),background var(--n-transition-slowly)}@media (max-width:480px){.n-input{font-size:var(--n-font-size-l)}}:host([expand]){inline-size:100%}:host([expand]) .n-input{display:block;min-inline-size:0;inline-size:100%}.n-input:hover,.n-label-container:hover+.n-input-container .n-input{--n-input-border-color:var(--n-color-border-hover)}.n-input:focus{--n-input-border-color:var(--n-color-accent);background:var(--n-color-surface);outline:0;box-shadow:0 0 0 1px var(--n-input-border-color)}.n-input::placeholder{color:var(--n-color-text-weakest)}.n-input:disabled{--n-input-border-color:var(--n-color-active);color:var(--n-color-text-weakest)}.n-input[aria-invalid=true]{--n-input-border-color:var(--n-color-status-danger)!important}`,te=r`.n-input::-webkit-search-cancel-button,.n-input::-webkit-search-decoration{-webkit-appearance:none;appearance:none}.n-input-container{font-size:var(--n-font-size-m)}slot[name=start]{display:flex;align-items:center;position:absolute;margin-inline-start:var(--n-space-m);block-size:100%;pointer-events:none;color:var(--n-color-icon)}slot[name=start]:not([hidden])+.n-input{padding-inline-start:var(--n-space-xl)}::slotted(svg),svg{block-size:var(--n-size-icon-s)!important;inline-size:var(--n-size-icon-s)!important}`;let ee=class extends(Jt(It(Ot(tt)))){constructor(){super(...arguments),this.startSlot=new Ut(this,"start"),this.type="text"}render(){var t;const e="search"===this.type||this.startSlot.hasContent,n="number"===this.type,o="search"===this.type?Wt('<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><path d="M7 59.5a52.5 52.5 0 1 0 105 0 52.5 52.5 0 1 0-105 0zM133 133 96.628 96.628" stroke-width="14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></svg>'):O;return T`${this.renderLabel()}<div class="n-input-container"><slot name="${this.startSlot.slotName}" ?hidden="${!e}">${o}</slot><input ${Tt(this.focusableRef)} id="${this.inputId}" class="n-input" type="${n?"text":this.type}" inputmode="${ut(n?"numeric":void 0)}" pattern="${ut(n?"[0-9]*":void 0)}" ?disabled="${this.disabled}" ?required="${this.required}" name="${ut(this.name)}" .value="${null!==(t=this.value)&&void 0!==t?t:""}" placeholder="${ut(this.placeholder)}" @input="${this.handleInput}" @change="${this.handleChange}" @keydown="${this.handleKeydown}" aria-describedby="${ut(this.getDescribedBy())}" aria-invalid="${ut(this.getInvalid())}" spellcheck="false"></div>${this.renderError()}`}handleKeydown(t){var e;"Enter"===t.key&&this.form&&(null===(e=this.form.querySelector('button[type="submit"]'))||void 0===e||e.click())}};ee.styles=[lt,Gt,Qt,te],t([it()],ee.prototype,"type",void 0),ee=t([nt("nord-input")],ee);var ne=ee;const oe=r`:host{--n-icon-size:var(--n-size-icon-m);display:inline-block;block-size:var(--n-icon-size);inline-size:var(--n-icon-size)}:host([size=xs]){--n-icon-size:var(--n-size-icon-xs)}:host([size="s"]){--n-icon-size:var(--n-size-icon-s)}:host([size="l"]){--n-icon-size:var(--n-size-icon-l)}:host([size=xl]){--n-icon-size:var(--n-size-icon-xl)}:host([size=xxl]){--n-icon-size:var(--n-size-icon-xxl)}.n-icon{display:block}svg{display:block}`;var ie;let re=ie=class extends tt{constructor(){super(...arguments),this.name="",this.size="m",this.svg=""}static registerResolver(t){ie.resolver=t}static registerIcon(t,e){let n,o;if("string"==typeof t?(n=t,o=e):(n=t.title,o=t.default),!n)throw new Error("name is required when registering an icon");if(!o)throw new Error("icon must not be empty");ie.registeredIcons.has(n)||ie.registeredIcons.set(n,o)}willUpdate(t){if(!t.has("name"))return;const e=this.resolve();"string"==typeof e?this.svg=e:e.then((t=>{this.svg=t})).catch((()=>{this.svg=""}))}render(){return T`<div role="${ut(this.label?"img":void 0)}" aria-label="${ut(this.label)}"><slot style="${ut(this.color?`color:${this.color}`:void 0)}" aria-hidden="true">${Wt(this.svg)}</slot></div>`}resolve(){return this.name?ie.registeredIcons.has(this.name)?ie.registeredIcons.get(this.name):ie.resolver(this.name):""}};re.styles=[lt,oe],re.resolver=t=>fetch(`https://nordcdn.net/ds/icons/1.3.7/assets/${t}.svg`).then((t=>t.text())),re.registeredIcons=new Map,t([it({reflect:!0})],re.prototype,"name",void 0),t([it({reflect:!0})],re.prototype,"size",void 0),t([it({reflect:!0})],re.prototype,"color",void 0),t([it({reflect:!0})],re.prototype,"label",void 0),t([rt()],re.prototype,"svg",void 0),re=ie=t([nt("nord-icon")],re);var se=re;
95
95
  /**
96
96
  * @license
97
97
  * Copyright 2017 Google LLC
98
98
  * SPDX-License-Identifier: BSD-3-Clause
99
- */const ae=(t,e,n)=>{const o=new Map;for(let i=e;i<=n;i++)o.set(t[i],i);return o},le=wt(class extends $t{constructor(t){if(super(t),t.type!==xt)throw Error("repeat() can only be used in text expressions")}dt(t,e,n){let o;void 0===n?n=e:void 0!==e&&(o=e);const i=[],r=[];let s=0;for(const e of t)i[s]=o?o(e,s):s,r[s]=n(e,s),s++;return{values:r,keys:i}}render(t,e,n){return this.dt(t,e,n).values}update(t,[e,n,o]){var i;const r=(t=>t._$AH)(t),{values:s,keys:a}=this.dt(e,n,o);if(!Array.isArray(r))return this.ut=a,s;const l=null!==(i=this.ut)&&void 0!==i?i:this.ut=[],d=[];let c,h,u=0,p=r.length-1,v=0,f=s.length-1;for(;u<=p&&v<=f;)if(null===r[u])u++;else if(null===r[p])p--;else if(l[u]===a[v])d[v]=bt(r[u],s[v]),u++,v++;else if(l[p]===a[f])d[f]=bt(r[p],s[f]),p--,f--;else if(l[u]===a[f])d[f]=bt(r[u],s[f]),ft(t,d[f+1],r[u]),u++,f--;else if(l[p]===a[v])d[v]=bt(r[p],s[v]),ft(t,r[u],r[p]),p--,v++;else if(void 0===c&&(c=ae(a,v,f),h=ae(l,u,p)),c.has(l[u]))if(c.has(l[p])){const e=h.get(a[v]),n=void 0!==e?r[e]:null;if(null===n){const e=ft(t,r[u]);bt(e,s[v]),d[v]=e}else d[v]=bt(n,s[v]),ft(t,r[u],n),r[e]=null;v++}else mt(r[p]),p--;else mt(r[u]),u++;for(;v<=f;){const e=ft(t,d[f+1]);bt(e,s[v]),d[v++]=e}for(;u<=p;){const t=r[u++];null!==t&&mt(t)}return this.ut=a,((t,e=gt)=>{t._$AH=e})(t,d),O}}),de=wt(class extends $t{constructor(t){var e;if(super(t),t.type!==yt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var n,o;if(void 0===this.et){this.et=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(n=this.st)||void 0===n?void 0:n.has(t))&&this.et.add(t);return this.render(e)}const i=t.element.classList;this.et.forEach((t=>{t in e||(i.remove(t),this.et.delete(t))}));for(const t in e){const n=!!e[t];n===this.et.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(n?(i.add(t),this.et.add(t)):(i.remove(t),this.et.delete(t)))}return O}});
99
+ */const ae=(t,e,n)=>{const o=new Map;for(let i=e;i<=n;i++)o.set(t[i],i);return o},le=wt(class extends $t{constructor(t){if(super(t),t.type!==xt)throw Error("repeat() can only be used in text expressions")}dt(t,e,n){let o;void 0===n?n=e:void 0!==e&&(o=e);const i=[],r=[];let s=0;for(const e of t)i[s]=o?o(e,s):s,r[s]=n(e,s),s++;return{values:r,keys:i}}render(t,e,n){return this.dt(t,e,n).values}update(t,[e,n,o]){var i;const r=(t=>t._$AH)(t),{values:s,keys:a}=this.dt(e,n,o);if(!Array.isArray(r))return this.ut=a,s;const l=null!==(i=this.ut)&&void 0!==i?i:this.ut=[],d=[];let c,h,u=0,p=r.length-1,v=0,b=s.length-1;for(;u<=p&&v<=b;)if(null===r[u])u++;else if(null===r[p])p--;else if(l[u]===a[v])d[v]=ft(r[u],s[v]),u++,v++;else if(l[p]===a[b])d[b]=ft(r[p],s[b]),p--,b--;else if(l[u]===a[b])d[b]=ft(r[u],s[b]),bt(t,d[b+1],r[u]),u++,b--;else if(l[p]===a[v])d[v]=ft(r[p],s[v]),bt(t,r[u],r[p]),p--,v++;else if(void 0===c&&(c=ae(a,v,b),h=ae(l,u,p)),c.has(l[u]))if(c.has(l[p])){const e=h.get(a[v]),n=void 0!==e?r[e]:null;if(null===n){const e=bt(t,r[u]);ft(e,s[v]),d[v]=e}else d[v]=ft(n,s[v]),bt(t,r[u],n),r[e]=null;v++}else mt(r[p]),p--;else mt(r[u]),u++;for(;v<=b;){const e=bt(t,d[b+1]);ft(e,s[v]),d[v++]=e}for(;u<=p;){const t=r[u++];null!==t&&mt(t)}return this.ut=a,((t,e=gt)=>{t._$AH=e})(t,d),N}}),de=wt(class extends $t{constructor(t){var e;if(super(t),t.type!==yt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var n,o;if(void 0===this.et){this.et=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(n=this.st)||void 0===n?void 0:n.has(t))&&this.et.add(t);return this.render(e)}const i=t.element.classList;this.et.forEach((t=>{t in e||(i.remove(t),this.et.delete(t))}));for(const t in e){const n=!!e[t];n===this.et.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(n?(i.add(t),this.et.add(t)):(i.remove(t),this.et.delete(t)))}return N}});
100
100
  /**
101
101
  * @license
102
102
  * Copyright 2018 Google LLC
103
103
  * SPDX-License-Identifier: BSD-3-Clause
104
- */const ce="keyboard-arrow-up-down";var he=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><path d="M105.833 24v93m0-93L80 49.833M105.833 24l25.834 25.833M34.167 117V24m0 93L60 91.167M34.167 117 8.333 91.167" fill="none" stroke="currentColor" stroke-width="14" stroke-linecap="round" stroke-linejoin="round"/></svg>',title:ce,tags:"nordicon keyboard keys arrow up down shortcut"});var ue=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="14"><path d="M35 133 7 105l28-28"/><path d="M7 105h112a14 14 0 0 0 14-14V21a14 14 0 0 0-14-14H77"/></g></svg>',title:"keyboard-return",tags:"nordicon keyboard return key shortcut"});var pe=Object.freeze({__proto__:null,default:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="currentColor" fill-rule="evenodd" d="M6.707 4.879A3 3 0 0 1 8.828 4H15a3 3 0 0 1 3 3v6a3 3 0 0 1-3 3H8.828a3 3 0 0 1-2.12-.879l-4.415-4.414a1 1 0 0 1 0-1.414l4.414-4.414zm4 2.414a1 1 0 0 0-1.414 1.414L10.586 10l-1.293 1.293a1 1 0 1 0 1.414 1.414L12 11.414l1.293 1.293a1 1 0 0 0 1.414-1.414L13.414 10l1.293-1.293a1 1 0 0 0-1.414-1.414L12 8.586l-1.293-1.293z" clip-rule="evenodd"/></svg>',title:"keyboard-backspace",tags:"nordicon keyboard backspace back delete key shortcut"});function ve(t,e,n){return t>n?e:t<e?n:t}function fe(t){var e;return(null===(e=t.activeElement)||void 0===e?void 0:e.shadowRoot)?fe(t.activeElement.shadowRoot):t.activeElement||void 0}var be=["Shift","Meta","Alt","Control"],ge="object"==typeof navigator&&/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"Meta":"Control";function me(t,e){return"function"==typeof t.getModifierState&&t.getModifierState(e)}function ye(t){return t.trim().split(" ").map((function(t){var e=t.split(/\b\+/),n=e.pop();return[e=e.map((function(t){return"$mod"===t?ge:t})),n]}))}function xe(t,e){var n;void 0===e&&(e={});var o=null!=(n=e.timeout)?n:1e3,i=Object.keys(t).map((function(e){return[ye(e),t[e]]})),r=new Map,s=null;return function(t){t instanceof KeyboardEvent&&(i.forEach((function(e){var n=e[0],o=e[1],i=r.get(n)||n;!function(t,e){return!(e[1].toUpperCase()!==t.key.toUpperCase()&&e[1]!==t.code||e[0].find((function(e){return!me(t,e)}))||be.find((function(n){return!e[0].includes(n)&&e[1]!==n&&me(t,n)})))}(t,i[0])?me(t,t.key)||r.delete(n):i.length>1?r.set(n,i.slice(1)):(r.delete(n),o(t))})),s&&clearTimeout(s),s=setTimeout(r.clear.bind(r),o))}}const we=/Arrow(Up|Down|Left|Right)/g,$e=/Escape/g;class ke{constructor(t,e,n=window){this.shortcuts=e,this.target=n,t.addController(this),this.shortcuts=e,this.target=n}hostConnected(){this.shortcuts&&this.bind(this.shortcuts)}hostDisconnected(){this.unbind()}unbind(){var t;null===(t=this.unregister)||void 0===t||t.call(this)}bind(t){this.unbind(),this.shortcuts=t,this.unregister=function(t,e,n){var o;void 0===n&&(n={});var i=null!=(o=n.event)?o:"keydown",r=xe(e,n);return t.addEventListener(i,r),function(){t.removeEventListener(i,r)}}(this.target,function(t){const e={};return Object.keys(t).forEach((n=>{if(e[n]=t[n],we.test(n)){const t=n.replace(we,((t,e)=>e));e[t]=e[n]}if($e.test(n)){const t=n.replace($e,(()=>"Esc"));e[t]=e[n]}})),e}(this.shortcuts))}}class ze{constructor(t,e){this.host=t,this.options=e,this.handleEsc=t=>{this.options.isOpen()&&this.options.onDismiss(t)},this.handleClickOut=t=>{var e;if(!this.options.isOpen())return;const n=null!==(e=this.options.isDismissible)&&void 0!==e?e:t=>t!==this.host;t.composedPath().every(n)&&this.options.onDismiss(t)},this.host=t,t.addController(this),this.options=e,this.shortcut=new ke(this.host,{Escape:this.handleEsc})}hostConnected(){document.addEventListener("click",this.handleClickOut,!0)}hostDisconnected(){document.removeEventListener("click",this.handleClickOut,!0)}}const Ce=t=>e=>{e.preventDefault(),t(e)};class _e{constructor(t,e){this.host=t,t.addController(this),this.commandShortcuts=new ke(t),this.globalShortcuts=new ke(t,{"$mod+k":Ce(e.toggleOpen)}),this.navigationShortcuts=new ke(t,{Enter:Ce(e.trigger),Backspace:e.goBack,End:Ce(e.end),Home:Ce(e.start),ArrowDown:Ce(e.next),ArrowUp:Ce(e.previous)},t)}registerCommandShortcuts(){const t={};for(const e of this.host.commands)e.shortcut&&(t[e.shortcut]=()=>{var t;return null===(t=e.handler)||void 0===t?void 0:t.call(e,this.host)});this.commandShortcuts.bind(t)}}var Ae=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><path d="m38.5 7 60.9 58.044a7 7 0 0 1 0 9.912L38.5 133" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="14"/></svg>',title:"arrow-right",tags:"nordicon arrow right caret pointing triangle chevron"});var Ee=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><g transform="matrix(14,0,0,14,0,0)"><path d="M0.5 3L3 3 6.5 7 9.5 7" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path><path d="M6.5 3L9.5 3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>',title:"keyboard-option",tags:"nordicon keyboard option key shortcut"});const De=r`:host{display:flex}.n-command{display:flex;flex:1;border-inline-start:2px solid transparent;align-items:center;color:var(--n-color-text);border-block-end:1px solid var(--n-color-border);padding:calc(var(--n-space-m)/ 1.5) var(--n-space-m)}.n-command.n-selected,.n-command:hover{cursor:pointer;background-color:var(--n-color-active)}.n-command.n-selected{border-inline-start-color:var(--n-color-accent)}nord-icon{color:var(--n-color-icon)}.n-command-icon{margin-inline-start:2px;margin-inline-end:calc(var(--n-space-s) * 1.4);line-height:var(--n-line-height-tight)}.n-selected .n-command-icon nord-icon{color:var(--n-color-icon-hover)}.n-title{flex:1;margin-inline-end:calc(var(--n-space-s)/ 2);font-size:var(--n-font-size-m);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.n-shortcuts{display:flex;gap:calc(var(--n-space-s)/ 2)}.n-shortcut{padding:calc(var(--n-space-s)/ 4) calc(var(--n-space-s)/ 3);text-transform:capitalize;font-size:var(--n-font-size-xs);border:1px solid var(--n-color-border-strong);font-weight:var(--n-font-weight);box-shadow:var(--n-box-shadow);border-radius:var(--n-border-radius-s);color:var(--n-color-icon);background:var(--n-color-button);line-height:var(--n-line-height-tight);min-inline-size:var(--n-space-s);display:inline-flex;align-items:center;justify-content:center;user-select:none}`,Se=/(?:Key|Digit)([A-Z0-9])/g;se.registerIcon(Ae),se.registerIcon(Ee);let Le=class extends tt{constructor(){super(...arguments),this.selected=!1}ensureInView(){requestAnimationFrame((()=>this.scrollIntoView({block:"nearest"})))}updated(t){t.has("selected")&&this.selected&&this.ensureInView()}render(){var t;return T`<div class="${de({"n-selected":this.selected,"n-command":!0})}"><div aria-hidden="true" class="n-command-icon"><nord-icon size="s" name="${null!==(t=this.command.icon)&&void 0!==t?t:"arrow-right"}"></nord-icon></div><div class="n-title">${this.command.title}</div>${this.renderShortcut()}</div>`}renderShortcut(){if(!this.command.shortcut)return I;const t=this.command.shortcut.replace(Se,"$1");return T`<nord-visually-hidden>, ${t}</nord-visually-hidden><div aria-hidden="true" class="n-shortcuts">${t.split("+").map((t=>T`<div class="n-shortcut">${"alt"===t.toLowerCase()&&navigator.platform.indexOf("Mac")>-1?T`<nord-icon name="${"keyboard-option"}" size="s"></nord-icon>`:t}</div>`))}</div>`}};Le.styles=De,t([it({type:Object})],Le.prototype,"command",void 0),t([it({type:Boolean})],Le.prototype,"selected",void 0),Le=t([nt("nord-command-menu-action")],Le);var Me=Le;class Te extends Vt{constructor(t){super(Te.eventName),this.command=t}}Te.eventName="nord-select";const Oe=r`:host{--n-command-menu-width:640px;--n-command-menu-top:16%;--n-command-menu-height:290px}.n-modal{display:none;position:fixed;pointer-events:none;z-index:var(--n-index-modal);inset-inline-start:0;inset-block-start:0;inline-size:100%;block-size:100%;overflow:auto}.n-modal.n-visible{display:block}.n-modal-content{position:relative;pointer-events:all;inset-block-start:var(--n-command-menu-top);margin:auto;display:flex;flex-direction:column;min-inline-size:0;background:var(--n-color-surface);border-radius:var(--n-border-radius);box-shadow:var(--n-box-shadow-modal);max-inline-size:var(--n-command-menu-width);overflow:hidden}.n-bump{animation:zoom-in-zoom-out var(--n-transition-slowly)}@keyframes zoom-in-zoom-out{0%{transform:translateY(-10px) scale(.97);opacity:0}100%{transform:translateY(0) scale(1.0001);opacity:1}}.n-modal-footer{display:flex;gap:var(--n-space-s);padding:var(--n-space-s) var(--n-space-m);font-size:calc(var(--n-font-size-s) - 1px);color:var(--n-color-text-weaker)}.n-help{display:flex;align-items:center;gap:2px}.n-help+.n-help{padding-inline-start:var(--n-space-s);border-inline-start:1px solid var(--n-color-border-strong)}.n-help nord-icon{--n-icon-size:10px;color:currentColor;margin:3px 4px}.n-help.n-backspace nord-icon{--n-icon-size:12px}.n-search-wrapper{display:flex;border-block-end:1px solid var(--n-color-border)}[role=combobox]{flex:1;font-size:var(--n-font-size-l);font-weight:var(--n-font-weight);font-family:inherit;background:0 0;color:var(--n-color-text);border:none;border-radius:0;appearance:none;outline:0;margin:0;padding:var(--n-space-m)}[role=combobox]::-webkit-input-placeholder{color:var(--n-color-text-weaker);opacity:.6!important}[role=combobox]::-moz-placeholder{color:var(--n-color-text-weaker);opacity:.6!important}[role=combobox]::-ms-input-placeholder{color:var(--n-color-text-weaker);opacity:.6!important}[role=listbox]{max-block-size:var(--n-command-menu-height);overflow:auto;margin:0;padding:0}.n-group-header{line-height:var(--n-line-height);border-block-end:1px solid var(--n-color-border);padding:calc(var(--n-space-s)/ 1.4) var(--n-space-m);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:var(--n-font-size-s);background:var(--n-color-surface-raised);font-weight:var(--n-font-weight-active);color:var(--n-color-text-weaker)}.n-command-empty{display:flex;flex:1;flex-direction:column;border-inline-start:2px solid transparent;align-items:flex-start;color:var(--n-color-text);border-block-end:1px solid var(--n-color-border);padding:calc(var(--n-space-m)/ 1.5) var(--n-space-m)}.n-command-empty .n-title{flex:1;margin-block-start:var(--n-space-s);margin-inline-end:calc(var(--n-space-s)/ 2);max-inline-size:100%;font-size:var(--n-font-size-m);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.n-command-empty .n-tip{flex:1;margin-block-start:var(--n-space-s);margin-block-end:var(--n-space-m);font-size:var(--n-font-size-s);color:var(--n-color-text-weaker)}`;se.registerIcon(he),se.registerIcon(ue),se.registerIcon(pe);let Ie=class extends tt{constructor(){super(...arguments),this.inputRef=St(),this.listRef=St(),this.dismissController=new ze(this,{isOpen:()=>this.open,onDismiss:()=>this.close()}),this.keyboardController=new _e(this,{trigger:()=>this.select(),goBack:()=>this.goBack(),end:()=>this.end(),start:()=>this.start(),next:()=>this.next(),previous:()=>this.previous(),toggleOpen:()=>this.toggleOpen()}),this.open=!1,this.placeholder="Type a command or search...",this.commands=[],this.search="",this.bump=!0,this.selectedIndex=0,this.filteredCommands=[]}get selected(){return this.filteredCommands[this.selectedIndex]}show(t={}){this.dispatchEvent(new Vt("open",{cancelable:!0}))&&(this.open=!0,this.setParent(t.parent))}close(){var t;this.open=!1,null===(t=this.previousFocus)||void 0===t||t.focus(),this.previousFocus=void 0,this.dispatchEvent(new Vt("close"))}toggleOpen(){this.open?this.close():this.show()}focus(){var t;null===(t=this.inputRef.value)||void 0===t||t.focus()}willUpdate(t){t.has("commands")&&this.keyboardController.registerCommandShortcuts(),t.has("open")&&this.open&&(this.bump=!0),(t.has("search")||t.has("parent")||t.has("commands"))&&this.filterCommands()}updated(t){t.has("open")&&this.open&&(this.previousFocus=fe(document),this.focus(),this.listRef.value&&(this.listRef.value.scrollTop=0))}render(){var t;const e=function(t,e){var n;const o=new Map;for(const i of t){const t=i[e],r=null!==(n=o.get(t))&&void 0!==n?n:[];o.has(t)||o.set(t,[]),r.push(i),o.set(t,r)}return o}(this.filteredCommands,"section"),n=0===this.filteredCommands.length?"no-results":null===(t=this.selected)||void 0===t?void 0:t.id;return T`<div class="${de({"n-visible":this.open,"n-modal":!0})}"><div @animationend="${this.handleAnimationEnd}" class="${de({"n-bump":this.bump,"n-modal-content":!0})}"><div class="n-search-wrapper"><nord-visually-hidden id="instructions">Press 'Enter' to confirm your input or 'Escape' to cancel</nord-visually-hidden><input type="text" id="search" @input="${this.handleInput}" @blur="${this.handleBlur}" ${Tt(this.inputRef)} placeholder="${this.placeholder}" .value="${this.search}" spellcheck="false" autocomplete="off" autocapitalize="off" aria-label="Type the name of a command to run." aria-autocomplete="list" aria-haspopup="listbox" role="combobox" aria-controls="list" aria-expanded="true" aria-activedescendant="${ut(n)}" aria-describedby="instructions"></div><div class="n-modal-body"><div id="list" ${Tt(this.listRef)} role="listbox">${0===this.filteredCommands.length?this.renderNoResults():Array.from(e,(([t,e])=>this.renderSection(t,e)))}</div></div><slot name="footer"><div class="n-modal-footer" slot="footer"><span class="n-help"><nord-icon label="Arrow keys" name="${ce}"></nord-icon>Navigate</span> <span class="n-help"><nord-icon label="Enter key" name="${"keyboard-return"}"></nord-icon>Select</span> <span class="n-help">Esc to dismiss</span> <span class="n-help n-backspace"><nord-icon label="Backspace key" name="${"keyboard-backspace"}"></nord-icon>Move to parent</span></div></slot></div></div>`}renderNoResults(){return T`<div id="no-results" class="n-command-empty" role="option" aria-selected="true"><div class="n-title">No results for “${this.search}”</div><div class="n-tip">Search tips: some search terms require exact match. Try typing the entire command name, or use a different word or phrase.</div></div>`}renderSection(t,e){const n=`section-${t}`;return T`<div role="group" aria-labelledby="${ut(t?n:void 0)}">${t?T`<div class="n-group-header" role="presentation" id="${ut(n)}">${t}</div>`:I} ${le(e,(t=>t.id),(t=>{var e,n;return T`<nord-command-menu-action id="${t.id}" .command="${t}" ?selected="${t.id===(null===(e=this.selected)||void 0===e?void 0:e.id)}" @click="${()=>this.select(t)}" role="option" aria-selected="${ut(t.id===(null===(n=this.selected)||void 0===n?void 0:n.id)||void 0)}"></nord-command-menu-action>`}))}</div>`}handleAnimationEnd(){this.bump=!1}handleBlur(){this.open&&this.focus()}handleInput(t){const e=t.target;this.setSearch(e.value)}select(t=this.selected){var e;this.commands.some((e=>e.parent===t.id))?(this.setParent(t.id),this.bump=!0,this.focus()):this.close(),this.setSearch(""),null===(e=t.handler)||void 0===e||e.call(t,this);const n=new Te(t);this.dispatchEvent(n)}start(){this.selectedIndex=0}end(){this.selectedIndex=this.filteredCommands.length-1}next(){this.selectedIndex=ve(this.selectedIndex+1,0,this.filteredCommands.length-1)}previous(){this.selectedIndex=ve(this.selectedIndex-1,0,this.filteredCommands.length-1)}goBack(){if(!this.search&&this.parent){const t=this.commands.find((t=>t.id===this.parent));this.setParent(null==t?void 0:t.parent)}}setParent(t){this.parent=t,this.setSearch("")}setSearch(t){this.search=t,this.selectedIndex=0}filterCommands(){const t=this.search.toLocaleLowerCase().split(/\s+/);this.filteredCommands=this.commands.filter((({title:e,keywords:n="",parent:o})=>{const i=`${e} ${n}`.toLocaleLowerCase(),r=t.every((t=>i.includes(t)));return(!this.parent&&this.search||o===this.parent)&&r}))}};Ie.styles=[lt,Oe],t([it({type:Boolean})],Ie.prototype,"open",void 0),t([it({type:String})],Ie.prototype,"placeholder",void 0),t([it({type:Array,attribute:!1})],Ie.prototype,"commands",void 0),t([rt()],Ie.prototype,"parent",void 0),t([rt()],Ie.prototype,"search",void 0),t([rt()],Ie.prototype,"bump",void 0),t([rt()],Ie.prototype,"selectedIndex",void 0),t([rt()],Ie.prototype,"filteredCommands",void 0),Ie=t([nt("nord-command-menu")],Ie);var Ne=Ie;const Re=r`.n-select-container{position:relative;inline-size:fit-content}:host([expand]){inline-size:100%}:host([expand]) .n-select-container{inline-size:100%}select{-webkit-appearance:none;appearance:none;position:absolute;font-size:var(--n-font-size-m);font-family:var(--n-font-family);color:var(--n-color-text);inline-size:100%;opacity:.0001;cursor:pointer;background:0 0;border:0;block-size:var(--n-space-xl);inset-block-end:0;inset-inline-start:0;z-index:2}nord-button{--n-button-text-align:start}.n-label-container:hover+.n-select-container nord-button,select:hover+nord-button{--n-button-background-color:var(--n-color-button-hover);--n-button-border-color:var(--n-color-border-hover)}.n-label-container:hover+.n-select-container nord-button svg,select:hover+nord-button svg{color:var(--n-color-icon-hover)}select:focus+nord-button{--n-button-border-color:var(--n-color-accent);--n-button-box-shadow:0 0 0 1px var(--n-button-border-color)}:host([disabled]){cursor:auto;pointer-events:none}::slotted(:not([slot])){display:none}[slot=after] svg{color:var(--n-color-icon);margin-inline-start:var(--n-space-m);margin-inline-end:calc(var(--n-space-s)/ -2);min-inline-size:calc(var(--n-space-l)/ 2.2);max-inline-size:calc(var(--n-space-l)/ 2.2)}::slotted([slot=before]){margin-inline-start:calc(var(--n-space-s) * -1);margin-inline-end:var(--n-space-s)}select[aria-invalid=true]+nord-button{--n-button-border-color:var(--n-color-status-danger)}`;let Be=class extends(Jt(Nt(It(tt)))){constructor(){super(...arguments),this.defaultSlot=new Ut(this),this.inputId="select"}get formValue(){return this.value||void 0}render(){const t=this.options,e=this.getButtonText(t);return T`<slot></slot>${this.renderLabel()}<div class="n-select-container"><select ${Tt(this.focusableRef)} id="${this.inputId}" ?disabled="${this.disabled}" ?required="${this.required}" name="${ut(this.name)}" @change="${this.handleChange}" @input="${this.handleInput}" aria-describedby="${ut(this.getDescribedBy())}" aria-invalid="${ut(this.getInvalid())}">${this.placeholder&&T`<option value="" disabled="disabled" ?selected="${!this.value}">${this.placeholder}</option>`} ${t.map((t=>this.renderOption(t)))}</select><nord-button tabindex="-1" ?disabled="${this.disabled}" ?expand="${this.expand}" aria-hidden="true" type="button"><slot slot="before" name="before"></slot>${e}<div slot="after">${Wt('<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M105 56a10.416 10.416 0 0 1-7.42-3.08L72.478 27.818a3.528 3.528 0 0 0-4.956 0L42.42 52.92a10.5 10.5 0 0 1-14.84-14.84l35-35a10.486 10.486 0 0 1 14.84 0l35 35A10.5 10.5 0 0 1 105 56zm-35 84a10.416 10.416 0 0 1-7.42-3.08l-35-35a10.5 10.5 0 0 1 14.84-14.84l25.102 25.102a3.528 3.528 0 0 0 4.956 0L97.58 87.08a10.5 10.5 0 1 1 14.84 14.84l-35 35A10.416 10.416 0 0 1 70 140z"/></svg>')}</div></nord-button></div>${this.renderError()}`}get options(){return Array.from(this.querySelectorAll("option"))}getButtonText(t){const e=t.find((t=>t.value===this.value));return e?e.text:this.placeholder?this.placeholder:t[0]?t[0].text:""}renderOption(t){return T`<option value="${ut(t.value)}" ?disabled="${t.disabled}" ?selected="${t.value===this.value}">${t.text}</option>`}};Be.styles=[lt,Gt,Re],Be=t([nt("nord-select")],Be);var Pe=Be;const Ue=r`:host{display:flex;flex-flow:column wrap;justify-content:flex-start;font-size:var(--n-font-size-m);color:var(--n-color-text);gap:var(--n-stack-gap,var(--n-space-m))}:host([direction=horizontal]){align-items:center;flex-direction:row}:host([align-items=center]){align-items:center}:host([align-items=start]){align-items:flex-start}:host([align-items=end]){align-items:flex-end}:host([justify-content=center]){justify-content:center}:host([justify-content=start]){justify-content:flex-start}:host([justify-content=end]){justify-content:flex-end}::slotted(*){margin:0!important}:host([gap=none]){--n-stack-gap:0}:host([gap="s"]){--n-stack-gap:var(--n-space-s)}:host([gap="m"]){--n-stack-gap:var(--n-space-m)}:host([gap="l"]){--n-stack-gap:var(--n-space-l)}:host([gap=xl]){--n-stack-gap:var(--n-space-xl)}:host([gap=xxl]){--n-stack-gap:var(--n-space-xxl)}`;let He=class extends tt{constructor(){super(...arguments),this.gap="m",this.direction="vertical"}render(){return T`<slot></slot>`}};He.styles=[lt,Ue],t([it({reflect:!0})],He.prototype,"gap",void 0),t([it({reflect:!0})],He.prototype,"direction",void 0),t([it({reflect:!0,attribute:"align-items"})],He.prototype,"alignItems",void 0),t([it({reflect:!0,attribute:"justify-content"})],He.prototype,"justifyContent",void 0),He=t([nt("nord-stack")],He);var Fe=He;const je=r`:host{--n-icon-size:var(--n-size-icon-m);block-size:var(--n-icon-size);color:inherit}:host([size=xs]){--n-icon-size:var(--n-size-icon-xs)}:host([size="s"]){--n-icon-size:var(--n-size-icon-s)}:host([size="l"]){--n-icon-size:var(--n-size-icon-l)}:host([size=xl]){--n-icon-size:var(--n-size-icon-xl)}:host([size=xxl]){--n-icon-size:var(--n-size-icon-xxl)}.n-spinner,.n-spinner::after{position:absolute;inset-block-start:50%;inset-inline-start:50%;z-index:var(--n-index-spinner);transform:translateZ(0) translateX(-50%) translateY(-50%);transform-origin:0 0}.n-spinner{block-size:var(--n-icon-size);inline-size:var(--n-icon-size);font-size:var(--n-icon-size);color:var(--n-color-accent);border:.18em solid transparent;border-inline-start:.18em solid currentColor;border-radius:var(--n-border-radius-circle);animation:nRotate .66s linear infinite}.n-spinner::after{box-sizing:content-box;inline-size:100%;block-size:100%;overflow:hidden;content:"";border:.18em solid currentColor;border-radius:var(--n-border-radius-circle);opacity:.3}@keyframes nRotate{0%{transform:translateZ(0) rotate(0) translateX(-50%) translateY(-50%)}100%{transform:translateZ(0) rotate(360deg) translateX(-50%) translateY(-50%)}}`;function Ye(t){class e extends t{connectedCallback(){super.connectedCallback(),e._warningLogged||(console.warn(`NORD: %c${this.localName}%c should not be used in production, as it is in draft status.`,"font-weight:bold","font-weight:normal"),e._warningLogged=!0)}}return e._warningLogged=!1,e}let We=class extends(Ye(tt)){constructor(){super(...arguments),this.size="m"}render(){return T`<div class="n-spinner" role="${ut(this.label?"img":void 0)}" aria-label="${ut(this.label)}" style="${ut(this.color?`color:${this.color}`:void 0)}"></div>`}};We.styles=[lt,je],t([it({reflect:!0})],We.prototype,"size",void 0),t([it({reflect:!0})],We.prototype,"color",void 0),t([it({reflect:!0})],We.prototype,"label",void 0),We=t([nt("nord-spinner")],We);var qe=We;const Ve=r`nord-table{all:initial;color:var(--n-color-text)}nord-table[density=condensed]{--n-table-td-padding:calc(var(--n-space-m) * 0.7)}nord-table[density=default]{--n-table-td-padding:calc(var(--n-space-m) * 0.95)}nord-table[density=relaxed]{--n-table-td-padding:calc(var(--n-space-m) * 1.2);--n-table-th-padding:var(--n-space-m)}nord-table table{inline-size:100%;font-size:var(--n-font-size-m);font-family:var(--n-font-family);font-feature-settings:var(--n-font-features);line-height:var(--n-line-height-tight);text-align:start;border-spacing:0;border-collapse:separate;color:var(--n-color-text);font-variant-numeric:tabular-nums}nord-table th{border-block-end:1px solid var(--n-color-border);font-weight:var(--n-font-weight-active);font-size:var(--n-font-size-s);color:var(--n-color-text-weaker);padding:calc(var(--n-table-th-padding,var(--n-table-td-padding))/ 1.1) var(--n-space-m);text-align:start;background:var(--n-color-surface-raised);position:-webkit-sticky;position:sticky;inset-block-start:0;z-index:3}nord-table td{border-block-end:1px solid var(--n-color-border);padding:var(--n-table-td-padding) var(--n-space-m);white-space:nowrap}@media (max-width:1000px){nord-table td,nord-table th{padding:var(--n-table-td-padding) var(--n-space-s)}}nord-table tbody tr:hover{background:var(--n-color-active)}nord-table tbody .active,nord-table tbody .active:hover{background:var(--n-color-active);color:var(--n-color-text);opacity:1;cursor:default}nord-table tbody .active td,nord-table tbody tr:hover td{color:var(--n-color-text)}nord-table tbody .active nord-badge,nord-table tbody tr:hover nord-badge{--n-badge-color:var(--n-color-text)}nord-card nord-table tbody tr:last-child td{border-block-end-color:transparent}nord-table .n-table-ellipsis{max-inline-size:0;inline-size:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}nord-table .n-table-align-right{text-align:end}nord-table .n-table-actions{display:flex;justify-content:center}nord-table .n-table-actions nord-button{margin-block:-10px}`;let Ze=class extends tt{constructor(){super(...arguments),this.density="default"}connectedCallback(){super.connectedCallback(),this.renderStyles()}renderStyles(){const t=this.getRootNode(),e=t.nodeType===Node.DOCUMENT_NODE?t.head:t;const n=this.localName;t.querySelector(`style[data-component=${n}]`)||R(T`<style data-component="${n}">${Ve}</style>`,e)}createRenderRoot(){return this}};Ze.styles=Ve,t([it({reflect:!0})],Ze.prototype,"density",void 0),Ze=t([nt("nord-table")],Ze);var Xe=Ze;const Ke=r`.n-input{min-block-size:var(--n-textarea-height,76px);transition:border var(--n-transition-slowly),box-shadow var(--n-transition-slowly),background var(--n-transition-slowly);display:block;resize:vertical}:host([resize=auto]) .n-input{resize:none;overflow:hidden}`;let Je=class extends(Jt(Nt(It(tt)))){constructor(){super(...arguments),this.inputId="textarea",this.resize="vertical"}updated(t){(t.has("resize")||t.has("value"))&&this.resizeToFitContent()}render(){var t;return T`${this.renderLabel()}<div class="n-input-container"><textarea ${Tt(this.focusableRef)} id="${this.inputId}" class="n-input" ?disabled="${this.disabled}" ?required="${this.required}" name="${ut(this.name)}" .value="${null!==(t=this.value)&&void 0!==t?t:""}" placeholder="${ut(this.placeholder)}" @change="${this.handleChange}" @input="${this.handleInput}" aria-describedby="${ut(this.getDescribedBy())}" aria-invalid="${ut(this.getInvalid())}"></textarea></div>${this.renderError()}`}resizeToFitContent(){const t=this.focusableRef.value;t&&("auto"===this.resize?(t.style.height="auto",t.style.height=`${t.scrollHeight}px`):t.style.height=null)}};Je.styles=[lt,Gt,Qt,Ke],t([it({reflect:!0})],Je.prototype,"resize",void 0),Je=t([nt("nord-textarea")],Je);var Ge=Je;var Qe=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M105 57.4 47.6 2.8a10.566 10.566 0 1 0-14.56 15.316l51.968 49.35a3.486 3.486 0 0 1 0 5.068l-51.968 49.35a10.502 10.502 0 0 0 14.462 15.232l57.638-54.74A17.584 17.584 0 0 0 105 57.4z"/></svg>',title:"arrow-right-small",tags:"nordicon arrow right small caret pointing triangle chevron"});var tn=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M99.736 140a10.486 10.486 0 0 1-7.238-2.884L35 82.6a17.598 17.598 0 0 1-.14-24.976l57.638-54.74a10.502 10.502 0 1 1 14.462 15.232l-51.968 49.35a3.486 3.486 0 0 0 0 5.068l51.968 49.35A10.5 10.5 0 0 1 99.736 140z"/></svg>',title:"arrow-left-small",tags:"nordicon arrow left small caret pointing triangle chevron"});var en=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M70 110.236a17.332 17.332 0 0 1-12.306-5.096L2.884 47.502A10.502 10.502 0 1 1 18.116 33.04l49.35 51.968a3.486 3.486 0 0 0 5.068 0l49.35-51.968a10.502 10.502 0 1 1 15.232 14.462L82.6 105a17.766 17.766 0 0 1-12.6 5.236z"/></svg>',title:"arrow-down-small",tags:"nordicon arrow down small caret pointing triangle chevron"});const nn=t=>t.preventDefault();class on{constructor(t,e){var n;this.attached=!1,this.initialTouchX=0,this.initialTouchY=0,this.handleTouchStart=t=>{const[{pageX:e,pageY:n}]=t.changedTouches;this.initialTouchX=e,this.initialTouchY=n},this.handleTouchEnd=t=>{const[{pageX:e,pageY:n}]=t.changedTouches,o=e-this.initialTouchX,i=n-this.initialTouchY,r={initialX:this.initialTouchX,initialY:this.initialTouchY,pageX:e,pageY:n,distX:o,distY:i};this.matchesGesture(r)&&(t.preventDefault(),this.onSwipeEnd(r))},this.host=t,t.addController(this),this.target=null!==(n=null==e?void 0:e.target)&&void 0!==n?n:()=>t,this.matchesGesture=e.matchesGesture,this.onSwipeEnd=e.onSwipeEnd}hostUpdated(){if(!this.attached){this.attached=!0;const t=this.target();t.addEventListener("touchstart",this.handleTouchStart),t.addEventListener("touchmove",nn),t.addEventListener("touchend",this.handleTouchEnd)}}hostDisconnected(){this.attached=!1;const t=this.target();t.removeEventListener("touchstart",this.handleTouchStart),t.removeEventListener("touchmove",nn),t.removeEventListener("touchend",this.handleTouchEnd)}}const rn=({distX:t,distY:e})=>Math.abs(t)>=70&&Math.abs(e)<=70,sn=({distX:t,distY:e})=>Math.abs(e)>=70&&Math.abs(t)<=70&&e>0;class an{constructor(t){this.host=t,this.host=t,t.addController(this)}get dir(){return document.documentElement.dir||"ltr"}get isLTR(){return"ltr"===this.dir}get isRTL(){return"rtl"===this.dir}hostConnected(){an.observer||(an.observer=new MutationObserver(an.observe),an.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]})),an.hosts.has(this.host)||an.hosts.add(this.host)}hostDisconnected(){var t;an.hosts.delete(this.host),0===an.hosts.size&&(null===(t=an.observer)||void 0===t||t.disconnect(),an.observer=void 0)}static observe(){an.hosts.forEach((t=>t.requestUpdate()))}}an.hosts=new Set;const ln=/^(\d{4})-(\d{2})-(\d{2})$/;function dn(t,e,n){const o=parseInt(n,10),i=parseInt(e,10),r=parseInt(t,10);if(Number.isInteger(r)&&Number.isInteger(i)&&Number.isInteger(o)&&i>0&&i<=12&&o>0&&o<=31&&r>0){const t=new Date(r,i-1,o);return t.setFullYear(r),t}}function cn(t){if(!t)return;const e=t.match(ln);return e?dn(e[1],e[2],e[3]):void 0}function hn(t){if(!t)return"";const e=t.getDate().toString(10),n=(t.getMonth()+1).toString(10);return`${t.getFullYear().toString(10).padStart(4,"0")}-${n.padStart(2,"0")}-${e.padStart(2,"0")}`}function un(t,e){return null!=t&&null!=e&&(t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth())}function pn(t,e){return null!=t&&null!=e&&(un(t,e)&&t.getDate()===e.getDate())}function vn(t,e){const n=new Date(t);return n.setDate(n.getDate()+e),n}function fn(t,e=1){const n=new Date(t),o=n.getDay(),i=(o<e?7:0)+o-e;return n.setDate(n.getDate()-i),n}function bn(t,e=1){const n=new Date(t),o=n.getDay(),i=6+(o<e?-7:0)-(o-e);return n.setDate(n.getDate()+i),n}function gn(t){const e=new Date(t.getFullYear(),t.getMonth(),1);return e.setFullYear(t.getFullYear()),e}function mn(t){const e=new Date(t.getFullYear(),t.getMonth()+1,0);return e.setFullYear(t.getFullYear()),e}function yn(t,e){const n=new Date(t);return n.setMonth(e),n}function xn(t,e){const n=new Date(t);return n.setFullYear(e),n}function wn(t,e,n){const o=t.getTime();return e&&e instanceof Date&&o<e.getTime()?e:n&&n instanceof Date&&o>n.getTime()?n:t}function $n(t,e,n){return wn(t,e,n)===t}function kn(t,e=1){return function(t,e){const n=[];let o=t;for(;!pn(o,e);)n.push(o),o=vn(o,1);return n.push(o),n}(fn(gn(t),e),bn(mn(t),e))}const zn={prevMonthLabel:"Previous month",nextMonthLabel:"Next month",monthSelectLabel:"Month",yearSelectLabel:"Year",calendarHeading:"Choose a date",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],locale:"en-GB"};function Cn({onFocusIn:t,onFocusOut:e,selectedDate:n,focusedDate:o,labelledById:i,localization:r,firstDayOfWeek:s,min:a,max:l,dateFormatter:d,isDateDisabled:c,onDateSelect:h,onKeyboardNavigation:u}){const p=new Date,v=kn(o,s);return T`<table class="n-calendar-table" aria-labelledby="${i}" @focusin="${t}" @focusout="${function(t){const n=t.currentTarget,o=t.relatedTarget;o&&!n.contains(o)&&e(t)}}"><thead><tr>${f=r.dayNames,b=s,g=t=>T`<th class="n-calendar-table-header" scope="col"><span aria-hidden="true">${t.substr(0,2)}</span><nord-visually-hidden>${t}</nord-visually-hidden></th>`,f.map(((t,e)=>{const n=(e+b)%f.length;return g(f[n])}))}</tr></thead><tbody>${function(t,e){const n=[];for(let o=0;o<t.length;o+=e)n.push(t.slice(o,o+e));return n}(v,7).map((t=>T`<tr class="n-calendar-row">${t.map((t=>T`<td class="n-calendar-cell">${(({focusedDay:t,today:e,day:n,onDaySelect:o,onKeyboardNavigation:i,disabled:r,inRange:s,isSelected:a,dateFormatter:l})=>{const d=pn(n,e),c=un(n,t),h=pn(n,t),u=!s;return T`<button class="${de({"n-calendar-day":!0,"is-outside":u,"is-month":c,"is-disabled":r})}" tabindex="${h?0:-1}" @click="${()=>o(n)}" @keydown="${i}" aria-disabled="${ut(r?"true":void 0)}" ?disabled="${u}" type="button" aria-pressed="${a?"true":"false"}" aria-current="${ut(d?"date":void 0)}" aria-label="${l.format(n)}"><span aria-hidden="true">${n.getDate()}</span></button>`})({day:t,today:p,focusedDay:o,isSelected:pn(t,n),disabled:c(t),inRange:$n(t,a,l),onDaySelect:h,dateFormatter:d,onKeyboardNavigation:u})}</td>`))}</tr>`))}</tbody></table>`;var f,b,g}class _n extends Vt{constructor(t,e){super(t),this.date=e}}const An=r`:host{font-feature-settings:var(--n-font-features-reduced)}.n-calendar{-webkit-user-select:none;user-select:none;background:var(--n-color-surface);box-shadow:var(--n-calendar-box-shadow,var(--n-box-shadow-popout));border-radius:var(--n-border-radius-s);max-inline-size:310px;min-inline-size:290px;padding:var(--n-calendar-padding,16px 16px 20px)}@media (max-width:35.9375em){.n-calendar{max-inline-size:100%}}.n-calendar-table{border-collapse:collapse;border-spacing:0;color:var(--n-color-text);font-size:var(--n-font-size-m);font-weight:var(--n-font-weight);line-height:var(--n-date-picker-line-height);text-align:center;inline-size:100%}.n-calendar-table-header{font-size:var(--n-font-size-s);font-weight:var(--n-font-weight-active);letter-spacing:1px;line-height:var(--n-date-picker-line-height);padding-block-end:8px;text-decoration:none;text-transform:uppercase}.n-calendar-cell{text-align:center}.n-calendar-day{-moz-appearance:none;-webkit-appearance:none;appearance:none;background:0 0;border:0;border-radius:var(--n-border-radius-s);color:var(--n-color-text);cursor:pointer;display:inline-block;font-family:var(--n-font-family);font-size:var(--n-font-size-m);font-variant-numeric:tabular-nums;font-weight:var(--n-font-weight);block-size:36px;padding:0 0 1px;position:relative;text-align:center;vertical-align:middle;inline-size:36px;z-index:1}.n-calendar-day[aria-current=date]{box-shadow:0 0 0 1px var(--n-color-accent);color:var(--n-color-text-link);position:relative;z-index:200}.n-calendar-day:hover{background:var(--n-color-active)}.n-calendar-day:focus,.n-calendar-day[aria-pressed=true]{background:var(--n-color-accent);box-shadow:none;color:var(--n-color-text-on-accent);outline:0}.n-calendar-day:active{background:var(--n-color-accent);box-shadow:none!important;color:var(--n-color-text-on-accent);z-index:200}.n-calendar-day:focus{box-shadow:0 0 5px var(--n-color-accent);z-index:200}.n-calendar-day:not(.is-month){box-shadow:none}.n-calendar-day:not(.is-month),.n-calendar-day[aria-disabled=true]{background:0 0;color:var(--n-color-text-weakest);cursor:default}.n-calendar-day[aria-disabled=true][aria-current=date]{box-shadow:0 0 0 1px var(--n-color-accent)}.n-calendar-day[aria-disabled=true][aria-current=date]:focus{box-shadow:0 0 5px var(--n-color-accent);background:var(--n-color-accent);color:var(--n-color-text-on-accent)}.n-calendar-day[aria-disabled=true]:not([aria-current=date])::before{display:none}.n-calendar-day.is-outside{background:0 0;box-shadow:none;color:var(--n-color-text-weakest);cursor:default;pointer-events:none}.n-calendar-day.is-outside::before{display:none}.n-calendar-header{align-items:center;display:flex;justify-content:space-between;margin-block-end:16px;inline-size:100%}.n-calendar-nav{white-space:nowrap}.n-calendar-nav nord-button{--n-button-padding-x:11px;margin-inline-start:calc(var(--n-space-s)/ 2)}.n-calendar-select{display:inline-flex;margin-block-start:4px;position:relative;line-height:var(--n-line-height-heading)}.n-calendar-select span{margin-inline-end:var(--n-space-s)}.n-calendar-select select{cursor:pointer;font-size:var(--n-font-size-l);block-size:100%;inset-inline-start:0;opacity:0;position:absolute;inset-block-start:0;inline-size:100%;z-index:2}.n-calendar-select select:focus+.n-calendar-select-label{box-shadow:0 0 0 2px var(--n-color-accent)}.n-calendar-select-label{align-items:center;border-radius:var(--n-border-radius-s);color:var(--n-color-text);display:flex;font-size:var(--n-font-size-xl);font-weight:var(--n-font-weight-active);line-height:var(--n-date-picker-line-height);padding:0 4px 0 8px;pointer-events:none;position:relative;inline-size:100%;z-index:1}`;se.registerIcon(Qe),se.registerIcon(tn),se.registerIcon(en);const En=t=>e=>{e.preventDefault(),t(e)},Dn=()=>!1;let Sn=class extends tt{constructor(){super(...arguments),this.dialogLabelId="dialog-header",this.direction=new an(this),this.swipe=new on(this,{matchesGesture:rn,onSwipeEnd:({distX:t})=>this.addMonths(t<0?1:-1)}),this.shortcuts=xe({ArrowRight:En((()=>this.addDays(this.direction.isLTR?1:-1))),ArrowLeft:En((()=>this.addDays(this.direction.isLTR?-1:1))),ArrowDown:En((()=>this.addDays(7))),ArrowUp:En((()=>this.addDays(-7))),Home:En((()=>this.startOfWeek())),End:En((()=>this.endOfWeek())),PageUp:En((()=>this.addMonths(-1))),PageDown:En((()=>this.addMonths(1))),"Shift+PageUp":En((()=>this.addYears(-1))),"Shift+PageDown":En((()=>this.addYears(1)))}),this.localization=zn,this.value="",this.firstDayOfWeek=1,this.min="",this.max="",this.isDateDisabled=Dn,this.activeFocus=!1,this.focusedDay=new Date,this.handleDaySelect=t=>{const e=$n(t,cn(this.min),cn(this.max)),n=!this.isDateDisabled(t);e&&n&&(this.value=hn(t),this.dispatchEvent(new _n("change",t)))},this.handleMonthSelect=t=>{this.setMonth(parseInt(t.target.value,10))},this.handleYearSelect=t=>{this.setYear(parseInt(t.target.value,10))},this.handleNextMonthClick=t=>{t.preventDefault(),this.addMonths(1)},this.handlePreviousMonthClick=t=>{t.preventDefault(),this.addMonths(-1)},this.enableActiveFocus=()=>{this.activeFocus=!0},this.disableActiveFocus=()=>{this.activeFocus=!1}}focus(t){var e;const n=null!==(e=null==t?void 0:t.target)&&void 0!==e?e:"day";"day"===n?this.focusedDayNode.focus():"month"===n&&this.monthSelectNode.focus()}willUpdate(t){t.has("value")&&this.setFocusedDay(cn(this.value)||new Date),t.has("localization")&&this.createDateFormatter()}updated(t){t.has("focusedDay")&&this.activeFocus&&this.focusedDayNode.focus()}render(){const t=cn(this.value),e=this.focusedDay.getMonth(),n=this.focusedDay.getFullYear(),o=cn(this.min),i=cn(this.max),r=o?gn(o):void 0,s=i?mn(i):void 0,a=(t||this.focusedDay).getFullYear(),l=o?o.getFullYear():a-10,d=i?i.getFullYear():a+10;return T`<div class="n-calendar"><div class="n-calendar-header"><div><nord-visually-hidden><h2 id="${this.dialogLabelId}" aria-live="polite" aria-atomic="true">${this.localization.monthNames[e]}, ${this.focusedDay.getFullYear()}</h2></nord-visually-hidden><div class="n-calendar-select"><select aria-label="${this.localization.monthSelectLabel}" class="n-calendar-select-month" @input="${this.handleMonthSelect}">${this.localization.monthNames.map(((t,o)=>T`<option key="${t}" value="${o}" ?selected="${o===e}" ?disabled="${!$n(new Date(n,o,1),r,s)}">${t}</option>`))}</select><div class="n-calendar-select-label" aria-hidden="true"><span>${this.localization.monthNamesShort[e]}</span><nord-icon color="var(--n-color-icon)" name="arrow-down-small" size="xs"></nord-icon></div></div><div class="n-calendar-select"><select aria-label="${this.localization.yearSelectLabel}" class="n-calendar-select-year" @input="${this.handleYearSelect}">${le(function(t,e){const n=[];for(let o=t;o<=e;o++)n.push(o);return n}(l,d),(t=>t),(t=>T`<option key="${t}" ?selected="${t===n}">${t}</option>`))}</select><div class="n-calendar-select-label" aria-hidden="true"><span>${this.focusedDay.getFullYear()}</span><nord-icon color="var(--n-color-icon)" name="arrow-down-small" size="xs"></nord-icon></div></div></div><div class="n-calendar-nav"><nord-button class="n-calendar-prev" @click="${this.handlePreviousMonthClick}" ?disabled="${un(o,this.focusedDay)}" type="button"><nord-visually-hidden>${this.localization.prevMonthLabel}</nord-visually-hidden><nord-icon color="var(--n-color-icon)" name="${this.direction.isLTR?"arrow-left-small":"arrow-right-small"}" size="s"></nord-icon></nord-button><nord-button class="n-calendar-next" @click="${this.handleNextMonthClick}" ?disabled="${un(i,this.focusedDay)}" type="button"><nord-visually-hidden>${this.localization.nextMonthLabel}</nord-visually-hidden><nord-icon color="var(--n-color-icon)" name="${this.direction.isLTR?"arrow-right-small":"arrow-left-small"}" size="s"></nord-icon></nord-button></div></div>${Cn({onFocusOut:this.disableActiveFocus,onFocusIn:this.enableActiveFocus,dateFormatter:this.dateFormatShort,selectedDate:t,focusedDate:this.focusedDay,onDateSelect:this.handleDaySelect,onKeyboardNavigation:this.shortcuts,labelledById:this.dialogLabelId,localization:this.localization,firstDayOfWeek:this.firstDayOfWeek,min:o,max:i,isDateDisabled:this.isDateDisabled})}</div>`}createDateFormatter(){this.dateFormatShort=new Intl.DateTimeFormat(this.localization.locale,{day:"numeric",month:"long"})}addDays(t){this.setFocusedDay(vn(this.focusedDay,t))}addMonths(t){this.setMonth(this.focusedDay.getMonth()+t)}addYears(t){this.setYear(this.focusedDay.getFullYear()+t)}startOfWeek(){this.setFocusedDay(fn(this.focusedDay,this.firstDayOfWeek))}endOfWeek(){this.setFocusedDay(bn(this.focusedDay,this.firstDayOfWeek))}setMonth(t){const e=yn(gn(this.focusedDay),t),n=mn(e),o=yn(this.focusedDay,t);this.setFocusedDay(wn(o,e,n))}setYear(t){const e=xn(gn(this.focusedDay),t),n=mn(e),o=xn(this.focusedDay,t);this.setFocusedDay(wn(o,e,n))}setFocusedDay(t){this.focusedDay=wn(t,cn(this.min),cn(this.max)),this.dispatchEvent(new _n("nord-focus-date",this.focusedDay))}};Sn.styles=[lt,An],t([st(".n-calendar-select-month",!0)],Sn.prototype,"monthSelectNode",void 0),t([st('button[tabindex="0"]')],Sn.prototype,"focusedDayNode",void 0),t([it({attribute:!1})],Sn.prototype,"localization",void 0),t([it()],Sn.prototype,"value",void 0),t([it({type:Number})],Sn.prototype,"firstDayOfWeek",void 0),t([it()],Sn.prototype,"min",void 0),t([it()],Sn.prototype,"max",void 0),t([it({attribute:!1})],Sn.prototype,"isDateDisabled",void 0),t([rt()],Sn.prototype,"activeFocus",void 0),t([rt()],Sn.prototype,"focusedDay",void 0),Sn=t([nt("nord-calendar")],Sn);var Ln=Sn;var Mn=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><path d="M7 21h126v112H7zM35 7v28m70-28v28M7 63h126" stroke-width="14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></svg>',title:"interface-calendar",tags:"nordicon interface calendar date time day week month year"});var Tn=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M89.796 74.956a7 7 0 0 1 0-9.912L136.92 17.92a10.5 10.5 0 0 0-14.84-14.84L74.956 50.204a7 7 0 0 1-9.912 0L17.92 3.08A10.5 10.5 0 0 0 3.08 17.92l47.124 47.124a7 7 0 0 1 0 9.912L3.08 122.08a10.5 10.5 0 1 0 14.84 14.84l47.124-47.124a7 7 0 0 1 9.912 0l47.124 47.124a10.5 10.5 0 0 0 14.84-14.84z"/></svg>',title:"interface-close-small",tags:"nordicon interface close remove small cross delete erase symbol"});const On=r`:host{--n-date-picker-color-overlay:rgba(0, 0, 0, 0.8);--n-date-picker-line-height:1.25;--n-date-picker-toggle-height:34px;color:var(--n-color-text);font-size:var(--n-font-size-m);position:relative}.n-input-container{inline-size:fit-content}:host([expand]) .n-input-container{inline-size:100%}.n-date-toggle{-webkit-appearance:none;appearance:none;min-block-size:var(--n-date-picker-toggle-height);border-start-end-radius:var(--n-border-radius-s);border-end-end-radius:var(--n-border-radius-s);box-shadow:var(--n-box-shadow),var(--n-box-shadow);padding:1px calc(var(--n-space-m)/ 1.5) 0;color:var(--n-color-icon);cursor:pointer;background:var(--n-color-button);position:absolute;inset-inline-end:1px;inset-block-start:1px;border:0;border-inline-start:1px solid var(--n-color-border-strong);transition:color var(--n-transition-slowly),background var(--n-transition-slowly)}@media (max-width:35.9375em){.n-date-toggle{padding-block-start:0}}.n-date-toggle:hover{color:var(--n-color-icon-hover)}.n-date-toggle:focus{border:0;box-shadow:0 0 0 2px var(--n-color-accent);outline:0}.n-date-toggle:active{opacity:.8}.n-date-toggle:disabled{box-shadow:none;background:0 0;border:0;color:var(--n-color-text-weakest);cursor:default}.n-date-toggle::after{content:"";position:absolute;background:0 0;background-image:linear-gradient(to bottom,rgba(0,0,0,0) 50%,rgba(0,0,0,.013) 100%);background-repeat:repeat-x;inline-size:100%;inset-inline:0;block-size:100%;inset-block-start:0}.n-input{padding-inline-end:calc(var(--n-space-s) * 1.6 + var(--n-date-picker-toggle-height))}[role=dialog]{display:flex;font-feature-settings:var(--n-font-features-reduced);opacity:0;position:absolute;inset-block-start:100%;inset-inline-start:0;transform:scale(.98) translateZ(0) translateY(-10px);transform-origin:top right;transition:transform var(--n-transition-slowly),opacity var(--n-transition-slowly),visibility var(--n-transition-slowly);visibility:hidden;will-change:transform,opacity,visibility;z-index:var(--n-index-dropdown)}@media (max-width:35.9375em){[role=dialog]{inset-block:0;position:fixed;inline-size:100%;inset-inline-end:0;min-inline-size:320px;transform:translateZ(0);transform-origin:bottom center}.n-date-dialog-content{box-shadow:var(--n-box-shadow-modal)}}[role=dialog].is-left{inset-inline:auto 0;inline-size:auto}[role=dialog][aria-hidden=false]{transition-property:transform,opacity;opacity:1;transform:scale(1.0001) translateZ(0) translateY(0);visibility:visible}.n-date-dialog-content{margin-inline-start:auto;margin-block-start:8px;position:relative;transform:none;z-index:var(--n-index-dropdown)}nord-calendar{box-shadow:var(--n-box-shadow-popup)}@media (max-width:35.9375em){.n-date-dialog-content{background:var(--n-color-background);border:0;border-radius:0;border-start-start-radius:var(--n-border-radius-s);border-start-end-radius:var(--n-border-radius-s);inset-block-end:0;inset-inline-start:0;inline-size:100%;margin:0;max-inline-size:none;min-block-size:26em;opacity:0;padding:0 8% 20px;position:absolute;transform:translateZ(0) translateY(100%);transition:transform .4s ease,opacity .4s ease,visibility .4s ease;visibility:hidden;will-change:transform,opacity,visibility}[role=dialog][aria-hidden=false] .n-date-dialog-content{opacity:1;transform:translateZ(0) translateY(0);visibility:visible}nord-calendar{--n-calendar-box-shadow:none;--n-calendar-padding:0}}.n-date-header{align-items:center;display:flex;justify-content:space-between;margin-block-end:16px;inline-size:100%}.n-date-mobile{align-items:center;border-block-end:1px solid rgba(0,0,0,.12);display:flex;justify-content:space-between;margin-block-end:20px;margin-inline-start:-10%;overflow:hidden;padding:12px 20px;position:relative;text-overflow:ellipsis;white-space:nowrap;inline-size:120%}@media (min-width:36em){.n-date-mobile{border:0;margin:0;overflow:visible;padding:0;position:absolute;inset-inline-end:-8px;inset-block-start:-8px;inline-size:auto}}.n-date-mobile-heading{display:inline-block;font-size:var(--n-font-size-m);font-weight:var(--n-font-weight-active);max-inline-size:84%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width:36em){.n-date-mobile-heading{display:none}}.n-date-close{-webkit-appearance:none;align-items:center;appearance:none;background:var(--n-color-background);border:0;border-radius:var(--n-border-radius);color:var(--n-color-text);cursor:pointer;display:flex;block-size:var(--n-size-icon-l);inline-size:var(--n-size-icon-l);justify-content:center;padding:0;z-index:10}@media (min-width:36em){.n-date-close{opacity:0}}.n-date-close:focus{box-shadow:0 0 0 2px var(--n-color-accent);outline:0}@media (min-width:36em){.n-date-close:focus{opacity:1}}.n-date-close svg{margin:0 auto}`,In={parse:cn,format:hn},Nn={...zn,closeLabel:"Close window",buttonLabel:"Choose date",selectedDateMessage:"Selected date is"};se.registerIcon(Mn),se.registerIcon(Tn);const Rn=/[^0-9./-]+/g,Bn=()=>!1;let Pn=class extends(Jt(Nt(It(tt)))){constructor(){super(...arguments),this.dismiss=new ze(this,{isOpen:()=>this.open,onDismiss:t=>this.hide("click"!==t.type),isDismissible:t=>t!==this.calendar&&t!==this.toggleButton}),this.swipe=new on(this,{target:()=>this.dialog,matchesGesture:sn,onSwipeEnd:()=>this.hide(!1)}),this.open=!1,this.value="",this.min="",this.max="",this.direction="right",this.firstDayOfWeek=1,this.localization=Nn,this.dateAdapter=In,this.isDateDisabled=Bn,this.handleDaySelect=t=>{t.stopPropagation(),this.setValue(t.date),this.hide()},this.toggleOpen=t=>{t.preventDefault(),this.open?this.hide(!1):this.show()},this.handleBlur=t=>{t.stopPropagation(),this.dispatchEvent(new Vt("blur"))},this.handleFocus=t=>{t.stopPropagation(),this.dispatchEvent(new Vt("focus"))},this.handleInputChange=t=>{const e=t.target;!function(t,e){const{value:n}=t,o=t.selectionStart,i=n.slice(0,o),r=n.slice(o,n.length),s=i.replace(e,""),a=s+r.replace(e,""),l=s.length;t.value=a,t.selectionStart=l,t.selectionEnd=l}(e,Rn),this.dispatchEvent(new Vt("input"));const n=this.dateAdapter.parse(e.value,dn);(n||""===e.value)&&this.setValue(n)}}get valueAsDate(){return cn(this.value)}set valueAsDate(t){this.value=t?hn(t):""}get valueAsNumber(){var t,e;return null!==(e=null===(t=this.valueAsDate)||void 0===t?void 0:t.getTime())&&void 0!==e?e:NaN}set valueAsNumber(t){this.value=t?hn(new Date(t)):""}show(){this.open=!0,this.dispatchEvent(new Vt("open")),this.updateComplete.then((()=>this.calendar.focus({target:"month"})))}hide(t=!0){this.open=!1,this.dispatchEvent(new Vt("close")),t&&this.toggleButton.focus()}willUpdate(t){t.has("localization")&&this.createDateFormatters()}createDateFormatters(){this.dateFormatLong=new Intl.DateTimeFormat(this.localization.locale,{day:"numeric",month:"long",year:"numeric"})}render(){const{valueAsDate:t}=this,e=t?this.dateAdapter.format(t):"";return T`${this.renderLabel()}<div class="n-input-container"><input class="n-input" name="${this.name}" .value="${e}" placeholder="${ut(this.placeholder)}" id="${this.inputId}" ?disabled="${this.disabled}" ?required="${this.required}" aria-autocomplete="none" @input="${this.handleInputChange}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" autocomplete="off" ${Tt(this.focusableRef)} aria-invalid="${ut(this.error?"true":void 0)}" aria-describedby="${ut(this.getDescribedBy())}"> <button class="n-date-toggle" @click="${this.toggleOpen}" ?disabled="${this.disabled}" type="button"><nord-icon name="interface-calendar" size="s"></nord-icon><nord-visually-hidden>${Nn.buttonLabel} ${t?T`<span>, ${Nn.selectedDateMessage} ${this.dateFormatLong.format(t)}</span>`:I}</nord-visually-hidden></button></div>${this.renderError()}<div class="${de({"is-left":"left"===this.direction,"is-active":this.open})}" role="dialog" aria-modal="true" aria-hidden="${this.open?"false":"true"}" aria-labelledby="dialog-header"><div class="n-date-dialog-content"><div aria-hidden="true" tabindex="0" @focus="${this.focusLast}"></div><div class="n-date-mobile"><div class="n-date-mobile-heading" id="dialog-header">${this.localization.calendarHeading}</div><button class="n-date-close" @click="${this.hide}" type="button"><nord-icon color="var(--n-color-icon)" name="interface-close-small" size="xs"></nord-icon><nord-visually-hidden>${this.localization.closeLabel}</nord-visually-hidden></button></div><nord-calendar value="${this.value}" min="${this.min}" max="${this.max}" .localization="${this.localization}" .firstDayOfWeek="${this.firstDayOfWeek}" .isDateDisabled="${this.isDateDisabled}" @change="${this.handleDaySelect}"></nord-calendar><div aria-hidden="true" tabindex="0" @focus="${this.focusFirst}"></div></div></div>`}focusFirst(){this.closeButton.focus()}focusLast(){this.calendar.focus({target:"day"})}setValue(t){this.value=t?hn(t):"",this.dispatchEvent(new Vt("change"))}};Pn.styles=[lt,Gt,Qt,On],t([st(".n-date-toggle",!0)],Pn.prototype,"toggleButton",void 0),t([st(".n-date-close",!0)],Pn.prototype,"closeButton",void 0),t([st("nord-calendar",!0)],Pn.prototype,"calendar",void 0),t([st('[role="dialog"]',!0)],Pn.prototype,"dialog",void 0),t([rt()],Pn.prototype,"open",void 0),t([it()],Pn.prototype,"value",void 0),t([it()],Pn.prototype,"min",void 0),t([it()],Pn.prototype,"max",void 0),t([it()],Pn.prototype,"direction",void 0),t([it({attribute:"first-day-of-week",type:Number})],Pn.prototype,"firstDayOfWeek",void 0),t([it({attribute:!1})],Pn.prototype,"localization",void 0),t([it({attribute:!1})],Pn.prototype,"dateAdapter",void 0),t([it({attribute:!1})],Pn.prototype,"isDateDisabled",void 0),Pn=t([nt("nord-date-picker")],Pn);var Un=Pn;var Hn=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M41.86 131.25a23.982 23.982 0 0 1-18.494-8.666L2.254 95.746a10.5 10.5 0 1 1 16.492-12.992l21 26.6a2.24 2.24 0 0 0 2.212.882 3.038 3.038 0 0 0 2.38-1.148l76.958-96.39a10.5 10.5 0 1 1 16.408 13.104L60.606 122.29A24.038 24.038 0 0 1 42 131.25z"/></svg>',title:"interface-checked-small",tags:"nordicon interface checked small symbol checkmark done ready"});const Fn=r`:host{display:inline-block;font-size:var(--n-font-size-m)}.n-flex{display:flex}.n-expand{flex:1}.n-input-container{position:relative}input{--n-checkbox-size:calc(var(--n-space-m) * 1.25);--n-checkbox-accent-color:var(--n-color-accent);-moz-appearance:none;-webkit-appearance:none;appearance:none;border:1px solid var(--n-checkbox-border-color,var(--n-color-border-hover));border-radius:var(--n-border-radius-s);display:block;inline-size:var(--n-checkbox-size);block-size:var(--n-checkbox-size);cursor:pointer}input:checked{--n-checkbox-border-color:var(--n-color-accent);background:var(--n-checkbox-accent-color)}input[aria-invalid]{--n-checkbox-accent-color:var(--n-color-status-danger);--n-checkbox-border-color:var(--n-checkbox-accent-color)}input:focus-visible{outline:0!important}input:focus{outline:0!important;box-shadow:0 0 0 1px var(--n-color-surface),0 0 0 3px var(--n-color-accent)}input:active{opacity:.8}:host([disabled]) label{color:var(--n-color-text-weaker);cursor:default}:host([disabled]) input{--n-checkbox-accent-color:var(--n-color-border-strong);--n-checkbox-border-color:var(--n-checkbox-accent-color);background:var(--n-checkbox-accent-color);cursor:default;opacity:1}nord-icon{display:none;position:absolute;color:var(--n-color-text-on-accent);inset-inline-start:calc(var(--n-space-s)/ 2);inset-block-start:calc(var(--n-space-s)/ 2);z-index:var(--n-index-default);pointer-events:none}input:checked+nord-icon{display:block}.n-label-container{padding-block-end:0}label{-webkit-user-select:none;user-select:none;font-weight:var(--n-font-weight)!important;line-height:var(--n-line-height-l);padding-inline-start:var(--n-space-s);cursor:pointer}.n-hint{padding-inline-start:var(--n-space-s)}.n-error{margin-block-start:calc(var(--n-space-s)/ 2);padding-inline-start:var(--n-space-s)}`;se.registerIcon(Hn);let jn=class extends(Jt(Nt(It(tt)))){constructor(){super(...arguments),this.checked=!1}get formValue(){return this.checked?this.value||"on":void 0}render(){return T`<div class="n-flex"><div class="n-input-container"><input ${Tt(this.focusableRef)} class="n-input" id="${this.inputId}" type="checkbox" name="${ut(this.name)}" .value="${this.value}" .checked="${this.checked}" ?disabled="${this.disabled}" ?required="${this.required}" aria-describedby="${ut(this.getDescribedBy())}" aria-invalid="${ut(this.getInvalid())}" @change="${this.handleChange}"><nord-icon name="interface-checked-small" size="s"></nord-icon></div><div class="n-expand">${this.renderLabel()} ${this.renderError()}</div></div>`}handleChange(t){const e=t.target;this.checked=e.checked,super.handleChange(t)}};jn.styles=[lt,Gt,Fn],t([it({type:Boolean})],jn.prototype,"checked",void 0),jn=t([nt("nord-checkbox")],jn);var Yn=jn;function Wn(t){return t.split("-")[0]}function qn(t){return t.split("-")[1]}function Vn(t){return["top","bottom"].includes(Wn(t))?"x":"y"}function Zn(t){return"y"===t?"height":"width"}function Xn(t){let{reference:e,floating:n,placement:o}=t;const i=e.x+e.width/2-n.width/2,r=e.y+e.height/2-n.height/2;let s;switch(Wn(o)){case"top":s={x:i,y:e.y-n.height};break;case"bottom":s={x:i,y:e.y+e.height};break;case"right":s={x:e.x+e.width,y:r};break;case"left":s={x:e.x-n.width,y:r};break;default:s={x:e.x,y:e.y}}const a=Vn(o),l=Zn(a);switch(qn(o)){case"start":s[a]=s[a]-(e[l]/2-n[l]/2);break;case"end":s[a]=s[a]+(e[l]/2-n[l]/2)}return s}function Kn(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function Jn(t,e){void 0===e&&(e={});const{x:n,y:o,platform:i,rects:r,elements:s,strategy:a}=t,{boundary:l="clippingParents",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:h=!1,padding:u=0}=e,p=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(u),v=s[h?"floating"===c?"reference":"floating":c],f=await i.getClippingClientRect({element:await i.isElement(v)?v:v.contextElement||await i.getDocumentElement({element:s.floating}),boundary:l,rootBoundary:d}),b=Kn(await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===c?{...r.floating,x:n,y:o}:r.reference,offsetParent:await i.getOffsetParent({element:s.floating}),strategy:a}));return{top:f.top-b.top+p.top,bottom:b.bottom-f.bottom+p.bottom,left:f.left-b.left+p.left,right:b.right-f.right+p.right}}const Gn=Math.min,Qn=Math.max;function to(t,e,n){return Qn(t,Gn(e,n))}const eo={left:"right",right:"left",bottom:"top",top:"bottom"};function no(t){return t.replace(/left|right|bottom|top/g,(t=>eo[t]))}const oo={start:"end",end:"start"};function io(t){return t.replace(/start|end/g,(t=>oo[t]))}const ro=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:a}=e;if(null!=(n=r.flip)&&n.skip)return{};const{mainAxis:l=!0,crossAxis:d=!0,fallbackPlacements:c,fallbackStrategy:h="bestFit",flipAlignment:u=!0,...p}=t,v=Wn(i),f=c||(v===a||!u?[no(a)]:function(t){const e=no(t);return[io(t),e,io(e)]}(a)),b=[a,...f],g=await Jn(e,p),m=[];let y=(null==(o=r.flip)?void 0:o.overflows)||[];if(l&&m.push(g[v]),d){const{main:t,cross:e}=function(t,e){const n="start"===qn(t),o=Vn(t),i=Zn(o);let r="x"===o?n?"right":"left":n?"bottom":"top";return e.reference[i]>e.floating[i]&&(r=no(r)),{main:r,cross:no(r)}}(i,s);m.push(g[t],g[e])}if(y=[...y,{placement:i,overflows:m}],!m.every((t=>t<=0))){var x,w;const t=(null!=(x=null==(w=r.flip)?void 0:w.index)?x:0)+1,e=b[t];if(e)return{data:{index:t,overflows:y},reset:{placement:e}};let n="bottom";switch(h){case"bestFit":{var $;const t=null==($=y.slice().sort(((t,e)=>t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)-e.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)))[0])?void 0:$.placement;t&&(n=t);break}case"initialPlacement":n=a}return{data:{skip:!0},reset:{placement:n}}}return{}}}};const so=function(t){return void 0===t&&(t=0),{name:"offset",options:t,fn(e){const{x:n,y:o,placement:i,rects:r}=e,s=function(t){let{placement:e,rects:n,value:o}=t;const i=Wn(e),r=["left","top"].includes(i)?-1:1,s="function"==typeof o?o({...n,placement:e}):o,{mainAxis:a,crossAxis:l}="number"==typeof s?{mainAxis:s,crossAxis:0}:{mainAxis:0,crossAxis:0,...s};return"x"===Vn(i)?{x:l,y:a*r}:{x:a*r,y:l}}({placement:i,rects:r,value:t});return{x:n+s.x,y:o+s.y,data:s}}}};function ao(t){return"[object Window]"===(null==t?void 0:t.toString())}function lo(t){if(null==t)return window;if(!ao(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function co(t){return lo(t).getComputedStyle(t)}function ho(t){return ao(t)?"":t?(t.nodeName||"").toLowerCase():""}function uo(t){return t instanceof lo(t).HTMLElement}function po(t){return t instanceof lo(t).Element}function vo(t){return t instanceof lo(t).ShadowRoot||t instanceof ShadowRoot}function fo(t){const{overflow:e,overflowX:n,overflowY:o}=co(t);return/auto|scroll|overlay|hidden/.test(e+o+n)}function bo(t){return["table","td","th"].includes(ho(t))}function go(t){const e=navigator.userAgent.toLowerCase().includes("firefox"),n=co(t);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter}const mo=Math.min,yo=Math.max,xo=Math.round;function wo(t,e){void 0===e&&(e=!1);const n=t.getBoundingClientRect();let o=1,i=1;return e&&uo(t)&&(o=t.offsetWidth>0&&xo(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&xo(n.height)/t.offsetHeight||1),{width:n.width/o,height:n.height/i,top:n.top/i,right:n.right/o,bottom:n.bottom/i,left:n.left/o,x:n.left/o,y:n.top/i}}function $o(t){return(e=t,(e instanceof lo(e).Node?t.ownerDocument:t.document)||window.document).documentElement;var e}function ko(t){return ao(t)?{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}:{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function zo(t){return wo($o(t)).left+ko(t).scrollLeft}function Co(t,e,n){const o=uo(e),i=$o(e),r=wo(t,o&&function(t){const e=wo(t);return xo(e.width)!==t.offsetWidth||xo(e.height)!==t.offsetHeight}(e));let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==ho(e)||fo(i))&&(s=ko(e)),uo(e)){const t=wo(e,!0);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}else i&&(a.x=zo(i));return{x:r.left+s.scrollLeft-a.x,y:r.top+s.scrollTop-a.y,width:r.width,height:r.height}}function _o(t){return"html"===ho(t)?t:t.assignedSlot||t.parentNode||(vo(t)?t.host:null)||$o(t)}function Ao(t){return uo(t)&&"fixed"!==getComputedStyle(t).position?t.offsetParent:null}function Eo(t){const e=lo(t);let n=Ao(t);for(;n&&bo(n)&&"static"===getComputedStyle(n).position;)n=Ao(n);return n&&("html"===ho(n)||"body"===ho(n)&&"static"===getComputedStyle(n).position&&!go(n))?e:n||function(t){let e=_o(t);for(;uo(e)&&!["html","body"].includes(ho(e));){if(go(e))return e;e=e.parentNode}return null}(t)||e}function Do(t){return{width:t.offsetWidth,height:t.offsetHeight}}function So(t){return["html","body","#document"].includes(ho(t))?t.ownerDocument.body:uo(t)&&fo(t)?t:So(_o(t))}function Lo(t,e){var n;void 0===e&&(e=[]);const o=So(t),i=o===(null==(n=t.ownerDocument)?void 0:n.body),r=lo(o),s=i?[r].concat(r.visualViewport||[],fo(o)?o:[]):o,a=e.concat(s);return i?a:a.concat(Lo(_o(s)))}function Mo(t,e){return"viewport"===e?Kn(function(t){const e=lo(t),n=$o(t),o=e.visualViewport;let i=n.clientWidth,r=n.clientHeight,s=0,a=0;return o&&(i=o.width,r=o.height,Math.abs(e.innerWidth/o.scale-o.width)<.01&&(s=o.offsetLeft,a=o.offsetTop)),{width:i,height:r,x:s,y:a}}(t)):po(e)?function(t){const e=wo(t),n=e.top+t.clientTop,o=e.left+t.clientLeft;return{top:n,left:o,x:o,y:n,right:o+t.clientWidth,bottom:n+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}(e):Kn(function(t){var e;const n=$o(t),o=ko(t),i=null==(e=t.ownerDocument)?void 0:e.body,r=yo(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=yo(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let a=-o.scrollLeft+zo(t);const l=-o.scrollTop;return"rtl"===co(i||n).direction&&(a+=yo(n.clientWidth,i?i.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}($o(t)))}function To(t){const e=Lo(_o(t)),n=["absolute","fixed"].includes(co(t).position)&&uo(t)?Eo(t):t;return po(n)?e.filter((t=>po(t)&&function(t,e){const n=null==e.getRootNode?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&vo(n)){let n=e;do{if(n&&t===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(t,n)&&"body"!==ho(t))):[]}const Oo={getElementRects:t=>{let{reference:e,floating:n,strategy:o}=t;return{reference:Co(e,Eo(n),o),floating:{...Do(n),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:t=>function(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=uo(n),r=$o(n);if(n===r)return e;let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((i||!i&&"fixed"!==o)&&(("body"!==ho(n)||fo(r))&&(s=ko(n)),uo(n))){const t=wo(n,!0);a.x=t.x+n.clientLeft,a.y=t.y+n.clientTop}return{...e,x:e.x-s.scrollLeft+a.x,y:e.y-s.scrollTop+a.y}}(t),getOffsetParent:t=>{let{element:e}=t;return Eo(e)},isElement:t=>po(t),getDocumentElement:t=>{let{element:e}=t;return $o(e)},getClippingClientRect:t=>function(t){let{element:e,boundary:n,rootBoundary:o}=t;const i=[..."clippingParents"===n?To(e):[].concat(n),o],r=i[0],s=i.reduce(((t,n)=>{const o=Mo(e,n);return t.top=yo(o.top,t.top),t.right=mo(o.right,t.right),t.bottom=mo(o.bottom,t.bottom),t.left=yo(o.left,t.left),t}),Mo(e,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(t),getDimensions:t=>{let{element:e}=t;return Do(e)},getClientRects:t=>{let{element:e}=t;return e.getClientRects()}},Io=(t,e,n)=>(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n;let a=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:l,y:d}=Xn({...a,placement:o}),c=o,h={};for(let n=0;n<r.length;n++){const{name:u,fn:p}=r[n],{x:v,y:f,data:b,reset:g}=await p({x:l,y:d,initialPlacement:o,placement:c,strategy:i,middlewareData:h,rects:a,platform:s,elements:{reference:t,floating:e}});l=null!=v?v:l,d=null!=f?f:d,h={...h,[u]:null!=b?b:{}},g&&("object"==typeof g&&(g.placement&&(c=g.placement),g.rects&&(a=!0===g.rects?await s.getElementRects({reference:t,floating:e,strategy:i}):g.rects),({x:l,y:d}=Xn({...a,placement:c}))),n=-1)}return{x:l,y:d,placement:c,strategy:i,middlewareData:h}})(t,e,{platform:Oo,...n});function No(t,e){const n=t.getAttribute(e);return n?n.split(/\s+/):[]}function Ro(t,e,n){t.setAttribute(e,n.join(" "))}const Bo=r`:host{--n-tooltip-background:rgba(20, 20, 20, 0.95);--n-tooltip-color:#fff;--n-tooltip-key-border:rgba(255, 255, 255, 0.03);--n-tooltip-key-background:rgba(255, 255, 255, 0.1);position:absolute;pointer-events:none;visibility:hidden;opacity:0;transition:opacity .4s ease,visibility .4s ease;z-index:var(--n-index-popout)}.n-tooltip{gap:var(--n-space-s);font-family:var(--n-font-family);font-size:var(--n-font-size-xs);line-height:var(--n-line-height);color:var(--n-tooltip-color);padding:calc(var(--n-space-s)/ 1.5) var(--n-space-s);background-color:var(--n-tooltip-background);border-radius:var(--n-border-radius-s)}.n-tooltip,.n-tooltip-shortcut{display:flex;align-items:center}.n-tooltip-shortcut{gap:2px}::slotted([slot=shortcut]){box-sizing:border-box;margin:0;inline-size:var(--n-size-icon-m);block-size:var(--n-size-icon-m);border-radius:var(--n-border-radius-s);border:1px solid var(--n-tooltip-key-border)!important;padding:1px!important;text-align:center;font-size:var(--n-font-size-xs);line-height:var(--n-line-height-tight);letter-spacing:-.5px;vertical-align:middle!important;background-color:var(--n-tooltip-key-background)}`;var Po;let Uo=Po=class extends tt{constructor(){super(...arguments),this.shortcutSlot=new Ut(this,"shortcut"),this.proxy=document.createElement("span"),this.visible=!1,this.position="top",this.role="tooltip",this.id="",this.delay=300,this.updatePosition=()=>{return Io(this.targetElement,this,{placement:this.position,middleware:[(t={padding:8},void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=t,d={x:n,y:o},c=await Jn(e,l),h=Vn(Wn(i)),u="x"===h?"y":"x";let p=d[h],v=d[u];if(r){const t="y"===h?"bottom":"right";p=to(p+c["y"===h?"top":"left"],p,p-c[t])}if(s){const t="y"===u?"bottom":"right";v=to(v+c["y"===u?"top":"left"],v,v-c[t])}const f=a.fn({...e,[h]:p,[u]:v});return{...f,data:{x:f.x-n,y:f.y-o}}}}),so(8),ro()]}).then((({x:t,y:e})=>{this.style.insetInlineStart=`${t}px`,this.style.insetBlockStart=`${e}px`}));var t},this.handleScroll=()=>{this.visible&&this.updatePosition()},this.showTooltip=()=>{var t;this.visible||(null===(t=Po.lastOpened)||void 0===t||t.hideTooltip(),Po.lastOpened=this,this.updatePosition().then((()=>{this.visible=!0})))},this.hideTooltip=()=>{this.visible=!1},this.hideOnEscape=t=>{this.visible&&"Escape"===t.key&&this.hideTooltip()},this.addDescribedBy=()=>{var t,e;const n=null===(e=null===(t=this.targetElement)||void 0===t?void 0:t.focusableRef)||void 0===e?void 0:e.value;n&&(this.proxy.hidden=!0,this.proxy.id=this.id,this.proxy.textContent=this.textContent,n.insertAdjacentElement("afterend",this.proxy),function(t,e,n){const o=No(t,e);o.includes(n)||Ro(t,e,o.concat(n))}(n,"aria-describedby",this.id))},this.removeDescribedBy=()=>{var t,e;const n=null===(e=null===(t=this.targetElement)||void 0===t?void 0:t.focusableRef)||void 0===e?void 0:e.value;n&&(this.proxy.remove(),function(t,e,n){const o=No(t,e);o.includes(n)&&Ro(t,e,o.filter((t=>t!==n)))}(n,"aria-describedby",this.id))}}connectedCallback(){super.connectedCallback();const t=this.getRootNode(),e=`[aria-describedby='${this.id}']`,n=t.querySelector(e);n?(this.targetElement=n,n.addEventListener("keydown",this.hideOnEscape),n.addEventListener("mouseenter",this.showTooltip),n.addEventListener("mouseleave",this.hideTooltip),n.addEventListener("focus",this.showTooltip),n.addEventListener("blur",this.hideTooltip),window.addEventListener("resize",this.updatePosition,{passive:!0}),window.addEventListener("scroll",this.handleScroll,{passive:!0})):console.warn("NORD: tooltip found no element matching selector:",e)}disconnectedCallback(){super.disconnectedCallback(),this.targetElement&&(this.targetElement.removeEventListener("keydown",this.hideOnEscape),this.targetElement.removeEventListener("mouseenter",this.showTooltip),this.targetElement.removeEventListener("mouseleave",this.hideTooltip),this.targetElement.removeEventListener("focus",this.showTooltip),this.targetElement.removeEventListener("blur",this.hideTooltip),window.removeEventListener("resize",this.updatePosition),window.removeEventListener("scroll",this.handleScroll))}willUpdate(t){t.has("id")&&!this.id&&console.warn("NORD: The tooltip requires an id attribute and value"),t.has("visible")&&(this.visible?(this.addDescribedBy(),this.style.transitionDelay=`${this.delay}ms`,this.style.visibility="visible",this.style.opacity="1"):(this.removeDescribedBy(),this.style.transitionDelay="0ms",this.style.visibility="hidden",this.style.opacity="0"))}render(){return T`<div class="n-tooltip"><slot></slot><div class="n-tooltip-shortcut" ?hidden="${this.shortcutSlot.isEmpty}"><slot class="n-tooltip-key" name="shortcut"></slot></div></div>`}};Uo.styles=[lt,Bo],t([rt()],Uo.prototype,"visible",void 0),t([it({reflect:!0})],Uo.prototype,"position",void 0),t([it({reflect:!0})],Uo.prototype,"role",void 0),t([it({reflect:!0})],Uo.prototype,"id",void 0),t([it({reflect:!0,type:Number})],Uo.prototype,"delay",void 0),Uo=Po=t([nt("nord-tooltip")],Uo);var Ho=Uo;const Fo=r`fieldset{border:none}.n-label-container{margin-block-end:var(--n-space-s)}`;let jo=class extends tt{constructor(){super(...arguments),this.errorSlot=new Ut(this,"error"),this.hintSlot=new Ut(this,"hint"),this.label=""}render(){const{hasError:t}=this;return T`<fieldset aria-invalid="${ut(t?"true":void 0)}" aria-describedby="${ut(t?"error":void 0)}"><legend class="n-label-container"><slot class="n-label" name="label">${this.label}</slot><div class="n-caption n-hint" ?hidden="${!this.hasHint}"><slot name="hint">${this.hint}</slot></div></legend><slot></slot><div class="n-caption n-error" id="error" role="alert" ?hidden="${!this.hasError}"><slot name="error">${this.error}</slot></div></fieldset>`}get hasHint(){return Boolean(this.hint)||this.hintSlot.hasContent}get hasError(){return Boolean(this.error)||this.errorSlot.hasContent}};jo.styles=[lt,Gt,Fo],t([it()],jo.prototype,"label",void 0),t([it()],jo.prototype,"hint",void 0),t([it()],jo.prototype,"error",void 0),jo=t([nt("nord-fieldset")],jo);var Yo=jo;class Wo extends Ut{constructor(t,e){super(t,e.slotName),this.options=e,this.onChange=()=>{this.syncLightDom()},this.options=e,this.renderHook=document.createComment(this.slotName),this.lightDom=new Ot(t,{render:()=>this.hasContent?I:this.options.render(),renderOptions:{renderBefore:this.renderHook}})}hostConnected(){super.hostConnected(),this.host.appendChild(this.renderHook),this.syncLightDom()}hostDisconnected(){super.hostDisconnected(),this.renderHook.remove()}syncLightDom(){const t=this.content;t&&this.options.syncLightDom(t)}}const qo=r`:host{--n-radio-size:calc(var(--n-space-m) * 1.25);display:inline-block;line-height:var(--n-line-height);font-size:var(--n-font-size-m)}.n-flex{display:flex}.n-expand{flex:1}.n-input-container{position:relative}::slotted(input){--n-radio-accent-color:var(--n-color-accent);-moz-appearance:none;-webkit-appearance:none;appearance:none;margin:0!important;border:1px solid var(--n-radio-border-color,var(--n-color-border-hover))!important;border-radius:var(--n-border-radius-circle)!important;display:block!important;inline-size:var(--n-radio-size)!important;block-size:var(--n-radio-size)!important;cursor:pointer}::slotted(input:checked){--n-radio-border-color:var(--n-color-accent);background:var(--n-radio-accent-color)}::slotted(input[aria-invalid]){--n-radio-accent-color:var(--n-color-status-danger);--n-radio-border-color:var(--n-radio-accent-color)}::slotted(input:active){opacity:.8}::slotted(input:focus-visible){outline:0!important}::slotted(input:focus){outline:0!important;box-shadow:0 0 0 1px var(--n-color-surface),0 0 0 3px var(--n-color-accent)}:host([disabled]) ::slotted(input){--n-radio-accent-color:var(--n-color-border-strong);--n-radio-border-color:var(--n-radio-accent-color);background:var(--n-radio-accent-color);cursor:default;opacity:1}:host([disabled]) ::slotted(label){color:var(--n-color-text-weaker);cursor:default}.n-dot{--n-radio-dot-size:var(--n-space-s);--n-radio-dot-inset:calc((var(--n-radio-size) - var(--n-radio-dot-size)) / 2);position:absolute;border-radius:var(--n-border-radius-circle);inline-size:var(--n-radio-dot-size);block-size:var(--n-radio-dot-size);background-color:var(--n-color-text-on-accent);inset-inline-start:var(--n-radio-dot-inset);inset-block-start:var(--n-radio-dot-inset);z-index:var(--n-index-default);pointer-events:none}.n-label-container{padding-block-end:0}::slotted(label){-webkit-user-select:none;user-select:none;font-weight:var(--n-font-weight)!important;line-height:var(--n-line-height-l)!important;padding-inline-start:var(--n-space-s)!important;cursor:pointer}.n-hint{padding-inline-start:var(--n-space-s)}.n-error{margin-block-start:calc(var(--n-space-s)/ 2);padding-inline-start:var(--n-space-s)}`;let Vo=0;const Zo=t=>`nord-radio-${t}-${Vo++}`;let Xo=class extends(Jt(Nt(It(tt)))){constructor(){super(...arguments),this.inputId=Zo("input"),this.hintId=Zo("hint"),this.errorId=Zo("error"),this.hintSlot=new Wo(this,{slotName:"hint",render:()=>this.hint?T`<div slot="hint-internal" id="${this.hintId}">${this.hint}</div>`:I,syncLightDom:t=>{t.id=this.hintId}}),this.labelSlot=new Wo(this,{slotName:"label",render:()=>this.label?T`<label slot="label-internal" for="${this.inputId}">${this.label}</label>`:I,syncLightDom:t=>{!function(t){return"label"===t.localName}(t)?console.warn('NORD: Only <label> elements should be placed in radio\'s "label" slot'):t.htmlFor=this.inputId}}),this.errorSlot=new Wo(this,{slotName:"error",render:()=>this.error?T`<div slot="error-internal" id="${this.errorId}">${this.error}</div>`:I,syncLightDom:t=>{t.id=this.hintId}}),this.inputSlot=new Ot(this,{render:()=>T`<input slot="input" @blur="${this.handleBlur}" @focus="${this.handleFocus}" ${Tt(this.focusableRef)} class="n-input" id="${this.inputId}" type="radio" name="${ut(this.name)}" .value="${this.value}" .checked="${this.checked}" ?disabled="${this.disabled}" ?required="${this.required}" aria-describedby="${ut(this.getDescribedBy())}" aria-invalid="${ut(this.getInvalid())}">`}),this.checked=!1,this.handleBlur=t=>{t.stopPropagation(),this.dispatchEvent(new Event("blur",{bubbles:!1,cancelable:!0}))},this.handleFocus=t=>{t.stopPropagation(),this.dispatchEvent(new Event("focus",{bubbles:!1,cancelable:!0}))}}get formValue(){}willUpdate(t){if(t.has("checked")){!t.get("checked")&&this.checked&&this.uncheckSiblings()}}render(){return T`<div class="n-flex"><div class="n-input-container" @change="${this.handleChange}"><slot name="input"></slot>${this.checked?T`<div class="n-dot"></div>`:I}</div><div class="n-expand"><div class="n-label-container">${t=this.hideLabel,e=()=>T`<slot name="label"></slot><slot name="label-internal"></slot>`,n=t=>T`<nord-visually-hidden>${t}</nord-visually-hidden>`,t?n(e()):e()}<div class="n-caption n-hint" ?hidden="${!this.hasHint}"><slot name="hint"></slot><slot name="hint-internal"></slot></div></div><div class="n-caption n-error" role="alert" ?hidden="${!this.hasError}"><slot name="error"></slot><slot name="error-internal"></slot></div></div></div>`;var t,e,n}uncheckSiblings(){this.getRootNode().querySelectorAll(`nord-radio[name="${this.name}"]`).forEach((t=>{t!==this&&(t.checked=!1)}))}handleChange(t){t.stopPropagation();const e=t.target;this.checked=e.checked,super.handleChange(t)}};Xo.styles=[lt,Gt,qo],t([it({type:Boolean,reflect:!0})],Xo.prototype,"checked",void 0),Xo=t([nt("nord-radio")],Xo);var Ko=Xo;const Jo=r`:host{--n-banner-box-shadow:none;font-size:var(--n-font-size-m);color:var(--n-color-text)}::slotted(*){margin:0!important}::slotted(a){color:var(--n-color-text-link);text-decoration:underline}::slotted(a:hover){text-decoration:none}.n-header,.n-header-actions{display:flex;flex-flow:row wrap;align-items:center;gap:var(--n-space-m)}.n-header{padding:var(--n-space-m) var(--n-space-l);background-color:var(--n-color-surface);border-block-end:1px solid var(--n-color-border);box-shadow:var(--n-box-shadow-header);min-block-size:var(--n-space-xxl)}.n-header-actions{margin-inline-start:auto;gap:var(--n-space-s)}`;let Go=class extends(Ye(tt)){constructor(){super(...arguments),this.actionSlot=new Ut(this,"action")}render(){return T`<header class="n-header"><slot></slot><div class="n-header-actions" ?hidden="${this.actionSlot.isEmpty}"><slot name="action"></slot></div></header>`}};Go.styles=[lt,Jo],Go=t([nt("nord-header")],Go);var Qo=Go;const ti=r`:host{all:unset;display:block;color:var(--n-color-text-weak);font-weight:var(--n-font-weight);font-family:var(--n-font-family);line-height:var(--n-line-height-tight);white-space:nowrap;text-overflow:ellipsis;user-select:none;font-size:var(--n-font-size-m)}*,::after,::before{box-sizing:border-box}[role=list]{margin-block-end:var(--n-space-m);min-inline-size:100%;list-style:none;appearance:none;border:0;box-sizing:border-box;margin:0;padding:0}.n-heading{min-inline-size:100%;color:var(--n-color-nav-heading);font-weight:var(--n-font-weight-active);font-size:var(--n-font-size-m);padding-inline-start:var(--n-space-s);margin-block-end:var(--n-space-s)}`;let ei=class extends(Ye(tt)){render(){return T`${this.heading?T`<p id="heading" aria-hidden="true" class="n-heading">${this.heading}</p>`:I}<div role="list" aria-labelledby="${this.heading?"heading":I}"><slot></slot></div>`}};ei.styles=ti,t([it()],ei.prototype,"heading",void 0),ei=t([nt("nord-nav-group")],ei);var ni=ei;const oi=r`:host{all:unset;display:block;font-size:var(--n-font-size-m);font-feature-settings:var(--n-font-features);font-family:var(--n-font-family)}*,::after,::before{box-sizing:border-box}.n-nav-item{display:flex;align-items:center;font-family:inherit;font-size:inherit;line-height:var(--n-line-height-tight);-webkit-appearance:none;appearance:none;color:var(--n-color-text-weak);padding:var(--n-space-s);min-block-size:28px;margin-block-end:1px;border-radius:var(--n-border-radius-s);text-decoration:none;inline-size:100%;background:0 0;cursor:pointer;border:0;text-align:start;box-shadow:var(--n-nav-item-box-shadow,none)}.n-nav-item:focus{--n-nav-item-box-shadow:0 0 0 2px var(--n-color-accent);outline:0;position:relative;z-index:var(--n-index-masked)}.n-nav-item:hover{background:var(--n-color-nav-hover);color:var(--n-color-text)}.n-nav-item:active{opacity:.7}.n-content{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host([active]) .n-nav-item{--n-nav-item-box-shadow:var(--n-box-shadow);background:var(--n-color-accent);color:var(--n-color-text-on-accent);font-weight:var(--n-font-weight-active)}:host([active]) .n-nav-item:focus{--n-nav-item-box-shadow:0 0 0 1px var(--n-color-nav-surface),0 0 0 3px var(--n-color-accent)}:host([active]) nord-icon{color:currentColor}.n-toggle-icon{color:var(--n-color-icon);margin-inline-end:var(--n-space-s);margin-inline-start:var(--n-space-s)}.n-toggle-icon.n-rtl{transform:rotate(-180deg)}[aria-expanded=true] .n-toggle-icon{transform:rotate(90deg)}.n-nav-icon{margin-inline-end:calc(var(--n-space-s) * 1.4);flex-shrink:0}::slotted(nord-nav-group){margin-inline-start:calc(var(--n-space-m) + calc(var(--n-space-s) * 1.3))}.n-nav-badge{border-radius:var(--n-border-radius-pill);background:var(--n-color-status-highlight);color:rgba(0,0,0,.8);font-weight:var(--n-font-weight-active);font-feature-settings:var(--n-font-features-reduced);padding:4px 6px;text-align:center;min-inline-size:20px;margin-inline-start:var(--n-space-s);font-size:var(--n-font-size-xs);display:inline-block}`;let ii=class extends(It(Ye(tt))){constructor(){super(...arguments),this.subnavSlot=new Ut(this,"subnav"),this.direction=new an(this),this.active=!1,this.open=!1}connectedCallback(){super.connectedCallback(),this.querySelector("nord-nav-item[active]")&&(this.open=!0)}render(){const t=T`${this.icon?T`<nord-icon class="n-nav-icon" name="${this.icon}" size="m"></nord-icon>`:I}<div class="n-content"><slot></slot></div>`;let e;return e=this.subnavSlot.hasContent?this.renderToggle(t):this.href?this.renderLink(t):this.renderButton(t),T`<div role="listitem">${e}<slot name="${this.subnavSlot.slotName}" ?hidden="${!this.open}"></slot></div>`}renderLink(t){return T`<a class="n-nav-item" ${Tt(this.focusableRef)} aria-current="${ut(this.active?"page":void 0)}" href="${this.href||""}">${t} ${this.badge?T`<span class="n-nav-badge">${this.badge}</span>`:I}</a>`}renderToggle(t){return T`<button class="n-nav-item" @click="${this.toggleOpen}" aria-expanded="${this.open?"true":"false"}" ${Tt(this.focusableRef)}>${t}<nord-icon size="xs" class="${de({"n-toggle-icon":!0,"n-rtl":this.direction.isRTL})}" name="arrow-expand-right-small"></nord-icon></button>`}renderButton(t){return T`<button class="n-nav-item" ${Tt(this.focusableRef)}>${t} ${this.badge?T`<span class="n-nav-badge">${this.badge}</span>`:I}</button>`}toggleOpen(){this.open=!this.open,this.dispatchEvent(new Vt("toggle"))}};ii.styles=oi,t([it({type:Boolean,reflect:!0})],ii.prototype,"active",void 0),t([it()],ii.prototype,"icon",void 0),t([it()],ii.prototype,"href",void 0),t([it()],ii.prototype,"badge",void 0),t([it({type:Boolean})],ii.prototype,"open",void 0),ii=t([nt("nord-nav-item")],ii);var ri=ii;const si=r`:host{all:unset;display:flex;flex-direction:column;block-size:100%;background:var(--n-color-nav-surface);border-inline-end:1px solid var(--n-color-border);overflow:hidden auto}*,::after,::before{box-sizing:border-box}nav{flex-grow:1;padding:var(--n-space-m)}slot[name=footer],slot[name=header]{display:flex;flex-direction:column;justify-content:center}slot[name=header]{min-block-size:var(--n-space-xxl);border-block-end:1px solid var(--n-color-border)}slot[name=footer]{padding:var(--n-space-m)}`;let ai=class extends(Ye(tt)){render(){return T`<slot name="header"></slot><nav><slot></slot></nav><slot name="footer"></slot>`}};ai.styles=si,ai=t([nt("nord-navigation")],ai);var li=ai;const di=r`:host{--n-nav-width:250px;background:var(--n-color-background);font-size:var(--n-font-size-m);color:var(--n-color-text)}.n-layout-main,.n-layout-nav{background:var(--n-color-background);inset-block-start:0;min-block-size:100%;position:absolute}.n-layout-nav{position:fixed;transition:transform .3s ease;user-select:none;inline-size:var(--n-nav-width);z-index:2;inset-block-start:0;inset-inline-start:0;inset-block-end:0}@media (max-width:768px){.n-layout-nav{transform:translateX(-100%)}}.n-layout-main{inset-inline-end:0;z-index:1;transition:width .2s ease;inline-size:calc(100% - var(--n-nav-width))}@media (max-width:768px){.n-layout-main{inline-size:100%}}main{padding:var(--n-space-l)}::slotted(a){color:var(--n-color-text-link);text-decoration:underline}::slotted(a:hover){text-decoration:none}`;let ci=class extends(Ye(tt)){render(){return T`<div class="n-layout"><div class="n-layout-nav"><slot name="nav"></slot></div><div class="n-layout-main"><slot name="header"></slot><main><slot></slot></main></div></div>`}};ci.styles=[lt,di],ci=t([nt("nord-layout")],ci);var hi=ci;const ui=r`:host{background:var(--n-color-surface);font-size:var(--n-font-size-m);color:var(--n-color-text)}.n-empty-state{text-align:center;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:var(--n-space-xl)}@media (max-width:500px){.n-empty-state{padding:var(--n-space-l) var(--n-space-m)}}::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){color:var(--n-color-text)!important;margin:0 0 var(--n-space-m)!important;font-weight:var(--n-font-weight-heading)!important;font-size:var(--n-font-size-xl)!important;line-height:var(--n-line-height-heading)!important}::slotted(p){margin:0 0 var(--n-space-l)!important;font-size:var(--n-font-size-m)!important;color:var(--n-color-text-weaker)!important;line-height:var(--n-line-height)!important;max-inline-size:var(--n-empty-state-text-width,400px)}`;let pi=class extends tt{render(){return T`<div class="n-empty-state"><slot></slot></div>`}};pi.styles=[lt,ui],pi=t([nt("nord-empty-state")],pi);var vi=pi;var fi=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><path d="M7 70a63 63 0 1 0 126 0A63 63 0 1 0 7 70z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="14"/><path fill="currentColor" d="M59.5 101.5a10.5 10.5 0 1 0 21 0 10.5 10.5 0 1 0-21 0z"/><path d="M70 70a17.5 17.5 0 1 0-14-28" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="14"/></svg>',title:"interface-help-2",tags:"nordicon interface help support question mark circle round"});var bi=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M18 9C18.9941 9 19.8 9.80589 19.8 10.8V18C19.8 18.9941 18.9941 19.8 18 19.8C17.0058 19.8 16.2 18.9941 16.2 18V10.8C16.2 9.80589 17.0058 9 18 9Z" fill="currentColor"/><path d="M15.3214 25.2C15.3214 25.9104 15.6036 26.5917 16.106 27.0941C16.6083 27.5964 17.2896 27.8786 18 27.8786C18.7105 27.8786 19.3918 27.5964 19.8941 27.0941C20.3965 26.5917 20.6787 25.9104 20.6787 25.2C20.6787 24.4896 20.3965 23.8083 19.8941 23.3059C19.3918 22.8036 18.7105 22.5214 18 22.5214C17.2896 22.5214 16.6083 22.8036 16.106 23.3059C15.6036 23.8083 15.3214 24.4896 15.3214 25.2Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M15.3891 0.71328C16.1794 0.244619 17.0813 -0.00268555 18.0002 -0.00268555C18.919 -0.00268555 19.8209 0.244619 20.6113 0.71328C21.3993 1.18057 22.0474 1.85075 22.4881 2.65385L35.092 25.2668L35.0968 25.2753C35.7031 26.3771 36.0118 27.618 35.9924 28.8754C35.973 30.1329 35.6263 31.3636 34.9863 32.4462C34.3463 33.5288 33.4352 34.426 32.3428 35.0491C31.2505 35.6723 30.0146 36 28.757 35.9999C28.757 35.9999 28.757 35.9999 28.757 35.9999H7.23618C7.23611 35.9999 7.23626 35.9999 7.23618 35.9999C5.97993 35.9998 4.74519 35.6722 3.65409 35.0496C2.56299 34.427 1.65299 33.5308 1.01378 32.4493C0.374574 31.3678 0.0282382 30.1384 0.00891227 28.8823C-0.0104135 27.6262 0.297938 26.3868 0.90357 25.2862L0.90814 25.2779L13.5122 2.65398C13.9529 1.85082 14.601 1.1806 15.3891 0.71328ZM7.23641 32.3999H28.757C29.3889 32.4 30.0101 32.2353 30.559 31.9222C31.1079 31.609 31.5657 31.1582 31.8873 30.6142C32.2089 30.0703 32.3831 29.4518 32.3928 28.82C32.4026 28.1896 32.2482 27.5676 31.945 27.0149C31.9442 27.0136 31.9435 27.0123 31.9428 27.011L19.3403 4.40069L19.3332 4.38778C19.2024 4.14852 19.0096 3.94887 18.7751 3.80979C18.5405 3.67071 18.2729 3.59731 18.0002 3.59731C17.7275 3.59731 17.4599 3.67071 17.2253 3.80979C16.9908 3.94887 16.798 4.14852 16.6672 4.38778L16.6602 4.40037L4.0576 27.0217C4.05692 27.0229 4.05625 27.0242 4.05558 27.0254C3.75289 27.577 3.59881 28.1978 3.60849 28.827C3.61819 29.4575 3.79205 30.0747 4.11292 30.6175C4.4338 31.1604 4.89061 31.6103 5.43834 31.9229C5.986 32.2354 6.60586 32.3998 7.23641 32.3999C7.23648 32.3999 7.23633 32.3999 7.23641 32.3999Z" fill="currentColor"/></svg>\n',title:"interface-warning",tags:"nordicon interface warning exclamation mark triangle shape alert error"});var gi=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.27208 5.27208C8.64773 1.89642 13.2261 0 18 0C22.7739 0 27.3523 1.89642 30.7279 5.27208C34.1036 8.64773 36 13.2261 36 18C36 22.7739 34.1036 27.3523 30.7279 30.7279C27.3523 34.1036 22.7739 36 18 36C13.2261 36 8.64773 34.1036 5.27208 30.7279C1.89642 27.3523 0 22.7739 0 18C0 13.2261 1.89642 8.64773 5.27208 5.27208ZM18 3.6C14.1809 3.6 10.5182 5.11714 7.81766 7.81766C5.11714 10.5182 3.6 14.1809 3.6 18C3.6 21.8191 5.11714 25.4818 7.81766 28.1823C10.5182 30.8829 14.1809 32.4 18 32.4C21.8191 32.4 25.4818 30.8829 28.1823 28.1823C30.8829 25.4818 32.4 21.8191 32.4 18C32.4 14.1809 30.8829 10.5182 28.1823 7.81766C25.4818 5.11714 21.8191 3.6 18 3.6Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M18 18C18.9941 18 19.8 18.8059 19.8 19.8V27C19.8 27.9941 18.9941 28.8 18 28.8C17.0058 28.8 16.2 27.9941 16.2 27V19.8C16.2 18.8059 17.0058 18 18 18Z" fill="currentColor"/><path d="M15.2795 10.7999C15.2795 11.5213 15.5661 12.2132 16.0763 12.7234C16.5864 13.2336 17.2784 13.5202 17.9998 13.5202C18.7213 13.5202 19.4132 13.2336 19.9234 12.7234C20.4335 12.2132 20.7201 11.5213 20.7201 10.7999C20.7201 10.0784 20.4335 9.38649 19.9234 8.87634C19.4132 8.36619 18.7213 8.07959 17.9998 8.07959C17.2784 8.07959 16.5864 8.36619 16.0763 8.87634C15.5661 9.38649 15.2795 10.0784 15.2795 10.7999Z" fill="currentColor"/></svg>\n',title:"interface-info",tags:"nordicon interface info circle round alert notice information"});var mi=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.67198 5.27208C9.04764 1.89642 13.626 0 18.3999 0C23.1738 0 27.7522 1.89642 31.1278 5.27208C34.5035 8.64773 36.3999 13.2261 36.3999 18C36.3999 22.7739 34.5035 27.3523 31.1278 30.7279C27.7522 34.1036 23.1738 36 18.3999 36C13.626 36 9.04764 34.1036 5.67198 30.7279C2.29633 27.3523 0.399902 22.7739 0.399902 18C0.399902 13.2261 2.29633 8.64773 5.67198 5.27208ZM18.3999 3.6C14.5808 3.6 10.9181 5.11714 8.21757 7.81766C5.51704 10.5182 3.9999 14.1809 3.9999 18C3.9999 21.8191 5.51704 25.4818 8.21757 28.1823C10.9181 30.8829 14.5808 32.4 18.3999 32.4C22.219 32.4 25.8817 30.8829 28.5822 28.1823C31.2828 25.4818 32.7999 21.8191 32.7999 18C32.7999 14.1809 31.2828 10.5182 28.5822 7.81766C25.8817 5.11714 22.219 3.6 18.3999 3.6Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M27.0484 10.0907C27.8261 10.7099 27.9546 11.8423 27.3354 12.62L16.233 26.5642C15.8927 26.9915 15.3768 27.2412 14.8306 27.243C14.2843 27.2447 13.7669 26.9983 13.4239 26.5732L9.39039 21.5735C8.76619 20.7998 8.8874 19.6666 9.66112 19.0424C10.4348 18.4182 11.5681 18.5394 12.1923 19.3131L14.8156 22.5648L24.5191 10.3776C25.1383 9.59994 26.2707 9.47146 27.0484 10.0907Z" fill="currentColor"/></svg>\n',title:"interface-checked-circle",tags:"nordicon interface circle round checked checkmark ready done success"});const yi=r`:host{font-size:var(--n-font-size-m);color:var(--n-color-text);display:contents}.n-banner{background:var(--n-banner-background,var(--n-color-status-info-weak));border-radius:var(--n-border-radius);box-shadow:var(--n-banner-box-shadow,var(--n-box-shadow-card));padding:calc(var(--n-space-m)/ 1.2) var(--n-space-l);margin:0;inline-size:100%}.n-banner-content{inline-size:calc(100% - var(--n-space-xl))}nord-icon{transform:translateY(2px);color:var(--n-color-icon-hover)}::slotted(a){color:var(--n-color-text)!important;text-decoration:underline!important}::slotted(p){margin:0!important}:host([variant=success]){--n-banner-background:var(--n-color-status-success-weak)}:host([variant=danger]){--n-banner-background:var(--n-color-status-danger-weak)}:host([variant=warning]){--n-banner-background:var(--n-color-status-warning-weak)}`;se.registerIcon(fi),se.registerIcon(bi),se.registerIcon(gi),se.registerIcon(mi);const xi={warning:"interface-help-2",danger:"interface-warning",info:"interface-info",success:"interface-checked-circle"};let wi=class extends tt{constructor(){super(...arguments),this.variant="info"}render(){const t=xi[this.variant]||xi.info;return T`<div class="n-banner" role="alert"><nord-stack align-items="start" direction="horizontal"><nord-icon name="${t}" size="m"></nord-icon><div class="n-banner-content"><slot></slot></div></nord-stack></div>`}};wi.styles=[lt,yi],t([it({reflect:!0})],wi.prototype,"variant",void 0),wi=t([nt("nord-banner")],wi);var $i=wi;const ki=r`:host{--n-avatar-size:var(--n-size-icon-l);display:inline-flex;block-size:var(--n-avatar-size);inline-size:var(--n-avatar-size)}.n-avatar{background:var(--n-color-status-info);border-radius:var(--n-border-radius-circle);overflow:hidden;inline-size:100%;block-size:100%}img,svg{inline-size:100%;block-size:auto;object-fit:cover}.n-loading{display:none}:host([size="l"]){--n-avatar-size:var(--n-size-icon-xl)}:host([size=xl]){--n-avatar-size:var(--n-size-icon-xxl)}`;const{transition:zi}=(Ci={initial:{"src-set":"loading"},loading:{load:"loaded",error:"initial","src-clear":"initial"},loaded:{"src-set":"loading","src-clear":"initial"}},{transition:(t,e)=>Ci[t][e]||t});var Ci;let _i=class extends tt{constructor(){super(...arguments),this.state="initial",this.size="m",this.name=""}willUpdate(t){if(t.has("src")){const t=this.src?"src-set":"src-clear";this.state=zi(this.state,t)}}render(){return T`<div class="n-avatar">${"initial"!==this.state?this.renderImage():I} ${"loaded"!==this.state?this.renderFallback():I}</div>`}renderImage(){return this.src?T`<img class="n-${this.state}" src="${this.src}" @load="${this.handleLoad}" @error="${this.handleError}" alt="${this.name||""}">`:I}renderFallback(){return T`<svg aria-label="${this.name}" role="${ut(this.name?"img":void 0)}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27 27"><rect fill="var(--n-color-status-info)" height="27" rx="12" width="27" x="0" y="0"></rect><g fill="#fff" opacity=".5"><circle cx="13.5" cy="30" r="13"></circle><circle cx="13.5" cy="11" r="5"></circle></g></svg>`}handleLoad(){this.state=zi(this.state,"load")}handleError(){this.state=zi(this.state,"error")}};_i.styles=[lt,ki],t([rt()],_i.prototype,"state",void 0),t([it({reflect:!0})],_i.prototype,"size",void 0),t([it({reflect:!0})],_i.prototype,"src",void 0),t([it()],_i.prototype,"name",void 0),_i=t([nt("nord-avatar")],_i);var Ai=_i;export{Ai as Avatar,ht as Badge,$i as Banner,Pt as Button,Ln as Calendar,jt as Card,Yn as Checkbox,Ne as CommandMenu,Me as CommandMenuAction,Un as DatePicker,vi as EmptyState,Yo as Fieldset,Qo as Header,se as Icon,ne as Input,hi as Layout,ni as NavGroup,ri as NavItem,li as Navigation,Ko as Radio,Pe as Select,qe as Spinner,Fe as Stack,Xe as Table,Ge as Textarea,Ho as Tooltip,Kt as VisuallyHidden};
104
+ */const ce="keyboard-arrow-up-down";var he=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><path d="M105.833 24v93m0-93L80 49.833M105.833 24l25.834 25.833M34.167 117V24m0 93L60 91.167M34.167 117 8.333 91.167" fill="none" stroke="currentColor" stroke-width="14" stroke-linecap="round" stroke-linejoin="round"/></svg>',title:ce,tags:"nordicon keyboard keys arrow up down shortcut"});var ue=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="14"><path d="M35 133 7 105l28-28"/><path d="M7 105h112a14 14 0 0 0 14-14V21a14 14 0 0 0-14-14H77"/></g></svg>',title:"keyboard-return",tags:"nordicon keyboard return key shortcut"});var pe=Object.freeze({__proto__:null,default:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="currentColor" fill-rule="evenodd" d="M6.707 4.879A3 3 0 0 1 8.828 4H15a3 3 0 0 1 3 3v6a3 3 0 0 1-3 3H8.828a3 3 0 0 1-2.12-.879l-4.415-4.414a1 1 0 0 1 0-1.414l4.414-4.414zm4 2.414a1 1 0 0 0-1.414 1.414L10.586 10l-1.293 1.293a1 1 0 1 0 1.414 1.414L12 11.414l1.293 1.293a1 1 0 0 0 1.414-1.414L13.414 10l1.293-1.293a1 1 0 0 0-1.414-1.414L12 8.586l-1.293-1.293z" clip-rule="evenodd"/></svg>',title:"keyboard-backspace",tags:"nordicon keyboard backspace back delete key shortcut"});function ve(t,e,n){return t>n?e:t<e?n:t}function be(t){var e;return(null===(e=t.activeElement)||void 0===e?void 0:e.shadowRoot)?be(t.activeElement.shadowRoot):t.activeElement||void 0}var fe=["Shift","Meta","Alt","Control"],ge="object"==typeof navigator&&/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"Meta":"Control";function me(t,e){return"function"==typeof t.getModifierState&&t.getModifierState(e)}function ye(t){return t.trim().split(" ").map((function(t){var e=t.split(/\b\+/),n=e.pop();return[e=e.map((function(t){return"$mod"===t?ge:t})),n]}))}function xe(t,e){var n;void 0===e&&(e={});var o=null!=(n=e.timeout)?n:1e3,i=Object.keys(t).map((function(e){return[ye(e),t[e]]})),r=new Map,s=null;return function(t){t instanceof KeyboardEvent&&(i.forEach((function(e){var n=e[0],o=e[1],i=r.get(n)||n;!function(t,e){return!(e[1].toUpperCase()!==t.key.toUpperCase()&&e[1]!==t.code||e[0].find((function(e){return!me(t,e)}))||fe.find((function(n){return!e[0].includes(n)&&e[1]!==n&&me(t,n)})))}(t,i[0])?me(t,t.key)||r.delete(n):i.length>1?r.set(n,i.slice(1)):(r.delete(n),o(t))})),s&&clearTimeout(s),s=setTimeout(r.clear.bind(r),o))}}const we=/Arrow(Up|Down|Left|Right)/g,$e=/Escape/g;class ke{constructor(t,e,n=window){this.shortcuts=e,this.target=n,t.addController(this),this.shortcuts=e,this.target=n}hostConnected(){this.shortcuts&&this.bind(this.shortcuts)}hostDisconnected(){this.unbind()}unbind(){var t;null===(t=this.unregister)||void 0===t||t.call(this)}bind(t){this.unbind(),this.shortcuts=t,this.unregister=function(t,e,n){var o;void 0===n&&(n={});var i=null!=(o=n.event)?o:"keydown",r=xe(e,n);return t.addEventListener(i,r),function(){t.removeEventListener(i,r)}}(this.target,function(t){const e={};return Object.keys(t).forEach((n=>{if(e[n]=t[n],we.test(n)){const t=n.replace(we,((t,e)=>e));e[t]=e[n]}if($e.test(n)){const t=n.replace($e,(()=>"Esc"));e[t]=e[n]}})),e}(this.shortcuts))}}class ze{constructor(t,e){this.host=t,this.options=e,this.handleEsc=t=>{this.options.isOpen()&&this.options.onDismiss(t)},this.handleClickOut=t=>{var e;if(!this.options.isOpen())return;const n=null!==(e=this.options.isDismissible)&&void 0!==e?e:t=>t!==this.host;t.composedPath().every(n)&&this.options.onDismiss(t)},this.host=t,t.addController(this),this.options=e,this.shortcut=new ke(this.host,{Escape:this.handleEsc})}hostConnected(){document.addEventListener("click",this.handleClickOut,!0)}hostDisconnected(){document.removeEventListener("click",this.handleClickOut,!0)}}const Ce=t=>e=>{e.preventDefault(),t(e)};class _e{constructor(t,e){this.host=t,t.addController(this),this.commandShortcuts=new ke(t),this.globalShortcuts=new ke(t,{"$mod+k":Ce(e.toggleOpen)}),this.navigationShortcuts=new ke(t,{Enter:Ce(e.trigger),Backspace:e.goBack,End:Ce(e.end),Home:Ce(e.start),ArrowDown:Ce(e.next),ArrowUp:Ce(e.previous)},t)}registerCommandShortcuts(){const t={};for(const e of this.host.commands)e.shortcut&&(t[e.shortcut]=()=>{var t;return null===(t=e.handler)||void 0===t?void 0:t.call(e,this.host)});this.commandShortcuts.bind(t)}}var Ae=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><path d="m38.5 7 60.9 58.044a7 7 0 0 1 0 9.912L38.5 133" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="14"/></svg>',title:"arrow-right",tags:"nordicon arrow right caret pointing triangle chevron"});var Ee=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><g transform="matrix(14,0,0,14,0,0)"><path d="M0.5 3L3 3 6.5 7 9.5 7" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path><path d="M6.5 3L9.5 3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>',title:"keyboard-option",tags:"nordicon keyboard option key shortcut"});const Se=r`:host{display:flex}.n-command{display:flex;flex:1;border-inline-start:2px solid transparent;align-items:center;color:var(--n-color-text);border-block-end:1px solid var(--n-color-border);padding:calc(var(--n-space-m)/ 1.5) var(--n-space-m)}.n-command.n-selected,.n-command:hover{cursor:pointer;background-color:var(--n-color-active)}.n-command.n-selected{border-inline-start-color:var(--n-color-accent)}nord-icon{color:var(--n-color-icon)}.n-command-icon{margin-inline-start:2px;margin-inline-end:calc(var(--n-space-s) * 1.4);line-height:var(--n-line-height-tight)}.n-selected .n-command-icon nord-icon{color:var(--n-color-icon-hover)}.n-title{flex:1;margin-inline-end:calc(var(--n-space-s)/ 2);font-size:var(--n-font-size-m);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.n-shortcuts{display:flex;gap:calc(var(--n-space-s)/ 2)}.n-shortcut{padding:calc(var(--n-space-s)/ 4) calc(var(--n-space-s)/ 3);text-transform:capitalize;font-size:var(--n-font-size-xs);border:1px solid var(--n-color-border-strong);font-weight:var(--n-font-weight);box-shadow:var(--n-box-shadow);border-radius:var(--n-border-radius-s);color:var(--n-color-icon);background:var(--n-color-button);line-height:var(--n-line-height-tight);min-inline-size:var(--n-space-s);display:inline-flex;align-items:center;justify-content:center;user-select:none}`,De=/(?:Key|Digit)([A-Z0-9])/g;se.registerIcon(Ae),se.registerIcon(Ee);let Le=class extends tt{constructor(){super(...arguments),this.selected=!1}ensureInView(){requestAnimationFrame((()=>this.scrollIntoView({block:"nearest"})))}updated(t){t.has("selected")&&this.selected&&this.ensureInView()}render(){var t;return T`<div class="${de({"n-selected":this.selected,"n-command":!0})}"><div aria-hidden="true" class="n-command-icon"><nord-icon size="s" name="${null!==(t=this.command.icon)&&void 0!==t?t:"arrow-right"}"></nord-icon></div><div class="n-title">${this.command.title}</div>${this.renderShortcut()}</div>`}renderShortcut(){if(!this.command.shortcut)return O;const t=this.command.shortcut.replace(De,"$1");return T`<nord-visually-hidden>, ${t}</nord-visually-hidden><div aria-hidden="true" class="n-shortcuts">${t.split("+").map((t=>T`<div class="n-shortcut">${"alt"===t.toLowerCase()&&navigator.platform.indexOf("Mac")>-1?T`<nord-icon name="${"keyboard-option"}" size="s"></nord-icon>`:t}</div>`))}</div>`}};Le.styles=Se,t([it({type:Object})],Le.prototype,"command",void 0),t([it({type:Boolean})],Le.prototype,"selected",void 0),Le=t([nt("nord-command-menu-action")],Le);var Me=Le;class Te extends Vt{constructor(t){super(Te.eventName),this.command=t}}Te.eventName="nord-select";const Ne=r`:host{--n-command-menu-width:640px;--n-command-menu-top:16%;--n-command-menu-height:290px}.n-modal{display:none;position:fixed;pointer-events:none;z-index:var(--n-index-modal);inset-inline-start:0;inset-block-start:0;inline-size:100%;block-size:100%;overflow:auto}.n-modal.n-visible{display:block}.n-modal-content{position:relative;pointer-events:all;inset-block-start:var(--n-command-menu-top);margin:auto;display:flex;flex-direction:column;min-inline-size:0;background:var(--n-color-surface);border-radius:var(--n-border-radius);box-shadow:var(--n-box-shadow-modal);max-inline-size:var(--n-command-menu-width);overflow:hidden}.n-bump{animation:zoom-in-zoom-out var(--n-transition-slowly)}@keyframes zoom-in-zoom-out{0%{transform:translateY(-10px) scale(.97);opacity:0}100%{transform:translateY(0) scale(1.0001);opacity:1}}.n-modal-footer{display:flex;gap:var(--n-space-s);padding:var(--n-space-s) var(--n-space-m);font-size:calc(var(--n-font-size-s) - 1px);color:var(--n-color-text-weaker)}.n-help{display:flex;align-items:center;gap:2px}.n-help+.n-help{padding-inline-start:var(--n-space-s);border-inline-start:1px solid var(--n-color-border-strong)}.n-help nord-icon{--n-icon-size:10px;color:currentColor;margin:3px 4px}.n-help.n-backspace nord-icon{--n-icon-size:12px}.n-search-wrapper{display:flex;border-block-end:1px solid var(--n-color-border)}[role=combobox]{flex:1;font-size:var(--n-font-size-l);font-weight:var(--n-font-weight);font-family:inherit;background:0 0;color:var(--n-color-text);border:none;border-radius:0;appearance:none;outline:0;margin:0;padding:var(--n-space-m)}[role=combobox]::-webkit-input-placeholder{color:var(--n-color-text-weaker);opacity:.6!important}[role=combobox]::-moz-placeholder{color:var(--n-color-text-weaker);opacity:.6!important}[role=combobox]::-ms-input-placeholder{color:var(--n-color-text-weaker);opacity:.6!important}[role=listbox]{max-block-size:var(--n-command-menu-height);overflow:auto;margin:0;padding:0}.n-group-header{line-height:var(--n-line-height);border-block-end:1px solid var(--n-color-border);padding:calc(var(--n-space-s)/ 1.4) var(--n-space-m);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:var(--n-font-size-s);background:var(--n-color-surface-raised);font-weight:var(--n-font-weight-active);color:var(--n-color-text-weaker)}.n-command-empty{display:flex;flex:1;flex-direction:column;border-inline-start:2px solid transparent;align-items:flex-start;color:var(--n-color-text);border-block-end:1px solid var(--n-color-border);padding:calc(var(--n-space-m)/ 1.5) var(--n-space-m)}.n-command-empty .n-title{flex:1;margin-block-start:var(--n-space-s);margin-inline-end:calc(var(--n-space-s)/ 2);max-inline-size:100%;font-size:var(--n-font-size-m);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.n-command-empty .n-tip{flex:1;margin-block-start:var(--n-space-s);margin-block-end:var(--n-space-m);font-size:var(--n-font-size-s);color:var(--n-color-text-weaker)}`;se.registerIcon(he),se.registerIcon(ue),se.registerIcon(pe);let Oe=class extends tt{constructor(){super(...arguments),this.inputRef=Dt(),this.listRef=Dt(),this.dismissController=new ze(this,{isOpen:()=>this.open,onDismiss:()=>this.close()}),this.keyboardController=new _e(this,{trigger:()=>this.select(),goBack:()=>this.goBack(),end:()=>this.end(),start:()=>this.start(),next:()=>this.next(),previous:()=>this.previous(),toggleOpen:()=>this.toggleOpen()}),this.open=!1,this.placeholder="Type a command or search...",this.commands=[],this.search="",this.bump=!0,this.selectedIndex=0,this.filteredCommands=[]}get selected(){return this.filteredCommands[this.selectedIndex]}show(t={}){this.dispatchEvent(new Vt("open",{cancelable:!0}))&&(this.open=!0,this.setParent(t.parent))}close(){var t;this.open=!1,null===(t=this.previousFocus)||void 0===t||t.focus(),this.previousFocus=void 0,this.dispatchEvent(new Vt("close"))}toggleOpen(){this.open?this.close():this.show()}focus(){var t;null===(t=this.inputRef.value)||void 0===t||t.focus()}willUpdate(t){t.has("commands")&&this.keyboardController.registerCommandShortcuts(),t.has("open")&&this.open&&(this.bump=!0),(t.has("search")||t.has("parent")||t.has("commands"))&&this.filterCommands()}updated(t){t.has("open")&&this.open&&(this.previousFocus=be(document),this.focus(),this.listRef.value&&(this.listRef.value.scrollTop=0))}render(){var t;const e=function(t,e){var n;const o=new Map;for(const i of t){const t=i[e],r=null!==(n=o.get(t))&&void 0!==n?n:[];o.has(t)||o.set(t,[]),r.push(i),o.set(t,r)}return o}(this.filteredCommands,"section"),n=0===this.filteredCommands.length?"no-results":null===(t=this.selected)||void 0===t?void 0:t.id;return T`<div class="${de({"n-visible":this.open,"n-modal":!0})}"><div @animationend="${this.handleAnimationEnd}" class="${de({"n-bump":this.bump,"n-modal-content":!0})}"><div class="n-search-wrapper"><nord-visually-hidden id="instructions">Press 'Enter' to confirm your input or 'Escape' to cancel</nord-visually-hidden><input type="text" id="search" @input="${this.handleInput}" @blur="${this.handleBlur}" ${Tt(this.inputRef)} placeholder="${this.placeholder}" .value="${this.search}" spellcheck="false" autocomplete="off" autocapitalize="off" aria-label="Type the name of a command to run." aria-autocomplete="list" aria-haspopup="listbox" role="combobox" aria-controls="list" aria-expanded="true" aria-activedescendant="${ut(n)}" aria-describedby="instructions"></div><div class="n-modal-body"><div id="list" ${Tt(this.listRef)} role="listbox">${0===this.filteredCommands.length?this.renderNoResults():Array.from(e,(([t,e])=>this.renderSection(t,e)))}</div></div><slot name="footer"><div class="n-modal-footer" slot="footer"><span class="n-help"><nord-icon label="Arrow keys" name="${ce}"></nord-icon>Navigate</span> <span class="n-help"><nord-icon label="Enter key" name="${"keyboard-return"}"></nord-icon>Select</span> <span class="n-help">Esc to dismiss</span> <span class="n-help n-backspace"><nord-icon label="Backspace key" name="${"keyboard-backspace"}"></nord-icon>Move to parent</span></div></slot></div></div>`}renderNoResults(){return T`<div id="no-results" class="n-command-empty" role="option" aria-selected="true"><div class="n-title">No results for “${this.search}”</div><div class="n-tip">Search tips: some search terms require exact match. Try typing the entire command name, or use a different word or phrase.</div></div>`}renderSection(t,e){const n=`section-${t}`;return T`<div role="group" aria-labelledby="${ut(t?n:void 0)}">${t?T`<div class="n-group-header" role="presentation" id="${ut(n)}">${t}</div>`:O} ${le(e,(t=>t.id),(t=>{var e,n;return T`<nord-command-menu-action id="${t.id}" .command="${t}" ?selected="${t.id===(null===(e=this.selected)||void 0===e?void 0:e.id)}" @click="${()=>this.select(t)}" role="option" aria-selected="${ut(t.id===(null===(n=this.selected)||void 0===n?void 0:n.id)||void 0)}"></nord-command-menu-action>`}))}</div>`}handleAnimationEnd(){this.bump=!1}handleBlur(){this.open&&this.focus()}handleInput(t){const e=t.target;this.setSearch(e.value)}select(t=this.selected){var e;this.commands.some((e=>e.parent===t.id))?(this.setParent(t.id),this.bump=!0,this.focus()):this.close(),this.setSearch(""),null===(e=t.handler)||void 0===e||e.call(t,this);const n=new Te(t);this.dispatchEvent(n)}start(){this.selectedIndex=0}end(){this.selectedIndex=this.filteredCommands.length-1}next(){this.selectedIndex=ve(this.selectedIndex+1,0,this.filteredCommands.length-1)}previous(){this.selectedIndex=ve(this.selectedIndex-1,0,this.filteredCommands.length-1)}goBack(){if(!this.search&&this.parent){const t=this.commands.find((t=>t.id===this.parent));this.setParent(null==t?void 0:t.parent)}}setParent(t){this.parent=t,this.setSearch("")}setSearch(t){this.search=t,this.selectedIndex=0}filterCommands(){const t=this.search.toLocaleLowerCase().split(/\s+/);this.filteredCommands=this.commands.filter((({title:e,keywords:n="",parent:o})=>{const i=`${e} ${n}`.toLocaleLowerCase(),r=t.every((t=>i.includes(t)));return(!this.parent&&this.search||o===this.parent)&&r}))}};Oe.styles=[lt,Ne],t([it({type:Boolean})],Oe.prototype,"open",void 0),t([it({type:String})],Oe.prototype,"placeholder",void 0),t([it({type:Array,attribute:!1})],Oe.prototype,"commands",void 0),t([rt()],Oe.prototype,"parent",void 0),t([rt()],Oe.prototype,"search",void 0),t([rt()],Oe.prototype,"bump",void 0),t([rt()],Oe.prototype,"selectedIndex",void 0),t([rt()],Oe.prototype,"filteredCommands",void 0),Oe=t([nt("nord-command-menu")],Oe);var Ie=Oe;const Re=r`.n-select-container{position:relative;inline-size:fit-content}:host([expand]){inline-size:100%}:host([expand]) .n-select-container{inline-size:100%}select{-webkit-appearance:none;appearance:none;position:absolute;font-size:var(--n-font-size-m);font-family:var(--n-font-family);color:var(--n-color-text);inline-size:100%;opacity:.0001;cursor:pointer;background:0 0;border:0;block-size:var(--n-space-xl);inset-block-end:0;inset-inline-start:0;z-index:2}nord-button{--n-button-text-align:start}.n-label-container:hover+.n-select-container nord-button,select:hover+nord-button{--n-button-background-color:var(--n-color-button-hover);--n-button-border-color:var(--n-color-border-hover)}.n-label-container:hover+.n-select-container nord-button svg,select:hover+nord-button svg{color:var(--n-color-icon-hover)}select:focus+nord-button{--n-button-border-color:var(--n-color-accent);--n-button-box-shadow:0 0 0 1px var(--n-button-border-color)}:host([disabled]){cursor:auto;pointer-events:none}::slotted(:not([slot])){display:none}[slot=end] svg{color:var(--n-color-icon);margin-inline-start:var(--n-space-m);margin-inline-end:calc(var(--n-space-s)/ -2);min-inline-size:calc(var(--n-space-l)/ 2.2);max-inline-size:calc(var(--n-space-l)/ 2.2)}::slotted([slot=start]){margin-inline-start:calc(var(--n-space-s) * -1);margin-inline-end:var(--n-space-s)}select[aria-invalid=true]+nord-button{--n-button-border-color:var(--n-color-status-danger)}`;let Be=class extends(Jt(It(Ot(tt)))){constructor(){super(...arguments),this.defaultSlot=new Ut(this),this.inputId="select"}get formValue(){return this.value||void 0}render(){const t=this.options,e=this.getButtonText(t);return T`<slot></slot>${this.renderLabel()}<div class="n-select-container"><select ${Tt(this.focusableRef)} id="${this.inputId}" ?disabled="${this.disabled}" ?required="${this.required}" name="${ut(this.name)}" @change="${this.handleChange}" @input="${this.handleInput}" aria-describedby="${ut(this.getDescribedBy())}" aria-invalid="${ut(this.getInvalid())}">${this.placeholder&&T`<option value="" disabled="disabled" ?selected="${!this.value}">${this.placeholder}</option>`} ${t.map((t=>this.renderOption(t)))}</select><nord-button tabindex="-1" ?disabled="${this.disabled}" ?expand="${this.expand}" aria-hidden="true" type="button"><slot slot="start" name="start"></slot>${e}<div slot="end">${Wt('<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M105 56a10.416 10.416 0 0 1-7.42-3.08L72.478 27.818a3.528 3.528 0 0 0-4.956 0L42.42 52.92a10.5 10.5 0 0 1-14.84-14.84l35-35a10.486 10.486 0 0 1 14.84 0l35 35A10.5 10.5 0 0 1 105 56zm-35 84a10.416 10.416 0 0 1-7.42-3.08l-35-35a10.5 10.5 0 0 1 14.84-14.84l25.102 25.102a3.528 3.528 0 0 0 4.956 0L97.58 87.08a10.5 10.5 0 1 1 14.84 14.84l-35 35A10.416 10.416 0 0 1 70 140z"/></svg>')}</div></nord-button></div>${this.renderError()}`}get options(){return Array.from(this.querySelectorAll("option"))}getButtonText(t){const e=t.find((t=>t.value===this.value));return e?e.text:this.placeholder?this.placeholder:t[0]?t[0].text:""}renderOption(t){return T`<option value="${ut(t.value)}" ?disabled="${t.disabled}" ?selected="${t.value===this.value}">${t.text}</option>`}};Be.styles=[lt,Gt,Re],Be=t([nt("nord-select")],Be);var Pe=Be;const Ue=r`:host{display:flex;flex-flow:column wrap;justify-content:flex-start;font-size:var(--n-font-size-m);color:var(--n-color-text);gap:var(--n-stack-gap,var(--n-space-m))}:host([direction=horizontal]){align-items:center;flex-direction:row}:host([align-items=center]){align-items:center}:host([align-items=start]){align-items:flex-start}:host([align-items=end]){align-items:flex-end}:host([justify-content=center]){justify-content:center}:host([justify-content=start]){justify-content:flex-start}:host([justify-content=end]){justify-content:flex-end}::slotted(*){margin:0!important}:host([gap=none]){--n-stack-gap:0}:host([gap="s"]){--n-stack-gap:var(--n-space-s)}:host([gap="m"]){--n-stack-gap:var(--n-space-m)}:host([gap="l"]){--n-stack-gap:var(--n-space-l)}:host([gap=xl]){--n-stack-gap:var(--n-space-xl)}:host([gap=xxl]){--n-stack-gap:var(--n-space-xxl)}`;let He=class extends tt{constructor(){super(...arguments),this.gap="m",this.direction="vertical"}render(){return T`<slot></slot>`}};He.styles=[lt,Ue],t([it({reflect:!0})],He.prototype,"gap",void 0),t([it({reflect:!0})],He.prototype,"direction",void 0),t([it({reflect:!0,attribute:"align-items"})],He.prototype,"alignItems",void 0),t([it({reflect:!0,attribute:"justify-content"})],He.prototype,"justifyContent",void 0),He=t([nt("nord-stack")],He);var Fe=He;const je=r`:host{--n-icon-size:var(--n-size-icon-m);block-size:var(--n-icon-size);color:inherit}:host([size=xs]){--n-icon-size:var(--n-size-icon-xs)}:host([size="s"]){--n-icon-size:var(--n-size-icon-s)}:host([size="l"]){--n-icon-size:var(--n-size-icon-l)}:host([size=xl]){--n-icon-size:var(--n-size-icon-xl)}:host([size=xxl]){--n-icon-size:var(--n-size-icon-xxl)}.n-spinner,.n-spinner::after{position:absolute;inset-block-start:50%;inset-inline-start:50%;z-index:var(--n-index-spinner);transform:translateZ(0) translateX(-50%) translateY(-50%);transform-origin:0 0}.n-spinner{block-size:var(--n-icon-size);inline-size:var(--n-icon-size);font-size:var(--n-icon-size);color:var(--n-color-accent);border:.18em solid transparent;border-inline-start:.18em solid currentColor;border-radius:var(--n-border-radius-circle);animation:nRotate .66s linear infinite}.n-spinner::after{box-sizing:content-box;inline-size:100%;block-size:100%;overflow:hidden;content:"";border:.18em solid currentColor;border-radius:var(--n-border-radius-circle);opacity:.3}@keyframes nRotate{0%{transform:translateZ(0) rotate(0) translateX(-50%) translateY(-50%)}100%{transform:translateZ(0) rotate(360deg) translateX(-50%) translateY(-50%)}}`;let Ye=class extends tt{constructor(){super(...arguments),this.size="m"}render(){return T`<div class="n-spinner" role="${ut(this.label?"img":void 0)}" aria-label="${ut(this.label)}" style="${ut(this.color?`color:${this.color}`:void 0)}"></div>`}};Ye.styles=[lt,je],t([it({reflect:!0})],Ye.prototype,"size",void 0),t([it({reflect:!0})],Ye.prototype,"color",void 0),t([it({reflect:!0})],Ye.prototype,"label",void 0),Ye=t([nt("nord-spinner")],Ye);var We=Ye;const qe=r`nord-table{all:initial;color:var(--n-color-text)}nord-table[density=condensed]{--n-table-td-padding:calc(var(--n-space-m) * 0.7)}nord-table[density=default]{--n-table-td-padding:calc(var(--n-space-m) * 0.95)}nord-table[density=relaxed]{--n-table-td-padding:calc(var(--n-space-m) * 1.2);--n-table-th-padding:var(--n-space-m)}nord-table table{inline-size:100%;font-size:var(--n-font-size-m);font-family:var(--n-font-family);font-feature-settings:var(--n-font-features);line-height:var(--n-line-height-tight);text-align:start;border-spacing:0;border-collapse:separate;color:var(--n-color-text);font-variant-numeric:tabular-nums}nord-table th{border-block-end:1px solid var(--n-color-border);font-weight:var(--n-font-weight-active);font-size:var(--n-font-size-s);color:var(--n-color-text-weaker);padding:calc(var(--n-table-th-padding,var(--n-table-td-padding))/ 1.1) var(--n-space-m);text-align:start;background:var(--n-color-surface-raised);position:-webkit-sticky;position:sticky;inset-block-start:0;z-index:3}nord-table td{border-block-end:1px solid var(--n-color-border);padding:var(--n-table-td-padding) var(--n-space-m);white-space:nowrap}@media (max-width:1000px){nord-table td,nord-table th{padding:var(--n-table-td-padding) var(--n-space-s)}}nord-table tbody tr:hover{background:var(--n-color-active)}nord-table tbody .active,nord-table tbody .active:hover{background:var(--n-color-active);color:var(--n-color-text);opacity:1;cursor:default}nord-table tbody .active td,nord-table tbody tr:hover td{color:var(--n-color-text)}nord-table tbody .active nord-badge,nord-table tbody tr:hover nord-badge{--n-badge-color:var(--n-color-text)}nord-card nord-table tbody tr:last-child td{border-block-end-color:transparent}nord-table .n-table-ellipsis{max-inline-size:0;inline-size:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}nord-table .n-table-align-right{text-align:end}nord-table .n-table-actions{display:flex;justify-content:center}nord-table .n-table-actions nord-button{margin-block:-10px}`;let Ve=class extends tt{constructor(){super(...arguments),this.density="default"}connectedCallback(){super.connectedCallback(),this.renderStyles()}renderStyles(){const t=this.getRootNode(),e=t.nodeType===Node.DOCUMENT_NODE?t.head:t;const n=this.localName;t.querySelector(`style[data-component=${n}]`)||R(T`<style data-component="${n}">${qe}</style>`,e)}createRenderRoot(){return this}};Ve.styles=qe,t([it({reflect:!0})],Ve.prototype,"density",void 0),Ve=t([nt("nord-table")],Ve);var Ze=Ve;const Xe=r`.n-input{min-block-size:var(--n-textarea-height,76px);transition:border var(--n-transition-slowly),box-shadow var(--n-transition-slowly),background var(--n-transition-slowly);display:block;resize:vertical}:host([resize=auto]) .n-input{resize:none;overflow:hidden}`;let Ke=class extends(Jt(It(Ot(tt)))){constructor(){super(...arguments),this.inputId="textarea",this.resize="vertical"}updated(t){(t.has("resize")||t.has("value"))&&this.resizeToFitContent()}render(){var t;return T`${this.renderLabel()}<div class="n-input-container"><textarea ${Tt(this.focusableRef)} id="${this.inputId}" class="n-input" ?disabled="${this.disabled}" ?required="${this.required}" name="${ut(this.name)}" .value="${null!==(t=this.value)&&void 0!==t?t:""}" placeholder="${ut(this.placeholder)}" @change="${this.handleChange}" @input="${this.handleInput}" aria-describedby="${ut(this.getDescribedBy())}" aria-invalid="${ut(this.getInvalid())}"></textarea></div>${this.renderError()}`}resizeToFitContent(){const t=this.focusableRef.value;t&&("auto"===this.resize?(t.style.height="auto",t.style.height=`${t.scrollHeight}px`):t.style.height=null)}};Ke.styles=[lt,Gt,Qt,Xe],t([it({reflect:!0})],Ke.prototype,"resize",void 0),Ke=t([nt("nord-textarea")],Ke);var Je=Ke;var Ge=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M105 57.4 47.6 2.8a10.566 10.566 0 1 0-14.56 15.316l51.968 49.35a3.486 3.486 0 0 1 0 5.068l-51.968 49.35a10.502 10.502 0 0 0 14.462 15.232l57.638-54.74A17.584 17.584 0 0 0 105 57.4z"/></svg>',title:"arrow-right-small",tags:"nordicon arrow right small caret pointing triangle chevron"});var Qe=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M99.736 140a10.486 10.486 0 0 1-7.238-2.884L35 82.6a17.598 17.598 0 0 1-.14-24.976l57.638-54.74a10.502 10.502 0 1 1 14.462 15.232l-51.968 49.35a3.486 3.486 0 0 0 0 5.068l51.968 49.35A10.5 10.5 0 0 1 99.736 140z"/></svg>',title:"arrow-left-small",tags:"nordicon arrow left small caret pointing triangle chevron"});var tn=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M70 110.236a17.332 17.332 0 0 1-12.306-5.096L2.884 47.502A10.502 10.502 0 1 1 18.116 33.04l49.35 51.968a3.486 3.486 0 0 0 5.068 0l49.35-51.968a10.502 10.502 0 1 1 15.232 14.462L82.6 105a17.766 17.766 0 0 1-12.6 5.236z"/></svg>',title:"arrow-down-small",tags:"nordicon arrow down small caret pointing triangle chevron"});const en=t=>t.preventDefault();class nn{constructor(t,e){var n;this.attached=!1,this.initialTouchX=0,this.initialTouchY=0,this.handleTouchStart=t=>{const[{pageX:e,pageY:n}]=t.changedTouches;this.initialTouchX=e,this.initialTouchY=n},this.handleTouchEnd=t=>{const[{pageX:e,pageY:n}]=t.changedTouches,o=e-this.initialTouchX,i=n-this.initialTouchY,r={initialX:this.initialTouchX,initialY:this.initialTouchY,pageX:e,pageY:n,distX:o,distY:i};this.matchesGesture(r)&&(t.preventDefault(),this.onSwipeEnd(r))},this.host=t,t.addController(this),this.target=null!==(n=null==e?void 0:e.target)&&void 0!==n?n:()=>t,this.matchesGesture=e.matchesGesture,this.onSwipeEnd=e.onSwipeEnd}hostUpdated(){if(!this.attached){this.attached=!0;const t=this.target();t.addEventListener("touchstart",this.handleTouchStart),t.addEventListener("touchmove",en),t.addEventListener("touchend",this.handleTouchEnd)}}hostDisconnected(){this.attached=!1;const t=this.target();t.removeEventListener("touchstart",this.handleTouchStart),t.removeEventListener("touchmove",en),t.removeEventListener("touchend",this.handleTouchEnd)}}const on=({distX:t,distY:e})=>Math.abs(t)>=70&&Math.abs(e)<=70,rn=({distX:t,distY:e})=>Math.abs(e)>=70&&Math.abs(t)<=70&&e>0;class sn{constructor(t){this.host=t,this.host=t,t.addController(this)}get dir(){return document.documentElement.dir||"ltr"}get isLTR(){return"ltr"===this.dir}get isRTL(){return"rtl"===this.dir}hostConnected(){sn.observer||(sn.observer=new MutationObserver(sn.observe),sn.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]})),sn.hosts.has(this.host)||sn.hosts.add(this.host)}hostDisconnected(){var t;sn.hosts.delete(this.host),0===sn.hosts.size&&(null===(t=sn.observer)||void 0===t||t.disconnect(),sn.observer=void 0)}static observe(){sn.hosts.forEach((t=>t.requestUpdate()))}}sn.hosts=new Set;const an=/^(\d{4})-(\d{2})-(\d{2})$/;function ln(t,e,n){const o=parseInt(n,10),i=parseInt(e,10),r=parseInt(t,10);if(Number.isInteger(r)&&Number.isInteger(i)&&Number.isInteger(o)&&i>0&&i<=12&&o>0&&o<=31&&r>0){const t=new Date(r,i-1,o);return t.setFullYear(r),t}}function dn(t){if(!t)return;const e=t.match(an);return e?ln(e[1],e[2],e[3]):void 0}function cn(t){if(!t)return"";const e=t.getDate().toString(10),n=(t.getMonth()+1).toString(10);return`${t.getFullYear().toString(10).padStart(4,"0")}-${n.padStart(2,"0")}-${e.padStart(2,"0")}`}function hn(t,e){return null!=t&&null!=e&&(t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth())}function un(t,e){return null!=t&&null!=e&&(hn(t,e)&&t.getDate()===e.getDate())}function pn(t,e){const n=new Date(t);return n.setDate(n.getDate()+e),n}function vn(t,e=1){const n=new Date(t),o=n.getDay(),i=(o<e?7:0)+o-e;return n.setDate(n.getDate()-i),n}function bn(t,e=1){const n=new Date(t),o=n.getDay(),i=6+(o<e?-7:0)-(o-e);return n.setDate(n.getDate()+i),n}function fn(t){const e=new Date(t.getFullYear(),t.getMonth(),1);return e.setFullYear(t.getFullYear()),e}function gn(t){const e=new Date(t.getFullYear(),t.getMonth()+1,0);return e.setFullYear(t.getFullYear()),e}function mn(t,e){const n=new Date(t);return n.setMonth(e),n}function yn(t,e){const n=new Date(t);return n.setFullYear(e),n}function xn(t,e,n){const o=t.getTime();return e&&e instanceof Date&&o<e.getTime()?e:n&&n instanceof Date&&o>n.getTime()?n:t}function wn(t,e,n){return xn(t,e,n)===t}function $n(t,e=1){return function(t,e){const n=[];let o=t;for(;!un(o,e);)n.push(o),o=pn(o,1);return n.push(o),n}(vn(fn(t),e),bn(gn(t),e))}const kn={prevMonthLabel:"Previous month",nextMonthLabel:"Next month",monthSelectLabel:"Month",yearSelectLabel:"Year",calendarHeading:"Choose a date",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],locale:"en-GB"};function zn({onFocusIn:t,onFocusOut:e,selectedDate:n,focusedDate:o,labelledById:i,localization:r,firstDayOfWeek:s,min:a,max:l,dateFormatter:d,isDateDisabled:c,onDateSelect:h,onKeyboardNavigation:u}){const p=new Date,v=$n(o,s);return T`<table class="n-calendar-table" aria-labelledby="${i}" @focusin="${t}" @focusout="${function(t){const n=t.currentTarget,o=t.relatedTarget;o&&!n.contains(o)&&e(t)}}"><thead><tr>${b=r.dayNames,f=s,g=t=>T`<th class="n-calendar-table-header" scope="col"><span aria-hidden="true">${t.substr(0,2)}</span><nord-visually-hidden>${t}</nord-visually-hidden></th>`,b.map(((t,e)=>{const n=(e+f)%b.length;return g(b[n])}))}</tr></thead><tbody>${function(t,e){const n=[];for(let o=0;o<t.length;o+=e)n.push(t.slice(o,o+e));return n}(v,7).map((t=>T`<tr class="n-calendar-row">${t.map((t=>T`<td class="n-calendar-cell">${(({focusedDay:t,today:e,day:n,onDaySelect:o,onKeyboardNavigation:i,disabled:r,inRange:s,isSelected:a,dateFormatter:l})=>{const d=un(n,e),c=hn(n,t),h=un(n,t),u=!s;return T`<button class="${de({"n-calendar-day":!0,"is-outside":u,"is-month":c,"is-disabled":r})}" tabindex="${h?0:-1}" @click="${()=>o(n)}" @keydown="${i}" aria-disabled="${ut(r?"true":void 0)}" ?disabled="${u}" type="button" aria-pressed="${a?"true":"false"}" aria-current="${ut(d?"date":void 0)}" aria-label="${l.format(n)}"><span aria-hidden="true">${n.getDate()}</span></button>`})({day:t,today:p,focusedDay:o,isSelected:un(t,n),disabled:c(t),inRange:wn(t,a,l),onDaySelect:h,dateFormatter:d,onKeyboardNavigation:u})}</td>`))}</tr>`))}</tbody></table>`;var b,f,g}class Cn extends Vt{constructor(t,e){super(t),this.date=e}}const _n=r`:host{font-feature-settings:var(--n-font-features-reduced)}.n-calendar{-webkit-user-select:none;user-select:none;background:var(--n-color-surface);box-shadow:var(--n-calendar-box-shadow,var(--n-box-shadow-popout));border-radius:var(--n-border-radius-s);max-inline-size:310px;min-inline-size:290px;padding:var(--n-calendar-padding,16px 16px 20px)}@media (max-width:35.9375em){.n-calendar{max-inline-size:100%}}.n-calendar-table{border-collapse:collapse;border-spacing:0;color:var(--n-color-text);font-size:var(--n-font-size-m);font-weight:var(--n-font-weight);line-height:var(--n-date-picker-line-height);text-align:center;inline-size:100%}.n-calendar-table-header{font-size:var(--n-font-size-s);font-weight:var(--n-font-weight-active);letter-spacing:1px;line-height:var(--n-date-picker-line-height);padding-block-end:8px;text-decoration:none;text-transform:uppercase}.n-calendar-cell{text-align:center}.n-calendar-day{-moz-appearance:none;-webkit-appearance:none;appearance:none;background:0 0;border:0;border-radius:var(--n-border-radius-s);color:var(--n-color-text);cursor:pointer;display:inline-block;font-family:var(--n-font-family);font-size:var(--n-font-size-m);font-variant-numeric:tabular-nums;font-weight:var(--n-font-weight);block-size:36px;padding:0 0 1px;position:relative;text-align:center;vertical-align:middle;inline-size:36px;z-index:1}.n-calendar-day[aria-current=date]{box-shadow:0 0 0 1px var(--n-color-accent);color:var(--n-color-text-link);position:relative;z-index:200}.n-calendar-day:hover{background:var(--n-color-active)}.n-calendar-day:focus,.n-calendar-day[aria-pressed=true]{background:var(--n-color-accent);box-shadow:none;color:var(--n-color-text-on-accent);outline:0}.n-calendar-day:active{background:var(--n-color-accent);box-shadow:none!important;color:var(--n-color-text-on-accent);z-index:200}.n-calendar-day:focus{box-shadow:0 0 5px var(--n-color-accent);z-index:200}.n-calendar-day:not(.is-month){box-shadow:none}.n-calendar-day:not(.is-month),.n-calendar-day[aria-disabled=true]{background:0 0;color:var(--n-color-text-weakest);cursor:default}.n-calendar-day[aria-disabled=true][aria-current=date]{box-shadow:0 0 0 1px var(--n-color-accent)}.n-calendar-day[aria-disabled=true][aria-current=date]:focus{box-shadow:0 0 5px var(--n-color-accent);background:var(--n-color-accent);color:var(--n-color-text-on-accent)}.n-calendar-day[aria-disabled=true]:not([aria-current=date])::before{display:none}.n-calendar-day.is-outside{background:0 0;box-shadow:none;color:var(--n-color-text-weakest);cursor:default;pointer-events:none}.n-calendar-day.is-outside::before{display:none}.n-calendar-header{align-items:center;display:flex;justify-content:space-between;margin-block-end:16px;inline-size:100%}.n-calendar-nav{white-space:nowrap}.n-calendar-nav nord-button{--n-button-padding-x:11px;margin-inline-start:calc(var(--n-space-s)/ 2)}.n-calendar-select{display:inline-flex;margin-block-start:4px;position:relative;line-height:var(--n-line-height-heading)}.n-calendar-select span{margin-inline-end:var(--n-space-s)}.n-calendar-select select{cursor:pointer;font-size:var(--n-font-size-l);block-size:100%;inset-inline-start:0;opacity:0;position:absolute;inset-block-start:0;inline-size:100%;z-index:2}.n-calendar-select select:focus+.n-calendar-select-label{box-shadow:0 0 0 2px var(--n-color-accent)}.n-calendar-select-label{align-items:center;border-radius:var(--n-border-radius-s);color:var(--n-color-text);display:flex;font-size:var(--n-font-size-xl);font-weight:var(--n-font-weight-active);line-height:var(--n-date-picker-line-height);padding:0 4px 0 8px;pointer-events:none;position:relative;inline-size:100%;z-index:1}`;se.registerIcon(Ge),se.registerIcon(Qe),se.registerIcon(tn);const An=t=>e=>{e.preventDefault(),t(e)},En=()=>!1;let Sn=class extends tt{constructor(){super(...arguments),this.dialogLabelId="dialog-header",this.direction=new sn(this),this.swipe=new nn(this,{matchesGesture:on,onSwipeEnd:({distX:t})=>this.addMonths(t<0?1:-1)}),this.shortcuts=xe({ArrowRight:An((()=>this.addDays(this.direction.isLTR?1:-1))),ArrowLeft:An((()=>this.addDays(this.direction.isLTR?-1:1))),ArrowDown:An((()=>this.addDays(7))),ArrowUp:An((()=>this.addDays(-7))),Home:An((()=>this.startOfWeek())),End:An((()=>this.endOfWeek())),PageUp:An((()=>this.addMonths(-1))),PageDown:An((()=>this.addMonths(1))),"Shift+PageUp":An((()=>this.addYears(-1))),"Shift+PageDown":An((()=>this.addYears(1)))}),this.localization=kn,this.value="",this.firstDayOfWeek=1,this.min="",this.max="",this.isDateDisabled=En,this.activeFocus=!1,this.focusedDay=new Date,this.handleDaySelect=t=>{const e=wn(t,dn(this.min),dn(this.max)),n=!this.isDateDisabled(t);e&&n&&(this.value=cn(t),this.dispatchEvent(new Cn("change",t)))},this.handleMonthSelect=t=>{this.setMonth(parseInt(t.target.value,10))},this.handleYearSelect=t=>{this.setYear(parseInt(t.target.value,10))},this.handleNextMonthClick=t=>{t.preventDefault(),this.addMonths(1)},this.handlePreviousMonthClick=t=>{t.preventDefault(),this.addMonths(-1)},this.enableActiveFocus=()=>{this.activeFocus=!0},this.disableActiveFocus=()=>{this.activeFocus=!1}}focus(t){var e;const n=null!==(e=null==t?void 0:t.target)&&void 0!==e?e:"day";"day"===n?this.focusedDayNode.focus():"month"===n&&this.monthSelectNode.focus()}willUpdate(t){t.has("value")&&this.setFocusedDay(dn(this.value)||new Date),t.has("localization")&&this.createDateFormatter()}updated(t){t.has("focusedDay")&&this.activeFocus&&this.focusedDayNode.focus()}render(){const t=dn(this.value),e=this.focusedDay.getMonth(),n=this.focusedDay.getFullYear(),o=dn(this.min),i=dn(this.max),r=o?fn(o):void 0,s=i?gn(i):void 0,a=(t||this.focusedDay).getFullYear(),l=o?o.getFullYear():a-10,d=i?i.getFullYear():a+10;return T`<div class="n-calendar"><div class="n-calendar-header"><div><nord-visually-hidden><h2 id="${this.dialogLabelId}" aria-live="polite" aria-atomic="true">${this.localization.monthNames[e]}, ${this.focusedDay.getFullYear()}</h2></nord-visually-hidden><div class="n-calendar-select"><select aria-label="${this.localization.monthSelectLabel}" class="n-calendar-select-month" @input="${this.handleMonthSelect}">${this.localization.monthNames.map(((t,o)=>T`<option key="${t}" value="${o}" ?selected="${o===e}" ?disabled="${!wn(new Date(n,o,1),r,s)}">${t}</option>`))}</select><div class="n-calendar-select-label" aria-hidden="true"><span>${this.localization.monthNamesShort[e]}</span><nord-icon color="var(--n-color-icon)" name="arrow-down-small" size="xs"></nord-icon></div></div><div class="n-calendar-select"><select aria-label="${this.localization.yearSelectLabel}" class="n-calendar-select-year" @input="${this.handleYearSelect}">${le(function(t,e){const n=[];for(let o=t;o<=e;o++)n.push(o);return n}(l,d),(t=>t),(t=>T`<option key="${t}" ?selected="${t===n}">${t}</option>`))}</select><div class="n-calendar-select-label" aria-hidden="true"><span>${this.focusedDay.getFullYear()}</span><nord-icon color="var(--n-color-icon)" name="arrow-down-small" size="xs"></nord-icon></div></div></div><div class="n-calendar-nav"><nord-button class="n-calendar-prev" @click="${this.handlePreviousMonthClick}" ?disabled="${hn(o,this.focusedDay)}" type="button"><nord-visually-hidden>${this.localization.prevMonthLabel}</nord-visually-hidden><nord-icon color="var(--n-color-icon)" name="${this.direction.isLTR?"arrow-left-small":"arrow-right-small"}" size="s"></nord-icon></nord-button><nord-button class="n-calendar-next" @click="${this.handleNextMonthClick}" ?disabled="${hn(i,this.focusedDay)}" type="button"><nord-visually-hidden>${this.localization.nextMonthLabel}</nord-visually-hidden><nord-icon color="var(--n-color-icon)" name="${this.direction.isLTR?"arrow-right-small":"arrow-left-small"}" size="s"></nord-icon></nord-button></div></div>${zn({onFocusOut:this.disableActiveFocus,onFocusIn:this.enableActiveFocus,dateFormatter:this.dateFormatShort,selectedDate:t,focusedDate:this.focusedDay,onDateSelect:this.handleDaySelect,onKeyboardNavigation:this.shortcuts,labelledById:this.dialogLabelId,localization:this.localization,firstDayOfWeek:this.firstDayOfWeek,min:o,max:i,isDateDisabled:this.isDateDisabled})}</div>`}createDateFormatter(){this.dateFormatShort=new Intl.DateTimeFormat(this.localization.locale,{day:"numeric",month:"long"})}addDays(t){this.setFocusedDay(pn(this.focusedDay,t))}addMonths(t){this.setMonth(this.focusedDay.getMonth()+t)}addYears(t){this.setYear(this.focusedDay.getFullYear()+t)}startOfWeek(){this.setFocusedDay(vn(this.focusedDay,this.firstDayOfWeek))}endOfWeek(){this.setFocusedDay(bn(this.focusedDay,this.firstDayOfWeek))}setMonth(t){const e=mn(fn(this.focusedDay),t),n=gn(e),o=mn(this.focusedDay,t);this.setFocusedDay(xn(o,e,n))}setYear(t){const e=yn(fn(this.focusedDay),t),n=gn(e),o=yn(this.focusedDay,t);this.setFocusedDay(xn(o,e,n))}setFocusedDay(t){this.focusedDay=xn(t,dn(this.min),dn(this.max)),this.dispatchEvent(new Cn("nord-focus-date",this.focusedDay))}};Sn.styles=[lt,_n],t([st(".n-calendar-select-month",!0)],Sn.prototype,"monthSelectNode",void 0),t([st('button[tabindex="0"]')],Sn.prototype,"focusedDayNode",void 0),t([it({attribute:!1})],Sn.prototype,"localization",void 0),t([it()],Sn.prototype,"value",void 0),t([it({type:Number})],Sn.prototype,"firstDayOfWeek",void 0),t([it()],Sn.prototype,"min",void 0),t([it()],Sn.prototype,"max",void 0),t([it({attribute:!1})],Sn.prototype,"isDateDisabled",void 0),t([rt()],Sn.prototype,"activeFocus",void 0),t([rt()],Sn.prototype,"focusedDay",void 0),Sn=t([nt("nord-calendar")],Sn);var Dn=Sn;var Ln=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><path d="M7 21h126v112H7zM35 7v28m70-28v28M7 63h126" stroke-width="14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></svg>',title:"interface-calendar",tags:"nordicon interface calendar date time day week month year"});var Mn=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M89.796 74.956a7 7 0 0 1 0-9.912L136.92 17.92a10.5 10.5 0 0 0-14.84-14.84L74.956 50.204a7 7 0 0 1-9.912 0L17.92 3.08A10.5 10.5 0 0 0 3.08 17.92l47.124 47.124a7 7 0 0 1 0 9.912L3.08 122.08a10.5 10.5 0 1 0 14.84 14.84l47.124-47.124a7 7 0 0 1 9.912 0l47.124 47.124a10.5 10.5 0 0 0 14.84-14.84z"/></svg>',title:"interface-close-small",tags:"nordicon interface close remove small cross delete erase symbol"});const Tn=r`:host{--n-date-picker-color-overlay:rgba(0, 0, 0, 0.8);--n-date-picker-line-height:1.25;--n-date-picker-toggle-height:34px;color:var(--n-color-text);font-size:var(--n-font-size-m);position:relative}.n-input-container{inline-size:fit-content}:host([expand]) .n-input-container{inline-size:100%}.n-date-toggle{-webkit-appearance:none;appearance:none;min-block-size:var(--n-date-picker-toggle-height);border-start-end-radius:var(--n-border-radius-s);border-end-end-radius:var(--n-border-radius-s);box-shadow:var(--n-box-shadow),var(--n-box-shadow);padding:1px calc(var(--n-space-m)/ 1.5) 0;color:var(--n-color-icon);cursor:pointer;background:var(--n-color-button);position:absolute;inset-inline-end:1px;inset-block-start:1px;border:0;border-inline-start:1px solid var(--n-color-border-strong);transition:color var(--n-transition-slowly),background var(--n-transition-slowly)}@media (max-width:35.9375em){.n-date-toggle{padding-block-start:0}}.n-date-toggle:hover{color:var(--n-color-icon-hover)}.n-date-toggle:focus{border:0;box-shadow:0 0 0 2px var(--n-color-accent);outline:0}.n-date-toggle:active{opacity:.8}.n-date-toggle:disabled{box-shadow:none;background:0 0;border:0;color:var(--n-color-text-weakest);cursor:default}.n-date-toggle::after{content:"";position:absolute;background:0 0;background-image:linear-gradient(to bottom,rgba(0,0,0,0) 50%,rgba(0,0,0,.013) 100%);background-repeat:repeat-x;inline-size:100%;inset-inline:0;block-size:100%;inset-block-start:0}.n-input{padding-inline-end:calc(var(--n-space-s) * 1.6 + var(--n-date-picker-toggle-height))}[role=dialog]{display:flex;font-feature-settings:var(--n-font-features-reduced);opacity:0;position:absolute;inset-block-start:100%;inset-inline-start:0;transform:scale(.98) translateZ(0) translateY(-10px);transform-origin:top right;transition:transform var(--n-transition-slowly),opacity var(--n-transition-slowly),visibility var(--n-transition-slowly);visibility:hidden;will-change:transform,opacity,visibility;z-index:var(--n-index-dropdown)}@media (max-width:35.9375em){[role=dialog]{inset-block:0;position:fixed;inline-size:100%;inset-inline-end:0;min-inline-size:320px;transform:translateZ(0);transform-origin:bottom center}.n-date-dialog-content{box-shadow:var(--n-box-shadow-modal)}}[role=dialog].is-left{inset-inline:auto 0;inline-size:auto}[role=dialog][aria-hidden=false]{transition-property:transform,opacity;opacity:1;transform:scale(1.0001) translateZ(0) translateY(0);visibility:visible}.n-date-dialog-content{margin-inline-start:auto;margin-block-start:8px;position:relative;transform:none;z-index:var(--n-index-dropdown)}nord-calendar{box-shadow:var(--n-box-shadow-popup)}@media (max-width:35.9375em){.n-date-dialog-content{background:var(--n-color-background);border:0;border-radius:0;border-start-start-radius:var(--n-border-radius-s);border-start-end-radius:var(--n-border-radius-s);inset-block-end:0;inset-inline-start:0;inline-size:100%;margin:0;max-inline-size:none;min-block-size:26em;opacity:0;padding:0 8% 20px;position:absolute;transform:translateZ(0) translateY(100%);transition:transform .4s ease,opacity .4s ease,visibility .4s ease;visibility:hidden;will-change:transform,opacity,visibility}[role=dialog][aria-hidden=false] .n-date-dialog-content{opacity:1;transform:translateZ(0) translateY(0);visibility:visible}nord-calendar{--n-calendar-box-shadow:none;--n-calendar-padding:0}}.n-date-header{align-items:center;display:flex;justify-content:space-between;margin-block-end:16px;inline-size:100%}.n-date-mobile{align-items:center;border-block-end:1px solid rgba(0,0,0,.12);display:flex;justify-content:space-between;margin-block-end:20px;margin-inline-start:-10%;overflow:hidden;padding:12px 20px;position:relative;text-overflow:ellipsis;white-space:nowrap;inline-size:120%}@media (min-width:36em){.n-date-mobile{border:0;margin:0;overflow:visible;padding:0;position:absolute;inset-inline-end:-8px;inset-block-start:-8px;inline-size:auto}}.n-date-mobile-heading{display:inline-block;font-size:var(--n-font-size-m);font-weight:var(--n-font-weight-active);max-inline-size:84%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width:36em){.n-date-mobile-heading{display:none}}.n-date-close{-webkit-appearance:none;align-items:center;appearance:none;background:var(--n-color-background);border:0;border-radius:var(--n-border-radius);color:var(--n-color-text);cursor:pointer;display:flex;block-size:var(--n-size-icon-l);inline-size:var(--n-size-icon-l);justify-content:center;padding:0;z-index:10}@media (min-width:36em){.n-date-close{opacity:0}}.n-date-close:focus{box-shadow:0 0 0 2px var(--n-color-accent);outline:0}@media (min-width:36em){.n-date-close:focus{opacity:1}}.n-date-close svg{margin:0 auto}`,Nn={parse:dn,format:cn},On={...kn,closeLabel:"Close window",buttonLabel:"Choose date",selectedDateMessage:"Selected date is"};se.registerIcon(Ln),se.registerIcon(Mn);const In=/[^0-9./-]+/g,Rn=()=>!1;let Bn=class extends(Jt(It(Ot(tt)))){constructor(){super(...arguments),this.dismiss=new ze(this,{isOpen:()=>this.open,onDismiss:t=>this.hide("click"!==t.type),isDismissible:t=>t!==this.calendar&&t!==this.toggleButton}),this.swipe=new nn(this,{target:()=>this.dialog,matchesGesture:rn,onSwipeEnd:()=>this.hide(!1)}),this.open=!1,this.value="",this.min="",this.max="",this.direction="right",this.firstDayOfWeek=1,this.localization=On,this.dateAdapter=Nn,this.isDateDisabled=Rn,this.handleDaySelect=t=>{t.stopPropagation(),this.setValue(t.date),this.hide()},this.toggleOpen=t=>{t.preventDefault(),this.open?this.hide(!1):this.show()},this.handleBlur=t=>{t.stopPropagation(),this.dispatchEvent(new Vt("blur"))},this.handleFocus=t=>{t.stopPropagation(),this.dispatchEvent(new Vt("focus"))},this.handleInputChange=t=>{const e=t.target;!function(t,e){const{value:n}=t,o=t.selectionStart,i=n.slice(0,o),r=n.slice(o,n.length),s=i.replace(e,""),a=s+r.replace(e,""),l=s.length;t.value=a,t.selectionStart=l,t.selectionEnd=l}(e,In),this.dispatchEvent(new Vt("input"));const n=this.dateAdapter.parse(e.value,ln);(n||""===e.value)&&this.setValue(n)}}get valueAsDate(){return dn(this.value)}set valueAsDate(t){this.value=t?cn(t):""}get valueAsNumber(){var t,e;return null!==(e=null===(t=this.valueAsDate)||void 0===t?void 0:t.getTime())&&void 0!==e?e:NaN}set valueAsNumber(t){this.value=t?cn(new Date(t)):""}show(){this.open=!0,this.dispatchEvent(new Vt("open")),this.updateComplete.then((()=>this.calendar.focus({target:"month"})))}hide(t=!0){this.open=!1,this.dispatchEvent(new Vt("close")),t&&this.toggleButton.focus()}willUpdate(t){t.has("localization")&&this.createDateFormatters()}createDateFormatters(){this.dateFormatLong=new Intl.DateTimeFormat(this.localization.locale,{day:"numeric",month:"long",year:"numeric"})}render(){const{valueAsDate:t}=this,e=t?this.dateAdapter.format(t):"";return T`${this.renderLabel()}<div class="n-input-container"><input class="n-input" name="${this.name}" .value="${e}" placeholder="${ut(this.placeholder)}" id="${this.inputId}" ?disabled="${this.disabled}" ?required="${this.required}" aria-autocomplete="none" @input="${this.handleInputChange}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" autocomplete="off" ${Tt(this.focusableRef)} aria-invalid="${ut(this.error?"true":void 0)}" aria-describedby="${ut(this.getDescribedBy())}"> <button class="n-date-toggle" @click="${this.toggleOpen}" ?disabled="${this.disabled}" type="button"><nord-icon name="interface-calendar" size="s"></nord-icon><nord-visually-hidden>${On.buttonLabel} ${t?T`<span>, ${On.selectedDateMessage} ${this.dateFormatLong.format(t)}</span>`:O}</nord-visually-hidden></button></div>${this.renderError()}<div class="${de({"is-left":"left"===this.direction,"is-active":this.open})}" role="dialog" aria-modal="true" aria-hidden="${this.open?"false":"true"}" aria-labelledby="dialog-header"><div class="n-date-dialog-content"><div aria-hidden="true" tabindex="0" @focus="${this.focusLast}"></div><div class="n-date-mobile"><div class="n-date-mobile-heading" id="dialog-header">${this.localization.calendarHeading}</div><button class="n-date-close" @click="${this.hide}" type="button"><nord-icon color="var(--n-color-icon)" name="interface-close-small" size="xs"></nord-icon><nord-visually-hidden>${this.localization.closeLabel}</nord-visually-hidden></button></div><nord-calendar value="${this.value}" min="${this.min}" max="${this.max}" .localization="${this.localization}" .firstDayOfWeek="${this.firstDayOfWeek}" .isDateDisabled="${this.isDateDisabled}" @change="${this.handleDaySelect}"></nord-calendar><div aria-hidden="true" tabindex="0" @focus="${this.focusFirst}"></div></div></div>`}focusFirst(){this.closeButton.focus()}focusLast(){this.calendar.focus({target:"day"})}setValue(t){this.value=t?cn(t):"",this.dispatchEvent(new Vt("change"))}};Bn.styles=[lt,Gt,Qt,Tn],t([st(".n-date-toggle",!0)],Bn.prototype,"toggleButton",void 0),t([st(".n-date-close",!0)],Bn.prototype,"closeButton",void 0),t([st("nord-calendar",!0)],Bn.prototype,"calendar",void 0),t([st('[role="dialog"]',!0)],Bn.prototype,"dialog",void 0),t([rt()],Bn.prototype,"open",void 0),t([it()],Bn.prototype,"value",void 0),t([it()],Bn.prototype,"min",void 0),t([it()],Bn.prototype,"max",void 0),t([it()],Bn.prototype,"direction",void 0),t([it({attribute:"first-day-of-week",type:Number})],Bn.prototype,"firstDayOfWeek",void 0),t([it({attribute:!1})],Bn.prototype,"localization",void 0),t([it({attribute:!1})],Bn.prototype,"dateAdapter",void 0),t([it({attribute:!1})],Bn.prototype,"isDateDisabled",void 0),Bn=t([nt("nord-date-picker")],Bn);var Pn=Bn;var Un=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M41.86 131.25a23.982 23.982 0 0 1-18.494-8.666L2.254 95.746a10.5 10.5 0 1 1 16.492-12.992l21 26.6a2.24 2.24 0 0 0 2.212.882 3.038 3.038 0 0 0 2.38-1.148l76.958-96.39a10.5 10.5 0 1 1 16.408 13.104L60.606 122.29A24.038 24.038 0 0 1 42 131.25z"/></svg>',title:"interface-checked-small",tags:"nordicon interface checked small symbol checkmark done ready"});const Hn=r`:host{display:inline-block;font-size:var(--n-font-size-m)}.n-flex{display:flex}.n-expand{flex:1}.n-input-container{position:relative}input{--n-checkbox-size:calc(var(--n-space-m) * 1.25);--n-checkbox-accent-color:var(--n-color-accent);-moz-appearance:none;-webkit-appearance:none;appearance:none;border:1px solid var(--n-checkbox-border-color,var(--n-color-border-hover));border-radius:var(--n-border-radius-s);display:block;inline-size:var(--n-checkbox-size);block-size:var(--n-checkbox-size);cursor:pointer}input:checked{--n-checkbox-border-color:var(--n-color-accent);background:var(--n-checkbox-accent-color)}input[aria-invalid]{--n-checkbox-accent-color:var(--n-color-status-danger);--n-checkbox-border-color:var(--n-checkbox-accent-color)}input:focus-visible{outline:0!important}input:focus{outline:0!important;box-shadow:0 0 0 1px var(--n-color-surface),0 0 0 3px var(--n-color-accent)}input:active{opacity:.8}:host([disabled]) label{color:var(--n-color-text-weaker);cursor:default}:host([disabled]) input{--n-checkbox-accent-color:var(--n-color-border-strong);--n-checkbox-border-color:var(--n-checkbox-accent-color);background:var(--n-checkbox-accent-color);cursor:default;opacity:1}nord-icon{display:none;position:absolute;color:var(--n-color-text-on-accent);inset-inline-start:calc(var(--n-space-s)/ 2);inset-block-start:calc(var(--n-space-s)/ 2);z-index:var(--n-index-default);pointer-events:none}input:checked+nord-icon{display:block}.n-label-container{padding-block-end:0}label{-webkit-user-select:none;user-select:none;font-weight:var(--n-font-weight)!important;line-height:var(--n-line-height-l);padding-inline-start:var(--n-space-s);cursor:pointer}.n-hint{padding-inline-start:var(--n-space-s)}.n-error{margin-block-start:calc(var(--n-space-s)/ 2);padding-inline-start:var(--n-space-s)}`;se.registerIcon(Un);let Fn=class extends(Jt(It(Ot(tt)))){constructor(){super(...arguments),this.checked=!1}get formValue(){return this.checked?this.value||"on":void 0}render(){return T`<div class="n-flex"><div class="n-input-container"><input ${Tt(this.focusableRef)} class="n-input" id="${this.inputId}" type="checkbox" name="${ut(this.name)}" .value="${this.value}" .checked="${this.checked}" ?disabled="${this.disabled}" ?required="${this.required}" aria-describedby="${ut(this.getDescribedBy())}" aria-invalid="${ut(this.getInvalid())}" @change="${this.handleChange}"><nord-icon name="interface-checked-small" size="s"></nord-icon></div><div class="n-expand">${this.renderLabel()} ${this.renderError()}</div></div>`}handleChange(t){const e=t.target;this.checked=e.checked,super.handleChange(t)}};Fn.styles=[lt,Gt,Hn],t([it({type:Boolean})],Fn.prototype,"checked",void 0),Fn=t([nt("nord-checkbox")],Fn);var jn=Fn;function Yn(t){return t.split("-")[0]}function Wn(t){return t.split("-")[1]}function qn(t){return["top","bottom"].includes(Yn(t))?"x":"y"}function Vn(t){return"y"===t?"height":"width"}function Zn(t){let{reference:e,floating:n,placement:o}=t;const i=e.x+e.width/2-n.width/2,r=e.y+e.height/2-n.height/2;let s;switch(Yn(o)){case"top":s={x:i,y:e.y-n.height};break;case"bottom":s={x:i,y:e.y+e.height};break;case"right":s={x:e.x+e.width,y:r};break;case"left":s={x:e.x-n.width,y:r};break;default:s={x:e.x,y:e.y}}const a=qn(o),l=Vn(a);switch(Wn(o)){case"start":s[a]=s[a]-(e[l]/2-n[l]/2);break;case"end":s[a]=s[a]+(e[l]/2-n[l]/2)}return s}function Xn(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function Kn(t,e){void 0===e&&(e={});const{x:n,y:o,platform:i,rects:r,elements:s,strategy:a}=t,{boundary:l="clippingParents",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:h=!1,padding:u=0}=e,p=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(u),v=s[h?"floating"===c?"reference":"floating":c],b=await i.getClippingClientRect({element:await i.isElement(v)?v:v.contextElement||await i.getDocumentElement({element:s.floating}),boundary:l,rootBoundary:d}),f=Xn(await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===c?{...r.floating,x:n,y:o}:r.reference,offsetParent:await i.getOffsetParent({element:s.floating}),strategy:a}));return{top:b.top-f.top+p.top,bottom:f.bottom-b.bottom+p.bottom,left:b.left-f.left+p.left,right:f.right-b.right+p.right}}const Jn=Math.min,Gn=Math.max;function Qn(t,e,n){return Gn(t,Jn(e,n))}const to={left:"right",right:"left",bottom:"top",top:"bottom"};function eo(t){return t.replace(/left|right|bottom|top/g,(t=>to[t]))}const no={start:"end",end:"start"};function oo(t){return t.replace(/start|end/g,(t=>no[t]))}const io=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:a}=e;if(null!=(n=r.flip)&&n.skip)return{};const{mainAxis:l=!0,crossAxis:d=!0,fallbackPlacements:c,fallbackStrategy:h="bestFit",flipAlignment:u=!0,...p}=t,v=Yn(i),b=c||(v===a||!u?[eo(a)]:function(t){const e=eo(t);return[oo(t),e,oo(e)]}(a)),f=[a,...b],g=await Kn(e,p),m=[];let y=(null==(o=r.flip)?void 0:o.overflows)||[];if(l&&m.push(g[v]),d){const{main:t,cross:e}=function(t,e){const n="start"===Wn(t),o=qn(t),i=Vn(o);let r="x"===o?n?"right":"left":n?"bottom":"top";return e.reference[i]>e.floating[i]&&(r=eo(r)),{main:r,cross:eo(r)}}(i,s);m.push(g[t],g[e])}if(y=[...y,{placement:i,overflows:m}],!m.every((t=>t<=0))){var x,w;const t=(null!=(x=null==(w=r.flip)?void 0:w.index)?x:0)+1,e=f[t];if(e)return{data:{index:t,overflows:y},reset:{placement:e}};let n="bottom";switch(h){case"bestFit":{var $;const t=null==($=y.slice().sort(((t,e)=>t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)-e.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)))[0])?void 0:$.placement;t&&(n=t);break}case"initialPlacement":n=a}return{data:{skip:!0},reset:{placement:n}}}return{}}}};const ro=function(t){return void 0===t&&(t=0),{name:"offset",options:t,fn(e){const{x:n,y:o,placement:i,rects:r}=e,s=function(t){let{placement:e,rects:n,value:o}=t;const i=Yn(e),r=["left","top"].includes(i)?-1:1,s="function"==typeof o?o({...n,placement:e}):o,{mainAxis:a,crossAxis:l}="number"==typeof s?{mainAxis:s,crossAxis:0}:{mainAxis:0,crossAxis:0,...s};return"x"===qn(i)?{x:l,y:a*r}:{x:a*r,y:l}}({placement:i,rects:r,value:t});return{x:n+s.x,y:o+s.y,data:s}}}};function so(t){return"[object Window]"===(null==t?void 0:t.toString())}function ao(t){if(null==t)return window;if(!so(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function lo(t){return ao(t).getComputedStyle(t)}function co(t){return so(t)?"":t?(t.nodeName||"").toLowerCase():""}function ho(t){return t instanceof ao(t).HTMLElement}function uo(t){return t instanceof ao(t).Element}function po(t){return t instanceof ao(t).ShadowRoot||t instanceof ShadowRoot}function vo(t){const{overflow:e,overflowX:n,overflowY:o}=lo(t);return/auto|scroll|overlay|hidden/.test(e+o+n)}function bo(t){return["table","td","th"].includes(co(t))}function fo(t){const e=navigator.userAgent.toLowerCase().includes("firefox"),n=lo(t);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter}const go=Math.min,mo=Math.max,yo=Math.round;function xo(t,e){void 0===e&&(e=!1);const n=t.getBoundingClientRect();let o=1,i=1;return e&&ho(t)&&(o=t.offsetWidth>0&&yo(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&yo(n.height)/t.offsetHeight||1),{width:n.width/o,height:n.height/i,top:n.top/i,right:n.right/o,bottom:n.bottom/i,left:n.left/o,x:n.left/o,y:n.top/i}}function wo(t){return(e=t,(e instanceof ao(e).Node?t.ownerDocument:t.document)||window.document).documentElement;var e}function $o(t){return so(t)?{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}:{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function ko(t){return xo(wo(t)).left+$o(t).scrollLeft}function zo(t,e,n){const o=ho(e),i=wo(e),r=xo(t,o&&function(t){const e=xo(t);return yo(e.width)!==t.offsetWidth||yo(e.height)!==t.offsetHeight}(e));let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==co(e)||vo(i))&&(s=$o(e)),ho(e)){const t=xo(e,!0);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}else i&&(a.x=ko(i));return{x:r.left+s.scrollLeft-a.x,y:r.top+s.scrollTop-a.y,width:r.width,height:r.height}}function Co(t){return"html"===co(t)?t:t.assignedSlot||t.parentNode||(po(t)?t.host:null)||wo(t)}function _o(t){return ho(t)&&"fixed"!==getComputedStyle(t).position?t.offsetParent:null}function Ao(t){const e=ao(t);let n=_o(t);for(;n&&bo(n)&&"static"===getComputedStyle(n).position;)n=_o(n);return n&&("html"===co(n)||"body"===co(n)&&"static"===getComputedStyle(n).position&&!fo(n))?e:n||function(t){let e=Co(t);for(;ho(e)&&!["html","body"].includes(co(e));){if(fo(e))return e;e=e.parentNode}return null}(t)||e}function Eo(t){return{width:t.offsetWidth,height:t.offsetHeight}}function So(t){return["html","body","#document"].includes(co(t))?t.ownerDocument.body:ho(t)&&vo(t)?t:So(Co(t))}function Do(t,e){var n;void 0===e&&(e=[]);const o=So(t),i=o===(null==(n=t.ownerDocument)?void 0:n.body),r=ao(o),s=i?[r].concat(r.visualViewport||[],vo(o)?o:[]):o,a=e.concat(s);return i?a:a.concat(Do(Co(s)))}function Lo(t,e){return"viewport"===e?Xn(function(t){const e=ao(t),n=wo(t),o=e.visualViewport;let i=n.clientWidth,r=n.clientHeight,s=0,a=0;return o&&(i=o.width,r=o.height,Math.abs(e.innerWidth/o.scale-o.width)<.01&&(s=o.offsetLeft,a=o.offsetTop)),{width:i,height:r,x:s,y:a}}(t)):uo(e)?function(t){const e=xo(t),n=e.top+t.clientTop,o=e.left+t.clientLeft;return{top:n,left:o,x:o,y:n,right:o+t.clientWidth,bottom:n+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}(e):Xn(function(t){var e;const n=wo(t),o=$o(t),i=null==(e=t.ownerDocument)?void 0:e.body,r=mo(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=mo(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let a=-o.scrollLeft+ko(t);const l=-o.scrollTop;return"rtl"===lo(i||n).direction&&(a+=mo(n.clientWidth,i?i.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}(wo(t)))}function Mo(t){const e=Do(Co(t)),n=["absolute","fixed"].includes(lo(t).position)&&ho(t)?Ao(t):t;return uo(n)?e.filter((t=>uo(t)&&function(t,e){const n=null==e.getRootNode?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&po(n)){let n=e;do{if(n&&t===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(t,n)&&"body"!==co(t))):[]}const To={getElementRects:t=>{let{reference:e,floating:n,strategy:o}=t;return{reference:zo(e,Ao(n),o),floating:{...Eo(n),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:t=>function(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=ho(n),r=wo(n);if(n===r)return e;let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((i||!i&&"fixed"!==o)&&(("body"!==co(n)||vo(r))&&(s=$o(n)),ho(n))){const t=xo(n,!0);a.x=t.x+n.clientLeft,a.y=t.y+n.clientTop}return{...e,x:e.x-s.scrollLeft+a.x,y:e.y-s.scrollTop+a.y}}(t),getOffsetParent:t=>{let{element:e}=t;return Ao(e)},isElement:t=>uo(t),getDocumentElement:t=>{let{element:e}=t;return wo(e)},getClippingClientRect:t=>function(t){let{element:e,boundary:n,rootBoundary:o}=t;const i=[..."clippingParents"===n?Mo(e):[].concat(n),o],r=i[0],s=i.reduce(((t,n)=>{const o=Lo(e,n);return t.top=mo(o.top,t.top),t.right=go(o.right,t.right),t.bottom=go(o.bottom,t.bottom),t.left=mo(o.left,t.left),t}),Lo(e,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(t),getDimensions:t=>{let{element:e}=t;return Eo(e)},getClientRects:t=>{let{element:e}=t;return e.getClientRects()}},No=(t,e,n)=>(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n;let a=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:l,y:d}=Zn({...a,placement:o}),c=o,h={};for(let n=0;n<r.length;n++){const{name:u,fn:p}=r[n],{x:v,y:b,data:f,reset:g}=await p({x:l,y:d,initialPlacement:o,placement:c,strategy:i,middlewareData:h,rects:a,platform:s,elements:{reference:t,floating:e}});l=null!=v?v:l,d=null!=b?b:d,h={...h,[u]:null!=f?f:{}},g&&("object"==typeof g&&(g.placement&&(c=g.placement),g.rects&&(a=!0===g.rects?await s.getElementRects({reference:t,floating:e,strategy:i}):g.rects),({x:l,y:d}=Zn({...a,placement:c}))),n=-1)}return{x:l,y:d,placement:c,strategy:i,middlewareData:h}})(t,e,{platform:To,...n});function Oo(t,e){const n=t.getAttribute(e);return n?n.split(/\s+/):[]}function Io(t,e,n){t.setAttribute(e,n.join(" "))}const Ro=r`:host{--n-tooltip-background:rgba(20, 20, 20, 0.95);--n-tooltip-color:#fff;--n-tooltip-key-border:rgba(255, 255, 255, 0.03);--n-tooltip-key-background:rgba(255, 255, 255, 0.1);position:absolute;pointer-events:none;visibility:hidden;opacity:0;transition:opacity .4s ease,visibility .4s ease;z-index:var(--n-index-popout)}.n-tooltip{gap:var(--n-space-s);font-family:var(--n-font-family);font-size:var(--n-font-size-xs);line-height:var(--n-line-height);color:var(--n-tooltip-color);padding:calc(var(--n-space-s)/ 1.5) var(--n-space-s);background-color:var(--n-tooltip-background);border-radius:var(--n-border-radius-s)}.n-tooltip,.n-tooltip-shortcut{display:flex;align-items:center}.n-tooltip-shortcut{gap:2px}::slotted([slot=shortcut]){box-sizing:border-box;margin:0;inline-size:var(--n-size-icon-m);block-size:var(--n-size-icon-m);border-radius:var(--n-border-radius-s);border:1px solid var(--n-tooltip-key-border)!important;padding:1px!important;text-align:center;font-size:var(--n-font-size-xs);line-height:var(--n-line-height-tight);letter-spacing:-.5px;vertical-align:middle!important;background-color:var(--n-tooltip-key-background)}`;var Bo;let Po=Bo=class extends tt{constructor(){super(...arguments),this.shortcutSlot=new Ut(this,"shortcut"),this.proxy=document.createElement("span"),this.visible=!1,this.position="top",this.role="tooltip",this.id="",this.delay=300,this.updatePosition=()=>{return No(this.targetElement,this,{placement:this.position,middleware:[(t={padding:8},void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=t,d={x:n,y:o},c=await Kn(e,l),h=qn(Yn(i)),u="x"===h?"y":"x";let p=d[h],v=d[u];if(r){const t="y"===h?"bottom":"right";p=Qn(p+c["y"===h?"top":"left"],p,p-c[t])}if(s){const t="y"===u?"bottom":"right";v=Qn(v+c["y"===u?"top":"left"],v,v-c[t])}const b=a.fn({...e,[h]:p,[u]:v});return{...b,data:{x:b.x-n,y:b.y-o}}}}),ro(8),io()]}).then((({x:t,y:e})=>{this.style.insetInlineStart=`${t}px`,this.style.insetBlockStart=`${e}px`}));var t},this.handleScroll=()=>{this.visible&&this.updatePosition()},this.showTooltip=()=>{var t;this.visible||(null===(t=Bo.lastOpened)||void 0===t||t.hideTooltip(),Bo.lastOpened=this,this.updatePosition().then((()=>{this.visible=!0})))},this.hideTooltip=()=>{this.visible=!1},this.hideOnEscape=t=>{this.visible&&"Escape"===t.key&&this.hideTooltip()},this.addDescribedBy=()=>{var t,e;const n=null===(e=null===(t=this.targetElement)||void 0===t?void 0:t.focusableRef)||void 0===e?void 0:e.value;n&&(this.proxy.hidden=!0,this.proxy.id=this.id,this.proxy.textContent=this.textContent,n.insertAdjacentElement("afterend",this.proxy),function(t,e,n){const o=Oo(t,e);o.includes(n)||Io(t,e,o.concat(n))}(n,"aria-describedby",this.id))},this.removeDescribedBy=()=>{var t,e;const n=null===(e=null===(t=this.targetElement)||void 0===t?void 0:t.focusableRef)||void 0===e?void 0:e.value;n&&(this.proxy.remove(),function(t,e,n){const o=Oo(t,e);o.includes(n)&&Io(t,e,o.filter((t=>t!==n)))}(n,"aria-describedby",this.id))}}connectedCallback(){super.connectedCallback();const t=this.getRootNode(),e=`[aria-describedby='${this.id}']`,n=t.querySelector(e);n?(this.targetElement=n,n.addEventListener("keydown",this.hideOnEscape),n.addEventListener("mouseenter",this.showTooltip),n.addEventListener("mouseleave",this.hideTooltip),n.addEventListener("focus",this.showTooltip),n.addEventListener("blur",this.hideTooltip),window.addEventListener("resize",this.updatePosition,{passive:!0}),window.addEventListener("scroll",this.handleScroll,{passive:!0})):console.warn("NORD: tooltip found no element matching selector:",e)}disconnectedCallback(){super.disconnectedCallback(),this.targetElement&&(this.targetElement.removeEventListener("keydown",this.hideOnEscape),this.targetElement.removeEventListener("mouseenter",this.showTooltip),this.targetElement.removeEventListener("mouseleave",this.hideTooltip),this.targetElement.removeEventListener("focus",this.showTooltip),this.targetElement.removeEventListener("blur",this.hideTooltip),window.removeEventListener("resize",this.updatePosition),window.removeEventListener("scroll",this.handleScroll))}willUpdate(t){t.has("id")&&!this.id&&console.warn("NORD: The tooltip requires an id attribute and value"),t.has("visible")&&(this.visible?(this.addDescribedBy(),this.style.transitionDelay=`${this.delay}ms`,this.style.visibility="visible",this.style.opacity="1"):(this.removeDescribedBy(),this.style.transitionDelay="0ms",this.style.visibility="hidden",this.style.opacity="0"))}render(){return T`<div class="n-tooltip"><slot></slot><div class="n-tooltip-shortcut" ?hidden="${this.shortcutSlot.isEmpty}"><slot class="n-tooltip-key" name="shortcut"></slot></div></div>`}};Po.styles=[lt,Ro],t([rt()],Po.prototype,"visible",void 0),t([it({reflect:!0})],Po.prototype,"position",void 0),t([it({reflect:!0})],Po.prototype,"role",void 0),t([it({reflect:!0})],Po.prototype,"id",void 0),t([it({reflect:!0,type:Number})],Po.prototype,"delay",void 0),Po=Bo=t([nt("nord-tooltip")],Po);var Uo=Po;const Ho=r`fieldset{border:none}.n-label-container{margin-block-end:var(--n-space-s)}`;let Fo=class extends tt{constructor(){super(...arguments),this.errorSlot=new Ut(this,"error"),this.hintSlot=new Ut(this,"hint"),this.label=""}render(){const{hasError:t}=this;return T`<fieldset aria-invalid="${ut(t?"true":void 0)}" aria-describedby="${ut(t?"error":void 0)}"><legend class="n-label-container"><slot class="n-label" name="label">${this.label}</slot><div class="n-caption n-hint" ?hidden="${!this.hasHint}"><slot name="hint">${this.hint}</slot></div></legend><slot></slot><div class="n-caption n-error" id="error" role="alert" ?hidden="${!this.hasError}"><slot name="error">${this.error}</slot></div></fieldset>`}get hasHint(){return Boolean(this.hint)||this.hintSlot.hasContent}get hasError(){return Boolean(this.error)||this.errorSlot.hasContent}};Fo.styles=[lt,Gt,Ho],t([it()],Fo.prototype,"label",void 0),t([it()],Fo.prototype,"hint",void 0),t([it()],Fo.prototype,"error",void 0),Fo=t([nt("nord-fieldset")],Fo);var jo=Fo;class Yo extends Ut{constructor(t,e){super(t,e.slotName),this.options=e,this.onChange=()=>{this.syncLightDom()},this.options=e,this.renderHook=document.createComment(this.slotName),this.lightDom=new Nt(t,{render:()=>this.hasContent?O:this.options.render(),renderOptions:{renderBefore:this.renderHook}})}hostConnected(){super.hostConnected(),this.host.appendChild(this.renderHook),this.syncLightDom()}hostDisconnected(){super.hostDisconnected(),this.renderHook.remove()}syncLightDom(){const t=this.content;t&&this.options.syncLightDom(t)}}const Wo=r`:host{--n-radio-size:calc(var(--n-space-m) * 1.25);display:inline-block;line-height:var(--n-line-height);font-size:var(--n-font-size-m)}.n-flex{display:flex}.n-expand{flex:1}.n-input-container{position:relative}::slotted(input){--n-radio-accent-color:var(--n-color-accent);-moz-appearance:none;-webkit-appearance:none;appearance:none;margin:0!important;padding:0!important;border:1px solid var(--n-radio-border-color,var(--n-color-border-hover))!important;border-radius:var(--n-border-radius-circle)!important;transition:none!important;display:block!important;inline-size:var(--n-radio-size)!important;block-size:var(--n-radio-size)!important;cursor:pointer}::slotted(input:checked){--n-radio-border-color:var(--n-color-accent);background:var(--n-radio-accent-color)!important}::slotted(input[aria-invalid]){--n-radio-accent-color:var(--n-color-status-danger);--n-radio-border-color:var(--n-radio-accent-color)}::slotted(input:active){opacity:.8}::slotted(input:focus-visible){outline:0!important}::slotted(input:focus){outline:0!important;box-shadow:0 0 0 1px var(--n-color-surface),0 0 0 3px var(--n-color-accent)!important}:host([disabled]) ::slotted(input){--n-radio-accent-color:var(--n-color-border-strong);--n-radio-border-color:var(--n-radio-accent-color);background:var(--n-radio-accent-color);cursor:default;opacity:1}:host([disabled]) ::slotted(label){color:var(--n-color-text-weaker);cursor:default}.n-dot{--n-radio-dot-size:var(--n-space-s);--n-radio-dot-inset:calc((var(--n-radio-size) - var(--n-radio-dot-size)) / 2);position:absolute;border-radius:var(--n-border-radius-circle);inline-size:var(--n-radio-dot-size);block-size:var(--n-radio-dot-size);background-color:var(--n-color-text-on-accent);inset-inline-start:var(--n-radio-dot-inset);inset-block-start:var(--n-radio-dot-inset);z-index:var(--n-index-default);pointer-events:none}.n-label-container{padding-block-end:0}::slotted(label){-webkit-user-select:none;user-select:none;font-weight:var(--n-font-weight)!important;line-height:var(--n-line-height-l)!important;padding-inline-start:var(--n-space-s)!important;cursor:pointer}.n-hint{padding-inline-start:var(--n-space-s)}.n-error{margin-block-start:calc(var(--n-space-s)/ 2);padding-inline-start:var(--n-space-s)}`;let qo=0;const Vo=t=>`nord-radio-${t}-${qo++}`;let Zo=class extends(Jt(It(Ot(tt)))){constructor(){super(...arguments),this.inputId=Vo("input"),this.hintId=Vo("hint"),this.errorId=Vo("error"),this.hintSlot=new Yo(this,{slotName:"hint",render:()=>this.hint?T`<div slot="hint-internal" id="${this.hintId}">${this.hint}</div>`:O,syncLightDom:t=>{t.id=this.hintId}}),this.labelSlot=new Yo(this,{slotName:"label",render:()=>this.label?T`<label slot="label-internal" for="${this.inputId}">${this.label}</label>`:O,syncLightDom:t=>{!function(t){return"label"===t.localName}(t)?console.warn('NORD: Only <label> elements should be placed in radio\'s "label" slot'):t.htmlFor=this.inputId}}),this.errorSlot=new Yo(this,{slotName:"error",render:()=>this.error?T`<div slot="error-internal" id="${this.errorId}">${this.error}</div>`:O,syncLightDom:t=>{t.id=this.hintId}}),this.inputSlot=new Nt(this,{render:()=>T`<input slot="input" @blur="${this.handleBlur}" @focus="${this.handleFocus}" ${Tt(this.focusableRef)} class="n-input" id="${this.inputId}" type="radio" name="${ut(this.name)}" .value="${this.value}" .checked="${this.checked}" ?disabled="${this.disabled}" ?required="${this.required}" aria-describedby="${ut(this.getDescribedBy())}" aria-invalid="${ut(this.getInvalid())}">`}),this.checked=!1,this.handleBlur=t=>{t.stopPropagation(),this.dispatchEvent(new Event("blur",{bubbles:!1,cancelable:!0}))},this.handleFocus=t=>{t.stopPropagation(),this.dispatchEvent(new Event("focus",{bubbles:!1,cancelable:!0}))}}get formValue(){}willUpdate(t){if(t.has("checked")){!t.get("checked")&&this.checked&&this.uncheckSiblings()}}render(){return T`<div class="n-flex"><div class="n-input-container" @change="${this.handleChange}"><slot name="input"></slot>${this.checked?T`<div class="n-dot"></div>`:O}</div><div class="n-expand"><div class="n-label-container">${t=this.hideLabel,e=()=>T`<slot name="label"></slot><slot name="label-internal"></slot>`,n=t=>T`<nord-visually-hidden>${t}</nord-visually-hidden>`,t?n(e()):e()}<div class="n-caption n-hint" ?hidden="${!this.hasHint}"><slot name="hint"></slot><slot name="hint-internal"></slot></div></div><div class="n-caption n-error" role="alert" ?hidden="${!this.hasError}"><slot name="error"></slot><slot name="error-internal"></slot></div></div></div>`;var t,e,n}uncheckSiblings(){this.getRootNode().querySelectorAll(`nord-radio[name="${this.name}"]`).forEach((t=>{t!==this&&(t.checked=!1)}))}handleChange(t){t.stopPropagation();const e=t.target;this.checked=e.checked,super.handleChange(t)}};Zo.styles=[lt,Gt,Wo],t([it({type:Boolean,reflect:!0})],Zo.prototype,"checked",void 0),Zo=t([nt("nord-radio")],Zo);var Xo=Zo;function Ko(t){class e extends t{connectedCallback(){super.connectedCallback(),e._warningLogged||(console.warn(`NORD: %c${this.localName}%c should not be used in production, as it is in draft status.`,"font-weight:bold","font-weight:normal"),e._warningLogged=!0)}}return e._warningLogged=!1,e}const Jo=r`:host{--n-banner-box-shadow:none;font-size:var(--n-font-size-m);color:var(--n-color-text)}::slotted(*){margin:0!important}::slotted(a){color:var(--n-color-text-link);text-decoration:underline}::slotted(a:hover){text-decoration:none}.n-header,.n-header-actions{display:flex;flex-flow:row wrap;align-items:center;gap:var(--n-space-m)}.n-header{padding:var(--n-space-m) var(--n-space-l);background-color:var(--n-color-surface);border-block-end:1px solid var(--n-color-border);box-shadow:var(--n-box-shadow-header);min-block-size:var(--n-space-xxl)}.n-header-actions{margin-inline-start:auto;gap:var(--n-space-s)}`;let Go=class extends(Ko(tt)){constructor(){super(...arguments),this.actionSlot=new Ut(this,"action")}render(){return T`<header class="n-header"><slot></slot><div class="n-header-actions" ?hidden="${this.actionSlot.isEmpty}"><slot name="action"></slot></div></header>`}};Go.styles=[lt,Jo],Go=t([nt("nord-header")],Go);var Qo=Go;const ti=r`:host{all:unset;display:block;color:var(--n-color-text-weak);font-weight:var(--n-font-weight);font-family:var(--n-font-family);line-height:var(--n-line-height-tight);white-space:nowrap;text-overflow:ellipsis;user-select:none;font-size:var(--n-font-size-m)}*,::after,::before{box-sizing:border-box}[role=list]{margin-block-end:var(--n-space-m);min-inline-size:100%;list-style:none;appearance:none;border:0;box-sizing:border-box;margin:0;padding:0}.n-heading{min-inline-size:100%;color:var(--n-color-nav-heading);font-weight:var(--n-font-weight-active);font-size:var(--n-font-size-m);padding-inline-start:var(--n-space-s);margin-block-end:var(--n-space-s)}`;let ei=class extends(Ko(tt)){render(){return T`${this.heading?T`<p id="heading" aria-hidden="true" class="n-heading">${this.heading}</p>`:O}<div role="list" aria-labelledby="${this.heading?"heading":O}"><slot></slot></div>`}};ei.styles=ti,t([it()],ei.prototype,"heading",void 0),ei=t([nt("nord-nav-group")],ei);var ni=ei;const oi=r`:host{all:unset;display:block;font-size:var(--n-font-size-m);font-feature-settings:var(--n-font-features);font-family:var(--n-font-family)}*,::after,::before{box-sizing:border-box}.n-nav-item{display:flex;align-items:center;font-family:inherit;font-size:inherit;line-height:var(--n-line-height-tight);-webkit-appearance:none;appearance:none;color:var(--n-color-text-weak);padding:var(--n-space-s);min-block-size:28px;margin-block-end:1px;border-radius:var(--n-border-radius-s);text-decoration:none;inline-size:100%;background:0 0;cursor:pointer;border:0;text-align:start;box-shadow:var(--n-nav-item-box-shadow,none)}.n-nav-item:focus{--n-nav-item-box-shadow:0 0 0 2px var(--n-color-accent);outline:0;position:relative;z-index:var(--n-index-masked)}.n-nav-item:hover{background:var(--n-color-nav-hover);color:var(--n-color-text)}.n-nav-item:active{opacity:.7}.n-content{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host([active]) .n-nav-item{--n-nav-item-box-shadow:var(--n-box-shadow);background:var(--n-color-accent);color:var(--n-color-text-on-accent);font-weight:var(--n-font-weight-active)}:host([active]) .n-nav-item:focus{--n-nav-item-box-shadow:0 0 0 1px var(--n-color-nav-surface),0 0 0 3px var(--n-color-accent)}:host([active]) nord-icon{color:currentColor}.n-toggle-icon{color:var(--n-color-icon);margin-inline-end:var(--n-space-s);margin-inline-start:var(--n-space-s)}.n-toggle-icon.n-rtl{transform:rotate(-180deg)}[aria-expanded=true] .n-toggle-icon{transform:rotate(90deg)}.n-nav-icon{margin-inline-end:calc(var(--n-space-s) * 1.4);flex-shrink:0}::slotted(nord-nav-group){margin-inline-start:calc(var(--n-space-m) + calc(var(--n-space-s) * 1.3))}.n-nav-badge{border-radius:var(--n-border-radius-pill);background:var(--n-color-status-highlight);color:rgba(0,0,0,.8);font-weight:var(--n-font-weight-active);font-feature-settings:var(--n-font-features-reduced);padding:4px 6px;text-align:center;min-inline-size:20px;margin-inline-start:var(--n-space-s);font-size:var(--n-font-size-xs);display:inline-block}`;let ii=class extends(Ot(Ko(tt))){constructor(){super(...arguments),this.subnavSlot=new Ut(this,"subnav"),this.direction=new sn(this),this.active=!1,this.open=!1}connectedCallback(){super.connectedCallback(),this.querySelector("nord-nav-item[active]")&&(this.open=!0)}render(){const t=T`${this.icon?T`<nord-icon class="n-nav-icon" name="${this.icon}" size="m"></nord-icon>`:O}<div class="n-content"><slot></slot></div>`;let e;return e=this.subnavSlot.hasContent?this.renderToggle(t):this.href?this.renderLink(t):this.renderButton(t),T`<div role="listitem">${e}<slot name="${this.subnavSlot.slotName}" ?hidden="${!this.open}"></slot></div>`}renderLink(t){return T`<a class="n-nav-item" ${Tt(this.focusableRef)} aria-current="${ut(this.active?"page":void 0)}" href="${this.href||""}">${t} ${this.badge?T`<span class="n-nav-badge">${this.badge}</span>`:O}</a>`}renderToggle(t){return T`<button class="n-nav-item" @click="${this.toggleOpen}" aria-expanded="${this.open?"true":"false"}" ${Tt(this.focusableRef)}>${t}<nord-icon size="xs" class="${de({"n-toggle-icon":!0,"n-rtl":this.direction.isRTL})}" name="arrow-expand-right-small"></nord-icon></button>`}renderButton(t){return T`<button class="n-nav-item" ${Tt(this.focusableRef)}>${t} ${this.badge?T`<span class="n-nav-badge">${this.badge}</span>`:O}</button>`}toggleOpen(){this.open=!this.open,this.dispatchEvent(new Vt("toggle"))}};ii.styles=oi,t([it({type:Boolean,reflect:!0})],ii.prototype,"active",void 0),t([it()],ii.prototype,"icon",void 0),t([it()],ii.prototype,"href",void 0),t([it()],ii.prototype,"badge",void 0),t([it({type:Boolean})],ii.prototype,"open",void 0),ii=t([nt("nord-nav-item")],ii);var ri=ii;const si=r`:host{all:unset;display:flex;flex-direction:column;block-size:100%;background:var(--n-color-nav-surface);border-inline-end:1px solid var(--n-color-border);overflow:hidden auto}*,::after,::before{box-sizing:border-box}nav{flex-grow:1;padding:var(--n-space-m)}slot[name=footer],slot[name=header]{display:flex;flex-direction:column;justify-content:center}slot[name=header]{min-block-size:var(--n-space-xxl);border-block-end:1px solid var(--n-color-border)}slot[name=footer]{padding:var(--n-space-m)}`;let ai=class extends(Ko(tt)){render(){return T`<slot name="header"></slot><nav><slot></slot></nav><slot name="footer"></slot>`}};ai.styles=si,ai=t([nt("nord-navigation")],ai);var li=ai;const di=r`:host{--n-nav-width:250px;background:var(--n-color-background);font-size:var(--n-font-size-m);color:var(--n-color-text)}.n-layout-main,.n-layout-nav{background:var(--n-color-background);inset-block-start:0;min-block-size:100%;position:absolute}.n-layout-nav{position:fixed;transition:transform .3s ease;user-select:none;inline-size:var(--n-nav-width);z-index:2;inset-block-start:0;inset-inline-start:0;inset-block-end:0}@media (max-width:768px){.n-layout-nav{transform:translateX(-100%)}}.n-layout-main{inset-inline-end:0;z-index:1;transition:width .2s ease;inline-size:calc(100% - var(--n-nav-width))}@media (max-width:768px){.n-layout-main{inline-size:100%}}main{padding:var(--n-space-l)}::slotted(a){color:var(--n-color-text-link);text-decoration:underline}::slotted(a:hover){text-decoration:none}`;let ci=class extends(Ko(tt)){render(){return T`<div class="n-layout"><div class="n-layout-nav"><slot name="nav"></slot></div><div class="n-layout-main"><slot name="header"></slot><main><slot></slot></main></div></div>`}};ci.styles=[lt,di],ci=t([nt("nord-layout")],ci);var hi=ci;const ui=r`:host{background:var(--n-color-surface);font-size:var(--n-font-size-m);color:var(--n-color-text)}.n-empty-state{text-align:center;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:var(--n-space-xl)}@media (max-width:500px){.n-empty-state{padding:var(--n-space-l) var(--n-space-m)}}::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){color:var(--n-color-text)!important;margin:0 0 var(--n-space-m)!important;font-weight:var(--n-font-weight-heading)!important;font-size:var(--n-font-size-xl)!important;line-height:var(--n-line-height-heading)!important}::slotted(p){margin:0 0 var(--n-space-l)!important;font-size:var(--n-font-size-m)!important;color:var(--n-color-text-weaker)!important;line-height:var(--n-line-height)!important;max-inline-size:var(--n-empty-state-text-width,400px)}`;let pi=class extends tt{render(){return T`<div class="n-empty-state"><slot></slot></div>`}};pi.styles=[lt,ui],pi=t([nt("nord-empty-state")],pi);var vi=pi;var bi=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><path d="M7 70a63 63 0 1 0 126 0A63 63 0 1 0 7 70z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="14"/><path fill="currentColor" d="M59.5 101.5a10.5 10.5 0 1 0 21 0 10.5 10.5 0 1 0-21 0z"/><path d="M70 70a17.5 17.5 0 1 0-14-28" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="14"/></svg>',title:"interface-help-2",tags:"nordicon interface help support question mark circle round"});var fi=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M18 9C18.9941 9 19.8 9.80589 19.8 10.8V18C19.8 18.9941 18.9941 19.8 18 19.8C17.0058 19.8 16.2 18.9941 16.2 18V10.8C16.2 9.80589 17.0058 9 18 9Z" fill="currentColor"/><path d="M15.3214 25.2C15.3214 25.9104 15.6036 26.5917 16.106 27.0941C16.6083 27.5964 17.2896 27.8786 18 27.8786C18.7105 27.8786 19.3918 27.5964 19.8941 27.0941C20.3965 26.5917 20.6787 25.9104 20.6787 25.2C20.6787 24.4896 20.3965 23.8083 19.8941 23.3059C19.3918 22.8036 18.7105 22.5214 18 22.5214C17.2896 22.5214 16.6083 22.8036 16.106 23.3059C15.6036 23.8083 15.3214 24.4896 15.3214 25.2Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M15.3891 0.71328C16.1794 0.244619 17.0813 -0.00268555 18.0002 -0.00268555C18.919 -0.00268555 19.8209 0.244619 20.6113 0.71328C21.3993 1.18057 22.0474 1.85075 22.4881 2.65385L35.092 25.2668L35.0968 25.2753C35.7031 26.3771 36.0118 27.618 35.9924 28.8754C35.973 30.1329 35.6263 31.3636 34.9863 32.4462C34.3463 33.5288 33.4352 34.426 32.3428 35.0491C31.2505 35.6723 30.0146 36 28.757 35.9999C28.757 35.9999 28.757 35.9999 28.757 35.9999H7.23618C7.23611 35.9999 7.23626 35.9999 7.23618 35.9999C5.97993 35.9998 4.74519 35.6722 3.65409 35.0496C2.56299 34.427 1.65299 33.5308 1.01378 32.4493C0.374574 31.3678 0.0282382 30.1384 0.00891227 28.8823C-0.0104135 27.6262 0.297938 26.3868 0.90357 25.2862L0.90814 25.2779L13.5122 2.65398C13.9529 1.85082 14.601 1.1806 15.3891 0.71328ZM7.23641 32.3999H28.757C29.3889 32.4 30.0101 32.2353 30.559 31.9222C31.1079 31.609 31.5657 31.1582 31.8873 30.6142C32.2089 30.0703 32.3831 29.4518 32.3928 28.82C32.4026 28.1896 32.2482 27.5676 31.945 27.0149C31.9442 27.0136 31.9435 27.0123 31.9428 27.011L19.3403 4.40069L19.3332 4.38778C19.2024 4.14852 19.0096 3.94887 18.7751 3.80979C18.5405 3.67071 18.2729 3.59731 18.0002 3.59731C17.7275 3.59731 17.4599 3.67071 17.2253 3.80979C16.9908 3.94887 16.798 4.14852 16.6672 4.38778L16.6602 4.40037L4.0576 27.0217C4.05692 27.0229 4.05625 27.0242 4.05558 27.0254C3.75289 27.577 3.59881 28.1978 3.60849 28.827C3.61819 29.4575 3.79205 30.0747 4.11292 30.6175C4.4338 31.1604 4.89061 31.6103 5.43834 31.9229C5.986 32.2354 6.60586 32.3998 7.23641 32.3999C7.23648 32.3999 7.23633 32.3999 7.23641 32.3999Z" fill="currentColor"/></svg>\n',title:"interface-warning",tags:"nordicon interface warning exclamation mark triangle shape alert error"});var gi=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.27208 5.27208C8.64773 1.89642 13.2261 0 18 0C22.7739 0 27.3523 1.89642 30.7279 5.27208C34.1036 8.64773 36 13.2261 36 18C36 22.7739 34.1036 27.3523 30.7279 30.7279C27.3523 34.1036 22.7739 36 18 36C13.2261 36 8.64773 34.1036 5.27208 30.7279C1.89642 27.3523 0 22.7739 0 18C0 13.2261 1.89642 8.64773 5.27208 5.27208ZM18 3.6C14.1809 3.6 10.5182 5.11714 7.81766 7.81766C5.11714 10.5182 3.6 14.1809 3.6 18C3.6 21.8191 5.11714 25.4818 7.81766 28.1823C10.5182 30.8829 14.1809 32.4 18 32.4C21.8191 32.4 25.4818 30.8829 28.1823 28.1823C30.8829 25.4818 32.4 21.8191 32.4 18C32.4 14.1809 30.8829 10.5182 28.1823 7.81766C25.4818 5.11714 21.8191 3.6 18 3.6Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M18 18C18.9941 18 19.8 18.8059 19.8 19.8V27C19.8 27.9941 18.9941 28.8 18 28.8C17.0058 28.8 16.2 27.9941 16.2 27V19.8C16.2 18.8059 17.0058 18 18 18Z" fill="currentColor"/><path d="M15.2795 10.7999C15.2795 11.5213 15.5661 12.2132 16.0763 12.7234C16.5864 13.2336 17.2784 13.5202 17.9998 13.5202C18.7213 13.5202 19.4132 13.2336 19.9234 12.7234C20.4335 12.2132 20.7201 11.5213 20.7201 10.7999C20.7201 10.0784 20.4335 9.38649 19.9234 8.87634C19.4132 8.36619 18.7213 8.07959 17.9998 8.07959C17.2784 8.07959 16.5864 8.36619 16.0763 8.87634C15.5661 9.38649 15.2795 10.0784 15.2795 10.7999Z" fill="currentColor"/></svg>\n',title:"interface-info",tags:"nordicon interface info circle round alert notice information"});var mi=Object.freeze({__proto__:null,default:'<svg viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.67198 5.27208C9.04764 1.89642 13.626 0 18.3999 0C23.1738 0 27.7522 1.89642 31.1278 5.27208C34.5035 8.64773 36.3999 13.2261 36.3999 18C36.3999 22.7739 34.5035 27.3523 31.1278 30.7279C27.7522 34.1036 23.1738 36 18.3999 36C13.626 36 9.04764 34.1036 5.67198 30.7279C2.29633 27.3523 0.399902 22.7739 0.399902 18C0.399902 13.2261 2.29633 8.64773 5.67198 5.27208ZM18.3999 3.6C14.5808 3.6 10.9181 5.11714 8.21757 7.81766C5.51704 10.5182 3.9999 14.1809 3.9999 18C3.9999 21.8191 5.51704 25.4818 8.21757 28.1823C10.9181 30.8829 14.5808 32.4 18.3999 32.4C22.219 32.4 25.8817 30.8829 28.5822 28.1823C31.2828 25.4818 32.7999 21.8191 32.7999 18C32.7999 14.1809 31.2828 10.5182 28.5822 7.81766C25.8817 5.11714 22.219 3.6 18.3999 3.6Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M27.0484 10.0907C27.8261 10.7099 27.9546 11.8423 27.3354 12.62L16.233 26.5642C15.8927 26.9915 15.3768 27.2412 14.8306 27.243C14.2843 27.2447 13.7669 26.9983 13.4239 26.5732L9.39039 21.5735C8.76619 20.7998 8.8874 19.6666 9.66112 19.0424C10.4348 18.4182 11.5681 18.5394 12.1923 19.3131L14.8156 22.5648L24.5191 10.3776C25.1383 9.59994 26.2707 9.47146 27.0484 10.0907Z" fill="currentColor"/></svg>\n',title:"interface-checked-circle",tags:"nordicon interface circle round checked checkmark ready done success"});const yi=r`:host{font-size:var(--n-font-size-m);color:var(--n-color-text);display:contents}.n-banner{background:var(--n-banner-background,var(--n-color-status-info-weak));border-radius:var(--n-border-radius);box-shadow:var(--n-banner-box-shadow,var(--n-box-shadow-card));padding:calc(var(--n-space-m)/ 1.2) var(--n-space-l);margin:0;inline-size:100%}.n-banner-content{inline-size:calc(100% - var(--n-space-xl))}nord-icon{transform:translateY(2px);color:var(--n-color-icon-hover)}::slotted(a){color:var(--n-color-text)!important;text-decoration:underline!important}::slotted(p){margin:0!important}:host([variant=success]){--n-banner-background:var(--n-color-status-success-weak)}:host([variant=danger]){--n-banner-background:var(--n-color-status-danger-weak)}:host([variant=warning]){--n-banner-background:var(--n-color-status-warning-weak)}`;se.registerIcon(bi),se.registerIcon(fi),se.registerIcon(gi),se.registerIcon(mi);const xi={warning:"interface-help-2",danger:"interface-warning",info:"interface-info",success:"interface-checked-circle"};let wi=class extends tt{constructor(){super(...arguments),this.variant="info"}render(){const t=xi[this.variant]||xi.info;return T`<div class="n-banner" role="alert"><nord-stack align-items="start" direction="horizontal"><nord-icon name="${t}" size="m"></nord-icon><div class="n-banner-content"><slot></slot></div></nord-stack></div>`}};wi.styles=[lt,yi],t([it({reflect:!0})],wi.prototype,"variant",void 0),wi=t([nt("nord-banner")],wi);var $i=wi;const ki=r`:host{--n-avatar-size:var(--n-size-icon-l);display:inline-flex;block-size:var(--n-avatar-size);inline-size:var(--n-avatar-size)}.n-avatar{background:var(--n-color-status-info);border-radius:var(--n-border-radius-circle);overflow:hidden;inline-size:100%;block-size:100%}img,svg{inline-size:100%;block-size:auto;object-fit:cover}.n-loading{display:none}:host([size="l"]){--n-avatar-size:var(--n-size-icon-xl)}:host([size=xl]){--n-avatar-size:var(--n-size-icon-xxl)}`;const{transition:zi}=(Ci={initial:{"src-set":"loading"},loading:{load:"loaded",error:"initial","src-clear":"initial"},loaded:{"src-set":"loading","src-clear":"initial"}},{transition:(t,e)=>Ci[t][e]||t});var Ci;let _i=class extends tt{constructor(){super(...arguments),this.state="initial",this.size="m",this.name=""}willUpdate(t){if(t.has("src")){const t=this.src?"src-set":"src-clear";this.state=zi(this.state,t)}}render(){return T`<div class="n-avatar">${"initial"!==this.state?this.renderImage():O} ${"loaded"!==this.state?this.renderFallback():O}</div>`}renderImage(){return this.src?T`<img class="n-${this.state}" src="${this.src}" @load="${this.handleLoad}" @error="${this.handleError}" alt="${this.name||""}">`:O}renderFallback(){return T`<svg aria-label="${this.name}" role="${ut(this.name?"img":void 0)}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27 27"><rect fill="var(--n-color-status-info)" height="27" rx="12" width="27" x="0" y="0"></rect><g fill="#fff" opacity=".5"><circle cx="13.5" cy="30" r="13"></circle><circle cx="13.5" cy="11" r="5"></circle></g></svg>`}handleLoad(){this.state=zi(this.state,"load")}handleError(){this.state=zi(this.state,"error")}};_i.styles=[lt,ki],t([rt()],_i.prototype,"state",void 0),t([it({reflect:!0})],_i.prototype,"size",void 0),t([it({reflect:!0})],_i.prototype,"src",void 0),t([it()],_i.prototype,"name",void 0),_i=t([nt("nord-avatar")],_i);var Ai=_i;const Ei=r`:host{display:block;inline-size:100%}progress{-webkit-appearance:none;-moz-appearance:none;appearance:none;inline-size:100%;block-size:var(--n-progress-size,var(--n-space-s));background-color:var(--n-color-nav-hover);border-radius:var(--n-progress-border-radius,var(--n-border-radius-s));box-shadow:none;display:block;border:0;margin:0}label{display:block}progress::-webkit-progress-bar{background-color:transparent;border-radius:var(--n-progress-border-radius,var(--n-border-radius-s))}progress::-moz-progress-bar{background:var(--n-progress-color,var(--n-color-accent));border-radius:var(--n-progress-border-radius,var(--n-border-radius-s))}progress::-webkit-progress-value{background:var(--n-progress-color,var(--n-color-accent));border-radius:var(--n-progress-border-radius,var(--n-border-radius-s));transition:inline-size .25s ease-out}progress:indeterminate{background-color:var(--n-color-nav-hover);background-image:linear-gradient(to right,transparent 45%,var(--n-color-accent) 0,var(--n-color-accent) 55%,transparent 0);background-position:right;background-size:225% 100%;animation:animate-indeterminate 2s infinite ease}progress:indeterminate::-moz-progress-bar{background-color:transparent}progress:indeterminate::-webkit-progress-value{background-color:transparent}@keyframes animate-indeterminate{50%{background-position:left}}progress:focus{box-shadow:0 0 0 1px var(--n-color-background),0 0 0 3px var(--n-color-accent);outline:0}`;let Si=class extends(Ot(tt)){constructor(){super(...arguments),this.max=100,this.label="Current progress"}render(){return T`<label><nord-visually-hidden>${this.label}</nord-visually-hidden><progress ${Tt(this.focusableRef)} aria-valuenow="${ut(this.value)}" aria-valuemin="0" aria-valuemax="${this.max}" tabindex="-1" max="${this.max}" value="${ut(this.value)}"></progress></label>`}};Si.styles=[lt,Ei],t([it({reflect:!0,type:Number})],Si.prototype,"value",void 0),t([it({reflect:!0,type:Number})],Si.prototype,"max",void 0),t([it({reflect:!0})],Si.prototype,"label",void 0),Si=t([nt("nord-progress-bar")],Si);var Di=Si;export{Ai as Avatar,ht as Badge,$i as Banner,Pt as Button,Dn as Calendar,jt as Card,jn as Checkbox,Ie as CommandMenu,Me as CommandMenuAction,Pn as DatePicker,vi as EmptyState,jo as Fieldset,Qo as Header,se as Icon,ne as Input,hi as Layout,ni as NavGroup,ri as NavItem,li as Navigation,Di as ProgressBar,Xo as Radio,Pe as Select,We as Spinner,Fe as Stack,Ze as Table,Je as Textarea,Uo as Tooltip,Kt as VisuallyHidden};
105
105
  //# sourceMappingURL=bundle.js.map