PageSourceSearch

https://www.snapphanebygdenssparbank.se/etc.clientlibs/wcms/compon…-6a4e266328aabe0383a2a64fac1e2dc9-lc.min.js

js snapphanebygdenssparbank.se collected 2026-10-08 20:44:40 UTC 1,395,337 bytes, 4,838 lines download raw bytes

1var acornUI=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,o={};((t,i)=>{for(var n in i)e(t,n,{get:i[n],enumerable:!0})})(o,{Accordion:()=>Fu,AccordionBody:()=>Ou,AccordionGroup:()=>Pu,AccordionHeader:()=>Ru,AcornComboBoxOptionTemplate:()=>Qf,AcornComboBoxSelectedOptionTemplate:()=>Zf,AcornElement:()=>Ti,ActionButton:()=>eu,ActionCard:()=>Sa,ActionChip:()=>qp,ActionChipOverlay:()=>Up,ActionSection:()=>pu,AlertMessage:()=>Su,AlertMessageBody:()=>wu,AlertMessageDismissibleOption:()=>vu,AlertMessageSeverity:()=>bu,ArrowLink:()=>ju,AutoFocusable:()=>vt,BREAKPOINT:()=>pl,BUTTON_GAP:()=>cl,BUTTON_SLOTTED_MARGIN_BOTTOM:()=>dl,Badge:()=>Uo,BadgeAlign:()=>No,BadgeCSSVariable:()=>Ho,BadgeSeverity:()=>Bo,BadgeSize:()=>Po,Block:()=>Ju,BlockBody:()=>Qu,BlockHeader:()=>Yu,BulletList:()=>sg,BulletListItem:()=>ag,BusyCloak:()=>nv,Button:()=>Dr,ButtonContainer:()=>bl,ButtonContainerCSSProperty:()=>ul,ButtonContainerLayout:()=>gl,ButtonPriority:()=>Tr,ButtonType:()=>Sr,Carousel:()=>hv,CarouselSlide:()=>dv,Checkbox:()=>Ev,CheckboxGroup:()=>Av,ChoiceChip:()=>oy,ChoiceChipGroup:()=>vy,ComboBox:()=>nx,ComboBoxButton:()=>kf,ComboBoxNoResults:()=>Hf,ComboBoxOption:()=>Bf,ComboBoxOptionGroup:()=>Pf,ComboBoxOptionList:()=>Xf,ComboBoxOptionListLegacy:()=>Lf,Component:()=>_t,Conclusion:()=>bx,ConclusionBody:()=>sx,ConclusionDetails:()=>gx,ConclusionStatusColorProperty:()=>cx,ConclusionType:()=>lx,ConfigKey:()=>Me,CustomPage:()=>_b,CustomPageBody:()=>vb,CustomPageHeader:()=>db,CustomPageHeaderBreadcrumbContainer:()=>Jm,CustomPageHeaderContent:()=>tb,CustomPageHeaderToolbar:()=>cb,CustomPageHeaderToolbarItem:()=>nb,CustomPageHeaderToolbarItemGroup:()=>ob,CustomPageHeaderToolbarSearch:()=>lb,CustomPageSecondaryContent:()=>pb,CustomPageSubnav:()=>bb,DETAIL_WIDTH:()=>wl,DataModelBase:()=>xt,DataTable:()=>wS,DataTablePagination:()=>qw,DataTableRowLoader:()=>Kw,DataTableSelectionBar:()=>Vw,DataTableToolbar:()=>bC,DatePicker:()=>yp,Definition:()=>ES,DescriptionList:()=>$F,DescriptionListBody:()=>bF,DescriptionListBodyItem:()=>uF,DescriptionListHeader:()=>hF,DescriptionListSummary:()=>CF,DialogPage:()=>FS,FORM_FIELD_BORDER_WIDTH:()=>eo,FORM_FIELD_HEIGHT:()=>Qn,FORM_FIELD_HORIZONTAL_PADDING:()=>Zn,FORM_FIELD_MAX_WIDTH:()=>Xn,FORM_FIELD_VERTICAL_MARGIN:()=>Jn,FilterChip:()=>J_,FormFieldContainer:()=>zS,FormFieldError:()=>ps,FormFieldHelp:()=>tc,FormFieldHint:()=>rc,FormFieldStyleState:()=>to,GuidedTour:()=>QS,Help:()=>r$,Hero:()=>xT,Highlight:()=>S$,HighlightBox:()=>_$,Icon:()=>Rp,IconAlign:()=>Cr,IconButton:()=>Pa,Integer:()=>Ge,Item:()=>O$,Jumbotron:()=>M$,Key:()=>ye,LanguagePicker:()=>Wb,LanguagePickerOption:()=>Vb,Link:()=>jr,LinkCSSVariable:()=>Mr,LinkGroup:()=>qr,LinkTarget:()=>Br,List:()=>lk,ListBody:()=>Y$,ListBodyItem:()=>W$,ListHeader:()=>Q$,ListItemLoader:()=>J$,ListLegacyBody:()=>hk,ListSummary:()=>rk,Loader:()=>Bm,LoaderContainer:()=>Yb,LoaderTheme:()=>Rm,Lvd:()=>Ek,MainLayout:()=>hE,MainLayoutHeader:()=>oE,MainLayoutSidebar:()=>Qk,Menu:()=>jg,Modal:()=>QE,ModalBody:()=>VE,ModalFooter:()=>GE,ModalHeader:()=>KE,ModalSection:()=>PE,NetworkStatus:()=>Wk,Notification:()=>Mk,OptionType:()=>GT,Output:()=>lT,Page:()=>kT,PageDetail:()=>Al,PageDetailAnchor:()=>$l,PageDetailCSSPropertyOffsetTop:()=>Cl,PageDetailEvent:()=>kl,PageDetailFooter:()=>Tl,PageDetailShadowRefs:()=>Sl,PageLayout:()=>pT,PageRegion:()=>$T,ProminentBulletList:()=>aF,ProminentBulletListItem:()=>JR,ProminentBulletListItemLink:()=>XR,ProminentBulletListTheme:()=>tF,ProminentBulletListType:()=>eF,ProminentLink:()=>_k,Radio:()=>PT,RadioGroup:()=>FT,RadioGroupAlignment:()=>OT,SIDE_MARGIN:()=>hl,SchemeColor:()=>zi,ScrollPane:()=>lf,SearchField:()=>Dx,Section:()=>Tm,SectionBody:()=>om,SectionColorTheme:()=>hm,SectionHeader:()=>gm,SectionHeaderInfo:()=>xm,SectionHeaderToolbar:()=>vm,SectionHeaderToolbarItem:()=>mm,SectionTab:()=>lm,SectionTabBody:()=>rm,SectionTabGroup:()=>dm,Select:()=>lI,SelectOption:()=>jT,SemanticColor:()=>Wi,ShowMoreButton:()=>kb,ShowMoreButtonEvents:()=>Cb,ShowMoreContainer:()=>Fb,SideNavbar:()=>xI,SideNavbarOption:()=>mI,SideNavbarOptionGroup:()=>vI,Slider:()=>NI,Slot:()=>Zt,TabGroup:()=>UI,TabGroupTab:()=>GI,Table:()=>QO,TableColumn:()=>LO,TableDensity:()=>lO,TableRowGroup:()=>AO,Tag:()=>My,Template:()=>xf,TextArea:()=>sD,TextButton:()=>rp,TextField:()=>Ld,TextFieldType:()=>mc,Tooltip:()=>bD,TooltipContent:()=>uD,TopNavbar:()=>kD,TopNavbarBody:()=>fD,TopNavbarBrandImage:()=>CD,TransitionState:()=>li,WatchTrigger:()=>pi,Wizard:()=>JD,WizardEnd:()=>UD,WizardInfo:()=>YD,WizardPage:()=>jR,WizardPageBody:()=>MR,WizardPageFooter:()=>PR,WizardPageHeader:()=>AR,WizardPageSteps:()=>GR,WizardPageToolbar:()=>zR,WizardStart:()=>XD,WizardStep:()=>qD,acorn:()=>Be,arrayEquals:()=>TF,attribute:()=>gt,bindToInstance:()=>Pe,colorMap:()=>yu,components:()=>OF,config:()=>Ae,data:()=>Mt,debounce:()=>Nt,event:()=>ft,eventTracker:()=>Ue,formFieldBorderStyle:()=>ao,formFieldTextStyle:()=>ro,html:()=>$,iconMap:()=>
1_u,invalidateOnChange:()=>Ht,isScrollable:()=>kF,languageService:()=>Ve,mapValues:()=>EF,metadata:()=>zt,onTransitionFrame:()=>Wt,placeholder:()=>oo,siblingGroup:()=>Kt,slot:()=>ri,textInputBackgroundColor:()=>no,textInputFontStyles:()=>so,transition:()=>hi,watch:()=>wi});var r=globalThis,a=r.trustedTypes,s=a?a.createPolicy("lit-html",{createHTML:e=>e}):void 0,l="$lit$",c=`lit$${Math.random().toFixed(9).slice(2)}$`,d="?"+c,h=`<${d}>`,p=void 0===r.document?{createTreeWalker:()=>({})}:document,u=()=>p.createComment(""),g=e=>null===e||"object"!=typeof e&&"function"!=typeof e,m=Array.isArray,b="[ \t\n\f\r]",v=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,y=/-->/g,_=/>/g,f=RegExp(`>|${b}(?:([^\\s"'>=/]+)(${b}*=${b}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),x=/'/g,w=/"/g,C=/^(?:script|style|textarea|title)$/i,S=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),$=S(1),k=S(2),E=(S(3),Symbol.for("lit-noChange")),T=Symbol.for("lit-nothing"),I=new WeakMap,O=p.createTreeWalker(p,129);function D(e,t){if(!m(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s?s.createHTML(t):t}var R=class e{constructor({strings:t,_$litType$:i},n){let o;this.parts=[];let r=0,s=0;const p=t.length-1,g=this.parts,[m,b]=((e,t)=>{const i=e.length-1,n=[];let o,r=2===t?"<svg>":3===t?"<math>":"",a=v;for(let t=0;t<i;t++){const i=e[t];let s,d,p=-1,u=0;for(;u<i.length&&(a.lastIndex=u,d=a.exec(i),null!==d);)u=a.lastIndex,a===v?"!--"===d[1]?a=y:void 0!==d[1]?a=_:void 0!==d[2]?(C.test(d[2])&&(o=RegExp("</"+d[2],"g")),a=f):void 0!==d[3]&&(a=f):a===f?">"===d[0]?(a=null!=o?o:v,p=-1):void 0===d[1]?p=-2:(p=a.lastIndex-d[2].length,s=d[1],a=void 0===d[3]?f:'"'===d[3]?w:x):a===w||a===x?a=f:a===y||a===_?a=v:(a=f,o=void 0);const g=a===f&&e[t+1].startsWith("/>")?" ":"";r+=a===v?i+h:p>=0?(n.push(s),i.slice(0,p)+l+i.slice(p)+c+g):i+c+(-2===p?t:g)}return[D(e,r+(e[i]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),n]})(t,i);if(this.el=e.createElement(m,n),O.currentNode=this.el.content,2===i||3===i){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(o=O.nextNode())&&g.length<p;){if(1===o.nodeType){if(o.hasAttributes())for(const e of o.getAttributeNames())if(e.endsWith(l)){const t=b[s++],i=o.getAttribute(e).split(c),n=/([.?@])?(.*)/.exec(t);g.push({type:1,index:r,name:n[2],strings:i,ctor:"."===n[1]?P:"?"===n[1]?N:"@"===n[1]?H:B}),o.removeAttribute(e)}else e.startsWith(c)&&(g.push({type:6,index:r}),o.removeAttribute(e));if(C.test(o.tagName)){const e=o.textContent.split(c),t=e.length-1;if(t>0){o.textContent=a?a.emptyScript:"";for(let i=0;i<t;
1i++)o.append(e[i],u()),O.nextNode(),g.push({type:2,index:++r});o.append(e[t],u())}}}else if(8===o.nodeType)if(o.data===d)g.push({type:2,index:r});else{let e=-1;for(;-1!==(e=o.data.indexOf(c,e+1));)g.push({type:7,index:r}),e+=c.length-1}r++}}static createElement(e,t){const i=p.createElement("template");return i.innerHTML=e,i}};function F(e,t,i=e,n){var o,r,a;if(t===E)return t;let s=void 0!==n?null==(o=i._$Co)?void 0:o[n]:i._$Cl;const l=g(t)?void 0:t._$litDirective$;return(null==s?void 0:s.constructor)!==l&&(null==(r=null==s?void 0:s._$AO)||r.call(s,!1),void 0===l?s=void 0:(s=new l(e),s._$AT(e,i,n)),void 0!==n?(null!=(a=i._$Co)?a:i._$Co=[])[n]=s:i._$Cl=s),void 0!==s&&(t=F(e,s._$AS(e,t.values),s,n)),t}var L,A=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:n}=this._$AD,o=(null!=(t=null==e?void 0:e.creationScope)?t:p).importNode(i,!0);O.currentNode=o;let r=O.nextNode(),a=0,s=0,l=n[0];for(;void 0!==l;){if(a===l.index){let t;2===l.type?t=new M(r,r.nextSibling,this,e):1===l.type?t=new l.ctor(r,l.name,l.strings,this,e):6===l.type&&(t=new z(r,this,e)),this._$AV.push(t),l=n[++s]}a!==(null==l?void 0:l.index)&&(r=O.nextNode(),a++)}return O.currentNode=p,o}p(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},M=class e{get _$AU(){var e,t;return null!=(t=null==(e=this._$AM)?void 0:e._$AU)?t:this._$Cv}constructor(e,t,i,n){var o;this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cv=null==(o=null==n?void 0:n.isConnected)||o}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=F(this,e,t),g(e)?e===T||null==e||""===e?(this._$AH!==T&&this._$AR(),this._$AH=T):e!==this._$AH&&e!==E&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>m(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==T&&g(this._$AH)?this._$AA.nextSibling.data=e:this.T(p.createTextNode(e)),this._$AH=e}$(e){var t;const{values:i,_$litType$:n}=e,o="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=R.createElement(D(n.h,n.h[0]),this.options)),n);if((null==(t=this._$AH)?void 0:t._$AD)===o)this._$AH.p(i);else{const e=new A(o,this),t=e.u(this.options);e.p(i),this.T(t),this._$AH=e}}_$AC(e){let t=I.get(e.strings);return void 0===t&&I.set(e.strings,t=new R(e)),t}k(t){m(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let n,o=0;for(const r of t)o===i.length?i.push(n=new e(this.O(u()),this.O(u()),this,this.options)):n=i[o],n._$AI(r),o++;o<i.length&&(this._$AR(n&&n._$AB.nextSibling,o),i.length=o)}_$AR(e=this._$AA.nextSibling,t){var i;for(null==(i=this._$AP)||i.call(this,!1,!0,t);e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cv=e,null==(t=this._$AP)||t.call(this,e))}},B=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,n,o){this.type=1,this._$AH=T,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=T}_$AI(e,t=this,i,n){const o=this.strings;let r=!1;if(void 0===o)e=F(this,e,t,0),r=!g(e)||e!==this._$AH&&e!==E,r&&(this._$AH=e);else{const n=e;let a,s;for(e=o[0],a=0;a<o.length-1;a++)s=F(this,n[i+a],t,a),s===E&&(s=this._$AH[a]),r||(r=!g(s)||s!==this._$AH[a]),s===T?e=T:e!==T&&(e+=(null!=s?s:"")+o[a+1]),this._$AH[a]=s}r&&!n&&this.j(e)}j(e){e===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}},P=class extends B{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===T?void 0:e}},N=class extends B{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==T)}},H=class extends B{constructor(e,t,i,n,o){super(e,t,i,n,o),this.type=5}_$AI(e,t=this){var i;if((e=null!=(i=F(this,e,t,0))?i:T)===E)return;const n=this._$AH,o=e===T&&n!==T||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,r=e!==T&&(n===T||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!=(i=null==(t=this.options)?void 0:t.host)?i:this.element,e):this._$AH.handleEvent(e)}},z=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){F(this,e)}},W=r.litHtmlPolyfillSupport;null==W||W(R,M),(null!=(L=r.litHtmlVersions)?L:r.litHtmlVersions=[]).push("3.3.1");var V=(e,t,i)=>{var n,o;const r=null!=(n=null==i?void 0:i.renderBefore)?n:t;let a=r._$litPart$;if(void 0===a){const e=null!=(o=null==i?void 0:i.renderBefore)?o:null;r._$litPart$=a=new M(t.insertBefore(u(),e),e,void 0,null!=i?i:{})}return a._$AI(e),a},j=e=>null!=e?e:T,G=Object.create,q=Object.defineProperty,U=Object.getOwnPropertyDescriptor,K=Object.getOwnPropertyNames,Y=Object.getPrototypeOf,X=Object.prototype.hasOwnProperty,Q=(e,t)=>function(){return t||(0,e[K(e)[0]])((t={exports:{}}).exports,t),t.exports},Z=(e,t,i)=>(i=null!=e?G(Y(e)):{},((e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of K(t))X.call(e,o)||o===i||q(e,o,{get:()=>t[o],enumerable:!(n=U(t,o))||n.enumerable});return e}
1)(!t&&e&&e.__esModule?i:q(i,"default",{value:e,enumerable:!0}),e)),J=Q({"../../node_modules/lorem-ipsum/dist/constants/formats.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FORMAT_PLAIN=e.FORMAT_HTML=e.FORMATS=void 0;var t="html";e.FORMAT_HTML=t;var i="plain";e.FORMAT_PLAIN=i;var n=[t,i];e.FORMATS=n}}),ee=Q({"../../node_modules/lorem-ipsum/dist/constants/units.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UNIT_WORDS=e.UNIT_WORD=e.UNIT_SENTENCES=e.UNIT_SENTENCE=e.UNIT_PARAGRAPHS=e.UNIT_PARAGRAPH=e.UNITS=void 0;var t="words";e.UNIT_WORDS=t;var i="word";e.UNIT_WORD=i;var n="sentences";e.UNIT_SENTENCES=n;var o="sentence";e.UNIT_SENTENCE=o;var r="paragraphs";e.UNIT_PARAGRAPHS=r;var a="paragraph";e.UNIT_PARAGRAPH=a;var s=[t,i,n,o,r,a];e.UNITS=s}}),te=Q({"../../node_modules/lorem-ipsum/dist/constants/words.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WORDS=void 0;e.WORDS=["ad","adipisicing","aliqua","aliquip","amet","anim","aute","cillum","commodo","consectetur","consequat","culpa","cupidatat","deserunt","do","dolor","dolore","duis","ea","eiusmod","elit","enim","esse","est","et","eu","ex","excepteur","exercitation","fugiat","id","in","incididunt","ipsum","irure","labore","laboris","laborum","Lorem","magna","minim","mollit","nisi","non","nostrud","nulla","occaecat","officia","pariatur","proident","qui","quis","reprehenderit","sint","sit","sunt","tempor","ullamco","ut","velit","veniam","voluptate"]}}),ie=Q({"../../node_modules/lorem-ipsum/dist/constants/lineEndings.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LINE_ENDINGS=void 0;e.LINE_ENDINGS={POSIX:"\n",WIN32:"\r\n"}}}),ne=Q({"../../node_modules/lorem-ipsum/dist/util/capitalize.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(e){var t=e.trim();return t.charAt(0).toUpperCase()+t.slice(1)};e.default=t}}),oe=Q({"../../node_modules/lorem-ipsum/dist/util/isNode.js"(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(){return void 0!==t&&!!t.exports};e.default=i}}),re=Q({"../../node_modules/lorem-ipsum/dist/util/isReactNative.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(){var e=!1;try{e="ReactNative"===navigator.product}catch(t){e=!1}return e};e.default=t}}),ae=Q({"../../node_modules/lorem-ipsum/dist/constants/platforms.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SUPPORTED_PLATFORMS=void 0;e.SUPPORTED_PLATFORMS={DARWIN:"darwin",LINUX:"linux",WIN32:"win32"}}}),se=Q({"../../node_modules/lorem-ipsum/dist/util/isWindows.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=ae(),i=function(){var e=!1;try{e=process.platform===t.SUPPORTED_PLATFORMS.WIN32}catch(t){e=!1}return e};e.default=i}}),le=Q({"../../node_modules/lorem-ipsum/dist/util/makeArrayOfLength.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Array.apply(null,Array(e)).map(function(e,t){return t})};e.default=t}}),ce=Q({"../../node_modules/lorem-ipsum/dist/util/makeArrayOfStrings.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,i=(t=le())&&t.__esModule?t:{default:t};var n=function(e,t){return(0,i.default)(e).map(function(){return t()})};e.default=n}}),de=Q({"../../node_modules/lorem-ipsum/dist/util/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"capitalize",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"isNode",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"isReactNative",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"isWindows",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"makeArrayOfLength",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"makeArrayOfStrings",{enumerable:!0,get:function(){return a.default}});var t=s(ne()),i=s(oe()),n=s(re()),o=s(se()),r=s(le()),a=s(ce());
1function s(e){return e&&e.__esModule?e:{default:e}}}}),he=Q({"../../node_modules/lorem-ipsum/dist/lib/generator.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=te(),i=de();function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var r=function(){function e(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=i.sentencesPerParagraph,r=void 0===n?{max:7,min:3}:n,a=i.wordsPerSentence,s=void 0===a?{max:15,min:5}:a,l=i.random,c=(i.seed,i.words),d=void 0===c?t.WORDS:c;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,"sentencesPerParagraph",void 0),o(this,"wordsPerSentence",void 0),o(this,"random",void 0),o(this,"words",void 0),r.min>r.max)throw new Error("Minimum number of sentences per paragraph (".concat(r.min,") cannot exceed maximum (").concat(r.max,")."));if(s.min>s.max)throw new Error("Minimum number of words per sentence (".concat(s.min,") cannot exceed maximum (").concat(s.max,")."));this.sentencesPerParagraph=r,this.words=d,this.wordsPerSentence=s,this.random=l||Math.random}var r,a,s;return r=e,(a=[{key:"generateRandomInteger",value:function(e,t){return Math.floor(this.random()*(t-e+1)+e)}},{key:"generateRandomWords",value:function(e){var t=this,n=this.wordsPerSentence,o=n.min,r=n.max,a=e||this.generateRandomInteger(o,r);return(0,i.makeArrayOfLength)(a).reduce(function(e,i){return"".concat(t.pluckRandomWord()," ").concat(e)},"").trim()}},{key:"generateRandomSentence",value:function(e){return"".concat((0,i.capitalize)(this.generateRandomWords(e)),".")}},{key:"generateRandomParagraph",value:function(e){var t=this,n=this.sentencesPerParagraph,o=n.min,r=n.max,a=e||this.generateRandomInteger(o,r);return(0,i.makeArrayOfLength)(a).reduce(function(e,i){return"".concat(t.generateRandomSentence()," ").concat(e)},"").trim()}},{key:"pluckRandomWord",value:function(){var e=this.words.length-1,t=this.generateRandomInteger(0,e);return this.words[t]}}])&&n(r.prototype,a),s&&n(r,s),Object.defineProperty(r,"prototype",{writable:!1}),e}(),a=r;e.default=a}}),pe=Q({"../../node_modules/lorem-ipsum/dist/lib/LoremIpsum.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,i=J(),n=ie(),o=(t=he())&&t.__esModule?t:{default:t},r=de();function a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.FORMAT_PLAIN,r=arguments.length>2?arguments[2]:void 0;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.format=n,this.suffix=r,function(e,t,i){t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}(this,"generator",void 0),-1===i.FORMATS.indexOf(n.toLowerCase()))throw new Error("".concat(n," is an invalid format. Please use ").concat(i.FORMATS.join(" or "),"."));this.generator=new o.default(t)}var t,s,l;return t=e,(s=[{key:"getLineEnding",value:function(){return this.suffix?this.suffix:!(0,r.isReactNative)()&&(0,r.isNode)()&&(0,r.isWindows)()?n.LINE_ENDINGS.WIN32:n.LINE_ENDINGS.POSIX}},{key:"formatString",value:function(e){return this.format===i.FORMAT_HTML?"<p>".concat(e,"</p>"):e}},{key:"formatStrings",value:function(e){var t=this;return e.map(function(e){return t.formatString(e)})}},{key:"generateWords",value:function(e){return this.formatString(this.generator.generateRandomWords(e))}},{key:"generateSentences",value:function(e){return this.formatString(this.generator.generateRandomParagraph(e))}},{key:"generateParagraphs",value:function(e){var t=this.generator.generateRandomParagraph.bind(this.generator);return this.formatStrings((0,r.makeArrayOfStrings)(e,t)).join(this.getLineEnding())}}])&&a(t.prototype,s),l&&a(t,l),Object.defineProperty(t,"prototype",{writable:!1}),e}(),l=s;e.default=l}}),ue=Q({"../../node_modules/lorem-ipsum/dist/index.js"(e){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoremIpsum",{enumerable:!0,get:function(){return r.default}}),e.loremIpsum=void 0;var t,i=J(),n=ee(),o=te(),r=(t=pe())&&t.__esModule?t:{default:t};e.loremIpsum=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.count,a=void 0===t?1:t,s=e.format,l=void 0===s?i.FORMAT_PLAIN:s,c=e.paragraphLowerBound,d=void 0===c?3:c,h=e.paragraphUpperBound,p=void 0===h?7:h,u=e.random,g=e.sentenceLowerBound,m=void 0===g?5:g,b=e.sentenceUpperBound,v=void 0===b?15:b,y=e.units,_=void 0===y?n.UNIT_SENTENCES:y,f=e.words,x=void 0===f?o.WORDS:f,w=e.suffix,C=void 0===w?"":w,S={random:u,sentencesPerParagraph:{max:p,min:d},words:x,wordsPerSentence:{max:v,min:m}},$=new r.default(S,l,C);switch(_){case n.UNIT_PARAGRAPHS:case n.UNIT_PARAGRAPH:return $.generateParagraphs(a);case n.UNIT_SENTENCES:case n.UNIT_SENTENCE:return $.generateSentences(a);case n.UNIT_WORDS:case n.UNIT_WORD:return $.generateWords(a);default:return""}}}});function ge(e,...t){if(!t.length)return e;const i=t.shift();if(me(e)&&me(i))for(const t in i)me(i[t])?(e[t]||Object.assign(e,{[t]:{}}),ge(e[t],i[t])):Object.assign(e,{[t]:i[t]});return ge(e,...t)}function me(e){return e&&"object"==typeof e&&!Array.isArray(e)}function be(){const e="undefined"!=typeof window?window.__acorn_ui_info__:void 0;return!!(null==e?void 0:e.isRunningTests)}var ve=(e=>(e.Enter="Enter",e.Tab="Tab",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.ArrowUp="ArrowUp",e.End="End",e.Home="Home",e.PageDown="PageDown",e.PageUp="PageUp",e.Escape="Escape",e.Space=" ",e))(ve||{}),ye=Object.assign({},ve),_e=(e=>(e.Mouse="mouse",e.Tab="tab",e))(_e||{}),fe=new class{constructor(){this._callbacks=[],this._enabled=!1,this._navigationMode="mouse",this._registered=[],this._onKeyUp=this._onKeyUp.bind(this),this._onMouseDown=this._onMouseDown.bind(this)}get navigationMode(){return this._navigationMode}set navigationMode(e){this._update(e)}register(e){-1===this._registered.indexOf(e)&&this._registered.push(e),this._enabled||this._enable()}unregister(e){const t=this._registered.indexOf(e);-1!==t&&this._registered.splice(t,1),this._shouldDisable()&&this._disable()}onNavigationChange(e){return this._callbacks.push(e),this._enabled||this._enable(),e(this._navigationMode),()=>{const t=this._callbacks.indexOf(e);-1!==t&&this._callbacks.splice(t,1),this._shouldDisable()&&this._disable()}}_shouldDisable(){return 0===this._callbacks.length&&0===this._registered.length}_enable(){this._enabled||(this._enabled=!0,window.addEventListener("keyup",this._onKeyUp),window.addEventListener("mousedown",this._onMouseDown))}_disable(){this._enabled&&(this._enabled=!1,window.removeEventListener("keyup",this._onKeyUp),window.removeEventListener("mousedown",this._onMouseDown))}_onKeyUp(e){"mouse"===this.navigationMode&&e.key===ye.Tab&&this._update("tab")}_onMouseDown(e){"tab"===this.navigationMode&&document.activeElement!==e.target&&this._update("mouse")}_update(e){e!==this._navigationMode&&(this._navigationMode=e,this._callbacks.forEach(e=>e(this._navigationMode)))}};function xe(e){return e?e.split(/[-|\s]/g).map((e,t)=>0===t?function(e){return!!e&&e.toUpperCase()===e}(e)?e.toLowerCase():function(e){return e[0].toLowerCase()+e.substring(1)}(e):function(e){return e[0].toUpperCase()+e.substring(1)}(e)).join(""):e}function we(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}var Ce=Z(ue(),1),Se=1,$e=(new Ce.LoremIpsum({random:()=>{const e=1e4*Math.sin(Se++);return e-Math.floor(e)}}),Z(ue(),1)),ke=1,Ee=(new $e.LoremIpsum({random:()=>{const e=1e4*Math.sin(ke++);return e-Math.floor(e)}}),6),Te=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}},Ie=Object.defineProperty,Oe=Object.getOwnPropertyDescriptor,De=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Oe(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Ie(t,i,r),r},Re="21.5.0",Fe="acorn_ui",Le=`__${Fe}_info__`,Ae=new class{constructor(){this._config={},this._configChangeCallbacks=[]}onChange(e,t){const i={configKey:e,callback:t};return this._configChangeCallbacks.push(i),()=>{const e=this._configChangeCallbacks.indexOf(i);-1!==e&&this._configChangeCallbacks.splice(e,1)}}get(e){if(e in this._config)return this._config[e];let t=null;
1try{t=window[Le].config[e],this._config[e]="string"==typeof t?JSON.parse(t):null}catch(i){this._config[e]=t}return this._config[e]}set(e,t,i=!0){this._config[e]=t,i||this._store(e,t),this._notifyChange(e,t)}_store(e,t){let i="";if("object"==typeof t)try{i=JSON.stringify(t)}catch(i){console.error(`Acorn._store: Could not stringify the value you want to store using configuration key ${e}`,t)}else i="boolean"==typeof t?t.toString():t;try{window[Le].config[e]=i}catch(e){console.error("Acorn._store: config not available?")}}_notifyChange(e,t){this._configChangeCallbacks.filter(({configKey:t})=>t===e).forEach(({callback:i})=>{i(t,e)})}},Me=(e=>(e.NewMargins="new-margins",e.LegacyStyles="legacy-styles",e.EnabledStatus="status",e.EnabledPatchStatus="patch",e.TemplateMarkerStart="template-marker-start",e.TemplateMarkerEnd="template-marker-end",e))(Me||{}),Be=new class{constructor(){this._registeredComponents=[]}addGlobalInfo(){const e=window[Le];if(e&&e.version)throw Error(`Error while loading Acorn UI (v.${Re})!\nFound existing instance (v.${e.version}) running but only one instance is allowed.`);window[Le]=window[Le]||{version:"",config:{}},window[Le].version=this.version()}setTemplateMarkers(e,t){Ae.set("template-marker-start",e,!1),Ae.set("template-marker-end",t,!1)}register(e){this._registeredComponents.push(e)}version(){return Re}};function Pe(){return function(e,t,i){const n=typeof e[t];if("function"!==n)throw Error(`${Pe.name} decorator can only be used on functions. ${t} is of type ${n}.`);return{configurable:!0,get(){if(function(e,t){const i=Ne.get(e);if(!i)return!1;return-1!==i.indexOf(t)}(this,t))return;!function(e,t){let i=Ne.get(e);i||(i=[],Ne.set(e,i));i.push(t)}(this,t);const e=i.value.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}}var Ne=new WeakMap;var He=class{constructor(){this._factorSystemFontSize=NaN,this._registered=new Set,this._baseFontSize=16}get scaleFactor(){return isNaN(this._factorSystemFontSize)&&this._computeFontSize(),this._factorSystemFontSize}scale(e){return e*this.scaleFactor}register(e){0===this._registered.size&&(this._computeFontSize(),this._startObservingFontSizeChanges()),this._registered.add(e)}unregister(e){this._registered.delete(e),0===this._registered.size&&this._stopObservingFontSizeChanges()}refresh(){this._computeFontSize()}_computeFontSize(){const e=getComputedStyle(document.documentElement),t=parseInt(e.getPropertyValue("font-size")),i=parseFloat(e.getPropertyValue("--acorn-font-scale"))||1,n=this._factorSystemFontSize;this._factorSystemFontSize=t*i/this._baseFontSize,n!==this._factorSystemFontSize&&this._registered.forEach(e=>e(this._factorSystemFontSize))}_startObservingFontSizeChanges(){if(this._resizeObserver)return;this._removeFontSizeObserverElement(),this._observeFontChangeElement=document.createElement("acorn-font-size-resize-observer"),this._observeFontChangeElement.setAttribute("style",["position:absolute","clip:rect(0 0 0 0)","border:0","height:0","width:0","overflow:hidden","visibility:hidden"].join(";")),this._observeFontChangeElement.setAttribute("aria-hidden","true");const e=document.createElement("p");e.innerText="text used for font size observation",this._observeFontChangeElement.appendChild(e),document.body.appendChild(this._observeFontChangeElement),this._resizeObserver=new ResizeObserver(this._computeFontSize),this._resizeObserver.observe(e)}_stopObservingFontSizeChanges(){this._removeFontSizeObserverElement(),this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=void 0)}_removeFontSizeObserverElement(){if(this._observeFontChangeElement){try{this._observeFontChangeElement.remove()}catch(e){}this._observeFontChangeElement=void 0}}};De([Pe()],He.prototype,"_computeFontSize",1);var ze=new He,We=(e=>(e.Sv="sv-SE",e.En="en-US",e))(We||{}),Ve=new class{get defaultLanguage(){return this._defaultLanguage}get languageCode(){return"en-US"===this._language?"en":"sv"}get language(){return this._language}set language(e){this._language=e||this._defaultLanguage}constructor(){let e=null;"undefined"!=typeof window?e=window.navigator.language:"undefined"!=typeof navigator&&(e=null==navigator?void 0:navigator.userLanguage);const t="undefined"!=typeof document?document.documentElement.lang:null;/^en/.test(t||e||"sv_SE")?this._defaultLanguage="en-US":this._defaultLanguage="sv-SE",this._language=this._defaultLanguage}createTranslation(e){const t={};return Object.keys(e).forEach(i=>
1{t[i]={get:()=>e[i][this.languageCode]}}),Object.defineProperties({},t)}translate(e,...t){const i=/{(.*?)}/;return t.map(e=>e.toString()).forEach(t=>{e=e.replace(i,this._translateReplacer.bind(this,t))}),e}_translateReplacer(e,t,i){var n,o,r;const a=i.split(",").map(e=>e.trim());if(1===a.length)return e;if("plural"===a[1].toLocaleLowerCase()){const t=/(?:[^\s\[]+|\[[^\]]*\])+/g,i=a[2].trim().match(t)||[],s={};for(let e=0;e<i.length;e+=2){s[i[e].toLocaleLowerCase()]=i[e+1].substring(1,i[e+1].length-1)}const l=Number(e);return 0===l?null==(n=s.zero)?void 0:n.replace("#",e):1===l?null==(o=s.one)?void 0:o.replace("#",e):null==(r=s.many)?void 0:r.replace("#",e)}return""}},je=new class{constructor(){this._propertyMetadata=new WeakMap}setMetadata(e,t,i){const n=this._propertyMetadata.get(e)||{},o=n[t]||{};n[t]=Object.assign(o,i),this._propertyMetadata.set(e,n)}getMetadata(e,t){if(!e||"HTMLElement"===e.name)return;return(this._propertyMetadata.get(e)||{})[t]||this.getMetadata(Object.getPrototypeOf(e),t)}},Ge=class{},qe=`__${Fe}_eventTracker__`,Ue=new class{constructor(){this._onEventCallbacks=new Set,"object"!=typeof window||window[qe]||(window[qe]=this)}onEvent(e){return this._onEventCallbacks.add(e),()=>{this._onEventCallbacks.delete(e)}}addEvent(e){this._isEventEmittedInShadowDOM(e)||this._onEventCallbacks.forEach(t=>{t(e)})}_isEventEmittedInShadowDOM(e){const t=e.target,i=null==t?void 0:t.getRootNode();return!(null==t?void 0:t.getRootNode())||!!(null==i?void 0:i.host)}},Ke=new class{parseTemplateString(e=""){const t=[],i=[],n=Ae.get("template-marker-start")||"{{",o=Ae.get("template-marker-end")||"}}",r=new RegExp(`${n}\\s*[\\w\\.]+\\s*${o}`,"g");let a,s=0;for(;null!==(a=r.exec(e));){const n=a[0],o=n.match(/[\w\.]+/),l=o&&o[0]?o[0].trim():"";t.push(e.substring(s,r.lastIndex-n.length)),i.push(l),s=r.lastIndex}t.push(e.substring(s));const l=Object.assign(t,{raw:t.map(e=>e.replace(/\${/g,"\\${"))});return e=>{const t=i.map(t=>j(!1===e[t]?void 0:e[t]));return $(l,...t)}}},Ye="acornFocusTrackerRequestPath",Xe=class{constructor(){this._observers=[]}getActiveElement(e){var t;let i=e||document.activeElement;for(;null==(t=null==i?void 0:i.shadowRoot)?void 0:t.activeElement;)i=i.shadowRoot.activeElement;return i}onFocusChange(e){return this._observers.length||this._startTrackFocus(),this._observers.push(e),()=>{this._observers=this._observers.filter(t=>t!==e),this._observers.length||this._endTrackFocus()}}_startTrackFocus(){const e=this.getActiveElement();this._trackElement(e),document.addEventListener(Ye,this._onFocusPathChange),document.addEventListener("focusin",this._onFocusIn)}_endTrackFocus(){document.removeEventListener(Ye,this._onFocusPathChange),document.removeEventListener("focusin",this._onFocusIn),this._trackElement(null),this._currentEvent=void 0}_onFocusIn(e){if(e===this._currentEvent||!this._observers.length)return;this._currentEvent=e;const t=this.getActiveElement(e.target),i=new Event(Ye,{composed:!0,bubbles:!0});t.dispatchEvent(i),this._currentElement!==t&&this._trackElement(t)}_onTrackedElementBlur(e){this._trackElement(e.relatedTarget)}_onFocusPathChange(e){const t=e.composedPath().filter(e=>e instanceof HTMLElement);this._observers.forEach(e=>e(t))}_trackElement(e){var t,i;null==(t=this._currentElement)||t.removeEventListener("blur",this._onTrackedElementBlur),null==(i=this._currentElement)||i.removeEventListener("focusin",this._onFocusIn),e&&e!==document.body?(this._currentElement=e||void 0,this._currentElement.addEventListener("blur",this._onTrackedElementBlur),this._currentElement.addEventListener("focusin",this._onFocusIn)):this._currentElement=void 0}};De([Pe()],Xe.prototype,"_onFocusIn",1),De([Pe()],Xe.prototype,"_onTrackedElementBlur",1),De([Pe()],Xe.prototype,"_onFocusPathChange",1);var Qe=new Xe,Ze=new class{constructor(){this._queue=[],this._busy=!1,this._invalid=!1,this._version=0,this._styleQueue=[],this._invalidStyle=!1,this._registeredCompleteCallbacks=[],this._tracker=document.createTextNode(""),"loading"!==document.readyState?this._start():document.addEventListener("DOMContentLoaded",()=>{this._start()})}get isRendering(){return this._busy}get isReady(){return!this.isRendering&&!this._invalid}get isStyleReady(){return!this._invalidStyle}get version(){return this._version}flush(){this._execute()}queue(e){this._queue.push(e),this._invalid||(this._invalid=!0,this._version++,this._tracker.textContent=this._version.toString())}render(e){this._busy=!0,e(),this._busy=!1}queueStyle(e){this._styleQueue.push(e),this._invalidStyle||(this._invalidStyle=!0,window.requestAnimationFrame(()=>{for(;this._styleQueue.length;){const e=this._styleQueue.pop();e&&e()}this._invalidStyle=!1,this._complete()}
1))}waitForReady(e){this.isReady?e():this._registeredCompleteCallbacks.push(e)}_start(){new MutationObserver(()=>{this._execute()}).observe(this._tracker,{characterData:!0}),this._execute()}_complete(){if(!(this._queue.length>0||this._styleQueue.length>0))for(;this._registeredCompleteCallbacks.length;)try{const e=this._registeredCompleteCallbacks.pop();e&&e()}catch(e){console.error("Acorn render failed to call completeCallback on completion."),this._registeredCompleteCallbacks=[]}}_execute(){const e=this._queue.length;this._busy=!0;for(let t=0;t<e;t++)this._queue[t]();this._busy=!1,this._queue.splice(0,e),this._queue.length>0?(this._version++,this._tracker.textContent=this._version.toString()):(this._invalid=!1,this._complete())}},Je=new Map;function et(e,t,i){Je.has(e)||(Je.set(e,new Map),function(e){const t=e.attributeChangedCallback,i=function(e,t){const i="function"==typeof t;return function(n,o,r){i&&t.call(this,n,o,r);try{tt(e,n).forEach(e=>{e(this,r,o,n)})}catch(e){throw e.message=`Error when ${n} attribute was set to ${r}:\n${e.message}`,e}}}(e,t);e.attributeChangedCallback=i}(e));const n=tt(e,t);-1!==n.indexOf(i)||n.push(i)}function tt(e,t){let i=Je.get(e);i||(i=new Map,Je.set(e,i));let n=i.get(t);return n||(n=[],i.set(t,n)),n}var it=new Map;function nt(e,t){it.has(e)||(it.set(e,[]),function(e,t){const i=Object.getOwnPropertyDescriptor(e,"observedAttributes")||{};let n=[];Object.defineProperty(e,"observedAttributes",Object.assign({},i,{get(){let o=[...t(),...n];i.get&&(o=o.concat(i.get()||[]));let r=Object.getPrototypeOf(e);for(;r&&"HTMLElement"!==r.name;)o=o.concat(r.observedAttributes||[]),r=Object.getPrototypeOf(r);return[...new Set(o)]},set(e=[]){n=e},configurable:!0}))}(e.constructor,()=>it.get(e)||[]));const i=it.get(e);-1!==i.indexOf(t)||i.push(t)}var ot=class{constructor(e,t,i){this._element=e,this._parser=t,this._attributeName=i}update(e){const{parsedValue:t,error:i}=this._parser.propertyToAttribute(e);!i&&this._shouldUpdate(t)&&(null==t?this._element.removeAttribute(this._attributeName):this._element.setAttribute(this._attributeName,t))}_shouldUpdate(e){return!(e===this._element.getAttribute(this._attributeName))&&(!!this._element.hasAttribute(this._attributeName)||!this._parser.isEmptyAttributeValue(e))}},rt=class{constructor(e,t,i){this._isChanged=!1,this._element=e,this._parser=t,this._propertyName=i,this._value=this._parser.defaultPropertyValue}isChanged(){return this._isChanged}value(){return this._value}update(e){const{parsedValue:t,error:i}=this._parser.valueToProperty(e);return!i&&!this._parser.isEqual(t,this.value())&&(this._isChanged=!0,this._value=t,this._element[this._propertyName]=this._value,!0)}},at=class{constructor(e,t,i){this._properties=new WeakMap,this._attributes=new WeakMap,this._propertyDefinition=e,this._options=i,this._parser=t,this._propertyName=this._propertyDefinition.propertyName,this._attributeName=i.name||we(this._propertyName)}observeProperty(){this._propertyDefinition.onGet(this._onPropertyRetrieval),this._propertyDefinition.onSet(this._onPropertyChange)}observeAttribute(){const e=this._propertyDefinition.getTarget();nt(e,this._attributeName),et(e,this._attributeName,this._onAttributeChange)}_onAttributeChange(e,t){const{parsedValue:i,error:n}=this._parser.attributeToProperty(t);n||(e[this._propertyName]=i)}_onPropertyRetrieval(e){return this._getElementProperty(e).value()}_onPropertyChange(e,t){const i=this._getElementProperty(e),n=!i.isChanged();if(!i.update(t))return;if(this._shouldUpdateAttribute(e,i.value(),n)){this._getElementAttribute(e).update(e[this._propertyName])}this._invalidate(e)}_shouldUpdateAttribute(e,t,i){const{reflect:n,observe:o,shouldUpdateAttribute:r}=this._options;return!!(n&&o&&e.isConnected)&&!(r&&!r(t,i))}_invalidate(e){this._options.invalidateStyle?e.invalidateStyle():(!1!==this._options.invalidate||this._options.invalidateSynchronous)&&e.invalidate(!!this._options.invalidateSynchronous)}_getElementProperty(e){let t=this._properties.get(e);return t||(t=new rt(e,this._parser,this._propertyName),this._properties.set(e,t)),t}_getElementAttribute(e){let t=this._attributes.get(e);return t||(t=new ot(e,this._parser,this._attributeName),this._attributes.set(e,t)),t}};De([Pe()],at.prototype,"_onAttributeChange",1),De([Pe()],at.prototype,"_onPropertyRetrieval",1),De([Pe()],at.prototype,"_onPropertyChange",1);var st=class{constructor(e){this.options=Object.assign({legacyOptions:{}},e),this.defaultPropertyValue=this.options.defaultPropertyValue}isEqual(e,t){return e===t}isEmptyAttributeValue(e){return null==e}attributeToProperty(e){const t=this.options.legacyOptions.fromAttribute;return t?{parsedValue:t(e)}:this.parseAttributeToProperty(e)}propertyToAttribute(e){const t=this.options.legacyOptions.toAttribute;return t?{parsedValue:t(e)}:this.parsePropertyToAttribute(e)}valueToProperty(e){const t=this.options.legacyOptions.propertyFormatter;return t?{parsedValue:t(e)}:this.parseValueToProperty(e)}},lt=class extends st{constructor(e={}){super(Object.assign({},{defaultPropertyValue:NaN},e))}isEqual(e,t){return super.isEqual(e,t)||isNaN(e)&&isNaN(t)}parseAttributeToProperty(e){return this._parseStringToNumber(e)}parsePropertyToAttribute(e){try{return{parsedValue:e.toString()}}catch(t){return{error:this._error(e)}}}parseValueToProperty(e){const t=typeof e;let i={};return null===e?i.error=this._error(e):void 0===e?i.parsedValue=this.defaultPropertyValue:"number"===t?isNaN(e)?i.error=this._error(e):i.parsedValue=e:"string"===t?i=this._parseStringToNumber(e):i.error=this._error(e),i}_parseStringToNumber(e){e="string"==typeof e?e.replace(",","."):null;const t=parseFloat(e);let i;return isNaN(t)&&(i=this._error(e)),{parsedValue:t,error:i}}_error(e){return new Error(`Could not convert ${e} (type: ${typeof e}) to a number`)}},ct=class extends lt{parseValueToProperty(e){const t=super.parseValueToProperty(e);return t.error||(t.parsedValue=parseInt(t.parsedValue)),t}},dt=class e extends st{constructor(e={}){super(Object.assign({},{defaultPropertyValue:!1},e))}parseAttributeToProperty(e){return{parsedValue:null!==e}}parsePropertyToAttribute(e){return{parsedValue:e?"":null}}parseValueToProperty(t){return{parsedValue:-1===e._falsyValues.indexOf(t)}}};dt._falsyValues=[!1,0,"",null,void 0,NaN];var ht=dt,pt=class extends st{constructor(e={}){super(Object.assign({},{defaultPropertyValue:""},e))}isEmptyAttributeValue(e){return super.isEmptyAttributeValue(e)||""===e}parseAttributeToProperty(e){return{parsedValue:e}}parsePropertyToAttribute(e){return{parsedValue:this._valueToString(e)}}parseValueToProperty(e){return{parsedValue:e}}_valueToString(e){const t=typeof e;if("string"===t)return e;if(null==e)return null;if("object"===t)return this.defaultPropertyValue;try{return e.toString()}catch(e){return this.defaultPropertyValue}}},ut=class{constructor(e,t,i){this._getterCallbacks=[],this._setterCallbacks=[],this._target=e,this.propertyName=t,this._isDescriptorDefined=!!i,this._descriptor=i||Object.getOwnPropertyDescriptor(e,t),this._descriptor||(this._descriptor={}),this._descriptor.configurable=!0,this._descriptor.enumerable=!0}getDescriptor(){return this._descriptor}getTarget(){return this._target}onSet(e){-1===this._setterCallbacks.indexOf(e)&&(this._setterCallbacks.push(e),1===this._setterCallbacks.length&&this._addSetterToDescriptor())}onGet(e){-1===this._getterCallbacks.indexOf(e)&&(this._getterCallbacks.push(e),1===this._getterCallbacks.length&&this._addGetterToDescriptor())}_addGetterToDescriptor(){const e=this._descriptor.get,t=this._getterCallbacks,i=this.propertyName;this._descriptor.get=function(){if(e)return e.call(this);return t[t.length-1].call(this,this,i)},this._updateDescriptor()}_addSetterToDescriptor(){var e;const t=this,i=this._setterCallbacks,n=null==(e=this._descriptor)?void 0:e.set,o=function(e){let o=e;function r(){try{return this[t.propertyName]}catch(t){return e}}
1n&&(n.call(this,o),o=r()),i.forEach((e,i)=>{i>0&&(o=r()),e.call(this,this,o,t)})};this._descriptor&&(this._descriptor.set=o),this._updateDescriptor()}_updateDescriptor(){this._descriptor.configurable=!0,this._descriptor.enumerable=!0,this._isDescriptorDefined||(this._isDescriptorDefined=!0,delete this._target[this.propertyName],Object.defineProperty(this._target,this.propertyName,this._descriptor))}};function gt(e={}){var t;return t=e,e={reflect:!1,observe:!0,invalidateStyle:!1,invalidate:!0,...t},function(t,i,n){const o=function(e,t,i){const n={legacyOptions:i},o=je.getMetadata(e.constructor,t);let r;o&&(n.defaultPropertyValue=o.defaultValue,r=o.type);switch(r){case Boolean:return new ht(n);case Number:return new lt(n);case Ge:return new ct(n);default:return new pt(n)}}(t,i,e),r=function(e,t,i){let n=mt.get(e);n||(n=new Map,mt.set(e,n));let o=n.get(t);o||(o=new ut(e,t,i),n.set(t,o));return o}(t,i,n),a=new at(r,o,e);return a.observeProperty(),e.observe&&a.observeAttribute(),r.getDescriptor()}}var mt=new Map;var bt=new Set;function vt(){return function(e){if(!("autofocus"in e.prototype)){const t=gt({fromAttribute:e=>null!=e,reflect:!0,toAttribute:e=>e?"":null})(e.prototype,"autofocus",{});Object.defineProperty(e,"autofocus",t)}return class extends e{connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this.autofocus&&(bt.add(this),this.dispatchEvent(new CustomEvent("requestAutoFocus",{bubbles:!0,composed:!0})),Ze.waitForReady(()=>{this.focus()}))}disconnectedCallback(){var e;null==(e=super.disconnectedCallback)||e.call(this),bt.delete(this)}}}}function yt(e){return e.replace("acorn-","")}function _t(e){if(!e.tag)throw new Error("You need to pass a 'tag' for the element");return function(t){var i;const n=Symbol(),o=((i=class extends t{static define(e){if(customElements.get(e))return!0;try{customElements.define(e,this)}catch(t){customElements.define(e,class extends(this){})}return!0}get config(){return this.constructor.config}constructor(...e){super(...e),this[n]=!0}isComponentReady(){return!!this[n]}}).config={...e,type:e.type||yt(e.tag)},i);return o.define(e.tag),Array.isArray(e.alias)&&e.alias.forEach(e=>{o.define(e)}),o}}function ft(e={}){const t={acornEvent:!0};return function(i,n){const o=e.name||n.replace(/^_/,""),r=!1!==e.track;delete e.name,delete e.track;const a=`__acorn_event_${o}`;delete i[n]&&Object.defineProperty(i,n,{get:function(){return this[a]=this[a]||{emit:i=>{i instanceof CustomEvent&&(i=i.detail);const n=Object.assign({},e,{detail:Object.assign({},i,t)}),a=new CustomEvent(o,n);return this.dispatchEvent(a),r&&Ue.addEvent(a),a}}},enumerable:!0,configurable:!0})}}var xt=class{static get tagName(){return`acorn-${we(this.modelName)}`}};xt.aliases=[];var wt="dataElementChange",Ct=new WeakMap,St=class e extends HTMLElement{constructor(){super(),this.propertyData={},this.addEventListener(wt,this._onChildDataElementChange)}connectedCallback(){this.getDataModelClass().observeTextContent&&(this._mutationObserver=new MutationObserver(()=>{this.dataModel&&this.dataModel.text!==this.textContent&&(this.dataModel=null,this._invalidate())}),this._mutationObserver.observe(this,{characterData:!0,subtree:!0})),this._invalidate()}disconnectedCallback(){this._mutationObserver&&this._mutationObserver.disconnect()}attributeChangedCallback(e,t,i){var n;const o=xe(e);switch(null==(n=je.getMetadata(this.getDataModelClass(),o))?void 0:n.type){case Boolean:this.setPropertyValue(o,null!==i);break;case Number:this.setPropertyValue(o,Number(i));break;case Object:case Array:try{const e=decodeURIComponent(i),t=JSON.parse(e);this.setPropertyValue(o,t)}catch(e){console.error(`Cound not parse attribute array data ${o}`)}break;default:this.setPropertyValue(o,i)}}asDataModel(){const e=[...this.childNodes].find(e=>e instanceof HTMLTemplateElement);let t;return e&&(t=e.innerHTML.trim()),this.dataModel=this.createModel({...this._getPropertyDataFromChildren(),...this.propertyData,dataset:this.dataset,template:t}),this.dataModel}createModel(e){const t=this.getDataModelClass();return Object.assign(new t,{type:t,text:this.textContent,...e})}setPropertyValue(e,t){this.propertyData[e]!==t&&(this.propertyData[e]=t,this.dataModel=null,this._invalidate())}_getPropertyDataFromChildren(){const t=this._getChildClassMap(),i={};if(!t.size)return i;const n=[...this.children].filter(t=>t instanceof e);for(const[e,o]of t){const t=n.filter(e=>-1!==o.indexOf(e.getDataModelClass())).map(e=>e.asDataModel());i[e]=t}return i}_getChildClassMap(){var e;const t=this.getDataModelClass();if(Ct.has(t))return Ct.get(t);const i=Object.getOwnPropertyNames(new t),n=new Map;i.push("children");for(const o of i){let i=null==(e=je.getMetadata(t,o))?void 0:e.type;i=Array.isArray(i)?i:[i],xt.isPrototypeOf(i[0])&&n.set(o,i)}return Ct.set(t,n),n}_invalidate(){var e;null==(e=this._dataElementChangeEvent)||e.emit()}_onChildDataElementChange(){this.dataModel=null}};De([ft({name:wt,bubbles:!0})],St.prototype,"_dataElementChangeEvent",2);var $t=St,kt=class{constructor(e,t,i=!0){this.dataKey=Symbol(),this.elementDataKey=Symbol(),this.property=e,this.dataClasses=t,this.allowMultiple=i,this.dataCache=new WeakMap}matchDataElement(e){return e instanceof $t&&-1!==this.dataClasses.indexOf(e.getDataModelClass())}parseData(e){if(e instanceof xt)return e;const t=this.dataCache.get(e);if(t)return t;const i=e.type?this.dataClasses.find(t=>t.modelName===e.type):this.dataClasses[0];if(!i)return void console.error(`Parsing data property ${this.property} not complete. No data class found for type: ${e.type}.`);let n;e.children&&(n=e.children.map(e=>this.parseData(e)).filter(e=>e));const o=Object.assign(new i,e,{children:n});return this.dataCache.set(e,o),o}parseElementData(e){if(e instanceof $t&&-1!==this.dataClasses.indexOf(e.getDataModelClass()))return e.asDataModel()}};function Et(e){[...e.aliases,e.tagName].forEach(t=>{if(!customElements.get(t)){const i=Object.getOwnPropertyNames(new e),n=function(e,t){const i=t.map(e=>we(e)),n=class extends $t{static get observedAttributes(){return i}getDataModelClass(){return e}};return n}(e,i);
1customElements.define(t,n),function(e,t){e.forEach(e=>{Object.defineProperty(t.prototype,e,{get:function(){return this.propertyData[e]},set:function(t){this.setPropertyValue(e,t)}})})}(i,n)}})}function Tt(e,t,i){const n=e.constructor.prototype[t];e.constructor.prototype[t]=function(...e){if(i.apply(this,e),n)return n.apply(this,e)}}var It=Symbol(),Ot=Symbol(),Dt=Symbol();function Rt(e){e.stopPropagation();this.constructor.prototype[It].forEach(t=>{t.matchDataElement(e.target)&&Ft.call(this,t.property)})}function Ft(e){this[Dt]||(this[Dt]=new Set,this[Dt].add(e),queueMicrotask(()=>{this[Dt].forEach(e=>{Lt.call(this,e)}),this[Dt]=void 0})),this[Dt].add(e)}function Lt(e){const t=this.constructor.prototype[It],i=null==t?void 0:t.find(t=>t.property===e);this[e]=[...this.children].map(e=>null==i?void 0:i.parseElementData(e)).filter(e=>e)}var At=Object.freeze([]);function Mt(e){return function(t,i){var n,o;const r=null==(n=je.getMetadata(t.constructor,i))?void 0:n.type,a=Array.isArray(r)?r:[r],s=new kt(i,a,null==e?void 0:e.allowMultiple),l=((c=t).hasOwnProperty(It)||(Object.defineProperty(c,It,{value:[]}),Tt(c,"connectedCallback",function(){this.addEventListener(wt,Rt);const e=this.constructor.prototype[It];this[Ot]=new MutationObserver(t=>{for(const i of t)for(const t of i.removedNodes)null==e||e.forEach(e=>{e.matchDataElement(t)&&Ft.call(this,e.property)})}),this[Ot].observe(this,{childList:!0,subtree:!0})}),Tt(c,"disconnectedCallback",function(){var e;this.removeEventListener(wt,Rt),null==(e=this[Ot])||e.disconnect()})),c);var c;null==(o=l[It])||o.push(s),a.forEach(e=>{Et(e)}),delete t[i]&&Object.defineProperty(t,i,{get:function(){return Bt.call(this,s)},set:function(e){return Pt.call(this,s,e)},enumerable:!0,configurable:!0})}}function Bt(e){const t=this[e.dataKey];if(!t||!Array.isArray(t))return At;const i=e.dataCache.get(t);if(i)return i;const n=t.map(t=>e.parseData(t)).filter(e=>e);return e.dataCache.set(t,n),n}function Pt(e,t){t!==this[e.dataKey]&&(this[e.dataKey]=t,this.invalidate())}function Nt(e=0){const t=new WeakMap;return function(i,n,o){const r=typeof i[n];if("function"!==r)throw Error(`${Nt.name} decorator can only be used on functions. ${n} is of type ${r}.`);const a=o.value;return o.value=function(...i){clearTimeout(t.get(this));const n=setTimeout(()=>{a.apply(this,i)},e);t.set(this,n)},o}}function Ht(e={}){return gt({...e,observe:!1})}function zt(e={}){return function(t,i){const n=t.constructor,o=function(e){const t="defaultValue"in e,i=e.type||String,n=t?e.defaultValue:function(e){switch(e){case Boolean:return!1;case String:return"";case Number:case Ge:return NaN;default:return}}(i);return Object.assign({type:i,defaultValue:n},e)}(e);je.setMetadata(n,i,o)}}function Wt(e){return function(t,i,n){const o=Symbol(),r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(t,e,{get:function(){var e;const t=null==(e=null==r?void 0:r.get)?void 0:e.call(this);return!this[o]&&t&&(this[o]=t.subscribe(e=>{this.rendered&&n.value.call(this,e)})),t},enumerable:!0,configurable:!0})}}var Vt=Symbol(),jt=Symbol(),Gt=new Map,qt=class extends Number{hasPrevious(){return!!(2&this.valueOf())}hasNext(){return!!(1&this.valueOf())}},Ut=class{constructor(){this._invalid=!1,this._elements=new Set}register(e){this._elements.add(e),this._invalidate()}unregister(e){this._elements.delete(e),this._invalidate()}_invalidate(){this._invalid||(this._invalid=!0,queueMicrotask(()=>{[...this._elements.values()].forEach(e=>{if(e.isConnected){const t=e[jt];t&&t()}else this._elements.delete(e)}),this._invalid=!1}))}};function Kt(){return function(e,t){Tt(e,"connectedCallback",function(){this[Vt]=new qt(0),this[jt]=Yt.bind(this,t);let e=Gt.get(this.localName);e||(e=new Ut,Gt.set(this.localName,e)),e.register(this)}),Tt(e,"disconnectedCallback",function(){var e;null==(e=Gt.get(this.localName))||e.unregister(this)}),delete e[t]&&Object.defineProperty(e,t,{get:function(){return this[Vt]},set:function(e){this[Vt]=e},enumerable:!0,configurable:!0})}}function Yt(e){var t,i,n;let o=0;(null==(t=this.nextElementSibling)?void 0:t.localName)===this.localName&&(o|=1),(null==(i=this.previousElementSibling)?void 0:i.localName)===this.localName&&(o|=2),(null==(n=this[e])?void 0:n.valueOf)&&this[e].valueOf()!==o&&(this[e]=new qt(o))}function Xt(e){return e instanceof HTMLElement&&"styleElement"in e&&"getStyle"in e&&"invalidate"in e&&"invalidateStyle"in e&&"isComponentReady"in e&&"render"
1in e}function Qt(e,t,i){var n,o;return!!Xt(e)&&("string"==typeof t?(null==(n=e.config)?void 0:n.type)===t&&(!i||i in e):t&&t.config?(null==(o=e.config)?void 0:o.type)===t.config.type&&(!i||i in e):!!i&&i in e)}var Zt=class extends Array{get name(){return this.definition.name}get content(){const e=this.getSlottedNodes();return this.definition.multiSelect?e:e[0]}get matchingContent(){return this.definition.multiSelect?[...this.target.children].filter(e=>this.definition.matchSelected(e)):[...this.target.children].find(e=>this.definition.matchSelected(e))}get slotElement(){return this[0]}constructor(e,t,i,n){super(...i),this.target=e,this.definition=t,this.instanceName=n||this.definition.name}isFilled(){return this.definition.isDefaultSlot?this.getSlottedNodes().filter(e=>{var t;return e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE&&(null==(t=e.textContent)?void 0:t.trim().length)}).length>0:this.getSlottedNodes().length>0}default(e){return V(e,this.slotElement),this}reportValidity(){const e=this.getSlottedNodes(),t=e.filter(e=>e.slot);if(this.definition.options.required&&!e.length)return"Assigned nodes required, but none where found.";if(this.definition.options.select&&t.length>1)return`1 assigned node expected, but ${t.length} where found.`;if(this.definition.options.strict)for(let t=0;t<e.length;t++)if(!this.definition.matchSelected(e[t]))return"Assigned nodes doesn't match select argument.";return null}getSlottedNodes(){if(this.slotElement.isConnected)return this.slotElement.assignedNodes({flatten:!0});if(!this.definition.isDefaultSlot){if(this.definition.options.spread){const e=[...this.target.children].find(e=>e.slot===this.instanceName);return e?[e]:[]}return[...this.target.children].filter(e=>e.slot===this.instanceName)}return[...this.target.childNodes].filter(e=>e.nodeType!==Node.ELEMENT_NODE||!e.slot)}},Jt=Date.now(),ei=class{constructor(e,t,i={}){this._slotMap=new WeakMap,this.name=e,this.property=t,this.options=this._isValidOptions(i)?i:{},this.validate=!!(this.options.required||this.options.strict||this.options.select),this.invalidateOnChange=!1!==this.options.invalidateOnChange;const n=this.options.select||this.options.selectAll||[];this._selectors=Array.isArray(n)?n:[n];const o=this.options.selectSingleType||this.options.selectAllTypes||[];this._typeSelectors=Array.isArray(o)?o:[o],this._typeSelectors=this._typeSelectors.map(e=>yt(e))}get multiSelect(){return!this.options.select&&!this.options.spread&&!this.options.selectSingleType}get isDefaultSlot(){return"default"===this.name}getSlotInstanceName(){if(this.options.spread){const e=Jt;return Jt++,this.name+"@"+e.toString(16)}return this.name}matchSelected(e){return!!this._selectors.find(t=>e.matches(t))||Xt(e)&&!!this._typeSelectors.find(t=>{var i;return(null==(i=e.config)?void 0:i.type)===t})}getInstance(e){if(this.options.spread){const t=[...e.children].filter(e=>e.slot.startsWith(this.name)).map(e=>e.slot);return this._resolveSpreadSlotElements(e,t).map((i,n)=>new Zt(e,this,[i],t[n]))}const t=this.isDefaultSlot?"":this.name,i=this._resolveSlotElement(e,t);return new Zt(e,this,i)}_isValidOptions(e){return this.isDefaultSlot&&Object.keys(e).length?(console.error("Default slots may not have selectors, require, strict or spread defined"),!1):[!!e.select,!!e.selectSingleType,!!e.selectAll,!!e.selectAllTypes].filter(e=>e).length>1?(console.error("Slots cant have have multiple types of selectors use only one of select, selectAll, selectSingleType, selectAllTypes"),!1):!e.strict||e.select||e.selectAll||e.selectSingleType||e.selectAllTypes?!(e.spread&&!e.selectAll&&!e.selectAllTypes)||(console.error("If spread is defined - selectAll or selectAllTypes must be defined as well"),!1):(console.error("If strict is defined - select, selectAll, selectSingleType or selectAllTypes must be defined as well"),!1)}_resolveSlotElement(e,t){let i=this._slotMap.get(e);return i||(i=[document.createElement("slot")],t&&i[0].setAttribute("name",t),this._slotMap.set(e,i)),i}_resolveSpreadSlotElements(e,t){let i=this._slotMap.get(e);i||(i=[],this._slotMap.set(e,i));const n=t.length-i.length;n<0&&i.splice(n);for(let e=0;e<t.length;e++){if(!i[e]){const t=document.createElement("slot");i[e]=t}t[e]&&i[e].setAttribute("name",t[e])}return i}},ti=Symbol(),ii=Symbol();function ni(e,t,i){const n=this.observedSlots,o=i||new Set;for(let t=0;t<e.length;t++){const i=oi.call(this,e[t]);o.add(i)}if(t)for(let e=0;e<t.length;e++){const i=oi.call(this,t[e]);o.add(i)}
1o.forEach(e=>{const t=n.find(t=>t.name===e);t&&(this[t.property]=t.getInstance(this),t.invalidateOnChange&&this.invalidate())})}function oi(e){const t=this.observedSlots;if(e.nodeType===Node.ELEMENT_NODE){const i=e,n=t.find(e=>e.matchSelected(i));if(n){const e=n.getSlotInstanceName();return i.slot!==e&&(i.slot=e,i[ii]=!0),n.name}return i.slot||"default"}return"default"}function ri(e,t){return function(i,n){var o;"observedSlots"in i||(o=i,Object.defineProperty(o,"observedSlots",{value:[]}),Tt(o,"connectedCallback",function(){this.observedSlots.forEach(e=>{this[e.property]=e.getInstance(this),e.validate&&this.registerValidator(e.name,()=>this[e.property]instanceof Zt?this[e.property].reportValidity():this[e.property].map(e=>e.reportValidity()).filter(e=>!!e).join(" "))})}),Tt(o,"disconnectedCallback",function(){this[ti]&&(this[ti].disconnect(),this[ti]=null)}),Tt(o,"callBeforeRenderHooks",function(){this[ti]||(ni.call(this,this.childNodes),this[ti]=new MutationObserver(e=>{const t=[],i=[],n=new Set;for(const o of e)"childList"===o.type?(t.push(...o.removedNodes),i.push(...o.addedNodes)):"attributes"!==o.type||o.target[ii]||(o.oldValue&&n.add(o.oldValue),n.add(o.target.slot));ni.call(this,i,t,n)}),this[ti].observe(this,{childList:!0,attributeFilter:["slot"],attributeOldValue:!0}))}));const r=i.observedSlots,a=new ei(e,n,t),s=r.findIndex(t=>t.property===n&&t.name===e);-1===s?r.push(a):r[s]=a}}var ai=class{static get isRunningTests(){const e="undefined"!=typeof window?window[Le]:void 0;return!!(null==e?void 0:e.isRunningTests)}static get isSafari(){return/^((?!chrome|chromium).)*safari\/6/i.test(this._userAgent)}static get isChromium(){return!!window.chrome}static get isFirefox(){return/firefox/i.test(this._userAgent)}static get autofitPrint(){return!this.isChromium}static get isMac(){return/Mac/i.test(this._platform)}static get isWindows(){return/Win/i.test(this._platform)}static get isLinux(){return/Linux/i.test(this._userAgent)&&!this.isAndroid}static get isAndroid(){return/Android/i.test(this._userAgent)}static get isIOS(){return/iPad|iPhone|iPod/.test(this._userAgent)}static get isTouchScreenDevice(){return"ontouchstart"in document.documentElement}static get iOSVersion(){return si(/OS (\d+)_(\d+)_?(\d+)? like Mac OS X/)}static set isElementInternalsSupported(e){this._isElementInternalsSupported=e}static get isElementInternalsSupported(){return this._isElementInternalsSupported}static get safariVersion(){return si(/Version\/(\d+)\.(\d+)\.?(\d+)?/)}static get _platform(){var e;return(null==(e=this._navigator)?void 0:e.platform)||""}static get _userAgent(){var e;return(null==(e=this._navigator)?void 0:e.userAgent)||""}static get _navigator(){return"undefined"!=typeof window?window.navigator:void 0}};function si(e){const t="undefined"!=typeof window?window.navigator.userAgent.match(e):null;return t?[parseInt(t[1]||"0"),parseInt(t[2]||"0"),parseInt(t[3]||"0")]:[0,0,0]}ai._isElementInternalsSupported="ElementInternals"in window;var li=(e=>(e.Start="start",e.End="end",e.Transitioning="transitioning",e.Initial="initial",e))(li||{}),ci=class e{constructor(e,t){var i;this.details={},this._states={start:0,end:1},this._delta=0,this._transitionPromise=null,this._transitionState="initial",this._tween=0,this._delay=0,this._subscribers=[];const n=(null==(i=e.match(/^[0-9.]+/g))?void 0:i.map(Number)[0])||0;if(/ms$/.test(e))this._duration=n;else{if(!/s$/.test(e))throw new Error("No valid duration type");this._duration=1e3*n}ai.isRunningTests&&(this._duration=1e-4),"easeInOut"===t&&(this._easeFn=this._easeInOut),this._state=Object.keys(this._states).find(e=>this._states[e]===this._tween)}static isBusy(){return e.activeTransitions.length>0}get isTransitioning(){return"start"===this._transitionState||"transitioning"===this._transitionState}get transitionState(){return this._transitionState}get currentState(){return Object.keys(this._states).find(e=>this._states[e]===this._tween)}get value(){return this._easeFn?this._easeFn(this._tween):this._tween}get elapsed(){return this.normalizedDelta>0?this.value:1-this.value}get delta(){return this._delta}get normalizedDelta(){return this._delta>0?1:-1}goTo(e){this._state!==e&&e in this._states&&(this._state=e,this._tween=this._states[this._state],this.isTransitioning&&this._finish())}transitionTo(t,i={},n=0){if(!(t in this._states)||t===this._state)return Promise.resolve();if(this._delay=ai.isRunningTests?0:n,this._state=t,this.details=i,this._states[this._state]===this._tween)return this.isTransitioning&&this._finish(),Promise.resolve();const o=this._states[this._state]>this._tween?1:-1;return this._delta=void 0!==this._duration&&0!==this._duration?1/this._duration*o:0,this._transitionPromise||(this._transitionPromise=new Promise(e=>{this._transitionResolve=e})),this._timestamp||(e.activeTransitions.push(this),this._timestamp=performance.now(),this._transitionState="start",this._dispatchChange(),window.requestAnimationFrame(e=>this._update(e))),this._transitionPromise}subscribe(e){return this._subscribers.push(e),()=>{this._subscribers=this._subscribers.filter(t=>t!==e)}}_update(e){if(!this.isTransitioning)return;const t=this._timestamp?e-this._timestamp:0;this._timestamp=e,this._delay?this._delay=Math.max(0,this._delay-t):(this._tween+=this._delta?this._delta*t:0,this._tween=Math.max(0,Math.min(1,this._tween)),this._transitionState="transitioning",this._dispatchChange()),this._state&&this._states[this._state]===this._tween?window.requestAnimationFrame(()=>this._finish()):window.requestAnimationFrame(e=>this._update(e))}_finish(){this._timestamp=void 0,this._transitionState="end",this._dispatchChange(),e.activeTransitions=e.activeTransitions.filter(e=>e!==this),this._transitionPromise&&this._transitionResolve&&(this._transitionResolve(this._tween),this._transitionPromise=null)}_easeInOut(e){return Math.pow(e,2)/(2*(Math.pow(e,2)-e)+1)}
1_dispatchChange(){this._subscribers.forEach(e=>e(this))}};ci.activeTransitions=[];var di=ci;function hi(e){return function(t,i){const n=Symbol();delete t[i]&&Object.defineProperty(t,i,{get:function(){return this[n]||(this[n]=new di(e.duration,e.ease),this[n].subscribe(()=>{"transitioning"!==this[n].transitionState&&this.invalidateStyle()})),this[n]},enumerable:!0,configurable:!0})}}var pi=(e=>(e.Change="change",e.ChangeAndConnect="changeAndConnect",e))(pi||{}),ui=class{constructor(e,t,i,n){this._hasBeenExecuted=!1,this._element=e,this._watchedProperty=t,this._options=n,this._previousArgs={newValue:void 0,oldValue:void 0},this._watchFunction=i}get shouldTriggerOnConnect(){return"changeAndConnect"===this._options.triggerOn}execute(e,t){this._shouldExecute(e,t)&&this._executeFunction(e,t)}_executeFunction(e,t){const i=!this._hasBeenExecuted;this._hasBeenExecuted=!0,Object.assign(this._previousArgs,{newValue:e,oldValue:t}),this._watchFunction(e,t,i,this._watchedProperty)}_shouldExecute(e,t){return!!this._element.isComponentReady()&&(!(this.shouldTriggerOnConnect&&!this._element.isConnected)&&(!this._hasBeenExecuted||(e!==this._previousArgs.newValue||t!==this._previousArgs.oldValue)))}},gi=class{constructor(e){this._elementWatchFunctions=new Map,this._element=e}getWatchFunctionsForProperty(e){let t=this._elementWatchFunctions.get(e);return t||(t=new Map,this._elementWatchFunctions.set(e,t)),t}addWatchFunction(e,t,i){const n=this._element[t].bind(this._element),o=new ui(this._element,e,n,i);this.getWatchFunctionsForProperty(e).set(t,o)}},mi=class e{constructor(e,t){this._functionToOptionMap=new Map,this._elementPropertyWatchers=new WeakMap,this.propertyName=t,this._elementClass=e,this._propertyKey=Symbol(this.propertyName),this._updatePropertyDescriptor()}addWatchFunction(e,t){this._functionToOptionMap.set(e,t)}getWatchFunctionsForElement(e){return[...this._getElementPropertyWatcher(e).getWatchFunctionsForProperty(this.propertyName).values()]}_updatePropertyDescriptor(){const e=this._findPropertyDescriptorInPrototypeChain(this._elementClass,this.propertyName)||{enumerable:!0,configurable:!0},{set:t,get:i}=e,n=this._getGetFunction(i),o=this._getSetFunction(t);Object.assign(e,{set:o,get:n}),Object.defineProperty(this._elementClass,this.propertyName,e)}_getGetFunction(e){const t=this;return function(){return e?e.call(this):this[t._propertyKey]}}_getSetFunction(e){const t=this;return function(i){const n=this[t.propertyName];e?(e.call(this,i),i=this[t.propertyName]):this[t._propertyKey]=i,n!==i&&t._triggerWatchers(this,i,n)}}_triggerWatchers(e,t,i){this.getWatchFunctionsForElement(e).forEach(e=>{e.execute(t,i)})}_getElementPropertyWatcher(e){let t=this._elementPropertyWatchers.get(e);return t||(t=this._addWatchersToElementPropertyWatcher(e),this._elementPropertyWatchers.set(e,t)),t}_addWatchersToElementPropertyWatcher(t){let i=e._elementPropertyWatchers.get(t);return i||(i=new gi(t),e._elementPropertyWatchers.set(t,i)),[...this._functionToOptionMap.entries()].forEach(([e,t])=>{null==i||i.addWatchFunction(this.propertyName,e,t)}),i}_findPropertyDescriptorInPrototypeChain(e,t){var i;if(!e||"HTMLElement"===(null==(i=e.constructor)?void 0:i.name))return;const n=Object.getOwnPropertyDescriptor(e,t);return n||this._findPropertyDescriptorInPrototypeChain(Object.getPrototypeOf(e),t)}};mi._elementPropertyWatchers=new WeakMap;var bi=mi,vi=new Map,yi=[];function _i(e,t){let i=vi.get(e);i||(i=new Map,function(e,t){const i=-1!==yi.indexOf(e);if(i)return;yi.push(e);const n=e.connectedCallback;e.connectedCallback=function(){n&&n.call(this),t(e,this)}}(e,fi),vi.set(e,i));let n=i.get(t);return n||(n=new bi(e,t),i.set(t,n)),n}function fi(e,t){const i=vi.get(e);(i?[...i.values()]:[]).forEach(e=>{const i=t[e.propertyName];e.getWatchFunctionsForElement(t).filter(e=>e.shouldTriggerOnConnect).forEach(e=>{e.execute(i,i)})})}var xi={triggerOn:"change"};function wi(e,t=xi){return function(i,n){_i(i,e).addWatchFunction(n,t)}}var Ci=class{get mediaProperties(){return this._mediaProperties||(this._mediaProperties=this.cssDeclarations.filter(e=>e.property.startsWith("@media"))),this._mediaProperties}get atProperties(){return this._atProperties||(this._atProperties=this.cssDeclarations.filter(e=>"@"===e.property.charAt(0)&&!e.property.startsWith("@media"))),this._atProperties}get dynamicProperties(){return this._dynamicProperties||(this._dynamicProperties=this.cssDeclarations.filter(e=>"function"==typeof e.value)),this._dynamicProperties}get staticProperties(){return this._staticProperties||(this._staticProperties=this.cssDeclarations.filter(e=>"@"!==e.property.charAt(0)&&"function"!=typeof e.value)),this._staticProperties}constructor(e,t,i){this.key=e,this.selector=t,this.cssDeclarations=i.slice(0)}},Si=class{constructor(e={}){this.capabilities={colorMixCssFunction:!0,lightDarkCssFunction:!0,...e}}updateValueIfNeeded(e){let t=e;return this.capabilities.lightDarkCssFunction||(t=this.handleLightDarkCssFunctionValue(t)),this.capabilities.colorMixCssFunction||(t=this.handleColorMixCssFunctionValue(t)),t}handleLightDarkCssFunctionValue(e){if(this.capabilities.lightDarkCssFunction)return e;return this._handleCssFunctionValue("light-dark",e,e=>this._findArgumentsInCssFunction(e)[0]||e)}handleColorMixCssFunctionValue(e){if(this.capabilities.colorMixCssFunction)return e;return this._handleCssFunctionValue("color-mix",e,e=>{const t=this._findArgumentsInCssFunction(e),i=t[t.length-1];return this._splitCSSValue(i||"")[0]||""})}_handleCssFunctionValue(e,t,i){if(-1===t.indexOf(e))return t;const n=this._splitCSSValue(t).map(t=>{const n=this._getCssFunction(t);
1if(n===e)return i(t);if(n){return`${n}(${this._findArgumentsInCssFunction(t).map(t=>this._handleCssFunctionValue(e,t,i)||t).join(", ")})`}return t}).join(" ");return n!==t?this._handleCssFunctionValue(e,n,i):t}_getCssFunction(e){const t=e.indexOf("("),i=e.indexOf(")");return-1===t||-1===i?"":e.substring(0,t)}_findArgumentsInCssFunction(e){const t=e.indexOf("("),i=e.lastIndexOf(")");if(-1===t||-1===i)return[];const n=[];let o="",r=0;for(let a=t+1;a<i;a++){const t=e[a];if("("===t)r++;else if(")"===t)r--;else if(","===t&&0===r){n.push(o.trim()),o="";continue}o+=t}return o&&n.push(o.trim()),n}_splitCSSValue(e){const t=[];let i="",n=0;for(let o=0;o<e.length;o++){const r=e[o];if("("===r)n++;else if(")"===r)n--;else if(" "===r&&0===n){i&&(t.push(i),i="");continue}i+=r}return i&&t.push(i),t}},$i=new Map,ki=function(){let e=[0,0,0];if(ai.isIOS)e=ai.iOSVersion;else{if(!ai.isSafari)return!1;e=ai.safariVersion}return 15===e[0]&&0===e[1]||17===e[0]||18===e[0]||26===e[0]}(),Ei=class e{constructor(t,i){this.classes={},this._cssRuleCache=new Map,i.$host&&!i.$host["&([hidden])"]&&(i.$host["&([hidden])"]={display:"none"}),this.componentName=t.toLowerCase();let n=[];const o=this._normalizeStyles(i);Object.keys(o).forEach(e=>{const t=this._createRules(e,o[e]);t.length&&(n=n.concat(t))}),this.staticRules=n.filter(e=>e.staticProperties.length>0).map(e=>new Ci(e.key,e.selector,e.staticProperties)),this.dynamicRules=n.filter(e=>e.dynamicProperties.length>0).map(e=>new Ci(e.key,e.selector,e.dynamicProperties)),this.atRules=n.filter(e=>e.atProperties.length>0).map(e=>new Ci(e.key,e.selector,e.atProperties)),this.mediaRules=n.filter(e=>e.mediaProperties.length>0).map(e=>new Ci(e.key,e.selector,e.mediaProperties));const r=n.reduce((e,{key:t,selector:i})=>Object.assign(e,{[t]:i}),{});this.classes=this.generateClasses(r);const a=this.atRules.map(t=>e.generateAtCSS(t.selector,t.atProperties)).join("\n"),s=n.map(t=>e.generateCSS(t.selector,t.staticProperties)).join("\n"),l=this.mediaRules.map(t=>e.generateAtCSS(t.selector,t.mediaProperties)).join("\n");this.styleElement=document.createElement("style"),this.styleElement.type="text/css",this.styleElement.appendChild(document.createTextNode(a+"\n"+s+"\n"+l))}static create(t,i){return $i.has(t)||$i.set(t,new e(t,i)),$i.get(t)}static generateCSS(e,t){return`${e} {\n${t.filter(({value:e})=>void 0!==e).map(({property:e,value:t})=>` ${e}: ${this._handleUnsupportedCssValue(t,e)};`).join("\n")}\n}`}static generateAtCSS(t,i){return i.map(({property:i,value:n})=>{if(-1!==i.indexOf("@keyframes"))return`${i} {\n  ${n}\n}`;if(-1!==i.indexOf("@media")){const o=Object.keys(n).map(e=>{const t=we(e);return{property:t,value:this._handleUnsupportedCssValue(n[e],t)}});return`${i} {\n  ${e.generateCSS(t,o)}\n}`}}).filter(e=>void 0!==e).join("\n")}static _handleUnsupportedCssValue(e,t){if(!this.styleValueCompatibilityHandler){const e={lightDarkCssFunction:CSS.supports("color","light-dark(white, black)"),colorMixCssFunction:CSS.supports("color","color-mix(in srgb, white calc(100% * var(--some-css-prop, 0)), black)")};this.styleValueCompatibilityHandler=new Si(e)}if("string"!=typeof e)return e;const i=this.styleValueCompatibilityHandler.updateValueIfNeeded(e);return i!==e&&CSS.supports(t,i)?i:e}getStyleElement(){return this.styleElement.cloneNode(!0)}update(t){const i=t.styleElement.sheet;return i?(this.dynamicRules.forEach(n=>{const o=this.updateValuesForDynamicProperties(n.dynamicProperties,t),r=this._getCssRule(n.selector,i);if(r){const e=r.style;o.forEach(({property:t,value:i})=>{void 0===i?e.removeProperty(t):-1!==String(i).indexOf("!important")?e.setProperty(t,i.replace("!important","").trim(),"important"):e.setProperty(t,i)})}else{const t=e.generateCSS(n.selector,o);let r;try{if(r=i.insertRule(t,i.cssRules.length),r){const e=i.cssRules[r],t=this._cssRuleCache.get(i);null==t||t.set(n.selector,e)}}catch(e){if(!/::-/.test(n.selector))throw Error(e instanceof Error?e.message:void 0)}}}),ki&&this.dynamicRules.length&&(this._requestUpdateId&&cancelAnimationFrame(this._requestUpdateId),this._requestUpdateId=window.requestAnimationFrame(()=>this._triggerSafariRepaint())),null):null}generateClasses(e){return Object.keys(e).reduce((t,i)=>{const n=e[i];if("string"==typeof n){const e=this.getClassThatMatchesSelector(n);if(void 0!==e){const n=i.indexOf(":");-1!==n&&(i=i.substring(0,n)),t[i]=e}}return t},{})}getClassThatMatchesSelector(e){let t=e;t=t.split(".").splice(1).join(" ");const i=t.indexOf(":");
1return-1!==i&&(t=t.substr(0,i)),t=t.replace(/([()])/g,""),t}updateValuesForDynamicProperties(t,i){return t.reduce((t,{property:n,value:o})=>{let r=o;for(;"function"==typeof r;)r=r(i);return Array.isArray(r)?r.forEach(i=>{t.push({property:n,value:e._handleUnsupportedCssValue(i,n)})}):t.push({property:n,value:e._handleUnsupportedCssValue(r,n)}),t},[])}styleKeyToSelector(e){const t=we(e);return e.match(/\$root|\$host|\$\$slotted/)?t.replace(/\$/g,":"):"."+t}_createRules(e,t){let i=[];const n=[];let o=!1;if(Object.keys(t).filter(r=>{const a=t[r];if("&"===r.charAt(0)){const t=e+r.substring(1);if("object"!=typeof a)throw Error(`Property ${r} belonging to selector ${e} must have an object as value. Following value was defined: ${a}.`);return void(i=i.concat(this._createRules(t,a)))}r=we(r=r.replace(/_/g,"-")),Array.isArray(a)?a.forEach(e=>n.push({property:r,value:e})):n.push({property:r,value:a}),o=!0}),o){const t=this.styleKeyToSelector(e),o=new Ci(e,t,n);i.push(o)}return i}_normalizeStyles(e){const t={};return Object.keys(e).forEach(i=>{const n=e[i];Array.isArray(n)&&!n.some(e=>"object"!=typeof e)?t[i]=this._mergeStyles(...n):t[i]="object"==typeof n?this._normalizeStyles(n):n}),t}_mergeStyles(...e){const t={},i=e.filter(e=>void 0!==e),n=this._findStyleProperties(i);return i.forEach(e=>{Object.keys(e).filter(e=>-1===n.indexOf(e)).forEach(e=>n.push(e))}),n.forEach(e=>{const n=i.map(t=>t[e]).filter(e=>void 0!==e);t[e]=this._generateStyleValue(n)}),t}_findStyleProperties(e){const t=[];return e.forEach(e=>{Object.keys(e).filter(e=>-1===t.indexOf(e)).forEach(e=>t.push(e))}),t}_generateStyleValue(e){const t=e.length;return 1===t?e[0]:e.some(e=>"function"==typeof e)?i=>{let n,o=t;for(;o--&&(n=e[o],"function"==typeof n&&(n=n(i)),void 0===n););return void 0===n?void 0:n}:e[e.length-1]}_triggerSafariRepaint(){const e=document.getElementById("acorn-style-layout"),t=null==e?void 0:e.sheet;if(!t)return;const i="--acorn-safari-15-fix",n=Math.random().toString();if(t.cssRules.length){const e=t.cssRules?t.cssRules[0]:void 0,o=e&&"style"in e?e:void 0;null==o||o.style.setProperty(i,n)}else{const e=`:root { --${i}:${n}; }`;t.insertRule(e,0)}}_getCssRule(e,t){let i=this._cssRuleCache.get(t);i||(i=new Map,this._cssRuleCache.set(t,i));let n=i.get(e);if(void 0!==n)return n;for(let o=0;o<t.cssRules.length;o++)if(n=t.cssRules[o],n.type===CSSRule.STYLE_RULE&&n.selectorText===e)return i.set(e,n),n}};var Ti=class extends HTMLElement{constructor(){super(),this.connectedCallbackHasBeenCalled=!1,this.rendered=!1,this.styled=!1,this.invalid=!1,this.validityReport=[],this._invalidStyle=!1,this._registeredValidators=new Map,this._isComponentReady=!1,this.redispatchEvent=this.redispatchEvent.bind(this),this.attachShadow({mode:"open",delegatesFocus:this.constructor.config.delegatesFocus}),this._isComponentReady=!0;const e=this.constructor.config.tag;this.acornStyle=Ei.create(e,this.getStyle()||{}),this.classes=this.acornStyle.classes,this._styleElement=this.acornStyle.getStyleElement()}static get registeredTagNames(){return[...this.config.alias||[],this.config.tag]}get styleElement(){return this._styleElement}connectedCallback(){this.connectedCallbackHasBeenCalled||(this._renderFn=this.getRenderFunction(),this._styleFn=this._getStyleFn(),ai.isSafari&&this.constructor.config.delegatesFocus&&!this.getAttribute("tabindex")&&this.setAttribute("tabindex","0"),this.connectedCallbackHasBeenCalled=!0),this.invalidate()}getStyle(){return null}render(){}invalidate(e=!1){this._renderFn&&this.connectedCallbackHasBeenCalled&&(e?(this.invalid=!0,Ze.render(this._renderFn)):!0!==this.invalid&&(this.invalid=!0,Ze.queue(this._renderFn)))}invalidateStyle(){this.connectedCallbackHasBeenCalled&&!0!==this._invalidStyle&&this._styleFn&&(this._invalidStyle=!0,Ze.queueStyle(this._styleFn))}isComponentReady(){return this._isComponentReady}registerValidator(e,t){this._registeredValidators.set(e,t)}verifyValidity(){const e=[];return this._registeredValidators.forEach((t,i)=>{const n=t();n&&e.push(`${i}: ${n}`)}),e}focus(e){var t;if(!ai.isSafari||!this.constructor.config.delegatesFocus)return void super.focus(e);if(!this.shadowRoot)return;const i=["button","a","input","select","textarea"],n=Array.from(this.shadowRoot.querySelectorAll("*")).filter(e=>{var t;return e.getAttribute("tabindex")||-1!==i.indexOf(e.localName)||Xt(e)&&(null==(t=e.config)?void 0:t.delegatesFocus)});for(;!this.shadowRoot.activeElement&&n.length;
1)null==(t=n.shift())||t.focus(e)}beforeInitialRender(){}beforeRender(){}afterRender(){}callBeforeRenderHooks(){this.validityReport=this.verifyValidity(),0===this.validityReport.length?(this.beforeRender(),this.rendered||this.beforeInitialRender()):console.error(`${this.localName} is invalid and could not be rendered. Invalid fields: ${this.validityReport.join(" ")}`)}callAfterRenderHooks(){this.afterRender(),this.rendered||(this.afterInitialRender(),this.rendered=!0)}afterInitialRender(){}getRenderFunction(){const e=$` ${this._styleElement} `;return()=>{try{if(!this.shadowRoot)throw Error("AcornElement must have a shadow root");this.callBeforeRenderHooks(),0===this.validityReport.length?(this.invalidateStyle(),V($` ${e}${this.render()} `,this.shadowRoot),this.invalid=!1,this.callAfterRenderHooks()):this.invalid=!1}catch(e){console.error("Acorn render ERROR:",this.tagName,e)}}}redispatchEvent(e,t=!0){if(e.target===this)return;t&&e.preventDefault();const{bubbles:i,cancelable:n,composed:o,detail:r}=e,a={bubbles:i,cancelable:n,composed:o,detail:r},s=new CustomEvent(e.type,a);return e instanceof MouseEvent&&(s.clientX=e.clientX,s.clientY=e.clientY),this.dispatchEvent(s),s}mergeStyles(...e){return ge({},...e)}_getStyleFn(){return()=>{if(this._invalidStyle=!1,this.acornStyle&&this.isConnected){this.styled=!0;try{this.acornStyle.update(this)}catch(e){console.error("Acorn render style ERROR:",this.localName,e)}}}}};Ti.observedAttributes=[];var Ii=new class{constructor(){this._dialogStack=[]}append(e){this._dialogStack.push(e)}remove(e){this._dialogStack=this._dialogStack.filter(t=>t!==e)}clean(){this._dialogStack=this._dialogStack.filter(e=>e.isConnected&&e.matches("[open], :popover-open"))}getLayerIndex(e){return this._dialogStack.indexOf(e)}isDialogTopLayer(e){return this._dialogStack[this._dialogStack.length-1]===e}isDialogInert(e){const t=this._dialogStack.indexOf(e);if(-1!==t)return this._dialogStack.slice(t+1).some(e=>e.matches("*:modal"))}},Oi=new WeakMap,Di=new WeakMap,Ri=(e=>(e.Modal="modal",e.Modeless="modeless",e.Popover="popover",e))(Ri||{}),Fi=class{constructor(){this.isModal=!0}isShown(e){return e.open}open(e){e.removeAttribute("popover"),e.showModal()}close(e){e.close()}},Li=class extends Fi{constructor(){super(...arguments),this.isModal=!1}open(e){e.show()}close(e){e.removeAttribute("open")}},Ai=class{constructor(){this.isModal=!1}isShown(e){return e.matches(":popover-open")}open(e){e.setAttribute("popover","manual"),e.showPopover()}close(e){e.hidePopover()}},Mi=class extends Ti{constructor(){super(),this.closeOnClickOutside=!1,this.dialogReady=!1,this._hasFocus=!1,this.dialogElement=document.createElement("dialog"),this.dialogElement.classList.add("dialog"),ai.isSafari&&this.dialogElement.setAttribute("tabindex","-1"),this.addEventListener("requestAutoFocus",this._onAutoFocusRequest)}get label(){return this.dialogElement.getAttribute("aria-label")||""}set label(e){this.dialogElement.setAttribute("aria-label",e)}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this.updateReadyState()}disconnectedCallback(){var e,t;null==(e=this._unregisterListeners)||e.call(this),Ii.remove(this.dialogElement),null==(t=this._currentStrategy)||t.close(this.dialogElement),this.updateReadyState()}isShown(){var e;return(null==(e=this._currentStrategy)?void 0:e.isShown(this.dialogElement))||!1}hasFocus(){return this._hasFocus}show(e){if(!this.isShown()){switch(e){case"modal":this._currentStrategy=new Fi;break;case"popover":this._currentStrategy=new Ai;break;default:this._currentStrategy=new Li}Ii.append(this.dialogElement),Oi.set(this,Qe.getActiveElement()),this._unregisterListeners=this._registerListeners(),this._currentStrategy.open(this.dialogElement)}}close(){var e,t,i;const n=Qe.getActiveElement();null==(e=this._unregisterListeners)||e.call(this),null==(t=this._currentStrategy)||t.close(this.dialogElement),Ii.remove(this.dialogElement);let o=this._hasFocus?Oi.get(this):null;Oi.delete(this),null===o&&(o=n),o&&(null==(i=o.focus)||i.call(o,{preventScroll:!0})),this._hasFocus=!1}render(){return V(this.renderContent(),this.dialogElement),$`${this.dialogElement}`}resolveFocus(){const e=Di.get(this);(null==e?void 0:e.isConnected)&&e.focus(),this._hasFocus||this.dialogElement.focus()}updateReadyState(){this.dialogReady=this.dialogElement.isConnected&&this.rendered}_registerListeners(){return this._focusObserver=Qe.onFocusChange(this._onDocumentFocusChange),document.addEventListener("pointerdown",this._onWindowPointerDown),window.addEventListener("keydown",this._onWindowKeyDown),()=>{var e;null==(e=this._focusObserver)||e.call(this),document.removeEventListener("pointerdown",this._onWindowPointerDown),window.removeEventListener("keydown",this._onWindowKeyDown)}}_onWindowKeyDown(e){e.key!==ye.Escape||e.defaultPrevented||Ii.isDialogTopLayer(this.dialogElement)&&(e.preventDefault(),this.closeCallback())}_onDocumentFocusChange(e){var t;if(this._hasFocus=e.some(e=>e===this),this._hasFocus)return;if(null==(t=this._currentStrategy)?void 0:t.isModal)return;if(Ii.isDialogInert(this.dialogElement))return;this._popoverFocusLost.emit().defaultPrevented||this.closeCallback()}_onWindowPointerDown(e){var t;if(!this.closeOnClickOutside)return;const i=e.composedPath();if(i.includes(this)){if((null==(t=this._currentStrategy)?void 0:t.isModal)&&i[0]===this.dialogElement){const t=this.dialogElement.getBoundingClientRect();
1t.top<=e.clientY&&e.clientY<=t.top+t.height&&t.left<=e.clientX&&e.clientX<=t.left+t.width||(this._hasFocus=!1,this.closeCallback())}}else this._hasFocus=!1,this.closeCallback()}_onAutoFocusRequest(e){e.stopPropagation();const t=e.composedPath()[0];Di.set(this,t)}};Mi.MODE=Ri,De([ft({name:"popoverFocusLost",bubbles:!0,composed:!0})],Mi.prototype,"_popoverFocusLost",2),De([wi("rendered")],Mi.prototype,"updateReadyState",1),De([Pe()],Mi.prototype,"_onWindowKeyDown",1),De([Pe()],Mi.prototype,"_onDocumentFocusChange",1),De([Pe()],Mi.prototype,"_onWindowPointerDown",1),De([Pe()],Mi.prototype,"_onAutoFocusRequest",1);var Bi,Pi=/;$/,Ni=class e extends String{static from(t){if(t&&"object"==typeof t&&"viewText"in t)return new e(t);if("string"!=typeof t||!Pi.test(t))return new e("string"==typeof t?{viewText:t}:{viewText:""});try{const i=t.split(";").filter(e=>!!e).reduce((e,t)=>{var i;const n=t.split(":"),o=null==(i=n.shift())?void 0:i.trim(),r=n.join(":").trim();if(!o||!r)throw Error("Invalid format of data type provided as string object");return e[o]=r,e},{});return e.from(i)}catch(t){return new e({viewText:""})}}get viewText(){return this._value.viewText.toString()}get accessibilityText(){var e;return(null==(e=this._value.accessibilityText)?void 0:e.toString())||this._value.viewText}get accessibilityLabel(){var e;return(null==(e=this._value.accessibilityLabel)?void 0:e.toString())||""}get numericValue(){return Number(this._value.numericValue)}constructor(e){super(e.viewText),this._value=e}generateAccessibilityString(e){return this.accessibilityLabel&&!1!==(null==e?void 0:e.includeLabel)?`${this.accessibilityLabel}: ${this.accessibilityText}`:this.accessibilityText}},Hi=(Bi=class extends Te{constructor(e){if(super(e),e.type!==Ee)throw new Error("The `dataAttributes` directive must be used on an element, e.g. <acorn-component ${dataAttributes(object)}></acorn-component>")}update(e,[t,i]){return this._targetElement=e.element,this.render(t,i)}render(e,t={}){if(!this._targetElement)return E;const i=this._asDataAttributes(e,t),n=this._generateCacheKey(i);return n===this._prevCacheKey||(this._updateDataAttributes(i,this._prevAttributes),this._prevAttributes=i,this._prevCacheKey=n),E}_asDataAttributes(e,t){return Object.keys(e).filter(e=>!t.ignorePropsWithoutDataPrefix||this._hasValidDataPropertyOrAttributeName(e)).reduce((t,i)=>{const n=this._toAttributeName(i),o=this._toAttributeValue(e[i]);return{...t,[n]:o}},{})}_hasValidDataPropertyOrAttributeName(e){if(0!==e.indexOf("data"))return!1;const t=e[4];return"-"===t||t===t.toUpperCase()}_toAttributeName(e){const t=we(e);return this._hasValidDataPropertyOrAttributeName(t)?t:`data-${t}`}_toAttributeValue(e){switch(typeof e){case"string":return e;case"boolean":return!1===e?null:"";case"object":try{return JSON.stringify(e,null,2)}catch(e){return null}default:try{return e.toString()}catch(e){return null}}}_generateCacheKey(e){return Object.keys(e).map(t=>t+"="+e[t]).join(":")}_updateDataAttributes(e={},t={}){Object.keys(t).filter(t=>!(t in e)).forEach(e=>this._updateAttribute(e)),Object.entries(e).forEach(([e,t])=>this._updateAttribute(e,t))}_updateAttribute(e,t){this._targetElement&&("string"==typeof t?this._targetElement.setAttribute(e,t):this._targetElement.removeAttribute(e))}},(...e)=>({_$litDirective$:Bi,values:e})),zi=Object.freeze({Background:{system:"color-mix(in srgb, light-dark(#FDF6EE, #232323) calc(100% * var(--acorn-color-theme-has-theme, 0)), light-dark(#FFFFFF, #121212))"},ComponentSpecific:{BusyCloak:{scrim:"color-mix(in srgb, light-dark(#000000B3, #363636) calc(100% * var(--acorn-color-theme-has-theme, 0)), light-dark(#000000B3, #2E2E2E))"},Button:{primarySubtleHover:"color-mix(in srgb, light-dark(#512B2B14, #FFFFFF14) calc(100% * var(--acorn-color-theme-has-theme, 0)), light-dark(#DBF8ED, #FFFFFF14))",primarySubtleSurface:"color-mix(in srgb, light-dark(#DBF8ED, #07171A) calc(100% * var(--acorn-color-theme-has-theme, 0)), light-dark(#ECF9F3, #07171A))"},Chips:{pressed:"color-mix(in srgb, light-dark(#FDDF8C, #363636) calc(100% * var(--acorn-color-theme-has-theme, 0)), light-dark(#FDDF8C, #2E2E2E))"},DataTable:{RowGroup:{background:"color-mix(in srgb, light-dark(#FFFFFF, #2E2E2E) calc(100% * var(--acorn-color-theme-has-theme, 0)), light-dark(#FDF6EE, #232323))"}},FormFieldContainer:{background:"color-mix(in srgb, light-dark(#FFFFFF, #2E2E2E) calc(100% * var(--acorn-color-theme-has-theme, 0)), light-dark(#FDF6EE, #232323))"},HighlightBox:{surfaceLilac:"color-mix(in srgb, light-dark(#FFFFFF, #363636) calc(100% * var(--acorn-color-theme-has-theme, 0)), light-dark(#FBF3F7, #232323))",surfaceTurquoise:"color-mix(in srgb, light-dark(#FFFFFF, #363636) calc(100% * var(--acorn-color-theme-has-theme, 0)), light-dark(#ECF9F3, #232323))"},Jumbotron:{background:"color-mix(in srgb, #FFFFFF00 calc(100% * var(--acorn-color-theme-has-theme, 0)), light-dark(#FDF6EE, #232323))"},ProminentLink:{surface:"color-mix(in srgb, light-dark(#FFFFFF, #363636) calc(100% * var(--acorn-color-theme-has-theme, 0)), light-dark(#F5F5F5, #2E2E2E))"},Slider:{dots:"light-dark(#257886, #BBEAD9)",dotsDisabled:"light-dark(#4A4A4A61, #F
15F5F561)",dotsSelected:"light-dark(#DBF8ED, #07171A)",dotsSelectedDisabled:"light-dark(#4A4A4A61, #F5F5F561)",knob:"light-dark(#257886, #8ACDC3)",knobDisabled:"light-dark(#4A4A4A61, #F5F5F561)",track:"light-dark(#DBF8ED, #11373E)",trackDisabled:"light-dark(#D8D8D8, #2E2E2E)",trackSelected:"light-dark(#257886, #8ACDC3)",trackSelectedDisabled:"light-dark(#4A4A4A61, #F5F5F561)"},Stepper:{surface:"light-dark(#F5F5F5, #2E2E2E)"},TabGroup:{ScrollButton:{surface:"light-dark(#FFFFFF, #363636)"}},Tag:{Custom:{background:"#FF9100"},Keyword:{background:"#F8DBF5"},Warning:{text:"light-dark(#995700, #FFF1CD)"}},TextField:{surface:"color-mix(in srgb, light-dark(#FFFFFF, #232323) calc(100% * var(--acorn-color-theme-has-theme, 0)), light-dark(#FFFFFF, #121212))"},Wizard:{stepComplete:"light-dark(#BBEAD9, #8ACDC3)",track:"light-dark(#BBEAD9, #11373E)"}},Icon:{brand:"light-dark(#FB4F00, #FF5F00)",disabled:"light-dark(#4A4A4A61, #F5F5F561)",error:"light-dark(#C5131C, #FF7980)",interactive:"light-dark(#257886, #31A3AE)",medium:"color-mix(in srgb, light-dark(#512B2BC7, #F2EDEBC7) calc(100% * var(--acorn-color-theme-has-theme, 0)), light-dark(#512B2BC7, #F2EDEB8F))",negative:"light-dark(#A61E00, #FF8676)",positive:"light-dark(#4572C0, #8AB5FF)",regular:"light-dark(#512B2B, #F2EDEB)",regularStatic:"#512B2B",white:"light-dark(#FFFFFF, #000000)",whiteStatic:"#FFFFFF"},Line:{error:"light-dark(#C5131C, #FF7980)",interactive:"light-dark(#257886, #31A3AE)",Regular:{disabled:"light-dark(#BCBCBC, #4A4A4A)",high:"light-dark(#512B2B, #F2EDEB)",low:"light-dark(#512B2B29, #F2EDEB29)",medium:"light-dark(#512B2B8F, #F2EDEB8F)"},success:"light-dark(#457C0E, #A3DC77)"},Overlay:{active:"light-dark(#512B2B29, #FFFFFF29)",hover:"light-dark(#512B2B14, #FFFFFF14)",pressed:"light-dark(#512B2B29, #FFFFFF29)",scrim:"#00000033",selected:"light-dark(#512B2B1F, #F2EDEB1F)",tabFocus:"light-dark(#0000FF, #B6B6FB)"},Shadow:{default:"light-dark(#00000066, #FFFFFF66)"},Surface:{attention:"light-dark(#C5131C, #FF7980)",attentionContrastInverted:"light-dark(#F9DED3, #1F0304)",Brand:{high:"color-mix(in srgb, light-dark(#FDC92A, #272727) calc(100% * var(--acorn-color-theme-has-theme, 0)), light-dark(#FF5F00, #272727))",highStatic:"#FF5F00",low:"color-mix(in srgb, light-dark(#FFF1CD, #2C2C2C) calc(100% * var(--acorn-color-theme-has-theme, 0)), light-dark(#FFF1CD, #272727))",lower:"light-dark(#FDF6EE, #232323)",medium:"light-dark(#FDC92A, #FDDF8C)"},disabled:"color-mix(in srgb, light-dark(#D8D8D8, #383838) calc(100% * var(--acorn-color-theme-has-theme, 0)), light-dark(#D8D8D8, #2E2E2E))",discovery:"#6E0049",discoveryContrastInverted:"color-mix(in srgb, #1A0011 calc(100% * var(--acorn-color-theme-has-theme, 0)), light-dark(#FBF3F7, #1A0011))",discoveryInverted:"light-dark(#990066, #6E0049)",elevation:"color-mix(in srgb, light-dark(#FFFFFF, #2C2C2C) calc(100% * var(--acorn-color-theme-has-theme, 0)), light-dark(#FFFFFF, #272727))",errorContrast:"light-dark(#1F0304, #F9DED3)",errorContrastInverted:"light-dark(#F9DED3, #1F0304)",HighContrast:{high:"light-dark(#512B2B, #FFFFFF)",highStatic:"#512B2B"},info:"light-dark(#4572C0, #8AB5FF)",infoContrastInverted:"light-dark(#E8EFF9, #001B24)",infoInverted:"light-dark(#8AB5FF, #4572C0)",Interactive:{active:"light-dark(#257886, #31A3AE)",highContrast:"light-dark(#D1C6C4, #F2EDEB)",lower:"color-mix(in srgb, light-dark(#ECF9F3, #11373E) calc(100% * var(--acorn-color-theme-has-theme, 0)), light-dark(#ECF9F3, #07171A))"},interactive:"light-dark(#257886, #31A3AE)",interactiveContrastInverted:"light-dark(#DBF8ED, #11373E)",interactiveStatic:"#257886",Lilac:{high:"light-dark(#990066, #C5569A)",highStatic:"#6E0049",low:"light-dark(#FFECFF, #2C2C2C)",lower:"light-dark(#FBF3F7, #232323)",mediumStatic:"#C5569A"},negative:"light-dark(#A61E00, #FF8676)",negativeContrastInverted:"light-dark(#F9DED3, #1F0600)",neutral:"light-dark(#676767, #D8D8D8)",neutralContrast:"light-dark(#1C1C1C, #F5F5F5)",neutralContrastInverted:"color-mix(in srgb, light-dark(#F5F5F5, #333333) calc(100% * var(--acorn-color-theme-has-theme, 0)), light-dark(#F5F5F5, #232323))",neutralInverted:"light-dark(#D8D8D8, #67676
17)",positive:"light-dark(#457C0E, #A3DC77)",positiveContrastInverted:"light-dark(#E8EFF9, #001B24)",success:"light-dark(#457C0E, #A3DC77)",successContrastInverted:"light-dark(#F2F7EB, #101F05)",system:"light-dark(#FFFFFF, #FFFFFF00)",transparent:"#FFFFFF00",Turquoise:{high:"light-dark(#257886, #31A3AE)",highStatic:"#257886",low:"light-dark(#DBF8ED, #2C2C2C)",lower:"light-dark(#ECF9F3, #232323)",mediumStatic:"#31A3AE"},warning:"light-dark(#FDC92A, #FDDF8C)",warningContrastInverted:"light-dark(#FFF1CD, #1F1805)",warningInverted:"light-dark(#FDDF8C, #1F1805)"},Text:{attention:"light-dark(#C5131C, #FF7980)",brand:"#FB4F00",disabled:"light-dark(#4A4A4A61, #F5F5F561)",error:"light-dark(#C5131C, #FF7980)",info:"light-dark(#1246A1, #8AB5FF)",interactive:"light-dark(#257886, #31A3AE)",negative:"light-dark(#A61E00, #FF8676)",neutral:"light-dark(#676767, #D8D8D8)",neutralContrast:"light-dark(#1C1C1C, #F5F5F5)",positive:"light-dark(#457C0E, #A3DC77)",Regular:{high:"light-dark(#512B2B, #F2EDEB)",highInverted:"light-dark(#F2EDEB, #512B2B)",highStatic:"#512B2B",medium:"light-dark(#512B2BC7, #F2EDEBC7)"},success:"light-dark(#457C0E, #A3DC77)",warning:"light-dark(#995700, #FFF1CD)",white:"light-dark(#FFFFFF, #512B2B)",whiteStatic:"#FFFFFF"}}),Wi=Object.freeze({Background:{System:{dark:"#121212",light:"#FFFFFF"}},DataVisualisation:{categorical1:"#FB4F00",categorical2:"#FDC92A",categorical3:"#990066",categorical4:"#D28AC5",categorical5:"#31A3AE",categorical6:"#8ACDC3",categorical7:"#FF9100",categorical8:"#C5569A"},Feedback:{Attention:{dark:"#C5131C",darker:"#1F0304",light:"#FF7980",lighter:"#F9DED3"},Discovery:{dark:"#6E0049",darker:"#1A0011",light:"#990066",lighter:"#FBF3F7"},Error:{dark:"#C5131C",darker:"#1F0304",light:"#FF7980",lighter:"#F9DED3"},Info:{dark:"#4572C0",darker:"#1246A1",darkest:"#001B24",light:"#8AB5FF",lighter:"#E8EFF9"},Negative:{dark:"#A61E00",darker:"#1F0600",light:"#FF8676",lighter:"#F9DED3"},Neutral:{dark:"#676767",darker:"#1C1C1C",light:"#D8D8D8",lighter:"#F5F5F5"},Positive:{dark:"#457C0E",darker:"#101F05",light:"#A3DC77",lighter:"#F2F7EB"},Success:{dark:"#457C0E",darker:"#101F05",light:"#A3DC77",lighter:"#F2F7EB"},Unread:{dark:"#FB4F00",darker:"#1F1805",light:"#FF5F00",lighter:"#FDF6EE"},Warning:{dark:"#FDC92A",darker:"#1F1805",light:"#FDDF8C",lighter:"#FDF6EE"}},Functionality:{dark:"#512B2B",darker:"#291313",darkest:"#1A0C0C",light:"#917877",lighter:"#D1C6C4",lightest:"#F2EDEB"},Icon:{Brand:{dark:"#FB4F00",light:"#FF5F00"},Disabled:{dark:"#4A4A4A61",light:"#F5F5F561"},Error:{dark:"#C5131C",light:"#FF7980"},Interactive:{dark:"#257886",light:"#31A3AE"},Misc:{black:"#000000",white:"#FFFFFF"},Regular:{dark:"#512B2B",light:"#F2EDEB"}},Interactive:{Active:{dark:"#257886",darker:"#11373E",darkest:"#07171A",light:"#31A3AE",lighter:"#DBF8ED",lightest:"#ECF9F3"},Brand:{dark:"#FF5F00",darker:"#FB4F00",darkest:"#995700",light:"#FDC92A",lighter:"#FFF1CD",lightest:"#FDF6EE"},HighContrast:{dark:"#512B2B",darker:"#291313",light:"#D1C6C4",lighter:"#F2EDEB"},Inactive:{dark:"#676767",darker:"#2E2E2E",light:"#D8D8D8",lighter:"#F5F5F5"}},Line:{Attention:{dark:"#C5131C",light:"#FF7980"},Disabled:{dark:"#4A4A4A",darker:"#1C1C1C",light:"#BCBCBC",lighter:"#F5F5F5"},Error:{dark:"#C5131C",light:"#FF7980"},Focus:{dark:"#257886",light:"#31A3AE"},Interactive:{dark:"#257886",light:"#31A3AE"},Regular:{dark:"#512B2B29",darker:"#512B2B8F",darkest:"#512B2B",light:"#F2EDEB29",lighter:"#F2EDEB8F",lightest:"#F2EDEB"}},Overlay:{Active:{darkMode:"#FFFFFF29",elevatedDarkMode:"#FFFFFF29",elevatedLightMode:"#512B2B29",lightMode:"#512B2B29"},Hover:{darkMode:"#FFFFFF14",elevatedDarkMode:"#FFFFFF14",elevatedLightMode:"#512B2B14",lightMode:"#512B2B14"},Pressed:{darkMode:"#FFFFFF29",elevatedDarkMode:"#FFFFFF29",elevatedLightMode:"#512B2B29",lightMode:"#512B2B29"},scrim:"#00000033",scrimDark:"#000000B3",Selected:{dark:"#512B2B1F",light:"#F2EDEB1F"},transparent:"#FFFFFF00"},Shadow:{darkMode:"#FFFFFF66",lightMode:"#00000066"},Surface:{bark10:"#F2EDEB",bark20:"#D1C6C4",bark30:"#B19F9E",bark40:"#917877",bark50:"#715151",bark60:"#512B2B",bark70:"#381A1A",bark80:"#291313",bark90:"#1A0C0C",elevation0dp:"#121212",elevation12dp:"#333333",elevation16dp:"#363636",elevation1dp:"#1E1E1E",elevation24dp:"#383838",elevation2dp:"#232323",elevation3dp:"#252525",elevation4dp:"#272727",elevation6dp:"#2C2C2C",elevation8dp:"#2E2E2E",lilac10:"#FBF3F7",lilac20:"#FFECFF",lilac30:"#F8DBF5",lilac40:"#D28AC5",lilac50:"#C5569A",lilac60:"#990066",lilac70:"#6E0049",lilac80:"#44002D",lilac90:"#1A0011",Misc:{black:"#000000",white:"#FFFFFF"},orange10:"#FDF6EE",orange20:"#FFF1CD",orange30:"#FDC92A",orange40:"#FF9100",orange50:"#FF5F00",orange60:"#FB4F00",orange70:"#995700",orange80:"#735B13",orange90:"#1F1805",SystemBar:{dark:"#252525",light:"#FDF6EE"},turquoise10:"#ECF9F3",turquoise20:"#DBF8ED",turquoise30:"#BBEAD9",turquoise40:"#8ACDC3",turquoise50:"#31A3AE",turquoise60:"#25788
16",turquoise70:"#1B5762",turquoise80:"#11373E",turquoise90:"#07171A"},Text:{Brand:{dark:"#FB4F00",light:"#FB4F00"},Cursor:{dark:"#257886",light:"#31A3AE"},Disabled:{dark:"#4A4A4A61",light:"#F5F5F561"},Error:{dark:"#C5131C",light:"#FF7980"},Focus:{dark:"#257886",light:"#31A3AE"},Interactive:{dark:"#257886",light:"#31A3AE"},Misc:{black:"#000000",white:"#FFFFFF"},Negative:{dark:"#A61E00",light:"#FF8676"},Placeholder:{dark:"#676767",light:"#838383"},Positive:{dark:"#457C0E",light:"#A3DC77"},Regular:{dark:"#512B2BB0",darker:"#512B2BC7",darkest:"#512B2B",light:"#F2EDEB80",lighter:"#F2EDEBC7",lightest:"#F2EDEB"}}}),Vi=(e=>(e.HasTheme="--acorn-color-theme-has-theme",e.HasParentTheme="--acorn-color-theme-has-parent-theme",e))(Vi||{}),ji=(e=>(e.True="1",e.False="0",e))(ji||{}),Gi=Object.freeze({xxSmall:"4px",xSmall:"8px",small:"12px",medium:"16px",large:"24px",xLarge:"32px",xxLarge:"48px",full:"50%"}),qi=zi.Overlay.tabFocus,Ui="--acorn-outline-border-color",Ki=`${qi} solid 2px`;function Yi(){return{outline:`var(--acorn-outline-var, ${Ki})`,outlineColor:`var(${Ui}, ${qi})`,outlineOffset:"2px"}}var Xi=class{constructor(){this.mixin=(e={})=>(this._initialized||this._init(),{"&:focus":{...Yi(),...e}}),this.hostMixin=(e={})=>(this._initialized||this._init(),{"&(:focus)":{...Yi(),...e}})}_init(){const{outline:e,outlineOffset:t}=Yi();this._outlineRule=`:focus {\n            outline: ${e};\n            outline-offset: ${t};\n        }`,"undefined"!=typeof document&&(this._styleElement=document.createElement("style"),this._styleElement.type="text/css",document.head.appendChild(this._styleElement),fe.onNavigationChange(this._onNavigationModeChange.bind(this)),this._initialized=!0)}_onNavigationModeChange(e){if("undefined"==typeof document)return;const t=this._styleElement.sheet;e===_e.Tab?(t.insertRule(this._outlineRule,0),document.documentElement.style.setProperty("--acorn-outline-var",Ki)):e===_e.Mouse&&(document.documentElement.style.setProperty("--acorn-outline-var","0 none"),t.cssRules[0]&&t.deleteRule(0))}};var Qi=(new Xi).mixin,Zi=(new Xi).hostMixin,Ji=Object.freeze({SwedbankHeadline:"Swedbank Headline",Roboto:"Roboto"}),en=Object.freeze({12:12,14:14,16:16,18:18,19:19,20:20,24:24,32:32,40:40}),tn=Object.freeze({Black:"Black",Bold:"Bold",Regular:"Regular"}),nn=Object.freeze({18:18,20:20,22:22,24:24,28:28,32:32,40:40,48:48}),on=Object.freeze({Underline:"Underline"}),rn=Object.freeze({fontFamily:Ji.Roboto,fontWeight:tn.Regular,lineHeight:nn[22],fontSize:en[14]}),an=Object.freeze({fontFamily:Ji.Roboto,fontWeight:tn.Bold,lineHeight:nn[22],fontSize:en[14]}),sn=Object.freeze({fontFamily:Ji.Roboto,fontWeight:tn.Regular,lineHeight:nn[20],fontSize:en[12]}),ln=Object.freeze({fontFamily:Ji.SwedbankHeadline,fontWeight:tn.Bold,lineHeight:nn[40],fontSize:en[19]}),cn=(Object.freeze({fontFamily:Ji.Roboto,fontWeight:tn.Bold,lineHeight:nn[22],fontSize:en[14]}),Object.freeze({desktop:{fontFamily:Ji.SwedbankHeadline,fontWeight:tn.Black,lineHeight:nn[48],fontSize:en[40]},mobile:{fontFamily:Ji.SwedbankHeadline,fontWeight:tn.Black,lineHeight:nn[32],fontSize:en[24]}}),Object.freeze({desktop:{fontFamily:Ji.SwedbankHeadline,fontWeight:tn.Black,lineHeight:nn[32],fontSize:en[24]},mobile:{fontFamily:Ji.SwedbankHeadline,fontWeight:tn.Black,lineHeight:nn[28],fontSize:en[20]}}),Object.freeze({desktop:{fontFamily:Ji.SwedbankHeadline,fontWeight:tn.Bold,lineHeight:nn[28],fontSize:en[20]},mobile:{fontFamily:Ji.SwedbankHeadline,fontWeight:tn.Bold,lineHeight:nn[24],fontSize:en[18]}}),Object.freeze({fontFamily:Ji.SwedbankHeadline,fontWeight:tn.Bold,lineHeight:nn[22],fontSize:en[14]}),Object.freeze({fontFamily:Ji.Roboto,fontWeight:tn.Regular,lineHeight:nn[32],fontSize:en[20]})),dn=Object.freeze({fontFamily:Ji.Roboto,fontWeight:tn.Regular,lineHeight:nn[24],fontSize:en[16]}),hn=(Object.freeze({fontFamily:Ji.Roboto,fontWeight:tn.Regular,lineHeight:nn[18],fontSize:en[14]}),Object.freeze({desktop:{fontFamily:Ji.SwedbankHeadline,fontWeight:tn.Black,lineHeight:nn[40],fontSize:en[32]},mobile:{fontFamily:Ji.SwedbankHeadline,fontWeight:tn.Black,lineHeight:nn[32],fontSize:en[24]}})),pn=Object.freeze({fontFamily:Ji.SwedbankHeadline,fontWeight:tn.Bold,lineHeight:nn[24],fontSize:en[18]}),un=(Object.freeze({fontFamily:Ji.Roboto,fontWeight:tn.Regular,lineHeight:nn[22],fontSize:en[14],textDecoration:on.Underline}),Object.freeze({fontFamily:Ji.Roboto,fontWeight:tn.Bold,fontSize:en[16],lineHeight:nn[28]})),gn=(e=>(e.ExtraSmall="480px",e.Small="768px",e.Medium="992px",e.Large="1260px",e.ExtraLarge="1480px",e))(gn||{}),mn=(e=>(e[e.ExtraSmall=480]="ExtraSmall",e[e.Small=768]="Small",e[e.Medium=992]="Medium",e[e.Large=1260]="Large",e[e.ExtraLarge=1480]="ExtraLarge",e))(mn||{}),bn=(e=>(e[e.Bottom=-1]="Bottom",e[e.Top=10]="Top",e[e.Overlay=100]="Overlay",e[e.Alert=1e3]="Alert",e))(bn||{}),vn=(e=>(e.ExtraSmall="4px",e.Small="6px",e.Medium="12px",e.Large="24px",e.ExtraLarge="32px",e))(vn||{}),yn=(e=>(e.Medium="1200px",e.Wide="1560px",e))(yn||{}),_n={xs:"480px",sm:"768px",md:"992px",lg:"1260px",xl:"1480px"};function fn(e){const t={};return Object.keys(e).map(i=>{const n=`@media only screen and (min-width: ${_n[i]})`;t[n]=e[i]}),t}var xn="--acorn-font-scale",wn="750px",Cn=(e=>(e.Base="Roboto, Arial, Helvetica",e.Headline='"Swedbank Headline", sans-serif',e))(Cn||{}),Sn=(e=>(e.Narrow="1.2",e.Base="1.4",e))(Sn||{}),$n=(e=>(e.Regular="400",e.Medium="600",e.Bold="700",e.Black="900",e))($n||{});function kn(e){return`calc(${e/16}rem * var(${xn}, 1))`}function En(e,t){return""+t/e}function Tn(e,t={}){const i={fontSizeUnit:"default",lineHeightUnit:"default",...t},n=function(e){const t=Object.keys(e);return t.filter(e=>"desktop"===e||"mobile"===e)}(e).length>0;return n?function(e,t){const i=e.mobile,n=In(i,t),o=Object.keys(e).reduce((n,o)=>{const r=e[o];if(r===i)return n;const a=function(e){if("desktop"===e)return"lg";if("mobile"===e)return;throw Error(`Given breakpoint (${e}) is not supported`)}(o);return a?{...n,[a]:In(r,t)}:n},{});Object.keys(o)&&Object.assign(n,fn(o));return n}(e,i):In(e,i)}function In(e,t){return Object.keys(e).reduce((i,n)=>{const o=function(e,t,i){switch(e){case"fontFamily":return function(e){if(!e)return;const t=e.split(",").map(e=>e.trim());let i=[];-1!==t.indexOf(Ji.SwedbankHeadline)?i=["sans-serif"]:-1!==t.indexOf(Ji.Roboto)&&(i=["Arial","Helvetica"]);return i.filter(e=>
1-1===t.indexOf(e)).forEach(e=>t.push(e)),t.map(On).join(", ")}(t.fontFamily);case"fontSize":return function(e,t){if(!e)return;return"px"===t?`${e}px`:kn(e)}(t.fontSize,i.lineHeightUnit);case"fontWeight":return function(e){if(!e)return;switch(e){case"Black":return"900";case"Bold":return"700";default:return"400"}}(t.fontWeight);case"lineHeight":return function(e,t,i){if(!e)return;if("default"===i&&t)return En(t,e);return`${e}px`}(t.lineHeight,t.fontSize,i.lineHeightUnit);default:return}}(n,e,t);return o?{...i,[n]:o}:i},{})}function On(e){return-1!==e.indexOf(" ")&&-1===e.indexOf('"')?`"${e}"`:e}var Dn=(e=>(e[e.ExtraSmall=8]="ExtraSmall",e[e.Small=16]="Small",e[e.Medium=24]="Medium",e[e.Large=32]="Large",e[e.ExtraLarge=40]="ExtraLarge",e))(Dn||{});function Rn(e,t){const i=`calc(${e}px * var(--acorn-block-margin-top-eq, 0))`;if(!t)return i;return`max(${i}, ${`calc(${t} * var(--acorn-block-margin-top-reversed-eq, 1))`})`}function Fn(e,t){const i=`calc(${e}px * var(--acorn-block-margin-top-eq, 0))`;if(!t)return i;return`max(${i}
1, ${`calc(${t} * var(--acorn-block-margin-bottom-reversed-eq, 1))`})`}function Ln(e,t){return{marginTop:Rn(e,t),marginBottom:Fn(e,t),marginLeft:0,marginRight:0}}function An(){return{maxWidth:wn,fontFamily:'"Swedbank Headline", sans-serif',fontWeight:"900",fontSize:kn(24),color:zi.Text.brand,lineHeight:En(24,32),marginTop:Rn(48),marginBottom:Fn(16),...fn({sm:{fontSize:kn(32),lineHeight:En(32,40)},md:{fontSize:kn(40),lineHeight:En(40,48)}})}}function Mn(){return{maxWidth:wn,fontFamily:'"Swedbank Headline", sans-serif',fontWeight:"900",fontSize:kn(20),color:zi.Text.brand,lineHeight:En(20,28),margin:"0",marginTop:Rn(48),marginBottom:Fn(16),...fn({md:{fontSize:kn(24),lineHeight:En(24,32)}})}}function Bn(){return{maxWidth:wn,fontFamily:'"Swedbank Headline", sans-serif',fontWeight:"700",fontSize:kn(18),lineHeight:En(18,24),margin:"0",marginTop:Rn(32),marginBottom:Fn(16),...fn({md:{fontSize:kn(20),lineHeight:En(20,28)}})}}var Pn=(e=>(e[e.Big=24]="Big",e[e.Base=22]="Base",e[e.Small=20]="Small",e))(Pn||{});function Nn(){return{fontSize:kn(14),lineHeight:En(14,22)}}function Hn(){return{fontSize:kn(12),lineHeight:En(12,20),color:zi.Text.Regular.high}}function zn(){return{fontFamily:"Roboto, Arial, Helvetica",color:zi.Text.Regular.high,textAlign:"left",whiteSpace:"normal",...Nn()}}function Wn(e){return{...Tn(rn,e)}}function Vn(e){return{...Tn(an,e)}}function jn(e){return{...Tn(sn,e)}}function Gn(e){return{...Tn(ln,e)}}function qn(e){return{...Tn(dn,e)}}function Un(e){return{...Tn(hn,e)}}function Kn(e){return{...Tn(pn,e)}}function Yn(e){return{...Tn(un,e)}}var Xn="500px",Qn="48px",Zn="16px",Jn="24px",eo="2px",to=(e=>(e.Invalid="invalid",e.Focused="formControlFocused",e.Disabled="disabled",e))(to||{});function io(e){return"disabled"===e?zi.Text.disabled:zi.Text.Regular.medium}function no(e){return zi.ComponentSpecific.TextField.surface}function oo(e={},t){return!1!==e.truncate?{"&::placeholder":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:e=>io(t(e))}}:{"&::placeholder":{color:e=>io(t(e))}}}function ro(e=()=>{}){return{...Wn(),color:t=>{return"invalid"===(i=e(t))?zi.Text.error:"disabled"===i?zi.Text.disabled:zi.Text.Regular.high;var i},marginTop:"0.3em"}}function ao(e){return{borderColor:t=>"disabled"===e(t)?zi.Line.Regular.disabled:zi.Line.Regular.medium,borderStyle:"solid",borderWidth:`1px 1px ${eo} 1px`,borderBottomColor:t=>{return"invalid"===(i=e(t))?zi.Line.error:"formControlFocused"===i?zi.Line.interactive:"disabled"===i?zi.Line.Regular.disabled:zi.Line.Regular.medium;var i},borderRadius:0}}function so(){return{...qn(),color:zi.Text.Regular.high,outline:"0",caretColor:()=>be()?"transparent":void 0}}var lo=new class{constructor(){this._printMode=!1,"undefined"!=typeof document&&(this._styleElement=document.createElement("style"),this._styleElement.type="text/css",this._styleElement.setAttribute("id","acorn-style-layout"),this._styleElement.setAttribute("data-acorn-style",""),document.head.insertBefore(this._styleElement,document.head.firstChild)),this.responsiveValue=e=>{this._initialized||this._init();const t=[e.base];return t[1]=e.xs||t[0],t[2]=e.sm||t[1],t[3]=e.md||t[2],t[4]=e.lg||t[3],t[5]=e.xl||t[4],this._responsiveValueNative(t)}}activeBreakpoint(){return this._initialized||this._init(),this._activeBreakpoint}_init(){this._customProperties=new Map;this._mediaQueries=["480px","768px","992px","1260px","1480px"].map(e=>{const t=window.matchMedia(`(min-width: ${e})`);return t.matches&&(this._activeBreakpoint=e),t.addEventListener("change",()=>{this._activeBreakpoint=e,this._invalidate()}),t}),this._invalidate(),this._initialized=!0}_updateQueries(){if(this._breakpointIndex=0,this._printMode)this._breakpointIndex=this._mediaQueries.length;else for(let e=this._mediaQueries.length-1;e>=0;e--)if(this._mediaQueries[e].matches){this._breakpointIndex=e+1;break}const e=this._styleElement.sheet,t=`:root {\n            ${[...this._customProperties.keys()].map(e=>`${this._customProperties.get(e).variableName}: ${this._customProperties.get(e).values[this._breakpointIndex]};`).join("\n")}\n        }`;e.cssRules.length>0&&e.deleteRule(0),e.insertRule(t)}_responsiveValueNative(e){const t=e.join();if(!this._customProperties.has(t)){const i=`--acorn-mql-var-${this._customProperties.size}`;this._customProperties.set(t,{variableName:i,values:e}),this._invalidate()}return`var(${this._customProperties.get(t).variableName})`}
1_invalidate(){const e=window.matchMedia("print").matches;e&&this._printMode||(e?(this._printMode=!0,this._updateQueries()):(this._printMode=!1,cancelAnimationFrame(this._requestUpdateId),this._requestUpdateId=window.requestAnimationFrame(this._updateQueries.bind(this))))}},co=lo.responsiveValue.bind(lo),ho=(lo.activeBreakpoint.bind(lo),"var(--acorn-page-margin, 24px)"),po="var(--acorn-page-col-gutter, 24px)",uo="var(--acorn-page-row-gutter, 24px)",go="var(--acorn-section-padding, 24px)",mo="var(--acorn-section-col-gutter, 24px)",bo="var(--acorn-section-row-gutter, 24px)";function vo(e,t=1){if(1===t)return e;const i=parseInt(e),n=e.replace(i.toString(),"")||"px";return i*t+n.toString()}function yo(e,t=zi.Icon.regular){const i={display:"block",width:`${e}px`,height:`${e}px`,minWidth:`${e}px`,minHeight:`${e}px`,backgroundImage:_o(e,t),animation:"spin 0.75s linear infinite","@keyframes spin":"100% { transform: rotate(360deg); }"};return be()&&(delete i.animation,delete i["@keyframes spin"]),i}function _o(e,t=zi.Icon.regular){const i=t=>{const i=`\n            <svg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='${e}px' height='${e}px' viewBox='0 0 60 60' enable-background='new 0 0 60 60'>\n                <g>\n                    <g opacity='0.3'>\n                        <path fill='${t}' d='M30,59.5C13.7,59.5,0.5,46.3,0.5,30S13.7,0.5,30,0.5S59.5,13.7,59.5,30S46.3,59.5,30,59.5z M30,4.5C15.9,4.5,4.5,15.9,4.5,30S15.9,55.5,30,55.5S55.5,44.1,55.5,30S44.1,4.5,30,4.5z'/>\n                    </g>\n                    <path fill='${t}' d='M55.5,30h4C59.5,13.7,46.3,0.5,30,0.5v4C44.1,4.5,55.5,15.9,55.5,30z'/>\n                </g>\n            </svg>\n            `;return"url('data:image/svg+xml;base64,"+window.btoa(i)+"')"};return"function"==typeof t?(...e)=>i(t(...e)):i(t)}var fo=(e=>(e.HasTheme="--acorn-color-theme-has-theme",e.HasParentTheme="--acorn-color-theme-has-parent-theme",e))(fo||{}),xo=(e=>(e.True="1",e.False="0",e))(xo||{}),wo="var(--acorn-color-theme-has-theme, 0)";function Co(e=zi.Text.Regular.high){return{fontFamily:'"Swedbank Headline", sans-serif',fontWeight:"700",fontSize:kn(20
1),lineHeight:"1.2",color:e}}function So(e=zi.Text.Regular.high){return{fontFamily:"Roboto, Arial, Helvetica",fontWeight:"400",fontSize:kn(14),...fn({xs:{fontSize:kn(16)},sm:{fontSize:kn(14)},md:{fontSize:kn(16)}}),lineHeight:"1.2",color:e,"@media print":{fontSize:kn(16)}}}function $o(e=zi.Text.Regular.high){return{fontFamily:"Roboto, Arial, Helvetica",fontWeight:"400",fontSize:kn(14),lineHeight:"1.2",color:e}}function ko(e=zi.Text.Regular.high){return{fontFamily:"Roboto, Arial, Helvetica",fontSize:kn(12),fontWeight:"400",lineHeight:"1.2",color:e}}function Eo(e=zi.Text.Regular.high){return{fontFamily:"Roboto, Arial, Helvetica",fontSize:kn(14),fontWeight:"400",lineHeight:"1.4",color:e}}function To(e=zi.Text.Regular.high){return{fontFamily:"Roboto, Arial, Helvetica",fontSize:kn(14),fontWeight:"700",lineHeight:"1.4",color:e}}function Io(e=zi.Text.Regular.high){return{fontFamily:"Roboto, Arial, Helvetica",fontSize:kn(12),fontWeight:"400",lineHeight:"1.4",color:e}}var Oo=Object.defineProperty,Do=Object.getOwnPropertyDescriptor,Ro={$host:{display:"flow-root"},outerWrapper:{marginTop:"1000px",marginBottom:"1000px"},innerWrapper:{marginTop:"-1000px",marginBottom:"-1000px"}},Fo=class extends Ti{render(){return $`<div class="${this.classes.outerWrapper}">
2            <div class="${this.classes.innerWrapper}"><slot></slot></div>
3        </div>`}getStyle(){return Ro}};Fo=((e,t,i,n)=>{for(var o,r=n>1?void 0:n?Do(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Oo(t,i,r),r})([_t({tag:"acorn-internal-enclosed-margins"})],Fo);var Lo=Object.defineProperty,Ao=Object.getOwnPropertyDescriptor,Mo=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Ao(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Lo(t,i,r),r},Bo=(e=>(e.Warning="warning",e.Info="info",e.Inactive="inactive",e.Attention="attention",e.Default="attention",e))(Bo||{}),Po=(e=>(e.Small="small",e.Medium="medium",e.Large="large",e.Default="medium",e))(Po||{}),No=(e=>(e.Left="left",e.Right="right",e.TopRight="top-right",e.None="none",e))(No||{}),Ho=(e=>(e.BackgroundColor="--acorn-badge-bg-color",e.TextColor="--acorn-badge-text-color",e))(Ho||{}),zo=Ve.createTranslation({Items:{sv:"objekt",en:"items"},Item:{sv:"objekt",en:"item"},Warning:{sv:"viktigt",en:"urgent"},Inactive:{sv:"inaktiv",en:"inactive"}}),Wo=new Map([["attention",{backgroundColor:zi.Surface.warning,color:zi.Text.Regular.highStatic}],["info",{backgroundColor:zi.Surface.info,color:zi.Text.white}],["inactive",{backgroundColor:zi.Surface.neutral,color:zi.Text.Regular.highInverted}],["warning",{backgroundColor:zi.Surface.attention,color:zi.Text.white}]]),Vo=new Map([["small",{fontSize:"12px",fontFamily:"Roboto",fontWeight:"700",lineHeight:"20px",padding:`${Go(5,12)}`,minWidth:"20px"}],["medium",{fontSize:"12px",fontFamily:"Roboto",fontWeight:"700",lineHeight:"24px",padding:`${Go(6,12)}`,minWidth:"24px"}],["large",{fontSize:"19px",fontFamily:"Roboto",fontWeight:"700",lineHeight:"32px",padding:`${Go(8,19)}`,minWidth:"32px"}]]),jo={$host:{display:"inline-block !important",lineHeight:"100%",verticalAlign:e=>"top-right"===e.align?"inherit":"middle"},wrapper:{position:"relative",display:"inline-block",verticalAlign:"baseline"},content:{verticalAlign:"middle"},badge:{display:"inline-block",textAlign:"center",verticalAlign:"middle",borderRadius:"1em",borderBox:"content-box",boxSizing:"border-box",padding:e=>{var t;return null==(t=Vo.get(e.size))?void 0:t.padding},backgroundColor:e=>{var t;return`var(--acorn-badge-bg-color, ${null==(t=Wo.get(e.severity))?void 0:t.backgroundColor})`},color:e=>{var t;return`var(--acorn-badge-text-color, ${null==(t=Wo.get(e.severity))?void 0:t.color})`},fontFamily:e=>{var t;return null==(t=Vo.get(e.size))?void 0:t.fontFamily},fontSize:e=>{var t;return null==(t=Vo.get(e.size))?void 0:t.fontSize},fontWeight:e=>{var t;return e.size?null==(t=Vo.get(e.size))?void 0:t.fontWeight:void 0},minWidth:e=>{var t;return e.size?null==(t=Vo.get(e.size))?void 0:t.minWidth:0},lineHeight:e=>{var t;return e.size?null==(t=Vo.get(e.size))?void 0:t.lineHeight:0},marginLeft:e=>"right"===e.align?"8px":"0",marginRight:e=>
3"left"===e.align?"8px":"0",position:e=>"top-right"===e.align?"absolute":"static",top:e=>{if(e.label)switch(e.size){case"small":return"-20px";case"large":return"-32px";default:return"-24px"}return"-6px"},right:e=>{if(e.label)switch(e.size){case"small":return 20*-(e.number&&e.number>9?1.8:1)+"px";case"large":return 32*-(e.number&&e.number>9?1.8:1)+"px";default:return 24*-(e.number&&e.number>9?1.8:1)+"px"}return"-6px"}},screenReaderOnly:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"}};function Go(e,t){return`0 ${e/t}em`}var qo="badge",Uo=class extends Ti{constructor(){super(...arguments),this.severity="attention",this.size="medium",this._truncateThreshold=99}get _badgeDescription(){let e="";"warning"===this.severity?e=zo.Warning:"inactive"===this.severity&&(e=zo.Inactive);const t=this.accessibilityLabel||this.label||e+" "+this._pluralize(this.number,zo.Item,zo.Items);return`${this.number} ${t.trim()}`}get _badgeFormattedValue(){return void 0===this.number||isNaN(this.number)?"":this.number>this._truncateThreshold?`${this._truncateThreshold}+`:`${this.number}`}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this.align=this.align||"left",this.size=this.size||"medium"}getStyle(){return jo}render(){var e;const t=(null==(e=this._defaultSlot)?void 0:e.isFilled())?this._defaultSlot:this.label;if(isNaN(this.number||NaN))return $`
4                <span class="${this.classes.wrapper}">
5                    <span class="${this.classes.content}">${t}</span>
6                </span>
7            `;const i=$`
8            <span class="${this.classes.badge}" aria-hidden="true">${this._badgeFormattedValue}</span>
9            <span class="${this.classes.screenReaderOnly}" id="${qo}"> ${this._badgeDescription} </span>
10        `,n="right"===this.align||"top-right"===this.align;return $`
11            <span class="${this.classes.wrapper}">
12                ${n?void 0:i}
13                <span class="${this.classes.content}" aria-describedby="${qo}">${t}</span>
14                ${n?i:void 0}
15            </span>
16        `}beforeRender(){super.beforeRender();-1===Object.values(Bo).indexOf(this.severity)&&(this.severity="attention")}_pluralize(e=0,t,i){return 1===e?t:i}};Mo([gt(),zt({type:Bo})],Uo.prototype,"severity",2),Mo([gt(),zt({type:Number})],Uo.prototype,"number",2),Mo([gt(),zt({type:No})],Uo.prototype,"align",2),Mo([gt(),zt({type:Po})],Uo.prototype,"size",2),Mo([gt()],Uo.prototype,"label",2),Mo([gt()],Uo.prototype,"accessibilityLabel",2),Mo([ri("default")],Uo.prototype,"_defaultSlot",2),Uo=Mo([_t({tag:"acorn-badge"})],Uo);var Ko=(e=>(e.Warning="warning",e.Info="info",e.Inactive="inactive",e.Attention="attention",e.Default="attention",e))(Ko||{}),Yo=(e=>(e.Small="small",e.Medium="medium",e.Large="large",e.Default="medium",e))(Yo||{}),Xo=(e=>(e.Left="left",e.Right="right",e.TopRight="top-right",e.None="none",e))(Xo||{}),Qo=(e=>(e.BackgroundColor="--acorn-badge-bg-color",e.TextColor="--acorn-badge-text-color",e))(Qo||{}),Zo=(e=>(e.ColoredBankidLight="colored-bankid-light",e.ColoredBankidLogo="colored-bankid-logo",e.ColoredBankidLogoDark="colored-bankid-logo-dark",e.ColoredMorningstarSustainabilityRatingLogoActive="colored-morningstar-sustainability-rating-logo-active",e.ColoredMorningstarSustainabilityRatingLogoBlue="colored-morningstar-sustainability-rating-logo-blue",e.ColoredMorningstarSustainabilityRatingLogoInactive="colored-morningstar-sustainability-rating-logo-inactive",e.ColoredSwishLogo="colored-swish-logo",e.AddFolder="add-folder",e.ArrowDownArrowUp="arrow-down-arrow-up",e.ArrowDownRight="arrow-down-right",e.ArrowDownToLines="arrow-down-to-lines",e.ArrowLeftV2="arrow-left-v2",e.ArrowRightFromHalfOutlinedSquare="arrow-right-from-half-outlined-square",e.ArrowRightToHalfOutlinedSquare="arrow-right-to-half-outlined-square",e.ArrowRightV2="arrow-right-v2",e.ArrowUpFromLines="arrow-up-from-lines",e.ArrowUpRight="arrow-up-right",e.ArrowUpRightFromSquare="arrow-up-right-from-square",e.ArrowsLeftRight="arrows-left-right",e.ArrowsLeftRightMergedOnTop="arrows-left-right-merged-on-top",e.Ban="ban",e.Bars="bars",e.BarsBlock="bars-block",e.BarsFilter="bars-filter",e.Bell="bell",e.BookDictionary="book-dictionary",e.BookOpen="book-open",e.BoxArrowDown="box-arrow-down",e.BoxArrowUp="box-arrow-up",e.BoxEmpty="box-empty",e.BoxOutlinedChecked="box-outlined-checked",e.Calculator="calculator",e.CalculatorDocument="calculator-document",e.Calendar="calendar",e.CalendarArrowsCircle="calendar-arrows-circle",e.CalendarArrowsLeftRight="calendar-arrows-left-right",e.Camera="camera",e.Car="car",e.CarHouse="car-house",e.CaretDown="caret-down",e.CaretLeft="caret-left",e.CaretRight="caret-right",e.CaretUp="caret-up",e.ChartLineGrowthArrow="chart-line-growth-arrow",e.ChartPieQuarterQuarterHalf="chart-pie-quarter-quarter-half",e.ChatBubbleExclamation="chat-bubble-exclamation",e.ChatBubbles="chat-bubbles",e.CheckCheck="check-check",e.CheckV2="check-v2",e.ChevronDown="chevron-down",e.ChevronLeft="chevron-left",e.ChevronRight="chevron-right",e.ChevronUp="chevron-up",e.Circle="circle",e.CircleArrowDown="circle-arrow-down",e.CircleArrowUp="circle-arrow-up",e.CircleArrowsDownUp="circle-arrows-down-up",e.CircleArrowsLeftRight="circle-arrows-left-right",e.CircleBookOpen="circle-book-open",e.CircleCar="circle-car",e.CircleChatBubbles="circle-chat-bubbles",e.CircleCheckmark="circle-checkmark",e.CircleCircleFaceSmile="circle-circle-face-smile",e.CircleCirclePercent="circle-circle-percent",e.CircleCoinsOnTopOfLine="circle-coins-on-top-of-line",e.Cir
16cleDollar="circle-dollar",e.CircleExclamation="circle-exclamation",e.CircleEye="circle-eye",e.CircleEyeSlash="circle-eye-slash",e.CircleFaceSmile="circle-face-smile",e.CircleFlashlight="circle-flashlight",e.CircleFolderOpen="circle-folder-open",e.CircleForkKnife="circle-fork-knife",e.CircleHeart="circle-heart",e.CircleHouse="circle-house",e.CircleInfo="circle-info",e.CircleLock="circle-lock",e.CircleMinus="circle-minus",e.CircleOutlinedHalfDashedCheckmark="circle-outlined-half-dashed-checkmark",e.CirclePercent="circle-percent",e.CirclePlus="circle-plus",e.CircleQuestionMark="circle-question-mark",e.CircleShoppingCart="circle-shopping-cart",e.CircleSun="circle-sun",e.CircleTeddyBear="circle-teddy-bear",e.CircleUmbrella="circle-umbrella",e.CircleUserAdult="circle-user-adult",e.CircleUserChild="circle-user-child",e.CircleWallet="circle-wallet",e.CircleXMark="circle-x-mark",e.CloudCo2="cloud-co2",e.CoinsOnTopOfLine="coins-on-top-of-line",e.Copy="copy",e.CreditCard="credit-card",e.Document="document",e.DocumentArrowRightInside="document-arrow-right-inside",e.DocumentDollar="document-dollar",e.DownLeftAndUpRightToCenter="down-left-and-up-right-to-center",e.EInvoice="e-invoice",e.EllipsisVertical="ellipsis-vertical",e.EnvelopeClosed="envelope-closed",e.EuroSign="euro-sign",e.EuroSignInsideCircleArrow="euro-sign-inside-circle-arrow",e.Eye="eye",e.EyeSlash="eye-slash",e.FilePdf="file-pdf",e.Fingerprint="fingerprint",e.FlagWorld="flag-world",e.Flashlight="flashlight",e.FlashlightOutline="flashlight-outline",e.FolderOpen="folder-open",e.ForkKnife="fork-knife",e.FourSquares="four-squares",e.Gear="gear",e.GripLines="grip-lines",e.GrowthNodesChart="growth-nodes-chart",e.HandGear="hand-gear",e.Hashtag="hashtag",e.Heart="heart",e.HighRiseBuilding="high-rise-building",e.HighRiseBuildingLamp="high-rise-building-lamp",e.House="house",e.HouseLamp="house-lamp",e.Image="image",e.Lamp="lamp",e.LightbulbOutline="lightbulb-outline",e.LineGrowth="line-growth",e.LineGrowthArrow="line-growth-arrow",e.LineGrowthNodes="line-growth-nodes",e.LineStableArrow="line-stable-arrow",e.LocationPinDot="location-pin-dot",e.Lock="lock",e.MagnifyingChart="magnifying-chart",e.MagnifyingGlass="magnifying-glass",e.Minus="minus",e.Mobile="mobile",e.MobileList="mobile-list",e.MobilePlus="mobile-plus",e.PaperPlane="paper-plane",e.Paperclip45degrees="paperclip-45degrees",e.Pause="pause",e.Pen="pen",e.PensionTriangle="pension-triangle",e.Percent="percent",e.Plus="plus",e.Print="print",e.QrCode="qr-code",e.RectanglesStackedPyramid="rectangles-stacked-pyramid",e.RotateRight="rotate-right",e.ScaleUnbalanced="scale-unbalanced",e.ShieldUser="shield-user",e.ShoppingCart="shopping-cart",e.ShoppingCartPlus="shopping-cart-plus",e.SignPost="sign-post",e.SquareMinus="square-minus",e.Star="star",e.StarOutline="star-outline",e.Sun="sun",e.TeddyBear="teddy-bear",e.ThumbsDown="thumbs-down",e.ThumbsNeutral="thumbs-neutral",e.ThumbsUp="thumbs-up",e.TrashCan="trash-can",e.TreeHouse="tree-house",e.TriangleExclamation="triangle-exclamation",e.Umbrella="umbrella",e.UpRightAndDownLeftFromCenter="up-right-and-down-left-from-center",e.UserArrowsCircle="user-arrows-circle",e.UserGear="user-gear",e.UserStarCheck="user-star-check",e.Users="users",e.Video="video",e.Wallet="wallet",e.WalletCreditCard="wallet-credit-card",e.WritingPadPen="writing-pad-pen",e.XMark="x-mark",e.AccountMultiple="account-multiple",e.Accounting="accounting",e.Accounts="accounts",e.AccountsCards="accounts-cards",e.ArrowDown="arrow-down",e.ArrowLeft="arrow-left",e.ArrowRight="arrow-right",e.ArrowUp="arrow-up",e.Attachment="attachment",e.CameraClean="camera-clean",e.Check="check",e.ChildrensService="childrens-service",e.CloseClean="close-clean",e.CloseSolid="close-solid",e.ColoredAccounttypeAf="colored-accounttype-af",e.ColoredAccounttypeIsk="colored-accounttype-isk",e.ColoredAccounttypeKf="colored-accounttype-kf",e.Commodities="commodities",e.Completed="completed",e.Condominium="condominium",e.ConfirmationSolid="confirmation-solid",e.Contact="contact",e.Currencies="currencies",e.CustomerOverview="customer-overview",e.CustomerService="customer-service",e.DeepLink="deep-link",e.Delete="delete",e.Dictionary="dictionary",e.DivisionPrivateCorp="division-private-corp",e.Documents="documents",e.Download="download",e.EditClean="edit-clean",e.Empty="empty",e.EngagementOverview="engagement-overview",e.EquitiesBestReturn="equities-best-return",e.EquitiesBestReturnUsa="equities-best-return-usa",e.EquitiesBuyAnalysisSwedbankBuy="equities-buy-analysis-swedbank-buy",e.EquitiesCo2="equities-co2",e.EquitiesEasyFundSelection="equities-easy-fund-selection",e.EquitiesHighPotentialForTargetPrice="equities-high-potential-for-target-price",e.EquitiesHighestYield="equities-highest-yield",e.EquitiesLowestFee="equities-lowest-fee",e.EquitiesMostTraded="equities-most-traded",e.EquitiesOMXS30="equities-OMXS30",e.ExclamationSolid="exclamation-solid",e.ExclamationSolid2="exclamation-solid-2",e.ExpenseControl="expense-control",e.ExportFile="export-file",e.FavouriteHollow="favourite-hollow",e.FavouriteSolid="favourite-solid",e.Filter="filter",e.FixedIncome="fixed-income",e.FlagEn="flag-en",e.FlagSv="flag-sv",e.FlashOff="flash-off",e.FlashOn="flash-on",e.Guiding="guiding",e.Help="help",e.HelpSolid="help-solid",e.Hierarchy="hierarchy",e.Home="home",e.IconCheck="icon-check",e.InProgress="in-progress",e.Index="index",e.InfoSolid="info-solid",e.Insurance="insurance",e.InsuranceCondominium="insurance-condominium",e.InsuranceHome="insurance-home",e.InsuranceVillaHome="insurance-villa-home",e.Loans="loans",e.Location="location",e.Locked="locked",e.LogMeeting="log-meeting",e.Login="login",e.Logout="logout",e.Mail="mail",e.Menu="menu",e.Messages="messages",e.MinusSolid="minus-solid",e.MinusSquare="minus-square",e.More="more",e.NewCase="new-case",e.NotificationsBell="notifications-bell",e.Null="null",e.OtherServices="other-services",e.PaymentsTransfers="payments-transfers",e.Pdf="pdf",e.Pension="pension",e.PlusSolid="plus-solid",e.Profile="profile",e.ProvideFeedback="provide-feedback",e.RecurringPayment="recurring-payment",e.Refresh="refresh",e.SavingsCoin="savings-coin",e.SavingsInvestments="savings-investments",e.ScreenExpand="screen-expand",e.ScreenMinimize="screen-minimize",e.Settings="settings",e.Shoppingcart="shoppingcart",e.SmallArrowDown="small-arrow-down",e.SmallArrowLeft="small-arrow-left",e.SmallArrowRight="small-arrow-right",e.SmallArrowUp="small-arrow-up",e.SortingAscending="sorting-ascending",e.SortingDescending="sorting-descending",e.SortingNeutral="sorting-neutral",e.StockArrowDown="stock-arrow-down",e.StockArrowUp="stock-arrow-up",e.SummerHouse="summer-house",e.Topup="topup",e.UpSolid="up-solid",e.Upload="upload",e.UserChild="user-child",e.UserManagement="user-management",e.WatchlistHollow="watchlist-hollow",e.WatchlistSolid="watchlist-solid",e.FlagAt="flag-at",e.FlagAu="flag-au",e.FlagBe="flag-be",e.FlagBr="flag-br",e.FlagCa="flag-ca",e.FlagCh="flag-ch",e.FlagCl="flag-cl",e.FlagCn="flag-cn",e.FlagDe="flag-de",e.FlagDk="flag-dk",e.FlagEe="flag-ee",e.FlagEs="flag-es",e.FlagEu="flag-eu",e.FlagFi="flag-fi",e.FlagFr="flag-fr",e.FlagGb="flag-gb",e.FlagGr="flag-gr",e.FlagHk="flag-hk",e.FlagId="flag-id",e.FlagIe="flag-ie",e.FlagIn="flag-in",e.FlagIs="flag-is",e.FlagIt="flag-it",e.FlagJp="flag-jp",e.FlagKr="flag-kr",e.FlagLt="flag-lt",e.FlagLv="flag-lv",e.FlagMx="flag-mx",e.FlagMy="flag-my",e.FlagNl="flag-nl",e.FlagNo="flag-no",e.FlagNz="flag-nz",e.FlagPh="flag-ph",e.FlagPl="flag-pl",e.FlagPt="flag-pt",e.FlagRu="flag-ru",e.FlagSe="flag-se",e.FlagSg="flag-sg",e.FlagSo="flag-so",e.FlagTh="flag-th",e.FlagTr="flag-tr",e.FlagTw="flag-tw",e.FlagUa="flag-ua",e.FlagUs="flag-us",e.FlagZa="flag-za",e.AscendingWeb="ascending-web",e.ColoredAccountTypeAfWeb="colored-account-type-af-web",e.ColoredAccountTypeIskWeb="colored-account-type-isk-web",e.ColoredAccountTypeKfWeb="colored-account-type-kf-web",e.Desce
16ndingWeb="descending-web",e.NeutralWeb="neutral-web",e.ShareWeb="share-web",e.SystemNavigateBackWeb="system-navigate-back-web",e.Alert="alert",e.CameraHollow="camera-hollow",e.CameraSolid="camera-solid",e.CheckboxHollow="checkbox-hollow",e.CheckboxSolid="checkbox-solid",e.CloseHollow="close-hollow",e.ConfirmationHollow="confirmation-hollow",e.DocumentsMessages="documents-messages",e.DownCircle="down-circle",e.EditHollow="edit-hollow",e.EditSolid="edit-solid",e.EntertainmentShoppingCat="entertainment-shopping-cat",e.EquitiesTodaysLosersSweden="equities-todays-losers-sweden",e.EquitiesTodaysWinnersSweden="equities-todays-winners-sweden",e.Exclamation="exclamation",e.ExclamationHollow="exclamation-hollow",e.ExclamationHollow2="exclamation-hollow-2",e.Fondguiden="fondguiden",e.FoodHouseholdCat="food-household-cat",e.GraphHollow="graph-hollow",e.GraphSolid="graph-solid",e.HelpHollow="help-hollow",e.HomeCat="home-cat",e.IncomeCat="income-cat",e.InfoHollow="info-hollow",e.Invoice="invoice",e.LeftHalfSplit="left-half-split",e.ListCompact="list-compact",e.ListDefault="list-default",e.ListHollow="list-hollow",e.ListSolid="list-solid",e.ManageServices="manage-services",e.MessagesOffice="messages-office",e.MessagesPrivate="messages-private",e.MessagesStatistics="messages-statistics",e.MessagesSystem="messages-system",e.MinusHollow="minus-hollow",e.MoreHollow="more-hollow",e.MoreSolid="more-solid",e.MorningstarRating="morningstar-rating",e.NotStarted="not-started",e.OneThirdSplit="one-third-split",e.OtherCat="other-cat",e.PlusHollow="plus-hollow",e.ReceiveForwardMessage="receive-forward-message",e.ReloadHollow="reload-hollow",e.ReloadSolid="reload-solid",e.RightHalfSplit="right-half-split",e.SavingsCat="savings-cat",e.SendForwardMessage="send-forward-message",e.SendForwardMessageToMany="send-forward-message-to-many",e.Spreadsheet="spreadsheet",e.ThirdThirdSplit="third-third-split",e.TransferCat="transfer-cat",e.TransportationCat="transportation-cat",e.TwoThirdSplit="two-third-split",e.UncategorizedCat="uncategorized-cat",e.ViewHollow="view-hollow",e.ViewSolid="view-solid",e))(Zo||{}),Jo=(e=>(e.XXSmall="xx-small",e.XSmall="x-small",e.Small="small",e.Regular="regular",e.Medium="medium",e.Large="large",e.XLarge="x-large",e.XXLarge="xx-large",e))(Jo||{}),er=12,tr=16,ir=20,nr=24,or=32,rr=40,ar=48,sr=Object.defineProperty,lr=Object.getOwnPropertyDescriptor,cr=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?lr(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&sr(t,i,r),r},dr=(e=>(e.Left="left",e.Right="right",e))(dr||{}),hr=[{match:/flag-/,type:"flag",configurableColor:!1,defaultColor:null},{match:/colored-/,type:"colored",configurableColor:!1,defaultColor:null},{match:/(.*?)/,type:"basic",configurableColor:!0,defaultColor:zi.Icon.regular}];function pr(e){if(!e)return`${tr}px`;if(!isNaN(Number(e)))return`${e}px`;switch(e){case Jo.XXSmall:return`${er}px`;case Jo.XSmall:return`${tr}px`;case Jo.Small:return`${ir}px`;case Jo.Regular:case Jo.Medium:return`${nr}px`;case Jo.Large:return`${or}px`;case Jo.XLarge:return`${rr}px`;case Jo.XXLarge:return`${ar}px`}return e.toString()}var ur={$host:{display:"inline-block",marginRight:e=>"left"===e.alignIcon?"0.3em":void 0,marginLeft:e=>"right"===e.alignIcon?"0.3em":void 0},svgIcon:{backgroundImage:e=>e.icon?`url("${e._getIconPath(e.icon)}")`:void 0,backgroundSize:"cover",width:e=>pr(e.size)||"16px",height:e=>pr(e.size)||"16px",display:"block"},svgColoredIcon:{backgroundColor:e=>e.colorAsValue()||`var(--acorn-icon-color, ${zi.Icon.regular})`,"-webkit-mask-image":e=>e.icon?`url("${e._getIconPath(e.icon)}")`:void 0,"-webkit-mask-size":"cover",maskImage:e=>e.icon?`url("${e._getIconPath(e.icon)}")`:void 0,maskSize:"cover",width:e=>pr(e.size)||"16px",height:e=>pr(e.size)||"16px",display:"block"},lockWrapper:{position:"relative",display:"block"},lock:{position:"absolute",top:0,right:0,transform:"translate(30%, -30%)",backgroundColor:zi.Icon.white,borderRadius:"8px"},lockIcon:{backgroundColor:zi.Icon.brand,"-webkit-mask-image":e=>`url("${e._getIconPath(Zo.Lock)}")`,"-webkit-mask-size":"cover",maskImage:e=>`url("${e._getIconPath(Zo.Lock)}")`,maskSize:"cover",width:"16px",height:"16px",display:"block"}},gr=/^[a-zA-Z0-9-]+$/,mr=class extends Ti{constructor(){super(...arguments),this.icon=null,this.alignIcon=void 0,this.color=void 0,this.size=void 0,this.accessibilityLabel=null,this._badge=NaN,this._severity=Ko.Default,this._blocked=!1}static getIconSizeAsCCSValueFrom(e){return pr(e)}get badge(){return this._badge}set badge(e){this._badge=e}get severity(){return this._severity}set severity(e){this._severity=e}get blocked(){return this._blocked}set blocked(e){this._blocked=e}_getIconPath(e){return`${this.constructor.iconDirPath}/${e}.svg?v=${mr.cacheVersion}`}colorAsValue(){return this.color}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this)}render(){var e;const t=(null==(e=this._iconRule)?void 0:e.configurableColor)?this.classes.svgColoredIcon:this.classes.svgIcon,i=this.accessibilityLabel?$`<span class="${t}" role="img" aria-label="${this.accessibilityLabel}"></span>`:$`<span class="${t}"></span>`;return this._blocked?$`
17                <span class="${this.classes.lockWrapper}">
18                    ${i}
19                    <span class="${this.classes.lock}">
20                        <span class="${this.classes.lockIcon}"></span>
21                    </span>
22                </span>
23            `:isNaN(this._badge)?i:$`
24                <acorn-badge
25                    severity="${this._severity}"
26                    number="${this._badge}"
27                    size="${Yo.Small}"
28                    align="${Xo.TopRight}"
29                >
30                    ${i}
31                </acorn-badge>
32            `}getStyle(){return ur}onIconChange(){this.icon&&!gr.test(this.icon)&&(this.icon=null,this._iconRule=void 0),this._iconRule=this.icon?hr.find(e=>{var t;return null==(t=this.icon)?void 0:t.match(e.match)}):void 0}};mr.iconDirPath="https://www.swedbank.se/content/dam/global/icons",mr.cacheVersion="3",cr([gt(),zt({type:Zo})],mr.prototype,"icon",2),cr([gt(),zt({type:dr})],mr.prototype,"alignIcon",2),cr([gt()],mr.prototype,"color",2),cr([gt()],mr.prototype,"size",2),cr([gt()],mr.prototype,"accessibilityLabel",2),cr([gt(),zt({type:Number})],mr.prototype,"badge",1),cr([gt()],mr.prototype,"severity",1),cr([gt(),zt({type:Boolean})],mr.prototype,"blocked",1),cr([wi("icon")],mr.prototype,"onIconChange",1),mr=cr([_t({tag:"acorn-internal-icon"})],mr);var br=Object.defineProperty,vr=Object.getOwnPropertyDescriptor,yr=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?vr(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&br(t,i,r),r},_r=(e=>(e.Button="button",e.Submit="submit",e.Reset="reset",e.Cancel="cancel",e.Buy="buy",e.Sell="sell",e.Text="text",e))(_r||{}),fr=Ve.createTranslation({Busy:{sv:"Upptagen",en:"Busy"}}),xr="_native-button-"+Date.now(),wr=class extends Ti{constructor(){super(),this.busy=!1,this.type="button",this.disabled=!1;const e=this.render;this.render=function(...t){const i=e.call(this,...t);return $`
33                ${i}
34                <!-- Below we render the native button element that will be used when a form is submitted -->
35                <slot name="${xr}"></slot>
36            `},this.addEventListener("keyup",this._blockKeyboard),this.addEventListener("keydown",this._blockKeyboard),this.addEventListener("click",this.trackEvent)}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this.setAttribute("role","button"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0")}onTypeChange(){"submit"===this.type||"reset"===this.type?this._formButton?this._formButton.type=this.t
36ype:(this._formButton=this.appendChild(document.createElement("button")),this._formButton.style.display="none",this._formButton.slot=xr,this._formButton.type=this.type,this._formButton.disabled=this.disabled||this.busy,this._formButton.setAttribute("aria-hidden","true"),this.addEventListener("click",this._triggerForm),this.addEventListener("keydown",this._triggerForm)):this._formButton&&(this.removeChild(this._formButton),this._formButton=void 0,this.removeEventListener("click",this._triggerForm),this.removeEventListener("keydown",this._triggerForm))}onDisabledChange(e=!1){this.setAttribute("aria-disabled",e.toString()),this._formButton&&(this._formButton.disabled=this.disabled||this.busy)}onBusyChange(){this._formButton&&(this._formButton.disabled=this.disabled||this.busy),this.busy?this.setAttribute("title",fr.Busy):this.removeAttribute("title")}trackEvent(e){Ue.addEvent(e)}_blockKeyboard(e){e.key!==ye.Space&&e.key!==ye.Enter||(e.preventDefault(),e.stopImmediatePropagation(),this.disabled||this.busy||"keydown"===e.type&&this.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0,composed:!0})))}_triggerForm(e){if(!this.disabled&&!this.busy){if("keydown"===e.type){const t=e;if(t.key!==ye.Space&&t.key!==ye.Enter)return}this._formButton&&(this._formButton.value=this.value||"",this._formButton.name=this.name||"",this.form&&this._formButton.setAttribute("form",this.form),this._formButton.onclick=e=>{e.stopImmediatePropagation()},this._formButton.click())}}};yr([gt(),zt({type:Boolean})],wr.prototype,"busy",2),yr([gt()],wr.prototype,"busyMessage",2),yr([gt(),zt({type:_r})],wr.prototype,"type",2),yr([gt()],wr.prototype,"name",2),yr([gt()],wr.prototype,"value",2),yr([gt(),zt({type:Boolean})],wr.prototype,"disabled",2),yr([gt()],wr.prototype,"form",2),yr([wi("type",{triggerOn:pi.ChangeAndConnect})],wr.prototype,"onTypeChange",1),yr([wi("disabled")],wr.prototype,"onDisabledChange",1),yr([wi("busy")],wr.prototype,"onBusyChange",1);var Cr=(e=>(e.Left="left",e.Right="right",e))(Cr||{}),Sr=(zi.Icon.regular,(e=>(e.Button="button",e.Submit="submit",e.Reset="reset",e.Cancel="cancel",e.Buy="buy",e.Sell="sell",e.Text="text",e))(Sr||{})),$r=Object.defineProperty,kr=Object.getOwnPropertyDescriptor,Er=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?kr(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&$r(t,i,r),r},Tr=(e=>(e.Executive="executive",e.Guiding="guiding",e.Destructive="destructive",e.Primary="primary",e.PrimarySubtle="primary-subtle",e.Secondary="secondary",e.Tertiary="tertiary",e))(Tr||{}),Ir={marginLeft:"8px",display:"inline-block",verticalAlign:"middle"},Or={$host:{display:"inline-block",minWidth:"112px",pointerEvents:e=>e.disabled||e.busy?"none":"auto",appearance:"none !important"},button:{...Gn(),...Qi(),boxSizing:"border-box",border:"none",display:"block",margin:0,verticalAlign:"middle",textAlign:"center",padding:`${vn.Medium} ${vn.ExtraLarge}`,minHeight:"48px",whiteSpace:"normal",wordBreak:"break-word",letterSpacing:"0.04",borderRadius:"32px",lineHeight:kn(24),color:zi.Text.whiteStatic,backgroundColor:zi.Surface.Interactive.active,cursor:e=>e.disabled?"default":"pointer","--acorn-icon-color":zi.Text.whiteStatic,"&:hover":{backgroundImage:()=>ai.isTouchScreenDevice?"":`linear-gradient(${zi.Overlay.hover},  ${zi.Overlay.hover})`},"&:active":{backgroundImage:()=>ai.isTouchScreenDevice?"":`linear-gradient(${zi.Overlay.hover},  ${zi.Overlay.hover})`}},busy:{...yo(18,zi.Icon.whiteStatic),...Ir},secondary:{color:zi.Text.interactive,backgroundColor:zi.Surface.elevation,boxShadow:`inset 0px 0px 0px 2px ${zi.Line.interactive}`,"--acorn-icon-color":zi.Text.interactive,"& > .busy":{...yo(18,zi.Line.interactive),...Ir}},submit:{backgroundColor:zi.Surface.Brand.highStatic},primarySubtle:{backgroundColor:zi.ComponentSpecific.Button.primarySubtleSurface,color:zi.Text.interactive,"--acorn-icon-color":zi.Text.interactive,"&:hover":{backgroundImage:"none",backgroundColor:()=>ai.isTouchScreenDevice?"":zi.ComponentSpecific.Button.primarySubtleHover},"& > .busy":{...yo(18,zi.Line.interactive),...Ir}},reset:{color:zi.Text.Regular.highStatic,backgroundColor:zi.Surface.Interactive.highContrast,"--acorn-icon-color":zi.Text.Regular.highStatic,"& > .busy":{...yo(18,zi.Icon.regularStatic),...Ir}},text:{color:zi.Text.interactive,backgroundColor:"transparent","--acorn-icon-color":zi.Text.interactive,"& > .busy":{...yo(18,zi.Text.interactive),...Ir}},sell:{background:zi.Surface.negative,color:zi.Text.white,"--acorn-icon-color":zi.Text.white},buy:{background:zi.Surface.positive,color:zi.Text.white,"--acorn-icon-color":zi.Text.white},accessibilityLabel:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"},disabled:{backgroundColor:zi.Surface.disabled,color:zi.Text.disabled,boxShadow:"none","--acorn-icon-color":zi.Text.disabled},leadingIcon:{verticalAlign:"middle",marginTop:kn(-2)}},Dr=class extends wr{render(){const e=this._getClassList();return $`
37            <div class="${e}">
38                ${this.icon?$`<acorn-internal-icon
39                          class="${this.classes.leadingIcon}"
40                          icon="${this.icon}"
41                          size="${kn(24)}"
42                          align-icon="${Cr.Left}"
43                      ></acorn-internal-icon>`:void 0}
44                ${this._renderLabel()}
45                ${this.busy&&!this.disabled?$` <span class="${this.classes.busy}"></span> `:void 0}
46            </div>
47        `}getStyle(){return Or}_getClassList(){const e=[this.classes.button];if(this.priority)switch(this.priority){case"executive":case"primary":e.push(this.classes.submit);break;case"primary-subtle":e.push(this.classes.primarySubtle);break;
47case"destructive":e.push(this.classes.reset);break;case"secondary":e.push(this.classes.secondary);break;case"tertiary":e.push(this.classes.text)}else switch(this.type){case _r.Submit:e.push(this.classes.submit);break;case _r.Cancel:case _r.Reset:e.push(this.classes.reset);break;case _r.Sell:e.push(this.classes.sell);break;case _r.Buy:e.push(this.classes.buy);break;case _r.Text:e.push(this.classes.text)}return this.disabled&&e.push(this.classes.disabled),e.join(" ")}_renderLabel(){return this.accessibilityLabel?$`
48            <span class="${this.classes.accessibilityLabel}">${this.accessibilityLabel}</span>
49            <span aria-hidden="true">${this.label}</span>
50        `:this.label}};Er([gt(),zt({type:Tr})],Dr.prototype,"priority",2),Er([gt()],Dr.prototype,"label",2),Er([gt()],Dr.prototype,"icon",2),Er([gt()],Dr.prototype,"accessibilityLabel",2),Er([zt({type:Ge}),gt()],Dr.prototype,"order",2),Dr=Er([_t({tag:"acorn-button"})],Dr);var Rr=Object.defineProperty,Fr=Object.getOwnPropertyDescriptor,Lr=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Fr(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Rr(t,i,r),r},Ar=Ve.createTranslation({OpenInternalLinkInNewContext:{sv:"öppnas i ny flik eller fönster",en:"opens in new tab"},OpenExternalLinkInNewContext:{sv:"extern länk, öppnas i ny flik",en:"external link, opens in new tab"},OpenExternalLinkInSameContext:{sv:"extern länk",en:"external link"}}),Mr=(e=>(e.TextDecoration="--acorn-link-text-decoration",e))(Mr||{}),Br=(e=>(e.Self="_self",e.Blank="_blank",e.Parent="_parent",e.Top="_top",e))(Br||{}),Pr=(e=>(e.Internal="internal",e.External="external",e))(Pr||{}),Nr=Vn,Hr=parseInt(Nr({lineHeightUnit:"px",fontSizeUnit:"px"}).lineHeight.toString()),zr=nr,Wr={$host:{display:e=>{var t;return(null==(t=e.label)?void 0:t.trim())?"block":"none"},outline:"none !important",margin:`${Dn.Medium}px 0`},wrapper:{textAlign:"left",fontStyle:"normal"},link:{...Nr(),display:"inline-flex",verticalAlign:"middle",textDecoration:"var(--acorn-link-text-decoration, none)",color:zi.Text.interactive,cursor:"pointer","&:hover":{textDecoration:"var(--acorn-link-text-decoration, underline)"}},linkText:{display:"inline-block",marginTop:()=>`${Vr().text}px`,marginRight:"8px"},linkIcon:{display:"inline-block",marginTop:()=>`${Vr().icon}px`,marginRight:"8px"},screenReaderOnly:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"}};function Vr(){const e=ze.scaleFactor*Hr,t=zr-e,i=Math.round(Math.max(0,t)/2);return{icon:Math.abs(Math.round(Math.min(0,t)/2)),text:i}}var jr=class extends Ti{constructor(){super(...arguments),this.label="",this._linkElementId="link"}render(){const e="external"===this.type?Zo.ArrowUpRightFromSquare:Zo.CaretRight;return $`<div class="${this.classes.wrapper}">
51            <a
52                id="${this._linkElementId}"
53                @click="${this._onClickEvent}"
54                @keydown="${this._onKeydownEvent}"
55                class="${this.classes.link}"
56                role="${j(this.href?void 0:"link")}"
57                href="${j(this.href||void 0)}"
58                tabindex="${j(this.href?void 0:"0")}"
59                target="${j(this._linkTarget()||void 0)}"
60            >
61                <acorn-internal-icon
62                    icon="${e}"
63                    class="${this.classes.linkIcon}"
64                    size="${zr}"
65                    color="${zi.Icon.interactive}"
66                ></acorn-internal-icon>
67                <span class="${this.classes.linkText}" aria-hidden="true">${this.label}</span>
68                <span class="${this.classes.screenReaderOnly}">${this._textForScreenReaders()}</span>
69            </a>
70        </div>`}getStyle(){return Wr}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),ze.register(this._onFontSizeChange)}disconnectedCallback(){ze.unregister(this._onFontSizeChange)}_onClickEvent(e){this._navigate.emit().defaultPrevented&&e.preventDefault()}_onKeydownEvent(e){if("Enter"!==e.key||this.href)return;if(!this._redispatchEvent(e).defaultPrevented){const e=this.shadowRoot.getElementById(this._linkElementId);null==e||e.click()}}_redispatchEvent(e){const t=new(0,e.constructor)(e.type,e);return e.preventDefault(),e.stopImmediatePropagation(),this.dispatchEvent(t),t}_onFontSizeChange(){this.invalidate()}_textForScreenReaders(){var e;return(null==(e=this.accessibilityLabel)?void 0:e.trim())?this.accessibilityLabel.trim():"external"===this.type?"_blank"===this._linkTarget()?`${this.label} (${Ar.OpenExternalLinkInNewContext})`:`${this.label} (${Ar.OpenExternalLinkInSameContext})`:"_blank"===this.target?`${this.label} (${Ar.OpenInternalLinkInNewContext})`:this.label}_linkTarget(){var e;return this.target?this.target:(null==(e=this.href)?void 0:e.trim())&&"external"===this.type?"_blank":void 0}};Lr([gt()],jr.prototype,"label",2),Lr([gt()],jr.prototype,"accessibilityLabel",2),Lr([gt(),zt({type:Pr})],jr.prototype,"type",2),Lr([gt()],jr.prototype,"href",2),Lr([gt()],jr.prototype,"target",2),Lr([Kt()],jr.prototype,"_siblingGroup",2),Lr([ft({name:"navigate",cancelable:!0,bubbles:!1,composed:!1})],jr.prototype,"_navigate",2),Lr([Pe()],jr.prototype,"_onClickEvent",1),Lr([Pe()],jr.prototype,"_onKeydownEvent",1),Lr([Pe()],jr.prototype,"_onFontSizeChange",1),jr=Lr([_t({tag:"acorn-link",delegatesFocus:!0}),vt()],jr);var Gr={$host:{display:"block",margin:`${Dn.Medium}px 0`},$$slotted:{'&([slot="link"])':{marginTop:kn(Dn.ExtraSmall),marginBottom:kn(Dn.ExtraSmall)}}},qr=class extends Ti{render(){return $`${this._linkSlot}`}getStyle(){return Gr}};Lr([ri("link",{selectAllTypes:[jr.config.type],strict:!0})],qr.prototype,"_linkSlot",2),qr=Lr([_t({tag:"acorn-link-group"})],qr);var Ur=Object.defineProperty,Kr=Object.getOwnPropertyDescriptor,Yr=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Kr(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Ur(t,i,r),r},Xr=(e=>(e.Cover="cover",e.Contain="contain",e.ScaleDown="scale-down",e))(Xr||{});var Qr={$host:{display:"block",height:"100%",width:"100%"},image:{display:"block",boxSizing:"border-box",height:"inherit",width:"inherit",objectPosition:e=>e.position,objectFit:e=>e.fit,padding:function(e){if("cover"===e.fit)return"0px";switch(e.placement){case"top":return`${bo} ${mo} 0px`;case"left":return`${bo} 0px ${bo} ${mo}`;case"right":return`${bo} ${mo} ${bo} 0px`;default:return"0px"}}}},Zr=class extends Ti{constructor(){super(...arguments),this.alt="",this.src="",this.srcset="",this.position="50% 50%"}getStyle(){return Qr}beforeRender(){super.beforeRender(),this.alt||console.error(`No 'alt' attribute found on ${this.localName}.`)}render(){return $`
71            <img
72                class="${this.classes.image}"
73                src="${j(this.src)}"
74                srcset="${j(this.srcset)}"
75                alt="${this.alt}"
76            />
77        `}onSrcChange(){this.fit||this.setDefaultImageFit()}onFitChange(){const e=this.fit?this.fit.toLowerCase():void 0;Object.values(Xr).includes(e)?e!==this.fit&&(this.fit=e):this.setDefaultImageFit()}setDefaultImageFit(){var e;if(this.src){const t=null==(e=this.src.split(".").pop())?void 0:e.toLocaleLowerCase();this.fit="svg"===t?"contain":"cover"}else this.fit="cover"}};Yr([gt()],Zr.prototype,"alt",2),Yr([gt()],Zr.prototype,"src",2),Yr([gt()],Zr.prototype,"srcset",2),Yr([gt()],Zr.prototype,"position",2),Yr([gt()],Zr.prototype,"fit",2),Yr([Ht()],Zr.prototype,"placement",2),Yr([wi("src")],Zr.prototype,"onSrcChange",1),Yr([wi("fit")],Zr.prototype,"onFitChange",1);var Jr={$host:{display:"block"},text:{marginBottom:0,maxWidth:wn,fontSize:kn(14),fontFamily:Cn.Base,lineHeight:Sn.Base,fontWeight:$n.Regular,color:zi.Text.Regular.high}},ea=class extends Ti{getStyle(){return Jr}render(){return $` <p class="${this.classes.text}">${this.textContent}</p> `}},ta={$host:{display:"block",color:zi.Text.Regular.high,marginTop:"24px"}},ia=class extends Ti{getStyle(){return ta}render(){return $`<acorn-internal-enclosed-margins> ${this._default} </acorn-internal-enclosed-margins>`}};Yr([ri("default")],ia.prototype,"_default",2);var na=class extends Ti{onPropertyChange(){var e;null==(e=this._linkChange)||e.emit()}};Yr([gt()],na.prototype,"label",2),Yr([gt()],na.prototype,"href",2),Yr([gt()],na.prototype,"target",2),Yr([gt()],na.prototype,"accessibilityLabel",2),Yr([ft({bubbles:!0})],na.prototype,"_linkChange",2),Yr([wi("label"),wi("href"),wi("target")],na.prototype,"onPropertyChange",1);var oa=class extends Dr{},ra={$host:{display:"block"},text:{borderTop:"solid 1px rgba(81, 43, 43, 0.15)",paddingTop:"10px",margin:"24px 0 0",fontSize:kn(12),fontFamily:Cn.Base,lineHeight:Sn.Narrow,fontWeight:$n.Regular,color:zi.Text.Regular.medium,maxWidth:wn}},aa=class extends Ti{getStyle(){return ra}render(){return $` <p class="${this.classes.text}">${this.textContent}</p> `}},sa=(e=>(e.Default="default",e.Hero="hero",e.NBA="nba",e.CTA="cta",e))(sa||{}),la=(e=>(e.Layout_50_50="50-50",e.Layout_33_66="33-66",e.Layout_Stacked="stacked",e))(la||{}),ca=Ve.createTranslation({Dismiss:{sv:"Avfärda",en:"Dismiss"}});var da={$host:{display:"block",margin:`${vn.ExtraLarge} 0`,outline:"0 !important"}
77,$$slotted:{"&(acorn-action-element-body)":{display:"block"}},wrapper:{display:function(e){return"stacked"===e._layout?"flex":"grid"},gridTemplateColumns:function(e){switch(e._layout){case"50-50":return"1fr 1fr";case"33-66":return"1fr 2fr";default:return"0fr 1fr"}},textDecoration:"none",gridTemplateRows:"100%",columnGap:mo,flexDirection:"column",width:"100%",height:"100%"},imageContainer:{height:e=>"stacked"===e._layout?"250px":"auto",display:e=>{var t;return(null==(t=e._imageSlot)?void 0:t.isFilled())?"block":"none"}},contentContainer:{display:"flex",flexDirection:"column",flex:"1 1 auto",gap:e=>{var t;return(null==(t=e._bodySlot)?void 0:t.isFilled())?"32px":"16px"}},topContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between",gap:"8px"},topContainerLeft:{flex:1,maxWidth:"100%"},bottomContainer:{flex:"1 0 auto",display:e=>{var t,i;return(null==(t=e._disclaimerSlot)?void 0:t.isFilled())||(null==(i=e._buttonSlot)?void 0:i.isFilled())?"flex":"none"},flexDirection:"column",justifyContent:"flex-end"},buttonContainer:{display:"flex",flexDirection:"column",gap:"8px",alignItems:e=>"compact"===e.responsiveWidth?void 0:"start"},heading:{...Bn(),marginTop:"0px",marginBottom:"16px",color:zi.Text.Regular.high},subHeading:{display:"block",margin:"4px 0",color:zi.Text.Regular.high,fontFamily:Cn.Headline,fontSize:kn(14),fontWeight:$n.Bold,whiteSpace:"pre-wrap",lineHeight:"1.4","&:empty":{display:"none"}},link:{margin:0}},ha=class extends Ti{constructor(){super(),this.type="default",this._resizeObserver=new ResizeObserver(e=>{if(this.layout)return;const t=e[0].contentRect.width;this._responsiveWidth=t>800?"wide":t>600?"comfortable":t>400?"narrow":"compact"})}get responsiveWidth(){return this._responsiveWidth}get hasButton(){var e;return!!(null==(e=this._buttonSlot)?void 0:e.content.find(e=>{var t;return(null==(t=e.localName)?void 0:t.indexOf("button"))>-1}))}get hasLink(){var e;return(null==(e=this._linkSlot)?void 0:e.isFilled())&&!this.hasButton&&"nba"!==this.type&&"cta"!==this.type}get _linkData(){var e;const{label:t="",href:i="",target:n="",accessibilityLabel:o=""}=(null==(e=this._linkSlot)?void 0:e.content)||{};return{label:t,href:i,target:n,accessibilityLabel:o}}getStyle(){return da}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this._resizeObserver&&this._resizeObserver.observe(this),this.addEventListener("linkChange",this._onLinkChange)}disconnectedCallback(){this._resizeObserver&&this._resizeObserver.disconnect(),this.removeEventListener("linkChange",this._onLinkChange)}beforeRender(){super.beforeRender(),this.updateLayout()}render(){return $`<div class="${this.classes.wrapper}">${this.renderContent()}</div>`}renderContent(){var e;return $`
78            <div class="${this.classes.imageContainer}">${this._imageSlot}</div>
79            <div class="${this.classes.contentContainer}">
80                <div class="${this.classes.topContainer}">
81                    <div class="${this.classes.topContainerLeft}">
82                        ${this.renderHeader()} ${this.textSlot} ${this._bodySlot}
83                    </div>
84                </div>
85                <div class="${this.classes.bottomContainer}">
86                    <div class="${this.classes.buttonContainer}">
87                        ${null==(e=this._buttonSlot)?void 0:e.default(this.hasLink?this.renderLink():this._renderLegacyButtons())}
88                    </div>
89                    ${this._disclaimerSlot}
90                </div>
91            </div>
92        `}renderLink(){return $`<acorn-link
93            label="${this._linkData.label}"
94            href="${this._linkData.href}"
95            target="${j(this._linkData.target||void 0)}"
96            class="${this.classes.link}"
97            @click="${this._triggerAction}"
98        ></acorn-link>`}renderHeader(){return $` <h3 class="${this.classes.heading}">${this.heading}</h3> `}updateLayout(){var e;if(this.layout)this._layout=this.layout;else if(null==(e=this._imageSlot)?void 0:e.isFilled())if(this.responsiveWidth)switch(this.responsiveWidth){case"wide":this._layout="50-50";break;case"comfortable":this._layout="33-66";break;default:this._layout="stacked"}else this._layout="stacked";else this._layout="stacked";this._updateImagePlacement()}_renderLegacyButtons(){var e;return"cta"===this.type?$`<acorn-button
99                label="${this._linkData.label}"
100                aria-label="${j(this._linkData.accessibilityLabel||void 0)}"
101                @click="${this._triggerAction}"
102            ></acorn-button>
102`:"nba"===this.type?$`
103                <acorn-button label="${this._linkData.label}" @click="${this._triggerAction}"></acorn-button>
104                <acorn-button label="${ca.Dismiss}" type="cancel" @click="${null==(e=this._close)?void 0:e.emit}"></acorn-button>
105            `:$``}_updateImagePlacement(){var e;if(null==(e=this._imageSlot)?void 0:e.isFilled())switch(this._layout){case"50-50":case"33-66":this._imageSlot.content.placement="left";break;default:this._imageSlot.content.placement="top"}}_triggerAction(e){if(e instanceof KeyboardEvent&&this._linkData.href||e instanceof KeyboardEvent&&"Enter"!==e.key)return;const t=this._action.emit({link:this._linkData.href});(null==t?void 0:t.defaultPrevented)&&e.preventDefault()}_onLinkChange(e){e.stopPropagation(),this.invalidate()}};Yr([gt()],ha.prototype,"heading",2),Yr([gt()],ha.prototype,"subHeading",2),Yr([gt()],ha.prototype,"layout",2),Yr([gt(),zt({type:sa})],ha.prototype,"type",2),Yr([Ht()],ha.prototype,"_linkSlot",2),Yr([Ht()],ha.prototype,"_disclaimerSlot",2),Yr([Ht()],ha.prototype,"_buttonSlot",2),Yr([ft({cancelable:!0,bubbles:!0})],ha.prototype,"_action",2),Yr([ft({cancelable:!0,bubbles:!0})],ha.prototype,"_close",2),Yr([Ht()],ha.prototype,"_responsiveWidth",2),Yr([Pe()],ha.prototype,"_triggerAction",1),Yr([Pe()],ha.prototype,"_onLinkChange",1);var pa=(e=>(e.Wide="wide",e.Comfortable="comfortable",e.Narrow="narrow",e.Compact="compact",e))(pa||{}),ua=(e=>(e.Body="body",e.Button="button",e.Disclaimer="disclaimer",e.Image="image",e.Link="link",e.Text="text",e))(ua||{}),ga=Object.defineProperty,ma=Object.getOwnPropertyDescriptor,ba=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?ma(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&ga(t,i,r),r},va=class extends Zr{};va=ba([_t({tag:"acorn-action-card-image"})],va);var ya=class extends ea{};ya=ba([_t({tag:"acorn-action-card-text"})],ya);var _a=class extends ia{};_a=ba([_t({tag:"acorn-action-card-body"})],_a);var fa=class extends na{};fa=ba([_t({tag:"acorn-action-card-link"})],fa);var xa=class extends oa{};xa=ba([_t({tag:"acorn-action-card-button"})],xa);var wa=class extends aa{};wa=ba([_t({tag:"acorn-action-card-disclaimer"})],wa);var Ca={$host:{display:"block",marginTop:Rn(Dn.ExtraLarge),marginBottom:Fn(Dn.ExtraLarge)},contentContainer:{paddingTop:e=>e._imageSlot.isFilled()?"14px":"0px",paddingBottom:e=>e._imageSlot.isFilled()&&e.responsiveWidth===pa.Narrow?"0px":"14px"},heading:{paddingTop:"2px"}},Sa=class extends ha{getStyle(){return ge({},super.getStyle(),Ca)}};ba([ri(ua.Image,{selectSingleType:va.config.type})],Sa.prototype,"_imageSlot",2),ba([ri(ua.Link,{selectSingleType:fa.config.type})],Sa.prototype,"_linkSlot",2),ba([ri(ua.Disclaimer,{selectSingleType:wa.config.type})],Sa.prototype,"_disclaimerSlot",2),ba([ri(ua.Button,{selectAllTypes:xa.config.type})],Sa.prototype,"_buttonSlot",2),ba([ri(ua.Body,{selectSingleType:_a.config.type})],Sa.prototype,"_bodySlot",2),ba([ri(ua.Text,{selectSingleType:ya.config.type})],Sa.prototype,"textSlot",2),Sa=ba([_t({tag:"acorn-action-card"})],Sa);var $a=Object.defineProperty,ka=Object.getOwnPropertyDescriptor,Ea=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?ka(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&$a(t,i,r),r},Ta=(e=>(e.BackgroundColor="--acorn-internal-icon-background-color",e.Size="--acorn-internal-icon-button-size",e.Padding="--acorn-internal-icon-button-padding",e.TextColor="--acorn-internal-icon-button-text-color",e.IconColor="--acorn-internal-icon-button-icon-color",e.BackgroundColorHover="--acorn-internal-icon-button-background-color-hover",e.BackgroundImageHover="--acorn-internal-icon-button-background-image-hover",e.BackgroundColorActive="--acorn-internal-icon-button-background-color-active",e.OutlineColor="--acorn-internal-icon-button-outline-color",e))(Ta||{}),Ia=(e=>(e.OrangeMain="orange-main",e.Brown="brown",e.BrownSoft="brown-soft",e.Turquoise="turquoise",e.White="white",e.BluePositive="blue-positive",e.RedNegative="red-negative",e))(Ia||{}),Oa={"orange-main":zi.Icon.brand,brown:zi.Icon.regular,"brown-soft":zi.Icon.medium,turquoise:zi.Icon.interactive,white:zi.Icon.white,"blue-positive":zi.Icon.positive,"red-negative":zi.Icon.negative},Da="var(--acorn-internal-icon-button-padding, 8px)";var Ra={$host:{display:"inline-block",pointerEvents:e=>e.disabled?"none":"auto",cursor:e=>e.disabled?"default":"pointer","--acorn-internal-icon-button-size":e=>`calc(${function(e){return mr.getIconSizeAsCCSValueFrom(e.size)}(e)} + ${Da} * 2)`,outline:"0 !important",[Ui]:`var(--acorn-internal-icon-button-outline-color, ${qi})`,"--acorn-icon-color":e=>e.disabled?zi.Icon.disabled:e.getColor()||`var(--acorn-internal-icon-button-icon-color, ${zi.Icon.regular}
105)`,[Qo.BackgroundColor]:e=>e.disabled?zi.Surface.disabled:void 0,[Qo.TextColor]:e=>e.disabled?zi.Text.disabled:void 0},button:{position:"relative",display:"flex",flexDirection:"row",gap:"8px",alignItems:"center",backgroundColor:"var(--acorn-internal-icon-background-color, transparent)",transition:"background-color 0.15s ease",border:"0 solid transparent",minHeight:"var(--acorn-internal-icon-button-size)",borderRadius:"calc(var(--acorn-internal-icon-button-size) / 2)",...Qi(),cursor:"pointer",padding:Da,"&:hover":{backgroundColor:`var(--acorn-internal-icon-button-background-color-hover, ${zi.Overlay.hover})`,backgroundImage:()=>ai.isTouchScreenDevice?"":"var(--acorn-internal-icon-button-background-image-hover, none)"},"&:active":{backgroundColor:`var(--acorn-internal-icon-button-background-color-active, ${zi.Overlay.pressed})`}},label:{fontFamily:Cn.Base,fontWeight:$n.Regular,fontSize:kn(14),lineHeight:Sn.Narrow,display:e=>e.hideLabel||!e.label?"none":"inline",color:e=>e.disabled?zi.Text.disabled:`var(--acorn-internal-icon-button-text-color, ${e.getColor()||zi.Text.Regular.high})`,verticalAlign:"middle",padding:e=>e.icon||e.badge?"0 4px 0 0":"0 4px"},hitArea:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",height:"100%",width:"100%",minHeight:"40px",minWidth:"40px",opacity:"0"}},Fa=class extends Ti{constructor(){super(...arguments),this.disabled=!1,this.icon=void 0,this.label=void 0,this.ariaLabel=void 0,this.badge=void 0,this.severity=Ko.Default,this.hideLabel=!1,this._size=Jo.Regular,this._toggled=!1}get size(){return this._size}set size(e){this._size=e}get color(){return this._color}set color(e){this._color=e}get toggled(){return this._toggled}set toggled(e){this._toggled=e}beforeRender(){this.label||this.ariaLabel||this.accessibilityLabel||console.error(`Attribute label or accessibility-label is required on ${this.tagName}`,this)}render(){let e=$`<span class="${this.classes.label}">${this.label}</span>`;const t=this.icon?$`
106                  <acorn-internal-icon
107                      icon="${this.icon}"
108                      size="${this._size}"
109                      color="${j(this.getColor()||void 0)}"
110                      badge="${j(Number.isInteger(this.badge)?this.badge:void 0)}"
111                      severity="${j(this.severity||void 0)}"
112                  ></acorn-internal-icon>
113              `:null;this.badge&&!t&&(e=this._renderWithBadge(e,Xo.Left));const i=this._title();return $`
114            <button
115                title="${j(this._title())}"
116                aria-expanded="${j(this.accessibilityExpanded||void 0)}"
117                aria-haspopup="${j(this.accessibilityHasPopup||void 0)}"
118                aria-label="${j(i?void 0:this._screenReaderText())}"
119                type="button"
120                class="${this.classes.button}"
121                ?disabled="${this.disabled}"
122            >
123                ${t}${e}
124                <span class="${this.classes.hitArea}"></span>
125            </button>
126        `}getStyle(){return Ra}getColor(){if(!this.disabled)return Object.values(Ia).includes(this.color)?Oa[this.color]:this.color}onDisabledChange(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}_renderWithBadge(e,t){return $`
127            <acorn-badge
128                severity="${this.severity}"
129                number="${j(this.badge)}"
130                size="${Yo.Small}"
131                align="${t}"
132            >
133                ${e}
134            </acorn-badge>
135        `}_title(){if(!this.label||this.hideLabel)return this._screenReaderText()}_screenReaderText(){return this.accessibilityLabel||this.ariaLabel||this.label||void 0}};Ea([gt(),zt({type:Boolean})],Fa.prototype,"disabled",2),Ea([gt(),zt({type:Zo})],Fa.prototype,"icon",2),Ea([gt()],Fa.prototype,"label",2),Ea([gt()],Fa.prototype,"ariaLabel",2),Ea([gt(),zt({type:Number})],Fa.prototype,"badge",2),Ea([gt()],Fa.prototype,"severity",2),Ea([gt(),zt({type:Boolean})],Fa.prototype,"hideLabel",2),Ea([gt()],Fa.prototype,"accessibilityExpanded",2),Ea([gt()],Fa.prototype,"accessibilityHasPopup",2),Ea([gt()],Fa.prototype,"accessibilityLabel",2),Ea([gt()],Fa.prototype,"size",1),Ea([gt()],Fa.prototype,"color",1),Ea([gt(),zt({type:Boolean})],Fa.prototype,"toggled",1),Ea([wi("disabled")],Fa.prototype,"onDisabledChange",1),Fa=Ea([_t({tag:"acorn-internal-icon-button",delegatesFocus:!0}),vt()],Fa);var La=(e=>
135(e.BackgroundColor="--acorn-internal-icon-background-color",e.Size="--acorn-internal-icon-button-size",e.Padding="--acorn-internal-icon-button-padding",e.TextColor="--acorn-internal-icon-button-text-color",e.IconColor="--acorn-internal-icon-button-icon-color",e.BackgroundColorHover="--acorn-internal-icon-button-background-color-hover",e.BackgroundImageHover="--acorn-internal-icon-button-background-image-hover",e.BackgroundColorActive="--acorn-internal-icon-button-background-color-active",e.OutlineColor="--acorn-internal-icon-button-outline-color",e))(La||{}),Aa=(e=>(e.OrangeMain="orange-main",e.Brown="brown",e.BrownSoft="brown-soft",e.Turquoise="turquoise",e.White="white",e.BluePositive="blue-positive",e.RedNegative="red-negative",e))(Aa||{}),Ma=(zi.Icon.brand,zi.Icon.regular,zi.Icon.medium,zi.Icon.interactive,zi.Icon.white,zi.Icon.positive,zi.Icon.negative,Object.defineProperty),Ba=Object.getOwnPropertyDescriptor,Pa=class extends Fa{get size(){return Jo.Regular}set size(e){}set toggled(e){}get color(){return Aa.Brown}set color(e){}};Pa=((e,t,i,n)=>{for(var o,r=n>1?void 0:n?Ba(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Ma(t,i,r),r})([_t({tag:"acorn-icon-button",delegatesFocus:!0})],Pa);var Na=Object.defineProperty,Ha=Object.getOwnPropertyDescriptor,za=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Ha(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Na(t,i,r),r},Wa=(e=>(e.Focusable="focusable",e.None="none",e.Auto="auto",e))(Wa||{}),Va=Ve.createTranslation({ScrollContainer:{sv:"Scroll-bart innehåll",en:"Scrollable content"}}),ja={$host:{display:"block",overflow:"auto",overscrollBehavior:"contain"},scrollWrapper:{display:"flow-root",width:"inherit",minWidth:"100%",height:"fit-content"}};(ai.isWindows||ai.isLinux)&&Object.assign(ja.$host,{"&::-webkit-scrollbar":{width:"8px",height:"8px",backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#999",borderRadius:"4px"},scrollbarWidth:"thin",scrollbarColor:"#999 transparent"});var Ga=class extends Ti{constructor(){super(),this.focusStrategy="auto",this._containerHeight=0,this._scrollHeight=0,this._hasScrollableContent=void 0,this._scrollWrapper=document.createElement("div"),this._scrollWrapper.classList.add(this.classes.scrollWrapper),this._scrollWrapper.appendChild(document.createElement("slot")),this._resizeObserver=new ResizeObserver(this._onInvalidScroll)}get hasScrollableContent(){return!0===this._hasScrollableContent}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this._resizeObserver.observe(this),this._resizeObserver.observe(this._scrollWrapper)}disconnectedCallback(){this._resizeObserver.disconnect()}render(){return $`${this._scrollWrapper}`}getStyle(){return ja}onFocusStateChange(){this._updateFocusState()}onHasScrollableContentChange(){this._updateFocusState(),this._scrollStateChange.emit({hasScrollableContent:this.hasScrollableContent})}_onInvalidScroll(e){for(const t of e)t.target===this?this._containerHeight=t.contentRect.height:t.target===this._scrollWrapper&&(this._scrollHeight=t.contentRect.height);this._hasScrollableContent=this._scrollHeight>this._containerHeight}_updateFocusState(){ai.isSafari&&(this._isFocusable()?(this.role="region",this.ariaLabel=this.accessibilityLabel||Va.ScrollContainer,this.setAttribute("tabindex","0")):(this.role=null,this.ariaLabel=null,this.removeAttribute("tabindex")))}_isFocusable(){switch(this.focusStrategy){case"focusable":return!0;case"none":return!1;default:return this.hasScrollableContent}}};za([gt()],Ga.prototype,"accessibilityLabel",2),za([gt(),zt({type:Wa})],Ga.prototype,"focusStrategy",2),za([ft()],Ga.prototype,"_scrollStateChange",2),za([wi("accessibilityLabel"),wi("focusStrategy")],Ga.prototype,"onFocusStateChange",1),za([wi("_hasScrollableContent")],Ga.prototype,"onHasScrollableContentChange",1),za([Pe()],Ga.prototype,"_onInvalidScroll",1),Ga=za([_t({tag:"acorn-internal-scroll-pane"})],Ga);var qa=Object.defineProperty,Ua=Object.getOwnPropertyDescriptor,Ka=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Ua(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&qa(t,i,r),r},Ya=(e=>(e.Auto="auto",e.Absolute="absolute",e.Fixed="fixed",e.Cover="cover",e))(Ya||{}),Xa=(e=>(e.Inside="inside",e.Outside="outside",e))(Xa||{}),Qa=(e=>(e.Up="up",e.Down="down",e))(Qa||{}),Za=(e=>(e.Left="left",e.Right="right",e.Stretch="stretch",e))(Za||{}),Ja=class{constructor(e){this._connected=!1,this._context=e}get positionStrategy(){return this._resolvedPositionStrategy||"absolute"}open(e,t){switch(this._connected=!0,t){case"absolute":case"fixed":this._resolvedPositionStrategy=t;break;default:this._resolvedPositionStrategy=this._hasOverflowParent()?"fixed":"absolute"}"fixed"===this._resolvedPositionStrategy&&(this.trackReposition(),this.trackSpaceFiller(e))}close(){var e,t;this._connected=!1,null==(e=this._resizeObserver)||e.disconnect(),this._resizeObserver=void 0,null==(t=this._spaceFillerElement)||t.remove(),this._spaceFillerElement=void 0}trackReposition(){this._connected&&(this._context.refreshPosition(),window.requestAnimationFrame(this.trackReposition))}
135trackSpaceFiller(e){this._spaceFillerElement=document.createElement("div"),this._spaceFillerElement.style.position="absolute",this._spaceFillerElement.style.zIndex="-1",document.documentElement.appendChild(this._spaceFillerElement),this._resizeObserver=new ResizeObserver(this._onDialogResize),this._resizeObserver.observe(e)}_onDialogResize(e){if(!this._spaceFillerElement)return;const t=e[e.length-1].contentRect;this._spaceFillerElement.style.top=`${t.y+window.scrollY}px`,this._spaceFillerElement.style.left=`${t.x+window.scrollX}px`,this._spaceFillerElement.style.width=`${t.width}px`,this._spaceFillerElement.style.height=`${t.height}px`}_hasOverflowParent(){let e=!1;const t=t=>{e=t.composedPath().filter(e=>e instanceof Element).some(e=>"visible"!==getComputedStyle(e).overflow)};document.addEventListener("internalPopoverAutoPosition",t);const i=new Event("internalPopoverAutoPosition",{bubbles:!0,composed:!0});return this._context.dispatchEvent(i),document.removeEventListener("internalPopoverAutoPosition",t),e}};Ka([Pe()],Ja.prototype,"trackReposition",1),Ka([Pe()],Ja.prototype,"_onDialogResize",1);var es=class{constructor(e,t,i,n){this._anchorStrategy=e,this._alignment=t,this._direction=i,this._minWidth=n}getDialogRect(e){const t=document.documentElement.getBoundingClientRect(),i=new DOMPoint(e.left-t.x,e.bottom-t.y),n=new DOMMatrix([1,0,0,1,0,0]);"inside"===this._anchorStrategy&&(n.f=-e.height),"right"===this._alignment&&(n.e+=window.innerWidth-e.width,n.a=-1),"up"===this._direction&&(n.f+=window.innerHeight+e.height,n.d=-1);const o=this._getDialogBounds(e),r=i.matrixTransform(n),a=new DOMRect(r.x,r.y,o.width,o.height);return a.x+=window.innerWidth-a.right,a}_getDialogBounds(e){const t=Math.min(window.innerWidth,this._minWidth),i="down"===this._direction?window.innerHeight-e.bottom:e.top,n="left"===this._alignment?window.innerWidth-e.left:e.right;return{width:Math.max(t,n),height:i}}},ts=`var(--acorn-internal-popover-background-color, ${zi.Surface.elevation})`;function is(e){return"outside"===e.anchorStrategy?"8px":"0"}var ns={$host:{display:"block",outline:"0 !important",position:"relative",pointerEvents:"none",[Vi.HasTheme]:ji.False},focalRect:{anchorName:"--popover-focal-rect",position:function(e){return"relativeFocalRect"===e._displayMode?"absolute":"fixed"===e.getResolvedPositionStrategy()?"fixed":"absolute"},top:e=>`${e.focalRect.top}px`,left:e=>`${e.focalRect.left}px`,width:e=>`${e.focalRect.width}px`,height:e=>`${e.focalRect.height}px`,zIndex:bn.Top},dialog:{positionAnchor:"--popover-focal-rect",position:"var(--acorn-internal-popover-dialog-position, absolute)",pointerEvents:"auto",outline:"none !important",top:function(e){return"up"===e.direction?"auto":e._supportsPopoverApi?"outside"===e.anchorStrategy?"anchor(bottom)":"anchor(top)":`${e.dialogRect.y}px`},right:function(e){return"left"===e.alignment?"auto":e._supportsPopoverApi?`calc(anchor(right) + ${e.dialogRect.x}px)`:`${e.dialogRect.x}px`},bottom:function(e){return"down"===e.direction?"auto":e._supportsPopoverApi?"outside"===e.anchorStrategy?"anchor(top)":"anchor(bottom)":`${e.dialogRect.y}px`},left:function(e){return"right"===e.alignment?"auto":e._supportsPopoverApi?`calc(anchor(left) + ${e.dialogRect.x}px)`:`${e.dialogRect.x}px`},marginTop:is,marginBottom:is,maxWidth:function(e){return"stretch"===e.alignment?`${e.focalRect.width}px`:`${Math.min(e.maxWidth,e.dialogRect.width)}px`},minWidth:function(e){return"stretch"===e.alignment?`${e.focalRect.width}px`:`${Math.min(window.innerWidth,e.minWidth)}px`},maxHeight:function(e){return"fixed"===e.positionStrategy?`${Math.min(e.maxHeight,e.dialogRect.height)}px`:`${e.maxHeight}px`},border:0,padding:0,backgroundColor:ts,boxShadow:"1px 1px 10px 0px rgba(0,0,0,0.25)",overflow:"visible",...zn(),fontWeight:$n.Regular,"&[open]":{display:"flex"},"&:popover-open":{display:"flex"},"&::backdrop":{backgroundColor:"var(--acorn-internal-popover-backdrop-color, transparent)",clipPath:"var(--acorn-internal-popover-backdrop-clip-path, none)"}},canvasArrow:{position:"absolute",top:e=>"up"===e.direction?"auto":"-8px",bottom:e=>"down"===e.direction?"auto":"-8px",left:function(e){return"right"===e.alignment?"auto":e.showBackdrop&&!e._supportsCSSAnchor?e.focalRect.width/2-8+"px":e.focalRect.width/2-(8+e.dialogRect.x)+"px"},right:function(e){return"left"===e.alignment?"auto":e.showBackdrop&&!e._supportsCSSAnchor?e.focalRect.width/2-8+"px":e.focalRect.width/2-(8+e.dialogRect.x)+"px"},height:"8px",width:"16px",transformOrigin:"8px 4px",transform:function(e){return"up"===e.direction?"rotate(180deg) translate(0px, 0px)":"translate(0px, 0px)"}},arrowPolygon:{fill:ts}},os=class extends Mi{constructor(){super(...arguments),this.closeOnClickOutside=!0,this.open=!1,this.scrollOverflowContent=!0,this.showBackdrop=!1,this.showPointer=!1,this.closeOnReposition=!1,this.maxHeight=600,this.maxWidth=360,this.minWidth=360,this.direction="down",this.alignment="left",this.anchorStrategy="outside"}get focalRect(){return this._focalRect||new DOMRect}
135get dialogRect(){return this._dialogRect||new DOMRect}get _supportsPopoverApi(){var e,t;return void 0!==(null==(e=window.__acorn_ui_overlay_config__)?void 0:e.supportsPopoverApi)?null==(t=window.__acorn_ui_overlay_config__)?void 0:t.supportsPopoverApi:HTMLElement.prototype.hasOwnProperty("popover")&&CSS.supports("anchor-name","--foo")}get _supportsCSSAnchor(){var e,t;return void 0!==(null==(e=window.__acorn_ui_overlay_config__)?void 0:e.supportsCSSAnchor)?null==(t=window.__acorn_ui_overlay_config__)?void 0:t.supportsCSSAnchor:CSS.supports("anchor-name","--foo")}get _displayMode(){var e;return this.showBackdrop&&!this._supportsCSSAnchor?"relativePage":"fixed"===(null==(e=this._popoverApiFallback)?void 0:e.positionStrategy)?"relativeScreen":"relativeFocalRect"}disconnectedCallback(){var e,t;super.disconnectedCallback(),null==(e=this._unregisterPopoverListeners)||e.call(this),null==(t=this._popoverApiFallback)||t.close()}getStyle(){return ns}render(){return V(this.renderContent(),this.dialogElement),$` <div class="${this.classes.focalRect}">${this.dialogElement}</div> `}close(){this.closeCallback()}show(){this.open=!0}setFocalRect(e){switch(this._displayMode){case"relativePage":this._positionDialogRelativePage(e);break;case"relativeScreen":this._positionDialogRelativeScreen(e);break;case"relativeFocalRect":this._positionDialogRelativeFocalRect(e)}}getResolvedPositionStrategy(){var e;return(null==(e=this._popoverApiFallback)?void 0:e.positionStrategy)||"absolute"}refreshPosition(){this._requestReposition.emit()}onOpenChanged(){var e,t,i,n;if(this.dialogReady&&super.isShown()!==this.open)if(this.open){if(this._openBegin.emit(),this._supportsPopoverApi){const e=this._hasParentFixedPosition()?"fixed":"absolute";this.dialogElement.style.setProperty("--acorn-internal-popover-dialog-position",e)}if(this.showBackdrop)super.show(Mi.MODE.Modal),this._popoverApiFallback=void 0;else if(this._supportsPopoverApi)super.show(Mi.MODE.Popover);else{this._popoverApiFallback=this._popoverApiFallback||new Ja(this);const i=(null==(e=window.__acorn_ui_overlay_config__)?void 0:e.strategy)||this.positionStrategy;null==(t=this._popoverApiFallback)||t.open(this.dialogElement,i),super.show(Mi.MODE.Modeless)}this.refreshPosition(),this._openComplete.emit(),window.addEventListener("resize",this._onWindowResize),this._unregisterPopoverListeners=()=>window.removeEventListener("resize",this._onWindowResize),Ze.waitForReady(()=>{this.resolveFocus()})}else null==(i=this._unregisterPopoverListeners)||i.call(this),this._closeBegin.emit(),super.close(),this._closeComplete.emit(),null==(n=this._popoverApiFallback)||n.close()}renderContent(){return $`
136            <slot></slot>
137            ${this._renderPopoverArrow()}
138        `}closeCallback(){this.open&&(this.open=!1,this._close.emit())}_renderPopoverArrow(){return this.showPointer&&"inside"!==this.anchorStrategy?$`<svg class="${this.classes.canvasArrow}">
139            <polygon points="0,8 8,0 16,8" fill="rgba(0,0,0,0.10)" />
140            <polygon class="${this.classes.arrowPolygon}" points="0,9 8,1 16,9" />
141        </svg>`:null}_onWindowResize(){this.refreshPosition()}_positionDialogRelativePage(e){this._focalRect=e,this._dialogRect=new es(this.anchorStrategy,this.alignment,this.direction,this.minWidth).getDialogRect(e),this.invalidateStyle()}_positionDialogRelativeScreen(e){this._focalRect=e,this._dialogRect=this._getDialogBounds(e),this.invalidateStyle()}_positionDialogRelativeFocalRect(e){const t=this.getBoundingClientRect();this._focalRect=new DOMRect(e.x-t.x,e.y-t.y,e.width,e.height),this._dialogRect=this._getDialogBounds(e),this.invalidateStyle()}_getDialogBounds(e){const t="left"===this.alignment?window.innerWidth-e.left:e.right,i=Math.min(window.innerWidth,this.minWidth),n=Math.max(i,t),o=Math.min(0,t-n),r="down"===this.direction?window.innerHeight-e.bottom:e.top,a="outside"===this.anchorStrategy?e.height:0;return new DOMRect(o,a,n,r)}_hasParentFixedPosition(){const e="acornInternalPopoverResolvePosition";let t=!1;const i=e=>{t=e.composedPath().filter(e=>e instanceof HTMLElement).some(e=>"fixed"===getComputedStyle(e).position)};document.addEventListener(e,i);const n=new Event(e,{bubbles:!0,composed:!0});return this.dispatchEvent(n),document.removeEventListener(e,i),t}}
141;function rs(e){return function(t){const i=parseInt(t);return isNaN(i)?e:i}}Ka([gt(),zt({type:Boolean})],os.prototype,"open",2),Ka([gt()],os.prototype,"scrollOverflowContent",2),Ka([gt(),zt({type:Boolean})],os.prototype,"showBackdrop",2),Ka([gt(),zt({type:Boolean})],os.prototype,"showPointer",2),Ka([gt(),zt({type:Boolean})],os.prototype,"closeOnReposition",2),Ka([gt({propertyFormatter:rs(600)}),zt({type:Number})],os.prototype,"maxHeight",2),Ka([gt({propertyFormatter:rs(360)}),zt({type:Number})],os.prototype,"maxWidth",2),Ka([gt({propertyFormatter:rs(360)}),zt({type:Number})],os.prototype,"minWidth",2),Ka([gt(),zt({type:Ya})],os.prototype,"positionStrategy",2),Ka([gt(),zt({type:Qa})],os.prototype,"direction",2),Ka([gt(),zt({type:Za})],os.prototype,"alignment",2),Ka([gt(),zt({type:Xa})],os.prototype,"anchorStrategy",2),Ka([ft({name:"close"})],os.prototype,"_close",2),Ka([ft({name:"openBegin"})],os.prototype,"_openBegin",2),Ka([ft({name:"openComplete"})],os.prototype,"_openComplete",2),Ka([ft({name:"closeBegin"})],os.prototype,"_closeBegin",2),Ka([ft({name:"closeComplete"})],os.prototype,"_closeComplete",2),Ka([ft({name:"requestReposition"})],os.prototype,"_requestReposition",2),Ka([wi("open"),wi("dialogReady")],os.prototype,"onOpenChanged",1),Ka([Pe()],os.prototype,"closeCallback",1),Ka([Pe(),Nt(100)],os.prototype,"_onWindowResize",1),os=Ka([_t({tag:"acorn-internal-popover"})],os);var as=Object.defineProperty,ss=Object.getOwnPropertyDescriptor,ls=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?ss(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&as(t,i,r),r},cs=(e=>(e.ErrorTypeChange="errorTypeChange",e))(cs||{}),ds=(e=>(e.PatternMismatch="patternMismatch",e.TypeMismatch="typeMismatch",e.TooLong="tooLong",e.TooShort="tooShort",e.ValueMissing="valueMissing",e.RangeUnderflow="rangeUnderflow",e.RangeOverflow="rangeOverflow",e.CustomError="customError",e.BadInput="badInput",e.StepMismatch="stepMismatch",e))(ds||{}),hs={$host:{display:"block"},wrapper:{...ro(()=>to.Invalid),maxWidth:"inherit",position:"relative"},text:{verticalAlign:"middle"},icon:{verticalAlign:"middle",paddingRight:"8px"}},ps=class extends Ti{getStyle(){return hs}render(){return $`
142            <div class="${this.classes.wrapper}">
143                <acorn-internal-icon
144                    class="${this.classes.icon}"
145                    icon="${Zo.CircleExclamation}"
146                    size="${Jo.Regular}"
147                    color="${zi.Icon.error}"
148                ></acorn-internal-icon
149                ><span class="${this.classes.text}"><slot></slot></span
150                ><span class="${this.classes.text}"><slot name="error"></slot></span>
151            </div>
152        `}onErrorChange(e,t,i){i||this._errorTypeEvent.emit({error:e})}};ls([gt(),zt({type:ds})],ps.prototype,"error",2),ls([ft({bubbles:!0,name:"errorTypeChange"})],ps.prototype,"_errorTypeEvent",2),ls([wi("error",{triggerOn:pi.ChangeAndConnect})],ps.prototype,"onErrorChange",1),ps=ls([_t({tag:"acorn-form-field-error"})],ps);var us=Object.defineProperty,gs=Object.getOwnPropertyDescriptor,ms=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?gs(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&us(t,i,r),r};function bs(){return new CustomEvent("input",{bubbles:!0,cancelable:!1,composed:!0})}function vs(){return new CustomEvent("change",{bubbles:!0,cancelable:!1,composed:!1})}var ys=class{constructor(e,t){this._validityStateFlags={},this._shadowRoot=null,this._hostElement=e,this._modelElement=t;const i=this;this._validityStateInstance=function(e){class t{get badInput(){return!!e("badInput")}get customError(){return!!e("customError")}get patternMismatch(){return!!e("patternMismatch")}get rangeOverflow(){return!!e("rangeOverflow")}get rangeUnderflow(){return!!e("rangeUnderflow")}get stepMismatch(){return!!e("stepMismatch")}get tooLong(){return!!e("tooLong")}get tooShort(){return!!e("tooShort")}get typeMismatch(){return!!e("typeMismatch")}get valid(){return!(this.badInput||this.customError||this.patternMismatch||this.rangeOverflow||this.rangeUnderflow||this.stepMismatch||this.tooLong||this.tooShort||this.typeMismatch||this.valueMissing)}get valueMissing(){return!!e("valueMissing")}}return Object.getOwnPropertyNames(t.prototype).filter(e=>
152"constructor"!==e).forEach(e=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e),n=Object.assign(i||{},{enumerable:!0});Object.defineProperty(t.prototype,e,n)}),new t}(e=>i._validityStateFlags[e])}get ariaAtomic(){return this._hostElement.ariaAtomic}set ariaAtomic(e){this._hostElement.ariaAtomic=e}get ariaAutoComplete(){return this._hostElement.ariaAutoComplete}set ariaAutoComplete(e){this._hostElement.ariaAutoComplete=e}get ariaBrailleLabel(){return null}set ariaBrailleLabel(e){}get ariaBrailleRoleDescription(){return null}set ariaBrailleRoleDescription(e){}get ariaBusy(){return this._hostElement.ariaBusy}set ariaBusy(e){this._hostElement.ariaBusy=e}get ariaChecked(){return this._hostElement.ariaChecked}set ariaChecked(e){this._hostElement.ariaChecked=e}get ariaColCount(){return this._hostElement.ariaColCount}set ariaColCount(e){this._hostElement.ariaColCount=e}get ariaColIndex(){return this._hostElement.ariaColIndex}set ariaColIndex(e){this._hostElement.ariaColIndex=e}get ariaColIndexText(){return null}set ariaColIndexText(e){}get ariaColSpan(){return this._hostElement.ariaColSpan}set ariaColSpan(e){this._hostElement.ariaColSpan=e}get ariaCurrent(){return this._hostElement.ariaCurrent}set ariaCurrent(e){this._hostElement.ariaCurrent=e}get ariaDescription(){return this._hostElement.ariaDescription}set ariaDescription(e){this._hostElement.ariaDescription=e}get ariaDisabled(){return this._hostElement.ariaDisabled}set ariaDisabled(e){this._hostElement.ariaDisabled=e}get ariaExpanded(){return this._hostElement.ariaExpanded}set ariaExpanded(e){this._hostElement.ariaExpanded=e}get ariaHasPopup(){return this._hostElement.ariaHasPopup}set ariaHasPopup(e){this._hostElement.ariaHasPopup=e}get ariaHidden(){return this._hostElement.ariaHidden}set ariaHidden(e){this._hostElement.ariaHidden=e}get ariaInvalid(){return this._hostElement.ariaInvalid}set ariaInvalid(e){this._hostElement.ariaInvalid=e}get ariaKeyShortcuts(){return this._hostElement.ariaKeyShortcuts}set ariaKeyShortcuts(e){this._hostElement.ariaKeyShortcuts=e}get ariaLabel(){return this._hostElement.ariaLabel}set ariaLabel(e){this._hostElement.ariaLabel=e}get ariaLevel(){return this._hostElement.ariaLevel}set ariaLevel(e){this._hostElement.ariaLevel=e}get ariaLive(){return this._hostElement.ariaLive}set ariaLive(e){this._hostElement.ariaLive=e}get ariaModal(){return this._hostElement.ariaModal}set ariaModal(e){this._hostElement.ariaModal=e}get ariaMultiLine(){return this._hostElement.ariaMultiLine}set ariaMultiLine(e){this._hostElement.ariaMultiLine=e}get ariaMultiSelectable(){return this._hostElement.ariaMultiSelectable}set ariaMultiSelectable(e){this._hostElement.ariaMultiSelectable=e}get ariaOrientation(){return this._hostElement.ariaOrientation}set ariaOrientation(e){this._hostElement.ariaOrientation=e}get ariaPlaceholder(){return this._hostElement.ariaPlaceholder}set ariaPlaceholder(e){this._hostElement.ariaPlaceholder=e}get ariaPosInSet(){return this._hostElement.ariaPosInSet}set ariaPosInSet(e){this._hostElement.ariaPosInSet=e}get ariaPressed(){return this._hostElement.ariaPressed}set ariaPressed(e){this._hostElement.ariaPressed=e}get ariaReadOnly(){return this._hostElement.ariaReadOnly}set ariaReadOnly(e){this._hostElement.ariaReadOnly=e}get ariaRelevant(){return null}set ariaRelevant(e){}get ariaRequired(){return this._hostElement.ariaRequired}set ariaRequired(e){this._hostElement.ariaRequired=e}get ariaRowIndexText(){return null}set ariaRowIndexText(e){}get ariaRoleDescription(){return this._hostElement.ariaRoleDescription}set ariaRoleDescription(e){this._hostElement.ariaRoleDescription=e}get ariaRowCount(){return this._hostElement.ariaRowCount}set ariaRowCount(e){this._hostElement.ariaRowCount=e}get ariaRowIndex(){return this._hostElement.ariaRowIndex}set ariaRowIndex(e){this._hostElement.ariaRowIndex=e}get ariaRowSpan(){return this._hostElement.ariaRowSpan}set ariaRowSpan(e){this._hostElement.ariaRowSpan=e}get ariaSelected(){return this._hostElement.ariaSelected}set ariaSelected(e){this._hostElement.ariaSelected=e}get ariaSetSize(){return this._hostElement.ariaSetSize}set ariaSetSize(e){this._hostElement.ariaSetSize=e}get ariaSort(){return this._hostElement.ariaSort}set ariaSort(e){this._hostElement.ariaSort=e}get ariaValueMax(){return this._hostElement.ariaValueMax}set ariaValueMax(e){this._hostElement.ariaValueMax=e}get ariaValueMin(){return this._hostElement.ariaValueMin}set ariaValueMin(e){this._hostElement.ariaValueMin=e}get ariaValueNow(){return this._hostElement.ariaValueNow}set ariaValueNow(e){this._hostElement.ariaValueNow=e}get ariaValueText(){return this._hostElement.ariaValueText}set ariaValueText(e){this._hostElement.ariaValueText=e}get role(){return this._hostElement.role}
152set role(e){this._hostElement.role=e}get shadowRoot(){return this._shadowRoot}get states(){throw new Error("CustomStateSet is not supported!")}get form(){var e;return(null==(e=this._modelElement)?void 0:e.form)?this._modelElement.form:null}get willValidate(){return!!this._modelElement&&this._modelElement.willValidate}get validity(){return this._validityState}get validationMessage(){return this._validationMessage||""}get labels(){throw Error("ElementInternals.labels property not yet implemented")}get _validityState(){return this._validityStateInstance}attachShadow(e){if(this._shadowRoot)throw new Error("Shadow root already attached");return this._shadowRoot=this._hostElement.attachShadow(e),this._shadowRoot}addState(){throw new Error("Not implemented")}removeState(){throw new Error("Not implemented")}setFormValue(e){this._modelElement&&(null!==e?(!this._modelElement.name&&this._hostElement.name&&(this._modelElement.name=this._hostElement.name),this._modelElement.value=e):this._modelElement.name&&(this._modelElement.name=""))}setValidity(e,t){this._validityStateFlags=e;if(Object.keys(e).some(t=>!0===e[t])&&!t)throw new TypeError("Message must be provided if one or more validity state flags is set to true");this._validationMessage=t||"",this._modelElement&&this._modelElement.validationMessage!==this._validationMessage&&this._modelElement.setCustomValidity(this._validationMessage)}
152checkValidity(){const e=this._validityState.valid;if(!e){const e=new CustomEvent("invalid");this._modelElement?this._modelElement.dispatchEvent(e):this._hostElement.dispatchEvent(e)}return e}reportValidity(){try{return!this._modelElement||this._modelElement.reportValidity()}catch(e){return!0}}},_s=(e=>(e.PatternMismatch="patternMismatch",e.TypeMismatch="typeMismatch",e.TooLong="tooLong",e.TooShort="tooShort",e.ValueMissing="valueMissing",e.RangeUnderflow="rangeUnderflow",e.RangeOverflow="rangeOverflow",e.CustomError="customError",e.BadInput="badInput",e.StepMismatch="stepMismatch",e))(_s||{}),fs="",xs="error",ws="help",Cs="hint",Ss=(e=>(e.Auto="auto",e.InvalidState="invalid-state",e.None="none",e))(Ss||{});var $s=Ve.createTranslation({ValidationErrorValueMissing:{sv:"Fyll i detta obligatoriska fält.",en:"Fill in this mandatory field."},ValidationErrorPatternMismatch:{sv:"Formatera värdet på annat sätt.",en:"Enter the value in a different format."},ValidationErrorTypeMismatch:{sv:"Formatera värdet på annat sätt.",en:"Enter the text in a different format."},ValidationErrorTooLong:{sv:"Förkorta texten.",en:"Shorten your text."},ValidationErrorTooShort:{sv:"Ange en längre text.",en:"Enter more text."},ValidationErrorRangeOverflow:{sv:"Ange ett värde som är lägre.",en:"Enter a lower value."},ValidationErrorRangeUnderflow:{sv:"Ange ett värde som är högre.",en:"Enter a higher value."},ValidationErrorEmailPatternMismatch:{sv:"Ange en giltig e-postadress.",en:"Enter a valid e-mail address."},ValidationErrorCustomError:{sv:"Ange ett annat värde.",en:"Enter another value."},ValidationErrorStepMismatch:{sv:"Ange ett annat värde.",en:"Enter another value."},ValidationErrorBadInput:{sv:"Ange ett annat värde.",en:"Enter another value."}});function ks(){return{...Wn(),color:e=>function(e){if(e.shouldShowInvalidState())return zi.Text.error;if(e.disabled)return zi.Text.disabled;return zi.Text.Regular.high}(e),boxSizing:"border-box",display:e=>e.hideLabel||!e.label?"none":"inline",padding:"0","&:empty":{display:"none"}}}var Es={$host:{display:"block",...Ln(Dn.Medium,Jn),maxWidth:Xn,"&(:focus)":{outline:"none !important"}},formFieldWrapper:{display:"block",width:"100%",pointerEvents:e=>e.disabled?"none":void 0},hintWrapper:{display:e=>e.shouldShowInvalidState()?"none":void 0},modelElementWrapper:{position:"absolute",left:"-9999px",top:"-9999px"},label:ks(),labelText:{whiteSpace:"pre-line"},labelWrapper:{display:"flex",marginBottom:"0.4em"}},Ts="_submittable-form-control-"+Date.now(),Is=class extends Ti{constructor(){super(),this.autofocus=!1,this.disabled=!1,this.label="",this.hideLabel=!1,this.name="",this.readOnly=!1,this.dirty=!1,this.touched=!1,this.changed=!1,this.errorHandling="auto",this.showInvalidState=!1,this._hasFocusState=!1,this._isAttached=!1,this._errorTypes=[],this._externalErrorState={},this._internalErrorState={},this._validationMessageAfterLastValidityUpdate=null,this._firstCall=!0,document.body.addEventListener("reset",this._onFormReset),this.addEventListener("input",this.onInputEvent),this.addEventListener("change",this.onChangeEvent,!0),this.addEventListener("invalid",this.onInvalidEvent),this.onFocusElementEvent=this.onFocusElementEvent.bind(this),this.shadowRoot.addEventListener("focusin",this.onFocusElementEvent),this.shadowRoot.addEventListener("focusout",this.onFocusElementEvent),this.elementInternals=this.attachFormFieldElement()}set error(e){this._externalErrorState={},Object.keys(e||{}).forEach(t=>{e[t]&&(this._externalErrorState[t]=!0)}),this.updateValidity(this._internalErrorState)}get error(){throw Error(`Error property has no getter. Use validity property on ${this.localName} element instead.`)}get form(){return this.elementInternals.form}get validationMessage(){return this.elementInternals.validationMessage}get validity(){return this.elementInternals.validity}get willValidate(){return this.elementInternals.willValidate}get helpSlotNodes(){const e=this.shadowRoot.querySelector(`slot[name="${ws}"]`);return e?[...e.assignedElements()]:[]}get hintSlotNodes(){const e=this.shadowRoot.querySelector(`slot[name="${Cs}"]`);return e?[...e.assignedElements()]:[]}getStyle(){return Es}focus(e){super.focus(e);const t=this.getFocusElement();this===t?this.updateFormControlFocusState(!0):t&&!t.contains(this.shadowRoot.activeElement)&&(t.focus(),this.updateFormControlFocusState(!0))}shouldShowInvalidState(){if("none"!==this.errorHandling){if(this.validity.valid)return!1;if(this.showInvalidState)return!0;
152if(this.touched&&this.dirty)return!0;if(this.changed)return!0}return!1}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this.isConnected&&(fe.register(this),this.modelElement&&!this.contains(this.modelElement)&&this.appendChild(this.modelElement))}disconnectedCallback(){var e;null==(e=document.body)||e.removeEventListener("reset",this._onFormReset),fe.unregister(this)}checkValidity(){return this.elementInternals.checkValidity()}setCustomValidity(e){this._customValidityMessage=e,this.updateValidity(this.validity,{customError:!!e})}reportValidity(){const e=this.checkValidity();return this.showInvalidState=!e,e}reset(){this.showInvalidState=!1,this.dirty=!1,this.touched=!1,this.changed=!1}hasError(e){return-1!==this._errorTypes.indexOf((e||"").toLowerCase())}_hasFormControlFocusState(){return this._hasFocusState}attachFormFieldElement(){const e=this.render;if(this.render=function(...t){const i=e.call(this,...t);return $`
153                ${i}
154                <!-- Below we render the "model" element that will be used when a form is submitted -->
155                <div class="${this.classes.modelElementWrapper}" aria-hidden="true">
156                    <slot name="${Ts}"></slot>
157                </div>
158            `},this._isAttached)throw Error(`${this.localName} has already been attached`);return this._isAttached=!0,this.modelElement=this.getModelElement(),this.modelElement&&(this.modelElement.slot=Ts),new ys(this,this.modelElement)}getModelElement(){}labelTemplate(e,t,i){const n=i||this._onLabelClickDefault,o=this.helpSlotNodes.length>0;return $`
159            <div class="${this.classes.labelWrapper}">
160                ${"string"==typeof e?$`
161                          <label
162                              class="${this.classes.label}"
163                              for="${j(t||void 0)}"
164                              @click="${n}"
165                              ><span class="${this.classes.labelText}">${e}</span></label
166                          >
167                      `:e}
168                <div
169                    aria-labelledby="${j(o&&t?t:void 0)}"
170                >
171                    <slot name="${ws}"></slot>
172                </div>
173            </div>
174        `}hintTemplate(){return $` <div class="${this.classes.hintWrapper}">
175            <slot name="${Cs}"></slot>
176        </div>`}updateFormValue(e){this.elementInternals.setFormValue(e)}onDisabledStateChange(){this.hintSlotNodes.forEach(e=>{var t;null==(t=e.invalidate)||t.call(e)})}onChangeEvent(e){if(this.dirty=!0,this.changed=!0,this===e.target||!this.contains(e.target)){if(this._lastEvent===e)return;e.stopImmediatePropagation(),this._lastEvent=vs(),this.dispatchEvent(this._lastEvent)}this.reportValidity()}onFocusElementEvent(e){const t=this.shadowRoot.activeElement===this.getFocusElement();this.updateFormControlFocusState(t)}onInputEvent(){this.dirty=!0}onInvalidEvent(e){this.showInvalidState=!0}updateFormControlFocusState(e){if(e===this._hasFocusState)return;this._focusStateChange.emit({focusState:e}).defaultPrevented||(this._hasFocusState=e,this.invalidateStyle(),e||(this.touched=!0),(this.touched&&this.dirty||this.changed)&&this.reportValidity())}updateValidity(...e){this._internalErrorState=this._mergeErrors(...e);const t=this._mergeErrors(this._internalErrorState,this._externalErrorState||{}),i=this._extractInvalid(t);let n="";if(!n){let e=0;for(;!n&&e<i.length;)n=this.getErrorMessage(i[e++])}const o=this._mergeErrors(this.validity);this.elementInternals.setValidity(t,n),this.validity.valid&&(this.showInvalidState=!1);const r=[...this._errorTypes],a=Object.assign({},this._internalErrorState,this._externalErrorState);this._errorTypes=this._extractInvalid(a).sort().map(e=>e.toLowerCase());let s=this._errorTypes.join(",")!==r.join(",")||n!==this._validationMessageAfterLastValidityUpdate;this.shouldShowInvalidState()&&this._firstCall&&(this._firstCall=!1,s=!0),s&&this._validityChangeEvent.emit({current:{validity:t,message:n}
176,previous:{validity:o,message:this._validationMessageAfterLastValidityUpdate}}),this._validationMessageAfterLastValidityUpdate=this.validationMessage}getErrorMessage(e){if(this._customValidityMessage)return this._customValidityMessage;switch(e){case"patternMismatch":return $s.ValidationErrorPatternMismatch;case"typeMismatch":return $s.ValidationErrorTypeMismatch;case"tooLong":return $s.ValidationErrorTooLong;case"tooShort":return $s.ValidationErrorTooShort;case"valueMissing":return $s.ValidationErrorValueMissing;case"rangeUnderflow":return $s.ValidationErrorRangeUnderflow;case"rangeOverflow":return $s.ValidationErrorRangeOverflow;case"customError":return $s.ValidationErrorCustomError;case"badInput":return $s.ValidationErrorBadInput;case"stepMismatch":return $s.ValidationErrorStepMismatch;default:return""}}getFocusElement(){throw new Error(`${this.constructor.name} needs to implement getFocusElement() method!`)}_onLabelClickDefault(e){e.stopPropagation()}_onFormReset(e){e.target!==this.form||e.defaultPrevented||this.reset()}_mergeErrors(...e){const t={valueMissing:!1,patternMismatch:!1,badInput:!1,customError:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1},i=[];return e.forEach(e=>{this._extractInvalid(e).forEach(e=>{-1===i.indexOf(e)&&i.push(e)})}
176),i.forEach(e=>{if("valid"===e)return;t[e in t?e:"customError"]=!0}),t}_extractInvalid(e){const t=[];for(const i in e)e[i]&&t.push(i);return t}};ms([gt({name:"aria-label"})],Is.prototype,"ariaLabel",2),ms([gt({reflect:!0}),zt({type:Boolean})],Is.prototype,"autofocus",2),ms([gt({reflect:!0}),zt({type:Boolean})],Is.prototype,"disabled",2),ms([gt({reflect:!0})],Is.prototype,"label",2),ms([gt({name:"hide-label",reflect:!0}),zt({type:Boolean})],Is.prototype,"hideLabel",2),ms([gt({reflect:!0,toAttribute:e=>""===e?null:e})],Is.prototype,"name",2),ms([gt({name:"readonly",reflect:!0}),zt({type:Boolean})],Is.prototype,"readOnly",2),ms([gt(),zt({type:Ss})],Is.prototype,"errorHandling",2),ms([zt({type:String}),gt({fromAttribute:e=>{const t={};if(!e)return t;return e.split(" ").map(e=>e.trim()).forEach(e=>{t[e]=!0}),t}})],Is.prototype,"error",1),ms([ft({bubbles:!1,cancelable:!0,composed:!1,name:"validityChange"})],Is.prototype,"_validityChangeEvent",2),ms([ft({cancelable:!0})],Is.prototype,"_focusStateChange",2),ms([wi("disabled")],Is.prototype,"onDisabledStateChange",1),ms([Pe()],Is.prototype,"_onFormReset",1);var Os=e=>Qt(e,ps);function Ds(e){class t extends e{constructor(){super(...arguments),this.__errorState="hidden",this.__mutationObserver=new MutationObserver(this.__onChildrenChange)}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this.isConnected&&(this.__mutationObserver.observe(this,{childList:!0,attributes:!0}),this.__onChildrenChange(),this.addEventListener(cs.ErrorTypeChange,this.__onErrorTypeChange),this.__defaultFormFieldError||(this.__defaultFormFieldError=document.createElement(ps.config.tag),this.__defaultFormFieldError.setAttribute("slot",xs),this.__defaultFormFieldError.style.display="none",this.appendChild(this.__defaultFormFieldError)))}disconnectedCallback(){var e;null==(e=super.disconnectedCallback)||e.call(this),this.removeEventListener(cs.ErrorTypeChange,this.__onErrorTypeChange),this.__mutationObserver.disconnect()}updateErrors(e=!1){(e||this.__shouldUpdate())&&(this.__updateErrorElements(),this.invalidate(!1))}errorTemplate(){return $`<div>
177                <slot name="${xs}"></slot>
178            </div>`}__isErrorShown(){return"hidden"!==this.__errorState}__shouldUpdate(){if(!this.__shouldCheckForErrors())return"hidden"!==this.__errorState;if("hidden"===this.__errorState)return!0;const e=this.__getCustomErrorToBeShown();return e?e!==this.__visibleError:this.__shownValidationMessage!==this.validationMessage}__updateErrorElements(){const e=this.__visibleError;if(this.__shouldCheckForErrors()){const t=this.__getCustomErrorToBeShown();e&&t!==e&&this.__hideVisibleErrorElement(e),t?(this.__errorState="customShown",this.__showErrorElement(t)):(this.__errorState="defaultShown",this.__defaultFormFieldError&&(this.__defaultFormFieldError.innerText=this.validationMessage,this.__showErrorElement(this.__defaultFormFieldError)))}else this.__errorState="hidden",e&&this.__hideVisibleErrorElement(e)}__hideVisibleErrorElement(e){e&&(this.__hideErrorElement(e),this.__visibleError=void 0)}__showErrorElement(e){e&&(e.style.display="block",this.__visibleError=e)}__hideErrorElement(e){e&&(e.style.display="none")}__getCustomErrorToBeShown(){const e=[...this.children],t=e.filter(Os);e.filter(e=>
178"slot"===e.localName&&"error"===e.getAttribute("name")).forEach(e=>{e.assignedElements().filter(Os).forEach(e=>t.push(e))});let i=t.find(e=>(e.error||"").split(" ").map(e=>e.trim()).some(e=>this.hasError(e)));return i||(i=t.find(e=>!e.getAttribute("error")&&this.__defaultFormFieldError!==e)),i}__shouldCheckForErrors(){return this.__shouldHandleErrors()&&this.shouldShowInvalidState()}__shouldHandleErrors(){return"invalid-state"!==this.errorHandling&&"none"!==this.errorHandling}__onChildrenChange(){this.__shouldHandleErrors()&&([...this.children].filter(e=>e.slot===xs).filter(Os).forEach(this.__hideErrorElement),this.updateErrors(!0));const e=[...this.children].filter(e=>!e.slot).filter(Os);e.length&&this.__shouldHandleErrors()&&e.forEach(e=>{e.slot=xs,this.__hideErrorElement(e)})}__onErrorTypeChange(){this.updateErrors(!0)}}return ms([Pe()],t.prototype,"__onChildrenChange",1),ms([Pe()],t.prototype,"__onErrorTypeChange",1),t}function Rs(e,t,i,n){const o=document.createElement(t);i&&"type"in o&&(o.type=i),o.setAttribute("aria-hidden","true"),o.setAttribute("tabindex","-1");const r=function(e,t){const i=[];return e.map(e=>{let n=e;if(n in t)return n;if(n=e.toLowerCase(),n in t)return n;if(n=xe(e),n in t)return n;if(!i.length)for(const e in t)i.push(e);return n=n.toLowerCase(),i.find(e=>e.toLowerCase()===n)}).filter(e=>e)}(e.constructor.observedAttributes||[],e);var a,s,l;return Fs(e,o,r,n),a=e,s=o,l=n,r.filter(e=>{if("error"===e)return!1;const t=a[e],i=s[e];return(!l||l(a,s,e))&&e in a&&e in s&&t!==i&&!isNaN(t)&&null!=t}
178).forEach(e=>{s[e]=a[e]}),Fs(o,e,r,n),function(e,t){const i=Object.getPrototypeOf(e),n=Object.getOwnPropertyDescriptor(i,"checkValidity"),o=Object.assign({},n,{value:()=>t.checkValidity()});Object.defineProperty(e,"checkValidity",o)}(o,e),function(e,t){const i=Object.getPrototypeOf(e),n=Object.getOwnPropertyDescriptor(i,"validity"),o=Object.assign({},n,{get:()=>t.validity});Object.defineProperty(e,"validity",o)}(o,e),function(e,t){const i=Object.getPrototypeOf(e),n=Object.getOwnPropertyDescriptor(i,"setCustomValidity"),o=Object.assign({},n,{value(e){(null==n?void 0:n.value)&&n.value.call(this,e),t.validationMessage!==e&&t.setCustomValidity(e)}});Object.defineProperty(e,"setCustomValidity",o)}(o,e),o.addEventListener("invalid",As.bind(void 0,e)),o.addEventListener("reset",As.bind(void 0,e)),o.addEventListener("focus",()=>e.focus()),o}function Fs(e,t,i,n){const o=Object.getPrototypeOf(e);i.filter(i=>i in t&&i in e).forEach(i=>{const r=Ls(o,i)||{},{set:a}=r,s=Object.assign({},r,{set(o){a&&a.call(this,o);const r=t[i],s=!n||n(e,t,i);s&&s&&r!==o&&(t[i]=o)}});delete e[i]&&Object.defineProperty(e,i,s)})}function Ls(e,t,i=1){if(e&&"Element"!==e.constructor.name)return Object.getOwnPropertyDescriptor(e,t)||Ls(Object.getPrototypeOf(e),t,++i)}function As(e,t){const{bubbles:i,cancelable:n,composed:o}=t,r={bubbles:i,cancelable:n,composed:o};t.preventDefault(),e.dispatchEvent(new CustomEvent(t.type,r))}var Ms=Ds(Is),Bs=["acorn-radio","acorn-checkbox","acorn-combo-box"].map(e=>yt(e)),Ps=class extends Ms{constructor(){super(),this.required=!1,this.valueFromAttribute="",this.initialValue="",this._value="",this.addEventListener("validityChange",this.onValidityChangeEvent),this.addEventListener("keypress",this.onKeyEvent)}get value(){return this._value}set value(e){let t=e;Bs.some(e=>Qt(this,e))||(t=null==e?"":e.toString()),t!==this._value&&(this._value=t,this.modelElement&&"value"in this.modelElement&&(this.modelElement.value=this._value),this.updateFormValue(this._value),super.invalidate())}get modelElementType(){return null}get modelElementTagName(){return null}getStyle(){return super.getStyle()}reset(){super.reset();const e=this.hasAttribute("value")?this.getAttribute("value"):this.initialValue;this.value=null!=e?e:"",this.updateErrors()}getModelElement(){const e=!this.modelElementTagName&&this.modelElementType?"input":this.modelElementTagName;if(!e)throw Error(`You need to specify modelElementType and/or modelElementTagName for the model element in ${this.localName}. You need to specify property as a getter!`);return Rs(this,e,this.modelElementType,this.shouldSyncModelRelatedProperty.bind(this))}onValueAttributeChange(e){this.initialValue="string"==typeof e?e:"",!this.dirty&&this.hasAttribute("value")&&(this.value=e)}shouldSyncModelRelatedProperty(e,t,i){return"value"!==i||t!==this.modelElement}onInvalidEvent(e){super.onInvalidEvent(e),e.defaultPrevented||this.updateErrors()}onValidityChangeEvent(){this.updateErrors()}onKeyEvent(e){if(e.target===this&&"Enter"===e.key&&this.form){const e=[...this.form.elements].find(e=>"submit"===e.getAttribute("type"));if(e&&!e.disabled){const e=document.createElement("input");e.setAttribute("type","submit"),e.setAttribute("style","display: none;"),this.form.appendChild(e),e.click(),this.form.removeChild(e)}}}preventBrowserSpecificValidationErrorToBeShown(e){"invalid"===e.type&&e.preventDefault()}};ms([gt({reflect:!0}),zt({type:Boolean})],Ps.prototype,"required",2),ms([gt({name:"aria-required",fromAttribute:e=>"true"===e||"false"===e?e:null})],Ps.prototype,"ariaRequired",2),ms([gt({name:"value",reflect:!1})],Ps.prototype,"valueFromAttribute",2),ms([wi("valueFromAttribute",{triggerOn:pi.ChangeAndConnect})],Ps.prototype,"onValueAttributeChange",1),Ps=ms([vt()],Ps);var Ns={legend:{...ks(),cursor:"default",padding:0,display:"flex",paddingBottom:"0.2em"},legendText:{whiteSpace:"pre-line",display:"inline-block"}},Hs=class e extends(Ds(Is)){get elements(){return[...this.children].filter(e=>e.slot===fs)}constructor(){super(),this.addEventListener("input",this.onHostInputEvent),this.addEventListener("change",this.onHostChangeEvent),this.addEventListener("validityChange",this.updateErrors.bind(this,!1)),this.addEventListener("invalid",this.onHostInvalidEvent),this._mutationObserver=new MutationObserver(this._onChildElementChange)}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this._mutationObserver.observe(this,{childList:!0,attributes:!0}),this._onChildElementChange()}disconnectedCallback(){var e;null==(e=super.disconnectedCallback)||e.call(this),this._mutationObserver.disconnect()}
178reset(){this.elements.forEach(e=>{e.reset()}),super.reset(),this.updateErrors(),this.updateValidity()}getStyle(){return ge({},super.getStyle(),Ns)}getModelElement(){return Rs(this,"input","text",this.shouldSyncProperty.bind(this))}legend(t){return $`
179            <div class="${this.classes.legend}">
180                <div class="${this.classes.legendText}" id="${e.labelId}">${t}</div>
181                <slot name="${ws}"></slot>
182            </div>
183        `}onHostChangeEvent(){this.dirty=!0,this.reportValidity(),this.updateErrors()}onHostInputEvent(){this.dirty=!0,this.shouldShowInvalidState()&&this.updateErrors()}onHostInvalidEvent(){this.showInvalidState=!this.validity.valid,this.updateErrors()}onFocusElementEvent(e){this._hasFormControlFocusState()&&"focusout"===e.type?setTimeout(()=>{this.updateFormControlFocusState(this._hasFocus())},100):this.updateFormControlFocusState(this._hasFocus())}getFocusElement(){return this.elements[0]}shouldSyncProperty(e,t,i){return!0}_hasFocus(){const e=document.activeElement;return!!e&&this.elements.some(t=>t.contains(e))}_onChildElementChange(){this.elements.filter(e=>function(e){return Xt(e)&&"ariaLabel"in e&&"autofocus"in e&&"disabled"in e&&"label"in e&&"hideLabel"in e&&"name"in e&&"readOnly"in e&&"dirty"in e&&"touched"in e&&"changed"in e&&"errorHandling"in e&&"error"in e&&"form"in e&&"validationMessage"in e&&"validity"in e&&"willValidate"in e&&"shouldShowInvalidState"in e&&"checkValidity"in e&&"setCustomValidity"in e&&"reportValidity"in e&&"reset"in e&&"hasError"in e}(e)).forEach(e=>{e.errorHandling="none"})}};Hs.labelId="label",ms([Pe()],Hs.prototype,"_onChildElementChange",1);var zs=Hs,Ws=Object.defineProperty,Vs=Object.getOwnPropertyDescriptor,js=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Vs(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Ws(t,i,r),r},Gs=Ve.createTranslation({Expand:{sv:"Expandera till helskärm",en:"Expand to full screen"}}),qs=ai.isFirefox?"100vh":"100dvh",Us={$host:{display:"block",outline:"0 !important",[Vi.HasTheme]:ji.False},dialog:{margin:0,border:0,padding:0,minHeight:qs,maxHeight:qs,height:qs,width:"100vw",top:"100%",minWidth:"100vw",backgroundColor:zi.Surface.elevation,overscrollBehavior:"contain","&::backdrop":{backgroundColor:zi.Overlay.scrim},...zn(),fontWeight:$n.Regular},canvas:{maxHeight:"100%",minHeight:"100%",width:"100vw",display:"flex",flexDirection:"column",userSelect:e=>e.snapToFullscreen?"auto":"none"},canvasBody:{flex:"1 1 100vh"},resizeHandle:{...Qi(),display:"block",height:"32px",margin:"0 auto",padding:"0 24px",border:"0",boxSizing:"content-box",background:"transparent","&::after":{content:"''",display:"flex",height:"4px",width:"100px",borderRadius:"2px",backgroundColor:zi.Line.Regular.medium}}},Ks="canvas",Ys="header",Xs="scroll-content",Qs="footer",Zs=class extends Mi{constructor(){super(...arguments),this.closeOnClickOutside=!0,this.open=!1,this.snapToFullscreen=!1,this.scrollOverflowContent=!0}get _dialog(){return this.shadowRoot.querySelector("dialog")}get _canvas(){return this.shadowRoot.getElementById(Ks)}getStyle(){return Us}close(){this.closeCallback()}show(){this.open=!0}onOpenChanged(){this.dialogReady&&super.isShown()!==this.open&&(this.open?(super.show(Mi.MODE.Modal),this._openBegin.emit(),this._canvasYStart=this._calculateCanvasInitialScreenTop(),this._transitionInOut.transitionTo("end")):(this._closeBegin.emit(),this._transitionInOut.transitionTo("start")))}renderContent(){return $`
184            <div
185                id="${Ks}"
186                class="${this.classes.canvas}"
187                @click="${this._onSwipeAreaClick}"
188                @pointerdown="${this._onSwipeAreaPointerDown}"
189            >
190                <div id="${Ys}">
191                    ${this._renderResizeHandle()}
192                    <slot name="${"header"}">${this._renderDefaultHeader()}</slot>
193                </div>
194                ${this.scrollOverflowContent?this._renderScrollContainer():$`<slot></slot>`}
195                <div id="${Qs}">
196                    <slot name="${"footer"}"></slot>
197                </div>
198            </div>
199        `}closeCallback(){this.open&&(this.open=!1,this._close.emit())}transitionInOutFrame(e){switch(e.transitionState){case li.End:1===e.value?this._onOpenComplete():this._onCloseComplete();break;case li.Transitioning:if(this._canvasYStart){const t=window.innerHeight*(1-e.value),i=this.snapToFullscreen?0:this._canvasYStart*e.value;this._setCanvasScreenTop(Math.round(t+i))}}}transitionFullscreenInFrame(e){if(e.transitionState===li.Transitioning)if(this._canvasYStart){const t=this._canvasYStart*(1-e.value),i=0;this._setCanvasScreenTop(Math.round(t+i))}}
199_renderScrollContainer(){return $`
200            <acorn-internal-scroll-pane class="${this.classes.canvasBody}">
201                <div id="${Xs}">
202                    <slot></slot>
203                </div>
204            </acorn-internal-scroll-pane>
205        `}_renderResizeHandle(){return this.snapToFullscreen?null:$`
206            <button
207                autofocus
208                class="${this.classes.resizeHandle}"
209                aria-label="${Gs.Expand}"
210                @click="${this._doSnapToFullscreen}"
211            ></button>
212        `}_renderDefaultHeader(){return this.snapToFullscreen?$`
213            <acorn-internal-bottom-sheet-header heading="${this.label}"></acorn-internal-bottom-sheet-header>
214        `:null}_onOpenComplete(){this.resolveFocus(),this._openComplete.emit()}_onCloseComplete(){super.close(),this.snapToFullscreen=!1,this._closeComplete.emit()}_calculateCanvasInitialScreenTop(){if(!this.scrollOverflowContent)return.5*window.innerHeight;const e=this.shadowRoot.getElementById(Ys),t=this.shadowRoot.getElementById(Xs),i=this.shadowRoot.getElementById(Qs),n=((null==e?void 0:e.offsetHeight)||0)+((null==t?void 0:t.offsetHeight)||0)+((null==i?void 0:i.offsetHeight)||0);return Math.max(window.innerHeight/2,window.innerHeight-n)}_getCanvasScreenTop(){return this._canvasYPercent?window.innerHeight*this._canvasYPercent:0}_setCanvasScreenTop(e){if(this._canvasYPercent=e/window.innerHeight,this._dialog&&(this._dialog.style.top=100*this._canvasYPercent+"%"),this._canvas){const e=this.snapToFullscreen?"":100*(1-this._canvasYPercent)+"vh";this._canvas.style.maxHeight=e,this._canvas.style.minHeight=e}}_onSwipeAreaPointerDown(e){this.snapToFullscreen||(this._swipeStartY=e.pageY,this._canvasDragStartY=this._getCanvasScreenTop(),this.addEventListener("pointermove",this._onPointerDrag),this.addEventListener("pointerup",this._onSwipeAreaPointerEnd),this.addEventListener("pointerleave",this._onSwipeAreaPointerEnd),this.addEventListener("touchmove",this._onTouchDrag,{passive:!1}),this._unregisterSwipeListeners=()=>{this.removeEventListener("pointermove",this._onPointerDrag),this.removeEventListener("pointerup",this._onSwipeAreaPointerEnd),this.removeEventListener("pointerleave",this._onSwipeAreaPointerEnd),this.removeEventListener("touchmove",this._onTouchDrag)})}_onPointerDrag(e){if(this._swipeStartY&&this._canvasDragStartY){const t=e.pageY-this._swipeStartY;this._canvasYStart=this._canvasDragStartY+t,this._setCanvasScreenTop(this._canvasYStart)}}_onTouchDrag(e){e.preventDefault()}_onSwipeAreaPointerEnd(e){const t=this._swipeStartY?e.pageY-this._swipeStartY:NaN,i=!isNaN(t)&&Math.abs(t)>10;this._endSwipe(),i?t<0?this._doSnapToFullscreen():t>0&&this.closeCallback():this._swipeStartY=void 0}_onSwipeAreaClick(e){this._swipeStartY&&e.stopPropagation()}_endSwipe(){var e;null==(e=this._unregisterSwipeListeners)||e.call(this),setTimeout(()=>{this._swipeStartY=void 0},10)}_doSnapToFullscreen(){this.snapToFullscreen||(this.snapToFullscreen=!0,this._transitionFullscreenIn.goTo("start"),this._transitionFullscreenIn.transitionTo("end"))}};js([gt(),zt({type:Boolean})],Zs.prototype,"open",2),js([Ht()],Zs.prototype,"snapToFullscreen",2),js([gt()],Zs.prototype,"scrollOverflowContent",2),js([ft({name:"close"})],Zs.prototype,"_close",2),js([ft({name:"openBegin"})],Zs.prototype,"_openBegin",2),js([ft({name:"openComplete"})],Zs.prototype,"_openComplete",2),js([ft({name:"closeBegin"})],Zs.prototype,"_closeBegin",2),js([ft({name:"closeComplete"})],Zs.prototype,"_closeComplete",2),js([hi({duration:"0.25s",ease:"easeInOut"})],Zs.prototype,"_transitionInOut",2),js([hi({duration:"0.25s",ease:"easeInOut"})],Zs.prototype,"_transitionFullscreenIn",2),js([wi("open"),wi("dialogReady")],Zs.prototype,"onOpenChanged",1),js([Pe()],Zs.prototype,"closeCallback",1),js([Wt("_transitionInOut")],Zs.prototype,"transitionInOutFrame",1),js([Wt("_transitionFullscreenIn")],Zs.prototype,"transitionFullscreenInFrame",1),js([Pe()],Zs.prototype,"_onSwipeAreaPointerDown",1),js([Pe()],Zs.prototype,"_onPointerDrag",1),js([Pe()],Zs.prototype,"_onTouchDrag",1),js([Pe()],Zs.prototype,"_onSwipeAreaPointerEnd",1),js([Pe()],Zs.prototype,"_onSwipeAreaClick",1),js([Pe()],Zs.prototype,"_endSwipe",1),js([Pe()],Zs.prototype,"_doSnapToFullscreen",1),Zs=js([_t({tag:"acorn-internal-bottom-sheet"})],Zs);var Js=Ve.createTranslation({Close:{sv:"Stäng",en:"Close"}}),el={$host:{display:"block"},wrapper:{flex:"0 0 auto",overflow:"hidden",display:"flex",alignItems:"center",boxSizing:"border-box",minHeight:"72px",width:"100%",padding:"8px 16px",borderBottom:`1px solid ${zi.Line.Regular.low}`},heading:{...Bn(),color:zi.Text.Regular.high,padding:"0 8px",marginTop:"0",marginBottom:"0",flex:1}},tl=class extends Ti{constructor(){super(...arguments),this.heading=""}get _parent(){if(this.parentElement instanceof HTMLSlotElement){return this.parentElement.getRootNode().host}return this.parentElement}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this.setAttribute("slot","header")}getStyle(){return el}render(){return $`
215            <div slot="header" class="${this.classes.wrapper}">
216                <h2 class="${this.classes.heading}">${this.heading}</h2>
217                <acorn-internal-icon-button
218                    icon="${Zo.XMark}"
219                    label="${Js.Close}"
220                    hide-label
221                    @click="${this._onClose}"
222                ></acorn-internal-icon-button>
223            </div>
224        `}onHeadingChange(){this._parent&&(this._parent.label=this.heading)}_onClose(){var e;null==(e=this._parent)||e.close()}};js([gt()],tl.prototype,"heading",2),js([wi("heading",{triggerOn:pi.ChangeAndConnect})],tl.prototype,"onHeadingChange",1),js([Pe()],tl.prototype,"_onClose",1),tl=js([_t({tag:"acorn-internal-bottom-sheet-header"})],tl);var il={$host:{display:"block",padding:"24px"}},nl=class extends Ti{getStyle(){return il}render(){return $`
225            <acorn-internal-enclosed-margins>
226                <slot></slot>
227            </acorn-internal-enclosed-margins>
228        `}};nl=js([_t({tag:"acorn-internal-bottom-sheet-body"})],nl);var ol={$host:{display:"block"}},rl=class extends Ti{connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this.setAttribute("slot","footer")}getStyle(){return ol}render(){return $` <slot></slot> `}};rl=js([_t({tag:"acorn-internal-bottom-sheet-footer"})],rl);var al=Object.defineProperty,sl=Object.getOwnPropertyDescriptor,ll=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?sl(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&al(t,i,r),r},cl=8,dl=6,hl=cl/2,pl=336+2*cl,ul=(e=>
228(e.Breakpoint="--acorn-button-container-breakpoint",e.InternalBreakpoint="--acorn-button-container-internal-breakpoint",e))(ul||{}),gl=(e=>(e.Horizontal="horizontal",e.Vertical="vertical",e.AutoScreen="autoScreen",e.AutoContainer="autoContainer",e))(gl||{}),ml={$host:{display:"block","--acorn-button-container-internal-breakpoint":`var(--acorn-button-container-breakpoint, ${pl})`,...Ln(Dn.Large)},wrapperNarrow:{display:"flex",flexDirection:"column",margin:"8px 0"},wrapperWide:{display:"flex",flexDirection:"row",justifyContent:"space-between",margin:`8px -${hl}px 2px -${hl}px`},$$slotted:{"&([slot])":{marginBottom:`${dl}px`,marginLeft:e=>e._isCollapsed?"0":`${hl}px`,marginRight:e=>e._isCollapsed?"0":`${hl}px`},"&(acorn-button[data-active])":{...Yi()}},containerLeft:{flex:"1 1 auto",display:"block",fontSize:0},containerRight:{display:"block",fontSize:0}},bl=class extends Ti{constructor(){super(...arguments),this._isCollapsed=!1,this.layout="autoContainer",this.collapseStrategyScreen=!1,this._activeListener=void 0,this._orderSlots={},this._collapsedAtWidth=-1}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this._mutationObserver||(this._mutationObserver=new MutationObserver(()=>this.invalidate()),this._mutationObserver.observe(this,{childList:!0})),this.onLayoutChange()}disconnectedCallback(){var e;null==(e=this._activeListener)||e.call(this),this._mutationObserver&&(this._mutationObserver.disconnect(),this._mutationObserver=void 0)}beforeRender(){super.beforeRender(),this._orderSlots={executive:[],primary:[],"primary-subtle":[],guiding:[],secondary:[],tertiary:[],text:[],buy:[],sell:[],destructive:[],cancel:[]};for(let e=0;e<this.children.length;e++){const t=this.children[e];t.slot=this._generatePrioritySlot(t)}this._orderSlots[Tr.Destructive].sort((e,t)=>this._isCollapsed?e-t:t-e),this._orderSlots[Tr.Primary].sort((e,t)=>this._isCollapsed?e-t:t-e),this._orderSlots[Tr.Executive].sort((e,t)=>this._isCollapsed?e-t:t-e),this._orderSlots[Tr.PrimarySubtle].sort((e,t)=>this._isCollapsed?e-t:t-e),this._orderSlots[Tr.Guiding].sort((e,t)=>this._isCollapsed?e-t:t-e),this._orderSlots[Tr.Secondary].sort((e,t)=>this._isCollapsed?e-t:t-e),this._orderSlots[Tr.Tertiary].sort((e,t)=>this._isCollapsed?e-t:t-e),this._orderSlots[Sr.Text].sort((e,t)=>this._isCollapsed?e-t:t-e),this._orderSlots[Sr.Buy].sort((e,t)=>this._isCollapsed?e-t:t-e),this._orderSlots[Sr.Sell].sort((e,t)=>this._isCollapsed?e-t:t-e),this._orderSlots[Sr.Cancel].sort((e,t)=>this._isCollapsed?e-t:t-e)}render(){return this._isCollapsed?$`
229                <div class="${this.classes.wrapperNarrow}">
230                    <slot name="${Sr.Submit}"></slot>
231                    ${this._orderSlots[Tr.Primary].map(e=>$`<slot name="${`${Tr.Primary}-${e}`}"></slot>`)}
232                    <slot name="${Tr.Primary}"></slot>
233                    ${this._orderSlots[Tr.Executive].map(e=>$`<slot name="${`${Tr.Executive}-${e}`}"></slot>`)}
234                    <slot name="${Tr.Executive}"></slot>
235                    ${this._orderSlots[Tr.PrimarySubtle].map(e=>$`<slot name="${`${Tr.PrimarySubtle}-${e}`}"></slot>`)}
236                    <slot name="${Tr.PrimarySubtle}"></slot>
237                    <slot name="${Sr.Button}"></slot>
238                    ${this._orderSlots[Sr.Sell].map(e=>$`<slot name="${`${Sr.Sell}-${e}`}"></slot>`)}
239                    <slot name="${Sr.Sell}"></slot>
240                    ${this._orderSlots[Sr.Buy].map(e=>$`<slot name="${`${Sr.Buy}-${e}`}"></slot>`)}
241                    <slot name="${Sr.Buy}"></slot>
242                    ${this._orderSlots[Tr.Secondary].map(e=>$`<slot name="${`${Tr.Secondary}-${e}`}"></slot>`)}
243                    <slot name="${Tr.Secondary}"></slot>
244                    ${this._orderSlots[Tr.Guiding].map(e=>$`<slot name="${`${Tr.Guiding}-${e}`}"></slot>`)}
245                    <slot name="${Tr.Guiding}"></slot>
246                    ${this._orderSlots[Tr.Destructive].map(e=>$`<slot name="${`${Tr.Destructive}-${e}`}"></slot>`)}
247                    <slot name="${Tr.Destructive}"></slot><slot name="${Sr.Reset}"></slot>
248                    <slot name="${Sr.Text}"></slot>
249                    ${this._orderSlots[Sr.Text].map(e=>$`<slot name="${`${Sr.Text}-${e}`}"></slot>`)}
250                    <slot name="${Tr.Tertiary}"></slot>
251                    ${this._orderSlots[Tr.Tertiary].map(e=>$`<slot name="${`${Tr.Tertiary}-${e}`}"></slot>`)}
252                    ${this._orderSlots[Sr.Cancel].map(e=>$`<slot name="${`${Sr.Cancel}-${e}`}"></slot>`)}
253                    <slot name="${Sr.Cancel}"></slot>
254                </div>
255            `:$`
256                <div class="${this.classes.wrapperWide}">
257                    <div class="${this.classes.containerLeft}">
258                        <slot name="${Sr.Cancel}"></slot>
259                        ${this._orderSlots[Sr.Cancel].map(e=>$`<slot name="${`${Sr.Cancel}-${e}`}"></slot>`)}
260                        <slot name="${Tr.Tertiary}"></slot>
261                        ${this._orderSlots[Tr.Tertiary].map(e=>$`<slot name="${`${Tr.Tertiary}-${e}`}"></slot>`)}
262                        <slot name="${Sr.Text}"></slot>
263                        ${this._orderSlots[Sr.Text].map(e=>$`<slot name="${`${Sr.Text}-${e}`}"></slot>`)}
264                    </div>
265                    <div class="${this.classes.containerRight}">
266                        <slot name="${Sr.Reset}"></slot>
267                        <slot name="${Tr.Destructive}"></slot>
268                        ${this._orderSlots[Tr.Destructive].map(e=>$`<slot name="${`${Tr.Destructive}-${e}`}"></slot>`)}
269                        <slot name="${Tr.Guiding}"></slot>
270                        ${this._orderSlots[Tr.Guiding].map(e=>$`<slot name="${`${Tr.Guiding}-${e}`}"></slot>`)}
271                        <slot name="${Tr.Secondary}"></slot>
272                        ${this._orderSlots[Tr.Secondary].map(e=>$`<slot name="${`${Tr.Secondary}-${e}`}"></slot>`)}
273                        <slot name="${Sr.Buy}"></slot>
274                        ${this._orderSlots[Sr.Buy].map(e=>$`<slot name="${`${Sr.Buy}-${e}`}"></slot>`)}
275                        <slot name="${Sr.Sell}"></slot>
276                        ${this._orderSlots[Sr.Sell].map(e=>$`<slot name="${`${Sr.Sell}-${e}`}"></slot>`)}
277                        <slot name="${Sr.Button}"></slot>
278                        <slot name="${Tr.PrimarySubtle}"></slot>
279                        ${this._orderSlots[Tr.PrimarySubtle].map(e=>$`<slot name="${`${Tr.PrimarySubtle}-${e}`}"></slot>`)}
280                        <slot name="${Tr.Executive}"></slot>
281                        ${this._orderSlots[Tr.Executive].map(e=>$`<slot name="${`${Tr.Executive}-${e}`}"></slot>`)}
282                        <slot name="${Tr.Primary}"></slot>
283                        ${this._orderSlots[Tr.Primary].map(e=>$`<slot name="${`${Tr.Primary}-${e}`}"></slot>`)}
284                        <slot name="${Sr.Submit}"></slot>
285                    </div>
286                </div>
287            `}getStyle(){return ml}onCollapseStrategyScreen(){this.layout=this.collapseStrategyScreen?"autoScreen":"autoContainer"}onLayoutChange(){var e;switch(null==(e=this._activeListener)||e.call(this),this.layout){case"horizontal":this._isCollapsed=!1;break;case"vertical":this._isCollapsed=!0;break;case"autoScreen":this._activeListener=this._addMediaQueryListener();break;default:this._activeListener=this._addResizeObserver()}}_generatePrioritySlot(e){if(Qt(e,Dr)){const t=e;return t.order&&t.type===Sr.Cancel?(this._orderSlots[t.type].push(t.order),`${t.type}-${t.order}`):t.type===Sr.Cancel?t.type:t.order&&t.priority?(this._orderSlots[t.priority].push(t.order),`${t.priority}-${t.order}`):t.type===Sr.Submit?t.type:t.priority?t.priority:t.type}if(e instanceof HTMLSlotElement){const t=e.assignedElements()[0];return this._generatePrioritySlot(t)}return e.type}_addResizeObserver(){const e=48+dl;return this._resizeObserver=new ResizeObserver(t=>{const i=t[t.length-1],n=parseInt(getComputedStyle(this).getPropertyValue("--acorn-button-container-internal-breakpoint"))||pl;this._isCollapsed?i.contentRect.width>n&&i.contentRect.width>this._collapsedAtWidth&&(this._isCollapsed=!1):(i.contentRect.width<n||i.contentRect.height>e)&&(this._isCollapsed=!0,this._collapsedAtWidth=i.contentRect.width)}),this._resizeObserver.observe(this),()=>{var e;null==(e=this._resizeObserver)||e.disconnect()}}_addMediaQueryListener(){const e=window.matchMedia(`(min-width: ${gn.ExtraSmall})`);return this._isCollapsed=!e.matches,e.addEventListener("change",this._onMediaQueryThreshold),()=>{e.removeEventListener("change",this._onMediaQueryThreshold)}}_onMediaQueryThreshold(e){this._isCollapsed=!e.matches}};ll([Ht()],bl.prototype,"_isCollapsed",2),ll([gt(),zt({type:gl})],bl.prototype,"layout",2),ll([gt(),zt({type:Boolean})],bl.prototype,"collapseStrategyScreen",2),ll([wi("collapseStrategyScreen")],bl.prototype,"onCollapseStrategyScreen",1),ll([wi("layout")],bl.prototype,"onLayoutChange",1),ll([Pe()],bl.prototype,"_onMediaQueryThreshold",1),bl=ll([_t({tag:"acorn-button-container"})],bl);var vl=(e=>
287(e.Breakpoint="--acorn-button-container-breakpoint",e.InternalBreakpoint="--acorn-button-container-internal-breakpoint",e))(vl||{}),yl=(e=>(e.Horizontal="horizontal",e.Vertical="vertical",e.AutoScreen="autoScreen",e.AutoContainer="autoContainer",e))(yl||{}),_l=Object.defineProperty,fl=Object.getOwnPropertyDescriptor,xl=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?fl(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&_l(t,i,r),r},wl=440,Cl="--acorn-page-detail-offset-top",Sl=(e=>(e.Wrapper="wrapper",e.Content="content",e.Container="container",e.CloseButton="closeButton",e))(Sl||{}),$l=(e=>(e.Right="right",e.Bottom="bottom",e))($l||{}),kl=(e=>(e.PageDetailOpen="pageDetailOpen",e.PageDetailClose="pageDetailClose",e.PageDetailOpenComplete="pageDetailOpenComplete",e.PageDetailCloseComplete="pageDetailCloseComplete",e.PageDetailContentChange="pageDetailContentChange",e.Close="close",e.Back="back",e))(kl||{}),El={$host:{display:"block"},$$slotted:{"&(acorn-button)":{minWidth:e=>{const t=e._buttonSlots.length;return`calc(((min(100vw, ${wl}px)) - 48px - ${8*(t-1)}px) / ${t})`}}},wrapper:{padding:"0 24px 24px"},container:{margin:"0"}},Tl=class extends Ti{getStyle(){return El}render(){return $`<div class="${this.classes.wrapper}">
288            <acorn-button-container class="${this.classes.container}">${this._buttonSlots}</acorn-button-container>
289        </div>`}};xl([ri("button",{selectAllTypes:Dr.config.type,spread:!0})],Tl.prototype,"_buttonSlots",2),Tl=xl([_t({tag:"acorn-page-detail-footer"})],Tl);var Il=Ve.createTranslation({CloseButtonLabel:{sv:"Stäng dialogen",en:"Close dialog"},BackButtonLabel:{sv:"Tillbaka",en:"Back"}}),Ol=ai.isFirefox?"100vh":"100dvh",Dl="--acorn-page-detail-internal-offset-top";var Rl={$host:{display:"block",outline:"0 !important",[vl.Breakpoint]:wl-48-1,[Vi.HasTheme]:ji.False},dialog:{[Dl]:function(e){return e.showBackdrop?"0px":`var(${Cl}, 0px)`},position:"fixed",zIndex:bn.Top,top:`var(${Dl}, 0px)`,marginRight:0,backgroundColor:"transparent",border:0,padding:0,minHeight:Ol,maxHeight:Ol,width:`min(100vw, ${wl}px)`,"&::backdrop":{backgroundColor:zi.Overlay.scrim},...zn()},container:{width:"100%",backgroundColor:zi.Surface.elevation,boxShadow:"0px 0px 10px rgba(0,0,0,0.25)"},content:{display:"flex",flexDirection:"column",minHeight:`calc(${Ol} - var(${Dl}, 0px))`,maxHeight:`calc(${Ol} - var(${Dl}, 0px))`,height:`calc(${Ol} - var(${Dl}, 0px))`,width:"100%",outline:"none !important"},head:{flex:"0 0 auto",overflow:"hidden",display:"flex",alignItems:"start",boxSizing:"border-box",width:"100%",padding:"16px 16px",borderBottom:`1px solid ${zi.Line.Regular.low}`},heading:{...Mn(),padding:"0 8px",marginTop:kn(8),marginBottom:"0",...fn({md:{marginTop:kn(4),fontSize:kn(24),lineHeight:En(24,32)}}),flex:1},body:{display:"flex",flexDirection:"column",width:"100%",flex:"1 1 auto",height:"inherit",marginBottom:"24px"},contentWrapper:{padding:"24px 24px 0"},footer:{boxSizing:"border-box",minHeight:"16px",flex:"0 0 auto"},closeButton:{display:"block"},backButton:{display:"block",order:"-1"}},Fl="content",Ll="container",Al=class extends Mi{constructor(){super(...arguments),this.showBackButton=!1,this.showBackdrop=!1,this.closeOnClickOutside=!1,this.open=!1}get _content(){return this.shadowRoot.getElementById(Fl)}get _container(){return this.shadowRoot.getElementById(Ll)}disconnectedCallback(){super.disconnectedCallback(),this.open&&this._pageDetailClose.emit()}getStyle(){return Rl}isOpen(){return this.open}close(){this.closeCallback()}renderContent(){return $`
290            <div id="${Ll}" class="${this.classes.container}">
291                <div id="${Fl}" class="${this.classes.content}">
292                    ${[this._renderHead(),this._renderBody(),this._renderFooter()]}
293                </div>
294            </div>
295        `}defaultSlotChanged(){this.open&&this.resolveFocus(),this._onContentChange()}onHeadingChanged(){this.label=this.heading||""}onOpenChanged(){this.open?(this.showBackdrop?super.show(Mi.MODE.Modal):super.show(Mi.MODE.Modeless),this._pageDetailOpen.emit({anchor:"right",panelWidth:wl,panelHeight:window.innerHeight,transition:.25,ease:"ease-in-out"}),this._slideInOut.transitionTo("end")):(this._pageDetailClose.emit(),this._slideInOut.transitionTo("start",{},100))}closeCallback(){this._close.emit().defaultPrevented||(this.open=!1)}fadeInOutFrame(e){switch(e.transitionState){case li.End:this._container.style.transform="none",1===e.value?this._onOpenComplete():0===e.value&&this._onCloseComplete();break;case li.Transitioning:if(ai.isSafari&&this.showBackdrop&&e.value<.001)break;const t=Math.min(wl,window.innerWidth)*(1-e.value);this._container.style.transform=`translateX(${t}px)`}}fadeInOutContent(e){switch(e.transitionState){case li.Start:if(this.hasFocus()){const e=this.shadowRoot.querySelector(".close-button");null==e||e.focus()}this._content.style.willChange="opacity",this._content.style.opacity="0";break;case li.End:this._content.style.opacity="1",this._content.style.willChange="auto";break;case li.Transitioning:this._content.style.opacity=`${e.value}`}}_renderHead(){var e;return $`
296            <div class="${this.classes.head}">
297                <h2 class="${this.classes.heading}">${null==(e=this.heading)?void 0:e.trim()}</h2>
298                <acorn-internal-icon-button
299                    class="${this.classes.closeButton}"
300                    accessibility-label="${Il.CloseButtonLabel}"
301                    icon="${Zo.XMark}"
302                    @click="${this.closeCallback}"
303                ></acorn-internal-icon-button>
304                ${this.showBackButton?$`
305                          <acorn-internal-icon-button
306                              class="${this.classes.backButton}"
307                              accessibility-label="${Il.BackButtonLabel}"
308                              icon="${Zo.ChevronLeft}"
309                              @click="${this._back.emit}"
310                          ></acorn-internal-icon-button>
311                      `:null}
312            </div>
313        `}_renderBody(){return $`
314            <acorn-internal-scroll-pane class="${this.classes.body}">
315                <acorn-internal-enclosed-margins class="${this.classes.contentWrapper}">
316                    <slot></slot>
317                </acorn-internal-enclosed-margins>
318            </acorn-internal-scroll-pane>
319        `}_renderFooter(){return this._footerSlot.isFilled()?$` <div class="${this.classes.footer}">${this._footerSlot}</div> `:null}_onContentChange(){this.open=this._defaultSlot.isFilled(),this._fadeInOutContent.goTo("start"),this._fadeInOutContent.transitionTo("end")}_onOpenComplete(){this.resolveFocus(),this._pageDetailOpenComplete.emit()}_onCloseComplete(){super.close(),this._pageDetailCloseComplete.emit()}};xl([gt()],Al.prototype,"heading",2),xl([gt(),zt({type:Boolean})],Al.prototype,"showBackButton",2),xl([gt(),zt({type:Boolean})],Al.prototype,"showBackdrop",2),xl([gt(),zt({type:Boolean})],Al.prototype,"closeOnClickOutside",2),xl([gt(),zt({type:Boolean})],Al.prototype,"open",2),xl([ri("default")],Al.prototype,"_defaultSlot",2),xl([ri("footer",{selectSingleType:Tl.config.type})],Al.prototype,"_footerSlot",2),xl([hi({duration:"0.25s",ease:"easeInOut"})],Al.prototype,"_fadeInOutContent",2),xl([hi({duration:"0.25s",ease:"easeInOut"})],Al.prototype,"_slideInOut",2),xl([ft({bubbles:!0,name:"pageDetailOpen"})],Al.prototype,"_pageDetailOpen",2),xl([ft({bubbles:!0,name:"pageDetailClose"})],Al.prototype,"_pageDetailClose",2),xl([ft({bubbles:!0,name:"pageDetailOpenComplete"})],Al.prototype,"_pageDetailOpenComplete",2),xl([ft({bubbles:!0,name:"pageDetailCloseComplete"})],Al.prototype,"_pageDetailCloseComplete",2),xl([ft({name:"close",cancelable:!0})],Al.prototype,"_close",2),xl([ft({name:"back"})],Al.prototype,"_back",2),xl([wi("_defaultSlot")],Al.prototype,"defaultSlotChanged",1),xl([wi("heading")],Al.prototype,"onHeadingChanged",1),xl([wi("open")],Al.prototype,"onOpenChanged",1),xl([Pe()],Al.prototype,"closeCallback",1),xl([Wt("_slideInOut")],Al.prototype,"fadeInOutFrame",1),xl([Wt("_fadeInOutContent")],Al.prototype,"fadeInOutContent",1),xl([Nt()],Al.prototype,"_onContentChange",1),Al=xl([_t({tag:"acorn-p
319age-detail"})],Al);var Ml=(e=>(e.Auto="auto",e.Absolute="absolute",e.Fixed="fixed",e.Cover="cover",e))(Ml||{}),Bl=(e=>(e.Inside="inside",e.Outside="outside",e))(Bl||{}),Pl=(e=>(e.Up="up",e.Down="down",e))(Pl||{}),Nl=(e=>(e.Left="left",e.Right="right",e.Stretch="stretch",e))(Nl||{}),Hl=(e=>(e.BackgroundColor="--acorn-internal-popover-background-color",e.BackdropColor="--acorn-internal-popover-backdrop-color",e.BackdropClipPath="--acorn-internal-popover-backdrop-clip-path",e.DialogPosition="--acorn-internal-popover-dialog-position",e))(Hl||{}),zl=Object.defineProperty,Wl=Object.getOwnPropertyDescriptor,Vl=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Wl(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&zl(t,i,r),r},jl=(e=>(e.Auto="auto",e.Popover="popover",e.PageDetail="page-detail",e))(jl||{}),Gl=Ve.createTranslation({CloseButtonLabel:{sv:"Stäng hjälp",en:"Close help"}}),ql={$host:{"&(:focus)":{outline:"none !important"}},popoverScrollPane:{maxHeight:"600px",width:"100%"},popoverStickyContent:{position:"sticky",top:0},popoverContent:{padding:"16px 56px 16px 16px",boxSizing:"border-box"},popoverText:{whiteSpace:"pre-line"},popoverCloseButton:{position:"absolute",right:"16px",top:"10px"}},Ul=window.matchMedia("(max-width: 500px)"),Kl=class extends Ti{constructor(){super(...arguments),this.controlledBy="",this.displayMode="auto",this.direction=Pl.Down,this.alignment=Nl.Left,this.positionStrategy=Ml.Auto,this.open=!1}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),Ul.addEventListener("change",this._onScreenSizeChange)}disconnectedCallback(){Ul.removeEventListener("change",this._onScreenSizeChange)}render(){return"page-detail"===this._getResolvedDisplayMode()?this._renderPageDetail():Ul.matches?this._renderBottomSheet():this._renderPopover()}getStyle(){return ql}_renderPageDetail(){return $`
320            <acorn-page-detail
321                heading="${j(this.heading)}"
322                @close="${this._onOverlayClose}"
323                @pageDetailOpen="${this._open.emit}"
324                close-on-click-outside
325            >
326                ${this._renderContent()}
327            </acorn-page-detail>
328        `}_renderPopover(){return $`
329            <acorn-internal-popover
330                show-pointer
331                .open="${this.open}"
332                direction="${this.direction}"
333                position-strategy="${this.positionStrategy}"
334                alignment="${this.alignment}"
335                @requestReposition="${this._onRequestReposition}"
336                @close="${this._onOverlayClose}"
337                @openComplete="${this._open.emit}"
338                .maxHeight="${600}"
339            >
340                <acorn-internal-scroll-pane class="${this.classes.popoverScrollPane}">
341                    <div class="${this.classes.popoverStickyContent}">
342                        <acorn-internal-icon-button
343                            autofocus
344                            accessibility-label="${Gl.CloseButtonLabel}"
345                            class="${this.classes.popoverCloseButton}"
346                            icon="${Zo.XMark}"
347                            size="${Jo.Small}"
348                            @click="${this._onOverlayClose}"
349                        ></acorn-internal-icon-button>
350                    </div>
351                    <div class="${this.classes.popoverContent}">
352                        <acorn-internal-enclosed-margins>${this._renderContent()}</acorn-internal-enclosed-margins>
353                    </div>
354                </acorn-internal-scroll-pane>
355            </acorn-internal-popover>
356        `}_renderBottomSheet(){return $`
357            <acorn-internal-bottom-sheet
358                .open="${this.open}"
359                .label="${this.heading}"
360                @close="${this._onOverlayClose}"
361                @openComplete="${this._open.emit}"
362            >
363                <acorn-internal-bottom-sheet-body>
364                    <acorn-internal-enclosed-margins>${this._renderContent()}</acorn-internal-enclosed-margins>
365                </acorn-internal-bottom-sheet-body>
366            </acorn-internal-bottom-sheet>
367        `}_renderContent(){return this.open?this.text?$`<span class="${this.classes.popoverText}">${this.text}</span>`:$`<slot></slot>`:null}_onOverlayClose(){this.open&&(this.open=!1,this._close.emit())}_onRequestReposition(e){const t=this.getRootNode().getElementById(this.controlledBy);if(!t)return;const i=e.target,n=t.getBoundingClientRect();n.x-=16,n.width+=32,i.setFocalRect(n)}_onScreenSizeChange(){this.invalidate()}_getResolvedDisplayMode(){return"auto"===this.displayMode&&this.text?"popover":"auto"===this.displayMode?"page-detail":this.displayMode}};Vl([gt()],Kl.prototype,"controlledBy",2),Vl([gt()],Kl.prototype,"text",2),Vl([gt()],Kl.prototype,"heading",2),Vl([gt({reflect:!0}),zt({type:jl})],Kl.prototype,"displayMode",2),Vl([gt({reflect:!0}),zt({type:Pl})],Kl.prototype,"direction",2),Vl([gt({reflect:!0}),zt({type:Nl})],Kl.prototype,"alignment",2),Vl([gt({reflect:!0}),zt({type:Ml})],Kl.prototype,"positionStrategy",2),Vl([gt({reflect:!0}),zt({type:Boolean})],Kl.prototype,"open",2),Vl([ft()],Kl.prototype,"_open",2),Vl([ft()],Kl.prototype,"_close",2),Vl([Pe()],Kl.prototype,"_onOverlayClose",1),Vl([Pe()],Kl.prototype,"_onRequestReposition",1),Vl([Pe()],Kl.prototype,"_onScreenSizeChange",1),Kl=Vl([_t({tag:"acorn-internal-responsive-overlay"})],Kl);var Yl=Object.defineProperty,Xl=Object.getOwnPropertyDescriptor,Ql=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Xl(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Yl(t,i,r),r},Zl="form-field-help-button",Jl=Ve.createTranslation({LabelWhenActive:{sv:"Dölj hjälp",en:"Hide help"},LabelWhenInactive:{sv:"Visa hjälp",en:"Show help"},OverlayAriaLabel:{sv:"Hjälp",en:"Help"}}),ec={$host:{"&(:focus)":{outline:"none !important"}},wrapper:{display:"block",position:"relative",width:"32px",height:kn(22)},toggle:{position:"absolute",top:"50%",transform:"translateY(-50%)"}},tc=class extends Ti{constructor(){super(...arguments),this.heading=Jl.OverlayAriaLabel,this.displayMode=jl.Auto,this.overlayDirection=Pl.Down,this.overlayAlignment=Nl.Left,this.open=!1}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this.slot||(this.slot="help")}getStyle(){return ec}render(){const e=this.accessibilityLabel||this.heading||Jl.OverlayAriaLabel;return $`
368            <div class="${this.classes.wrapper}">
369                <acorn-internal-icon-button
370                    size="${Jo.Small}"
371                    id="${Zl}"
372                    class="${this.classes.toggle}"
373                    icon="${Zo.CircleQuestionMark}"
374                    color="${Ia.Turquoise}"
375                    accessibility-label="${e}"
376                    accessibility-has-popup="dialog"
377                    @click="${this._onToggleButtonInteraction}"
378                ></acorn-internal-icon-button>
379
380                <acorn-internal-responsive-overlay
381                    ?open="${this.open}"
382                    display-mode="${this.displayMode}"
383                    controlled-by="${Zl}"
384                    heading="${j(this.heading)}"
385                    text="${j(this.text)}"
386                    direction="${this.overlayDirection}"
387                    alignment="${this.overlayAlignment}"
388                    @close="${this._onClose}"
389                    @open="${this._open.emit}"
390                >
391                    <slot></slot>
392                </acorn-internal-responsive-overlay>
393            </div>
394        `}_onToggleButtonInteraction(){this.open=!this.open}_onClose(){this.open=!1,this._close.emit()}};Ql([gt()],tc.prototype,"text",2),Ql([gt()],tc.prototype,"heading",2),Ql([gt()],tc.prototype,"accessibilityLabel",2),Ql([gt(),zt({type:jl})],tc.prototype,"displayMode",2),Ql([gt(),zt({type:Pl})],tc.prototype,"overlayDirection",2),Ql([gt(),zt({type:Nl})],tc.prototype,"overlayAlignment",2),Ql([gt({reflect:!0}),zt({type:Boolean})],tc.prototype,"open",2),Ql([ft()],tc.prototype,"_open",2),Ql([ft()],tc.prototype,"_close",2),Ql([Pe()],tc.prototype,"_onToggleButtonInteraction",1),Ql([Pe()],tc.prototype,"_onClose",1),tc=Ql([_t({tag:"acorn-form-field-help",delegatesFocus:!0})],tc);var ic=Object.defineProperty,nc=Object.getOwnPropertyDescriptor,oc={$host:{display:"block"},wrapper:{...ro(),color:zi.Text.Regular.medium,maxWidth:Xn},text:{color:e=>e._hasDisabledHost?zi.Text.disabled:zi.Text.Regular.high,verticalAlign:"middle"}},rc=class extends Ti{get _hasDisabledHost(){var e;return null==(e=this.parentElement)?void 0:e.disabled}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this.slot||(this.slot="hint")}getStyle(){return oc}render(){return $`
395            <div class="${this.classes.wrapper}">
396                <span class="${this.classes.text}"><slot></slot></span>
397            </div>
398        `}};rc=((e,t,i,n)=>{for(var o,r=n>1?void 0:n?nc(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&ic(t,i,r),r})([_t({tag:"acorn-form-field-hint"})],rc);var ac=Object.defineProperty,sc=Object.getOwnPropertyDescriptor,lc=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?sc(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&ac(t,i,r),r},cc=Ve.createTranslation({CharactersLeft:{sv:"{0} tecken kvar",en:"{0, plural, zero [# characters] one [# character] many [# characters]} left"},CharactersLeftForScreenReader:{sv:"Du har {0} tecken kvar",en:"You have {0, plural, zero [# characters] one [# character] many [# characters]} left"},CharactersExceeding:{sv:"{0} tecken för mycket",en:"{0, plural, zero [# characters] one [# character] many [# characters]} too many"},CharactersExceedingForScreenReader:{sv:"Du har {0} tecken för mycket",en:"You have {0, plural, zero [# characters] one [# character] many [# characters]} too many"}}),dc={$host:{display:e=>isNaN(e.charactersLeft())?"none":void 0},wrapper:{...ro(e=>e.charactersLeft()<0?to.Invalid:void 0)},visibleText:{verticalAlign:"middle",textWrap:"nowrap"},screenReaderText:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"}},hc=class extends Ti{constructor(){super(...arguments),this.maxCharacterCount=0,this.currentCharacterCount=0}getStyle(){return dc}render(){const e=this.charactersLeft();if(isNaN(e))return;const t=e>=0?Ve.translate(cc.CharactersLeft,e):Ve.translate(cc.CharactersExceeding,Math.abs(e)),i=e>=0?Ve.translate(cc.CharactersLeftForScreenReader,e):Ve.translate(cc.CharactersExceedingForScreenReader,Math.abs(e));return $`<div class="${this.classes.wrapper}">
399            <span class="${this.classes.visibleText}" aria-hidden="true">${t}</span
400            ><span class="${this.classes.screenReaderText}">${i}</span>
401        </div>`}charactersLeft(){return this.maxCharacterCount<=0?NaN:this.maxCharacterCount-(this.currentCharacterCount||0)}};lc([gt()],hc.prototype,"maxCharacterCount",2),lc([gt()],hc.prototype,"currentCharacterCount",2),hc=lc([_t({tag:"acorn-internal-character-count"})],hc);var pc=Object.defineProperty,uc=Object.getOwnPropertyDescriptor,gc=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?uc(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&pc(t,i,r),r},mc=(e=>(e.Date="date",e.Password="password",e.Email="email",e.Search="search",e.Text="text",e.Number="number",e.Integer="integer",e.Digits="digits",e.PositiveInteger="positive-integer",e.SwedishPhoneNumber="swedish-phone-number",e.CurrencyAmountSEK="currency-amount-sek",e.SwedishPersonalId="swedish-personal-id",e.SwedbankCustomerNumber="swedbank-customer-number",e.SecurityCodeState="security-code",e.IBAN="iban",e))(mc||{}),bc=Ve.createTranslation({DatePlaceholder:{sv:"ÅÅÅÅ-MM-DD",en:"YYYY-MM-DD"},DatePlaceholderSimple:{sv:"ÅÅ-MM-DD",en:"YY-MM-DD"},SwedishOrganizationNumberPlaceholder:{sv:"NNNNNN-XXXX",en:"NNNNNN-XXXX"},SwedishPersonalIdPlaceholderMillenniumFormat:{sv:"ÅÅÅÅMMDD-XXXX",en:"YYYYMMDD-XXXX"},SwedishPersonalIdPlaceholderDecadeFormat:{sv:"ÅÅMMDD-XXXX",en:"YYMMDD-XXXX"},CurrencyAmountSekSuffix:{sv:"kr",en:"SEK"},LongDateFormat:{sv:"Ange datum i formatet ÅÅÅÅ-MM-DD.",en:"Enter date in the format YYYY-MM-DD."},ShortDateFormat:{sv:"Ange datum i formatet ÅÅ-MM-DD.",en:"Enter date in the format YY-MM-DD."},UserGuideForStepperNavigation:{sv:"Använd upp- och ned-pilarna för att ändra värdet",en:"Use the up and down arrows to change the value"}}),vc=class{constructor(e){this.showStepper=!1,this.badInput=!1;try{this.normalizedArgs=Object.freeze(this.parse(e)),this.viewValues=Object.freeze(this.format(this.normalizedArgs))}catch(e){this.badInput=!0}}get formControlValue(){return this.normValue}get placeholder(){return""}get remainingPlaceholder(){return""}get inputType(){return"text"}get inputmode(){return"text"}get valueAsDate(){return null}get valueAsNumber(){return Number.NaN}get value(){return this.viewValues.value}get selectionStart(){return this.viewValues.selectionStart}get selectionEnd(){return this.viewValues.selectionEnd}get selectionDirection(){return this.viewValues.selectionDirection}get maxLength(){}
401get accessibilityHint(){return""}get stepValue(){return 0}get normValue(){return this.normalizedArgs.value}get normSelectionStart(){return this.normalizedArgs.selectionStart}get normSelectionEnd(){return this.normalizedArgs.selectionEnd}get normSelectionDirection(){return this.normalizedArgs.selectionDirection}inject(e,t=0,i=0){const{selectionStart:n,selectionEnd:o}=this.sanitizeSelection(this.normValue,this.normSelectionStart+t,this.normSelectionEnd+i);e=this.sanitizeInput(e);const r=[null===n?"":this.normValue.substring(0,n),e,null===o?this.normValue:this.normValue.substring(o)].join(""),a=(n||0)+e.length;return this.format({...this.normalizedArgs,value:r,selectionStart:a,selectionEnd:a})}parse(e){const{selectionStart:t,selectionEnd:i}=this.sanitizeSelection(e.value,e.selectionStart,e.selectionEnd);return{...e,selectionStart:t,selectionEnd:i}}format(e){return{...e}}translateSelectionIndex(e,t,i){let n=0,o=0;for(;n<e.length&&o<t;)i(e[n])&&o++,n++;for(;n<e.length&&!i(e[n]);)n++;return n}translateFormattedSelectionIndex(e,t,i){const n=null===t?0:t;return e.substring(0,n).split("").filter(e=>i(e)).join("").length}sanitizeInput(e){if(this.maxLength){const t=this.normSelectionEnd-this.normSelectionStart,i=this.normValue.length-t+e.length,n=Math.max(0,i-this.maxLength),o=Math.max(0,e.length-n);return e.substring(0,o)}return e}sanitizeSelection(e,t,i){return{selectionStart:t=Math.max(0,Math.min(e.length,t)),selectionEnd:i=Math.max(t,Math.min(e.length,i))}}},yc=new Intl.NumberFormat("Sv"),_c=/[^\d]/,fc=/\u2013|\u2014|-|−/g,xc=/\s+|\u202f/g,wc=/,/g,Cc=/[0-9,-]/,Sc=/[0-9.-]/,$c=/[^0-9.-]/g,kc=String(Number.MAX_SAFE_INTEGER).length-2,Ec=class extends vc{constructor(){super(...arguments),this.showStepper=!0}get inputmode(){return ai.isIOS?"text":"decimal"}get formControlValue(){return isNaN(parseFloat(this.normValue))?this.normValue:this.padEndDecimalZeros(this.normValue,"initial")}get valueAsNumber(){return parseFloat(this.formControlValue)}get stepValue(){var e,t;return(null==(t=null==(e=this.viewValues)?void 0:e.options)?void 0:t.step)||0}get accessibilityHint(){var e;return(null==(e=this.normalizedArgs.options)?void 0:e.step)?bc.UserGuideForStepperNavigation:""}parse(e){if("-"===e.value||!e.value.length)return e;let{value:t,selectionStart:i,selectionEnd:n}=this.parseMultipleCommas(e);const o=this.normalizeValue(t);if(t=o.replace(xc,""),"+"===t[0]&&(t=t.substring(1)),t=t.slice(0,kc),t=t.split(".").map((e,t)=>0===t?"-0"===e?"-0":Number(e).toString():e).join("."),t=this._handleFractionDelimiter(t,e),this.isValidateNumberInput(t))throw new Error(`Input ${e.value} is not a parsable Number.`);return t=this.padEndDecimalZeros(t,e.action),i=this.translateFormattedSelectionIndex(o,i,this.isParsedValueChar),n=this.translateFormattedSelectionIndex(o,n,this.isParsedValueChar),super.parse({...e,value:t,selectionStart:i,selectionEnd:n})}format(e){let{value:t,selectionStart:i,selectionEnd:n}=e;if("-"===t||!t.length)return e;const o=t.split("."),r=parseFloat(o[0]);return o[0]=isNaN(r)?o[0]:yc.format(parseFloat(o[0])),t=o.join(","),i=this.translateSelectionIndex(t,i,this.isFormattedValueChar),n=this.translateSelectionIndex(t,n,this.isFormattedValueChar),{...e,value:t,selectionStart:i,selectionEnd:n}}sanitizeInput(e){return e=this.normalizeValue(e),0===this.normSelectionEnd&&"-"===this.normValue[0]?"":(e=(e=0===this.normSelectionStart?e[0]+e.substring(1).replace("-",""):e.substring(0).replace("-","")).replace($c,""),super.sanitizeInput(e))}normalizeValue(e){return e.replace(wc,".").replace(fc,"-")}isValidateNumberInput(e){"-"===e[0]&&(e=e.substring(1));return void 0!==e.split(".").find((e,t)=>t>1||_c.test(e))}isFormattedValueChar(e){return Cc.test(e)}isParsedValueChar(e){return Sc.test(e)}padEndDecimalZeros(e,t){if("initial"===t&&-1!==e.indexOf(".")){const t=e.split(".");return t[1]=t[1].padEnd(1,"0"),t.join(".")}return e}parseMultipleCommas(e){let{value:t,selectionStart:i,selectionEnd:n}=e;if("insert"===e.action&&(t.match(wc)||[]).length>=2){const e=t.substring(0,i-1).replace(wc,""),o=t.substring(i-1).replace(wc,"");t=e+","+o,i=(i||0)-(t.substring(0,i-1).match(wc)||[]).length||0,n=(n||0)-(t.substring(0,n-1).match(wc)||[]).length||0}return{...e,value:t,selectionStart:i,selectionEnd:n}}_handleFractionDelimiter(e,t){var i;const{value:n,selectionStart:o,selectionEnd:r}=t,a=(null==n?void 0:n.length)===r&&o===r,s="."===e[e.length-1],l=2===(null==(i=e.match(/\./g))?void 0:i.length);return a&&s&&l?e.substring(0,e.length-1):e}}
401,Tc=class extends Ec{constructor(){super(...arguments),this.showStepper=!0}padEndDecimalZeros(e,t){const i=e.split(".");return i[1]&&(i[1]=i[1].substring(0,2)),"initial"===t&&(i[1]?i[1]=i[1].padEnd(2,"0"):i[1]="00"),i.join(".")}},Ic=/[0-9]/,Oc=/[^0-9]/g,Dc=class e extends vc{get placeholder(){return bc.DatePlaceholder}get maxLength(){return 10}get remainingPlaceholder(){return this.value.length?this.placeholder.substring(this.value.length):""}get inputmode(){return"numeric"}get formControlValue(){return this.value}get valueAsDate(){var t;try{return(null==(t=this.formControlValue)?void 0:t.length)!==e.dateFormat.length?null:new Date(`${this.formControlValue}T00:00:00.000Z`)}catch(e){return null}}get valueAsNumber(){return this.valueAsDate?this.valueAsDate.getTime():NaN}get accessibilityHint(){return bc.LongDateFormat}parse(t){let{value:i,selectionStart:n,selectionEnd:o,options:r}=t;if(o!==i.length)throw new Error("Date format should only parse dates when cursor is at end");if(i.length>10){const t=Date.parse(i);if(!0===isNaN(t))throw new Error(`Not matching Date format ${e.dateFormat}`);const n=new Date(t);i=new Date(n.getTime()-6e4*n.getTimezoneOffset()).toISOString().slice(0,10)}else if(Oc.test(i)){if(i.replace(Oc,"-").split("").filter((e,t)=>4===t||7===t?"-"===e:Ic.test(e)).length!==i.length)throw new Error(`Not matching Date format ${e.dateFormat}`)}return i=i.substring(0,this.maxLength),n=this.translateFormattedSelectionIndex(i,n,this.isValueChar),o=this.translateFormattedSelectionIndex(i,o,this.isValueChar),i=this.sanitizeValue(i),r=this.setDateFormat(e.dateFormat,r),{...t,options:r,value:i,selectionStart:n,selectionEnd:o}}format(e){let{value:t,selectionStart:i,selectionEnd:n}=e;return t=[t.substring(0,4)+(t.length>=4?"-":""),t.substring(4,6)+(t.length>=6?"-":""),t.substring(6,8)].filter(e=>e.length>0).join(""),i=this.translateSelectionIndex(t,i,this.isValueChar),n=this.translateSelectionIndex(t,n,this.isValueChar),{...e,value:t,selectionStart:i,selectionEnd:n}}sanitizeInput(e){return e=this.sanitizeValue(e),super.sanitizeInput(e)}sanitizeValue(e){return e.replace(Oc,"")}isValueChar(e){return Ic.test(e)}setDateFormat(e,t){return{...t||{},details:{format:e}}}};Dc.dateFormat="YYYY-MM-DD";var Rc=Dc,Fc=/[^0-9]/g,Lc=/[^0-9]/,Ac=class extends vc{get inputmode(){return"numeric"}get valueAsNumber(){return parseInt(this.normValue)}parse(e){if(Lc.test(e.value))throw new Error(`Input ${e.value} is not a parsable digit only string.`);return super.parse(e)}sanitizeInput(e){return(e=super.sanitizeInput(e)).replace(Fc,"")}},Mc=class extends vc{get inputmode(){return"email"}parse(e){let{value:t}=e;return t=null==t?void 0:t.toLowerCase(),super.parse({...e,value:t})}},Bc=/[^0-9A-Z]/g,Pc=/[^0-9A-Z]/,Nc=/\s+|\u202f|[-,]/g,Hc=class extends vc{parse(e){let{value:t,selectionStart:i,selectionEnd:n}=e;if(i=this.translateFormattedSelectionIndex(t,i,this._isValueChar),n=this.translateFormattedSelectionIndex(t,n,this._isValueChar),t=t.toUpperCase().replace(Nc,""),Pc.test(t))throw new Error(`Input ${e.value} is not a parsable IBAN number. Only A-Z or 0-9 accepted.`);return{...e,value:t,selectionStart:i,selectionEnd:n}}format(e){var t;let{value:i,selectionStart:n,selectionEnd:o}=e;return i=(null==(t=i.match(/.{1,4}/g))?void 0:t.join(" "))||i,n=this.translateSelectionIndex(i,n,this._isValueChar),o=this.translateSelectionIndex(i,o,this._isValueChar),{...e,value:i,selectionStart:n,selectionEnd:o}}sanitizeInput(e){return(e=e.toUpperCase()).replace(Bc,"")}_isValueChar(e){return!Pc.test(e)}},zc=/[^0-9-]/g,Wc=/[^0-9-]/,Vc=class extends Ec{constructor(){super(...arguments),this.showStepper=!0}get inputmode(){return ai.isIOS?"text":"numeric"}get stepValue(){var e,t;return Math.round((null==(t=null==(e=this.viewValues)?void 0:e.options)?void 0:t.step)||0)}parse(e){if(e=super.parse(e),Wc.test(e.value))throw new Error(`Input ${e.value} is not a parsable Integer.`);return e}sanitizeInput(e){return(e=super.sanitizeInput(e)).replace(zc,"")}},jc=class extends vc{get inputType(){return"password"}},Gc=/[^0-9]/g,qc=/[^0-9]/,Uc=class extends Ec{constructor(){super(...arguments),this.showStepper=!0}get inputmode(){return"numeric"}get stepValue(){var e,t;return Math.round((null==(t=null==(e=this.viewValues)?void 0:e.options)?void 0:t.step)||0)}parse(e){if(e=super.parse(e),qc.test(e.value))throw new Error(`Input ${e.value} is not a parsable positive integer.`);return e}sanitizeInput(e){return(e=super.sanitizeInput(e)).replace(Gc,"")}},Kc=class extends vc{get inputType(){return"search"}},Yc=class extends Ac{get placeholder(){return"XXXXXXXX"}get maxLength(){return 8}get remainingPlaceholder(){return this.value.length?this.placeholder.substring(this.value.length):""}},Xc=Ve.createTranslation({PatternMismatch:{sv:"Ange personnummer med 10 eller 12 siffror.",en:"Enter your Swedish personal identity number using 10 or 12 digits."}}),Qc=/[0-9-]/,Zc=class{validate(e){if(12!==e.length&&10!==e.length)return!1;if(!Qc.test(e))return!1;10===e.length&&(e="19"+e);let t=parseInt(e.substring(6,8));t<=92&&t>=61&&(t-=60);const i=[e.substring(0,4),e.substring(4,6),t].join("-");if(isNaN(Date.parse(i)))return!1;return e.substring(2,12).split("").reduce((e,t,i)=>{const n=i%2==0?2:1,o=parseInt(t)*n;return o>=10&&(e+=1),e+=o%10},0)%10==0}getErrorMessage(){return Xc.PatternMismatch}},Jc=/[0-9]/,ed=/[^\d-]/,td=/[^\d]/g,id=/\u2013|\u2014|−/g,nd=/\s+|\u202f/g,od={organizationNumber:bc.SwedishOrganizationNumberPlaceholder,prefixedFictiveNumber:bc.SwedishPersonalIdPlaceholderMillenniumFormat,prefixedPersonalNumber:bc.SwedishPersonalIdPlaceholderMillenniumFormat,FictiveNumber:bc.SwedishPersonalIdPlaceholderDecadeFormat,PersonalNumber:bc.SwedishPersonalIdPlaceholderDecadeFormat,unknown:""},rd=class extends vc{get formControlValue(){return this.normValue}get placeholder(){return bc.SwedishPersonalIdPlaceholderMillenniumFormat}get remainingPlaceholder(){var e;if(!this.viewValues.value.length)return"";const t=null==(e=this.normalizedArgs.options)?void 0:e.details.type;return od[t].substring(this.viewValues.value.length)}get inputmode(){return"numeric"}get maxLength(){return 13}parse(e){let{value:t,selectionStart:i,selectionEnd:n,options:o}=e;if(n!==t.length)throw new Error("Swedbank customer id should only parse when curser is at end");i=null===i?0:i,t=this.normalizeValue(t),this.validate(t),t=t.replace("-","");let r=this._getType({...e,value:t});if(t.length>=10)if("PersonalNumber"===r){const e=parseInt(t.substring(0,2));r="prefixedPersonalNumber",t=(e<=parseInt((new Date).getFullYear().toString().substring(2,4))?"20":"19")+t,i+=2,n+=2}else"FictiveNumber"===r&&(r="prefixedFictiveNumber",t="06"+t,i+=2,n+=2);i=this.translateFormattedSelectionIndex(t,i,this.isValueChar),n=this.translateFormattedSelectionIndex(t,n,this.isValueChar);const a=this._getType({...e,value:t});return o=this.mutateIdFormat(a,o),{...e,options:o,value:t,selectionStart:i,selectionEnd:n}}format(e){var t;let i,n,{value:o,selectionStart:r,selectionEnd:a}=e;switch(null==(t=e.options)?void 0:t.details.type){case"prefixedPersonalNumber":case"prefixedFictiveNumber":n=8,i=4;break;case"FictiveNumber":case"PersonalNumber":case"organizationNumber":n=6,i=4;break;default:n=12,i=0}return o.length>=n&&i&&(o=[o.substring(0,n),o.substring(n,n+i)].join("-")),r=this.translateSelectionIndex(o,r,this.isValueChar),a=this.translateSelectionIndex(o,a,this.isValueChar),{...e,value:o,selectionStart:r,selectionEnd:a}}sanitizeInput(e){return e=e.replace(td,""),super.sanitizeInput(e)}normalizeValue(e){return e.replace(nd,"").replace(id,"-")}validate(e){if(e.length>this.maxLength)throw new Error(`Parsed id should not be longer than ${this.maxLength} chars`);if(ed.test(e))throw new Error("Parsed id should only contain digits or dash");const t=e.split("-");if(t.length>2)throw new Error("Parsed id should not contain multiple dashes");if(2===t.length&&8!==t[0].length&&6!==t[0].length)throw new Error("Parsed id date fraction must be 8 or 6 chars")}mutateIdFormat(e,t){return{...t||{},details:{type:e}}}isValueChar(e){return Jc.test(e)}_getType(e){const{value:t,action:i}=e;return t.length?-1!==["0","1","2"].indexOf(t)?"unknown":t.startsWith("19")||t.startsWith("20")?"prefixedPersonalNumber":t.startsWith("06")?t[2]&&parseInt(t[2])>1?t.length>2?"prefixedFictiveNumber":"unknown":t.length>10?"prefixedFictiveNumber":10===t.length&&"initial"===i?(new Zc).validate(t)?"PersonalNumber":"FictiveNumber":"unknown":t[2]&&parseInt(t[2])>1?"FictiveNumber":"PersonalNumber":"unknown"}},ad=class extends rd{parse(e){let{value:t,selectionStart:i,selectionEnd:n,options:o}=e;if(n!==t.length)throw new Error("Swedish personal id should only parse when curser is at end");if(t=this.normalizeValue(t),this.validate(t),t=t.replace("-",""),t.length>=2)if(this._isMillenniumFormat(t))o=this.mutateIdFormat("prefixedPersonalNumber",o);else{const e=this._getMillenniumCenturyString(t.substring(0,6));e?(o=this.mutateIdFormat("prefixedPersonalNumber",o),t=e+t,i=(i||0)+2,n=(n||0)+2):o=this.mutateIdFormat("PersonalNumber",o)}else o=this.mutateIdFormat("unknown",o);return i=this.translateFormattedSelectionIndex(t,i,this.isValueChar),n=this.translateFormattedSelectionIndex(t,n,this.isValueChar),{...e,options:o,value:t,selectionStart:i,selectionEnd:n}}_isMillenniumFormat(e){const t=e.substring(0,2);return"19"===t||"20"===t}_getMillenniumCenturyString(e){if(6!==e.length||!/^\d+$/.test(e))return null;return parseInt(e.substring(0,2))<=parseInt((new Date).getFullYear().toString().substring(2,4))?"20":"19"}},sd=/[\d]/,ld=/[^\d]/,cd=/[^\d]/g,dd=/\u2013|\u2014|−|-/g,hd=/\s+|\u202f/g,pd=["011","013","016","018","019","021","023","026","031","033","035","036","040","042","044","046","054","060","063","090","010","020"],ud=class extends vc{get inputmode(){return"tel"}get maxLength(){return 13}parse(e){let{value:t,selectionStart:i,selectionEnd:n}=e;if(t=t.trim(),!t)return e;if("+46"===t.substring(0,3)?(t="0"+t.substring(3),i=(i||0)-2,n=(n||0)-2):"00"===t.substring(0,2)&&(t=t.
401substring(1),i=(i||0)-1,n=(n||0)-1),i=this.translateFormattedSelectionIndex(t,i,this.isValueChar),n=this.translateFormattedSelectionIndex(t,n,this.isValueChar),t=this.normalizeValue(t),t.length>10)throw new Error(`Input ${e.value} is not a parsable swedish phone number. Should not be longer than 10 digits`);if("0"!==t[0])throw new Error(`Input ${e.value} is not a parsable swedish phone number. Should start with zero`);if(ld.test(t))throw new Error(`Input ${e.value} is not a parsable swedish phone number. Should contain digits only`);return{...e,value:t,selectionStart:i,selectionEnd:n}}format(e){let t,{value:i,selectionStart:n,selectionEnd:o}=e;if(!i)return e;if(i.startsWith("08")?t="08":i.startsWith("07")||-1!==pd.indexOf(i.substring(0,3))?t=i.substring(0,3):i.length>=4&&(t=i.substring(0,4)),!t)return e;let r,a=i.substring(t.length);return r=a.length<=5?[a.substring(0,3),a.substring(3)]:6===a.length?[a.substring(0,2),a.substring(2,4),a.substring(4)]:7===a.length?[a.substring(0,3),a.substring(3,5),a.substring(5)]:[a.substring(0,3),a.substring(3,6),a.substring(6)],a=r.filter(e=>e.length).join(" "),i=`${t}-${a}`,n=this.translateSelectionIndex(i,n,this.isValueChar),o=this.translateSelectionIndex(i,o,this.isValueChar),{...e,value:i,selectionStart:n,selectionEnd:o}}sanitizeInput(e){return 0===this.selectionStart&&"+46"===e.substring(0,3)&&(e="0"+e.substring(3)),e=e.replace(cd,""),super.sanitizeInput(e)}normalizeValue(e){return e.replace(dd,"").replace(hd,"")}isValueChar(e){return sd.test(e)}},gd={options:{details:{}},type:"text",action:"initial",value:"",selectionStart:0,selectionEnd:0,selectionDirection:"none"},md=class e{get type(){return this._inputStateArgs.type}get placeholder(){return this._formatter.placeholder}get showStepper(){return this._formatter.showStepper}get stepValue(){return this._formatter.stepValue}get accessibilityHint(){return this._formatter.accessibilityHint}get inputType(){return this._formatter.inputType}get inputmode(){return this._formatter.inputmode}get valueAsDate(){return this._formatter.valueAsDate}get valueAsNumber(){return this._formatter.valueAsNumber}get remainingPlaceholder(){return this._formatter.remainingPlaceholder}get formControlValue(){return this._formatter.formControlValue}get value(){return this._formatter.value}get selectionStart(){return this._formatter.selectionStart}get selectionEnd(){return this._formatter.selectionEnd}get selectionDirection(){return this._formatter.selectionDirection}get suffix(){return""}get action(){return this._inputStateArgs.action}constructor(e,t){this._inputStateArgs=Object.assign({},gd,e),this.previousState=t,-1===Object.values(mc).indexOf(this._inputStateArgs.type)&&(this._inputStateArgs.type="text"),this._formatter=this._getFormatter(this._inputStateArgs)}connect(e){e.value=this.value}syncSelectionRange(e,t,i){this._inputStateArgs={...this._inputStateArgs,value:this.value,selectionStart:e,selectionEnd:t,selectionDirection:i},this._formatter=this._getFormatter(this._inputStateArgs)}insertText(e=""){return this._mutate({...this._formatter.inject(e),action:"insert",selectionDirection:"none"})}insertFromPaste(e=""){return this._mutate({...this._formatter.inject(e),action:"paste",selectionDirection:"none"})}deleteContent(){return this._mutate({...this._formatter.inject(""),action:"delete",selectionDirection:"none"})}deleteContentBackward(){return this._hasSelectedContent()?this.deleteContent():this._mutate({...this._formatter.inject("",-1,0),action:"delete",selectionDirection:"none"})}deleteContentForward(){return this._hasSelectedContent()?this.deleteContent():this._mutate({...this._formatter.inject("",0,1),action:"delete",selectionDirection:"none"})}deleteByCut(){return this._mutate({...this._formatter.inject(""),action:"cut",selectionDirection:"none"})}historyRedo(){if(!this.nextState)return this;let e=this.nextState;const t=e.action;for(;e.nextState&&e.nextState.action===t;)e=e.nextState;return e}historyUndo(){let e=this.previousState;for(;e&&e.action===this.action;)e=e.previousState;return e||this}setValue(t){const{type:i,options:n}=this._inputStateArgs,o=t.length;return new e({type:i,options:n,value:t,selectionStart:o,selectionEnd:o,selectionDirection:"none"})}_mutate(t){return t=Object.assign({},this._inputStateArgs,this._formatter.viewValues,t),this.nextState=new e(t,this),this.nextState}_hasSelectedContent(){return this._formatter.selectionStart!==this._formatter.selectionEnd}_getFormatter(e){let t;switch(e.type){case"date":t=new Rc(e);break;case"email":t=new Mc(e);break;
401case"digits":t=new Ac(e);break;case"number":t=new Ec(e);break;case"password":t=new jc(e);break;case"search":t=new Kc(e);break;case"integer":t=new Vc(e);break;case"positive-integer":t=new Uc(e);break;case"swedish-phone-number":t=new ud(e);break;case"swedish-personal-id":t=new ad(e);break;case"swedbank-customer-number":t=new rd(e);break;case"security-code":t=new Yc(e);break;case"currency-amount-sek":t=new Tc(e);break;case"iban":t=new Hc(e)}return!t||t.badInput?new vc(e):t}},bd=class e{constructor(e,t=""){this._pendingValue="",this._inputElement=e||void 0,this._pendingValue=t}get type(){return"text"}get placeholder(){return""}get showStepper(){return!1}get stepValue(){return 0}get accessibilityHint(){return""}get inputType(){return"text"}get inputmode(){return"text"}get valueAsDate(){return null}get valueAsNumber(){}get remainingPlaceholder(){return""}get formControlValue(){return this.value}get value(){return this._inputElement?this._inputElement.value:this._pendingValue}get selectionStart(){var e;return(null==(e=this._inputElement)?void 0:e.selectionStart)||null}get selectionEnd(){var e;return(null==(e=this._inputElement)?void 0:e.selectionEnd)||null}get selectionDirection(){var e;return(null==(e=this._inputElement)?void 0:e.selectionDirection)||null}get suffix(){return""}connect(e){this._inputElement=e,this._pendingValue&&(this._inputElement.value=this._pendingValue)}syncSelectionRange(){}insertText(){return new e(this._inputElement)}insertFromPaste(){return new e(this._inputElement)}deleteContent(){return new e(this._inputElement)}deleteContentBackward(){return new e(this._inputElement)}deleteContentForward(){return new e(this._inputElement)}deleteByCut(){return new e(this._inputElement)}historyRedo(){return new e(this._inputElement)}historyUndo(){return new e(this._inputElement)}setValue(t){return this._inputElement?(this._inputElement.value=t,new e(this._inputElement)):(this._pendingValue=t,this)}},vd=Ve.createTranslation({ClearButtonLabel:{sv:"Rensa textfältet",en:"Clear input"}});function yd(e){return e.shouldShowInvalidState()?to.Invalid:e._hasFormControlFocusState()?to.Focused:e.disabled?to.Disabled:void 0}var _d={clearButton:{display:"flex",alignItems:"center"},formControlWrapper:{...ao(yd),alignItems:"stretch",backgroundClip:"padding-box",backgroundColor:e=>no(yd(e)),boxSizing:"border-box",cursor:e=>e.disabled?"default":"text",display:"flex",flex:"1 1 auto",flexDirection:"row",height:Qn,justifyContent:"flex-start",maxWidth:Xn,pointerEvents:e=>e.disabled?"none":void 0,position:"relative"},input:{...so(),...Qi(),boxSizing:"border-box",...oo({truncate:!1},yd),overflow:"hidden",background:"transparent",border:"0",width:"100%",boxShadow:"none","-webkit-appearance":"none","&::-ms-clear":{display:"none"},padding:`0 ${Zn}`,"&:auto-fill + .remaining-placeholder":{display:"none"},"&:-webkit-autofill + .remaining-placeholder":{display:"none"},'&[type="search"]':{"&::-webkit-search-decoration":{display:"none","-webkit-appearance":"none",appearance:"none"},"&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none",appearance:"none"},"&::-webkit-search-results-button":{display:"none","-webkit-appearance":"none",appearance:"none"},"&::-webkit-search-results-decoration":{display:"none","-webkit-appearance":"none",appearance:"none"}}},inputSuffix:{...so(),alignItems:"center",boxSizing:"border-box",display:e=>e._slottedInputSuffix.isFilled()?"none":"flex",flex:"0 0 auto",whiteSpace:"nowrap",paddingRight:Zn},search:{display:"flex",alignItems:"center",paddingLeft:Zn},searchIcon:{display:"flex"},remainingPlaceholder:{...so(),lineHeight:Qn,position:"absolute",top:"-1px",pointerEvents:"none",paddingLeft:Zn},remainingPlaceholderIndent:{float:"left",color:"transparent"},accessibilityHint:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0",display:"inline"},labelText:{whiteSpace:"pre-line"},remainingPlaceholderValue:{color:zi.Text.Regular.high,float:"left",whiteSpace:"pre"},stepDown:{...fd("step-down"),marginLeft:e=>e._slottedInputSuffix.isFilled()?"16px":"0"},stepUp:{...fd("step-up"),marginLeft:"8px",marginRight:Zn},helperText:{display:"flex"},characterCount:{marginLeft:"auto",paddingLeft:"12px"}};function fd(e){const t="step-up"===e?".step-up":".step-down";return{alignSelf:"center",border:"none",borderRadius:"2px",height:"30px",width:"42px",display:"flex",justifyContent:"center",alignItems:"center",cursor:e=>i(e)?void 0:"pointer",backgroundColor:zi.ComponentSpecific.Stepper.surface,"&:hover":{backgroundImage:e=>i(e)?void 0:`linear-gradient(${zi.Overlay.hover},  ${zi.Overlay.hover})`}};function i(e){var i;return null==(i=e.shadowRoot.querySelector(t))?void 0:i.disabled}}var xd=Ve.createTranslation({PatternMismatch:{sv:"Ange datum i giltigt format: ÅÅÅÅ-MM-DD.",en:"Enter a date in valid format: YYYY-MM-DD."}}),wd=Ve.createTranslation({PatternMismatch:{sv:"Ange email adress i giltigt format.",en:"Enter an email address in valid format."}}
401),Cd=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Sd=["060","063","064","0660","0665","0666","0667","0669"],$d=["061","062","065","0667","0668","0669","0661","0662","0663","0664","0668"],kd=Ve.createTranslation({PatternMismatch:{sv:"Angivet värde är inte ett giltigt kundnummer hos Swedbank. Giltiga värden är personnummer, samordningsnummer eller organisationsnummer. 12 siffror.",en:"Provided value is not a valid Swedbank customer number. Accepts personal identity number, co-ordination number or organization number. 12 digits."}}),Ed=Ve.createTranslation({PatternMismatch:{sv:"Ange telefonnummer i giltigt format.",en:"Enter a phone number in valid format."}}),Td=/^0[0-9]*$/,Id=new Map([["date",new class{validate(e){return 10===e.length&&!isNaN(Date.parse(e))}getErrorMessage(){return xd.PatternMismatch}}],["email",new class{validate(e){return Cd.test(e.toLowerCase())}getErrorMessage(){return wd.PatternMismatch}}],["swedish-phone-number",new class{validate(e){return!!e.match(Td)}getErrorMessage(){return Ed.PatternMismatch}}],["swedish-personal-id",new Zc],["swedbank-customer-number",new class{validate(e){return 12===e.length&&(e.startsWith("19")||e.startsWith("20")?(new Zc).validate(e):!!e.startsWith("06")&&(!!Sd.find(t=>e.startsWith(t))||!!(parseInt(e[4])>1&&$d.find(t=>e.startsWith(t)))))}getErrorMessage(){return kd.PatternMismatch}}]]),Od="clearableButton";function Dd(e){const t=parseInt(e);return isNaN(t)?-1:t}function Rd(e){return"number"!=typeof e||isNaN(e)||-1===e?void 0:e.toString()}function Fd(e){const t=parseFloat(e);return isNaN(t)?-1:t}var Ld=class extends Ps{constructor(){super(...arguments),this.clearable=!1,this.step=0,this.inputState=new bd,this._stepUpButtonElement=null,this._stepDownButtonElement=null,this._inputElementId="acorn-text-field-input-element-id",this._errorAndHintWrapperId="acorn-text-field-error-and-hint-wrapper-id",this._inputSuffixWrapperId="acorn-text-field-suffix-wrapper-id",this._accessibilityHintId="acorn-text-field-accessibility-hint-id",this._accessibilityLabelId="acorn-text-field-accessibility-label-id",this._clearButtonInteraction=!1,this._changed=!1,this._inputStateOptions={details:{}}}set type(e){this.type!==e&&("text"===e||-1===Object.values(mc).indexOf(e)?this.inputState=new bd(this._nativeInputElement):this.inputState=new md({type:e,value:this.value,options:this._inputStateOptions}),this.modelElement&&(this.modelElement.type=this.inputState.inputType))}get type(){return this.inputState.type}get value(){var e;return(null==(e=this.inputState)?void 0:e.formControlValue)||""}set value(e){e=new String(e).toString(),super.value=e,this.inputState.formControlValue!==e&&(this.inputState=this.inputState.setValue(e))}get valueAsDate(){return this.inputState.valueAsDate}get valueAsNumber(){return this.inputState.valueAsNumber}set selectionStart(e){this._nativeInputElement&&(this._nativeInputElement.selectionStart=e)}get selectionStart(){return this._nativeInputElement?this._nativeInputElement.selectionStart:null}set selectionEnd(e){this._nativeInputElement&&(this._nativeInputElement.selectionEnd=e)}get selectionEnd(){return this._nativeInputElement?this._nativeInputElement.selectionEnd:null}set selectionDirection(e){this._nativeInputElement&&(this._nativeInputElement.selectionDirection=e)}get selectionDirection(){return this._nativeInputElement?this._nativeInputElement.selectionDirection:null}get modelElementType(){return"password"===this.type?"password":"text"}get _describedByIds(){const e=[];return this.inputSuffix&&e.push(this._inputSuffixWrapperId),e.push(this._errorAndHintWrapperId,this._accessibilityHintId),e.join(" ")}get _fixedDigits(){const e=this.getAttribute("value"),t=e&&e.includes(".")?e.split(".")[1].length:0,i=this.min||0,n=i.toString().includes(".")?i.toString().split(".")[1].length:0,o=(this.inputState.stepValue||0).toString(),r=o.includes(".")?o.split(".")[1].length:0;return Math.max(t,Math.max(r,n))}get _minForCalc(){let e=0;return e=isNaN(this.min)?isNaN(parseFloat(this.getAttribute("value")))?0:parseFloat(this.getAttribute("value")):this.min,e}get _nativeInputElement(){return this.shadowRoot.getElementById(this._inputElementId)}getStyle(){return ge({},super.getStyle(),_d)}render(){return $`
402            <div class="${this.classes.formFieldWrapper}">
403                ${this.labelTemplate("string"==typeof this.label?$`
404                              <label
405                                  class="${this.classes.label}"
406                                  for="${j(this._inputElementId||void 0)}"
407                                  @click="${this._onLabelClick}"
408                                  ><span class="${this.classes.accessibilityHint}" id="${this._accessibilityLabelId}"
409                                      >${this.accessibilityLabel}</span
410                                  ><span
411                                      class="${this.classes.labelText}"
412                                      aria-hidden="${j(this.accessibilityLabel?"true":void 0)}"
413                                      >${this.label}</span
414                                  ></label
415                              >
416                          `:this.label,this._inputElementId)}
417                <div
418                    class="${this.classes.formControlWrapper}"
419                    @focusin="${this._onFocus}"
420                    @focusout="${this._onFocus}"
421                >
422                    ${"search"===this.type?$`
423                              <span
424                                  class="${this.classes.search}"
425                                  @click="${this._onSearchIconInteraction}"
426                                  aria-hidden="true"
427                              >
428                                  <acorn-internal-icon
429                                      class="${this.classes.searchIcon}"
430                                      icon="${Zo.MagnifyingGlass}"
431                                      size="${Jo.Regular}"
432                                      color="${this.disabled?zi.Icon.disabled:zi.Icon.regular}"
433                                  >
434                                  </acorn-internal-icon>
435                              </span>
436                          `:void 0}
437                    <input
438                        class="${this.classes.input}"
439                        @blur="${this._onBlur}"
440                        @change="${this._onChange}"
441                        @keydown="${this._onKeyDown}"
442                        @paste="${this._onPaste}"
443                        @input="${this._onInput}"
444                        @beforeinput="${this._onBeforeInput}"
445                        id="${this._inputElementId}"
446                        ?autofocus="${this.autofocus}"
447                        ?disabled="${this.disabled}"
448                        ?readonly="${this.readOnly}"
449                        aria-invalid="${this.shouldShowInvalidState()}"
450                        aria-label="${j(this.hideLabel||this.ariaLabel?this.label||this.ariaLabel:void 0)}"
451                        aria-required="${j(this.required||"true"===this.ariaRequired?"true":void 0)}"
452                        aria-describedby="${this._describedByIds}"
453                        placeholder="${j(this.placeholder||this.inputState.placeholder||void 0)}"
454                        autocomplete="${j(this.autocomplete||void 0)}"
455                        inputmode="${j(this.inputMode||this.inputState.inputmode||void 0)}"
456                        type="${this.inputState.inputType}"
457                        .maxLength="${j(this.maxLength||void 0)}"
458                    />
459
460                    ${this.inputState.remainingPlaceholder?$`
461                              <div class="${this.classes.remainingPlaceholder}">
462                                  <span class="${this.classes.remainingPlaceholderIndent}"
463                                      >${this.inputState.value}</span
464                                  >
465                                  <span class="${this.classes.remainingPlaceholderValue}"
466                                      >${this.inputState.remainingPlaceholder}</span
467                                  >
468                              </div>
469                          `:void 0}
470
471                    <span class="${this.classes.accessibilityHint}" id="${this._accessibilityHintId}">
472                        ${this.inputState.accessibilityHint}
473                    </span>
474
475                    ${this._showClearable()?$`
476                              <acorn-internal-icon-button
477                                  id="${Od}"
478                                  class="${this.classes.clearButton}"
479                                  icon="${Zo.XMark}"
480                                  size="${Jo.Regular}"
481                                  label="${vd.ClearButtonLabel}"
482                                  hide-label
483                                  @click="${this._onClearButtonInteraction}"
484                                  @keydown="${this._onClearButtonKeyDown}"
485                                  @mousedown="${this._storeThatClearButtonHasBeenInteractedWith}"
486                              ></acorn-internal-icon-button>
487                          `:void 0}
488                    ${this.inputSuffix||this.inputState.suffix&&!this._slottedInputSuffix.content?$`
489                              <div
490                                  id="${this._inputSuffixWrapperId}"
491                                  class="${this.classes.inputSuffix}"
492                                  @click="${this._onInputSuffixInteraction}"
493                              >
494                                  ${this.inputSuffix||this.inputState.suffix}
495                              </div>
496                          `:void 0}
497                    ${this._slottedInputSuffix}
498                    ${this._showStepper()?$`
499                              <button
500                                  tabindex="-1"
501                                  aria-hidden="true"
502                                  class="${this.classes.stepDown}"
503                                  @click="${this._onStepperPress}"
504                                  ?disabled="${this._isStepperDisabled("step-down")}"
505                              >
506                                  <acorn-internal-icon
507                                      icon="minus"
508                                      size="${Jo.Regular}"
509                                      color="${this.disabled?zi.Icon.disabled:zi.Icon.interactive}"
510                                      aria-hidden="true"
511                                  >
512                                  </acorn-internal-icon>
513                              </button>
514                              <button
515                                  tabindex="-1"
516                                  aria-hidden="true"
517                                  class="${this.classes.stepUp}"
518                                  @click="${this._onStepperPress}"
519                                  ?disabled="${this._isStepperDisabled("step-up")}"
520                              >
521                                  <acorn-internal-icon
522                                      icon="plus"
523                                      size="${Jo.Regular}"
524                                      aria-hidden="true"
525                                      color="${this.disabled?zi.Icon.disabled:zi.Icon.interactive}"
526                                  >
527                                  </acorn-internal-icon>
528                              </button>
529                          `:void 0}
530                </div>
531                <div id="${this._errorAndHintWrapperId}" class="${this.classes.helperText}">
532                    ${this.hintTemplate()} ${this.errorTemplate()} ${this.lengthRestrictionTemplate()}
533                </div>
534            </div>
535        `}afterInitialRender(){this._nativeInputElement&&this.inputState.connect(this._nativeInputElement)}select(){var e;null==(e=this._nativeInputElement)||e.select()}setSelectionRange(e,t,i){var n;null==(n=this._nativeInputElement)||n.setSelectionRange(e,t,i)}onInputStateChange(){super.value=this.inputState.formControlValue,"text"!==this.inputState.type&&this._nativeInputElement&&(this._nativeInputElement.value=this.inputState.value,this._hasFormControlFocusState()&&this.setSelectionRange(this.inputState.selectionStart,this.inputState.selectionEnd,this.inputState.selectionDirection||void 0))}updateClearable(){!!this.shadowRoot.getElementById(Od)!==this._showClearable()&&this.invalidate()}onStepValueChange(){this._inputStateOptions.step=this.step}afterRender(){this._stepUpButtonElement=this.shadowRoot.querySelector(".step-up"),this._stepDownButtonElement=this.shadowRoot.querySelector(".step-down"),this.updateV
535alidity()}updateValidity(){const e={},t=this.max,i=this.min,n=this.maxLength,o=this.minLength,r=this.maxCharacterCount;if(this.required&&""===this.value&&(e.valueMissing=!0),(!isNaN(n)&&this.value.length>n||r>0&&this.value.length>r)&&(e.tooLong=!0),!isNaN(o)&&this.value.length<o&&(e.tooShort=!0),!isNaN(t)&&!isNaN(this.value)&&parseFloat(this.value)>t&&(e.rangeOverflow=!0),!isNaN(i)&&!isNaN(this.value)&&parseFloat(this.value)<i&&(e.rangeUnderflow=!0),this.value.length&&this.pattern){const t=Id.get(this.pattern);t?e.patternMismatch=!t.validate(this.value):new RegExp(`^(${this.pattern})$`).test(this.value)||(e.patternMismatch=!0)}this._showStepper()&&this._doesStepMissMatch()&&(e.stepMismatch=!0),super.updateValidity(e)}getFocusElement(){return this._nativeInputElement}getErrorMessage(e){if("patternMismatch"===e&&Id.has(this.pattern)){return Id.get(this.pattern).getErrorMessage()}return super.getErrorMessage(e)}shouldSyncModelRelatedProperty(e,t,i){return!!super.shouldSyncModelRelatedProperty(e,t,i)&&("type"!==i||t===this.modelElement&&this._isNativeType(e.type))}lengthRestrictionTemplate(){if(this.maxCharacterCount&&this.maxCharacterCount>0)return $`<acorn-internal-character-count
536                class="${this.classes.characterCount}"
537                current-character-count="${this.value.length}"
538                max-character-count="${this.maxCharacterCount}"
539            ></acorn-internal-character-count>`}_isNativeType(e){try{const t=document.createElement("input");return t.type=e,t.type===e}catch(e){return!1}}_onClearButtonKeyDown(e){e.key===ye.Enter&&(e.preventDefault(),this._onClearButtonInteraction())}_onClearButtonInteraction(e){var t;null==e||e.stopPropagation(),this.value="",null==(t=this._nativeInputElement)||t.focus(),this._clearButtonInteraction=!1,this.invalidate(!0),this.dispatchEvent(bs()),this.dispatchEvent(new CustomEvent("clear",{bubbles:!1,cancelable:!1,composed:!0}))}_onChange(e){e.preventDefault();const t=this._nativeInputElement?this._nativeInputElement.value:"";this.inputState=this.inputState.setValue(t)}_onBeforeInput(){this.inputState.syncSelectionRange(this.selectionStart,this.selectionEnd,this.selectionDirection)}_onInput(e){var t;switch(super.onInputEvent(),this._changed=!0,e.inputType){case"insertText":case"insertCompositionText":this.inputState=this.inputState.insertText(e.data);break;case"deleteContentBackward":this.inputState=this.inputState.deleteContentBackward();break;case"deleteContentForward":this.inputState=this.inputState.deleteContentForward();break;case"deleteContent":this.inputState=this.inputState.deleteContent();break;case"deleteByCut":this.inputState=this.inputState.deleteByCut();break;case"insertFromPaste":this.inputState=this.inputState.insertFromPaste(this._pastedClipboardData),this._pastedClipboardData="";break;case"historyUndo":this.inputState=this.inputState.historyUndo();break;case"historyRedo":this.inputState=this.inputState.historyRedo();break;default:this.inputState=this.inputState.setValue((null==(t=this._nativeInputElement)?void 0:t.value)||"")}}_onPaste(e){var t;const i=document.createElement("input");i.value=null==(t=e.clipboardData)?void 0:t.getData("Text"),this._pastedClipboardData=i.value}_onKeyDown(e){if(e.key!==ye.Enter){if(this._showStepper())switch(e.key){case ye.ArrowDown:if(this._isStepperDisabled("step-down"))return;if(this._stepDown.emit().defaultPrevented)return;this._calcStepperValue("step-down");break;case ye.ArrowUp:if(this._isStepperDisabled("step-up"))return;if(this._stepUp.emit().defaultPrevented)return;this._calcStepperValue("step-up")}}else this._verifyChange()}_onFocus(e){const t="focusin"===e.type;this.updateFormControlFocusState(t)}_onInputSuffixInteraction(e){var t,i,n;e.preventDefault(),null==(t=this._nativeInputElement)||t.focus(),this.setSelectionRange((null==(i=this._nativeInputElement)?void 0:i.value.length)||0,(null==(n=this._nativeInputElement)?void 0:n.value.length)||0)}_onSearchIconInteraction(){var e;null==(e=this._nativeInputElement)||e.focus(),this.setSelectionRange(0,0)}_showClearable(){return!(!this.clearable||!this.value||this.disabled||this.readOnly)}_onBlur(e){this._preventEventIfClearButtonHasBeenClicked(e),this._verifyChange()}_verifyChange(){this._changed&&(this.dispatchEvent(vs()),this._changed=!1)}_preventEventIfClearButtonHasBeenClicked(e){this._clearButtonInteraction&&(e.preventDefault(),e.stopImmediatePropagation(),this._clearButtonInteraction=!1)}_storeThatClearButtonHasBeenInteractedWith(e){this._clearButtonInteraction=!0,e.preventDefault(),e.stopImmediatePropagation()}_showStepper(){return!(!this.inputState.stepValue||!this.inputState.showStepper)}_isStepperDisabled(e){return!(!this.disabled&&!this.readOnly)||"step-down"===e&&"positive-integer"===this.type&&this.valueAsNumber<=0}_onStepperPress(e){let t;e.currentTarget===this._stepUpButtonElement&&(t=this._stepUp.emit()),e.currentTarget===this._stepDownButtonElement&&(t=this._stepDown.emit()),(null==t?void 0:t.defaultPrevented)||(e.currentTarget===this._stepUpButtonElement&&this._calcStepperValue("step-up"),e.currentTarget===this._stepDownButtonElement&&this._calcStepperValue("step-down"))}_calcStepperValue(e){const t=isNaN(this.valueAsNumber)?0:this.valueAsNumber,i=this.value,
539n=this.max,o=this.min,r=this.inputState.stepValue;let a=this._minForCalc;for(a=this._getValueOfWholeStepsCloseToValue(t-this._minForCalc)+this._minForCalc;t>a;)a=this._toFixedAsNumber(a+r);for(;t<=a;)a=this._toFixedAsNumber(a-r);if("step-up"===e){let e=this._toFixedAsNumber(a+r);t>=e&&(e+=r),!isNaN(n)&&e>n&&(e=this._toFixedAsNumber(n)),!isNaN(o)&&e<o&&(e=this._toFixedAsNumber(o)),this.value=e.toFixed(this._fixedDigits)}"step-down"===e&&(!isNaN(o)&&a<o&&(a=this._toFixedAsNumber(o)),!isNaN(n)&&a>n&&(a=this._toFixedAsNumber(n)),"positive-integer"===this.type&&a<=0&&(a=0),this.value=a.toFixed(this._fixedDigits)),i!==this.value&&(this.dispatchEvent(bs()),this.dispatchEvent(vs()))}_toFixedAsNumber(e){return parseFloat(e.toFixed(this._fixedDigits))}_getValueOfWholeStepsCloseToValue(e){let t=0;const i=this.inputState.stepValue||0;return i&&e>=this._minForCalc?t=Math.floor(e/i):i&&e<this._minForCalc&&(t=Math.ceil(e/i)),this._toFixedAsNumber(t*i)}_doesStepMissMatch(){if(isNaN(this.step)||0===this.step)return!1;let e=this._toFixedAsNumber(this.valueAsNumber-this._getValueOfWholeStepsCloseToValue(this.valueAsNumber));for(;e>this._minForCalc;)e=this._toFixedAsNumber(e-this.step);for(;e<this._minForCalc;)e=this._toFixedAsNumber(e+this.step);return e!==this._minForCalc}_onLabelClick(e){e.stopPropagation()}};function Ad(e){return(Ad="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Md(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Bd(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Pd(e){Bd(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Ad(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function Nd(e,t){Bd(2,arguments);var i=Pd(e),n=Md(t);return isNaN(n)?new Date(NaN):n?(i.setDate(i.getDate()+n),i):i}function Hd(e,t){Bd(2,arguments);var i=Pd(e),n=Md(t);if(isNaN(n))return new Date(NaN);if(!n)return i;var o=i.getDate(),r=new Date(i.getTime());return r.setMonth(i.getMonth()+n+1,0),o>=r.getDate()?r:(i.setFullYear(r.getFullYear(),r.getMonth(),o),i)}gc([gt(),zt({type:Boolean})],Ld.prototype,"clearable",2),gc([gt({name:"input-suffix",reflect:!0})],Ld.prototype,"inputSuffix",2),gc([gt({name:"inputmode",reflect:!0}),zt({type:String})],Ld.prototype,"inputMode",2),gc([gt({name:"maxlength",reflect:!0,fromAttribute:Dd,toAttribute:Rd}),zt({type:Number})],Ld.prototype,"maxLength",2),gc([gt({name:"minlength",reflect:!0,fromAttribute:Dd,toAttribute:Rd}),zt({type:Number})],Ld.prototype,"minLength",2),gc([gt({reflect:!0,fromAttribute:Fd,toAttribute:Rd}),zt({type:Number})],Ld.prototype,"max",2),gc([gt({reflect:!0,fromAttribute:Fd,toAttribute:Rd}),zt({type:Number})],Ld.prototype,"min",2),gc([gt({reflect:!0})],Ld.prototype,"pattern",2),gc([gt({reflect:!0})],Ld.prototype,"placeholder",2),gc([gt({reflect:!0})],Ld.prototype,"autocomplete",2),gc([gt({reflect:!0}),zt({type:Number})],Ld.prototype,"step",2),gc([gt(),zt({type:String})],Ld.prototype,"accessibilityLabel",2),gc([ri("input-suffix")],Ld.prototype,"_slottedInputSuffix",2),gc([gt({fromAttribute:e=>null!==e?Math.max(parseInt(e)||0,0):0}),zt({type:Number})],Ld.prototype,"maxCharacterCount",2),gc([gt({reflect:!0})],Ld.prototype,"type",1),gc([Ht()],Ld.prototype,"inputState",2),gc([ft({cancelable:!0})],Ld.prototype,"_stepUp",2),gc([ft({cancelable:!0})],Ld.prototype,"_stepDown",2),gc([wi("inputState")],Ld.prototype,"onInputStateChange",1),gc([wi("value"),wi("clearable")],Ld.prototype,"updateClearable",1),gc([wi("step")],Ld.prototype,"onStepValueChange",1),gc([Pe()],Ld.prototype,"_onClearButtonKeyDown",1),gc([Pe()],Ld.prototype,"_onClearButtonInteraction",1),gc([Pe()],Ld.prototype,"_onChange",1),gc([Pe()],Ld.prototype,"_onBeforeInput",1),gc([Pe()],Ld.prototype,"_onInput",1),gc([Pe()],Ld.prototype,"_onPaste",1),gc([Pe()],Ld.prototype,"_onKeyDown",1),gc([Pe()],Ld.prototype,"_onFocus",1),gc([Pe()],Ld.prototype,"_onInputSuffixInteraction",1),gc([Pe()],Ld.prototype,"_onSearchIconInteraction",1),gc([Pe()],Ld.prototype,"_onBlur",1),gc([Pe()],Ld.prototype,"_storeThatClearButtonHasBeenInteractedWith",1),gc([Pe()],Ld.prototype,"_isStepperDisabled",1),gc([Pe()],Ld.prototype,"_onStepperPress",1),Ld=gc([_t({tag:"acorn-text-field"})],Ld);var zd={};function Wd(){return zd}function Vd(e,t){return Bd(2,arguments),Nd(e,7*Md(t))}
vendor: 16,940 bytes, line 539
539function jd(e,t){return Bd(2,arguments),Hd(e,12*Md(t))}Math.pow(10,8);var Gd=6e4,qd=36e5;function Ud(e){if(Bd(1,arguments),!function(e){return Bd(1,arguments),e instanceof Date||"object"===Ad(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=Pd(e);return!isNaN(Number(t))}function Kd(e){Bd(1,arguments);var t=Pd(e),i=t.getMonth();return t.setFullYear(t.getFullYear(),i+1,0),t.setHours(23,59,59,999),t}function Yd(e){Bd(1,arguments);var t=Pd(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Xd(e,t){return Bd(2,arguments),function(e,t){Bd(2,arguments);var i=Pd(e).getTime(),n=Md(t);return new Date(i+n)}(e,-Md(t))}function Qd(e){Bd(1,arguments);var t=Pd(e),i=t.getUTCDay(),n=(i<1?7:0)+i-1;return t.setUTCDate(t.getUTCDate()-n),t.setUTCHours(0,0,0,0),t}function Zd(e){Bd(1,arguments);var t=Pd(e),i=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(i+1,0,4),n.setUTCHours(0,0,0,0);var o=Qd(n),r=new Date(0);r.setUTCFullYear(i,0,4),r.setUTCHours(0,0,0,0);var a=Qd(r);return t.getTime()>=o.getTime()?i+1:t.getTime()>=a.getTime()?i:i-1}function Jd(e){Bd(1,arguments);var t=Pd(e),i=Qd(t).getTime()-function(e){Bd(1,arguments);var t=Zd(e),i=new Date(0);return i.setUTCFullYear(t,0,4),i.setUTCHours(0,0,0,0),Qd(i)}(t).getTime();return Math.round(i/6048e5)+1}function eh(e,t){var i,n,o,r,a,s,l,c;Bd(1,arguments);var d=Wd(),h=Md(null!==(i=null!==(n=null!==(o=null!==(r=null==t?void 0:t.weekStartsOn)&&void 0!==r?r:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:d.weekStartsOn)&&void 0!==n?n:null===(l=d.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==i?i:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Pd(e),u=p.getUTCDay(),g=(u<h?7:0)+u-h;return p.setUTCDate(p.getUTCDate()-g),p.setUTCHours(0,0,0,0),p}function th(e,t){var i,n,o,r,a,s,l,c;Bd(1,arguments);var d=Pd(e),h=d.getUTCFullYear(),p=Wd(),u=Md(null!==(i=null!==(n=null!==(o=null!==(r=null==t?void 0:t.firstWeekContainsDate)&&void 0!==r?r:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:p.firstWeekContainsDate)&&void 0!==n?n:null===(l=p.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==i?i:1);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(h+1,0,u),g.setUTCHours(0,0,0,0);var m=eh(g,t),b=new Date(0);b.setUTCFullYear(h,0,u),b.setUTCHours(0,0,0,0);var v=eh(b,t);return d.getTime()>=m.getTime()?h+1:d.getTime()>=v.getTime()?h:h-1}function ih(e,t){Bd(1,arguments);var i=Pd(e),n=eh(i,t).getTime()-function(e,t){var i,n,o,r,a,s,l,c;Bd(1,arguments);var d=Wd(),h=Md(null!==(i=null!==(n=null!==(o=null!==(r=null==t?void 0:t.firstWeekContainsDate)&&void 0!==r?r:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:d.firstWeekContainsDate)&&void 0!==n?n:null===(l=d.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==i?i:1),p=th(e,t),u=new Date(0);return u.setUTCFullYear(p,0,h),u.setUTCHours(0,0,0,0),eh(u,t)}(i,t).getTime();return Math.round(n/6048e5)+1}function nh(e,t){for(var i=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return i+n}var oh={y:function(e,t){var i=e.getUTCFullYear(),n=i>0?i:1-i;return nh("yy"===t?n%100:n,t.length)},M:function(e,t){var i=e.getUTCMonth();return"M"===t?String(i+1):nh(i+1,2)},d:function(e,t){return nh(e.getUTCDate(),t.length)},a:function(e,t){var i=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];default:return"am"===i?"a.m.":"p.m."}},h:function(e,t){return nh(e.getUTCHours()%12||12,t.length)},H:function(e,t){return nh(e.getUTCHours(),t.length)},m:function(e,t){return nh(e.getUTCMinutes(),t.length)},s:function(e,t){return nh(e.getUTCSeconds(),t.length)},S:function(e,t){var i=t.length,n=e.getUTCMilliseconds();return nh(Math.floor(n*Math.pow(10,i-3)),t.length)}},rh="midnight",ah="noon",sh="morning",lh="afternoon",ch="evening",dh="night";function hh(e,t){var i=e>0?"-":"+",n=Math.abs(e),o=Math.floor(n/60),r=n%60;if(0===r)return i+String(o);var a=t||"";return i+String(o)+a+nh(r,2)}function ph(e,t){return e%60==0?(e>0?"-":"+")+nh(Math.abs(e)/60,2):uh(e,t)}function uh(e,t){var i=t||"",n=e>0?"-":"+",o=Math.abs(e);return n+nh(Math.floor(o/60),2)+i+nh(o%60,2)}var gh={G:function(e,t,i){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"});case"GGGGG":return i.era(n,{width:"narrow"});default:return i.era(n,{width:"wide"})}},y:function(e,t,i){if("yo"===t){var n=e.getUTCFullYear(),o=n>0?n:1-n;return i.ordinalNumber(o,{unit:"year"})}return oh.y(e,t)},Y:function(e,t,i,n){var o=th(e,n),r=o>0?o:1-o;return"YY"===t?nh(r%100,2):"Yo"===t?i.ordinalNumber(r,{unit:"year"}):nh(r,t.length)},R:function(e,t){return nh(Zd(e),t.length)},u:function(e,t){return nh(e.getUTCFullYear(),t.length)},Q:function(e,t,i){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return nh(n,2);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});default:return i.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,i){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return nh(n,2);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});default:return i.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,i){var n=e.getUTCMonth();switch(t){case"M":case"MM":return oh.M(e,t);case"Mo":return i.ordinalNumber(n+1,{unit:"month"});case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});default:return i.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,i){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return nh(n+1,2);case"Lo":return i.ordinalNumber(n+1,{unit:"month"});case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});default:return i.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,i,n){var o=ih(e,n);return"wo"===t?i.ordinalNumber(o,{unit:"week"}):nh(o,t.length)},I:function(e,t,i){var n=Jd(e);return"Io"===t?i.ordinalNumber(n,{unit:"week"}):nh(n,t.length)},d:function(e,t,i){return"do"===t?i.ordinalNumber(e.getUTCDate(),{unit:"date"}):oh.d(e,t)},D:function(e,t,i){var n=function(e){Bd(1,arguments);var t=Pd(e),i=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=i-t.getTime();return Math.floor(n/864e5)+1}(e);return"Do"===t?i.ordinalNumber(n,{unit:"dayOfYear"}):nh(n,t.length)},E:function(e,t,i){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"});default:return i.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,i,n){var o=e.getUTCDay(),r=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(r);case"ee":return nh(r,2);case"eo":return i.ordinalNumber(r,{unit:"day"});case"eee":return i.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,i,n){var o=e.getUTCDay(),r=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(r);case"cc":return nh(r,t.length);case"co":return i.ordinalNumber(r,{unit:"day"});case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"});default:return i.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,i){var n=e.getUTCDay(),o=0===n?7:n;switch(t){case"i":return String(o);case"ii":return nh(o,t.length);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return i.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(n,{width:"short",context:"formatting"});default:return i.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,i){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,i){var n,o=e.getUTCHours();switch(n=12===o?ah:0===o?rh:o/12>=1?"pm":"am",t){case"b":case"bb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,i){var n,o=e.getUTCHours();switch(n=o>=17?ch:o>=12?lh:o>=4?sh:dh,t){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,i){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),i.ordinalNumber(n,{unit:"hour"})}return oh.h(e,t)},H:function(e,t,i){return"Ho"===t?i.ordinalNumber(e.getUTCHours(),{unit:"hour"}):oh.H(e,t)},K:function(e,t,i){var n=e.getUTCHours()%12;return"Ko"===t?i.ordinalNumber(n,{unit:"hour"}):nh(n,t.length)},k:function(e,t,i){var n=e.getUTCHours();return 0===n&&(n=24),"ko"===t?i.ordinalNumber(n,{unit:"hour"}):nh(n,t.length)},m:function(e,t,i){return"mo"===t?i.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):oh.m(e,t)},s:function(e,t,i){return"so"===t?i.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):oh.s(e,t)},S:function(e,t){return oh.S(e,t)},X:function(e,t,i,n){var o=(n._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return ph(o);case"XXXX":case"XX":return uh(o);default:return uh(o,":")}},x:function(e,t,i,n){var o=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return ph(o);case"xxxx":case"xx":return uh(o);default:return uh(o,":")}},O:function(e,t,i,n){var o=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+hh(o,":");default:return"GMT"+uh(o,":")}},z:function(e,t,i,n){var o=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+hh(o,":");default:return"GMT"+uh(o,":")}},t:function(e,t,i,n){var o=n._originalDate||e;return nh(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,i,n){return nh((n._originalDate||e).getTime(),t.length)}},mh=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},bh=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},vh={p:bh,P:function(e,t){var i,n=e.match(/(P+)(p+)?/)||[],o=n[1],r=n[2];if(!r)return mh(e,t);switch(o){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",mh(o,t)).replace("{{time}}",bh(r,t))}},yh=["D","DD"],_h=["YY","YYYY"];function fh(e,t,i){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var xh={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},wh=function(e,t,i){var n,o=xh[e];return n="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"in "+n:n+" ago":n};function Ch(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.width?String(t.width):e.defaultWidth;return e.formats[i]||e.formats[e.defaultWidth]}}var Sh={date:Ch({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Ch({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Ch({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},$h={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function kh(e){return function(t,i){var n;if("formatting"===(null!=i&&i.context?String(i.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,r=null!=i&&i.width?String(i.width):o;n=e.formattingValues[r]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=i&&i.width?String(i.width):e.defaultWidth;n=e.values[s]||e.values[a]}return n[e.argumentCallback?e.argumentCallback(t):t]}}function Eh(e){return function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],r=t.match(o);if(!r)return null;var a,s=r[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var i=0;i<e.length;i++)if(t(e[i]))return i;return}(l,function(e){return e.test(s)}):function(e,t){for(var i in e)if(e.hasOwnProperty(i)&&t(e[i]))return i;return}(l,function(e){return e.test(s)});return a=e.valueCallback?e.valueCallback(c):c,{value:a=i.valueCallback?i.valueCallback(a):a,rest:t.slice(s.length)}}}var Th,Ih={code:"en-US",formatDistance:wh,formatLong:Sh,formatRelative:function(e,t,i,n){return $h[e]},localize:{ordinalNumber:function(e,t){var i=Number(e),n=i%100;if(n>20||n<10)switch(n%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:kh({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:kh({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:kh({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:kh({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
539ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:kh({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(Th={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.match(Th.matchPattern);if(!i)return null;var n=i[0],o=e.match(Th.parsePattern);if(!o)return null;var r=Th.valueCallback?Th.valueCallback(o[0]):o[0];return{value:r=t.valueCallback?t.valueCallback(r):r,rest:e.slice(n.length)}}),era:Eh({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Eh({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Eh({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Eh({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Eh({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},Oh=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Dh=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Rh=/^'([^]*?)'?$/,Fh=/''/g,Lh=/[a-zA-Z]/;function Ah(e,t,i){var n,o,r,a,s,l,c,d,h,p,u,g,m,b,v,y,_,f;Bd(2,arguments);var x=String(t),w=Wd(),C=null!==(n=null!==(o=null==i?void 0:i.locale)&&void 0!==o?o:w.locale)&&void 0!==n?n:Ih,S=Md(null!==(r=null!==(a=null!==(s=null!==(l=null==i?void 0:i.firstWeekContainsDate)&&void 0!==l?l:null==i||null===(c=i.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==s?s:w.firstWeekContainsDate)&&void 0!==a?a:null===(h=w.locale)||void 0===h||null===(p=h.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==r?r:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var $=Md(null!==(u=null!==(g=null!==(m=null!==(b=null==i?void 0:i.weekStartsOn)&&void 0!==b?b:null==i||null===(v=i.locale)||void 0===v||null===(y=v.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==m?m:w.weekStartsOn)&&void 0!==g?g:null===(_=w.locale)||void 0===_||null===(f=_.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==u?u:0);if(!($>=0&&$<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!C.localize)throw new RangeError("locale must contain localize property");if(!C.formatLong)throw new RangeError("locale must contain formatLong property");var k=Pd(e);if(!Ud(k))throw new RangeError("Invalid time value");var E=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}(k),T=Xd(k,E),I={firstWeekContainsDate:S,weekStartsOn:$,locale:C,_originalDate:k};return x.match(Dh).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,vh[t])(e,C.formatLong):e}).join("").match(Oh).map(function(n){if("''"===n)return"'";var o=n[0];if("'"===o)return function(e){var t=e.match(Rh);if(!t)return e;return t[1].replace(Fh,"'")}(n);var r,a=gh[o];if(a)return null!=i&&i.useAdditionalWeekYearTokens||(r=n,-1===_h.indexOf(r))||fh(n,t,String(e)),null!=i&&i.useAdditionalDayOfYearTokens||!function(e){return-1!==yh.indexOf(e)}(n)||fh(n,t,String(e)),a(T,n,C.localize,I);
539if(o.match(Lh))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return n}).join("")}function Mh(e){return Bd(1,arguments),Pd(e).getDate()}function Bh(e){Bd(1,arguments);var t=Pd(e).getDay();return 0===t&&(t=7),t}function Ph(e){return Bd(1,arguments),Pd(e).getMonth()}function Nh(e){return Bd(1,arguments),Pd(e).getFullYear()}function Hh(e,t){Bd(2,arguments);var i=Pd(e),n=Pd(t);return i.getTime()>n.getTime()}function zh(e,t){Bd(2,arguments);var i=Pd(e),n=Pd(t);return i.getTime()<n.getTime()}function Wh(e,t){Bd(2,arguments);var i=Pd(e).getTime(),n=Pd(t.start).getTime(),o=Pd(t.end).getTime();if(!(n<=o))throw new RangeError("Invalid interval");return i>=n&&i<=o}function Vh(e,t){return Bd(2,arguments),Nd(e,-Md(t))}function jh(e,t){var i;Bd(1,arguments);var n=Md(null!==(i=null==t?void 0:t.additionalDigits)&&void 0!==i?i:2);if(2!==n&&1!==n&&0!==n)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,r=function(e){var t,i={},n=e.split(Gh.dateTimeDelimiter);if(n.length>2)return i;/:/.test(n[0])?t=n[0]:(i.date=n[0],t=n[1],Gh.timeZoneDelimiter.test(i.date)&&(i.date=e.split(Gh.timeZoneDelimiter)[0],t=e.substr(i.date.length,e.length)));if(t){var o=Gh.timezone.exec(t);
539o?(i.time=t.replace(o[1],""),i.timezone=o[1]):i.time=t}return i}(e);if(r.date){var a=function(e,t){var i=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(i);if(!n)return{year:NaN,restDateString:""};var o=n[1]?parseInt(n[1]):null,r=n[2]?parseInt(n[2]):null;return{year:null===r?o:100*r,restDateString:e.slice((n[1]||n[2]).length)}}(r.date,n);o=function(e,t){if(null===t)return new Date(NaN);var i=e.match(qh);if(!i)return new Date(NaN);var n=!!i[4],o=Yh(i[1]),r=Yh(i[2])-1,a=Yh(i[3]),s=Yh(i[4]),l=Yh(i[5])-1;if(n)return function(e,t,i){return t>=1&&t<=53&&i>=0&&i<=6}(0,s,l)?function(e,t,i){var n=new Date(0);n.setUTCFullYear(e,0,4);var o=n.getUTCDay()||7,r=7*(t-1)+i+1-o;return n.setUTCDate(n.getUTCDate()+r),n}(t,s,l):new Date(NaN);var c=new Date(0);return function(e,t,i){return t>=0&&t<=11&&i>=1&&i<=(Qh[t]||(Zh(e)?29:28))}(t,r,a)&&function(e,t){return t>=1&&t<=(Zh(e)?366:365)}(t,o)?(c.setUTCFullYear(t,r,Math.max(o,a)),c):new Date(NaN)}(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s,l=o.getTime(),c=0;if(r.time&&(c=function(e){var t=e.match(Uh);if(!t)return NaN;var i=Xh(t[1]),n=Xh(t[2]),o=Xh(t[3]);if(!function(e,t,i){if(24===e)return 0===t&&0===i;return i>=0&&i<60&&t>=0&&t<60&&e>=0&&e<25}(i,n,o))return NaN;return i*qd+n*Gd+1e3*o}(r.time),isNaN(c)))return new Date(NaN);if(!r.timezone){var d=new Date(l+c),h=new Date(0);return h.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),h.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),h}return s=function(e){if("Z"===e)return 0;var t=e.match(Kh);if(!t)return 0;var i="+"===t[1]?-1:1,n=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return i*(n*qd+o*Gd)}(r.timezone),isNaN(s)?new Date(NaN):new Date(l+c+s)}var Gh={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},qh=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Uh=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Kh=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Yh(e){return e?parseInt(e):1}function Xh(e){return e&&parseFloat(e.replace(",","."))||0}var Qh=[31,null,31,30,31,30,31,31,30,31,30,31];function Zh(e){return e%400==0||e%4==0&&e%100!=0}function Jh(e,t){Bd(2,arguments);var i=Pd(e),n=Md(t);return i.setDate(n),i}function ep(e,t){return Bd(2,arguments),Hd(e,-Md(t))}var tp=Object.defineProperty,ip=Object.getOwnPropertyDescriptor,np=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?ip(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&tp(t,i,r),r},op={$host:{display:"inline-block",pointerEvents:e=>e.disabled||e.busy?"none":"auto","-webkit-appearance":"none !important",[Ui]:"var(--acorn-text-button-outline-color-internal)",...Zi()},button:{...To(),boxSizing:"border-box",display:"inline-flex",color:e=>e.disabled?`var(--acorn-text-button-text-color-disabled-internal, ${zi.Text.disabled})`:`var(--acorn-text-button-text-color-internal, ${zi.Text.interactive})`,cursor:e=>e.disabled?"default":"pointer","&:hover":{color:`var(--acorn-text-button-text-color-hover-internal, ${zi.Text.interactive})`,textDecoration:"underline"}},busy:{...yo(18,zi.Icon.interactive),textDecoration:"none",marginLeft:"8px",display:"inline-block"}},rp=class extends wr{constructor(){super(...arguments),this.type=_r.Button}render(){return $`
540            <div class="${this.classes.button}">
541                <slot></slot>
542                ${this.busy?$`
543                          <span class="${this.classes.busy}"></span>
544                          <!-- re-enable acorn-busy-cloak when UI-UI-2861 is fixed -->
545                          <!-- <acorn-busy-cloak message="\${this.busyMessage}"></acorn-busy-cloak> -->
546                      `:void 0}
547            </div>
548        `}getStyle(){return op}onTypeChange(){if(this.type===_r.Cancel)throw new Error(`type "cancel" is not valid on ${this.tagName}`);super.onTypeChange()}};np([gt(),zt({type:_r})],rp.prototype,"type",2),np([wi("type")],rp.prototype,"onTypeChange",1),rp=np([_t({tag:"acorn-text-button"})],rp);var ap=Object.defineProperty,sp=Object.getOwnPropertyDescriptor,lp=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?sp(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&ap(t,i,r),r},cp=new class{validate(e,t={}){const i={},n=jh(e);if(!Ud(n)||e.length<9)return i;const{startDate:o,endDate:r}=t;if(o){const e=jh(o);if(!Ud(e))throw Error("Cannot validate date since given start date is not a valid date.");zh(n,e)&&(i.rangeUnderflow=!0)}if(r){const e=jh(r);if(!Ud(e))throw Error("Cannot validate date since given end date is not a valid date.");Hh(n,e)&&(i.rangeOverflow=!0)}return i}},dp=(e=>(e.Today="today",e.Start="start",e.End="end",e))(dp||{}),hp=Ve.createTranslation({NextDateHint:{sv:"Det närmaste valbara datumet är",en:"The closest available date is"},ClearButtonLabel:{sv:"Rensa textfältet",en:"Clear input"},OpenCalendar:{sv:"Tryck för att öppna kalendern",en:"Press to open the calendar"},SelectedDate:{sv:"Valt datum är",en:"Selected date is"},FirstSelectableDate:{sv:"Före detta datum finns det inga fler valbara datum",en:"Before this date there are no more selectable dates"},LastSelectableDate:{sv:"Efter detta datum finns inga fler valbara datum",en:"After this date there are no more selectable dates"},CloseCalendar:{sv:"Stäng kalender",en:"Close calendar"},MissingDateError:{sv:"Ange ett datum.",en:"Enter a date."},WrongFormatError:{sv:"Ange datum med ÅÅÅÅ-MM-DD.",en:"Enter date as YYYY-MM-DD."},InvalidDateError:{sv:"Ange ett giltigt datum.",en:"Enter a valid date."},DateBlockedError:{sv:"Ange ett tillgängligt datum.",en:"Enter an available date."},DateAfterEndError:{sv:"Ange ett tidigare datum.",en:"Enter an earlier date."},DateBeforeStartError:{sv:"Ange ett senare datum.",en:"Enter a later date."},PreviousYear:{sv:"Föregående år",en:"Previous year"},NextYear:{sv:"Nästa år",en:"Next year"},PreviousMonth:{sv:"Föregående månad",en:"Previous month"},NextMonth:{sv:"Nästa månad",en:"Next month"},ShortMonth0:{sv:"jan",en:"Jan"},ShortMonth1:{sv:"feb",en:"Feb"},ShortMonth2:{sv:"mar",en:"Mar"},ShortMonth3:{sv:"apr",en:"Apr"},ShortMonth4:{sv:"maj",en:"May"},ShortMonth5:{sv:"jun",en:"Jun"},ShortMonth6:{sv:"jul",en:"Jul"},ShortMonth7:{sv:"aug",en:"Aug"},ShortMonth8:{sv:"sep",en:"Sep"},ShortMonth9:{sv:"okt",en:"Oct"},ShortMonth10:{sv:"nov",en:"Nov"},ShortMonth11:{sv:"dec",en:"Dec"},LongMonth0:{sv:"januari",en:"January"},LongMonth1:{sv:"februari",en:"February"},LongMonth2:{sv:"mars",en:"March"},LongMonth3:{sv:"april",en:"April"},LongMonth4:{sv:"maj",en:"May"},LongMonth5:{sv:"juni",en:"June"},LongMonth6:{sv:"juli",en:"July"},LongMonth7:{sv:"augusti",en:"August"},LongMonth8:{sv:"september",en:"September"},LongMonth9:{sv:"oktober",en:"October"},LongMonth10:{sv:"november",en:"November"},LongMonth11:{sv:"december",en:"December"},ShortDay1:{sv:"må",en:"Mo"},ShortDay2:{sv:"ti",en:"Tu"},ShortDay3:{sv:"on",en:"We"},ShortDay4:{sv:"to",en:"Th"},ShortDay5:{sv:"fr",en:"Fr"},ShortDay6:{sv:"lö",en:"Sa"},ShortDay7:{sv:"sö",en:"Su"},LongDay1:{sv:"måndag",en:"Monday"},LongDay2:{sv:"tisdag",en:"Tuesday"}
548,LongDay3:{sv:"onsdag",en:"Wednesday"},LongDay4:{sv:"torsdag",en:"Thursday"},LongDay5:{sv:"fredag",en:"Friday"},LongDay6:{sv:"lördag",en:"Saturday"},LongDay7:{sv:"söndag",en:"Sunday"},Cancel:{sv:"Avbryt",en:"Cancel"}}),pp="yyyy-MM-dd",up=class{constructor(e,t,i,n,o){this._currentDate=new Date,this._dirty=!1,this._registerOnDateChange=new Set,this._filter=o,this.resetModel(e,t,i,n)}set openAt(e){if(Object.values(dp).includes(e))return void(this._openAt=e);if(!Ud(jh(e)))throw new Error('Attribute open-at must be either a valid string date or one of ["today", "start", "end"]');this._openAt=e}get filter(){return this._filter}set filter(e){this._filter=e}set startDate(e){if(e&&(this._startDate=jh(e)),!Ud(this._startDate))throw new Error("Attribute start-date is not a valid string date");if(zh(this._endDate,this._startDate))throw new Error("End date cannot be before start date!")}set endDate(e){if(e&&(this._endDate=jh(e)),!Ud(this._endDate))throw new Error("Attribute end-date is not a valid string date");if(zh(this._endDate,this._startDate))throw new Error("End date cannot be before start date!")}get year(){return Nh(this.currentDate)}get day(){return hp[`ShortDay${function(e){return Bd(1,arguments),Pd(e).getDay()}(this.currentDate)}`]}get month(){return hp[`ShortMonth${Ph(this.currentDate)}`]}get longMonth(){return hp[`LongMonth${Ph(this.currentDate)}`]}get value(){return this._value}set value(e){e&&Ud(jh(e))&&(this._value=e,this._determineCurrentDate(e))}get currentDate(){return this._currentDate}get currentDateFormatted(){return Ah(this._currentDate,pp)}get startDateFormatted(){return Ah(this._startDate,pp)}get endDateFormatted(){return Ah(this._endDate,pp)}resetModel(e,t,i,n){if(this._years={},this._value=void 0,this.value=n||"",this._openAt=i||"",e?this._startDate=jh(e):(this._startDate=new Date,this._startDate.setHours(0,0,0,0)),this._endDate=t?jh(t):jd(new Date,1),zh(this._endDate,this._startDate))throw new Error("End date cannot be before start date!");this._determineCurrentDate(n||"",this._openAt)}registerOnDateChange(e){return this._registerOnDateChange.add(e),()=>{this._registerOnDateChange.delete(e)}}unregisterOnDateChange(e){this._registerOnDateChange.delete(e)}setCurrentDate(e,t){var i;(null==(i=this._currentDate)?void 0:i.getTime())!==(null==e?void 0:e.getTime())&&(this._currentDate=e,this._registerOnDateChange.forEach(i=>{i(Ah(e,pp),t)}))}invalidate(){this._dirty=!0}getCurrentMonth(){this._dirty&&this._invalidate();const e=Nh(this.currentDate),t=Ph(this.currentDate);return this._years[e]&&this._years[e][t]?(this._years[e][t].dirty&&(this._years[e][t]=this._prepareMonth(this.currentDate)),this._years[e][t]):(this._years[e]||(this._years[e]={}),this._years[e][t]=this._prepareMonth(this.currentDate),this._years[e][t])}changeDate(e){switch(e){case"previous-year":const e=this._findAvailableDate(function(e,t){return Bd(2,arguments),jd(e,-Md(t))}(this.currentDate,1),"previous-year");return void this.setCurrentDate(e,"previous-year");case"next-year":const t=this._findAvailableDate(Yd(jd(this.currentDate,1)),"next-year");return void this.setCurrentDate(t,"next-year");case"previous-month":const i=this._findAvailableDate(Kd(ep(this.currentDate,1)),"previous-month");return void this.setCurrentDate(i,"previous-month");case"next-month":const n=this._findAvailableDate(Yd(Hd(this.currentDate,1)),"next-month");return void this.setCurrentDate(n,"next-month");case"previous-week":const o=this._findAvailableDate(function(e,t){return Bd(2,arguments),Vd(e,-Md(t))}(this.currentDate,1),"previous-week");return void(this._isDayInCurrentMonth(o)&&this.setCurrentDate(o,"previous-week"));case"next-week":const r=this._findAvailableDate(Vd(this.currentDate,1),"next-week");return void(this._isDayInCurrentMonth(r)&&this.setCurrentDate(r,"next-week"));case"next-day":const a=this._findAvailableDate(Nd(this.currentDate,1),"next-day");return void(this._isDayInCurrentMonth(a)&&this.setCurrentDate(a,"next-day"));case"previous-day":const s=this._findAvailableDate(Vh(this.currentDate,1),"previous-day");return void(this._isDayInCurrentMonth(s)&&this.setCurrentDate(s,"previous-day"))}}hasPreviousYear(){return Nh(this.currentDate)-1>=Nh(this._startDate)}hasNextYear(){return Nh(this.currentDate)+1<=Nh(this._endDate)}hasPreviousMonth(){return this._isInMonthRange(ep(this.currentDate,1))}hasNextMonth(){return this._isInMonthRange(Hd(this.currentDate,1))}getNextAvailableCalendarDate(){if(this.value){return Ah(this._findAvailableDate(jh(this.value),"initial"),pp)}return Ah(this._findAvailableDate(this.currentDate,"initial"),pp)}format(e){const t=jh(e);try{return Ah(t,pp)}catch(t){return e}}_isDayInCurrentMonth(e){return!!this._isEnabled(e)&&Wh(e,{start:Yd(this.currentDate),end:Kd(this.currentDate)})}_findAvailableDate(e,t){let i;switch(t){case"next-year":case"next-month":case"next-week":case"next-day":i="forward";break;case"previous-year":case"previous-month":case"previous-week":case"previous-day":i="backward";break;case"initial":i="initial"}if("initial"===i&&(this._isWithinInterval(e)||(Hh(e,this._endDate)?i="backward":zh(e,this._startDate)&&(i="forward"))),("forward"===i||"initial"===t)&&Hh(e,this._endDate))return this._endDate;if(("backward"===i||"initial"===t)&&zh(e,this._startDate))return this._startDate;if(!this._filter)return e;if(this._filter(Ah(e,pp)))return e;const n="forward"===i?Nd(e,1):Vh(e,1);return this._findAvailableDate(n,t)}_determineCurrentDate(e,t="today"){if(e){const t=this._isValueValid(e)?jh(e):this._findAvailableDate(jh(e),"initial");this.setCurrentDate(t,"initial")}else if("start"===t)this.setCurrentDate(this._startDate,"initial");else if("end"===t)this.setCurrentDate(this._endDate,"initial");else if("today"===t){const e=this._findAvailableDate(new Date,"initial");this.setCurrentDate(e,"initial")}else this.setCurrentDate(jh(t),"initial")}_prepareMonth(e=new Date){const t=Bh(Yd(e))-1,i=function(e){Bd(1,arguments);var t=Pd(e),i=t.getFullYear(),n=t.getMonth(),o=new Date(0);return o.setFullYear(i,n+1,0),o.setHours(0,0,0,0),o.getDate()}(e),n=42-(t+i),o=function(e,t){var i;Bd(1,arguments);var n=e||{},o=Pd(n.start),r=Pd(n.end).getTime();if(!(o.getTime()<=r))throw new RangeError("Invalid interval");var a=[],s=o;s.setHours(0,0,0,0);var l=Number(null!==(i=null==t?void 0:t.step)&&void 0!==i?i:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=r;)a.push(Pd(s)),s.setDate(s.getDate()+l),s.setHours(0,0,0,0);return a}({start:Yd(e),end:Kd(e)}).map(e=>({source:e,date:Mh(e),enabled:this._isEnabled(e),value:Ah(e,pp),longDay:this._longDay(e)})),r=[...new Array(t),...o,...new Array(n)],a=[];for(let e=0;e<6;
548e++)a[e]=r.slice(7*e,7*e+7);return{weeks:a,dirty:!1}}_longDay(e){return hp[`LongDay${Bh(e)}`]}_isEnabled(e){const t=this._isWithinInterval(e),i=!this._filter||this._filter(Ah(e,pp));return t&&i}_isWithinInterval(e){return Wh(e,{start:this._startDate,end:this._endDate})}_isInMonthRange(e){return Wh(e,{start:Jh(this._startDate,1),end:Kd(this._endDate)})}_isValueValid(e){return!!this._isWithinInterval(jh(e))&&(!this._filter||!!this._filter(e))}_invalidate(){Object.keys(this._years).map(e=>{const t=this._years[e];Object.keys(t).map(e=>{t[e].dirty=!0})}),this._determineCurrentDate(this._value||"",this._openAt),this._dirty=!1}},gp={$host:{minWidth:"194px"},textField:{margin:"0 !important"},inputSuffix:{alignItems:"center",display:"flex",whiteSpace:"nowrap",cursor:"pointer"},calendarToggle:{pointerEvents:e=>e._calendarIsOpen||e.disabled?"none":"auto"}},mp="openCalendarButton",bp="datePickerInput",vp=window.matchMedia("(max-width: 500px)"),yp=class extends Ps{constructor(){super(),this.type=mc.Date,this.openAt="start",this.clearable=!0,this.overlayDirection=Pl.Down,this.overlayPositionStrategy=Ml.Auto,this.readOnly=!1,this._calendarIsOpen=!1,this._latestDispatchedValue="",this._model=new up(this.startDate,this.endDate,this.openAt,this.value,this.filter)}get valueAsDate(){return new Date(this.value)}get valueAsNumber(){return this.valueAsDate?this.valueAsDate.getTime():NaN}set selectionStart(e){this._textFieldElement.selectionStart=e}get selectionStart(){return this._textFieldElement.selectionStart}set selectionEnd(e){this._textFieldElement.selectionEnd=e}get selectionEnd(){return this._textFieldElement.selectionEnd}set selectionDirection(e){this._textFieldElement.selectionDirection=e}get selectionDirection(){var e;return null==(e=this._textFieldElement)?void 0:e.selectionDirection}get modelElementType(){return"text"}get _textFieldElement(){return this.shadowRoot.getElementById(bp)}get _calendarButtonElement(){return this.shadowRoot.getElementById(mp)}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),vp.addEventListener("change",this._onScreenSizeChange)}disconnectedCallback(){super.disconnectedCallback(),vp.removeEventListener("change",this._onScreenSizeChange)}reset(){super.reset(),this._textFieldElement.reset(),this._latestDispatchedValue=""}getStyle(){return ge({},super.getStyle(),gp)}render(){return $`
549            <acorn-text-field
550                type="${this._getInputType()}"
551                id="${bp}"
552                @input="${this._onInputEvent}"
553                @change="${this._onChangeEvent}"
554                @clear="${this._onClear}"
555                @focusStateChange="${this._onTextFieldFocusStateChange}"
556                class="${this.classes.textField}"
557                .label="${this.label}"
558                aria-label="${j(this.ariaLabel)}"
559                aria-required="${j(this.required||"true"===this.ariaRequired?"true":void 0)}"
560                aria-invalid="${this.shouldShowInvalidState()}"
561                ?disabled="${this.disabled}"
562                ?readonly="${this.readOnly}"
563                ?clearable="${this.clearable&&!this.disabled}"
564                ?hide-label="${this.hideLabel}"
565                placeholder="${j(this.placeholder||void 0)}"
566                .value="${this.value}"
567                error-handling="${Ss.InvalidState}"
568            >
569                <div slot="input-suffix" class="${this.classes.inputSuffix}">
570                    <acorn-icon-button
571                        class="${this.classes.calendarToggle}"
572                        id="${mp}"
573                        icon="${Zo.Calendar}"
574                        accessibility-label="${isNaN(this.valueAsNumber)?hp.OpenCalendar:hp.SelectedDate+" ,"+this.valueAsDate.toLocaleDateString(Ve.language,{weekday:"long",year:"numeric",month:"long",day:"numeric"})+", "+hp.OpenCalendar}"
575                        @click="${this._toggleCalendar}"
576                        @keydown="${this._toggleCalendar}"
577                        ?disabled="${this.disabled}"
578                    ></acorn-icon-button>
579                </div>
580                <slot slot="help" name="help"></slot>
581                <slot slot="error" name="error"></slot>
582                <slot slot="hint" name="hint"></slot>
583            </acorn-text-field>
584
585            ${vp.matches?this._renderBottomSheet():this._renderPopover()}
586        `}select(){this._textFieldElement.select()}setSelectionRange(e,t,i){this._textFieldElement.setSelectionRange(e,t,i)}
586afterRender(){this.updateValidity()}onFocusElementEvent(e){this._timer&&clearTimeout(this._timer),this._timer=window.setTimeout(()=>{const t="focusin"===e.type||this._calendarIsOpen;this.updateFormControlFocusState(t),t||this._dispatchChangeEvent(this.value),this._textFieldElement.touched=this.touched,this._textFieldElement.dirty=this.dirty,this._timer=void 0})}onValueChange(){this.updateValidity(),this.updateFormValue(this.value)}onMinChange(){this.hasAttribute("start-date")||(this.startDate=this.min)}onMaxChange(){this.hasAttribute("end-date")||(this.endDate=this.max)}onModelAttributeChange(e,t,i,n){this._model&&(this._model[n]=e,this._model.invalidate())}updateValidity(){const e={};let t={};if(this.value){const e={startDate:this.min,endDate:this.max};t=cp.validate(this.value,e)}this.required&&""===this.value&&(e.valueMissing=!0),super.updateValidity(e,t),this._updateTextFieldValidity()}getFocusElement(){return this._textFieldElement}getErrorMessage(e){switch(e){case _s.ValueMissing:return hp.MissingDateError;case _s.PatternMismatch:return hp.WrongFormatError;case _s.TypeMismatch:return this._model.filter&&!this._model.filter(this.value)?this._getErrorTextWithNextAvailableDate(hp.DateBlockedError):hp.InvalidDateError;case _s.RangeOverflow:return this._getErrorTextWithNextAvailableDate(hp.DateAfterEndError);case _s.RangeUnderflow:return this._getErrorTextWithNextAvailableDate(hp.DateBeforeStartError);default:return super.getErrorMessage(e)}}onInvalidEvent(e){super.onInvalidEvent(e),this._textFieldElement.reportValidity()}_renderPopover(){return $`
587            <acorn-internal-popover
588                .open="${this._calendarIsOpen}"
589                .label="${this.label}"
590                direction="${this.overlayDirection}"
591                position-strategy="${this.overlayPositionStrategy}"
592                alignment="${Za.Right}"
593                @requestReposition="${this._onCalendarReposition}"
594                @close="${this._onCalendarClose}"
595            >
596                ${this._calendarIsOpen?$`
597                          <acorn-date-picker-calendar
598                              autofocus
599                              .model="${this._model}"
600                              @dateSelected="${this._onCalendarDateSelected}"
601                              @calendarClose="${this._onCalendarClose}"
602                          ></acorn-date-picker-calendar>
603                      `:null}
604            </acorn-internal-popover>
605        `}_renderBottomSheet(){return $`
606            <acorn-internal-bottom-sheet
607                .open="${this._calendarIsOpen}"
608                .label="${this.label}"
609                @close="${this._onCalendarClose}"
610            >
611                <acorn-date-picker-calendar
612                    autofocus
613                    .model="${this._model}"
614                    @dateSelected="${this._onCalendarDateSelected}"
615                    @calendarClose="${this._onCalendarClose}"
616                ></acorn-date-picker-calendar>
617            </acorn-internal-bottom-sheet>
618        `}_getErrorTextWithNextAvailableDate(e){const t=this._model.getNextAvailableCalendarDate();return`${e} ${t?`${hp.NextDateHint} ${t}.`:""}`}_toggleCalendar(e){e.key===ye.Enter?(e.preventDefault(),this._calendarIsOpen=!this._calendarIsOpen):"click"===e.type&&(this._calendarIsOpen=!this._calendarIsOpen)}_onClear(){this._dispatchChangeEvent(),this._model.resetModel(this.startDate,this.endDate,this.openAt,this.value)}_onInputEvent(e){super.onInputEvent(),this.updateValidity(),this.value=e.target.value}_onChangeEvent(e){this.value=e.target.value,e.stopImmediatePropagation(),this._dispatchChangeEvent(this.value)}_onCalendarDateSelected(e){var t;this.dirty=!0,this._textFieldElement.value=e.detail.value,this._textFieldElement.dispatchEvent(bs()),null==(t=this._calendarButtonElement)||t.focus(),this._calendarIsOpen=!1,this._dispatchChangeEvent(e.detail.value)}_onCalendarReposition(e){const t=e.target,i=this._calendarButtonElement.getBoundingClientRect();t.setFocalRect(i)}_onCalendarClose(){this._calendarIsOpen=!1,this._model.resetModel(this.startDate,this.endDate,this.openAt,this.value)}_onTextFieldFocusStateChange(e){e.preventDefault()}_dispatchChangeEvent(e=""){this._latestDispatchedValue!==e&&(this._latestDispatchedValue=e,this.dispatchEvent(vs()),this.dispatchEvent(bs()))}_onScreenSizeChange(){this.invalidate()}_updateTextFieldValidity(){const e=this.validity.valid?null:{datePickerError:!0};this._textFieldElement&&(this._textFieldElement.error=e||{}
618,this._textFieldElement.invalidateStyle())}_getInputType(){return this.type===mc.Date||this.type===mc.Text?this.type:mc.Date}};lp([gt()],yp.prototype,"startDate",2),lp([gt()],yp.prototype,"endDate",2),lp([gt({reflect:!0})],yp.prototype,"min",2),lp([gt({reflect:!0})],yp.prototype,"max",2),lp([gt()],yp.prototype,"type",2),lp([gt()],yp.prototype,"openAt",2),lp([gt({reflect:!0})],yp.prototype,"placeholder",2),lp([gt({reflect:!0}),zt({type:Boolean})],yp.prototype,"clearable",2),lp([gt(),zt({type:Pl})],yp.prototype,"overlayDirection",2),lp([gt(),zt({type:Ml})],yp.prototype,"overlayPositionStrategy",2),lp([Ht()],yp.prototype,"_calendarIsOpen",2),lp([wi("value",{triggerOn:pi.ChangeAndConnect})],yp.prototype,"onValueChange",1),lp([wi("min",{triggerOn:pi.ChangeAndConnect})],yp.prototype,"onMinChange",1),lp([wi("max",{triggerOn:pi.ChangeAndConnect})],yp.prototype,"onMaxChange",1),lp([wi("value",{triggerOn:pi.ChangeAndConnect}),wi("startDate",{triggerOn:pi.ChangeAndConnect}),wi("endDate",{triggerOn:pi.ChangeAndConnect}),wi("openAt",{triggerOn:pi.ChangeAndConnect}),wi("filter",{triggerOn:pi.ChangeAndConnect})],yp.prototype,"onModelAttributeChange",1),lp([Pe()],yp.prototype,"_toggleCalendar",1),lp([Pe()],yp.prototype,"_onClear",1),lp([Pe()],yp.prototype,"_onInputEvent",1),lp([Pe()],yp.prototype,"_onChangeEvent",1),lp([Pe()],yp.prototype,"_onCalendarDateSelected",1),lp([Pe()],yp.prototype,"_onCalendarReposition",1),lp([Pe()],yp.prototype,"_onCalendarClose",1),lp([Pe()],yp.prototype,"_onTextFieldFocusStateChange",1),lp([Pe()],yp.prototype,"_dispatchChangeEvent",1),lp([Pe()],yp.prototype,"_onScreenSizeChange",1),yp=lp([_t({tag:"acorn-date-picker"})],yp);var _p={lineHeight:"38px",fontSize:kn(14),background:"none",border:"none",width:"100%",color:zi.Text.Regular.high,fontFamily:Cn.Base,maxWidth:"40px"},fp={..._p,cursor:"pointer",borderRadius:"50%",margin:"auto","&:hover":{backgroundColor:zi.Overlay.hover,transition:"background-color .3s ease-out"},...Qi(),"&:focus":{backgroundColor:zi.Surface.interactiveStatic,color:zi.Text.whiteStatic}},xp={..._p,cursor:"not-allowed",opacity:".35"},wp={$host:{textAlign:"center",display:"block",flex:"1"},controls:{display:"flex",fontSize:kn(16),userSelect:"none","@media only screen and (max-width: 320px)":{flexDirection:"column"}},controlSet:{flex:"1",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px",color:zi.Text.Regular.high},month:{width:"100%",borderCollapse:"collapse",userSelect:"none",color:zi.Text.Regular.high},header:{backgroundColor:zi.Surface.Brand.lower,padding:"6px 0",fontWeight:"normal"},dayCell:{padding:"1px",textAlign:"center"},emptyCell:{height:"40px"},weekday:fp,weekend:{...fp,color:zi.Text.error},disabledWeekday:xp,disabledWeekend:{...xp,color:zi.Text.disabled},selected:{..._p,backgroundColor:zi.Surface.interactiveStatic,color:zi.Text.whiteStatic,margin:"auto",borderRadius:"50%"},screenReaderOnly:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"},cancelContainer:{display:"flex",justifyContent:"end",padding:"0 16px 16px 0"}},Cp="focus-first",Sp="focus-last",$p="close-button",kp=class extends Ti{getStyle(){return wp}connectedCallback(){var e;this._unregisterOnDateChangeFn=this.model.registerOnDateChange(this.onDateChanged),null==(e=super.connectedCallback)||e.call(this)}disconnectedCallback(){var e;null==(e=this._unregisterOnDateChangeFn)||e.call(this)}focus(e){var t;super.focus(e);!!this.getRootNode().activeElement?setTimeout(()=>{var e;null==(e=this.shadowRoot.querySelector('button[tabindex="0"]'))||e.focus()},100):null==(t=this.shadowRoot.querySelector("acorn-icon-button:not([disabled])"))||t.focus()}render(){if(!this.model)return $``;const e=this.model.getCurrentMonth();return $`
619            <div @focusout="${this._onWrapperFocusOut}">
620                <div id="${Cp}" tabindex="0"></div>
621                <div class="${this.classes.controls}">
622                    <div class="${this.classes.controlSet}">
623                        <acorn-icon-button
624                            id="previous-year-button"
625                            icon="${Zo.CaretLeft}"
626                            accessibility-label="${hp.PreviousYear}"
627                            ?disabled="${!this.model.hasPreviousYear()}"
628                            @click="${this._previousYear}"
629                            @keydown="${this._onPreviousYearKeyDown}"
630                        ></acorn-icon-button>
631                        <span aria-live="polite" id="year">${this.model.year}</span>
632                        <acorn-icon-button
633                            id="next-year-button"
634                            icon="${Zo.CaretRight}"
635                            accessibility-label="${hp.NextYear}"
636                            ?disabled="${!this.model.hasNextYear()}"
637                            @click="${this._nextYear}"
638                            @keydown="${this._onNextYearKeyDown}"
639                        ></acorn-icon-button>
640                    </div>
641
642                    <div class="${this.classes.controlSet}">
643                        <acorn-icon-button
644                            id="previous-month-button"
645                            icon="${Zo.CaretLeft}"
646                            accessibility-label="${hp.PreviousMonth}"
647                            ?disabled="${!this.model.hasPreviousMonth()}"
648                            @click="${this._previousMonth}"
649                            @keydown="${this._onPreviousMonthKeyDown}"
650                        ></acorn-icon-button>
651                        <span aria-hidden="true">${this.model.month}</span>
652                        <span class="${this.classes.screenReaderOnly}" aria-live="polite" id="month"
653                            >${this.model.longMonth}
654                        </span>
655                        <acorn-icon-button
656                            id="next-month-button"
657                            icon="${Zo.CaretRight}"
658                            accessibility-label="${hp.NextMonth}"
659                            ?disabled="${!this.model.hasNextMonth()}"
660                            @click="${this._nextMonth}"
661                            @keydown="${this._onNextMonthKeyDown}"
662                        ></acorn-icon-button>
663                    </div>
664                </div>
665
666                <table class="${this.classes.month}">
667                    <thead>
668                        <tr aria-hidden="true">
669                            ${new Array(7).fill("").map((e,t)=>$`
670                                    <th scope="col" class="${this.classes.header}">
671                                        <span aria-hidden="true">${hp["ShortDay"+(t+1)]}</span>
672                                    </th>
673                                `)}
674                        </tr>
675                    </thead>
676                    <tbody>
677                        ${e.weeks.map(e=>$`
678                                <tr>
679                                    ${e.map((e,t)=>e?$`
680                                            <td class="${this.classes.dayCell}">
681                                                <button
682                                                    aria-disabled="${!e.enabled}"
683                                                    id="d${e.value}"
684                                                    class="${this._getDayClass(e,t)}"
685                                                    ?disabled="${!e.enabled}"
686                                                    tabindex="${e.value===this.model.currentDateFormatted?"0":"-1"}"
687                                                    @click="${{handleEvent:()=>this._selectDate(e)}}"
688                                                    @keydown="${this._onDayKeyDown.bind(this,e)}"
689                                                    aria-label="${this._getDayAccessibilityLabel(e)}"
690                                                >
691                                                    ${e.date}
692                                                </button>
693                                            </td>
694                                        `:$`
695                                                <td aria-hidden="true" class="${this.classes.emptyCell}"></td>
696                                            `)}
697                                </tr>
698                            `)}
699                    </tbody>
700                </table>
701                <div class="${this.classes.cancelContainer}">
702                    <acorn-text-button
703                        id="${$p}"
704                        @click="${this._closeCalendar}"
705                        @keydown="${this._closeCalendar}"
706                        >${hp.Cancel}</acorn-text-button
707                    >
708                </div>
709                <div id="${Sp}" tabindex="0"></div>
710            </div>
711        `}onDateChanged(e,t){switch(this.invalidate(),t){case"previous-week":case"next-week":case"previous-day":case"next-day":Ze.waitForReady(()=>{var t;null==(t=this.shadowRoot.getElementById(`d${e}
711`))||t.focus(),this._dateChange.emit()})}}_onDayKeyDown(e,t){switch(t.key){case ye.Enter:t.preventDefault(),this._selectDate(e);break;case ye.ArrowRight:t.preventDefault(),this.model.changeDate("next-day");break;case ye.ArrowLeft:t.preventDefault(),this.model.changeDate("previous-day");break;case ye.ArrowDown:t.preventDefault(),this.model.changeDate("next-week");break;case ye.ArrowUp:t.preventDefault(),this.model.changeDate("previous-week")}}_selectDate(e){this._dateSelected.emit({value:e.value})}_focusIfDisabled(e,t){window.requestAnimationFrame(()=>{var i;e.disabled&&(null==(i=this.shadowRoot.querySelector(t))||i.focus())})}_closeCalendar(e){e instanceof KeyboardEvent&&(e.key===ye.Space||e.key===ye.Enter)?(e.preventDefault(),this._calendarClose.emit()):"click"===e.type&&this._calendarClose.emit()}_onPreviousYearKeyDown(e){e.key===ye.Enter&&(e.preventDefault(),this._previousYear(),this._focusIfDisabled(e.target,"#next-year-button"))}_previousYear(){this.model.changeDate("previous-year")}_onNextYearKeyDown(e){e.key===ye.Enter&&(e.preventDefault(),this._nextYear(),this._focusIfDisabled(e.target,"#previous-year-button"))}_nextYear(){this.model.changeDate("next-year")}_onPreviousMonthKeyDown(e){e.key===ye.Enter&&(e.preventDefault(),this._previousMonth(),this._focusIfDisabled(e.target,"#next-month-button"))}_previousMonth(){this.model.changeDate("previous-month")}_onNextMonthKeyDown(e){e.key===ye.Enter&&(e.preventDefault(),this._nextMonth(),this._focusIfDisabled(e.target,"#previous-month-button"))}_nextMonth(){this.model.changeDate("next-month")}_getDayClass(e,t){return e.value===this.model.value?this.classes.selected:t>=5?e.enabled?this.classes.weekend:this.classes.disabledWeekend:e.enabled?this.classes.weekday:this.classes.disabledWeekday}_getDayAccessibilityLabel(e){const t=e.value===this.model.value?hp.SelectedDate+", ":"",i=e.source.toLocaleDateString(Ve.language,{weekday:"long",year:"numeric",month:"long",day:"numeric"});return e.value===this.model.startDateFormatted?t+i+". "+hp.FirstSelectableDate:e.value===this.model.endDateFormatted?t+i+". "+hp.LastSelectableDate:t+i}_onWrapperFocusOut(e){var t;if(e.relatedTarget)if(e.relatedTarget===this.shadowRoot.getElementById(Cp))null==(t=this.shadowRoot.getElementById($p))||t.focus();else if(e.relatedTarget===this.shadowRoot.getElementById(Sp)){const e=this.shadowRoot.querySelector("acorn-icon-button:not([disabled]), button:not([disabled]), acorn-text-button");null==e||e.focus()}}};lp([ft()],kp.prototype,"_dateSelected",2),lp([ft()],kp.prototype,"_dateChange",2),lp([ft()],kp.prototype,"_calendarClose",2),lp([Pe()],kp.prototype,"onDateChanged",1),lp([Pe()],kp.prototype,"_onDayKeyDown",1),lp([Pe()],kp.prototype,"_closeCalendar",1),lp([Pe()],kp.prototype,"_onPreviousYearKeyDown",1),lp([Pe()],kp.prototype,"_previousYear",1),lp([Pe()],kp.prototype,"_onNextYearKeyDown",1),lp([Pe()],kp.prototype,"_nextYear",1),lp([Pe()],kp.prototype,"_onPreviousMonthKeyDown",1),lp([Pe()],kp.prototype,"_previousMonth",1),lp([Pe()],kp.prototype,"_onNextMonthKeyDown",1),lp([Pe()],kp.prototype,"_nextMonth",1),lp([Pe()],kp.prototype,"_onWrapperFocusOut",1),kp=lp([_t({tag:"acorn-date-picker-calendar"}),vt()],kp);var Ep=Object.defineProperty,Tp=Object.getOwnPropertyDescriptor,Ip=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Tp(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Ep(t,i,r),r},Op=(e=>(e.OrangeMain="orange-main",e.Brown="brown",e.BrownSoft="brown-soft",e.Turquoise="turquoise",e.White="white",e.BluePositive="blue-positive",e.RedNegative="red-negative",e))(Op||{}),Dp={"orange-main":zi.Icon.brand,brown:zi.Icon.regular,"brown-soft":zi.Icon.medium,turquoise:zi.Icon.interactive,white:zi.Icon.white,"blue-positive":zi.Icon.positive,"red-negative":zi.Icon.negative},Rp=class extends mr{constructor(){super(...arguments),this.color=void 0,this.accessibilityLabel=""}set badge(e){}set severity(e){}set blocked(e){}colorAsValue(){if(this.color)return Dp[this.color]}};Ip([gt(),zt({type:Op})],Rp.prototype,"color",2),Ip([gt()],Rp.prototype,"accessibilityLabel",2),Rp=Ip([_t({tag:"acorn-icon"})],Rp);var Fp=Object.defineProperty,Lp=Object.getOwnPropertyDescriptor,Ap=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Lp(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Fp(t,i,r),r},Mp="--acorn-internal-chip-background-color",Bp="--acorn-internal-chip-outline-style",Pp={BgDisabled:zi.Surface.disabled,BgFocused:zi.ComponentSpecific.Chips.pressed,BgHover:zi.Surface.Brand.low,BgActive:zi.ComponentSpecific.Chips.pressed,BgDefault:`var(${Mp}, ${zi.Surface.system})`,BgClearable:zi.Overlay.hover,BgChecked:zi.Surface.Brand.medium,TextDefault:zi.Text.Regular.high,TextDisabled:zi.Text.disabled,TextChecked:zi.Text.Regular.highStatic,TextClearable:zi.Text.Regular.high},Np={$host:{display:"inline-block",outline:"0 !important",pointerEvents:e=>e.disabled?"none":void 0,"&(:hover) .wrapper":{backgroundColor:e=>e.clearable?zi.Overlay.active:e.selected?void 0:Pp.BgHover},"&(:active) .wrapper":{backgroundColor:e=>e.selected?void 0:Pp.BgActive},"&(:focus) .wrapper":{[Bp]:"solid"},"--acorn-icon-color":e=>e.disabled?zi.Icon.disabled:e.clearable?zi.Icon.regular:e.selected?zi.Icon.regularStatic:zi.Icon.regular},wrapper:{...Wn(),backgroundColor:e=>e.disabled?Pp.BgDisabled:e.clearable?Pp.BgClearable:e.selected?Pp.BgChecked:Pp.BgDefault,cursor:e=>e.disabled?void 0:"pointer",pointerEvents:e=>e.disabled?"none":void 0,display:"flex",justifyContent:"center",alignItems:"center",minHeight:"32px",minWidth:"48px",borderRadius:"24px",columnGap:"8px",paddingLeft:e=>e.selected?"12px":"16px",paddingRight:e=>e.expandable||e.clearable?"12px":"16px",border:e=>e.selected||e.clearable||e.disabled?"1px solid transparent":`1px solid ${zi.Line.Regular.high}`,color:e=>e.disabled?Pp.TextDisabled:e.clearable?Pp.TextClearable:e.selected?Pp.TextChecked:Pp.TextDefault,...Yi(),outlineStyle:`var(${Bp}, none)`,[Qo.TextColor]:e=>
711e.disabled?zi.Text.disabled:zi.Text.whiteStatic,[Qo.BackgroundColor]:e=>e.disabled?zi.Line.Regular.disabled:zi.Surface.HighContrast.highStatic},label:{...Wn(),fontWeight:"600",overflow:"hidden",textOverflow:"ellipsis"}},Hp=class extends Ti{constructor(){super(...arguments),this.label=void 0,this.selected=0,this.disabled=!1,this.expandable=!1,this.clearable=!1}getStyle(){return Np}render(){return $`
712            <div class="${this.classes.wrapper}">
713                ${this._renderLeading()} ${this._renderCenter()} ${this._renderTrailing()}
714            </div>
715        `}_renderLeading(){return this.clearable?null:1!==this.selected||this.expandable?this.selected>0?$`<acorn-badge number="${this.selected}" size="small" align="none"></acorn-badge>`:null:$`<acorn-internal-icon
716                icon="${Zo.CheckV2}"
717                size="${Jo.Small}"
718            ></acorn-internal-icon>`}_renderCenter(){return $`<div class="${this.classes.label}">${this.label}</div>`}_renderTrailing(){return this.clearable?$`<acorn-internal-icon icon="${Zo.XMark}" size="${Jo.Small}"></acorn-internal-icon>`:this.expandable?$`<acorn-internal-icon
719                icon="${Zo.CaretDown}"
720                size="${Jo.Small}"
721            ></acorn-internal-icon>`:null}};Ap([gt()],Hp.prototype,"label",2),Ap([gt(),zt({type:Number})],Hp.prototype,"selected",2),Ap([gt(),zt({type:Boolean})],Hp.prototype,"disabled",2),Ap([gt(),zt({type:Boolean})],Hp.prototype,"expandable",2),Ap([gt(),zt({type:Boolean})],Hp.prototype,"clearable",2),Hp=Ap([_t({tag:"acorn-internal-chip"})],Hp);var zp=Object.defineProperty,Wp=Object.getOwnPropertyDescriptor,Vp=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Wp(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&zp(t,i,r),r},jp=Ve.createTranslation({Selected:{sv:"valda",en:"selected"},Reset:{sv:"Återställ",en:"Reset"},Apply:{sv:"Visa",en:"Apply"}}),Gp={$host:{display:"inline-block",outline:"none !important"},wrapper:{position:"relative",display:"inline-block",[Mp]:e=>e._showOverlay?Pp.BgHover:void 0}},qp=class extends Ti{constructor(){super(...arguments),this.label="",this.accessibilityLabel="",this.disabled=!1,this.unclearable=!1,this.showApply=!1,this.numSelected=0,this.overlayHeading="",this.resetText=jp.Reset,this.applyText=jp.Apply,this._showOverlay=!1}get _isSelected(){return String(this.numSelected>0)}get _accessibilityLabel(){const e=this.accessibilityLabel||this.label;return!this.numSelected||isNaN(this.numSelected)?e:`${e} ${this.numSelected} ${jp.Selected}`}get _pageDetail(){return this.shadowRoot.querySelector("acorn-page-detail")}getStyle(){return Gp}reset(){this.label=this.initialLabel,this.numSelected=this.initialNumSelected}closeOverlay(){this._showOverlay&&(this._showOverlay=!1,this._closeComplete.emit())}render(){return $`
722            <div class="${this.classes.wrapper}">
723                <acorn-internal-chip
724                    label="${this.label}"
725                    id="${"toggleBtn"}"
726                    selected="${this.numSelected}"
727                    role="button"
728                    aria-label="${this._accessibilityLabel}"
729                    aria-haspopup="dialog"
730                    tabindex="${this.disabled?-1:0}"
731                    aria-checked="${this._isSelected}"
732                    ?disabled="${this.disabled}"
733                    expandable
734                    @click="${this._openOverlay}"
735                    @keydown="${this._onKeydown}"
736                ></acorn-internal-chip>
737
738                <acorn-page-detail
739                    heading="${j(this.overlayHeading||this.label)}"
740                    @close="${this._onOverlayClose}"
741                    @pageDetailCloseComplete="${this._onOverlayCloseComplete}"
742                    @pageDetailOpen="${this._open.emit}"
743                    close-on-click-outside
744                >
745                    ${this._showOverlay?this._overlaySlot:null} ${this.renderFooter()}
746                </acorn-page-detail>
747            </div>
748        `}renderFooter(){let e,t;if(!this.unclearable||this.showApply)return!this.unclearable&&this.numSelected>0&&(e=$`<acorn-button
749                label="${this.resetText}"
750                type="reset"
751                @click="${this._onFooterClearButtonClick}"
752            ></acorn-button>
752`),this.showApply&&(t=$`
753                <acorn-button label="${this.applyText}" @click="${this._onFooterApplyButtonClick}"></acorn-button>
754            `),$`<acorn-page-detail-footer>${e} ${t}</acorn-page-detail-footer>`}afterInitialRender(){this.initialLabel=this.label,this.initialNumSelected=this.numSelected}_onOverlayClose(){this._close.emit()}_onOverlayCloseComplete(){this._closeComplete.emit(),this._showOverlay=!1}_openOverlay(){this.disabled||(this._showOverlay=!0,this._open.emit())}_onKeydown(e){this._shouldKeyboardEventTriggerAction(e)&&(e.preventDefault(),this._openOverlay())}_onFooterClearButtonClick(){this._clear.emit().defaultPrevented||(this.reset(),this._pageDetail.close())}_onFooterApplyButtonClick(){this._apply.emit().defaultPrevented||this._pageDetail.close()}_shouldKeyboardEventTriggerAction(e){return e.key===ye.Space||e.key===ye.Enter}};Vp([gt()],qp.prototype,"label",2),Vp([gt()],qp.prototype,"accessibilityLabel",2),Vp([gt(),zt({type:Boolean})],qp.prototype,"disabled",2),Vp([gt(),zt({type:Boolean})],qp.prototype,"unclearable",2),Vp([gt(),zt({type:Boolean})],qp.prototype,"showApply",2),Vp([gt(),zt({type:Number})],qp.prototype,"numSelected",2),Vp([gt()],qp.prototype,"overlayHeading",2),Vp([Ht()],qp.prototype,"resetText",2),Vp([Ht()],qp.prototype,"applyText",2),Vp([Ht()],qp.prototype,"_showOverlay",2),Vp([ri("overlay",{selectSingleType:"action-chip-overlay"})],qp.prototype,"_overlaySlot",2),Vp([ft({cancelable:!0})],qp.prototype,"_clear",2),Vp([ft()],qp.prototype,"_close",2),Vp([ft()],qp.prototype,"_open",2),Vp([ft({cancelable:!0})],qp.prototype,"_apply",2),Vp([ft()],qp.prototype,"_closeComplete",2),Vp([Pe()],qp.prototype,"_onOverlayClose",1),Vp([Pe()],qp.prototype,"_onOverlayCloseComplete",1),Vp([Pe()],qp.prototype,"_openOverlay",1),Vp([Pe()],qp.prototype,"_onKeydown",1),Vp([Pe()],qp.prototype,"_onFooterClearButtonClick",1),Vp([Pe()],qp.prototype,"_onFooterApplyButtonClick",1),qp=Vp([_t({tag:"acorn-action-chip",delegatesFocus:!0})],qp);var Up=class extends Ti{render(){return $`<slot></slot>`}};Up=Vp([_t({tag:"acorn-action-chip-overlay"})],Up);var Kp=Object.defineProperty,Yp=Object.getOwnPropertyDescriptor,Xp=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Yp(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Kp(t,i,r),r},Qp=(e=>(e.Add="add",e.Remove="remove",e.Default="default",e))(Qp||{}),Zp="--acorn-action-button-internal-hover-underline";var Jp={$host:{display:"inline-block",pointerEvents:e=>e.disabled?"none":"auto"},wrapper:{...Qi(),backgroundColor:"transparent",border:"0px solid transparent",userSelect:"none",display:"flex",alignItems:"start",cursor:"pointer",paddingLeft:0,columnGap:"8px","&:hover":{[Zp]:"underline"}},icon:{display:"flex"},label:{...Vn(),paddingTop:"1px",textDecoration:`var(${Zp}, none)`,whiteSpace:"normal",wordBreak:"break-word",color:function(e){return e.disabled?zi.Text.disabled:"remove"===e.type?zi.Text.Regular.high:zi.Text.interactive}}},eu=class extends Ti{constructor(){super(...arguments),this.icon=Zo.CirclePlus,this.label=`DEFAULT ${this.tagName}.LABEL`,this.type="default",this.disabled=!1}get _iconColor(){return this.disabled?zi.Icon.disabled:"remove"===this.type?zi.Icon.regular:zi.Icon.interactive}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this.setAttribute("role","button")}render(){return $`
755            <button class="${this.classes.wrapper}" type="button" ?disabled="${this.disabled}">
756                <acorn-internal-icon
757                    class="${this.classes.icon}"
758                    icon="${this.icon}"
759                    color="${this._iconColor}"
760                    size="${nr}"
761                >
762                </acorn-internal-icon>
763                <span class="${this.classes.label}">${this.label}</span>
764            </button>
765        `}getStyle(){return Jp}onTypeChange(e){switch(e){case"add":this.icon=Zo.CirclePlus;break;case"remove":this.icon=Zo.CircleMinus;break;default:this.type="default"}}
765onIconChange(){this.type&&this.onTypeChange(this.type)}onDisabledChange(e){this.setAttribute("aria-disabled",e.toString())}};Xp([gt(),zt({type:Zo})],eu.prototype,"icon",2),Xp([gt()],eu.prototype,"label",2),Xp([gt(),zt({type:Qp})],eu.prototype,"type",2),Xp([gt(),zt({type:Boolean})],eu.prototype,"disabled",2),Xp([wi("type")],eu.prototype,"onTypeChange",1),Xp([wi("icon")],eu.prototype,"onIconChange",1),Xp([wi("disabled")],eu.prototype,"onDisabledChange",1),eu=Xp([_t({tag:"acorn-action-button"})],eu);var tu=Object.defineProperty,iu=Object.getOwnPropertyDescriptor,nu=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?iu(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&tu(t,i,r),r},ou=class extends Zr{};ou=nu([_t({tag:"acorn-action-section-image"})],ou);var ru=class extends ea{};ru=nu([_t({tag:"acorn-action-section-text"})],ru);var au=class extends ia{};au=nu([_t({tag:"acorn-action-section-body"})],au);var su=class extends na{};su=nu([_t({tag:"acorn-action-section-link"})],su);var lu=class extends oa{};lu=nu([_t({tag:"acorn-action-section-button"})],lu);var cu=class extends aa{};cu=nu([_t({tag:"acorn-action-section-disclaimer"})],cu);var du=(e=>(e.Default="default",e.Apricot="apricot",e.Sky="sky",e.Rose="rose",e))(du||{});var hu={$host:{[fo.HasTheme]:function(e){return"default"!==e.theme?xo.True:void 0}},wrapper:{backgroundColor:function(e){switch(e.theme){case"apricot":return zi.Surface.Brand.lower;case"rose":return zi.Surface.Lilac.lower;case"sky":return zi.Surface.Turquoise.lower;default:return zi.Surface.system}},boxShadow:function(e){return"default"!==e.theme?"none":`var(--acorn-action-element-box-shadow, ${`inset 0px 0px 0px 1px ${zi.Line.Regular.low}`})`},borderRadius:"4px",overflow:"hidden"},contentContainer:{padding:function(e){const t=e._layout===la.Layout_Stacked;return`24px ${go} 32px ${t?go:"0px"}`}},heading:{...Mn(),lineHeight:"1.2",marginTop:"0",marginBottom:"18px",color:zi.Text.brand}},pu=class extends ha{constructor(){super(...arguments),this.theme="default"}getStyle(){return ge({},super.getStyle(),hu)}renderHeader(){return $`
766            <h2 class="${this.classes.heading}">
767                ${this.heading}
768                <span class="${this.classes.subHeading}">${this.subHeading}</span>
769            </h2>
770        `}onThemeChange(){this.theme&&-1!==Object.values(du).indexOf(this.theme)||(this.theme="default")}};nu([ri(ua.Image,{selectSingleType:ou.config.type})],pu.prototype,"_imageSlot",2),nu([ri(ua.Link,{selectSingleType:su.config.type})],pu.prototype,"_linkSlot",2),nu([ri(ua.Button,{selectAllTypes:lu.config.type})],pu.prototype,"_buttonSlot",2),nu([ri(ua.Disclaimer,{selectSingleType:cu.config.type})],pu.prototype,"_disclaimerSlot",2),nu([ri(ua.Body,{selectSingleType:au.config.type})],pu.prototype,"_bodySlot",2),nu([gt(),zt({type:du})],pu.prototype,"theme",2),nu([ri(ua.Text,{selectSingleType:ru.config.type})],pu.prototype,"textSlot",2),nu([wi("theme")],pu.prototype,"onThemeChange",1),pu=nu([_t({tag:"acorn-action-section"})],pu);var uu=Object.defineProperty,gu=Object.getOwnPropertyDescriptor,mu=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?gu(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&uu(t,i,r),r},bu=(e=>(e.Error="error",e.Info="info",e.Neutral="neutral",e.Success="success",e.Warning="warning",e))(bu||{}),vu=(e=>(e.False="false",e.True="true",e.Auto="auto",e))(vu||{}),yu=new Map([["error",{symbolBackground:zi.Surface.attention,mainBackground:zi.Surface.attentionContrastInverted,border:zi.Surface.attention}],["warning",{symbolBackground:zi.Surface.warning,mainBackground:zi.Surface.warningContrastInverted,border:zi.Surface.warning}],["success",{symbolBackground:zi.Surface.success,mainBackground:zi.Surface.successContrastInverted,border:zi.Surface.success}],["info",{symbolBackground:zi.Surface.info,mainBackground:zi.Surface.infoContrastInverted,border:zi.Surface.info}],["neutral",{symbolBackground:void 0,mainBackground:zi.Surface.neutralContrastInverted,border:void 0}]]),_u=new Map([["error",Zo.CircleExclamation],["warning",Zo.TriangleExclamation],["success",Zo.CircleCheckmark],["info",Zo.CircleInfo]]),fu=Ve.createTranslation({Dismiss:{sv:"Stäng det här meddelandet",en:"Close this message"},ErrorMessage:{sv:"Felmeddelande",en:"Error message"},WarningMessage:{sv:"Varningsmeddelande",en:"Warning message"},InfoMessage:{sv:"Informationsmeddelande",en:"Information message"},SuccessMessage:{sv:"Bekräftelsemeddelande",en:"Success message"},NeutralMessage:{sv:"Meddelande",en:"Message"}}),xu={$host:{display:"block",...Ln(Dn.Medium),outline:"0 !important"},wrapper:{display:e=>e._dismissed?"none":"flex",boxSizing:"border-box",position:"relative",flexDirection:"row",alignItems:"center",minHeight:"48px",borderTop:e=>{var t;
770return`2px solid ${(null==(t=yu.get(e.severity))?void 0:t.border)||"none"}`},paddingTop:"8px",paddingBottom:"8px",paddingRight:e=>"false"===e.dismissible?vn.Medium:"48px",paddingLeft:e=>e.hasIcon()?`calc(${vn.Medium} + 40px)`:vn.Medium,fontSize:kn(14),backgroundColor:e=>{var t;return null==(t=yu.get(e.severity))?void 0:t.mainBackground}},message:{width:"100%",fontFamily:Cn.Base,fontSize:kn(14),fontWeight:$n.Regular,lineHeight:Sn.Base,color:zi.Text.Regular.high},messageTitle:{display:"block",fontFamily:Cn.Base,fontSize:kn(14),fontWeight:$n.Bold,lineHeight:Sn.Base,color:zi.Text.Regular.high},symbol:{display:e=>e.hasIcon()?"block":"none",position:"absolute",top:"7px",left:"0",height:"32px",width:"40px",borderTopRightRadius:"16px",borderBottomRightRadius:"16px",backgroundColor:e=>{var t;return null==(t=yu.get(e.severity))?void 0:t.symbolBackground}},icon:{position:"absolute",top:"6px",right:"7px"},dismiss:{display:e=>"false"===e.dismissible?"none":"block",position:"absolute",top:"4px",right:"6px",border:"0"}},wu=class extends Ti{render(){return $`<slot></slot>`}};wu=mu([_t({tag:"acorn-alert-message-body"})],wu);var Cu="focusPlaceholder",Su=class extends Ti{constructor(){super(...arguments),this.severity="neutral",this.dismissible="false",this.showIcon=!0,this._dismissed=!1}hasIcon(){return"neutral"!==this.severity&&!1!==this.showIcon}getStyle(){return xu}render(){return $`
771            <div class="${this.classes.wrapper}">
772                <span class="${this.classes.symbol}">
773                    <acorn-internal-icon
774                        class="${this.classes.icon}"
775                        icon="${_u.get(this.severity)}"
776                        size="${Jo.Small}"
777                        color="${zi.Icon.white}"
778                        accessibility-label="${this._getIconAccessibilityLabel()}"
779                    >
780                    </acorn-internal-icon>
781                </span>
782                <div class="${this.classes.message}">
783                    <span class="${this.classes.messageTitle}">
784                        ${this.heading?this.heading:$`<slot name="title"></slot>`}
785                    </span>
786                    ${this._bodySlot.isFilled()?this._bodySlot:$`<slot name="message"></slot>`}
787                </div>
788                <acorn-internal-icon-button
789                    @click="${this.dismiss.bind(this,!1)}"
790                    accessibility-label="${fu.Dismiss}"
791                    class="${this.classes.dismiss}"
792                    icon="${Zo.XMark}"
793                    color="${Aa.Brown}"
794                >
795                </acorn-internal-icon-button>
796            </div>
797            <div id="${Cu}" tabindex="-1"></div>
798        `}onDismissibleChanged(e){null===e&&(this.dismissible="false"),this._dismissed||"auto"!==e||window.setTimeout(()=>{this.dismiss(!0)},6e3)}onSeverityChanged(e){this.severity=Object.values(bu).includes(e)?e:"neutral",this.setAttribute("role","error"===e?"alert":"status")}dismiss(e=!1){var t;if(!this._dismissed){this._dismiss.emit({autoDismissed:e}).defaultPrevented||(null==(t=this.shadowRoot.getElementById(Cu))||t.focus(),this._dismissed=!0)}}_getIconAccessibilityLabel(){switch(this.severity){case"error":return fu.ErrorMessage;case"warning":return fu.WarningMessage;case"success":return fu.SuccessMessage;case"info":return fu.InfoMessage;default:return fu.NeutralMessage}}};mu([gt(),zt({type:bu})],Su.prototype,"severity",2),mu([gt(),zt({type:vu})],Su.prototype,"dismissible",2),mu([gt(),zt({type:Boolean})],Su.prototype,"showIcon",2),mu([gt()],Su.prototype,"heading",2),mu([Ht(),zt({type:Boolean})],Su.prototype,"_dismissed",2),mu([ri("body",{selectSingleType:wu.config.type})],Su.prototype,"_bodySlot",2),mu([ft({cancelable:!0})],Su.prototype,"_dismiss",2),mu([wi("dismissible",{triggerOn:pi.ChangeAndConnect})],Su.prototype,"onDismissibleChanged",1),mu([wi("severity",{triggerOn:pi.ChangeAndConnect})],Su.prototype,"onSeverityChanged",1),Su=mu([_t({tag:"acorn-alert-message"})],Su);var $u=Object.defineProperty,ku=Object.getOwnPropertyDescriptor,Eu=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?ku(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&$u(t,i,r),r},Tu={$host:{display:"block"},$$slotted:{'&([slot="heading"])':{display:"block"}},header:{cursor:"pointer"},body:{display:e=>e.expanded||e.collapseExpand.isTransitioning?void 0:"none",overflow:e=>e.collapseExpand.isTransitioning?"hidden":e.expanded?void 0:"hidden",height:e=>e.expanded?"auto":"0px"}},Iu={$host:{display:"block"},content:{marginTop:Rn(12),marginBottom:Fn(Dn.ExtraLarge),marginLeft:"24px"}},Ou=class extends Ti{render(){return $` <acorn-internal-enclosed-margins class="${this.classes.content}">
799            <slot></slot>
800        </acorn-internal-enclosed-margins>`}getStyle(){return Iu}};Ou=Eu([_t({tag:"acorn-accordion-body"})],Ou);var Du={$host:{display:"block"},wrapper:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignContent:"stretch",alignItems:"center",minHeight:"34px",width:"100%","& slot":{fontFamily:Cn.Headline,fontSize:kn(14),fontWeight:$n.Bold,lineHeight:Sn.Narrow,color:zi.Text.Regular.high}},arrow:{display:"flex",transformOrigin:"50% 50%",transition:"transform 0.25s ease-in",transform:e=>e.expanded?"rotate(90deg)":"rotate(0deg)",marginRight:`calc(24px - ${tr}px)`}},Ru=class extends Ti{constructor(){super(...arguments),this.expanded=!1}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this.setAttribute("slot","header")}getStyle(){return Du}render(){return $`
801            <div class="${this.classes.wrapper}">
802                <acorn-internal-icon
803                    class="${this.classes.arrow}"
804                    icon="${Zo.ChevronRight}"
805                    size="${tr}"
806                    color="${zi.Icon.regular}"
807                >
808                </acorn-internal-icon>
809                <slot></slot>
810            </div>
811        `}};Eu([gt(),zt({type:Boolean})],Ru.prototype,"expanded",2),Ru=Eu([_t({tag:"acorn-accordion-header"})],Ru);var Fu=class extends Ti{constructor(){super(...arguments),this.expanded=!1,this._headerId="accordion-header-id",this._bodyId="accordion-body-id"}getStyle(){return Tu}beforeRender(){var e;if(this.heading)if(null==(e=this._header)?void 0:e.isFilled())this._header.content.innerText=this.heading;else{const e=document.createElement(Ru.config.tag);e.innerText=this.heading,this.appendChild(e)}}render(){var e;return(null==(e=this._header)?void 0:e.isFilled())&&(this._header.content.expanded=this.expanded),$`
812            <div
813                class="${this.classes.header}"
814                id="${this._headerId}"
815                @click="${this._toggle}"
816                @keydown="${this._toggle}"
817                role="button"
818                tabindex="0"
819                aria-expanded="${this.expanded}"
820                aria-controls="${this._bodyId}"
821            >
822                ${this._header}
823            </div>
824            <div class="${this.classes.body}" id="${this._bodyId}" role="region" aria-labelledby="${this._headerId}">
825                ${this._body}
826            </div>
827        `}onExpanded(){this.rendered?this.collapseExpand.transitionTo(this.expanded?"end":"start"):this.collapseExpand.goTo(this.expanded?"end":"start")}collapseExpandFrame(e){var t;switch(this._expandableArea||(this._expandableArea=null==(t=this.shadowRoot)?void 0:t.querySelector(`#${this._bodyId}`)),e.transitionState){case li.Start:(this.expanded?this._expandStart:this._collapseStart).emit();break;case li.End:(this.expanded?this._expandEnd:this._collapseEnd).emit(),this._expandableArea.style.height=this.expanded?"auto":"0px";break;case li.Transitioning:this._expandableArea.style.height=this._expandableArea.scrollHeight*e.value+"px"}}_toggle(e){const t=e;if("keydown"===e.type&&t.key!==ye.Enter&&t.key!==ye.Space)return;e.preventDefault();const i=e.target.closest("a, button, [tabindex]");i&&this.contains(i)||(this.expanded=!this.expanded)}};Eu([gt(),zt({type:Boolean})],Fu.prototype,"expanded",2),Eu([gt(),zt({type:String})],Fu.prototype,"heading",2),Eu([hi({duration:"0.35s",ease:"easeInOut"})],Fu.prototype,"collapseExpand",2),Eu([ft({bubbles:!0}
827)],Fu.prototype,"_expandStart",2),Eu([ft({bubbles:!0})],Fu.prototype,"_collapseStart",2),Eu([ft()],Fu.prototype,"_expandEnd",2),Eu([ft()],Fu.prototype,"_collapseEnd",2),Eu([ri("header",{selectSingleType:[Ru.config.type]})],Fu.prototype,"_header",2),Eu([ri("body",{selectSingleType:[Ou.config.type]})],Fu.prototype,"_body",2),Eu([wi("expanded",{triggerOn:pi.ChangeAndConnect})],Fu.prototype,"onExpanded",1),Eu([Wt("collapseExpand")],Fu.prototype,"collapseExpandFrame",1),Eu([Pe()],Fu.prototype,"_toggle",1),Fu=Eu([_t({tag:"acorn-accordion"})],Fu);var Lu=Object.defineProperty,Au=Object.getOwnPropertyDescriptor,Mu=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Au(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Lu(t,i,r),r},Bu={$host:{display:"block",...Ln(Dn.Medium)}},Pu=class extends Ti{constructor(){super(),this._expandedAccordion=void 0,this.addEventListener("expandStart",this._onExpandCollapse),this.addEventListener("collapseStart",this._onExpandCollapse)}getStyle(){return Bu}render(){return $` ${this._accordions} `}_onExpandCollapse(e){e.detail.acornEvent&&Qt(e.target,Fu,"expanded")&&("expandStart"===e.type?(this._expandedAccordion&&(this._expandedAccordion.expanded=!1),this._expandedAccordion=e.target):"collapseStart"===e.type&&e.target===this._expandedAccordion&&(this._expandedAccordion=void 0))}};Mu([ri("accordion",{selectAllTypes:["accordion"]})],Pu.prototype,"_accordions",2),Pu=Mu([_t({tag:"acorn-accordion-group"})],Pu);var Nu=Object.defineProperty,Hu=Object.getOwnPropertyDescriptor,zu=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Hu(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Nu(t,i,r),r};function Wu(e){return t=>"top"===e?t._siblingGroup.hasPrevious()?Rn(Dn.ExtraSmall):Rn(Dn.Medium):t._siblingGroup.hasNext()?Fn(Dn.ExtraSmall):Fn(Dn.Medium)}var Vu={$host:{display:"block",outline:"none !important",marginTop:Wu("top"),marginBottom:Wu("bottom"),pointerEvents:e=>e.disabled?"none":"auto"},wrapper:{display:"flex"},link:{...To(),lineHeight:"1.47",...Qi(),border:0,padding:0,background:"transparent",boxSizing:"border-box",color:e=>e.disabled?zi.Text.disabled:zi.Text.interactive,textDecoration:"var(--acorn-arrow-link-text-decoration, none)",cursor:"pointer",textAlign:"left",paddingLeft:"12px",position:"relative","&:hover":{"--acorn-arrow-link-text-decoration":"var(--acorn-arrow-link-text-decoration--hover, underline)"},"&[disabled]":{pointerEvents:"none"}},linkArrow:{position:"absolute",left:"-4px",top:"2px","--acorn-icon-color":e=>e.disabled?zi.Icon.disabled:zi.Icon.interactive}},ju=class extends Ti{constructor(){super(...arguments),this.label="",this.href="",this.disabled=!1}render(){return this.href?this._renderLink():this._renderButton()}getStyle(){return Vu}onDisabled(){this.shadowRoot.activeElement&&this.shadowRoot.activeElement.blur()}_renderLink(){return $` <div class="${this.classes.wrapper}">
828            <a
829                @click="${this._onLinkClick}"
830                class="${this.classes.link}"
831                href="${this.href}"
832                target="${this.target}"
833                ?disabled="${this.disabled}"
834                aria-disabled="${j(this.disabled||void 0)}"
835                tabindex="${j(this.disabled?"-1":void 0)}"
836            >
837                <acorn-internal-icon icon="caret-right" class="${this.classes.linkArrow}"></acorn-internal-icon>
838                <span>${this.label}</span>
839            </a>
840        </div>`}_renderButton(){return $` <div class="${this.classes.wrapper}">
841            <button class="${this.classes.link}" ?disabled="${this.disabled}">
842                <acorn-internal-icon icon="caret-right" class="${this.classes.linkArrow}"></acorn-internal-icon>
843                <span>${this.label}</span>
844            </button>
845        </div>`}_onLinkClick(e){this.disabled&&e.preventDefault()}};zu([gt()],ju.prototype,"label",2),zu([gt()],ju.prototype,"href",2),zu([gt()],ju.prototype,"target",2),zu([gt(),zt({type:Boolean})],ju.prototype,"disabled",2),zu([Kt()],ju.prototype,"_siblingGroup",2),zu([wi("disabled")],ju.prototype,"onDisabled",1),zu([Pe()],ju.prototype,"_onLinkClick",1),ju=zu([_t({tag:"acorn-arrow-link",delegatesFocus:!0}),vt()],ju);var Gu=Object.defineProperty,qu=Object.getOwnPropertyDescriptor,Uu=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?qu(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Gu(t,i,r),r},Ku={$host:{display:"block"},heading:{...Bn(),margin:"0 0 6px"},hiddenHeading:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"}},Yu=class extends Ti{constructor(){super(...arguments),this.hide=!1}getStyle(){return Ku}render(){const e=this.hide?this.classes.hiddenHeading:this.classes.heading;return $` <h3 class="${e}">${this.heading}</h3> `}
845beforeRender(){if(!this.heading||""===this.heading.trim())throw Error(`You need to provide a heading in ${this.localName}! If you don't want to visually show the heading add the 'hide' attribute.`)}};Uu([gt()],Yu.prototype,"heading",2),Uu([gt(),zt({type:Boolean})],Yu.prototype,"hide",2),Yu=Uu([_t({tag:"acorn-block-header"})],Yu);var Xu={$host:{display:"block"},$$slotted:{"&(:first-child)":{marginTop:"0"}}},Qu=class extends Ti{render(){return $`<slot></slot>`}getStyle(){return Xu}};Qu=Uu([_t({tag:"acorn-block-body"})],Qu);var Zu={$host:{display:"block",...Ln(Dn.Large)},wrapper:{marginTop:"8px"}},Ju=class extends Ti{render(){return $` <div class="${this.classes.wrapper}">${this._headerSlot} ${this._bodySlot}</div> `}getStyle(){return Zu}};Uu([ri("header",{selectSingleType:Yu.config.type,strict:!0})],Ju.prototype,"_headerSlot",2),Uu([ri("body",{selectSingleType:Qu.config.type,strict:!0})],Ju.prototype,"_bodySlot",2),Ju=Uu([_t({tag:"acorn-block"})],Ju);var eg=Object.defineProperty,tg=Object.getOwnPropertyDescriptor,ig=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?tg(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&eg(t,i,r),r},ng=(e=>(e.Turquoise="turquoise",e.OrangeMain="orange",e.Lilac="lilac",e))(ng||{});var og={$host:{display:"block",...Ln(Dn.Medium)},list:{columnCount:e=>co({base:1,xs:e.columns}),"-webkit-column-count":e=>co({base:1,xs:e.columns}),"-moz-column-count":e=>co({base:1,xs:e.columns}),listStyle:"none outside none",padding:0,margin:0,flexWrap:"wrap",justifyContent:"space-between"},listItem:{listStyle:"none outside none",display:"flex",fontFamily:Cn.Base,fontSize:kn(14),"&:not(:last-child)":{marginBottom:"1.1em"}},listItemBullet:{fontFamily:"Arial",color:e=>function(e){switch(e){case"turquoise":return zi.Text.interactive;case"orange":default:return zi.Text.brand;case"lilac":return zi.Surface.Lilac.high}}(e.color),display:"inline-block",fontSize:"2.8em",lineHeight:"0",marginTop:"0.3em",marginLeft:"-0.05em",marginRight:"0.2em"}},rg={$host:{display:"block"},accessibilityBullet:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0",whiteSpace:"pre"}},ag=class extends Ti{render(){return $`<span class="${this.classes.accessibilityBullet}">${"• "}</span><slot></slot>`}getStyle(){return rg}};ag=ig([_t({tag:"acorn-bullet-list-item"})],ag);var sg=class extends Ti{constructor(){super(...arguments),this.color="orange",this.columns=1}render(){var e;return $`
846            <ul class="${this.classes.list}">
847                ${null==(e=this._bulletListItem)?void 0:e.map(e=>$`
848                        <li class="${this.classes.listItem}">
849                            <span aria-hidden="true" class="${this.classes.listItemBullet}">&#8226;</span>${e}
850                        </li>
851                    `)}
852            </ul>
853        `}getStyle(){return og}beforeRender(){this.columns=Math.max(1,this.columns)}};ig([gt(),zt({type:ng})],sg.prototype,"color",2),ig([gt(),zt({type:Ge})],sg.prototype,"columns",2),ig([ri("bullet-item-",{selectAllTypes:ag.config.type,spread:!0})],sg.prototype,"_bulletListItem",2),sg=ig([_t({tag:"acorn-bullet-list"})],sg);var lg=(e=>(e.Default="default",e.Grid_50_50="grid-50-50",e.Grid_66_33="grid-66-33",e.Grid_33_66="grid-33-66",e.Grid_33_33_33="grid-33-33-33",e.Grid_25_25_25_25="grid-25-25-25-25",e.Column_50_50="column-50-50",e.Column_66_33="column-66-33",e.Column_33_66="column-33-66",e.Column_33_33_33="column-33-33-33",e.Column_25_25_25_25="column-25-25-25-25",e))(lg||{}),cg={"grid-50-50":{grid1Col:[12],grid2Col:[6],grid3Col:[6],grid4Col:[6]},"grid-66-33":{grid1Col:[12],grid2Col:[6],grid3Col:[8,4],grid4Col:[8,4]},"grid-33-66":{grid1Col:[12],grid2Col:[6],grid3Col:[4,8],grid4Col:[4,8]},"grid-33-33-33":{grid1Col:[12],grid2Col:[12,6,6],grid3Col:[4],grid4Col:[4]},"grid-25-25-25-25":{grid1Col:[12],grid2Col:[6],grid3Col:[6],grid4Col:[3]},"column-50-50":{grid1Col:[12],grid2Col:[6],grid3Col:[6],grid4Col:[6]},"column-66-33":{grid1Col:[12],grid2Col:[6],grid3Col:[8,4],grid4Col:[8,4]},"column-33-66":{grid1Col:[12],grid2Col:[6],grid3Col:[4,8],grid4Col:[4,8]},"column-33-33-33":{grid1Col:[12],grid2Col:[6],grid3Col:[4],grid4Col:[4]},"column-25-25-25-25":{grid1Col:[12],grid2Col:[6],grid3Col:[6],grid4Col:[3]}
853,default:{grid1Col:[12],grid2Col:[12],grid3Col:[12],grid4Col:[12]}};function dg(e){let t=Math.floor(e);return t=Math.min(t,4),t=Math.max(t,1),t}var hg=class extends Array{static get[Symbol.species](){return Array}constructor(e,t){super(),this.push(...t),this.gridColSpan=e}numSegments(){let e=0,t=0,i=0;for(;e<12;)t++,e+=this[i],i+=1%this.length;return t}getLayoutColSpan(e){return this[e%this.length]}getGridColSpan(e){return dg(this.getLayoutColSpan(e)/(12/this.gridColSpan))}},pg=new Map,ug=new Map;var gg=Object.freeze({GRID_COLUMN_MIN_WIDTH:350,GRID_MAX_NUM_COLUMNS:4,calcNumColumns:function(e){return dg(e/350)},normalizeGridColSpan:dg,defineSegmentLayout:function(e,t){return!pg.has(e)&&(pg.set(e,t),!0)},getSegmentLayout:function(e,t){const i=e+"@"+t;let n=ug.get(i);if(!n){let o=pg.get(e);switch(o||(o=pg.get("default")),t){case 4:n=new hg(t,o.grid4Col);break;case 3:n=new hg(t,o.grid3Col);break;case 2:n=new hg(t,o.grid2Col);break;default:n=new hg(t,o.grid1Col)}ug.set(i,n)}return n}});Object.keys(cg).forEach(e=>{gg.defineSegmentLayout(e,cg[e])});var mg=Object.defineProperty,bg=Object.getOwnPropertyDescriptor,vg=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?bg(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&mg(t,i,r),r},yg=Ve.createTranslation({Next:{sv:"Nästa",en:"Next"},Prev:{sv:"Föregående",en:"Previous"}}),_g={[La.Padding]:"4px",position:"absolute",top:`calc((100% - var(${La.Size})) * 0.5)`,zIndex:"1",backgroundColor:zi.ComponentSpecific.TabGroup.ScrollButton.surface,borderRadius:"50%",boxShadow:"1px 1px 10px rgba(0, 0, 0, 0.25)","&[hidden]":{display:"none"}},fg={display:"block",width:"1px",position:"absolute",top:0,height:"100%",visibility:"hidden"},xg={$host:{display:"block",outline:"0 !important"},navigation:{position:"relative",height:"48px"},scrollContainer:{overflowX:"auto",scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{width:0,height:0},position:"absolute",width:"100%"},scrollPanel:{minWidth:"fit-content",position:"relative"},scrollTrackerStart:{...fg,left:0},scrollTrackerEnd:{...fg,right:0},arrowLeft:{..._g,left:"0"},arrowRight:{..._g,right:"0"}},wg="scrollTrackerStart",Cg="scrollTrackerEnd",Sg=class extends Ti{constructor(){super(),this.scrollReachedStart=!0,this.scrollReachedEnd=!0,this._scrollObserver=new IntersectionObserver(this._onScrollIntersection,{root:this,threshold:0})}get _scrollTrackerStart(){return this.shadowRoot.getElementById(wg)}get _scrollTrackerEnd(){return this.shadowRoot.getElementById(Cg)}getStyle(){return xg}render(){return $`
854            <div class="${this.classes.navigation}">
855                <acorn-icon-button
856                    class="${this.classes.arrowLeft}"
857                    icon="${Zo.ChevronLeft}"
858                    accessibility-label="${yg.Prev}"
859                    tabindex="-1"
860                    ?hidden="${this.scrollReachedStart}"
861                    @click="${this._onScrollPrevious}"
862                ></acorn-icon-button>
863                <div class="${this.classes.scrollContainer}">
864                    <div class="${this.classes.scrollPanel}">
865                        <span id="${wg}" class="${this.classes.scrollTrackerStart}"></span>
866                        <slot></slot>
867                        <span id="${Cg}" class="${this.classes.scrollTrackerEnd}"></span>
868                    </div>
869                </div>
870                <acorn-icon-button
871                    class="${this.classes.arrowRight}"
872                    icon="${Zo.ChevronRight}"
873                    accessibility-label="${yg.Next}"
874                    tabindex="-1"
875                    ?hidden="${this.scrollReachedEnd}"
876                    @click="${this._onScrollNext}"
877                ></acorn-icon-button>
878            </div>
879        `}afterRender(){this._scrollTrackerStart&&this._scrollObserver.observe(this._scrollTrackerStart),this._scrollTrackerEnd&&this._scrollObserver.observe(this._scrollTrackerEnd)}_onScrollPrevious(){this._focusPrevious.emit()}_onScrollNext(){this._focusNext.emit()}_onScrollIntersection(e){e.forEach(e=>{e.target===this._scrollTrackerStart?this.scrollReachedStart=e.isIntersecting:e.target===this._scrollTrackerEnd&&(this.scrollReachedEnd=e.isIntersecting)})}};vg([Ht()],Sg.prototype,"scrollReachedStart",2),vg([Ht()],Sg.prototype,"scrollReachedEnd",2),vg([ft()],Sg.prototype,"_focusNext",2),vg([ft()],Sg.prototype,"_focusPrevious",2),vg([Pe()],Sg.prototype,"_onScrollPrevious",1),vg([Pe()],Sg.prototype,"_onScrollNext",1),vg([Pe()],Sg.prototype,"_onScrollIntersection",1),Sg=vg([_t({tag:"acorn-internal-scroll-group"})],Sg);var $g=Object.defineProperty,kg=Object.getOwnPropertyDescriptor,Eg=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?kg(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);
879return n&&r&&$g(t,i,r),r},Tg={$host:{display:"block",outline:"0 !important"},tabList:{display:"flex",minWidth:"fit-content"},tab:{flex:"0 0 auto",...Wn(),fontSize:kn(14),color:zi.Text.Regular.high,lineHeight:Sn.Base,height:"48px",padding:"0 16px",border:"none",cursor:"pointer",backgroundColor:"transparent",position:"relative",...Qi({outlineOffset:"-4px"}),"&:hover":{backgroundColor:zi.Overlay.selected},'&[aria-selected="true"]':{...Vn(),fontSize:kn(14),"&::after":{content:'""',display:"block",height:"2px",backgroundColor:zi.Surface.Brand.highStatic,position:"absolute",bottom:0,left:"16px",right:"16px"}}},badgeWrapper:{display:"flex",alignItems:"center"},labelWrapper:{position:"relative",display:"block",whiteSpace:"nowrap"},labelPlaceholder:{...Vn(),fontSize:kn(14),visibility:"hidden",display:"block",lineHeight:1},label:{display:"block",lineHeight:1,position:"absolute",top:0,left:0,right:0},screenReaderPause:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"}},Ig=class extends Ti{constructor(){super(...arguments),this.tabs=[]}onTabsChange(){var e,t;this._activeTabValue=null==(t=(null==(e=this.tabs)?void 0:e.find(e=>e.active))||this.tabs[0])?void 0:t.value}onActiveInternalTabChange(){this.activeTab=this.tabs.find(e=>e.value===this._activeTabValue)}getStyle(){return Tg}render(){return $`<acorn-internal-scroll-group
880            @focusPrevious="${this._onFocusPrevious}"
881            @focusNext="${this._onFocusNext}"
882            >${this.renderTabList()}</acorn-internal-scroll-group
883        >`}renderTabList(){return $`<div role="tablist" class="${this.classes.tabList}" @keydown="${this._onTablistKeydown}">
884            ${this.tabs.map(e=>{var t,i;return $`<button
885                        role="tab"
886                        class="${this.classes.tab}"
887                        tabindex="${e.value===(null==(t=this.activeTab)?void 0:t.value)?"0":"-1"}"
888                        aria-selected="${e.value===(null==(i=this.activeTab)?void 0:i.value)?"true":"false"}"
889                        @click="${this._onActiveTab.bind(this,e)}"
890                        @focus="${this._onFocusTab.bind(this,e)}"
891                    >
892                        <span class="${this.classes.badgeWrapper}">
893                            <span class="${this.classes.labelWrapper}">
894                                <span class="${this.classes.labelPlaceholder}">${e.label}</span>
895                                <span class="${this.classes.label}">${e.label}</span>
896                            </span>
897                            ${e.badgeNumber?$`<span class="${this.classes.screenReaderPause}">,</span>
898                                      <acorn-badge
899                                          accessibility-label="${j(e.accessibilityBadgeLabel||void 0)}"
900                                          number="${e.badgeNumber}"
901                                          truncate
902                                          severity="${j(e.badgeSeverity)}"
903                                          size="${Yo.Small}"
904                                          align="${Xo.Right}"
905                                      ></acorn-badge>`:null}
906                        </span>
907                    </button>`})}
908        </div>`}_onFocusPrevious(){var e;const t=this._getVisibleTabs();if(!t.length)return;let i;if(1===t.length){const n=[...(null==(e=this.shadowRoot)?void 0:e.querySelectorAll('[role="tab"]'))||[]],o=n.indexOf(t[0])-1;i=n[o]}else i=t[0];null==i||i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}_onFocusNext(){var e;const t=this._getVisibleTabs();if(!t.length)return;let i;if(1===t.length){const n=[...(null==(e=this.shadowRoot)?void 0:e.querySelectorAll('[role="tab"]'))||[]],o=n.indexOf(t[0])+1;i=n[o]}else i=t[t.length-1];null==i||i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}_onTablistKeydown(e){var t,i;switch(e.key){case ye.ArrowLeft:const e=null==(t=this.shadowRoot.activeElement)?void 0:t.previousElementSibling;this._scrollTabElementIntoView(e);break;case ye.ArrowRight:const n=null==(i=this.shadowRoot.activeElement)?void 0:i.nextElementSibling;this._scrollTabElementIntoView(n)}}_scrollTabElementIntoView(e){e&&(e.scrollIntoView({block:"nearest",inline:"center"}),e instanceof HTMLElement&&e.focus())}_onActiveTab(e){const t=this.activeTab;this.activeTab=e;this._tabActive.emit({value:e.value}).defaultPrevented&&t&&(this.activeTab=t)}_onFocusTab(e){this._tabFocus.emit({value:e.value})}_getVisibleTabs(){var e,t;const i=null==(e=this.shadowRoot)?void 0:e.querySelector("acorn-internal-scroll-group"),n=[...(null==(t=this.shadowRoot)?void 0:t.querySelectorAll('[role="tab"]'))||[]];return i?n.filter(e=>this._isElementsIntersecting(i,e)):[]}_isElementsIntersecting(e,t){const i=e.getBoundingClientRect(),n=t.getBoundingClientRect();return n.bottom>i.top&&n.right>i.left&&n.top<i.bottom&&n.left<i.right}};Eg([Ht()],Ig.prototype,"activeTab",2),Eg([Ht()],Ig.prototype,"tabs",2),Eg([ft({cancelable:!0})],Ig.prototype,"_tabActive",2),Eg([ft()],Ig.prototype,"_tabFocus",2),Eg([wi("tabs")],Ig.prototype,"onTabsChange",1),Eg([wi("_activeTabValue")],Ig.prototype,"onActiveInternalTabChange",1),Eg([Pe()],Ig.prototype,"_onFocusPrevious",1),Eg([Pe()],Ig.prototype,"_onFocusNext",1),Eg([Pe()],Ig.prototype,"_onTablistKeydown",1),Ig=Eg([_t({tag:"acorn-internal-tab-bar"})],Ig);var Og=(e=>(e.OrangeMain="orange-main",e.Brown="brown",e.BrownSoft="brown-soft",e.Turquoise="turquoise",e.White="white",e.BluePositive="blue-positive",e.RedNegative="red-negative",e))(Og||{}),Dg={"orange-main":zi.Icon.brand,brown:zi.Icon.regular,"brown-soft":zi.Icon.medium,turquoise:zi.Icon.interactive,white:zi.Icon.white,"blue-positive":zi.Icon.positive,"red-negative":zi.Icon.negative},Rg=Object.defineProperty,Fg=Object.getOwnPropertyDescriptor,Lg=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Fg(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Rg(t,i,r),r},Ag=(e=>(e.Location="location",e.Tab="tab",e))(Ag||{}),Mg=class extends xt{constructor(){super(...arguments),this.value="",this.subLabel="",this.badge="",this.severity=Bo.Default,this.icon="",this.altText="",this.link="",this.linkTarget="location",this.blocked=!1}};Mg.modelName="menuOption",Mg.observeTextContent=!0,Lg([zt({type:Bo})],Mg.prototype,"severity",2),Lg([zt({type:Ag})],Mg.prototype,"linkTarget",2),Lg([zt({type:Boolean})],Mg.prototype,"blocked",2);var Bg=class extends xt{};Bg.modelName="menuOptionGroup",Lg([zt({type:Mg})],Bg.prototype,"children",2);var Pg=Ve.createTranslation({BlockedOption:{sv:"Låst",en:"Locked"},ReadMore:{sv:"Klicka för att läsa mer",en:"Click to read more"}}),Ng={...Nn(),...Qi(),outlineOffset:"-2px !important",boxSizing:"border-box",gridTemplateColumns:"24px auto",gap:"12px",alignItems:"center",padding:"0px 24px",height:"48px",cursor:"pointer",width:"max-content",maxWidth:"100%",minWidth:"100%","&:hover":{backgroundColor:zi.Overlay.hover}},Hg={$host:{display:"inline-block",margin:"0",outline:"0 !important"},toggle:{pointerEvents:e=>e._displayOverlay?"none":"auto"},scrollPane:{minWidth:"100%"},canvas:{listStyle:"none",padding:"8px 0px",margin:"0",minWidth:"100%"},option:{...Ng,display:"flex"},optionIndented:{...Ng,display:"grid"},optionDecorator:{justifySelf:"center"},optionText:{whiteSpace:"nowrap",gridColumnStart:2,minWidth:0},optionLabel:{overflow:"hidden",textOverflow:"ellipsis"},optionSubLabel:{...Hn(),color:zi.Text.Regular.medium,overflow:"hidden",textOverflow:"ellipsis"},slotWrapper:{display:"none"},screenReaderOnly:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"},separator:{height:"1px",backgroundColor:zi.Line.Regular.low,margin:"8px 0px"}},zg="toggle-button",Wg=window.matchMedia("(max-width: 500px)"),Vg=window.matchMedia(`(min-width: ${gn.Medium})`),jg=class extends Ti{constructor(){super(...arguments),this.accessibilityLabel=null,this.severity=Bo.Default,this.overlayMinWidth=200,this.overlayDirection=Pl.Down,this.overlayAlignment=Nl.Left,this.overlayPositionStrategy=Ml.Auto,this._displayOverlay=!1,this._respondToMediaQuery=!0,this._size=Jo.Regular}
908get _isNarrowScreenMode(){return Wg.matches||this.overlayPositionStrategy===Ml.Cover}get _overlayHeading(){return this.label||this.accessibilityLabel||""}get _toggleButton(){return this.shadowRoot.getElementById(zg)}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),Wg.addEventListener("change",this._onScreenSizeChange),Vg.addEventListener("change",this._onScreenSizeChange)}disconnectedCallback(){Wg.removeEventListener("change",this._onScreenSizeChange),Vg.removeEventListener("change",this._onScreenSizeChange)}getStyle(){return Hg}render(){const e=!this._respondToMediaQuery||Vg.matches,t=this.icon&&!e?"":this.label,i=this.label?this.icon:this.icon||Zo.EllipsisVertical,n=this.accessibilityLabel||this.label;return $`
909            <acorn-internal-icon-button
910                id="${zg}"
911                size="${this._size}"
912                class="${this.classes.toggle}"
913                @click="${this._onToggleClick}"
914                @keydown="${this._onToggleKeydown}"
915                label="${j(t||void 0)}"
916                icon="${j(i)}"
917                severity="${j(this.severity)}"
918                badge="${j(this._isNumber(this.badge)?this.badge:void 0)}"
919                accessibility-label="${j(n)}"
920                accessibility-has-popup="menu"
921            >
922            </acorn-internal-icon-button>
923            ${this._isNarrowScreenMode?this._renderBottomSheet():this._renderPopover()}
924            <div class="${this.classes.slotWrapper}">${this._defaultSlot}</div>
925        `}_renderPopover(){return $`
926            <acorn-internal-popover
927                .open="${this._displayOverlay}"
928                .label="${this._overlayHeading}"
929                id="${"overlay"}"
930                direction="${this.overlayDirection}"
931                position-strategy="${this.overlayPositionStrategy}"
932                alignment="${this.overlayAlignment}"
933                max-height="${j(this._isNumber(this.overlayMaxHeight)?this.overlayMaxHeight:void 0)}"
934                max-width="${j(this._isNumber(this.overlayMaxWidth)?this.overlayMaxWidth:void 0)}"
935                min-width="${j(this._isNumber(this.overlayMinWidth)?this.overlayMinWidth:void 0)}"
936                @requestReposition="${this._onOverlayReposition}"
937                @close="${this._onOverlayClose}"
938                @openComplete="${this._onOverlayOpenComplete}"
939            >
940                <acorn-internal-scroll-pane class="${this.classes.scrollPane}">
941                    ${this._renderOptions()}
942                </acorn-internal-scroll-pane>
943            </acorn-internal-popover>
944        `}_renderBottomSheet(){return $`
945            <acorn-internal-bottom-sheet
946                .open="${this._displayOverlay}"
947                .label="${this._overlayHeading}"
948                @close="${this._onOverlayClose}"
949            >
950                ${this._renderOptions()}
951            </acorn-internal-bottom-sheet>
952        `}_renderOptions(){const e=this.options.filter(e=>e instanceof Mg);let t=this.options.filter(e=>e instanceof Bg).map(e=>e.children);t=[e,...t].filter(e=>null==e?void 0:e.length);const i=t.flatMap((e,t)=>{const i=this._renderOptionGroup(e);return t>0&&i.unshift($`<li role="separator" aria-hidden="true" class="${this.classes.separator}"></li>`),i}),n=this._isNarrowScreenMode?"0":void 0;return $`
953            <ul
954                @keydown="${this._onListKeydown}"
955                tabindex="${j(n)}"
956                class="${this.classes.canvas}"
957                role="menu"
958                aria-label="${j(this.accessibilityLabel||this.label)}"
959            >
960                ${i}
961            </ul>
962        `}_renderOptionGroup(e){const t=e.some(e=>e.badge||e.icon||e.blocked)?this.classes.optionIndented:this.classes.option;return e.map(e=>$` <li
963                    @keydown="${this._onOptionKeydown.bind(this,e)}"
964                    @click="${this._onOptionClick.bind(this,e)}"
965                    role="menuitem"
966                    tabindex="-1"
967                    class="${t}"
968                    data-test-option-value="${e.value}"
969                    ${e.dataset?Hi(e.dataset):void 0}
970                >
971                    ${this._renderOptionAccessibilityMessage(e)} ${this._renderOptionDecoration(e)}
972                    <div aria-hidden="true" class="${this.classes.optionText}">
973                        <div class="${this.classes.optionLabel}">${e.text}</div>
974                        ${e.subLabel?$`<div class="${this.classes.optionSubLabel}">${e.subLabel}</div>`:null}
975                    </div>
976                </li>`)}_renderOptionAccessibilityMessage(e){const t=this._getOptionText(e),i=[];return t.blocked?i.push(Pg.BlockedOption,t.text,t.subLabel,Pg.ReadMore):i.push(t.text,t.subLabel),$` <div class="${this.classes.screenReaderOnly}">${i.join(" ")}</div> `}_getOptionText(e){const{text:t="",subLabel:i,blocked:n}=e;return{text:t,subLabel:i,blocked:n}}_renderOptionDecoration(e){return e.icon?$` <acorn-internal-icon
977                class="${this.classes.optionDecorator}"
978                icon="${e.icon}"
979                size="${Jo.Regular}"
980                severity="${j(e.severity)}"
981                badge="${j(e.badge)}"
982                ?blocked="${e.blocked}"
983                accessibility-label="${j(e.altText)}"
984            >
985            </acorn-internal-icon>`:e.blocked?$` <acorn-icon size="${Jo.Regular}" icon="${Zo.Lock}" color="${Og.OrangeMain}">
986            </acorn-icon>`:e.badge?$` <acorn-badge
987                class="${this.classes.optionDecorator}"
988                size="${Po.Small}"
989                number="${e.badge}"
990                severity="${e.severity}"
991                align="${No.None}"
992            >
993            </acorn-badge>`:null}_onOverlayReposition(e){const t=e.target,i=this._toggleButton.getBoundingClientRect();t.setFocalRect(i)}_onOverlayClose(){this._displayOverlay=!1,this._activeIndex=void 0}_onOverlayOpenComplete(){const e=[...this.shadowRoot.querySelectorAll('[role="menuitem"]')];-1===this._activeIndex?e[e.length-1].focus():e[0].focus()}_onToggleClick(){this._displayOverlay=!0}_onToggleKeydown(e){switch(e.key){case ye.ArrowDown:this._activeIndex=0,this._displayOverlay=!0,e.preventDefault();break;case ye.ArrowUp:this._activeIndex=-1,this._displayOverlay=!0,e.preventDefault()}}_onListKeydown(e){switch(e.key){case ye.ArrowDown:this._focusNext(),e.preventDefault();break;case ye.ArrowUp:this._focusPrevious(),e.preventDefault()}}_onScreenSizeChange(){this.invalidate()}_onOptionClick(e){this._selectOption(e)}
993_onOptionKeydown(e,t){t.key!==ye.Enter&&t.key!==ye.Space||(t.preventDefault(),this._selectOption(e))}_focusNext(){const e=[...this.shadowRoot.querySelectorAll('[role="menuitem"]')],t=[...e].indexOf(this.shadowRoot.activeElement);e.length>t+1&&e[t+1].focus()}_focusPrevious(){const e=[...this.shadowRoot.querySelectorAll('[role="menuitem"]')],t=[...e].indexOf(this.shadowRoot.activeElement);t>0&&(this._displayOverlay=!0,e[t-1].focus())}_selectOption(e){var t;if(e){if(!e.link||e.blocked){const i={value:e.value,blocked:e.blocked},n=this._select.emit(i),o=this._menuOptionSelect.emit(i);return void(n.defaultPrevented||o.defaultPrevented||(this._displayOverlay=!1,this._activeIndex=void 0,null==(t=this._toggleButton)||t.focus()))}"tab"===e.linkTarget?window.open(e.link):window.location.href=e.link}}_isNumber(e){return"number"==typeof e&&!isNaN(e)}};Lg([gt(),zt({type:Zo})],jg.prototype,"icon",2),Lg([gt()],jg.prototype,"label",2),Lg([gt()],jg.prototype,"accessibilityLabel",2),Lg([gt({fromAttribute:e=>{const t=null===e?NaN:parseInt(e);return isNaN(t)||t<0?0:t}}),zt({type:Number})],jg.prototype,"badge",2),Lg([gt(),zt({type:Bo})],jg.prototype,"severity",2),Lg([gt(),zt({type:Number})],jg.prototype,"overlayMaxHeight",2),Lg([gt(),zt({type:Number})],jg.prototype,"overlayMaxWidth",2),Lg([gt(),zt({type:Number})],jg.prototype,"overlayMinWidth",2),Lg([gt(),zt({type:Pl})],jg.prototype,"overlayDirection",2),Lg([gt(),zt({type:Nl})],jg.prototype,"overlayAlignment",2),Lg([gt(),zt({type:Ml})],jg.prototype,"overlayPositionStrategy",2),Lg([Ht()],jg.prototype,"_displayOverlay",2),Lg([Mt(),zt({type:[Mg,Bg]})],jg.prototype,"options",2),Lg([ft({cancelable:!0})],jg.prototype,"_select",2),Lg([ft({cancelable:!0,bubbles:!0})],jg.prototype,"_menuOptionSelect",2),Lg([ri("default")],jg.prototype,"_defaultSlot",2),Lg([Pe()],jg.prototype,"_onOverlayReposition",1),Lg([Pe()],jg.prototype,"_onOverlayClose",1),Lg([Pe()],jg.prototype,"_onOverlayOpenComplete",1),Lg([Pe()],jg.prototype,"_onToggleClick",1),Lg([Pe()],jg.prototype,"_onToggleKeydown",1),Lg([Pe()],jg.prototype,"_onListKeydown",1),Lg([Pe()],jg.prototype,"_onScreenSizeChange",1),jg=Lg([_t({tag:"acorn-menu",delegatesFocus:!0})],jg);var Gg=Object.defineProperty,qg=Object.getOwnPropertyDescriptor,Ug=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?qg(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Gg(t,i,r),r},Kg=Ve.createTranslation({Menu:{sv:"Meny",en:"Menu"}}),Yg={$host:{display:"block",outline:"0 !important"},toolbar:{display:"flex",alignItems:"center",flex:"0 0 auto",gap:"8px"},item:{"&:first-child":{marginLeft:co({base:"0",xs:"auto"})}}},Xg=class extends Ti{constructor(){super(),this.maxVisibleItems=4,this.showLabels=!1,this.addEventListener("dataChange",this._onDataChange)}get _visibleItems(){const e=this._calculatedVisibleItems();return this.getSlottedItems().filter((t,i)=>i<e)}get _itemsInMenu(){const e=this._calculatedVisibleItems();return this.getSlottedItems().filter((t,i)=>i>=e)}get _menuItem(){return{icon:Zo.EllipsisVertical,label:Kg.Menu,items:{matchingContent:this._itemsInMenu}}}render(){return $`
994            <acorn-internal-scroll-pane>
995                <div class="${this.classes.toolbar}">
996                    ${this._visibleItems.map(e=>e.items?this._renderMenu(e):this._renderButton(e))}
997                    ${this._itemsInMenu.length?this._renderMenu(this._menuItem):null}
998                </div>
999            </acorn-internal-scroll-pane>
1000        `}getStyle(){return Yg}getSlottedItems(){return this.items.content}onSelect(e){e.stopPropagation(),this._select.emit({value:e.detail.value||e.target.getAttribute("data-value")})}_onDataChange(e){e.stopPropagation(),this.invalidate()}_renderButton(e){const t=!this.showLabels&&e.subLabel?`${e.label}, ${e.subLabel}`:e.label;return $`
1001            <acorn-icon-button
1002                icon="${e.icon}"
1003                accessibility-label="${j(this.showLabels?void 0:t)}"
1004                label="${j(this.showLabels?t:void 0)}"
1005                class="${this.classes.item}"
1006                data-value="${e.value}"
1007                @click="${this.onSelect}"
1008            ></acorn-icon-button>
1009        `}_renderMenu(e){var t;return $`
1010            <acorn-menu
1011                icon="${e.icon}"
1012                label="${j(this.showLabels?e.label:void 0)}"
1013                accessibility-label="${j(e.label)}"
1014                class="${this.classes.item}"
1015                .showLabel="${this.showLabels}"
1016                ._respondToMediaQuery="${!1}"
1017                .overlayAlignment="${Nl.Right}"
1018                @select="${this.onSelect}"
1019            >
1020                ${null==(t=e.items)?void 0:t.matchingContent.map(e=>e.items?this._renderMenuOptionGroup(e):this._renderMenuOption(e))}
1021            </acorn-menu>
1022        `}_renderMenuOption(e){return $`<acorn-menu-option
1023            value="${e.value}"
1024            sub-label="${j(e.subLabel)}"
1025            icon="${e.icon?e.icon:""}"
1026        >
1027            ${e.label}
1028        </acorn-menu-option>`}_renderMenuOptionGroup(e){var t;return $`
1029            <acorn-menu-option-group>
1030                ${null==(t=e.items)?void 0:t.matchingContent.map(e=>this._renderMenuOption(e))}
1031            </acorn-menu-option-group>
1032        `}_calculatedVisibleItems(){let e=Number.isNaN(this.visibleItems)?Number.MAX_SAFE_INTEGER:this.visibleItems;return e=Number.isNaN(this.maxVisibleItems)?e:Math.min(this.maxVisibleItems,e),Number.isNaN(this.minVisibleItems)?e:Math.max(this.minVisibleItems,e)}};Ug([gt(),zt({type:Number})],Xg.prototype,"maxVisibleItems",2),Ug([gt(),zt({type:Number})],Xg.prototype,"minVisibleItems",2),Ug([gt(),zt({type:Number})],Xg.prototype,"visibleItems",2),Ug([gt(),zt({type:Boolean})],Xg.prototype,"showLabels",2),Ug([ft()],Xg.prototype,"_select",2),Ug([Pe()],Xg.prototype,"onSelect",1),Ug([Pe()],Xg.prototype,"_onDataChange",1);var Qg=class extends Ti{onDataChange(e,t,i){i||this._dataChange.emit()}};Ug([gt(),zt({type:Zo})],Qg.prototype,"icon",2),Ug([gt()],Qg.prototype,"label",2),Ug([gt()],Qg.prototype,"subLabel",2),Ug([gt()],Qg.prototype,"value",2),Ug([ft({bubbles:!0})],Qg.prototype,"_dataChange",2),Ug([wi("icon"),wi("label"),wi("value"),wi("subLabel")],Qg.prototype,"onDataChange",1);var Zg=class extends Ti{onDataChange(e,t,i){i||this._dataChange.emit()}};Ug([gt(),zt({type:Zo})],Zg.prototype,"icon",2),Ug([gt()],Zg.prototype,"label",2),Ug([ft({bubbles:!0})],Zg.prototype,"_dataChange",2),Ug([wi("items"),wi("icon"),wi("label")],Zg.prototype,"onDataChange",1);var Jg=(e=>(e.Auto="auto",e.Popover="popover",e.PageDetail="page-detail",e))(Jg||{}),em=Object.defineProperty,tm=Object.getOwnPropertyDescriptor,im=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?tm(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&em(t,i,r),r},nm={$host:{display:"block"},$$slotted:{"&(*)":{marginTop:e=>e.hasLayout()?"0 !important":"",marginBottom:e=>e.hasLayout()?"0 !important":""}},gridWrapper:{display:"grid",flexDirection:"column",columnGap:mo,rowGap:"40px",gridTemplateColumns:"repeat(12, minmax(0, 1fr))",gridAutoRows:"auto"},gridWrapperItem:{"&:nth-child(3n+1)":{gridColumnEnd:e=>{var t;return`span ${null==(t=e._layout)?void 0:t.getLayoutColSpan(0)}`}},"&:nth-child(3n+2)":{gridColumnEnd:e=>{var t;return`span ${null==(t=e._layout)?void 0:t.getLayoutColSpan(1)}`}},"&:nth-child(3n+3)":{gridColumnEnd:e=>{var t;return`span ${null==(t=e._layout)?void 0:t.getLayoutColSpan(2)}`}},"&:nth-child(3n+4)":{gridColumnEnd:e=>{var t;return`span ${null==(t=e._layout)?void 0:t.getLayoutColSpan(3)}`}},"&.flex-display":{display:"flex"}}},om=class extends Ti{constructor(){super(...arguments),this.layout=lg.Default,this.gridColSpan=1}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this._verifyChildListObserver()}disconnectedCallback(){this._verifyChildListObserver()}
1032beforeRender(){this.hasLayout()&&[...this.children].forEach((e,t)=>{var i;return e.gridColSpan=null==(i=this._layout)?void 0:i.getGridColSpan(t)})}render(){return this.hasLayout()?this._renderColumns():this._renderDefault()}getStyle(){return nm}hasLayout(){return!(!this.layout||this.layout===lg.Default)&&this.gridColSpan>1}onGridLayoutChange(){this._verifyChildListObserver(),this._layout=gg.getSegmentLayout(this.layout,this.gridColSpan),this.invalidate()}_renderColumns(){return $` <div class="${this.classes.gridWrapper}">
1033            ${[...this.children].map((e,t)=>e.matches('acorn-action-card, acorn-highlight-box, [acorn-section-item="cover"]')?$`
1034                        <div class="${`${this.classes.gridWrapperItem} flex-display`}">
1035                            <slot name="${e.slot=`column-${t+1}`}"></slot>
1036                        </div>
1037                    `:$`<acorn-internal-enclosed-margins class="${this.classes.gridWrapperItem}">
1038                    <slot name="${e.slot=`column-${t+1}`}"></slot>
1039                </acorn-internal-enclosed-margins>`)}
1040        </div>`}_renderDefault(){return $` <acorn-internal-enclosed-margins>
1041            <slot></slot><slot name="body"></slot>
1042        </acorn-internal-enclosed-margins>`}_verifyChildListObserver(){this.hasLayout()&&this.isConnected?this._initChildListObserver():this._clearChildListObserver()}_initChildListObserver(){this._mutationObserver||(this._mutationObserver=new MutationObserver(()=>this.invalidate()),this._mutationObserver.observe(this,{childList:!0}))}_clearChildListObserver(){this._mutationObserver&&(this._mutationObserver.disconnect(),this._mutationObserver=void 0,[...this.children].forEach(e=>e.slot=""))}};im([gt(),zt({type:lg})],om.prototype,"layout",2),im([wi("layout",{triggerOn:pi.ChangeAndConnect}),wi("gridColSpan",{triggerOn:pi.ChangeAndConnect})],om.prototype,"onGridLayoutChange",1),om=im([_t({tag:"acorn-section-body"})],om);var rm=class extends om{};rm=im([_t({tag:"acorn-section-tab-body"})],rm);var am={$host:{display:e=>e.active?"block":"none"},content:{display:"flex",flexDirection:"column",rowGap:`${Dn.ExtraLarge}px`}},sm=0,lm=class extends Ti{constructor(){super(...arguments),this.active=!1,this.value="sectionTab@"+sm++,this.badgeNumber=0,this.badgeSeverity=Ko.Default,this.accessibilityBadgeLabel=""}getStyle(){return am}beforeRender(){this._tabBodySlot.content.forEach(e=>e.gridColSpan=this.gridColSpan||1)}render(){return $`<div class="${this.classes.content}">${this._tabBodySlot}</div>`}onPropertyChange(){this._change.emit({label:this.label,active:this.active,value:this.value})}};im([Ht()],lm.prototype,"gridColSpan",2),im([gt()],lm.prototype,"label",2),im([gt(),zt({type:Boolean})],lm.prototype,"active",2),im([gt(),zt({type:Number})],lm.prototype,"badgeNumber",2),im([gt(),zt({type:Ko})],lm.prototype,"badgeSeverity",2),im([gt()],lm.prototype,"accessibilityBadgeLabel",2),im([ft()],lm.prototype,"tabActive",2),im([ft({bubbles:!0})],lm.prototype,"_change",2),im([ri("tab-body",{selectAllTypes:rm.config.type,strict:!0}),Ht()],lm.prototype,"_tabBodySlot",2),im([wi("label"),wi("active")],lm.prototype,"onPropertyChange",1),lm=im([_t({tag:"acorn-section-tab"})],lm);var cm={$host:{display:"block",outline:"0 !important",paddingTop:"8px"},tabBar:{borderBottom:`1px solid ${zi.Line.Regular.low}`},content:{...Qi(),paddingTop:"24px"}},dm=class extends Ti{get _activeTab(){return this._tabSlot.content.find(e=>e.active)||this._tabSlot.content[0]}getStyle(){return cm}beforeRender(){var e;this._tabSlot.content.forEach(e=>e.gridColSpan=this.gridColSpan),this._setActiveTab(null==(e=this._activeTab)?void 0:e.value)}render(){return $`
1043            <acorn-internal-tab-bar
1044                id="tabBar"
1045                class="${this.classes.tabBar}"
1046                .tabs="${this._tabSlot.content.map(({label:e,active:t,value:i,badgeNumber:n,badgeSeverity:o,accessibilityBadgeLabel:r})=>({label:e,active:t,value:i,badgeNumber:n,badgeSeverity:o,accessibilityBadgeLabel:r}))}"
1047                @tabActive="${this._onTabActive}"
1048            ></acorn-internal-tab-bar>
1049            <acorn-internal-enclosed-margins
1050                class="${this.classes.content}"
1051                @change="${this._onTabChange}"
1052                role="tabpanel"
1053            >
1054                ${this._tabSlot}
1055            </acorn-internal-enclosed-margins>
1056        `}_onTabActive(e){this._setActiveTab(e.detail.value),this._tabActive.emit({label:this._activeTab.label,activeElement:this._activeTab}),this._activeTab.tabActive.emit({label:this._activeTab.label,activeElement:this._activeTab}),this.invalidate()}_onTabChange(e){e.stopPropagation(),e.detail.active&&this._setActiveTab(e.detail.value),this.invalidate()}_setActiveTab(e){this._tabSlot.content.forEach(t=>t.active=t.value===e)}};im([Ht()],dm.prototype,"gridColSpan",2),im([ft()],dm.prototype,"_tabActive",2),im([ri("tab",{selectAllTypes:lm.config.type,strict:!0})],dm.prototype,"_tabSlot",2),im([Pe()],dm.prototype,"_onTabActive",1),im([Pe()],dm.prototype,"_onTabChange",1),dm=im([_t({tag:"acorn-section-tab-group"})],dm);var hm=(e=>(e.Default="default",e.Apricot="apricot",e.Sky="sky",e.Rose="rose",e))(hm||{}),pm="40px",um={$host:{display:"block"},$$slotted:{"&(acorn-badge)":{margin:0}},wrapper:{display:"flex",justifyContent:"space-between",alignContent:"stretch",alignItems:"start",width:"100%",boxSizing:"border-box",gap:"16px",padding:"0",minHeight:e=>e.hide?"0px":pm},heading:{...Mn(),color:`var(--acorn-section-header-color, ${zi.Text.brand})`,minHeight:"inherit",display:"flex",boxSizing:"border-box",gap:"10px",marginTop:"0",marginBottom:"0"},headingHidden:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"},headingBefore:{display:"flex",minHeight:"inherit",maxHeight:pm,alignItems:"center",gap:"4px"},headingAfter:{display:"flex",minHeight:"inherit",maxHeight:pm,alignItems:"center"},headingText:{alignSelf:"center",paddingTop:"3px"},subHeadingText:{color:zi.Text.Regular.high,fontFamily:Cn.Base,fontSize:kn(16),lineHeight:"1.2",margin:"8px 0 0"},toolbar:{minHeight:"inherit",display:"flex",justifyContent:"space-between",alignContent:"stretch",alignItems:"center",maxWidth:co({base:"auto",xs:"50%"})},infoToggle:{height:"20px",lineHeight:"20px",display:"inline-block",overflow:"hidden",paddingTop:"3px"},infoIconLabel:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"}},gm=class extends Ti{constructor(){super(),this.hide=!1,this.gridColSpan=1}getStyle(){return um}render(){const e=this.hide?this.classes.headingHidden:this.classes.heading;return $`
1057            <div class="${this.classes.wrapper}">
1058                <h2 class="${e}">
1059                    ${this.icon||this.badgeSlot.isFilled()?$` <span class="${this.classes.headingBefore}">
1060                              ${this.icon?$`
1061                                        <acorn-icon
1062                                            icon="${this.icon}"
1063                                            size="${Jo.Regular}"
1064                                            accessibility-label="${j(this.iconAlt)}"
1065                                        ></acorn-icon>
1066                                    `:null}
1067                              ${this.badgeSlot}
1068                          </span>`:null}
1069                    <span class="${this.classes.headingText}">${this.heading}</span>
1070                </h2>
1071                <div class="${this.classes.toolbar}">
1072                    ${this.infoSlot} ${this.toolbarSlot.isFilled()?this.toolbarSlot:this.menuSlot}
1073                </div>
1074            </div>
1075            ${this.subHeading?$`<p class="${this.classes.subHeadingText}">${this.subHeading}</p>`:null}
1076        `}beforeRender(){this.badgeSlot.isFilled()&&(this.badgeSlot.content.align=No.None),this.toolbarSlot.isFilled()&&(this.toolbarSlot.content.visibleItems=this.gridColSpan>1?void 0:0)}onHeadingChange(){this.heading||setTimeout(()=>{!this.heading&&this.isConnected&&console.error(`\n                    You need to provide a heading in ${this.localName}!\n                    If you don't want to visually show the heading add the 'hide' attribute.\n                    Even if heading is hidden with 'hide' attribute, it is still read by screen-readers.\n                    For accessibility it's important that the content hierarchy on the page is correct.\n                    If heading is omitted or nonsens text is provided, then this hierarchy may be incorrect.\n                `)},10)}};im([gt()],gm.prototype,"heading",2),im([gt()],gm.prototype,"subHeading",2),im([gt()],gm.prototype,"icon",2),im([gt()],gm.prototype,"iconAlt",2),im([gt(),zt({type:Boolean})],gm.prototype,"hide",2),im([Ht()],gm.prototype,"gridColSpan",2),im([ri("badge",{selectSingleType:[Uo.config.type],strict:!0})],gm.prototype,"badgeSlot",2),im([ri("menu",{selectSingleType:[jg.config.type],strict:!0}),Ht()],gm.prototype,"menuSlot",2),im([ri("toolbar",{selectSingleType:"section-header-toolbar",strict:!0}),Ht()],gm.prototype,"toolbarSlot",2),im([ri("info",{selectSingleType:"section-header-info"}),Ht()],gm.prototype,"infoSlot",2),im([wi("heading",{triggerOn:pi.ChangeAndConnect})],gm.prototype,"onHeadingChange",1),gm=im([_t({tag:"acorn-section-header"})],gm);var mm=class extends Qg{};mm=im([_t({tag:"acorn-section-header-toolbar-item"})],mm);var bm=class extends Zg{};im([ri("item",{selectAllTypes:mm.config.type,strict:!0,required:!0}),Ht()],bm.prototype,"items",2),bm=im([_t({tag:"acorn-section-header-toolbar-item-group"})],bm);var vm=class extends Xg{};im([ri("item",{selectAllTypes:[mm.config.type,bm.config.type],strict:!0,required:!0}),Ht()],vm.prototype,"items",2),vm=im([_t({tag:"acorn-section-header-toolbar"})],vm);var ym=Ve.createTranslation({ShowInfo:{sv:"Visa hjälp",en:"Show help"},CloseInfo:{sv:"Dölj hjälp",en:"Hide help"},InfoAriaLabel:{sv:"Förklaring",en:"Explanation"}}),_m="button",fm={$host:{outline:"none !important"},overlayContent:{position:"relative",padding:"16px 56px 16px 16px"},overlayText:{whiteSpace:"pre-line"},overlayCloseButton:{position:"absolute",top:"12px",right:"12px"}},xm=class extends Ti{constructor(){super(...arguments),this.heading=ym.InfoAriaLabel,this.displayMode=Jg.Auto,this.overlayDirection=Pl.Down,this.overlayAlignment=Nl.Right,this._showHelp=!1}getStyle(){return fm}render(){return $`<acorn-icon-button
1077                id="${_m}"
1078                icon="${Zo.CircleQuestionMark}"
1079                accessibility-label="${ym.ShowInfo}"
1080                @click="${this._onToggleHelp}"
1081            ></acorn-icon-button>
1082            <acorn-internal-responsive-overlay
1083                ?open="${this._showHelp}"
1084                display-mode="${this.displayMode}"
1085                controlled-by="${_m}"
1086                heading="${j(this.heading)}"
1087                text="${j(this.text)}"
1088                direction="${this.overlayDirection}"
1089                alignment="${this.overlayAlignment}"
1090                @close="${this._onOverlayClose}"
1091            >
1092                <slot></slot>
1093            </acorn-internal-responsive-overlay>`}_onToggleHelp(){this._showHelp=!this._showHelp}_onOverlayClose(){this._showHelp=!1}};im([gt()],xm.prototype,"text",2),im([gt()],xm.prototype,"heading",2),im([gt(),zt({type:Jg})],xm.prototype,"displayMode",2),im([gt(),zt({type:Pl})],xm.prototype,"overlayDirection",2),im([gt(),zt({type:Nl})],xm.prototype,"overlayAlignment",2),im([Ht()],xm.prototype,"_showHelp",2),im([Pe()],xm.prototype,"_onToggleHelp",1),im([Pe()],xm.prototype,"_onOverlayClose",1),xm=im([_t({tag:"acorn-section-header-info"})],xm);var wm={$host:{margin:"32px 0",display:"block",[fo.HasTheme]:function(e){return"default"===e.theme?wo:xo.True}},wrapper:{width:"100%",height:"100%",borderStyle:"solid",boxSizing:"border-box",borderColor:function(e){return`var(--acorn-section-border-color, ${"default"===e.theme?zi.Line.Regular.low:"transparent"})`},backgroundColor:function(e){let t="transparent";switch(e.theme){case"apricot":t=zi.Surface.Brand.lower;break;case"rose":t=zi.Surface.Lilac.lower;break;case"sky":t=zi.Surface.Turquoise.lower}return`var(--acorn-section-background-color, ${t})`},borderRadius:"var(--acorn-section-border-radius, 4px)",borderWidth:"var(--acorn-section-border-width, 1px)",padding:`16px ${go} 32px`},content:{paddingTop:"16px",display:"flex",flexDirection:"column",rowGap:`${Dn.ExtraLarge}px`}},Cm=[om.config.type],Sm=[dm.config.type],$m=[gm.config.type],km=Object.values(hm),Em=new ResizeObserver(e=>
1093{e.forEach(e=>{const t=e.contentRect.width;e.target.gridColSpan=gg.calcNumColumns(t)})}),Tm=class extends Ti{constructor(){super(...arguments),this.theme="default"}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this.isConnected&&Em.observe(this)}disconnectedCallback(){Em.unobserve(this)}beforeRender(){this._bodySlot.content.forEach(e=>e.gridColSpan=this.gridColSpan||1),this._headerSlot.content.gridColSpan=this.gridColSpan||1,this._tabGroupSlot.isFilled()&&(this._tabGroupSlot.content.gridColSpan=this.gridColSpan)}render(){return $`
1094            <div class="${this.classes.wrapper}">
1095                ${this._headerSlot}
1096                ${this._tabGroupSlot.isFilled()?this._tabGroupSlot:$` <div class="${this.classes.content}">${this._bodySlot}</div> `}
1097            </div>
1098        `}getStyle(){return wm}setGridColSpanFromParent(e){Em.unobserve(this),this.gridColSpan=e}onThemeChange(){this.theme&&-1!==km.indexOf(this.theme)||(this.theme="default")}onGridColumnSpanChange(){this.gridColSpan&&this._gridColSpanChange.emit({gridColSpan:this.gridColSpan})}};im([gt(),zt({type:hm})],Tm.prototype,"theme",2),im([Ht()],Tm.prototype,"gridColSpan",2),im([ri("header",{selectSingleType:$m,required:!0,strict:!0})],Tm.prototype,"_headerSlot",2),im([ri("body",{selectAllTypes:Cm,strict:!0}),Ht()],Tm.prototype,"_bodySlot",2),im([ri("tab-group",{selectSingleType:Sm,strict:!0})],Tm.prototype,"_tabGroupSlot",2),im([ft({bubbles:!1})],Tm.prototype,"_gridColSpanChange",2),im([wi("theme")],Tm.prototype,"onThemeChange",1),im([wi("gridColSpan")],Tm.prototype,"onGridColumnSpanChange",1),Tm=im([_t({tag:"acorn-section"})],Tm);var Im=Object.defineProperty,Om=Object.getOwnPropertyDescriptor,Dm=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Om(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Im(t,i,r),r},Rm=(e=>(e.Dark="dark",e.Teal="teal",e.Light="light",e))(Rm||{}),Fm=Ve.createTranslation({LoadingMessage:{sv:"Laddar",en:"Loading"}}),Lm={...yo(35,zi.Icon.regular),minHeight:void 0,minWidth:void 0},Am=new Map([["dark",zi.Icon.regular],["light",zi.Icon.white],["teal",zi.Icon.interactive]]),Mm={$host:{display:"inline-block"},wrapper:{display:"flex",flexDirection:"column",alignItems:"center"},spinner:{...Lm,maskImage:Lm.backgroundImage,maskSize:"100%",width:"var(--acorn-loader-size, 35px)",height:"var(--acorn-loader-size, 35px)",background:e=>{return`var(--acorn-loader-color, ${t=e,Am.get(t.theme||"teal")})`;var t},transition:ai.isRunningTests?void 0:"opacity 0.3s ease-in-out 0.5s"},message:{display:"block",textAlign:"center",marginTop:"24px",maxWidth:"500px"},accessibilityMessage:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"}},Bm=class extends Ti{constructor(){super(...arguments),this.theme="teal"}getStyle(){return Mm}render(){return $`<div class="${this.classes.wrapper}">
1099            <div class="${this.classes.spinner}"></div>
1100            ${this._renderMessage()} ${this._renderAccessibilityMessage()}
1101        </div>`}_renderMessage(){if(this.message)return $`<span class="${this.classes.message}" aria-hidden="true">${this.message}</span>`}_renderAccessibilityMessage(){return $`<span role="status" class="${this.classes.accessibilityMessage}">
1102            ${this.accessibilityLoadingMessage||this.message||Fm.LoadingMessage}
1103        </span>`}};Dm([gt(),zt({type:Rm})],Bm.prototype,"theme",2),Dm([gt()],Bm.prototype,"message",2),Dm([gt()],Bm.prototype,"accessibilityLoadingMessage",2),Bm=Dm([_t({tag:"acorn-loader"})],Bm);var Pm=Object.defineProperty,Nm=Object.getOwnPropertyDescriptor,Hm=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Nm(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Pm(t,i,r),r};var zm={$host:{display:"block"},$$slotted:{'&([slot^="section"])':{margin:"0"}},wrapper:{display:e=>function(e){switch(e){case"column":case"grid":return"grid";default:return"block"}}(e.layoutType),padding:`0 ${ho}`,marginBottom:`${uo}`,columnGap:po,rowGap:uo,gridTemplateColumns:"repeat(12, minmax(0, 1fr))",gridAutoRows:"auto"}};ai.isSafari&&Object.assign(zm.$$slotted['&([slot^="section"])'],{marginBottom:e=>
1103"column"===e.layoutType?uo:"0px"}),ai.isFirefox&&Object.assign(zm.wrapper,{"@media print":{display:"block"}});var Wm=class{constructor(e){this.type="column",this.name=e}renderContent(e,t){const i=gg.getSegmentLayout(this.name,e),n=i.numSegments(),o=new Array(n).fill(0),r=new Array(n).fill(null).map(()=>[]);return t.filter(e=>e.isFilled()).forEach(e=>{const t=e.content,a=t.hasAttribute("layout-size")?parseInt(t.getAttribute("layout-size")||"1"):1;let s;if(t.hasAttribute("layout-column")){const e=parseInt(t.getAttribute("layout-column")||"1");s=e<n?e:void 0}void 0===s&&(s=o.indexOf([...o].sort((e,t)=>e-t)[0])),r[s].push(e),o[s]+=a,Qt(e.content,Tm,"setGridColSpanFromParent")&&e.content.setGridColSpanFromParent(i.getGridColSpan(s))}),$`
1104            <style>
1105                .column {
1106                    display: flex;
1107                    flex-direction: column;
1108                    row-gap: ${uo};
1109                }
1110                ${i.map((e,t)=>`\n                    .column:nth-of-type(${i.length}n+${t+1}) {\n                        grid-column-end: span ${e};\n                    }\n                `).join("\n")}
1111            </style>
1112            ${r.map(e=>$` <div class="column">${e}</div> `)}
1113        `}},Vm=class{constructor(e){this.type="grid",this.name=e}renderContent(e,t){const i=gg.getSegmentLayout(this.name,e);return t.filter(e=>e.isFilled()).forEach((e,t)=>{Qt(e.content,Tm,"setGridColSpanFromParent")&&e.content.setGridColSpanFromParent(i.getGridColSpan(i.getGridColSpan(t)))}),$`
1114            <style>
1115                ${i.map((e,t)=>`::slotted([slot^="section"]:nth-child(${i.length}n+${t+1})) { grid-column-end: span ${e};}`).join("\n")}
1116            </style>
1117            ${t.reduce((e,t)=>e.concat(t),[])}
1118        `}},jm=class extends Ti{constructor(){super(...arguments),this.layout=lg.Default,this.gridColSpan=1}get layoutType(){return this._layout.type}getStyle(){return zm}render(){return $`<div class="${this.classes.wrapper}">
1119            ${this._layout.renderContent(this.gridColSpan,this.slots)}
1120        </div>`}onLayoutChange(){switch(this.layout){case lg.Grid_50_50:case lg.Grid_66_33:case lg.Grid_33_66:case lg.Grid_33_33_33:case lg.Grid_25_25_25_25:this._layout=new Vm(this.layout);break;case lg.Column_50_50:case lg.Column_66_33:case lg.Column_33_66:case lg.Column_33_33_33:case lg.Column_25_25_25_25:this._layout=new Wm(this.layout);break;default:this._layout=new Vm(lg.Default)}}onGridColumnSpanChange(){this.gridColSpan&&this._gridColSpanChange.emit({gridColSpan:this.gridColSpan})}};Hm([gt(),zt({type:lg})],jm.prototype,"layout",2),Hm([Ht()],jm.prototype,"gridColSpan",2),Hm([ri("section",{selectAllTypes:["section","action-section","wizard","highlight-box"],spread:!0}),Ht()],jm.prototype,"slots",2),Hm([ft()],jm.prototype,"_gridColSpanChange",2),Hm([wi("layout",{triggerOn:pi.ChangeAndConnect})],jm.prototype,"onLayoutChange",1),Hm([wi("gridColSpan")],jm.prototype,"onGridColumnSpanChange",1),jm=Hm([_t({tag:"acorn-internal-page-layout"})],jm);var Gm=Object.defineProperty,qm=Object.getOwnPropertyDescriptor,Um=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?qm(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Gm(t,i,r),r},Km=class extends xt{constructor(){super(...arguments),this.link="",this.label=""}}
1120;Km.modelName="customPageHeaderBreadcrumb",Km.aliases=["acorn-breadcrumb"];var Ym=Ve.createTranslation({BreadCrumbContainerDefaultNavigation:{sv:"Länkstig",en:"Breadcrumb navigation"},BreadCrumbContainerExpand:{sv:"Visa alla steg i länkstigen",en:"Show all breadcrumb steps"}}),Xm={$host:{display:"block",width:"100%",outline:"0 !important"},nav:{display:"flex",position:"relative",flexDirection:"column",color:zi.Text.interactive,width:"100%",overflow:"hidden","& > ul":{flex:"1",padding:"4px",margin:"0",...Eo()}},hiddenList:{display:"flex",gap:"8px",position:"absolute",pointerEvents:"none",width:"fit-content",flexWrap:"nowrap",opacity:"0"},breadcrumbList:{display:"flex",gap:"8px",flexWrap:"wrap",listStyle:"none"},breadcrumbListItem:{display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap"},breadcrumb:{...Qi(),color:zi.Text.Regular.medium,textDecoration:"none",borderBottom:"1px solid transparent","&:not(span)":{color:zi.Text.interactive,borderBottom:"1px solid"},"&:hover":{borderBottom:"1px solid transparent"}},slash:{margin:"0 0 0 8px",color:zi.Text.Regular.medium,fontSize:kn(16)},expand:{display:"flex",boxSizing:"border-box",height:"24px",alignItems:"center",cursor:"pointer",padding:"0 8px",borderRadius:"20px",transition:"background-color .25s ease-out",...Qi(),"&:hover":{backgroundColor:zi.Overlay.hover},"&:active":{backgroundColor:zi.Overlay.active}},dot:{width:"3px",height:"3px",borderRadius:"50%",backgroundColor:zi.Icon.interactive,"&:not(:last-of-type)":{marginRight:"4px"}},accessibilityLabel:{fontSize:"0"}},Qm="intersectionRoot",Zm="intersectionArea",Jm=class extends Ti{constructor(){super(...arguments),this.data=[],this.accessibilityLabel=Ym.BreadCrumbContainerDefaultNavigation,this._truncate=!1}get _intersectionRootElement(){return this.shadowRoot.getElementById(Qm)}get _intersectionAreaElement(){return this.shadowRoot.getElementById(Zm)}render(){return $`
1121            <nav
1122                Role="navigation"
1123                aria-label="${this.accessibilityLabel}"
1124                class="${this.classes.nav}"
1125                id="${Qm}"
1126            >
1127                ${this._renderVisibleBreadCrumbList()} ${this._renderHiddenBreadCrumbList()}
1128            </nav>
1129        `}afterRender(){this._intersectionObserver||(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{root:this._intersectionRootElement,rootMargin:"0px",threshold:[1]}),this._intersectionObserver.observe(this._intersectionAreaElement))}disconnectedCallback(){var e;null==(e=this._intersectionObserver)||e.disconnect(),this._intersectionObserver=void 0}getStyle(){return Xm}_onBreadcrumbClick(e){e.preventDefault(),e.stopPropagation();const t=this.data.find(t=>t.label.trim()===e.target.innerText.trim());if(!t||!this._showLink(t))return;this._click.emit({label:t.label,link:t.link}).defaultPrevented||t.link&&(window.location.href=t.link)}_showLink(e){return!(this._isLast(e)||!e.link)}_isLast(e){return this.data.indexOf(e)===this.data.length-1}_onIntersection(e){e.forEach(e=>{1!==e.intersectionRatio?this._truncate=!0:this._truncate=!1})}_isShown(e){if(!this._truncate)return!0;const t=[0,this.data.length-2,this.data.length-1],i=this.data.indexOf(e);return t.includes(i)}_onExpandInteraction(e){if("keydown"===e.type){const t=e;if(t.key!==ye.Space&&t.key!==ye.Enter)return}this._truncate=!1}_renderVisibleBreadCrumbList(){if(!this.data.length)return null;const e=this.data[0];return $`<ul class="${this.classes.breadcrumbList}" @click="${this._onBreadcrumbClick}">
1130            <li class="${this.classes.breadcrumbListItem}">
1131                ${this._showLink(e)?$` <a href="${e.link}" class="${this.classes.breadcrumb}"> ${e.label} </a> `:$` <span class="${this.classes.breadcrumb}"> ${e.label} </span> `}
1132                <span class="${this.classes.slash}">/</span>
1133            </li>
1134            ${this._truncate?$` <li class="${this.classes.breadcrumbListItem}">
1135                      <div
1136                          class="${this.classes.expand}"
1137                          tabindex="0"
1138                          role="button"
1139                          @click="${this._onExpandInteraction}"
1140                          @keydown="${this._onExpandInteraction}"
1141                      >
1142                          <div class="${this.classes.dot}"></div>
1143                          <div class="${this.classes.dot}"></div>
1144                          <div class="${this.classes.dot}"></div>
1145                          <span class="${this.classes.accessibilityLabel}"> ${Ym.BreadCrumbContainerExpand}" </span>
1146                      </div>
1147                      <span class="${this.classes.slash}">/</span>
1148                  </li>`:null}
1149            ${this.data.slice(1).map(e=>this._isShown(e)?$`<li
1150                          class="${this.classes.breadcrumbListItem}"
1151                          aria-current="${this._isLast(e)?"page":"false"}"
1152                      >
1153                          ${this._showLink(e)?$`
1154                                    <a href="${e.link}" class="${this.classes.breadcrumb}">
1155                                        ${e.label}
1156                                    </a>
1157                                `:$` <span class="${this.classes.breadcrumb}"> ${e.label} </span> `}
1158                          ${this._isLast(e)?null:$`<span class="${this.classes.slash}">/</span>`}
1159                      </li> `:null)}
1160        </ul>`}_renderHiddenBreadCrumbList(){return $`<ul class="${this.classes.hiddenList}" id="${Zm}" aria-hidden="true">
1161            ${this.data.slice(0).map(e=>$`<li class="${this.classes.breadcrumbListItem}">
1162                    <span class="${this.classes.breadcrumb}"> ${e.label} </span>
1163                    ${this._isLast(e)?null:$`<span class="${this.classes.slash}">/</span>`}
1164                </li> `)}
1165        </ul>`}};Um([Mt(),zt({type:Km})],Jm.prototype,"data",2),Um([gt()],Jm.prototype,"accessibilityLabel",2),Um([Ht()],Jm.prototype,"_truncate",2),Um([ft({cancelable:!0})],Jm.prototype,"_click",2),Um([Pe()],Jm.prototype,"_onBreadcrumbClick",1),Um([Pe()],Jm.prototype,"_onIntersection",1),Um([Pe()],Jm.prototype,"_onExpandInteraction",1),Jm=Um([_t({tag:"acorn-custom-page-header-breadcrumb-container",alias:["acorn-breadcrumb-container"]})],Jm);var eb={$host:{display:"block"}},tb=class extends Ti{getStyle(){return eb}render(){return $`<slot></slot>`}};tb=Um([_t({tag:"acorn-custom-page-header-content"})],tb);var ib={$host:{display:"block"},wrapper:{padding:`0px ${ho}`},top:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",marginBottom:"16px",...fn({sm:{minHeight:"40px"}})},header:{display:"flex",flexDirection:"row",justifyContent:"space-between"},toolbar:{marginLeft:"16px",marginTop:"-4px",...fn({sm:{marginTop:"0px"},md:{marginTop:"4px"}}),flex:"0 1 100%",overflow:"hidden"},customContent:{display:e=>e.contentSlot.isFilled()?"block":"none",flexBasis:"100%",margin:"16px 0 8px"},heading:{...Object.assign(An(),{marginTop:"0",marginBottom:"8px"}),flex:"1 0 auto"},lead:{display:e=>e.lead?"block":"none",fontSize:kn(16),fontFamily:Cn.Base,lineHeight:"1.2",maxWidth:wn,color:zi.Text.Regular.high,margin:"8px 0"}},nb=class extends xt{constructor(){super(...arguments),this.label="",this.icon="",this.value=""}};nb.modelName="customPageHeaderToolbarItem";var ob=class extends xt{constructor(){super(...arguments),this.label="",this.icon=""}};ob.modelName="customPageHeaderToolbarItemGroup",Um([zt({type:nb})],ob.prototype,"children",2);var rb=(e=>(e.Default="default",e.Wide="wide",e.Narrow="narrow",e))(rb||{}),ab={default:1184,wide:1560,narrow:780},sb=Ve.createTranslation({BusyMessage:{sv:"Laddar sidinnehåll",en:"Loading page content"},LoadedMessage:{sv:"Sidinnehåll har laddats",en:"Page content is loaded"},SearchLabelDefault:{sv:"Sök",en:"Search"}}),lb=class extends nb{constructor(){super(...arguments),this.value="search",this.icon=Zo.MagnifyingGlass,this.label=sb.SearchLabelDefault,this.alwaysShow=!0}};lb.modelName="customPageHeaderToolbarSearch";var cb=class extends Ti{constructor(){super(),this._hideLabels=!1;const e=window.matchMedia(`(min-width: ${gn.Small})`);this._hideLabels=!e.matches,e.addEventListener("change",e=>{this._hideLabels=!e.matches})}render(){return this.items.sort((e,t)=>(e instanceof lb?1:0)-(t instanceof lb?1:0)),$`<acorn-internal-toolbar
1166            .data="${this.items}"
1167            .hideLabels="${this._hideLabels}"
1168            @selectOption="${this._onSelectOption}"
1169        ></acorn-internal-toolbar>`}_onSelectOption(e){this._select.emit(e.detail)}};Um([Mt(),zt({type:[nb,ob,lb]})],cb.prototype,"items",2),Um([Ht()],cb.prototype,"_hideLabels",2),Um([ft()],cb.prototype,"_select",2),Um([Pe()],cb.prototype,"_onSelectOption",1),cb=Um([_t({tag:"acorn-custom-page-header-toolbar"})],cb);var db=class extends Ti{constructor(){super(...arguments),this.heading=""}getStyle(){return ib}render(){return $`
1170            <div class="${this.classes.wrapper}">
1171                ${this._renderTopContainer()}
1172                <div class="${this.classes.header}">
1173                    <h1 class="${this.classes.heading}">${this.heading}</h1>
1174                    <div class="${this.classes.toolbar}">${this.toolbarSlot}</div>
1175                </div>
1176                <p class="${this.classes.lead}">${this.lead}</p>
1177                <div class="${this.classes.customContent}">${this.contentSlot}</div>
1178            </div>
1179        `}_renderTopContainer(){return this._breadcrumbSlot.isFilled()?$` <div class="${this.classes.top}">${this._breadcrumbSlot}</div> `:null}};Um([gt()],db.prototype,"heading",2),Um([gt()],db.prototype,"lead",2),Um([ri("toolbar",{selectSingleType:cb.config.type,strict:!0})],db.prototype,"toolbarSlot",2),Um([ri("content",{selectSingleType:tb.config.type,strict:!0})],db.prototype,"contentSlot",2),Um([Ht(),ri("breadcrumb",{selectSingleType:Jm.config.type})],db.prototype,"_breadcrumbSlot",2),db=Um([_t({tag:"acorn-custom-page-header"})],db);var hb={$host:{display:"block"},wrapper:{display:"flex",flexDirection:"column",gap:uo,padding:`0 ${ho}`},$$slotted:{'&([slot="section"])':{margin:"0"}}};ai.isFirefox&&Object.assign(hb.wrapper,{"@media print":{display:"block"}});var pb=class extends Ti{constructor(){super(...arguments),this.gridColSpan=1}getStyle(){return hb}
1179beforeRender(){this.sectionSlot.content.forEach(e=>{Qt(e,Tm,"setGridColSpanFromParent")&&e.setGridColSpanFromParent(this.gridColSpan)})}render(){return $` <div class="${this.classes.wrapper}">${this.sectionSlot}</div> `}};Um([Ht(),ri("section",{selectAllTypes:["section","action-section"]})],pb.prototype,"sectionSlot",2),Um([Ht()],pb.prototype,"gridColSpan",2),pb=Um([_t({tag:"acorn-custom-page-secondary-content"})],pb);var ub=class extends xt{constructor(){super(...arguments),this.value="",this.label="",this.active=!1,this.badgeNumber=0,this.badgeSeverity=Bo.Default,this.accessibilityBadgeLabel="",this.selected=!1}};ub.modelName="customPageSubnavOption",Um([zt({type:Boolean})],ub.prototype,"active",2),Um([zt({type:Number})],ub.prototype,"badgeNumber",2),Um([zt({type:Bo})],ub.prototype,"badgeSeverity",2),Um([zt({type:Boolean})],ub.prototype,"selected",2);var gb={$host:{display:"block",outline:"0 !important",backgroundColor:zi.Surface.Brand.lower}},mb="tabBar",bb=class extends Ti{constructor(){super(...arguments),this.options=[]}get value(){var e;const t=this.shadowRoot.getElementById(mb);return null==(e=null==t?void 0:t.activeTab)?void 0:e.value}getStyle(){return gb}render(){return $`<acorn-internal-tab-bar
1180            id="${mb}"
1181            .tabs="${this.options}"
1182            @tabActive="${this._onTabActive}"
1183        ></acorn-internal-tab-bar>`}onOptionsChange(){this.options.forEach(e=>{e.active=e.selected||e.active,e.selected=e.active})}_onTabActive(e){const t=e.detail.value;this._select.emit({value:t}).defaultPrevented?(e.preventDefault(),this.invalidate()):this._setActiveOption(t)}_setActiveOption(e){this.options.forEach(t=>{t.active=t.value===e,t.selected=t.active})}};Um([Mt(),zt({type:ub})],bb.prototype,"options",2),Um([ft({cancelable:!0})],bb.prototype,"_select",2),Um([wi("options")],bb.prototype,"onOptionsChange",1),Um([Pe()],bb.prototype,"_onTabActive",1),bb=Um([_t({tag:"acorn-custom-page-subnav"})],bb);var vb=class extends jm{};vb=Um([_t({tag:"acorn-custom-page-body"})],vb);var yb={$host:{display:"block",...{"--acorn-section-padding":"16px","--acorn-section-col-gutter":"16px","--acorn-section-row-gutter":"24px",...fn({sm:{"--acorn-section-padding":"24px","--acorn-section-col-gutter":"24px"}})}},wrapper:{maxWidth:e=>`min(100%, ${ab[e.span]}px)`,margin:"0 auto",padding:"24px 0",...fn({sm:{padding:"32px 0"}})},header:{marginBottom:"24px"},message:{display:e=>e.messageSlot.isFilled()?"block":"none",padding:`0 ${po}`,marginBottom:uo},subnav:{display:e=>e.subnavSlot.isFilled()?"block":"none",padding:`0 ${po}`,marginBottom:uo},content:{display:"grid",gridTemplateColumns:e=>e.hasAsideColumn?`auto ${e.hasAsideColumn?412:0}px`:"auto",gridTemplateRows:"auto"},feedback:{display:e=>e.feedbackSlot.isFilled()?"block":"none",padding:`0 ${po}`,marginTop:uo},loader:{display:e=>e.loading||e.busy?"flex":"none",justifyContent:"center"}};ai.isFirefox&&(Object.assign(yb.wrapper,{"@media print":{display:"flex",flexDirection:"column"}}),Object.assign(yb.content,{"@media print":{display:"block"}}));var _b=class extends Ti{constructor(){super(...arguments),this.pageWidth=document.documentElement.clientWidth,this.loading=!1,this.busy=!1,this.span="default",this._resizeThrottledValue=0}get pageContentWidth(){const e=ab[this.span];return Math.min(e,this.pageWidth)}get hasAsideColumn(){return!(this.pageContentWidth<1184)&&!(!this.secondaryContentSlot||!this.secondaryContentSlot.isFilled())}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this._pageConnect.emit(),this._resizeObserver=new ResizeObserver(e=>{const t=Math.floor(e[0].contentRect.width);this._resizeThrottle?this._resizeThrottledValue=t:(this.pageWidth=this._resizeThrottledValue=t,this._resizeThrottle=setTimeout(()=>{this._resizeThrottle=null,this.pageWidth=this._resizeThrottledValue},100))}),this._resizeObserver.observe(this)}disconnectedCallback(){this._pageDisconnect.emit(),this._resizeObserver&&this._resizeObserver.disconnect()}getStyle(){return yb}beforeRender(){const e=this.hasAsideColumn?this.pageContentWidth-412:this.pageContentWidth,t=gg.calcNumColumns(e);
1183this.bodySlot.content.forEach(e=>{e.gridColSpan=t}),this.secondaryContentSlot.isFilled()&&(this.secondaryContentSlot.content.gridColSpan=this.hasAsideColumn?1:t)}render(){return $`
1184            <acorn-loader
1185                class="${this.classes.loader}"
1186                accessibility-loading-message="${this.loading||this.busy?sb.BusyMessage:sb.LoadedMessage}"
1187            ></acorn-loader>
1188            ${this._renderWrapper()}
1189        `}_renderWrapper(){if(!this.loading&&!this.busy)return $`
1190                <div class="${this.classes.wrapper}">
1191                    <div class="${this.classes.header}">${this.headerSlot}</div>
1192                    <div class="${this.classes.message}">${this.messageSlot}</div>
1193                    <div class="${this.classes.subnav}">${this.subnavSlot}</div>
1194
1195                    <div
1196                        class="${this.classes.content}"
1197                        role="${j(this.subnavSlot.isFilled()?"tabpanel":void 0)}"
1198                    >
1199                        <main>${this.bodySlot}</main>
1200                        <aside>${this.secondaryContentSlot}</aside>
1201                    </div>
1202
1203                    <div class="${this.classes.feedback}">${this.feedbackSlot}</div>
1204                </div>
1205                ${this.detailPanelSlot}
1206            `}};Um([Ht()],_b.prototype,"pageWidth",2),Um([gt(),zt({type:Boolean})],_b.prototype,"loading",2),Um([gt(),zt({type:Boolean})],_b.prototype,"busy",2),Um([gt(),zt({type:rb})],_b.prototype,"span",2),Um([Ht(),ri("header",{selectSingleType:"custom-page-header",required:!0,strict:!0})],_b.prototype,"headerSlot",2),Um([Ht(),ri("message",{selectAllTypes:Su.config.type})],_b.prototype,"messageSlot",2),Um([Ht(),ri("body",{selectAllTypes:vb.config.type})],_b.prototype,"bodySlot",2),Um([Ht(),ri("secondary-content",{selectSingleType:"custom-page-secondary-content"})],_b.prototype,"secondaryContentSlot",2),Um([Ht(),ri("subnav",{selectSingleType:"custom-page-subnav"})],_b.prototype,"subnavSlot",2),Um([ri("detail-panel",{selectSingleType:Al.config.type})],_b.prototype,"detailPanelSlot",2),Um([ri("feedback")],_b.prototype,"feedbackSlot",2),Um([ft({bubbles:!0})],_b.prototype,"_pageConnect",2),Um([ft({bubbles:!0})],_b.prototype,"_pageDisconnect",2),_b=Um([_t({tag:"acorn-custom-page"})],_b);var fb=Object.defineProperty,xb=Object.getOwnPropertyDescriptor,wb=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?xb(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&fb(t,i,r),r},Cb=(e=>(e.Less="less",e.More="more",e))(Cb||{}),Sb=Ve.createTranslation({ShowMore:{sv:"Visa fler",en:"Show more"},ShowLess:{sv:"Visa färre",en:"Show less"}}),$b={$host:{display:"block"},wrapper:{display:e=>e.hasMore||e.hasLess?"flex":"none",justifyContent:"center",margin:"16px 0",textAlign:"center"},button:{display:"flex",flexDirection:"row",gap:"4px",alignItems:"center",backgroundColor:"transparent",transition:"background-color 0.15s ease",border:"0 solid transparent",borderRadius:"20px",...Qi(),cursor:"pointer",padding:"8px","&:hover":{background:zi.Overlay.hover},"&:active":{background:zi.Overlay.pressed}},label:{fontFamily:Cn.Base,fontSize:kn(14),lineHeight:Sn.Narrow,display:"inline",color:zi.Text.interactive,verticalAlign:"middle",padding:"0 4px",fontWeight:"600"}},kb=class extends Ti{constructor(){super(...arguments),this.hasMore=!1,this.hasLess=!0,this.controls=void 0,this.showMoreLabel=Sb.ShowMore,this.showLessLabel=Sb.ShowLess,this.multiStep=!1,this.hiddenItems=void 0}render(){let e=this.hasMore?this.showMoreLabel:this.showLessLabel;this.hasMore&&this.hiddenItems&&(e=`${e} (${this.hiddenItems})`);const t=this.hasMore?Zo.ChevronDown:Zo.ChevronUp;return $`
1207            <div class="${this.classes.wrapper}">
1208                <button
1209                    class="${this.classes.button}"
1210                    type="button"
1211                    @click="${this._onToggle}"
1212                    aria-controls="${this.controls}"
1213                    aria-expanded="${this.hasMore?"false":"true"}"
1214                >
1215                    <acorn-internal-icon
1216                        icon="${t}"
1217                        size="${Jo.Regular}"
1218                        color="${zi.Icon.interactive}"
1219                    >
1220                    </acorn-internal-icon>
1221                    <span class="${this.classes.label}">${e}</span>
1222                </button>
1223            </div>
1224        `}getStyle(){return $b}_onToggle(){let e;this.hasMore?this._more.emit():this._less.emit(),e=this.multiStep?this.hasMore?"more":"less":"toggle",this.dispatchEvent(new CustomEvent("change",{detail:{$event:e}}))}};wb([gt(),zt({type:Boolean})],kb.prototype,"hasMore",2),wb([gt(),zt({type:Boolean})],kb.prototype,"hasLess",2),wb([gt()],kb.prototype,"controls",2),wb([gt()],kb.prototype,"showMoreLabel",2),wb([gt()],kb.prototype,"showLessLabel",2),wb([gt(),zt({type:Boolean})],kb.prototype,"multiStep",2),wb([gt(),zt({type:Number})],kb.prototype,"hiddenItems",2),wb([ft({name:"more"})],kb.prototype,"_more",2),wb([ft({name:"less"})],kb.prototype,"_less",2),wb([Pe()],kb.prototype,"_onToggle",1),kb=wb([_t({tag:"acorn-show-more-button"})],kb);var Eb=(e=>(e.Less="less",e.More="more",e))(Eb||{}),Tb=Object.defineProperty,Ib=Object.getOwnPropertyDescriptor,Ob=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Ib(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Tb(t,i,r),r},Db=Ve.createTranslation({ShowMore:{sv:"Visa fler",en:"Show more"},ShowLess:{sv:"Visa färre",en:"Show less"}}),Rb={$host:{outline:"0 !important",display:"block",marginBottom:Fn(Dn.Large)},area:{visibility:e=>e.open||e.openClose.isTransitioning?"visible":"hidden",height:e=>e.open?"auto":"0",overflow:"hidden"}},Fb=class extends Ti{constructor(){super(...arguments),this.open=!1,this.showMoreLabel=Db.ShowMore,this.showLessLabel=Db.ShowLess,this._expandableAreaId="show-more-container-expandable-area"}get _expandableArea(){return this.shadowRoot.querySelector(`#${this._expandableAreaId}`)}render(){return $`
1225            <acorn-internal-enclosed-margins
1226                class="${this.classes.area}"
1227                id="${this._expandableAreaId}"
1228                aria-hidden="${!this.open}"
1229                tabindex="-1"
1230            >
1231                <slot></slot>
1232            </acorn-internal-enclosed-margins>
1233            <acorn-show-more-button
1234                aria-controls="${this._expandableAreaId}"
1235                ?has-more="${!this.open}"
1236                show-more-label="${this.showMoreLabel}"
1237                show-less-label="${this.showLessLabel}"
1238                @more="${this._delegateShowMoreButtonEvent}"
1239                @less="${this._delegateShowMoreButtonEvent}"
1240            >
1241            </acorn-show-more-button>
1242        `}getStyle(){return Rb}onOpen(e){this.rendered?this.openClose.transitionTo(e?"end":"start"):this.openClose.goTo(e?"end":"start")}collapseExpandFrame(e){var t;switch(e.transitionState){case li.Start:(this.open?this._open:this._close).emit();break;case li.End:const i=(this.open?this._openComplete:this._closeComplete).emit();if(!this._expandableArea)return;if(this._expandableArea.style.height=this.open?"auto":"0px",i.defaultPrevented)return;this.open&&(null==(t=this._expandableArea)||t.focus());break;case li.Transitioning:this._expandableArea&&(this._expandableArea.style.height=this._expandableArea.scrollHeight*e.value+"px")}}_delegateShowMoreButtonEvent(e){this.open=e.type===Eb.More}};Ob([gt(),zt({type:Boolean})],Fb.prototype,"open",2),Ob([gt()],Fb.prototype,"showMoreLabel",2),Ob([gt()],Fb.prototype,"showLessLabel",2),Ob([hi({duration:"0.35s",ease:"easeInOut"})],Fb.prototype,"openClose",2),Ob([ft()],Fb.prototype,"_open",2),Ob([ft()],Fb.prototype,"_close",2),Ob([ft({cancelable:!0})],Fb.prototype,"_openComplete",2),Ob([ft()],Fb.prototype,"_closeComplete",2),Ob([wi("open",{triggerOn:pi.ChangeAndConnect})],Fb.prototype,"onOpen",1),Ob([Wt("openClose")],Fb.prototype,"collapseExpandFrame",1),Ob([Pe()],Fb.prototype,"_delegateShowMoreButtonEvent",1),Fb=Ob([_t({tag:"acorn-show-more-container"})],Fb);var Lb=Object.defineProperty,Ab=Object.getOwnPropertyDescriptor,Mb=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Ab(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Lb(t,i,r),r},Bb=Ve.createTranslation({ChangeLanguage:{sv:"Byt språk",en:"Change language"},SelectedLanguage:{sv:"Valt språk är {0}",en:"Current language is {0}"}}),Pb={$host:{display:"inline-block",margin:"0",outline:"0 !important"},toggle:{pointerEvents:e=>e._displayOverlay?"none":"auto"},scrollPane:{minWidth:"100%"},optionList:{minWidth:"100%",padding:"8px 0",listStyle:"none",margin:"0"},option:{...Nn(),...Qi(),outlineOffset:"-2px !important",boxSizing:"border-box",gridTemplateColumns:"24px auto",gap:"12px",alignItems:"center",padding:"0 24px",height:"48px",cursor:"pointer","&:hover":{backgroundColor:zi.Overlay.hover},width:"max-content",maxWidth:"100%",minWidth:"100%",display:"flex"},optionIcon:{justifySelf:"center"},optionText:{whiteSpace:"nowrap",gridColumnStart:2,minWidth:0},optionLabel:{overflow:"hidden",textOverflow:"ellipsis"}},Nb="toggle-button",Hb=window.matchMedia("(max-width: 500px)"),zb=window.matchMedia(`(min-width: ${gn.Medium})`),Wb=class extends Ti{constructor(){super(),this.overlayMinWidth=200,this.overlayDirection=Pl.Down,this.overlayAlignment=Nl.Right,this.overlayPositionStrategy=Ml.Auto,this._displayOverlay=!1,this._defaultOptions=[{label:"Svenska",value:"sv",selected:"sv"===Ve.languageCode},{label:"English",value:"en",selected:"en"===Ve.languageCode}]}get selectedLanguage(){return this._selectedLanguageOption.value}get _toggleButton(){return this.shadowRoot.getElementById(Nb)}get _selectedLanguageOption(){const e=this._languageOptions;return e.find(e=>e.selected)||e[0]}get _languageOptions(){var e;return(null==(e=this._optionSlot)?void 0:e.isFilled())?this._optionSlot.content:this._defaultOptions}
1242get _isNarrowScreenMode(){return Hb.matches||this.overlayPositionStrategy===Ml.Cover}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),Hb.addEventListener("change",this._onScreenSizeChange),zb.addEventListener("change",this._onScreenSizeChange),this.addEventListener("optionDataChange",this._onOptionDataChange)}disconnectedCallback(){Hb.removeEventListener("change",this._onScreenSizeChange),zb.addEventListener("change",this._onScreenSizeChange),this.removeEventListener("optionDataChange",this._onOptionDataChange)}getStyle(){return Pb}render(){const e=this._selectedLanguageOption&&zb.matches?this._selectedLanguageOption.label:"",t="flag-"+(this._selectedLanguageOption?this._selectedLanguageOption.value:""),i=this._generateAccessibilityLabel();return $`
1243            <acorn-internal-icon-button
1244                id="${Nb}"
1245                class="${this.classes.toggle}"
1246                @click="${this._onToggleClick}"
1247                @keydown="${this._onToggleKeyboardEvent}"
1248                label="${j(e)}"
1249                icon="${j(t)}"
1250                accessibility-label="${i}"
1251                accessibility-has-popup="listbox"
1252                accessibility-expanded="${this._displayOverlay?"true":"false"}"
1253            >
1254            </acorn-internal-icon-button>
1255            ${this._isNarrowScreenMode?this._renderBottomSheet():this._renderPopover()}
1256        `}_renderPopover(){return $`
1257            <acorn-internal-popover
1258                .open="${this._displayOverlay}"
1259                .label="${Bb.ChangeLanguage}"
1260                id="${"overlay"}"
1261                direction="${this.overlayDirection}"
1262                position-strategy="${this.overlayPositionStrategy}"
1263                alignment="${this.overlayAlignment}"
1264                max-height="${j(this.overlayMaxHeight)}"
1265                max-width="${j(this.overlayMaxWidth)}"
1266                min-width="${j(this.overlayMinWidth)}"
1267                @requestReposition="${this._onOverlayReposition}"
1268                @close="${this._onOverlayClose}"
1269                @openComplete="${this._onOverlayOpenComplete}"
1270            >
1271                <acorn-internal-scroll-pane class="${this.classes.scrollPane}">
1272                    ${this._renderOptions()}
1273                </acorn-internal-scroll-pane>
1274            </acorn-internal-popover>
1275        `}_renderBottomSheet(){return $`
1276            <acorn-internal-bottom-sheet
1277                .open="${this._displayOverlay}"
1278                .label="${Bb.ChangeLanguage}"
1279                @close="${this._onOverlayClose}"
1280            >
1281                ${this._renderOptions()}
1282            </acorn-internal-bottom-sheet>
1283        `}_renderOptions(){const e=this._isNarrowScreenMode?"0":void 0;return $`
1284            <ul
1285                tabindex="${j(e)}"
1286                class="${this.classes.optionList}"
1287                role="listbox"
1288                @keydown="${this._onLanguageListKeyboardEvent}"
1289                @click="${this._onLanguageOptionClick}"
1290            >
1291                ${this._languageOptions.map(e=>$`
1292                        <li
1293                            tabindex="-1"
1294                            class="${this.classes.option}"
1295                            role="option"
1296                            aria-selected="${e.selected}"
1297                        >
1298                            <acorn-internal-icon
1299                                class="${this.classes.optionIcon}"
1300                                icon="flag-${e.value}"
1301                                size="${Jo.Regular}"
1302                            >
1303                            </acorn-internal-icon>
1304                            <div class="${this.classes.optionText}">
1305                                <div class="${this.classes.optionLabel}">${e.label}</div>
1306                            </div>
1307                        </li>
1308                    `)}
1309            </ul>
1310        `}_onOverlayReposition(e){const t=e.target,i=this._toggleButton.getBoundingClientRect();t.setFocalRect(i)}_onOverlayClose(){this._displayOverlay=!1}_onOverlayOpenComplete(){this._focusSelected()}_onToggleClick(){this._displayOverlay=!0}_onToggleKeyboardEvent(e){e.key!==ye.ArrowDown&&e.key!==ye.ArrowUp||(this._displayOverlay=!0)}_onLanguageListKeyboardEvent(e){switch(e.key){case ye.ArrowUp:this._focusPrevious();break;case ye.ArrowDown:this._focusNext();break;case ye.Enter:case ye.Space:const e=this._languageOptions[this._activeIndex()];this._selectLanguage(e);break;default:return}e.preventDefault()}_onOptionDataChange(e){const t=e.target;"selected"===e.detail.property&&t.selected&&this._updateSelectedStateOnOptions(t.value),this.invalidate()}_onLanguageOptionClick(){const e=this._languageOptions[this._activeIndex()];this._selectLanguage(e)}_onScreenSizeChange(){this.invalidate()}_selectLanguage(e){if(!e)return;const t={value:e.value},i=this._select.emit(t);i.defaultPrevented||i.defaultPrevented||(this._updateSelectedStateOnOptions(e.value),this._displayOverlay=!1)}_updateSelectedStateOnOptions(e){this._languageOptions.forEach(t=>{t.selected=e===t.value})}_focusSelected(){const e=this._languageOptions.findIndex(e=>e.selected);this._focusOptionAtIndex(Math.max(0,e))}_focusNext(){this._focusOptionAtIndex(this._activeIndex()+1)}_focusPrevious(){this._focusOptionAtIndex(this._activeIndex()-1)}_focusOptionAtIndex(e){const t=this._options();if(!t.length||isNaN(e))return;let i=e;e>
1310=t.length?i=0:e<0&&(i=t.length-1),t[i].focus()}_activeIndex(){return this._options().indexOf(this.shadowRoot.activeElement)}_options(){return[...this.shadowRoot.querySelectorAll("li")]}_generateAccessibilityLabel(){const e=this._selectedLanguageOption&&this._selectedLanguageOption.label?Ve.translate(Bb.SelectedLanguage,this._selectedLanguageOption.label):"";return Bb.ChangeLanguage+(e?", "+e:"")}};Mb([gt(),zt({type:Number})],Wb.prototype,"overlayMaxHeight",2),Mb([gt(),zt({type:Number})],Wb.prototype,"overlayMaxWidth",2),Mb([gt(),zt({type:Number})],Wb.prototype,"overlayMinWidth",2),Mb([gt(),zt({type:Pl})],Wb.prototype,"overlayDirection",2),Mb([gt(),zt({type:Nl})],Wb.prototype,"overlayAlignment",2),Mb([gt(),zt({type:Ml})],Wb.prototype,"overlayPositionStrategy",2),Mb([Ht()],Wb.prototype,"_displayOverlay",2),Mb([Ht(),ri("option",{selectAllTypes:"language-picker-option"})],Wb.prototype,"_optionSlot",2),Mb([ft({cancelable:!0})],Wb.prototype,"_select",2),Mb([Pe()],Wb.prototype,"_onOverlayReposition",1),Mb([Pe()],Wb.prototype,"_onOverlayClose",1),Mb([Pe()],Wb.prototype,"_onOverlayOpenComplete",1),Mb([Pe()],Wb.prototype,"_onToggleClick",1),Mb([Pe()],Wb.prototype,"_onToggleKeyboardEvent",1),Mb([Pe()],Wb.prototype,"_onLanguageListKeyboardEvent",1),Mb([Pe()],Wb.prototype,"_onOptionDataChange",1),Mb([Pe()],Wb.prototype,"_onLanguageOptionClick",1),Mb([Pe()],Wb.prototype,"_onScreenSizeChange",1),Wb=Mb([_t({tag:"acorn-language-picker",delegatesFocus:!0})],Wb);var Vb=class extends Ti{constructor(){super(...arguments),this.selected=!1}onDataChange(e,t,i,n){this._optionDataChange.emit({property:n,value:e,previousValue:t})}onSelectedChange(){this.selected&&this._optionSelectedChange.emit({value:this.value})}};Mb([gt()],Vb.prototype,"value",2),Mb([gt(),zt({type:Boolean})],Vb.prototype,"selected",2),Mb([gt()],Vb.prototype,"label",2),Mb([ft({bubbles:!0})],Vb.prototype,"_optionDataChange",2),Mb([ft({bubbles:!0})],Vb.prototype,"_optionSelectedChange",2),Mb([wi("value"),wi("label"),wi("selected")],Vb.prototype,"onDataChange",1),Mb([wi("selected")],Vb.prototype,"onSelectedChange",1),Vb=Mb([_t({tag:"acorn-language-picker-option"})],Vb);var jb=Object.defineProperty,Gb=Object.getOwnPropertyDescriptor,qb=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Gb(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&jb(t,i,r),r},Ub=Ve.createTranslation({LoadingMessage:{sv:"Laddar",en:"Loading"}}),Kb={$host:{display:"grid",gridTemplateColumns:"minmax(100%, 1fr)"},loaderContainer:{visibility:e=>e.busy?"hidden":"visible",gridArea:"1 / 1"},loader:{display:e=>e.busy?void 0:"none",gridArea:"1 / 1",alignContent:"center"}},Yb=class extends Ti{constructor(){super(...arguments),this.busy=!1,this.accessibilityLoadingMessage=Ub.LoadingMessage}onBusyChange(){this.setAttribute("aria-busy",this.busy.toString())}getStyle(){return Kb}render(){return $`
1311            <div class="${this.classes.loaderContainer}"><slot></slot></div>
1312            <acorn-loader
1313                class="${this.classes.loader}"
1314                message="${j(this.message)}"
1315                accessibility-loading-message="${this._getAccessibilityMessage()}"
1316            ></acorn-loader>
1317        `}_hasUniqueAccessibilityMessage(){if(!this.message)return!0;const e=this.message!==this.accessibilityLoadingMessage,t=this.accessibilityLoadingMessage!==Ub.LoadingMessage;return e&&t}_getAccessibilityMessage(){return this._hasUniqueAccessibilityMessage()?this.accessibilityLoadingMessage:""}};qb([gt(),zt({type:Boolean})],Yb.prototype,"busy",2),qb([gt()],Yb.prototype,"accessibilityLoadingMessage",2),qb([gt()],Yb.prototype,"message",2),qb([wi("busy")],Yb.prototype,"onBusyChange",1),Yb=qb([_t({tag:"acorn-loader-container"})],Yb);var Xb=(e=>(e.Dark="dark",e.Teal="teal",e.Light="light",e))(Xb||{}),Qb=(e=>(e.Color="--acorn-loader-color",e.Size="--acorn-loader-size",e))(Qb||{}),Zb=Object.defineProperty,Jb=Object.getOwnPropertyDescriptor,ev=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Jb(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Zb(t,i,r),r},tv=Ve.createTranslation({ScreenReaderFallbackMessage:{sv:"Sidan är för närvarande upptagen. Vänligen vänta.",en:"The page is currently busy. Please wait."}}),iv={$host:{outline:"none !important"},dialog:{"&::backdrop":{backgroundColor:e=>e.isShown?zi.ComponentSpecific.BusyCloak.scrim:"transparent"},...Qi(),boxSizing:"border-box",width:"100vw",height:"100vh",padding:"0",top:"0",left:"0",right:"0",bottom:"0",maxWidth:e=>e.isActive?"calc(100vw - 8px)":"100vw",maxHeight:e=>e.isActive?"calc(100vh - 8px)":"100vh",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",border:"none",background:"transparent",color:zi.Text.whiteStatic},loader:{display:e=>e.isShown?"block":"none",[Qb.Color]:zi.Icon.whiteStatic}},nv=class extends Ti{constructor(){super(...arguments),this.instant=!1}static _setShownBusyCloak(e=null){this._shownBusyCloak!==e&&(this._shownBusyCloak=e,this._invalidateAll())}
1317static _invalidateAll(){this._busyCloakElements.forEach(e=>{e.invalidate()})}static _lastRegisteredBusyCloak(){return[...this._busyCloakElements.values()].pop()}get isShown(){return!(!this.isConnected||nv._shownBusyCloak!==this)}get isActive(){return this.isShown||this===nv._lastRegisteredBusyCloak()}get _screenReaderMessage(){return this.message||tv.ScreenReaderFallbackMessage}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),nv._busyCloakElements.add(this),(this.instant||nv._shownBusyCloak)&&nv._setShownBusyCloak(this),nv._invalidateAll()}remove(){this._hideDialog(),super.remove()}disconnectedCallback(){Ii.clean(),nv._busyCloakElements.delete(this),this===nv._shownBusyCloak&&nv._setShownBusyCloak(nv._lastRegisteredBusyCloak()),nv._invalidateAll()}getStyle(){return iv}render(){return $`
1318            <dialog
1319                class="${this.classes.dialog}"
1320                @keydown="${this._onKeyboardInteraction}"
1321                @pointerdown="${this._onPointerInteraction}"
1322            >
1323                <acorn-loader
1324                    class="${this.classes.loader}"
1325                    message="${j(this.message)}"
1326                    accessibility-loading-message="${this._screenReaderMessage}"
1327                ></acorn-loader>
1328            </dialog>
1329        `}afterRender(){const e=this._dialogElement();this.isConnected&&!e.open&&this._showDialog()}_showDialog(){const e=this._dialogElement();e&&!e.open&&(Ii.append(e),e.showModal(),this.shadowRoot.activeElement!==e&&(e.setAttribute("tabindex","-1"),e.focus()))}_hideDialog(){const e=this._dialogElement();e&&e.open&&(Ii.remove(e),e.close())}_dialogElement(){return this.shadowRoot.querySelector("dialog")}_onKeyboardInteraction(e){"Escape"===e.key&&e.preventDefault(),this.isShown||nv._setShownBusyCloak(nv._lastRegisteredBusyCloak())}_onPointerInteraction(){this.isShown||nv._setShownBusyCloak(nv._lastRegisteredBusyCloak())}};nv._busyCloakElements=new Set,nv._shownBusyCloak=null,ev([gt()],nv.prototype,"message",2),ev([gt(),zt({type:Boolean})],nv.prototype,"instant",2),ev([Pe()],nv.prototype,"_onKeyboardInteraction",1),ev([Pe()],nv.prototype,"_onPointerInteraction",1),nv=ev([_t({tag:"acorn-busy-cloak"})],nv);var ov=Object.defineProperty,rv=Object.getOwnPropertyDescriptor,av=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?rv(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&ov(t,i,r),r},sv=(e=>(e.Top="top",e.Bottom="bottom",e))(sv||{}),lv=Ve.createTranslation({Next:{sv:"Nästa",en:"Next"},Prev:{sv:"Föregående",en:"Previous"},Slide:{sv:"Sida",en:"Slide"}}),cv={$host:{display:"block",outline:"none !important",...Ln(Dn.Large)},navigation:{display:"flex",alignItems:"center",justifyContent:"space-between",borderTop:`1px solid ${zi.Line.Regular.low}`,borderBottom:`1px solid ${zi.Line.Regular.low}`,padding:`0 ${vn.Medium}`},heading:{...Co(),...Qi(),margin:"17px 0",color:zi.Text.Regular.high},content:{margin:`${vn.Medium} 0`},pagination:{textAlign:"center",margin:`${vn.Medium} 0`,display:"flex",justifyContent:"center"},bullet:{...Qi(),cursor:"pointer",padding:0,margin:"0 4px",borderRadius:"50%",border:`1px solid ${zi.Line.Regular.medium}`,backgroundColor:"transparent",width:"8px",height:"8px",'&[data-selected="true"]':{background:zi.Surface.HighContrast.high}}},dv=class extends Ti{render(){return $`<slot></slot>`}onChange(){this.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1,composed:!1}))}};av([gt()],dv.prototype,"heading",2),av([wi("heading")],dv.prototype,"onChange",1),dv=av([_t({tag:"acorn-carousel-slide"})],dv);var hv=class extends Ti{constructor(){super(...arguments),this.start=0,this.headingLevel=3,this._activeIndex=0}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this._activeIndex=this.start,this.addEventListener("change",this._onSlideChange)}disconnectedCallback(){this.removeEventListener("change",this._onSlideChange)}beforeRender(){var e;if(null==(e=this._slides)?void 0:e.isFilled())for(let e=0;e<this._slides.content.length;e++){const t=this._slides.content[e];t._index=e,t.style.display=this._activeIndex===t._index?"block":"none"}}afterRender(){this._updateHeadingText()}render(){var e;const t=$`
1330            <div role="tablist" class="${this.classes.pagination}">
1331                ${null==(e=this._slides)?void 0:e.content.map((e,t)=>$`
1332                        <button
1333                            role="tab"
1334                            @click="${this._goToSlide}"
1335                            data-index="${t}"
1336                            data-selected="${t===this._activeIndex}"
1337                            class="${this.classes.bullet}"
1338                            aria-selected="${this._activeIndex===t}"
1339                            aria-controls="${`slide@${t}`}"
1340                            aria-label="${`${lv.Slide} ${t+1}`}"
1341                        ></button>
1342                    `)}
1343            </div>
1344        `;return $`
1345            <div>
1346                <div class="${this.classes.navigation}">
1347                    <acorn-icon-button
1348                        @click="${this._prevSlide}"
1349                        icon="${Zo.ChevronLeft}"
1350                        accessibility-label="${lv.Prev}"
1351                    ></acorn-icon-button>
1352                    ${this._renderHeading()}
1353                    <acorn-icon-button
1354                        @click="${this._nextSlide}"
1355                        icon="${Zo.ChevronRight}"
1356                        accessibility-label="${lv.Next}"
1357                    ></acorn-icon-button>
1358                </div>
1359                ${"top"===this.pagination?t:null}
1360                <div
1361                    class="${this.classes.content}"
1362                    role="tabpanel"
1363                    aria-expanded="true"
1364                    id="${`slide@${this._activeIndex}`}"
1365                >
1366                    ${this._slides}
1367                </div>
1368                ${"bottom"===this.pagination?t:null}
1369            </div>
1370        `}getStyle(){return cv}_onSlideChange(){this.invalidate()}_goToSlide(e){this._activeIndex=parseInt(e.target.dataset.index||"0")}_nextSlide(){var e;(null==(e=this._slides)?void 0:e.isFilled())&&this._activeIndex!==this._slides.content.length-1?this._activeIndex++:this._activeIndex=0}_prevSlide(){var e;(null==(e=this._slides)?void 0:e.isFilled())?0!==this._activeIndex?this._activeIndex--:this._activeIndex=this._slides.content.length-1:this._activeIndex=0}_updateHeadingText(){var e;this.shadowRoot.querySelector(`h${this.headingLevel}.${this.classes.heading}`).innerText=(null==(e=this._slides)?void 0:e.content[this._activeIndex].heading)||""}_renderHeading(){switch(this.headingLevel){case 3:return $`<h3 class="${this.classes.heading}
1370" aria-live="polite"></h3>`;case 4:return $`<h4 class="${this.classes.heading}" aria-live="polite"></h4>`;case 5:return $`<h5 class="${this.classes.heading}" aria-live="polite"></h5>`;case 6:return $`<h6 class="${this.classes.heading}" aria-live="polite"></h6>`;default:return}}};av([gt(),zt({type:Ge})],hv.prototype,"start",2),av([gt(),zt({type:sv})],hv.prototype,"pagination",2),av([gt(),zt({type:Number})],hv.prototype,"headingLevel",2),av([Ht()],hv.prototype,"_activeIndex",2),av([Ht(),ri("carousel-slide",{selectAllTypes:dv.config.type,required:!0,strict:!0})],hv.prototype,"_slides",2),av([Pe()],hv.prototype,"_goToSlide",1),av([Pe()],hv.prototype,"_nextSlide",1),av([Pe()],hv.prototype,"_prevSlide",1),av([Pe()],hv.prototype,"_updateHeadingText",1),hv=av([_t({tag:"acorn-carousel"})],hv);var pv=Object.defineProperty,uv=Object.getOwnPropertyDescriptor,gv=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?uv(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&pv(t,i,r),r},mv=(e=>(e.HitAreaOpacity="--acorn-internal-checkbox-hit-area-opacity",e))(mv||{}),bv=18,{disabled:vv,regular:yv}=zi.Icon;var _v={$host:{display:"inline-flex",position:"relative",width:"18px",height:"18px"},checkbox:{position:"relative",width:"inherit",height:"inherit",borderWidth:"2px",borderStyle:"solid",borderRadius:"2px",boxSizing:"border-box",borderColor:function(e){return e.disabled?e.checked||e.indeterminate?"transparent":vv:yv},backgroundColor:function(e){return e.checked||e.indeterminate?e.disabled?vv:yv:"transparent"}},checkIcon:{display:e=>e.checked||e.indeterminate?"block":"none",position:"absolute",top:"-1px",left:"-1px"},hitArea:{opacity:ai.isRunningTests?0:"var(--acorn-internal-checkbox-hit-area-opacity, 0)",borderRadius:"16px",backgroundColor:zi.Overlay.hover,position:"absolute",display:e=>e.disabled?"none":"block",top:"-7px",left:"-7px",width:"32px",height:"32px",cursor:e=>e.disabled?void 0:"pointer"},spinner:{...yo(32,zi.Icon.interactive),margin:"auto"}},fv=class extends Ti{getStyle(){return _v}render(){return this.busy?$`<div class="${this.classes.spinner}"></div>`:$` <div class="${this.classes.checkbox}">
1371                <acorn-internal-icon
1372                    class="${this.classes.checkIcon}"
1373                    size="${Jo.XSmall}"
1374                    icon="${this.indeterminate&&!this.checked?Zo.Minus:Zo.CheckV2}"
1375                    color="${zi.Text.white}"
1376                ></acorn-internal-icon>
1377            </div>
1378            <span class="${this.classes.hitArea}"></span>`}};gv([Ht()],fv.prototype,"checked",2),gv([Ht()],fv.prototype,"disabled",2),gv([Ht()],fv.prototype,"busy",2),gv([Ht()],fv.prototype,"indeterminate",2),fv=gv([_t({tag:"acorn-internal-checkbox-graphic"})],fv);var xv=Object.defineProperty,wv=Object.getOwnPropertyDescriptor,Cv=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?wv(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&xv(t,i,r),r},Sv={$host:{display:"block"},inputWrapper:{position:"relative",minWidth:"18px",minHeight:"18px",cursor:"pointer",display:"flex",flexDirection:"row",alignItems:"center",alignContent:"center",justifyContent:"flex-start",gap:"8px"},checkboxInput:{position:"absolute",width:"18px",height:"18px",appearance:"none",margin:"0.15em 0.15em 0 0",...Qi()},checkboxIcon:{display:"flex",position:"relative",marginRight:"0.15em",...Qi(),[mv.HitAreaOpacity]:e=>e._hitAreaOpacity,"&:hover":{[mv.HitAreaOpacity]:1}},labelWrapper:{marginBottom:"0",display:"inline-flex",gap:"4px"},label:{...Wn(),display:e=>e.hideLabel||!e.label?"none":"inline-block",cursor:e=>e.disabled?void 0:"pointer",color:e=>e.disabled?zi.Text.disabled:zi.Text.Regular.high,verticalAlign:"baseline",outline:"none"}},$v="checkboxElement",kv="errorAndHintWrapper",Ev=class extends Ps{constructor(){super(),this.label="",this.autofocus=!1,this.readOnly=!1,this.indeterminate=!1,this.checked=!1,this._hitAreaOpacity=0,this.value="on",this._onIconClick=this._onIconClick.bind(this),this._onLabelClick=this._onLabelClick.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onInputClick=this._onInputClick.bind(this)}get modelElementType(){return"checkbox"}get _checkbox(){return this.shadowRoot.getElementById($v)}getStyle(){return ge({},super.getStyle(),Sv)}render(){return $`
1379            <div class="${this.classes.formFieldWrapper}">
1380                <div class="${this.classes.inputWrapper}">
1381                    <input
1382                        @input="${this._onInput}"
1383                        @change="${this._onChange}"
1384                        @click="${this._onInputClick}"
1385                        @invalid="${this.preventBrowserSpecificValidationErrorToBeShown}"
1386                        class="${this.classes.checkboxInput}"
1387                        id="${$v}"
1388                        type="checkbox"
1389                        ?autofocus="${this.autofocus}"
1390                        ?disabled="${this.disabled}"
1391                        ?required="${this.required}"
1392                        .checked="${this.checked}"
1393                        aria-invalid="${this.shouldShowInvalidState()}"
1394                        aria-label="${j(this.ariaLabel||this.label)}"
1395                        aria-checked="${j(this.indeterminate?"mixed":void 0)}"
1396                        aria-describedby="${kv}"
1397                        .value="${this.value}"
1398                    />
1399                    <acorn-internal-checkbox-graphic
1400                        data-test-id="checkbox-icon"
1401                        class="${this.classes.checkboxIcon}"
1402                        aria-hidden="true"
1403                        .checked="${this.checked}"
1404                        .disabled="${this.disabled}"
1405                        .indeterminate="${this.indeterminate}"
1406                        @click="${this._onIconClick}"
1407                    ></acorn-internal-checkbox-graphic>
1408
1409                    ${this.labelTemplate($`
1410                            <label
1411                                class="${this.classes.label}"
1412                                @click="${this._onLabelClick}"
1413                                @mouseenter="${this._onLabelHover}"
1414                                @mouseleave="${this._onLabelHover}"
1415                                for="${$v}"
1416                                tabindex="-1"
1417                                aria-hidden="true"
1418                            >
1419                                ${this.label}
1420                            </label>
1421                        `,$v)}
1422                </div>
1423                <div id="${kv}">${this.hintTemplate()} ${this.errorTemplate()}</div>
1424            </div>
1425        `}reset(){super.reset(),this.checked=this.hasAttribute("checked")}afterRender(){this.updateValidity()}updateValidity(){const e=this._checkbox?this._checkbox.validity:{};super.updateValidity(e)}getFocusElement(){return this._checkbox}onCheckedChange(){this.updateValidity()}_onLabelClick(e){e.stopPropagation()}_onLabelHover(e){this._hitAreaOpacity="mouseenter"===e.type?1:0}_onInput(e){e.stopPropagation(),this.redispatchEvent(e)}_onChange(e){this.hasAttribute("indeterminate")&&this.removeAttribute("indeterminate"),this.checked=this._checkbox.checked,this.redispatchEvent(e)}_onInputClick(e){this.checked=this._checkbox.checked,e.stopPropagation();this._click.emit().defaultPrevented&&(e.preventDefault(),this._checkbox.checked=!this._checkbox.checked,this.checked=this._checkbox.checked)}_onIconClick(e){e.stopPropagation(),this._checkbox.click()}};Cv([gt({reflect:!0})],Ev.prototype,"label",2),Cv([gt({reflect:!0}),zt({type:Boolean})],Ev.prototype,"autofocus",2),Cv([gt({name:"readonly",reflect:!0}),zt({type:Boolean})],Ev.prototype,"readOnly",2),Cv([gt({reflect:!0}),zt({type:Boolean})],Ev.prototype,"indeterminate",2),Cv([gt({reflect:!1}),zt({type:Boolean})],Ev.prototype,"checked",2),Cv([Ht({invalidateStyle:!0})],Ev.prototype,"_hitAreaOpacity",2),Cv([ft({cancelable:!0,bubbles:!0})],Ev.prototype,"_click",2),Cv([wi("checked")],Ev.prototype,"onCheckedChange",1),Cv([Pe()],Ev.prototype,"_onLabelHover",1),Ev=Cv([_t({tag:"acorn-checkbox"})],Ev);var Tv=Object.defineProperty,Iv=Object.getOwnPropertyDescriptor,Ov=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Iv(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Tv(t,i,r),r},Dv=(e=>(e.Horizontal="horizontal",e.Vertical="vertical",e))(Dv||{}),Rv=Ve.createTranslation({ValidationErrorValueMissing:{sv:"Välj minst ett alternativ.",en:"Select at least one option."}}),Fv={fieldset:{border:0,padding:"0.01em 0 0 0",margin:0,minWidth:0},options:{display:"flex",flexWrap:e=>"horizontal"===e.alignment?"wrap":"nowrap",flexDirection:e=>"horizontal"===e.alignment?"row":"column",gap:"8px",alignItems:"flex-start"},$$slotted:{"&(acorn-checkbox)":{margin:"4px 12px 2px 0",marginTop:e=>"horizontal"===e.alignment?"0":"4px"},"&(acorn-checkbox:first-of-type)":{marginTop:"11px"},"&(acorn-checkbox:last-of-type)":{marginBottom:"5px"}}},Lv="errorAndHintWrapper",Av=class extends zs{constructor(){super(),this.alignment="vertical",this.required=!1,this.readOnly=!1,this.hideLabel=!1,this._requiredError=!1,this._onFocusEvent=this._onFocusEvent.bind(this),this._onChangeEvent=this._onChangeEvent.bind(this),this.addEventListener("change",this._onChangeEvent,!0)}getStyle(){return ge({},super.getStyle(),Fv)}render(){return $`
1426            <fieldset
1427                class="${this.classes.fieldset}"
1428                aria-describedby="${Lv}"
1429                aria-labelledby="${Av.labelId}"
1430                aria-required="${j(this.required?"true":void 0)}"
1431            >
1432                ${this.legend(this.label)}
1433                <div class="${this.classes.options}" @focusin="${this._onFocusEvent}" @focusout="${this._onFocusEvent}">
1434                    ${this._defaultSlot}
1435                </div>
1436                <div id="${Lv}">${this.hintTemplate()} ${this.errorTemplate()}</div>
1437            </fieldset>
1438        `}
1438afterRender(){this.updateValidity()}updateValidity(){const e={},t=this._requiredError;this._requiredError=this.required&&0===this.elements.filter(e=>e.checked).length,this._requiredError?(e.valueMissing=!0,this.shouldShowInvalidState()&&this.elements.forEach(t=>{t.errorHandling=Ss.InvalidState,t.required=!0,t.error={...t.validity,...e},t.reportValidity()})):t&&!this._requiredError&&this.elements.forEach(e=>{e.required=!1,e.error={...e.validity,valueMissing:!1},e.errorHandling=Ss.None}),super.updateValidity(e)}getErrorMessage(e){return e===_s.ValueMissing&&this._requiredError?Rv.ValidationErrorValueMissing:super.getErrorMessage(e)}onDefaultSlotChange(){this._defaultSlot.content.filter(this._isCheckbox).forEach(e=>{e.errorHandling=Ss.InvalidState}),this.updateDisabledStateOnCheckboxes(),this.updateNameOnCheckboxes()}updateDisabledStateOnCheckboxes(){this.elements.forEach(e=>{e.disabled=this.disabled})}updateNameOnCheckboxes(){this.elements.forEach(e=>{e.name=this.name})}_onFocusEvent(){this.invalidateStyle()}_onChangeEvent(){this.updateValidity()}_isCheckbox(e){return Qt(e,Ev)}};Ov([gt({name:"align"}),gt(),zt({type:Dv})],Av.prototype,"alignment",2),Ov([gt(),zt({type:Boolean})],Av.prototype,"required",2),Ov([ri("default")],Av.prototype,"_defaultSlot",2),Ov([wi("_defaultSlot")],Av.prototype,"onDefaultSlotChange",1),Ov([wi("disabled")],Av.prototype,"updateDisabledStateOnCheckboxes",1),Ov([wi("name")],Av.prototype,"updateNameOnCheckboxes",1),Av=Ov([_t({tag:"acorn-checkbox-group"})],Av);var Mv=Object.defineProperty,Bv=Object.getOwnPropertyDescriptor,Pv=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Bv(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Mv(t,i,r),r},Nv=new Map,Hv=class e{constructor(e){this.members=[],this._onMemberChangeCallbacks=[],this.id=e,this.updateTabNavigation=this.updateTabNavigation.bind(this),this.onMemberChange(this.updateTabNavigation)}static create(e){if(!e)throw Error("You must provide an identifier when creating a group!");if(Nv.has(e))throw Error("There is already a group with the given identifier!");const t=new this(e);return Nv.set(e,t),t}static get(e){return Nv.get(e)}static remove(e){Nv.has(e)&&Nv.delete(e)}static exists(e){return Nv.has(e)}addMember(e,t){this._removeDisconnectedMembers();const i=this._getInsertionIndex(e);if(-1===i)return;const n={element:e,nativeElementGetter:t};i<this.members.length?this.members.splice(i,0,n):this.members.push(n),this.isSelected(e)&&this.unselectAllButOne(e),this._notifyMemberChange()}removeMember(e){this.hasMember(e)&&(this._removeMember(e),this._notifyMemberChange())}hasMember(e){return-1!==this.members.findIndex(this._isMemberElement(e))}hasMembers(){return this.members.length>0}memberCount(){return this.members.length}getMembers(){return this.members.map(({element:e})=>e)}getPrecedingMember(e){var t;const i=this.members.findIndex(this._isMemberElement(e));return-1===i?null:null==(t=this.members[i-1])?void 0:t.element}getSucceedingMember(e){var t;const i=this.members.findIndex(this._isMemberElement(e));if(-1!==i)return null==(t=this.members[i+1])?void 0:t.element}getFirstMember(){var e;return null==(e=this.members[0])?void 0:e.element}getLastMember(){var e;return null==(e=this.members[this.memberCount()-1])?void 0:e.element}getId(){return this.id}onMemberChange(e){return this._removeOnMemberChangeCallback(e),this._onMemberChangeCallbacks.push(e),()=>{this._removeOnMemberChangeCallback(e)}}selectMember(e){this.updateElementSelectState(e,!0),this.unselectAllButOne(e)}unselectMember(e){this.updateElementSelectState(e,!1)}unselectAllButOne(e){this.members.filter(({element:t})=>t!==e&&this.isSelected(t)).forEach(({element:e})=>this.unselectMember(e))}updateTabNavigation(){let e=this.members.find(({element:e})=>this.isSelected(e));e||(e=this.members.find(({element:e})=>this.hasFocus(e))),e&&!e.element.disabled?this._makeRadioTheOnlyTabbableElement(e):this._letBrowserDecideTabOrder()}updateElementSelectState(e,t){e.checked=t}isSelected(e){return e.checked}hasFocus(e){return e._hasFormControlFocusState()}
1438_isAfterElement(t,i){return!!(t.compareDocumentPosition(i)&e.nodeDocumentPositionPreceding)}_isBeforeElement(t,i){return!!(t.compareDocumentPosition(i)&e.nodeDocumentPositionFollowing)}_getInsertionIndex(e){if(this.hasMember(e)&&this._removeMember(e),!this.hasMembers())return 0;const t=this.getLastMember();if(t&&this._isAfterElement(e,t))return this.memberCount();for(let t=0;t<this.members.length;t++)if(this._isBeforeElement(e,this.members[t].element))return t;return-1}_removeOnMemberChangeCallback(e){const t=this._onMemberChangeCallbacks.indexOf(e);-1!==t&&this._onMemberChangeCallbacks.splice(t,1)}_notifyMemberChange(){this._onMemberChangeCallbacks.forEach(e=>{e()})}_removeMember(e){const t=this.members.findIndex(this._isMemberElement(e));-1!==t&&this.members.splice(t,1)}_removeDisconnectedMembers(){this.members.filter(({element:e})=>!1===e.isConnected).forEach(({element:e})=>this._removeMember(e))}_isMemberElement(e){return({element:t})=>t===e}_makeRadioTheOnlyTabbableElement(e){this.members.filter(({element:t})=>t!==e.element).forEach(e=>this._preventTabbingToRadio(e)),this._allowTabbingToRadio(e)}_letBrowserDecideTabOrder(){this.members.forEach(e=>{e.element.disabled?this._preventTabbingToRadio(e):this._updateTabIndex(e)})}_allowTabbingToRadio(e){this._updateTabIndex(e,"0")}_preventTabbingToRadio(e){this._updateTabIndex(e,"-1")}_updateTabIndex(e,t){var i;const n=null==(i=e.nativeElementGetter)?void 0:i.call(e);"string"==typeof t?null==n||n.setAttribute("tabindex",t):null==n||n.removeAttribute("tabindex")}};Hv.nodeDocumentPositionPreceding=2,Hv.nodeDocumentPositionFollowing=4;var zv=Hv,Wv=new Map,Vv=class e{constructor(e){this.members=[],this._onMemberChangeCallbacks=[],this.id=e,this.updateTabNavigation=this.updateTabNavigation.bind(this),this.onMemberChange(this.updateTabNavigation)}static create(e){if(!e)throw Error("You must provide an identifier when creating a group!");if(Wv.has(e))throw Error("There is already a group with the given identifier!");const t=new this(e);return Wv.set(e,t),t}static get(e){return Wv.get(e)}static remove(e){Wv.has(e)&&Wv.delete(e)}static exists(e){return Wv.has(e)}addMember(e){this._removeDisconnectedMembers();const t=this._getInsertionIndex(e);-1!==t&&(t<this.members.length?this.members.splice(t,0,e):this.members.push(e),this.isSelected(e)&&this.unselectAllButOne(e),this._notifyMemberChange())}removeMember(e){this.hasMember(e)&&(this._removeMember(e),this._notifyMemberChange())}hasMember(e){return-1!==this.members.findIndex(this._isMemberElement(e))}hasMembers(){return this.members.length>0}memberCount(){return this.members.length}getMembers(){return[...this.members]}getPrecedingMember(e){const t=this.members.findIndex(this._isMemberElement(e));return-1===t?null:this.members[t-1]}getSucceedingMember(e){const t=this.members.findIndex(this._isMemberElement(e));if(-1!==t)return this.members[t+1]}getFirstMember(){return this.members[0]}getLastMember(){return this.members[this.memberCount()-1]}getId(){return this.id}onMemberChange(e){return this._removeOnMemberChangeCallback(e),this._onMemberChangeCallbacks.push(e),()=>{this._removeOnMemberChangeCallback(e)}}selectMember(e){this.updateElementSelectState(e,!0),this.unselectAllButOne(e)}unselectMember(e){this.updateElementSelectState(e,!1)}unselectAllButOne(e){this.members.filter(t=>t!==e&&this.isSelected(t)).forEach(e=>this.unselectMember(e))}updateTabNavigation(){let e=this.members.find(e=>this.isSelected(e));e||(e=this.members.find(e=>this.hasFocus(e))),e&&!e.disabled?this._makeRadioTheOnlyTabbableElement(e):this._letBrowserDecideTabOrder()}updateElementSelectState(e,t){e.checked=t}isSelected(e){return e.checked}hasFocus(e){return e._hasFormControlFocusState()}_isAfterElement(t,i){return!!(t.compareDocumentPosition(i)&e.nodeDocumentPositionPreceding)}_isBeforeElement(t,i){return!!(t.compareDocumentPosition(i)&e.nodeDocumentPositionFollowing)}_getInsertionIndex(e){if(this.hasMember(e)&&this._removeMember(e),!this.hasMembers())return 0;const t=this.getLastMember();if(t&&this._isAfterElement(e,t))return this.memberCount();for(let t=0;t<this.members.length;t++)if(this._isBeforeElement(e,this.members[t]))return t;return-1}_removeOnMemberChangeCallback(e){const t=this._onMemberChangeCallbacks.indexOf(e);-1!==t&&this._onMemberChangeCallbacks.splice(t,1)}
1438_notifyMemberChange(){this._onMemberChangeCallbacks.forEach(e=>{e()})}_removeMember(e){const t=this.members.findIndex(this._isMemberElement(e));-1!==t&&this.members.splice(t,1)}_removeDisconnectedMembers(){this.members.filter(e=>!1===e.isConnected).forEach(e=>this._removeMember(e))}_isMemberElement(e){return t=>t===e}_makeRadioTheOnlyTabbableElement(e){this.members.filter(t=>t!==e).forEach(e=>this._preventTabbingToRadio(e)),this._allowTabbingToRadio(e)}_letBrowserDecideTabOrder(){this.members.forEach(e=>{e.disabled?this._preventTabbingToRadio(e):this._updateTabIndex(e,"0")})}_allowTabbingToRadio(e){this._updateTabIndex(e,"0")}_preventTabbingToRadio(e){this._updateTabIndex(e,"-1")}_updateTabIndex(e,t){e.getAttribute("tabindex")!==t&&("string"==typeof t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex"))}};Vv.nodeDocumentPositionPreceding=2,Vv.nodeDocumentPositionFollowing=4;var jv=Vv,Gv={groupLabel:{display:"none"},radioInput:{margin:"0"},dummyRadio:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"},icon:{outline:"none"},inputWrapper:{display:"inline-flex",alignContent:"center",alignItems:"center"}},qv={...Gv,$host:{},groupLabel:{},radioInput:{},dummyRadio:{},icon:{}},Uv="radioInput",Kv="errorWrapper",Yv=class e extends Ps{constructor(){super(),this.checked=!1,this._dispatchedClickEventInProgress=!1,this._group=null,this._groupMemberChangeCleanup=null,this._groupName=null,this.value="on",this._handleArrowKeyNavigation=this._handleArrowKeyNavigation.bind(this),ai.isElementInternalsSupported&&(this.addEventListener("click",this.onClickEvent),this.addEventListener("focus",this._onFocusEvent),this.addEventListener("blur",this._onFocusEvent),this.addEventListener("keydown",this._handleArrowKeyNavigation),this.elementInternals.role="radio")}get modelElementType(){return"radio"}get _radio(){const e=this.shadowRoot.querySelector("input[type=radio]:not([data-radio-dummy])");return e||void 0}disconnectedCallback(){var e;null==(e=super.disconnectedCallback)||e.call(this),this._group&&(this._group.removeMember(this),this._group=null),this._groupMemberChangeCleanup&&(this._groupMemberChangeCleanup(),this._groupMemberChangeCleanup=null)}render(){return ai.isElementInternalsSupported?this._renderNativeRadio():this._renderModelRadio()}reset(){super.reset(),this.checked=this.hasAttribute("checked")}getStyle(){const e=ai.isElementInternalsSupported?qv:Gv;return ge({},super.getStyle(),e)}attachFormFieldElement(){return ai.isElementInternalsSupported?this.attachInternals():super.attachFormFieldElement()}renderLabel(){return $`
1439            <label class="${this.classes.label}" for="${Uv}" @click="${this._onLabelClick}">${this.label}</label>
1440        `}getFocusElement(){return ai.isElementInternalsSupported?this:this._radio}afterRender(){this.updateValidity(),this._group?this._group.updateTabNavigation():this._assignToGroup()}updateValidity(){const e=this.required&&!this.checked?{valueMissing:!0}:{};super.updateValidity(e)}updateFormValue(e){ai.isElementInternalsSupported&&this.elementInternals.setFormValue(this.checked?e:null)}onCheckedChanged(){ai.isElementInternalsSupported&&(this.elementInternals.ariaChecked=this.checked?"true":"false"),this._group&&(this.checked&&this._group.unselectAllButOne(this),this._group.updateTabNavigation()),ai.isElementInternalsSupported&&this.updateFormValue(this.value),this.updateValidity()}onNameChanged(){this._groupName=this.name||`acornRadioGroup-${Date.now()}-${e._groupNameIncrementor++}`,this._group&&(this._group.removeMember(this),this._assignToGroup()),this.modelElement&&(this.modelElement.name=this.name)}onDisabledChanged(){ai.isElementInternalsSupported&&(this.elementInternals.ariaDisabled=this.disabled?"true":"false"),this._group&&this._group.updateTabNavigation()}onClickEvent(e){if(ai.isElementInternalsSupported){if(this._dispatchedClickEventInProgress)return;if(e.stopImmediatePropagation(),this.disabled)return;this._dispatchedClickEventInProgress=!0;const t=this._click.emit();this._dispatchedClickEventInProgress=!1,t.defaultPrevented||this._checkAndDispatchEvents()}else{if(this.disabled||!this._radio)return;this._radio.checked=!0,this.checked=this._radio.checked,this.focus(),this.redispatchEvent(bs()),this.dispatchEvent(vs())}}onInvalidEvent(e){super.onInvalidEvent(e),e.preventDefault(),this.redispatchEvent(e)}_onFocusEvent(e){const t="focus"===e.type;this.updateFormControlFocusState(t),this._group&&this._group.updateTabNavigation()}_renderNativeRadio(){return $`
1441            <div>
1442                <div class="${this.classes.inputWrapper}">${this.renderRadio()} ${this.renderLabel()}</div>
1443                <div>${this.errorTemplate()}</div>
1444            </div>
1445        `}_renderModelRadio(){const e=this._group?this._group.getMembers():[this],t=this.getAttribute("group-label");return $`
1446            <div class="${this.classes.formFieldWrapper}">
1447                <div
1448                    role="radiogroup"
1449                    @change="${this._onChangeEvent}"
1450                    aria-label="${j(null===t?void 0:t)}"
1451                >
1452                    ${e.map(e=>e===this?$`
1453                                  <div class="${this.classes.inputWrapper}">
1454                                      <input
1455                                          name="${this._groupName}"
1456                                          @focus="${this._onFocusEvent}"
1457                                          @blur="${this._onFocusEvent}"
1458                                          @keydown="${this._handleArrowKeyNavigation}"
1459                                          @invalid="${this.preventBrowserSpecificValidationErrorToBeShown}"
1460                                          id="${Uv}"
1461                                          class="${this.classes.radioInput}"
1462                                          type="radio"
1463                                          .checked="${this.checked}"
1464                                          ?required="${this.required}"
1465                                          ?disabled="${this.disabled}"
1466                                          aria-label="${j(this.ariaLabel||this.label)}"
1467                                          aria-describedby="${j(this.validity.valid?void 0:Kv)}"
1468                                          aria-invalid="${this.shouldShowInvalidState()}"
1469                                          .value="${this.value}"
1470                                      />
1471
1472                                      ${this.renderRadio()} ${this.renderLabel()}
1473                                  </div>
1474                              `:$`
1475                                  <input
1476                                      name="${this._groupName}"
1477                                      class="${this.classes.dummyR
1477adio}"
1478                                      type="radio"
1479                                      @focus="${{handleEvent:()=>e.focus()}}"
1480                                      tabindex="-1"
1481                                      disabled
1482                                      data-radio-dummy
1483                                      aria-label="${j(this.ariaLabel||this.label)}"
1484                                  />
1485                              `)}
1486                </div>
1487                <div id="${Kv}">${this.errorTemplate()}</div>
1488            </div>
1489        `}_onChangeEvent(e){this.checked=e.target.checked,this.redispatchEvent(e)}_onLabelClick(e){ai.isElementInternalsSupported||e.stopPropagation()}_assignToGroup(){!1!==this.isConnected&&this._groupName&&(ai.isElementInternalsSupported?(this._group=jv.get(this._groupName)||jv.create(this._groupName),this._group.addMember(this)):(this._group=zv.get(this._groupName)||zv.create(this._groupName),this._group.addMember(this,()=>this._radio)),this._groupMemberChangeCleanup&&this._groupMemberChangeCleanup(),this._groupMemberChangeCleanup=this._group.onMemberChange(()=>{this.invalidate()}),this.invalidate())}_checkAndDispatchEvents(){this.checked||(this.checked=!0,this.redispatchEvent(bs()),this.dispatchEvent(vs()))}_handleArrowKeyNavigation(e){var t;if(e.key===ye.Space&&(e.preventDefault(),!this.disabled))return void this._checkAndDispatchEvents();const i=this._getNavigationDirection(e.key);if("None"===i)return;e.preventDefault();const n=this._findRadioToNavigateTo(i);n&&(n.focus(),n.checked||(null==(t=this._group)||t.selectMember(n),n.dispatchEvent(vs()),n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0,composed:!0}))))}_getNavigationDirection(e){switch(e){case ye.ArrowDown:case ye.ArrowRight:return"Next";case ye.ArrowUp:case ye.ArrowLeft:return"Previous";default:return"None"}}_findRadioToNavigateTo(e){var t,i,n,o;let r=this;do{"Previous"===e?(r=null==(t=this._group)?void 0:t.getPrecedingMember(r),r||(r=null==(i=this._group)?void 0:i.getLastMember())):"Next"===e&&(r=null==(n=this._group)?void 0:n.getSucceedingMember(r),r||(r=null==(o=this._group)?void 0:o.getFirstMember()))}while(r&&r!==this&&r.disabled);return r}};Yv.formAssociated=ai.isElementInternalsSupported,Yv._groupNameIncrementor=1,Pv([gt({reflect:!1}),zt({type:Boolean})],Yv.prototype,"checked",2),Pv([gt({reflect:!0})],Yv.prototype,"name",2),Pv([gt()],Yv.prototype,"label",2),Pv([ft({cancelable:!0,bubbles:!0,track:!1})],Yv.prototype,"_click",2),Pv([Pe()],Yv.prototype,"getFocusElement",1),Pv([wi("checked")],Yv.prototype,"onCheckedChanged",1),Pv([wi("name",{triggerOn:pi.ChangeAndConnect})],Yv.prototype,"onNameChanged",1),Pv([wi("disabled")],Yv.prototype,"onDisabledChanged",1),Pv([Pe()],Yv.prototype,"onClickEvent",1),Pv([Pe()],Yv.prototype,"onInvalidEvent",1),Pv([Pe()],Yv.prototype,"_onFocusEvent",1),Pv([Pe()],Yv.prototype,"_onChangeEvent",1);var Xv=Yv,Qv="--acorn-internal-chip-background-color",Zv="--acorn-internal-chip-outline-style",Jv=Object.defineProperty,ey=Object.getOwnPropertyDescriptor,ty=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?ey(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Jv(t,i,r),r},iy={$host:{display:"inline-block",marginTop:Rn(0,Jn),marginBottom:Fn(0,Jn),marginLeft:0,marginRight:0,position:"relative",margin:"0",outline:"none !important","&(:focus)":{[Qv]:zi.ComponentSpecific.Chips.pressed,[Zv]:"solid"},"& [hidden]":{display:"none"}},radioInput:{width:"0",height:"0",appearance:"none",position:"absolute",zIndex:-1,outline:"none",border:"none","&:focus":{outline:"none"}}},ny={$host:{display:"inline-block",marginTop:Rn(0,Jn),marginBottom:Fn(0,Jn),marginLeft:0,marginRight:0,position:"relative",margin:"0",outline:"none !important","&(:focus)":{[Qv]:zi.ComponentSpecific.Chips.pressed,[Zv]:"solid"},"& [hidden]":{display:"none"}}},oy=class extends Xv{constructor(){super(...arguments),this.accessibilityLabel=void 0}get _isChecked(){return String(this.checked)}getStyle(){const e=ai.isElementInternalsSupported?ny:iy;return ge({},super.getStyle(),e)}renderLabel(){return null}renderRadio(){return $`
1490            <acorn-internal-chip
1491                label="${this.label}"
1492                selected="${this.checked?1:0}"
1493                tabindex="-1"
1494                role="switch"
1495                aria-label="${j(this.accessibilityLabel)}"
1496                aria-checked="${this._isChecked}"
1497                ?disabled="${this.disabled}"
1498                @click="${this.onClickEvent}"
1499            ></acorn-internal-chip>
1500        `}};ty([gt()],oy.prototype,"accessibilityLabel",2),oy=ty([_t({tag:"acorn-choice-chip"})],oy);var ry=Object.defineProperty,ay=Object.getOwnPropertyDescriptor,sy=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?ay(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&ry(t,i,r),r},ly=Ve.createTranslation({ValidationErrorValueMissing:{sv:"Välj ett av alternativen.",en:"Select one of the options."}}),cy={$host:{display:"block"}},dy=class e extends zs{constructor(){super(),this.required=!1,this.readOnly=!1,this.autofocus=!1,this.hideLabel=!1,this._requiredError=!1,this._checkIfRadioNamesShouldBeUpdated=!1,this._radioNamesHaveBeenUpdated=!1,this._delayedSelectByRadioValueFunction=null,this.addEventListener("change",this._onChangeEvent,!0),this._generatedRadioGroupName="generatedGroupName"+e._nameIncrementor++,ai.isElementInternalsSupported&&(this.elementInternals.role="radiogroup")}get value(){const e=this._getSelectedRadio();return e?e.value:""}set value(e){this.rendered?this._selectRadioByValue(e):this._delaySelectingRadioByValue(e)}getStyle(){return ge({},super.getStyle(),cy)}getModelElement(){const e=super.getModelElement();return e.type="radio",e}attachFormFieldElement(){return ai.isElementInternalsSupported?this.attachInternals():super.attachFormFieldElement()}afterRender(){this._delayedSelectByRadioValueFunction&&(this._delayedSelectByRadioValueFunction(),this._delayedSelectByRadioValueFunction=null),this._checkIfRadioNamesShouldBeUpdated&&(this._checkIfRadioNamesShouldBeUpdated=!1,this._shouldUpdateRadioNames()&&this._updateGroupName()),this.updateV
1500alidity()}updateValidity(){const e={};this._requiredError=this.required&&!this._getSelectedRadio(),this._requiredError&&(e.valueMissing=!0),this.elements.forEach(t=>{t.ariaInvalid=e.valueMissing&&this.showInvalidState?"true":"false"}),super.updateValidity(e)}getErrorMessage(e){return e===_s.ValueMissing?ly.ValidationErrorValueMissing:super.getErrorMessage(e)}onDefaultSlotChange(){this._checkIfRadioNamesShouldBeUpdated=!0}onDisabledChanged(){this.disabled?this._disableAllRadios():this.elements.some(e=>!e.disabled)||this._enableAllRadios()}onNameChanged(){this._checkIfRadioNamesShouldBeUpdated=!0}onRequiredChanged(){this.modelElement&&(this.modelElement.required=this.required),ai.isElementInternalsSupported&&(this.elementInternals.ariaRequired=this.required?"true":"false",this.updateValidity())}shouldSyncProperty(e,t,i){return!!super.shouldSyncProperty(e,t,i)&&(t!==this.modelElement||"name"!==i)}getFocusElement(){return this._getSelectedRadio()||this.elements[0]}onInvalidEvent(e){super.onInvalidEvent(e),e.preventDefault(),this.redispatchEvent(e)}_shouldUpdateRadioNames(){if(this.name||this._radioNamesHaveBeenUpdated)return!0;const e=this._getUniqueNamesFromSlottedRadios();return 1!==e.length||!e[0]}_updateGroupName(){const e=this.name||this._generatedRadioGroupName;this.elements.forEach(t=>{t.name=e,this._radioNamesHaveBeenUpdated=!0})}_getUniqueNamesFromSlottedRadios(){const e=[];for(let t=0;t<this.elements.length;t++){const i=this.elements[t].name||"";-1===e.indexOf(i)&&e.push(i)}return e}_onChangeEvent(){this.updateValidity()}_disableAllRadios(){this.elements.forEach(e=>{e.setAttribute("disabled","")})}_enableAllRadios(){this.elements.forEach(e=>{e.removeAttribute("disabled")})}_selectRadioByValue(e){const t=this.elements.find(t=>t.value===e);t?t.checked=!0:this._unselectCurrentlySelectedRadio()}_unselectCurrentlySelectedRadio(){const e=this._getSelectedRadio();e&&(e.checked=!1)}_delaySelectingRadioByValue(e){this._delayedSelectByRadioValueFunction=()=>{this._getSelectedRadio()||this._selectRadioByValue(e)}}_getSelectedRadio(){return this.elements.find(e=>e.checked)}};dy.formAssociated=ai.isElementInternalsSupported,dy._nameIncrementor=0,sy([gt(),zt({type:Boolean})],dy.prototype,"required",2),sy([wi("_defaultSlot")],dy.prototype,"onDefaultSlotChange",1),sy([wi("disabled",{triggerOn:pi.ChangeAndConnect})],dy.prototype,"onDisabledChanged",1),sy([wi("name",{triggerOn:pi.ChangeAndConnect})],dy.prototype,"onNameChanged",1),sy([wi("required",{triggerOn:pi.ChangeAndConnect})],dy.prototype,"onRequiredChanged",1),sy([Pe()],dy.prototype,"onInvalidEvent",1);var hy=dy,py=Object.defineProperty,uy=Object.getOwnPropertyDescriptor,gy=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?uy(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&py(t,i,r),r},my={$host:{display:"block"},optionsGroup:{...Qi(),padding:0,margin:0,border:"none"},options:{margin:"16px 0",display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"16px 12px"}},by="errorAndHint",vy=class extends hy{constructor(){super()}render(){return $`
1501            <fieldset
1502                class="${this.classes.optionsGroup}"
1503                aria-describedby="${by}"
1504                aria-labelledby="${vy.labelId}"
1505            >
1506                ${this.legend(this.label)}
1507                <div class="${this.classes.options}">${this.defaultSlot}</div>
1508                <div id="${by}">${this.hintTemplate()} ${this.errorTemplate()}</div>
1509            </fieldset>
1510        `}getStyle(){return ge({},super.getStyle(),my)}};gy([ri("default")],vy.prototype,"defaultSlot",2),vy=gy([_t({tag:"acorn-choice-chip-group"})],vy);var yy=Object.defineProperty,_y=Object.getOwnPropertyDescriptor,fy=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?_y(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&yy(t,i,r),r},xy={$host:{display:"block"}},wy=class extends Ti{render(){return this.templateFn&&this.data?this.templateFn(this.data):void 0}getStyle(){return xy}};fy([Ht()],wy.prototype,"data",2),wy=fy([_t({tag:"acorn-internal-template-result"})],wy);var Cy=Object.defineProperty,Sy=Object.getOwnPropertyDescriptor,$y=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Sy(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Cy(t,i,r),r},ky=(e=>(e.Rectangle="rectangle",e.Circle="circle",e.Box="box",e))(ky||{}),Ey=Ve.createTranslation({LoadingItem:{sv:"Laddar innehållet",en:"Loading content"}}),Ty={$host:{display:"inline-block",marginBottom:"-2px",backgroundColor:zi.Surface.neutralInverted,height:e=>`${e.size}px`,width:e=>"circle"===e.shape?`${e.size}px`:"70%",borderRadius:e=>`${Math.floor(.5*e.size)}px`,animation:"table-cell-fade-animation 1.5s infinite",animationPlayState:ai.isRunningTests?"paused":"running","@keyframes table-cell-fade-animation":"\n            0% { opacity: 1 }\n            50% { opacity: 0.3 }\n            100% { opacity: 1 }"},ariaLabel:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"}},Iy=class extends Ti{constructor(){super(...arguments),this.shape="rectangle",this.size=16}getStyle(){return Ty}render(){return $`<span class="${this.classes.ariaLabel}">${Ey.LoadingItem}</span>`}};$y([Ht()],Iy.prototype,"shape",2),$y([Ht()],Iy.prototype,"size",2),Iy=$y([_t({tag:"acorn-internal-pending"})],Iy);var Oy=Object.defineProperty,Dy=Object.getOwnPropertyDescriptor,Ry=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Dy(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Oy(t,i,r),r},Fy=(e=>(e.Keyword="keyword",e.Discovery="discovery",e.Neutral="neutral",e.Attention="attention",e.Warning="warning",e.Info="info",e.Success="success",e.Default="keyword",e.Error="error",e))(Fy||{}),Ly=new Map([["attention",{backgroundColor:zi.Surface.attentionContrastInverted,color:zi.Text.attention}],["warning",{backgroundColor:zi.Surface.warningContrastInverted,color:zi.ComponentSpecific.Tag.Warning.text}],["success",{backgroundColor:zi.Surface.successContrastInverted,color:zi.Text.success}],["neutral",{backgroundColor:zi.Surface.neutralContrastInverted,color:zi.Text.neutral}],["info",{backgroundColor:zi.Surface.infoContrastInverted,color:zi.Text.info}],["discovery",{backgroundColor:zi.Surface.discovery,color:zi.Text.whiteStatic}],["keyword",{backgroundColor:zi.ComponentSpecific.Tag.Keyword.background,color:zi.Text.Regular.highStatic}]]),Ay={$host:{display:"inline-block",lineHeight:"100%",maxWidth:"100%"},content:{verticalAlign:"middle"},wrapper:{display:"flex",maxWidth:"100%",minWidth:"inherit",width:"inherit"},tag:{fontSize:kn(14),fontWeight:$n.Bold,lineHeight:"22px",padding:"1px 4px",display:"inline-block",flex:"1",textAlign:"center",verticalAlign:"middle",minWidth:"24px",width:"inherit",boxSizing:"border-box",borderRadius:"6px",overflow:"hidden",
1510whiteSpace:"nowrap",maxWidth:"100%",textOverflow:"ellipsis",backgroundColor:e=>{var t,i;return e.type&&(null==(t=Ly.get(e.type))?void 0:t.backgroundColor)||`var(--acorn-tag-background-color, ${null==(i=Ly.get("keyword"))?void 0:i.backgroundColor})`},color:e=>{var t,i;return e.type&&(null==(t=Ly.get(e.type))?void 0:t.color)||`var(--acorn-tag-text-color, ${null==(i=Ly.get("keyword"))?void 0:i.color})`}},screenReaderText:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"}},My=class extends Ti{getStyle(){return Ay}render(){if(this.label&&void 0!==this.label)return $`
1511            <div class="${this.classes.wrapper}">
1512                <span class="${this.classes.tag}" aria-hidden="true">${this.label}</span>
1513                <span class="${this.classes.screenReaderText}">${this._screenReaderText()}</span>
1514            </div>
1515        `}onTypeChange(){const e=Object.values(Fy);"error"===this.type&&(this.type="attention"),null!==this.type&&-1===e.indexOf(this.type)&&(this.type="keyword")}_screenReaderText(){var e;return this.accessibilityLabel&&this.accessibilityLabel.toLowerCase().includes((null==(e=this.label)?void 0:e.toLowerCase())||"")?this.accessibilityLabel:this.label||""}};Ry([gt(),zt({type:Fy})],My.prototype,"type",2),Ry([gt(),zt({type:String})],My.prototype,"label",2),Ry([gt()],My.prototype,"accessibilityLabel",2),Ry([wi("type")],My.prototype,"onTypeChange",1),My=Ry([_t({tag:"acorn-tag"})],My);var By=Object.defineProperty,Py=Object.getOwnPropertyDescriptor,Ny=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Py(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&By(t,i,r),r},Hy=(e=>(e.Opacity="--acorn-internal-radio-opacity",e))(Hy||{}),zy={$host:{display:"inline-flex",position:"relative",width:"20px",height:"20px"},radio:{position:"relative",overflow:"hidden",width:"inherit",height:"inherit",border:"2px solid",borderRadius:"50%",boxSizing:"border-box",borderColor:e=>e.disabled?zi.Line.Regular.disabled:zi.Line.Regular.high},radioDot:{display:e=>e.checked?"block":"none",position:"absolute",width:"20px",height:"20px",transformOrigin:"center",top:"-2px",left:"-2px",borderRadius:"50%",transform:"scale(0.5)",backgroundColor:e=>e.disabled?zi.Line.Regular.disabled:zi.Line.Regular.high},hitArea:{opacity:ai.isRunningTests?0:"var(--acorn-internal-radio-opacity, 0)",borderRadius:"16px",backgroundColor:zi.Overlay.hover,position:"absolute",display:e=>e.disabled?"none":"block",top:"-6px",left:"-6px",width:"32px",height:"32px",cursor:e=>e.disabled?void 0:"pointer"},spinner:{...yo(32,zi.Icon.interactive),margin:"auto"}},Wy=class extends Ti{constructor(){super(...arguments),this.busy=!1}getStyle(){return zy}render(){return this.busy?$`<div class="${this.classes.spinner}"></div>`:$` <div class="${this.classes.radio}">
1516                <span class="${this.classes.radioDot}"></span>
1517            </div>
1518            <span class="${this.classes.hitArea}"></span>`}};Ny([Ht()],Wy.prototype,"checked",2),Ny([Ht()],Wy.prototype,"disabled",2),Ny([Ht()],Wy.prototype,"busy",2),Wy=Ny([_t({tag:"acorn-internal-radio-graphic"})],Wy);var Vy=Object.defineProperty,jy=Object.getOwnPropertyDescriptor,Gy=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?jy(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Vy(t,i,r),r},qy=16,Uy=24,Ky=28,Yy=40,Xy=Ky+4,Qy=52,Zy=(Yy-Ky)/2-2,Jy=Qy-Yy+(Yy-Ky)/2-2,e_=.15,t_={"--acorn-internal-switch-knob-hit-area-color":zi.Overlay.hover,"--acorn-internal-switch-knob-color":zi.Surface.Turquoise.low},i_=({checked:e,disabled:t})=>{const i=e?`${Uy}px`:`${qy}px`;return t?i:`var(--acorn-internal-switch-knob-size, ${i})`},n_={$host:{borderRadius:Xy/2+"px","&(:focus)":{...Yi()}},wrapper:{pointerEvents:({disabled:e})=>e?"none":"auto",boxSizing:"border-box",display:"inline-flex",width:`${Qy}px`,alignItems:"center","&:hover":t_,"&:active":{"--acorn-internal-switch-knob-size":`${Ky}px`}},background:{backgroundColor:({checked:e,disabled:t})=>{if(!t)return e?zi.Surface.Interactive.active:zi.Surface.Turquoise.lower},border:({disabled:e})=>`2px solid ${e?zi.Line.Regular.disabled:zi.Line.interactive}`,width:`${Qy}px`,height:`${Xy}px`,borderRadius:Xy/2+"px",boxSizing:"border-box",justifyContent:"space-between"},knobHitArea:{display:"flex",alignItems:"center",justifyContent:"center",background:({disabled:e})=>e?void 0:"var(--acorn-internal-switch-knob-hit-area-color)",width:`${Yy}px`,height:`${Yy}px`,borderRadius:"50%",position:"absolute",left:e=>e.checked?`${Jy}px`:`-${Zy}px`,transition:o_("left")},knob:{display:"flex",alignItems:"center",justifyContent:"center",width:i_,height:i_,borderRadius:"50%",background:({disabled:e,checked:t})=>e?zi.Surface.disabled:t?`var(--acorn-internal-switch-knob-color, ${zi.Surface.elevation})`:zi.Line.interactive,transition:`${o_("width")}, ${o_("height")}`},icon:{opacity:e=>e.checked?"1":"0",transition:({checked:e})=>{const t=e?e_:.075;return`${o_("transform")}, ${o_("opacity",{duration:t})}`},transform:({checked:e})=>`rotate(${e?"0":"-60deg"}) scale(${e?1:qy/Uy})`},spinner:{...yo(32,zi.Icon.interactive),margin:"auto"}};function o_(e,t={}
1518){const i={duration:e_,delay:0,timingFunction:"ease-out"},{duration:n,timingFunction:o,delay:r}={...i,...t};return be()?void 0:`${e} ${n}s ${o} ${r}s`}var r_=zi.Icon.regular,a_=zi.Icon.disabled,s_=class extends Ti{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.busy=!1}getStyle(){return n_}render(){return this.busy?$`<div class="${this.classes.spinner}"></div>`:$`
1519            <div class="${this.classes.wrapper}">
1520                <div class="${this.classes.background}"></div>
1521                <span class="${this.classes.knobHitArea}">
1522                    <span class="${this.classes.knob}">
1523                        <acorn-internal-icon
1524                            class="${this.classes.icon}"
1525                            icon="${Zo.CheckV2}"
1526                            color="${this.disabled?a_:r_}"
1527                            size="${Jo.Small}"
1528                        ></acorn-internal-icon>
1529                    </span>
1530                </span>
1531            </div>
1532        `}};Gy([Ht()],s_.prototype,"checked",2),Gy([Ht()],s_.prototype,"disabled",2),Gy([Ht()],s_.prototype,"busy",2),s_=Gy([_t({tag:"acorn-internal-switch-graphic"})],s_);var l_=Object.defineProperty,c_=Object.getOwnPropertyDescriptor,d_=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?c_(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&l_(t,i,r),r},h_=(e=>(e.OneLine="one-line",e.TwoLine="two-line",e.ThreeLine="three-line",e.Dynamic="dynamic",e.Stacked="stacked",e))(h_||{}
1532),p_=new Map([["one-line",56],["two-line",72],["three-line",88],["dynamic",void 0],["stacked",void 0]]),u_=new Map([["one-line",1],["two-line",2],["three-line",3],["dynamic",3],["stacked",3]]),g_=(e=>(e.Leading="leading",e.Trailing="trailing",e.Message="message",e.None="none",e))(g_||{}),m_=Ve.createTranslation({BadgeA11yLabel:{sv:"Behöver uppmärksamhet: {0} {1}",en:"Needs attention: {0} {1}"},TagAriaLabel:{sv:"Etikett: {0}",en:"Tag: {0}"}});function b_(e){const t=p_.get(e.getResolvedLayout());return t?`${t}px`:"auto"}function v_(e){switch(e.getResolvedLayout()){case"one-line":case"two-line":case"three-line":return"center";default:return"start"}}function y_(e){switch(e.getResolvedLayout()){case"one-line":case"two-line":case"three-line":return"hidden";default:return"visible"}}var __={display:"flex",flex:"1 1 auto",gap:"16px",padding:"12px 8px",minWidth:0,justifyContent:"space-between",whiteSpace:"nowrap",alignItems:v_},f_={$host:{display:"block",position:"relative"},pendingContainer:{display:"flex",width:"100%",gap:"8px",alignItems:"center",height:b_,minHeight:`${p_.get("one-line")}px`},accessibilityLabel:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0",width:"100%",height:"100%"},interactiveWrapper:{cursor:function(e){var t;return(null==(t=e.getPrimaryAction())?void 0:t.isInteractive())?"pointer":"auto"},"&:hover":{[mv.HitAreaOpacity]:1,[Hy.Opacity]:1,...t_}},primaryContainer:{display:"flex",width:"100%",boxSizing:"border-box",alignItems:v_,height:b_},secondaryContainer:{position:"absolute",display:"flex",alignItems:"center",top:"0",right:"0",height:b_},innerContainer:__,dynamicInnerContainer:{...__,flexWrap:"wrap",whiteSpace:"normal"},stackedInnerContainer:{...__,flexDirection:"column",wordBreak:"break-word",whiteSpace:"normal"},containerLeft:{flex:"1 0 50%",maxWidth:function(e){return e.isPending?"none":"max-content"},overflow:y_},containerRight:{flex:"1 0 0px",textAlign:function(e){return"stacked"===e.getResolvedLayout()?"left":"right"},overflow:y_},label:{...Wn(),lineHeight:"min(1.5em, 32px)",color:e=>e.isDimmed?zi.Text.disabled:zi.Text.Regular.high,overflow:"hidden",textOverflow:"ellipsis"},detail:{...jn(),lineHeight:"min(1.5em, 24px)",color:e=>e.isDimmed?zi.Text.disabled:zi.Text.Regular.medium,overflow:"hidden",textOverflow:"ellipsis"}},x_=class extends Ti{constructor(){super(),this.layout="dynamic",this.isPending=!1,this.tagType=Fy.Default,this.accessibilityLabel="",this.dimmed=!1,this._isNarrowContainer=!1,this._containerWidth=0,this._resizeObserver=new ResizeObserver(this._onResize)}get isDimmed(){var e;return this.dimmed||(null==(e=this.getPrimaryAction())?void 0:e.disabled)||!1}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this._resizeObserver.observe(this),ze.register(this._onFontSizeChange)}disconnectedCallback(){this._resizeObserver.disconnect(),ze.unregister(this._onFontSizeChange)}getPrimaryAction(){var e,t;return(null==(e=this._leading)?void 0:e.isPrimaryAction)?this._leading:(null==(t=this._trailing)?void 0:t.isPrimaryAction)?this._trailing:void 0}getResolvedLayout(){return"dynamic"!==this.layout?this.layout:this._isNarrowContainer?"stacked":"dynamic"}render(){var e,t,i,n;return this._leading=this.querySelector('[slot="leading"]'),this._trailing=this.querySelector('[slot="trailing"]'),this._leading&&(this._leading.isPending=this.isPending),this._trailing&&(this._trailing.isPending=this.isPending),this.isPending?$`
1533                <div class="${this.classes.pendingContainer}">
1534                    <slot name="${"leading"}"></slot>
1535                    <div class="${this.classes.containerLeft}">
1536                        <acorn-internal-pending></acorn-internal-pending>
1537                    </div>
1538                    <slot name="${"trailing"}"></slot>
1539                </div>
1540            `:(null==(e=this._leading)?void 0:e.isPrimaryAction)&&(null==(t=this._trailing)?void 0:t.isInteractable)?this._renderMultiActionItem():(null==(i=this._leading)?void 0:i.isPrimaryAction)||(null==(n=this._trailing)?void 0:n.isPrimaryAction)?this._renderItemWithPrimaryAction():this._renderDefaultItem()}getStyle(){return f_}onInvalidNarrowState(){var e,t;if(!this._containerWidth)return;const i=(null==(e=this._leading)?void 0:e.width)||0,n=(null==(t=this._trailing)?void 0:t.width)||0,o=this._containerWidth-(i+n);this._isNarrowContainer=o<ze.scale(230)}_renderMultiActionItem(){var e;return $`
1541            <div class="${this.classes.interactiveWrapper}" @click="${this._onDelegateClick}">
1542                <div class="${this.classes.primaryContainer}" style="padding-right:${null==(e=this._trailing)?void 0:e.width}px;">
1543                    <slot name="${"leading"}"></slot>
1544                    ${this._renderInnerContainer()}
1545                </div>
1546                <slot name="${"message"}"></slot>
1547            </div>
1548            <div class="${this.classes.secondaryContainer}">
1549                <slot name="${"trailing"}"></slot>
1550            </div>
1551        `}_renderItemWithPrimaryAction(){return $`
1552            <div class="${this.classes.interactiveWrapper}" @click="${this._onDelegateClick}">
1553                <div class="${this.classes.primaryContainer}">
1554                    <slot name="${"leading"}"></slot>
1555                    ${this._renderInnerContainer()}
1556                    <slot name="${"trailing"}"></slot>
1557                </div>
1558                <slot name="${"message"}"></slot>
1559            </div>
1560        `}_renderDefaultItem(){return $`
1561            <div class="${this.classes.accessibilityLabel}">${this.accessibilityLabel}</div>
1562            <div class="${this.classes.primaryContainer}">
1563                <slot name="${"leading"}"></slot>
1564                ${this._renderInnerContainer()}
1565                <slot name="${"trailing"}"></slot>
1566            </div>
1567            <slot name="${"message"}"></slot>
1568        `}_renderInnerContainer(){let e;
1568switch(this.getResolvedLayout()){case"dynamic":e=this.classes.dynamicInnerContainer;break;case"stacked":e=this.classes.stackedInnerContainer;break;default:e=this.classes.innerContainer}return $`
1569            <div class="${e}" aria-hidden="true">
1570                ${this._renderInnerContainerLeft()} ${this._renderInnerContainerRight()}
1571            </div>
1572        `}_renderInnerContainerLeft(){const e=this._sliceRowsByLayout([this._renderLabel(this.label),this._renderDetail(this.subLabel),this._renderDetail(this.detail)]);return $`<div class="${this.classes.containerLeft}">${e}</div>`}_renderInnerContainerRight(){if(this.tagLabel){const e=this._renderTag(this.tagLabel,this.tagType);return $`<div class="${this.classes.containerRight}">${e}</div>`}const e=this._sliceRowsByLayout([this._renderLabel(this.value),this._renderDetail(this.subValue),this._renderDetail(this.secondaryDetail)]);return e.length?$`<div class="${this.classes.containerRight}">${e}</div>`:null}_renderLabel(e){return e?$`<div class="${this.classes.label}">${Ni.from(e)}</div>`:null}_renderDetail(e){return e?$`<div class="${this.classes.detail}">${Ni.from(e)}</div>`:null}_renderTag(e,t){return $`<acorn-tag label="${Ni.from(e)}" type="${j(t)}"></acorn-tag>`}_sliceRowsByLayout(e){return e.filter(e=>e).slice(0,u_.get(this.layout))}_onDelegateClick(e){const t=this.getPrimaryAction();t&&e.target!==t&&t.triggerAction()}_onResize(e){var t;this._containerWidth=(null==(t=e[e.length-1])?void 0:t.contentRect.width)||0}_onFontSizeChange(){this.invalidate()}};x_.generateAccessibilityLabel=function(e,t,i){if(e.accessibilityLabel)return e.accessibilityLabel;const n=u_.get(t),o=[Ni.from(e.label).generateAccessibilityString()];let r=1,a=0;const s=e.tagLabel?Ve.translate(m_.TagAriaLabel,e.tagLabel):void 0;switch(n&&e&&(e.subLabel&&n>1&&(o.push(Ni.from(e.subLabel).generateAccessibilityString()),r++),!s&&e.value&&(o.push(Ni.from(e.value).generateAccessibilityString()),a++),!s&&e.subValue&&n>a&&(o.push(Ni.from(e.subValue).generateAccessibilityString()),a++),e.detail&&n>r&&(o.push(Ni.from(e.detail).generateAccessibilityString()),r++),!s&&e.secondaryDetail&&n>a&&(o.push(Ni.from(e.secondaryDetail).generateAccessibilityString()),a++)),o.push(s),i){case"badge":if(e.badgeNumber){const t=Ve.translate(m_.BadgeA11yLabel,e.badgeNumber,e.badgeSeverity);o.push(t)}break;case"icon":case"icon-large":case"image":e.imageAlt&&o.push(e.imageAlt)}return o.filter(e=>e).join(", ")+"."},d_([gt({reflect:!0})],x_.prototype,"layout",2),d_([gt(),zt({type:Boolean})],x_.prototype,"isPending",2),d_([gt()],x_.prototype,"label",2),d_([gt()],x_.prototype,"subLabel",2),d_([gt()],x_.prototype,"value",2),d_([gt()],x_.prototype,"subValue",2),d_([gt()],x_.prototype,"detail",2),d_([gt()],x_.prototype,"secondaryDetail",2),d_([gt()],x_.prototype,"tagLabel",2),d_([gt(),zt({type:Fy})],x_.prototype,"tagType",2),d_([gt()],x_.prototype,"accessibilityLabel",2),d_([gt()],x_.prototype,"dimmed",2),d_([gt(),zt({type:Boolean})],x_.prototype,"_isNarrowContainer",2),d_([wi("_containerWidth"),wi("_leading"),wi("_trailing")],x_.prototype,"onInvalidNarrowState",1),d_([Pe()],x_.prototype,"_onDelegateClick",1),d_([Pe()],x_.prototype,"_onResize",1),d_([Pe()],x_.prototype,"_onFontSizeChange",1),x_=d_([_t({tag:"acorn-internal-list-item"})],x_);var w_=class extends Ti{constructor(){super(...arguments),this.isPrimaryAction=!1,this.isInteractable=!1,this.width=0}connectedCallback(){var e;this.parentElement instanceof x_?(this._parent=this.parentElement,this._parent.invalidate(),null==(e=super.connectedCallback)||e.call(this)):console.error(`${this.localName} must be child of acorn-internal-list-item`)}disconnectedCallback(){var e;
1572null==(e=this._parent)||e.invalidate(),this._parent=void 0}},C_={$host:{flex:"0 0 40px",padding:"12px 0 12px 8px"}},S_=class extends w_{constructor(){super(...arguments),this.width=40,this.isPending=!1,this.severity=Bo.Default}getStyle(){return C_}render(){return this.isPending?$`<acorn-internal-pending
1573                .shape="${ky.Circle}"
1574                .size="${24}"
1575            ></acorn-internal-pending>`:$`<acorn-badge
1576            aria-hidden="true"
1577            number="${j(this.number)}"
1578            severity="${j(this.severity)}"
1579            align="${No.None}"
1580        ></acorn-badge>`}};d_([gt(),zt({type:Boolean})],S_.prototype,"isPending",2),d_([gt(),zt({type:Number})],S_.prototype,"number",2),d_([gt(),zt({type:Bo})],S_.prototype,"severity",2),S_=d_([_t({tag:"acorn-internal-list-item-badge"})],S_);var $_={$host:{flex:"0 0 52px"},image:{width:"40px",height:"40px",verticalAlign:"middle",objectFit:"contain",padding:"8px 0 8px 8px"},pending:{margin:"0 8px"}},k_=class extends w_{constructor(){super(...arguments),this.width=52,this.imageSrc="",this.isPending=!1}getStyle(){return $_}render(){return this.isPending?$`<acorn-internal-pending
1581                class="${this.classes.pending}"
1582                .shape="${ky.Circle}"
1583                .size="${24}"
1584            ></acorn-internal-pending>`:this.imageSrc?$`<img aria-hidden="true" src="${this.imageSrc}" class="${this.classes.image}" />`:$``}};d_([gt()],k_.prototype,"imageSrc",2),d_([gt(),zt({type:Boolean})],k_.prototype,"isPending",2),k_=d_([_t({tag:"acorn-internal-list-item-image"})],k_);var E_={$host:{flex:"0 0 40px",padding:"12px 0 12px 8px",boxSizing:"border-box"},icon:{display:"block"},placeholder:{display:"block"}},T_=class extends w_{constructor(){super(...arguments),this.width=40,this.size=24,this.isPending=!1}getStyle(){return E_}render(){return this.isPending?$`<acorn-internal-pending
1585                .shape="${ky.Circle}"
1586                .size="${this.size}"
1587            ></acorn-internal-pending>`:this.icon?$`<acorn-internal-icon
1588                  size="${this.size}"
1589                  icon="${this.icon}"
1590                  class="${this.classes.icon}"
1591                  color="${zi.Icon.regular}"
1592              ></acorn-internal-icon>`:$``}};d_([gt(),zt({type:Zo})],T_.prototype,"icon",2),d_([gt(),zt({type:Number})],T_.prototype,"size",2),d_([gt(),zt({type:Boolean})],T_.prototype,"isPending",2),T_=d_([_t({tag:"acorn-internal-list-item-icon"})],T_);var I_={$host:{flex:"0 0 40px",pointerEvents:"none",padding:"4px 0"}},O_=class extends w_{constructor(){super(...arguments),this.isInteractable=!0,this.width=40,this.itemId="",this.ariaLabel="",this.value="",this.isPending=!1}getStyle(){return I_}render(){return this.isPending?$`<acorn-internal-pending
1593                .shape="${ky.Circle}"
1594                .size="${24}"
1595            ></acorn-internal-pending>`:$` <acorn-icon-button
1596            icon="${this.icon}"
1597            accessibility-label="${this.ariaLabel}"
1598            @click="${this._onClick}"
1599        ></acorn-icon-button>`}_onClick(){this._internalSelect.emit({itemId:this.itemId,value:this.value})}};d_([gt()],O_.prototype,"itemId",2),d_([gt(),zt({type:Zo})],O_.prototype,"icon",2),d_([gt()],O_.prototype,"ariaLabel",2),d_([gt()],O_.prototype,"value",2),d_([gt(),zt({type:Boolean})],O_.prototype,"isPending",2),d_([ft({bubbles:!0,cancelable:!0})],O_.prototype,"_internalSelect",2),d_([Pe()],O_.prototype,"_onClick",1),O_=d_([_t({tag:"acorn-internal-list-item-icon-button"})],O_);var D_=class extends xt{constructor(){super(...arguments),this.label="",this.icon="",this.value=""}};D_.modelName="internalListItemMenuOption";var R_=Ve.createTranslation({AriaLabel:{sv:"{0} alternativ",en:"{0} options"}}),F_={$host:{flex:"0 0 40px",padding:"4px 0"}},L_=class extends w_{constructor(){super(...arguments),this.isInteractable=!0,this.width=40,this.itemId="",this.ariaLabel="",this.isPending=!1}getStyle(){return F_}render(){if(this.isPending)return $`<acorn-internal-pending
1600                .shape="${ky.Circle}"
1601                .size="${24}"
1602            ></acorn-internal-pending>`;if(!Array.isArray(this.options)||!this.options.length)return $``;const e=Ve.translate(R_.AriaLabel,this.ariaLabel);return $` <acorn-menu
1603            @menuOptionSelect="${this._onMenuOptionSelect}"
1604            accessibility-label="${e}"
1605            overlay-alignment="${Nl.Right}"
1606        >
1607            ${this.options.map(e=>$` <acorn-menu-option icon="${j(e.icon||void 0)}" value="${e.value}"
1608                        >${e.label}</acorn-menu-option
1609                    >`)}
1610        </acorn-menu>`}_onMenuOptionSelect(e){e.stopPropagation(),this._internalSelect.emit({itemId:this.itemId,value:e.detail.value})}};d_([gt()],L_.prototype,"itemId",2),d_([Mt(),zt({type:[D_]})],L_.prototype,"options",2),d_([gt()],L_.prototype,"ariaLabel",2),d_([gt(),zt({type:Boolean})],L_.prototype,"isPending",2),d_([ft({bubbles:!0,cancelable:!0})],L_.prototype,"_internalSelect",2),d_([Pe()],L_.prototype,"_onMenuOptionSelect",1),L_=d_([_t({tag:"acorn-internal-list-item-menu"})],L_);var A_={$host:{flex:"0 0 40px",padding:"4px 0"},link:{width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%","&:hover":{backgroundColor:zi.Overlay.hover}},spinner:{...yo(32,zi.Icon.interactive),margin:"auto"}},M_=class extends w_{constructor(){super(...arguments),this.isPrimaryAction=!0,this.isInteractable=!0,this.width=40,this.isPending=!1,this.busy=!1,this.itemId="",this.link="",this.ariaLabel=""}getStyle(){return A_}render(){return this.link?$` <a
1611            class="${this.classes.link}"
1612            href="${this.link}"
1613            aria-label="${this.ariaLabel}"
1614            @click="${this.triggerAction}"
1615            >${this.busy?this._renderBusySpinner():this._renderArrowIcon()}
1616        </a>`:$``}isInteractive(){return!!this.link&&!this.busy}triggerAction(e){if(!this.isInteractive())return void(null==e||e.preventDefault());!this._internalLink.emit({itemId:this.itemId,link:this.link}).defaultPrevented&&this._isValidUrl()?e||(window.location.href=this.link):null==e||e.preventDefault()}_renderArrowIcon(){const e=this.isPending?zi.Icon.disabled:zi.Icon.regular;return $`
1617            <acorn-internal-icon
1618                size="${Jo.Regular}"
1619                icon="${Zo.CaretRight}"
1620                color="${e}"
1621            ></acorn-internal-icon>
1622        `}_renderBusySpinner(){return $`<div class="${this.classes.spinner}"></div>`}_isValidUrl(){if(/^\/([A-z0-9-+]+\/)*([A-z0-9-+]+)$/.test(this.link))return!0;try{const e=new URL(this.link);return"http:"===e.protocol||"https:"===e.protocol}catch(e){return!1}}};d_([gt(),zt({type:Boolean})],M_.prototype,"busy",2),d_([gt()],M_.prototype,"itemId",2),d_([gt()],M_.prototype,"link",2),d_([gt()],M_.prototype,"ariaLabel",2),d_([ft({bubbles:!0,cancelable:!0})],M_.prototype,"_internalLink",2),d_([Pe()],M_.prototype,"triggerAction",1),M_=d_([_t({tag:"acorn-internal-list-item-link"})],M_);var B_={$host:{flex:"0 0 52px",display:"flex",position:"relative",padding:"12px 0"},pending:{margin:"0 16px"},wrapper:{display:"inline-flex",margin:"0 auto"}},P_=class extends w_{constructor(){super(...arguments),this.isPrimaryAction=!0,this.isInteractable=!0,this.width=52,this.itemId="",this.ariaLabel="",this.checked=!1,this.disabled=!1,this.busy=!1,this.isPending=!1}getStyle(){return B_}render(){return this.isPending?$`<acorn-internal-pending
1623                class="${this.classes.pending}"
1624                .shape="${ky.Circle}"
1625                .size="${24}"
1626            ></acorn-internal-pending>`:$`<acorn-internal-switch-graphic
1627            class="${this.classes.wrapper}"
1628            role="checkbox"
1629            .checked="${this.checked}"
1630            .disabled="${this.disabled}"
1631            .busy="${this.busy}"
1632            aria-checked="${this.checked?"true":"false"}"
1633            aria-label="${this.ariaLabel}"
1634            aria-disabled="${this.disabled?"true":"false"}"
1635            aria-busy="${this.busy?"true":"false"}"
1636            tabindex="${this.disabled?"-1":"0"}"
1637            @keydown="${this._onCheckboxKeyDown}"
1638            @click="${this.triggerAction}"
1639        ></acorn-internal-switch-graphic>`}isInteractive(){return!this.disabled&&!this.busy}
1639triggerAction(){this.isInteractive()&&this._internalCheck.emit({itemId:this.itemId,checked:!this.checked})}_onCheckboxKeyDown(e){e.key===ye.Space&&(e.preventDefault(),this.triggerAction())}};d_([gt()],P_.prototype,"itemId",2),d_([gt()],P_.prototype,"ariaLabel",2),d_([gt(),zt({type:Boolean})],P_.prototype,"checked",2),d_([gt(),zt({type:Boolean})],P_.prototype,"disabled",2),d_([gt(),zt({type:Boolean})],P_.prototype,"busy",2),d_([gt(),zt({type:Boolean})],P_.prototype,"isPending",2),d_([ft({bubbles:!0,cancelable:!0})],P_.prototype,"_internalCheck",2),d_([Pe()],P_.prototype,"triggerAction",1),d_([Pe()],P_.prototype,"_onCheckboxKeyDown",1),P_=d_([_t({tag:"acorn-internal-list-item-switch"})],P_);var N_={$host:{flex:"0 0 40px",display:"flex",padding:"14px 0"},wrapper:{margin:"0 auto",outline:0}},H_=class extends w_{constructor(){super(...arguments),this.isPrimaryAction=!0,this.isInteractable=!0,this.width=40,this.itemId="",this.ariaLabel="",this.checked=!1,this.disabled=!1,this.isPending=!1,this.busy=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","radio"),this.addEventListener("keydown",this._onKeyDown),this.addEventListener("focus",this.triggerAction),this._radioCollection=this._getRadioCollection()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._onKeyDown),this.removeEventListener("focus",this.triggerAction)}getStyle(){return N_}render(){return this.isPending?$`<acorn-internal-pending
1640                .shape="${ky.Circle}"
1641                .size="${24}"
1642            ></acorn-internal-pending>`:(this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.setAttribute("aria-checked",this.checked?"true":"false"),this.setAttribute("aria-label",this.ariaLabel),$`<acorn-internal-radio-graphic
1643            .checked="${this.checked}"
1644            .disabled="${this.disabled}"
1645            .busy="${this.busy}"
1646            class="${this.classes.wrapper}"
1647            @click="${this.triggerAction}"
1648        >
1649        </acorn-internal-radio-graphic>`)}isInteractive(){return!this.disabled&&!this.busy}triggerAction(){!this.checked&&this.isInteractive()&&this._internalCheck.emit({itemId:this.itemId,checked:!0})}_onKeyDown(e){switch(e.key){case ye.ArrowUp:return e.preventDefault(),void this._focusPreviousRadio();case ye.ArrowDown:return e.preventDefault(),void this._focusNextRadio()}}_getRadioCollection(){let e=this.parentElement;for(;e&&"radiogroup"!==e.getAttribute("role");)e=e.parentElement;if(e)return e.getElementsByTagName("acorn-internal-list-item-radio")}_focusNextRadio(){if(!this._radioCollection)return;const e=[...this._radioCollection],t=e.indexOf(this),i=e.slice(t+1).find(e=>!e.disabled);null==i||i.focus()}_focusPreviousRadio(){if(!this._radioCollection)return;const e=[...this._radioCollection],t=e.indexOf(this),i=e.slice(0,t).reverse().find(e=>!e.disabled);null==i||i.focus()}};d_([gt()],H_.prototype,"itemId",2),d_([gt()],H_.prototype,"ariaLabel",2),d_([gt(),zt({type:Boolean})],H_.prototype,"checked",2),d_([gt(),zt({type:Boolean})],H_.prototype,"disabled",2),d_([gt(),zt({type:Boolean})],H_.prototype,"isPending",2),d_([gt(),zt({type:Boolean})],H_.prototype,"busy",2),d_([ft({bubbles:!0,cancelable:!0})],H_.prototype,"_internalCheck",2),d_([Pe()],H_.prototype,"triggerAction",1),d_([Pe()],H_.prototype,"_onKeyDown",1),H_=d_([_t({tag:"acorn-internal-list-item-radio"})],H_);var z_={$host:{flex:"0 0 40px",display:"flex",position:"relative",padding:"14px 0"},wrapper:{...Qi(),margin:"0 auto"}},W_=class extends w_{constructor(){super(...arguments),this.isPrimaryAction=!0,this.isInteractable=!0,this.width=40,this.itemId="",this.ariaLabel="",this.checked=!1,this.disabled=!1,this.isPending=!1,this.busy=!1}getStyle(){return z_}render(){return this.isPending?$`<acorn-internal-pending
1650                .shape="${ky.Circle}"
1651                .size="${24}"
1652            ></acorn-internal-pending>`:$`<acorn-internal-checkbox-graphic
1653            class="${this.classes.wrapper}"
1654            role="checkbox"
1655            .checked="${this.checked}"
1656            .disabled="${this.disabled}"
1657            .busy="${this.busy}"
1658            aria-checked="${this.checked}"
1659            aria-label="${this.ariaLabel}"
1660            aria-disabled="${this.disabled?"true":"false"}"
1661            tabindex="${this.disabled?"-1":"0"}"
1662            @keydown="${this._onCheckboxKeyDown}"
1663            @click="${this.triggerAction}"
1664        ></acorn-internal-checkbox-graphic>`}isInteractive(){return!this.disabled&&!this.busy}
1664triggerAction(){this.isInteractive()&&this._internalCheck.emit({itemId:this.itemId,checked:!this.checked})}_onCheckboxKeyDown(e){e.key===ye.Space&&(e.preventDefault(),this.triggerAction())}};d_([gt()],W_.prototype,"itemId",2),d_([gt()],W_.prototype,"ariaLabel",2),d_([gt(),zt({type:Boolean})],W_.prototype,"checked",2),d_([gt(),zt({type:Boolean})],W_.prototype,"disabled",2),d_([gt(),zt({type:Boolean})],W_.prototype,"isPending",2),d_([gt(),zt({type:Boolean})],W_.prototype,"busy",2),d_([ft({bubbles:!0,cancelable:!0})],W_.prototype,"_internalCheck",2),d_([Pe()],W_.prototype,"triggerAction",1),d_([Pe()],W_.prototype,"_onCheckboxKeyDown",1),W_=d_([_t({tag:"acorn-internal-list-item-checkbox"})],W_);var V_={$host:{flex:"0 0 40px",padding:"12px 0 12px 8px",boxSizing:"border-box"},icon:{display:"block"},placeholder:{display:"block"}},j_=class extends w_{constructor(){super(...arguments),this.width=40,this.checked=!1,this.isPending=!1}getStyle(){return V_}render(){return this.isPending?$``:this.checked?$`<acorn-internal-icon
1665                  size="${Jo.Regular}"
1666                  icon="${Zo.CheckV2}"
1667                  class="${this.classes.icon}"
1668              ></acorn-internal-icon>`:$``}};d_([gt(),zt({type:Boolean})],j_.prototype,"checked",2),d_([gt(),zt({type:Boolean})],j_.prototype,"isPending",2),j_=d_([_t({tag:"acorn-internal-list-item-check"})],j_);var G_=(e=>(e.OneLine="one-line",e.TwoLine="two-line",e.ThreeLine="three-line",e.Dynamic="dynamic",e.Stacked="stacked",e))(G_||{}
1668),q_=new Map([["one-line",56],["two-line",72],["three-line",88],["dynamic",void 0],["stacked",void 0]]),U_=(e=>(e.Icon="icon",e.IconLarge="icon-large",e.Image="image",e.Badge="badge",e.Tag="tag",e))(U_||{}),K_=Object.defineProperty,Y_=Object.getOwnPropertyDescriptor,X_=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Y_(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&K_(t,i,r),r},Q_={$host:{display:"inline-block",marginTop:"0",marginBottom:"0"},input:{appearance:"none",display:"block",position:"absolute",margin:0,zIndex:-1,width:"0",height:"0",opacity:"0",outline:"none",border:"none"}},Z_=0,J_=class extends Ps{constructor(){super(...arguments),this.label="",this.name="",this.checked=!1,this.disabled=!1,this.inputId="chip@"+Z_++}get modelElementType(){return"checkbox"}get inputNode(){return this.shadowRoot.getElementById(this.inputId)}get _isChecked(){return String(this.checked)}getStyle(){return ge({},super.getStyle(),Q_)}render(){return $`
1669            <input
1670                type="${this.modelElementType}"
1671                name="${this.name}"
1672                value="${this.value}"
1673                id="${this.inputId}"
1674                class="${this.classes.input}"
1675                aria-hidden="true"
1676                tabindex="-1"
1677                .checked="${this.checked}"
1678                ?disabled="${this.disabled}"
1679                @change="${this._onChange}"
1680                @click="${this._onClick}"
1681                @input="${this._onInput}"
1682            />
1683
1684            <acorn-internal-chip
1685                label="${this.label||this.value}"
1686                selected="${this.checked?1:0}"
1687                role="switch"
1688                tabindex="${this.disabled?-1:0}"
1689                aria-checked="${this._isChecked}"
1690                ?disabled="${this.disabled}"
1691                @click="${this._onChipClick}"
1692                @keydown="${this._onChipKeyDown}"
1693            ></acorn-internal-chip>
1694        `}getFocusElement(){return this.inputNode}_onChange(e){this.checked=this.inputNode.checked;const t=this.redispatchEvent(e);t&&Ue.addEvent(t)}_onInput(e){e.stopPropagation();const t=this.redispatchEvent(e);t&&Ue.addEvent(t)}_onClick(e){this.checked=this.inputNode.checked,e.stopPropagation();this._click.emit().defaultPrevented&&(e.preventDefault(),this.inputNode.checked=!this.inputNode.checked,this.checked=this.inputNode.checked)}_onChipClick(e){e.stopPropagation(),this.inputNode.click()}_onChipKeyDown(e){e.key!==ye.Space&&e.key!==ye.Enter||(e.preventDefault(),this.inputNode.click())}};X_([gt()],J_.prototype,"label",2),X_([gt()],J_.prototype,"name",2),X_([gt(),zt({type:Boolean})],J_.prototype,"checked",2),X_([gt(),zt({type:Boolean})],J_.prototype,"disabled",2),X_([ft({cancelable:!0,bubbles:!0,track:!1})],J_.prototype,"_click",2),X_([Pe()],J_.prototype,"_onChange",1),X_([Pe()],J_.prototype,"_onInput",1),X_([Pe()],J_.prototype,"_onClick",1),X_([Pe()],J_.prototype,"_onChipClick",1),X_([Pe()],J_.prototype,"_onChipKeyDown",1),J_=X_([_t({tag:"acorn-filter-chip",delegatesFocus:!0})],J_);var ef=Object.defineProperty,tf=Object.getOwnPropertyDescriptor,nf=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?tf(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&ef(t,i,r),r},of=(e=>(e.Horizontal="horizontal",e.Vertical="vertical",e))(of||{}),rf=(e=>(e.Focusable="focusable",e.None="none",e))(rf||{}),af={$host:{display:"block",position:"relative",overflow:"hidden !important"},wrapper:{display:"flex",width:"100%",height:"inherit",maxHeight:"inherit",overflowX:e=>"horizontal"===e.orientation?"auto":"hidden",overflowY:e=>"vertical"===e.orientation?"auto":"hidden"}},sf="scrollpane",lf=class extends Ti{constructor(){super(...arguments),this.focusStrategy="focusable",this.orientation="vertical",this.trackScroll=!1,this._isAtEnd=void 0}get _scrollPaneElement(){return this.shadowRoot.getElementById(sf)}getStyle(){return af}afterInitialRender(){var e;null==(e=this._scrollPaneElement)||e.addEventListener("scroll",this._validateScrollState,{passive:!0})}render(){const e="none"===this.focusStrategy?Wa.None:void 0;return $`
1695            <acorn-internal-scroll-pane
1696                id="${sf}"
1697                @scroll="${this._onScroll}"
1698                @scrollStateChange="${this._onScrollStateChange}"
1699                class="${this.classes.wrapper}"
1700                accessibility-label="${j(this.accessibilityLabel)}"
1701                focus-strategy="${j(e)}"
1702            >
1703                <div><slot></slot></div>
1704            </acorn-internal-scroll-pane>
1705        `}onReachedEndChange(){this._isAtEnd&&this.trackScroll&&this._reachedEnd.emit()}onOrientationChange(e){"horizontal"!==e&&"vertical"!==e&&(this.orientation="vertical")}onAnchor(e){if("horizontal"===this.orientation&&e)throw Error("anchor elements for horizontal scroll - not yet supported");setTimeout(()=>{window.requestAnimationFrame(()=>{const t=e?document.getElementById(e):null;if(!t||!this._scrollPaneElement)return;if(this._scrollPaneElement.scrollTop>t.offsetTop)return void(this._scrollPaneElement.scrollTop=t.offsetTop);const i=t.offsetTop+t.clientHeight,n=this._scrollPaneElement.scrollTop+this._scrollPaneElement.clientHeight;n<i&&(this._scrollPaneElement.scrollTop=this._scrollPaneElement.scrollTop+(i-n))})},0)}_isAtEndOfScroll(){return!!this._scrollPaneElement&&("vertical"===this.orientation?this._scrollPaneElement.scrollTop+this._scrollPaneElement.offsetHeight>=this._scrollPaneElement.scrollHeight-5:this._scrollPaneElement.scrollLeft+this._scrollPaneElement.offsetWidth>=this._scrollPaneElement.scrollWidth-5)}_onScroll(e){this._scroll.emit({scrollTop:e.currentTarget.scrollTop})}_onScrollStateChange(){var e;(null==(e=this._scrollPaneElement)?void 0:e.hasScrollableContent)?window.requestAnimationFrame(()=>
1705{this._validateScrollState()}):this._isAtEnd=!0}_validateScrollState(){this._isAtEnd=this._isAtEndOfScroll()}};nf([gt(),zt({type:rf})],lf.prototype,"focusStrategy",2),nf([gt()],lf.prototype,"anchor",2),nf([gt(),zt({type:of})],lf.prototype,"orientation",2),nf([gt(),zt({type:of})],lf.prototype,"accessibilityLabel",2),nf([gt(),zt({type:Boolean})],lf.prototype,"trackScroll",2),nf([Ht({invalidateStyle:!0})],lf.prototype,"_isAtEnd",2),nf([ft()],lf.prototype,"_scroll",2),nf([ft({bubbles:!0,composed:!0})],lf.prototype,"_reachedEnd",2),nf([wi("_isAtEnd")],lf.prototype,"onReachedEndChange",1),nf([wi("orientation")],lf.prototype,"onOrientationChange",1),nf([wi("anchor")],lf.prototype,"onAnchor",1),nf([Pe()],lf.prototype,"_onScroll",1),nf([Pe()],lf.prototype,"_onScrollStateChange",1),nf([Pe()],lf.prototype,"_validateScrollState",1),lf=nf([_t({tag:"acorn-scroll-pane",alias:["acorn-scrollpane"]})],lf);var cf=(e=>(e.Keyword="keyword",e.Discovery="discovery",e.Neutral="neutral",e.Attention="attention",e.Warning="warning",e.Info="info",e.Success="success",e.Default="keyword",e.Error="error",e))(cf||{}),df=Object.defineProperty,hf=Object.getOwnPropertyDescriptor,pf=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?hf(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&df(t,i,r),r},uf=500,gf={$host:{display:"block",position:"relative",height:e=>`${e.height}px`},trackerContainer:{position:"absolute",top:0,left:0,width:"100%",height:"inherit",overflow:"hidden",pointerEvents:"none"},tracker:{visibility:"hidden",height:"500px"}},mf=class extends Ti{constructor(){super(...arguments),this.height=0,this._trackerCollection=[],this._visibleTrackers=new Set}beforeInitialRender(){this._intersectionObserver=new IntersectionObserver(this._onTrackerIntersection),this._trackerTemplate=document.createElement("div"),this._trackerTemplate.classList.add(this.classes.tracker)}render(){return this._updateTrackers(),$`
1706            <div class="${this.classes.trackerContainer}">${this._trackerCollection}</div>
1707            <slot></slot>
1708        `}getStyle(){return gf}_updateTrackers(){const e=Math.ceil((this.height||1)/uf);for(;this._trackerCollection.length>e;){const e=this._trackerCollection.pop();e&&this._intersectionObserver.unobserve(e)}for(;this._trackerCollection.length<e;){const e=this._trackerTemplate.cloneNode();this._intersectionObserver.observe(e),this._trackerCollection.push(e)}}_onTrackerIntersection(e){e.forEach(e=>{e.isIntersecting?this._visibleTrackers.add(e.target):this._visibleTrackers.delete(e.target)});const t=[...this._visibleTrackers.values()].map(e=>this._trackerCollection.indexOf(e)).sort((e,t)=>e-t),i=t[0]||0,n=t[t.length-1]||0,o=i*uf,r=(n+1)*uf,a=0===o,s=this.height-r<=uf;this._boundsChange.emit(Object.freeze({isVisible:this._visibleTrackers.size>0,totalHeight:this.height,top:o,bottom:r,includesStart:a,includesEnd:s}))}};pf([gt(),zt({type:Number})],mf.prototype,"height",2),pf([ft()],mf.prototype,"_boundsChange",2),pf([Pe()],mf.prototype,"_onTrackerIntersection",1),mf=pf([_t({tag:"acorn-internal-bounds-observer"})],mf);var bf=Object.defineProperty,vf=Object.getOwnPropertyDescriptor,yf=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?vf(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&bf(t,i,r),r},_f=class extends Ti{templateFn(){if(!this._templateFn){const e=this._getTemplateString();this._templateFn=Ke.parseTemplateString(e)}return this._templateFn}_getTemplateString(){return this.templateString?this.templateString:[...this.children].map(e=>e instanceof HTMLTemplateElement?e.innerHTML:e.outerHTML).join("")}};yf([gt()],_f.prototype,"templateString",2);var ff={$host:{display:"none"}},xf=class extends _f{static setTemplateMarkers(e,t){Ae.set(Me.TemplateMarkerStart,e,!0),Ae.set(Me.TemplateMarkerEnd,t,!0)}render(){return $`<slot></slot>`}getStyle(){return ff}};xf=yf([_t({tag:"acorn-template"})],xf);var wf=Object.defineProperty,Cf=Object.getOwnPropertyDescriptor,Sf=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Cf(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&wf(t,i,r),r},$f={$host:{display:"block","&(:focus)":{outline:"none !important"}},button:{display:"flex",padding:"15px",flexDirection:"column"}},kf=class extends Ti{getStyle(){return $f}render(){return $`<acorn-action-button
1709            label="${j(this.label)}"
1710            class="${this.classes.button}"
1711            @mousedown="${this._onMouseDown}"
1712        ></acorn-action-button>`}_onMouseDown(e){e.preventDefault()}};Sf([gt()],kf.prototype,"label",2),Sf([Pe()],kf.prototype,"_onMouseDown",1),kf=Sf([_t({tag:"acorn-combo-box-button",delegatesFocus:!0})],kf);var Ef=(e=>(e.OneLine="one-line",e.TwoLine="two-line",e.OneLineDynamic="one-line-dynamic",e.TwoLineDynamic="two-line-dynamic",e))(Ef||{}),Tf={$host:{display:"block"},optionContent:{pointerEvents:"none"}},If=class extends Ti{constructor(){super(...arguments),this.layout="one-line",this.isSelected=!1,this.hasTrailing=!1}getStyle(){return Tf}render(){return $`<acorn-internal-list-item
1713            aria-hidden="true"
1714            layout="${this.layout}"
1715            class="${this.classes.optionContent}"
1716            .label="${this.optionData.label}"
1717            .subLabel="${Ni.from(this.optionData.subLabel)}"
1718            .value="${Ni.from(this.optionData.value)}"
1719            .subValue="${Ni.from(this.optionData.subValue)}"
1720            .detail="${Ni.from(this.optionData.detail)}"
1721            .secondaryDetail="${Ni.from(this.optionData.secondaryDetail)}"
1722            .tagLabel="${this.optionData.tagLabel}"
1723            .tagSeverity="${this.optionData.tagSeverity}"
1724            .tagType="${this.optionData.tagType}"
1725            .dimmed="${this.optionData.disabled}"
1726        >
1727            ${this._renderLeading(this.optionData)} ${this._renderTrailing()}
1728        </acorn-internal-list-item>`}_renderLeading(e){switch(this.leading){case U_.Icon:case U_.IconLarge:return $`<acorn-internal-list-item-icon
1729                    slot="${g_.Leading}"
1730                    .size="${this.leading===U_.IconLarge?32:24}"
1731                    .icon="${e.icon}"
1732                ></acorn-internal-list-item-icon>`;case U_.Image:return $`<acorn-internal-list-item-image
1733                    aria-hidden="true"
1734                    slot="${g_.Leading}"
1735                    .imageSrc="${e.imageSrc}"
1736                ></acorn-internal-list-item-image>`;case U_.Badge:return $`<acorn-internal-list-item-badge
1737                    slot="${g_.Leading}"
1738                    .number="${e.badgeNumber}"
1739                    .severity="${e.badgeSeverity}"
1740                ></acorn-internal-list-item-badge>`;default:return $``}}_renderTrailing(){return this.hasTrailing?$`
1741            <acorn-internal-list-item-check
1742                slot="${g_.Trailing}"
1743                .checked="${this.isSelected}"
1744            ></acorn-internal-list-item-check>
1745        `:$``}};Sf([Ht()],If.prototype,"layout",2),Sf([Ht()],If.prototype,"leading",2),Sf([Ht()],If.prototype,"optionData",2),Sf([Ht()],If.prototype,"isSelected",2),Sf([Ht()],If.prototype,"hasTrailing",2),If=Sf([_t({tag:"acorn-combo-box-internal-option"})],If);var Of=Ve.createTranslation({ComboBox:{sv:"Väljare",en:"ComboBox"},DefaultPlaceholder:{sv:"Välj alternativ",en:"Pick option"},Tags:{sv:"Filter",en:"Filters"},Options:{sv:"Alternativ",en:"Options"},Others:{sv:"Övriga",en:"Others"},Close:{sv:"Stäng dialogen",en:"Close dialog"},BusyMessage:{sv:"Upptagen med att ladda alternativ",en:"Busy loading options"},NoResults:{sv:"Inget resultat",en:"No results"},AriaLabel:{sv:"Ange text för att söka i listan",en:"Enter text to search the list"},ClearButtonLabel:{sv:"Rensa textfältet",en:"Clear input"},Selected:{sv:"Vald",en:"Selected"},BadgeA11yLabel:{sv:"Behöver uppmärksamhet: {0} {1}",en:"Needs attention: {0} {1}"},Untitled:{sv:"Saknar beskrivning",en:"Missing description"}}),Df={padding:"0",margin:"16px 0"},Rf={$host:{display:"block",outline:"0 !important",width:"100%","& [data-tag-active]::slotted(div)":{...Yi()}},scrollPane:{height:"100%"},searchFieldWrapper:{top:0,zIndex:1,position:"sticky",display:"flex",alignItems:"center",padding:`1px calc(${vn.Medium} + 4px + 1px) 0`,columnGap:`${vn.Medium}`,backgroundColor:zi.ComponentSpecific.TextField.surface,borderBottomWidth:eo,borderBottomColor:zi.Line.interactive,borderBottomStyle:"solid",boxSizing:"border-box"},searchField:{outlineOffset:"-2px !important",borderWidth:"0",width:"100%",padding:`calc(${vn.Medium} + 4px) 0 calc(${vn.Medium} + ${eo})`,...Qi(),"&::placeholder":{color:zi.Text.Regular.medium},fontSize:kn(16),fontFamily:Cn.Base,fontWeight:$n.Regular,lineHeight:Sn.Narrow,color:zi.Text.Regular.high,caretColor:()=>ai.isRunningTests?"transparent":void 0},icon:{paddingTop:"4px"},tags:{...Df,listStyleType:"none",display:e=>e.tags&&e.tags.length?"block":"none"},tag:{display:"inline-block",marginBottom:"2px"},tagChip:{margin:"0 !important","&[data-tag-active]":{...Yi(),outlineOffset:"-2px"}},optionHeightCalculator:{position:"absolute",visibility:"hidden"},optionList:{...Df,listStyleType:"none",display:e=>e.options.length?"block":"none"},optionGroupListHeadline:{...ko(),margin:"0",lineHeight:"34px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",boxSizing:"border-box",padding:`0 ${vn.Medium}`,backgroundColor:zi.Surface.Brand.lower,borderBottom:`2px solid ${zi.Line.Regular.low}`},optionGroupList:{listStyle:"none",padding:"0",margin:"0"},optionWrapper:{display:"block"},option:{borderBottom:`solid ${zi.Line.Regular.low} 1px`,overflow:"hidden",cursor:"pointer","&:last-of-type":{borderBottom:"none"},'&[aria-disabled="true"]':{opacity:"0.5",cursor:"auto",pointerEvents:"none"},"&[data-option-active]":{outline:`2px solid ${zi.Overlay.tabFocus}`,outlineOffset:"-2px"}},noResultsWrapper:{display:e=>e.options.length?"none":"block",padding:"0 16px",margin:"16px 0"},busyMessageWrapper:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",margin:e=>e.busy?"24px 0px":"0"},busyMessage:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"},spinner:yo(36,zi.Icon.interactive),optionDescription:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"}},Ff="listBox",Lf=class extends Ti{constructor(){super(...arguments),this.options=[],this.tags=[],this.busy=!1,this._itemIndex=-1,this._activeTags=[],this._activeItemIndex=-1,this._groupedOptions={},this._invalidOptions=!1,this._isGroupedList=!1}get _searchField(){return this.shadowRoot.querySelector(".search-field")}get _inputField(){return this.shadowRoot.querySelector("input")}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this.addEventListener("keydown",this.onKeydown),this._activeItemIndex=-1}disconnectedCallback(){this.removeEventListener("keydown",this.onKeydown)}getStyle(){return Rf}render(){var e;return this._buttonSlot.isFilled()&&this._itemIndex++,$`
1746            <acorn-scroll-pane
1747                .focusStrategy="${rf.None}"
1748                track-scroll
1749                class="${this.classes.scrollPane}"
1750            >
1751                <div class="${this.classes.searchFieldWrapper}">
1752                    ${this.textFieldIcon?$`
1753                              <acorn-icon
1754                                  class="type-icon ${this.classes.icon}"
1755                                  icon="${this.textFieldIcon}"
1756                                  color="${Og.Brown}"
1757                                  size="${Jo.Regular}"
1758                              ></acorn-icon>
1759                          `:""}
1760                    <input
1761                        type="text"
1762                        class="${this.classes.searchField}"
1763                        aria-autocomplete="list"
1764                        aria-controls="${Ff}"
1765                        aria-activedescendant="${-1!==this._activeItemIndex?`acornComboBoxItem@${this._activeItemIndex}`:""}"
1766                        aria-label="${Of.AriaLabel}"
1767                        placeholder="${j(this.placeholder)}"
1768                        @input="${this._onSearchFieldInput}"
1769                    />
1770                    ${(null==(e=this._searchField)?void 0:e.value)?$`
1771                              <acorn-internal-icon-button
1772                                  class="${this.classes.icon}"
1773                                  icon="${Zo.XMark}"
1774                                  size="${Jo.XSmall}"
1775                                  aria-label="${Of.ClearButtonLabel}"
1776                                  tabindex="-1"
1777                                  @mousedown="${this._onClearMouseDown}"
1778                                  @click="${this.onClear}"
1779                              ></acorn-internal-icon-button>
1780                          `:""}
1781                    <acorn-icon
1782                        class="${this.classes.icon}"
1783                        icon="${Zo.CaretDown}"
1784                        color="${Og.Brown}"
1785                    ></acorn-icon>
1786                </div>
1787
1788                <slot
1789                    name="${"button"}"
1790                    ?data-tag-active="${this._itemIndex===this._activeItemIndex}"
1791                ></slot>
1792
1793                <ul class="${this.classes.tags}" aria-label="${Of.Tags}">
1794                    ${this.tags.map(e=>(this._itemIndex++,$`
1795                            <li class="${this.classes.tag}">
1796                                <acorn-filter-chip
1797                                    class="${this.classes.tagChip}"
1798                                    id="acornComboBoxItem@${this._itemIndex}"
1799                                    label="${e}"
1800                                    value="${e}"
1801                                    ?checked="${-1!==this._activeTags.indexOf(e)}"
1802                                    ?data-tag-active="${this._itemIndex===this._activeItemIndex}"
1803                                    @click="${this._onToggleTag}"
1804                                ></acorn-filter-chip>
1805                            </li>
1806                        `))}
1807                </ul>
1808                <ul
1809                    role="listbox"
1810                    id="${Ff}"
1811                    aria-label="${Of.Options}"
1812                    class="${this.classes.optionList}"
1813                    @click="${this._onListSelect}"
1814                >
1815                    ${Object.keys(this._groupedOptions).map(e=>$`
1816                            ${this._isGroupedList?$`
1817                                      <li>
1818                                          <h4 class="${this.classes.optionGroupListHeadline}" aria-hidden="true">
1819                                              ${e}
1820                                          </h4>
1821                                      </li>
1822                                  `:null}
1823                            <li>
1824                                <ul class="${this.classes.optionGroupList}" aria-label="${e}">
1825                                    ${this._groupedOptions[e].map(e=>(this._itemIndex++,$`
1826                                            <li
1827                                                role="option"
1828                                                id="acornComboBoxItem@${this._itemIndex}"
1829                                                class="${this.classes.option}"
1830                                                aria-disabled="${!0===e.disabled}"
1831                                                aria-selected="${!0===e.selected}"
1832                                                aria-describedby="selected-option@${this._itemIndex}"
1833                                                ?data-option-active="${this._itemIndex===this._activeItemIndex}"
1834                                                data-option-value="${e.value}"
1835                                            >
1836                                                <acorn-internal-template-result
1837                                                    class="${this.classes.optionWrapper}"
1838                                                    .templateFn="${this.optionTemplateFn}"
1839                                                    .data="${e}"
1840                                                ></acorn-internal-template-result>
1841                                            </li>
1842                                            ${this._ariaDescription(e)?$`<span
1843                                                      id="selected-option@${this._itemIndex}"
1844                                                      class="${this.classes.optionDescription}"
1845                                                      >${Of.Selected}</span
1846                                                  >`:null}
1847                                        `))}
1848                                </ul>
1849                            </li>
1850                        `)}
1851                </ul>
1852
1853                <div class="${this.classes.noResultsWrapper}
1853" aria-live="polite">
1854                    <slot name="no-results">
1855                        <p>${Of.NoResults}</p>
1856                    </slot>
1857                </div>
1858
1859                <div class="${this.classes.busyMessageWrapper}" aria-live="polite">
1860                    ${this.busy?$`
1861                              <span class="${this.classes.busyMessage}">${Of.BusyMessage}</span>
1862                              <span class="${this.classes.spinner}"></span>
1863                          `:null}
1864                </div>
1865            </acorn-scroll-pane>
1866        `}focus(){var e;null==(e=this._inputField)||e.focus()}clearFilters(){this._searchField&&(this._searchField.value=""),this._activeTags=[],this._dispatchFilterChange()}beforeRender(){super.beforeRender(),this._invalidOptions&&(this._isGroupedList=!1,this._groupedOptions=this.options.reduce((e,t)=>{t=Object.assign({},t,{selected:t.value.toString()===this.selectedOption}),!this._isGroupedList&&t.tag&&(this._isGroupedList=!0);const i=t.tag||Of.Others;return(e[i]=e[i]||[]).push(t),e},{}),this._invalidOptions=!1),this._itemIndex=-1}onOptionChange(){this._invalidOptions=!0}onValueChange(){this._invalidOptions=!0}onActiveItemIndexChange(){let e;switch(this._activeItemType()){case"option":case"tag":e=this._getActiveItemElement();break;case"noResultButton":e=this.noResultsElement,this._makeButtonIndexActive(this._activeItemIndex-this.tags.length);break;case"button":e=this._buttonSlot.content;break;case"searchField":e=this._searchField}e&&e.scrollIntoView({block:"center"})}onKeydown(e){var t,i,n;switch(e.key){case ye.Enter:switch(this._activeItemType()){case"noResultButton":const o=null==(t=this.noResultsElement)?void 0:t.getButtons()[this._activeItemIndex-this.tags.length];null==o||o.click(),this._activeItemIndex=-1;break;case"button":const r=null==(n=null==(i=this._buttonSlot.content)?void 0:i.querySelector("slot"))?void 0:n.assignedElements()[0];null==r||r.click();break;case"tag":this._onToggleTag(e);break;case"option":const a=this._getActiveItemElement();if("true"===(null==a?void 0:a.getAttribute("aria-disabled")))return;this._invalidOptions=!0,this._select.emit({value:null==a?void 0:a.getAttribute("data-option-value")})}e.preventDefault();break;case ye.ArrowDown:const o=this.options.length+this.tags.length-1,r=this._showNoResultElement()&&this.noResultsElement?this.noResultsElement.getButtons().length:0,a=this._buttonSlot.isFilled()?1:0;this._activeItemIndex=Math.min(o+a+r,this._activeItemIndex+1),e.preventDefault();break;case ye.ArrowUp:this._activeItemIndex=Math.max(-1,this._activeItemIndex-1),e.preventDefault()}}onClear(){this._searchField&&(this._searchField.value="",this._searchField.focus()),this._dispatchFilterChange()}_onClearMouseDown(e){e.preventDefault()}_activeItemType(){return this._buttonSlot.isFilled()&&0===this._activeItemIndex?"button":this._showNoResultElement()&&this._activeItemIndex>=this.tags.length?"noResultButton":this.tags.length&&-1!==this._activeItemIndex&&this._activeItemIndex<this.tags.length?"tag":-1!==this._activeItemIndex&&this._activeItemIndex>=this.tags.length?"option":-1===this._activeItemIndex&&this._searchField?"searchField":void 0}_makeButtonIndexActive(e){var t;const i=null==(t=this.noResultsElement)?void 0:t.getButtons();i&&(i.forEach(e=>e.removeAttribute("data-active")),i[e].setAttribute("data-active",""))}_dispatchFilterChange(){"tag"!==this._activeItemType()&&(this._activeItemIndex=-1),this._filter.emit({query:this._searchField?this._searchField.value:"",tags:this._activeTags})}_onSearchFieldInput(e){e.stopPropagation(),this._dispatchFilterChange()}_onToggleTag(e){var t;const i="keydown"===e.type,n=this._getActiveItemElement(),o=i&&n?n:e.target,r=o.getAttribute("value");r&&(-1===this._activeTags.indexOf(r)?(this._activeTags=[...this._activeTags,r],i&&(o.checked=!0)):(this._activeTags=this._activeTags.filter(e=>e!==r),i&&(o.checked=!1))),e.preventDefault(),null==(t=this._searchField)||t.focus(),this._dispatchFilterChange()}_onListSelect(e){e.preventDefault(),this._invalidOptions=!0;let t=e.target;for(;t&&!t.hasAttribute("data-option-value")&&t!==e.currentTarget;)t=t.parentElement;const i=null==t?void 0:t.getAttribute("data-option-value"),n="true"===(null==t?void 0:t.getAttribute("aria-disabled"));i&&!n&&this._select.emit({value:i})}_getActiveItemElement(){return this.shadowRoot.querySelector(`#acornComboBoxItem\\40 ${this._activeItemIndex}`)}_showNoResultElement(){return!this.options.length}_ariaDescription(e){return!ai.isIOS&&!ai.isMac&&!0===e.selected}};function Af(e){return/^\d+$/.test(e.height)?`${e.height}px`:e.height}Sf([Ht()],Lf.prototype,"placeholder",2),Sf([Ht()],Lf.prototype,"options",2),Sf([Ht()],Lf.prototype,"optionTemplateFn",2),Sf([Ht()],Lf.prototype,"selectedOption",2),Sf([Ht()],Lf.prototype,"tags",2),Sf([Ht()],Lf.prototype,"busy",2),Sf([Ht()],Lf.prototype,"textFieldIcon",2),Sf([Ht()],Lf.prototype,"noResultsElement",2),Sf([ri("button",{select:".button-container"})],Lf.prototype,"_buttonSlot",2),Sf([Ht()],Lf.prototype,"_activeTags",2),Sf([Ht()],Lf.prototype,"_activeItemIndex",2),Sf([Ht()],Lf.prototype,"_groupedOptions",2),Sf([ft({bubbles:!0,composed:!0})],Lf.prototype,"_filter",2),Sf([ft()],Lf.prototype,"_select",2),Sf([wi("options",{triggerOn:pi.ChangeAndConnect})],Lf.prototype,"onOptionChange",1),Sf([wi("selectedOption",{triggerOn:pi.ChangeAndConnect})],Lf.prototype,"onValueChange",1),Sf([wi("_activeItemIndex")],Lf.prototype,"onActiveItemIndexChange",1),Sf([Pe()],Lf.prototype,"onKeydown",1),Sf([Pe()],Lf.prototype,"onClear",1),Sf([Pe()],Lf.prototype,"_onClearMouseDown",1),Sf([Pe()],Lf.prototype,"_onSearchFieldInput",1),Sf([Pe()],Lf.prototype,"_onToggleTag",1),Sf([Pe()],Lf.prototype,"_onListSelect",1),Lf=Sf([_t({tag:"acorn-combo-box-option-list-legacy",delegatesFocus:!0})],Lf);var Mf={$host:{display:"block",width:"100%"},textbox:{"--acorn-item-padding":"0",display:"flex",alignItems:"center",columnGap:`${vn.Medium}`,padding:`0 ${vn.Medium}`,opacity:e=>e.disabled?"0.5":"1",...ao(function(e){return e.shouldShowInvalidState()?to.Invalid:e._hasFormControlFocusState()?to.Focused:void 0}),backgroundColor:zi.ComponentSpecific.TextField.surface,boxSizing:"border-box",maxWidth:Xn,position:"relative",overflow:"hidden",cursor:e=>e.disabled?"default":"pointer",lineHeight:e=>`calc(${Af(e)} - ${eo})`,height:e=>Af(e),pointerEvents:e=>e.disabled?"none":void 0,...Qi()},selectedOptionWrapper:{pointerEvents:"none",lineHeight:"1",width:"100%",overflow:"hidden"},accessibilityLabelSelectedOption:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"},placeholder:{padding:`calc(${vn.Medium} + ${eo}) 0`,fontSize:kn(16),fontFamily:Cn.Base,fontWeight:$n.Regular,lineHeight:Sn.Narrow,color:zi.Text.Regular.medium,flex:"1"},emptySelectedOption:{flex:"1"},buttonContainer:{margin:"3px 0 -16px"}},Bf=class extends xt{constructor(){super(...arguments),this.optionId="",this.label="",this.subLabel="",this.value="",this.subValue="",this.detail="",this.secondary
1866Detail="",this.accessibilityLabel="",this.icon="",this.disabled=!1,this.badgeNumber=Number.NaN,this.badgeSeverity=Bo.Default,this.tagLabel="",this.tagSeverity=cf.Default,this.tagType=cf.Default,this.imageSrc="",this.imageAlt=""}};Bf.modelName="comboBoxOption",Sf([zt({type:Ni})],Bf.prototype,"subLabel",2),Sf([zt({type:Ni})],Bf.prototype,"value",2),Sf([zt({type:Ni})],Bf.prototype,"subValue",2),Sf([zt({type:Ni})],Bf.prototype,"detail",2),Sf([zt({type:Ni})],Bf.prototype,"secondaryDetail",2),Sf([zt({type:String})],Bf.prototype,"accessibilityLabel",2),Sf([zt({type:Boolean})],Bf.prototype,"disabled",2),Sf([zt({type:Number})],Bf.prototype,"badgeNumber",2),Sf([zt({type:Bo})],Bf.prototype,"badgeSeverity",2),Sf([zt({type:cf})],Bf.prototype,"tagSeverity",2),Sf([zt({type:cf})],Bf.prototype,"tagType",2);var Pf=class extends xt{constructor(){super(...arguments),this.label=""}};Pf.modelName="comboBoxOptionGroup",Sf([zt({type:Bf})],Pf.prototype,"children",2);var Nf={$host:{display:"block"},$$slotted:{"&(acorn-button[data-active])":{...Yi()}}},Hf=class extends Ti{getStyle(){return Nf}render(){return $`
1867            ${this._deprecatedTextSlot.isFilled()?this._deprecatedTextSlot:null}
1868            ${this._defaultSlot.isFilled()?this._defaultSlot:null}
1869            ${this._defaultSlot.isFilled()||this._deprecatedTextSlot.isFilled()?null:$`<p>${Of.NoResults}</p>`}
1870        `}getButtons(){return[...this.querySelectorAll("*")].filter(e=>Qt(e,Dr))}};Sf([ri("text")],Hf.prototype,"_deprecatedTextSlot",2),Sf([ri("default")],Hf.prototype,"_defaultSlot",2),Hf=Sf([_t({tag:"acorn-combo-box-no-results"})],Hf);var zf=class{constructor(e){this._options=e}update(e){this._dataModel=e,this._sizeReport=this._calculateReport(this._dataModel)}getVisibleItemsData(e){return this._dataModel?this._dataModel.getViewData().map((t,i)=>{const n=this.getGroupVisibleBoundsIntersection(i,e),o=(null==n?void 0:n.isVisible)?t.items.filter((e,t)=>t>=n.visibleItemsIndexFrom&&t<=n.visibleItemsIndexTo):[];return{...t,visibleItemRange:n,items:o}}):[]}
1870getHeight(){var e;return(null==(e=this._sizeReport)?void 0:e.height)||0}getGroupVisibleBoundsIntersection(e,t){if(!this._sizeReport)return;const i=this._sizeReport.groups[e].item,n=Math.max(t.top,i.top),o=Math.min(t.bottom,i.bottom),r=n<o;if(!r)return Object.freeze({isVisible:r,visibleItemsIndexFrom:0,visibleItemsIndexTo:0,visibleItemsOffsetTop:i.height,visibleItemsOffsetBottom:0});const a=n-i.top,s=o-i.top,l=Math.floor(a/this._options.itemHeight),c=Math.ceil(s/this._options.itemHeight),d=l*this._options.itemHeight,h=i.height-c*this._options.itemHeight;return Object.freeze({isVisible:!0,visibleItemsIndexFrom:l,visibleItemsIndexTo:c,visibleItemsOffsetTop:d,visibleItemsOffsetBottom:h})}_calculateReport(e){let t=this._options.groupOffset;const i=e.getViewData().map(e=>{const i=t;e.heading&&(t+=this._options.headingHeight);const n=t,o=e.items.length*this._options.itemHeight;t+=o;const r=t,a=t,s=a-i;return Object.freeze({top:i,bottom:a,height:s,item:Object.freeze({top:n,bottom:r,height:o})})});return Object.freeze({top:0,bottom:t,height:t,groups:i})}},Wf=Ve.createTranslation({SearchLabel:{sv:"Ange text för att söka i listan",en:"Enter text to search the list"},NoResults:{sv:"Inget resultat",en:"No results"},BusyMessage:{sv:"Laddar innehåll",en:"Loading content"},Untitled:{sv:"Saknar beskrivning",en:"Missing description"}}),Vf=class e{constructor(e=[]){this._totalRowCount=0,this._data=[...e]}getViewData(e){if(this._viewData)return this._viewData;const t=this._data.filter(e=>e instanceof Bf),i=this._data.filter(e=>e instanceof Pf).map(({label:e,children:t,...i})=>({heading:e,items:t,...i}));return this._viewData=t.length?[{items:t},...i]:i,this._viewData=this._applyRowIndex(this._viewData),e&&(this._viewData=this._limitNumOptions(this._viewData,e)),this._viewData}getFirstOption(){return this.getViewData()[0].items[0]}getLastOption(){const e=this.getViewData(),t=e[e.length-1].items;return t[t.length-1]}size(){return this._totalRowCount}set(t){return new e(t)}_limitNumOptions(e,t){let i=0;return e.map(e=>{if(i>=t)return;if(i+e.items.length<=t)return i+=e.items.length,e;const n=e.items.splice(0,t-i);return i=t,{...e,items:n}}).filter(e=>!!e)}_applyRowIndex(e){let t=1;const i=e.map(e=>(e.items.map(e=>(e.index=t++,e)),e));return this._totalRowCount=t-1,i}},jf=`solid ${zi.Line.Regular.low} 1px`;var Gf={$host:{outline:"0 !important",display:"flex",overflow:"hidden",width:"100%"},wrapper:{display:"flex",flexDirection:"column",flex:"1 1 auto",width:"100%",maxHeight:function(e){return e.overlayMaxHeight?`${e.overlayMaxHeight}px`:"none"}},searchFieldWrapper:{flex:"0 0 48px",display:"flex",alignItems:"center",backgroundColor:zi.ComponentSpecific.TextField.surface,borderBottomColor:zi.Line.interactive,borderBottomStyle:"solid",borderBottomWidth:"2px",gap:"8px",paddingRight:"16px",boxSizing:"border-box"},searchField:{...Qi(),outlineOffset:"-2px !important",borderWidth:"0",width:"100%",padding:"16px",boxSizing:"border-box",fontSize:kn(16),fontFamily:Cn.Base,fontWeight:$n.Regular,lineHeight:Sn.Narrow,color:zi.Text.Regular.high,caretColor:()=>ai.isRunningTests?"transparent":void 0,"&::placeholder":{color:zi.Text.Regular.medium}},expandArrow:{pointerEvent:"none"},scrollpane:{flex:"1 1 auto",overflowY:"auto",overscrollBehavior:"none",width:"100%"},boundsObserver:{overflow:"hidden"},groupHeading:{...Yn(),color:zi.Text.Regular.high,lineHeight:Sn.Base,minHeight:"48px",margin:"0 16px",display:"flex",alignItems:"center"},groupHeadingLabel:{textOverflow:"ellipsis",whiteSpace:e=>e.layout===G_.Dynamic?"normal":"nowrap",overflow:"hidden",padding:"8px 0"},option:{position:"relative",padding:"0 8px",backgroundClip:"padding-box",borderTop:jf,marginTop:"-1px","&:last-child":{borderBottom:jf},"&[highlight-on-hover]":{cursor:"pointer","&:hover":{backgroundColor:zi.Overlay.hover,borderColor:"transparent",'& + [role="option"]':{borderTopColor:"transparent"}}},"&[active-descendant]":{outline:`2px solid ${zi.Overlay.tabFocus}`,outlineOffset:"-2px"}},noResultMessage:{padding:"16px",textAlign:"center"},busyMessageWrapper:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",margin:"24px 0px"},busyMessage:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"},spinner:yo(36,zi.Icon.interactive)},qf="listbox",Uf="searchField",Kf="scrollpane",Yf="unset",Xf=class extends Ti{constructor(){super(...arguments),this.layout=G_.OneLine,this.optionData=[],this.noResultMessage=Wf.NoResults,this.busy=!1,this._activeDescendant=Yf,this._showClearButton=!1,this._dataModel=new Vf}get _searchFieldElement(){return this.shadowRoot.getElementById(Uf)}get _flattenedOptions(){return this.optionData.flatMap(e=>e instanceof Pf?e.children:e)}get _activeIndex(){return this._flattenedOptions.findIndex(e=>e.optionId===this._activeDescendant)}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this._activeDescendant=Yf,Ze.waitForReady(()=>{var e;this.isConnected&&(null==(e=this._searchFieldElement)||e.focus())})}getStyle(){return Gf}render(){var e;return null==(e=this._itemsSizeReport)||e.update(this._dataModel),$`
1871            <div class="${this.classes.wrapper}">
1872                <div class="${this.classes.searchFieldWrapper}">
1873                    <input
1874                        type="text"
1875                        role="combobox"
1876                        autocomplete="off"
1877                        aria-autocomplete="list"
1878                        id="${Uf}"
1879                        aria-controls="${qf}"
1880                        aria-activedescendant="${this._activeDescendant}"
1881                        aria-label="${Wf.SearchLabel}"
1882                        class="${this.classes.searchField}"
1883                        placeholder="${j(this.placeholder)}"
1884                        @input="${this._onSearchFieldInput}"
1885                        @keydown="${this._onKeydown}"
1886                        @blur="${this._onSearchFieldBlur}"
1887                    />
1888                    ${this._renderClearButton()}
1889                    <acorn-icon
1890                        class="${this.classes.expandArrow}"
1891                        icon="${Zo.CaretDown}"
1892                        color="${Og.Brown}"
1893                        size="${Jo.Regular}"
1894                    ></acorn-icon>
1895                </div>
1896                <div id="${Kf}" class="${this.classes.scrollpane}" tabindex="-1">
1897                    ${this._itemsSizeReport?this._renderTruncatedOptions():this._renderDynamicOptions()}
1898                    <div aria-live="polite">${this._renderMessage()}</div>
1899                </div>
1900            </div>
1901        `}setSearchQuery(e){e&&this._searchFieldElement&&(this._searchFieldElement.value=e,this._searchFieldElement.setSelectionRange(e.length,e.length),this._onSearchFieldInput())}onLayoutChange(){this.layout!==G_.Dynamic&&this.layout!==G_.Stacked?this._itemsSizeReport=new zf({headingHeight:48,itemHeight:q_.get(this.layout),groupOffset:0}):this._itemsSizeReport=void 0}onOptionDataChange(){this._dataModel=this._dataModel.set(this.optionData)}afterRender(){var e;if(this._hasActiveDescendant()){const t=this.shadowRoot.getElementById(Kf);this._dataModel.getFirstOption().optionId===this._activeDescendant?t.scrollTo(0,0):this._dataModel.getLastOption().optionId===this._activeDescendant?t.scrollTop=t.scrollHeight:null==(e=this.shadowRoot.getElementById(this._activeDescendant))||e.scrollIntoView({block:"nearest"})}}_renderClearButton(){if(this._showClearButton)return $`
1902            <acorn-internal-icon-button
1903                aria-hidden="true"
1904                accessibility-label="Clear"
1905                icon="${Zo.XMark}"
1906                size="${Jo.Regular}"
1907                tabindex="-1"
1908                @click="${this._onClear}"
1909            ></acorn-internal-icon-button>
1910        `}_renderDynamicOptions(){if(this.busy)return null;const e=this._dataModel.getViewData(this.maxDisplayedOptions);return $`
1911            <div role="listbox" aria-controls="${qf}" @click="${this._onOptionListClick}">
1912                ${e.map(this._renderOptionGroup)}
1913            </div>
1914        `}_renderTruncatedOptions(){var e;if(this.busy)return null;
1914const t=this._visibleViewBoundsDetails&&this._itemsSizeReport?this._itemsSizeReport.getVisibleItemsData(this._visibleViewBoundsDetails).map(this._renderOptionGroup):[];return $`
1915            <acorn-internal-bounds-observer
1916                class="${this.classes.boundsObserver}"
1917                .height="${(null==(e=this._itemsSizeReport)?void 0:e.getHeight())||0}"
1918                @boundsChange="${this._visibleViewBoundsChange}"
1919            >
1920                <div role="listbox" aria-controls="${qf}" @click="${this._onOptionListClick}">
1921                    ${t}
1922                </div>
1923            </acorn-internal-bounds-observer>
1924        `}_renderMessage(){return this.busy?$`
1925                <div class="${this.classes.busyMessageWrapper}">
1926                    <span class="${this.classes.busyMessage}">${Wf.BusyMessage}</span>
1927                    <span class="${this.classes.spinner}"></span>
1928                </div>
1929            `:this.optionData.length?void 0:$`<div class="${this.classes.noResultMessage}">${this.noResultMessage}</div>`}_renderOptionGroup(e,t){const{visibleItemRange:i,items:n,heading:o}=e,r=$`
1930            ${(null==i?void 0:i.visibleItemsOffsetTop)?$`<div style="height:${i.visibleItemsOffsetTop}px;"></div>`:null}
1931            ${n.flatMap(this._renderOption)}
1932            ${(null==i?void 0:i.visibleItemsOffsetBottom)?$`<div style="height:${i.visibleItemsOffsetBottom}px;"></div>`:null}
1933        `;return o?$`
1934            <div role="group" aria-labelledby="group@${t}">
1935                ${o?$`<div role="presentation" id="group@${t}" class="${this.classes.groupHeading}">
1936                          <div class="${this.classes.groupHeadingLabel}">${o}</div>
1937                      </div>`:null}
1938                ${r}
1939            </div>
1940        `:r}_renderOption(e){const t=e.optionId===this.selectedOptionId;return $` <acorn-combo-box-internal-option
1941            role="option"
1942            id="${e.optionId}"
1943            aria-setsize="${this._dataModel.size()}"
1944            aria-posinset="${j(e.index?e.index:void 0)}"
1945            aria-disabled="${e.disabled?"true":"false"}"
1946            aria-selected="${t?"true":"false"}"
1947            aria-label="${x_.generateAccessibilityLabel(e,this.layout,this.leading)}"
1948            class="${this.classes.option}"
1949            ?highlight-on-hover="${!e.disabled}"
1950            ?active-descendant="${e.optionId&&e.optionId===this._activeDescendant}"
1951            .optionData="${e}"
1952            .isSelected="${t}"
1953            .layout="${this.layout}"
1954            .leading="${this.leading}"
1955            .hasTrailing="${!!this.selectedOptionId}"
1956        >
1957        </acorn-combo-box-internal-option>`}
1957_visibleViewBoundsChange(e){this._visibleViewBoundsDetails=e.detail;const t=!this._visibleViewBoundsDetails.includesEnd;t||this._reachedEnd.emit();let i=this._dataModel;const n=Object.freeze({getVisibilityReport:()=>null==i?void 0:i.getViewData().map((e,t)=>{var i;return null==(i=this._itemsSizeReport)?void 0:i.getGroupVisibleBoundsIntersection(t,this._visibleViewBoundsDetails)}),hasMoreSteps:t});this._visibleItemRangeChange.emit(n),i=void 0}_onSearchFieldInput(e){var t,i;null==e||e.stopPropagation(),this._activeDescendant=Yf,this._showClearButton=!!this._searchFieldElement&&(null==(t=this._searchFieldElement)?void 0:t.value.trim().length)>0,this._query.emit({value:(null==(i=this._searchFieldElement)?void 0:i.value)||""})}_onSearchFieldBlur(){this._activeDescendant=Yf}_onClear(){this._searchFieldElement&&(this._searchFieldElement.value="",this._searchFieldElement.focus()),this._query.emit({value:""})}_onOptionListClick(e){e.target instanceof HTMLElement&&"false"===e.target.getAttribute("aria-disabled")&&(this._activeDescendant=e.target.getAttribute("id")||Yf,this._selectActiveOption())}_onKeydown(e){switch(e.key){case"ArrowUp":if(e.preventDefault(),!this._hasActiveDescendant()){this._focusLastOption();break}this._focusPreviousOption();break;case"ArrowDown":if(e.preventDefault(),!this._hasActiveDescendant()){this._focusFirstOption();break}this._focusNextOption();break;case"Home":e.preventDefault(),this._focusFirstOption();break;case"End":e.preventDefault(),this._focusLastOption();break;case"Enter":e.preventDefault(),this._selectActiveOption();break;case"Tab":this._selectActiveOption()}}_focusFirstOption(){const e=this._flattenedOptions.find(e=>e);e&&(this._activeDescendant=e.optionId)}_focusLastOption(){const e=this._flattenedOptions.reverse().find(e=>e);e&&(this._activeDescendant=e.optionId)}_focusNextOption(){const e=this._flattenedOptions.slice(this._activeIndex+1).find(e=>e);e?this._activeDescendant=e.optionId:this._focusFirstOption()}_focusPreviousOption(){const e=this._flattenedOptions.slice(0,this._activeIndex).reverse().find(e=>e);e?this._activeDescendant=e.optionId:this._focusLastOption()}_selectActiveOption(){const e=this._flattenedOptions.find(e=>e.optionId===this._activeDescendant);e&&!e.disabled&&this._activeDescendant&&this._activeDescendant!==Yf&&this._select.emit({value:this._activeDescendant})}_hasActiveDescendant(){return this._activeDescendant!==Yf}};Sf([gt(),zt({type:Number})],Xf.prototype,"overlayMaxHeight",2),Sf([gt(),zt({type:Ef})],Xf.prototype,"layout",2),Sf([gt(),zt({type:U_})],Xf.prototype,"leading",2),Sf([Ht()],Xf.prototype,"optionData",2),Sf([Ht()],Xf.prototype,"selectedOptionId",2),Sf([Ht()],Xf.prototype,"placeholder",2),Sf([Ht()],Xf.prototype,"noResultMessage",2),Sf([Ht()],Xf.prototype,"maxDisplayedOptions",2),Sf([Ht()],Xf.prototype,"busy",2),Sf([ft()],Xf.prototype,"_query",2),Sf([ft()],Xf.prototype,"_select",2),Sf([ft()],Xf.prototype,"_reachedEnd",2),Sf([ft()],Xf.prototype,"_visibleItemRangeChange",2),Sf([Ht()],Xf.prototype,"_activeDescendant",2),Sf([Ht()],Xf.prototype,"_showClearButton",2),Sf([Ht()],Xf.prototype,"_visibleViewBoundsDetail
1957s",2),Sf([Ht()],Xf.prototype,"_itemsSizeReport",2),Sf([Ht()],Xf.prototype,"_dataModel",2),Sf([wi("layout",{triggerOn:pi.ChangeAndConnect})],Xf.prototype,"onLayoutChange",1),Sf([wi("optionData")],Xf.prototype,"onOptionDataChange",1),Sf([Pe()],Xf.prototype,"_renderOptionGroup",1),Sf([Pe()],Xf.prototype,"_renderOption",1),Sf([Pe()],Xf.prototype,"_visibleViewBoundsChange",1),Sf([Pe()],Xf.prototype,"_onSearchFieldInput",1),Sf([Pe()],Xf.prototype,"_onSearchFieldBlur",1),Sf([Pe()],Xf.prototype,"_onClear",1),Sf([Pe()],Xf.prototype,"_onOptionListClick",1),Sf([Pe()],Xf.prototype,"_onKeydown",1),Sf([Pe()],Xf.prototype,"_focusFirstOption",1),Sf([Pe()],Xf.prototype,"_focusLastOption",1),Sf([Pe()],Xf.prototype,"_focusNextOption",1),Sf([Pe()],Xf.prototype,"_focusPreviousOption",1),Sf([Pe()],Xf.prototype,"_selectActiveOption",1),Xf=Sf([_t({tag:"acorn-combo-box-option-list",delegatesFocus:!0})],Xf);var Qf=class extends _f{};Qf=Sf([_t({tag:"acorn-combo-box-option-template"})],Qf);var Zf=class extends _f{};Zf=Sf([_t({tag:"acorn-combo-box-selected-option-template"})],Zf);var Jf="errorAndHintWrapper",ex="comboBoxElement",tx="optionListElement",ix=window.matchMedia("(max-width: 500px)"),nx=class extends Ps{constructor(){super(...arguments),this.optionData=[],this.layout="one-line",this.height=Qn,this.label="",this.icon=Zo.MagnifyingGlass,this.placeholder=Of.DefaultPlaceholder,this.noResultMessage=Of.NoResults,this.busy=!1,this.tags=[],this.options=[],this.overlayPositionStrategy=Ml.Auto,this.maxDisplayedOptions=100,this._optionListIsOpen=!1,this._leavingOverlayBackwards=!1}get selectedOption(){if(this._useLegacy)return this._getLegacySelectedOption()}get modelElementType(){return"text"}get _comboboxElement(){return this.shadowRoot.getElementById(ex)}get _optionList(){return this.shadowRoot.getElementById(tx)}get _useLegacy(){return this._optionTemplateSlot.isFilled()}get _isNarrowScreenMode(){return ix.matches||this.overlayPositionStrategy===Ml.Cover}getStyle(){return ge({},super.getStyle(),Mf)}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this.addEventListener("focusout",this._onFocusOut),ix.addEventListener("change",this._onScreenSizeChange)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this._onFocusOut),ix.removeEventListener("change",this._onScreenSizeChange)}render(){return $`
1958            <div class="${this.classes.formFieldWrapper}">
1959                ${this.labelTemplate($`
1960                        <label class="${this.classes.label}" @click="${this._onOpenDialog}">
1961                            <span class="${this.classes.labelText}">${this.label}</span>
1962                        </label>
1963                    `,ex,()=>this._comboboxElement.focus())}
1964                <div
1965                    role="combobox"
1966                    tabindex="${this._shouldHaveTabIndex()?"0":"-1"}"
1967                    id="${ex}"
1968                    class="${this.classes.textbox}"
1969                    aria-label="${j(this.ariaLabel||this.label)}"
1970                    aria-describedby="${Jf}"
1971                    aria-disabled="${this.disabled?"true":"false"}"
1972                    aria-readonly="${this.readOnly?"true":"false"}"
1973                    aria-invalid="${this.shouldShowInvalidState()}"
1974                    aria-expanded="${this._optionListIsOpen}"
1975                    aria-controls="${tx}"
1976                    @click="${this._onOpenDialog}"
1977                    @keydown="${this._onTextboxInput}"
1978                    @focus="${this._onTextboxFocusStateChange}"
1979                    @blur="${this._onTextboxFocusStateChange}"
1980                >
1981                    ${this.icon?$`<acorn-icon
1982                              class="type-icon"
1983                              icon="${this.icon}"
1984                              color="${Og.Brown}"
1985                              size="${Jo.Regular}"
1986                          ></acorn-icon>`:""}
1987                    ${this._useLegacy?this._renderLegacySelectedOption():this._renderSelectedOption()}
1988                    <acorn-icon
1989                        icon="${Zo.CaretDown}"
1990                        size="${Jo.Regular}"
1991                        color="${Og.Brown}"
1992                    ></acorn-icon>
1993                </div>
1994                <div id="${Jf}">${this.hintTemplate()} ${this.errorTemplate()}</div>
1995            </div>
1996            ${this._isNarrowScreenMode?this._renderBottomSheet():this._renderPopover()}
1997        `}focus(e){super.focus(e),this._onTextboxFocusStateChange()}reset(){var e;super.reset(),null==(e=this._optionList)||e.clearFilters()}afterRender(){this.updateValidity()}onIconChange(){null!==this.icon&&void 0!==this.icon||(this.icon=Zo.MagnifyingGlass)}onValueChange(e,t,i){i&&this._filter.emit({query:"",tags:[]}),""===this.value&&(this._lastSelectedOption=void 0),this.updateValidity(),super.updateFormValue(this.value)}updateValidity(){const e={};this.required&&!this.value&&(e.valueMissing=!0),super.updateValidity(e)}getFocusElement(){return this._comboboxElement}_getOverlayMaxHeight(){return this._useLegacy?this.overlayMaxHeight:Number.MAX_SAFE_INTEGER}_renderSelectedOption(){var e;if(!(null==(e=this.value)?void 0:e.toString().length))return this._selectedOption=void 0,$`<span class="${this.classes.placeholder}">${this.placeholder}</span>`;const t=this.optionData.flatMap(e=>e instanceof Pf?e.children:e).find(e=>e.optionId===this.value.toString());if(t&&(this._selectedOption=t),!this._selectedOption)return $`<span class="${this.classes.emptySelectedOption}"></span>`;const i=this._getInternalSelectedOptionLayout();return $`
1998            <div class="${this.classes.selectedOptionWrapper}">
1999                <div class="${this.classes.accessibilityLabelSelectedOption}">
2000                    ${x_.generateAccessibilityLabel(this._selectedOption,i,this.leading)}
2001                </div>
2002                <acorn-combo-box-internal-option
2003                    .optionData="${this._selectedOption}"
2004                    .layout="${i}"
2005                    .leading="${this.leading}"
2006                >
2007                </acorn-combo-box-internal-option>
2008            </div>
2009        `}_renderLegacySelectedOption(){const e=this._getLegacySelectedOption();return e?$`
2010            <div class="${this.classes.selectedOptionWrapper}">
2011                <acorn-internal-template-result
2012                    .templateFn="${(this._selectedOptionTemplateSlot.content||this._optionTemplateSlot.content).templateFn()}"
2013                    .data="${e}"
2014                ></acorn-internal-template-result>
2015            </div>
2016        `:$`<span class="${this.classes.placeholder}">${this.placeholder}</span>`}_renderPopover(){return $`
2017            <acorn-internal-popover
2018                .open="${this._optionListIsOpen}"
2019                .label="${this.label}"
2020                alignment="${Nl.Stretch}"
2021                position-strategy="${this.overlayPositionStrategy}"
2022                anchor-strategy="${Bl.Inside}"
2023                max-height="${j(this._getOverlayMaxHeight())}"
2024                @requestReposition="${this._onOptionListReposition}"
2025                @close="${this._onOptionListClose}"
2026                @keydown="${this._onKeydown}"
2027                @openComplete="${this._onOptionListOpenComplete}"
2028                @openBegin="${this._onLegacyTransitionOpenBegin}"
2029                @closeComplete="${this._legacyTransitionCloseComplete.emit}"
2030            >
2031                ${this._useLegacy?this._renderLegacyDialog():this._renderDialog()}
2032            </acorn-internal-popover>
2033        `}_renderBottomSheet(){return $`
2034            <acorn-internal-bottom-sheet
2035                .scrollOverflowContent="${!1}"
2036                .open="${this._optionListIsOpen}"
2037                .label="${this.label}"
2038                @close="${this._onOptionListClose}"
2039                @openBegin="${this._onLegacyTransitionOpenBegin}"
2040                @closeComplete="${this._legacyTransitionCloseComplete.emit}"
2041            >
2042                ${this._useLegacy?this._renderLegacyDialog():this._renderDialog()}
2043            </acorn-internal-bottom-sheet>
2044        `}_renderDialog(){if(!this._optionListIsOpen)return $``;const e=this._isNarrowScreenMode?void 0:this.overlayMaxHeight||600,t=this._getInternalOptionLayout();return $`
2045            <acorn-combo-box-option-list
2046                id="${tx}"
2047                .layout="${t}"
2048                .leading="${this.leading}"
2049                .optionData="${this.optionData}"
2050                .selectedOptionId="${this.value}"
2051                .overlayMaxHeight="${e}"
2052                .noResultMessage="${this.noResultMessage}"
2053                .maxDisplayedOptions="${this.maxDisplayedOptions}"
2054                .busy="${this.busy}"
2055                @reachedEnd="${this._optionListEndReached.emit}"
2056                @query="${this._onOptionListQuery}"
2057                @select="${this._onOptionListSelect}"
2058                @visibleItemRangeChange="${this._visibleItemRangeChange.emit}"
2059            >
2060            </acorn-combo-box-option-list>
2061        `}_renderLegacyDialog(){return $`
2062            <acorn-combo-box-option-list-legacy
2063                role="listbox"
2064                id="${tx}"
2065                .optionTemplateFn="${this._optionTemplateSlot.content?this._optionTemplateSlot.content.templateFn():null}"
2066                .placeholder="${this.placeholder}"
2067                .options="${this.options}"
2068                .selectedOption="${this.value}"
2069                .tags="${this.tags}"
2070                .selectedOptionHeight="${this.height}"
2071                .busy="${this.busy}"
2072                .textFieldIcon="${this.icon}"
2073                .noResultsElement="${this._noResultsSlot.isFilled()?this._noResultsSlot.content:void 0}"
2074                @reachedEnd="${this._optionListEndReached.emit}"
2075                @select="${this._onOptionListSelect}"
2076            >
2077                ${this._buttonSlot.isFilled()?$`<div class="${this.classes.buttonContainer}">${this._buttonSlot}</div>`:null}
2078                ${this._noResultsSlot.isFilled()?$`<div slot="${"no-results"}">${this._noResultsSlot}</div>`:null}
2079            </acorn-combo-box-option-list-legacy>
2080        `}_getLegacySelectedOption(){const e=this.options.find(e=>e.value.toString()===this.value.toString());return e?(this._lastSelectedOption=e,e):this._lastSelectedOption}_onScreenSizeChange(){this.invalidate()}_onTextboxFocusStateChange(){const e=this._optionListIsOpen||this.shadowRoot.activeElement===this._comboboxElement;super.updateFormControlFocusState(e)}_onFocusOut(){this._leavingOverlayBackwards=!1}_onKeydown(e){this._useLegacy&&e.key===ye.Tab&&(e.shiftKey&&(this._leavingOverlayBackwards=!0),this._onOptionListClose(e))}_onOpenDialog(e){if(e.preventDefault(),!this.disabled&&!this.readOnly){this._dialogOpen.emit().defaultPrevented||(this._optionListIsOpen=!0)}}_onTextboxInput(e){if(!this.disabled&&!this.readOnly){if(1===e.key.length){this._dialogOpen.emit().defaultPrevented||(this._optionListIsOpen=!0,Ze.waitForReady(()=>{const t=this.shadowRoot.getElementById(tx);t instanceof Xf&&t.setSearchQuery(e.key.trim())}))}e.key===ye.Space&&e.preventDefault()}}_onOptionListClose(e){e.detail.returnFocus&&this._comboboxElement.focus(),this._closeOptionList();const t=new CustomEvent("query",{detail:{value:""}});this._onOptionListQuery(t)}_onOptionListQuery(e){this._queryChange.emit({query:e.detail.value})}_onOptionListSelect(e){this.value=e.detail.value,this.dispatchEvent(bs()),this.dispatchEvent(vs()),this._comboboxElement.focus(),this._closeOptionList()}_onOptionListReposition(e){if(this._comboboxElement){const t=e.target,i=this._comboboxElement.getBoundingClientRect();i.x-=4,i.y-=4,i.width+=8,i.height+=8,t.setFocalRect(i)}}_onOptionListOpenComplete(){var e;null==(e=this._optionList)||e.focus()}_shouldHaveTabIndex(){return this._useLegacy?!this.disabled&&!this._leavingOverlayBackwards:!this.disabled&&!this._optionListIsOpen}_onLegacyTransitionOpenBegin(){this._legacyTransitionOpenBegin.emit({addScrollContext:()=>{}})}_getInternalOptionLayout(){switch(this.layout){case"one-line-dynamic":case"two-line-dynamic":return G_.Dynamic;case"one-line":default:return G_.OneLine;case"two-line":return G_.TwoLine}}_getInternalSelectedOptionLayout(){switch(this.layout){case"one-line-dynamic":case"one-line":default:return G_.OneLine;case"two-line-dynamic":case"two-line":return G_.TwoLine}}_closeOptionList(){var e,t;this._optionListIsOpen&&(this._optionListIsOpen=!1,null==(t=null==(e=this._optionList)?void 0:e.clearFilters)||t.call(e))}};Sf([Mt(),zt({type:[Bf,Pf]})],nx.prototype,"optionData",2),Sf([gt(),zt({type:Ef})],nx.prototype,"layout",2),Sf([gt(),zt({type:U_})],nx.prototype,"leading",2),Sf([gt()],nx.prototype,"height",2),Sf([gt()],nx.prototype,"label",2),Sf([gt(),zt({type:Zo})],nx.prototype,"icon",2),Sf([gt()],nx.prototype,"placeholder",2),Sf([gt()],nx.prototype,"noResultMessage",2),Sf([gt(),zt({type:Boolean})],nx.prototype,"busy",2),Sf([gt({fromAttribute:e=>e?e.split(",").map(e=>e.trim()):[]}),zt({type:Array})],nx.prototype,"tags",2),Sf([Ht()],nx.prototype,"options",2),Sf([gt(),zt({type:Number})],nx.prototype,"overlayMaxHeight",2),Sf([gt(),zt({type:Ml})],nx.prototype,"overlayPositionStrategy",2),Sf([gt(),zt({type:Number})],nx.prototype,"maxDisplayedOptions",2),Sf([ri("no-results",{selectSingleType:Hf.config.type})],nx.prototype,"_noResultsSlot",2),Sf([ri("button",{selectSingleType:kf.config.type})],nx.prototype,"_buttonSlot",2),Sf([ri("option",{selectSingleType:Qf.config.type})],nx.prototype,"_optionTemplateSlot",2),Sf([ri("selected-option",{selectSingleType:Zf.config.type})],nx.prototype,"_selectedOptionTemplateSlot",2),Sf([ft({cancelable:!0})],nx.prototype,"_dialogOpen",2),Sf([ft()],nx.prototype,"_filter",2),Sf([ft()],nx.prototype,"_queryChange",2),Sf([ft()],nx.prototype,"_optionListEndReached",2),Sf([ft()],nx.prototype,"_visibleItemRangeChange",2),Sf([ft({name:"transitionOpenBegin",bubbles:!0,composed:!0})],nx.prototype,"_legacyTransitionOpenBegin",2),Sf([ft({name:"transitionCloseComplete",bubbles:!0,composed:!0})],nx.prototype,"_legacyTransitionCloseComplete",2),Sf([Ht()],nx.prototype,"_optionListIsOpen",2),Sf([Ht()],nx.prototype,"_leavingOverlayBackwards",2),Sf([wi("icon")],nx.prototype,"onIconChange",1),Sf([wi("value",{triggerOn:pi.ChangeAndConnect})],nx.prototype,"onValueChange",1),Sf([wi("required")],nx.prototype,"updateValidity",1),Sf([Pe()],nx.prototype,"_onScreenSizeChange",1),Sf([Pe()],nx.prototype,"_onTextboxFocusStateChange",1),Sf([Pe()],nx.prototype,"_onFocusOut",1),Sf([Pe()],nx.prototype,"_onKeydown",1),Sf([Pe()],nx.prototype,"_onOpenDialog",1),Sf([Pe()],nx.prototype,"_onTextboxInput",1),Sf([Pe()],nx.prototype,"_onOptionListClose",1),Sf([Pe()],nx.prototype,"_onOptionListQuery",1),Sf([Pe()],nx.prototype,"_onOptionListSelect",1),Sf([Pe()],nx.prototype,"_onOptionListReposition",1),Sf([Pe()],nx.prototype,"_onOptionListOpenComplete",1),Sf([Pe()],nx.prototype,"_shouldHaveTabIndex",1),Sf([Pe()],nx.prototype,"_onLegacyTransitionOpenBegin",1),nx=Sf([_t({tag:"acorn-combo-box",delegatesFocus:!0})],nx);var ox=Object.defineProperty,rx=Object.getOwnPropertyDescriptor,ax=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?rx(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&ox(t,i,r),r},sx=class extends Ti{render(){return $`<slot></slot>`}};sx=ax([_t({tag:"acorn-conclusion-body"})],sx);var lx=(e=>(e.Success="success",e.Error="error",e.Pending="pending",e))(lx||{}),cx=(e=>
2080(e.BackgroundColor="--acorn-internal-conclusion-background-color",e.TextColor="--acorn-internal-conclusion-text-color",e))(cx||{}),dx=Ve.createTranslation({ShowMore:{sv:"Visa fler",en:"Show more"},ShowLess:{sv:"Visa färre",en:"Show less"},ErrorMessage:{sv:"Felmeddelande",en:"Error message"},InfoMessage:{sv:"Informationsmeddelande",en:"Information message"},SuccessMessage:{sv:"Bekräftelsemeddelande",en:"Success message"}}),hx={success:zi.Surface.successContrastInverted,error:zi.Surface.attentionContrastInverted,pending:zi.Surface.infoContrastInverted},px={success:zi.Text.success,error:zi.Text.attention,pending:zi.Text.info},ux={$host:{[fo.HasTheme]:xo.True,"--acorn-internal-conclusion-background-color":e=>hx[e.type],"--acorn-internal-conclusion-text-color":e=>px[e.type],display:"block",outline:"none !important",...Ln(Dn.Large,"12px")},headlineWrapper:{display:"flex",alignItems:"center",backgroundColor:"var(--acorn-internal-conclusion-background-color)",padding:"0 12px 0 0",height:"auto",minHeight:"56px",borderBottom:`solid 1px ${zi.Line.Regular.low}`},statusIcon:{display:"flex",alignItems:"center",paddingLeft:"16px",paddingRight:"8px",marginRight:"16px",backgroundColor:"var(--acorn-internal-conclusion-text-color)",height:"32px",borderTopRightRadius:"16px",borderBottomRightRadius:"16px",boxSizing:"border-box"},headline:{fontFamily:Cn.Headline,fontWeight:$n.Bold,fontSize:kn(20
2080),lineHeight:Sn.Narrow,color:zi.Text.Regular.high,marginBlockStart:"1em",marginBlockEnd:"1em"},contentWrapper:{backgroundColor:"var(--acorn-internal-conclusion-background-color)",padding:"1px 24px"},contentBody:{margin:"24px 0px"},detailsWrapper:{backgroundColor:"var(--acorn-internal-conclusion-background-color)"}},gx=class extends Ti{render(){return $`<slot></slot>`}};gx=ax([_t({tag:"acorn-conclusion-details"})],gx);var mx={success:Zo.CircleCheckmark,error:Zo.CircleExclamation,pending:Zo.CircleInfo},bx=class extends Ti{constructor(){super(...arguments),this.type="success",this.headingLevel=3,this.moreLabel=dx.ShowMore,this.lessLabel=dx.ShowLess}getStyle(){return ux}render(){var e,t,i;return $`
2081            ${(null==(e=this._headlineSlot)?void 0:e.isFilled())||this.heading?$`
2082                      <div class="${this.classes.headlineWrapper}">
2083                          <span class="${this.classes.statusIcon}">
2084                              <acorn-icon
2085                                  icon="${mx[this.type]}"
2086                                  color="${Og.White}"
2087                                  size="${Jo.Small}"
2088                                  accessibility-label="${this._getIconAccessibilityLabel()}"
2089                              ></acorn-icon>
2090                          </span>
2091                          ${this._renderHeading()}
2092                      </div>
2093                  `:null}
2094
2095            <div class="${this.classes.contentWrapper}">
2096                <div class="${this.classes.contentBody}">
2097                    ${(null==(t=this._bodySlot)?void 0:t.isFilled())?this._bodySlot:$`<slot></slot>`}
2098                </div>
2099                ${(null==(i=this._detailsSlot)?void 0:i.isFilled())?$`
2100                          <acorn-show-more-container
2101                              show-more-label="${this.moreLabel}"
2102                              show-less-label="${this.lessLabel}"
2103                          >
2104                              <div class="${this.classes.detailsWrapper}">${this._detailsSlot}</div>
2105                          </acorn-show-more-container>
2106                      `:null}
2107            </div>
2108        `}onTypeChange(e){Object.values(lx).includes(e)||(this.type="success")}_getIconAccessibilityLabel(){switch(this.type){case"error":return dx.ErrorMessage;case"success":default:return dx.SuccessMessage;case"pending":return dx.InfoMessage}}_renderHeading(){switch(this.headingLevel){case 3:return $`<h3 class="${this.classes.headline}">
2109                    ${this.heading?this.heading:this._headlineSlot}
2110                </h3>`;case 4:return $`<h4 class="${this.classes.headline}">
2111                    ${this.heading?this.heading:this._headlineSlot}
2112                </h4>`;case 5:return $`<h5 class="${this.classes.headline}">
2113                    ${this.heading?this.heading:this._headlineSlot}
2114                </h5>`;case 6:return $`<h6 class="${this.classes.headline}">
2115                    ${this.heading?this.heading:this._headlineSlot}
2116                </h6>`;default:return}}};ax([gt(),zt({type:lx})],bx.prototype,"type",2),ax([gt()],bx.prototype,"heading",2),ax([gt(),zt({type:Number})],bx.prototype,"headingLevel",2),ax([gt()],bx.prototype,"moreLabel",2),ax([gt()],bx.prototype,"lessLabel",2),ax([ri("headline")],bx.prototype,"_headlineSlot",2),ax([ri("details",{selectAllTypes:gx.config.type})],bx.prototype,"_detailsSlot",2),ax([ri("body",{selectSingleType:sx.config.type,strict:!0})],bx.prototype,"_bodySlot",2),ax([wi("type")],bx.prototype,"onTypeChange",1),bx=ax([_t({tag:"acorn-conclusion"})],bx);var vx=Object.defineProperty,yx=Object.getOwnPropertyDescriptor,_x=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?yx(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&vx(t,i,r),r},fx=(e=>(e.Always="always",e.Never="never",e.Auto="auto",e))(fx||{}),xx=Ve.createTranslation({ShowToolbarOptions:{sv:"Visa alternativ",en:"Show options"}});var wx={$host:{display:"block",position:"relative",outline:"0 !important"},overflow:{overflowX:"hidden",display:"flex",justifyContent:"end"},wrapper:{visibility:function(e){return e.isCollapsed?"hidden":"inherit"},width:"fit-content",whiteSpace:"nowrap"},menu:{position:"absolute",top:0,right:0}};function Cx(e){return"children"in e&&void 0!==e.children}var Sx="defaultWrapper",$x=class extends Ti{constructor(){super(),this.hideLabels=!1,this.collapseStrategy="auto",this.data=[],this._hasContentOverflow=!1,this._isReady=!1,this._overflowObserver=new IntersectionObserver(this._onOverflowChange,{root:this,threshold:.99})}get isCollapsed(){switch(this.collapseStrategy){case"always":return!0;case"never":return!1;default:return this._hasContentOverflow}}getStyle(){return wx}render(){return this.style.visibility=this._isReady?"inherit":"hidden",$`<div class="${this.classes.overflow}">${this._renderDefault()}</div>
2117            <div>${this._renderCollapsed()}</div>`}afterInitialRender(){const e=this.shadowRoot.getElementById(Sx);this._overflowObserver.observe(e)}_renderDefault(){return $` <div id="${Sx}" class="${this.classes.wrapper}">
2118            ${this.data.map(e=>Cx(e)?this._renderOptionMenu(e):this._renderOptionButton(e))}
2119        </div>`}_renderOptionButton(e){return $`
2120            <acorn-icon-button
2121                icon="${j(e.icon)}"
2122                label="${j(this.hideLabels?void 0:e.label)}"
2123                accessibility-label="${j(e.label||void 0)}"
2124                @click="${this._onIconButtonClick.bind(this,e)}"
2125            >
2126            </acorn-icon-button>
2127        `}_renderOptionMenu(e){var t;return(null==(t=e.children)?void 0:t.length)?$`
2128            <acorn-menu
2129                label="${j(this.hideLabels?void 0:e.label)}"
2130                accessibility-label="${e.label}"
2131                icon="${j(e.icon)}"
2132                .overlayAlignment="${Nl.Right}"
2133                .overlayPositionStrategy="${Ml.Fixed}"
2134                ._respondToMediaQuery="${!1}"
2135                @menuOptionSelect="${this._onMenuOptionSelect}"
2136            >
2137                ${e.children.map(e=>$`
2138                        <acorn-menu-option icon="${j(e.icon)}" value="${j(e.value)}"
2139                            >${e.label}</acorn-menu-option
2140                        >
2141                    `)}
2142            </acorn-menu>
2143        `:null}_renderCollapsed(){return this.isCollapsed?$`
2144            <div id="${"collapsedWrapper"}" class="${this.classes.menu}">
2145                ${(this.data||[]).filter(e=>!Cx(e)&&e.alwaysShow).map(e=>this._renderOptionButton(e))}
2146                <acorn-menu
2147                    accessibility-label="${xx.ShowToolbarOptions}"
2148                    icon="ellipsis-vertical"
2149                    .overlayAlignment="${Nl.Right}"
2150                    .overlayPositionStrategy="${Ml.Fixed}"
2151                    ._respondToMediaQuery="${!1}"
2152                    @menuOptionSelect="${this._onMenuOptionSelect}"
2153                >
2154                    ${(this.data||[]).map(e=>Cx(e)?this._renderCollapsedOptionGroup(e):e.alwaysShow?void 0:this._renderCollapsedOption(e))}
2155                </acorn-menu>
2156            </div>
2157        `:null}_renderCollapsedOptionGroup(e){var t;return(null==(t=e.children)?void 0:t.length)?$`
2158            <acorn-menu-option-group>
2159                ${e.children.map(e=>this._renderCollapsedOption(e))}
2160            </acorn-menu-option-group>
2161        `:null}_renderCollapsedOption(e){return $`
2162            <acorn-menu-option icon="${j(e.icon)}" value="${j(e.value)}">
2163                ${e.label}
2164            </acorn-menu-option>
2165        `}_onOverflowChange(e){const t=e[e.length-1];this._hasContentOverflow=!t.isIntersecting,this._isReady=!0}_onIconButtonClick(e){this._selectOption.emit({value:e.value})}_onMenuOptionSelect(e){var t;this._selectOption.emit({value:null==(t=e.detail)?void 0:t.value})}};$x.MIN_WIDTH=80,_x([gt(),zt({type:Boolean})],$x.prototype,"hideLabels",2),_x([gt(),zt({type:fx})],$x.prototype,"collapseStrategy",2),_x([Ht()],$x.prototype,"data",2),_x([Ht()],$x.prototype,"_hasContentOverflow",2),_x([Ht()],$x.prototype,"_isReady",2),_x([ft()],$x.prototype,"_selectOption",2),_x([Pe()],$x.prototype,"_onOverflowChange",1),_x([Pe()],$x.prototype,"_onIconButtonClick",1),_x([Pe()],$x.prototype,"_onMenuOptionSelect",1),$x=_x([_t({tag:"acorn-internal-toolbar"})],$x);var kx=Object.defineProperty,Ex=Object.getOwnPropertyDescriptor,Tx=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Ex(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&kx(t,i,r),r},Ix=Ve.createTranslation({Search:{sv:"Sök",en:"Search"},Clear:{sv:"Rensa",en:"Clear"}}),Ox={$host:{display:"block",outline:"none !important",maxWidth:"500px",...Ln(Dn.Small)},wrapper:{position:"relative"},input:{...so(),"&::placeholder":{color:zi.Text.Regular.high},boxSizing:"border-box",padding:"0 30px 0 42px",backgroundColor:zi.Overlay.hover,borderRadius:"20px",border:"0",height:"40px",width:"100%","-webkit-appearance":"none","&::-webkit-search-cancel-button":{"-webkit-appearance":"none"},"&:hover:not(:focus)":{backgroundColor:zi.Overlay.active},"&:focus":{backgroundColor:zi.Overlay.pressed,"--acorn-icon-color":zi.Icon.regular},"&[disabled]":{backgroundColor:`${zi.Surface.disabled} !important`,color:zi.Text.disabled,"&::placeholder":{color:zi.Text.disabled}},...Qi()},searchIcon:{position:"absolute",top:"calc(50% + 1px)",left:"0",transform:"translate(14px, -50%)"},clearButton:{position:"absolute",top:"50%",right:"0",transform:"translate(-5px, -50%)"}},Dx=class extends Ti{constructor(){super(...arguments),this.disabled=!1,this.accessibilityLabel="",this.ariaLabel="",this.placeholder=Ix.Search,this.value=""}get _searchInput(){return this.shadowRoot.querySelector("input")}render(){const e=this.accessibilityLabel||this.ariaLabel||void 0;return $`
2166            <div class="${this.classes.wrapper}">
2167                <acorn-internal-icon
2168                    class="${this.classes.searchIcon}"
2169                    color="${this.disabled?zi.Icon.disabled:zi.Icon.regular}"
2170                    icon="${Zo.MagnifyingGlass}"
2171                    size="${Jo.Small}"
2172                ></acorn-internal-icon>
2173                <input
2174                    ?disabled="${this.disabled}"
2175                    aria-label="${j(e)}"
2176                    type="search"
2177                    class="${this.classes.input}"
2178                    .value="${this.value}"
2179                    placeholder="${this.placeholder}"
2180                    @input="${this._onSearchInput}"
2181                />
2182                ${this.value&&this.value.length>0&&!this.disabled?$`
2183                          <acorn-internal-icon-button
2184                              class="${this.classes.clearButton}"
2185                              icon="${Zo.XMark}"
2186                              size="${Jo.Small}"
2187                              accessibility-label="${Ix.Clear}"
2188                              @click="${this._onClearButton}"
2189                          ></acorn-internal-icon-button>
2190                      `:void 0}
2191            </div>
2192        `}getStyle(){return Ox}focus(e){this.disabled||super.focus(e)}_onClearButton(){var e;this.value="",this._clear.emit(),null==(e=this._searchInput)||e.focus()}_onSearchInput(e){this.value=e.target.value}};Tx([gt(),zt({type:Boolean})],Dx.prototype,"disabled",2),Tx([gt()],Dx.prototype,"accessibilityLabel",2),Tx([gt()],Dx.prototype,"ariaLabel",2),Tx([gt()],Dx.prototype,"placeholder",2),Tx([gt()],Dx.prototype,"value",2),Tx([ft({bubbles:!0,composed:!0})],Dx.prototype,"_clear",2),Tx([Pe()],Dx.prototype,"_onClearButton",1),Tx([Pe()],Dx.prototype,"_onSearchInput",1),Dx=Tx([_t({tag:"acorn-search-field",delegatesFocus:!0}),vt()],Dx);var Rx=Object.defineProperty,Fx=Object.getOwnPropertyDescriptor,Lx=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Fx(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Rx(t,i,r),r},Ax=class extends CustomEvent{constructor(e){super(e.type,{bubbles:!0,cancelable:!0,detail:e.detail})}},Mx=class extends CustomEvent{constructor(e,t,i,n){super("cellEvent",{bubbles:!0,composed:!0,cancelable:!0,detail:{eventType:e,columnKey:i.columnKey,columnData:i.data,rowKey:t.key,rowData:t.getData(),value:void 0===n?t.getCellValue(i.columnKey):n}})}};Mx.CHANGE_EVENT="change";var Bx="--main-layout-header-height",Px="1px",Nx=zi.Line.Regular.low,Hx=300,zx=(e=>(e.Auto="auto",e.Table="table",e.List="list",e))(zx||{}),Wx=(e=>(e.Default="default",e.Generous="generous",e.Compact="compact",e.Dynamic="dynamic",e))(Wx||{}),Vx=(e=>(e.Auto="auto",e.None="none",e))(Vx||{}),jx=(e=>(e.Icon="icon",e.Checkbox="checkbox",e.RowSelect="row-select",e.Button="button",e.ButtonPositive="button-positive",e.ButtonNegative="button-negative",e.IconButton="icon-button",e.Menu="menu",e.NumericVector="numeric-vector",e.Numeric="numeric",e.Label="label",e.IconLabel="icon-label",e.Link="link",e.Text="text",e.RowLink="row-link",e.Tag="tag",e.Favourite="favourite",e.ButtonBuy="button-buy",e.ButtonSell="button-sell",e))(jx||{}),Gx=(e=>(e.Right="right",e.Left="left",e.Center="center",e))(Gx||{}),qx=(e=>(e.Asc="ascending",e.Desc="descending",e))(qx||{}),Ux=(e=>(e.None="none",e.Auto="auto",e.Custom="custom",e))(Ux||{}),Kx=(e=>(e.None="none",e.MultiLine="multiline",e.OneLine="one-line",e))(Kx||{}),Yx=(e=>(e.ExtraSmall="xs",e.Small="sm",e.Medium="md",e.Large="lg",e))(Yx||{}),Xx=(e=>(e.InternalLink="internal-link",e.PopoverButton="popover-button",e.ExternalLink="external-link",e))(Xx||{}),Qx={xs:350,sm:600,md:1050,lg:1400},Zx=(e=>(e.Always="always",e.Table="table",e.List="list",e))(Zx||{}),Jx=(e=>(e.CollapsedTree="collapsed-tree",e.ExpandedTree="expanded-tree",e.StaticTree="static-tree",e.Hidden="hidden",e))(Jx||{}),ew=(e=>(e.Auto="auto",e.DisplayAll="display-all",e.DisplayVisible="display-visible",e))(ew||{});function tw(e){return`calc((var(--acorn-data-table-internal-row-height) - ${e+4}px) * 0.5 * var(--acorn-data-table-internal-text-vertical-padding-eq))`}function iw(e){return`var(--acorn-data-table-internal-flex-alignment, ${function(e){switch(e){case"right":return"end";case"center":return"center";default:return"start"}}(e.column.align)})`}var nw={$host:{outline:"0 !important",padding:`${tw(Pn.Base)} 8px`,display:"block",maxWidth:"100%",overflow:"hidden",boxSizing:"border-box",whiteSpace:"var(--acorn-data-table-internal-text-whitespace, nowrap)",textOverflow:"ellipsis",textAlign:e=>`var(--acorn-data-table-internal-text-alignment, ${e.column.align})`},link:{cursor:"pointer",color:zi.Text.interactive,textDecoration:"underline","&:link":{color:zi.Text.interactive},"&:visited":{color:zi.Text.interactive},"&:hover":{color:zi.Text.interactive},"&:active":{color:zi.Text.interactive}}},ow=class extends Ti{getStyle(){return nw}render(){const e=this.row.getCellValue(this.column.columnKey),{label:t,href:i,target:n}="object"==typeof e?e:{label:e,href:e,target:"_self"};if(i)return $`<a
2193            class="${this.classes.link}"
2194            target="${n||"_self"}"
2195            href="${i}"
2196            @click="${this._onClick}"
2197        >
2198            ${t}
2199        </a>`}_onClick(e){this.dispatchEvent(new Mx(e.type,this.row,this.column))||e.preventDefault()}};Lx([Ht()],ow.prototype,"row",2),Lx([Ht()],ow.prototype,"column",2),Lx([Pe()],ow.prototype,"_onClick",1),ow=Lx([_t({tag:"acorn-data-table-internal-column-link-cell",delegatesFocus:!0})],ow);var rw={$host:{display:"block",padding:`${tw(30)} 0`},button:{...Gn(),display:"block",height:"30px",maxWidth:"100%",margin:function(e){switch(e.column.align){case"center":return"0 auto";case"right":return"0 0 0 auto";default:return"0 auto 0 0"}}
2199,border:0,backgroundColor:"transparent",cursor:"pointer",padding:"0 4px",borderRadius:"4px",color:function(e){switch(e.column.data.columnType){case"button-negative":case"button-sell":return zi.Text.negative;case"button-positive":case"button-buy":return zi.Text.positive;default:return zi.Text.interactive}},fontSize:"inherit","&:hover":{backgroundColor:function(e){switch(e.column.data.columnType){case"button-negative":case"button-sell":return zi.Surface.negative;case"button-positive":case"button-buy":return zi.Surface.positive;default:return zi.Overlay.hover}},color:function(e){switch(e.column.data.columnType){case"button-negative":case"button-sell":case"button-positive":case"button-buy":return zi.Text.white;default:return zi.Text.interactive}}}},label:{display:"block",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",padding:"0 4px"}},aw=class extends Ti{getStyle(){return rw}render(){return $`<button
2200            @click="${this._onClick}"
2201            class="${this.classes.button}"
2202            aria-label="${j(this.accessibilityLabel)}"
2203        >
2204            <span class="${this.classes.label}">${this.column.label}</span>
2205        </button>`}_onClick(e){this.dispatchEvent(new Mx(e.type,this.row,this.column))}};Lx([Ht()],aw.prototype,"column",2),Lx([Ht()],aw.prototype,"accessibilityLabel",2),Lx([Pe()],aw.prototype,"_onClick",1),aw=Lx([_t({tag:"acorn-data-table-internal-column-button-cell",delegatesFocus:!0})],aw);var sw={$host:{padding:`${tw(bv)} 8px`,display:"flex",justifyContent:iw},hover:{[mv.HitAreaOpacity]:"0","&:hover":{[mv.HitAreaOpacity]:"1"}}},lw=class extends Ti{constructor(){super(...arguments),this.checked=!1,this.disabled=!1}getStyle(){return sw}render(){return $`<acorn-internal-checkbox-graphic
2206            role="checkbox"
2207            .checked="${this.checked}"
2208            .disabled="${this.disabled}"
2209            aria-checked="${this.checked}"
2210            aria-disabled="${this.disabled?"true":"false"}"
2211            aria-label="${j(this.accessibilityLabel)}"
2212            tabindex="${this.disabled?"-1":"0"}"
2213            @click="${this._onClick}"
2214            @keydown="${this._onKeyDown}"
2215            class="${this.classes.hover}"
2216        ></acorn-internal-checkbox-graphic>`}_onKeyDown(e){e.key===ye.Space&&(e.preventDefault(),this._onToggle(e.target))}_onClick(e){this._onToggle(e.target)}_onToggle(e){if(!e||this.disabled)return;this.column.selectAll=null;const t=!this.checked;e.dispatchEvent(new Mx(Mx.CHANGE_EVENT,this.row,this.column,t))}};Lx([Ht()],lw.prototype,"checked",2),Lx([Ht()],lw.prototype,"disabled",2),Lx([Ht()],lw.prototype,"accessibilityLabel",2),Lx([Pe()],lw.prototype,"_onKeyDown",1),Lx([Pe()],lw.prototype,"_onClick",1),lw=Lx([_t({tag:"acorn-data-table-internal-column-checkbox-cell",delegatesFocus:!0})],lw);var cw={$host:{display:"flex",padding:`${tw(33)} 8px`,whiteSpace:"var(--acorn-data-table-internal-text-whitespace, nowrap)",justifyContent:iw,overflow:"hidden",maxHeight:e=>"list"!==e.layoutMode?"var(--acorn-data-table-internal-row-height)":"none"}},dw=class extends Ti{getStyle(){return cw}render(){return $` <acorn-internal-icon-button
2217            icon="${this.column.icon}"
2218            size="${Jo.Small}"
2219            label="${j(this.column.data.hideHeading?void 0:this.column.label)}"
2220            accessibility-label="${j(this.accessibilityLabel)}"
2221            @click="${this._onClick}"
2222        ></acorn-internal-icon-button>`}_onClick(e){this.dispatchEvent(new Mx(e.type,this.row,this.column))}};Lx([Ht()],dw.prototype,"column",2),Lx([Ht()],dw.prototype,"accessibilityLabel",2),Lx([Pe()],dw.prototype,"_onClick",1),dw=Lx([_t({tag:"acorn-data-table-internal-column-icon-button-cell",delegatesFocus:!0})],dw);var hw={$host:{outline:"0 !important",padding:`${tw(tr)} 8px`,display:"flex",justifyContent:iw}},pw=class extends Ti{getStyle(){return hw}render(){return $`${this._normalizeIcons(this.iconData).map((e,t)=>$`<acorn-icon
2223                    icon="${e.icon}"
2224                    accessibility-label="${j(0===t&&e.accessibilityLabel?e.accessibilityLabel:void 0)}"
2225                    size="${Jo.Small}"
2226                ></acorn-icon>`)}`}_normalizeIcons(e){const t=[],i=Array.isArray(e)?e:[e];for(const e of i)if("string"==typeof e){const i={icon:e};t.push(i)}else t.push(e);return t}};Lx([Ht()],pw.prototype,"iconData",2),pw=Lx([_t({tag:"acorn-data-table-internal-column-icon-cell"})],pw);var uw={whiteSpace:"var(--acorn-data-table-internal-text-whitespace, nowrap)",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis"};var gw={$host:{flexDirection:function(e){return"right"===e.column.align?"row-reverse":"row"},outline:"0 !important",padding:`${tw(Pn.Base)} 8px`,alignItems:"var(--acorn-data-table-internal-row-flex-vertical-alignment, center)",justifyContent:iw,maxWidth:"calc(100% - 16px)",display:"flex",gap:"8px",flex:"1"},labelIcon:{padding:"calc(0.25em * var(--acorn-data-table-internal-text-vertical-padding-eq)) 0"},labelTextWrapper:{display:"block",maxWidth:"inherit",textAlign:function(e){return`var(--acorn-data-table-internal-text-alignment, ${e.column.align})`}},labelText:{display:"var(--acorn-data-table-internal-display-text-label, block)",...Nn(),...uw,marginRight:"2px",fontWeight:function(e){return e.column.isRowHeaderColumn?"var(--acorn-data-table-internal-column-header-font-we
2226ight)":`var(--acorn-data-table-internal-cell-font-weight, ${$n.Regular})`}},labelTextDetail:{display:"var(--acorn-data-table-internal-display-text-detail, block)",...Hn(),...uw,fontWeight:$n.Regular}},mw=class extends Ti{getStyle(){return gw}render(){if(this.label)return $`
2227            ${this._renderIcon()}
2228            <span class="${this.classes.labelTextWrapper}">
2229                <span class="${this.classes.labelText}"> ${this.label} </span>
2230                ${this._renderDetail(this.detail)}
2231            </span>
2232        `}_renderIcon(){return this.icon?$`<acorn-icon
2233            class="${this.classes.labelIcon}"
2234            icon="${this.icon}"
2235            accessibility-label="${j(this.iconAccessibilityLabel)}"
2236            size="${Jo.Small}"
2237        ></acorn-icon>`:null}_renderDetail(e){return e?$`<span class="${this.classes.labelTextDetail}">${e}</span>`:null}};Lx([Ht()],mw.prototype,"label",2),Lx([Ht()],mw.prototype,"icon",2),Lx([Ht()],mw.prototype,"iconAccessibilityLabel",2),Lx([Ht()],mw.prototype,"detail",2),Lx([Ht()],mw.prototype,"column",2),mw=Lx([_t({tag:"acorn-data-table-internal-column-label-cell"})],mw);var bw={$host:{display:"flex",padding:`${tw(40)} 8px`,whiteSpace:"var(--acorn-data-table-internal-text-whitespace, nowrap)",justifyContent:iw}},vw=class extends Ti{getStyle(){return bw}render(){if(this.row&&Array.isArray(this.options))return $` <acorn-menu
2238            ._size="${"18px"}"
2239            label="${j(this.label)}"
2240            accessibility-label="${j(this.accessibilityLabel)}"
2241            icon="${j(this.icon)}"
2242            overlay-alignment="${Nl.Right}"
2243            @menuOptionSelect="${this._onMenuOptionSelect}"
2244            position-strategy="fixed"
2245        >
2246            ${this.options.map(e=>$` <acorn-menu-option value="${e.value}" icon="${j(e.icon)}"
2247                        >${e.label}</acorn-menu-option
2248                    >`)}
2249        </acorn-menu>`}_onMenuOptionSelect(e){this.dispatchEvent(new Mx(e.type,this.row,this.column,e.detail.value))}};Lx([Ht()],vw.prototype,"options",2),Lx([Ht()],vw.prototype,"icon",2),Lx([Ht()],vw.prototype,"label",2),Lx([Ht()],vw.prototype,"accessibilityLabel",2),Lx([Pe()],vw.prototype,"_onMenuOptionSelect",1),vw=Lx([_t({tag:"acorn-data-table-internal-column-menu-cell",delegatesFocus:!0})],vw);var yw={$host:{...Nn(),outline:"0 !important",display:"block",padding:`${tw(Pn.Base)} 8px`,color:function(e){return e.isVector?e._numericValue<0?zi.Text.negative:e._numericValue>0?zi.Text.positive:zi.Text.Regular.high:zi.Text.Regular.high},fontWeight:function(e){return"summary"===e.type?$n.Bold:`var(--acorn-data-table-internal-cell-font-weight, ${$n.Regular})`},textAlign:e=>`var(--acorn-data-table-internal-text-alignment, ${e.column.align})`,"--fade-background-color":e=>e._changeVector<0?zi.Surface.attentionContrastInverted:zi.Surface.infoContrastInverted,"--fade-text-color":e=>e._changeVector<0?zi.Text.negative:zi.Text.positive,"@keyframes numeric-cell-bg-fade-animation":`\n            0% {\n                background-color: var(--fade-background-color);\n                color: var(--fade-text-color);\n            }\n            100% {\n                background-color: transparent;\n                color: ${zi.Text.Regular.high};\n            }`},wrapper:{margin:"-4px -6px -6px",borderRadius:"4px",padding:"4px 6px",whiteSpace:"var(--acorn-data-table-internal-text-whitespace, nowrap)",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",animation:e=>e._changeVector?"numeric-cell-bg-fade-animation 1s":"none"}},_w=/\u2013|\u2014|−/g,fw=/[^0-9.-]/g;function xw(e){if("number"==typeof e)return e;if("string"==typeof e)try{const t=e.replace(",",".").replace(_w,"-").replace(fw,"");return parseFloat(t)}catch(e){return Number.NaN}return Number.NaN}var ww=class extends Ti{constructor(){super(...arguments),this.isVector=!1,this.changed=!1,this.type="row",this._changeVector=0,this._numericValue=0}getStyle(){return yw}render(){return $`<div class="${this.classes.wrapper}">${this.value}</div>`}beforeRender(){let e=xw(this.value);Number.isNaN(e)&&(e=0),this.changed&&void 0!==this._numericValue?(this._changeVector=e-this._numericValue,this._numericValue=e,this._changedTimeoutId&&window.clearTimeout(this._changedTimeoutId),this._changedTimeoutId=window.setTimeout(()=>{this._changeVector=0,this.invalidateStyle()},300)):this._numericValue=e}};Lx([Ht()],ww.prototype,"isVector",2),Lx([Ht()],ww.prototype,"changed",2),Lx([Ht()],ww.prototype,"value",2),Lx([Ht()],ww.prototype,"type",2),ww=Lx([_t({tag:"acorn-data-table-internal-column-numeric-cell"})],ww);var Cw=Ve.createTranslation({SelectAll:{sv:"Markera alla",en:"Select all"},UnselectAll:{sv:"Avmarkera alla",en:"Unselect all"},Selected:{sv:"vald",en:"selected"},AllSelected:{sv:"Alla markerade",en:"All selected"},AllUnselect:{sv:"Alla avmarkerade",en:"All unselected"},AllFilters:{sv:"Alla filter",en:"All filters"},SelectRow:{sv:"Markera rad",en:"Select row"},Sort:{sv:"Sortera",en:"Sort"},SortAscending:{sv:"Sortera uppåt",en:"Sort up"},SortDescending:{sv:"Sortera nedåt",en:"Sort down"},SortableColumn:{sv:"Sorterbar kolumn",en:"Sortable column"},TableGroupHeader:{sv:"Tabell grupp rubrik",en:"Table group header"},Open:{sv:"Öppna",en:"Open"},Menu:{sv:"Meny",en:"Menu"},RowLink:{sv:"Radlänk",en:"Row link"},RowLinkExternal:{sv:"Radlänk, öppnas i ny flik",en:"Row link, opens in new tab"},RowButton:{sv:"Radknapp",en:"Row button"},EmptyMessage:{sv:"Tabellen är tom.",en:"The table is empty."},LoadingCellContent:{sv:"Laddar cell innehåll",en:"Loading cell content"},ShowAll:{sv:"Visa alla",en:"Show all"},ShowAllAccessibility:{sv:"Visa alla rader",en:"Show all rows"},ShowMore:{sv:"Visa {0} till",en:"Show {0} more"},ShowMoreAccessibility:{sv:"Visa {0} rader till",en:"Show {0} more rows"},NumDisplayedOfTotal:{sv:"{0}{1} av {2}",en:"{0}{1} of {2}"},NumDisplayedOfTotalAccessibility:{sv:"{0}{1} av {2} rader",en:"{0}{1} of {2} rows"},NumHiddenOfTotal:{sv:" ({0, plural, zero [# dolda] one [# dold] many [# dolda]})",en:" ({0} hidden)"},Total:{sv:"Totalt",en:"Total"},ClearAll:{sv:"Rensa alla",en:"Clear all"},ShowAllTableFilters:{sv:"Visa alla tabell-filter",en:"Show all table filters"},AppliedFilter:{sv:"Valt filter",en:"Applied filter"},Filter:{sv:"Filter",en:"Filter"},Search:{sv:"Sök",en:"Search"},ExpandRow:{sv:"Expandera rad",en:"Expand row"},CollapseRow:{sv:"Kollapsa rad",en:"Collapse row"},Reset:{sv:"Återställ",en:"Reset"},Apply:{sv:"Visa",en:"Apply"}}),Sw=tw(16);var $w={$host:{outline:"0 !important",margin:function(e){switch(e.column.align){case"center":return`${Sw} auto`;case"right":return`${Sw} 8px ${Sw} auto`;default:return`${Sw} 8px`}},display:"block",backgroundColor:zi.Overlay.hover,height:"16px",width:"70%",borderRadius:`${Math.floor(8)}px`,animation:"table-cell-fade-animation 1.5s infinite",animationPlayState:ai.isRunningTests?"paused":"running",color:"transparent","@keyframes table-cell-fade-animation":"\n            0% { opacity: 1 }\n            50% { opacity: 0.3 }\n            100% { opacity: 1 }"}},kw=class extends Ti{getStyle(){return $w}render(){return $`${Cw.LoadingCellContent}`}};kw=Lx([_t({tag:"acorn-data-table-internal-column-pending-cell"})],kw);var Ew=ir,Tw={$host:{display:"flex",padding:`${tw(Ew+12)} 0`,overflow:"hidden",maxHeight:e=>"list"!==e.layoutMode?"var(--acorn-data-table-internal-row-height)":"none"},button:{margin:"0 auto",lineHeight:0,padding:"6px 8px",border:"0",background:"transparent",curs
2249or:"pointer"}},Iw=class extends Ti{constructor(){super(...arguments),this.disabled=!1,this.type="internal-link"}getStyle(){return Tw}render(){if(this.disabled)return;let e=Zo.CaretRight;"popover-button"===this.type?e=Zo.UpRightAndDownLeftFromCenter:"external-link"===this.type&&(e=Zo.ArrowUpRightFromSquare);const t=$`<acorn-internal-icon
2250            icon="${e}"
2251            size="${`${Ew}px`}"
2252            color="${zi.Icon.regular}"
2253        ></acorn-internal-icon>`;return"internal-link"===this.type||"external-link"===this.type?$`<span
2254                class="${this.classes.button}"
2255                aria-label="${j(this.accessibilityLabel)}"
2256                role="link"
2257                tabindex="0"
2258                aria-haspopup="${j("dialog")}"
2259                @click="${this._onClick}"
2260                @keypress="${this._onKeypress}"
2261            >
2262                ${t}
2263            </span>`:$`<button
2264                class="${this.classes.button}"
2265                aria-label="${this.column.label}"
2266                @click="${this._onClick}"
2267                aria-haspopup="dialog"
2268            >
2269                ${t}
2270            </button>`}_onClick(e){this.dispatchEvent(new Mx(e.type,this.row,this.column))}_onKeypress(e){e.key===ye.Enter&&this._onClick(e)}};Lx([Ht()],Iw.prototype,"disabled",2),Lx([Ht()],Iw.prototype,"column",2),Lx([Ht()],Iw.prototype,"type",2),Lx([Ht()],Iw.prototype,"accessibilityLabel",2),Lx([Pe()],Iw.prototype,"_onClick",1),Lx([Pe()],Iw.prototype,"_onKeypress",1),Iw=Lx([_t({tag:"acorn-data-table-internal-column-row-link-cell",delegatesFocus:!0})],Iw);var Ow={$host:{paddingRight:0}},Dw=class extends lw{getStyle(){return ge({},super.getStyle(),Ow)}};Dw=Lx([_t({tag:"acorn-data-table-internal-column-row-select-cell",delegatesFocus:!0})],Dw);var Rw={$host:{outline:"0 !important",padding:`${tw(Pn.Base)} 8px`,display:"flex",justifyContent:iw}},Fw=class extends Ti{constructor(){super(...arguments),this.type=cf.Neutral}getStyle(){return Rw}render(){return $`<acorn-tag
2271            type="${this.type||cf.Neutral}"
2272            accessibility-label="${j(this.accessibilityLabel)}"
2273            label="${j(this.label)}"
2274        ></acorn-tag>`}};Lx([Ht()],Fw.prototype,"accessibilityLabel",2),Lx([Ht()],Fw.prototype,"label",2),Lx([Ht()],Fw.prototype,"type",2),Fw=Lx([_t({tag:"acorn-data-table-internal-column-tag-cell"})],Fw);var Lw={$host:{display:"flex",padding:`${tw(33)} 8px`,whiteSpace:"var(--acorn-data-table-internal-text-whitespace, nowrap)",justifyContent:iw,overflow:"hidden",maxHeight:e=>"list"!==e.layoutMode?"var(--acorn-data-table-internal-row-height)":"none"},button:{cursor:"pointer",padding:"8px",borderRadius:"16px","&:hover":{backgroundColor:zi.Overlay.hover}}},Aw=class extends Ti{constructor(){super(...arguments),this.checked=!1}getStyle(){return Lw}render(){return $`
2275            <acorn-internal-icon
2276                tabindex="0"
2277                size="18px"
2278                role="switch"
2279                aria-checked="${this.checked}"
2280                icon="${this.checked?Zo.Star:Zo.StarOutline}"
2281                class="${this.classes.button}"
2282                @click="${this._onClick}"
2283                @keydown="${this._onKeyDown}"
2284            ></acorn-internal-icon>
2285        `}onCheckedChange(e,t,i){if(!i&&this.checked){const e=this.shadowRoot.querySelector(".button");requestAnimationFrame(()=>e.focus())}}_onKeyDown(e){e.key===ye.Space&&(e.preventDefault(),this._onToggle(e.target))}_onClick(e){this._onToggle(e.target)}_onToggle(e){const t=!this.checked;e.dispatchEvent(new Mx(Mx.CHANGE_EVENT,this.row,this.column,t))}};Lx([Ht()],Aw.prototype,"checked",2),Lx([wi("checked")],Aw.prototype,"onCheckedChange",1),Lx([Pe()],Aw.prototype,"_onKeyDown",1),Lx([Pe()],Aw.prototype,"_onClick",1),Aw=Lx([_t({tag:"acorn-data-table-internal-column-favourite-cell",delegatesFocus:!0})],Aw);var Mw={$host:{outline:"0 !important",padding:`${tw(Pn.Base)} 8px`,display:"block",maxWidth:"100%",overflow:"hidden",boxSizing:"border-box",...Nn(),whiteSpace:"var(--acorn-data-table-internal-text-whitespace, nowrap)",textOverflow:"ellipsis",textAlign:e=>`var(--acorn-data-table-internal-text-alignment, ${e.column.align})`,fontWeight:function(e){return"summary"===e.type?$n.Bold:e.column.isRowHeaderColumn?"var(--acorn-data-table-internal-cell-font-we
2285ight, var(--acorn-data-table-internal-column-header-font-weight))":`var(--acorn-data-table-internal-cell-font-weight, ${$n.Regular})`}}},Bw=class extends Ti{constructor(){super(...arguments),this.value="",this.type="row"}getStyle(){return Mw}render(){return $`${this.value}`}};Lx([Ht()],Bw.prototype,"value",2),Lx([Ht()],Bw.prototype,"type",2),Bw=Lx([_t({tag:"acorn-data-table-internal-column-text-cell"})],Bw);var Pw=Ve.createTranslation({Clear:{sv:"Rensa",en:"Clear"},Close:{sv:"Stäng",en:"Close"},Items:{sv:"föremål",en:"items"},Selected:{sv:"vald",en:"selected"},ShowSelected:{sv:"Visa vald",en:"Show selected"},PluralSuffix:{sv:"a",en:""}});var Nw={$host:{display:"block",...Ln(Dn.Small)},$$slotted:{"&([slot]:nth-child(n+5))":{display:"none"}},container:{position:"relative",boxShadow:"1px 1px 10px 0px rgba(0,0,0,0.25)",overflow:"hidden",maxWidth:"100%",height:"74px",backgroundColor:zi.Surface.elevation,borderRadius:()=>co({base:"0",sm:"4px"})},innerExpandedContainer:{visibility:function(e){return!1===e._isCollapsed?"visible":"hidden"},boxSizing:"border-box",width:"max-content",minWidth:"100%",height:"inherit",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 24px",gap:"16px"},innerCollapsedContainer:{display:function(e){return!0===e._isCollapsed?"flex":"none"},padding:"4px 16px",boxSizing:"border-box",alignItems:"center",position:"absolute",height:"inherit",width:"100%",top:0,left:0},selectionControls:{display:"flex",alignItems:"center",gap:"16px"},itemsSelected:{fontSize:kn(18),fontFamily:Cn.Headline,fontWeight:$n.Bold,color:zi.Text.brand,"&:empty":{display:"none"}},overlayOpenButton:{flex:"1"},showSelectedChip:{margin:"0",display:"flex"},clearButton:{display:e=>e.clearable?"block":"none"},buttonContainer:{margin:0}},Hw="itemSelected",zw="container",Ww="inner-expanded",Vw=class extends Ti{constructor(){super(...arguments),this.itemCount=0,this.unit=Pw.Items,this.clearable=!1,this._showOnlySelected=!1,this._isBottomSheetOpen=!1,this._hasContentOverflow=void 0}get _isCollapsed(){return!!this._isBottomSheetOpen||this._hasContentOverflow}get _suffix(){return this.itemCount>1?Pw.PluralSuffix:""}get _itemsSelectedString(){return`${this.itemCount} ${this.unit} ${Pw.Selected+this._suffix}`}disconnectedCallback(){var e;null==(e=this._unregisterContentOverflowObserver)||e.call(this)}getStyle(){return Nw}afterInitialRender(){this._itemCountChange.emit({itemCount:this.itemCount})}render(){if(this.itemCount)return $`
2286            <div id="${zw}" class="${this.classes.container}">
2287                <div id="${Ww}" class="${this.classes.innerExpandedContainer}">
2288                    ${this._renderExpandedContent()}
2289                </div>
2290                <div class="${this.classes.innerCollapsedContainer}">
2291                    <acorn-button
2292                        class="${this.classes.overlayOpenButton}"
2293                        label="${this._itemsSelectedString}"
2294                        @click="${this._onOverlayOpenButtonClick}"
2295                    ></acorn-button>
2296                    ${this._renderCollapsedContent()}
2297                </div>
2298            </div>
2299        `}afterRender(){var e;this.itemCount?this._intersectionObserver||(this._unregisterContentOverflowObserver=this._registerContentOverflowObserver()):null==(e=this._unregisterContentOverflowObserver)||e.call(this)}onItemCountChange(e,t,i){isNaN(this.itemCount)&&(this.itemCount=0),i?this._animation.goTo(this.itemCount>0?"end":"start"):(this.itemCount>0?(this._animation.goTo("start"),this._animation.transitionTo("end")):this._showOnlySelected=!1,this._itemCountChange.emit({itemCount:this.itemCount}))}onShowOnlySelectedChange(){const e=this._showOnlySelected?{selected:this._showOnlySelected}:{};this._filter.emit({filter:e})}fadeInOutFrame(e){const t=this.shadowRoot.getElementById(Hw);if(e.transitionState===li.Transitioning)t.style.opacity=e.value.toString()}_onOverlayOpenButtonClick(){this._isBottomSheetOpen=!0}_onClearButtonClick(){this._showOnlySelected=!1,this._clear.emit()}_onShowSelectedChange(e){this._showOnlySelected=e.target.checked}_registerContentOverflowObserver(){this._intersectionObserver=new IntersectionObserver(this._onIntersection,{root:this.shadowRoot.getElementById(zw),rootMargin:"0px",threshold:[1]});const e=this.shadowRoot.getElementById(Ww);return this._intersectionObserver.observe(e),()=>{var e;null==(e=this._intersectionObserver)||e.disconnect(),this._intersectionObserver=void 0,this._hasContentOverflow=void 0}}_renderExpandedContent(){if(!this._isBottomSheetOpen)return $`
2300            <div class="${this.classes.selectionControls}">
2301                <span class="${this.classes.itemsSelected}" id="${Hw}">${this._itemsSelectedString}</span>
2302                ${this._renderShowSelectedFilter()} ${this._renderClearButton()}
2303            </div>
2304            <acorn-button-container
2305                class="${this.classes.buttonContainer}"
2306                layout="${gl.Horizontal}"
2307            >
2308                ${this._buttonsSlot}
2309            </acorn-button-container>
2310        `}_renderCollapsedContent(){const e=this._isBottomSheetOpen?$`
2311                  <div class="${this.classes.selectionControls}">
2312                      ${this._renderShowSelectedFilter()} ${this._renderClearButton()}
2313                  </div>
2314                  <acorn-button-container layout="${gl.Vertical}">
2315                      ${this._buttonsSlot}
2316                  </acorn-button-container>
2317              `:null;return $`
2318            <acorn-internal-bottom-sheet .open="${this._isBottomSheetOpen}" @close="${this._onBottomSheetClose}">
2319                <acorn-internal-bottom-sheet-header heading="${this._itemsSelectedString}">
2320                </acorn-internal-bottom-sheet-header>
2321                <acorn-internal-bottom-sheet-body> ${e} </acorn-internal-bottom-sheet-body>
2322            </acorn-internal-bottom-sheet>
2323        `}_renderShowSelectedFilter(){return $`
2324            <acorn-filter-chip
2325                ?checked="${this._showOnlySelected}"
2326                class="${this.classes.showSelectedChip}"
2327                label="${Pw.ShowSelected+this._suffix}"
2328                @change="${this._onShowSelectedChange}"
2329            ></acorn-filter-chip>
2330        `}_renderClearButton(){if(this.clearable)return $`
2331            <acorn-button
2332                class="${this.classes.clearButton}"
2333                @click="${this._onClearButtonClick}"
2334                label="${Pw.Clear}"
2335                priority="${Tr.Tertiary}"
2336            ></acorn-button>
2337        `}_onBottomSheetClose(){this._hasContentOverflow=!0,this._isBottomSheetOpen=!1}_onIntersection(e){var t;const i=e[e.length-1];(null==(t=i.rootBounds)?void 0:t.width)&&(this._hasContentOverflow=!(null==i?void 0:i.isIntersecting))}};Lx([gt(),zt({type:Number})],Vw.prototype,"itemCount",2),Lx([gt()],Vw.prototype,"unit",2),Lx([gt(),zt({type:Boolean})],Vw.prototype,"clearable",2),Lx([ri("buttons",{selectAllTypes:Dr.config.type,spread:!0,strict:!0}),Ht()],Vw.prototype,"_buttonsSlot",2),Lx([ft({name:"filter"})],Vw.prototype,"_filter",2),Lx([ft({name:"clear"})],Vw.prototype,"_clear",2),Lx([ft({name:"itemCountChange"})],Vw.prototype,"_itemCountChange",2),Lx([Ht()],Vw.prototype,"_showOnlySelected",2),Lx([hi({duration:"0.35s",ease:"easeInOut"})],Vw.prototype,"_animation",2),Lx([Ht()],Vw.prototype,"_isBottomSheetOpen",2),Lx([Ht()],Vw.prototype,"_hasContentOverflow",2),Lx([wi("itemCount",{triggerOn:pi.ChangeAndConnect})],Vw.prototype,"onItemCountChange",1),Lx([wi("_showOnlySelected")],Vw.prototype,"onShowOnlySelectedChange",1),Lx([Wt("_animation")],Vw.prototype,"fadeInOutFrame",1),Lx([Pe()],Vw.prototype,"_onOverlayOpenButtonClick",1),Lx([Pe()],Vw.prototype,"_onClearButtonClick",1),Lx([Pe()],Vw.prototype,"_onShowSelectedChange",1),Lx([Pe()],Vw.prototype,"_onBottomSheetClose",1),Lx([Pe()],Vw.prototype,"_onIntersection",1),Vw=Lx([_t({tag:"acorn-data-table-selection-bar"})],Vw);var jw=Ve.createTranslation({AriaPage:{sv:"Sidan",en:"Page"},AriaTablePagination:{sv:"Sidnumrering",en:"Table pagination"},RangeOutOf:{sv:"av",en:"of"},PreviousPage:{sv:"Föregående sida, {0}",en:"Previous page, {0}"},NextPage:{sv:"Nästa sida, {0}",en:"Next page, {0}"},RangeLabel:{sv:"Visar rader {0}",en:"Showing rows {0}"}}),Gw={$host:{display:"block",...Ln(Dn.Small),outline:"0 !important"},wrapper:{display:"flex",justifyContent:"center"},navigation:{display:"flex",flexDirection:"row",gap:"8px",alignItems:"center",...Qi()},pageListWrapper:{position:"relative"},pageListCurrentMarker:{width:"28px",height:"28px",backgroundColor:zi.Surface.Brand.medium,borderRadius:"50%",display:"block",position:"absolute",left:e=>28*e._currentPageListIndex+"px",transition:ai.isRunningTests?"none":"left ease-in 0.25s"},pageList:{margin:0,padding:0,listStyle:"none",display:"flex",flexDirection:"row",position:"relative"},pageListItem:{width:"28px",height:"28px",lineHeight:"28px",textAlign:"center",'&[aria-current="page"]':{color:zi.Text.Regular.highStatic}}
2337,pageIndexButton:{...Qi(),width:"inherit",height:"inherit",cursor:"pointer",border:"0",backgroundColor:"transparent"},rangeLabel:{...Hn(),display:e=>e._isNarrowLayout?"none":"block",marginRight:"8px"}},qw=class extends Ti{constructor(){super(),this.pageCount=0,this._isNarrowLayout=!1,this._currentPage=0,this._pageList=[],this._resizeObserver=new ResizeObserver(this._onResize)}get currentPage(){const e=Math.min(this._currentPage,this._pageCount-1);return Math.max(e,0)}set currentPage(e){this._currentPage=e}get _currentPageListIndex(){return this._pageList.indexOf(this.currentPage)}get _pageCount(){return this.totalRowCount&&this.rowsPerPage?Math.ceil(this.totalRowCount/this.rowsPerPage):this.pageCount}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this._resizeObserver.observe(this)}disconnectedCallback(){this._resizeObserver.unobserve(this)}getRowRange(){if(!this.rowsPerPage||!this.totalRowCount)return;const e=this.currentPage*this.rowsPerPage;return{startIndex:e,length:this.totalRowCount?Math.min(this.totalRowCount-e,this.rowsPerPage):this.rowsPerPage}}
2337beforeRender(){if(this._pageCount>7){this._pageList=new Array(7),this._pageList.fill(-1);const e=this._pageCount-1;this._pageList[0]=0,this._pageList[6]=e,this._pageList[1]=this.currentPage<=3?1:-1;const t=e-1;let i;this._pageList[5]=this.currentPage<=t-3?-1:t,i=this.currentPage<4?[2,3,4]:this.currentPage>e-4?[e-4,e-3,e-2]:[this.currentPage-1,this.currentPage,this.currentPage+1],this._pageList.splice(2,3,...i)}else this._pageList=new Array(this._pageCount),this._pageList=this._pageList.fill(-1).map((e,t)=>t)}render(){if(this._pageCount)return $`
2338            <div class="${this.classes.wrapper}">
2339                <nav
2340                    aria-label="${`${jw.AriaTablePagination}, ${jw.AriaPage} ${this.currentPage+1} ${jw.RangeOutOf} ${this._pageCount}`}"
2341                    class="${this.classes.navigation}"
2342                >
2343                    ${this._renderRowRangeLabel()}
2344                    <acorn-icon-button
2345                        data-test-id="previousButton"
2346                        ?disabled="${!this._hasPrevious()}"
2347                        accessibility-label="${Ve.translate(jw.PreviousPage,Math.max(this.currentPage,1))}"
2348                        icon="${Zo.ChevronLeft}"
2349                        @click="${this._onPrevious}"
2350                    >
2351                    </acorn-icon-button>
2352                    <div class="${this.classes.pageListWrapper}">
2353                        <span class="${this.classes.pageListCurrentMarker}"></span>
2354                        <ol class="${this.classes.pageList}">
2355                            ${this._pageList.map(e=>-1!==e?e!==this.currentPage?$`<li class="${this.classes.pageListItem}">
2356                                              <button
2357                                                  type="button"
2358                                                  class="${this.classes.pageIndexButton}"
2359                                                  @click="${this._onPageNumberClick}"
2360                                                  value="${e}"
2361                                                  aria-label="${`${jw.AriaPage} ${e+1} ${jw.RangeOutOf} ${this._pageCount}`}"
2362                                              >
2363                                                  ${e+1}
2364                                              </button>
2365                                          </li>`:$`<li class="${this.classes.pageListItem}" aria-current="page">
2366                                              ${e+1}
2367                                          </li>`:$` <li class="${this.classes.pageListItem}" aria-hidden="true">...</li> `)}
2368                        </ol>
2369                    </div>
2370                    <acorn-icon-button
2371                        data-test-id="nextButton"
2372                        ?disabled="${!this._hasNext()}"
2373                        accessibility-label="${Ve.translate(jw.NextPage,Math.min(this.currentPage+2,this._pageCount))}"
2374                        icon="${Zo.ChevronRight}"
2375                        @click="${this._onNext}"
2376                    >
2377                    </acorn-icon-button>
2378                </nav>
2379            </div>
2380        `}getStyle(){return Gw}_renderRowRangeLabel(){return this._rowIndexRangeLabel()?$`<div class="${this.classes.rangeLabel}">${this._rowIndexRangeLabel()}</div>`:null}_hasPrevious(){return this.currentPage>0}_hasNext(){return this.currentPage<this._pageCount-1}_rowIndexRangeLabel(){const e=this.getRowRange();if(!e)return"";const t=`${e.startIndex+1}-${e.startIndex+e.length} ${jw.RangeOutOf} ${this.totalRowCount}`;return Ve.translate(jw.RangeLabel,t)}_setCurrentPage(e){const t=Math.min(this._pageCount-1,Math.max(0,e));this._beforePageChanged.emit({pageIndex:t}),this.currentPage=t,this._pageChanged.emit({pageIndex:t})}_onPrevious(){this._setCurrentPage(this.currentPage-1),this._hasPrevious()||this._focusCurrentPage()}_onNext(){this._setCurrentPage(this.currentPage+1),this._hasNext()||this._focusCurrentPage()}_onPageNumberClick(e){const t=e.target.value;this._setCurrentPage(parseInt(t))}_onResize(e){this._isNarrowLayout=e[0].contentRect.width<=500}_focusCurrentPage(){Ze.waitForReady(()=>{var e;null==(e=this.shadowRoot.querySelector('li[aria-current="page"]'))||e.focus()})}};Lx([gt(),zt({type:Number})],qw.prototype,"pageCount",2),Lx([gt(),zt({type:Number})],qw.prototype,"totalRowCount",2),Lx([gt(),zt({type:Number})],qw.prototype,"rowsPerPage",2),Lx([Ht()],qw.prototype,"_isNarrowLayout",2),Lx([gt(),zt({type:Number})],qw.prototype,"currentPage",1),Lx([ft({name:"pageChanged"})],qw.prototype,"_pageChanged",2),Lx([ft({name:"beforePageChanged"})],qw.prototype,"_beforePageChanged",2),Lx([Pe()],qw.prototype,"_onPrevious",1),Lx([Pe()],qw.prototype,"_onNext",1),Lx([Pe()],qw.prototype,"_onPageNumberClick",1),Lx([Pe()],qw.prototype,"_onResize",1),Lx([Pe()],qw.prototype,"_focusCurrentPage",1),qw=Lx([_t({tag:"acorn-data-table-pagination"})],qw);var Uw={$host:{display:"block",borderTop:`2px solid ${Nx}`,outline:"0 !important"},wrapper:{display:"flex",padding:"4px 0",width:"100%",boxSizing:"border-box",justifyContent:"space-between",alignItems:"center"},buttonWrapper:{display:"flex",minWidth:"120px","&.last":{justifyContent:"flex-end"}},loadMoreButton:{border:0,background:"transparent",padding:"8px",cursor:"pointer",fontWeight:$n.Bold,color:zi.Text.interactive,"&:disabled":{cursor:"auto",color:zi.Text.disabled}},rowCounter:{padding:"0 8px"},screenReaderOnly:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"}},Kw=class extends Ti{constructor(){super(...arguments),this.hideRowCounter=!1,this.hideShowAll=!1,this.hideShowMore=!1,this.stickyHeaders=!0,this._numRowsDisplayed=10}set numRowsDisplayed(e){isNaN(e)||this._numRowsDisplayed===e||(void 0!==this._numRowsDisplayed&&this._numRowsDisplayedChange.emit({
2380numDisplayedRows:e,userInteraction:!!this._rowDisplayTriggerEvent}),this._numRowsDisplayed=e)}get numRowsDisplayed(){return this.totalRowCount?Math.min(this._numRowsDisplayed,this.totalRowCount):this._numRowsDisplayed}render(){return $` <div class="${this.classes.wrapper}">
2381            ${this._renderShowMore()} ${this._renderCounter()} ${this._renderShowAll()}
2382        </div>`}getStyle(){return Uw}dispatchVisibleRowRangeChange(e){this._visibleRowRangeChange.emit(e)}_hasMoreRows(){return this.numRowsDisplayed<this.totalRowCount}_renderShowMore(){return!this.rowsPerStep||this.hideShowMore?$`<div class="${this.classes.buttonWrapper}"></div>`:$`
2383            <div class="${this.classes.buttonWrapper}">
2384                <button
2385                    id="loadMoreBtn"
2386                    ?disabled="${!this._hasMoreRows()}"
2387                    class="${this.classes.loadMoreButton}"
2388                    @click="${this._onNextStep}"
2389                >
2390                    <span class="${this.classes.screenReaderOnly}">
2391                        ${Ve.translate(Cw.ShowMoreAccessibility,this._getLoadMoreCount())}
2392                    </span>
2393                    <span aria-hidden="true">
2394                        ${Ve.translate(Cw.ShowMore,this._getLoadMoreCount())}
2395                    </span>
2396                </button>
2397            </div>
2398        `}_renderShowAll(){return this.hideShowAll?$`<div class="${this.classes.buttonWrapper}"></div>`:$`
2399            <div class="${[this.classes.buttonWrapper,"last"].join(" ")}">
2400                <button
2401                    id="loadAllBtn"
2402                    ?disabled="${!this._hasMoreRows()}"
2403                    class="${this.classes.loadMoreButton}"
2404                    @click="${this._onDisplayAll}"
2405                >
2406                    <span class="${this.classes.screenReaderOnly}"> ${Cw.ShowAllAccessibility} </span>
2407                    <span aria-hidden="true"> ${Cw.ShowAll} </span>
2408                </button>
2409            </div>
2410        `}_renderCounter(){if(this.hideRowCounter)return;const e=void 0!==this.filteredRowCount&&this.filteredRowCount<this.numRowsDisplayed?Ve.translate(Cw.NumHiddenOfTotal,this.numRowsDisplayed-this.filteredRowCount):"",t=Ve.translate(Cw.NumDisplayedOfTotal,this.numRowsDisplayed,e,this.totalRowCount),i=Ve.translate(Cw.NumDisplayedOfTotalAccessibility,this.numRowsDisplayed,e,this.totalRowCount);return $`<div class="${this.classes.rowCounter}">
2411            <span class="${this.classes.screenReaderOnly}">${i}</span>
2412            <span aria-hidden="true">${t}</span>
2413        </div>`}_getLoadMoreCount(){const e=this.totalRowCount-this.numRowsDisplayed;return Math.min(e,this.rowsPerStep||0)}_onNextStep(){const e=Math.min(this.numRowsDisplayed+(this.rowsPerStep||0),this.totalRowCount);this._rowDisplayTriggerEvent=this._stepIncrease.emit({currentNumRowsDisplayed:this.numRowsDisplayed,nextNumRowsDisplayed:e}),this._rowDisplayTriggerEvent.defaultPrevented||(this.numRowsDisplayed=e,this._rowDisplayTriggerEvent=void 0)}_onDisplayAll(){const e=this.totalRowCount;this._rowDisplayTriggerEvent=this._displayAll.emit({currentNumRowsDisplayed:this.numRowsDisplayed,nextNumRowsDisplayed:e}),this._rowDisplayTriggerEvent.defaultPrevented||(this.numRowsDisplayed=e,this._rowDisplayTriggerEvent=void 0)}};Lx([gt(),zt({type:Number})],Kw.prototype,"rowsPerStep",2),Lx([gt(),zt({type:Boolean})],Kw.prototype,"hideRowCounter",2),Lx([gt(),zt({type:Boolean})],Kw.prototype,"hideShowAll",2),Lx([gt(),zt({type:Boolean})],Kw.prototype,"hideShowMore",2),Lx([gt(),zt({type:Boolean})],Kw.prototype,"stickyHeaders",2),Lx([Ht()],Kw.prototype,"totalRowCount",2),Lx([Ht()],Kw.prototype,"filteredRowCount",2),Lx([gt(),zt({type:Number})],Kw.prototype,"numRowsDisplayed",1),Lx([ft({name:"stepIncrease",cancelable:!0})],Kw.prototype,"_stepIncrease",2),Lx([ft({name:"displayAll",cancelable:!0})],Kw.prototype,"_displayAll",2),Lx([ft({name:"numRowsDisplayedChange"})],Kw.prototype,"_numRowsDisplayedChange",2),Lx([ft({name:"visibleRowRangeChange"})],Kw.prototype,"_visibleRowRangeChange",2),Lx([Pe()],Kw.prototype,"_onNextStep",1),Lx([Pe()],Kw.prototype,"_onDisplayAll",1),Kw=Lx([_t({tag:"acorn-data-table-row-loader"})],Kw);var Yw=class extends CustomEvent{constructor(e,t){super("checkAll",{bubbles:!0,composed:!0,detail:{columnData:e.data,columnKey:e.columnKey,value:t}})}},Xw={$host:{display:"block"},selectAllOption:{display:"flex",whiteSpace:"nowrap",gap:"8px",alignItems:"center",padding:"8px",cursor:"pointer"}},Qw=class extends Ti{getStyle(){return Xw}render(){var e;const t=null==(e=this.selectableColumns)?void 0:e.find(e=>"row-select"===e.columnType);if(t)return $`<div
2414            id="selectAll@${t.columnKey}"
2415            @click="${this._onCheckAll.bind(this,t)}"
2416            class="${this.classes.selectAllOption}"
2417        >
2418            <acorn-internal-checkbox-graphic
2419                .indeterminate="${"indeterminate"===t.selectAll}"
2420                .checked="${"all"===t.selectAll}"
2421            ></acorn-internal-checkbox-graphic>
2422            <span>${Cw.SelectAll}</span>
2423        </div>`}_onCheckAll(e){const t="none"===e.selectAll;this.dispatchEvent(new Yw(e,t))}};Qw.MIN_WIDTH=120,Lx([Ht()],Qw.prototype,"selectableColumns",2),Qw=Lx([_t({tag:"acorn-data-table-toolbar-internal-list-select"})],Qw);var Zw=class extends CustomEvent{constructor(e,t,i){super("sort",{bubbles:!0,composed:!0,detail:{columnData:e.data,columnKey:e.columnKey,sortDirection:t,sortMethod:i}})}},Jw={$host:{display:"block"}},eC=class extends Ti{getStyle(){return Jw}render(){var e;if(!(null==(e=this.sortableColumns)?void 0:e.length))return;const t=this.sortableColumns.find(e=>e.sorted),i=(null==t?void 0:t.sorted)?t.heading:Cw.Sort,n=this._getSortIcon(null==t?void 0:t.sorted)||Zo.NeutralWeb;return $`<acorn-menu
2424            label="${i}"
2425            icon="${n}"
2426            @select="${this._onSort}"
2427            ._respondToMediaQuery="${!1}"
2428        >
2429            ${this.sortableColumns.map(e=>$`
2430                    <acorn-menu-option
2431                        value="${e.columnKey}"
2432                        icon="${j(this._getSortIcon(null==t?void 0:t.sorted))}"
2433                    >
2434                        ${e.heading}
2435                    </acorn-menu-option>
2436                `)}
2437        </acorn-menu>`}_onSort(e){var t;const i=null==(t=this.sortableColumns)?void 0:t.find(t=>t.columnKey===e.detail.value);if(!i)return;const n="ascending"===i.sorted?"descending":"ascending";this.dispatchEvent(new Zw(i,n,i.sortMethod))}_getSortIcon(e){return"descending"===e?Zo.DescendingWeb:"ascending"===e?Zo.AscendingWeb:void 0}};eC.MIN_WIDTH=80,Lx([Ht()],eC.prototype,"sortableColumns",2),Lx([Pe()],eC.prototype,"_onSort",1),eC=Lx([_t({tag:"acorn-data-table-toolbar-internal-list-sort"})],eC);var tC={$host:{display:"block",position:"relative",outline:"0 !important"},wrapper:{whiteSpace:"nowrap"},overflow:{position:e=>!e.showAllFilters&&e.isCollapsed?"absolute":"static",left:"0",display:"inline-block",overflowX:"hidden",verticalAlign:"sub",zIndex:"-1"},filters:{width:"fit-content",display:"flex",gap:"16px 12px",alignItems:"center",visibility:e=>e.isCollapsed?"hidden":"inherit"},allFilter:{marginRight:"6px",display:e=>e.showAllFilters||e.isCollapsed?void 0:"none"}},iC=class extends Ti{constructor(){super(),this.showAllFilters=!1,this.showApply=!1,this._filterDialogOpened=!1,this._hasContentOverflow=!1,this._isReady=!1,this._overflowObserver=new IntersectionObserver(this._onOverflowChange,{root:this,threshold:.99})}get isCollapsed(){return this._hasContentOverflow}getStyle(){return tC}render(){this.style.visibility=this._isReady?"inherit":"hidden";const e=this.numSelectedFilters&&!isNaN(this.numSelectedFilters)?" "+(this.numSelectedFilters+" "+Cw.Selected):"";return $`
2438            <div class="${this.classes.wrapper}">
2439                <acorn-icon-button
2440                    label="${Cw.AllFilters}"
2441                    accessibility-label="${Cw.ShowAllTableFilters+e}"
2442                    accessibility-has-popup="true"
2443                    icon="bars-filter"
2444                    badge="${Math.max(this.numSelectedFilters||0,0)}"
2445                    class="${this.classes.allFilter}"
2446                    @click="${this._onToggleFilterDialog}"
2447                ></acorn-icon-button>
2448
2449                <div class="${this.classes.overflow}">
2450                    <div id="filters" class="${this.classes.filters}">${this._filterSlots.map(this._renderChip)}</div>
2451                </div>
2452            </div>
2453
2454            <acorn-page-detail
2455                heading="${Cw.AllFilters}"
2456                close-on-click-outside
2457                .open="${this._filterDialogOpened}"
2458                @pageDetailCloseComplete="${this._onClosePageDetail}"
2459            >
2460                ${this._renderCollapsedFilters()}
2461
2462                <acorn-page-detail-footer>
2463                    <acorn-button label="${Cw.Reset}" type="reset" @click="${this._onFilterClearAll}"></acorn-button>
2464                    ${this.showApply?$`<acorn-button label="${Cw.Apply}" @click="${this._onFilterApplyAll}"></acorn-button>`:null}
2465                </acorn-page-detail-footer>
2466            </acorn-page-detail>
2467        `}closeFilters(){var e;this._filterDialogOpened?null==(e=this.shadowRoot.querySelector("acorn-p
2467age-detail"))||e.close():this.shadowRoot.querySelectorAll("acorn-action-chip").forEach(e=>{e.closeOverlay()})}afterInitialRender(){const e=this.shadowRoot.getElementById("filters");this._overflowObserver.observe(e)}_renderChip(e){const t=e.content;return 0===t.children.length?$`
2468                <acorn-filter-chip
2469                    label="${t.label}"
2470                    class="${this.classes.chip}"
2471                    ?checked="${t.selected||!1}"
2472                    @click="${this._onFilterClick.bind(this,t)}"
2473                ></acorn-filter-chip>
2474            `:$`
2475            <acorn-action-chip
2476                label="${t.label}"
2477                accessibility-label="${Cw.Filter+": "+t.label}"
2478                class="${this.classes.chip}"
2479                num-selected="${t.selected}"
2480                .overlayPositionStrategy="${Ml.Fixed}"
2481                ?show-apply="${this.showApply}"
2482                @open="${this._onFilterOpen.bind(this,t)}"
2483                @clear="${this._onFilterClear.bind(this,t)}"
2484                @apply="${this._onFilterApply.bind(this,t)}"
2485                @closeComplete="${this._onFilterClose.bind(this,t)}"
2486            >
2487                <acorn-action-chip-overlay>${this._filterDialogOpened?null:e}</acorn-action-chip-overlay>
2488            </acorn-action-chip>
2489        `}_renderCollapsedFilters(){if(!this._filterDialogOpened)return null;const e=this._filterSlots.filter(e=>!e.content.children.length),t=this._filterSlots.filter(e=>e.content.children.length);return $`
2490            ${e.map(e=>{const t=e.content;return $`
2491                    <acorn-checkbox
2492                        label="${t.label}"
2493                        ?checked="${t.selected||!1}"
2494                        @click="${this._onFilterClick.bind(this,t)}"
2495                    ></acorn-checkbox>
2496                `})}
2497            ${t.map(e=>{const t=e.content,i=t.selected?" ("+t.selected+")":"";return $`
2498                    <acorn-accordion heading="${t.label+i}">
2499                        <acorn-accordion-body>${e}</acorn-accordion-body>
2500                    </acorn-accordion>
2501                `})}
2502        `}_onOverflowChange(e){const t=e[e.length-1];this._hasContentOverflow=!t.isIntersecting,this._isReady=!0}_onToggleFilterDialog(){this._filterOpen.emit({filters:this._filterSlots.map(e=>{var t;return null==(t=e.content)?void 0:t.name})}),this._filterDialogOpened=!0}_onClosePageDetail(){this._filterDialogOpened=!1,this._filterClose.emit({filters:this._filterSlots.map(e=>{var t;return null==(t=e.content)?void 0:t.name})})}_onFilterOpen(e){this._filterOpen.emit({filters:[e.name]})}_onFilterClear(e,t){this._filterClear.emit({filters:[e.name]}).defaultPrevented&&t.preventDefault()}_onFilterClearAll(){this._filterClear.emit({filters:this._filterSlots.map(e=>{var t;return null==(t=e.content)?void 0:t.name})}).defaultPrevented||this.closeFilters()}_onFilterApply(e,t){this._filterApply.emit({filters:[e.name]}).defaultPrevented&&t.preventDefault()}_onFilterApplyAll(){this._filterApply.emit({filters:this._filterSlots.map(e=>{var t;return null==(t=e.content)?void 0:t.name})}).defaultPrevented||this.closeFilters()}_onFilterClose(e){this._filterClose.emit({filters:[e.name]})}_onFilterClick(e,t){t.preventDefault(),this._filterChange.emit({filter:e.name})}};iC.MIN_WIDTH=80,Lx([gt(),zt({type:Boolean})],iC.prototype,"showAllFilters",2),Lx([gt(),zt({type:Number})],iC.prototype,"numSelectedFilters",2),Lx([gt(),zt({type:Boolean})],iC.prototype,"showApply",2),Lx([ri("filter",{selectAllTypes:"data-table-toolbar-filters-item",spread:!0}),Ht()],iC.prototype,"_filterSlots",2),Lx([Ht()],iC.prototype,"_filterDialogOpened",2),Lx([Ht()],iC.prototype,"_hasContentOverflow",2),Lx([Ht()],iC.prototype,"_isReady",2),Lx([ft()],iC.prototype,"_filterOpen",2),Lx([ft()],iC.prototype,"_filterClose",2),Lx([ft()],iC.prototype,"_filterChange",2),Lx([ft({cancelable:!0})],iC.prototype,"_filterClear",2),Lx([ft({cancelable:!0})],iC.prototype,"_filterApply",2),Lx([Pe()],iC.prototype,"closeFilters",1),Lx([Pe()],iC.prototype,"_renderChip",1),Lx([Pe()],iC.prototype,"_onOverflowChange",1),Lx([Pe()],iC.prototype,"_onToggleFilterDialog",1),Lx([Pe()],iC.prototype,"_onClosePageDetail",1),Lx([Pe()],iC.prototype,"_onFilterOpen",1),Lx([Pe()],iC.prototype,"_onFilterClear",1),Lx([Pe()],iC.prototype,"_onFilterClearAll",1),Lx([Pe()],iC.prototype,"_onFilterApply",1),Lx([Pe()],iC.prototype,"_onFilterApplyAll",1),Lx([Pe()],iC.prototype,"_onFilterClose",1),Lx([Pe()],iC.prototype,"_onFilterClick",1),iC=Lx([_t({tag:"acorn-data-table-toolbar-filters"})],iC);var nC={$host:{display:"block",paddingBottom:"1px"}},oC=class extends Ti{onSelectedChange(){this.parentElement.invali
2502date()}getStyle(){return nC}render(){return $`<div>${this._defaultSlot}</div>`}};Lx([gt()],oC.prototype,"label",2),Lx([gt()],oC.prototype,"name",2),Lx([gt(),zt({type:Number})],oC.prototype,"selected",2),Lx([ri("default"),Ht()],oC.prototype,"_defaultSlot",2),Lx([wi("selected")],oC.prototype,"onSelectedChange",1),oC=Lx([_t({tag:"acorn-data-table-toolbar-filters-item"})],oC);var rC=class extends xt{constructor(){super(...arguments),this.label="",this.value=""}};rC.modelName="dataTableToolbarAppliedFiltersItem";var aC={$host:{outline:"0 !important"},divider:{display:function(e){return e.data.length?"block":"none"},paddingTop:"16px",borderTop:`1px solid ${Nx}`},wrapper:{outline:"0px !important",display:"flex",gap:"16px 12px",alignItems:"center",flexWrap:"wrap"},clearAllBtn:{padding:"0 8px",whiteSpace:"nowrap"}},sC="wrapper",lC=class extends Ti{get _wrapperElement(){return this.shadowRoot.getElementById(sC)}get _appliedFilterElements(){return[...this.shadowRoot.querySelectorAll("acorn-internal-chip")]}getStyle(){return aC}render(){return $`
2503            <div class="${this.classes.divider}"></div>
2504            <div id="${sC}" class="${this.classes.wrapper}" tabindex="-1">
2505                ${this.data.map(e=>$`
2506                        <acorn-internal-chip
2507                            label="${e.label}"
2508                            aria-label="${Cw.AppliedFilter+": "+e.label}"
2509                            aria-pressed="true"
2510                            tabindex="0"
2511                            selected="1"
2512                            role="button"
2513                            aria-checked="true"
2514                            ?clearable="${!0}"
2515                            @click="${this._onAppliedFilterClicked.bind(this,e)}"
2516                            @keydown="${this._onAppliedFilterKeyDown.bind(this,e)}"
2517                        ></acorn-internal-chip>
2518                    `)}
2519                ${this.data.length>1?$` <acorn-text-button class="${this.classes.clearAllBtn}" @click="${this._onClearAllClicked}">
2520                          ${Cw.ClearAll}
2521                      </acorn-text-button>`:null}
2522            </div>
2523        `}afterRender(){var e;if(void 0!==this._pendingFocusIndex){if(!isNaN(this._pendingFocusIndex)&&this.shadowRoot.activeElement===this._wrapperElement){const t=Math.min(this._pendingFocusIndex,this._appliedFilterElements.length-1);null==(e=this._appliedFilterElements[t])||e.focus()}this._pendingFocusIndex=void 0}}_onAppliedFilterClicked(e){this._clearFilters([e.value])}_onAppliedFilterKeyDown(e,t){t.key!==ye.Space&&t.key!==ye.Enter||(t.preventDefault(),this._clearFilters([e.value]))}_onClearAllClicked(){this._clearFilters(this.data.map(e=>e.value))}_clearFilters(e){const t=this._clearFilter.emit({values:e});this.shadowRoot.activeElement&&!t.defaultPrevented&&(this._pendingFocusIndex=this._appliedFilterElements.findIndex(e=>this.shadowRoot.activeElement===e),this._wrapperElement.focus({preventScroll:!0}))}};Lx([Mt(),zt({type:[rC]})],lC.prototype,"data",2),Lx([ft({cancelable:!0})],lC.prototype,"_clearFilter",2),Lx([Pe()],lC.prototype,"_onAppliedFilterClicked",1),Lx([Pe()],lC.prototype,"_onAppliedFilterKeyDown",1),Lx([Pe()],lC.prototype,"_onClearAllClicked",1),lC=Lx([_t({tag:"acorn-data-table-toolbar-applied-filters"})],lC);var cC=class extends xt{constructor(){super(...arguments),this.label="",this.icon="",this.value=""}};cC.modelName="dataTableToolbarOptionsItem";var dC=class extends xt{constructor(){super(...arguments),this.label="",this.icon=""}};dC.modelName="dataTableToolbarOptionsItemGroup",Lx([zt({type:cC})],dC.prototype,"children",2);var hC={$host:{display:"block"}},pC=class extends Ti{constructor(){super(...arguments),this.hideLabels=!1,this.collapseStrategy=fx.Auto}getStyle(){return hC}render(){return $` <acorn-internal-toolbar
2524            .data="${this.data}"
2525            .hideLabels="${this.hideLabels}"
2526            .collapseStrategy="${this.collapseStrategy}"
2527            @selectOption="${this._onSelectOption}"
2528        ></acorn-internal-toolbar>`}_onSelectOption(e){this._selectOption.emit(e.detail)}};pC.MIN_WIDTH=80,Lx([gt(),zt({type:Boolean})],pC.prototype,"hideLabels",2),Lx([gt(),zt({type:fx})],pC.prototype,"collapseStrategy",2),Lx([Mt(),zt({type:[cC,dC]})],pC.prototype,"data",2),Lx([ft()],pC.prototype,"_selectOption",2),Lx([Pe()],pC.prototype,"_onSelectOption",1),pC=Lx([_t({tag:"acorn-data-table-toolbar-options"})],pC);var uC={$host:{display:function(e){return e._isEmpty?"none":"block"}},wrapper:{display:"flex",flexDirection:"column",width:"100%",marginBottom:"16
2528px",rowGap:"6px"},row:{display:"flex",gap:"24px",justifyContent:"space-between",alignItems:"center"},listLayoutItems:{display:"flex",gap:"8px",flex:"0 1 auto"},filters:{minWidth:`${iC.MIN_WIDTH}px`,flex:"1 0 auto",maxWidth:function(e){return`calc(100% - ${e._filterMaxWidth}px)`}},search:{flex:"0 1 auto"},options:{flex:"0 1 100%",textAlign:"right",overflow:"hidden"}},gC={$host:{display:"block",outline:"0 !important",minWidth:e=>`${e.size}px`},searchInput:{margin:0,maxWidth:"none"}},mC=class extends Ti{constructor(){super(...arguments),this.accessibilityLabel=void 0,this.disabled=!1,this.size=200,this._hasFocus=!1}get _placeholder(){return this._hasFocus&&this.placeholder||Cw.Search}getStyle(){return gC}render(){return $`<acorn-search-field
2529            class="${this.classes.searchInput}"
2530            placeholder="${j(this._placeholder)}"
2531            accessibility-label="${j(this.accessibilityLabel)}"
2532            value="${this.value}"
2533            ?disabled="${this.disabled}"
2534            @clear="${this._onSearchClear}"
2535            @input="${this._onSearchInput}"
2536            @focusin="${this._onSearchFocusIn}"
2537            @focusout="${this._onSearchFocusOut}"
2538        >
2539        </acorn-search-field>`}_onSearchFocusIn(){this._hasFocus=!0}_onSearchFocusOut(){this._hasFocus=!1}_onSearchInput(e){this._searchInput.emit({value:e.target.value})}_onSearchClear(){this._searchInput.emit({value:""})}};mC.MIN_WIDTH=80,Lx([gt()],mC.prototype,"placeholder",2),Lx([gt()],mC.prototype,"value",2),Lx([gt()],mC.prototype,"accessibilityLabel",2),Lx([gt(),zt({type:Boolean})],mC.prototype,"disabled",2),Lx([gt(),zt({type:Number})],mC.prototype,"size",2),Lx([ft({cancelable:!0})],mC.prototype,"_searchInput",2),Lx([Ht()],mC.prototype,"_hasFocus",2),Lx([Pe()],mC.prototype,"_onSearchFocusIn",1),Lx([Pe()],mC.prototype,"_onSearchFocusOut",1),Lx([Pe()],mC.prototype,"_onSearchInput",1),Lx([Pe()],mC.prototype,"_onSearchClear",1),mC=Lx([_t({tag:"acorn-data-table-toolbar-search"})],mC);var bC=class extends Ti{constructor(){super(),this._layoutMinWidth=0,this._layoutNumRows=0,this._resizeObserver=new ResizeObserver(this._onToolbarResize)}get _filterMaxWidth(){return this._layoutMinWidth-iC.MIN_WIDTH}get _isEmpty(){return(!this.sortColumns||!this.sortColumns.length)&&((!this.selectColumns||!this.selectColumns.length)&&(!this._optionsSlot.isFilled()&&(!this._filtersSlot.isFilled()&&(!this._appliedFiltersSlot.isFilled()&&!this._searchSlot.isFilled()))))}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),setTimeout(()=>{this._resizeObserver.observe(this)},0)}disconnectedCallback(){this._resizeObserver.unobserve(this)}getStyle(){return uC}render(){if(!this._isEmpty)return this._layoutNumRows>1?$`
2540                <div class="${this.classes.wrapper}">
2541                    <div>${this._renderSearch()}</div>
2542                    <div class="${this.classes.row}">${this._renderFilters()} ${this._renderOptions()}</div>
2543                    ${this._renderListLayoutItems()} ${this._appliedFiltersSlot}
2544                </div>
2545            `:$`
2546            <div class="${this.classes.wrapper}">
2547                <div class="${this.classes.row}">
2548                    ${this._renderFilters()} ${this._renderSearch()} ${this._renderOptions()}
2549                </div>
2550                ${this._renderListLayoutItems()} ${this._appliedFiltersSlot}
2551            </div>
2552        `}_renderListLayoutItems(){var e,t;return(null==(e=this.selectColumns)?void 0:e.length)||(null==(t=this.sortColumns)?void 0:t.length)?$`
2553            <div class="${this.classes.listLayoutItems}">
2554                <acorn-data-table-toolbar-internal-list-select
2555                    class="${this.classes.select}"
2556                    .selectableColumns="${this.selectColumns}"
2557                >
2558                </acorn-data-table-toolbar-internal-list-select>
2559                <acorn-data-table-toolbar-internal-list-sort
2560                    class="${this.classes.sort}"
2561                    .sortableColumns="${this.sortColumns}"
2562                >
2563                </acorn-data-table-toolbar-internal-list-sort>
2564            </div>
2565        `:null}_renderFilters(){return this._filtersSlot.isFilled()?$`<div class="${this.classes.filters}">${this._filtersSlot}</div>`:null}
2565_renderSearch(){return this._searchSlot.isFilled()?$`<div class="${this.classes.search}">${this._searchSlot}</div>`:null}_renderOptions(){return this._optionsSlot.isFilled()?$`<div class="${this.classes.options}">${this._optionsSlot}</div>`:null}_onToolbarResize(e){this._updateLayoutFlexMinWidth(e[0].contentRect.width)}_updateLayoutFlexMinWidth(e){let t=0,i=0,n=1;if(this.sortColumns&&this.sortColumns.length&&i++,this.selectColumns&&this.selectColumns.length&&i++,this._optionsSlot.isFilled()&&(t+=pC.MIN_WIDTH,i++),this._filtersSlot.isFilled()&&(t+=iC.MIN_WIDTH,i++),this._appliedFiltersSlot.isFilled()&&i++,t+=24*(i-1),this._searchSlot.isFilled()){const o=this._searchSlot.content.size+24;i&&t+o>e?n++:(t+=o,i++)}this._layoutNumRows=n,this._layoutMinWidth=t}};Lx([Ht()],bC.prototype,"sortColumns",2),Lx([Ht()],bC.prototype,"selectColumns",2),Lx([ri("filters",{selectSingleType:iC.config.type,strict:!0}),Ht()],bC.prototype,"_filtersSlot",2),Lx([ri("options",{selectSingleType:pC.config.type,strict:!0}),Ht()],bC.prototype,"_optionsSlot",2),Lx([ri("search",{selectSingleType:mC.config.type,strict:!0}),Ht()],bC.prototype,"_searchSlot",2),Lx([ri("applied-filters",{selectSingleType:lC.config.type,strict:!0}),Ht()],bC.prototype,"_appliedFiltersSlot",2),Lx([Ht()],bC.prototype,"_layoutMinWidth",2),Lx([Ht()],bC.prototype,"_layoutNumRows",2),Lx([Pe()],bC.prototype,"_onToolbarResize",1),bC=Lx([_t({tag:"acorn-data-table-toolbar"})],bC);var vC={$host:{display:"block"},button:{display:"block",border:0,padding:0,width:"100%",background:"transparent",fontSize:"inherit",cursor:e=>e.column.isSortable||e.column.showSelectAll?"pointer":"default"},wrapper:{padding:"0 8px",height:"inherit",display:"flex",gap:"8px",alignItems:"center",justifyContent:e=>{switch(e.column.align){case"center":return"center";case"right":return"end";default:return"start"}}},header:{...Wn(),display:"block",maxWidth:"100%",whiteSpace:"var(--acorn-data-table-internal-column-header-white-space, nowrap)",overflow:"hidden",textOverflow:"ellipsis",fontWeight:$n.Bold,color:zi.Text.Regular.high},sortIcon:{display:"block"},headerHidden:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"},a11yLiveRegion:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0",display:"none"}},yC="a11yLiveRegion",_C=class extends Ti{get _headerClass(){return this.column.hideHeader?this.classes.headerHidden:this.classes.header}getStyle(){return vC}render(){if(this.column.hasHeader)return this.column.isSortable?this._renderSortableHeader():this.column.showSelectAll?this._renderSelectAllHeader():this._renderDefaultHeader()}_renderDefaultHeader(){return $`
2566            <span class="${this.classes.wrapper}">
2567                ${this._renderIcon()}
2568                <span class="${this._headerClass}" title="${this.column.heading}">
2569                    <span>${this.column.heading}</span>
2570                </span>
2571            </span>
2572        `}_renderSortableHeader(){let e=Zo.NeutralWeb;return"descending"===this.column.sorted?e=Zo.DescendingWeb:"ascending"===this.column.sorted&&(e=Zo.AscendingWeb),$`
2573            <button
2574                class="${this.classes.button}"
2575                @click="${this._onSort}"
2576                aria-description="${Cw.SortableColumn}"
2577                aria-pressed="${j("descending"===this.column.sorted?"true":void 0)}"
2578            >
2579                <span class="${this.classes.wrapper}">
2580                    ${this._renderIcon()}
2581                    <span class="${this._headerClass}" title="${this.column.heading}">
2582                        <span>${this.column.heading}</span>
2583                    </span>
2584                    <acorn-internal-icon
2585                        id="${"sortArrow"}"
2586                        icon="${e}"
2587                        size="${Jo.Small}"
2588                    ></acorn-internal-icon>
2589                </span>
2590            </button>
2591            ${this._renderLiveRegion()}
2592        `}_renderSelectAllHeader(){const e=`${this.column.heading} ${"none"===this.column.selectAll?Cw.SelectAll:Cw.UnselectAll}`;return $`
2593            <button class="${this.classes.button}" @click="${this._onCheckAll}" aria-label="${e}">
2594                <span class="${this.classes.wrapper}" aria-hidden="true">
2595                    <acorn-internal-checkbox-graphic
2596                        .checked="${"all"===this.column.selectAll}"
2597                        .indeterminate="${"indeterminate"===this.column.selectAll}"
2598                    ></acorn-internal-checkbox-graphic>
2599                    ${this._renderIcon()}
2600                    <span class="${this._headerClass}" title="${this.column.heading}">
2601                        <span>${this.column.heading}</span>
2602                    </span>
2603                </span>
2604            </button>
2605            ${this._renderLiveRegion()}
2606        `}_renderIcon(){return this.column.icon?$`<acorn-icon icon="${this.column.icon}"></acorn-icon>`:null}_renderLiveRegion(){return $` <span id="${yC}" class="${this.classes.a11yLiveRegion}" role="alert"></span> `}_onSort(){if(!this.column.isSortable)return;const e="ascending"===this.column.sorted?"descending":"ascending";this.dispatchEvent(new Zw(this.column,e,this.column.sortMethod));const t="ascending"===e?Cw.SortAscending:Cw.SortDescending;this._a11yAnnouncement(t)}_onCheckAll(){const e="none"===this.column.selectAll;this.dispatchEvent(new Yw(this.column,e));const t=e?Cw.AllSelected:Cw.AllUnselect;this._a11yAnnouncement(t)}_a11yAnnouncement(e){const t=this.shadowRoot.getElementById(yC);t.style.display="inline",t.textContent=e,setTimeout(()=>{t.style.display="none"},200)}};Lx([Ht()],_C.prototype,"column",2),Lx([Pe()],_C.prototype,"_onSort",1),Lx([Pe()],_C.prototype,"_onCheckAll",1),_C=Lx([_t({tag:"acorn-data-table-internal-layout-table-column-header"})],_C);var fC=class extends CustomEvent{constructor(e,t){super("rowExpand",{bubbles:!0,composed:!0,detail:{rowKey:e,expanded:t}})}},xC={level:1,setSize:0,positionInSet:1,rows:[]},wC=class{constructor(e,t){this.created=Date.now(),this._lastModified=-1,this.key=e,this._source=t,this._data=t}get lastModified(){return this._lastModified}get hasData(){return!Object.keys(this._data).length}get level(){return this._data.level||0}get rows(){return this._data.rows||[]}getCellValue(e){return this._data[e]}isDirty(){return!this._source}isActive(){return this._data.active||!1}getExpandState(){return"always-expanded"===this.getTreeGridData().defaultExpandState?"always-expanded":void 0!==this._data.expanded?this._data.expanded?"expanded":"collapsed":this.getTreeGridData().defaultExpandState}isExpandable(){var e;return!!(null==(e=this.getTreeGridData().rows)?void 0:e.length)}isNew(e=300){return this.created+e>Date.now()}hasChanged(e=300){return this._lastModified+e>Date.now()}getData(){return this._immutableData||(this._immutableData=Object.freeze({...this._data})),this._immutableData}setData(e){if(this._source&&this._source===e)return this;if(!this._source){if(Object.keys(this._data).every(t=>this._data[t]===e[t]))return this}return this._immutableData=void 0,this._lastModified=Date.now(),this._source=e,this._data=e,this}setTreeGridData(e){return this._treeGridData={...this._treeGridData||xC,...e},this}getTreeGridData(){return this._treeGridData||xC}hasTreeGridData(){return void 0!==this._treeGridData}updateData(e){return e?(this._immutableData=void 0,this._source=null,this._data={...this._data,...e},this):this}};var CC={$host:{display:"block"},wrapper:{paddingLeft:function(e){return 24*((e.level||0)-1)+"px"},display:"flex",alignItems:"center"},expandBtn:{display:function(e){return"always-expanded"===e.expandedState?"none":"block"},visibility:function(e){return e.hasChildRows?"visible":"hidden"},position:"relative",background:"transparent",border:"0",marginLeft:"8px",padding:0,cursor:"pointer","&::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",display:"block",width:"30px",height:"30px"}},arrow:{display:"flex",transformOrigin:"50% 50%",transitionProperty:"transform",transitionDuration:function(e){return!ai.isRunningTests&&e._shouldAnimate?"0.25s":"0"},transform:function(e){return"expanded"===e.expandedState?"rotate(90deg)":"rotate(0deg)"}}},SC=class extends Ti{constructor(){super(...arguments),this.hasChildRows=!1,this._shouldAnimate=!1}getStyle(){return CC}render(){let e,t;return this._shouldAnimate=this.rendered,"collapsed"===this.expandedState?(e=Cw.ExpandRow,t="false"):(e=Cw.CollapseRow,t="true"),$`
2607            <div class="${this.classes.wrapper}">
2608                <button
2609                    class="${this.classes.expandBtn}"
2610                    aria-label="${e}"
2611                    aria-expanded="${t}"
2612                    @click="${this._onToggleExpand}"
2613                >
2614                    <acorn-internal-icon
2615                        class="${this.classes.arrow}"
2616                        icon="${Zo.ChevronRight}"
2617                        size="${tr}"
2618                        color="${zi.Icon.regular}"
2619                    >
2620                    </acorn-internal-icon>
2621                </button>
2622                <slot></slot>
2623            </div>
2624        `}_onToggleExpand(e){switch(e.stopPropagation(),this.expandedState){case"expanded":this.dispatchEvent(new fC(this.rowKey,!1));break;case"collapsed":this.dispatchEvent(new fC(this.rowKey,!0));break;default:return}}};Lx([Ht()],SC.prototype,"level",2),Lx([Ht()],SC.prototype,"rowKey",2),Lx([Ht()],SC.prototype,"expandedState",2),Lx([Ht()],SC.prototype,"hasChildRows",2),Lx([Pe()],SC.prototype,"_onToggleExpand",1),SC=Lx([_t({tag:"acorn-data-table-internal-layout-table-nested-row-cell",delegatesFocus:!0})],SC);var $C=new WeakMap,kC=class e{static getSizeReport(t,i){let n=$C.get(t);return n?n.update(t,i):(n=new e(t,i),$C.set(t,n),n)}constructor(e,t){this.update(e,t)}update(e,t){return t===this._options||(this._options=t,this._sizeReport=this._calculateReport(e)),this}getGroupOffset(){return this._options.groupOffset}getHeight(){return this._sizeReport.height}getGroup(e){return this._sizeReport.groups[e]}getGroupVisibleBoundsIntersection(e,t){const i=this._sizeReport.groups[e].item,n=Math.max(t.top,i.top),o=Math.min(t.bottom,i.bottom),r=n<o;if(!r)return Object.freeze({isVisible:r,visibleItemsIndexFrom:0,visibleItemsIndexTo:0,visibleItemsOffsetTop:this._sizeReport.groups[e].height,visibleItemsOffsetBottom:0});const a=n-i.top,s=o-i.top,l=Math.floor(a/this._options.itemHeight),c=Math.ceil(s/this._options.itemHeight),d=l*this._options.itemHeight,h=i.height-c*this._options.itemHeight;return Object.freeze({isVisible:!0,visibleItemsIndexFrom:l,visibleItemsIndexTo:c,visibleItemsOffsetTop:d,visibleItemsOffsetBottom:h})}_calculateReport(e){let t=this._options.groupOffset;const i=e.getViewData().map((e,i)=>{var n,o;const r=t;e.heading&&e.items.length>0&&(t+=this._options.headingHeight);let a=0;
2624e.summaryData&&e.items.length>0&&(a=null!=(o=null==(n=this._options.groupSummaryHeights)?void 0:n[i])?o:this._options.itemHeight);const s=t,l=e.items.length*this._options.itemHeight+a;t+=l;const c=t,d=t,h=d-r;return Object.freeze({top:r,bottom:d,height:h,item:Object.freeze({top:s,bottom:c,height:l})})});return Object.freeze({top:0,bottom:t,height:t,groups:i})}},EC="table-row-changed-fade-animation",TC=class extends Ti{constructor(){super(),this.liveRows=!1,this.stickyHeaders=!1,this.optimizeRender=!1,this._created=Date.now()}set density(e){this._density=e}get density(){return"strict-height"===this.renderMode&&"dynamic"===this._density?"default":this._density||"default"}get renderMode(){return this.stickyHeaders||this.optimizeRender?"strict-height":"dynamic-height"}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),ze.register(this._onFontSizeChange)}disconnectedCallback(){ze.unregister(this._onFontSizeChange)}focusCell(e,t,i){if(this._cachedFocusedCellPosition)return void(this._cachedFocusedCellPosition={columnIndex:e,rowIndex:t});this._cachedFocusedCellPosition={columnIndex:e,rowIndex:t};const n=Qe.getActiveElement();Ze.waitForReady(()=>{var e;if(!this._cachedFocusedCellPosition)return;const t=Qe.getActiveElement();if(n!==t&&document.activeElement!==document.body)return;const{columnIndex:o,rowIndex:r}=this._cachedFocusedCellPosition;this._cachedFocusedCellPosition=void 0;const a=this._getCellElement(o,r);if(!a){const e=this.shadowRoot.querySelector('table, [role="table"]');return void(null==e||e.focus({preventScroll:!0}))}null==(e=this.columnModel.getColumns()[o])||e.delegateFocus(a,i||{preventScroll:fe.navigationMode===_e.Mouse})})}getFocusedCellPosition(){let e=this.shadowRoot.activeElement;if(!e)return;for(;e.parentElement&&!e.parentElement.hasAttribute("aria-rowindex");)e=e.parentElement;if(!e.parentElement)return;const t=Number(e.parentElement.getAttribute("aria-rowindex"));return{columnIndex:[...e.parentElement.children].findIndex(t=>t===e),rowIndex:t}}render(){return"dynamic-height"===this.renderMode?(this._visibleViewBoundsDetail
2624s=void 0,this.renderDynamicHeight()):(this._tableSizeReport=kC.getSizeReport(this.rowModel,this.getSizeReportSettings()),$`
2625            <acorn-internal-bounds-observer
2626                .height="${this._tableSizeReport.getHeight()}"
2627                @boundsChange="${this._visibleViewBoundsChange}"
2628            >
2629                ${this._visibleViewBoundsDetails?this.renderFixedHeight(this._tableSizeReport):null}
2630            </acorn-internal-bounds-observer>
2631        `)}afterRender(){!this.liveRows||this._created+Hx>Date.now()||this.rowModel.hasChanged()&&(this.style.setProperty("--acorn-data-table-internal-new-row-animation",EC),window.clearTimeout(this._liveRowTimeout),this._liveRowTimeout=window.setTimeout(()=>{this.style.setProperty("--acorn-data-table-internal-new-row-animation","none")},Hx))}getVisibleRowGroups(){const e=this._getVisibleRowGroupsReport();return e?this.rowModel.getViewData().map((t,i)=>{var n;const o=e.visibleGroups[i],r=o.visibleItemRange,a=(null==r?void 0:r.isVisible)?null==(n=t.items)?void 0:n.filter((e,t)=>t>=r.visibleItemsIndexFrom&&t<=r.visibleItemsIndexTo):[];return{...t,...o,items:a}}):this.rowModel.getViewData()||[]}getGroupRowCount(e){var t;return(e.heading?1:0)+e.items.length+(e.summaryData?1:0)+((null==(t=this._visibleRowsReport)?void 0:t.visibleViewBounds.top)?1:0)}onInvalidVisibleRowsReport(){this._visibleRowsReport=void 0}onInvalidFocus(){if(!this.shadowRoot.activeElement||this._cachedFocusedCellPosition||this.liveRows)return;const e=this.getFocusedCellPosition();e&&this.focusCell(e.columnIndex,e.rowIndex,{preventScroll:!0})}onTableClick(e){const t=this.columnModel.getRowLinkColumn();if(!t)return;const i=this._getTargetRowModelFromEvent(e);i&&this.columnModel.interactableRowType(i)&&this.dispatchEvent(new Mx(e.type,i,t))}onTableDoubleClick(e){var t;if(!(null==(t=this.rowModel)?void 0:t.hasTreeStructure))return;const i=this._getTargetRowModelFromEvent(e);switch(null==i?void 0:i.getExpandState()){case"expanded":this.dispatchEvent(new fC(i.key,!1));break;case"collapsed":this.dispatchEvent(new fC(i.key,!0))}}_onFontSizeChange(){this.invalidate()}
2631_visibleViewBoundsChange(e){this._visibleViewBoundsDetails=e.detail,this._visibleRowRangeChange.emit(this._getVisibleRowGroupsReport())}_getVisibleRowGroupsReport(){if(this.rowModel&&this._tableSizeReport&&this._visibleViewBoundsDetails){if(!this._visibleRowsReport){const e=this.rowModel.getViewData().map((e,t)=>{const i=this._tableSizeReport.getGroupVisibleBoundsIntersection(t,this._visibleViewBoundsDetails);return Object.freeze({index:t,sizeReport:this._tableSizeReport.getGroup(t),stickyOffset:this._tableSizeReport.getGroupOffset(),visibleItemRange:i})}),t=this._tableSizeReport.getHeight()-this._visibleViewBoundsDetails.bottom>500;this._visibleRowsReport=Object.freeze({sizeReport:this._tableSizeReport,visibleViewBounds:this._visibleViewBoundsDetails,visibleGroups:e,hasMoreSteps:t})}return this._visibleRowsReport}}_getTargetRowModelFromEvent(e){var t;const i=e.composedPath().filter(e=>e instanceof HTMLElement),n=i.find(e=>e.hasAttribute("aria-rowindex"));if(!n)return;if(i.slice(0,i.indexOf(n)).some(e=>!!(-1!==["button","a","input","select","textarea"].indexOf(e.localName)||e.hasAttribute("tabindex")&&"-1"!==e.getAttribute("tabindex")||"menuitem"===e.getAttribute("role"))))return;const o=parseInt(n.getAttribute("aria-rowindex")||"-1");return null==(t=this.rowModel)?void 0:t.getRowByIndex(o)}_getCellElement(e,t){const i=this.shadowRoot.querySelector(`[aria-rowindex="${t}"]`);if(!i)return;return[...i.children].filter(e=>e.matches('td, th, [role="rowheader"], [role="cell"]'))[e]}};Lx([Ht()],TC.prototype,"columnModel",2),Lx([Ht()],TC.prototype,"rowModel",2),Lx([Ht()],TC.prototype,"summaryData",2),Lx([Ht()],TC.prototype,"liveRows",2),Lx([Ht()],TC.prototype,"stickyHeaders",2),Lx([Ht()],TC.prototype,"optimizeRender",2),Lx([Ht()],TC.prototype,"density",1),Lx([Ht()],TC.prototype,"_visibleViewBoundsDetail
2631s",2),Lx([ft()],TC.prototype,"_visibleRowRangeChange",2),Lx([wi("_tableSizeReport"),wi("_visibleViewBoundsDetails")],TC.prototype,"onInvalidVisibleRowsReport",1),Lx([wi("rowModel"),wi("_visibleViewBoundsDetails")],TC.prototype,"onInvalidFocus",1),Lx([Pe()],TC.prototype,"onTableClick",1),Lx([Pe()],TC.prototype,"onTableDoubleClick",1),Lx([Pe()],TC.prototype,"_onFontSizeChange",1),Lx([Pe()],TC.prototype,"_visibleViewBoundsChange",1);var IC={display:"block","--acorn-data-table-internal-row-vertical-alignment":function(e){return"dynamic"===e.density?"top":"middle"},"--acorn-data-table-internal-row-flex-vertical-alignment":function(e){return"dynamic"===e.density?"flex-start":"center"},"--acorn-data-table-internal-text-vertical-padding-eq":function(e){return"dynamic"===e.density?"1":"0"},"--acorn-data-table-internal-text-whitespace":function(e){return"dynamic"===e.density?"auto":"nowrap"},"--acorn-data-table-internal-column-header-white-space":function(e){return"dynamic"===e.density?"normal":"nowrap"},[`@keyframes ${EC}`]:`\n            0% {\n                --acorn-data-table-internal-cell-font-weight: ${$n.Bold};\n                background-color: ${zi.Overlay.hover};\n            }\n            100% {\n                --acorn-data-table-internal-cell-font-weight: ;\n                background-color: transparent;\n            }`};var OC={$host:{...IC,"--acorn-data-table-internal-row-height":function(e){return`${e.rowHeight}px`},"--acorn-data-table-internal-column-header-font-weight":$n.Regular,"--acorn-data-table-internal-display-text-label":"block","--acorn-data-table-internal-display-text-detail":function(e){switch(e.density){case"compact":case"default":return"none";default:return""}},[Ta.Padding]:function(e){return"compact"===e.density?"3px":""}},scrollWrapper:{maxWidth:"100%",overflowX:"auto",overflowY:"hidden"},table:{tableLayout:"fixed",borderCollapse:"collapse",borderSpacing:0,width:"100%",minWidth:function(e){return`${e.columnModel.getColumns().reduce((e,t)=>e+t.minWidth,0)}px`},outline:"0 !important"},theadRow:{height:"var(--acorn-data-table-internal-row-height)",top:e=>e.stickyHeaders?`var(${Bx}, 0)`:"0",backgroundColor:zi.Surface.elevation,position:e=>e.stickyHeaders?"sticky":"relative",zIndex:e=>e.stickyHeaders?2:"auto"},theadCell:{position:"relative","&::after":{content:'" "',display:"block",height:"1px",width:"100%",position:"absolute",bottom:0,left:0,backgroundColor:Nx}},rowGroup:{fontSize:"0"},rowGroupHeaderRow:{height:"var(--acorn-data-table-internal-row-height)",pointerEvents:"none"},rowGroupHeaderCell:{padding:"0",width:"100%",verticalAlign:"top"},row:{verticalAlign:"var(--acorn-data-table-internal-row-vertical-alignment)",height:"var(--acorn-data-table-internal-row-height)","&[data-new-row]":{animationDuration:"1s",animationPlayState:ai.isRunningTests?"paused":"running",animationName:"var(--acorn-data-table-internal-new-row-animation)"},"&[data-interactable]":{cursor:"pointer"},'&[data-interactable="popover-button"]':{"&:hover":{backgroundColor:zi.Overlay.hover},"&:active":{backgroundColor:zi.Overlay.active}},"&[data-active]":{backgroundColor:zi.Overlay.active}},collapsedRow:{display:"none"},cell:{borderBottom:`${Px} solid ${Nx}`},summaryCell:{borderTop:`2px solid ${Nx}`}},DC=class extends TC{constructor(){super(...arguments),this.layoutMode="table"}get rowHeight(){switch(this.density){case"generous":return ze.scale(49);case"compact":return ze.scale(33);default:return ze.scale(41)}}getStyle(){return OC}getSizeReportSettings(){return{headingHeight:this.rowHeight,itemHeight:this.rowHeight,groupOffset:this.rowHeight}}renderFixedHeight(){return this._renderTable()}renderDynamicHeight(){return $`<div class="${this.classes.scrollWrapper}">${this._renderTable()}</div>`}_renderTable(){var e,t;return $`
2632            <table
2633                tabindex="-1"
2634                class="${this.classes.table}"
2635                role="${j((null==(e=this.rowModel)?void 0:e.hasTreeStructure)?"treegrid":void 0)}"
2636                aria-rowcount="${null==(t=this.rowModel)?void 0:t.getAriaRowCount()}"
2637            >
2638                ${this._renderColumnGroup()} ${this._renderTableHead()} ${this._renderRowGroups()}
2639                ${this._renderSummary()}
2640            </table>
2641        `}_renderTableHead(){return $`
2642            <thead>
2643                <tr class="${this.classes.theadRow}" id="tableHeadRow" aria-rowindex="1">
2644                    ${this._renderAccessibilityGroupCell()}
2645                    ${this.columnModel.getColumns().map(e=>$`
2646                            <th
2647                                id="${e.columnKey}"
2648                                class="${this.classes.theadCell}"
2649                                aria-sort="${j(e.sorted?e.sorted:void 0)}"
2650                            >
2651                                <acorn-data-table-internal-layout-table-column-header
2652                                    .isSticky="${this.stickyHeaders}"
2653                                    .column="${e}"
2654                                ></acorn-data-table-internal-layout-table-column-header>
2655                            </th>
2656                        `)}
2657                </tr>
2658            </thead>
2659        `}_renderRowGroups(){var e;const t=(null==(e=this.rowModel)?void 0:e.hasTreeStructure)?this._renderGridRow:this._renderRow;return this.getVisibleRowGroups().map(e=>{var i,n;return $`
2660                <tbody @click="${this.onTableClick}" @dblclick="${this.onTableDoubleClick}">
2661                    ${this._renderGroupHeader(e)}
2662                    ${(null==(i=e.visibleItemRange)?void 0:i.visibleItemsOffsetTop)?$`<tr style="height:${e.visibleItemRange.visibleItemsOffsetTop}px;"></tr>`:null}
2663                    ${e.items.flatMap(t)} ${this._renderGroupSummary(e)}
2664                    ${(null==(n=e.visibleItemRange)?void 0:n.visibleItemsOffsetBottom)?$`<tr style="height:${e.visibleItemRange.visibleItemsOffsetBottom}px;"></tr>`:null}
2665                </tbody>
2666            `})}_renderColumnGroup(){const e=this.columnModel.getColumns(),t=e.filter(e=>!e.fixedWidth).reduce((e,t)=>
2666e+t.minWidth,0),i=e.map((i,n)=>{if(i.fixedWidth){return`${0===n||n===e.length-1?i.fixedWidth+8:i.fixedWidth}px`}return`${Math.floor(i.minWidth/t*100)}%`});return $`
2667            <colgroup>
2668                ${this.getVisibleRowGroups().some(e=>e.heading)?$`<col style="width: 0;" />`:null}
2669                ${i.map(e=>$`<col style="width:${e};" />`)}
2670            </colgroup>
2671        `}_renderGroupSummary(e){if(e.summaryData&&0!==e.items.length)return $` <tr class="${this.classes.row}" aria-rowindex="${e.endIndex}">
2672            ${this._renderAccessibilityGroupCell(e.endIndex)}
2673            ${this.columnModel.getColumns().map(t=>$`
2674                    ${t.isMainColumn?$`<th class="${this.classes.summaryCell}" scope="row">
2675                              ${t.renderSummaryHeaderCell(e.summaryData,!0)}
2676                          </th>`:$`<td class="${this.classes.summaryCell}">
2677                              ${t.renderSummaryCell(e.summaryData,!0)}
2678                          </td>`}
2679                `)}
2680        </tr>`}_renderGroupHeader(e){var t;if(e.heading&&0!==e.items.length)return $`
2681            <tr class="${this.classes.rowGroupHeaderRow}" aria-rowindex="${e.startIndex}">
2682                <th scope="rowgroup" rowspan="${this.getGroupRowCount(e)}" class="${this.classes.rowGroup}">
2683                    ${e.heading}
2684                </th>
2685                <th
2686                    aria-hidden="true"
2687                    scope="colgroup"
2688                    colspan="${this.columnModel.getColumns().length}"
2689                    class="${this.classes.rowGroupHeaderCell}"
2690                >
2691                    <acorn-data-table-internal-layout-ribbon
2692                        tabindex="-1"
2693                        .heading="${e.heading}"
2694                        .isSticky="${this.stickyHeaders}"
2695                        .stickyOffset="${e.stickyOffset}"
2696                        .groupHeight="${null==(t=e.sizeReport)?void 0:t.height}"
2697                    >
2698                    </acorn-data-table-internal-layout-ribbon>
2699                </th>
2700            </tr>
2701        `}_renderRow(e){const t=this.columnModel.getRowHeaderColumn();return $`
2702            <tr
2703                class="${this.classes.row}"
2704                ?data-new-row="${e.isNew()}"
2705                ?data-active="${this.rowModel.isRowActive(e)}"
2706                data-interactable="${j(this.columnModel.interactableRowType(e))}"
2707                aria-rowindex="${e.index}"
2708            >
2709                ${this._renderAccessibilityGroupCell(e.index)}
2710                ${this.columnModel.getColumns().map(i=>$`
2711                        ${i.isRowHeaderColumn?$`<th class="${this.classes.cell}" scope="row">
2712                                  ${i.renderCell(e,t)}
2713                              </th>`:$`<td class="${this.classes.cell}">${i.renderCell(e,t)}</td>`}
2714                    `)}
2715            </tr>
2716        `}_renderGridRow(e){var t;const i=e.getTreeGridData(),n=e.getExpandState(),o=!!(null==(t=i.rows)?void 0:t.length),r=this.columnModel.getRowHeaderColumn();return $`
2717            <tr
2718                class="${this.classes.row}"
2719                ?data-new-row="${e.isNew()}"
2720                ?data-active="${this.rowModel.isRowActive(e)}"
2721                ?data-interactable="${this.columnModel.interactableRowType(e)}"
2722                aria-level="${i.level}"
2723                aria-setsize="${i.setSize}"
2724                aria-posinset="${i.positionInSet}"
2725                aria-rowindex="${e.index}"
2726            >
2727                ${this.columnModel.getColumns().map(t=>t.isMainColumn?$`<th role="gridcell" class="${this.classes.cell}" scope="row">
2728                              <acorn-data-table-internal-layout-table-nested-row-cell
2729                                  .rowKey="${e.key}"
2730                                  .expandedState="${n}"
2731                                  .hasChildRows="${o}"
2732                                  .level="${i.level}"
2733                              >
2734                                  ${t.renderCell(e,r)}
2735                              </acorn-data-table-internal-layout-table-nested-row-cell>
2736                          </th>`:$`<td role="gridcell" class="${this.classes.cell}">
2737                              ${t.renderCell(e,r)}
2738                          </td>`)}
2739            </tr>
2740        `}
2740_renderSummary(){return this.summaryData?$` <tfoot>
2741            <tr class="${this.classes.row}">
2742                ${this._renderAccessibilityGroupCell()}
2743                ${this.columnModel.getColumns().map(e=>$`
2744                        ${e.isMainColumn?$`<th class="${this.classes.summaryCell}" scope="row">
2745                                  ${e.renderSummaryHeaderCell(this.summaryData)}
2746                              </th>`:$`<td class="${this.classes.summaryCell}">
2747                                  ${e.renderSummaryCell(this.summaryData.summaryData)}
2748                              </td>`}
2749                    `)}
2750            </tr>
2751        </tfoot>`:null}_renderAccessibilityGroupCell(e){if(!this.rowModel.anyGroupHasHeading())return null;const t=this.rowModel.getGroupByRowIndex(e);return(null==t?void 0:t.heading)?null:$`<td></td>`}};Lx([Pe()],DC.prototype,"_renderRowGroups",1),Lx([Pe()],DC.prototype,"_renderGroupSummary",1),Lx([Pe()],DC.prototype,"_renderGroupHeader",1),Lx([Pe()],DC.prototype,"_renderRow",1),Lx([Pe()],DC.prototype,"_renderGridRow",1),Lx([Pe()],DC.prototype,"_renderSummary",1),DC=Lx([_t({tag:"acorn-data-table-internal-layout-table"})],DC);var RC={width:"100%",flexWrap:"wrap",minHeight:e=>`${e.rowCellHeight+2}px`,boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"space-between"},FC={$host:{...IC,"--acorn-data-table-internal-row-height":e=>`${e.rowCellHeight}px`,"--acorn-data-table-internal-column-header-font-weight":$n.Bold,"--acorn-data-table-internal-text-alignment":"left","--acorn-data-table-internal-display-text-label":"inline","--acorn-data-table-internal-display-text-detail":function(e){switch(e.density){case"compact":case"default":return"none";default:return"inline"}},"--acorn-data-table-internal-flex-alignment":"start",[La.Padding]:"6px"},scrollWrapper:{maxWidth:"100%",overflowX:"auto"},table:{"--acorn-data-table-internal-text-vertical-padding-eq":"1",outline:"0 !important"},ariaHeadings:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"},row:{borderBottom:`${Px} solid ${Nx}`,"&[data-new-row]":{animationDuration:"1s",animationPlayState:ai.isRunningTests?"paused":"running",animationName:"var(--acorn-data-table-internal-new-row-animation)"},"&[data-interactable]":{cursor:"pointer"},'&[data-interactable="popover-button"]':{"&:hover":{backgroundColor:zi.Overlay.hover},"&:active":{backgroundColor:zi.Overlay.active}},"&[data-active]":{backgroundColor:zi.Overlay.active},display:"flex",flexWrap:"wrap"},rowBreak:{flexBasis:"100%",height:0},rowGroup:{fontSize:"0"},headerCell:{height:e=>`${e.headerHeight}px`,paddingTop:"8px",paddingBottom:"5px",boxSizing:"border-box",alignItems:"center",display:"flex",maxWidth:"100%",minWidth:0},bodyCell:{paddingBottom:"calc(8px * var(--acorn-data-table-internal-text-vertical-padding-eq))",minHeight:e=>`${e.rowHeight}px`,height:e=>"dynamic"===e.density?"auto":`${e.rowHeight}px`,overflow:"hidden",boxSizing:"border-box"},bodyCellHeading:{minHeight:"6px",display:"block",lineHeight:"1",maxWidth:"100%",whiteSpace:"var(--acorn-data-table-internal-column-header-white-space, nowrap)",overflow:"hidden",textOverflow:"ellipsis",padding:"0 8px 2px",fontSize:kn(12),color:zi.Text.Regular.high},summary:{padding:"4px 8px",borderBottom:`${Px} solid ${Nx}`},summaryRow:{...RC,fontWeight:$n.Bold},groupSummaryRow:{...RC,fontWeight:$n.Regular}},LC=class extends TC{constructor(){super(...arguments),this.layoutMode="list"}get headerHeight(){return ze.scale(45)}get rowHeight(){return ze.scale(51)}get rowCellHeight(){return ze.scale(30)}getStyle(){return FC}getSizeReportSettings(){var e;const t=this.columnModel.getColumnRows().length-1,i=this.columnModel.getColumns().map(e=>e.columnKey),n=this.rowModel.getViewData(),o=[];for(let t=0;t<n.length;t++){const r=Object.keys(null!=(e=n[t].summaryData)?e:{}).filter(e=>i.includes(e)),a=(0===r.length?0:8)+(this.rowCellHeight+2)*r.length;o.push(a)}return{headingHeight:this.rowCellHeight,itemHeight:1+this.headerHeight+this.rowHeight*t,groupOffset:0,groupSummaryHeights:o}}renderFixedHeight(){return $`${this._renderTable()}`}renderDynamicHeight(){return $`<div class="${this.classes.scrollWrapper}">${this._renderTable()}</div>`}_renderTable(){return $`
2752            <div
2753                role="table"
2754                tabindex="-1"
2755                aria-rowcount="${this.rowModel.getAriaRowCount()}"
2756                class="${this.classes.table}"
2757            >
2758                ${this._renderTableHead()} ${this._renderRowGroups()} ${this._renderSummary()}
2759            </div>
2760        `}_renderTableHead(){return $`
2761            <div role="rowgroup" class="${this.classes.ariaHeadings}">
2762                <div role="row" aria-rowindex="1">
2763                    ${this._renderAccessibilityGroupCell()}
2764                    ${this.columnModel.getColumns().map(e=>$`
2765                            <div
2766                                id="${e.columnKey}"
2767                                role="columnheader"
2768                                aria-sort="${j(e.sorted?e.sorted:void 0)}"
2769                            >
2770                                ${e.heading}
2771                            </div>
2772                        `)}
2773                </div>
2774            </div>
2775        `}_renderRowGroups(){return this.getVisibleRowGroups().map(e=>{var t,i;return $`
2776                <div role="rowgroup" @click="${this.onTableClick}">
2777                    ${this._renderGroupHeader(e)}
2778                    ${(null==(t=e.visibleItemRange)?void 0:t.visibleItemsOffsetTop)?$`<div style="height:${e.visibleItemRange.visibleItemsOffsetTop}px;"></div>`:null}
2779                    ${e.items.map(this._renderRow)} ${this._renderGroupSummary(e)}
2780                    ${(null==(i=e.visibleItemRange)?void 0:i.visibleItemsOffsetBottom)?$`<div style="height:${e.visibleItemRange.visibleItemsOffsetBottom}px;"></div>`:null}
2781                </div>
2782            `})}_renderGroupHeader(e){var t;return e.heading&&0!==e.items.length?$`
2783            <div role="row" aria-rowindex="${e.startIndex}">
2784                <div
2785                    role="columnheader"
2786                    scope="rowgroup"
2787                    aria-rowspan="${this.getGroupRowCount(e)}"
2788                    class="${this.classes.rowGroup}"
2789                >
2790                    ${e.heading}
2791                </div>
2792
2793                <acorn-data-table-internal-layout-ribbon
2794                    aria-hidden="true"
2795                    tabindex="-1"
2796                    .heading="${e.heading}"
2797                    .isSticky="${this.stickyHeaders}"
2798                    .stickyOffset="${e.stickyOffset}"
2799                    .groupHeight="${null==(t=e.sizeReport)?void 0:t.height}"
2800                >
2801                </acorn-data-table-internal-layout-ribbon>
2802            </div>
2803        `:null}_renderRow(e){return $`
2804            <div
2805                role="row"
2806                class="${this.classes.row}"
2807                ?data-new-row="${e.isNew()}"
2808                ?data-active="${this.rowModel.isRowActive(e)}"
2809                data-interactable="${j(this.columnModel.interactableRowType(e))}"
2810                aria-rowindex="${e.index}"
2811            >
2812                ${this._renderAccessibilityGroupCell(e.index)}
2813                ${this._renderHeaderCells(e,this.columnModel.getColumnRows()[0])}
2814                ${this.columnModel.getColumnRows().slice(1).map(t=>this._renderCells(e,t))}
2815            </div>
2816        `}_renderGroupSummary(e){return e.summaryData&&0!==e.items.length?$` <div role="row" class="${this.classes.summary}" aria-rowindex="${e.endIndex}">
2817            ${this._renderAccessibilityGroupCell(e.endIndex)}
2818            <div role="rowheader" scope="row" class="${this.classes.ariaHeadings}">${e.summaryData.heading}</div>
2819            ${this.columnModel.getColumns().filter(t=>e.summaryData[t.columnKey]).map(t=>$`
2820                        <div class="${this.classes.groupSummaryRow}" role="cell">
2821                            <div aria-hidden="true">${e.summaryData.heading} ${t.heading}</div>
2822                            ${t.renderSummaryCell(e.summaryData,!0)}
2823                        </div>
2824                    `)}
2825        </div>`:null}_renderHeaderCells(e,t){const i=t.filter(e=>!e.fixedWidth).reduce((e,t)=>e+t.minWidth,0);return t.map(t=>$`<div
2826                    role="${t.hideHeader?"cell":"rowheader"}"
2827                    scope="${j(t.hideHeader?void 0:"row")}"
2828                    style="${this._getFlexStyle(i,t)}"
2829                    class="${this.classes.headerCell}"
2830                >
2831                    ${t.renderCell(e)}
2832                </div>`)}_renderCells(e,t){const i=this.columnModel.getRowHeaderColumn(),n=t.filter(e=>!e.fixedWidth).reduce((e,t)=>e+t.minWidth,0);return $`
2833            <div class="${this.classes.rowBreak}"></div>
2834            ${t.map(t=>$`
2835                    <div role="cell" style="${this._getFlexStyle(n,t)}" class="${this.classes.bodyCell}">
2836                        <div class="${this.classes.bodyCellHeading}" aria-hidden="true">
2837                            ${t.hasHeader?t.heading:""}
2838                        </div>
2839                        ${t.renderCell(e,i)}
2840                    </div>
2841                `)}
2842        `}_getFlexStyle(e,t){if(t.fixedWidth)return"row-select"===t.columnType?`flex: 0 0 ${t.fixedWidth+8}px;`:`flex: 0 0 ${t.fixedWidth}px;`;return`flex: ${Math.floor(t.minWidth/e*100)} 0 ${t.minWidth}px;`}_renderSummary(){return this.summaryData?$` <div role="row" class="${this.classes.summary}">
2843            ${this._renderAccessibilityGroupCell()}
2844            <div role="rowheader" scope="row" class="${this.classes.ariaHeadings}">${this.summaryData.heading}</div>
2845            ${this.columnModel.getColumns().filter(e=>this.summaryData.summaryData[e.columnKey]).map(e=>$` <div class="${this.classes.summaryRow}" role="cell">
2846                            <div aria-hidden="true">${this.summaryData.heading} ${e.heading}</div>
2847                            ${e.renderSummaryCell(this.summaryData.summaryData)}
2848                        </div>`)}
2849        </div>`:null}_renderAccessibilityGroupCell(e){if(!this.rowModel.anyGroupHasHeading())return null;const t=this.rowModel.getGroupByRowIndex(e);return(null==t?void 0:t.heading)?null:$`<div role="cell"></div>`}};Lx([Pe()],LC.prototype,"_renderRowGroups",1),Lx([Pe()],LC.prototype,"_renderRow",1),Lx([Pe()],LC.prototype,"_renderGroupSummary",1),Lx([Pe()],LC.prototype,"_renderSummary",1),LC=Lx([_t({tag:"acorn-data-table-internal-layout-list"})],LC);var AC={$host:{display:"block",position:"relative",height:"var(--acorn-data-table-internal-row-height)"},stickyContainer:{position:"absolute",top:0,width:"100%",pointerEvents:"none",height:e=>e.groupHeight?`${e.groupHeight}px`:"auto"},stickyChild:{pointerEvents:"auto",position:"sticky",top:e=>`calc(${e.stickyOffset}px + var(${Bx}, 0px))`,zIndex:1},label:{lineHeight:"calc(var(--acorn-data-table-internal-row-height) - 1px)",backgroundColor:zi.ComponentSpecific.DataTable.RowGroup.background,borderBottom:`${Px} solid ${Nx}`,padding:"0px 8px",textAlign:"left",fontFamily:Cn.Base,fontSize:kn(12),fontWeight:$n.Regular,color:zi.Text.Regular.high,whiteSpace:"nowrap",zIndex:"1",top:0}},MC=class extends Ti{constructor(){super(...arguments),this.isSticky=!1,this.stickyOffset=0}getStyle(){return AC}render(){return this.isSticky?$`<div class="${this.classes.stickyContainer}">
2850            <div class="${this.classes.stickyChild}">${this._renderLabel()}</div>
2851        </div>`:this._renderLabel()}_renderLabel(){return $`<div class="${this.classes.label}">${this.heading}</div>`}};Lx([Ht()],MC.prototype,"isSticky",2),Lx([Ht()],MC.prototype,"heading",2),Lx([Ht({invali
2851date:!1,invalidateStyle:!0})],MC.prototype,"groupHeight",2),Lx([Ht({invalidate:!1,invalidateStyle:!0})],MC.prototype,"stickyOffset",2),MC=Lx([_t({tag:"acorn-data-table-internal-layout-ribbon"})],MC);var BC=["button","a","input","acorn-data-table-internal-layout-table-nested-row-cell","[tabindex]"].join(),PC=class{constructor(e,t){this.hasHeader=!0,this.isRowHeaderColumn=!1,this.isMainColumn=!1,t&&(this.isMainColumn=!0,this.isRowHeaderColumn=!0),this.data=e}get selectAll(){return this.data.selectAll}set selectAll(e){this.data.selectAll=e}get columnKey(){return this.data.columnKey}get heading(){return this.data.heading}get sortMethod(){return this.data.sortable}get isSortable(){return"none"!==this.sortMethod}get sorted(){return this.isSortable?this.data.sorted:void 0}get fixedWidth(){return ze.scale(this.data.fixedWidth)}get minWidth(){const e=this.fixedWidth||Math.max(this.data.minWidth||0,0)||100;return ze.scale(e)}get align(){return this.data.align||"left"}get icon(){return this.data.icon}get columnType(){return this.data.columnType}get hideHeader(){return this.data.hideHeading}get showSelectAll(){return!1}get live(){return this.data.live||!1}get label(){return this.data.heading}renderCell(e,t){return e?e.hasData?$`<acorn-data-table-internal-column-pending-cell tabindex="-1" .row="${e}" .column="${this}">
2852            </acorn-data-table-internal-column-pending-cell>`:this.data.template?this.data.template.getTemplateResult(e.getData()):this.renderCellContent(e,t):null}renderSummaryHeaderCell(e,t=!1){let i;return i=e.summaryData?e.summaryData[this.columnKey]||e.heading:e[this.columnKey]||e.heading,$`<acorn-data-table-internal-column-text-cell
2853            .column="${this}"
2854            .value="${i}"
2855            .type="${t?"groupSummary":"summary"}"
2856        ></acorn-data-table-internal-column-text-cell>`}renderSummaryCell(e,t=!1){return this.renderSummaryCellContent(e,t)}delegateFocus(e,t){const i=e.querySelector(BC);i&&i.focus(t)}sortCompare(e,t){return 0}update(e){let t=!1;for(const i in e)e[i]!==this.data[i]&&(this.data[i]=e[i],t=!0);if(!t)return this;return new(0,Object.getPrototypeOf(this).constructor)(this.data,this.isMainColumn)}getAccessibilityLabel(e){return"string"==typeof e.getCellValue(this.columnKey)?e.getCellValue(this.columnKey):""}renderCellContent(e,t){return null}renderSummaryCellContent(e,t=!1){return null}};PC.canBeRowHeaderColumn=!1,PC.unique=!1,PC.order=0,Lx([Pe()],PC.prototype,"sortCompare",1);var NC=class extends PC{constructor(){super(...arguments),this.hasHeader=!1}get isSortable(){return!1}get align(){return this.data.align||"center"}get heading(){}delegateFocus(e,t){var i;null==(i=e.firstElementChild)||i.focus(t)}renderCellContent(e,t){if(!e||!1===e.getCellValue(this.columnKey))return null;const i=(e.getData().accessibilityLabel||(null==t?void 0:t.getAccessibilityLabel(e)))+" "+this.label;return $`<acorn-data-table-internal-column-button-cell
2857            .row="${e}"
2858            .column="${this}"
2859            .accessibilityLabel="${i}"
2860        ></acorn-data-table-internal-column-button-cell>`}},HC=class e{static from(t){return t instanceof e?t:new e(t)}get checked(){return"object"==typeof this._value?!!this._value.checked:!!this._value}get disabled(){return"object"==typeof this._value&&!!this._value.disabled}get hidden(){return"object"==typeof this._value&&!!this._value.hidden}constructor(e){this._value=e}isInteractable(){return"object"!=typeof this._value||!this._value.disabled&&!this._value.hidden}mutateCheckedState(e){return"object"==typeof this._value?this._value.checked===e?this._value:{...this._value,checked:e}:e}},zC=class extends PC{get align(){return this.data.align?this.data.align:this.showSelectAll?"left":"center"}get showSelectAll(){return this.data.showSelectAll}get isSortable(){return!1}delegateFocus(e,t){var i;null==(i=e.firstElementChild)||i.focus(t)}mutateCheckedValue(e,t){const i=e.getCellValue(this.columnKey),n=HC.from(i);if(!n.isInteractable())return;const o=n.mutateCheckedState(t);return i!==o?{id:e.key,[this.columnKey]:o}:void 0}getSelectAllStates(e){const t=e.map(e=>HC.from(e.getCellValue(this.columnKey))),i=t.some(e=>e.isInteractable()&&!e.checked),n=t.some(e=>e.isInteractable()&&e.checked);return i&&n?"indeterminate":i?"none":n?"all":"none"}renderCellContent(e,t){if(!e)return null;const i=HC.from(e.getCellValue(this.columnKey)),n=(e.getData().accessibilityLabel||(null==t?void 0:t.getAccessibilityLabel(e)))+" "+this.label;return i.hidden?null:$` <acorn-data-table-internal-column-checkbox-cell
2861            .checked="${i.checked}"
2862            .disabled="${i.disabled}"
2863            .column="${this}"
2864            .row="${e}"
2865            .accessibilityLabel="${n}"
2866        ></acorn-data-table-internal-column-checkbox-cell>`}},WC=class extends zC{get align(){return this.data.align||"right"}get fixedWidth(){return this.data.fixedWidth||50}get hideHeader(){return!0}get sortMethod(){return"auto"}get sorted(){return"ascending"}sortCompare(e,t){const i="ascending"===this.sorted?[e,t]:[t,e],[n,o]=i.map(e=>!!new HC(e.getCellValue(this.columnKey)).checked);return n===o?0:n?-1:1}renderCellContent(e){if(!e)return null;const t=HC.from(e.getCellValue(this.columnKey));return $`<acorn-data-table-internal-column-favourite-cell
2867            .checked="${t.checked}"
2868            .row="${e}"
2869            .column="${this}"
2870        ></acorn-data-table-internal-column-favourite-cell>`}};WC.unique=!0,WC.order=2,Lx([Pe()],WC.prototype,"sortCompare",1);var VC=class extends PC{get align(){return this.data.align||"center"}renderCellContent(e){return e?$`<acorn-data-table-internal-column-icon-cell
2871            tabindex="-1"
2872            .iconData="${e.getCellValue(this.columnKey)}"
2873            .column="${this}"
2874        ></acorn-data-table-internal-column-icon-cell>`:null}},jC=class extends PC{constructor(){super(...arguments),this.hasHeader=!1}get fixedWidth(){return!super.fixedWidth&&this.data.hideHeading?ze.scale(45):super.fixedWidth}get heading(){}delegateFocus(e,t){var i;null==(i=e.firstElementChild)||i.focus(t)}renderCellContent(e,t){if(!e||!1===e.getCellValue(this.columnKey))return null;const i=(e.getData().accessibilityLabel||(null==t?void 0:t.getAccessibilityLabel(e)))+" "+this.label;return $`<acorn-data-table-internal-column-icon-button-cell
2875            .row="${e}"
2876            .column="${this}"
2877            .accessibilityLabel="${i}"
2878        ></acorn-data-table-internal-column-icon-button-cell>`}},GC=class extends PC{get fixedWidth(){if(!this.isRowHeaderColumn)return super.fixedWidth}sortCompare(e,t){const i=("ascending"===this.sorted?[e,t]:[t,e]).map(e=>{const t=e.getCellValue(this.columnKey);return t?(t.label||"")+(t.detail||""):""});return i[0].localeCompare(i[1],"sv")}getAccessibilityLabel(e){var t;return(null==(t=e.getCellValue(this.columnKey))?void 0:t.label)||""}renderCellContent(e){if(!e)return null;const{label:t,icon:i,detail:n,iconAccessibilityLabel:o}=e.getCellValue(this.columnKey)||{};return $`<acorn-data-table-internal-column-label-cell
2879            tabindex="-1"
2880            .label="${t}"
2881            .icon="${i}"
2882            .iconAccessibilityLabel="${o}"
2883            .detail="${n}"
2884            .column="${this}"
2885        ></acorn-data-table-internal-column-label-cell>`}renderSummaryCellContent(e,t=!1){return $`<acorn-data-table-internal-column-text-cell
2886            .column="${this}"
2887            .value="${e[this.columnKey]}"
2888            .type="${t?"groupSummary":"summary"}"
2889        ></acorn-data-table-internal-column-text-cell>`}};GC.canBeRowHeaderColumn=!0,Lx([Pe()],GC.prototype,"sortCompare",1);var qC=class extends PC{get isSortable(){return!1}delegateFocus(e,t){var i;null==(i=e.firstElementChild)||i.focus(t)}renderCellContent(e,t){if(!e)return null;const i=null==t?void 0:t.getAccessibilityLabel(e);return $`<acorn-data-table-internal-column-link-cell
2890            .row="${e}"
2891            .column="${this}"
2892            .accessibilityLabel="${i}"
2893        ></acorn-data-table-internal-column-link-cell>`}},UC=class extends PC{constructor(e,t){super(e,t),this.hasHeader=!1,this._label=this.data.hideHeading?void 0:this.heading,this._accessibilityLabel=this._label?void 0:`${Cw.Open} ${this.heading} ${Cw.Menu}`,this._icon=this._label?this.icon:this.icon||Zo.EllipsisVertical}get fixedWidth(){return super.fixedWidth||this._label?super.fixedWidth:ze.scale(45)}delegateFocus(e,t){var i;null==(i=e.firstElementChild)||i.focus(t)}renderCellContent(e){return e?$`<acorn-data-table-internal-column-menu-cell
2894            .row="${e}"
2895            .column="${this}"
2896            .icon="${this._icon}"
2897            .label="${this._label}"
2898            .accessibilityLabel="${this._accessibilityLabel}"
2899            .options="${e.getCellValue(this.columnKey)}"
2900        ></acorn-data-table-internal-column-menu-cell>`:null}},KC=new Intl.NumberFormat("sv-SE"),YC=class extends PC{get align(){return this.data.align||"right"}sortCompare(e,t){const i=[xw(e.getCellValue(this.columnKey)),xw(t.getCellValue(this.columnKey))].map(e=>Number.isNaN(e)?Number.NEGATIVE_INFINITY:e);return"descending"===this.sorted&&i.reverse(),i[0]>i[1]?1:i[0]<i[1]?-1:0}renderCellContent(e){if(!e)return null;if("numeric"===this.columnType&&!this.live){const t=e.getCellValue(this.columnKey),i="number"==typeof t?KC.format(t):t;return $`<acorn-data-table-internal-column-text-cell
2901                tabindex="-1"
2902                .column="${this}"
2903                .value="${i}"
2904            ></acorn-data-table-internal-column-text-cell>`}return $`<acorn-data-table-internal-column-numeric-cell
2905            tabindex="-1"
2906            .changed="${this.live&&e.hasChanged()}"
2907            .isVector="${"numeric-vector"===this.columnType}"
2908            .value="${e.getCellValue(this.columnKey)}"
2909            .column="${this}"
2910        ></acorn-data-table-internal-column-numeric-cell>`}
2910renderSummaryCellContent(e,t=!1){return $`<acorn-data-table-internal-column-numeric-cell
2911            .isVector="${"numeric-vector"===this.columnType}"
2912            .value="${e[this.columnKey]}"
2913            .column="${this}"
2914            .type="${t?"groupSummary":"summary"}"
2915        ></acorn-data-table-internal-column-numeric-cell>`}};Lx([Pe()],YC.prototype,"sortCompare",1);var XC=class extends PC{constructor(){super(...arguments),this.hasHeader=!1,this.isRowHeaderColumn=!0}get heading(){}get align(){return"right"}get isSortable(){return!1}get fixedWidth(){return 40}get linkType(){return this.data.linkType||"internal-link"}get defaultHeading(){switch(this.data.linkType){case"popover-button":return Cw.RowButton;case"external-link":return Cw.RowLinkExternal;default:return Cw.RowLink}}get label(){return this.data.heading||this.defaultHeading}delegateFocus(e,t){var i;null==(i=e.firstElementChild)||i.focus(t)}renderCellContent(e,t){if(!e)return null;const i=(e.getData().accessibilityLabel||(null==t?void 0:t.getAccessibilityLabel(e)))+" "+this.label;return $`<acorn-data-table-internal-column-row-link-cell
2916            .disabled="${!1===e.getCellValue(this.columnKey)}"
2917            .row="${e}"
2918            .column="${this}"
2919            .type="${this.linkType}"
2920            .accessibilityLabel="${i}"
2921        ></acorn-data-table-internal-column-row-link-cell>`}};XC.unique=!0,XC.order=10;var QC=class extends zC{constructor(){super(...arguments),this.isRowHeaderColumn=!0}get heading(){return this.data.heading?this.data.heading:Cw.SelectRow}get showSelectAll(){return!0}get hideHeader(){return!0}get fixedWidth(){return bv}get align(){return"left"}};QC.unique=!0,QC.order=-1;var ZC=class extends PC{get align(){return this.data.align||"right"}sortCompare(e,t){const i="ascending"===this.sorted?[e,t]:[t,e],{label:n="",type:o=""}=this._tagValue(i[0]),{label:r="",type:a=""}=this._tagValue(i[1]);let s=n.localeCompare(r,"sv");return 0===s&&(s=o.localeCompare(a,"sv")),s}renderCellContent(e){const{type:t,label:i,accessibilityLabel:n}=this._tagValue(e);return $`<acorn-data-table-internal-column-tag-cell
2922            .type="${t}"
2923            .accessibilityLabel="${n}"
2924            .label="${i}"
2925            .column="${this}"
2926        ></acorn-data-table-internal-column-tag-cell>`}_tagValue(e){const t=null==e?void 0:e.getCellValue(this.columnKey);return"object"!=typeof t?{label:t,accessibilityLabel:void 0,type:cf.Neutral}:{...t,type:t.type||t.severity}}};Lx([Pe()],ZC.prototype,"sortCompare",1);var JC=class extends PC{get fixedWidth(){if(!this.isRowHeaderColumn)return super.fixedWidth}sortCompare(e,t){var i;const n="ascending"===this.sorted?[e,t]:[t,e];return(null==(i=n[0].getCellValue(this.columnKey))?void 0:i.localeCompare(n[1].getCellValue(this.columnKey),"sv"))||0}renderCellContent(e){return $`<acorn-data-table-internal-column-text-cell
2927            tabindex="-1"
2928            .column="${this}"
2929            .value="${(null==e?void 0:e.getCellValue(this.columnKey))||""}"
2930        ></acorn-data-table-internal-column-text-cell>`}renderSummaryCellContent(e,t=!1){return $`<acorn-data-table-internal-column-text-cell
2931            .column="${this}"
2932            .value="${e[this.columnKey]}"
2933            .type="${t?"groupSummary":"summary"}"
2934        ></acorn-data-table-internal-column-text-cell>`}};JC.canBeRowHeaderColumn=!0,Lx([Pe()],JC.prototype,"sortCompare",1);var eS=Object.values(Ux);function tS(e,t){const i=function(e){return[...e].sort((e,t)=>{const i=iS(e.columnType),n=iS(t.columnType);return i.order-n.order})}(e.reduce((e,t)=>{const i=iS(t.columnType).unique&&e.find(e=>e.columnType===t.columnType);return void 0===t||i?e:[...e,t]},[])),n=function(e){return e.find(e=>e.sorted)}(e),o=function(e,t){switch(t){case"none":return;case"auto":return e.find(e=>iS(e.columnType).canBeRowHeaderColumn);default:return e.find(e=>e.columnKey===t)}}(e,t);return i.map(e=>{const t=o===e,i=n===e?e.sorted:null,r=function(e){if(null==e)return"none";if(eS.includes(e))return e;return"auto"}(e.sortable),a=e.template;return new(iS(e.columnType))({...e,template:a,sortable:r,sorted:i},t)})}function iS(e){switch(e){case"link":return qC;case"button":case"button-positive":case"button-negative":case"button-buy":case"button-sell":return NC;case"icon-button":return jC;case"numeric-vector":case"numeric":return YC;case"icon":return VC;case"menu":return UC;case"checkbox":return zC;case"icon-label":case"label":return GC;case"row-select":return QC;case"row-link":return XC;case"tag":return ZC;case"favourite":return WC;default:return JC}}var nS=Qx;function oS(e,t,i){return e&&t?(e=e.filter(e=>t>(nS[e.data.show||""]||0)),"table"===i?[e]:function(e,t,i){if(e=aS(e,t,0),"list"!==i){if(sS(e)<t)return[e]}let n=[];const o=e.filter(e=>e.isRowHeaderColumn);n.push(o);const r=e.filter(e=>!e.isRowHeaderColumn&&e.hasHeader),{columnGroupRows:a,lastColumnRowWidth:s}=rS(r,t);n=n.concat(a);const l=e.filter(e=>!e.isRowHeaderColumn&&!e.hasHeader),c=sS(l);if(l.length)if(s&&c+s<t)n[n.length-1]=n[n.length-1].concat(l);else{const{columnGroupRows:e}=rS(l,t);n=n.concat(e)}return n}(e,t,i)):[]}function rS(e,t){const i=[];let n;for(;e.length;){n=0;const o=[];
2934if((e=aS(e,t,i.length+1)).length){do{const t=e.shift();n+=t.minWidth,o.push(t)}while(e.length&&n+e[0].minWidth<t);i.push(o)}}return{columnGroupRows:i,lastColumnRowWidth:n||0}}function aS(e,t,i=0){const n=e.filter(e=>"none"===e.data.wrap||1===i&&"one-line"===e.data.wrap).sort((e,t)=>t.data.priority-e.data.priority);for(;n.length&&sS(e)>=t;){const t=n.pop();e=(null==t?void 0:t.data.priority)?e.filter(e=>e.data.priority!==t.data.priority):e.filter(e=>e!==t)}return e}function sS(e){return e.reduce((e,t)=>e+t.minWidth,0)}var lS=class e{constructor(e=[],t={}){this._columns=e,this._linkColumn=this._columns.find(e=>e instanceof XC),this._options=t}setColumnData(t,i){const n=tS(t,i);return new e(n,this._options)}setMaxWidth(t){const i=oS(this._columns,t,this._options.layout);return this._columnRows&&this._arrayEquals(i,this._columnRows)?(this._options.maxWidth=t,this):new e(this._columns,{...this._options,maxWidth:t})}setLayout(t){return t===this._options.layout?this:new e(this._columns,{...this._options,layout:t})}setSortOrder(t,i){const n=this._columns.map(e=>e.update({sorted:t===e.columnKey?i:void 0}));return new e(n,this._options)}getLayout(){if(!this._options.maxWidth)return null;if("list"===this._options.layout||"table"===this._options.layout)return this._options.layout;switch(this.getColumnRows().length){case 0:return null;case 1:return"table";default:return"list"}}updateColumns(t){let i=!1;const n=this._columns.map(e=>{const n=t(e);return n?(i=!0,e.update(n)):e});return i?new e(n,this._options):this}getColumnRows(){return this._columnRows||(this._columnRows=oS(this._columns,this._options.maxWidth,this._options.layout)),this._columnRows}getAllColumns(){return this._columns}getColumns(){return this.getColumnRows().flat()}getSortableColumns(){return this._sortableColumns||(this._sortableColumns=this._columns.filter(e=>e.isSortable)),this._sortableColumns}getSelectableColumns(){return this._selectableColumns||(this._selectableColumns=this._columns.filter(e=>e.showSelectAll)),this._selectableColumns}getColumn(e){var t;return null==(t=this._columns)?void 0:t.find(t=>t.columnKey===e)}getSortedColumn(){var e;return null==(e=this._columns)?void 0:e.find(e=>e.sorted)}getRowLinkColumn(){return this._linkColumn}interactableRowType(e){if(!this._linkColumn)return;return!1===e.getCellValue(this._linkColumn.columnKey)?void 0:this._linkColumn.linkType}getRowHeaderColumn(){return this._columns.find(e=>e.isRowHeaderColumn)}_arrayEquals(e,t){return!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((e,i)=>Array.isArray(e)&&Array.isArray(t[i])?this._arrayEquals(e,t[i]):e===t[i])}},cS=class{constructor(e){this._templateString=e,this._templateFn=Ke.parseTemplateString(this._templateString)}getTemplateResult(e){return $`<acorn-internal-template-result
2935            .templateFn="${this._templateFn}"
2936            .data="${e}"
2937        ></acorn-internal-template-result>`}valueOf(){return this._templateString}toString(){return this._templateString}};var dS=class extends xt{constructor(e="text"){super(),this.columnType="text",this.columnKey="",this.heading="",this.icon="",this.sortable=null,this.sorted=null,this.align=null,this.wrap="multiline",this.priority=0,this.show=null,this.hideHeading=!1,this.showSelectAll=!1,this.minWidth=0,this.fixedWidth=0,this.live=!1,this.linkType="internal-link",this.columnType=e}};dS.modelName="dataTableColumn",Lx([zt({type:jx})],dS.prototype,"columnType",2),Lx([zt({type:qx})],dS.prototype,"sorted",2),Lx([zt({type:Gx})],dS.prototype,"align",2),Lx([zt({type:Kx})],dS.prototype,"wrap",2),Lx([zt({type:Number})],dS.prototype,"priority",2),Lx([zt({type:Yx})],dS.prototype,"show",2),Lx([zt({type:Boolean})],dS.prototype,"hideHeading",2),Lx([zt({type:Boolean})],dS.prototype,"showSelectAll",2),Lx([function(e,t){const i=Symbol();delete e[t]&&Object.defineProperty(e,t,{get:function(){return this[i]},set:function(e){this[i]=e?new cS(e):null},enumerable:!0,configurable:!0})}],dS.prototype,"template",2),Lx([zt({type:Number})],dS.prototype,"minWidth",2),Lx([zt({type:Number})],dS.prototype,"fixedWidth",2),Lx([zt({type:Boolean})],dS.prototype,"live",2),Lx([zt({type:Xx})],dS.prototype,"linkType",2);var hS=class extends xt{constructor(){super(...arguments),this.heading="",this.size=-1,this.rowData=[],this.summaryData=void 0}};hS.modelName="dataTableRowGroup",Lx([zt({type:Array})],hS.prototype,"rowData",2),Lx([zt({type:Object})],hS.prototype,"summaryData",2);var pS=class extends xt{constructor(){super(...arguments),this.summaryData={},this.heading=Cw.Total,this.showWhen="always"}};pS.modelName="dataTableSummary",Lx([zt({type:Object})],pS.prototype,"summaryData",2),Lx([zt({type:Zx})],pS.prototype,"showWhen",2);var uS={$host:{display:"block",outline:"0 !important",...Ln(Dn.Medium)},emptyTableMessage:{display:"flex",justifyContent:"center",alignItems:"center",padding:"24px",margin:"8px auto",backgroundColor:zi.Surface.neutralContrastInverted,animation:"table-empty-message-fade-animation 1.5s","@keyframes table-empty-message-fade-animation":"\n            0% { opacity: 0 }\n            50% { opacity: 0 }\n            100% { opacity: 1 }"},wrapper:{...zn()}
2937,selectionContainer:{position:"sticky",bottom:"16px",zIndex:"1"}},gS=class e extends CustomEvent{constructor(t){super(e.eventName,{bubbles:!0,composed:!1,detail:{values:t}})}};gS.eventName="change";var mS=gS,bS=class{get type(){return"hidden"}resolveModels(e,t){return(null==e?void 0:e.length)?e.map(e=>t.fetchModel(e)):[]}flattenRows(e){return e.reduce((e,t)=>e.concat(t.items),[])}resolveRowGroupModels(e,t){let i=e;t.length&&(i=i.map(e=>({...e,items:this.transformRows(e.items,t)})));let n=2;return i.map(e=>(e.startIndex=e.heading?n++:n,e.items.forEach(e=>{n=this.applyTableRowIndex(e,n)}),e.endIndex=e.summaryData?n++:n,e))}applyTableRowIndex(e,t=0){return e.index=t,++t}transformRows(e,t,i=1){return t.reduce((e,t)=>t(e,i),e)}},vS=class extends bS{get type(){return this._type}constructor(e){super(),this._type=e,this._expandedRowDefault=this._getRowDefaultExpandState(e)}resolveModels(e,t,i=1){const n=super.resolveModels(e,t),o=e.length;return n.map(e=>{if(i>1||Array.isArray(e.rows)){const n=this.resolveModels(e.rows,t,i+1);e.setTreeGridData({level:i,setSize:o,rows:n,defaultExpandState:"always-expanded"})}return e})}flattenRows(e){return e.reduce((e,t)=>e.concat(t.items),[]).flatMap(e=>this._flattenRow(e))}resolveRowGroupModels(e,t){const i=super.resolveRowGroupModels(e,t);return i.forEach(e=>{e.items=e.items.flatMap(e=>this._flattenRow(e,!0))}),i}applyTableRowIndex(e,t=0){var i,n;return t=super.applyTableRowIndex(e,t),e.setTreeGridData({defaultExpandState:this._expandedRowDefault}),null==(n=null==(i=e.getTreeGridData())?void 0:i.rows)||n.forEach((e,i)=>{e.setTreeGridData({positionInSet:i+1}),t=this.applyTableRowIndex(e,t)}),t}transformRows(e,t,i=1){return e.forEach(e=>{var i;const n=e.getTreeGridData(),o=n.level||0;(null==(i=n.rows)?void 0:i.length)&&e.setTreeGridData({rows:this.transformRows(n.rows,t,o+1)})}),super.transformRows(e,t,i)}_getRowDefaultExpandState(e){switch(e){case"collapsed-tree":return"collapsed";case"expanded-tree":return"expanded";default:return"always-expanded"}}_flattenRow(e,t=!0){var i,n;if(t&&"collapsed"!==e.getExpandState()){const o=null==(n=null==(i=e.getTreeGridData())?void 0:i.rows)?void 0:n.flatMap(e=>this._flattenRow(e,t));return o?[e,...o]:e}return e}},yS=class{constructor(){this._keyIncrementor=0,this._store=new Map,this._keyIndex=new WeakMap}fetchModel(e){let t=void 0!==e.id?e.id:e;if("object"==typeof t){const e=this._keyIndex.get(t);if(e)t=e;else{const e="row@"+this._keyIncrementor++;this._keyIndex.set(t,e),t=e}}let i=this._store.get(t);return i?i.setData(e):(i=new wC(t,e),this._store.set(t,i),this._store.size>300&&this._collectGarbage(),i)}_collectGarbage(){[...this._store.entries()].sort((e,t)=>e[1].lastModified-t[1].lastModified).slice(100).forEach(e=>{this._store.delete(e[0])})}},_S=class e{static create(){return new e({formatter:new bS,rowGroupModels:[],transformers:new Set,store:new yS})}get hasTreeStructure(){return this._config.formatter instanceof vS}constructor(e){this._config=e,this._lastModified=Date.now()}setNestedRowsType(e="hidden"){return e===this._config.formatter.type?this:"hidden"===e?this._mutate({formatter:new bS}):this._mutate({formatter:new vS(e)})}setRowGroupData(e){const t=e.map(e=>{let t=e.rowData||[];const i=e.size?Math.max(0,e.size-t.length):t.length;if(i){const e=[...new Array(i)].map(()=>({}));t=t.concat(e)}return{heading:e.heading,summaryData:e.summaryData,items:this._config.formatter.resolveModels(t,this._config.store)}});return this._mutate({rowGroupModels:t})}updateRows(e){return this.getAllRows().forEach(t=>{const i=e(t);t.updateData(i)}),this._mutate()}addTransformer(e){return this._config.transformers.add(e),this._mutate({transformers:this._config.transformers})}removeTransformer(e){return this._config.transformers.delete(e),this._mutate({transformers:this._config.transformers})}clean(){return this._mutate()}getRowByKey(e){return this.getAllRows().find(t=>t.key===e)}getRowByIndex(e){return this.getVisibleRows().find(t=>t.index===e)}getGroupByRowIndex(e){var t;if(e)return null==(t=this._viewData)?void 0:t.find(t=>e>=t.startIndex&&e<=t.endIndex)}getViewData(){return this._viewData||(this._viewData=this._generateViewData()),this._viewData}anyGroupHasHeading(){return this.getViewData().some(e=>e.heading)}getAllRows(){return this._flattenRows||(this._flattenRows=this._config.formatter.flattenRows(this._config.rowGroupModels)),this._flattenRows}getTotalSize(){return this._config.rowGroupModels.reduce((e,t)=>
2937e+t.items.length,0)}getVisibleRows(){return this.getViewData().flatMap(e=>e.items)}getNumVisibleRows(){return this.getVisibleRows().length}getAriaRowCount(){var e;const t=this.getVisibleRows();return(null==(e=t[t.length-1])?void 0:e.index)||0}hasChanged(e=300){return this._lastModified+e>Date.now()}isRowActive(e){return e&&e===this._activeRow}_generateViewData(){const e=this._config.transformers.size?[...this._config.transformers].map(e=>e()):[];return this._viewData=this._config.formatter.resolveRowGroupModels(this._config.rowGroupModels,e),this._activeRow=this.getAllRows().find(e=>e.isActive()),this._viewData}_mutate(e={}){const t={...this._config,...e};return new(0,this.constructor)(t)}},fS="table",xS=window.matchMedia("print"),wS=class extends Ti{constructor(){super(),this.layout="auto",this.density="default",this.liveRows=!1,this.rowHeaderColumn="auto",this.messageEmpty=Cw.EmptyMessage,this.nestedRows="hidden",this.optimizationStrategy="auto",this._columnModel=new lS,this._rowModel=_S.create().addTransformer(this._sortByColumn),this._resizeObserver=new ResizeObserver(this._onTableResize),[mS.eventName,"checkAll","cellEvent"].forEach(e=>{this.addEventListener(e,e=>e.stopPropagation())})}get _optimizeRender(){return"display-all"!==this.optimizationStrategy&&("display-visible"===this.optimizationStrategy||!!this._rowLoaderSlot.isFilled()&&(!xS.matches||this._rowModel.getNumVisibleRows()>500))}get _stickyHeaders(){return!!this._rowLoaderSlot.isFilled()&&!xS.matches}activateRow(e){this._rowModel=this._rowModel.updateRows(t=>t.key===e?{active:!0}:t.isActive()?{active:!1}:void 0)}getActiveRow(){var e;return null==(e=this._rowModel.getAllRows().find(e=>e.isActive()))?void 0:e.key}focusCell(e,t,i){const n=this._rowModel.getRowByKey(t),o=this._columnModel.getColumn(e);if(!o||!(null==n?void 0:n.index))return;const r=this._columnModel.getColumns().indexOf(o);this.focusCellByIndex(r,null==n?void 0:n.index,i)}focusCellByIndex(e,t,i){const n=this.shadowRoot.getElementById(fS);n&&n.focusCell(e,t,i)}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this._resizeObserver.observe(this),xS.addEventListener("change",this._onMatchPrintChange)}disconnectedCallback(){this._resizeObserver.unobserve(this),xS.removeEventListener("change",this._onMatchPrintChange)}getStyle(){return uS}render(){let e;const t=this._getToolbarElement(),i=this._columnModel.getLayout();if("table"===i)e=this._renderTable(),t.sortColumns=void 0,t.selectColumns=void 0;else{if("list"!==i)return;e=this._renderList(),t.sortColumns=this._columnModel.getSortableColumns(),t.selectColumns=this._columnModel.getSelectableColumns()}return $`
2938            ${this._toolbarSlot.default($`${this._fallbackToolbarElement}`)}
2939            <div class="${this.classes.wrapper}">
2940                ${e} ${this._renderEmptyMessage()} ${this._rowLoaderSlot} ${this._paginationSlot}
2941                <div class="${this.classes.selectionContainer}">${this._selectionSlot}</div>
2942            </div>
2943        `}getRows(e=!1){let t=this._rowModel.getAllRows();return e&&(t=t.filter(e=>e.isDirty())),t.sort((e,t)=>(e.index||0)-(t.index||0)).map(e=>e.getData())}onLayoutChange(){this._columnModel=this._columnModel.setLayout(this.layout)}onColumnDataChange(){this._columnModel=this._columnModel.setColumnData(this.columnData||[],this.rowHeaderColumn)}onTreeChange(){this._rowModel=this._rowModel.setNestedRowsType(this.nestedRows)}onRowGroupDataChange(){this._rowModel=this._rowModel.setRowGroupData(this.rowGroupData||[]),this._columnModel=this._columnModel.updateColumns(e=>{if(e.selectAll)return{selectAll:null}})}onToolbarSlot(){const e=this._toolbarSlot.content;e&&(e.addEventListener("sort",this._onSort),e.addEventListener("checkAll",this._onCheckAllEvent))}onPaginationSlot(){this._paginationSlot.isFilled()&&this._paginationSlot.content.addEventListener("beforePageChanged",this._onBeforePaginationChange)}onRowLoaderSlot(){this._rowLoaderSlot.isFilled()?(this._rowModel=this._rowModel.addTransformer(this._filterRowLimit),this._rowLoaderSlot.content.addEventListener("numRowsDisplayedChange",this._onRowLoaderRowRangeChange)):this._rowModel=this._rowModel.removeTransformer(this._filterRowLimit)}onSelectionSlot(){this._selectionSlot.isFilled()&&this._selectionSlot.content.addEventListener("filter",this._onSelectionSlotFilter)}beforeRender(){this._appendPlaceholderRows(),this._calculateSelectAllStates(),this._rowLoaderSlot.isFilled()&&(this._rowLoaderSlot.content.totalRowCount=this._rowModel.getTotalSize(),this._rowLoaderSlot.content.filteredRowCount=this._rowModel.getNumVisibleRows())}_renderTable(){const e=this._getTableSummary("table");return $`
2944            <acorn-data-table-internal-layout-table
2945                id="${fS}"
2946                @sort="${this._onSort}"
2947                @checkAll="${this._onCheckAllEvent}"
2948                @cellEvent="${this._onCellEvent}"
2949                @visibleRowRangeChange="${this._onVisibleRowRangeChangEvent}"
2950                @rowExpand="${this._onRowExpand}"
2951                .columnModel="${this._columnModel}"
2952                .rowModel="${this._rowModel}"
2953                .summaryData="${e}"
2954                .density="${this.density}"
2955                .liveRows="${this.liveRows}"
2956                .optimizeRender="${this._optimizeRender}"
2957                .stickyHeaders="${this._stickyHeaders}"
2958            ></acorn-data-table-internal-layout-table>
2959        `}_renderList(){const e=this._getTableSummary("list");return $`
2960            <acorn-data-table-internal-layout-list
2961                id="${fS}"
2962                @sort="${this._onSort}"
2963                @checkAll="${this._onCheckAllEvent}"
2964                @cellEvent="${this._onCellEvent}"
2965                @visibleRowRangeChange="${this._onVisibleRowRangeChangEvent}"
2966                .columnModel="${this._columnModel}"
2967                .rowModel="${this._rowModel}"
2968                .summaryData="${e}"
2969                .density="${this.density}"
2970                .liveRows="${this.liveRows}"
2971                .optimizeRender="${this._optimizeRender}"
2972                .stickyHeaders="${this._stickyHeaders}"
2973            ></acorn-data-table-internal-layout-list>
2974        `}_getTableSummary(e){var t,i;if(!this._rowLoaderSlot.isFilled()){let n=null==(t=this.summaryData)?void 0:t.find(t=>t.showWhen===e);return n||(n=null==(i=this.summaryData)?void 0:i.find(e=>"always"===e.showWhen)),n}}_renderEmptyMessage(){return this._rowModel.getNumVisibleRows()?null:$` <div class="${this.classes.emptyTableMessage}">${this.messageEmpty}</div> `}_onTableResize(e){const t=e[0].contentRect.width;this._columnModel=this._columnModel.setMaxWidth(t)}_onMatchPrintChange(e){if(e.matches){const e=this.clientWidth;this._columnModel=this._columnModel.setMaxWidth(e),this.invalidate()}}_onSort(e){e.stopPropagation();if(this._sort.emit(e.detail).defaultPrevented)return;const{columnKey:t,sortDirection:i}=e.detail;this._columnModel=this._columnModel.setSortOrder(t,i),this._paginationSlot.isFilled()?this.rowGroupData=[]:this._rowModel=this._rowModel.clean()}_onCheckAllEvent(e){e.stopPropagation();const{columnKey:t,value:i}=e.detail;if(!this._dispatchColumnEvent(t,new Ax(e)))return;const n=this._columnModel.getColumn(t),o=[];this._rowModel=this._rowModel.updateRows(e=>{const t=n.mutateCheckedValue(e,i);if(t)return o.push(e.key),t}),this._dispatchColumnEvent(t,new mS(o.map(e=>({id:e,[t]:i}))))}_onCellEvent(e){e.stopPropagation();const{columnKey:t,rowKey:i,value:n}=e.detail;if(this._dispatchColumnEvent(t,new Ax(e))){if(e.detail.eventType===Mx.CHANGE_EVENT){const e=this._columnModel.getColumn(t);this._rowModel=this._rowModel.updateRows(t=>{if(t.key===i&&(e instanceof zC||e instanceof WC))return e.mutateCheckedValue(t,n)}),this._dispatchColumnEvent(t,new mS([{id:i,[t]:n}]))}}else e.preventDefault()}_onRowExpand(e){e.stopPropagation(),this._rowExpand.emit({...e.detail})?this._rowModel=this._rowModel.updateRows(t=>{if(t.key===e.detail.rowKey)return{expanded:e.detail.expanded}}):e.preventDefault()}_dispatchColumnEvent(e,t){const i=[...this.children].find(t=>t instanceof $t&&t.getDataModelClass()===dS&&t.columnKey===e);return i?i.dispatchEvent(t):this.dispatchEvent(t),!t.defaultPrevented}_onBeforePaginationChange(){this.rowGroupData=[]}_onRowLoaderRowRangeChange(e){const t=this._rowModel.getNumVisibleRows(),i=this._rowModel.getAriaRowCount();this._rowModel=this._rowModel.clean(),e.detail.userInteraction&&e.detail.numDisplayedRows>t&&this.focusCellByIndex(0,i+1)}_onSelectionSlotFilter(e){e.detail.filter.selected?this._rowModel=this._rowModel.addTransformer(this._filterSelected):this._rowModel=this._rowModel.removeTransformer(this._filterSelected)}_onVisibleRowRangeChangEvent(e){this._rowLoaderSlot.isFilled()&&this._rowLoaderSlot.content.dispatchVisibleRowRangeChange(e.detail)}_appendPlaceholderRows(){var e,t;if(!(null==(e=this.rowGroupData)?void 0:e.length)&&this._paginationSlot.isFilled()){const e=null==(t=this._paginationSlot.content.getRowRange())?void 0:t.length;this.rowGroupData=[{size:e,rowData:[]}]}}_sortByColumn(){const e=this._columnModel.getAllColumns().find(e=>e.sorted);return t=>e&&"auto"===e.sortMethod?t.sort(e.sortCompare):t}_filterRowLimit(){const e=this._rowLoaderSlot.content.numRowsDisplayed;let t=0;return(i,n=1)=>1===n?i.filter(()=>t++<e):i}_filterSelected(){const e=this._columnModel.getAllColumns().find(e=>e instanceof QC);return e?t=>t.filter(t=>t.getCellValue(e.columnKey)):()=>[]}_calculateSelectAllStates(){this._columnModel=this._columnModel.updateColumns(e=>{if(e instanceof zC&&e.showSelectAll)return{selectAll:e.getSelectAllStates(this._rowModel.getAllRows())}})}_getToolbarElement(){return this._toolbarSlot.isFilled()?this._toolbarSlot.content:(this._fallbackToolbarElement||(this._fallbackToolbarElement=document.createElement("acorn-data-table-toolbar"),this._fallbackToolbarElement.addEventListener("sort",this._onSort),this._fallbackToolbarElement.addEventListener("checkAll",this._onCheckAllEvent)),this._fallbackToolbarElement)}};Lx([gt(),zt({type:zx})],wS.prototype,"layout",2),Lx([gt(),zt({type:Wx})],wS.prototype,"density",2),Lx([gt(),zt({type:Boolean})],wS.prototype,"liveRows",2),Lx([gt(),zt({type:Vx})],wS.prototype,"rowHeaderColumn",2),Lx([gt()],wS.prototype,"messageEmpty",2),Lx([gt(),zt({type:Jx})],wS.prototype,"nestedRows",2),Lx([Mt(),zt({type:dS})],wS.prototype,"columnData",2),Lx([Mt(),zt({type:hS})],wS.prototype,"rowGroupData",2),Lx([Mt(),zt({type:pS})],wS.prototype,"summaryData",2),Lx([gt(),zt({type:ew})],wS.prototype,"optimizationStrategy",2),Lx([ft({cancelable:!0})],wS.prototype,"_sort",2),Lx([ft({cancelable:!0})],wS.prototype,"_rowExpand",2),Lx([ri("toolbar",{selectSingleType:bC.config.type,strict:!0})],wS.prototype,"_toolbarSlot",2),Lx([ri("pagination",{selectSingleType:qw.config.type,strict:!0})],wS.prototype,"_paginationSlot",2),Lx([ri("row-loader",{selectSingleType:Kw.config.type,strict:!0})],wS.prototype,"_rowLoaderSlot",2),Lx([ri("selection",{selectSingleType:Vw.config.type,strict:!0})],wS.prototype,"_selectionSlot",2),Lx([Ht()],wS.prototype,"_columnModel",2),Lx([Ht()],wS.prototype,"_rowModel",2),Lx([wi("columnData")],wS.prototype,"onLayoutChange",1),Lx([wi("columnData"),wi("rowHeaderColumn")],wS.prototype,"onColumnDataChange",1),Lx([wi("nestedRows")],wS.prototype,"onTreeChange",1),Lx([wi("rowGroupData")],wS.prototype,"onRowGroupDataChange",1),Lx([wi("_toolbarSlot")],wS.prototype,"onToolbarSlot",1),Lx([wi("_paginationSlot")],wS.prototype,"onPaginationSlot",1),Lx([wi("_rowLoaderSlot")],wS.prototype,"onRowLoaderSlot",1),Lx([wi("_selectionSlot")],wS.prototype,"onSelectionSlot",1),Lx([Pe()],wS.prototype,"_onTableResize",1),Lx([Pe()],wS.prototype,"_onMatchPrintChange",1),Lx([Pe()],wS.prototype,"_onSort",1),Lx([Pe()],wS.prototype,"_onCheckAllEvent",1),Lx([Pe()],wS.prototype,"_onCellEvent",1),Lx([Pe()],wS.prototype,"_onRowExpand",1),Lx([Pe()],wS.prototype,"_onBeforePaginationChange",1),Lx([Pe()],wS.prototype,"_onRowLoaderRowRangeChange",1),Lx([Pe()],wS.prototype,"_onSelectionSlotFilter",1),Lx([Pe()],wS.prototype,"_onVisibleRowRangeChangEvent",1),Lx([Pe()],wS.prototype,"_sortByColumn",1),Lx([Pe()],wS.prototype,"_filterRowLimit",1),Lx([Pe()],wS.prototype,"_filterSelected",1),Lx([Pe()],wS.prototype,"_calculateSelectAllStates",1),wS=Lx([_t({tag:"acorn-data-table"})],wS);var CS=Object.defineProperty,SS=Object.getOwnPropertyDescriptor,$S=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?SS(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&CS(t,i,r),r},kS={$host:{display:"flex !important",flexDirection:"row",justifyContent:"space-between",alignContent:"stretch",alignItems:"stretch",padding:`${vn.Small} ${vn.Medium}`},$$slotted:{'&([slot="label"])':{display:"block",wordWrap:"break-word",...Eo(zi.Text.Regular.high)},'&([slot="value"])':{display:"block",paddingLeft:vn.Medium,wordWrap:"break-word",...To(zi.Text.Regular.high)},'&([slot="label-detail"])':{display:"block",wordWrap:"break-word",...Io(zi.Text.Regular.high)},'&([slot="value-detail"])':{display:"block",wordWrap:"break-word",...Io(zi.Text.Regular.high)}},labelColumn:{flex:"1 1 auto",minWidth:0},valueColumn:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-end",alignContent:"flex-end",flex:"1 1 50%",textAlign:"right",minWidth:0},valueWrapper:{width:"100%"},screenReaderValue:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"}},ES=class extends Ti{getStyle(){return kS}render(){return $`
2975            ${this._labelSlot.isFilled()||this._labelDetailSlot.isFilled()?$`
2976                      <div class="${this.classes.labelColumn}">
2977                          ${this._labelSlot}
2978                          ${this._labelDetailSlot.isFilled()&&this._valueSlot.isFilled()?$`
2979                                    <div class="${this.classes.screenReaderValue}">
2980                                        ${this._valueSlot.content.map(e=>e.textContent).join(" ")}
2981                                    </div>
2982                                `:void 0}
2983                          ${this._labelDetailSlot}
2984                      </div>
2985                  `:void 0}
2986            ${this._valueSlot.isFilled()||this._valueDetailSlot.isFilled()?$`
2987                      <div class="${this.classes.valueColumn}">
2988                          <div
2989                              aria-hidden="${j(this._labelDetailSlot.isFilled()||void 0)}"
2990                              class="${this.classes.valueWrapper}"
2991                          >
2992                              ${this._valueSlot}
2993                          </div>
2994                          ${this._valueDetailSlot}
2995                      </div>
2996                  `:void 0}
2997        `}};$S([ri("label"),Ht()],ES.prototype,"_labelSlot",2),$S([ri("label-detail"),Ht()],ES.prototype,"_labelDetailSlot",2),$S([ri("value"),Ht()],ES.prototype,"_valueSlot",2),$S([ri("value-detail"),Ht()],ES.prototype,"_valueDetailSlot",2),ES=$S([_t({tag:"acorn-definition"})],ES);var TS=Object.defineProperty,IS=Object.getOwnPropertyDescriptor,OS=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?IS(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&TS(t,i,r),r},DS=Ve.createTranslation({BusyMessage:{sv:"Laddar sidinnehåll",en:"Loading page content"},LoadedMessage:{sv:"Sidinnehåll har laddats",en:"Page content is loaded"}}),RS={$host:{display:"block"},stickyWrapper:{backgroundSize:"cover",backgroundImage:e=>
2997co({base:`url("${e.themeBackground.xs}")`,sm:`url("${e.themeBackground.sm}")`,md:`url("${e.themeBackground.md}")`,lg:`url("${e.themeBackground.lg}")`,xl:`url("${e.themeBackground.xl}")`}),position:"fixed",top:"0",left:"0",width:"100%",height:"100vh",zIndex:"0",display:"flex",justifyContent:"center",alignItems:"center"},wrapper:{position:"relative",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",minHeight:"calc(100vh - var(--acorn-dialog-page-offset, 0px))",zIndex:"1"},dialog:{boxShadow:"0 6px 10px 0 rgba(0, 0, 0, 0.5)",backgroundColor:zi.Background.system,width:"500px",maxWidth:`calc(100% - ${vo(vn.Medium,2)})`,margin:co({base:vn.Medium,sm:vn.Large,lg:vn.ExtraLarge})},loader:{display:e=>e.loading||e.busy?"flex":"none",justifyContent:"center"}},FS=class extends Ti{constructor(){super(...arguments),this.busy=!1,this.loading=!1}static setTheme(e,t){const i=["xl","lg","md","sm","xs"];for(const e of i)if(!(e in t))throw Error(`DialogPage - Theme is missing required property ${e}`);FS._themes.set(e,t)}
2997get themeBackground(){return FS._themes.get(this.theme||"default")||{xs:"",sm:"",md:"",lg:"",xl:""}}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this._pageConnect.emit()}disconnectedCallback(){this._pageDisconnect.emit()}getStyle(){return RS}render(){return $`
2998            <div class="${this.classes.stickyWrapper}">
2999                <acorn-loader
3000                    theme="${Xb.Light}"
3001                    class="${this.classes.loader}"
3002                    accessibility-loading-message="${this.loading||this.busy?DS.BusyMessage:DS.LoadedMessage}"
3003                ></acorn-loader>
3004            </div>
3005            <div class="${this.classes.wrapper}">${this._renderDialog()}</div>
3006        `}_renderDialog(){if(!this.loading&&!this.busy)return $`<div class="${this.classes.dialog}"><slot></slot></div>`}};FS._themes=new Map,OS([gt(),zt({type:Boolean})],FS.prototype,"busy",2),OS([gt(),zt({type:Boolean})],FS.prototype,"loading",2),OS([gt()],FS.prototype,"theme",2),OS([ft({bubbles:!0})],FS.prototype,"_pageConnect",2),OS([ft({bubbles:!0})],FS.prototype,"_pageDisconnect",2),FS=OS([_t({tag:"acorn-dialog-page"})],FS);var LS=Object.defineProperty,AS=Object.getOwnPropertyDescriptor,MS=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?AS(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&LS(t,i,r),r},BS={$host:{textAlign:"right"}},PS=class extends Ti{constructor(){super(...arguments),this.label="",this.disabled=!1}render(){return $`<acorn-text-button type="${Sr.Button}" ?disabled="${!!this.disabled}">
3007            ${this.label}
3008        </acorn-text-button>`}getStyle(){return BS}};MS([gt(),zt({type:String})],PS.prototype,"label",2),MS([gt(),zt({type:Boolean})],PS.prototype,"disabled",2),PS=MS([_t({tag:"acorn-form-field-container-action"})],PS);var NS=(e=>(e.Auto="auto",e[e.Three=3]="Three",e[e.Four=4]="Four",e[e.Five=5]="Five",e[e.Six=6]="Six",e))(NS||{});var HS={$host:{[fo.HasParentTheme]:wo,backgroundColor:e=>e.highlight?zi.ComponentSpecific.FormFieldContainer.background:"transparent",display:"block",marginTop:e=>e._isNested?Rn(Dn.Large,vn.Medium):Rn(Dn.Large),marginBottom:Fn(Dn.Medium),marginLeft:0,marginRight:0,border:e=>e._isNested?`1px solid ${zi.Line.Regular.low}`:"0",borderRadius:"8px",position:"relative","&::before":{position:"absolute",content:'""',left:"-1px",top:"-1px",bottom:"-1px",display:e=>e._isNested?"block":"none",borderRadius:"8px",width:"8px",borderLeft:e=>e._isNested?`var(--acorn-form-field-container-border-width, 4px) solid var(--acorn-form-field-container-border-color, ${zi.Surface.Brand.medium})`:"none"}},wrapper:{maxWidth:co({sm:"auto",base:Xn}),borderRadius:e=>e.highlight?"8px":void 0,padding:function(e){return e._isNested||e.highlight?"24px 24px 32px 24px":"0"},[fo.HasTheme]:e=>e.highlight?`calc(1 - var(${fo.HasParentTheme}, 0))`:void 0},headingWrapper:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:Fn(Dn.Small,"6px")},heading:{color:e=>e.highlight?`var(--acorn-form-field-container-header-color, ${zi.Text.brand})`:`var(--acorn-form-field-container-header-color, ${zi.Text.Regular.high}
3008)`,fontFamily:Cn.Headline,fontWeight:$n.Bold,fontSize:kn(20),lineHeight:En(20,28),margin:"0"},nestedHeading:{color:`var(--acorn-form-field-container-header-color, ${zi.Text.Regular.high})`,lineHeight:En(16,28),fontSize:kn(16)}},zS=class extends Ti{constructor(){super(...arguments),this.heading="",this.headingLevel="auto",this.highlight=!1,this._isNested=!1,this._invalidateChildContainerCallbacks=[]}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this)}disconnectedCallback(){this._unregisterInvalidateCallback&&(this._unregisterInvalidateCallback(),this._unregisterInvalidateCallback=void 0)}registerChildInvalidateCallback(e){return this._invalidateChildContainerCallbacks.push(e),()=>{this._invalidateChildContainerCallbacks=this._invalidateChildContainerCallbacks.filter(t=>t!==e)}}beforeRender(){this._calculateHeadingLevelAndNested()}render(){return $`
3009            <section class="${this.classes.wrapper}">
3010                ${this._renderHeading()}
3011                <acorn-internal-enclosed-margins><slot></slot></acorn-internal-enclosed-margins>
3012            </section>
3013        `}getStyle(){return HS}getHeadingLevel(){return this._internalHeadingLevel}_calculateHeadingLevelAndNested(){var e,t;let i,n=this.parentElement;for(;n&&!i;){if(n instanceof zS){this._isNested=!0;const e=n.getHeadingLevel();e&&(i=e+1),this._unregisterInvalidateCallback||(this._unregisterInvalidateCallback=n.registerChildInvalidateCallback(this.invalidate.bind(this)))}n=n.parentElement}const o=this._internalHeadingLevel;this.heading?("1"!==(null==(e=this.headingLevel)?void 0:e.toString())&&"2"!==(null==(t=this.headingLevel)?void 0:t.toString())||console.error(`${this.localName} with heading-level="${this.headingLevel}" is not supported and should not be used.`),"auto"!==this.headingLevel&&null!==this.headingLevel?this._internalHeadingLevel=Number.parseInt(this.headingLevel.toString()):this._internalHeadingLevel=i?Math.min(i,6):3):this._internalHeadingLevel=void 0,o!==this._internalHeadingLevel&&this._invalidateChildContainerCallbacks.forEach(e=>e())}_renderHeading(){if(this.heading){let e;const t=[this.classes.heading];switch(this._isNested&&t.push(this.classes.nestedHeading),this._internalHeadingLevel){case 3:e=$`<h3 class="${t.join(" ")}">${this.heading}</h3>`;break;case 4:e=$`<h4 class="${t.join(" ")}">${this.heading}</h4>`;break;case 5:e=$`<h5 class="${t.join(" ")}">${this.heading}</h5>`;break;case 6:e=$`<h6 class="${t.join(" ")}">${this.heading}</h6>`;break;default:e=void 0}return $`<div class="${this.classes.headingWrapper}">${e} ${this._actionSlot}</div>`}}};MS([gt()],zS.prototype,"heading",2),MS([gt(),zt({type:NS})],zS.prototype,"headingLevel",2),MS([gt(),zt({type:Boolean})],zS.prototype,"highlight",2),MS([ri("action",{selectSingleType:PS.config.type,strict:!0})],zS.prototype,"_actionSlot",2),zS=MS([_t({tag:"acorn-form-field-container"})],zS);var WS=(e=>(e.TextColor="--acorn-text-button-text-color-internal",e.TextColorHover="--acorn-text-button-text-color-hover-internal",e.TextColorDisabled="--acorn-text-button-text-color-disabled-internal",e.OutlineColor="--acorn-text-button-outline-color-internal",e))(WS||{}),VS=Object.defineProperty,jS=Object.getOwnPropertyDescriptor,GS=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?jS(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&VS(t,i,r),r},qS=Ve.createTranslation({Of:{sv:"av",en:"of"},PreviousButton:{sv:"Föregående",en:"Previous"},NextButton:{sv:"Nästa",en:"Next"},DoneButton:{sv:"Klar",en:"Done"},CloseTooltip:{sv:"Stäng",en:"Close"},DialogLabel:{sv:"Förklaring",en:"Explanation"},DialogLabelSteps:{sv:"steg",en:"steps"}}),US={text:zi.Text.Regular.high,background:zi.Surface.discoveryInverted,headerLine:zi.Line.Regular.low,backdrop:({overlayBackdrop:e})=>e?zi.Shadow.default:"transparent"};function KS(){return{[WS.TextColor]:US.text,[WS.TextColorHover]:US.text}}var YS={$host:{display:"inline",outline:"0 !important"},popover:{[Hl.BackgroundColor]:US.background,[Hl.BackdropColor]:US.backdrop,[Hl.BackdropClipPath]:function(e){const t=e.width&&e.height||e.targetId;if(!e.overlayBackdrop||!t)return"none";const i=e._getFocalRect(),n=i.left,o=i.right,r=i.top,a=i.bottom;return`polygon(0% 0%, 0% 100%, ${n}px 100%, ${n}px ${r}px, ${o}px ${r}px, ${o}px ${a}px, ${n}px ${a}px, ${n}px 100%, 100% 100%, 100% 0%)`}},content:{colorScheme:"dark",color:US.text,display:"flex",flexDirection:"column",width:"100%"},header:{display:"flex",flexDirection:"row",width:"100%",minHeight:"72px",borderBottom:`solid 1px ${US.headerLine}`},heading:{...Bn(),color:US.text,flex:"1 1 auto",padding:"22px 12px 22px 24px",marginTop:0,marginBottom:0},closeButton:{padding:"16px 12px"},body:{flex:"1 1 auto",overflow:"auto"},bodyContent:{margin:"24px",color:US.text},footer:{color:US.text,display:"grid",alignItems:"center",columnGap:"14px",gridTemplateColumns:"1fr auto 1fr",fontSize:kn(14),padding:"16px 24px 16px 16px"},stepInfo:{...Nn(),fontWeight:$n.Bold,width:"100px",display:"flex",columnGap:"4px"},currentStep:{flex:"1",textAlign:"right"},totalSteps:{flex:"1"},previousButton:{...KS(),visibility:e=>e.step<=1?"hidden":void 0,marginRight:"auto"},nextButton:{...KS(),marginLeft:"auto",gridColumn:"3"},doneButton:{...KS(),marginLeft:"auto",gridColumn:"3"}},XS="popover",QS=class extends Ti{constructor(){super(...arguments),this.open=!1,this.heading=qS.DialogLabel,this.text="",this.top=0,this.left=0,this.width=0,this.height=0,this.steps=0,this.step=0,this.overlayDirection=Pl.Down,this.overlayAlignment=Nl.Left,this.overlayBackdrop=!1,this._ready=!1}get isReady(){return this._ready}get _popover(){return this.shadowRoot.getElementById(XS)}get _hasFooter(){return this.steps>=1}disconnectedCallback(){var e;this._unregisterListeners=null==(e=this._unregisterListeners)?void 0:e.call(this)}_getFocalRect(){const e=this._getFocalRectRelativePage();return e.x-=window.scrollX,e.y-=window.scrollY,e}render(){return $`
3014            <acorn-internal-popover
3015                class="${this.classes.popover}"
3016                show-pointer
3017                id="${XS}"
3018                .open="${this.open&&this._ready}"
3019                .closeOnClickOutside="${!this.overlayBackdrop}"
3020                ?show-backdrop="${this.overlayBackdrop}"
3021                direction="${this.overlayDirection}"
3022                alignment="${this.overlayAlignment}"
3023                position-strategy="${Ya.Fixed}"
3024                max-height="${j(this.overlayMaxHeight)}"
3025                max-width="${j(this.overlayMaxWidth)}"
3026                min-width="${j(this.overlayMinWidth)}"
3027                @requestReposition="${this._onOverlayReposition}"
3028                @close="${this._onOverlayClose}"
3029            >
3030                <div class="${this.classes.content}">
3031                    <div class="${this.classes.header}">
3032                        <h2 class="${this.classes.heading}">${this.heading}</h2>
3033                        <acorn-internal-icon-button
3034                            autofocus
3035                            icon="${Zo.XMark}"
3036                            label="${qS.CloseTooltip}"
3037                            class="${this.classes.closeButton}"
3038                            hide-label
3039                            @click="${this._onOverlayClose}"
3040                        ></acorn-internal-icon-button>
3041                    </div>
3042                    <acorn-internal-scroll-pane class="${this.classes.body}">
3043                        <div class="${this.classes.bodyContent}">${this.text}</div>
3044                    </acorn-internal-scroll-pane>
3045                    ${this._hasFooter?this._renderFooter():null}
3046                </div>
3047            </acorn-internal-popover>
3048        `}getStyle(){return YS}afterInitialRender(){this.open&&this.createOverlay()}createOverlay(){var e;if(this.open)if(this._popover){this._onOverlayReposition(),this._ready=!1;const e=this._getFocalRectRelativePage();this._scrollIntoPosition(e.left,e.top).finally(()=>{this._ready=!0}),this._unregisterListeners||(window.addEventListener("scroll",this._onWindowScroll,{passive:!0}),this._unregisterListeners=()=>{window.removeEventListener("scroll",this._onWindowScroll)})}else this._ready=!0;else this._unregisterListeners=null==(e=this._unregisterListeners)?void 0:e.call(this)}onPrevious(){this.previous.emit({step:Math.max(this.step-1,1),prevStep:this.step})}onNext(){this.next.emit({step:Math.min(this.step+1,this.steps),prevStep:this.step})}onDone(){this.done.emit(),this.open=!1,this.close.emit()}_onOverlayReposition(){var e;null==(e=this._popover)||e.setFocalRect(this._getFocalRect())}_onOverlayClose(){this.open=!1,this.close.emit()}_onWindowScroll(){this.isConnected&&this.open&&this.invalidateStyle()}_renderFooter(){const e=this.steps===this.step;return this.steps>1?$`
3049                  <div class="${this.classes.footer}">
3050                      <acorn-text-button class="${this.classes.previousButton}" @click="${this.onPrevious}">
3051                          ${qS.PreviousButton}
3052                      </acorn-text-button>
3053                      <div class="${this.classes.stepInfo}">
3054                          <span class="${this.classes.currentStep}">${this.step}</span> ${qS.Of}
3055                          <span class="${this.classes.totalSteps}">${this.steps}</span>
3056                      </div>
3057                      <acorn-text-button
3058                          class="${e?this.classes.doneButton:this.classes.nextButton}"
3059                          @click="${e?this.onDone:this.onNext}"
3060                      >
3061                          ${e?qS.DoneButton:qS.NextButton}
3062                      </acorn-text-button>
3063                  </div>
3064              `:$`
3065                  <div class="${this.classes.footer}">
3066                      <acorn-text-button class="${this.classes.doneButton}" @click="${this.onDone}">
3067                          ${qS.DoneButton}
3068                      </acorn-text-button>
3069                  </div>
3070              `}_getFocalRectRelativePage(){if(this.targetId){const e=this.getRootNode().getElementById(this.targetId),t=(null==e?void 0:e.getBoundingClientRect())||new DOMRect;return t.x+=window.scrollX,t.y+=window.scrollY,t}if(this.width&&this.height)return new DOMRect(this.left,this.top,this.width,this.height);const e=this.left-25,t=this.top;return new DOMRect(e,t,50,0)}_scrollIntoPosition(e,t){const i=t-window.innerHeight/2,n=e-window.innerWidth/2;return window.scrollTo({top:i,left:n,behavior:"smooth"}),new Promise((e,t)=>{let n;const o=Date.now()+2e3,r=setInterval(()=>{n===window.scrollY||Math.floor(window.scrollY)===Math.floor(i)?(clearInterval(r),e()):o<Date.now()&&(clearInterval(r),t()),n=window.scrollY},60)})}};GS([gt(),zt({type:Boolean})],QS.prototype,"open",2),GS([gt(),zt()],QS.prototype,"heading",2),GS([gt(),zt({type:Number})],QS.prototype,"overlayMaxHeight",2),GS([gt(),zt({type:Number})],QS.prototype,"overlayMaxWidth",2),GS([gt(),zt({type:Number})],QS.prototype,"overlayMinWidth",2),GS([gt(),zt()],QS.prototype,"text",2),GS([gt(),zt({type:Number})],QS.prototype,"top",2),GS([gt(),zt({type:Number})],QS.prototype,"left",2),GS([gt(),zt({type:Number})],QS.prototype,"width",2),GS([gt(),zt({type:Number})],QS.prototype,"height",2),GS([gt()],QS.prototype,"targetId",2),GS([gt(),zt({type:Ge})],QS.prototype,"steps",2),GS([gt(),zt({type:Ge})],QS.prototype,"step",2),GS([gt(),zt({type:Pl})],QS.prototype,"overlayDirection",2),GS([gt(),zt({type:Nl})],QS.prototype,"overlayAlignment",2),GS([gt(),zt({type:Boolean})],QS.prototype,"overlayBackdrop",2),GS([ft()],QS.prototype,"previous",2),GS([ft()],QS.prototype,"next",2),GS([ft()],QS.prototype,"done",2),GS([ft()],QS.prototype,"close",2),GS([Ht()],QS.prototype,"_ready",2),GS([wi("top"),wi("left"),wi("width"),wi("height"),wi("targetId"),wi("open")],QS.prototype,"createOverlay",1),GS([Pe()],QS.prototype,"onPrevious",1),GS([Pe()],QS.prototype,"onNext",1),GS([Pe()],QS.prototype,"onDone",1),GS([Pe()],QS.prototype,"_onOverlayReposition",1),GS([Pe()],QS.prototype,"_onOverlayClose",1),GS([Pe()],QS.prototype,"_onWindowScroll",1),QS=GS([_t({tag:"acorn-guided-tour"})],QS);var ZS=Object.defineProperty,JS=Object.getOwnPropertyDescriptor,e$=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?JS(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&ZS(t,i,r),r};var t$,i$,n$,o$={$host:{display:"block",...Ln(Dn.Medium),outline:"none !important"},toggle:{border:"none",background:"none",padding:"0",margin:"0",textDecoration:"none",textAlign:"left",cursor:"pointer",...Qi(),display:"flex",fontFamily:Cn.Base,fontWeight:$n.Regular,lineHeight:Sn.Base,fontSize:kn(14),color:zi.Text.interactive,"--acorn-icon-color":zi.Icon.interactive,alignItems:"flex-start",pointerEvents:e=>e._showContent?"none":"auto","&:hover":{cursor:"pointer",textDecoration:"underline","--acorn-icon-color":zi.Text.interactive}},label:{...(t$=nr,i$=14,n$=Sn.Base,{marginTop:`calc(\n                        calc(${t$}px - \n                            calc(${kn(i$)} * ${n$})\n                        ) / 2\n                    )`})}},r$=class extends Ti{constructor(){super(...arguments),this._showContent=!1}getStyle(){return o$}render(){return this.label?$`
3071            <button id="help-button" class="${this.classes.toggle}" @click="${this._onToggleButtonInteraction}">
3072                <acorn-internal-icon
3073                    icon="${Zo.CircleQuestionMark}"
3074                    align-icon="${Cr.Left}"
3075                    size="${nr}"
3076                ></acorn-internal-icon>
3077                <span class="${this.classes.label}"> ${this.label||this.heading} </span>
3078            </button>
3079            <acorn-page-detail
3080                close-on-click-outside
3081                heading="${this.heading?this.heading:this.label}"
3082                @close="${this._onClose}"
3083            >
3084                ${this._showContent?$`<slot></slot>`:void 0}
3085            </acorn-page-detail>
3086        `:(console.error(`Attribute label is required on ${this.tagName}`,this),$`<slot></slot>`)}_onToggleButtonInteraction(){this.shadowRoot.querySelector(`.${this.classes.toggle}`).focus(),this._showContent=!this._showContent}_onClose(e){var t;e.detail.returnFocus&&(null==(t=this.shadowRoot.getElementById("help-button"))||t.focus()),this._showContent=!1,this._close.emit()}};e$([gt()],r$.prototype,"label",2),e$([gt()],r$.prototype,"heading",2),e$([Ht()],r$.prototype,"_showContent",2),e$([ft()],r$.prototype,"_close",2),e$([Pe()],r$.prototype,"_onToggleButtonInteraction",1),e$([Pe()],r$.prototype,"_onClose",1),r$=e$([_t({tag:"acorn-help"})],r$);var a$=Object.defineProperty,s$=Object.getOwnPropertyDescriptor,l$=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?s$(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&a$(t,i,r),r},c$=class extends Ti{render(){return $`<slot></slot>`}};c$=l$([_t({tag:"acorn-highlight-box-body"})],c$);var d$=class extends Ti{render(){return $`<slot></slot>`}};d$=l$([_t({tag:"acorn-highlight-box-footer"})],d$);var h$=class extends Ti{render(){return $`<slot></slot>`}};h$=l$([_t({tag:"acorn-highlight-box-heading"})],h$);var p$=(e=>(e.Lilac="lilac",e.Turquoise="turquoise",e.Apricot="apricot",e.Default="lilac",e))(p$||{}),u$="--acorn-highlight-box-internal-heading-font-size",g$={$host:{display:"flex",flexDirection:"column",...Ln(Dn.Medium,"12px"),[fo.HasParentTheme]:wo,[u$]:kn(20),...fn({xs:{[u$]:kn(24)},sm:{[u$]:kn(20)},md:{[u$]:kn(24)}}),backgroundColor:e=>function(e,t){let i;i=v$(e)?e:v$(t)?t:"lilac";return b$(i).contentThemeColor}(e.contentTheme,e.theme)},header:{backgroundColor:e=>y$(e.theme),padding:"12px 16px",position:"relative",margin:0,fontSize:`var(${u$}, ${kn(20)})`,lineHeight:"1",borderTopRightRadius:Gi.small,borderTopLeftRadius:Gi.small,"&::after":{display:"flex",position:"absolute",content:"''",width:"0px",height:"0px",left:"16px",bottom:"-8px",borderLeft:"8px solid transparent",borderRight:"8px solid transparent",borderTopColor:e=>y$(e.theme),borderTopWidth:"8px",borderTopStyle:"solid"}},contentWrapper:{[fo.HasTheme]:"calc(1 - var(--acorn-color-theme-has-parent-theme))",borderBottomRightRadius:Gi.small,borderBottomLeftRadius:Gi.small},content:{padding:"16px",flex:"1 1 auto"},footer:{padding:"16px"},$$slotted:{'&([slot="heading"])':{color:zi.Text.whiteStatic,fontSize:`var(${u$}, ${kn(20)})`,fontFamily:Cn.Headline,fontWeight:$n.Black,lineHeight:"1"}}},m$=new Map([["lilac",[zi.Surface.Lilac.mediumStatic,zi.ComponentSpecific.HighlightBox.surfaceLilac]],["turquoise",[zi.Surface.Turquoise.mediumStatic,zi.ComponentSpecific.HighlightBox.surfaceTurquoise]],["apricot",[void 0,"#fbf2ea"]]]);function b$(e){var t;const[i,n]=null!=(t=m$.get(e))?t:[void 0,void 0];return{themeColor:null!=i?i:"",contentThemeColor:null!=n?n:""}}function v$(e){return(t=e||"").charAt(0).toUpperCase()+t.slice(1)in p$;var t}function y$(e){return b$(v$(e)?e:"lilac").themeColor}var _$=class extends Ti{constructor(){super(...arguments),this.headingLevel=2}getStyle(){return g$}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),"apricot"===this.theme&&(this.theme="lilac")}render(){var e,t;return $`
3087            ${this._renderHeading()}
3088            <div class="${this.classes.contentWrapper}">
3089                <acorn-internal-enclosed-margins class="${this.classes.content}">
3090                    ${(null==(e=this._bodySlot)?void 0:e.isFilled())?this._bodySlot:$`<slot></slot>`}
3091                </acorn-internal-enclosed-margins>
3092                ${(null==(t=this._footerSlot)?void 0:t.isFilled())?$` <div class="${this.classes.footer}">${this._footerSlot}</div>`:null}
3093            </div>
3094        `}_renderHeading(){switch(this.headingLevel){case 2:return $`<h2 class="${this.classes.header}">${this._headingSlot}</h2>`;case 3:return $`<h3 class="${this.classes.header}">${this._headingSlot}</h3>`;case 4:return $`<h4 class="${this.classes.header}">${this._headingSlot}</h4>`;case 5:return $`<h5 class="${this.classes.header}">${this._headingSlot}</h5>`;case 6:return $`<h6 class="${this.classes.header}">${this._headingSlot}</h6>`;default:return}}};l$([gt(),zt({type:p$})],_$.prototype,"theme",2),l$([gt(),zt({type:p$})],_$.prototype,"contentTheme",2),l$([gt(),zt({type:Number})],_$.prototype,"headingLevel",2),l$([ri("heading",{selectAllTypes:h$.config.type})],_$.prototype,"_headingSlot",2),l$([ri("body",{selectSingleType:c$.config.type,strict:!0})],_$.prototype,"_bodySlot",2),l$([Ht(),ri("footer",{selectAllTypes:d$.config.type})],_$.prototype,"_footerSlot",2),_$=l$([_t({tag:"acorn-highlight-box"})],_$);var f$=Object.defineProperty,x$=Object.getOwnPropertyDescriptor,w$=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?x$(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&f$(t,i,r),r},C$={mark:{color:zi.Text.interactive}}
3094,S$=class extends Ti{render(){if(!this.text)return $``;const{startIndex:e,endIndex:t}=this._getSelectionToHighlight();if(-1===e)return $` ${this.text} `;const i=this.text.substring(e,t);return $`
3095            ${this.text.substring(0,e)}<span class="${this.classes.mark}">${i}</span
3096            >${this.text.substring(t)}
3097        `}getStyle(){return C$}_getSelectionToHighlight(){if("string"!=typeof this.text||"string"!=typeof this.highlight)return{startIndex:-1,endIndex:-1};const e=this.text.toLowerCase(),t=this.highlight.toLowerCase(),i=e.indexOf(t);return{startIndex:i,endIndex:-1===i?-1:i+t.length}}};w$([gt()],S$.prototype,"highlight",2),w$([gt()],S$.prototype,"text",2),S$=w$([_t({tag:"acorn-highlight"})],S$);var $$=Object.defineProperty,k$=Object.getOwnPropertyDescriptor,E$=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?k$(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&$$(t,i,r),r},T$=(e=>(e.Option="option",e.Link="link",e.Basic="basic",e))(T$||{}),I$={$host:{display:"block",outline:"0 !important"},wrapper:{...Zi(),boxSizing:"border-box",position:"relative",display:"flex",flexDirection:"row",justifyContent:"flex-start",alignContent:"stretch",alignItems:"center",width:"100%",textAlign:"initial",transition:`background-color ${ai.isRunningTests?"0":".3s"} ease-out`,padding:`var(--acorn-item-padding, ${co({base:"6px 8px",xs:"11px 16px",sm:"6px 8px",md:"11px 16px"})})`,pointerEvents:e=>e.disabled?"none":void 0,opacity:e=>e.disabled?"0.5":"1",cursor:e=>e.disabled?"not-allowed":"option"===e.type||"link"===e.type?"pointer":"auto",backgroundColor:e=>e.active?zi.Overlay.active:void 0,"&:hover":{backgroundColor:e=>e.disabled||"option"!==e.type&&"link"!==e.type?void 0:zi.Overlay.hover}},content:{flex:"1 1 100%",maxWidth:"100%",minWidth:"0",paddingLeft:e=>e._beforeSlot.isFilled()?"12px":"0px",paddingRight:e=>e._afterSlot.isFilled()?"12px":"0px"},checkIcon:{display:"flex",marginLeft:"10px"},linkIcon:{display:"flex",marginLeft:"6px"},busyIcon:{...yo(16),marginLeft:"10px"}},O$=class extends Ti{constructor(){super(...arguments),this.type="basic",this.busy=!1,this.disabled=!1,this.selected=!1,this.active=!1}render(){return $`
3098            <div
3099                class="${this.classes.wrapper}"
3100                aria-disabled="${this.disabled?"true":"false"}"
3101                tabindex="${j(this._tabIndexAttributeValue())}"
3102                role="${j(this._roleAttributeValue())}"
3103            >
3104                ${this._beforeSlot}
3105                <div class="${this.classes.content}"><slot></slot></div>
3106                ${this._afterSlot}
3107                ${this.selected?$`
3108                          <acorn-internal-icon
3109                              class="${this.classes.checkIcon}"
3110                              icon="${Zo.CheckV2}"
3111                              size="14px"
3112                              color="#99cc66"
3113                          >
3114                          </acorn-internal-icon>
3115                      `:void 0}
3116                ${"link"!==this.type||this.busy?void 0:$`
3117                          <acorn-internal-icon
3118                              class="${this.classes.linkIcon}"
3119                              icon="${Zo.CaretRight}"
3120                              size="20px"
3121                              color="${zi.Icon.medium}"
3122                          >
3123                          </acorn-internal-icon>
3124                      `}
3125                ${this.busy?$` <span class="${this.classes.busyIcon}"></span> `:void 0}
3126            </div>
3127        `}getStyle(){return I$}onTypeChanged(e){"link"===e?this.addEventListener("click",this._navigateToUrl):this.removeEventListener("click",this._navigateToUrl),this._isInteractive()?this.addEventListener("keydown",this._onKeydown):this.removeEventListener("keydown",this._onKeydown)}_navigateToUrl(){const e=this.getAttribute("href"),t=this.getAttribute("target");!this.disabled&&e&&"link"===this.type&&("_blank"===t?window.open(e):window.location.href=e)}_onKeydown(e){e.key!==ye.Enter&&e.key!==ye.Space||this.dispatchEvent(new Event("click"))}_tabIndexAttributeValue(){if(this._isInteractive()&&!this.disabled)return"0"}_roleAttributeValue(){return"link"===this.type?"link":"option"===this.type?"button":void 0}_isInteractive(){return"link"===this.type||"option"===this.type}};E$([gt(),zt({type:T$})],O$.prototype,"type",2),E$([gt(),zt({type:Boolean})],O$.prototype,"busy",2),E$([gt(),zt({type:Boolean})],O$.prototype,"disabled",2),E$([gt()],O$.prototype,"href",2),E$([gt()],O$.prototype,"target",2),E$([gt(),zt({type:Boolean})],O$.prototype,"selected",2),E$([gt(),zt({type:Boolean})],O$.prototype,"active",2),E$([ri("before")],O$.prototype,"_beforeSlot",2),E$([ri("after")],O$.prototype,"_afterSlot",2),E$([wi("type")],O$.prototype,"onTypeChanged",1),O$=E$([_t({tag:"acorn-item"})],O$);var D$=(e=>
3127(e.BackgroundColor="--acorn-internal-conclusion-background-color",e.TextColor="--acorn-internal-conclusion-text-color",e))(D$||{}),R$=Object.defineProperty,F$=Object.getOwnPropertyDescriptor,L$=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?F$(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&R$(t,i,r),r},A$={$host:{display:"block",...Ln(Dn.Medium,vn.Medium)},wrapper:{backgroundColor:zi.ComponentSpecific.Jumbotron.background,borderRadius:"8px",textAlign:"center",display:"inline-block",width:"100%",minHeight:"0"},title:{...Yn(),color:zi.Text.Regular.high,wordBreak:"break-word",margin:0},heading:{...Un(),color:`var(${D$.TextColor}, ${zi.Text.brand})`,wordBreak:"break-word",margin:0},details:{...Wn(),color:zi.Text.Regular.high,whiteSpace:"pre-line",margin:0},slotWrapper:{padding:`0 ${vn.Large}`,margin:`${vn.Large} 0`},$$slotted:{foo:co({base:"0",xs:"0"}),"&(:first-of-type)":{marginTop:vn.Small},"&(:last-of-type)":{marginBottom:vn.Small},'&([slot="title"])':{...Yn(),color:zi.Text.Regular.high,display:"block"},'&([slot="heading"])':{...Un(),color:`var(${D$.TextColor}, ${zi.Text.brand})`,display:"block"},'&([slot="details"])':{...Wn(),color:zi.Text.Regular.high,display:"block"}}},M$=class extends Ti{constructor(){super(...arguments),this.title="",this.heading=""}getStyle(){return A$}render(){return $`
3128            <div class="${this.classes.wrapper}">
3129                <div class="${this.classes.slotWrapper}">
3130                    ${this._titleSlot.isFilled()?this._titleSlot:$`<p class="${this.classes.title}">${this.title}</p>`}
3131                    ${this._headingSlot.isFilled()?this._headingSlot:$`<p class="${this.classes.heading}">${this.heading}</p>`}
3132                    ${this._detailsSlot.isFilled()?this._detailsSlot:$`<p class="${this.classes.details}">${this.details}</p>`}
3133                </div>
3134            </div>
3135        `}};L$([gt()],M$.prototype,"title",2),L$([gt()],M$.prototype,"heading",2),L$([gt()],M$.prototype,"details",2),L$([ri("title")],M$.prototype,"_titleSlot",2),L$([ri("heading")],M$.prototype,"_headingSlot",2),L$([ri("details")],M$.prototype,"_detailsSlot",2),M$=L$([_t({tag:"acorn-jumbotron"})],M$);var B$=Object.defineProperty,P$=Object.getOwnPropertyDescriptor,N$=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?P$(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&B$(t,i,r),r},H$=class extends xt{constructor(){super(...arguments),this.text=""}};H$.modelName="listBodyItemMessage";var z$=class extends xt{constructor(){super(...arguments),this.label="",this.icon="",this.value=""}};z$.modelName="listBodyItemOption";var W$=class extends xt{constructor(){super(...arguments),this.itemId="",this.label="",this.accessibilityLabel="",this.subLabel="",this.value="",this.subValue="",this.detail="",this.secondaryDetail="",this.link="",this.icon="",this.checked=!1,this.disabled=!1,this.active=!1,this.busy=!1,this.badgeNumber=Number.NaN,this.badgeSeverity=Bo.Default,this.tagLabel="",this.tagType=cf.Default,this.tagSeverity=void 0,this.imageSrc="",this.imageAlt="",this.options=null,this.messages=null}};W$.modelName="listBodyItem",N$([zt({type:Ni})],W$.prototype,"subLabel",2),N$([zt({type:Ni})],W$.prototype,"value",2),N$([zt({type:Ni})],W$.prototype,"subValue",2),N$([zt({type:Ni})],W$.prototype,"detail",2),N$([zt({type:Ni})],W$.prototype,"secondaryDetail",2),N$([zt({type:Boolean})],W$.prototype,"active",2),N$([zt({type:Number})],W$.prototype,"badgeNumber",2),N$([zt({type:Bo})],W$.prototype,"badgeSeverity",2),N$([zt({type:cf})],W$.prototype,"tagType",2),N$([zt({type:cf})],W$.prototype,"tagSeverity",2),N$([zt({type:z$})],W$.prototype,"options",2),N$([zt({type:H$})],W$.prototype,"messages",2);var V$=(e=>(e.Icon="icon",e.IconLarge="icon-large",e.Image="image",e.Checkbox="checkbox",e.Radio="radio",e.Badge="badge",e))(V$||{}),j$=(e=>(e.Link="link",e.Checkbox="checkbox",e.Radio="radio",e.Menu="menu",e.IconButton="icon-button",e.Switch="switch",e))(j$||{}),G$=Ve.createTranslation({UnnamedRadioGroup:{sv:"Radiolista",en:"Radio group"},ErrorAriaLabel:{sv:"Felmeddelande för {0}:",en:"Error message for {0}:"},PendingData:{sv:"Laddar innehåll.",en:"Loading item."}}),q$=class e{constructor(e=[],t=-1){this._modelChanged=-1,this._modelChanged=t,this._data=e}size(){return this._data.length}set(t,i,n){const o=t.map(e=>{if(!e||0===Object.keys(e).length)return{accessibilityLabel:G$.PendingData,changed:Date.now(),isPending:!0};const t=x_.generateAccessibilityLabel(e,i,this._getInternalListItemLeadingTypeFromListLeadingType(n));return{...e,accessibilityLabel:t,changed:Date.now(),isPending:!1,source:e}});return new e(o)}getAll(){return this._data}createRange(e){let t=this._data.slice(0,e);return t.length<e&&(t=[...t,...new Array(e-t.length).fill({accessibilityLabel:G$.PendingData,isPending:!0})]),t}checkItem(t,i){const n=this._data.findIndex(e=>e.itemId===t);if(-1===n)throw new Error(`Checked item in AcornList can't be found for itemId: '${t}'.`);const o=Date.now();return this._data[n]={...this._data[n],changed:o,checked:i},new e(this._data,o)}selectItem(t){if(-1===this._data.findIndex(e=>e.itemId===t))return void console.error(`Selected item in AcornList can't be found for itemId: ${t}.`);const i=Date.now(),n=this._data.map(e=>{const n=e.itemId===t||e.checked?i:e.changed;return{...e,checked:e.itemId===t,changed:n}});return new e(n,i)}hasCheckedItems(){return this._data.some(e=>e.checked)}hasActiveItems(){return this._data.some(e=>e.active)}getDiffToPrevious(){return this._data.filter(e=>e.changed===this._modelChanged).map(e=>({itemId:e.itemId,checked:e.checked}))}_getInternalListItemLeadingTypeFromListLeadingType(e){if(!e)return;const t=Object.values(U_).find(t=>t.toString()===e.toString());return t||void 0}},U$=`solid ${zi.Line.Regular.low} 1px`,K$={$host:{display:"block",outline:"none !important"},list:{listStyle:"none outside none",position:"relative",margin:0,padding:0},listItem:{position:"relative",borderTop:U$,marginTop:"-1px",backgroundClip:"padding-box","&:last-child":{borderBottom:U$},"&[highlight-on-hover]":{cursor:"pointer","&:hover":{backgroundColor:zi.Overlay.hover,borderColor:"transparent","& + li":{borderTopColor:"transparent"}},"& acorn-internal-list-item-link":{pointerEvents:"none"}},"&[aria-current=true]":{backgroundColor:zi.Overlay.active}},accessibilityLabel:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"},errorMessage:{color:zi.Text.error,display:"flex",gap:"8px",width:"100%",padding:"0 8px 16px",boxSizing:"border-box"},errorMessageIcon:{padding:"3px 0"}},Y$=class extends Ti{constructor(){super(),this.layout=G_.OneLine,this._dataModel=new q$,this._nameIncrementor="list-body-group-"+Y$._index++}focusItem(e){const t=this.shadowRoot.querySelectorAll("li")[e];
3135t&&(t.setAttribute("tabindex","-1"),t.focus())}getCurrentSize(){let e=this._dataModel.size();return this.minSize&&this.minSize>0&&(e=Math.max(e,this.minSize)),this.maxSize&&(e=Math.min(e,this.maxSize)),e}getTotalSize(){return Math.max(this._dataModel.size(),this.minSize||0)}getItemOffset(e){const t=this.shadowRoot.querySelectorAll("li")[e];return t?t.offsetTop:0}getItemsData(){return this._dataModel.getAll()}getVisibleItemsData(){const e=this.getCurrentSize();return this._dataModel.createRange(e)}getStyle(){return K$}render(){let e,t,i;return"radio"===this.leading||"radio"===this.trailing?(e="radiogroup",t="none",i=this.accessibilityLabel||G$.UnnamedRadioGroup):(e="list",t="listitem"),$`
3136            <ul
3137                class="${this.classes.list}"
3138                role="${j(e)}"
3139                aria-label="${j(i)}"
3140                @internalCheck="${this._onInternalListItemCheck}"
3141                @internalSelect="${this._onInternalListItemSelect}"
3142                @internalLink="${this._onInternalListItemLink}"
3143            >
3144                ${this.getVisibleItemsData().map(e=>$` <li
3145                            class="${this.classes.listItem}"
3146                            role="${j(t)}"
3147                            ?highlight-on-hover="${this._highlightOnHover(e)}"
3148                        >
3149                            <acorn-internal-list-item
3150                                layout="${this.layout}"
3151                                .accessibilityLabel="${e.accessibilityLabel}"
3152                                .label="${e.label}"
3153                                .subLabel="${e.subLabel}"
3154                                .value="${e.value}"
3155                                .subValue="${e.subValue}"
3156                                .detail="${e.detail}"
3157                                .secondaryDetail="${e.secondaryDetail}"
3158                                .tagLabel="${e.tagLabel}"
3159                                .tagType="${e.tagSeverity||e.tagType}"
3160                                .isPending="${e.isPending}"
3161                                .dimmed="${e.disabled}"
3162                            >
3163                                ${this._renderLeading(e)} ${this._renderTrailing(e)}
3164                                ${this._renderMessages(e)}
3165                            </acorn-internal-list-item>
3166                            ${this._renderItemActiveHandler(e)}
3167                        </li>`)}
3168            </ul>
3169        `}afterRender(){this._setItemsActiveState()}onDataChange(){this._dataModel=this._dataModel.set(this.data,this.layout,this.leading)}onItemRangeChange(){this._itemRangeChange.emit()}_highlightOnHover(e){return(!this.leading||!["radio","checkbox"].includes(this.leading))&&("link"===this.trailing&&!!e.link)}_renderLeading(e){switch(this.leading){case"icon":case"icon-large":return $`<acorn-internal-list-item-icon
3170                    slot="${g_.Leading}"
3171                    .size="${"icon-large"===this.leading?or:nr}"
3172                    .icon="${e.icon}"
3173                    .isPending="${e.isPending}"
3174                    .disabled="${e.disabled}"
3175                ></acorn-internal-list-item-icon>`;case"image":return $`<acorn-internal-list-item-image
3176                    slot="${g_.Leading}"
3177                    .imageSrc="${e.imageSrc}"
3178                    .isPending="${e.isPending}"
3179                ></acorn-internal-list-item-image>`;case"badge":return $`<acorn-internal-list-item-badge
3180                    slot="${g_.Leading}"
3181                    .isPending="${e.isPending}"
3182                    .number="${e.badgeNumber||void 0}"
3183                    .severity="${e.badgeSeverity}"
3184                ></acorn-internal-list-item-badge>`;case"checkbox":return $`<acorn-internal-list-item-checkbox
3185                    slot="${g_.Leading}"
3186                    .itemId="${e.itemId}"
3187                    .ariaLabel="${e.accessibilityLabel}"
3188                    .checked="${e.checked}"
3189                    .disabled="${e.disabled}"
3190                    .isPending="${e.isPending}"
3191                    .busy="${e.busy}"
3192                ></acorn-internal-list-item-checkbox>`;case"radio":const t=!e.disabled&&(e.checked||!this._dataModel.hasCheckedItems());return $`<acorn-internal-list-item-radio
3193                    slot="${g_.Leading}"
3194                    tabindex="${t?"0":"-1"}"
3195                    .itemId="${e.itemId}"
3196                    .ariaLabel="${e.accessibilityLabel}"
3197                    .checked="${e.checked}"
3198                    .disabled="${e.disabled}"
3199                    .isPending="${e.isPending}"
3200                    .busy="${e.busy}"
3201                ></acorn-internal-list-item-radio>`}}_renderTrailing(e){var t;switch(this.trailing){case"link":const i="checkbox"===this.leading||"radio"===this.leading?e.label:e.accessibilityLabel;return $`<acorn-internal-list-item-link
3202                    slot="${g_.Trailing}"
3203                    .itemId="${e.itemId}"
3204                    .ariaLabel="${i}"
3205                    .link="${e.link}"
3206                    .isPending="${e.isPending}"
3207                    .busy="${e.busy}"
3208                ></acorn-internal-list-item-link>`;case"icon-button":const n=null==(t=e.options)?void 0:t[0];return $`<acorn-internal-list-item-icon-button
3209                    slot="${g_.Trailing}"
3210                    .itemId="${e.itemId}"
3211                    .ariaLabel="${`${e.label}: ${null==n?void 0:n.label}`}"
3212                    .value="${null==n?void 0:n.value}"
3213                    .icon="${null==n?void 0:n.icon}"
3214                    .isPending="${e.isPending}"
3215                ></acorn-internal-list-item-icon-button>`;case"menu":return $`<acorn-internal-list-item-menu
3216                    slot="${g_.Trailing}"
3217                    .itemId="${e.itemId}"
3218                    .ariaLabel="${e.label}"
3219                    .options="${e.options}"
3220                    .isPending="${e.isPending}"
3221                ></acorn-internal-list-item-menu>`;case"switch":return $`<acorn-internal-list-item-switch
3222                    slot="${g_.Trailing}"
3223                    .itemId="${e.itemId}"
3224                    .ariaLabel="${e.accessibilityLabel}"
3225                    .checked="${e.checked}"
3226                    .disabled="${e.disabled}"
3227                    .isPending="${e.isPending}"
3228                    .busy="${e.busy}"
3229                ></acorn-internal-list-item-switch>`;case"checkbox":return $`<acorn-internal-list-item-checkbox
3230                    slot="${g_.Trailing}"
3231                    .itemId="${e.itemId}"
3232                    .ariaLabel="${e.accessibilityLabel}"
3233                    .checked="${e.checked}"
3234                    .disabled="${e.disabled}"
3235                    .isPending="${e.isPending}"
3236                    .busy="${e.busy}"
3237                ></acorn-internal-list-item-checkbox>`;case"radio":const o=e.checked||!this._dataModel.hasCheckedItems();return $`<acorn-internal-list-item-radio
3238                    slot="${g_.Trailing}"
3239                    tabindex="${o?"0":"-1"}"
3240                    .itemId="${e.itemId}"
3241                    .ariaLabel="${e.accessibilityLabel}"
3242                    .checked="${e.checked}"
3243                    .disabled="${e.disabled}"
3244                    .isPending="${e.isPending}"
3245                    .busy="${e.busy}"
3246                ></acorn-internal-list-item-radio>`}}_renderMessages(e){var t;if(!(null==(t=e.messages)?void 0:t.length))return null;const i=Ve.translate(G$.ErrorAriaLabel,e.label);return e.messages.map(e=>$`
3247                <div class="${this.classes.errorMessage}" slot="${g_.Message}">
3248                    <acorn-icon
3249                        class="${this.classes.errorMessageIcon}"
3250                        icon="${Zo.CircleExclamation}"
3251                        color="${Og.RedNegative}"
3252                        size="${Jo.Regular}"
3253                    ></acorn-icon>
3254                    <div>
3255                        <span class="${this.classes.accessibilityLabel}">${i}</span>
3256                        ${e.text}
3257                    </div>
3258                </div>
3259            `)}_renderItemActiveHandler(e){return this._dataModel.hasActiveItems()?$`<input type="radio" name="${this._nameIncrementor}" hidden .checked="${!!e.active}" />`:null}_setItemsActiveState(){[...this.shadowRoot.querySelectorAll(`.${this.classes.listItem}`)].forEach(e=>{e.removeAttribute("aria-current");const t=e.querySelector("input");t&&e.setAttribute("aria-current",t.checked?"true":"false")})}_onInternalListItemCheck(e){var t;try{switch(null==(t=e.target)?void 0:t.constructor){case W_:case P_:this._dataModel=this._dataModel.checkItem(e.detail.itemId,e.detail.checked);break;case H_:const t=this._dataModel.selectItem(e.detail.itemId);t&&(this._dataModel=t)}}catch(e){if(e instanceof Error)return void console.error(e.message)}this._change.emit({diff:this._dataModel.getDiffToPrevious()})}_onInternalListItemLink(e){this._itemLinkClick.emit({value:e.detail.link,itemId:e.detail.itemId}).defaultPrevented&&e.preventDefault()}_onInternalListItemSelect(e){this._selectOption.emit({itemId:e.detail.itemId,value:e.detail.value})}};Y$._index=0,N$([Mt(),zt({type:[W$,z$,H$]})],Y$.prototype,"data",2),N$([gt(),zt({type:G_})],Y$.prototype,"layout",2),N$([gt(),zt({type:V$})],Y$.prototype,"leading",2),N$([gt(),zt({type:j$})],Y$.prototype,"trailing",2),N$([gt()],Y$.prototype,"accessibilityLabel",2),N$([gt(),zt({type:Number})],Y$.prototype,"maxSize",2),N$([gt(),zt({type:Number})],Y$.prototype,"minSize",2),N$([ft()],Y$.prototype,"_change",2),N$([ft()],Y$.prototype,"_itemRangeChange",2),N$([ft({cancelable:!0})],Y$.prototype,"_itemLinkClick",2),N$([ft()],Y$.prototype,"_selectOption",2),N$([Ht()],Y$.prototype,"_dataModel",2),N$([wi("data")],Y$.prototype,"onDataChange",1),N$([wi("data"),wi("minSize")],Y$.prototype,"onItemRangeChange",1),N$([Pe()],Y$.prototype,"_onInternalListItemCheck",1),N$([Pe()],Y$.prototype,"_onInternalListItemLink",1),N$([Pe()],Y$.prototype,"_onInternalListItemSelect",1),Y$=N$([_t({tag:"acorn-list-body"})],Y$);var X$={$host:{display:"block",outline:"none !important"},wrapper:{display:"flex",alignItems:"center",gap:"24px"},heading:{...Yn(),flex:"1 1 auto",color:zi.Text.Regular.high,padding:"10px 0",margin:"0"},subHeading:{...Wn(),color:zi.Text.Regular.high,textAlign:"right"},accessibilitySubHeading:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"}},Q$=class extends Ti{constructor(){super(...arguments),this.headingLevel=5}getStyle(){return X$}
3259render(){if(this.heading||this.text)return $`<div class="${this.classes.wrapper}">${this._renderHeading()} ${this._renderMetaContainer()}</div>`}onMenuSlotChange(){this.menuSlot.isFilled()&&(this.menuSlot.content.overlayAlignment=Nl.Right)}_renderMetaContainer(){return this.subHeading?$`<div aria-hidden="true" class="${this.classes.subHeading}">
3260                ${Ni.from(this.subHeading)}
3261            </div>`:this.textButtonSlot.isFilled()?$`${this.textButtonSlot}`:this.menuSlot.isFilled()?$`${this.menuSlot}`:void 0}_renderHeading(){const e=Ni.from(this.subHeading).accessibilityText,t=$`<span>${this.heading||this.text}</span> ${e.trim()?$`<span class="${this.classes.accessibilitySubHeading}">:&nbsp;${e}</span>`:null}`;switch(this.headingLevel){case 3:return $`<h3 class="${this.classes.heading}">${t}</h3>`;case 4:return $`<h4 class="${this.classes.heading}">${t}</h4>`;case 5:return $`<h5 class="${this.classes.heading}">${t}</h5>`;case 6:return $`<h6 class="${this.classes.heading}">${t}</h6>`;default:return}}};N$([gt()],Q$.prototype,"text",2),N$([gt()],Q$.prototype,"heading",2),N$([gt(),zt({type:Number})],Q$.prototype,"headingLevel",2),N$([gt()],Q$.prototype,"subHeading",2),N$([ri("menu",{selectSingleType:[jg.config.type],strict:!0}),Ht()],Q$.prototype,"menuSlot",2),N$([ri("text-button",{selectSingleType:[rp.config.type],strict:!0}),Ht()],Q$.prototype,"textButtonSlot",2),N$([wi("menuSlot")],Q$.prototype,"onMenuSlotChange",1),Q$=N$([_t({tag:"acorn-list-header"})],Q$);var Z$={$host:{display:"block",outline:"none !important"}},J$=class extends Ti{constructor(){super(...arguments),this.limit=Number.MAX_VALUE,this.isExpanded=!1}getStyle(){return Z$}render(){return $`
3262            <acorn-show-more-button ?has-more="${!this.isExpanded}" @more="${this._onMore}" @less="${this._onLess}">
3263            </acorn-show-more-button>
3264        `}executeListExpandTransition(e){this._transitionExpandBegin.emit(),e.start(),this.collapseExpand.goTo("start"),this.collapseExpand.transitionTo("end",e).then(()=>{e.finish(),this._transitionExpandComplete.emit()})}executeListCollapseTransition(e){this._transitionCollapseBegin.emit(),e.start(),this.collapseExpand.goTo("end"),this.collapseExpand.transitionTo("start",e).then(()=>{e.finish(),this._transitionCollapseComplete.emit()})}onRangeChange(){this._itemRangeChange.emit()}collapseExpandFrame(e){e.details.execute(e.elapsed)}_onMore(){this.isExpanded=!0,this._more.emit()}_onLess(){this.isExpanded=!1,this._less.emit()}};N$([gt(),zt({type:Number})],J$.prototype,"limit",2),N$([Ht()],J$.prototype,"isExpanded",2),N$([hi({duration:"0.35s",ease:"easeInOut"})],J$.prototype,"collapseExpand",2),N$([ft()],J$.prototype,"_itemRangeChange",2),N$([ft()],J$.prototype,"_more",2),N$([ft()],J$.prototype,"_less",2),N$([ft()],J$.prototype,"_transitionExpandBegin",2),N$([ft()],J$.prototype,"_transitionCollapseBegin",2),N$([ft()],J$.prototype,"_transitionExpandComplete",2),N$([ft()],J$.prototype,"_transitionCollapseComplete",2),N$([Pe()],J$.prototype,"executeListExpandTransition",1),N$([Pe()],J$.prototype,"executeListCollapseTransition",1),N$([wi("limit")],J$.prototype,"onRangeChange",1),N$([Wt("collapseExpand")],J$.prototype,"collapseExpandFrame",1),N$([Pe()],J$.prototype,"_onMore",1),N$([Pe()],J$.prototype,"_onLess",1),J$=N$([_t({tag:"acorn-list-item-loader"})],J$);var ek={legacyItemLoader:{display:function(e){return e.isExpandable?"block":"none"}}},tk=class extends Ti{constructor(){super(...arguments),this.limit=Number.MAX_SAFE_INTEGER,this.placeholderHeight=56,this._numDisplayedItems=Number.MAX_SAFE_INTEGER}get isExpandable(){return this.limit<this.numTotalItems}get hasMore(){return this.numHiddenItems>0}get numTotalItems(){return Math.max(this._itemSlot.length,this.listSize||0)}get numDisplayedItems(){return this._numDisplayedItems}get numHiddenItems(){return this.numTotalItems-this.numDisplayedItems}getStyle(){return ek}renderBodyDefault(){const e=this._itemSlot.map(e=>{const t=e[0];return t.slot=t.name,t.slot});return $`<acorn-list-legacy-body
3265            .slotNames="${e}"
3266            .minSize="${j(this.listSize||void 0)}"
3267            .placeholderHeight="${this.placeholderHeight}"
3268        >
3269            ${this._itemSlot}
3270        </acorn-list-legacy-body>`}
3270renderItemLoader(){if(this.limit||this.listSize)return $`<acorn-list-item-loader
3271            .limit="${this.limit}"
3272            class="${this.classes.legacyItemLoader}"
3273            @transitionExpandBegin="${this._expandStart.emit}"
3274            @transitionExpandComplete="${this._expandEnd.emit}"
3275            @transitionCollapseBegin="${this._collapseStart.emit}"
3276            @transitionCollapseComplete="${this._collapseEnd.emit}"
3277        ></acorn-list-item-loader>`}onLimit(e){0===e||e||(this.limit=Number.MAX_SAFE_INTEGER),this._numDisplayedItems=this.limit}};N$([gt(),zt({type:Ge})],tk.prototype,"listSize",2),N$([gt({fromAttribute:e=>{let t=Number.MAX_SAFE_INTEGER;return null!==e&&(t=parseInt(e),(isNaN(t)||t<0)&&(t=Number.MAX_SAFE_INTEGER)),t}}),zt({type:Number})],tk.prototype,"limit",2),N$([gt(),zt({type:Number})],tk.prototype,"placeholderHeight",2),N$([ft()],tk.prototype,"_expandStart",2),N$([ft()],tk.prototype,"_collapseStart",2),N$([ft()],tk.prototype,"_expandEnd",2),N$([ft()],tk.prototype,"_collapseEnd",2),N$([Ht()],tk.prototype,"_numDisplayedItems",2),N$([ri("item",{selectAll:"*:not(acorn-list-summary):not(acorn-list-header):not(acorn-list-body):not(acorn-list-item-loader)",spread:!0}),Ht()],tk.prototype,"_itemSlot",2),N$([wi("limit",{triggerOn:pi.ChangeAndConnect})],tk.prototype,"onLimit",1);var ik={$host:{display:"block",...Ln(Dn.Medium)},$$slotted:{"&(acorn-list-item-loader)":{display:function(e){return e._isExpandable()?"block":"none"}}},...ek},nk=Ve.createTranslation({SummaryLabel:{sv:"Summering",en:"Summary"}}),ok={$host:{display:"block",outline:"none !important"},wrapper:{padding:"10px 8px",display:"flex",justifyContent:"space-between",margin:"0",gap:"16px"},label:{...Vn(),color:zi.Text.Regular.high},value:{...Vn(),color:zi.Text.Regular.high,textAlign:"right"},accessibilityValueLabel:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"}},rk=class extends Ti{getStyle(){return ok}render(){const e=Ni.from(this.value||this.summation);return $`<div class="${this.classes.wrapper}">
3278            <div>
3279                <span class="${this.classes.label}">${this.label||this.text||nk.SummaryLabel}</span>
3280                <span class="${this.classes.accessibilityValueLabel}">:&nbsp;${null==e?void 0:e.accessibilityText}</span>
3281            </div>
3282            <div class="${this.classes.value}" aria-hidden="true">${e}</div>
3283        </div>`}};N$([gt()],rk.prototype,"text",2),N$([gt()],rk.prototype,"summation",2),N$([gt()],rk.prototype,"label",2),N$([gt()],rk.prototype,"value",2),rk=N$([_t({tag:"acorn-list-summary"})],rk);var ak=class{constructor(e,t){this._bodyContext=e,this._itemLoader=t}start(){this._initialHeight=this._bodyContext.scrollHeight,this._collapsedSize=this._itemLoader.limit,this._collapsedHeight=this._bodyContext.getItemOffset(this._collapsedSize),this._bodyContext.style.cssText=`\n            height:${this._initialHeight}px;\n            overflow:hidden;\n        `}execute(e){const t=this._initialHeight*(1-e)+this._collapsedHeight*e;this._bodyContext.style.height=`${t+1}px`}finish(){this._bodyContext.style.cssText="\n            height:unset;\n            overflow:unset;\n        ",this._collapsedSize&&(this._bodyContext.maxSize=this._collapsedSize)}},sk=class{constructor(e){this._bodyContext=e}start(){this._collapsedSize=this._bodyContext.getCurrentSize(),this._collapsedHeight=this._bodyContext.scrollHeight,this._bodyContext.maxSize=this._bodyContext.getTotalSize(),this._bodyContext.style.cssText=`\n            height:${this._collapsedHeight}px;\n            overflow:hidden;\n        `}execute(e){const t=this._bodyContext.scrollHeight,i=this._collapsedHeight*(1-e)+t*e;this._bodyContext.style.height=`${i+1}px`}finish(){this._bodyContext.style.cssText="\n            height:unset;\n            overflow:unset;\n        ",this._collapsedSize&&this._bodyContext.focusItem(this._collapsedSize)}},lk=class extends tk{render(){return $`
3284            ${this._headerSlot} ${this._bodySlot.default(super.renderBodyDefault())} ${this._summarySlot}
3285            ${this._itemLoaderSlot.default(super.renderItemLoader())}
3286        `}getStyle(){return ik}_isExpandable(){var e,t;if(super.isExpandable)return!0;return((null==(e=this._itemLoaderSlot.content)?void 0:e.limit)||Number.MAX_SAFE_INTEGER)<((null==(t=this._bodySlot.content)?void 0:t.getTotalSize())||0)}afterRender(){this._itemLoaderSlot.content&&(this._itemLoaderSlot.content.addEventListener("more",this._onItemLoaderMore),this._itemLoaderSlot.content.addEventListener("less",this._onItemLoaderLess),this._itemLoaderSlot.content.addEventListener("itemRangeChange",this._onInvalidItemRange),this._bodySlot.content&&(this._bodySlot.content.addEventListener("itemRangeChange",this._onInvalidItemRange),this._onInvalidItemRange()))}_onInvalidItemRange(){this._bodySlot&&this._itemLoaderSlot&&this._bodySlot.content&&this._itemLoaderSlot.content&&(this._itemLoaderSlot.content.isExpanded?this._bodySlot.content.getCurrentSize()<this._bodySlot.content.getTotalSize()&&(this._itemLoaderSlot.content.isExpanded=!1):this._bodySlot.content.maxSize=this._itemLoaderSlot.content.limit,this.invalidateStyle())}_onItemLoaderMore(e){e.target.executeListExpandTransition(new sk(this._bodySlot.content))}_onItemLoaderLess(e){e.target.executeListCollapseTransition(new ak(this._bodySlot.content,e.target))}};function ck(e){return`solid ${zi.Line.Regular.low} ${e}px`}N$([ri("body",{selectSingleType:[Y$.config.type]})],lk.prototype,"_bodySlot",2),N$([ri("item-loader",{selectSingleType:J$.config.type})],lk.prototype,"_itemLoaderSlot",2),N$([ri("header",{selectSingleType:Q$.config.type})],lk.prototype,"_headerSlot",2),N$([ri("summary",{selectSingleType:rk.config.type})],lk.prototype,"_summarySlot",2),N$([Pe()],lk.prototype,"_onInvalidItemRange",1),N$([Pe()],lk.prototype,"_onItemLoaderMore",1),N$([Pe()],lk.prototype,"_onItemLoaderLess",1),lk=N$([_t({tag:"acorn-list"})],lk);var dk={$host:{display:"block"},list:{listStyle:"none outside none",position:"relative",margin:0,padding:0},listItem:{borderBottom:ck(1),"&:first-of-type":{borderTop:ck(1)}},placeholder:{minHeight:e=>`${e.placeholderHeight}px`,display:"flex",alignItems:"center",width:"100%",borderBottom:ck(1)}},hk=class extends Ti{constructor(){super(...arguments),this.slotNames=[],this.placeholderHeight=56}focusItem(e){const t=this.shadowRoot.querySelectorAll("li")[e];t&&(t.setAttribute("tabindex","-1"),t.focus())}getCurrentSize(){let e=this.slotNames.length;return this.minSize&&this.minSize>0&&(e=Math.max(e,this.minSize)),this.maxSize&&(e=Math.min(e,this.maxSize)),e}getTotalSize(){return Math.max(this.slotNames.length,this.minSize||0)}getItemOffset(e){const t=this.shadowRoot.querySelectorAll("li")[e];return t?t.offsetTop:0}getStyle(){return dk}render(){const e=this.getCurrentSize(),t=Math.min(e,this.slotNames.length),i=Math.max(0,e-this.slotNames.length),n=this.slotNames.slice(0,t);return $`
3287            <div>
3288                <ul class="${this.classes.list}">
3289                    ${n.map(e=>$` <li class="${this.classes.listItem}">
3290                                <slot name="${e}"></slot>
3291                            </li>`)}
3292                    ${new Array(i).fill("undefined").map(()=>$`
3293                            <li class="${this.classes.listItem}">
3294                                <div class="${this.classes.placeholder}">
3295                                    <acorn-list-internal-pending></acorn-list-internal-pending>
3296                                </div>
3297                            </li>
3298                        `)}
3299                </ul>
3300            </div>
3301        `}onItemRangeChange(){this._itemRangeChange.emit()}};N$([Ht()],hk.prototype,"maxSize",2),N$([Ht()],hk.prototype,"minSize",2),N$([Ht()],hk.prototype,"slotNames",2),N$([Ht()],hk.prototype,"placeholderHeight",2),N$([ft()],hk.prototype,"_itemRangeChange",2),N$([wi("minSize")],hk.prototype,"onItemRangeChange",1),hk=N$([_t({tag:"acorn-list-legacy-body"})],hk);var pk=Object.defineProperty,uk=Object.getOwnPropertyDescriptor,gk=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?uk(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&pk(t,i,r),r},mk=(e=>(e.Internal="internal",e.External="external",e))(mk||{}),bk=Ve.createTranslation({LoadingMessage:{sv:"Laddar",en:"Loading"},BadgePrefix:{sv:"Emblem",en:"Badge"},Checked:{sv:"Markerad",en:"Checked"},InactiveLink:{sv:"Inaktiv länk",en:"Inactive link"}
3301,ExternalLink:{sv:"Extern länk",en:"External link"}});function vk(e){return t=>"top"===e?t._siblingGroup.hasPrevious()?Rn(Dn.Small,vn.Medium):Rn(Dn.Medium,vn.Medium):t._siblingGroup.hasNext()?Fn(Dn.Small,vn.Medium):Fn(Dn.Medium,vn.Medium)}var yk={$host:{display:"block",pointerEvents:e=>e._isInteractable?"auto":"none",marginTop:vk("top"),marginBottom:vk("bottom"),borderRadius:"28px"},$$slotted:{'&([slot="before"])':{display:"flex",marginRight:"8px",opacity:e=>e.disabled?"0.4":"1","--acorn-icon-color":Dg[Og.Turquoise]},'&([slot="after"])':{display:"flex",marginRight:"8px",opacity:e=>e.disabled?"0.4":"1"}},wrapper:{backgroundColor:function(e){return e.disabled?zi.Surface.disabled:zi.ComponentSpecific.ProminentLink.surface},borderRadius:"28px",minHeight:"56px",boxSizing:"border-box",display:"flex",flexDirection:"row",justifyContent:"flex-start",alignContent:"stretch",alignItems:"center",width:"100%",padding:"8px 20px 8px 24px",color:function(e){return e.disabled?zi.Text.disabled:zi.Text.interactive},fontFamily:Cn.Base,fontWeight:$n.Bold,fontSize:kn(16),lineHeight:kn(22),pointerEvents:e=>e._isInteractable?"auto":"none",cursor:e=>e._isInteractable?"pointer":"not-allowed","&:hover":{"--internal-text-decoration":"underline"}},accessibilityLabel:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"},content:{flex:"1 1 100%",paddingRight:"8px",paddingLeft:e=>e._beforeSlot.isFilled()?"8px":"0"},leadingIcon:{marginRight:"16px"},leadingBadge:{marginRight:"16px"},label:{textDecoration:"var(--internal-text-decoration, none)",textDecorationThickness:"2px",textUnderlineOffset:"3px",wordBreak:"break-word"},checkIcon:{display:"flex",margin:"0 8px"},linkIcon:{display:"flex"},busyIcon:{...yo(20,zi.Icon.interactive),margin:"4px"},screenReaderOnly:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"}},_k=class extends Ti{constructor(){super(),this.label="",this.accessibilityLabel="",this.badgeSeverity=Bo.Default,this.busy=!1,this.disabled=!1,this.type="internal",this.checked=!1,super.addEventListener("keydown",this._onKeyDown),super.addEventListener("click",this._onClick)}get _isInteractable(){return!this.disabled&&!this.busy}get _resolvedLinkType(){return this.target&&"_blank"===this.target?"external":this.type}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this._updateInternals()}render(){const e=this._getAccessibilityLabel();return $`
3302            <div class="${this.classes.accessibilityLabel}">${e||""}</div>
3303            <div aria-hidden="${j(e?"true":void 0)}" class="${this.classes.wrapper}">
3304                ${this._renderBefore()}
3305                <div class="${this.classes.content}">${this._renderLabel()}</div>
3306                ${this._renderAfter()} ${this._renderArrow()}
3307            </div>
3308        `}getStyle(){return yk}onDisabledChanged(){this._updateInternals()}_renderBefore(){return isNaN(this.badgeNumber)?this.icon?$`
3309                <acorn-internal-icon
3310                    icon="${this.icon}"
3311                    size="${Jo.Regular}"
3312                    color="${this._iconColor(zi.Icon.interactive)}"
3313                    class="${this.classes.leadingIcon}"
3314                >
3315                </acorn-internal-icon>
3316            `:this._beforeSlot.isFilled()?$`${this._beforeSlot}`:void 0:$`
3317                <acorn-badge
3318                    number="${this.badgeNumber}"
3319                    severity="${j(this.badgeSeverity)}"
3320                    class="${this.classes.leadingBadge}"
3321                    align="none"
3322                >
3323                </acorn-badge>
3324            `}_renderLabel(){return $`<div class="${this.classes.label}">${this.label||$`<slot></slot>`}</div>`}_renderAfter(){return this.checked?$`
3325                <acorn-internal-icon
3326                    class="${this.classes.checkIcon}"
3327                    icon="${Zo.CircleCheckmark}"
3328                    color="${this._iconColor(zi.Icon.interactive)}"
3329                    size="${Jo.Small}"
3330                >
3331                </acorn-internal-icon>
3332            `:this._afterSlot.isFilled()?$`${this._afterSlot}
3332`:void 0}_renderArrow(){if(this.busy)return $`<span class="${this.classes.busyIcon}"></span>`;const e="external"===this._resolvedLinkType?Zo.ArrowUpRightFromSquare:Zo.CaretRight;return $`
3333            <acorn-internal-icon
3334                icon="${e}"
3335                class="${this.classes.linkIcon}"
3336                color="${this._iconColor(zi.Icon.interactive)}"
3337                size="${Jo.Regular}"
3338            >
3339            </acorn-internal-icon>
3340        `}_iconColor(e){return this.disabled?zi.Icon.disabled:e}_onKeyDown(e){!this._isInteractable||e.key!==ye.Enter&&e.key!==ye.Space||this.click()}_onClick(e){if(Ue.addEvent(e),!this._isInteractable)return;const t="external"===this._resolvedLinkType?"_blank":"_self",i=this._navigation.emit({href:this.href,target:t});this.href&&!i.defaultPrevented&&("_blank"===t?window.open(this.href):window.location.href=this.href)}_updateInternals(){if(this.disabled)return this.removeAttribute("tabindex"),void this.removeAttribute("role");this.setAttribute("tabindex","0"),this.setAttribute("role","link")}_getAccessibilityLabel(){var e;if(this.accessibilityLabel)return this.accessibilityLabel;if(!this.label&&this._defaultSlot.isFilled())return(null==(e=this.textContent)?void 0:e.trim())||"";const t=[this.label,this.icon?this.iconAlt:void 0,this.checked?this.checkedAccessibilityLabel||`${bk.Checked}`:void 0,this.badgeNumber?`${bk.BadgePrefix}: ${this.badgeNumber}`:void 0].map(e=>e).join(", ");return this.disabled?`${bk.InactiveLink}: ${t}`:"external"===this._resolvedLinkType?`${bk.ExternalLink}: ${t}`:t}};gk([gt()],_k.prototype,"label",2),gk([gt()],_k.prototype,"accessibilityLabel",2),gk([gt(),zt({type:Zo})],_k.prototype,"icon",2),gk([gt()],_k.prototype,"iconAlt",2),gk([gt(),zt({type:Number})],_k.prototype,"badgeNumber",2),gk([gt(),zt({type:Bo})],_k.prototype,"badgeSeverity",2),gk([gt(),zt({type:Boolean})],_k.prototype,"busy",2),gk([gt(),zt({type:Boolean})],_k.prototype,"disabled",2),gk([gt()],_k.prototype,"href",2),gk([gt()],_k.prototype,"target",2),gk([gt(),zt({type:mk})],_k.prototype,"type",2),gk([gt(),zt({type:Boolean})],_k.prototype,"checked",2),gk([gt(),zt({type:String})],_k.prototype,"checkedAccessibilityLabel",2),gk([Kt()],_k.prototype,"_siblingGroup",2),gk([ri("before")],_k.prototype,"_beforeSlot",2),gk([ri("after")],_k.prototype,"_afterSlot",2),gk([ri("default")],_k.prototype,"_defaultSlot",2),gk([ft({cancelable:!0})],_k.prototype,"_navigation",2),gk([wi("disabled")],_k.prototype,"onDisabledChanged",1),_k=gk([_t({tag:"acorn-prominent-link",alias:["acorn-link-button"]})],_k);var fk={$host:{display:"block",margin:`${Dn.Medium}px 0`},$$slotted:{'&([slot="prominent-link"])':{marginTop:kn(Dn.Small),marginBottom:kn(Dn.Small)}}},xk=class extends Ti{render(){return $`${this._linkButtonSlot}`}getStyle(){return fk}};gk([ri("prominent-link",{selectAllTypes:[_k.config.type],strict:!0})],xk.prototype,"_linkButtonSlot",2),xk=gk([_t({tag:"acorn-prominent-link-group"})],xk);var wk=Object.defineProperty,Ck=Object.getOwnPropertyDescriptor,Sk=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Ck(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&wk(t,i,r),r},$k={display:"block",...ko(zi.Text.Regular.medium)},kk={$host:{display:"block"},wrapper:{whiteSpace:"nowrap",pageBreakInside:"avoid",display:"flex",flexDirection:"row",justifyContent:"space-between",alignContent:"stretch",alignItems:"stretch"},$$slotted:{'&([slot="label"])':So(zi.Text.Regular.high),'&([slot="value"])':So(zi.Text.Regular.high),'&([slot="label-detail"])':$k,'&([slot="value-detail"])':$k},valueColumn:{flex:"1 0 auto",display:"flex",flexDirection:"column",minWidth:"0px",textAlign:"right",paddingLeft:vn.Medium,alignContent:e=>e._valueDetailSlot.isFilled()?void 0:"flex-end",alignItems:e=>e._valueDetailSlot.isFilled()?void 0:"flex-end",justifyContent:e=>e._valueDetailSlot.isFilled()?void 0:"center"},labelColumn:{flex:"1 1 auto",display:"flex",flexDirection:"column",minWidth:"0px",overflow:"hidden",alignContent:e=>e._labelDetailSlot.isFilled()?void 0:"flex-start",alignItems:e=>e._labelDetailSlot.isFilled()?void 0:"flex-start",justifyContent:e=>e._labelDetailSlot.isFilled()?void 0:"center"},label:{maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},Ek=class extends Ti{render(){return $`
3341            <div class="${this.classes.wrapper}">
3342                <div class="${this.classes.labelColumn}">
3343                    <div class="${this.classes.label}"><slot name="label"></slot></div>
3344                    ${this._labelDetailSlot}
3345                </div>
3346                <div class="${this.classes.valueColumn}">
3347                    <div><slot name="value"></slot></div>
3348                    ${this._valueDetailSlot}
3349                </div>
3350            </div>
3351        `}getStyle(){return kk}};Sk([Ht(),ri("label-detail")],Ek.prototype,"_labelDetailSlot",2),Sk([Ht(),ri("value-detail")],Ek.prototype,"_valueDetailSlot",2),Ek=Sk([_t({tag:"acorn-lvd"})],Ek);var Tk=(e=>(e.Error="error",e.Info="info",e.Neutral="neutral",e.Success="success",e.Warning="warning",e))(Tk||{}),Ik=(zi.Surface.attention,zi.Surface.attentionContrastInverted,zi.Surface.attention,zi.Surface.warning,zi.Surface.warningContrastInverted,zi.Surface.warning,zi.Surface.success,zi.Surface.successContrastInverted,zi.Surface.success,zi.Surface.info,zi.Surface.infoContrastInverted,zi.Surface.info,zi.Surface.neutralContrastInverted,Zo.CircleExclamation,Zo.TriangleExclamation,Zo.
3351CircleCheckmark,Zo.CircleInfo,Object.defineProperty),Ok=Object.getOwnPropertyDescriptor,Dk=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Ok(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Ik(t,i,r),r};var Rk={$host:{outline:"0 !important"},popover:{[fo.HasTheme]:xo.False,display:"none",position:"fixed",margin:"24px 24px auto auto",marginTop:function(e){return`calc(${e._offsetTop}px + var(--acorn-notification-offset-top, 0px))`},width:"300px",border:0,padding:0,boxShadow:`1px 1px 10px 0px ${zi.Shadow.default}`,zIndex:1e3,"&.enter":{display:"block","&.animating":{animation:"notificationenter",animationDuration:ai.isRunningTests?"0s":"0.15s",animationTimingFunction:"ease-in"}},"&.exit":{display:"block","&.animating":{animation:"notificationexit",animationDuration:ai.isRunningTests?"0s":"0.15s",animationTimingFunction:"ease-out"}},"@keyframes notificationenter":"\n            0% {\n                transform: translateX(300px);\n                opacity: 0;\n            }\n            100% {\n                transform: translateX(0);\n                opacity: 1;\n            }\n        ","@keyframes notificationexit":"\n            0% {\n                transform: translateX(0);\n                opacity: 1;\n            }\n            100% {\n                transform: translateX(300px);\n                opacity: 0;\n            }\n        "},message:{margin:0},accessibilityMessage:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"}},Fk="accessibilityMessage",Lk=[],Ak=new WeakMap;var Mk=class extends Ti{constructor(){super(...arguments),this.severity=Tk.Neutral,this.open=!0}get _offsetTop(){return Ak.get(this)||24}get _popoverElement(){return this.shadowRoot.getElementById("popover")}get _accessibilityMessageElement(){return this.shadowRoot.getElementById(Fk)}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),Lk.push(this)}disconnectedCallback(){var e;this.open=!1,null==(e=this._focusObserver)||e.call(this),Lk=Lk.filter(e=>e!==this)}getStyle(){return Rk}getDialogHeight(){var e;return(null==(e=this._popoverElement)?void 0:e.offsetHeight)||0}render(){return $`
3352            <div
3353                id="popover"
3354                popover="manual"
3355                tabindex="-1"
3356                class="${this.classes.popover}"
3357                @click="${this._onPopoverClick}"
3358                @animationend="${this._onEnterLeaveComplete}"
3359            >
3360                ${this.open?$`
3361                          <acorn-alert-message
3362                              dismissible
3363                              class="${this.classes.message}"
3364                              severity="${this.severity}"
3365                              heading="${j(this.heading)}"
3366                              @dismiss="${this._onDismiss}"
3367                          >
3368                              <acorn-alert-message-body>${this.message}</acorn-alert-message-body>
3369                          </acorn-alert-message>
3370                      `:null}
3371            </div>
3372            <p class="${this.classes.accessibilityMessage}" role="status" id="${Fk}"></p>
3373        `}afterInitialRender(){this.rendered=!0,this.open&&this.onOpenChanged()}close(){this.open=!1}onOpenChanged(){var e,t,i;this.rendered&&(this.open?(this._focusObserver=Qe.onFocusChange(this._onDocumentFocusChange),this._updateStack(),null==(t=null==(e=this._popoverElement)?void 0:e.showPopover)||t.call(e),this._popoverElement.classList.remove("exit"),this._popoverElement.classList.add("enter")):(null==(i=this._focusObserver)||i.call(this),this._popoverElement.classList.remove("enter"),this._popoverElement.classList.add("exit")),this._popoverElement.classList.add("animating"))}onTitleChange(){this.title&&(this.heading=this.title)}_onDocumentFocusChange(e){e.some(e=>e instanceof Mk)||this.close()}_onPopoverClick(){this._popoverElement.focus()}_onDismiss(e){e.preventDefault(),e.stopPropagation(),this.close()}_onEnterLeaveComplete(e){var t,i;switch(this._popoverElement.classList.remove("animating"),e.animationName){case"notificationenter":this._open.emit();const e=[this.heading,this.message].filter(e=>e).join(". ");this._setAccessibilityMessage(e);break;case"notificationexit":null==(i=null==(t=this._popoverElement)?void 0:t.hidePopover)||i.call(t),this._popoverElement.classList.remove("exit"),this._dismiss.emit(),this._setAccessibilityMessage("")}}_setAccessibilityMessage(e){this._accessibilityMessageElement.textContent=e}_updateStack(){Lk.sort((e,t)=>
3373t===this?-1:0),Lk.filter(e=>e.open).reduce((e,t)=>(Ak.set(t,e),t.invalidateStyle(),t.getDialogHeight()+e+24),24)}};Dk([gt()],Mk.prototype,"title",2),Dk([gt()],Mk.prototype,"heading",2),Dk([gt()],Mk.prototype,"message",2),Dk([gt(),zt({type:Tk})],Mk.prototype,"severity",2),Dk([ft()],Mk.prototype,"_open",2),Dk([ft()],Mk.prototype,"_dismiss",2),Dk([Pe()],Mk.prototype,"close",1),Dk([wi("open")],Mk.prototype,"onOpenChanged",1),Dk([wi("title",{triggerOn:pi.ChangeAndConnect})],Mk.prototype,"onTitleChange",1),Dk([Pe()],Mk.prototype,"_onDocumentFocusChange",1),Dk([Pe()],Mk.prototype,"_onPopoverClick",1),Dk([Pe()],Mk.prototype,"_onDismiss",1),Dk([Pe()],Mk.prototype,"_onEnterLeaveComplete",1),Mk=Dk([_t({tag:"acorn-notification"})],Mk);var Bk=(e=>(e.OffsetTop="--acorn-notification-offset-top",e))(Bk||{}),Pk=Object.defineProperty,Nk=Object.getOwnPropertyDescriptor,Hk=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Nk(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Pk(t,i,r),r},zk=Ve.createTranslation({Offline:{sv:"Nätverksfel. Internetanslutningen verkar vara nedkopplad.",en:"Network error. The internet connection seems to be offline."},Online:{sv:"Internetanslutningen har återställts.",en:"The internet connection is restored."},OfflineBusyMessage:{sv:"Väntar på internetkoppling.",en:"Waiting for internet connection."}}),Wk=class extends Ti{constructor(){super(),this.isOffline=!1,this._offlineMessage=null,window.addEventListener("online",this._onNetworkStatusChange,!1),window.addEventListener("offline",this._onNetworkStatusChange,!1)}disconnectedCallback(){window.removeEventListener("online",this._onNetworkStatusChange,!1),window.removeEventListener("offline",this._onNetworkStatusChange,!1)}render(){return $`
3374            ${this.isOffline?$` <acorn-busy-cloak message="${zk.OfflineBusyMessage}"></acorn-busy-cloak> `:null}
3375        `}_onNetworkStatusChange(e){"online"===e.type?(this.isOffline=!1,this._sendOnlineNotification()):(this.isOffline=!0,this._sendOfflineNotification())}_sendOfflineNotification(){this._clearMessages(),this._offlineMessage=document.createElement(Mk.config.tag),this._offlineMessage.title=zk.Offline,this._offlineMessage.severity=Tk.Error,this.appendChild(this._offlineMessage)}_sendOnlineNotification(){this._clearMessages();const e=document.createElement(Mk.config.tag);e.title=zk.Online,e.severity=Tk.Success,this.appendChild(e)}_clearMessages(){this._offlineMessage&&(this.removeChild(this._offlineMessage),this._offlineMessage=null)}};Hk([Ht()],Wk.prototype,"isOffline",2),Hk([Pe()],Wk.prototype,"_onNetworkStatusChange",1),Wk=Hk([_t({tag:"acorn-network-status"})],Wk);var Vk="--acorn-dialog-page-offset",jk="--acorn-page-detail-offset-top",Gk=(e=>(e.Right="right",e.Bottom="bottom",e))(Gk||{}),qk=(e=>(e.PageDetailOpen="pageDetailOpen",e.PageDetailClose="pageDetailClose",e.PageDetailOpenComplete="pageDetailOpenComplete",e.PageDetailCloseComplete="pageDetailCloseComplete",e.PageDetailContentChange="pageDetailContentChange",e.Close="close",e.Back="back",e))(qk||{}),Uk=Object.defineProperty,Kk=Object.getOwnPropertyDescriptor,Yk=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?Kk(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&Uk(t,i,r),r},Xk={$host:{display:"block",height:"100%",maxWidth:e=>
3375`${e.width}px`,minWidth:e=>`min(${e.width}px, 100vw)`},scrollpane:{height:"inherit",boxSizing:"content-box",borderRight:`1px solid ${zi.Line.Regular.low}`}},Qk=class extends Ti{constructor(){super(...arguments),this.width=235,this.layoutCollapsed=!1,this.open=!1}connectedCallback(){var e;this.setAttribute("slot","sidebar"),null==(e=super.connectedCallback)||e.call(this)}getStyle(){return Xk}render(){return this.layoutCollapsed?this._renderNarrow():this._renderWide()}_renderNarrow(){return $`
3376            <acorn-main-layout-sidebar-mobile-internal .open="${this.open}">
3377                <slot></slot>
3378            </acorn-main-layout-sidebar-mobile-internal>
3379        `}_renderWide(){return $`<acorn-internal-scroll-pane class="${this.classes.scrollpane}">
3380            <slot></slot>
3381        </acorn-internal-scroll-pane>`}};Yk([gt(),zt({type:Number})],Qk.prototype,"width",2),Yk([Ht()],Qk.prototype,"layoutCollapsed",2),Yk([Ht()],Qk.prototype,"open",2),Qk=Yk([_t({tag:"acorn-main-layout-sidebar"})],Qk);var Zk="50px",Jk="100dvh",eE={$host:{display:"block",maxWidth:"inherit",minWidth:"inherit","--main-layout-sidebar-header-height":`calc(100vh - ${Zk})`},container:{display:"flex",flexDirection:"column",height:Jk},head:{height:Zk,display:"flex",justifyContent:"space-between",alignItems:"center"},heading:{...Co(),fontSize:kn(16),padding:"8px 0 0 16px"},closeButtonIcon:{padding:"8px 2px 0 0"},dialog:{border:"none",margin:"0px",padding:"0px",height:Jk,maxHeight:Jk,maxWidth:"inherit",minWidth:"inherit",animation:`main-layout-sidebar-open ${ai.isRunningTests?"0s":"0.25s"}, ease-out`,"@keyframes main-layout-sidebar-open":"\n            0% { opacity: 0; transform: translateX(-100%); }\n            100% { opacity: 1; transform: translateX(0%); }","&::backdrop":{backgroundColor:zi.Overlay.scrim}},scroll:{height:"100%"}},tE=Ve.createTranslation({CloseButtonLabel:{sv:"Stäng menyn",en:"Close menu"},MenuText:{sv:"Meny",en:"Menu"}}),iE=class extends Mi{constructor(){super(...arguments),this.closeOnClickOutside=!0,this.width=235,this.open=!1}getStyle(){return eE}onOpenChange(){this.open?this.show(Mi.MODE.Modal):this.closeCallback()}renderContent(){return $`
3382            <div id="${"container"}" class="${this.classes.container}">
3383                <div class="${this.classes.head}">
3384                    <h1 class="${this.classes.heading}">${tE.MenuText}</h1>
3385                    <acorn-internal-icon-button
3386                        class="${this.classes.closeButtonIcon}"
3387                        label="${tE.CloseButtonLabel}"
3388                        icon="${Zo.XMark}"
3389                        hide-label
3390                        @click="${this.onClose}"
3391                    ></acorn-internal-icon-button>
3392                </div>
3393
3394                <acorn-internal-scroll-pane class="${this.classes.scroll}">
3395                    <slot></slot>
3396                </acorn-internal-scroll-pane>
3397            </div>
3398        `}onClose(){this.open=!1}closeCallback(){this.close(),this._closeSidebar.emit()}};Yk([gt(),zt({type:Number})],iE.prototype,"width",2),Yk([Ht()],iE.prototype,"open",2),Yk([ft({name:"closeSidebar",bubbles:!0,composed:!0})],iE.prototype,"_closeSidebar",2),Yk([wi("open")],iE.prototype,"onOpenChange",1),Yk([Pe()],iE.prototype,"onClose",1),Yk([Pe()],iE.prototype,"closeCallback",1),iE=Yk([_t({tag:"acorn-main-layout-sidebar-mobile-internal"})],iE);var nE={$host:{display:"block",maxHeight:"var(--main-layout-header-height)",height:"var(--main-layout-header-height)"},wrapper:{height:"inherit","@media print":{boxShadow:"unset !important"}}},oE=class extends Ti{constructor(){super(...arguments),this.height=72,this.heightCollapsed=48}connectedCallback(){var e;this.setAttribute("slot","header"),null==(e=super.connectedCallback)||e.call(this)}getStyle(){return nE}render(){return $` <div class="${this.classes.wrapper}"><slot></slot></div> `}};function rE(e,t,i){const{...n}=t;
3398return Object.keys(i).forEach(t=>{n[t]={...n[t]},Object.keys(i[t]).forEach(o=>{const r=n[t][o],a=i[t][o];n[t][o]=function(t){const i=e.call(t)?a:r;return"function"==typeof i?i(t):i}})}),n}Yk([gt(),zt({type:Number})],oE.prototype,"height",2),Yk([gt(),zt({type:Number})],oE.prototype,"heightCollapsed",2),Yk([Ht()],oE.prototype,"layoutCollapsed",2),oE=Yk([_t({tag:"acorn-main-layout-header"})],oE);var aE=(e=>(e.WideMenu="wide-menu",e.NarrowMenu="narrow-menu",e.FlyoutMenu="flyout-menu",e))(aE||{});var sE=Ve.createTranslation({SkipToMainContent:{sv:"Hoppa till innehållet",en:"Skip to content"}}),lE=bn.Top+1,cE={$host:{display:"block","@media print":{zoom:ai.autofitPrint?"100%":"85%"},"--main-layout-header-height":e=>e.headerSlot.isFilled()?`${e.layoutCollapsed?e.headerSlot.content.heightCollapsed:e.headerSlot.content.height}px`:"0px","--main-layout-menu-toggle-display":e=>e.sidebarSlot.isFilled()&&e.layoutCollapsed?"inline-block":"none",[jk]:"var(--main-layout-header-height)",[Bk.OffsetTop]:"var(--main-layout-header-height)",[Vk]:"var(--main-layout-header-height)"},$$slotted:{'&([slot="message"])':{margin:0}},wrapper:{display:"flex",flexDirection:"column",width:"100%"}
3398,container:{backgroundColor:zi.Background.system,width:"100%"},messages:{display:e=>e.messageSlot.isFilled()?"block":"none",position:"relative",zIndex:lE-1},grid:{display:e=>e.layoutCollapsed?"block":"grid",minHeight:"100vh",gridTemplateColumns:e=>`${e.boundingContentRect.left}px calc(100% - ${e.boundingContentRect.left}px)`,gridTemplateRows:e=>`${e.boundingContentRect.top}px calc(100vh - ${e.boundingContentRect.top}px) 1fr`,"@media print":{display:"block !important",minHeight:"unset !important"}},head:{backgroundColor:zi.Surface.Brand.lower,boxShadow:"0 2px 4px 0 rgba(0, 0, 0, 0.15)",zIndex:lE,gridColumn:"1 / 3",position:e=>e.layoutCollapsed?"sticky":"fixed",width:"100%",top:0,left:0,"@media print":{position:"static !important"}},sidebar:{zIndex:bn.Top,position:"fixed",height:e=>`calc(100vh - ${e.boundingContentRect.top}px)`,top:e=>`${e.boundingContentRect.top}px`,"@media print":{display:"none !important"}},main:{justifySelf:"center",gridColumn:e=>e.sidebarSlot.isFilled()?"2":"1 / span 2",gridRow:"2 / span 2",width:"100%",outline:0},a11ySkipLink:{...Vn({fontSizeUnit:"px",lineHeightUnit:"px"}),position:"fixed",zIndex:bn.Overlay,padding:"13px 24px",left:"-100vw",top:"48px",textAlign:"center",borderRadius:"24px",backgroundColor:zi.Backgroun
3398d.system,textDecoration:"none",whiteSpace:"nowrap",color:zi.Text.interactive,"&:focus-within":{left:"48px"}}},dE="main",hE=class extends Ti{constructor(){super(),this._HeaderHeight=72,this._HeaderHeightCollapsed=48,this._collapsedQueryList=window.matchMedia(`(min-width: ${gn.Medium})`),this.layoutCollapsed=!this._collapsedQueryList.matches,this._collapsedQueryList.addEventListener("change",e=>{this.layoutCollapsed=!e.matches&&!window.matchMedia("print").matches}),this.addEventListener("toggleSidebar",e=>{e.defaultPrevented||(this.sidebarOpen=!this.sidebarOpen)}),this.addEventListener("closeSidebar",e=>{this.sidebarOpen=!1,e.stopPropagation()}),this.addEventListener("pageConnect",e=>{e.target.pageWidth=this.boundingContentRect.width})}get boundingContentRect(){return this._boundingContentRect||(this._boundingContentRect={},Object.defineProperties(this._boundingContentRect,{bottom:{get:()=>document.documentElement.clientHeight},left:{get:()=>this.getSidebarWidth()},right:{get:()=>document.documentElement.clientWidth},top:{get:()=>this.getHeaderHeight()},height:{get:()=>document.documentElement.clientHeight-this.getHeaderHeight()},width:{get:()=>document.documentElement.clientWidth-this.getSidebarWidth()}})),this._boundingContentRect}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this._connect.emit()}disconnectedCallback(){this._disconnect.emit()}getHeaderHeight(){return this.headerSlot.isFilled()?this.layoutCollapsed?this.headerSlot.content.heightCollapsed:this.headerSlot.content.height:0}getSidebarWidth(){return this.sidebarSlot.isFilled()?this.sidebarSlot.content.width:0}getStyle(){return cE}beforeRender(){this.headerSlot.isFilled()&&(this.headerSlot.content.layoutCollapsed=this.layoutCollapsed,this._HeaderHeight=this.headerSlot.content.height),this.sidebarSlot.isFilled()&&(this.sidebarSlot.content.layoutCollapsed=this.layoutCollapsed)}render(){return $`
3399            <a
3400                class="${this.classes.a11ySkipLink}"
3401                href="#${dE}"
3402                @click="${this._onSkipLinkClick}"
3403                @keydown="${this._onSkipLinkClick}"
3404            >
3405                ${sE.SkipToMainContent}
3406            </a>
3407            <div class="${this.classes.wrapper}">
3408                ${this.layoutCollapsed?this._renderSidebar():null}
3409                <div class="${this.classes.container}">
3410                    <div class="${this.classes.grid}">
3411                        <header id="header" class="${this.classes.head}">${this.headerSlot}</header>
3412                        ${this.layoutCollapsed?null:this._renderSidebar()}
3413                        <div id="${dE}" class="${this.classes.main}" tabindex="-1">
3414                            <acorn-network-status></acorn-network-status>
3415                            <div class="${this.classes.messages}">${this.messageSlot}</div>
3416                            <slot></slot>
3417                        </div>
3418                    </div>
3419                </div>
3420            </div>
3421        `}onHeaderSlotChange(){this._setScrollPadding()}onLayoutCollapsedChanged(e,t,i){this.sidebarOpen=!1,!this.layoutCollapsed&&this.sidebarSlot.content&&(this.sidebarSlot.content.open=!1),i||(e?this._layoutCollapse:this._layoutExpand).emit(),this._setScrollPadding()}onSidebarOpenChanged(e,t,i){this.sidebarSlot.content&&(this.sidebarSlot.content.open=this.sidebarOpen),i||(e?this._sidebarOpen:this._sidebarClose).emit()}_renderSidebar(){return $`<div class="${this.classes.sidebar}">
3422            ${this.sidebarOpen||!this.layoutCollapsed?this.sidebarSlot:null}
3423        </div>`}_onSkipLinkClick(e){var t;e instanceof KeyboardEvent&&e.key!==ye.Enter||(e.preventDefault(),null==(t=this.shadowRoot.getElementById(dE))||t.focus({preventScroll:!1}))}_setScrollPadding(){const e=document.documentElement.style.scrollPaddingTop;""!==e&&e!==`${this._HeaderHeight}px`&&e!==`${this._HeaderHeightCollapsed}px`&&"auto"!==e||(document.documentElement.style.scrollPaddingTop=this.headerSlot.isFilled()?this.layoutCollapsed?`${this._HeaderHeightCollapsed}px`:`${this._HeaderHeight}px`:"auto")}};Yk([gt(),zt({type:aE})],hE.prototype,"features",2),Yk([Ht(),ri("message",{selectAllTypes:["alert-message"]})],hE.prototype,"messageSlot",2),Yk([ri("collapsed-header")],hE.prototype,"collapsedHeaderSlot",2),Yk([Ht(),ri("header",{selectSingleType:["main-layout-header","swed-ui-main-layout-header"]})],hE.prototype,"headerSlot",2),Yk([Ht(),ri("sidebar",{selectSingleType:["main-layout-sidebar","swed-ui-main-layout-sidebar"]})],hE.prototype,"sidebarSlot",2),Yk([Ht(),ri("menu",{selectSingleType:["main-layout-menu"]})],hE.prototype,"menuSlot",2),Yk([gt(),zt({type:Boolean})],hE.prototype,"sidebarOpen",2),Yk([Ht()],hE.prototype,"layoutCollapsed",2),Yk([ft({bubbles:!0})],hE.prototype,"_connect",2),Yk([ft({bubbles:!0})],hE.prototype,"_disconnect",2),Yk([ft()],hE.prototype,"_layoutExpand",2),Yk([ft()],hE.prototype,"_layoutCollapse",2),Yk([ft()],hE.prototype,"_sidebarOpen",2),Yk([ft()],hE.prototype,"_sidebarClose",2),Yk([wi("headerSlot")],hE.prototype,"onHeaderSlotChange",1),Yk([wi("layoutCollapsed",{triggerOn:pi.ChangeAndConnect})],hE.prototype,"onLayoutCollapsedChanged",1),Yk([wi("sidebarOpen",{triggerOn:pi.ChangeAndConnect})],hE.prototype,"onSidebarOpenChanged",1),Yk([Pe()],hE.prototype,"_onSkipLinkClick",1),hE=Yk([_t({tag:"acorn-main-layout"}),function(e){return class extends e{constructor(...e){super(...e),this._onFlyoutVerticalMenuSelect=this._onFlyoutVerticalMenuSelect.bind(this),this._onFlyoutHorizontalMenuSelect=this._onFlyoutHorizontalMenuSelect.bind(this),this._onFlyoutMenuOpen=this._onFlyoutMenuOpen.bind(this),this._onFlyoutMenuClose=this._onFlyoutMenuClose.bind(this)}getSidebarWidth(){return this._isFlyoutMenuToggled()?0:super.getSidebarWidth()}getStyle(){const e=super.getStyle();return rE(this._isFlyoutMenuToggled,e,function(e){return{$host:{"--main-layout-menu-toggle-display":t=>t.layoutCollapsed?"inline-block":null==e?void 0:e.$host["--main-layout-menu-toggle-display"](t)},grid:{display:"grid",gridTemplateRows:e=>`${e.boundingContentRect.top}px 48px calc(100vh - ${e.boundingContentRect.top+48}px) 1fr`},head:{boxShadow:"none",borderBottom:"solid 1px rgba(0, 0, 0, 0.15)",backgroundColor:zi.Surface.system,position:"fixed"},main:{gridColumn:"2",gridRow:"3 / span 2"},topMenu:{gridRow:2,zIndex:1}}}(e))}render(){return this._isFlyoutMenuToggled()?this._renderWithFlyoutMenu():super.render()}_isFlyoutMenuToggled(){return"flyout-menu"===this.features&&!this.sidebarSlot.isFilled()&&this.menuSlot.isFilled()}
3423_renderWithFlyoutMenu(){if(!this.menuSlot.content.menuRootNode)return;const e=this.menuSlot.content.menuRootNode;return $`
3424                    <div class="${this.classes.wrapper}">
3425                        <div class="${this.classes.container}">
3426                            <div class="${this.classes.grid}">
3427                                <div class="${this.classes.head}">${this.headerSlot}</div>
3428                                <acorn-main-layout-internal-flyout-side-menu
3429                                    .menuModel="${e}"
3430                                    .open="${this.sidebarOpen}"
3431                                    @select="${this._onFlyoutVerticalMenuSelect}"
3432                                    @close="${this._onFlyoutMenuClose}"
3433                                    id="sideMenu"
3434                                ></acorn-main-layout-internal-flyout-side-menu>
3435                                ${this.layoutCollapsed?null:$`
3436                                          <acorn-main-layout-internal-flyout-top-menu
3437                                              .menuModel="${e}"
3438                                              @select="${this._onFlyoutHorizontalMenuSelect}"
3439                                              @openMenu="${this._onFlyoutMenuOpen}"
3440                                              class="${this.classes.topMenu}"
3441                                          ></acorn-main-layout-internal-flyout-top-menu>
3442                                      `}
3443
3444                                <div class="${this.classes.main}">
3445                                    <acorn-network-status></acorn-network-status>
3446                                    <div class="${this.classes.messages}">${this.messageSlot}</div>
3447                                    <slot></slot>
3448                                </div>
3449                            </div>
3450                        </div>
3451                    </div>
3452                `}_onFlyoutVerticalMenuSelect(e){this.menuSlot.content.setActiveNode(e.detail.value),this.invalidate(),this.sidebarOpen=!1}_onFlyoutHorizontalMenuSelect(e){const t=this.menuSlot.content.setActiveNode(e.detail.value).getActiveNode();(null==t?void 0:t.children.length)&&(this.sidebarOpen=!0)}_onFlyoutMenuOpen(){this.menuSlot.content.setActiveNode(""),this.sidebarOpen=!0}_onFlyoutMenuClose(){this.sidebarOpen=!1}}},function(e){return class extends e{constructor(...e){super(...e),this._onNarrowMenuSelect=this._onNarrowMenuSelect.bind(this),this._onNarrowMenuClose=this._onNarrowMenuClose.bind(this)}getSidebarWidth(){return this._isNarrowMenuToggled()?this.layoutCollapsed?0:100:super.getSidebarWidth()}getStyle(){const e=super.getStyle();return rE(this._isNarrowMenuToggled,e,function(e){return{$host:{"--main-layout-menu-toggle-display":t=>t.layoutCollapsed?"inline-block":null==e?void 0:e.$host["--main-layout-menu-toggle-display"](t)},grid:{display:"grid",gridTemplateRows:e=>`${e.boundingContentRect.top}px 48px calc(100vh - ${e.boundingContentRect.top+48}px) 1fr`},head:{boxShadow:"none",borderBottom:"solid 1px rgba(0, 0, 0, 0.15)",backgroundColor:zi.Backgroun
3452d.system,position:"fixed"},main:{gridColumn:"2",gridRow:"3 / span 2"},sideMenu:{gridRow:"2 / 4",zIndex:2},topMenu:{gridColumn:2,gridRow:2,zIndex:1}}}(e))}render(){return this._isNarrowMenuToggled()?this._renderWithNarrowMenu():super.render()}_isNarrowMenuToggled(){return"narrow-menu"===this.features&&!this.sidebarSlot.isFilled()&&this.menuSlot.isFilled()}_renderWithNarrowMenu(){if(!this.menuSlot.content.menuRootNode)return;const e=this.menuSlot.content.menuRootNode,t=this.menuSlot.content.menuRootNode.children.map(e=>e.isGroup?e.children:e).flat().find(e=>e.isActive());return $`
3453                    <div class="${this.classes.wrapper}">
3454                        <div class="${this.classes.container}">
3455                            <div class="${this.classes.grid}">
3456                                <div class="${this.classes.head}">${this.headerSlot}</div>
3457
3458                                <acorn-main-layout-internal-narrow-side-menu
3459                                    .menuModel="${e}"
3460                                    .narrowScreenMode="${this.layoutCollapsed}"
3461                                    .open="${this.sidebarOpen}"
3462                                    @select="${this._onNarrowMenuSelect}"
3463                                    @close="${this._onNarrowMenuClose}"
3464                                    class="${this.classes.sideMenu}"
3465                                    id="sideMenu"
3466                                ></acorn-main-layout-internal-narrow-side-menu>
3467
3468                                <acorn-main-layout-internal-narrow-top-menu
3469                                    .menuModel="${t}"
3470                                    @select="${this._onNarrowMenuSelect}"
3471                                    class="${this.classes.topMenu}"
3472                                ></acorn-main-layout-internal-narrow-top-menu>
3473
3474                                <div class="${this.classes.main}">
3475                                    <acorn-network-status></acorn-network-status>
3476                                    <div class="${this.classes.messages}">${this.messageSlot}</div>
3477                                    <slot></slot>
3478                                </div>
3479                            </div>
3480                        </div>
3481                    </div>
3482                `}_onNarrowMenuSelect(e){var t;const i=null==(t=this.menuSlot.content.menuRootNode.getNode(e.detail.value))?void 0:t.getFirstLeafNode();this.menuSlot.content.setActiveNode(null==i?void 0:i.value),this.invalidate(),this.sidebarOpen=!1}_onNarrowMenuClose(){this.sidebarOpen=!1}}},function(e){return class extends e{constructor(...e){super(...e),this._onWideMenuSelect=this._onWideMenuSelect.bind(this),this._onWideMenuClose=this._onWideMenuClose.bind(this)}getSidebarWidth(){return this._isWideMenuToggled()?this.layoutCollapsed?0:230:super.getSidebarWidth()}getStyle(){const e=super.getStyle();return rE(this._isWideMenuToggled,e,function(e){return{$host:{"--main-layout-menu-toggle-display":t=>t.layoutCollapsed?"inline-block":null==e?void 0:e.$host["--main-layout-menu-toggle-display"](t)},wrapper:{overflowX:void 0},grid:{display:"grid",gridTemplateRows:e=>`${e.boundingContentRect.top}px auto 1fr`},main:{gridColumn:"2",gridRow:"3"},sideMenu:{gridRow:"2 / 4",zIndex:bn.Top},topMenu:{gridColumn:2,gridRow:2,zIndex:bn.Top-1}}}(e))}render(){return this._isWideMenuToggled()?this._renderWithWideMenu():super.render()}_isWideMenuToggled(){return"wide-menu"===this.features&&!this.sidebarSlot.isFilled()&&this.menuSlot.isFilled()}_renderWithWideMenu(){if(!this.menuSlot.content.menuRootNode)return;const e=this.menuSlot.content.menuRootNode,t=this.menuSlot.content.menuRootNode.children.map(e=>e.isGroup?e.children:e).flat().find(e=>e.isActive());return $`
3483                    <div class="${this.classes.wrapper}">
3484                        <div class="${this.classes.container}">
3485                            <div class="${this.classes.grid}">
3486                                <div class="${this.classes.head}">${this.headerSlot}</div>
3487
3488                                <acorn-main-layout-internal-wide-side-menu
3489                                    .menuModel="${e}"
3490                                    .wideScreenMode="${this.layoutCollapsed}"
3491                                    .open="${this.sidebarOpen}"
3492                                    @select="${this._onWideMenuSelect}"
3493                                    @close="${this._onWideMenuClose}"
3494                                    class="${this.classes.sideMenu}"
3495                                    id="sideMenu"
3496                                ></acorn-main-layout-internal-wide-side-menu>
3497
3498                                <acorn-main-layout-internal-wide-top-menu
3499                                    .menuModel="${t}"
3500                                    @select="${this._onWideMenuSelect}"
3501                                    class="${this.classes.topMenu}"
3502                                ></acorn-main-layout-internal-wide-top-menu>
3503
3504                                <div class="${this.classes.main}">
3505                                    <acorn-network-status></acorn-network-status>
3506                                    <div class="${this.classes.messages}">${this.messageSlot}</div>
3507                                    <slot></slot>
3508                                </div>
3509                            </div>
3510                        </div>
3511                    </div>
3512                `}_onWideMenuSelect(e){var t;const i=null==(t=this.menuSlot.content.menuRootNode.getNode(e.detail.value))?void 0:t.getFirstLeafNode();this.menuSlot.content.setActiveNode(null==i?void 0:i.value),this.invalidate(),this.sidebarOpen=!1}_onWideMenuClose(){this.sidebarOpen=!1}}}],hE);var pE=class extends xt{constructor(){super(...arguments),this.value="",this.href="",this.selected=!1,this.blocked=!1,this.label="",this.icon=null,this.children=[],this.isGroup=!1}};pE.modelName="mainLayoutMenuNode",Yk([zt({type:Boolean})],pE.prototype,"selected",2),Yk([zt({type:Boolean})],pE.prototype,"blocked",2),Yk([zt({type:Zo})],pE.prototype,"icon",2),Yk([zt({type:pE})],pE.prototype,"children",2),Yk([zt({type:Boolean})],pE.prototype,"isGroup",2);var uE=pE,gE=class e{constructor(t){this.value=t.value,this.href=t.href,this.label=t.label,this.icon=t.icon,this.selected=t.selected,this.isGroup=!!t.isGroup,this.blocked=!!t.blocked,this.children=(t.children||[]).map(t=>new e(t))}isActive(){return(this.selected||this.children.some(e=>e.isActive()))&&!this.blocked}getNode(e=""){if(this.value===e)return this;for(let t=0;t<this.children.length;t++){const i=this.children[t].getNode(e);if(i)return i}return null}getActiveNode(){if(this.selected)return this;const e=this.children.find(e=>e.isActive());return e?e.getActiveNode():null}getFirstLeafNode(){return this.children.length?this.children[0].getFirstLeafNode():this}},mE=class extends Ti{constructor(){super(...arguments),this.menuData=[]}setActiveNode(e=""){let t;const i=this.menuRootNode.getNode(e);if(i&&!i.children.length&&(t=this._menuOptionSelect.emit(i)),null==t?void 0:t.defaultPrevented)return this.menuRootNode;const n=this._setActiveNode(e,this.menuData);return this.menuRootNode=new gE({label:"ROOT_NODE",children:n}),this.menuRootNode}onMenuDataChange(){var e;let t=this.menuData;const i=null==(e=this._getActiveNode(t))?void 0:e.value;i&&(t=this._setActiveNode(i,t)),this.menuRootNode=new gE({label:"ROOT_NODE",children:t}
3512),this.parentElement instanceof hE&&this.parentElement.invalidate()}onLayoutChange(){this.parentElement instanceof hE&&this.parentElement.invalidate()}_getActiveNode(e){let t=e.find(e=>{var t;return e.selected||(null==(t=e.children)?void 0:t.length)});if(t)return t.selected?t:(t=this._getActiveNode(t.children),t||void 0)}_setActiveNode(e,t){return t.map(t=>({...t,selected:t.value===e,children:this._setActiveNode(e,t.children)}))}};Yk([zt({type:uE})],mE.prototype,"menuData",2),Yk([ft({bubbles:!0,cancelable:!0})],mE.prototype,"_menuOptionSelect",2),Yk([wi("menuData")],mE.prototype,"onMenuDataChange",1),Yk([wi("layout")],mE.prototype,"onLayoutChange",1),mE=Yk([_t({tag:"acorn-main-layout-menu"})],mE);var bE={$host:{display:e=>!e.wideScreenMode||e.openExpandTransition.value<1?"block":"none",height:"calc(100vh - var(--main-layout-header-height))",position:"fixed",top:"var(--main-layout-header-height)"},backdrop:{display:e=>e.wideScreenMode?"block":"none",height:"inherit",width:"100vw",backgroundColor:e=>`rgba(0, 0, 0, ${.75*(1-e.openExpandTransition.value)})`,position:"absolute",top:0,left:0},scrollpane:{position:"relative",height:"inherit",boxSizing:"border-box",borderRight:`1px solid ${zi.Line.Regular.low}
3512`,background:zi.Background.system,width:"230px",left:e=>-230*(e.openExpandTransition.value||0)+"px"},menuList:{listStyle:"none",margin:0,padding:"8px 0"},menuItem:{display:"block",overflow:"hidden"},wideOption:{display:"flex",width:"100%",gap:"12px",padding:"8px 20px",boxSizing:"border-box",textDecoration:"none",height:"40px",alignItems:"center",color:zi.Text.Regular.high,position:"relative","&[data-active]":{backgroundColor:zi.Surface.Brand.lower},"&:hover:not([aria-disabled=true]):not([data-blocked])":{backgroundColor:zi.Overlay.hover}},group:{borderTop:`1px solid ${zi.Line.Regular.low}`,borderBottom:`1px solid ${zi.Line.Regular.low}`,marginTop:"8px","&+li":{marginTop:"8px"},"&+li.group":{borderTop:"none",marginTop:"0"},"&:first-child":{borderTop:"none",marginTop:"0"},"&:last-child":{borderBottom:"none"}},groupContent:{padding:"8px 0",listStyleType:"none"},menuBlockedIcon:{pointerEvents:"none",position:"absolute",top:"5px",left:"25px",backgroundColor:zi.Background.system,borderRadius:"50%"}},vE=class extends Ti{constructor(){super(...arguments),this.wideScreenMode=!1,this.open=!1}render(){if(this.menuModel)return $`
3513            <div id="backdrop" class="${this.classes.backdrop}" @click="${this._close.emit}"></div>
3514            <acorn-internal-scroll-pane class="${this.classes.scrollpane}">
3515                <ul id="menuList" class="${this.classes.menuList}">
3516                    ${this.menuModel.children.map(e=>e.isGroup?this._renderMenuListItemGroup(e):this._renderMenuListItem(e))}
3517                </ul>
3518            </acorn-internal-scroll-pane>
3519        `}getStyle(){return bE}onOpenChange(){this.wideScreenMode&&this.openExpandTransition.transitionTo(this.open?"start":"end")}onScreenModeChange(){this.openExpandTransition.goTo(this.wideScreenMode?"end":"start")}openExpandTransitionFrame(e){if(e.transitionState===li.Transitioning)this.invalidateStyle()}_onMenuItemClick(e,t){t.preventDefault(),this._select.emit(e)}_renderMenuListItemGroup(e){return $`<li class="${this.classes.group}">
3520            <ul class="${this.classes.groupContent}">
3521                ${e.children.map(e=>this._renderMenuListItem(e))}
3522            </ul>
3523        </li>`}_renderMenuListItem(e){const t=e.isActive();return $` <li>
3524            <a
3525                href="/"
3526                @click="${this._onMenuItemClick.bind(this,e)}"
3527                class="${this.classes.wideOption}"
3528                ?data-active="${t}"
3529                ?data-blocked="${e.blocked}"
3530            >
3531                <acorn-icon
3532                    size="${Jo.XSmall}"
3533                    icon="${j(e.icon||void 0)}"
3534                    color="${t?Og.OrangeMain:Og.Brown}"
3535                ></acorn-icon>
3536                ${e.blocked?$`
3537                          <acorn-icon
3538                              size="${Jo.XSmall}"
3539                              class="${this.classes.menuBlockedIcon}"
3540                              icon="${Zo.Lock}"
3541                              color="${Og.OrangeMain}"
3542                          >
3543                          </acorn-icon>
3544                      `:null}
3545                <span>${e.label}</span>
3546            </a>
3547        </li>`}};Yk([Ht()],vE.prototype,"menuModel",2),Yk([Ht()],vE.prototype,"wideScreenMode",2),Yk([Ht()],vE.prototype,"open",2),Yk([hi({duration:"0.35s",ease:"easeInOut"})],vE.prototype,"openExpandTransition",2),Yk([ft()],vE.prototype,"_select",2),Yk([ft()],vE.prototype,"_close",2),Yk([wi("open")],vE.prototype,"onOpenChange",1),Yk([wi("wideScreenMode",{triggerOn:pi.ChangeAndConnect})],vE.prototype,"onScreenModeChange",1),Yk([Wt("openExpandTransition")],vE.prototype,"openExpandTransitionFrame",1),vE=Yk([_t({tag:"acorn-main-layout-internal-wide-side-menu"})],vE);var yE="--acorn-internal-tab-bar-font-size",_E={$host:{[yE]:kn(16),...fn({sm:{[yE]:kn(20)}})},tab:{fontSize:`var(${yE})`,'&[aria-selected="true"]':{fontSize:`var(${yE})`}},tabList:{display:"flex",justifyContent:"center",minWidth:"fit-content"},labelPlaceholder:{fontSize:`var(${yE})`}},fE=class extends Ig{getStyle(){return ge({},super.getStyle(),_E)}};fE=Yk([_t({tag:"acorn-main-layout-internal-wide-top-bar-tabs"})],fE);var xE={$host:{display:e=>e.isEmpty()?"none":"block",position:"sticky",top:"var(--main-layout-header-height, 0px)",backgroundColor:zi.Backgroun
3547d.system,borderBottom:`1px solid ${zi.Line.Regular.low}`},wrapper:{margin:"16px auto",...fn({sm:{padding:"0 12px",margin:"24px auto"}})}},wE=class extends Ti{render(){if(this.isEmpty())return;const e=this.menuModel.children.map(e=>({...e,active:e.selected}));return $`<div class="${this.classes.wrapper}">
3548            <acorn-main-layout-internal-wide-top-bar-tabs
3549                .tabs="${e}"
3550                @tabActive="${this._onTabActive}"
3551            ></acorn-main-layout-internal-wide-top-bar-tabs>
3552        </div>`}getStyle(){return xE}isEmpty(){var e;return!(null==(e=this.menuModel)?void 0:e.children.length)}_onTabActive(e){e.preventDefault();const t=this.menuModel.children.find(t=>t.value===e.detail.value);this._select.emit(t)}};Yk([Ht()],wE.prototype,"menuModel",2),Yk([ft()],wE.prototype,"_select",2),Yk([Pe()],wE.prototype,"_onTabActive",1),wE=Yk([_t({tag:"acorn-main-layout-internal-wide-top-menu"})],wE);var CE={$host:{display:e=>!e.narrowScreenMode||e.openExpandTransition.value<1?"block":"none",height:"calc(100vh - var(--main-layout-header-height))",position:"fixed",top:"var(--main-layout-header-height)"},backdrop:{display:e=>e.narrowScreenMode?"block":"none",height:"inherit",width:"100vw",backgroundColor:e=>`rgba(0, 0, 0, ${.75*(1-e.openExpandTransition.value)})`,position:"absolute",top:0,left:0},menuList:{position:"relative",listStyle:"none",margin:0,padding:"8px 0",height:"inherit",width:e=>
3552e.narrowScreenMode?"250px":"100px",background:zi.Background.system,borderRight:"solid 1px rgba(0, 0, 0, 0.15)",left:e=>-250*e.openExpandTransition.value+"px"},menuItem:{display:"block",overflow:"hidden"},narrowOption:{display:"flex",flexDirection:"column",textAlign:"center",alignItems:"center",borderRadius:"8px",textDecoration:"none",margin:"4px 8px",padding:"12px 8px",...Hn(),"&[data-active]":{backgroundColor:zi.Surface.Brand.lower},"&:hover":{backgroundColor:zi.Overlay.hover}},wideOption:{display:"flex",width:"100%",gap:"12px",padding:"8px 20px",boxSizing:"border-box",textDecoration:"none",height:"48px",alignItems:"center",color:zi.Text.Regular.high,"&[data-active]":{backgroundColor:zi.Surface.Brand.lower}}},SE=class extends Ti{constructor(){super(...arguments),this.narrowScreenMode=!1,this.open=!1}render(){if(this.menuModel)return $`
3553            <div id="backdrop" class="${this.classes.backdrop}" @click="${this._close.emit}"></div>
3554            <ul id="menuList" class="${this.classes.menuList}">
3555                ${this.menuModel.children.map(e=>e.isGroup?e.children.map(e=>this._renderMenuListItem(e)):this._renderMenuListItem(e))}
3556            </ul>
3557        `}getStyle(){return CE}onOpenChange(){this.narrowScreenMode&&this.openExpandTransition.transitionTo(this.open?"start":"end")}onScreenModeChange(){this.openExpandTransition.goTo(this.narrowScreenMode?"end":"start")}openExpandTransitionFrame(e){if(e.transitionState===li.Transitioning)this.invalidateStyle()}_onMenuItemClick(e,t){t.preventDefault(),this._select.emit(e)}_renderMenuListItem(e){return $` <li>
3558            <a
3559                href="/"
3560                @click="${this._onMenuItemClick.bind(this,e)}"
3561                class="${this.narrowScreenMode?this.classes.wideOption:this.classes.narrowOption}"
3562                ?data-active="${e.isActive()}"
3563            >
3564                <acorn-icon size="${Jo.Regular}" icon="${j(e.icon||void 0)}"></acorn-icon>
3565                <span>${e.label}</span>
3566            </a>
3567        </li>`}};Yk([Ht()],SE.prototype,"menuModel",2),Yk([Ht()],SE.prototype,"narrowScreenMode",2),Yk([Ht()],SE.prototype,"open",2),Yk([hi({duration:"0.35s",ease:"easeInOut"})],SE.prototype,"openExpandTransition",2),Yk([ft()],SE.prototype,"_select",2),Yk([ft()],SE.prototype,"_close",2),Yk([wi("open")],SE.prototype,"onOpenChange",1),Yk([wi("narrowScreenMode",{triggerOn:pi.ChangeAndConnect})],SE.prototype,"onScreenModeChange",1),Yk([Wt("openExpandTransition")],SE.prototype,"openExpandTransitionFrame",1),SE=Yk([_t({tag:"acorn-main-layout-internal-narrow-side-menu"})],SE);var $E={$host:{display:"block",background:zi.Surface.Brand.lower,position:"sticky",top:"var(--main-layout-header-height, 0px)"},wrapper:{padding:"0 24px"}},kE=class extends Ti{render(){var e;if(!(null==(e=this.menuModel)?void 0:e.children.length))return;const t=this.menuModel.children.map(e=>({...e,active:e.selected}));return $`<div class="${this.classes.wrapper}">
3568            <acorn-internal-tab-bar .tabs="${t}" @tabActive="${this._onTabActive}"></acorn-internal-tab-bar>
3569        </div>`}getStyle(){return $E}_onTabActive(e){const t=this.menuModel.children.find(t=>t.value===e.detail.value);this._select.emit(t)}};Yk([Ht()],kE.prototype,"menuModel",2),Yk([ft()],kE.prototype,"_select",2),Yk([Pe()],kE.prototype,"_onTabActive",1),kE=Yk([_t({tag:"acorn-main-layout-internal-narrow-top-menu"})],kE);var EE={$host:{display:e=>e.openExpandTransition.value<1?"block":"none",height:"100vh",position:"fixed",zIndex:100,top:0},backdrop:{display:"block",height:"inherit",width:"100vw",backgroundColor:e=>`rgba(0, 0, 0, ${.75*(1-e.openExpandTransition.value)})`,position:"absolute",top:0,left:0},menuList:{position:"relative",listStyle:"none",margin:0,padding:"8px 0",height:"inherit",width:"250px",background:zi.Backgroun
3569d.system,borderRight:"solid 1px rgba(0, 0, 0, 0.15)",left:e=>-250*e.openExpandTransition.value+"px"},menuItem:{display:"block",overflow:"hidden"},nodeHeader:{fontWeight:$n.Black},option:{display:"flex",width:"100%",gap:"12px",padding:"8px 20px",boxSizing:"border-box",textDecoration:"none",height:"48px",alignItems:"center",color:zi.Text.Regular.high,"&:hover":{backgroundColor:zi.Overlay.hover}}},TE=class extends Ti{constructor(){super(...arguments),this.currentNode=null,this.open=!1}render(){if(this.currentNode)return $`
3570            <div id="backdrop" class="${this.classes.backdrop}" @click="${this._close.emit}"></div>
3571            <ul id="menuList" class="${this.classes.menuList}">
3572                ${this.currentNode!==this.menuModel?$`
3573                          <li>
3574                              <a href="/" @click="${this._onBack}" class="${this.classes.option}">
3575                                  <acorn-icon size="${Jo.Regular}" icon="${Zo.ChevronLeft}"></acorn-icon>
3576                                  <span class="${this.classes.nodeHeader}">${this.currentNode.label}</span>
3577                              </a>
3578                          </li>
3579                      `:null}
3580                ${this.currentNode.children.map(e=>e.isGroup?e.children.map(e=>this._renderMenuListItem(e)):this._renderMenuListItem(e))}
3581            </ul>
3582        `}getStyle(){return EE}onOpenChange(){this.open&&(this.currentNode=this.menuModel.getActiveNode()||this.menuModel),this.openExpandTransition.transitionTo(this.open?"start":"end")}openExpandTransitionFrame(e){switch(e.transitionState){case li.End:this.open||(this.currentNode=null);break;case li.Transitioning:this.invalidateStyle()}}_onBack(e){e.preventDefault(),this.currentNode=this.menuModel}_onMenuItemClick(e,t){t.preventDefault(),e.children.length?this.currentNode=e:this._select.emit(e)}_renderMenuListItem(e){return $` <li>
3583            <a href="/" @click="${this._onMenuItemClick.bind(this,e)}" class="${this.classes.option}">
3584                <acorn-icon size="${Jo.Regular}" icon="${j(e.icon||void 0)}"></acorn-icon>
3585                <span>${e.label}</span>
3586            </a>
3587        </li>`}};Yk([Ht()],TE.prototype,"menuModel",2),Yk([Ht()],TE.prototype,"currentNode",2),Yk([Ht()],TE.prototype,"open",2),Yk([hi({duration:"0.35s",ease:"easeInOut"})],TE.prototype,"openExpandTransition",2),Yk([ft()],TE.prototype,"_select",2),Yk([ft()],TE.prototype,"_close",2),Yk([wi("open")],TE.prototype,"onOpenChange",1),Yk([Wt("openExpandTransition")],TE.prototype,"openExpandTransitionFrame",1),Yk([Pe()],TE.prototype,"_onBack",1),TE=Yk([_t({tag:"acorn-main-layout-internal-flyout-side-menu"})],TE);var IE={$host:{display:"block",background:zi.Surface.Brand.lower,position:"sticky",top:"var(--main-layout-header-height, 0px)",width:"100vw"},wrapper:{display:"flex",height:"48px",padding:"0 24px",alignContent:"center",gap:"8px"},toggleMenuBtn:{border:0,backgroundColor:"transparent",display:"flex",gap:"8px",alignItems:"center",cursor:"pointer",marginRight:"24px"},menuOption:{padding:"0 8px",display:"flex",alignItems:"center",cursor:"pointer",textDecoration:"none",color:zi.Text.Regular.high,"&:hover":{backgroundColor:zi.Overlay.hover}}},OE=class extends Ti{render(){if(this.menuModel)return $`<div class="${this.classes.wrapper}">
3588            <button class="${this.classes.toggleMenuBtn}" @click="${this._openMenu.emit}">
3589                <acorn-icon icon="bars"></acorn-icon> Menu
3590            </button>
3591
3592            ${this.menuModel.children.map(e=>e.isGroup?e.children.map(e=>this._renderMenuListItem(e)):this._renderMenuListItem(e))}
3593        </div>`}getStyle(){return IE}_onMenuOptionSelect(e,t){t.preventDefault(),this._select.emit(e)}_renderMenuListItem(e){return $` <a
3594            href="/"
3595            class="${this.classes.menuOption}"
3596            @click="${this._onMenuOptionSelect.bind(this,e)}"
3597            >${e.label}</a
3598        >`}};Yk([Ht()],OE.prototype,"menuModel",2),Yk([ft()],OE.prototype,"_select",2),Yk([ft()],OE.prototype,"_openMenu",2),OE=Yk([_t({tag:"acorn-main-layout-internal-flyout-top-menu"})],OE);var DE=Object.defineProperty,RE=Object.getOwnPropertyDescriptor,FE=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?RE(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&DE(t,i,r),r},LE=class extends Ti{render(){return $`<slot></slot>`}};LE=FE([_t({tag:"acorn-modal-section-body"})],LE);var AE=Ve.createTranslation({GoBack:{sv:"Tillbaka",en:"Go back"},Close:{sv:"Stäng",en:"Close"}}),ME="24px",BE={$host:{display:"block",outline:"0 !important"},modalDialog:{width:"100%",backgroundColor:zi.Surface.elevation,display:"flex",flexDirection:"column",height:"100%",maxHeight:"inherit"},header:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignContent:"center",alignItems:"start",maxWidth:"100%",padding:`0 ${ME}`,marginTop:ME,minHeight:"40px"},heading:{...Mn(),color:zi.Text.brand,marginTop:"8px",marginBottom:"6px"},closeIconButton:{marginLeft:e=>e.heading?"24px":"auto"},content:{display:"flex",margin:`calc(${ME} - 8px) 0 calc(${ME} + 8px)`},innerContent:{padding:`0 ${ME}`}},PE=class extends Ti{constructor(){super(...arguments),this.hideClose=!1}getStyle(){return BE}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this.hideClose||document.addEventListener("keyup",this._onKeyUp)}disconnectedCallback(){document.removeEventListener("keyup",this._onKeyUp)}focus(e){const t=this.shadowRoot.querySelector("acorn-icon-button");
3598t?t.focus(e):super.focus(e)}render(){return $`
3599            <section class="${this.classes.modalDialog}">
3600                <header class="${this.classes.header}">
3601                    ${this.heading?$`<h2 class="${this.classes.heading}">${this.heading}</h2>`:void 0}
3602                    ${this.hideClose?void 0:$`<acorn-icon-button
3603                              tabindex="0"
3604                              class="${this.classes.closeIconButton}"
3605                              icon="${Zo.XMark}"
3606                              accessibility-label="${AE.Close}"
3607                              @keydown="${this._onCloseBtnKeyDown}"
3608                              @click="${this._close.emit}"
3609                          >
3610                          </acorn-icon-button>`}
3611                </header>
3612                <acorn-internal-scroll-pane class="${this.classes.content}">
3613                    <acorn-internal-enclosed-margins class="${this.classes.innerContent}">
3614                        ${this._bodySlot.default($`<slot></slot><slot name="content"></slot>`)}
3615                    </acorn-internal-enclosed-margins>
3616                </acorn-internal-scroll-pane>
3617                <div id="tabEnd" tabindex="-1"></div>
3618            </section>
3619        `}onHideClose(){this.hideClose?document.removeEventListener("keyup",this._onKeyUp):document.addEventListener("keyup",this._onKeyUp)}_onKeyUp(e){e.key===ye.Escape&&this._close.emit()}_onCloseBtnKeyDown(e){e.key===ye.Tab&&e.shiftKey&&this.shadowRoot.getElementById("tabEnd").focus()}};FE([gt()],PE.prototype,"heading",2),FE([gt(),zt({type:Boolean})],PE.prototype,"hideClose",2),FE([ft()],PE.prototype,"_close",2),FE([ri("body",{selectSingleType:LE.config.type})],PE.prototype,"_bodySlot",2),FE([wi("hideClose")],PE.prototype,"onHideClose",1),FE([Pe()],PE.prototype,"_onKeyUp",1),FE([Pe()],PE.prototype,"_onCloseBtnKeyDown",1),PE=FE([_t({tag:"acorn-modal-section"}),vt()],PE);var NE=Object.defineProperty,HE=Object.getOwnPropertyDescriptor,zE=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?HE(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&NE(t,i,r),r},WE={$host:{display:"block"},contentWrapper:{marginTop:"24px",marginBottom:"16px",padding:"0 var(--acorn-modal-box-padding)",overflow:"hidden"}},VE=class extends Ti{render(){return $`
3620            <acorn-internal-enclosed-margins class="${this.classes.contentWrapper}">
3621                <slot></slot>
3622            </acorn-internal-enclosed-margins>
3623        `}getStyle(){return WE}};VE=zE([_t({tag:"acorn-modal-body"})],VE);var jE={$host:{display:"block"},wrapper:{padding:"10px var(--acorn-modal-box-padding)"},buttonContainer:{margin:0}},GE=class extends Ti{render(){return $`<div class="${this.classes.wrapper}">
3624            <acorn-button-container class="${this.classes.buttonContainer}">
3625                ${this._buttonSlots}
3626            </acorn-button-container>
3627        </div>`}getStyle(){return jE}};zE([ri("button",{selectAllTypes:Dr.config.type,spread:!0})],GE.prototype,"_buttonSlots",2),GE=zE([_t({tag:"acorn-modal-footer"})],GE);var qE=Ve.createTranslation({Close:{sv:"Stäng",en:"Close"}}),UE={$host:{display:"block",outline:"0px !important"},wrapper:{display:"flex",alignItems:"center",boxSizing:"border-box",minHeight:"72px",width:"100%",padding:"24px 12px 8px var(--acorn-modal-box-padding)"},heading:{...Mn(),color:zi.Text.brand,marginTop:"8px",marginBottom:"6px",flex:"1 1 auto"}},KE=class extends Ti{constructor(){super(...arguments),this.heading="[Empty]"}getStyle(){return UE}render(){if(this.parentElement){this.parentElement.label=this.heading}return $`
3628            <div class="${this.classes.wrapper}">
3629                <h2 class="${this.classes.heading}">${this.heading}</h2>
3630                <acorn-internal-icon-button
3631                    autofocus
3632                    icon="${Zo.XMark}"
3633                    accessibility-label="${qE.Close}"
3634                    @click="${this._onModalClose}"
3635                ></acorn-internal-icon-button>
3636            </div>
3637        `}_onModalClose(){var e,t;null==(t=null==(e=this.parentElement)?void 0:e.close)||t.call(e)}};zE([gt()],KE.prototype,"heading",2),zE([Pe()],KE.prototype,"_onModalClose",1),KE=zE([_t({tag:"acorn-modal-header"})],KE);var YE=ai.isFirefox?"100vh":"100dvh",XE={$host:{display:"block",outline:"0 !important","--acorn-modal-box-padding":"24px",[Vi.HasTheme]:ji.False},dialog:{border:0,padding:0,backgroundColor:zi.Surface.elevation,overflow:"hidden",margin:"auto auto",maxWidth:"calc(min(100vw, var(--acorn-modal-width, 550px)) - 32px)",minWidth:"calc(min(100vw, var(--acorn-modal-width, 550px)) - 32px)",maxHeight:`calc(${YE} - 16px)`,"&::backdrop":{backgroundColor:zi.Overlay.scrim},...zn(),"&.enter":{animation:"modalenter",animationDuration:"0.15s",animationTimingFunction:"ease-in"},"&.exit":{animation:"modalexit",animationDuration:"0.15s",animationTimingFunction:"ease-
3637out"},"@keyframes modalenter":"\n            0% {\n                transform: translateY(50px);\n                opacity: 0;\n            }\n            100% {\n                transform: translateY(0);\n                opacity: 1;\n            }\n        ","@keyframes modalexit":"\n            0% {\n                transform: translateY(0);\n                opacity: 1;\n            }\n            100% {\n                transform: translateY(50px);\n                opacity: 0;\n            }\n        "},canvas:{width:"100%",maxHeight:"inherit",display:"flex",flexDirection:"column"},scrollContainer:{flex:"1 1 auto",outline:"0 !important"},defaultFooter:{height:"16px"}},QE=class extends Mi{constructor(){super(),this.open=!1,this.closeOnClickOutside=!1,this.dialogElement.addEventListener("animationend",this._onEnterLeaveComplete)}getStyle(){return XE}show(){this.open=!0}close(){this.closeCallback()}renderContent(){return $`
3638            <div class="${this.classes.canvas}">
3639                <slot name="${this._header.name}"></slot>
3640                <acorn-internal-scroll-pane class="${this.classes.scrollContainer}">
3641                    <slot name="${this._body.name}"></slot>
3642                </acorn-internal-scroll-pane>
3643                <slot name="${this._footer.name}">
3644                    <div class="${this.classes.defaultFooter}"></div>
3645                </slot>
3646            </div>
3647        `}afterRender(){this._resolveDisplayState()}closeCallback(){this.open=!1}_resolveDisplayState(){this.isConnected&&(this.open&&!this.isShown()?(super.show(Mi.MODE.Modal),this._openBegin.emit(),this.dialogElement.classList.remove("exit"),this.dialogElement.classList.add("enter")):!this.open&&this.isShown()&&(this._closeBegin.emit(),this.dialogElement.classList.remove("enter"),this.dialogElement.classList.add("exit")))}_onEnterLeaveComplete(e){switch(e.animationName){case"modalenter":this._onOpenComplete();break;case"modalexit":this._onCloseComplete()}}_onOpenComplete(){this.resolveFocus(),this._openComplete.emit()}_onCloseComplete(){super.close(),this._closeComplete.emit()}};zE([gt(),zt({type:Boolean})],QE.prototype,"open",2),zE([gt(),zt({type:Boolean})],QE.prototype,"closeOnClickOutside",2),zE([ft()],QE.prototype,"_closeBegin",2),zE([ft()],QE.prototype,"_openBegin",2),zE([ft()],QE.prototype,"_openComplete",2),zE([ft()],QE.prototype,"_closeComplete",2),zE([ri("header",{selectSingleType:[KE.config.type]})],QE.prototype,"_header",2),zE([ri("body",{selectSingleType:[VE.config.type]})],QE.prototype,"_body",2),zE([ri("footer",{selectSingleType:[GE.config.type]})],QE.prototype,"_footer",2),zE([Pe()],QE.prototype,"closeCallback",1),zE([Pe()],QE.prototype,"_onEnterLeaveComplete",1),QE=zE([_t({tag:"acorn-modal"})],QE);var ZE=Object.defineProperty,JE=Object.getOwnPropertyDescriptor,eT=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?JE(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&ZE(t,i,r),r},tT=Ve.createTranslation({ShowInfo:{sv:"Visa hjälp",en:"Show help"},CloseInfo:{sv:"Dölj hjälp",en:"Hide help"},InfoAriaLabel:{sv:"Förklaring",en:"Explanation"}}),iT={$host:{outline:"0 !important"},overlayContent:{position:"relative",padding:"16px 56px 16px 16px"},overlayText:{whiteSpace:"pre-line"},overlayCloseButton:{position:"absolute",top:"12px",right:"12px"}},nT="button",oT=class extends Ti{constructor(){super(...arguments),this.heading=tT.InfoAriaLabel,this.displayMode=jl.Auto,this.overlayDirection=Pl.Down,this.overlayAlignment=Nl.Right}getStyle(){return iT}render(){return $`<acorn-internal-icon-button
3648                id="${nT}"
3649                color="${zi.Icon.interactive}"
3650                icon="${Zo.CircleQuestionMark}"
3651                accessibility-label="${this._showInfo?tT.CloseInfo:tT.ShowInfo}"
3652                size="${Jo.Small}"
3653                @click="${this._onToggleHelp}"
3654            ></acorn-internal-icon-button>
3655            <acorn-internal-responsive-overlay
3656                ?open="${this._showInfo}"
3657                display-mode="${this.displayMode}"
3658                controlled-by="${nT}"
3659                heading="${this.heading}"
3660                text="${j(this.text)}"
3661                direction="${this.overlayDirection}"
3662                alignment="${this.overlayAlignment}"
3663                position-strategy="${Ml.Fixed}"
3664                @close="${this._onOverlayClose}"
3665            >
3666                <slot></slot>
3667            </acorn-internal-responsive-overlay>`}_onToggleHelp(){this._showInfo=!this._showInfo}_onOverlayClose(){this._showInfo=!1}};eT([gt()],oT.prototype,"text",2),eT([gt()],oT.prototype,"heading",2),eT([gt(),zt({type:jl})],oT.prototype,"displayMode",2),eT([gt(),zt({type:Pl})],oT.prototype,"overlayDirection",2),eT([gt(),zt({type:Nl})],oT.prototype,"overlayAlignment",2),eT([Ht()],oT.prototype,"_showInfo",2),eT([Pe()],oT.prototype,"_onToggleHelp",1),eT([Pe()],oT.prototype,"_onOverlayClose",1),oT=eT([_t({tag:"acorn-output-help"})],oT);var rT=(e=>(e.Amount="amount",e))(rT||{}
3667),aT=(e=>(e.Left="left",e.Center="center",e.Right="right",e))(aT||{});var sT={$host:{display:"block",margin:`${Jn} 0`,maxWidth:function(e){switch(e.alignment){case"right":case"center":return"auto";default:return Xn}},textAlign:function(e){switch(e.alignment){case"right":return"right";case"center":return"center";default:return"left"}}},$$slotted:{'&([slot="form-help"])':{display:"block",marginTop:"-5px",marginLeft:"3px"}},labelWrapper:{display:"flex",alignItems:"center",justifyContent:function(e){switch(e.alignment){case"right":return"end";case"center":return"center";default:return"start"}}},label:{...Wn(),color:zi.Text.Regular.high,whiteSpace:"pre-line",display:"inline-block",padding:"6px 0"},value:{...Mn(),fontWeight:700,color:zi.Text.brand,maxWidth:"none",marginTop:0,marginBottom:"4px"},detail:{...Wn(),color:zi.Text.Regular.high,whiteSpace:"pre-line"}},lT=class extends Ti{constructor(){super(...arguments),this.alignment="left",this._amountFormattingStyle="decimal"}render(){return $`
3668            <div id="${"label"}" class="${this.classes.labelWrapper}">
3669                ${this.label?$`<span class="${this.classes.label}">${this.label}</span>`:null}
3670                ${this._helpSlot.default($`${this._legacyFormHelpSlot}`)}
3671            </div>
3672            <div class="${this.classes.value}">${this._formatValue()} ${this.suffix}</div>
3673            ${this._legacyFormHintSlot.default($` <div class="${this.classes.detail}">${this.detail}</div> `)}
3674        `}getStyle(){return sT}_formatValue(){var e;return"amount"===this.type?new Intl.NumberFormat(We.Sv,{style:this._amountFormattingStyle}).format(Number(this.value)):null!=(e=this.value)?e:""}};eT([gt()],lT.prototype,"label",2),eT([gt()],lT.prototype,"value",2),eT([gt()],lT.prototype,"detail",2),eT([gt(),zt({type:rT})],lT.prototype,"type",2),eT([gt()],lT.prototype,"suffix",2),eT([gt(),zt({type:aT})],lT.prototype,"alignment",2),eT([ri("help",{selectSingleType:[oT.config.type]})],lT.prototype,"_helpSlot",2),eT([ri("form-hint",{selectSingleType:[rc.config.type]})],lT.prototype,"_legacyFormHintSlot",2),eT([ri("form-help",{selectSingleType:[tc.config.type]})],lT.prototype,"_legacyFormHelpSlot",2),lT=eT([_t({tag:"acorn-output"})],lT);var cT=Object.defineProperty,dT=Object.getOwnPropertyDescriptor,hT=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?dT(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&cT(t,i,r),r},pT=(e=>(e.Card="card",e.SixBySix="6-6",e.EightByFour="8-4",e.SevenByFive="7-5",e.SingleColumn="12",e.SingleColumnWide="12-wide",e.Zip="zip",e))(pT||{}),uT=new Map([["card",{columns:1,width:yn.Medium}],["12",{columns:1,width:yn.Medium}],["12-wide",{columns:1,width:yn.Wide}],["6-6",{columns:2,width:yn.Medium}],["8-4",{columns:2,width:yn.Medium}],["7-5",{columns:2,width:yn.Medium}],["zip",{columns:2,width:yn.Medium}]]);function gT(){return{base:"10px",sm:vn.Large,md:vn.ExtraLarge}}var mT=e=>"card"===e.layout?co({base:vn.Medium,sm:vn.Large,md:vn.ExtraLarge}):co(gT());function bT(e=1){return t=>t.numColumns>1?co({base:"0px",sm:vo(vn.Large,e),md:vo(vn.ExtraLarge,e)}):"0px"}var vT=yo(36,zi.Icon.interactive),yT={$host:{display:"block","--acorn-page-max-width":e=>uT.get(e.layout).width},wrapper:{position:"relative",left:e=>`-${e._pageAdjustX}px`,transition:"left 0.25s ease-in-out",display:"grid",borderTop:"solid transparent 1px",borderBottom:"solid transparent 1px",margin:"-1px 0",gridTemplateRows:"1fr",gridTemplateColumns:co({base:"auto",sm:"1fr 0",md:"1fr 0"})},content:{minWidth:0},breadcrumbContainer:{maxWidth:e=>uT.get(e.layout).width,boxSizing:"border-box",margin:"24px auto 0",padding:co({base:"0px 10px",sm:`0px ${vn.Large}`,md:`0px ${vn.ExtraLarge}`})},head:{width:"100%"},container:{maxWidth:e=>uT.get(e.layout).width,width:"100%",margin:"0 auto","@media print":{maxWidth:"none !important"}},messages:{display:e=>e._message.isFilled()?"block":"none",marginTop:"16px",marginLeft:mT,marginRight:mT},grid:{display:e=>e.numColumns>1?"grid":"block",visibility:e=>e.busy?"hidden":"visible",flex:"1 1 auto",position:"relative",minHeight:"300px",gridColumnGap:bT(),gridRowGap:bT(),gridTemplateColumns:e=>{switch(e.layout){case"6-6":case"zip":return"minmax(0px, 1fr) minmax(0px, 1fr)";case"7-5":return"minmax(0px, 7fr) minmax(0px, 5fr)";case"8-4":return"minmax(0px, 8fr) minmax(0px, 4fr)"}},gridTemplateRows:"auto 1fr auto",marginTop:bT(),marginBottom:bT(),marginLeft:mT,marginRight:mT,"@media print":{marginLeft:"0 !important",marginRight:"0 !important"}},gridTop:{display:e=>
3674e._topRegion.isFilled()?"block":"none",opacity:e=>e.busy?"0":"1",gridColumn:"1 / 3",marginTop:bT(-1),marginBottom:bT(-1),maxWidth:"100%","@media print":{marginTop:"0 !important",marginBottom:"0 !important"}},gridBottom:{display:e=>e._bottomRegion.isFilled()?"block":"none",opacity:e=>e.busy?"0":"1",gridColumn:"1 / 3",marginTop:bT(-1),marginBottom:bT(-1),maxWidth:"100%","@media print":{marginTop:"0 !important",marginBottom:"0 !important"}},gridItem:{marginTop:bT(-1),opacity:e=>e.busy?"0":"1",marginBottom:bT(-1),maxWidth:"100%"},spinner:{...vT,visibility:e=>e.busy?"visible":"hidden",opacity:e=>e.busy?"1":"0",transition:"opacity 0.3s ease-in-out 0.5s",position:"absolute",left:"calc(50% - 18px)",top:"calc(150px - 18px)",animation:e=>e.busy?vT.animation:"none 0 ease 0 1 normal none running"},spinnerLabel:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"},dialogPageRegion:{margin:mT}},_T=()=>{const e=gT(),t=e.base||0,i=e.sm||e.xs||t,n=e.md||i;return co({base:"10px",sm:i,md:n})},fT={$host:{display:"block"},$$slotted:{'&([slot="heading"])':{...{fontFamily:'"Swedbank Headline", sans-serif',fontWeight:"900",fontSize:kn(24),...fn({xs:{fontSize:kn(32)},md:{fontSize:kn(40)}}),lineHeight:"1",color:zi.Text.Regular.high,"@media print":{fontSize:kn(40)}},margin:"16px 0 !important",color:e=>
3674e.themeBackground?`${zi.Text.whiteStatic} !important`:`${zi.Text.brand} !important`}},wrapper:{backgroundSize:"cover",backgroundImage:e=>e.themeBackground?co({base:`url("${e.themeBackground.xs}")`,sm:`url("${e.themeBackground.sm}")`,md:`url("${e.themeBackground.md}")`,lg:`url("${e.themeBackground.lg}")`,xl:`url("${e.themeBackground.xl}")`}):"none",color:e=>e.themeBackground?`${zi.Text.whiteStatic}`:"inherit",paddingTop:e=>e.themeBackground?co({base:vn.Medium,sm:vn.Large,md:"48px",lg:"56px",xl:"64px"}):"0px",paddingBottom:e=>e.themeBackground?co({base:vn.Medium,sm:vn.Large,md:vn.ExtraLarge,lg:"40px",xl:"48px"}):"0px"},container:{display:co({base:"block",sm:"flex"}),justifyContent:"space-between",alignItems:"start",boxSizing:"border-box",maxWidth:`var(--acorn-page-max-width, ${yn.Medium})`,width:"100%",margin:"0 auto",paddingLeft:_T,paddingRight:_T,"@media print":{paddingLeft:`${vn.Medium} !important`,paddingRight:`${vn.Medium} !important`,maxWidth:"none !important"}},leftContainer:{width:"100%"},lead:{...function(e=zi.Text.Regular.high){return{fontFamily:"Roboto, Arial, Helvetica",fontWeight:"400",lineHeight:"1.2",fontSize:kn(14),...fn({xs:{fontSize:kn(16)},sm:{fontSize:kn(14)},md:{fontSize:kn(18)}}),color:e,"@media print":{fontSize:kn(18)}}}("inherit"),margin:"16px 0"},details:{margin:`${vn.Medium} 0`}},xT=class extends Ti{static setTheme(e,t){const i=["xl","lg","md","sm","xs"];for(const e of i)if(!(e in t))throw Error(`Hero - Theme is missing required property ${e}`);xT._themes.set(e,t)}
3674get themeBackground(){return this.theme?xT._themes.get(this.theme):void 0}getStyle(){return fT}render(){return $`
3675            <div class="${this.classes.wrapper}">
3676                <div class="${this.classes.container}">
3677                    <div class="${this.classes.leftContainer}">
3678                        ${this._headingSlot}
3679                        <div class="${this.classes.lead}"><slot name="${"lead"}"></slot></div>
3680                        ${this._detailsSlot.content.filter(e=>e.children.length).length?$`
3681                                      <div id="acorn-hero-details" class="${this.classes.details}">
3682                                          ${this._detailsSlot}
3683                                      </div>
3684                                  `:null}
3685                    </div>
3686                </div>
3687            </div>
3688        `}};xT._themes=new Map,hT([gt()],xT.prototype,"theme",2),hT([ri("heading",{selectAll:"h1",strict:!0})],xT.prototype,"_headingSlot",2),hT([ri("details"),Ht()],xT.prototype,"_detailsSlot",2),xT=hT([_t({tag:"acorn-hero"})],xT);var wT=Ve.createTranslation({BusyMessage:{sv:"Laddar sidinnehåll",en:"Loading page content"},LoadedMessage:{sv:"Sidinnehåll har laddats",en:"Page content is loaded"}}),CT=co({base:vn.Medium,sm:vn.Large,md:vn.ExtraLarge}),ST={$host:{display:"block",marginTop:CT,marginBottom:CT}},$T=class extends Ti{constructor(){super(...arguments),this.isEmpty=!0,this._mutationObserver=new MutationObserver(this._onChildrenChange)}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this._mutationObserver.observe(this,{childList:!0}),this._onChildrenChange()}disconnectedCallback(){this._mutationObserver.disconnect()}getStyle(){return ST}render(){return $`<slot></slot>`}onIsEmptyChange(){this.parentNode&&Xt(this.parentNode)&&this.parentNode.invalidate()}_onChildrenChange(){this.isEmpty=0===this.children.length}};hT([Ht()],$T.prototype,"isEmpty",2),hT([wi("isEmpty")],$T.prototype,"onIsEmptyChange",1),hT([Pe()],$T.prototype,"_onChildrenChange",1),$T=hT([_t({tag:"acorn-page-region"})],$T);var kT=class extends Ti{constructor(){super(),this.busy=!1,this.layout="12",this._pageAdjustX=0,this._isCollapsed=!1,this.addEventListener(qk.PageDetailOpen,e=>{var t;if(null==(t=e.target)||t.addEventListener(qk.PageDetailClose,()=>{this._pageAdjustX=0,this.invalidateStyle()}),e.detail.anchor===Gk.Right){const t=this.getBoundingClientRect().width,i=parseInt(uT.get(this.layout).width.slice(0,-2)),n=Math.max(0,(t-i)/2);this._pageAdjustX=Math.min(n,Math.max(0,e.detail.panelWidth-n)),this.invalidateStyle()}})}get numColumns(){return this._isCollapsed?1:uT.get(this.layout).columns}connectedCallback(){var e;const t=window.matchMedia(`(min-width: ${gn.Small})`),i=e=>{this._isCollapsed=!e.matches&&!window.matchMedia("print").matches};t.addEventListener("change",i),this._clearListeners=()=>{t.removeEventListener("change",i)},this._isCollapsed=!t.matches,null==(e=super.connectedCallback)||e.call(this),this._pageConnect.emit()}disconnectedCallback(){this.rendered=!1,this._pageAdjustX=0,this._clearListeners(),this._pageDisconnect.emit()}regionIsFilled(e){return[...this.children].some(t=>t.slot===e&&!t.isEmpty)}getStyle(){return yT}render(){return"card"===this.layout?$`
3689                <acorn-dialog-page ?busy="${this.busy}">
3690                    <div>${this._hero}${this._message}</div>
3691                    <div class="${this.classes.dialogPageRegion}">
3692                        ${this._topRegion} <slot name="column-1"></slot> ${this._bottomRegion}
3693                    </div>
3694                    <div><slot name="foot"></slot></div>
3695                </acorn-dialog-page>
3696            `:$`
3697                <div class="${this.classes.wrapper}">
3698                    <main class="${this.classes.content}">
3699                        <div class="${this.classes.breadcrumbContainer}">${this._breadCrumbContainer}</div>
3700                        <div class="${this.classes.head}">${this._hero}</div>
3701                        <div class="${this.classes.container}">
3702                            <div class="${this.classes.messages}">${this._message}</div>
3703                            <div class="${this.classes.grid}" ?aria-busy="${this.busy}
3703" aria-live="polite">
3704                                <div class="${this.classes.spinner}" role="alert">
3705                                    <div class="${this.classes.spinnerLabel}">
3706                                        ${this.busy?wT.BusyMessage:wT.LoadedMessage}
3707                                    </div>
3708                                </div>
3709                                <div class="${this.classes.gridTop}">${this._topRegion}</div>
3710                                ${new Array(this.numColumns).fill("undefined").map((e,t)=>$`
3711                                        <section class="${this.classes.gridItem}">
3712                                            <slot name="${`column-${t+1}`}"></slot>
3713                                        </section>
3714                                    `)}
3715                                <div class="${this.classes.gridBottom}">${this._bottomRegion}</div>
3716                            </div>
3717                            <div><slot name="foot"></slot></div>
3718                        </div>
3719                    </main>
3720                    <div>${this._detailSlot}</div>
3721                </div>
3722            `}beforeRender(){super.beforeRender(),[...this.children].filter(e=>e instanceof $T).filter(e=>-1===["top","bottom"].indexOf(e.slot)).forEach((e,t)=>{const i="column-"+(t%this.numColumns+1);e.slot!==i&&e.setAttribute("slot",i)})}};hT([gt(),zt({type:Boolean})],kT.prototype,"busy",2),hT([gt(),zt({type:pT})],kT.prototype,"layout",2),hT([ri("top"),Ht()],kT.prototype,"_topRegion",2),hT([ri("bottom"),Ht()],kT.prototype,"_bottomRegion",2),hT([ri("message"),Ht()],kT.prototype,"_message",2),hT([ri("detail",{selectSingleType:"page-detail"})],kT.prototype,"_detailSlot",2),hT([Ht()],kT.prototype,"_isCollapsed",2),hT([ft({bubbles:!0})],kT.prototype,"_pageConnect",2),hT([ft({bubbles:!0})],kT.prototype,"_pageDisconnect",2),hT([ri("breadcrumb",{selectSingleType:Jm.config.type})],kT.prototype,"_breadCrumbContainer",2),hT([ri("head",{selectSingleType:xT.config.type})],kT.prototype,"_hero",2),kT=hT([_t({tag:"acorn-page"})],kT);var ET=Object.defineProperty,TT=Object.getOwnPropertyDescriptor,IT=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?TT(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&ET(t,i,r),r},OT=(e=>(e.Vertical="vertical",e.Horizontal="horizontal",e))(OT||{}),DT={$host:{display:"block"},optionsGroup:{...Qi(),padding:0,margin:0,border:"none"},options:{marginTop:"11px",display:"flex",flexDirection:e=>"vertical"===e.alignment?"column":"row"},$$slotted:{"&(acorn-radio)":{marginTop:e=>"vertical"===e.alignment?"10px":"0"},"&(acorn-radio:first-child)":{marginTop:"0"}}},RT="errorAndHint",FT=class extends hy{constructor(){super(),this.alignment="horizontal"}render(){return $`
3723            <fieldset
3724                class="${this.classes.optionsGroup}"
3725                aria-describedby="${RT}"
3726                aria-labelledby="${FT.labelId}"
3727                aria-required="${j(this.required?"true":void 0)}"
3728            >
3729                ${this.legend(this.label)}
3730                <div class="${this.classes.options}">${this.defaultSlot}</div>
3731                <div id="${RT}">${this.hintTemplate()} ${this.errorTemplate()}</div>
3732            </fieldset>
3733        `}getStyle(){return ge({},super.getStyle(),DT)}};IT([gt({name:"align"}),gt(),zt({type:OT})],FT.prototype,"alignment",2),IT([ri("default")],FT.prototype,"defaultSlot",2),FT=IT([_t({tag:"acorn-radio-group"})],FT);var LT=Object.defineProperty,AT=Object.getOwnPropertyDescriptor,MT={$host:{display:"block",margin:"10px 12px 8px 0"},formFieldWrapper:{position:"relative",pointerEvents:e=>e.disabled?"none":void 0,'& [role="radiogroup"]':{display:"flex",flexDirection:"row",alignContent:"center",alignItems:"center"}},inputWrapper:{columnGap:"10px","&:hover":{[Hy.Opacity]:1}},radioInput:{width:"20px",height:"20px",margin:"0",flex:"0 0 auto",...Qi(),borderRadius:"50%",appearance:"none"},dummyRadio:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"},radioGraphic:{position:"absolute"},label:{...Wn,display:e=>
3733e.hideLabel||!e.label?"none":"inline-block",cursor:e=>e.disabled?void 0:"pointer",color:e=>e.disabled?zi.Text.disabled:zi.Text.Regular.high,verticalAlign:"middle",outline:"none"}},BT={$host:{display:"block",margin:"10px 12px 8px 0","&(:focus) .radio-graphic":{...Yi()}},inputWrapper:{columnGap:"10px","&:hover":{[Hy.Opacity]:1}},radioGraphic:{borderRadius:"50%"},label:{...Wn,display:e=>e.hideLabel||!e.label?"none":"inline-block",cursor:e=>e.disabled?void 0:"pointer",color:e=>e.disabled?zi.Text.disabled:zi.Text.Regular.high,verticalAlign:"middle",outline:"none"}},PT=class extends Xv{getStyle(){const e=ai.isElementInternalsSupported?BT:MT;return ge({},super.getStyle(),e)}renderRadio(){return $`<acorn-internal-radio-graphic
3734            class="${this.classes.radioGraphic}"
3735            .checked="${this.checked}"
3736            .disabled="${this.disabled}"
3737            @click="${this.onClickEvent}"
3738        ></acorn-internal-radio-graphic>`}};PT=((e,t,i,n)=>{for(var o,r=n>1?void 0:n?AT(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&LT(t,i,r),r})([_t({tag:"acorn-radio"})],PT);var NT=Object.defineProperty,HT=Object.getOwnPropertyDescriptor,zT=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?HT(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&NT(t,i,r),r},WT=new Map,VT=class{constructor(){this.members=[],this._onMemberChangeCallbacks=[]}static create(e){if(!e)throw Error("You must provide an identifier when creating a group!");if(WT.has(e))throw Error("There is already a group with the given identifier!");const t=new this(e);return WT.set(e,t),t}static get(e){return e?WT.get(e):void 0}addMember(e){this._removeDisconnectedMembers();const t=this._getInsertionIndex(e);-1!==t&&(t<this.members.length?this.members.splice(t,0,e):this.members.push(e),this.isSelected(e)&&this.unselectAllButOne(e),this._notifyMemberChange())}removeMember(e){this.hasMember(e)&&(this._removeMember(e),this._notifyMemberChange())}selectMember(e){e.selected=!0,this.unselectAllButOne(e)}hasMember(e){return-1!==this.members.indexOf(e)}memberCount(){return this.members.length}getLastMember(){return this.members[this.memberCount()-1]}unselectAllButOne(e){this.members.filter(t=>t!==e&&this.isSelected(t)).forEach(e=>this.unselectMember(e))}unselectMember(e){e.selected=!1}isSelected(e){return!!e.selected}_getInsertionIndex(e){this.hasMember(e)&&this._removeMember(e);const t=this.members[this.memberCount()-1];if(!t)return 0;if(this._isAfterElement(e,t))return this.memberCount();for(let t=0;t<this.members.length;t++)if(this._isBeforeElement(e,this.members[t]))return t;return 0}_isAfterElement(e,t){return!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)}_isBeforeElement(e,t){return!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING)}_notifyMemberChange(){this._onMemberChangeCallbacks.forEach(e=>{e()})}_removeMember(e){const t=this.members.indexOf(e);-1!==t&&this.members.splice(t,1)}_removeDisconnectedMembers(){this.members.filter(e=>!1===e.isConnected).forEach(e=>this._removeMember(e))}},jT=class extends Ti{constructor(){super(...arguments),this.label="",this.subValue="",this.badgeNumber=Number.NaN,this.badgeSeverity=Ko.Default,this.imageSrc="",this.imageAlt="",this.selected=!1,this.disabled=!1}static toListItemAccessibilityLabelStructure(e){return{label:e.label,subLabel:e.detail,value:e.subLabel,subValue:e.subValue,detail:e.secondaryDetail,imageAlt:e.imageAlt,badgeNumber:e.badgeNumber,badgeSeverity:e.badgeSeverity,accessibilityLabel:e.accessibilityLabel,icon:e.icon,imageSrc:e.imageSrc,dimmed:e.disabled}}get index(){const e=this._getParentSelectElement();if(e){const t=e.options;for(let e=0;e<t.length;e++)if(t[e]===this)return e}return 0}get form(){const e=this._getParentSelectElement();return e?e.form:null}get text(){return this.label}get defaultSelected(){return this.hasAttribute("selected")}get value(){return("string"==typeof this._value?this._value:this.label)||""}set value(e){this._value=e}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this.isConnected&&(this._updateGroup(),this._updateModelElementOption())}disconnectedCallback(){this._removeFromGroup(),this._removeFromModelElement()}updateModelElement(e){this._modelElement&&this._modelElement!==e&&this._removeFromModelElement(),this._modelElement=e,this._updateModelElementOption()}onSelectChange(){this._group&&(this.selected?this._group.selectMember(this):this._group.unselectMember(this),this._updateModelElementOption())}
3738afterRender(){super.afterRender(),this._updateModelElementOption(),this._selectOptionUpdate.emit()}_updateGroup(){this._group&&this._group.removeMember(this);const e=this.parentElement;e&&(this._group=VT.get(e)||VT.create(e),this._group.addMember(this))}_getParentSelectElement(){return this.parentElement&&Qt(this.parentElement,yt("acorn-select"))?this.parentElement:null}_removeFromGroup(){this._group&&(this._group.removeMember(this),this._group=void 0)}_removeFromModelElement(){if(this._nativeOption&&this._modelElement)try{this._modelElement.removeChild(this._nativeOption)}catch(e){}}_updateModelElementOption(){this._modelElement&&(this._nativeOption||(this._nativeOption=document.createElement("option"),this._modelElement.appendChild(this._nativeOption)),this._modelElement[this.index]!==this._nativeOption&&(this._modelElement.options[this.index]=this._nativeOption),this._nativeOption.label=this.label||"",this._nativeOption.value=this.value||"",this._nativeOption.selected=this.selected,this._nativeOption.disabled=this.disabled,this._nativeOption.selected&&this._nativeOption.disabled&&(this._nativeOption.disabled=!1),this.hasAttribute("selected")?this._nativeOption.setAttribute("selected",""):this._nativeOption.removeAttribute("selected"))}};zT([gt()],jT.prototype,"label",2),zT([gt()],jT.prototype,"subLabel",2),zT([gt()],jT.prototype,"detail",2),zT([gt()],jT.prototype,"secondaryDetail",2),zT([gt()],jT.prototype,"subValue",2),zT([gt({name:"accessibility-label"})],jT.prototype,"accessibilityLabel",2),zT([gt(),zt({type:Zo})],jT.prototype,"icon",2),zT([gt(),zt({type:Number})],jT.prototype,"badgeNumber",2),zT([gt(),zt({type:Ko})],jT.prototype,"badgeSeverity",2),zT([gt(),zt({type:String})],jT.prototype,"imageSrc",2),zT([gt({name:"image-alt"})],jT.prototype,"imageAlt",2),zT([gt(),zt({type:Boolean})],jT.prototype,"selected",2),zT([gt(),zt({type:Boolean})],jT.prototype,"disabled",2),zT([zt({type:String}),gt()],jT.prototype,"value",1),zT([ft({bubbles:!0})],jT.prototype,"_selectOptionUpdate",2),zT([wi("selected")],jT.prototype,"onSelectChange",1),jT=zT([_t({tag:"acorn-select-option"})],jT);var GT=(e=>(e.Simple="simple",e.OneLine="one-line",e.TwoLine="two-line",e.ThreeLine="three-line",e))(GT||{}),qT=(Math.round(1e6*Math.random()),"option");function UT(e){return!!e&&-1!==["two-line","three-line"].indexOf(e)}var KT=class{constructor(e,t){this.element=e,this._activeIndex=t}handleKeyboardEvent(e){switch(this._getKeyFromEvent(e)){case ye.Space:case ye.Enter:this.selectActiveItem(),e.preventDefault();break;case ye.ArrowUp:this.moveFocusToPreviousOption(e);break;case ye.ArrowDown:this.moveFocusToNextOption(e);break;case ye.Home:this.moveFocusToFirstOption(e);break;case ye.End:this.moveFocusToLastOption(e);break;case ye.Tab:this.selectActiveItem()}}moveFocusToFirstOption(e){const t=this.findIndexOfFirstSelectableOption(0);this.moveFocusToOption(t,e)}moveFocusToLastOption(e){const t=this.findIndexOfFirstSelectableOption(this.element.listLength()-1);this.moveFocusToOption(t,e)}moveFocusToPreviousOption(e){const t=this.findIndexOfFirstSelectableOption(this._activeIndex-1);this.moveFocusToOption(t,e)}moveFocusToNextOption(e){const t=this.findIndexOfFirstSelectableOption(this._activeIndex+1);this.moveFocusToOption(t,e)}moveFocusToOption(e,t){-1!==e&&(t.preventDefault(),this._activeIndex=e,this.element.focusOnOption(e))}selectActiveItem(){const e=this._activeIndex;this.element.isDisabled(e)||this.element.selectOption(e)}findIndexOfFirstSelectableOption(e){const t=this.element.listLength()-1;return e<=0?0:e>=t?t:e}_getKeyFromEvent(e){const t=e.key;if(e.metaKey)switch(t){case ye.ArrowDown:return ye.End;case ye.ArrowUp:return ye.Home}return t}},YT=Qn,XT=YT;var QT={$host:{width:"100%"},customSelect:{opacity:e=>e.disabled?"0.5":"1",...Qi(),...ao(function(e){return e.shouldShowInvalidState()?to.Invalid:e._hasFormControlFocusState()?to.Focused:e.disabled?to.Disabled:void 0}),display:"flex",alignItems:"center",padding:"0 4px",height:YT,maxWidth:Xn,boxSizing:"border-box",cursor:"pointer",width:"100%",minWidth:"100px",position:"relative",backgroundColor:zi.ComponentSpecific.TextField.surface,"--acorn-item-padding":"0"},selectArrowWrapper:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center",top:"0",right:"0",position:"absolute",textAlign:"center",width:XT},selectArrowIcon:{width:"100%",marginTop:"2px",display:"contents"},screenReaderOnly:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"},icon:{marginLeft:"8px"},popoverScroll:{width:"100%"},itemWrapper:{lineHeight:"1",paddingRight:"36px",maxWidth:"calc(100% - 36px)",flexGrow:"1"},placeholder:{padding:`calc(${vn.Medium} + ${eo}) 0`,fontSize:kn(16),fontFamily:Cn.Base,fontWeight:$n.Regular,lineHeight:Sn.Narrow,color:zi.Text.Regular.high,flex:"1",paddingLeft:vn.Medium}},ZT=`2px solid ${qi}`,JT={list:{"&:focus":{outline:()=>fe.navigationMode===_e.Tab?ZT:void 0,outlineOffset:"-2px"}},listItem:{cursor:"pointer",minHeight:YT,width:"100%",position:"relative",boxSizing:"border-box",borderBottomColor:zi.Line.Regular.low,borderBottomStyle:"solid",borderBottomWidth:"1px","&:last-of-type":{borderColor:"transparent"},"&[aria-disabled=true]":{pointerEvents:"none",cursor:"default",backgroundColor:zi.Surface.system},"&[aria-selected=true]":{background:zi.Overlay.hover},"&:hover:not([aria-selected=true])":{background:zi.Overlay.hover},"&:focus":{outline:()=>fe.navigationMode===_e.Tab?ZT:void 0,outlineOffset:"-2px"}},option:{width:"calc(100% - 8px)",overflow:"hidden",boxSizing:"border-box",padding:"0 4px"}},eI="listbox",tI=class extends Ti{constructor(){super(...arguments),this.isTabbable=!1,this._activeDescendantPrefix="acorn-active-descendant-prefix-id"}get _list(){return this.shadowRoot.getElementById(eI)}focus(e){var t;
3738null==(t=this._list)||t.focus(e)}selectOption(e){var t;e&&!e.disabled&&this._selectEvent.emit({selectedIndex:[...(null==(t=this.hostElement)?void 0:t.options)||[]].indexOf(e)})}focusOnOption(e){const t=this._sortedOptions(),i=this._focusedOption?t.indexOf(this._focusedOption):0,n=e?t.indexOf(e):-1;this._focusedOption=e;const o=(this._list?[...this._list.children]:[])[n];null==o||o.focus(),this.invalidate(),this._scrollToFocusedElement(n,i)}getStyle(){return JT}render(){var e;const t=this._sortedOptions(),i=this._focusedOption?t.indexOf(this._focusedOption):-1,n=null==(e=this.hostElement)?void 0:e.selectedOptions[0],o=-1===i?"":`${this._activeDescendantPrefix}-${i+1}`,r=this.hostElement?this.hostElement.ariaLabel||this.hostElement.label:"",a=this.isTabbable?"0":"-1";return $`
3739            <div
3740                tabindex="${a}"
3741                class="${this.classes.list}"
3742                id="${eI}"
3743                role="listbox"
3744                aria-label="${r}"
3745                aria-activedescendant="${j(o||void 0)}"
3746                @click="${this._onListItemSelect}"
3747                @keydown="${this._onKeydown}"
3748            >
3749                ${t.map((e,t)=>{var r,a;const s=t===i,l=e===n,c=jT.toListItemAccessibilityLabelStructure(e);return $`<div
3750                        tabindex="-1"
3751                        id="${j(s?o:void 0)}"
3752                        class="${this.classes.listItem}"
3753                        role="option"
3754                        aria-label="${x_.generateAccessibilityLabel(c,this._optionTypeToListItemLayout(null==(r=this.hostElement)?void 0:r.optionType),null==(a=this.hostElement)?void 0:a.leading)}"
3755                        aria-selected="${j(l?"true":void 0)}"
3756                        aria-disabled="${j(e.disabled?"true":void 0)}"
3757                    >
3758                        <div class="${this.classes.option}" ?data-disabled="${e.disabled}">
3759                            ${this._renderOption(c)}
3760                        </div>
3761                    </div>`})}
3762            </div>
3763        `}onOpen(){this.focus({preventScroll:!0});const e=this._findOptionToFocusOn(),t=e?this._sortedOptions().indexOf(e):-1;this._navigation=new KT({isDisabled:e=>{const t=this._sortedOptions()[e];return!!t&&t.disabled},selectOption:e=>{this._enableOutlineDueToKeyboardNavigation();const t=this._sortedOptions()[e];this.selectOption(t)},focusOnOption:e=>{this._enableOutlineDueToKeyboardNavigation();const t=this._sortedOptions()[e];this.focusOnOption(t)},listLength:()=>this._sortedOptions().length},t),this.focusOnOption(e)}_renderOption(e){var t,i,n,o,r,a;return $`<acorn-internal-list-item
3764            aria-hidden="true"
3765            .label="${e.label}"
3766            .subLabel="${UT(null==(t=this.hostElement)?void 0:t.optionType)?e.subLabel:void 0}"
3767            .value="${a=null==(i=this.hostElement)?void 0:i.optionType,a&&-1!==["one-line","two-line","three-line"].indexOf(a)?e.value:void 0}"
3768            .detail="${function(e){return"three-line"===e}(null==(n=this.hostElement)?void 0:n.optionType)?e.detail:void 0}"
3769            .subValue="${UT(null==(o=this.hostElement)?void 0:o.optionType)?e.subValue:void 0}"
3770            .layout="${h_.Dynamic}"
3771            .dimmed="${e.dimmed}"
3772        >
3773            ${this._renderLeading(e,null==(r=this.hostElement)?void 0:r.leading)}
3774        </acorn-internal-list-item>`}_renderLeading(e,t){switch(t){case U_.Icon:case U_.IconLarge:return $`<acorn-internal-list-item-icon
3775                    slot="${g_.Leading}"
3776                    .size="${t===U_.IconLarge?32:24}"
3777                    .icon="${e.icon}"
3778                ></acorn-internal-list-item-icon>`;case U_.Image:return $`<acorn-internal-list-item-image
3779                    aria-hidden="true"
3780                    slot="${g_.Leading}"
3781                    .imageSrc="${e.imageSrc}"
3782                ></acorn-internal-list-item-image>`;case U_.Badge:return $`<acorn-internal-list-item-badge
3783                    slot="${g_.Leading}"
3784                    .number="${e.badgeNumber}"
3785                    .severity="${e.badgeSeverity}"
3786                ></acorn-internal-list-item-badge>`}}_enableOutlineDueToKeyboardNavigation(){fe.navigationMode!==_e.Tab&&(fe.navigationMode=_e.Tab)}_onListItemSelect(e){e.preventDefault();const t=this._findParentSelectOption(e.target);this.selectOption(t)}_onKeydown(e){var t;this.isTabbable&&e.key===ye.Tab||null==(t=this._navigation)||t.handleKeyboardEvent(e)}_findOptionToFocusOn(){var e;let t=null==(e=this.hostElement)?void 0:e.selectedOptions[0];if(t&&!t.disabled)return t;const i=this._sortedOptions();return this._focusedOption&&-1!==i.indexOf(this._focusedOption)&&(t=this._focusedOption,t&&!t.disabled)?t:(t=i.find(e=>!e.disabled),t&&!t.disabled?t:void 0)}_findParentSelectOption(e){const t=this._list?[...this._list.children]:[];for(;e&&"body"!==e.localName;){const i=t.indexOf(e);if(-1!==i)return this._sortedOptions()[i];e=e.parentElement}}_scrollToFocusedElement(e,t){const i=e>t?1:-1,n=this._list?this._list.children[e+i]||this._list.children[e]:void 0;n&&n.scrollIntoView({block:"nearest"})}_sortedOptions(){if(this.hostElement){const e=[...this.hostElement.options],t=this.hostElement.selectedIndex,i=e[t];return i&&(e.splice(t,1),e.unshift(i)),e}return[]}_optionTypeToListItemLayout(e){return"simple"===e||"one-line"===e?h_.OneLine:"two-line"===e?h_.TwoLine:h_.ThreeLine}};zT([Ht()],tI.prototype,"hostElement",2),zT([Ht()],tI.prototype,"isTabbable",2),zT([ft({name:"select"})],tI.prototype,"_selectEvent",2),zT([Pe()],tI.prototype,"_onListItemSelect",1),zT([Pe()],tI.prototype,"_onKeydown",1),tI=zT([_t({tag:"acorn-select-option-list"})],tI);var iI=class{get length(){return this.elements().length}item(e){return this.elements()[e]||null}namedItem(e){const t=this.elements();let i=t.find(t=>t.getAttribute("id")===e||t.id===e);
3786return i||(i=t.find(t=>t.getAttribute("name")===e||t.name===e)),i||null}updateIndexes(){let e=0;for(;this[e];)delete this[e++];this.elements().forEach((e,t)=>{this[t]=e})}[Symbol.iterator](){return this._createIterator()}_createIterator(){const e=this.elements(),t=e.length;let i=0;return{next:()=>{const n=i>=t;return{value:e[i++],done:n}}}}},nI=class extends iI{get selectedIndex(){const e=this.elements();for(let t=0;t<e.length;t++)if(e[t].selected)return t;return-1}constructor(e){super(),this._select=e,this.updateIndexes()}add(e,t){t?"number"==typeof t?this._select.insertBefore(e,this.item(t)):t instanceof HTMLElement&&this._select.insertBefore(e,t):this._select.appendChild(e)}remove(e){const t=this.item(e);t&&this._select.removeChild(t)}elements(){return this._select&&this._select.slottedOptions?this._select.slottedOptions.content.filter(e=>Qt(e,jT)):[]}},oI=class extends iI{constructor(e){super(),this._select=e,this.updateIndexes()}elements(){const e=[...this._select.options][this._select.selectedIndex];return e?[e]:[]}},rI=Ve.createTranslation({ValidationErrorValueMissing:{sv:"Välj ett av alternativen.",en:"Select one of the options."},BadgeA11yLabel:{sv:"Behöver uppmärksamhet: {0} {1}",en:"Needs attention: {0} {1}"}}),aI="option-list",sI=window.matchMedia("(max-width: 500px)"),lI=class extends Ps{constructor(){super(),this.overlayPositionStrategy=Ml.Auto,this.readOnly=!1,this.autofocus=!1,this._describedById="acorn-described-by-id",this._customSelectId="acorn-custom-select-id",this._selectedIndexOutOfBounds=!1,this._overlayIsOpen=!1,this.addEventListener("selectOptionUpdate",this._onSelectOptionUpdate)}get selectedIndex(){const e=[...this.options],t=e.findIndex(e=>e.selected);return-1!==t?t:this._selectedIndexOutOfBounds||this.placeholder?-1:e.findIndex(e=>!e.disabled)}set selectedIndex(e){const t=this.options.item(e);t?(this._selectedIndexOutOfBounds=!1,t.selected=!0):(this._selectedIndexOutOfBounds=!0,this._unselectCurrentlySelectedOption()),this.invalidate()}get value(){const e=this.selectedOptions[0];return(null==e?void 0:e.value)||""}set value(e){this.rendered?this.selectedIndex=[...this.options].findIndex(t=>t.value===e):this._pendingValue=e}get options(){return this._optionsCollection||(this._optionsCollection=new nI(this)),this._optionsCollection.updateIndexes(),this._optionsCollection}get selectedOptions(){return this._selectedOptionsCollection||(this._selectedOptionsCollection=new oI(this)),this._selectedOptionsCollection.updateIndexes(),this._selectedOptionsCollection}get modelElementTagName(){return"select"}get _isNarrowScreenMode(){return sI.matches||this.overlayPositionStrategy===Ml.Cover}get _overlay(){return this.shadowRoot.getElementById(aI)}get _customSelectElement(){return this.shadowRoot.getElementById(this._customSelectId)}reset(){super.reset();const e=[...this.options].findIndex(e=>e.defaultSelected);this.selectedIndex=e}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),sI.addEventListener("change",this._onScreenSizeChange),this.isConnected&&this.modelElement&&this.rendered&&this._updateModelElement()}disconnectedCallback(){super.disconnectedCallback(),sI.removeEventListener("change",this._onScreenSizeChange)}render(){const e=this._getOptionToDisplayInSelect();return $`
3787            <div class="${this.classes.formFieldWrapper}">
3788                ${this.labelTemplate(this.label,this._customSelectId,this._onLabelClick)}
3789                <div
3790                    @keydown="${this._onKeyDown}"
3791                    @click="${this._onSelectClick}"
3792                    id="${this._customSelectId}"
3793                    class="${this.classes.customSelect}"
3794                    role="combobox"
3795                    aria-label="${j(this.ariaLabel||this.label)}"
3796                    aria-expanded="${this._overlayIsOpen?"true":"false"}"
3797                    aria-disabled="${j(this.disabled?"true":void 0)}"
3798                    aria-describedby="${this._describedById}"
3799                    aria-haspopup="listbox"
3800                    aria-invalid="${this.shouldShowInvalidState()}"
3801                    aria-controls="${aI}"
3802                    aria-required="${j(this.required?"true":void 0)}"
3803                    tabindex="0"
3804                >
3805                    ${this._renderSelectContent(e)}
3806                    <div class="${this.classes.selectArrowWrapper}">
3807                        <acorn-icon
3808                            class="${this.classes.selectArrowIcon}"
3809                            size="${Jo.Regular}"
3810                            icon="${Zo.CaretDown}"
3811                            color="${Og.Brown}"
3812                        ></acorn-icon>
3813                    </div>
3814                </div>
3815                <div id="${this._describedById}">${this.hintTemplate()} ${this.errorTemplate()}</div>
3816            </div>
3817            ${this._isNarrowScreenMode?this._renderBottomSheet():this._renderPopover()}
3818        `}getStyle(){return ge({},super.getStyle(),QT)}beforeInitialRender(){this._pendingValue&&(this.selectedIndex=[...this.options].findIndex(e=>e.value===this._pendingValue),this._pendingValue=void 0)}afterRender(){const e=[...this.options][this.selectedIndex];e&&!e.selected&&(e.selected=!0),this.options.updateIndexes(),this.selectedOptions.updateIndexes(),this._updateModelElement(),this.updateValidity()}updateValidity(){const e={};!this.required||this.selectedOptions[0]&&this.selectedOptions[0].value||(e.valueMissing=!0),super.updateValidity(e)}getFocusElement(){return this._customSelectElement}onFocusElementEvent(){const e=this.shadowRoot.activeElement===this._customSelectElement||this._overlayIsOpen;this.updateFormControlFocusState(e)}getErrorMessage(e){return e===_s.ValueMissing?rI.ValidationErrorValueMissing:super.getErrorMessage(e)}_onRequestReposition(e){if(!this._customSelectElement)return;const t=this._customSelectElement.getBoundingClientRect();t.x-=4,t.y-=4,t.width+=8,t.height+=8;e.target.setFocalRect(t)}_onOverlayOpenComplete(){this._overlay.onOpen()}_onKeyDown(e){-1!==[ye.ArrowUp,ye.ArrowDown,ye.Space].indexOf(e.key)&&(this._showOptions(),e.preventDefault())}_onLabelClick(){this.disabled||this.focus()}_onSelectClick(){this._showOptions()}_unselectCurrentlySelectedOption(){[...this.selectedOptions].forEach(e=>e.selected=!1)}_onSelectOptionUpdate(e){e.stopImmediatePropagation(),this._overlay.invalidate(),this.invalidate()}_onOptionListCloseEvent(){this._overlayIsOpen=!1}_onOptionListSelectEvent(e){e.preventDefault(),this.focus(),this._overlayIsOpen=!1,this.selectedIndex!==e.detail.selectedIndex&&(this.selectedIndex=e.detail.selectedIndex,this.updateValidity(),this.dispatchEvent(bs()),this.dispatchEvent(vs()))}_onScreenSizeChange(){this.invalidate()}_showOptions(){this._overlayIsOpen||this.disabled||!this.options.length||(this._overlayIsOpen=!0)}_updateModelElement(){[...this.options].forEach(e=>{e.updateModelElement(this.modelElement)})}_getOptionToDisplayInSelect(){const e=this.selectedOptions[0];if(e)return e}_renderPopover(){return $`
3819            <acorn-internal-popover
3820                .open="${this._overlayIsOpen}"
3821                .label="${this.label}"
3822                position-strategy="${this.overlayPositionStrategy}"
3823                alignment="${Nl.Stretch}"
3824                anchor-strategy="${Bl.Inside}"
3825                max-height="${j(this.overlayMaxHeight)}"
3826                @requestReposition="${this._onRequestReposition}"
3827                @close="${this._onOptionListCloseEvent}"
3828                @openComplete="${this._onOverlayOpenComplete}"
3829            >
3830                <acorn-internal-scroll-pane class="${this.classes.popoverScroll}">
3831                    <acorn-select-option-list
3832                        id="${aI}"
3833                        .hostElement="${this}"
3834                        @select="${this._onOptionListSelectEvent}"
3835                    ></acorn-select-option-list>
3836                </acorn-internal-scroll-pane>
3837            </acorn-internal-popover>
3838        `}_renderBottomSheet(){return $`
3839            <acorn-internal-bottom-sheet
3840                .open="${this._overlayIsOpen}"
3841                .label="${this.label}"
3842                @close="${this._onOptionListCloseEvent}"
3843                @openComplete="${this._onOverlayOpenComplete}"
3844            >
3845                <acorn-select-option-list
3846                    id="${aI}"
3847                    .isTabbable="${!0}"
3848                    .hostElement="${this}"
3849                    @select="${this._onOptionListSelectEvent}"
3850                ></acorn-select-option-list>
3851            </acorn-internal-bottom-sheet>
3852        `}_renderSelectContent(e){if(!e&&this.placeholder)return $`${this.icon?$`<acorn-icon
3853                          icon="${this.icon}"
3854                          class="${this.classes.icon}"
3855                          color="${Og.Brown}"
3856                          size="${Jo.Regular}"
3857                      ></acorn-icon>`:void 0} <span class="${this.classes.placeholder}">${this.placeholder}</span>`;if(!e)return;const t=UT(this.optionType)?h_.TwoLine:h_.OneLine;return $`<div class="${this.classes.itemWrapper}">
3858            ${this._overlayIsOpen?null:$`<div class="${this.classes.screenReaderOnly}">
3859                      ${x_.generateAccessibilityLabel(jT.toListItemAccessibilityLabelStructure(e),t,this.leading)}
3860                  </div>`}
3861
3862            <acorn-internal-list-item
3863                aria-hidden="true"
3864                .label="${e.label}"
3865                .subLabel="${e.detail}"
3866                .value="${e.subLabel}"
3867                .detail="${e.secondaryDetail}"
3868                .layout="${t}"
3869            >
3870                ${this._renderLeading(e)}
3871            </acorn-internal-list-item>
3872        </div> `}_renderLeading(e){const t=e.icon?e.icon:this.icon;switch(this.leading){case U_.Icon:case U_.IconLarge:return $`<acorn-internal-list-item-icon
3873                    slot="${g_.Leading}"
3874                    .size="${this.leading===U_.IconLarge?32:24}"
3875                    .icon="${t}"
3876                    .disabled="${e.disabled}"
3877                ></acorn-internal-list-item-icon>`;case U_.Image:return $`<acorn-internal-list-item-image
3878                    aria-hidden="true"
3879                    slot="${g_.Leading}"
3880                    .imageSrc="${e.imageSrc}"
3881                ></acorn-internal-list-item-image>`;case U_.Badge:return $`<acorn-internal-list-item-badge
3882                    slot="${g_.Leading}"
3883                    .number="${e.badgeNumber}"
3884                    .severity="${e.badgeSeverity}"
3885                ></acorn-internal-list-item-badge>`}if(this.icon)return $`<acorn-internal-list-item-icon
3886                slot="${g_.Leading}"
3887                .size="${24}"
3888                .icon="${t}"
3889                .disabled="${e.disabled}"
3890            ></acorn-internal-list-item-icon>`}};zT([gt(),zt({type:Zo})],lI.prototype,"icon",2),zT([gt(),zt({type:Number})],lI.prototype,"overlayMaxHeight",2),zT([gt(),zt({type:Ml})],lI.prototype,"overlayPositionStrategy",2),zT([gt(),zt({type:GT})],lI.prototype,"optionType",2),zT([gt(),zt({type:U_})],lI.prototype,"leading",2),zT([gt()],lI.prototype,"placeholder",2),zT([ri(qT,{strict:!0,selectAllTypes:jT.config.type}),Ht()],lI.prototype,"slottedOptions",2),zT([Ht()],lI.prototype,"_overlayIsOpen",2),zT([Pe()],lI.prototype,"_onRequestReposition",1),zT([Pe()],lI.prototype,"_onOverlayOpenComplete",1),zT([Pe()],lI.prototype,"_onKeyDown",1),zT([Pe()],lI.prototype,"_onLabelClick",1),zT([Pe()],lI.prototype,"_onSelectClick",1),zT([Pe()],lI.prototype,"_onOptionListCloseEvent",1),zT([Pe()],lI.prototype,"_onOptionListSelectEvent",1),zT([Pe()],lI.prototype,"_onScreenSizeChange",1),lI=zT([_t({tag:"acorn-select"})],lI);var cI=Object.defineProperty,dI=Object.getOwnPropertyDescriptor,hI=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?dI(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&cI(t,i,r),r},pI=yt("acorn-side-navbar");function uI(e){let t=e;for(;t&&!Qt(t,pI);)t=t.parentElement;return t&&Qt(t,pI,"setSelected")?t:null}var gI=0,mI=class extends Ti{constructor(){super(...arguments),this.selected=!1,this.blocked=!1,this.value="",this.link="",this.label="",this.optionId="option@"+gI++}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this._invalidateRoot()}disconnectedCallback(){this._invalidateRoot()}getPath(){return this.selected?this.parentElement&&"getPath"in this.parentElement?`${this.parentElement.getPath()}/${this.optionId}/`:`/${this.optionId}/`:""}render(){}getStyle(){return{}}onSelected(){const e=uI(this.parentElement);if(e){const t=this.getPath();e.setSelected(t)}this.selected||this.removeAttribute("selected")}onBlockedChanged(){this._invalidateRoot()}_invalidateRoot(){const e=uI(this.parentElement);e&&e.invalidate()}};hI([gt(),zt({type:Boolean})],mI.prototype,"selected",2),hI([gt(),zt({type:Boolean})],mI.prototype,"blocked",2),hI([gt(),zt({type:Zo})],mI.prototype,"icon",2),hI([gt()],mI.prototype,"value",2),hI([gt()],mI.prototype,"link",2),hI([gt()],mI.prototype,"label",2),hI([wi("selected")],mI.prototype,"onSelected",1),hI([wi("blocked")],mI.prototype,"onBlockedChanged",1),mI=hI([_t({tag:"acorn-side-navbar-option"})],mI);var bI=0,vI=class extends Ti{constructor(){super(...arguments),this.blocked=!1,this.label="",this.groupId="optionGroup@"+bI++,this.isExpanded=!1,this.isActive=!1}get options(){return[...this.children].filter(e=>e instanceof mI||e instanceof vI)}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this._invalidateRoot()}disconnectedCallback(){this._invalidateRoot()}getPath(){return this.parentElement&&"getPath"in this.parentElement?`${this.parentElement.getPath()}/${this.groupId}/`:`/${this.groupId}/`}render(){}getStyle(){return{}}onBlockedChanged(){this._invalidateRoot()}_invalidateRoot(){const e=uI(this.parentElement);
3890e&&e.invalidate()}};hI([gt(),zt({type:Boolean})],vI.prototype,"blocked",2),hI([gt()],vI.prototype,"label",2),hI([gt(),zt({type:Zo})],vI.prototype,"icon",2),hI([wi("blocked")],vI.prototype,"onBlockedChanged",1),vI=hI([_t({tag:"acorn-side-navbar-option-group"})],vI);var yI={display:"block",listStyle:"none",padding:"0"},_I={...$o(),...Qi(),color:zi.Text.Regular.high,boxSizing:"border-box",listStyle:"none",padding:"6px 16px",textAlign:"left",textDecoration:"none",display:"flex",flexDirection:"row",alignItems:"center",width:"100%",minHeight:"40px","&[active]":{backgroundColor:zi.Overlay.active},"&:hover:not([aria-disabled=true])":{backgroundColor:zi.Overlay.hover}},fI={$host:{display:"block",margin:"8px 0",outline:"none !important"},wrapper:{maxWidth:"100vw"},groupHeader:{..._I,...Qi(),cursor:"pointer",border:"0",backgroundColor:"transparent","&[aria-expanded=true]":{backgroundColor:zi.Overlay.hover}},menuList__0:{...yI,margin:0},menuList__1:{...yI},menuList__2:{...yI,display:"none",paddingTop:0,"&[expanded]":{backgroundColor:zi.Overlay.hover,display:"block"},marginBottom:"8px"},menuSeparator:{margin:"8px 0",height:"1px",backgroundColor:zi.Line.Regular.low},menuOption__0:{..._I},menuOption__1:{..._I},menuOption__2:{..._I,"&[aria-disabled=true]":{cursor:"default",opacity:"0.5"},"&[active]":{backgroundColor:zi.Overlay.active,borderLeft:`5px solid ${zi.Surface.Brand.highStatic}`,paddingLeft:"11px"}},menuOptionLabel:{flexGrow:"1",width:"100%"},menuOptionIconWrapper:{display:"flex",flexShrink:"0",pointerEvents:"none",marginRight:"5px",width:"25px",height:"28px",position:"relative",alignItems:"center"},menuIcon:{position:"absolute"},menuBlockedIcon:{pointerEvents:"none",position:"absolute",top:"0",right:"0",backgroundColor:zi.Surface.elevation,borderRadius:"50%"},menuGroupHeaderArrow:{pointerEvents:"none",marginLeft:"6px",transformOrigin:"50% 50%",transition:"transform 0.25s ease-in",transform:"rotate(0deg)","&[active]":{transform:"rotate(180deg)"}}},xI=class extends Ti{constructor(){super(...arguments),this._selectedPath="",this._invalidActiveState=!0}get _menuItems(){return[...this.children].filter(e=>e instanceof mI||e instanceof vI)}get _menuOptions(){return[...this.querySelectorAll(mI.config.tag)]}render(){return $`
3891            <nav class="${this.classes.wrapper}">
3892                <ul class="${this.classes.menuList__0}">
3893                    ${this._menuItems.map((e,t)=>{let i;return e instanceof vI?i=this._renderGroup(e,1,t):e instanceof mI&&(i=this._renderOption(e,1)),t>0?$`
3894                                  <li>
3895                                      <div class="${this.classes.menuSeparator}"></div>
3896                                      ${i}
3897                                  </li>
3898                              `:$` <li>${i}</li> `})}
3899                </ul>
3900            </nav>
3901        `}getStyle(){return fI}setSelected(e){""===e&&this._menuOptions.find(e=>e.selected)||(this._selectedPath=e,this._invalidActiveState=!0,this.invalidate())}beforeRender(){this._invalidActiveState&&(this._menuItems.forEach(e=>this._setActiveNodes(e)),this._invalidActiveState=!1)}_renderGroup(e,t,i,n){const{blocked:o,icon:r,label:a,isActive:s,isExpanded:l}=e,c=n||o;return $`
3902            ${e.label?$`
3903                      <button
3904                          @click="${{handleEvent:t=>this._onMenuToggle(t,e,c)}}"
3905                          class="${this.classes.groupHeader}"
3906                          aria-disabled="${c?"true":"false"}"
3907                          aria-expanded="${e.isExpanded?"true":"false"}"
3908                          aria-controls="${`${e.label}@optionList`}"
3909                          ?active="${e.isActive}"
3910                      >
3911                          ${this._renderMenuItemContent({icon:r,label:a,isActive:s,isBlocked:c,isExpanded:l})}
3912                      </button>
3913                  `:null}
3914            <ul
3915                id="${`${e.label}@optionList`}"
3916                class="${this.classes[`menuList__${t}`]}"
3917                ?expanded="${e.isExpanded}"
3918            >
3919                ${e.options.map((e,i)=>e instanceof vI?$` <li>${this._renderGroup(e,t+1,i,c)}</li> `:e instanceof mI?$` <li>${this._renderOption(e,t,c)}</li> `:void 0)}
3920            </ul>
3921        `}_renderOption(e,t,i){const n=i||e.blocked,{icon:o,label:r,selected:a,value:s,link:l}=e;return $`
3922            <a
3923                @click="${{handleEvent:t=>this._onMenuOption(t,e,n)}}"
3924                class="${this.classes[`menuOption__${t}`]}"
3925                aria-disabled="${n?"true":"false"}"
3926                href="${l||"/"}"
3927                value="${s}"
3928                aria-current="${j(a?"page":void 0)}"
3929                ?active="${a}"
3930            >
3931                ${this._renderMenuItemContent({icon:o,label:r,isActive:a,isBlocked:!(!n||!o)})}
3932            </a>
3933        `}_renderMenuItemContent({icon:e,label:t,isActive:i,isBlocked:n,isExpanded:o}){return $`
3934            <span class="${this.classes.menuOptionIconWrapper}" aria-hidden="true">
3935                ${e?$`
3936                          <acorn-icon
3937                              size="${Jo.XSmall}"
3938                              class="${this.classes.menuIcon}"
3939                              icon="${e}"
3940                              color="${i?Og.OrangeMain:Og.Brown}"
3941                          >
3942                          </acorn-icon>
3943                      `:void 0}
3944                ${n?$`
3945                          <acorn-icon
3946                              size="${Jo.XSmall}"
3947                              class="${this.classes.menuBlockedIcon}"
3948                              icon="${Zo.Lock}"
3949                              color="${Og.OrangeMain}"
3950                          >
3951                          </acorn-icon>
3952                      `:null}
3953            </span>
3954            <span class="${this.classes.menuOptionLabel}">${t}</span>
3955            ${void 0!==o?$`
3956                      <acorn-internal-icon
3957                          ?active="${o}"
3958                          class="${this.classes.menuGroupHeaderArrow}"
3959                          icon="${Zo.CaretDown}"
3960                          size="${Jo.XSmall}"
3961                          color="${zi.Icon.regular}"
3962                      >
3963                      </acorn-internal-icon>
3964                  `:null}
3965        `}_onMenuOption(e,t,i=!1){e.preventDefault();this._select.emit({isBlocked:i,value:t.value,link:t.link}).defaultPrevented||i||(t.link&&(window.location.href=t.link),t.selected=!0)}_onMenuToggle(e,t,i=!1){e.preventDefault();this._toggleGroup.emit({isBlocked:i}).defaultPrevented||(t.isExpanded=!t.isExpanded,this.invalidate())}_setActiveNodes(e){e instanceof vI?(e.isActive=e.isExpanded=-1!==this._selectedPath.indexOf(`/${e.groupId}/`),e.options.forEach(e=>this._setActiveNodes(e))):e instanceof mI&&(e.selected=-1!==this._selectedPath.indexOf(`/${e.optionId}/`))}};hI([Ht()],xI.prototype,"_selectedPath",2),hI([ft({cancelable:!0})],xI.prototype,"_select",2),hI([ft({cancelable:!0})],xI.prototype,"_toggleGroup",2),xI=hI([_t({tag:"acorn-side-navbar"})],xI);var wI=Object.defineProperty,CI=Object.getOwnPropertyDescriptor,SI=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?CI(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&wI(t,i,r),r},$I=Ve.createTranslation({Increase:{sv:"Öka",en:"Increase"},Decrease:{sv:"Minska",en:"Decrease"},RangeOverflowError:{sv:"Ange ett värde lika med eller lägre än ",en:"Enter a value equal or lower than "},RangeUnderflowError:{sv:"Ange ett värde lika med eller högre än ",en:"Enter a value equal or higher than "},StepMissMatchError:{sv:"Ange ett giltigt värde.",en:"Enter a valid value."}}),kI=24,EI={transform:"translateX(calc(-50% + 12px)) translateY(0) scale(1, 1)"};function TI(e){return{trackSelected:e.disabled?zi.Icon.disabled:zi.ComponentSpecific.Slider.trackSelected,track:e.disabled?zi.Surface.disabled:zi.ComponentSpecific.Slider.track}}function II(e,t){return e/100*t*2*-1+t}function OI(e){return(e.valueAsNumber-e.min)/(e.max-e.min)*100}function DI(e,t){const i=OI(e);return t*(i/100)+II(i,12)}var RI={height:"8px",borderRadius:"16px",width:"100%",cursor:"pointer"},FI={height:"24px",width:"24px",borderRadius:"50%",backgroundColor:e=>e.disabled?zi.Icon.disabled:zi.ComponentSpecific.Slider.knob,border:0,cursor:"pointer",boxShadow:e=>e.disabled?"none":"0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 2px 1px -1px rgba(0, 0, 0, 0.12), 0px 1px 3px 0px rgba(0, 0, 0, 0.20)"},LI={$host:{display:"block"},$$slotted:{"&(acorn-form-field-hint)":{paddingTop:"8px"}},topRowContainer:{justifyContent:"space-between",display:"flex",alignItems:"end"},labelWrapper:{width:e=>e._isCollapsed?"100%":"324px",marginBottom:"0px"},textField:{width:e=>e._isCollapsed?"100%":"160px",margin:"0"},output:{...function(e=zi.Text.Regular.high){return{fontFamily:"Roboto, Arial, Helvetica",fontWeight:"400",lineHeight:"1.2",fontSize:kn(12),...fn({xs:{fontSize:kn(14)},sm:{fontSize:kn(12)},md:{fontSize:kn(14)}}),color:e,"@media print":{fontSize:kn(14)}}}(),whiteSpace:"nowrap",marginLeft:"8px"},inputWrapper:{display:"flex",position:"relative",width:"100%",alignItems:"center",marginTop:"24px",borderRadius:"16px",marginBottom:e=>e._isCollapsed?"24px":"8px",background:e=>{const t=function(e){const t=e._nativeInput.clientWidth,i=DI(e,t);return{left:(i-18)/t*100+"%",right:(i+18)/t*100+"%"}}(e);return`linear-gradient(\n                to right,\n                ${TI(e).trackSelected} 0%,\n                ${TI(e).trackSelected} ${t.left},\n                transparent ${t.left},\n                transparent ${t.right},\n                ${TI(e).track} ${t.right},\n                ${TI(e).track} 100%\n            )`},"&:hover .tooltip":EI},tooltip:{position:"absolute",fontSize:kn(16),minWidth:"48px",lineHeight:"36px",boxSizing:"border-box",textAlign:"center",color:zi.Text.white,whiteSpace:"nowrap",background:zi.Surface.Interactive.active,borderRadius:"20px",padding:"2px 16px",bottom:"24px",display:e=>e.hideTooltip?"none":"block",transform:"translateX(calc(-50% + 12px)) translateY(40px) scale(0, 0)",left:e=>function(e){if(!e._nativeInput)return"0";const t=e._nativeInput.clientWidth,i=DI(e,t)-12,n=e._tooltipElement.clientWidth,o=n/2-12,r=t-n/2-12;return i<o?`${o}px`:i>r?`${r}px`:i+"px"}(e),transition:"transform .15s ease-in"},steps:{position:"absolute",display:"flex",flexDirection:e=>e.showSteps?"row":"row-reverse",justifyContent:"space-between",width:e=>`calc(100% - ${function(e){const t=(e.max-e.min)%e.step/(e.max-e.min)*100;return t+"% + "+t/100*kI+"px"}(e)} - 16px)`,padding:"0 8px",pointerEvents:"none"},step:{width:"4px",height:"4px",borderRadius:"4px",background:e=>TI(e).trackSelected,"&[data-active]":{background:e=>TI(e).track}},slider:{...Qi(),appearance:"none",flex:"1 1 100%",margin:0,height:"8px",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...RI},"&::-webkit-slider-thumb":{...FI,appearance:"none",transform:"translateY(-8px)"},"&::-moz-range-track":{...RI},"&::-moz-range-thumb":{...FI},"&::-ms-track":{...RI,background:"transparent",borderColor:"transparent",borderWidth:"8px 0",color:"transparent"},"&::-ms-fill-lower":{background:e=>TI(e).track,borderRadius:"4px"},"&::-ms-fill-upper":{background:e=>TI(e).trackSelected,borderRadius:"4px"},"&::-ms-thumb":{...FI,transform:"translateY(0)"},"&::-ms-tooltip":{display:"none"},"&:hover":{"&::-webkit-slider-thumb":{height:"26px",width:"26px",transform:e=>`translateY(-9px) translateX(${II(OI(e),-2)/2}px)`},"&::-moz-range-thumb":{height:"26px",width:"26px",transform:e=>`translateX(${II(OI(e),-2)/2}px)`}}}},AI="tooltip",MI="slider",BI="textField",PI="errorAndHint",NI=class extends Ps{constructor(){super(...arguments),this._isCollapsed=!1,this.suffix="",this.showSteps=!1,this.showTextField=!1,this.min=0,this.max=100,this.step=1,this.hideTooltip=!1,this.readOnly=!1}get _nativeInput(){return this.shadowRoot.getElementById(MI)}get _tooltipElement(){return this.shadowRoot.getElementById(AI)}get valueAsNumber(){return parseFloat(this.value)}get textFieldValue(){var e;return null==(e=this._textFieldElement)?void 0:e.value}get modelElementType(){return"range"}get _textFieldElement(){return this.shadowRoot.getElementById(BI)}get _fixedDigits(){const e=this.getAttribute("value"),t=e&&e.includes(".")?e.split(".")[1].length:0,i=this.min.toString().includes(".")?this.min.toString().split(".")[1].length:0,n=this.step.toString(),o=n.includes(".")?n.split(".")[1].length:0;return Math.max(t,Math.max(o,i))}connectedCallback(){super.connectedCallback(),this._resizeObserver||this._addResizeObserver()}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver&&this._resizeObserver.disconnect(),this._resizeStyleUpdateThrottle&&(window.clearTimeout(this._resizeStyleUpdateThrottle),this._resizeStyleUpdateThrottle=void 0)}render(){return $`
3966            <div class="${this.classes.formFieldWrapper}">
3967                <div class="${this.classes.topRowContainer}">
3968                    ${this.labelTemplate(this.label,MI)} ${this._isCollapsed?null:this._renderTextField()}
3969                </div>
3970
3971                <div class="${this.classes.inputWrapper}">
3972                    <div class="${this.classes.steps}">
3973                        ${this.showSteps?$`${this._getListOptions()}`:$`<div class="${this.classes.step}"></div>`}
3974                    </div>
3975                    <input
3976                        ?disabled="${this.disabled}"
3977                        ?autofocus="${this.autofocus}"
3978                        @input="${this._onInputEvent}"
3979                        @change="${this._onChangeEvent}"
3980                        @focus="${this._onFocusEvent}"
3981                        @blur="${this._onFocusEvent}"
3982                        @mousedown="${this._showTooltip}"
3983                        @touchstart="${this._showTooltip}"
3984                        @mouseup="${this._hideTooltip}"
3985                        @touchend="${this._hideTooltip}"
3986                        @invalid="${this.preventBrowserSpecificValidationErrorToBeShown}"
3987                        class="${this.classes.slider}"
3988                        id="${MI}"
3989                        aria-label="${j(this.ariaLabel||this.label)}"
3990                        aria-describedby="${PI}"
3991                        aria-invalid="${this.shouldShowInvalidState()}"
3992                        type="range"
3993                        min="${j(isNaN(this.min)?void 0:this.min)}"
3994                        max="${j(isNaN(this.max)?void 0:this.max)}"
3995                        step="${j(isNaN(this.step)?void 0:this.step)}"
3996                        .value="${this.value}"
3997                        aria-live="polite"
3998                        required="${j(this.required||void 0)}"
3999                    />
4000                    <output for="${MI}" class="${this.classes.tooltip}" id="${AI}">
4001                        ${this._formatNumber(this.value)} ${this.suffix}
4002                    </output>
4003                </div>
4004                ${this._isCollapsed?this._renderTextField():null}
4005                <div id="${PI}">${this.hintTemplate()} ${this.errorTemplate()}</div>
4006            </div>
4007        `}getStyle(){return ge({},super.getStyle(),LI)}onValueChange(){this._textFieldElement&&(this.shadowRoot.activeElement===this._textFieldElement?(this.dispatchEvent(bs()),this.dispatchEvent(vs())):this._textFieldElement.value=this.value)}getErrorMessage(e){switch(e){case _s.RangeOverflow:return $I.RangeOverflowError+this.max;case _s.RangeUnderflow:return $I.RangeUnderflowError+this.min;case _s.StepMismatch:return $I.StepMissMatchError;default:return super.getErrorMessage(e)}}afterRender(){var e,t;this._textFieldElement&&(this._textFieldElement.touched=!0,this._textFieldElement.dirty=!0),this.value!==(null==(e=this._nativeInput)?void 0:e.value)&&(this.value=null==(t=this._nativeInput)?void 0:t.value),this._resizeObserver.observe(this)}getFocusElement(){return this._nativeInput}updateValidity(e={}){var t;null==(t=this._textFieldElement)||t.reportValidity(),super.updateValidity(e)}_showTooltip(){this.hideTooltip||(this._tooltipElement.style.transform=EI.transform,this.invalidateStyle())}_hideTooltip(){this.hideTooltip||(this._tooltipElement.style.transform="",this.invalidateStyle())}_getListOptions(){const e=this.valueAsNumber,t=[];for(let i=this.min;i<=this.max;i+=this.step){const n=i<e;t.push($`<div class="${this.classes.step}" ?data-active="${n}"></div>`)}return t}_onInputEvent(){this.value=this._nativeInput.value,this._textFieldElement&&(this._textFieldElement.value=this.value),this.updateValidity()}_onChangeEvent(e){this.value=e.target.value,this.redispatchEvent(e)}_onFocusEvent(e){this.updateFormControlFocusState("focus"===e.type),"focus"===e.type?this._showTooltip():this._hideTooltip()}_onTextFieldFocusEvent(e){this._textFieldElement.value=this.value,this._onFocusEvent(e),this.updateValidity()}_onTextFieldInputEvent(){this._updateWithCustomValidity(),""===this._textFieldElement.value?this._nativeInput.value=this.min.toString():this._nativeInput.value=this._textFieldElement.value,this.value=this._nativeInput.value}_updateWithCustomValidity(){const e={};this._doesStepMissMatch()&&(e.stepMismatch=!0),Number(this._textFieldElement.value)>this.max?e.rangeOverflow=!0:(Number(this._textFieldElement.value)<this.min||""===this._textFieldElement.value)&&(e.rangeUnderflow=!0),this.updateValidity(e)}_formatNumber(e){return e.replace(/(?!^)(?=(?:\d{3})+(?:$))/gm," ")}_addResizeObserver(){this._resizeObserver=new ResizeObserver(e=>{this._isCollapsed=e[0].contentRect.width<500,this._resizeStyleUpdateThrottle||(this._resizeStyleUpdateThrottle=window.setTimeout(()=>{this.invalidateStyle(),this._resizeStyleUpdateThrottle=void 0},100))}),this._resizeObserver.observe(this)}_renderTextField(){return this.showTextField?$`
4008                  <acorn-text-field
4009                      @focus="${this._onTextFieldFocusEvent}"
4010                      @blur="${this._onTextFieldFocusEvent}"
4011                      @input="${this._onTextFieldInputEvent}"
4012                      id="${BI}"
4013                      ?autofocus="true"
4014                      ?clearable="false"
4015                      ?disabled="${this.disabled}"
4016                      ?readonly="${this.readOnly}"
4017                      aria-label="${j(this.ariaLabel||this.label)}"
4018                      ?required="${this.required}"
4019                      input-suffix="${this.suffix}"
4020                      type="number"
4021                      error-handling="${Ss.InvalidState}"
4022                      error="${this.validity.valid?"":"customError"}"
4023                      class="${this.classes.textField}"
4024                      value="${this.value}"
4025                      aria-describedby="${PI}"
4026                      @invalid="${this.preventBrowserSpecificValidationErrorToBeShown}"
4027                      aria-invalid="${this.shouldShowInvalidState()}"
4028                  >
4029                  </acorn-text-field>
4030              `:null}_doesStepMissMatch(){let e=parseFloat(this.textFieldValue);for(e=this._toFixedAsNumber(e-this._getValueOfWholeStepsCloseToValue(e));e>this.min;)e=this._toFixedAsNumber(e-this.step);for(;e<this.min;)e=this._toFixedAsNumber(e+this.step);return e!==this.min}_toFixedAsNumber(e){return parseFloat(e.toFixed(this._fixedDigits))}_getValueOfWholeStepsCloseToValue(e){let t;const i=this.step;return t=e>=this.min?Math.floor(e/i):Math.ceil(e/i),this._toFixedAsNumber(t*i)}};SI([Ht()],NI.prototype,"_isCollapsed",2),SI([gt()],NI.prototype,"suffix",2),SI([gt(),zt({type:Boolean})],NI.prototype,"showSteps",2),SI([gt(),zt({type:Boolean})],NI.prototype,"showTextField",2),SI([gt(),zt({type:Number})],NI.prototype,"min",2),SI([gt(),zt({type:Number})],NI.prototype,"max",2),SI([gt(),zt({type:Number})],NI.prototype,"step",2),SI([gt(),zt({type:Boolean})],NI.prototype,"hideTooltip",2),SI([wi("value")],NI.prototype,"onValueChange",1),SI([Pe()],NI.prototype,"_showTooltip",1),SI([Pe()],NI.prototype,"_hideTooltip",1),SI([Pe()],NI.prototype,"_onInputEvent",1),SI([Pe()],NI.prototype,"_onChangeEvent",1),SI([Pe()],NI.prototype,"_onFocusEvent",1),SI([Pe()],NI.prototype,"_onTextFieldFocusEvent",1),SI([Pe()],NI.prototype,"_onTextFieldInputEvent",1),NI=SI([_t({tag:"acorn-slider"})],NI);var HI=Object.defineProperty,zI=Object.getOwnPropertyDescriptor,WI=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?zI(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&HI(t,i,r),r},VI={$host:{display:e=>e.active?"block":"none"}},jI=0,GI=class extends Ti{constructor(){super(...arguments),this.value="tab@"+jI++}getStyle(){return VI}render(){return $`<slot></slot>`}onPropertyChange(){var e;null==(e=this._tabGroupTabChange)||e.emit({label:this.label,active:this.active,value:this.value})}};WI([gt()],GI.prototype,"label",2),WI([gt(),zt({type:Boolean})],GI.prototype,"active",2),WI([ft({bubbles:!0})],GI.prototype,"_tabGroupTabChange",2),WI([wi("label"),wi("active")],GI.prototype,"onPropertyChange",1),GI=WI([_t({tag:"acorn-tab-group-tab",alias:["acorn-tab"]})],GI);var qI={$host:{display:"block",outline:"0 !important",...Ln(Dn.Large)},tabBar:{backgroundColor:zi.Surface.Brand.lower},content:{...Qi(),paddingTop:"16px"}},UI=class extends Ti{set activeTab(e){this._activeTab=Math.max(Math.min(e,this.children.length-1),0)}get activeTab(){return this._activeTab||0}get _activeTabElement(){return this._tabSlot.content[this.activeTab]}getStyle(){return qI}beforeRender(){this._setActiveTab(this._activeTabElement.value)}render(){return $`
4031            <acorn-internal-tab-bar
4032                id="tabBar"
4033                class="${this.classes.tabBar}"
4034                .tabs="${this._tabSlot.content.map(({label:e,active:t,value:i})=>({label:e,active:t,value:i}))}"
4035                @tabActive="${this._onTabActive}"
4036            ></acorn-internal-tab-bar>
4037            <div
4038                id="content"
4039                class="${this.classes.content}"
4040                @tabGroupTabChange="${this._onTabChange}"
4041                role="tabpanel"
4042                tabindex="-1"
4043            >
4044                ${this._tabSlot}
4045            </div>
4046        `}_onTabActive(e){const t=this.activeTab,i=this._activeTabElement;this._setActiveTab(e.detail.value),this._tabChange.emit({activeTab:this.activeTab,activeTabElement:this._activeTabElement,previousActiveTab:t,previousActiveTabElement:i}),this.invalidate()}_onTabChange(e){e.stopPropagation(),e.detail.active&&this._setActiveTab(e.detail.value),this.invalidate()}_setActiveTab(e){this._activeTab=this._tabSlot.content.findIndex(t=>t.value===e),this._tabSlot.content.forEach((e,t)=>e.active=t===this._activeTab)}};WI([gt(),zt({type:Ge})],UI.prototype,"activeTab",1),WI([Ht()],UI.prototype,"_activeTab",2),WI([ft()],UI.prototype,"_tabChange",2),WI([ri("tab",{selectAllTypes:GI.config.type,strict:!0})],UI.prototype,"_tabSlot",2),WI([Pe()],UI.prototype,"_onTabActive",1),WI([Pe()],UI.prototype,"_onTabChange",1),UI=WI([_t({tag:"acorn-tab-group"})],UI);var KI=Object.defineProperty,YI=Object.getOwnPropertyDescriptor,XI=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?YI(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&KI(t,i,r),r},QI={$host:{position:"fixed",zIndex:1e4,display:e=>e.open?"block":"none"},wrapper:{color:zi.Text.Regular.high,display:"inline-block",padding:"8px",boxShadow:"1px 1px 10px rgba(0, 0, 0, 0.25)",backgroundColor:zi.Surface.elevation}},ZI=class extends Ti{constructor(){super(...arguments),this.text="",this.open=!1}disconnectedCallback(){this.open=!1}getStyle(){return QI}render(){return $` <div class="${this.classes.wrapper}">${this.text}</div> `}updatePosition(){if(!this.targetHeaderCell)return;const e=this.targetHeaderCell.getBoundingClientRect(),t=Math.max(100,document.documentElement.clientWidth-e.x),i=Math.max(0,e.x+100-document.documentElement.clientWidth);this.style.minWidth="100px",this.style.maxWidth=`${t}px`,this.style.left=e.x-i+"px",this.style.top=`${e.y+24}px`}onOpenChange(){this.open||(this.targetHeaderCell=void 0)}};XI([gt()],ZI.prototype,"text",2),XI([Ht()],ZI.prototype,"open",2),XI([wi("open")],ZI.prototype,"onOpenChange",1),ZI=XI([_t({tag:"acorn-table-tooltip"})],ZI);var JI=Ve.createTranslation({AriaPage:{sv:"Sidan",en:"Page"},AriaTablePagination:{sv:"Sidnumrering",en:"Table pagination"},AriaGoToPage:{sv:"Gå till sidan",en:"Go to page"},RangeOutOf:{sv:"av",en:"of"},PreviousPage:{sv:"Föregående sida",en:"Previous page"},NextPage:{sv:"Nästa sida",en:"Next page"}}),eO={$host:{display:"block"},wrapper:{display:"flex",flexDirection:"row",gap:"8px",alignItems:"center",...Qi()},pageListWrapper:{position:"relative"},pageListCurrentMarker:{width:"28px",height:"28px",backgroundColor:zi.Surface.Brand.medium,borderRadius:"50%",display:"block",position:"absolute",left:e=>28*e.getCurrentPageListIndex()+"px",transition:"left ease-in "+(ai.isRunningTests?"0":"0.25s")},pageList:{margin:0,padding:0,listStyle:"none",display:"flex",flexDirection:"row",position:"relative"},pageListItem:{width:"28px",height:"28px",lineHeight:"28px",textAlign:"center"},pageIndexButton:{...$o(zi.Text.Regular.high),width:"inherit",height:"inherit",curs
4046or:"pointer",border:"0",backgroundColor:"transparent",...Qi()},rangeLabel:{...ko(zi.Text.Regular.high),marginRight:"8px"}},tO=class extends Ti{constructor(){super(),this.pageCount=0,this.totalRowCount=0,this.currentPage=1,this.rowsPerPage=0,this.currentPageIndex=0,this._onPrevious=this._onPrevious.bind(this),this._onNext=this._onNext.bind(this),this._onPageNumberClick=this._onPageNumberClick.bind(this)}getCurrentPageListIndex(){return this._pageList.indexOf(this.currentPageIndex)}beforeRender(){if(this.pageCount>7){this._pageList=new Array(7),this._pageList.fill(void 0);const e=this.pageCount-1;this._pageList[0]=0,this._pageList[6]=e,this._pageList[1]=this.currentPageIndex<=3?1:-1;const t=e-1;let i;this._pageList[5]=this.currentPageIndex<=t-3?-1:t,i=this.currentPageIndex<4?[2,3,4]:this.currentPageIndex>e-4?[e-4,e-3,e-2]:[this.currentPageIndex-1,this.currentPageIndex,this.currentPageIndex+1],this._pageList.splice(2,3,...i)}else this._pageList=new Array(this.pageCount),this._pageList=this._pageList.fill(void 0).map((e,t)=>t);this._fromRecord=this.currentPageIndex*this.rowsPerPage+1,this._toRecord=Math.min(this.totalRowCount,this._fromRecord+this.rowsPerPage-1)}render(){return $`
4047            <nav
4048                tabindex="0"
4049                aria-label="${`${JI.AriaTablePagination}, ${JI.AriaPage} ${this.currentPage} ${JI.RangeOutOf} ${this.pageCount}, ${this._fromRecord}-${this._toRecord} ${JI.RangeOutOf} ${this.totalRowCount}`}"
4050                class="${this.classes.wrapper}"
4051            >
4052                ${this.totalRowCount?$`
4053                          <div class="${this.classes.rangeLabel}">
4054                              ${this._fromRecord}-${this._toRecord} ${JI.RangeOutOf} ${this.totalRowCount}
4055                              <div></div>
4056                          </div>
4057                      `:null}
4058                <acorn-icon-button
4059                    ?disabled="${!this._hasPrevious()}"
4060                    accessibility-label="${JI.PreviousPage}"
4061                    icon="${Zo.ChevronLeft}"
4062                    @click="${this._onPrevious}"
4063                >
4064                </acorn-icon-button>
4065                <div class="${this.classes.pageListWrapper}">
4066                    <span class="${this.classes.pageListCurrentMarker}"></span>
4067                    <ol class="${this.classes.pageList}">
4068                        ${this._pageList.map(e=>-1!==e?$`
4069                                      <li class="${this.classes.pageListItem}">
4070                                          ${e!==this.currentPageIndex?$`
4071                                                    <button
4072                                                        type="button"
4073                                                        class="${this.classes.pageIndexButton}"
4074                                                        @click="${this._onPageNumberClick}"
4075                                                        value="${e}"
4076                                                        aria-label="${`${JI.AriaGoToPage} ${e+1} ${JI.RangeOutOf} ${this.pageCount}`}"
4077                                                    >
4078                                                        ${e+1}
4079                                                    </button>
4080                                                `:e+1}
4081                                      </li>
4082                                  `:$` <li class="${this.classes.pageListItem}">...</li> `)}
4083                    </ol>
4084                </div>
4085                <acorn-icon-button
4086                    ?disabled="${!this._hasNext()}"
4087                    accessibility-label="${JI.NextPage}"
4088                    icon="${Zo.ChevronRight}"
4089                    @click="${this._onNext}"
4090                >
4091                </acorn-icon-button>
4092            </nav>
4093        `}getStyle(){return eO}onCurrentPageChange(e){this.currentPageIndex=e-1}_hasPrevious(){return this.currentPageIndex>0}_hasNext(){return this.currentPageIndex<this.pageCount-1}_setCurrentPage(e){const t=Math.min(this.pageCount-1,Math.max(0,e));this._pageChanged.emit({pageIndex:t}).defaultPrevented||(this.currentPage=t+1)}_onPrevious(){this._setCurrentPage(this.currentPageIndex-1)}_onNext(){this._setCurrentPage(this.currentPageIndex+1)}_onPageNumberClick(e){const t=e.target.value;this._setCurrentPage(parseInt(t))}};XI([gt(),zt({type:Number})],tO.prototype,"pageCount",2),XI([gt(),zt({type:Number})],tO.prototype,"totalRowCount",2),XI([gt(),zt({type:Number})],tO.prototype,"currentPage",2),XI([gt(),zt({type:Number})],tO.prototype,"rowsPerPage",2),XI([ft({name:"pageChanged",cancelable:!0})],tO.prototype,"_pageChanged",2),XI([wi("currentPage")],tO.prototype,"onCurrentPageChange",1),tO=XI([_t({tag:"acorn-table-pagination"})],tO);var iO="--main-layout-header-height",nO=300,oO=(e=>(e.Asc="asc",e.Desc="desc",e.None="none",e))(oO||{}),rO=(e=>(e.Pages="pages",e.Steps="steps",e.Scroll="scroll",e))(rO||{}),aO=(e=>(e.Element="element",e))(aO||{}),sO=(e=>(e.Left="left",e.Right="right",e.Center="center",e))(sO||{}
4093),lO=(e=>(e.Default="default",e.Generous="generous",e.Compact="compact",e))(lO||{}),cO="8px",dO="1px",hO={default:{header:42,ribbon:41,row:41,summary:41,footer:41},generous:{header:50,ribbon:49,row:49,summary:49,footer:49},compact:{header:34,ribbon:33,row:33,summary:33,footer:33}};if(ai.isChromium){const e=new class{constructor(){this._cache={},this.addTableDensityValuesProxy=this.addTableDensityValuesProxy.bind(this)}addTableDensityValuesProxy(e,t){return new Proxy(e,{get:(e,i)=>this._getTransformedValue(t(),e[i])})}_getTransformedValue(e,t){const i=e+","+t;return this._cache[i]||(this._cache[i]=this._transformValue(e,t)),this._cache[i]}_transformValue(e,t){let i=Math.floor(t*e);return i%2!=0&&i++,i/e}};hO=function(e,t){if(null==e)return{};const i=Object.keys(e),n=(i,n)=>{const o=e[n];return i[n]=t(o),i};return i.reduce(n,{})}(hO,t=>e.addTableDensityValuesProxy(t,()=>window.devicePixelRatio))}var pO="12px",uO=Ve.createTranslation({SortableAsc:{sv:"Sorteringsbar kolumn, sorterad stigande",en:"Sortable column, sorted ascending"},SortableDesc:{sv:"Sorteringsbar kolumn, sorterad nedåtgående",en:"Sortable column, sorted descending"}
4093,SortableNone:{sv:"Sorteringsbar kolumn, osorterad",en:"Sortable column, unsorted"},Select:{sv:"Markera",en:"Select"},Deselect:{sv:"Avmarkera",en:"Deselect"},SelectAll:{sv:"Markera alla",en:"Select all"},DeSelectAll:{sv:"Avmarkera alla",en:"Deselect all"},Row:{sv:"rad",en:"row"},Rows:{sv:"rader",en:"rows"}}),gO=0,mO=0,bO=class{constructor(e){this.description="",this.sortable=!1,this.align="left",this.hidden=!1,gO++,mO++,this._headerSlot=`tableColumnHeaderSlot@${gO}`,this._summarySlot=`tableColumnSummarySlot@${mO}`,Object.assign(this,e);const t=this._splitQuantity(this.width),i=this._splitQuantity(this.minWidth);this.widthUnit=t.unit,"fr"===this.widthUnit&&(this.widthFr=t.value),this.widthPx="px"===this.widthUnit?t.value:0,this.minWidthPx=Math.max(i.value,this.widthPx)}getHeaderDefaultTemplate(e){return $`
4094            <div class="${e.headerContentContainer}">
4095                ${this.icon?$`
4096                          <acorn-icon
4097                              icon="${this.icon}"
4098                              size="${Jo.XSmall}"
4099                              class="${e.headerIcon}"
4100                          ></acorn-icon>
4101                      `:null}
4102                <div class="${e.contentOverflow}">${this.heading}</div>
4103                ${this.sortable?$`
4104                          <acorn-internal-icon
4105                              aria-label="${"asc"===this.sorted?uO.SortableAsc:"desc"===this.sorted?uO.SortableDesc:uO.SortableNone}"
4106                              class="${`${e.headerSortArrow} sort-arrow--${this.sorted}`}"
4107                              icon="${Zo.CaretDown}"
4108                              size="${pO}"
4109                              color="${zi.Icon.regular}"
4110                          >
4111                          </acorn-internal-icon>
4112                      `:null}
4113                ${this.description?$`<span class="${e.headerDescription}">${this.description}</span>`:null}
4114            </div>
4115        `}getHeaderSlotTemplate(){return $`<slot name="${this._headerSlot}"></slot>`}getHeaderContentTemplate(){return $`
4116            <div slot="${this._headerSlot}">
4117                ${this.headerTemplate.render({heading:this.heading,icon:this.icon,description:this.description,sortable:this.sortable,width:this.width,minWidth:this.minWidth,align:this.align,sorted:this.sorted})}
4118            </div>
4119        `}getCellDefaultTemplate(e,t){return this.property?$`<div class="${null==t?void 0:t.contentOverflow}">${e[this.property]}</div>`:void 0}getCellSlotTemplate(e,t){return $`<slot name="${`${this.property}@${t}`}"></slot>`}getCellContentTemplate(e,t,i){if(!this.property)return;const n=this._calculateCellContentMaxHeight(hO[t].row);return $`
4120            <div slot="${`${this.property}@${i}`}" style="max-height:${n}px;overflow:hidden;">
4121                ${"element"===this.type?e[this.property]:this.cellTemplate.render(e)}
4122            </div>
4123        `}getSummarySlotTemplate(){return $`<slot name="summary:${this._summarySlot}"></slot>`}getSummaryContentTemplate(e,t){const i=this._calculateCellContentMaxHeight(hO[t].summary);return $`
4124            <div slot="summary:${this._summarySlot}" style="max-height:${i}px;overflow:hidden;">
4125                ${this.summaryTemplate.render(e)}
4126            </div>
4127        `}getSummaryDefaultTemplate(e,t){return this.property?$`<div class="${t.contentOverflow}">${e[this.property]}</div>`:void 0}_splitQuantity(e=""){const[t,i]=e.split(/([a-zA-Z]+)/);return{value:parseInt(t),unit:i}}_calculateCellContentMaxHeight(e){return e-parseInt(dO)}},vO=class extends bO{constructor(){super({minWidth:"44px"}),this.property="selected",this.rowCount=0,this.selectableRowsCount=0,this.selectedRowsCount=0}getHeaderDefaultTemplate(e){const t=this.selectedRowsCount===this.selectableRowsCount&&this.selectableRowsCount>0,i=this.selectedRowsCount>0&&!t,n=0===this.selectableRowsCount&&this.rowCount>0,o=this.selectableRowsCount-this.selectedRowsCount,r=[];t?r.push(`${uO.DeSelectAll}`):r.push(`${uO.SelectAll}`),1===this.selectableRowsCount?r.push(`${uO.Row}`):r.push(`${uO.Rows}`);const a=t?`${r[0]} ${this.selectableRowsCount} ${r[1]}`:`${r[0]} ${o} ${r[1]}`;return this._renderCheckbox({label:a,checked:t,indeterminate:i,disabled:n,classes:e})}getCellDefaultTemplate(e,t){const i=e.selected?`${uO.Deselect} ${e.name}`:`${uO.Select} ${e.name}`;return this._renderCheckbox({label:i,checked:!!e.selected,disabled:!!e.selectionDisabled,classes:t})}_onClick(e){e.preventDefault();const t=e.target,i=e instanceof CustomEvent?t.checked:!t.checked;t.disabled||requestAnimationFrame(()=>{t.dispatchEvent(new CustomEvent("selectionChanged",{bubbles:!0,detail:{selected:i}}))})}_renderCheckbox({classes:e,disabled:t,indeterminate:i,checked:n,label:o}){return $`
4128            <acorn-checkbox
4129                class="${(null==e?void 0:e.checkbox)||""}"
4130                ?indeterminate="${i}"
4131                ?disabled="${t}"
4132                .checked="${n}"
4133                label="${o}"
4134                hide-label
4135                @click="${this._onClick}"
4136            ></acorn-checkbox>
4137        `}},yO={border:zi.Line.Regular.low,borderDisabled:zi.Line.Regular.disabled,borderPending:zi.Line.Regular.disabled,rowText:zi.Text.Regular.high,rowBackgroun
4137d:"light-dark(#ffffff, transparent)",rowBackgroundHover:zi.Overlay.hover,rowBackgroundPending:zi.Overlay.hover,rowBackgroundFocus:zi.Overlay.active,rowBackgroundActive:zi.Overlay.active,headerBackground:zi.Surface.elevation,ribbonBackground:zi.ComponentSpecific.DataTable.RowGroup.background,ribbonText:zi.Text.Regular.high,icon:zi.Icon.medium},_O={opacity:"0.5",cursor:"auto",pointerEvents:"none",borderBottom:`${dO} solid ${yO.borderDisabled}`},fO={width:"20px",content:'" "',speak:"none",verticalAlign:"middle",color:yO.icon,display:e=>"link"===e.interactiveRows||e.interactiveRowsCount>0?"table-cell":"none"};function xO(e,t){return ze.scale(hO[e.density||"default"][t])}var wO={textAlign:"left",padding:`0 ${cO}`,"&.align-right":{textAlign:"right",justifyContent:"right","& .content-overflow":{marginRight:`-${cO}`,paddingRight:`${cO}`}},"&.align-center":{textAlign:"center",justifyContent:"center","& .header-sort-arrow":{marginRight:"-8px"}},"&:first-of-type":{position:e=>e.selectableRows?"sticky":"",backgroundColor:e=>e.selectableRows?yO.rowBackground:"",left:"0",zIndex:"1"},"&:first-child":{paddingLeft:`calc(${cO} * 2)`},"&:last-child":{paddingRight:`calc(${cO} * 2)`}},CO={$host:{outline:"none !important",display:"block",visibility:e=>e._isReady?void 0:"hidden"},wrapper:{maxWidth:"100%",position:"relative"},intersectionWrapper:{position:"absolute",width:"100%",top:0},caption:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"},stickyWrapper:{zIndex:"2",pointerEvents:"none",position:"absolute",width:"100%",top:0,"& table":{zIndex:1,position:"sticky",top:`var(${iO}, 0)`}},scrollWrapper:{maxWidth:"100%",overflowX:"auto",overflowY:"hidden","& thead":{visibility:e=>e._shouldBeSticky?"hidden":void 0}},table:{tableLayout:"fixed",minWidth:e=>`${e.tableMinWidthPx}px`,width:"100%",borderSpacing:0,lineHeight:Sn.Base},headerRow:{pointerEvents:"auto",...To(yO.rowText),lineHeight:Sn.Narrow,height:e=>`${xO(e,"header")}px`,backgroundColor:yO.headerBackground,"&::after":{...fO,borderTop:`${dO} solid ${yO.border}`,borderBottom:`${dO} solid ${yO.border}`}},headerCell:{...wO,...Qi(),position:"relative",borderTop:`${dO} solid ${yO.border}`,borderBottom:`${dO} solid ${yO.border}`,backgroundColor:e=>e.selectableRows?yO.headerBackground:void 0,"&:focus":{outlineOffset:"-2px"},"&[data-sortable]":{cursor:"pointer"},"&[data-sortable]:hover .sort-arrow--none":{opacity:1},"&.align-right":{...wO["&.align-right"],"& .header-content-container":{flexDirection:"row-reverse"},"& .header-sort-arrow":{marginRight:"-6px",direction:"rtl",transformOrigin:`calc(-${pO} / 2)`}}},headerContentContainer:{display:"flex",alignItems:"center",columnGap:"8px",justifyContent:"inherit"},headerDescription:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"},headerIcon:{margin:"-2px 0",verticalAlign:"middle"},headerSortArrow:{pointerEvents:"none",marginLeft:"-6px",width:"0",transformOrigin:`calc(${pO} / 2)`,transition:`transform ${ai.isRunningTests?"0":"0.25s"} ease-in`,transform:"rotate(0deg)","&.sort-arrow--none":{opacity:0}
4137,"&.sort-arrow--desc":{transform:"rotate(180deg)"}},ribbonStickyWrapper:{pointerEvents:"none",position:"absolute",minWidth:e=>`${e.tableMinWidthPx}px`,width:"100%"},ribbonRow:{border:0,"&::after":{...fO,backgroundColor:yO.ribbonBackground}},ribbonCell:{padding:0,columnSpan:"all"},ribbon:{...ko(yO.ribbonText),fontSize:kn(14),textAlign:"left",padding:`0 calc(${cO} * 2)`,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",lineHeight:e=>xO(e,"ribbon")-2+"px",backgroundColor:yO.ribbonBackground,borderBottom:`${dO} solid ${yO.border}`,position:"sticky",top:e=>`calc(var(${iO}, 0px) + ${xO(e,"header")}px)`},row:{...Qi(),color:yO.rowText,"& .cell":{backgroundColor:yO.rowBackground},height:e=>`${xO(e,"row")}px`,"&::after":{...fO,borderBottom:`${dO} solid ${yO.border}`},'&[data-interactive="true"]::after':{...fO,fontFamily:"SWB_Icons",content:'""',background:'no-repeat url(\'data:image/svg+xml;utf8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path fill="rgba(163, 139, 128)" d="M12 26.667v-21.333l10.667 10.667z"></path></svg>\')',backgroundSize:"16px 16px",backgroundPosition:"center",borderBottom:`${dO} solid ${yO.border}`},'&[data-interactive="true"]:hover':{cursor:"pointer","& .cell:first-of-type":{backgroundColor:e=>e.selectableRows?yO.rowBackground:""},"& .cell":{backgroundColor:()=>ai.isTouchScreenDevice?"transparent":yO.rowBackgroundHover},"&::after":{backgroundColor:()=>ai.isTouchScreenDevice?"transparent":yO.rowBackgroundHover}},'&[data-interactive="true"]:focus':{cursor:"pointer","& .cell:first-of-type":{backgroundColor:e=>e.selectableRows?yO.rowBackground:""},"& .cell":{backgroundColor:()=>ai.isTouchScreenDevice?"transparent":yO.rowBackgroundFocus},"&::after":{backgroundColor:()=>ai.isTouchScreenDevice?"transparent":yO.rowBackgroundFocus},outlineOffset:"-2px"},'&[aria-disabled="true"]':_O,'&[aria-current="true"]':{"& .cell":{backgroundColor:yO.rowBackgroundActive},"&::after":{backgroundColor:yO.rowBackgroundActive}}},cell:{...wO,fontSize:kn(14),borderBottom:`${dO} solid ${yO.border}`},contentOverflow:{display:"-webkit-box",overflow:"hidden",wordBreak:"break-word","-webkitLineClamp":e=>"compact"===e.density?"1":"2","-webkitBoxOrient":"vertical"},summaryRow:{height:e=>`${xO(e,"summary")}px`,"&::after":{...fO,borderBottom:`${dO} solid ${yO.border}`}},summaryCell:{...wO,...ko(yO.rowText),fontSize:kn(14),borderBottom:`${dO} solid ${yO.border}`},pendingRow:{height:e=>`${xO(e,"row")}px`,"&::after":{...fO,borderBottom:`${dO} solid ${yO.borderPending}`},"@media print":{display:"none"}},pendingCell:{...wO,borderBottom:`${dO} solid ${yO.borderPending}`,position:"relative","&::before":{position:"absolute",top:"50%",left:"12px",transform:"translateY(-50%)",content:'""',display:"block",backgroundColor:yO.rowBackgroundPending,height:"50%",width:"50%",animation:`table-cell-fade-animation ${ai.isRunningTests?"0":"1.5s"} infinite`},"@keyframes table-cell-fade-animation":"\n            0% { opacity: 0.3 }\n            50% { opacity: 1 }\n            100% { opacity: 0.3 }"},footerSummaryRow:{...To(yO.rowText),lineHeight:Sn.Narrow,height:e=>`${xO(e,"footer")}px`,"&::after":{...fO}},footerSummaryCell:{...wO},checkbox:{margin:`-${cO}`,padding:cO,"&:not([disabled])":{cursor:"pointer"}}},SO="stickyContainer",$O="scrollContainer",kO="tooltip",EO=class extends Ti{constructor(){super(),this.selectableRows=!1,this.density="default",this.sticky=!1,this.interactiveRowsCount=0,this._isReady=!1,this._shouldBeSticky=!1,this._renderWholeTable=!1,this._scrollBarHeight=0,this.addEventListener("mouseenter",this._onTableEnter),this.addEventListener("mouseleave",this._onTableLeave),this._resizeObserver=new ResizeObserver(this._onResizeObserverChange)}get tableMinWidthPx(){return this._tableMinWidthPx||void 0}get _stickyContainer(){return this.shadowRoot.getElementById(SO)}get _scrollContainer(){return this.shadowRoot.getElementById($O)}get _tooltip(){return this.shadowRoot.getElementById(kO)}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),window.addEventListener("beforeprint",this._beforePrint),window.addEventListener("afterprint",this._afterPrint),this._printMediaQuery=window.matchMedia("print"),this._printMediaQuery.addEventListener("change",this._onPrint),this._resizeObserver&&this._resizeObserver.observe(this)}disconnectedCallback(){window.removeEventListener("beforeprint",this._beforePrint),window.removeEventListener("afterprint",this._afterPrint),this._clearHoverTracker(),this._resizeObserver&&this._resizeObserver.disconnect(),this._printMediaQuery&&(this._printMediaQuery.removeEventListener("change",this._onPrint),this._printMediaQuery=void 0)}
4137beforeRender(){if(!this.tableData)return;this._tableWidth=this._tableWidth?this._tableWidth:this.getBoundingClientRect().width,this._tableMinWidthPx=this.tableData.columns.reduce((e,t)=>e+t.minWidthPx,0),this._shouldBeSticky=this.sticky&&this._tableWidth>(this._tableMinWidthPx||0);const e=[],t=[],i=[];this.tableData.columns.forEach(n=>{var o,r;n.headerTemplate&&e.push(n.getHeaderContentTemplate()),(n.cellTemplate||"element"===n.type)&&(null==(o=this.tableData)||o.rowGroups.forEach((e,i)=>{e.rows.forEach((o,r)=>{if(this._shouldRenderRow(e,r)){const e=this._getRowKey(o,i,r);t.push(n.getCellContentTemplate(o,this.density,e))}})})),n.summaryTemplate&&(null==(r=this.tableData)||r.rowGroups.filter(e=>e.summary).forEach(e=>{i.push(n.getSummaryContentTemplate(e.summary,this.density))}))}),V($` ${e} ${t} ${i} `,this)}render(){if(this.tableData)return $`
4138            <div class="${this.classes.wrapper}">
4139                ${this._shouldBeSticky?this._renderStickyContainer(this._stickyContainer,this.tableData):null}
4140                <div class="${this.classes.scrollWrapper}" id="${$O}" @scroll="${this._onTableScroll}">
4141                    ${this._renderTable(this._scrollContainer?this._scrollContainer.children[0]:null,this.tableData)}
4142                </div>
4143            </div>
4144            <acorn-table-tooltip id="${kO}"></acorn-table-tooltip>
4145        `}afterRender(){this._scrollBarHeight=this._getScrollBarHeight()}getStyle(){return CO}onScrollBarHeightChange(e){this._scrollBarChanged.emit({scrollBarHeight:e})}_onResizeObserverChange(e){const t=e[0].contentRect.width;this._calculateColWidth(t)}_renderStickyContainer(e,t){if(!e){(e=document.createElement("div")).setAttribute("class",this.classes.stickyWrapper),e.setAttribute("id",SO);const t=this._scrollContainer?this._scrollContainer.scrollLeft:0;this._clipContainer(e,t)}const i=null==t?void 0:t.rowGroups.reduce((e,t)=>e+t.height,0);e.style.height=`${i}px`;const n=this._renderTable(e.children[0],Object.assign({},t,{rowGroups:[],pendingRows:0,summary:void 0})),o=null==t?void 0:t.rowGroups.filter(e=>e.ribbon).map(e=>$`
4146                    <div
4147                        class="${this.classes.ribbonStickyWrapper}"
4148                        style="height:${e.height}px;top:${e.top}px;"
4149                    >
4150                        <div class="${this.classes.ribbon}">${e.ribbon}</div>
4151                    </div>
4152                `);return V($` ${n} ${o} `,e),e}_updateCache(e,t){const i=e.__cachedElements;i.caption=this._renderCaption(i.caption),i.head=this._renderHead(i.head,t.columns);const n=t.columns.map(e=>e.property).join("|"),o=i.columns!==n;return o&&(i.colgroup=this._renderColgroup(i.colgroup,t.columns)),i.rows=t.rowGroups.map((e,n)=>{const r=i.rows[n];return this._renderRows(r,e,t.columns,o,n)}),i.pendingRows=t.pendingRows?this._renderPendingRows(i.pendingRows,t.pendingRows,t.columns):null,i.foot=t.summary?this._renderFoot(i.foot,t.summary,t.columns):null,i.columns=n,i}_renderTable(e,t){e||((e=document.createElement("table")).setAttribute("class",this.classes.table),e.addEventListener("selectionChanged",this._onSelectionChange),e.__cachedElements={columns:"",colgroup:null,caption:null,head:null,rows:[],pendingRows:null,foot:null});const i=this._updateCache(e,t);return V($`${i.caption} ${i.colgroup} ${i.head} ${i.rows} ${i.pendingRows} ${i.foot} `,e),e}_renderCaption(e){return(e=e||document.createElement("caption")).setAttribute("class",`${this.classes.caption}`),V($` ${this.heading} `,e),e}_renderColgroup(e,t){const i=this.getBoundingClientRect().width;return this._calculateColWidth(i),e=e||document.createElement("colgroup"),V($`
4153                ${t.map((e,t)=>$` <col style="width: var(--col-width-${t});" /> `)}
4154            `,e),e}_renderHead(e,t){return e=e||document.createElement("thead"),V($`
4155                <tr class="${this.classes.headerRow}">
4156                    ${t.map(e=>$`
4157                            <th
4158                                @click="${this._onColHeaderClick}"
4159                                @keydown="${this._onColHeaderClick}"
4160                                class="${`${this.classes.headerCell} align-${e.align}`}"
4161                                tabindex="${e.sortable?0:-1}"
4162                                ?data-sortable="${e.sortable}"
4163                                data-tooltip="${e.description}"
4164                                data-property="${e.property}"
4165                                scope="col"
4166                            >
4167                                ${this._renderHeaderCell(e)}
4168                            </th>
4169                        `)}
4170                </tr>
4171            `,e),e}_renderRows(e,t,i,n,o){e||((e=document.createElement("tbody")).addEventListener("click",this._onRowClick),e.addEventListener("keydown",this._onRowClick));const r=i.length+("link"===this.interactiveRows?1:0),a=t.ribbon?$`
4172                  <tr class="${this.classes.ribbonRow}">
4173                      <th scope="row" class="${this.classes.ribbonCell}" colspan="${r}">
4174                          <div class="${this.classes.ribbon}">${t.ribbon}</div>
4175                      </th>
4176                  </tr>
4177              `:null,s=t.rows.map((r,s)=>{var l;const c=void 0===r.interactive?"link"===this.interactiveRows:r.interactive;let d=e.children[s+(a?1:0)];d&&!n||(d=document.createElement("tr")),d.className===this.classes.ribbonRow&&1===d.childElementCount&&(null==(l=d.firstElementChild)?void 0:l.className)===this.classes.ribbonCell&&d.removeChild(d.firstElementChild),d.setAttribute("class",this.classes.row),d.setAttribute("aria-disabled",(!0===r.disabled).toString()),d.setAttribute("aria-selected",(!0===r.selected).toString()),d.setAttribute("aria-current",(!0===r.active).toString()),d.setAttribute("data-interactive",(!0===c).toString()),c&&!r.disabled&&d.setAttribute("tabindex","0");const h=d.__row!==r||n;if(this._shouldRenderRow(t,s)&&h){d.__row=r;const e=this._getRowKey(r,o,s);V($`
4178                        ${i.map(t=>$`
4179                                <td class="${`${this.classes.cell} align-${t.align}`}">
4180                                    ${this._renderCell(t,r,e)}
4181                                </td>
4182                            `)}
4183                    `,d)}return d});let l=e.children[e.children.length];return t.summary&&(l||(l=document.createElement("tr"),l.setAttribute("class",this.classes.summaryRow),l.__row=t.summary),V($`
4184                    ${i.map(e=>$`
4185                            <td class="${`${this.classes.summaryCell} align-${e.align}`}">
4186                                ${this._renderSummary(e,t.summary)}
4187                            </td>
4188                        `)}
4189                `,l)),V($` ${a} ${s} ${l} `,e),e}_renderPendingRows(e,t,i){return e=e||document.createElement("tbody"),V($`
4190                ${new Array(t).fill(void 0).map(()=>$`
4191                        <tr class="${this.classes.pendingRow}">
4192                            ${i.map(()=>$` <td class="${this.classes.pendingCell}"></td> `)}
4193                        </tr>
4194                    `)}
4195            `,e),e}_renderFoot(e,t,i){return e=e||document.createElement("tfoot"),V($`
4196                <tr class="${this.classes.footerSummaryRow}">
4197                    ${i.map(e=>$`
4198                            <td class="${`${this.classes.footerSummaryCell} align-${e.align}`}">
4199                                ${this._renderSummary(e,t)}
4200                            </td>
4201                        `)}
4202                </tr>
4203            `,e),e}_renderHeaderCell(e){return e.headerTemplate?e.getHeaderSlotTemplate():e.getHeaderDefaultTemplate(this.classes)}_renderCell(e,t,i){const n=t;return e.cellTemplate||"element"===e.type?e.getCellSlotTemplate(n,i):e.getCellDefaultTemplate(n,this.classes)}_renderSummary(e,t){const i=t;return e.summaryTemplate?e.getSummarySlotTemplate():e.getSummaryDefaultTemplate(i,this.classes)}_getRowKey(e,t,i){return e.id?e.id.toString():t+"-"+i}_getScrollBarHeight(){const{offsetHeight:e=0,clientHeight:t=0}=this._scrollContainer||{};return e-t}_clipContainer(e,t){e.style.transform=`translateX(-${t}px)`,e.style.clipPath=`polygon(${t}px 100%, calc(100% + ${t}px) 100%, calc(100% + ${t}px) 0%, ${t}px 0%)`,this.selectableRows&&e.querySelector("th:first-of-type")&&(e.querySelector("th:first-of-type").style.transform=`translateX(${t}px)`)}_onColHeaderClick(e){"keydown"===e.type&&e.key!==ye.Enter||this._colHeaderClick.emit({property:e.currentTarget.getAttribute("data-property")})}_onRowClick(e){var t;if("keydown"===e.type&&e.key!==ye.Enter)return;const i=this._findRow(e),n=null==i?void 0:i.__row;if(!n||this._isNonInteractiveRow(i)||n.disabled||this._isRibbonRow(i))return;const o=this._findCell(e),r=o?null==(t=this.tableData)?void 0:t.columns[o.cellIndex]:void 0;if(r instanceof vO)return;const a=(null==r?void 0:r.property)?{[r.property]:n[r.property]}:void 0,s=this._isFromSlottedTemplate(e)?e.target:null;setTimeout(()=>{this._rowClick.emit({...n,rowData:n,cellData:a,templateTarget:s})},0)}_onSelectionChange(e){const t=this._findRow(e);t.__row?e.detail.row=t.__row:e.detail.all=!0,this.redispatchEvent(e)}_findElement(e,t){let i=e.target;for(;i&&!(i instanceof t);)i=i.parentElement!==e.currentTarget?i.parentElement:null;
4203return i||(i=e.composedPath().find(e=>e instanceof t)),i}_findCell(e){return this._findElement(e,HTMLTableCellElement)}_findRow(e){return this._findElement(e,HTMLTableRowElement)}_isRibbonRow(e){return-1!==e.classList.toString().indexOf(this.classes.ribbonRow)}_isNonInteractiveRow(e){return"false"===e.getAttribute("data-interactive")}_isFromSlottedTemplate(e){var t;let i=e.target.parentElement;for(;i;){if("div"===i.localName&&i.hasAttribute("slot")&&(null==(t=i.getAttribute("slot"))?void 0:t.match(/[a-zA-Z0-9]+@./)))return!0;i=i.parentElement}return!1}_onTableScroll(e){if(this._stickyContainer){const t=e.target.scrollLeft;this._clipContainer(this._stickyContainer,t)}}_onTableEnter(e){this.addEventListener("mousemove",this._onTableHover),this._hoverIdle=!1,this._hoverTimestamp=Date.now(),this._hoverPoint=[e.clientX,e.clientY],this._hoverIntervalId&&clearInterval(this._hoverIntervalId),this._hoverIntervalId=setInterval(this._onHoverInterval.bind(this),500)}_onTableLeave(){this._clearHoverTracker()}_onHoverInterval(){if(this._hoverIdle||!this._hoverPoint||!this._tooltip)return;if(!(Date.now()>(this._hoverTimestamp||0)+500))return;this._hoverIdle=!0;let e=this.shadowRoot.elementFromPoint(this._hoverPoint[0],this._hoverPoint[1]);for(;e&&!(e instanceof HTMLTableCellElement);)e=e.parentElement instanceof HTMLTableElement?null:e.parentElement;if(!e)return;let t=e.getAttribute("data-tooltip");!t&&e.scrollWidth>e.offsetWidth&&(t=e.textContent),t&&(this._tooltip.targetHeaderCell=e.querySelector(".content-overflow")||e,this._tooltip.text=t,this._tooltip.open=!0,this._tooltip.updatePosition())}_clearHoverTracker(){this._tooltip&&(this._tooltip.open=!1),this.removeEventListener("mousemove",this._onTableHover),this._hoverIntervalId&&clearInterval(this._hoverIntervalId)}_onTableHover(e){this._hoverPoint&&this._tooltip&&(this._hoverTimestamp=Date.now(),this._hoverPoint[0]=e.clientX,this._hoverPoint[1]=e.clientY,this._hoverIdle=!1,this._tooltip.open=!1)}_shouldRenderRow(e,t){return this._renderWholeTable||e.isRowVisible(t)}_beforePrint(){this._renderWholeTable=!0}_afterPrint(){this._renderWholeTable=!1}_onPrint(e){e.matches?this._beforePrint():this._afterPrint()}_calculateColWidth(e){var t;if(this._tableWidth=e,!(null==(t=this.tableData)?void 0:t.columns))return;let i=[],n=[];if(this.tableData.columns.forEach(e=>{"fr"===e.widthUnit?i.push(e):n.push(e)}),this.tableMinWidthPx&&e<this.tableMinWidthPx)this._shouldBeSticky=!1,i.forEach(e=>{var t;this.style.setProperty(`--col-width-${null==(t=this.tableData)?void 0:t.columns.indexOf(e)}`,`${e.minWidthPx}px`)});else{this._shouldBeSticky=this.sticky;const t=n.reduce((e,t)=>e+t.minWidthPx,0),o=i.reduce((e,t)=>e+(t.widthFr||0),0),r=e-t,a=i.filter(e=>{const t=(e.widthFr||0)/o,i=r*t;return e.minWidthPx>i});a&&(i=i.filter(e=>-1===a.indexOf(e)),n=this.tableData.columns.filter(e=>-1===i.indexOf(e))),i.map(e=>{var t;this.style.setProperty(`--col-width-${null==(t=this.tableData)?void 0:t.columns.indexOf(e)}`,`${e.widthFr}00%`)})}n.forEach(e=>{var t;this.style.setProperty(`--col-width-${null==(t=this.tableData)?void 0:t.columns.indexOf(e)}`,`${e.minWidthPx}px`)}),this._scrollBarHeight=this._getScrollBarHeight(),this._isReady=!0}};XI([Ht()],EO.prototype,"interactiveRows",2),XI([Ht()],EO.prototype,"selectableRows",2),XI([Ht()],EO.prototype,"density",2),XI([Ht()],EO.prototype,"sticky",2),XI([Ht()],EO.prototype,"heading",2),XI([Ht()],EO.prototype,"tableData",2),XI([Ht()],EO.prototype,"interactiveRowsCount",2),XI([Ht()],EO.prototype,"_isReady",2),XI([Ht()],EO.prototype,"_shouldBeSticky",2),XI([Ht({invalidateSynchronous:!0})],EO.prototype,"_renderWholeTable",2),XI([ft({name:"colHeaderClick",bubbles:!0})],EO.prototype,"_colHeaderClick",2),XI([ft({name:"rowClick"})],EO.prototype,"_rowClick",2),XI([ft({name:"scrollBarChanged"})],EO.prototype,"_scrollBarChanged",2),XI([wi("_scrollBarHeight")],EO.prototype,"onScrollBarHeightChange",1),XI([Pe()],EO.prototype,"_onResizeObserverChange",1),XI([Pe()],EO.prototype,"_onColHeaderClick",1),XI([Pe()],EO.prototype,"_onRowClick",1),XI([Pe()],EO.prototype,"_onSelectionChange",1),XI([Pe()],EO.prototype,"_onTableScroll",1),XI([Pe()],EO.prototype,"_onTableHover",1),XI([Pe()],EO.prototype,"_beforePrint",1),XI([Pe()],EO.prototype,"_afterPrint",1),XI([Pe()],EO.prototype,"_onPrint",1),EO=XI([_t({tag:"acorn-table-content"})],EO);var TO=["script","style","object","embed","iframe"];function IO(e){if(Qt(e,xf))return{type:Node.DOCUMENT_FRAGMENT_NODE,childNodes:OO(e)};if(e.nodeType===Node.ELEMENT_NODE&&-1===TO.indexOf(e.localName)){const t=function(e){const t=[];for(let i=0;i<e.attributes.length;i++){const n=DO(e.attributes[i].value,"undefined");
4203n&&t.push({name:e.attributes[i].name,value:n})}return t}(e),i=OO(e);return t.length||i?{type:Node.ELEMENT_NODE,attributes:t,childNodes:i}:void 0}if(e.nodeType===Node.TEXT_NODE){const t=DO(e.textContent||"");return t?{type:Node.TEXT_NODE,text:t}:void 0}}function OO(e){const t=[];for(let i=0;i<e.childNodes.length;i++){const n=IO(e.childNodes[i]);n&&(n.index=i,t.push(n))}return t.length?t:void 0}function DO(e,t=""){const i=Ae.get(Me.TemplateMarkerStart)||"{{",n=Ae.get(Me.TemplateMarkerEnd)||"}}",o=new RegExp(`${i}\\s*[\\w\\.]+\\s*${n}`,"g");let r=o.exec(e);if(!r)return null;const a=[];for(;null!==r;){const t=r[0],i=t.match(/[\w\.]+/)[0].trim();a.push({property:i,placeholder:t}),r=o.exec(e)}return{args:a,fn:i=>{let n=e;for(let e=0;e<a.length;e++){const o=void 0!==i[a[e].property]&&null!==i[a[e].property]?i[a[e].property]:t;n=n.replace(a[e].placeholder,(null==o?void 0:o.toString())||"")}return n}}}var RO=class e{static update(t,i,n){if(t)for(let o=0;o<t.length;o++){const r=t[o],a=i[r.index];if(r.text&&a&&(a.textContent=r.text.fn(n)),r.attributes)for(let e=0;e<r.attributes.length;e++){const t=r.attributes[e],i=t.value.fn(n);"false"===i||"undefined"===i||"null"===i?a.removeAttribute(t.name):"true"===i?a.setAttribute(t.name,""):a.setAttribute(t.name,i)}r.childNodes&&e.update(r.childNodes,[...a.childNodes],n)}}constructor(e){this._templateElement=e,this._cachedResults=new Map,this._cachedResultsSizeLimit=100}render(t,i){var n;const o=i?this._cachedResults.get(i):null;return o&&o.dataModel===t?o.node:o?(e.update((null==(n=this._reactiveNodeTree)?void 0:n.childNodes)||[],o.node,t),o.dataModel=t,o.node):this._createNew(t,i).node}has(e){return this._cachedResults.has(e)}get(e){return this._cachedResults.has(e)?this._cachedResults.get(e).node:null}_createNew(t,i){var n;const o=this._templateElement.cloneNode(!0),r={dataModel:t,node:[...o.childNodes]};if(this._reactiveNodeTree||(this._reactiveNodeTree=IO(o)),e.update((null==(n=this._reactiveNodeTree)?void 0:n.childNodes)||[],r.node,r.dataModel),i){if(this._cachedResults.size>this._cachedResultsSizeLimit){for(const[e,t]of this._cachedResults)t.node[0].parentElement||this._cachedResults.delete(e);this._cachedResults.size>.5*this._cachedResultsSizeLimit&&(this._cachedResultsSizeLimit*=2)}this._cachedResults.set(i,r)}return r}};function FO(e){return function(t,i){const n=Symbol(i);delete t[i]&&Object.defineProperty(t,i,{get:function(){if(!this[n]){const t=[...this.children].find(t=>t.slot===e.slot);this[n]=t?new RO(t):void 0}return this[n]},enumerable:!0,configurable:!0})}}var LO=class extends Ti{constructor(){super(...arguments),this.sortable=!1,this.width="1fr",this.minWidth="60px",this.hidden=!1,this.align="left",this.sorted="none"}get columnData(){return this._columnData||(this._columnData=new bO(this._columns)),this._columnData}get _columns(){return{property:this.property,heading:this.heading,icon:this.icon,description:this.description,sortable:this.sortable,type:this.type,width:this.width,minWidth:this.minWidth,hidden:this.hidden,align:this.align,sorted:this.sorted,headerTemplate:this.headerTemplate,cellTemplate:this.cellTemplate,summaryTemplate:this.summaryTemplate}}connectedCallback(){var e;if(null==(e=super.connectedCallback)||e.call(this),!this.heading&&this.icon&&!this.description)throw new Error(`${this.localName} requires either that the attribute heading OR icon and description be set.`)}disconnectedCallback(){this.invalidate()}invalidate(){this._columnData=void 0,super.invalidate();const e=this.parentElement;e&&e.invalidate&&e.invalidate()}onPropertyChange(e){if(!e&&this.parentElement){const e=[...this.parentElement.children].filter(e=>e instanceof LO);this.property=e.indexOf(this).toString()}}onMinWidthChange(e){if("px"!==e.substr(e.length-2))throw new Error(`${this.localName} expects the min-width attribute to have a px unit as part of the value (e.g. 50px)`);this.invalidate()}onWidthChange(e){const t=e.substr(e.length-2);if("px"!==t&&"fr"!==t)throw new Error(`${this.localName} expects the width attribute to have a unit (fr, px) as part of the value (e.g. 2fr or 50px)`);this.invalidate()}};XI([gt()],LO.prototype,"property",2),XI([gt()],LO.prototype,"heading",2),XI([gt(),zt({type:Zo})],LO.prototype,"icon",2),XI([gt()],LO.prototype,"description",2),XI([gt(),zt({type:Boolean})],LO.prototype,"sortable",2),XI([gt(),zt({type:aO})],LO.prototype,"type",2),XI([gt()],LO.prototype,"width",2),XI([gt()],LO.prototype,"minWidth",2),XI([gt(),zt({type:Boolean})],LO.prototype,"hidden",2),XI([gt(),zt({type:sO})],LO.prototype,"align",2),XI([gt({fromAttribute:e=>e||"asc"}),zt({type:oO})],LO.prototype,"sorted",2),XI([FO({slot:"header"})],LO.prototype,"headerTemplate",2),XI([FO({slot:"cell"})],LO.prototype,"cellTemplate",2),XI([FO({slot:"summary"})],LO.prototype,"summaryTemplate",2),XI([wi("property",{triggerOn:pi.ChangeAndConnect})],LO.prototype,"onPropertyChange",1),XI([wi("minWidth")],LO.prototype,"onMinWidthChange",1),XI([wi("width")],LO.prototype,"onWidthChange",1),LO=XI([_t({tag:"acorn-table-column"})],LO);var AO=class extends Ti{constructor(){super(...arguments),this._rows=[]}get rows(){return this._rows}set rows(e){this._rows=[...e],this.invalidate()}get top(){return this._top||0}get height(){return this._height||0}get bottom(){return this._bottom||0}clear(){this.rows=[]}connectedCallback(){this._parent=this.parentElement&&Qt(this.parentElement,yt("acorn-table"))?this.parentElement:void 0}disconnectedCallback(){this.invalidate(),this._parent=void 0}sort(e,t){const i=new Intl.Collator("sv");this._rows.sort((n,o)=>this._simpleStringSort(n,o,e,t,i)),this.invalidate()}updateSelection(e,t){this.rows=this._rows.map(i=>
4203t&&i!==t||i.selected===e||i.disabled||i.selectionDisabled?i:{...i,selected:e})}setActive(e){this.rows=this._rows.map(t=>{const{active:i,...n}=t;return t===e?{...n,active:!0}:n})}isRowVisible(e){return!this._visibleRowRange||e>=this._visibleRowRange[0]&&e<=this._visibleRowRange[1]}updateBounds(e,t){this._top=t,this._ribbonHeight=this.ribbon?hO[e].ribbon:0,this._rowsHeight=this.rows.length*hO[e].row,this._summaryHeight=this.summary?hO[e].summary:0,this._height=this._ribbonHeight+this._rowsHeight+this._summaryHeight,this._bottom=this._top+this._height}updateViewportVisibility(e,t){const i=Math.round((this._rowsHeight||0)/this.rows.length),n=(this._top||0)+(this._ribbonHeight||0),o=Math.floor(Math.max(0,(e-n)/i)),r=Math.ceil(Math.min(this.rows.length,(t-n)/i)+1);this._visibleRowRange=[o,r]}clearViewportVisibility(){this._visibleRowRange=void 0}filter(e){return this._rows.filter(e)}invalidate(){super.invalidate(),this._parent&&this._parent.invalidate()}_simpleStringSort(e,t,i,n,o){const r=this._propertyAsString(e,i),a=this._propertyAsString(t,i),s=n?r:a,l=n?a:r;return o.compare(s,l)}_propertyAsString(e,t){let i=e[t]||"";return i instanceof HTMLElement?i="":"number"!=typeof i&&"boolean"!=typeof i||(i=i.toString()),i}};XI([gt()],AO.prototype,"ribbon",2),XI([Ht()],AO.prototype,"summary",2),AO=XI([_t({tag:"acorn-table-row-group"})],AO);var MO=Ve.createTranslation({Clear:{sv:"Rensa",en:"Clear"},Close:{sv:"Stäng",en:"Close"},Items:{sv:"föremål",en:"items"},Selected:{sv:"vald",en:"selected"},ShowSelected:{sv:"Visa vald",en:"Show selected"},PluralSuffix:{sv:"a",en:""}}),BO={$host:{display:"block"},$$slotted:{"&([slot]:nth-child(n+5))":{display:"none"}},container:{display:"flex",alignItems:"center",padding:"0 24px",gap:"16px",boxShadow:"1px 1px 10px 0px rgba(0,0,0,0.25)",overflow:"hidden",backgroundColor:zi.Surface.elevation,borderRadius:()=>co({base:"0",sm:"4px"}),height:"74px",boxSizing:"border-box"},leftContainer:{display:"flex",alignItems:"center",gap:"16px",margin:"24px 0"},rightContainer:{flex:1,margin:0},itemsSelected:{fontSize:kn(18),fontFamily:Cn.Headline,fontWeight:$n.Bold,color:zi.Text.brand,"&:empty":{display:"none"}},overlayOpenButton:{flex:"1",flexDirection:"column",display:"flex"},chip:{margin:"0",display:"flex"},clearButton:{display:e=>e.clearable?"block":"none"}},PO="itemsSelected",NO=class extends Ti{constructor(){super(...arguments),this.itemCount=0,this.unit=MO.Items,this._showOnlySelected=!1,this._isBottomSheetOpen=!1,this._isCollapsed=!0}get _suffix(){return this.itemCount>1?MO.PluralSuffix:""}get _itemsSelectedString(){return`${this.itemCount} ${this.unit} ${MO.Selected+this._suffix}`}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this._narrowScreenObserver=window.matchMedia(`(max-width: ${gn.Small})`),this._isCollapsed=this._narrowScreenObserver.matches,this._narrowScreenObserver.addEventListener("change",this._onScreenSizeChange)}disconnectedCallback(){var e;null==(e=this._narrowScreenObserver)||e.removeEventListener("change",this._onScreenSizeChange)}getStyle(){return BO}afterInitialRender(){this._itemCountChange.emit({itemCount:this.itemCount})}render(){if(this.itemCount)return this._isCollapsed?this._renderMobile():this._renderDesktop()}onItemCountChange(e,t,i){isNaN(this.itemCount)&&(this.itemCount=0),i?this._animation.goTo(this.itemCount>0?"end":"start"):(this.itemCount>0?(this._animation.goTo("start"),this._animation.transitionTo("end")):this._showOnlySelected=!1,this._itemCountChange.emit({itemCount:this.itemCount}))}fadeInOutFrame(e){if(e.transitionState===li.Transitioning){this.shadowRoot.getElementById(PO).style.opacity=e.value.toString()}}_onScreenSizeChange(e){this._isCollapsed=e.matches}_onOverlayOpenButtonClick(){this._isBottomSheetOpen=!0}_onClearButtonClick(){this._showOnlySelected=!1,this._clear.emit(),this._isBottomSheetOpen=!1}_onChange(e){this._showOnlySelected=e.target.checked;const t=this._showOnlySelected?{selected:this._showOnlySelected}:{};this._filter.emit({filter:t}),this._isBottomSheetOpen=!1}_renderMobile(){return $`
4204            <div class="${this.classes.container}">
4205                <acorn-button
4206                    class="${this.classes.overlayOpenButton}"
4207                    label="${this._itemsSelectedString}"
4208                    @click="${this._onOverlayOpenButtonClick}"
4209                ></acorn-button>
4209
4210            </div>
4211            <acorn-internal-bottom-sheet .open="${this._isBottomSheetOpen}" @close="${this._onBottomSheetClose}">
4212                <acorn-internal-bottom-sheet-header heading="${this._itemsSelectedString}">
4213                </acorn-internal-bottom-sheet-header>
4214                <acorn-internal-bottom-sheet-body>${this._renderContent("")}</acorn-internal-bottom-sheet-body>
4215            </acorn-internal-bottom-sheet>
4216        `}_renderDesktop(){return $`<div class="${this.classes.container}">${this._renderContent(this._itemsSelectedString)}</div>`}_renderContent(e){return $`
4217            <div class="${this.classes.leftContainer}">
4218                <span class="${this.classes.itemsSelected}" id="${PO}"> ${e} </span>
4219                <acorn-filter-chip
4220                    ?checked="${this._showOnlySelected}"
4221                    class="${this.classes.chip}"
4222                    label="${MO.ShowSelected+this._suffix}"
4223                    @change="${this._onChange}"
4224                ></acorn-filter-chip>
4225
4226                <acorn-text-button @click="${this._onClearButtonClick}" class="${this.classes.clearButton}">
4227                    ${MO.Clear}
4228                </acorn-text-button>
4229            </div>
4230            <acorn-button-container
4231                class="${this.classes.rightContainer}"
4232                layout="${this._isCollapsed?yl.Vertical:yl.Horizontal}"
4233            >
4234                ${this._buttonSlot}</acorn-button-container
4235            >
4236        `}_onBottomSheetClose(){this._isBottomSheetOpen=!1}};XI([gt(),zt({type:Number})],NO.prototype,"itemCount",2),XI([gt()],NO.prototype,"unit",2),XI([gt(),zt({type:Boolean})],NO.prototype,"clearable",2),XI([ri("button",{selectAllTypes:["button"],spread:!0}),Ht()],NO.prototype,"_buttonSlot",2),XI([ft({name:"filter"})],NO.prototype,"_filter",2),XI([ft({name:"clear"})],NO.prototype,"_clear",2),XI([ft({name:"itemCountChange"})],NO.prototype,"_itemCountChange",2),XI([Ht()],NO.prototype,"_showOnlySelected",2),XI([hi({duration:ai.isRunningTests?"0.01s":"0.35s",ease:"easeInOut"})],NO.prototype,"_animation",2),XI([Ht()],NO.prototype,"_isBottomSheetOpen",2),XI([Ht()],NO.prototype,"_isCollapsed",2),XI([wi("itemCount",{triggerOn:pi.ChangeAndConnect})],NO.prototype,"onItemCountChange",1),XI([Wt("_animation")],NO.prototype,"fadeInOutFrame",1),XI([Pe()],NO.prototype,"_onScreenSizeChange",1),XI([Pe()],NO.prototype,"_onOverlayOpenButtonClick",1),XI([Pe()],NO.prototype,"_onClearButtonClick",1),XI([Pe()],NO.prototype,"_onChange",1),XI([Pe()],NO.prototype,"_onBottomSheetClose",1),NO=XI([_t({tag:"acorn-table-selection-bar"})],NO);var HO=Ve.createTranslation({Clear:{sv:"Nollställ filter",en:"Clear filters"}}),zO={$host:{display:"block","-webkit-overflow-scrolling":"auto",outline:"none !important"},$$slotted:{'&([slot="filter"])':{margin:0}},filtersCollapsed:{whiteSpace:"nowrap",paddingBottom:"8px",display:"flex",gap:"8px",flexWrap:"nowrap"},filters:{display:"flex",gap:"8px",flexWrap:"wrap"},clearButton:{padding:"8px"}},WO=class extends Ti{constructor(){super(...arguments),this.clearable=!1,this._isCollapsed=!1}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this._collapsedQueryList=window.matchMedia(`(min-width: ${gn.ExtraSmall})`),this._isCollapsed=!this._collapsedQueryList.matches,this._collapsedQueryList.addEventListener("change",this._onMediaChange)}disconnectedCallback(){var e;null==(e=this._collapsedQueryList)||e.removeEventListener("change",this._onMediaChange)}render(){return $`
4237            ${this._isCollapsed?$`
4238                      <acorn-scroll-pane
4239                          orientation="${of.Horizontal}"
4240                          focus-strategy="${rf.None}"
4241                      >
4242                          <div class="${this.classes.filtersCollapsed}">
4243                              ${this._filters}${this._renderClearButton()}
4244                          </div>
4245                      </acorn-scroll-pane>
4246                  `:$` <div class="${this.classes.filters}">${this._filters}${this._renderClearButton()}</div> `}
4247        `}getStyle(){return zO}_onMediaChange(e){this._isCollapsed=!e.matches}_renderClearButton(){if(this.clearable)return $`
4248            <acorn-text-button @click="${this._onClearAll}" class="${this.classes.clearButton}"
4249                >${HO.Clear}</acorn-text-button
4250            >
4251        `}_onClearAll(){this._clear.emit()}};XI([gt(),zt({type:Boolean})],WO.prototype,"clearable",2),XI([ri("filter",{selectAllTypes:["action-chip","filter-chip","choice-chip"],strict:!0})],WO.prototype,"_filters",2),XI([Ht()],WO.prototype,"_isCollapsed",2),XI([ft()],WO.prototype,"_clear",2),XI([Pe()],WO.prototype,"_onMediaChange",1),XI([Pe()],WO.prototype,"_onClearAll",1),WO=XI([_t({tag:"acorn-table-filters"})],WO);var VO=class extends Qg{};VO=XI([_t({tag:"acorn-table-toolbar-item"})],VO);var jO=class extends Zg{};XI([ri("item",{selectAllTypes:VO.config.type,strict:!0,required:!0}),Ht()],jO.prototype,"items",2),jO=XI([_t({tag:"acorn-table-toolbar-item-group"})],jO);var GO=class extends Xg{};XI([ri("item",{selectAllTypes:[VO.config.type,jO.config.type],strict:!0,required:!0}),Ht()],GO.prototype,"items",2),GO=XI([_t({tag:"acorn-table-toolbar"})],GO);var qO=Ve.createTranslation({Search:{sv:"Sök",en:"Search"}}),UO={$host:{display:"block"},searchField:{margin:"0",alignSelf:"start",minWidth:"200px"}},KO=class extends Ti{constructor(){super(...arguments),this.ariaLabel=qO.Search,this.placeholder=qO.Search,this.value=""}render(){return $`
4252            <acorn-search-field
4253                .value="${this.value}"
4254                aria-label="${this.ariaLabel}"
4255                class="${this.classes.searchField}"
4256                @input="${this._onInput}"
4257                placeholder="${this.placeholder}"
4258            ></acorn-search-field>
4259        `}getStyle(){return UO}_onInput(e){this.value=e.target.value,this._search.emit({query:this.value})}};XI([gt()],KO.prototype,"ariaLabel",2),XI([gt()],KO.prototype,"placeholder",2),XI([gt()],KO.prototype,"value",2),XI([ft({name:"search"})],KO.prototype,"_search",2),XI([Pe()],KO.prototype,"_onInput",1),KO=XI([_t({tag:"acorn-table-search"})],KO);var YO={$host:{display:"block",...Ln(Dn.Medium)},$$slotted:{"&(acorn-table-filters)":{gridRowStart:"2"},"&(acorn-table-toolbar)":{gridColumnStart:"2",gridRowStart:e=>e.showHeading||e._searchSlot.isFilled()?"1":"2"},"&(acorn-table-search)":{gridColumnStart:"2",gridRowStart:e=>e._toolbarSlot.isFilled()||e._filterSlot.isFilled()?"2":"1"}},trackerContainer:{position:"relative"},tableContentContainer:{height:e=>`${(e._tableHeight||0)+e._scrollBarHeight}px`,"@media print":{height:"auto"}},tableSelectionBarContainer:{position:"sticky",bottom:"8px",zIndex:"9",marginTop:"24px"},header:{margin:"9px 0",display:co({base:"flex",xs:"grid"}),flexDirection:"column",justifyContent:"space-between",gridTemplateColumns:"auto auto",gap:"8px"},heading:{...Co(zi.Text.Regular.high),display:e=>e.showHeading?void 0:"none",margin:e=>e.showHeading?"8px 0":"0"},pagination:{display:"flex",flexDirection:"row",justifyContent:"center",margin:vn.Medium},showMoreToggle:{borderTop:"none",marginTop:"2px"}},XO="tableContent",QO=class extends Ti{constructor(){super(),this.sticky=!1,this.paginationCurrentPage=1,this.selectableRows=!1,this.density="default",this.optimizeRender=!1,this.showHeading=!1,this._scrollBarHeight=0,this.paginationCurrentPageIndex=0,this._trackerElements=[],this._onFontSizeRescale=()=>this.invalidate(),this._onPaginationEvent=this._onPaginationEvent.bind(this)}get columns(){const e=this._columns.content.filter(e=>!e.hidden).map(e=>e.columnData);return this._selectableRowColumn&&(this._selectableRowColumn.rowCount=this._rowCount,this._selectableRowColumn.selectableRowsCount=this._selectableRowsCount,this._selectableRowColumn.selectedRowsCount=this._visibleSelectedRowsCount,e.unshift(this._selectableRowColumn)),e}get rowGroups(){return[...this.children].filter(e=>e instanceof AO)}get _useLazyRender(){return this.optimizeRender}get _pageCount(){return this.paginationTotalRowCount&&this.paginationRowsPerPage?Math.ceil(this.paginationTotalRowCount/this.paginationRowsPerPage):1}get _rowCount(){return this.rowGroups.reduce((e,t)=>t.rows.length+e,0)}get _selectableRowsCount(){return this.rowGroups.reduce((e,t)=>t.filter(e=>!e.disabled&&!e.selectionDisabled).length+e,0)}get _visibleSelectedRowsCount(){return this.rowGroups.reduce((e,t)=>t.filter(e=>!e.disabled&&!e.selectionDisabled).filter(e=>e.selected).length+e,0)}get _interactiveRowsCount(){return this.rowGroups.reduce((e,t)=>t.filter(e=>e.interactive).length+e,0)}connectedCallback(){var e;this._contentElement=document.createElement("acorn-table-content"),this._contentElement.setAttribute("slot",XO),this._contentElement.addEventListener("colHeaderClick",this._onColHeaderClick),this._contentElement.addEventListener("selectionChanged",this._onRowSelectionChanged),this._contentElement.addEventListener("rowClick",this._onRowClick),this._contentElement.addEventListener("scrollBarChanged",e=>{this._scrollBarHeight=e.detail.scrollBarHeight}),this._contentElement.interactiveRowsCount=this._interactiveRowsCount,this.appendChild(this._contentElement),ze.register(this._onFontSizeRescale),null==(e=super.connectedCallback)||e.call(this)}disconnectedCallback(){this._contentElement&&this.removeChild(this._contentElement),this._clearIntersection(),ze.unregister(this._onFontSizeRescale)}
4259beforeRender(){if(!this.isConnected||!this._contentElement)return;const e=this._calculatePendingRows();let t=this._calculateRowGroupBounds(hO[this.density].header);this._tableHeight=this._calculateTableHeight(t,e),t=this._setupIntersectionObserver(t,this._tableHeight),this._contentElement.interactiveRows=this.interactiveRows,this._contentElement.selectableRows=this.selectableRows,this._contentElement.density=this.density,this._contentElement.sticky=this.sticky,this._contentElement.heading=this.heading,this._contentElement.tableData={columns:this.columns,summary:this.summary,rowGroups:t,pendingRows:e}}render(){const e=this.showHeading||this._toolbarSlot.isFilled()||this._filterSlot.isFilled()||this._searchSlot.isFilled();return $`
4260            ${e?$` <div class="${this.classes.header}">
4261                      ${this.heading?$`<h3 class="${this.classes.heading}">${this.heading}</h3>`:void 0}
4262                      ${this._toolbarSlot} ${this._filterSlot} ${this._searchSlot}
4263                  </div>`:null}
4264            <div class="${this.classes.trackerContainer}">${this._trackerElements}</div>
4265            <div class="${this.classes.tableContentContainer}"><slot name="${XO}"></slot></div>
4266            ${"pages"===this.pagination?$`
4267                      <div class="${this.classes.pagination}">
4268                          <acorn-table-pagination
4269                              @pageChanged="${this._onPaginationEvent}"
4270                              total-row-count="${this.paginationTotalRowCount}"
4271                              page-count="${this._pageCount}"
4272                              rows-per-page="${this.paginationRowsPerPage}"
4273                              current-page="${this.paginationCurrentPage}"
4274                          ></acorn-table-pagination>
4275                      </div>
4276                  `:null}
4277            ${"steps"===this.pagination&&this._pageCount>1?$`
4278                      <acorn-show-more-button
4279                          class="${this.classes.showMoreToggle}"
4280                          controls="id"
4281                          ?has-more="${!this.paginationTotalRowCount||this.paginationTotalRowCount>this._rowCount}"
4282                          @more="${this._onPaginationEvent}"
4283                          @less="${this._onPaginationEvent}"
4284                      ></acorn-show-more-button>
4285                  `:null}
4286            <div class="${this.classes.tableSelectionBarContainer}">${this._selectionBar}</div>
4287        `}getStyle(){return YO}onSlotChange(){this.invalidate()}afterRender(){var e;if(!(null==(e=this.heading)?void 0:e.trim()))throw new Error(`${this.localName} requires that you set the heading attribute to support screen readers.`)}onDensityChange(e){Object.values(lO).includes(e)||(this.density="default")}onSelectableRowsChange(){this.selectableRows&&(this._selectableRowColumn=new vO)}onOptimizeRenderChange(){this._useLazyRender?this._IntersectionObserver=new IntersectionObserver(this._onIntersection.bind(this)):this._clearIntersection()}onPaginationTypeChange(e){this._useLazyRender||"scroll"!==e||(this.pagination="steps")}onCurrentPageChange(e){this.paginationCurrentPageIndex=e-1}_calculatePendingRows(){const e=this.paginationTotalRowCount||0,t=this.paginationRowsPerPage||0;if("pages"===this.pagination){const i=Math.min(e-t*this.paginationCurrentPageIndex,t);return Math.max(0,i-this._rowCount)}return"scroll"===this.pagination||"steps"===this.pagination?Math.max(0,Math.min(e,t*(this.paginationCurrentPageIndex+1))-this._rowCount):0}_calculateRowGroupBounds(e){let t=e;return this.rowGroups.map(e=>(e.updateBounds(this.density,t),t=e.bottom,e))}_calculateTableHeight(e,t){let i=hO[this.density].header+t*hO[this.density].row;return i+=e.reduce((e,t)=>e+t.height,0),i+=this.summary?hO[this.density].footer:0,i=ze.scale(i),i}_setupIntersectionObserver(e,t){if(!this._IntersectionObserver)return e;let i,n;for(let e=0;e<this._trackerElements.length;e++)if(void 0===i&&this._trackerElements[e].__intersection)i=Math.max(0,e-1)*nO;else if(void 0!==i&&!this._trackerElements[e].__intersection){n=e*nO;break}void 0===i||n||(n=t);const o=e.map(e=>
4287(e.updateViewportVisibility(i||0,n||0),e)),r=Math.ceil(t/nO);for(;r<this._trackerElements.length;){const e=this._trackerElements.pop();e&&this._IntersectionObserver.unobserve(e)}for(;r>this._trackerElements.length;){const e=document.createElement("div");e.style.cssText=`\n                position: absolute;\n                top: ${this._trackerElements.length*nO}px;\n                height: 2px;\n                width: 100%;\n            `,this._trackerElements.push(e),this._IntersectionObserver.observe(e)}return o}_onColHeaderClick(e){const{property:t}=e.detail,i=this.columns.find(e=>e.property===t);if(!(null==i?void 0:i.sortable))return;this.columns.forEach(e=>{e.property===t?e.sorted="asc"===e.sorted?"desc":"asc":e.sorted="none"});if(!this._sort.emit({property:i.property,direction:i.sorted,pagination:this._getPaginationState()}).defaultPrevented){const e="asc"===i.sorted;this.rowGroups.forEach(i=>i.sort(t,e))}}_onRowClick(e){this._rowClick.emit({...e.detail,active:!0}).defaultPrevented||this.rowGroups.forEach(t=>t.setActive(e.detail.rowData))}_onRowSelectionChanged(e){this._rowSelectionChanged.emit({...e.detail,pagination:this._getPaginationState()}).defaultPrevented||this.rowGroups.forEach(t=>t.updateSelection(e.detail.selected,e.detail.row))}_onPaginationEvent(e){e.type===Eb.More?this._setPageIndex(this.paginationCurrentPageIndex+1):e.type===Eb.Less?this._setPageIndex(0):"pageChanged"===e.type&&this._setPageIndex(e.detail.pageIndex)}_setPageIndex(e){const t=this.paginationTotalRowCount?this._pageCount:Number.MAX_SAFE_INTEGER,i=Math.min(t,Math.max(0,e));this.paginationCurrentPageIndex!==i&&(this.paginationCurrentPage=i+1,"pages"===this.pagination&&this.rowGroups.forEach(e=>e.clear()),this._pageChange.emit(Object.assign(this._getPaginationState(),{sorting:this._getSortState()})))}_onIntersection(e){e.forEach(e=>{e.target.__intersection=e.isIntersecting,"scroll"===this.pagination&&e.isIntersecting&&e.target===this._trackerElements[this._trackerElements.length-1]&&(!this.paginationTotalRowCount||this.paginationTotalRowCount>this._rowCount)&&this._setPageIndex(this.paginationCurrentPageIndex+1)}),this.invalidate()}_clearIntersection(){this._IntersectionObserver&&(this._IntersectionObserver.disconnect(),this._IntersectionObserver=void 0,this._trackerElements=[],this.rowGroups.forEach(e=>e.clearViewportVisibility()))}_getSortState(){const e=this.columns.find(e=>"none"!==e.sorted);return e?{property:e.property,direction:e.sorted}:null}_getPaginationState(){const e=this.paginationRowsPerPage||0,t=this.paginationCurrentPageIndex*e,i=Math.min(t+e,this.paginationTotalRowCount||Number.MAX_SAFE_INTEGER),n={type:this.pagination,pageIndex:this.paginationCurrentPageIndex,rowFromIndex:t,rowToIndex:i};return Object.assign(n,{pageFrom:n.rowFromIndex,pageTo:n.rowToIndex,from:"pages"===this.pagination?t:0,to:i})}};XI([gt()],QO.prototype,"heading",2),XI([gt(),zt({type:Boolean})],QO.prototype,"sticky",2),XI([gt(),zt({type:rO})],QO.prototype,"pagination",2),XI([gt(),zt({type:Ge})],QO.prototype,"paginationTotalRowCount",2),XI([gt(),zt({type:Ge})],QO.prototype,"paginationRowsPerPage",2),XI([gt({reflect:!0}),zt({type:Ge})],QO.prototype,"paginationCurrentPage",2),XI([gt()],QO.prototype,"interactiveRows",2),XI([gt(),zt({type:Boolean})],QO.prototype,"selectableRows",2),XI([gt(),zt({type:lO})],QO.prototype,"density",2),XI([gt(),zt({type:Boolean})],QO.prototype,"optimizeRender",2),XI([gt(),zt({type:Boolean})],QO.prototype,"showHeading",2),XI([Ht()],QO.prototype,"summary",2),XI([ri("filters",{selectSingleType:WO.config.type,strict:!0})],QO.prototype,"_filterSlot",2),XI([ri("toolbar",{selectSingleType:GO.config.type,strict:!0})],QO.prototype,"_toolbarSlot",2),XI([ri("search",{selectSingleType:KO.config.type,strict:!0})],QO.prototype,"_searchSlot",2),XI([ft({name:"pageChange"})],QO.prototype,"_pageChange",2),XI([ft({name:"sort",cancelable:!0})],QO.prototype,"_sort",2),XI([ft({name:"rowSelectionChanged",cancelable:!0,bubbles:!0})],QO.prototype,"_rowSelectionChanged",2),XI([ft({name:"rowClick",cancelable:!0})],QO.prototype,"_rowClick",2),XI([ri("selectionBar",{selectSingleType:NO.config.type}),Ht()],QO.prototype,"_selectionBar",2),XI([Ht(),ri("column",{selectAllTypes:"table-column"})],QO.prototype,"_columns",2),XI([wi("_filterSlot"),wi("_toolbarSlot"),wi("_searchSlot")],QO.prototype,"onSlotChange",1),XI([wi("density")],QO.prototype,"onDensityChange",1),XI([wi("selectableRows")],QO.prototype,"onSelectableRowsChange",1),XI([wi("optimizeRender",{triggerOn:pi.ChangeAndConnect})],QO.prototype,"onOptimizeRenderChange",1),XI([wi("pagination",{triggerOn:pi.ChangeAndConnect})],QO.prototype,"onPaginationTypeChange",1),XI([wi("paginationCurrentPage")],QO.prototype,"onCurrentPageChange",1),XI([Pe()],QO.prototype,"_onColHeaderClick",1),XI([Pe()],QO.prototype,"_onRowClick",1),XI([Pe()],QO.prototype,"_onRowSelectionChanged",1),QO=XI([_t({tag:"acorn-table"})],QO);var ZO=Object.defineProperty,JO=Object.getOwnPropertyDescriptor,eD=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?JO(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&ZO(t,i,r),r};function tD(e){return e.shouldShowInvalidState()?to.Invalid:e._hasFormControlFocusState()?to.Focused:e.disabled?to.Disabled:void 0}var iD={textArea:{...ao(tD),...so(),...Qi(),...oo({truncate:!1},tD),backgroundColor:e=>no(tD(e)),boxSizing:"border-box",display:"block",width:e=>e.cols?isNaN(e.cols)?"100%":void 0:"100%",boxShadow:"none",padding:`16px ${Zn}`,resize:"none",minHeight:"70px"},helperText:{display:"flex"},characterCount:{marginLeft:"auto",paddingLeft:"12px"}},nD="textArea",oD="describedBy";function rD(e){const t=e?parseInt(e):-1;return isNaN(t)?-1:t}function aD(e){return"number"!=typeof e||isNaN(e)||-1===e?null:e.toString()}var sD=class extends Ps{constructor(){super(),this.autocomplete="",this.readOnly=!1,this.rows=3,this.label="",this._onInputEvent=this._onInputEvent.bind(this),this._onFocusEvent=this._onFocusEvent.bind(this)}get disableValidationMixin(){return!0}get useFormAssociated(){return!0}set selectionStart(e){this._nativeInputElement&&(this._nativeInputElement.selectionStart=e)}get selectionStart(){return this._nativeInputElement?this._nativeInputElement.selectionStart:null}set selectionEnd(e){this._nativeInputElement&&(this._nativeInputElement.selectionEnd=e)}get selectionEnd(){return this._nativeInputElement?this._nativeInputElement.selectionEnd:null}set selectionDirection(e){this._nativeInputElement&&(this._nativeInputElement.selectionDirection=e)}get selectionDirection(){return this._nativeInputElement?this._nativeInputElement.selectionDirection:null}get modelElementTagName(){return"textarea"}get _nativeInputElement(){return this.shadowRoot.getElementById(nD)}getStyle(){return ge({},super.getStyle(),iD)}render(){return $`
4288            ${this.labelTemplate(this.label,nD)}
4289            <textarea
4290                @input="${this._onInputEvent}"
4291                @change="${this.redispatchEvent}"
4292                @focus="${this._onFocusEvent}"
4293                @blur="${this._onFocusEvent}"
4294                @invalid="${this.preventBrowserSpecificValidationErrorToBeShown}"
4295                class="${this.classes.textArea}"
4296                id="${nD}"
4297                ?autofocus="${this.autofocus}"
4298                ?disabled="${this.disabled}"
4299                ?required="${this.required}"
4300                ?readonly="${this.readOnly}"
4301                aria-describedby="${oD}"
4302                aria-label="${j(this.ariaLabel||this.label)}"
4303                autocomplete="${this.autocomplete}"
4304                maxlength="${j(this.maxLength?isNaN(this.maxLength)?void 0:this.maxLength:void 0)}"
4305                minlength="${j(this.minLength?isNaN(this.minLength)?void 0:this.minLength:void 0)}"
4306                placeholder="${j(this.placeholder||void 0)}"
4307                rows="${this.rows}"
4308                cols="${j(this.cols?isNaN(this.cols)||this.cols<20?void 0:this.cols:void 0)}"
4309                .value="${this.value}"
4310            ></textarea>
4311            <div id="${oD}" class="${this.classes.helperText}">
4312                ${this.hintTemplate()} ${this.errorTemplate()} ${this.lengthRestrictionTemplate()}
4313            </div>
4314        `}select(){var e;null==(e=this._nativeInputElement)||e.select()}setSelectionRange(e,t,i){var n;null==(n=this._nativeInputElement)||n.setSelectionRange(e,t,i)}afterRender(){this.updateValidity()}updateValidity(){let e=this._nativeInputElement?this._nativeInputElement.validity:{};(this.maxLength&&!isNaN(this.maxLength)&&this.value.length>this.maxLength||this.maxCharacterCount&&this.maxCharacterCount>0&&this.value.length>this.maxCharacterCount)&&(e={...e,tooLong:!0}),super.updateValidity(e)}lengthRestrictionTemplate(){return this.maxCharacterCount&&this.maxCharacterCount>0?$`<acorn-internal-character-count
4315                class="${this.classes.characterCount}"
4316                current-character-count="${this.value.length}"
4317                max-character-count="${this.maxCharacterCount}"
4318            ></acorn-internal-character-count>`:null}getFocusElement(){return this._nativeInputElement}onKeyEvent(){}_onFocusEvent(e){this.updateFormControlFocusState("focus"===e.type)}_onInputEvent(e){super.onInputEvent(),this.value=e.target.value}};eD([gt({reflect:!0})],sD.prototype,"autocomplete",2),eD([gt({name:"maxlength",reflect:!0,fromAttribute:rD,toAttribute:aD}),zt({type:Number})],sD.prototype,"maxLength",2),eD([gt({name:"minlength",reflect:!0,fromAttribute:rD,toAttribute:aD}),zt({type:Number})],sD.prototype,"minLength",2),eD([gt({reflect:!0})],sD.prototype,"placeholder",2),eD([gt({name:"readonly",reflect:!0}),zt({type:Boolean})],sD.prototype,"readOnly",2),eD([gt({reflect:!0,shouldUpdateAttribute:(e,t)=>!(t&&3===e),propertyFormatter:e=>{const t=parseInt(e);return t>=3?t:3}}),zt({type:Number})],sD.prototype,"rows",2),eD([gt({reflect:!0,propertyFormatter:e=>{const t=parseInt(e);return t>=20?t:void 0}}),zt({type:Number})],sD.prototype,"cols",2),eD([gt()],sD.prototype,"label",2),eD([gt({fromAttribute:e=>e?Math.max(parseInt(e)||0,0):0}),zt({type:Number})],sD.prototype,"maxCharacterCount",2),sD=eD([_t({tag:"acorn-text-area"})],sD);var lD=Object.defineProperty,cD=Object.getOwnPropertyDescriptor,dD=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?cD(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&lD(t,i,r),r},hD=Ve.createTranslation({TooltipAriaLabel:{sv:"Förklaring",en:"Explanation"},CloseButtonLabel:{sv:"Dölj förklaring",en:"Hide explanation"}}),pD={$host:{display:"block","&(:focus)":{outline:"none !important"}}},uD=class extends Ti{constructor(){super(...arguments),this.heading=hD.TooltipAriaLabel,this._showTooltip=!1}getStyle(){return pD}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),document.addEventListener("opened",this._onOverlayOpen)}disconnectedCallback(){document.removeEventListener("opened",this._onOverlayOpen)}render(){return $`
4319            <acorn-page-detail heading="${this.heading}" @close="${this._onClose}" close-on-click-outside>
4320                ${this._showTooltip?$` <slot></slot> `:void 0}
4321            </acorn-page-detail>
4322        `}
4322_onClose(){this._showTooltip=!1,this._closed.emit({id:this.id})}_onOverlayOpen(e){e.detail.id===this.id&&(this._showTooltip=!0)}};dD([gt()],uD.prototype,"heading",2),dD([ft({bubbles:!0,composed:!0})],uD.prototype,"_closed",2),dD([Ht()],uD.prototype,"_showTooltip",2),dD([Pe()],uD.prototype,"_onClose",1),dD([Pe()],uD.prototype,"_onOverlayOpen",1),uD=dD([_t({tag:"acorn-tooltip-content"})],uD);var gD={$host:{display:"inline","&(:focus)":{outline:"none !important"}},toggle:{...Qi(),pointerEvents:e=>e._showTooltip?"none":"auto",color:zi.Text.interactive,borderBottom:`1px dashed ${zi.Text.interactive}`,cursor:"pointer"},popover:{display:"inline-block"},overlayContent:{position:"relative",padding:"16px 56px 16px 16px"},overlayText:{whiteSpace:"pre-line"},overlayCloseButton:{position:"absolute",top:"12px",right:"12px"},ariaContent:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"}},mD="toggleBtn",bD=class extends Ti{constructor(){super(...arguments),this.contentId=`contentId@${Math.random()}`,this.displayMode=jl.Auto,this.overlayDirection=Pl.Down,this.overlayAlignment=Nl.Left,this._showTooltip=!1}get _toggleBtn(){return this.shadowRoot.getElementById(mD)}get _isLegacy(){return!this.label}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),document.addEventListener("closed",this._onOverlayClose)}disconnectedCallback(){document.removeEventListener("closed",this._onOverlayClose)}render(){return $`
4323            <span
4324                role="button"
4325                id="${mD}"
4326                aria-controls="${j(this.text?this.contentId:void 0)}"
4327                aria-label="${j(this.accessibilityLabel)}"
4328                tabindex="0"
4329                class="${this.classes.toggle}"
4330                @click="${this._onClick}"
4331                @keydown="${this._onKeyDown}"
4332            >
4333                ${this._renderLabel()}
4334            </span>
4335            ${this._renderOverlay()}
4336        `}getStyle(){return gD}_renderLabel(){return this.label||$`<slot></slot>`}_renderOverlay(){return this._isLegacy&&!this.text?null:$`
4337            <acorn-internal-responsive-overlay
4338                display-mode="${this.displayMode}"
4339                class="${this.classes.popover}"
4340                ?open="${this._showTooltip}"
4341                controlled-by="${mD}"
4342                text="${j(this.text)}"
4343                heading="${j(this.heading)}"
4344                direction="${this.overlayDirection}"
4345                alignment="${this.overlayAlignment}"
4346                @close="${this._onOverlayClose}"
4347            >
4348                ${this._renderOverlayContent()}
4349            </acorn-internal-responsive-overlay>
4350        `}_renderOverlayContent(){var e;if(1===this.children.length&&"template"===(null==(e=this.firstElementChild)?void 0:e.localName)){return this.firstElementChild.content.cloneNode(!0)}return this.label?$`<slot></slot>`:null}_onOverlayClose(){this._showTooltip=!1}_onClick(){var e;null==(e=this._toggleBtn)||e.focus(),this._openTooltip()}_onKeyDown(e){if(!this._showTooltip)switch(e.key){case ye.Enter:case ye.Space:e.preventDefault(),this._openTooltip()}}_openTooltip(){if(this._showTooltip)return;const e={id:this.contentId,text:this.text};this._isLegacy&&(e.returnFocus=()=>{this.focus()});this._opened.emit(e).defaultPrevented||(this._showTooltip=!0)}};dD([gt()],bD.prototype,"label",2),dD([gt()],bD.prototype,"text",2),dD([gt()],bD.prototype,"contentId",2),dD([gt()],bD.prototype,"heading",2),dD([gt(),zt({type:jl})],bD.prototype,"displayMode",2),dD([gt(),zt({type:Pl})],bD.prototype,"overlayDirection",2),dD([gt(),zt({type:Nl})],bD.prototype,"overlayAlignment",2),dD([gt()],bD.prototype,"accessibilityLabel",2),dD([Ht()],bD.prototype,"_showTooltip",2),dD([ft({bubbles:!0,composed:!0,cancelable:!0})],bD.prototype,"_opened",2),dD([Pe()],bD.prototype,"_onOverlayClose",1),dD([Pe()],bD.prototype,"_onClick",1),dD([Pe()],bD.prototype,"_onKeyDown",1),bD=dD([_t({tag:"acorn-tooltip",delegatesFocus:!0})],bD);var vD=Object.defineProperty,yD=Object.getOwnPropertyDescriptor,_D=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?yD(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&vD(t,i,r),r},fD=class extends Ti{render(){return $`<slot></slot>`}};fD=_D([_t({tag:"acorn-top-navbar-body"})],fD);var xD=Ve.createTranslation({BrandImage:{sv:"Varumärkesbild",en:"Brand image"}}),wD={$host:{display:"flex",flexDirection:"row",alignItems:"center"},wrapper:{boxSizing:"border-box",maxHeight:"100%",textDecoration:"none",margin:"0 8px",padding:"6px 0",display:e=>co({base:e.alwaysShow?"block":"none",md:"block"})},image:{display:"inline-block",whiteSpace:"nowrap",maxHeight:"32px",height:e=>e._isSvgImage()?"32px":"auto"}},CD=class extends Ti{constructor(){super(...arguments),this.alt=xD.BrandImage,this.link="/",this.alwaysShow=!1}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this._onBrandClick=this._onBrandClick.bind(this)}_isSvgImage(){var e,t;return"svg"===(null==(t=null==(e=this.src)?void 0:e.split(".").pop())?void 0:t.toLowerCase())}render(){return $`
4351            <a
4352                href="${this.link}"
4353                @click="${this._onBrandClick}"
4354                @keydown="${this._onBrandClick}"
4355                class="${this.classes.wrapper}"
4356            >
4357                <img
4358                    src="${j(this.src)}"
4359                    srcset="${j(this.srcset)}"
4360                    alt="${this.alt}"
4361                    class="${this.classes.image}"
4362                />
4363            </a>
4364        `}getStyle(){return wD}_onBrandClick(e){"keydown"===e.type&&e.key!==ye.Enter||(e.stopPropagation(),this._brandClick.emit().defaultPrevented&&e.preventDefault())}};_D([gt()],CD.prototype,"src",2),_D([gt()],CD.prototype,"srcset",2),_D([gt()],CD.prototype,"alt",2),_D([gt()],CD.prototype,"link",2),_D([gt(),zt({type:Boolean})],CD.prototype,"alwaysShow",2),_D([ft({bubbles:!0,cancelable:!0})],CD.prototype,"_brandClick",2),CD=_D([_t({tag:"acorn-top-navbar-brand-image"})],CD);var SD=Ve.createTranslation({ToggleSidebar:{sv:"Öppna/stäng sidomenyn",en:"Toggle side menu"},TopNavigation:{sv:"Topp meny",en:"Top menu"}}),$D={$host:{display:"block",height:"var(--main-layout-header-height, 60px)",outline:"none !important"}
4364,$$slotted:{'&([slot="button"])':{margin:"0 4px"}},wrapper:{display:"flex",flexDirection:"row",alignItems:"stretch",height:"inherit",padding:"0 2px","@media print":{justifyContent:"flex-end"},...fn({sm:{padding:"0 12px"}})},defaultContainer:{flex:"1 1 auto",display:"flex",flexDirection:"row",alignItems:"center",JustifyContent:"center",margin:e=>e._defaultSlot.isFilled()?"0 8px":"0","@media print":{display:"none !important"}},buttonContainer:{display:"flex",flexDirection:"row",alignItems:"center",margin:e=>e._buttonSlot.isFilled()?"0 8px":"0","@media print":{display:"none !important"}},menuContainer:{display:"flex",flexDirection:"row",alignItems:"center",padding:"0 2px",gap:"8px","@media print":{display:"none !important"}},menuToggle:{display:"var(--main-layout-menu-toggle-display, none)",border:"0",padding:"8px",backgroundColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:zi.Overlay.hover}},icon:{verticalAlign:"middle"}},kD=class extends Ti{render(){return $`
4365            <div class="${this.classes.wrapper}">
4366                <button
4367                    class="${this.classes.menuToggle}"
4368                    aria-label="${SD.ToggleSidebar}"
4369                    @click="${this._toggleSidebar.emit}"
4370                >
4371                    <acorn-icon
4372                        icon="${Zo.Bars}"
4373                        size="${Jo.Regular}"
4374                        class="${this.classes.icon}"
4375                    ></acorn-icon>
4376                </button>
4377                ${this._brandSlot}
4378                <div class="${this.classes.defaultContainer}">
4379                    ${this._bodySlot.isFilled()?this._bodySlot:this._defaultSlot}
4380                </div>
4381                <div class="${this.classes.buttonContainer}">${this._buttonSlot}</div>
4382                <nav class="${this.classes.menuContainer}" aria-label="${SD.TopNavigation}">
4383                    ${this._menuSlot} ${this._languageSlot}
4384                </nav>
4385            </div>
4386        `}getStyle(){return $D}beforeRender(){this._menuSlot.content.forEach(e=>e.overlayAlignment=Nl.Right)}};_D([ft({bubbles:!0,cancelable:!0})],kD.prototype,"_toggleSidebar",2),_D([Ht(),ri("brand",{selectSingleType:CD.config.type})],kD.prototype,"_brandSlot",2),_D([Ht(),ri("language",{selectSingleType:Wb.config.type})],kD.prototype,"_languageSlot",2),_D([Ht(),ri("menu",{selectAllTypes:jg.config.type})],kD.prototype,"_menuSlot",2),_D([Ht(),ri("button",{selectAllTypes:Dr.config.type})],kD.prototype,"_buttonSlot",2),_D([Ht(),ri("body",{selectSingleType:fD.config.type})],kD.prototype,"_bodySlot",2),_D([Ht(),ri("")],kD.prototype,"_defaultSlot",2),kD=_D([_t({tag:"acorn-top-navbar"})],kD);var ED=Object.defineProperty,TD=Object.getOwnPropertyDescriptor,ID=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?TD(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&ED(t,i,r),r},OD=class extends Ti{render(){return $`
4387            <ol class="${this.classes.list}">
4388                ${this._navigationStepSlots.map(e=>$`<li class="${this.classes.listItem}">${e}</li>`)}
4389            </ol>
4390        `}};ID([ri("item",{selectAllTypes:["wizard-navigation-vertical-step","wizard-navigation-horizontal-step"],spread:!0}),Ht()],OD.prototype,"_navigationStepSlots",2);var DD={$host:{display:"block"},list:{display:"block",padding:0,margin:0,listStyleType:"none"},listItem:{listStyleType:"none","&:not(:last-child)":{backgroundImage:`linear-gradient(to right, transparent 19px, ${zi.Line.Regular.low} 19px)`,backgroundSize:"21px",backgroundRepeat:"repeat-y"}}},RD=class extends OD{getStyle(){return DD}};RD=ID([_t({tag:"acorn-wizard-navigation-vertical"})],RD);var FD=(e=>(e.Upcoming="upcoming",e.Active="active",e.Completed="completed",e))(FD||{}),LD=new Map([["active",{StatusBackground:zi.Surface.Brand.highStatic}],["upcoming",{StatusBackground:zi.Surface.neutralInverted}],["completed",{StatusBackground:zi.ComponentSpecific.Wizard.stepComplete}]]),AD=Ve.createTranslation({StatusCurrent:{sv:"nuvarande",en:"current"},StatusCompleted:{sv:"avklarat",en:"completed"},Step:{sv:"Steg",en:"Step"},Description:{sv:"Beskrivning: ",en:"Description: "},HorizontalSteps:{sv:"Steg {0} av {1}",en:"Step {0} of {1}"}}),MD=class extends Ti{get currentState(){return this._currentState}constructor(){super(),this.onStepClick=this.onStepClick.bind(this)}beforeRender(){this.state&&LD.get(this.state)?this._currentState=this.state:"number"==typeof this.activeStep&&"number"==typeof this.step&&this.activeStep>this.step?this._currentState="completed":this.activeStep===this.step?this._currentState="active":this._currentState="upcoming"}getAriaStatus(){switch(this._currentState){case"active":return AD.StatusCurrent;case"completed":return AD.StatusCompleted;default:return""}}onStepClick(){this.dispatchEvent(new CustomEvent("stepClick",{detail:{step:this.step},bubbles:!0}))}};ID([gt()],MD.prototype,"heading",2),ID([gt()],MD.prototype,"description",2),ID([gt(),zt({type:Number})],MD.prototype,"step",2),ID([gt(),zt({type:Number})],MD.prototype,"activeStep",2),ID([gt(),zt({type:Boolean})],MD.prototype,"clickable",2),ID([gt(),zt({type:FD})],MD.prototype,"state",2);var BD=e=>"active"===e.currentState?zi.Text.Regular.high:zi.Text.Regular.medium,PD={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},ND={$host:{display:"block",paddingBottom:"32px",outline:"none !important"},step:{fontFamily:Cn.Base,fontSize:kn(14),fontWeight:e=>"active"===e.currentState?$n.Bold:void 0,color:BD,border:0,padding:0,margin:0,background:"none",display:"flex",flexDirection:"row",justifyContent:"flex-start",alignContent:"center",alignItems:"start",maxWidth:"100%","& > *":{maxWidth:"100%"},cursor:e=>e.clickable?"pointer":"default"}
4390,title:{marginLeft:"16px",textAlign:"left",alignSelf:"center",textDecoration:e=>e.clickable?"underline":"none"},status:{width:"40px",height:"40px",borderRadius:"20px",background:e=>{var t;return e.currentState?null==(t=LD.get(e.currentState))?void 0:t.StatusBackground:void 0},position:"relative",flex:"0 0 auto",minWidth:0},statusCheckIcon:{...PD,display:e=>"completed"===e.currentState?"flex":"none"},index:{...PD,...Kn({fontSizeUnit:"px",lineHeightUnit:"px"}),fontSize:kn(19),color:e=>"active"===e.currentState?zi.Text.whiteStatic:zi.Text.Regular.high,marginTop:"1px",display:e=>"completed"===e.currentState?"none":"block"},description:{display:e=>"active"===e.currentState&&"string"==typeof e.description&&e.description.length>0?"block":"none",marginLeft:"56px",color:BD},screenReaderOnly:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"}},HD=class extends MD{render(){const e=$`<div class="${this.classes.status}" aria-hidden="true">
4391                <acorn-internal-icon
4392                    class="${this.classes.statusCheckIcon}"
4393                    icon="${Zo.CheckV2}"
4394                    size="${Jo.Regular}"
4395                    color="${zi.Icon.regularStatic}"
4396                >
4397                </acorn-internal-icon>
4398                <div class="${this.classes.index}">${this.step}</div>
4399            </div>
4400            <span class="${this.classes.title}" aria-hidden="true">${this.heading}</span>`,t=`${AD.Step} ${this.step}, ${this.getAriaStatus()}: ${this.heading}`;return $`
4401            ${this.clickable?$`<button
4402                      class="${this.classes.step}"
4403                      type="button"
4404                      @click="${this.onStepClick}"
4405                      aria-label="${t}"
4406                  >
4407                      ${e}
4408                  </button>`:$`<div class="${this.classes.step}">
4409                      ${e} <span class="${this.classes.screenReaderOnly}"> ${t} </span>
4410                  </div>`}
4411
4412            <p class="${this.classes.description}">
4413                <span class="${this.classes.screenReaderOnly}"
4414                    >${this.description?AD.Description:""}</span
4415                >
4416                ${this.description}
4417            </p>
4418        `}getStyle(){return ND}};HD=ID([_t({tag:"acorn-wizard-navigation-vertical-step"})],HD);var zD={list:{display:"flex",padding:`0 ${mo}`,margin:0,listStyleType:"none"},listItem:{flex:"1 1 0%","&:not(:last-child)":{marginRight:"2px"}}},WD=class extends OD{getStyle(){return zD}};WD=ID([_t({tag:"acorn-wizard-navigation-horizontal"})],WD);var VD={$host:{display:"block"},step:{display:"inline-block",background:e=>{var t;return e.currentState?null==(t=LD.get(e.currentState))?void 0:t.StatusBackground:void 0},border:0,padding:0,margin:0,height:"8px",width:"100%"},screenReaderOnly:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"},listItem:{flex:"1 1 0%"}},jD=class extends MD{render(){const e=`${AD.Step} ${this.step} ${this.getAriaStatus()}: ${this.heading}`;return this.clickable?$`<button
4419                  class="${this.classes.step}"
4420                  type="button"
4421                  @click="${this.onStepClick}"
4422                  aria-label="${e}"
4423              ></button>`:$`<div class="${this.classes.step}">
4424                  <span class="${this.classes.screenReaderOnly}">${e}</span>
4425              </div>`}getStyle(){return VD}};jD=ID([_t({tag:"acorn-wizard-navigation-horizontal-step"})],jD);var GD={$host:{display:"block",outline:"none !important"},wrapper:{border:co({base:0,sm:`1px solid ${zi.Line.Regular.low}`}),borderRadius:"4px",padding:`0 ${mo}`},heading:{...{fontFamily:'"Swedbank Headline", sans-serif',fontWeight:"900",fontSize:kn(20
4425),...fn({xs:{fontSize:kn(24)},sm:{fontSize:kn(20)},md:{fontSize:kn(24)}}),lineHeight:"1",color:zi.Text.brand},...Qi(),margin:co({base:"2px 0 16px",sm:"24px 0 16px"})},description:{display:co({base:"block",sm:"none"}),color:zi.Text.Regular.high,marginBottom:vn.Medium},content:{margin:"24px 0 32px"}},qD=class extends Ti{constructor(){super(...arguments),this.clickable=!1}focus(){const e=this.shadowRoot.querySelector(`.${this.classes.heading}`);e&&(e.setAttribute("tabindex","-1"),window.requestAnimationFrame(()=>{e.focus()}))}render(){return $`
4426            <div class="${this.classes.wrapper}">
4427                <h2 class="${this.classes.heading}">${this.step}. ${this.heading}</h2>
4428                <p class="${this.classes.description}">${this.description}</p>
4429                <acorn-internal-enclosed-margins class="${this.classes.content}">
4430                    <slot></slot>
4431                </acorn-internal-enclosed-margins>
4432            </div>
4433        `}getStyle(){return GD}onChange(){const e=new CustomEvent("change",{bubbles:!0,cancelable:!1,composed:!1});this.dispatchEvent(e)}};ID([gt()],qD.prototype,"heading",2),ID([gt()],qD.prototype,"description",2),ID([Ht(),zt({type:Ge})],qD.prototype,"step",2),ID([gt(),zt({type:FD})],qD.prototype,"state",2),ID([gt(),zt({type:Boolean})],qD.prototype,"clickable",2),ID([wi("heading"),wi("description"),wi("state"),wi("clickable")],qD.prototype,"onChange",1),qD=ID([_t({tag:"acorn-wizard-step"})],qD);var UD=class extends qD{constructor(){super(...arguments),this.clickable=!1}render(){return $`
4434            <div class="${this.classes.wrapper}">
4435                ${this.heading?$`<h2 class="${this.classes.heading}">${this.heading}</h2>`:void 0}
4436                <div class="${this.classes.content}"><slot></slot></div>
4437            </div>
4438        `}};UD=ID([_t({tag:"acorn-wizard-end"})],UD);var KD={$host:{display:"block"},wrapper:{border:`1px solid ${zi.Line.Regular.low}`,padding:"16px",borderRadius:"4px"}},YD=class extends Ti{render(){return $`
4439            <div class="${this.classes.wrapper}">
4440                <acorn-internal-enclosed-margins><slot></slot></acorn-internal-enclosed-margins>
4441            </div>
4442        `}getStyle(){return KD}};YD=ID([_t({tag:"acorn-wizard-info"})],YD);var XD=class extends qD{constructor(){super(...arguments),this.clickable=!1}render(){return $`
4443            <div class="${this.classes.wrapper}">
4444                ${this.heading?$`<h2 class="${this.classes.heading}">${this.heading}</h2>`:void 0}
4445                <div class="${this.classes.content}">
4446                    <slot></slot>
4447                </div>
4448            </div>
4449        `}};XD=ID([_t({tag:"acorn-wizard-start"})],XD);var QD=`calc(${Xn} + (${mo} * 2))`,ZD={$host:{display:"block",outline:"none !important"},wrapper:{display:"flex",flexDirection:co({base:"column",sm:"row"})},left:{flex:"1 1 0%",maxWidth:e=>e.contentMaxWidthPx?`${e.contentMaxWidthPx}px`:QD,"@media print":{maxWidth:"none !important"},width:co({base:"auto",sm:"70%"})},right:{display:co({base:"none",sm:"block"}),maxWidth:"30%",width:"30%",marginLeft:co({base:"0px",sm:vn.Large,md:vn.ExtraLarge})},horizontalNav:{display:co({base:"block",sm:"none"}),paddingLeft:"24px",fontFamily:"Roboto",color:zi.Text.Regular.medium,lineHeight:En(14,18),fontSize:kn(14),fontWeight:"400"},info:{margin:`0 ${mo}`}},JD=class extends Ti{constructor(){super(),this.activeStep=0,this.clickableSteps=!1,this.focusStrategy="auto",this._shouldFocusOnActiveStep=!1;const e=window.matchMedia(`(min-width: ${gn.Small})`);this._isCollapsed=!e.matches,e.addEventListener("change",e=>{this._isCollapsed=!e.matches})}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this.addEventListener("change",this._onStepChange)}disconnectedCallback(){this.removeEventListener("change",this._onStepChange)}
4449beforeRender(){if(this._startStepSlots.content&&(this._startStepSlots.content.step=0,this._startStepSlots.content.style.display=0===this.activeStep?"block":"none"),this._stepSlots.content.forEach((e,t)=>{e.step=t+1,e.style.display=this.activeStep===e.step?"block":"none"}),this._endStepSlots.content){const e=this._stepSlots.content.length+1;this._endStepSlots.content.step=e,this._endStepSlots.content.style.display=this.activeStep===e?"block":"none"}}render(){return $`
4450            <div class="${this.classes.wrapper}">
4451                <div class="${this.classes.left}">
4452                    <div class="${this.classes.horizontalNav}">${this._getHorizontalStepCounter()}</div>
4453                    ${this._startStepSlots} ${this._stepSlots} ${this._endStepSlots}
4454                    ${this._isCollapsed&&this._infoSlots.isFilled()?$`<div class="${this.classes.info}">${this._infoSlots}</div>`:void 0}
4455                </div>
4456                <div class="${this.classes.right}">
4457                    <acorn-wizard-navigation-vertical @stepClick="${this._onStepClick}">
4458                        ${this._getVerticalNavigationSteps()}
4459                    </acorn-wizard-navigation-vertical>
4460                    ${this._isCollapsed?void 0:this._infoSlots}
4461                </div>
4462            </div>
4463        `}getStyle(){return ZD}afterRender(){var e;super.afterRender();const t=this._shouldFocusOnActiveStep&&"none"!==this.focusStrategy;this._shouldFocusOnActiveStep=!1,t&&(null==(e=this._getActiveStep())||e.focus())}
4463onActiveStepChange(){this._shouldFocusOnActiveStep="none"!==this.focusStrategy}_onStepChange(){this.invalidate()}_getActiveStep(){return 0===this.activeStep?this._startStepSlots.content:this.activeStep<=this._stepSlots.content.length?this._stepSlots.content.find(({step:e})=>e===this.activeStep):this.activeStep===this._stepSlots.content.length+1?this._endStepSlots.content:void 0}_getVerticalNavigationSteps(){const e=[],t=this._stepSlots.content;for(let i=0;i<t.length;i++){const n=t[i],o=i+1;e.push($`
4464                <acorn-wizard-navigation-vertical-step
4465                    step="${o}"
4466                    active-step="${this.activeStep}"
4467                    heading="${n.heading}"
4468                    description="${n.description}"
4469                    state="${n.state}"
4470                    ?clickable="${this._isStepClickable(n,o)}"
4471                ></acorn-wizard-navigation-vertical-step>
4472            `)}return e}_getHorizontalStepCounter(){return this.activeStep>=1&&this.activeStep<=this._stepSlots.content.length?$`${Ve.translate(AD.HorizontalSteps,this.activeStep,this._stepSlots.content.length)}`:null}_isStepClickable(e,t){return e.clickable||this.clickableSteps&&t<this.activeStep}_onStepClick(e){this.dispatchEvent(new CustomEvent("stepClick",e))}};ID([gt(),zt({type:Ge})],JD.prototype,"contentMaxWidthPx",2),ID([gt(),zt({type:Ge})],JD.prototype,"activeStep",2),ID([gt(),zt({type:Boolean})],JD.prototype,"clickableSteps",2),ID([gt(),zt({type:String})],JD.prototype,"focusStrategy",2),ID([Ht()],JD.prototype,"_isCollapsed",2),ID([ri("step",{selectAllTypes:qD.config.type}),Ht()],JD.prototype,"_stepSlots",2),ID([ri("start-step",{selectSingleType:XD.config.type}),Ht()],JD.prototype,"_startStepSlots",2),ID([ri("end-step",{selectSingleType:UD.config.type}),Ht()],JD.prototype,"_endStepSlots",2),ID([ri("info",{selectSingleType:YD.config.type}),Ht()],JD.prototype,"_infoSlots",2),ID([wi("activeStep")],JD.prototype,"onActiveStepCh
4472ange",1),ID([Pe()],JD.prototype,"_onStepClick",1),JD=ID([_t({tag:"acorn-wizard"})],JD);var eR=Object.defineProperty,tR=Object.getOwnPropertyDescriptor,iR=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?tR(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&eR(t,i,r),r},nR=(e=>(e.Wide="wide",e.Medium="medium",e.Narrow="narrow",e.Default="narrow",e))(nR||{}),oR={wide:1560,medium:1184,narrow:780},rR=(e=>(e.Vertical="vertical",e.Horizontal="horizontal",e))(rR||{}),aR=(e=>(e.Incomplete="incomplete",e.Complete="complete",e.Unvisited="unvisited",e))(aR||{}),sR=(e=>(e.Intro="intro",e.Input="input",e.Summary="summary",e.Conclusion="conclusion",e))(sR||{}),lR=(e=>(e.Page="page",e.Overlay="overlay",e))(lR||{}),cR="--acorn-wizard-page-internal-navigation-item-divider-display",dR="--acorn-wizard-page-internal-navigation-item-bullet-display",hR=({vertical:e,horizontal:t})=>({alignment:i})=>"horizontal"===i?t:e,pR={$host:{display:"block"},wrapper:{display:"flex",flexDirection:hR({vertical:"column",horizontal:void 0}),justifyContent:"center","&:before":{content:'""',display:`var(${cR}, block)`,borderColor:zi.Line.Regular.low,borderStyle:"solid",borderWidth:hR({vertical:"0",horizontal:"2px 0 0 0"}),position:"absolute",top:hR({vertical:"40px",horizontal:"28px"}),left:hR({vertical:"-29px",horizontal:"50%"}),width:hR({vertical:void 0,horizontal:"100%"}),height:hR({vertical:"100%",horizontal:void 0})}},item:{display:"flex",flexDirection:hR({vertical:void 0,horizontal:"column"}),textAlign:hR({vertical:"left",horizontal:"center"}),gap:hR({vertical:"16px",horizontal:"5px"}),color:e=>e.interactive||e.active?zi.Text.Regular.high:zi.Text.Regular.medium,alignItems:"center",minHeight:"64px",fontFamily:"Roboto",fontSize:"14px",border:"none",padding:"12px 0",boxSizing:"border-box",cursor:e=>e.interactive&&!e.active?"pointer":void 0,backgroundColor:"transparent",fontWeight:e=>e.active?$n.Bold:void 0},bullet:{...Kn({fontSizeUnit:"px",lineHeightUnit:"px"}),fontSize:kn(19),paddingTop:"2px",display:`var(${dR}, flex)`,alignItems:"center",justifyContent:"center",borderRadius:"22px",width:"40px",height:"40px",position:"relative",boxSizing:"border-box",color:e=>e.active?zi.Text.whiteStatic:void 0,border:e=>"incomplete"!==e.state||e.active?void 0:`2px solid ${zi.Line.Regular.low}`,backgroundColor:e=>e.active?zi.Surface.Brand.highStatic:"complete"===e.state?zi.ComponentSpecific.Wizard.stepComplete:"unvisited"===e.state?zi.Surface.neutralContrastInverted:zi.Surface.elevation},icon:{display:"block"},tag:{textTransform:"capitalize",width:"fit-content"},leading:{display:"flex",flexDirection:hR({vertical:"32px",horizontal:"100%"}),paddingBottom:hR({vertical:void 0,horizontal:"10px"}),alignSelf:hR({vertical:"start",horizontal:void 0}),justifyContent:"center","&:empty":{display:"none"}},center:{display:"flex",flexDirection:"column",rowGap:"6px",padding:"9px 0"},trailing:{marginLeft:hR({vertical:"auto",horizontal:void 0})},expandCollapseIcon:{width:"16px",display:"inline-flex",flexDirection:"column",alignItems:"center",verticalAlign:"middle"}},uR="--acorn-wizard-page-internal-navigation-list-item-border",gR=({vertical:e,horizontal:t})=>({alignment:i})=>"horizontal"===i?t:e,mR={$host:{display:"block",[uR]:`1px solid ${zi.Line.Regular.low}`},wrapper:{display:"flex",flexDirection:"column",rowGap:"24px"},list:{flexDirection:gR({vertical:"column",horizontal:"row"}),paddingLeft:gR({vertical:"56px",horizontal:"0"}),display:"flex",listStyle:"none",margin:"0",justifyContent:"space-around",position:"relative","&::before":{content:'""',display:gR({vertical:"block",horizontal:"none"}),borderColor:zi.Line.Regular.low,borderStyle:"solid",borderWidth:gR({vertical:"0 0 0 2px",horizontal:"2px 0 0 0"}),position:"absolute",top:gR({vertical:"32px",horizontal:"28px"}),bottom:gR({vertical:"50px",horizontal:void 0}),left:gR({vertical:"19px",horizontal:"70px"}),right:gR({vertical:void 0,horizontal:"70px"})}},subList:{listStyle:"none",paddingLeft:"8px"},listItem:{position:"relative",display:"flex",flexDirection:"column",flex:"1",minWidth:gR({vertical:"25%",horizontal:void 0}),borderTop:gR({vertical:`var(${uR})`,horizontal:void 0}),"&:first-child":{borderTop:"none"},"&:last-child":{[cR]:"none"}
4472,"& acorn-wizard-page-internal-navigation":{[uR]:"",[cR]:"none",[dR]:"none"}},navItem:{marginLeft:gR({vertical:"-56px",horizontal:void 0})},count:{fontFamily:"Roboto",fontSize:kn(16),fontWeight:"500",lineHeight:En(16,28),display:gR({vertical:"none",horizontal:void 0})}},bR=class extends Ti{constructor(){super(...arguments),this.items=[],this.alignment="vertical"}getStyle(){return mR}render(){return $`<div class="${this.classes.wrapper}">
4473            <nav role="menu">${this._renderList(this.items)}</nav>
4474        </div>`}_renderList(e){const t=e.find(e=>"intro"===e.type);return $`
4475            <ol class="${this.classes.list}">
4476                ${e.map((e,i)=>{var n;const o=t?i:i+1;return $`
4477                        <li class="${this.classes.listItem}">
4478                            ${this._renderListItem(e,`${o}`)}
4479                            ${e.isParent&&(e.active||(null==(n=e.steps)?void 0:n.find(e=>e.active)))?this._renderSubList(e.steps,o):void 0}
4480                        </li>
4481                    `})}
4482            </ol>
4483        `}_renderSubList(e,t){return $`
4484            <nav role="menu">
4485                <ol class="${this.classes.subList}">
4486                    ${e.map((e,i)=>$`
4487                            <li>${this._renderListItem(e,`${t}.${i+1}`)}</li>
4488                        `)}
4489                </ol>
4490            </nav>
4491        `}_renderListItem(e,t){var i,n,o;const r=null==(i=e.steps)?void 0:i.find(e=>e.active);e.isParent=!!(null==(n=e.steps)?void 0:n.length)&&"horizontal"!==this.alignment,e.isParent&&e.steps.map(t=>t.parent=e),"intro"===e.type&&(e.state="complete");const a=e.parent?void 0:this.classes.navItem,s=e.parent?`${t} ${e.heading}`:e.heading,l=e.parent?null==(o=e.parent.steps)?void 0:o.length:this.items.length;return $`
4492            <acorn-wizard-page-internal-navigation-item
4493                label="${s}"
4494                number="${t}"
4495                total="${l}"
4496                icon="${j("intro"===e.type?Zo.LocationPinDot:void 0)}"
4497                class="${j(a)}"
4498                .parent="${e.parent}"
4499                .alignment="${this.alignment}"
4500                .state="${e.state}"
4501                ?tag="${e.markIncomplete}"
4502                ?active="${e.active||r}"
4503                ?interactive="${"unvisited"!==e.state}"
4504                ?is-parent="${e.isParent}"
4505                @click="${this._onNavItemActive.bind(this,e)}"
4506            ></acorn-wizard-page-internal-navigation-item>
4507        `}_onNavItemActive(e){var t;const i=null==(t=e.steps)?void 0:t.find(e=>e.active);"unvisited"===e.state||e.active||i||this._itemActive.emit({value:e.value})}};iR([Ht()],bR.prototype,"items",2),iR([Ht()],bR.prototype,"alignment",2),iR([ft({bubbles:!0,composed:!0})],bR.prototype,"_itemActive",2),iR([Pe()],bR.prototype,"_renderListItem",1),iR([Pe()],bR.prototype,"_onNavItemActive",1),bR=iR([_t({tag:"acorn-wizard-page-internal-navigation"})],bR);var vR=0,yR=class extends xt{constructor(){super(...arguments),this.heading="",this.description="",this.value="wizardStep@"+vR++,this.type="input",this.active=!1,this.state="unvisited",this.markIncomplete=!1,this.steps=[],this.previousButtonLabel=void 0,this.previousButtonIcon=void 0,this.nextButtonLabel=void 0,this.nextButtonIcon=void 0,this.declineButtonLabel=void 0,this.declineButtonIcon=void 0,this.parent=void 0,this.isParent=!1}};yR.modelName="wizardPageStepsStep",iR([zt({type:sR})],yR.prototype,"type",2),iR([zt({type:Boolean})],yR.prototype,"active",2),iR([zt({type:aR})],yR.prototype,"state",2),iR([zt({type:Boolean})],yR.prototype,"markIncomplete",2),iR([zt({type:yR})],yR.prototype,"steps",2);var _R=yR,fR=Ve.createTranslation({Continue:{sv:"Fortsätt",en:"Continue"},ContinueAria:{sv:"Fortsätt till steg {0} av {1}",en:"Continue to step {0} of {1}"},Confirm:{sv:"Slutför",en:"Confirm"},Done:{sv:"Klar",en:"Done"},Previous:{sv:"Föregående",en:"Previous"},PreviousAria:{sv:"Föregående steg {0} av {1}",en:"Previous step {0} of {1}"},Help:{sv:"Information om flödet",en:"Help in flow"},Save:{sv:"Spara flödet",en:"Save progress"},Close:{sv:"Stäng",en:"Close"},State:{sv:"Status",en:"State"},StepNumOfTotal:{sv:"Steg {0} av {1}",en:"Step {0} of {1}"},SubStepNumOfTotal:{sv:"understeg {0} av {1}",en:"sub step {0} of {1}"},StepPercentageFinished:{sv:"{0} färdigt",en:"{0} finished"},OpenStepNavigation:{sv:"Öppna steg navigationen",en:"Open step navigation"},Incomplete:{sv:"inkomplett",en:"incomplete"},Complete:{sv:"komplett",en:"complete"},Unvisited:{sv:"obesökt",en:"unvisited"}}),xR=class extends Ti{constructor(){super(...arguments),this.label="",this.icon=void 0,this.active=!1,this.state="unvisited",this.interactive=!1,this.tag=!1,this.isParent=!1,this.parent=void 0}getStyle(){return pR}render(){return this.interactive&&!this.active?$`<div class="${this.classes.wrapper}">
4508                <button class="${this.classes.item}" role="menuitem" aria-description="${this._renderDescription()}">
4509                    ${this._renderContent()}
4510                </button>
4511            </div>`:$`<div class="${this.classes.wrapper}">
4512                <div
4513                    class="${this.classes.item}"
4514                    aria-description="${this._renderDescription()}"
4515                    aria-current="${j(this.active?"step":void 0)}"
4516                >
4517                    ${this._renderContent()}
4518                </div>
4519            </div>`}_renderDescription(){switch(this.state){case"complete":return fR.Complete;case"incomplete":return fR.Incomplete;case"unvisited":return fR.Unvisited}}_renderContent(){return $`
4520            <div class="${this.classes.leading}">${this._renderLeading()}</div>
4521            <div class="${this.classes.center}">${this.label} ${this.parent?void 0:this._renderWarning()}</div>
4522            <div class="${this.classes.trailing}" role="presentation">${this._renderTrailing()}</div>
4523        `}_renderLeading(){return this.icon?$`<span class="${this.classes.bullet}">${this._renderIcon(this.icon)}</span>`:this.parent?null:$`<span class="${this.classes.bullet}">${this._renderCheck()}</span>`}_renderTrailing(){return $`
4524            ${this.parent?this._renderWarning():void 0} ${this.parent?this._renderCheck():void 0}
4525            ${this.isParent?$`
4526                      <acorn-icon
4527                          icon="${this.active?Zo.ChevronUp:Zo.ChevronDown}"
4528                          size="${Jo.Regular}"
4529                          ?disabled="${!this.interactive}"
4530                          class="${this.classes.expandCollapseIcon}"
4531                      ></acorn-icon>
4532                  `:""}
4533        `}_renderCheck(){return this.parent?$`
4534                ${"complete"===this.state?$`<acorn-internal-icon
4535                          icon="${Zo.CircleCheckmark}"
4536                          color="${zi.Surface.success}"
4537                          class="${this.classes.icon}"
4538                          size="${Jo.Regular}"
4539                      ></acorn-internal-icon>`:void 0}
4540            `:$`
4541            ${"complete"!==this.state||this.active?this.number:$`<acorn-icon icon="${Zo.CheckV2}" size="${Jo.Regular}"></acorn-icon>`}
4542        `}_renderIcon(e){return $`
4543            <acorn-internal-icon
4544                icon="${e}"
4545                size="${nr}"
4546                color="${j(this.active?zi.Icon.white:void 0)}"
4547            ></acorn-internal-icon>
4548        `}_renderWarning(){return this.tag&&"incomplete"===this.state?this.parent?$`
4549                <acorn-internal-icon
4550                    icon="${Zo.TriangleExclamation}"
4551                    color="${zi.Surface.warning}"
4552                    size="${Jo.Regular}"
4553                    class="${this.classes.icon}"
4554                ></acorn-internal-icon>
4555            `:$`
4556            <acorn-tag
4557                label="${this._renderDescription()}"
4558                type="${Fy.Warning}"
4559                class="${this.classes.tag}"
4560            ></acorn-tag>
4561        `:null}};iR([gt()],xR.prototype,"label",2),iR([gt(),zt({type:Number})],xR.prototype,"number",2),iR([gt(),zt({type:Number})],xR.prototype,"total",2),iR([gt(),zt({type:Zo})],xR.prototype,"icon",2),iR([gt(),zt({type:Boolean})],xR.prototype,"active",2),iR([gt(),zt({type:aR})],xR.prototype,"state",2),iR([gt(),zt({type:Boolean})],xR.prototype,"interactive",2),iR([gt(),zt({type:Boolean})],xR.prototype,"tag",2),iR([gt(),zt({type:rR})],xR.prototype,"alignment",2),iR([gt(),zt({type:Boolean})],xR.prototype,"isParent",2),iR([gt(),zt({type:_R}
4561)],xR.prototype,"parent",2),xR=iR([_t({tag:"acorn-wizard-page-internal-navigation-item"})],xR);var wR=Ve.createTranslation({StepPercentageFinished:{sv:"{0}% färdigt",en:"{0}% finished"}}),CR={borderRadius:"7px",backgroundColor:"inherit",overflow:"hidden"},SR={backgroundColor:zi.Surface.Brand.highStatic},$R={$host:{display:"block"},progressBar:{width:"100%",height:"10px",backgroundColor:zi.ComponentSpecific.Wizard.track,borderRadius:"4px","-webkit-appearance":"none","&::-webkit-progress-bar":CR,"&::-moz-progress-bar":CR,"&::-webkit-progress-value":SR,"&::-moz-progress-value":SR},detail:{display:"flex",justifyContent:"space-between",fontFamily:"Roboto",color:zi.Text.Regular.high,lineHeight:co({base:En(14,18),sm:En(16,28)}),fontSize:co({base:kn(14),sm:kn(16)}),fontWeight:co({base:"400",sm:"700"})}},kR=class extends Ti{constructor(){super(...arguments),this.label="",this.max=0,this.value=0,this.hideValue=!1}get _stepPercentageFinished(){return Ve.translate(wR.StepPercentageFinished,Math.round(this.value/this.max*100))}getStyle(){return $R}render(){return $`
4562            <progress
4563                max="${this.max}"
4564                value="${this.value}"
4565                class="${this.classes.progressBar}"
4566                aria-hidden="true"
4567            ></progress>
4568            <div class="${this.classes.detail}">
4569                <span ?hidden="${this.hideValue}">${this._stepPercentageFinished}</span>
4570                <span>${this.label}</span>
4571            </div>
4572        `}};iR([Ht()],kR.prototype,"label",2),iR([Ht()],kR.prototype,"max",2),iR([Ht()],kR.prototype,"value",2),iR([Ht()],kR.prototype,"hideValue",2),kR=iR([_t({tag:"acorn-wizard-page-internal-progress-bar"})],kR);var ER=(e=>(e.Success="success",e.Alert="alert",e.Info="info",e))(ER||{}),TR=new Map([["alert",{symbolBackground:zi.Surface.attention,mainBackground:zi.Surface.attentionContrastInverted}],["success",{symbolBackground:zi.Surface.success,mainBackground:zi.Surface.successContrastInverted}],["info",{symbolBackground:zi.Surface.info,mainBackground:zi.Surface.infoContrastInverted}]]);function IR(e){if(!e)return;const t=function(e){var t;const i=null==(t=TR.get(e))?void 0:t.mainBackground;if(!e)return;return k`<path d="M119.993 56.0637C117.377 -18.671 2.61872 -18.7051 0.00663649 56.0637C-0.585672 106.643 38.6133 104.905 60.0001 133.333C81.3898 104.898 120.58 106.653 119.993 56.0637Z" fill="${i}"/>`}(e),i=function(e){var t;const i=null==(t=TR.get(e))?void 0:t.symbolBackground;switch(e){case"success":return k`<path d="M55.8658 78L47 70L39.6607 62.6144C38.1827 61.1271 38.1662 58.7306 39.6236 57.2231C41.1374 55.6572 43.6474 55.6572 45.1612 57.2231L55.8658 68.296L76.6149 46.8469C78.1207 45.2902 80.6165 45.2907 82.1218 46.8477C83.5832 48.3594 83.5529 50.7664 82.054 52.2408L55.8658 78Z" fill="${i}"/>`;case"info":return k`<path d="M64.576 81.216H55.56V52.992H64.576V81.216ZM65.136 44.096C65.136 46.896 62.84 49.136 60.04 49.136C57.24 49.136 55 46.896 55 44.096C55 41.296 57.24 39 60.04 39C62.84 39 65.136 41.296 65.136 44.096Z" fill="${i}"/>`;case"alert":return k`<path d="M64.2251 66.1093H56.9451L55.6011 49.7013V41.1333H65.5691V49.7013L64.2251 66.1093ZM60.5851 80.7813C57.6171 80.7813 55.2651 78.4293 55.2651 75.4613C55.2651 72.5493 57.6171 70.1413 60.5851 70.1413C63.4971 70.1413 65.9051 72.5493 65.9051 75.4613C65.9051 78.4293 63.4971 80.7813 60.5851 80.7813Z" fill="${i}"/>`;default:return}}(e);return i&&t?k`${t}${i}`:void 0}function OR(e={}){return{...An(),...e}}function DR(e={}){return{...qn(),...fn({sm:{...{...Tn(cn,t)}}}),margin:co({base:`${kn(8)} 0 0 0`,sm:`${kn(16)} 0 0 0`}),color:zi.Text.Regular.high,...e};var t}var RR={$host:{display:"block",marginBottom:e=>"conclusion"===e.activeType?co({base:kn(24),sm:kn(64)}):kn(24)},wrapper:{padding:`0 ${ho}`},heading:OR({margin:"0",display:co({base:"none",sm:"block"})}),description:DR()},FR={$host:{display:"block",outline:"none !important"},container:{textAlign:"center",maxWidth:"700px",margin:"0 auto"},svgImage:{display:"block",width:`${Math.round(60)}px`,height:`${Math.round(67)}px`,margin:`0 auto ${kn(8)} auto`,...fn({sm:{width:"120px",height:"134px",marginBottom:kn(24)}})},heading:OR({margin:"0",display:"inline-block",...Qi()}),description:DR({margin:co({base:`${kn(8)} 0 0 0`,sm:`${kn(16)} 0 0 0`})})},LR=class extends Ti{constructor(){super(...arguments),this.heading="",this.description=""}set status(e){e=e?e.toLowerCase():void 0,this._status=e?Object.values(ER).find(t=>t.toLowerCase()===e):void 0}get status(){return this._status}getStyle(){return FR}render(){return $`
4573            <div class="${this.classes.container}">
4574                ${this._statusImage()}
4575                <p class="${this.classes.heading}" tabindex="-1">${this.heading}</p>
4576                <p class="${this.classes.description}">${this.description}</p>
4577            </div>
4578        `}focus(e){var t;const i=null==(t=this.shadowRoot)?void 0:t.querySelector(`.${this.classes.heading}`);i?i.focus(e):super.focus(e)}_statusImage(){const e=IR(this.status);return e?k`<svg
4579            aria-hidden="true"
4580            class="${this.classes.svgImage}"
4581            viewBox="${"0 0 120 134"}"
4582        >
4583            ${e}
4584        </svg>`:e}};iR([gt()],LR.prototype,"heading",2),iR([gt()],LR.prototype,"description",2),iR([gt()],LR.prototype,"status",1),LR=iR([_t({tag:"acorn-wizard-page-internal-header-conclusion"})],LR);var AR=class extends Ti{constructor(){super(...arguments),this.heading="",this.description=""}set status(e){this._status=e}get status(){var e;return(null==(e=this._headerConclusionElement())?void 0:e.status)||void 0}getStyle(){return RR}render(){return $`
4585            <div class="${this.classes.wrapper}">
4586                ${"conclusion"===this.activeType?$`<acorn-wizard-page-internal-header-conclusion
4587                          heading="${this.heading}"
4588                          description="${j(this.description||void 0)}"
4589                          status="${j(this._status||void 0)}"
4590                      ></acorn-wizard-page-internal-header-conclusion>`:$`
4591                          <h1 class="${this.classes.heading}">${this.heading}</h1>
4592                          <p class="${this.classes.description}">${this.description}</p>
4593                      `}
4594            </div>
4595        `}focus(e){const t=this._headerConclusionElement();t?t.focus(e):super.focus()}afterRender(){const e=this._headerConclusionElement();e&&(e.heading=e.getAttribute("heading")||this.heading,e.description=e.getAttribute("description")||this.description)}_headerConclusionElement(){return this.shadowRoot.querySelector(LR.config.tag)}};iR([gt()],AR.prototype,"heading",2),iR([gt()],AR.prototype,"description",2),iR([Ht()],AR.prototype,"activeType",2),iR([gt()],AR.prototype,"status",1),AR=iR([_t({tag:"acorn-wizard-page-header",delegatesFocus:!0})],AR);var MR=class extends jm{};MR=iR([_t({tag:"acorn-wizard-page-body"})],MR);var BR={$host:{display:"block",outline:"none !important"},wrapper:{display:"flex",flexDirection:"column",margin:co({base:void 0,sm:`0 ${ho}`}),paddingBottom:ho},content:{paddingBottom:"24px",marginBottom:"24px",borderBottom:"1px solid #f0e7e0"},container:{margin:"0"}},PR=class extends Ti{constructor(){super(...arguments),this.activeStep=void 0,this.steps=[]}getStyle(){return BR}render(){const e=this._renderNextButton(),t=this._renderPreviousButton(),i=this._renderDeclineButton(),n=$`${e} ${t} ${i}`;return n.values.filter(e=>e).length?$`<div class="${this.classes.wrapper}">
4596            ${this._defaultSlot.isFilled()?$`<acorn-internal-enclosed-margins class="${this.classes.content}">
4597                      ${this._defaultSlot}
4598                  </acorn-internal-enclosed-margins>`:null}
4599            <acorn-button-container class="${this.classes.container}" layout="autoScreen">
4600                ${n}
4601            </acorn-button-container>
4602        </div>`:$``}_renderPreviousButton(){var e,t,i;const{previousButtonLabel:n,previousButtonIcon:o,type:r,parent:a}=this.activeStep||{},s="conclusion"===r,l=this.steps.findIndex(e=>e===(a||this.activeStep)),c=this.steps.filter(e=>"conclusion"!==e.type),d=Ve.translate(fR.PreviousAria,l,c.length),h=""===n&&!o;return(null==(e=this.steps[0])?void 0:e.active)||(null==(i=null==(t=this.steps[0])?void 0:t.steps[0])?void 0:i.active)||s||h?null:$`<acorn-button
4603            priority="${Tr.Secondary}"
4604            id="${"previous-button"}"
4605            label="${n||fR.Previous}"
4606            icon="${j(o)}"
4607            aria-label="${j(a?void 0:d)}"
4608            @click="${this._onPreviousClick}"
4609        >
4610        </acorn-button>`}_renderNextButton(){const{nextButtonLabel:e,nextButtonIcon:t,type:i,parent:n}=this.activeStep||{},o=this.steps.findIndex(e=>e===(n||this.activeStep)),r=this.steps.filter(e=>"conclusion"!==e.type),a=Ve.translate(fR.ContinueAria,o+2,r.length);return""!==e||t?"conclusion"===i?$`<acorn-button
4611                priority="${Tr.Primary}"
4612                label="${e||fR.Done}"
4613                icon="${j(t)}"
4614                id="${"next-button"}"
4615                @click="${this._onDoneClick}"
4616            ></acorn-button>`:"summary"===i?$`<acorn-button
4617                label="${e||fR.Confirm}"
4618                icon="${j(t)}"
4619                priority="${Tr.Executive}"
4620                id="${"next-button"}"
4621                @click="${this._onConfirmClick}"
4622            ></acorn-button>
4622`:$`<acorn-button
4623            label="${e||fR.Continue}"
4624            icon="${j(t)}"
4625            priority="${Tr.Executive}"
4626            aria-label="${j(n?void 0:a)}"
4627            id="${"next-button"}"
4628            @click="${this._onNextClick}"
4629        ></acorn-button>`:null}_renderDeclineButton(){const{declineButtonLabel:e,declineButtonIcon:t}=this.activeStep||{};return e||t?$`<acorn-button
4630            label="${j(e)}"
4631            icon="${j(t)}"
4632            priority="tertiary"
4633            id="${"decline-button"}"
4634            @click="${this._onDeclineClick}"
4635        ></acorn-button>`:null}_onPreviousClick(){this._stepChange.emit({action:"previous"})}_onNextClick(){this._stepChange.emit({action:"next"})}_onConfirmClick(){this._stepChange.emit({action:"confirm"})}_onDoneClick(){this._stepChange.emit({action:"done"})}_onDeclineClick(){this._stepChange.emit({action:"decline"})}};iR([Ht()],PR.prototype,"activeStep",2),iR([Ht()],PR.prototype,"steps",2),iR([ri("default")],PR.prototype,"_defaultSlot",2),iR([ft()],PR.prototype,"_stepChange",2),iR([Pe()],PR.prototype,"_onPreviousClick",1),iR([Pe()],PR.prototype,"_onNextClick",1),iR([Pe()],PR.prototype,"_onConfirmClick",1),iR([Pe()],PR.prototype,"_onDoneClick",1),iR([Pe()],PR.prototype,"_onDeclineClick",1),PR=iR([_t({tag:"acorn-wizard-page-footer"})],PR);var NR=class extends Qg{};NR=iR([_t({tag:"acorn-wizard-page-toolbar-item"})],NR);var HR={$host:{display:"block",outline:"none !important"},wrapper:{whiteSpace:"nowrap",display:"flex",alignItems:"center",columnGap:"8px","& > *:first-child":{marginLeft:"auto"}}},zR=class extends Xg{constructor(){super(...arguments),this.showHelp=!1,this.showLabels=!0,this.isCollapsed=!1,this.mode="page"}onIsCollapsedChange(){this.isCollapsed?(this.showLabels=!1,this.maxVisibleItems=0):(this.showLabels=!0,this.maxVisibleItems=10)}getStyle(){return ge({},super.getStyle(),HR)}render(){return $`<div class="${this.classes.wrapper}">
4636            ${this.showHelp?$`<acorn-icon-button
4637                      label="${fR.Help}"
4638                      icon="${Zo.CircleQuestionMark}"
4639                      class="${this.classes.item}"
4640                      data-value="${"help"}"
4641                      ?hide-label="${this.isCollapsed}"
4642                      @click="${this.onSelect}"
4643                  ></acorn-icon-button>`:void 0}
4644            ${super.render()} ${this._renderCloseButton()}
4645        </div>`}_renderCloseButton(){return $`<acorn-icon-button
4646            label="${fR.Close}"
4647            accessibility-label="${fR.Close}"
4648            icon="${Zo.XMark}"
4649            data-value="${"close"}"
4650            class="${this.classes.item}"
4651            ?hide-label="${this.isCollapsed}"
4652            @click="${this.onSelect}"
4653        ></acorn-icon-button>`}};iR([gt(),zt({type:Boolean})],zR.prototype,"showHelp",2),iR([Ht()],zR.prototype,"showLabels",2),iR([Ht()],zR.prototype,"isCollapsed",2),iR([Ht()],zR.prototype,"mode",2),iR([ri("item",{selectAllTypes:NR.config.type,strict:!0}),Ht()],zR.prototype,"items",2),iR([wi("isCollapsed")],zR.prototype,"onIsCollapsedChange",1),zR=iR([_t({tag:"acorn-wizard-page-toolbar",delegatesFocus:!0})],zR);var WR=({vertical:e,horizontal:t})=>({navigationAlignment:i})=>"horizontal"===i?t:e,VR={$host:{display:"block"},$$slotted:{'&([slot="message"])':{margin:0}},wrapper:{display:"grid",gridTemplateAreas:WR({vertical:"\n                'header header header'\n                'navigation message message'\n                'navigation body .'\n            ",horizontal:"\n                'header header header'\n                'message message message'\n                '. navigation .'\n                '. body .'\n            "}),gridTemplateColumns:e=>`1fr minmax(min-content, ${e.pageContentWidth}px) 1fr`,gridTemplateRows:WR({vertical:"auto auto 1fr",horizontal:"auto auto auto 1fr"})},dialog:{position:"fixed",top:"0",width:"100%",height:"100%",border:"0",margin:"0",padding:"0",maxWidth:"none",maxHeight:"none",zIndex:bn.Top,backgroundColor:"white",overflow:"auto",overscrollBehavior:"contain",gridTemplateAreas:WR({vertical:"\n                'header header header'\n                'navigation body .'\n            ",horizontal:"\n                'header header header'\n                '. navigation .'\n                '. body .'\n            "}),gridTemplateColumns:e=>`1fr minmax(min-content, ${e.pageContentWidth}px) 1fr`,gridTemplateRows:WR({vertical:"auto 1fr",horizontal:"auto auto 1fr"}),"&[open]":{display:"grid"},"& .top-bar":{position:"sticky",top:"0",zIndex:"2"},"& .navigation":{position:WR({vertical:"sticky",horizontal:void 0}),top:WR({vertical:"72px",horizontal:void 0})}},topBar:{gridArea:"header",display:"flex",justifyContent:"center",columnGap:"8px",alignItems:"stretch",flex:co({base:"1",sm:"0"}),padding:co({sm:"0 12px"}),flexDirection:co({base:"column",sm:"row"}),height:co({base:"48px",sm:"72px"}),backgroundColor:co({base:"white",sm:zi.Surface.Brand.lower})},topBarContent:{display:"flex",justifyContent:"space-between",alignItems:"center",flex:"1",backgroundColor:co({base:zi.Surface.Brand.lower,sm:"none"}),padding:co({base:"4px 4px 4px 16px",sm:"0"}),columnGap:co({base:"8px",sm:"24px"})},topBarHeading:{display:"flex",height:"100%",alignItems:"center",color:zi.Text.Regular.high,fontFamily:co({base:"Roboto, Arial, Helvetica",sm:Cn.Headline}),fontSize:co({base:kn(16),sm:kn(20)}),lineHeight:co({base:En(20,28),sm:En(16,24)}),fontWeight:co({base:500,sm:$n.Bold})}
4653,topBarText:{display:"-webkit-box",overflow:"hidden",wordBreak:"break-word","-webkitLineClamp":"2","-webkitBoxOrient":"vertical"},loader:{display:e=>e.loading?"flex":"none",justifyContent:"center"},message:{gridArea:"message",paddingRight:WR({vertical:ho,horizontal:void 0})},buttons:{whiteSpace:"nowrap",display:"flex",alignItems:"center",columnGap:co({base:"8px",sm:"16px"})},navigation:{gridArea:"navigation",boxSizing:"border-box",borderRight:WR({vertical:`solid 1px ${zi.Line.Regular.low}`,horizontal:void 0}),width:WR({vertical:"347px",horizontal:void 0}),padding:e=>co({base:void 0,sm:e.steps.length>5?"24px":"40px 24px 0"}),minHeight:e=>e.steps.length>5?void 0:"170px"},mobileNavigation:{display:co({sm:"none"})},page:{gridArea:"body",paddingTop:co({base:"24px",sm:"72px"})},top:{backgroundColor:e=>co({base:e._topBarIsStuck?zi.Surface.Brand.lower:zi.Surface.elevation,sm:zi.Surface.elevation}),position:co({base:"sticky",sm:"static"}),top:"0",zIndex:e=>e._isMobileNavigationOpen?"2":"1",padding:`8px ${ho}`,display:"flex",justifyContent:"space-between",flexWrap:"wrap"},progressBar:{flex:"1"},stepIndicator:{fontFamily:"Roboto",color:zi.Text.Regular.high,lineHeight:co({base:En(14,18),sm:En(16,28)}),fontSize:co({base:kn(14),sm:kn(16)}),fontWeight:co({base:"400",sm:"700"}),marginRight:"auto","&:focus":{outline:"none"}},heading:{...An(),margin:"0",display:co({base:"block",sm:"none"}),fontSize:e=>e._topBarIsStuck?Mn().fontSize:An().fontSize,lineHeight:"32px",flexBasis:"100%"},mobileNavigationButton:{[Ta.BackgroundColor]:zi.Surface.interactive,alignSelf:"center","&:hover":{[Ta.BackgroundColorHover]:zi.Surface.interactive,[Ta.BackgroundImageHover]:`linear-gradient(${zi.Overlay.hover},  ${zi.Overlay.hover})`}}},jR=class extends Ti{constructor(){super(...arguments),this.pageWidth=document.documentElement.clientWidth,this.heading="",this.loading=!1,this.busy=!1,this.span="narrow",this.open=!1,this.mode="page",this._isMobileNavigationOpen=!1,this._topBarIsStuck=!1,this.steps=[],this._steps=[],this._isCollapsed=!1,this._resizeThrottledValue=0}get pageContentWidth(){const e=oR[this.span||"narrow"];return Math.min(e,this.pageWidth)}get _activeStepIndex(){return this._allSteps.findIndex(e=>e.active)}get _activeStep(){return this._allSteps.find(e=>e.active)||new _R}get _allSteps(){return this._steps.reduce((e,t)=>{var i;const n=null==(i=t.steps||[])?void 0:i.map(e=>({...e,parent:t}));return[...e,t,...n]},[])}get _narrowScreenObserver(){return window.matchMedia(`(max-width: ${mn.Small-1}px)`)}get _dialogElement(){return this.shadowRoot.querySelector("dialog")}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this._pageConnect.emit(),this._isCollapsed=this._narrowScreenObserver.matches,this._narrowScreenObserver.addEventListener("change",this._onScreenSizeChange),this._resizeObserver=new ResizeObserver(e=>{const t=Math.floor(e[0].contentRect.width);this._resizeThrottle?this._resizeThrottledValue=t:(this.pageWidth=this._resizeThrottledValue=t,this._resizeThrottle=setTimeout(()=>{this._resizeThrottle=null,this.pageWidth=this._resizeThrottledValue},100))}),this._resizeObserver.observe(this)}disconnectedCallback(){this._narrowScreenObserver.removeEventListener("change",this._onScreenSizeChange),this._resizeObserver&&this._resizeObserver.disconnect()}focus(){var e,t;const i=this.shadowRoot.getElementById("step-indicator"),n=this.shadowRoot.getElementById("progress-bar");"conclusion"===this._activeStep.type?null==(e=this._headerSlot.content)||e.focus():null==(t=i||n||this._bodySlot.content[0])||t.focus()}getStyle(){return VR}beforeRender(){this._toolbarSlot.content&&(this._toolbarSlot.content.isCollapsed=this._isCollapsed,this._toolbarSlot.content.mode=this.mode,this._toolbarSlot.content.addEventListener("select",this._onToolbarSelect)),this._footerSlot.content&&(this._footerSlot.content.steps=this._steps,this._footerSlot.content.activeStep=this._activeStep,this._footerSlot.content.addEventListener("stepChange",this._onFooterStepChange));const e=this._isCollapsed?this.pageContentWidth:this.pageContentWidth-347,t=gg.calcNumColumns(e);
4653this._bodySlot.content.forEach(e=>{e.gridColSpan=t})}render(){return"overlay"===this.mode?$`
4654                <dialog
4655                    class="${this.classes.dialog}"
4656                    @cancel="${this._onDialogCancel}"
4657                    @scroll="${this._onDialogScroll}"
4658                >
4659                    ${this._renderTopBar()} ${this._renderPage()} ${this._pageDetailSlot}
4660                </dialog>
4661            `:$`
4662            <div class="${this.classes.wrapper}">
4663                ${this._renderTopBar()} ${this._renderPage()} ${this._pageDetailSlot}
4664            </div>
4665        `}onOpenChange(){"overlay"===this.mode&&requestAnimationFrame(()=>{var e,t,i;if(this.open)return null==(e=this._dialogElement)||e.showModal(),void(null==(t=this.shadowRoot.getElementById("top-bar-heading"))||t.focus());null==(i=this._dialogElement)||i.close()})}onHeaderSlotChange(){this._updateHeaderElement()}onFooterSlotChange(){this._updateFooterElement()}onStepsChange(){this._steps=this.steps}onPrivateStepsChange(){this._updateHeaderElement(),this._updateFooterElement(),requestAnimationFrame(this.focus.bind(this))}reset(){this._steps=this.steps}_renderTopBar(){return $`
4666            <div class="${this.classes.topBar}">
4667                <div class="${this.classes.topBarContent}">
4668                    <h1
4669                        class="${this.classes.topBarHeading}"
4670                        tabindex="-1"
4671                        id="${"top-bar-heading"}"
4672                    >
4673                        <span class="${this.classes.topBarText}">${this.heading}</span>
4674                    </h1>
4675                    ${this._toolbarSlot.default($`
4676                        <acorn-wizard-page-toolbar
4677                            @select="${this._onToolbarSelect}"
4678                            isCollapsed="${this._isCollapsed}"
4679                        ></acorn-wizard-page-toolbar>
4680                    `)}
4681                </div>
4682            </div>
4683        `}_renderPage(){const e="horizontal"===this.navigationAlignment,t=this._steps.filter(e=>"conclusion"!==e.type).length>5&&e,i=this._renderProgressBar(),n=this._renderStepIndicator();return t?$`
4684                <div class="${this.classes.message}">${this._messageSlot}</div>
4685                <div class="${this.classes.page}">
4686                    ${null!==i?$`<div class="${this.classes.top}">${i}</div>`:null}
4687                    <main>${this._stepsSlot}${this._renderContent()}${this._renderFooter()}</main>
4688                </div>
4689            `:$`
4690                ${this._renderDesktopNavigation()}
4691                <div class="${this.classes.message}">${this._messageSlot}</div>
4692                <div class="${this.classes.page}">
4693                    <main>
4694                        ${null!==n?$`<div class="${this.classes.top}">${n}</div>`:null}
4695                        ${this._stepsSlot}${this._renderContent()}
4696                    </main>
4697                    ${this._renderFooter()}
4698                </div>
4699            `}_renderStepIndicator(){var e,t,i;const{currentStepIndex:n,isConclusionActive:o,isIntroActive:r,visualNavigationSteps:a}=this._getStepIndicatorData(),s=(null==(e=this._steps[n])?void 0:e.steps)||[],l=s.findIndex(e=>e.active),c=Ve.translate(fR.StepNumOfTotal,n+1,a.length),d=Ve.translate(fR.SubStepNumOfTotal,l+1,s.length),h=null==(t=this._activeStep)?void 0:t.parent;if(o)return null;const p=`${c}${h?" - "+(null==h?void 0:h.heading):""}`,u=h?", "+d:"";return $`
4700            <div>
4701                ${r?null:$`<strong
4702                          id="${"step-indicator"}"
4703                          class="${this.classes.stepIndicator}"
4704                          tabindex="-1"
4705                          aria-label="${p+u}"
4706                          role="presentation"
4707                      >
4708                          <span aria-hidden="true">${p}</span>
4709                      </strong>`}
4710                <h1 class="${this.classes.heading}">${null==(i=this._activeStep)?void 0:i.heading}</h1>
4711            </div>
4712            ${this._renderMobileNavigation()}
4713        `}_renderDesktopNavigation(){var e;const t="conclusion"===(null==(e=this._activeStep)?void 0:e.type);return this._isCollapsed||t?null:$`
4714            <acorn-wizard-page-internal-navigation
4715                class="${this.classes.navigation}"
4716                .items="${this._steps.filter(e=>"conclusion"!==e.type)}"
4717                .alignment="${this.navigationAlignment}"
4718                @itemActive="${this._onNavigationItemActive}"
4719            ></acorn-wizard-page-internal-navigation>
4720        `}_renderProgressBar(){var e,t;const i="conclusion"===(null==(e=this._activeStep)?void 0:e.type),n=this._allSteps.filter(e=>"conclusion"!==e.type);return i?null:$`
4721            <acorn-wizard-page-internal-progress-bar
4722                tabindex="-1"
4723                id="${"progress-bar"}"
4724                .max="${n.length}"
4725                .value="${this._activeStepIndex+1}"
4726                class="${this.classes.progressBar}"
4727            ></acorn-wizard-page-internal-progress-bar>
4728            <h1 class="${this.classes.heading}">${null==(t=this._activeStep)?void 0:t.heading}</h1>
4729        `}_renderMobileNavigation(){var e;const{currentStepIndex:t,isConclusionActive:i,isIntroActive:n,visualNavigationSteps:o}=this._getStepIndicatorData(),r=Ve.translate(fR.StepNumOfTotal,t+1,o.length),a=`${n?"":r+":"} ${null==(e=this._activeStep)?void 0:e.heading}`;return!this._isCollapsed||i?null:$`
4730            <acorn-internal-bottom-sheet
4731                .open="${this._isMobileNavigationOpen}"
4732                @close="${this._onToggleMobileNavigation}"
4733            >
4734                <acorn-internal-bottom-sheet-header heading="${a}"></acorn-internal-bottom-sheet-header>
4735                <acorn-internal-bottom-sheet-body>
4736                    <acorn-wizard-page-internal-navigation
4737                        .items="${this._steps.filter(e=>"conclusion"!==e.type)}"
4738                        .alignment="${"vertical"}"
4739                        @itemActive="${this._onNavigationItemActive}"
4740                    ></acorn-wizard-page-internal-navigation>
4741                </acorn-internal-bottom-sheet-body>
4742            </acorn-internal-bottom-sheet>
4743            <acorn-internal-icon-button
4744                icon="${Zo.ChevronDown}"
4745                color="${Og.White}"
4746                aria-label="${fR.OpenStepNavigation}"
4747                class="${this.classes.mobileNavigationButton}"
4748                @click="${this._onToggleMobileNavigation}"
4749            ></acorn-internal-icon-button>
4750        `}_renderContent(){return $`
4751            ${this.busy?$`<acorn-busy-cloak instant></acorn-busy-cloak>`:null}
4752            <acorn-loader class="${this.classes.loader}"></acorn-loader>
4753            ${this._renderHeader()}${this._renderBody()}
4754        `}_renderHeader(){return this.loading?null:$`${this._headerSlot.default($`<acorn-wizard-page-header
4755                heading="${this._activeStep.heading}"
4756                description="${this._activeStep.description}"
4757                .activeType="${this._activeStep.type}"
4758            ></acorn-wizard-page-header>`)}`}_renderBody(){return this.loading?null:$`${this._bodySlot}`}_renderFooter(){return this.loading?null:$`${this._footerSlot.default($`<acorn-wizard-page-footer
4759                .steps="${this._steps}"
4760                .activeStep="${this._activeStep}"
4761            ></acorn-wizard-page-footer>`)}`}_onDialogScroll(e){this._topBarIsStuck=e.target.scrollTop>=24}_onScreenSizeChange(e){this._isCollapsed=e.matches}_onToggleMobileNavigation(){this._isMobileNavigationOpen=!this._isMobileNavigationOpen}_onDialogCancel(e){e.preventDefault()}_onToolbarSelect(e){switch(e.detail.value){case"help":this._help.emit();break;case"save":this._save.emit();break;case"close":this._onClose()}}_onFooterStepChange(e){switch(e.detail.action){case"previous":this._onPrevious();break;case"next":this._onNext();break;case"confirm":this._onConfirm();break;case"done":this._onDone();break;case"decline":this._onDecline()}}_onNavigationItemActive(e){e.stopPropagation();const t=this._allSteps.find(t=>t.value===e.detail.value);this._activeStepChange(t)}_onClose(){this._close.emit().defaultPrevented||(this.reset(),this.open=!1)}_onPrevious(){const e=this._allSteps[this._activeStepIndex-1];this._activeStepChange(this._activeStep.parent===e?this._allSteps[this._activeStepIndex-2]:e)}
4761_onNext(){this._activeStepChange()}_onConfirm(){const e=this._getStepEventDetail(),t=this._getStepEventDetail(this._allSteps[this._activeStepIndex+1]);this._confirm.emit({...t,previousStep:e}).defaultPrevented||this._activeStepChange()}_onDone(){this._done.emit().defaultPrevented||(this.reset(),this.open=!1)}_onDecline(){this._decline.emit()}_activeStepChange(e=this._allSteps[this._activeStepIndex+1]){const t=this._getStepEventDetail(),i=this._getStepEventDetail(e),{value:n,subValue:o}=i;this._stepChange.emit({...i,previousStep:t}).defaultPrevented||this._setStepActive(n,o)}_getStepEventDetail(e=this._activeStep){var t,i;return(null==e?void 0:e.parent)?{value:e.parent.value,subValue:e.value}:{value:e.value,subValue:null==(i=null==(t=e.steps)?void 0:t[0])?void 0:i.value}}_setStepActive(e,t){this._steps=this.steps.map(i=>{var n;return{...i,active:!t&&i.value===e,steps:null==(n=i.steps)?void 0:n.map(e=>({...e,active:e.value===t}))}})}_updateHeaderElement(){const e=this._headerSlot.content;e&&(e.heading=e.getAttribute("heading")||this._activeStep.heading,e.description=e.getAttribute("description")||this._activeStep.description,e.activeType=this._activeStep.type)}_updateFooterElement(){const e=this._footerSlot.content;e&&(e.activeStep=this._activeStep,e.steps=this._steps)}_getStepIndicatorData(){var e,t;const i="conclusion"===(null==(e=this._activeStep)?void 0:e.type),n="intro"===(null==(t=this._activeStep)?void 0:t.type),o=this._steps.filter(e=>"intro"!==e.type&&"conclusion"!==e.type);return{isIntroActive:n,isConclusionActive:i,currentStepIndex:o.findIndex(e=>{var t;return e===((null==(t=this._activeStep)?void 0:t.parent)||this._activeStep)}),visualNavigationSteps:o}}};iR([Ht()],jR.prototype,"pageWidth",2),iR([gt()],jR.prototype,"heading",2),iR([gt(),zt({type:Boolean})],jR.prototype,"loading",2),iR([gt(),zt({type:Boolean})],jR.prototype,"busy",2),iR([gt(),zt({type:nR})],jR.prototype,"span",2),iR([gt(),zt({type:rR})],jR.prototype,"navigationAlignment",2),iR([gt(),zt({type:Boolean})],jR.prototype,"open",2),iR([gt(),zt({type:lR}),Ht()],jR.prototype,"mode",2),iR([Ht()],jR.prototype,"_isMobileNavigationOpen",2),iR([Ht({invalidateStyle:!0})],jR.prototype,"_topBarIsStuck",2),iR([Ht()],jR.prototype,"steps",2),iR([Ht(),ri("steps",{selectSingleType:"acorn-wizard-page-steps",strict:!0})],jR.prototype,"_stepsSlot",2),iR([Ht(),ri("header",{selectSingleType:AR.config.type})],jR.prototype,"_headerSlot",2),iR([Ht(),ri("body",{selectAllTypes:MR.config.type,strict:!0})],jR.prototype,"_bodySlot",2),iR([Ht(),ri("footer",{selectSingleType:PR.config.type,strict:!0})],jR.prototype,"_footerSlot",2),iR([Ht(),ri("toolbar",{selectSingleType:zR.config.type})],jR.prototype,"_toolbarSlot",2),iR([Ht(),ri("message",{selectAllTypes:Su.config.type})],jR.prototype,"_messageSlot",2),iR([ri("page-detail",{selectSingleType:Al.config.type})],jR.prototype,"_pageDetailSlot",2),iR([Ht()],jR.prototype,"_steps",2),iR([Ht()],jR.prototype,"_isCollapsed",2),iR([ft({cancelable:!0})],jR.prototype,"_done",2),iR([ft({cancelable:!0})],jR.prototype,"_decline",2),iR([ft({cancelable:!0})],jR.prototype,"_close",2),iR([ft()],jR.prototype,"_help",2),iR([ft()],jR.prototype,"_save",2),iR([ft({cancelable:!0})],jR.prototype,"_confirm",2),iR([ft({cancelable:!0})],jR.prototype,"_stepChange",2),iR([ft({bubbles:!0})],jR.prototype,"_pageConnect",2),iR([wi("open")],jR.prototype,"onOpenChange",1),iR([wi("_headerSlot")],jR.prototype,"onHeaderSlotChange",1),iR([wi("_footerSlot")],jR.prototype,"onFooterSlotChange",1),iR([wi("steps")],jR.prototype,"onStepsChange",1),iR([wi("_steps")],jR.prototype,"onPrivateStepsChange",1),iR([Pe()],jR.prototype,"_onDialogScroll",1),iR([Pe()],jR.prototype,"_onScreenSizeChange",1),iR([Pe()],jR.prototype,"_onToggleMobileNavigation",1),iR([Pe()],jR.prototype,"_onDialogCancel",1),iR([Pe()],jR.prototype,"_onToolbarSelect",1),iR([Pe()],jR.prototype,"_onFooterStepChange",1),iR([Pe()],jR.prototype,"_onNavigationItemActive",1),jR=iR([_t({tag:"acorn-wizard-page"})],jR);var GR=class extends Ti{constructor(){super(...arguments),this.steps=[]}get _allSteps(){return this.steps.reduce((e,t)=>
4761{var i;const n=null==(i=t.steps||[])?void 0:i.map(e=>(e.parent=t,e));return[...e,t,...n]},[])}stepsChange(){var e;const{Intro:t,Conclusion:i,Summary:n}=sR;this._allSteps.length&&!(null==(e=this._allSteps)?void 0:e.find(e=>e.active))&&(this.steps[0].active=!0),this.steps.forEach(e=>e.steps=[t,n,i].indexOf(null==e?void 0:e.type)>-1?[]:e.steps),this.parentElement instanceof jR&&(this.parentElement.steps=this._getUniqueSteps())}_getUniqueSteps(){const{Intro:e,Conclusion:t,Summary:i}=sR;return this.steps.reduce((n,o)=>[e,i,t].indexOf(null==o?void 0:o.type)>-1&&n.find(e=>e.type===o.type)?n:[...n,o],[])}};iR([Mt(),zt({type:_R})],GR.prototype,"steps",2),iR([wi("steps")],GR.prototype,"stepsChange",1),GR=iR([_t({tag:"acorn-wizard-page-steps"})],GR);var qR=Object.defineProperty,UR=Object.getOwnPropertyDescriptor,KR=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?UR(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&qR(t,i,r),r},YR={$host:{display:"block",margin:`${kn(8)} auto ${kn(8)} 0`,width:"fit-content"},link:{margin:"0"}},XR=class extends Ti{render(){return $`<acorn-link
4762            class="${this.classes.link}"
4763            href="${j(this.link||void 0)}"
4764            label="${j(this.label||void 0)}"
4765            target="${j(this.target||void 0)}"
4766            @navigate="${this._onNavigate}"
4767        ></acorn-link>`}getStyle(){return YR}_onNavigate(e){this._itemLinkClick.emit().defaultPrevented&&e.preventDefault()}};KR([gt()],XR.prototype,"label",2),KR([gt()],XR.prototype,"link",2),KR([gt()],XR.prototype,"target",2),KR([ft({cancelable:!0})],XR.prototype,"_itemLinkClick",2),KR([Pe()],XR.prototype,"_onNavigate",1),XR=KR([_t({tag:"acorn-prominent-bullet-list-item-link"})],XR);var QR=Vn,ZR={$host:{display:"block"},text:{...QR(),color:zi.Text.Regular.high},detail:{...Wn(),color:zi.Text.Regular.high,marginTop:kn(5)},linkContainer:{margin:`${kn(16)} 0 0`},screenReaderOnly:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"}},JR=class extends Ti{constructor(){super(...arguments),this._accessibilityBulletText="• "}render(){return $`
4768            <div class="${this.classes.text}">
4769                <span class="${this.classes.screenReaderOnly}">${this._accessibilityBulletText}${this.text}</span>
4770                <span aria-hidden="true">${this.text}</span>
4771            </div>
4772            <div class="${this.classes.detail}">${this.detail}</div>
4773            ${this._renderLinks()}
4774        `}getStyle(){return ZR}_renderLinks(){return this._linkSlot.isFilled()?$` <div class="${this.classes.linkContainer}">${this._linkSlot}</div> `:null}};KR([gt()],JR.prototype,"text",2),KR([gt()],JR.prototype,"detail",2),KR([ri("link",{selectAllTypes:XR.config.type}),Ht()],JR.prototype,"_linkSlot",2),JR=KR([_t({tag:"acorn-prominent-bullet-list-item"})],JR);var eF=(e=>(e.Check="check",e.Number="number",e))(eF||{}),tF=(e=>(e.Default="default",e.Brand="brand",e.WhiteOnPositiveCircle="white-on-positive-circle",e.BrandOnPositiveCircle="brand-on-positive-circle",e.BrandOnNegativeCircle="brand-on-negative-circle",e.TealOnNegativeCircle="teal-on-negative-circle",e.TulipOnNegativeCircle="tulip-on-negative-circle",e))(tF||{}),iF=32,nF=parseInt(QR({fontSizeUnit:"px",lineHeightUnit:"px"}).lineHeight);function oF(e){switch(e.theme){case"brand":case"brand-on-negative-circle":case"brand-on-positive-circle":return zi.Surface.Brand.highStatic;case"teal-on-negative-circle":return zi.Surface.Turquoise.high;case"tulip-on-negative-circle":return zi.Surface.Lilac.high;default:return zi.Text.whiteStatic}}var rF={$host:{display:"block",...Ln(Dn.Medium)},list:{margin:"0",padding:"0 0 0 48px",listStyle:"none"},item:{minHeight:"32px",boxSizing:"border-box",position:"relative",paddingTop:()=>`${function(e){const t=ze.scaleFactor*e,i=Math.max(0,iF-t);return Math.round(i/2)}(nF)}px`,marginBottom:kn(16)},itemBullet:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:0,left:"-48px",width:"32px",height:"32px",borderRadius:"16px",backgroundColor:function(e){switch(e.theme){case"brand":case"brand-on-negative-circle":case"brand-on-positive-circle":return zi.Surface.Lilac.low;case"teal-on-negative-circle":case"tulip-on-negative-circle":return zi.Surface.elevation;default:return zi.Surface.Brand.highStatic}},color:oF,"--acorn-icon-color":oF},itemBulletNumeric:{...Kn({fontSizeUnit:"px",lineHeightUnit:"px"}),fontSize:kn(19),marginTop:"2px"}};var aF=class extends Ti{constructor(){super(...arguments),this.theme="default",this.type="check"}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this.isConnected&&ze.register(this._onFontSizeChange)}disconnectedCallback(){ze.unregister(this._onFontSizeChange)}render(){return"number"===this.type?$` <ol class="${this.classes.list}">
4775                    ${this._renderItems()}
4776                </ol>`:$`<ul class="${this.classes.list}">
4777                    ${this._renderItems()}
4778                </ul>`}getStyle(){return rF}_renderItems(){return this._itemSlots.map((e,t)=>("number"===this.type&&(e.content._accessibilityBulletText=`${t+1}. `),$`<li class="${this.classes.item}">
4779                <span class="${this.classes.itemBullet}">${this._renderBullet(t+1)}</span>${e}
4780            </li>`))}_renderBullet(e){return"number"===this.type?$`<span aria-hidden="true" class="${this.classes.itemBulletNumeric}"> ${e} </span>`:$`<acorn-internal-icon
4781                    icon="${Zo.CheckV2}"
4782                    size="${Jo.Regular}"
4783                ></acorn-internal-icon>`}_onFontSizeChange(){this.invalidate()}};KR([gt(),zt({type:tF})],aF.prototype,"theme",2),KR([gt(),zt({type:eF})],aF.prototype,"type",2),KR([ri("item",{selectAllTypes:"prominent-bullet-list-item",spread:!0}),Ht()],aF.prototype,"_itemSlots",2),KR([Pe()],aF.prototype,"_onFontSizeChange",1),aF=KR([_t({tag:"acorn-prominent-bullet-list"})],aF);var sF=Object.defineProperty,lF=Object.getOwnPropertyDescriptor,cF=(e,t,i,n)=>{for(var o,r=n>1?void 0:n?lF(t,i):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&sF(t,i,r),r},dF={$host:{display:"block",outline:"none !important"},wrapper:{display:"flex",alignItems:"center"},heading:{...Yn(),flex:"1 1 auto",color:zi.Text.Regular.high,padding:"10px 0",margin:"0"},subHeading:{...Wn(),color:zi.Text.Regular.high,textAlign:"right"}},hF=class extends Ti{constructor(){super(...arguments),this.heading="",this.headingLevel=5,this.subHeading=""}getStyle(){return dF}render(){if(this.heading)return $`<div class="${this.classes.wrapper}">${this._renderHeading()} ${this._renderMetaContainer()}</div>`}onMenuSlotChange(){this.menuSlot.isFilled()&&(this.menuSlot.content.overlayAlignment=Nl.Right)}_renderMetaContainer(){return this.subHeading?$`<div class="${this.classes.subHeading}">${this.subHeading}</div>`:this.textButtonSlot.isFilled()?$`${this.textButtonSlot}`:this.menuSlot.isFilled()?$`${this.menuSlot}`:void 0}_renderHeading(){switch(this.headingLevel){case 3:return $`<h3 class="${this.classes.heading}">${this.heading}</h3>`;case 4:return $`<h4 class="${this.classes.heading}">${this.heading}</h4>`;case 5:return $`<h5 class="${this.classes.heading}">${this.heading}</h5>`;case 6:return $`<h6 class="${this.classes.heading}">${this.heading}</h6>`;default:return}}};cF([gt()],hF.prototype,"heading",2),cF([gt(),zt({type:Number})],hF.prototype,"headingLevel",2),cF([gt()],hF.prototype,"subHeading",2),cF([ri("menu",{selectSingleType:[jg.config.type],strict:!0}),Ht()],hF.prototype,"menuSlot",2),cF([ri("text-button",{selectSingleType:[rp.config.type],strict:!0}),Ht()],hF.prototype,"textButtonSlot",2),cF([wi("menuSlot")],hF.prototype,"onMenuSlotChange",1),hF=cF([_t({tag:"acorn-description-list-header"})],hF);var pF=(e=>(e.Left="left",e.Spaced="spaced",e.Stacked="stacked",e.None="none",e.Auto="auto",e))(pF||{}),uF=class extends xt{constructor(){super(...arguments),this.label="",this.subLabel="",this.value="",this.subValue="",this.labelExplanation="",this.subLabelExplanation="",this.valueExplanation="",this.subValueExplanation="",this.layout=null}};uF.modelName="descriptionListBodyItem",cF([zt({type:pF})],uF.prototype,"layout",2);var gF=`solid ${zi.Line.Regular.low} 1px`,mF={$host:{display:"block",outline:"none !important"},list:{listStyle:"none outside none",position:"relative",margin:0,padding:0},listItem:{borderTop:gF,marginTop:"-1px",backgroundClip:"padding-box","&:last-child":{borderBottom:gF}}},bF=class extends Ti{constructor(){super(...arguments),this.data=[]}getStyle(){return mF}render(){if(this.layout)return $` <ul class="${this.classes.list}">
4784            ${this.data.map(e=>$`
4785                    <li class="${this.classes.listItem}">
4786                        <acorn-description-list-internal-body-item
4787                            .layout="${this.layout}"
4788                            .itemData="${e}"
4789                        ></acorn-description-list-internal-body-item>
4790                    </li>
4791                `)}
4792        </ul>`}};cF([Mt(),zt({type:uF})],bF.prototype,"data",2),cF([Ht()],bF.prototype,"layout",2),bF=cF([_t({tag:"acorn-description-list-body"})],bF);var vF=Ve.createTranslation({AriaTooltipLabel:{sv:"Förklaring till {0}",en:"Explanation for {0}"}});function yF(e){return"left"===e.resolvedLayout?"500px":"none"}var _F={$host:{display:"block",padding:"7px 0",color:zi.Text.Regular.high},wrapper:{display:"flex",flexDirection:function(e){return"stacked"===e.resolvedLayout?"column":"row"},justifyContent:"space-between",gap:"2px 24px",width:"100%",flexWrap:"wrap",wordBreak:function(e){return"stacked"===e.resolvedLayout?"break-word":"normal"}},labelContainer:{maxWidth:function(e){return"left"===e.resolvedLayout?"350px":"max-content"},flex:"1 0 0px"},valueContainer:{textAlign:function(e){switch(e.resolvedLayout){case"spaced":case"none":return"right";default:return"left"}},flex:"1 0 0px"},label:{...Wn()},subLabel:{...jn(),color:zi.Text.Regular.medium},value:{...Vn(),maxWidth:yF},subValue:{...jn(),maxWidth:yF,color:zi.Text.Regular.medium},text:{whiteSpace:"pre-line"},accessibilityLabel:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",width:"1px",height:"1px",margin:"-1px",padding:"0",border:"0",outline:"0"}},fF=class extends Ti{get resolvedLayout(){var e;return(null==(e=this.itemData)?void 0:e.layout)&&Object.values(pF).includes(this.itemData.layout)?this.itemData.layout:this.layout||"none"}getStyle(){return _F}
4792render(){if(this.itemData)return $`<div class="${this.classes.wrapper}">
4793            <span class="${this.classes.accessibilityLabel}">${this._getAccessibilityLabel()}</span>
4794            <div class="${this.classes.labelContainer}">${this._renderLabel()} ${this._renderSubLabel()}</div>
4795            <div class="${this.classes.valueContainer}">${this._renderValueLabel()} ${this._renderSubValueLabel()}</div>
4796        </div>`}_renderLabel(){return this.itemData.labelExplanation?$`<div>${this._renderTooltipLabel(this.itemData.label,this.itemData.labelExplanation)}</div>`:$`<div aria-hidden="true" class="${this.classes.label}">
4797                <span class="${this.classes.text}">${this.itemData.label}</span>
4798            </div>`}_renderSubLabel(){return this.itemData.subLabel?this.itemData.subLabelExplanation?$`<div class="${this.classes.subLabel}">
4799            ${this._renderTooltipLabel(this.itemData.subLabel,this.itemData.subLabelExplanation)}
4800        </div>`:$`<div aria-hidden="true" class="${this.classes.subLabel}">
4801                <span class="${this.classes.text}">${this.itemData.subLabel}</span>
4802            </div>`:null}_renderValueLabel(){return this.itemData.valueExplanation?$` <div class="${this.classes.value}">
4803            ${this._renderTooltipLabel(this.itemData.value,this.itemData.valueExplanation)}
4804        </div>`:$` <div class="${this.classes.value}" aria-hidden="true">
4805                <span class="${this.classes.text}">${this.itemData.value}</span>
4806            </div>`}_renderSubValueLabel(){return this.itemData.subValue?this.itemData.subValueExplanation?$`<div class="${this.classes.subValue}">
4807            ${this._renderTooltipLabel(this.itemData.subValue,this.itemData.subValueExplanation)}
4808        </div>`:$`<div class="${this.classes.subValue}" aria-hidden="true">
4809                <span class="${this.classes.text}">${this.itemData.subValue}</span>
4810            </div>`:null}_renderTooltipLabel(e,t){return e?$` <acorn-tooltip
4811            text="${t}"
4812            accessibility-label="${this._getTooltipAccessibilityLabel(e)}"
4813        >
4814            ${e}
4815        </acorn-tooltip>`:null}_getAccessibilityLabel(){return[this.itemData.label||"",this.itemData.value||"",this.itemData.subLabel?this.itemData.subLabel:"",this.itemData.subValue?this.itemData.subValue:""].filter(e=>e.length).join(", ")}_getTooltipAccessibilityLabel(e){return Ve.translate(vF.AriaTooltipLabel,e)}};cF([Ht()],fF.prototype,"layout",2),cF([Ht()],fF.prototype,"itemData",2),fF=cF([_t({tag:"acorn-description-list-internal-body-item"})],fF);var xF=Ve.createTranslation({SummaryLabel:{sv:"Summering",en:"Summary"}});var wF={$host:{display:"block",outline:"none !important"},wrapper:{...Vn(),color:zi.Text.Regular.high,padding:"10px 0",display:"flex",flexDirection:function(e){return"stacked"===e.layout?"column":"row"},justifyContent:"space-between",margin:"0",columnGap:"24px"},label:{flex:"1 0 0px",maxWidth:function(e){return"left"===e.layout?"350px":"max-content"}},value:{flex:"1 0 0px",textAlign:function(e){switch(e.layout){case"spaced":case"none":return"right";default:return"left"}}}},CF=class extends Ti{constructor(){super(...arguments),this.label=xF.SummaryLabel,this.value=""}getStyle(){return wF}render(){return $`<div class="${this.classes.wrapper}">
4816            <div class="${this.classes.label}">${this.label}</div>
4817            <div class="${this.classes.value}">${this.value}</div>
4818        </div>`}};cF([gt()],CF.prototype,"label",2),cF([gt()],CF.prototype,"value",2),cF([Ht()],CF.prototype,"layout",2),CF=cF([_t({tag:"acorn-description-list-summary"})],CF);var SF={$host:{display:"block",...Ln(Dn.Medium),outline:"none !important"}},$F=class extends Ti{constructor(){super(),this._containerWidth=0,this._resizeObserver=new ResizeObserver(this._onResize)}set layout(e){Object.values(pF).includes(e)&&(this._layout=e)}get layout(){return this._layout||"auto"}connectedCallback(){var e;null==(e=super.connectedCallback)||e.call(this),this._resizeObserver.observe(this),ze.register(this._onFontSizeChange)}disconnectedCallback(){this._resizeObserver.disconnect(),ze.unregister(this._onFontSizeChange)}getStyle(){return SF}
4818render(){if(!this._bodySlot.isFilled())return;const e=this._resolveLayout();return this._bodySlot.content.layout=e,this._summarySlot.isFilled()&&(this._summarySlot.content.layout=e),$` ${this._headerSlot} ${this._bodySlot} ${this._summarySlot} `}_onResize(e){this._containerWidth=e[0].contentRect.width}_onFontSizeChange(){this.invalidate()}_resolveLayout(){return"auto"!==this.layout?this.layout:this._containerWidth<ze.scale(320)?"stacked":this._containerWidth<ze.scale(650)?"spaced":"left"}};function kF(e){const t=e.scrollHeight>e.clientHeight,i=-1!==window.getComputedStyle(e).overflowY.indexOf("hidden");return t&&!i}function EF(e,t){if(null==e)return{};return Object.keys(e).reduce((i,n)=>{const o=e[n];return i[n]=t(o),i},{})}function TF(e,t){return!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((e,i)=>Array.isArray(e)&&Array.isArray(t[i])?TF(e,t[i]):e===t[i])}cF([gt(),zt({type:pF})],$F.prototype,"layout",1),cF([ri("header",{selectSingleType:hF.config.type})],$F.prototype,"_headerSlot",2),cF([ri("body",{selectSingleType:[bF.config.type]})],$F.prototype,"_bodySlot",2),cF([ri("summary",{selectSingleType:CF.config.type})],$F.prototype,"_summarySlot",2),cF([Ht()],$F.prototype,"_containerWidth",2),cF([Pe()],$F.prototype,"_onResize",1),cF([Pe()],$F.prototype,"_onFontSizeChange",1),$F=cF([_t({tag:"acorn-description-list"})],$F),Be.addGlobalInfo();var IF,OF={Accordion:Fu,AccordionBody:Ou,AccordionGroup:Pu,AccordionHeader:Ru,ActionButton:eu,ActionCard:Sa,ActionChip:qp,ActionSection:pu,AlertMessage:Su,ArrowLink:ju,Badge:Uo,Block:Ju,BlockBody:Qu,BlockHeader:Yu,CustomPage:_b,CustomPageSubnav:bb,CustomPageSecondaryContent:pb,CustomPageHeader:db,CustomPageHeaderContent:tb,CustomPageHeaderToolbar:cb,CustomPageHeaderToolbarItemGroup:ob,CustomPageHeaderToolbarItem:nb,CustomPageHeaderToolbarSearch:lb,CustomPageHeaderBreadcrumbContainer:Jm,CustomPageBody:vb,BulletList:sg,BusyCloak:nv,Button:Dr,ButtonContainer:bl,Carousel:hv,CarouselSlide:dv,Checkbox:Ev,CheckboxGroup:Av,ChoiceChip:oy,ChoiceChipGroup:vy,ComboBox:nx,ComboBoxNoResults:Hf,Conclusion:bx,DatePicker:yp,Definition:ES,DialogPage:FS,FilterChip:J_,FormFieldContainer:zS,FormFieldError:ps,FormFieldHelp:tc,FormFieldHint:rc,GuidedTour:QS,Help:r$,Hero:xT,Highlight:S$,HighlightBox:_$,Icon:Rp,IconButton:Pa,Item:O$,Jumbotron:M$,LanguagePicker:Wb,ProminentLink:_k,List:lk,ListHeader:Q$,ListSummary:rk,ListBody:Y$,ListBodyItem:W$,ListItemLoader:J$,Loader:Bm,LoaderContainer:Yb,Lvd:Ek,MainLayout:hE,MainLayoutHeader:oE,MainLayoutSidebar:Qk,Menu:jg,ModalSection:PE,NetworkStatus:Wk,Notification:Mk,Output:lT,Page:kT,PageRegion:$T,PageDetail:Al,PageDetailFooter:Tl,Radio:PT,RadioGroup:FT,ScrollPane:lf,SearchField:Dx,Section:Tm,SectionBody:om,SectionHeader:gm,Select:lI,SelectOption:jT,ShowMoreContainer:Fb,SideNavbar:xI,SideNavbarOption:mI,SideNavbarOptionGroup:vI,Slider:NI,TabGroup:UI,TabGroupTab:GI,Table:QO,TableColumn:LO,TableRowGroup:AO,Template:xf,TextArea:sD,TextButton:rp,TextField:Ld,Tooltip:bD,TooltipContent:uD,TopNavbar:kD,TopNavbarBrandImage:CD,Wizard:JD,WizardEnd:UD,WizardStart:XD,WizardPage:jR,WizardStep:qD,WizardInfo:YD};return IF=o,((o,r,a,s)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let l of i(r))n.call(o,l)||l===a||e(o,l,{get:()=>r[l],enumerable:!(s=t(r,l))||s.enumerable});return o}
4818)(e({},"__esModule",{value:!0}),IF)})();
4819/*! Bundled license information:
4820
4821lit-html/node/lit-html.js:
4822lit-html/node/directive.js:
4823  (**
4824   * @license
4825   * Copyright 2017 Google LLC
4826   * SPDX-License-Identifier: BSD-3-Clause
4827   *)
4828
4829lit-html/node/directives/if-defined.js:
4830  (**
4831   * @license
4832   * Copyright 2018 Google LLC
4833   * SPDX-License-Identifier: BSD-3-Clause
4834   *)
4835*/
4836(()=>{"use strict";var e,_={},b={};function n(e){var a=b[e];if(void 0!==a)return a.exports;var r=b[e]={exports:{}};return _[e](r,r.exports,n),r.exports}n.m=_,e=[],n.O=(a,r,u,l)=>{if(!r){var o=1/0;for(f=0;f<e.length;f++){for(var[r,u,l]=e[f],s=!0,t=0;t<r.length;t++)(!1&l||o>=l)&&Object.keys(n.O).every(i=>n.O[i](r[t]))?r.splice(t--,1):(s=!1,l<o&&(o=l));if(s){e.splice(f--,1);var c=u();void 0!==c&&(a=c)}}return a}l=l||0;for(var f=e.length;f>0&&e[f-1][2]>l;f--)e[f]=e[f-1];e[f]=[r,u,l]},n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a}),a},n.d=(e,a)=>{for(var r in a)n.o(a,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={121:0};n.O.j=u=>0===e[u];var a=(u,l)=>{var t,c,[f,o,s]=l,v=0;if(f.some(h=>0!==e[h])){for(t in o)n.o(o,t)&&(n.m[t]=o[t]);if(s)var d=s(n)}for(u&&u(l);v<f.length;v++)n.o(e,c=f[v])&&e[c]&&e[c][0](),e[c]=0;return n.O(d)},r=self.webpackChunkfeedback_element=self.webpackChunkfeedback_element||[];r.forEach(a.bind(null,0)),r.push=a.bind(null,r.push.bind(r))})()})();
4837(self.webpackChunkfeedback_element=self.webpackChunkfeedback_element||[]).push([[461],{63:(ot,rt,vt)=>{"use strict";vt(251),vt(339)},251:()=>{(function(){"use strict";var ot=window.Document.prototype.createElement,rt=window.Document.prototype.createElementNS,vt=window.Document.prototype.importNode,Mt=window.Document.prototype.prepend,Pt=window.Document.prototype.append,Lt=window.DocumentFragment.prototype.prepend,Bt=window.DocumentFragment.prototype.append,de=window.Node.prototype.cloneNode,Ut=window.Node.prototype.appendChild,Gt=window.Node.prototype.insertBefore,At=window.Node.prototype.removeChild,Wt=window.Node.prototype.replaceChild,It=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),ht=window.Element.prototype.attachShadow,at=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),yt=window.Element.prototype.getAttribute,Vt=window.Element.prototype.setAttribute,zt=window.Element.prototype.removeAttribute,F=window.Element.prototype.toggleAttribute,wt=window.Element.prototype.getAttributeNS,kt=window.Element.prototype.setAttributeNS,K=window.Element.prototype.removeAttributeNS,pe=window.Element.prototype.insertAdjacentElement,qt=window.Element.prototype.insertAdjacentHTML,Ce=window.Element.prototype.prepend,_e=window.Element.prototype.append,ee=window.Element.prototype.before,jt=window.Element.prototype.after,Xt=window.Element.prototype.replaceWith,ne=window.Element.prototype.remove,Yt=window.HTMLElement,re=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),oe=window.HTMLElement.prototype.insertAdjacentElement,ie=window.HTMLElement.prototype.insertAdjacentHTML,se=new Set;function lt(o){var s=se.has(o);return o=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(o),!s&&o}"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach(function(o){return se.add(o)});var Ht=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);function B(o){var s=o.isConnected;if(void 0!==s)return s;if(Ht(o))return!0;for(;o&&!(o.__CE_isImportDocument||o instanceof Document);)o=o.parentNode||(window.ShadowRoot&&o instanceof ShadowRoot?o.host:void 0);return!(!o||!(o.__CE_isImportDocument||o instanceof Document))}function ce(o){var s=o.children;if(s)return Array.prototype.slice.call(s);for(s=[],o=o.firstChild;o;o=o.nextSibling)o.nodeType===Node.ELEMENT_NODE&&s.push(o);return s}function ut(o,s){for(;s&&s!==o&&!s.nextSibling;)s=s.parentNode;return s&&s!==o?s.nextSibling:null}function $t(o,s,l){for(var e=o;e;){if(e.nodeType===Node.ELEMENT_NODE){var t=e;s(t);var r=t.localName;if("link"===r&&"import"===t.getAttribute("rel")){if(e=t.import,void 0===l&&(l=new Set),e instanceof Node&&!l.has(e))for(l.add(e),e=e.firstChild;e;e=e.nextSibling)$t(e,s,l);e=ut(o,t);continue}if("template"===r){e=ut(o,t);continue}if(t=t.__CE_shadowRoot)for(t=t.firstChild;t;t=t.nextSibling)$t(t,s,l)}e=e.firstChild?e.firstChild:ut(o,e)}}
4837function St(){var o=!(null==_t||!_t.noDocumentConstructionObserver),s=!(null==_t||!_t.shadyDomFastWalk);this.m=[],this.g=[],this.j=!1,this.shadyDomFastWalk=s,this.I=!o}function Zt(o,s,l,e){var t=window.ShadyDOM;if(o.shadyDomFastWalk&&t&&t.inUse){if(s.nodeType===Node.ELEMENT_NODE&&l(s),s.querySelectorAll)for(o=t.nativeMethods.querySelectorAll.call(s,"*"),s=0;s<o.length;s++)l(o[s])}else $t(s,l,e)}function Kt(o,s){o.j&&Zt(o,s,function(l){return ft(o,l)})}function ft(o,s){if(o.j&&!s.__CE_patched){s.__CE_patched=!0;for(var l=0;l<o.m.length;l++)o.m[l](s);for(l=0;l<o.g.length;l++)o.g[l](s)}}function dt(o,s){var l=[];for(Zt(o,s,function(t){return l.push(t)}),s=0;s<l.length;s++){var e=l[s];1===e.__CE_state?o.connectedCallback(e):Ft(o,e)}}function V(o,s){var l=[];for(Zt(o,s,function(t){return l.push(t)}),s=0;s<l.length;s++){var e=l[s];1===e.__CE_state&&o.disconnectedCallback(e)}}function pt(o,s,l){var e=(l=void 0===l?{}:l).J,t=l.upgrade||function(n){return Ft(o,n)},r=[];for(Zt(o,s,function(n){if(o.j&&ft(o,n),"link"===n.localName&&"import"===n.getAttribute("rel")){var i=n.import;i instanceof Node&&(i.__CE_isImportDocument=!0,i.__CE_registry=document.__CE_registry),i&&"complete"===i.readyState?i.__CE_documentLoadHandled=!0:n.addEventListener("load",function(){var u=n.import;if(!u.__CE_documentLoadHandled){u.__CE_documentLoadHandled=!0;var h=new Set;e&&(e.forEach(function(_){return h.add(_)}),h.delete(u)),pt(o,u,{J:h,upgrade:t})}})}else r.push(n)},e),s=0;s<r.length;s++)t(r[s])}function Ft(o,s){try{var l=s.ownerDocument,e=l.__CE_registry,t=e&&(l.defaultView||l.__CE_isImportDocument)?Jt(e,s.localName):void 0;if(t&&void 0===s.__CE_state){t.constructionStack.push(s);try{try{if(new t.constructorFunction!==s)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{t.constructionStack.pop()}}catch(u){throw s.__CE_state=2,u}if(s.__CE_state=1,s.__CE_definition=t,t.attributeChangedCallback&&s.hasAttributes()){var r=t.observedAttributes;for(t=0;t<r.length;t++){var n=r[t],i=s.getAttribute(n);null!==i&&o.attributeChangedCallback(s,n,null,i,null)}}B(s)&&o.connectedCallback(s)}}catch(u){bt(u)}}function le(o,s,l,e){var t=s.__CE_registry;if(t&&(null===e||"http://www.w3.org/1999/xhtml"===e)&&(t=Jt(t,l)))try{var r=new t.constructorFunction;if(void 0===r.__CE_state||void 0===r.__CE_definition)throw Error("Failed to construct '"+l+"': The returned value was not constructed with the HTMLElement constructor.");if("http://www.w3.org/1999/xhtml"!==r.namespaceURI)throw Error("Failed to construct '"+l+"': The constructed element's namespace must be the HTML namespace.");if(r.hasAttributes())throw Error("Failed to construct '"+l+"': The constructed element must not have any attributes.");if(null!==r.firstChild)throw Error("Failed to construct '"+l+"': The constructed element must not have any children.");if(null!==r.parentNode)throw Error("Failed to construct '"+l+"': The constructed element must not have a parent node.");if(r.ownerDocument!==s)throw Error("Failed to construct '"+l+"': The constructed element's owner document is incorrect.");if(r.localName!==l)throw Error("Failed to construct '"+l+"': The constructed element's local name is incorrect.");return r}catch(n){return bt(n),s=null===e?ot.call(s,l):rt.call(s,e,l),Object.setPrototypeOf(s,HTMLUnknownElement.prototype),s.__CE_state=2,s.__CE_definition=void 0,ft(o,s),s}return ft(o,s=null===e?ot.call(s,l):rt.call(s,e,l)),s}function bt(o){var s="",l="",e=0,t=0;o instanceof Error?(s=o.message,l=o.sourceURL||o.fileName||"",e=o.line||o.lineNumber||0,t=o.column||o.columnNumber||0):s="Uncaught "+String(o);var r=void 0;void 0===ErrorEvent.prototype.initErrorEvent?r=new ErrorEvent("error",{cancelable:!0,message:s,filename:l,lineno:e,colno:t,error:o}):((r=document.createEvent("ErrorEvent")).initErrorEvent("error",!1,!0,s,l,e),r.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{configurable:!0,get:function(){return!0}})}),void 0===r.error&&Object.defineProperty(r,"error",{configurable:!0,enumerable:!0,get:function(){return o}}),window.dispatchEvent(r),r.defaultPrevented||console.error(o)}function me(){var o=this;this.g=void 0,this.F=new Promise(function(s){o.l=s})}function ae(o){var s=document;this.l=void 0,this.h=o,this.g=s,pt(this.h,this.g),"loading"===this.g.readyState&&(this.l=new MutationObserver(this.G.bind(this)),this.l.observe(this.g,{childList:!0,subtree:!0}))}function ye(o){o.l&&o.l.disconnect()}function J(o){this.s=new Map,this.u=new Map,this.C=new Map,this.A=!1,this.B=new Map,this.o=function(s){return s()},this.i=!1,this.v=[],this.h=o,this.D=o.I?new ae(o):void 0}function xt(o,s){if(!lt(s))throw new SyntaxError("The element name '"+s+"' is not val
4837id.");if(Jt(o,s))throw Error("A custom element with name '"+s+"' has already been defined.");if(o.A)throw Error("A custom element is already being defined.")}function Ct(o,s,l){var e;o.A=!0;try{var t=l.prototype;if(!(t instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var r=function(_){var y=t[_];if(void 0!==y&&!(y instanceof Function))throw Error("The '"+_+"' callback must be a function.");return y},n=r("connectedCallback"),i=r("disconnectedCallback"),u=r("adoptedCallback"),h=(e=r("attributeChangedCallback"))&&l.observedAttributes||[]}catch(_){throw _}finally{o.A=!1}return o.u.set(s,l={localName:s,constructorFunction:l,connectedCallback:n,disconnectedCallback:i,adoptedCallback:u,attributeChangedCallback:e,observedAttributes:h,constructionStack:[]}),o.C.set(l.constructorFunction,l),l}function ge(o){if(!1!==o.i){o.i=!1;for(var s=[],l=o.v,e=new Map,t=0;t<l.length;t++)e.set(l[t],[]);for(pt(o.h,document,{upgrade:function(u){if(void 0===u.__CE_state){var h=u.localName,_=e.get(h);_?_.push(u):o.u.has(h)&&s.push(u)}}}),t=0;t<s.length;t++)Ft(o.h,s[t]);for(t=0;t<l.length;t++){for(var r=l[t],n=e.get(r),i=0;i<n.length;i++)Ft(o.h,n[i]);(r=o.B.get(r))&&r.resolve(void 0)}l.length=0}}function Jt(o,s){var l=o.u.get(s);if(l)return l;if(l=o.s.get(s)){o.s.delete(s);try{return Ct(o,s,l())}catch(e){bt(e)}}}function ue(o,s,l){function e(t){return function(r){for(var n=[],i=0;i<arguments.length;++i)n[i]=arguments[i];i=[];for(var u=[],h=0;h<n.length;h++){var _=n[h];if(_ instanceof Element&&B(_)&&u.push(_),_ instanceof DocumentFragment)for(_=_.firstChild;_;_=_.nextSibling)i.push(_);else i.push(_)}for(t.apply(this,n),n=0;n<u.length;n++)V(o,u[n]);if(B(this))for(n=0;n<i.length;n++)(u=i[n])instanceof Element&&dt(o,u)}}void 0!==l.prepend&&(s.prepend=e(l.prepend)),void 0!==l.append&&(s.append=e(l.append))}St.prototype.connectedCallback=function(o){var s=o.__CE_definition;if(s.connectedCallback)try{s.connectedCallback.call(o)}catch(l){bt(l)}},St.prototype.disconnectedCallback=function(o){var s=o.__CE_definition;if(s.disconnectedCallback)try{s.disconnectedCallback.call(o)}catch(l){bt(l)}},St.prototype.attributeChangedCallback=function(o,s,l,e,t){var r=o.__CE_definition;if(r.attributeChangedCallback&&-1<r.observedAttributes.indexOf(s))try{r.attributeChangedCallback.call(o,s,l,e,t)}catch(n){bt(n)}},me.prototype.resolve=function(o){if(this.g)throw Error("Already resolved.");this.g=o,this.l(o)},ae.prototype.G=function(o){var s=this.g.readyState;for("interactive"!==s&&"complete"!==s||ye(this),s=0;s<o.length;s++)for(var l=o[s].addedNodes,e=0;e<l.length;e++)pt(this.h,l[e])},J.prototype.H=function(o,s){var l=this;if(!(s instanceof Function))throw new TypeError("Custom element constructor getters must be functions.");xt(this,o),this.s.set(o,s),this.v.push(o),this.i||(this.i=!0,this.o(function(){return ge(l)}))},J.prototype.define=function(o,s){var l=this;if(!(s instanceof Function))throw new TypeError("Custom element constructors must be functions.");xt(this,o),Ct(this,o,s),this.v.push(o),this.i||(this.i=!0,this.o(function(){return ge(l)}))},J.prototype.upgrade=function(o){pt(this.h,o)},J.prototype.get=function(o){if(o=Jt(this,o))return o.constructorFunction},J.prototype.whenDefined=function(o){if(!lt(o))return Promise.reject(new SyntaxError("'"+o+"' is not a valid custom element name."));var s=this.B.get(o);if(s)return s.F;s=new me,this.B.set(o,s);var l=this.u.has(o)||this.s.has(o);return o=-1===this.v.indexOf(o),l&&o&&s.resolve(void 0),s.F},J.prototype.polyfillWrapFlushCallback=function(o){this.D&&ye(this.D);var s=this.o;this.o=function(l){return o(function(){return s(l)})}},J.prototype.define=J.prototype.define,J.prototype.upgrade=J.prototype.upgrade,J.prototype.get=J.prototype.get,J.prototype.whenDefined=J.prototype.whenDefined,J.prototype.polyfillDefineLazy=J.prototype.H,J.prototype.polyfillWrapFlushCallback=J.prototype.polyfillWrapFlushCallback;var we={},_t=window.customElements;function ke(){var o=new St;(function Ne(o){function s(){var l=this.constructor,e=document.__CE_registry.C.get(l);if(!e)throw Error("Failed to construct a custom element: The constructor was not registered with `customElements`.");var t=e.constructionStack;if(0===t.length)return t=ot.call(document,e.localName),Object.setPrototypeOf(t,l.prototype),t.__CE_state=1,t.__CE_definition=e,ft(o,t),t;var r=t.length-1,n=t[r];
4837if(n===we)throw Error("Failed to construct '"+e.localName+"': This element was already constructed.");return t[r]=we,Object.setPrototypeOf(n,l.prototype),ft(o,n),n}s.prototype=Yt.prototype,Object.defineProperty(HTMLElement.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:s}),window.HTMLElement=s})(o),function Te(o){Document.prototype.createElement=function(s){return le(o,this,s,null)},Document.prototype.importNode=function(s,l){return s=vt.call(this,s,!!l),this.__CE_registry?pt(o,s):Kt(o,s),s},Document.prototype.createElementNS=function(s,l){return le(o,this,l,s)},ue(o,Document.prototype,{prepend:Mt,append:Pt})}(o),ue(o,DocumentFragment.prototype,{prepend:Lt,append:Bt}),function Pe(o){function s(l,e){Object.defineProperty(l,"textContent",{enumerable:e.enumerable,configurable:!0,get:e.get,set:function(t){if(this.nodeType===Node.TEXT_NODE)e.set.call(this,t);else{var r=void 0;if(this.firstChild){var n=this.childNodes,i=n.length;if(0<i&&B(this)){r=Array(i);for(var u=0;u<i;u++)r[u]=n[u]}}if(e.set.call(this,t),r)for(t=0;t<r.length;t++)V(o,r[t])}}})}Node.prototype.insertBefore=function(l,e){if(l instanceof DocumentFragment){var t=ce(l);if(l=Gt.call(this,l,e),B(this))for(e=0;e<t.length;e++)dt(o,t[e]);return l}return t=l instanceof Element&&B(l),e=Gt.call(this,l,e),t&&V(o,l),B(this)&&dt(o,l),e},Node.prototype.appendChild=function(l){if(l instanceof DocumentFragment){var e=ce(l);if(l=Ut.call(this,l),B(this))for(var t=0;t<e.length;t++)dt(o,e[t]);return l}return e=l instanceof Element&&B(l),t=Ut.call(this,l),e&&V(o,l),B(this)&&dt(o,l),t},Node.prototype.cloneNode=function(l){return l=de.call(this,!!l),this.ownerDocument.__CE_registry?pt(o,l):Kt(o,l),l},Node.prototype.removeChild=function(l){var e=l instanceof Element&&B(l),t=At.call(this,l);return e&&V(o,l),t},Node.prototype.replaceChild=function(l,e){if(l instanceof DocumentFragment){var t=ce(l);if(l=Wt.call(this,l,e),B(this))for(V(o,e),e=0;e<t.length;e++)dt(o,t[e]);return l}t=l instanceof Element&&B(l);var r=Wt.call(this,l,e),n=B(this);return n&&V(o,e),t&&V(o,l),n&&dt(o,l),r},It&&It.get?s(Node.prototype,It):function De(o,s){o.j=!0,o.m.push(s)}(o,function(l){s(l,{enumerable:!0,configurable:!0,get:function(){for(var e=[],t=this.firstChild;t;t=t.nextSibling)t.nodeType!==Node.COMMENT_NODE&&e.push(t.textContent);return e.join("")},set:function(e){for(;this.firstChild;)At.call(this,this.firstChild);null!=e&&""!==e&&Ut.call(this,document.createTextNode(e))}})})}(o),function fe(o){function s(t,r){Object.defineProperty(t,"innerHTML",{enumerable:r.enumerable,configurable:!0,get:r.get,set:function(n){var i=this,u=void 0;if(B(this)&&(u=[],Zt(o,this,function(y){y!==i&&u.push(y)})),r.set.call(this,n),u)for(var h=0;h<u.length;h++){var _=u[h];1===_.__CE_state&&o.disconnectedCallback(_)}return this.ownerDocument.__CE_registry?pt(o,this):Kt(o,this),n}})}function l(t,r){t.insertAdjacentElement=function(n,i){var u=B(i);return n=r.call(this,n,i),u&&V(o,i),B(n)&&dt(o,i),n}}function e(t,r){function n(i,u){for(var h=[];i!==u;i=i.nextSibling)h.push(i);for(u=0;u<h.length;u++)pt(o,h[u])}t.insertAdjacentHTML=function(i,u){if("beforebegin"===(i=i.toLowerCase())){var h=this.previousSibling;r.call(this,i,u),n(h||this.parentNode.firstChild,this)}else if("afterbegin"===i)h=this.firstChild,r.call(this,i,u),n(this.firstChild,h);else if("beforeend"===i)h=this.lastChild,r.call(this,i,u),n(h||this.firstChild,null);else{if("afterend"!==i)throw new SyntaxError("The value provided ("+String(i)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");h=this.nextSibling,r.call(this,i,u),n(this.nextSibling,h)}}}ht&&(Element.prototype.attachShadow=function(t){if(t=ht.call(this,t),o.j&&!t.__CE_patched){t.__CE_patched=!0;for(var r=0;r<o.m.length;r++)o.m[r](t)}return this.__CE_shadowRoot=t}),at&&at.get?s(Element.prototype,at):re&&re.get?s(HTMLElement.prototype,re):function Ee(o,s){o.j=!0,o.g.push(s)}(o,function(t){s(t,{enumerable:!0,configurable:!0,get:function(){return de.call(this,!0).innerHTML},set:function(r){var n="template"===this.localName,i=n?this.content:this,u=rt.call(document,this.namespaceURI,this.localName);for(u.innerHTML=r;0<i.childNodes.length;)At.call(i,i.childNodes[0]);for(r=n?u.content:u;0<r.childNodes.length;)Ut.call(i,r.childNodes[0])}})}),Element.prototype.setAttribute=function(t,r){if(1!==this.__CE_state)return Vt.call(this,t,r);var n=yt.call(this,t);Vt.call(this,t,r),r=yt.call(this,t),o.attributeChangedCallback(this,t,n,r,null)},Element.prototype.setAttributeNS=function(t,r,n){if(1!==this.__CE_state)return kt.call(this,t,r,n);var i=wt.call(this,t,r);kt.call(this,t,r,n),n=wt.call(this,t,r),o.attributeChangedCallback(this,r,i,n,t)},Element.prototype.removeAttribute=function(t){if(1!==this.__CE_state)return zt.call(this,t);var r=yt.call(this,t);zt.call(this,t),null!==r&&o.attributeChangedCallback(this,t,r,null,null)},F&&(Element.prototype.toggleAttribute=function(t,r){if(1!==this.__CE_state)return F.call(this,t,r);var n=yt.call(this,t);return null!==n!==(r=F.call(this,t,r))&&o.attributeChangedCallback(this,t,n,r?"":null,null),r}),Element.prototype.removeAttributeNS=function(t,r){if(1!==this.__CE_state)return K.call(this,t,r);var n=wt.call(this,t,r);K.call(this,t,r);var i=wt.call(this,t,r);n!==i&&o.attributeChangedCallback(this,r,n,i,t)},oe?l(HTMLElement.prototype,oe):pe&&l(Element.prototype,pe),ie?e(HTMLElement.prototype,ie):qt&&e(Element.prototype,qt),ue(
4837o,Element.prototype,{prepend:Ce,append:_e}),function ve(o){function s(e){return function(t){for(var r=[],n=0;n<arguments.length;++n)r[n]=arguments[n];n=[];for(var i=[],u=0;u<r.length;u++){var h=r[u];if(h instanceof Element&&B(h)&&i.push(h),h instanceof DocumentFragment)for(h=h.firstChild;h;h=h.nextSibling)n.push(h);else n.push(h)}for(e.apply(this,r),r=0;r<i.length;r++)V(o,i[r]);if(B(this))for(r=0;r<n.length;r++)(i=n[r])instanceof Element&&dt(o,i)}}var l=Element.prototype;void 0!==ee&&(l.before=s(ee)),void 0!==jt&&(l.after=s(jt)),void 0!==Xt&&(l.replaceWith=function(e){for(var t=[],r=0;r<arguments.length;++r)t[r]=arguments[r];r=[];for(var n=[],i=0;i<t.length;i++){var u=t[i];if(u instanceof Element&&B(u)&&n.push(u),u instanceof DocumentFragment)for(u=u.firstChild;u;u=u.nextSibling)r.push(u);else r.push(u)}for(i=B(this),Xt.apply(this,t),t=0;t<n.length;t++)V(o,n[t]);if(i)for(V(o,this),t=0;t<r.length;t++)(n=r[t])instanceof Element&&dt(o,n)}),void 0!==ne&&(l.remove=function(){var e=B(this);ne.call(this),e&&V(o,this)})}(o)}(o),window.CustomElementRegistry=J,o=new J(o),document.__CE_registry=o,Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:o})}_t&&!_t.forcePolyfill&&"function"==typeof _t.define&&"function"==typeof _t.get||ke(),window.__CE_installPolyfill=ke}).call(self)},339:()=>{"use strict";const ot=globalThis;function rt(e){return(ot.__Zone_symbol_prefix||"__zone_symbol__")+e}const Pt=Object.getOwnPropertyDescriptor,Lt=Object.defineProperty,Bt=Object.getPrototypeOf,de=Object.create,Ut=Array.prototype.slice,Gt="addEventListener",At="removeEventListener",Wt=rt(Gt),It=rt(At),ht="true",at="false",yt=rt("");function Vt(e,t){return Zone.current.wrap(e,t)}function zt(e,t,r,n,i){return Zone.current.scheduleMacroTask(e,t,r,n,i)}const F=rt,wt=typeof window<"u",kt=wt?window:void 0,K=wt&&kt||globalThis,pe="removeAttribute";function qt(e,t){for(let r=e.length-1;r>=0;r--)"function"==typeof e[r]&&(e[r]=Vt(e[r],t+"_"+r));return e}function _e(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const ee=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,jt=!("nw"in K)&&typeof K.process<"u"&&"[object process]"===K.process.toString(),Xt=!jt&&!ee&&!(!wt||!kt.HTMLElement),ne=typeof K.process<"u"&&"[object process]"===K.process.toString()&&!ee&&!(!wt||!kt.HTMLElement),Yt={},re=F("enable_beforeunload"),oe=function(e){if(!(e=e||K.event))return;let t=Yt[e.type];t||(t=Yt[e.type]=F("ON_PROPERTY"+e.type));const r=this||e.target||K,n=r[t];let i;return Xt&&r===kt&&"error"===e.type?(i=n&&n.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===i&&e.preventDefault()):(i=n&&n.apply(this,arguments),"beforeunload"===e.type&&K[re]&&"string"==typeof i?e.returnValue=i:null!=i&&!i&&e.preventDefault()),i};function ie(e,t,r){let n=Pt(e,t);if(!n&&r&&Pt(r,t)&&(n={enumerable:!0,configurable:!0}),!n||!n.configurable)return;const i=F("on"+t+"patched");if(e.hasOwnProperty(i)&&e[i])return;delete n.writable,delete n.value;const u=n.get,h=n.set,_=t.slice(2);let y=Yt[_];y||(y=Yt[_]=F("ON_PROPERTY"+_)),n.set=function(R){let g=this;!g&&e===K&&(g=K),g&&("function"==typeof g[y]&&g.removeEventListener(_,oe),h&&h.call(g,null),g[y]=R,"function"==typeof R&&g.addEventListener(_,oe,!1))},n.get=function(){let R=this;if(!R&&e===K&&(R=K),!R)return null;const g=R[y];if(g)return g;if(u){let P=u.call(this);if(P)return n.set.call(this,P),"function"==typeof R[pe]&&R.removeAttribute(t),P}return null},Lt(e,t,n),e[i]=!0}function se(e,t,r){if(t)for(let n=0;n<t.length;n++)ie(e,"on"+t[n],r);else{const n=[];for(const i in e)"on"==i.slice(0,2)&&n.push(i);for(let i=0;i<n.length;i++)ie(e,n[i],r)}}const lt=F("originalInstance");function Ht(e){const t=K[e];if(!t)return;K[F(e)]=t,K[e]=function(){const i=qt(arguments,e);switch(i.length){case 0:this[lt]=new t;break;case 1:this[lt]=new t(i[0]);break;case 2:this[lt]=new t(i[0],i[1]);break;case 3:this[lt]=new t(i[0],i[1],i[2]);break;case 4:this[lt]=new t(i[0],i[1],i[2],i[3]);break;default:throw new Error("Arg list too long.")}},ut(K[e],t);const r=new t(function(){});let n;for(n in r)"XMLHttpRequest"===e&&"responseBlob"===n||function(i){"function"==typeof r[i]?K[e].prototype[i]=function(){return this[lt][i].apply(this[lt],arguments)}:Lt(K[e].prototype,i,{set:function(u){"function"==typeof u?(this[lt][i]=Vt(u,e+"."+i),ut(this[lt][i],u)):this[lt][i]=u},get:function(){return this[lt][i]}})}(n);for(n in t)"prototype"!==n&&t.hasOwnProperty(n)&&(K[e][n]=t[n])}function B(e,t,r){let n=e;for(;n&&!n.hasOwnProperty(t);)n=Bt(n);!n&&e[t]&&(n=e);const i=F(t);let u=null;if(n&&(!(u=n[i])||!n.hasOwnProperty(i))&&(u=n[i]=n[t],_e(n&&Pt(n,t)))){const _=r(u,i,t);n[t]=function(){return _(this,arguments)},ut(n[t],u)}return u}function ce(e,t,r){let n=null;function i(u){const h=u.data;return h.args[h.cbIdx]=function(){u.invoke.apply(this,arguments)},n.apply(h.target,h.args),u}n=B(e,t,u=>function(h,_){const y=r(h,_);return y.cbIdx>=0&&"function"==typeof _[y.cbIdx]?zt(y.name,_[y.cbIdx],y,i):u.apply(h,_)})}function ut(e,t){e[F("OriginalDelegate")]=t}let $t=!1,St=!1;function De(){if($t)return St;$t=!0;try{const e=kt.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(St=!0)}catch{}return St}function Ee(e){return"function"==typeof e}function Kt(e){return"number"==typeof e}let ft=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){ft=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ft=!1}const dt={useG:!0},V={},pt={},Ft=new RegExp("^"+yt+"(\\w+)(true|false)$"),le=F("propagationStopped");function bt(e,t){const r=(t?t(e):e)+at,n=(t?t(e):e)+ht,i=yt+r,u=yt+n;V[e]={},V[e][at]=i,V[e][ht]=u}function me(e,t,r,n){const i=n&&n.add||Gt,u=n&&n.rm||At,h=n&&n.listeners||"eventListeners",_=n&&n.rmAll||"removeAllListeners",y=F(i),R="."+i+":",g="prependListener",P="."+g+":",Z=function(b,m,U){if(b.isRemoved)return;const W=b.callback;let nt;"object"==typeof W&&W.handleEvent&&(b.callback=v=>W.handleEvent(v),b.originalDelegate=W);try{b.invoke(b,m,[U])}catch(v){nt=v}const z=b.options;return z&&"object"==typeof z&&z.once&&m[u].call(m,U.type,b.originalDelegate?b.originalDelegate:b.callback,z),nt};function G(b,m,U){if(!(m=m||e.event))return;const W=b||m.target||e,nt=W[V[m.type][U?ht:at]];if(nt){const z=[];if(1===nt.length){const v=Z(nt[0],W,m);v&&z.push(v)}else{const v=nt.slice();for(let $=0;$<v.length&&(!m||!0!==m[le]);$++){const L=Z(v[$],W,m);L&&z.push(L)}}if(1===z.length)throw z[0];for(let v=0;v<z.length;v++){const $=z[v];t.nativeScheduleMicroTask(()=>{throw $})}}}const Y=function(b){return G(this,b,!1)},it=function(b){return G(this,b,!0)};function st(b,m){if(!b)return!1;let U=!0;m&&void 0!==m.useG&&(U=m.useG);const W=m&&m.vh;let nt=!0;m&&void 0!==m.chkDup&&(nt=m.chkDup);let z=!1;m&&void 0!==m.rt&&(z=m.rt);let v=b;for(;v&&!v.hasOwnProperty(i);)v=Bt(v);
4837if(!v&&b[i]&&(v=b),!v||v[y])return!1;const $=m&&m.eventNameToString,L={},S=v[y]=v[i],D=v[F(u)]=v[u],M=v[F(h)]=v[h],ct=v[F(_)]=v[_];let Q;m&&m.prepend&&(Q=v[F(m.prepend)]=v[m.prepend]);const tt=U?function(f){if(!L.isExisting)return S.call(L.target,L.eventName,L.capture?it:Y,L.options)}:function(f){return S.call(L.target,L.eventName,f.invoke,L.options)},x=U?function(f){if(!f.isRemoved){const p=V[f.eventName];let C;p&&(C=p[f.capture?ht:at]);const O=C&&f.target[C];if(O)for(let w=0;w<O.length;w++)if(O[w]===f){O.splice(w,1),f.isRemoved=!0,f.removeAbortListener&&(f.removeAbortListener(),f.removeAbortListener=null),0===O.length&&(f.allRemoved=!0,f.target[C]=null);break}}if(f.allRemoved)return D.call(f.target,f.eventName,f.capture?it:Y,f.options)}:function(f){return D.call(f.target,f.eventName,f.invoke,f.options)},Dt=m&&m.diff?m.diff:function(f,p){const C=typeof p;return"function"===C&&f.callback===p||"object"===C&&f.originalDelegate===p},Nt=Zone[F("UNPATCHED_EVENTS")],Et=e[F("PASSIVE_EVENTS")],d=function(f,p,C,O,w=!1,I=!1){return function(){const j=this||e;let H=arguments[0];m&&m.transferEventName&&(H=m.transferEventName(H));let q=arguments[1];if(!q)return f.apply(this,arguments);if(jt&&"uncaughtException"===H)return f.apply(this,arguments);let X=!1;if("function"!=typeof q){if(!q.handleEvent)return f.apply(this,arguments);X=!0}if(W&&!W(f,q,j,arguments))return;const Rt=ft&&!!Et&&-1!==Et.indexOf(H),gt=function E(f){if("object"==typeof f&&null!==f){const p={...f};return f.signal&&(p.signal=f.signal),p}return f}(function A(f,p){return!ft&&"object"==typeof f&&f?!!f.capture:ft&&p?"boolean"==typeof f?{capture:f,passive:!0}:f?"object"==typeof f&&!1!==f.passive?{...f,passive:!0}:f:{passive:!0}:f}(arguments[2],Rt)),Qt=gt?.signal;if(Qt?.aborted)return;if(Nt)for(let Tt=0;Tt<Nt.length;Tt++)if(H===Nt[Tt])return Rt?f.call(j,H,q,gt):f.apply(this,arguments);const Se=!!gt&&("boolean"==typeof gt||gt.capture),Re=!(!gt||"object"!=typeof gt)&&gt.once,je=Zone.current;let Oe=V[H];Oe||(bt(H,$),Oe=V[H]);const Me=Oe[Se?ht:at];let be,te=j[Me],Le=!1;if(te){if(Le=!0,nt)for(let Tt=0;Tt<te.length;Tt++)if(Dt(te[Tt],q))return}else te=j[Me]=[];const Ae=j.constructor.name,Ie=pt[Ae];Ie&&(be=Ie[H]),be||(be=Ae+p+($?$(H):H)),L.options=gt,Re&&(L.options.once=!1),L.target=j,L.capture=Se,L.eventName=H,L.isExisting=Le;const he=U?dt:void 0;he&&(he.taskData=L),Qt&&(L.options.signal=void 0);const mt=je.scheduleEventTask(be,q,he,C,O);if(Qt){L.options.signal=Qt;const Tt=()=>mt.zone.cancelTask(mt);f.call(Qt,"abort",Tt,{once:!0}),mt.removeAbortListener=()=>Qt.removeEventListener("abort",Tt)}return L.target=null,he&&(he.taskData=null),Re&&(L.options.once=!0),!ft&&"boolean"==typeof mt.options||(mt.options=gt),mt.target=j,mt.capture=Se,mt.eventName=H,X&&(mt.originalDelegate=q),I?te.unshift(mt):te.push(mt),w?j:void 0}};return v[i]=d(S,R,tt,x,z),Q&&(v[g]=d(Q,P,function(f){return Q.call(L.target,L.eventName,f.invoke,L.options)},x,z,!0)),v[u]=function(){const f=this||e;let p=arguments[0];m&&m.transferEventName&&(p=m.transferEventName(p));const C=arguments[2],O=!!C&&("boolean"==typeof C||C.capture),w=arguments[1];if(!w)return D.apply(this,arguments);if(W&&!W(D,w,f,arguments))return;const I=V[p];let j;I&&(j=I[O?ht:at]);const H=j&&f[j];if(H)for(let q=0;q<H.length;q++){const X=H[q];if(Dt(X,w))return H.splice(q,1),X.isRemoved=!0,0!==H.length||(X.allRemoved=!0,f[j]=null,O||"string"!=typeof p)||(f[yt+"ON_PROPERTY"+p]=null),X.zone.cancelTask(X),z?f:void 0}return D.apply(this,arguments)},v[h]=function(){const f=this||e;let p=arguments[0];m&&m.transferEventName&&(p=m.transferEventName(p));const C=[],O=ae(f,$?$(p):p);for(let w=0;w<O.length;w++){const I=O[w];C.push(I.originalDelegate?I.originalDelegate:I.callback)}return C},v[_]=function(){const f=this||e;let p=arguments[0];if(p){m&&m.transferEventName&&(p=m.transferEventName(p));const C=V[p];if(C){const I=f[C[at]],j=f[C[ht]];if(I){const H=I.slice();for(let q=0;q<H.length;q++){const X=H[q];this[u].call(this,p,X.originalDelegate?X.originalDelegate:X.callback,X.options)}}if(j){const H=j.slice();for(let q=0;q<H.length;q++){const X=H[q];this[u].call(this,p,X.originalDelegate?X.originalDelegate:X.callback,X.options)}}}}else{const C=Object.keys(f);for(let O=0;O<C.length;O++){const I=Ft.exec(C[O]);let j=I&&I[1];j&&"removeListener"!==j&&this[_].call(this,j)}this[_].call(this,"removeListener")}if(z)return this},ut(v[i],S),ut(v[u],D),ct&&ut(v[_],ct),M&&ut(v[h],M),!0}let et=[];for(let b=0;b<r.length;b++)et[b]=st(r[b],n);return et}function ae(e,t){if(!t){const u=[];for(let h in e){const _=Ft.exec(h);let y=_&&_[1];if(y&&(!t||y===t)){const R=e[h];if(R)for(let g=0;g<R.length;g++)u.push(R[g])}}return u}let r=V[t];r||(bt(t),r=V[t]);const n=e[r[at]],i=e[r[ht]];return n?i?n.concat(i):n.slice():i?i.slice():[]}function ye(e,t){const r=e.Event;r&&r.prototype&&t.patchMethod(r.prototype,"stopImmediatePropagation",n=>function(i,u){i[le]=!0,n&&n.apply(i,u)})}const xt=F("zoneTask");function Ct(e,t,r,n){let i=null,u=null;r+=n;const h={};function _(R){const g=R.data;g.args[0]=function(){return R.invoke.apply(this,arguments)};const P=i.apply(e,g.args);return Kt(P)?g.handleId=P:(g.handle=P,g.isRefreshable=Ee(P.refresh)),R}function y(R){const{handle:g,handleId:P}=R.data;return u.call(e,g??P)}i=B(e,t+=n,R=>function(g,P){if(Ee(P[0])){const Z={isRefreshable:!1,isPeriodic:"Interval"===n,delay:"Timeout"===n||"Interval"===n?P[1]||0:void 0,args:P},G=P[0];P[0]=function(){try{return G.apply(this,arguments)}finally{const{handle:U,handleId:W,isPeriodic:nt,isRefreshable:z}=Z;!nt&&!z&&(W?delete h[W]:U&&(U[xt]=null))}};const Y=zt(t,P[0],Z,_,y);if(!Y)return Y;const{handleId:it,handle:st,isRefreshable:et,isPeriodic:b}=Y.data;if(it)h[it]=Y;else if(st&&(st[xt]=Y,et&&!b)){const m=st.refresh;st.refresh=function(){const{zone:U,state:W}=Y;return"notScheduled"===W?(Y._state="scheduled",U._updateTaskCount(Y,1)):"running"===W&&(Y._state="scheduling"),m.call(this)}}return st??it??Y}return R.apply(e,P)}),u=B(e,r,R=>function(g,P){const Z=P[0];let G;Kt(Z)?(G=h[Z],delete h[Z]):(G=Z?.[xt],G?Z[xt]=null:G=Z),G?.type?G.cancelFn&&G.zone.cancelTask(G):R.apply(e,P)})}function Te(e,t,r){if(!r||0===r.length)return t;const n=r.filter(u=>u.target===e);
4837if(!n||0===n.length)return t;const i=n[0].ignoreProperties;return t.filter(u=>-1===i.indexOf(u))}function ve(e,t,r,n){e&&se(e,Te(e,t,r),n)}function fe(e){return Object.getOwnPropertyNames(e).filter(t=>t.startsWith("on")&&t.length>2).map(t=>t.substring(2))}function ke(e,t,r,n,i){const u=Zone.__symbol__(n);if(t[u])return;const h=t[u]=t[n];t[n]=function(_,y,R){return y&&y.prototype&&i.forEach(function(g){const P=`${r}.${n}::`+g,Z=y.prototype;try{if(Z.hasOwnProperty(g)){const G=e.ObjectGetOwnPropertyDescriptor(Z,g);G&&G.value?(G.value=e.wrapWithCurrentZone(G.value,P),e._redefineProperty(y.prototype,g,G)):Z[g]&&(Z[g]=e.wrapWithCurrentZone(Z[g],P))}else Z[g]&&(Z[g]=e.wrapWithCurrentZone(Z[g],P))}catch{}}),h.call(t,_,y,R)},e.attachOriginToPatched(t[n],h)}const l=function Mt(){const e=globalThis,t=!0===e[rt("forceDuplicateZoneCheck")];if(e.Zone&&(t||"function"!=typeof e.Zone.__symbol__))throw new Error("Zone already loaded.");return e.Zone??=function vt(){const e=ot.performance;function t(A){e&&e.mark&&e.mark(A)}function r(A,T){e&&e.measure&&e.measure(A,T)}t("Zone");let n=(()=>{class A{static{this.__symbol__=rt}static assertZonePatched(){if(ot.Promise!==L.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let c=A.current;for(;c.parent;)c=c.parent;return c}static get current(){return D.zone}static get currentTask(){return M}static __load_patch(c,a,k=!1){if(L.hasOwnProperty(c)){const N=!0===ot[rt("forceDuplicateZoneCheck")];if(!k&&N)throw Error("Already loaded patch: "+c)}else if(!ot["__Zone_disable_"+c]){const N="Zone:"+c;t(N),L[c]=a(ot,A,S),r(N,N)}}get parent(){return this._parent}get name(){return this._name}constructor(c,a){this._parent=c,this._name=a?a.name||"unnamed":"<root>",this._properties=a&&a.properties||{},this._zoneDelegate=new u(this,this._parent&&this._parent._zoneDelegate,a)}get(c){const a=this.getZoneWith(c);if(a)return a._properties[c]}getZoneWith(c){let a=this;for(;a;){if(a._properties.hasOwnProperty(c))return a;a=a._parent}return null}fork(c){if(!c)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,c)}wrap(c,a){if("function"!=typeof c)throw new Error("Expecting function got: "+c);const k=this._zoneDelegate.intercept(this,c,a),N=this;return function(){return N.runGuarded(k,this,arguments,a)}}run(c,a,k,N){D={parent:D,zone:this};try{return this._zoneDelegate.invoke(this,c,a,k,N)}finally{D=D.parent}}runGuarded(c,a=null,k,N){D={parent:D,zone:this};try{try{return this._zoneDelegate.invoke(this,c,a,k,N)}catch(tt){if(this._zoneDelegate.handleError(this,tt))throw tt}}finally{D=D.parent}}runTask(c,a,k){if(c.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(c.zone||st).name+"; Execution: "+this.name+")");const N=c,{type:tt,data:{isPeriodic:x=!1,isRefreshable:Ot=!1}={}}=c;if(c.state===et&&(tt===$||tt===v))return;const Dt=c.state!=U;Dt&&N._transitionTo(U,m);const Nt=M;M=N,D={parent:D,zone:this};try{tt==v&&c.data&&!x&&!Ot&&(c.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,N,a,k)}catch(Et){if(this._zoneDelegate.handleError(this,Et))throw Et}}finally{const Et=c.state;if(Et!==et&&Et!==nt)if(tt==$||x||Ot&&Et===b)Dt&&N._transitionTo(m,U,b);else{const E=N._zoneDelegates;
vendor: 17,101 bytes, line 4837
4837this._updateTaskCount(N,-1),Dt&&N._transitionTo(et,U,et),Ot&&(N._zoneDelegates=E)}D=D.parent,M=Nt}}scheduleTask(c){if(c.zone&&c.zone!==this){let k=this;for(;k;){if(k===c.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${c.zone.name}`);k=k.parent}}c._transitionTo(b,et);const a=[];c._zoneDelegates=a,c._zone=this;try{c=this._zoneDelegate.scheduleTask(this,c)}catch(k){throw c._transitionTo(nt,b,et),this._zoneDelegate.handleError(this,k),k}return c._zoneDelegates===a&&this._updateTaskCount(c,1),c.state==b&&c._transitionTo(m,b),c}scheduleMicroTask(c,a,k,N){return this.scheduleTask(new h(z,c,a,k,N,void 0))}scheduleMacroTask(c,a,k,N,tt){return this.scheduleTask(new h(v,c,a,k,N,tt))}scheduleEventTask(c,a,k,N,tt){return this.scheduleTask(new h($,c,a,k,N,tt))}cancelTask(c){if(c.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(c.zone||st).name+"; Execution: "+this.name+")");if(c.state===m||c.state===U){c._transitionTo(W,m,U);try{this._zoneDelegate.cancelTask(this,c)}catch(a){throw c._transitionTo(nt,W),this._zoneDelegate.handleError(this,a),a}return this._updateTaskCount(c,-1),c._transitionTo(et,W),c.runCount=-1,c}}_updateTaskCount(c,a){const k=c._zoneDelegates;-1==a&&(c._zoneDelegates=null);for(let N=0;N<k.length;N++)k[N]._updateTaskCount(c.type,a)}}return A})();const i={name:"",onHasTask:(A,T,c,a)=>A.hasTask(c,a),onScheduleTask:(A,T,c,a)=>A.scheduleTask(c,a),onInvokeTask:(A,T,c,a,k,N)=>A.invokeTask(c,a,k,N),onCancelTask:(A,T,c,a)=>A.cancelTask(c,a)};class u{get zone(){return this._zone}constructor(T,c,a){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=T,this._parentDelegate=c,this._forkZS=a&&(a&&a.onFork?a:c._forkZS),this._forkDlgt=a&&(a.onFork?c:c._forkDlgt),this._forkCurrZone=a&&(a.onFork?this._zone:c._forkCurrZone),this._interceptZS=a&&(a.onIntercept?a:c._interceptZS),this._interceptDlgt=a&&(a.onIntercept?c:c._interceptDlgt),this._interceptCurrZone=a&&(a.onIntercept?this._zone:c._interceptCurrZone),this._invokeZS=a&&(a.onInvoke?a:c._invokeZS),this._invokeDlgt=a&&(a.onInvoke?c:c._invokeDlgt),this._invokeCurrZone=a&&(a.onInvoke?this._zone:c._invokeCurrZone),this._handleErrorZS=a&&(a.onHandleError?a:c._handleErrorZS),this._handleErrorDlgt=a&&(a.onHandleError?c:c._handleErrorDlgt),this._handleErrorCurrZone=a&&(a.onHandleError?this._zone:c._handleErrorCurrZone),this._scheduleTaskZS=a&&(a.onScheduleTask?a:c._scheduleTaskZS),this._scheduleTaskDlgt=a&&(a.onScheduleTask?c:c._scheduleTaskDlgt),this._scheduleTaskCurrZone=a&&(a.onScheduleTask?this._zone:c._scheduleTaskCurrZone),this._invokeTaskZS=a&&(a.onInvokeTask?a:c._invokeTaskZS),this._invokeTaskDlgt=a&&(a.onInvokeTask?c:c._invokeTaskDlgt),this._invokeTaskCurrZone=a&&(a.onInvokeTask?this._zone:c._invokeTaskCurrZone),this._cancelTaskZS=a&&(a.onCancelTask?a:c._cancelTaskZS),this._cancelTaskDlgt=a&&(a.onCancelTask?c:c._cancelTaskDlgt),this._cancelTaskCurrZone=a&&(a.onCancelTask?this._zone:c._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=a&&a.onHasTask;(k||c&&c._hasTaskZS)&&(this._hasTaskZS=k?a:i,this._hasTaskDlgt=c,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,a.onScheduleTask||(this._scheduleTaskZS=i,this._scheduleTaskDlgt=c,this._scheduleTaskCurrZone=this._zone),a.onInvokeTask||(this._invokeTaskZS=i,this._invokeTaskDlgt=c,this._invokeTaskCurrZone=this._zone),a.onCancelTask||(this._cancelTaskZS=i,this._cancelTaskDlgt=c,this._cancelTaskCurrZone=this._zone))}fork(T,c){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,T,c):new n(T,c)}intercept(T,c,a){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,T,c,a):c}invoke(T,c,a,k,N){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,T,c,a,k,N):c.apply(a,k)}handleError(T,c){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,T,c)}scheduleTask(T,c){let a=c;if(this._scheduleTaskZS)this._hasTaskZS&&a._zoneDelegates.push(this._hasTaskDlgtOwner),a=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,T,c),a||(a=c);else if(c.scheduleFn)c.scheduleFn(c);else{if(c.type!=z)throw new Error("Task is missing scheduleFn.");Y(c)}return a}invokeTask(T,c,a,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,T,c,a,k):c.callback.apply(a,k)}cancelTask(T,c){let a;if(this._cancelTaskZS)a=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,T,c);else{if(!c.cancelFn)throw Error("Task is not cancelable");a=c.cancelFn(c)}return a}hasTask(T,c){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,T,c)}catch(a){this.handleError(T,a)}}_updateTaskCount(T,c){const a=this._taskCounts,k=a[T],N=a[T]=k+c;if(N<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=N||this.hasTask(this._zone,{microTask:a.microTask>0,macroTask:a.macroTask>0,eventTask:a.eventTask>0,change:T})}}class h{constructor(T,c,a,k,N,tt){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=T,this.source=c,this.data=k,this.scheduleFn=N,this.cancelFn=tt,!a)throw new Error("callback is not defined");this.callback=a;const x=this;this.invoke=T===$&&k&&k.useG?h.invokeTask:function(){return h.invokeTask.call(ot,x,this,arguments)}}static invokeTask(T,c,a){T||(T=this),ct++;try{return T.runCount++,T.zone.runTask(T,c,a)}finally{1==ct&&it(),ct--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(et,b)}_transitionTo(T,c,a){if(this._state!==c&&this._state!==a)throw new Error(`${this.type} '${this.source}': can not transition to '${T}', expecting state '${c}'${a?" or '"+a+"'":""}, was '${this._state}'.`);this._state=T,T==et&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const _=rt("setTimeout"),y=rt("Promise"),R=rt("then");let Z,g=[],P=!1;function G(A){if(Z||ot[y]&&(Z=ot[y].resolve(0)),Z){let T=Z[R];T||(T=Z.then),T.call(Z,A)}else ot[_](A,0)}function Y(A){0===ct&&0===g.length&&G(it),A&&g.push(A)}function it(){if(!P){for(P=!0;g.length;){const A=g;g=[];for(let T=0;T<A.length;T++){const c=A[T];try{c.zone.runTask(c,null,null)}catch(a){S.onUnhandledError(a)}}}S.microtaskDrainDone(),P=!1}}const st={name:"NO ZONE"},et="notScheduled",b="scheduling",m="scheduled",U="running",W="canceling",nt="unknown",z="microTask",v="macroTask",$="eventTask",L={},S={symbol:rt,currentZoneFrame:()=>D,onUnhandledError:Q,microtaskDrainDone:Q,scheduleMicroTask:Y,showUncaughtError:()=>!n[rt("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:Q,patchMethod:()=>Q,bindArguments:()=>[],patchThen:()=>Q,patchMacroTask:()=>Q,patchEventPrototype:()=>Q,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>Q,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>Q,wrapWithCurrentZone:()=>Q,filterProperties:()=>[],attachOriginToPatched:()=>Q,_redefineProperty:()=>Q,patchCallbacks:()=>Q,nativeScheduleMicroTask:G};let D={parent:null,zone:new n(null,null)},M=null,ct=0;function Q(){}return r("Zone","Zone"),n}(),e.Zone}();(function s(e){(function Pe(e){e.__load_patch("ZoneAwarePromise",(t,r,n)=>{const i=Object.getOwnPropertyDescriptor,u=Object.defineProperty,_=n.symbol,y=[],R=!1!==t[_("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],g=_("Promise"),P=_("then"),Z="__creationTrace__";n.onUnhandledError=E=>{if(n.showUncaughtError()){const d=E&&E.rejection;d?console.error("Unhandled Promise rejection:",d instanceof Error?d.message:d,"; Zone:",E.zone.name,"; Task:",E.task&&E.task.source,"; Value:",d,d instanceof Error?d.stack:void 0):console.error(E)}},n.microtaskDrainDone=()=>{for(;y.length;){const E=y.shift();try{E.zone.runGuarded(()=>{throw E.throwOriginal?E.rejection:E})}catch(d){Y(d)}}};const G=_("unhandledPromiseRejectionHandler");function Y(E){n.onUnhandledError(E);try{const d=r[G];"function"==typeof d&&d.call(this,E)}catch{}}function it(E){return E&&E.then}function st(E){return E}function et(E){return x.reject(E)}const b=_("state"),m=_("value"),U=_("finally"),W=_("parentPromiseValue"),nt=_("parentPromiseState"),z="Promise.then",v=null,$=!0,L=!1,S=0;function D(E,d){return f=>{try{A(E,d,f)}catch(p){A(E,!1,p)}}}const M=function(){let E=!1;return function(f){return function(){E||(E=!0,f.apply(null,arguments))}}},ct="Promise resolved with itself",Q=_("currentTaskTrace");function A(E,d,f){const p=M();if(E===f)throw new TypeError(ct);if(E[b]===v){let C=null;try{("object"==typeof f||"function"==typeof f)&&(C=f&&f.then)}catch(O){return p(()=>{A(E,!1,O)})(),E}if(d!==L&&f instanceof x&&f.hasOwnProperty(b)&&f.hasOwnProperty(m)&&f[b]!==v)c(f),A(E,f[b],f[m]);else if(d!==L&&"function"==typeof C)try{C.call(f,p(D(E,d)),p(D(E,!1)))}catch(O){p(()=>{A(E,!1,O)})()}else{E[b]=d;const O=E[m];if(E[m]=f,E[U]===U&&d===$&&(E[b]=E[nt],E[m]=E[W]),d===L&&f instanceof Error){const w=r.currentTask&&r.currentTask.data&&r.currentTask.data[Z];w&&u(f,Q,{configurable:!0,enumerable:!1,writable:!0,value:w})}for(let w=0;w<O.length;)a(E,O[w++],O[w++],O[w++],O[w++]);if(0==O.length&&d==L){E[b]=S;let w=f;try{throw new Error("Uncaught (in promise): "+function h(E){return E&&E.toString===Object.prototype.toString?(E.constructor&&E.constructor.name||"")+": "+JSON.stringify(E):E?E.toString():Object.prototype.toString.call(E)}(f)+(f&&f.stack?"\n"+f.stack:""))}catch(I){w=I}R&&(w.throwOriginal=!0),w.rejection=f,w.promise=E,w.zone=r.current,w.task=r.currentTask,y.push(w),n.scheduleMicroTask()}}}return E}const T=_("rejectionHandledHandler");function c(E){if(E[b]===S){try{const d=r[T];d&&"function"==typeof d&&d.call(this,{rejection:E[m],promise:E})}catch{}E[b]=L;for(let d=0;d<y.length;d++)E===y[d].promise&&y.splice(d,1)}}function a(E,d,f,p,C){c(E);const O=E[b],w=O?"function"==typeof p?p:st:"function"==typeof C?C:et;d.scheduleMicroTask(z,()=>{try{const I=E[m],j=!!f&&U===f[U];j&&(f[W]=I,f[nt]=O);const H=d.run(w,void 0,j&&w!==et&&w!==st?[]:[I]);A(f,!0,H)}catch(I){A(f,!1,I)}},f)}const N=function(){},tt=t.AggregateError;class x{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(d){return d instanceof x?d:A(new this(null),$,d)}static reject(d){return A(new this(null),L,d)}static withResolvers(){const d={};return d.promise=new x((f,p)=>{d.resolve=f,d.reject=p}),d}static any(d){if(!d||"function"!=typeof d[Symbol.iterator])return Promise.reject(new tt([],"All promises were rejected"));const f=[];let p=0;try{for(let w of d)p++,f.push(x.resolve(w))}catch{return Promise.reject(new tt([],"All promises were rejected"))}if(0===p)return Promise.reject(new tt([],"All promises were rejected"));let C=!1;const O=[];return new x((w,I)=>{for(let j=0;j<f.length;j++)f[j].then(H=>{C||(C=!0,w(H))},H=>{O.push(H),p--,0===p&&(C=!0,I(new tt(O,"All promises were rejected")))})})}static race(d){let f,p,C=new this((I,j)=>{f=I,p=j});function O(I){f(I)}function w(I){p(I)}for(let I of d)it(I)||(I=this.resolve(I)),I.then(O,w);return C}static all(d){return x.allWithCallback(d)}static allSettled(d){return(this&&this.prototype instanceof x?this:x).allWithCallback(d,{thenCallback:p=>({status:"fulfilled",value:p}),errorCallback:p=>({status:"rejected",reason:p})})}static allWithCallback(d,f){let p,C,O=new this((H,q)=>{p=H,C=q}),w=2,I=0;const j=[];for(let H of d){it(H)||(H=this.resolve(H));const q=I;try{H.then(X=>{j[q]=f?f.thenCallback(X):X,w--,0===w&&p(j)},X=>{f?(j[q]=f.errorCallback(X),w--,0===w&&p(j)):C(X)})}catch(X){C(X)}w++,I++}return w-=2,0===w&&p(j),O}constructor(d){const f=this;if(!(f instanceof x))throw new Error("Must be an instanceof Promise.");f[b]=v,f[m]=[];try{const p=M();d&&d(p(D(f,$)),p(D(f,L)))}catch(p){A(f,!1,p)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return x}then(d,f){let p=this.constructor?.[Symbol.species];(!p||"function"!=typeof p)&&(p=this.constructor||x);const C=new p(N),O=r.current;return this[b]==v?this[m].push(O,C,d,f):a(this,O,C,d,f),C}catch(d){return this.then(null,d)}finally(d){let f=this.constructor?.[Symbol.species];(!f||"function"!=typeof f)&&(f=x);const p=new f(N);p[U]=U;const C=r.current;return this[b]==v?this[m].push(C,p,d,d):a(this,C,p,d,d),p}}x.resolve=x.resolve,x.reject=x.reject,x.race=x.race,x.all=x.all;const Ot=t[g]=t.Promise;t.Promise=x;const Dt=_("thenPatched");function Nt(E){const d=E.prototype,f=i(d,"then");if(f&&(!1===f.writable||!f.configurable))return;const p=d.then;d[P]=p,E.prototype.then=function(C,O){return new x((I,j)=>{p.call(this,I,j)}).then(C,O)},E[Dt]=!0}return n.patchThen=Nt,Ot&&(Nt(Ot),B(t,"fetch",E=>function Et(E){return function(d,f){let p=E.apply(d,f);if(p instanceof x)return p;let C=p.constructor;return C[Dt]||Nt(C),p}}(E))),Promise[r.__symbol__("uncaughtPromiseErrors")]=y,x})})(e),function _t(e){e.__load_patch("toString",t=>{const r=Function.prototype.toString,n=F("OriginalDelegate"),i=F("Promise"),u=F("Error"),h=function(){if("function"==typeof this){const g=this[n];if(g)return"function"==typeof g?r.call(g):Object.prototype.toString.call(g);if(this===Promise){const P=t[i];if(P)return r.call(P)}if(this===Error){const P=t[u];if(P)return r.call(P)}}return r.call(this)};h[n]=r,Function.prototype.toString=h;const _=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":_.call(this)}})}(e),function o(e){e.__load_patch("util",(t,r,n)=>{const i=fe(t);n.patchOnProperties=se,n.patchMethod=B,n.bindArguments=qt,n.patchMacroTask=ce;const u=r.__symbol__("BLACK_LISTED_EVENTS"),h=r.__symbol__("UNPATCHED_EVENTS");t[h]&&(t[u]=t[h]),t[u]&&(r[u]=r[h]=t[u]),n.patchEventPrototype=ye,n.patchEventTarget=me,n.isIEOrEdge=De,n.ObjectDefineProperty=Lt,n.ObjectGetOwnPropertyDescriptor=Pt,n.ObjectCreate=de,n.ArraySlice=Ut,n.patchClass=Ht,n.wrapWithCurrentZone=Vt,n.filterProperties=Te,n.attachOriginToPatched=ut,n._redefineProperty=Object.defineProperty,n.patchCallbacks=ke,n.getGlobalObjects=()=>({globalSources:pt,zoneSymbolEventNames:V,eventNames:i,isBrowser:Xt,isMix:ne,isNode:jt,TRUE_STR:ht,FALSE_STR:at,ZONE_SYMBOL_PREFIX:yt,ADD_EVENT_LISTENER_STR:Gt,REMOVE_EVENT_LISTENER_STR:At})})}(e)})(l),function Ne(e){e.__load_patch("legacy",t=>{const r=t[e.__symbol__("legacyPatch")];r&&r()}),e.__load_patch("timers",t=>{const r="set",n="clear";Ct(t,r,n,"Timeout"),Ct(t,r,n,"Interval"),Ct(t,r,n,"Immediate")}),e.__load_patch("requestAnimationFrame",t=>{Ct(t,"request","cancel","AnimationFrame"),Ct(t,"mozRequest","mozCancel","AnimationFrame"),Ct(t,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(t,r)=>{const n=["alert","prompt","confirm"];for(let i=0;i<n.length;i++)B(t,n[i],(h,_,y)=>function(R,g){return r.current.run(h,t,g,y)})}),e.__load_patch("EventTarget",(t,r,n)=>{(function ue(e,t){t.patchEventPrototype(e,t)})(t,n),function Jt(e,t){if(Zone[t.symbol("patchEventTarget")])return;const{eventNames:r,zoneSymbolEventNames:n,TRUE_STR:i,FALSE_STR:u,ZONE_SYMBOL_PREFIX:h}=t.getGlobalObjects();for(let y=0;y<r.length;y++){const R=r[y],Z=h+(R+u),G=h+(R+i);n[R]={},n[R][u]=Z,n[R][i]=G}const _=e.EventTarget;_&&_.prototype&&t.patchEventTarget(e,t,[_&&_.prototype])}(t,n);const i=t.XMLHttpRequestEventTarget;i&&i.prototype&&n.patchEventTarget(t,n,[i.prototype])}),e.__load_patch("MutationObserver",(t,r,n)=>{Ht("MutationObserver"),Ht("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(t,r,n)=>{Ht("IntersectionObserver")}),e.__load_patch("FileReader",(t,r,n)=>{Ht("FileReader")}),e.__load_patch("on_property",(t,r,n)=>{!function we(e,t){if(jt&&!ne||Zone[e.symbol("patchEvents")])return;const r=t.__Zone_ignore_on_properties;let n=[];if(Xt){const i=window;n=n.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const u=function Zt(){try{const e=kt.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:i,ignoreProperties:["error"]}]:[];ve(i,fe(i),r&&r.concat(u),Bt(i))}n=n.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let i=0;i<n.length;i++){const u=t[n[i]];u&&u.prototype&&ve(u.prototype,fe(u.prototype),r)}}(n,t)}),e.__load_patch("customElements",(t,r,n)=>{!function ge(e,t){const{isBrowser:r,isMix:n}=t.getGlobalObjects();(r||n)&&e.customElements&&"customElements"in e&&t.patchCallbacks(t,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(t,n)}),e.__load_patch("XHR",(t,r)=>
4837{!function R(g){const P=g.XMLHttpRequest;if(!P)return;const Z=P.prototype;let Y=Z[Wt],it=Z[It];if(!Y){const S=g.XMLHttpRequestEventTarget;if(S){const D=S.prototype;Y=D[Wt],it=D[It]}}const st="readystatechange",et="scheduled";function b(S){const D=S.data,M=D.target;M[h]=!1,M[y]=!1;const ct=M[u];Y||(Y=M[Wt],it=M[It]),ct&&it.call(M,st,ct);const Q=M[u]=()=>{if(M.readyState===M.DONE)if(!D.aborted&&M[h]&&S.state===et){const T=M[r.__symbol__("loadfalse")];if(0!==M.status&&T&&T.length>0){const c=S.invoke;S.invoke=function(){const a=M[r.__symbol__("loadfalse")];for(let k=0;k<a.length;k++)a[k]===S&&a.splice(k,1);!D.aborted&&S.state===et&&c.call(S)},T.push(S)}else S.invoke()}else!D.aborted&&!1===M[h]&&(M[y]=!0)};return Y.call(M,st,Q),M[n]||(M[n]=S),$.apply(M,D.args),M[h]=!0,S}function m(){}function U(S){const D=S.data;return D.aborted=!0,L.apply(D.target,D.args)}const W=B(Z,"open",()=>function(S,D){return S[i]=0==D[2],S[_]=D[1],W.apply(S,D)}),z=F("fetchTaskAborting"),v=F("fetchTaskScheduling"),$=B(Z,"send",()=>function(S,D){if(!0===r.current[v]||S[i])return $.apply(S,D);{const M={target:S,url:S[_],isPeriodic:!1,args:D,aborted:!1},ct=zt("XMLHttpRequest.send",m,M,b,U);S&&!0===S[y]&&!M.aborted&&ct.state===et&&ct.invoke()}}),L=B(Z,"abort",()=>function(S,D){const M=function G(S){return S[n]}(S);if(M&&"string"==typeof M.type){if(null==M.cancelFn||M.data&&M.data.aborted)return;M.zone.cancelTask(M)}else if(!0===r.current[z])return L.apply(S,D)})}(t);const n=F("xhrTask"),i=F("xhrSync"),u=F("xhrListener"),h=F("xhrScheduled"),_=F("xhrURL"),y=F("xhrErrorBeforeScheduled")}),e.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function Ce(e,t){const r=e.constructor.name;for(let n=0;n<t.length;n++){const i=t[n],u=e[i];if(u){if(!_e(Pt(e,i)))continue;e[i]=(_=>{const y=function(){return _.apply(this,qt(arguments,r+"."+i))};return ut(y,_),y})(u)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(t,r)=>{function n(i){return function(u){ae(t,i).forEach(_=>{const y=t.PromiseRejectionEvent;if(y){const R=new y(i,{promise:u.promise,reason:u.rejection});_.invoke(R)}})}}t.PromiseRejectionEvent&&(r[F("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),r[F("rejectionHandledHandler")]=n("rejectionhandled"))}),e.__load_patch("queueMicrotask",(t,r,n)=>{!function J(e,t){t.patchMethod(e,"queueMicrotask",r=>function(n,i){Zone.current.scheduleMicroTask("queueMicrotask",i[0])})}(t,n)})}(l)}},ot=>{ot(ot.s=63)}]);
4838"use strict";(self.webpackChunkfeedback_element=self.webpackChunkfeedback_element||[]).push([[792],{901:()=>{let pe=null,_o=!1,Xi=1;const Ft=Symbol("SIGNAL");function V(e){const t=pe;return pe=e,t}const Eh={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Pc(e){if(_o)throw new Error("");if(null===pe)return;pe.consumerOnSignalRead(e);const t=pe.nextProducerIndex++;dr(pe),t<pe.producerNode.length&&pe.producerNode[t]!==e&&Eo(pe)&&Ji(pe.producerNode[t],pe.producerIndexOfThis[t]),pe.producerNode[t]!==e&&(pe.producerNode[t]=e,pe.producerIndexOfThis[t]=Eo(pe)?xh(e,pe,t):0),pe.producerLastReadVersion[t]=e.version}function bh(e){if((!Eo(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==Xi)){if(!e.producerMustRecompute(e)&&!Fc(e))return e.dirty=!1,void(e.lastCleanEpoch=Xi);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=Xi}}function Ih(e){if(void 0===e.liveConsumerNode)return;const t=_o;_o=!0;try{for(const n of e.liveConsumerNode)n.dirty||Sh(n)}finally{_o=t}}function Mh(){return!1!==pe?.consumerAllowSignalWrites}function Sh(e){e.dirty=!0,Ih(e),e.consumerMarkedDirty?.(e)}function Fc(e){dr(e);for(let t=0;t<e.producerNode.length;t++){const n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(bh(n),r!==n.version))return!0}return!1}function xh(e,t,n){if(Oh(e),dr(e),0===e.liveConsumerNode.length)for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=xh(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function Ji(e,t){if(Oh(e),dr(e),1===e.liveConsumerNode.length)for(let r=0;r<e.producerNode.length;r++)Ji(e.producerNode[r],e.producerIndexOfThis[r]);const n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const r=e.liveConsumerIndexOfThis[t],o=e.liveConsumerNode[t];dr(o),o.producerIndexOfThis[r]=t}}function Eo(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function dr(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Oh(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}let Rh=function T0(){throw new Error};function Ph(){Rh()}let kc=null;function Fh(e,t){Mh()||Ph(),e.equal(e.value,t)||(e.value=t,function R0(e){e.version++,function I0(){Xi++}(),Ih(e),kc?.()}(e))}const O0={...Eh,equal:function _h(e,t){return Object.is(e,t)},value:void 0};function ge(e){return"function"==typeof e}function Lh(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}
vendor: 13,996 bytes, line 4838
4838const Lc=Lh(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=n});function es(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class ht{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(ge(r))try{r()}catch(i){t=i instanceof Lc?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{Bh(i)}catch(s){t=t??[],s instanceof Lc?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Lc(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Bh(t);else{if(t instanceof ht){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&es(n,t)}remove(t){const{_finalizers:n}=this;n&&es(n,t),t instanceof ht&&t._removeParent(this)}}ht.EMPTY=(()=>{const e=new ht;return e.closed=!0,e})();const Vh=ht.EMPTY;function jh(e){return e instanceof ht||e&&"closed"in e&&ge(e.remove)&&ge(e.add)&&ge(e.unsubscribe)}function Bh(e){ge(e)?e():e.unsubscribe()}const Hn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ts={setTimeout(e,t,...n){const{delegate:r}=ts;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=ts;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Hh(e){ts.setTimeout(()=>{const{onUnhandledError:t}=Hn;if(!t)throw e;t(e)})}function Uh(){}const F0=Vc("C",void 0,void 0);function Vc(e,t,n){return{kind:e,value:t,error:n}}let Un=null;function ns(e){if(Hn.useDeprecatedSynchronousErrorHandling){const t=!Un;if(t&&(Un={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=Un;if(Un=null,n)throw r}}else e()}class jc extends ht{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,jh(t)&&t.add(this)):this.destination=U0}static create(t,n,r){return new Hc(t,n,r)}next(t){this.isStopped?Uc(function L0(e){return Vc("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Uc(function k0(e){return Vc("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Uc(F0,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const j0=Function.prototype.bind;function Bc(e,t){return j0.call(e,t)}class B0{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){rs(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){rs(r)}else rs(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){rs(n)}}}class Hc extends jc{constructor(t,n,r){let o;if(super(),ge(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Hn.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Bc(t.next,i),error:t.error&&Bc(t.error,i),complete:t.complete&&Bc(t.complete,i)}):o=t}this.destination=new B0(o)}}function rs(e){Hn.useDeprecatedSynchronousErrorHandling?function V0(e){Hn.useDeprecatedSynchronousErrorHandling&&Un&&(Un.errorThrown=!0,Un.error=e)}(e):Hh(e)}function Uc(e,t){const{onStoppedNotification:n}=Hn;n&&ts.setTimeout(()=>n(e,t))}const U0={closed:!0,next:Uh,error:function H0(e){throw e},complete:Uh},$c="function"==typeof Symbol&&Symbol.observable||"@@observable";function $h(e){return e}let ke=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function z0(e){return e&&e instanceof jc||function $0(e){return e&&ge(e.next)&&ge(e.error)&&ge(e.complete)}(e)&&jh(e)}(n)?n:new Hc(n,r,o);return ns(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=Gh(r))((o,i)=>{const s=new Hc({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[$c](){return this}pipe(...n){return function zh(e){return 0===e.length?$h:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=Gh(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Gh(e){var t;return null!==(t=e??Hn.Promise)&&void 0!==t?t:Promise}const G0=Lh(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let fr=(()=>{class e extends ke{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new qh(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new G0}next(n){ns(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){ns(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){ns(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?Vh:(this.currentObservers=null,i.push(n),new ht(()=>{this.currentObservers=null,es(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new ke;return n.source=this,n}}return e.create=(t,n)=>new qh(t,n),e})();class qh extends fr{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:Vh}}class Wh extends fr{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function Cn(e){return t=>{if(function q0(e){return ge(e?.lift)}(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Kt(e,t,n,r,o){return new W0(e,t,n,r,o)}class W0 extends jc{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function Xt(e,t){return Cn((n,r)=>{let o=0;n.subscribe(Kt(r,i=>{r.next(e.call(t,i,o++))}))})}class w extends Error{constructor(t,n){super(function hr(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function Jt(e){return{toString:e}.toString()}const Z=globalThis;function X(e){for(let t in e)if(e[t]===X)return t;throw Error("Could not find renamed property on target object.")}function Z0(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Ie(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Ie).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Gc(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Q0=X({__forward_ref__:X});function ne(e){return e.__forward_ref__=ne,e.toString=function(){return Ie(this())},e}function A(e){return is(e)?e():e}function is(e){return"function"==typeof e&&e.hasOwnProperty(Q0)&&e.__forward_ref__===ne}function L(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function kt(e){return{providers:e.providers||[],imports:e.imports||[]}}function ss(e){return Xh(e,cs)||Xh(e,Jh)}function Xh(e,t){return e.hasOwnProperty(t)?e[t]:null}function as(e){return e&&(e.hasOwnProperty(qc)||e.hasOwnProperty(eb))?e[qc]:null}const cs=X({\u0275prov:X}),qc=X({\u0275inj:X}),Jh=X({ngInjectableDef:X}),eb=X({ngInjectorDef:X});class b{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=L({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Kc(e){return e&&!!e.\u0275providers}const bo=X({\u0275cmp:X}),Xc=X({\u0275dir:X}),Jc=X({\u0275pipe:X}),tp=X({\u0275mod:X}),en=X({\u0275fac:X}),Io=X({__NG_ELEMENT_ID__:X}),np=X({__NG_ENV_ID__:X});function R(e){return"string"==typeof e?e:null==e?"":String(e)}function el(e,t){throw new w(-201,!1)}var U=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(U||{});let tl;function rp(){return tl}function Xe(e){const t=tl;return tl=e,t}function op(e,t,n){const r=ss(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&U.Optional?null:void 0!==t?t:void el()}const Mo={},nl="__NG_DI_FLAG__",ls="ngTempTokenPath",sb=/\n/gm,ip="__source";let vr;function _n(e){const t=vr;return vr=e,t}function lb(e,t=U.Default){if(void 0===vr)throw new w(-203,!1);return null===vr?op(e,void 0,t):vr.get(e,t&U.Optional?null:void 0,t)}function O(e,t=U.Default){return(rp()||lb)(A(e),t)}function I(e,t=U.Default){return O(e,us(t))}function us(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function rl(e){const t=[];for(let n=0;n<e.length;n++){const r=A(e[n]);if(Array.isArray(r)){if(0===r.length)throw new w(900,!1);let o,i=U.Default;for(let s=0;s<r.length;s++){const a=r[s],c=ub(a);"number"==typeof c?-1===c?o=a.token:i|=c:o=a}t.push(O(o,i))}else t.push(O(r))}return t}function ub(e){return e[nl]}function $n(e,t){return e.hasOwnProperty(en)?e[en]:null}function Dr(e,t){e.forEach(n=>Array.isArray(n)?Dr(n,t):t(n))}function ap(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ds(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function st(e,t,n){let r=Cr(e,t);return r>=0?e[1|r]=n:(r=~r,function cp(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function al(e,t){const n=Cr(e,t);if(n>=0)return e[1|n]}function Cr(e,t){return function lp(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}(e,t,1)}const Lt={},$=[],wr=new b(""),up=new b("",-1),cl=new b("");class hs{get(t,n=Mo){if(n===Mo){const r=new Error(`NullInjectorError: No provider for ${Ie(t)}!`);throw r.name="NullInjectorError",r}return n}}var ps=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(ps||{}),Ct=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Ct||{}),ue=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(ue||{});function yb(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function ll(e,t,n){let r=0;for(;r<n.length;){const o=n[r];if("number"==typeof o){if(0!==o)break;r++;const i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{const i=o,s=n[++r];fp(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function dp(e){return 3===e||4===e||6===e}function fp(e){return 64===e.charCodeAt(0)}function To(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const o=t[r];"number"==typeof o?n=o:0===n||hp(e,n,o,null,-1===n||2===n?t[++r]:null)}}return e}function hp(e,t,n,r,o){let i=0,s=e.length;if(-1===t)s=-1;else for(;i<e.length;){const a=e[i++];if("number"==typeof a){if(a===t){s=-1;break}if(a>t){s=i-1;break}}}for(;i<e.length;){const a=e[i];if("number"==typeof a)break;if(a===n){if(null===r)return void(null!==o&&(e[i+1]=o));if(r===e[i+1])return void(e[i+2]=o)}i++,null!==r&&i++,null!==o&&i++}
4838-1!==s&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),null!==r&&e.splice(i++,0,r),null!==o&&e.splice(i++,0,o)}const pp="ng-template";function vb(e,t,n,r){let o=0;if(r){for(;o<t.length&&"string"==typeof t[o];o+=2)if("class"===t[o]&&-1!==yb(t[o+1].toLowerCase(),n,0))return!0}else if(ul(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&"string"==typeof(i=t[o]);)if(i.toLowerCase()===n)return!0}return!1}function ul(e){return 4===e.type&&e.value!==pp}function Db(e,t,n){return t===(4!==e.type||n?e.value:pp)}function Cb(e,t,n){let r=4;const o=e.attrs,i=null!==o?function Eb(e){for(let t=0;t<e.length;t++)if(dp(e[t]))return t;return e.length}(o):0;let s=!1;for(let a=0;a<t.length;a++){const c=t[a];if("number"!=typeof c){if(!s)if(4&r){if(r=2|1&r,""!==c&&!Db(e,c,n)||""===c&&1===t.length){if(wt(r))return!1;s=!0}}else if(8&r){if(null===o||!vb(e,o,c,n)){if(wt(r))return!1;s=!0}}else{const l=t[++a],u=wb(c,o,ul(e),n);if(-1===u){if(wt(r))return!1;s=!0;continue}if(""!==l){let d;if(d=u>i?"":o[u+1].toLowerCase(),2&r&&l!==d){if(wt(r))return!1;s=!0}}}}else{if(!s&&!wt(r)&&!wt(c))return!1;if(s&&wt(c))continue;s=!1,r=c|1&r}}return wt(r)||s}function wt(e){return!(1&e)}function wb(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){const s=t[o];if(s===e)return o;if(3===s||6===s)i=!0;else{if(1===s||2===s){let a=t[++o];for(;"string"==typeof a;)a=t[++o];continue}if(4===s)break;if(0===s){o+=4;continue}}o+=i?1:2}return-1}return function bb(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function gp(e,t,n=!1){for(let r=0;r<t.length;r++)if(Cb(e,t[r],n))return!0;return!1}function mp(e,t){return e?":not("+t.trim()+")":t}function Mb(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if("string"==typeof s)if(2&r){const a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!wt(s)&&(t+=mp(i,o),o=""),r=s,i=i||!wt(r);n++}return""!==o&&(t+=mp(i,o)),t}function En(e){return Jt(()=>{const t=vp(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===ps.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ct.Emulated,styles:e.styles||$,_:null,schemas:e.schemas||null,tView:null,id:""};Dp(n);const r=e.dependencies;return n.directiveDefs=gs(r,!1),n.pipeDefs=gs(r,!0),n.id=function Ob(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of n)t=Math.imul(31,t)+o.charCodeAt(0)|0;return t+=2147483648,"c"+t}(n),n})}function Ab(e){return j(e)||Me(e)}function Nb(e){return null!==e}function tn(e){return Jt(()=>({type:e.type,bootstrap:e.bootstrap||$,declarations:e.declarations||$,imports:e.imports||$,exports:e.exports||$,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function yp(e,t){if(null==e)return Lt;const n={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r];let i,s,a=ue.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==ue.None?[r,a]:r,t[i]=s):n[i]=r}return n}function P(e){return Jt(()=>{const t=vp(e);return Dp(t),t})}function et(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function j(e){return e[bo]||null}function Me(e){return e[Xc]||null}function Pe(e){return e[Jc]||null}function vp(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Lt,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||$,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:yp(e.inputs,t),outputs:yp(e.outputs),debugInfo:null}}function Dp(e){e.features?.forEach(t=>t(e))}function gs(e,t){if(!e)return null;const n=t?Pe:Ab;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(Nb)}function Rb(...e){return{\u0275providers:dl(0,e),\u0275fromNgModule:!0}}function dl(e,...t){const n=[],r=new Set;let o;const i=s=>{n.push(s)};return Dr(t,s=>{const a=s;ms(a,i,[],r)&&(o||=[],o.push(a))}),void 0!==o&&Cp(o,i),n}function Cp(e,t){for(let n=0;n<e.length;n++){const{ngModule:r,providers:o}=e[n];fl(o,i=>{t(i,r)})}}function ms(e,t,n,r){if(!(e=A(e)))return!1;let o=null,i=as(e);const s=!i&&j(e);
vendor: 4,396 bytes, line 4838
4838if(i||s){if(s&&!s.standalone)return!1;o=e}else{const c=e.ngModule;if(i=as(c),!i)return!1;o=c}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of c)ms(l,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let l;r.add(o);try{Dr(i.imports,u=>{ms(u,t,n,r)&&(l||=[],l.push(u))})}finally{}void 0!==l&&Cp(l,t)}if(!a){const l=$n(o)||(()=>new o);t({provide:o,useFactory:l,deps:$},o),t({provide:cl,useValue:o,multi:!0},o),t({provide:wr,useValue:()=>O(o),multi:!0},o)}const c=i.providers;if(null!=c&&!a){const l=e;fl(c,u=>{t(u,l)})}}}return o!==e&&void 0!==e.providers}function fl(e,t){for(let n of e)Kc(n)&&(n=n.\u0275providers),Array.isArray(n)?fl(n,t):t(n)}const Pb=X({provide:String,useValue:X});function hl(e){return null!==e&&"object"==typeof e&&Pb in e}function Gn(e){return"function"==typeof e}const pl=new b(""),ys={},kb={};let gl;function vs(){return void 0===gl&&(gl=new hs),gl}class _t{}class _r extends _t{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,yl(t,s=>this.processProvider(s)),this.records.set(up,Er(void 0,this)),o.has("environment")&&this.records.set(_t,Er(void 0,this));const i=this.records.get(pl);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(cl,$,U.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=V(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),V(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=_n(this),r=Xe(void 0);try{return t()}finally{_n(n),Xe(r)}}get(t,n=Mo,r=U.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(np))return t[np](this);r=us(r);const i=_n(this),s=Xe(void 0);try{if(!(r&U.SkipSelf)){let c=this.records.get(t);if(void 0===c){const l=function Hb(e){return"function"==typeof e||"object"==typeof e&&e instanceof b}(t)&&ss(t);c=l&&this.injectableDefInScope(l)?Er(ml(t),ys):null,this.records.set(t,c)}if(null!=c)return this.hydrate(t,c)}return(r&U.Self?vs():this.parent).get(t,n=r&U.Optional&&n===Mo?null:n)}catch(a){if("NullInjectorError"===a.name){if((a[ls]=a[ls]||[]).unshift(Ie(t)),i)throw a;return function db(e,t,n,r){const o=e[ls];throw t[ip]&&o.unshift(t[ip]),e.message=function fb(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=Ie(t);if(Array.isArray(t))o=t.map(Ie).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):Ie(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(sb,"\n  ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[ls]=null,e}(a,t,"R3InjectorError",this.source)}throw a}finally{Xe(s),_n(i)}}resolveInjectorInitializers(){const t=V(null),n=_n(this),r=Xe(void 0);try{const i=this.get(wr,$,U.Self);for(const s of i)s()}finally{_n(n),Xe(r),V(t)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(Ie(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new w(205,!1)}processProvider(t){let n=Gn(t=A(t))?t:A(t&&t.provide);const r=function Vb(e){return hl(e)?Er(void 0,e.useValue):Er(Ep(e),ys)}(t);if(!Gn(t)&&!0===t.multi){let o=this.records.get(n);o||(o=Er(void 0,ys,!0),o.factory=()=>rl(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){const r=V(null);try{return n.value===ys&&(n.value=kb,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Bb(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{V(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;const n=A(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function ml(e){const t=ss(e),n=null!==t?t.factory:$n(e);if(null!==n)return n;if(e instanceof b)throw new w(204,!1);
4838if(e instanceof Function)return function Lb(e){if(e.length>0)throw new w(204,!1);const n=function J0(e){return e&&(e[cs]||e[Jh])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new w(204,!1)}function Ep(e,t,n){let r;if(Gn(e)){const o=A(e);return $n(o)||ml(o)}if(hl(e))r=()=>A(e.useValue);else if(function _p(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...rl(e.deps||[]));else if(function wp(e){return!(!e||!e.useExisting)}(e))r=()=>O(A(e.useExisting));else{const o=A(e&&(e.useClass||e.provide));if(!function jb(e){return!!e.deps}(e))return $n(o)||ml(o);r=()=>new o(...rl(e.deps))}return r}function Er(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function yl(e,t){for(const n of e)Array.isArray(n)?yl(n,t):n&&Kc(n)?yl(n.\u0275providers,t):t(n)}const de=0,_=1,M=2,me=3,Et=4,Ve=5,at=6,Ir=7,oe=8,we=9,bt=10,N=11,xo=12,Mp=13,Mr=14,he=15,Oo=16,Sr=17,nn=18,Ro=19,Sp=20,bn=21,ws=22,qn=23,F=25,Cl=1,Vt=7,Tr=9,ye=10;var wl=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(wl||{});function je(e){return Array.isArray(e)&&"object"==typeof e[Cl]}function Be(e){return Array.isArray(e)&&!0===e[Cl]}function _l(e){return!!(4&e.flags)}function Wn(e){return e.componentOffset>-1}function Es(e){return!(1&~e.flags)}function It(e){return!!e.template}function El(e){return!!(512&e[M])}class xp{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Op(e,t,n,r){null!==t?t.applyValueToInputSignal(t,r):e[n]=r}function Mt(){return Rp}function Rp(e){return e.type.prototype.ngOnChanges&&(e.setInput=tI),eI}function eI(){const e=Fp(this),t=e?.current;if(t){const n=e.previous;if(n===Lt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function tI(e,t,n,r,o){const i=this.declaredInputs[r],s=Fp(e)||function nI(e,t){return e[Pp]=t}(e,{previous:Lt,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new xp(l&&l.currentValue,n,c===Lt),Op(e,t,o,n)}Mt.ngInherit=!0;const Pp="__ngSimpleChanges__";function Fp(e){return e[Pp]||null}const jt=function(e,t,n){};let Vp=!1;function ee(e){for(;Array.isArray(e);)e=e[de];return e}function Fo(e,t){return ee(t[e])}function qe(e,t){return ee(t[e.index])}function ko(e,t){return e.data[t]}function ct(e,t){const n=t[e];return je(n)?n:n[de]}function Tl(e){return!(128&~e[M])}function Bt(e,t){return null==t?null:e[t]}function jp(e){e[Sr]=0}function cI(e){1024&e[M]||(e[M]|=1024,Tl(e)&&Lo(e))}function Al(e){return!!(9216&e[M]||e[qn]?.dirty)}function Nl(e){e[bt].changeDetectionScheduler?.notify(1),Al(e)?Lo(e):64&e[M]&&(function oI(){return Vp}()?(e[M]|=1024,Lo(e)):e[bt].changeDetectionScheduler?.notify())}function Lo(e){e[bt].changeDetectionScheduler?.notify();let t=Zn(e);for(;null!==t&&!(8192&t[M])&&(t[M]|=8192,Tl(t));)t=Zn(t)}function bs(e,t){if(!(256&~e[M]))throw new w(911,!1);null===e[bn]&&(e[bn]=[]),e[bn].push(t)}function Zn(e){const t=e[me];return Be(t)?t[me]:t}const x={lFrame:Qp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Up(){return x.bindingsEnabled}function v(){return x.lFrame.lView}function H(){return x.lFrame.tView}function Vo(e){return x.lFrame.contextLView=e,e[oe]}function jo(e){return x.lFrame.contextLView=null,e}function J(){let e=$p();for(;null!==e&&64===e.type;)e=e.parent;return e}function $p(){return x.lFrame.currentTNode}function Ht(e,t){const n=x.lFrame;n.currentTNode=e,n.isParent=t}function Ol(){return x.lFrame.isParent}function We(){const e=x.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function St(){return x.lFrame.bindingIndex++}function on(e){const t=x.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function DI(e,t){const n=x.lFrame;n.bindingIndex=n.bindingRootIndex=e,Pl(t)}function Pl(e){x.lFrame.currentDirectiveIndex=e}function kl(){return x.lFrame.currentQueryIndex}function Is(e){x.lFrame.currentQueryIndex=e}function wI(e){const t=e[_];return 2===t.type?t.declTNode:1===t.type?e[Ve]:null}function Wp(e,t,n){if(n&U.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&U.Host||(o=wI(i),null===o||(i=i[Mr],10&o.type))););if(null===o)return!1;t=o,e=i}const r=x.lFrame=Zp();return r.currentTNode=t,r.lView=e,!0}function Ll(e){const t=Zp(),n=e[_];
vendor: 5,616 bytes, line 4838
4838x.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Zp(){const e=x.lFrame,t=null===e?null:e.child;return null===t?Qp(e):t}function Qp(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Yp(){const e=x.lFrame;return x.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Kp=Yp;function Vl(){const e=Yp();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function He(){return x.lFrame.selectedIndex}function Qn(e){x.lFrame.selectedIndex=e}function ie(){const e=x.lFrame;return ko(e.tView,e.selectedIndex)}let tg=!0;function Ho(){return tg}function Ut(e){tg=e}function Ms(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),null!=u&&(e.destroyHooks??=[]).push(n,u)}}function Ss(e,t,n){ng(e,t,3,n)}function Ts(e,t,n,r){(3&e[M])===n&&ng(e,t,n,r)}function jl(e,t){let n=e[M];(3&n)===t&&(n&=16383,n+=1,e[M]=n)}function ng(e,t,n,r){const i=r??-1,s=t.length-1;let a=0;for(let c=void 0!==r?65535&e[Sr]:0;c<s;c++)if("number"==typeof t[c+1]){if(a=t[c],null!=r&&a>=r)break}else t[c]<0&&(e[Sr]+=65536),(a<i||-1==i)&&(MI(e,n,t,c),e[Sr]=(4294901760&e[Sr])+c+2),c++}function rg(e,t){jt(4,e,t);const n=V(null);try{t.call(e)}finally{V(n),jt(5,e,t)}}function MI(e,t,n,r){const o=n[r]<0,i=n[r+1],a=e[o?-n[r]:n[r]];o?e[M]>>14<e[Sr]>>16&&(3&e[M])===t&&(e[M]+=16384,rg(a,i)):rg(a,i)}const xr=-1;class Uo{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Hl(e){return e!==xr}function $o(e){return 32767&e}function zo(e,t){let n=function xI(e){return e>>16}(e),r=t;for(;n>0;)r=r[Mr],n--;return r}let Ul=!0;function As(e){const t=Ul;return Ul=e,t}const og=255,ig=5;let OI=0;const $t={};function Ns(e,t){const n=sg(e,t);if(-1!==n)return n;const r=t[_];r.firstCreatePass&&(e.injectorIndex=t.length,$l(r.data,e),$l(t,null),$l(r.blueprint,null));const o=xs(e,t),i=e.injectorIndex;if(Hl(o)){const s=$o(o),a=zo(o,t),c=a[_].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function $l(e,t){e.push(0,0,0,0,0,0,0,0,t)}function sg(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function xs(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=hg(o),null===r)return xr;if(n++,o=o[Mr],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return xr}function zl(e,t,n){!function RI(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Io)&&(r=n[Io]),null==r&&(r=n[Io]=OI++);const o=r&og;t.data[e+(o>>ig)]|=1<<o}(e,t,n)}function ag(e,t,n){if(n&U.Optional||void 0!==e)return e;el()}function cg(e,t,n,r){if(n&U.Optional&&void 0===r&&(r=null),!(n&(U.Self|U.Host))){const o=e[we],i=Xe(void 0);try{return o?o.get(t,r,n&U.Optional):op(t,r,n&U.Optional)}finally{Xe(i)}}return ag(r,0,n)}function lg(e,t,n,r=U.Default,o){if(null!==e){if(2048&t[M]&&!(r&U.Self)){const s=function VI(e,t,n,r,o){let i=e,s=t;for(;null!==i&&null!==s&&2048&s[M]&&!(512&s[M]);){const a=ug(i,s,n,r|U.Self,$t);if(a!==$t)return a;let c=i.parent;if(!c){const l=s[Sp];if(l){const u=l.get(n,$t,r);if(u!==$t)return u}c=hg(s),s=s[Mr]}i=c}return o}(e,t,n,r,$t);if(s!==$t)return s}const i=ug(e,t,n,r,$t);if(i!==$t)return i}return cg(t,n,r,o)}function ug(e,t,n,r,o){const i=function kI(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Io)?e[Io]:void 0;return"number"==typeof t?t>=0?t&og:LI:t}(n);if("function"==typeof i){if(!Wp(t,e,r))return r&U.Host?ag(o,0,r):cg(t,n,r,o);try{let s;if(s=i(r),null!=s||r&U.Optional)return s;el()}finally{Kp()}}else if("number"==typeof i){let s=null,a=sg(e,t),c=xr,l=r&U.Host?t[he][Ve]:null;for((-1===a||r&U.SkipSelf)&&(c=-1===a?xs(e,t):t[a+8],c!==xr&&fg(r,!1)?(s=t[_],a=$o(c),t=zo(c,t)):a=-1);-1!==a;){const u=t[_];if(dg(i,a,u.data)){const d=FI(a,t,n,s,r,l);if(d!==$t)return d}c=t[a+8],c!==xr&&fg(r,t[_].data[a+8]===l)&&dg(i,a,t)?(s=u,a=$o(c),t=zo(c,t)):a=-1}}return o}function FI(e,t,n,r,o,i){const s=t[_],a=s.data[e+8],u=Os(a,s,n,null==r?Wn(a)&&Ul:r!=s&&!!(3&a.type),o&U.Host&&i===a);return null!==u?Yn(t,s,u,a):$t}function Os(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,c=e.directiveStart,u=i>>20,f=o?a+u:e.directiveEnd;for(let h=r?a:a+u;h<f;h++){const p=s[h];if(h<c&&n===p||h>=c&&p.type===n)return h}if(o){const h=s[c];if(h&&It(h)&&h.type===n)return c}return null}function Yn(e,t,n,r){let o=e[n];const i=t.data;if(function SI(e){return e instanceof Uo}(o)){const s=o;s.resolving&&function rb(e,t){throw t&&t.join(" > "),new w(-200,e)}(function z(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():R(e)}(i[n]));const a=As(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Xe(s.injectImpl):null;Wp(e,r,U.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>
4838=r.directiveStart&&function II(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=Rp(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}(n,i[n],t)}finally{null!==l&&Xe(l),As(a),s.resolving=!1,Kp()}}return o}function dg(e,t,n){return!!(n[t+(e>>ig)]&1<<e)}function fg(e,t){return!(e&U.Self||e&U.Host&&t)}class Te{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return lg(this._tNode,this._lView,t,us(r),n)}}function LI(){return new Te(J(),v())}function Gl(e){return is(e)?()=>{const t=Gl(A(e));return t&&t()}:$n(e)}function hg(e){const t=e[_],n=t.type;return 2===n?t.declTNode:1===n?e[Ve]:null}function vg(e,t=null,n=null,r){const o=Dg(e,t,n,r);return o.resolveInjectorInitializers(),o}function Dg(e,t=null,n=null,r,o=new Set){const i=[n||$,Rb(e)];return r=r||("object"==typeof e?void 0:Ie(e)),new _r(i,t||vs(),r||null,o)}let Fe=(()=>{class e{static{this.THROW_IF_NOT_FOUND=Mo}static{this.NULL=new hs}static create(n,r){if(Array.isArray(n))return vg({name:""},r,n,"");{const o=n.name??"";return vg({name:o},n.parent,n.providers,o)}}static{this.\u0275prov=L({token:e,providedIn:"any",factory:()=>O(up)})}static{this.__NG_ELEMENT_ID__=-1}}return e})();function Wl(e){return e.ngOriginalError}class zt{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Wl(t);for(;n&&Wl(n);)n=Wl(n);return n||null}}const wg=new b("",{providedIn:"root",factory:()=>I(zt).handleError.bind(void 0)});let Pr=(()=>{class e{static{this.__NG_ELEMENT_ID__=WI}static{this.__NG_ENV_ID__=n=>n}}return e})();class qI extends Pr{constructor(t){super(),this._lView=t}onDestroy(t){return bs(this._lView,t),()=>function xl(e,t){if(null===e[bn])return;const n=e[bn].indexOf(t);-1!==n&&e[bn].splice(n,1)}(this._lView,t)}}function WI(){return new qI(v())}function ZI(){return Fr(J(),v())}function Fr(e,t){return new Tt(qe(e,t))}let Tt=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=ZI}}return e})();function Eg(e){return e instanceof Tt?e.nativeElement:e}function Zl(e){return t=>{setTimeout(e,void 0,t)}}const fe=class QI extends fr{constructor(t=!1){super(),this.destroyRef=void 0,this.__isAsync=t,function bp(){return void 0!==rp()||null!=function cb(){return vr}()}()&&(this.destroyRef=I(Pr,{optional:!0})??void 0)}emit(t){const n=V(null);try{super.next(t)}finally{V(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=Zl(i),o&&(o=Zl(o)),s&&(s=Zl(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof ht&&t.add(a),a}};function YI(){return this._results[Symbol.iterator]()}class Ql{get changes(){return this._changes??=new fe}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const n=Ql.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=YI)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;const r=function Je(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function mb(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}}function Fs(e){return!(128&~e.flags)}const Yl=new Map;let XI=0;const Xl="__ngContext__";function $e(e,t){je(t)?(e[Xl]=t[Ro],function eM(e){Yl.set(e[Ro],e)}(t)):e[Xl]=t}function Rg(e){return Fg(e[xo])}function Pg(e){return Fg(e[Et])}function Fg(e){for(;null!==e&&!Be(e);)e=e[Et];return e}let Jl;const Vs=new b("",{providedIn:"root",factory:()=>vM}),vM="ng",$g=new b(""),Mn=new b("",{providedIn:"platform",factory:()=>"unknown"}),zg=new b("",{providedIn:"root",factory:()=>function In(){if(void 0!==Jl)return Jl;if(typeof document<"u")return document;throw new w(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Gg=()=>null;function au(e,t,n=!1){return Gg(e,t,n)}const Yg=new b("",{providedIn:"root",factory:()=>!1});class tm{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}var Tn=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}
vendor: 4,318 bytes, line 4838
4838(Tn||{});let Cu;function wu(e,t){return Cu(e,t)}function Hr(e,t,n,r,o){if(null!=r){let i,s=!1;Be(r)?i=r:je(r)&&(s=!0,r=r[de]);const a=ee(r);0===e&&null!==n?null==o?Em(t,n,a):Kn(t,n,a,o||null,!0):1===e&&null!==n?Kn(t,n,a,o||null,!0):2===e?function ni(e,t,n){const r=Xs(e,t);r&&function I1(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function T1(e,t,n,r,o){const i=n[Vt];i!==ee(n)&&Hr(t,e,r,i,o);for(let a=ye;a<n.length;a++){const c=n[a];ea(c[_],c,e,t,r,i)}}(t,e,i,n,o)}}function Ys(e,t,n){return e.createElement(t,n)}function Cm(e,t){t[bt].changeDetectionScheduler?.notify(1),ea(e,t,t[N],2,null,null)}function wm(e,t){const n=e[Tr],r=n.indexOf(t);n.splice(r,1)}function ei(e,t){if(e.length<=ye)return;const n=ye+t,r=e[n];if(r){const o=r[Oo];null!==o&&o!==e&&wm(o,r),t>0&&(e[n-1][Et]=r[Et]);const i=ds(e,ye+t);!function v1(e,t){Cm(e,t),t[de]=null,t[Ve]=null}(r[_],r);const s=i[nn];null!==s&&s.detachView(i[_]),r[me]=null,r[Et]=null,r[M]&=-129}return r}function Ks(e,t){if(!(256&t[M])){const n=t[N];n.destroyNode&&ea(e,t,n,3,null,null),function C1(e){let t=e[xo];if(!t)return bu(e[_],e);for(;t;){let n=null;if(je(t))n=t[xo];else{const r=t[ye];r&&(n=r)}if(!n){for(;t&&!t[Et]&&t!==e;)je(t)&&bu(t[_],t),t=t[me];null===t&&(t=e),je(t)&&bu(t[_],t),n=t&&t[Et]}t=n}}(t)}}function bu(e,t){if(256&t[M])return;const n=V(null);try{t[M]&=-129,t[M]|=256,t[qn]&&function Nh(e){if(dr(e),Eo(e))for(let t=0;t<e.producerNode.length;t++)Ji(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}(t[qn]),function b1(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const o=t[n[r]];if(!(o instanceof Uo)){const i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){const a=o[i[s]],c=i[s+1];jt(4,a,c);try{c.call(a)}finally{jt(5,a,c)}}else{jt(4,o,i);try{i.call(o)}finally{jt(5,o,i)}}}}}(e,t),function E1(e,t){const n=e.cleanup,r=t[Ir];if(null!==n)for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const s=n[i+3];s>=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);null!==r&&(t[Ir]=null);const o=t[bn];if(null!==o){t[bn]=null;for(let i=0;i<o.length;i++)(0,o[i])()}}(e,t),1===t[_].type&&t[N].destroy();const r=t[Oo];if(null!==r&&Be(t[me])){r!==t[me]&&wm(r,t);const o=t[nn];null!==o&&o.detachView(e)}!function tM(e){Yl.delete(e[Ro])}(t)}finally{V(n)}}function Iu(e,t,n){return function _m(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[de];{const{componentOffset:o}=r;if(o>-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===Ct.None||i===Ct.Emulated)return null}return qe(r,n)}}(e,t.parent,n)}function Kn(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Em(e,t,n){e.appendChild(t,n)}function bm(e,t,n,r,o){null!==r?Kn(e,t,n,r,o):Em(e,t,n)}function Xs(e,t){return e.parentNode(t)}let Mu,Sm=function Mm(e,t,n){return 40&e.type?qe(e,n):null};function Js(e,t,n,r){const o=Iu(e,r,t),i=t[N],a=function Im(e,t,n){return Sm(e,t,n)}(r.parent||t[Ve],r,t);if(null!=o)if(Array.isArray(n))for(let c=0;c<n.length;c++)bm(i,o,n[c],a,!1);else bm(i,o,n,a,!1);void 0!==Mu&&Mu(i,r,t,n,o)}function ti(e,t){if(null!==t){const n=t.type;if(3&n)return qe(t,e);if(4&n)return Su(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return ti(e,r);{const o=e[t.index];return Be(o)?Su(-1,o):ee(o)}}if(32&n)return wu(t,e)()||ee(e[t.index]);{const r=Am(e,t);return null!==r?Array.isArray(r)?r[0]:ti(Zn(e[he]),r):ti(e,t.next)}}return null}function Am(e,t){return null!==t?e[he][Ve].projection[t.projection]:null}function Su(e,t){const n=ye+e+1;if(n<t.length){const r=t[n],o=r[_].firstChild;if(null!==o)return ti(r,o)}return t[Vt]}function Tu(e,t,n,r,o,i,s){for(;null!=n;){const a=r[n.index],c=n.type;if(s&&0===t&&(a&&$e(ee(a),r),n.flags|=2),32&~n.flags)if(8&c)Tu(e,t,n.child,r,o,i,!1),Hr(t,e,o,a,i);else if(32&c){const l=wu(n,r);let u;for(;u=l();)Hr(t,e,o,u,i);Hr(t,e,o,a,i)}else 16&c?xm(e,t,r,n,o,i):Hr(t,e,o,a,i);n=s?n.projectionNext:n.next}}function ea(e,t,n,r,o,i){Tu(n,r,e.firstChild,t,o,i,!1)}function xm(e,t,n,r,o,i){const s=n[he],c=s[Ve].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++)Hr(t,e,o,c[l],i);else{let l=c;const u=s[me];Fs(r)&&(l.flags|=128),Tu(e,t,l,u,o,i,!0)}}
4838function Om(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Rm(e,t,n){const{mergedAttrs:r,classes:o,styles:i}=n;null!==r&&ll(e,t,r),null!==o&&Om(e,t,o),null!==i&&function N1(e,t,n){e.setAttribute(t,"style",n)}(e,t,i)}const k={};function _e(e=1){Pm(H(),v(),He()+e,!1)}function Pm(e,t,n,r){if(!r)if(3&~t[M]){const i=e.preOrderHooks;null!==i&&Ts(t,i,0,n)}else{const i=e.preOrderCheckHooks;null!==i&&Ss(t,i,n)}Qn(n)}function C(e,t=U.Default){const n=v();return null===n?O(e,t):lg(J(),n,A(e),t)}function Fm(e,t,n,r,o,i){const s=V(null);try{let a=null;o&ue.SignalBased&&(a=t[r][Ft]),null!==a&&void 0!==a.transformFn&&(i=a.transformFn(i)),o&ue.HasDecoratorInputTransform&&(i=e.inputTransforms[r].call(t,i)),null!==e.setInput?e.setInput(t,a,i,n,r):Op(t,a,r,i)}finally{V(s)}}function ta(e,t,n,r,o,i,s,a,c,l,u){const d=t.blueprint.slice();return d[de]=o,d[M]=204|r,(null!==l||e&&2048&e[M])&&(d[M]|=2048),jp(d),d[me]=d[Mr]=e,d[oe]=n,d[bt]=s||e&&e[bt],d[N]=a||e&&e[N],d[we]=c||e&&e[we]||null,d[Ve]=i,d[Ro]=function JI(){return XI++}(),d[at]=u,d[Sp]=l,d[he]=2==t.type?e[he]:d,d}function Ur(e,t,n,r,o){let i=e.data[t];if(null===i)i=function Au(e,t,n,r,o){const i=$p(),s=Ol(),c=e.data[t]=function j1(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return function Nr(){return null!==x.skipHydrationRootTNode}()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?i:i&&i.parent,n,t,r,o);return null===e.firstChild&&(e.firstChild=c),null!==i&&(s?null==i.child&&null!==c.parent&&(i.child=c):null===i.next&&(i.next=c,c.prev=i)),c}(e,t,n,r,o),function vI(){return x.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function Bo(){const e=x.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return Ht(i,!0),i}function ri(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function km(e,t,n,r,o){const i=He(),s=2&r;try{Qn(-1),s&&t.length>F&&Pm(e,t,F,!1),jt(s?2:0,o),n(r,o)}finally{Qn(i),jt(s?3:1,o)}}function Nu(e,t,n){if(_l(t)){const r=V(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;s<i;s++){const a=e.data[s];a.contentQueries&&a.contentQueries(1,n[s],s)}}finally{V(r)}}}function xu(e,t,n){Up()&&(function q1(e,t,n,r){const o=n.directiveStart,i=n.directiveEnd;Wn(n)&&function J1(e,t,n){const r=qe(t,e),o=Lm(n);let s=16;n.signals?s=4096:n.onPush&&(s=64);const a=na(e,ta(e,o,null,s,r,t,null,e[bt].rendererFactory.createRenderer(r,n),null,null,null));e[t.index]=a}(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Ns(n,t),$e(r,t);const s=n.initialInputs;for(let a=o;a<i;a++){const c=e.data[a],l=Yn(t,e,a,n);$e(l,t),null!==s&&eS(0,a-o,l,c,0,s),It(c)&&(ct(n.index,t)[oe]=Yn(t,e,a,n))}}(e,t,n,qe(n,t)),!(64&~n.flags)&&Um(e,t,n))}function Ou(e,t,n=qe){const r=t.localNames;if(null!==r){let o=t.index+1;for(let i=0;i<r.length;i+=2){const s=r[i+1],a=-1===s?n(t,e):e[s];e[o++]=a}}}function Lm(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Ru(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Ru(e,t,n,r,o,i,s,a,c,l,u){const d=F+r,f=d+o,h=function R1(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:k);return n}(d,f),p="function"==typeof l?l():l;return h[_]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:c,consts:p,incompleteFirstPass:!1,ssrId:u}}let Vm=()=>null;function jm(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;const s=t[i];if(void 0===s)continue;r??={};let a,c=ue.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let l=i;if(null!==o){if(!o.hasOwnProperty(i))continue;l=o[i]}0===e?Bm(r,n,l,a,c):Bm(r,n,l,a)}return r}function Bm(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],void 0!==o&&i.push(o)}function Pu(e,t,n,r){if(Up()){const o=null===r?null:{"":-1},i=function Z1(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i<n.length;i++){const s=n[i];if(gp(t,s.selectors,!1))if(r||(r=[]),It(s))if(null!==s.findHostDirectiveDefs){const a=[];o=o||new Map,s.findHostDirectiveDefs(s,a,o),r.unshift(...a,s),Fu(e,t,a.length)}else r.unshift(s),Fu(e,t,0);else o=o||new Map,s.findHostDirectiveDefs?.(s,r,o),r.push(s)}return null===r?null:[r,o]}(e,n);let s,a;null===i?s=a=null:[s,a]=i,null!==s&&Hm(e,t,n,s,o,a),o&&function Q1(e,t,n){if(t){const r=e.localNames=[];for(let o=0;o<t.length;o+=2){const i=n[t[o+1]];if(null==i)throw new w(-301,!1);r.push(t[o],i)}}}(n,r,o)}n.mergedAttrs=To(n.mergedAttrs,n.attrs)}function Hm(e,t,n,r,o,i){for(let l=0;l<r.length;l++)zl(Ns(n,t),e,r[l].type);!function K1(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t
vendor: 4,088 bytes, line 4838
4838+n,e.providerIndexes=t}(n,e.data.length,r.length);for(let l=0;l<r.length;l++){const u=r[l];u.providersResolver&&u.providersResolver(u)}let s=!1,a=!1,c=ri(e,t,r.length,null);for(let l=0;l<r.length;l++){const u=r[l];n.mergedAttrs=To(n.mergedAttrs,u.hostAttrs),X1(e,n,t,c,u),Y1(c,u,o),null!==u.contentQueries&&(n.flags|=4),(null!==u.hostBindings||null!==u.hostAttrs||0!==u.hostVars)&&(n.flags|=64);const d=u.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),s=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),a=!0),c++}!function B1(e,t,n){const o=t.directiveEnd,i=e.data,s=t.attrs,a=[];let c=null,l=null;for(let u=t.directiveStart;u<o;u++){const d=i[u],f=n?n.get(d):null,p=f?f.outputs:null;c=jm(0,d.inputs,u,c,f?f.inputs:null),l=jm(1,d.outputs,u,l,p);const g=null===c||null===s||ul(t)?null:tS(c,u,s);a.push(g)}null!==c&&(c.hasOwnProperty("class")&&(t.flags|=8),c.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=c,t.outputs=l}(e,n,i)}function Um(e,t,n){const r=n.directiveStart,o=n.directiveEnd,i=n.index,s=function CI(){return x.lFrame.currentDirectiveIndex}();try{Qn(i);for(let a=r;a<o;a++){const c=e.data[a],l=t[a];Pl(a),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&W1(c,l)}}finally{Qn(-1),Pl(s)}}function W1(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Fu(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function Y1(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;It(t)&&(n[""]=e)}}function X1(e,t,n,r,o){e.data[r]=o;const i=o.factory||(o.factory=$n(o.type)),s=new Uo(i,It(o),C);e.blueprint[r]=s,n[r]=s,function z1(e,t,n,r,o){const i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);const a=~t.index;(function G1(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,ri(e,n,o.hostVars,k),o)}function Gt(e,t,n,r,o,i){const s=qe(e,t);!function ku(e,t,n,r,o,i,s){if(null==i)e.removeAttribute(t,o,n);else{const a=null==s?R(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}(t[N],s,i,e.value,n,r,o)}function eS(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let a=0;a<s.length;)Fm(r,n,s[a++],s[a++],s[a++],s[a++])}function tS(e,t,n){let r=null,o=0;for(;o<n.length;){const i=n[o];if(0!==i)if(5!==i){if("number"==typeof i)break;if(e.hasOwnProperty(i)){null===r&&(r=[]);const s=e[i];for(let a=0;a<s.length;a+=3)if(s[a]===t){r.push(i,s[a+1],s[a+2],n[o+1]);break}}o+=2}else o+=2;else o+=4}return r}function $m(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function zm(e,t){const n=e.contentQueries;if(null!==n){const r=V(null);try{for(let o=0;o<n.length;o+=2){const s=n[o+1];if(-1!==s){const a=e.data[s];Is(n[o]),a.contentQueries(2,t[s],s)}}}finally{V(r)}}}function na(e,t){return e[xo]?e[Mp][Et]=t:e[xo]=t,e[Mp]=t,t}function Lu(e,t,n){Is(0);const r=V(null);try{t(e,n)}finally{V(r)}}function Gm(e){return e[Ir]||(e[Ir]=[])}function qm(e){return e.cleanup||(e.cleanup=[])}function ra(e,t){const n=e[we],r=n?n.get(zt,null):null;r&&r.handleError(t)}function Vu(e,t,n,r,o){for(let i=0;i<n.length;){const s=n[i++],a=n[i++],c=n[i++];Fm(e.data[s],t[s],r,a,c,o)}}function nS(e,t){const n=ct(t,e),r=n[_];!function rS(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n);const o=n[de];null!==o&&null===n[at]&&(n[at]=au(o,n[we])),ju(r,n,n[oe])}function ju(e,t,n){Ll(t);try{const r=e.viewQuery;null!==r&&Lu(1,r,n);const o=e.template;null!==o&&km(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[nn]?.finishViewCreation(e),e.staticContentQueries&&zm(e,t),e.staticViewQueries&&Lu(2,e.viewQuery,n);const i=e.components;null!==i&&function oS(e,t){for(let n=0;n<t.length;n++)nS(e,t[n])}(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[M]&=-5,Vl()}}function oi(e,t,n,r){const o=V(null);try{const i=t.tView,c=ta(e,i,n,4096&e[M]?4096:16,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null);c[Oo]=e[t.index];const u=e[nn];
4838return null!==u&&(c[nn]=u.createEmbeddedView(i)),ju(i,c,n),c}finally{V(o)}}function Zm(e,t){const n=ye+t;if(n<e.length)return e[n]}function $r(e,t){return!t||null===t.firstChild||Fs(e)}function ii(e,t,n,r=!0){const o=t[_];if(function w1(e,t,n,r){const o=ye+r,i=n.length;r>0&&(n[o-1][Et]=t),r<i-ye?(t[Et]=n[o],ap(n,ye+r,t)):(n.push(t),t[Et]=null),t[me]=n;const s=t[Oo];null!==s&&n!==s&&function _1(e,t){const n=e[Tr];t[he]!==t[me][me][he]&&(e[M]|=wl.HasTransplantedViews),null===n?e[Tr]=[t]:n.push(t)}(s,t);const a=t[nn];null!==a&&a.insertView(e),Nl(t),t[M]|=128}(o,t,e,n),r){const s=Su(n,e),a=t[N],c=Xs(a,e[Vt]);null!==c&&function D1(e,t,n,r,o,i){r[de]=o,r[Ve]=t,ea(e,r,n,1,o,i)}(o,e[Ve],a,t,c,s)}const i=t[at];null!==i&&null!==i.firstChild&&(i.firstChild=null)}function Bu(e,t){const n=ei(e,t);return void 0!==n&&Ks(n[_],n),n}function si(e,t,n,r,o=!1){for(;null!==n;){const i=t[n.index];null!==i&&r.push(ee(i)),Be(i)&&Qm(i,r);const s=n.type;if(8&s)si(e,t,n.child,r);else if(32&s){const a=wu(n,t);let c;for(;c=a();)r.push(c)}else if(16&s){const a=Am(t,n);if(Array.isArray(a))r.push(...a);else{const c=Zn(t[he]);si(c[_],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Qm(e,t){for(let n=ye;n<e.length;n++){const r=e[n],o=r[_].firstChild;null!==o&&si(r[_],r,o,t)}e[Vt]!==e[de]&&t.push(e[Vt])}let Ym=[];const cS={...Eh,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{Lo(e.lView)},consumerOnSignalRead(){this.lView[qn]=this}},Km=100;function oa(e,t=!0,n=0){const r=e[bt],o=r.rendererFactory;o.begin?.();try{!function lS(e,t){Hu(e,t);let n=0;for(;Al(e);){if(n===Km)throw new w(103,!1);n++,Hu(e,1)}}(e,n)}catch(s){throw t&&ra(e,s),s}finally{o.end?.(),r.inlineEffectRunner?.flush()}}function uS(e,t,n,r){const o=t[M];if(!(256&~o))return;t[bt].inlineEffectRunner?.flush(),Ll(t);let s=null,a=null;(function dS(e){return 2!==e.type})(e)&&(a=function iS(e){return e[qn]??function sS(e){const t=Ym.pop()??Object.create(cS);return t.lView=e,t}(e)}(t),s=function Th(e){return e&&(e.nextProducerIndex=0),V(e)}(a));try{jp(t),function Gp(e){return x.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&km(e,t,n,2,r);const c=!(3&~o);if(c){const d=e.preOrderCheckHooks;null!==d&&Ss(t,d,null)}else{const d=e.preOrderHooks;null!==d&&Ts(t,d,0,null),jl(t,0)}if(function fS(e){for(let t=Rg(e);null!==t;t=Pg(t)){if(!(t[M]&wl.HasTransplantedViews))continue;const n=t[Tr];for(let r=0;r<n.length;r++){cI(n[r])}}}(t),Xm(t,0),null!==e.contentQueries&&zm(e,t),c){const d=e.contentCheckHooks;null!==d&&Ss(t,d)}else{const d=e.contentHooks;null!==d&&Ts(t,d,1),jl(t,1)}!function O1(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const o=n[r];if(o<0)Qn(~o);else{const i=o,s=n[++r],a=n[++r];DI(s,i),a(2,t[i])}}}finally{Qn(-1)}}(e,t);const l=e.components;null!==l&&ey(t,l,0);const u=e.viewQuery;if(null!==u&&Lu(2,u,r),c){const d=e.viewCheckHooks;null!==d&&Ss(t,d)}else{const d=e.viewHooks;null!==d&&Ts(t,d,2),jl(t,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[ws]){for(const d of t[ws])d();t[ws]=null}t[M]&=-73}catch(c){throw Lo(t),c}finally{null!==a&&(function Ah(e,t){if(V(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Eo(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)Ji(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}(a,s),function aS(e){e.lView[qn]!==e&&(e.lView=null,Ym.push(e))}(a)),Vl()}}function Xm(e,t){for(let n=Rg(e);null!==n;n=Pg(n))for(let r=ye;r<n.length;r++)Jm(n[r],t)}function hS(e,t,n){Jm(ct(t,e),n)}function Jm(e,t){Tl(e)&&Hu(e,t)}function Hu(e,t){const r=e[_],o=e[M],i=e[qn];let s=!!(0===t&&16&o);if(s||=!!(64&o&&0===t),s||=!!(1024&o),s||=!(!i?.dirty||!Fc(i)),i&&(i.dirty=!1),e[M]&=-9217,s)uS(r,e,r.template,e[oe]);else if(8192&o){Xm(e,1);const a=r.components;null!==a&&ey(e,a,1)}}function ey(e,t,n){for(let r=0;r<t.length;r++)hS(e,t[r],n)}function ai(e){for(e[bt].changeDetectionScheduler?.notify();e;){e[M]|=64;const t=Zn(e);if(El(e)&&!t)return e;e=t}return null}class ci{get rootNodes(){const t=this._lView,n=t[_];return si(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[oe]}
4838set context(t){this._lView[oe]=t}get destroyed(){return!(256&~this._lView[M])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[me];if(Be(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(ei(t,r),ds(n,r))}this._attachedToViewContainer=!1}Ks(this._lView[_],this._lView)}onDestroy(t){bs(this._lView,t)}markForCheck(){ai(this._cdRefInjectingView||this._lView)}detach(){this._lView[M]&=-129}reattach(){Nl(this._lView),this._lView[M]|=128}detectChanges(){this._lView[M]|=1024,oa(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Cm(this._lView[_],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=t,Nl(this._lView)}}let cn=(()=>{class e{static{this.__NG_ELEMENT_ID__=mS}}return e})();const pS=cn,gS=class extends pS{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const o=oi(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new ci(o)}};function mS(){return ia(J(),v())}function ia(e,t){return 4&e.type?new gS(t,e,Fr(e,t)):null}let sy=()=>null;function zr(e,t){return sy(e,t)}class Wu{}class BS{}class ay{}class US{resolveComponentFactory(t){throw function HS(e){const t=Error(`No component factory found for ${Ie(e)}.`);return t.ngComponent=e,t}(t)}}let Gr=(()=>{class e{static{this.NULL=new US}}return e})();class ly{}let ln=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function $S(){const e=v(),n=ct(J().index,e);return(je(n)?n:e)[N]}()}}return e})(),zS=(()=>{class e{static{this.\u0275prov=L({token:e,providedIn:"root",factory:()=>null})}}return e})();const Zu={},uy=new Set;function qt(e){uy.has(e)||(uy.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function dy(...e){}class Q{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new fe(!1),this.onMicrotaskEmpty=new fe(!1),this.onStable=new fe(!1),this.onError=new fe(!1),typeof Zone>"u")throw new w(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function GS(){const e="function"==typeof Z.requestAnimationFrame;let t=Z[e?"requestAnimationFrame":"setTimeout"],n=Z[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);const o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function ZS(e){const t=()=>{!function WS(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Z,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Yu(e),e.isCheckStableRunning=!0,Qu(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Yu(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{if(function QS(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(a))return n.invokeTask(o,i,s,a);try{return fy(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),hy(e)}},onInvoke:(n,r,o,i,s,a,c)=>{try{return fy(e),n.invoke(o,i,s,a,c)}
4838finally{e.shouldCoalesceRunChangeDetection&&t(),hy(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Yu(e),Qu(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Q.isInAngularZone())throw new w(909,!1)}static assertNotInAngularZone(){if(Q.isInAngularZone())throw new w(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,qS,dy,dy);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const qS={};function Qu(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Yu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function fy(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function hy(e){e._nesting--,Qu(e)}class py{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new fe,this.onMicrotaskEmpty=new fe,this.onStable=new fe,this.onError=new fe}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}let hi=(()=>{class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const r of n)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.\u0275prov=L({token:e,providedIn:"root",factory:()=>new e})}}return e})();function da(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s<t.length;s++){const a=t[s];"number"==typeof a?i=a:1==i?o=Gc(o,a):2==i&&(r=Gc(r,a+": "+t[++s]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}class Cy extends Gr{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=j(t);return new mi(n,this.ngModule)}}function wy(e){const t=[];for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n];void 0!==r&&t.push({propName:Array.isArray(r)?r[0]:r,templateName:n})}return t}class fa{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=us(r);const o=this.injector.get(t,Zu,r);return o!==Zu||n===Zu?o:this.parentInjector.get(t,n,r)}}class mi extends ay{get inputs(){const t=this.componentDef,n=t.inputTransforms,r=wy(t.inputs);if(null!==n)for(const o of r)n.hasOwnProperty(o.propName)&&(o.transform=n[o.propName]);return r}get outputs(){return wy(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Sb(e){return e.map(Mb).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){const i=V(null);try{let s=(o=o||this.ngModule)instanceof _t?o:o?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const a=s?new fa(t,s):t,c=a.get(ly,null);if(null===c)throw new w(407,!1);const l=a.get(zS,null),f={rendererFactory:c,sanitizer:l,inlineEffectRunner:null,afterRenderEventManager:a.get(hi,null),changeDetectionScheduler:a.get(Wu,null)},h=c.createRenderer(null,this.componentDef),p=this.componentDef.selectors[0][0]||"div",g=r?function P1(e,t,n,r){const i=r.get(Yg,!1)||n===Ct.ShadowDom,s=e.selectRootElement(t,i);return function F1(e){Vm(e)}(s),s}(h,r,this.componentDef.encapsulation,a):Ys(h,p,function tT(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(p));let m=512;this.componentDef.signals?m|=4096:this.componentDef.onPush||(m|=16);let D=null;null!==g&&(D=au(g,a,!0));const y=Ru(0,null,null,1,0,null,null,null,null,null,null),E=ta(null,y,null,m,null,null,f,h,a,null,D);let T,B;Ll(E);try{const W=this.componentDef;let Re,Dn=null;W.findHostDirectiveDefs?(Re=[],Dn=new Map,W.findHostDirectiveDefs(W,Re,Dn),Re.push(W)):Re=[W];const _0=function rT(e,t){const n=e[_],r=F;return e[r]=t,Ur(n,r,2,"#host",null)}(E,g),d6=function oT(e,t,n,r,o,i,s){const a=o[_];!function iT(e,t,n,r){for(const o of e)t.mergedAttrs=To(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(da(t,t.mergedAttrs,!0),null!==n&&Rm(r,n,t))}(r,e,t,s);let c=null;null!==t&&(c=au(t,o[we]));const l=i.rendererFactory.createRenderer(t,n);let u=16;n.signals?u=4096:n.onPush&&(u=64);const d=ta(o,Lm(n),null,u,o[e.index],e,i,l,null,null,c);return a.firstCreatePass&&Fu(a,e,r.length-1),na(o,d),o[e.index]=d}(_0,g,W,Re,E,f,h);B=ko(y,F),g&&function aT(e,t,n,r){if(r)ll(e,n,["ng-version","17.3.12"]);else{const{attrs:o,classes:i}=function Tb(e){const t=[],n=[];let r=1,o=2;for(;r<e.length;){let i=e[r];if("string"==typeof i)2===o?""!==i&&t.push(i,e[++r]):8===o&&n.push(i);else{if(!wt(o))break;o=i}r++}return{attrs:t,classes:n}}(t.selectors[0]);o&&ll(e,n,o),i&&i.length>0&&Om(e,n,i.join(" "))}}(h,W,g,r),void 0!==n&&function cT(e,t,n){const r=e.projection=[];for(let o=0;o<t.length;o++){const i=n[o];r.push(null!=i?Array.from(i):null)}}(B,this.ngContentSelectors,n),T=function sT(e,t,n,r,o,i){const s=J(),a=o[_],c=qe(s,o);Hm(a,o,s,n,null,r);for(let u=0;u<n.length;u++)$e(Yn(o,a,s.directiveStart+u,s),o);Um(a,o,s),c&&$e(c,o);
4838const l=Yn(o,a,s.directiveStart+s.componentOffset,s);if(e[oe]=o[oe]=l,null!==i)for(const u of i)u(l,t);return Nu(a,s,o),l}(d6,W,Re,Dn,E,[lT]),ju(y,E,null)}finally{Vl()}return new nT(this.componentType,T,Fr(B,E),E,B)}finally{V(i)}}}class nT extends BS{constructor(t,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new ci(o,void 0,!1),this.componentType=t}setInput(t,n){const r=this._tNode.inputs;let o;if(null!==r&&(o=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;const i=this._rootLView;Vu(i[_],i,o,t,n),this.previousInputValues.set(t,n),ai(ct(this._tNode.index,i))}}get injector(){return new Te(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function lT(){const e=J();Ms(v()[_],e)}let Wt=(()=>{class e{static{this.__NG_ELEMENT_ID__=uT}}return e})();function uT(){return by(J(),v())}const dT=Wt,_y=class extends dT{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Fr(this._hostTNode,this._hostLView)}get injector(){return new Te(this._hostTNode,this._hostLView)}get parentInjector(){const t=xs(this._hostTNode,this._hostLView);if(Hl(t)){const n=zo(t,this._hostLView),r=$o(t);return new Te(n[_].data[r+8],n)}return new Te(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Ey(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-ye}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const s=zr(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,$r(this._hostTNode,s)),a}createComponent(t,n,r,o,i){const s=t&&!function No(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const p=n||{};a=p.index,r=p.injector,o=p.projectableNodes,i=p.environmentInjector||p.ngModuleRef}const c=s?t:new mi(j(t)),l=r||this.parentInjector;if(!i&&null==c.ngModule){const g=(s?l:this.parentInjector).get(_t,null);g&&(i=g)}const u=j(c.componentType??{}),d=zr(this._lContainer,u?.id??null),h=c.create(l,o,d?.firstChild??null,i);return this.insertImpl(h.hostView,a,$r(this._hostTNode,d)),h}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){const o=t._lView;if(function aI(e){return Be(e[me])}(o)){const a=this.indexOf(t);if(-1!==a)this.detach(a);else{const c=o[me],l=new _y(c,c[Ve],c[me]);l.detach(l.indexOf(t))}}const i=this._adjustIndex(n),s=this._lContainer;return ii(s,o,i,r),t.attachToViewContainerRef(),ap(ed(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Ey(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=ei(this._lContainer,n);r&&(ds(ed(this._lContainer),n),Ks(r[_],r))}detach(t){const n=this._adjustIndex(t,-1),r=ei(this._lContainer,n);return r&&null!=ds(ed(this._lContainer),n)?new ci(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Ey(e){return e[8]}function ed(e){return e[8]||(e[8]=[])}function by(e,t){let n;const r=t[e.index];return Be(r)?n=r:(n=$m(r,t,null,e),t[e.index]=n,na(t,n)),Iy(n,t,e,r),new _y(n,e,t)}let Iy=function Sy(e,t,n,r){if(e[Vt])return;let o;o=8&n.type?ee(r):function fT(e,t){const n=e[N],r=n.createComment(""),o=qe(t,e);return Kn(n,Xs(n,o),r,function M1(e,t){return e.nextSibling(t)}(n,o),!1),r}(t,n),e[Vt]=o},td=()=>!1;class nd{constructor(t){this.queryList=t,this.matches=null}clone(){return new nd(this.queryList)}setDirty(){this.queryList.setDirty()}}class rd{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){const s=n.getByIndex(i);o.push(this.queries[s.indexInDeclarationView].clone())}return new rd(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==cd(t,n).matches&&this.queries[n].setDirty()}}class Ty{constructor(t,n,r=null){this.flags=n,this.read=r,this.predicate="string"==typeof t?function CT(e){return e.split(",").map(t=>t.trim())}(t):t}}class od{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){const o=null!==n?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,null!==n?n.push(i):n=[i])}return null!==n?new od(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}
4838class id{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new id(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1&~this.metadata.flags){const n=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){const i=r[o];this.matchTNodeWithReadOption(t,n,mT(n,i)),this.matchTNodeWithReadOption(t,n,Os(n,t,i,!1,!1))}else r===cn?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Os(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const o=this.metadata.read;if(null!==o)if(o===Tt||o===Wt||o===cn&&4&n.type)this.addMatch(n.index,-2);else{const i=Os(n,t,o,!1,!1);null!==i&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function mT(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function vT(e,t,n,r){return-1===n?function yT(e,t){return 11&e.type?Fr(e,t):4&e.type?ia(e,t):null}(t,e):-2===n?function DT(e,t,n){return n===Tt?Fr(t,e):n===cn?ia(t,e):n===Wt?by(t,e):void 0}(e,t,r):Yn(e,e[_],n,t)}function Ay(e,t,n,r){const o=t[nn].queries[r];if(null===o.matches){const i=e.data,s=n.matches,a=[];for(let c=0;null!==s&&c<s.length;c+=2){const l=s[c];a.push(l<0?null:vT(t,i[l],s[c+1],n.metadata.read))}o.matches=a}return o.matches}function sd(e,t,n,r){const o=e.queries.getByIndex(n),i=o.matches;if(null!==i){const s=Ay(e,t,o,n);for(let a=0;a<i.length;a+=2){const c=i[a];if(c>0)r.push(s[a/2]);else{const l=i[a+1],u=t[-c];for(let d=ye;d<u.length;d++){const f=u[d];f[Oo]===f[me]&&sd(f[_],f,l,r)}if(null!==u[Tr]){const d=u[Tr];for(let f=0;f<d.length;f++){const h=d[f];sd(h[_],h,l,r)}}}}}return r}function xy(e,t,n){const r=H();return r.firstCreatePass&&(function Ry(e,t,n){null===e.queries&&(e.queries=new od),e.queries.track(new id(t,n))}(r,new Ty(e,t,n),-1),!(2&~t)&&(r.staticViewQueries=!0)),function Ny(e,t,n){const r=new Ql(!(4&~n));return function V1(e,t,n,r){const o=Gm(t);o.push(n),e.firstCreatePass&&qm(e).push(r,o.length-1)}(e,t,r,r.destroy),(t[nn]??=new rd).queries.push(new nd(r))-1}(r,v(),t)}function cd(e,t){return e.queries.getByIndex(t)}function Py(e,t){const n=e[_],r=cd(n,t);return r.crossesNgTemplate?sd(n,e,t,[]):Ay(n,e,r,t)}function yi(e,t){qt("NgSignals");const n=function N0(e){const t=Object.create(O0);t.value=e;const n=()=>(Pc(t),t.value);return n[Ft]=t,n}(e),r=n[Ft];return t?.equal&&(r.equal=t.equal),n.set=o=>Fh(r,o),n.update=o=>function x0(e,t){Mh()||Ph(),Fh(e,t(e.value))}(r,o),n.asReadonly=ky.bind(n),n}function ky(){const e=this[Ft];if(void 0===e.readonlyFn){const t=()=>this();t[Ft]=e,e.readonlyFn=t}return e.readonlyFn}function Y(e){let t=function Zy(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let o;if(It(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new w(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);const s=e;s.inputs=pa(e.inputs),s.inputTransforms=pa(e.inputTransforms),s.declaredInputs=pa(e.declaredInputs),s.outputs=pa(e.outputs);const a=o.hostBindings;a&&FT(e,a);const c=o.viewQuery,l=o.contentQueries;if(c&&RT(e,c),l&&PT(e,l),xT(e,o),Z0(e.outputs,o.outputs),It(o)&&o.data.animation){const u=e.data;u.animation=(u.animation||[]).concat(o.data.animation)}}const i=o.features;if(i)for(let s=0;s<i.length;s++){const a=i[s];a&&a.ngInherit&&a(e),a===Y&&(n=!1)}}t=Object.getPrototypeOf(t)}!function OT(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=To(o.hostAttrs,n=To(n,o.hostAttrs))}}(r)}function xT(e,t){for(const n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;const r=t.inputs[n];
4838if(void 0!==r&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n],null!==t.inputTransforms)){const o=Array.isArray(r)?r[0]:r;if(!t.inputTransforms.hasOwnProperty(o))continue;e.inputTransforms??={},e.inputTransforms[o]=t.inputTransforms[o]}}}function pa(e){return e===Lt?{}:e===$?[]:e}function RT(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function PT(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function FT(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}class er{}class UT{}class ud extends er{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Cy(this);const o=function Le(e,t){const n=e[tp]||null;if(!n&&!0===t)throw new Error(`Type ${Ie(e)} does not have '\u0275mod' property.`);return n}(t);this._bootstrapComponents=function lt(e){return e instanceof Function?e():e}(o.bootstrap),this._r3Injector=Dg(t,n,[{provide:er,useValue:this},{provide:Gr,useValue:this.componentFactoryResolver},...r],Ie(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class dd extends UT{constructor(t){super(),this.moduleType=t}create(t){return new ud(this.moduleType,t,[])}}let tr=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Wh(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Zt(e,t,n){return e[t]=n}function ve(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function un(e,t,n,r,o,i,s,a){const c=v(),l=H(),u=e+F,d=l.firstCreatePass?function YT(e,t,n,r,o,i,s,a,c){const l=t.consts,u=Ur(t,e,4,s||null,Bt(l,a));Pu(t,n,u,Bt(l,c)),Ms(t,u);const d=u.tView=Ru(2,u,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l,null);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,l,c,t,n,r,o,i,s):l.data[u];Ht(d,!1);const f=ev(l,c,d,e);Ho()&&Js(l,c,f,d),$e(f,c);const h=$m(f,c,f,d);return c[u]=h,na(c,h),function My(e,t,n){return td(e,t,n)}(h,d,c),Es(d)&&xu(l,c,d),null!=s&&Ou(c,d,a),un}let ev=function tv(e,t,n,r){return Ut(!0),t[N].createComment("")};function gt(e,t,n,r){const o=v();return ve(o,St(),t)&&(H(),Gt(ie(),o,e,t,n,r)),gt}function to(e,t,n,r,o,i){const a=function nr(e,t,n,r){const o=ve(e,t,n);return ve(e,t+1,r)||o}(e,function rn(){return x.lFrame.bindingIndex}(),n,o);return on(2),a?t+R(n)+r+R(o)+i:k}function Ea(e,t){return e<<17|t<<2}function xn(e){return e>>17&32767}function _d(e){return 2|e}function or(e){return(131068&e)>>2}function Ed(e,t){return-131069&e|t<<2}function bd(e){return 1|e}function Ov(e,t,n,r){const o=e[n+1],i=null===t;let s=r?xn(o):or(o),a=!1;for(;0!==s&&(!1===a||i);){const l=e[s+1];kA(e[s],t)&&(a=!0,e[s+1]=r?bd(l):_d(l)),s=r?xn(l):or(l)}a&&(e[n+1]=r?_d(o):bd(o))}function kA(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Cr(e,t)>=0}function Ne(e,t,n){const r=v();return ve(r,St(),t)&&function nt(e,t,n,r,o,i,s,a){const c=qe(t,n);let u,l=t.inputs;!a&&null!=l&&(u=l[r])?(Vu(e,n,u,r,o),Wn(t)&&function U1(e,t){const n=ct(t,e);16&n[M]||(n[M]|=64)}(n,t.index)):3&t.type&&(r=function H1(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,t.value||"",r):o,i.setProperty(c,r,o))}(H(),ie(),r,e,t,r[N],n,!1),Ne}function Id(e,t,n,r,o){const s=o?"class":"style";
4838Vu(e,n,t.inputs[s],s,r)}function ba(e,t){return function Nt(e,t,n,r){const o=v(),i=H(),s=on(2);i.firstUpdatePass&&function Hv(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[He()],s=function Bv(e,t){return t>=e.expandoStartIndex}(e,n);(function Gv(e,t){return!!(e.flags&(t?8:16))})(i,r)&&null===t&&!s&&(t=!1),t=function GA(e,t,n,r){const o=function Fl(e){const t=x.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=bi(n=Md(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=Md(o,e,t,n,r),null===i){let c=function qA(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==or(r))return e[xn(r)]}(e,t,r);void 0!==c&&Array.isArray(c)&&(c=Md(null,e,t,c[1],r),c=bi(c,t.attrs,r),function WA(e,t,n,r){e[xn(n?t.classBindings:t.styleBindings)]=r}(e,t,r,c))}else i=function ZA(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++)r=bi(r,e[i].hostAttrs,n);return bi(r,t.attrs,n)}(e,t,r)}return void 0!==i&&(r?t.residualClasses=i:t.residualStyles=i),n}(o,i,t,r),function PA(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=xn(s),c=or(s);e[r]=n;let u,l=!1;if(Array.isArray(n)?(u=n[1],(null===u||Cr(n,u)>0)&&(l=!0)):u=n,o)if(0!==c){const f=xn(e[a+1]);e[r+1]=Ea(f,a),0!==f&&(e[f+1]=Ed(e[f+1],r)),e[a+1]=function OA(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=Ea(a,0),0!==a&&(e[a+1]=Ed(e[a+1],r)),a=r;else e[r+1]=Ea(c,0),0===a?a=r:e[c+1]=Ed(e[c+1],r),c=r;l&&(e[r+1]=_d(e[r+1])),Ov(e,u,r,!0),Ov(e,u,r,!1),function FA(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&Cr(i,t)>=0&&(n[r+1]=bd(n[r+1]))}(t,u,e,r,i),s=Ea(a,c),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==k&&ve(o,s,t)&&function $v(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const c=e.data,l=c[a+1],u=function RA(e){return!(1&~e)}(l)?zv(c,t,n,o,or(l),s):void 0;Ia(u)||(Ia(i)||function xA(e){return!(2&~e)}(l)&&(i=zv(c,null,n,o,a,s)),function A1(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:Tn.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Tn.Important),e.setStyle(n,r,o,i))}}(r,s,Fo(He(),n),o,i))}(i,i.data[He()],o,o[N],e,o[s+1]=function XA(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Ie(function Sn(e){return e instanceof tm?e.changingThisBreaksApplicationSecurity:e}(e)))),e}(t,n),r,s)}(e,t,null,!0),ba}function Md(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(i=t[a],r=bi(r,i.hostAttrs,o),i!==e);)a++;return null!==e&&(n.directiveStylingLast=a),r}function bi(e,t,n){const r=n?1:2;let o=-1;if(null!==t)for(let i=0;i<t.length;i++){const s=t[i];"number"==typeof s?o=s:o===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),st(e,s,!!n||t[++i]))}return void 0===e?null:e}function zv(e,t,n,r,o,i){const s=null===t;let a;for(;o>0;){const c=e[o],l=Array.isArray(c),u=l?c[1]:c,d=null===u;let f=n[o+1];f===k&&(f=d?$:void 0);let h=d?al(f,r):u===r?f:void 0;if(l&&!Ia(h)&&(h=al(c,r)),Ia(h)&&(a=h,s))return a;const p=e[o+1];o=s?xn(p):or(p)}if(null!==t){let c=i?t.residualClasses:t.residualStyles;null!=c&&(a=al(c,r))}return a}function Ia(e){return void 0!==e}class lN{destroy(t){}updateValue(t,n){}swap(t,n){const r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){const s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}}function Sd(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function Td(e,t,n,r){return!(void 0===t||!t.has(r)||(e.attach(n,t.get(r)),t.delete(r),0))}function qv(e,t,n,r,o){if(Td(e,t,r,n(r,o)))e.updateValue(r,o);else{const i=e.create(r,o);e.attach(r,i)}}function Wv(e,t,n,r){const o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}class Zv{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const n=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),void 0!==this._vMap){const o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}}class dN{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-ye}}function Yv(e){return e}class hN{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}}class pN extends lN{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-ye}at(t){return this.getLView(t)[oe].$implicit}attach(t,n){const r=n[at];this.needsIndexUpdate||=t!==this.length,ii(this.lContainer,n,t,$r(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,function gN(e,t){return ei(e,t)}(this.lContainer,t)}create(t,n){const r=zr(this.lContainer,this.templateTNode.tView.ssrId);return oi(this.hostLView,this.templateTNode,new dN(this.lContainer,n,t),{dehydratedView:r})}destroy(t){Ks(t[_],t)}updateValue(t,n){this.getLView(t)[oe].$implicit=n}reset(){this.needsIndexUpdate=!1}
vendor: 6,510 bytes, line 4838
4838updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[oe].$index=t}getLView(t){return function mN(e,t){return Zm(e,t)}(this.lContainer,t)}}function Ad(e,t){return e[t]}function Nd(e,t){return ko(e,t)}function K(e,t,n,r){const o=v(),i=H(),s=F+e,a=o[N],c=i.firstCreatePass?function yN(e,t,n,r,o,i){const s=t.consts,c=Ur(t,e,2,r,Bt(s,o));return Pu(t,n,c,Bt(s,i)),null!==c.attrs&&da(c,c.attrs,!1),null!==c.mergedAttrs&&da(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(s,i,o,t,n,r):i.data[s],l=Jv(i,o,c,a,t,e);o[s]=l;const u=Es(c);return Ht(c,!0),Rm(a,l,c),!function Ci(e){return!(32&~e.flags)}(c)&&Ho()&&Js(i,o,l,c),0===function lI(){return x.lFrame.elementDepthCount}()&&$e(l,o),function uI(){x.lFrame.elementDepthCount++}(),u&&(xu(i,o,c),Nu(i,c,o)),null!==r&&Ou(o,c),K}function te(){let e=J();Ol()?function Rl(){x.lFrame.isParent=!1}():(e=e.parent,Ht(e,!1));const t=e;(function fI(e){return x.skipHydrationRootTNode===e})(t)&&function mI(){x.skipHydrationRootTNode=null}(),function dI(){x.lFrame.elementDepthCount--}();const n=H();return n.firstCreatePass&&(Ms(n,e),_l(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function AI(e){return!!(8&e.flags)}(t)&&Id(n,t,v(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function NI(e){return!!(16&e.flags)}(t)&&Id(n,t,v(),t.stylesWithoutHost,!1),te}function mt(e,t,n,r){return K(e,t,n,r),te(),mt}let Jv=(e,t,n,r,o,i)=>(Ut(!0),Ys(r,o,function eg(){return x.lFrame.currentNamespace}()));function Ma(){return v()}const uo="en-US";let sD=uo;function Oe(e,t,n,r){const o=v(),i=H(),s=J();return function Fd(e,t,n,r,o,i,s){const a=Es(r),l=e.firstCreatePass&&qm(e),u=t[oe],d=Gm(t);let f=!0;if(3&r.type||s){const g=qe(r,t),m=s?s(g):g,D=d.length,y=s?T=>s(ee(T[r.index])):r.index;let E=null;if(!s&&a&&(E=function wx(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;i<o.length-1;i+=2){const s=o[i];if(s===n&&o[i+1]===r){const a=t[Ir],c=o[i+2];return a.length>c?a[c]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==E)(E.__ngLastListenerFn__||E).__ngNextListenerFn__=i,E.__ngLastListenerFn__=i,f=!1;else{i=PD(r,t,u,i,!1);const T=n.listen(m,o,i);d.push(i,T),l&&l.push(o,y,D,D+1)}}else i=PD(r,t,u,i,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[o])){const g=p.length;if(g)for(let m=0;m<g;m+=2){const B=t[p[m]][p[m+1]].subscribe(i),W=d.length;d.push(i,B),l&&l.push(o,r.index,W,-(W+1))}}}(i,o,o[N],s,e,t,r),Oe}function RD(e,t,n,r){const o=V(null);try{return jt(6,t,n),!1!==n(r)}catch(i){return ra(e,i),!1}finally{jt(7,t,n),V(o)}}function PD(e,t,n,r,o){return function i(s){if(s===Function)return r;ai(e.componentOffset>-1?ct(e.index,t):t);let c=RD(t,n,r,s),l=i.__ngNextListenerFn__;for(;l;)c=RD(t,n,l,s)&&c,l=l.__ngNextListenerFn__;return o&&!1===c&&s.preventDefault(),c}}function dn(e=1){return function _I(e){return(x.lFrame.contextLView=function Bp(e,t){for(;e>0;)t=t[Mr],e--;return t}(e,x.lFrame.contextLView))[oe]}(e)}function xa(e,t,n){xy(e,t,n)}function Oa(e){const t=v(),n=H(),r=kl();Is(r+1);const o=cd(n,r);if(e.dirty&&function sI(e){return!(4&~e[M])}(t)===!(2&~o.metadata.flags)){if(null===o.matches)e.reset([]);else{const i=Py(t,r);e.reset(i,Eg),e.notifyOnChanges()}return!0}return!1}function Ra(){return function ad(e,t){return e[nn].queries[t].queryList}(v(),kl())}function ze(e,t=""){const n=v(),r=H(),o=e+F,i=r.firstCreatePass?Ur(r,o,1,t,null):r.data[o],s=JD(r,n,i,t,e);n[o]=s,Ho()&&Js(r,n,s,i),Ht(i,!1)}let JD=(e,t,n,r,o)=>(Ut(!0),function _u(e,t){return e.createText(t)}(t[N],r));function Vd(e,t,n,r,o){const i=v(),s=to(i,e,t,n,r,o);return s!==k&&function an(e,t,n){const r=Fo(t,e);!function Dm(e,t,n){e.setValue(t,n)}(e[N],r,n)}(i,He(),s),Vd}function jd(e,t,n,r,o){if(e=A(e),Array.isArray(e))for(let i=0;i<e.length;i++)jd(e[i],t,n,r,o);else{const i=H(),s=v(),a=J();let c=Gn(e)?e:A(e.provide);const l=Ep(e),u=1048575&a.providerIndexes,d=a.directiveStart,f=a.providerIndexes>>20;if(Gn(e)||!e.multi){const h=new Uo(l,o,C),p=Hd(c,t,o?u:u+f,d);-1===p?(zl(Ns(a,s),i,c),Bd(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=Hd(c,t,u+f,d),p=Hd(c,t,u,u+f),m=p>=0&&n[p];if(o&&!m||!o&&!(h>=0&&n[h])){zl(Ns(a,s),i,c);const D=function qx(e,t,n,r,o){const i=new Uo(e,n,C);return i.multi=[],i.index=t,i.componentProviders=0,uC(i,o,r&&!n),i}(o?Gx:zx,n.length,o,r,l);!o&&m&&(n[p].providerFactory=D),Bd(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(D),s.push(D)}else Bd(i,e,h>-1?h:p,uC(n[o?p:h],l,!o&&r));!o&&r&&m&&n[p].componentProviders++}}}function Bd(e,t,n,r){const o=Gn(t),i=function Fb(e){return!!e.useClass}(t);if(o||i){const c=(i?A(t.useClass):t).prototype.ngOnDestroy;if(c){const l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const u=l.indexOf(n);-1===u?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function uC(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Hd(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function zx(e,t,n,r){return Ud(this.multi,[])}function Gx(e,t,n,r){const o=this.multi;let i;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=Yn(n,n[_],this.providerFactory.index,r);i=a.slice(0,s),Ud(o,i);for(let c=s;c<a.length;c++)i.push(a[c])}else i=[],Ud(o,i);return i}function Ud(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function le(e,t=[]){return n=>{n.providersResolver=(r,o)=>function $x(e,t,n){const r=H();if(r.firstCreatePass){const o=It(e);jd(n,r.data,r.blueprint,o,!0),jd(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}function hC(e,t,n,r,o,i){const s=t+n;return ve(e,s,o)?Zt(e,s+1,i?r.call(i,o):r(o)):function xi(e,t){const n=e[t];return n===k?void 0:n}(e,s+1)}function $d(e,t){const n=H();let r;const o=e+F;n.firstCreatePass?(r=function sO(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=$n(r.type)),a=Xe(C);try{const c=As(!1),l=i();return As(c),function Ax(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,v(),o,l),l}finally{Xe(a)}}function zd(e,t,n){const r=e+F,o=v(),i=function Ar(e,t){return e[t]}(o,r);return function Oi(e,t){return e[_].data[t].pure}(o,r)?hC(o,We(),t,i.transform,n,i):i.transform(n)}const LC=new b(""),La=new b("");let Xd,Yd=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZ
4838oneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Xd||(function iR(e){Xd=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Q.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n()},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}static{this.\u0275fac=function(r){return new(r||e)(O(Q),O(Kd),O(La))}}static{this.\u0275prov=L({token:e,factory:e.\u0275fac})}}return e})(),Kd=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return Xd?.findTestabilityInTree(this,n,r)??null}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();function Va(e){return!!e&&"function"==typeof e.then}function VC(e){return!!e&&"function"==typeof e.subscribe}const sR=new b("");let Jd=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=I(sR,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=o();if(Va(i))n.push(i);else if(VC(i)){const s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const jC=new b("");function UC(e,t){return Array.isArray(t)?t.reduce(UC,e):{...e,...t}}let On=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=I(wg),this.afterRenderEffectManager=I(hi),this.externalTestViews=new Set,this.beforeRender=new fr,this.afterTick=new fr,this.componentTypes=[],this.components=[],this.isStable=I(tr).hasPendingTasks.pipe(Xt(n=>!n)),this._injector=I(_t)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof ay;if(!this._injector.get(Jd).done)throw!o&&function zn(e){const t=j(e)||Me(e)||Pe(e);return null!==t&&t.standalone}(n),new w(405,!1);let s;s=o?n:this._injector.get(Gr).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function aR(e){return e.isBoundToModule}(s)?void 0:this._injector.get(er),l=s.create(Fe.NULL,[],r||s.selector,a),u=l.location.nativeElement,d=l.injector.get(LC,null);return d?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),ja(this.components,l),d?.unregisterApplication(u)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new w(101,!1);const r=V(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,V(r)}}detectChangesInAttachedViews(n){let r=0;const o=this.afterRenderEffectManager;for(;;){if(r===Km)throw new w(103,!1);if(n){const i=0===r;this.beforeRender.next(i);for(let{_lView:s,notifyErrorHandler:a}of this._views)lR(s,i,a)}if(r++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:i})=>ef(i))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:i})=>ef(i))))break}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;ja(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(jC,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEac
4838h(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>ja(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new w(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function ja(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function lR(e,t,n){!t&&!ef(e)||function uR(e,t,n){let r;n?(r=0,e[M]|=1024):r=64&e[M]?0:1,oa(e,t,r)}(e,n,t)}function ef(e){return Al(e)}let pR=(()=>{class e{constructor(){this.zone=I(Q),this.applicationRef=I(On)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function gR(){const e=I(Q),t=I(zt);return n=>e.runOutsideAngular(()=>t.handleError(n))}let yR=(()=>{class e{constructor(){this.subscription=new ht,this.initialized=!1,this.zone=I(Q),this.pendingTasks=I(tr)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Q.assertNotInAngularZone(),queueMicrotask(()=>{null!==n&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Q.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const fn=new b("",{providedIn:"root",factory:()=>I(fn,U.Optional|U.SkipSelf)||function vR(){return typeof $localize<"u"&&$localize.locale||uo}()}),tf=new b("");let qC=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function YS(e="zone.js",t){return"noop"===e?new py:"zone.js"===e?new Q(t):e}(r?.ngZone,function GC(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function zT(e,t,n){return new ud(e,t,n)}(n.moduleType,this.injector,function zC(e){return[{provide:Q,useFactory:e},{provide:wr,multi:!0,useFactory:()=>{const t=I(pR,{optional:!0});return()=>t.initialize()}},{provide:wr,multi:!0,useFactory:()=>{const t=I(yR);return()=>{t.initialize()}}},{provide:wg,useFactory:gR}]}(()=>o)),s=i.injector.get(zt,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:c=>{s.handleError(c)}});i.onDestroy(()=>{ja(this._modules,i),a.unsubscribe()})}),function HC(e,t,n){try{const r=n();return Va(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(Jd);return a.runInitializers(),a.donePromise.then(()=>(function aD(e){"string"==typeof e&&(sD=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(fn,uo)||uo),this._moduleDoBootstrap(i),i))})})}bootstrapModule(n,r=[]){const o=UC({},r);return function hR(e,t,n){const r=new dd(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(On);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new w(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new w(404,!1);
4838this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(tf,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(r){return new(r||e)(O(Fe))}}static{this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})(),Rn=null;const WC=new b("");function ZC(e,t,n=[]){const r=`Platform: ${t}`,o=new b(r);return(i=[])=>{let s=nf();if(!s||s.injector.get(WC,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function wR(e){if(Rn&&!Rn.get(WC,!1))throw new w(400,!1);(function BC(){!function A0(e){Rh=e}(()=>{throw new w(600,!1)})})(),Rn=e;const t=e.get(qC);(function YC(e){e.get($g,null)?.forEach(n=>n())})(e)}(function QC(e=[],t){return Fe.create({name:t,providers:[{provide:pl,useValue:"platform"},{provide:tf,useValue:new Set([()=>Rn=null])},...e]})}(a,r))}return function _R(e){const t=nf();if(!t)throw new w(401,!1);return t}()}}function nf(){return Rn?.get(qC)??null}let Ha=(()=>{class e{static{this.__NG_ELEMENT_ID__=bR}}return e})();function bR(e){return function IR(e,t,n){if(Wn(e)&&!n){const r=ct(e.index,t);return new ci(r,r)}return 47&e.type?new ci(t[he],t):null}(J(),v(),!(16&~e))}const LR=ZC(null,"core",[]);let VR=(()=>{class e{constructor(n){}static{this.\u0275fac=function(r){return new(r||e)(O(On))}}static{this.\u0275mod=tn({type:e})}static{this.\u0275inj=kt({})}}return e})();function Tw(e){const t=V(null);try{return e()}finally{V(t)}}let Aw=null;function Vi(){return Aw}class CP{}const hn=new b("");function Vw(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}const _f=/\s+/,jw=[];let Bw=(()=>{class e{constructor(n,r){this._ngEl=n,this._renderer=r,this.initialClasses=jw,this.stateMap=new Map}set klass(n){this.initialClasses=null!=n?n.trim().split(_f):jw}set ngClass(n){this.rawClass="string"==typeof n?n.trim().split(_f):n}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(const r of n)this._updateState(r,!0);else if(null!=n)for(const r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){const o=this.stateMap.get(n);void 0!==o?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const n of this.stateMap){const r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){(n=n.trim()).length>0&&n.split(_f).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static{this.\u0275fac=function(r){return new(r||e)(C(Tt),C(ln))}}static{this.\u0275dir=P({type:e,selectors:[["","ngClass",""]],inputs:{klass:[ue.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return e})(),$w=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new lF,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){zw("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){zw("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(C(Wt),C(cn))}}static{this.\u0275dir=P({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThe
4838n:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return e})();class lF{constructor(){this.$implicit=null,this.ngIf=null}}function zw(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Ie(t)}'.`)}class Ef{constructor(t,n){this._viewContainerRef=t,this._templateRef=n,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let ac=(()=>{class e{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(n){this._ngSwitch=n,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(n){this._defaultViews.push(n)}_matchCase(n){const r=n===this._ngSwitch;return this._lastCasesMatched||=r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(n){if(this._defaultViews.length>0&&n!==this._defaultUsed){this._defaultUsed=n;for(const r of this._defaultViews)r.enforceState(n)}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=P({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}}return e})(),Gw=(()=>{class e{constructor(n,r,o){this.ngSwitch=o,o._addCase(),this._view=new Ef(n,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static{this.\u0275fac=function(r){return new(r||e)(C(Wt),C(cn),C(ac,9))}}static{this.\u0275dir=P({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}}return e})();class fF{createSubscription(t,n){return Tw(()=>t.subscribe({next:n,error:r=>{throw r}}))}dispose(t){Tw(()=>t.unsubscribe())}}class hF{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}}const pF=new hF,gF=new fF;let Ww=(()=>{class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(Va(n))return pF;if(VC(n))return gF;throw function Rt(e,t){return new w(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(r){return new(r||e)(C(Ha,16))}}static{this.\u0275pipe=et({name:"async",type:e,pure:!1,standalone:!0})}}return e})(),Qw=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=tn({type:e})}static{this.\u0275inj=kt({})}}return e})();const Yw="browser";function Kw(e){return"server"===e}class Xw{}class dk extends CP{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Sf extends dk{static makeCurrent(){!function DP(e){Aw??=e}(new Sf)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function fk(){return Ui=Ui||document.querySelector("base"),Ui?Ui.getAttribute("href"):null}();return null==n?null:function hk(e){return new URL(e,document.baseURI).pathname}(n)}resetBaseElement(){Ui=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Vw(document.cookie,t)}}let Ui=null,gk=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=L({token:e,factory:e.\u0275fac})}}return e})();const Tf=new b("");let a_=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEac
vendor: 8,740 bytes, line 4838
4838h(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new w(5101,!1);return this._eventNameToPlugin.set(n,r),r}static{this.\u0275fac=function(r){return new(r||e)(O(Tf),O(Q))}}static{this.\u0275prov=L({token:e,factory:e.\u0275fac})}}return e})();class c_{constructor(t){this._doc=t}}const Af="ng-app-id";let l_=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Kw(i),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${Af}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){const o=this.styleRef;if(o.has(n)){const i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(Af),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Af,this.appId),n.appendChild(s),s}}addStyleToHost(n,r){const o=this.getStyleElement(n,r),i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||e)(O(hn),O(Vs),O(zg,8),O(Mn))}}static{this.\u0275prov=L({token:e,factory:e.\u0275fac})}}return e})();const Nf={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},xf=/%COMP%/g,Dk=new b("",{providedIn:"root",factory:()=>!0});function d_(e,t){return t.map(n=>n.replace(xf,e))}let f_=(()=>{class e{constructor(n,r,o,i,s,a,c,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Kw(a),this.defaultRenderer=new Of(n,s,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ct.ShadowDom&&(r={...r,encapsulation:Ct.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof p_?o.applyToHost(n):o instanceof Rf&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Ct.Emulated:i=new p_(c,l,r,this.appId,u,s,a,d);break;case Ct.ShadowDom:return new Ek(c,l,n,r,s,a,this.nonce,d);default:i=new Rf(c,l,r,u,s,a,d)}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||e)(O(a_),O(l_),O(Vs),O(Dk),O(hn),O(Mn),O(Q),O(zg))}}static{this.\u0275prov=L({token:e,factory:e.\u0275fac})}}return e})();class Of{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(Nf[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(h_(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(h_(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?this.doc.querySelector(t):t;if(!r)throw new w(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=Nf[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=Nf[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Tn.DashCase|Tn.Important)?t.style.setProperty(n,r,o&Tn.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Tn.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){null!=t&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if("string"==typeof t&&!(t=Vi().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if("__ngUnwrap__"===n)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))&&n.preventDefault()}}}function h_(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class Ek extends Of{constructor(t,n,r,o,i,s,a,c){super(t,i,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=d_(o.id,o.styles);for(const u of l){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Rf extends Of{constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=c?d_(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class p_ extends Rf{constructor(t,n,r,o,i,s,a,c){const l=o+"-"+r.id;super(t,n,r,i,s,a,c,l),this.contentAttr=function Ck(e){return"_ngcontent-%COMP%".replace(xf,e)}(l),this.hostAttr=function wk(e){return"_nghost-%COMP%".replace(xf,e)}(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let bk=(()=>{class e extends c_{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}static{this.\u0275fac=function(r){return new(r||e)(O(hn))}}static{this.\u0275prov=L({token:e,factory:e.\u0275fac})}}return e})();const g_=["alt","control","meta","shift"],Ik={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Mk={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let Sk=(()=>{class e extends c_{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Vi().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),g_.forEach(l=>{const u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=i,0!=r.length||0===i.length)return null;const c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=Ik[n.key]||n.key,i="";return r.indexOf("code.")>
4838-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),g_.forEach(s=>{s!==o&&(0,Mk[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}static{this.\u0275fac=function(r){return new(r||e)(O(hn))}}static{this.\u0275prov=L({token:e,factory:e.\u0275fac})}}return e})();const xk=ZC(LR,"browser",[{provide:Mn,useValue:Yw},{provide:$g,useValue:function Tk(){Sf.makeCurrent()},multi:!0},{provide:hn,useFactory:function Nk(){return function yM(e){Jl=e}(document),document},deps:[]}]),Ok=new b(""),v_=[{provide:La,useClass:class pk{addToWindow(t){Z.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new w(5103,!1);return i},Z.getAllAngularTestabilities=()=>t.getAllTestabilities(),Z.getAllAngularRootElements=()=>t.getAllRootElements(),Z.frameworkStabilizers||(Z.frameworkStabilizers=[]),Z.frameworkStabilizers.push(r=>{const o=Z.getAllAngularTestabilities();let i=o.length;const s=function(){i--,0==i&&r()};o.forEach(a=>{a.whenStable(s)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?Vi().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:LC,useClass:Yd,deps:[Q,Kd,La]},{provide:Yd,useClass:Yd,deps:[Q,Kd,La]}],D_=[{provide:pl,useValue:"root"},{provide:zt,useFactory:function Ak(){return new zt},deps:[]},{provide:Tf,useClass:bk,multi:!0,deps:[hn,Q,Mn]},{provide:Tf,useClass:Sk,multi:!0,deps:[hn]},f_,l_,a_,{provide:ly,useExisting:f_},{provide:Xw,useClass:gk,deps:[]},[]];let Rk=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Vs,useValue:n.appId}]}}static{this.\u0275fac=function(r){return new(r||e)(O(Ok,12))}}static{this.\u0275mod=tn({type:e})}static{this.\u0275inj=kt({providers:[...D_,...v_],imports:[Qw,VR]})}}return e})();const Pf={now:()=>(Pf.delegate||Date).now(),delegate:void 0};class Lk extends fr{constructor(t=1/0,n=1/0,r=Pf){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){const{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();const n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){const{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){const s=n.now();let a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}}function Pn(e){return this instanceof Pn?(this.v=e,this):new Pn(e)}function M_(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function Vf(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){!function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}(a,c,(s=e[i](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const S_=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function T_(e){return ge(e?.then)}function A_(e){return ge(e[$c])}function N_(e){return Symbol.asyncIterator&&ge(e?.[Symbol.asyncIterator])}function x_(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invali
4838d object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const O_=function u2(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function R_(e){return ge(e?.[O_])}function P_(e){return function I_(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function s(h){return function(p){return Promise.resolve(p).then(h,d)}}),o[Symbol.asyncIterator]=function(){return this},o;function a(h,p){r[h]&&(o[h]=function(g){return new Promise(function(m,D){i.push([h,g,m,D])>1||c(h,g)})},p&&(o[h]=p(o[h])))}function c(h,p){try{!function l(h){h.value instanceof Pn?Promise.resolve(h.value.v).then(u,d):f(i[0][2],h)}(r[h](p))}catch(g){f(i[0][3],g)}}function u(h){c("next",h)}function d(h){c("throw",h)}function f(h,p){h(p),i.shift(),i.length&&c(i[0][0],i[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield Pn(n.read());if(o)return yield Pn(void 0);yield yield Pn(r)}}finally{n.releaseLock()}})}function F_(e){return ge(e?.getReader)}function Fn(e){if(e instanceof ke)return e;if(null!=e){if(A_(e))return function d2(e){return new ke(t=>{const n=e[$c]();if(ge(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(S_(e))return function f2(e){return new ke(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}(e);if(T_(e))return function h2(e){return new ke(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Hh)})}(e);if(N_(e))return k_(e);if(R_(e))return function p2(e){return new ke(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(F_(e))return function g2(e){return k_(P_(e))}(e)}throw x_(e)}function k_(e){return new ke(t=>{(function m2(e,t){var n,r,o,i;return function E_(e,t,n,r){return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):function o(i){return i instanceof n?i:new n(function(s){s(i)})}(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=M_(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function kn(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function dc(e,t,n=1/0){return ge(t)?dc((r,o)=>Xt((i,s)=>t(r,i,o,s))(Fn(e(r,o))),n):("number"==typeof t&&(n=t),Cn((r,o)=>function y2(e,t,n,r,o,i,s,a){const c=[];let l=0,u=0,d=!1;const f=()=>{d&&!c.length&&!l&&t.complete()},h=g=>l<r?p(g):c.push(g),p=g=>{i&&t.next(g),l++;let m=!1;Fn(n(g,u++)).subscribe(Kt(t,D=>{o?.(D),i?h(D):t.next(D)},()=>{m=!0},void 0,()=>{if(m)try{for(l--;c.length&&l<r;){const D=c.shift();s?kn(t,s,()=>p(D)):p(D)}f()}catch(D){t.error(D)}}))};return e.subscribe(Kt(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}const Bf=new ke(e=>e.complete());function L_(e){return e&&ge(e.schedule)}function Hf(e){return e[e.length-1]}function V_(e){return L_(Hf(e))?e.pop():void 0}function j_(e,t=0){return Cn((n,r)=>{n.subscribe(Kt(r,o=>kn(r,e,()=>r.next(o),t),()=>kn(r,e,()=>r.complete(),t),o=>kn(r,e,()=>r.error(o),t)))})}function B_(e,t=0){return Cn((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function H_(e,t){if(!e)throw new Error("Iterable cannot be null");return new ke(n=>{kn(n,t,()=>{const r=e[Symbol.asyncIterator]();kn(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function fc(e,t){return t?function S2(e,t){if(null!=e){if(A_(e))return function _2(e,t){return Fn(e).pipe(B_(t),j_(t))}(e,t);if(S_(e))return function b2(e,t){return new ke(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(T_(e))return function E2(e,t){return Fn(e).pipe(B_(t),j_(t))}(e,t);if(N_(e))return H_(e,t);if(R_(e))return function I2(e,t){return new ke(n=>{let r;return kn(n,t,()=>{r=e[O_](),kn(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>ge(r?.return)&&r.return()})}(e,t);if(F_(e))return function M2(e,t){return H_(P_(e),t)}(e,t)}throw x_(e)}(e,t):Fn(e)}function U_(e,t){return Cn((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(Kt(r,c=>{o?.unsubscribe();let l=0;const u=i++;Fn(e(c,u)).subscribe(o=Kt(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}const hc={schedule(e,t){const n=setTimeout(e,t);return()=>clearTimeout(n)},scheduleBeforeRender(e){if(typeof window>"u")return hc.schedule(e,0);if(typeof window.requestAnimationFrame>"u")return hc.schedule(e,16);const t=window.requestAnimationFrame(e);return()=>window.cancelAnimationFrame(t)}};let Uf;function L2(e,t,n){let r=n;return function N2(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&t.some((o,i)=>!("*"===o||!function O2(e,t){if(!Uf){const n=Element.prototype;Uf=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}
vendor: 9,411 bytes, line 4838
4838return e.nodeType===Node.ELEMENT_NODE&&Uf.call(e,t)}(e,o)||(r=i,0))),r}class j2{constructor(t,n){this.componentFactory=n.get(Gr).resolveComponentFactory(t)}create(t){return new B2(this.componentFactory,t)}}class B2{constructor(t,n){this.componentFactory=t,this.injector=n,this.eventEmitters=new Lk(1),this.events=this.eventEmitters.pipe(U_(r=>function T2(...e){const t=V_(e),n=function w2(e,t){return"number"==typeof Hf(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?Fn(r[0]):function v2(e=1/0){return dc($h,e)}(n)(fc(r,t)):Bf}(...r))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:r})=>r)),this.ngZone=this.injector.get(Q),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=hc.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,n,r){this.runInZone(()=>{r&&(n=r.call(this.componentRef?.instance,n)),null!==this.componentRef?function R2(e,t){return e===t||e!=e&&t!=t}(n,this.getInputValue(t))&&(void 0!==n||!this.unchangedInputs.has(t))||(this.recordInputChange(t,n),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=n,this.scheduleDetectChanges()):this.initialInputValues.set(t,n)})}initializeComponent(t){const n=Fe.create({providers:[],parent:this.injector}),r=function k2(e,t){const n=e.childNodes,r=t.map(()=>[]);let o=-1;t.some((i,s)=>"*"===i&&(o=s,!0));for(let i=0,s=n.length;i<s;++i){const a=n[i],c=L2(a,t,o);-1!==c&&r[c].push(a)}return r}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(n,r,t),this.viewChangeDetectorRef=this.componentRef.injector.get(Ha),this.implementsOnChanges=function x2(e){return"function"==typeof e}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(On).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t,transform:n})=>{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t),n)}),this.initialInputValues.clear()}initializeOutputs(t){const n=this.componentFactory.outputs.map(({propName:r,templateName:o})=>t.instance[r].pipe(Xt(s=>({name:o,value:s}))));this.eventEmitters.next(n)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const n=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(n)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=hc.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,n){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const r=this.inputChanges[t];if(r)return void(r.currentValue=n);const o=this.unchangedInputs.has(t),i=o?void 0:this.getInputValue(t);this.inputChanges[t]=new xp(i,n,o)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class H2 extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function $_(...e){return fc(e,V_(e))}function z_(e,t){return Cn((n,r)=>{let o=0;n.subscribe(Kt(r,i=>e.call(t,i,o++)&&r.next(i)))})}function G_(e){return Cn((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}class pc{}class gc{}class ft{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?"string"==typeof t?this.lazyInit=()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof ft?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){const n=new ft;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof ft?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){const n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);const o=("a"===t.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=t.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}setHeaderEntries(t,n){const r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class z2{encodeKey(t){return q_(t)}encodeValue(t){return q_(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const q2=/%(\d[a-f0-9])/gi,W2={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function q_(e){return encodeURIComponent(e).replace(q2,(t,n)=>W2[n]??t)}function mc(e){return`${e}`}class mn{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new z2,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function G2(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n],o=Array.isArray(r)?r.map(mc):[mc(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){const n=[];return Object.keys(t).forEach(r=>{const o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new mn({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(mc(t.value)),this.map.set(t.param,n);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const o=r.indexOf(mc(t.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class Z2{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}
4838keys(){return this.map.keys()}}function W_(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Z_(e){return typeof Blob<"u"&&e instanceof Blob}function Q_(e){return typeof FormData<"u"&&e instanceof FormData}class zi{constructor(t,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function Q2(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new ft,this.context??=new Z2,this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":a<n.length-1?"&":"")+s}}else this.params=new mn,this.urlWithParams=n}serializeBody(){return null===this.body?null:"string"==typeof this.body||W_(this.body)||Z_(this.body)||Q_(this.body)||function Y2(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}(this.body)?this.body:this.body instanceof mn?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Q_(this.body)?null:Z_(this.body)?this.body.type||null:W_(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof mn?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){const n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.transferCache??this.transferCache,s=void 0!==t.body?t.body:this.body,a=t.withCredentials??this.withCredentials,c=t.reportProgress??this.reportProgress;let l=t.headers||this.headers,u=t.params||this.params;const d=t.context??this.context;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce((f,h)=>f.set(h,t.setHeaders[h]),l)),t.setParams&&(u=Object.keys(t.setParams).reduce((f,h)=>f.set(h,t.setParams[h]),u)),new zi(n,r,s,{params:u,headers:l,context:d,reportProgress:c,responseType:o,withCredentials:a,transferCache:i})}}var Ln=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Ln||{});class $f{constructor(t,n=Gi.Ok,r="OK"){this.headers=t.headers||new ft,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class yc extends $f{constructor(t={}){super(t),this.type=Ln.ResponseHeader}clone(t={}){return new yc({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class ar extends $f{constructor(t={}){super(t),this.type=Ln.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new ar({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class mo extends $f{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}var Gi=function(e){return e[e.Continue=100]="Continue",e[e.SwitchingProtocols=101]="SwitchingProtocols",e[e.Processing=102]="Processing",e[e.EarlyHints=103]="EarlyHints",e[e.Ok=200]="Ok",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MultiStatus=207]="MultiStatus",e[e.AlreadyReported=208]="AlreadyReported",e[e.ImUsed=226]="ImUsed",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.Unused=306]="Unused",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.LengthRequired=411]="LengthRequired",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.UriTooLong=414]="UriTooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.ImATeapot=418]="ImATeapot",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.UnprocessableEntity=422]="UnprocessableEntity",e[e.Locked=423]="Locked",e[e.FailedDependency=424]="FailedDependency",e[e.TooEarly=425]="TooEarly",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.PreconditionRequired=428]="PreconditionRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",e[e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HttpVersionNotSupported=505]="HttpVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.LoopDetected=508]="LoopDetected",e[e.NotExtended=510]="NotExtended",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",e}(Gi||{});function zf(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}let Y_=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof zi)i=n;else{let c,l;c=o.headers instanceof ft?o.headers:new ft(o.headers),o.params&&(l=o.params instanceof mn?o.params:new mn({fromObject:o.params})),i=new zi(n,r,void 0!==o.body?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}const s=$_(i).pipe(function $2(e,t){return ge(t)?dc(e,t,1):dc(e,1)}(c=>this.handler.handle(c)));if(n instanceof zi||"events"===o.observe)return s;const a=s.pipe(z_(c=>c instanceof ar));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(Xt(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(Xt(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(Xt(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return a.pipe(Xt(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new mn).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,zf(o,r))}post(n,r,o={}){return this.request("POST",n,zf(o,r))}put(n,r,o={}){return this.request("PUT",n,zf(o,r))}static{this.\u0275fac=function(r){return new(r||e)(O(pc))}}static{this.\u0275prov=L({token:e,factory:e.\u0275fac})}}return e})();function X_(e,t){return t(e)}function t3(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}const r3=new b(""),qi=new b(""),J_=new b(""),eE=new b("");function o3(){let e=null;return(t,n)=>{null===e&&(e=(I(r3,{optional:!0})??[]).reduceRight(t3,X_));const r=I(tr),o=r.add();return e(t,n).pipe(G_(()=>r.remove(o)))}}let tE=(()=>{class e extends pc{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=I(tr);const o=I(eE,{optional:!0});this.backend=o??n}handle(n){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(qi),...this.injector.get(J_,[])]));this.chain=o.reduceRight((i,s)=>function n3(e,t,n){return(r,o)=>function vl(e,t){e instanceof _r&&e.assertNotDestroyed();const r=_n(e),o=Xe(void 0);try{return t()}finally{_n(r),Xe(o)}}(n,()=>t(r,i=>e(i,o)))}(i,s,this.injector),X_)}const r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(G_(()=>this.pendingTasks.remove(r)))}static{this.\u0275fac=function(r){return new(r||e)(O(gc),O(_t))}}static{this.\u0275prov=L({token:e,factory:e.\u0275fac})}}return e})();const l3=/^\)\]\}',?\n/;let rE=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new w(-2800,!1);const r=this.xhrFactory;return(r.\u0275loadImpl?fc(r.\u0275loadImpl()):$_(null)).pipe(U_(()=>new ke(i=>{const s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEac
4838h((g,m)=>s.setRequestHeader(g,m.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const g=n.detectContentTypeHeader();null!==g&&s.setRequestHeader("Content-Type",g)}if(n.responseType){const g=n.responseType.toLowerCase();s.responseType="json"!==g?g:"text"}const a=n.serializeBody();let c=null;const l=()=>{if(null!==c)return c;const g=s.statusText||"OK",m=new ft(s.getAllResponseHeaders()),D=function u3(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||n.url;return c=new yc({headers:m,status:s.status,statusText:g,url:D}),c},u=()=>{let{headers:g,status:m,statusText:D,url:y}=l(),E=null;m!==Gi.NoContent&&(E=typeof s.response>"u"?s.responseText:s.response),0===m&&(m=E?Gi.Ok:0);let T=m>=200&&m<300;if("json"===n.responseType&&"string"==typeof E){const B=E;E=E.replace(l3,"");try{E=""!==E?JSON.parse(E):null}catch(W){E=B,T&&(T=!1,E={error:W,text:E})}}T?(i.next(new ar({body:E,headers:g,status:m,statusText:D,url:y||void 0})),i.complete()):i.error(new mo({error:E,headers:g,status:m,statusText:D,url:y||void 0}))},d=g=>{const{url:m}=l(),D=new mo({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:m||void 0});i.error(D)};let f=!1;const h=g=>{f||(i.next(l()),f=!0);let m={type:Ln.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(m.total=g.total),"text"===n.responseType&&s.responseText&&(m.partialText=s.responseText),i.next(m)},p=g=>{let m={type:Ln.UploadProgress,loaded:g.loaded};g.lengthComputable&&(m.total=g.total),i.next(m)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",h),null!==a&&s.upload&&s.upload.addEventListener("progress",p)),s.send(a),i.next({type:Ln.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",h),null!==a&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(r){return new(r||e)(O(Xw))}}static{this.\u0275prov=L({token:e,factory:e.\u0275fac})}}return e})();const Wf=new b(""),oE=new b("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),iE=new b("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class sE{}let h3=(()=>{class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Vw(n,this.cookieName),this.lastCookieString=n),this.lastToken}static{this.\u0275fac=function(r){return new(r||e)(O(hn),O(Mn),O(oE))}}static{this.\u0275prov=L({token:e,factory:e.\u0275fac})}}return e})();function p3(e,t){const n=e.url.toLowerCase();if(!I(Wf)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t(e);const r=I(sE).getToken(),o=I(iE);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var Vn=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(Vn||{});function cr(e,t){return{\u0275kind:e,\u0275providers:t}}function g3(...e){const t=[Y_,rE,tE,{provide:pc,useExisting:tE},{provide:gc,useExisting:rE},{provide:qi,useValue:p3,multi:!0},{provide:Wf,useValue:!0},{provide:sE,useClass:h3}];for(const n of e)t.push(...n.\u0275providers);return function Ao(e){return{\u0275providers:e}}(t)}const aE=new b("");let y3=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=tn({type:e})}static{this.\u0275inj=kt({providers:[g3(cr(Vn.LegacyInterceptors,[{provide:aE,useFactory:o3},{provide:qi,useExisting:aE,multi:!0}]))]})}}return e})();class E3 extends ht{constructor(t,n){super()}schedule(t,n=0){return this}}const Dc={setInterval(e,t,...n){const{delegate:r}=Dc;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){const{delegate:t}=Dc;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};
4838class Wi{constructor(t,n=Wi.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}}Wi.now=Pf.now;const gE=new class I3 extends Wi{constructor(t,n=Wi.now){super(t,n),this.actions=[],this._active=!1}flush(t){const{actions:n}=this;if(this._active)return void n.push(t);let r;this._active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}}(class b3 extends E3{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;const o=this.id,i=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return Dc.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return n;null!=n&&Dc.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(t,n);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let o,r=!1;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,es(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}}),M3=gE;var Zf=function(e){return e[e.MinValue=0]="MinValue",e[e.MaxValue=5]="MaxValue",e}(Zf||{}),Dt=function(e){return e.Five="FIVE",e.Four="FOUR",e.Three="THREE",e.Two="TWO",e.One="ONE",e.Na="NA",e}(Dt||{}),Cc=function(e){return e.Checked="favourite-solid",e.Unchecked="favourite-hollow",e}(Cc||{});class wc{static getInitialRatings(){return Array.from({length:Zf.MaxValue-Zf.MinValue},()=>({type:Cc.Unchecked}))}static getEvaluationFromRating(t){switch(t){case 5:return Dt.Five;case 4:return Dt.Four;case 3:return Dt.Three;case 2:return Dt.Two;case 1:return Dt.One;default:return Dt.Na}}static getRatingFromEvaluation(t){switch(t){case Dt.Five:return 5;case Dt.Four:return 4;case Dt.Three:return 3;case Dt.Two:return 2;case Dt.One:return 1;default:return 0}}}let _c=(()=>{class e{constructor(){this.ratings=wc.getInitialRatings(),this.selectedRating=yi(0),this.showModal=yi(!1),this.submitLoading=yi(!1),this.feedbackText=yi("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),mE=(()=>{class e{constructor(n,r){this.document=n,this.platformId=r,this.documentIsAccessible=function kF(e){return e===Yw}(this.platformId)}static getCookieRegExp(n){const r=n.replace(/([\[\]{}()|=;+?,.*^$])/gi,"\\$1");return new RegExp("(?:^"+r+"|;\\s*"+r+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(n){try{return decodeURIComponent(n)}catch{return n}}check(n){return!!this.documentIsAccessible&&(n=encodeURIComponent(n),e.getCookieRegExp(n).test(this.document.cookie))}get(n){if(this.documentIsAccessible&&this.check(n)){n=encodeURIComponent(n);const o=e.getCookieRegExp(n).exec(this.document.cookie);return o[1]?e.safeDecodeURIComponent(o[1]):""}return""}getAll(){if(!this.documentIsAccessible)return{};const n={},r=this.document;return r.cookie&&""!==r.cookie&&r.cookie.split(";").forEach(o=>{const[i,s]=o.split("=");n[e.safeDecodeURIComponent(i.replace(/^ /,""))]=e.safeDecodeURIComponent(s)}),n}set(n,r,o,i,s,a,c){if(!this.documentIsAccessible)return;if("number"==typeof o||o instanceof Date||i||s||a||c)return void this.set(n,r,{expires:o,path:i,domain:s,secure:a,sameSite:c||"Lax"});let l=encodeURIComponent(n)+"="+encodeURIComponent(r)+";";const u=o||{};u.expires&&(l+="number"==typeof u.expires?"expires="+new Date((new Date).getTime()+1e3*u.expires*60*60*24).toUTCString()+";":"expires="+u.expires.toUTCString()+";"),u.path&&(l+="path="+u.path+";"),u.domain&&(l+="domain="+u.domain+";"),!1===u.secure&&"None"===u.sameSite&&(u.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${n} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),u.secure&&(l+="secure;"),u.sameSite||(u.sameSite="Lax"),l+="sameSite="+u.sameSite+";",this.document.cookie=l}delete(n,r,o,i,s="Lax"){this.documentIsAccessible&&this.set(n,"",{expires:new Date("Thu, 01 Jan 1970 00:00:01 GMT"),path:r,domain:o,secure:i,sameSite:s})}deleteAll(n,r,o,i="Lax"){if(!this.documentIsAccessible)return;const s=this.getAll();for(const a in s)s.hasOwnProperty(a)&&this.delete(a,n,r,o,i)}static{this.\u0275fac=function(r){return new(r||e)(O(hn),O(Mn))}}static{this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const{isArray:x3}=Array,{getPrototypeOf:O3,prototype:R3,keys:P3}=Object;const{isArray:L3}=Array;function B3(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function H3(...e){const t=function C2(e){return ge(Hf(e))?e.pop():void 0}(e),{args:n,keys:r}=function F3(e){if(1===e.length){const t=e[0];if(x3(t))return{args:t,keys:null};if(function k3(e){return e&&"object"==typeof e&&O3(e)===R3}(t)){const n=P3(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}(e),o=new ke(i=>{const{length:s}=n;if(!s)return void i.complete();const a=new Array(s);let c=s,l=s;for(let u=0;u<s;u++){let d=!1;Fn(n[u]).subscribe(Kt(i,f=>{d||(d=!0,l--),a[u]=f},()=>c--,void 0,()=>
vendor: 14,301 bytes, line 4838
4838{(!c||!d)&&(l||i.next(r?B3(r,a):a),i.complete())}))}});return t?o.pipe(function j3(e){return Xt(t=>function V3(e,t){return L3(t)?e(...t):e(t)}(e,t))}(t)):o}let yE=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static{this.\u0275fac=function(r){return new(r||e)(C(ln),C(Tt))}}static{this.\u0275dir=P({type:e})}}return e})(),lr=(()=>{class e extends yE{static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=function Ue(e){return Jt(()=>{const t=e.prototype.constructor,n=t[en]||Gl(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[en]||Gl(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}(e)))(o||e)}})()}static{this.\u0275dir=P({type:e,features:[Y]})}}return e})();const Pt=new b(""),$3={provide:Pt,useExisting:ne(()=>Qf),multi:!0},G3=new b("");let Qf=(()=>{class e extends yE{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function z3(){const e=Vi()?Vi().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static{this.\u0275fac=function(r){return new(r||e)(C(ln),C(Tt),C(G3,8))}}static{this.\u0275dir=P({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){1&r&&Oe("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},features:[le([$3]),Y]})}}return e})();const Ge=new b(""),Bn=new b("");function TE(e){return null!=e}function AE(e){return Va(e)?fc(e):e}function NE(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function xE(e,t){return t.map(n=>n(e))}function OE(e){return e.map(t=>function W3(e){return!e.validate}(t)?t:n=>t.validate(n))}function Yf(e){return null!=e?function RE(e){if(!e)return null;const t=e.filter(TE);return 0==t.length?null:function(n){return NE(xE(n,t))}}(OE(e)):null}function Kf(e){return null!=e?function PE(e){if(!e)return null;const t=e.filter(TE);return 0==t.length?null:function(n){return H3(xE(n,t).map(AE)).pipe(Xt(NE))}}(OE(e)):null}function FE(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Xf(e){return e?Array.isArray(e)?e:[e]:[]}function bc(e,t){return Array.isArray(e)?e.includes(t):e===t}function VE(e,t){const n=Xf(t);return Xf(e).forEach(o=>{bc(n,o)||n.push(o)}),n}function jE(e,t){return Xf(t).filter(n=>!bc(e,n))}class BE{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Yf(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Kf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return!!this.control&&this.control.hasError(t,n)}getError(t,n){return this.control?this.control.getError(t,n):null}}class Ke extends BE{get formDirective(){return null}get path(){return null}}class yn extends BE{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class HE{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let UE=(()=>{class e extends HE{constructor(n){super(n)}static{this.\u0275fac=function(r){return new(r||e)(C(yn,2))}}static{this.\u0275dir=P({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){2&r&&ba("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[Y]})}}return e})();const Zi="VALID",Mc="INVALID",yo="PENDING",Qi="DISABLED";function Sc(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class rh{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Zi}get invalid(){return this.status===Mc}get pending(){return this.status==yo}get disabled(){return this.status===Qi}get enabled(){return this.status!==Qi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(VE(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(VE(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(jE(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(jE(t,this._rawAsyncValidators))}hasValidator(t){return bc(this._rawValidators,t)}hasAsyncValidator(t){return bc(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=yo,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Qi,this.errors=null,this._forEachChild(r=>{r.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Zi,this._forEachChild(r=>{r.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Zi||this.status===yo)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Qi:Zi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=yo,this._hasOwnPendingAsyncValidator=!0;const n=AE(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}get(t){let n=t;return null==n||(Array.isArray(n)||(n=n.split(".")),0===n.length)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new fe,this.statusChanges=new fe}_calculateStatus(){return this._allControlsDisabled()?Qi:this.errors?Mc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(yo)?yo:this._anyControlsHaveStatus(Mc)?Mc:Zi}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Sc(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function X3(e){return Array.isArray(e)?Yf(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function J3(e){return Array.isArray(e)?Kf(e):e||null}(this._rawAsyncValidators)}}const vo=new b("CallSetDisabledState",{providedIn:"root",factory:()=>Tc}),Tc="always";function Yi(e,t,n=Tc){(function ih(e,t){const n=function kE(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(FE(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=function LE(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(FE(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();xc(t._rawValidators,o),xc(t._rawAsyncValidators,o)})(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&t.valueAccessor.setDisabledState?.(e.disabled),function nL(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&qE(e,t)})}(e,t),function oL(e,t){const n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function rL(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&qE(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function tL(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function xc(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function qE(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function QE(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function YE(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}Promise.resolve();const KE=class extends rh{constructor(t=null,n,r){super(function th(e){return(Sc(e)?e.validators:e)||null}(n),function nh(e,t){return(Sc(t)?t.asyncValidators:e)||null}(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initOb
4838servables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Sc(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=YE(t)?t.value:t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){QE(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){QE(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){YE(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},fL={provide:yn,useExisting:ne(()=>uh)},e0=Promise.resolve();let uh=(()=>{class e extends yn{constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new KE,this._registered=!1,this.name="",this.update=new fe,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function ch(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===Qf?n=i:function aL(e){return Object.getPrototypeOf(e.constructor)===lr}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){const r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),function ah(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Yi(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(n){e0.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=0!==r&&function ff(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}(r);e0.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function Ac(e,t){return[...t.path,e]}(n,this._parent):[n]}static{this.\u0275fac=function(r){return new(r||e)(C(Ke,9),C(Ge,10),C(Bn,10),C(Pt,10),C(Ha,8),C(vo,8))}}static{this.\u0275dir=P({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[ue.None,"disabled","isDisabled"],model:[ue.None,"ngModel","model"],options:[ue.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[le([fL]),Y,Mt]})}}return e})(),LL=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=tn({type:e})}static{this.\u0275inj=kt({})}}return e})(),jL=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:vo,useValue:n.callSetDisabledState??Tc}]}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=tn({type:e})}static{this.\u0275inj=kt({imports:[LL]})}}return e})();const BL=["captchaWrapperElem"];let Rc=(()=>{class e{constructor(n){this.zone=n,this.scriptElemId="ngx-catpcha-script",this.windowGrecaptcha="grecaptcha",this.windowGrecaptchaEnterprise="enterprise",this.windowOnLoadCallbackProperty="ngx_captcha_onload_callback",this.windowOnLoadEnterpriseCallbackProperty="ngx_captcha_onload_enterprise_callback",this.globalDomain="recaptcha.net",this.defaultDomain="google.com",this.enterpriseApi="enterprise.js",this.defaultApi="api.js"}
4838registerCaptchaScript(n,r,o,i){if(this.grecaptchaScriptLoaded(n.useEnterprise))return void this.zone.run(n.useEnterprise?()=>{o(window[this.windowGrecaptcha][this.windowGrecaptchaEnterprise])}:()=>{o(window[this.windowGrecaptcha])});n.useEnterprise?window[this.getCallbackName(!0)]=()=>this.zone.run(o.bind(this,window[this.windowGrecaptcha][this.windowGrecaptchaEnterprise])):window[this.getCallbackName(!1)]=()=>this.zone.run(o.bind(this,window[this.windowGrecaptcha]));const s=document.createElement("script");s.id=this.scriptElemId,s.innerHTML="",s.src=this.getCaptchaScriptUrl(n,r,i),s.async=!0,s.defer=!0,document.getElementsByTagName("head")[0].appendChild(s)}cleanup(){const n=document.getElementById(this.scriptElemId);n&&n.remove(),window[this.getCallbackName()]=void 0,window[this.windowGrecaptcha]=void 0}grecaptchaScriptLoaded(n){return!!(window[this.getCallbackName(n)]&&window[this.windowGrecaptcha]&&(n&&window[this.windowGrecaptcha][this.windowGrecaptchaEnterprise]||window[this.windowGrecaptcha].execute))}getCallbackName(n){return n?this.windowOnLoadEnterpriseCallbackProperty:this.windowOnLoadCallbackProperty}getLanguageParam(n){return n?`&hl=${n}`:""}getCaptchaScriptUrl(n,r,o){return`https://www.${n.useGlobalDomain?this.globalDomain:this.defaultDomain}/recaptcha/${n.useEnterprise?this.enterpriseApi:this.defaultApi}?onload=${this.getCallbackName(n.useEnterprise)}&render=${r}${this.getLanguageParam(o)}`}}return e.\u0275fac=function(n){return new(n||e)(O(Q))},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),HL=(()=>{class e{constructor(n,r,o,i){this.renderer=n,this.zone=r,this.injector=o,this.scriptService=i,this.captchaElemPrefix="ngx_captcha_id_",this.setupCaptcha=!0,this.useGlobalDomain=!1,this.useEnterprise=!1,this.type="image",this.tabIndex=0,this.success=new fe,this.load=new fe,this.reset=new fe,this.ready=new fe,this.error=new fe,this.expire=new fe,this.setupAfterLoad=!1,this.resetCaptchaAfterSuccess=!1,this.onChange=s=>{},this.onTouched=s=>{},this.isLoaded=!1}ngAfterViewInit(){this.control=this.injector.get(yn,void 0,U.Optional)?.control}ngAfterViewChecked(){this.setupCaptcha&&(this.setupCaptcha=!1,this.setupComponent())}ngOnChanges(n){n&&n.hl&&!n.hl.firstChange&&n.hl.currentValue!==n.hl.previousValue&&this.scriptService.cleanup(),n&&n.useGlobalDomain&&!n.useGlobalDomain.firstChange&&n.useGlobalDomain.currentValue!==n.useGlobalDomain.previousValue&&this.scriptService.cleanup(),this.setupCaptcha=!0}getResponse(){return this.reCaptchaApi.getResponse(this.captchaId)}getCaptchaId(){return this.captchaId}resetCaptcha(){this.zone.run(()=>{this.reCaptchaApi.reset(),this.onChange(void 0),this.onTouched(void 0),this.reset.next()})}getCurrentResponse(){return this.currentResponse}reloadCaptcha(){this.setupComponent()}ensureCaptchaElem(n){const r=document.getElementById(n);if(!r)throw Error(`Captcha element with id '${n}' was not found`);this.captchaElem=r}renderReCaptcha(){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.captchaId=this.reCaptchaApi.render(this.captchaElemId,this.getCaptchaProperties()),this.ready.next()},0)})}handleCallback(n){this.currentResponse=n,this.success.next(n),this.zone.run(()=>{this.onChange(n),this.onTouched(n)}),this.resetCaptchaAfterSuccess&&this.resetCaptcha()}getPseudoUniqueNumber(){return(new Date).getUTCMilliseconds()+Math.floor(9999*Math.random())}setupComponent(){this.captchaSpecificSetup(),this.createAndSetCaptchaElem(),this.scriptService.registerCaptchaScript({useGlobalDomain:this.useGlobalDomain,useEnterprise:this.useEnterprise},"explicit",n=>{this.onloadCallback(n)},this.hl)}onloadCallback(n){if(this.reCaptchaApi=n,!this.reCaptchaApi)throw Error("ReCaptcha Api was not initialized correctly");this.isLoaded=!0,this.load.next(),this.renderReCaptcha(),this.setupAfterLoad&&(this.setupAfterLoad=!1,this.setupComponent())}generateNewElemId(){return this.captchaElemPrefix+this.getPseudoUniqueNumber()}createAndSetCaptchaElem(){if(this.captchaElemId=this.generateNewElemId(),!this.captchaElemId)throw Error("Captcha elem Id is not set");if(!this.captchaWrapperElem)throw Error("Captcha DOM element is not initialized");this.captchaWrapperElem.nativeElement.innerHTML="";const n=this.renderer.createElement("div");n.id=this.captchaElemId,this.renderer.appendChild(this.captchaWrapperElem.nativeElement,n),setTimeout(()=>{this.captchaElemId&&this.ensureCaptchaElem(this.captchaElemId)}
4838,0)}writeValue(n){}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}handleErrorCallback(){this.zone.run(()=>{this.onChange(void 0),this.onTouched(void 0)}),this.error.next()}handleExpireCallback(){this.expire.next(),this.resetCaptcha()}}return e.\u0275fac=function(n){return new(n||e)(C(ln),C(Q),C(Fe),C(Rc))},e.\u0275dir=P({type:e,inputs:{siteKey:"siteKey",useGlobalDomain:"useGlobalDomain",useEnterprise:"useEnterprise",type:"type",hl:"hl",tabIndex:"tabIndex"},outputs:{success:"success",load:"load",reset:"reset",ready:"ready",error:"error",expire:"expire"},features:[Mt]}),e})();var C0=function(e){return e[e.InvisibleReCaptcha=0]="InvisibleReCaptcha",e[e.ReCaptcha2=1]="ReCaptcha2",e}(C0||{});let UL=(()=>{class e extends HL{constructor(n,r,o,i){super(n,r,o,i),this.renderer=n,this.zone=r,this.injector=o,this.scriptService=i,this.size="invisible",this.theme="light",this.badge="bottomright",this.recaptchaType=C0.InvisibleReCaptcha}ngOnChanges(n){super.ngOnChanges(n)}execute(){this.zone.runOutsideAngular(()=>this.reCaptchaApi.execute(this.captchaId))}captchaSpecificSetup(){}getCaptchaProperties(){return{sitekey:this.siteKey,callback:n=>this.zone.run(()=>this.handleCallback(n)),"expired-callback":()=>this.zone.run(()=>this.handleExpireCallback()),"error-callback":()=>this.zone.run(()=>this.handleErrorCallback()),badge:this.badge,type:this.type,tabindex:this.tabIndex,size:this.size,theme:this.theme}}}return e.\u0275fac=function(n){return new(n||e)(C(ln),C(Q),C(Fe),C(Rc))},e.\u0275cmp=En({type:e,selectors:[["ngx-invisible-recaptcha"]],viewQuery:function(n,r){if(1&n&&xa(BL,5),2&n){let o;Oa(o=Ra())&&(r.captchaWrapperElem=o.first)}},inputs:{theme:"theme",badge:"badge"},features:[le([{provide:Pt,useExisting:ne(()=>e),multi:!0}]),Y,Mt],decls:2,vars:0,consts:[["captchaWrapperElem",""]],template:function(n,r){1&n&&mt(0,"div",null,0)},encapsulation:2}),e})(),$L=(()=>{class e{constructor(n,r){this.scriptService=n,this.zone=r}execute(n,r,o,i,s){this.executeAsPromise(n,r,i).then(o).catch(a=>s?s(a):console.error(a))}executeAsPromise(n,r,o){return new Promise((i,s)=>{this.scriptService.registerCaptchaScript(o||{},n,l=>{this.zone.runOutsideAngular(()=>{try{l.execute(n,{action:r}).then(u=>this.zone.run(()=>i(u)))}catch(u){s(u)}})})})}}return e.\u0275fac=function(n){return new(n||e)(O(Rc),O(Q))},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),zL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=tn({type:e}),e.\u0275inj=kt({providers:[Rc,$L],imports:[Qw]}),e})(),GL=(()=>{class e{constructor(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=En({type:e,selectors:[["app-confirmation"]],decls:22,vars:0,consts:[[1,"confirmation-container"],["width","125","height","137","viewBox","0 0 125 137","fill","none","xmlns","http://www.w3.org/2000/svg"],["clip-path","url(#clip0_178_3186)"],["d","M94.2301 29.66C94.3919 26.4556 91.9478 23.7516 88.7434 23.5898C88.6908 23.5871 88.6908 23.5871 88.6383 23.5845C87.6927 23.5367 87.2258 22.3545 87.9957 21.7087C88.0509 21.6588 88.1612 21.5591 88.2164 21.5092C90.5893 19.3644 90.7723 15.7397 88.6275 13.3667C86.4827 10.9938 82.858 10.8108 80.4851 12.9556C80.3747 13.0554 80.2091 13.205 80.0988 13.3048C79.3787 14.0058 78.197 13.4194 78.2999 12.424C78.3079 12.2664 78.3159 12.1088 78.3238 11.9512C78.4856 8.74676 76.0415 6.04273 72.837 5.88094C69.6326 5.71916 66.9286 8.16326 66.7668 11.3677C66.7641 11.4202 66.7615 11.4728 66.7562 11.5778C66.7084 12.5234 65.5814 12.9405 64.9855 12.2258C62.9404 9.96321 59.4839 9.57804 57.0717 11.4576C54.3863 13.5339 54.0849 17.416 56.3295 19.8993C56.3794 19.9545 56.4792 20.0648 56.529 20.12C57.23 20.8401 56.6463 21.9692 55.6482 21.9189C55.4906 21.9109 55.333 21.9029 55.1754 21.895C51.971 21.7332 49.267 24.1773 49.1052 27.3818C48.9434 30.5862 51.3875 33.2902 54.5919 33.452C54.7495 33.46 54.9071 33.4679 55.0647 33.4759C56.0655 33.4737 56.4773 34.7059 55.7599 35.3543C55.7047 35.4042 55.5943 35.5039 55.5391 35.5538C52.7799 38.0478 52.9748 42.5342 56.2885 44.7028C58.4811 46.1302 61.3391 45.8532 63.2705 44.1074C63.9879 43.4589 65.1197 43.9901 65.0693 44.9882C65.0667 45.0407 65.0667 45.0407 65.064 45.0932C64.9023 48.2977 67.3464 51.0017 70.5508 51.1635C73.7553 51.3253 76.4593 48.8812 76.6211 45.6767C76.629 45.5191 76.637 45.3615 76.6449 45.2039C76.6428 44.2032 77.8776 43.7389 78.5207 44.5613C78.6178 44.7242 78.7701 44.8372 78.8698 44.9476C81.0147 47.3205 84.6394 47.5035 87.0123 45.3587C89.3852 43.2139 89.5682 39.5892 87.4234 37.2163C87.3735 37.1611 87.2738 37.0507 87.2239 36.9955C86.5754 36.2781 87.1066 35.1463 88.0522 35.
4838194C88.1047 35.1967 88.1047 35.1967 88.1572 35.1993C91.3643 35.3086 94.0684 32.8645 94.2301 29.66Z","fill","#990066"],["d","M71.274 36.8221C75.858 37.0536 79.7616 33.5251 79.9931 28.9411C80.2245 24.3571 76.6961 20.4535 72.1121 20.222C67.5281 19.9906 63.6244 23.519 63.393 28.103C63.1615 32.687 66.69 36.5907 71.274 36.8221Z","fill","#990066"],["d","M41.7109 47.3137C63.4933 69.9962 68.3595 64.4462 67.6644 95.8155C66.9692 127.185 63.9567 126.22 72.2989 134.907","stroke","#31A3AE","stroke-width","3.70763","stroke-linecap","round"],["d","M70.6532 34.7356C65.5438 128.422 65.766 128.422 64.2109 133.516","stroke","#31A3AE","stroke-width","3.43585","stroke-linecap","round"],["d","M93.1539 57.5098C67.6639 71.9354 67.2005 76.5035 66.9687 95.2567C66.737 114.01 65.1149 123.146 62.5659 127.955","stroke","#31A3AE","stroke-width","3.70763","stroke-linecap","round"],["d","M86.6054 83.2948C75.6271 82.363 70.0428 86.4117 67.2189 90.8138C64.1411 85.9939 57.9539 81.2705 45.5478 82.845C44.3103 83.0056 44.0882 84.7408 45.2622 85.2228C53.0041 88.3396 60.3336 92.7738 65.0295 95.8907C64.8392 96.6297 64.6805 97.3366 64.5853 97.9471C64.4267 98.9754 65.6007 99.618 66.3622 98.9432C66.7746 98.5898 67.2189 98.1721 67.7265 97.7222C67.7583 97.7543 67.79 97.7543 67.8217 97.7865C68.7419 98.4291 69.9793 97.5615 69.662 96.4369C69.6303 96.3405 69.5986 96.2441 69.5668 96.1477C73.6916 92.7738 79.8788 88.3075 86.891 85.3834C87.9698 84.9657 87.7477 83.3912 86.6054 83.2948Z","fill","#257886"],["d","M60.3917 93.6592C64.8461 93.6592 72.1998 93.6592 72.1998 93.6592C74.2557 93.6592 75.9425 95.3632 75.9425 97.473C75.9425 97.5 75.9425 97.5271 75.9425 97.5541C75.9162 99.6369 74.651 101.314 72.6215 101.341L72.6742 101.395C74.7301 101.368 76.4433 103.045 76.4697 105.182C76.496 107.292 74.8619 109.05 72.7797 109.077C72.7533 109.077 72.7269 109.077 72.6742 109.077H71.6199C73.6758 109.077 75.3627 110.781 75.3627 112.918C75.3627 115.027 73.7022 116.758 71.6199 116.758H69.5377C71.5936 116.758 73.2805 117.381 73.2805 119.49C73.2805 119.517 73.2805 119.544 73.2805 119.572C73.2541 121.654 70.961 122.844 69.4323 122.817L61.6569 122.844C58.2568 122.844 58.1777 122.98 54.8303 122.357C51.9574 121.817 47.503 118.895 43.1013 118.949V98.2304C50.7449 98.2844 55.9373 93.6592 60.3917 93.6592Z","fill","#FF9100"],["d","M40.7618 95.9763H35.4415C33.9622 95.9763 32.1195 97.6085 31.1074 100.162C31.1074 100.162 29.5243 103.769 29.7579 112.377C29.8617 116.195 29.3945 117.801 28.7976 119.328C28.564 119.933 29.0052 120.565 29.6281 120.539C30.1471 120.512 30.7441 120.539 31.4967 120.539H40.7358C42.8639 120.539 43.5647 119.854 43.5647 117.669V99.0828C43.5647 96.9504 42.8899 95.9763 40.7618 95.9763Z","fill","#D28AC5"],["d","M64.0444 32.6036C62.0734 29.0446 57.6313 27.7689 54.0723 29.7398C54.0139 29.7722 54.0139 29.7722 53.9556 29.8045C52.9053 30.3861 51.6111 29.4256 52.0079 28.2147C52.0339 28.1241 52.0859 27.9428 52.112 27.8521C53.2315 23.9539 51.002 19.9281 47.1038 18.8086C43.2056 17.6892 39.1798 19.9186 38.0603 23.8168C38.0082 23.9981 37.9301 24.2701 37.8781 24.4514C37.5719 25.6883 35.9069 25.848 35.3513 24.7071C35.2544 24.5321 35.1575 24.357 35.0605 24.182C33.0896 20.623 28.6474 19.3473 25.0884 21.3182C21.5293 23.2892 20.2537 27.7313 22.2246 31.2904C22.2569 31.3487 22.2892 31.4071 22.3539 31.5238C22.9355 32.574 22.001 33.7776 20.8808 33.4069C17.1639 32.3395 13.1839 34.2386 11.8445 37.8774C10.3427 41.9111 12.617 46.2933 16.6965 47.4648C16.7872 47.4908 16.9685 47.5429 17.0592 47.5689C18.296 47.8751 18.4234 49.4818 17.3149 50.0957C17.1398 50.1926 16.9648 50.2896 16.7897 50.3865C13.2307 52.3574 11.955 56.7996 13.926 60.3586C15.8969 63.9177 20.3391 65.1934 23.8981 63.2224C24.0732 63.1255 24.2482 63.0285 24.4232 62.9316C25.4995 62.2593 26.7677 63.3105 26.4293 64.489C26.4033 64.5797 26.3512 64.761 26.3252 64.8516C25.0234 69.3844 28.2366 74.0853 33.2569 74.2022C36.5735 74.2714 39.4656 72.0599 40.3768 68.8869C40.7153 67.7084 42.2897 67.5227 42.9036 68.6312C42.9359 68.6896 42.9359 68.6896 42.9682 68.7479C44.9392 72.307 49.3813 73.5827 52.9403 71.6117C56.4994 69.6407 57.7751 65.1986 55.8041 61.6395C55.7072 61.4645 55.6102 61.2895 55.5133 61.1144C54.8411 60.0382 55.8599 58.7116 57.103 59.1667C57.3167 59.2771 57.5563 59.2969 57.7376 59.349C61.6358 60.4684 65.6616 58.239 66.7811 54.3408C67.9006 50.4426 65.6711 46.4168 61.7729 45.2973C61.6823 45.2713 61.501 45.2192 61.4103 45.1932C60.2318 44.8547 60.046 43.2803 61.0963 42.6987C61.1546 42.6664 61.1546 42.6664 61.213 42.6341C64.7397 40.6048 66.0154 36.1627 64.0444 32.6036Z","fill","#FF5F00"],["d","M44.1197 55.6835C49.2109 52.864 51.0526 46.4511 48.2331 41.3598C45.4136 36.2686 39.0007 34.427 33.9094 37.2464C28.8182 40.0659 26.9766 46.4788 29.796 51.5701C32.6155 56.6613 39.0284 58.503 44.1197 55.6835Z","fill","#FDC92A"],["d","M123.55 56.6654C123.755 52.6022 120.656 49.1736 116.593 48.9684C116.526 48.965 116.526 48.965 116.46 48.961
48387C115.261 48.9011 114.668 47.4021 115.645 46.5833C115.715 46.52 115.855 46.3935 115.925 46.3303C118.933 43.6107 119.165 39.0146 116.446 36.0058C113.726 32.997 109.13 32.7649 106.121 35.4845C105.981 35.611 105.772 35.8008 105.632 35.9273C104.719 36.8161 103.22 36.0726 103.351 34.8104C103.361 34.6106 103.371 34.4108 103.381 34.2109C103.586 30.1478 100.487 26.7191 96.4238 26.514C92.3607 26.3088 88.932 29.4079 88.7269 33.4711C88.7235 33.5377 88.7201 33.6043 88.7134 33.7375C88.6529 34.9365 87.2238 35.4653 86.4682 34.5591C83.8751 31.6902 79.4923 31.2018 76.4337 33.585C73.0286 36.2178 72.6465 41.1402 75.4926 44.2889C75.5559 44.3589 75.6824 44.4989 75.7456 44.5688C76.6344 45.4818 75.8943 46.9136 74.6288 46.8497C74.4289 46.8396 74.2291 46.8295 74.0293 46.8195C69.9661 46.6143 66.5374 49.7134 66.3323 53.7766C66.1271 57.8398 69.2262 61.2684 73.2894 61.4736C73.4892 61.4836 73.6891 61.4937 73.8889 61.5038C75.1578 61.5011 75.68 63.0634 74.7703 63.8856C74.7004 63.9488 74.5604 64.0753 74.4904 64.1386C70.9918 67.3009 71.2388 72.9896 75.4407 75.7394C78.2208 77.5492 81.8446 77.198 84.2937 74.9843C85.2033 74.1621 86.6384 74.8356 86.5745 76.1012C86.5712 76.1678 86.5712 76.1678 86.5678 76.2344C86.3627 80.2976 89.4618 83.7262 93.5249 83.9314C97.5881 84.1365 101.017 81.0374 101.222 76.9742C101.232 76.7744 101.242 76.5746 101.252 76.3748C101.249 75.1058 102.815 74.5171 103.631 75.5599C103.754 75.7665 103.947 75.9098 104.073 76.0497C106.793 79.0586 111.389 79.2906 114.398 76.571C117.407 73.8514 117.639 69.2553 114.919 66.2465C114.856 66.1766 114.729 66.0366 114.666 65.9666C113.844 65.057 114.517 63.6219 115.716 63.6824C115.783 63.6858 115.783 63.6858 115.85 63.6891C119.916 63.8276 123.345 60.7286 123.55 56.6654Z","fill","#F8DBF5"],["d","M94.4428 65.747C100.255 66.0404 105.205 61.5664 105.498 55.754C105.792 49.9416 101.318 44.9918 95.5055 44.6983C89.6931 44.4049 84.7433 48.8789 84.4498 54.6913C84.1564 60.5037 88.6304 65.4535 94.4428 65.747Z","fill","#FB4F00"],["id","clip0_178_3186"],["width","125","height","136.152","fill","white","transform","translate(0 0.608154)"],["tabindex","0",1,"bold"],[1,"secondary-text"]],template:function(r,o){1&r&&(K(0,"div",0),function Xp(){x.lFrame.currentNamespace="svg"}(),K(1,"svg",1)(2,"g",2),mt(3,"path",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7)(8,"path",8)(9,"path",9)(10,"path",10)(11,"path",11)(12,"path",12)(13,"path",13)(14,"path",14),te(),K(15,"defs")(16,"clipPath",15),mt(17,"rect",16),te()()(),function Jp(){!function bI(){x.lFrame.currentNamespace=null}()}(),K(18,"h2",17),ze(19,"Tack!"),te(),K(20,"p",18),ze(21,"Din feedback hj\xe4lper oss att bli b\xe4ttre."),te()())},styles:[".confirmation-container[_ngcontent-%COMP%]{flex:1;display:flex;justify-content:center;align-items:center;flex-direction:column;row-gap:.2rem;padding-top:1rem}.secondary-text[_ngcontent-%COMP%]{margin-top:12px;font-size:1rem;font-family:Roboto;letter-spacing:0;line-height:1.2rem;padding:0}.bold[_ngcontent-%COMP%]{font-family:Swedbank Headline,Roboto;font-size:1.2rem;font-weight:900;letter-spacing:0;line-height:1.6rem;margin:1rem 0rem 0rem;padding:0}"]})}}return e})(),qL=(()=>{class e{constructor(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=En({type:e,selectors:[["app-error"]],decls:5,vars:0,consts:[[1,"error-container"],["tabindex","0",1,"bold"],[1,"secondary-text"]],template:function(r,o){1&r&&(K(0,"div",0)(1,"h2",1),ze(2,"Tyv\xe4rr kunde vi inte ta emot din feedback"),te(),K(3,"p",2),ze(4,"F\xf6rs\xf6k g\xe4rna igen senare, vi vill verkligen veta vad du tycker."),te()())},styles:[".error-container[_ngcontent-%COMP%]{flex:1;display:flex;justify-content:center;align-items:center;flex-direction:column;row-gap:.2rem;padding-top:1rem}@media only screen and (max-width: 600px){.error-container[_ngcontent-%COMP%]{width:100%}}.secondary-text[_ngcontent-%COMP%]{margin-top:12px;font-size:1rem;letter-spacing:0;line-height:1.2rem;padding:0;font-family:Roboto}.bold[_ngcontent-%COMP%]{font-family:Swedbank Headline,Roboto;font-size:1.2rem;font-weight:900;letter-spacing:0;line-height:1.6rem;margin:0;padding:0}"]})}}return e})(),WL=(()=>{class e{constructor(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=En({type:e,selectors:[["app-spinner"]],decls:2,vars:0,consts:[[1,"spinner-container"],[1,"spinner"]],template:function(r,o){1&r&&(K(0,"div",0),mt(1,"div",1),te())},styles:[".spinner-container[_ngcontent-%COMP%]{display:flex;flex:1}.spinner[_ngcontent-%COMP%]{border:5px solid #f3f3f3;border-radius:50%;border-top:4px solid #31a3ae;width:50px;height:50px;animation:_ngcontent-%COMP%_spin .6s linear infinite;margin:auto;align-self:center}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]})}}return e})();const ZL=["ratingButton"];function QL(e,t){1&e&&ze(0," , vald ")}function YL(e,t){if(1&e){const n=Ma();K(0,"button",6,0),Oe("click",function(){const o=Vo(n).$index;return jo(dn().onActivate(o+1))})("keydown",function(o){const i=Vo(n).$index;return jo(dn().onKeydown(i+1,o))}),mt(2,"acorn-icon",7),K(3,"span",8),ze(4),un(5,QL,1,0),te()()}
4838if(2&e){const n=t.$index,r=dn();gt("aria-checked",n+1===r.ratingsStore.selectedRating())("aria-label",r.getAriaLabel(n+1))("aria-posinset",n+1)("aria-setsize",r.ratingsStore.ratings.length)("tabindex",r.getTabIndex(n+1)),_e(2),Ne("icon",n+1<=r.ratingsStore.selectedRating()?r.starsIcon.Checked:r.starsIcon.Unchecked),_e(2),Vd(" Betyg ",n+1," av ",r.ratingsStore.ratings.length," "),_e(),function Qv(e,t,n){qt("NgControlFlow");const r=v(),o=St(),i=Ad(r,F+e);if(ve(r,o,t)){const a=V(null);try{if(Bu(i,0),-1!==t){const c=Nd(r[_],F+t),l=zr(i,c.tView.ssrId);ii(i,oi(r,c,n,{dehydratedView:l}),0,$r(c,l))}}finally{V(a)}}else{const a=Zm(i,0);void 0!==a&&(a[oe]=n)}}(5,n+1===r.ratingsStore.selectedRating()?5:-1)}}let w0=(()=>{class e{constructor(){this.ratingsStore=I(_c),this.starsIcon=Cc,this.onRatingChanged=new fe,this.FIRST_RATING=1}selectRating(n){this.ratingsStore.selectedRating.set(n),this.onRatingChanged.emit(n)}onActivate(n){this.selectRating(n),this.focusRating(n)}onKeydown(n,r){const o=r.key;if(" "===o||"Enter"===o)return r.preventDefault(),this.selectRating(n),void this.focusRating(n);const i=this.getNextRating(n,o);null!==i&&(r.preventDefault(),this.selectRating(i),this.focusRating(i))}getAriaLabel(n){return`Betyg ${n} av ${this.ratingsStore.ratings.length}`}getTabIndex(n){const r=this.ratingsStore.selectedRating();return 0===r?n===this.FIRST_RATING?0:-1:n===r?0:-1}getNextRating(n,r){const o=this.ratingsStore.ratings.length;return"ArrowRight"===r||"ArrowDown"===r?n===o?this.FIRST_RATING:n+1:"ArrowLeft"===r||"ArrowUp"===r?n===this.FIRST_RATING?o:n-1:"Home"===r?this.FIRST_RATING:"End"===r?o:null}focusRating(n){queueMicrotask(()=>{this.ratingButtons?.get(n-this.FIRST_RATING)?.nativeElement.focus()})}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=En({type:e,selectors:[["star-ratings"]],viewQuery:function(r,o){if(1&r&&xa(ZL,5),2&r){let i;Oa(i=Ra())&&(o.ratingButtons=i)}},inputs:{labelledBy:"labelledBy"},outputs:{onRatingChanged:"onRatingChanged"},decls:8,vars:1,consts:[["ratingButton",""],[1,"ratings-container"],[1,"ratings-label","left"],["role","radiogroup",1,"ratings-icons"],["type","button","role","radio","aria-checked","false",1,"rating-button"],[1,"ratings-label","right"],["type","button","role","radio","aria-checked","false",1,"rating-button",3,"click","keydown"],["size","large","aria-hidden","true",1,"rating-icon",3,"icon"],[1,"sr-only"]],template:function(r,o){1&r&&(K(0,"div",1)(1,"span",2),ze(2,"D\xe5lig"),te(),K(3,"div",3),function Kv(e,t,n,r,o,i,s,a,c,l,u,d,f){qt("NgControlFlow");const h=void 0!==c,p=v(),g=a?s.bind(p[he][oe]):s,m=new hN(h,g);p[F+e]=m,un(e+1,t,n,r,o,i),h&&un(e+2,c,l,u,d,f)}(4,YL,6,9,"button",4,Yv),te(),K(6,"span",5),ze(7,"Utm\xe4rkt"),te()()),2&r&&(_e(3),gt("aria-labelledby",o.labelledBy||null),_e(),function Xv(e){const t=V(null),n=He();try{const r=v(),o=r[_],i=r[n];if(void 0===i.liveCollection){const a=n+1,c=Ad(r,a),l=Nd(o,a);i.liveCollection=new pN(c,r,l)}else i.liveCollection.reset();const s=i.liveCollection;if(function uN(e,t,n){let r,o,i=0,s=e.length-1;if(Array.isArray(t)){let a=t.length-1;for(;i<=s&&i<=a;){const c=e.at(i),l=t[i],u=Sd(i,c,i,l,n);if(0!==u){u<0&&e.updateValue(i,l),i++;continue}const d=e.at(s),f=t[a],h=Sd(s,d,a,f,n);if(0!==h){h<0&&e.updateValue(s,f),s--,a--;continue}const p=n(i,c),g=n(s,d),m=n(i,l);if(Object.is(m,g)){const D=n(a,f);Object.is(D,p)?(e.swap(i,s),e.updateValue(s,f),a--,s--):e.move(s,i),e.updateValue(i,l),i++}else if(r??=new Zv,o??=Wv(e,i,s,n),Td(e,r,i,m))e.updateValue(i,l),i++,s++;else if(o.has(m))r.set(p,e.detach(i)),s--;else{const D=e.create(i,t[i]);e.attach(i,D),i++,s++}}for(;i<=a;)qv(e,r,n,i,t[i]),i++}else if(null!=t){const a=t[Symbol.iterator]();let c=a.next();for(;!c.done&&i<=s;){const l=e.at(i),u=c.value,d=Sd(i,l,i,u,n);if(0!==d)d<0&&e.updateValue(i,u),i++,c=a.next();else{r??=new Zv,o??=Wv(e,i,s,n);const f=n(i,u);if(Td(e,r,i,f))e.updateValue(i,u),i++,s++,c=a.next();else if(o.has(f)){const h=n(i,l);r.set(h,e.detach(i)),s--}else e.attach(i,e.create(i,u)),i++,s++,c=a.next()}}for(;!c.done;)qv(e,r,n,e.length,c.value),c=a.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(a=>{e.destroy(a)})}(s,e,i.trackByFn),s.updateIndexes(),i.hasEmptyBlock){const a=St(),c=0===s.length;if(ve(r,a,c)){const l=n+2,u=Ad(r,l);if(c){const d=Nd(o,l),f=zr(u,d.tView.ssrId);ii(u,oi(r,d,void 0,{dehydratedView:f}),0,$r(d,f))}else Bu(u,0)}}}finally{V(t)}}(o.ratingsStore.ratings))},styles:[".ratings-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin:15px auto}.ratings-label[_ngcontent-%COMP%]{flex:1 1 0;color:light-dark(#512b2b,#f9f8f6);font-weight:700;text-align:center;margin:0}.ratings-label.left[_ngcontent-%COMP%]{margin-right:10px}.ratings-label.right[_ngcontent-%COMP%]{margin-left:10px}.ratings-icons[_ngcontent-%COMP%]{flex:3 1 0;display:flex;justify-content:center;align-items:center;gap:.2rem}.rating-icon[_ngcontent-%COMP%]{cursor:pointer}.rating-button[_ngcontent-%COMP%]{background:none;border:0;padding:0;cursor:pointer;line-height:0}.sr-only[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;border:0;padding:0;margin:-1px}@media (min-width: 400px){.ratings-container[_ngcontent-%COMP%]{max-width:55vw}}@media (min-width: 650px){.ratings-container[_ngcontent-%COMP%]{max-width:40vw}}@media (max-width: 400px) and (orientation: portrait){.ratings-label[_ngcontent-%COMP%]{display:none}.ratings-icons[_ngcontent-%COMP%]{gap:.1rem;flex-wrap:wrap}}"]})}}return e})(),KL=(()=>{class e{constructor(){this.maximumInputLength=1500,this.ratingQuestionId="feedback-rating-question",this.ratingsStore=I(_c),this.starsIcon=Cc,this.onFeedbackSubmit=new fe}selectRating(n){this.ratingsStore.selectedRating.set(n)}onSubmit(){this.ratingsStore.submitLoading()||(this.ratingsStore.submitLoading.set(!0),this.onFeedbackSubmit.emit(this.ratingsStore.feedbackText()))}textChanged(n){this.ratingsStore.feedbackText.set(n.target.value)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=En({type:e,selectors:[["app-modal"]],outputs:{onFeedbackSubmit:"onFeedbackSubmit"},decls:16,vars:6,consts:[["closeOnClickOutside","true",3,"closeComplete","open"],["heading","L\xe4mna feedback"],[1,"modal-container"],["role","status","severity","neutral",1,"disclaimer-message"],[1,"message-text"],[1,"content"],[1,"rating-question"],[1,"question",3,"id"],[3,"labelledBy"],["max-character-count","1500","label","Finns det n\xe5got du tycker vi kan f\xf6rb\xe4ttra?","placeholder","Ange inga privata uppgifter h\xe4r.",1,"input-box",3,"input","value"],["label","Skicka","type","submit",3,"click","busy"]],template:function(r,o){1&r&&(K(0,"acorn-modal",0),Oe("closeComplete",function(){return o.ratingsStore.showModal.set(!1)}),mt(1,"acorn-modal-header",1),K(2,"acorn-modal-body")(3,"div",2)(4,"acorn-alert-message",3)(5,"acorn-alert-message-body")(6,"span",4),ze(7," Eftersom din feedback \xe4r anonym kan vi inte svara dig. Om du beh\xf6ver hj\xe4lp eller har en fr\xe5ga, v\xe4nligen kontakta v\xe5r kundservice. "),te()()(),K(8,"main",5)(9,"fieldset",6)(10,"legend",7),ze(11,"Hur kan vi f\xf6rb\xe4ttra den h\xe4r sidan?"),te(),mt(12,"
4838star-ratings",8),te(),K(13,"acorn-text-area",9),Oe("input",function(s){return o.textChanged(s)}),te()()()(),K(14,"acorn-modal-footer")(15,"acorn-button",10),Oe("click",function(){return o.onSubmit()}),te()()()),2&r&&(Ne("open",o.ratingsStore.showModal()),_e(10),Ne("id",o.ratingQuestionId),_e(2),Ne("labelledBy",o.ratingQuestionId),_e(),Ne("value",o.ratingsStore.feedbackText()),gt("maxlength",o.maximumInputLength),_e(2),Ne("busy",o.ratingsStore.submitLoading()))},dependencies:[w0],styles:[".modal-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.message-text[_ngcontent-%COMP%], .message-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:1.2}.buttons-container[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:1rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:.5rem 1rem;background-color:light-dark(#fbf2ea,#222222)}.rating-question[_ngcontent-%COMP%]{align-self:stretch;border:0;margin:0;min-inline-size:0;padding:0}.question[_ngcontent-%COMP%]{font-family:Swedbank Headline,Roboto;font-size:16px;font-weight:700;letter-spacing:0;line-height:22px;margin:0;padding:0}.input-box[_ngcontent-%COMP%]{width:100%;margin:0}"]})}}return e})();const XL=["captchaElem"],JL=()=>({standalone:!0});function e6(e,t){1&e&&mt(0,"app-spinner")}function t6(e,t){1&e&&(K(0,"div")(1,"p",11),ze(2," Denna webbplats skyddas av reCAPTCHA, "),K(3,"a",12),ze(4,"Googles integritetspolicy"),te(),ze(5," och "),K(6,"a",13),ze(7,"Googles anv\xe4ndarvillkor"),te()()())}function n6(e,t){if(1&e){const n=Ma();K(0,"div")(1,"div",7)(2,"fieldset",8)(3,"legend",9),ze(4,"Hj\xe4lpte den h\xe4r sidan dig?"),te(),K(5,"star-ratings",10),Oe("onRatingChanged",function(){return Vo(n),jo(dn(2).onRatingChanged())}),te()()(),un(6,t6,8,0,"div",2),$d(7,"async"),te()}if(2&e){const n=dn(2);_e(3),Ne("id",n.firstRatingQuestionId),_e(2),Ne("labelledBy",n.firstRatingQuestionId),_e(),Ne("ngIf",zd(7,3,n.isCaptchaEnabled$))}}function r6(e,t){if(1&e&&(K(0,"div",6),un(1,n6,8,5,"div",4),te()),2&e){const n=dn();_e(),Ne("ngSwitchCase",n.steps.FirstQuestion)}}function o6(e,t){1&e&&mt(0,"app-confirmation")}function i6(e,t){1&e&&mt(0,"app-error")}function s6(e,t){if(1&e){const n=Ma();K(0,"div")(1,"ngx-invisible-recaptcha",14,0),Oe("load",function(){return Vo(n),jo(dn().handleLoad())}),te()()}if(2&e){const n=dn();_e(),Ne("siteKey",n.siteKey)("useGlobalDomain",!1)("type",n.type)("badge",n.badge)("ngModel",n.recaptcha)("ngModelOptions",function fC(e,t,n){const r=We()+e,o=v();return o[r]===k?Zt(o,r,n?t.call(n):t()):function Di(e,t){return e[t]}(o,r)}(6,JL))}}var Do=function(e){return e[e.FirstQuestion=0]="FirstQuestion",e[e.SecondQuestion=1]="SecondQuestion",e[e.Confirmation=2]="Confirmation",e[e.Error=3]="Error",e[e.Closed=4]="Closed",e}(Do||{}),yh=function(e){return e.Test="https://app.swedbank.test/api/cross-channel/customer-communication-management/feedback/v1/PUBLIC_PAGES",e.Prod="https://app.swedbank.se/api/cross-channel/customer-communication-management/feedback/v1/PUBLIC_PAGES",e}(yh||{}),vh=function(e){return e.Test="https://app.swedbank.test/api/cross-channel/customer-communication-management/feedback/v1/INTRANET",e.Prod="https://app.swedbank.se/api/cross-channel/customer-communication-management/feedback/v1/INTRANET",e}(vh||{}),Dh=function(e){return e.Test="https://app.swedbank.test/api/cross-channel/customer-communication-management/feedback/v1/",e.Prod="https://app.swedbank.se/api/cross-channel/customer-communication-management/feedback/v1/",e}(Dh||{}),vn=function(e){return e.Test="f5eb8a7f1d1eaa45440bc5bf7f274621",e.PreProd="af63c8aeddbb88b9d54151c6c648723b",e.Prod="6cc8c9988909910e528c0baee754aeba",e}(vn||{}),Ch=function(e){return e.Test="6LfDj7QUAAAAAG9IKhKMNprLgh3raEuZE3xp2LfS",e.Prod="6LdIEbUUAAAAANRvVtYkg7kkSi7dK-DKzuvJogfL",e}(Ch||{}),wh=function(e){return e.Test="i8VCPFHGSpUB3O49",e.Prod="Pk95brASO1wrXPDNPPn6s9QJJFTdRpd8",e}(wh||{});let c6=(()=>{class e{constructor(n,r){this.httpClient=n,this.cookie=r,this.currentStep=Do.FirstQuestion,this.steps=Do,this.loading=!1,this.firstRatingQuestionId="feedback-first-rating-question",this.DEVICE_ID="_DEVICE_ID",this.APP_ID="whkxnGMrdkI1gCgn",this.recaptcha=null,this.badge="bottomright",this.type="image",this.eventSource="unknown",this.eventCategory="se:content",this.isCaptchaEnabled$=new Wh(!1),this.ratingsStore=I(_c),this.handleTabKey=o=>{"Tab"===o.key&&document.body.classList.add("user-is-tabbing")},this.handleMouseDown=()=>{document.body.classList.remove("user-is-tabbing")}}onRatingChanged(){!1===this.ratingsStore.showModal()&&this.ratingsStore.showModal.set(!0)}ngOnInit(){document.body.addEventListener("keydown",this.handleTabKey),document.body.addEventListener("mousedown",this.handleMouseDown),this.isCaptchaEnabled$.next("true"===this.captcha),this.isCaptchaEnabled$.subscribe(n=>{n&&(this.siteKey=this.getCaptchaKey())})}ngOnDestroy(){document.body.removeEventListener("keydown",this.handleTabKey),document.body.removeEventListener("mousedown",this.handleMouseDown)}handleLoad(){this.isCaptchaEnabled$.subscribe(n=>{n&&(document.querySelector("#"+this.captchaElem.captchaElemId).style.visibility="hidden")})}onModalSubmit(n){this.ratingsStore.submitLoading.set(!0);const r=wc.getEvaluationFromRating(this.ratingsStore.selectedRating()),o=(n??"").trim(),i=""===o?null:o;void 0!==this.captchaElem?(this.captchaElem.execute(),function A3(e=0,t=gE){return e<0&&(e=0),function T3(e=0,t,n=M3){let r=-1;return null!=t&&(L_(t)?n=t:r=t),new ke(o=>{let i=function S3(e){return e instanceof Date&&!isNaN(e)}(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}(e,e,t)}(100).pipe(z_(()=>void 0!==this.captchaElem.getCurrentResponse()&&!1===this.loading),function N3(e){return e<=0?()=>Bf:Cn((t,n)=>{let r=0;t.subscribe(Kt(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}(1)).subscribe(()=>{this.loading=!0,this.submitFeedback(r,i).subscribe({next:s=>{this.onFeedbackSubmitted(r,i,s)},error:this.onFeedbackSubmitError.bind(this)})})):this.submitFeedback(r,i).subscribe({next:s=>{this.onFeedbackSubmitted(r,i,s)},error:this.onFeedbackSubmitError.bind(this)})}onFeedbackSubmitError(n){console.error("Feedback submit error",n);const r=wc.getEvaluationFromRating(this.ratingsStore.selectedRating()),o=this.buildAnalyticsEventPayload(r,this.ratingsStore.feedbackText());console.debug("[cf:rating:submit] Event NOT dispatched due to error. Payload would have been:",o),this.loading=!1,this.ratingsStore.submitLoading.set(!1),this.ratingsStore.showModal.set(!1),this.currentStep=Do.Error}buildAnalyticsEventPayload(n,r){return{rating:wc.getRatingFromEvaluation(n),source:this.eventSource||"unknown",category:this.eventCategory||"se:content",hasText:!!(r&&r.length>0)}}onFeedbackSubmitted(n,r,o){o&&(this.feedbackId=o.id),this.loading=!1,this.ratingsStore.submitLoading.set(!1),this.ratingsStore.showModal.set(!1),this.currentStep=Do.Confirmation,this.releaseCookie();const i=this.buildAnalyticsEventPayload(n,r),s=new CustomEvent("cf:rating:submit",{detail:i,bubbles:!0,cancelable:!0});console.debug("[cf:rating:submit] Dispatching event with payload:",i),document.dispatchEvent(s)}onClose(){this.currentStep=Do.Closed}submitFeedback(n,r){const o=r??this.ratingsStore.feedbackText();return this.httpClient.post(this.getPostUrl(),{evaluation:n,text:o,type:"CURRENT_PAGE",url:window.location.href,captchaResponse:void 0!==this.captchaElem?this.captchaElem.getCurrentResponse():null},{params:(new mn).set("dsid",this.getCookie()),headers:(new ft).set("Content-Type","application/json").set("Accept-Language","en").set("X-Api-Key",this.getApiKey()),withCredentials:!0})}releaseCookie(){this.cookie.set("dsid",function l6(e){let t="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let r=0;r<e;r++)t+=n.charAt(Math.floor(62*Math.random()));return t}(8),365,"/")}getCookie(){return this.cookie.get("dsid")}
4838getPostUrl(){return void 0!==this.captchaElem?this.env===vn.Prod||this.env===vn.PreProd?yh.Prod:yh.Test:this.env===vn.Prod||this.env===vn.PreProd?vh.Prod:vh.Test}getPutUrl(){return this.env===vn.Prod||this.env===vn.PreProd?Dh.Prod:Dh.Test}getCaptchaKey(){return this.env===vn.Prod?Ch.Prod:Ch.Test}getApiKey(){return this.env===vn.Prod?wh.Prod:wh.Test}static{this.\u0275fac=function(r){return new(r||e)(C(Y_),C(mE))}}static{this.\u0275cmp=En({type:e,selectors:[["feedback-element"]],viewQuery:function(r,o){if(1&r&&xa(XL,5),2&r){let i;Oa(i=Ra())&&(o.captchaElem=i.first)}},inputs:{env:"env",captcha:"captcha",eventSource:[ue.None,"event-source","eventSource"],eventCategory:[ue.None,"event-category","eventCategory"]},decls:8,vars:9,consts:[["captchaElem",""],[3,"ngClass","ngSwitch"],[4,"ngIf"],["class","container-flex",4,"ngIf"],[4,"ngSwitchCase"],[3,"onFeedbackSubmit"],[1,"container-flex"],[1,"container"],[1,"rating-question"],[1,"question",3,"id"],[3,"onRatingChanged","labelledBy"],[1,"hint"],["blank_icon","","href","https://policies.google.com/privacy","target","_blank","rel","noopener noreferrer"],["blank_icon","","href","https://policies.google.com/terms","target","_blank","rel","noopener noreferrer"],[3,"load","siteKey","useGlobalDomain","type","badge","ngModel","ngModelOptions"]],template:function(r,o){1&r&&(K(0,"div",1),un(1,e6,1,0,"app-spinner",2)(2,r6,2,1,"div",3)(3,o6,1,0,"app-confirmation",4)(4,i6,1,0,"app-error",4)(5,s6,3,7,"div",2),$d(6,"async"),te(),K(7,"app-modal",5),Oe("onFeedbackSubmit",function(s){return o.onModalSubmit(s)}),te()),2&r&&(Ne("ngClass",o.currentStep!==o.steps.Closed?"container-flex":"")("ngSwitch",o.currentStep),_e(),Ne("ngIf",o.loading),_e(),Ne("ngIf",!o.loading),_e(),Ne("ngSwitchCase",o.steps.Confirmation),_e(),Ne("ngSwitchCase",o.steps.Error),_e(),Ne("ngIf",zd(6,7,o.isCaptchaEnabled$)))},dependencies:[Bw,$w,ac,Gw,UE,uh,UL,GL,qL,WL,KL,w0,Ww],styles:['[_ngcontent-%COMP%]:root{--acorn-page-margin: 8px;--acorn-page-col-gutter: 8px;--acorn-page-row-gutter: 24px;color-scheme:light}html[_ngcontent-%COMP%]{text-rendering:optimizelegibility;font-family:Roboto,Arial,Helvetica;color:#512b2b;color:light-dark(#512B2B,#F2EDEB)}body[_ngcontent-%COMP%]{margin:0;font-size:calc(.875rem * var(--acorn-font-scale, 1));line-height:1.5714285714285714}h1[_ngcontent-%COMP%]{max-width:750px;font-family:Swedbank Headline,sans-serif;font-weight:900;font-size:calc(1.5rem * var(--acorn-font-scale, 1));color:#fb4f00;line-height:1.3333333333333333;margin-top:calc(48px * var(--acorn-block-margin-top-eq, 0));margin-bottom:calc(16px * var(--acorn-block-margin-top-eq, 0))}h2[_ngcontent-%COMP%]{max-width:750px;font-family:Swedbank Headline,sans-serif;font-weight:900;font-size:calc(1.25rem * var(--acorn-font-scale, 1));color:#fb4f00;line-height:1.4;margin:0;margin-top:calc(48px * var(--acorn-block-margin-top-eq, 0));margin-bottom:calc(16px * var(--acorn-block-margin-top-eq, 0))}h3[_ngcontent-%COMP%]{max-width:750px;font-family:Swedbank Headline,sans-serif;font-weight:700;font-size:calc(1.125rem * var(--acorn-font-scale, 1));line-height:1.3333333333333333;margin:0;margin-top:calc(32px * var(--acorn-block-margin-top-eq, 0));margin-bottom:calc(16px * var(--acorn-block-margin-top-eq, 0))}h4[_ngcontent-%COMP%]{max-width:750px;font-family:Swedbank Headline,sans-serif;font-weight:700;font-size:calc(.875rem * var(--acorn-font-scale, 1));line-height:1.5714285714285714;margin:0;margin-top:calc(24px * var(--acorn-block-margin-top-eq, 0));margin-bottom:calc(16px * var(--acorn-block-margin-top-eq, 0))}p[_ngcontent-%COMP%]{max-width:750px;margin-top:calc(16px * var(--acorn-block-margin-top-eq, 0));margin-bottom:calc(16px * var(--acorn-block-margin-top-eq, 0));margin-left:0;margin-right:0}small[_ngcontent-%COMP%]{font-size:calc(.75rem * var(--acorn-font-scale, 1));line-height:1.6666666666666667;color:#512b2b;color:light-dark(#512B2B,#F2EDEB)}a[_ngcontent-%COMP%]{cursor:pointer;color:#257886;color:light-dark(#257886,#31A3AE);text-decoration:underline}strong[_ngcontent-%COMP%]{font-weight:700}em[_ngcontent-%COMP%]{font-style:oblique}figure[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}figure[_ngcontent-%COMP%]{margin-top:calc(24px * var(--acorn-block-margin-top-eq, 0));margin-bottom:calc(24px * var(--acorn-block-margin-top-eq, 0));margin-left:0;margin-right:0}figcaption[_ngcontent-%COMP%]{font-size:calc(.75rem * var(--acorn-font-scale, 1));line-height:1.6666666666666667;color:#512b2b;color:light-dark(#512B2B,#F2EDEB);margin-top:calc(8px * var(--acorn-block-margin-top-eq, 0));margin-bottom:calc(8px * var(--acorn-block-margin-top-eq, 0));margin-left:0;margin-right:0}a[_ngcontent-%COMP%]:link, a[_ngcontent-%COMP%]:visited, a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:active{color:#257886;color:light-dark(#257886,#31A3AE)}.acorn-default-block-margins[_ngcontent-%COMP%]{--acorn-block-margin-top-eq: 1;--acorn-block-margin-bottom-eq: 1;--acorn-block-margin-top-reversed-eq: 0;--acorn-block-margin-bottom-reversed-eq: 0}.acorn-no-default-block-margins[_ngcontent-%COMP%]{--acorn-block-margin-top-eq: 0;--acorn-block-margin-bottom-eq: 0;--acorn-block-margin-top-reversed-eq: 1;--acorn-block-margin-bottom-reversed-eq: 1}.acorn-h1[_ngcontent-%COMP%]{max-width:750px;font-family:Swedbank Headline,sans-serif;font-weight:900;font-size:calc(1.5rem * var(--acorn-font-scale, 1));color:#fb4f00;line-height:1.3333333333333333;margin-top:calc(48px * var(--acorn-block-margin-top-eq, 0));margin-bottom:calc(16px * var(--acorn-block-margin-top-eq, 0))}
4838.acorn-h2[_ngcontent-%COMP%]{max-width:750px;font-family:Swedbank Headline,sans-serif;font-weight:900;font-size:calc(1.25rem * var(--acorn-font-scale, 1));color:#fb4f00;line-height:1.4;margin:0;margin-top:calc(48px * var(--acorn-block-margin-top-eq, 0));margin-bottom:calc(16px * var(--acorn-block-margin-top-eq, 0))}.acorn-h3[_ngcontent-%COMP%]{max-width:750px;font-family:Swedbank Headline,sans-serif;font-weight:700;font-size:calc(1.125rem * var(--acorn-font-scale, 1));line-height:1.3333333333333333;margin:0;margin-top:calc(32px * var(--acorn-block-margin-top-eq, 0));margin-bottom:calc(16px * var(--acorn-block-margin-top-eq, 0))}.acorn-h4[_ngcontent-%COMP%]{max-width:750px;font-family:Swedbank Headline,sans-serif;font-weight:700;font-size:calc(.875rem * var(--acorn-font-scale, 1));line-height:1.5714285714285714;margin:0;margin-top:calc(24px * var(--acorn-block-margin-top-eq, 0));margin-bottom:calc(16px * var(--acorn-block-margin-top-eq, 0))}.acorn-body-text-base[_ngcontent-%COMP%]{font-size:calc(.875rem * var(--acorn-font-scale, 1));line-height:1.5714285714285714}.acorn-body-text-small[_ngcontent-%COMP%]{font-size:calc(.75rem * var(--acorn-font-scale, 1));line-height:1.6666666666666667;color:#512b2b;color:light-dark(#512B2B,#F2EDEB)}.acorn-label-1[_ngcontent-%COMP%]{font-family:Roboto,Arial,Helvetica;font-weight:400;line-height:1.2;font-size:calc(1.25rem * var(--acorn-font-scale, 1));color:#512b2b;color:light-dark(#512B2B,#F2EDEB)}.acorn-label-2[_ngcontent-%COMP%]{font-family:Roboto,Arial,Helvetica;font-weight:400;line-height:1.2;font-size:calc(1.125rem * var(--acorn-font-scale, 1));color:#512b2b;color:light-dark(#512B2B,#F2EDEB)}.acorn-label-3[_ngcontent-%COMP%]{font-family:Roboto,Arial,Helvetica;font-weight:400;line-height:1.2;font-size:calc(.875rem * var(--acorn-font-scale, 1));color:#512b2b;color:light-dark(#512B2B,#F2EDEB)}.acorn-label-4[_ngcontent-%COMP%], .acorn-label-5[_ngcontent-%COMP%]{font-family:Roboto,Arial,Helvetica;font-weight:400;font-size:calc(.875rem * var(--acorn-font-scale, 1));line-height:1.2;color:#512b2b;color:light-dark(#512B2B,#F2EDEB)}.acorn-label-6[_ngcontent-%COMP%]{font-family:Roboto,Arial,Helvetica;font-weight:400;line-height:1.2;font-size:calc(.75rem * var(--acorn-font-scale, 1));color:#512b2b;color:light-dark(#512B2B,#F2EDEB)}.acorn-label-7[_ngcontent-%COMP%]{font-family:Roboto,Arial,Helvetica;font-size:calc(.75rem * var(--acorn-font-scale, 1));font-weight:400;line-height:1.2;color:#512b2b;color:light-dark(#512B2B,#F2EDEB)}.acorn-copy-1[_ngcontent-%COMP%]{font-family:Roboto,Arial,Helvetica;font-size:calc(1rem * var(--acorn-font-scale, 1));font-weight:400;line-height:1.4;color:#512b2b;color:light-dark(#512B2B,#F2EDEB)}.acorn-copy-2[_ngcontent-%COMP%]{font-family:Roboto,Arial,Helvetica;font-size:calc(.875rem * var(--acorn-font-scale, 1));font-weight:400;line-height:1.4;color:#512b2b;color:light-dark(#512B2B,#F2EDEB)}.acorn-copy-3[_ngcontent-%COMP%]{font-family:Roboto,Arial,Helvetica;font-size:calc(.875rem * var(--acorn-font-scale, 1));font-weight:700;line-height:1.4;color:#512b2b;color:light-dark(#512B2B,#F2EDEB)}.acorn-copy-4[_ngcontent-%COMP%]{font-family:Roboto,Arial,Helvetica;font-size:calc(.75rem * var(--acorn-font-scale, 1));font-weight:400;line-height:1.4;color:#512b2b;color:light-dark(#512B2B,#F2EDEB)}.acorn-button-label-1[_ngcontent-%COMP%]{font-family:Swedbank Headline,sans-serif;font-weight:700;font-size:calc(1.1875rem * var(--acorn-font-scale, 1));line-height:1.2;color:#512b2b;color:light-dark(#512B2B,#F2EDEB)}.acorn-button-label-2[_ngcontent-%COMP%], .acorn-button-label-3[_ngcontent-%COMP%]{font-family:Roboto,Arial,Helvetica;font-weight:400;font-size:calc(.875rem * var(--acorn-font-scale, 1));line-height:1.2;color:#512b2b;color:light-dark(#512B2B,#F2EDEB)}@media only screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--acorn-page-margin: 16px;--acorn-page-col-gutter: 16px}.acorn-label-1[_ngcontent-%COMP%]{font-size:calc(1.5rem * var(--acorn-font-scale, 1))}.acorn-label-2[_ngcontent-%COMP%]{font-size:calc(1.25rem * var(--acorn-font-scale, 1))}.acorn-label-3[_ngcontent-%COMP%], .acorn-label-4[_ngcontent-%COMP%]{font-size:calc(1rem * var(--acorn-font-scale, 1))}.acorn-label-6[_ngcontent-%COMP%]{font-size:calc(.875rem * var(--acorn-font-scale, 1))}}@media only screen and (min-width: 768px){[_ngcontent-%COMP%]:root{--acorn-page-margin: 24px;--acorn-page-col-gutter: 24px}h1[_ngcontent-%COMP%], .acorn-h1[_ngcontent-%COMP%]{font-size:calc(2rem * var(--acorn-font-scale, 1));line-height:1.25}.acorn-label-1[_ngcontent-%COMP%]{font-size:calc(1.25rem * var(--acorn-font-scale, 1))}.acorn-label-2[_ngcontent-%COMP%]{font-size:calc(1.125rem * var(--acorn-font-scale, 1))}.acorn-label-3[_ngcontent-%COMP%], .acorn-label-4[_ngcontent-%COMP%]{font-size:calc(.875rem * var(--acorn-font-scale, 1))}.acorn-label-6[_ngcontent-%COMP%]{font-size:calc(.75rem * var(--acorn-font-scale, 1))}}@media only screen and (min-width: 992px){h1[_ngcontent-%COMP%]{font-size:calc(2.5rem * var(--acorn-font-scale, 1));line-height:1.2}
4838h2[_ngcontent-%COMP%]{font-size:calc(1.5rem * var(--acorn-font-scale, 1));line-height:1.3333333333333333}h3[_ngcontent-%COMP%]{font-size:calc(1.25rem * var(--acorn-font-scale, 1));line-height:1.4}.acorn-h1[_ngcontent-%COMP%]{font-size:calc(2.5rem * var(--acorn-font-scale, 1));line-height:1.2}.acorn-h2[_ngcontent-%COMP%]{font-size:calc(1.5rem * var(--acorn-font-scale, 1));line-height:1.3333333333333333}.acorn-h3[_ngcontent-%COMP%]{font-size:calc(1.25rem * var(--acorn-font-scale, 1));line-height:1.4}.acorn-label-1[_ngcontent-%COMP%]{font-size:calc(2rem * var(--acorn-font-scale, 1))}.acorn-label-2[_ngcontent-%COMP%]{font-size:calc(1.5rem * var(--acorn-font-scale, 1))}.acorn-label-3[_ngcontent-%COMP%]{font-size:calc(1.125rem * var(--acorn-font-scale, 1))}.acorn-label-4[_ngcontent-%COMP%]{font-size:calc(1rem * var(--acorn-font-scale, 1))}.acorn-label-6[_ngcontent-%COMP%]{font-size:calc(.875rem * var(--acorn-font-scale, 1))}.acorn-button-label-2[_ngcontent-%COMP%]{font-size:calc(1rem * var(--acorn-font-scale, 1))}}@media print{.acorn-label-1[_ngcontent-%COMP%]{font-size:calc(2rem * var(--acorn-font-scale, 1))}.acorn-label-2[_ngcontent-%COMP%]{font-size:calc(1.5rem * var(--acorn-font-scale, 1))}.acorn-label-3[_ngcontent-%COMP%]{font-size:calc(1.125rem * var(--acorn-font-scale, 1))}.acorn-label-4[_ngcontent-%COMP%]{font-size:calc(1rem * var(--acorn-font-scale, 1))}.acorn-label-6[_ngcontent-%COMP%]{font-size:calc(.875rem * var(--acorn-font-scale, 1))}.acorn-button-label-2[_ngcontent-%COMP%]{font-size:calc(1rem * var(--acorn-font-scale, 1))}}a[blank_icon][_ngcontent-%COMP%]:before{content:"";color:currentColor;display:inline-block;width:.9rem;height:.9rem;margin-right:4px;vertical-align:middle;background:currentColor;-webkit-mask:url(\'data:image/svg+xml;utf8,<svg fill="currentColor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 12"><path d="M12.3335 0.000244141H5.66683C5.00016 0.000244141 4.3335 0.666911 4.3335 1.33358V2.6684H8.99803C10.4708 2.6684 11.6647 3.86227 11.6647 5.33504V8.00024H12.3335C13.0002 8.00024 13.6668 7.33358 13.6668 6.66691V1.33358C13.6668 0.666911 13.0002 0.000244141 12.3335 0.000244141Z"/><path d="M5.8049 6.00024C5.50793 6.00024 5.35921 6.35931 5.5692 6.56931L6.16683 7.16691L4.90253 8.43118C4.77236 8.56138 4.77236 8.77244 4.90253 8.90264L5.43113 9.43118C5.5613 9.56138 5.77236 9.56138 5.90256 9.43118L7.16683 8.16691L7.76443 8.76451C7.97443 8.97451 8.3335 8.82578 8.3335 8.52884V6.33358C8.3335 6.14951 8.18423 6.00024 8.00016 6.00024H5.8049Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M9.00016 4.00024H1.66683C1.00016 4.00024 0.333496 4.66691 0.333496 5.33358V10.6669C0.333496 11.3336 1.00016 12.0002 1.66683 12.0002H9.00016C9.66683 12.0002 10.3335 11.3336 10.3335 10.6669V5.33358C10.3335 4.66691 9.66683 4.00024 9.00016 4.00024ZM2.00016 10.6669C1.81607 10.6669 1.66683 10.5176 1.66683 10.3336V5.66691C1.66683 5.48284 1.81607 5.33358 2.00016 5.33358H8.66683C8.8509 5.33358 9.00016 5.48284 9.00016 5.66691V10.3336C9.00016 10.5176 8.8509 10.6669 8.66683 10.6669H2.00016Z"/></svg>\') no-repeat center/contain;mask:url(\'data:image/svg+xml;utf8,<svg fill="currentColor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 12"><path d="M12.3335 0.000244141H5.66683C5.00016 0.000244141 4.3335 0.666911 4.3335 1.33358V2.6684H8.99803C10.4708 2.6684 11.6647 3.86227 11.6647 5.33504V8.00024H12.3335C13.0002 8.00024 13.6668 7.33358 13.6668 6.66691V1.33358C13.6668 0.666911 13.0002 0.000244141 12.3335 0.000244141Z"/><path d="M5.8049 6.00024C5.50793 6.00024 5.35921 6.35931 5.5692 6.56931L6.16683 7.16691L4.90253 8.43118C4.77236 8.56138 4.77236 8.77244 4.90253 8.90264L5.43113 9.43118C5.5613 9.56138 5.77236 9.56138 5.90256 9.43118L7.16683 8.16691L7.76443 8.76451C7.97443 8.97451 8.3335 8.82578 8.3335 8.52884V6.33358C8.3335 6.14951 8.18423 6.00024 8.00016 6.00024H5.8049Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M9.00016 4.00024H1.66683C1.00016 4.00024 0.333496 4.66691 0.333496 5.33358V10.6669C0.333496 11.3336 1.00016 12.0002 1.66683 12.0002H9.00016C9.66683 12.0002 10.3335 11.3336 10.3335 10.6669V5.33358C10.3335 4.66691 9.66683 4.00024 9.00016 4.00024ZM2.00016 10.6669C1.81607 10.6669 1.66683 10.5176 1.66683 10.3336V5.66691C1.66683 5.48284 1.81607 5.33358 2.00016 5.33358H8.66683C8.8509 5.33358 9.00016 5.48284 9.00016 5.66691V10.3336C9.00016 10.5176 8.8509 10.6669 8.66683 10.6669H2.00016Z"/></svg>\') no-repeat center/contain;background-color:currentColor}.container[_ngcontent-%COMP%]{display:flex;flex:1;flex-direction:column;padding:1rem 0rem}.container-flex[_ngcontent-%COMP%]{padding:0;display:flex;flex:1;flex-direction:column}.row[_ngcontent-%COMP%]{flex-direction:row}@media (min-width: 600px){.container[_ngcontent-%COMP%]{padding:1rem 4rem}}[_nghost-%COMP%]{color-scheme:light}@media (prefers-color-scheme: dark){[_nghost-%COMP%]{color-scheme:dark}}[data-theme=dark][_nghost-%COMP%], [data-theme=dark]   [_nghost-%COMP%], [theme=dark][_nghost-%COMP%]{color-scheme:dark}[data-theme=light][_nghost-%COMP%], [data-theme=light]   [_nghost-%COMP%], [theme=light][_nghost-%COMP%]{color-scheme:light}*[_ngcontent-%COMP%], *[_ngcontent-%COMP%]:before, *[_ngcontent-%COMP%]:after{text-rendering:optimizelegibility;font-family:Roboto,Arial,Helvetica;color:#512b2b;color:light-dark(#512B2B,#F2EDEB)}.container-flex[_ngcontent-%COMP%]{border-top:light-dark(#512b2b,#f9f8f6) 1px solid}.hint[_ngcontent-%COMP%]{padding:0rem 1rem;text-align:center;max-width:none}.icon-wrapper[_ngcontent-%COMP%]{display:inline-flex;margin-left:4px;vertical-align:middle}.icon-wrapper[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:.9rem;height:.9rem;stroke:none;fill:currentColor}.rating-question[_ngcontent-%COMP%]{border:0;margin:0;min-inline-size:0;padding:0}.question[_ngcontent-%COMP%]{box-sizing:border-box;display:block;font-size:1.5em;font-weight:700;margin-block:.83em;padding:0;text-align:center;color:light-dark(#512b2b,#f9f8f6);max-width:none}']})}}return e})(),u6=(()=>{class e{constructor(n){this.injector=n}ngDoBootstrap(){const n=function U2(e,t){const n=function F2(e,t){return t.get(Gr).resolveComponentFactory(e).inputs}(e,t.injector),r=t.strategyFactory||new j2(e,t.injector),o=function P2(e){const t={};return e.forEach(({propName:n,templateName:r,transform:o})=>{t[function A2(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(r)]=[n,o]}),t}(n);class i extends H2{static{this.observedAttributes=Object.keys(o)}
4838get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:c,transform:l})=>{if(!this.hasOwnProperty(c))return;const u=this[c];delete this[c],a.setInputValue(c,u,l)})}return this._ngElementStrategy}constructor(a){super(),this.injector=a}attributeChangedCallback(a,c,l,u){const[d,f]=o[a];this.ngElementStrategy.setInputValue(d,l,f)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const c=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(c)})}}return n.forEach(({propName:s,transform:a})=>{Object.defineProperty(i.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(c){this.ngElementStrategy.setInputValue(s,c,a)},configurable:!0,enumerable:!0})}),i}(c6,{injector:this.injector});customElements.define("feedback-element",n)}static{this.\u0275fac=function(r){return new(r||e)(O(Fe))}}static{this.\u0275mod=tn({type:e})}static{this.\u0275inj=kt({providers:[mE,_c],imports:[Rk,jL,y3,zL]})}}return e})();xk().bootstrapModule(u6).catch(e=>console.error(e))}},Co=>{Co(Co.s=901)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.