1import{a as At}from"./chunk-WRBQWUEI.js";import{j as Yr,k as Zr,n as sn}from"./chunk-KSTBAVB4.js";import{$a as O,$b as ye,A as en,Ab as y,Ac as si,Ad as $a,Bb as g,Bd as Jn,Cb as Te,D as We,Db as qe,Dd as Tt,E as Ar,Eb as Ke,Ec as He,F as Ir,G as Rr,Gb as Lr,Hb as Gr,Ib as zn,Ic as he,Jb as qn,Kb as Ur,Kc as Zn,L as Pr,Lb as Be,Lc as rn,M as xr,Mb as Y,N as Nt,Na as kr,Nb as w,O as Se,Ob as Ai,Oc as Qn,P as W,Pb as v,Q as tn,Qb as Ye,R as nn,Ra as h,Rb as Ue,Sb as ve,T as ne,Tb as vt,U as f,Ub as z,V as M,Vb as q,Wa as ii,Wc as $r,X as gt,Xa as ze,Xc as Wr,Ya as Qe,Yb as yt,Z as a,Zb as Ii,Zc as Ct,_a as Ti,_b as D,aa as $n,ac as T,bb as ni,bc as Z,bd as zr,c as Mr,cc as jt,d as X,da as _e,e as Sr,ea as ge,eb as k,f as wr,fb as S,g as Nr,gb as _,h as Pe,ha as ue,hb as Fr,ia as xe,ib as Wn,ja as Et,jb as ie,kb as Ne,la as C,m as B,ma as se,mb as Vr,nc as ee,o as dt,pa as we,pc as Ri,qa as Br,qb as oi,qd as pt,ra as oe,rb as j,rc as Kn,rd as qr,s as Er,sa as ae,sb as R,sc as on,sd as Kr,t as re,ta as ti,tc as Yn,u as Or,ua as L,ub as P,uc as Hr,ud as ai,vb as ri,vd as li,w as Tr,wb as ut,wc as ht,wd as Ot,x as Ge,xb as Ee,y as jn,yb as Oe,yc as jr,z as Xi,zb as G,zc as bt}from"./chunk-P2OBJROK.js";import{a as $,b as de,d as ja,f as Dr,g as Oi}from"./chunk-6IZLXKZM.js";var Ta=ja((cr,dr)=>{(function(t,n){typeof cr=="object"&&typeof dr<"u"?dr.exports=n():typeof define=="function"&&define.amd?define(n):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_advancedFormat=n()})(cr,function(){"use strict";return function(t,n){var e=n.prototype,i=e.format;e.format=function(o){var r=this,s=this.$locale();if(!this.isValid())return i.bind(this)(o);var l=this.$utils(),c=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(d){switch(d){case"Q":return Math.ceil((r.$M+1)/3);case"Do":return s.ordinal(r.$D);case"gggg":return r.weekYear();case"GGGG":return r.isoWeekYear();case"wo":return s.ordinal(r.week(),"W");case"w":case"ww":return l.s(r.week(),d==="w"?1:2,"0");case"W":case"WW":return l.s(r.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return l.s(String(r.$H===0?24:r.$H),d==="k"?1:2,"0");case"X":return Math.floor(r.$d.getTime()/1e3);case"x":return r.$d.getTime();case"z":return"["+r.offsetName()+"]";case"zzz":return"["+r.offsetName("long")+"]";default:return d}});return i.bind(this)(c)}}})});var Wa="NB Website",za="Web - NB Website",qa=["[Amplitude] Page Location","[Amplitude] Previous Page Location"];function Qr(t){if(typeof t!="string")return;let n=t.indexOf("?");return n>=0?t.slice(0,n):t}function Jr(t){for(let n of qa){let e=Qr(t[n]);e!==void 0&&(t[n]=e)}}function Ka(){return typeof location>"u"?void 0:Qr(location.href)}var Ya={name:"nbw-application-tag",type:"enrichment",setup:()=>Oi(null,null,function*(){}),execute:t=>Oi(null,null,function*(){let n=de($({},t.event_properties),{application:Wa}),e=Ka();return e!==void 0&&n["[Amplitude] Page Location"]===void 0&&(n["[Amplitude] Page Location"]=e),Jr(n),t.event_properties=n,t.platform=za,t})},Za={name:"nbw-url-sanitiser",type:"enrichment",setup:()=>Oi(null,null,function*(){}),execute:t=>Oi(null,null,function*(){return t.event_properties&&Jr(t.event_properties),t})},an=(()=>{class t{constructor(){this.ngZone=a(se)}static{this.initialized=!1}static{this.sdk=null}static get disabled(){return Ot.isSSR||!li.amplitudeApiKey}init(){t.disabled||t.initialized||(t.initialized=!0,this.ngZone.runOutsideAngular(()=>{t.sdk=import("./chunk-7TZF3WQV.js").then(e=>(e.initAll(li.amplitudeApiKey,{serverZone:"EU",analytics:{autocapture:!0},sessionReplay:{sampleRate:li.sessionReplaySampleRate}}).then(()=>e.add(Za)).catch(i=>console.error("[amplitude] init failed",i)),e.add(Ya),e)).catch(e=>{throw console.error("[amplitude] init failed",e),e})}))}run(e,i){t.disabled||!t.sdk||this.ngZone.runOutsideAngular(()=>{t.sdk?.then(i).catch(o=>console.error(`[amplitude] ${e} failed`,o))})}track(e,i){this.run("track",o=>o.track(e,i))}setUserProperties(e){this.run("setUserProperties",i=>{let o=new i.Identify;for(let[r,s]of Object.entries(e))s!=null&&o.set(r,s);i.identify(o)})}setUserId(e){this.run("setUserId",i=>i.setUserId(e))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ot={AccountCreated:"Account Created",AccountLoggedIn:"Account Logged In",PasswordResetRequested:"Password Reset Requested",SearchSubmitted:"Search Submitted",SearchResultSelected:"Search Result Selected",ProductViewed:"Product Viewed",ProductAdded:"Product Added",ProductRemoved:"Product Removed",CheckoutStarted:"Checkout Started",DiscountApplied:"Discount Applied",PaymentMethodSelected:"Payment Method Selected",OrderCompleted:"Order Completed",SubscriptionStarted:"Subscription Started",SubscriptionRenewed:"Subscription Renewed",SubscriptionCancelled:"Subscription Cancelled",CourseStarted:"Course Started",LessonCompleted:"Lesson Completed",CourseCompleted:"Course Completed",CertificateDownloaded:"Certificate Downloaded",WebinarRegistered:"Webinar Registered",WebinarAttended:"Webinar Attended",SupportRequestSubmitted:"Support Request Submitted",ErrorEncountered:"Error Encountered",PodcastPlayed:"Podcast Played",ContentViewed:"Content Viewed",PodcastOpenedExternally:"Podcast Opened Externally",ItemSaved:"Item Saved",ItemUnsaved:"Item Unsaved",VideoFallbackUsed:"Video Fallback Used",VideoPlaybackFailed:"Video Playback Failed"};var Xr=(()=>{class t{constructor(){this.router=a(sn),this.activatedRoute=a(Zr),this.router.events.pipe(Ge(e=>e instanceof Yr),B(e=>this.activatedRoute.snapshot)).subscribe(e=>{this.list=this.getCurrentList(e)})}get currentList(){return this.list}getCurrentList(e){let i=null,o="",r=e;for(;!i;){if(r.firstChild!=null){r=r.firstChild;continue}r.component&&(o=r.data.list,i=r.component);break}return o||(i?typeof i=="string"?i:i.name:"Not defined")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var es=(()=>{class t{constructor(){this.currentListService=a(Xr),this.amplitudeService=a(an),this.sent=[]}sendPageView(e,i){this.pushToDataLayer("pageView",{page:{path:e,title:i}})}sendImpressionView(e){this.pushToDataLayer("eec.impressionView",{ecommerce:{impressions:e.map((i,o)=>({name:i.name,id:i.id,position:o+1,list:this.currentListService.currentList}))}})}
1sendImpressionClick(e,i,o){this.pushToDataLayer("eec.impressionClick",{ecommerce:{click:{actionField:{list:this.currentListService.currentList},products:[{name:e.name,id:e.id,position:i+1,category:o}]}}})}sendDetailView(e,i){this.pushToDataLayer("eec.detail",{ecommerce:{detail:{actionField:{list:this.currentListService.currentList},products:[{name:e.name,id:e.id,category:i}]}}}),this.amplitudeService.track(ot.ProductViewed,{"product id":e.id,"product name":e.name,"product category":i})}sendAddToCart(e,i){i=i||{},this.pushToDataLayer("eec.add",{ecommerce:{add:{actionField:{list:this.currentListService.currentList},products:[$({name:e.name,id:e.id},i)]}}}),this.amplitudeService.track(ot.ProductAdded,{"product_engagement.product_id":e.id,"product_engagement.product_name":e.name,"product_engagement.quantity":1})}sendEnterCheckout(e){this.pushToDataLayer("eec.checkout",{ecommerce:{checkout:{actionField:{step:1},products:this.getBasketProducts(e)}}}),this.amplitudeService.track(ot.CheckoutStarted,{"cart value":e?.total?.price,currency:"GBP","has discount":(e?.discounts?.length??0)>0,"cart_contents.product_id":e?.items?.map(i=>i.productId)??[],"cart_contents.price":e?.items?.map(i=>i.subtotal?.price)??[],"cart_contents.quantity":e?.items?.map(i=>i.quantity)??[]})}getBasketProducts(e){if(e)return e.items.map(i=>({name:i.name,id:i.productId,category:i.productType,quantity:1}))}sendEnterCheckoutForGroup(e){this.pushToDataLayer("eec.checkout",{ecommerce:{checkout:{actionField:{step:1},products:[{name:e.name,id:e.id,category:e.productType,quantity:1,dimension12:"groupBooking"}]}}}),this.amplitudeService.track(ot.CheckoutStarted,{currency:"GBP","cart_contents.product_id":[e.id],"cart_contents.quantity":[1]})}sendCheckoutStep(e,i){!i||this.sent.some(o=>o===e)||(this.pushToDataLayer("eec.checkout",{ecommerce:{checkout:{actionField:{step:e},products:this.getBasketProducts(i)}}}),this.sent.push(e))}sendPurchase(e){this.pushToDataLayer("eec.purchase",{ecommerce:{currencyCode:"GBP",purchase:{actionField:{id:e.id,affiliation:"NB Medical",revenue:e.total.total,tax:e.total.vat,shipping:e.shipping?.price?.total||0,coupon:e.discountCodes.join(", ")},products:e.items.map(o=>({id:o.productId,name:o.productName,category:o.productType,quantity:1,price:o.subtotal.total}))}}});let i=e.items.reduce((o,r)=>o+(r.discountAmount?.total??0),0);this.amplitudeService.track(ot.OrderCompleted,{"order id":e.id,"order total":e.total?.total,currency:"GBP","tax amount":e.total?.vat,"discount amount":i,"cart_contents.product_id":e.items.map(o=>o.productId),"cart_contents.quantity":e.items.map(o=>o.quantity)})}pushOptimizeActivate(){this.pushToDataLayer("optimize.activate")}pushToDataLayer(e,i){Ot.isSSR||window.dataLayer.push($({event:e},i))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ts=7500,is=(()=>{class t{constructor(){this.toasts=we([])}show(e,i={}){let o={textOrTpl:e,options:i};return this.toasts.update(r=>[...r,o]),o}showSuccessMessage(e,i={}){i.className="bg-success text-light",i.delay=i.delay??ts,i.autoHide=i.autoHide===void 0?!0:i.autoHide,this.show(e,i)}showErrorMessage(e,i={}){i.className="bg-danger text-light",i.delay=i.delay??ts,i.autoHide=i.autoHide===void 0?!0:i.autoHide,this.show(e,i)}showErrorWithLink(e,i,o){this.show(e,{className:"bg-danger text-light",autoHide:!1,linkUrl:o,linkText:i})}remove(e){this.toasts.update(i=>i.filter(o=>o!==e))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ft=(()=>{class t{constructor(){this.animation=!0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var le="top",Ae="bottom",be="right",pe="left",ln="auto",It=[le,Ae,be,pe],Dt="start",$t="end",ns="clippingParents",cn="viewport",ci="popper",os="reference",Xn=It.reduce(function(t,n){return t.concat([n+"-"+Dt,n+"-"+$t])},[]),dn=[].concat(It,[ln]).reduce(function(t,n){return t.concat([n,n+"-"+Dt,n+"-"+$t])},[]),Qa="beforeRead",Ja="read",Xa="afterRead",el="beforeMain",tl="main",il="afterMain",nl="beforeWrite",ol="write",rl="afterWrite",rs=[Qa,Ja,Xa,el,tl,il,nl,ol,rl];
vendor: 4,594 bytes, line 1
1function Ce(t){return t?(t.nodeName||"").toLowerCase():null}function te(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function Je(t){var n=te(t).Element;return t instanceof n||t instanceof Element}function fe(t){var n=te(t).HTMLElement;return t instanceof n||t instanceof HTMLElement}function di(t){if(typeof ShadowRoot>"u")return!1;var n=te(t).ShadowRoot;return t instanceof n||t instanceof ShadowRoot}function sl(t){var n=t.state;Object.keys(n.elements).forEach(function(e){var i=n.styles[e]||{},o=n.attributes[e]||{},r=n.elements[e];!fe(r)||!Ce(r)||(Object.assign(r.style,i),Object.keys(o).forEach(function(s){var l=o[s];l===!1?r.removeAttribute(s):r.setAttribute(s,l===!0?"":l)}))})}function al(t){var n=t.state,e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,e.popper),n.styles=e,n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow),function(){Object.keys(n.elements).forEach(function(i){var o=n.elements[i],r=n.attributes[i]||{},s=Object.keys(n.styles.hasOwnProperty(i)?n.styles[i]:e[i]),l=s.reduce(function(c,d){return c[d]="",c},{});!fe(o)||!Ce(o)||(Object.assign(o.style,l),Object.keys(r).forEach(function(c){o.removeAttribute(c)}))})}}var ss={name:"applyStyles",enabled:!0,phase:"write",fn:sl,effect:al,requires:["computeStyles"]};function De(t){return t.split("-")[0]}var rt=Math.max,Wt=Math.min,Mt=Math.round;function ui(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function Pi(){return!/^((?!chrome|android).)*safari/i.test(ui())}function Xe(t,n,e){n===void 0&&(n=!1),e===void 0&&(e=!1);var i=t.getBoundingClientRect(),o=1,r=1;n&&fe(t)&&(o=t.offsetWidth>0&&Mt(i.width)/t.offsetWidth||1,r=t.offsetHeight>0&&Mt(i.height)/t.offsetHeight||1);var s=Je(t)?te(t):window,l=s.visualViewport,c=!Pi()&&e,d=(i.left+(c&&l?l.offsetLeft:0))/o,u=(i.top+(c&&l?l.offsetTop:0))/r,b=i.width/o,p=i.height/r;return{width:b,height:p,top:u,right:d+b,bottom:u+p,left:d,x:d,y:u}}function zt(t){var n=Xe(t),e=t.offsetWidth,i=t.offsetHeight;return Math.abs(n.width-e)<=1&&(e=n.width),Math.abs(n.height-i)<=1&&(i=n.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:i}}function xi(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&di(e)){var i=n;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Fe(t){return te(t).getComputedStyle(t)}function eo(t){return["table","td","th"].indexOf(Ce(t))>=0}function Ie(t){return((Je(t)?t.ownerDocument:t.document)||window.document).documentElement}function St(t){return Ce(t)==="html"?t:t.assignedSlot||t.parentNode||(di(t)?t.host:null)||Ie(t)}function as(t){return!fe(t)||Fe(t).position==="fixed"?null:t.offsetParent}function ll(t){var n=/firefox/i.test(ui()),e=/Trident/i.test(ui());if(e&&fe(t)){var i=Fe(t);if(i.position==="fixed")return null}var o=St(t);for(di(o)&&(o=o.host);fe(o)&&["html","body"].indexOf(Ce(o))<0;){var r=Fe(o);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||n&&r.willChange==="filter"||n&&r.filter&&r.filter!=="none")return o;o=o.parentNode}return null}function st(t){for(var n=te(t),e=as(t);e&&eo(e)&&Fe(e).position==="static";)e=as(e);return e&&(Ce(e)==="html"||Ce(e)==="body"&&Fe(e).position==="static")?n:e||ll(t)||n}function qt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Kt(t,n,e){return rt(t,Wt(n,e))}function ls(t,n,e){var i=Kt(t,n,e);return i>e?e:i}function Bi(){return{top:0,right:0,bottom:0,left:0}}function ki(t){return Object.assign({},Bi(),t)}function Fi(t,n){return n.reduce(function(e,i){return e[i]=t,e},{})}var cl=function(n,e){return n=typeof n=="function"?n(Object.assign({},e.rects,{placement:e.placement})):n,ki(typeof n!="number"?n:Fi(n,It))};function dl(t){var n,e=t.state,i=t.name,o=t.options,r=e.elements.arrow,s=e.modifiersData.popperOffsets,l=De(e.placement),c=qt(l),d=[pe,be].indexOf(l)>=0,u=d?"height":"width";if(!(!r||!s)){var b=cl(o.padding,e),p=zt(r),m=c==="y"?le:pe,U=c==="y"?Ae:be,A=e.rects.reference[u]+e.rects.reference[c]-s[c]-e.rects.popper[u],N=s[c]-e.rects.reference[c],x=st(r),I=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,Q=A/2-N/2,E=b[m],V=I-p[u]-b[U],H=I/2-p[u]/2+Q,J=Kt(E,H,V),K=c;e.modifiersData[i]=(n={},n[K]=J,n.centerOffset=J-H,n)}}function ul(t){var n=t.state,e=t.options,i=e.element,o=i===void 0?"[data-popper-arrow]":i;
vendor: 3,376 bytes, line 1
1o!=null&&(typeof o=="string"&&(o=n.elements.popper.querySelector(o),!o)||xi(n.elements.popper,o)&&(n.elements.arrow=o))}var to={name:"arrow",enabled:!0,phase:"main",fn:dl,effect:ul,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function et(t){return t.split("-")[1]}var hl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pl(t,n){var e=t.x,i=t.y,o=n.devicePixelRatio||1;return{x:Mt(e*o)/o||0,y:Mt(i*o)/o||0}}function cs(t){var n,e=t.popper,i=t.popperRect,o=t.placement,r=t.variation,s=t.offsets,l=t.position,c=t.gpuAcceleration,d=t.adaptive,u=t.roundOffsets,b=t.isFixed,p=s.x,m=p===void 0?0:p,U=s.y,A=U===void 0?0:U,N=typeof u=="function"?u({x:m,y:A}):{x:m,y:A};m=N.x,A=N.y;var x=s.hasOwnProperty("x"),I=s.hasOwnProperty("y"),Q=pe,E=le,V=window;if(d){var H=st(e),J="clientHeight",K="clientWidth";if(H===te(e)&&(H=Ie(e),Fe(H).position!=="static"&&l==="absolute"&&(J="scrollHeight",K="scrollWidth")),H=H,o===le||(o===pe||o===be)&&r===$t){E=Ae;var me=b&&H===V&&V.visualViewport?V.visualViewport.height:H[J];A-=me-i.height,A*=c?1:-1}if(o===pe||(o===le||o===Ae)&&r===$t){Q=be;var ce=b&&H===V&&V.visualViewport?V.visualViewport.width:H[K];m-=ce-i.width,m*=c?1:-1}}var Re=Object.assign({position:l},d&&hl),it=u===!0?pl({x:m,y:A},te(e)):{x:m,y:A};if(m=it.x,A=it.y,c){var ke;return Object.assign({},Re,(ke={},ke[E]=I?"0":"",ke[Q]=x?"0":"",ke.transform=(V.devicePixelRatio||1)<=1?"translate("+m+"px, "+A+"px)":"translate3d("+m+"px, "+A+"px, 0)",ke))}return Object.assign({},Re,(n={},n[E]=I?A+"px":"",n[Q]=x?m+"px":"",n.transform="",n))}function fl(t){var n=t.state,e=t.options,i=e.gpuAcceleration,o=i===void 0?!0:i,r=e.adaptive,s=r===void 0?!0:r,l=e.roundOffsets,c=l===void 0?!0:l,d={placement:De(n.placement),variation:et(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:o,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,cs(Object.assign({},d,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:s,roundOffsets:c})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,cs(Object.assign({},d,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}var ds={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fl,data:{}};var un={passive:!0};function ml(t){var n=t.state,e=t.instance,i=t.options,o=i.scroll,r=o===void 0?!0:o,s=i.resize,l=s===void 0?!0:s,c=te(n.elements.popper),d=[].concat(n.scrollParents.reference,n.scrollParents.popper);return r&&d.forEach(function(u){u.addEventListener("scroll",e.update,un)}),l&&c.addEventListener("resize",e.update,un),function(){r&&d.forEach(function(u){u.removeEventListener("scroll",e.update,un)}),l&&c.removeEventListener("resize",e.update,un)}}var us={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ml,data:{}};var _l={left:"right",right:"left",bottom:"top",top:"bottom"};function hi(t){return t.replace(/left|right|bottom|top/g,function(n){return _l[n]})}var gl={start:"end",end:"start"};function hn(t){return t.replace(/start|end/g,function(n){return gl[n]})}function Yt(t){var n=te(t),e=n.pageXOffset,i=n.pageYOffset;return{scrollLeft:e,scrollTop:i}}function Zt(t){return Xe(Ie(t)).left+Yt(t).scrollLeft}
vendor: 4,278 bytes, line 1
1function io(t,n){var e=te(t),i=Ie(t),o=e.visualViewport,r=i.clientWidth,s=i.clientHeight,l=0,c=0;if(o){r=o.width,s=o.height;var d=Pi();(d||!d&&n==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:r,height:s,x:l+Zt(t),y:c}}function no(t){var n,e=Ie(t),i=Yt(t),o=(n=t.ownerDocument)==null?void 0:n.body,r=rt(e.scrollWidth,e.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=rt(e.scrollHeight,e.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-i.scrollLeft+Zt(t),c=-i.scrollTop;return Fe(o||e).direction==="rtl"&&(l+=rt(e.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:l,y:c}}function Qt(t){var n=Fe(t),e=n.overflow,i=n.overflowX,o=n.overflowY;return/auto|scroll|overlay|hidden/.test(e+o+i)}function pn(t){return["html","body","#document"].indexOf(Ce(t))>=0?t.ownerDocument.body:fe(t)&&Qt(t)?t:pn(St(t))}function Rt(t,n){var e;n===void 0&&(n=[]);var i=pn(t),o=i===((e=t.ownerDocument)==null?void 0:e.body),r=te(i),s=o?[r].concat(r.visualViewport||[],Qt(i)?i:[]):i,l=n.concat(s);return o?l:l.concat(Rt(St(s)))}function pi(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function vl(t,n){var e=Xe(t,!1,n==="fixed");return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function hs(t,n,e){return n===cn?pi(io(t,e)):Je(n)?vl(n,e):pi(no(Ie(t)))}function yl(t){var n=Rt(St(t)),e=["absolute","fixed"].indexOf(Fe(t).position)>=0,i=e&&fe(t)?st(t):t;return Je(i)?n.filter(function(o){return Je(o)&&xi(o,i)&&Ce(o)!=="body"}):[]}function oo(t,n,e,i){var o=n==="clippingParents"?yl(t):[].concat(n),r=[].concat(o,[e]),s=r[0],l=r.reduce(function(c,d){var u=hs(t,d,i);return c.top=rt(u.top,c.top),c.right=Wt(u.right,c.right),c.bottom=Wt(u.bottom,c.bottom),c.left=rt(u.left,c.left),c},hs(t,s,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Vi(t){var n=t.reference,e=t.element,i=t.placement,o=i?De(i):null,r=i?et(i):null,s=n.x+n.width/2-e.width/2,l=n.y+n.height/2-e.height/2,c;switch(o){case le:c={x:s,y:n.y-e.height};break;case Ae:c={x:s,y:n.y+n.height};break;case be:c={x:n.x+n.width,y:l};break;case pe:c={x:n.x-e.width,y:l};break;default:c={x:n.x,y:n.y}}var d=o?qt(o):null;if(d!=null){var u=d==="y"?"height":"width";switch(r){case Dt:c[d]=c[d]-(n[u]/2-e[u]/2);break;case $t:c[d]=c[d]+(n[u]/2-e[u]/2);break;default:}}return c}function Pt(t,n){n===void 0&&(n={});var e=n,i=e.placement,o=i===void 0?t.placement:i,r=e.strategy,s=r===void 0?t.strategy:r,l=e.boundary,c=l===void 0?ns:l,d=e.rootBoundary,u=d===void 0?cn:d,b=e.elementContext,p=b===void 0?ci:b,m=e.altBoundary,U=m===void 0?!1:m,A=e.padding,N=A===void 0?0:A,x=ki(typeof N!="number"?N:Fi(N,It)),I=p===ci?os:ci,Q=t.rects.popper,E=t.elements[U?I:p],V=oo(Je(E)?E:E.contextElement||Ie(t.elements.popper),c,u,s),H=Xe(t.elements.reference),J=Vi({reference:H,element:Q,strategy:"absolute",placement:o}),K=pi(Object.assign({},Q,J)),me=p===ci?K:H,ce={top:V.top-me.top+x.top,bottom:me.bottom-V.bottom+x.bottom,left:V.left-me.left+x.left,right:me.right-V.right+x.right},Re=t.modifiersData.offset;if(p===ci&&Re){var it=Re[o];Object.keys(ce).forEach(function(ke){var Vt=[be,Ae].indexOf(ke)>=0?1:-1,Lt=[le,Ae].indexOf(ke)>=0?"y":"x";ce[ke]+=it[Lt]*Vt})}return ce}function ro(t,n){n===void 0&&(n={});var e=n,i=e.placement,o=e.boundary,r=e.rootBoundary,s=e.padding,l=e.flipVariations,c=e.allowedAutoPlacements,d=c===void 0?dn:c,u=et(i),b=u?l?Xn:Xn.filter(function(U){return et(U)===u}):It,p=b.filter(function(U){return d.indexOf(U)>=0});p.length===0&&(p=b);var m=p.reduce(function(U,A){return U[A]=Pt(t,{placement:A,boundary:o,rootBoundary:r,padding:s})[De(A)],U},{});return Object.keys(m).sort(function(U,A){return m[U]-m[A]})}function bl(t){if(De(t)===ln)return[];var n=hi(t);return[hn(t),n,hn(n)]}function Cl(t){var n=t.state,e=t.options,i=t.name;if(!n.modifiersData[i]._skip){for(var o=e.mainAxis,r=o===void 0?!0:o,s=e.altAxis,l=s===void 0?!0:s,c=e.fallbackPlacements,d=e.padding,u=e.boundary,b=e.rootBoundary,p=e.altBoundary,m=e.flipVariations,U=m===void 0?!0:m,A=e.allowedAutoPlacements,N=n.options.placement,x=De(N),I=x===N,Q=c||(I||!U?[hi(N)]:bl(N)),E=[N].concat(Q).reduce(function(ei,wt){return ei.concat(De(wt)===l
vendor: 4,294 bytes, line 1
1n?ro(n,{placement:wt,boundary:u,rootBoundary:b,padding:d,flipVariations:U,allowedAutoPlacements:A}):wt)},[]),V=n.rects.reference,H=n.rects.popper,J=new Map,K=!0,me=E[0],ce=0;ce<E.length;ce++){var Re=E[ce],it=De(Re),ke=et(Re)===Dt,Vt=[le,Ae].indexOf(it)>=0,Lt=Vt?"width":"height",$e=Pt(n,{placement:Re,boundary:u,rootBoundary:b,altBoundary:p,padding:d}),nt=Vt?ke?be:pe:ke?Ae:le;V[Lt]>H[Lt]&&(nt=hi(nt));var Ki=hi(nt),Gt=[];if(r&&Gt.push($e[it]<=0),l&&Gt.push($e[nt]<=0,$e[Ki]<=0),Gt.every(function(ei){return ei})){me=Re,K=!1;break}J.set(Re,Gt)}if(K)for(var Yi=U?3:1,Ln=function(wt){var Ei=E.find(function(Qi){var Ut=J.get(Qi);if(Ut)return Ut.slice(0,wt).every(function(Gn){return Gn})});if(Ei)return me=Ei,"break"},Ni=Yi;Ni>0;Ni--){var Zi=Ln(Ni);if(Zi==="break")break}n.placement!==me&&(n.modifiersData[i]._skip=!0,n.placement=me,n.reset=!0)}}var so={name:"flip",enabled:!0,phase:"main",fn:Cl,requiresIfExists:["offset"],data:{_skip:!1}};function Dl(t,n,e){var i=De(t),o=[pe,le].indexOf(i)>=0?-1:1,r=typeof e=="function"?e(Object.assign({},n,{placement:t})):e,s=r[0],l=r[1];return s=s||0,l=(l||0)*o,[pe,be].indexOf(i)>=0?{x:l,y:s}:{x:s,y:l}}function Ml(t){var n=t.state,e=t.options,i=t.name,o=e.offset,r=o===void 0?[0,0]:o,s=dn.reduce(function(u,b){return u[b]=Dl(b,n.rects,r),u},{}),l=s[n.placement],c=l.x,d=l.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=c,n.modifiersData.popperOffsets.y+=d),n.modifiersData[i]=s}var ao={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ml};function Sl(t){var n=t.state,e=t.name;n.modifiersData[e]=Vi({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})}var ps={name:"popperOffsets",enabled:!0,phase:"read",fn:Sl,data:{}};function lo(t){return t==="x"?"y":"x"}function wl(t){var n=t.state,e=t.options,i=t.name,o=e.mainAxis,r=o===void 0?!0:o,s=e.altAxis,l=s===void 0?!1:s,c=e.boundary,d=e.rootBoundary,u=e.altBoundary,b=e.padding,p=e.tether,m=p===void 0?!0:p,U=e.tetherOffset,A=U===void 0?0:U,N=Pt(n,{boundary:c,rootBoundary:d,padding:b,altBoundary:u}),x=De(n.placement),I=et(n.placement),Q=!I,E=qt(x),V=lo(E),H=n.modifiersData.popperOffsets,J=n.rects.reference,K=n.rects.popper,me=typeof A=="function"?A(Object.assign({},n.rects,{placement:n.placement})):A,ce=typeof me=="number"?{mainAxis:me,altAxis:me}:Object.assign({mainAxis:0,altAxis:0},me),Re=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,it={x:0,y:0};if(H){if(r){var ke,Vt=E==="y"?le:pe,Lt=E==="y"?Ae:be,$e=E==="y"?"height":"width",nt=H[E],Ki=nt+N[Vt],Gt=nt-N[Lt],Yi=m?-K[$e]/2:0,Ln=I===Dt?J[$e]:K[$e],Ni=I===Dt?-K[$e]:-J[$e],Zi=n.elements.arrow,ei=m&&Zi?zt(Zi):{width:0,height:0},wt=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:Bi(),Ei=wt[Vt],Qi=wt[Lt],Ut=Kt(0,J[$e],ei[$e]),Gn=Q?J[$e]/2-Yi-Ut-Ei-ce.mainAxis:Ln-Ut-Ei-ce.mainAxis,Fa=Q?-J[$e]/2+Yi+Ut+Qi+ce.mainAxis:Ni+Ut+Qi+ce.mainAxis,Un=n.elements.arrow&&st(n.elements.arrow),Va=Un?E==="y"?Un.clientTop||0:Un.clientLeft||0:0,pr=(ke=Re?.[E])!=null?ke:0,La=nt+Gn-pr-Va,Ga=nt+Fa-pr,fr=Kt(m?Wt(Ki,La):Ki,nt,m?rt(Gt,Ga):Gt);H[E]=fr,it[E]=fr-nt}if(l){var mr,Ua=E==="x"?le:pe,Ha=E==="x"?Ae:be,Ht=H[V],Ji=V==="y"?"height":"width",_r=Ht+N[Ua],gr=Ht-N[Ha],Hn=[le,pe].indexOf(x)!==-1,vr=(mr=Re?.[V])!=null?mr:0,yr=Hn?_r:Ht-J[Ji]-K[Ji]-vr+ce.altAxis,br=Hn?Ht+J[Ji]+K[Ji]-vr-ce.altAxis:gr,Cr=m&&Hn?ls(yr,Ht,br):Kt(m?yr:_r,Ht,m?br:gr);H[V]=Cr,it[V]=Cr-Ht}n.modifiersData[i]=it}}var co={name:"preventOverflow",enabled:!0,phase:"main",fn:wl,requiresIfExists:["offset"]};function uo(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function ho(t){return t===te(t)||!fe(t)?Yt(t):uo(t)}function Nl(t){var n=t.getBoundingClientRect(),e=Mt(n.width)/t.offsetWidth||1,i=Mt(n.height)/t.offsetHeight||1;return e!==1||i!==1}function po(t,n,e){e===void 0&&(e=!1);var i=fe(n),o=fe(n)&&Nl(n),r=Ie(n),s=Xe(t,o,e),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!e)&&((Ce(n)!=="body"||Qt(r))&&(l=ho(n)),fe(n)?(c=Xe(n,!0),c.x+=n.clientLeft,c.y+=n.clientTop):r&&(c.x=Zt(r))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function El(t){var n=new Map,e=new Set,i=[];t.forEach(function(r){n.set(r.name,r)});function o(r){e.add(r.name);var s=[].concat(r.requires||[],r.requiresIfExists||[]);
1s.forEach(function(l){if(!e.has(l)){var c=n.get(l);c&&o(c)}}),i.push(r)}return t.forEach(function(r){e.has(r.name)||o(r)}),i}function fo(t){var n=El(t);return rs.reduce(function(e,i){return e.concat(n.filter(function(o){return o.phase===i}))},[])}function mo(t){var n;return function(){return n||(n=new Promise(function(e){Promise.resolve().then(function(){n=void 0,e(t())})})),n}}function _o(t){var n=t.reduce(function(e,i){var o=e[i.name];return e[i.name]=o?Object.assign({},o,i,{options:Object.assign({},o.options,i.options),data:Object.assign({},o.data,i.data)}):i,e},{});return Object.keys(n).map(function(e){return n[e]})}var fs={placement:"bottom",modifiers:[],strategy:"absolute"};function ms(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return!n.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function _s(t){t===void 0&&(t={});var n=t,e=n.defaultModifiers,i=e===void 0?[]:e,o=n.defaultOptions,r=o===void 0?fs:o;return function(l,c,d){d===void 0&&(d=r);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},fs,r),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},b=[],p=!1,m={state:u,setOptions:function(x){var I=typeof x=="function"?x(u.options):x;A(),u.options=Object.assign({},r,u.options,I),u.scrollParents={reference:Je(l)?Rt(l):l.contextElement?Rt(l.contextElement):[],popper:Rt(c)};var Q=fo(_o([].concat(i,u.options.modifiers)));return u.orderedModifiers=Q.filter(function(E){return E.enabled}),U(),m.update()},forceUpdate:function(){if(!p){var x=u.elements,I=x.reference,Q=x.popper;if(ms(I,Q)){u.rects={reference:po(I,st(Q),u.options.strategy==="fixed"),popper:zt(Q)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(ce){return u.modifiersData[ce.name]=Object.assign({},ce.data)});for(var E=0;E<u.orderedModifiers.length;E++){if(u.reset===!0){u.reset=!1,E=-1;continue}var V=u.orderedModifiers[E],H=V.fn,J=V.options,K=J===void 0?{}:J,me=V.name;typeof H=="function"&&(u=H({state:u,options:K,name:me,instance:m})||u)}}}},update:mo(function(){return new Promise(function(N){m.forceUpdate(),N(u)})}),destroy:function(){A(),p=!0}};if(!ms(l,c))return m;m.setOptions(d).then(function(N){!p&&d.onFirstUpdate&&d.onFirstUpdate(N)});function U(){u.orderedModifiers.forEach(function(N){var x=N.name,I=N.options,Q=I===void 0?{}:I,E=N.effect;if(typeof E=="function"){var V=E({state:u,name:x,instance:m,options:Q}),H=function(){};b.push(V||H)}})}function A(){b.forEach(function(N){return N()}),b=[]}return m}}var Ol=[us,ps,ds,ss],go=_s({defaultModifiers:Ol});var Tl=(()=>{class t{constructor(){this._element=a(xe).documentElement}isRTL(){return(this._element.getAttribute("dir")||"").toLowerCase()==="rtl"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Al=/\s+/,Il=/ +/gi,Rl={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]};function Pl(t,n){let[e,i]=Rl[t];return n&&i||e}var xl=/^left/,Bl=/^right/,kl=/^start/,Fl=/^end/;function Vl(t,n){let[e,i]=n.split("-"),o=e.replace(xl,"start").replace(Bl,"end"),r=[o];if(i){let s=i;(e==="left"||e==="right")&&(s=s.replace(kl,"top").replace(Fl,"bottom")),r.push(`${o}-${s}`)}return t&&(r=r.map(s=>`${t}-${s}`)),r.join(" ")}function gs({placement:t,baseClass:n},e){let i=Array.isArray(t)?t:t.split(Al),o=["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"],r=i.findIndex(d=>d==="auto");r>=0&&o.forEach(function(d){i.find(u=>u.search("^"+d)!==-1)==null&&i.splice(r++,1,d)});let s=i.map(d=>Pl(d,e.isRTL()));return{placement:s.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!n,phase:"write",fn({state:d}){let u=new RegExp(n+"(-[a-z]+)*","gi"),b=d.elements.popper,p=d.placement,m=b.className;m=m.replace(u,""),m+=` ${Vl(n,p)}`,m=m.trim().replace(Il," "),b.className=m}}
1,so,co,to,{enabled:!0,name:"flip",options:{fallbackPlacements:s}}]}}function vs(t){return t}function fi(){let t=a(Tl),n=null;return{createPopper(e){if(!n){let o=(e.updatePopperOptions||vs)(gs(e,t));n=go(e.hostElement,e.targetElement,o)}},update(){n&&n.update()},setOptions(e){if(n){let o=(e.updatePopperOptions||vs)(gs(e,t));n.setOptions(o)}},destroy(){n&&(n.destroy(),n=null)}}}function tt(t){return parseInt(`${t}`,10)}function mi(t){return t!=null?`${t}`:""}function xt(t){return typeof t=="string"}function _t(t){return!isNaN(tt(t))}function Ve(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function at(t){return t!=null}function Cs(t){return t&&t.then}function vo(t){return _t(t)?`0${t}`.slice(-2):""}function Ds(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Ll(t,n){return!n||typeof t.closest>"u"?null:t.closest(n)}function Bt(t){return(t||document.body).getBoundingClientRect()}function Gl(t){return n=>new Mr(e=>{let i=s=>t.run(()=>e.next(s)),o=s=>t.run(()=>e.error(s)),r=()=>t.run(()=>e.complete());return n.subscribe({next:i,error:o,complete:r})})}function yo(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function bo(t=document){let n=t?.activeElement;return n?n.shadowRoot?bo(n.shadowRoot):n:null}function Ul(t){let{transitionDelay:n,transitionDuration:e}=window.getComputedStyle(t),i=parseFloat(n),o=parseFloat(e);return(i+o)*1e3}var Hl=()=>{},jl={getTransitionTimerDelayMs:()=>5},fn=new Map,Me=(t,n,e,i)=>{let o=i.context||{},r=fn.get(n);if(r)switch(i.runningTransition){case"continue":return wr;case"stop":t.run(()=>r.transition$.complete()),o=Object.assign(r.context,o),fn.delete(n)}let s=e(n,i.animation,o)||Hl;if(!i.animation||window.getComputedStyle(n).transitionProperty==="none")return t.run(()=>s()),Pe(void 0).pipe(Gl(t));let l=new X,c=new X,d=l.pipe(Rr(!0));fn.set(n,{transition$:l,complete:()=>{c.next(),c.complete()},context:o});let u=Ul(n);return t.runOutsideAngular(()=>{let b=re(n,"transitionend").pipe(Se(d),Ge(({target:m})=>m===n)),p=Or(u+jl.getTransitionTimerDelayMs()).pipe(Se(d));jn(p,b,c).pipe(Se(d)).subscribe(()=>{fn.delete(n),t.run(()=>{s(),l.next(),l.complete()})})}),l.asObservable()};function $l(t,n){if(typeof navigator>"u")return"0px";let{classList:e}=t,i=e.contains("show");i||e.add("show"),t.style[n]="";let o=t.getBoundingClientRect()[n]+"px";return i||e.remove("show"),o}var Ms=(t,n,e)=>{let{direction:i,maxSize:o,dimension:r}=e,{classList:s}=t;function l(){s.add("collapse"),i==="show"?s.add("show"):s.remove("show")}if(!n){l();return}return o||(o=$l(t,r),e.maxSize=o,t.style[r]=i!=="show"?o:"0px",s.remove("collapse","collapsing","show"),Bt(t),s.add("collapsing")),t.style[r]=i==="show"?o:"0px",()=>{l(),s.remove("collapsing"),t.style[r]=""}},mn=(t,n)=>n?n.some(e=>e.contains(t)):!1,ys=(t,n)=>!n||Ll(t,n)!=null,Wl=(()=>{let t=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,n=()=>/Android/.test(navigator.userAgent);return typeof navigator<"u"?!!navigator.userAgent&&(t()||n()):!1})(),zl=t=>Wl?()=>setTimeout(()=>t(),100):t;function _i(t,n,e,i,o,r,s,l){e&&t.runOutsideAngular(zl(()=>{let c=p=>{let m=p.target;return p.button===2||mn(m,s)?!1:e==="inside"?mn(m,r)&&ys(m,l):e==="outside"?!mn(m,r):ys(m,l)||!mn(m,r)},d=re(n,"keydown").pipe(Se(o),Ge(p=>p.key==="Escape"),W(p=>p.preventDefault())),u=re(n,"mousedown").pipe(B(c),Se(o)),b=re(n,"mouseup").pipe(tn(u),Ge(([p,m])=>m),Ar(0),Se(o));jn([d.pipe(B(p=>0)),b.pipe(B(p=>1))]).subscribe(p=>t.run(()=>i(p)))}))}var Co=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Do(t){let n=Array.from(t.querySelectorAll(Co)).filter(e=>e.tabIndex!==-1);return[n[0],n[n.length-1]]}var gn=(t,n,e,i=!1)=>{t.runOutsideAngular(()=>{let o=re(n,"focusin").pipe(Se(e),B(r=>r.target));re(n,"keydown").pipe(Se(e),Ge(r=>r.key==="Tab"),tn(o)).subscribe(([r,s])=>{let[l,c]=Do(n);(s===l||s===n)&&r.shiftKey&&(c.focus(),r.preventDefault()),s===c&&!r.shiftKey&&(l.focus(),r.preventDefault())}),i&&re(n,"click").pipe(Se(e),tn(o),B(r=>r[1])).subscribe(r=>r.focus())})};function gi(t){return n=>(n.modifiers.push(ao,{name:"offset",options:{offset:()=>t}}),n)}var mt=class{constructor(n,e,i){this.nodes=n,this.viewRef=e,this.componentRef=i}},_n=class{constructor(n){this._componentType=n,this._windowRef=null,this._contentRef=null,this._document=a(xe),this._applicationRef=a(oi),this._injector=a(ue),this._viewContainerRef
1=a(ni),this._ngZone=a(se)}open(n,e,i=!1){this._windowRef||(this._contentRef=this._getContentRef(n,e),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));let{nativeElement:o}=this._windowRef.location,r=new X;ze({mixedReadWrite:()=>{r.next(),r.complete()}},{injector:this._injector});let s=r.pipe(dt(()=>Me(this._ngZone,o,({classList:l})=>l.add("show"),{animation:i,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:s}}close(n=!1){return this._windowRef?Me(this._ngZone,this._windowRef.location.nativeElement,({classList:e})=>e.remove("show"),{animation:n,runningTransition:"stop"}).pipe(W(()=>{this._windowRef?.destroy(),this._contentRef?.viewRef?.destroy(),this._windowRef=null,this._contentRef=null})):Pe(void 0)}_getContentRef(n,e){if(n)if(n instanceof Qe){let i=n.createEmbeddedView(e);return this._applicationRef.attachView(i),new mt([i.rootNodes],i)}else return new mt([[this._document.createTextNode(`${n}`)]]);else return new mt([])}},Ss=(()=>{class t{constructor(){this._document=a(xe)}hide(){let e=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,o=i.style,{overflow:r,paddingRight:s}=o;if(e>0){let l=parseFloat(window.getComputedStyle(i).paddingRight);o.paddingRight=`${l+e}px`}return o.overflow="hidden",()=>{e>0&&(o.paddingRight=s),o.overflow=r}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ql=new gt("live announcer delay",{providedIn:"root",factory:()=>100});function bs(t,n=!1){let e=t.body.querySelector("#ngb-live");return e==null&&n&&(e=t.createElement("div"),e.setAttribute("id","ngb-live"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),e.classList.add("visually-hidden"),t.body.appendChild(e)),e}var ws=(()=>{class t{constructor(){this._document=a(xe),this._delay=a(ql)}ngOnDestroy(){let e=bs(this._document);e&&e.parentElement.removeChild(e)}say(e){let i=bs(this._document,!0),o=this._delay;if(i!=null){i.textContent="";let r=()=>i.textContent=e;o===null?r():setTimeout(r,o)}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Kl=(()=>{class t{constructor(){this._ngbConfig=a(ft),this.horizontal=!1}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),vn=(()=>{class t{constructor(){this._config=a(Kl),this._element=a(L),this._zone=a(se),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new C,this.horizontal=this._config.horizontal,this.shown=new C,this.hidden=new C}set collapsed(e){this._isCollapsed!==e&&(this._isCollapsed=e,this._afterInit&&this._runTransitionWithEvents(e,this.animation))}ngOnInit(){this._runTransition(this._isCollapsed,!1),this._afterInit=!0}toggle(e=this._isCollapsed){this.collapsed=!e,this.ngbCollapseChange.next(this._isCollapsed)}_runTransition(e,i){return Me(this._zone,this._element.nativeElement,Ms,{animation:i,runningTransition:"stop",context:{direction:e?"hide":"show",dimension:this.horizontal?"width":"height"}})}_runTransitionWithEvents(e,i){this._runTransition(e,i).subscribe(()=>{e?this.hidden.emit():this.shown.emit()})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=_({type:t,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(i,o){i&2&&D("collapse-horizontal",o.horizontal)},inputs:{animation:"animation",collapsed:[0,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"]})}}return t})(),Mo=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=S({type:t})}static{this.\u0275inj=M({})}}return t})();var Zl=["container"],Ql=["ngbAccordionBody",""],Jl=["*"],Xl=(()=>{class t{constructor(){this._ngbConfig=a(ft),this.closeOthers=!1,this.destroyOnHide=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ec=0,P_=(()=>{class t{constructor(){this._item=a(vi),this._viewRef=null,this.elementRef=a(L)}ngAfterContentChecked(){this._bodyTpl&&(this._item._shouldBeInDOM?this._createViewIfNotExists():this._destroyViewIfExists())}ngOnDestroy(){this._destroyViewIfExists()}_destroyViewIfExists(){this._viewRef?.destroy(),this._viewRef=null}_createViewIfNotExists(){this._viewRef||(this._viewRef=this._vcr.createEmbeddedView(this._bodyTpl),this._viewRef.detectChanges())}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=k({type:t,selectors:[["","ngbAccordionBody",""]],contentQueries:function(i,o,r){if(i&1&&ve(r,Qe,7),i&2){let s;z(s=q())&&(o._bodyTpl=s.first)}},viewQuery:function(i,o){if(i&1&&vt(Zl,7,ni),i&2){let r;z(r=q())&&(o._vcr=r.first)}}
1,hostAttrs:[1,"accordion-body"],attrs:Ql,ngContentSelectors:Jl,decls:3,vars:0,consts:[["container",""]],template:function(i,o){i&1&&(Ye(),Ur(0,null,0),Ue(2))},encapsulation:2})}}return t})(),tc=(()=>{class t{constructor(){this.item=a(vi),this.ngbCollapse=a(vn)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=_({type:t,selectors:[["","ngbAccordionCollapse",""]],hostAttrs:["role","region",1,"accordion-collapse"],hostVars:2,hostBindings:function(i,o){i&2&&(Y("id",o.item.collapseId),j("aria-labelledby",o.item.toggleId))},exportAs:["ngbAccordionCollapse"],features:[Wn([vn])]})}}return t})(),ic=(()=>{class t{constructor(){this.item=a(vi),this.accordion=a(Ns)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=_({type:t,selectors:[["","ngbAccordionToggle",""]],hostVars:5,hostBindings:function(i,o){i&1&&w("click",function(){return!o.item.disabled&&o.accordion.toggle(o.item.id)}),i&2&&(Y("id",o.item.toggleId),j("aria-controls",o.item.collapseId)("aria-expanded",!o.item.collapsed),D("collapsed",o.item.collapsed))}})}}return t})(),x_=(()=>{class t{constructor(){this.item=a(vi)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=_({type:t,selectors:[["button","ngbAccordionButton",""]],hostAttrs:["type","button",1,"accordion-button"],hostVars:1,hostBindings:function(i,o){i&2&&Y("disabled",o.item.disabled)},features:[Wn([ic])]})}}return t})(),B_=(()=>{class t{constructor(){this.item=a(vi)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=_({type:t,selectors:[["","ngbAccordionHeader",""]],hostAttrs:["role","heading",1,"accordion-header"],hostVars:2,hostBindings:function(i,o){i&2&&D("collapsed",o.item.collapsed)}})}}return t})(),vi=(()=>{class t{constructor(){this._accordion=a(Ns),this._cd=a(he),this._destroyRef=a(Et),this._collapsed=!0,this._id=`ngb-accordion-item-${ec++}`,this._collapseAnimationRunning=!1,this.disabled=!1,this.show=new C,this.shown=new C,this.hide=new C,this.hidden=new C}set id(e){xt(e)&&e!==""&&(this._id=e)}set destroyOnHide(e){this._destroyOnHide=e}get destroyOnHide(){return this._destroyOnHide===void 0?this._accordion.destroyOnHide:this._destroyOnHide}set collapsed(e){e?this.collapse():this.expand()}get collapsed(){return this._collapsed}get id(){return`${this._id}`}get toggleId(){return`${this.id}-toggle`}get collapseId(){return`${this.id}-collapse`}get _shouldBeInDOM(){return!this.collapsed||this._collapseAnimationRunning||!this.destroyOnHide}ngAfterContentInit(){let{ngbCollapse:e}=this._collapse;e.animation=!1,e.collapsed=this.collapsed,e.animation=this._accordion.animation,e.hidden.pipe(pt(this._destroyRef)).subscribe(()=>{this._collapseAnimationRunning=!1,this.hidden.emit(),this._accordion.hidden.emit(this.id),this._cd.markForCheck()}),e.shown.pipe(pt(this._destroyRef)).subscribe(()=>{this.shown.emit(),this._accordion.shown.emit(this.id),this._cd.markForCheck()})}toggle(){this.collapsed=!this.collapsed}expand(){if(this.collapsed){if(!this._accordion._ensureCanExpand(this))return;this._collapsed=!1,this._cd.markForCheck(),this._cd.detectChanges(),this.show.emit(),this._accordion.show.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!1}}collapse(){this.collapsed||(this._collapsed=!0,this._collapseAnimationRunning=!0,this._cd.markForCheck(),this.hide.emit(),this._accordion.hide.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!0)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=_({type:t,selectors:[["","ngbAccordionItem",""]],contentQueries:function(i,o,r){if(i&1&&ve(r,tc,7),i&2){let s;z(s=q())&&(o._collapse=s.first)}},hostAttrs:[1,"accordion-item"],hostVars:1,hostBindings:function(i,o){i&2&&Y("id",o.id)},inputs:{id:[0,"ngbAccordionItem","id"],destroyOnHide:"destroyOnHide",disabled:"disabled",collapsed:"collapsed"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordionItem"]})}}return t})(),Ns=(()=>{class t{constructor(){this._config=a(Xl),this._anItemWasAlreadyExpandedDuringInitialisation=!1,this.animation=this._config.animation,this.closeOthers=this._config.closeOthers,this.destroyOnHide=this._config.destroyOnHide,this.show=new C,this.shown=new C,this.hide=new C,this.hidden=new C}
1toggle(e){this._getItem(e)?.toggle()}expand(e){this._getItem(e)?.expand()}expandAll(){this._items&&(this.closeOthers?this._items.find(e=>!e.collapsed)||this._items.first.expand():this._items.forEach(e=>e.expand()))}collapse(e){this._getItem(e)?.collapse()}collapseAll(){this._items?.forEach(e=>e.collapse())}isExpanded(e){let i=this._getItem(e);return i?!i.collapsed:!1}_ensureCanExpand(e){return this.closeOthers?this._items?(this._items.find(i=>!i.collapsed&&e!==i)?.collapse(),!0):this._anItemWasAlreadyExpandedDuringInitialisation?!1:(this._anItemWasAlreadyExpandedDuringInitialisation=!0,!0):!0}_getItem(e){return this._items?.find(i=>i.id===e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=_({type:t,selectors:[["","ngbAccordion",""]],contentQueries:function(i,o,r){if(i&1&&ve(r,vi,4),i&2){let s;z(s=q())&&(o._items=s)}},hostAttrs:[1,"accordion"],inputs:{animation:"animation",closeOthers:"closeOthers",destroyOnHide:"destroyOnHide"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordion"]})}}return t})();var So=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=S({type:t})}static{this.\u0275inj=M({})}}return t})();var Fs=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||t)(O(Ti),O(L))};static \u0275dir=_({type:t})}return t})(),Tn=(()=>{class t extends Fs{static \u0275fac=(()=>{let e;return function(o){return(e||(e=ae(t)))(o||t)}})();static \u0275dir=_({type:t,features:[ie]})}return t})(),lt=new gt(""),nc={provide:lt,useExisting:ne(()=>oc),multi:!0},oc=(()=>{class t extends Tn{writeValue(e){this.setProperty("checked",e)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=ae(t)))(o||t)}})();static \u0275dir=_({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(i,o){i&1&&w("change",function(s){return o.onChange(s.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[ee([nc]),ie]})}return t})(),rc={provide:lt,useExisting:ne(()=>Vs),multi:!0};function sc(){let t=Qn()?Qn().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var ac=new gt(""),Vs=(()=>{class t extends Fs{_compositionMode;_composing=!1;constructor(e,i,o){super(e,i),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!sc())}writeValue(e){let i=e??"";this.setProperty("value",i)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(i){return new(i||t)(O(Ti),O(L),O(ac,8))};static \u0275dir=_({type:t,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(i,o){i&1&&w("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)})},standalone:!1,features:[ee([rc]),ie]})}return t})();function Oo(t){return t==null||To(t)===0}function To(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var ct=new gt(""),Mi=new gt(""),lc=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Es=class{static min(n){return cc(n)}static max(n){return dc(n)}static required(n){return Ls(n)}static requiredTrue(n){return uc(n)}static email(n){return hc(n)}static minLength(n){return Gs(n)}static maxLength(n){return Us(n)}static pattern(n){return pc(n)}static nullValidator(n){return bn()}static compose(n){return qs(n)}static composeAsync(n){return Ks(n)}};function cc(t){return n=>{if(n.value==null||t==null)return null;let e=parseFloat(n.value);return!isNaN(e)&&e<t?{min:{min:t,actual:n.value}}:null}}function dc(t){return n=>{if(n.value==null||t==null)return null;let e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}function Ls(t){return Oo(t.value)?{required:!0}:null}function uc(t){return t.value===!0?null:{required:!0}}function hc(t){return Oo(t.value)||lc.test(t.value)?null:{email:!0}}function Gs(t){return n=>{let e=n.value?.length??To(n.value);return e===null||e===0?null:e<t?{minlength:{requiredLength:t,actualLength:e}}:null}}function Us(t){return n=>{let e=n.value?.length??To(n.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function pc(t){if(!t)return bn;let n,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>
vendor: 9,828 bytes, line 1
1{if(Oo(i.value))return null;let o=i.value;return n.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function bn(t){return null}function Hs(t){return t!=null}function js(t){return Vr(t)?Nr(t):t}function $s(t){let n={};return t.forEach(e=>{n=e!=null?$($({},n),e):n}),Object.keys(n).length===0?null:n}function Ws(t,n){return n.map(e=>e(t))}function fc(t){return!t.validate}function zs(t){return t.map(n=>fc(n)?n:e=>n.validate(e))}function qs(t){if(!t)return null;let n=t.filter(Hs);return n.length==0?null:function(e){return $s(Ws(e,n))}}function Ao(t){return t!=null?qs(zs(t)):null}function Ks(t){if(!t)return null;let n=t.filter(Hs);return n.length==0?null:function(e){let i=Ws(e,n).map(js);return Er(i).pipe(B($s))}}function Io(t){return t!=null?Ks(zs(t)):null}function Os(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function Ys(t){return t._rawValidators}function Zs(t){return t._rawAsyncValidators}function wo(t){return t?Array.isArray(t)?t:[t]:[]}function Cn(t,n){return Array.isArray(t)?t.includes(n):t===n}function Ts(t,n){let e=wo(n);return wo(t).forEach(o=>{Cn(e,o)||e.push(o)}),e}function As(t,n){return wo(n).filter(e=>!Cn(t,e))}var Dn=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Ao(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Io(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control?.reset(n)}hasError(n,e){return this.control?this.control.hasError(n,e):!1}getError(n,e){return this.control?this.control.getError(n,e):null}},Le=class extends Dn{name;get formDirective(){return null}get path(){return null}},Jt=class extends Dn{_parent=null;name=null;valueAccessor=null},Mn=class{_cd;constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var X_=(()=>{class t extends Mn{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(O(Jt,2))};static \u0275dir=_({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&D("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)},standalone:!1,features:[ie]})}return t})(),eg=(()=>{class t extends Mn{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(O(Le,10))};static \u0275dir=_({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){i&2&&D("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)("ng-submitted",o.isSubmitted)},standalone:!1,features:[ie]})}return t})();var Li="VALID",yn="INVALID",yi="PENDING",Gi="DISABLED",kt=class{},Sn=class extends kt{value;source;constructor(n,e){super(),this.value=n,this.source=e}},Hi=class extends kt{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e}},ji=class extends kt{touched;source;constructor(n,e){super(),this.touched=n,this.source=e}},bi=class extends kt{status;source;constructor(n,e){super(),this.status=n,this.source=e}},wn=class extends kt{source;constructor(n){super(),this.source=n}},Wi=class extends kt{source;constructor(n){super(),this.source=n}};function Ro(t){return(An(t)?t.validators:t)||null}function mc(t){return Array.isArray(t)?Ao(t):t||null}function Po(t,n){return(An(n)?n.asyncValidators:t)||null}function _c(t){return Array.isArray(t)?Io(t):t||null}function An(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function Qs(t,n,e){let i=t.controls;if(!(n?Object.keys(i):i).length)throw new nn(1e3,"");if(!i[e])throw new nn(1001,"")}function Js(t,n,e){t._forEachChild((i,o)=>{if(e[o]===void 0)throw new nn(-1002,"")})}var Ci=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(n,e){this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return bt(this.statusReactive)}set status(n){bt(()=>this.statusReactive.set(n))}_status=si(()=>this.statusReactive());statusReactive=we(void 0);get valid(){return this.status===Li}get invalid(){return this.status===yn}get pending(){return this.status===yi}get disabled(){return this.status===Gi}get enabled(){return this.status!==Gi}errors;get pristine(){return bt(this.pristineReactive)}set pristine(n){bt(()=>this.pristineReactive.set(n))}_pristine=si(()=>this.pristineReactive());pristineReactive=we(!0);get dirty(){return!this.pristine}get touched(){return bt(this.touchedReactive)}set touched(n){bt(()=>this.touchedReactive.set(n))}_touched=si(()=>this.touchedReactive());touchedReactive=we(!1);get untouched(){return!this.touched}_events=new X;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(Ts(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Ts(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(As(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(As(n,this._rawAsyncValidators))}hasValidator(n){return Cn(this._rawValidators,n)}hasAsyncValidator(n){return Cn(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let i=n.sourceControl??this;n.onlySelf||this._parent?.markAsTouched(de($({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new ji(!0,i))}markAllAsDirty(n={}){this.markAsDirty({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(n))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(n))}markAsUntouched(n={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=n.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:i})}),n.onlySelf||this._parent?._updateTouched(n,i),e&&n.emitEvent!==!1&&this._events.next(new ji(!1,i))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let i=n.sourceControl??this;n.onlySelf||this._parent?.markAsDirty(de($({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new Hi(!1,i))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=n.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),n.onlySelf||this._parent?._updatePristine(n,i),e&&n.emitEvent!==!1&&this._events.next(new Hi(!0,i))}markAsPending(n={}){this.status=yi;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new bi(this.status,e)),this.statusChanges.emit(this.status)),n.onlySelf||this._parent?.markAsPending(de($({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Gi,this.errors=null,this._forEachChild(o=>{o.disable(de($({},n),{onlySelf:!0}))}),this._updateValue();let i=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Sn(this.value,i)),this._events.next(new bi(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(de($({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);
1this.status=Li,this._forEachChild(i=>{i.enable(de($({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(de($({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n,e){n.onlySelf||(this._parent?.updateValueAndValidity(n),n.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Li||this.status===yi)&&this._runAsyncValidator(i,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Sn(this.value,e)),this._events.next(new bi(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),n.onlySelf||this._parent?.updateValueAndValidity(de($({},n),{sourceControl:e}))}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Gi:Li}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=yi,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:n!==!1};let i=js(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:e,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,o)=>i&&i._find(o),this)}getError(n,e){let i=e?this.get(e):this;return i?.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,e,i){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||i)&&this._events.next(new bi(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,i)}_initObservables(){this.valueChanges=new C,this.statusChanges=new C}_calculateStatus(){return this._allControlsDisabled()?Gi:this.errors?yn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(yi)?yi:this._anyControlsHaveStatus(yn)?yn:Li}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,e){let i=!this._anyControlsDirty(),o=this.pristine!==i;this.pristine=i,n.onlySelf||this._parent?._updatePristine(n,e),o&&this._events.next(new Hi(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new ji(this.touched,e)),n.onlySelf||this._parent?._updateTouched(n,e)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){An(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=mc(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=_c(this._rawAsyncValidators)}},Di=class extends Ci{constructor(n,e,i){super(Ro(e),Po(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}
1){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){Js(this,!0,n),Object.keys(n).forEach(i=>{Qs(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(i=>{let o=this.controls[i];o&&o.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,o)=>{i.reset(n?n[o]:null,de($({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new Wi(this))}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,i,o)=>((i.enabled||this.disabled)&&(e[o]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((o,r)=>{i=e(i,o,r)}),i}_allControlsDisabled(){for(let n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}};var No=class extends Di{};var zi=new gt("",{factory:()=>In}),In="always";function Rn(t,n){return[...n.path,t]}function Nn(t,n,e=In){xo(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),vc(t,n),bc(t,n),yc(t,n),gc(t,n)}function Is(t,n,e=!0){let i=()=>{};n?.valueAccessor?.registerOnChange(i),n?.valueAccessor?.registerOnTouched(i),On(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function En(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function gc(t,n){if(n.valueAccessor.setDisabledState){let e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function xo(t,n){let e=Ys(t);n.validator!==null?t.setValidators(Os(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let i=Zs(t);n.asyncValidator!==null?t.setAsyncValidators(Os(i,n.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let o=()=>t.updateValueAndValidity();En(n._rawValidators,o),En(n._rawAsyncValidators,o)}function On(t,n){let e=!1;if(t!==null){if(n.validator!==null){let o=Ys(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(s=>s!==n.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(n.asyncValidator!==null){let o=Zs(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(s=>s!==n.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}let i=()=>{};return En(n._rawValidators,i),En(n._rawAsyncValidators,i),e}function vc(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Xs(t,n)})}function yc(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Xs(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function Xs(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function bc(t,n){let e=(i,o)=>{n.valueAccessor.writeValue(i),o&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)}
1)}function ea(t,n){t==null,xo(t,n)}function Cc(t,n){return On(t,n)}function ta(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function Dc(t){return Object.getPrototypeOf(t.constructor)===Tn}function ia(t,n){t._syncPendingControls(),n.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function na(t,n){if(!n)return null;Array.isArray(n);let e,i,o;return n.forEach(r=>{r.constructor===Vs?e=r:Dc(r)?i=r:o=r}),o||i||e||null}function Mc(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}var Sc={provide:Le,useExisting:ne(()=>wc)},Ui=Promise.resolve(),wc=(()=>{class t extends Le{callSetDisabledState;get submitted(){return bt(this.submittedReactive)}_submitted=si(()=>this.submittedReactive());submittedReactive=we(!1);_directives=new Set;form;ngSubmit=new C;options;constructor(e,i,o){super(),this.callSetDisabledState=o,this.form=new Di({},Ao(e),Io(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Ui.then(()=>{let i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Nn(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}
1removeControl(e){Ui.then(()=>{this._findContainer(e.path)?.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Ui.then(()=>{let i=this._findContainer(e.path),o=new Di({});ea(o,e),i.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Ui.then(()=>{this._findContainer(e.path)?.removeControl?.(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Ui.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),ia(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new wn(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(i){return new(i||t)(O(ct,10),O(Mi,10),O(zi,8))};static \u0275dir=_({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){i&1&&w("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[ee([Sc]),ie]})}return t})();function Rs(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function Ps(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var $i=class extends Ci{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,i){super(Ro(e),Po(i,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),An(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Ps(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new Wi(this))}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){Rs(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){Rs(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(n){Ps(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};var Nc=t=>t instanceof $i,Ec=(()=>{class t extends Le{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective?.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Rn(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(o){return(e||(e=ae(t)))(o||t)}})();static \u0275dir=_({type:t,standalone:!1,features:[ie]})}return t})();var Oc={provide:Jt,useExisting:ne(()=>Tc)},xs=Promise.resolve(),Tc=(()=>{class t extends Jt{_changeDetectorRef;callSetDisabledState;control=new $i;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new C;constructor(e,i,o,r,s,l){super(),this._changeDetectorRef=s,this.callSetDisabledState=l,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=na(this,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),ta(e,this.viewModel)&&(this._updateV
1alue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Nn(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){xs.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,o=i!==0&&Zn(i);xs.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Rn(e,this._parent):[e]}static \u0275fac=function(i){return new(i||t)(O(Le,9),O(ct,10),O(Mi,10),O(lt,10),O(he,8),O(zi,8))};static \u0275dir=_({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[ee([Oc]),ie,oe]})}return t})();var ig=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=_({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})();var Eo=class extends Ci{constructor(n,e,i){super(Ro(e),Po(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){Array.isArray(n)?n.forEach(i=>{this.controls.push(i),this._registerControl(i)}):(this.controls.push(n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let o=this._adjustIndex(n);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){Js(this,!1,n),n.forEach((i,o)=>{Qs(this,!1,o),this.at(o).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(n.forEach((i,o)=>{this.at(o)&&this.at(o).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,o)=>{i.reset(n[o],de($({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new Wi(this))}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>i._syncPendingControls()?!0:e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}
1_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(let n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}};var oa=(()=>{class t extends Le{callSetDisabledState;get submitted(){return bt(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=si(()=>this._submittedReactive());_submittedReactive=we(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,i,o){super(),this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this.onChanges(e)}ngOnDestroy(){this.onDestroy()}onChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}onDestroy(){this.form&&(On(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get path(){return[]}addControl(e){let i=this.form.get(e.path);return Nn(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}
1removeControl(e){Is(e.control||null,e,!1),Mc(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}updateModel(e,i){this.form.get(e.path).setValue(i)}onReset(){this.resetForm()}resetForm(e=void 0,i={}){this.form.reset(e,i),this._submittedReactive.set(!1)}onSubmit(e){return this.submitted=!0,ia(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new wn(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,o=this.form.get(e.path);i!==o&&(Is(i||null,e),Nc(o)&&(Nn(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);ea(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){let i=this.form?.get(e.path);i&&Cc(i,e)&&i.updateValueAndValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{})}_updateValidators(){xo(this.form,this),this._oldForm&&On(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(i){return new(i||t)(O(ct,10),O(Mi,10),O(zi,8))};static \u0275dir=_({type:t,features:[ie,oe]})}return t})();var ra=new gt("");var Ac={provide:Le,useExisting:ne(()=>sa)},sa=(()=>{class t extends Ec{name=null;constructor(e,i,o){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(o)}_checkParentType(){la(this._parent)}static \u0275fac=function(i){return new(i||t)(O(Le,13),O(ct,10),O(Mi,10))};static \u0275dir=_({type:t,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[ee([Ac]),ie]})}return t})(),Ic={provide:Le,useExisting:ne(()=>aa)},aa=(()=>{class t extends Le{_parent;name=null;constructor(e,i,o){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(o)}ngOnInit(){la(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Rn(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(i){return new(i||t)(O(Le,13),O(ct,10),O(Mi,10))};static \u0275dir=_({type:t,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[ee([Ic]),ie]})}return t})();function la(t){return!(t instanceof sa)&&!(t instanceof oa)&&!(t instanceof aa)}var Rc={provide:Jt,useExisting:ne(()=>Pc)},Pc=(()=>{class t extends Jt{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new C;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,o,r,s){super(),this._ngModelWarningConfig=s,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=na(this,r)}ngOnChanges(e){this._added||this._setUpControl(),ta(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective?.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Rn(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(i){return new(i||t)(O(Le,13),O(ct,10),O(Mi,10),O(lt,10),O(ra,8))};static \u0275dir=_({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[ee([Rc]),ie,oe]})}return t})();var xc={provide:Le,useExisting:ne(()=>Bc)},Bc=(()=>{class t extends oa{form=null;ngSubmit=new C;get control(){return this.form}static \u0275fac=(()=>{let e;return function(o){return(e||(e=ae(t)))(o||t)}})();static \u0275dir=_({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,o){i&1&&w("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[ee([xc]),ie]})}return t})(),kc={provide:lt,useExisting:ne(()=>da),multi:!0};function ca(t,n){return t==null?`${n}
1`:(n&&typeof n=="object"&&(n="Object"),`${t}: ${n}`.slice(0,50))}function Fc(t){return t.split(":")[0]}var da=(()=>{class t extends Tn{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e}_compareWith=Object.is;appRefInjector=a(oi).injector;destroyRef=a(Et);cdr=a(he);_queuedWrite=!1;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=!0,ze({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=!1,this.writeValue(this.value))}},{injector:this.appRefInjector}))}writeValue(e){this.cdr.markForCheck(),this.value=e;let i=this._getOptionId(e),o=ca(i,e);this.setProperty("value",o)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){let i=Fc(e);return this._optionMap.has(i)?this._optionMap.get(i):e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=ae(t)))(o||t)}})();static \u0275dir=_({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(i,o){i&1&&w("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[ee([kc]),ie]})}return t})(),ng=(()=>{class t{_element;_renderer;_select;id;constructor(e,i,o){this._element=e,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(e){this._select!=null&&(this._select._optionMap.set(this.id,e),this._setElementValue(ca(this.id,e)),this._select._writeValueAfterRender())}set value(e){this._setElementValue(e),this._select?._writeValueAfterRender()}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select?._optionMap.delete(this.id),this._select?._writeValueAfterRender()}static \u0275fac=function(i){return new(i||t)(O(L),O(Ti),O(da,9))};static \u0275dir=_({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return t})(),Vc={provide:lt,useExisting:ne(()=>ua),multi:!0};function Bs(t,n){return t==null?`${n}`:(typeof n=="string"&&(n=`'${n}'`),n&&typeof n=="object"&&(n="Object"),`${t}: ${n}`.slice(0,50))}function Lc(t){return t.split(":")[0]}var ua=(()=>{class t extends Tn{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e}_compareWith=Object.is;writeValue(e){this.value=e;let i;if(Array.isArray(e)){let o=e.map(r=>this._getOptionId(r));i=(r,s)=>{r._setSelected(o.indexOf(s)>-1)}}else i=o=>{o._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{let o=[],r=i.selectedOptions;if(r!==void 0){let s=r;for(let l=0;l<s.length;l++){let c=s[l],d=this._getOptionValue(c.value);o.push(d)}}else{let s=i.options;for(let l=0;l<s.length;l++){let c=s[l];if(c.selected){let d=this._getOptionValue(c.value);o.push(d)}}}this.value=o,e(o)}}_registerOption(e){let i=(this._idCounter++).toString();return this._optionMap.set(i,e),i}_getOptionId(e){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i)._value,e))return i;return null}_getOptionValue(e){let i=Lc(e);return this._optionMap.has(i)?this._optionMap.get(i)._value:e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=ae(t)))(o||t)}})();static \u0275dir=_({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(i,o){i&1&&w("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[ee([Vc]),ie]})}return t})(),og=(()=>{class t{_element;_renderer;_select;id;_value;constructor(e,i,o){this._element=e,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){this._select!=null&&(this._value=e,this._setElementValue(Bs(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(Bs(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id
1),this._select.writeValue(this._select.value))}static \u0275fac=function(i){return new(i||t)(O(L),O(Ti),O(ua,9))};static \u0275dir=_({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return t})();function ha(t){return typeof t=="number"?t:parseInt(t,10)}var Bo=(()=>{class t{_validator=bn;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):bn,this._onChange?.()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(i){return new(i||t)};static \u0275dir=_({type:t,features:[oe]})}return t})();var Gc={provide:ct,useExisting:ne(()=>Uc),multi:!0};var Uc=(()=>{class t extends Bo{required;inputName="required";normalizeInput=Zn;createValidator=e=>Ls;enabled(e){return e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=ae(t)))(o||t)}})();static \u0275dir=_({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,o){i&2&&j("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[ee([Gc]),ie]})}return t})();var Hc={provide:ct,useExisting:ne(()=>jc),multi:!0},jc=(()=>{class t extends Bo{minlength;inputName="minlength";normalizeInput=e=>ha(e);createValidator=e=>Gs(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=ae(t)))(o||t)}})();static \u0275dir=_({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(i,o){i&2&&j("minlength",o._enabled?o.minlength:null)},inputs:{minlength:"minlength"},standalone:!1,features:[ee([Hc]),ie]})}return t})(),$c={provide:ct,useExisting:ne(()=>Wc),multi:!0},Wc=(()=>{class t extends Bo{maxlength;inputName="maxlength";normalizeInput=e=>ha(e);createValidator=e=>Us(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=ae(t)))(o||t)}})();static \u0275dir=_({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(i,o){i&2&&j("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[ee([$c]),ie]})}return t})();var pa=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=S({type:t});static \u0275inj=M({})}return t})();function ks(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var rg=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,i=null){let o=this._reduceControls(e),r={};return ks(i)?r=i:i!==null&&(r.validators=i.validator,r.asyncValidators=i.asyncValidator),new Di(o,r)}record(e,i=null){let o=this._reduceControls(e);return new No(o,i)}control(e,i,o){let r={};return this.useNonNullable?(ks(i)?r=i:(r.validators=i,r.asyncValidators=o),new $i(e,de($({},r),{nonNullable:!0}))):new $i(e,i,o)}array(e,i,o){let r=e.map(s=>this._createControl(s));return new Eo(r,i,o)}_reduceControls(e){let i={};return Object.keys(e).forEach(o=>{i[o]=this._createControl(e[o])}),i}_createControl(e){if(e instanceof $i)return e;if(e instanceof Ci)return e;if(Array.isArray(e)){let i=e[0],o=e.length>1?e[1]:null,r=e.length>2?e[2]:null;return this.control(i,o,r)}else return this.control(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var sg=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:zi,useValue:e.callSetDisabledState??In}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=S({type:t});static \u0275inj=M({imports:[pa]})}return t})(),ag=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:ra,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:zi,useValue:e.callSetDisabledState??In}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=S({type:t});static \u0275inj=M({imports:[pa]})}return t})();var zc=["dialog"],qc=["*"],Kc=(()=>{class t{constructor(){this._ngbConfig=a(ft),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0,this.role="dialog"}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Yc=["animation","backdropClass"],Zc=(()=>{class t{constructor(){this._nativeElement=a(L).nativeElement,this._zone=a(se),this._injector=a(ue),this._cdRef=a(he)}
1ngOnInit(){ze({mixedReadWrite:()=>Me(this._zone,this._nativeElement,(e,i)=>{i&&Bt(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"})},{injector:this._injector})}hide(){return Me(this._zone,this._nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}updateOptions(e){Yc.forEach(i=>{at(e[i])&&(this[i]=e[i])}),this._cdRef.markForCheck()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=k({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(i,o){i&2&&(ye("modal-backdrop"+(o.backdropClass?" "+o.backdropClass:"")),D("show",!o.animation)("fade",o.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(i,o){},encapsulation:2})}}return t})(),Ft=class{update(n){}close(n){}dismiss(n){}},ko=class{update(n){this._windowCmptRef.instance.updateOptions(n),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._backdropCmptRef.instance.updateOptions(n)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(Se(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(Se(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(n,e,i,o){this._windowCmptRef=n,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=o,this._closed=new X,this._dismissed=new X,this._hidden=new X,n.instance.dismissEvent.subscribe(r=>{this.dismiss(r)}),this.result=new Promise((r,s)=>{this._resolve=r,this._reject=s}),this.result.then(null,()=>{})}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(!this._beforeDismiss)this._dismiss(n);else{let e=this._beforeDismiss();Cs(e)?e.then(i=>{i!==!1&&this._dismiss(n)},()=>{}):e!==!1&&this._dismiss(n)}}_removeModalElements(){let n=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():Pe(void 0);n.subscribe(()=>{let{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef?.viewRef?.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){let{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Xi(n,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}},Fo=(function(t){return t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",t})(Fo||{}),Qc=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","role","scrollable","size","windowClass","modalDialogClass"],Jc=(()=>{class t{constructor(){this._document=a(xe),this._elRef=a(L),this._zone=a(se),this._injector=a(ue),this._cdRef=a(he),this._closed$=new X,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.role="dialog",this.dismissEvent=new C,this.shown=new X,this.hidden=new X}get fullscreenClass(){return this.fullscreen===!0?" modal-fullscreen":xt(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,ze({mixedReadWrite:()=>this._show()},{injector:this._injector})}ngOnDestroy(){this._disableEventHandling()}hide(){let{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"stop"},o=Me(this._zone,e,()=>e.classList.remove("show"),i),r=Me(this._zone,this._dialogEl.nativeElement,()=>{},i),s=Xi(o,r);return s.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),s}updateOptions(e){Qc.forEach(i=>{at(e[i])&&(this[i]=e[i])}),this._cdRef.markForCheck()}_show(){let e={animation:this.animation,runningTransition:"continue"},i=Me(this._zone,this._elRef.nativeElement,(r,s)=>{s&&Bt(r),r.classList.add("show")},e),o=Me(this._zone,this._dialogEl.nativeElement,()=>{},e);Xi(i,o).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){let{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{re(e,"keydown").pipe(Se(this._closed$),Ge(o=>o.key==="Escape")).subscribe(o=>{this.keyboard?requestAnimationFrame(()=>{o.defaultPrevented||this._zone.run(()=>this.dismiss(Fo.ESC))}):this.backdrop==="static"&&this._bumpBackdrop()});let i=!1;re(this._dialogEl.nativeElement,"mousedown").pipe(Se(this._closed$),W(()=>i=!1),Nt(()=>re(e,"mouseup").pipe(Se(this._closed$),We(1))),Ge(({target:o})=>
1e===o)).subscribe(()=>{i=!0}),re(e,"click").pipe(Se(this._closed$)).subscribe(({target:o})=>{e===o&&(this.backdrop==="static"?this._bumpBackdrop():this.backdrop===!0&&!i&&this._zone.run(()=>this.dismiss(Fo.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){let{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){let i=e.querySelector("[ngbAutofocus]"),o=Do(e)[0];(i||o||e).focus()}}_restoreFocus(){let e=this._document.body,i=this._elWithFocus,o;i&&i.focus&&e.contains(i)?o=i:o=e,this._zone.runOutsideAngular(()=>{setTimeout(()=>o.focus()),this._elWithFocus=null})}_bumpBackdrop(){this.backdrop==="static"&&Me(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=k({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(i,o){if(i&1&&vt(zc,7),i&2){let r;z(r=q())&&(o._dialogEl=r.first)}},hostAttrs:["tabindex","-1"],hostVars:8,hostBindings:function(i,o){i&2&&(j("aria-modal",!0)("aria-labelledby",o.ariaLabelledBy)("aria-describedby",o.ariaDescribedBy)("role",o.role),ye("modal d-block"+(o.windowClass?" "+o.windowClass:"")),D("fade",o.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",role:"role",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:qc,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(i,o){i&1&&(Ye(),qe(0,"div",1,0)(2,"div",2),Ue(3),Ke()()),i&2&&ye("modal-dialog"+(o.size?" modal-"+o.size:"")+(o.centered?" modal-dialog-centered":"")+o.fullscreenClass+(o.scrollable?" modal-dialog-scrollable":"")+(o.modalDialogClass?" "+o.modalDialogClass:""))},styles:[`ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden} 2`],encapsulation:2})}}return t})(),Xc=(()=>{class t{constructor(){this._applicationRef=a(oi),this._injector=a(ue),this._environmentInjector=a($n),this._document=a(xe),this._scrollBar=a(Ss),this._activeWindowCmptHasChanged=new X,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new C;let e=a(se);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){let i=this._windowCmpts[this._windowCmpts.length-1];gn(e,i.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(i.location.nativeElement)}})}_restoreScrollBar(){let e=this._scrollBarRestoreFn;e&&(this._scrollBarRestoreFn=null,e())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(e,i,o){let r=o.container instanceof HTMLElement?o.container:at(o.container)?this._document.querySelector(o.container):this._document.body;if(!r)throw new Error(`The specified modal container "${o.container||"body"}" was not found in the DOM.`);this._hideScrollBar();let s=new Ft;e=o.injector||e;let l=e.get($n,null)||this._environmentInjector,c=this._getContentRef(e,l,i,s,o),d=o.backdrop!==!1?this._attachBackdrop(r):void 0,u=this._attachWindowComponent(r,c.nodes),b=new ko(u,c,d,o.beforeDismiss);return this._registerModalRef(b),this._registerWindowCmpt(u),b.hidden.pipe(We(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),s.close=p=>{b.close(p)},s.dismiss=p=>{b.dismiss(p)},s.update=p=>{b.update(p)},b.update(o),this._modalRefs.length===1&&this._document.body.classList.add("modal-open"),d&&d.instance&&d.changeDetectorRef.detectChanges(),u.changeDetectorRef.detectChanges(),b}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(i=>i.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e){let i=rn(Zc,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(i.hostView),e.appendChild(i.location.nativeElement),i}_attachWindowComponent(e,i){let o=rn(Jc,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:i});return this._applicationRef.attachView(o.hostView),e.appendChild(o.location.nativeElement),o}_getContentRef(e,i,o,r,s){return o?o instanceof Qe?this._createFromTemplateRef(o,r):xt(o)?this._createFromString(o):this._createFromComponent(e,i,o,r,s):new mt([])}_createFromTemplateRef(e,i){let o={$implicit:i,close(s){i.close(s)}
2,dismiss(s){i.dismiss(s)}},r=e.createEmbeddedView(o);return this._applicationRef.attachView(r),new mt([r.rootNodes],r)}_createFromString(e){let i=this._document.createTextNode(`${e}`);return new mt([[i]])}_createFromComponent(e,i,o,r,s){let l=ue.create({providers:[{provide:Ft,useValue:r}],parent:e}),c=rn(o,{environmentInjector:i,elementInjector:l}),d=c.location.nativeElement;return s.scrollable&&d.classList.add("component-host-scrollable"),this._applicationRef.attachView(c.hostView),new mt([[d]],c.hostView,c)}_setAriaHidden(e){let i=e.parentElement;i&&e!==this._document.body&&(Array.from(i.children).forEach(o=>{o!==e&&o.nodeName!=="SCRIPT"&&(this._ariaHiddenValues.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,i)=>{e?i.setAttribute("aria-hidden",e):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){let i=()=>{let o=this._modalRefs.indexOf(e);o>-1&&(this._modalRefs.splice(o,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(i,i)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{let i=this._windowCmpts.indexOf(e);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Vo=(()=>{class t{constructor(){this._injector=a(ue),this._modalStack=a(Xc),this._config=a(Kc)}open(e,i={}){let o=$(de($({},this._config),{animation:this._config.animation}),i);return this._modalStack.open(this._injector,e,o)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Lo=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=S({type:t})}static{this.\u0275inj=M({providers:[Vo]})}}return t})();var Go=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=S({type:t})}static{this.\u0275inj=M({})}}return t})();var Ho=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=S({type:t})}static{this.\u0275inj=M({})}}return t})();var ed=["ngbDatepickerDayView",""],td=["month"],id=["year"];function nd(t,n){if(t&1&&(qe(0,"option",3),T(1),Ke()),t&2){let e=n.$implicit,i=v();Y("value",e),j("aria-label",i.i18n.getMonthFullName(e,i.date.year)),h(),Z(i.i18n.getMonthShortName(e,i.date.year))}}function od(t,n){if(t&1&&(qe(0,"option",3),T(1),Ke()),t&2){let e=n.$implicit,i=v();Y("value",e),h(),Z(i.i18n.getYearNumerals(e))}}function va(t,n){return this.idMonth(n)}function rd(t,n){if(t&1){let e=Be();y(0,"ngb-datepicker-navigation-select",7),w("select",function(o){_e(e);let r=v();return ge(r.select.emit(o))}),g()}if(t&2){let e=v();G("date",e.date)("disabled",e.disabled)("months",e.selectBoxes.months)("years",e.selectBoxes.years)}}function sd(t,n){t&1&&Te(0,"div",8)}function ad(t,n){t&1&&Te(0,"div",8)}function ld(t,n){if(t&1&&(R(0,sd,1,0,"div",8),y(1,"div",9),T(2),g(),R(3,ad,1,0,"div",8)),t&2){let e=n.$implicit,i=n.$index,o=v(2);P(i>0?0:-1),h(2),jt(" ",o.i18n.getMonthLabel(e.firstDate)," "),h(),P(i!==o.months.length-1?3:-1)}}function cd(t,n){if(t&1&&Ee(0,ld,4,3,null,null,va,!0),t&2){let e=v();Oe(e.months)}}function dd(t,n){if(t&1&&(y(0,"span"),T(1),g()),t&2){let e=n.$implicit,i=v();h(),Z(i.i18n.getMonthLabel(e.firstDate))}}function ud(t,n){if(t&1&&(y(0,"div",1),T(1),g()),t&2){let e=v(2);h(),Z(e.i18n.getWeekLabel())}}function hd(t,n){if(t&1&&(y(0,"div",2),T(1),g()),t&2){let e=n.$implicit;h(),Z(e)}}function pd(t,n){if(t&1&&(y(0,"div",0),R(1,ud,2,1,"div",1),Ee(2,hd,2,1,"div",2,ri),g()),t&2){let e=v();h(),P(e.datepicker.showWeekNumbers?1:-1),h(),Oe(e.viewModel.weekdays)}}function fd(t,n){if(t&1&&(y(0,"div",4),T(1),g()),t&2){let e=v(2).$implicit,i=v();
2h(),Z(i.i18n.getWeekNumerals(e.number))}}function md(t,n){}function _d(t,n){if(t&1&&Ne(0,md,0,0,"ng-template",7),t&2){let e=v().$implicit,i=v(3);G("ngTemplateOutlet",i.datepicker.dayTemplate)("ngTemplateOutletContext",e.context)}}function gd(t,n){if(t&1){let e=Be();y(0,"div",6),w("click",function(o){let r=_e(e).$implicit;return v(3).doSelect(r),ge(o.preventDefault())}),R(1,_d,1,2,null,7),g()}if(t&2){let e=n.$implicit;D("disabled",e.context.disabled)("hidden",e.hidden)("ngb-dp-today",e.context.today),G("tabindex",e.tabindex),j("aria-label",e.ariaLabel)("aria-disabled",e.context.disabled)("aria-selected",e.context.selected),h(),P(e.hidden?-1:1)}}function vd(t,n){if(t&1&&(y(0,"div",3),R(1,fd,2,1,"div",4),Ee(2,gd,2,11,"div",5,ut),g()),t&2){let e=v().$implicit,i=v();h(),P(i.datepicker.showWeekNumbers?1:-1),h(),Oe(e.days)}}function yd(t,n){if(t&1&&R(0,vd,4,1,"div",3),t&2){let e=n.$implicit;P(e.collapsed?-1:0)}}var bd=["defaultDayTemplate"],Cd=["content"],Dd=t=>({$implicit:t});function Md(t,n){if(t&1&&Te(0,"div",8),t&2){let e=n.date,i=n.currentMonth,o=n.selected,r=n.disabled,s=n.focused;G("date",e)("currentMonth",i)("selected",o)("disabled",r)("focused",s)}}function Sd(t,n){if(t&1&&(y(0,"div",10),T(1),g()),t&2){let e=v().$implicit,i=v(2);h(),jt(" ",i.i18n.getMonthLabel(e.firstDate)," ")}}function wd(t,n){if(t&1&&(y(0,"div",9),R(1,Sd,2,1,"div",10),Te(2,"ngb-datepicker-month",11),g()),t&2){let e=n.$implicit,i=v(2);h(),P(i.navigation==="none"||i.displayMonths>1&&i.navigation==="select"?1:-1),h(),G("month",e.firstDate)}}function Nd(t,n){if(t&1&&Ee(0,wd,3,2,"div",9,ut),t&2){let e=v();Oe(e.model.months)}}function Ed(t,n){if(t&1){let e=Be();y(0,"ngb-datepicker-navigation",12),w("navigate",function(o){_e(e);let r=v();return ge(r.onNavigateEvent(o))})("select",function(o){_e(e);let r=v();return ge(r.onNavigateDateSelect(o))}),g()}if(t&2){let e=v();G("date",e.model.firstDate)("months",e.model.months)("disabled",e.model.disabled)("showSelect",e.model.navigation==="select")("prevDisabled",e.model.prevDisabled)("nextDisabled",e.model.nextDisabled)("selectBoxes",e.model.selectBoxes)}}function Od(t,n){}function Td(t,n){}var je=class t{static from(n){return n instanceof t?n:n?new t(n.year,n.month,n.day):null}constructor(n,e,i){this.year=Ve(n)?n:null,this.month=Ve(e)?e:null,this.day=Ve(i)?i:null}equals(n){return n!=null&&this.year===n.year&&this.month===n.month&&this.day===n.day}before(n){return n?this.year===n.year?this.month===n.month?this.day===n.day?!1:this.day<n.day:this.month<n.month:this.year<n.year:!1}after(n){return n?this.year===n.year?this.month===n.month?this.day===n.day?!1:this.day>n.day:this.month>n.month:this.year>n.year:!1}};function _a(t){return new je(t.getFullYear(),t.getMonth()+1,t.getDate())}function Pn(t){let n=new Date(t.year,t.month-1,t.day,12);return isNaN(n.getTime())||n.setFullYear(t.year),n}function Ad(){return new Id}var kn=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:()=>Ad(),providedIn:"root"})}}return t})(),Id=(()=>{class t extends kn{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(e,i="d",o=1){let r=Pn(e),s=!0,l=r.getMonth();switch(i){case"y":r.setFullYear(r.getFullYear()+o);break;case"m":l+=o,r.setMonth(l),l=l%12,l<0&&(l=l+12);break;case"d":r.setDate(r.getDate()+o),s=!1;break;default:return e}return s&&r.getMonth()!==l&&r.setDate(0),_a(r)}getPrev(e,i="d",o=1){return this.getNext(e,i,-o)}getWeekday(e){let o=Pn(e).getDay();return o===0?7:o}getWeekNumber(e,i){i===7&&(i=0);let o=(11-i)%7,r=e[o],s=Pn(r);s.setDate(s.getDate()+4-(s.getDay()||7));let l=s.getTime();return s.setMonth(0),s.setDate(1),Math.floor(Math.round((l-s.getTime())/864e5)/7)+1}getToday(){return _a(new Date)}isValid(e){if(!e||!Ve(e.year)||!Ve(e.month)||!Ve(e.day)||e.year===0)return!1;let i=Pn(e);return!isNaN(i.getTime())&&i.getFullYear()===e.year&&i.getMonth()+1===e.month&&i.getDate()===e.day}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ae(t)))(o||t)}})()}static{this.\u0275prov=f({token:t,factory:t.\u0275fac})}}return t})();function Si(t,n){return!Rd(t,n)}function ya(t,n){return!t&&!n?!1:!t||!n?!0:t.year!==n.year||t.month!==n.month}function Rd(t,n){return!t&&!n||!!t&&!!n&&t.equals(n)}function Pd(t,n){if(n&&t&&n.before(t))throw new Error(`'maxDate' ${n} should be greater than 'minDate' ${t}`)}function xn(t,n,e){return t&&n&&t.before(n)?n:t&&e&&t.after(e)?e:t||null}function jo(t,n){let{minDate:e,maxDate:i,disabled:o,markDisabled:r}=n;return!(t==null||o||r&&r(t,{year:t.year,month:t.month})||e&&t.before(e)||i&&t.after(i))}function xd(t,n,e,i){if(!n)return[];let o=t.getMonths(n.year);if(e&&n.year===e.year){let r=o.findIndex(s=>s===e.month);o=o.slice(r)}if(i&&n.year===i.year){let r=o.findIndex(s=>s===i.month);o=o.slice(0,r+1)}return o}function Bd(t,n,e){if(!t)return[];let i=n?Math.max(n.year,t.year-500):t.year-10,r=(e?Math.min(e.year,t.year+500):t.year+10)-i+1,s=Array(r);for(let l=0;l<r;l++)s[l]=i+l;return s}function kd(t,n,e){let i=Object.assign(t.getNext(n,"m"),{day:1});return e!=null&&i.after(e)}function Fd(t,n,e){let i=Object.assign(t.getPrev(n,"m"),{day:1});return e!=null&&(i.year===e.year&&i.month<e.month||i.year<e.year&&e.month===1)}function Vd(t,n,e,i,o){let{displayMonths:r,months:s}=e,l=s.splice(0,s.length);return Array.from({length:r},(d,u)=>{let b=Object.assign(t.getNext(n,"m",u),{day:1});if(s[u]=null,!o){let p=l.findIndex(m=>m.firstDate.equals(b));p!==-1&&(s[u]=l.splice(p,1)[0])}return b}
2).forEach((d,u)=>{s[u]===null&&(s[u]=Ld(t,d,e,i,l.shift()||{}))}),s}function Ld(t,n,e,i,o={}){let{dayTemplateData:r,minDate:s,maxDate:l,firstDayOfWeek:c,markDisabled:d,outsideDays:u,weekdayWidth:b,weekdaysVisible:p}=e,m=t.getToday();o.firstDate=null,o.lastDate=null,o.number=n.month,o.year=n.year,o.weeks=o.weeks||[],o.weekdays=o.weekdays||[],n=Gd(t,n,c),p||(o.weekdays.length=0);for(let U=0;U<t.getWeeksPerMonth();U++){let A=o.weeks[U];A||(A=o.weeks[U]={number:0,days:[],collapsed:!0});let N=A.days;for(let x=0;x<t.getDaysPerWeek();x++){U===0&&p&&(o.weekdays[x]=i.getWeekdayLabel(t.getWeekday(n),b));let I=new je(n.year,n.month,n.day),Q=t.getNext(I),E=i.getDayAriaLabel(I),V=!!(s&&I.before(s)||l&&I.after(l));!V&&d&&(V=d(I,{month:o.number,year:o.year}));let H=I.equals(m),J=r?r(I,{month:o.number,year:o.year}):void 0;o.firstDate===null&&I.month===o.number&&(o.firstDate=I),I.month===o.number&&Q.month!==o.number&&(o.lastDate=I);let K=N[x];K||(K=N[x]={}),K.date=I,K.context=Object.assign(K.context||{},{$implicit:I,date:I,data:J,currentMonth:o.number,currentYear:o.year,disabled:V,focused:!1,selected:!1,today:H}),K.tabindex=-1,K.ariaLabel=E,K.hidden=!1,n=Q}A.number=t.getWeekNumber(N.map(x=>x.date),c),A.collapsed=u==="collapsed"&&N[0].date.month!==o.number&&N[N.length-1].date.month!==o.number}return o}function Gd(t,n,e){let i=t.getDaysPerWeek(),o=new je(n.year,n.month,1),r=t.getWeekday(o)%i;return t.getPrev(o,"d",(i+r-e)%i)}var Xt=(()=>{class t{getMonthLabel(e){return`${this.getMonthFullName(e.month,e.year)} ${this.getYearNumerals(e.year)}`}getDayNumerals(e){return`${e.day}`}getWeekNumerals(e){return`${e}`}getYearNumerals(e){return`${e}`}getWeekLabel(){return""}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:()=>new Ud,providedIn:"root"})}}return t})(),Ud=(()=>{class t extends Xt{constructor(){super(...arguments),this._locale=a(jr),this._monthsShort=[...Array(12).keys()].map(e=>Intl.DateTimeFormat(this._locale,{month:"short",timeZone:"UTC"}).format(Date.UTC(2e3,e))),this._monthsFull=[...Array(12).keys()].map(e=>Intl.DateTimeFormat(this._locale,{month:"long",timeZone:"UTC"}).format(Date.UTC(2e3,e)))}getWeekdayLabel(e,i="narrow"){return[1,2,3,4,5,6,7].map(r=>Intl.DateTimeFormat(this._locale,{weekday:i,timeZone:"UTC"}).format(Date.UTC(2e3,4,r)))[e-1]||""}getMonthShortName(e){return this._monthsShort[e-1]||""}getMonthFullName(e){return this._monthsFull[e-1]||""}getDayAriaLabel(e){let i=new Date(e.year,e.month-1,e.day);return $r(i,"fullDate",this._locale)}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ae(t)))(o||t)}})()}static{this.\u0275prov=f({token:t,factory:t.\u0275fac})}}return t})(),$o=(()=>{class t{constructor(){this._VALIDATORS={dayTemplateData:e=>{if(this._state.dayTemplateData!==e)return{dayTemplateData:e}},displayMonths:e=>{if(e=tt(e),Ve(e)&&e>0&&this._state.displayMonths!==e)return{displayMonths:e}},disabled:e=>{if(this._state.disabled!==e)return{disabled:e}},firstDayOfWeek:e=>{if(e=tt(e),Ve(e)&&e>=0&&this._state.firstDayOfWeek!==e)return{firstDayOfWeek:e}},focusVisible:e=>{if(this._state.focusVisible!==e&&!this._state.disabled)return{focusVisible:e}},markDisabled:e=>{if(this._state.markDisabled!==e)return{markDisabled:e}},maxDate:e=>{let i=this.toValidDate(e,null);if(Si(this._state.maxDate,i))return{maxDate:i}},minDate:e=>{let i=this.toValidDate(e,null);if(Si(this._state.minDate,i))return{minDate:i}},navigation:e=>{if(this._state.navigation!==e)return{navigation:e}},outsideDays:e=>{if(this._state.outsideDays!==e)return{outsideDays:e}},weekdays:e=>{let i=e===!0||e===!1?"narrow":e,o=e===!0||e===!1?e:!0;if(this._state.weekdayWidth!==i||this._state.weekdaysVisible!==o)return{weekdayWidth:i,weekdaysVisible:o}}},this._calendar=a(kn),this._i18n=a(Xt),this._model$=new X,this._dateSelect$=new X,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]},weekdayWidth:"narrow",weekdaysVisible:!0}}get model$(){return this._model$.pipe(Ge(e=>e.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe(Ge(e=>e!==null))}set(e){let i=Object.keys(e).map(o=>this._VALIDATORS[o](e[o])).reduce((o,r)=>$($({},o),r),{});Object.keys(i).length>0&&this._nextState(i)}focus(e){let i=this.toValidDate(e,null);i!=null&&!this._state.disabled&&Si(this._state.focusDate,i)&&this._nextState({focusDate:e})}focusSelect(){jo(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(e){let i=this.toValidDate(e,this._calendar.getToday());i!=null&&!this._state.disabled&&(!this._state.firstDate||ya(this._state.firstDate,i))&&this._nextState({firstDate:i})}select(e,i={}){let o=this.toValidDate(e,null);o!=null&&!this._state.disabled&&(Si(this._state.selectedDate,o)&&this._nextState({selectedDate:o}),i.emitEvent&&jo(o,this._state)&&this._dateSelect$.next(o))}toValidDate(e,i){let o=je.from(e);return i===void 0&&(i=this._calendar.getToday()),this._calendar.isValid(o)?o:i}getMonth(e){for(let i of this._state.months)if(e.month===i.number&&e.year===i.year)return i;throw new Error(`month ${e.month} of year ${e.year} not found`)}_nextState(e){let i=this._updateState(e);this._patchContexts(i),this._state=i,this._model$.next(this._state)}_patchContexts(e){let{months:i,displayMonths:o,selectedDate:r,focusDate:s,focusVisible:l,disabled:c,outsideDays:d}=e;e.months.forEach(u=>{u.weeks.forEach(b=>{b.days.forEach(p=>{s&&(p.context.focused=s.equals(p.date)&&l),p.tabindex=!c&&s&&p.date.equals(s)&&s.month===u.number?0:-1,c===!0&&(p.context.disabled=!0),r!==void 0&&(p.context.selected=r!==null&&r.equals(p.date)),u.number!==p.date.month&&(p.hidden=d==="hidden"||d==="collapsed"||o>1&&p.date.after(i[0].firstDate)&&p.date.before(i[o-1].lastDate))})})})}_updateState(e){let i=Object.assign({},this._state,e),o=i.firstDate;if(("minDate"in e||"maxDate"in e)&&(Pd(i.minDate,i.maxDate),i.focusDate=xn(i.focusDate,i.minDate,i.maxDate),i.firstDate=xn(i.firstDate,i.minDate,i.maxDate),o=i.focusDate),"disabled"in e&&(i.focusVisible=!1),"selectedDate"in e&&this._state.months.length===0&&(o=i.selectedDate),"focu
2sVisible"in e||"focusDate"in e&&(i.focusDate=xn(i.focusDate,i.minDate,i.maxDate),o=i.focusDate,i.months.length!==0&&i.focusDate&&!i.focusDate.before(i.firstDate)&&!i.focusDate.after(i.lastDate)))return i;if("firstDate"in e&&(i.firstDate=xn(i.firstDate,i.minDate,i.maxDate),o=i.firstDate),o){let r="dayTemplateData"in e||"firstDayOfWeek"in e||"markDisabled"in e||"minDate"in e||"maxDate"in e||"disabled"in e||"outsideDays"in e||"weekdaysVisible"in e,s=Vd(this._calendar,o,i,this._i18n,r);i.months=s,i.firstDate=s[0].firstDate,i.lastDate=s[s.length-1].lastDate,"selectedDate"in e&&!jo(i.selectedDate,i)&&(i.selectedDate=null),"firstDate"in e&&(!i.focusDate||i.focusDate.before(i.firstDate)||i.focusDate.after(i.lastDate))&&(i.focusDate=o);let l=!this._state.firstDate||this._state.firstDate.year!==i.firstDate.year,c=!this._state.firstDate||this._state.firstDate.month!==i.firstDate.month;i.navigation==="select"?(("minDate"in e||"maxDate"in e||i.selectBoxes.years.length===0||l)&&(i.selectBoxes.years=Bd(i.firstDate,i.minDate,i.maxDate)),("minDate"in e||"maxDate"in e||i.selectBoxes.months.length===0||l)&&(i.selectBoxes.months=xd(this._calendar,i.firstDate,i.minDate,i.maxDate))):i.selectBoxes={years:[],months:[]},(i.navigation==="arrows"||i.navigation==="select")&&(c||l||"minDate"in e||"maxDate"in e||"disabled"in e)&&(i.prevDisabled=i.disabled||Fd(this._calendar,i.firstDate,i.minDate),i.nextDisabled=i.disabled||kd(this._calendar,i.lastDate,i.maxDate))}return i}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:t.\u0275fac})}}return t})(),Bn=(function(t){return t[t.PREV=0]="PREV",t[t.NEXT=1]="NEXT",t})(Bn||{}),Wo=(()=>{class t{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekNumbers=!1,this.weekdays="narrow"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Hd(){return new jd}var zo=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:()=>Hd(),providedIn:"root"})}}return t})(),jd=(()=>{class t extends zo{fromModel(e){return e&&Ve(e.year)&&Ve(e.month)&&Ve(e.day)?{year:e.year,month:e.month,day:e.day}:null}toModel(e){return e&&Ve(e.year)&&Ve(e.month)&&Ve(e.day)?{year:e.year,month:e.month,day:e.day}:null}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ae(t)))(o||t)}})()}static{this.\u0275prov=f({token:t,factory:t.\u0275fac})}}return t})(),$d=(()=>{class t{processKey(e,i){let{state:o,calendar:r}=i;switch(e.key){case"PageUp":i.focusDate(r.getPrev(o.focusedDate,e.shiftKey?"y":"m",1));break;case"PageDown":i.focusDate(r.getNext(o.focusedDate,e.shiftKey?"y":"m",1));break;case"End":i.focusDate(e.shiftKey?o.maxDate:o.lastDate);break;case"Home":i.focusDate(e.shiftKey?o.minDate:o.firstDate);break;case"ArrowLeft":i.focusDate(r.getPrev(o.focusedDate,"d",1));break;case"ArrowUp":i.focusDate(r.getPrev(o.focusedDate,"d",r.getDaysPerWeek()));break;case"ArrowRight":i.focusDate(r.getNext(o.focusedDate,"d",1));break;case"ArrowDown":i.focusDate(r.getNext(o.focusedDate,"d",r.getDaysPerWeek()));break;case"Enter":case" ":i.focusSelect();break;default:return}e.preventDefault(),e.stopPropagation()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Wd=(()=>{class t{constructor(){this.i18n=a(Xt)}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=k({type:t,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(i,o){i&2&&D("bg-primary",o.selected)("text-white",o.selected)("text-muted",o.isMuted())("outside",o.isMuted())("active",o.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},attrs:ed,decls:1,vars:1,template:function(i,o){i&1&&T(0),i&2&&Z(o.i18n.getDayNumerals(o.date))},styles:[`[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:transparent}[ngbDatepickerDayView]:hover:not(.bg-primary),[ngbDatepickerDayView].active:not(.bg-primary){background-color:var(--bs-tertiary-bg);outline:1px solid var(--bs-border-color)}[ngbDatepickerDayView].outside{opacity:.5} 3`],encapsulation:2,changeDetection:0})}}return t})(),zd=(()=>{class t{constructor(){this._month=-1,this._year=-1,this.i18n=a(Xt),this.select=new C}changeMonth(e){this.select.emit(new je(this.date.year,tt(e),1))}changeYear(e){this.select.emit(new je(tt(e),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this.monthSelect.nativeElement.value=`${this._month}`),this.date.year!==this._year&&(this._year=this.date.year,this.yearSelect.nativeElement.value=`${this._year}`))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=k({type:t,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(i,o){if(i&1&&vt(td,7,L)(id,7,L),i&2){let r;z(r=q())&&(o.monthSelect=r.first),z(r=q())&&(o.yearSelect=r.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},decls:8,vars:2,consts:()=>{let e;e=$localize`:@@ngb.datepicker.select-month:Select month`;let i;i=$localize`:@@ngb.datepicker.select-month:Select month`;let o;o=$localize`:@@ngb.datepicker.select-year:Select year`;let r;return r=$localize`:@@ngb.datepicker.select-year:Select year`,[["month",""],["year",""],["aria-label",e,"title",i,1,"form-select",3,"change","disabled"],[3,"value"],["aria-label",o,"title",r,1,"form-select",3,"change","disabled"]]},template:function(i,o){i&1&&(qe(0,"select",2,0),Ai("change",function(s){return o.changeMonth(s.target.value)}),Ee(2,nd,2,3,"option",3,ut),Ke(),qe(4,"select",4,1),Ai("change",function(s){return o.changeYear(s.target.value)}),Ee(6,od,2,2,"option",3,ut),Ke()),i&2&&(Y("disabled",o.disabled),h(2),Oe(o.months),h(2),Y("disabled",o.disabled),h(2),Oe(o.years))},styles:[`ngb-datepicker-navigation-select>.form-select{flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}ngb-datepicker-navigation-select>.form-select:focus{z-index:1}ngb-datepicker-navigation-select>.form-select::-ms-value{background-color:transparent!important} 4`],encapsulation:2,changeDetection:0})}}return t})(),qd=(()=>{class t{constructor(){this.navigation=Bn,this.i18n=a(Xt),this.months=[],this.navigate=new C,this.select=new C}
4onClickPrev(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}idMonth(e){return e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=k({type:t,selectors:[["ngb-datepicker-navigation"]],inputs:{date:"date",disabled:"disabled",months:"months",showSelect:"showSelect",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",selectBoxes:"selectBoxes"},outputs:{navigate:"navigate",select:"select"},decls:11,vars:4,consts:()=>{let e;e=$localize`:@@ngb.datepicker.previous-month:Previous month`;let i;i=$localize`:@@ngb.datepicker.previous-month:Previous month`;let o;o=$localize`:@@ngb.datepicker.next-month:Next month`;let r;return r=$localize`:@@ngb.datepicker.next-month:Next month`,[[1,"ngb-dp-arrow","ngb-dp-arrow-prev"],["type","button","aria-label",e,"title",i,1,"btn","btn-link","ngb-dp-arrow-btn",3,"click","disabled"],[1,"ngb-dp-navigation-chevron"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years"],["aria-live","polite",1,"visually-hidden"],[1,"ngb-dp-arrow","ngb-dp-arrow-next"],["type","button","aria-label",o,"title",r,1,"btn","btn-link","ngb-dp-arrow-btn",3,"click","disabled"],[1,"ngb-dp-navigation-select",3,"select","date","disabled","months","years"],[1,"ngb-dp-arrow"],[1,"ngb-dp-month-name"]]},template:function(i,o){i&1&&(y(0,"div",0)(1,"button",1),w("click",function(s){return o.onClickPrev(s)}),Te(2,"span",2),g()(),R(3,rd,1,4,"ngb-datepicker-navigation-select",3),R(4,cd,2,0),y(5,"div",4),Ee(6,dd,2,1,"span",null,va,!0),g(),y(8,"div",5)(9,"button",6),w("click",function(s){return o.onClickNext(s)}),Te(10,"span",2),g()()),i&2&&(h(),G("disabled",o.prevDisabled),h(2),P(o.showSelect?3:-1),h(),P(o.showSelect?-1:4),h(2),Oe(o.months),h(3),G("disabled",o.nextDisabled))},dependencies:[zd],styles:[`ngb-datepicker-navigation{display:flex;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;transform:rotate(-135deg)}.ngb-dp-arrow{display:flex;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow-next{justify-content:flex-end}.ngb-dp-arrow-next .ngb-dp-navigation-chevron{transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:flex;flex:1 1 9rem} 5`],encapsulation:2,changeDetection:0})}}return t})(),Kd=(()=>{class t{constructor(){this.templateRef=a(Qe)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=_({type:t,selectors:[["ng-template","ngbDatepickerContent",""]]})}}return t})(),Yd=(()=>{class t{constructor(){this._keyboardService=a($d),this._service=a($o),this.i18n=a(Xt),this.datepicker=a(ba)}set month(e){this.viewModel=this._service.getMonth(e)}onKeyDown(e){this._keyboardService.processKey(e,this.datepicker)}doSelect(e){!e.context.disabled&&!e.hidden&&this.datepicker.onDateSelect(e.date)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=k({type:t,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(i,o){i&1&&w("keydown",function(s){return o.onKeyDown(s)})},inputs:{month:"month"},decls:3,vars:1,consts:[["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],[1,"ngb-dp-weekday","ngb-dp-showweek","small"],["role","columnheader",1,"ngb-dp-weekday","small"],["role","row",1,"ngb-dp-week"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"disabled","tabindex","hidden","ngb-dp-today"],["role","gridcell",1,"ngb-dp-day",3,"click","tabindex"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){i&1&&(R(0,pd,4,1,"div",0),Ee(1,yd,1,1,null,null,ut)),i&2&&(P(o.viewModel.weekdays.length>0?0:-1),h(),Oe(o.viewModel.weeks))},dependencies:[Ct],styles:[`ngb-datepicker-month{display:block}.ngb-dp-weekday,.ngb-dp-week-number{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:var(--bs-info)}.ngb-dp-week{border-radius:.25rem;display:flex}.ngb-dp-weekdays{border-bottom:1px solid var(--bs-border-color);border-radius:0;background-color:var(--bs-tertiary-bg)}
5.ngb-dp-day,.ngb-dp-weekday,.ngb-dp-week-number{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex="0"]{z-index:1} 6`],encapsulation:2})}}return t})(),ba=(()=>{class t{constructor(){this.injector=a(ue),this._service=a($o),this._calendar=a(kn),this._i18n=a(Xt),this._config=a(Wo),this._nativeElement=a(L).nativeElement,this._ngbDateAdapter=a(zo),this._ngZone=a(se),this._destroyRef=a(Et),this._injector=a(ue),this._controlValue=null,this._publicState={},this._initialized=!1,this.dayTemplate=this._config.dayTemplate,this.dayTemplateData=this._config.dayTemplateData,this.displayMonths=this._config.displayMonths,this.firstDayOfWeek=this._config.firstDayOfWeek,this.footerTemplate=this._config.footerTemplate,this.markDisabled=this._config.markDisabled,this.maxDate=this._config.maxDate,this.minDate=this._config.minDate,this.navigation=this._config.navigation,this.outsideDays=this._config.outsideDays,this.showWeekNumbers=this._config.showWeekNumbers,this.startDate=this._config.startDate,this.weekdays=this._config.weekdays,this.navigate=new C,this.dateSelect=new C,this.onChange=i=>{},this.onTouched=()=>{};let e=a(he);this._service.dateSelect$.pipe(pt()).subscribe(i=>{this.dateSelect.emit(i)}),this._service.model$.pipe(pt()).subscribe(i=>{let o=i.firstDate,r=this.model?this.model.firstDate:null;this._publicState={maxDate:i.maxDate,minDate:i.minDate,firstDate:i.firstDate,lastDate:i.lastDate,focusedDate:i.focusDate,months:i.months.map(u=>u.firstDate)};let s=!1;if(!o.equals(r)&&(this.navigate.emit({current:r?{year:r.year,month:r.month}:null,next:{year:o.year,month:o.month},preventDefault:()=>s=!0}),s&&r!==null)){this._service.open(r);return}let l=i.selectedDate,c=i.focusDate,d=this.model?this.model.focusDate:null;this.model=i,Si(l,this._controlValue)&&(this._controlValue=l,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(l))),Si(c,d)&&d&&i.focusVisible&&this.focus(),e.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}get i18n(){return this._i18n}focusDate(e){this._service.focus(je.from(e))}focusSelect(){this._service.focusSelect()}focus(){ze({read:()=>{this._nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]')?.focus()}},{injector:this._injector})}navigateTo(e){this._service.open(je.from(e?e.day?e:de($({},e),{day:1}):null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{let e=re(this._contentEl.nativeElement,"focusin"),i=re(this._contentEl.nativeElement,"focusout");Tr(e,i).pipe(Ge(o=>{let r=o.target,s=o.relatedTarget;return!(r?.classList.contains("ngb-dp-day")&&s?.classList.contains("ngb-dp-day")&&this._nativeElement.contains(r)&&this._nativeElement.contains(s))}),pt(this._destroyRef)).subscribe(({type:o})=>this._ngZone.run(()=>this._service.set({focusVisible:o==="focusin"})))})}ngOnInit(){if(this.model===void 0){let e={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].forEach(i=>e[i]=this[i]),this._service.set(e),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate),this._initialized=!0}ngOnChanges(e){let i={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].filter(o=>o in e).forEach(o=>i[o]=this[o]),this._service.set(i),"startDate"in e&&this._initialized){let{currentValue:o,previousValue:r}=e.startDate;ya(r,o)&&this.navigateTo(this.startDate)}}onDateSelect(e){this._service.focus(e),this._service.select(e,{emitEvent:!0})}onNavigateDateSelect(e){this._service.open(e)}onNavigateEvent(e){switch(e){case Bn.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case Bn.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1));break}}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._service.set({disabled:e})}writeValue(e){this._controlValue=je.from(this._ngbDateAdapter.fromModel(e)),this._service.select(this._controlValue)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=k({type:t,selectors:[["ngb-datepicker"]],contentQueries:function(i,o,r){if(i&1&&ve(r,Kd,7),i&2){let s;z(s=q())&&(o.contentTemplateFromContent=s.first)}},viewQuery:function(i,o){if(i&1&&vt(bd,7)(Cd,7),i&2){let r;z(r=q())&&(o._defaultDayTemplate=r.first),z(r=q())&&(o._contentEl=r.first)}},hostVars:2,hostBindings:function(i,o){i&2&&D("disabled",o.model.disabled)},inputs:{contentTemplate:"contentTemplate",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekNumbers:"showWeekNumbers",startDate:"startDate",weekdays:"weekdays"},outputs:{navigate:"navigate",dateSelect:"dateSelect"},exportAs:["ngbDatepicker"],features:[ee([{provide:lt,useExisting:ne(()=>t),multi:!0},$o]),oe],decls:10,vars:9,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],["content",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes"],[1,"ngb-dp-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext","ngTemplateOutletInjector"],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],[1,"ngb-dp-month"],[1,"ngb-dp-month-name"],[3,"month"],[3,"navigate","select","date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes"]
6],template:function(i,o){if(i&1&&(Ne(0,Md,1,5,"ng-template",null,0,ht)(2,Nd,2,0,"ng-template",null,1,ht),y(4,"div",3),R(5,Ed,1,7,"ngb-datepicker-navigation",4),g(),y(6,"div",5,2),Ne(8,Od,0,0,"ng-template",6),g(),Ne(9,Td,0,0,"ng-template",7)),i&2){let r=yt(3);h(5),P(o.navigation!=="none"?5:-1),h(),D("ngb-dp-months",!o.contentTemplate),h(2),G("ngTemplateOutlet",o.contentTemplate||(o.contentTemplateFromContent==null?null:o.contentTemplateFromContent.templateRef)||r)("ngTemplateOutletContext",Ri(7,Dd,o))("ngTemplateOutletInjector",o.injector),h(),G("ngTemplateOutlet",o.footerTemplate)}},dependencies:[Ct,Wd,Yd,qd],styles:[`ngb-datepicker{border:1px solid var(--bs-border-color);border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}ngb-datepicker.disabled .ngb-dp-weekday,ngb-datepicker.disabled .ngb-dp-week-number,ngb-datepicker.disabled .ngb-dp-month-name{color:var(--bs-text-muted)}.ngb-dp-body{z-index:1055}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:var(--bs-tertiary-bg)}.ngb-dp-months{display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:var(--bs-tertiary-bg)}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem} 7`],encapsulation:2,changeDetection:0})}}return t})();function Zd(){return new Qd}var Ca=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:()=>Zd(),providedIn:"root"})}}return t})(),Qd=(()=>{class t extends Ca{parse(e){if(e!=null){let i=e.trim().split("-");if(i.length===1&&_t(i[0]))return{year:tt(i[0]),month:null,day:null};if(i.length===2&&_t(i[0])&&_t(i[1]))return{year:tt(i[0]),month:tt(i[1]),day:null};if(i.length===3&&_t(i[0])&&_t(i[1])&&_t(i[2]))return{year:tt(i[0]),month:tt(i[1]),day:tt(i[2])}}return null}format(e){return e?`${e.year}-${_t(e.month)?vo(e.month):""}-${_t(e.day)?vo(e.day):""}`:""}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ae(t)))(o||t)}})()}static{this.\u0275prov=f({token:t,factory:t.\u0275fac})}}return t})(),ga=(()=>{class t extends Wo{constructor(){super(...arguments),this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=e=>e,this.restoreFocus=!0}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ae(t)))(o||t)}})()}static{this.\u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),jg=(()=>{class t{constructor(){this._parserFormatter=a(Ca),this._elRef=a(L),this._vcRef=a(ni),this._ngZone=a(se),this._calendar=a(kn),this._dateAdapter=a(zo),this._document=a(xe),this._changeDetector=a(he),this._injector=a(ue),this._config=a(ga),this._cRef=null,this._disabled=!1,this._elWithFocus=null,this._model=null,this._positioning=fi(),this._destroyCloseHandlers$=new X,this.autoClose=this._config.autoClose,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.container=this._config.container,this.positionTarget=this._config.positionTarget,this.dateSelect=new C,this.navigate=new C,this.closed=new C,this._onChange=e=>{},this._onTouched=()=>{},this._validatorChange=()=>{}}get disabled(){return this._disabled}set disabled(e){this._disabled=e===""||e&&e!=="false",this.isOpen()&&this._cRef.instance.setDisabledState(this._disabled)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}registerOnValidatorChange(e){this._validatorChange=e}setDisabledState(e){this.disabled=e}validate(e){let{value:i}=e;if(i!=null){let o=this._fromDateStruct(this._dateAdapter.fromModel(i));if(!o)return{ngbDate:{invalid:i}};if(this.minDate&&o.before(je.from(this.minDate)))return{ngbDate:{minDate:{minDate:this.minDate,actual:i}}};if(this.maxDate&&o.after(je.from(this.maxDate)))return{ngbDate:{maxDate:{maxDate:this.maxDate,actual:i}}}}return null}writeValue(e){this._model=this._fromDateStruct(this._dateAdapter.fromModel(e)),this._writeModelValue(this._model)}manualDateChange(e,i=!1){let o=e!==this._inputValue;o&&(this._inputValue=e,this._model=this._fromDateStruct(this._parserFormatter.parse(e))),(o||!i)&&this._onChange(this._model?this._dateAdapter.toModel(this._model):e===""?null:e),i&&this._model&&this._writeModelValue(this._model)}isOpen(){return!!this._cRef}open(){if(!this.isOpen()){this._cRef=this._vcRef.createComponent(ba,{injector:this._injector}),this._applyPopupStyling(this._cRef.location.nativeElement),this._applyDatepickerInputs(this._cRef),this._subscribeForDatepickerOutputs(this._cRef.instance),this._cRef.instance.ngOnInit(),this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)),this._cRef.instance.registerOnChange(i=>{this.writeValue(i),this._onChange(i),this._onTouched()}),this._cRef.changeDetectorRef.detectChanges(),this._cRef.instance.setDisabledState(this.disabled),this.container==="body"&&this._document.querySelector(this.container)?.appendChild(this._cRef.location.nativeElement),this._elWithFocus=this._document.activeElement,gn(this._ngZone,this._cRef.location.nativeElement,this.closed,!0),setTimeout(()=>this._cRef?.instance.focus());let e;if(xt(this.positionTarget)?e=this._document.querySelector(this.positionTarget):this.positionTarget instanceof HTMLElement?e=this.positionTarget:e=this._elRef.nativeElement,this.positionTarget&&!e)throw new Error("ngbDatepicker could not find element declared in [positionTarget] to position against.");this._ngZone.runOutsideAngular(()=>{this._cRef&&e&&(this._positioning.createPopper({hostElement:e,targetElement:this._cRef.location.nativeElement,placement:this.placement,updatePopperOptions:i=>this.popperOptions(gi([0,2])(i))}),this._afterRenderRef=ii({mixedReadWrite:()=>
7{this._positioning.update()}},{injector:this._injector}))}),this._setCloseHandlers()}}close(){if(this.isOpen()){this._cRef?.destroy(),this._cRef=null,this._positioning.destroy(),this._afterRenderRef?.destroy(),this._destroyCloseHandlers$.next(),this.closed.emit(),this._changeDetector.markForCheck();let e=this._elWithFocus;xt(this.restoreFocus)?e=this._document.querySelector(this.restoreFocus):this.restoreFocus!==void 0&&(e=this.restoreFocus),e&&e.focus?e.focus():this._document.body.focus()}}toggle(){this.isOpen()?this.close():this.open()}navigateTo(e){this.isOpen()&&this._cRef.instance.navigateTo(e)}onBlur(){this._onTouched()}onFocus(){this._elWithFocus=this._elRef.nativeElement}ngOnChanges(e){if((e.minDate||e.maxDate)&&(this._validatorChange(),this.isOpen()&&(e.minDate&&this._cRef.setInput("minDate",this.minDate),e.maxDate&&this._cRef.setInput("maxDate",this.maxDate))),e.datepickerClass){let{currentValue:i,previousValue:o}=e.datepickerClass;this._applyPopupClass(i,o)}e.autoClose&&this.isOpen()&&this._setCloseHandlers()}ngOnDestroy(){this.close()}_applyDatepickerInputs(e){["contentTemplate","dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showNavigation","showWeekNumbers","weekdays"].forEach(i=>{this[i]!==void 0&&e.setInput(i,this[i])}),e.setInput("startDate",this.startDate||this._model)}_applyPopupClass(e,i){let o=this._cRef?.location.nativeElement;o&&(e&&o.classList.add(e),i&&o.classList.remove(i))}_applyPopupStyling(e){e.classList.add("dropdown-menu","show"),this.container==="body"&&e.classList.add("ngb-dp-body"),this._applyPopupClass(this.datepickerClass)}_subscribeForDatepickerOutputs(e){e.navigate.subscribe(i=>this.navigate.emit(i)),e.dateSelect.subscribe(i=>{this.dateSelect.emit(i),(this.autoClose===!0||this.autoClose==="inside")&&this.close()})}_writeModelValue(e){let i=this._parserFormatter.format(e);this._inputValue=i,this._elRef.nativeElement.value=i,this.isOpen()&&(this._cRef.instance.writeValue(this._dateAdapter.toModel(e)),this._onTouched())}_fromDateStruct(e){let i=e?new je(e.year,e.month,e.day):null;return this._calendar.isValid(i)?i:null}_setCloseHandlers(){this._destroyCloseHandlers$.next(),_i(this._ngZone,this._document,this.autoClose,()=>this.close(),this._destroyCloseHandlers$,[],[this._elRef.nativeElement,this._cRef.location.nativeElement])}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=_({type:t,selectors:[["input","ngbDatepicker",""]],hostVars:1,hostBindings:function(i,o){i&1&&w("input",function(s){return o.manualDateChange(s.target.value)})("change",function(s){return o.manualDateChange(s.target.value,!0)})("focus",function(){return o.onFocus()})("blur",function(){return o.onBlur()}),i&2&&Y("disabled",o.disabled)},inputs:{autoClose:"autoClose",contentTemplate:"contentTemplate",datepickerClass:"datepickerClass",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",minDate:"minDate",maxDate:"maxDate",navigation:"navigation",outsideDays:"outsideDays",placement:"placement",popperOptions:"popperOptions",restoreFocus:"restoreFocus",showWeekNumbers:"showWeekNumbers",startDate:"startDate",container:"container",positionTarget:"positionTarget",weekdays:"weekdays",disabled:"disabled"},outputs:{dateSelect:"dateSelect",navigate:"navigate",closed:"closed"},exportAs:["ngbDatepicker"],features:[ee([{provide:lt,useExisting:ne(()=>t),multi:!0},{provide:ct,useExisting:ne(()=>t),multi:!0},{provide:Wo,useExisting:ga}]),oe]})}}return t})();var $g=new Date(1882,10,12),Wg=new Date(2174,10,25);var zg=1e3*60*60*24;var qo=1080,Jd=24*qo,Xd=12*qo+793,qg=29*Jd+Xd,Kg=11*qo+204;var Ko=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=S({type:t})}static{this.\u0275inj=M({})}}return t})();var eu=(()=>{class t{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=e=>e,this.container=null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Da=(()=>{class t{constructor(){this._disabled=!1,this.nativeElement=a(L).nativeElement,this.tabindex=0}set disabled(e){this._disabled=e===""||e===!0}get disabled(){return this._disabled}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=_({type:t,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(i,o){i&2&&(Y("tabIndex",o.disabled?-1:o.tabindex),D("disabled",o.disabled))},inputs:{tabindex:"tabindex",disabled:"disabled"}})}}return t})(),l0=(()=>{class t{constructor(){this.item=a(Da)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=_({type:t,selectors:[["button","ngbDropdownItem",""]],hostVars:1,hostBindings:function(i,o){i&2&&Y("disabled",o.item.disabled)}})}}return t})(),tu=(()=>{class t{constructor(){this.dropdown=a(Ma),this.nativeElement=a(L).nativeElement}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=_({type:t,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(i,o,r){if(i&1&&ve(r,Da,4),i&2){let s;z(s=q())&&(o.menuItems=s)}},hostAttrs:[1,"dropdown-menu"],hostVars:2,hostBindings:function(i,o){i&1&&w("
7keydown.ArrowUp",function(s){return o.dropdown.onKeyDown(s)})("keydown.ArrowDown",function(s){return o.dropdown.onKeyDown(s)})("keydown.Home",function(s){return o.dropdown.onKeyDown(s)})("keydown.End",function(s){return o.dropdown.onKeyDown(s)})("keydown.Enter",function(s){return o.dropdown.onKeyDown(s)})("keydown.Space",function(s){return o.dropdown.onKeyDown(s)})("keydown.Tab",function(s){return o.dropdown.onKeyDown(s)})("keydown.Shift.Tab",function(s){return o.dropdown.onKeyDown(s)}),i&2&&D("show",o.dropdown.isOpen())}})}}return t})(),Yo=(()=>{class t{constructor(){this.dropdown=a(Ma),this.nativeElement=a(L).nativeElement}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=_({type:t,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(i,o){i&2&&(j("aria-expanded",o.dropdown.isOpen()),D("show",o.dropdown.isOpen()))}})}}return t})(),c0=(()=>{class t extends Yo{static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ae(t)))(o||t)}})()}static{this.\u0275dir=_({type:t,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(i,o){i&1&&w("click",function(){return o.dropdown.toggle()})("keydown.ArrowUp",function(s){return o.dropdown.onKeyDown(s)})("keydown.ArrowDown",function(s){return o.dropdown.onKeyDown(s)})("keydown.Home",function(s){return o.dropdown.onKeyDown(s)})("keydown.End",function(s){return o.dropdown.onKeyDown(s)})("keydown.Tab",function(s){return o.dropdown.onKeyDown(s)})("keydown.Shift.Tab",function(s){return o.dropdown.onKeyDown(s)}),i&2&&(j("aria-expanded",o.dropdown.isOpen()),D("show",o.dropdown.isOpen()))},features:[ee([{provide:Yo,useExisting:ne(()=>t)}]),ie]})}}return t})(),Ma=(()=>{class t{constructor(){this._changeDetector=a(he),this._config=a(eu),this._document=a(xe),this._injector=a(ue),this._ngZone=a(se),this._nativeElement=a(L).nativeElement,this._destroyCloseHandlers$=new X,this._bodyContainer=null,this._positioning=fi(),this.autoClose=this._config.autoClose,this._open=!1,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.container=this._config.container,this.openChange=new C}ngOnInit(){this.display||(this.display=this._nativeElement.closest(".
7navbar")?"static":"dynamic")}ngAfterContentInit(){ze({write:()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()}},{injector:this._injector})}ngOnChanges(e){if(e.container&&this._open&&this._applyContainer(this.container),e.placement&&!e.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement}),this._applyPlacementClasses()),e.dropdownClass){let{currentValue:i,previousValue:o}=e.dropdownClass;this._applyCustomDropdownClass(i,o)}e.autoClose&&this._open&&(this.autoClose=e.autoClose.currentValue,this._setCloseHandlers())}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&(this._anchor.nativeElement.focus(),this.display==="dynamic"&&this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,updatePopperOptions:e=>this.popperOptions(gi([0,2])(e))}),this._applyPlacementClasses(),this._afterRenderRef=ii({write:()=>{this._positionMenu()}},{injector:this._injector})})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),_i(this._ngZone,this._document,this.autoClose,e=>{this.close(),e===0&&this._anchor.nativeElement.focus()},this._destroyCloseHandlers$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._positioning.destroy(),this._afterRenderRef?.destroy(),this._destroyCloseHandlers$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this.close()}onKeyDown(e){let{key:i}=e,o=this._getMenuElements(),r=-1,s=null,l=this._isEventFromToggle(e);if(!l&&o.length&&o.forEach((c,d)=>{c.contains(e.target)&&(s=c),c===bo(this._document)&&(r=d)}),i===" "||i==="Enter"){s&&(this.autoClose===!0||this.autoClose==="inside")&&re(s,"click").pipe(We(1)).subscribe(()=>this.close());return}if(i==="Tab"){if(e.target&&this.isOpen()&&this.autoClose)if(this._anchor.nativeElement===e.target){this.container==="body"&&!e.shiftKey?(this._menu.nativeElement.setAttribute("tabindex","0"),this._menu.nativeElement.focus(),this._menu.nativeElement.removeAttribute("tabindex")):e.shiftKey&&this.close();return}else if(this.container==="body"){let c=this._menu.nativeElement.querySelectorAll(Co);e.shiftKey&&e.target===c[0]?(this._anchor.nativeElement.focus(),e.preventDefault()):!e.shiftKey&&e.target===c[c.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else re(e.target,"focusout").pipe(We(1)).subscribe(({relatedTarget:c})=>{this._nativeElement.contains(c)||this.close()});return}if(l||s){if(this.open(),o.length){switch(i){case"ArrowDown":r=Math.min(r+1,o.length-1);break;case"ArrowUp":if(this._isDropup()&&r===-1){r=o.length-1;break}r=Math.max(r-1,0);break;case"Home":r=0;break;case"End":r=o.length-1;break}o[r].focus()}e.preventDefault()}}_isDropup(){return this._nativeElement.classList.contains("dropup")}_isEventFromToggle(e){return this._anchor.nativeElement.contains(e.target)}_getMenuElements(){return this._menu?this._menu.menuItems.filter(({disabled:e})=>!e).map(({nativeElement:e})=>e):[]}_positionMenu(){let e=this._menu;this.isOpen()&&e&&(this.display==="dynamic"?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(e){return Array.isArray(e)?e[0]:e.split(" ")[0]}_resetContainer(){this._menu&&this._nativeElement.appendChild(this._menu.nativeElement),this._bodyContainer&&(this._document.body.removeChild(this._bodyContainer),this._bodyContainer=null)}_applyContainer(e=null){if(this._resetContainer(),e==="body"){let i=this._menu.nativeElement,o=this._bodyContainer=this._bodyContainer||this._document.createElement("div");o.style.position="absolute",i.style.position="static",o.style.zIndex="1055",o.appendChild(i),this._document.body.appendChild(o)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(e,i){let o=this.container==="body"?this._bodyContainer:this._nativeElement;o&&(i&&o.classList.remove(i),e&&o.classList.add(e))}_applyPlacementClasses(e){if(this._menu){e||(e=this._getFirstPlacement(this.placement)),this._nativeElement.classList.remove("dropup","dropdown"),this.display==="static"?this._menu.nativeElement.setAttribute("data-bs-popper","static"):this._menu.nativeElement.removeAttribute("data-bs-popper");let i=e.search("^top")!==-1?"dropup":"dropdown";this._nativeElement.classList.add(i),this._bodyContainer&&(this._bodyContainer.classList.remove("dropup","dropdown"),this._bodyContainer.classList.add(i))}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=_({type:t,selectors:[["","ngbDropdown",""]],contentQueries:function(i,o,r){if(i&1&&ve(r,tu,5)(r,Yo,5),i&2){let s;z(s=q())&&(o._menu=s.first),z(s=q())&&(o._anchor=s.first)}},hostVars:2,hostBindings:function(i,o){i&2&&D("show",o.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:[0,"open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",dis
7play:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],features:[oe]})}}return t})();var Zo=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=S({type:t})}static{this.\u0275inj=M({})}}return t})();var iu=["ngbNavOutlet",""],nu=t=>({$implicit:t});function ou(t,n){}function ru(t,n){if(t&1&&(y(0,"div",0),Ne(1,ou,0,0,"ng-template",1),g()),t&2){let e=v().$implicit,i=v();G("item",e)("nav",i.nav)("role",i.paneRole),h(),G("ngTemplateOutlet",(e.contentTpl==null?null:e.contentTpl.templateRef)||null)("ngTemplateOutletContext",Ri(5,nu,e.active||i.isPanelTransitioning(e)))}}function su(t,n){if(t&1&&R(0,ru,2,7,"div",0),t&2){let e=n.$implicit,i=v();P(e.isPanelInDom()||i.isPanelTransitioning(e)?0:-1)}}var au=(()=>{class t{constructor(){this._ngbConfig=a(ft),this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),wa=t=>at(t)&&t!=="",lu=0,cu=(()=>{class t{constructor(){this.templateRef=a(Qe)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=_({type:t,selectors:[["ng-template","ngbNavContent",""]]})}}return t})(),I0=(()=>{class t{constructor(e){this.role=e,this.nav=a(Qo)}static{this.\u0275fac=function(i){return new(i||t)(ti("role"))}}static{this.\u0275dir=_({type:t,selectors:[["","ngbNavItem","",5,"ng-container"]],hostVars:1,hostBindings:function(i,o){i&2&&j("role",o.role?o.role:o.nav.roles?"presentation":void 0)}})}}return t})(),Na=(()=>{class t{constructor(){this._nav=a(Qo),this._nativeElement=a(L).nativeElement,this.disabled=!1,this.shown=new C,this.hidden=new C}ngOnInit(){at(this.domId)||(this.domId=`ngb-nav-${lu++}`)}get active(){return this._nav.activeId===this.id}get id(){return wa(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(at(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}isNgContainer(){return this._nativeElement.nodeType===Node.COMMENT_NODE}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=_({type:t,selectors:[["","ngbNavItem",""]],contentQueries:function(i,o,r){if(i&1&&ve(r,cu,4),i&2){let s;z(s=q())&&(o.contentTpl=s.first)}},hostAttrs:[1,"nav-item"],inputs:{destroyOnHide:"destroyOnHide",disabled:"disabled",domId:"domId",_id:[0,"ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"]})}}return t})(),Qo=(()=>{class t{constructor(e){this.role=e,this._config=a(au),this._cd=a(he),this._document=a(xe),this._nativeElement=a(L).nativeElement,this.destroyRef=a(Et),this._navigatingWithKeyboard=!1,this.activeIdChange=new C,this.animation=this._config.animation,this.destroyOnHide=this._config.destroyOnHide,this.orientation=this._config.orientation,this.roles=this._config.roles,this.keyboard=this._config.keyboard,this.shown=new C,this.hidden=new C,this.navItemChange$=new X,this.navChange=new C}click(e){e.disabled||this._updateActiveId(e.id)}onFocusout({relatedTarget:e}){this._nativeElement.contains(e)||(this._navigatingWithKeyboard=!1)}onKeyDown(e){if(this.roles!=="tablist"||!this.keyboard)return;let i=this.links.filter(s=>!s.navItem.disabled),{length:o}=i,r=-1;if(i.forEach((s,l)=>{s.nativeElement===this._document.activeElement&&(r=l)}),o){switch(e.key){case"ArrowUp":case"ArrowLeft":r=(r-1+o)%o;break;case"ArrowRight":case"ArrowDown":r=(r+1)%o;break;case"Home":r=0;break;case"End":r=o-1;break}this.keyboard==="changeWithArrows"&&this.select(i[r].navItem.id),i[r].nativeElement.focus(),this._navigatingWithKeyboard=!0,e.preventDefault()}}select(e){this._updateActiveId(e,!1)}ngAfterContentInit(){if(!at(this.activeId)){let e=this.items.first?this.items.first.id:null;wa(e)&&(this._updateActiveId(e,!1),this._cd.detectChanges())}this.items.changes.pipe(pt(this.destroyRef)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:e}){e&&!e.firstChange&&this._notifyItemChanged(e.currentValue)}_updateActiveId(e,i=!0){if(this.activeId!==e){let o=!1;i&&this.navChange.emit({activeId:this.activeId,nextId:e,preventDefault:()=>{o=!0}}),o||(this.activeId=e,this.activeIdChange.emit(e),this._notifyItemChanged(e))}}_notifyItemChanged(e){this.navItemChange$.next(this._getItemById(e))}_getItemById(e){return this.items&&this.items.find(i=>i.id===e)||null}static{this.\u0275fac=function(i){return new(i||t)(ti("role"))}}static{this.\u0275dir=_({type:t,selectors:[["","ngbNav",""]],contentQueries:function(i,o,r){if(i&1&&ve(r,Na,4)(r,Ea,5),i&2){let s;z(s=q())&&(o.items=s),z(s=q())&&(o.links=s)}},hostAttrs:[1,"nav"],hostVars:4,hostBindings:function(i,o){i&1&&w("
7keydown.arrowLeft",function(s){return o.onKeyDown(s)})("keydown.arrowRight",function(s){return o.onKeyDown(s)})("keydown.arrowDown",function(s){return o.onKeyDown(s)})("keydown.arrowUp",function(s){return o.onKeyDown(s)})("keydown.Home",function(s){return o.onKeyDown(s)})("keydown.End",function(s){return o.onKeyDown(s)})("focusout",function(s){return o.onFocusout(s)}),i&2&&(j("aria-orientation",o.orientation==="vertical"&&o.roles==="tablist"?"vertical":void 0)("role",o.role?o.role:o.roles?"tablist":void 0),D("flex-column",o.orientation==="vertical"))},inputs:{activeId:"activeId",animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],features:[oe]})}}return t})(),Ea=(()=>{class t{constructor(e){this.role=e,this.navItem=a(Na),this.nav=a(Qo),this.nativeElement=a(L).nativeElement}get tabindex(){return this.nav.keyboard===!1?this.navItem.disabled?-1:void 0:this.nav._navigatingWithKeyboard||this.navItem.disabled||!this.navItem.active?-1:void 0}static{this.\u0275fac=function(i){return new(i||t)(ti("role"))}}static{this.\u0275dir=_({type:t,selectors:[["","ngbNavLink",""]],hostAttrs:[1,"nav-link"],hostVars:12,hostBindings:function(i,o){i&2&&(Y("id",o.navItem.domId),j("role",o.role?o.role:o.nav.roles?"tab":void 0)("tabindex",o.tabindex)("aria-controls",o.navItem.isPanelInDom()?o.navItem.panelDomId:null)("aria-selected",o.navItem.active)("aria-disabled",o.navItem.disabled),D("nav-item",o.navItem.isNgContainer())("active",o.navItem.active)("disabled",o.navItem.disabled))}})}}return t})(),R0=(()=>{class t extends Ea{static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=ae(t)))(o||t)}})()}static{this.\u0275dir=_({type:t,selectors:[["button","ngbNavLink",""]],hostAttrs:["type","button"],hostVars:1,hostBindings:function(i,o){i&1&&w("click",function(){return o.nav.click(o.navItem)}),i&2&&Y("disabled",o.navItem.disabled)},features:[ie]})}}return t})();var du=({classList:t})=>(t.remove("show"),()=>
7t.remove("active")),uu=(t,n)=>{n&&Bt(t),t.classList.add("show")},Sa=(()=>{class t{constructor(){this.nativeElement=a(L).nativeElement}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=_({type:t,selectors:[["","ngbNavPane",""]],hostAttrs:[1,"tab-pane"],hostVars:5,hostBindings:function(i,o){i&2&&(Y("id",o.item.panelDomId),j("role",o.role?o.role:o.nav.roles?"tabpanel":void 0)("aria-labelledby",o.item.domId),D("fade",o.nav.animation))},inputs:{item:"item",nav:"nav",role:"role"}})}}return t})(),P0=(()=>{class t{constructor(){this._cd=a(he),this._ngZone=a(se),this._activePane=null}isPanelTransitioning(e){return this._activePane?.item===e}ngAfterViewInit(){this._updateActivePane(),this.nav.navItemChange$.pipe(pt(this.nav.destroyRef),xr(this._activePane?.item||null),Ir(),Pr(1)).subscribe(e=>{let i={animation:this.nav.animation,runningTransition:"stop"};this._cd.detectChanges(),this._activePane?Me(this._ngZone,this._activePane.nativeElement,du,i).subscribe(()=>{let o=this._activePane?.item;this._activePane=this._getPaneForItem(e),this._cd.markForCheck(),this._activePane&&(this._activePane.nativeElement.classList.add("active"),Me(this._ngZone,this._activePane.nativeElement,uu,i).subscribe(()=>{e&&(e.shown.emit(),this.nav.shown.emit(e.id))})),o&&(o.hidden.emit(),this.nav.hidden.emit(o.id))}):this._updateActivePane()})}_updateActivePane(){this._activePane=this._getActivePane(),this._activePane?.nativeElement.classList.add("show","active")}_getPaneForItem(e){return this._panes&&this._panes.find(i=>i.item===e)||null}_getActivePane(){return this._panes&&this._panes.find(e=>e.item.active)||null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=k({type:t,selectors:[["","ngbNavOutlet",""]],viewQuery:function(i,o){if(i&1&&vt(Sa,5),i&2){let r;z(r=q())&&(o._panes=r)}},hostAttrs:[1,"tab-content"],inputs:{paneRole:"paneRole",nav:[0,"ngbNavOutlet","nav"]},attrs:iu,decls:2,vars:0,consts:[["ngbNavPane","",3,"item","nav","role"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){i&1&&Ee(0,su,1,1,null,null,ut),i&2&&Oe(o.nav.items)},dependencies:[Sa,Ct],encapsulation:2,changeDetection:0})}}return t})();var Jo=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=S({type:t})}static{this.\u0275inj=M({})}}return t})();var Xo=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=S({type:t})}static{this.\u0275inj=M({})}}return t})();var er=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=S({type:t})}static{this.\u0275inj=M({})}}return t})();var tr=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=S({type:t})}static{this.\u0275inj=M({})}}return t})();var ir=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=S({type:t})}static{this.\u0275inj=M({})}}return t})();var nr=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=S({type:t})}static{this.\u0275inj=M({})}}return t})();var or=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=S({type:t})}static{this.\u0275inj=M({})}}return t})();var pu=["*"];function fu(t,n){if(t&1&&(y(0,"strong",3),T(1),g()),t&2){let e=v();h(),Z(e.header)}}function mu(t,n){}function _u(t,n){if(t&1){let e=Be();y(0,"div",1),Ne(1,mu,0,0,"ng-template",4),y(2,"button",5),w("click",function(){_e(e);let o=v();return ge(o.hide())}),g()()}if(t&2){let e=v(),i=yt(1);h(),G("ngTemplateOutlet",e.contentHeaderTpl||i)}}var gu=(()=>{class t{constructor(){this._ngbConfig=a(ft),this.autohide=!0,this.delay=5e3,this.ariaLive="polite"}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),vu=(t,n)=>{let{classList:e}=t;if(n)e.add("fade");else{e.add("show");return}return Bt(t),e.add("show","showing"),()=>{e.remove("showing")}},yu=({classList:t})=>(t.add("showing"),()=>
7{t.remove("show","showing")}),bu=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=_({type:t,selectors:[["","ngbToastHeader",""]]})}}return t})(),n1=(()=>{class t{constructor(e){this.ariaLive=e,this._config=a(gu),this._zone=a(se),this._injector=a(ue),this._element=a(L),this.animation=this._config.animation,this.delay=this._config.delay,this.autohide=this._config.autohide,this.contentHeaderTpl=null,this.shown=new C,this.hidden=new C,this.ariaLive??=this._config.ariaLive}ngAfterContentInit(){ze({mixedReadWrite:()=>{this._init(),this.show()}},{injector:this._injector})}ngOnChanges(e){"autohide"in e&&(this._clearTimeout(),this._init())}hide(){this._clearTimeout();let e=Me(this._zone,this._element.nativeElement,yu,{animation:this.animation,runningTransition:"stop"});return e.subscribe(()=>{this.hidden.emit()}),e}show(){let e=Me(this._zone,this._element.nativeElement,vu,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>{this.shown.emit()}),e}_init(){this.autohide&&!this._timeoutID&&(this._timeoutID=setTimeout(()=>this.hide(),this.delay))}_clearTimeout(){this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)}static{this.\u0275fac=function(i){return new(i||t)(ti("aria-live"))}}static{this.\u0275cmp=k({type:t,selectors:[["ngb-toast"]],contentQueries:function(i,o,r){if(i&1&&ve(r,bu,7,Qe),i&2){let s;z(s=q())&&(o.contentHeaderTpl=s.first)}},hostAttrs:["role","alert","aria-atomic","true",1,"toast"],hostVars:3,hostBindings:function(i,o){i&2&&(j("aria-live",o.ariaLive),D("fade",o.animation))},inputs:{animation:"animation",delay:"delay",autohide:"autohide",header:"header"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbToast"],features:[oe],ngContentSelectors:pu,decls:5,vars:1,consts:()=>{let e;return e=$localize`:@@ngb.toast.close-aria:Close`,[["headerTpl",""],[1,"toast-header"],[1,"toast-body"],[1,"me-auto"],[3,"ngTemplateOutlet"],["type","button","aria-label",e,1,"btn-close",3,"click"]]},template:function(i,o){i&1&&(Ye(),Ne(0,fu,2,1,"ng-template",null,0,ht),R(2,_u,3,1,"div",1),y(3,"div",2),Ue(4),g()),i&2&&(h(2),P(o.contentHeaderTpl||o.header?2:-1))},dependencies:[Ct],styles:[`ngb-toast{display:block}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem} 8`],encapsulation:2})}}return t})(),rr=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=S({type:t})}static{this.\u0275inj=M({})}}return t})();var sr=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=S({type:t})}static{this.\u0275inj=M({})}}return t})();function Cu(t,n){if(t&1&&(qe(0,"span"),T(1),Ke()),t&2){let e=v().$implicit,i=v();ye(i.highlightClass),h(),Z(e)}}function Du(t,n){if(t&1&&(zn(0),T(1),qn()),t&2){let e=v().$implicit;h(),Z(e)}}function Mu(t,n){if(t&1&&R(0,Cu,2,3,"span",0)(1,Du,2,1,"ng-container"),t&2){let e=n.$index;P(e%2!==0?0:1)}}var Su=(t,n,e)=>({result:t,term:n,formatter:e});function wu(t,n){if(t&1&&Te(0,"ngb-highlight",2),t&2){let e=n.result,i=n.term,o=n.formatter;G("result",o(e))("term",i)}}function Nu(t,n){}function Eu(t,n){if(t&1){let e=Be();y(0,"button",3),w("mouseenter",function(){let o=_e(e).$index,r=v();return ge(r.markActive(o))})("click",function(){let o=_e(e).$implicit,r=v();return ge(r.select(o))}),Ne(1,Nu,0,0,"ng-template",4),g()}if(t&2){let e=n.$implicit,i=n.$index,o=v(),r=yt(1);D("active",i===o.activeIdx),G("id",o.id+"-"+i),h(),G("ngTemplateOutlet",o.resultTemplate||r)("ngTemplateOutletContext",Kn(5,Su,e,o.term,o.formatter))}}var Ou=(()=>{class t{constructor(){this.highlightClass="ngb-highlight",this.accentSensitive=!0}ngOnChanges(e){!this.accentSensitive&&!String.prototype.normalize&&(console.warn("The `accentSensitive` input in `ngb-highlight` cannot be set to `false` in a browser that does not implement the `String.normalize` function. You will have to include a polyfill in your application to use this feature in the current browser."),this.accentSensitive=!0);let i=mi(this.result),o=Array.isArray(this.term)?this.term:[this.term],r=d=>this.accentSensitive?d:yo(d),s=o.map(d=>Ds(r(mi(d)))).filter(d=>d),l=this.accentSensitive?i:yo(i),c=s.length?l.split(new RegExp(`(${s.join("|")})`,"gmi")):[i];if(this.accentSensitive)this.parts=c;else{let d=0;this.parts=c.map(u=>i.substring(d,d+=u.length))}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=k({type:t,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term",accentSensitive:"accentSensitive"},features:[oe],decls:2,vars:0,consts:[[3,"class"]],template:function(i,o){i&1&&Ee(0,Mu,2,1,null,null,ri),i&2&&Oe(o.parts)},styles:[`.ngb-highlight{font-weight:700} 9`],encapsulation:2,changeDetection:0})}}return t})(),Tu=(()=>{class t{constructor(){this.editable=!0,this.focusFirst=!0,this.selectOnExact=!1,this.showHint=!1,this.placement=["bottom-start","bottom-end","top-start","to
9p-end"],this.popperOptions=e=>e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Au=(()=>{class t{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=mi,this.selectEvent=new C,this.activeChangeEvent=new C}hasActive(){return this.activeIdx>-1&&this.activeIdx<this.results.length}getActive(){return this.results[this.activeIdx]}markActive(e){this.activeIdx=e,this._activeChanged()}next(){this.activeIdx===this.results.length-1?this.activeIdx=this.focusFirst?(this.activeIdx+1)%this.results.length:-1:this.activeIdx++,this._activeChanged()}prev(){this.activeIdx<0?this.activeIdx=this.results.length-1:this.activeIdx===0?this.activeIdx=this.focusFirst?this.results.length-1:-1:this.activeIdx--,this._activeChanged()}resetActive(){this.activeIdx=this.focusFirst?0:-1,this._activeChanged()}select(e){this.selectEvent.emit(e)}ngOnInit(){this.resetActive()}_activeChanged(){this.activeChangeEvent.emit(this.activeIdx>=0?this.id+"-"+this.activeIdx:void 0)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=k({type:t,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(i,o){i&1&&w("mousedown",function(s){return s.preventDefault()}),i&2&&(Y("id",o.id),ye("dropdown-menu show"+(o.popupClass?" "+o.popupClass:"")))},inputs:{id:"id",focusFirst:"focusFirst",results:"results",term:"term",formatter:"formatter",resultTemplate:"resultTemplate",popupClass:"popupClass"},outputs:{selectEvent:"select",activeChangeEvent:"activeChange"},exportAs:["ngbTypeaheadWindow"],decls:4,vars:0,consts:[["rt",""],["type","button","role","option",1,"dropdown-item",3,"id","active"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"mouseenter","click","id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){i&1&&(Ne(0,wu,1,2,"ng-template",null,0,ht),Ee(2,Eu,2,9,"button",1,ri)),i&2&&(h(2),Oe(o.results))},dependencies:[Ou,Ct],encapsulation:2})}}return t})(),Iu=0,b1=(()=>{class t{constructor(){this._nativeElement=a(L).nativeElement,this._config=a(Tu),this._live=a(ws),this._document=a(xe),this._ngZone=a(se),this._changeDetector=a(he),this._injector=a(ue),this._popupService=new _n(Au),this._positioning=fi(),this._subscription=null,this._closed$=new X,this._inputValueBackup=null,this._inputValueForSelectOnExact=null,this._valueChanges$=re(this._nativeElement,"input").pipe(B(e=>e.target.value)),this._resubscribeTypeahead$=new Sr(null),this._windowRef=null,this.autocomplete="off",this.container=this._config.container,this.editable=this._config.editable,this.focusFirst=this._config.focusFirst,this.selectOnExact=this._config.selectOnExact,this.showHint=this._config.showHint,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.selectItem=new C,this.activeDescendant=null,this.popupId=`ngb-typeahead-${Iu++}`,this._onTouched=()=>{},this._onChange=e=>{}}ngOnInit(){this._subscribeToUserInput()}ngOnChanges({ngbTypeahead:e}){e&&!e.firstChange&&(this._unsubscribeFromUserInput(),this._subscribeToUserInput())}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput()}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}writeValue(e){this._writeInputValue(this._formatItemForInput(e)),this.showHint&&(this._inputValueBackup=e)}setDisabledState(e){this._nativeElement.disabled=e}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead$.next(null),this._closePopup(),this.showHint&&this._inputValueBackup!==null&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return this._windowRef!=null}handleBlur(){this._resubscribeTypeahead$.next(null),this._onTouched()}handleKeyDown(e){if(this.isPopupOpen())switch(e.key){case"ArrowDown":e.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case"ArrowUp":e.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case"Enter":case"Tab":{let i=this._windowRef.instance.getActive();at(i)&&(e.preventDefault(),e.stopPropagation(),this._selectResult(i)),this._closePopup();break}}}_openPopup(){if(!this.isPopupOpen()){this._inputValueBackup=this._nativeElement.value;let{windowRef:e}=this._popupService.open();this._windowRef=e,this._windowRef.setInput("id",this.popupId),this._windowRef.setInput("popupClass",this.popupClass),this._windowRef.instance.selectEvent.subscribe(i=>this._selectResultClosePopup(i)),this._windowRef.instance.activeChangeEvent.subscribe(i=>this.activeDescendant=i),this.container==="body"&&(this._windowRef.location.nativeElement.style.zIndex="1055",this._document.body.appendChild(this._windowRef.location.nativeElement)),this._changeDetector.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._windowRef&&(this._positioning.createPopper({hostElement:this._nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,updatePopperOptions:i=>this.popperOptions(gi([0,2])(i))}),this._afterRenderRef=ii({mixedReadWrite:()=>
9{this._positioning.update()}},{injector:this._injector}))}),_i(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._nativeElement,this._windowRef.location.nativeElement])}}_closePopup(){this._popupService.close().subscribe(()=>{this._positioning.destroy(),this._afterRenderRef?.destroy(),this._closed$.next(),this._windowRef=null,this.activeDescendant=null})}_selectResult(e){let i=!1;this.selectItem.emit({item:e,preventDefault:()=>{i=!0}}),this._resubscribeTypeahead$.next(null),i||(this.writeValue(e),this._onChange(e))}_selectResultClosePopup(e){this._selectResult(e),this._closePopup()}_showHint(){if(this.showHint&&this._windowRef?.instance.hasActive()&&this._inputValueBackup!=null){let e=this._inputValueBackup.toLowerCase(),i=this._formatItemForInput(this._windowRef.instance.getActive());e===i.substring(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+i.substring(this._inputValueBackup.length)),this._nativeElement.setSelectionRange.apply(this._nativeElement,[this._inputValueBackup.length,i.length])):this._writeInputValue(i)}}_formatItemForInput(e){return e!=null&&this.inputFormatter?this.inputFormatter(e):mi(e)}_writeInputValue(e){this._nativeElement.value=mi(e)}_subscribeToUserInput(){let e=this._valueChanges$.pipe(W(i=>{this._inputValueBackup=this.showHint?i:null,this._inputValueForSelectOnExact=this.selectOnExact?i:null,this._onChange(this.editable?i:null)}),this.ngbTypeahead?this.ngbTypeahead:()=>Pe([]));this._subscription=this._resubscribeTypeahead$.pipe(Nt(()=>e)).subscribe(i=>{!i||i.length===0?this._closePopup():this.selectOnExact&&i.length===1&&this._formatItemForInput(i[0])===this._inputValueForSelectOnExact?(this._selectResult(i[0]),this._closePopup()):(this._openPopup(),this._windowRef.setInput("focusFirst",this.focusFirst),this._windowRef.setInput("results",i),this._windowRef.setInput("term",this._nativeElement.value),this.resultFormatter&&this._windowRef.setInput("formatter",this.resultFormatter),this.resultTemplate&&this._windowRef.setInput("resultTemplate",this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint());let o=i?i.length:0;this._live.say(o===0?"No results available":`${o} result${o===1?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=_({type:t,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox"],hostVars:7,hostBindings:function(i,o){i&1&&w("blur",function(){return o.handleBlur()})("keydown",function(s){return o.handleKeyDown(s)}),i&2&&(Y("autocomplete",o.autocomplete),j("aria-autocomplete",o.showHint?"both":"list")("aria-activedescendant",o.activeDescendant)("aria-controls",o.isPopupOpen()?o.popupId:null)("aria-expanded",o.isPopupOpen()),D("open",o.isPopupOpen()))},inputs:{autocomplete:"autocomplete",container:"container",editable:"editable",focusFirst:"focusFirst",inputFormatter:"inputFormatter",ngbTypeahead:"ngbTypeahead",resultFormatter:"resultFormatter",resultTemplate:"resultTemplate",selectOnExact:"selectOnExact",showHint:"showHint",placement:"placement",popperOptions:"popperOptions",popupClass:"popupClass"},outputs:{selectItem:"selectItem"},exportAs:["ngbTypeahead"],features:[ee([{provide:lt,useExisting:ne(()=>t),multi:!0}]),oe]})}}return t})(),ar=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=S({type:t})}static{this.\u0275inj=M({})}}return t})();var lr=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=S({type:t})}static{this.\u0275inj=M({})}}return t})();var Ru=[So,Go,Ho,Mo,Ko,Zo,Lo,Jo,lr,Xo,er,tr,ir,nr,or,rr,sr,ar],H1=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=S({type:t})}static{this.\u0275inj=M({imports:[Ru,So,Go,Ho,Mo,Ko,Zo,Lo,Jo,lr,Xo,er,tr,ir,nr,or,rr,sr,ar]})}}return t})();function Pu(t,n){if(t&1&&(y(0,"h2",2),T(1),g()),t&2){let e=v();G("ngClass",e.textClass()),h(),Z(e.text())}}var Oa=(()=>{class t{constructor(){this.ellipsisClass=He("border-dark"),this.textClass=He(""),this.text=He(""),this.minHeight=He("200px")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=k({type:t,selectors:[["nbm-loading"]],inputs:{ellipsisClass:[1,"ellipsisClass"],textClass:[1,"textClass"],text:[1,"text"],minHeight:[1,"minHeight"]},decls:5,vars:5,consts:[["id","wait",1,"loading","d-flex","justify-content-center","flex-column","align-items-center"],["id","ripple",1,"lds-ripple"],[3,"ngClass"]],template:function(i,o){i&1&&(y(0,"section",0)(1,"div",1),Te(2,"div",2)(3,"div",2),g(),R(4,Pu,2,2,"h2",2),g()),i&2&&(Ii("min-height",o.minHeight()),h(2),G("ngClass",o.ellipsisClass()),h(),G("ngClass",o.ellipsisClass()),h(),P(o.text()?4:-1))},dependencies:[Wr],styles:[".lds-ripple[_ngcontent-%COMP%]{display:inline-block;position:relative;width:128px;height:128px}.lds-ripple[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;border:4px solid #cef;opacity:1;border-radius:50%;animation:_ngcontent-%COMP%_lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite,_ngcontent-%COMP%_color-change 1s infinite}.lds-ripple[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){animation-delay:-.5s}@keyframes _ngcontent-%COMP%_lds-ripple{0%{top:64px;left:64px;width:0;height:0;border-width:0;opacity:1}to{top:0;left:0;width:128px;height:128px;border-width:8px;opacity:0}
9}@keyframes _ngcontent-%COMP%_color-change{0%{border-color:#2e1c8a}to{border-color:#fff}}"]})}}return t})();var ur=Dr($a()),Aa=Dr(Ta());var Ia=(()=>{class t{transform(e,...i){ur.default.extend(Aa.default);let o=i[0]||"Do MMMM YYYY";return(0,ur.default)(e).format(o)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=Fr({name:"dayjsDate",type:t,pure:!0})}}return t})();var Ra=(()=>{class t{constructor(){this.appState=a(ai),this.requestService=a(Tt),this.appState.impersonationStateChanged.subscribe(()=>{this.getSubscriptionStatusFromServer().subscribe()})}getSubscriptionStatus(){return this.appState.subscriptionStatus$.value?this.appState.subscriptionStatus$:this.getSubscriptionStatusFromServer()}getSubscriptionStatusFromServer(){return this.requestService.userQuery("GetSubscriptionStatus",{}).pipe(W(e=>{this.appState.subscriptionStatus$.next(e)}),dt(e=>this.appState.subscriptionStatus$))}disableAutoRenew(){return this.requestService.userCommand("DisableSubscriptionAutoRenew",{}).pipe(W(e=>{this.appState.subscriptionStatus$.next(e)}))}enableAutoRenew(){return this.requestService.userCommand("EnableSubscriptionAutoRenew",{}).pipe(W(e=>{this.appState.subscriptionStatus$.next(e)}))}takeNextPayment(){return this.requestService.userCommand("TakeNextSubscriptionPayment",{}).pipe(W(e=>{this.appState.subscriptionStatus$.next(e)}))}getUserStripeBillingPortalUrl(){return this.requestService.userQuery("GetUserStripeBillingPortal",{})}getStripeSubscriptionManagementInfo(){return this.requestService.userQuery("GetStripeSubscriptionManagementInfo",{})}cancelPaymentCollection(){return this.requestService.userCommand("CancelStripePaymentCollectionForUserSubscription",{})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function hr(t){return t?`${t.year}-${t.month}-${t.day}`:null}var Pa=(()=>{class t{constructor(){this.appState=a(ai),this.requestService=a(Tt),this.impersonationState=Kr(this.appState.impersonationStateChanged),Br(()=>{this.impersonationState()!==void 0&&(this.getUserAddressesFromServer().subscribe(),this.getUserInfoFromServer().subscribe())})}getUserAddresses(){return this.appState.userAddresses$.value?this.appState.userAddresses$:this.getUserAddressesFromServer()}getUserAddressesFromServer(){return this.requestService.userQuery("GetUserAddresses",{}).pipe(W(e=>{this.appState.userAddresses$.next(e)}),dt(e=>this.appState.userAddresses$))}getUserOrders(e){return this.requestService.userQuery("GetUserOrders",{dateFrom:hr(e?.dateFrom),dateTo:hr(e?.dateTo)})}getUserVouchers(){return this.requestService.userQuery("GetValidUserVouchers",{})}getUserData(){return this.appState.userData$.value?this.appState.userData$:this.getUserInfoFromServer()}getUserInfoFromServer(){return this.requestService.userQuery("GetUserInfo",{}).pipe(W(e=>{this.appState.userData$.next(e)}))}setContactPreferences(e){return this.requestService.userCommand("SetContactPreferences",{preferences:e}).pipe(dt(i=>(this.appState.userData$.next(i),this.appState.userData$)))}updateUserData(e){return this.requestService.userCommand("UpdateUserData",{userData:e}).pipe(dt(i=>(this.appState.userData$.next(i),this.appState.userData$)))}makeAddressPrimary(e){return this.requestService.userCommand("MakeAddressPrimary",{id:e.id}).pipe(W(i=>{this.appState.userAddresses$.next(i)}))}deleteAddress(e){return this.requestService.userCommand("DeleteAddress",{id:e.id}).pipe(W(i=>{this.appState.userAddresses$.next(i)}))}addUserAddress(e){return this.requestService.userCommand("AddUserAddress",{address:e}).pipe(W(i=>{this.appState.userAddresses$.next(i)}))}getItemLink(e,i){let o=li.dashboardUrl;switch(e){case"PublicWebinar":case"CCGWebinar":return o+"/account/webinars/"+i;case"PublicCourse":case"CCGCourse":return o+"/account/courses/";case"NBPlus":case"NBPlusUpsell":case"OrganisationNBPlus":return o;case"Book":return o+"/account/booklets/"+i;default:return}}getStripeInvoiceUrlForOrder(e){return this.requestService.userQuery("GetStripeInvoiceUrlForOrder",{stripeInvoiceId:e})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ze=(function(t){return t.RequiresItems="RequiresItems",t.RequiresLogin="RequiresLogin",t.RequiresBillingAddress="RequiresBillingAddress",t.RequiresShippingAddress="RequiresShippingAddress",t.RequiresShippingOption="RequiresShippingOption",t.TermsAndConditionsRequired="TermsAndConditionsRequired",t.ChoosePaymentMethod="ChoosePaymentMethod",t.ReadyToPay="ReadyToPay",t.Paying="Paying",t.CanComplete="CanComplete",t.Invalid="Invalid",t})(Ze||{});var wi=class{get hasSubtotalDiscount(){return this.subtotalDiscount.price>0}get hasShippingTotalDiscount(){return this.shippingTotalDiscount.price>0}get itemCount(){return this.items.length}get isEmpty(){return this.itemCount===0}contains(n){return this.items.filter(e=>e.productId===n)[0]!==void 0}get termsAndConditionsRequired(){return this.state===Ze.TermsAndConditionsRequired}get requiresPaymentMethodChoice(){return this.state===Ze.ChoosePaymentMethod}get canComplete(){return this.state===Ze.CanComplete}get isReadyToPay(){return this.state===Ze.ReadyToPay}get isPaying(){return this.state===Ze.Paying}get isInvalid(){return!this.isValid}get isValid(){return this.state!==Ze.Invalid}get isInPaymentStage(){return this.state===Ze.TermsAndConditionsRequired||this.state===Ze.ReadyToPay||this.state===Ze.Paying||this.state===Ze.CanComplete||this.state===Ze.ChoosePaymentMethod}get containsFreeBook(){return this.items.some(n=>n.productType===At.Book&&n.subtotal.price===0)}get showNBPlusInfo(){return!this.userIsAlreadyNBPlusSubscriber&&!this.items.some(n=>n.productType===At.NBPlus||n.productType===At.NBPlusUpsell||n.productType===At.OrganisationNBPlus)}get containsPublicCourse(){return this.items.some(n=>n.productType===At.PublicCourse&&n.subtotal.price>0)}};
9var xu=[[["","modal-body",""]],[["","modal-button",""]]],Bu=["[modal-body]","[modal-button]"];function ku(t,n){t&1&&Te(0,"nbm-loading")}function Fu(t,n){t&1&&(y(0,"button",4),T(1,"Processing..."),g())}function Vu(t,n){if(t&1&&(y(0,"div")(1,"div",3),Ue(2,1),g(),R(3,Fu,2,0,"button",4),g()),t&2){let e=v();ye("modal-footer "+e.footerClasses()),h(),D("d-none",e.acting()),h(2),P(e.acting()?3:-1)}}var xa=(()=>{class t{constructor(){this.activeModal=a(Ft),this.heading=He(void 0),this.hideFooter=He(!1),this.footerClasses=He(""),this.bodyClasses=He(""),this.headerClasses=He(""),this.closeClasses=He(""),this.loading=He(!1),this.acting=He(!1)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=k({type:t,selectors:[["nbm-site-modal"]],inputs:{heading:[1,"heading"],hideFooter:[1,"hideFooter"],footerClasses:[1,"footerClasses"],bodyClasses:[1,"bodyClasses"],headerClasses:[1,"headerClasses"],closeClasses:[1,"closeClasses"],loading:[1,"loading"],acting:[1,"acting"]},ngContentSelectors:Bu,decls:9,vars:11,consts:[[1,"modal-title"],["type","button","aria-label","Close",3,"click"],[3,"class"],[1,"d-flex","align-items-center"],["disabled","disabled",1,"btn","btn-secondary"]],template:function(i,o){i&1&&(Ye(xu),y(0,"div")(1,"h4",0),T(2),g(),y(3,"button",1),w("click",function(){return o.activeModal.dismiss("Cross click")}),g()(),y(4,"div"),R(5,ku,1,0,"nbm-loading"),y(6,"div"),Ue(7),g()(),R(8,Vu,4,5,"div",2)),i&2&&(ye("modal-header "+o.headerClasses()),h(2),Z(o.heading()),h(),ye("btn-close "+o.closeClasses()),h(),ye("modal-body overflow-auto "+o.bodyClasses()),h(),P(o.loading()?5:-1),h(),D("d-none",o.loading()),h(2),P(o.hideFooter()?-1:8))},dependencies:[Oa],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;max-height:100vh}"]})}}return t})();function Lu(t,n){if(t&1&&(Te(0,"hr"),y(1,"p",11),T(2,"Amount outstanding"),g(),y(3,"p",12),T(4),on(5,"currency"),g()),t&2){let e=v();h(4),jt(" ",Hr(5,1,e.outstandingAmount(),"GBP")," ")}}function Gu(t,n){if(t&1&&(T(0," \u2014 "),y(1,"strong"),T(2),g(),T(3)),t&2){let e=n;h(2),Z(e),h(),jt(" ",e===1?"day":"days"," ago ")}}function Uu(t,n){if(t&1&&(y(0,"p",5),T(1," Overdue since "),y(2,"strong"),T(3),on(4,"dayjsDate"),g(),R(5,Gu,4,2),g()),t&2){let e,i=v();h(3),Z(Yn(4,2,i.outstandingSince())),h(2),P((e=i.daysOverdue(i.outstandingSince()))?5:-1,e)}}function Hu(t,n){if(t&1){let e=Be();y(0,"a",13),w("click",function(){_e(e);let o=v();return ge(o.payOpened())}),T(1," Pay outstanding invoice "),g()}t&2&&G("href",n,kr)}function ju(t,n){if(t&1){let e=Be();y(0,"button",14),w("click",function(){_e(e);let o=v();return ge(o.resolve())}),T(1," Go to my subscription "),g()}}function $u(t,n){t&1&&(y(0,"div",10),T(1,"opens in a new tab"),g())}var Ba=(()=>{class t{constructor(){this.modal=a(Ft),this.router=a(sn),this.subscriptionManagementService=a(Ra),this.message=we(void 0),this.redirectUrl=we(void 0),this.outstandingAmount=we(void 0),this.outstandingSince=we(void 0),this.hostedInvoiceUrl=we(void 0),this.loading=we(!1)}loadOutstandingDetail(){this.loading.set(!0),this.subscriptionManagementService.getStripeSubscriptionManagementInfo().pipe(We(1),en(()=>Pe(null))).subscribe(e=>{this.outstandingAmount.set(e?.outstandingAmount),this.outstandingSince.set(e?.outstandingSince),this.hostedInvoiceUrl.set(e?.hostedInvoiceUrl),this.loading.set(!1)})}payOpened(){this.modal.close("pay")}daysOverdue(e){if(!e)return null;let i=new Date(e).getTime();if(Number.isNaN(i))return null;let o=Math.floor((Date.now()-i)/864e5);return o>0?o:null}resolve(){let e=this.redirectUrl();this.modal.close("resolve"),e&&this.router.navigateByUrl(e)}dismiss(){this.modal.dismiss("dismiss")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=k({type:t,selectors:[["nbm-past-due-purchase-block-modal"]],decls:15,vars:7,consts:[["heading","Payment Outstanding","headerClasses","bg-danger text-light","closeClasses","btn-close-white",3,"hideFooter","loading"],["modal-body",""],[1,"alert","alert-danger","mb-4"],[1,"fw-bold"],["data-testid","block-message",1,"mb-0"],["data-testid","outstanding-since",1,"small","mb-0"],[1,"d-flex","flex-wrap","justify-content-end","align-items-center","gap-2"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["data-testid","pay-outstanding-invoice","target","_blank","rel","noopener","aria-describedby","past-due-block-pay-hint",1,"btn","btn-danger",3,"href"],["type","button","data-testid","resolve-payment",1,"btn","btn-danger"],["id","past-due-block-pay-hint",1,"small","text-muted","mt-1","text-end"],[1,"small","text-uppercase","fw-semibold","mb-0","nbm-overdue-label"],["data-testid","outstanding-amount",1,"fs-3","fw-bold","lh-1","mb-1","nbm-overdue-amount"],["data-testid","pay-outstanding-invoice","target","_blank","rel","noopener","aria-describedby","past-due-block-pay-hint",1,"btn","btn-danger",3,"click","href"],["type","button","data-testid","resolve-payment",1,"btn","btn-danger",3,"click"]],template:function(i,o){if(i&1&&(y(0,"nbm-site-modal",0),Lr(1,1),y(2,"div",2)(3,"h5",3),T(4,"You already have an NB Plus subscription"),g(),y(5,"p",4),T(6),g(),R(7,Lu,6,4),R(8,Uu,6,4,"p",5),g(),y(9,"div",6)(10,"button",7),w("click",function(){return o.dismiss()}),T(11,"Close"),g(),R(12,Hu,2,1,"a",8)(13,ju,2,0,"button",9),g(),R(14,$u,2,0,"div",10),Gr(),g()),i&2){let r;G("hideFooter",!0)("loading",o.loading()),h(6),Z(o.message()),h(),P(o.outstandingAmount()?7:-1),h(),P(o.outstandingSince()?8:-1),h(4),P((r=o.hostedInvoiceUrl())?12:13,r),h(2),P(o.hostedInvoiceUrl()?14:-1)}},dependencies:[xa,zr,Ia],styles:[".nbm-overdue-label[_ngcontent-%COMP%]{letter-spacing:.08em;opacity:.85}
9.nbm-overdue-amount[_ngcontent-%COMP%]{font-variant-numeric:tabular-nums}"]})}}return t})();var Fn={blocked:!1},ka=(()=>{class t{constructor(){this.requestService=a(Tt),this.userService=a(Jn),this.modal=a(Vo)}check(){return Ot.isSSR?Pe(Fn):this.userService.currentUser$.pipe(We(1),Nt(e=>Jn.isAuthenticated(e)?this.requestService.userQuery("CheckNBPlusPurchaseBlock",{}):Pe(Fn)),B(e=>e??Fn),en(()=>Pe(Fn)))}checkThen(e,i){this.check().subscribe(o=>{o.blocked?this.open(o):e(),i?.()})}open(e){this.modal.dismissAll();let i=this.modal.open(Ba,{size:"lg",backdrop:"static",centered:!0}),o=i.componentInstance;return o.message.set(e.message),o.redirectUrl.set(e.redirectUrl),o.loadOutstandingDetail(),i}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var qi=class{get hasDiscount(){return this.discountAmount.price>0}};var Vn=class extends wi{calculateTotals(){this.subtotal.price=this.items.reduce((n,e)=>n+e.subtotal.price*e.quantity,0),this.subtotal.vat=this.items.reduce((n,e)=>n+e.subtotal.vat*e.quantity,0),this.total.price=this.subtotal.price,this.total.vat=this.subtotal.vat}};var wy=(()=>{class t{constructor(){this.appState=a(ai),this.requestService=a(Tt),this.toastService=a(is),this.googleTagManagerService=a(es),this.amplitudeService=a(an),this.accountService=a(Pa),this.pastDueBlock=a(ka),this._basket=we(null),this.basket$=qr(this._basket).pipe(Nt(e=>e?Pe(e):this.retrieveBasketFromServer())),this.appState.impersonationStateChanged.subscribe(e=>{this.retrieveBasketFromServer().pipe(We(1)).subscribe(),this.getAddressesFromServer().pipe(We(1)).subscribe()})}getUserAddresses(){return this.appState.userAddresses$.value?this.appState.userAddresses$:this.getAddressesFromServer()}getAddressesFromServer(){return this.requestService.userQuery("GetUserAddresses",{}).pipe(W(e=>this.appState.userAddresses$.next(e)),dt(()=>this.appState.userAddresses$))}getCountries(){return this.appState.countries$.value?this.appState.countries$:this.requestService.publicQuery("GetCountries",{}).pipe(W(e=>{this.appState.countries$.next(e)}))}getUserBasket(){return this.basket$}getOrganistionBasket(e){return this.retrieveOrganiationBasketFromServer(e)}saveOrganisationBasket(e,i){return this.requestService.basketCommand("SaveOrganisationCart",{organisationId:e.organisation.id,items:e.items,invoiceReference:e.invoiceReference,paymentMethod:e.paymentMethod,discountCodes:i}).pipe(B(o=>this.mapOrganisationBasketPayload({success:!0,payload:o,message:""})))}applyOrganisationDiscounts(e,i){return this.requestService.basketCommand("ApplyOrganisationDiscounts",{organisationId:e.organisation.id,discountCodes:i})}mapBasketPayload(e,i){let o=this.getNewBasket(e.payload);return this._basket.set(o),i&&i(o),e.message&&(e.redirectUrl?this.pastDueBlock.open({blocked:!0,message:e.message,redirectUrl:e.redirectUrl}):e.success?this.toastService.showSuccessMessage(e.message):this.toastService.showErrorMessage(e.message)),o}mapOrganisationBasketPayload(e,i){let o=this.getNewOrganisationBasket(e.payload);return i&&i(o),e.message&&(e.success?this.toastService.showSuccessMessage(e.message):this.toastService.showErrorMessage(e.message)),o}getNewBasket(e){let i=Object.assign(new wi,e);return i.items=i.items.map(o=>Object.assign(new qi,o)),i}getNewOrganisationBasket(e){let i=Object.assign(new Vn,e);return i.items=i.items.map(o=>Object.assign(new qi,o)),i}addToBasket(e,i,o,r){return this.requestService.basketCommand("AddItemToCart",{productVariantId:i,practiceAddress:o,additionalProducts:r}).pipe(W(s=>this.googleTagManagerService.sendAddToCart(e)),W(s=>this.mapBasketPayload(s)))}getBasketItemFromProductVoucher(e,i){let o={price:e.price,vat:0};return{productId:e.productId,productType:At.ProductVoucher,slug:void 0,subtotal:o,name:e.productName,image:e.imageUrl,subtotalPreDiscount:o,unitPrice:o,discountAmount:{price:0,vat:0},productVariantId:void 0,quantity:i,validationErrors:void 0,hasDiscount:!1,released:!0}}removeFromBasket(e){let i=this._basket()?.items?.find(o=>o.productId===e);return this.requestService.basketCommand("RemoveItemFromCart",{productId:e}).pipe(W(()=>this.amplitudeService.track(ot.ProductRemoved,{"product_engagement.product_id":e,"product_engagement.product_type":i?.productType,"product_engagement.quantity":i?.quantity})),B(o=>this.mapBasketPayload(o)))}removeItemsFromBasket(e){let i=this._basket()?.items??[];return this.requestService.basketCommand("RemoveItemsFromCart",{productIds:e}).pipe(W(()=>e.forEach(o=>{let r=i.find(s=>s.productId===o);this.amplitudeService.track(ot.ProductRemoved,{"product_engagement.product_id":o,"product_engagement.product_type":r?.productType,"product_engagement.quantity":r?.quantity})})),B(o=>this.mapBasketPayload(o)))}retrieveBasketFromServer(){return Ot.isSSR?Pe(null):this.requestService.basketQuery("GetUserCart",{}).pipe(B(e=>this.mapBasketPayload({success:!0,payload:e,message:""})))}retrieveOrganiationBasketFromServer(e){return this.requestService.basketQuery("GetOrganisationCart",{organisationId:e}).pipe(B(i=>this.mapOrganisationBasketPayload({success:!0,payload:i,message:""})))}setBillingAddress(e){return this.requestService.userCommand("SetCartBillingAddress",{address:e}).pipe(B(i=>this.mapBasketPayload(i)))}setShippingAddress(e,i){return this.requestService.userCommand("SetCartShippingAddress",{sameAsBilling:e,address:i}).pipe(B(o=>this.mapBasketPayload(o)))}acceptTermsAndConditions(e){return this.requestService.userCommand("AcceptTermsAndConditions",{preferences:e}).pipe(W(()=>{this.accountService.getUserInfoFromServer().subscribe()}),B(i=>this.mapBasketPayload(i)))}selectPaymentMethod(e){let i=this._basket();return this.requestService.userCommand("SelectPaymentMethod",{method:e}).pipe(W(()=>this.amplitudeService.track(ot.PaymentMethodSelected,{"payment method":e,"cart value":i?.total?.price,currency:"GBP","cart_contents.product_id":i?.items?.map(o=>o.productId)??[],"cart_contents.quantity":i?.items?.map(o=>o.quantity)??[]})),B(o=>this.mapBasketPayload(o)))}chooseAnotherMethod(){return this.requestService.userCommand("ChooseAnotherPaymentMethod",{}).pipe(B(e=>this.mapBasketPayload(e)))}registerPayment(){return this.requestService.userCommand("RegisterPayment",{}).pipe(B(e=>this.mapBasketPayload(e)))}getInvoicePaymentLinkForCart(){return this.requestService.userCommand("GetInvoicePaymentLinkForUserCart",{})}sendInvoiceToCustomer(e){return this.requestService.userCommand("SendInvoiceToCustomer",{customFields:e})}createAndMarkStripeInvoiceAsPaidOffline(e,i){return this.requestService.userCommand("CreateAndMarkStripeInvoiceAsPaidOffline",{note:e,customFields:i})}placeStoreCreditNBPlusOrder(){return this.requestService.userCommand("PlaceStoreCreditNBPlusOrder",{})}createStripeInvoiceForUserBasket(e){return this.requestService.userCommand("CreateStripeInvoiceForUserBasket",{customFields:e})}cancellationReceived(){return this.requestService.userCommand("CancellationReceived",{}).pipe(B(e=>this.mapBasketPayload(e)))}confirmPaymentIntent(e){return this.requestService.userCommand("ConfirmPaymentIntent",{paymentIntentId:e})}confirmPayment(e){return this.requestService.userCommand("ConfirmPayment",{stripeId:e}).pipe(W(i=>{i.redirectUrl&&this.mapBasketPayload(i)}))}applyDiscountCode(e){let i=this._basket()?.discounts.length||0;return this.requestService.userCommand("ApplyDiscountCode",{code:e}).pipe(B(o=>this.mapBasketPayload(o,r=>{r.discounts.length>i?(this.toastService.showSuccessMessage("Discount code applied"),this.amplitudeService.track(ot.DiscountApplied,{"discount code":e,"discount amount":r.subtotalDiscount?.price,currency:"GBP","cart_contents.product_id":r.items?.map(s=>s.productId)??[],"cart_contents.quantity":r.items?.map(s=>s.quantity)??[]})):this.toastService.showErrorMessage("Could not apply discount")}
9)))}removeDiscountCode(e){return this.requestService.userCommand("RemoveDiscountCode",{code:e}).pipe(B(i=>this.mapBasketPayload(i,o=>{this.toastService.showSuccessMessage("Discount code removed")})))}completeOrder(){return this.requestService.userCommand("CompleteOrder",{}).pipe(B(e=>{let i=this.getNewBasket(e.payload);return this._basket.set(i),e}))}completeInvoiceOrder(e){return this.requestService.userCommand("CompleteInvoiceOrder",{invoiceReference:e}).pipe(B(i=>{let o=this.getNewBasket(i.payload);return this._basket.set(o),i}))}completeOfflineOrder(e){return this.requestService.userCommand("CompleteOfflineOrder",e).pipe(B(i=>{let o=this.getNewBasket(i.payload);return this._basket.set(o),i}))}resetStripeTransaction(){return this.requestService.userCommand("ResetStripeTransaction",{}).pipe(B(e=>this.mapBasketPayload(e)))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();export{an as a,ot as b,es as c,is as d,vn as e,Mo as f,P_ as g,tc as h,x_ as i,B_ as j,vi as k,Ns as l,So as m,lt as n,oc as o,Vs as p,ct as q,Es as r,X_ as s,eg as t,wc as u,$i as v,Tc as w,ig as x,sa as y,aa as z,Pc as A,Bc as B,da as C,ng as D,og as E,Uc as F,jc as G,Wc as H,rg as I,sg as J,ag as K,Ca as L,jg as M,Ko as N,Da as O,l0 as P,tu as Q,c0 as R,Ma as S,Zo as T,Kc as U,Ft as V,Vo as W,Lo as X,cu as Y,I0 as Z,Na as _,Qo as $,Ea as aa,R0 as ba,P0 as ca,Jo as da,n1 as ea,rr as fa,Ou as ga,b1 as ha,H1 as ia,Oa as ja,xa as ka,Ia as la,Ra as ma,ka as na,Pa as oa,Ze as pa,wi as qa,wy as ra};
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.